forked from AppScale/appscale-tools
/
-home-cgb-_rvm-gems-ruby-1_8_7-head-gems-flexmock-0_9_0-lib-flexmock-test_unit_integration_rb.html
381 lines (211 loc) · 11.4 KB
/
-home-cgb-_rvm-gems-ruby-1_8_7-head-gems-flexmock-0_9_0-lib-flexmock-test_unit_integration_rb.html
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
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>/home/cgb/.rvm/gems/ruby-1.8.7-head/gems/flexmock-0.9.0/lib/flexmock/test_unit_integration.rb</title>
<link href="screen.css" media="all" rel="stylesheet" type="text/css" />
<link href="print.css" media="print" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<script type="text/javascript" src="rcov.js"></script>
</head>
<body>
<h1>Appscale Tools C0 Coverage Information - RCov</h1>
<h2>/home/cgb/.rvm/gems/ruby-1.8.7-head/gems/flexmock-0.9.0/lib/flexmock/test_unit_integration.rb</h2>
<div class="report_table_wrapper">
<table class='report' id='report_table'>
<thead>
<tr>
<th class="left_align">Name</th>
<th class="right_align">Total Lines</th>
<th class="right_align">Lines of Code</th>
<th class="left_align">Total Coverage</th>
<th class="left_align">Code Coverage</th>
</tr>
</thead>
<tbody>
<tr>
<td class="left_align"><a href="-home-cgb-_rvm-gems-ruby-1_8_7-head-gems-flexmock-0_9_0-lib-flexmock-test_unit_integration_rb.html">/home/cgb/.rvm/gems/ruby-1.8.7-head/gems/flexmock-0.9.0/lib/flexmock/test_unit_integration.rb</a></td>
<td class='right_align'><tt>53</tt></td>
<td class='right_align'><tt>19</tt></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>90.57%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:91px"></div>
<div class="uncovered" style="width:9px"></div>
</div></td>
<td class="left_align"><div class="percent_graph_legend"><tt class=''>78.95%</tt></div>
<div class="percent_graph">
<div class="covered" style="width:79px"></div>
<div class="uncovered" style="width:21px"></div>
</div></td>
</tr>
</tbody>
</table>
</div>
<h3>Key</h3>
<div class="key"><pre><span class='marked'>Code reported as executed by Ruby looks like this...</span><span class='marked1'>and this: this line is also marked as covered.</span><span class='inferred'>Lines considered as run by rcov, but not reported by Ruby, look like this,</span><span class='inferred1'>and this: these lines were inferred by rcov (using simple heuristics).</span><span class='uncovered'>Finally, here's a line marked as not executed.</span></pre></div>
<h3>Coverage Details</h3>
<table class="details">
<tbody>
<tr class="inferred">
<td><pre><a name="line1">1</a> #!/usr/bin/env ruby</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line2">2</a> </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line3">3</a> #---</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line4">4</a> # Copyright 2003-2011 by Jim Weirich (jim@weirichhouse.org).</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line5">5</a> # All rights reserved.</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line6">6</a> </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line7">7</a> # Permission is granted for use, copying, modification, distribution,</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line8">8</a> # and distribution of modified versions of this work as long as the</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line9">9</a> # above copyright notice is included.</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line10">10</a> #+++</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line11">11</a> </pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line12">12</a> require 'test/unit'</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line13">13</a> require 'flexmock/base'</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line14">14</a> </pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line15">15</a> class FlexMock</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line16">16</a> </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line17">17</a> ####################################################################</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line18">18</a> # Test::Unit::TestCase Integration.</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line19">19</a> #</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line20">20</a> # Include this module in any TestCase class in a Test::Unit test</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line21">21</a> # suite to get integration with FlexMock. When this module is</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line22">22</a> # included, the mock container methods (e.g. flexmock(), flexstub())</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line23">23</a> # will be available.</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line24">24</a> #</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line25">25</a> # <b>Note:</b> If you define a +teardown+ method in the test case,</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line26">26</a> # <em>dont' forget to invoke the +super+ method!</em> Failure to</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line27">27</a> # invoke super will cause all mocks to not be verified.</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line28">28</a> #</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line29">29</a> module TestCase</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line30">30</a> include ArgumentTypes</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line31">31</a> include MockContainer</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line32">32</a> </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line33">33</a> # Teardown the test case, verifying any mocks that might have been</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line34">34</a> # defined in this test case.</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line35">35</a> def teardown</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line36">36</a> super</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line37">37</a> flexmock_teardown</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line38">38</a> end</pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line39">39</a> </pre></td>
</tr>
<tr class="uncovered">
<td><pre><a name="line40">40</a> end</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line41">41</a> </pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line42">42</a> ####################################################################</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line43">43</a> # Adapter for adapting FlexMock to the Test::Unit framework.</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line44">44</a> #</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line45">45</a> class TestUnitFrameworkAdapter</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line46">46</a> include Test::Unit::Assertions</pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line47">47</a> def assertion_failed_error</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line48">48</a> defined?(Test::Unit::AssertionFailedError) ? Test::Unit::AssertionFailedError : MiniTest::Assertion</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line49">49</a> end</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line50">50</a> end</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line51">51</a> </pre></td>
</tr>
<tr class="marked">
<td><pre><a name="line52">52</a> @framework_adapter = TestUnitFrameworkAdapter.new</pre></td>
</tr>
<tr class="inferred">
<td><pre><a name="line53">53</a> end</pre></td>
</tr>
</tbody>
</table>
<p>Generated on Wed May 16 23:29:48 -0700 2012 with <a href="http://github.com/relevance/rcov">rcov 1.0.0</a></p>
</body>
</html>