Skip to content

Commit 7d62e4d

Browse files
committed
Reformat tests
1 parent 9f83734 commit 7d62e4d

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

llvm/test/tools/llvm-cov/branch-c-general.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115

116116

117117

118-
// REPORT: Name Regions Miss Cover Lines Miss Cover Branches Miss Cover
118+
// REPORT: Name Regions Miss Cover Lines Miss Cover Branches Miss Cover
119119
// REPORT-NEXT: ---
120120
// REPORT-NEXT: simple_loops 8 0 100.00% 9 0 100.00% 6 0 100.00%
121121
// REPORT-NEXT: conditionals 24 0 100.00% 15 0 100.00% 16 2 87.50%

llvm/test/tools/llvm-cov/branch-noShowBranch.test

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
// CHECK-NOT: | Branch
88

9-
// REPORT: Name Regions Miss Cover Lines Miss Cover
9+
// REPORT: Name Regions Miss Cover Lines Miss Cover
1010
// REPORT-NOT: Name Regions Miss Cover Lines Miss Cover Branches Miss Cover
11-
// REPORT: ---
11+
// REPORT: ---
1212
// REPORT-NOT: simple_loops 8 0 100.00% 9 0 100.00% 6 0 100.00%
1313
// REPORT-NOT: conditionals 24 0 100.00% 15 0 100.00% 16 2 87.50%
1414
// REPORT-NOT: early_exits 20 4 80.00% 25 2 92.00% 16 6 62.50%
@@ -21,6 +21,6 @@
2121
// REPORT-NOT: do_fallthrough 9 0 100.00% 12 0 100.00% 6 0 100.00%
2222
// REPORT-NOT: main 1 0 100.00% 16 0 100.00% 0 0 0.00%
2323
// 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%
2626

llvm/test/tools/llvm-cov/branch-showBranchPercentage.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Test visualization of branch taken percentages
22

3+
// RUN: rm -rf %t.html.dir
34
// RUN: yaml2obj %S/Inputs/branch-showBranchPercentage.yaml -o %t.o
45
// RUN: llvm-profdata merge %S/Inputs/branch-showBranchPercentage.proftext -o %t.profdata
56
// 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,3 +24,4 @@
2324
// HTML: Branch (<span class='line-number'><a name='L{{[0-9]+}}' href='#L{{[0-9]+}}'><span>{{.*}}20.00%,{{.*}}80.00%]
2425
// HTML: Branch (<span class='line-number'><a name='L{{[0-9]+}}' href='#L{{[0-9]+}}'><span>{{.*}}0.00%,{{.*}}100.00%]
2526
// 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%]

llvm/test/tools/llvm-cov/branch-templates.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// 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
55
// RUN: llvm-cov report --show-branch-summary %t.o -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs | FileCheck %s -check-prefix=REPORTFILE
66

7-
// REPORT: Name Regions Miss Cover Lines Miss Cover Branches Miss Cover
7+
// REPORT: Name Regions Miss Cover Lines Miss Cover Branches Miss Cover
88
// REPORT-NEXT: ---
99
// REPORT-NEXT: main 7 1 85.71% 10 1 90.00% 6 3 50.00%
1010
// REPORT-NEXT: _Z4funcIiEiT_ 5 2 60.00% 7 3 57.14% 2 1 50.00%
@@ -21,8 +21,8 @@
2121
// respectively). This is returned by: FunctionCoverageSummary::get(const
2222
// InstantiationGroup &Group, ...)
2323

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
2525
// REPORTFILE-NEXT: ---
2626
// REPORTFILE-NEXT: branch-templates.cpp 12 3 75.00% 2 0 100.00% 17 4 76.47% 8 4 50.00%
2727
// 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%

0 commit comments

Comments
 (0)