< Summary

Information
Class: Elsa.Dsl.ElsaScript.Ast.ProgramNode
Assembly: Elsa.Dsl.ElsaScript
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Dsl.ElsaScript/Ast/ProgramNode.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
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
get_GlobalUseStatements()100%11100%
get_Workflows()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Dsl.ElsaScript/Ast/ProgramNode.cs

#LineLine coverage
 1namespace Elsa.Dsl.ElsaScript.Ast;
 2
 3/// <summary>
 4/// Represents the root of an ElsaScript program, which can contain:
 5/// - Global use statements
 6/// - One or more workflow declarations
 7/// </summary>
 8public class ProgramNode : AstNode
 9{
 10    /// <summary>
 11    /// Global use statements (imports and expression language settings) that apply to all workflows.
 12    /// </summary>
 6313    public List<UseNode> GlobalUseStatements { get; set; } = [];
 14
 15    /// <summary>
 16    /// Workflow declarations in this program.
 17    /// </summary>
 8318    public List<WorkflowNode> Workflows { get; set; } = [];
 19}