< Summary

Information
Class: Elsa.Workflows.Activities.Flowchart.Activities.FlowNode
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Activities/Flowchart/Activities/FlowNode.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 5
Coverable lines: 5
Total lines: 30
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
.ctor(...)100%210%
get_Body()100%210%
ExecuteAsync()100%210%
OnBodyCompletedAsync()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Activities/Flowchart/Activities/FlowNode.cs

#LineLine coverage
 1using System.Runtime.CompilerServices;
 2using Elsa.Workflows.Attributes;
 3using JetBrains.Annotations;
 4
 5namespace Elsa.Workflows.Activities.Flowchart.Activities;
 6
 7/// <summary>
 8/// A simple container that executes the specified activity.
 9/// </summary>
 10[Activity("Elsa", "Flow", "A simple container that executes the specified activity.", DisplayName = "Container")]
 11[PublicAPI]
 12public class FlowNode : Activity
 13{
 14
 15    /// <inheritdoc />
 016    public FlowNode([CallerFilePath] string? source = null, [CallerLineNumber] int? line = null) : base(source, line)
 17    {
 018    }
 19
 20    /// <summary>
 21    /// The activity to execute.
 22    /// </summary>
 23    [Port]
 024    public IActivity? Body { get; set; }
 25
 26    /// <inheritdoc />
 027    protected override async ValueTask ExecuteAsync(ActivityExecutionContext context) => await context.ScheduleActivityA
 28
 029    private async ValueTask OnBodyCompletedAsync(ActivityCompletedContext context) => await context.TargetContext.Comple
 30}