< Summary - Combined Code Coverage

Information
Class: NLightning.Tests.Utils.Mocks.FakeServiceScope
Assembly: NLightning.Tests.Utils
File(s): /home/runner/work/nlightning/nlightning/test/NLightning.Tests.Utils/Mocks/FakeServiceScope.cs
Tag: 36_15743069263
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
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
get_ServiceProvider()100%11100%
.ctor(...)100%11100%
Dispose()100%11100%

File(s)

/home/runner/work/nlightning/nlightning/test/NLightning.Tests.Utils/Mocks/FakeServiceScope.cs

#LineLine coverage
 1using Microsoft.Extensions.DependencyInjection;
 2
 3namespace NLightning.Tests.Utils.Mocks;
 4
 5public class FakeServiceScope : IServiceScope
 6{
 487    public IServiceProvider ServiceProvider { get; }
 8
 489    public FakeServiceScope(IServiceProvider serviceProvider)
 10    {
 4811        ServiceProvider = serviceProvider;
 4812    }
 13
 14    public void Dispose()
 15    {
 16        // NoOp - this is a fake scope for testing purposes
 4817    }
 18}