< Summary

Information
Class: Elsa.Workflows.Models.OutputConverterConfiguration
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Models/OutputConverterConfiguration.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 28
Line coverage: 100%
Branch coverage
75%
Covered branches: 3
Total branches: 4
Branch coverage: 75%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)75%44100%
get_Id()100%11100%
get_Settings()100%11100%

File(s)

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

#LineLine coverage
 1using System.Text.Json;
 2
 3namespace Elsa.Workflows.Models;
 4
 5/// <summary>
 6/// Selects an output converter and provides its per-binding settings.
 7/// </summary>
 8public sealed record OutputConverterConfiguration
 9{
 10    /// <summary>
 11    /// Initializes a new instance of the <see cref="OutputConverterConfiguration"/> class.
 12    /// </summary>
 2113    public OutputConverterConfiguration(string id, JsonElement? settings = null)
 14    {
 2115        Id = id ?? string.Empty;
 2116        Settings = settings?.Clone();
 2117    }
 18
 19    /// <summary>
 20    /// The stable converter ID.
 21    /// </summary>
 4222    public string Id { get; }
 23
 24    /// <summary>
 25    /// Optional immutable JSON settings.
 26    /// </summary>
 2927    public JsonElement? Settings { get; }
 28}