< Summary

Information
Class: Elsa.Workflows.Runtime.Middleware.Workflows.WorkflowHeartbeatMiddleware
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Middleware/Workflows/HeartbeatMiddleware.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 12
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
.ctor(...)100%11100%
InvokeAsync()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Middleware/Workflows/HeartbeatMiddleware.cs

#LineLine coverage
 1using Elsa.Workflows.Pipelines.WorkflowExecution;
 2
 3namespace Elsa.Workflows.Runtime.Middleware.Workflows;
 4
 4395public class WorkflowHeartbeatMiddleware(WorkflowMiddlewareDelegate next, WorkflowHeartbeatGeneratorFactory workflowHear
 6{
 7    public override async ValueTask InvokeAsync(WorkflowExecutionContext context)
 8    {
 4719        using var heartbeat = workflowHeartbeatGeneratorFactory.CreateHeartbeatGenerator(context);
 47110        await Next(context);
 47111    }
 12}