< Summary - Kestrun — Combined Coverage

Information
Class: Kestrun.Scripting.RouteHandlerBuilderLanguageExtensions
Assembly: Kestrun
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Scripting/RouteHandlerBuilderLanguageExtensions.cs
Tag: Kestrun/Kestrun@ca54e35c77799b76774b3805b6f075cdbc0c5fbe
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 17
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 09/08/2025 - 20:34:03 Line coverage: 0% (0/1) Total lines: 17 Tag: Kestrun/Kestrun@3790ee5884494a7a2a829344a47743e0bf492e7201/12/2026 - 18:03:06 Line coverage: 100% (1/1) Total lines: 17 Tag: Kestrun/Kestrun@956332ccc921363590dccd99d5707fb20b50966b

Metrics

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

File(s)

/home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Scripting/RouteHandlerBuilderLanguageExtensions.cs

#LineLine coverage
 1namespace Kestrun.Scripting;
 2
 3/// <summary>
 4/// Extension methods for <see cref="RouteHandlerBuilder"/> to support script language metadata.
 5/// </summary>
 6public static class RouteHandlerBuilderLanguageExtensions
 7{
 8    /// <summary>
 9    /// Tags a <see cref="RouteHandlerBuilder"/> with a <see cref="ScriptLanguageAttribute"/> for the specified language
 10    /// </summary>
 11    /// <param name="b">The route handler builder to tag.</param>
 12    /// <param name="lang">The script language to associate with the route handler.</param>
 13    /// <returns>The same <see cref="RouteHandlerBuilder"/> instance for fluent chaining.</returns>
 14    public static RouteHandlerBuilder WithLanguage(
 15             this RouteHandlerBuilder b, ScriptLanguage lang) =>
 316         b.WithMetadata(new ScriptLanguageAttribute(lang));
 17}