< Summary

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

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Features/FlowchartFeature.cs

#LineLine coverage
 1using Elsa.Extensions;
 2using Elsa.Features.Abstractions;
 3using Elsa.Features.Services;
 4using Elsa.Workflows.Activities.Flowchart.Models;
 5using Elsa.Workflows.Activities.Flowchart.Serialization;
 6
 7namespace Elsa.Workflows.Features;
 8
 9/// <summary>
 10/// Adds support for the Flowchart activity.
 11/// </summary>
 12public class FlowchartFeature : FeatureBase
 13{
 14    /// <inheritdoc />
 11415    public FlowchartFeature(IModule module) : base(module)
 16    {
 11417    }
 18
 19    /// <inheritdoc />
 20    public override void Apply()
 21    {
 11422        Services.AddSerializationOptionsConfigurator<FlowchartSerializationOptionConfigurator>();
 23
 11424    }
 25
 26    public override void Configure()
 27    {
 11428        Module.AddTypeAlias<FlowScope>("FlowScope");
 11429    }
 30}