< Summary

Information
Class: Elsa.Workflows.Runtime.Stores.NoopActivityExecutionStore
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Stores/NoopActivityExecutionStore.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 10
Coverable lines: 10
Total lines: 58
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
SaveAsync(...)100%210%
SaveManyAsync(...)100%210%
AddManyAsync(...)100%210%
FindAsync(...)100%210%
FindManyAsync(...)100%210%
FindManyAsync(...)100%210%
FindManySummariesAsync(...)100%210%
FindManySummariesAsync(...)100%210%
CountAsync(...)100%210%
DeleteManyAsync(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Stores/NoopActivityExecutionStore.cs

#LineLine coverage
 1using Elsa.Workflows.Runtime.Entities;
 2using Elsa.Workflows.Runtime.Filters;
 3using Elsa.Workflows.Runtime.OrderDefinitions;
 4
 5namespace Elsa.Workflows.Runtime.Stores;
 6
 7public class NoopActivityExecutionStore : IActivityExecutionStore
 8{
 9    public Task SaveAsync(ActivityExecutionRecord record, CancellationToken cancellationToken = default)
 10    {
 011        return Task.CompletedTask;
 12    }
 13
 14    public Task SaveManyAsync(IEnumerable<ActivityExecutionRecord> records, CancellationToken cancellationToken = defaul
 15    {
 016        return Task.CompletedTask;
 17    }
 18
 19    public Task AddManyAsync(IEnumerable<ActivityExecutionRecord> records, CancellationToken cancellationToken = default
 20    {
 021        return Task.CompletedTask;
 22    }
 23
 24    public Task<ActivityExecutionRecord?> FindAsync(ActivityExecutionRecordFilter filter, CancellationToken cancellation
 25    {
 026        return Task.FromResult<ActivityExecutionRecord?>(null);
 27    }
 28
 29    public Task<IEnumerable<ActivityExecutionRecord>> FindManyAsync<TOrderBy>(ActivityExecutionRecordFilter filter, Acti
 30    {
 031        return Task.FromResult<IEnumerable<ActivityExecutionRecord>>(Array.Empty<ActivityExecutionRecord>());
 32    }
 33
 34    public Task<IEnumerable<ActivityExecutionRecord>> FindManyAsync(ActivityExecutionRecordFilter filter, CancellationTo
 35    {
 036        return Task.FromResult<IEnumerable<ActivityExecutionRecord>>(Array.Empty<ActivityExecutionRecord>());
 37    }
 38
 39    public Task<IEnumerable<ActivityExecutionRecordSummary>> FindManySummariesAsync<TOrderBy>(ActivityExecutionRecordFil
 40    {
 041        return Task.FromResult<IEnumerable<ActivityExecutionRecordSummary>>(Array.Empty<ActivityExecutionRecordSummary>(
 42    }
 43
 44    public Task<IEnumerable<ActivityExecutionRecordSummary>> FindManySummariesAsync(ActivityExecutionRecordFilter filter
 45    {
 046        return Task.FromResult<IEnumerable<ActivityExecutionRecordSummary>>(Array.Empty<ActivityExecutionRecordSummary>(
 47    }
 48
 49    public Task<long> CountAsync(ActivityExecutionRecordFilter filter, CancellationToken cancellationToken = default)
 50    {
 051        return Task.FromResult(0L);
 52    }
 53
 54    public Task<long> DeleteManyAsync(ActivityExecutionRecordFilter filter, CancellationToken cancellationToken = defaul
 55    {
 056        return Task.FromResult(0L);
 57    }
 58}