< Summary

Information
Class: Elsa.Workflows.Management.WorkflowDefinitionHandleExtensions
Assembly: Elsa.Workflows.Management
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Management/Extensions/WorkflowDefinitionHandleExtensions.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 17
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
ToFilter(...)100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Management/Extensions/WorkflowDefinitionHandleExtensions.cs

#LineLine coverage
 1using Elsa.Workflows.Management.Filters;
 2using Elsa.Workflows.Models;
 3
 4namespace Elsa.Workflows.Management;
 5
 6public static class WorkflowDefinitionHandleExtensions
 7{
 8    public static WorkflowDefinitionFilter ToFilter(this WorkflowDefinitionHandle handle)
 9    {
 9910        return new()
 9911        {
 9912            DefinitionId = handle.DefinitionId,
 9913            Id = handle.DefinitionVersionId,
 9914            VersionOptions = handle.VersionOptions
 9915        };
 16    }
 17}