implemented istanbul and updated docs

This commit is contained in:
Brandon Nozaki Miller 2016-01-09 00:59:47 -08:00
parent b60551202b
commit 5912c9ab5f
18 changed files with 4512 additions and 16 deletions

View file

@ -1,10 +1,20 @@
node-ipc
================
*a nodejs module for local and remote Inter Process Communication* with full support for Linux, Mac and Windows.
A great solution for **Neural Networking** in Node.JS
*a nodejs module for local and remote Inter Process Communication* with full support for Linux, Mac and Windows. It also supports all forms of socket communication from low level unix and windows sockets to UDP and secure TLS and TCP sockets.
A great solution for complex multiprocess **Neural Networking** in Node.JS
**npm install node-ipc**
### Testing
` npm test ` will run the jasmine tests with istanbul for node-ipc and generate a coverage report in the spec folder.
Tests are currently being re-written in Jasmine and Istanbul so you may want to install these globally with ` sudo npm install -g jasmine istanbul `
As of the last commit the test servers do not auto close after completion so you may want to manually kill them after running the test suite.
#### NPM Stats
npm info : [See npm trends and stats for node-ipc](http://npm-stat.com/charts.html?package=node-ipc&author=&from=&to=)
[![NPM](https://nodei.co/npm/node-ipc.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/node-ipc/)

View file

@ -1,22 +1,22 @@
var ipc=require('../../../node-ipc');
/***************************************\
*
*
* UDP Client is really a UDP server
*
* Dedicated UDP sockets on the same
*
* Dedicated UDP sockets on the same
* machine can not be bound to in the
* traditional client/server method
*
*
* Every UDP socket is it's own UDP server
* And so must have a unique port on its
* machine, unlike TCP or Unix Sockts
* which can share on the same machine.
*
*
* Since there is no open client server
* relationship, you should start world
* first and then hello.
*
*
* *************************************/
ipc.config.id = 'hello';
@ -49,4 +49,4 @@ ipc.serveNet(
ipc.server.start();
ipc.server.start();

View file

@ -16,9 +16,13 @@
"js-queue": "^0.1.2",
"node-cmd": "*"
},
"devDependencies": {},
"devDependencies": {
"blanket": "^1.2.1",
"codacy-coverage": "^1.1.3",
"jasmine": "^2.4.1"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "istanbul cover -x **/spec/** -dir ./spec/coverage jasmine"
},
"keywords": [
"IPC",

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,212 @@
body, html {
margin:0; padding: 0;
height: 100%;
}
body {
font-family: Helvetica Neue, Helvetica, Arial;
font-size: 14px;
color:#333;
}
.small { font-size: 12px;; }
*, *:after, *:before {
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing:border-box;
}
h1 { font-size: 20px; margin: 0;}
h2 { font-size: 14px; }
pre {
font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace;
margin: 0;
padding: 0;
-moz-tab-size: 2;
-o-tab-size: 2;
tab-size: 2;
}
a { color:#0074D9; text-decoration:none; }
a:hover { text-decoration:underline; }
.strong { font-weight: bold; }
.space-top1 { padding: 10px 0 0 0; }
.pad2y { padding: 20px 0; }
.pad1y { padding: 10px 0; }
.pad2x { padding: 0 20px; }
.pad2 { padding: 20px; }
.pad1 { padding: 10px; }
.space-left2 { padding-left:55px; }
.space-right2 { padding-right:20px; }
.center { text-align:center; }
.clearfix { display:block; }
.clearfix:after {
content:'';
display:block;
height:0;
clear:both;
visibility:hidden;
}
.fl { float: left; }
@media only screen and (max-width:640px) {
.col3 { width:100%; max-width:100%; }
.hide-mobile { display:none!important; }
}
.quiet {
color: #7f7f7f;
color: rgba(0,0,0,0.5);
}
.quiet a { opacity: 0.7; }
.fraction {
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
font-size: 10px;
color: #555;
background: #E8E8E8;
padding: 4px 5px;
border-radius: 3px;
vertical-align: middle;
}
div.path a:link, div.path a:visited { color: #333; }
table.coverage {
border-collapse: collapse;
margin: 10px 0 0 0;
padding: 0;
}
table.coverage td {
margin: 0;
padding: 0;
vertical-align: top;
}
table.coverage td.line-count {
text-align: right;
padding: 0 5px 0 20px;
}
table.coverage td.line-coverage {
text-align: right;
padding-right: 10px;
min-width:20px;
}
table.coverage td span.cline-any {
display: inline-block;
padding: 0 5px;
width: 100%;
}
.missing-if-branch {
display: inline-block;
margin-right: 5px;
border-radius: 3px;
position: relative;
padding: 0 4px;
background: #333;
color: yellow;
}
.skip-if-branch {
display: none;
margin-right: 10px;
position: relative;
padding: 0 4px;
background: #ccc;
color: white;
}
.missing-if-branch .typ, .skip-if-branch .typ {
color: inherit !important;
}
.coverage-summary {
border-collapse: collapse;
width: 100%;
}
.coverage-summary tr { border-bottom: 1px solid #bbb; }
.keyline-all { border: 1px solid #ddd; }
.coverage-summary td, .coverage-summary th { padding: 10px; }
.coverage-summary tbody { border: 1px solid #bbb; }
.coverage-summary td { border-right: 1px solid #bbb; }
.coverage-summary td:last-child { border-right: none; }
.coverage-summary th {
text-align: left;
font-weight: normal;
white-space: nowrap;
}
.coverage-summary th.file { border-right: none !important; }
.coverage-summary th.pct { }
.coverage-summary th.pic,
.coverage-summary th.abs,
.coverage-summary td.pct,
.coverage-summary td.abs { text-align: right; }
.coverage-summary td.file { white-space: nowrap; }
.coverage-summary td.pic { min-width: 120px !important; }
.coverage-summary tfoot td { }
.coverage-summary .sorter {
height: 10px;
width: 7px;
display: inline-block;
margin-left: 0.5em;
background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
}
.coverage-summary .sorted .sorter {
background-position: 0 -20px;
}
.coverage-summary .sorted-desc .sorter {
background-position: 0 -10px;
}
.status-line { height: 10px; }
/* dark red */
.red.solid, .status-line.low, .low .cover-fill { background:#C21F39 }
.low .chart { border:1px solid #C21F39 }
/* medium red */
.cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE }
/* light red */
.low, .cline-no { background:#FCE1E5 }
/* light green */
.high, .cline-yes { background:rgb(230,245,208) }
/* medium green */
.cstat-yes { background:rgb(161,215,106) }
/* dark green */
.status-line.high, .high .cover-fill { background:rgb(77,146,33) }
.high .chart { border:1px solid rgb(77,146,33) }
.medium .chart { border:1px solid #666; }
.medium .cover-fill { background: #666; }
.cbranch-no { background: yellow !important; color: #111; }
.cstat-skip { background: #ddd; color: #111; }
.fstat-skip { background: #ddd; color: #111 !important; }
.cbranch-skip { background: #ddd !important; color: #111; }
span.cline-neutral { background: #eaeaea; }
.medium { background: #eaeaea; }
.cover-fill, .cover-empty {
display:inline-block;
height: 12px;
}
.chart {
line-height: 0;
}
.cover-empty {
background: white;
}
.cover-full {
border-right: none !important;
}
pre.prettyprint {
border: none !important;
padding: 0 !important;
margin: 0 !important;
}
.com { color: #999 !important; }
.ignore-none { color: #999; font-weight: normal; }
.wrapper {
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0 auto -48px;
}
.footer, .push {
height: 48px;
}

View file

@ -0,0 +1,106 @@
<!doctype html>
<html lang="en">
<head>
<title>Code coverage report for All files</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="prettify.css" />
<link rel="stylesheet" href="base.css" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type='text/css'>
.coverage-summary .sorter {
background-image: url(sort-arrow-sprite.png);
}
</style>
</head>
<body>
<div class='wrapper'>
<div class='pad1'>
<h1>
/
</h1>
<div class='clearfix'>
<div class='fl pad1y space-right2'>
<span class="strong">66.17% </span>
<span class="quiet">Statements</span>
<span class='fraction'>268/405</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">55.45% </span>
<span class="quiet">Branches</span>
<span class='fraction'>112/202</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">74.42% </span>
<span class="quiet">Functions</span>
<span class='fraction'>32/43</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">66.17% </span>
<span class="quiet">Lines</span>
<span class='fraction'>268/405</span>
</div>
</div>
</div>
<div class='status-line medium'></div>
<div class="pad1">
<table class="coverage-summary">
<thead>
<tr>
<th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
<th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
<th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
<th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
<th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
<th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
<th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
<th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
<th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
</tr>
</thead>
<tbody><tr>
<td class="file medium" data-value="node-ipc/"><a href="node-ipc/index.html">node-ipc/</a></td>
<td data-value="70.37" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 70%;"></div><div class="cover-empty" style="width:30%;"></div></div></td>
<td data-value="70.37" class="pct medium">70.37%</td>
<td data-value="135" class="abs medium">95/135</td>
<td data-value="61.11" class="pct medium">61.11%</td>
<td data-value="72" class="abs medium">44/72</td>
<td data-value="60" class="pct medium">60%</td>
<td data-value="10" class="abs medium">6/10</td>
<td data-value="70.37" class="pct medium">70.37%</td>
<td data-value="135" class="abs medium">95/135</td>
</tr>
<tr>
<td class="file medium" data-value="node-ipc/lib/"><a href="node-ipc/lib/index.html">node-ipc/lib/</a></td>
<td data-value="64.07" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 64%;"></div><div class="cover-empty" style="width:36%;"></div></div></td>
<td data-value="64.07" class="pct medium">64.07%</td>
<td data-value="270" class="abs medium">173/270</td>
<td data-value="52.31" class="pct medium">52.31%</td>
<td data-value="130" class="abs medium">68/130</td>
<td data-value="78.79" class="pct medium">78.79%</td>
<td data-value="33" class="abs medium">26/33</td>
<td data-value="64.07" class="pct medium">64.07%</td>
<td data-value="270" class="abs medium">173/270</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 Fri Jan 08 2016 21:50:31 GMT-0800 (PST)
</div>
</div>
<script src="prettify.js"></script>
<script>
window.onload = function () {
if (typeof prettyPrint === 'function') {
prettyPrint();
}
};
</script>
<script src="sorter.js"></script>
</body>
</html>

View file

@ -0,0 +1,93 @@
<!doctype html>
<html lang="en">
<head>
<title>Code coverage report for node-ipc/</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="../prettify.css" />
<link rel="stylesheet" href="../base.css" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type='text/css'>
.coverage-summary .sorter {
background-image: url(../sort-arrow-sprite.png);
}
</style>
</head>
<body>
<div class='wrapper'>
<div class='pad1'>
<h1>
<a href="../index.html">all files</a> node-ipc/
</h1>
<div class='clearfix'>
<div class='fl pad1y space-right2'>
<span class="strong">70.37% </span>
<span class="quiet">Statements</span>
<span class='fraction'>95/135</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">61.11% </span>
<span class="quiet">Branches</span>
<span class='fraction'>44/72</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">60% </span>
<span class="quiet">Functions</span>
<span class='fraction'>6/10</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">70.37% </span>
<span class="quiet">Lines</span>
<span class='fraction'>95/135</span>
</div>
</div>
</div>
<div class='status-line medium'></div>
<div class="pad1">
<table class="coverage-summary">
<thead>
<tr>
<th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
<th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
<th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
<th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
<th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
<th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
<th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
<th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
<th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
</tr>
</thead>
<tbody><tr>
<td class="file medium" data-value="node-ipc.js"><a href="node-ipc.js.html">node-ipc.js</a></td>
<td data-value="70.37" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 70%;"></div><div class="cover-empty" style="width:30%;"></div></div></td>
<td data-value="70.37" class="pct medium">70.37%</td>
<td data-value="135" class="abs medium">95/135</td>
<td data-value="61.11" class="pct medium">61.11%</td>
<td data-value="72" class="abs medium">44/72</td>
<td data-value="60" class="pct medium">60%</td>
<td data-value="10" class="abs medium">6/10</td>
<td data-value="70.37" class="pct medium">70.37%</td>
<td data-value="135" class="abs medium">95/135</td>
</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 Fri Jan 08 2016 21:50:31 GMT-0800 (PST)
</div>
</div>
<script src="../prettify.js"></script>
<script>
window.onload = function () {
if (typeof prettyPrint === 'function') {
prettyPrint();
}
};
</script>
<script src="../sorter.js"></script>
</body>
</html>

View file

@ -0,0 +1,770 @@
<!doctype html>
<html lang="en">
<head>
<title>Code coverage report for node-ipc/lib/client.js</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="../../prettify.css" />
<link rel="stylesheet" href="../../base.css" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type='text/css'>
.coverage-summary .sorter {
background-image: url(../../sort-arrow-sprite.png);
}
</style>
</head>
<body>
<div class='wrapper'>
<div class='pad1'>
<h1>
<a href="../../index.html">all files</a> / <a href="index.html">node-ipc/lib/</a> client.js
</h1>
<div class='clearfix'>
<div class='fl pad1y space-right2'>
<span class="strong">73.08% </span>
<span class="quiet">Statements</span>
<span class='fraction'>76/104</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">52.38% </span>
<span class="quiet">Branches</span>
<span class='fraction'>22/42</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Functions</span>
<span class='fraction'>11/11</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">73.08% </span>
<span class="quiet">Lines</span>
<span class='fraction'>76/104</span>
</div>
</div>
</div>
<div class='status-line medium'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236</td><td class="line-coverage quiet"><span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">11×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">11×</span>
<span class="cline-any cline-yes">11×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">14×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">14×</span>
<span class="cline-any cline-yes">14×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">14×</span>
<span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-yes">7×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">14×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">14×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">10×</span>
<span class="cline-any cline-yes">10×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">14×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">14×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">14×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">14×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">6×</span>
<span class="cline-any cline-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-yes">6×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">14×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-neutral">&nbsp;</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">12×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-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-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">12×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-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">var net = require('net'),
tls = require('tls'),
eventParser = require('../lib/eventParser.js'),
pubsub = require('event-pubsub'),
Message = require('js-message'),
fs = require('fs'),
Queue = require('js-queue');
&nbsp;
function init(config,log){
var client={
config : config,
queue : new Queue,
socket : false,
connect : connect,
emit : emit,
log : log,
retriesRemaining:config.maxRetries||<span class="branch-1 cbranch-no" title="branch not covered" >0</span>
}
new pubsub(client);
&nbsp;
return client;
}
&nbsp;
function emit(type,data){
this.log('dispatching event to '.debug, this.id.variable, this.path.variable,' : ', type.data,',', data);
&nbsp;
var 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>
}else{
message=eventParser.format(message);
}
&nbsp;
if(!this.config.sync){
this.socket.write(message);
return;
}
&nbsp;
this.queue.add(
syncEmit.bind(this,message)
);
};
&nbsp;
function syncEmit(message){
this.log('dispatching event to '.debug, this.id.variable, this.path.variable,' : ', message.data);
this.socket.write(message);
}
&nbsp;
function connect(){
//init client object for scope persistance especially inside of socket events.
var client=this;
&nbsp;
client.log('requested connection to '.debug, client.id.variable, client.path.variable);
<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" > return;</span>
}
&nbsp;
if(!client.port){
client.log('Connecting client on Unix Socket :'.debug, client.path.variable);
&nbsp;
var 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>
}
client.socket = net.connect(
{
path: path
}
);
}else{
<span class="missing-if-branch" title="else path not taken" >E</span>if(!client.config.tls){
client.log('Connecting client via TCP to'.debug, client.path.variable ,client.port);
client.socket = net.connect(
{
port:client.port,
host:client.path
}
);
}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" > 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" > if(client.config.tls.public){</span>
<span class="cstat-no" title="statement not covered" > client.config.tls.cert=fs.readFileSync(client.config.tls.public);</span>
}
<span class="cstat-no" title="statement not covered" > if(client.config.tls.trustedConnections){</span>
<span class="cstat-no" title="statement not covered" > if(typeof client.config.tls.trustedConnections === 'string'){</span>
<span class="cstat-no" title="statement not covered" > client.config.tls.trustedConnections=[client.config.tls.trustedConnections];</span>
}
<span class="cstat-no" title="statement not covered" > client.config.tls.ca=[];</span>
<span class="cstat-no" title="statement not covered" > for(var i=0; i&lt;client.config.tls.trustedConnections.length; i++){</span>
<span class="cstat-no" title="statement not covered" > client.config.tls.ca.push(</span>
fs.readFileSync(client.config.tls.trustedConnections[i])
);
}
}
&nbsp;
<span class="cstat-no" title="statement not covered" > client.config.tls.host=client.path;</span>
<span class="cstat-no" title="statement not covered" > client.config.tls.port=client.port;</span>
&nbsp;
<span class="cstat-no" title="statement not covered" > client.socket = tls.connect(</span>
client.config.tls
);
}
}
&nbsp;
client.socket.setEncoding(this.config.encoding);
&nbsp;
client.socket.on(
'error',
function(err){
client.log('\n\n######\nerror: '.error, err);
client.trigger('error', err);
&nbsp;
}
);
&nbsp;
client.socket.on(
'connect',
function(){
client.trigger('connect');
client.retriesRemaining=client.config.maxRetries;
client.log('retrying reset');
}
);
&nbsp;
client.socket.on(
'close',
function(){
client.log('connection closed'.notice ,client.id.variable , client.path.variable, client.retriesRemaining+' tries remaining of '+client.config.maxRetries);
&nbsp;
if(
client.config.stopRetrying || client.retriesRemaining&lt;1
&nbsp;
){
client.trigger('disconnect');
client.log(
client.config.id.variable,
'exceeded connection rety amount of'.warn,
" or stopRetrying flag set."
);
&nbsp;
client.socket.destroy();
client.trigger('destroy');
client=undefined;
&nbsp;
return;
}
&nbsp;
client.isRetrying=true;
&nbsp;
setTimeout(
(
function(client){
return function(){
client.retriesRemaining--;
client.isRetrying=false;
client.connect();
setTimeout(
function(){
if(!client.isRetrying)
client.retriesRemaining=client.config.maxRetries;
},
100
)
}
}
)(client),
client.config.retry
);
&nbsp;
client.trigger('disconnect');
}
);
&nbsp;
client.socket.on(
'data',
function(data) {
client.log('## recieved events ##'.rainbow);
<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)
);
<span class="cstat-no" title="statement not covered" > if(!client.config.sync){</span>
<span class="cstat-no" title="statement not covered" > return;</span>
}
&nbsp;
<span class="cstat-no" title="statement not covered" > client.queue.next();</span>
<span class="cstat-no" title="statement not covered" > return;</span>
}
&nbsp;
<span class="missing-if-branch" title="else path not taken" >E</span>if(!this.ipcBuffer)
this.ipcBuffer='';
&nbsp;
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" > return;</span>
}
&nbsp;
this.ipcBuffer='';
&nbsp;
var events = eventParser.parse(data);
var eCount = events.length;
for(var i=0; i&lt;eCount; i++){
var message=new Message;
message.load(events[i]);
&nbsp;
client.log('detected event of type '.debug, message.type.data, message.data);
client.trigger(
message.type,
message.data
);
}
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(!client.config.sync){
<span class="cstat-no" title="statement not covered" > return;</span>
}
&nbsp;
client.queue.next();
}
);
}
&nbsp;
module.exports=init;
&nbsp;</pre></td></tr>
</table></pre>
<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 Fri Jan 08 2016 21:50:31 GMT-0800 (PST)
</div>
</div>
<script src="../../prettify.js"></script>
<script>
window.onload = function () {
if (typeof prettyPrint === 'function') {
prettyPrint();
}
};
</script>
<script src="../../sorter.js"></script>
</body>
</html>

View file

@ -0,0 +1,146 @@
<!doctype html>
<html lang="en">
<head>
<title>Code coverage report for node-ipc/lib/eventParser.js</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="../../prettify.css" />
<link rel="stylesheet" href="../../base.css" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type='text/css'>
.coverage-summary .sorter {
background-image: url(../../sort-arrow-sprite.png);
}
</style>
</head>
<body>
<div class='wrapper'>
<div class='pad1'>
<h1>
<a href="../../index.html">all files</a> / <a href="index.html">node-ipc/lib/</a> eventParser.js
</h1>
<div class='clearfix'>
<div class='fl pad1y space-right2'>
<span class="strong">85.71% </span>
<span class="quiet">Statements</span>
<span class='fraction'>12/14</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">50% </span>
<span class="quiet">Branches</span>
<span class='fraction'>2/4</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Functions</span>
<span class='fraction'>2/2</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">85.71% </span>
<span class="quiet">Lines</span>
<span class='fraction'>12/14</span>
</div>
</div>
</div>
<div class='status-line high'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28</td><td class="line-coverage quiet"><span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">14×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">14×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">14×</span>
<span class="cline-any cline-yes">14×</span>
<span class="cline-any cline-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">15×</span>
<span class="cline-any cline-yes">15×</span>
<span class="cline-any cline-yes">15×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-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">var Message = require('js-message');
&nbsp;
function formatData(message){
<span class="missing-if-branch" title="if path not taken" >I</span>if(!message.data){
<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="cstat-no" title="statement not covered" > message.data={};</span>
}
&nbsp;
message=message.JSON+parser.delimiter;
return message;
};
&nbsp;
function parseDataEvents(data){
var events=data.split(parser.delimiter);
events.pop();
return events;
}
&nbsp;
var parser={
parse : parseDataEvents,
format : formatData,
delimiter : '\f'
}
&nbsp;
module.exports=parser;
&nbsp;</pre></td></tr>
</table></pre>
<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 Fri Jan 08 2016 21:50:31 GMT-0800 (PST)
</div>
</div>
<script src="../../prettify.js"></script>
<script>
window.onload = function () {
if (typeof prettyPrint === 'function') {
prettyPrint();
}
};
</script>
<script src="../../sorter.js"></script>
</body>
</html>

View file

@ -0,0 +1,119 @@
<!doctype html>
<html lang="en">
<head>
<title>Code coverage report for node-ipc/lib/</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="../../prettify.css" />
<link rel="stylesheet" href="../../base.css" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type='text/css'>
.coverage-summary .sorter {
background-image: url(../../sort-arrow-sprite.png);
}
</style>
</head>
<body>
<div class='wrapper'>
<div class='pad1'>
<h1>
<a href="../../index.html">all files</a> node-ipc/lib/
</h1>
<div class='clearfix'>
<div class='fl pad1y space-right2'>
<span class="strong">64.07% </span>
<span class="quiet">Statements</span>
<span class='fraction'>173/270</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">52.31% </span>
<span class="quiet">Branches</span>
<span class='fraction'>68/130</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">78.79% </span>
<span class="quiet">Functions</span>
<span class='fraction'>26/33</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">64.07% </span>
<span class="quiet">Lines</span>
<span class='fraction'>173/270</span>
</div>
</div>
</div>
<div class='status-line medium'></div>
<div class="pad1">
<table class="coverage-summary">
<thead>
<tr>
<th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
<th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
<th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
<th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
<th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
<th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
<th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
<th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
<th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
</tr>
</thead>
<tbody><tr>
<td class="file medium" data-value="client.js"><a href="client.js.html">client.js</a></td>
<td data-value="73.08" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 73%;"></div><div class="cover-empty" style="width:27%;"></div></div></td>
<td data-value="73.08" class="pct medium">73.08%</td>
<td data-value="104" class="abs medium">76/104</td>
<td data-value="52.38" class="pct medium">52.38%</td>
<td data-value="42" class="abs medium">22/42</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="11" class="abs high">11/11</td>
<td data-value="73.08" class="pct medium">73.08%</td>
<td data-value="104" class="abs medium">76/104</td>
</tr>
<tr>
<td class="file high" data-value="eventParser.js"><a href="eventParser.js.html">eventParser.js</a></td>
<td data-value="85.71" class="pic high"><div class="chart"><div class="cover-fill" style="width: 85%;"></div><div class="cover-empty" style="width:15%;"></div></div></td>
<td data-value="85.71" class="pct high">85.71%</td>
<td data-value="14" class="abs high">12/14</td>
<td data-value="50" class="pct medium">50%</td>
<td data-value="4" class="abs medium">2/4</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="2" class="abs high">2/2</td>
<td data-value="85.71" class="pct high">85.71%</td>
<td data-value="14" class="abs high">12/14</td>
</tr>
<tr>
<td class="file medium" data-value="socketServer.js"><a href="socketServer.js.html">socketServer.js</a></td>
<td data-value="55.92" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 55%;"></div><div class="cover-empty" style="width:45%;"></div></div></td>
<td data-value="55.92" class="pct medium">55.92%</td>
<td data-value="152" class="abs medium">85/152</td>
<td data-value="52.38" class="pct medium">52.38%</td>
<td data-value="84" class="abs medium">44/84</td>
<td data-value="65" class="pct medium">65%</td>
<td data-value="20" class="abs medium">13/20</td>
<td data-value="55.92" class="pct medium">55.92%</td>
<td data-value="152" class="abs medium">85/152</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 Fri Jan 08 2016 21:50:31 GMT-0800 (PST)
</div>
</div>
<script src="../../prettify.js"></script>
<script>
window.onload = function () {
if (typeof prettyPrint === 'function') {
prettyPrint();
}
};
</script>
<script src="../../sorter.js"></script>
</body>
</html>

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,989 @@
<!doctype html>
<html lang="en">
<head>
<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" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type='text/css'>
.coverage-summary .sorter {
background-image: url(../sort-arrow-sprite.png);
}
</style>
</head>
<body>
<div class='wrapper'>
<div class='pad1'>
<h1>
<a href="../index.html">all files</a> / <a href="index.html">node-ipc/</a> node-ipc.js
</h1>
<div class='clearfix'>
<div class='fl pad1y space-right2'>
<span class="strong">70.37% </span>
<span class="quiet">Statements</span>
<span class='fraction'>95/135</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">61.11% </span>
<span class="quiet">Branches</span>
<span class='fraction'>44/72</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">60% </span>
<span class="quiet">Functions</span>
<span class='fraction'>6/10</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">70.37% </span>
<span class="quiet">Lines</span>
<span class='fraction'>95/135</span>
</div>
</div>
</div>
<div class='status-line medium'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309</td><td class="line-coverage quiet"><span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-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>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-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">140×</span>
<span class="cline-any cline-yes">69×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">71×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">71×</span>
<span class="cline-any cline-yes">229×</span>
<span class="cline-any cline-yes">210×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">19×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">71×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">8×</span>
<span class="cline-any cline-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">8×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">3×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-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">2×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">4×</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1×</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">var os = require('os'),
dns = require('dns'),
util = require('util'),
colors = require('colors'),
pubsub = require('event-pubsub'),
eventParser = require('./lib/eventParser.js'),
Client = require('./lib/client.js'),
Server = require('./lib/socketServer.js');
&nbsp;
colors.setTheme(
{
good : 'green',
notice : 'yellow',
warn : 'red',
error : 'redBG',
debug : 'magenta',
variable: 'cyan',
data : 'blue'
}
);
&nbsp;
var IPType=os.networkInterfaces()[
Object.keys(os.networkInterfaces())[0]
][0].family
&nbsp;
var defaults={
appspace : 'app.',
socketRoot : '/tmp/',
networkHost : (IPType=='IPv6')? <span class="branch-0 cbranch-no" title="branch not covered" >'::1' </span>: '127.0.0.1',
networkPort : 8000,
id : os.hostname(),
encoding : 'utf8',
rawBuffer : false,
sync : false,
silent : false,
maxConnections : 100,
retry : 500,
maxRetries : Infinity,
stopRetrying : false,
IPType : IPType,
tls : false
}
&nbsp;
var ipc = {
config : defaults,
connectTo : connect,
connectToNet: connectNet,
disconnect : disconnect,
serve : serve,
serveNet : serveNet,
of : {},
server : false,
log : log
}
&nbsp;
function log(){
if(ipc.config.silent)
return;
&nbsp;
var args=Array.prototype.slice.call(arguments);
&nbsp;
for(var i=0, count=args.length; i&lt;count; i++){
if(typeof args[i] != 'object')
continue;
&nbsp;
args[i]=util.inspect(args[i],{colors:true});
}
&nbsp;
console.log(
args.join(' ')
);
}
&nbsp;
function disconnect(id){
<span class="missing-if-branch" title="if path not taken" >I</span>if(!ipc.of[id])
<span class="cstat-no" title="statement not covered" > return;</span>
&nbsp;
ipc.of[id].config.stopRetrying=true;
&nbsp;
ipc.of[id].off('*');
<span class="missing-if-branch" title="else path not taken" >E</span>if(ipc.of[id].socket){
<span class="missing-if-branch" title="else path not taken" >E</span>if(ipc.of[id].socket.destroy)
ipc.of[id].socket.destroy();
}
&nbsp;
delete ipc.of[id];
}
&nbsp;
function serve(path,callback){
<span class="missing-if-branch" title="else path not taken" >E</span>if(typeof path=='function'){
callback=path;
path=false;
}
<span class="missing-if-branch" title="else path not taken" >E</span>if(!path){
ipc.log(
'Server path not specified, so defaulting to'.notice,
'ipc.config.socketRoot + ipc.config.appspace + ipc.config.id'.variable,
(ipc.config.socketRoot+ipc.config.appspace+ipc.config.id).data
);
path=ipc.config.socketRoot+ipc.config.appspace+ipc.config.id;
}
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(!callback)
<span class="cstat-no" title="statement not covered" > callback=<span class="fstat-no" title="function not covered" >function(){</span>};</span>
&nbsp;
ipc.server=new Server(
path,
ipc.config,
log
);
&nbsp;
ipc.server.on(
'start',
callback
);
}
&nbsp;
function serveNet(host,port,UDPType,callback){
if(typeof host=='number'){
callback=UDPType;
UDPType=port;
port=host;
host=false;
}
if(typeof host=='function'){
callback=host;
UDPType=false;
host=false;
port=false;
}
if(!host){
ipc.log(
'Server host not specified, so defaulting to'.notice,
'ipc.config.networkHost'.variable,
ipc.config.networkHost.data
);
host=ipc.config.networkHost;
}
<span class="missing-if-branch" title="if path not taken" >I</span>if(host.toLowerCase()=='udp4' || host.toLowerCase()=='udp6'){
<span class="cstat-no" title="statement not covered" > callback=port;</span>
<span class="cstat-no" title="statement not covered" > UDPType=host.toLowerCase();</span>
<span class="cstat-no" title="statement not covered" > port=false;</span>
<span class="cstat-no" title="statement not covered" > host=ipc.config.networkHost;</span>
}
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(typeof port=='string'){
<span class="cstat-no" title="statement not covered" > callback=UDPType;</span>
<span class="cstat-no" title="statement not covered" > UDPType=port;</span>
<span class="cstat-no" title="statement not covered" > port=false;</span>
}
<span class="missing-if-branch" title="if path not taken" >I</span>if(typeof port=='function'){
<span class="cstat-no" title="statement not covered" > callback=port;</span>
<span class="cstat-no" title="statement not covered" > UDPType=false;</span>
<span class="cstat-no" title="statement not covered" > port=false;</span>
}
if(!port){
ipc.log(
'Server port not specified, so defaulting to'.notice,
'ipc.config.networkPort'.variable,
ipc.config.networkPort
);
port=ipc.config.networkPort;
}
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(typeof UDPType=='function'){
<span class="cstat-no" title="statement not covered" > callback=UDPType;</span>
<span class="cstat-no" title="statement not covered" > UDPType=false;</span>
}
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(!callback)
<span class="cstat-no" title="statement not covered" > callback=<span class="fstat-no" title="function not covered" >function(){</span>};</span>
&nbsp;
&nbsp;
ipc.server=new Server(
host,
ipc.config,
log,
port
);
&nbsp;
if(UDPType)
ipc.server[UDPType]=true;
&nbsp;
ipc.server.on(
'start',
callback
);
}
&nbsp;
function connect(id,path,callback){
if(typeof path == 'function'){
callback=path;
path=false;
}
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(!callback)
<span class="cstat-no" title="statement not covered" > callback=<span class="fstat-no" title="function not covered" >function(){</span>};</span>
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(!id){
<span class="cstat-no" title="statement not covered" > ipc.log(</span>
'Service id required'.warn,
'Requested service connection without specifying service id. Aborting connection attempt'.notice
);
<span class="cstat-no" title="statement not covered" > return;</span>
}
&nbsp;
if(!path){
ipc.log(
'Service path not specified, so defaulting to'.notice,
'ipc.config.socketRoot + ipc.config.appspace + id'.variable,
(ipc.config.socketRoot+ipc.config.appspace+id).data
);
path=ipc.config.socketRoot+ipc.config.appspace+id;
}
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(ipc.of[id]){
<span class="cstat-no" title="statement not covered" > if(!ipc.of[id].socket.destroyed){</span>
<span class="cstat-no" title="statement not covered" > ipc.log(</span>
'Already Connected to'.notice,
id.variable,
'- So executing success without connection'.notice
);
<span class="cstat-no" title="statement not covered" > callback();</span>
<span class="cstat-no" title="statement not covered" > return;</span>
}
<span class="cstat-no" title="statement not covered" > ipc.of[id].socket.destroy();</span>
}
&nbsp;
ipc.of[id] = new Client(ipc.config,ipc.log);
ipc.of[id].id = id;
ipc.of[id].path = path;
&nbsp;
ipc.of[id].connect();
&nbsp;
callback(ipc);
}
&nbsp;
function connectNet(id,host,port,callback){
<span class="missing-if-branch" title="if path not taken" >I</span>if(!id){
<span class="cstat-no" title="statement not covered" > ipc.log(</span>
'Service id required'.warn,
'Requested service connection without specifying service id. Aborting connection attempt'.notice
);
<span class="cstat-no" title="statement not covered" > return;</span>
}
<span class="missing-if-branch" title="else path not taken" >E</span>if(typeof host=='number'){
callback=port;
port=host;
host=false;
}
<span class="missing-if-branch" title="if path not taken" >I</span>if(typeof host=='function'){
<span class="cstat-no" title="statement not covered" > callback=host;</span>
<span class="cstat-no" title="statement not covered" > host=false;</span>
<span class="cstat-no" title="statement not covered" > port=false;</span>
}
<span class="missing-if-branch" title="else path not taken" >E</span>if(!host){
ipc.log(
'Server host not specified, so defaulting to'.notice,
'ipc.config.networkHost'.variable,
ipc.config.networkHost.data
);
host=ipc.config.networkHost;
}
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(typeof port=='function'){
<span class="cstat-no" title="statement not covered" > callback=port;</span>
<span class="cstat-no" title="statement not covered" > port=false;</span>
}
<span class="missing-if-branch" title="if path not taken" >I</span>if(!port){
<span class="cstat-no" title="statement not covered" > ipc.log(</span>
'Server port not specified, so defaulting to'.notice,
'ipc.config.networkPort'.variable,
ipc.config.networkPort
);
<span class="cstat-no" title="statement not covered" > port=ipc.config.networkPort;</span>
}
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(typeof callback == 'string'){
<span class="cstat-no" title="statement not covered" > UDPType=callback;</span>
<span class="cstat-no" title="statement not covered" > callback=false;</span>
}
<span class="missing-if-branch" title="if path not taken" >I</span>if(!callback)
<span class="cstat-no" title="statement not covered" > callback=<span class="fstat-no" title="function not covered" >function(){</span>};</span>
&nbsp;
<span class="missing-if-branch" title="if path not taken" >I</span>if(ipc.of[id]){
<span class="cstat-no" title="statement not covered" > if(!ipc.of[id].socket.destroyed){</span>
<span class="cstat-no" title="statement not covered" > ipc.log(</span>
'Already Connected to'.notice,
id.variable,
'- So executing success without connection'.notice
);
<span class="cstat-no" title="statement not covered" > callback();</span>
<span class="cstat-no" title="statement not covered" > return;</span>
}
<span class="cstat-no" title="statement not covered" > ipc.of[id].socket.destroy();</span>
}
&nbsp;
ipc.of[id] = new Client(ipc.config,ipc.log);
ipc.of[id].id = id;
ipc.of[id].path = host;
ipc.of[id].port = port;
&nbsp;
ipc.of[id].connect();
&nbsp;
callback(ipc);
}
&nbsp;
module.exports=ipc;
&nbsp;</pre></td></tr>
</table></pre>
<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 Fri Jan 08 2016 21:50:31 GMT-0800 (PST)
</div>
</div>
<script src="../prettify.js"></script>
<script>
window.onload = function () {
if (typeof prettyPrint === 'function') {
prettyPrint();
}
};
</script>
<script src="../sorter.js"></script>
</body>
</html>

View file

@ -0,0 +1 @@
.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee}

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 209 B

View file

@ -0,0 +1,158 @@
var addSorting = (function () {
"use strict";
var cols,
currentSort = {
index: 0,
desc: false
};
// returns the summary table element
function getTable() { return document.querySelector('.coverage-summary'); }
// returns the thead element of the summary table
function getTableHeader() { return getTable().querySelector('thead tr'); }
// returns the tbody element of the summary table
function getTableBody() { return getTable().querySelector('tbody'); }
// returns the th element for nth column
function getNthColumn(n) { return getTableHeader().querySelectorAll('th')[n]; }
// loads all columns
function loadColumns() {
var colNodes = getTableHeader().querySelectorAll('th'),
colNode,
cols = [],
col,
i;
for (i = 0; i < colNodes.length; i += 1) {
colNode = colNodes[i];
col = {
key: colNode.getAttribute('data-col'),
sortable: !colNode.getAttribute('data-nosort'),
type: colNode.getAttribute('data-type') || 'string'
};
cols.push(col);
if (col.sortable) {
col.defaultDescSort = col.type === 'number';
colNode.innerHTML = colNode.innerHTML + '<span class="sorter"></span>';
}
}
return cols;
}
// attaches a data attribute to every tr element with an object
// of data values keyed by column name
function loadRowData(tableRow) {
var tableCols = tableRow.querySelectorAll('td'),
colNode,
col,
data = {},
i,
val;
for (i = 0; i < tableCols.length; i += 1) {
colNode = tableCols[i];
col = cols[i];
val = colNode.getAttribute('data-value');
if (col.type === 'number') {
val = Number(val);
}
data[col.key] = val;
}
return data;
}
// loads all row data
function loadData() {
var rows = getTableBody().querySelectorAll('tr'),
i;
for (i = 0; i < rows.length; i += 1) {
rows[i].data = loadRowData(rows[i]);
}
}
// sorts the table using the data for the ith column
function sortByIndex(index, desc) {
var key = cols[index].key,
sorter = function (a, b) {
a = a.data[key];
b = b.data[key];
return a < b ? -1 : a > b ? 1 : 0;
},
finalSorter = sorter,
tableBody = document.querySelector('.coverage-summary tbody'),
rowNodes = tableBody.querySelectorAll('tr'),
rows = [],
i;
if (desc) {
finalSorter = function (a, b) {
return -1 * sorter(a, b);
};
}
for (i = 0; i < rowNodes.length; i += 1) {
rows.push(rowNodes[i]);
tableBody.removeChild(rowNodes[i]);
}
rows.sort(finalSorter);
for (i = 0; i < rows.length; i += 1) {
tableBody.appendChild(rows[i]);
}
}
// removes sort indicators for current column being sorted
function removeSortIndicators() {
var col = getNthColumn(currentSort.index),
cls = col.className;
cls = cls.replace(/ sorted$/, '').replace(/ sorted-desc$/, '');
col.className = cls;
}
// adds sort indicators for current column being sorted
function addSortIndicators() {
getNthColumn(currentSort.index).className += currentSort.desc ? ' sorted-desc' : ' sorted';
}
// adds event listeners for all sorter widgets
function enableUI() {
var i,
el,
ithSorter = function ithSorter(i) {
var col = cols[i];
return function () {
var desc = col.defaultDescSort;
if (currentSort.index === i) {
desc = !currentSort.desc;
}
sortByIndex(i, desc);
removeSortIndicators();
currentSort.index = i;
currentSort.desc = desc;
addSortIndicators();
};
};
for (i =0 ; i < cols.length; i += 1) {
if (cols[i].sortable) {
// add the click event handler on the th so users
// dont have to click on those tiny arrows
el = getNthColumn(i).querySelector('.sorter').parentElement;
if (el.addEventListener) {
el.addEventListener('click', ithSorter(i));
} else {
el.attachEvent('onclick', ithSorter(i));
}
}
}
}
// adds sorting functionality to the UI
return function () {
if (!getTable()) {
return;
}
cols = loadColumns();
loadData(cols);
addSortIndicators();
enableUI();
};
})();
window.addEventListener('load', addSorting);

729
spec/coverage/lcov.info Normal file
View file

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

View file

@ -1,16 +1,16 @@
{
"spec_dir": "spec",
"spec_files": [
"/support/jasmineTest/testFile.js",
"/support/jasmineTest/Unix/unixSocketClient.spec.js",
"/support/jasmineTest/UDP/udpSocketClient.spec.js",
"/support/jasmineTest/TCP/tcpSocketClient.spec.js",
"/support/jasmineTest/Unix/unixSocketServer.spec.js",
"/support/jasmineTest/TCP/tcpSocketServer.spec.js"
]
}