< Summary - Kestrun — Combined Coverage

Information
Class: Public.ClaimPolicy.New-KrClaimPolicy
Assembly: Kestrun.PowerShell.Public
File(s): /home/runner/work/Kestrun/Kestrun/src/PowerShell/Kestrun/Public/ClaimPolicy/New-KrClaimPolicy.ps1
Tag: Kestrun/Kestrun@5f1d2b981c9d7292c11fd448428c6ab6c811c5de
Line coverage
0%
Covered lines: 0
Uncovered lines: 1
Coverable lines: 1
Total lines: 25
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 11/19/2025 - 17:40:50 Line coverage: 0% (0/1) Total lines: 25 Tag: Kestrun/Kestrun@fcf33342333cef0516fe0d0912a86709874fd026

Metrics

File(s)

/home/runner/work/Kestrun/Kestrun/src/PowerShell/Kestrun/Public/ClaimPolicy/New-KrClaimPolicy.ps1

#LineLine coverage
 1<#
 2    .SYNOPSIS
 3        Creates a new claim policy builder instance.
 4    .DESCRIPTION
 5        This function initializes a new instance of the Kestrun.Claims.ClaimPolicyBuilder class, which is used to build 
 6    .OUTPUTS
 7        [Kestrun.Claims.ClaimPolicyBuilder]
 8        A new instance of the claim policy builder.
 9    .EXAMPLE
 10        $builder = New-KrClaimPolicy
 11        This example creates a new claim policy builder instance.
 12    .NOTES
 13        This function is part of the Kestrun.Claims module and is used to manage claim policies.
 14        Maps to ClaimPolicyBuilder constructor.
 15    .LINK
 16        https://docs.microsoft.com/en-us/dotnet/api/kestrun.authentication.claimpolicybuilder
 17#>
 18function New-KrClaimPolicy {
 19    [KestrunRuntimeApi('Everywhere')]
 20    [Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseShouldProcessForStateChangingFunctions', '')]
 21    [OutputType([Kestrun.Claims.ClaimPolicyBuilder])]
 22    param()
 023    return [Kestrun.Claims.ClaimPolicyBuilder]::Create()
 24}
 25

Methods/Properties

New-KrClaimPolicy()