< Summary - Kestrun — Combined Coverage

Information
Class: OpenApiWebhookAttribute
Assembly: Kestrun.Annotations
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun.Annotations/OpenApi/Paths/OpenApiWebhook.cs
Tag: Kestrun/Kestrun@476fba12d8b4c7db258e9ff68fad76f0d7e4e042
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 30
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/27/2025 - 20:05:22 Line coverage: 0% (0/8) Total lines: 30 Tag: Kestrun/Kestrun@dec745d62965b14e1ed62c0f3ec815e60e53366f03/26/2026 - 03:54:59 Line coverage: 100% (8/8) Total lines: 30 Tag: Kestrun/Kestrun@844b5179fb0492dc6b1182bae3ff65fa7365521d

Coverage delta

Coverage delta 100 -100

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_HttpVerb()100%11100%
get_Pattern()100%11100%
get_Summary()100%11100%
get_Description()100%11100%
get_OperationId()100%11100%
get_Tags()100%11100%
get_Deprecated()100%11100%
get_DocumentId()100%11100%

File(s)

/home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun.Annotations/OpenApi/Paths/OpenApiWebhook.cs

#LineLine coverage
 1/// <summary>
 2/// Attribute to specify OpenAPI metadata for a webhook (top-level event notification), not a standard API route.
 3/// </summary>
 4[AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = true)]
 5public sealed class OpenApiWebhookAttribute : KestrunAnnotation, IOpenApiPathAttribute
 6{
 7    /// <inheritdoc/>
 28    public string? HttpVerb { get; set; }
 9
 10    /// <inheritdoc/>
 211    public string? Pattern { get; init; }
 12
 13    /// <inheritdoc/>
 114    public string? Summary { get; set; }
 15
 16    /// <inheritdoc/>
 117    public string? Description { get; set; }
 18
 19    /// <inheritdoc/>
 220    public string? OperationId { get; set; }
 21
 22    /// <inheritdoc/>
 223    public string[] Tags { get; set; } = [];
 24
 25    /// <inheritdoc/>
 126    public bool Deprecated { get; set; }
 27
 28    /// <inheritdoc/>
 129    public string[]? DocumentId { get; set; }
 30}