Skip to content

Commit

Permalink
info updated
Browse files Browse the repository at this point in the history
  • Loading branch information
huckbit committed Aug 31, 2023
1 parent 4d08b3f commit dc958a6
Show file tree
Hide file tree
Showing 10 changed files with 62 additions and 98 deletions.
31 changes: 16 additions & 15 deletions coverage/clover.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1693413424300" clover="3.2.0">
<project timestamp="1693413424300" name="All files">
<metrics statements="10" coveredstatements="10" conditionals="9" coveredconditionals="9" methods="3" coveredmethods="3" elements="22" coveredelements="22" complexity="0" loc="10" ncloc="10" packages="1" files="1" classes="1"/>
<file name="index.js" path="C:\Users\Max.Ranauro\devmax\extract-urls\index.js">
<metrics statements="10" coveredstatements="10" conditionals="9" coveredconditionals="9" methods="3" coveredmethods="3"/>
<line num="3" count="1" type="cond" truecount="1" falsecount="0"/>
<line num="4" count="8" type="stmt"/>
<line num="6" count="8" type="cond" truecount="2" falsecount="0"/>
<line num="7" count="1" type="stmt"/>
<line num="10" count="7" type="cond" truecount="2" falsecount="0"/>
<line num="11" count="6" type="stmt"/>
<line num="12" count="6" type="cond" truecount="2" falsecount="0"/>
<line num="13" count="5" type="cond" truecount="2" falsecount="0"/>
<line num="15" count="1" type="stmt"/>
<line num="18" count="1" type="stmt"/>
<coverage generated="1693470985969" clover="3.2.0">
<project timestamp="1693470985969" name="All files">
<metrics statements="11" coveredstatements="11" conditionals="9" coveredconditionals="9" methods="3" coveredmethods="3" elements="23" coveredelements="23" complexity="0" loc="11" ncloc="11" packages="1" files="1" classes="1"/>
<file name="index.js" path="/Users/huckbit/dev/__javascript/extract-urls/index.js">
<metrics statements="11" coveredstatements="11" conditionals="9" coveredconditionals="9" methods="3" coveredmethods="3"/>
<line num="4" count="1" type="cond" truecount="1" falsecount="0"/>
<line num="5" count="8" type="stmt"/>
<line num="6" count="8" type="stmt"/>
<line num="8" count="8" type="cond" truecount="2" falsecount="0"/>
<line num="9" count="1" type="stmt"/>
<line num="12" count="7" type="cond" truecount="2" falsecount="0"/>
<line num="13" count="6" type="stmt"/>
<line num="14" count="6" type="cond" truecount="2" falsecount="0"/>
<line num="15" count="5" type="cond" truecount="2" falsecount="0"/>
<line num="17" count="1" type="stmt"/>
<line num="20" count="1" type="stmt"/>
</file>
</project>
</coverage>
2 changes: 1 addition & 1 deletion coverage/coverage-final.json
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{"C:\\Users\\Max.Ranauro\\devmax\\extract-urls\\index.js": {"path":"C:\\Users\\Max.Ranauro\\devmax\\extract-urls\\index.js","statementMap":{"0":{"start":{"line":3,"column":0},"end":{"line":20,"column":2}},"1":{"start":{"line":4,"column":17},"end":{"line":4,"column":124}},"2":{"start":{"line":6,"column":2},"end":{"line":8,"column":3}},"3":{"start":{"line":7,"column":4},"end":{"line":7,"column":82}},"4":{"start":{"line":10,"column":2},"end":{"line":19,"column":3}},"5":{"start":{"line":11,"column":15},"end":{"line":11,"column":32}},"6":{"start":{"line":12,"column":4},"end":{"line":16,"column":5}},"7":{"start":{"line":13,"column":6},"end":{"line":13,"column":129}},"8":{"start":{"line":13,"column":40},"end":{"line":13,"column":79}},"9":{"start":{"line":13,"column":102},"end":{"line":13,"column":127}},"10":{"start":{"line":15,"column":6},"end":{"line":15,"column":16}},"11":{"start":{"line":18,"column":4},"end":{"line":18,"column":14}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":3,"column":17},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":41},"end":{"line":20,"column":1}},"line":3},"1":{"name":"(anonymous_1)","decl":{"start":{"line":13,"column":30},"end":{"line":13,"column":31}},"loc":{"start":{"line":13,"column":40},"end":{"line":13,"column":79}},"line":13},"2":{"name":"(anonymous_2)","decl":{"start":{"line":13,"column":92},"end":{"line":13,"column":93}},"loc":{"start":{"line":13,"column":102},"end":{"line":13,"column":127}},"line":13}},"branchMap":{"0":{"loc":{"start":{"line":3,"column":23},"end":{"line":3,"column":36}},"type":"default-arg","locations":[{"start":{"line":3,"column":31},"end":{"line":3,"column":36}}],"line":3},"1":{"loc":{"start":{"line":6,"column":2},"end":{"line":8,"column":3}},"type":"if","locations":[{"start":{"line":6,"column":2},"end":{"line":8,"column":3}},{"start":{},"end":{}}],"line":6},"2":{"loc":{"start":{"line":10,"column":2},"end":{"line":19,"column":3}},"type":"if","locations":[{"start":{"line":10,"column":2},"end":{"line":19,"column":3}},{"start":{"line":17,"column":9},"end":{"line":19,"column":3}}],"line":10},"3":{"loc":{"start":{"line":12,"column":4},"end":{"line":16,"column":5}},"type":"if","locations":[{"start":{"line":12,"column":4},"end":{"line":16,"column":5}},{"start":{"line":14,"column":11},"end":{"line":16,"column":5}}],"line":12},"4":{"loc":{"start":{"line":13,"column":13},"end":{"line":13,"column":128}},"type":"cond-expr","locations":[{"start":{"line":13,"column":21},"end":{"line":13,"column":80}},{"start":{"line":13,"column":83},"end":{"line":13,"column":128}}],"line":13}},"s":{"0":1,"1":8,"2":8,"3":1,"4":7,"5":6,"6":6,"7":5,"8":4,"9":5,"10":1,"11":1},"f":{"0":8,"1":4,"2":5},"b":{"0":[6],"1":[1,7],"2":[6,1],"3":[5,1],"4":[2,3]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"3e8aa484ada982600398e46a29eea39a62a7558e"}
{"/Users/huckbit/dev/__javascript/extract-urls/index.js": {"path":"/Users/huckbit/dev/__javascript/extract-urls/index.js","statementMap":{"0":{"start":{"line":4,"column":0},"end":{"line":22,"column":2}},"1":{"start":{"line":5,"column":17},"end":{"line":5,"column":124}},"2":{"start":{"line":6,"column":25},"end":{"line":6,"column":32}},"3":{"start":{"line":8,"column":2},"end":{"line":10,"column":3}},"4":{"start":{"line":9,"column":4},"end":{"line":9,"column":82}},"5":{"start":{"line":12,"column":2},"end":{"line":21,"column":3}},"6":{"start":{"line":13,"column":15},"end":{"line":13,"column":32}},"7":{"start":{"line":14,"column":4},"end":{"line":18,"column":5}},"8":{"start":{"line":15,"column":6},"end":{"line":15,"column":143}},"9":{"start":{"line":15,"column":40},"end":{"line":15,"column":86}},"10":{"start":{"line":15,"column":109},"end":{"line":15,"column":141}},"11":{"start":{"line":17,"column":6},"end":{"line":17,"column":16}},"12":{"start":{"line":20,"column":4},"end":{"line":20,"column":14}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":17},"end":{"line":4,"column":18}},"loc":{"start":{"line":4,"column":41},"end":{"line":22,"column":1}},"line":4},"1":{"name":"(anonymous_1)","decl":{"start":{"line":15,"column":30},"end":{"line":15,"column":31}},"loc":{"start":{"line":15,"column":40},"end":{"line":15,"column":86}},"line":15},"2":{"name":"(anonymous_2)","decl":{"start":{"line":15,"column":99},"end":{"line":15,"column":100}},"loc":{"start":{"line":15,"column":109},"end":{"line":15,"column":141}},"line":15}},"branchMap":{"0":{"loc":{"start":{"line":4,"column":23},"end":{"line":4,"column":36}},"type":"default-arg","locations":[{"start":{"line":4,"column":31},"end":{"line":4,"column":36}}],"line":4},"1":{"loc":{"start":{"line":8,"column":2},"end":{"line":10,"column":3}},"type":"if","locations":[{"start":{"line":8,"column":2},"end":{"line":10,"column":3}},{"start":{"line":8,"column":2},"end":{"line":10,"column":3}}],"line":8},"2":{"loc":{"start":{"line":12,"column":2},"end":{"line":21,"column":3}},"type":"if","locations":[{"start":{"line":12,"column":2},"end":{"line":21,"column":3}},{"start":{"line":12,"column":2},"end":{"line":21,"column":3}}],"line":12},"3":{"loc":{"start":{"line":14,"column":4},"end":{"line":18,"column":5}},"type":"if","locations":[{"start":{"line":14,"column":4},"end":{"line":18,"column":5}},{"start":{"line":14,"column":4},"end":{"line":18,"column":5}}],"line":14},"4":{"loc":{"start":{"line":15,"column":13},"end":{"line":15,"column":142}},"type":"cond-expr","locations":[{"start":{"line":15,"column":21},"end":{"line":15,"column":87}},{"start":{"line":15,"column":90},"end":{"line":15,"column":142}}],"line":15}},"s":{"0":1,"1":8,"2":8,"3":8,"4":1,"5":7,"6":6,"7":6,"8":5,"9":4,"10":5,"11":1,"12":1},"f":{"0":8,"1":4,"2":5},"b":{"0":[6],"1":[1,7],"2":[6,1],"3":[5,1],"4":[2,3]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"e70c10c900c8a2a3e2a5a555694f212cc1121f5f"}
}
8 changes: 0 additions & 8 deletions coverage/lcov-report/block-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,6 @@ var jumpToCode = (function init() {
}

return function jump(event) {
if (
document.getElementById('fileSearch') === document.activeElement &&
document.activeElement != null
) {
// if we're currently focused on the search input, we don't want to navigate
return;
}

switch (event.which) {
case 78: // n
case 74: // j
Expand Down
Binary file modified coverage/lcov-report/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 7 additions & 12 deletions coverage/lcov-report/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h1>All files</h1>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>12/12</span>
<span class='fraction'>13/13</span>
</div>


Expand All @@ -46,20 +46,14 @@ <h1>All files</h1>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>10/10</span>
<span class='fraction'>11/11</span>
</div>


</div>
<p class="quiet">
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
</p>
<template id="filterTemplate">
<div class="quiet">
Filter:
<input oninput="onInput()" type="search" id="fileSearch">
</div>
</template>
</div>
<div class='status-line high'></div>
<div class="pad1">
Expand All @@ -84,13 +78,13 @@ <h1>All files</h1>
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="12" class="abs high">12/12</td>
<td data-value="13" class="abs high">13/13</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="9" class="abs high">9/9</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="3" class="abs high">3/3</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="10" class="abs high">10/10</td>
<td data-value="11" class="abs high">11/11</td>
</tr>

</tbody>
Expand All @@ -100,9 +94,10 @@ <h1>All files</h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-08-30T16:37:04.285Z
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
at Thu Aug 31 2023 09:36:25 GMT+0100 (British Summer Time)
</div>
</div>
<script src="prettify.js"></script>
<script>
window.onload = function () {
Expand Down
25 changes: 13 additions & 12 deletions coverage/lcov-report/index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h1><a href="index.html">All files</a> index.js</h1>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>12/12</span>
<span class='fraction'>13/13</span>
</div>


Expand All @@ -46,20 +46,14 @@ <h1><a href="index.html">All files</a> index.js</h1>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>10/10</span>
<span class='fraction'>11/11</span>
</div>


</div>
<p class="quiet">
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
</p>
<template id="filterTemplate">
<div class="quiet">
Filter:
<input oninput="onInput()" type="search" id="fileSearch">
</div>
</template>
</div>
<div class='status-line high'></div>
<pre><table class="coverage">
Expand All @@ -83,10 +77,14 @@ <h1><a href="index.html">All files</a> index.js</h1>
<a name='L18'></a><a href='#L18'>18</a>
<a name='L19'></a><a href='#L19'>19</a>
<a name='L20'></a><a href='#L20'>20</a>
<a name='L21'></a><a href='#L21'>21</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<a name='L21'></a><a href='#L21'>21</a>
<a name='L22'></a><a href='#L22'>22</a>
<a name='L23'></a><a href='#L23'>23</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">8x</span>
<span class="cline-any cline-yes">8x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">8x</span>
<span class="cline-any cline-yes">1x</span>
Expand All @@ -104,9 +102,11 @@ <h1><a href="index.html">All files</a> index.js</h1>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">"use strict";
/* to fix issue with 191e6eca187e59605d494de867f4537b24cf3bf1 added clean up for possible brackets when using markdown that is not possible to cover with the first regex */
&nbsp;
module.exports = (str, lower = false) =&gt; {
const regexp = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()'@:%_\+.~#?!&amp;//=]*)/gi;
const bracketsRegexp = /[()]/g;
&nbsp;
if (typeof str !== "string") {
throw new TypeError(`The str argument should be a string, got ${typeof str}`);
Expand All @@ -115,7 +115,7 @@ <h1><a href="index.html">All files</a> index.js</h1>
if (str) {
let urls = str.match(regexp);
if (urls) {
return lower ? urls.map((item) =&gt; item.toLowerCase().replace(/[()]/g, "")) : urls.map((item) =&gt; item.replace(/[()]/g, ""));
return lower ? urls.map((item) =&gt; item.toLowerCase().replace(bracketsRegexp, "")) : urls.map((item) =&gt; item.replace(bracketsRegexp, ""));
} else {
undefined;
}
Expand All @@ -129,9 +129,10 @@ <h1><a href="index.html">All files</a> index.js</h1>
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-08-30T16:37:04.285Z
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
at Thu Aug 31 2023 09:36:25 GMT+0100 (British Summer Time)
</div>
</div>
<script src="prettify.js"></script>
<script>
window.onload = function () {
Expand Down
Binary file modified coverage/lcov-report/sort-arrow-sprite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 0 additions & 26 deletions coverage/lcov-report/sorter.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,31 +24,6 @@ var addSorting = (function() {
return getTableHeader().querySelectorAll('th')[n];
}

function onFilterInput() {
const searchValue = document.getElementById('fileSearch').value;
const rows = document.getElementsByTagName('tbody')[0].children;
for (let i = 0; i < rows.length; i++) {
const row = rows[i];
if (
row.textContent
.toLowerCase()
.includes(searchValue.toLowerCase())
) {
row.style.display = '';
} else {
row.style.display = 'none';
}
}
}

// loads the search box
function addSearchBox() {
var template = document.getElementById('filterTemplate');
var templateClone = template.content.cloneNode(true);
templateClone.getElementById('fileSearch').oninput = onFilterInput;
template.parentElement.appendChild(templateClone);
}

// loads all columns
function loadColumns() {
var colNodes = getTableHeader().querySelectorAll('th'),
Expand Down Expand Up @@ -187,7 +162,6 @@ var addSorting = (function() {
}
cols = loadColumns();
loadData();
addSearchBox();
addSortIndicators();
enableUI();
};
Expand Down
47 changes: 24 additions & 23 deletions coverage/lcov.info
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
TN:
SF:index.js
FN:3,(anonymous_0)
FN:13,(anonymous_1)
FN:13,(anonymous_2)
FN:4,(anonymous_0)
FN:15,(anonymous_1)
FN:15,(anonymous_2)
FNF:3
FNH:3
FNDA:8,(anonymous_0)
FNDA:4,(anonymous_1)
FNDA:5,(anonymous_2)
DA:3,1
DA:4,8
DA:4,1
DA:5,8
DA:6,8
DA:7,1
DA:10,7
DA:11,6
DA:12,6
DA:13,5
DA:15,1
DA:18,1
LF:10
LH:10
BRDA:3,0,0,6
BRDA:6,1,0,1
BRDA:6,1,1,7
BRDA:10,2,0,6
BRDA:10,2,1,1
BRDA:12,3,0,5
BRDA:12,3,1,1
BRDA:13,4,0,2
BRDA:13,4,1,3
DA:8,8
DA:9,1
DA:12,7
DA:13,6
DA:14,6
DA:15,5
DA:17,1
DA:20,1
LF:11
LH:11
BRDA:4,0,0,6
BRDA:8,1,0,1
BRDA:8,1,1,7
BRDA:12,2,0,6
BRDA:12,2,1,1
BRDA:14,3,0,5
BRDA:14,3,1,1
BRDA:15,4,0,2
BRDA:15,4,1,3
BRF:9
BRH:9
end_of_record
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": {
"name": "Massimiliano Ranauro",
"email": "[email protected]",
"url": "https://www.massimilianoranauro.com"
"url": "https://github.com/huckbit"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit dc958a6

Please sign in to comment.