< Summary

Information
Class: Elsa.Workflows.Models.Port
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Models/Port.cs
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 27
Line coverage: 100%
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_Name()100%11100%
get_DisplayName()100%11100%
get_Type()100%11100%
get_IsBrowsable()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Models/Port.cs

#LineLine coverage
 1namespace Elsa.Workflows.Models;
 2
 3/// <summary>
 4/// Represents a port on an activity.
 5/// </summary>
 6public class Port
 7{
 8    /// <summary>
 9    /// Gets or sets the name of the port.
 10    /// </summary>
 764411    public string Name { get; set; } = default!;
 12
 13    /// <summary>
 14    /// Gets or sets the display name of the port.
 15    /// </summary>
 614716    public string? DisplayName { get; set; }
 17
 18    /// <summary>
 19    /// Gets or sets the type of the port.
 20    /// </summary>
 614721    public PortType Type { get; set; }
 22
 23    /// <summary>
 24    /// Gets or sets the visibility of the port.
 25    /// </summary>
 1079726    public bool IsBrowsable { get; set; } = true;
 27}