< Summary

Information
Class: Elsa.Platform.Integration.Services.PlatformShellReloadTracker
Assembly: Elsa.Platform.Integration
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Platform.Integration/Services/PlatformShellReloadTracker.cs
Line coverage
40%
Covered lines: 2
Uncovered lines: 3
Coverable lines: 5
Total lines: 14
Line coverage: 40%
Branch coverage
0%
Covered branches: 0
Total branches: 2
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor()100%11100%
get_ShellIds()100%11100%
MarkForReload(...)0%620%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Platform.Integration/Services/PlatformShellReloadTracker.cs

#LineLine coverage
 1namespace Elsa.Platform.Integration.Services;
 2
 3public sealed class PlatformShellReloadTracker
 4{
 25    private readonly HashSet<string> _shellIds = new(StringComparer.OrdinalIgnoreCase);
 6
 17    public IReadOnlyCollection<string> ShellIds => _shellIds;
 8
 9    public void MarkForReload(string shellId)
 10    {
 011        if (!string.IsNullOrWhiteSpace(shellId))
 012            _shellIds.Add(shellId);
 013    }
 14}