cleaned up server tests and got all tests playing nice

This commit is contained in:
Brandon Nozaki Miller 2016-01-10 03:38:19 -08:00
parent 92061d2f85
commit 19416ef10c
17 changed files with 396 additions and 430 deletions

File diff suppressed because one or more lines are too long

View file

@ -20,24 +20,24 @@
</h1> </h1>
<div class='clearfix'> <div class='clearfix'>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">62.47% </span> <span class="strong">67.65% </span>
<span class="quiet">Statements</span> <span class="quiet">Statements</span>
<span class='fraction'>253/405</span> <span class='fraction'>274/405</span>
</div> </div>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">49.51% </span> <span class="strong">56.37% </span>
<span class="quiet">Branches</span> <span class="quiet">Branches</span>
<span class='fraction'>101/204</span> <span class='fraction'>115/204</span>
</div> </div>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">79.07% </span> <span class="strong">81.4% </span>
<span class="quiet">Functions</span> <span class="quiet">Functions</span>
<span class='fraction'>34/43</span> <span class='fraction'>35/43</span>
</div> </div>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">62.47% </span> <span class="strong">67.65% </span>
<span class="quiet">Lines</span> <span class="quiet">Lines</span>
<span class='fraction'>253/405</span> <span class='fraction'>274/405</span>
</div> </div>
</div> </div>
</div> </div>
@ -60,28 +60,28 @@
</thead> </thead>
<tbody><tr> <tbody><tr>
<td class="file medium" data-value="node-ipc/"><a href="node-ipc/index.html">node-ipc/</a></td> <td class="file medium" data-value="node-ipc/"><a href="node-ipc/index.html">node-ipc/</a></td>
<td data-value="58.52" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 58%;"></div><div class="cover-empty" style="width:42%;"></div></div></td> <td data-value="66.67" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 66%;"></div><div class="cover-empty" style="width:34%;"></div></div></td>
<td data-value="58.52" class="pct medium">58.52%</td> <td data-value="66.67" class="pct medium">66.67%</td>
<td data-value="135" class="abs medium">79/135</td> <td data-value="135" class="abs medium">90/135</td>
<td data-value="51.39" class="pct medium">51.39%</td> <td data-value="59.72" class="pct medium">59.72%</td>
<td data-value="72" class="abs medium">37/72</td> <td data-value="72" class="abs medium">43/72</td>
<td data-value="50" class="pct medium">50%</td> <td data-value="60" class="pct medium">60%</td>
<td data-value="10" class="abs medium">5/10</td> <td data-value="10" class="abs medium">6/10</td>
<td data-value="58.52" class="pct medium">58.52%</td> <td data-value="66.67" class="pct medium">66.67%</td>
<td data-value="135" class="abs medium">79/135</td> <td data-value="135" class="abs medium">90/135</td>
</tr> </tr>
<tr> <tr>
<td class="file medium" data-value="node-ipc/lib/"><a href="node-ipc/lib/index.html">node-ipc/lib/</a></td> <td class="file medium" data-value="node-ipc/lib/"><a href="node-ipc/lib/index.html">node-ipc/lib/</a></td>
<td data-value="64.44" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 64%;"></div><div class="cover-empty" style="width:36%;"></div></div></td> <td data-value="68.15" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 68%;"></div><div class="cover-empty" style="width:32%;"></div></div></td>
<td data-value="64.44" class="pct medium">64.44%</td> <td data-value="68.15" class="pct medium">68.15%</td>
<td data-value="270" class="abs medium">174/270</td> <td data-value="270" class="abs medium">184/270</td>
<td data-value="48.48" class="pct low">48.48%</td> <td data-value="54.55" class="pct medium">54.55%</td>
<td data-value="132" class="abs low">64/132</td> <td data-value="132" class="abs medium">72/132</td>
<td data-value="87.88" class="pct high">87.88%</td> <td data-value="87.88" class="pct high">87.88%</td>
<td data-value="33" class="abs high">29/33</td> <td data-value="33" class="abs high">29/33</td>
<td data-value="64.44" class="pct medium">64.44%</td> <td data-value="68.15" class="pct medium">68.15%</td>
<td data-value="270" class="abs medium">174/270</td> <td data-value="270" class="abs medium">184/270</td>
</tr> </tr>
</tbody> </tbody>
@ -90,7 +90,7 @@
</div><!-- /wrapper --> </div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'> <div class='footer quiet pad2 space-top1 center small'>
Code coverage Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 03:03:11 GMT-0800 (PST) generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 03:37:27 GMT-0800 (PST)
</div> </div>
</div> </div>
<script src="prettify.js"></script> <script src="prettify.js"></script>

View file

@ -20,24 +20,24 @@
</h1> </h1>
<div class='clearfix'> <div class='clearfix'>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">58.52% </span> <span class="strong">66.67% </span>
<span class="quiet">Statements</span> <span class="quiet">Statements</span>
<span class='fraction'>79/135</span> <span class='fraction'>90/135</span>
</div> </div>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">51.39% </span> <span class="strong">59.72% </span>
<span class="quiet">Branches</span> <span class="quiet">Branches</span>
<span class='fraction'>37/72</span> <span class='fraction'>43/72</span>
</div> </div>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">50% </span> <span class="strong">60% </span>
<span class="quiet">Functions</span> <span class="quiet">Functions</span>
<span class='fraction'>5/10</span> <span class='fraction'>6/10</span>
</div> </div>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">58.52% </span> <span class="strong">66.67% </span>
<span class="quiet">Lines</span> <span class="quiet">Lines</span>
<span class='fraction'>79/135</span> <span class='fraction'>90/135</span>
</div> </div>
</div> </div>
</div> </div>
@ -60,15 +60,15 @@
</thead> </thead>
<tbody><tr> <tbody><tr>
<td class="file medium" data-value="node-ipc.js"><a href="node-ipc.js.html">node-ipc.js</a></td> <td class="file medium" data-value="node-ipc.js"><a href="node-ipc.js.html">node-ipc.js</a></td>
<td data-value="58.52" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 58%;"></div><div class="cover-empty" style="width:42%;"></div></div></td> <td data-value="66.67" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 66%;"></div><div class="cover-empty" style="width:34%;"></div></div></td>
<td data-value="58.52" class="pct medium">58.52%</td> <td data-value="66.67" class="pct medium">66.67%</td>
<td data-value="135" class="abs medium">79/135</td> <td data-value="135" class="abs medium">90/135</td>
<td data-value="51.39" class="pct medium">51.39%</td> <td data-value="59.72" class="pct medium">59.72%</td>
<td data-value="72" class="abs medium">37/72</td> <td data-value="72" class="abs medium">43/72</td>
<td data-value="50" class="pct medium">50%</td> <td data-value="60" class="pct medium">60%</td>
<td data-value="10" class="abs medium">5/10</td> <td data-value="10" class="abs medium">6/10</td>
<td data-value="58.52" class="pct medium">58.52%</td> <td data-value="66.67" class="pct medium">66.67%</td>
<td data-value="135" class="abs medium">79/135</td> <td data-value="135" class="abs medium">90/135</td>
</tr> </tr>
</tbody> </tbody>
@ -77,7 +77,7 @@
</div><!-- /wrapper --> </div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'> <div class='footer quiet pad2 space-top1 center small'>
Code coverage Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 03:03:11 GMT-0800 (PST) generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 03:37:27 GMT-0800 (PST)
</div> </div>
</div> </div>
<script src="../prettify.js"></script> <script src="../prettify.js"></script>

