GCC Code Coverage Report


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

Line Branch Decision Exec Source
1 //
2 // Created by kifir on 6/12/24.
3 //
4
5 #include "pch.h"
6
7 #include "launch_test_base.h"
8
9 18 void LaunchTestBase::setUpTestConfig(const LaunchTestConfig& config) {
10 18 setUpEngineConfiguration(config);
11
2/2
✓ Branch 1 taken 9 times.
✓ Branch 2 taken 9 times.
2/2
✓ Decision 'true' taken 9 times.
✓ Decision 'false' taken 9 times.
18 if (config.getSatisfyActivationSwitchSpeedAndTpsConditions()) {
12 9 configureSatisfiedActivationSwitchSpeedAndTpsConditions();
13 }
14 18 }
15
16 9 void LaunchTestBase::configureSatisfiedActivationSwitchSpeedAndTpsConditions() {
17 9 getTestEngineConfiguration()
18
1/1
✓ Branch 4 taken 9 times.
9 .configureLaunchActivationMode(ALWAYS_ACTIVE_LAUNCH); // to satisfy activateSwitchCondition
19
1/1
✓ Branch 5 taken 9 times.
9 getTestEngineConfiguration().configureLaunchSpeedThreshold(0); // to satisfy speedCondition
20 9 Sensor::setMockValue(SensorType::DriverThrottleIntent, 1.7); // to satisfy tpsCondition
21 9 }
22