adapnex::platforms::simulation::Simulation
Simulation implements a test fixture that allows standard scheduling APIs like Application::CreateCyclicTaskGroup() to be used in a unit test, where the application can be simulated faster than real‐time. To use the simulation test fixture declare a test using TEST_F(Simulation, ...) { ... }. Call Simulate() to run the simulation.
Synopsis
Declared in </home/runner/work/adapnex/adapnex/platforms/simulation/include/adapnex/platforms/simulation/simulation.h>
class Simulation
: public testing::Test
Member Functions
Name |
Description |
|
Default constructor |
|
Destructor |
|
Runs the simulation for the given duration. The duration does not represent wall‐clock time but the time inside the simulation. This method should be called by unit tests based on the Simulation test fixture. |