File tree Expand file tree Collapse file tree 4 files changed +10
-8
lines changed Expand file tree Collapse file tree 4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 115
115
116
116
117
117
118
- // REPORT: Name Regions Miss Cover Lines Miss Cover Branches Miss Cover
118
+ // REPORT: Name Regions Miss Cover Lines Miss Cover Branches Miss Cover
119
119
// REPORT-NEXT: ---
120
120
// REPORT-NEXT: simple_loops 8 0 100.00% 9 0 100.00% 6 0 100.00%
121
121
// REPORT-NEXT: conditionals 24 0 100.00% 15 0 100.00% 16 2 87.50%
Original file line number Diff line number Diff line change 6
6
7
7
// CHECK-NOT: | Branch
8
8
9
- // REPORT: Name Regions Miss Cover Lines Miss Cover
9
+ // REPORT: Name Regions Miss Cover Lines Miss Cover
10
10
// REPORT-NOT: Name Regions Miss Cover Lines Miss Cover Branches Miss Cover
11
- // REPORT: ---
11
+ // REPORT: ---
12
12
// REPORT-NOT: simple_loops 8 0 100.00% 9 0 100.00% 6 0 100.00%
13
13
// REPORT-NOT: conditionals 24 0 100.00% 15 0 100.00% 16 2 87.50%
14
14
// REPORT-NOT: early_exits 20 4 80.00% 25 2 92.00% 16 6 62.50%
21
21
// REPORT-NOT: do_fallthrough 9 0 100.00% 12 0 100.00% 6 0 100.00%
22
22
// REPORT-NOT: main 1 0 100.00% 16 0 100.00% 0 0 0.00%
23
23
// REPORT-NOT: c-general.c:static_func 4 0 100.00% 4 0 100.00% 2 0 100.00%
24
- // REPORT: TOTAL 197 24 87.82% 234 8 96.58%
25
- // REPORT-NOT: TOTAL 197 24 87.82% 234 13 94.44% 174 38 78.16%
24
+ // REPORT: TOTAL 197 24 87.82% 234 8 96.58%
25
+ // REPORT-NOT: TOTAL 197 24 87.82% 234 13 94.44% 174 38 78.16%
26
26
Original file line number Diff line number Diff line change 1
1
// Test visualization of branch taken percentages
2
2
3
+ // RUN: rm -rf %t.html.dir
3
4
// RUN: yaml2obj %S/Inputs/branch-showBranchPercentage.yaml -o %t.o
4
5
// RUN: llvm-profdata merge %S/Inputs/branch-showBranchPercentage.proftext -o %t.profdata
5
6
// RUN: llvm-cov show --show-branches=percent %t.o -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs | FileCheck %S/Inputs/branch-showBranchPercentage.c
23
24
// HTML: Branch (<span class='line-number'><a name='L{{[0-9]+}}' href='#L{{[0-9]+}}'><span>{{.*}}20.00%,{{.*}}80.00%]
24
25
// HTML: Branch (<span class='line-number'><a name='L{{[0-9]+}}' href='#L{{[0-9]+}}'><span>{{.*}}0.00%,{{.*}}100.00%]
25
26
// HTML: Branch (<span class='line-number'><a name='L{{[0-9]+}}' href='#L{{[0-9]+}}'><span>{{.*}}60.00%,{{.*}}40.00%]
27
+ // HTML: Branch (<span class='line-number'><a name='L{{[0-9]+}}' href='#L{{[0-9]+}}'><span>{{.*}}90.91%,{{.*}}9.09%]
Original file line number Diff line number Diff line change 4
4
// RUN: llvm-cov report --show-branch-summary %t.o -instr-profile %t.profdata -show-functions -path-equivalence=/tmp,%S/Inputs %S/Inputs/branch-templates.cpp | FileCheck %s -check-prefix=REPORT
5
5
// RUN: llvm-cov report --show-branch-summary %t.o -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs | FileCheck %s -check-prefix=REPORTFILE
6
6
7
- // REPORT: Name Regions Miss Cover Lines Miss Cover Branches Miss Cover
7
+ // REPORT: Name Regions Miss Cover Lines Miss Cover Branches Miss Cover
8
8
// REPORT-NEXT: ---
9
9
// REPORT-NEXT: main 7 1 85.71% 10 1 90.00% 6 3 50.00%
10
10
// REPORT-NEXT: _Z4funcIiEiT_ 5 2 60.00% 7 3 57.14% 2 1 50.00%
21
21
// respectively). This is returned by: FunctionCoverageSummary::get(const
22
22
// InstantiationGroup &Group, ...)
23
23
24
- // REPORTFILE: Filename Regions Missed Regions Cover Functions Missed Functions Executed Lines Missed Lines Cover Branches Missed Branches Cover
24
+ // REPORTFILE: Filename Regions Missed Regions Cover Functions Missed Functions Executed Lines Missed Lines Cover Branches Missed Branches Cover
25
25
// REPORTFILE-NEXT: ---
26
26
// REPORTFILE-NEXT: branch-templates.cpp 12 3 75.00% 2 0 100.00% 17 4 76.47% 8 4 50.00%
27
27
// REPORTFILE-NEXT: ---
28
- // REPORTFILE-NEXT: TOTAL 12 3 75.00% 2 0 100.00% 17 4 76.47% 8 4 50.00%
28
+ // REPORTFILE-NEXT: TOTAL 12 3 75.00% 2 0 100.00% 17 4 76.47% 8 4 50.00%
You can’t perform that action at this time.
0 commit comments