auto-updated coverage reports

This commit is contained in:
Mostafa Samir 2016-04-01 19:50:28 +02:00
parent d2aaa7eb0e
commit b60152d0b3
13 changed files with 780 additions and 767 deletions

File diff suppressed because one or more lines are too long

View file

@ -20,24 +20,24 @@
</h1>
<div class='clearfix'>
<div class='fl pad1y space-right2'>
<span class="strong">68.59% </span>
<span class="strong">69.68% </span>
<span class="quiet">Statements</span>
<span class='fraction'>286/417</span>
<span class='fraction'>285/409</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">56.37% </span>
<span class="strong">56.52% </span>
<span class="quiet">Branches</span>
<span class='fraction'>115/204</span>
<span class='fraction'>117/207</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">88.1% </span>
<span class="strong">90.24% </span>
<span class="quiet">Functions</span>
<span class='fraction'>37/42</span>
<span class='fraction'>37/41</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">68.59% </span>
<span class="strong">69.68% </span>
<span class="quiet">Lines</span>
<span class='fraction'>286/417</span>
<span class='fraction'>285/409</span>
</div>
</div>
</div>
@ -62,39 +62,39 @@
<td class="file high" data-value="node-ipc/"><a href="node-ipc/index.html">node-ipc/</a></td>
<td data-value="100" class="pic high"><div class="chart"><div class="cover-fill cover-full" style="width: 100%;"></div><div class="cover-empty" style="width:0%;"></div></div></td>
<td data-value="100" class="pct high">100%</td>
<td data-value="5" class="abs high">5/5</td>
<td data-value="4" class="abs high">4/4</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="0" class="abs high">0/0</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="1" class="abs high">1/1</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="5" class="abs high">5/5</td>
<td data-value="4" class="abs high">4/4</td>
</tr>
<tr>
<td class="file medium" data-value="node-ipc/dao/"><a href="node-ipc/dao/index.html">node-ipc/dao/</a></td>
<td data-value="67.79" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 67%;"></div><div class="cover-empty" style="width:33%;"></div></div></td>
<td data-value="67.79" class="pct medium">67.79%</td>
<td data-value="267" class="abs medium">181/267</td>
<td data-value="54.55" class="pct medium">54.55%</td>
<td data-value="132" class="abs medium">72/132</td>
<td data-value="87.1" class="pct high">87.1%</td>
<td data-value="31" class="abs high">27/31</td>
<td data-value="67.79" class="pct medium">67.79%</td>
<td data-value="267" class="abs medium">181/267</td>
<td data-value="70.52" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 70%;"></div><div class="cover-empty" style="width:30%;"></div></div></td>
<td data-value="70.52" class="pct medium">70.52%</td>
<td data-value="268" class="abs medium">189/268</td>
<td data-value="54.81" class="pct medium">54.81%</td>
<td data-value="135" class="abs medium">74/135</td>
<td data-value="90.32" class="pct high">90.32%</td>
<td data-value="31" class="abs high">28/31</td>
<td data-value="70.52" class="pct medium">70.52%</td>
<td data-value="268" class="abs medium">189/268</td>
</tr>
<tr>
<td class="file high" data-value="node-ipc/entities/"><a href="node-ipc/entities/index.html">node-ipc/entities/</a></td>
<td data-value="100" class="pic high"><div class="chart"><div class="cover-fill cover-full" style="width: 100%;"></div><div class="cover-empty" style="width:0%;"></div></div></td>
<td data-value="100" class="pct high">100%</td>
<td data-value="12" class="abs high">12/12</td>
<td data-value="4" class="abs high">4/4</td>
<td data-value="50" class="pct medium">50%</td>
<td data-value="2" class="abs medium">1/2</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="2" class="abs high">2/2</td>
<td data-value="1" class="abs high">1/1</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="12" class="abs high">12/12</td>
<td data-value="4" class="abs high">4/4</td>
</tr>
<tr>
@ -116,7 +116,7 @@
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 21:12:33 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Fri Apr 01 2016 19:39:02 GMT+0200 (Egypt Standard Time)
</div>
</div>
<script src="prettify.js"></script>

View file

