Skip to content

Commit

Permalink
add .skip to erlang decode tests
Browse files Browse the repository at this point in the history
  • Loading branch information
floodfx committed Feb 9, 2022
1 parent bccbdc5 commit 689ca2b
Show file tree
Hide file tree
Showing 16 changed files with 157 additions and 139 deletions.
50 changes: 26 additions & 24 deletions coverage/clover.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1644295918007" clover="3.2.0">
<project timestamp="1644295918007" name="All files">
<metrics statements="79" coveredstatements="59" conditionals="19" coveredconditionals="11" methods="24" coveredmethods="18" elements="122" coveredelements="88" complexity="0" loc="79" ncloc="79" packages="5" files="6" classes="6"/>
<coverage generated="1644425432116" clover="3.2.0">
<project timestamp="1644425432116" name="All files">
<metrics statements="81" coveredstatements="58" conditionals="19" coveredconditionals="11" methods="25" coveredmethods="17" elements="125" coveredelements="86" complexity="0" loc="81" ncloc="81" packages="5" files="6" classes="6"/>
<package name="examples.autocomplete">
<metrics statements="5" coveredstatements="4" conditionals="1" coveredconditionals="0" methods="2" coveredmethods="2"/>
<file name="data.ts" path="/Users/donnie/src/github.com/floodfx/liveviewjs/src/examples/autocomplete/data.ts">
Expand All @@ -27,9 +27,9 @@
</file>
</package>
<package name="examples.volunteers">
<metrics statements="28" coveredstatements="10" conditionals="5" coveredconditionals="0" methods="5" coveredmethods="0"/>
<metrics statements="30" coveredstatements="11" conditionals="5" coveredconditionals="0" methods="6" coveredmethods="0"/>
<file name="data.ts" path="/Users/donnie/src/github.com/floodfx/liveviewjs/src/examples/volunteers/data.ts">
<metrics statements="28" coveredstatements="10" conditionals="5" coveredconditionals="0" methods="5" coveredmethods="0"/>
<metrics statements="30" coveredstatements="11" conditionals="5" coveredconditionals="0" methods="6" coveredmethods="0"/>
<line num="1" count="1" type="stmt"/>
<line num="2" count="1" type="stmt"/>
<line num="3" count="1" type="stmt"/>
Expand All @@ -40,37 +40,39 @@
<line num="24" count="0" type="stmt"/>
<line num="27" count="1" type="stmt"/>
<line num="28" count="0" type="stmt"/>
<line num="29" count="0" type="stmt"/>
<line num="31" count="0" type="cond" truecount="0" falsecount="1"/>
<line num="31" count="1" type="stmt"/>
<line num="32" count="0" type="stmt"/>
<line num="34" count="0" type="stmt"/>
<line num="35" count="0" type="stmt"/>
<line num="33" count="0" type="stmt"/>
<line num="35" count="0" type="cond" truecount="0" falsecount="1"/>
<line num="36" count="0" type="stmt"/>
<line num="38" count="0" type="stmt"/>
<line num="47" count="1" type="stmt"/>
<line num="48" count="0" type="stmt"/>
<line num="49" count="0" type="cond" truecount="0" falsecount="1"/>
<line num="50" count="0" type="stmt"/>
<line num="51" count="0" type="stmt"/>
<line num="53" count="0" type="stmt"/>
<line num="56" count="1" type="stmt"/>
<line num="39" count="0" type="stmt"/>
<line num="42" count="0" type="stmt"/>
<line num="51" count="1" type="stmt"/>
<line num="52" count="0" type="stmt"/>
<line num="53" count="0" type="cond" truecount="0" falsecount="1"/>
<line num="54" count="0" type="stmt"/>
<line num="55" count="0" type="stmt"/>
<line num="57" count="0" type="stmt"/>
<line num="58" count="0" type="cond" truecount="0" falsecount="1"/>
<line num="59" count="0" type="stmt"/>
<line num="60" count="0" type="stmt"/>
<line num="62" count="0" type="stmt"/>
<line num="60" count="1" type="stmt"/>
<line num="61" count="0" type="stmt"/>
<line num="62" count="0" type="cond" truecount="0" falsecount="1"/>
<line num="63" count="0" type="stmt"/>
<line num="64" count="0" type="stmt"/>
<line num="66" count="0" type="stmt"/>
</file>
</package>
<package name="misc.erlang">
<metrics statements="4" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
<metrics statements="4" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="0"/>
<file name="Erlang.js" path="/Users/donnie/src/github.com/floodfx/liveviewjs/src/misc/erlang/Erlang.js">
<metrics statements="0" coveredstatements="0" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
</file>
<file name="index.ts" path="/Users/donnie/src/github.com/floodfx/liveviewjs/src/misc/erlang/index.ts">
<metrics statements="4" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
<metrics statements="4" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="0"/>
<line num="2" count="1" type="stmt"/>
<line num="4" count="1" type="stmt"/>
<line num="5" count="2" type="stmt"/>
<line num="7" count="2" type="stmt"/>
<line num="5" count="0" type="stmt"/>
<line num="7" count="0" type="stmt"/>
</file>
</package>
<package name="server.templates">
Expand Down
4 changes: 2 additions & 2 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 Mon Feb 07 2022 21:51:57 GMT-0700 (Mountain Standard Time)
at Wed Feb 09 2022 09:50:32 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 Mon Feb 07 2022 21:51:57 GMT-0700 (Mountain Standard Time)
at Wed Feb 09 2022 09:50:32 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 Mon Feb 07 2022 21:51:57 GMT-0700 (Mountain Standard Time)
at Wed Feb 09 2022 09:50:32 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 Mon Feb 07 2022 21:51:57 GMT-0700 (Mountain Standard Time)
at Wed Feb 09 2022 09:50:32 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
32 changes: 22 additions & 10 deletions coverage/lcov-report/examples/volunteers/data.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">examples/vol
<div class='clearfix'>

