< 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@9d3a582b2d63930269564a7591aa77ef297cadeb
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 14
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

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    public static IApplicationBuilder UsePowerShellRunspace(
 513        this IApplicationBuilder app, KestrunRunspacePoolManager pool) => app.UseMiddleware<PowerShellRunspaceMiddleware
 14}