Skip to content

Commit 9c2f924

Browse files
committed
docs: sample HTML for 7.3.0
1 parent 0421fdb commit 9c2f924

11 files changed

+48
-48
lines changed

doc/sample_html/coverage_html.js

+11-11
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function on_click(sel, fn) {
3434

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

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

117117
for (let column = 1; column < totals.length; column++) {
118118
// Accumulate dynamic totals
119-
cell = row.cells[column]
119+
cell = row.cells[column] // nosemgrep: eslint.detect-object-injection
120120
if (column === totals.length - 1) {
121121
// Last column contains percentage
122122
const [numer, denom] = cell.dataset.ratio.split(" ");
123-
totals[column]["numer"] += parseInt(numer, 10);
124-
totals[column]["denom"] += parseInt(denom, 10);
123+
totals[column]["numer"] += parseInt(numer, 10); // nosemgrep: eslint.detect-object-injection
124+
totals[column]["denom"] += parseInt(denom, 10); // nosemgrep: eslint.detect-object-injection
125125
} else {
126-
totals[column] += parseInt(cell.textContent, 10);
126+
totals[column] += parseInt(cell.textContent, 10); // nosemgrep: eslint.detect-object-injection
127127
}
128128
}
129129
});
@@ -144,22 +144,22 @@ coverage.wire_up_filter = function () {
144144
// Calculate new dynamic sum values based on visible rows.
145145
for (let column = 1; column < totals.length; column++) {
146146
// Get footer cell element.
147-
const cell = footer.cells[column];
147+
const cell = footer.cells[column]; // nosemgrep: eslint.detect-object-injection
148148

149149
// Set value into dynamic footer cell element.
150150
if (column === totals.length - 1) {
151151
// Percentage column uses the numerator and denominator,
152152
// and adapts to the number of decimal places.
153153
const match = /\.([0-9]+)/.exec(cell.textContent);
154154
const places = match ? match[1].length : 0;
155-
const { numer, denom } = totals[column];
155+
const { numer, denom } = totals[column]; // nosemgrep: eslint.detect-object-injection
156156
cell.dataset.ratio = `${numer} ${denom}`;
157157
// Check denom to prevent NaN if filtered files contain no statements
158158
cell.textContent = denom
159159
? `${(numer * 100 / denom).toFixed(places)}%`
160160
: `${(100).toFixed(places)}%`;
161161
} else {
162-
cell.textContent = totals[column];
162+
cell.textContent = totals[column]; // nosemgrep: eslint.detect-object-injection
163163
}
164164
}
165165
}));
@@ -184,7 +184,7 @@ coverage.index_ready = function () {
184184

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

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

256256
coverage.assign_shortkeys();

doc/sample_html/d_7b071bdc2a35fa80___init___py.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ <h2>
6666
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
6767
<a id="nextFileLink" class="nav" href="d_7b071bdc2a35fa80___main___py.html">&#xbb; next</a>
6868
&nbsp; &nbsp; &nbsp;
69-
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
70-
created at 2023-05-29 15:26 -0400
69+
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
70+
created at 2023-08-12 11:46 -0400
7171
</p>
7272
<aside class="hidden">
7373
<button type="button" class="button_next_chunk" data-shortcut="j"/>
@@ -97,8 +97,8 @@ <h2>
9797
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
9898
<a id="nextFileLink" class="nav" href="d_7b071bdc2a35fa80___main___py.html">&#xbb; next</a>
9999
&nbsp; &nbsp; &nbsp;
100-
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
101-
created at 2023-05-29 15:26 -0400
100+
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
101+
created at 2023-08-12 11:46 -0400
102102
</p>
103103
</div>
104104
</footer>

doc/sample_html/d_7b071bdc2a35fa80___main___py.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ <h2>
6666
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
6767
<a id="nextFileLink" class="nav" href="d_7b071bdc2a35fa80_cogapp_py.html">&#xbb; next</a>
6868
&nbsp; &nbsp; &nbsp;
69-
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
70-
created at 2023-05-29 15:26 -0400
69+
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
70+
created at 2023-08-12 11:46 -0400
7171
</p>
7272
<aside class="hidden">
7373
<button type="button" class="button_next_chunk" data-shortcut="j"/>
@@ -97,8 +97,8 @@ <h2>
9797
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
9898
<a id="nextFileLink" class="nav" href="d_7b071bdc2a35fa80_cogapp_py.html">&#xbb; next</a>
9999
&nbsp; &nbsp; &nbsp;
100-
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
101-
created at 2023-05-29 15:26 -0400
100+
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
101+
created at 2023-08-12 11:46 -0400
102102
</p>
103103
</div>
104104
</footer>

doc/sample_html/d_7b071bdc2a35fa80_cogapp_py.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ <h2>
6666
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
6767
<a id="nextFileLink" class="nav" href="d_7b071bdc2a35fa80_makefiles_py.html">&#xbb; next</a>
6868
&nbsp; &nbsp; &nbsp;
69-
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
70-
created at 2023-05-29 15:26 -0400
69+
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
70+
created at 2023-08-12 11:46 -0400
7171
</p>
7272
<aside class="hidden">
7373
<button type="button" class="button_next_chunk" data-shortcut="j"/>
@@ -938,8 +938,8 @@ <h2>
938938
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
939939
<a id="nextFileLink" class="nav" href="d_7b071bdc2a35fa80_makefiles_py.html">&#xbb; next</a>
940940
&nbsp; &nbsp; &nbsp;
941-
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
942-
created at 2023-05-29 15:26 -0400
941+
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
942+
created at 2023-08-12 11:46 -0400
943943
</p>
944944
</div>
945945
</footer>

doc/sample_html/d_7b071bdc2a35fa80_makefiles_py.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ <h2>
6666
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
6767
<a id="nextFileLink" class="nav" href="d_7b071bdc2a35fa80_test_cogapp_py.html">&#xbb; next</a>
6868
&nbsp; &nbsp; &nbsp;
69-
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
70-
created at 2023-05-29 15:26 -0400
69+
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
70+
created at 2023-08-12 11:46 -0400
7171
</p>
7272
<aside class="hidden">
7373
<button type="button" class="button_next_chunk" data-shortcut="j"/>
@@ -126,8 +126,8 @@ <h2>
126126
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
127127
<a id="nextFileLink" class="nav" href="d_7b071bdc2a35fa80_test_cogapp_py.html">&#xbb; next</a>
128128
&nbsp; &nbsp; &nbsp;
129-
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
130-
created at 2023-05-29 15:26 -0400
129+
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
130+
created at 2023-08-12 11:46 -0400
131131
</p>
132132
</div>
133133
</footer>

doc/sample_html/d_7b071bdc2a35fa80_test_cogapp_py.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ <h2>
6666
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
6767
<a id="nextFileLink" class="nav" href="d_7b071bdc2a35fa80_test_makefiles_py.html">&#xbb; next</a>
6868
&nbsp; &nbsp; &nbsp;
69-
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
70-
created at 2023-05-29 15:26 -0400
69+
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
70+
created at 2023-08-12 11:46 -0400
7171
</p>
7272
<aside class="hidden">
7373
<button type="button" class="button_next_chunk" data-shortcut="j"/>
@@ -2713,8 +2713,8 @@ <h2>
27132713
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
27142714
<a id="nextFileLink" class="nav" href="d_7b071bdc2a35fa80_test_makefiles_py.html">&#xbb; next</a>
27152715
&nbsp; &nbsp; &nbsp;
2716-
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
2717-
created at 2023-05-29 15:26 -0400
2716+
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
2717+
created at 2023-08-12 11:46 -0400
27182718
</p>
27192719
</div>
27202720
</footer>

doc/sample_html/d_7b071bdc2a35fa80_test_makefiles_py.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ <h2>
6666
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
6767
<a id="nextFileLink" class="nav" href="d_7b071bdc2a35fa80_test_whiteutils_py.html">&#xbb; next</a>
6868
&nbsp; &nbsp; &nbsp;
69-
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
70-
created at 2023-05-29 15:26 -0400
69+
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
70+
created at 2023-08-12 11:46 -0400
7171
</p>
7272
<aside class="hidden">
7373
<button type="button" class="button_next_chunk" data-shortcut="j"/>
@@ -207,8 +207,8 @@ <h2>
207207
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
208208
<a id="nextFileLink" class="nav" href="d_7b071bdc2a35fa80_test_whiteutils_py.html">&#xbb; next</a>
209209
&nbsp; &nbsp; &nbsp;
210-
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
211-
created at 2023-05-29 15:26 -0400
210+
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
211+
created at 2023-08-12 11:46 -0400
212212
</p>
213213
</div>
214214
</footer>

doc/sample_html/d_7b071bdc2a35fa80_test_whiteutils_py.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ <h2>
6666
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
6767
<a id="nextFileLink" class="nav" href="d_7b071bdc2a35fa80_whiteutils_py.html">&#xbb; next</a>
6868
&nbsp; &nbsp; &nbsp;
69-
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
70-
created at 2023-05-29 15:26 -0400
69+
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
70+
created at 2023-08-12 11:46 -0400
7171
</p>
7272
<aside class="hidden">
7373
<button type="button" class="button_next_chunk" data-shortcut="j"/>
@@ -187,8 +187,8 @@ <h2>
187187
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
188188
<a id="nextFileLink" class="nav" href="d_7b071bdc2a35fa80_whiteutils_py.html">&#xbb; next</a>
189189
&nbsp; &nbsp; &nbsp;
190-
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
191-
created at 2023-05-29 15:26 -0400
190+
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
191+
created at 2023-08-12 11:46 -0400
192192
</p>
193193
</div>
194194
</footer>

doc/sample_html/d_7b071bdc2a35fa80_whiteutils_py.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ <h2>
6666
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
6767
<a id="nextFileLink" class="nav" href="index.html">&#xbb; next</a>
6868
&nbsp; &nbsp; &nbsp;
69-
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
70-
created at 2023-05-29 15:26 -0400
69+
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
70+
created at 2023-08-12 11:46 -0400
7171
</p>
7272
<aside class="hidden">
7373
<button type="button" class="button_next_chunk" data-shortcut="j"/>
@@ -157,8 +157,8 @@ <h2>
157157
<a id="indexLink" class="nav" href="index.html">&Hat; index</a> &nbsp; &nbsp;
158158
<a id="nextFileLink" class="nav" href="index.html">&#xbb; next</a>
159159
&nbsp; &nbsp; &nbsp;
160-
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
161-
created at 2023-05-29 15:26 -0400
160+
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
161+
created at 2023-08-12 11:46 -0400
162162
</p>
163163
</div>
164164
</footer>

doc/sample_html/index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ <h1>Cog coverage:
4646
<input id="filter" type="text" value="" placeholder="filter..." />
4747
</form>
4848
<p class="text">
49-
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
50-
created at 2023-05-29 15:26 -0400
49+
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
50+
created at 2023-08-12 11:46 -0400
5151
</p>
5252
</div>
5353
</header>
@@ -157,8 +157,8 @@ <h1>Cog coverage:
157157
<footer>
158158
<div class="content">
159159
<p>
160-
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
161-
created at 2023-05-29 15:26 -0400
160+
<a class="nav" href="https://coverage.readthedocs.io/en/7.3.0">coverage.py v7.3.0</a>,
161+
created at 2023-08-12 11:46 -0400
162162
</p>
163163
</div>
164164
<aside class="hidden">

doc/sample_html/status.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"format":2,"version":"7.2.7","globals":"2b43fc00a84f1e7415bbd5a0e2a010d6","files":{"d_7b071bdc2a35fa80___init___py":{"hash":"70ef41e14b11d599cdbcf53f562ebb16","index":{"nums":[2,1,1,0,0,0,0,0],"html_filename":"d_7b071bdc2a35fa80___init___py.html","relative_filename":"cogapp/__init__.py"}},"d_7b071bdc2a35fa80___main___py":{"hash":"6d9d0d551879aa3e73791f40c5739845","index":{"nums":[2,1,3,0,3,0,0,0],"html_filename":"d_7b071bdc2a35fa80___main___py.html","relative_filename":"cogapp/__main__.py"}},"d_7b071bdc2a35fa80_cogapp_py":{"hash":"7428c811d741c23b10655ff6c20fb85f","index":{"nums":[2,1,500,1,224,210,30,138],"html_filename":"d_7b071bdc2a35fa80_cogapp_py.html","relative_filename":"cogapp/cogapp.py"}},"d_7b071bdc2a35fa80_makefiles_py":{"hash":"4b73eaf76fbb53af575b40165e831aac","index":{"nums":[2,1,22,0,18,14,0,14],"html_filename":"d_7b071bdc2a35fa80_makefiles_py.html","relative_filename":"cogapp/makefiles.py"}},"d_7b071bdc2a35fa80_test_cogapp_py":{"hash":"34099de695d2cac204436597408d33d2","index":{"nums":[2,1,845,2,591,24,1,21],"html_filename":"d_7b071bdc2a35fa80_test_cogapp_py.html","relative_filename":"cogapp/test_cogapp.py"}},"d_7b071bdc2a35fa80_test_makefiles_py":{"hash":"63fd1bdc011935abfd11301da94b383e","index":{"nums":[2,1,70,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":"ec69457cbd6dfbc85eefabdfc0931c99","index":{"nums":[2,1,68,0,50,0,0,0],"html_filename":"d_7b071bdc2a35fa80_test_whiteutils_py.html","relative_filename":"cogapp/test_whiteutils.py"}},"d_7b071bdc2a35fa80_whiteutils_py":{"hash":"6dbf59193ab1bdcba86b017c86bb4724","index":{"nums":[2,1,43,0,5,34,4,4],"html_filename":"d_7b071bdc2a35fa80_whiteutils_py.html","relative_filename":"cogapp/whiteutils.py"}}}}
1+
{"format":2,"version":"7.3.0","globals":"cf57432bd60c5c7fe95381f735604410","files":{"d_7b071bdc2a35fa80___init___py":{"hash":"391b1397701ef9b315be7bc127f18b9b","index":{"nums":[2,1,1,0,0,0,0,0],"html_filename":"d_7b071bdc2a35fa80___init___py.html","relative_filename":"cogapp/__init__.py"}},"d_7b071bdc2a35fa80___main___py":{"hash":"6d9d0d551879aa3e73791f40c5739845","index":{"nums":[2,1,3,0,3,0,0,0],"html_filename":"d_7b071bdc2a35fa80___main___py.html","relative_filename":"cogapp/__main__.py"}},"d_7b071bdc2a35fa80_cogapp_py":{"hash":"c10a37b4e8f437912d511bf85f633a1c","index":{"nums":[2,1,500,1,224,210,30,138],"html_filename":"d_7b071bdc2a35fa80_cogapp_py.html","relative_filename":"cogapp/cogapp.py"}},"d_7b071bdc2a35fa80_makefiles_py":{"hash":"e73ea90ac9a2e7af9d1fdb188ea22dfe","index":{"nums":[2,1,22,0,18,14,0,14],"html_filename":"d_7b071bdc2a35fa80_makefiles_py.html","relative_filename":"cogapp/makefiles.py"}},"d_7b071bdc2a35fa80_test_cogapp_py":{"hash":"9e5dd5bc1ab396b467852befcb944445","index":{"nums":[2,1,845,2,591,24,1,21],"html_filename":"d_7b071bdc2a35fa80_test_cogapp_py.html","relative_filename":"cogapp/test_cogapp.py"}},"d_7b071bdc2a35fa80_test_makefiles_py":{"hash":"ade09a0bc261e3a45b7cbd6bd9c006c2","index":{"nums":[2,1,70,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":"4511a89ca54b865d6397d6b7d315c35c","index":{"nums":[2,1,68,0,50,0,0,0],"html_filename":"d_7b071bdc2a35fa80_test_whiteutils_py.html","relative_filename":"cogapp/test_whiteutils.py"}},"d_7b071bdc2a35fa80_whiteutils_py":{"hash":"c68cfd051fc76896fdb23127cf2ca0ea","index":{"nums":[2,1,43,0,5,34,4,4],"html_filename":"d_7b071bdc2a35fa80_whiteutils_py.html","relative_filename":"cogapp/whiteutils.py"}}}}

0 commit comments

Comments
 (0)