GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 6 / 0 / 6
Functions: 100.0% 1 / 0 / 1
Branches: 100.0% 2 / 0 / 2
Decisions: 100.0% 2 / - / 2

unit_tests/tests/util/injection_crank_helper.h
Line Branch Decision Exec Source
1 //
2 // Created by FDSoftware on 02/05/25.
3 //
4
5 #pragma once
6
7 #include "pch.h"
8 #include "engine_configuration.h"
9
10 7 static void setTestFuelCrankingTable(float fuelMass) {
11 7 setTable(config->crankingCycleBaseFuel, fuelMass);
12
2/2
✓ Branch 0 taken 28 times.
✓ Branch 1 taken 7 times.
2/2
✓ Decision 'true' taken 28 times.
✓ Decision 'false' taken 7 times.
35 for (int cltIndex = 0;cltIndex<CRANKING_CYCLE_CLT_SIZE;cltIndex++) {
13 // kludge: we have a few unit tests which depend on these magic numbers
14 // misc.testFuelMap / FuelMath.getCycleFuelMassTest / cranking.testFasterEngineSpinningUp / engine.testPlainCrankingWithoutAdvancedFeatures / OddFireRunningMode.hd
15 28 config->crankingCycleBaseFuel[cltIndex][0] = fuelMass * 2;
16 28 config->crankingCycleBaseFuel[cltIndex][/*x - cycles*/1] = fuelMass * 1.3f;
17 }
18 7 }
19