/
coverage.foo.cpp.da858f18e0c3a73a7b98ff456723b9ae.html
162 lines (145 loc) · 3.93 KB
/
coverage.foo.cpp.da858f18e0c3a73a7b98ff456723b9ae.html
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>GCC Code Coverage Report</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" href="coverage.css">
</head>
<body>
<h1>GCC Code Coverage Report</h1>
<hr/>
<div class="summary">
<div>
<table class="legend">
<tr>
<th scope="row">Directory:</th>
<td>./</td>
</tr>
<tr>
<th scope="row">File:</th>
<td>foo.cpp</td>
</tr>
<tr>
<th scope="row">Date:</th>
<td>2021-09-21 19:04:30</td>
</tr>
</table>
</div>
<div>
<table class="coverage">
<tr>
<th></th>
<th scope="col">Exec</th>
<th scope="col">Total</th>
<th scope="col">Coverage</th>
</tr>
<tr>
<th scope="row">Lines:</th>
<td>4</td>
<td>4</td>
<td class="coverage-high">100.0%</td>
</tr>
<tr>
<th scope="row">Functions:</th>
<td>1</td>
<td>1</td>
<td class="coverage-high">100.0%</td>
</tr>
<tr>
<th scope="row">Branches:</th>
<td>0</td>
<td>0</td>
<td class="coverage-unknown">-%</td>
</tr>
</table>
</div>
</div>
<hr/>
<details>
<summary>List of functions</summary>
<table class="listOfFunctions">
<tr>
<th>Function</th>
<th>Line</th>
<th>Call count</th>
</tr>
<tr>
<td>
<a href="#l1">foo()</a>
</td>
<td>
<a href="#l1">1</a>
</td>
<td>
<a href="#l1"> called 1 time</a>
</td>
</tr>
</table>
</details>
<hr/>
<div class="file-source">
<table>
<tr>
<th align="right">Line</th>
<th align="right">Branch</th>
<th align="right">Exec</th>
<th align="left">Source</th>
</tr>
<tr class="source-line">
<td class="lineno"><a id="l1" href="#l1">1</a></td>
<td class="linebranch">
</td>
<td class="linecount coveredLine">1</td>
<td class="src coveredLine"><span class="kt">int</span> <span class="nf">foo</span><span class="p">()</span></td>
</tr>
<tr class="source-line">
<td class="lineno"><a id="l2" href="#l2">2</a></td>
<td class="linebranch">
</td>
<td class="linecount "></td>
<td class="src "><span class="p">{</span></td>
</tr>
<tr class="source-line">
<td class="lineno"><a id="l3" href="#l3">3</a></td>
<td class="linebranch">
</td>
<td class="linecount coveredLine">1</td>
<td class="src coveredLine"><span class="kt">int</span> <span class="n">x</span><span class="o">=</span><span class="mi">2</span><span class="p">;</span></td>
</tr>
<tr class="source-line">
<td class="lineno"><a id="l4" href="#l4">4</a></td>
<td class="linebranch">
</td>
<td class="linecount coveredLine">1</td>
<td class="src coveredLine"><span class="kt">int</span> <span class="n">y</span><span class="o">=</span><span class="mi">2</span><span class="p">;</span></td>
</tr>
<tr class="source-line">
<td class="lineno"><a id="l5" href="#l5">5</a></td>
<td class="linebranch">
</td>
<td class="linecount coveredLine">1</td>
<td class="src coveredLine"><span class="k">return</span> <span class="n">x</span><span class="o">+</span><span class="n">y</span><span class="p">;</span></td>
</tr>
<tr class="source-line">
<td class="lineno"><a id="l6" href="#l6">6</a></td>
<td class="linebranch">
</td>
<td class="linecount "></td>
<td class="src "><span class="p">}</span></td>
</tr>
<tr class="source-line">
<td class="lineno"><a id="l7" href="#l7">7</a></td>
<td class="linebranch">
</td>
<td class="linecount "></td>
<td class="src "></td>
</tr>
</table>
</div>
<hr/>
<footer>
Generated by: <a href="http://gcovr.com">GCOVR (Version 5.0)</a>
</footer>
</body>
</html>