< Summary

Class:StaticController
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/Controller/StaticController.cs
Covered lines:4
Uncovered lines:0
Coverable lines:4
Total lines:11
Line coverage:100% (4 of 4)
Covered branches:0
Total branches:0
Covered methods:2
Total methods:2
Method coverage:100% (2 of 2)

Metrics

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

File(s)

/github/workspace/Assets/Scripts/Controller/StaticController.cs

#LineLine coverage
 1using UnityEngine;
 2
 3// The static controller always returns zero acceleration.
 4public class StaticController : ControllerBase {
 35  public StaticController(IAgent agent) : base(agent) {}
 6
 7  // Controller-dependent implementation of the control law.
 18  protected override Vector3 Plan(in Transformation relativeTransformation) {
 19    return Vector3.zero;
 110  }
 11}