test coverage for antilag #4920
This commit is contained in:
parent
57d76d902f
commit
7138b9d1c1
|
@ -7,7 +7,14 @@ TEST(Actuators, AntiLag) {
|
|||
|
||||
Sensor::setMockValue(SensorType::Clt, 70);
|
||||
|
||||
engineConfiguration->antiLagActivationMode = SWITCH_INPUT_ANTILAG;
|
||||
engine->periodicFastCallback();
|
||||
ASSERT_EQ(1, engine->antilagController.ALSSwitchCondition);
|
||||
|
||||
engineConfiguration->antiLagActivationMode = ALWAYS_ON_ANTILAG;
|
||||
engine->periodicFastCallback();
|
||||
ASSERT_EQ(0, engine->antilagController.ALSSwitchCondition);
|
||||
|
||||
ASSERT_EQ(1, engine->antilagController.ALSMinCLTCondition);
|
||||
ASSERT_EQ(1, engine->antilagController.ALSMaxCLTCondition);
|
||||
|
||||
|
|
Loading…
Reference in New Issue