@ -1,7 +1,7 @@
<!doctype html>
<html lang="en">
<head>
<title>Code coverage report for node-ipc/dao/client.js</title>
<title>Code coverage report for node-ipc\dao\client.js</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="../../prettify.css" />
<link rel="stylesheet" href="../../base.css" />
@ -20,14 +20,14 @@
</h1>
<div class='clearfix'>
<div class='fl pad1y space-right2'>
<span class="strong">72.82% </span>
<span class="strong">75.73% </span>
<span class="quiet">Statements</span>
<span class='fraction'>75/103</span>
<span class='fraction'>78/103</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">52.38% </span>
<span class="strong">54.76% </span>
<span class="quiet">Branches</span>
<span class='fraction'>22/42</span>
<span class='fraction'>23/42</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
@ -35,9 +35,9 @@
<span class='fraction'>10/10</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">72.82% </span>
<span class="strong">75.73% </span>
<span class="quiet">Lines</span>
<span class='fraction'>75/103</span>
<span class='fraction'>78/103</span>
</div>
</div>
</div>
@ -337,23 +337,23 @@
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">13×</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">13×</span>
<span class="cline-any cline-yes">13×</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">13×</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
@ -361,9 +361,9 @@
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">5×</span>
<span class="cline-any cline-yes">5×</span>
<span class="cline-any cline-yes">5×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
@ -398,18 +398,18 @@
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">13×</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">13×</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">10×</span>
<span class="cline-any cline-yes">10×</span>
<span class="cline-any cline-yes">9×</span>
<span class="cline-any cline-yes">9×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">13×</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">3×</span>
@ -418,14 +418,14 @@
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">13×</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">13×</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">13×</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
@ -443,17 +443,17 @@
<span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">5×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">5×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">5×</span>
<span class="cline-any cline-yes">5×</span>
<span class="cline-any cline-yes">5×</span>
<span class="cline-any cline-yes">5×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">5×</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
@ -462,11 +462,11 @@
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">5×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">13×</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">7×</span>
@ -546,14 +546,14 @@ function init(config,log){
}
&nbsp;
function emit(type,data){
this.log('dispatching event to '.debug, this.id.variable, this.path.variable,' : ', type.data,',', data);
this.log('dispatching event to ', this.id, this.path, ' : ', type, ',', data);
&nbsp;
let message=new Message;
message.type=type;
message.data=data;
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(this.config.rawBuffer){
<span class="cstat-no" title="statement not covered" > message=new Buffer(type,this.encoding);</span>
<span class="cstat-no" title="statement not covered" > message=new Buffer(type,this.config.encoding);</span>
}else{
message=eventParser.format(message);
}
@ -569,7 +569,7 @@ function emit(type,data){
}
&nbsp;
function syncEmit(message){
this.log('dispatching event to '.debug, this.id.variable, this.path.variable,' : ', message.data);
this.log('dispatching event to ', this.id, this.path, ' : ', message);
this.socket.write(message);
}
&nbsp;
@ -577,21 +577,21 @@ function connect(){
//init client object for scope persistance especially inside of socket events.
let client=this;
&nbsp;
client.log('requested connection to '.debug, client.id.variable, client.path.variable);
client.log('requested connection to ', client.id, client.path);
<span class="missing-if-branch" title="if path not taken" >I</span>if(!this.path){
<span class="cstat-no" title="statement not covered" > client.log('\n\n######\nerror: '.error, client.id .info,' client has not specified socket path it wishes to connect to.'.error);</span>
<span class="cstat-no" title="statement not covered" > client.log('\n\n######\nerror: ', client.id ,' client has not specified socket path it wishes to connect to.');</span>
<span class="cstat-no" title="statement not covered" > return;</span>
}
&nbsp;
if(!client.port){
client.log('Connecting client on Unix Socket :'.debug, client.path.variable);
client.log('Connecting client on Unix Socket :', client.path);
&nbsp;
let path = client.path;
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if (process.platform ==='win32' &amp;&amp; <span class="branch-1 cbranch-no" title="branch not covered" >!client.path.startsWith('\\\\.\\pipe\\'))</span>{
<span class="cstat-no" title="statement not covered" > path = path.replace(/^\//, '');</span>
<span class="cstat-no" title="statement not covered" > path = path.replace(/\//g, '-');</span>
<span class="cstat-no" title="statement not covered" > path= `\\\\.\\pipe\\${path}`;</span>
<span class="missing-if-branch" title="else path not taken" >E</span>if (process.platform ==='win32' &amp;&amp; !client.path.startsWith('\\\\.\\pipe\\')){
path = path.replace(/^\//, '');
path = path.replace(/\//g, '-');
path= `\\\\.\\pipe\\${path}`;
}
client.socket = net.connect(
{
@ -600,7 +600,7 @@ function connect(){
);
}else{
<span class="missing-if-branch" title="else path not taken" >E</span>if(!client.config.tls){
client.log('Connecting client via TCP to'.debug, client.path.variable ,client.port);
client.log('Connecting client via TCP to', client.path ,client.port);
client.socket = net.connect(
{
port:client.port,
@ -608,7 +608,7 @@ function connect(){
}
);
}else{
<span class="cstat-no" title="statement not covered" > client.log('Connecting client via TLS to'.debug, client.path.variable ,client.port,client.config.tls);</span>
<span class="cstat-no" title="statement not covered" > client.log('Connecting client via TLS to', client.path ,client.port,client.config.tls);</span>
<span class="cstat-no" title="statement not covered" > if(client.config.tls.private){</span>
<span class="cstat-no" title="statement not covered" > client.config.tls.key=fs.readFileSync(client.config.tls.private);</span>
}
@ -641,7 +641,7 @@ function connect(){
client.socket.on(
'error',
function(err){
client.log('\n\n######\nerror: '.error, err);
client.log('\n\n######\nerror: ', err);
client.trigger('error', err);
&nbsp;
}
@ -659,8 +659,8 @@ function connect(){
client.socket.on(
'close',
function connectionClosed(){
client.log('connection closed'.notice ,client.id.variable , client.path.variable,
`${client.retriesRemaining} tries remaining of ${client.config.maxRetries}`
client.log('connection closed' ,client.id , client.path,
client.retriesRemaining, 'tries remaining of', client.config.maxRetries
);
&nbsp;
if(
@ -669,8 +669,8 @@ function connect(){
){
client.trigger('disconnect');
client.log(
client.config.id.variable,
'exceeded connection rety amount of'.warn,
(client.config.id),
'exceeded connection rety amount of',
' or stopRetrying flag set.'
);
&nbsp;
@ -707,11 +707,11 @@ function connect(){
client.socket.on(
'data',
function(data) {
client.log('## recieved events ##'.rainbow);
client.log('## recieved events ##');
<span class="missing-if-branch" title="if path not taken" >I</span>if(client.config.rawBuffer){
<span class="cstat-no" title="statement not covered" > client.trigger(</span>
'data',
new Buffer(data,this.encoding)
new Buffer(data,client.config.encoding)
);
<span class="cstat-no" title="statement not covered" > if(!client.config.sync){</span>
<span class="cstat-no" title="statement not covered" > return;</span>
@ -728,7 +728,7 @@ function connect(){
data=(this.ipcBuffer+=data);
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(data.slice(-1)!=eventParser.delimiter || data.indexOf(eventParser.delimiter) == -1){
<span class="cstat-no" title="statement not covered" > client.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" > client.log('Messages are large, You may want to consider smaller messages.');</span>
<span class="cstat-no" title="statement not covered" > return;</span>
}
&nbsp;
@ -740,7 +740,7 @@ function connect(){
let message=new Message;
message.load(events[i]);
&nbsp;
client.log('detected event of type '.debug, message.type.data, message.data);
client.log('detected event', message.type, message.data);
client.trigger(
message.type,
message.data
@ -763,7 +763,7 @@ module.exports=init;
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 21:12:33 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Fri Apr 01 2016 19:39:02 GMT+0200 (Egypt Standard Time)
</div>
</div>
<script src="../../prettify.js"></script>

View file

@ -1,7 +1,7 @@
<!doctype html>
<html lang="en">
<head>
<title>Code coverage report for node-ipc/dao/eventParser.js</title>
<title>Code coverage report for node-ipc\dao\eventParser.js</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="../../prettify.css" />
<link rel="stylesheet" href="../../base.css" />
@ -25,9 +25,9 @@
<span class='fraction'>11/13</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">50% </span>
<span class="strong">42.86% </span>
<span class="quiet">Branches</span>
<span class='fraction'>2/4</span>
<span class='fraction'>3/7</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
@ -91,9 +91,9 @@
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">9×</span>
<span class="cline-any cline-yes">9×</span>
<span class="cline-any cline-yes">9×</span>
<span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
@ -106,7 +106,7 @@ const parser={
};
&nbsp;
function formatData(message){
<span class="missing-if-branch" title="if path not taken" >I</span>if(!message.data){
<span class="missing-if-branch" title="if path not taken" >I</span>if(!message.data &amp;&amp; <span class="branch-1 cbranch-no" title="branch not covered" >message.data!==false </span>&amp;&amp; <span class="branch-2 cbranch-no" title="branch not covered" >message.data!==0)</span>{
<span class="cstat-no" title="statement not covered" > message.data={};</span>
}
<span class="missing-if-branch" title="if path not taken" >I</span>if(message.data['_maxListeners']){
@ -130,7 +130,7 @@ module.exports=parser;
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 21:12:33 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Fri Apr 01 2016 19:39:02 GMT+0200 (Egypt Standard Time)
</div>
</div>
<script src="../../prettify.js"></script>

View file

@ -1,7 +1,7 @@
<!doctype html>
<html lang="en">
<head>
<title>Code coverage report for node-ipc/dao/</title>
<title>Code coverage report for node-ipc\dao\</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="../../prettify.css" />
<link rel="stylesheet" href="../../base.css" />
@ -20,24 +20,24 @@
</h1>
<div class='clearfix'>
<div class='fl pad1y space-right2'>
<span class="strong">67.79% </span>
<span class="strong">70.52% </span>
<span class="quiet">Statements</span>
<span class='fraction'>181/267</span>
<span class='fraction'>189/268</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">54.55% </span>
<span class="strong">54.81% </span>
<span class="quiet">Branches</span>
<span class='fraction'>72/132</span>
<span class='fraction'>74/135</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">87.1% </span>
<span class="strong">90.32% </span>
<span class="quiet">Functions</span>
<span class='fraction'>27/31</span>
<span class='fraction'>28/31</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">67.79% </span>
<span class="strong">70.52% </span>
<span class="quiet">Lines</span>
<span class='fraction'>181/267</span>
<span class='fraction'>189/268</span>
</div>
</div>
</div>
@ -60,15 +60,15 @@
</thead>
<tbody><tr>
<td class="file medium" data-value="client.js"><a href="client.js.html">client.js</a></td>
<td data-value="72.82" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 72%;"></div><div class="cover-empty" style="width:28%;"></div></div></td>
<td data-value="72.82" class="pct medium">72.82%</td>
<td data-value="103" class="abs medium">75/103</td>
<td data-value="52.38" class="pct medium">52.38%</td>
<td data-value="42" class="abs medium">22/42</td>
<td data-value="75.73" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 75%;"></div><div class="cover-empty" style="width:25%;"></div></div></td>
<td data-value="75.73" class="pct medium">75.73%</td>
<td data-value="103" class="abs medium">78/103</td>
<td data-value="54.76" class="pct medium">54.76%</td>
<td data-value="42" class="abs medium">23/42</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="10" class="abs high">10/10</td>
<td data-value="72.82" class="pct medium">72.82%</td>
<td data-value="103" class="abs medium">75/103</td>
<td data-value="75.73" class="pct medium">75.73%</td>
<td data-value="103" class="abs medium">78/103</td>
</tr>
<tr>
@ -76,8 +76,8 @@
<td data-value="84.62" class="pic high"><div class="chart"><div class="cover-fill" style="width: 84%;"></div><div class="cover-empty" style="width:16%;"></div></div></td>
<td data-value="84.62" class="pct high">84.62%</td>
<td data-value="13" class="abs high">11/13</td>
<td data-value="50" class="pct medium">50%</td>
<td data-value="4" class="abs medium">2/4</td>
<td data-value="42.86" class="pct low">42.86%</td>
<td data-value="7" class="abs low">3/7</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="2" class="abs high">2/2</td>
<td data-value="84.62" class="pct high">84.62%</td>
@ -86,15 +86,15 @@
<tr>
<td class="file medium" data-value="socketServer.js"><a href="socketServer.js.html">socketServer.js</a></td>
<td data-value="62.91" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 62%;"></div><div class="cover-empty" style="width:38%;"></div></div></td>
<td data-value="62.91" class="pct medium">62.91%</td>
<td data-value="151" class="abs medium">95/151</td>
<td data-value="65.79" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 65%;"></div><div class="cover-empty" style="width:35%;"></div></div></td>
<td data-value="65.79" class="pct medium">65.79%</td>
<td data-value="152" class="abs medium">100/152</td>
<td data-value="55.81" class="pct medium">55.81%</td>
<td data-value="86" class="abs medium">48/86</td>
<td data-value="78.95" class="pct medium">78.95%</td>
<td data-value="19" class="abs medium">15/19</td>
<td data-value="62.91" class="pct medium">62.91%</td>
<td data-value="151" class="abs medium">95/151</td>
<td data-value="84.21" class="pct high">84.21%</td>
<td data-value="19" class="abs high">16/19</td>
<td data-value="65.79" class="pct medium">65.79%</td>
<td data-value="152" class="abs medium">100/152</td>
</tr>
</tbody>
@ -103,7 +103,7 @@
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 21:12:33 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Fri Apr 01 2016 19:39:02 GMT+0200 (Egypt Standard Time)
</div>
</div>
<script src="../../prettify.js"></script>

View file

@ -1,7 +1,7 @@
<!doctype html>
<html lang="en">
<head>
<title>Code coverage report for node-ipc/dao/socketServer.js</title>
<title>Code coverage report for node-ipc\dao\socketServer.js</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="../../prettify.css" />
<link rel="stylesheet" href="../../base.css" />
@ -20,9 +20,9 @@
</h1>
<div class='clearfix'>
<div class='fl pad1y space-right2'>
<span class="strong">62.91% </span>
<span class="strong">65.79% </span>
<span class="quiet">Statements</span>
<span class='fraction'>95/151</span>
<span class='fraction'>100/152</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">55.81% </span>
@ -30,14 +30,14 @@
<span class='fraction'>48/86</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">78.95% </span>
<span class="strong">84.21% </span>
<span class="quiet">Functions</span>
<span class='fraction'>15/19</span>
<span class='fraction'>16/19</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">62.91% </span>
<span class="strong">65.79% </span>
<span class="quiet">Lines</span>
<span class='fraction'>95/151</span>
<span class='fraction'>100/152</span>
</div>
</div>
</div>
@ -415,7 +415,9 @@
370
371
372
373</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
373
374
375</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
@ -434,6 +436,7 @@
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
@ -560,7 +563,7 @@
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
@ -580,7 +583,7 @@
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
@ -588,9 +591,9 @@
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
@ -600,24 +603,24 @@
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
@ -626,11 +629,11 @@
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
@ -640,31 +643,32 @@
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
@ -673,31 +677,31 @@
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
@ -709,9 +713,9 @@
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
@ -754,31 +758,31 @@
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
@ -798,14 +802,15 @@ const net = require('net'),
Message = require('js-message');
&nbsp;
function emit(socket, type, data){
this.log('dispatching event to socket'.debug, ' : ', type.data, data);
this.log('dispatching event to socket', ' : ', type, data);
&nbsp;
let message=new Message;
message.type=type;
message.data=data;
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(this.config.rawBuffer){
<span class="cstat-no" title="statement not covered" > message=new Buffer(type,this.encoding);</span>
<span class="cstat-no" title="statement not covered" > console.log(this.config.encoding)</span>
<span class="cstat-no" title="statement not covered" > message=new Buffer(type,this.config.encoding);</span>
}else{
message=eventParser.format(message);
}
@ -829,13 +834,13 @@ function emit(socket, type, data){
}
&nbsp;
<span class="fstat-no" title="function not covered" >function broadcast(type,data){</span>
<span class="cstat-no" title="statement not covered" > this.log('broadcasting event to all known sockets listening to '.debug, this.path.variable,' : ', ((this.port)?this.port:''), type, data);</span>
<span class="cstat-no" title="statement not covered" > this.log('broadcasting event to all known sockets listening to ', this.path,' : ', ((this.port)?this.port:''), type, data);</span>
<span class="cstat-no" title="statement not covered" > let message=new Message;</span>
<span class="cstat-no" title="statement not covered" > message.type=type;</span>
<span class="cstat-no" title="statement not covered" > message.data=data;</span>
&nbsp;
<span class="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.config.encoding);</span>
}else{
<span class="cstat-no" title="statement not covered" > message=eventParser.format(message);</span>
}
@ -874,7 +879,7 @@ function init(path,config,log,port){
},
start : function start(){
<span class="missing-if-branch" title="if path not taken" >I</span>if(!this.path){
<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');</span>
<span class="cstat-no" title="statement not covered" > return;</span>
}
&nbsp;
@ -882,8 +887,8 @@ function init(path,config,log,port){
this.path,
function () {
server.log(
'starting server on '.debug,server.path.variable,
((server.port)?`:${server.port}`:'').variable
'starting server on ',server.path,
((server.port)?`:${server.port}`:'')
);
&nbsp;
if(!server.udp4 &amp;&amp; !server.udp6){
@ -892,7 +897,7 @@ function init(path,config,log,port){
serverCreated
);
}else{
<span class="cstat-no" title="statement not covered" > server.log('starting TLS server'.debug,server.config.tls);</span>
<span class="cstat-no" title="statement not covered" > server.log('starting TLS server',server.config.tls);</span>
<span class="cstat-no" title="statement not covered" > if(server.config.tls.private){</span>
<span class="cstat-no" title="statement not covered" > server.config.tls.key=fs.readFileSync(server.config.tls.private);</span>
}else{
@ -933,7 +938,7 @@ function init(path,config,log,port){
socket.address,
function(err, bytes) {
<span class="missing-if-branch" title="if path not taken" >I</span>if(err){
<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',err);</span>
<span class="cstat-no" title="statement not covered" > server.trigger(</span>
'error',
<span class="fstat-no" title="function not covered" > function(err){</span>
@ -959,10 +964,10 @@ function init(path,config,log,port){
&nbsp;
server.server.on(
'error',
<span class="fstat-no" title="function not covered" > function(err){</span>
<span class="cstat-no" title="statement not covered" > server.log('server error'.warn,err);</span>
function(err){
server.log('server error',err);
&nbsp;
<span class="cstat-no" title="statement not covered" > server.trigger(</span>
server.trigger(
'error',
err
);
@ -978,7 +983,7 @@ function init(path,config,log,port){
socket.setEncoding(server.config.encoding);
}
&nbsp;
server.log('## socket connection to server detected ##'.rainbow);
server.log('## socket connection to server detected ##');
socket.on(
'close',
function(socket){
@ -992,7 +997,7 @@ function init(path,config,log,port){
socket.on(
'error',
<span class="fstat-no" title="function not covered" > function(err){</span>
<span class="cstat-no" title="statement not covered" > server.log('server socket error'.warn,err);</span>
<span class="cstat-no" title="statement not covered" > server.log('server socket error',err);</span>
&nbsp;
<span class="cstat-no" title="statement not covered" > server.trigger('error',err);</span>
}
@ -1003,7 +1008,7 @@ function init(path,config,log,port){
function(data,UDPSocket){
let sock=((server.udp4 || server.udp6)? UDPSocket : <span class="branch-1 cbranch-no" title="branch not covered" >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" > data=new Buffer(data,this.encoding);</span>
<span class="cstat-no" title="statement not covered" > data=new Buffer(data,server.config.encoding);</span>
<span class="cstat-no" title="statement not covered" > server.trigger(</span>
'data',
data,
@ -1019,7 +1024,7 @@ function init(path,config,log,port){
data=(this.ipcBuffer+=data);
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(data.slice(-1)!=eventParser.delimiter || data.indexOf(eventParser.delimiter) == -1){
<span class="cstat-no" title="statement not covered" > 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('Messages are large, You may want to consider smaller messages.');</span>
<span class="cstat-no" title="statement not covered" > return;</span>
}
&nbsp;
@ -1031,10 +1036,11 @@ function init(path,config,log,port){
let message=new Message;
message.load(data.shift());
&nbsp;
server.log('received event of : '.debug,message.type.data,message.data);
server.log('received event of : ',message.type,message.data);
&nbsp;
<span class="missing-if-branch" title="else path not taken" >E</span>if(message.data.id)
<span class="missing-if-branch" title="else path not taken" >E</span>if(message.data.id){
sock.id=message.data.id;
}
&nbsp;
server.trigger(
message.type,
@ -1052,11 +1058,11 @@ function init(path,config,log,port){
<span class="cstat-no" title="statement not covered" > return;</span>
}
&nbsp;
server.log('Received UDP message from '.debug, rinfo.address.variable, rinfo.port);
server.log('Received UDP message from ', rinfo.address, rinfo.port);
let data;
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(server.config.rawSocket){
<span class="cstat-no" title="statement not covered" > data=new Buffer(msg,this.encoding);</span>
<span class="cstat-no" title="statement not covered" > data=new Buffer(msg,server.config.encoding);</span>
}else{
data=msg.toString();
}
@ -1079,11 +1085,11 @@ function init(path,config,log,port){
}
&nbsp;
if(!port){
server.log('starting server as'.debug, 'Unix || Windows Socket'.variable);
<span class="missing-if-branch" title="if path not taken" >I</span>if (process.platform ==='win32'){
<span class="cstat-no" title="statement not covered" > server.path = server.path.replace(/^\//, '');</span>
<span class="cstat-no" title="statement not covered" > server.path = server.path.replace(/\//g, '-');</span>
<span class="cstat-no" title="statement not covered" > server.path= `\\\\.\\pipe\\${server.path}`;</span>
server.log('starting server as', 'Unix || Windows Socket');
<span class="missing-if-branch" title="else path not taken" >E</span>if (process.platform ==='win32'){
server.path = server.path.replace(/^\//, '');
server.path = server.path.replace(/\//g, '-');
server.path= `\\\\.\\pipe\\${server.path}`;
}
&nbsp;
server.server.listen(
@ -1095,7 +1101,7 @@ function init(path,config,log,port){
}
&nbsp;
if(!server.udp4 &amp;&amp; !server.udp6){
server.log('starting server as'.debug, (server.config.tls?<span class="branch-0 cbranch-no" title="branch not covered" >'TLS':</span>'TCP').variable);
server.log('starting server as', (server.config.tls?<span class="branch-0 cbranch-no" title="branch not covered" >'TLS':</span>'TCP'));
server.server.listen(
server.port,
server.path,
@ -1104,7 +1110,7 @@ function init(path,config,log,port){
return;
}
&nbsp;
server.log('starting server as'.debug,((server.udp4)? 'udp4':'udp6').variable);
server.log('starting server as',((server.udp4)? 'udp4':'udp6'));
server.server.bind(
server.port,
server.path
@ -1140,7 +1146,7 @@ function init(path,config,log,port){
<span class="cstat-no" title="statement not covered" > destroyedSocketId=socket.id;</span>
}
&nbsp;
server.log('socket disconnected'.notice,destroyedSocketId.toString().variable);
server.log('socket disconnected',destroyedSocketId.toString());
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(socket &amp;&amp; socket.destroy){
<span class="cstat-no" title="statement not covered" > socket.destroy();</span>
@ -1165,7 +1171,7 @@ module.exports=init;
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 21:12:33 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Fri Apr 01 2016 19:39:02 GMT+0200 (Egypt Standard Time)
</div>
</div>
<script src="../../prettify.js"></script>

View file

@ -1,7 +1,7 @@
<!doctype html>
<html lang="en">
<head>
<title>Code coverage report for node-ipc/entities/Defaults.js</title>
<title>Code coverage report for node-ipc\entities\Defaults.js</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="../../prettify.css" />
<link rel="stylesheet" href="../../base.css" />
@ -136,7 +136,19 @@
91
92
93
94</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
94
95
96
97
98
99
100
101
102
103
104
105</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
@ -228,8 +240,19 @@
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">'use strict';
&nbsp;
const os = require('os');
&nbsp;
class Defaults{
@ -254,7 +277,7 @@ class Defaults{
networkHost : {
enumerable:true,
writable:true,
value:(IPType=='IPv6')? <span class="branch-0 cbranch-no" title="branch not covered" >'::1' </span>: '127.0.0.1'
value:(IPType=='IPv6')? '::1' : <span class="branch-1 cbranch-no" title="branch not covered" >'127.0.0.1'</span>
},
networkPort : {
enumerable:true,
@ -286,6 +309,16 @@ class Defaults{
writable:true,
value:false
},
logDepth:{
enumerable:true,
writable:true,
value:5
},
logInColor:{
enumerable:true,
writable:true,
value:true
},
maxConnections : {
enumerable:true,
writable:true,
@ -328,7 +361,7 @@ module.exports=Defaults;
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 21:12:33 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Fri Apr 01 2016 19:39:02 GMT+0200 (Egypt Standard Time)
</div>
</div>
<script src="../../prettify.js"></script>

View file

@ -1,7 +1,7 @@
<!doctype html>
<html lang="en">
<head>
<title>Code coverage report for node-ipc/entities/</title>
<title>Code coverage report for node-ipc\entities\</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="../../prettify.css" />
<link rel="stylesheet" href="../../base.css" />
@ -22,7 +22,7 @@
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>12/12</span>
<span class='fraction'>4/4</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">50% </span>
@ -32,12 +32,12 @@
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Functions</span>
<span class='fraction'>2/2</span>
<span class='fraction'>1/1</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>12/12</span>
<span class='fraction'>4/4</span>
</div>
</div>
</div>
@ -71,26 +71,13 @@
<td data-value="4" class="abs high">4/4</td>
</tr>
<tr>
<td class="file high" data-value="LogColors.js"><a href="LogColors.js.html">LogColors.js</a></td>
<td data-value="100" class="pic high"><div class="chart"><div class="cover-fill cover-full" style="width: 100%;"></div><div class="cover-empty" style="width:0%;"></div></div></td>
<td data-value="100" class="pct high">100%</td>
<td data-value="8" class="abs high">8/8</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="0" class="abs high">0/0</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="1" class="abs high">1/1</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="8" class="abs high">8/8</td>
</tr>
</tbody>
</table>
</div><div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 21:12:33 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Fri Apr 01 2016 19:39:02 GMT+0200 (Egypt Standard Time)
</div>
</div>
<script src="../../prettify.js"></script>

View file

@ -1,7 +1,7 @@
<!doctype html>
<html lang="en">
<head>
<title>Code coverage report for node-ipc/</title>
<title>Code coverage report for node-ipc\</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="../prettify.css" />
<link rel="stylesheet" href="../base.css" />
@ -22,7 +22,7 @@
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>5/5</span>
<span class='fraction'>4/4</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
@ -37,7 +37,7 @@
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>5/5</span>
<span class='fraction'>4/4</span>
</div>
</div>
</div>
@ -62,13 +62,13 @@
<td class="file high" data-value="node-ipc.js"><a href="node-ipc.js.html">node-ipc.js</a></td>
<td data-value="100" class="pic high"><div class="chart"><div class="cover-fill cover-full" style="width: 100%;"></div><div class="cover-empty" style="width:0%;"></div></div></td>
<td data-value="100" class="pct high">100%</td>
<td data-value="5" class="abs high">5/5</td>
<td data-value="4" class="abs high">4/4</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="0" class="abs high">0/0</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="1" class="abs high">1/1</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="5" class="abs high">5/5</td>
<td data-value="4" class="abs high">4/4</td>
</tr>
</tbody>
@ -77,7 +77,7 @@
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 21:12:33 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Fri Apr 01 2016 19:39:02 GMT+0200 (Egypt Standard Time)
</div>
</div>
<script src="../prettify.js"></script>

View file

@ -1,7 +1,7 @@
<!doctype html>
<html lang="en">
<head>
<title>Code coverage report for node-ipc/node-ipc.js</title>
<title>Code coverage report for node-ipc\node-ipc.js</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="../prettify.css" />
<link rel="stylesheet" href="../base.css" />
@ -22,7 +22,7 @@
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>5/5</span>
<span class='fraction'>4/4</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
@ -37,7 +37,7 @@
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>5/5</span>
<span class='fraction'>4/4</span>
</div>
</div>
</div>
@ -64,19 +64,12 @@
19
20
21
22
23
24
25
26
27</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
22</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
@ -91,15 +84,10 @@
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">'use strict';
&nbsp;
const colors = require('colors'),
LogColors = require('./entities/LogColors.js'),
IPC = require('./services/IPC.js');
const IPC = require('./services/IPC.js');
&nbsp;
class IPCModule extends IPC{
constructor(){
@ -117,9 +105,6 @@ class IPCModule extends IPC{
}
}
&nbsp;
&nbsp;
colors.setTheme(new LogColors);
&nbsp;
module.exports=new IPCModule;
&nbsp;</pre></td></tr>
</table></pre>
@ -127,7 +112,7 @@ module.exports=new IPCModule;
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 21:12:33 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Fri Apr 01 2016 19:39:02 GMT+0200 (Egypt Standard Time)
</div>
</div>
<script src="../prettify.js"></script>

View file

@ -1,7 +1,7 @@
<!doctype html>
<html lang="en">
<head>
<title>Code coverage report for node-ipc/services/IPC.js</title>
<title>Code coverage report for node-ipc\services\IPC.js</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="../../prettify.css" />
<link rel="stylesheet" href="../../base.css" />
@ -371,7 +371,13 @@
326
327
328
329</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
329
330
331
332
333
334
335</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
@ -435,21 +441,27 @@
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">114×</span>
<span class="cline-any cline-yes">107×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">114×</span>
<span class="cline-any cline-yes">107×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">114×</span>
<span class="cline-any cline-yes">346×</span>
<span class="cline-any cline-yes">318×</span>
<span class="cline-any cline-yes">107×</span>
<span class="cline-any cline-yes">351×</span>
<span class="cline-any cline-yes">324×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">28×</span>
<span class="cline-any cline-yes">27×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">114×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">107×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
@ -767,14 +779,20 @@ function log(){
<span class="cstat-no" title="statement not covered" > return;</span>
}
&nbsp;
let args=Array.prototype.slice.call(arguments);
const args=Array.prototype.slice.call(arguments);
&nbsp;
for(let i=0, count=args.length; i&lt;count; i++){
if(typeof args[i] != 'object'){
continue;
}
&nbsp;
args[i]=util.inspect(args[i],{colors:true});
args[i]=util.inspect(
args[i],
{
depth:this.config.logDepth,
colors:this.config.logInColor
}
);
}
&nbsp;
console.log(
@ -1033,7 +1051,7 @@ module.exports=IPC;
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 21:12:33 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Fri Apr 01 2016 19:39:02 GMT+0200 (Egypt Standard Time)
</div>
</div>
<script src="../../prettify.js"></script>

View file

@ -1,7 +1,7 @@
<!doctype html>
<html lang="en">
<head>
<title>Code coverage report for node-ipc/services/</title>
<title>Code coverage report for node-ipc\services\</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="../../prettify.css" />
<link rel="stylesheet" href="../../base.css" />
@ -77,7 +77,7 @@
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 21:12:33 GMT-0800 (PST)
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Fri Apr 01 2016 19:39:02 GMT+0200 (Egypt Standard Time)
</div>
</div>
<script src="../../prettify.js"></script>

File diff suppressed because it is too large Load diff