~ubuntu-branches/ubuntu/quantal/gmetrics/quantal

« back to all changes in this revision

Viewing changes to src/test/resources/coverage/Cobertura-example-small.xml

  • Committer: Package Import Robot
  • Author(s): Miguel Landaeta, Miguel Landaeta, tony mancill
  • Date: 2012-01-18 20:57:50 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120118205750-68fv86p7fs8xz470
Tags: 0.5-1
[Miguel Landaeta]
* New upstream release.
* Remove patch ftbfs_613266.diff since it was merged upstream.
* Update dates in copyright file.

[tony mancill]
* Set DMUA flag.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-04.dtd">
 
3
 
 
4
<coverage line-rate="0.945" branch-rate="0.785" lines-covered="2506" lines-valid="2651" branches-covered="873" branches-valid="1112" complexity="1.631578947368421" version="1.9.4.1" timestamp="1321536573337">
 
5
        <sources>
 
6
                <source>MyProject/src/main/groovy</source>
 
7
        </sources>
 
8
        <packages>
 
9
                <package name="com.example.model" line-rate="1.0" branch-rate="1.0" complexity="0.0">
 
10
                        <classes>
 
11
                                <class name="com.example.model.Channel" filename="com/example/model/Channel.groovy" line-rate="0.8" branch-rate="0.888" complexity="0.0">
 
12
                                        <methods>
 
13
                                                <method name="&lt;init&gt;" signature="(Ljava/lang/String;ILjava/lang/String;)V" line-rate="0.9" branch-rate="0.5">
 
14
                                                        <lines>
 
15
                                                                <line number="40" hits="4" branch="false"/>
 
16
                                                        </lines>
 
17
                                                </method>
 
18
                                                <method name="getId" signature="()Ljava/lang/String;" line-rate="0.8" branch-rate="1.0">
 
19
                                                        <lines>
 
20
                                                                <line number="17" hits="97" branch="false"/>
 
21
                                                        </lines>
 
22
                                                </method>
 
23
                                                <method name="parse" signature="(Ljava/lang/String;)Lcom/example/model/Channel;" line-rate="0.7" branch-rate="1.0">
 
24
                                                        <lines>
 
25
                                                                <line number="27" hits="7" branch="false"/>
 
26
                                                                <line number="28" hits="7" branch="true" condition-coverage="100% (2/2)">
 
27
                                                                        <conditions>
 
28
                                                                                <condition number="0" type="jump" coverage="100%"/>
 
29
                                                                        </conditions>
 
30
                                                                </line>
 
31
                                                                <line number="29" hits="2" branch="false"/>
 
32
                                                                <line number="31" hits="0" branch="false"/>
 
33
                                                        </lines>
 
34
                                                </method>
 
35
                                                <method name="toString" signature="()Ljava/lang/String;" line-rate="1.0" branch-rate="1.0">
 
36
                                                        <lines>
 
37
                                                                <line number="36" hits="6" branch="false"/>
 
38
                                                        </lines>
 
39
                                                </method>
 
40
                                        </methods>
 
41
                                        <lines>
 
42
                                                <line number="17" hits="97" branch="false"/>
 
43
                                                <line number="27" hits="7" branch="false"/>
 
44
                                                <line number="28" hits="7" branch="true" condition-coverage="100% (2/2)">
 
45
                                                        <conditions>
 
46
                                                                <condition number="0" type="jump" coverage="100%"/>
 
47
                                                        </conditions>
 
48
                                                </line>
 
49
                                                <line number="29" hits="2" branch="false"/>
 
50
                                                <line number="31" hits="5" branch="false"/>
 
51
                                                <line number="36" hits="6" branch="false"/>
 
52
                                                <line number="40" hits="0" branch="false"/>
 
53
                                        </lines>
 
54
                                </class>
 
55
                                <class name="com.example.model.Channel$_parse_closure1" filename="com/example/model/Channel.groovy" line-rate="1.0" branch-rate="1.0" complexity="0.0">
 
56
                                        <methods>
 
57
                                                <method name="doCall" signature="(Ljava/lang/Object;)Ljava/lang/Object;" line-rate="1.0" branch-rate="1.0">
 
58
                                                        <lines>
 
