GCC Code Coverage Report


Directory: ./
File: unit_tests/tests/ignition_injection/test_three_cylinder.cpp
Date: 2025-10-03 00:57:22
Coverage Exec Excl Total
Lines: 100.0% 10 0 10
Functions: 100.0% 3 0 3
Branches: 100.0% 2 0 2
Decisions: -% 0 - 0

Line Branch Decision Exec Source
1 #include "pch.h"
2
3 using ::testing::_;
4
5 static const angle_t timing = 6; // same timing cranking and running modes
6
7 4 TEST(threeCylinders, crankWastedSpark) {
8
1/1
✓ Branch 2 taken 1 time.
1 EngineTestHelper eth(engine_type_e::MITSUBISHI_3A92);
9 1 setTable(config->ignitionTable, timing); // this changes run mode timing
10 1 engineConfiguration->crankingTimingAngle = timing;
11 1 engine->tdcMarkEnabled = false; // reduce event queue noise TODO extract helper method
12
13 1 engineConfiguration->isInjectionEnabled = false; // reduce event queue / less distraction
14
15 // just simpler to use trivial trigger in tests, does not make a difference for actual scheduling
16
1/1
✓ Branch 1 taken 1 time.
1 eth.setTriggerType(trigger_type_e::TT_HALF_MOON);
17
18
19 // see 'test_odd_firing_engine.cpp' which is the nicest relevant test at the moment
20 // see https://github.com/rusefi/rusefi/issues/4195#issuecomment-2322760547
21 2 }
22