Skip to content

Commit

Permalink
docs: 6.0 sample HTML report
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Oct 3, 2021
1 parent e179cf6 commit 9515c4d
Show file tree
Hide file tree
Showing 15 changed files with 849 additions and 852 deletions.
13 changes: 4 additions & 9 deletions doc/sample_html/coverage_html.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ coverage.wire_up_help_panel = function () {
var koff = $("#keyboard_icon").offset();
var poff = $("#panel_icon").position();
$(".help_panel").offset({
top: koff.top-poff.top,
left: koff.left-poff.left
top: koff.top-poff.top-1,
left: koff.left-poff.left-1
});
});
$("#panel_icon").click(function () {
Expand Down Expand Up @@ -311,11 +311,6 @@ coverage.line_elt = function (n) {
return $("#t" + n);
};

// Return the nth line number div.
coverage.num_elt = function (n) {
return $("#n" + n);
};

// Set the selection. b and e are line numbers.
coverage.set_sel = function (b, e) {
// The first line selected.
Expand Down Expand Up @@ -514,9 +509,9 @@ coverage.show_selection = function () {
var c = coverage;

// Highlight the lines in the chunk
$(".linenos .highlight").removeClass("highlight");
$("#source .highlight").removeClass("highlight");
for (var probe = c.sel_begin; probe > 0 && probe < c.sel_end; probe++) {
c.num_elt(probe).addClass("highlight");
c.line_elt(probe).addClass("highlight");
}

c.scroll_to_selection();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ <h2 class="stats">
<div id="footer">
<div class="content">
<p>
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.5</a>,
created at 2021-02-28 12:20 -0500
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v6.0</a>,
created at 2021-10-02 22:06 -0400
</p>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ <h2 class="stats">
<div id="footer">
<div class="content">
<p>
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.5</a>,
created at 2021-02-28 12:20 -0500
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v6.0</a>,
created at 2021-10-02 22:06 -0400
</p>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ <h2 class="stats">
<div id="footer">
<div class="content">
<p>
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.5</a>,
created at 2021-02-28 12:20 -0500
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v6.0</a>,
created at 2021-10-02 22:06 -0400
</p>
</div>
</div>
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ <h2 class="stats">
<div id="footer">
<div class="content">
<p>
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.5</a>,
created at 2021-02-28 12:20 -0500
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v6.0</a>,
created at 2021-10-02 22:06 -0400
</p>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=emulateIE7" />
<title>Coverage for cogapp/test_cogapp.py: 30.00%</title>
<title>Coverage for cogapp/test_cogapp.py: 30.07%</title>
<link rel="icon" sizes="32x32" href="favicon_32.png">
<link rel="stylesheet" href="style.css" type="text/css">
<script type="text/javascript" src="jquery.min.js"></script>
Expand All @@ -18,14 +18,14 @@
<div id="header">
<div class="content">
<h1>Coverage for <b>cogapp/test_cogapp.py</b> :
<span class="pc_cov">30.00%</span>
<span class="pc_cov">30.07%</span>
</h1>
<img id="keyboard_icon" src="keybd_closed.png" alt="Show keyboard shortcuts" />
<h2 class="stats">
790 statements &nbsp;
788 statements &nbsp;
<button type="button" class="run shortkey_r button_toggle_run" title="Toggle lines run">241 run</button>
<button type="button" class="mis show_mis shortkey_m button_toggle_mis" title="Toggle lines missing">549 missing</button>
<button type="button" class="exc show_exc shortkey_x button_toggle_exc" title="Toggle lines excluded">6 excluded</button>
<button type="button" class="mis show_mis shortkey_m button_toggle_mis" title="Toggle lines missing">547 missing</button>
<button type="button" class="exc show_exc shortkey_x button_toggle_exc" title="Toggle lines excluded">8 excluded</button>
<button type="button" class="par run show_par shortkey_p button_toggle_par" title="Toggle lines partially run">0 partial</button>
</h2>
</div>
Expand Down Expand Up @@ -2076,8 +2076,8 @@ <h2 class="stats">
<p id="t2021" class="pln"><span class="n"><a href="#t2021">2021</a></span><span class="t"> <span class="op">[</span><span class="str">'cog.py'</span><span class="op">,</span> <span class="str">'-r'</span><span class="op">,</span> <span class="str">'-D'</span><span class="op">,</span> <span class="str">'FIRST={}'</span><span class="op">.</span><span class="nam">format</span><span class="op">(</span><span class="nam">num</span><span class="op">+</span><span class="num">1</span><span class="op">)</span><span class="op">,</span> <span class="str">'f{}.cog'</span><span class="op">.</span><span class="nam">format</span><span class="op">(</span><span class="nam">num</span><span class="op">)</span><span class="op">]</span>&nbsp;</span><span class="r"></span></p>
<p id="t2022" class="pln"><span class="n"><a href="#t2022">2022</a></span><span class="t"> <span class="op">)</span>&nbsp;</span><span class="r"></span></p>
<p id="t2023" class="mis show_mis"><span class="n"><a href="#t2023">2023</a></span><span class="t"> <span class="key">assert</span> <span class="nam">ret</span> <span class="op">==</span> <span class="num">0</span>&nbsp;</span><span class="r"></span></p>
<p id="t2024" class="mis show_mis"><span class="n"><a href="#t2024">2024</a></span><span class="t"> <span class="key">except</span> <span class="nam">Exception</span> <span class="key">as</span> <span class="nam">exc</span><span class="op">:</span>&nbsp;</span><span class="r"></span></p>
<p id="t2025" class="mis show_mis"><span class="n"><a href="#t2025">2025</a></span><span class="t"> <span class="nam">results</span><span class="op">.</span><span class="nam">append</span><span class="op">(</span><span class="nam">exc</span><span class="op">)</span>&nbsp;</span><span class="r"></span></p>
<p id="t2024" class="exc show_exc"><span class="n"><a href="#t2024">2024</a></span><span class="t"> <span class="key">except</span> <span class="nam">Exception</span> <span class="key">as</span> <span class="nam">exc</span><span class="op">:</span> <span class="com"># pragma: no cover (only happens on test failure)</span>&nbsp;</span><span class="r"></span></p>
<p id="t2025" class="exc show_exc"><span class="n"><a href="#t2025">2025</a></span><span class="t"> <span class="nam">results</span><span class="op">.</span><span class="nam">append</span><span class="op">(</span><span class="nam">exc</span><span class="op">)</span>&nbsp;</span><span class="r"></span></p>
<p id="t2026" class="pln"><span class="n"><a href="#t2026">2026</a></span><span class="t"> <span class="key">else</span><span class="op">:</span>&nbsp;</span><span class="r"></span></p>
<p id="t2027" class="mis show_mis"><span class="n"><a href="#t2027">2027</a></span><span class="t"> <span class="nam">results</span><span class="op">.</span><span class="nam">append</span><span class="op">(</span><span class="key">None</span><span class="op">)</span>&nbsp;</span><span class="r"></span></p>
<p id="t2028" class="pln"><span class="n"><a href="#t2028">2028</a></span><span class="t">&nbsp;</span><span class="r"></span></p>
Expand Down Expand Up @@ -2535,8 +2535,8 @@ <h2 class="stats">
<div id="footer">
<div class="content">
<p>
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.5</a>,
created at 2021-02-28 12:20 -0500
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v6.0</a>,
created at 2021-10-02 22:06 -0400
</p>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ <h2 class="stats">
<div id="footer">
<div class="content">
<p>
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.5</a>,
created at 2021-02-28 12:20 -0500
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v6.0</a>,
created at 2021-10-02 22:06 -0400
</p>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ <h2 class="stats">
<div id="footer">
<div class="content">
<p>
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.5</a>,
created at 2021-02-28 12:20 -0500
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v6.0</a>,
created at 2021-10-02 22:06 -0400
</p>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ <h2 class="stats">
<div id="footer">
<div class="content">
<p>
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.5</a>,
created at 2021-02-28 12:20 -0500
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io">coverage.py v6.0</a>,
created at 2021-10-02 22:06 -0400
</p>
</div>
</div>
Expand Down
44 changes: 22 additions & 22 deletions doc/sample_html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<div id="header">
<div class="content">
<h1>Coverage report:
<span class="pc_cov">39.90%</span>
<span class="pc_cov">39.98%</span>
</h1>
<img id="keyboard_icon" src="keybd_closed.png" alt="Show keyboard shortcuts" />
<form id="filter_container">
Expand Down Expand Up @@ -57,17 +57,17 @@ <h1>Coverage report:
<tfoot>
<tr class="total">
<td class="name left">Total</td>
<td>1514</td>
<td>901</td>
<td>7</td>
<td>1513</td>
<td>899</td>
<td>9</td>
<td>278</td>
<td>34</td>
<td class="right" data-ratio="715 1792">39.90%</td>
<td class="right" data-ratio="716 1791">39.98%</td>
</tr>
</tfoot>
<tbody>
<tr class="file">
<td class="name left"><a href="cogapp___init___py.html">cogapp/__init__.py</a></td>
<td class="name left"><a href="d_7b071bdc2a35fa80___init___py.html">cogapp/__init__.py</a></td>
<td>2</td>
<td>0</td>
<td>0</td>
Expand All @@ -76,7 +76,7 @@ <h1>Coverage report:
<td class="right" data-ratio="2 2">100.00%</td>
</tr>
<tr class="file">
<td class="name left"><a href="cogapp___main___py.html">cogapp/__main__.py</a></td>
<td class="name left"><a href="d_7b071bdc2a35fa80___main___py.html">cogapp/__main__.py</a></td>
<td>3</td>
<td>3</td>
<td>0</td>
Expand All @@ -85,7 +85,7 @@ <h1>Coverage report:
<td class="right" data-ratio="0 3">0.00%</td>
</tr>
<tr class="file">
<td class="name left"><a href="cogapp_backward_py.html">cogapp/backward.py</a></td>
<td class="name left"><a href="d_7b071bdc2a35fa80_backward_py.html">cogapp/backward.py</a></td>
<td>22</td>
<td>6</td>
<td>0</td>
Expand All @@ -94,16 +94,16 @@ <h1>Coverage report:
<td class="right" data-ratio="18 26">69.23%</td>
</tr>
<tr class="file">
<td class="name left"><a href="cogapp_cogapp_py.html">cogapp/cogapp.py</a></td>
<td>485</td>
<td class="name left"><a href="d_7b071bdc2a35fa80_cogapp_py.html">cogapp/cogapp.py</a></td>
<td>486</td>
<td>215</td>
<td>1</td>
<td>200</td>
<td>28</td>
<td class="right" data-ratio="338 685">49.34%</td>
<td class="right" data-ratio="339 686">49.42%</td>
</tr>
<tr class="file">
<td class="name left"><a href="cogapp_makefiles_py.html">cogapp/makefiles.py</a></td>
<td class="name left"><a href="d_7b071bdc2a35fa80_makefiles_py.html">cogapp/makefiles.py</a></td>
<td>27</td>
<td>20</td>
<td>0</td>
Expand All @@ -112,16 +112,16 @@ <h1>Coverage report:
<td class="right" data-ratio="7 41">17.07%</td>
</tr>
<tr class="file">
<td class="name left"><a href="cogapp_test_cogapp_py.html">cogapp/test_cogapp.py</a></td>
<td>790</td>
<td>549</td>
<td>6</td>
<td class="name left"><a href="d_7b071bdc2a35fa80_test_cogapp_py.html">cogapp/test_cogapp.py</a></td>
<td>788</td>
<td>547</td>
<td>8</td>
<td>20</td>
<td>0</td>
<td class="right" data-ratio="243 810">30.00%</td>
<td class="right" data-ratio="243 808">30.07%</td>
</tr>
<tr class="file">
<td class="name left"><a href="cogapp_test_makefiles_py.html">cogapp/test_makefiles.py</a></td>
<td class="name left"><a href="d_7b071bdc2a35fa80_test_makefiles_py.html">cogapp/test_makefiles.py</a></td>
<td>71</td>
<td>53</td>
<td>0</td>
Expand All @@ -130,7 +130,7 @@ <h1>Coverage report:
<td class="right" data-ratio="18 77">23.38%</td>
</tr>
<tr class="file">
<td class="name left"><a href="cogapp_test_whiteutils_py.html">cogapp/test_whiteutils.py</a></td>
<td class="name left"><a href="d_7b071bdc2a35fa80_test_whiteutils_py.html">cogapp/test_whiteutils.py</a></td>
<td>69</td>
<td>50</td>
<td>0</td>
Expand All @@ -139,7 +139,7 @@ <h1>Coverage report:
<td class="right" data-ratio="19 69">27.54%</td>
</tr>
<tr class="file">
<td class="name left"><a href="cogapp_whiteutils_py.html">cogapp/whiteutils.py</a></td>
<td class="name left"><a href="d_7b071bdc2a35fa80_whiteutils_py.html">cogapp/whiteutils.py</a></td>
<td>45</td>
<td>5</td>
<td>0</td>
Expand All @@ -156,8 +156,8 @@ <h1>Coverage report:
<div id="footer">
<div class="content">
<p>
<a class="nav" href="https://coverage.readthedocs.io">coverage.py v5.5</a>,
created at 2021-02-28 12:20 -0500
<a class="nav" href="https://coverage.readthedocs.io">coverage.py v6.0</a>,
created at 2021-10-02 22:06 -0400
</p>
</div>
</div>
Expand Down
Binary file modified doc/sample_html/keybd_closed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/sample_html/keybd_open.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion doc/sample_html/status.json
Original file line number Diff line number Diff line change
@@ -1 +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"}}}}
{"format":2,"version":"6.0","globals":"6a4256e35f9798f9bb080b10ccdeeac8","files":{"d_7b071bdc2a35fa80___init___py":{"hash":"1fc4f9498f460d6c93280e8962ee0c0f","index":{"nums":[2,1,2,0,0,0,0,0],"html_filename":"d_7b071bdc2a35fa80___init___py.html","relative_filename":"cogapp/__init__.py"}},"d_7b071bdc2a35fa80___main___py":{"hash":"ffe6befa655d4d0b0b31eb0c73811311","index":{"nums":[2,1,3,0,3,0,0,0],"html_filename":"d_7b071bdc2a35fa80___main___py.html","relative_filename":"cogapp/__main__.py"}},"d_7b071bdc2a35fa80_backward_py":{"hash":"32afb71b2a11dd4b8ca4ed66b6815d42","index":{"nums":[2,1,22,0,6,4,2,2],"html_filename":"d_7b071bdc2a35fa80_backward_py.html","relative_filename":"cogapp/backward.py"}},"d_7b071bdc2a35fa80_cogapp_py":{"hash":"f3523a775c5c1d12a213eead8df82291","index":{"nums":[2,1,486,1,215,200,28,132],"html_filename":"d_7b071bdc2a35fa80_cogapp_py.html","relative_filename":"cogapp/cogapp.py"}},"d_7b071bdc2a35fa80_makefiles_py":{"hash":"85ec1064ff86d94238a8d7b76a2178a5","index":{"nums":[2,1,27,0,20,14,0,14],"html_filename":"d_7b071bdc2a35fa80_makefiles_py.html","relative_filename":"cogapp/makefiles.py"}},"d_7b071bdc2a35fa80_test_cogapp_py":{"hash":"6985a05ab5a9b347b3665136686f6fb1","index":{"nums":[2,1,788,8,547,20,0,18],"html_filename":"d_7b071bdc2a35fa80_test_cogapp_py.html","relative_filename":"cogapp/test_cogapp.py"}},"d_7b071bdc2a35fa80_test_makefiles_py":{"hash":"647f7dc911c97a6e646a91c3300a25ff","index":{"nums":[2,1,71,0,53,6,0,6],"html_filename":"d_7b071bdc2a35fa80_test_makefiles_py.html","relative_filename":"cogapp/test_makefiles.py"}},"d_7b071bdc2a35fa80_test_whiteutils_py":{"hash":"9476b26e42e6169b1857cfe7f29bf954","index":{"nums":[2,1,69,0,50,0,0,0],"html_filename":"d_7b071bdc2a35fa80_test_whiteutils_py.html","relative_filename":"cogapp/test_whiteutils.py"}},"d_7b071bdc2a35fa80_whiteutils_py":{"hash":"cf00c3e6149e4b80a2d01b6919c066a4","index":{"nums":[2,1,45,0,5,34,4,4],"html_filename":"d_7b071bdc2a35fa80_whiteutils_py.html","relative_filename":"cogapp/whiteutils.py"}}}}
Loading

0 comments on commit 9515c4d

Please sign in to comment.