< Summary

Class:AttackBehavior
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/Behavior/AttackBehavior.cs
Covered lines:4
Uncovered lines:2
Coverable lines:6
Total lines:26
Line coverage:66.6% (4 of 6)
Covered branches:0
Total branches:0
Covered methods:2
Total methods:4
Method coverage:50% (2 of 4)

Metrics

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

File(s)

/github/workspace/Assets/Scripts/Behavior/AttackBehavior.cs

#LineLine coverage
 1using UnityEngine;
 2
 3public abstract class AttackBehavior {
 4  private Configs.AttackBehaviorConfig _config;
 5
 6  public string Name {
 07    get { return _config.Name; }
 8  }
 9
 10  public Configs.AttackType Type {
 011    get { return _config.Type; }
 12  }
 13
 14  public FlightPlan FlightPlan {
 8239515    get { return new FlightPlan(_config.FlightPlan); }
 16  }
 17
 151018  public AttackBehavior(Configs.AttackBehaviorConfig config) {
 75519    _config = config;
 75520  }
 21
 22  // Return the next waypoint for the threat to navigate to and the power setting to use towards the
 23  // waypoint.
 24  public abstract (Vector3 waypointPosition, Configs.Power power)
 25      GetNextWaypoint(Vector3 currentPosition, Vector3 targetPosition);
 26}