GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 40.0% 10 / 0 / 25
Functions: 100.0% 1 / 0 / 1
Branches: 33.3% 4 / 0 / 12
Decisions: 36.4% 4 / - / 11

firmware/hw_layer/drivers/can/auto_generated_can_category.cpp
Line Branch Decision Exec Source
1 #include "global.h"
2 #include "can_category.h"
3 // was generated automatically by rusEFI tool from can_category.h // by enum_to_string.jar tool on Fri Nov 14 15:58:03 UTC 2025
4 // see also gen_config_and_enums.bat
5
6
7
8 75 const char *getCanCategory(CanCategory value){
9
4/12
✗ Branch 0 not taken.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✓ Branch 4 taken 6 times.
✓ Branch 5 taken 2 times.
✓ Branch 6 taken 15 times.
✓ Branch 7 taken 52 times.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✗ Branch 10 not taken.
✗ Branch 11 not taken.
75 switch(value) {
10 case CanCategory::BENCH_TEST:
11 return "BENCH_TEST";
12 case CanCategory::CAN_IOBOX:
13 return "CAN_IOBOX";
14 case CanCategory::DOWNSTREAM_FLASHING:
15 return "DOWNSTREAM_FLASHING";
16 case CanCategory::GDI:
17 return "GDI";
18
1/1
✓ Decision 'true' taken 6 times.
6 case CanCategory::LUA:
19 6 return "LUA";
20
1/1
✓ Decision 'true' taken 2 times.
2 case CanCategory::NBC:
21 2 return "NBC";
22
1/1
✓ Decision 'true' taken 15 times.
15 case CanCategory::OBD:
23 15 return "OBD";
24
1/1
✓ Decision 'true' taken 52 times.
52 case CanCategory::SERIAL:
25 52 return "SERIAL";
26 case CanCategory::TCU:
27 return "TCU";
28 case CanCategory::VERBOSE:
29 return "VERBOSE";
30 case CanCategory::WBO_SERVICE:
31 return "WBO_SERVICE";
32 }
33 return NULL;
34 }
35