59
                                                                <line number="27" hits="19" branch="true" condition-coverage="100% (2/2)">
 
60
                                                                        <conditions>
 
61
                                                                                <condition number="0" type="jump" coverage="100%"/>
 
62
                                                                        </conditions>
 
63
                                                                </line>
 
64
                                                        </lines>
 
65
                                                </method>
 
66
                                        </methods>
 
67
                                        <lines>
 
68
                                                <line number="27" hits="19" branch="true" condition-coverage="100% (2/2)">
 
69
                                                        <conditions>
 
70
                                                                <condition number="0" type="jump" coverage="100%"/>
 
71
                                                        </conditions>
 
72
                                                </line>
 
73
                                        </lines>
 
74
                                </class>
 
75
                        </classes>
 
76
                </package>
 
77
                <package name="com.example.service" line-rate="0.85" branch-rate="0.65" complexity="0.0">
 
78
                        <classes>
 
79
                                <class name="com.example.service.ClientMappingDao" filename="com/example/service/ClientMappingDao.groovy" line-rate="1.0" branch-rate="1.0" complexity="0.0">
 
80
                                        <methods>
 
81
                                        </methods>
 
82
                                        <lines>
 
83
                                        </lines>
 
84
                                </class>
 
85
                                <class name="com.example.service.ClientMappingService" filename="com/example/service/ClientMappingService.groovy" line-rate="1.0" branch-rate="1.0" complexity="0.0">
 
86
                                        <methods>
 
87
                                        </methods>
 
88
                                        <lines>
 
89
                                        </lines>
 
90
                                </class>
 
91
                                <class name="com.example.service.GenericLookupService" filename="com/example/service/GenericLookupService.groovy" line-rate="1.0" branch-rate="1.0" complexity="0.0">
 
92
                                        <methods>
 
93
                                                <method name="&lt;clinit&gt;" signature="()V" line-rate="1.0" branch-rate="1.0">
 
94
                                                        <lines>
 
95
                                                                <line number="31" hits="1" branch="false"/>
 
96
                                                        </lines>
 
97
                                                </method>
 
98
                                                <method name="buildReverseLookupMap" signature="(Ljava/util/Map;)Ljava/util/Map;" line-rate="1.0" branch-rate="0.8">
 
99
                                                        <lines>
 
100
                                                                <line number="70" hits="4" branch="false"/>
 
101
                                                                <line number="71" hits="4" branch="false"/>
 
102
                                                                <line number="79" hits="4" branch="false"/>
 
103
                                                        </lines>
 
104
                                                </method>
 
105
                                                <method name="get" signature="()Ljava/util/Map;" line-rate="1.0" branch-rate="0.5">
 
106
                                                        <lines>
 
107
                                                                <line number="44" hits="5" branch="true" condition-coverage="100% (2/2)">
 
108
                                                                        <conditions>
 
109
                                                                                <condition number="0" type="jump" coverage="100%"/>
 
110
                                                                        </conditions>
 
111
                                                                </line>
 
112
                                                                <line number="45" hits="4" branch="false"/>
 
113
                                                                <line number="46" hits="4" branch="false"/>
 
114
                                                        </lines>
 
115
                                                </method>
 
116
                                                <method name="getAllEnabledClients" signature="()Ljava/lang/Object;" line-rate="1.0" branch-rate="0.5">
 
117
                                                        <lines>
 
118
                                                                <line number="83" hits="4" branch="true" condition-coverage="100% (2/2)">
 
119
                                                                        <conditions>
 
120
                                                                                <condition number="0" type="jump" coverage="100%"/>
 
121
                                                                        </conditions>
 
122
                                                                </line>
 
123
                                                                <line number="84" hits="2" branch="false"/>
 
124
                                                                <line number="86" hits="2" branch="false"/>
 
125
                                                        </lines>
 
126
                                                </method>
 
127
                                                <method name="getMappingToClients" signature="(Ljava/lang/String;Lgroovy/lang/Closure;)Ljava/util/Map;" line-rate="1.0" branch-rate="1.0">
 
128
                                                        <lines>
 
129
                                                                <line number="54" hits="4" branch="false"/>
 
