File: branch-noShowBranch.test

package info (click to toggle)
llvm-toolchain-19 1%3A19.1.7-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,998,520 kB
  • sloc: cpp: 6,951,680; ansic: 1,486,157; asm: 913,598; python: 232,024; f90: 80,126; objc: 75,281; lisp: 37,276; pascal: 16,990; sh: 10,009; ml: 5,058; perl: 4,724; awk: 3,523; makefile: 3,167; javascript: 2,504; xml: 892; fortran: 664; cs: 573
file content (25 lines) | stat: -rw-r--r-- 2,320 bytes parent folder | download | duplicates (15)
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%