Skip to content

Commit

Permalink
test: update gold files
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Oct 24, 2021
1 parent bd929f9 commit 668eec7
Show file tree
Hide file tree
Showing 43 changed files with 1,890 additions and 2,063 deletions.
89 changes: 42 additions & 47 deletions tests/gold/html/a/a_py.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,61 +6,56 @@
<title>Coverage for a.py: 67%</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>
<script type="text/javascript" src="jquery.hotkeys.js"></script>
<script type="text/javascript" src="jquery.isonscreen.js"></script>
<script type="text/javascript" src="coverage_html.js"></script>
<script type="text/javascript">
jQuery(document).ready(coverage.pyfile_ready);
</script>
<script type="text/javascript" src="coverage_html.js" defer></script>
</head>
<body class="pyfile">
<aside id="sticky_header">
<div class="content stats">
<p><b>a.py</b> : 67%&nbsp;&nbsp;
<button type="button" class="run button_toggle_run" title="Toggle lines run">2</button>
<button type="button" class="mis show_mis button_toggle_mis" title="Toggle lines missing">1</button>
<button type="button" class="exc show_exc button_toggle_exc" title="Toggle lines excluded">0</button>
<img id="keyboard_icon" src="keybd_closed.png" alt="Show keyboard shortcuts" />
</p>
</div>
</aside>
<header>
<div class="content">
<h1>Coverage for <b>a.py</b> :
<h1>
<span class="text">Coverage for </span><b>a.py</b>:
<span class="pc_cov">67%</span>
</h1>
<img id="keyboard_icon" src="keybd_closed.png" alt="Show keyboard shortcuts" />
<h2 class="stats">
3 statements &nbsp;
<button type="button" class="run shortkey_r button_toggle_run" title="Toggle lines run">2 run</button>
<button type="button" class="mis show_mis shortkey_m button_toggle_mis" title="Toggle lines missing">1 missing</button>
<button type="button" class="exc show_exc shortkey_x button_toggle_exc" title="Toggle lines excluded">0 excluded</button>
<div id="help_panel_wrapper">
<input id="help_panel_state" type="checkbox">
<label for="help_panel_state">
<img id="keyboard_icon" src="keybd_closed.png" alt="Show/hide keyboard shortcuts" />
</label>
<div id="help_panel">
<p class="legend">Shortcuts on this page</p>
<div>
<p class="keyhelp">
<kbd>r</kbd>
<kbd>m</kbd>
<kbd>x</kbd>
<kbd>p</kbd> &nbsp; toggle line displays
</p>
<p class="keyhelp">
<kbd>j</kbd>
<kbd>k</kbd> &nbsp; next/prev highlighted chunk
</p>
<p class="keyhelp">
<kbd>0</kbd> &nbsp; (zero) top of page
</p>
<p class="keyhelp">
<kbd>1</kbd> &nbsp; (one) first highlighted chunk
</p>
</div>
</div>
</div>
<h2>
<span class="text">3 statements &nbsp;</span>
<button type="button" class="run button_toggle_run" value="run" data-shortcut="r" title="Toggle lines run">2<span class="text"> run</span></button>
<button type="button" class="mis show_mis button_toggle_mis" value="mis" data-shortcut="m" title="Toggle lines missing">1<span class="text"> missing</span></button>
<button type="button" class="exc show_exc button_toggle_exc" value="exc" data-shortcut="x" title="Toggle lines excluded">0<span class="text"> excluded</span></button>
</h2>
<div style="display: none;">
<button type="button" class="button_next_chunk" data-shortcut="j">Next highlighted chunk</button>
<button type="button" class="button_prev_chunk" data-shortcut="k">Previous highlighted chunk</button>
<button type="button" class="button_top_of_page" data-shortcut="0">Goto top of page</button>
<button type="button" class="button_first_chunk" data-shortcut="1">Goto first highlighted chunk</button>
</div>
</div>
</header>
<aside class="help_panel">
<img id="panel_icon" src="keybd_open.png" alt="Hide keyboard shortcuts" />
<p class="legend">Hot-keys on this page</p>
<div>
<p class="keyhelp">
<span class="key">r</span>
<span class="key">m</span>
<span class="key">x</span>
<span class="key">p</span> &nbsp; toggle line displays
</p>
<p class="keyhelp">
<span class="key">j</span>
<span class="key">k</span> &nbsp; next/prev highlighted chunk
</p>
<p class="keyhelp">
<span class="key">0</span> &nbsp; (zero) top of page
</p>
<p class="keyhelp">
<span class="key">1</span> &nbsp; (one) first highlighted chunk
</p>
</div>
</aside>
<main id="source">
<p id="t1" class="run"><span class="n"><a href="#t1">1</a></span><span class="t"><span class="key">if</span> <span class="num">1</span> <span class="op">&lt;</span> <span class="num">2</span><span class="op">:</span>&nbsp;</span><span class="r"></span></p>
<p id="t2" class="pln"><span class="n"><a href="#t2">2</a></span><span class="t"> <span class="com"># Needed a &lt; to look at HTML entities.</span>&nbsp;</span><span class="r"></span></p>
Expand All @@ -72,7 +67,7 @@ <h2 class="stats">
<div class="content">
<p>
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io/en/6.1a0">coverage.py v6.1a0</a>,
created at 2021-10-17 10:52 -0400
created at 2021-10-23 08:16 -0400
</p>
</div>
</footer>
Expand Down
71 changes: 34 additions & 37 deletions tests/gold/html/a/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,69 +5,66 @@
<title>Coverage report</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>
<script type="text/javascript" src="jquery.ba-throttle-debounce.min.js"></script>
<script type="text/javascript" src="jquery.tablesorter.min.js"></script>
<script type="text/javascript" src="jquery.hotkeys.js"></script>
<script type="text/javascript" src="coverage_html.js"></script>
<script type="text/javascript">
jQuery(document).ready(coverage.index_ready);
</script>
<script type="text/javascript" src="coverage_html.js" defer></script>
</head>
<body class="indexfile">
<header>
<div class="content">
<h1>Coverage report:
<span class="pc_cov">67%</span>
</h1>
<img id="keyboard_icon" src="keybd_closed.png" alt="Show keyboard shortcuts" />
<div id="help_panel_wrapper">
<input id="help_panel_state" type="checkbox">
<label for="help_panel_state">
<img id="keyboard_icon" src="keybd_closed.png" alt="Show/hide keyboard shortcuts" />
</label>
<div id="help_panel">
<p class="legend">Shortcuts on this page</p>
<div>
<p class="keyhelp">
<kbd>n</kbd>
<kbd>s</kbd>
<kbd>m</kbd>
<kbd>x</kbd>
<kbd>c</kbd> &nbsp; change column sorting
</p>
</div>
</div>
</div>
<form id="filter_container">
<input id="filter" type="text" value="" placeholder="filter..." />
</form>
</div>
</header>
<aside class="help_panel">
<img id="panel_icon" src="keybd_open.png" alt="Hide keyboard shortcuts" />
<p class="legend">Hot-keys on this page</p>
<div>
<p class="keyhelp">
<span class="key">n</span>
<span class="key">s</span>
<span class="key">m</span>
<span class="key">x</span>
<span class="key">c</span> &nbsp; change column sorting
</p>
</div>
</aside>
<main id="index">
<table class="index">
<table class="index" data-sortable>
<thead>
<tr class="tablehead" title="Click to sort">
<th class="name left headerSortDown shortkey_n">Module</th>
<th class="shortkey_s">statements</th>
<th class="shortkey_m">missing</th>
<th class="shortkey_x">excluded</th>
<th class="right shortkey_c">coverage</th>
<th class="name left" aria-sort="none" data-shortcut="n">Module</th>
<th aria-sort="none" data-default-sort-order="descending" data-shortcut="s">statements</th>
<th aria-sort="none" data-default-sort-order="descending" data-shortcut="m">missing</th>
<th aria-sort="none" data-default-sort-order="descending" data-shortcut="x">excluded</th>
<th class="right" aria-sort="none" data-shortcut="c">coverage</th>
</tr>
</thead>
<tfoot>
<tr class="total">
<td class="name left">Total</td>
<tbody>
<tr class="file">
<td class="name left"><a href="a_py.html">a.py</a></td>
<td>3</td>
<td>1</td>
<td>0</td>
<td class="right" data-ratio="2 3">67%</td>
</tr>
</tfoot>
<tbody>
<tr class="file">
<td class="name left"><a href="a_py.html">a.py</a></td>
</tbody>
<tfoot>
<tr class="total">
<td class="name left">Total</td>
<td>3</td>
<td>1</td>
<td>0</td>
<td class="right" data-ratio="2 3">67%</td>
</tr>
</tbody>
</tfoot>
</table>
<p id="no_rows">
No items found using the specified filter.
Expand All @@ -77,7 +74,7 @@ <h1>Coverage report:
<div class="content">
<p>
<a class="nav" href="https://coverage.readthedocs.io/en/6.1a0">coverage.py v6.1a0</a>,
created at 2021-10-17 10:52 -0400
created at 2021-10-23 08:16 -0400
</p>
</div>
</footer>
Expand Down
92 changes: 43 additions & 49 deletions tests/gold/html/b_branch/b_py.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,63 +6,57 @@
<title>Coverage for b.py: 70%</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>
<script type="text/javascript" src="jquery.hotkeys.js"></script>
<script type="text/javascript" src="jquery.isonscreen.js"></script>
<script type="text/javascript" src="coverage_html.js"></script>
<script type="text/javascript">
jQuery(document).ready(coverage.pyfile_ready);
</script>
<script type="text/javascript" src="coverage_html.js" defer></script>
</head>
<body class="pyfile">
<aside id="sticky_header">
<div class="content stats">
<p><b>b.py</b> : 70%&nbsp;&nbsp;
<button type="button" class="run button_toggle_run" title="Toggle lines run">14</button>
<button type="button" class="mis show_mis button_toggle_mis" title="Toggle lines missing">3</button>
<button type="button" class="exc show_exc button_toggle_exc" title="Toggle lines excluded">0</button>
<button type="button" class="par run show_par button_toggle_par" title="Toggle lines partially run">4</button>
<img id="keyboard_icon" src="keybd_closed.png" alt="Show keyboard shortcuts" />
</p>
</div>
</aside>
<header>
<div class="content">
<h1>Coverage for <b>b.py</b> :
<h1>
<span class="text">Coverage for </span><b>b.py</b>:
<span class="pc_cov">70%</span>
</h1>
<img id="keyboard_icon" src="keybd_closed.png" alt="Show keyboard shortcuts" />
<h2 class="stats">
17 statements &nbsp;
<button type="button" class="run shortkey_r button_toggle_run" title="Toggle lines run">14 run</button>
<button type="button" class="mis show_mis shortkey_m button_toggle_mis" title="Toggle lines missing">3 missing</button>
<button type="button" class="exc show_exc shortkey_x button_toggle_exc" title="Toggle lines excluded">0 excluded</button>
<button type="button" class="par run show_par shortkey_p button_toggle_par" title="Toggle lines partially run">4 partial</button>
<div id="help_panel_wrapper">
<input id="help_panel_state" type="checkbox">
<label for="help_panel_state">
<img id="keyboard_icon" src="keybd_closed.png" alt="Show/hide keyboard shortcuts" />
</label>
<div id="help_panel">
<p class="legend">Shortcuts on this page</p>
<div>
<p class="keyhelp">
<kbd>r</kbd>
<kbd>m</kbd>
<kbd>x</kbd>
<kbd>p</kbd> &nbsp; toggle line displays
</p>
<p class="keyhelp">
<kbd>j</kbd>
<kbd>k</kbd> &nbsp; next/prev highlighted chunk
</p>
<p class="keyhelp">
<kbd>0</kbd> &nbsp; (zero) top of page
</p>
<p class="keyhelp">
<kbd>1</kbd> &nbsp; (one) first highlighted chunk
</p>
</div>
</div>
</div>
<h2>
<span class="text">17 statements &nbsp;</span>
<button type="button" class="run button_toggle_run" value="run" data-shortcut="r" title="Toggle lines run">14<span class="text"> run</span></button>
<button type="button" class="mis show_mis button_toggle_mis" value="mis" data-shortcut="m" title="Toggle lines missing">3<span class="text"> missing</span></button>
<button type="button" class="exc show_exc button_toggle_exc" value="exc" data-shortcut="x" title="Toggle lines excluded">0<span class="text"> excluded</span></button>
<button type="button" class="par run show_par button_toggle_par" value="par" data-shortcut="p" title="Toggle lines partially run">4<span class="text"> partial</span></button>
</h2>
<div style="display: none;">
<button type="button" class="button_next_chunk" data-shortcut="j">Next highlighted chunk</button>
<button type="button" class="button_prev_chunk" data-shortcut="k">Previous highlighted chunk</button>
<button type="button" class="button_top_of_page" data-shortcut="0">Goto top of page</button>
<button type="button" class="button_first_chunk" data-shortcut="1">Goto first highlighted chunk</button>
</div>
</div>
</header>
<aside class="help_panel">
<img id="panel_icon" src="keybd_open.png" alt="Hide keyboard shortcuts" />
<p class="legend">Hot-keys on this page</p>
<div>
<p class="keyhelp">
<span class="key">r</span>
<span class="key">m</span>
<span class="key">x</span>
<span class="key">p</span> &nbsp; toggle line displays
</p>
<p class="keyhelp">
<span class="key">j</span>
<span class="key">k</span> &nbsp; next/prev highlighted chunk
</p>
<p class="keyhelp">
<span class="key">0</span> &nbsp; (zero) top of page
</p>
<p class="keyhelp">
<span class="key">1</span> &nbsp; (one) first highlighted chunk
</p>
</div>
</aside>
<main id="source">
<p id="t1" class="run"><span class="n"><a href="#t1">1</a></span><span class="t"><span class="key">def</span> <span class="nam">one</span><span class="op">(</span><span class="nam">x</span><span class="op">)</span><span class="op">:</span>&nbsp;</span><span class="r"></span></p>
<p id="t2" class="pln"><span class="n"><a href="#t2">2</a></span><span class="t"> <span class="com"># This will be a branch that misses the else.</span>&nbsp;</span><span class="r"></span></p>
Expand Down Expand Up @@ -96,7 +90,7 @@ <h2 class="stats">
<div class="content">
<p>
<a class="nav" href="index.html">&#xab; index</a> &nbsp; &nbsp; <a class="nav" href="https://coverage.readthedocs.io/en/6.1a0">coverage.py v6.1a0</a>,
created at 2021-10-17 10:52 -0400
created at 2021-10-23 08:16 -0400
</p>
</div>
</footer>
Expand Down
Loading

0 comments on commit 668eec7

Please sign in to comment.