< Summary - Kestrun — Combined Coverage

Information
Class: OpenApiPatternPropertiesAttribute
Assembly: Kestrun.Annotations
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun.Annotations/OpenApi/Components/OpenApiPatternPropertiesAttribute.cs
Tag: Kestrun/Kestrun@d9261bd752e45afa789d10bc0c82b7d5724d9589
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 21
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 02/05/2026 - 00:28:18 Line coverage: 100% (2/2) Total lines: 21 Tag: Kestrun/Kestrun@d9261bd752e45afa789d10bc0c82b7d5724d9589

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_KeyPattern()100%11100%
.ctor()100%11100%

File(s)

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

#LineLine coverage
 1
 2/// <summary>
 3/// Rich OpenAPI schema metadata for a class.
 4/// Apply to:
 5/// <list type="bullet">
 6/// <item><description>Class (object-level): configure pattern-based property schemas (e.g., set <see cref="Required"/> 
 7/// </list>
 8/// </summary>
 9[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)]
 10public sealed class OpenApiPatternPropertiesAttribute : OpenApiProperties
 11{
 12    /// <summary>
 13    /// ECMA-262 compliant regex pattern for property names.
 14    /// </summary>
 3215    public required string KeyPattern { get; set; }
 16
 17    /// <summary>
 18    /// Initializes a new instance of the <see cref="OpenApiPatternPropertiesAttribute"/> class.
 19    /// </summary>
 4620    public OpenApiPatternPropertiesAttribute() => SchemaType = typeof(string);
 21}

Methods/Properties

get_KeyPattern()
.ctor()