< Summary - Kestrun — Combined Coverage

Information
Class: OpenApiResponseLinkRefAttribute
Assembly: Kestrun.Annotations
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun.Annotations/OpenApi/Attributes/OpenApiResponseLinkRefAttribute.cs
Tag: Kestrun/Kestrun@ca54e35c77799b76774b3805b6f075cdbc0c5fbe
Line coverage
100%
Covered lines: 4
Uncovered lines: 0
Coverable lines: 4
Total lines: 20
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

Coverage history

Coverage history 0 25 50 75 100 12/25/2025 - 19:20:44 Line coverage: 0% (0/4) Total lines: 20 Tag: Kestrun/Kestrun@5251f12f253e29f8a1dfb77edc2ef50b90a4f26f01/09/2026 - 06:56:42 Line coverage: 100% (4/4) Total lines: 20 Tag: Kestrun/Kestrun@94f8107dc592fa7eaec45c0dd5f9fffbd41bc145

Metrics

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

File(s)

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

#LineLine coverage
 1/// <summary>
 2/// Place on a property or field to indicate it is a link reference.
 3/// </summary>
 4/// <param name="key">The local name under response.links</param>
 5/// <param name="refId">The components/links id</param>
 6[AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
 7public sealed class OpenApiResponseLinkRefAttribute : KestrunAnnotation
 8{
 9    /// <summary>
 10    /// The HTTP status code for the response.
 11    /// </summary>
 1012    public string StatusCode { get; set; } = "default";
 913    public required string Key { get; set; }      // local name under response.links
 1514    public required string ReferenceId { get; set; } // components/links id
 15
 16    /// <summary>
 17    /// If true, the schema will be inlined rather than referenced.
 18    /// </summary>
 719    public bool Inline { get; set; }
 20}