< Summary

Information
Class: Elsa.Expressions.JavaScript.Models.JavaScriptExpression
Assembly: Elsa.Expressions.JavaScript
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Expressions.JavaScript/Models/Expression.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 14
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.Expressions.JavaScript/Models/Expression.cs

#LineLine coverage
 1using Elsa.Expressions.Models;
 2
 3namespace Elsa.Expressions.JavaScript.Models;
 4
 5/// <summary>
 6/// Represents an expression.
 7/// </summary>
 8public class JavaScriptExpression
 9{
 10    /// <summary>
 11    /// Initializes a new instance of the <see cref="Expression"/> representing a JavaScript expression.
 12    /// </summary>
 2313    public static Expression Create(string value) => new("JavaScript", value);
 14}

Methods/Properties

Create(System.String)