< Summary - Kestrun — Combined Coverage

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

Metrics

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

File(s)

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

#LineLine coverage
 1/// <summary>
 2/// OpenAPI Parameter metadata for query/path/header/cookie items.
 3/// Apply on properties inside a class marked with <see cref="OpenApiModelKindAttribute"/> = Parameters.
 4/// </summary>
 5[AttributeUsage(AttributeTargets.Property | AttributeTargets.Parameter, AllowMultiple = false)]
 6public sealed class OpenApiAuthorizationAttribute : KestrunAnnotation
 7{
 8    // TODO: Implement reader for this attribute in OpenApi generator
 9    /// <summary>
 10    /// The name of the security scheme to apply.
 11    /// </summary>
 012    public string? Scheme { get; set; }
 13
 14    /// <summary>
 15    /// Optional description for the authentication requirement.
 16    /// Comma-separated list of policies to apply.
 17    /// </summary>
 018    public string? Policies { get; set; }
 19}

Methods/Properties

get_Scheme()
get_Policies()