< Summary

Information
Class: Elsa.Workflows.Runtime.Extensions.StoredTriggerStoreExtensions
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Extensions/StoredTriggerStoreExtensions.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 22
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
FindManyByStimulusHashAsync(...)100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Extensions/StoredTriggerStoreExtensions.cs

#LineLine coverage
 1using Elsa.Workflows.Runtime.Entities;
 2using Elsa.Workflows.Runtime.Filters;
 3
 4namespace Elsa.Workflows.Runtime.Extensions;
 5
 6/// <summary>
 7/// Provides extension methods for the <see cref="ITriggerStore"/> interface.
 8/// </summary>
 9public static class StoredTriggerStoreExtensions
 10{
 11    /// <summary>
 12    /// Finds all triggers that match the specified stimulus.
 13    /// </summary>
 14    public static ValueTask<IEnumerable<StoredTrigger>> FindManyByStimulusHashAsync(this ITriggerStore triggerStore, str
 15    {
 516        var filter = new TriggerFilter
 517        {
 518            Hash = stimulusHash
 519        };
 520        return triggerStore.FindManyAsync(filter, cancellationToken);
 21    }
 22}