130
                                                                <line number="55" hits="4" branch="false"/>
 
131
                                                                <line number="56" hits="4" branch="false"/>
 
132
                                                                <line number="57" hits="4" branch="false"/>
 
133
                                                                <line number="58" hits="4" branch="false"/>
 
134
                                                        </lines>
 
135
                                                </method>
 
136
                                                <method name="loadDataMapByClient" signature="(Ljava/lang/String;Ljava/util/List;Lgroovy/lang/Closure;)Ljava/util/Map;" line-rate="1.0" branch-rate="1.0">
 
137
                                                        <lines>
 
138
                                                                <line number="62" hits="4" branch="false"/>
 
139
                                                                <line number="63" hits="4" branch="false"/>
 
140
                                                                <line number="66" hits="4" branch="false"/>
 
141
                                                        </lines>
 
142
                                                </method>
 
143
                                        </methods>
 
144
                                        <lines>
 
145
                                                <line number="31" hits="1" branch="false"/>
 
146
                                                <line number="44" hits="5" branch="true" condition-coverage="100% (2/2)">
 
147
                                                        <conditions>
 
148
                                                                <condition number="0" type="jump" coverage="100%"/>
 
149
                                                        </conditions>
 
150
                                                </line>
 
151
                                                <line number="45" hits="4" branch="false"/>
 
152
                                                <line number="46" hits="4" branch="false"/>
 
153
                                                <line number="54" hits="4" branch="false"/>
 
154
                                                <line number="55" hits="4" branch="false"/>
 
155
                                                <line number="56" hits="4" branch="false"/>
 
156
                                                <line number="57" hits="4" branch="false"/>
 
157
                                                <line number="58" hits="4" branch="false"/>
 
158
                                                <line number="62" hits="4" branch="false"/>
 
159
                                                <line number="63" hits="4" branch="false"/>
 
160
                                                <line number="66" hits="4" branch="false"/>
 
161
                                                <line number="70" hits="4" branch="false"/>
 
162
                                                <line number="71" hits="4" branch="false"/>
 
163
                                                <line number="79" hits="4" branch="false"/>
 
164
                                                <line number="83" hits="4" branch="true" condition-coverage="100% (2/2)">
 
165
                                                        <conditions>
 
166
                                                                <condition number="0" type="jump" coverage="100%"/>
 
167
                                                        </conditions>
 
168
                                                </line>
 
169
                                                <line number="84" hits="2" branch="false"/>
 
170
                                                <line number="86" hits="2" branch="false"/>
 
171
                                        </lines>
 
172
                                </class>
 
173
                                <class name="com.example.service.GenericLookupService$_buildReverseLookupMap_closure3" filename="com/example/service/GenericLookupService.groovy" line-rate="1.0" branch-rate="1.0" complexity="0.0">
 
174
                                        <methods>
 
175
                                                <method name="doCall" signature="(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;" line-rate="1.0" branch-rate="1.0">
 
176
                                                        <lines>
 
177
                                                                <line number="72" hits="10" branch="false"/>
 
178
                                                        </lines>
 
179
                                                </method>
 
180
                                        </methods>
 
181
                                        <lines>
 
182
                                                <line number="72" hits="10" branch="false"/>
 
183
                                        </lines>
 
184
                                </class>
 
185
                                <class name="com.example.service.GenericLookupService$_buildReverseLookupMap_closure3_closure4" filename="com/example/service/GenericLookupService.groovy" line-rate="1.0" branch-rate="1.0" complexity="0.0">
 
186
                                        <methods>
 
187
                                                <method name="doCall" signature="(Ljava/lang/Object;)Ljava/lang/Object;" line-rate="1.0" branch-rate="1.0">
 
188
                                                        <lines>
 
189
                                                                <line number="73" hits="13" branch="true" condition-coverage="100% (2/2)">
 
190
                                                                        <conditions>
 
191
                                                                                <condition number="0" type="jump" coverage="100%"/>
 
192
                                                                        </conditions>
 
193
                                                                </line>
 
194
                                                                <line number="74" hits="10" branch="false"/>
 
195
                                                                <line number="76" hits="13" branch="false"/>
 
196
                                                        </lines>
 
197
                                                </method>
 
