< Summary

Class:Vessel
Assembly:bamlab.micromissiles
File(s):/github/workspace/Assets/Scripts/IADS/Vessel.cs
Covered lines:0
Uncovered lines:15
Coverable lines:15
Total lines:27
Line coverage:0% (0 of 15)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:5
Method coverage:0% (0 of 5)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Vessel()0%2100%
AddInterceptor(...)0%6200%
RemoveInterceptor(...)0%2100%
GetInterceptorInventory()0%2100%
GetInterceptorCount()0%2100%

File(s)

/github/workspace/Assets/Scripts/IADS/Vessel.cs

#LineLine coverage
 1using UnityEngine;
 2using System.Collections.Generic;
 3
 4public class Vessel : MonoBehaviour {
 5  [SerializeField]
 06  private List<Interceptor> missileInventory = new List<Interceptor>();
 7
 08  public void AddInterceptor(Interceptor interceptor) {
 09    if (interceptor != null) {
 010      missileInventory.Add(interceptor);
 011    }
 012  }
 13
 014  public void RemoveInterceptor(Interceptor interceptor) {
 015    missileInventory.Remove(interceptor);
 016  }
 17
 018  public List<Interceptor> GetInterceptorInventory() {
 019    return new List<Interceptor>(missileInventory);
 020  }
 21
 022  public int GetInterceptorCount() {
 023    return missileInventory.Count;
 024  }
 25
 26  // Additional methods can be added here as needed
 27}