< Summary

Class:GDX.Developer.ConsoleCommands.PlayerLoopConsoleCommand
Assembly:GDX
File(s):./Packages/com.dotbunny.gdx/GDX/Developer/ConsoleCommands/PlayerLoopConsoleCommand.cs
Covered lines:3
Uncovered lines:13
Coverable lines:16
Total lines:42
Line coverage:18.7% (3 of 16)
Covered branches:0
Total branches:0
Covered methods:1
Total methods:4
Method coverage:25% (1 of 4)

Coverage History

Metrics

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

File(s)

./Packages/com.dotbunny.gdx/GDX/Developer/ConsoleCommands/PlayerLoopConsoleCommand.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
 5using UnityEngine.LowLevel;
 6
 7namespace GDX.Developer.ConsoleCommands
 8{
 9#if UNITY_2022_2_OR_NEWER
 10    public class PlayerLoopConsoleCommand : ConsoleCommandBase
 11    {
 12        /// <inheritdoc />
 13        public override bool Evaluate(float deltaTime)
 014        {
 015            PlayerLoopSystem loop = PlayerLoop.GetCurrentPlayerLoop();
 016            TextGenerator text = new TextGenerator();
 017            loop.GenerateSystemTree(text);
 18
 019            UnityEngine.Debug.Log(text.ToString());
 020            return true;
 021        }
 22
 23        /// <inheritdoc />
 24        public override Console.ConsoleAccessLevel GetAccessLevel()
 025        {
 026            return Console.ConsoleAccessLevel.Developer;
 027        }
 28
 29        /// <inheritdoc />
 30        public override string GetKeyword()
 731        {
 732            return "playerloop";
 733        }
 34
 35        /// <inheritdoc />
 36        public override string GetHelpMessage()
 037        {
 038            return "Output a structured list of the the current systems in Unity's player loop.";
 039        }
 40    }
 41#endif // UNITY_2022_2_OR_NEWER
 42}

Coverage by test methods







Methods/Properties

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