Skip to content

Commit

Permalink
Updated coverage results from 091c71d
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Aug 18, 2023
1 parent 8a36acd commit 347eb80
Show file tree
Hide file tree
Showing 18 changed files with 79 additions and 79 deletions.
22 changes: 11 additions & 11 deletions coverage/coverage_html.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function on_click(sel, fn) {

// Helpers for table sorting
function getCellValue(row, column = 0) {
const cell = row.cells[column]
const cell = row.cells[column] // nosemgrep: eslint.detect-object-injection
if (cell.childElementCount == 1) {
const child = cell.firstElementChild
if (child instanceof HTMLTimeElement && child.dateTime) {
Expand Down Expand Up @@ -100,7 +100,7 @@ coverage.wire_up_filter = function () {
// Keep running total of each metric, first index contains number of shown rows
const totals = new Array(table.rows[0].cells.length).fill(0);
// Accumulate the percentage as fraction
totals[totals.length - 1] = { "numer": 0, "denom": 0 };
totals[totals.length - 1] = { "numer": 0, "denom": 0 }; // nosemgrep: eslint.detect-object-injection

// Hide / show elements.
table_body_rows.forEach(row => {
Expand All @@ -116,14 +116,14 @@ coverage.wire_up_filter = function () {

for (let column = 1; column < totals.length; column++) {
// Accumulate dynamic totals
cell = row.cells[column]
cell = row.cells[column] // nosemgrep: eslint.detect-object-injection
if (column === totals.length - 1) {
// Last column contains percentage
const [numer, denom] = cell.dataset.ratio.split(" ");
totals[column]["numer"] += parseInt(numer, 10);
totals[column]["denom"] += parseInt(denom, 10);
totals[column]["numer"] += parseInt(numer, 10); // nosemgrep: eslint.detect-object-injection
totals[column]["denom"] += parseInt(denom, 10); // nosemgrep: eslint.detect-object-injection
} else {
totals[column] += parseInt(cell.textContent, 10);
totals[column] += parseInt(cell.textContent, 10); // nosemgrep: eslint.detect-object-injection
}
}
});
Expand All @@ -144,22 +144,22 @@ coverage.wire_up_filter = function () {
// Calculate new dynamic sum values based on visible rows.
for (let column = 1; column < totals.length; column++) {
// Get footer cell element.
const cell = footer.cells[column];
const cell = footer.cells[column]; // nosemgrep: eslint.detect-object-injection

// Set value into dynamic footer cell element.
if (column === totals.length - 1) {
// Percentage column uses the numerator and denominator,
// and adapts to the number of decimal places.
const match = /\.([0-9]+)/.exec(cell.textContent);
const places = match ? match[1].length : 0;
const { numer, denom } = totals[column];
const { numer, denom } = totals[column]; // nosemgrep: eslint.detect-object-injection
cell.dataset.ratio = `${numer} ${denom}`;
// Check denom to prevent NaN if filtered files contain no statements
cell.textContent = denom
? `${(numer * 100 / denom).toFixed(places)}%`
: `${(100).toFixed(places)}%`;
} else {
cell.textContent = totals[column];
cell.textContent = totals[column]; // nosemgrep: eslint.detect-object-injection
}
}
}));
Expand All @@ -184,7 +184,7 @@ coverage.index_ready = function () {

if (stored_list) {
const {column, direction} = JSON.parse(stored_list);
const th = document.querySelector("[data-sortable]").tHead.rows[0].cells[column];
const th = document.querySelector("[data-sortable]").tHead.rows[0].cells[column]; // nosemgrep: eslint.detect-object-injection
th.setAttribute("aria-sort", direction === "ascending" ? "descending" : "ascending");
th.click()
}
Expand Down Expand Up @@ -250,7 +250,7 @@ coverage.pyfile_ready = function () {
}

for (cls in coverage.filters) {
coverage.set_line_visibilty(cls, coverage.filters[cls]);
coverage.set_line_visibilty(cls, coverage.filters[cls]); // nosemgrep: eslint.detect-object-injection
}

coverage.assign_shortkeys();
Expand Down
8 changes: 4 additions & 4 deletions coverage/d_8083614cdc6baa7e___init___py.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ <h2>
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
<a id="nextFileLink" class="nav" href="d_8083614cdc6baa7e___main___py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
created at 2023-08-09 03:41 +0000
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-18 07:20 +0000
</p>
<aside class="hidden">
<button type="button" class="button_next_chunk" data-shortcut="j"/>
Expand Down Expand Up @@ -105,8 +105,8 @@ <h2>
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
<a id="nextFileLink" class="nav" href="d_8083614cdc6baa7e___main___py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
created at 2023-08-09 03:41 +0000
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-18 07:20 +0000
</p>
</div>
</footer>
Expand Down
8 changes: 4 additions & 4 deletions coverage/d_8083614cdc6baa7e___main___py.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ <h2>
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
<a id="nextFileLink" class="nav" href="d_8083614cdc6baa7e_cli_utils_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
created at 2023-08-09 03:41 +0000
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-18 07:20 +0000
</p>
<aside class="hidden">
<button type="button" class="button_next_chunk" data-shortcut="j"/>
Expand Down Expand Up @@ -123,8 +123,8 @@ <h2>
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
<a id="nextFileLink" class="nav" href="d_8083614cdc6baa7e_cli_utils_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
created at 2023-08-09 03:41 +0000
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-18 07:20 +0000
</p>
</div>
</footer>
Expand Down
8 changes: 4 additions & 4 deletions coverage/d_8083614cdc6baa7e_cli_utils_py.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ <h2>
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
<a id="nextFileLink" class="nav" href="d_8083614cdc6baa7e_constants_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
created at 2023-08-09 03:41 +0000
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-18 07:20 +0000
</p>
<aside class="hidden">
<button type="button" class="button_next_chunk" data-shortcut="j"/>
Expand Down Expand Up @@ -194,8 +194,8 @@ <h2>
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
<a id="nextFileLink" class="nav" href="d_8083614cdc6baa7e_constants_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
created at 2023-08-09 03:41 +0000
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-18 07:20 +0000
</p>
</div>
</footer>
Expand Down
8 changes: 4 additions & 4 deletions coverage/d_8083614cdc6baa7e_constants_py.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ <h2>
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
<a id="nextFileLink" class="nav" href="d_8083614cdc6baa7e_errors_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
created at 2023-08-09 03:41 +0000
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-18 07:20 +0000
</p>
<aside class="hidden">
<button type="button" class="button_next_chunk" data-shortcut="j"/>
Expand Down Expand Up @@ -361,8 +361,8 @@ <h2>
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
<a id="nextFileLink" class="nav" href="d_8083614cdc6baa7e_errors_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
created at 2023-08-09 03:41 +0000
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-18 07:20 +0000
</p>
</div>
</footer>
Expand Down
8 changes: 4 additions & 4 deletions coverage/d_8083614cdc6baa7e_errors_py.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ <h2>
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
<a id="nextFileLink" class="nav" href="d_8083614cdc6baa7e_libby_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
created at 2023-08-09 03:41 +0000
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-18 07:20 +0000
</p>
<aside class="hidden">
<button type="button" class="button_next_chunk" data-shortcut="j"/>
Expand Down Expand Up @@ -117,8 +117,8 @@ <h2>
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
<a id="nextFileLink" class="nav" href="d_8083614cdc6baa7e_libby_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
created at 2023-08-09 03:41 +0000
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-18 07:20 +0000
</p>
</div>
</footer>
Expand Down
8 changes: 4 additions & 4 deletions coverage/d_8083614cdc6baa7e_libby_errors_py.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ <h2>
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
<a id="nextFileLink" class="nav" href="d_8083614cdc6baa7e_odm_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
created at 2023-08-09 03:41 +0000
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-18 07:20 +0000
</p>
<aside class="hidden">
<button type="button" class="button_next_chunk" data-shortcut="j"/>
Expand Down Expand Up @@ -195,8 +195,8 @@ <h2>
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
<a id="nextFileLink" class="nav" href="d_8083614cdc6baa7e_odm_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
created at 2023-08-09 03:41 +0000
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-18 07:20 +0000
</p>
</div>
</footer>
Expand Down
10 changes: 5 additions & 5 deletions coverage/d_8083614cdc6baa7e_libby_py.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ <h2>
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
<a id="nextFileLink" class="nav" href="d_8083614cdc6baa7e_libby_errors_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
created at 2023-08-09 03:41 +0000
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-18 07:20 +0000
</p>
<aside class="hidden">
<button type="button" class="button_next_chunk" data-shortcut="j"/>
Expand Down Expand Up @@ -984,7 +984,7 @@ <h2>
<p class="pln"><span class="n"><a id="t902" href="#t902">902</a></span><span class="t"> <span class="nam">self</span><span class="op">,</span> <span class="nam">title_id</span><span class="op">:</span> <span class="nam">str</span><span class="op">,</span> <span class="nam">title_format</span><span class="op">:</span> <span class="nam">str</span><span class="op">,</span> <span class="nam">card_id</span><span class="op">:</span> <span class="nam">str</span><span class="op">,</span> <span class="nam">days</span><span class="op">:</span> <span class="nam">int</span> <span class="op">=</span> <span class="num">21</span>&nbsp;</span><span class="r"></span></p>
<p class="pln"><span class="n"><a id="t903" href="#t903">903</a></span><span class="t"> <span class="op">)</span> <span class="op">-></span> <span class="nam">Dict</span><span class="op">:</span>&nbsp;</span><span class="r"></span></p>
<p class="pln"><span class="n"><a id="t904" href="#t904">904</a></span><span class="t"> <span class="str">"""</span>&nbsp;</span><span class="r"></span></p>
<p class="pln"><span class="n"><a id="t905" href="#t905">905</a></span><span class="t"><span class="str"> Return a title.</span>&nbsp;</span><span class="r"></span></p>
<p class="pln"><span class="n"><a id="t905" href="#t905">905</a></span><span class="t"><span class="str"> Renew a title.</span>&nbsp;</span><span class="r"></span></p>
<p class="pln"><span class="n"><a id="t906" href="#t906">906</a></span><span class="t">&nbsp;</span><span class="r"></span></p>
<p class="pln"><span class="n"><a id="t907" href="#t907">907</a></span><span class="t"><span class="str"> :param title_id:</span>&nbsp;</span><span class="r"></span></p>
<p class="pln"><span class="n"><a id="t908" href="#t908">908</a></span><span class="t"><span class="str"> :param title_format: Type ID</span>&nbsp;</span><span class="r"></span></p>
Expand Down Expand Up @@ -1035,8 +1035,8 @@ <h2>
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
<a id="nextFileLink" class="nav" href="d_8083614cdc6baa7e_libby_errors_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
created at 2023-08-09 03:41 +0000
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-18 07:20 +0000
</p>
</div>
</footer>
Expand Down
8 changes: 4 additions & 4 deletions coverage/d_8083614cdc6baa7e_odm_py.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ <h2>
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
<a id="nextFileLink" class="nav" href="d_8083614cdc6baa7e_overdrive_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
created at 2023-08-09 03:41 +0000
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-18 07:20 +0000
</p>
<aside class="hidden">
<button type="button" class="button_next_chunk" data-shortcut="j"/>
Expand Down Expand Up @@ -1346,8 +1346,8 @@ <h2>
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
<a id="nextFileLink" class="nav" href="d_8083614cdc6baa7e_overdrive_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
created at 2023-08-09 03:41 +0000
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-18 07:20 +0000
</p>
</div>
</footer>
Expand Down
8 changes: 4 additions & 4 deletions coverage/d_8083614cdc6baa7e_overdrive_py.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ <h2>
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
<a id="nextFileLink" class="nav" href="d_bf16d5eb7be72c0c___init___py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
created at 2023-08-09 03:41 +0000
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-18 07:20 +0000
</p>
<aside class="hidden">
<button type="button" class="button_next_chunk" data-shortcut="j"/>
Expand Down Expand Up @@ -285,8 +285,8 @@ <h2>
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
<a id="nextFileLink" class="nav" href="d_bf16d5eb7be72c0c___init___py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
created at 2023-08-09 03:41 +0000
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-18 07:20 +0000
</p>
</div>
</footer>
Expand Down
8 changes: 4 additions & 4 deletions coverage/d_8083614cdc6baa7e_utils_py.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ <h2>
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
<a id="nextFileLink" class="nav" href="index.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
created at 2023-08-09 03:41 +0000
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-18 07:20 +0000
</p>
<aside class="hidden">
<button type="button" class="button_next_chunk" data-shortcut="j"/>
Expand Down Expand Up @@ -278,8 +278,8 @@ <h2>
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
<a id="nextFileLink" class="nav" href="index.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
created at 2023-08-09 03:41 +0000
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-18 07:20 +0000
</p>
</div>
</footer>
Expand Down
8 changes: 4 additions & 4 deletions coverage/d_bf16d5eb7be72c0c___init___py.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ <h2>
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
<a id="nextFileLink" class="nav" href="d_bf16d5eb7be72c0c_audiobook_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
created at 2023-08-09 03:41 +0000
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-18 07:20 +0000
</p>
<aside class="hidden">
<button type="button" class="button_next_chunk" data-shortcut="j"/>
Expand Down Expand Up @@ -110,8 +110,8 @@ <h2>
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
<a id="nextFileLink" class="nav" href="d_bf16d5eb7be72c0c_audiobook_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
created at 2023-08-09 03:41 +0000
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
created at 2023-08-18 07:20 +0000
</p>
</div>
</footer>
Expand Down
Loading

0 comments on commit 347eb80

Please sign in to comment.