Skip to content

Commit

Permalink
live title tag tests
Browse files Browse the repository at this point in the history
  • Loading branch information
floodfx committed Feb 10, 2022
1 parent a8ad86f commit 631662c
Show file tree
Hide file tree
Showing 34 changed files with 1,658 additions and 479 deletions.
548 changes: 446 additions & 102 deletions coverage/clover.xml

Large diffs are not rendered by default.

28 changes: 20 additions & 8 deletions coverage/coverage-final.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion coverage/lcov-report/examples/autocomplete/data.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -3106,7 +3106,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">examples/aut
<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 Wed Feb 09 2022 20:59:07 GMT-0700 (Mountain Standard Time)
at Wed Feb 09 2022 21:03:20 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/examples/autocomplete/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1><a href="../../index.html">All files</a> examples/autocomplete</h1>
<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 Wed Feb 09 2022 20:59:07 GMT-0700 (Mountain Standard Time)
at Wed Feb 09 2022 21:03:20 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/examples/live-search/data.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">examples/liv
<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 Wed Feb 09 2022 20:59:07 GMT-0700 (Mountain Standard Time)
at Wed Feb 09 2022 21:03:20 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/examples/live-search/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1><a href="../../index.html">All files</a> examples/live-search</h1>
<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 Wed Feb 09 2022 20:59:07 GMT-0700 (Mountain Standard Time)
at Wed Feb 09 2022 21:03:20 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/examples/volunteers/data.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">examples/vol
<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 Wed Feb 09 2022 20:59:07 GMT-0700 (Mountain Standard Time)
at Wed Feb 09 2022 21:03:20 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/examples/volunteers/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ <h1><a href="../../index.html">All files</a> examples/volunteers</h1>
<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 Wed Feb 09 2022 20:59:07 GMT-0700 (Mountain Standard Time)
at Wed Feb 09 2022 21:03:20 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
152 changes: 121 additions & 31 deletions coverage/lcov-report/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,30 @@ <h1>All files</h1>
<div class='clearfix'>

<div class='fl pad1y space-right2'>
<span class="strong">50.46% </span>
<span class="strong">79.11% </span>
<span class="quiet">Statements</span>
<span class='fraction'>54/107</span>
<span class='fraction'>322/407</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">8.91% </span>
<span class="strong">73.36% </span>
<span class="quiet">Branches</span>
<span class='fraction'>9/101</span>
<span class='fraction'>135/184</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">42.85% </span>
<span class="strong">83.72% </span>
<span class="quiet">Functions</span>
<span class='fraction'>12/28</span>
<span class='fraction'>72/86</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">47.91% </span>
<span class="strong">78.23% </span>
<span class="quiet">Lines</span>
<span class='fraction'>46/96</span>
<span class='fraction'>302/386</span>
</div>


Expand Down Expand Up @@ -79,33 +79,123 @@ <h1>All files</h1>
</tr>
</thead>
<tbody><tr>
<td class="file low" data-value="templates"><a href="templates/index.html">templates</a></td>
<td data-value="47.5" class="pic low">
<div class="chart"><div class="cover-fill" style="width: 47%"></div><div class="cover-empty" style="width: 53%"></div></div>
<td class="file high" data-value="examples/autocomplete"><a href="examples/autocomplete/index.html">examples/autocomplete</a></td>
<td data-value="100" class="pic high">
<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="47.5" class="pct low">47.5%</td>
<td data-value="40" class="abs low">19/40</td>
<td data-value="15.38" class="pct low">15.38%</td>
<td data-value="13" class="abs low">2/13</td>
<td data-value="50" class="pct medium">50%</td>
<td data-value="12" class="abs medium">6/12</td>
<td data-value="51.35" class="pct medium">51.35%</td>
<td data-value="37" class="abs medium">19/37</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="6" class="abs high">6/6</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="1" class="abs high">1/1</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="2" class="abs high">2/2</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="5" class="abs high">5/5</td>
</tr>

<tr>
<td class="file medium" data-value="templates/helpers"><a href="templates/helpers/index.html">templates/helpers</a></td>
<td data-value="52.23" class="pic medium">
<div class="chart"><div class="cover-fill" style="width: 52%"></div><div class="cover-empty" style="width: 48%"></div></div>
<td class="file high" data-value="examples/live-search"><a href="examples/live-search/index.html">examples/live-search</a></td>
<td data-value="100" class="pic high">
<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="52.23" class="pct medium">52.23%</td>
<td data-value="67" class="abs medium">35/67</td>
<td data-value="7.95" class="pct low">7.95%</td>
<td data-value="88" class="abs low">7/88</td>
<td data-value="37.5" class="pct low">37.5%</td>
<td data-value="16" class="abs low">6/16</td>
<td data-value="45.76" class="pct low">45.76%</td>
<td data-value="59" class="abs low">27/59</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="0" class="abs high">0/0</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="5" class="abs high">5/5</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="7" class="abs high">7/7</td>
</tr>

<tr>
<td class="file high" data-value="examples/volunteers"><a href="examples/volunteers/index.html">examples/volunteers</a></td>
<td data-value="100" class="pic high">
<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="27" class="abs high">27/27</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="2" class="abs high">2/2</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="4" class="abs high">4/4</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="23" class="abs high">23/23</td>
</tr>

<tr>
<td class="file high" data-value="server"><a href="server/index.html">server</a></td>
<td data-value="100" class="pic high">
<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="70" class="abs high">70/70</td>
<td data-value="80" class="pct high">80%</td>
<td data-value="20" class="abs high">16/20</td>
<td data-value="85.71" class="pct high">85.71%</td>
<td data-value="14" class="abs high">12/14</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="70" class="abs high">70/70</td>
</tr>

