File: branch-noShowBranch.test

package info (click to toggle)
swiftlang 6.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,791,604 kB
  • sloc: cpp: 9,901,740; ansic: 2,201,431; asm: 1,091,827; python: 308,252; objc: 82,166; f90: 80,126; lisp: 38,358; pascal: 25,559; sh: 20,429; ml: 5,058; perl: 4,745; makefile: 4,484; awk: 3,535; javascript: 3,018; xml: 918; fortran: 664; cs: 573; ruby: 396
file content (25 lines) | stat: -rw-r--r-- 2,320 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

// RUN: llvm-profdata merge %S/Inputs/branch-c-general.proftext -o %t.profdata
// RUN: llvm-cov show %S/Inputs/branch-c-general.o32l -instr-profile %t.profdata -path-equivalence=/tmp,%S/Inputs | FileCheck %s
// RUN: llvm-cov report %S/Inputs/branch-c-general.o32l --show-branch-summary=false -instr-profile %t.profdata -show-functions -path-equivalence=/tmp,%S/Inputs %S/Inputs/branch-c-general.c | FileCheck %s -check-prefix=REPORT

// CHECK-NOT: | Branch

// REPORT: Name                        Regions    Miss   Cover     Lines    Miss   Cover
// REPORT-NOT: Name                        Regions    Miss   Cover     Lines    Miss   Cover  Branches    Miss   Cover
// REPORT: ---
// REPORT-NOT: simple_loops                      8       0 100.00%         9       0 100.00%         6       0 100.00%
// REPORT-NOT: conditionals                     24       0 100.00%        15       0 100.00%        16       2  87.50%
// REPORT-NOT: early_exits                      20       4  80.00%        25       2  92.00%        16       6  62.50%
// REPORT-NOT: jumps                            39      12  69.23%        48       2  95.83%        26       9  65.38%
// REPORT-NOT: switches                         28       5  82.14%        38       4  89.47%        30       9  70.00%
// REPORT-NOT: big_switch                       25       1  96.00%        32       0 100.00%        30       6  80.00%
// REPORT-NOT: boolean_operators                16       0 100.00%        13       0 100.00%        22       2  90.91%
// REPORT-NOT: boolop_loops                     19       0 100.00%        14       0 100.00%        16       2  87.50%
// REPORT-NOT: conditional_operator              4       2  50.00%         8       0 100.00%         4       2  50.00%
// REPORT-NOT: do_fallthrough                    9       0 100.00%        12       0 100.00%         6       0 100.00%
// REPORT-NOT: main                              1       0 100.00%        16       0 100.00%         0       0   0.00%
// REPORT-NOT: c-general.c:static_func           4       0 100.00%         4       0 100.00%         2       0 100.00%
// REPORT: TOTAL                           197      24  87.82%       234       8  96.58%
// REPORT-NOT: TOTAL                           197      24  87.82%       234       13  94.44%       174      38  78.16%