< 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@0d738bf294e6281b936d031e1979d928007495ff
Line coverage
0%
Covered lines: 0
Uncovered lines: 1
Coverable lines: 1
Total lines: 18
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 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@826bf9dcf9db118c5de4c78a3259bce9549f0dcd

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()
 017    return [Kestrun.Runtime.EnvironmentHelper]::Name
 18}

Methods/Properties

Get-KrEnvironment()