cleaned up unix socket client test
This commit is contained in:
parent
2d19c88b15
commit
e6d6a59c42
23 changed files with 1285 additions and 1282 deletions
File diff suppressed because one or more lines are too long
|
@ -20,28 +20,28 @@
|
||||||
</h1>
|
</h1>
|
||||||
<div class='clearfix'>
|
<div class='clearfix'>
|
||||||
<div class='fl pad1y space-right2'>
|
<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="quiet">Statements</span>
|
||||||
<span class='fraction'>266/405</span>
|
<span class='fraction'>133/405</span>
|
||||||
</div>
|
</div>
|
||||||
<div class='fl pad1y space-right2'>
|
<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="quiet">Branches</span>
|
||||||
<span class='fraction'>111/202</span>
|
<span class='fraction'>36/202</span>
|
||||||
</div>
|
</div>
|
||||||
<div class='fl pad1y space-right2'>
|
<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="quiet">Functions</span>
|
||||||
<span class='fraction'>32/43</span>
|
<span class='fraction'>16/43</span>
|
||||||
</div>
|
</div>
|
||||||
<div class='fl pad1y space-right2'>
|
<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="quiet">Lines</span>
|
||||||
<span class='fraction'>266/405</span>
|
<span class='fraction'>133/405</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class='status-line medium'></div>
|
<div class='status-line low'></div>
|
||||||
<div class="pad1">
|
<div class="pad1">
|
||||||
<table class="coverage-summary">
|
<table class="coverage-summary">
|
||||||
<thead>
|
<thead>
|
||||||
|
@ -59,29 +59,29 @@
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody><tr>
|
<tbody><tr>
|
||||||
<td class="file medium" data-value="node-ipc/"><a href="node-ipc/index.html">node-ipc/</a></td>
|
<td class="file low" 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="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="70.37" class="pct medium">70.37%</td>
|
<td data-value="29.63" class="pct low">29.63%</td>
|
||||||
<td data-value="135" class="abs medium">95/135</td>
|
<td data-value="135" class="abs low">40/135</td>
|
||||||
<td data-value="61.11" class="pct medium">61.11%</td>
|
<td data-value="19.44" class="pct low">19.44%</td>
|
||||||
<td data-value="72" class="abs medium">44/72</td>
|
<td data-value="72" class="abs low">14/72</td>
|
||||||
<td data-value="60" class="pct medium">60%</td>
|
<td data-value="30" class="pct low">30%</td>
|
||||||
<td data-value="10" class="abs medium">6/10</td>
|
<td data-value="10" class="abs low">3/10</td>
|
||||||
<td data-value="70.37" class="pct medium">70.37%</td>
|
<td data-value="29.63" class="pct low">29.63%</td>
|
||||||
<td data-value="135" class="abs medium">95/135</td>
|
<td data-value="135" class="abs low">40/135</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="file medium" data-value="node-ipc/lib/"><a href="node-ipc/lib/index.html">node-ipc/lib/</a></td>
|
<td class="file low" 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="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="63.33" class="pct medium">63.33%</td>
|
<td data-value="34.44" class="pct low">34.44%</td>
|
||||||
<td data-value="270" class="abs medium">171/270</td>
|
<td data-value="270" class="abs low">93/270</td>
|
||||||
<td data-value="51.54" class="pct medium">51.54%</td>
|
<td data-value="16.92" class="pct low">16.92%</td>
|
||||||
<td data-value="130" class="abs medium">67/130</td>
|
<td data-value="130" class="abs low">22/130</td>
|
||||||
<td data-value="78.79" class="pct medium">78.79%</td>
|
<td data-value="39.39" class="pct low">39.39%</td>
|
||||||
<td data-value="33" class="abs medium">26/33</td>
|
<td data-value="33" class="abs low">13/33</td>
|
||||||
<td data-value="63.33" class="pct medium">63.33%</td>
|
<td data-value="34.44" class="pct low">34.44%</td>
|
||||||
<td data-value="270" class="abs medium">171/270</td>
|
<td data-value="270" class="abs low">93/270</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -90,7 +90,7 @@
|
||||||
</div><!-- /wrapper -->
|
</div><!-- /wrapper -->
|
||||||
<div class='footer quiet pad2 space-top1 center small'>
|
<div class='footer quiet pad2 space-top1 center small'>
|
||||||
Code coverage
|
Code coverage
|
||||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at 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>
|
||||||
</div>
|
</div>
|
||||||
<script src="prettify.js"></script>
|
<script src="prettify.js"></script>
|
||||||
|
|
|
@ -20,28 +20,28 @@
|
||||||
</h1>
|
</h1>
|
||||||
<div class='clearfix'>
|
<div class='clearfix'>
|
||||||
<div class='fl pad1y space-right2'>
|
<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="quiet">Statements</span>
|
||||||
<span class='fraction'>95/135</span>
|
<span class='fraction'>40/135</span>
|
||||||
</div>
|
</div>
|
||||||
<div class='fl pad1y space-right2'>
|
<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="quiet">Branches</span>
|
||||||
<span class='fraction'>44/72</span>
|
<span class='fraction'>14/72</span>
|
||||||
</div>
|
</div>
|
||||||
<div class='fl pad1y space-right2'>
|
<div class='fl pad1y space-right2'>
|
||||||
<span class="strong">60% </span>
|
<span class="strong">30% </span>
|
||||||
<span class="quiet">Functions</span>
|
<span class="quiet">Functions</span>
|
||||||
<span class='fraction'>6/10</span>
|
<span class='fraction'>3/10</span>
|
||||||
</div>
|
</div>
|
||||||
<div class='fl pad1y space-right2'>
|
<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="quiet">Lines</span>
|
||||||
<span class='fraction'>95/135</span>
|
<span class='fraction'>40/135</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class='status-line medium'></div>
|
<div class='status-line low'></div>
|
||||||
<div class="pad1">
|
<div class="pad1">
|
||||||
<table class="coverage-summary">
|
<table class="coverage-summary">
|
||||||
<thead>
|
<thead>
|
||||||
|
@ -59,16 +59,16 @@
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody><tr>
|
<tbody><tr>
|
||||||
<td class="file medium" data-value="node-ipc.js"><a href="node-ipc.js.html">node-ipc.js</a></td>
|
<td class="file low" 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="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="70.37" class="pct medium">70.37%</td>
|
<td data-value="29.63" class="pct low">29.63%</td>
|
||||||
<td data-value="135" class="abs medium">95/135</td>
|
<td data-value="135" class="abs low">40/135</td>
|
||||||
<td data-value="61.11" class="pct medium">61.11%</td>
|
<td data-value="19.44" class="pct low">19.44%</td>
|
||||||
<td data-value="72" class="abs medium">44/72</td>
|
<td data-value="72" class="abs low">14/72</td>
|
||||||
<td data-value="60" class="pct medium">60%</td>
|
<td data-value="30" class="pct low">30%</td>
|
||||||
<td data-value="10" class="abs medium">6/10</td>
|
<td data-value="10" class="abs low">3/10</td>
|
||||||
<td data-value="70.37" class="pct medium">70.37%</td>
|
<td data-value="29.63" class="pct low">29.63%</td>
|
||||||
<td data-value="135" class="abs medium">95/135</td>
|
<td data-value="135" class="abs low">40/135</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -77,7 +77,7 @@
|
||||||
</div><!-- /wrapper -->
|
</div><!-- /wrapper -->
|
||||||
<div class='footer quiet pad2 space-top1 center small'>
|
<div class='footer quiet pad2 space-top1 center small'>
|
||||||
Code coverage
|
Code coverage
|
||||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at 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>
|
||||||
</div>
|
</div>
|
||||||
<script src="../prettify.js"></script>
|
<script src="../prettify.js"></script>
|
||||||
|
|
|
@ -20,14 +20,14 @@
|
||||||
</h1>
|
</h1>
|
||||||
<div class='clearfix'>
|
<div class='clearfix'>
|
||||||
<div class='fl pad1y space-right2'>
|
<div class='fl pad1y space-right2'>
|
||||||
<span class="strong">73.08% </span>
|
<span class="strong">70.19% </span>
|
||||||
<span class="quiet">Statements</span>
|
<span class="quiet">Statements</span>
|
||||||
<span class='fraction'>76/104</span>
|
<span class='fraction'>73/104</span>
|
||||||
</div>
|
</div>
|
||||||
<div class='fl pad1y space-right2'>
|
<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="quiet">Branches</span>
|
||||||
<span class='fraction'>22/42</span>
|
<span class='fraction'>20/42</span>
|
||||||
</div>
|
</div>
|
||||||
<div class='fl pad1y space-right2'>
|
<div class='fl pad1y space-right2'>
|
||||||
<span class="strong">100% </span>
|
<span class="strong">100% </span>
|
||||||
|
@ -35,9 +35,9 @@
|
||||||
<span class='fraction'>11/11</span>
|
<span class='fraction'>11/11</span>
|
||||||
</div>
|
</div>
|
||||||
<div class='fl pad1y space-right2'>
|
<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="quiet">Lines</span>
|
||||||
<span class='fraction'>76/104</span>
|
<span class='fraction'>73/104</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -287,185 +287,185 @@
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">1×</span>
|
<span class="cline-any cline-yes">1×</span>
|
||||||
<span class="cline-any cline-yes">8×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">8×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">8×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">1×</span>
|
|
||||||
<span class="cline-any cline-yes">12×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </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"> </span>
|
|
||||||
<span class="cline-any cline-yes">12×</span>
|
|
||||||
<span class="cline-any cline-no"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">12×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </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"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">11×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </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"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">1×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">14×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">14×</span>
|
|
||||||
<span class="cline-any cline-yes">14×</span>
|
|
||||||
<span class="cline-any cline-no"> </span>
|
|
||||||
<span class="cline-any cline-no"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">14×</span>
|
|
||||||
<span class="cline-any cline-yes">7×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">7×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">7×</span>
|
|
||||||
<span class="cline-any cline-no"> </span>
|
|
||||||
<span class="cline-any cline-no"> </span>
|
|
||||||
<span class="cline-any cline-no"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">7×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </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"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-no"> </span>
|
|
||||||
<span class="cline-any cline-no"> </span>
|
|
||||||
<span class="cline-any cline-no"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-no"> </span>
|
|
||||||
<span class="cline-any cline-no"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-no"> </span>
|
|
||||||
<span class="cline-any cline-no"> </span>
|
|
||||||
<span class="cline-any cline-no"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-no"> </span>
|
|
||||||
<span class="cline-any cline-no"> </span>
|
|
||||||
<span class="cline-any cline-no"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-no"> </span>
|
|
||||||
<span class="cline-any cline-no"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-no"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">14×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">14×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">10×</span>
|
|
||||||
<span class="cline-any cline-yes">10×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">14×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </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"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">14×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">14×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">14×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">8×</span>
|
|
||||||
<span class="cline-any cline-yes">8×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">8×</span>
|
<span class="cline-any cline-yes">4×</span>
|
||||||
<span class="cline-any cline-yes">8×</span>
|
|
||||||
<span class="cline-any cline-yes">8×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">8×</span>
|
<span class="cline-any cline-yes">4×</span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
<span class="cline-any cline-yes">6×</span>
|
<span class="cline-any cline-yes">6×</span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">6×</span>
|
<span class="cline-any cline-yes">6×</span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </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-yes">6×</span>
|
<span class="cline-any cline-yes">6×</span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">6×</span>
|
<span class="cline-any cline-yes">6×</span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">6×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </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"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">5×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </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"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">7×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">7×</span>
|
||||||
|
<span class="cline-any cline-yes">7×</span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">7×</span>
|
||||||
|
<span class="cline-any cline-yes">7×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">7×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">7×</span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">7×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">7×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">7×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">5×</span>
|
||||||
|
<span class="cline-any cline-yes">5×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">7×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </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-yes">2×</span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">7×</span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-yes">6×</span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">6×</span>
|
<span class="cline-any cline-yes">6×</span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </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"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">12×</span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">12×</span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </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"> </span>
|
||||||
|
<span class="cline-any cline-yes">3×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">3×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">3×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </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"> </span>
|
||||||
|
<span class="cline-any cline-yes">3×</span>
|
||||||
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">3×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">7×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">6×</span>
|
||||||
|
<span class="cline-any cline-yes">6×</span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
@ -478,36 +478,36 @@
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">12×</span>
|
<span class="cline-any cline-yes">6×</span>
|
||||||
<span class="cline-any cline-yes">12×</span>
|
<span class="cline-any cline-yes">6×</span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">12×</span>
|
<span class="cline-any cline-yes">6×</span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">12×</span>
|
<span class="cline-any cline-yes">6×</span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">12×</span>
|
<span class="cline-any cline-yes">6×</span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">12×</span>
|
<span class="cline-any cline-yes">6×</span>
|
||||||
<span class="cline-any cline-yes">12×</span>
|
<span class="cline-any cline-yes">6×</span>
|
||||||
<span class="cline-any cline-yes">12×</span>
|
<span class="cline-any cline-yes">6×</span>
|
||||||
<span class="cline-any cline-yes">12×</span>
|
<span class="cline-any cline-yes">6×</span>
|
||||||
<span class="cline-any cline-yes">12×</span>
|
<span class="cline-any cline-yes">6×</span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">12×</span>
|
<span class="cline-any cline-yes">6×</span>
|
||||||
<span class="cline-any cline-yes">12×</span>
|
<span class="cline-any cline-yes">6×</span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">12×</span>
|
<span class="cline-any cline-yes">5×</span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">12×</span>
|
<span class="cline-any cline-yes">5×</span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
@ -574,7 +574,7 @@ function connect(){
|
||||||
<span class="cstat-no" title="statement not covered" > return;</span>
|
<span class="cstat-no" title="statement not covered" > return;</span>
|
||||||
}
|
}
|
||||||
|
|
||||||
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);
|
client.log('Connecting client on Unix Socket :'.debug, client.path.variable);
|
||||||
|
|
||||||
var path = client.path;
|
var path = client.path;
|
||||||
|
@ -590,9 +590,9 @@ function connect(){
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}else{
|
}else{
|
||||||
<span class="missing-if-branch" title="else path not taken" >E</span>if(!client.config.tls){
|
<span class="cstat-no" title="statement not covered" > if(!client.config.tls){</span>
|
||||||
client.log('Connecting client via TCP to'.debug, client.path.variable ,client.port);
|
<span class="cstat-no" title="statement not covered" > client.log('Connecting client via TCP to'.debug, client.path.variable ,client.port);</span>
|
||||||
client.socket = net.connect(
|
<span class="cstat-no" title="statement not covered" > client.socket = net.connect(</span>
|
||||||
{
|
{
|
||||||
port:client.port,
|
port:client.port,
|
||||||
host:client.path
|
host:client.path
|
||||||
|
@ -754,7 +754,7 @@ module.exports=init;
|
||||||
</div><!-- /wrapper -->
|
</div><!-- /wrapper -->
|
||||||
<div class='footer quiet pad2 space-top1 center small'>
|
<div class='footer quiet pad2 space-top1 center small'>
|
||||||
Code coverage
|
Code coverage
|
||||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at 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>
|
||||||
</div>
|
</div>
|
||||||
<script src="../../prettify.js"></script>
|
<script src="../../prettify.js"></script>
|
||||||
|
|
|
@ -73,21 +73,21 @@
|
||||||
28</td><td class="line-coverage quiet"><span class="cline-any cline-yes">1×</span>
|
28</td><td class="line-coverage quiet"><span class="cline-any cline-yes">1×</span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">1×</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"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">14×</span>
|
<span class="cline-any cline-yes">6×</span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">14×</span>
|
<span class="cline-any cline-yes">6×</span>
|
||||||
<span class="cline-any cline-yes">14×</span>
|
<span class="cline-any cline-yes">6×</span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">1×</span>
|
<span class="cline-any cline-yes">1×</span>
|
||||||
<span class="cline-any cline-yes">16×</span>
|
<span class="cline-any cline-yes">6×</span>
|
||||||
<span class="cline-any cline-yes">16×</span>
|
<span class="cline-any cline-yes">6×</span>
|
||||||
<span class="cline-any cline-yes">16×</span>
|
<span class="cline-any cline-yes">6×</span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">1×</span>
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
@ -130,7 +130,7 @@ module.exports=parser;
|
||||||
</div><!-- /wrapper -->
|
</div><!-- /wrapper -->
|
||||||
<div class='footer quiet pad2 space-top1 center small'>
|
<div class='footer quiet pad2 space-top1 center small'>
|
||||||
Code coverage
|
Code coverage
|
||||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at 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>
|
||||||
</div>
|
</div>
|
||||||
<script src="../../prettify.js"></script>
|
<script src="../../prettify.js"></script>
|
||||||
|
|
|
@ -20,28 +20,28 @@
|
||||||
</h1>
|
</h1>
|
||||||
<div class='clearfix'>
|
<div class='clearfix'>
|
||||||
<div class='fl pad1y space-right2'>
|
<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="quiet">Statements</span>
|
||||||
<span class='fraction'>171/270</span>
|
<span class='fraction'>93/270</span>
|
||||||
</div>
|
</div>
|
||||||
<div class='fl pad1y space-right2'>
|
<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="quiet">Branches</span>
|
||||||
<span class='fraction'>67/130</span>
|
<span class='fraction'>22/130</span>
|
||||||
</div>
|
</div>
|
||||||
<div class='fl pad1y space-right2'>
|
<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="quiet">Functions</span>
|
||||||
<span class='fraction'>26/33</span>
|
<span class='fraction'>13/33</span>
|
||||||
</div>
|
</div>
|
||||||
<div class='fl pad1y space-right2'>
|
<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="quiet">Lines</span>
|
||||||
<span class='fraction'>171/270</span>
|
<span class='fraction'>93/270</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class='status-line medium'></div>
|
<div class='status-line low'></div>
|
||||||
<div class="pad1">
|
<div class="pad1">
|
||||||
<table class="coverage-summary">
|
<table class="coverage-summary">
|
||||||
<thead>
|
<thead>
|
||||||
|
@ -60,15 +60,15 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody><tr>
|
<tbody><tr>
|
||||||
<td class="file medium" data-value="client.js"><a href="client.js.html">client.js</a></td>
|
<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="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="73.08" class="pct medium">73.08%</td>
|
<td data-value="70.19" class="pct medium">70.19%</td>
|
||||||
<td data-value="104" class="abs medium">76/104</td>
|
<td data-value="104" class="abs medium">73/104</td>
|
||||||
<td data-value="52.38" class="pct medium">52.38%</td>
|
<td data-value="47.62" class="pct low">47.62%</td>
|
||||||
<td data-value="42" class="abs medium">22/42</td>
|
<td data-value="42" class="abs low">20/42</td>
|
||||||
<td data-value="100" class="pct high">100%</td>
|
<td data-value="100" class="pct high">100%</td>
|
||||||
<td data-value="11" class="abs high">11/11</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="70.19" class="pct medium">70.19%</td>
|
||||||
<td data-value="104" class="abs medium">76/104</td>
|
<td data-value="104" class="abs medium">73/104</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -85,16 +85,16 @@
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="file medium" data-value="socketServer.js"><a href="socketServer.js.html">socketServer.js</a></td>
|
<td class="file low" 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="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="54.61" class="pct medium">54.61%</td>
|
<td data-value="5.26" class="pct low">5.26%</td>
|
||||||
<td data-value="152" class="abs medium">83/152</td>
|
<td data-value="152" class="abs low">8/152</td>
|
||||||
<td data-value="51.19" class="pct medium">51.19%</td>
|
<td data-value="0" class="pct low">0%</td>
|
||||||
<td data-value="84" class="abs medium">43/84</td>
|
<td data-value="84" class="abs low">0/84</td>
|
||||||
<td data-value="65" class="pct medium">65%</td>
|
<td data-value="0" class="pct low">0%</td>
|
||||||
<td data-value="20" class="abs medium">13/20</td>
|
<td data-value="20" class="abs low">0/20</td>
|
||||||
<td data-value="54.61" class="pct medium">54.61%</td>
|
<td data-value="5.26" class="pct low">5.26%</td>
|
||||||
<td data-value="152" class="abs medium">83/152</td>
|
<td data-value="152" class="abs low">8/152</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -103,7 +103,7 @@
|
||||||
</div><!-- /wrapper -->
|
</div><!-- /wrapper -->
|
||||||
<div class='footer quiet pad2 space-top1 center small'>
|
<div class='footer quiet pad2 space-top1 center small'>
|
||||||
Code coverage
|
Code coverage
|
||||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at 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>
|
||||||
</div>
|
</div>
|
||||||
<script src="../../prettify.js"></script>
|
<script src="../../prettify.js"></script>
|
||||||
|
|
|
@ -20,28 +20,28 @@
|
||||||
</h1>
|
</h1>
|
||||||
<div class='clearfix'>
|
<div class='clearfix'>
|
||||||
<div class='fl pad1y space-right2'>
|
<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="quiet">Statements</span>
|
||||||
<span class='fraction'>83/152</span>
|
<span class='fraction'>8/152</span>
|
||||||
</div>
|
</div>
|
||||||
<div class='fl pad1y space-right2'>
|
<div class='fl pad1y space-right2'>
|
||||||
<span class="strong">51.19% </span>
|
<span class="strong">0% </span>
|
||||||
<span class="quiet">Branches</span>
|
<span class="quiet">Branches</span>
|
||||||
<span class='fraction'>43/84</span>
|
<span class='fraction'>0/84</span>
|
||||||
</div>
|
</div>
|
||||||
<div class='fl pad1y space-right2'>
|
<div class='fl pad1y space-right2'>
|
||||||
<span class="strong">65% </span>
|
<span class="strong">0% </span>
|
||||||
<span class="quiet">Functions</span>
|
<span class="quiet">Functions</span>
|
||||||
<span class='fraction'>13/20</span>
|
<span class='fraction'>0/20</span>
|
||||||
</div>
|
</div>
|
||||||
<div class='fl pad1y space-right2'>
|
<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="quiet">Lines</span>
|
||||||
<span class='fraction'>83/152</span>
|
<span class='fraction'>8/152</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class='status-line medium'></div>
|
<div class='status-line low'></div>
|
||||||
<pre><table class="coverage">
|
<pre><table class="coverage">
|
||||||
<tr><td class="line-count quiet">1
|
<tr><td class="line-count quiet">1
|
||||||
2
|
2
|
||||||
|
@ -416,31 +416,31 @@
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">1×</span>
|
<span class="cline-any cline-yes">1×</span>
|
||||||
<span class="cline-any cline-yes">2×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </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"> </span>
|
|
||||||
<span class="cline-any cline-yes">2×</span>
|
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">2×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">2×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">2×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">2×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">2×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
|
@ -470,7 +470,7 @@
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">1×</span>
|
<span class="cline-any cline-yes">1×</span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
@ -482,30 +482,30 @@
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-yes">2×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-yes">2×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
@ -541,15 +541,15 @@
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">1×</span>
|
<span class="cline-any cline-yes">1×</span>
|
||||||
<span class="cline-any cline-yes">2×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-yes">2×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">2×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
@ -562,19 +562,19 @@
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">2×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">2×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-yes">2×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">2×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
|
@ -586,16 +586,16 @@
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">1×</span>
|
<span class="cline-any cline-yes">1×</span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-yes">2×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
|
@ -605,7 +605,7 @@
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
|
@ -614,11 +614,11 @@
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
@ -628,102 +628,102 @@
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">4×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </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"> </span>
|
|
||||||
<span class="cline-any cline-yes">4×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">4×</span>
|
|
||||||
<span class="cline-any cline-yes">4×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">4×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">4×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">2×</span>
|
|
||||||
<span class="cline-any cline-no"> </span>
|
|
||||||
<span class="cline-any cline-yes">2×</span>
|
|
||||||
<span class="cline-any cline-yes">2×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">2×</span>
|
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">2×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">2×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">1×</span>
|
<span class="cline-any cline-yes">1×</span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-yes">1×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-yes">1×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">1×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">1×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">3×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-yes">1×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-yes">1×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">1×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">2×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-yes">2×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">2×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
@ -736,9 +736,9 @@
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
|
@ -767,7 +767,7 @@
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">1×</span>
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
@ -779,32 +779,32 @@
|
||||||
pubsub = require('event-pubsub'),
|
pubsub = require('event-pubsub'),
|
||||||
Message = require('js-message');
|
Message = require('js-message');
|
||||||
|
|
||||||
function emit(socket, type, data){
|
<span class="fstat-no" title="function not covered" >function emit(socket, type, data){</span>
|
||||||
this.log('dispatching event to socket'.debug, ' : ', type.data, data);
|
<span class="cstat-no" title="statement not covered" > this.log('dispatching event to socket'.debug, ' : ', type.data, data);</span>
|
||||||
|
|
||||||
var message=new Message;
|
<span class="cstat-no" title="statement not covered" > var message=new Message;</span>
|
||||||
message.type=type;
|
<span class="cstat-no" title="statement not covered" > message.type=type;</span>
|
||||||
message.data=data;
|
<span class="cstat-no" title="statement not covered" > message.data=data;</span>
|
||||||
|
|
||||||
<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>
|
<span class="cstat-no" title="statement not covered" > message=new Buffer(type,this.encoding);</span>
|
||||||
}else{
|
}else{
|
||||||
message=eventParser.format(message);
|
<span class="cstat-no" title="statement not covered" > message=eventParser.format(message);</span>
|
||||||
}
|
}
|
||||||
|
|
||||||
<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>
|
||||||
|
|
||||||
<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.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" > this.broadcast(type,data);</span>
|
||||||
<span class="cstat-no" title="statement not covered" > return;</span>
|
<span class="cstat-no" title="statement not covered" > return;</span>
|
||||||
}
|
}
|
||||||
|
|
||||||
this.server.write(
|
<span class="cstat-no" title="statement not covered" > this.server.write(</span>
|
||||||
message,
|
message,
|
||||||
socket
|
socket
|
||||||
);
|
);
|
||||||
return;
|
<span class="cstat-no" title="statement not covered" > return;</span>
|
||||||
};
|
};
|
||||||
|
|
||||||
<span class="cstat-no" title="statement not covered" > socket.write(message);</span>
|
<span class="cstat-no" title="statement not covered" > socket.write(message);</span>
|
||||||
|
@ -833,8 +833,8 @@ function emit(socket, type, data){
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
function init(path,config,log,port){
|
<span class="fstat-no" title="function not covered" >function init(path,config,log,port){</span>
|
||||||
var server={
|
<span class="cstat-no" title="statement not covered" > var server={</span>
|
||||||
config : config,
|
config : config,
|
||||||
path : path,
|
path : path,
|
||||||
port : port,
|
port : port,
|
||||||
|
@ -845,8 +845,8 @@ function init(path,config,log,port){
|
||||||
sockets : [],
|
sockets : [],
|
||||||
emit : emit,
|
emit : emit,
|
||||||
broadcast : broadcast,
|
broadcast : broadcast,
|
||||||
onStart : function(socket){
|
onStart : <span class="fstat-no" title="function not covered" >function(socket){</span>
|
||||||
this.trigger(
|
<span class="cstat-no" title="statement not covered" > this.trigger(</span>
|
||||||
'start',
|
'start',
|
||||||
socket
|
socket
|
||||||
);
|
);
|
||||||
|
@ -854,22 +854,22 @@ function init(path,config,log,port){
|
||||||
stop:<span class="fstat-no" title="function not covered" >function(){</span>
|
stop:<span class="fstat-no" title="function not covered" >function(){</span>
|
||||||
<span class="cstat-no" title="statement not covered" > server.server.close();</span>
|
<span class="cstat-no" title="statement not covered" > server.server.close();</span>
|
||||||
},
|
},
|
||||||
start : function(){
|
start : <span class="fstat-no" title="function not covered" >function(){</span>
|
||||||
<span class="missing-if-branch" title="if path not taken" >I</span>if(!this.path){
|
<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" > server.log('Socket Server Path not specified, refusing to start'.warn);</span>
|
||||||
<span class="cstat-no" title="statement not covered" > return;</span>
|
<span class="cstat-no" title="statement not covered" > return;</span>
|
||||||
}
|
}
|
||||||
|
|
||||||
fs.unlink(
|
<span class="cstat-no" title="statement not covered" > fs.unlink(</span>
|
||||||
this.path,
|
this.path,
|
||||||
(
|
(
|
||||||
function(server){
|
<span class="fstat-no" title="function not covered" > function(server){</span>
|
||||||
return function () {
|
<span class="cstat-no" title="statement not covered" > return <span class="fstat-no" title="function not covered" >function () {</span></span>
|
||||||
server.log('starting server on '.debug,server.path.variable,((server.port)?':'+server.port:'').variable);
|
<span class="cstat-no" title="statement not covered" > server.log('starting server on '.debug,server.path.variable,((server.port)?':'+server.port:'').variable);</span>
|
||||||
|
|
||||||
if(!server.udp4 && !server.udp6){
|
<span class="cstat-no" title="statement not covered" > if(!server.udp4 && !server.udp6){</span>
|
||||||
<span class="missing-if-branch" title="else path not taken" >E</span>if(!server.config.tls){
|
<span class="cstat-no" title="statement not covered" > if(!server.config.tls){</span>
|
||||||
server.server=net.createServer(
|
<span class="cstat-no" title="statement not covered" > server.server=net.createServer(</span>
|
||||||
serverCreated
|
serverCreated
|
||||||
);
|
);
|
||||||
}else{
|
}else{
|
||||||
|
@ -904,16 +904,16 @@ function init(path,config,log,port){
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
function UDPWrite(message,socket){
|
<span class="fstat-no" title="function not covered" > function UDPWrite(message,socket){</span>
|
||||||
var data=new Buffer(message, server.config.encoding);
|
<span class="cstat-no" title="statement not covered" > var data=new Buffer(message, server.config.encoding);</span>
|
||||||
server.server.send(
|
<span class="cstat-no" title="statement not covered" > server.server.send(</span>
|
||||||
data,
|
data,
|
||||||
0,
|
0,
|
||||||
data.length,
|
data.length,
|
||||||
socket.port,
|
socket.port,
|
||||||
socket.address,
|
socket.address,
|
||||||
function(err, bytes) {
|
<span class="fstat-no" title="function not covered" > function(err, bytes) {</span>
|
||||||
<span class="missing-if-branch" title="if path not taken" >I</span>if(err){
|
<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.log('error writing data to socket'.warn,err);</span>
|
||||||
<span class="cstat-no" title="statement not covered" > server.trigger(</span>
|
<span class="cstat-no" title="statement not covered" > server.trigger(</span>
|
||||||
'error',
|
'error',
|
||||||
|
@ -926,19 +926,19 @@ function init(path,config,log,port){
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
server.server=dgram.createSocket(
|
<span class="cstat-no" title="statement not covered" > server.server=dgram.createSocket(</span>
|
||||||
((server.udp4)? 'udp4':'udp6')
|
((server.udp4)? 'udp4':'udp6')
|
||||||
);
|
);
|
||||||
server.server.write=UDPWrite;
|
<span class="cstat-no" title="statement not covered" > server.server.write=UDPWrite;</span>
|
||||||
server.server.on(
|
<span class="cstat-no" title="statement not covered" > server.server.on(</span>
|
||||||
'listening',
|
'listening',
|
||||||
function () {
|
<span class="fstat-no" title="function not covered" > function () {</span>
|
||||||
serverCreated(server.server)
|
<span class="cstat-no" title="statement not covered" > serverCreated(server.server)</span>
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
server.server.on(
|
<span class="cstat-no" title="statement not covered" > server.server.on(</span>
|
||||||
'error',
|
'error',
|
||||||
<span class="fstat-no" title="function not covered" > function(err){</span>
|
<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>
|
<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){
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
server.server.maxConnections=server.config.maxConnections;
|
<span class="cstat-no" title="statement not covered" > server.server.maxConnections=server.config.maxConnections;</span>
|
||||||
|
|
||||||
function serverCreated(socket) {
|
<span class="fstat-no" title="function not covered" > function serverCreated(socket) {</span>
|
||||||
server.sockets.push(socket);
|
<span class="cstat-no" title="statement not covered" > server.sockets.push(socket);</span>
|
||||||
|
|
||||||
if(socket.setEncoding)
|
<span class="cstat-no" title="statement not covered" > if(socket.setEncoding)</span>
|
||||||
socket.setEncoding(server.config.encoding);
|
<span class="cstat-no" title="statement not covered" > socket.setEncoding(server.config.encoding);</span>
|
||||||
|
|
||||||
server.log('## socket connection to server detected ##'.rainbow);
|
<span class="cstat-no" title="statement not covered" > server.log('## socket connection to server detected ##'.rainbow);</span>
|
||||||
socket.on(
|
<span class="cstat-no" title="statement not covered" > socket.on(</span>
|
||||||
'close',
|
'close',
|
||||||
<span class="fstat-no" title="function not covered" > function(socket){</span>
|
<span class="fstat-no" title="function not covered" > function(socket){</span>
|
||||||
<span class="cstat-no" title="statement not covered" > server.trigger(</span>
|
<span class="cstat-no" title="statement not covered" > server.trigger(</span>
|
||||||
|
@ -969,7 +969,7 @@ function init(path,config,log,port){
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
socket.on(
|
<span class="cstat-no" title="statement not covered" > socket.on(</span>
|
||||||
'error',
|
'error',
|
||||||
<span class="fstat-no" title="function not covered" > function(err){</span>
|
<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>
|
<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){
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
socket.on(
|
<span class="cstat-no" title="statement not covered" > socket.on(</span>
|
||||||
'data',
|
'data',
|
||||||
function(data,UDPSocket){
|
<span class="fstat-no" title="function not covered" > function(data,UDPSocket){</span>
|
||||||
var sock=((server.udp4 || server.udp6)? UDPSocket : socket);
|
<span class="cstat-no" title="statement not covered" > var sock=((server.udp4 || server.udp6)? UDPSocket : socket);</span>
|
||||||
<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" > data=new Buffer(data,this.encoding);</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>
|
<span class="cstat-no" title="statement not covered" > server.trigger(</span>
|
||||||
'data',
|
'data',
|
||||||
|
@ -992,30 +992,30 @@ function init(path,config,log,port){
|
||||||
<span class="cstat-no" title="statement not covered" > return;</span>
|
<span class="cstat-no" title="statement not covered" > return;</span>
|
||||||
}
|
}
|
||||||
|
|
||||||
<span class="missing-if-branch" title="else path not taken" >E</span>if(!this.ipcBuffer)
|
<span class="cstat-no" title="statement not covered" > if(!this.ipcBuffer)</span>
|
||||||
this.ipcBuffer='';
|
<span class="cstat-no" title="statement not covered" > this.ipcBuffer='';</span>
|
||||||
|
|
||||||
data=(this.ipcBuffer+=data);
|
<span class="cstat-no" title="statement not covered" > data=(this.ipcBuffer+=data);</span>
|
||||||
|
|
||||||
<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" > 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>
|
<span class="cstat-no" title="statement not covered" > return;</span>
|
||||||
}
|
}
|
||||||
|
|
||||||
this.ipcBuffer='';
|
<span class="cstat-no" title="statement not covered" > this.ipcBuffer='';</span>
|
||||||
|
|
||||||
data=eventParser.parse(data);
|
<span class="cstat-no" title="statement not covered" > data=eventParser.parse(data);</span>
|
||||||
|
|
||||||
while(data.length>0){
|
<span class="cstat-no" title="statement not covered" > while(data.length>0){</span>
|
||||||
var message=new Message;
|
<span class="cstat-no" title="statement not covered" > var message=new Message;</span>
|
||||||
message.load(data.shift());
|
<span class="cstat-no" title="statement not covered" > message.load(data.shift());</span>
|
||||||
|
|
||||||
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>
|
||||||
|
|
||||||
<span class="missing-if-branch" title="else path not taken" >E</span>if(message.data.id)
|
<span class="cstat-no" title="statement not covered" > if(message.data.id)</span>
|
||||||
sock.id=message.data.id;
|
<span class="cstat-no" title="statement not covered" > sock.id=message.data.id;</span>
|
||||||
|
|
||||||
server.trigger(
|
<span class="cstat-no" title="statement not covered" > server.trigger(</span>
|
||||||
message.type,
|
message.type,
|
||||||
message.data,
|
message.data,
|
||||||
sock
|
sock
|
||||||
|
@ -1024,70 +1024,70 @@ function init(path,config,log,port){
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
socket.on(
|
<span class="cstat-no" title="statement not covered" > socket.on(</span>
|
||||||
'message',
|
'message',
|
||||||
function(msg,rinfo) {
|
<span class="fstat-no" title="function not covered" > function(msg,rinfo) {</span>
|
||||||
<span class="missing-if-branch" title="if path not taken" >I</span>if (!rinfo)
|
<span class="cstat-no" title="statement not covered" > if (!rinfo)</span>
|
||||||
<span class="cstat-no" title="statement not covered" > return;</span>
|
<span class="cstat-no" title="statement not covered" > return;</span>
|
||||||
server.log('Received UDP message from '.debug, rinfo.address.variable, rinfo.port);
|
<span class="cstat-no" title="statement not covered" > server.log('Received UDP message from '.debug, rinfo.address.variable, rinfo.port);</span>
|
||||||
var data;
|
<span class="cstat-no" title="statement not covered" > var data;</span>
|
||||||
|
|
||||||
<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>
|
<span class="cstat-no" title="statement not covered" > data=new Buffer(msg,this.encoding);</span>
|
||||||
}else{
|
}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>
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
server.trigger(
|
<span class="cstat-no" title="statement not covered" > server.trigger(</span>
|
||||||
'connect',
|
'connect',
|
||||||
socket
|
socket
|
||||||
);
|
);
|
||||||
|
|
||||||
<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>
|
<span class="cstat-no" title="statement not covered" > return;</span>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function started(socket){
|
<span class="fstat-no" title="function not covered" > function started(socket){</span>
|
||||||
server.onStart(socket)
|
<span class="cstat-no" title="statement not covered" > server.onStart(socket)</span>
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!port){
|
<span class="cstat-no" title="statement not covered" > if(!port){</span>
|
||||||
server.log('starting server as'.debug, 'Unix || Windows Socket'.variable);
|
<span class="cstat-no" title="statement not covered" > server.log('starting server as'.debug, 'Unix || Windows Socket'.variable);</span>
|
||||||
<span class="missing-if-branch" title="if path not taken" >I</span>if (process.platform ==='win32'){
|
<span class="cstat-no" title="statement not covered" > 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(/^\//, '');</span>
|
||||||
<span class="cstat-no" title="statement not covered" > server.path = server.path.replace(/\//g, '-');</span>
|
<span class="cstat-no" title="statement not covered" > server.path = server.path.replace(/\//g, '-');</span>
|
||||||
<span class="cstat-no" title="statement not covered" > server.path= '\\\\.\\pipe\\'+server.path;</span>
|
<span class="cstat-no" title="statement not covered" > server.path= '\\\\.\\pipe\\'+server.path;</span>
|
||||||
}
|
}
|
||||||
|
|
||||||
server.server.listen(
|
<span class="cstat-no" title="statement not covered" > server.server.listen(</span>
|
||||||
server.path,
|
server.path,
|
||||||
started
|
started
|
||||||
);
|
);
|
||||||
|
|
||||||
return;
|
<span class="cstat-no" title="statement not covered" > return;</span>
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!server.udp4 && !server.udp6){
|
<span class="cstat-no" title="statement not covered" > if(!server.udp4 && !server.udp6){</span>
|
||||||
server.log('starting server as'.debug, (server.config.tls?<span class="branch-0 cbranch-no" title="branch not covered" >'TLS':</span>'TCP').variable);
|
<span class="cstat-no" title="statement not covered" > server.log('starting server as'.debug, (server.config.tls?'TLS':'TCP').variable);</span>
|
||||||
server.server.listen(
|
<span class="cstat-no" title="statement not covered" > server.server.listen(</span>
|
||||||
server.port,
|
server.port,
|
||||||
server.path,
|
server.path,
|
||||||
started
|
started
|
||||||
);
|
);
|
||||||
return;
|
<span class="cstat-no" title="statement not covered" > return;</span>
|
||||||
}
|
}
|
||||||
|
|
||||||
server.log('starting server as'.debug,((server.udp4)? 'udp4':'udp6').variable);
|
<span class="cstat-no" title="statement not covered" > server.log('starting server as'.debug,((server.udp4)? 'udp4':'udp6').variable);</span>
|
||||||
server.server.bind(
|
<span class="cstat-no" title="statement not covered" > server.server.bind(</span>
|
||||||
server.port,
|
server.port,
|
||||||
server.path
|
server.path
|
||||||
);
|
);
|
||||||
|
|
||||||
started(
|
<span class="cstat-no" title="statement not covered" > started(</span>
|
||||||
{
|
{
|
||||||
address : server.path,
|
address : server.path,
|
||||||
port : server.port
|
port : server.port
|
||||||
|
@ -1100,9 +1100,9 @@ function init(path,config,log,port){
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
new pubsub(server);
|
<span class="cstat-no" title="statement not covered" > new pubsub(server);</span>
|
||||||
|
|
||||||
server.on(
|
<span class="cstat-no" title="statement not covered" > server.on(</span>
|
||||||
'close',
|
'close',
|
||||||
<span class="fstat-no" title="function not covered" > function(){</span>
|
<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<count; i++){</span>
|
<span class="cstat-no" title="statement not covered" > for(var i=0, count=server.sockets.length; i<count; i++){</span>
|
||||||
|
@ -1131,7 +1131,7 @@ function init(path,config,log,port){
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
return server;
|
<span class="cstat-no" title="statement not covered" > return server;</span>
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports=init;
|
module.exports=init;
|
||||||
|
@ -1141,7 +1141,7 @@ module.exports=init;
|
||||||
</div><!-- /wrapper -->
|
</div><!-- /wrapper -->
|
||||||
<div class='footer quiet pad2 space-top1 center small'>
|
<div class='footer quiet pad2 space-top1 center small'>
|
||||||
Code coverage
|
Code coverage
|
||||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at 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>
|
||||||
</div>
|
</div>
|
||||||
<script src="../../prettify.js"></script>
|
<script src="../../prettify.js"></script>
|
||||||
|
|
|
@ -20,28 +20,28 @@
|
||||||
</h1>
|
</h1>
|
||||||
<div class='clearfix'>
|
<div class='clearfix'>
|
||||||
<div class='fl pad1y space-right2'>
|
<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="quiet">Statements</span>
|
||||||
<span class='fraction'>95/135</span>
|
<span class='fraction'>40/135</span>
|
||||||
</div>
|
</div>
|
||||||
<div class='fl pad1y space-right2'>
|
<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="quiet">Branches</span>
|
||||||
<span class='fraction'>44/72</span>
|
<span class='fraction'>14/72</span>
|
||||||
</div>
|
</div>
|
||||||
<div class='fl pad1y space-right2'>
|
<div class='fl pad1y space-right2'>
|
||||||
<span class="strong">60% </span>
|
<span class="strong">30% </span>
|
||||||
<span class="quiet">Functions</span>
|
<span class="quiet">Functions</span>
|
||||||
<span class='fraction'>6/10</span>
|
<span class='fraction'>3/10</span>
|
||||||
</div>
|
</div>
|
||||||
<div class='fl pad1y space-right2'>
|
<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="quiet">Lines</span>
|
||||||
<span class='fraction'>95/135</span>
|
<span class='fraction'>40/135</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class='status-line medium'></div>
|
<div class='status-line low'></div>
|
||||||
<pre><table class="coverage">
|
<pre><table class="coverage">
|
||||||
<tr><td class="line-count quiet">1
|
<tr><td class="line-count quiet">1
|
||||||
2
|
2
|
||||||
|
@ -415,140 +415,140 @@
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">1×</span>
|
<span class="cline-any cline-yes">1×</span>
|
||||||
<span class="cline-any cline-yes">141×</span>
|
<span class="cline-any cline-yes">55×</span>
|
||||||
<span class="cline-any cline-yes">70×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">71×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </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"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">19×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">71×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">1×</span>
|
|
||||||
<span class="cline-any cline-yes">8×</span>
|
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">8×</span>
|
<span class="cline-any cline-yes">55×</span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">8×</span>
|
<span class="cline-any cline-yes">55×</span>
|
||||||
<span class="cline-any cline-yes">8×</span>
|
<span class="cline-any cline-yes">177×</span>
|
||||||
<span class="cline-any cline-yes">8×</span>
|
<span class="cline-any cline-yes">160×</span>
|
||||||
<span class="cline-any cline-yes">8×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-yes">17×</span>
|
||||||
<span class="cline-any cline-yes">8×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">1×</span>
|
<span class="cline-any cline-yes">55×</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"> </span>
|
|
||||||
<span class="cline-any cline-yes">1×</span>
|
|
||||||
<span class="cline-any cline-yes">1×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">1×</span>
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-yes">4×</span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">4×</span>
|
||||||
|
<span class="cline-any cline-neutral"> </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"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-yes">4×</span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">1×</span>
|
<span class="cline-any cline-yes">1×</span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">1×</span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">1×</span>
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">1×</span>
|
<span class="cline-any cline-no"> </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"> </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"> </span>
|
|
||||||
<span class="cline-any cline-yes">3×</span>
|
|
||||||
<span class="cline-any cline-yes">2×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">2×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">3×</span>
|
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">3×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">3×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">3×</span>
|
|
||||||
<span class="cline-any cline-yes">1×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">1×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">3×</span>
|
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">3×</span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">3×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">3×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-yes">2×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">3×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
@ -604,37 +604,24 @@
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">1×</span>
|
<span class="cline-any cline-yes">1×</span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </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"> </span>
|
|
||||||
<span class="cline-any cline-yes">4×</span>
|
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">4×</span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-neutral"> </span>
|
|
||||||
<span class="cline-any cline-yes">4×</span>
|
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
@ -643,15 +630,28 @@
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
|
@ -664,14 +664,14 @@
|
||||||
<span class="cline-any cline-no"> </span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">4×</span>
|
<span class="cline-any cline-no"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-neutral"> </span>
|
<span class="cline-any cline-neutral"> </span>
|
||||||
<span class="cline-any cline-yes">1×</span>
|
<span class="cline-any cline-yes">1×</span>
|
||||||
|
@ -731,8 +731,8 @@ var ipc = {
|
||||||
}
|
}
|
||||||
|
|
||||||
function log(){
|
function log(){
|
||||||
if(ipc.config.silent){
|
<span class="missing-if-branch" title="if path not taken" >I</span>if(ipc.config.silent){
|
||||||
return;
|
<span class="cstat-no" title="statement not covered" > return;</span>
|
||||||
}
|
}
|
||||||
|
|
||||||
var args=Array.prototype.slice.call(arguments);
|
var args=Array.prototype.slice.call(arguments);
|
||||||
|
@ -767,104 +767,104 @@ function disconnect(id){
|
||||||
delete ipc.of[id];
|
delete ipc.of[id];
|
||||||
};
|
};
|
||||||
|
|
||||||
function serve(path,callback){
|
<span class="fstat-no" title="function not covered" >function serve(path,callback){</span>
|
||||||
<span class="missing-if-branch" title="else path not taken" >E</span>if(typeof path=='function'){
|
<span class="cstat-no" title="statement not covered" > if(typeof path=='function'){</span>
|
||||||
callback=path;
|
<span class="cstat-no" title="statement not covered" > callback=path;</span>
|
||||||
path=false;
|
<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){
|
<span class="cstat-no" title="statement not covered" > if(!path){</span>
|
||||||
ipc.log(
|
<span class="cstat-no" title="statement not covered" > ipc.log(</span>
|
||||||
'Server path not specified, so defaulting to'.notice,
|
'Server path not specified, so defaulting to'.notice,
|
||||||
'ipc.config.socketRoot + ipc.config.appspace + ipc.config.id'.variable,
|
'ipc.config.socketRoot + ipc.config.appspace + ipc.config.id'.variable,
|
||||||
(ipc.config.socketRoot+ipc.config.appspace+ipc.config.id).data
|
(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>
|
||||||
}
|
}
|
||||||
|
|
||||||
<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>
|
<span class="cstat-no" title="statement not covered" > callback=<span class="fstat-no" title="function not covered" >function(){</span>};</span>
|
||||||
}
|
}
|
||||||
|
|
||||||
ipc.server=new Server(
|
<span class="cstat-no" title="statement not covered" > ipc.server=new Server(</span>
|
||||||
path,
|
path,
|
||||||
ipc.config,
|
ipc.config,
|
||||||
log
|
log
|
||||||
);
|
);
|
||||||
|
|
||||||
ipc.server.on(
|
<span class="cstat-no" title="statement not covered" > ipc.server.on(</span>
|
||||||
'start',
|
'start',
|
||||||
callback
|
callback
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function serveNet(host,port,UDPType,callback){
|
<span class="fstat-no" title="function not covered" >function serveNet(host,port,UDPType,callback){</span>
|
||||||
if(typeof host=='number'){
|
<span class="cstat-no" title="statement not covered" > if(typeof host=='number'){</span>
|
||||||
callback=UDPType;
|
<span class="cstat-no" title="statement not covered" > callback=UDPType;</span>
|
||||||
UDPType=port;
|
<span class="cstat-no" title="statement not covered" > UDPType=port;</span>
|
||||||
port=host;
|
<span class="cstat-no" title="statement not covered" > port=host;</span>
|
||||||
host=false;
|
<span class="cstat-no" title="statement not covered" > host=false;</span>
|
||||||
}
|
}
|
||||||
if(typeof host=='function'){
|
<span class="cstat-no" title="statement not covered" > if(typeof host=='function'){</span>
|
||||||
callback=host;
|
<span class="cstat-no" title="statement not covered" > callback=host;</span>
|
||||||
UDPType=false;
|
<span class="cstat-no" title="statement not covered" > UDPType=false;</span>
|
||||||
host=false;
|
<span class="cstat-no" title="statement not covered" > host=false;</span>
|
||||||
port=false;
|
<span class="cstat-no" title="statement not covered" > port=false;</span>
|
||||||
}
|
}
|
||||||
if(!host){
|
<span class="cstat-no" title="statement not covered" > if(!host){</span>
|
||||||
ipc.log(
|
<span class="cstat-no" title="statement not covered" > ipc.log(</span>
|
||||||
'Server host not specified, so defaulting to'.notice,
|
'Server host not specified, so defaulting to'.notice,
|
||||||
'ipc.config.networkHost'.variable,
|
'ipc.config.networkHost'.variable,
|
||||||
ipc.config.networkHost.data
|
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" > callback=port;</span>
|
||||||
<span class="cstat-no" title="statement not covered" > UDPType=host.toLowerCase();</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" > port=false;</span>
|
||||||
<span class="cstat-no" title="statement not covered" > host=ipc.config.networkHost;</span>
|
<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(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" > callback=UDPType;</span>
|
||||||
<span class="cstat-no" title="statement not covered" > UDPType=port;</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="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" > callback=port;</span>
|
||||||
<span class="cstat-no" title="statement not covered" > UDPType=false;</span>
|
<span class="cstat-no" title="statement not covered" > UDPType=false;</span>
|
||||||
<span class="cstat-no" title="statement not covered" > port=false;</span>
|
<span class="cstat-no" title="statement not covered" > port=false;</span>
|
||||||
}
|
}
|
||||||
if(!port){
|
<span class="cstat-no" title="statement not covered" > if(!port){</span>
|
||||||
ipc.log(
|
<span class="cstat-no" title="statement not covered" > ipc.log(</span>
|
||||||
'Server port not specified, so defaulting to'.notice,
|
'Server port not specified, so defaulting to'.notice,
|
||||||
'ipc.config.networkPort'.variable,
|
'ipc.config.networkPort'.variable,
|
||||||
ipc.config.networkPort
|
ipc.config.networkPort
|
||||||
);
|
);
|
||||||
port=ipc.config.networkPort;
|
<span class="cstat-no" title="statement not covered" > port=ipc.config.networkPort;</span>
|
||||||
}
|
}
|
||||||
|
|
||||||
<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" > callback=UDPType;</span>
|
||||||
<span class="cstat-no" title="statement not covered" > UDPType=false;</span>
|
<span class="cstat-no" title="statement not covered" > UDPType=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>
|
<span class="cstat-no" title="statement not covered" > callback=<span class="fstat-no" title="function not covered" >function(){</span>};</span>
|
||||||
}
|
}
|
||||||
|
|
||||||
ipc.server=new Server(
|
<span class="cstat-no" title="statement not covered" > ipc.server=new Server(</span>
|
||||||
host,
|
host,
|
||||||
ipc.config,
|
ipc.config,
|
||||||
log,
|
log,
|
||||||
port
|
port
|
||||||
);
|
);
|
||||||
|
|
||||||
if(UDPType){
|
<span class="cstat-no" title="statement not covered" > if(UDPType){</span>
|
||||||
ipc.server[UDPType]=true;
|
<span class="cstat-no" title="statement not covered" > ipc.server[UDPType]=true;</span>
|
||||||
}
|
}
|
||||||
|
|
||||||
ipc.server.on(
|
<span class="cstat-no" title="statement not covered" > ipc.server.on(</span>
|
||||||
'start',
|
'start',
|
||||||
callback
|
callback
|
||||||
);
|
);
|
||||||
|
@ -919,38 +919,38 @@ function connect(id,path,callback){
|
||||||
callback(ipc);
|
callback(ipc);
|
||||||
}
|
}
|
||||||
|
|
||||||
function connectNet(id,host,port,callback){
|
<span class="fstat-no" title="function not covered" >function connectNet(id,host,port,callback){</span>
|
||||||
<span class="missing-if-branch" title="if path not taken" >I</span>if(!id){
|
<span class="cstat-no" title="statement not covered" > if(!id){</span>
|
||||||
<span class="cstat-no" title="statement not covered" > ipc.log(</span>
|
<span class="cstat-no" title="statement not covered" > ipc.log(</span>
|
||||||
'Service id required'.warn,
|
'Service id required'.warn,
|
||||||
'Requested service connection without specifying service id. Aborting connection attempt'.notice
|
'Requested service connection without specifying service id. Aborting connection attempt'.notice
|
||||||
);
|
);
|
||||||
<span class="cstat-no" title="statement not covered" > return;</span>
|
<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'){
|
<span class="cstat-no" title="statement not covered" > if(typeof host=='number'){</span>
|
||||||
callback=port;
|
<span class="cstat-no" title="statement not covered" > callback=port;</span>
|
||||||
port=host;
|
<span class="cstat-no" title="statement not covered" > port=host;</span>
|
||||||
host=false;
|
<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" > callback=host;</span>
|
||||||
<span class="cstat-no" title="statement not covered" > host=false;</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="cstat-no" title="statement not covered" > port=false;</span>
|
||||||
}
|
}
|
||||||
<span class="missing-if-branch" title="else path not taken" >E</span>if(!host){
|
<span class="cstat-no" title="statement not covered" > if(!host){</span>
|
||||||
ipc.log(
|
<span class="cstat-no" title="statement not covered" > ipc.log(</span>
|
||||||
'Server host not specified, so defaulting to'.notice,
|
'Server host not specified, so defaulting to'.notice,
|
||||||
'ipc.config.networkHost'.variable,
|
'ipc.config.networkHost'.variable,
|
||||||
ipc.config.networkHost.data
|
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(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" > callback=port;</span>
|
||||||
<span class="cstat-no" title="statement not covered" > port=false;</span>
|
<span class="cstat-no" title="statement not covered" > port=false;</span>
|
||||||
}
|
}
|
||||||
<span class="missing-if-branch" title="if path not taken" >I</span>if(!port){
|
<span class="cstat-no" title="statement not covered" > if(!port){</span>
|
||||||
<span class="cstat-no" title="statement not covered" > ipc.log(</span>
|
<span class="cstat-no" title="statement not covered" > ipc.log(</span>
|
||||||
'Server port not specified, so defaulting to'.notice,
|
'Server port not specified, so defaulting to'.notice,
|
||||||
'ipc.config.networkPort'.variable,
|
'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>
|
<span class="cstat-no" title="statement not covered" > port=ipc.config.networkPort;</span>
|
||||||
}
|
}
|
||||||
|
|
||||||
<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" > UDPType=callback;</span>
|
||||||
<span class="cstat-no" title="statement not covered" > callback=false;</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>
|
<span class="cstat-no" title="statement not covered" > callback=<span class="fstat-no" title="function not covered" >function(){</span>};</span>
|
||||||
}
|
}
|
||||||
|
|
||||||
<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" > if(!ipc.of[id].socket.destroyed){</span>
|
||||||
<span class="cstat-no" title="statement not covered" > ipc.log(</span>
|
<span class="cstat-no" title="statement not covered" > ipc.log(</span>
|
||||||
'Already Connected to'.notice,
|
'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>
|
<span class="cstat-no" title="statement not covered" > ipc.of[id].socket.destroy();</span>
|
||||||
}
|
}
|
||||||
|
|
||||||
ipc.of[id] = new Client(ipc.config,ipc.log);
|
<span class="cstat-no" title="statement not covered" > ipc.of[id] = new Client(ipc.config,ipc.log);</span>
|
||||||
ipc.of[id].id = id;
|
<span class="cstat-no" title="statement not covered" > ipc.of[id].id = id;</span>
|
||||||
ipc.of[id].path = host;
|
<span class="cstat-no" title="statement not covered" > ipc.of[id].path = host;</span>
|
||||||
ipc.of[id].port = port;
|
<span class="cstat-no" title="statement not covered" > ipc.of[id].port = port;</span>
|
||||||
|
|
||||||
ipc.of[id].connect();
|
<span class="cstat-no" title="statement not covered" > ipc.of[id].connect();</span>
|
||||||
|
|
||||||
callback(ipc);
|
<span class="cstat-no" title="statement not covered" > callback(ipc);</span>
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports=ipc;
|
module.exports=ipc;
|
||||||
|
@ -997,7 +997,7 @@ module.exports=ipc;
|
||||||
</div><!-- /wrapper -->
|
</div><!-- /wrapper -->
|
||||||
<div class='footer quiet pad2 space-top1 center small'>
|
<div class='footer quiet pad2 space-top1 center small'>
|
||||||
Code coverage
|
Code coverage
|
||||||
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at 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>
|
||||||
</div>
|
</div>
|
||||||
<script src="../prettify.js"></script>
|
<script src="../prettify.js"></script>
|
||||||
|
|
|
@ -11,16 +11,16 @@ FN:203,(anonymous_8)
|
||||||
FN:245,connectNet
|
FN:245,connectNet
|
||||||
FN:290,(anonymous_10)
|
FN:290,(anonymous_10)
|
||||||
FNF:10
|
FNF:10
|
||||||
FNH:6
|
FNH:3
|
||||||
FNDA:141,log
|
FNDA:55,log
|
||||||
FNDA:8,disconnect
|
FNDA:4,disconnect
|
||||||
FNDA:1,serve
|
FNDA:0,serve
|
||||||
FNDA:0,(anonymous_4)
|
FNDA:0,(anonymous_4)
|
||||||
FNDA:3,serveNet
|
FNDA:0,serveNet
|
||||||
FNDA:0,(anonymous_6)
|
FNDA:0,(anonymous_6)
|
||||||
FNDA:4,connect
|
FNDA:4,connect
|
||||||
FNDA:0,(anonymous_8)
|
FNDA:0,(anonymous_8)
|
||||||
FNDA:4,connectNet
|
FNDA:0,connectNet
|
||||||
FNDA:0,(anonymous_10)
|
FNDA:0,(anonymous_10)
|
||||||
DA:1,1
|
DA:1,1
|
||||||
DA:10,1
|
DA:10,1
|
||||||
|
@ -28,73 +28,73 @@ DA:22,1
|
||||||
DA:26,1
|
DA:26,1
|
||||||
DA:44,1
|
DA:44,1
|
||||||
DA:56,1
|
DA:56,1
|
||||||
DA:57,141
|
DA:57,55
|
||||||
DA:58,70
|
DA:58,0
|
||||||
DA:61,71
|
DA:61,55
|
||||||
DA:63,71
|
DA:63,55
|
||||||
DA:64,229
|
DA:64,177
|
||||||
DA:65,210
|
DA:65,160
|
||||||
DA:68,19
|
DA:68,17
|
||||||
DA:71,71
|
DA:71,55
|
||||||
DA:76,1
|
DA:76,1
|
||||||
DA:77,8
|
DA:77,4
|
||||||
DA:78,0
|
DA:78,0
|
||||||
DA:81,8
|
DA:81,4
|
||||||
DA:83,8
|
DA:83,4
|
||||||
DA:84,8
|
DA:84,4
|
||||||
DA:85,8
|
DA:85,4
|
||||||
DA:86,8
|
DA:86,4
|
||||||
DA:90,8
|
DA:90,4
|
||||||
DA:93,1
|
DA:93,1
|
||||||
DA:94,1
|
DA:94,0
|
||||||
DA:95,1
|
DA:95,0
|
||||||
DA:96,1
|
DA:96,0
|
||||||
DA:98,1
|
DA:98,0
|
||||||
DA:99,1
|
DA:99,0
|
||||||
DA:104,1
|
DA:104,0
|
||||||
DA:107,1
|
DA:107,0
|
||||||
DA:108,0
|
DA:108,0
|
||||||
DA:111,1
|
DA:111,0
|
||||||
DA:117,1
|
DA:117,0
|
||||||
DA:123,1
|
DA:123,1
|
||||||
DA:124,3
|
DA:124,0
|
||||||
DA:125,1
|
DA:125,0
|
||||||
DA:126,1
|
DA:126,0
|
||||||
DA:127,1
|
DA:127,0
|
||||||
DA:128,1
|
DA:128,0
|
||||||
DA:130,3
|
DA:130,0
|
||||||
DA:131,1
|
DA:131,0
|
||||||
DA:132,1
|
DA:132,0
|
||||||
DA:133,1
|
DA:133,0
|
||||||
DA:134,1
|
DA:134,0
|
||||||
DA:136,3
|
DA:136,0
|
||||||
DA:137,2
|
DA:137,0
|
||||||
DA:142,2
|
DA:142,0
|
||||||
DA:144,3
|
DA:144,0
|
||||||
DA:145,0
|
DA:145,0
|
||||||
DA:146,0
|
DA:146,0
|
||||||
DA:147,0
|
DA:147,0
|
||||||
DA:148,0
|
DA:148,0
|
||||||
DA:151,3
|
DA:151,0
|
||||||
DA:152,0
|
DA:152,0
|
||||||
DA:153,0
|
DA:153,0
|
||||||
DA:154,0
|
DA:154,0
|
||||||
DA:156,3
|
DA:156,0
|
||||||
DA:157,0
|
DA:157,0
|
||||||
DA:158,0
|
DA:158,0
|
||||||
DA:159,0
|
DA:159,0
|
||||||
DA:161,3
|
DA:161,0
|
||||||
DA:162,1
|
DA:162,0
|
||||||
DA:167,1
|
DA:167,0
|
||||||
DA:170,3
|
DA:170,0
|
||||||
DA:171,0
|
DA:171,0
|
||||||
DA:172,0
|
DA:172,0
|
||||||
DA:175,3
|
DA:175,0
|
||||||
DA:176,0
|
DA:176,0
|
||||||
DA:179,3
|
DA:179,0
|
||||||
DA:186,3
|
DA:186,0
|
||||||
DA:187,2
|
DA:187,0
|
||||||
DA:190,3
|
DA:190,0
|
||||||
DA:196,1
|
DA:196,1
|
||||||
DA:197,4
|
DA:197,4
|
||||||
DA:198,2
|
DA:198,2
|
||||||
|
@ -119,86 +119,86 @@ DA:238,4
|
||||||
DA:240,4
|
DA:240,4
|
||||||
DA:242,4
|
DA:242,4
|
||||||
DA:245,1
|
DA:245,1
|
||||||
DA:246,4
|
DA:246,0
|
||||||
DA:247,0
|
DA:247,0
|
||||||
DA:251,0
|
DA:251,0
|
||||||
DA:253,4
|
DA:253,0
|
||||||
DA:254,4
|
DA:254,0
|
||||||
DA:255,4
|
DA:255,0
|
||||||
DA:256,4
|
DA:256,0
|
||||||
DA:258,4
|
DA:258,0
|
||||||
DA:259,0
|
DA:259,0
|
||||||
DA:260,0
|
DA:260,0
|
||||||
DA:261,0
|
DA:261,0
|
||||||
DA:263,4
|
DA:263,0
|
||||||
DA:264,4
|
DA:264,0
|
||||||
DA:269,4
|
DA:269,0
|
||||||
DA:272,4
|
DA:272,0
|
||||||
DA:273,0
|
DA:273,0
|
||||||
DA:274,0
|
DA:274,0
|
||||||
DA:276,4
|
DA:276,0
|
||||||
DA:277,0
|
DA:277,0
|
||||||
DA:282,0
|
DA:282,0
|
||||||
DA:285,4
|
DA:285,0
|
||||||
DA:286,0
|
DA:286,0
|
||||||
DA:287,0
|
DA:287,0
|
||||||
DA:289,4
|
DA:289,0
|
||||||
DA:290,0
|
DA:290,0
|
||||||
DA:293,4
|
DA:293,0
|
||||||
DA:294,0
|
DA:294,0
|
||||||
DA:295,0
|
DA:295,0
|
||||||
DA:300,0
|
DA:300,0
|
||||||
DA:301,0
|
DA:301,0
|
||||||
DA:303,0
|
DA:303,0
|
||||||
DA:306,4
|
DA:306,0
|
||||||
DA:307,4
|
DA:307,0
|
||||||
DA:308,4
|
DA:308,0
|
||||||
DA:309,4
|
DA:309,0
|
||||||
DA:311,4
|
DA:311,0
|
||||||
DA:313,4
|
DA:313,0
|
||||||
DA:316,1
|
DA:316,1
|
||||||
LF:135
|
LF:135
|
||||||
LH:95
|
LH:40
|
||||||
BRDA:29,1,0,0
|
BRDA:29,1,0,0
|
||||||
BRDA:29,1,1,1
|
BRDA:29,1,1,1
|
||||||
BRDA:57,2,0,70
|
BRDA:57,2,0,0
|
||||||
BRDA:57,2,1,71
|
BRDA:57,2,1,55
|
||||||
BRDA:64,3,0,210
|
BRDA:64,3,0,160
|
||||||
BRDA:64,3,1,19
|
BRDA:64,3,1,17
|
||||||
BRDA:77,4,0,0
|
BRDA:77,4,0,0
|
||||||
BRDA:77,4,1,8
|
BRDA:77,4,1,4
|
||||||
BRDA:84,5,0,8
|
BRDA:84,5,0,4
|
||||||
BRDA:84,5,1,0
|
BRDA:84,5,1,0
|
||||||
BRDA:85,6,0,8
|
BRDA:85,6,0,4
|
||||||
BRDA:85,6,1,0
|
BRDA:85,6,1,0
|
||||||
BRDA:94,7,0,1
|
BRDA:94,7,0,0
|
||||||
BRDA:94,7,1,0
|
BRDA:94,7,1,0
|
||||||
BRDA:98,8,0,1
|
BRDA:98,8,0,0
|
||||||
BRDA:98,8,1,0
|
BRDA:98,8,1,0
|
||||||
BRDA:107,9,0,0
|
BRDA:107,9,0,0
|
||||||
BRDA:107,9,1,1
|
BRDA:107,9,1,0
|
||||||
BRDA:124,10,0,1
|
BRDA:124,10,0,0
|
||||||
BRDA:124,10,1,2
|
BRDA:124,10,1,0
|
||||||
BRDA:130,11,0,1
|
BRDA:130,11,0,0
|
||||||
BRDA:130,11,1,2
|
BRDA:130,11,1,0
|
||||||
BRDA:136,12,0,2
|
BRDA:136,12,0,0
|
||||||
BRDA:136,12,1,1
|
BRDA:136,12,1,0
|
||||||
BRDA:144,13,0,0
|
BRDA:144,13,0,0
|
||||||
BRDA:144,13,1,3
|
BRDA:144,13,1,0
|
||||||
BRDA:144,14,0,3
|
BRDA:144,14,0,0
|
||||||
BRDA:144,14,1,3
|
BRDA:144,14,1,0
|
||||||
BRDA:151,15,0,0
|
BRDA:151,15,0,0
|
||||||
BRDA:151,15,1,3
|
BRDA:151,15,1,0
|
||||||
BRDA:156,16,0,0
|
BRDA:156,16,0,0
|
||||||
BRDA:156,16,1,3
|
BRDA:156,16,1,0
|
||||||
BRDA:161,17,0,1
|
BRDA:161,17,0,0
|
||||||
BRDA:161,17,1,2
|
BRDA:161,17,1,0
|
||||||
BRDA:170,18,0,0
|
BRDA:170,18,0,0
|
||||||
BRDA:170,18,1,3
|
BRDA:170,18,1,0
|
||||||
BRDA:175,19,0,0
|
BRDA:175,19,0,0
|
||||||
BRDA:175,19,1,3
|
BRDA:175,19,1,0
|
||||||
BRDA:186,20,0,2
|
BRDA:186,20,0,0
|
||||||
BRDA:186,20,1,1
|
BRDA:186,20,1,0
|
||||||
BRDA:197,21,0,2
|
BRDA:197,21,0,2
|
||||||
BRDA:197,21,1,2
|
BRDA:197,21,1,2
|
||||||
BRDA:202,22,0,0
|
BRDA:202,22,0,0
|
||||||
|
@ -212,27 +212,27 @@ BRDA:223,25,1,4
|
||||||
BRDA:224,26,0,0
|
BRDA:224,26,0,0
|
||||||
BRDA:224,26,1,0
|
BRDA:224,26,1,0
|
||||||
BRDA:246,27,0,0
|
BRDA:246,27,0,0
|
||||||
BRDA:246,27,1,4
|
BRDA:246,27,1,0
|
||||||
BRDA:253,28,0,4
|
BRDA:253,28,0,0
|
||||||
BRDA:253,28,1,0
|
BRDA:253,28,1,0
|
||||||
BRDA:258,29,0,0
|
BRDA:258,29,0,0
|
||||||
BRDA:258,29,1,4
|
BRDA:258,29,1,0
|
||||||
BRDA:263,30,0,4
|
BRDA:263,30,0,0
|
||||||
BRDA:263,30,1,0
|
BRDA:263,30,1,0
|
||||||
BRDA:272,31,0,0
|
BRDA:272,31,0,0
|
||||||
BRDA:272,31,1,4
|
BRDA:272,31,1,0
|
||||||
BRDA:276,32,0,0
|
BRDA:276,32,0,0
|
||||||
BRDA:276,32,1,4
|
BRDA:276,32,1,0
|
||||||
BRDA:285,33,0,0
|
BRDA:285,33,0,0
|
||||||
BRDA:285,33,1,4
|
BRDA:285,33,1,0
|
||||||
BRDA:289,34,0,0
|
BRDA:289,34,0,0
|
||||||
BRDA:289,34,1,4
|
BRDA:289,34,1,0
|
||||||
BRDA:293,35,0,0
|
BRDA:293,35,0,0
|
||||||
BRDA:293,35,1,4
|
BRDA:293,35,1,0
|
||||||
BRDA:294,36,0,0
|
BRDA:294,36,0,0
|
||||||
BRDA:294,36,1,0
|
BRDA:294,36,1,0
|
||||||
BRF:72
|
BRF:72
|
||||||
BRH:44
|
BRH:14
|
||||||
end_of_record
|
end_of_record
|
||||||
TN:
|
TN:
|
||||||
SF:/home/bmiller/git/node-ipc/lib/eventParser.js
|
SF:/home/bmiller/git/node-ipc/lib/eventParser.js
|
||||||
|
@ -240,28 +240,28 @@ FN:3,formatData
|
||||||
FN:15,parseDataEvents
|
FN:15,parseDataEvents
|
||||||
FNF:2
|
FNF:2
|
||||||
FNH:2
|
FNH:2
|
||||||
FNDA:14,formatData
|
FNDA:6,formatData
|
||||||
FNDA:16,parseDataEvents
|
FNDA:6,parseDataEvents
|
||||||
DA:1,1
|
DA:1,1
|
||||||
DA:3,1
|
DA:3,1
|
||||||
DA:4,14
|
DA:4,6
|
||||||
DA:5,0
|
DA:5,0
|
||||||
DA:7,14
|
DA:7,6
|
||||||
DA:8,0
|
DA:8,0
|
||||||
DA:11,14
|
DA:11,6
|
||||||
DA:12,14
|
DA:12,6
|
||||||
DA:15,1
|
DA:15,1
|
||||||
DA:16,16
|
DA:16,6
|
||||||
DA:17,16
|
DA:17,6
|
||||||
DA:18,16
|
DA:18,6
|
||||||
DA:21,1
|
DA:21,1
|
||||||
DA:27,1
|
DA:27,1
|
||||||
LF:14
|
LF:14
|
||||||
LH:12
|
LH:12
|
||||||
BRDA:4,1,0,0
|
BRDA:4,1,0,0
|
||||||
BRDA:4,1,1,14
|
BRDA:4,1,1,6
|
||||||
BRDA:7,2,0,0
|
BRDA:7,2,0,0
|
||||||
BRDA:7,2,1,14
|
BRDA:7,2,1,6
|
||||||
BRF:4
|
BRF:4
|
||||||
BRH:2
|
BRH:2
|
||||||
end_of_record
|
end_of_record
|
||||||
|
@ -280,44 +280,44 @@ FN:168,(anonymous_10)
|
||||||
FN:186,(anonymous_11)
|
FN:186,(anonymous_11)
|
||||||
FNF:11
|
FNF:11
|
||||||
FNH:11
|
FNH:11
|
||||||
FNDA:8,init
|
FNDA:4,init
|
||||||
FNDA:12,emit
|
FNDA:6,emit
|
||||||
FNDA:11,syncEmit
|
FNDA:5,syncEmit
|
||||||
FNDA:14,connect
|
FNDA:7,connect
|
||||||
FNDA:10,(anonymous_5)
|
FNDA:5,(anonymous_5)
|
||||||
FNDA:4,(anonymous_6)
|
FNDA:2,(anonymous_6)
|
||||||
FNDA:14,(anonymous_7)
|
FNDA:6,(anonymous_7)
|
||||||
FNDA:6,(anonymous_8)
|
FNDA:3,(anonymous_8)
|
||||||
FNDA:6,(anonymous_9)
|
FNDA:3,(anonymous_9)
|
||||||
FNDA:6,(anonymous_10)
|
FNDA:3,(anonymous_10)
|
||||||
FNDA:12,(anonymous_11)
|
FNDA:6,(anonymous_11)
|
||||||
DA:1,1
|
DA:1,1
|
||||||
DA:9,1
|
DA:9,1
|
||||||
DA:10,8
|
DA:10,4
|
||||||
DA:19,8
|
DA:19,4
|
||||||
DA:21,8
|
DA:21,4
|
||||||
DA:24,1
|
DA:24,1
|
||||||
DA:25,12
|
DA:25,6
|
||||||
DA:27,12
|
DA:27,6
|
||||||
DA:28,12
|
DA:28,6
|
||||||
DA:29,12
|
DA:29,6
|
||||||
DA:31,12
|
DA:31,6
|
||||||
DA:32,0
|
DA:32,0
|
||||||
DA:34,12
|
DA:34,6
|
||||||
DA:37,12
|
DA:37,6
|
||||||
DA:38,1
|
DA:38,1
|
||||||
DA:39,1
|
DA:39,1
|
||||||
DA:42,11
|
DA:42,5
|
||||||
DA:47,1
|
DA:47,1
|
||||||
DA:48,11
|
DA:48,5
|
||||||
DA:49,11
|
DA:49,5
|
||||||
DA:52,1
|
DA:52,1
|
||||||
DA:54,14
|
DA:54,7
|
||||||
DA:56,14
|
DA:56,7
|
||||||
DA:57,14
|
DA:57,7
|
||||||
DA:58,0
|
DA:58,0
|
||||||
DA:59,0
|
DA:59,0
|
||||||
DA:62,14
|
DA:62,7
|
||||||
DA:63,7
|
DA:63,7
|
||||||
DA:65,7
|
DA:65,7
|
||||||
DA:67,7
|
DA:67,7
|
||||||
|
@ -325,9 +325,9 @@ DA:68,0
|
||||||
DA:69,0
|
DA:69,0
|
||||||
DA:70,0
|
DA:70,0
|
||||||
DA:72,7
|
DA:72,7
|
||||||
DA:78,7
|
DA:78,0
|
||||||
DA:79,7
|
DA:79,0
|
||||||
DA:80,7
|
DA:80,0
|
||||||
DA:87,0
|
DA:87,0
|
||||||
DA:88,0
|
DA:88,0
|
||||||
DA:89,0
|
DA:89,0
|
||||||
|
@ -342,76 +342,76 @@ DA:100,0
|
||||||
DA:106,0
|
DA:106,0
|
||||||
DA:107,0
|
DA:107,0
|
||||||
DA:109,0
|
DA:109,0
|
||||||
DA:115,14
|
DA:115,7
|
||||||
DA:117,14
|
DA:117,7
|
||||||
DA:120,10
|
DA:120,5
|
||||||
DA:121,10
|
DA:121,5
|
||||||
DA:126,14
|
DA:126,7
|
||||||
DA:129,4
|
DA:129,2
|
||||||
DA:130,4
|
DA:130,2
|
||||||
DA:131,4
|
DA:131,2
|
||||||
DA:135,14
|
DA:135,7
|
||||||
DA:138,14
|
DA:138,6
|
||||||
DA:140,14
|
DA:140,6
|
||||||
DA:144,8
|
DA:144,3
|
||||||
DA:145,8
|
DA:145,3
|
||||||
DA:151,8
|
DA:151,3
|
||||||
DA:152,8
|
DA:152,3
|
||||||
DA:153,8
|
DA:153,3
|
||||||
DA:155,8
|
DA:155,3
|
||||||
DA:158,6
|
DA:158,3
|
||||||
DA:160,6
|
DA:160,3
|
||||||
DA:163,6
|
DA:163,3
|
||||||
DA:164,6
|
DA:164,3
|
||||||
DA:165,6
|
DA:165,3
|
||||||
DA:166,6
|
DA:166,3
|
||||||
DA:167,6
|
DA:167,3
|
||||||
DA:169,6
|
DA:169,3
|
||||||
DA:170,2
|
DA:170,1
|
||||||
DA:180,6
|
DA:180,3
|
||||||
DA:184,14
|
DA:184,7
|
||||||
DA:187,12
|
DA:187,6
|
||||||
DA:188,12
|
DA:188,6
|
||||||
DA:189,0
|
DA:189,0
|
||||||
DA:193,0
|
DA:193,0
|
||||||
DA:194,0
|
DA:194,0
|
||||||
DA:197,0
|
DA:197,0
|
||||||
DA:198,0
|
DA:198,0
|
||||||
DA:201,12
|
DA:201,6
|
||||||
DA:202,12
|
DA:202,6
|
||||||
DA:204,12
|
DA:204,6
|
||||||
DA:206,12
|
DA:206,6
|
||||||
DA:207,0
|
DA:207,0
|
||||||
DA:208,0
|
DA:208,0
|
||||||
DA:211,12
|
DA:211,6
|
||||||
DA:213,12
|
DA:213,6
|
||||||
DA:214,12
|
DA:214,6
|
||||||
DA:215,12
|
DA:215,6
|
||||||
DA:216,12
|
DA:216,6
|
||||||
DA:217,12
|
DA:217,6
|
||||||
DA:219,12
|
DA:219,6
|
||||||
DA:220,12
|
DA:220,6
|
||||||
DA:226,12
|
DA:226,5
|
||||||
DA:227,0
|
DA:227,0
|
||||||
DA:230,12
|
DA:230,5
|
||||||
DA:235,1
|
DA:235,1
|
||||||
LF:104
|
LF:104
|
||||||
LH:76
|
LH:73
|
||||||
BRDA:17,1,0,8
|
BRDA:17,1,0,4
|
||||||
BRDA:17,1,1,0
|
BRDA:17,1,1,0
|
||||||
BRDA:31,2,0,0
|
BRDA:31,2,0,0
|
||||||
BRDA:31,2,1,12
|
BRDA:31,2,1,6
|
||||||
BRDA:37,3,0,1
|
BRDA:37,3,0,1
|
||||||
BRDA:37,3,1,11
|
BRDA:37,3,1,5
|
||||||
BRDA:57,4,0,0
|
BRDA:57,4,0,0
|
||||||
BRDA:57,4,1,14
|
BRDA:57,4,1,7
|
||||||
BRDA:62,5,0,7
|
BRDA:62,5,0,7
|
||||||
BRDA:62,5,1,7
|
BRDA:62,5,1,0
|
||||||
BRDA:67,6,0,0
|
BRDA:67,6,0,0
|
||||||
BRDA:67,6,1,7
|
BRDA:67,6,1,7
|
||||||
BRDA:67,7,0,7
|
BRDA:67,7,0,7
|
||||||
BRDA:67,7,1,0
|
BRDA:67,7,1,0
|
||||||
BRDA:78,8,0,7
|
BRDA:78,8,0,0
|
||||||
BRDA:78,8,1,0
|
BRDA:78,8,1,0
|
||||||
BRDA:88,9,0,0
|
BRDA:88,9,0,0
|
||||||
BRDA:88,9,1,0
|
BRDA:88,9,1,0
|
||||||
|
@ -421,26 +421,26 @@ BRDA:94,11,0,0
|
||||||
BRDA:94,11,1,0
|
BRDA:94,11,1,0
|
||||||
BRDA:95,12,0,0
|
BRDA:95,12,0,0
|
||||||
BRDA:95,12,1,0
|
BRDA:95,12,1,0
|
||||||
BRDA:140,13,0,8
|
BRDA:140,13,0,3
|
||||||
BRDA:140,13,1,6
|
BRDA:140,13,1,3
|
||||||
BRDA:141,14,0,14
|
BRDA:141,14,0,6
|
||||||
BRDA:141,14,1,6
|
BRDA:141,14,1,4
|
||||||
BRDA:169,15,0,2
|
BRDA:169,15,0,1
|
||||||
BRDA:169,15,1,4
|
BRDA:169,15,1,2
|
||||||
BRDA:188,16,0,0
|
BRDA:188,16,0,0
|
||||||
BRDA:188,16,1,12
|
BRDA:188,16,1,6
|
||||||
BRDA:193,17,0,0
|
BRDA:193,17,0,0
|
||||||
BRDA:193,17,1,0
|
BRDA:193,17,1,0
|
||||||
BRDA:201,18,0,12
|
BRDA:201,18,0,6
|
||||||
BRDA:201,18,1,0
|
BRDA:201,18,1,0
|
||||||
BRDA:206,19,0,0
|
BRDA:206,19,0,0
|
||||||
BRDA:206,19,1,12
|
BRDA:206,19,1,6
|
||||||
BRDA:206,20,0,12
|
BRDA:206,20,0,6
|
||||||
BRDA:206,20,1,12
|
BRDA:206,20,1,6
|
||||||
BRDA:226,21,0,0
|
BRDA:226,21,0,0
|
||||||
BRDA:226,21,1,12
|
BRDA:226,21,1,5
|
||||||
BRF:42
|
BRF:42
|
||||||
BRH:22
|
BRH:20
|
||||||
end_of_record
|
end_of_record
|
||||||
TN:
|
TN:
|
||||||
SF:/home/bmiller/git/node-ipc/lib/socketServer.js
|
SF:/home/bmiller/git/node-ipc/lib/socketServer.js
|
||||||
|
@ -465,43 +465,43 @@ FN:256,(anonymous_18)
|
||||||
FN:281,started
|
FN:281,started
|
||||||
FN:334,(anonymous_20)
|
FN:334,(anonymous_20)
|
||||||
FNF:20
|
FNF:20
|
||||||
FNH:13
|
FNH:0
|
||||||
FNDA:2,emit
|
FNDA:0,emit
|
||||||
FNDA:0,broadcast
|
FNDA:0,broadcast
|
||||||
FNDA:4,init
|
FNDA:0,init
|
||||||
FNDA:4,(anonymous_4)
|
FNDA:0,(anonymous_4)
|
||||||
FNDA:0,(anonymous_5)
|
FNDA:0,(anonymous_5)
|
||||||
FNDA:4,(anonymous_6)
|
FNDA:0,(anonymous_6)
|
||||||
FNDA:4,(anonymous_7)
|
FNDA:0,(anonymous_7)
|
||||||
FNDA:4,(anonymous_8)
|
FNDA:0,(anonymous_8)
|
||||||
FNDA:2,UDPWrite
|
FNDA:0,UDPWrite
|
||||||
FNDA:2,(anonymous_10)
|
FNDA:0,(anonymous_10)
|
||||||
FNDA:0,(anonymous_11)
|
FNDA:0,(anonymous_11)
|
||||||
FNDA:2,(anonymous_12)
|
FNDA:0,(anonymous_12)
|
||||||
FNDA:0,(anonymous_13)
|
FNDA:0,(anonymous_13)
|
||||||
FNDA:4,serverCreated
|
FNDA:0,serverCreated
|
||||||
FNDA:0,(anonymous_15)
|
FNDA:0,(anonymous_15)
|
||||||
FNDA:0,(anonymous_16)
|
FNDA:0,(anonymous_16)
|
||||||
FNDA:4,(anonymous_17)
|
FNDA:0,(anonymous_17)
|
||||||
FNDA:2,(anonymous_18)
|
FNDA:0,(anonymous_18)
|
||||||
FNDA:4,started
|
FNDA:0,started
|
||||||
FNDA:0,(anonymous_20)
|
FNDA:0,(anonymous_20)
|
||||||
DA:1,1
|
DA:1,1
|
||||||
DA:9,1
|
DA:9,1
|
||||||
DA:10,2
|
DA:10,0
|
||||||
DA:12,2
|
DA:12,0
|
||||||
DA:13,2
|
DA:13,0
|
||||||
DA:14,2
|
DA:14,0
|
||||||
DA:16,2
|
DA:16,0
|
||||||
DA:17,0
|
DA:17,0
|
||||||
DA:19,2
|
DA:19,0
|
||||||
DA:22,2
|
DA:22,0
|
||||||
DA:24,2
|
DA:24,0
|
||||||
DA:25,0
|
DA:25,0
|
||||||
DA:26,0
|
DA:26,0
|
||||||
DA:27,0
|
DA:27,0
|
||||||
DA:30,2
|
DA:30,0
|
||||||
DA:34,2
|
DA:34,0
|
||||||
DA:37,0
|
DA:37,0
|
||||||
DA:40,1
|
DA:40,1
|
||||||
DA:41,0
|
DA:41,0
|
||||||
|
@ -517,18 +517,18 @@ DA:54,0
|
||||||
DA:57,0
|
DA:57,0
|
||||||
DA:58,0
|
DA:58,0
|
||||||
DA:63,1
|
DA:63,1
|
||||||
DA:64,4
|
DA:64,0
|
||||||
DA:76,4
|
DA:76,0
|
||||||
DA:82,0
|
DA:82,0
|
||||||
DA:85,4
|
DA:85,0
|
||||||
DA:86,0
|
DA:86,0
|
||||||
DA:87,0
|
DA:87,0
|
||||||
DA:90,4
|
DA:90,0
|
||||||
DA:94,4
|
DA:94,0
|
||||||
DA:95,4
|
DA:95,0
|
||||||
DA:97,4
|
DA:97,0
|
||||||
DA:98,2
|
DA:98,0
|
||||||
DA:99,2
|
DA:99,0
|
||||||
DA:103,0
|
DA:103,0
|
||||||
DA:104,0
|
DA:104,0
|
||||||
DA:105,0
|
DA:105,0
|
||||||
|
@ -546,82 +546,82 @@ DA:122,0
|
||||||
DA:123,0
|
DA:123,0
|
||||||
DA:128,0
|
DA:128,0
|
||||||
DA:134,1
|
DA:134,1
|
||||||
DA:135,2
|
DA:135,0
|
||||||
DA:136,2
|
DA:136,0
|
||||||
DA:143,2
|
DA:143,0
|
||||||
DA:144,0
|
DA:144,0
|
||||||
DA:145,0
|
DA:145,0
|
||||||
DA:148,0
|
DA:148,0
|
||||||
DA:156,2
|
DA:156,0
|
||||||
DA:159,2
|
DA:159,0
|
||||||
DA:160,2
|
DA:160,0
|
||||||
DA:163,2
|
DA:163,0
|
||||||
DA:168,4
|
DA:168,0
|
||||||
DA:171,0
|
DA:171,0
|
||||||
DA:173,0
|
DA:173,0
|
||||||
DA:180,4
|
DA:180,0
|
||||||
DA:182,1
|
DA:182,1
|
||||||
DA:183,4
|
DA:183,0
|
||||||
DA:185,4
|
DA:185,0
|
||||||
DA:186,2
|
DA:186,0
|
||||||
DA:188,4
|
DA:188,0
|
||||||
DA:189,4
|
DA:189,0
|
||||||
DA:192,0
|
DA:192,0
|
||||||
DA:199,4
|
DA:199,0
|
||||||
DA:202,0
|
DA:202,0
|
||||||
DA:204,0
|
DA:204,0
|
||||||
DA:208,4
|
DA:208,0
|
||||||
DA:211,4
|
DA:211,0
|
||||||
DA:212,4
|
DA:212,0
|
||||||
DA:213,0
|
DA:213,0
|
||||||
DA:214,0
|
DA:214,0
|
||||||
DA:219,0
|
DA:219,0
|
||||||
DA:222,4
|
DA:222,0
|
||||||
DA:223,4
|
DA:223,0
|
||||||
DA:225,4
|
DA:225,0
|
||||||
DA:227,4
|
DA:227,0
|
||||||
DA:228,0
|
DA:228,0
|
||||||
DA:229,0
|
DA:229,0
|
||||||
DA:232,4
|
DA:232,0
|
||||||
DA:234,4
|
DA:234,0
|
||||||
DA:236,4
|
DA:236,0
|
||||||
DA:237,4
|
DA:237,0
|
||||||
DA:238,4
|
DA:238,0
|
||||||
DA:240,4
|
DA:240,0
|
||||||
DA:242,4
|
DA:242,0
|
||||||
DA:243,4
|
DA:243,0
|
||||||
DA:245,4
|
DA:245,0
|
||||||
DA:254,4
|
DA:254,0
|
||||||
DA:257,2
|
DA:257,0
|
||||||
DA:258,0
|
DA:258,0
|
||||||
DA:259,2
|
DA:259,0
|
||||||
DA:260,2
|
DA:260,0
|
||||||
DA:262,2
|
DA:262,0
|
||||||
DA:263,0
|
DA:263,0
|
||||||
DA:265,2
|
DA:265,0
|
||||||
DA:267,2
|
DA:267,0
|
||||||
DA:271,4
|
DA:271,0
|
||||||
DA:276,4
|
DA:276,0
|
||||||
DA:277,0
|
DA:277,0
|
||||||
DA:281,1
|
DA:281,1
|
||||||
DA:282,4
|
DA:282,0
|
||||||
DA:285,4
|
DA:285,0
|
||||||
DA:286,1
|
DA:286,0
|
||||||
DA:287,1
|
DA:287,0
|
||||||
DA:288,0
|
DA:288,0
|
||||||
DA:289,0
|
DA:289,0
|
||||||
DA:290,0
|
DA:290,0
|
||||||
DA:293,1
|
DA:293,0
|
||||||
DA:298,1
|
DA:298,0
|
||||||
DA:301,3
|
DA:301,0
|
||||||
DA:302,1
|
DA:302,0
|
||||||
DA:303,1
|
DA:303,0
|
||||||
DA:308,1
|
DA:308,0
|
||||||
DA:311,2
|
DA:311,0
|
||||||
DA:312,2
|
DA:312,0
|
||||||
DA:317,2
|
DA:317,0
|
||||||
DA:330,4
|
DA:330,0
|
||||||
DA:332,4
|
DA:332,0
|
||||||
DA:335,0
|
DA:335,0
|
||||||
DA:336,0
|
DA:336,0
|
||||||
DA:337,0
|
DA:337,0
|
||||||
|
@ -636,20 +636,20 @@ DA:350,0
|
||||||
DA:352,0
|
DA:352,0
|
||||||
DA:354,0
|
DA:354,0
|
||||||
DA:356,0
|
DA:356,0
|
||||||
DA:361,4
|
DA:361,0
|
||||||
DA:364,1
|
DA:364,1
|
||||||
LF:152
|
LF:152
|
||||||
LH:83
|
LH:8
|
||||||
BRDA:16,1,0,0
|
BRDA:16,1,0,0
|
||||||
BRDA:16,1,1,2
|
BRDA:16,1,1,0
|
||||||
BRDA:22,2,0,2
|
BRDA:22,2,0,0
|
||||||
BRDA:22,2,1,0
|
BRDA:22,2,1,0
|
||||||
BRDA:22,3,0,2
|
BRDA:22,3,0,0
|
||||||
BRDA:22,3,1,1
|
BRDA:22,3,1,0
|
||||||
BRDA:24,4,0,0
|
BRDA:24,4,0,0
|
||||||
BRDA:24,4,1,2
|
BRDA:24,4,1,0
|
||||||
BRDA:24,5,0,2
|
BRDA:24,5,0,0
|
||||||
BRDA:24,5,1,2
|
BRDA:24,5,1,0
|
||||||
BRDA:41,6,0,0
|
BRDA:41,6,0,0
|
||||||
BRDA:41,6,1,0
|
BRDA:41,6,1,0
|
||||||
BRDA:46,7,0,0
|
BRDA:46,7,0,0
|
||||||
|
@ -659,14 +659,14 @@ BRDA:52,8,1,0
|
||||||
BRDA:52,9,0,0
|
BRDA:52,9,0,0
|
||||||
BRDA:52,9,1,0
|
BRDA:52,9,1,0
|
||||||
BRDA:85,10,0,0
|
BRDA:85,10,0,0
|
||||||
BRDA:85,10,1,4
|
BRDA:85,10,1,0
|
||||||
BRDA:95,11,0,3
|
BRDA:95,11,0,0
|
||||||
BRDA:95,11,1,1
|
BRDA:95,11,1,0
|
||||||
BRDA:97,12,0,2
|
BRDA:97,12,0,0
|
||||||
BRDA:97,12,1,2
|
BRDA:97,12,1,0
|
||||||
BRDA:97,13,0,4
|
BRDA:97,13,0,0
|
||||||
BRDA:97,13,1,3
|
BRDA:97,13,1,0
|
||||||
BRDA:98,14,0,2
|
BRDA:98,14,0,0
|
||||||
BRDA:98,14,1,0
|
BRDA:98,14,1,0
|
||||||
BRDA:104,15,0,0
|
BRDA:104,15,0,0
|
||||||
BRDA:104,15,1,0
|
BRDA:104,15,1,0
|
||||||
|
@ -679,43 +679,43 @@ BRDA:117,18,1,0
|
||||||
BRDA:118,19,0,0
|
BRDA:118,19,0,0
|
||||||
BRDA:118,19,1,0
|
BRDA:118,19,1,0
|
||||||
BRDA:143,20,0,0
|
BRDA:143,20,0,0
|
||||||
BRDA:143,20,1,2
|
BRDA:143,20,1,0
|
||||||
BRDA:157,21,0,1
|
BRDA:157,21,0,0
|
||||||
BRDA:157,21,1,1
|
BRDA:157,21,1,0
|
||||||
BRDA:185,22,0,2
|
BRDA:185,22,0,0
|
||||||
BRDA:185,22,1,2
|
BRDA:185,22,1,0
|
||||||
BRDA:211,23,0,2
|
BRDA:211,23,0,0
|
||||||
BRDA:211,23,1,2
|
BRDA:211,23,1,0
|
||||||
BRDA:211,24,0,4
|
BRDA:211,24,0,0
|
||||||
BRDA:211,24,1,3
|
BRDA:211,24,1,0
|
||||||
BRDA:212,25,0,0
|
BRDA:212,25,0,0
|
||||||
BRDA:212,25,1,4
|
BRDA:212,25,1,0
|
||||||
BRDA:222,26,0,4
|
BRDA:222,26,0,0
|
||||||
BRDA:222,26,1,0
|
BRDA:222,26,1,0
|
||||||
BRDA:227,27,0,0
|
BRDA:227,27,0,0
|
||||||
BRDA:227,27,1,4
|
BRDA:227,27,1,0
|
||||||
BRDA:227,28,0,4
|
BRDA:227,28,0,0
|
||||||
BRDA:227,28,1,4
|
BRDA:227,28,1,0
|
||||||
BRDA:242,29,0,4
|
BRDA:242,29,0,0
|
||||||
BRDA:242,29,1,0
|
BRDA:242,29,1,0
|
||||||
BRDA:257,30,0,0
|
BRDA:257,30,0,0
|
||||||
BRDA:257,30,1,2
|
BRDA:257,30,1,0
|
||||||
BRDA:262,31,0,0
|
BRDA:262,31,0,0
|
||||||
BRDA:262,31,1,2
|
BRDA:262,31,1,0
|
||||||
BRDA:276,32,0,0
|
BRDA:276,32,0,0
|
||||||
BRDA:276,32,1,4
|
BRDA:276,32,1,0
|
||||||
BRDA:285,33,0,1
|
BRDA:285,33,0,0
|
||||||
BRDA:285,33,1,3
|
BRDA:285,33,1,0
|
||||||
BRDA:287,34,0,0
|
BRDA:287,34,0,0
|
||||||
BRDA:287,34,1,1
|
BRDA:287,34,1,0
|
||||||
BRDA:301,35,0,1
|
BRDA:301,35,0,0
|
||||||
BRDA:301,35,1,2
|
BRDA:301,35,1,0
|
||||||
BRDA:301,36,0,3
|
BRDA:301,36,0,0
|
||||||
BRDA:301,36,1,2
|
BRDA:301,36,1,0
|
||||||
BRDA:302,37,0,0
|
BRDA:302,37,0,0
|
||||||
BRDA:302,37,1,1
|
BRDA:302,37,1,0
|
||||||
BRDA:311,38,0,1
|
BRDA:311,38,0,0
|
||||||
BRDA:311,38,1,1
|
BRDA:311,38,1,0
|
||||||
BRDA:339,39,0,0
|
BRDA:339,39,0,0
|
||||||
BRDA:339,39,1,0
|
BRDA:339,39,1,0
|
||||||
BRDA:340,40,0,0
|
BRDA:340,40,0,0
|
||||||
|
@ -725,5 +725,5 @@ BRDA:344,41,1,0
|
||||||
BRDA:349,42,0,0
|
BRDA:349,42,0,0
|
||||||
BRDA:349,42,1,0
|
BRDA:349,42,1,0
|
||||||
BRF:84
|
BRF:84
|
||||||
BRH:43
|
BRH:0
|
||||||
end_of_record
|
end_of_record
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
var ipc = require('../../../../node-ipc');
|
'use strict';
|
||||||
|
|
||||||
|
const ipc = require('../../../../node-ipc');
|
||||||
|
|
||||||
ipc.config.id ='testClient';
|
ipc.config.id ='testClient';
|
||||||
ipc.config.retry = 600;
|
ipc.config.retry = 600;
|
||||||
|
|
||||||
|
|
||||||
describe('TCP Socket verification of client',
|
describe('TCP Socket verification of client',
|
||||||
function(){
|
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.',
|
'Verify retry attempts by TCP client to connect to the server as per the value set in "maxRetries" parameter.',
|
||||||
function(done){
|
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.maxRetries = 3;
|
||||||
ipc.config.stopRetrying = false;
|
ipc.config.stopRetrying = false;
|
||||||
ipc.config.silent= false;
|
|
||||||
|
|
||||||
ipc.connectToNet(
|
ipc.connectToNet(
|
||||||
'tcpFakeServer',
|
'tcpFakeServer',
|
||||||
|
@ -31,24 +31,23 @@ describe('TCP Socket verification of client',
|
||||||
expect(ipc.of.tcpFakeServer.socket.destroyed).toBe(true);
|
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(tcpRetryAttempt).not.toBeLessThan(0);
|
||||||
expect(ipc.of.tcpFakeServer.retriesRemaining).not.toBeLessThan(0);
|
expect(ipc.of.tcpFakeServer.retriesRemaining).not.toBeLessThan(0);
|
||||||
|
|
||||||
|
|
||||||
ipc.of.tcpFakeServer.on(
|
ipc.of.tcpFakeServer.on(
|
||||||
'error',
|
'error',
|
||||||
function(err){
|
function(err){
|
||||||
console.log('Error is: ', err);
|
console.log('Error is: ', err);
|
||||||
ipc.disconnect('tcpFakeServer');
|
ipc.disconnect('tcpFakeServer');
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tcpRetryAttempt--;
|
tcpRetryAttempt--;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -57,21 +56,21 @@ describe('TCP Socket verification of client',
|
||||||
// Wait time is added to verify the fail case scenario of additional retry attempt by client than expected.
|
// Wait time is added to verify the fail case scenario of additional retry attempt by client than expected.
|
||||||
setTimeout(
|
setTimeout(
|
||||||
function(){
|
function(){
|
||||||
ipc.disconnect('tcpFakeServer');
|
ipc.disconnect('tcpFakeServer');
|
||||||
done();
|
done();
|
||||||
},2500
|
},2500
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
it(
|
it(
|
||||||
'Verify TCP client does not connect to the TCPserver when "stopRetrying" value is set to true.',
|
'Verify TCP client does not connect to the TCPserver when "stopRetrying" value is set to true.',
|
||||||
function(done){
|
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.maxRetries = 3;
|
||||||
ipc.config.stopRetrying = true;
|
ipc.config.stopRetrying = true;
|
||||||
|
ipc.config.silent=true;
|
||||||
|
|
||||||
ipc.connectToNet(
|
ipc.connectToNet(
|
||||||
'tcpFakeServer',
|
'tcpFakeServer',
|
||||||
|
@ -89,11 +88,11 @@ describe('TCP Socket verification of client',
|
||||||
}
|
}
|
||||||
else if(ipc.of.tcpFakeServer.retriesRemaining < 3){
|
else if(ipc.of.tcpFakeServer.retriesRemaining < 3){
|
||||||
|
|
||||||
expect(tcpRetryAttempt).not.toBeLessThan(3);
|
expect(tcpRetryAttempt).not.toBeLessThan(3);
|
||||||
expect(ipc.of.tcpFakeServer.retriesRemaining).not.toBeLessThan(3);
|
expect(ipc.of.tcpFakeServer.retriesRemaining).not.toBeLessThan(3);
|
||||||
|
|
||||||
|
|
||||||
ipc.of.tcpFakeServer.on(
|
ipc.of.tcpFakeServer.on(
|
||||||
'error',
|
'error',
|
||||||
function(err){
|
function(err){
|
||||||
console.log('Error is: ', err);
|
console.log('Error is: ', err);
|
||||||
|
@ -101,9 +100,9 @@ describe('TCP Socket verification of client',
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tcpRetryAttempt--;
|
tcpRetryAttempt--;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -112,14 +111,14 @@ describe('TCP Socket verification of client',
|
||||||
// Wait time is added to verify the fail case scenario of additional retry attempt by client than expected.
|
// Wait time is added to verify the fail case scenario of additional retry attempt by client than expected.
|
||||||
setTimeout(
|
setTimeout(
|
||||||
function(){
|
function(){
|
||||||
ipc.disconnect('tcpFakeServer');
|
ipc.disconnect('tcpFakeServer');
|
||||||
done();
|
done();
|
||||||
},700
|
},700
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
it(
|
it(
|
||||||
'Verify TCP client connects to server named "tcpServer" and receives message.',
|
'Verify TCP client connects to server named "tcpServer" and receives message.',
|
||||||
function(done){
|
function(done){
|
||||||
ipc.connectToNet(
|
ipc.connectToNet(
|
||||||
|
@ -151,27 +150,27 @@ describe('TCP Socket verification of client',
|
||||||
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
it(
|
it(
|
||||||
'Verify TCP client queues the requests being sent to the server synchronously until it receives the response from server.',
|
'Verify TCP client queues the requests being sent to the server synchronously until it receives the response from server.',
|
||||||
function(done){
|
function(done){
|
||||||
|
|
||||||
ipc.config.sync = true;
|
ipc.config.sync = true;
|
||||||
var responseCounter = 0;
|
let responseCounter = 0;
|
||||||
|
|
||||||
ipc.connectToNet(
|
ipc.connectToNet(
|
||||||
'tcpServerSync',
|
'tcpServerSync',
|
||||||
8400,
|
8400,
|
||||||
function(){
|
function(){
|
||||||
ipc.of.tcpServerSync.on(
|
ipc.of.tcpServerSync.on(
|
||||||
'connect',
|
'connect',
|
||||||
function(){
|
function(){
|
||||||
|
|
||||||
for(var i=0; i<5; i++){
|
for(let i=0; i<5; i++){
|
||||||
|
|
||||||
ipc.of.tcpServerSync.emit(
|
ipc.of.tcpServerSync.emit(
|
||||||
'message',
|
'message',
|
||||||
|
@ -186,10 +185,10 @@ describe('TCP Socket verification of client',
|
||||||
ipc.of.tcpServerSync.on(
|
ipc.of.tcpServerSync.on(
|
||||||
'message',
|
'message',
|
||||||
function(data){
|
function(data){
|
||||||
if (data.message != null){
|
if (data.message != null){
|
||||||
responseCounter++;
|
responseCounter++;
|
||||||
expect(data.message).toBe('Response from TCP server');
|
expect(data.message).toBe('Response from TCP server');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (responseCounter == 5){
|
if (responseCounter == 5){
|
||||||
expect(responseCounter).toBe(5);
|
expect(responseCounter).toBe(5);
|
||||||
|
@ -216,5 +215,5 @@ describe('TCP Socket verification of client',
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
var ipc = require('../../../../node-ipc');
|
'use strict';
|
||||||
|
|
||||||
|
const ipc = require('../../../../node-ipc');
|
||||||
|
|
||||||
ipc.config.id ='testWorld';
|
ipc.config.id ='testWorld';
|
||||||
ipc.config.retry = 1000;
|
ipc.config.retry = 1000;
|
||||||
|
|
||||||
|
|
||||||
describe('TCP Socket verification of server',
|
describe('TCP Socket verification of server',
|
||||||
function(){
|
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.',
|
'Verify TCP server detects only 1 client out of 2 clients and receives message.',
|
||||||
function(done){
|
function(done){
|
||||||
|
|
||||||
var clientCounter =0;
|
let clientCounter =0;
|
||||||
ipc.config.maxConnections=1;
|
ipc.config.maxConnections=1;
|
||||||
ipc.config.networkPort=8500;
|
ipc.config.networkPort=8500;
|
||||||
|
|
||||||
|
@ -45,4 +46,3 @@ describe('TCP Socket verification of server',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
var ipc = require('../../../../node-ipc');
|
'use strict';
|
||||||
|
|
||||||
|
const ipc = require('../../../../node-ipc');
|
||||||
|
|
||||||
ipc.config.id ='testClient';
|
ipc.config.id ='testClient';
|
||||||
ipc.config.retry = 600;
|
ipc.config.retry = 600;
|
||||||
|
|
|
@ -1,225 +1,190 @@
|
||||||
var ipc = require('../../../../node-ipc');
|
'use strict';
|
||||||
|
|
||||||
|
const ipc = require('../../../../node-ipc');
|
||||||
|
|
||||||
ipc.config.id ='testClient';
|
ipc.config.id ='testClient';
|
||||||
ipc.config.retry = 600;
|
ipc.config.retry = 600;
|
||||||
|
|
||||||
|
|
||||||
describe('Test Cases for Unix client: ',
|
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 testIt(done){
|
||||||
|
|
||||||
it(
|
ipc.config.maxRetries = 3;
|
||||||
'Verify retry attempts by Unix client to connect to the Unix server as per the value set in "maxRetries" parameter.',
|
|
||||||
function(done){
|
|
||||||
|
|
||||||
var retryAttempt = 3; //variable created to count the attempt made by client to connect to the server.
|
//set to -1 because there is an error on the first fail
|
||||||
ipc.config.maxRetries = 3;
|
//before retrying
|
||||||
ipc.config.silent= true;
|
let errorCount=-1;
|
||||||
|
|
||||||
ipc.connectTo(
|
ipc.connectTo(
|
||||||
'fakeworld',
|
'fakeworld',
|
||||||
function(){
|
function open(){
|
||||||
|
ipc.of.fakeworld.on(
|
||||||
|
'error',
|
||||||
|
function gotError(err){
|
||||||
|
errorCount++;
|
||||||
|
expect(ipc.of.fakeworld.retriesRemaining).toBe(
|
||||||
|
ipc.config.maxRetries-errorCount
|
||||||
|
);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
ipc.of.fakeworld.on(
|
setTimeout(
|
||||||
'disconnect',
|
function testDelay(){
|
||||||
function(){
|
expect(errorCount).toBe(ipc.config.maxRetries);
|
||||||
|
ipc.disconnect('fakeworld');
|
||||||
|
done();
|
||||||
|
},
|
||||||
|
ipc.config.retry*ipc.config.maxRetries +
|
||||||
|
ipc.config.retry+ipc.config.retry
|
||||||
|
);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
if(ipc.of.fakeworld.retriesRemaining == 0){
|
it(
|
||||||
|
'Verify Unix client does not connect to the unix server when "stopRetrying" value is set to true.',
|
||||||
|
function(done){
|
||||||
|
|
||||||
expect(retryAttempt).toBe(ipc.of.fakeworld.retriesRemaining);
|
ipc.config.maxRetries = 3;
|
||||||
expect(ipc.of.fakeworld.socket.destroyed).toBe(true);
|
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 open(){
|
||||||
|
|
||||||
|
ipc.of.fakeworld.on(
|
||||||
|
'error',
|
||||||
|
function gotError(err){
|
||||||
|
expect(ipc.of.fakeworld.retriesRemaining).toBe(ipc.config.maxRetries);
|
||||||
|
errorCount++;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
setTimeout(
|
||||||
|
function testDelay(){
|
||||||
|
expect(errorCount).toBe(0);
|
||||||
|
expect(ipc.of.fakeworld.retriesRemaining).toBe(ipc.config.maxRetries);
|
||||||
|
ipc.disconnect('fakeworld');
|
||||||
|
done();
|
||||||
|
},
|
||||||
|
ipc.config.retry*ipc.config.maxRetries
|
||||||
|
);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
it(
|
||||||
|
'Verify unix client connects to "unixServer" and receives message.',
|
||||||
|
function testIt(done){
|
||||||
|
ipc.connectTo(
|
||||||
|
'unixServer',
|
||||||
|
'/tmp/app.unixServer',
|
||||||
|
function open(){
|
||||||
|
ipc.of.unixServer.on(
|
||||||
|
'connect',
|
||||||
|
function connected(){
|
||||||
|
ipc.of.unixServer.on(
|
||||||
|
'message',
|
||||||
|
function(data){
|
||||||
|
expect(data.id).toBe('unixServer');
|
||||||
|
expect(data.message).toBe('I am unix server!');
|
||||||
|
testDone();
|
||||||
}
|
}
|
||||||
else if(ipc.of.fakeworld.retriesRemaining < 0){
|
);
|
||||||
|
|
||||||
expect(retryAttempt).not.toBeLessThan(0);
|
|
||||||
expect(ipc.of.fakeworld.retriesRemaining).not.toBeLessThan(0);
|
|
||||||
|
|
||||||
|
|
||||||
ipc.of.fakeworld.on(
|
|
||||||
'error',
|
|
||||||
function(err){
|
|
||||||
console.log('Error is: ', err);
|
|
||||||
ipc.disconnect('fakeworld');
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
retryAttempt--;
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
// Wait time is added to verify the fail case scenario of additional retry attempt by client than expected.
|
|
||||||
setTimeout(
|
|
||||||
function(){
|
|
||||||
ipc.disconnect('fakeworld');
|
|
||||||
done();
|
|
||||||
},2500
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
it(
|
|
||||||
'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.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);
|
|
||||||
|
|
||||||
|
ipc.of.unixServer.on(
|
||||||
|
'error',
|
||||||
|
function(err){
|
||||||
|
expect(err).toBe(false);
|
||||||
|
testDone();
|
||||||
}
|
}
|
||||||
else if(ipc.of.fakeworld.retriesRemaining < 3){
|
);
|
||||||
|
|
||||||
expect(retryAttempt).not.toBeLessThan(3);
|
ipc.of.unixServer.emit(
|
||||||
expect(ipc.of.fakeworld.retriesRemaining).not.toBeLessThan(3);
|
'message',
|
||||||
|
{
|
||||||
|
id : ipc.config.id,
|
||||||
|
message : 'Hello from Client.'
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
function testDone(){
|
||||||
ipc.of.fakeworld.on(
|
ipc.disconnect('unixServer');
|
||||||
'error',
|
done();
|
||||||
function(err){
|
|
||||||
console.log('Error is: ', err);
|
|
||||||
ipc.disconnect('fakeworld');
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
retryAttempt--;
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
// Wait time is added to verify the fail case scenario of additional retry attempt by client than expected.
|
|
||||||
setTimeout(
|
|
||||||
function(){
|
|
||||||
ipc.disconnect('fakeworld');
|
|
||||||
done();
|
|
||||||
},700
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
);
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
it(
|
||||||
|
'Verify unix client queues the requests being sent to the server synchronously until it receives the response from server.',
|
||||||
|
function testIt(done){
|
||||||
|
|
||||||
it(
|
ipc.config.sync = true;
|
||||||
'Verify unix client connects to "unixServer" and receives message.',
|
let responseCounter = 0;
|
||||||
function(done){
|
|
||||||
ipc.connectTo(
|
ipc.connectTo(
|
||||||
'unixServer',
|
'unixServerSync',
|
||||||
'/tmp/app.unixServer',
|
'/tmp/app.unixServerSync',
|
||||||
function(){
|
function open(){
|
||||||
ipc.of.unixServer.on(
|
ipc.of.unixServerSync.on(
|
||||||
'connect',
|
'connect',
|
||||||
function(){
|
function connected(){
|
||||||
ipc.of.unixServer.emit(
|
|
||||||
|
for(let i=0; i<5; i++){
|
||||||
|
ipc.of.unixServerSync.emit(
|
||||||
'message',
|
'message',
|
||||||
{
|
{
|
||||||
id : ipc.config.id,
|
id : ipc.config.id,
|
||||||
message : 'Hello from Client.'
|
message : 'Unix Client Request '
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
ipc.of.unixServer.on(
|
|
||||||
'message',
|
|
||||||
function(data){
|
|
||||||
|
|
||||||
expect(data.id).toBe('unixServer');
|
|
||||||
expect(data.message).toBe('I am unix server!');
|
|
||||||
ipc.disconnect('unixServer');
|
|
||||||
done();
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
ipc.of.unixServer.on(
|
|
||||||
'error',
|
|
||||||
function(err){
|
|
||||||
console.log('Error is: ', err); done();
|
|
||||||
ipc.disconnect('unixServer');
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
);
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
it(
|
ipc.of.unixServerSync.on(
|
||||||
'Verify unix client queues the requests being sent to the server synchronously until it receives the response from server.',
|
'message',
|
||||||
function(done){
|
function(data){
|
||||||
|
expect(data.message).toBe('Response from unix server');
|
||||||
|
responseCounter++;
|
||||||
|
|
||||||
ipc.config.sync = true;
|
if (responseCounter < 5){
|
||||||
var responseCounter = 0;
|
return;
|
||||||
|
}
|
||||||
ipc.connectTo(
|
expect(responseCounter).toBe(5);
|
||||||
'unixServerSync',
|
testDone();
|
||||||
'/tmp/app.unixServerSync',
|
|
||||||
function(){
|
|
||||||
ipc.of.unixServerSync.on(
|
|
||||||
'connect',
|
|
||||||
function(){
|
|
||||||
|
|
||||||
for(var i=0; i<5; i++){
|
|
||||||
|
|
||||||
ipc.of.unixServerSync.emit(
|
|
||||||
'message',
|
|
||||||
{
|
|
||||||
id : ipc.config.id,
|
|
||||||
message : 'Unix Client Request '+ i
|
|
||||||
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
);
|
||||||
|
|
||||||
ipc.of.unixServerSync.on(
|
ipc.of.unixServerSync.on(
|
||||||
'message',
|
'error',
|
||||||
function(data){
|
function testError(err){
|
||||||
if (data.message != null){
|
expect(err).toBe(false);
|
||||||
responseCounter++;
|
testDone();
|
||||||
expect(data.message).toBe('Response from unix server');
|
}
|
||||||
}
|
);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
if (responseCounter == 5){
|
function testDone(){
|
||||||
expect(responseCounter).toBe(5);
|
ipc.disconnect('unixServerSync');
|
||||||
ipc.disconnect('unixServerSync');
|
done();
|
||||||
done();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
ipc.of.unixServerSync.on(
|
|
||||||
'error',
|
|
||||||
function(err){
|
|
||||||
console.log('Error is: ', err); done();
|
|
||||||
ipc.disconnect('unixServerSync');
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
);
|
);
|
||||||
// End of test cases for Unix
|
}
|
||||||
}
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -1,47 +1,51 @@
|
||||||
var ipc = require('../../../../node-ipc');
|
'use strict';
|
||||||
|
|
||||||
|
const ipc = require('../../../../node-ipc');
|
||||||
|
|
||||||
ipc.config.id ='testWorld';
|
ipc.config.id ='testWorld';
|
||||||
ipc.config.retry = 1000;
|
ipc.config.retry = 1000;
|
||||||
|
ipc.config.silent=false;
|
||||||
|
|
||||||
|
describe(
|
||||||
describe('Test Cases for server: ',
|
'Test Cases for server: ',
|
||||||
function(){
|
function testDescribe(){
|
||||||
// Unix server verification //
|
// Unix server verification //
|
||||||
it(
|
it(
|
||||||
'Verify unix server detects only 1 client out of 2 clients and receives message.',
|
'Verify unix server detects only 1 client out of 2 clients and receives message.',
|
||||||
function(done){
|
function testIt(done){
|
||||||
|
|
||||||
var clientCounter =0;
|
let clientCounter =0;
|
||||||
ipc.config.maxConnections=1;
|
ipc.config.maxConnections=1;
|
||||||
ipc.config.networkPort='/tmp/app.testWorld';
|
ipc.config.networkPort='/tmp/app.testWorld';
|
||||||
|
|
||||||
ipc.serve(
|
ipc.serve(
|
||||||
function(){
|
function serverStarted(){
|
||||||
ipc.server.on(
|
ipc.server.on(
|
||||||
'message',
|
'message',
|
||||||
function(data,socket){
|
function gotMessage(data,socket){
|
||||||
|
|
||||||
clientCounter++;
|
clientCounter++;
|
||||||
expect(data.id).toBe('unixClient');
|
expect(data.id).toBe('unixClient');
|
||||||
expect(data.message).toBe('I am unix client.');
|
expect(data.message).toBe('I am unix client.');
|
||||||
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
setTimeout(
|
const counterTimer=2000;
|
||||||
function(){
|
|
||||||
expect(clientCounter).toBe(1);
|
|
||||||
|
|
||||||
done();
|
setTimeout(
|
||||||
},2000
|
function testTimer(){
|
||||||
);
|
expect(clientCounter).toBe(1);
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
ipc.server.start();
|
done();
|
||||||
|
},
|
||||||
|
counterTimer
|
||||||
|
);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
}
|
ipc.server.start();
|
||||||
);
|
}
|
||||||
}
|
);
|
||||||
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
const ipc=require('../../../node-ipc');
|
const ipc=require('../../../node-ipc');
|
||||||
const process=require('process');
|
const process=require('process');
|
||||||
const dieAfter=30000;
|
const dieAfter=30000;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
const ipc=require('../../../node-ipc');
|
const ipc=require('../../../node-ipc');
|
||||||
const process=require('process');
|
const process=require('process');
|
||||||
const dieAfter=30000;
|
const dieAfter=30000;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
const ipc=require('../../../node-ipc');
|
const ipc=require('../../../node-ipc');
|
||||||
const process=require('process');
|
const process=require('process');
|
||||||
const dieAfter=30000;
|
const dieAfter=30000;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
'use strict';
|
||||||
const cmd=require('node-cmd');
|
const cmd=require('node-cmd');
|
||||||
|
|
||||||
cmd.run(`node ${__dirname}/unixServer.js`);
|
cmd.run(`node ${__dirname}/unixServer.js`);
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
const ipc=require('../../../node-ipc');
|
const ipc=require('../../../node-ipc');
|
||||||
const process=require('process');
|
const process=require('process');
|
||||||
const dieAfter=30000;
|
const dieAfter=30000;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
const ipc=require('../../../node-ipc');
|
const ipc=require('../../../node-ipc');
|
||||||
const process=require('process');
|
const process=require('process');
|
||||||
const dieAfter=30000;
|
const dieAfter=30000;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
const ipc=require('../../../node-ipc');
|
const ipc=require('../../../node-ipc');
|
||||||
const process=require('process');
|
const process=require('process');
|
||||||
const dieAfter=30000;
|
const dieAfter=30000;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
const ipc=require('../../../node-ipc');
|
const ipc=require('../../../node-ipc');
|
||||||
const process=require('process');
|
const process=require('process');
|
||||||
const dieAfter=30000;
|
const dieAfter=30000;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
const ipc=require('../../../node-ipc');
|
const ipc=require('../../../node-ipc');
|
||||||
const process=require('process');
|
const process=require('process');
|
||||||
const dieAfter=30000;
|
const dieAfter=30000;
|
||||||
|
@ -17,11 +19,27 @@ ipc.config.silent=true;
|
||||||
|
|
||||||
ipc.serve(
|
ipc.serve(
|
||||||
function serverStarted(){
|
function serverStarted(){
|
||||||
|
let ready=false;
|
||||||
|
let messageDelay=500;
|
||||||
|
|
||||||
ipc.server.on(
|
ipc.server.on(
|
||||||
'message',
|
'message',
|
||||||
function gotMessage(data,socket){
|
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(
|
setTimeout(
|
||||||
function delayedMessage(){
|
function delayedMessage(){
|
||||||
|
ready=false;
|
||||||
ipc.server.emit(
|
ipc.server.emit(
|
||||||
socket,
|
socket,
|
||||||
'message',
|
'message',
|
||||||
|
|
Loading…
Reference in a new issue