Skip to content

Commit c842085

Browse files
committed
doc: latest sample HTML report
1 parent 79087b9 commit c842085

13 files changed

+61
-34
lines changed

doc/sample_html/cogapp___init___py.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ <h2 class="stats">
6666
<div id="footer">
6767
<div class="content">
6868
<p>
69-
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.4</a>,
70-
created at 2021-01-24 17:48 -0500
69+
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.5</a>,
70+
created at 2021-02-28 12:20 -0500
7171
</p>
7272
</div>
7373
</div>

doc/sample_html/cogapp___main___py.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ <h2 class="stats">
6262
<div id="footer">
6363
<div class="content">
6464
<p>
65-
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.4</a>,
66-
created at 2021-01-24 17:48 -0500
65+
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.5</a>,
66+
created at 2021-02-28 12:20 -0500
6767
</p>
6868
</div>
6969
</div>

doc/sample_html/cogapp_backward_py.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ <h2 class="stats">
9999
<div id="footer">
100100
<div class="content">
101101
<p>
102-
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.4</a>,
103-
created at 2021-01-24 17:48 -0500
102+
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.5</a>,
103+
created at 2021-02-28 12:20 -0500
104104
</p>
105105
</div>
106106
</div>

doc/sample_html/cogapp_cogapp_py.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -865,8 +865,8 @@ <h2 class="stats">
865865
<div id="footer">
866866
<div class="content">
867867
<p>
868-
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.4</a>,
869-
created at 2021-01-24 17:48 -0500
868+
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.5</a>,
869+
created at 2021-02-28 12:20 -0500
870870
</p>
871871
</div>
872872
</div>

doc/sample_html/cogapp_makefiles_py.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ <h2 class="stats">
103103
<div id="footer">
104104
<div class="content">
105105
<p>
106-
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.4</a>,
107-
created at 2021-01-24 17:48 -0500
106+
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.5</a>,
107+
created at 2021-02-28 12:20 -0500
108108
</p>
109109
</div>
110110
</div>

doc/sample_html/cogapp_test_cogapp_py.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2535,8 +2535,8 @@ <h2 class="stats">
25352535
<div id="footer">
25362536
<div class="content">
25372537
<p>
2538-
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.4</a>,
2539-
created at 2021-01-24 17:48 -0500
2538+
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.5</a>,
2539+
created at 2021-02-28 12:20 -0500
25402540
</p>
25412541
</div>
25422542
</div>

doc/sample_html/cogapp_test_makefiles_py.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ <h2 class="stats">
179179
<div id="footer">
180180
<div class="content">
181181
<p>
182-
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.4</a>,
183-
created at 2021-01-24 17:48 -0500
182+
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.5</a>,
183+
created at 2021-02-28 12:20 -0500
184184
</p>
185185
</div>
186186
</div>

doc/sample_html/cogapp_test_whiteutils_py.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ <h2 class="stats">
158158
<div id="footer">
159159
<div class="content">
160160
<p>
161-
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.4</a>,
162-
created at 2021-01-24 17:48 -0500
161+
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.5</a>,
162+
created at 2021-02-28 12:20 -0500
163163
</p>
164164
</div>
165165
</div>

doc/sample_html/cogapp_whiteutils_py.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ <h2 class="stats">
130130
<div id="footer">
131131
<div class="content">
132132
<p>
133-
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.4</a>,
134-
created at 2021-01-24 17:48 -0500
133+
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.5</a>,
134+
created at 2021-02-28 12:20 -0500
135135
</p>
136136
</div>
137137
</div>

