< Summary

Class:GDX.Developer.ConsoleCommands.SceneWaitConsoleCommand
Assembly:GDX
File(s):./Packages/com.dotbunny.gdx/GDX/Developer/ConsoleCommands/SceneWaitConsoleCommand.cs
Covered lines:3
Uncovered lines:6
Coverable lines:9
Total lines:29
Line coverage:33.3% (3 of 9)
Covered branches:0
Total branches:0
Covered methods:1
Total methods:3
Method coverage:33.3% (1 of 3)

Coverage History

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Evaluate(...)0%2100%
GetKeyword()0%110100%
GetHelpMessage()0%2100%

File(s)

./Packages/com.dotbunny.gdx/GDX/Developer/ConsoleCommands/SceneWaitConsoleCommand.cs

#LineLine coverage
 1// Copyright (c) 2020-2022 dotBunny Inc.
 2// dotBunny licenses this file to you under the BSL-1.0 license.
 3// See the LICENSE file in the project root for more information.
 4
 5namespace GDX.Developer.ConsoleCommands
 6{
 7#if UNITY_2022_2_OR_NEWER
 8    public class SceneWaitConsoleCommand : ConsoleCommandBase
 9    {
 10        /// <inheritdoc />
 11        public override bool Evaluate(float deltaTime)
 012        {
 013            return !SceneExtensions.IsSceneManagerBusy();
 014        }
 15
 16        /// <inheritdoc />
 17        public override string GetKeyword()
 718        {
 719            return "scene.wait";
 720        }
 21
 22        /// <inheritdoc />
 23        public override string GetHelpMessage()
 024        {
 025            return "Waits for all scene actions to stabilize (loading/unloading), and all enabled.";
 026        }
 27    }
 28#endif // UNITY_2022_2_OR_NEWER
 29}

Coverage by test methods







Methods/Properties

Evaluate(System.Single)
GetKeyword()
GetHelpMessage()