< Summary - Kestrun — Combined Coverage

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

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Key()100%11100%
get_Summary()100%11100%
get_Description()100%11100%
get_ExternalValue()100%11100%

File(s)

/home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun.Annotations/OpenApi/Components/OpenApiExampleComponent.cs

#LineLine coverage
 1/// <summary>
 2/// Specifies metadata for an OpenAPI Example object. Can be applied to classes
 3/// to contribute entries under components.examples.
 4/// </summary>
 5[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
 6public sealed class OpenApiExampleComponent : KestrunAnnotation
 7{
 8    /// <summary>
 9    /// Optional component name override for components.examples key.
 10    /// If omitted, generator uses class name (class-level) or member name (member-level),
 11    /// possibly prefixed by class name depending on JoinClassName.
 12    /// </summary>
 1213    public string? Key { get; set; }
 14
 15    /// <summary>Short summary for the example.</summary>
 816    public string? Summary { get; set; }
 17
 18    /// <summary>Longer description for the example.</summary>
 819    public string? Description { get; set; }
 20
 21    /// <summary>
 22    /// External example URI. If provided, Value is usually omitted per spec.
 23    /// </summary>
 424    public string? ExternalValue { get; set; }
 25}