mirror of https://github.com/FOME-Tech/fome-fw.git
default argument to improve test API (#405)
This commit is contained in:
parent
693dd66ea4
commit
89462092a1
|
@ -90,7 +90,7 @@ public:
|
||||||
void assertInjectorUpEvent(const char *msg, int eventIndex, efitimeus_t momentX, long injectorIndex);
|
void assertInjectorUpEvent(const char *msg, int eventIndex, efitimeus_t momentX, long injectorIndex);
|
||||||
void assertInjectorDownEvent(const char *msg, int eventIndex, efitimeus_t momentX, long injectorIndex);
|
void assertInjectorDownEvent(const char *msg, int eventIndex, efitimeus_t momentX, long injectorIndex);
|
||||||
// todo: open question if this is worth a helper method or should be inlined?
|
// todo: open question if this is worth a helper method or should be inlined?
|
||||||
void assertRpm(int expectedRpm, const char *msg);
|
void assertRpm(int expectedRpm, const char *msg = "RPM");
|
||||||
|
|
||||||
int executeActions();
|
int executeActions();
|
||||||
void moveTimeForwardMs(float deltaTimeMs);
|
void moveTimeForwardMs(float deltaTimeMs);
|
||||||
|
|
|
@ -98,7 +98,7 @@ TEST(trigger, test1995FordInline6TriggerDecoder) {
|
||||||
|
|
||||||
engine->periodicFastCallback();
|
engine->periodicFastCallback();
|
||||||
eth.fireTriggerEvents(48);
|
eth.fireTriggerEvents(48);
|
||||||
eth.assertRpm(2000, "rpm");
|
eth.assertRpm(2000);
|
||||||
engine->periodicFastCallback();
|
engine->periodicFastCallback();
|
||||||
eth.fireTriggerEvents(48);
|
eth.fireTriggerEvents(48);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue