< Summary - Kestrun — Combined Coverage

Information
Class: OpenApiPath
Assembly: Kestrun.Annotations
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun.Annotations/OpenApi/OpenApiPath.cs
Tag: Kestrun/Kestrun@0d738bf294e6281b936d031e1979d928007495ff
Line coverage
0%
Covered lines: 0
Uncovered lines: 9
Coverable lines: 9
Total lines: 40
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

Coverage history

Coverage history 0 25 50 75 100 12/12/2025 - 17:27:19 Line coverage: 0% (0/8) Total lines: 35 Tag: Kestrun/Kestrun@826bf9dcf9db118c5de4c78a3259bce9549f0dcd12/14/2025 - 20:04:52 Line coverage: 0% (0/9) Total lines: 40 Tag: Kestrun/Kestrun@a05ac8de57c6207e227b92ba360e9d58869ac80a

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor()100%210%
get_HttpVerb()100%210%
get_Pattern()100%210%
get_Summary()100%210%
get_Description()100%210%
get_OperationId()100%210%
get_Tags()100%210%
get_Deprecated()100%210%
get_CorsPolicy()100%210%

File(s)

/home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun.Annotations/OpenApi/OpenApiPath.cs

#LineLine coverage
 1/// <summary>
 2/// Attribute to specify OpenAPI path metadata for a route.
 3/// </summary>
 4[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, Inherited = false, AllowMultiple = true)]
 05public sealed class OpenApiPath() : KestrunAnnotation
 6{
 07    public string? HttpVerb { get; set; }
 8    /// <summary>
 9    /// The relative path for the route in OpenAPI documentation.
 10    /// </summary>
 011    public string? Pattern { get; init; }
 12
 13    /// <summary>
 14    /// A brief summary of the route for OpenAPI documentation.
 15    /// </summary>
 016    public string? Summary { get; set; }
 17    /// <summary>
 18    /// A detailed description of the route for OpenAPI documentation.
 19    /// </summary>
 020    public string? Description { get; set; }
 21
 22    /// <summary>
 23    /// The unique operation ID for the route in OpenAPI documentation.
 24    /// </summary>
 025    public string? OperationId { get; set; }
 26    /// <summary>
 27    /// Comma-separated tags for OpenAPI documentation.
 28    /// </summary>
 029    public string[] Tags { get; set; } = [];
 30
 31    /// <summary>
 32    /// Indicates whether the operation is deprecated in OpenAPI documentation.
 33    /// </summary>
 034    public bool Deprecated { get; set; }
 35
 36    /// <summary>
 37    /// The CORS policy name for the route in OpenAPI documentation.
 38    /// </summary>
 039    public string? CorsPolicy { get; set; }
 40}