coa 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- package/.npmignore +6 -0
- package/.nyc_output/1f2a0db5a6d6559149db56d397f47cfc.json +1 -0
- package/.nyc_output/75b82d38f2186df930141082076e11c6.json +1 -0
- package/.travis.yml +9 -0
- package/GNUmakefile +34 -0
- package/README.md +1 -19
- package/coverage/base.css +212 -0
- package/coverage/coa/index.html +93 -0
- package/coverage/coa/index.js.html +68 -0
- package/coverage/coa/lib/arg.js.html +239 -0
- package/coverage/coa/lib/cmd.js.html +1556 -0
- package/coverage/coa/lib/coaobject.js.html +365 -0
- package/coverage/coa/lib/coaparam.js.html +440 -0
- package/coverage/coa/lib/color.js.html +131 -0
- package/coverage/coa/lib/completion.js.html +593 -0
- package/coverage/coa/lib/index.html +197 -0
- package/coverage/coa/lib/index.js.html +107 -0
- package/coverage/coa/lib/opt.js.html +524 -0
- package/coverage/coa/lib/shell.js.html +107 -0
- package/coverage/index.html +106 -0
- package/coverage/prettify.css +1 -0
- package/coverage/prettify.js +1 -0
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +158 -0
- package/index.js +1 -1
- package/lib/arg.js +161 -44
- package/lib/cmd.js +547 -434
- package/lib/color.js +22 -19
- package/lib/completion.js +119 -161
- package/lib/index.js +10 -14
- package/lib/opt.js +313 -130
- package/lib/shell.js +13 -13
- package/package.json +14 -19
- package/qq.js +17 -0
- package/src/arg.coffee +130 -0
- package/src/cmd.coffee +456 -0
- package/src/color.coffee +25 -0
- package/src/completion.coffee +156 -0
- package/src/index.coffee +5 -0
- package/src/opt.coffee +243 -0
- package/src/shell.coffee +10 -0
- package/test/coa.js +496 -0
- package/test/mocha.opts +2 -0
- package/test/shell-test.js +60 -0
- package/tests/api-h.js +9 -0
- package/tests/h.js +6 -0
- package/LICENSE +0 -21
- package/lib/coaobject.js +0 -100
- package/lib/coaparam.js +0 -125
@@ -0,0 +1,197 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<title>Code coverage report for coa/lib</title>
|
5
|
+
<meta charset="utf-8" />
|
6
|
+
<link rel="stylesheet" href="../../prettify.css" />
|
7
|
+
<link rel="stylesheet" href="../../base.css" />
|
8
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
9
|
+
<style type='text/css'>
|
10
|
+
.coverage-summary .sorter {
|
11
|
+
background-image: url(../../sort-arrow-sprite.png);
|
12
|
+
}
|
13
|
+
</style>
|
14
|
+
</head>
|
15
|
+
<body>
|
16
|
+
<div class='wrapper'>
|
17
|
+
<div class='pad1'>
|
18
|
+
<h1>
|
19
|
+
<a href="../../index.html">All files</a> coa/lib
|
20
|
+
</h1>
|
21
|
+
<div class='clearfix'>
|
22
|
+
<div class='fl pad1y space-right2'>
|
23
|
+
<span class="strong">68.17% </span>
|
24
|
+
<span class="quiet">Statements</span>
|
25
|
+
<span class='fraction'>257/377</span>
|
26
|
+
</div>
|
27
|
+
<div class='fl pad1y space-right2'>
|
28
|
+
<span class="strong">59.05% </span>
|
29
|
+
<span class="quiet">Branches</span>
|
30
|
+
<span class='fraction'>124/210</span>
|
31
|
+
</div>
|
32
|
+
<div class='fl pad1y space-right2'>
|
33
|
+
<span class="strong">65.35% </span>
|
34
|
+
<span class="quiet">Functions</span>
|
35
|
+
<span class='fraction'>66/101</span>
|
36
|
+
</div>
|
37
|
+
<div class='fl pad1y space-right2'>
|
38
|
+
<span class="strong">69.8% </span>
|
39
|
+
<span class="quiet">Lines</span>
|
40
|
+
<span class='fraction'>245/351</span>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
</div>
|
44
|
+
<div class='status-line medium'></div>
|
45
|
+
<div class="pad1">
|
46
|
+
<table class="coverage-summary">
|
47
|
+
<thead>
|
48
|
+
<tr>
|
49
|
+
<th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
|
50
|
+
<th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
|
51
|
+
<th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
|
52
|
+
<th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
|
53
|
+
<th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
|
54
|
+
<th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
|
55
|
+
<th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
|
56
|
+
<th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
|
57
|
+
<th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
|
58
|
+
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
|
59
|
+
</tr>
|
60
|
+
</thead>
|
61
|
+
<tbody><tr>
|
62
|
+
<td class="file high" data-value="arg.js"><a href="arg.js.html">arg.js</a></td>
|
63
|
+
<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>
|
64
|
+
<td data-value="100" class="pct high">100%</td>
|
65
|
+
<td data-value="16" class="abs high">16/16</td>
|
66
|
+
<td data-value="87.5" class="pct high">87.5%</td>
|
67
|
+
<td data-value="8" class="abs high">7/8</td>
|
68
|
+
<td data-value="100" class="pct high">100%</td>
|
69
|
+
<td data-value="6" class="abs high">6/6</td>
|
70
|
+
<td data-value="100" class="pct high">100%</td>
|
71
|
+
<td data-value="16" class="abs high">16/16</td>
|
72
|
+
</tr>
|
73
|
+
|
74
|
+
<tr>
|
75
|
+
<td class="file high" data-value="cmd.js"><a href="cmd.js.html">cmd.js</a></td>
|
76
|
+
<td data-value="81.22" class="pic high"><div class="chart"><div class="cover-fill" style="width: 81%;"></div><div class="cover-empty" style="width:19%;"></div></div></td>
|
77
|
+
<td data-value="81.22" class="pct high">81.22%</td>
|
78
|
+
<td data-value="181" class="abs high">147/181</td>
|
79
|
+
<td data-value="71.64" class="pct medium">71.64%</td>
|
80
|
+
<td data-value="134" class="abs medium">96/134</td>
|
81
|
+
<td data-value="68.75" class="pct medium">68.75%</td>
|
82
|
+
<td data-value="48" class="abs medium">33/48</td>
|
83
|
+
<td data-value="82.53" class="pct high">82.53%</td>
|
84
|
+
<td data-value="166" class="abs high">137/166</td>
|
85
|
+
</tr>
|
86
|
+
|
87
|
+
<tr>
|
88
|
+
<td class="file medium" data-value="coaobject.js"><a href="coaobject.js.html">coaobject.js</a></td>
|
89
|
+
<td data-value="75" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 75%;"></div><div class="cover-empty" style="width:25%;"></div></div></td>
|
90
|
+
<td data-value="75" class="pct medium">75%</td>
|
91
|
+
<td data-value="16" class="abs medium">12/16</td>
|
92
|
+
<td data-value="50" class="pct medium">50%</td>
|
93
|
+
<td data-value="2" class="abs medium">1/2</td>
|
94
|
+
<td data-value="71.43" class="pct medium">71.43%</td>
|
95
|
+
<td data-value="7" class="abs medium">5/7</td>
|
96
|
+
<td data-value="75" class="pct medium">75%</td>
|
97
|
+
<td data-value="16" class="abs medium">12/16</td>
|
98
|
+
</tr>
|
99
|
+
|
100
|
+
<tr>
|
101
|
+
<td class="file medium" data-value="coaparam.js"><a href="coaparam.js.html">coaparam.js</a></td>
|
102
|
+
<td data-value="51.61" class="pic medium"><div class="chart"><div class="cover-fill" style="width: 51%;"></div><div class="cover-empty" style="width:49%;"></div></div></td>
|
103
|
+
<td data-value="51.61" class="pct medium">51.61%</td>
|
104
|
+
<td data-value="31" class="abs medium">16/31</td>
|
105
|
+
<td data-value="0" class="pct low">0%</td>
|
106
|
+
<td data-value="8" class="abs low">0/8</td>
|
107
|
+
<td data-value="55.56" class="pct medium">55.56%</td>
|
108
|
+
<td data-value="9" class="abs medium">5/9</td>
|
109
|
+
<td data-value="51.61" class="pct medium">51.61%</td>
|
110
|
+
<td data-value="31" class="abs medium">16/31</td>
|
111
|
+
</tr>
|
112
|
+
|
113
|
+
<tr>
|
114
|
+
<td class="file high" data-value="color.js"><a href="color.js.html">color.js</a></td>
|
115
|
+
<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>
|
116
|
+
<td data-value="100" class="pct high">100%</td>
|
117
|
+
<td data-value="3" class="abs high">3/3</td>
|
118
|
+
<td data-value="100" class="pct high">100%</td>
|
119
|
+
<td data-value="0" class="abs high">0/0</td>
|
120
|
+
<td data-value="100" class="pct high">100%</td>
|
121
|
+
<td data-value="1" class="abs high">1/1</td>
|
122
|
+
<td data-value="100" class="pct high">100%</td>
|
123
|
+
<td data-value="2" class="abs high">2/2</td>
|
124
|
+
</tr>
|
125
|
+
|
126
|
+
<tr>
|
127
|
+
<td class="file low" data-value="completion.js"><a href="completion.js.html">completion.js</a></td>
|
128
|
+
<td data-value="11.27" class="pic low"><div class="chart"><div class="cover-fill" style="width: 11%;"></div><div class="cover-empty" style="width:89%;"></div></div></td>
|
129
|
+
<td data-value="11.27" class="pct low">11.27%</td>
|
130
|
+
<td data-value="71" class="abs low">8/71</td>
|
131
|
+
<td data-value="0" class="pct low">0%</td>
|
132
|
+
<td data-value="32" class="abs low">0/32</td>
|
133
|
+
<td data-value="0" class="pct low">0%</td>
|
134
|
+
<td data-value="14" class="abs low">0/14</td>
|
135
|
+
<td data-value="12.5" class="pct low">12.5%</td>
|
136
|
+
<td data-value="64" class="abs low">8/64</td>
|
137
|
+
</tr>
|
138
|
+
|
139
|
+
<tr>
|
140
|
+
<td class="file high" data-value="index.js"><a href="index.js.html">index.js</a></td>
|
141
|
+
<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>
|
142
|
+
<td data-value="100" class="pct high">100%</td>
|
143
|
+
<td data-value="5" class="abs high">5/5</td>
|
144
|
+
<td data-value="100" class="pct high">100%</td>
|
145
|
+
<td data-value="0" class="abs high">0/0</td>
|
146
|
+
<td data-value="100" class="pct high">100%</td>
|
147
|
+
<td data-value="0" class="abs high">0/0</td>
|
148
|
+
<td data-value="100" class="pct high">100%</td>
|
149
|
+
<td data-value="5" class="abs high">5/5</td>
|
150
|
+
</tr>
|
151
|
+
|
152
|
+
<tr>
|
153
|
+
<td class="file high" data-value="opt.js"><a href="opt.js.html">opt.js</a></td>
|
154
|
+
<td data-value="91.84" class="pic high"><div class="chart"><div class="cover-fill" style="width: 91%;"></div><div class="cover-empty" style="width:9%;"></div></div></td>
|
155
|
+
<td data-value="91.84" class="pct high">91.84%</td>
|
156
|
+
<td data-value="49" class="abs high">45/49</td>
|
157
|
+
<td data-value="72.73" class="pct medium">72.73%</td>
|
158
|
+
<td data-value="22" class="abs medium">16/22</td>
|
159
|
+
<td data-value="100" class="pct high">100%</td>
|
160
|
+
<td data-value="14" class="abs high">14/14</td>
|
161
|
+
<td data-value="95.65" class="pct high">95.65%</td>
|
162
|
+
<td data-value="46" class="abs high">44/46</td>
|
163
|
+
</tr>
|
164
|
+
|
165
|
+
<tr>
|
166
|
+
<td class="file high" data-value="shell.js"><a href="shell.js.html">shell.js</a></td>
|
167
|
+
<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>
|
168
|
+
<td data-value="100" class="pct high">100%</td>
|
169
|
+
<td data-value="5" class="abs high">5/5</td>
|
170
|
+
<td data-value="100" class="pct high">100%</td>
|
171
|
+
<td data-value="4" class="abs high">4/4</td>
|
172
|
+
<td data-value="100" class="pct high">100%</td>
|
173
|
+
<td data-value="2" class="abs high">2/2</td>
|
174
|
+
<td data-value="100" class="pct high">100%</td>
|
175
|
+
<td data-value="5" class="abs high">5/5</td>
|
176
|
+
</tr>
|
177
|
+
|
178
|
+
</tbody>
|
179
|
+
</table>
|
180
|
+
</div><div class='push'></div><!-- for sticky footer -->
|
181
|
+
</div><!-- /wrapper -->
|
182
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
183
|
+
Code coverage
|
184
|
+
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Fri Feb 17 2017 22:25:28 GMT+0300 (MSK)
|
185
|
+
</div>
|
186
|
+
</div>
|
187
|
+
<script src="../../prettify.js"></script>
|
188
|
+
<script>
|
189
|
+
window.onload = function () {
|
190
|
+
if (typeof prettyPrint === 'function') {
|
191
|
+
prettyPrint();
|
192
|
+
}
|
193
|
+
};
|
194
|
+
</script>
|
195
|
+
<script src="../../sorter.js"></script>
|
196
|
+
</body>
|
197
|
+
</html>
|
@@ -0,0 +1,107 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<title>Code coverage report for coa/lib/index.js</title>
|
5
|
+
<meta charset="utf-8" />
|
6
|
+
<link rel="stylesheet" href="../../prettify.css" />
|
7
|
+
<link rel="stylesheet" href="../../base.css" />
|
8
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
9
|
+
<style type='text/css'>
|
10
|
+
.coverage-summary .sorter {
|
11
|
+
background-image: url(../../sort-arrow-sprite.png);
|
12
|
+
}
|
13
|
+
</style>
|
14
|
+
</head>
|
15
|
+
<body>
|
16
|
+
<div class='wrapper'>
|
17
|
+
<div class='pad1'>
|
18
|
+
<h1>
|
19
|
+
<a href="../../index.html">All files</a> / <a href="index.html">coa/lib</a> index.js
|
20
|
+
</h1>
|
21
|
+
<div class='clearfix'>
|
22
|
+
<div class='fl pad1y space-right2'>
|
23
|
+
<span class="strong">100% </span>
|
24
|
+
<span class="quiet">Statements</span>
|
25
|
+
<span class='fraction'>5/5</span>
|
26
|
+
</div>
|
27
|
+
<div class='fl pad1y space-right2'>
|
28
|
+
<span class="strong">100% </span>
|
29
|
+
<span class="quiet">Branches</span>
|
30
|
+
<span class='fraction'>0/0</span>
|
31
|
+
</div>
|
32
|
+
<div class='fl pad1y space-right2'>
|
33
|
+
<span class="strong">100% </span>
|
34
|
+
<span class="quiet">Functions</span>
|
35
|
+
<span class='fraction'>0/0</span>
|
36
|
+
</div>
|
37
|
+
<div class='fl pad1y space-right2'>
|
38
|
+
<span class="strong">100% </span>
|
39
|
+
<span class="quiet">Lines</span>
|
40
|
+
<span class='fraction'>5/5</span>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
</div>
|
44
|
+
<div class='status-line high'></div>
|
45
|
+
<pre><table class="coverage">
|
46
|
+
<tr><td class="line-count quiet">1
|
47
|
+
2
|
48
|
+
3
|
49
|
+
4
|
50
|
+
5
|
51
|
+
6
|
52
|
+
7
|
53
|
+
8
|
54
|
+
9
|
55
|
+
10
|
56
|
+
11
|
57
|
+
12
|
58
|
+
13
|
59
|
+
14
|
60
|
+
15</td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
61
|
+
<span class="cline-any cline-yes">1x</span>
|
62
|
+
<span class="cline-any cline-yes">1x</span>
|
63
|
+
<span class="cline-any cline-yes">1x</span>
|
64
|
+
<span class="cline-any cline-yes">1x</span>
|
65
|
+
<span class="cline-any cline-neutral"> </span>
|
66
|
+
<span class="cline-any cline-yes">1x</span>
|
67
|
+
<span class="cline-any cline-neutral"> </span>
|
68
|
+
<span class="cline-any cline-neutral"> </span>
|
69
|
+
<span class="cline-any cline-neutral"> </span>
|
70
|
+
<span class="cline-any cline-neutral"> </span>
|
71
|
+
<span class="cline-any cline-neutral"> </span>
|
72
|
+
<span class="cline-any cline-neutral"> </span>
|
73
|
+
<span class="cline-any cline-neutral"> </span>
|
74
|
+
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">const
|
75
|
+
Cmd = require('./cmd'),
|
76
|
+
Opt = require('./opt'),
|
77
|
+
Arg = require('./arg'),
|
78
|
+
shell = require('./shell');
|
79
|
+
|
80
|
+
module.exports = {
|
81
|
+
Cmd : Cmd.create,
|
82
|
+
Opt : Opt.create,
|
83
|
+
Arg : Arg.create,
|
84
|
+
classes : { Cmd, Opt, Arg },
|
85
|
+
shell,
|
86
|
+
require
|
87
|
+
};
|
88
|
+
</pre></td></tr>
|
89
|
+
</table></pre>
|
90
|
+
<div class='push'></div><!-- for sticky footer -->
|
91
|
+
</div><!-- /wrapper -->
|
92
|
+
<div class='footer quiet pad2 space-top1 center small'>
|
93
|
+
Code coverage
|
94
|
+
generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Fri Feb 17 2017 22:25:28 GMT+0300 (MSK)
|
95
|
+
</div>
|
96
|
+
</div>
|
97
|
+
<script src="../../prettify.js"></script>
|
98
|
+
<script>
|
99
|
+
window.onload = function () {
|
100
|
+
if (typeof prettyPrint === 'function') {
|
101
|
+
prettyPrint();
|
102
|
+
}
|
103
|
+
};
|
104
|
+
</script>
|
105
|
+
<script src="../../sorter.js"></script>
|
106
|
+
</body>
|
107
|
+
</html>
|