< Summary

Information
Class: Elsa.Workflows.Models.WorkflowPublication
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Models/WorkflowPublication.cs
Line coverage
50%
Covered lines: 2
Uncovered lines: 2
Coverable lines: 4
Total lines: 8
Line coverage: 50%
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_IsLatest()100%11100%
get_LatestAndPublished()100%11100%
get_LatestDraft()100%210%
get_Draft()100%210%

File(s)

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

#LineLine coverage
 1namespace Elsa.Workflows.Models;
 2
 65463public record WorkflowPublication(bool IsLatest, bool IsPublished)
 4{
 36725    public static WorkflowPublication LatestAndPublished => new(true, true);
 06    public static WorkflowPublication LatestDraft => new(true, false);
 07    public static WorkflowPublication Draft => new(false, false);
 8}