< Summary

Information
Class: Elsa.Dsl.ElsaScript.Ast.ActivityInvocationNode
Assembly: Elsa.Dsl.ElsaScript
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Dsl.ElsaScript/Ast/ActivityInvocationNode.cs
Line coverage
66%
Covered lines: 2
Uncovered lines: 1
Coverable lines: 3
Total lines: 22
Line coverage: 66.6%
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_ActivityName()100%11100%
get_Arguments()100%11100%
get_ResultVariable()100%210%

File(s)

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

#LineLine coverage
 1namespace Elsa.Dsl.ElsaScript.Ast;
 2
 3/// <summary>
 4/// Represents an activity invocation.
 5/// </summary>
 6public class ActivityInvocationNode : StatementNode
 7{
 8    /// <summary>
 9    /// The activity name (e.g., "WriteLine", "SendEmail").
 10    /// </summary>
 9511    public string ActivityName { get; set; } = string.Empty;
 12
 13    /// <summary>
 14    /// The arguments passed to the activity.
 15    /// </summary>
 9716    public List<ArgumentNode> Arguments { get; set; } = [];
 17
 18    /// <summary>
 19    /// Optional variable to capture the result.
 20    /// </summary>
 021    public string? ResultVariable { get; set; }
 22}