< Summary - Combined Code Coverage

Information
Class: NLightning.Common.Utils.ExceptionUtils
Assembly: NLightning.Common
File(s): /home/runner/work/nlightning/nlightning/src/NLightning.Common/Utils/ExceptionUtils.cs
Tag: 30_15166811759
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 14
Line coverage: 100%
Branch coverage
100%
Covered branches: 2
Total branches: 2
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
ThrowIfDisposed(...)100%22100%

File(s)

/home/runner/work/nlightning/nlightning/src/NLightning.Common/Utils/ExceptionUtils.cs

#LineLine coverage
 1namespace NLightning.Common.Utils;
 2
 3public static class ExceptionUtils
 4{
 5    public static void ThrowIfDisposed(bool disposed, string name)
 6    {
 464607        if (!disposed)
 8        {
 464569            return;
 10        }
 11
 412        throw new ObjectDisposedException(name);
 13    }
 14}