xref: /llvm-project/llvm/test/tools/llvm-cov/style.test (revision 79e09b1555a51cc8d02d0225ed6d81a21fa09eca)
1RUN: llvm-cov show %S/Inputs/templateInstantiations.covmapping -instr-profile %S/Inputs/templateInstantiations.profdata -path-equivalence=/tmp,%S %S/showTemplateInstantiations.cpp -format html -o %t.dir
2
3RUN: llvm-cov show %S/Inputs/templateInstantiations.covmapping -instr-profile %S/Inputs/templateInstantiations.profdata -path-equivalence=/tmp,%S -name=_Z4funcIbEiT_ %S/showTemplateInstantiations.cpp -format html -o %t.filtered.dir
4
5RUN: llvm-cov show %S/Inputs/templateInstantiations.covmapping -instr-profile %S/Inputs/templateInstantiations.profdata -path-equivalence=/tmp,%S %S/showTemplateInstantiations.cpp -format html | FileCheck %s -check-prefix=NODIR
6
7RUN: FileCheck %s -input-file=%t.dir/style.css -check-prefix=STYLE
8RUN: FileCheck %s -input-file=%t.dir/index.html -check-prefix=TOPLEVEL
9RUN: FileCheck %s -input-file=%t.dir/coverage/tmp/showTemplateInstantiations.cpp.html -check-prefix=FILEVIEW
10
11RUN: FileCheck %s -input-file=%t.filtered.dir/style.css -check-prefix=STYLE
12RUN: FileCheck %s -input-file=%t.filtered.dir/index.html -check-prefix=TOPLEVEL
13RUN: FileCheck %s -input-file=%t.filtered.dir/coverage/tmp/showTemplateInstantiations.cpp.html -check-prefix=FILEVIEW
14
15STYLE-DAG: .red
16STYLE-DAG: .cyan
17STYLE-DAG: .source-name-title
18STYLE-DAG: .centered
19STYLE-DAG: .expansion-view
20STYLE-DAG: .line-number
21STYLE-DAG: .light-row
22STYLE-DAG: .light-row-bold
23STYLE-DAG: .column-entry
24STYLE-DAG: .column-entry-bold
25STYLE-DAG: .column-entry-yellow
26STYLE-DAG: .column-entry-red
27STYLE-DAG: .column-entry-green
28STYLE-DAG: .covered-line
29STYLE-DAG: .uncovered-line
30STYLE-DAG: .tooltip
31STYLE-DAG: .tooltip span.tooltip-content
32STYLE-DAG: th, td
33
34TOPLEVEL-NOT: <style>
35TOPLEVEL: <head>
36TOPLEVEL: <link rel='stylesheet' type='text/css' href='style.css'>
37TOPLEVEL: </head>
38
39FILEVIEW-NOT: <style>
40FILEVIEW: <head>
41FILEVIEW: <link rel='stylesheet' type='text/css' href='..{{.*}}..{{.*}}style.css'>
42FILEVIEW: </head>
43
44NODIR: <head>
45NODIR: <style>
46NODIR: </style>
47NODIR: </head>
48