< Summary

Class:EscapeDetectorBase
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/Escape/EscapeDetectorBase.cs
Covered lines:4
Uncovered lines:0
Coverable lines:4
Total lines:12
Line coverage:100% (4 of 4)
Covered branches:0
Total branches:0
Covered methods:3
Total methods:3
Method coverage:100% (3 of 3)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
EscapeDetectorBase(...)0%110100%

File(s)

/github/workspace/Assets/Scripts/Escape/EscapeDetectorBase.cs

#LineLine coverage
 1// Base implementation for an escape detector.
 2public abstract class EscapeDetectorBase : IEscapeDetector {
 3  // Agent that is pursuing the target.
 144  public IAgent Agent { get; init; }
 5
 286  public EscapeDetectorBase(IAgent agent) {
 147    Agent = agent;
 148  }
 9
 10  // Determine whether the target is escaping the agent.
 11  public abstract bool IsEscaping(IHierarchical target);
 12}