< Summary

Information
Class: Elsa.Http.HttpRouteData
Assembly: Elsa.Http
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Http/Models/HttpRouteData.cs
Line coverage
57%
Covered lines: 8
Uncovered lines: 6
Coverable lines: 14
Total lines: 31
Line coverage: 57.1%
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%
.ctor(...)100%11100%
.ctor(...)100%210%
.ctor(...)100%210%
get_Route()100%11100%
get_DataTokens()100%11100%
get_RouteValues()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Http/Models/HttpRouteData.cs

#LineLine coverage
 1using JetBrains.Annotations;
 2using Microsoft.AspNetCore.Routing;
 3
 4namespace Elsa.Http;
 5
 6[UsedImplicitly]
 7public class HttpRouteData
 8{
 839    public HttpRouteData()
 10    {
 8311    }
 12
 8313    public HttpRouteData(string route) : this()
 14    {
 8315        Route = route;
 8316    }
 17
 018    public HttpRouteData(string route, RouteValueDictionary dataTokens) : this(route)
 19    {
 020        DataTokens = dataTokens;
 021    }
 22
 023    public HttpRouteData(string route, RouteValueDictionary dataTokens, RouteValueDictionary routeValues) : this(route, 
 24    {
 025        RouteValues = routeValues;
 026    }
 27
 191828    public string Route { get; set; } = default!;
 8329    public RouteValueDictionary DataTokens { get; set; } = new();
 8330    public RouteValueDictionary RouteValues { get; set; } = new();
 31}