< Summary

Information
Class: NGql.Tool.ToolEnvironment
Assembly: NGql.Tool
File(s): /home/runner/work/NGql/NGql/tools/Tool/ToolEnvironment.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 13
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_IsInputRedirected()100%11100%
get_BaseDirectory()100%11100%

File(s)

/home/runner/work/NGql/NGql/tools/Tool/ToolEnvironment.cs

#LineLine coverage
 1namespace NGql.Tool;
 2
 3/// <summary>
 4/// Process-level seams the CLI reads instead of touching <see cref="Console"/> and
 5/// <see cref="AppContext"/> directly. Defaults reproduce the real environment; tests swap them
 6/// so the stdin-redirection and fixture-discovery branches stay reachable.
 7/// </summary>
 8internal static class ToolEnvironment
 9{
 55510    public static Func<bool> IsInputRedirected { get; set; } = () => Console.IsInputRedirected;
 11
 53712    public static Func<string> BaseDirectory { get; set; } = () => AppContext.BaseDirectory;
 13}