< Summary

Information
Class: Elsa.Http.UIHints.HttpEndpointPathUIHandler
Assembly: Elsa.Http
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Http/UIHints/HttpEndpointPathUIHandler.cs
Line coverage
100%
Covered lines: 11
Uncovered lines: 0
Coverable lines: 11
Total lines: 28
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%
GetUIPropertiesAsync(...)100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Http/UIHints/HttpEndpointPathUIHandler.cs

#LineLine coverage
 1using System.Reflection;
 2using Elsa.Workflows;
 3using Elsa.Workflows.UIHints;
 4using Elsa.Workflows.UIHints.SingleLine;
 5
 6namespace Elsa.Http.UIHints;
 7
 8/// <summary>
 9/// Provides additional options for the Path input field.
 10/// </summary>
 112211public class HttpEndpointPathUIHandler(IHttpEndpointBasePathProvider httpEndpointBasePathProvider) : PropertyUIHandlerBa
 12{
 13    /// <inheritdoc />
 14    public override ValueTask<IDictionary<string, object>> GetUIPropertiesAsync(PropertyInfo propertyInfo, object? conte
 15    {
 1016        var completeBaseUrl = httpEndpointBasePathProvider.GetBasePath();
 17
 1018        return new(new Dictionary<string, object>
 1019        {
 1020            [InputUIHints.SingleLine] = new SingleLineProps
 1021            {
 1022                AdornmentText = completeBaseUrl,
 1023                EnableCopyAdornment = true
 1024            },
 1025            ["Refresh"] = true
 1026        });
 27    }
 28}