< Summary

Information
Class: Elsa.Extensions.WorkflowsApiFeatureExtensions
Assembly: Elsa.Workflows.Api
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Api/Extensions/WorkflowsApiFeatureExtensions.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 2
Coverable lines: 2
Total lines: 19
Line coverage: 0%
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
AddFastEndpointsAssembly(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Api/Extensions/WorkflowsApiFeatureExtensions.cs

#LineLine coverage
 1using Elsa.Workflows.Api.Features;
 2
 3// ReSharper disable once CheckNamespace
 4namespace Elsa.Extensions;
 5
 6/// <summary>
 7/// Provides extensions to <see cref="WorkflowsApiFeature"/>.
 8/// </summary>
 9public static class WorkflowsApiFeatureExtensions
 10{
 11    /// <summary>
 12    /// Adds FastEndpoint endpoints from the assembly containing <typeparamref name="TMarker"/>.
 13    /// </summary>
 14    public static WorkflowsApiFeature AddFastEndpointsAssembly<TMarker>(this WorkflowsApiFeature feature)
 15    {
 016        feature.Module.AddFastEndpointsAssembly<TMarker>();
 017        return feature;
 18    }
 19}