< Summary - Kestrun — Combined Coverage

Information
Class: OpenApiResponseRefAttribute
Assembly: Kestrun.Annotations
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun.Annotations/OpenApi/Attributes/OpenApiResponseRefAttribute.cs
Tag: Kestrun/Kestrun@ca54e35c77799b76774b3805b6f075cdbc0c5fbe
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 27
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/4) Total lines: 20 Tag: Kestrun/Kestrun@826bf9dcf9db118c5de4c78a3259bce9549f0dcd12/23/2025 - 19:23:04 Line coverage: 0% (0/4) Total lines: 27 Tag: Kestrun/Kestrun@d062f281460e6c123c372aef61f8d957bbb6c901

Metrics

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

File(s)

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

#LineLine coverage
 1/// <summary>
 2/// Place on a property or field to indicate it is a response reference.
 3/// </summary>
 4/// <param name="statusCode">The HTTP status code for the response.</param>
 5/// <param name="refId">The components/responses id</param>
 6[AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
 7public sealed class OpenApiResponseRefAttribute : KestrunAnnotation, IOpenApiResponseAttribute
 8{
 9    /// <summary>
 10    /// The HTTP status code for the response.
 11    /// </summary>
 012    public required string StatusCode { get; set; }
 13
 14    /// <summary>
 15    /// The components/responses id
 16    /// </summary>
 017    public required string ReferenceId { get; set; }
 18    /// <summary>
 19    /// Description of the response reference.
 20    /// </summary>
 021    public string? Description { get; set; }
 22
 23    /// <summary>
 24    /// If true, the schema will be inlined rather than referenced.
 25    /// </summary>
 026    public bool Inline { get; set; }
 27}