Vedant Kumar | a8c396d | 2016-09-15 06:44:51 +0000 | [diff] [blame] | 1 | RUN: llvm-profdata merge %S/Inputs/hideUnexecutedSubviews.proftext -o %t.profdata |
| 2 | |
Vedant Kumar | 016111f | 2016-09-19 00:38:23 +0000 | [diff] [blame^] | 3 | RUN: llvm-cov show %S/Inputs/templateInstantiations.covmapping -instr-profile %t.profdata -filename-equivalence %S/showTemplateInstantiations.cpp | FileCheck -check-prefix=FILE %s |
Vedant Kumar | a8c396d | 2016-09-15 06:44:51 +0000 | [diff] [blame] | 4 | |
| 5 | RUN: llvm-cov show %S/Inputs/templateInstantiations.covmapping -instr-profile %t.profdata -format html -o %t.html.dir -filename-equivalence %S/showTemplateInstantiations.cpp |
Vedant Kumar | 016111f | 2016-09-19 00:38:23 +0000 | [diff] [blame^] | 6 | RUN: FileCheck -check-prefix=FILE %s -input-file %t.html.dir/coverage/tmp/showTemplateInstantiations.cpp.html |
Vedant Kumar | a8c396d | 2016-09-15 06:44:51 +0000 | [diff] [blame] | 7 | |
Vedant Kumar | 016111f | 2016-09-19 00:38:23 +0000 | [diff] [blame^] | 8 | FILE: Unexecuted instantiation: _Z4funcIbEiT_ |
| 9 | FILE: Unexecuted instantiation: _Z4funcIiEiT_ |
| 10 | FILE-NOT: Unexecuted instantiation |
| 11 | |
| 12 | RUN: FileCheck -check-prefix=INDEX %s -input-file %t.html.dir/index.html |
| 13 | |
| 14 | INDEX: <td class='column-entry-left'>Filename</td> |
| 15 | INDEX: <td class='column-entry'>Function Coverage</td> |
| 16 | INDEX: <td class='column-entry'>Instantiation Coverage</td> |
| 17 | INDEX: <td class='column-entry'>Line Coverage</td> |
| 18 | INDEX: <td class='column-entry'>Region Coverage</td> |
| 19 | INDEX: <td class='column-entry-red'> |
| 20 | INDEX: 50.00% (1/2) |
| 21 | INDEX: <td class='column-entry-red'> |
| 22 | INDEX: 33.33% (1/3) |
| 23 | INDEX: <td class='column-entry-red'> |
| 24 | INDEX: 41.67% (5/12) |
| 25 | INDEX: <td class='column-entry-red'> |
| 26 | INDEX: 20.00% (1/5) |