198
                                        </methods>
 
199
                                        <lines>
 
200
                                                <line number="73" hits="13" branch="true" condition-coverage="100% (1/2)">
 
201
                                                        <conditions>
 
202
                                                                <condition number="0" type="jump" coverage="50%"/>
 
203
                                                        </conditions>
 
204
                                                </line>
 
205
                                                <line number="74" hits="10" branch="false"/>
 
206
                                                <line number="76" hits="13" branch="false"/>
 
207
                                        </lines>
 
208
                                </class>
 
209
                                <class name="com.example.service.GenericLookupService$_get_closure1" filename="com/example/service/GenericLookupService.groovy" line-rate="1.0" branch-rate="1.0" complexity="0.0">
 
210
                                        <methods>
 
211
                                                <method name="doCall" signature="(Ljava/lang/Object;)Ljava/lang/Object;" line-rate="1.0" branch-rate="1.0">
 
212
                                                        <lines>
 
213
                                                                <line number="45" hits="10" branch="false"/>
 
214
                                                        </lines>
 
215
                                                </method>
 
216
                                        </methods>
 
217
                                        <lines>
 
218
                                                <line number="45" hits="10" branch="false"/>
 
219
                                        </lines>
 
220
                                </class>
 
221
                                <class name="com.example.service.GenericLookupService$_loadDataMapByClient_closure2" filename="com/example/service/GenericLookupService.groovy" line-rate="1.0" branch-rate="1.0" complexity="0.0">
 
222
                                        <methods>
 
223
                                                <method name="doCall" signature="(Ljava/lang/Object;)Ljava/lang/Object;" line-rate="1.0" branch-rate="1.0">
 
224
                                                        <lines>
 
225
                                                                <line number="64" hits="10" branch="false"/>
 
226
                                                        </lines>
 
227
                                                </method>
 
228
                                        </methods>
 
229
                                        <lines>
 
230
                                                <line number="64" hits="10" branch="false"/>
 
231
                                        </lines>
 
232
                                </class>
 
233
                                <class name="com.example.service.GroovySqlClientMappingDao" filename="com/example/service/GroovySqlClientMappingDao.groovy" line-rate="1.0" branch-rate="1.0" complexity="0.0">
 
234
                                        <methods>
 
235
                                                <method name="getBobGroupIds" signature="()Ljava/util/List;" line-rate="1.0" branch-rate="1.0">
 
236
                                                        <lines>
 
237
                                                                <line number="17" hits="1" branch="false"/>
 
238
                                                                <line number="18" hits="1" branch="false"/>
 
239
                                                                <line number="19" hits="1" branch="false"/>
 
240
                                                        </lines>
 
241
                                                </method>
 
242
                                                <method name="getPlanIds" signature="()Ljava/util/List;" line-rate="1.0" branch-rate="1.0">
 
243
                                                        <lines>
 
244
                                                                <line number="23" hits="1" branch="false"/>
 
245
                                                                <line number="24" hits="1" branch="false"/>
 
246
                                                                <line number="25" hits="1" branch="false"/>
 
247
                                                        </lines>
 
248
                                                </method>
 
249
                                        </methods>
 
250
                                        <lines>
 
251
                                                <line number="17" hits="1" branch="false"/>
 
252
                                                <line number="18" hits="1" branch="false"/>
 
253
                                                <line number="19" hits="1" branch="false"/>
 
254
                                                <line number="23" hits="1" branch="false"/>
 
255
                                                <line number="24" hits="1" branch="false"/>
 
256
                                                <line number="25" hits="1" branch="false"/>
 
257
                                        </lines>
 
258
                                </class>
 
259
                                <class name="com.example.service.GroovySqlClientMappingDao$_getBobGroupIds_closure1" filename="com/example/service/GroovySqlClientMappingDao.groovy" line-rate="1.0" branch-rate="1.0" complexity="0.0">
 
260
                                        <methods>
 
261
                                                <method name="doCall" signature="(Ljava/lang/Object;)Ljava/lang/Object;" line-rate="1.0" branch-rate="1.0">
 
262
                                                        <lines>
 
263
                                                                <line number="18" hits="1" branch="false"/>
 
264
                                                        </lines>
 
