< Summary - Kestrun — Combined Coverage

Information
Class: OpenApiPropertyAttribute
Assembly: Kestrun.Annotations
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun.Annotations/OpenApi/Attributes/OpenApiPropertyAttribute.cs
Tag: Kestrun/Kestrun@0d738bf294e6281b936d031e1979d928007495ff
Line coverage
0%
Covered lines: 0
Uncovered lines: 1
Coverable lines: 1
Total lines: 19
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/1) Total lines: 19 Tag: Kestrun/Kestrun@826bf9dcf9db118c5de4c78a3259bce9549f0dcd

Metrics

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

File(s)

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

#LineLine coverage
 1
 2/// <summary>
 3/// Rich OpenAPI schema metadata for a property or a class.
 4/// Apply to:
 5/// <list type="bullet">
 6/// <item><description>Class (object-level): set <see cref="Required"/> array, XML hints, discriminator, etc.</descripti
 7/// <item><description>Property (member-level): set description, format, constraints, enum, etc.</description></item>
 8/// </list>
 9/// </summary>
 10[AttributeUsage(AttributeTargets.Property | AttributeTargets.Parameter | AttributeTargets.Field, Inherited = true, Allow
 11public sealed class OpenApiPropertyAttribute : OpenApiProperties
 12{
 13    /// <summary>
 14    /// The HTTP status code (e.g., "200", "400", "404").
 15    /// This is only used when applied to method parameters to
 16    /// associate the property with a specific response.
 17    /// </summary>
 018    public string? StatusCode { get; set; }
 19}

Methods/Properties

get_StatusCode()