doc/sample_html/coverage_html.js

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,8 @@ coverage.index_ready = function ($) {
233233

234234
// -- pyfile stuff --
235235

236+
coverage.LINE_FILTERS_STORAGE = "COVERAGE_LINE_FILTERS";
237+
236238
coverage.pyfile_ready = function ($) {
237239
// If we're directed to a particular line number, highlight the line.
238240
var frag = location.hash;
@@ -256,6 +258,22 @@ coverage.pyfile_ready = function ($) {
256258
$(".button_toggle_mis").click(function (evt) {coverage.toggle_lines(evt.target, "mis");});
257259
$(".button_toggle_par").click(function (evt) {coverage.toggle_lines(evt.target, "par");});
258260

261+
coverage.filters = undefined;
262+
try {
263+
coverage.filters = localStorage.getItem(coverage.LINE_FILTERS_STORAGE);
264+
} catch(err) {}
265+
266+
if (coverage.filters) {
267+
coverage.filters = JSON.parse(coverage.filters);
268+
}
269+
else {
270+
coverage.filters = {run: false, exc: true, mis: true, par: true};
271+
}
272+
273+
for (cls in coverage.filters) {
274+
coverage.set_line_visibilty(cls, coverage.filters[cls]);
275+
}
276+
259277
coverage.assign_shortkeys();
260278
coverage.wire_up_help_panel();
261279

@@ -266,17 +284,26 @@ coverage.pyfile_ready = function ($) {
266284
};
267285

268286
coverage.toggle_lines = function (btn, cls) {
269-
btn = $(btn);
270-
var show = "show_"+cls;
271-
if (btn.hasClass(show)) {
272-
$("#source ." + cls).removeClass(show);
273-
btn.removeClass(show);
274-
}
275-
else {
287+
var onoff = !$(btn).hasClass("show_" + cls);
288+
coverage.set_line_visibilty(cls, onoff);
289+
coverage.build_scroll_markers();
290+
coverage.filters[cls] = onoff;
291+
try {
292+
localStorage.setItem(coverage.LINE_FILTERS_STORAGE, JSON.stringify(coverage.filters));
293+
} catch(err) {}
294+
};
295+
296+
coverage.set_line_visibilty = function (cls, onoff) {
297+
var show = "show_" + cls;
298+
var btn = $(".button_toggle_" + cls);
299+
if (onoff) {
276300
$("#source ." + cls).addClass(show);
277301
btn.addClass(show);
278302
}
279-
coverage.build_scroll_markers();
303+
else {
304+
$("#source ." + cls).removeClass(show);
305+
btn.removeClass(show);
306+
}
280307
};
281308

282309
// Return the nth line div.

doc/sample_html/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ <h1>Coverage report:
156156
<div id="footer">
157157
<div class="content">
158158
<p>
159-
<a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.4</a>,
160-
created at 2021-01-24 17:48 -0500
159+
<a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.5</a>,
160+
created at 2021-02-28 12:20 -0500
161161
</p>
162162
</div>
163163
</div>

doc/sample_html/status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"format":2,"version":"5.4","globals":"a486ca194f909abc39de9a093fa5a484","files":{"cogapp___init___py":{"hash":"6010eef3af87123028eb691d70094593","index":{"nums":[1,2,0,0,0,0,0],"html_filename":"cogapp___init___py.html","relative_filename":"cogapp/__init__.py"}},"cogapp___main___py":{"hash":"2cec3551dfd9a5818a6550318658ccd4","index":{"nums":[1,3,0,3,0,0,0],"html_filename":"cogapp___main___py.html","relative_filename":"cogapp/__main__.py"}},"cogapp_backward_py":{"hash":"f95e44a818c73b2187e6fadc6257f8ce","index":{"nums":[1,22,0,6,4,2,2],"html_filename":"cogapp_backward_py.html","relative_filename":"cogapp/backward.py"}},"cogapp_cogapp_py":{"hash":"f85acbdbacefaccb9c499ef6cbe2ffc4","index":{"nums":[1,485,1,215,200,28,132],"html_filename":"cogapp_cogapp_py.html","relative_filename":"cogapp/cogapp.py"}},"cogapp_makefiles_py":{"hash":"4fd2add44238312a5567022fe28737de","index":{"nums":[1,27,0,20,14,0,14],"html_filename":"cogapp_makefiles_py.html","relative_filename":"cogapp/makefiles.py"}},"cogapp_test_cogapp_py":{"hash":"ee9b3c832eaa47b9e3940133c58827af","index":{"nums":[1,790,6,549,20,0,18],"html_filename":"cogapp_test_cogapp_py.html","relative_filename":"cogapp/test_cogapp.py"}},"cogapp_test_makefiles_py":{"hash":"66093f767a400ce1720b94a7371de48b","index":{"nums":[1,71,0,53,6,0,6],"html_filename":"cogapp_test_makefiles_py.html","relative_filename":"cogapp/test_makefiles.py"}},"cogapp_test_whiteutils_py":{"hash":"068beefb2872fe6739fad2471c36a4f1","index":{"nums":[1,69,0,50,0,0,0],"html_filename":"cogapp_test_whiteutils_py.html","relative_filename":"cogapp/test_whiteutils.py"}},"cogapp_whiteutils_py":{"hash":"b16b0e7f940175106b11230fea9e8c8c","index":{"nums":[1,45,0,5,34,4,4],"html_filename":"cogapp_whiteutils_py.html","relative_filename":"cogapp/whiteutils.py"}}}}
1+
{"format":2,"version":"5.5","globals":"a486ca194f909abc39de9a093fa5a484","files":{"cogapp___init___py":{"hash":"6010eef3af87123028eb691d70094593","index":{"nums":[1,2,0,0,0,0,0],"html_filename":"cogapp___init___py.html","relative_filename":"cogapp/__init__.py"}},"cogapp___main___py":{"hash":"2cec3551dfd9a5818a6550318658ccd4","index":{"nums":[1,3,0,3,0,0,0],"html_filename":"cogapp___main___py.html","relative_filename":"cogapp/__main__.py"}},"cogapp_backward_py":{"hash":"f95e44a818c73b2187e6fadc6257f8ce","index":{"nums":[1,22,0,6,4,2,2],"html_filename":"cogapp_backward_py.html","relative_filename":"cogapp/backward.py"}},"cogapp_cogapp_py":{"hash":"f85acbdbacefaccb9c499ef6cbe2ffc4","index":{"nums":[1,485,1,215,200,28,132],"html_filename":"cogapp_cogapp_py.html","relative_filename":"cogapp/cogapp.py"}},"cogapp_makefiles_py":{"hash":"4fd2add44238312a5567022fe28737de","index":{"nums":[1,27,0,20,14,0,14],"html_filename":"cogapp_makefiles_py.html","relative_filename":"cogapp/makefiles.py"}},"cogapp_test_cogapp_py":{"hash":"ee9b3c832eaa47b9e3940133c58827af","index":{"nums":[1,790,6,549,20,0,18],"html_filename":"cogapp_test_cogapp_py.html","relative_filename":"cogapp/test_cogapp.py"}},"cogapp_test_makefiles_py":{"hash":"66093f767a400ce1720b94a7371de48b","index":{"nums":[1,71,0,53,6,0,6],"html_filename":"cogapp_test_makefiles_py.html","relative_filename":"cogapp/test_makefiles.py"}},"cogapp_test_whiteutils_py":{"hash":"068beefb2872fe6739fad2471c36a4f1","index":{"nums":[1,69,0,50,0,0,0],"html_filename":"cogapp_test_whiteutils_py.html","relative_filename":"cogapp/test_whiteutils.py"}},"cogapp_whiteutils_py":{"hash":"b16b0e7f940175106b11230fea9e8c8c","index":{"nums":[1,45,0,5,34,4,4],"html_filename":"cogapp_whiteutils_py.html","relative_filename":"cogapp/whiteutils.py"}}}}

doc/sample_html/style.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ a.nav:hover { text-decoration: underline; color: inherit; }
3434

3535
@media (prefers-color-scheme: dark) { #header { border-color: #333; } }
3636

37-
.indexfile #footer { margin: 1rem 3rem; }
37+
.indexfile #footer { margin: 1rem 3.5rem; }
3838

3939
.pyfile #footer { margin: 1rem 1rem; }
4040

4141
#footer .content { padding: 0; color: #666; font-style: italic; }
4242

4343
@media (prefers-color-scheme: dark) { #footer .content { color: #aaa; } }
4444

45-
#index { margin: 1rem 0 0 3rem; }
45+
#index { margin: 1rem 0 0 3.5rem; }
4646

47-
#header .content { padding: 1rem 3rem; }
47+
#header .content { padding: 1rem 3.5rem; }
4848

4949
h1 { font-size: 1.25em; display: inline-block; }
5050

@@ -122,13 +122,13 @@ h2.stats { margin-top: .5em; font-size: 1em; }
122122

123123
.keyhelp .key { border: 1px solid black; border-color: #888 #333 #333 #888; padding: .1em .35em; font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-weight: bold; background: #eee; }
124124

125-
#source { padding: 1em 0 1em 3rem; font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
125+
#source { padding: 1em 0 1em 3.5rem; font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
126126

127127
#source p { position: relative; white-space: pre; }
128128

129129
#source p * { box-sizing: border-box; }
130130

131-
#source p .n { float: left; text-align: right; width: 3rem; box-sizing: border-box; margin-left: -3rem; padding-right: 1em; color: #999; }
131+
#source p .n { float: left; text-align: right; width: 3.5rem; box-sizing: border-box; margin-left: -3.5rem; padding-right: 1em; color: #999; }
132132

133133
@media (prefers-color-scheme: dark) { #source p .n { color: #777; } }
134134

0 commit comments

Comments
 (0)