|
116 | 116 |
|
117 | 117 | // REPORT: Name Regions Miss Cover Lines Miss Cover Branches Miss Cover |
118 | 118 | // REPORT-NEXT: --- |
119 | | -// REPORT-NEXT: simple_loops 8 0 100.00% 9 0 100.00% 6 0 100.00% |
120 | | -// REPORT-NEXT: conditionals 24 0 100.00% 15 0 100.00% 16 2 87.50% |
121 | | -// REPORT-NEXT: early_exits 20 4 80.00% 25 2 92.00% 16 6 62.50% |
122 | | -// REPORT-NEXT: jumps 39 12 69.23% 48 2 95.83% 26 9 65.38% |
123 | | -// REPORT-NEXT: switches 28 5 82.14% 38 4 89.47% 30 9 70.00% |
124 | | -// REPORT-NEXT: big_switch 25 1 96.00% 32 0 100.00% 30 6 80.00% |
125 | | -// REPORT-NEXT: boolean_operators 16 0 100.00% 13 0 100.00% 22 2 90.91% |
126 | | -// REPORT-NEXT: boolop_loops 19 0 100.00% 14 0 100.00% 16 2 87.50% |
127 | | -// REPORT-NEXT: conditional_operator 4 2 50.00% 8 0 100.00% 4 2 50.00% |
128 | | -// REPORT-NEXT: do_fallthrough 9 0 100.00% 12 0 100.00% 6 0 100.00% |
| 119 | +// REPORT-NEXT: simple_loops 8 0 100.00% 8 0 100.00% 6 0 100.00% |
| 120 | +// REPORT-NEXT: conditionals 24 0 100.00% 13 0 100.00% 16 2 87.50% |
| 121 | +// REPORT-NEXT: early_exits 20 4 80.00% 19 2 89.47% 16 6 62.50% |
| 122 | +// REPORT-NEXT: jumps 39 12 69.23% 38 3 92.11% 28 10 64.29% |
| 123 | +// REPORT-NEXT: switches 27 4 85.19% 30 2 93.33% 32 10 68.75% |
| 124 | +// REPORT-NEXT: big_switch 25 1 96.00% 26 0 100.00% 30 6 80.00% |
| 125 | +// REPORT-NEXT: boolean_operators 16 0 100.00% 9 0 100.00% 22 2 90.91% |
| 126 | +// REPORT-NEXT: boolop_loops 19 0 100.00% 9 0 100.00% 16 2 87.50% |
| 127 | +// REPORT-NEXT: conditional_operator 6 2 66.67% 5 0 100.00% 4 2 50.00% |
| 128 | +// REPORT-NEXT: do_fallthrough 9 0 100.00% 9 0 100.00% 6 0 100.00% |
129 | 129 | // REPORT-NEXT: main 1 0 100.00% 16 0 100.00% 0 0 0.00% |
130 | 130 | // REPORT-NEXT: c-general.c:static_func 4 0 100.00% 4 0 100.00% 2 0 100.00% |
131 | 131 | // REPORT-NEXT: --- |
132 | | -// REPORT-NEXT: TOTAL 197 24 87.82% 234 8 96.58% 174 38 78.16% |
| 132 | +// REPORT-NEXT: TOTAL 198 23 88.38% 186 7 96.24% 178 40 77.53% |
133 | 133 |
|
134 | 134 | // Test file-level report. |
135 | 135 | // RUN: llvm-profdata merge %S/Inputs/branch-c-general.proftext -o %t.profdata |
136 | 136 | // RUN: llvm-cov report %S/Inputs/branch-c-general.o32l -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs %S/Inputs/branch-c-general.c | FileCheck %s -check-prefix=FILEREPORT |
137 | | -// FILEREPORT: TOTAL{{.*}}174 38 78.16% |
| 137 | +// FILEREPORT: TOTAL{{.*}}178 40 77.53% |
138 | 138 |
|
139 | 139 | // Test color True/False output. |
140 | 140 | // RUN: llvm-cov show --use-color --show-branches=count %S/Inputs/branch-c-general.o32l -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs %S/Inputs/branch-c-general.c | FileCheck %s -check-prefix=USECOLOR |
|
157 | 157 | // HTML-INDEX: <td class='column-entry-green'> |
158 | 158 | // HTML-INDEX: 100.00% (12/12) |
159 | 159 | // HTML-INDEX: <td class='column-entry-yellow'> |
160 | | -// HTML-INDEX: 96.58% (226/234) |
| 160 | +// HTML-INDEX: 96.24% (179/186) |
161 | 161 | // HTML-INDEX: <td class='column-entry-yellow'> |
162 | | -// HTML-INDEX: 87.82% (173/197) |
| 162 | +// HTML-INDEX: 88.38% (175/198) |
163 | 163 | // HTML-INDEX: <td class='column-entry-red'> |
164 | | -// HTML-INDEX: 78.16% (136/174) |
| 164 | +// HTML-INDEX: 77.53% (138/178) |
165 | 165 | // HTML-INDEX: <tr class='light-row-bold'> |
166 | 166 | // HTML-INDEX: Totals |
0 commit comments