Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Docs

  • Loading branch information...
commit 11103c8a56c404fefc9bb9df9f1206783e7996ec 1 parent a35b2bc
@davglass authored
View
28 index.html
@@ -181,16 +181,16 @@
<h1>Code coverage report for <span class='entity'>All files</span></h1>
<h2>
- Statements: <span class='metric'>98.71% <small>(686 / 695)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
+ Statements: <span class='metric'>98.72% <small>(696 / 705)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
- Branches: <span class='metric'>98.01% <small>(344 / 351)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
+ Branches: <span class='metric'>98.03% <small>(349 / 356)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
- Functions: <span class='metric'>97.65% <small>(83 / 85)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
+ Functions: <span class='metric'>97.7% <small>(85 / 87)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
- Lines: <span class='metric'>98.7% <small>(685 / 694)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
+ Lines: <span class='metric'>98.72% <small>(695 / 704)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
</h2>
<div class="path"></div>
@@ -214,15 +214,15 @@
</thead>
<tbody><tr>
<td class="file high" data-value="lib/"><a href="lib/index.html">lib/</a></td>
- <td data-value="98.71" class="pic high"><span class="cover-fill" style="width: 98px;"></span><span class="cover-empty" style="width:2px;"></span></td>
- <td data-value="98.71" class="pct high">98.71%</td>
- <td data-value="695" class="abs high">(686&nbsp;/&nbsp;695)</td>
- <td data-value="98.01" class="pct high">98.01%</td>
- <td data-value="351" class="abs high">(344&nbsp;/&nbsp;351)</td>
- <td data-value="97.65" class="pct high">97.65%</td>
- <td data-value="85" class="abs high">(83&nbsp;/&nbsp;85)</td>
- <td data-value="98.7" class="pct high">98.7%</td>
- <td data-value="694" class="abs high">(685&nbsp;/&nbsp;694)</td>
+ <td data-value="98.72" class="pic high"><span class="cover-fill" style="width: 98px;"></span><span class="cover-empty" style="width:2px;"></span></td>
+ <td data-value="98.72" class="pct high">98.72%</td>
+ <td data-value="705" class="abs high">(696&nbsp;/&nbsp;705)</td>
+ <td data-value="98.03" class="pct high">98.03%</td>
+ <td data-value="356" class="abs high">(349&nbsp;/&nbsp;356)</td>
+ <td data-value="97.7" class="pct high">97.7%</td>
+ <td data-value="87" class="abs high">(85&nbsp;/&nbsp;87)</td>
+ <td data-value="98.72" class="pct high">98.72%</td>
+ <td data-value="704" class="abs high">(695&nbsp;/&nbsp;704)</td>
</tr>
</tbody>
@@ -230,7 +230,7 @@
</div>
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Wed Jan 30 2013 14:30:05 GMT-0600 (CST)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Tue Feb 05 2013 14:57:16 GMT-0600 (CST)</div>
</div>
</body>
View
2  lib/chars.js.html
@@ -232,7 +232,7 @@
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Wed Jan 30 2013 14:30:05 GMT-0600 (CST)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Tue Feb 05 2013 14:57:16 GMT-0600 (CST)</div>
</div>
</body>
View
2  lib/coverage.js.html
@@ -1510,7 +1510,7 @@
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Wed Jan 30 2013 14:30:05 GMT-0600 (CST)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Tue Feb 05 2013 14:57:16 GMT-0600 (CST)</div>
</div>
</body>
View
4 lib/grover.js.html
@@ -537,7 +537,7 @@
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">23</span>
<span class="cline-any cline-yes">23</span>
-<span class="cline-any cline-yes">24</span>
+<span class="cline-any cline-yes">23</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">23</span>
<span class="cline-any cline-yes">23</span>
@@ -931,7 +931,7 @@
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Wed Jan 30 2013 14:30:05 GMT-0600 (CST)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Tue Feb 05 2013 14:57:16 GMT-0600 (CST)</div>
</div>
</body>
View
24 lib/index.html
@@ -181,16 +181,16 @@
<h1>Code coverage report for <span class='entity'>lib/</span></h1>
<h2>
- Statements: <span class='metric'>98.71% <small>(686 / 695)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
+ Statements: <span class='metric'>98.72% <small>(696 / 705)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
- Branches: <span class='metric'>98.01% <small>(344 / 351)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
+ Branches: <span class='metric'>98.03% <small>(349 / 356)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
- Functions: <span class='metric'>97.65% <small>(83 / 85)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
+ Functions: <span class='metric'>97.7% <small>(85 / 87)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
- Lines: <span class='metric'>98.7% <small>(685 / 694)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
+ Lines: <span class='metric'>98.72% <small>(695 / 704)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
</h2>
<div class="path"><a href="../index.html">All files</a> &#187; lib/</div>
@@ -281,13 +281,13 @@
<td class="file high" data-value="options.js"><a href="options.js.html">options.js</a></td>
<td data-value="100" class="pic high"><span class="cover-fill cover-full" style="width: 100px;"></span><span class="cover-empty" style="width:0px;"></span></td>
<td data-value="100" class="pct high">100%</td>
- <td data-value="168" class="abs high">(168&nbsp;/&nbsp;168)</td>
+ <td data-value="173" class="abs high">(173&nbsp;/&nbsp;173)</td>
<td data-value="100" class="pct high">100%</td>
- <td data-value="106" class="abs high">(106&nbsp;/&nbsp;106)</td>
+ <td data-value="107" class="abs high">(107&nbsp;/&nbsp;107)</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="4" class="abs high">(4&nbsp;/&nbsp;4)</td>
<td data-value="100" class="pct high">100%</td>
- <td data-value="168" class="abs high">(168&nbsp;/&nbsp;168)</td>
+ <td data-value="173" class="abs high">(173&nbsp;/&nbsp;173)</td>
</tr>
<tr>
@@ -307,13 +307,13 @@
<td class="file high" data-value="server.js"><a href="server.js.html">server.js</a></td>
<td data-value="100" class="pic high"><span class="cover-fill cover-full" style="width: 100px;"></span><span class="cover-empty" style="width:0px;"></span></td>
<td data-value="100" class="pct high">100%</td>
- <td data-value="59" class="abs high">(59&nbsp;/&nbsp;59)</td>
+ <td data-value="64" class="abs high">(64&nbsp;/&nbsp;64)</td>
<td data-value="100" class="pct high">100%</td>
- <td data-value="24" class="abs high">(24&nbsp;/&nbsp;24)</td>
+ <td data-value="28" class="abs high">(28&nbsp;/&nbsp;28)</td>
<td data-value="100" class="pct high">100%</td>
- <td data-value="8" class="abs high">(8&nbsp;/&nbsp;8)</td>
+ <td data-value="10" class="abs high">(10&nbsp;/&nbsp;10)</td>
<td data-value="100" class="pct high">100%</td>
- <td data-value="59" class="abs high">(59&nbsp;/&nbsp;59)</td>
+ <td data-value="64" class="abs high">(64&nbsp;/&nbsp;64)</td>
</tr>
<tr>
@@ -334,7 +334,7 @@
</div>
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Wed Jan 30 2013 14:30:05 GMT-0600 (CST)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Tue Feb 05 2013 14:57:16 GMT-0600 (CST)</div>
</div>
</body>
View
8 lib/index.js.html
@@ -363,8 +363,8 @@
<span class="cline-any cline-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">481</span>
-<span class="cline-any cline-yes">474</span>
+<span class="cline-any cline-yes">483</span>
+<span class="cline-any cline-yes">476</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>
@@ -389,7 +389,7 @@
<span class="cline-any cline-yes">2</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">48</span>
+<span class="cline-any cline-yes">50</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">29</span>
@@ -595,7 +595,7 @@
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Wed Jan 30 2013 14:30:05 GMT-0600 (CST)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Tue Feb 05 2013 14:57:16 GMT-0600 (CST)</div>
</div>
</body>
View
2  lib/log.js.html
@@ -214,7 +214,7 @@
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Wed Jan 30 2013 14:30:05 GMT-0600 (CST)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Tue Feb 05 2013 14:57:16 GMT-0600 (CST)</div>
</div>
</body>
View
58 lib/options.js.html
@@ -181,16 +181,16 @@
<h1>Code coverage report for <span class='entity'>lib/options.js</span></h1>
<h2>
- Statements: <span class='metric'>100% <small>(168 / 168)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
+ Statements: <span class='metric'>100% <small>(173 / 173)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
- Branches: <span class='metric'>100% <small>(106 / 106)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
+ Branches: <span class='metric'>100% <small>(107 / 107)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
Functions: <span class='metric'>100% <small>(4 / 4)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
- Lines: <span class='metric'>100% <small>(168 / 168)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
+ Lines: <span class='metric'>100% <small>(173 / 173)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
</h2>
<div class="path"><a href="../index.html">All files</a> &#187; <a href="index.html">lib/</a> &#187; options.js</div>
@@ -489,14 +489,25 @@
290
291
292
-293</td><td class="line-coverage"><span class="cline-any cline-yes">1</span>
+293
+294
+295
+296
+297
+298
+299
+300
+301
+302
+303</td><td class="line-coverage"><span class="cline-any cline-yes">1</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">73</span>
+<span class="cline-any cline-yes">74</span>
+<span class="cline-any cline-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>
@@ -531,9 +542,16 @@
<span class="cline-any cline-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">73</span>
-<span class="cline-any cline-yes">136</span>
-<span class="cline-any cline-yes">136</span>
+<span class="cline-any cline-yes">74</span>
+<span class="cline-any cline-yes">137</span>
+<span class="cline-any cline-yes">137</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-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>
@@ -719,6 +737,8 @@
<span class="cline-any cline-yes">2</span>
<span class="cline-any cline-yes">2</span>
<span class="cline-any cline-yes">2</span>
+<span class="cline-any cline-yes">2</span>
+<span class="cline-any cline-yes">2</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2</span>
@@ -750,11 +770,11 @@
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">64</span>
+<span class="cline-any cline-yes">65</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">64</span>
+<span class="cline-any cline-yes">65</span>
<span class="cline-any cline-yes">4</span>
<span class="cline-any cline-yes">3</span>
<span class="cline-any cline-neutral">&nbsp;</span>
@@ -764,7 +784,7 @@
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">63</span>
+<span class="cline-any cline-yes">64</span>
<span class="cline-any cline-yes">7</span>
<span class="cline-any cline-yes">17</span>
<span class="cline-any cline-yes">17</span>
@@ -777,7 +797,7 @@
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">63</span>
+<span class="cline-any cline-yes">64</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>
@@ -804,7 +824,8 @@
exitOnFail: false,
istanbulReport: false,
sourceFilePrefix: false,
- coverageFileName: false
+ coverageFileName: false,
+ combo: []
}, newPath, paths, a, p, t, v, concurrent, coverageFileName, sourceFilePrefix,
phantom, stat,
getPaths = function(opt) {
@@ -826,6 +847,13 @@
while (args.length &gt; 0) {
v = args.shift();
switch (v) {
+ case "--combo":
+ p = args.shift().split(':');
+ options.combo.push({
+ root: p[1],
+ route: p[0]
+ });
+ break;
case "--debug":
options.debug = true;
break;
@@ -1001,6 +1029,8 @@
log.log(' --no-color Force no terminal colors');
log.log(' --debug Show internal grover debugging info');
log.log(' --console Show console.* messages from the test page');
+ log.log(' --combo &lt;route&gt;:&lt;rootPath&gt; Attach a combo server with these settings');
+ log.log(' Example: --combo /combo:./lib --combo /combo/foo:./foo');
log.log('');
log.log('Coverage Options');
log.log(' --coverage Generate a coverage report and print it to the screen (you must instrument your own files first)');
@@ -1078,7 +1108,7 @@
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Wed Jan 30 2013 14:30:05 GMT-0600 (CST)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Tue Feb 05 2013 14:57:16 GMT-0600 (CST)</div>
</div>
</body>
View
2  lib/process.js.html
@@ -322,7 +322,7 @@
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Wed Jan 30 2013 14:30:05 GMT-0600 (CST)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Tue Feb 05 2013 14:57:16 GMT-0600 (CST)</div>
</div>
</body>
View
88 lib/server.js.html
@@ -181,16 +181,16 @@
<h1>Code coverage report for <span class='entity'>lib/server.js</span></h1>
<h2>
- Statements: <span class='metric'>100% <small>(59 / 59)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
+ Statements: <span class='metric'>100% <small>(64 / 64)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
- Branches: <span class='metric'>100% <small>(24 / 24)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
+ Branches: <span class='metric'>100% <small>(28 / 28)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
- Functions: <span class='metric'>100% <small>(8 / 8)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
+ Functions: <span class='metric'>100% <small>(10 / 10)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
- Lines: <span class='metric'>100% <small>(59 / 59)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
+ Lines: <span class='metric'>100% <small>(64 / 64)</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
</h2>
<div class="path"><a href="../index.html">All files</a> &#187; <a href="index.html">lib/</a> &#187; server.js</div>
@@ -304,7 +304,18 @@
105
106
107
-108</td><td class="line-coverage"><span class="cline-any cline-yes">1</span>
+108
+109
+110
+111
+112
+113
+114
+115
+116
+117
+118</td><td class="line-coverage"><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>
@@ -328,7 +339,7 @@
<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">4</span>
+<span class="cline-any cline-yes">5</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">8</span>
@@ -356,41 +367,50 @@
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4</span>
+<span class="cline-any cline-yes">5</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">4</span>
+<span class="cline-any cline-yes">5</span>
<span class="cline-any cline-yes">1</span>
<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4</span>
+<span class="cline-any cline-yes">5</span>
<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4</span>
-<span class="cline-any cline-yes">1</span>
+<span class="cline-any cline-yes">5</span>
+<span class="cline-any cline-yes">2</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4</span>
+<span class="cline-any cline-yes">5</span>
<span class="cline-any cline-yes">5</span>
<span class="cline-any cline-yes">5</span>
<span class="cline-any cline-yes">5</span>
<span class="cline-any cline-yes">5</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">5</span>
<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4</span>
+<span class="cline-any cline-yes">5</span>
<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4</span>
+<span class="cline-any cline-yes">5</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-yes">5</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">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-neutral">&nbsp;</span>
+<span class="cline-any cline-yes">5</span>
+<span class="cline-any cline-yes">5</span>
+<span class="cline-any cline-yes">5</span>
+<span class="cline-any cline-yes">5</span>
+<span class="cline-any cline-neutral">&nbsp;</span>
+<span class="cline-any cline-yes">5</span>
+<span class="cline-any cline-neutral">&nbsp;</span>
+<span class="cline-any cline-neutral">&nbsp;</span>
+<span class="cline-any cline-yes">5</span>
<span class="cline-any cline-yes">2</span>
<span class="cline-any cline-yes">1</span>
<span class="cline-any cline-neutral">&nbsp;</span>
@@ -401,15 +421,15 @@
<span class="cline-any cline-yes">2</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4</span>
+<span class="cline-any cline-yes">5</span>
+<span class="cline-any cline-yes">3</span>
<span class="cline-any cline-yes">2</span>
-<span class="cline-any cline-yes">1</span>
<span class="cline-any cline-neutral">&nbsp;</span>
+<span class="cline-any cline-yes">3</span>
<span class="cline-any cline-yes">2</span>
-<span class="cline-any cline-yes">1</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
-<span class="cline-any cline-yes">4</span>
+<span class="cline-any cline-yes">5</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">var util = require('./index'),
path = require('path'),
@@ -417,6 +437,7 @@
fs = require('fs'),
express = require('express'),
echoecho = require('echoecho'),
+ combo = require('combohandler'),
log = require('./log'),
server;
&nbsp;
@@ -484,11 +505,20 @@
});
&nbsp;
echoecho.paths(options.paths);
-
+&nbsp;
server = express.createServer();
&nbsp;
server.use(express.bodyParser());
-
+&nbsp;
+ if (options.combo &amp;&amp; options.combo.length) {
+ options.combo.forEach(function(info) {
+ util.log(' attaching combo to: ' + info.route);
+ server.get(info.route, combo.combine({ rootPath: info.root }), function (req, res) {
+ res.send(res.body, 200);
+ });
+ });
+ }
+&nbsp;
server.get('/'+'*', handler);
server.post('/'+'*', handler);
server['delete']('/'+'*', handler);
@@ -507,7 +537,7 @@
} catch (e) {}
util.exit(1);
});
-
+&nbsp;
server.on('listening', function() {
if (callback) {
callback(null, server);
@@ -523,7 +553,7 @@
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Wed Jan 30 2013 14:30:05 GMT-0600 (CST)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Tue Feb 05 2013 14:57:16 GMT-0600 (CST)</div>
</div>
</body>
View
2  lib/stack.js.html
@@ -331,7 +331,7 @@
</div>
<div class='footer'>
- <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Wed Jan 30 2013 14:30:05 GMT-0600 (CST)</div>
+ <div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at Tue Feb 05 2013 14:57:16 GMT-0600 (CST)</div>
</div>
</body>
Please sign in to comment.
Something went wrong with that request. Please try again.