< Summary

Information
Class: Elsa.Workflows.Attributes.PortAttribute
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Attributes/PortAttribute.cs
Line coverage
60%
Covered lines: 6
Uncovered lines: 4
Coverable lines: 10
Total lines: 22
Line coverage: 60%
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%11100%
.ctor(...)100%210%
get_Name()100%11100%
get_DisplayName()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Attributes/PortAttribute.cs

#LineLine coverage
 1using System.Runtime.CompilerServices;
 2
 3namespace Elsa.Workflows.Attributes;
 4
 5[AttributeUsage(AttributeTargets.Property)]
 6public class PortAttribute : Attribute
 7{
 38858    public PortAttribute([CallerMemberName] string? name = default)
 9    {
 388510        Name = name;
 388511        DisplayName = name;
 388512    }
 13
 014    public PortAttribute(string name, string displayName)
 15    {
 016        Name = name;
 017        DisplayName = name;
 018    }
 19
 777020    public string? Name { get; set; }
 776921    public string? DisplayName { get; set; }
 22}