< Summary

Class:SensorTestBase
Assembly:bamlab.test
File(s):/github/workspace/Assets/Tests/SensorTestBase.cs
Covered lines:0
Uncovered lines:11
Coverable lines:11
Total lines:26
Line coverage:0% (0 of 11)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:2
Method coverage:0% (0 of 2)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Setup()0%2100%
Teardown()0%6200%

File(s)

/github/workspace/Assets/Tests/SensorTestBase.cs

#LineLine coverage
 1using System;
 2using System.Reflection;
 3using NUnit.Framework;
 4using UnityEngine;
 5
 6public abstract class SensorTestBase : TestBase {
 7  protected SimManager simManager;
 8
 9  [SetUp]
 010  public virtual void Setup() {
 11    // Initialize SimManager
 012    var simManagerGameObject = new GameObject("SimManager");
 013    simManager = simManagerGameObject.AddComponent<SimManager>();
 014    simManager.simulationConfig = new SimulationConfig();  // Set up a basic config if needed
 15
 016    SimManager.Instance = simManager;
 017  }
 18
 19  [TearDown]
 020  public virtual void Teardown() {
 21    // Clean up SimManager
 022    if (simManager != null) {
 023      GameObject.DestroyImmediate(simManager.gameObject);
 024    }
 025  }
 26}

Methods/Properties

Setup()
Teardown()