-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcoverage.html
More file actions
169 lines (158 loc) · 8.48 KB
/
coverage.html
File metadata and controls
169 lines (158 loc) · 8.48 KB
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
163
164
165
166
167
168
169
<html>
<head>
<title>Coverage Report</title>
<style type="text/css">
body { background-color: #fff; }
table {
margin-left: 10px;
border-collapse: collapse;
}
td {
background-color: #fff;
padding: 2px;
}
table.overview td {
padding-right: 20px;
}
td.percent, td.linecount { text-align: right; }
div.package, #totalcov {
color: #fff;
background-color: #375eab;
font-size: 16px;
font-weight: bold;
padding: 10px;
border-radius: 5px 5px 5px 5px;
}
div.package, #totalcov {
float: right;
right: 10px;
}
#totalcov {
top: 10px;
position: relative;
background-color: #fff;
color: #000;
border: 1px solid #375eab;
clear: both;
}
#summaryWrapper {
position: fixed;
top: 10px;
float: right;
right: 10px;
}
span.packageTotal {
float: right;
color: #000;
}
#doctitle {
background-color: #fff;
font-size: 24px;
margin-top: 20px;
margin-left: 10px;
color: #375eab;
font-weight: bold;
}
#about {
margin-left: 18px;
font-size: 10px;
}
table tr:last-child td {
font-weight: bold;
}
.functitle, .funcname {
text-align: center;
font-size: 20px;
font-weight: bold;
color: 375eab;
}
.funcname {
text-align: left;
margin-top: 20px;
margin-left: 10px;
margin-bottom: 20px;
padding: 2px 5px 5px;
background-color: #e0ebf5;
}
table.listing {
margin-left: 10px;
}
table.listing td {
padding: 0px;
font-size: 12px;
background-color: #eee;
vertical-align: top;
padding-left: 10px;
border-bottom: 1px solid #fff;
}
table.listing td:first-child {
text-align: right;
font-weight: bold;
vertical-align: center;
}
table.listing tr.miss td {
background-color: #FFBBB8;
}
table.listing tr:last-child td {
font-weight: normal;
color: #000;
}
table.listing tr:last-child td:first-child {
font-weight: bold;
}
.info {
margin-left: 10px;
}
.info code {
}
pre { margin: 1px; }
pre.cmd {
background-color: #e9e9e9;
border-radius: 5px 5px 5px 5px;
padding: 10px;
margin: 20px;
line-height: 18px;
font-size; 14px;
}
a {
text-decoration: none;
color: #375eab;
}
a:hover { text-decoration: underline; }
p { margin-left: 10px; }
</style>
</head>
<body>
<div id="doctitle">Coverage Report</div>
<div id="about">Generated on 25 Jan 18 18:30 +0800 with <a href="https://github.com/matm/gocov-html">gocov-html</a></div><div class="funcname">Report Overview</div><table class="overview">
<tr id="s_pkg_gitlab.followme.com/liuxiaobin/test-srv"><td><code><a href="#pkg_gitlab.followme.com/liuxiaobin/test-srv">gitlab.followme.com/liuxiaobin/test-srv</a></code></td><td class="percent"><code>100.00%</code></td><td class="linecount"><code>1/1</code></td></tr>
<tr id="s_pkg_gitlab.followme.com/liuxiaobin/test-srv/utils"><td><code><a href="#pkg_gitlab.followme.com/liuxiaobin/test-srv/utils">gitlab.followme.com/liuxiaobin/test-srv/utils</a></code></td><td class="percent"><code>50.00%</code></td><td class="linecount"><code>1/2</code></td></tr>
<tr><td><code>Report Total</code></td><td class="percent"><code>66.67%</code></td><td class="linecount"><code>2/3</code></td></tr>
</table>
<div id="pkg_gitlab.followme.com/liuxiaobin/test-srv" class="funcname">Package Overview: gitlab.followme.com/liuxiaobin/test-srv <span class="packageTotal">100.00%</span></div><p>This is a coverage report created after analysis of the <code>gitlab.followme.com/liuxiaobin/test-srv</code> package. It
has been generated with the following command:</p><pre class="cmd">gocov test gitlab.followme.com/liuxiaobin/test-srv | gocov-html</pre> <p>Here are the stats. Please select a function name to view its implementation and see what's left for testing.</p><table class="overview">
<tr id="s_fn_Handler"><td><code><a href="#fn_Handler">Handler(...)</a></code></td><td><code>gitlab.followme.com/liuxiaobin/test-srv/srv.go</code></td><td class="percent"><code>100.00%</code></td><td class="linecount"><code>1/1</code></td></tr>
<tr><td colspan="2"><code>gitlab.followme.com/liuxiaobin/test-srv</code></td><td class="percent"><code>100.00%</code></td><td class="linecount"><code>1/1</code></td></tr>
</table>
<div class="funcname" id="fn_Handler">func Handler</div><div class="info"><a href="#s_fn_Handler">Back</a><p>In <code>/Users/orvice/go/src/gitlab.followme.com/liuxiaobin/test-srv/srv.go</code>:</p></div><table class="listing">
<tr><td>8</td><td><code><pre>func Handler() {</pre></code></td></tr><tr><td>9</td><td><code><pre> fmt.Println(utils.Plus(1, 1))</pre></code></td></tr><tr><td>10</td><td><code><pre>}</pre></code></td></tr></table>
<!-- Can be parsed by external script
PACKAGE:gitlab.followme.com/liuxiaobin/test-srv DONE:100.00
-->
<div id="pkg_gitlab.followme.com/liuxiaobin/test-srv/utils" class="funcname">Package Overview: gitlab.followme.com/liuxiaobin/test-srv/utils <span class="packageTotal">50.00%</span></div><p>This is a coverage report created after analysis of the <code>gitlab.followme.com/liuxiaobin/test-srv/utils</code> package. It
has been generated with the following command:</p><pre class="cmd">gocov test gitlab.followme.com/liuxiaobin/test-srv/utils | gocov-html</pre> <p>Here are the stats. Please select a function name to view its implementation and see what's left for testing.</p><table class="overview">
<tr id="s_fn_Plus"><td><code><a href="#fn_Plus">Plus(...)</a></code></td><td><code>gitlab.followme.com/liuxiaobin/test-srv/utils/utils.go</code></td><td class="percent"><code>100.00%</code></td><td class="linecount"><code>1/1</code></td></tr>
<tr id="s_fn_NoCover"><td><code><a href="#fn_NoCover">NoCover(...)</a></code></td><td><code>gitlab.followme.com/liuxiaobin/test-srv/utils/utils.go</code></td><td class="percent"><code>0.00%</code></td><td class="linecount"><code>0/1</code></td></tr>
<tr><td colspan="2"><code>gitlab.followme.com/liuxiaobin/test-srv/utils</code></td><td class="percent"><code>50.00%</code></td><td class="linecount"><code>1/2</code></td></tr>
</table>
<div class="funcname" id="fn_Plus">func Plus</div><div class="info"><a href="#s_fn_Plus">Back</a><p>In <code>/Users/orvice/go/src/gitlab.followme.com/liuxiaobin/test-srv/utils/utils.go</code>:</p></div><table class="listing">
<tr><td>3</td><td><code><pre>func Plus(a, b int) int {</pre></code></td></tr><tr><td>4</td><td><code><pre> return a + b</pre></code></td></tr><tr><td>5</td><td><code><pre>}</pre></code></td></tr></table>
<div class="funcname" id="fn_NoCover">func NoCover</div><div class="info"><a href="#s_fn_NoCover">Back</a><p>In <code>/Users/orvice/go/src/gitlab.followme.com/liuxiaobin/test-srv/utils/utils.go</code>:</p></div><table class="listing">
<tr><td>7</td><td><code><pre>func NoCover(a int) int {</pre></code></td></tr><tr class="miss"><td>8</td><td><code><pre> return a</pre></code></td></tr><tr><td>9</td><td><code><pre>}</pre></code></td></tr></table>
<!-- Can be parsed by external script
PACKAGE:gitlab.followme.com/liuxiaobin/test-srv/utils DONE:50.00
-->
<div id="summaryWrapper"><div class="package">Report Total</div>
<div id="totalcov">66.67%</div>
</div>
</body>