<div class='fl pad1y space-right2'>
<span class="strong">43.75% </span>
<span class="strong">45.71% </span>
<span class="quiet">Statements</span>
<span class='fraction'>14/32</span>
<span class='fraction'>16/35</span>
</div>


Expand All @@ -39,14 +39,14 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">examples/vol
<div class='fl pad1y space-right2'>
<span class="strong">0% </span>
<span class="quiet">Functions</span>
<span class='fraction'>0/5</span>
<span class='fraction'>0/6</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">35.71% </span>
<span class="strong">36.66% </span>
<span class="quiet">Lines</span>
<span class='fraction'>10/28</span>
<span class='fraction'>11/30</span>
</div>


Expand Down Expand Up @@ -127,7 +127,11 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">examples/vol
<a name='L62'></a><a href='#L62'>62</a>
<a name='L63'></a><a href='#L63'>63</a>
<a name='L64'></a><a href='#L64'>64</a>
<a name='L65'></a><a href='#L65'>65</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
<a name='L65'></a><a href='#L65'>65</a>
<a name='L66'></a><a href='#L66'>66</a>
<a name='L67'></a><a href='#L67'>67</a>
<a name='L68'></a><a href='#L68'>68</a>
<a name='L69'></a><a href='#L69'>69</a></td><td class="line-coverage quiet"><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>
Expand Down Expand Up @@ -155,6 +159,10 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">examples/vol
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-no">&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-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
Expand Down Expand Up @@ -211,12 +219,16 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">examples/vol
export type Volunteer = z.infer&lt;typeof VolunteerSchema&gt;;
&nbsp;
// in memory data store
export const volunteers: Record&lt;string, Volunteer&gt; = {}
const volunteers: Record&lt;string, Volunteer&gt; = {}
&nbsp;
export const listVolunteers = <span class="fstat-no" title="function not covered" >(): Volunteer[] =</span>&gt; {
<span class="cstat-no" title="statement not covered" > return Object.values(volunteers)</span>
}
&nbsp;
export const getVolunteer = <span class="fstat-no" title="function not covered" >(i</span>d: string): Volunteer | undefined =&gt; {
<span class="cstat-no" title="statement not covered" > return volunteers[id]</span>
}
&nbsp;
export const changeset = <span class="fstat-no" title="function not covered" >(v</span>olunteer: Partial&lt;Volunteer&gt;, attrs: Partial&lt;Volunteer&gt;, action?: string): LiveViewChangeset&lt;Volunteer&gt; =&gt; {
const merged = <span class="cstat-no" title="statement not covered" >{ ...volunteer, ...attrs };</span>
const result = <span class="cstat-no" title="statement not covered" >VolunteerSchema.safeParse(merged);</span>
Expand All @@ -237,7 +249,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">examples/vol
} as LiveViewChangeset&lt;Volunteer&gt;
}
&nbsp;
export const create_volunteer = <span class="fstat-no" title="function not covered" >(n</span>ewVolunteer: Partial&lt;Volunteer&gt;): LiveViewChangeset&lt;Volunteer&gt; =&gt; {
export const createVolunteer = <span class="fstat-no" title="function not covered" >(n</span>ewVolunteer: Partial&lt;Volunteer&gt;): LiveViewChangeset&lt;Volunteer&gt; =&gt; {
const result = <span class="cstat-no" title="statement not covered" >changeset({}, newVolunteer, 'create');</span>
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (result.valid) {</span>
const v = <span class="cstat-no" title="statement not covered" >result.data as Volunteer;</span>
Expand All @@ -246,7 +258,7 @@ <h1><a href="../../index.html">All files</a> / <a href="index.html">examples/vol
<span class="cstat-no" title="statement not covered" > return result;</span>
}
&nbsp;
export const update_volunteer = <span class="fstat-no" title="function not covered" >(v</span>olunteer: Volunteer, updated: Partial&lt;Volunteer&gt;): LiveViewChangeset&lt;Volunteer&gt; =&gt; {
export const updateVolunteer = <span class="fstat-no" title="function not covered" >(v</span>olunteer: Volunteer, updated: Partial&lt;Volunteer&gt;): LiveViewChangeset&lt;Volunteer&gt; =&gt; {
const result = <span class="cstat-no" title="statement not covered" >changeset(volunteer, updated, 'update');</span>
<span class="cstat-no" title="statement not covered" > <span class="missing-if-branch" title="if path not taken" >I</span>if (result.valid) {</span>
const v = <span class="cstat-no" title="statement not covered" >result.data as Volunteer;</span>
Expand All @@ -262,7 +274,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 Mon Feb 07 2022 21:51:57 GMT-0700 (Mountain Standard Time)
at Wed Feb 09 2022 09:50:32 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
26 changes: 13 additions & 13 deletions coverage/lcov-report/examples/volunteers/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ <h1><a href="../../index.html">All files</a> examples/volunteers</h1>
<div class='clearfix'>

<div class='fl pad1y space-right2'>
<span class="strong">43.75% </span>
<span class="strong">45.71% </span>
<span class="quiet">Statements</span>
<span class='fraction'>14/32</span>
<span class='fraction'>16/35</span>
</div>


Expand All @@ -39,14 +39,14 @@ <h1><a href="../../index.html">All files</a> examples/volunteers</h1>
<div class='fl pad1y space-right2'>
<span class="strong">0% </span>
<span class="quiet">Functions</span>
<span class='fraction'>0/5</span>
<span class='fraction'>0/6</span>
</div>


<div class='fl pad1y space-right2'>
<span class="strong">35.71% </span>
<span class="strong">36.66% </span>
<span class="quiet">Lines</span>
<span class='fraction'>10/28</span>
<span class='fraction'>11/30</span>
</div>


Expand Down Expand Up @@ -80,17 +80,17 @@ <h1><a href="../../index.html">All files</a> examples/volunteers</h1>
</thead>
<tbody><tr>
<td class="file low" data-value="data.ts"><a href="data.ts.html">data.ts</a></td>
<td data-value="43.75" class="pic low">
<div class="chart"><div class="cover-fill" style="width: 43%"></div><div class="cover-empty" style="width: 57%"></div></div>
<td data-value="45.71" class="pic low">
<div class="chart"><div class="cover-fill" style="width: 45%"></div><div class="cover-empty" style="width: 55%"></div></div>
</td>
<td data-value="43.75" class="pct low">43.75%</td>
<td data-value="32" class="abs low">14/32</td>
<td data-value="45.71" class="pct low">45.71%</td>
<td data-value="35" class="abs low">16/35</td>
<td data-value="0" class="pct low">0%</td>
<td data-value="5" class="abs low">0/5</td>
<td data-value="0" class="pct low">0%</td>
<td data-value="5" class="abs low">0/5</td>
<td data-value="35.71" class="pct low">35.71%</td>
<td data-value="28" class="abs low">10/28</td>
<td data-value="6" class="abs low">0/6</td>
<td data-value="36.66" class="pct low">36.66%</td>
<td data-value="30" class="abs low">11/30</td>
</tr>

</tbody>
Expand All @@ -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 Mon Feb 07 2022 21:51:57 GMT-0700 (Mountain Standard Time)
at Wed Feb 09 2022 09:50:32 GMT-0700 (Mountain Standard Time)
</div>
<script src="../../prettify.js"></script>
<script>
Expand Down
Loading

0 comments on commit 689ca2b

Please sign in to comment.