< Summary

Class:GDX.Developer.ConsoleCommands.ShowConsoleCommand
Assembly:GDX
File(s):./Packages/com.dotbunny.gdx/GDX/Developer/ConsoleCommands/ShowConsoleCommand.cs
Covered lines:3
Uncovered lines:10
Coverable lines:13
Total lines:40
Line coverage:23% (3 of 13)
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%6200%
GetAccessLevel()0%2100%
GetKeyword()0%110100%
GetHelpMessage()0%2100%

File(s)

./Packages/com.dotbunny.gdx/GDX/Developer/ConsoleCommands/ShowConsoleCommand.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 System;
 6
 7namespace GDX.Developer.ConsoleCommands
 8{
 9#if UNITY_2022_2_OR_NEWER
 10    public class ShowConsoleCommand : ConsoleCommandBase
 11    {
 12        public static Action ShowConsole;
 13
 14        /// <inheritdoc />
 15        public override bool Evaluate(float deltaTime)
 016        {
 017            ShowConsole?.Invoke();
 018            return true;
 019        }
 20
 21        /// <inheritdoc />
 22        public override Console.ConsoleAccessLevel GetAccessLevel()
 023        {
 024            return Console.ConsoleAccessLevel.Anonymous;
 025        }
 26
 27        /// <inheritdoc />
 28        public override string GetKeyword()
 729        {
 730            return "show";
 731        }
 32
 33        /// <inheritdoc />
 34        public override string GetHelpMessage()
 035        {
 036            return "Shows the developer console.";
 037        }
 38    }
 39#endif // UNITY_2022_2_OR_NEWER
 40}

Coverage by test methods







Methods/Properties

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