< Summary - Kestrun — Combined Coverage

Information
Class: Public.Helper.Get-KrRoot
Assembly: Kestrun.PowerShell.Public
File(s): /home/runner/work/Kestrun/Kestrun/src/PowerShell/Kestrun/Public/Helper/Get-KrRoot.ps1
Tag: Kestrun/Kestrun@2d87023b37eb91155071c91dd3d6a2eeb3004705
Line coverage
0%
Covered lines: 0
Uncovered lines: 1
Coverable lines: 1
Total lines: 19
Line coverage: 0%
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/29/2025 - 19:03:16 Line coverage: 0% (0/1) Total lines: 18 Tag: Kestrun/Kestrun@bbe80beb98bdf6ba9249a033d00f6e4748a4c06c09/04/2025 - 18:11:31 Line coverage: 0% (0/1) Total lines: 19 Tag: Kestrun/Kestrun@de99e24698289f3f61ac7b73e96092732ae12b05

Metrics

Method
Get-KrRoot()

File(s)

/home/runner/work/Kestrun/Kestrun/src/PowerShell/Kestrun/Public/Helper/Get-KrRoot.ps1

#LineLine coverage
 1<#
 2    .SYNOPSIS
 3        Retrieves the Kestrun root directory.
 4    .DESCRIPTION
 5        This function returns the path to the Kestrun root directory, which is used as a base for resolving relative pat
 6    .EXAMPLE
 7        $kestrunRoot = get-KrRoot
 8        Retrieves the Kestrun root directory and stores it in the variable $kestrunRoot.
 9    .NOTES
 10        This function is designed to be used in the context of a Kestrun server to ensure consistent path resolution.
 11#>
 12function Get-KrRoot {
 13    [CmdletBinding()]
 14    [KestrunRuntimeApi('Everywhere')]
 15    [OutputType([string])]
 16    param()
 017    return [Kestrun.KestrunHostManager]::KestrunRoot
 18}
 19

Methods/Properties

Get-KrRoot()