< Summary

Class:AttackBehaviorFactory
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/Behavior/AttackBehaviorFactory.cs
Covered lines:4
Uncovered lines:3
Coverable lines:7
Total lines:10
Line coverage:57.1% (4 of 7)
Covered branches:0
Total branches:0
Covered methods:1
Total methods:1
Method coverage:100% (1 of 1)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Create(...)0%15.47044.44%

File(s)

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

#LineLine coverage
 1public static class AttackBehaviorFactory {
 7552  public static AttackBehavior Create(in Configs.AttackBehaviorConfig config) {
 7553    return config.Type switch {
 7554      Configs.AttackType.DirectAttack => new DirectAttackBehavior(config),
 05      Configs.AttackType.PreplannedAttack => null,
 06      Configs.AttackType.SlalomAttack => null,
 07      _ => null,
 8    };
 7559  }
 10}