GCOV Summary for sahpi_struct_utils.c

oh_decode_manufacturerid

100.00% of 18 lines executed
69.23% of 13 branches executed
69.23% of 13 branches taken at least once
100.00% of 5 calls executed

oh_decode_sensorreading

100.00% of 59 lines executed
73.33% of 45 branches executed
71.11% of 45 branches taken at least once
100.00% of 20 calls executed

oh_encode_sensorreading

84.69% of 98 lines executed
71.08% of 83 branches executed
62.65% of 83 branches taken at least once
23.40% of 47 calls executed

oh_fprint_text

87.50% of 8 lines executed
75.00% of 4 branches executed
75.00% of 4 branches taken at least once
100.00% of 1 calls executed

oh_fprint_bigtext

87.50% of 8 lines executed
75.00% of 4 branches executed
75.00% of 4 branches taken at least once
100.00% of 1 calls executed

oh_init_textbuffer

100.00% of 8 lines executed
100.00% of 2 branches executed
100.00% of 2 branches taken at least once
100.00% of 1 calls executed

oh_init_bigtext

87.50% of 8 lines executed
50.00% of 2 branches executed
50.00% of 2 branches taken at least once
100.00% of 1 calls executed

oh_copy_textbuffer

100.00% of 8 lines executed
100.00% of 3 branches executed
100.00% of 3 branches taken at least once
100.00% of 1 calls executed

oh_copy_bigtext

87.50% of 8 lines executed
66.67% of 3 branches executed
33.33% of 3 branches taken at least once
100.00% of 1 calls executed

oh_append_textbuffer

100.00% of 14 lines executed
85.71% of 7 branches executed
85.71% of 7 branches taken at least once
40.00% of 5 calls executed

oh_append_bigtext

86.67% of 15 lines executed
55.56% of 9 branches executed
44.44% of 9 branches taken at least once
22.22% of 9 calls executed

oh_append_offset

100.00% of 5 lines executed
100.00% of 3 branches executed
100.00% of 3 branches taken at least once
100.00% of 1 calls executed

oh_fprint_ctrlrec

90.91% of 11 lines executed
57.14% of 7 branches executed
42.86% of 7 branches taken at least once
100.00% of 3 calls executed

oh_fprint_watchdogrec

0.00% of 11 lines executed
0.00% of 7 branches executed
0.00% of 7 branches taken at least once
0.00% of 3 calls executed

oh_fprint_sensorrec

100.00% of 11 lines executed
71.43% of 7 branches executed
57.14% of 7 branches taken at least once
100.00% of 3 calls executed

oh_build_sensorrec

100.00% of 34 lines executed
50.00% of 8 branches executed
50.00% of 8 branches taken at least once
96.55% of 29 calls executed

oh_build_sensordataformat

100.00% of 67 lines executed
77.78% of 27 branches executed
33.33% of 27 branches taken at least once
100.00% of 52 calls executed

oh_build_sensorthddefn

100.00% of 24 lines executed
81.82% of 11 branches executed
54.55% of 11 branches taken at least once
100.00% of 14 calls executed

oh_build_threshold_mask

100.00% of 32 lines executed
100.00% of 11 branches executed
100.00% of 11 branches taken at least once
100.00% of 18 calls executed

oh_fprint_idrfield

93.33% of 30 lines executed
66.67% of 9 branches executed
66.67% of 9 branches taken at least once
92.00% of 25 calls executed

oh_fprint_idrareaheader

100.00% of 20 lines executed
100.00% of 5 branches executed
80.00% of 5 branches taken at least once
100.00% of 15 calls executed

oh_fprint_idrinfo

100.00% of 20 lines executed
80.00% of 5 branches executed
80.00% of 5 branches taken at least once
100.00% of 14 calls executed

oh_fprint_textbuffer

100.00% of 10 lines executed
80.00% of 5 branches executed
60.00% of 5 branches taken at least once
100.00% of 3 calls executed

oh_build_textbuffer

95.00% of 20 lines executed
66.67% of 3 branches executed
66.67% of 3 branches taken at least once
94.12% of 17 calls executed

oh_decode_capabilities

74.67% of 75 lines executed
56.60% of 53 branches executed
37.74% of 53 branches taken at least once
64.71% of 17 calls executed

oh_decode_hscapabilities

79.17% of 24 lines executed
66.67% of 15 branches executed
53.33% of 15 branches taken at least once
60.00% of 5 calls executed

oh_fprint_rptentry

100.00% of 44 lines executed
80.00% of 5 branches executed
80.00% of 5 branches taken at least once
100.00% of 35 calls executed

