< Summary

Information
Class: Intentum.Core.Extensions.BehaviorSpaceExtensions
Assembly: Intentum.Core
File(s): /home/runner/work/Intentum/Intentum/src/Intentum.Core/Extensions/BehaviorSpaceExtensions.cs
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 14
Line coverage: 100%
Branch coverage
100%
Covered branches: 2
Total branches: 2
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
EnsureNotEmpty(...)100%22100%

File(s)

/home/runner/work/Intentum/Intentum/src/Intentum.Core/Extensions/BehaviorSpaceExtensions.cs

#LineLine coverage
 1using Intentum.Core.Behavior;
 2
 3namespace Intentum.Core.Extensions;
 4
 5public static class BehaviorSpaceExtensions
 6{
 7    public static void EnsureNotEmpty(this BehaviorSpace space)
 38    {
 39        ArgumentNullException.ThrowIfNull(space);
 10
 211        if (space.Events.Count == 0)
 112            throw new ArgumentException("BehaviorSpace must contain at least one event for inference.", nameof(space));
 113    }
 14}