< Summary - Kestrun — Combined Coverage

Information
Class: OpenApiPathAttribute
Assembly: Kestrun.Annotations
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun.Annotations/OpenApi/Paths/OpenApiPath.cs
Tag: Kestrun/Kestrun@ca54e35c77799b76774b3805b6f075cdbc0c5fbe
Line coverage
0%
Covered lines: 0
Uncovered lines: 9
Coverable lines: 9
Total lines: 35
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/27/2025 - 20:05:22 Line coverage: 0% (0/9) Total lines: 35 Tag: Kestrun/Kestrun@dec745d62965b14e1ed62c0f3ec815e60e53366f

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
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_DocumentId()100%210%
get_CorsPolicy()100%210%

File(s)

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

#LineLine coverage
 1/// <summary>
 2/// Attribute to specify OpenAPI path metadata for a route.
 3/// </summary>
 4[AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = true)]
 5public sealed class OpenApiPathAttribute : KestrunAnnotation, IOpenApiPathAttribute
 6{
 7    /// <inheritdoc/>
 08    public string? HttpVerb { get; set; }
 9
 10    /// <inheritdoc/>
 011    public string? Pattern { get; init; }
 12
 13    /// <inheritdoc/>
 014    public string? Summary { get; set; }
 15
 16    /// <inheritdoc/>
 017    public string? Description { get; set; }
 18
 19    /// <inheritdoc/>
 020    public string? OperationId { get; set; }
 21
 22    /// <inheritdoc/>
 023    public string[] Tags { get; set; } = [];
 24
 25    /// <inheritdoc/>
 026    public bool Deprecated { get; set; }
 27
 28    /// <inheritdoc/>
 029    public string[]? DocumentId { get; set; }
 30
 31    /// <summary>
 32    /// The CORS policy name for the route in OpenAPI documentation.
 33    /// </summary>
 034    public string? CorsPolicy { get; set; }
 35}