< Summary

Information
Class: Elsa.Workflows.ActivityStateFilterResult
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Models/ActivityStateFilterResult.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 13
Line coverage: 0%
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_FilteredValue()100%210%
get_IsFiltered()100%210%
Filtered(...)100%210%
Pass()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Models/ActivityStateFilterResult.cs

#LineLine coverage
 1using JetBrains.Annotations;
 2
 3namespace Elsa.Workflows;
 4
 5[UsedImplicitly]
 6public class ActivityStateFilterResult
 7{
 08    public string? FilteredValue { get; set; }
 09    public bool IsFiltered { get; set; }
 10
 011    public static ActivityStateFilterResult Filtered(string filteredValue) => new() { IsFiltered = true, FilteredValue =
 012    public static ActivityStateFilterResult Pass() => new() { IsFiltered = false };
 13}