< Summary

Information
Class: Elsa.Expressions.Models.Brackets
Assembly: Elsa.Expressions
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Expressions/Models/Brackets.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 37
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_Open()100%210%
get_Close()100%210%
.ctor(...)100%210%
get_Angle()100%210%
get_Square()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Expressions/Models/Brackets.cs

#LineLine coverage
 1namespace Elsa.Expressions.Models;
 2
 3/// <summary>
 4/// Represents a bracket pair.
 5/// </summary>
 6public class Brackets
 7{
 8    /// <summary>
 9    /// Gets the opening bracket.
 10    /// </summary>
 011    public char Open { get; }
 12    /// <summary>
 13    /// Gets the closing bracket.
 14    /// </summary>
 015    public char Close { get; }
 16
 17    /// <summary>
 18    /// Initializes a new instance of the <see cref="Brackets"/> class.
 19    /// </summary>
 20    /// <param name="open">The opening bracket.</param>
 21    /// <param name="close">The closing bracket.</param>
 022    public Brackets(char open, char close)
 23    {
 024        Open = open;
 025        Close = close;
 026    }
 27
 28    /// <summary>
 29    /// An angle bracket pair.
 30    /// </summary>
 031    public static Brackets Angle => new('<', '>');
 32
 33    /// <summary>
 34    /// A square bracket pair.
 35    /// </summary>
 036    public static Brackets Square => new('[', ']');
 37}