< Summary

Information
Class: Elsa.Common.BackgroundTask
Assembly: Elsa.Common
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Common/Contracts/BackgroundTask.cs
Line coverage
33%
Covered lines: 1
Uncovered lines: 2
Coverable lines: 3
Total lines: 8
Line coverage: 33.3%
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
ExecuteAsync(...)100%210%
StartAsync(...)100%11100%
StopAsync(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Common/Contracts/BackgroundTask.cs

#LineLine coverage
 1namespace Elsa.Common;
 2
 3public abstract class BackgroundTask : IBackgroundTask
 4{
 05    public virtual Task ExecuteAsync(CancellationToken cancellationToken) => Task.CompletedTask;
 16    public virtual Task StartAsync(CancellationToken cancellationToken) => Task.CompletedTask;
 07    public virtual Task StopAsync(CancellationToken cancellationToken) => Task.CompletedTask;
 8}