< Summary

Information
Class: Elsa.Dsl.ElsaScript.Ast.SwitchNode
Assembly: Elsa.Dsl.ElsaScript
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Dsl.ElsaScript/Ast/SwitchNode.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
Total lines: 22
Line coverage: 0%
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_Expression()100%210%
get_Cases()100%210%
get_Default()100%210%

File(s)

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

#LineLine coverage
 1namespace Elsa.Dsl.ElsaScript.Ast;
 2
 3/// <summary>
 4/// Represents a switch statement.
 5/// </summary>
 6public class SwitchNode : StatementNode
 7{
 8    /// <summary>
 9    /// The switch expression.
 10    /// </summary>
 011    public ExpressionNode Expression { get; set; } = null!;
 12
 13    /// <summary>
 14    /// The cases.
 15    /// </summary>
 016    public List<SwitchCaseNode> Cases { get; set; } = [];
 17
 18    /// <summary>
 19    /// The optional default case.
 20    /// </summary>
 021    public StatementNode? Default { get; set; }
 22}