cleaned up unix socket client test

This commit is contained in:
Brandon Nozaki Miller 2016-01-10 01:03:05 -08:00
parent 2d19c88b15
commit e6d6a59c42
23 changed files with 1285 additions and 1282 deletions

File diff suppressed because one or more lines are too long

View file

@ -20,28 +20,28 @@
</h1>
<div class='clearfix'>
<div class='fl pad1y space-right2'>
<span class="strong">65.68% </span>
<span class="strong">32.84% </span>
<span class="quiet">Statements</span>
<span class='fraction'>266/405</span>
<span class='fraction'>133/405</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">54.95% </span>
<span class="strong">17.82% </span>
<span class="quiet">Branches</span>
<span class='fraction'>111/202</span>
<span class='fraction'>36/202</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">74.42% </span>
<span class="strong">37.21% </span>
<span class="quiet">Functions</span>
<span class='fraction'>32/43</span>
<span class='fraction'>16/43</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">65.68% </span>
<span class="strong">32.84% </span>
<span class="quiet">Lines</span>
<span class='fraction'>266/405</span>
<span class='fraction'>133/405</span>
</div>
</div>
</div>
<div class='status-line medium'></div>
<div class='status-line low'></div>
<div class="pad1">
<table class="coverage-summary">
<thead>
@ -59,29 +59,29 @@
</tr>
</thead>
<tbody><tr>
<td class="file medium" data-value="node-ipc/"><a href="node-ipc/index.html">node-ipc/</a></td>
<td data-value="70.37" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 70%;"></div><div class="cover-empty" style="width:30%;"></div></div></td>
<td data-value="70.37" class="pct medium">70.37%</td>
<td data-value="135" class="abs medium">95/135</td>
<td data-value="61.11" class="pct medium">61.11%</td>
<td data-value="72" class="abs medium">44/72</td>
<td data-value="60" class="pct medium">60%</td>
<td data-value="10" class="abs medium">6/10</td>
<td data-value="70.37" class="pct medium">70.37%</td>
<td data-value="135" class="abs medium">95/135</td>
<td class="file low" data-value="node-ipc/"><a href="node-ipc/index.html">node-ipc/</a></td>
<td data-value="29.63" class="pic low"><div class="chart"><div class="cover-fill" style="width: 29%;"></div><div class="cover-empty" style="width:71%;"></div></div></td>
<td data-value="29.63" class="pct low">29.63%</td>
<td data-value="135" class="abs low">40/135</td>
<td data-value="19.44" class="pct low">19.44%</td>
<td data-value="72" class="abs low">14/72</td>
<td data-value="30" class="pct low">30%</td>
<td data-value="10" class="abs low">3/10</td>
<td data-value="29.63" class="pct low">29.63%</td>
<td data-value="135" class="abs low">40/135</td>
</tr>
<tr>
<td class="file medium" data-value="node-ipc/lib/"><a href="node-ipc/lib/index.html">node-ipc/lib/</a></td>
<td data-value="63.33" 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="63.33" class="pct medium">63.33%</td>
<td data-value="270" class="abs medium">171/270</td>
<td data-value="51.54" class="pct medium">51.54%</td>
<td data-value="130" class="abs medium">67/130</td>
<td data-value="78.79" class="pct medium">78.79%</td>
<td data-value="33" class="abs medium">26/33</td>
<td data-value="63.33" class="pct medium">63.33%</td>
<td data-value="270" class="abs medium">171/270</td>
<td class="file low" data-value="node-ipc/lib/"><a href="node-ipc/lib/index.html">node-ipc/lib/</a></td>
<td data-value="34.44" class="pic low"><div class="chart"><div class="cover-fill" style="width: 34%;"></div><div class="cover-empty" style="width:66%;"></div></div></td>
<td data-value="34.44" class="pct low">34.44%</td>
<td data-value="270" class="abs low">93/270</td>
<td data-value="16.92" class="pct low">16.92%</td>
<td data-value="130" class="abs low">22/130</td>
<td data-value="39.39" class="pct low">39.39%</td>
<td data-value="33" class="abs low">13/33</td>
<td data-value="34.44" class="pct low">34.44%</td>
<td data-value="270" class="abs low">93/270</td>
</tr>
</tbody>
@ -90,7 +90,7 @@
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sat Jan 09 2016 23:23:56 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 01:02:02 GMT-0800 (PST)
</div>
</div>
<script src="prettify.js"></script>

View file

@ -20,28 +20,28 @@
</h1>
<div class='clearfix'>
<div class='fl pad1y space-right2'>
<span class="strong">70.37% </span>
<span class="strong">29.63% </span>
<span class="quiet">Statements</span>
<span class='fraction'>95/135</span>
<span class='fraction'>40/135</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">61.11% </span>
<span class="strong">19.44% </span>
<span class="quiet">Branches</span>
<span class='fraction'>44/72</span>
<span class='fraction'>14/72</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">60% </span>
<span class="strong">30% </span>
<span class="quiet">Functions</span>
<span class='fraction'>6/10</span>
<span class='fraction'>3/10</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">70.37% </span>
<span class="strong">29.63% </span>
<span class="quiet">Lines</span>
<span class='fraction'>95/135</span>
<span class='fraction'>40/135</span>
</div>
</div>
</div>
<div class='status-line medium'></div>
<div class='status-line low'></div>
<div class="pad1">
<table class="coverage-summary">
<thead>
@ -59,16 +59,16 @@
</tr>
</thead>
<tbody><tr>
<td class="file medium" data-value="node-ipc.js"><a href="node-ipc.js.html">node-ipc.js</a></td>
<td data-value="70.37" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 70%;"></div><div class="cover-empty" style="width:30%;"></div></div></td>
<td data-value="70.37" class="pct medium">70.37%</td>
<td data-value="135" class="abs medium">95/135</td>
<td data-value="61.11" class="pct medium">61.11%</td>
<td data-value="72" class="abs medium">44/72</td>
<td data-value="60" class="pct medium">60%</td>
<td data-value="10" class="abs medium">6/10</td>
<td data-value="70.37" class="pct medium">70.37%</td>
<td data-value="135" class="abs medium">95/135</td>
<td class="file low" data-value="node-ipc.js"><a href="node-ipc.js.html">node-ipc.js</a></td>
<td data-value="29.63" class="pic low"><div class="chart"><div class="cover-fill" style="width: 29%;"></div><div class="cover-empty" style="width:71%;"></div></div></td>
<td data-value="29.63" class="pct low">29.63%</td>
<td data-value="135" class="abs low">40/135</td>
<td data-value="19.44" class="pct low">19.44%</td>
<td data-value="72" class="abs low">14/72</td>
<td data-value="30" class="pct low">30%</td>
<td data-value="10" class="abs low">3/10</td>
<td data-value="29.63" class="pct low">29.63%</td>
<td data-value="135" class="abs low">40/135</td>
</tr>
</tbody>
@ -77,7 +77,7 @@
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sat Jan 09 2016 23:23:56 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 01:02:02 GMT-0800 (PST)
</div>
</div>
<script src="../prettify.js"></script>

View file

