< Summary

Information
Class: Shared.VerifyModuleInitializer
Assembly: Shared
File(s): /home/runner/work/NGql/NGql/tests/Shared/VerifyModuleInitializer.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 18
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
Initialize()100%11100%

File(s)

/home/runner/work/NGql/NGql/tests/Shared/VerifyModuleInitializer.cs

#LineLine coverage
 1using System.Runtime.CompilerServices;
 2using DiffEngine;
 3
 4namespace Shared;
 5
 6/// <summary>
 7/// Runs once per test assembly that references this project. Stops Verify from launching an
 8/// external diff tool when a snapshot mismatches: DiffEngine otherwise spawns the machine's
 9/// registered diff viewer (Rider here) per failing snapshot, and a run with many mismatches
 10/// leaves behind dozens of orphaned processes that saturate the CPU and poison any benchmark
 11/// measured afterwards. Mismatches still fail the test and still write a .received.txt beside
 12/// the .verified.txt for inspection.
 13/// </summary>
 14public static class VerifyModuleInitializer
 15{
 16    [ModuleInitializer]
 617    public static void Initialize() => DiffRunner.Disabled = true;
 18}

Methods/Properties

Initialize()