< Summary

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

Metrics

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

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 {
 785  public StaticController(IAgent agent) : base(agent) {}
 6
 7  // Controller-dependent implementation of the control law.
 08  protected override Vector3 Plan(in Transformation relativeTransformation) {
 09    return Vector3.zero;
 010  }
 11}