< Summary - Kestrun — Combined Coverage

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Name()100%210%
get_Default()100%210%
get_Enum()100%210%
get_Description()100%210%

File(s)

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

#LineLine coverage
 1/// <summary>
 2/// Place on a property or field to indicate it is a server variable.
 3/// </summary>
 4[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = true, Inherited = false)]
 5public sealed class OpenApiServerVariableAttribute : KestrunAnnotation
 6{
 7    /// <summary>The placeholder name (e.g., "region" for {region}).</summary>
 08    public string? Name { get; set; }
 9
 10    /// <summary>Default value for the variable.</summary>
 011    public string? Default { get; set; }
 12
 13    /// <summary>Optional allowed values.</summary>
 014    public string[]? Enum { get; set; }
 15
 16    /// <summary>Description of the variable.</summary>
 017    public string? Description { get; set; }
 18}