265
                                                </method>
 
266
                                        </methods>
 
267
                                        <lines>
 
268
                                                <line number="18" hits="1" branch="false"/>
 
269
                                        </lines>
 
270
                                </class>
 
271
                                <class name="com.example.service.GroovySqlClientMappingDao$_getBobGroupIds_closure2" filename="com/example/service/GroovySqlClientMappingDao.groovy" line-rate="1.0" branch-rate="1.0" complexity="0.0">
 
272
                                        <methods>
 
273
                                                <method name="doCall" signature="(Ljava/lang/Object;)Ljava/lang/Object;" line-rate="1.0" branch-rate="1.0">
 
274
                                                        <lines>
 
275
                                                                <line number="19" hits="30" branch="false"/>
 
276
                                                        </lines>
 
277
                                                </method>
 
278
                                        </methods>
 
279
                                        <lines>
 
280
                                                <line number="19" hits="30" branch="false"/>
 
281
                                        </lines>
 
282
                                </class>
 
283
                                <class name="com.example.service.GroovySqlClientMappingDao$_getPlanIds_closure3" filename="com/example/service/GroovySqlClientMappingDao.groovy" line-rate="1.0" branch-rate="1.0" complexity="0.0">
 
284
                                        <methods>
 
285
                                                <method name="doCall" signature="(Ljava/lang/Object;)Ljava/lang/Object;" line-rate="1.0" branch-rate="1.0">
 
286
                                                        <lines>
 
287
                                                                <line number="24" hits="1" branch="false"/>
 
288
                                                        </lines>
 
289
                                                </method>
 
290
                                        </methods>
 
291
                                        <lines>
 
292
                                                <line number="24" hits="1" branch="false"/>
 
293
                                        </lines>
 
294
                                </class>
 
295
                                <class name="com.example.service.GroovySqlClientMappingDao$_getPlanIds_closure4" filename="com/example/service/GroovySqlClientMappingDao.groovy" line-rate="1.0" branch-rate="1.0" complexity="0.0">
 
296
                                        <methods>
 
297
                                                <method name="doCall" signature="(Ljava/lang/Object;)Ljava/lang/Object;" line-rate="1.0" branch-rate="1.0">
 
298
                                                        <lines>
 
299
                                                                <line number="25" hits="343" branch="false"/>
 
300
                                                        </lines>
 
301
                                                </method>
 
302
                                        </methods>
 
303
                                        <lines>
 
304
                                                <line number="25" hits="343" branch="false"/>
 
305
                                        </lines>
 
306
                                </class>
 
307
                <class name="com.example.service.Email" filename="com/example/service/Email.groovy" line-rate="0.66" branch-rate="0.61" complexity="0.0">
 
308
                    <methods>
 
309
                        <method name="toString" signature="()Ljava/lang/String;" line-rate="0.99" branch-rate="0.91">
 
310
                            <lines>
 
311
                                <line number="26" hits="1538" branch="false"/>
 
312
                                <line number="27" hits="780" branch="true" condition-coverage="25% (1/4)">
 
313
                                    <conditions>
 
314
                                        <condition number="0" type="jump" coverage="50%"/>
 
315
                                        <condition number="1" type="jump" coverage="0%"/>
 
316
                                    </conditions>
 
317
                                </line>
 
318
                                <line number="27" hits="1538" branch="false"/>
 
319
                            </lines>
 
320
                        </method>
 
321
                    </methods>
 
322
                    <lines>
 
323
                        <line number="26" hits="1538" branch="false"/>
 
324
                        <line number="27" hits="13" branch="true" condition-coverage="100% (1/2)">
 
325
                            <conditions>
 
326
                                <condition number="0" type="jump" coverage="50%"/>
 
327
                            </conditions>
 
328
                        </line>
 
329
                    </lines>
 
330
                </class>
 
331
 
 
332
                <class name="com.example.service.Context" filename="com/example/service/Context.java" line-rate="0.11" branch-rate="0.31" complexity="1.0">
 
333
                    <methods>
 
334
                        <method name="&lt;init&gt;" signature="(Ljava/util/Collection;)V" line-rate="0.22" branch-rate="0.32">
 
335
                            <lines>
 
