OLD | NEW |
1 library googleapis.books.v1.test; | 1 library googleapis.books.v1.test; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 checkAnnotationLayerSummary(api.AnnotationLayerSummary o) { | 86 checkAnnotationLayerSummary(api.AnnotationLayerSummary o) { |
87 buildCounterAnnotationLayerSummary++; | 87 buildCounterAnnotationLayerSummary++; |
88 if (buildCounterAnnotationLayerSummary < 3) { | 88 if (buildCounterAnnotationLayerSummary < 3) { |
89 unittest.expect(o.allowedCharacterCount, unittest.equals(42)); | 89 unittest.expect(o.allowedCharacterCount, unittest.equals(42)); |
90 unittest.expect(o.limitType, unittest.equals('foo')); | 90 unittest.expect(o.limitType, unittest.equals('foo')); |
91 unittest.expect(o.remainingCharacterCount, unittest.equals(42)); | 91 unittest.expect(o.remainingCharacterCount, unittest.equals(42)); |
92 } | 92 } |
93 buildCounterAnnotationLayerSummary--; | 93 buildCounterAnnotationLayerSummary--; |
94 } | 94 } |
95 | 95 |
96 buildUnnamed516() { | 96 buildUnnamed305() { |
97 var o = new core.List<core.String>(); | 97 var o = new core.List<core.String>(); |
98 o.add("foo"); | 98 o.add("foo"); |
99 o.add("foo"); | 99 o.add("foo"); |
100 return o; | 100 return o; |
101 } | 101 } |
102 | 102 |
103 checkUnnamed516(core.List<core.String> o) { | 103 checkUnnamed305(core.List<core.String> o) { |
104 unittest.expect(o, unittest.hasLength(2)); | 104 unittest.expect(o, unittest.hasLength(2)); |
105 unittest.expect(o[0], unittest.equals('foo')); | 105 unittest.expect(o[0], unittest.equals('foo')); |
106 unittest.expect(o[1], unittest.equals('foo')); | 106 unittest.expect(o[1], unittest.equals('foo')); |
107 } | 107 } |
108 | 108 |
109 core.int buildCounterAnnotation = 0; | 109 core.int buildCounterAnnotation = 0; |
110 buildAnnotation() { | 110 buildAnnotation() { |
111 var o = new api.Annotation(); | 111 var o = new api.Annotation(); |
112 buildCounterAnnotation++; | 112 buildCounterAnnotation++; |
113 if (buildCounterAnnotation < 3) { | 113 if (buildCounterAnnotation < 3) { |
114 o.afterSelectedText = "foo"; | 114 o.afterSelectedText = "foo"; |
115 o.beforeSelectedText = "foo"; | 115 o.beforeSelectedText = "foo"; |
116 o.clientVersionRanges = buildAnnotationClientVersionRanges(); | 116 o.clientVersionRanges = buildAnnotationClientVersionRanges(); |
117 o.created = core.DateTime.parse("2002-02-27T14:01:02"); | 117 o.created = core.DateTime.parse("2002-02-27T14:01:02"); |
118 o.currentVersionRanges = buildAnnotationCurrentVersionRanges(); | 118 o.currentVersionRanges = buildAnnotationCurrentVersionRanges(); |
119 o.data = "foo"; | 119 o.data = "foo"; |
120 o.deleted = true; | 120 o.deleted = true; |
121 o.highlightStyle = "foo"; | 121 o.highlightStyle = "foo"; |
122 o.id = "foo"; | 122 o.id = "foo"; |
123 o.kind = "foo"; | 123 o.kind = "foo"; |
124 o.layerId = "foo"; | 124 o.layerId = "foo"; |
125 o.layerSummary = buildAnnotationLayerSummary(); | 125 o.layerSummary = buildAnnotationLayerSummary(); |
126 o.pageIds = buildUnnamed516(); | 126 o.pageIds = buildUnnamed305(); |
127 o.selectedText = "foo"; | 127 o.selectedText = "foo"; |
128 o.selfLink = "foo"; | 128 o.selfLink = "foo"; |
129 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 129 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
130 o.volumeId = "foo"; | 130 o.volumeId = "foo"; |
131 } | 131 } |
132 buildCounterAnnotation--; | 132 buildCounterAnnotation--; |
133 return o; | 133 return o; |
134 } | 134 } |
135 | 135 |
136 checkAnnotation(api.Annotation o) { | 136 checkAnnotation(api.Annotation o) { |
137 buildCounterAnnotation++; | 137 buildCounterAnnotation++; |
138 if (buildCounterAnnotation < 3) { | 138 if (buildCounterAnnotation < 3) { |
139 unittest.expect(o.afterSelectedText, unittest.equals('foo')); | 139 unittest.expect(o.afterSelectedText, unittest.equals('foo')); |
140 unittest.expect(o.beforeSelectedText, unittest.equals('foo')); | 140 unittest.expect(o.beforeSelectedText, unittest.equals('foo')); |
141 checkAnnotationClientVersionRanges(o.clientVersionRanges); | 141 checkAnnotationClientVersionRanges(o.clientVersionRanges); |
142 unittest.expect(o.created, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 142 unittest.expect(o.created, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
143 checkAnnotationCurrentVersionRanges(o.currentVersionRanges); | 143 checkAnnotationCurrentVersionRanges(o.currentVersionRanges); |
144 unittest.expect(o.data, unittest.equals('foo')); | 144 unittest.expect(o.data, unittest.equals('foo')); |
145 unittest.expect(o.deleted, unittest.isTrue); | 145 unittest.expect(o.deleted, unittest.isTrue); |
146 unittest.expect(o.highlightStyle, unittest.equals('foo')); | 146 unittest.expect(o.highlightStyle, unittest.equals('foo')); |
147 unittest.expect(o.id, unittest.equals('foo')); | 147 unittest.expect(o.id, unittest.equals('foo')); |
148 unittest.expect(o.kind, unittest.equals('foo')); | 148 unittest.expect(o.kind, unittest.equals('foo')); |
149 unittest.expect(o.layerId, unittest.equals('foo')); | 149 unittest.expect(o.layerId, unittest.equals('foo')); |
150 checkAnnotationLayerSummary(o.layerSummary); | 150 checkAnnotationLayerSummary(o.layerSummary); |
151 checkUnnamed516(o.pageIds); | 151 checkUnnamed305(o.pageIds); |
152 unittest.expect(o.selectedText, unittest.equals('foo')); | 152 unittest.expect(o.selectedText, unittest.equals('foo')); |
153 unittest.expect(o.selfLink, unittest.equals('foo')); | 153 unittest.expect(o.selfLink, unittest.equals('foo')); |
154 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 154 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
155 unittest.expect(o.volumeId, unittest.equals('foo')); | 155 unittest.expect(o.volumeId, unittest.equals('foo')); |
156 } | 156 } |
157 buildCounterAnnotation--; | 157 buildCounterAnnotation--; |
158 } | 158 } |
159 | 159 |
160 core.int buildCounterAnnotationdata = 0; | 160 core.int buildCounterAnnotationdata = 0; |
161 buildAnnotationdata() { | 161 buildAnnotationdata() { |
(...skipping 23 matching lines...) Expand all Loading... |
185 unittest.expect(o.id, unittest.equals('foo')); | 185 unittest.expect(o.id, unittest.equals('foo')); |
186 unittest.expect(o.kind, unittest.equals('foo')); | 186 unittest.expect(o.kind, unittest.equals('foo')); |
187 unittest.expect(o.layerId, unittest.equals('foo')); | 187 unittest.expect(o.layerId, unittest.equals('foo')); |
188 unittest.expect(o.selfLink, unittest.equals('foo')); | 188 unittest.expect(o.selfLink, unittest.equals('foo')); |
189 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 189 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
190 unittest.expect(o.volumeId, unittest.equals('foo')); | 190 unittest.expect(o.volumeId, unittest.equals('foo')); |
191 } | 191 } |
192 buildCounterAnnotationdata--; | 192 buildCounterAnnotationdata--; |
193 } | 193 } |
194 | 194 |
195 buildUnnamed517() { | 195 buildUnnamed306() { |
196 var o = new core.List<api.Annotation>(); | 196 var o = new core.List<api.Annotation>(); |
197 o.add(buildAnnotation()); | 197 o.add(buildAnnotation()); |
198 o.add(buildAnnotation()); | 198 o.add(buildAnnotation()); |
199 return o; | 199 return o; |
200 } | 200 } |
201 | 201 |
202 checkUnnamed517(core.List<api.Annotation> o) { | 202 checkUnnamed306(core.List<api.Annotation> o) { |
203 unittest.expect(o, unittest.hasLength(2)); | 203 unittest.expect(o, unittest.hasLength(2)); |
204 checkAnnotation(o[0]); | 204 checkAnnotation(o[0]); |
205 checkAnnotation(o[1]); | 205 checkAnnotation(o[1]); |
206 } | 206 } |
207 | 207 |
208 core.int buildCounterAnnotations = 0; | 208 core.int buildCounterAnnotations = 0; |
209 buildAnnotations() { | 209 buildAnnotations() { |
210 var o = new api.Annotations(); | 210 var o = new api.Annotations(); |
211 buildCounterAnnotations++; | 211 buildCounterAnnotations++; |
212 if (buildCounterAnnotations < 3) { | 212 if (buildCounterAnnotations < 3) { |
213 o.items = buildUnnamed517(); | 213 o.items = buildUnnamed306(); |
214 o.kind = "foo"; | 214 o.kind = "foo"; |
215 o.nextPageToken = "foo"; | 215 o.nextPageToken = "foo"; |
216 o.totalItems = 42; | 216 o.totalItems = 42; |
217 } | 217 } |
218 buildCounterAnnotations--; | 218 buildCounterAnnotations--; |
219 return o; | 219 return o; |
220 } | 220 } |
221 | 221 |
222 checkAnnotations(api.Annotations o) { | 222 checkAnnotations(api.Annotations o) { |
223 buildCounterAnnotations++; | 223 buildCounterAnnotations++; |
224 if (buildCounterAnnotations < 3) { | 224 if (buildCounterAnnotations < 3) { |
225 checkUnnamed517(o.items); | 225 checkUnnamed306(o.items); |
226 unittest.expect(o.kind, unittest.equals('foo')); | 226 unittest.expect(o.kind, unittest.equals('foo')); |
227 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 227 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
228 unittest.expect(o.totalItems, unittest.equals(42)); | 228 unittest.expect(o.totalItems, unittest.equals(42)); |
229 } | 229 } |
230 buildCounterAnnotations--; | 230 buildCounterAnnotations--; |
231 } | 231 } |
232 | 232 |
233 core.int buildCounterAnnotationsSummaryLayers = 0; | 233 core.int buildCounterAnnotationsSummaryLayers = 0; |
234 buildAnnotationsSummaryLayers() { | 234 buildAnnotationsSummaryLayers() { |
235 var o = new api.AnnotationsSummaryLayers(); | 235 var o = new api.AnnotationsSummaryLayers(); |
(...skipping 14 matching lines...) Expand all Loading... |
250 if (buildCounterAnnotationsSummaryLayers < 3) { | 250 if (buildCounterAnnotationsSummaryLayers < 3) { |
251 unittest.expect(o.allowedCharacterCount, unittest.equals(42)); | 251 unittest.expect(o.allowedCharacterCount, unittest.equals(42)); |
252 unittest.expect(o.layerId, unittest.equals('foo')); | 252 unittest.expect(o.layerId, unittest.equals('foo')); |
253 unittest.expect(o.limitType, unittest.equals('foo')); | 253 unittest.expect(o.limitType, unittest.equals('foo')); |
254 unittest.expect(o.remainingCharacterCount, unittest.equals(42)); | 254 unittest.expect(o.remainingCharacterCount, unittest.equals(42)); |
255 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 255 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
256 } | 256 } |
257 buildCounterAnnotationsSummaryLayers--; | 257 buildCounterAnnotationsSummaryLayers--; |
258 } | 258 } |
259 | 259 |
260 buildUnnamed518() { | 260 buildUnnamed307() { |
261 var o = new core.List<api.AnnotationsSummaryLayers>(); | 261 var o = new core.List<api.AnnotationsSummaryLayers>(); |
262 o.add(buildAnnotationsSummaryLayers()); | 262 o.add(buildAnnotationsSummaryLayers()); |
263 o.add(buildAnnotationsSummaryLayers()); | 263 o.add(buildAnnotationsSummaryLayers()); |
264 return o; | 264 return o; |
265 } | 265 } |
266 | 266 |
267 checkUnnamed518(core.List<api.AnnotationsSummaryLayers> o) { | 267 checkUnnamed307(core.List<api.AnnotationsSummaryLayers> o) { |
268 unittest.expect(o, unittest.hasLength(2)); | 268 unittest.expect(o, unittest.hasLength(2)); |
269 checkAnnotationsSummaryLayers(o[0]); | 269 checkAnnotationsSummaryLayers(o[0]); |
270 checkAnnotationsSummaryLayers(o[1]); | 270 checkAnnotationsSummaryLayers(o[1]); |
271 } | 271 } |
272 | 272 |
273 core.int buildCounterAnnotationsSummary = 0; | 273 core.int buildCounterAnnotationsSummary = 0; |
274 buildAnnotationsSummary() { | 274 buildAnnotationsSummary() { |
275 var o = new api.AnnotationsSummary(); | 275 var o = new api.AnnotationsSummary(); |
276 buildCounterAnnotationsSummary++; | 276 buildCounterAnnotationsSummary++; |
277 if (buildCounterAnnotationsSummary < 3) { | 277 if (buildCounterAnnotationsSummary < 3) { |
278 o.kind = "foo"; | 278 o.kind = "foo"; |
279 o.layers = buildUnnamed518(); | 279 o.layers = buildUnnamed307(); |
280 } | 280 } |
281 buildCounterAnnotationsSummary--; | 281 buildCounterAnnotationsSummary--; |
282 return o; | 282 return o; |
283 } | 283 } |
284 | 284 |
285 checkAnnotationsSummary(api.AnnotationsSummary o) { | 285 checkAnnotationsSummary(api.AnnotationsSummary o) { |
286 buildCounterAnnotationsSummary++; | 286 buildCounterAnnotationsSummary++; |
287 if (buildCounterAnnotationsSummary < 3) { | 287 if (buildCounterAnnotationsSummary < 3) { |
288 unittest.expect(o.kind, unittest.equals('foo')); | 288 unittest.expect(o.kind, unittest.equals('foo')); |
289 checkUnnamed518(o.layers); | 289 checkUnnamed307(o.layers); |
290 } | 290 } |
291 buildCounterAnnotationsSummary--; | 291 buildCounterAnnotationsSummary--; |
292 } | 292 } |
293 | 293 |
294 buildUnnamed519() { | 294 buildUnnamed308() { |
295 var o = new core.List<api.Annotationdata>(); | 295 var o = new core.List<api.Annotationdata>(); |
296 o.add(buildAnnotationdata()); | 296 o.add(buildAnnotationdata()); |
297 o.add(buildAnnotationdata()); | 297 o.add(buildAnnotationdata()); |
298 return o; | 298 return o; |
299 } | 299 } |
300 | 300 |
301 checkUnnamed519(core.List<api.Annotationdata> o) { | 301 checkUnnamed308(core.List<api.Annotationdata> o) { |
302 unittest.expect(o, unittest.hasLength(2)); | 302 unittest.expect(o, unittest.hasLength(2)); |
303 checkAnnotationdata(o[0]); | 303 checkAnnotationdata(o[0]); |
304 checkAnnotationdata(o[1]); | 304 checkAnnotationdata(o[1]); |
305 } | 305 } |
306 | 306 |
307 core.int buildCounterAnnotationsdata = 0; | 307 core.int buildCounterAnnotationsdata = 0; |
308 buildAnnotationsdata() { | 308 buildAnnotationsdata() { |
309 var o = new api.Annotationsdata(); | 309 var o = new api.Annotationsdata(); |
310 buildCounterAnnotationsdata++; | 310 buildCounterAnnotationsdata++; |
311 if (buildCounterAnnotationsdata < 3) { | 311 if (buildCounterAnnotationsdata < 3) { |
312 o.items = buildUnnamed519(); | 312 o.items = buildUnnamed308(); |
313 o.kind = "foo"; | 313 o.kind = "foo"; |
314 o.nextPageToken = "foo"; | 314 o.nextPageToken = "foo"; |
315 o.totalItems = 42; | 315 o.totalItems = 42; |
316 } | 316 } |
317 buildCounterAnnotationsdata--; | 317 buildCounterAnnotationsdata--; |
318 return o; | 318 return o; |
319 } | 319 } |
320 | 320 |
321 checkAnnotationsdata(api.Annotationsdata o) { | 321 checkAnnotationsdata(api.Annotationsdata o) { |
322 buildCounterAnnotationsdata++; | 322 buildCounterAnnotationsdata++; |
323 if (buildCounterAnnotationsdata < 3) { | 323 if (buildCounterAnnotationsdata < 3) { |
324 checkUnnamed519(o.items); | 324 checkUnnamed308(o.items); |
325 unittest.expect(o.kind, unittest.equals('foo')); | 325 unittest.expect(o.kind, unittest.equals('foo')); |
326 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 326 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
327 unittest.expect(o.totalItems, unittest.equals(42)); | 327 unittest.expect(o.totalItems, unittest.equals(42)); |
328 } | 328 } |
329 buildCounterAnnotationsdata--; | 329 buildCounterAnnotationsdata--; |
330 } | 330 } |
331 | 331 |
332 core.int buildCounterBooksAnnotationsRange = 0; | 332 core.int buildCounterBooksAnnotationsRange = 0; |
333 buildBooksAnnotationsRange() { | 333 buildBooksAnnotationsRange() { |
334 var o = new api.BooksAnnotationsRange(); | 334 var o = new api.BooksAnnotationsRange(); |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 unittest.expect(o.kind, unittest.equals('foo')); | 428 unittest.expect(o.kind, unittest.equals('foo')); |
429 unittest.expect(o.selfLink, unittest.equals('foo')); | 429 unittest.expect(o.selfLink, unittest.equals('foo')); |
430 unittest.expect(o.title, unittest.equals('foo')); | 430 unittest.expect(o.title, unittest.equals('foo')); |
431 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 431 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
432 unittest.expect(o.volumeCount, unittest.equals(42)); | 432 unittest.expect(o.volumeCount, unittest.equals(42)); |
433 unittest.expect(o.volumesLastUpdated, unittest.equals(core.DateTime.parse("2
002-02-27T14:01:02"))); | 433 unittest.expect(o.volumesLastUpdated, unittest.equals(core.DateTime.parse("2
002-02-27T14:01:02"))); |
434 } | 434 } |
435 buildCounterBookshelf--; | 435 buildCounterBookshelf--; |
436 } | 436 } |
437 | 437 |
438 buildUnnamed520() { | 438 buildUnnamed309() { |
439 var o = new core.List<api.Bookshelf>(); | 439 var o = new core.List<api.Bookshelf>(); |
440 o.add(buildBookshelf()); | 440 o.add(buildBookshelf()); |
441 o.add(buildBookshelf()); | 441 o.add(buildBookshelf()); |
442 return o; | 442 return o; |
443 } | 443 } |
444 | 444 |
445 checkUnnamed520(core.List<api.Bookshelf> o) { | 445 checkUnnamed309(core.List<api.Bookshelf> o) { |
446 unittest.expect(o, unittest.hasLength(2)); | 446 unittest.expect(o, unittest.hasLength(2)); |
447 checkBookshelf(o[0]); | 447 checkBookshelf(o[0]); |
448 checkBookshelf(o[1]); | 448 checkBookshelf(o[1]); |
449 } | 449 } |
450 | 450 |
451 core.int buildCounterBookshelves = 0; | 451 core.int buildCounterBookshelves = 0; |
452 buildBookshelves() { | 452 buildBookshelves() { |
453 var o = new api.Bookshelves(); | 453 var o = new api.Bookshelves(); |
454 buildCounterBookshelves++; | 454 buildCounterBookshelves++; |
455 if (buildCounterBookshelves < 3) { | 455 if (buildCounterBookshelves < 3) { |
456 o.items = buildUnnamed520(); | 456 o.items = buildUnnamed309(); |
457 o.kind = "foo"; | 457 o.kind = "foo"; |
458 } | 458 } |
459 buildCounterBookshelves--; | 459 buildCounterBookshelves--; |
460 return o; | 460 return o; |
461 } | 461 } |
462 | 462 |
463 checkBookshelves(api.Bookshelves o) { | 463 checkBookshelves(api.Bookshelves o) { |
464 buildCounterBookshelves++; | 464 buildCounterBookshelves++; |
465 if (buildCounterBookshelves < 3) { | 465 if (buildCounterBookshelves < 3) { |
466 checkUnnamed520(o.items); | 466 checkUnnamed309(o.items); |
467 unittest.expect(o.kind, unittest.equals('foo')); | 467 unittest.expect(o.kind, unittest.equals('foo')); |
468 } | 468 } |
469 buildCounterBookshelves--; | 469 buildCounterBookshelves--; |
470 } | 470 } |
471 | 471 |
472 core.int buildCounterConcurrentAccessRestriction = 0; | 472 core.int buildCounterConcurrentAccessRestriction = 0; |
473 buildConcurrentAccessRestriction() { | 473 buildConcurrentAccessRestriction() { |
474 var o = new api.ConcurrentAccessRestriction(); | 474 var o = new api.ConcurrentAccessRestriction(); |
475 buildCounterConcurrentAccessRestriction++; | 475 buildCounterConcurrentAccessRestriction++; |
476 if (buildCounterConcurrentAccessRestriction < 3) { | 476 if (buildCounterConcurrentAccessRestriction < 3) { |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 | 583 |
584 checkDictlayerdataDictWordsDerivatives(api.DictlayerdataDictWordsDerivatives o)
{ | 584 checkDictlayerdataDictWordsDerivatives(api.DictlayerdataDictWordsDerivatives o)
{ |
585 buildCounterDictlayerdataDictWordsDerivatives++; | 585 buildCounterDictlayerdataDictWordsDerivatives++; |
586 if (buildCounterDictlayerdataDictWordsDerivatives < 3) { | 586 if (buildCounterDictlayerdataDictWordsDerivatives < 3) { |
587 checkDictlayerdataDictWordsDerivativesSource(o.source); | 587 checkDictlayerdataDictWordsDerivativesSource(o.source); |
588 unittest.expect(o.text, unittest.equals('foo')); | 588 unittest.expect(o.text, unittest.equals('foo')); |
589 } | 589 } |
590 buildCounterDictlayerdataDictWordsDerivatives--; | 590 buildCounterDictlayerdataDictWordsDerivatives--; |
591 } | 591 } |
592 | 592 |
593 buildUnnamed521() { | 593 buildUnnamed310() { |
594 var o = new core.List<api.DictlayerdataDictWordsDerivatives>(); | 594 var o = new core.List<api.DictlayerdataDictWordsDerivatives>(); |
595 o.add(buildDictlayerdataDictWordsDerivatives()); | 595 o.add(buildDictlayerdataDictWordsDerivatives()); |
596 o.add(buildDictlayerdataDictWordsDerivatives()); | 596 o.add(buildDictlayerdataDictWordsDerivatives()); |
597 return o; | 597 return o; |
598 } | 598 } |
599 | 599 |
600 checkUnnamed521(core.List<api.DictlayerdataDictWordsDerivatives> o) { | 600 checkUnnamed310(core.List<api.DictlayerdataDictWordsDerivatives> o) { |
601 unittest.expect(o, unittest.hasLength(2)); | 601 unittest.expect(o, unittest.hasLength(2)); |
602 checkDictlayerdataDictWordsDerivatives(o[0]); | 602 checkDictlayerdataDictWordsDerivatives(o[0]); |
603 checkDictlayerdataDictWordsDerivatives(o[1]); | 603 checkDictlayerdataDictWordsDerivatives(o[1]); |
604 } | 604 } |
605 | 605 |
606 core.int buildCounterDictlayerdataDictWordsExamplesSource = 0; | 606 core.int buildCounterDictlayerdataDictWordsExamplesSource = 0; |
607 buildDictlayerdataDictWordsExamplesSource() { | 607 buildDictlayerdataDictWordsExamplesSource() { |
608 var o = new api.DictlayerdataDictWordsExamplesSource(); | 608 var o = new api.DictlayerdataDictWordsExamplesSource(); |
609 buildCounterDictlayerdataDictWordsExamplesSource++; | 609 buildCounterDictlayerdataDictWordsExamplesSource++; |
610 if (buildCounterDictlayerdataDictWordsExamplesSource < 3) { | 610 if (buildCounterDictlayerdataDictWordsExamplesSource < 3) { |
(...skipping 27 matching lines...) Expand all Loading... |
638 | 638 |
639 checkDictlayerdataDictWordsExamples(api.DictlayerdataDictWordsExamples o) { | 639 checkDictlayerdataDictWordsExamples(api.DictlayerdataDictWordsExamples o) { |
640 buildCounterDictlayerdataDictWordsExamples++; | 640 buildCounterDictlayerdataDictWordsExamples++; |
641 if (buildCounterDictlayerdataDictWordsExamples < 3) { | 641 if (buildCounterDictlayerdataDictWordsExamples < 3) { |
642 checkDictlayerdataDictWordsExamplesSource(o.source); | 642 checkDictlayerdataDictWordsExamplesSource(o.source); |
643 unittest.expect(o.text, unittest.equals('foo')); | 643 unittest.expect(o.text, unittest.equals('foo')); |
644 } | 644 } |
645 buildCounterDictlayerdataDictWordsExamples--; | 645 buildCounterDictlayerdataDictWordsExamples--; |
646 } | 646 } |
647 | 647 |
648 buildUnnamed522() { | 648 buildUnnamed311() { |
649 var o = new core.List<api.DictlayerdataDictWordsExamples>(); | 649 var o = new core.List<api.DictlayerdataDictWordsExamples>(); |
650 o.add(buildDictlayerdataDictWordsExamples()); | 650 o.add(buildDictlayerdataDictWordsExamples()); |
651 o.add(buildDictlayerdataDictWordsExamples()); | 651 o.add(buildDictlayerdataDictWordsExamples()); |
652 return o; | 652 return o; |
653 } | 653 } |
654 | 654 |
655 checkUnnamed522(core.List<api.DictlayerdataDictWordsExamples> o) { | 655 checkUnnamed311(core.List<api.DictlayerdataDictWordsExamples> o) { |
656 unittest.expect(o, unittest.hasLength(2)); | 656 unittest.expect(o, unittest.hasLength(2)); |
657 checkDictlayerdataDictWordsExamples(o[0]); | 657 checkDictlayerdataDictWordsExamples(o[0]); |
658 checkDictlayerdataDictWordsExamples(o[1]); | 658 checkDictlayerdataDictWordsExamples(o[1]); |
659 } | 659 } |
660 | 660 |
661 core.int buildCounterDictlayerdataDictWordsSensesConjugations = 0; | 661 core.int buildCounterDictlayerdataDictWordsSensesConjugations = 0; |
662 buildDictlayerdataDictWordsSensesConjugations() { | 662 buildDictlayerdataDictWordsSensesConjugations() { |
663 var o = new api.DictlayerdataDictWordsSensesConjugations(); | 663 var o = new api.DictlayerdataDictWordsSensesConjugations(); |
664 buildCounterDictlayerdataDictWordsSensesConjugations++; | 664 buildCounterDictlayerdataDictWordsSensesConjugations++; |
665 if (buildCounterDictlayerdataDictWordsSensesConjugations < 3) { | 665 if (buildCounterDictlayerdataDictWordsSensesConjugations < 3) { |
666 o.type = "foo"; | 666 o.type = "foo"; |
667 o.value = "foo"; | 667 o.value = "foo"; |
668 } | 668 } |
669 buildCounterDictlayerdataDictWordsSensesConjugations--; | 669 buildCounterDictlayerdataDictWordsSensesConjugations--; |
670 return o; | 670 return o; |
671 } | 671 } |
672 | 672 |
673 checkDictlayerdataDictWordsSensesConjugations(api.DictlayerdataDictWordsSensesCo
njugations o) { | 673 checkDictlayerdataDictWordsSensesConjugations(api.DictlayerdataDictWordsSensesCo
njugations o) { |
674 buildCounterDictlayerdataDictWordsSensesConjugations++; | 674 buildCounterDictlayerdataDictWordsSensesConjugations++; |
675 if (buildCounterDictlayerdataDictWordsSensesConjugations < 3) { | 675 if (buildCounterDictlayerdataDictWordsSensesConjugations < 3) { |
676 unittest.expect(o.type, unittest.equals('foo')); | 676 unittest.expect(o.type, unittest.equals('foo')); |
677 unittest.expect(o.value, unittest.equals('foo')); | 677 unittest.expect(o.value, unittest.equals('foo')); |
678 } | 678 } |
679 buildCounterDictlayerdataDictWordsSensesConjugations--; | 679 buildCounterDictlayerdataDictWordsSensesConjugations--; |
680 } | 680 } |
681 | 681 |
682 buildUnnamed523() { | 682 buildUnnamed312() { |
683 var o = new core.List<api.DictlayerdataDictWordsSensesConjugations>(); | 683 var o = new core.List<api.DictlayerdataDictWordsSensesConjugations>(); |
684 o.add(buildDictlayerdataDictWordsSensesConjugations()); | 684 o.add(buildDictlayerdataDictWordsSensesConjugations()); |
685 o.add(buildDictlayerdataDictWordsSensesConjugations()); | 685 o.add(buildDictlayerdataDictWordsSensesConjugations()); |
686 return o; | 686 return o; |
687 } | 687 } |
688 | 688 |
689 checkUnnamed523(core.List<api.DictlayerdataDictWordsSensesConjugations> o) { | 689 checkUnnamed312(core.List<api.DictlayerdataDictWordsSensesConjugations> o) { |
690 unittest.expect(o, unittest.hasLength(2)); | 690 unittest.expect(o, unittest.hasLength(2)); |
691 checkDictlayerdataDictWordsSensesConjugations(o[0]); | 691 checkDictlayerdataDictWordsSensesConjugations(o[0]); |
692 checkDictlayerdataDictWordsSensesConjugations(o[1]); | 692 checkDictlayerdataDictWordsSensesConjugations(o[1]); |
693 } | 693 } |
694 | 694 |
695 core.int buildCounterDictlayerdataDictWordsSensesDefinitionsExamplesSource = 0; | 695 core.int buildCounterDictlayerdataDictWordsSensesDefinitionsExamplesSource = 0; |
696 buildDictlayerdataDictWordsSensesDefinitionsExamplesSource() { | 696 buildDictlayerdataDictWordsSensesDefinitionsExamplesSource() { |
697 var o = new api.DictlayerdataDictWordsSensesDefinitionsExamplesSource(); | 697 var o = new api.DictlayerdataDictWordsSensesDefinitionsExamplesSource(); |
698 buildCounterDictlayerdataDictWordsSensesDefinitionsExamplesSource++; | 698 buildCounterDictlayerdataDictWordsSensesDefinitionsExamplesSource++; |
699 if (buildCounterDictlayerdataDictWordsSensesDefinitionsExamplesSource < 3) { | 699 if (buildCounterDictlayerdataDictWordsSensesDefinitionsExamplesSource < 3) { |
(...skipping 27 matching lines...) Expand all Loading... |
727 | 727 |
728 checkDictlayerdataDictWordsSensesDefinitionsExamples(api.DictlayerdataDictWordsS
ensesDefinitionsExamples o) { | 728 checkDictlayerdataDictWordsSensesDefinitionsExamples(api.DictlayerdataDictWordsS
ensesDefinitionsExamples o) { |
729 buildCounterDictlayerdataDictWordsSensesDefinitionsExamples++; | 729 buildCounterDictlayerdataDictWordsSensesDefinitionsExamples++; |
730 if (buildCounterDictlayerdataDictWordsSensesDefinitionsExamples < 3) { | 730 if (buildCounterDictlayerdataDictWordsSensesDefinitionsExamples < 3) { |
731 checkDictlayerdataDictWordsSensesDefinitionsExamplesSource(o.source); | 731 checkDictlayerdataDictWordsSensesDefinitionsExamplesSource(o.source); |
732 unittest.expect(o.text, unittest.equals('foo')); | 732 unittest.expect(o.text, unittest.equals('foo')); |
733 } | 733 } |
734 buildCounterDictlayerdataDictWordsSensesDefinitionsExamples--; | 734 buildCounterDictlayerdataDictWordsSensesDefinitionsExamples--; |
735 } | 735 } |
736 | 736 |
737 buildUnnamed524() { | 737 buildUnnamed313() { |
738 var o = new core.List<api.DictlayerdataDictWordsSensesDefinitionsExamples>(); | 738 var o = new core.List<api.DictlayerdataDictWordsSensesDefinitionsExamples>(); |
739 o.add(buildDictlayerdataDictWordsSensesDefinitionsExamples()); | 739 o.add(buildDictlayerdataDictWordsSensesDefinitionsExamples()); |
740 o.add(buildDictlayerdataDictWordsSensesDefinitionsExamples()); | 740 o.add(buildDictlayerdataDictWordsSensesDefinitionsExamples()); |
741 return o; | 741 return o; |
742 } | 742 } |
743 | 743 |
744 checkUnnamed524(core.List<api.DictlayerdataDictWordsSensesDefinitionsExamples> o
) { | 744 checkUnnamed313(core.List<api.DictlayerdataDictWordsSensesDefinitionsExamples> o
) { |
745 unittest.expect(o, unittest.hasLength(2)); | 745 unittest.expect(o, unittest.hasLength(2)); |
746 checkDictlayerdataDictWordsSensesDefinitionsExamples(o[0]); | 746 checkDictlayerdataDictWordsSensesDefinitionsExamples(o[0]); |
747 checkDictlayerdataDictWordsSensesDefinitionsExamples(o[1]); | 747 checkDictlayerdataDictWordsSensesDefinitionsExamples(o[1]); |
748 } | 748 } |
749 | 749 |
750 core.int buildCounterDictlayerdataDictWordsSensesDefinitions = 0; | 750 core.int buildCounterDictlayerdataDictWordsSensesDefinitions = 0; |
751 buildDictlayerdataDictWordsSensesDefinitions() { | 751 buildDictlayerdataDictWordsSensesDefinitions() { |
752 var o = new api.DictlayerdataDictWordsSensesDefinitions(); | 752 var o = new api.DictlayerdataDictWordsSensesDefinitions(); |
753 buildCounterDictlayerdataDictWordsSensesDefinitions++; | 753 buildCounterDictlayerdataDictWordsSensesDefinitions++; |
754 if (buildCounterDictlayerdataDictWordsSensesDefinitions < 3) { | 754 if (buildCounterDictlayerdataDictWordsSensesDefinitions < 3) { |
755 o.definition = "foo"; | 755 o.definition = "foo"; |
756 o.examples = buildUnnamed524(); | 756 o.examples = buildUnnamed313(); |
757 } | 757 } |
758 buildCounterDictlayerdataDictWordsSensesDefinitions--; | 758 buildCounterDictlayerdataDictWordsSensesDefinitions--; |
759 return o; | 759 return o; |
760 } | 760 } |
761 | 761 |
762 checkDictlayerdataDictWordsSensesDefinitions(api.DictlayerdataDictWordsSensesDef
initions o) { | 762 checkDictlayerdataDictWordsSensesDefinitions(api.DictlayerdataDictWordsSensesDef
initions o) { |
763 buildCounterDictlayerdataDictWordsSensesDefinitions++; | 763 buildCounterDictlayerdataDictWordsSensesDefinitions++; |
764 if (buildCounterDictlayerdataDictWordsSensesDefinitions < 3) { | 764 if (buildCounterDictlayerdataDictWordsSensesDefinitions < 3) { |
765 unittest.expect(o.definition, unittest.equals('foo')); | 765 unittest.expect(o.definition, unittest.equals('foo')); |
766 checkUnnamed524(o.examples); | 766 checkUnnamed313(o.examples); |
767 } | 767 } |
768 buildCounterDictlayerdataDictWordsSensesDefinitions--; | 768 buildCounterDictlayerdataDictWordsSensesDefinitions--; |
769 } | 769 } |
770 | 770 |
771 buildUnnamed525() { | 771 buildUnnamed314() { |
772 var o = new core.List<api.DictlayerdataDictWordsSensesDefinitions>(); | 772 var o = new core.List<api.DictlayerdataDictWordsSensesDefinitions>(); |
773 o.add(buildDictlayerdataDictWordsSensesDefinitions()); | 773 o.add(buildDictlayerdataDictWordsSensesDefinitions()); |
774 o.add(buildDictlayerdataDictWordsSensesDefinitions()); | 774 o.add(buildDictlayerdataDictWordsSensesDefinitions()); |
775 return o; | 775 return o; |
776 } | 776 } |
777 | 777 |
778 checkUnnamed525(core.List<api.DictlayerdataDictWordsSensesDefinitions> o) { | 778 checkUnnamed314(core.List<api.DictlayerdataDictWordsSensesDefinitions> o) { |
779 unittest.expect(o, unittest.hasLength(2)); | 779 unittest.expect(o, unittest.hasLength(2)); |
780 checkDictlayerdataDictWordsSensesDefinitions(o[0]); | 780 checkDictlayerdataDictWordsSensesDefinitions(o[0]); |
781 checkDictlayerdataDictWordsSensesDefinitions(o[1]); | 781 checkDictlayerdataDictWordsSensesDefinitions(o[1]); |
782 } | 782 } |
783 | 783 |
784 core.int buildCounterDictlayerdataDictWordsSensesSource = 0; | 784 core.int buildCounterDictlayerdataDictWordsSensesSource = 0; |
785 buildDictlayerdataDictWordsSensesSource() { | 785 buildDictlayerdataDictWordsSensesSource() { |
786 var o = new api.DictlayerdataDictWordsSensesSource(); | 786 var o = new api.DictlayerdataDictWordsSensesSource(); |
787 buildCounterDictlayerdataDictWordsSensesSource++; | 787 buildCounterDictlayerdataDictWordsSensesSource++; |
788 if (buildCounterDictlayerdataDictWordsSensesSource < 3) { | 788 if (buildCounterDictlayerdataDictWordsSensesSource < 3) { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
837 | 837 |
838 checkDictlayerdataDictWordsSensesSynonyms(api.DictlayerdataDictWordsSensesSynony
ms o) { | 838 checkDictlayerdataDictWordsSensesSynonyms(api.DictlayerdataDictWordsSensesSynony
ms o) { |
839 buildCounterDictlayerdataDictWordsSensesSynonyms++; | 839 buildCounterDictlayerdataDictWordsSensesSynonyms++; |
840 if (buildCounterDictlayerdataDictWordsSensesSynonyms < 3) { | 840 if (buildCounterDictlayerdataDictWordsSensesSynonyms < 3) { |
841 checkDictlayerdataDictWordsSensesSynonymsSource(o.source); | 841 checkDictlayerdataDictWordsSensesSynonymsSource(o.source); |
842 unittest.expect(o.text, unittest.equals('foo')); | 842 unittest.expect(o.text, unittest.equals('foo')); |
843 } | 843 } |
844 buildCounterDictlayerdataDictWordsSensesSynonyms--; | 844 buildCounterDictlayerdataDictWordsSensesSynonyms--; |
845 } | 845 } |
846 | 846 |
847 buildUnnamed526() { | 847 buildUnnamed315() { |
848 var o = new core.List<api.DictlayerdataDictWordsSensesSynonyms>(); | 848 var o = new core.List<api.DictlayerdataDictWordsSensesSynonyms>(); |
849 o.add(buildDictlayerdataDictWordsSensesSynonyms()); | 849 o.add(buildDictlayerdataDictWordsSensesSynonyms()); |
850 o.add(buildDictlayerdataDictWordsSensesSynonyms()); | 850 o.add(buildDictlayerdataDictWordsSensesSynonyms()); |
851 return o; | 851 return o; |
852 } | 852 } |
853 | 853 |
854 checkUnnamed526(core.List<api.DictlayerdataDictWordsSensesSynonyms> o) { | 854 checkUnnamed315(core.List<api.DictlayerdataDictWordsSensesSynonyms> o) { |
855 unittest.expect(o, unittest.hasLength(2)); | 855 unittest.expect(o, unittest.hasLength(2)); |
856 checkDictlayerdataDictWordsSensesSynonyms(o[0]); | 856 checkDictlayerdataDictWordsSensesSynonyms(o[0]); |
857 checkDictlayerdataDictWordsSensesSynonyms(o[1]); | 857 checkDictlayerdataDictWordsSensesSynonyms(o[1]); |
858 } | 858 } |
859 | 859 |
860 core.int buildCounterDictlayerdataDictWordsSenses = 0; | 860 core.int buildCounterDictlayerdataDictWordsSenses = 0; |
861 buildDictlayerdataDictWordsSenses() { | 861 buildDictlayerdataDictWordsSenses() { |
862 var o = new api.DictlayerdataDictWordsSenses(); | 862 var o = new api.DictlayerdataDictWordsSenses(); |
863 buildCounterDictlayerdataDictWordsSenses++; | 863 buildCounterDictlayerdataDictWordsSenses++; |
864 if (buildCounterDictlayerdataDictWordsSenses < 3) { | 864 if (buildCounterDictlayerdataDictWordsSenses < 3) { |
865 o.conjugations = buildUnnamed523(); | 865 o.conjugations = buildUnnamed312(); |
866 o.definitions = buildUnnamed525(); | 866 o.definitions = buildUnnamed314(); |
867 o.partOfSpeech = "foo"; | 867 o.partOfSpeech = "foo"; |
868 o.pronunciation = "foo"; | 868 o.pronunciation = "foo"; |
869 o.pronunciationUrl = "foo"; | 869 o.pronunciationUrl = "foo"; |
870 o.source = buildDictlayerdataDictWordsSensesSource(); | 870 o.source = buildDictlayerdataDictWordsSensesSource(); |
871 o.syllabification = "foo"; | 871 o.syllabification = "foo"; |
872 o.synonyms = buildUnnamed526(); | 872 o.synonyms = buildUnnamed315(); |
873 } | 873 } |
874 buildCounterDictlayerdataDictWordsSenses--; | 874 buildCounterDictlayerdataDictWordsSenses--; |
875 return o; | 875 return o; |
876 } | 876 } |
877 | 877 |
878 checkDictlayerdataDictWordsSenses(api.DictlayerdataDictWordsSenses o) { | 878 checkDictlayerdataDictWordsSenses(api.DictlayerdataDictWordsSenses o) { |
879 buildCounterDictlayerdataDictWordsSenses++; | 879 buildCounterDictlayerdataDictWordsSenses++; |
880 if (buildCounterDictlayerdataDictWordsSenses < 3) { | 880 if (buildCounterDictlayerdataDictWordsSenses < 3) { |
881 checkUnnamed523(o.conjugations); | 881 checkUnnamed312(o.conjugations); |
882 checkUnnamed525(o.definitions); | 882 checkUnnamed314(o.definitions); |
883 unittest.expect(o.partOfSpeech, unittest.equals('foo')); | 883 unittest.expect(o.partOfSpeech, unittest.equals('foo')); |
884 unittest.expect(o.pronunciation, unittest.equals('foo')); | 884 unittest.expect(o.pronunciation, unittest.equals('foo')); |
885 unittest.expect(o.pronunciationUrl, unittest.equals('foo')); | 885 unittest.expect(o.pronunciationUrl, unittest.equals('foo')); |
886 checkDictlayerdataDictWordsSensesSource(o.source); | 886 checkDictlayerdataDictWordsSensesSource(o.source); |
887 unittest.expect(o.syllabification, unittest.equals('foo')); | 887 unittest.expect(o.syllabification, unittest.equals('foo')); |
888 checkUnnamed526(o.synonyms); | 888 checkUnnamed315(o.synonyms); |
889 } | 889 } |
890 buildCounterDictlayerdataDictWordsSenses--; | 890 buildCounterDictlayerdataDictWordsSenses--; |
891 } | 891 } |
892 | 892 |
893 buildUnnamed527() { | 893 buildUnnamed316() { |
894 var o = new core.List<api.DictlayerdataDictWordsSenses>(); | 894 var o = new core.List<api.DictlayerdataDictWordsSenses>(); |
895 o.add(buildDictlayerdataDictWordsSenses()); | 895 o.add(buildDictlayerdataDictWordsSenses()); |
896 o.add(buildDictlayerdataDictWordsSenses()); | 896 o.add(buildDictlayerdataDictWordsSenses()); |
897 return o; | 897 return o; |
898 } | 898 } |
899 | 899 |
900 checkUnnamed527(core.List<api.DictlayerdataDictWordsSenses> o) { | 900 checkUnnamed316(core.List<api.DictlayerdataDictWordsSenses> o) { |
901 unittest.expect(o, unittest.hasLength(2)); | 901 unittest.expect(o, unittest.hasLength(2)); |
902 checkDictlayerdataDictWordsSenses(o[0]); | 902 checkDictlayerdataDictWordsSenses(o[0]); |
903 checkDictlayerdataDictWordsSenses(o[1]); | 903 checkDictlayerdataDictWordsSenses(o[1]); |
904 } | 904 } |
905 | 905 |
906 core.int buildCounterDictlayerdataDictWordsSource = 0; | 906 core.int buildCounterDictlayerdataDictWordsSource = 0; |
907 buildDictlayerdataDictWordsSource() { | 907 buildDictlayerdataDictWordsSource() { |
908 var o = new api.DictlayerdataDictWordsSource(); | 908 var o = new api.DictlayerdataDictWordsSource(); |
909 buildCounterDictlayerdataDictWordsSource++; | 909 buildCounterDictlayerdataDictWordsSource++; |
910 if (buildCounterDictlayerdataDictWordsSource < 3) { | 910 if (buildCounterDictlayerdataDictWordsSource < 3) { |
(...skipping 11 matching lines...) Expand all Loading... |
922 unittest.expect(o.url, unittest.equals('foo')); | 922 unittest.expect(o.url, unittest.equals('foo')); |
923 } | 923 } |
924 buildCounterDictlayerdataDictWordsSource--; | 924 buildCounterDictlayerdataDictWordsSource--; |
925 } | 925 } |
926 | 926 |
927 core.int buildCounterDictlayerdataDictWords = 0; | 927 core.int buildCounterDictlayerdataDictWords = 0; |
928 buildDictlayerdataDictWords() { | 928 buildDictlayerdataDictWords() { |
929 var o = new api.DictlayerdataDictWords(); | 929 var o = new api.DictlayerdataDictWords(); |
930 buildCounterDictlayerdataDictWords++; | 930 buildCounterDictlayerdataDictWords++; |
931 if (buildCounterDictlayerdataDictWords < 3) { | 931 if (buildCounterDictlayerdataDictWords < 3) { |
932 o.derivatives = buildUnnamed521(); | 932 o.derivatives = buildUnnamed310(); |
933 o.examples = buildUnnamed522(); | 933 o.examples = buildUnnamed311(); |
934 o.senses = buildUnnamed527(); | 934 o.senses = buildUnnamed316(); |
935 o.source = buildDictlayerdataDictWordsSource(); | 935 o.source = buildDictlayerdataDictWordsSource(); |
936 } | 936 } |
937 buildCounterDictlayerdataDictWords--; | 937 buildCounterDictlayerdataDictWords--; |
938 return o; | 938 return o; |
939 } | 939 } |
940 | 940 |
941 checkDictlayerdataDictWords(api.DictlayerdataDictWords o) { | 941 checkDictlayerdataDictWords(api.DictlayerdataDictWords o) { |
942 buildCounterDictlayerdataDictWords++; | 942 buildCounterDictlayerdataDictWords++; |
943 if (buildCounterDictlayerdataDictWords < 3) { | 943 if (buildCounterDictlayerdataDictWords < 3) { |
944 checkUnnamed521(o.derivatives); | 944 checkUnnamed310(o.derivatives); |
945 checkUnnamed522(o.examples); | 945 checkUnnamed311(o.examples); |
946 checkUnnamed527(o.senses); | 946 checkUnnamed316(o.senses); |
947 checkDictlayerdataDictWordsSource(o.source); | 947 checkDictlayerdataDictWordsSource(o.source); |
948 } | 948 } |
949 buildCounterDictlayerdataDictWords--; | 949 buildCounterDictlayerdataDictWords--; |
950 } | 950 } |
951 | 951 |
952 buildUnnamed528() { | 952 buildUnnamed317() { |
953 var o = new core.List<api.DictlayerdataDictWords>(); | 953 var o = new core.List<api.DictlayerdataDictWords>(); |
954 o.add(buildDictlayerdataDictWords()); | 954 o.add(buildDictlayerdataDictWords()); |
955 o.add(buildDictlayerdataDictWords()); | 955 o.add(buildDictlayerdataDictWords()); |
956 return o; | 956 return o; |
957 } | 957 } |
958 | 958 |
959 checkUnnamed528(core.List<api.DictlayerdataDictWords> o) { | 959 checkUnnamed317(core.List<api.DictlayerdataDictWords> o) { |
960 unittest.expect(o, unittest.hasLength(2)); | 960 unittest.expect(o, unittest.hasLength(2)); |
961 checkDictlayerdataDictWords(o[0]); | 961 checkDictlayerdataDictWords(o[0]); |
962 checkDictlayerdataDictWords(o[1]); | 962 checkDictlayerdataDictWords(o[1]); |
963 } | 963 } |
964 | 964 |
965 core.int buildCounterDictlayerdataDict = 0; | 965 core.int buildCounterDictlayerdataDict = 0; |
966 buildDictlayerdataDict() { | 966 buildDictlayerdataDict() { |
967 var o = new api.DictlayerdataDict(); | 967 var o = new api.DictlayerdataDict(); |
968 buildCounterDictlayerdataDict++; | 968 buildCounterDictlayerdataDict++; |
969 if (buildCounterDictlayerdataDict < 3) { | 969 if (buildCounterDictlayerdataDict < 3) { |
970 o.source = buildDictlayerdataDictSource(); | 970 o.source = buildDictlayerdataDictSource(); |
971 o.words = buildUnnamed528(); | 971 o.words = buildUnnamed317(); |
972 } | 972 } |
973 buildCounterDictlayerdataDict--; | 973 buildCounterDictlayerdataDict--; |
974 return o; | 974 return o; |
975 } | 975 } |
976 | 976 |
977 checkDictlayerdataDict(api.DictlayerdataDict o) { | 977 checkDictlayerdataDict(api.DictlayerdataDict o) { |
978 buildCounterDictlayerdataDict++; | 978 buildCounterDictlayerdataDict++; |
979 if (buildCounterDictlayerdataDict < 3) { | 979 if (buildCounterDictlayerdataDict < 3) { |
980 checkDictlayerdataDictSource(o.source); | 980 checkDictlayerdataDictSource(o.source); |
981 checkUnnamed528(o.words); | 981 checkUnnamed317(o.words); |
982 } | 982 } |
983 buildCounterDictlayerdataDict--; | 983 buildCounterDictlayerdataDict--; |
984 } | 984 } |
985 | 985 |
986 core.int buildCounterDictlayerdata = 0; | 986 core.int buildCounterDictlayerdata = 0; |
987 buildDictlayerdata() { | 987 buildDictlayerdata() { |
988 var o = new api.Dictlayerdata(); | 988 var o = new api.Dictlayerdata(); |
989 buildCounterDictlayerdata++; | 989 buildCounterDictlayerdata++; |
990 if (buildCounterDictlayerdata < 3) { | 990 if (buildCounterDictlayerdata < 3) { |
991 o.common = buildDictlayerdataCommon(); | 991 o.common = buildDictlayerdataCommon(); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1040 unittest.expect(o.nonce, unittest.equals('foo')); | 1040 unittest.expect(o.nonce, unittest.equals('foo')); |
1041 unittest.expect(o.reasonCode, unittest.equals('foo')); | 1041 unittest.expect(o.reasonCode, unittest.equals('foo')); |
1042 unittest.expect(o.restricted, unittest.isTrue); | 1042 unittest.expect(o.restricted, unittest.isTrue); |
1043 unittest.expect(o.signature, unittest.equals('foo')); | 1043 unittest.expect(o.signature, unittest.equals('foo')); |
1044 unittest.expect(o.source, unittest.equals('foo')); | 1044 unittest.expect(o.source, unittest.equals('foo')); |
1045 unittest.expect(o.volumeId, unittest.equals('foo')); | 1045 unittest.expect(o.volumeId, unittest.equals('foo')); |
1046 } | 1046 } |
1047 buildCounterDownloadAccessRestriction--; | 1047 buildCounterDownloadAccessRestriction--; |
1048 } | 1048 } |
1049 | 1049 |
1050 buildUnnamed529() { | 1050 buildUnnamed318() { |
1051 var o = new core.List<api.DownloadAccessRestriction>(); | 1051 var o = new core.List<api.DownloadAccessRestriction>(); |
1052 o.add(buildDownloadAccessRestriction()); | 1052 o.add(buildDownloadAccessRestriction()); |
1053 o.add(buildDownloadAccessRestriction()); | 1053 o.add(buildDownloadAccessRestriction()); |
1054 return o; | 1054 return o; |
1055 } | 1055 } |
1056 | 1056 |
1057 checkUnnamed529(core.List<api.DownloadAccessRestriction> o) { | 1057 checkUnnamed318(core.List<api.DownloadAccessRestriction> o) { |
1058 unittest.expect(o, unittest.hasLength(2)); | 1058 unittest.expect(o, unittest.hasLength(2)); |
1059 checkDownloadAccessRestriction(o[0]); | 1059 checkDownloadAccessRestriction(o[0]); |
1060 checkDownloadAccessRestriction(o[1]); | 1060 checkDownloadAccessRestriction(o[1]); |
1061 } | 1061 } |
1062 | 1062 |
1063 core.int buildCounterDownloadAccesses = 0; | 1063 core.int buildCounterDownloadAccesses = 0; |
1064 buildDownloadAccesses() { | 1064 buildDownloadAccesses() { |
1065 var o = new api.DownloadAccesses(); | 1065 var o = new api.DownloadAccesses(); |
1066 buildCounterDownloadAccesses++; | 1066 buildCounterDownloadAccesses++; |
1067 if (buildCounterDownloadAccesses < 3) { | 1067 if (buildCounterDownloadAccesses < 3) { |
1068 o.downloadAccessList = buildUnnamed529(); | 1068 o.downloadAccessList = buildUnnamed318(); |
1069 o.kind = "foo"; | 1069 o.kind = "foo"; |
1070 } | 1070 } |
1071 buildCounterDownloadAccesses--; | 1071 buildCounterDownloadAccesses--; |
1072 return o; | 1072 return o; |
1073 } | 1073 } |
1074 | 1074 |
1075 checkDownloadAccesses(api.DownloadAccesses o) { | 1075 checkDownloadAccesses(api.DownloadAccesses o) { |
1076 buildCounterDownloadAccesses++; | 1076 buildCounterDownloadAccesses++; |
1077 if (buildCounterDownloadAccesses < 3) { | 1077 if (buildCounterDownloadAccesses < 3) { |
1078 checkUnnamed529(o.downloadAccessList); | 1078 checkUnnamed318(o.downloadAccessList); |
1079 unittest.expect(o.kind, unittest.equals('foo')); | 1079 unittest.expect(o.kind, unittest.equals('foo')); |
1080 } | 1080 } |
1081 buildCounterDownloadAccesses--; | 1081 buildCounterDownloadAccesses--; |
1082 } | 1082 } |
1083 | 1083 |
1084 core.int buildCounterGeolayerdataCommon = 0; | 1084 core.int buildCounterGeolayerdataCommon = 0; |
1085 buildGeolayerdataCommon() { | 1085 buildGeolayerdataCommon() { |
1086 var o = new api.GeolayerdataCommon(); | 1086 var o = new api.GeolayerdataCommon(); |
1087 buildCounterGeolayerdataCommon++; | 1087 buildCounterGeolayerdataCommon++; |
1088 if (buildCounterGeolayerdataCommon < 3) { | 1088 if (buildCounterGeolayerdataCommon < 3) { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1122 | 1122 |
1123 checkGeolayerdataGeoBoundary(api.GeolayerdataGeoBoundary o) { | 1123 checkGeolayerdataGeoBoundary(api.GeolayerdataGeoBoundary o) { |
1124 buildCounterGeolayerdataGeoBoundary++; | 1124 buildCounterGeolayerdataGeoBoundary++; |
1125 if (buildCounterGeolayerdataGeoBoundary < 3) { | 1125 if (buildCounterGeolayerdataGeoBoundary < 3) { |
1126 unittest.expect(o.latitude, unittest.equals(42)); | 1126 unittest.expect(o.latitude, unittest.equals(42)); |
1127 unittest.expect(o.longitude, unittest.equals(42)); | 1127 unittest.expect(o.longitude, unittest.equals(42)); |
1128 } | 1128 } |
1129 buildCounterGeolayerdataGeoBoundary--; | 1129 buildCounterGeolayerdataGeoBoundary--; |
1130 } | 1130 } |
1131 | 1131 |
1132 buildUnnamed530() { | 1132 buildUnnamed319() { |
1133 var o = new core.List<api.GeolayerdataGeoBoundary>(); | 1133 var o = new core.List<api.GeolayerdataGeoBoundary>(); |
1134 o.add(buildGeolayerdataGeoBoundary()); | 1134 o.add(buildGeolayerdataGeoBoundary()); |
1135 o.add(buildGeolayerdataGeoBoundary()); | 1135 o.add(buildGeolayerdataGeoBoundary()); |
1136 return o; | 1136 return o; |
1137 } | 1137 } |
1138 | 1138 |
1139 checkUnnamed530(core.List<api.GeolayerdataGeoBoundary> o) { | 1139 checkUnnamed319(core.List<api.GeolayerdataGeoBoundary> o) { |
1140 unittest.expect(o, unittest.hasLength(2)); | 1140 unittest.expect(o, unittest.hasLength(2)); |
1141 checkGeolayerdataGeoBoundary(o[0]); | 1141 checkGeolayerdataGeoBoundary(o[0]); |
1142 checkGeolayerdataGeoBoundary(o[1]); | 1142 checkGeolayerdataGeoBoundary(o[1]); |
1143 } | 1143 } |
1144 | 1144 |
1145 buildUnnamed531() { | 1145 buildUnnamed320() { |
1146 var o = new core.List<core.List<api.GeolayerdataGeoBoundary>>(); | 1146 var o = new core.List<core.List<api.GeolayerdataGeoBoundary>>(); |
1147 o.add(buildUnnamed530()); | 1147 o.add(buildUnnamed319()); |
1148 o.add(buildUnnamed530()); | 1148 o.add(buildUnnamed319()); |
1149 return o; | 1149 return o; |
1150 } | 1150 } |
1151 | 1151 |
1152 checkUnnamed531(core.List<core.List<api.GeolayerdataGeoBoundary>> o) { | 1152 checkUnnamed320(core.List<core.List<api.GeolayerdataGeoBoundary>> o) { |
1153 unittest.expect(o, unittest.hasLength(2)); | 1153 unittest.expect(o, unittest.hasLength(2)); |
1154 checkUnnamed530(o[0]); | 1154 checkUnnamed319(o[0]); |
1155 checkUnnamed530(o[1]); | 1155 checkUnnamed319(o[1]); |
1156 } | 1156 } |
1157 | 1157 |
1158 core.int buildCounterGeolayerdataGeoViewportHi = 0; | 1158 core.int buildCounterGeolayerdataGeoViewportHi = 0; |
1159 buildGeolayerdataGeoViewportHi() { | 1159 buildGeolayerdataGeoViewportHi() { |
1160 var o = new api.GeolayerdataGeoViewportHi(); | 1160 var o = new api.GeolayerdataGeoViewportHi(); |
1161 buildCounterGeolayerdataGeoViewportHi++; | 1161 buildCounterGeolayerdataGeoViewportHi++; |
1162 if (buildCounterGeolayerdataGeoViewportHi < 3) { | 1162 if (buildCounterGeolayerdataGeoViewportHi < 3) { |
1163 o.latitude = 42.0; | 1163 o.latitude = 42.0; |
1164 o.longitude = 42.0; | 1164 o.longitude = 42.0; |
1165 } | 1165 } |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1216 checkGeolayerdataGeoViewportLo(o.lo); | 1216 checkGeolayerdataGeoViewportLo(o.lo); |
1217 } | 1217 } |
1218 buildCounterGeolayerdataGeoViewport--; | 1218 buildCounterGeolayerdataGeoViewport--; |
1219 } | 1219 } |
1220 | 1220 |
1221 core.int buildCounterGeolayerdataGeo = 0; | 1221 core.int buildCounterGeolayerdataGeo = 0; |
1222 buildGeolayerdataGeo() { | 1222 buildGeolayerdataGeo() { |
1223 var o = new api.GeolayerdataGeo(); | 1223 var o = new api.GeolayerdataGeo(); |
1224 buildCounterGeolayerdataGeo++; | 1224 buildCounterGeolayerdataGeo++; |
1225 if (buildCounterGeolayerdataGeo < 3) { | 1225 if (buildCounterGeolayerdataGeo < 3) { |
1226 o.boundary = buildUnnamed531(); | 1226 o.boundary = buildUnnamed320(); |
1227 o.cachePolicy = "foo"; | 1227 o.cachePolicy = "foo"; |
1228 o.countryCode = "foo"; | 1228 o.countryCode = "foo"; |
1229 o.latitude = 42.0; | 1229 o.latitude = 42.0; |
1230 o.longitude = 42.0; | 1230 o.longitude = 42.0; |
1231 o.mapType = "foo"; | 1231 o.mapType = "foo"; |
1232 o.viewport = buildGeolayerdataGeoViewport(); | 1232 o.viewport = buildGeolayerdataGeoViewport(); |
1233 o.zoom = 42; | 1233 o.zoom = 42; |
1234 } | 1234 } |
1235 buildCounterGeolayerdataGeo--; | 1235 buildCounterGeolayerdataGeo--; |
1236 return o; | 1236 return o; |
1237 } | 1237 } |
1238 | 1238 |
1239 checkGeolayerdataGeo(api.GeolayerdataGeo o) { | 1239 checkGeolayerdataGeo(api.GeolayerdataGeo o) { |
1240 buildCounterGeolayerdataGeo++; | 1240 buildCounterGeolayerdataGeo++; |
1241 if (buildCounterGeolayerdataGeo < 3) { | 1241 if (buildCounterGeolayerdataGeo < 3) { |
1242 checkUnnamed531(o.boundary); | 1242 checkUnnamed320(o.boundary); |
1243 unittest.expect(o.cachePolicy, unittest.equals('foo')); | 1243 unittest.expect(o.cachePolicy, unittest.equals('foo')); |
1244 unittest.expect(o.countryCode, unittest.equals('foo')); | 1244 unittest.expect(o.countryCode, unittest.equals('foo')); |
1245 unittest.expect(o.latitude, unittest.equals(42.0)); | 1245 unittest.expect(o.latitude, unittest.equals(42.0)); |
1246 unittest.expect(o.longitude, unittest.equals(42.0)); | 1246 unittest.expect(o.longitude, unittest.equals(42.0)); |
1247 unittest.expect(o.mapType, unittest.equals('foo')); | 1247 unittest.expect(o.mapType, unittest.equals('foo')); |
1248 checkGeolayerdataGeoViewport(o.viewport); | 1248 checkGeolayerdataGeoViewport(o.viewport); |
1249 unittest.expect(o.zoom, unittest.equals(42)); | 1249 unittest.expect(o.zoom, unittest.equals(42)); |
1250 } | 1250 } |
1251 buildCounterGeolayerdataGeo--; | 1251 buildCounterGeolayerdataGeo--; |
1252 } | 1252 } |
(...skipping 14 matching lines...) Expand all Loading... |
1267 checkGeolayerdata(api.Geolayerdata o) { | 1267 checkGeolayerdata(api.Geolayerdata o) { |
1268 buildCounterGeolayerdata++; | 1268 buildCounterGeolayerdata++; |
1269 if (buildCounterGeolayerdata < 3) { | 1269 if (buildCounterGeolayerdata < 3) { |
1270 checkGeolayerdataCommon(o.common); | 1270 checkGeolayerdataCommon(o.common); |
1271 checkGeolayerdataGeo(o.geo); | 1271 checkGeolayerdataGeo(o.geo); |
1272 unittest.expect(o.kind, unittest.equals('foo')); | 1272 unittest.expect(o.kind, unittest.equals('foo')); |
1273 } | 1273 } |
1274 buildCounterGeolayerdata--; | 1274 buildCounterGeolayerdata--; |
1275 } | 1275 } |
1276 | 1276 |
1277 buildUnnamed532() { | 1277 buildUnnamed321() { |
1278 var o = new core.List<api.Layersummary>(); | 1278 var o = new core.List<api.Layersummary>(); |
1279 o.add(buildLayersummary()); | 1279 o.add(buildLayersummary()); |
1280 o.add(buildLayersummary()); | 1280 o.add(buildLayersummary()); |
1281 return o; | 1281 return o; |
1282 } | 1282 } |
1283 | 1283 |
1284 checkUnnamed532(core.List<api.Layersummary> o) { | 1284 checkUnnamed321(core.List<api.Layersummary> o) { |
1285 unittest.expect(o, unittest.hasLength(2)); | 1285 unittest.expect(o, unittest.hasLength(2)); |
1286 checkLayersummary(o[0]); | 1286 checkLayersummary(o[0]); |
1287 checkLayersummary(o[1]); | 1287 checkLayersummary(o[1]); |
1288 } | 1288 } |
1289 | 1289 |
1290 core.int buildCounterLayersummaries = 0; | 1290 core.int buildCounterLayersummaries = 0; |
1291 buildLayersummaries() { | 1291 buildLayersummaries() { |
1292 var o = new api.Layersummaries(); | 1292 var o = new api.Layersummaries(); |
1293 buildCounterLayersummaries++; | 1293 buildCounterLayersummaries++; |
1294 if (buildCounterLayersummaries < 3) { | 1294 if (buildCounterLayersummaries < 3) { |
1295 o.items = buildUnnamed532(); | 1295 o.items = buildUnnamed321(); |
1296 o.kind = "foo"; | 1296 o.kind = "foo"; |
1297 o.totalItems = 42; | 1297 o.totalItems = 42; |
1298 } | 1298 } |
1299 buildCounterLayersummaries--; | 1299 buildCounterLayersummaries--; |
1300 return o; | 1300 return o; |
1301 } | 1301 } |
1302 | 1302 |
1303 checkLayersummaries(api.Layersummaries o) { | 1303 checkLayersummaries(api.Layersummaries o) { |
1304 buildCounterLayersummaries++; | 1304 buildCounterLayersummaries++; |
1305 if (buildCounterLayersummaries < 3) { | 1305 if (buildCounterLayersummaries < 3) { |
1306 checkUnnamed532(o.items); | 1306 checkUnnamed321(o.items); |
1307 unittest.expect(o.kind, unittest.equals('foo')); | 1307 unittest.expect(o.kind, unittest.equals('foo')); |
1308 unittest.expect(o.totalItems, unittest.equals(42)); | 1308 unittest.expect(o.totalItems, unittest.equals(42)); |
1309 } | 1309 } |
1310 buildCounterLayersummaries--; | 1310 buildCounterLayersummaries--; |
1311 } | 1311 } |
1312 | 1312 |
1313 buildUnnamed533() { | 1313 buildUnnamed322() { |
1314 var o = new core.List<core.String>(); | 1314 var o = new core.List<core.String>(); |
1315 o.add("foo"); | 1315 o.add("foo"); |
1316 o.add("foo"); | 1316 o.add("foo"); |
1317 return o; | 1317 return o; |
1318 } | 1318 } |
1319 | 1319 |
1320 checkUnnamed533(core.List<core.String> o) { | 1320 checkUnnamed322(core.List<core.String> o) { |
1321 unittest.expect(o, unittest.hasLength(2)); | 1321 unittest.expect(o, unittest.hasLength(2)); |
1322 unittest.expect(o[0], unittest.equals('foo')); | 1322 unittest.expect(o[0], unittest.equals('foo')); |
1323 unittest.expect(o[1], unittest.equals('foo')); | 1323 unittest.expect(o[1], unittest.equals('foo')); |
1324 } | 1324 } |
1325 | 1325 |
1326 core.int buildCounterLayersummary = 0; | 1326 core.int buildCounterLayersummary = 0; |
1327 buildLayersummary() { | 1327 buildLayersummary() { |
1328 var o = new api.Layersummary(); | 1328 var o = new api.Layersummary(); |
1329 buildCounterLayersummary++; | 1329 buildCounterLayersummary++; |
1330 if (buildCounterLayersummary < 3) { | 1330 if (buildCounterLayersummary < 3) { |
1331 o.annotationCount = 42; | 1331 o.annotationCount = 42; |
1332 o.annotationTypes = buildUnnamed533(); | 1332 o.annotationTypes = buildUnnamed322(); |
1333 o.annotationsDataLink = "foo"; | 1333 o.annotationsDataLink = "foo"; |
1334 o.annotationsLink = "foo"; | 1334 o.annotationsLink = "foo"; |
1335 o.contentVersion = "foo"; | 1335 o.contentVersion = "foo"; |
1336 o.dataCount = 42; | 1336 o.dataCount = 42; |
1337 o.id = "foo"; | 1337 o.id = "foo"; |
1338 o.kind = "foo"; | 1338 o.kind = "foo"; |
1339 o.layerId = "foo"; | 1339 o.layerId = "foo"; |
1340 o.selfLink = "foo"; | 1340 o.selfLink = "foo"; |
1341 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 1341 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
1342 o.volumeAnnotationsVersion = "foo"; | 1342 o.volumeAnnotationsVersion = "foo"; |
1343 o.volumeId = "foo"; | 1343 o.volumeId = "foo"; |
1344 } | 1344 } |
1345 buildCounterLayersummary--; | 1345 buildCounterLayersummary--; |
1346 return o; | 1346 return o; |
1347 } | 1347 } |
1348 | 1348 |
1349 checkLayersummary(api.Layersummary o) { | 1349 checkLayersummary(api.Layersummary o) { |
1350 buildCounterLayersummary++; | 1350 buildCounterLayersummary++; |
1351 if (buildCounterLayersummary < 3) { | 1351 if (buildCounterLayersummary < 3) { |
1352 unittest.expect(o.annotationCount, unittest.equals(42)); | 1352 unittest.expect(o.annotationCount, unittest.equals(42)); |
1353 checkUnnamed533(o.annotationTypes); | 1353 checkUnnamed322(o.annotationTypes); |
1354 unittest.expect(o.annotationsDataLink, unittest.equals('foo')); | 1354 unittest.expect(o.annotationsDataLink, unittest.equals('foo')); |
1355 unittest.expect(o.annotationsLink, unittest.equals('foo')); | 1355 unittest.expect(o.annotationsLink, unittest.equals('foo')); |
1356 unittest.expect(o.contentVersion, unittest.equals('foo')); | 1356 unittest.expect(o.contentVersion, unittest.equals('foo')); |
1357 unittest.expect(o.dataCount, unittest.equals(42)); | 1357 unittest.expect(o.dataCount, unittest.equals(42)); |
1358 unittest.expect(o.id, unittest.equals('foo')); | 1358 unittest.expect(o.id, unittest.equals('foo')); |
1359 unittest.expect(o.kind, unittest.equals('foo')); | 1359 unittest.expect(o.kind, unittest.equals('foo')); |
1360 unittest.expect(o.layerId, unittest.equals('foo')); | 1360 unittest.expect(o.layerId, unittest.equals('foo')); |
1361 unittest.expect(o.selfLink, unittest.equals('foo')); | 1361 unittest.expect(o.selfLink, unittest.equals('foo')); |
1362 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 1362 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
1363 unittest.expect(o.volumeAnnotationsVersion, unittest.equals('foo')); | 1363 unittest.expect(o.volumeAnnotationsVersion, unittest.equals('foo')); |
1364 unittest.expect(o.volumeId, unittest.equals('foo')); | 1364 unittest.expect(o.volumeId, unittest.equals('foo')); |
1365 } | 1365 } |
1366 buildCounterLayersummary--; | 1366 buildCounterLayersummary--; |
1367 } | 1367 } |
1368 | 1368 |
| 1369 core.int buildCounterMetadataItems = 0; |
| 1370 buildMetadataItems() { |
| 1371 var o = new api.MetadataItems(); |
| 1372 buildCounterMetadataItems++; |
| 1373 if (buildCounterMetadataItems < 3) { |
| 1374 o.downloadUrl = "foo"; |
| 1375 o.encryptedKey = "foo"; |
| 1376 o.language = "foo"; |
| 1377 o.size = "foo"; |
| 1378 o.version = "foo"; |
| 1379 } |
| 1380 buildCounterMetadataItems--; |
| 1381 return o; |
| 1382 } |
| 1383 |
| 1384 checkMetadataItems(api.MetadataItems o) { |
| 1385 buildCounterMetadataItems++; |
| 1386 if (buildCounterMetadataItems < 3) { |
| 1387 unittest.expect(o.downloadUrl, unittest.equals('foo')); |
| 1388 unittest.expect(o.encryptedKey, unittest.equals('foo')); |
| 1389 unittest.expect(o.language, unittest.equals('foo')); |
| 1390 unittest.expect(o.size, unittest.equals('foo')); |
| 1391 unittest.expect(o.version, unittest.equals('foo')); |
| 1392 } |
| 1393 buildCounterMetadataItems--; |
| 1394 } |
| 1395 |
| 1396 buildUnnamed323() { |
| 1397 var o = new core.List<api.MetadataItems>(); |
| 1398 o.add(buildMetadataItems()); |
| 1399 o.add(buildMetadataItems()); |
| 1400 return o; |
| 1401 } |
| 1402 |
| 1403 checkUnnamed323(core.List<api.MetadataItems> o) { |
| 1404 unittest.expect(o, unittest.hasLength(2)); |
| 1405 checkMetadataItems(o[0]); |
| 1406 checkMetadataItems(o[1]); |
| 1407 } |
| 1408 |
| 1409 core.int buildCounterMetadata = 0; |
| 1410 buildMetadata() { |
| 1411 var o = new api.Metadata(); |
| 1412 buildCounterMetadata++; |
| 1413 if (buildCounterMetadata < 3) { |
| 1414 o.items = buildUnnamed323(); |
| 1415 o.kind = "foo"; |
| 1416 } |
| 1417 buildCounterMetadata--; |
| 1418 return o; |
| 1419 } |
| 1420 |
| 1421 checkMetadata(api.Metadata o) { |
| 1422 buildCounterMetadata++; |
| 1423 if (buildCounterMetadata < 3) { |
| 1424 checkUnnamed323(o.items); |
| 1425 unittest.expect(o.kind, unittest.equals('foo')); |
| 1426 } |
| 1427 buildCounterMetadata--; |
| 1428 } |
| 1429 |
1369 core.int buildCounterOffersItemsItems = 0; | 1430 core.int buildCounterOffersItemsItems = 0; |
1370 buildOffersItemsItems() { | 1431 buildOffersItemsItems() { |
1371 var o = new api.OffersItemsItems(); | 1432 var o = new api.OffersItemsItems(); |
1372 buildCounterOffersItemsItems++; | 1433 buildCounterOffersItemsItems++; |
1373 if (buildCounterOffersItemsItems < 3) { | 1434 if (buildCounterOffersItemsItems < 3) { |
1374 o.author = "foo"; | 1435 o.author = "foo"; |
1375 o.canonicalVolumeLink = "foo"; | 1436 o.canonicalVolumeLink = "foo"; |
1376 o.coverUrl = "foo"; | 1437 o.coverUrl = "foo"; |
1377 o.description = "foo"; | 1438 o.description = "foo"; |
1378 o.title = "foo"; | 1439 o.title = "foo"; |
1379 o.volumeId = "foo"; | 1440 o.volumeId = "foo"; |
1380 } | 1441 } |
1381 buildCounterOffersItemsItems--; | 1442 buildCounterOffersItemsItems--; |
1382 return o; | 1443 return o; |
1383 } | 1444 } |
1384 | 1445 |
1385 checkOffersItemsItems(api.OffersItemsItems o) { | 1446 checkOffersItemsItems(api.OffersItemsItems o) { |
1386 buildCounterOffersItemsItems++; | 1447 buildCounterOffersItemsItems++; |
1387 if (buildCounterOffersItemsItems < 3) { | 1448 if (buildCounterOffersItemsItems < 3) { |
1388 unittest.expect(o.author, unittest.equals('foo')); | 1449 unittest.expect(o.author, unittest.equals('foo')); |
1389 unittest.expect(o.canonicalVolumeLink, unittest.equals('foo')); | 1450 unittest.expect(o.canonicalVolumeLink, unittest.equals('foo')); |
1390 unittest.expect(o.coverUrl, unittest.equals('foo')); | 1451 unittest.expect(o.coverUrl, unittest.equals('foo')); |
1391 unittest.expect(o.description, unittest.equals('foo')); | 1452 unittest.expect(o.description, unittest.equals('foo')); |
1392 unittest.expect(o.title, unittest.equals('foo')); | 1453 unittest.expect(o.title, unittest.equals('foo')); |
1393 unittest.expect(o.volumeId, unittest.equals('foo')); | 1454 unittest.expect(o.volumeId, unittest.equals('foo')); |
1394 } | 1455 } |
1395 buildCounterOffersItemsItems--; | 1456 buildCounterOffersItemsItems--; |
1396 } | 1457 } |
1397 | 1458 |
1398 buildUnnamed534() { | 1459 buildUnnamed324() { |
1399 var o = new core.List<api.OffersItemsItems>(); | 1460 var o = new core.List<api.OffersItemsItems>(); |
1400 o.add(buildOffersItemsItems()); | 1461 o.add(buildOffersItemsItems()); |
1401 o.add(buildOffersItemsItems()); | 1462 o.add(buildOffersItemsItems()); |
1402 return o; | 1463 return o; |
1403 } | 1464 } |
1404 | 1465 |
1405 checkUnnamed534(core.List<api.OffersItemsItems> o) { | 1466 checkUnnamed324(core.List<api.OffersItemsItems> o) { |
1406 unittest.expect(o, unittest.hasLength(2)); | 1467 unittest.expect(o, unittest.hasLength(2)); |
1407 checkOffersItemsItems(o[0]); | 1468 checkOffersItemsItems(o[0]); |
1408 checkOffersItemsItems(o[1]); | 1469 checkOffersItemsItems(o[1]); |
1409 } | 1470 } |
1410 | 1471 |
1411 core.int buildCounterOffersItems = 0; | 1472 core.int buildCounterOffersItems = 0; |
1412 buildOffersItems() { | 1473 buildOffersItems() { |
1413 var o = new api.OffersItems(); | 1474 var o = new api.OffersItems(); |
1414 buildCounterOffersItems++; | 1475 buildCounterOffersItems++; |
1415 if (buildCounterOffersItems < 3) { | 1476 if (buildCounterOffersItems < 3) { |
1416 o.artUrl = "foo"; | 1477 o.artUrl = "foo"; |
1417 o.id = "foo"; | 1478 o.id = "foo"; |
1418 o.items = buildUnnamed534(); | 1479 o.items = buildUnnamed324(); |
1419 } | 1480 } |
1420 buildCounterOffersItems--; | 1481 buildCounterOffersItems--; |
1421 return o; | 1482 return o; |
1422 } | 1483 } |
1423 | 1484 |
1424 checkOffersItems(api.OffersItems o) { | 1485 checkOffersItems(api.OffersItems o) { |
1425 buildCounterOffersItems++; | 1486 buildCounterOffersItems++; |
1426 if (buildCounterOffersItems < 3) { | 1487 if (buildCounterOffersItems < 3) { |
1427 unittest.expect(o.artUrl, unittest.equals('foo')); | 1488 unittest.expect(o.artUrl, unittest.equals('foo')); |
1428 unittest.expect(o.id, unittest.equals('foo')); | 1489 unittest.expect(o.id, unittest.equals('foo')); |
1429 checkUnnamed534(o.items); | 1490 checkUnnamed324(o.items); |
1430 } | 1491 } |
1431 buildCounterOffersItems--; | 1492 buildCounterOffersItems--; |
1432 } | 1493 } |
1433 | 1494 |
1434 buildUnnamed535() { | 1495 buildUnnamed325() { |
1435 var o = new core.List<api.OffersItems>(); | 1496 var o = new core.List<api.OffersItems>(); |
1436 o.add(buildOffersItems()); | 1497 o.add(buildOffersItems()); |
1437 o.add(buildOffersItems()); | 1498 o.add(buildOffersItems()); |
1438 return o; | 1499 return o; |
1439 } | 1500 } |
1440 | 1501 |
1441 checkUnnamed535(core.List<api.OffersItems> o) { | 1502 checkUnnamed325(core.List<api.OffersItems> o) { |
1442 unittest.expect(o, unittest.hasLength(2)); | 1503 unittest.expect(o, unittest.hasLength(2)); |
1443 checkOffersItems(o[0]); | 1504 checkOffersItems(o[0]); |
1444 checkOffersItems(o[1]); | 1505 checkOffersItems(o[1]); |
1445 } | 1506 } |
1446 | 1507 |
1447 core.int buildCounterOffers = 0; | 1508 core.int buildCounterOffers = 0; |
1448 buildOffers() { | 1509 buildOffers() { |
1449 var o = new api.Offers(); | 1510 var o = new api.Offers(); |
1450 buildCounterOffers++; | 1511 buildCounterOffers++; |
1451 if (buildCounterOffers < 3) { | 1512 if (buildCounterOffers < 3) { |
1452 o.items = buildUnnamed535(); | 1513 o.items = buildUnnamed325(); |
1453 o.kind = "foo"; | 1514 o.kind = "foo"; |
1454 } | 1515 } |
1455 buildCounterOffers--; | 1516 buildCounterOffers--; |
1456 return o; | 1517 return o; |
1457 } | 1518 } |
1458 | 1519 |
1459 checkOffers(api.Offers o) { | 1520 checkOffers(api.Offers o) { |
1460 buildCounterOffers++; | 1521 buildCounterOffers++; |
1461 if (buildCounterOffers < 3) { | 1522 if (buildCounterOffers < 3) { |
1462 checkUnnamed535(o.items); | 1523 checkUnnamed325(o.items); |
1463 unittest.expect(o.kind, unittest.equals('foo')); | 1524 unittest.expect(o.kind, unittest.equals('foo')); |
1464 } | 1525 } |
1465 buildCounterOffers--; | 1526 buildCounterOffers--; |
1466 } | 1527 } |
1467 | 1528 |
1468 core.int buildCounterReadingPosition = 0; | 1529 core.int buildCounterReadingPosition = 0; |
1469 buildReadingPosition() { | 1530 buildReadingPosition() { |
1470 var o = new api.ReadingPosition(); | 1531 var o = new api.ReadingPosition(); |
1471 buildCounterReadingPosition++; | 1532 buildCounterReadingPosition++; |
1472 if (buildCounterReadingPosition < 3) { | 1533 if (buildCounterReadingPosition < 3) { |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1703 | 1764 |
1704 checkVolumeLayerInfoLayers(api.VolumeLayerInfoLayers o) { | 1765 checkVolumeLayerInfoLayers(api.VolumeLayerInfoLayers o) { |
1705 buildCounterVolumeLayerInfoLayers++; | 1766 buildCounterVolumeLayerInfoLayers++; |
1706 if (buildCounterVolumeLayerInfoLayers < 3) { | 1767 if (buildCounterVolumeLayerInfoLayers < 3) { |
1707 unittest.expect(o.layerId, unittest.equals('foo')); | 1768 unittest.expect(o.layerId, unittest.equals('foo')); |
1708 unittest.expect(o.volumeAnnotationsVersion, unittest.equals('foo')); | 1769 unittest.expect(o.volumeAnnotationsVersion, unittest.equals('foo')); |
1709 } | 1770 } |
1710 buildCounterVolumeLayerInfoLayers--; | 1771 buildCounterVolumeLayerInfoLayers--; |
1711 } | 1772 } |
1712 | 1773 |
1713 buildUnnamed536() { | 1774 buildUnnamed326() { |
1714 var o = new core.List<api.VolumeLayerInfoLayers>(); | 1775 var o = new core.List<api.VolumeLayerInfoLayers>(); |
1715 o.add(buildVolumeLayerInfoLayers()); | 1776 o.add(buildVolumeLayerInfoLayers()); |
1716 o.add(buildVolumeLayerInfoLayers()); | 1777 o.add(buildVolumeLayerInfoLayers()); |
1717 return o; | 1778 return o; |
1718 } | 1779 } |
1719 | 1780 |
1720 checkUnnamed536(core.List<api.VolumeLayerInfoLayers> o) { | 1781 checkUnnamed326(core.List<api.VolumeLayerInfoLayers> o) { |
1721 unittest.expect(o, unittest.hasLength(2)); | 1782 unittest.expect(o, unittest.hasLength(2)); |
1722 checkVolumeLayerInfoLayers(o[0]); | 1783 checkVolumeLayerInfoLayers(o[0]); |
1723 checkVolumeLayerInfoLayers(o[1]); | 1784 checkVolumeLayerInfoLayers(o[1]); |
1724 } | 1785 } |
1725 | 1786 |
1726 core.int buildCounterVolumeLayerInfo = 0; | 1787 core.int buildCounterVolumeLayerInfo = 0; |
1727 buildVolumeLayerInfo() { | 1788 buildVolumeLayerInfo() { |
1728 var o = new api.VolumeLayerInfo(); | 1789 var o = new api.VolumeLayerInfo(); |
1729 buildCounterVolumeLayerInfo++; | 1790 buildCounterVolumeLayerInfo++; |
1730 if (buildCounterVolumeLayerInfo < 3) { | 1791 if (buildCounterVolumeLayerInfo < 3) { |
1731 o.layers = buildUnnamed536(); | 1792 o.layers = buildUnnamed326(); |
1732 } | 1793 } |
1733 buildCounterVolumeLayerInfo--; | 1794 buildCounterVolumeLayerInfo--; |
1734 return o; | 1795 return o; |
1735 } | 1796 } |
1736 | 1797 |
1737 checkVolumeLayerInfo(api.VolumeLayerInfo o) { | 1798 checkVolumeLayerInfo(api.VolumeLayerInfo o) { |
1738 buildCounterVolumeLayerInfo++; | 1799 buildCounterVolumeLayerInfo++; |
1739 if (buildCounterVolumeLayerInfo < 3) { | 1800 if (buildCounterVolumeLayerInfo < 3) { |
1740 checkUnnamed536(o.layers); | 1801 checkUnnamed326(o.layers); |
1741 } | 1802 } |
1742 buildCounterVolumeLayerInfo--; | 1803 buildCounterVolumeLayerInfo--; |
1743 } | 1804 } |
1744 | 1805 |
1745 core.int buildCounterVolumeRecommendedInfo = 0; | 1806 core.int buildCounterVolumeRecommendedInfo = 0; |
1746 buildVolumeRecommendedInfo() { | 1807 buildVolumeRecommendedInfo() { |
1747 var o = new api.VolumeRecommendedInfo(); | 1808 var o = new api.VolumeRecommendedInfo(); |
1748 buildCounterVolumeRecommendedInfo++; | 1809 buildCounterVolumeRecommendedInfo++; |
1749 if (buildCounterVolumeRecommendedInfo < 3) { | 1810 if (buildCounterVolumeRecommendedInfo < 3) { |
1750 o.explanation = "foo"; | 1811 o.explanation = "foo"; |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1863 buildCounterVolumeSaleInfoOffers++; | 1924 buildCounterVolumeSaleInfoOffers++; |
1864 if (buildCounterVolumeSaleInfoOffers < 3) { | 1925 if (buildCounterVolumeSaleInfoOffers < 3) { |
1865 unittest.expect(o.finskyOfferType, unittest.equals(42)); | 1926 unittest.expect(o.finskyOfferType, unittest.equals(42)); |
1866 checkVolumeSaleInfoOffersListPrice(o.listPrice); | 1927 checkVolumeSaleInfoOffersListPrice(o.listPrice); |
1867 checkVolumeSaleInfoOffersRentalDuration(o.rentalDuration); | 1928 checkVolumeSaleInfoOffersRentalDuration(o.rentalDuration); |
1868 checkVolumeSaleInfoOffersRetailPrice(o.retailPrice); | 1929 checkVolumeSaleInfoOffersRetailPrice(o.retailPrice); |
1869 } | 1930 } |
1870 buildCounterVolumeSaleInfoOffers--; | 1931 buildCounterVolumeSaleInfoOffers--; |
1871 } | 1932 } |
1872 | 1933 |
1873 buildUnnamed537() { | 1934 buildUnnamed327() { |
1874 var o = new core.List<api.VolumeSaleInfoOffers>(); | 1935 var o = new core.List<api.VolumeSaleInfoOffers>(); |
1875 o.add(buildVolumeSaleInfoOffers()); | 1936 o.add(buildVolumeSaleInfoOffers()); |
1876 o.add(buildVolumeSaleInfoOffers()); | 1937 o.add(buildVolumeSaleInfoOffers()); |
1877 return o; | 1938 return o; |
1878 } | 1939 } |
1879 | 1940 |
1880 checkUnnamed537(core.List<api.VolumeSaleInfoOffers> o) { | 1941 checkUnnamed327(core.List<api.VolumeSaleInfoOffers> o) { |
1881 unittest.expect(o, unittest.hasLength(2)); | 1942 unittest.expect(o, unittest.hasLength(2)); |
1882 checkVolumeSaleInfoOffers(o[0]); | 1943 checkVolumeSaleInfoOffers(o[0]); |
1883 checkVolumeSaleInfoOffers(o[1]); | 1944 checkVolumeSaleInfoOffers(o[1]); |
1884 } | 1945 } |
1885 | 1946 |
1886 core.int buildCounterVolumeSaleInfoRetailPrice = 0; | 1947 core.int buildCounterVolumeSaleInfoRetailPrice = 0; |
1887 buildVolumeSaleInfoRetailPrice() { | 1948 buildVolumeSaleInfoRetailPrice() { |
1888 var o = new api.VolumeSaleInfoRetailPrice(); | 1949 var o = new api.VolumeSaleInfoRetailPrice(); |
1889 buildCounterVolumeSaleInfoRetailPrice++; | 1950 buildCounterVolumeSaleInfoRetailPrice++; |
1890 if (buildCounterVolumeSaleInfoRetailPrice < 3) { | 1951 if (buildCounterVolumeSaleInfoRetailPrice < 3) { |
(...skipping 15 matching lines...) Expand all Loading... |
1906 | 1967 |
1907 core.int buildCounterVolumeSaleInfo = 0; | 1968 core.int buildCounterVolumeSaleInfo = 0; |
1908 buildVolumeSaleInfo() { | 1969 buildVolumeSaleInfo() { |
1909 var o = new api.VolumeSaleInfo(); | 1970 var o = new api.VolumeSaleInfo(); |
1910 buildCounterVolumeSaleInfo++; | 1971 buildCounterVolumeSaleInfo++; |
1911 if (buildCounterVolumeSaleInfo < 3) { | 1972 if (buildCounterVolumeSaleInfo < 3) { |
1912 o.buyLink = "foo"; | 1973 o.buyLink = "foo"; |
1913 o.country = "foo"; | 1974 o.country = "foo"; |
1914 o.isEbook = true; | 1975 o.isEbook = true; |
1915 o.listPrice = buildVolumeSaleInfoListPrice(); | 1976 o.listPrice = buildVolumeSaleInfoListPrice(); |
1916 o.offers = buildUnnamed537(); | 1977 o.offers = buildUnnamed327(); |
1917 o.onSaleDate = core.DateTime.parse("2002-02-27T14:01:02"); | 1978 o.onSaleDate = core.DateTime.parse("2002-02-27T14:01:02"); |
1918 o.retailPrice = buildVolumeSaleInfoRetailPrice(); | 1979 o.retailPrice = buildVolumeSaleInfoRetailPrice(); |
1919 o.saleability = "foo"; | 1980 o.saleability = "foo"; |
1920 } | 1981 } |
1921 buildCounterVolumeSaleInfo--; | 1982 buildCounterVolumeSaleInfo--; |
1922 return o; | 1983 return o; |
1923 } | 1984 } |
1924 | 1985 |
1925 checkVolumeSaleInfo(api.VolumeSaleInfo o) { | 1986 checkVolumeSaleInfo(api.VolumeSaleInfo o) { |
1926 buildCounterVolumeSaleInfo++; | 1987 buildCounterVolumeSaleInfo++; |
1927 if (buildCounterVolumeSaleInfo < 3) { | 1988 if (buildCounterVolumeSaleInfo < 3) { |
1928 unittest.expect(o.buyLink, unittest.equals('foo')); | 1989 unittest.expect(o.buyLink, unittest.equals('foo')); |
1929 unittest.expect(o.country, unittest.equals('foo')); | 1990 unittest.expect(o.country, unittest.equals('foo')); |
1930 unittest.expect(o.isEbook, unittest.isTrue); | 1991 unittest.expect(o.isEbook, unittest.isTrue); |
1931 checkVolumeSaleInfoListPrice(o.listPrice); | 1992 checkVolumeSaleInfoListPrice(o.listPrice); |
1932 checkUnnamed537(o.offers); | 1993 checkUnnamed327(o.offers); |
1933 unittest.expect(o.onSaleDate, unittest.equals(core.DateTime.parse("2002-02-2
7T14:01:02"))); | 1994 unittest.expect(o.onSaleDate, unittest.equals(core.DateTime.parse("2002-02-2
7T14:01:02"))); |
1934 checkVolumeSaleInfoRetailPrice(o.retailPrice); | 1995 checkVolumeSaleInfoRetailPrice(o.retailPrice); |
1935 unittest.expect(o.saleability, unittest.equals('foo')); | 1996 unittest.expect(o.saleability, unittest.equals('foo')); |
1936 } | 1997 } |
1937 buildCounterVolumeSaleInfo--; | 1998 buildCounterVolumeSaleInfo--; |
1938 } | 1999 } |
1939 | 2000 |
1940 core.int buildCounterVolumeSearchInfo = 0; | 2001 core.int buildCounterVolumeSearchInfo = 0; |
1941 buildVolumeSearchInfo() { | 2002 buildVolumeSearchInfo() { |
1942 var o = new api.VolumeSearchInfo(); | 2003 var o = new api.VolumeSearchInfo(); |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2053 checkReadingPosition(o.readingPosition); | 2114 checkReadingPosition(o.readingPosition); |
2054 checkVolumeUserInfoRentalPeriod(o.rentalPeriod); | 2115 checkVolumeUserInfoRentalPeriod(o.rentalPeriod); |
2055 unittest.expect(o.rentalState, unittest.equals('foo')); | 2116 unittest.expect(o.rentalState, unittest.equals('foo')); |
2056 checkReview(o.review); | 2117 checkReview(o.review); |
2057 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 2118 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
2058 checkVolumeUserInfoUserUploadedVolumeInfo(o.userUploadedVolumeInfo); | 2119 checkVolumeUserInfoUserUploadedVolumeInfo(o.userUploadedVolumeInfo); |
2059 } | 2120 } |
2060 buildCounterVolumeUserInfo--; | 2121 buildCounterVolumeUserInfo--; |
2061 } | 2122 } |
2062 | 2123 |
2063 buildUnnamed538() { | 2124 buildUnnamed328() { |
2064 var o = new core.List<core.String>(); | 2125 var o = new core.List<core.String>(); |
2065 o.add("foo"); | 2126 o.add("foo"); |
2066 o.add("foo"); | 2127 o.add("foo"); |
2067 return o; | 2128 return o; |
2068 } | 2129 } |
2069 | 2130 |
2070 checkUnnamed538(core.List<core.String> o) { | 2131 checkUnnamed328(core.List<core.String> o) { |
2071 unittest.expect(o, unittest.hasLength(2)); | 2132 unittest.expect(o, unittest.hasLength(2)); |
2072 unittest.expect(o[0], unittest.equals('foo')); | 2133 unittest.expect(o[0], unittest.equals('foo')); |
2073 unittest.expect(o[1], unittest.equals('foo')); | 2134 unittest.expect(o[1], unittest.equals('foo')); |
2074 } | 2135 } |
2075 | 2136 |
2076 buildUnnamed539() { | 2137 buildUnnamed329() { |
2077 var o = new core.List<core.String>(); | 2138 var o = new core.List<core.String>(); |
2078 o.add("foo"); | 2139 o.add("foo"); |
2079 o.add("foo"); | 2140 o.add("foo"); |
2080 return o; | 2141 return o; |
2081 } | 2142 } |
2082 | 2143 |
2083 checkUnnamed539(core.List<core.String> o) { | 2144 checkUnnamed329(core.List<core.String> o) { |
2084 unittest.expect(o, unittest.hasLength(2)); | 2145 unittest.expect(o, unittest.hasLength(2)); |
2085 unittest.expect(o[0], unittest.equals('foo')); | 2146 unittest.expect(o[0], unittest.equals('foo')); |
2086 unittest.expect(o[1], unittest.equals('foo')); | 2147 unittest.expect(o[1], unittest.equals('foo')); |
2087 } | 2148 } |
2088 | 2149 |
2089 core.int buildCounterVolumeVolumeInfoDimensions = 0; | 2150 core.int buildCounterVolumeVolumeInfoDimensions = 0; |
2090 buildVolumeVolumeInfoDimensions() { | 2151 buildVolumeVolumeInfoDimensions() { |
2091 var o = new api.VolumeVolumeInfoDimensions(); | 2152 var o = new api.VolumeVolumeInfoDimensions(); |
2092 buildCounterVolumeVolumeInfoDimensions++; | 2153 buildCounterVolumeVolumeInfoDimensions++; |
2093 if (buildCounterVolumeVolumeInfoDimensions < 3) { | 2154 if (buildCounterVolumeVolumeInfoDimensions < 3) { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2152 | 2213 |
2153 checkVolumeVolumeInfoIndustryIdentifiers(api.VolumeVolumeInfoIndustryIdentifiers
o) { | 2214 checkVolumeVolumeInfoIndustryIdentifiers(api.VolumeVolumeInfoIndustryIdentifiers
o) { |
2154 buildCounterVolumeVolumeInfoIndustryIdentifiers++; | 2215 buildCounterVolumeVolumeInfoIndustryIdentifiers++; |
2155 if (buildCounterVolumeVolumeInfoIndustryIdentifiers < 3) { | 2216 if (buildCounterVolumeVolumeInfoIndustryIdentifiers < 3) { |
2156 unittest.expect(o.identifier, unittest.equals('foo')); | 2217 unittest.expect(o.identifier, unittest.equals('foo')); |
2157 unittest.expect(o.type, unittest.equals('foo')); | 2218 unittest.expect(o.type, unittest.equals('foo')); |
2158 } | 2219 } |
2159 buildCounterVolumeVolumeInfoIndustryIdentifiers--; | 2220 buildCounterVolumeVolumeInfoIndustryIdentifiers--; |
2160 } | 2221 } |
2161 | 2222 |
2162 buildUnnamed540() { | 2223 buildUnnamed330() { |
2163 var o = new core.List<api.VolumeVolumeInfoIndustryIdentifiers>(); | 2224 var o = new core.List<api.VolumeVolumeInfoIndustryIdentifiers>(); |
2164 o.add(buildVolumeVolumeInfoIndustryIdentifiers()); | 2225 o.add(buildVolumeVolumeInfoIndustryIdentifiers()); |
2165 o.add(buildVolumeVolumeInfoIndustryIdentifiers()); | 2226 o.add(buildVolumeVolumeInfoIndustryIdentifiers()); |
2166 return o; | 2227 return o; |
2167 } | 2228 } |
2168 | 2229 |
2169 checkUnnamed540(core.List<api.VolumeVolumeInfoIndustryIdentifiers> o) { | 2230 checkUnnamed330(core.List<api.VolumeVolumeInfoIndustryIdentifiers> o) { |
2170 unittest.expect(o, unittest.hasLength(2)); | 2231 unittest.expect(o, unittest.hasLength(2)); |
2171 checkVolumeVolumeInfoIndustryIdentifiers(o[0]); | 2232 checkVolumeVolumeInfoIndustryIdentifiers(o[0]); |
2172 checkVolumeVolumeInfoIndustryIdentifiers(o[1]); | 2233 checkVolumeVolumeInfoIndustryIdentifiers(o[1]); |
2173 } | 2234 } |
2174 | 2235 |
2175 core.int buildCounterVolumeVolumeInfo = 0; | 2236 core.int buildCounterVolumeVolumeInfo = 0; |
2176 buildVolumeVolumeInfo() { | 2237 buildVolumeVolumeInfo() { |
2177 var o = new api.VolumeVolumeInfo(); | 2238 var o = new api.VolumeVolumeInfo(); |
2178 buildCounterVolumeVolumeInfo++; | 2239 buildCounterVolumeVolumeInfo++; |
2179 if (buildCounterVolumeVolumeInfo < 3) { | 2240 if (buildCounterVolumeVolumeInfo < 3) { |
2180 o.authors = buildUnnamed538(); | 2241 o.authors = buildUnnamed328(); |
2181 o.averageRating = 42.0; | 2242 o.averageRating = 42.0; |
2182 o.canonicalVolumeLink = "foo"; | 2243 o.canonicalVolumeLink = "foo"; |
2183 o.categories = buildUnnamed539(); | 2244 o.categories = buildUnnamed329(); |
2184 o.contentVersion = "foo"; | 2245 o.contentVersion = "foo"; |
2185 o.description = "foo"; | 2246 o.description = "foo"; |
2186 o.dimensions = buildVolumeVolumeInfoDimensions(); | 2247 o.dimensions = buildVolumeVolumeInfoDimensions(); |
2187 o.imageLinks = buildVolumeVolumeInfoImageLinks(); | 2248 o.imageLinks = buildVolumeVolumeInfoImageLinks(); |
2188 o.industryIdentifiers = buildUnnamed540(); | 2249 o.industryIdentifiers = buildUnnamed330(); |
2189 o.infoLink = "foo"; | 2250 o.infoLink = "foo"; |
2190 o.language = "foo"; | 2251 o.language = "foo"; |
2191 o.mainCategory = "foo"; | 2252 o.mainCategory = "foo"; |
2192 o.pageCount = 42; | 2253 o.pageCount = 42; |
2193 o.previewLink = "foo"; | 2254 o.previewLink = "foo"; |
2194 o.printType = "foo"; | 2255 o.printType = "foo"; |
2195 o.printedPageCount = 42; | 2256 o.printedPageCount = 42; |
2196 o.publishedDate = "foo"; | 2257 o.publishedDate = "foo"; |
2197 o.publisher = "foo"; | 2258 o.publisher = "foo"; |
2198 o.ratingsCount = 42; | 2259 o.ratingsCount = 42; |
2199 o.readingModes = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2260 o.readingModes = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2200 o.subtitle = "foo"; | 2261 o.subtitle = "foo"; |
2201 o.title = "foo"; | 2262 o.title = "foo"; |
2202 } | 2263 } |
2203 buildCounterVolumeVolumeInfo--; | 2264 buildCounterVolumeVolumeInfo--; |
2204 return o; | 2265 return o; |
2205 } | 2266 } |
2206 | 2267 |
2207 checkVolumeVolumeInfo(api.VolumeVolumeInfo o) { | 2268 checkVolumeVolumeInfo(api.VolumeVolumeInfo o) { |
2208 buildCounterVolumeVolumeInfo++; | 2269 buildCounterVolumeVolumeInfo++; |
2209 if (buildCounterVolumeVolumeInfo < 3) { | 2270 if (buildCounterVolumeVolumeInfo < 3) { |
2210 checkUnnamed538(o.authors); | 2271 checkUnnamed328(o.authors); |
2211 unittest.expect(o.averageRating, unittest.equals(42.0)); | 2272 unittest.expect(o.averageRating, unittest.equals(42.0)); |
2212 unittest.expect(o.canonicalVolumeLink, unittest.equals('foo')); | 2273 unittest.expect(o.canonicalVolumeLink, unittest.equals('foo')); |
2213 checkUnnamed539(o.categories); | 2274 checkUnnamed329(o.categories); |
2214 unittest.expect(o.contentVersion, unittest.equals('foo')); | 2275 unittest.expect(o.contentVersion, unittest.equals('foo')); |
2215 unittest.expect(o.description, unittest.equals('foo')); | 2276 unittest.expect(o.description, unittest.equals('foo')); |
2216 checkVolumeVolumeInfoDimensions(o.dimensions); | 2277 checkVolumeVolumeInfoDimensions(o.dimensions); |
2217 checkVolumeVolumeInfoImageLinks(o.imageLinks); | 2278 checkVolumeVolumeInfoImageLinks(o.imageLinks); |
2218 checkUnnamed540(o.industryIdentifiers); | 2279 checkUnnamed330(o.industryIdentifiers); |
2219 unittest.expect(o.infoLink, unittest.equals('foo')); | 2280 unittest.expect(o.infoLink, unittest.equals('foo')); |
2220 unittest.expect(o.language, unittest.equals('foo')); | 2281 unittest.expect(o.language, unittest.equals('foo')); |
2221 unittest.expect(o.mainCategory, unittest.equals('foo')); | 2282 unittest.expect(o.mainCategory, unittest.equals('foo')); |
2222 unittest.expect(o.pageCount, unittest.equals(42)); | 2283 unittest.expect(o.pageCount, unittest.equals(42)); |
2223 unittest.expect(o.previewLink, unittest.equals('foo')); | 2284 unittest.expect(o.previewLink, unittest.equals('foo')); |
2224 unittest.expect(o.printType, unittest.equals('foo')); | 2285 unittest.expect(o.printType, unittest.equals('foo')); |
2225 unittest.expect(o.printedPageCount, unittest.equals(42)); | 2286 unittest.expect(o.printedPageCount, unittest.equals(42)); |
2226 unittest.expect(o.publishedDate, unittest.equals('foo')); | 2287 unittest.expect(o.publishedDate, unittest.equals('foo')); |
2227 unittest.expect(o.publisher, unittest.equals('foo')); | 2288 unittest.expect(o.publisher, unittest.equals('foo')); |
2228 unittest.expect(o.ratingsCount, unittest.equals(42)); | 2289 unittest.expect(o.ratingsCount, unittest.equals(42)); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2290 buildCounterVolumeannotationContentRanges++; | 2351 buildCounterVolumeannotationContentRanges++; |
2291 if (buildCounterVolumeannotationContentRanges < 3) { | 2352 if (buildCounterVolumeannotationContentRanges < 3) { |
2292 checkBooksAnnotationsRange(o.cfiRange); | 2353 checkBooksAnnotationsRange(o.cfiRange); |
2293 unittest.expect(o.contentVersion, unittest.equals('foo')); | 2354 unittest.expect(o.contentVersion, unittest.equals('foo')); |
2294 checkBooksAnnotationsRange(o.gbImageRange); | 2355 checkBooksAnnotationsRange(o.gbImageRange); |
2295 checkBooksAnnotationsRange(o.gbTextRange); | 2356 checkBooksAnnotationsRange(o.gbTextRange); |
2296 } | 2357 } |
2297 buildCounterVolumeannotationContentRanges--; | 2358 buildCounterVolumeannotationContentRanges--; |
2298 } | 2359 } |
2299 | 2360 |
2300 buildUnnamed541() { | 2361 buildUnnamed331() { |
2301 var o = new core.List<core.String>(); | 2362 var o = new core.List<core.String>(); |
2302 o.add("foo"); | 2363 o.add("foo"); |
2303 o.add("foo"); | 2364 o.add("foo"); |
2304 return o; | 2365 return o; |
2305 } | 2366 } |
2306 | 2367 |
2307 checkUnnamed541(core.List<core.String> o) { | 2368 checkUnnamed331(core.List<core.String> o) { |
2308 unittest.expect(o, unittest.hasLength(2)); | 2369 unittest.expect(o, unittest.hasLength(2)); |
2309 unittest.expect(o[0], unittest.equals('foo')); | 2370 unittest.expect(o[0], unittest.equals('foo')); |
2310 unittest.expect(o[1], unittest.equals('foo')); | 2371 unittest.expect(o[1], unittest.equals('foo')); |
2311 } | 2372 } |
2312 | 2373 |
2313 core.int buildCounterVolumeannotation = 0; | 2374 core.int buildCounterVolumeannotation = 0; |
2314 buildVolumeannotation() { | 2375 buildVolumeannotation() { |
2315 var o = new api.Volumeannotation(); | 2376 var o = new api.Volumeannotation(); |
2316 buildCounterVolumeannotation++; | 2377 buildCounterVolumeannotation++; |
2317 if (buildCounterVolumeannotation < 3) { | 2378 if (buildCounterVolumeannotation < 3) { |
2318 o.annotationDataId = "foo"; | 2379 o.annotationDataId = "foo"; |
2319 o.annotationDataLink = "foo"; | 2380 o.annotationDataLink = "foo"; |
2320 o.annotationType = "foo"; | 2381 o.annotationType = "foo"; |
2321 o.contentRanges = buildVolumeannotationContentRanges(); | 2382 o.contentRanges = buildVolumeannotationContentRanges(); |
2322 o.data = "foo"; | 2383 o.data = "foo"; |
2323 o.deleted = true; | 2384 o.deleted = true; |
2324 o.id = "foo"; | 2385 o.id = "foo"; |
2325 o.kind = "foo"; | 2386 o.kind = "foo"; |
2326 o.layerId = "foo"; | 2387 o.layerId = "foo"; |
2327 o.pageIds = buildUnnamed541(); | 2388 o.pageIds = buildUnnamed331(); |
2328 o.selectedText = "foo"; | 2389 o.selectedText = "foo"; |
2329 o.selfLink = "foo"; | 2390 o.selfLink = "foo"; |
2330 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 2391 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
2331 o.volumeId = "foo"; | 2392 o.volumeId = "foo"; |
2332 } | 2393 } |
2333 buildCounterVolumeannotation--; | 2394 buildCounterVolumeannotation--; |
2334 return o; | 2395 return o; |
2335 } | 2396 } |
2336 | 2397 |
2337 checkVolumeannotation(api.Volumeannotation o) { | 2398 checkVolumeannotation(api.Volumeannotation o) { |
2338 buildCounterVolumeannotation++; | 2399 buildCounterVolumeannotation++; |
2339 if (buildCounterVolumeannotation < 3) { | 2400 if (buildCounterVolumeannotation < 3) { |
2340 unittest.expect(o.annotationDataId, unittest.equals('foo')); | 2401 unittest.expect(o.annotationDataId, unittest.equals('foo')); |
2341 unittest.expect(o.annotationDataLink, unittest.equals('foo')); | 2402 unittest.expect(o.annotationDataLink, unittest.equals('foo')); |
2342 unittest.expect(o.annotationType, unittest.equals('foo')); | 2403 unittest.expect(o.annotationType, unittest.equals('foo')); |
2343 checkVolumeannotationContentRanges(o.contentRanges); | 2404 checkVolumeannotationContentRanges(o.contentRanges); |
2344 unittest.expect(o.data, unittest.equals('foo')); | 2405 unittest.expect(o.data, unittest.equals('foo')); |
2345 unittest.expect(o.deleted, unittest.isTrue); | 2406 unittest.expect(o.deleted, unittest.isTrue); |
2346 unittest.expect(o.id, unittest.equals('foo')); | 2407 unittest.expect(o.id, unittest.equals('foo')); |
2347 unittest.expect(o.kind, unittest.equals('foo')); | 2408 unittest.expect(o.kind, unittest.equals('foo')); |
2348 unittest.expect(o.layerId, unittest.equals('foo')); | 2409 unittest.expect(o.layerId, unittest.equals('foo')); |
2349 checkUnnamed541(o.pageIds); | 2410 checkUnnamed331(o.pageIds); |
2350 unittest.expect(o.selectedText, unittest.equals('foo')); | 2411 unittest.expect(o.selectedText, unittest.equals('foo')); |
2351 unittest.expect(o.selfLink, unittest.equals('foo')); | 2412 unittest.expect(o.selfLink, unittest.equals('foo')); |
2352 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 2413 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
2353 unittest.expect(o.volumeId, unittest.equals('foo')); | 2414 unittest.expect(o.volumeId, unittest.equals('foo')); |
2354 } | 2415 } |
2355 buildCounterVolumeannotation--; | 2416 buildCounterVolumeannotation--; |
2356 } | 2417 } |
2357 | 2418 |
2358 buildUnnamed542() { | 2419 buildUnnamed332() { |
2359 var o = new core.List<api.Volumeannotation>(); | 2420 var o = new core.List<api.Volumeannotation>(); |
2360 o.add(buildVolumeannotation()); | 2421 o.add(buildVolumeannotation()); |
2361 o.add(buildVolumeannotation()); | 2422 o.add(buildVolumeannotation()); |
2362 return o; | 2423 return o; |
2363 } | 2424 } |
2364 | 2425 |
2365 checkUnnamed542(core.List<api.Volumeannotation> o) { | 2426 checkUnnamed332(core.List<api.Volumeannotation> o) { |
2366 unittest.expect(o, unittest.hasLength(2)); | 2427 unittest.expect(o, unittest.hasLength(2)); |
2367 checkVolumeannotation(o[0]); | 2428 checkVolumeannotation(o[0]); |
2368 checkVolumeannotation(o[1]); | 2429 checkVolumeannotation(o[1]); |
2369 } | 2430 } |
2370 | 2431 |
2371 core.int buildCounterVolumeannotations = 0; | 2432 core.int buildCounterVolumeannotations = 0; |
2372 buildVolumeannotations() { | 2433 buildVolumeannotations() { |
2373 var o = new api.Volumeannotations(); | 2434 var o = new api.Volumeannotations(); |
2374 buildCounterVolumeannotations++; | 2435 buildCounterVolumeannotations++; |
2375 if (buildCounterVolumeannotations < 3) { | 2436 if (buildCounterVolumeannotations < 3) { |
2376 o.items = buildUnnamed542(); | 2437 o.items = buildUnnamed332(); |
2377 o.kind = "foo"; | 2438 o.kind = "foo"; |
2378 o.nextPageToken = "foo"; | 2439 o.nextPageToken = "foo"; |
2379 o.totalItems = 42; | 2440 o.totalItems = 42; |
2380 o.version = "foo"; | 2441 o.version = "foo"; |
2381 } | 2442 } |
2382 buildCounterVolumeannotations--; | 2443 buildCounterVolumeannotations--; |
2383 return o; | 2444 return o; |
2384 } | 2445 } |
2385 | 2446 |
2386 checkVolumeannotations(api.Volumeannotations o) { | 2447 checkVolumeannotations(api.Volumeannotations o) { |
2387 buildCounterVolumeannotations++; | 2448 buildCounterVolumeannotations++; |
2388 if (buildCounterVolumeannotations < 3) { | 2449 if (buildCounterVolumeannotations < 3) { |
2389 checkUnnamed542(o.items); | 2450 checkUnnamed332(o.items); |
2390 unittest.expect(o.kind, unittest.equals('foo')); | 2451 unittest.expect(o.kind, unittest.equals('foo')); |
2391 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2452 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2392 unittest.expect(o.totalItems, unittest.equals(42)); | 2453 unittest.expect(o.totalItems, unittest.equals(42)); |
2393 unittest.expect(o.version, unittest.equals('foo')); | 2454 unittest.expect(o.version, unittest.equals('foo')); |
2394 } | 2455 } |
2395 buildCounterVolumeannotations--; | 2456 buildCounterVolumeannotations--; |
2396 } | 2457 } |
2397 | 2458 |
2398 buildUnnamed543() { | 2459 buildUnnamed333() { |
2399 var o = new core.List<api.Volume>(); | 2460 var o = new core.List<api.Volume>(); |
2400 o.add(buildVolume()); | 2461 o.add(buildVolume()); |
2401 o.add(buildVolume()); | 2462 o.add(buildVolume()); |
2402 return o; | 2463 return o; |
2403 } | 2464 } |
2404 | 2465 |
2405 checkUnnamed543(core.List<api.Volume> o) { | 2466 checkUnnamed333(core.List<api.Volume> o) { |
2406 unittest.expect(o, unittest.hasLength(2)); | 2467 unittest.expect(o, unittest.hasLength(2)); |
2407 checkVolume(o[0]); | 2468 checkVolume(o[0]); |
2408 checkVolume(o[1]); | 2469 checkVolume(o[1]); |
2409 } | 2470 } |
2410 | 2471 |
2411 core.int buildCounterVolumes = 0; | 2472 core.int buildCounterVolumes = 0; |
2412 buildVolumes() { | 2473 buildVolumes() { |
2413 var o = new api.Volumes(); | 2474 var o = new api.Volumes(); |
2414 buildCounterVolumes++; | 2475 buildCounterVolumes++; |
2415 if (buildCounterVolumes < 3) { | 2476 if (buildCounterVolumes < 3) { |
2416 o.items = buildUnnamed543(); | 2477 o.items = buildUnnamed333(); |
2417 o.kind = "foo"; | 2478 o.kind = "foo"; |
2418 o.totalItems = 42; | 2479 o.totalItems = 42; |
2419 } | 2480 } |
2420 buildCounterVolumes--; | 2481 buildCounterVolumes--; |
2421 return o; | 2482 return o; |
2422 } | 2483 } |
2423 | 2484 |
2424 checkVolumes(api.Volumes o) { | 2485 checkVolumes(api.Volumes o) { |
2425 buildCounterVolumes++; | 2486 buildCounterVolumes++; |
2426 if (buildCounterVolumes < 3) { | 2487 if (buildCounterVolumes < 3) { |
2427 checkUnnamed543(o.items); | 2488 checkUnnamed333(o.items); |
2428 unittest.expect(o.kind, unittest.equals('foo')); | 2489 unittest.expect(o.kind, unittest.equals('foo')); |
2429 unittest.expect(o.totalItems, unittest.equals(42)); | 2490 unittest.expect(o.totalItems, unittest.equals(42)); |
2430 } | 2491 } |
2431 buildCounterVolumes--; | 2492 buildCounterVolumes--; |
2432 } | 2493 } |
2433 | 2494 |
2434 buildUnnamed544() { | 2495 buildUnnamed334() { |
2435 var o = new core.List<core.String>(); | 2496 var o = new core.List<core.String>(); |
2436 o.add("foo"); | 2497 o.add("foo"); |
2437 o.add("foo"); | 2498 o.add("foo"); |
2438 return o; | 2499 return o; |
2439 } | 2500 } |
2440 | 2501 |
2441 checkUnnamed544(core.List<core.String> o) { | 2502 checkUnnamed334(core.List<core.String> o) { |
2442 unittest.expect(o, unittest.hasLength(2)); | 2503 unittest.expect(o, unittest.hasLength(2)); |
2443 unittest.expect(o[0], unittest.equals('foo')); | 2504 unittest.expect(o[0], unittest.equals('foo')); |
2444 unittest.expect(o[1], unittest.equals('foo')); | 2505 unittest.expect(o[1], unittest.equals('foo')); |
2445 } | 2506 } |
2446 | 2507 |
2447 buildUnnamed545() { | 2508 buildUnnamed335() { |
2448 var o = new core.List<core.String>(); | 2509 var o = new core.List<core.String>(); |
2449 o.add("foo"); | 2510 o.add("foo"); |
2450 o.add("foo"); | 2511 o.add("foo"); |
2451 return o; | 2512 return o; |
2452 } | 2513 } |
2453 | 2514 |
2454 checkUnnamed545(core.List<core.String> o) { | 2515 checkUnnamed335(core.List<core.String> o) { |
2455 unittest.expect(o, unittest.hasLength(2)); | 2516 unittest.expect(o, unittest.hasLength(2)); |
2456 unittest.expect(o[0], unittest.equals('foo')); | 2517 unittest.expect(o[0], unittest.equals('foo')); |
2457 unittest.expect(o[1], unittest.equals('foo')); | 2518 unittest.expect(o[1], unittest.equals('foo')); |
2458 } | 2519 } |
2459 | 2520 |
2460 buildUnnamed546() { | 2521 buildUnnamed336() { |
2461 var o = new core.List<core.String>(); | 2522 var o = new core.List<core.String>(); |
2462 o.add("foo"); | 2523 o.add("foo"); |
2463 o.add("foo"); | 2524 o.add("foo"); |
2464 return o; | 2525 return o; |
2465 } | 2526 } |
2466 | 2527 |
2467 checkUnnamed546(core.List<core.String> o) { | 2528 checkUnnamed336(core.List<core.String> o) { |
2468 unittest.expect(o, unittest.hasLength(2)); | 2529 unittest.expect(o, unittest.hasLength(2)); |
2469 unittest.expect(o[0], unittest.equals('foo')); | 2530 unittest.expect(o[0], unittest.equals('foo')); |
2470 unittest.expect(o[1], unittest.equals('foo')); | 2531 unittest.expect(o[1], unittest.equals('foo')); |
2471 } | 2532 } |
2472 | 2533 |
2473 buildUnnamed547() { | 2534 buildUnnamed337() { |
2474 var o = new core.List<core.String>(); | 2535 var o = new core.List<core.String>(); |
2475 o.add("foo"); | 2536 o.add("foo"); |
2476 o.add("foo"); | 2537 o.add("foo"); |
2477 return o; | 2538 return o; |
2478 } | 2539 } |
2479 | 2540 |
2480 checkUnnamed547(core.List<core.String> o) { | 2541 checkUnnamed337(core.List<core.String> o) { |
2481 unittest.expect(o, unittest.hasLength(2)); | 2542 unittest.expect(o, unittest.hasLength(2)); |
2482 unittest.expect(o[0], unittest.equals('foo')); | 2543 unittest.expect(o[0], unittest.equals('foo')); |
2483 unittest.expect(o[1], unittest.equals('foo')); | 2544 unittest.expect(o[1], unittest.equals('foo')); |
2484 } | 2545 } |
2485 | 2546 |
2486 buildUnnamed548() { | 2547 buildUnnamed338() { |
2487 var o = new core.List<core.String>(); | 2548 var o = new core.List<core.String>(); |
2488 o.add("foo"); | 2549 o.add("foo"); |
2489 o.add("foo"); | 2550 o.add("foo"); |
2490 return o; | 2551 return o; |
2491 } | 2552 } |
2492 | 2553 |
2493 checkUnnamed548(core.List<core.String> o) { | 2554 checkUnnamed338(core.List<core.String> o) { |
2494 unittest.expect(o, unittest.hasLength(2)); | 2555 unittest.expect(o, unittest.hasLength(2)); |
2495 unittest.expect(o[0], unittest.equals('foo')); | 2556 unittest.expect(o[0], unittest.equals('foo')); |
2496 unittest.expect(o[1], unittest.equals('foo')); | 2557 unittest.expect(o[1], unittest.equals('foo')); |
2497 } | 2558 } |
2498 | 2559 |
2499 buildUnnamed549() { | 2560 buildUnnamed339() { |
2500 var o = new core.List<core.String>(); | 2561 var o = new core.List<core.String>(); |
2501 o.add("foo"); | 2562 o.add("foo"); |
2502 o.add("foo"); | 2563 o.add("foo"); |
2503 return o; | 2564 return o; |
2504 } | 2565 } |
2505 | 2566 |
2506 checkUnnamed549(core.List<core.String> o) { | 2567 checkUnnamed339(core.List<core.String> o) { |
2507 unittest.expect(o, unittest.hasLength(2)); | 2568 unittest.expect(o, unittest.hasLength(2)); |
2508 unittest.expect(o[0], unittest.equals('foo')); | 2569 unittest.expect(o[0], unittest.equals('foo')); |
2509 unittest.expect(o[1], unittest.equals('foo')); | 2570 unittest.expect(o[1], unittest.equals('foo')); |
2510 } | 2571 } |
2511 | 2572 |
2512 buildUnnamed550() { | 2573 buildUnnamed340() { |
2513 var o = new core.List<core.String>(); | 2574 var o = new core.List<core.String>(); |
2514 o.add("foo"); | 2575 o.add("foo"); |
2515 o.add("foo"); | 2576 o.add("foo"); |
2516 return o; | 2577 return o; |
2517 } | 2578 } |
2518 | 2579 |
2519 checkUnnamed550(core.List<core.String> o) { | 2580 checkUnnamed340(core.List<core.String> o) { |
2520 unittest.expect(o, unittest.hasLength(2)); | 2581 unittest.expect(o, unittest.hasLength(2)); |
2521 unittest.expect(o[0], unittest.equals('foo')); | 2582 unittest.expect(o[0], unittest.equals('foo')); |
2522 unittest.expect(o[1], unittest.equals('foo')); | 2583 unittest.expect(o[1], unittest.equals('foo')); |
2523 } | 2584 } |
2524 | 2585 |
2525 buildUnnamed551() { | 2586 buildUnnamed341() { |
2526 var o = new core.List<core.String>(); | 2587 var o = new core.List<core.String>(); |
2527 o.add("foo"); | 2588 o.add("foo"); |
2528 o.add("foo"); | 2589 o.add("foo"); |
2529 return o; | 2590 return o; |
2530 } | 2591 } |
2531 | 2592 |
2532 checkUnnamed551(core.List<core.String> o) { | 2593 checkUnnamed341(core.List<core.String> o) { |
2533 unittest.expect(o, unittest.hasLength(2)); | 2594 unittest.expect(o, unittest.hasLength(2)); |
2534 unittest.expect(o[0], unittest.equals('foo')); | 2595 unittest.expect(o[0], unittest.equals('foo')); |
2535 unittest.expect(o[1], unittest.equals('foo')); | 2596 unittest.expect(o[1], unittest.equals('foo')); |
2536 } | 2597 } |
2537 | 2598 |
2538 buildUnnamed552() { | 2599 buildUnnamed342() { |
2539 var o = new core.List<core.String>(); | 2600 var o = new core.List<core.String>(); |
2540 o.add("foo"); | 2601 o.add("foo"); |
2541 o.add("foo"); | 2602 o.add("foo"); |
2542 return o; | 2603 return o; |
2543 } | 2604 } |
2544 | 2605 |
2545 checkUnnamed552(core.List<core.String> o) { | 2606 checkUnnamed342(core.List<core.String> o) { |
2546 unittest.expect(o, unittest.hasLength(2)); | 2607 unittest.expect(o, unittest.hasLength(2)); |
2547 unittest.expect(o[0], unittest.equals('foo')); | 2608 unittest.expect(o[0], unittest.equals('foo')); |
2548 unittest.expect(o[1], unittest.equals('foo')); | 2609 unittest.expect(o[1], unittest.equals('foo')); |
2549 } | 2610 } |
2550 | 2611 |
2551 buildUnnamed553() { | 2612 buildUnnamed343() { |
2552 var o = new core.List<core.String>(); | 2613 var o = new core.List<core.String>(); |
2553 o.add("foo"); | 2614 o.add("foo"); |
2554 o.add("foo"); | 2615 o.add("foo"); |
2555 return o; | 2616 return o; |
2556 } | 2617 } |
2557 | 2618 |
2558 checkUnnamed553(core.List<core.String> o) { | 2619 checkUnnamed343(core.List<core.String> o) { |
2559 unittest.expect(o, unittest.hasLength(2)); | 2620 unittest.expect(o, unittest.hasLength(2)); |
2560 unittest.expect(o[0], unittest.equals('foo')); | 2621 unittest.expect(o[0], unittest.equals('foo')); |
2561 unittest.expect(o[1], unittest.equals('foo')); | 2622 unittest.expect(o[1], unittest.equals('foo')); |
2562 } | 2623 } |
2563 | 2624 |
2564 buildUnnamed554() { | 2625 buildUnnamed344() { |
2565 var o = new core.List<core.String>(); | 2626 var o = new core.List<core.String>(); |
2566 o.add("foo"); | 2627 o.add("foo"); |
2567 o.add("foo"); | 2628 o.add("foo"); |
2568 return o; | 2629 return o; |
2569 } | 2630 } |
2570 | 2631 |
2571 checkUnnamed554(core.List<core.String> o) { | 2632 checkUnnamed344(core.List<core.String> o) { |
2572 unittest.expect(o, unittest.hasLength(2)); | 2633 unittest.expect(o, unittest.hasLength(2)); |
2573 unittest.expect(o[0], unittest.equals('foo')); | 2634 unittest.expect(o[0], unittest.equals('foo')); |
2574 unittest.expect(o[1], unittest.equals('foo')); | 2635 unittest.expect(o[1], unittest.equals('foo')); |
2575 } | 2636 } |
2576 | 2637 |
2577 | 2638 |
2578 main() { | 2639 main() { |
2579 unittest.group("obj-schema-AnnotationClientVersionRanges", () { | 2640 unittest.group("obj-schema-AnnotationClientVersionRanges", () { |
2580 unittest.test("to-json--from-json", () { | 2641 unittest.test("to-json--from-json", () { |
2581 var o = buildAnnotationClientVersionRanges(); | 2642 var o = buildAnnotationClientVersionRanges(); |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2965 | 3026 |
2966 unittest.group("obj-schema-Layersummary", () { | 3027 unittest.group("obj-schema-Layersummary", () { |
2967 unittest.test("to-json--from-json", () { | 3028 unittest.test("to-json--from-json", () { |
2968 var o = buildLayersummary(); | 3029 var o = buildLayersummary(); |
2969 var od = new api.Layersummary.fromJson(o.toJson()); | 3030 var od = new api.Layersummary.fromJson(o.toJson()); |
2970 checkLayersummary(od); | 3031 checkLayersummary(od); |
2971 }); | 3032 }); |
2972 }); | 3033 }); |
2973 | 3034 |
2974 | 3035 |
| 3036 unittest.group("obj-schema-MetadataItems", () { |
| 3037 unittest.test("to-json--from-json", () { |
| 3038 var o = buildMetadataItems(); |
| 3039 var od = new api.MetadataItems.fromJson(o.toJson()); |
| 3040 checkMetadataItems(od); |
| 3041 }); |
| 3042 }); |
| 3043 |
| 3044 |
| 3045 unittest.group("obj-schema-Metadata", () { |
| 3046 unittest.test("to-json--from-json", () { |
| 3047 var o = buildMetadata(); |
| 3048 var od = new api.Metadata.fromJson(o.toJson()); |
| 3049 checkMetadata(od); |
| 3050 }); |
| 3051 }); |
| 3052 |
| 3053 |
2975 unittest.group("obj-schema-OffersItemsItems", () { | 3054 unittest.group("obj-schema-OffersItemsItems", () { |
2976 unittest.test("to-json--from-json", () { | 3055 unittest.test("to-json--from-json", () { |
2977 var o = buildOffersItemsItems(); | 3056 var o = buildOffersItemsItems(); |
2978 var od = new api.OffersItemsItems.fromJson(o.toJson()); | 3057 var od = new api.OffersItemsItems.fromJson(o.toJson()); |
2979 checkOffersItemsItems(od); | 3058 checkOffersItemsItems(od); |
2980 }); | 3059 }); |
2981 }); | 3060 }); |
2982 | 3061 |
2983 | 3062 |
2984 unittest.group("obj-schema-OffersItems", () { | 3063 unittest.group("obj-schema-OffersItems", () { |
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3622 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 3701 return new async.Future.value(common_test.stringResponse(200, h, resp)); |
3623 }), true); | 3702 }), true); |
3624 res.updateBook(arg_request).then(unittest.expectAsync(((api.BooksCloudload
ingResource response) { | 3703 res.updateBook(arg_request).then(unittest.expectAsync(((api.BooksCloudload
ingResource response) { |
3625 checkBooksCloudloadingResource(response); | 3704 checkBooksCloudloadingResource(response); |
3626 }))); | 3705 }))); |
3627 }); | 3706 }); |
3628 | 3707 |
3629 }); | 3708 }); |
3630 | 3709 |
3631 | 3710 |
| 3711 unittest.group("resource-DictionaryResourceApi", () { |
| 3712 unittest.test("method--listOfflineMetadata", () { |
| 3713 |
| 3714 var mock = new common_test.HttpServerMock(); |
| 3715 api.DictionaryResourceApi res = new api.BooksApi(mock).dictionary; |
| 3716 var arg_cpksver = "foo"; |
| 3717 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3718 var path = (req.url).path; |
| 3719 var pathOffset = 0; |
| 3720 var index; |
| 3721 var subPart; |
| 3722 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3723 pathOffset += 1; |
| 3724 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 3725 pathOffset += 9; |
| 3726 unittest.expect(path.substring(pathOffset, pathOffset + 30), unittest.eq
uals("dictionary/listOfflineMetadata")); |
| 3727 pathOffset += 30; |
| 3728 |
| 3729 var query = (req.url).query; |
| 3730 var queryOffset = 0; |
| 3731 var queryMap = {}; |
| 3732 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 3733 parseBool(n) { |
| 3734 if (n == "true") return true; |
| 3735 if (n == "false") return false; |
| 3736 if (n == null) return null; |
| 3737 throw new core.ArgumentError("Invalid boolean: $n"); |
| 3738 } |
| 3739 if (query.length > 0) { |
| 3740 for (var part in query.split("&")) { |
| 3741 var keyvalue = part.split("="); |
| 3742 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 3743 } |
| 3744 } |
| 3745 unittest.expect(queryMap["cpksver"].first, unittest.equals(arg_cpksver))
; |
| 3746 |
| 3747 |
| 3748 var h = { |
| 3749 "content-type" : "application/json; charset=utf-8", |
| 3750 }; |
| 3751 var resp = convert.JSON.encode(buildMetadata()); |
| 3752 return new async.Future.value(common_test.stringResponse(200, h, resp)); |
| 3753 }), true); |
| 3754 res.listOfflineMetadata(arg_cpksver).then(unittest.expectAsync(((api.Metad
ata response) { |
| 3755 checkMetadata(response); |
| 3756 }))); |
| 3757 }); |
| 3758 |
| 3759 }); |
| 3760 |
| 3761 |
3632 unittest.group("resource-LayersResourceApi", () { | 3762 unittest.group("resource-LayersResourceApi", () { |
3633 unittest.test("method--get", () { | 3763 unittest.test("method--get", () { |
3634 | 3764 |
3635 var mock = new common_test.HttpServerMock(); | 3765 var mock = new common_test.HttpServerMock(); |
3636 api.LayersResourceApi res = new api.BooksApi(mock).layers; | 3766 api.LayersResourceApi res = new api.BooksApi(mock).layers; |
3637 var arg_volumeId = "foo"; | 3767 var arg_volumeId = "foo"; |
3638 var arg_summaryId = "foo"; | 3768 var arg_summaryId = "foo"; |
3639 var arg_contentVersion = "foo"; | 3769 var arg_contentVersion = "foo"; |
3640 var arg_source = "foo"; | 3770 var arg_source = "foo"; |
3641 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3771 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3835 }))); | 3965 }))); |
3836 }); | 3966 }); |
3837 | 3967 |
3838 unittest.test("method--list", () { | 3968 unittest.test("method--list", () { |
3839 | 3969 |
3840 var mock = new common_test.HttpServerMock(); | 3970 var mock = new common_test.HttpServerMock(); |
3841 api.LayersAnnotationDataResourceApi res = new api.BooksApi(mock).layers.an
notationData; | 3971 api.LayersAnnotationDataResourceApi res = new api.BooksApi(mock).layers.an
notationData; |
3842 var arg_volumeId = "foo"; | 3972 var arg_volumeId = "foo"; |
3843 var arg_layerId = "foo"; | 3973 var arg_layerId = "foo"; |
3844 var arg_contentVersion = "foo"; | 3974 var arg_contentVersion = "foo"; |
3845 var arg_annotationDataId = buildUnnamed544(); | 3975 var arg_annotationDataId = buildUnnamed334(); |
3846 var arg_h = 42; | 3976 var arg_h = 42; |
3847 var arg_locale = "foo"; | 3977 var arg_locale = "foo"; |
3848 var arg_maxResults = 42; | 3978 var arg_maxResults = 42; |
3849 var arg_pageToken = "foo"; | 3979 var arg_pageToken = "foo"; |
3850 var arg_scale = 42; | 3980 var arg_scale = 42; |
3851 var arg_source = "foo"; | 3981 var arg_source = "foo"; |
3852 var arg_updatedMax = "foo"; | 3982 var arg_updatedMax = "foo"; |
3853 var arg_updatedMin = "foo"; | 3983 var arg_updatedMin = "foo"; |
3854 var arg_w = 42; | 3984 var arg_w = 42; |
3855 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3985 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4075 }); | 4205 }); |
4076 | 4206 |
4077 }); | 4207 }); |
4078 | 4208 |
4079 | 4209 |
4080 unittest.group("resource-MyconfigResourceApi", () { | 4210 unittest.group("resource-MyconfigResourceApi", () { |
4081 unittest.test("method--releaseDownloadAccess", () { | 4211 unittest.test("method--releaseDownloadAccess", () { |
4082 | 4212 |
4083 var mock = new common_test.HttpServerMock(); | 4213 var mock = new common_test.HttpServerMock(); |
4084 api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig; | 4214 api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig; |
4085 var arg_volumeIds = buildUnnamed545(); | 4215 var arg_volumeIds = buildUnnamed335(); |
4086 var arg_cpksver = "foo"; | 4216 var arg_cpksver = "foo"; |
4087 var arg_locale = "foo"; | 4217 var arg_locale = "foo"; |
4088 var arg_source = "foo"; | 4218 var arg_source = "foo"; |
4089 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4219 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4090 var path = (req.url).path; | 4220 var path = (req.url).path; |
4091 var pathOffset = 0; | 4221 var pathOffset = 0; |
4092 var index; | 4222 var index; |
4093 var subPart; | 4223 var subPart; |
4094 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4224 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4095 pathOffset += 1; | 4225 pathOffset += 1; |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4188 }))); | 4318 }))); |
4189 }); | 4319 }); |
4190 | 4320 |
4191 unittest.test("method--syncVolumeLicenses", () { | 4321 unittest.test("method--syncVolumeLicenses", () { |
4192 | 4322 |
4193 var mock = new common_test.HttpServerMock(); | 4323 var mock = new common_test.HttpServerMock(); |
4194 api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig; | 4324 api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig; |
4195 var arg_source = "foo"; | 4325 var arg_source = "foo"; |
4196 var arg_nonce = "foo"; | 4326 var arg_nonce = "foo"; |
4197 var arg_cpksver = "foo"; | 4327 var arg_cpksver = "foo"; |
4198 var arg_features = buildUnnamed546(); | 4328 var arg_features = buildUnnamed336(); |
4199 var arg_locale = "foo"; | 4329 var arg_locale = "foo"; |
4200 var arg_showPreorders = true; | 4330 var arg_showPreorders = true; |
4201 var arg_volumeIds = buildUnnamed547(); | 4331 var arg_volumeIds = buildUnnamed337(); |
4202 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4332 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4203 var path = (req.url).path; | 4333 var path = (req.url).path; |
4204 var pathOffset = 0; | 4334 var pathOffset = 0; |
4205 var index; | 4335 var index; |
4206 var subPart; | 4336 var subPart; |
4207 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4337 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4208 pathOffset += 1; | 4338 pathOffset += 1; |
4209 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); | 4339 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
4210 pathOffset += 9; | 4340 pathOffset += 9; |
4211 unittest.expect(path.substring(pathOffset, pathOffset + 27), unittest.eq
uals("myconfig/syncVolumeLicenses")); | 4341 unittest.expect(path.substring(pathOffset, pathOffset + 27), unittest.eq
uals("myconfig/syncVolumeLicenses")); |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4349 res.get(arg_annotationId, source: arg_source).then(unittest.expectAsync(((
api.Annotation response) { | 4479 res.get(arg_annotationId, source: arg_source).then(unittest.expectAsync(((
api.Annotation response) { |
4350 checkAnnotation(response); | 4480 checkAnnotation(response); |
4351 }))); | 4481 }))); |
4352 }); | 4482 }); |
4353 | 4483 |
4354 unittest.test("method--insert", () { | 4484 unittest.test("method--insert", () { |
4355 | 4485 |
4356 var mock = new common_test.HttpServerMock(); | 4486 var mock = new common_test.HttpServerMock(); |
4357 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary
.annotations; | 4487 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary
.annotations; |
4358 var arg_request = buildAnnotation(); | 4488 var arg_request = buildAnnotation(); |
| 4489 var arg_country = "foo"; |
4359 var arg_showOnlySummaryInResponse = true; | 4490 var arg_showOnlySummaryInResponse = true; |
4360 var arg_source = "foo"; | 4491 var arg_source = "foo"; |
4361 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4492 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4362 var obj = new api.Annotation.fromJson(json); | 4493 var obj = new api.Annotation.fromJson(json); |
4363 checkAnnotation(obj); | 4494 checkAnnotation(obj); |
4364 | 4495 |
4365 var path = (req.url).path; | 4496 var path = (req.url).path; |
4366 var pathOffset = 0; | 4497 var pathOffset = 0; |
4367 var index; | 4498 var index; |
4368 var subPart; | 4499 var subPart; |
(...skipping 13 matching lines...) Expand all Loading... |
4382 if (n == "false") return false; | 4513 if (n == "false") return false; |
4383 if (n == null) return null; | 4514 if (n == null) return null; |
4384 throw new core.ArgumentError("Invalid boolean: $n"); | 4515 throw new core.ArgumentError("Invalid boolean: $n"); |
4385 } | 4516 } |
4386 if (query.length > 0) { | 4517 if (query.length > 0) { |
4387 for (var part in query.split("&")) { | 4518 for (var part in query.split("&")) { |
4388 var keyvalue = part.split("="); | 4519 var keyvalue = part.split("="); |
4389 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4520 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4390 } | 4521 } |
4391 } | 4522 } |
| 4523 unittest.expect(queryMap["country"].first, unittest.equals(arg_country))
; |
4392 unittest.expect(queryMap["showOnlySummaryInResponse"].first, unittest.eq
uals("$arg_showOnlySummaryInResponse")); | 4524 unittest.expect(queryMap["showOnlySummaryInResponse"].first, unittest.eq
uals("$arg_showOnlySummaryInResponse")); |
4393 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); | 4525 unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); |
4394 | 4526 |
4395 | 4527 |
4396 var h = { | 4528 var h = { |
4397 "content-type" : "application/json; charset=utf-8", | 4529 "content-type" : "application/json; charset=utf-8", |
4398 }; | 4530 }; |
4399 var resp = convert.JSON.encode(buildAnnotation()); | 4531 var resp = convert.JSON.encode(buildAnnotation()); |
4400 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4532 return new async.Future.value(common_test.stringResponse(200, h, resp)); |
4401 }), true); | 4533 }), true); |
4402 res.insert(arg_request, showOnlySummaryInResponse: arg_showOnlySummaryInRe
sponse, source: arg_source).then(unittest.expectAsync(((api.Annotation response)
{ | 4534 res.insert(arg_request, country: arg_country, showOnlySummaryInResponse: a
rg_showOnlySummaryInResponse, source: arg_source).then(unittest.expectAsync(((ap
i.Annotation response) { |
4403 checkAnnotation(response); | 4535 checkAnnotation(response); |
4404 }))); | 4536 }))); |
4405 }); | 4537 }); |
4406 | 4538 |
4407 unittest.test("method--list", () { | 4539 unittest.test("method--list", () { |
4408 | 4540 |
4409 var mock = new common_test.HttpServerMock(); | 4541 var mock = new common_test.HttpServerMock(); |
4410 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary
.annotations; | 4542 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary
.annotations; |
4411 var arg_contentVersion = "foo"; | 4543 var arg_contentVersion = "foo"; |
4412 var arg_layerId = "foo"; | 4544 var arg_layerId = "foo"; |
4413 var arg_layerIds = buildUnnamed548(); | 4545 var arg_layerIds = buildUnnamed338(); |
4414 var arg_maxResults = 42; | 4546 var arg_maxResults = 42; |
4415 var arg_pageIds = buildUnnamed549(); | 4547 var arg_pageIds = buildUnnamed339(); |
4416 var arg_pageToken = "foo"; | 4548 var arg_pageToken = "foo"; |
4417 var arg_showDeleted = true; | 4549 var arg_showDeleted = true; |
4418 var arg_source = "foo"; | 4550 var arg_source = "foo"; |
4419 var arg_updatedMax = "foo"; | 4551 var arg_updatedMax = "foo"; |
4420 var arg_updatedMin = "foo"; | 4552 var arg_updatedMin = "foo"; |
4421 var arg_volumeId = "foo"; | 4553 var arg_volumeId = "foo"; |
4422 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4554 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4423 var path = (req.url).path; | 4555 var path = (req.url).path; |
4424 var pathOffset = 0; | 4556 var pathOffset = 0; |
4425 var index; | 4557 var index; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4468 }), true); | 4600 }), true); |
4469 res.list(contentVersion: arg_contentVersion, layerId: arg_layerId, layerId
s: arg_layerIds, maxResults: arg_maxResults, pageIds: arg_pageIds, pageToken: ar
g_pageToken, showDeleted: arg_showDeleted, source: arg_source, updatedMax: arg_u
pdatedMax, updatedMin: arg_updatedMin, volumeId: arg_volumeId).then(unittest.exp
ectAsync(((api.Annotations response) { | 4601 res.list(contentVersion: arg_contentVersion, layerId: arg_layerId, layerId
s: arg_layerIds, maxResults: arg_maxResults, pageIds: arg_pageIds, pageToken: ar
g_pageToken, showDeleted: arg_showDeleted, source: arg_source, updatedMax: arg_u
pdatedMax, updatedMin: arg_updatedMin, volumeId: arg_volumeId).then(unittest.exp
ectAsync(((api.Annotations response) { |
4470 checkAnnotations(response); | 4602 checkAnnotations(response); |
4471 }))); | 4603 }))); |
4472 }); | 4604 }); |
4473 | 4605 |
4474 unittest.test("method--summary", () { | 4606 unittest.test("method--summary", () { |
4475 | 4607 |
4476 var mock = new common_test.HttpServerMock(); | 4608 var mock = new common_test.HttpServerMock(); |
4477 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary
.annotations; | 4609 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary
.annotations; |
4478 var arg_layerIds = buildUnnamed550(); | 4610 var arg_layerIds = buildUnnamed340(); |
4479 var arg_volumeId = "foo"; | 4611 var arg_volumeId = "foo"; |
4480 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4612 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4481 var path = (req.url).path; | 4613 var path = (req.url).path; |
4482 var pathOffset = 0; | 4614 var pathOffset = 0; |
4483 var index; | 4615 var index; |
4484 var subPart; | 4616 var subPart; |
4485 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4617 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4486 pathOffset += 1; | 4618 pathOffset += 1; |
4487 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); | 4619 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
4488 pathOffset += 9; | 4620 pathOffset += 9; |
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5461 }); | 5593 }); |
5462 | 5594 |
5463 }); | 5595 }); |
5464 | 5596 |
5465 | 5597 |
5466 unittest.group("resource-VolumesMybooksResourceApi", () { | 5598 unittest.group("resource-VolumesMybooksResourceApi", () { |
5467 unittest.test("method--list", () { | 5599 unittest.test("method--list", () { |
5468 | 5600 |
5469 var mock = new common_test.HttpServerMock(); | 5601 var mock = new common_test.HttpServerMock(); |
5470 api.VolumesMybooksResourceApi res = new api.BooksApi(mock).volumes.mybooks
; | 5602 api.VolumesMybooksResourceApi res = new api.BooksApi(mock).volumes.mybooks
; |
5471 var arg_acquireMethod = buildUnnamed551(); | 5603 var arg_acquireMethod = buildUnnamed341(); |
5472 var arg_locale = "foo"; | 5604 var arg_locale = "foo"; |
5473 var arg_maxResults = 42; | 5605 var arg_maxResults = 42; |
5474 var arg_processingState = buildUnnamed552(); | 5606 var arg_processingState = buildUnnamed342(); |
5475 var arg_source = "foo"; | 5607 var arg_source = "foo"; |
5476 var arg_startIndex = 42; | 5608 var arg_startIndex = 42; |
5477 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5609 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5478 var path = (req.url).path; | 5610 var path = (req.url).path; |
5479 var pathOffset = 0; | 5611 var pathOffset = 0; |
5480 var index; | 5612 var index; |
5481 var subPart; | 5613 var subPart; |
5482 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5614 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5483 pathOffset += 1; | 5615 pathOffset += 1; |
5484 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); | 5616 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5630 }); | 5762 }); |
5631 | 5763 |
5632 | 5764 |
5633 unittest.group("resource-VolumesUseruploadedResourceApi", () { | 5765 unittest.group("resource-VolumesUseruploadedResourceApi", () { |
5634 unittest.test("method--list", () { | 5766 unittest.test("method--list", () { |
5635 | 5767 |
5636 var mock = new common_test.HttpServerMock(); | 5768 var mock = new common_test.HttpServerMock(); |
5637 api.VolumesUseruploadedResourceApi res = new api.BooksApi(mock).volumes.us
eruploaded; | 5769 api.VolumesUseruploadedResourceApi res = new api.BooksApi(mock).volumes.us
eruploaded; |
5638 var arg_locale = "foo"; | 5770 var arg_locale = "foo"; |
5639 var arg_maxResults = 42; | 5771 var arg_maxResults = 42; |
5640 var arg_processingState = buildUnnamed553(); | 5772 var arg_processingState = buildUnnamed343(); |
5641 var arg_source = "foo"; | 5773 var arg_source = "foo"; |
5642 var arg_startIndex = 42; | 5774 var arg_startIndex = 42; |
5643 var arg_volumeId = buildUnnamed554(); | 5775 var arg_volumeId = buildUnnamed344(); |
5644 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5776 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5645 var path = (req.url).path; | 5777 var path = (req.url).path; |
5646 var pathOffset = 0; | 5778 var pathOffset = 0; |
5647 var index; | 5779 var index; |
5648 var subPart; | 5780 var subPart; |
5649 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5781 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5650 pathOffset += 1; | 5782 pathOffset += 1; |
5651 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); | 5783 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
5652 pathOffset += 9; | 5784 pathOffset += 9; |
5653 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("volumes/useruploaded")); | 5785 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("volumes/useruploaded")); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5686 res.list(locale: arg_locale, maxResults: arg_maxResults, processingState:
arg_processingState, source: arg_source, startIndex: arg_startIndex, volumeId: a
rg_volumeId).then(unittest.expectAsync(((api.Volumes response) { | 5818 res.list(locale: arg_locale, maxResults: arg_maxResults, processingState:
arg_processingState, source: arg_source, startIndex: arg_startIndex, volumeId: a
rg_volumeId).then(unittest.expectAsync(((api.Volumes response) { |
5687 checkVolumes(response); | 5819 checkVolumes(response); |
5688 }))); | 5820 }))); |
5689 }); | 5821 }); |
5690 | 5822 |
5691 }); | 5823 }); |
5692 | 5824 |
5693 | 5825 |
5694 } | 5826 } |
5695 | 5827 |
OLD | NEW |