< Summary

Information
Class: Elsa.Expressions.JavaScript.TypeDefinitions.Models.TypeDefinition
Assembly: Elsa.Expressions.JavaScript
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Expressions.JavaScript/TypeDefinitions/Models/TypeDefinition.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 28
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_DeclarationKeyword()100%210%
get_Name()100%210%
get_Properties()100%210%
get_Methods()100%210%

File(s)

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

#LineLine coverage
 1namespace Elsa.Expressions.JavaScript.TypeDefinitions.Models;
 2
 3
 4/// <summary>
 5/// A base type that represents a type.
 6/// </summary>
 7public sealed class TypeDefinition
 8{
 9    /// <summary>
 10    /// The keyword that declares this type. E.g. "class", "type" or "interface".
 11    /// </summary>
 012    public string DeclarationKeyword { get; set; } = "class";
 13
 14    /// <summary>
 15    /// The name of the type.
 16    /// </summary>
 017    public string Name { get; set; } = default!;
 18
 19    /// <summary>
 20    /// A list of fields.
 21    /// </summary>
 022    public ICollection<PropertyDefinition> Properties { get; set; } = new List<PropertyDefinition>();
 23
 24    /// <summary>
 25    /// A list of methods.
 26    /// </summary>
 027    public ICollection<FunctionDefinition> Methods { get; set; } = new List<FunctionDefinition>();
 28}