336
                                <line number="22" hits="13" branch="false"/>
 
337
                                <line number="24" hits="13" branch="false"/>
 
338
                                <line number="25" hits="13" branch="false"/>
 
339
                                <line number="26" hits="13" branch="false"/>
 
340
                                <line number="27" hits="13" branch="false"/>
 
341
                                <line number="28" hits="13" branch="false"/>
 
342
                            </lines>
 
343
                        </method>
 
344
                    </methods>
 
345
                    <lines>
 
346
                        <line number="22" hits="13" branch="false"/>
 
347
                        <line number="24" hits="13" branch="false"/>
 
348
                        <line number="25" hits="13" branch="false"/>
 
349
                        <line number="26" hits="13" branch="false"/>
 
350
                        <line number="27" hits="13" branch="false"/>
 
351
                        <line number="28" hits="13" branch="false"/>
 
352
                    </lines>
 
353
                </class>
 
354
 
 
355
                <class name="com.example.service.MyException" filename="com/example/service/MyException.java" line-rate="0.66" branch-rate="0.61" complexity="1.0">
 
356
                    <methods>
 
357
                        <method name="&lt;init&gt;" signature="(Ljava/lang/String;)V" line-rate="0.3" branch-rate="0.35">
 
358
                            <lines>
 
359
                                <line number="18" hits="94" branch="false"/>
 
360
                                <line number="19" hits="94" branch="false"/>
 
361
                            </lines>
 
362
                        </method>
 
363
                        <method name="&lt;init&gt;" signature="(Ljava/lang/String;Ljava/lang/String;)V" line-rate="0.4" branch-rate="0.45">
 
364
                            <lines>
 
365
                                <line number="22" hits="10" branch="false"/>
 
366
                                <line number="23" hits="10" branch="false"/>
 
367
                                <line number="24" hits="10" branch="false"/>
 
368
                            </lines>
 
369
                        </method>
 
370
                        <method name="&lt;init&gt;" signature="(Ljava/lang/String;Ljava/lang/Throwable;)V" line-rate="0.5" branch-rate="0.55">
 
371
                            <lines>
 
372
                                <line number="31" hits="0" branch="false"/>
 
373
                                <line number="32" hits="0" branch="false"/>
 
374
                            </lines>
 
375
                        </method>
 
376
                        <method name="&lt;init&gt;" signature="(Ljava/lang/Throwable;)V" line-rate="0.6" branch-rate="0.65">
 
377
                            <lines>
 
378
                                <line number="27" hits="2" branch="false"/>
 
379
                                <line number="28" hits="2" branch="false"/>
 
380
                            </lines>
 
381
                        </method>
 
382
                        <method name="getCode" signature="()Ljava/lang/String;" line-rate="1.0" branch-rate="1.0">
 
383
                            <lines>
 
384
                                <line number="35" hits="2" branch="false"/>
 
385
                            </lines>
 
386
                        </method>
 
387
                        <method name="setCode" signature="(Ljava/lang/String;)V" line-rate="0.0" branch-rate="1.0">
 
388
                            <lines>
 
389
                                <line number="38" hits="0" branch="false"/>
 
390
                                <line number="39" hits="0" branch="false"/>
 
391
                            </lines>
 
392
                        </method>
 
393
                    </methods>
 
394
                    <lines>
 
395
                        <line number="18" hits="94" branch="false"/>
 
396
                        <line number="19" hits="94" branch="false"/>
 
397
                        <line number="22" hits="10" branch="false"/>
 
398
                        <line number="23" hits="10" branch="false"/>
 
399
                        <line number="24" hits="10" branch="false"/>
 
400
                        <line number="27" hits="2" branch="false"/>
 
401
                        <line number="28" hits="2" branch="false"/>
 
402
                        <line number="31" hits="0" branch="false"/>
 
403
                        <line number="32" hits="0" branch="false"/>
 
404
                        <line number="35" hits="2" branch="false"/>
 
405
                        <line number="38" hits="0" branch="false"/>
 
406
                        <line number="39" hits="0" branch="false"/>
 
407
                    </lines>
 
408
                </class>
 
409
                        </classes>
 
410
        </package>
 
411
        </packages>
 
412
</coverage>