< Summary - Kestrun — Combined Coverage

Information
Class: Public.Helper.Get-KrEnvironment
Assembly: Kestrun.PowerShell.Public
File(s): /home/runner/work/Kestrun/Kestrun/src/PowerShell/Kestrun/Public/Helper/Get-KrEnvironment.ps1
Tag: Kestrun/Kestrun@ca54e35c77799b76774b3805b6f075cdbc0c5fbe
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 18
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 10/13/2025 - 16:52:37 Line coverage: 0% (0/1) Total lines: 17 Tag: Kestrun/Kestrun@10d476bee71c71ad215bb8ab59f219887b5b4a5e12/12/2025 - 17:27:19 Line coverage: 0% (0/1) Total lines: 18 Tag: Kestrun/Kestrun@826bf9dcf9db118c5de4c78a3259bce9549f0dcd01/21/2026 - 17:07:46 Line coverage: 100% (1/1) Total lines: 18 Tag: Kestrun/Kestrun@3f6f61710c7ef7d5953cab578fe699c1e5e01a36

Metrics

File(s)

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

#LineLine coverage
 1<#
 2.SYNOPSIS
 3    Gets the current Kestrun environment for the PowerShell session.
 4.DESCRIPTION
 5    Gets the current Kestrun environment for the PowerShell session.
 6    This reflects how Kestrun behaves, for example in terms of error handling and logging.
 7.EXAMPLE
 8    Get-KrEnvironment
 9    Returns the current Kestrun environment, e.g. 'Development'.
 10    This reflects how Kestrun behaves, for example in terms of error handling and logging.
 11#>
 12function Get-KrEnvironment {
 13    [KestrunRuntimeApi('Everywhere')]
 14    [CmdletBinding()]
 15    [OutputType([string])]
 16    param()
 117    return [Kestrun.Runtime.EnvironmentHelper]::Name
 18}

Methods/Properties

Get-KrEnvironment()