oh_fprint_rdr

97.83% of 46 lines executed
100.00% of 18 branches executed
88.89% of 18 branches taken at least once
97.06% of 34 calls executed

oh_build_ctrlrec

98.06% of 103 lines executed
87.50% of 24 branches executed
79.17% of 24 branches taken at least once
97.89% of 95 calls executed

oh_build_invrec

100.00% of 17 lines executed
60.00% of 5 branches executed
40.00% of 5 branches taken at least once
100.00% of 11 calls executed

oh_build_wdogrec

100.00% of 14 lines executed
66.67% of 3 branches executed
33.33% of 3 branches taken at least once
100.00% of 8 calls executed

oh_build_annrec

100.00% of 23 lines executed
80.00% of 5 branches executed
40.00% of 5 branches taken at least once
100.00% of 18 calls executed

oh_fprint_eventloginfo

0.00% of 41 lines executed
0.00% of 11 branches executed
0.00% of 11 branches taken at least once
0.00% of 34 calls executed

oh_fprint_eventlogentry

0.00% of 22 lines executed
0.00% of 4 branches executed
0.00% of 4 branches taken at least once
0.00% of 13 calls executed

oh_fprint_event

100.00% of 11 lines executed
71.43% of 7 branches executed
57.14% of 7 branches taken at least once
100.00% of 3 calls executed

oh_build_event

95.35% of 43 lines executed
83.33% of 24 branches executed
79.17% of 24 branches taken at least once
86.67% of 30 calls executed

oh_build_event_resource

87.50% of 8 lines executed
66.67% of 3 branches executed
33.33% of 3 branches taken at least once
100.00% of 4 calls executed

oh_build_event_domain

92.86% of 14 lines executed
66.67% of 3 branches executed
33.33% of 3 branches taken at least once
100.00% of 10 calls executed

oh_decode_sensoroptionaldata

100.00% of 23 lines executed
73.68% of 19 branches executed
73.68% of 19 branches taken at least once
100.00% of 5 calls executed

oh_decode_sensorenableoptdata

100.00% of 23 lines executed
73.68% of 19 branches executed
73.68% of 19 branches taken at least once
100.00% of 5 calls executed

oh_build_event_sensor

98.70% of 77 lines executed
69.57% of 23 branches executed
60.87% of 23 branches taken at least once
100.00% of 52 calls executed

oh_build_event_sensor_enable_change

98.00% of 50 lines executed
68.75% of 16 branches executed
62.50% of 16 branches taken at least once
100.00% of 40 calls executed

oh_build_event_hotswap

92.86% of 14 lines executed
66.67% of 3 branches executed
33.33% of 3 branches taken at least once
100.00% of 11 calls executed

oh_build_event_watchdog

92.86% of 28 lines executed
77.78% of 9 branches executed
66.67% of 9 branches taken at least once
94.44% of 18 calls executed

oh_build_event_hpi_sw

95.00% of 20 lines executed
66.67% of 3 branches executed
33.33% of 3 branches taken at least once
100.00% of 11 calls executed

oh_build_event_oem

95.00% of 20 lines executed
66.67% of 3 branches executed
33.33% of 3 branches taken at least once
100.00% of 11 calls executed

oh_build_event_user

90.00% of 10 lines executed
66.67% of 3 branches executed
33.33% of 3 branches taken at least once
100.00% of 4 calls executed

oh_fprint_ctrlstate

0.00% of 47 lines executed
0.00% of 20 branches executed
0.00% of 20 branches taken at least once
0.00% of 32 calls executed

oh_valid_textbuffer

81.82% of 22 lines executed
85.37% of 41 branches executed
70.73% of 41 branches taken at least once
42.86% of 7 calls executed

oh_valid_thresholds

87.10% of 31 lines executed
74.15% of 677 branches executed
27.77% of 677 branches taken at least once
4.55% of 44 calls executed

oh_compare_sensorreading

83.33% of 18 lines executed
89.66% of 29 branches executed
75.86% of 29 branches taken at least once
0.00% of 4 calls executed

oh_valid_ctrl_state_mode

73.33% of 45 lines executed
61.54% of 52 branches executed
50.00% of 52 branches taken at least once
37.50% of 8 calls executed

oh_append_data

0.00% of 20 lines executed
0.00% of 13 branches executed
0.00% of 13 branches taken at least once
0.00% of 11 calls executed

sahpi_struct_utils.c

84.59% of 1480 lines executed
71.07% of 1393 branches executed
43.00% of 1393 branches taken at least once
75.37% of 869 calls executed