GCC Code Coverage Report


Directory: ./
File: update-data.h
Date: 2025-09-27 21:24:05+00:00
Coverage Exec Excl Total
Lines: 85.7% 12 0 14
Functions: 100.0% 4 0 4
Branches: 50.0% 2 0 4

Line Branch Exec Source
1 #ifdef __cplusplus
2 extern "C" {
3 #endif
4
5 int update_data(void);
6
7 1 static int called_from_main(void)
8 {
9 1 return 0;
10 }
11
12 1 static int called_from_update_data(void)
13 {
14 1 return 1;
15 }
16
17 2 static int called_from_both(int which)
18 {
19
2/4
called_from_both:
✓ Branch 0 taken 1 time.
✗ Branch 1 not taken.
called_from_both(int):
✗ Branch 0 not taken.
✓ Branch 1 taken 1 time.
2 if (which == 0) {
20 1 return 1;
21 }
22 else {
23 1 return 0;
24 }
25 2 }
26
27 #ifdef __cplusplus
28 }
29 #endif
30