| Line | Branch | Decision | Exec | Source |
|---|---|---|---|---|
| 1 | #include "pch.h" | |||
| 2 | ||||
| 3 | #include "engine_csv_reader.h" | |||
| 4 | ||||
| 5 | 4 | TEST(realJeepEva, cranking) { | ||
| 6 |
1/1✓ Branch 2 taken 1 time.
|
1 | CsvReader reader(/*triggerCount*/ 1, /* vvtCount */ 0); | |
| 7 | ||||
| 8 |
1/1✓ Branch 1 taken 1 time.
|
1 | reader.open("tests/trigger/resources/jeep_36_2_2_crank_only.csv"); | |
| 9 | ||||
| 10 |
1/1✓ Branch 2 taken 1 time.
|
1 | EngineTestHelper eth(engine_type_e::TEST_ENGINE); | |
| 11 | //setVerboseTrigger(true); | |||
| 12 |
1/1✓ Branch 1 taken 1 time.
|
1 | eth.setTriggerType(trigger_type_e::TT_JEEP_EVD_36_2_2); | |
| 13 | 1 | engineConfiguration->isFasterEngineSpinUpEnabled = true; | ||
| 14 | 1 | engineConfiguration->alwaysInstantRpm = true; | ||
| 15 | ||||
| 16 | //engineConfiguration->isFasterEngineSpinUpEnabled = false; | |||
| 17 | //engineConfiguration->alwaysInstantRpm = true; | |||
| 18 | //engineConfiguration->invertPrimaryTriggerSignal = false; | |||
| 19 | ||||
| 20 | 1 | int n = 0; | ||
| 21 |
3/3✓ Branch 1 taken 2262 times.
✓ Branch 3 taken 2261 times.
✓ Branch 4 taken 1 time.
|
0/1? Decision couldn't be analyzed.
|
2262 | while (reader.haveMore()) { |
| 22 |
1/1✓ Branch 1 taken 2261 times.
|
2261 | reader.processLine(ð); | |
| 23 | //printf("%5d: RPM %f\n", n++, Sensor::getOrZero(SensorType::Rpm)); | |||
| 24 |
1/1✓ Branch 1 taken 2261 times.
|
2261 | auto rpm = Sensor::getOrZero(SensorType::Rpm); | |
| 25 | //if (rpm) { | |||
| 26 | // printf("Got first RPM %f, at %d\n", rpm, n); | |||
| 27 | //} | |||
| 28 | 2261 | n++; | ||
| 29 | } | |||
| 30 | 2 | } | ||
| 31 |