< Summary - Kestrun — Combined Coverage

Information
Class: Kestrun.Middleware.PowerShellRunspaceMiddlewareExtensions
Assembly: Kestrun
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Middleware/PowerShellRunspaceMiddlewareExtensions.cs
Tag: Kestrun/Kestrun@2d87023b37eb91155071c91dd3d6a2eeb3004705
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 08/26/2025 - 01:25:22 Line coverage: 100% (1/1) Total lines: 14 Tag: Kestrun/Kestrun@07f821172e5dc3657f1be7e6818f18d6721cf38a10/13/2025 - 16:52:37 Line coverage: 100% (1/1) Total lines: 17 Tag: Kestrun/Kestrun@10d476bee71c71ad215bb8ab59f219887b5b4a5e

Metrics

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

File(s)

/home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Middleware/PowerShellRunspaceMiddlewareExtensions.cs

#LineLine coverage
 1using Kestrun.Scripting;
 2namespace Kestrun.Middleware;
 3
 4/// <summary>
 5/// Extension methods for adding PowerShell runspace middleware.
 6/// </summary>
 7public static class PowerShellRunspaceMiddlewareExtensions
 8{
 9    /// <summary>
 10    /// Registers <see cref="PowerShellRunspaceMiddleware"/> with the given runspace pool.
 11    /// </summary>
 12    /// <param name="app">The application builder.</param>
 13    /// <param name="pool">The runspace pool manager.</param>
 14    /// <returns>The application builder.</returns>
 15    public static IApplicationBuilder UsePowerShellRunspace(
 716        this IApplicationBuilder app, KestrunRunspacePoolManager pool) => app.UseMiddleware<PowerShellRunspaceMiddleware
 17}