@ -20,14 +20,14 @@
</h1>
<div class='clearfix'>
<div class='fl pad1y space-right2'>
<span class="strong">73.08% </span>
<span class="strong">70.19% </span>
<span class="quiet">Statements</span>
<span class='fraction'>76/104</span>
<span class='fraction'>73/104</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">52.38% </span>
<span class="strong">47.62% </span>
<span class="quiet">Branches</span>
<span class='fraction'>22/42</span>
<span class='fraction'>20/42</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
@ -35,9 +35,9 @@
<span class='fraction'>11/11</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">73.08% </span>
<span class="strong">70.19% </span>
<span class="quiet">Lines</span>
<span class='fraction'>76/104</span>
<span class='fraction'>73/104</span>
</div>
</div>
</div>
@ -287,185 +287,185 @@
<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">8×</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">8×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">8×</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">12×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">12×</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">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">11×</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">11×</span>
<span class="cline-any cline-yes">11×</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-neutral">&nbsp;</span>
<span class="cline-any cline-yes">14×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">14×</span>
<span class="cline-any cline-yes">14×</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">14×</span>
<span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-neutral">&nbsp;</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-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</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-yes">7×</span>
<span class="cline-any cline-yes">7×</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-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-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>
<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>
<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-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>
<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">14×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">14×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">10×</span>
<span class="cline-any cline-yes">10×</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">14×</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">4×</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-yes">14×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">14×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">14×</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">8×</span>
<span class="cline-any cline-yes">8×</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">8×</span>
<span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">8×</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">6×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">6×</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>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">6×</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">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">5×</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">5×</span>
<span class="cline-any cline-yes">5×</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-neutral">&nbsp;</span>
<span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">7×</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-yes">7×</span>
<span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-neutral">&nbsp;</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-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</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-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-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>
<span class="cline-any cline-no">&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>
<span class="cline-any cline-neutral">&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-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-neutral">&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-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-yes">7×</span>
<span class="cline-any cline-neutral">&nbsp;</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">5×</span>
<span class="cline-any cline-yes">5×</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">7×</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-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-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-yes">6×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">6×</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">14×</span>
<span class="cline-any cline-yes">3×</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-yes">12×</span>
<span class="cline-any cline-yes">12×</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">3×</span>
<span class="cline-any cline-yes">3×</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-yes">3×</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-yes">3×</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-yes">3×</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-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">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">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">6×</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>
@ -478,36 +478,36 @@
<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">12×</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-yes">6×</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">12×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">6×</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">12×</span>
<span class="cline-any cline-yes">5×</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">12×</span>
<span class="cline-any cline-yes">5×</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>
@ -574,7 +574,7 @@ function connect(){
<span class="cstat-no" title="statement not covered" > return;</span>
}
&nbsp;
if(!client.port){
<span class="missing-if-branch" title="else path not taken" >E</span>if(!client.port){
client.log('Connecting client on Unix Socket :'.debug, client.path.variable);
&nbsp;
var path = client.path;
@ -590,9 +590,9 @@ function connect(){
}
);
}else{
<span class="missing-if-branch" title="else path not taken" >E</span>if(!client.config.tls){
client.log('Connecting client via TCP to'.debug, client.path.variable ,client.port);
client.socket = net.connect(
<span class="cstat-no" title="statement not covered" > if(!client.config.tls){</span>
<span class="cstat-no" title="statement not covered" > client.log('Connecting client via TCP to'.debug, client.path.variable ,client.port);</span>
<span class="cstat-no" title="statement not covered" > client.socket = net.connect(</span>
{
port:client.port,
host:client.path
@ -754,7 +754,7 @@ module.exports=init;
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sat Jan 09 2016 23:23:56 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 01:02:02 GMT-0800 (PST)
</div>
</div>
<script src="../../prettify.js"></script>

View file

@ -73,21 +73,21 @@
28</td><td class="line-coverage quiet"><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-yes">14×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">14×</span>
<span class="cline-any cline-yes">6×</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">14×</span>
<span class="cline-any cline-yes">14×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">6×</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">16×</span>
<span class="cline-any cline-yes">16×</span>
<span class="cline-any cline-yes">16×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">6×</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>
@ -130,7 +130,7 @@ module.exports=parser;
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sat Jan 09 2016 23:23:56 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 01:02:02 GMT-0800 (PST)
</div>
</div>
<script src="../../prettify.js"></script>

View file

@ -20,28 +20,28 @@
</h1>
<div class='clearfix'>
<div class='fl pad1y space-right2'>
<span class="strong">63.33% </span>
<span class="strong">34.44% </span>
<span class="quiet">Statements</span>
<span class='fraction'>171/270</span>
<span class='fraction'>93/270</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">51.54% </span>
<span class="strong">16.92% </span>
<span class="quiet">Branches</span>
<span class='fraction'>67/130</span>
<span class='fraction'>22/130</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">78.79% </span>
<span class="strong">39.39% </span>
<span class="quiet">Functions</span>
<span class='fraction'>26/33</span>
<span class='fraction'>13/33</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">63.33% </span>
<span class="strong">34.44% </span>
<span class="quiet">Lines</span>
<span class='fraction'>171/270</span>
<span class='fraction'>93/270</span>
</div>
</div>
</div>
<div class='status-line medium'></div>
<div class='status-line low'></div>
<div class="pad1">
<table class="coverage-summary">
<thead>
@ -60,15 +60,15 @@
</thead>
<tbody><tr>
<td class="file medium" data-value="client.js"><a href="client.js.html">client.js</a></td>
<td data-value="73.08" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 73%;"></div><div class="cover-empty" style="width:27%;"></div></div></td>
<td data-value="73.08" class="pct medium">73.08%</td>
<td data-value="104" class="abs medium">76/104</td>
<td data-value="52.38" class="pct medium">52.38%</td>
<td data-value="42" class="abs medium">22/42</td>
<td data-value="70.19" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 70%;"></div><div class="cover-empty" style="width:30%;"></div></div></td>
<td data-value="70.19" class="pct medium">70.19%</td>
<td data-value="104" class="abs medium">73/104</td>
<td data-value="47.62" class="pct low">47.62%</td>
<td data-value="42" class="abs low">20/42</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="11" class="abs high">11/11</td>
<td data-value="73.08" class="pct medium">73.08%</td>
<td data-value="104" class="abs medium">76/104</td>
<td data-value="70.19" class="pct medium">70.19%</td>
<td data-value="104" class="abs medium">73/104</td>
</tr>
<tr>
@ -85,16 +85,16 @@
</tr>
<tr>
<td class="file medium" data-value="socketServer.js"><a href="socketServer.js.html">socketServer.js</a></td>
<td data-value="54.61" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 54%;"></div><div class="cover-empty" style="width:46%;"></div></div></td>
<td data-value="54.61" class="pct medium">54.61%</td>
<td data-value="152" class="abs medium">83/152</td>
<td data-value="51.19" class="pct medium">51.19%</td>
<td data-value="84" class="abs medium">43/84</td>
<td data-value="65" class="pct medium">65%</td>
<td data-value="20" class="abs medium">13/20</td>
<td data-value="54.61" class="pct medium">54.61%</td>
<td data-value="152" class="abs medium">83/152</td>
<td class="file low" data-value="socketServer.js"><a href="socketServer.js.html">socketServer.js</a></td>
<td data-value="5.26" class="pic low"><div class="chart"><div class="cover-fill" style="width: 5%;"></div><div class="cover-empty" style="width:95%;"></div></div></td>
<td data-value="5.26" class="pct low">5.26%</td>
<td data-value="152" class="abs low">8/152</td>
<td data-value="0" class="pct low">0%</td>
<td data-value="84" class="abs low">0/84</td>
<td data-value="0" class="pct low">0%</td>
<td data-value="20" class="abs low">0/20</td>
<td data-value="5.26" class="pct low">5.26%</td>
<td data-value="152" class="abs low">8/152</td>
</tr>
</tbody>
@ -103,7 +103,7 @@
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sat Jan 09 2016 23:23:56 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 01:02:02 GMT-0800 (PST)
</div>
</div>
<script src="../../prettify.js"></script>

View file

@ -20,28 +20,28 @@
</h1>
<div class='clearfix'>
<div class='fl pad1y space-right2'>
<span class="strong">54.61% </span>
<span class="strong">5.26% </span>
<span class="quiet">Statements</span>
<span class='fraction'>83/152</span>
<span class='fraction'>8/152</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">51.19% </span>
<span class="strong">0% </span>
<span class="quiet">Branches</span>
<span class='fraction'>43/84</span>
<span class='fraction'>0/84</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">65% </span>
<span class="strong">0% </span>
<span class="quiet">Functions</span>
<span class='fraction'>13/20</span>
<span class='fraction'>0/20</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">54.61% </span>
<span class="strong">5.26% </span>
<span class="quiet">Lines</span>
<span class='fraction'>83/152</span>
<span class='fraction'>8/152</span>
</div>
</div>
</div>
<div class='status-line medium'></div>
<div class='status-line low'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet">1
2
@ -416,31 +416,31 @@
<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">2×</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-yes">2×</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-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-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>
<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-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-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-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-no">&nbsp;</span>
@ -470,7 +470,7 @@
<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">4×</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>
@ -482,30 +482,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-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-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">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-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-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">4×</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-yes">4×</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-yes">4×</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-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>
@ -541,15 +541,15 @@
<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">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>
<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>
@ -562,19 +562,19 @@
<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-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-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">4×</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>
@ -586,16 +586,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-yes">4×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-no">&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-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">4×</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-no">&nbsp;</span>
@ -605,7 +605,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-yes">4×</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>
@ -614,11 +614,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-yes">4×</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">4×</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>
@ -628,102 +628,102 @@
<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">4×</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-yes">4×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</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-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</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-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">4×</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-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</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-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">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-no">&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">2×</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-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-no">&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>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</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">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-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>
<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>
<span class="cline-any cline-no">&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-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-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-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-yes">1×</span>
<span class="cline-any cline-yes">4×</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">4×</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-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">1×</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">1×</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">3×</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-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">1×</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-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">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>
@ -736,9 +736,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-yes">4×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</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>
@ -767,7 +767,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-yes">4×</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">1×</span>
@ -779,32 +779,32 @@
pubsub = require('event-pubsub'),
Message = require('js-message');
&nbsp;
function emit(socket, type, data){
this.log('dispatching event to socket'.debug, ' : ', type.data, data);
<span class="fstat-no" title="function not covered" >function emit(socket, type, data){</span>
<span class="cstat-no" title="statement not covered" > this.log('dispatching event to socket'.debug, ' : ', type.data, data);</span>
&nbsp;
var message=new Message;
message.type=type;
message.data=data;
<span class="cstat-no" title="statement not covered" > var message=new Message;</span>
<span class="cstat-no" title="statement not covered" > message.type=type;</span>
<span class="cstat-no" title="statement not covered" > message.data=data;</span>
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(this.config.rawBuffer){
<span class="cstat-no" title="statement not covered" > if(this.config.rawBuffer){</span>
<span class="cstat-no" title="statement not covered" > message=new Buffer(type,this.encoding);</span>
}else{
message=eventParser.format(message);
<span class="cstat-no" title="statement not covered" > message=eventParser.format(message);</span>
}
&nbsp;
<span class="missing-if-branch" title="else path not taken" >E</span>if(this.udp4 || this.udp6){
<span class="cstat-no" title="statement not covered" > if(this.udp4 || this.udp6){</span>
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(!socket.address || !socket.port){
<span class="cstat-no" title="statement not covered" > if(!socket.address || !socket.port){</span>
<span class="cstat-no" title="statement not covered" > this.log('Attempting to emit to a single UDP socket without supplying socket address or port. Redispatching event as broadcast to all connected sockets');</span>
<span class="cstat-no" title="statement not covered" > this.broadcast(type,data);</span>
<span class="cstat-no" title="statement not covered" > return;</span>
}
&nbsp;
this.server.write(
<span class="cstat-no" title="statement not covered" > this.server.write(</span>
message,
socket
);
return;
<span class="cstat-no" title="statement not covered" > return;</span>
};
&nbsp;
<span class="cstat-no" title="statement not covered" > socket.write(message);</span>
@ -833,8 +833,8 @@ function emit(socket, type, data){
}
};
&nbsp;
function init(path,config,log,port){
var server={
<span class="fstat-no" title="function not covered" >function init(path,config,log,port){</span>
<span class="cstat-no" title="statement not covered" > var server={</span>
config : config,
path : path,
port : port,
@ -845,8 +845,8 @@ function init(path,config,log,port){
sockets : [],
emit : emit,
broadcast : broadcast,
onStart : function(socket){
this.trigger(
onStart : <span class="fstat-no" title="function not covered" >function(socket){</span>
<span class="cstat-no" title="statement not covered" > this.trigger(</span>
'start',
socket
);
@ -854,22 +854,22 @@ function init(path,config,log,port){
stop:<span class="fstat-no" title="function not covered" >function(){</span>
<span class="cstat-no" title="statement not covered" > server.server.close();</span>
},
start : function(){
<span class="missing-if-branch" title="if path not taken" >I</span>if(!this.path){
start : <span class="fstat-no" title="function not covered" >function(){</span>
<span class="cstat-no" title="statement not covered" > if(!this.path){</span>
<span class="cstat-no" title="statement not covered" > server.log('Socket Server Path not specified, refusing to start'.warn);</span>
<span class="cstat-no" title="statement not covered" > return;</span>
}
&nbsp;
fs.unlink(
<span class="cstat-no" title="statement not covered" > fs.unlink(</span>
this.path,
(
function(server){
return function () {
server.log('starting server on '.debug,server.path.variable,((server.port)?':'+server.port:'').variable);
<span class="fstat-no" title="function not covered" > function(server){</span>
<span class="cstat-no" title="statement not covered" > return <span class="fstat-no" title="function not covered" >function () {</span></span>
<span class="cstat-no" title="statement not covered" > server.log('starting server on '.debug,server.path.variable,((server.port)?':'+server.port:'').variable);</span>
&nbsp;
if(!server.udp4 &amp;&amp; !server.udp6){
<span class="missing-if-branch" title="else path not taken" >E</span>if(!server.config.tls){
server.server=net.createServer(
<span class="cstat-no" title="statement not covered" > if(!server.udp4 &amp;&amp; !server.udp6){</span>
<span class="cstat-no" title="statement not covered" > if(!server.config.tls){</span>
<span class="cstat-no" title="statement not covered" > server.server=net.createServer(</span>
serverCreated
);
}else{
@ -904,16 +904,16 @@ function init(path,config,log,port){
);
}
}else{
function UDPWrite(message,socket){
var data=new Buffer(message, server.config.encoding);
server.server.send(
<span class="fstat-no" title="function not covered" > function UDPWrite(message,socket){</span>
<span class="cstat-no" title="statement not covered" > var data=new Buffer(message, server.config.encoding);</span>
<span class="cstat-no" title="statement not covered" > server.server.send(</span>
data,
0,
data.length,
socket.port,
socket.address,
function(err, bytes) {
<span class="missing-if-branch" title="if path not taken" >I</span>if(err){
<span class="fstat-no" title="function not covered" > function(err, bytes) {</span>
<span class="cstat-no" title="statement not covered" > if(err){</span>
<span class="cstat-no" title="statement not covered" > server.log('error writing data to socket'.warn,err);</span>
<span class="cstat-no" title="statement not covered" > server.trigger(</span>
'error',
@ -926,19 +926,19 @@ function init(path,config,log,port){
);
}
&nbsp;
server.server=dgram.createSocket(
<span class="cstat-no" title="statement not covered" > server.server=dgram.createSocket(</span>
((server.udp4)? 'udp4':'udp6')
);
server.server.write=UDPWrite;
server.server.on(
<span class="cstat-no" title="statement not covered" > server.server.write=UDPWrite;</span>
<span class="cstat-no" title="statement not covered" > server.server.on(</span>
'listening',
function () {
serverCreated(server.server)
<span class="fstat-no" title="function not covered" > function () {</span>
<span class="cstat-no" title="statement not covered" > serverCreated(server.server)</span>
}
);
}
&nbsp;
server.server.on(
<span class="cstat-no" title="statement not covered" > server.server.on(</span>
'error',
<span class="fstat-no" title="function not covered" > function(err){</span>
<span class="cstat-no" title="statement not covered" > server.log('server error'.warn,err);</span>
@ -950,16 +950,16 @@ function init(path,config,log,port){
}
);
&nbsp;
server.server.maxConnections=server.config.maxConnections;
<span class="cstat-no" title="statement not covered" > server.server.maxConnections=server.config.maxConnections;</span>
&nbsp;
function serverCreated(socket) {
server.sockets.push(socket);
<span class="fstat-no" title="function not covered" > function serverCreated(socket) {</span>
<span class="cstat-no" title="statement not covered" > server.sockets.push(socket);</span>
&nbsp;
if(socket.setEncoding)
socket.setEncoding(server.config.encoding);
<span class="cstat-no" title="statement not covered" > if(socket.setEncoding)</span>
<span class="cstat-no" title="statement not covered" > socket.setEncoding(server.config.encoding);</span>
&nbsp;
server.log('## socket connection to server detected ##'.rainbow);
socket.on(
<span class="cstat-no" title="statement not covered" > server.log('## socket connection to server detected ##'.rainbow);</span>
<span class="cstat-no" title="statement not covered" > socket.on(</span>
'close',
<span class="fstat-no" title="function not covered" > function(socket){</span>
<span class="cstat-no" title="statement not covered" > server.trigger(</span>
@ -969,7 +969,7 @@ function init(path,config,log,port){
}
);
&nbsp;
socket.on(
<span class="cstat-no" title="statement not covered" > socket.on(</span>
'error',
<span class="fstat-no" title="function not covered" > function(err){</span>
<span class="cstat-no" title="statement not covered" > server.log('server socket error'.warn,err);</span>
@ -978,11 +978,11 @@ function init(path,config,log,port){
}
);
&nbsp;
socket.on(
<span class="cstat-no" title="statement not covered" > socket.on(</span>
'data',
function(data,UDPSocket){
var sock=((server.udp4 || server.udp6)? UDPSocket : socket);
<span class="missing-if-branch" title="if path not taken" >I</span>if(server.config.rawBuffer){
<span class="fstat-no" title="function not covered" > function(data,UDPSocket){</span>
<span class="cstat-no" title="statement not covered" > var sock=((server.udp4 || server.udp6)? UDPSocket : socket);</span>
<span class="cstat-no" title="statement not covered" > if(server.config.rawBuffer){</span>
<span class="cstat-no" title="statement not covered" > data=new Buffer(data,this.encoding);</span>
<span class="cstat-no" title="statement not covered" > server.trigger(</span>
'data',
@ -992,30 +992,30 @@ function init(path,config,log,port){
<span class="cstat-no" title="statement not covered" > return;</span>
}
&nbsp;
<span class="missing-if-branch" title="else path not taken" >E</span>if(!this.ipcBuffer)
this.ipcBuffer='';
<span class="cstat-no" title="statement not covered" > if(!this.ipcBuffer)</span>
<span class="cstat-no" title="statement not covered" > this.ipcBuffer='';</span>
&nbsp;
data=(this.ipcBuffer+=data);
<span class="cstat-no" title="statement not covered" > data=(this.ipcBuffer+=data);</span>
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(data.slice(-1)!=eventParser.delimiter || data.indexOf(eventParser.delimiter) == -1){
<span class="cstat-no" title="statement not covered" > if(data.slice(-1)!=eventParser.delimiter || data.indexOf(eventParser.delimiter) == -1){</span>
<span class="cstat-no" title="statement not covered" > server.log('Implementing larger buffer for this socket message. You may want to consider smaller messages'.notice);</span>
<span class="cstat-no" title="statement not covered" > return;</span>
}
&nbsp;
this.ipcBuffer='';
<span class="cstat-no" title="statement not covered" > this.ipcBuffer='';</span>
&nbsp;
data=eventParser.parse(data);
<span class="cstat-no" title="statement not covered" > data=eventParser.parse(data);</span>
&nbsp;
while(data.length&gt;0){
var message=new Message;
message.load(data.shift());
<span class="cstat-no" title="statement not covered" > while(data.length&gt;0){</span>
<span class="cstat-no" title="statement not covered" > var message=new Message;</span>
<span class="cstat-no" title="statement not covered" > message.load(data.shift());</span>
&nbsp;
server.log('received event of : '.debug,message.type.data,message.data);
<span class="cstat-no" title="statement not covered" > server.log('received event of : '.debug,message.type.data,message.data);</span>
&nbsp;
<span class="missing-if-branch" title="else path not taken" >E</span>if(message.data.id)
sock.id=message.data.id;
<span class="cstat-no" title="statement not covered" > if(message.data.id)</span>
<span class="cstat-no" title="statement not covered" > sock.id=message.data.id;</span>
&nbsp;
server.trigger(
<span class="cstat-no" title="statement not covered" > server.trigger(</span>
message.type,
message.data,
sock
@ -1024,70 +1024,70 @@ function init(path,config,log,port){
}
);
&nbsp;
socket.on(
<span class="cstat-no" title="statement not covered" > socket.on(</span>
'message',
function(msg,rinfo) {
<span class="missing-if-branch" title="if path not taken" >I</span>if (!rinfo)
<span class="fstat-no" title="function not covered" > function(msg,rinfo) {</span>
<span class="cstat-no" title="statement not covered" > if (!rinfo)</span>
<span class="cstat-no" title="statement not covered" > return;</span>
server.log('Received UDP message from '.debug, rinfo.address.variable, rinfo.port);
var data;
<span class="cstat-no" title="statement not covered" > server.log('Received UDP message from '.debug, rinfo.address.variable, rinfo.port);</span>
<span class="cstat-no" title="statement not covered" > var data;</span>
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(server.config.rawSocket){
<span class="cstat-no" title="statement not covered" > if(server.config.rawSocket){</span>
<span class="cstat-no" title="statement not covered" > data=new Buffer(msg,this.encoding);</span>
}else{
data=msg.toString();
<span class="cstat-no" title="statement not covered" > data=msg.toString();</span>
}
socket.emit('data',data,rinfo);
<span class="cstat-no" title="statement not covered" > socket.emit('data',data,rinfo);</span>
}
);
&nbsp;
server.trigger(
<span class="cstat-no" title="statement not covered" > server.trigger(</span>
'connect',
socket
);
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(server.config.rawBuffer){
<span class="cstat-no" title="statement not covered" > if(server.config.rawBuffer){</span>
<span class="cstat-no" title="statement not covered" > return;</span>
}
}
&nbsp;
function started(socket){
server.onStart(socket)
<span class="fstat-no" title="function not covered" > function started(socket){</span>
<span class="cstat-no" title="statement not covered" > server.onStart(socket)</span>
}
&nbsp;
if(!port){
server.log('starting server as'.debug, 'Unix || Windows Socket'.variable);
<span class="missing-if-branch" title="if path not taken" >I</span>if (process.platform ==='win32'){
<span class="cstat-no" title="statement not covered" > if(!port){</span>
<span class="cstat-no" title="statement not covered" > server.log('starting server as'.debug, 'Unix || Windows Socket'.variable);</span>
<span class="cstat-no" title="statement not covered" > if (process.platform ==='win32'){</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= '\\\\.\\pipe\\'+server.path;</span>
}
&nbsp;
server.server.listen(
<span class="cstat-no" title="statement not covered" > server.server.listen(</span>
server.path,
started
);
&nbsp;
return;
<span class="cstat-no" title="statement not covered" > return;</span>
}
&nbsp;
if(!server.udp4 &amp;&amp; !server.udp6){
server.log('starting server as'.debug, (server.config.tls?<span class="branch-0 cbranch-no" title="branch not covered" >'TLS':</span>'TCP').variable);
server.server.listen(
<span class="cstat-no" title="statement not covered" > if(!server.udp4 &amp;&amp; !server.udp6){</span>
<span class="cstat-no" title="statement not covered" > server.log('starting server as'.debug, (server.config.tls?'TLS':'TCP').variable);</span>
<span class="cstat-no" title="statement not covered" > server.server.listen(</span>
server.port,
server.path,
started
);
return;
<span class="cstat-no" title="statement not covered" > return;</span>
}
&nbsp;
server.log('starting server as'.debug,((server.udp4)? 'udp4':'udp6').variable);
server.server.bind(
<span class="cstat-no" title="statement not covered" > server.log('starting server as'.debug,((server.udp4)? 'udp4':'udp6').variable);</span>
<span class="cstat-no" title="statement not covered" > server.server.bind(</span>
server.port,
server.path
);
&nbsp;
started(
<span class="cstat-no" title="statement not covered" > started(</span>
{
address : server.path,
port : server.port
@ -1100,9 +1100,9 @@ function init(path,config,log,port){
}
};
&nbsp;
new pubsub(server);
<span class="cstat-no" title="statement not covered" > new pubsub(server);</span>
&nbsp;
server.on(
<span class="cstat-no" title="statement not covered" > server.on(</span>
'close',
<span class="fstat-no" title="function not covered" > function(){</span>
<span class="cstat-no" title="statement not covered" > for(var i=0, count=server.sockets.length; i&lt;count; i++){</span>
@ -1131,7 +1131,7 @@ function init(path,config,log,port){
}
);
&nbsp;
return server;
<span class="cstat-no" title="statement not covered" > return server;</span>
}
&nbsp;
module.exports=init;
@ -1141,7 +1141,7 @@ module.exports=init;
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sat Jan 09 2016 23:23:56 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 01:02:02 GMT-0800 (PST)
</div>
</div>
<script src="../../prettify.js"></script>

View file

@ -20,28 +20,28 @@
</h1>
<div class='clearfix'>
<div class='fl pad1y space-right2'>
<span class="strong">70.37% </span>
<span class="strong">29.63% </span>
<span class="quiet">Statements</span>
<span class='fraction'>95/135</span>
<span class='fraction'>40/135</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">61.11% </span>
<span class="strong">19.44% </span>
<span class="quiet">Branches</span>
<span class='fraction'>44/72</span>
<span class='fraction'>14/72</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">60% </span>
<span class="strong">30% </span>
<span class="quiet">Functions</span>
<span class='fraction'>6/10</span>
<span class='fraction'>3/10</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">70.37% </span>
<span class="strong">29.63% </span>
<span class="quiet">Lines</span>
<span class='fraction'>95/135</span>
<span class='fraction'>40/135</span>
</div>
</div>
</div>
<div class='status-line medium'></div>
<div class='status-line low'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet">1
2
@ -415,140 +415,140 @@
<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">141×</span>
<span class="cline-any cline-yes">70×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">71×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">71×</span>
<span class="cline-any cline-yes">229×</span>
<span class="cline-any cline-yes">210×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">19×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">71×</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">8×</span>
<span class="cline-any cline-yes">55×</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">8×</span>
<span class="cline-any cline-yes">55×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-yes">55×</span>
<span class="cline-any cline-yes">177×</span>
<span class="cline-any cline-yes">160×</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">8×</span>
<span class="cline-any cline-yes">17×</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">1×</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-yes">1×</span>
<span class="cline-any cline-yes">55×</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">4×</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">4×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">4×</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-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-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-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">1×</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-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-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-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-neutral">&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-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-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-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-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-neutral">&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-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-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-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-neutral">&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-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-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">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-neutral">&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-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">3×</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">3×</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>
@ -604,37 +604,24 @@
<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">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-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">4×</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-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-yes">4×</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">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-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-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>
@ -643,15 +630,28 @@
<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">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-neutral">&nbsp;</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-yes">4×</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-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-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-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
@ -664,14 +664,14 @@
<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">4×</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">4×</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-yes">4×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</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">1×</span>
@ -731,8 +731,8 @@ var ipc = {
}
&nbsp;
function log(){
if(ipc.config.silent){
return;
<span class="missing-if-branch" title="if path not taken" >I</span>if(ipc.config.silent){
<span class="cstat-no" title="statement not covered" > return;</span>
}
&nbsp;
var args=Array.prototype.slice.call(arguments);
@ -767,104 +767,104 @@ function disconnect(id){
delete ipc.of[id];
};
&nbsp;
function serve(path,callback){
<span class="missing-if-branch" title="else path not taken" >E</span>if(typeof path=='function'){
callback=path;
path=false;
<span class="fstat-no" title="function not covered" >function serve(path,callback){</span>
<span class="cstat-no" title="statement not covered" > if(typeof path=='function'){</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="missing-if-branch" title="else path not taken" >E</span>if(!path){
ipc.log(
<span class="cstat-no" title="statement not covered" > if(!path){</span>
<span class="cstat-no" title="statement not covered" > ipc.log(</span>
'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).data
);
path=ipc.config.socketRoot+ipc.config.appspace+ipc.config.id;
<span class="cstat-no" title="statement not covered" > path=ipc.config.socketRoot+ipc.config.appspace+ipc.config.id;</span>
}
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(!callback){
<span class="cstat-no" title="statement not covered" > if(!callback){</span>
<span class="cstat-no" title="statement not covered" > callback=<span class="fstat-no" title="function not covered" >function(){</span>};</span>
}
&nbsp;
ipc.server=new Server(
<span class="cstat-no" title="statement not covered" > ipc.server=new Server(</span>
path,
ipc.config,
log
);
&nbsp;
ipc.server.on(
<span class="cstat-no" title="statement not covered" > ipc.server.on(</span>
'start',
callback
);
}
&nbsp;
function serveNet(host,port,UDPType,callback){
if(typeof host=='number'){
callback=UDPType;
UDPType=port;
port=host;
host=false;
<span class="fstat-no" title="function not covered" >function serveNet(host,port,UDPType,callback){</span>
<span class="cstat-no" title="statement not covered" > if(typeof host=='number'){</span>
<span class="cstat-no" title="statement not covered" > callback=UDPType;</span>
<span class="cstat-no" title="statement not covered" > UDPType=port;</span>
<span class="cstat-no" title="statement not covered" > port=host;</span>
<span class="cstat-no" title="statement not covered" > host=false;</span>
}
if(typeof host=='function'){
callback=host;
UDPType=false;
host=false;
port=false;
<span class="cstat-no" title="statement not covered" > if(typeof host=='function'){</span>
<span class="cstat-no" title="statement not covered" > callback=host;</span>
<span class="cstat-no" title="statement not covered" > UDPType=false;</span>
<span class="cstat-no" title="statement not covered" > host=false;</span>
<span class="cstat-no" title="statement not covered" > port=false;</span>
}
if(!host){
ipc.log(
<span class="cstat-no" title="statement not covered" > if(!host){</span>
<span class="cstat-no" title="statement not covered" > ipc.log(</span>
'Server host not specified, so defaulting to'.notice,
'ipc.config.networkHost'.variable,
ipc.config.networkHost.data
);
host=ipc.config.networkHost;
<span class="cstat-no" title="statement not covered" > host=ipc.config.networkHost;</span>
}
<span class="missing-if-branch" title="if path not taken" >I</span>if(host.toLowerCase()=='udp4' || host.toLowerCase()=='udp6'){
<span class="cstat-no" title="statement not covered" > if(host.toLowerCase()=='udp4' || host.toLowerCase()=='udp6'){</span>
<span class="cstat-no" title="statement not covered" > callback=port;</span>
<span class="cstat-no" title="statement not covered" > UDPType=host.toLowerCase();</span>
<span class="cstat-no" title="statement not covered" > port=false;</span>
<span class="cstat-no" title="statement not covered" > host=ipc.config.networkHost;</span>
}
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(typeof port=='string'){
<span class="cstat-no" title="statement not covered" > if(typeof port=='string'){</span>
<span class="cstat-no" title="statement not covered" > callback=UDPType;</span>
<span class="cstat-no" title="statement not covered" > UDPType=port;</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(typeof port=='function'){
<span class="cstat-no" title="statement not covered" > if(typeof port=='function'){</span>
<span class="cstat-no" title="statement not covered" > callback=port;</span>
<span class="cstat-no" title="statement not covered" > UDPType=false;</span>
<span class="cstat-no" title="statement not covered" > port=false;</span>
}
if(!port){
ipc.log(
<span class="cstat-no" title="statement not covered" > if(!port){</span>
<span class="cstat-no" title="statement not covered" > ipc.log(</span>
'Server port not specified, so defaulting to'.notice,
'ipc.config.networkPort'.variable,
ipc.config.networkPort
);
port=ipc.config.networkPort;
<span class="cstat-no" title="statement not covered" > port=ipc.config.networkPort;</span>
}
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(typeof UDPType=='function'){
<span class="cstat-no" title="statement not covered" > if(typeof UDPType=='function'){</span>
<span class="cstat-no" title="statement not covered" > callback=UDPType;</span>
<span class="cstat-no" title="statement not covered" > UDPType=false;</span>
}
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(!callback){
<span class="cstat-no" title="statement not covered" > if(!callback){</span>
<span class="cstat-no" title="statement not covered" > callback=<span class="fstat-no" title="function not covered" >function(){</span>};</span>
}
&nbsp;
ipc.server=new Server(
<span class="cstat-no" title="statement not covered" > ipc.server=new Server(</span>
host,
ipc.config,
log,
port
);
&nbsp;
if(UDPType){
ipc.server[UDPType]=true;
<span class="cstat-no" title="statement not covered" > if(UDPType){</span>
<span class="cstat-no" title="statement not covered" > ipc.server[UDPType]=true;</span>
}
&nbsp;
ipc.server.on(
<span class="cstat-no" title="statement not covered" > ipc.server.on(</span>
'start',
callback
);
@ -919,38 +919,38 @@ function connect(id,path,callback){
callback(ipc);
}
&nbsp;
function connectNet(id,host,port,callback){
<span class="missing-if-branch" title="if path not taken" >I</span>if(!id){
<span class="fstat-no" title="function not covered" >function connectNet(id,host,port,callback){</span>
<span class="cstat-no" title="statement not covered" > if(!id){</span>
<span class="cstat-no" title="statement not covered" > ipc.log(</span>
'Service id required'.warn,
'Requested service connection without specifying service id. Aborting connection attempt'.notice
);
<span class="cstat-no" title="statement not covered" > return;</span>
}
<span class="missing-if-branch" title="else path not taken" >E</span>if(typeof host=='number'){
callback=port;
port=host;
host=false;
<span class="cstat-no" title="statement not covered" > if(typeof host=='number'){</span>
<span class="cstat-no" title="statement not covered" > callback=port;</span>
<span class="cstat-no" title="statement not covered" > port=host;</span>
<span class="cstat-no" title="statement not covered" > host=false;</span>
}
<span class="missing-if-branch" title="if path not taken" >I</span>if(typeof host=='function'){
<span class="cstat-no" title="statement not covered" > if(typeof host=='function'){</span>
<span class="cstat-no" title="statement not covered" > callback=host;</span>
<span class="cstat-no" title="statement not covered" > host=false;</span>
<span class="cstat-no" title="statement not covered" > port=false;</span>
}
<span class="missing-if-branch" title="else path not taken" >E</span>if(!host){
ipc.log(
<span class="cstat-no" title="statement not covered" > if(!host){</span>
<span class="cstat-no" title="statement not covered" > ipc.log(</span>
'Server host not specified, so defaulting to'.notice,
'ipc.config.networkHost'.variable,
ipc.config.networkHost.data
);
host=ipc.config.networkHost;
<span class="cstat-no" title="statement not covered" > host=ipc.config.networkHost;</span>
}
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(typeof port=='function'){
<span class="cstat-no" title="statement not covered" > if(typeof port=='function'){</span>
<span class="cstat-no" title="statement not covered" > callback=port;</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){
<span class="cstat-no" title="statement not covered" > if(!port){</span>
<span class="cstat-no" title="statement not covered" > ipc.log(</span>
'Server port not specified, so defaulting to'.notice,
'ipc.config.networkPort'.variable,
@ -959,15 +959,15 @@ function connectNet(id,host,port,callback){
<span class="cstat-no" title="statement not covered" > port=ipc.config.networkPort;</span>
}
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(typeof callback == 'string'){
<span class="cstat-no" title="statement not covered" > if(typeof callback == 'string'){</span>
<span class="cstat-no" title="statement not covered" > UDPType=callback;</span>
<span class="cstat-no" title="statement not covered" > callback=false;</span>
}
<span class="missing-if-branch" title="if path not taken" >I</span>if(!callback){
<span class="cstat-no" title="statement not covered" > if(!callback){</span>
<span class="cstat-no" title="statement not covered" > callback=<span class="fstat-no" title="function not covered" >function(){</span>};</span>
}
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(ipc.of[id]){
<span class="cstat-no" title="statement not covered" > if(ipc.of[id]){</span>
<span class="cstat-no" title="statement not covered" > if(!ipc.of[id].socket.destroyed){</span>
<span class="cstat-no" title="statement not covered" > ipc.log(</span>
'Already Connected to'.notice,
@ -980,14 +980,14 @@ function connectNet(id,host,port,callback){
<span class="cstat-no" title="statement not covered" > ipc.of[id].socket.destroy();</span>
}
&nbsp;
ipc.of[id] = new Client(ipc.config,ipc.log);
ipc.of[id].id = id;
ipc.of[id].path = host;
ipc.of[id].port = port;
<span class="cstat-no" title="statement not covered" > ipc.of[id] = new Client(ipc.config,ipc.log);</span>
<span class="cstat-no" title="statement not covered" > ipc.of[id].id = id;</span>
<span class="cstat-no" title="statement not covered" > ipc.of[id].path = host;</span>
<span class="cstat-no" title="statement not covered" > ipc.of[id].port = port;</span>
&nbsp;
ipc.of[id].connect();
<span class="cstat-no" title="statement not covered" > ipc.of[id].connect();</span>
&nbsp;
callback(ipc);
<span class="cstat-no" title="statement not covered" > callback(ipc);</span>
}
&nbsp;
module.exports=ipc;
@ -997,7 +997,7 @@ module.exports=ipc;
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sat Jan 09 2016 23:23:56 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 01:02:02 GMT-0800 (PST)
</div>
</div>
<script src="../prettify.js"></script>

View file

@ -11,16 +11,16 @@ FN:203,(anonymous_8)
FN:245,connectNet
FN:290,(anonymous_10)
FNF:10
FNH:6
FNDA:141,log
FNDA:8,disconnect
FNDA:1,serve
FNH:3
FNDA:55,log
FNDA:4,disconnect
FNDA:0,serve
FNDA:0,(anonymous_4)
FNDA:3,serveNet
FNDA:0,serveNet
FNDA:0,(anonymous_6)
FNDA:4,connect
FNDA:0,(anonymous_8)
FNDA:4,connectNet
FNDA:0,connectNet
FNDA:0,(anonymous_10)
DA:1,1
DA:10,1
@ -28,73 +28,73 @@ DA:22,1
DA:26,1
DA:44,1
DA:56,1
DA:57,141
DA:58,70
DA:61,71
DA:63,71
DA:64,229
DA:65,210
DA:68,19
DA:71,71
DA:57,55
DA:58,0
DA:61,55
DA:63,55
DA:64,177
DA:65,160
DA:68,17
DA:71,55
DA:76,1
DA:77,8
DA:77,4
DA:78,0
DA:81,8
DA:83,8
DA:84,8
DA:85,8
DA:86,8
DA:90,8
DA:81,4
DA:83,4
DA:84,4
DA:85,4
DA:86,4
DA:90,4
DA:93,1
DA:94,1
DA:95,1
DA:96,1
DA:98,1
DA:99,1
DA:104,1
DA:107,1
DA:94,0
DA:95,0
DA:96,0
DA:98,0
DA:99,0
DA:104,0
DA:107,0
DA:108,0
DA:111,1
DA:117,1
DA:111,0
DA:117,0
DA:123,1
DA:124,3
DA:125,1
DA:126,1
DA:127,1
DA:128,1
DA:130,3
DA:131,1
DA:132,1
DA:133,1
DA:134,1
DA:136,3
DA:137,2
DA:142,2
DA:144,3
DA:124,0
DA:125,0
DA:126,0
DA:127,0
DA:128,0
DA:130,0
DA:131,0
DA:132,0
DA:133,0
DA:134,0
DA:136,0
DA:137,0
DA:142,0
DA:144,0
DA:145,0
DA:146,0
DA:147,0
DA:148,0
DA:151,3
DA:151,0
DA:152,0
DA:153,0
DA:154,0
DA:156,3
DA:156,0
DA:157,0
DA:158,0
DA:159,0
DA:161,3
DA:162,1
DA:167,1
DA:170,3
DA:161,0
DA:162,0
DA:167,0
DA:170,0
DA:171,0
DA:172,0
DA:175,3
DA:175,0
DA:176,0
DA:179,3
DA:186,3
DA:187,2
DA:190,3
DA:179,0
DA:186,0
DA:187,0
DA:190,0
DA:196,1
DA:197,4
DA:198,2
@ -119,86 +119,86 @@ DA:238,4
DA:240,4
DA:242,4
DA:245,1
DA:246,4
DA:246,0
DA:247,0
DA:251,0
DA:253,4
DA:254,4
DA:255,4
DA:256,4
DA:258,4
DA:253,0
DA:254,0
DA:255,0
DA:256,0
DA:258,0
DA:259,0
DA:260,0
DA:261,0
DA:263,4
DA:264,4
DA:269,4
DA:272,4
DA:263,0
DA:264,0
DA:269,0
DA:272,0
DA:273,0
DA:274,0
DA:276,4
DA:276,0
DA:277,0
DA:282,0
DA:285,4
DA:285,0
DA:286,0
DA:287,0
DA:289,4
DA:289,0
DA:290,0
DA:293,4
DA:293,0
DA:294,0
DA:295,0
DA:300,0
DA:301,0
DA:303,0
DA:306,4
DA:307,4
DA:308,4
DA:309,4
DA:311,4
DA:313,4
DA:306,0
DA:307,0
DA:308,0
DA:309,0
DA:311,0
DA:313,0
DA:316,1
LF:135
LH:95
LH:40
BRDA:29,1,0,0
BRDA:29,1,1,1
BRDA:57,2,0,70
BRDA:57,2,1,71
BRDA:64,3,0,210
BRDA:64,3,1,19
BRDA:57,2,0,0
BRDA:57,2,1,55
BRDA:64,3,0,160
BRDA:64,3,1,17
BRDA:77,4,0,0
BRDA:77,4,1,8
BRDA:84,5,0,8
BRDA:77,4,1,4
BRDA:84,5,0,4
BRDA:84,5,1,0
BRDA:85,6,0,8
BRDA:85,6,0,4
BRDA:85,6,1,0
BRDA:94,7,0,1
BRDA:94,7,0,0
BRDA:94,7,1,0
BRDA:98,8,0,1
BRDA:98,8,0,0
BRDA:98,8,1,0
BRDA:107,9,0,0
BRDA:107,9,1,1
BRDA:124,10,0,1
BRDA:124,10,1,2
BRDA:130,11,0,1
BRDA:130,11,1,2
BRDA:136,12,0,2
BRDA:136,12,1,1
BRDA:107,9,1,0
BRDA:124,10,0,0
BRDA:124,10,1,0
BRDA:130,11,0,0
BRDA:130,11,1,0
BRDA:136,12,0,0
BRDA:136,12,1,0
BRDA:144,13,0,0
BRDA:144,13,1,3
BRDA:144,14,0,3
BRDA:144,14,1,3
BRDA:144,13,1,0
BRDA:144,14,0,0
BRDA:144,14,1,0
BRDA:151,15,0,0
BRDA:151,15,1,3
BRDA:151,15,1,0
BRDA:156,16,0,0
BRDA:156,16,1,3
BRDA:161,17,0,1
BRDA:161,17,1,2
BRDA:156,16,1,0
BRDA:161,17,0,0
BRDA:161,17,1,0
BRDA:170,18,0,0
BRDA:170,18,1,3
BRDA:170,18,1,0
BRDA:175,19,0,0
BRDA:175,19,1,3
BRDA:186,20,0,2
BRDA:186,20,1,1
BRDA:175,19,1,0
BRDA:186,20,0,0
BRDA:186,20,1,0
BRDA:197,21,0,2
BRDA:197,21,1,2
BRDA:202,22,0,0
@ -212,27 +212,27 @@ BRDA:223,25,1,4
BRDA:224,26,0,0
BRDA:224,26,1,0
BRDA:246,27,0,0
BRDA:246,27,1,4
BRDA:253,28,0,4
BRDA:246,27,1,0
BRDA:253,28,0,0
BRDA:253,28,1,0
BRDA:258,29,0,0
BRDA:258,29,1,4
BRDA:263,30,0,4
BRDA:258,29,1,0
BRDA:263,30,0,0
BRDA:263,30,1,0
BRDA:272,31,0,0
BRDA:272,31,1,4
BRDA:272,31,1,0
BRDA:276,32,0,0
BRDA:276,32,1,4
BRDA:276,32,1,0
BRDA:285,33,0,0
BRDA:285,33,1,4
BRDA:285,33,1,0
BRDA:289,34,0,0
BRDA:289,34,1,4
BRDA:289,34,1,0
BRDA:293,35,0,0
BRDA:293,35,1,4
BRDA:293,35,1,0
BRDA:294,36,0,0
BRDA:294,36,1,0
BRF:72
BRH:44
BRH:14
end_of_record
TN:
SF:/home/bmiller/git/node-ipc/lib/eventParser.js
@ -240,28 +240,28 @@ FN:3,formatData
FN:15,parseDataEvents
FNF:2
FNH:2
FNDA:14,formatData
FNDA:16,parseDataEvents
FNDA:6,formatData
FNDA:6,parseDataEvents
DA:1,1
DA:3,1
DA:4,14
DA:4,6
DA:5,0
DA:7,14
DA:7,6
DA:8,0
DA:11,14
DA:12,14
DA:11,6
DA:12,6
DA:15,1
DA:16,16
DA:17,16
DA:18,16
DA:16,6
DA:17,6
DA:18,6
DA:21,1
DA:27,1
LF:14
LH:12
BRDA:4,1,0,0
BRDA:4,1,1,14
BRDA:4,1,1,6
BRDA:7,2,0,0
BRDA:7,2,1,14
BRDA:7,2,1,6
BRF:4
BRH:2
end_of_record
@ -280,44 +280,44 @@ FN:168,(anonymous_10)
FN:186,(anonymous_11)
FNF:11
FNH:11
FNDA:8,init
FNDA:12,emit
FNDA:11,syncEmit
FNDA:14,connect
FNDA:10,(anonymous_5)
FNDA:4,(anonymous_6)
FNDA:14,(anonymous_7)
FNDA:6,(anonymous_8)
FNDA:6,(anonymous_9)
FNDA:6,(anonymous_10)
FNDA:12,(anonymous_11)
FNDA:4,init
FNDA:6,emit
FNDA:5,syncEmit
FNDA:7,connect
FNDA:5,(anonymous_5)
FNDA:2,(anonymous_6)
FNDA:6,(anonymous_7)
FNDA:3,(anonymous_8)
FNDA:3,(anonymous_9)
FNDA:3,(anonymous_10)
FNDA:6,(anonymous_11)
DA:1,1
DA:9,1
DA:10,8
DA:19,8
DA:21,8
DA:10,4
DA:19,4
DA:21,4
DA:24,1
DA:25,12
DA:27,12
DA:28,12
DA:29,12
DA:31,12
DA:25,6
DA:27,6
DA:28,6
DA:29,6
DA:31,6
DA:32,0
DA:34,12
DA:37,12
DA:34,6
DA:37,6
DA:38,1
DA:39,1
DA:42,11
DA:42,5
DA:47,1
DA:48,11
DA:49,11
DA:48,5
DA:49,5
DA:52,1
DA:54,14
DA:56,14
DA:57,14
DA:54,7
DA:56,7
DA:57,7
DA:58,0
DA:59,0
DA:62,14
DA:62,7
DA:63,7
DA:65,7
DA:67,7
@ -325,9 +325,9 @@ DA:68,0
DA:69,0
DA:70,0
DA:72,7
DA:78,7
DA:79,7
DA:80,7
DA:78,0
DA:79,0
DA:80,0
DA:87,0
DA:88,0
DA:89,0
@ -342,76 +342,76 @@ DA:100,0
DA:106,0
DA:107,0
DA:109,0
DA:115,14
DA:117,14
DA:120,10
DA:121,10
DA:126,14
DA:129,4
DA:130,4
DA:131,4
DA:135,14
DA:138,14
DA:140,14
DA:144,8
DA:145,8
DA:151,8
DA:152,8
DA:153,8
DA:155,8
DA:158,6
DA:160,6
DA:163,6
DA:164,6
DA:165,6
DA:166,6
DA:167,6
DA:169,6
DA:170,2
DA:180,6
DA:184,14
DA:187,12
DA:188,12
DA:115,7
DA:117,7
DA:120,5
DA:121,5
DA:126,7
DA:129,2
DA:130,2
DA:131,2
DA:135,7
DA:138,6
DA:140,6
DA:144,3
DA:145,3
DA:151,3
DA:152,3
DA:153,3
DA:155,3
DA:158,3
DA:160,3
DA:163,3
DA:164,3
DA:165,3
DA:166,3
DA:167,3
DA:169,3
DA:170,1
DA:180,3
DA:184,7
DA:187,6
DA:188,6
DA:189,0
DA:193,0
DA:194,0
DA:197,0
DA:198,0
DA:201,12
DA:202,12
DA:204,12
DA:206,12
DA:201,6
DA:202,6
DA:204,6
DA:206,6
DA:207,0
DA:208,0
DA:211,12
DA:213,12
DA:214,12
DA:215,12
DA:216,12
DA:217,12
DA:219,12
DA:220,12
DA:226,12
DA:211,6
DA:213,6
DA:214,6
DA:215,6
DA:216,6
DA:217,6
DA:219,6
DA:220,6
DA:226,5
DA:227,0
DA:230,12
DA:230,5
DA:235,1
LF:104
LH:76
BRDA:17,1,0,8
LH:73
BRDA:17,1,0,4
BRDA:17,1,1,0
BRDA:31,2,0,0
BRDA:31,2,1,12
BRDA:31,2,1,6
BRDA:37,3,0,1
BRDA:37,3,1,11
BRDA:37,3,1,5
BRDA:57,4,0,0
BRDA:57,4,1,14
BRDA:57,4,1,7
BRDA:62,5,0,7
BRDA:62,5,1,7
BRDA:62,5,1,0
BRDA:67,6,0,0
BRDA:67,6,1,7
BRDA:67,7,0,7
BRDA:67,7,1,0
BRDA:78,8,0,7
BRDA:78,8,0,0
BRDA:78,8,1,0
BRDA:88,9,0,0
BRDA:88,9,1,0
@ -421,26 +421,26 @@ BRDA:94,11,0,0
BRDA:94,11,1,0
BRDA:95,12,0,0
BRDA:95,12,1,0
BRDA:140,13,0,8
BRDA:140,13,1,6
BRDA:141,14,0,14
BRDA:141,14,1,6
BRDA:169,15,0,2
BRDA:169,15,1,4
BRDA:140,13,0,3
BRDA:140,13,1,3
BRDA:141,14,0,6
BRDA:141,14,1,4
BRDA:169,15,0,1
BRDA:169,15,1,2
BRDA:188,16,0,0
BRDA:188,16,1,12
BRDA:188,16,1,6
BRDA:193,17,0,0
BRDA:193,17,1,0
BRDA:201,18,0,12
BRDA:201,18,0,6
BRDA:201,18,1,0
BRDA:206,19,0,0
BRDA:206,19,1,12
BRDA:206,20,0,12
BRDA:206,20,1,12
BRDA:206,19,1,6
BRDA:206,20,0,6
BRDA:206,20,1,6
BRDA:226,21,0,0
BRDA:226,21,1,12
BRDA:226,21,1,5
BRF:42
BRH:22
BRH:20
end_of_record
TN:
SF:/home/bmiller/git/node-ipc/lib/socketServer.js
@ -465,43 +465,43 @@ FN:256,(anonymous_18)
FN:281,started
FN:334,(anonymous_20)
FNF:20
FNH:13
FNDA:2,emit
FNH:0
FNDA:0,emit
FNDA:0,broadcast
FNDA:4,init
FNDA:4,(anonymous_4)
FNDA:0,init
FNDA:0,(anonymous_4)
FNDA:0,(anonymous_5)
FNDA:4,(anonymous_6)
FNDA:4,(anonymous_7)
FNDA:4,(anonymous_8)
FNDA:2,UDPWrite
FNDA:2,(anonymous_10)
FNDA:0,(anonymous_6)
FNDA:0,(anonymous_7)
FNDA:0,(anonymous_8)
FNDA:0,UDPWrite
FNDA:0,(anonymous_10)
FNDA:0,(anonymous_11)
FNDA:2,(anonymous_12)
FNDA:0,(anonymous_12)
FNDA:0,(anonymous_13)
FNDA:4,serverCreated
FNDA:0,serverCreated
FNDA:0,(anonymous_15)
FNDA:0,(anonymous_16)
FNDA:4,(anonymous_17)
FNDA:2,(anonymous_18)
FNDA:4,started
FNDA:0,(anonymous_17)
FNDA:0,(anonymous_18)
FNDA:0,started
FNDA:0,(anonymous_20)
DA:1,1
DA:9,1
DA:10,2
DA:12,2
DA:13,2
DA:14,2
DA:16,2
DA:10,0
DA:12,0
DA:13,0
DA:14,0
DA:16,0
DA:17,0
DA:19,2
DA:22,2
DA:24,2
DA:19,0
DA:22,0
DA:24,0
DA:25,0
DA:26,0
DA:27,0
DA:30,2
DA:34,2
DA:30,0
DA:34,0
DA:37,0
DA:40,1
DA:41,0
@ -517,18 +517,18 @@ DA:54,0
DA:57,0
DA:58,0
DA:63,1
DA:64,4
DA:76,4
DA:64,0
DA:76,0
DA:82,0
DA:85,4
DA:85,0
DA:86,0
DA:87,0
DA:90,4
DA:94,4
DA:95,4
DA:97,4
DA:98,2
DA:99,2
DA:90,0
DA:94,0
DA:95,0
DA:97,0
DA:98,0
DA:99,0
DA:103,0
DA:104,0
DA:105,0
@ -546,82 +546,82 @@ DA:122,0
DA:123,0
DA:128,0
DA:134,1
DA:135,2
DA:136,2
DA:143,2
DA:135,0
DA:136,0
DA:143,0
DA:144,0
DA:145,0
DA:148,0
DA:156,2
DA:159,2
DA:160,2
DA:163,2
DA:168,4
DA:156,0
DA:159,0
DA:160,0
DA:163,0
DA:168,0
DA:171,0
DA:173,0
DA:180,4
DA:180,0
DA:182,1
DA:183,4
DA:185,4
DA:186,2
DA:188,4
DA:189,4
DA:183,0
DA:185,0
DA:186,0
DA:188,0
DA:189,0
DA:192,0
DA:199,4
DA:199,0
DA:202,0
DA:204,0
DA:208,4
DA:211,4
DA:212,4
DA:208,0
DA:211,0
DA:212,0
DA:213,0
DA:214,0
DA:219,0
DA:222,4
DA:223,4
DA:225,4
DA:227,4
DA:222,0
DA:223,0
DA:225,0
DA:227,0
DA:228,0
DA:229,0
DA:232,4
DA:234,4
DA:236,4
DA:237,4
DA:238,4
DA:240,4
DA:242,4
DA:243,4
DA:245,4
DA:254,4
DA:257,2
DA:232,0
DA:234,0
DA:236,0
DA:237,0
DA:238,0
DA:240,0
DA:242,0
DA:243,0
DA:245,0
DA:254,0
DA:257,0
DA:258,0
DA:259,2
DA:260,2
DA:262,2
DA:259,0
DA:260,0
DA:262,0
DA:263,0
DA:265,2
DA:267,2
DA:271,4
DA:276,4
DA:265,0
DA:267,0
DA:271,0
DA:276,0
DA:277,0
DA:281,1
DA:282,4
DA:285,4
DA:286,1
DA:287,1
DA:282,0
DA:285,0
DA:286,0
DA:287,0
DA:288,0
DA:289,0
DA:290,0
DA:293,1
DA:298,1
DA:301,3
DA:302,1
DA:303,1
DA:308,1
DA:311,2
DA:312,2
DA:317,2
DA:330,4
DA:332,4
DA:293,0
DA:298,0
DA:301,0
DA:302,0
DA:303,0
DA:308,0
DA:311,0
DA:312,0
DA:317,0
DA:330,0
DA:332,0
DA:335,0
DA:336,0
DA:337,0
@ -636,20 +636,20 @@ DA:350,0
DA:352,0
DA:354,0
DA:356,0
DA:361,4
DA:361,0
DA:364,1
LF:152
LH:83
LH:8
BRDA:16,1,0,0
BRDA:16,1,1,2
BRDA:22,2,0,2
BRDA:16,1,1,0
BRDA:22,2,0,0
BRDA:22,2,1,0
BRDA:22,3,0,2
BRDA:22,3,1,1
BRDA:22,3,0,0
BRDA:22,3,1,0
BRDA:24,4,0,0
BRDA:24,4,1,2
BRDA:24,5,0,2
BRDA:24,5,1,2
BRDA:24,4,1,0
BRDA:24,5,0,0
BRDA:24,5,1,0
BRDA:41,6,0,0
BRDA:41,6,1,0
BRDA:46,7,0,0
@ -659,14 +659,14 @@ BRDA:52,8,1,0
BRDA:52,9,0,0
BRDA:52,9,1,0
BRDA:85,10,0,0
BRDA:85,10,1,4
BRDA:95,11,0,3
BRDA:95,11,1,1
BRDA:97,12,0,2
BRDA:97,12,1,2
BRDA:97,13,0,4
BRDA:97,13,1,3
BRDA:98,14,0,2
BRDA:85,10,1,0
BRDA:95,11,0,0
BRDA:95,11,1,0
BRDA:97,12,0,0
BRDA:97,12,1,0
BRDA:97,13,0,0
BRDA:97,13,1,0
BRDA:98,14,0,0
BRDA:98,14,1,0
BRDA:104,15,0,0
BRDA:104,15,1,0
@ -679,43 +679,43 @@ BRDA:117,18,1,0
BRDA:118,19,0,0
BRDA:118,19,1,0
BRDA:143,20,0,0
BRDA:143,20,1,2
BRDA:157,21,0,1
BRDA:157,21,1,1
BRDA:185,22,0,2
BRDA:185,22,1,2
BRDA:211,23,0,2
BRDA:211,23,1,2
BRDA:211,24,0,4
BRDA:211,24,1,3
BRDA:143,20,1,0
BRDA:157,21,0,0
BRDA:157,21,1,0
BRDA:185,22,0,0
BRDA:185,22,1,0
BRDA:211,23,0,0
BRDA:211,23,1,0
BRDA:211,24,0,0
BRDA:211,24,1,0
BRDA:212,25,0,0
BRDA:212,25,1,4
BRDA:222,26,0,4
BRDA:212,25,1,0
BRDA:222,26,0,0
BRDA:222,26,1,0
BRDA:227,27,0,0
BRDA:227,27,1,4
BRDA:227,28,0,4
BRDA:227,28,1,4
BRDA:242,29,0,4
BRDA:227,27,1,0
BRDA:227,28,0,0
BRDA:227,28,1,0
BRDA:242,29,0,0
BRDA:242,29,1,0
BRDA:257,30,0,0
BRDA:257,30,1,2
BRDA:257,30,1,0
BRDA:262,31,0,0
BRDA:262,31,1,2
BRDA:262,31,1,0
BRDA:276,32,0,0
BRDA:276,32,1,4
BRDA:285,33,0,1
BRDA:285,33,1,3
BRDA:276,32,1,0
BRDA:285,33,0,0
BRDA:285,33,1,0
BRDA:287,34,0,0
BRDA:287,34,1,1
BRDA:301,35,0,1
BRDA:301,35,1,2
BRDA:301,36,0,3
BRDA:301,36,1,2
BRDA:287,34,1,0
BRDA:301,35,0,0
BRDA:301,35,1,0
BRDA:301,36,0,0
BRDA:301,36,1,0
BRDA:302,37,0,0
BRDA:302,37,1,1
BRDA:311,38,0,1
BRDA:311,38,1,1
BRDA:302,37,1,0
BRDA:311,38,0,0
BRDA:311,38,1,0
BRDA:339,39,0,0
BRDA:339,39,1,0
BRDA:340,40,0,0
@ -725,5 +725,5 @@ BRDA:344,41,1,0
BRDA:349,42,0,0
BRDA:349,42,1,0
BRF:84
BRH:43
BRH:0
end_of_record

View file

@ -1,9 +1,10 @@
var ipc = require('../../../../node-ipc');
'use strict';
const ipc = require('../../../../node-ipc');
ipc.config.id ='testClient';
ipc.config.retry = 600;
describe('TCP Socket verification of client',
function(){
@ -11,10 +12,9 @@ describe('TCP Socket verification of client',
'Verify retry attempts by TCP client to connect to the server as per the value set in "maxRetries" parameter.',
function(done){
var tcpRetryAttempt = 3; //variable created to count the attempt made by client to connect to the server.
let tcpRetryAttempt = 3; //variable created to count the attempt made by client to connect to the server.
ipc.config.maxRetries = 3;
ipc.config.stopRetrying = false;
ipc.config.silent= false;
ipc.connectToNet(
'tcpFakeServer',
@ -31,8 +31,7 @@ describe('TCP Socket verification of client',
expect(ipc.of.tcpFakeServer.socket.destroyed).toBe(true);
}
else if(ipc.of.tcpFakeServer.retriesRemaining < 0){
}else if(ipc.of.tcpFakeServer.retriesRemaining < 0){
expect(tcpRetryAttempt).not.toBeLessThan(0);
expect(ipc.of.tcpFakeServer.retriesRemaining).not.toBeLessThan(0);
@ -61,7 +60,6 @@ describe('TCP Socket verification of client',
done();
},2500
);
}
);
@ -69,9 +67,10 @@ describe('TCP Socket verification of client',
'Verify TCP client does not connect to the TCPserver when "stopRetrying" value is set to true.',
function(done){
var tcpRetryAttempt = 3; //variable created to count the attempt made by client to connect to the server.
let tcpRetryAttempt = 3; //variable created to count the attempt made by client to connect to the server.
ipc.config.maxRetries = 3;
ipc.config.stopRetrying = true;
ipc.config.silent=true;
ipc.connectToNet(
'tcpFakeServer',
@ -161,7 +160,7 @@ describe('TCP Socket verification of client',
function(done){
ipc.config.sync = true;
var responseCounter = 0;
let responseCounter = 0;
ipc.connectToNet(
'tcpServerSync',
@ -171,7 +170,7 @@ describe('TCP Socket verification of client',
'connect',
function(){
for(var i=0; i<5; i++){
for(let i=0; i<5; i++){
ipc.of.tcpServerSync.emit(
'message',

View file

@ -1,9 +1,10 @@
var ipc = require('../../../../node-ipc');
'use strict';
const ipc = require('../../../../node-ipc');
ipc.config.id ='testWorld';
ipc.config.retry = 1000;
describe('TCP Socket verification of server',
function(){
@ -11,7 +12,7 @@ describe('TCP Socket verification of server',
'Verify TCP server detects only 1 client out of 2 clients and receives message.',
function(done){
var clientCounter =0;
let clientCounter =0;
ipc.config.maxConnections=1;
ipc.config.networkPort=8500;
@ -45,4 +46,3 @@ describe('TCP Socket verification of server',
);
}
);

View file

@ -1,4 +1,6 @@
var ipc = require('../../../../node-ipc');
'use strict';
const ipc = require('../../../../node-ipc');
ipc.config.id ='testClient';
ipc.config.retry = 600;

View file

@ -1,65 +1,46 @@
var ipc = require('../../../../node-ipc');
'use strict';
const ipc = require('../../../../node-ipc');
ipc.config.id ='testClient';
ipc.config.retry = 600;
describe('Test Cases for Unix client: ',
function(){
function describeTests(){
it(
'Verify retry attempts by Unix client to connect to the Unix server as per the value set in "maxRetries" parameter.',
function(done){
function testIt(done){
var retryAttempt = 3; //variable created to count the attempt made by client to connect to the server.
ipc.config.maxRetries = 3;
ipc.config.silent= true;
//set to -1 because there is an error on the first fail
//before retrying
let errorCount=-1;
ipc.connectTo(
'fakeworld',
function(){
ipc.of.fakeworld.on(
'disconnect',
function(){
if(ipc.of.fakeworld.retriesRemaining == 0){
expect(retryAttempt).toBe(ipc.of.fakeworld.retriesRemaining);
expect(ipc.of.fakeworld.socket.destroyed).toBe(true);
}
else if(ipc.of.fakeworld.retriesRemaining < 0){
expect(retryAttempt).not.toBeLessThan(0);
expect(ipc.of.fakeworld.retriesRemaining).not.toBeLessThan(0);
function open(){
ipc.of.fakeworld.on(
'error',
function(err){
console.log('Error is: ', err);
ipc.disconnect('fakeworld');
}
function gotError(err){
errorCount++;
expect(ipc.of.fakeworld.retriesRemaining).toBe(
ipc.config.maxRetries-errorCount
);
}
retryAttempt--;
}
);
}
);
// Wait time is added to verify the fail case scenario of additional retry attempt by client than expected.
setTimeout(
function(){
function testDelay(){
expect(errorCount).toBe(ipc.config.maxRetries);
ipc.disconnect('fakeworld');
done();
},2500
},
ipc.config.retry*ipc.config.maxRetries +
ipc.config.retry+ipc.config.retry
);
}
);
@ -67,52 +48,36 @@ describe('Test Cases for Unix client: ',
'Verify Unix client does not connect to the unix server when "stopRetrying" value is set to true.',
function(done){
var retryAttempt = 3; //variable created to count the attempt made by client to connect to the server.
ipc.config.maxRetries = 3;
ipc.config.stopRetrying = true;
ipc.silent=true;
//set to -1 because there is an error on the first fail
//before retrying
let errorCount=-1;
ipc.connectTo(
'fakeworld',
function(){
ipc.of.fakeworld.on(
'disconnect',
function(){
if(ipc.of.fakeworld.retriesRemaining == 3){
expect(retryAttempt).toBe(ipc.of.fakeworld.retriesRemaining);
expect(ipc.of.fakeworld.socket.destroyed).toBe(true);
}
else if(ipc.of.fakeworld.retriesRemaining < 3){
expect(retryAttempt).not.toBeLessThan(3);
expect(ipc.of.fakeworld.retriesRemaining).not.toBeLessThan(3);
function open(){
ipc.of.fakeworld.on(
'error',
function(err){
console.log('Error is: ', err);
ipc.disconnect('fakeworld');
}
);
}
retryAttempt--;
function gotError(err){
expect(ipc.of.fakeworld.retriesRemaining).toBe(ipc.config.maxRetries);
errorCount++;
}
);
}
);
// Wait time is added to verify the fail case scenario of additional retry attempt by client than expected.
setTimeout(
function(){
function testDelay(){
expect(errorCount).toBe(0);
expect(ipc.of.fakeworld.retriesRemaining).toBe(ipc.config.maxRetries);
ipc.disconnect('fakeworld');
done();
},700
},
ipc.config.retry*ipc.config.maxRetries
);
}
);
@ -120,14 +85,31 @@ describe('Test Cases for Unix client: ',
it(
'Verify unix client connects to "unixServer" and receives message.',
function(done){
function testIt(done){
ipc.connectTo(
'unixServer',
'/tmp/app.unixServer',
function(){
function open(){
ipc.of.unixServer.on(
'connect',
function(){
function connected(){
ipc.of.unixServer.on(
'message',
function(data){
expect(data.id).toBe('unixServer');
expect(data.message).toBe('I am unix server!');
testDone();
}
);
ipc.of.unixServer.on(
'error',
function(err){
expect(err).toBe(false);
testDone();
}
);
ipc.of.unixServer.emit(
'message',
{
@ -135,56 +117,39 @@ describe('Test Cases for Unix client: ',
message : 'Hello from Client.'
}
);
}
);
}
);
ipc.of.unixServer.on(
'message',
function(data){
expect(data.id).toBe('unixServer');
expect(data.message).toBe('I am unix server!');
function testDone(){
ipc.disconnect('unixServer');
done();
}
);
ipc.of.unixServer.on(
'error',
function(err){
console.log('Error is: ', err); done();
ipc.disconnect('unixServer');
}
);
}
);
}
);
}
);
it(
'Verify unix client queues the requests being sent to the server synchronously until it receives the response from server.',
function(done){
function testIt(done){
ipc.config.sync = true;
var responseCounter = 0;
let responseCounter = 0;
ipc.connectTo(
'unixServerSync',
'/tmp/app.unixServerSync',
function(){
function open(){
ipc.of.unixServerSync.on(
'connect',
function(){
for(var i=0; i<5; i++){
function connected(){
for(let i=0; i<5; i++){
ipc.of.unixServerSync.emit(
'message',
{
id : ipc.config.id,
message : 'Unix Client Request '+ i
message : 'Unix Client Request '
}
);
}
@ -192,34 +157,34 @@ describe('Test Cases for Unix client: ',
ipc.of.unixServerSync.on(
'message',
function(data){
if (data.message != null){
responseCounter++;
expect(data.message).toBe('Response from unix server');
}
responseCounter++;
if (responseCounter == 5){
expect(responseCounter).toBe(5);
ipc.disconnect('unixServerSync');
done();
if (responseCounter < 5){
return;
}
expect(responseCounter).toBe(5);
testDone();
}
);
ipc.of.unixServerSync.on(
'error',
function(err){
console.log('Error is: ', err); done();
function testError(err){
expect(err).toBe(false);
testDone();
}
);
}
);
}
);
function testDone(){
ipc.disconnect('unixServerSync');
done();
}
);
}
);
}
);
}
);
// End of test cases for Unix
}
);

View file

@ -1,25 +1,28 @@
var ipc = require('../../../../node-ipc');
'use strict';
const ipc = require('../../../../node-ipc');
ipc.config.id ='testWorld';
ipc.config.retry = 1000;
ipc.config.silent=false;
describe('Test Cases for server: ',
function(){
describe(
'Test Cases for server: ',
function testDescribe(){
// Unix server verification //
it(
'Verify unix server detects only 1 client out of 2 clients and receives message.',
function(done){
function testIt(done){
var clientCounter =0;
let clientCounter =0;
ipc.config.maxConnections=1;
ipc.config.networkPort='/tmp/app.testWorld';
ipc.serve(
function(){
function serverStarted(){
ipc.server.on(
'message',
function(data,socket){
function gotMessage(data,socket){
clientCounter++;
expect(data.id).toBe('unixClient');
@ -28,20 +31,21 @@ describe('Test Cases for server: ',
}
);
const counterTimer=2000;
setTimeout(
function(){
function testTimer(){
expect(clientCounter).toBe(1);
done();
},2000
},
counterTimer
);
}
);
ipc.server.start();
}
);
}
);

View file

@ -1,3 +1,5 @@
'use strict';
const ipc=require('../../../node-ipc');
const process=require('process');
const dieAfter=30000;

View file

@ -1,3 +1,5 @@
'use strict';
const ipc=require('../../../node-ipc');
const process=require('process');
const dieAfter=30000;

View file

@ -1,3 +1,5 @@
'use strict';
const ipc=require('../../../node-ipc');
const process=require('process');
const dieAfter=30000;

View file

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

View file

@ -1,3 +1,5 @@
'use strict';
const ipc=require('../../../node-ipc');
const process=require('process');
const dieAfter=30000;

View file

@ -1,3 +1,5 @@
'use strict';
const ipc=require('../../../node-ipc');
const process=require('process');
const dieAfter=30000;

View file

@ -1,3 +1,5 @@
'use strict';
const ipc=require('../../../node-ipc');
const process=require('process');
const dieAfter=30000;

View file

@ -1,3 +1,5 @@
'use strict';
const ipc=require('../../../node-ipc');
const process=require('process');
const dieAfter=30000;

View file

@ -1,3 +1,5 @@
'use strict';
const ipc=require('../../../node-ipc');
const process=require('process');
const dieAfter=30000;
@ -17,11 +19,27 @@ ipc.config.silent=true;
ipc.serve(
function serverStarted(){
let ready=false;
let messageDelay=500;
ipc.server.on(
'message',
function gotMessage(data,socket){
if(ready){
ipc.server.emit(
socket,
'message',
{
id : ipc.config.id,
message : 'Error, client not wating for server response before sending request.'
}
);
}
ready=true;
setTimeout(
function delayedMessage(){
ready=false;
ipc.server.emit(
socket,
'message',