GCC Code Coverage Report
Directory:
./
Date:
2025-02-27 09:09:49
Exec
Total
Coverage
Lines:
2107
2139
98.5%
Functions:
181
192
94.3%
Branches:
1846
1941
95.1%
Function (File:Line)
Call count
Block coverage
GET_BYTES (safety.h:59)
called 1049779 times
100.0%
ROUND (safety.h:572)
called 638454 times
100.0%
alloutput_fwd_hook (safety/safety_defaults.h:55)
called 16896 times
100.0%
alloutput_init (safety/safety_defaults.h:42)
called 14 times
100.0%
alloutput_tx_hook (safety/safety_defaults.h:50)
called 22528 times
100.0%
body_init (safety/safety_body.h:32)
called 9 times
100.0%
body_rx_hook (safety/safety_body.h:5)
called 2 times
100.0%
body_tx_hook (safety/safety_body.h:14)
called 7 times
100.0%
calculate_checksum (board/drivers/can_common.h:3)
called 5595298 times
100.0%
can_check_checksum (board/drivers/can_common.h:16)
not called
0.0%
can_set_checksum (board/drivers/can_common.h:11)
called 5595298 times
100.0%
chrysler_compute_checksum (safety/safety_chrysler.h:29)
called 157 times
100.0%
chrysler_fwd_hook (safety/safety_chrysler.h:169)
called 25344 times
100.0%
chrysler_get_checksum (safety/safety_chrysler.h:24)
called 157 times
100.0%
chrysler_get_counter (safety/safety_chrysler.h:62)
called 157 times
100.0%
chrysler_init (safety/safety_chrysler.h:186)
called 99 times
100.0%
chrysler_rx_hook (safety/safety_chrysler.h:66)
called 25480 times
100.0%
chrysler_tx_hook (safety/safety_chrysler.h:107)
called 10816 times
100.0%
default_fwd_hook (safety/safety_defaults.h:24)
called 33792 times
100.0%
default_rx_hook (safety/safety_defaults.h:5)
called 56320 times
100.0%
dist_to_meas_check (safety.h:493)
called 44331 times
100.0%
driver_limit_check (safety.h:509)
called 1300137 times
100.0%
elm327_tx_hook (safety/safety_elm327.h:6)
called 19719 times
100.0%
fault_occurred (board/faults.h:6)
called 120 times
100.0%
fault_recovered (board/faults.h:19)
called 10344 times
100.0%
ford_compute_checksum (safety/safety_ford.h:54)
called 601038 times
100.0%
ford_fwd_hook (safety/safety_ford.h:316)
called 25344 times
100.0%
ford_get_checksum (safety/safety_ford.h:39)
called 601038 times
100.0%
ford_get_counter (safety/safety_ford.h:24)
called 601038 times
100.0%
ford_get_quality_flag_valid (safety/safety_ford.h:76)
called 625107 times
100.0%
ford_init (safety/safety_ford.h:348)
called 96 times
93.0%
ford_lkas_msg_check (safety/safety_ford.h:102)
called 642006 times
100.0%
ford_rx_hook (safety/safety_ford.h:131)
called 650454 times
100.0%
ford_tx_hook (safety/safety_ford.h:196)
called 50482 times
100.0%
gen_crc_lookup_table_16 (safety.h:279)
called 756 times
100.0%
gen_crc_lookup_table_8 (safety.h:264)
called 67 times
100.0%
generic_rx_checks (safety.h:326)
called 1546153 times
100.0%
get_acc_main_on (tests/libsafety/safety_helpers.h:74)
not called
0.0%
get_addr_check_index (safety.h:127)
called 1696920 times
100.0%
get_alternative_experience (tests/libsafety/safety_helpers.h:38)
not called
0.0%
get_angle_meas_max (tests/libsafety/safety_helpers.h:153)
called 30012 times
100.0%
get_angle_meas_min (tests/libsafety/safety_helpers.h:149)
called 30012 times
100.0%
get_brake_pressed_prev (tests/libsafety/safety_helpers.h:54)
called 553 times
100.0%
get_controls_allowed (tests/libsafety/safety_helpers.h:34)
called 56878 times
100.0%
get_cruise_engaged_prev (tests/libsafety/safety_helpers.h:62)
called 404 times
100.0%
get_current_safety_mode (tests/libsafety/safety_helpers.h:90)
called 7927 times
100.0%
get_current_safety_param (tests/libsafety/safety_helpers.h:94)
called 7927 times
100.0%
get_desired_angle_last (tests/libsafety/safety_helpers.h:140)
not called
0.0%
get_gas_pressed_prev (tests/libsafety/safety_helpers.h:46)
called 334 times
100.0%
get_honda_fwd_brake (tests/libsafety/safety_helpers.h:176)
called 1028 times
100.0%
get_honda_hw (tests/libsafety/safety_helpers.h:168)
not called
0.0%
get_longitudinal_allowed (safety.h:258)
called 600274 times
100.0%
get_regen_braking_prev (tests/libsafety/safety_helpers.h:58)
called 15 times
100.0%
get_relay_malfunction (tests/libsafety/safety_helpers.h:42)
called 608344 times
100.0%
get_torque_driver_max (tests/libsafety/safety_helpers.h:124)
called 106 times
100.0%
get_torque_driver_min (tests/libsafety/safety_helpers.h:120)
called 106 times
100.0%
get_torque_meas_max (tests/libsafety/safety_helpers.h:111)
called 30 times
100.0%
get_torque_meas_min (tests/libsafety/safety_helpers.h:107)
called 30 times
100.0%
get_ts_elapsed (board/utils.h:47)
called 1976871 times
100.0%
get_vehicle_moving (tests/libsafety/safety_helpers.h:70)
called 291 times
100.0%
get_vehicle_speed_last (tests/libsafety/safety_helpers.h:86)
not called
0.0%
get_vehicle_speed_max (tests/libsafety/safety_helpers.h:82)
called 2236 times
100.0%
get_vehicle_speed_min (tests/libsafety/safety_helpers.h:78)
called 2236 times
100.0%
gm_fwd_hook (safety/safety_gm.h:162)
called 25344 times
100.0%
gm_init (safety/safety_gm.h:188)
called 98 times
100.0%
gm_rx_hook (safety/safety_gm.h:22)
called 31830 times
100.0%
gm_tx_hook (safety/safety_gm.h:98)
called 40648 times
96.0%
honda_bosch_fwd_hook (safety/safety_honda.h:425)
called 50688 times
100.0%
honda_bosch_init (safety/safety_honda.h:338)
called 177 times
100.0%
honda_compute_checksum (safety/safety_honda.h:53)
called 3637 times
100.0%
honda_get_checksum (safety/safety_honda.h:48)
called 3637 times
100.0%
honda_get_counter (safety/safety_honda.h:70)
called 3637 times
100.0%
honda_get_pt_bus (safety/safety_honda.h:44)
called 179143 times
100.0%
honda_nidec_fwd_hook (safety/safety_honda.h:401)
called 33792 times
100.0%
honda_nidec_init (safety/safety_honda.h:305)
called 56 times
100.0%
honda_rx_hook (safety/safety_honda.h:75)
called 72176 times
99.0%
honda_tx_hook (safety/safety_honda.h:193)
called 106967 times
96.0%
hyundai_canfd_fwd_hook (safety/safety_hyundai_canfd.h:217)
called 177408 times
100.0%
hyundai_canfd_get_checksum (safety/safety_hyundai_canfd.h:59)
called 129355 times
100.0%
hyundai_canfd_get_counter (safety/safety_hyundai_canfd.h:49)
called 137013 times
100.0%
hyundai_canfd_get_lka_addr (safety/safety_hyundai_canfd.h:45)
called 184479 times
100.0%
hyundai_canfd_init (safety/safety_hyundai_canfd.h:244)
called 756 times
100.0%
hyundai_canfd_rx_hook (safety/safety_hyundai_canfd.h:64)
called 314407 times
100.0%
hyundai_canfd_tx_hook (safety/safety_hyundai_canfd.h:137)
called 848693 times
92.0%
hyundai_common_canfd_compute_checksum (safety/safety_hyundai_common.h:115)
called 129355 times
100.0%
hyundai_common_cruise_buttons_check (safety/safety_hyundai_common.h:91)
called 10494 times
100.0%
hyundai_common_cruise_state_check (safety/safety_hyundai_common.h:74)
called 1575 times
100.0%
hyundai_common_init (safety/safety_hyundai_common.h:47)
called 1111 times
100.0%
hyundai_compute_checksum (safety/safety_hyundai.h:94)
called 793 times
100.0%
hyundai_fwd_hook (safety/safety_hyundai.h:264)
called 84480 times
100.0%
hyundai_get_checksum (safety/safety_hyundai.h:77)
called 793 times
100.0%
hyundai_get_counter (safety/safety_hyundai.h:58)
called 2331 times
100.0%
hyundai_init (safety/safety_hyundai.h:290)
called 253 times
100.0%
hyundai_legacy_init (safety/safety_hyundai.h:337)
called 102 times
100.0%
hyundai_rx_hook (safety/safety_hyundai.h:130)
called 100998 times
100.0%
hyundai_tx_hook (safety/safety_hyundai.h:191)
called 400322 times
100.0%
init_tests (tests/libsafety/safety_helpers.h:180)
called 8685 times
100.0%
interpolate (safety.h:545)
called 182060 times
92.0%
is_msg_valid (safety.h:116)
called 1696920 times
100.0%
longitudinal_accel_checks (safety.h:577)
called 24757 times
100.0%
longitudinal_brake_checks (safety.h:599)
called 280671 times
100.0%
longitudinal_gas_checks (safety.h:593)
called 157483 times
100.0%
longitudinal_speed_checks (safety.h:583)
called 102004 times
100.0%
longitudinal_transmission_rpm_checks (safety.h:587)
called 32778 times
100.0%
max_limit_check (safety.h:488)
called 4234981 times
100.0%
mazda_fwd_hook (safety/safety_mazda.h:94)
called 8448 times
100.0%
mazda_init (safety/safety_mazda.h:111)
called 30 times
100.0%
mazda_rx_hook (safety/safety_mazda.h:19)
called 8928 times
100.0%
mazda_tx_hook (safety/safety_mazda.h:53)
called 6087 times
100.0%
microsecond_timer_get (board/fake_stm.h:27)
called 2444098 times
100.0%
nissan_fwd_hook (safety/safety_nissan.h:104)
called 25344 times
100.0%
nissan_init (safety/safety_nissan.h:125)
called 4161 times
100.0%
nissan_rx_hook (safety/safety_nissan.h:7)
called 77436 times
100.0%
nissan_tx_hook (safety/safety_nissan.h:60)
called 19614 times
100.0%
nooutput_init (safety/safety_defaults.h:11)
called 22 times
100.0%
nooutput_tx_hook (safety/safety_defaults.h:18)
excluded
0.0%
pcm_cruise_check (safety.h:744)
called 371 times
100.0%
print (board/fake_stm.h:11)
called 160 times
100.0%
puth (board/fake_stm.h:15)
called 80 times
100.0%
relay_malfunction_reset (safety.h:354)
called 10344 times
100.0%
relay_malfunction_set (safety.h:321)
called 120 times
100.0%
reset_sample (safety.h:360)
called 41376 times
100.0%
rivian_fwd_hook (safety/safety_rivian.h:93)
called 16896 times
100.0%
rivian_init (safety/safety_rivian.h:127)
called 62 times
100.0%
rivian_rx_hook (safety/safety_rivian.h:7)
called 21936 times
100.0%
rivian_tx_hook (safety/safety_rivian.h:47)
called 5498 times
100.0%
rt_rate_limit_check (safety.h:533)
called 1344468 times
100.0%
rx_msg_safety_check (safety.h:174)
called 1696920 times
100.0%
safety_config_valid (tests/libsafety/safety_helpers.h:5)
called 72 times
47.0%
safety_fwd_hook (safety.h:254)
called 1284098 times
100.0%
safety_rx_hook (safety.h:209)
called 1696920 times
100.0%
safety_tick (safety.h:295)
called 72 times
81.0%
safety_tick_current_safety_config (tests/libsafety/safety_helpers.h:1)
called 72 times
100.0%
safety_tx_hook (safety.h:240)
called 3898376 times
100.0%
set_alternative_experience (tests/libsafety/safety_helpers.h:26)
called 12232 times
100.0%
set_angle_meas (tests/libsafety/safety_helpers.h:144)
not called
0.0%
set_controls_allowed (tests/libsafety/safety_helpers.h:22)
called 930361 times
100.0%
set_cruise_engaged_prev (tests/libsafety/safety_helpers.h:66)
not called
0.0%
set_desired_angle_last (tests/libsafety/safety_helpers.h:136)
called 67384 times
100.0%
set_desired_torque_last (tests/libsafety/safety_helpers.h:132)
called 215246 times
100.0%
set_gas_pressed_prev (tests/libsafety/safety_helpers.h:50)
not called
0.0%
set_honda_alt_brake_msg (tests/libsafety/safety_helpers.h:160)
called 14 times
100.0%
set_honda_bosch_long (tests/libsafety/safety_helpers.h:164)
not called
0.0%
set_honda_fwd_brake (tests/libsafety/safety_helpers.h:172)
called 8 times
100.0%
set_relay_malfunction (tests/libsafety/safety_helpers.h:30)
called 608328 times
100.0%
set_rt_torque_last (tests/libsafety/safety_helpers.h:128)
called 215246 times
100.0%
set_safety_hooks (safety.h:367)
called 10344 times
100.0%
set_timer (tests/libsafety/safety_helpers.h:98)
called 15025 times
100.0%
set_torque_driver (tests/libsafety/safety_helpers.h:115)
not called
0.0%
set_torque_meas (tests/libsafety/safety_helpers.h:102)
called 45268 times
100.0%
steer_angle_cmd_checks (safety.h:693)
called 132522 times
98.0%
steer_torque_cmd_checks (safety.h:607)
called 1431700 times
100.0%
subaru_compute_checksum (safety/safety_subaru.h:82)
called 6260 times
100.0%
subaru_fwd_hook (safety/safety_subaru.h:210)
called 33792 times
100.0%
subaru_get_checksum (safety/safety_subaru.h:74)
called 6260 times
100.0%
subaru_get_counter (safety/safety_subaru.h:78)
called 6260 times
100.0%
subaru_init (safety/safety_subaru.h:237)
called 139 times
100.0%
subaru_preglobal_fwd_hook (safety/safety_subaru_preglobal.h:88)
called 16896 times
100.0%
subaru_preglobal_init (safety/safety_subaru_preglobal.h:105)
called 58 times
100.0%
subaru_preglobal_rx_hook (safety/safety_subaru_preglobal.h:22)
called 20736 times
100.0%
subaru_preglobal_tx_hook (safety/safety_subaru_preglobal.h:58)
called 32766 times
100.0%
subaru_rx_hook (safety/safety_subaru.h:92)
called 40012 times
100.0%
subaru_tx_hook (safety/safety_subaru.h:138)
called 489689 times
100.0%
tesla_fwd_hook (safety/safety_tesla.h:151)
called 16898 times
100.0%
tesla_init (safety/safety_tesla.h:179)
called 2779 times
100.0%
tesla_rx_hook (safety/safety_tesla.h:8)
called 51614 times
100.0%
tesla_tx_hook (safety/safety_tesla.h:67)
called 14322 times
100.0%
to_signed (safety.h:459)
called 648113 times
100.0%
toyota_compute_checksum (safety/safety_toyota.h:39)
called 126826 times
100.0%
toyota_fwd_hook (safety/safety_toyota.h:380)
called 50688 times
100.0%
toyota_get_checksum (safety/safety_toyota.h:49)
called 126826 times
100.0%
toyota_get_quality_flag_valid (safety/safety_toyota.h:54)
called 126662 times
100.0%
toyota_init (safety/safety_toyota.h:320)
called 1299 times
100.0%
toyota_rx_hook (safety/safety_toyota.h:64)
called 180050 times
100.0%
toyota_tx_hook (safety/safety_toyota.h:150)
called 109153 times
100.0%
tx_msg_safety_check (safety.h:225)
called 3898376 times
100.0%
update_addr_timestamp (safety.h:158)
called 1696920 times
100.0%
update_counter (safety.h:165)
called 758560 times
100.0%
update_sample (safety.h:469)
called 1282110 times
100.0%
volkswagen_mqb_fwd_hook (safety/safety_volkswagen_mqb.h:206)
called 16896 times
100.0%
volkswagen_mqb_init (safety/safety_volkswagen_mqb.h:10)
called 67 times
100.0%
volkswagen_mqb_meb_compute_crc (safety/safety_volkswagen_common.h:41)
called 4091 times
100.0%
volkswagen_mqb_meb_get_checksum (safety/safety_volkswagen_common.h:32)
called 4091 times
100.0%
volkswagen_mqb_meb_get_counter (safety/safety_volkswagen_common.h:36)
called 8182 times
100.0%
volkswagen_mqb_rx_hook (safety/safety_volkswagen_mqb.h:43)
called 21021 times
100.0%
volkswagen_mqb_tx_hook (safety/safety_volkswagen_mqb.h:129)
called 6855 times
100.0%
volkswagen_pq_compute_checksum (safety/safety_volkswagen_pq.h:37)
called 4042 times
100.0%
volkswagen_pq_fwd_hook (safety/safety_volkswagen_pq.h:223)
called 16896 times
100.0%
volkswagen_pq_get_checksum (safety/safety_volkswagen_pq.h:17)
called 4042 times
100.0%
volkswagen_pq_get_counter (safety/safety_volkswagen_pq.h:23)
called 4033 times
100.0%
volkswagen_pq_init (safety/safety_volkswagen_pq.h:53)
called 67 times
100.0%
volkswagen_pq_rx_hook (safety/safety_volkswagen_pq.h:82)
called 21001 times
100.0%
volkswagen_pq_tx_hook (safety/safety_volkswagen_pq.h:156)
called 5844 times
100.0%