< Summary

Information
Class: Elsa.Workflows.Models.OutputDescriptor
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Models/OutputDescriptor.cs
Line coverage
100%
Covered lines: 22
Uncovered lines: 0
Coverable lines: 22
Total lines: 39
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
.ctor()100%11100%
.ctor(...)100%11100%

File(s)

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

#LineLine coverage
 1using System.Reflection;
 2using System.Text.Json.Serialization;
 3
 4namespace Elsa.Workflows.Models;
 5
 6/// <summary>
 7/// A descriptor of an activity's output property.
 8/// </summary>
 9public class OutputDescriptor : PropertyDescriptor
 10{
 11    /// <inheritdoc />
 12    [JsonConstructor]
 19213    public OutputDescriptor()
 14    {
 19215    }
 16
 17    /// <inheritdoc />
 446818    public OutputDescriptor(
 446819        string name,
 446820        string displayName,
 446821        Type type,
 446822        Func<IActivity, object?> valueGetter,
 446823        Action<IActivity, object?> valueSetter,
 446824        PropertyInfo? propertyInfo = default,
 446825        string? description = default,
 446826        bool? isBrowsable = default,
 446827        bool? isSerializable = default)
 28    {
 446829        Name = name;
 446830        DisplayName = displayName;
 446831        Type = type;
 446832        ValueGetter = valueGetter;
 446833        ValueSetter = valueSetter;
 446834        Description = description;
 446835        IsBrowsable = isBrowsable;
 446836        IsSerializable = isSerializable;
 446837        PropertyInfo = propertyInfo;
 446838    }
 39}