< Summary - Kestrun — Combined Coverage

Information
Class: OpenApiExampleAttribute
Assembly: Kestrun.Annotations
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun.Annotations/OpenApi/Attributes/OpenApiExampleAttribute.cs
Tag: Kestrun/Kestrun@ca54e35c77799b76774b3805b6f075cdbc0c5fbe
Line coverage
0%
Covered lines: 0
Uncovered lines: 5
Coverable lines: 5
Total lines: 28
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: 100% (5/5) Total lines: 28 Tag: Kestrun/Kestrun@826bf9dcf9db118c5de4c78a3259bce9549f0dcd12/25/2025 - 19:20:44 Line coverage: 0% (0/5) Total lines: 28 Tag: Kestrun/Kestrun@5251f12f253e29f8a1dfb77edc2ef50b90a4f26f

Metrics

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

File(s)

/home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun.Annotations/OpenApi/Attributes/OpenApiExampleAttribute.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.Field | AttributeTargets.Property, AllowMultiple = true)]
 6public sealed class OpenApiExampleAttribute : KestrunAnnotation
 7{
 8    /// <summary>
 9    /// Optional component name override for components.examples key.
 10    /// </summary>
 011    public string? Key { get; set; }
 12
 13    /// <summary>Short summary for the example.</summary>
 014    public string? Summary { get; set; }
 15
 16    /// <summary>Longer description for the example.</summary>
 017    public string? Description { get; set; }
 18
 19    /// <summary>
 20    /// Example value for the example.
 21    /// </summary>
 022    public object? Value { get; set; }
 23
 24    /// <summary>
 25    /// External example URI. If provided, Value is usually omitted per spec.
 26    /// </summary>
 027    public string? ExternalValue { get; set; }
 28}