1RUN: llvm-profdata merge %S/Inputs/hideUnexecutedSubviews.proftext -o %t.profdata
2
3RUN: llvm-cov show %S/Inputs/templateInstantiations.covmapping -instr-profile %t.profdata -show-region-summary -show-instantiation-summary -path-equivalence=/tmp,%S %S/showTemplateInstantiations.cpp | FileCheck -check-prefix=FILE %s
4
5RUN: llvm-cov show %S/Inputs/templateInstantiations.covmapping -instr-profile %t.profdata -format html -show-region-summary -show-instantiation-summary -o %t.html.dir -path-equivalence=/tmp,%S %S/showTemplateInstantiations.cpp
6RUN: FileCheck -check-prefix=FILE %s -input-file %t.html.dir/coverage/tmp/showTemplateInstantiations.cpp.html
7
8FILE: Unexecuted instantiation: _Z4funcIiEiT_
9FILE: Unexecuted instantiation: _Z4funcIbEiT_
10FILE-NOT: Unexecuted instantiation
11
12RUN: FileCheck -check-prefix=INDEX %s -input-file %t.html.dir/index.html
13
14INDEX: <td class='column-entry-bold'>Filename</td>
15INDEX: <td class='column-entry-bold'>Function Coverage</td>
16INDEX: <td class='column-entry-bold'>Instantiation Coverage</td>
17INDEX: <td class='column-entry-bold'>Line Coverage</td>
18INDEX: <td class='column-entry-bold'>Region Coverage</td>
19INDEX: <td class='column-entry-red'>
20INDEX: 50.00% (1/2)
21INDEX: <td class='column-entry-red'>
22INDEX: 33.33% (1/3)
23INDEX: <td class='column-entry-red'>
24INDEX: 41.67% (5/12)
25INDEX: <td class='column-entry-red'>
26INDEX: 16.67% (1/6)
27