< 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@9d3a582b2d63930269564a7591aa77ef297cadeb
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 25
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

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( )
 123    return [Kestrun.Claims.ClaimPolicyBuilder]::new()
 24}
 25

Methods/Properties

New-KrClaimPolicy()