View file

@ -415,24 +415,24 @@
<span class="cline-any cline-yes">13×</span> <span class="cline-any cline-yes">13×</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">12×</span> <span class="cline-any cline-yes">13×</span>
<span class="cline-any cline-neutral">&nbsp;</span> <span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">12×</span> <span class="cline-any cline-yes">13×</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-neutral">&nbsp;</span>
<span class="cline-any cline-yes">6×</span> <span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-yes">6×</span> <span class="cline-any cline-yes">7×</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-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">6×</span> <span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-yes">6×</span> <span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-yes">6×</span> <span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-neutral">&nbsp;</span> <span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">6×</span> <span class="cline-any cline-yes">7×</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">6×</span> <span class="cline-any cline-yes">6×</span>
@ -503,11 +503,11 @@
<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">6×</span> <span class="cline-any cline-yes">7×</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-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">6×</span> <span class="cline-any cline-yes">7×</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-neutral">&nbsp;</span>
@ -754,7 +754,7 @@ module.exports=init;
</div><!-- /wrapper --> </div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'> <div class='footer quiet pad2 space-top1 center small'>
Code coverage Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 03:03:11 GMT-0800 (PST) generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 03:37:27 GMT-0800 (PST)
</div> </div>
</div> </div>
<script src="../../prettify.js"></script> <script src="../../prettify.js"></script>

View file

@ -130,7 +130,7 @@ module.exports=parser;
</div><!-- /wrapper --> </div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'> <div class='footer quiet pad2 space-top1 center small'>
Code coverage Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 03:03:11 GMT-0800 (PST) generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 03:37:27 GMT-0800 (PST)
</div> </div>
</div> </div>
<script src="../../prettify.js"></script> <script src="../../prettify.js"></script>

View file

@ -20,14 +20,14 @@
</h1> </h1>
<div class='clearfix'> <div class='clearfix'>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">64.44% </span> <span class="strong">68.15% </span>
<span class="quiet">Statements</span> <span class="quiet">Statements</span>
<span class='fraction'>174/270</span> <span class='fraction'>184/270</span>
</div> </div>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">48.48% </span> <span class="strong">54.55% </span>
<span class="quiet">Branches</span> <span class="quiet">Branches</span>
<span class='fraction'>64/132</span> <span class='fraction'>72/132</span>
</div> </div>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">87.88% </span> <span class="strong">87.88% </span>
@ -35,9 +35,9 @@
<span class='fraction'>29/33</span> <span class='fraction'>29/33</span>
</div> </div>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">64.44% </span> <span class="strong">68.15% </span>
<span class="quiet">Lines</span> <span class="quiet">Lines</span>
<span class='fraction'>174/270</span> <span class='fraction'>184/270</span>
</div> </div>
</div> </div>
</div> </div>
@ -86,15 +86,15 @@
<tr> <tr>
<td class="file medium" data-value="socketServer.js"><a href="socketServer.js.html">socketServer.js</a></td> <td class="file medium" data-value="socketServer.js"><a href="socketServer.js.html">socketServer.js</a></td>
<td data-value="56.58" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 56%;"></div><div class="cover-empty" style="width:44%;"></div></div></td> <td data-value="63.16" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 63%;"></div><div class="cover-empty" style="width:37%;"></div></div></td>
<td data-value="56.58" class="pct medium">56.58%</td> <td data-value="63.16" class="pct medium">63.16%</td>
<td data-value="152" class="abs medium">86/152</td> <td data-value="152" class="abs medium">96/152</td>
<td data-value="46.51" class="pct low">46.51%</td> <td data-value="55.81" class="pct medium">55.81%</td>
<td data-value="86" class="abs low">40/86</td> <td data-value="86" class="abs medium">48/86</td>
<td data-value="80" class="pct high">80%</td> <td data-value="80" class="pct high">80%</td>
<td data-value="20" class="abs high">16/20</td> <td data-value="20" class="abs high">16/20</td>
<td data-value="56.58" class="pct medium">56.58%</td> <td data-value="63.16" class="pct medium">63.16%</td>
<td data-value="152" class="abs medium">86/152</td> <td data-value="152" class="abs medium">96/152</td>
</tr> </tr>
</tbody> </tbody>
@ -103,7 +103,7 @@
</div><!-- /wrapper --> </div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'> <div class='footer quiet pad2 space-top1 center small'>
Code coverage Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 03:03:11 GMT-0800 (PST) generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 03:37:27 GMT-0800 (PST)
</div> </div>
</div> </div>
<script src="../../prettify.js"></script> <script src="../../prettify.js"></script>

View file

