< Summary - Kestrun — Combined Coverage

Information
Class: OpenApiLinkRefAttribute
Assembly: Kestrun.Annotations
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun.Annotations/OpenApi/Attributes/OpenApiLinkRefAttribute.cs
Tag: Kestrun/Kestrun@ca54e35c77799b76774b3805b6f075cdbc0c5fbe
Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
Total lines: 16
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/2) Total lines: 11 Tag: Kestrun/Kestrun@826bf9dcf9db118c5de4c78a3259bce9549f0dcd12/25/2025 - 19:20:44 Line coverage: 0% (0/3) Total lines: 16 Tag: Kestrun/Kestrun@5251f12f253e29f8a1dfb77edc2ef50b90a4f26f

Metrics

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

File(s)

/home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun.Annotations/OpenApi/Attributes/OpenApiLinkRefAttribute.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.Field | AttributeTargets.Property, AllowMultiple = true)]
 7public sealed class OpenApiLinkRefAttribute : KestrunAnnotation
 8{
 09    public required string Key { get; set; }      // local name under response.links
 010    public required string ReferenceId { get; set; } // components/links id
 11
 12    /// <summary>
 13    /// If true, the schema will be inlined rather than referenced.
 14    /// </summary>
 015    public bool Inline { get; set; }
 16}