< Summary

Information
Class: Elsa.Workflows.TriggerIndexingContext
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Contexts/TriggerIndexingContext.cs
Line coverage
85%
Covered lines: 6
Uncovered lines: 1
Coverable lines: 7
Total lines: 16
Line coverage: 85.7%
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
.ctor(...)100%11100%
get_WorkflowIndexingContext()100%11100%
get_ExpressionExecutionContext()100%11100%
get_Trigger()100%11100%
get_CancellationToken()100%11100%
get_TriggerName()100%11100%
Get(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Contexts/TriggerIndexingContext.cs

#LineLine coverage
 1using Elsa.Expressions.Models;
 2using Elsa.Extensions;
 3using Elsa.Workflows.Models;
 4
 5namespace Elsa.Workflows;
 6
 627public class TriggerIndexingContext(WorkflowIndexingContext workflowIndexingContext, ExpressionExecutionContext expressi
 8{
 629    public WorkflowIndexingContext WorkflowIndexingContext { get; } = workflowIndexingContext;
 12410    public ExpressionExecutionContext ExpressionExecutionContext { get; } = expressionExecutionContext;
 6211    public ITrigger Trigger { get; } = trigger;
 6212    public CancellationToken CancellationToken { get; } = cancellationToken;
 18513    public string TriggerName { get; set; } = trigger.Type;
 14
 015    public T? Get<T>(Input<T>? input) => ExpressionExecutionContext.Get(input);
 16}