blob: 646c6e5aec479dbae76427bc8b6109d781e15a69 [file] [log] [blame]
Vedant Kumara8c396d2016-09-15 06:44:51 +00001RUN: llvm-profdata merge %S/Inputs/hideUnexecutedSubviews.proftext -o %t.profdata
2
Vedant Kumar016111f2016-09-19 00:38:23 +00003RUN: llvm-cov show %S/Inputs/templateInstantiations.covmapping -instr-profile %t.profdata -filename-equivalence %S/showTemplateInstantiations.cpp | FileCheck -check-prefix=FILE %s
Vedant Kumara8c396d2016-09-15 06:44:51 +00004
5RUN: llvm-cov show %S/Inputs/templateInstantiations.covmapping -instr-profile %t.profdata -format html -o %t.html.dir -filename-equivalence %S/showTemplateInstantiations.cpp
Vedant Kumar016111f2016-09-19 00:38:23 +00006RUN: FileCheck -check-prefix=FILE %s -input-file %t.html.dir/coverage/tmp/showTemplateInstantiations.cpp.html
Vedant Kumara8c396d2016-09-15 06:44:51 +00007
Vedant Kumar016111f2016-09-19 00:38:23 +00008FILE: Unexecuted instantiation: _Z4funcIbEiT_
9FILE: Unexecuted instantiation: _Z4funcIiEiT_
10FILE-NOT: Unexecuted instantiation
11
12RUN: FileCheck -check-prefix=INDEX %s -input-file %t.html.dir/index.html
13
14INDEX: <td class='column-entry-left'>Filename</td>
15INDEX: <td class='column-entry'>Function Coverage</td>
16INDEX: <td class='column-entry'>Instantiation Coverage</td>
17INDEX: <td class='column-entry'>Line Coverage</td>
18INDEX: <td class='column-entry'>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: 20.00% (1/5)