< Summary

Information
Class: Elsa.Workflows.LogPersistence.Strategies.Exclude
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/LogPersistence/Strategies/Exclude.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 1
Coverable lines: 1
Total lines: 15
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
GetPersistenceModeAsync(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/LogPersistence/Strategies/Exclude.cs

#LineLine coverage
 1using JetBrains.Annotations;
 2
 3namespace Elsa.Workflows.LogPersistence.Strategies;
 4
 5/// <summary>
 6/// A log persistence strategy that returns <see cref="LogPersistenceMode.Exclude"/>.
 7/// </summary>
 8[UsedImplicitly]
 9public class Exclude : ILogPersistenceStrategy
 10{
 11    public Task<LogPersistenceMode> GetPersistenceModeAsync(LogPersistenceStrategyContext context)
 12    {
 013        return Task.FromResult(LogPersistenceMode.Exclude);
 14    }
 15}