< Summary

Information
Class: Intentum.Runtime.Policy.PolicyRule
Assembly: Intentum.Runtime
File(s): /home/runner/work/Intentum/Intentum/src/Intentum.Runtime/Policy/PolicyRule.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 12
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

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.ctor(...)100%11100%

File(s)

/home/runner/work/Intentum/Intentum/src/Intentum.Runtime/Policy/PolicyRule.cs

#LineLine coverage
 1using Intentum.Core.Intents;
 2
 3namespace Intentum.Runtime.Policy;
 4
 5/// <summary>
 6/// Single rule applied to an inferred intent.
 7/// </summary>
 1908public sealed record PolicyRule(
 229    string Name,
 15410    Func<Intent, bool> Condition,
 9311    PolicyDecision Decision
 19012);