< Summary

Information
Class: Elsa.Workflows.NoopCommitStateHandler
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Services/NoopCommitStateHandler.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 17
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
CommitAsync(...)100%210%
CommitAsync(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Services/NoopCommitStateHandler.cs

#LineLine coverage
 1using Elsa.Workflows.CommitStates;
 2using Elsa.Workflows.State;
 3
 4namespace Elsa.Workflows;
 5
 6public class NoopCommitStateHandler : ICommitStateHandler
 7{
 8    public Task CommitAsync(WorkflowExecutionContext workflowExecutionContext, CancellationToken cancellationToken = def
 9    {
 010        return Task.CompletedTask;
 11    }
 12
 13    public Task CommitAsync(WorkflowExecutionContext workflowExecutionContext, WorkflowState workflowState, Cancellation
 14    {
 015        return Task.CompletedTask;
 16    }
 17}