< Summary

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

File(s)

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

#LineLine coverage
 1using Elsa.Common.Models;
 2using Elsa.Workflows.Runtime.Entities;
 3using Elsa.Workflows.Runtime.Filters;
 4using Elsa.Workflows.Runtime.OrderDefinitions;
 5
 6namespace Elsa.Workflows.Runtime.Stores;
 7
 8public class NoopWorkflowExecutionLogStore : IWorkflowExecutionLogStore
 9{
 10    public Task AddAsync(WorkflowExecutionLogRecord record, CancellationToken cancellationToken = default)
 11    {
 012        return Task.CompletedTask;
 13    }
 14
 15    public Task AddManyAsync(IEnumerable<WorkflowExecutionLogRecord> records, CancellationToken cancellationToken = defa
 16    {
 017        return Task.CompletedTask;
 18    }
 19
 20    public Task SaveAsync(WorkflowExecutionLogRecord record, CancellationToken cancellationToken = default)
 21    {
 022        return Task.CompletedTask;
 23    }
 24
 25    public Task SaveManyAsync(IEnumerable<WorkflowExecutionLogRecord> records, CancellationToken cancellationToken = def
 26    {
 027        return Task.CompletedTask;
 28    }
 29
 30    public Task<WorkflowExecutionLogRecord?> FindAsync(WorkflowExecutionLogRecordFilter filter, CancellationToken cancel
 31    {
 032        return Task.FromResult<WorkflowExecutionLogRecord?>(null);
 33    }
 34
 35    public Task<WorkflowExecutionLogRecord?> FindAsync<TOrderBy>(WorkflowExecutionLogRecordFilter filter, WorkflowExecut
 36    {
 037        return Task.FromResult<WorkflowExecutionLogRecord?>(null);
 38    }
 39
 40    public Task<Page<WorkflowExecutionLogRecord>> FindManyAsync(WorkflowExecutionLogRecordFilter filter, PageArgs pageAr
 41    {
 042        return Task.FromResult(new Page<WorkflowExecutionLogRecord>(new List<WorkflowExecutionLogRecord>(0), 0));
 43    }
 44
 45    public Task<Page<WorkflowExecutionLogRecord>> FindManyAsync<TOrderBy>(WorkflowExecutionLogRecordFilter filter, PageA
 46    {
 047        return Task.FromResult(new Page<WorkflowExecutionLogRecord>(new List<WorkflowExecutionLogRecord>(0), 0));
 48    }
 49
 50    public Task<long> DeleteManyAsync(WorkflowExecutionLogRecordFilter filter, CancellationToken cancellationToken = def
 51    {
 052        return Task.FromResult(0L);
 53    }
 54}