< Summary

Information
Class: Elsa.Secrets.Expressions.SecretExpression
Assembly: Elsa.Secrets
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Secrets/Expressions/SecretExpression.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 19
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
Create(...)100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Secrets/Expressions/SecretExpression.cs

#LineLine coverage
 1using Elsa.Expressions.Models;
 2
 3namespace Elsa.Secrets.Expressions;
 4
 5/// <summary>
 6/// Creates Secret expressions that store references to named secrets.
 7/// </summary>
 8public static class SecretExpression
 9{
 10    /// <summary>
 11    /// The Secret expression type name.
 12    /// </summary>
 13    public const string TypeName = "Secret";
 14
 15    /// <summary>
 16    /// Creates a Secret expression for the specified reference.
 17    /// </summary>
 718    public static Expression Create(SecretReference reference) => new(TypeName, reference);
 19}