< Summary - Kestrun — Combined Coverage

Information
Class: InternalPowershellAttribute
Assembly: Kestrun.Annotations
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun.Annotations/OpenApi/InternalPowershellAttribute.cs
Tag: Kestrun/Kestrun@ca54e35c77799b76774b3805b6f075cdbc0c5fbe
Line coverage
100%
Covered lines: 11
Uncovered lines: 0
Coverable lines: 11
Total lines: 50
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 01/08/2026 - 02:20:28 Line coverage: 100% (11/11) Total lines: 50 Tag: Kestrun/Kestrun@4bc17b7e465c315de6386907c417e44fcb0fd3eb

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_MinRange()100%11100%
get_MaxRange()100%11100%
get_MinLength()100%11100%
get_MaxLength()100%11100%
get_AllowedValues()100%11100%
get_RegexPattern()100%11100%
get_MinItems()100%11100%
get_MaxItems()100%11100%
get_ValidateNotNullOrEmptyAttribute()100%11100%
get_ValidateNotNullAttribute()100%11100%
get_ValidateNotNullOrWhiteSpaceAttribute()100%11100%

File(s)

/home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun.Annotations/OpenApi/InternalPowershellAttribute.cs

#LineLine coverage
 1[AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
 2public sealed class InternalPowershellAttribute : KestrunAnnotation
 3{
 4    /// <summary>
 5    /// Gets the attribute's minimum range. From ValidateRangeAttribute.MinRange
 6    /// </summary>
 47    public string? MinRange { get; set; }
 8    /// <summary>
 9    /// Gets the attribute's maximum range. From ValidateRangeAttribute.MaxRange
 10    /// </summary>
 311    public string? MaxRange { get; set; }
 12
 13    /// <summary>
 14    /// Gets the attribute's minimum length. From ValidateLengthAttribute.MinLength
 15    /// </summary>
 116    public int? MinLength { get; set; }
 17    /// <summary>
 18    /// Gets the attribute's maximum length. From ValidateLengthAttribute.MaxLength
 19    /// </summary>
 120    public int? MaxLength { get; set; }
 21    /// <summary>
 22    /// Gets the attribute's valid values. From ValidateSetAttribute.ValidValues
 23    /// </summary>
 124    public IList<string>? AllowedValues { get; set; }
 25    /// <summary>
 26    /// Gets or sets the regex pattern. From ValidatePatternAttribute.RegexPattern
 27    /// </summary>
 128    public string? RegexPattern { get; set; }
 29    /// <summary>
 30    /// Gets the minimum count. From ValidateCountAttribute.MinLength
 31    /// </summary>
 132    public int? MinItems { get; set; }
 33    /// <summary>
 34    /// <summary>
 35    /// Gets the maximum count. From ValidateCountAttribute.MaxLength
 36    /// </summary>
 137    public int? MaxItems { get; set; }
 38    /// <summary>
 39    /// Gets or sets whether to validate not null or empty. From ValidateNotNullOrEmptyAttribute
 40    /// </summary>
 141    public bool? ValidateNotNullOrEmptyAttribute { get; set; }
 42    /// <summary>
 43    /// Gets or sets whether to validate not null. From ValidateNotNullAttribute
 44    /// </summary>
 145    public bool? ValidateNotNullAttribute { get; set; }
 46    /// <summary>
 47    /// Gets or sets whether to validate not null or white space. From ValidateNotNullOrWhiteSpaceAttribute
 48    /// </summary>
 149    public bool? ValidateNotNullOrWhiteSpaceAttribute { get; set; }
 50}