< Summary

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

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Abstractions/SerializationOptionsConfiguratorBase.cs

#LineLine coverage
 1using System.Text.Json;
 2using System.Text.Json.Serialization.Metadata;
 3using Elsa.Common;
 4
 5namespace Elsa.Workflows;
 6
 7/// <summary>
 8/// A base class for <see cref="ISerializationOptionsConfigurator"/> implementations.
 9/// </summary>
 10public abstract class SerializationOptionsConfiguratorBase : ISerializationOptionsConfigurator
 11{
 12    /// <inheritdoc />
 13    public virtual void Configure(JsonSerializerOptions options)
 14    {
 135915    }
 16
 17    /// <inheritdoc />
 18    public virtual IEnumerable<Action<JsonTypeInfo>> GetModifiers()
 19    {
 290120        yield break;
 21    }
 22}