< 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@0d738bf294e6281b936d031e1979d928007495ff
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 08/26/2025 - 14:53:17 Line coverage: 100% (1/1) Total lines: 24 Tag: Kestrun/Kestrun@78d1e497d8ba989d121b57aa39aa3c6b22de743109/04/2025 - 22:37:32 Line coverage: 100% (1/1) Total lines: 25 Tag: Kestrun/Kestrun@afb7aadc0a8a42bfa2b51ea62c8a6e2cf63faec610/13/2025 - 16:52:37 Line coverage: 0% (0/1) Total lines: 25 Tag: Kestrun/Kestrun@10d476bee71c71ad215bb8ab59f219887b5b4a5e

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