< 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@6135d944f8787fb570e4dfbacac6e80312799a86
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 12/01/2025 - 20:55:19 Line coverage: 0% (0/1) Total lines: 25 Tag: Kestrun/Kestrun@638a27c2dd54103f693f023b6ba5f56a884caafa

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