< Summary

Information
Class: Rudim.CLI.UCI.DebugCommand
Assembly: Rudim
File(s): /home/runner/work/rudim/rudim/Rudim/CLI/UCI/DebugCommand.cs
Line coverage
100%
Covered lines: 10
Uncovered lines: 0
Coverable lines: 10
Total lines: 18
Line coverage: 100%
Branch coverage
100%
Covered branches: 8
Total branches: 8
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
Run(...)100%88100%

File(s)

/home/runner/work/rudim/rudim/Rudim/CLI/UCI/DebugCommand.cs

#LineLine coverage
 1namespace Rudim.CLI.UCI;
 2
 113public class DebugCommand(UciClient uciClient) : IUciCommand
 4{
 5    public void Run(string[] parameters)
 6    {
 37        if (parameters?.Length > 0)
 8        {
 39            string mode = parameters[0].ToLower();
 310            uciClient.DebugMode = mode switch
 311            {
 112                "on" => true,
 113                "off" => false,
 114                _ => uciClient.DebugMode
 315            };
 16        }
 317    }
 18}