< Summary

Information
Class: Elsa.Expressions.JavaScript.TypeDefinitions.Models.VariableDefinition
Assembly: Elsa.Expressions.JavaScript
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Expressions.JavaScript/TypeDefinitions/Models/VariableDefinition.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 20
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
.ctor()100%210%
.ctor(...)100%210%
get_Name()100%210%
get_Type()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Expressions.JavaScript/TypeDefinitions/Models/VariableDefinition.cs

#LineLine coverage
 1namespace Elsa.Expressions.JavaScript.TypeDefinitions.Models;
 2
 3/// <summary>
 4/// Represents a variable definition.
 5/// </summary>
 6public class VariableDefinition
 7{
 08    public VariableDefinition()
 9    {
 010    }
 11
 012    public VariableDefinition(string name, string type)
 13    {
 014        Name = name;
 015        Type = type;
 016    }
 17
 018    public string Name { get; set; } = default!;
 019    public string Type { get; set; } = default!;
 20}