Merge pull request #72 from Mostafa-Samir/win/fixes

Fixing retry logic and UDP4 default host
This commit is contained in:
Brandon Nozaki Miller 2016-07-14 16:03:22 -07:00 committed by GitHub
commit bec3950022
18 changed files with 774 additions and 799 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
/nbproject/private/ /nbproject/private/
/node_modules/ /node_modules/
/nbproject /nbproject
npm-debug.log

View file

@ -163,21 +163,10 @@ function connect(){
return; return;
} }
client.isRetrying=true;
setTimeout( setTimeout(
function retryTimeout(){ function retryTimeout(){
client.retriesRemaining--; client.retriesRemaining--;
client.isRetrying=false;
client.connect(); client.connect();
setTimeout(
function resetRetriesCheck(){
if(!client.isRetrying){
client.retriesRemaining=client.config.maxRetries;
}
},
100
);
}.bind(null,client), }.bind(null,client),
client.config.retry client.config.retry
); );

View file

@ -24,6 +24,7 @@
"codacy-coverage": "^1.1.3" "codacy-coverage": "^1.1.3"
}, },
"scripts": { "scripts": {
"test-windows": "istanbul cover -x **/spec/** -dir ./spec/coverage ./node_modules/jasmine/bin/jasmine.js",
"test": "istanbul cover -x **/spec/** -dir ./spec/coverage jasmine", "test": "istanbul cover -x **/spec/** -dir ./spec/coverage jasmine",
"cover": "istanbul cover -x **/spec/** -dir ./spec/coverage jasmine", "cover": "istanbul cover -x **/spec/** -dir ./spec/coverage jasmine",
"coverup": "cat ./spec/coverage/lcov.info | codacy-coverage" "coverup": "cat ./spec/coverage/lcov.info | codacy-coverage"

View file

@ -203,6 +203,10 @@ function serveNet(host,port,UDPType,callback){
if(UDPType){ if(UDPType){
this.server[UDPType]=true; this.server[UDPType]=true;
if(UDPType === "udp4" && host === "::1") {
// bind udp4 socket to an ipv4 address
this.server.path = "127.0.0.1";
}
} }
this.server.on( this.server.on(

File diff suppressed because one or more lines are too long

View file

@ -20,24 +20,24 @@
</h1> </h1>
<div class='clearfix'> <div class='clearfix'>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">68.59% </span> <span class="strong">69.31% </span>
<span class="quiet">Statements</span> <span class="quiet">Statements</span>
<span class='fraction'>286/417</span> <span class='fraction'>280/404</span>
</div> </div>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">56.37% </span> <span class="strong">56.1% </span>
<span class="quiet">Branches</span> <span class="quiet">Branches</span>
<span class='fraction'>115/204</span> <span class='fraction'>115/205</span>
</div> </div>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">88.1% </span> <span class="strong">90% </span>
<span class="quiet">Functions</span> <span class="quiet">Functions</span>
<span class='fraction'>37/42</span> <span class='fraction'>36/40</span>
</div> </div>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">68.59% </span> <span class="strong">69.31% </span>
<span class="quiet">Lines</span> <span class="quiet">Lines</span>
<span class='fraction'>286/417</span> <span class='fraction'>280/404</span>
</div> </div>
</div> </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 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="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="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="100" class="pct high">100%</td>
<td data-value="0" class="abs high">0/0</td> <td data-value="0" class="abs high">0/0</td>
<td data-value="100" class="pct high">100%</td> <td data-value="100" class="pct high">100%</td>
<td data-value="1" class="abs high">1/1</td> <td data-value="1" class="abs high">1/1</td>
<td data-value="100" class="pct high">100%</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>
<tr> <tr>
<td class="file medium" data-value="node-ipc/dao/"><a href="node-ipc/dao/index.html">node-ipc/dao/</a></td> <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="69.96" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 69%;"></div><div class="cover-empty" style="width:31%;"></div></div></td>
<td data-value="67.79" class="pct medium">67.79%</td> <td data-value="69.96" class="pct medium">69.96%</td>
<td data-value="267" class="abs medium">181/267</td> <td data-value="263" class="abs medium">184/263</td>
<td data-value="54.55" class="pct medium">54.55%</td> <td data-value="54.14" class="pct medium">54.14%</td>
<td data-value="132" class="abs medium">72/132</td> <td data-value="133" class="abs medium">72/133</td>
<td data-value="87.1" class="pct high">87.1%</td> <td data-value="90" class="pct high">90%</td>
<td data-value="31" class="abs high">27/31</td> <td data-value="30" class="abs high">27/30</td>
<td data-value="67.79" class="pct medium">67.79%</td> <td data-value="69.96" class="pct medium">69.96%</td>
<td data-value="267" class="abs medium">181/267</td> <td data-value="263" class="abs medium">184/263</td>
</tr> </tr>
<tr> <tr>
<td class="file high" data-value="node-ipc/entities/"><a href="node-ipc/entities/index.html">node-ipc/entities/</a></td> <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="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="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="50" class="pct medium">50%</td>
<td data-value="2" class="abs medium">1/2</td> <td data-value="2" class="abs medium">1/2</td>
<td data-value="100" class="pct high">100%</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="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>
<tr> <tr>
@ -116,7 +116,7 @@
</div><!-- /wrapper --> </div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'> <div class='footer quiet pad2 space-top1 center small'>
Code coverage Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 21:12:33 GMT-0800 (PST) generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Fri Apr 01 2016 20:14:41 GMT+0200 (Egypt Standard Time)
</div> </div>
</div> </div>
<script src="prettify.js"></script> <script src="prettify.js"></script>

View file

@ -1,7 +1,7 @@
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en">
<head> <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" /> <meta charset="utf-8" />
<link rel="stylesheet" href="../../prettify.css" /> <link rel="stylesheet" href="../../prettify.css" />
<link rel="stylesheet" href="../../base.css" /> <link rel="stylesheet" href="../../base.css" />
@ -20,24 +20,24 @@
</h1> </h1>
<div class='clearfix'> <div class='clearfix'>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">72.82% </span> <span class="strong">74.49% </span>
<span class="quiet">Statements</span> <span class="quiet">Statements</span>
<span class='fraction'>75/103</span> <span class='fraction'>73/98</span>
</div> </div>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">52.38% </span> <span class="strong">52.5% </span>
<span class="quiet">Branches</span> <span class="quiet">Branches</span>
<span class='fraction'>22/42</span> <span class='fraction'>21/40</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>
<span class="quiet">Functions</span> <span class="quiet">Functions</span>
<span class='fraction'>10/10</span> <span class='fraction'>9/9</span>
</div> </div>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">72.82% </span> <span class="strong">74.49% </span>
<span class="quiet">Lines</span> <span class="quiet">Lines</span>
<span class='fraction'>75/103</span> <span class='fraction'>73/98</span>
</div> </div>
</div> </div>
</div> </div>
@ -270,18 +270,7 @@
225 225
226 226
227 227
228 228</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
229
230
231
232
233
234
235
236
237
238
239</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-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span> <span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span> <span class="cline-any cline-neutral">&nbsp;</span>
@ -351,9 +340,9 @@
<span class="cline-any cline-yes">7×</span> <span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-neutral">&nbsp;</span> <span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">7×</span> <span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-no">&nbsp;</span> <span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-no">&nbsp;</span> <span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-no">&nbsp;</span> <span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-neutral">&nbsp;</span> <span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">7×</span> <span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-neutral">&nbsp;</span> <span class="cline-any cline-neutral">&nbsp;</span>
@ -446,18 +435,7 @@
<span class="cline-any cline-yes">6×</span> <span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-neutral">&nbsp;</span> <span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">6×</span> <span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">6×</span> <span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span> <span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-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>
@ -546,14 +524,14 @@ function init(config,log){
} }
&nbsp; &nbsp;
function emit(type,data){ 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; &nbsp;
let message=new Message; let message=new Message;
message.type=type; message.type=type;
message.data=data; message.data=data;
&nbsp; &nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(this.config.rawBuffer){ <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{ }else{
message=eventParser.format(message); message=eventParser.format(message);
} }
@ -569,7 +547,7 @@ function emit(type,data){
} }
&nbsp; &nbsp;
function syncEmit(message){ 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); this.socket.write(message);
} }
&nbsp; &nbsp;
@ -577,21 +555,21 @@ function connect(){
//init client object for scope persistance especially inside of socket events. //init client object for scope persistance especially inside of socket events.
let client=this; let client=this;
&nbsp; &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="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> <span class="cstat-no" title="statement not covered" > return;</span>
} }
&nbsp; &nbsp;
if(!client.port){ if(!client.port){
client.log('Connecting client on Unix Socket :'.debug, client.path.variable); client.log('Connecting client on Unix Socket :', client.path);
&nbsp; &nbsp;
let path = client.path; let path = client.path;
&nbsp; &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="missing-if-branch" title="else path not taken" >E</span>if (process.platform ==='win32' &amp;&amp; !client.path.startsWith('\\\\.\\pipe\\')){
<span class="cstat-no" title="statement not covered" > path = path.replace(/^\//, '');</span> path = path.replace(/^\//, '');
<span class="cstat-no" title="statement not covered" > path = path.replace(/\//g, '-');</span> path = path.replace(/\//g, '-');
<span class="cstat-no" title="statement not covered" > path= `\\\\.\\pipe\\${path}`;</span> path= `\\\\.\\pipe\\${path}`;
} }
client.socket = net.connect( client.socket = net.connect(
{ {
@ -600,7 +578,7 @@ function connect(){
); );
}else{ }else{
<span class="missing-if-branch" title="else path not taken" >E</span>if(!client.config.tls){ <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( client.socket = net.connect(
{ {
port:client.port, port:client.port,
@ -608,7 +586,7 @@ function connect(){
} }
); );
}else{ }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" > 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> <span class="cstat-no" title="statement not covered" > client.config.tls.key=fs.readFileSync(client.config.tls.private);</span>
} }
@ -641,7 +619,7 @@ function connect(){
client.socket.on( client.socket.on(
'error', 'error',
function(err){ function(err){
client.log('\n\n######\nerror: '.error, err); client.log('\n\n######\nerror: ', err);
client.trigger('error', err); client.trigger('error', err);
&nbsp; &nbsp;
} }
@ -659,8 +637,8 @@ function connect(){
client.socket.on( client.socket.on(
'close', 'close',
function connectionClosed(){ function connectionClosed(){
client.log('connection closed'.notice ,client.id.variable , client.path.variable, client.log('connection closed' ,client.id , client.path,
`${client.retriesRemaining} tries remaining of ${client.config.maxRetries}` client.retriesRemaining, 'tries remaining of', client.config.maxRetries
); );
&nbsp; &nbsp;
if( if(
@ -669,8 +647,8 @@ function connect(){
){ ){
client.trigger('disconnect'); client.trigger('disconnect');
client.log( client.log(
client.config.id.variable, (client.config.id),
'exceeded connection rety amount of'.warn, 'exceeded connection rety amount of',
' or stopRetrying flag set.' ' or stopRetrying flag set.'
); );
&nbsp; &nbsp;
@ -680,22 +658,11 @@ function connect(){
&nbsp; &nbsp;
return; return;
} }
&nbsp;
client.isRetrying=true;
&nbsp; &nbsp;
setTimeout( setTimeout(
function retryTimeout(){ function retryTimeout(){
client.retriesRemaining--; client.retriesRemaining--;
client.isRetrying=false;
client.connect(); client.connect();
setTimeout(
function resetRetriesCheck(){
if(!client.isRetrying){
client.retriesRemaining=client.config.maxRetries;
}
},
100
);
}.bind(null,client), }.bind(null,client),
client.config.retry client.config.retry
); );
@ -707,11 +674,11 @@ function connect(){
client.socket.on( client.socket.on(
'data', 'data',
function(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="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> <span class="cstat-no" title="statement not covered" > client.trigger(</span>
'data', '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" > if(!client.config.sync){</span>
<span class="cstat-no" title="statement not covered" > return;</span> <span class="cstat-no" title="statement not covered" > return;</span>
@ -728,7 +695,7 @@ function connect(){
data=(this.ipcBuffer+=data); data=(this.ipcBuffer+=data);
&nbsp; &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="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> <span class="cstat-no" title="statement not covered" > return;</span>
} }
&nbsp; &nbsp;
@ -740,7 +707,7 @@ function connect(){
let message=new Message; let message=new Message;
message.load(events[i]); message.load(events[i]);
&nbsp; &nbsp;
client.log('detected event of type '.debug, message.type.data, message.data); client.log('detected event', message.type, message.data);
client.trigger( client.trigger(
message.type, message.type,
message.data message.data
@ -763,7 +730,7 @@ module.exports=init;
</div><!-- /wrapper --> </div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'> <div class='footer quiet pad2 space-top1 center small'>
Code coverage Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 21:12:33 GMT-0800 (PST) generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Fri Apr 01 2016 20:14:41 GMT+0200 (Egypt Standard Time)
</div> </div>
</div> </div>
<script src="../../prettify.js"></script> <script src="../../prettify.js"></script>

View file

@ -1,7 +1,7 @@
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en">
<head> <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" /> <meta charset="utf-8" />
<link rel="stylesheet" href="../../prettify.css" /> <link rel="stylesheet" href="../../prettify.css" />
<link rel="stylesheet" href="../../base.css" /> <link rel="stylesheet" href="../../base.css" />
@ -25,9 +25,9 @@
<span class='fraction'>11/13</span> <span class='fraction'>11/13</span>
</div> </div>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">50% </span> <span class="strong">42.86% </span>
<span class="quiet">Branches</span> <span class="quiet">Branches</span>
<span class='fraction'>2/4</span> <span class='fraction'>3/7</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>
@ -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-neutral">&nbsp;</span> <span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span> <span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">9×</span> <span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-yes">9×</span> <span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-yes">9×</span> <span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-neutral">&nbsp;</span> <span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span> <span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span> <span class="cline-any cline-yes">1×</span>
@ -106,7 +106,7 @@ const parser={
}; };
&nbsp; &nbsp;
function formatData(message){ 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="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']){ <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><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'> <div class='footer quiet pad2 space-top1 center small'>
Code coverage Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 21:12:33 GMT-0800 (PST) generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Fri Apr 01 2016 20:14:41 GMT+0200 (Egypt Standard Time)
</div> </div>
</div> </div>
<script src="../../prettify.js"></script> <script src="../../prettify.js"></script>

View file

@ -1,7 +1,7 @@
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en">
<head> <head>
<title>Code coverage report for node-ipc/dao/</title> <title>Code coverage report for node-ipc\dao\</title>
<meta charset="utf-8" /> <meta charset="utf-8" />
<link rel="stylesheet" href="../../prettify.css" /> <link rel="stylesheet" href="../../prettify.css" />
<link rel="stylesheet" href="../../base.css" /> <link rel="stylesheet" href="../../base.css" />
@ -20,24 +20,24 @@
</h1> </h1>
<div class='clearfix'> <div class='clearfix'>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">67.79% </span> <span class="strong">69.96% </span>
<span class="quiet">Statements</span> <span class="quiet">Statements</span>
<span class='fraction'>181/267</span> <span class='fraction'>184/263</span>
</div> </div>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">54.55% </span> <span class="strong">54.14% </span>
<span class="quiet">Branches</span> <span class="quiet">Branches</span>
<span class='fraction'>72/132</span> <span class='fraction'>72/133</span>
</div> </div>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">87.1% </span> <span class="strong">90% </span>
<span class="quiet">Functions</span> <span class="quiet">Functions</span>
<span class='fraction'>27/31</span> <span class='fraction'>27/30</span>
</div> </div>
<div class='fl pad1y space-right2'> <div class='fl pad1y space-right2'>
<span class="strong">67.79% </span> <span class="strong">69.96% </span>
<span class="quiet">Lines</span> <span class="quiet">Lines</span>
<span class='fraction'>181/267</span> <span class='fraction'>184/263</span>
</div> </div>
</div> </div>
</div> </div>
@ -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="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="74.49" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 74%;"></div><div class="cover-empty" style="width:26%;"></div></div></td>
<td data-value="72.82" class="pct medium">72.82%</td> <td data-value="74.49" class="pct medium">74.49%</td>
<td data-value="103" class="abs medium">75/103</td> <td data-value="98" class="abs medium">73/98</td>
<td data-value="52.38" class="pct medium">52.38%</td> <td data-value="52.5" class="pct medium">52.5%</td>
<td data-value="42" class="abs medium">22/42</td> <td data-value="40" class="abs medium">21/40</td>
<td data-value="100" class="pct high">100%</td> <td data-value="100" class="pct high">100%</td>
<td data-value="10" class="abs high">10/10</td> <td data-value="9" class="abs high">9/9</td>
<td data-value="72.82" class="pct medium">72.82%</td> <td data-value="74.49" class="pct medium">74.49%</td>
<td data-value="103" class="abs medium">75/103</td> <td data-value="98" class="abs medium">73/98</td>
</tr> </tr>
<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="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="84.62" class="pct high">84.62%</td>
<td data-value="13" class="abs high">11/13</td> <td data-value="13" class="abs high">11/13</td>
<td data-value="50" class="pct medium">50%</td> <td data-value="42.86" class="pct low">42.86%</td>
<td data-value="4" class="abs medium">2/4</td> <td data-value="7" class="abs low">3/7</td>
<td data-value="100" class="pct high">100%</td> <td data-value="100" class="pct high">100%</td>
<td data-value="2" class="abs high">2/2</td> <td data-value="2" class="abs high">2/2</td>
<td data-value="84.62" class="pct high">84.62%</td> <td data-value="84.62" class="pct high">84.62%</td>
@ -86,15 +86,15 @@
<tr> <tr>
<td class="file medium" data-value="socketServer.js"><a href="socketServer.js.html">socketServer.js</a></td> <td class="file medium" data-value="socketServer.js"><a href="socketServer.js.html">socketServer.js</a></td>
<td data-value="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="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="62.91" class="pct medium">62.91%</td> <td data-value="65.79" class="pct medium">65.79%</td>
<td data-value="151" class="abs medium">95/151</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="55.81" class="pct medium">55.81%</td>
<td data-value="86" class="abs medium">48/86</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="84.21" class="pct high">84.21%</td>
<td data-value="19" class="abs medium">15/19</td> <td data-value="19" class="abs high">16/19</td>
<td data-value="62.91" class="pct medium">62.91%</td> <td data-value="65.79" class="pct medium">65.79%</td>
<td data-value="151" class="abs medium">95/151</td> <td data-value="152" class="abs medium">100/152</td>
</tr> </tr>
</tbody> </tbody>
@ -103,7 +103,7 @@
</div><!-- /wrapper --> </div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'> <div class='footer quiet pad2 space-top1 center small'>
Code coverage Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 21:12:33 GMT-0800 (PST) generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Fri Apr 01 2016 20:14:41 GMT+0200 (Egypt Standard Time)
</div> </div>
</div> </div>
<script src="../../prettify.js"></script> <script src="../../prettify.js"></script>

View file

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

View file

@ -1,7 +1,7 @@
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en">
<head> <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" /> <meta charset="utf-8" />
<link rel="stylesheet" href="../../prettify.css" /> <link rel="stylesheet" href="../../prettify.css" />
<link rel="stylesheet" href="../../base.css" /> <link rel="stylesheet" href="../../base.css" />
@ -136,7 +136,19 @@
91 91
92 92
93 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-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>
@ -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-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span> <span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">'use strict'; <span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">'use strict';
&nbsp;
const os = require('os'); const os = require('os');
&nbsp; &nbsp;
class Defaults{ class Defaults{
@ -254,7 +277,7 @@ class Defaults{
networkHost : { networkHost : {
enumerable:true, enumerable:true,
writable: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 : { networkPort : {
enumerable:true, enumerable:true,
@ -286,6 +309,16 @@ class Defaults{
writable:true, writable:true,
value:false value:false
}, },
logDepth:{
enumerable:true,
writable:true,
value:5
},
logInColor:{
enumerable:true,
writable:true,
value:true
},
maxConnections : { maxConnections : {
enumerable:true, enumerable:true,
writable:true, writable:true,
@ -328,7 +361,7 @@ module.exports=Defaults;
</div><!-- /wrapper --> </div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'> <div class='footer quiet pad2 space-top1 center small'>
Code coverage Code coverage
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Sun Jan 10 2016 21:12:33 GMT-0800 (PST) generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Fri Apr 01 2016 20:14:41 GMT+0200 (Egypt Standard Time)
</div> </div>
</div> </div>
<script src="../../prettify.js"></script> <script src="../../prettify.js"></script>

View file

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

View file

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

View file

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

View file

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

View file

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

File diff suppressed because it is too large Load diff

View file

@ -2,9 +2,18 @@
'use strict'; 'use strict';
const ipc = require('../../../../node-ipc'); const ipc = require('../../../../node-ipc');
const os = require('os').platform();
describe('TCP Socket verification of client', describe('TCP Socket verification of client',
function TCPClientSpec(){ function TCPClientSpec(){
var windows_delay = 0;
if(os === "win32") {
windows_delay = 4000;
jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000;
}
it( it(
'Verify retry attempts by TCP client to connect to the server as per the value set in "maxRetries" parameter.', 'Verify retry attempts by TCP client to connect to the server as per the value set in "maxRetries" parameter.',
function testIt(done){ function testIt(done){
@ -41,7 +50,7 @@ describe('TCP Socket verification of client',
done(); done();
}, },
ipc.config.retry*ipc.config.maxRetries + ipc.config.retry*ipc.config.maxRetries +
ipc.config.retry+ipc.config.retry ipc.config.retry+ipc.config.retry + windows_delay
); );
} }
@ -80,7 +89,7 @@ describe('TCP Socket verification of client',
ipc.disconnect('tcpFakeServer'); ipc.disconnect('tcpFakeServer');
done(); done();
}, },
ipc.config.retry*ipc.config.maxRetries ipc.config.retry*ipc.config.maxRetries + windows_delay
); );
} }
); );