PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/js/lib/Socket.IO-node/support/expresso/deps/jscoverage/tests/javascript.expected/javascript-switch.js

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
JavaScript | 55 lines | 54 code | 0 blank | 1 comment | 4 complexity | dec166ec92b5f4720003aae79cbb6331 MD5 | raw file
 1/* automatically generated by JSCoverage - do not edit */
 2if (! top._$jscoverage) {
 3  top._$jscoverage = {};
 4}
 5var _$jscoverage = top._$jscoverage;
 6if (! _$jscoverage['javascript-switch.js']) {
 7  _$jscoverage['javascript-switch.js'] = [];
 8  _$jscoverage['javascript-switch.js'][1] = 0;
 9  _$jscoverage['javascript-switch.js'][3] = 0;
10  _$jscoverage['javascript-switch.js'][4] = 0;
11  _$jscoverage['javascript-switch.js'][6] = 0;
12  _$jscoverage['javascript-switch.js'][7] = 0;
13  _$jscoverage['javascript-switch.js'][8] = 0;
14  _$jscoverage['javascript-switch.js'][10] = 0;
15  _$jscoverage['javascript-switch.js'][11] = 0;
16  _$jscoverage['javascript-switch.js'][14] = 0;
17  _$jscoverage['javascript-switch.js'][16] = 0;
18  _$jscoverage['javascript-switch.js'][17] = 0;
19  _$jscoverage['javascript-switch.js'][18] = 0;
20  _$jscoverage['javascript-switch.js'][20] = 0;
21}
22_$jscoverage['javascript-switch.js'][1]++;
23switch (x) {
24case x:
25  _$jscoverage['javascript-switch.js'][3]++;
26  x = 0;
27  _$jscoverage['javascript-switch.js'][4]++;
28  break;
29case y:
30  _$jscoverage['javascript-switch.js'][6]++;
31  x = 0;
32  _$jscoverage['javascript-switch.js'][7]++;
33  y = 0;
34  _$jscoverage['javascript-switch.js'][8]++;
35  break;
36default:
37  _$jscoverage['javascript-switch.js'][10]++;
38  x = 0;
39  _$jscoverage['javascript-switch.js'][11]++;
40  break;
41}
42_$jscoverage['javascript-switch.js'][14]++;
43switch (x) {
44case 1:
45  _$jscoverage['javascript-switch.js'][16]++;
46  let y = 1;
47  _$jscoverage['javascript-switch.js'][17]++;
48  f(y);
49  _$jscoverage['javascript-switch.js'][18]++;
50  break;
51case 2:
52  _$jscoverage['javascript-switch.js'][20]++;
53  break;
54}
55_$jscoverage['javascript-switch.js'].source = ["<span class=\"k\">switch</span> <span class=\"k\">(</span>x<span class=\"k\">)</span> <span class=\"k\">{</span>","<span class=\"k\">case</span> x<span class=\"k\">:</span>","  x <span class=\"k\">=</span> <span class=\"s\">0</span><span class=\"k\">;</span>","  <span class=\"k\">break</span><span class=\"k\">;</span>","<span class=\"k\">case</span> y<span class=\"k\">:</span>","  x <span class=\"k\">=</span> <span class=\"s\">0</span><span class=\"k\">;</span>","  y <span class=\"k\">=</span> <span class=\"s\">0</span><span class=\"k\">;</span>","  <span class=\"k\">break</span><span class=\"k\">;</span>","<span class=\"k\">default</span><span class=\"k\">:</span>","  x <span class=\"k\">=</span> <span class=\"s\">0</span><span class=\"k\">;</span>","  <span class=\"k\">break</span><span class=\"k\">;</span>","<span class=\"k\">}</span>","","<span class=\"k\">switch</span> <span class=\"k\">(</span>x<span class=\"k\">)</span> <span class=\"k\">{</span>","<span class=\"k\">case</span> <span class=\"s\">1</span><span class=\"k\">:</span>","  <span class=\"k\">let</span> y <span class=\"k\">=</span> <span class=\"s\">1</span><span class=\"k\">;</span>","  f<span class=\"k\">(</span>y<span class=\"k\">);</span>","  <span class=\"k\">break</span><span class=\"k\">;</span>","<span class=\"k\">case</span> <span class=\"s\">2</span><span class=\"k\">:</span>","  <span class=\"k\">break</span><span class=\"k\">;</span>","<span class=\"k\">}</span>"];