< Summary - Kestrun — Combined Coverage

Information
Class: Kestrun.Claims.ClaimPolicyConfig
Assembly: Kestrun
File(s): /home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Claims/ClaimPolicyConfig.cs
Tag: Kestrun/Kestrun@9d3a582b2d63930269564a7591aa77ef297cadeb
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 15
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

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Policies()100%11100%

File(s)

/home/runner/work/Kestrun/Kestrun/src/CSharp/Kestrun/Claims/ClaimPolicyConfig.cs

#LineLine coverage
 1namespace Kestrun.Claims;
 2
 3
 4/// <summary>A bag of named policies, each backed by a ClaimRule.</summary>
 5/// <remarks>
 6/// This is used to define multiple authorization policies in a structured way.
 7/// </remarks>
 8public sealed class ClaimPolicyConfig
 9{
 10    /// <summary>
 11    /// Gets the dictionary of named policies, each backed by a <see cref="ClaimRule"/>.
 12    /// </summary>
 3713    public Dictionary<string, ClaimRule> Policies { get; init; } = [];
 14}
 15

Methods/Properties

get_Policies()