@ -20,14 +20,14 @@
</h1> </h1>
<div class='clearfix'> <div class='clearfix'>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">56.58% </span> <span class="strong">63.16% </span>
<span class="quiet">Statements</span> <span class="quiet">Statements</span>
<span class='fraction'>86/152</span> <span class='fraction'>96/152</span>
</div> </div>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">46.51% </span> <span class="strong">55.81% </span>
<span class="quiet">Branches</span> <span class="quiet">Branches</span>
<span class='fraction'>40/86</span> <span class='fraction'>48/86</span>
</div> </div>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">80% </span> <span class="strong">80% </span>
@ -35,9 +35,9 @@
<span class='fraction'>16/20</span> <span class='fraction'>16/20</span>
</div> </div>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">56.58% </span> <span class="strong">63.16% </span>
<span class="quiet">Lines</span> <span class="quiet">Lines</span>
<span class='fraction'>86/152</span> <span class='fraction'>96/152</span>
</div> </div>
</div> </div>
</div> </div>
@ -473,7 +473,7 @@
<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">1×</span> <span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span> <span class="cline-any cline-yes">4×</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-neutral">&nbsp;</span>
@ -485,30 +485,30 @@
<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">2×</span> <span class="cline-any cline-yes">4×</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-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">2×</span> <span class="cline-any cline-yes">4×</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">2×</span> <span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-no">&nbsp;</span> <span class="cline-any cline-no">&nbsp;</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-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">2×</span> <span class="cline-any cline-yes">4×</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-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span> <span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">2×</span> <span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-neutral">&nbsp;</span> <span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">2×</span> <span class="cline-any cline-yes">2×</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-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>
@ -577,7 +577,7 @@
<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">2×</span> <span class="cline-any cline-yes">4×</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-no">&nbsp;</span> <span class="cline-any cline-no">&nbsp;</span>
@ -589,16 +589,16 @@
<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">2×</span> <span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-neutral">&nbsp;</span> <span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span> <span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">2×</span> <span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span> <span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span> <span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-no">&nbsp;</span> <span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">2×</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">2×</span> <span class="cline-any cline-yes">2×</span>
@ -608,7 +608,7 @@
<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">2×</span> <span class="cline-any cline-yes">4×</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-no">&nbsp;</span> <span class="cline-any cline-no">&nbsp;</span>
@ -617,7 +617,7 @@
<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">2×</span> <span class="cline-any cline-yes">4×</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">2×</span> <span class="cline-any cline-yes">2×</span>
@ -663,7 +663,7 @@
<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">2×</span> <span class="cline-any cline-yes">4×</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">2×</span> <span class="cline-any cline-yes">2×</span>
@ -680,44 +680,44 @@
<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">2×</span> <span class="cline-any cline-yes">4×</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-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">2×</span> <span class="cline-any cline-yes">4×</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-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">1×</span> <span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">2×</span> <span class="cline-any cline-yes">4×</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">2×</span> <span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-no">&nbsp;</span> <span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-no">&nbsp;</span> <span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-no">&nbsp;</span> <span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span> <span class="cline-any cline-no">&nbsp;</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-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span> <span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span> <span class="cline-any cline-yes">1×</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-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span> <span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span> <span class="cline-any cline-yes">1×</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">2×</span> <span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-no">&nbsp;</span> <span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-no">&nbsp;</span> <span class="cline-any cline-yes">1×</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-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span> <span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span> <span class="cline-any cline-yes">1×</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">2×</span> <span class="cline-any cline-yes">2×</span>
@ -739,9 +739,9 @@
<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">2×</span> <span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-neutral">&nbsp;</span> <span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span> <span class="cline-any cline-yes">4×</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">2×</span> <span class="cline-any cline-yes">2×</span>
@ -773,7 +773,7 @@
<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">2×</span> <span class="cline-any cline-yes">4×</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">1×</span> <span class="cline-any cline-yes">1×</span>
@ -871,11 +871,11 @@ function init(path,config,log,port){
( (
function(server){ function(server){
return function () { return function () {
server.log('starting server on '.debug,server.path.variable,((server.port)?':'+server.port:<span class="branch-1 cbranch-no" title="branch not covered" >'')</span>.variable); server.log('starting server on '.debug,server.path.variable,((server.port)?':'+server.port:'').variable);
&nbsp; &nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(!server.udp4 &amp;&amp; !server.udp6){ if(!server.udp4 &amp;&amp; !server.udp6){
<span class="cstat-no" title="statement not covered" > if(!server.config.tls){</span> <span class="missing-if-branch" title="else path not taken" >E</span>if(!server.config.tls){
<span class="cstat-no" title="statement not covered" > server.server=net.createServer(</span> server.server=net.createServer(
serverCreated serverCreated
); );
}else{ }else{
@ -961,8 +961,8 @@ function init(path,config,log,port){
function serverCreated(socket) { function serverCreated(socket) {
server.sockets.push(socket); server.sockets.push(socket);
&nbsp; &nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(socket.setEncoding) if(socket.setEncoding)
<span class="cstat-no" title="statement not covered" > socket.setEncoding(server.config.encoding);</span> socket.setEncoding(server.config.encoding);
&nbsp; &nbsp;
server.log('## socket connection to server detected ##'.rainbow); server.log('## socket connection to server detected ##'.rainbow);
socket.on( socket.on(
@ -1061,30 +1061,30 @@ function init(path,config,log,port){
server.onStart(socket) server.onStart(socket)
} }
&nbsp; &nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(!port){ if(!port){
<span class="cstat-no" title="statement not covered" > server.log('starting server as'.debug, 'Unix || Windows Socket'.variable);</span> server.log('starting server as'.debug, 'Unix || Windows Socket'.variable);
<span class="cstat-no" title="statement not covered" > if (process.platform ==='win32'){</span> <span class="missing-if-branch" title="if path not taken" >I</span>if (process.platform ==='win32'){
<span class="cstat-no" title="statement not covered" > server.path = server.path.replace(/^\//, '');</span> <span class="cstat-no" title="statement not covered" > server.path = server.path.replace(/^\//, '');</span>
<span class="cstat-no" title="statement not covered" > server.path = server.path.replace(/\//g, '-');</span> <span class="cstat-no" title="statement not covered" > server.path = server.path.replace(/\//g, '-');</span>
<span class="cstat-no" title="statement not covered" > server.path= '\\\\.\\pipe\\'+server.path;</span> <span class="cstat-no" title="statement not covered" > server.path= '\\\\.\\pipe\\'+server.path;</span>
} }
&nbsp; &nbsp;
<span class="cstat-no" title="statement not covered" > server.server.listen(</span> server.server.listen(
server.path, server.path,
started started
); );
&nbsp; &nbsp;
<span class="cstat-no" title="statement not covered" > return;</span> return;
} }
&nbsp; &nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(!server.udp4 &amp;&amp; !server.udp6){ if(!server.udp4 &amp;&amp; !server.udp6){
<span class="cstat-no" title="statement not covered" > server.log('starting server as'.debug, (server.config.tls?'TLS':'TCP').variable);</span> server.log('starting server as'.debug, (server.config.tls?<span class="branch-0 cbranch-no" title="branch not covered" >'TLS':</span>'TCP').variable);
<span class="cstat-no" title="statement not covered" > server.server.listen(</span> server.server.listen(
server.port, server.port,
server.path, server.path,
started started
); );
<span class="cstat-no" title="statement not covered" > return;</span> return;
} }
&nbsp; &nbsp;
server.log('starting server as'.debug,((server.udp4)? 'udp4':'udp6').variable); server.log('starting server as'.debug,((server.udp4)? 'udp4':'udp6').variable);
@ -1150,7 +1150,7 @@ module.exports=init;
</div><!-- /wrapper --> </div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'> <div class='footer quiet pad2 space-top1 center small'>
Code coverage Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 03:03:11 GMT-0800 (PST) generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 03:37:27 GMT-0800 (PST)
</div> </div>
</div> </div>
<script src="../../prettify.js"></script> <script src="../../prettify.js"></script>

View file

@ -20,24 +20,24 @@
</h1> </h1>
<div class='clearfix'> <div class='clearfix'>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">58.52% </span> <span class="strong">66.67% </span>
<span class="quiet">Statements</span> <span class="quiet">Statements</span>
<span class='fraction'>79/135</span> <span class='fraction'>90/135</span>
</div> </div>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">51.39% </span> <span class="strong">59.72% </span>
<span class="quiet">Branches</span> <span class="quiet">Branches</span>
<span class='fraction'>37/72</span> <span class='fraction'>43/72</span>
</div> </div>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">50% </span> <span class="strong">60% </span>
<span class="quiet">Functions</span> <span class="quiet">Functions</span>
<span class='fraction'>5/10</span> <span class='fraction'>6/10</span>
</div> </div>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">58.52% </span> <span class="strong">66.67% </span>
<span class="quiet">Lines</span> <span class="quiet">Lines</span>
<span class='fraction'>79/135</span> <span class='fraction'>90/135</span>
</div> </div>
</div> </div>
</div> </div>
@ -415,21 +415,21 @@
<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">1×</span> <span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">104×</span> <span class="cline-any cline-yes">114×</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-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">104×</span> <span class="cline-any cline-yes">114×</span>
<span class="cline-any cline-neutral">&nbsp;</span> <span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">104×</span> <span class="cline-any cline-yes">114×</span>
<span class="cline-any cline-yes">321×</span> <span class="cline-any cline-yes">346×</span>
<span class="cline-any cline-yes">293×</span> <span class="cline-any cline-yes">318×</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">28×</span> <span class="cline-any cline-yes">28×</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">104×</span> <span class="cline-any cline-yes">114×</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-neutral">&nbsp;</span>
@ -452,11 +452,11 @@
<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">1×</span> <span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-no">&nbsp;</span> <span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-no">&nbsp;</span> <span class="cline-any cline-no">&nbsp;</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-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span> <span class="cline-any cline-yes">1×</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-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span> <span class="cline-any cline-neutral">&nbsp;</span>
@ -465,36 +465,61 @@
<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-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span> <span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span> <span class="cline-any cline-yes">1×</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-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span> <span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span> <span class="cline-any cline-yes">1×</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-no">&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-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">1×</span> <span class="cline-any cline-yes">1×</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">1×</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-yes">2×</span> <span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">1×</span> <span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span> <span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span> <span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span> <span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span> <span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-no">&nbsp;</span> <span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span> <span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span> <span class="cline-any cline-no">&nbsp;</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-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span> <span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-no">&nbsp;</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-yes">3×</span>
<span class="cline-any cline-no">&nbsp;</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-yes">3×</span>
<span class="cline-any cline-yes">1×</span> <span class="cline-any cline-yes">1×</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>
@ -502,53 +527,28 @@
<span class="cline-any cline-neutral">&nbsp;</span> <span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span> <span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span> <span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span> <span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span> <span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span> <span class="cline-any cline-no">&nbsp;</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-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">2×</span> <span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-no">&nbsp;</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-yes">2×</span>
<span class="cline-any cline-no">&nbsp;</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-yes">2×</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-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">3×</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-no">&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">2×</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-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</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-neutral">&nbsp;</span> <span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-yes">2×</span> <span class="cline-any cline-yes">2×</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">3×</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">2×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</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-neutral">&nbsp;</span>
@ -767,12 +767,12 @@ function disconnect(id){
delete ipc.of[id]; delete ipc.of[id];
}; };
&nbsp; &nbsp;
<span class="fstat-no" title="function not covered" >function serve(path,callback){</span> function serve(path,callback){
<span class="cstat-no" title="statement not covered" > if(typeof path=='function'){</span> <span class="missing-if-branch" title="if path not taken" >I</span>if(typeof path=='function'){
<span class="cstat-no" title="statement not covered" > callback=path;</span> <span class="cstat-no" title="statement not covered" > callback=path;</span>
<span class="cstat-no" title="statement not covered" > path=false;</span> <span class="cstat-no" title="statement not covered" > path=false;</span>
} }
<span class="cstat-no" title="statement not covered" > if(!path){</span> <span class="missing-if-branch" title="if path not taken" >I</span>if(!path){
<span class="cstat-no" title="statement not covered" > ipc.log(</span> <span class="cstat-no" title="statement not covered" > ipc.log(</span>
'Server path not specified, so defaulting to'.notice, 'Server path not specified, so defaulting to'.notice,
'ipc.config.socketRoot + ipc.config.appspace + ipc.config.id'.variable, 'ipc.config.socketRoot + ipc.config.appspace + ipc.config.id'.variable,
@ -781,17 +781,17 @@ function disconnect(id){
<span class="cstat-no" title="statement not covered" > path=ipc.config.socketRoot+ipc.config.appspace+ipc.config.id;</span> <span class="cstat-no" title="statement not covered" > path=ipc.config.socketRoot+ipc.config.appspace+ipc.config.id;</span>
} }
&nbsp; &nbsp;
<span class="cstat-no" title="statement not covered" > if(!callback){</span> <span class="missing-if-branch" title="if path not taken" >I</span>if(!callback){
<span class="cstat-no" title="statement not covered" > callback=<span class="fstat-no" title="function not covered" >function(){</span>};</span> <span class="cstat-no" title="statement not covered" > callback=<span class="fstat-no" title="function not covered" >function(){</span>};</span>
} }
&nbsp; &nbsp;
<span class="cstat-no" title="statement not covered" > ipc.server=new Server(</span> ipc.server=new Server(
path, path,
ipc.config, ipc.config,
log log
); );
&nbsp; &nbsp;
<span class="cstat-no" title="statement not covered" > ipc.server.on(</span> ipc.server.on(
'start', 'start',
callback callback
); );
@ -804,11 +804,11 @@ function serveNet(host,port,UDPType,callback){
port=host; port=host;
host=false; host=false;
} }
<span class="missing-if-branch" title="if path not taken" >I</span>if(typeof host=='function'){ if(typeof host=='function'){
<span class="cstat-no" title="statement not covered" > callback=host;</span> callback=host;
<span class="cstat-no" title="statement not covered" > UDPType=false;</span> UDPType=false;
<span class="cstat-no" title="statement not covered" > host=false;</span> host=false;
<span class="cstat-no" title="statement not covered" > port=false;</span> port=false;
} }
if(!host){ if(!host){
ipc.log( ipc.log(
@ -835,13 +835,13 @@ function serveNet(host,port,UDPType,callback){
<span class="cstat-no" title="statement not covered" > UDPType=false;</span> <span class="cstat-no" title="statement not covered" > UDPType=false;</span>
<span class="cstat-no" title="statement not covered" > port=false;</span> <span class="cstat-no" title="statement not covered" > port=false;</span>
} }
<span class="missing-if-branch" title="if path not taken" >I</span>if(!port){ if(!port){
<span class="cstat-no" title="statement not covered" > ipc.log(</span> ipc.log(
'Server port not specified, so defaulting to'.notice, 'Server port not specified, so defaulting to'.notice,
'ipc.config.networkPort'.variable, 'ipc.config.networkPort'.variable,
ipc.config.networkPort ipc.config.networkPort
); );
<span class="cstat-no" title="statement not covered" > port=ipc.config.networkPort;</span> port=ipc.config.networkPort;
} }
&nbsp; &nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(typeof UDPType=='function'){ <span class="missing-if-branch" title="if path not taken" >I</span>if(typeof UDPType=='function'){
@ -860,7 +860,7 @@ function serveNet(host,port,UDPType,callback){
port port
); );
&nbsp; &nbsp;
<span class="missing-if-branch" title="else path not taken" >E</span>if(UDPType){ if(UDPType){
ipc.server[UDPType]=true; ipc.server[UDPType]=true;
} }
&nbsp; &nbsp;
@ -997,7 +997,7 @@ module.exports=ipc;
</div><!-- /wrapper --> </div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'> <div class='footer quiet pad2 space-top1 center small'>
Code coverage Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 03:03:11 GMT-0800 (PST) generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 03:37:27 GMT-0800 (PST)
</div> </div>
</div> </div>
<script src="../prettify.js"></script> <script src="../prettify.js"></script>

View file

@ -11,12 +11,12 @@ FN:203,(anonymous_8)
FN:245,connectNet FN:245,connectNet
FN:290,(anonymous_10) FN:290,(anonymous_10)
FNF:10 FNF:10
FNH:5 FNH:6
FNDA:104,log FNDA:114,log
FNDA:7,disconnect FNDA:7,disconnect
FNDA:0,serve FNDA:1,serve
FNDA:0,(anonymous_4) FNDA:0,(anonymous_4)
FNDA:2,serveNet FNDA:3,serveNet
FNDA:0,(anonymous_6) FNDA:0,(anonymous_6)
FNDA:4,connect FNDA:4,connect
FNDA:0,(anonymous_8) FNDA:0,(anonymous_8)
@ -28,14 +28,14 @@ DA:22,1
DA:26,1 DA:26,1
DA:44,1 DA:44,1
DA:56,1 DA:56,1
DA:57,104 DA:57,114
DA:58,0 DA:58,0
DA:61,104 DA:61,114
DA:63,104 DA:63,114
DA:64,321 DA:64,346
DA:65,293 DA:65,318
DA:68,28 DA:68,28
DA:71,104 DA:71,114
DA:76,1 DA:76,1
DA:77,7 DA:77,7
DA:78,0 DA:78,0
@ -46,55 +46,55 @@ DA:85,7
DA:86,7 DA:86,7
DA:90,7 DA:90,7
DA:93,1 DA:93,1
DA:94,0 DA:94,1
DA:95,0 DA:95,0
DA:96,0 DA:96,0
DA:98,0 DA:98,1
DA:99,0 DA:99,0
DA:104,0 DA:104,0
DA:107,0 DA:107,1
DA:108,0 DA:108,0
DA:111,0 DA:111,1
DA:117,0 DA:117,1
DA:123,1 DA:123,1
DA:124,2 DA:124,3
DA:125,1 DA:125,1
DA:126,1 DA:126,1
DA:127,1 DA:127,1
DA:128,1 DA:128,1
DA:130,2 DA:130,3
DA:131,0 DA:131,1
DA:132,0 DA:132,1
DA:133,0 DA:133,1
DA:134,0 DA:134,1
DA:136,2 DA:136,3
DA:137,1 DA:137,2
DA:142,1 DA:142,2
DA:144,2 DA:144,3
DA:145,0 DA:145,0
DA:146,0 DA:146,0
DA:147,0 DA:147,0
DA:148,0 DA:148,0
DA:151,2 DA:151,3
DA:152,0 DA:152,0
DA:153,0 DA:153,0
DA:154,0 DA:154,0
DA:156,2 DA:156,3
DA:157,0 DA:157,0
DA:158,0 DA:158,0
DA:159,0 DA:159,0
DA:161,2 DA:161,3
DA:162,0 DA:162,1
DA:167,0 DA:167,1
DA:170,2 DA:170,3
DA:171,0 DA:171,0
DA:172,0 DA:172,0
DA:175,2 DA:175,3
DA:176,0 DA:176,0
DA:179,2 DA:179,3
DA:186,2 DA:186,3
DA:187,2 DA:187,2
DA:190,2 DA:190,3
DA:196,1 DA:196,1
DA:197,4 DA:197,4
DA:198,2 DA:198,2
@ -158,12 +158,12 @@ DA:311,3
DA:313,3 DA:313,3
DA:316,1 DA:316,1
LF:135 LF:135
LH:79 LH:90
BRDA:29,1,0,0 BRDA:29,1,0,0
BRDA:29,1,1,1 BRDA:29,1,1,1
BRDA:57,2,0,0 BRDA:57,2,0,0
BRDA:57,2,1,104 BRDA:57,2,1,114
BRDA:64,3,0,293 BRDA:64,3,0,318
BRDA:64,3,1,28 BRDA:64,3,1,28
BRDA:77,4,0,0 BRDA:77,4,0,0
BRDA:77,4,1,7 BRDA:77,4,1,7
@ -172,33 +172,33 @@ BRDA:84,5,1,0
BRDA:85,6,0,7 BRDA:85,6,0,7
BRDA:85,6,1,0 BRDA:85,6,1,0
BRDA:94,7,0,0 BRDA:94,7,0,0
BRDA:94,7,1,0 BRDA:94,7,1,1
BRDA:98,8,0,0 BRDA:98,8,0,0
BRDA:98,8,1,0 BRDA:98,8,1,1
BRDA:107,9,0,0 BRDA:107,9,0,0
BRDA:107,9,1,0 BRDA:107,9,1,1
BRDA:124,10,0,1 BRDA:124,10,0,1
BRDA:124,10,1,1 BRDA:124,10,1,2
BRDA:130,11,0,0 BRDA:130,11,0,1
BRDA:130,11,1,2 BRDA:130,11,1,2
BRDA:136,12,0,1 BRDA:136,12,0,2
BRDA:136,12,1,1 BRDA:136,12,1,1
BRDA:144,13,0,0 BRDA:144,13,0,0
BRDA:144,13,1,2 BRDA:144,13,1,3
BRDA:144,14,0,2 BRDA:144,14,0,3
BRDA:144,14,1,2 BRDA:144,14,1,3
BRDA:151,15,0,0 BRDA:151,15,0,0
BRDA:151,15,1,2 BRDA:151,15,1,3
BRDA:156,16,0,0 BRDA:156,16,0,0
BRDA:156,16,1,2 BRDA:156,16,1,3
BRDA:161,17,0,0 BRDA:161,17,0,1
BRDA:161,17,1,2 BRDA:161,17,1,2
BRDA:170,18,0,0 BRDA:170,18,0,0
BRDA:170,18,1,2 BRDA:170,18,1,3
BRDA:175,19,0,0 BRDA:175,19,0,0
BRDA:175,19,1,2 BRDA:175,19,1,3
BRDA:186,20,0,2 BRDA:186,20,0,2
BRDA:186,20,1,0 BRDA:186,20,1,1
BRDA:197,21,0,2 BRDA:197,21,0,2
BRDA:197,21,1,2 BRDA:197,21,1,2
BRDA:202,22,0,0 BRDA:202,22,0,0
@ -232,7 +232,7 @@ BRDA:293,35,1,3
BRDA:294,36,0,0 BRDA:294,36,0,0
BRDA:294,36,1,0 BRDA:294,36,1,0
BRF:72 BRF:72
BRH:37 BRH:43
end_of_record end_of_record
TN: TN:
SF:/home/bmiller/git/node-ipc/lib/eventParser.js SF:/home/bmiller/git/node-ipc/lib/eventParser.js
@ -286,7 +286,7 @@ FNDA:6,syncEmit
FNDA:13,connect FNDA:13,connect
FNDA:10,(anonymous_5) FNDA:10,(anonymous_5)
FNDA:3,(anonymous_6) FNDA:3,(anonymous_6)
FNDA:12,(anonymous_7) FNDA:13,(anonymous_7)
FNDA:6,(anonymous_8) FNDA:6,(anonymous_8)
FNDA:6,(anonymous_9) FNDA:6,(anonymous_9)
FNDA:6,(anonymous_10) FNDA:6,(anonymous_10)
@ -351,14 +351,14 @@ DA:129,3
DA:130,3 DA:130,3
DA:131,3 DA:131,3
DA:135,13 DA:135,13
DA:138,12 DA:138,13
DA:140,12 DA:140,13
DA:144,6 DA:144,7
DA:145,6 DA:145,7
DA:151,6 DA:151,7
DA:152,6 DA:152,7
DA:153,6 DA:153,7
DA:155,6 DA:155,7
DA:158,6 DA:158,6
DA:160,6 DA:160,6
DA:163,6 DA:163,6
@ -391,9 +391,9 @@ DA:216,7
DA:217,7 DA:217,7
DA:219,7 DA:219,7
DA:220,7 DA:220,7
DA:226,6 DA:226,7
DA:227,0 DA:227,0
DA:230,6 DA:230,7
DA:235,1 DA:235,1
LF:104 LF:104
LH:76 LH:76
@ -421,9 +421,9 @@ BRDA:94,11,0,0
BRDA:94,11,1,0 BRDA:94,11,1,0
BRDA:95,12,0,0 BRDA:95,12,0,0
BRDA:95,12,1,0 BRDA:95,12,1,0
BRDA:140,13,0,6 BRDA:140,13,0,7
BRDA:140,13,1,6 BRDA:140,13,1,6
BRDA:141,14,0,12 BRDA:141,14,0,13
BRDA:141,14,1,8 BRDA:141,14,1,8
BRDA:169,15,0,2 BRDA:169,15,0,2
BRDA:169,15,1,4 BRDA:169,15,1,4
@ -438,7 +438,7 @@ BRDA:206,19,1,7
BRDA:206,20,0,7 BRDA:206,20,0,7
BRDA:206,20,1,7 BRDA:206,20,1,7
BRDA:226,21,0,0 BRDA:226,21,0,0
BRDA:226,21,1,6 BRDA:226,21,1,7
BRF:42 BRF:42
BRH:22 BRH:22
end_of_record end_of_record
@ -468,23 +468,23 @@ FNF:20
FNH:16 FNH:16
FNDA:2,emit FNDA:2,emit
FNDA:0,broadcast FNDA:0,broadcast
FNDA:2,init FNDA:4,init
FNDA:2,(anonymous_4) FNDA:4,(anonymous_4)
FNDA:2,(anonymous_5) FNDA:4,(anonymous_5)
FNDA:2,(anonymous_6) FNDA:4,(anonymous_6)
FNDA:2,(anonymous_7) FNDA:4,(anonymous_7)
FNDA:2,(anonymous_8) FNDA:4,(anonymous_8)
FNDA:2,UDPWrite FNDA:2,UDPWrite
FNDA:2,(anonymous_10) FNDA:2,(anonymous_10)
FNDA:0,(anonymous_11) FNDA:0,(anonymous_11)
FNDA:2,(anonymous_12) FNDA:2,(anonymous_12)
FNDA:0,(anonymous_13) FNDA:0,(anonymous_13)
FNDA:2,serverCreated FNDA:4,serverCreated
FNDA:2,(anonymous_15) FNDA:2,(anonymous_15)
FNDA:0,(anonymous_16) FNDA:0,(anonymous_16)
FNDA:2,(anonymous_17) FNDA:2,(anonymous_17)
FNDA:2,(anonymous_18) FNDA:2,(anonymous_18)
FNDA:2,started FNDA:4,started
FNDA:2,(anonymous_20) FNDA:2,(anonymous_20)
DA:1,1 DA:1,1
DA:9,1 DA:9,1
@ -517,18 +517,18 @@ DA:54,0
DA:57,0 DA:57,0
DA:58,0 DA:58,0
DA:63,1 DA:63,1
DA:64,2 DA:64,4
DA:76,2 DA:76,4
DA:82,2 DA:82,4
DA:85,2 DA:85,4
DA:86,0 DA:86,0
DA:87,0 DA:87,0
DA:90,2 DA:90,4
DA:94,2 DA:94,4
DA:95,2 DA:95,4
DA:97,2 DA:97,4
DA:98,0 DA:98,2
DA:99,0 DA:99,2
DA:103,0 DA:103,0
DA:104,0 DA:104,0
DA:105,0 DA:105,0
@ -556,21 +556,21 @@ DA:156,2
DA:159,2 DA:159,2
DA:160,2 DA:160,2
DA:163,2 DA:163,2
DA:168,2 DA:168,4
DA:171,0 DA:171,0
DA:173,0 DA:173,0
DA:180,2 DA:180,4
DA:182,1 DA:182,1
DA:183,2 DA:183,4
DA:185,2 DA:185,4
DA:186,0 DA:186,2
DA:188,2 DA:188,4
DA:189,2 DA:189,4
DA:192,2 DA:192,2
DA:199,2 DA:199,4
DA:202,0 DA:202,0
DA:204,0 DA:204,0
DA:208,2 DA:208,4
DA:211,2 DA:211,2
DA:212,2 DA:212,2
DA:213,0 DA:213,0
@ -591,7 +591,7 @@ DA:240,2
DA:242,2 DA:242,2
DA:243,2 DA:243,2
DA:245,2 DA:245,2
DA:254,2 DA:254,4
DA:257,2 DA:257,2
DA:258,0 DA:258,0
DA:259,2 DA:259,2
@ -600,28 +600,28 @@ DA:262,2
DA:263,0 DA:263,0
DA:265,2 DA:265,2
DA:267,2 DA:267,2
DA:271,2 DA:271,4
DA:276,2 DA:276,4
DA:277,0 DA:277,0
DA:281,1 DA:281,1
DA:282,2 DA:282,4
DA:285,2 DA:285,4
DA:286,0 DA:286,1
DA:287,0 DA:287,1
DA:288,0 DA:288,0
DA:289,0 DA:289,0
DA:290,0 DA:290,0
DA:293,0 DA:293,1
DA:298,0 DA:298,1
DA:301,2 DA:301,3
DA:302,0 DA:302,1
DA:303,0 DA:303,1
DA:308,0 DA:308,1
DA:311,2 DA:311,2
DA:312,2 DA:312,2
DA:317,2 DA:317,2
DA:330,2 DA:330,4
DA:332,2 DA:332,4
DA:335,2 DA:335,2
DA:336,2 DA:336,2
DA:337,2 DA:337,2
@ -636,10 +636,10 @@ DA:352,0
DA:355,2 DA:355,2
DA:357,2 DA:357,2
DA:359,2 DA:359,2
DA:364,2 DA:364,4
DA:367,1 DA:367,1
LF:152 LF:152
LH:86 LH:96
BRDA:16,1,0,0 BRDA:16,1,0,0
BRDA:16,1,1,2 BRDA:16,1,1,2
BRDA:22,2,0,2 BRDA:22,2,0,2
@ -659,14 +659,14 @@ BRDA:52,8,1,0
BRDA:52,9,0,0 BRDA:52,9,0,0
BRDA:52,9,1,0 BRDA:52,9,1,0
BRDA:85,10,0,0 BRDA:85,10,0,0
BRDA:85,10,1,2 BRDA:85,10,1,4
BRDA:95,11,0,2 BRDA:95,11,0,3
BRDA:95,11,1,0 BRDA:95,11,1,1
BRDA:97,12,0,0 BRDA:97,12,0,2
BRDA:97,12,1,2 BRDA:97,12,1,2
BRDA:97,13,0,2 BRDA:97,13,0,4
BRDA:97,13,1,1 BRDA:97,13,1,3
BRDA:98,14,0,0 BRDA:98,14,0,2
BRDA:98,14,1,0 BRDA:98,14,1,0
BRDA:104,15,0,0 BRDA:104,15,0,0
BRDA:104,15,1,0 BRDA:104,15,1,0
@ -682,7 +682,7 @@ BRDA:143,20,0,0
BRDA:143,20,1,2 BRDA:143,20,1,2
BRDA:157,21,0,1 BRDA:157,21,0,1
BRDA:157,21,1,1 BRDA:157,21,1,1
BRDA:185,22,0,0 BRDA:185,22,0,2
BRDA:185,22,1,2 BRDA:185,22,1,2
BRDA:211,23,0,2 BRDA:211,23,0,2
BRDA:211,23,1,0 BRDA:211,23,1,0
@ -703,17 +703,17 @@ BRDA:257,30,1,2
BRDA:262,31,0,0 BRDA:262,31,0,0
BRDA:262,31,1,2 BRDA:262,31,1,2
BRDA:276,32,0,0 BRDA:276,32,0,0
BRDA:276,32,1,2 BRDA:276,32,1,4
BRDA:285,33,0,0 BRDA:285,33,0,1
BRDA:285,33,1,2 BRDA:285,33,1,3
BRDA:287,34,0,0 BRDA:287,34,0,0
BRDA:287,34,1,0 BRDA:287,34,1,1
BRDA:301,35,0,0 BRDA:301,35,0,1
BRDA:301,35,1,2 BRDA:301,35,1,2
BRDA:301,36,0,2 BRDA:301,36,0,3
BRDA:301,36,1,1 BRDA:301,36,1,2
BRDA:302,37,0,0 BRDA:302,37,0,0
BRDA:302,37,1,0 BRDA:302,37,1,1
BRDA:311,38,0,1 BRDA:311,38,0,1
BRDA:311,38,1,1 BRDA:311,38,1,1
BRDA:339,39,0,2 BRDA:339,39,0,2
@ -727,5 +727,5 @@ BRDA:351,42,1,2
BRDA:351,43,0,2 BRDA:351,43,0,2
BRDA:351,43,1,2 BRDA:351,43,1,2
BRF:86 BRF:86
BRH:40 BRH:48
end_of_record end_of_record

View file

@ -5,8 +5,9 @@
"/support/jasmineTest/Unix/unixSocketClient.spec.js", "/support/jasmineTest/Unix/unixSocketClient.spec.js",
"/support/jasmineTest/UDP/udpSocketClient.spec.js", "/support/jasmineTest/UDP/udpSocketClient.spec.js",
"/support/jasmineTest/TCP/tcpSocketClient.spec.js" "/support/jasmineTest/TCP/tcpSocketClient.spec.js",
"/support/jasmineTest/Unix/unixSocketServer.spec.js",
"/support/jasmineTest/TCP/tcpSocketServer.spec.js"
] ]
} }

View file

@ -2,14 +2,13 @@
const ipc = require('../../../../node-ipc'); const ipc = require('../../../../node-ipc');
ipc.config.id ='testClient';
ipc.config.retry = 600;
describe('TCP Socket verification of client', describe('TCP Socket verification of client',
function TCPClientSpec(){ function TCPClientSpec(){
it( it(
'Verify retry attempts by TCP client to connect to the server as per the value set in "maxRetries" parameter.', 'Verify retry attempts by TCP client to connect to the server as per the value set in "maxRetries" parameter.',
function(done){ function(done){
ipc.config.id ='testClient';
ipc.config.retry = 600;
ipc.config.maxRetries = 3; ipc.config.maxRetries = 3;
ipc.config.stopRetrying = false; ipc.config.stopRetrying = false;

View file

@ -2,46 +2,40 @@
const ipc = require('../../../../node-ipc'); const ipc = require('../../../../node-ipc');
ipc.config.id ='testWorld';
ipc.config.retry = 1000;
describe('TCP Socket verification of server', describe('TCP Socket verification of server',
function TCPSocketSpec(){ function TCPSocketSpec(){
it( it(
'Verify TCP server detects only 1 client out of 2 clients and receives message.', 'Verify TCP server detects only 1 client out of 2 clients and receives message.',
function(done){ function(done){
ipc.config.id ='testWorld';
ipc.config.retry = 1000;
let clientCounter=0;
ipc.config.maxConnections=1;
ipc.config.networkPort=8500;
let clientCounter =0; ipc.serveNet(
ipc.config.maxConnections=1; function(){
ipc.config.networkPort=8500; ipc.server.on(
'connect',
function(data,socket){
clientCounter++;
}
);
}
);
ipc.serveNet( setTimeout(
function(){ function(){
ipc.server.on( expect(clientCounter).toBe(ipc.config.maxConnections);
'app.message', ipc.server.stop();
function(data,socket){ done();
},
ipc.config.retry+ipc.config.retry
);
clientCounter++; ipc.server.start();
}
expect(data.id).toBe('tcpClient'); );
expect(data.message).toBe('I am TCP client.'); }
}
);
setTimeout(
function(){
expect(clientCounter).toBe(1);
done();
},2000
);
}
);
ipc.server.start();
}
);
}
); );

View file

@ -2,10 +2,6 @@
const ipc = require('../../../../node-ipc'); const ipc = require('../../../../node-ipc');
ipc.config.id ='testWorld';
ipc.config.retry = 1000;
ipc.config.silent=false;
describe( describe(
'Test Cases for server: ', 'Test Cases for server: ',
function testDescribe(){ function testDescribe(){
@ -14,36 +10,34 @@ describe(
'Verify unix server detects only 1 client out of 2 clients and receives message.', 'Verify unix server detects only 1 client out of 2 clients and receives message.',
function testIt(done){ function testIt(done){
let clientCounter =0; ipc.config.id ='testWorld';
ipc.config.retry = 1000;
ipc.config.silent=false;
let clientCounter=0;
ipc.config.maxConnections=1; ipc.config.maxConnections=1;
ipc.config.networkPort='/tmp/app.testWorld';
ipc.serve( ipc.serve(
'/tmp/app.testWorld',
function serverStarted(){ function serverStarted(){
ipc.server.on( ipc.server.on(
'message', 'connect',
function gotMessage(data,socket){ function(data,socket){
clientCounter++; clientCounter++;
expect(data.id).toBe('unixClient');
expect(data.message).toBe('I am unix client.');
} }
); );
const counterTimer=2000;
setTimeout(
function testTimer(){
expect(clientCounter).toBe(1);
done();
},
counterTimer
);
} }
); );
setTimeout(
function(){
expect(clientCounter).toBe(ipc.config.maxConnections);
ipc.server.stop();
done();
},
ipc.config.retry+ipc.config.retry
);
ipc.server.start(); ipc.server.start();
} }
); );

View file

@ -18,20 +18,6 @@ ipc.config.silent=true;
ipc.config.networkPort=8500; ipc.config.networkPort=8500;
ipc.connectToNet( ipc.connectToNet('tcpClient');
'tcpClient',
function opened(){ ipc.connectToNet('tcpClient2');
ipc.of.tcpClient.on(
'connect',
function connected(){
ipc.of.tcpClient.emit(
'app.message',
{
id : ipc.config.id,
message : 'I am TCP client.'
}
);
}
);
}
);

View file

@ -1,4 +1,6 @@
'use strict'; 'use strict';
const ipc = require('../../../../node-ipc');
const cmd=require('node-cmd'); const cmd=require('node-cmd');
cmd.run(`node ${__dirname}/unixServer.js`); cmd.run(`node ${__dirname}/unixServer.js`);

View file

@ -18,19 +18,10 @@ ipc.config.silent=true;
ipc.connectTo( ipc.connectTo(
'testWorld', 'testWorld',
'/tmp/app.testWorld', '/tmp/app.testWorld'
function opened(){ );
ipc.of.testWorld.on(
'connect', ipc.connectTo(
function connected(){ 'testWorld2',
ipc.of.testWorld.emit( '/tmp/app.testWorld'
'message',
{
id : ipc.config.id,
message : 'I am unix client.'
}
);
}
);
}
); );

View file

@ -27,7 +27,6 @@ ipc.serve(
{ {
id : ipc.config.id, id : ipc.config.id,
message : 'I am unix server!' message : 'I am unix server!'
} }
); );
} }