< 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@9d3a582b2d63930269564a7591aa77ef297cadeb
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

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()