<tr>
<td class="file high" data-value="server/component"><a href="server/component/index.html">server/component</a></td>
<td data-value="100" class="pic high">
<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="22" class="abs high">22/22</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="6" class="abs high">6/6</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="7" class="abs high">7/7</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="21" class="abs high">21/21</td>
</tr>

<tr>
<td class="file low" data-value="server/socket"><a href="server/socket/index.html">server/socket</a></td>
<td data-value="49.39" class="pic low">
<div class="chart"><div class="cover-fill" style="width: 49%"></div><div class="cover-empty" style="width: 51%"></div></div>
</td>
<td data-value="49.39" class="pct low">49.39%</td>
<td data-value="166" class="abs low">82/166</td>
<td data-value="22.22" class="pct low">22.22%</td>
<td data-value="54" class="abs low">12/54</td>
<td data-value="57.69" class="pct medium">57.69%</td>
<td data-value="26" class="abs medium">15/26</td>
<td data-value="48.78" class="pct low">48.78%</td>
<td data-value="164" class="abs low">80/164</td>
</tr>

<tr>
<td class="file high" data-value="server/templates"><a href="server/templates/index.html">server/templates</a></td>
<td data-value="97.5" class="pic high">
<div class="chart"><div class="cover-fill" style="width: 97%"></div><div class="cover-empty" style="width: 3%"></div></div>
</td>
<td data-value="97.5" class="pct high">97.5%</td>
<td data-value="40" class="abs high">39/40</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="13" class="abs high">13/13</td>
<td data-value="91.66" class="pct high">91.66%</td>
<td data-value="12" class="abs high">11/12</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="37" class="abs high">37/37</td>
</tr>

<tr>
<td class="file high" data-value="server/templates/helpers"><a href="server/templates/helpers/index.html">server/templates/helpers</a></td>
<td data-value="100" class="pic high">
<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="67" class="abs high">67/67</td>
<td data-value="96.59" class="pct high">96.59%</td>
<td data-value="88" class="abs high">85/88</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="16" class="abs high">16/16</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="59" class="abs high">59/59</td>
</tr>

</tbody>
Expand All @@ -116,7 +206,7 @@ <h1>All files</h1>
<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 Wed Feb 09 2022 21:00:13 GMT-0700 (Mountain Standard Time)
at Wed Feb 09 2022 21:03:20 GMT-0700 (Mountain Standard Time)
</div>
<script src="prettify.js"></script>
<script>
Expand Down
112 changes: 112 additions & 0 deletions coverage/lcov-report/live_title_tag.ts.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@

<!doctype html>
<html lang="en">

<head>
<title>Code coverage report for live_title_tag.ts</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="prettify.css" />
<link rel="stylesheet" href="base.css" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style type='text/css'>
.coverage-summary .sorter {
background-image: url(sort-arrow-sprite.png);
}
</style>
</head>

<body>
<div class='wrapper'>
<div class='pad1'>
<h1><a href="index.html">All files</a> live_title_tag.ts</h1>
<div class='clearfix'>

<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>4/4</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">25% </span>
<span class="quiet">Branches</span>
<span class='fraction'>1/4</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Functions</span>
<span class='fraction'>1/1</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>3/3</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">
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
<a name='L2'></a><a href='#L2'>2</a>
<a name='L3'></a><a href='#L3'>3</a>
<a name='L4'></a><a href='#L4'>4</a>
<a name='L5'></a><a href='#L5'>5</a>
<a name='L6'></a><a href='#L6'>6</a>
<a name='L7'></a><a href='#L7'>7</a>
<a name='L8'></a><a href='#L8'>8</a>
<a name='L9'></a><a href='#L9'>9</a>
<a name='L10'></a><a href='#L10'>10</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-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">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">&nbsp;
interface LiveTitleTagOptions {
prefix?: string;
suffix?: string;
}
&nbsp;
export const live_title_tag = (title: string, options?: LiveTitleTagOptions): string =&gt; {
const { prefix = <span class="branch-0 cbranch-no" title="branch not covered" >"",</span> suffix = <span class="branch-0 cbranch-no" title="branch not covered" >"" </span>} = options || <span class="branch-1 cbranch-no" title="branch not covered" >{};</span>
return `${prefix}${title}${suffix}`;
}</pre></td></tr></table></pre>

<div class='push'></div><!-- for sticky footer -->
</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 Wed Feb 09 2022 21:03:10 GMT-0700 (Mountain Standard Time)
</div>
<script src="prettify.js"></script>
<script>
window.onload = function () {
prettyPrint();
};
</script>
<script src="sorter.js"></script>
<script src="block-navigation.js"></script>
</body>
</html>

Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">server/compo
<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 Wed Feb 09 2022 20:59:07 GMT-0700 (Mountain Standard Time)
at Wed Feb 09 2022 21:03:20 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/server/component/changeset.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">server/compo
<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 Wed Feb 09 2022 20:59:07 GMT-0700 (Mountain Standard Time)
at Wed Feb 09 2022 21:03:20 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/server/component/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ <h1><a href="../../index.html">All files</a> server/component</h1>
<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 Wed Feb 09 2022 20:59:07 GMT-0700 (Mountain Standard Time)
at Wed Feb 09 2022 21:03:20 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/lcov-report/server/component/index.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">server/compo
<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 Wed Feb 09 2022 20:59:07 GMT-0700 (Mountain Standard Time)
at Wed Feb 09 2022 21:03:20 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
Loading

0 comments on commit 631662c

Please sign in to comment.