< Summary - Kestrun — Combined Coverage

Information
Class: OpenApiResponseHeaderRefAttribute
Assembly: Kestrun.Annotations
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun.Annotations/OpenApi/Attributes/OpenApiResponseHeaderRefAttribute.cs
Tag: Kestrun/Kestrun@476fba12d8b4c7db258e9ff68fad76f0d7e4e042
Line coverage
75%
Covered lines: 3
Uncovered lines: 1
Coverable lines: 4
Total lines: 21
Line coverage: 75%
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/25/2025 - 19:20:44 Line coverage: 0% (0/4) Total lines: 21 Tag: Kestrun/Kestrun@5251f12f253e29f8a1dfb77edc2ef50b90a4f26f03/26/2026 - 03:54:59 Line coverage: 75% (3/4) Total lines: 21 Tag: Kestrun/Kestrun@844b5179fb0492dc6b1182bae3ff65fa7365521d

Coverage delta

Coverage delta 75 -75

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_StatusCode()100%11100%
get_Key()100%11100%
get_ReferenceId()100%11100%
get_Inline()100%210%

File(s)

/home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun.Annotations/OpenApi/Attributes/OpenApiResponseHeaderRefAttribute.cs

#LineLine coverage
 1[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
 2public sealed class OpenApiResponseHeaderRefAttribute : KestrunAnnotation, IOpenApiResponseHeaderAttribute
 3{
 4    /// <inheritdoc/>
 75    public string StatusCode { get; set; } = "default";
 6
 7    /// <summary>
 8    /// The local name under components.headers.
 9    /// </summary>
 510    public required string Key { get; set; }
 11
 12    /// <summary>
 13    /// The reference ID under components.headers.
 14    /// </summary>
 315    public required string ReferenceId { get; set; }
 16
 17    /// <summary>
 18    /// If true, the schema will be inlined rather than referenced.
 19    /// </summary>
 020    public bool Inline { get; set; }
 21}