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 buildUnnamed498() { | 96 buildUnnamed526() { |
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 checkUnnamed498(core.List<core.String> o) { | 103 checkUnnamed526(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 = buildUnnamed498(); | 126 o.pageIds = buildUnnamed526(); |
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 checkUnnamed498(o.pageIds); | 151 checkUnnamed526(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 buildUnnamed499() { | 195 buildUnnamed527() { |
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 checkUnnamed499(core.List<api.Annotation> o) { | 202 checkUnnamed527(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 = buildUnnamed499(); | 213 o.items = buildUnnamed527(); |
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 checkUnnamed499(o.items); | 225 checkUnnamed527(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 buildUnnamed500() { | 260 buildUnnamed528() { |
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 checkUnnamed500(core.List<api.AnnotationsSummaryLayers> o) { | 267 checkUnnamed528(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 = buildUnnamed500(); | 279 o.layers = buildUnnamed528(); |
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 checkUnnamed500(o.layers); | 289 checkUnnamed528(o.layers); |
290 } | 290 } |
291 buildCounterAnnotationsSummary--; | 291 buildCounterAnnotationsSummary--; |
292 } | 292 } |
293 | 293 |
294 buildUnnamed501() { | 294 buildUnnamed529() { |
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 checkUnnamed501(core.List<api.Annotationdata> o) { | 301 checkUnnamed529(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 = buildUnnamed501(); | 312 o.items = buildUnnamed529(); |
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 checkUnnamed501(o.items); | 324 checkUnnamed529(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 buildUnnamed502() { | 438 buildUnnamed530() { |
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 checkUnnamed502(core.List<api.Bookshelf> o) { | 445 checkUnnamed530(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 = buildUnnamed502(); | 456 o.items = buildUnnamed530(); |
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 checkUnnamed502(o.items); | 466 checkUnnamed530(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 buildUnnamed503() { | 593 buildUnnamed531() { |
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 checkUnnamed503(core.List<api.DictlayerdataDictWordsDerivatives> o) { | 600 checkUnnamed531(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 buildUnnamed504() { | 648 buildUnnamed532() { |
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 checkUnnamed504(core.List<api.DictlayerdataDictWordsExamples> o) { | 655 checkUnnamed532(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 buildUnnamed505() { | 682 buildUnnamed533() { |
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 checkUnnamed505(core.List<api.DictlayerdataDictWordsSensesConjugations> o) { | 689 checkUnnamed533(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 buildUnnamed506() { | 737 buildUnnamed534() { |
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 checkUnnamed506(core.List<api.DictlayerdataDictWordsSensesDefinitionsExamples> o
) { | 744 checkUnnamed534(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 = buildUnnamed506(); | 756 o.examples = buildUnnamed534(); |
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 checkUnnamed506(o.examples); | 766 checkUnnamed534(o.examples); |
767 } | 767 } |
768 buildCounterDictlayerdataDictWordsSensesDefinitions--; | 768 buildCounterDictlayerdataDictWordsSensesDefinitions--; |
769 } | 769 } |
770 | 770 |
771 buildUnnamed507() { | 771 buildUnnamed535() { |
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 checkUnnamed507(core.List<api.DictlayerdataDictWordsSensesDefinitions> o) { | 778 checkUnnamed535(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 buildUnnamed508() { | 847 buildUnnamed536() { |
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 checkUnnamed508(core.List<api.DictlayerdataDictWordsSensesSynonyms> o) { | 854 checkUnnamed536(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 = buildUnnamed505(); | 865 o.conjugations = buildUnnamed533(); |
866 o.definitions = buildUnnamed507(); | 866 o.definitions = buildUnnamed535(); |
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 = buildUnnamed508(); | 872 o.synonyms = buildUnnamed536(); |
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 checkUnnamed505(o.conjugations); | 881 checkUnnamed533(o.conjugations); |
882 checkUnnamed507(o.definitions); | 882 checkUnnamed535(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 checkUnnamed508(o.synonyms); | 888 checkUnnamed536(o.synonyms); |
889 } | 889 } |
890 buildCounterDictlayerdataDictWordsSenses--; | 890 buildCounterDictlayerdataDictWordsSenses--; |
891 } | 891 } |
892 | 892 |
893 buildUnnamed509() { | 893 buildUnnamed537() { |
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 checkUnnamed509(core.List<api.DictlayerdataDictWordsSenses> o) { | 900 checkUnnamed537(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 = buildUnnamed503(); | 932 o.derivatives = buildUnnamed531(); |
933 o.examples = buildUnnamed504(); | 933 o.examples = buildUnnamed532(); |
934 o.senses = buildUnnamed509(); | 934 o.senses = buildUnnamed537(); |
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 checkUnnamed503(o.derivatives); | 944 checkUnnamed531(o.derivatives); |
945 checkUnnamed504(o.examples); | 945 checkUnnamed532(o.examples); |
946 checkUnnamed509(o.senses); | 946 checkUnnamed537(o.senses); |
947 checkDictlayerdataDictWordsSource(o.source); | 947 checkDictlayerdataDictWordsSource(o.source); |
948 } | 948 } |
949 buildCounterDictlayerdataDictWords--; | 949 buildCounterDictlayerdataDictWords--; |
950 } | 950 } |
951 | 951 |
952 buildUnnamed510() { | 952 buildUnnamed538() { |
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 checkUnnamed510(core.List<api.DictlayerdataDictWords> o) { | 959 checkUnnamed538(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 = buildUnnamed510(); | 971 o.words = buildUnnamed538(); |
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 checkUnnamed510(o.words); | 981 checkUnnamed538(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 buildUnnamed511() { | 1050 buildUnnamed539() { |
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 checkUnnamed511(core.List<api.DownloadAccessRestriction> o) { | 1057 checkUnnamed539(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 = buildUnnamed511(); | 1068 o.downloadAccessList = buildUnnamed539(); |
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 checkUnnamed511(o.downloadAccessList); | 1078 checkUnnamed539(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 buildUnnamed512() { | 1132 buildUnnamed540() { |
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 checkUnnamed512(core.List<api.GeolayerdataGeoBoundary> o) { | 1139 checkUnnamed540(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 buildUnnamed513() { | 1145 buildUnnamed541() { |
1146 var o = new core.List<core.List<api.GeolayerdataGeoBoundary>>(); | 1146 var o = new core.List<core.List<api.GeolayerdataGeoBoundary>>(); |
1147 o.add(buildUnnamed512()); | 1147 o.add(buildUnnamed540()); |
1148 o.add(buildUnnamed512()); | 1148 o.add(buildUnnamed540()); |
1149 return o; | 1149 return o; |
1150 } | 1150 } |
1151 | 1151 |
1152 checkUnnamed513(core.List<core.List<api.GeolayerdataGeoBoundary>> o) { | 1152 checkUnnamed541(core.List<core.List<api.GeolayerdataGeoBoundary>> o) { |
1153 unittest.expect(o, unittest.hasLength(2)); | 1153 unittest.expect(o, unittest.hasLength(2)); |
1154 checkUnnamed512(o[0]); | 1154 checkUnnamed540(o[0]); |
1155 checkUnnamed512(o[1]); | 1155 checkUnnamed540(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 = buildUnnamed513(); | 1226 o.boundary = buildUnnamed541(); |
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 checkUnnamed513(o.boundary); | 1242 checkUnnamed541(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 buildUnnamed514() { | 1277 buildUnnamed542() { |
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 checkUnnamed514(core.List<api.Layersummary> o) { | 1284 checkUnnamed542(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 = buildUnnamed514(); | 1295 o.items = buildUnnamed542(); |
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 checkUnnamed514(o.items); | 1306 checkUnnamed542(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 buildUnnamed515() { | 1313 buildUnnamed543() { |
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 checkUnnamed515(core.List<core.String> o) { | 1320 checkUnnamed543(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 = buildUnnamed515(); | 1332 o.annotationTypes = buildUnnamed543(); |
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 checkUnnamed515(o.annotationTypes); | 1353 checkUnnamed543(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')); |
(...skipping 24 matching lines...) Expand all Loading... |
1388 unittest.expect(o.author, unittest.equals('foo')); | 1388 unittest.expect(o.author, unittest.equals('foo')); |
1389 unittest.expect(o.canonicalVolumeLink, unittest.equals('foo')); | 1389 unittest.expect(o.canonicalVolumeLink, unittest.equals('foo')); |
1390 unittest.expect(o.coverUrl, unittest.equals('foo')); | 1390 unittest.expect(o.coverUrl, unittest.equals('foo')); |
1391 unittest.expect(o.description, unittest.equals('foo')); | 1391 unittest.expect(o.description, unittest.equals('foo')); |
1392 unittest.expect(o.title, unittest.equals('foo')); | 1392 unittest.expect(o.title, unittest.equals('foo')); |
1393 unittest.expect(o.volumeId, unittest.equals('foo')); | 1393 unittest.expect(o.volumeId, unittest.equals('foo')); |
1394 } | 1394 } |
1395 buildCounterOffersItemsItems--; | 1395 buildCounterOffersItemsItems--; |
1396 } | 1396 } |
1397 | 1397 |
1398 buildUnnamed516() { | 1398 buildUnnamed544() { |
1399 var o = new core.List<api.OffersItemsItems>(); | 1399 var o = new core.List<api.OffersItemsItems>(); |
1400 o.add(buildOffersItemsItems()); | 1400 o.add(buildOffersItemsItems()); |
1401 o.add(buildOffersItemsItems()); | 1401 o.add(buildOffersItemsItems()); |
1402 return o; | 1402 return o; |
1403 } | 1403 } |
1404 | 1404 |
1405 checkUnnamed516(core.List<api.OffersItemsItems> o) { | 1405 checkUnnamed544(core.List<api.OffersItemsItems> o) { |
1406 unittest.expect(o, unittest.hasLength(2)); | 1406 unittest.expect(o, unittest.hasLength(2)); |
1407 checkOffersItemsItems(o[0]); | 1407 checkOffersItemsItems(o[0]); |
1408 checkOffersItemsItems(o[1]); | 1408 checkOffersItemsItems(o[1]); |
1409 } | 1409 } |
1410 | 1410 |
1411 core.int buildCounterOffersItems = 0; | 1411 core.int buildCounterOffersItems = 0; |
1412 buildOffersItems() { | 1412 buildOffersItems() { |
1413 var o = new api.OffersItems(); | 1413 var o = new api.OffersItems(); |
1414 buildCounterOffersItems++; | 1414 buildCounterOffersItems++; |
1415 if (buildCounterOffersItems < 3) { | 1415 if (buildCounterOffersItems < 3) { |
1416 o.artUrl = "foo"; | 1416 o.artUrl = "foo"; |
1417 o.id = "foo"; | 1417 o.id = "foo"; |
1418 o.items = buildUnnamed516(); | 1418 o.items = buildUnnamed544(); |
1419 } | 1419 } |
1420 buildCounterOffersItems--; | 1420 buildCounterOffersItems--; |
1421 return o; | 1421 return o; |
1422 } | 1422 } |
1423 | 1423 |
1424 checkOffersItems(api.OffersItems o) { | 1424 checkOffersItems(api.OffersItems o) { |
1425 buildCounterOffersItems++; | 1425 buildCounterOffersItems++; |
1426 if (buildCounterOffersItems < 3) { | 1426 if (buildCounterOffersItems < 3) { |
1427 unittest.expect(o.artUrl, unittest.equals('foo')); | 1427 unittest.expect(o.artUrl, unittest.equals('foo')); |
1428 unittest.expect(o.id, unittest.equals('foo')); | 1428 unittest.expect(o.id, unittest.equals('foo')); |
1429 checkUnnamed516(o.items); | 1429 checkUnnamed544(o.items); |
1430 } | 1430 } |
1431 buildCounterOffersItems--; | 1431 buildCounterOffersItems--; |
1432 } | 1432 } |
1433 | 1433 |
1434 buildUnnamed517() { | 1434 buildUnnamed545() { |
1435 var o = new core.List<api.OffersItems>(); | 1435 var o = new core.List<api.OffersItems>(); |
1436 o.add(buildOffersItems()); | 1436 o.add(buildOffersItems()); |
1437 o.add(buildOffersItems()); | 1437 o.add(buildOffersItems()); |
1438 return o; | 1438 return o; |
1439 } | 1439 } |
1440 | 1440 |
1441 checkUnnamed517(core.List<api.OffersItems> o) { | 1441 checkUnnamed545(core.List<api.OffersItems> o) { |
1442 unittest.expect(o, unittest.hasLength(2)); | 1442 unittest.expect(o, unittest.hasLength(2)); |
1443 checkOffersItems(o[0]); | 1443 checkOffersItems(o[0]); |
1444 checkOffersItems(o[1]); | 1444 checkOffersItems(o[1]); |
1445 } | 1445 } |
1446 | 1446 |
1447 core.int buildCounterOffers = 0; | 1447 core.int buildCounterOffers = 0; |
1448 buildOffers() { | 1448 buildOffers() { |
1449 var o = new api.Offers(); | 1449 var o = new api.Offers(); |
1450 buildCounterOffers++; | 1450 buildCounterOffers++; |
1451 if (buildCounterOffers < 3) { | 1451 if (buildCounterOffers < 3) { |
1452 o.items = buildUnnamed517(); | 1452 o.items = buildUnnamed545(); |
1453 o.kind = "foo"; | 1453 o.kind = "foo"; |
1454 } | 1454 } |
1455 buildCounterOffers--; | 1455 buildCounterOffers--; |
1456 return o; | 1456 return o; |
1457 } | 1457 } |
1458 | 1458 |
1459 checkOffers(api.Offers o) { | 1459 checkOffers(api.Offers o) { |
1460 buildCounterOffers++; | 1460 buildCounterOffers++; |
1461 if (buildCounterOffers < 3) { | 1461 if (buildCounterOffers < 3) { |
1462 checkUnnamed517(o.items); | 1462 checkUnnamed545(o.items); |
1463 unittest.expect(o.kind, unittest.equals('foo')); | 1463 unittest.expect(o.kind, unittest.equals('foo')); |
1464 } | 1464 } |
1465 buildCounterOffers--; | 1465 buildCounterOffers--; |
1466 } | 1466 } |
1467 | 1467 |
1468 core.int buildCounterReadingPosition = 0; | 1468 core.int buildCounterReadingPosition = 0; |
1469 buildReadingPosition() { | 1469 buildReadingPosition() { |
1470 var o = new api.ReadingPosition(); | 1470 var o = new api.ReadingPosition(); |
1471 buildCounterReadingPosition++; | 1471 buildCounterReadingPosition++; |
1472 if (buildCounterReadingPosition < 3) { | 1472 if (buildCounterReadingPosition < 3) { |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1703 | 1703 |
1704 checkVolumeLayerInfoLayers(api.VolumeLayerInfoLayers o) { | 1704 checkVolumeLayerInfoLayers(api.VolumeLayerInfoLayers o) { |
1705 buildCounterVolumeLayerInfoLayers++; | 1705 buildCounterVolumeLayerInfoLayers++; |
1706 if (buildCounterVolumeLayerInfoLayers < 3) { | 1706 if (buildCounterVolumeLayerInfoLayers < 3) { |
1707 unittest.expect(o.layerId, unittest.equals('foo')); | 1707 unittest.expect(o.layerId, unittest.equals('foo')); |
1708 unittest.expect(o.volumeAnnotationsVersion, unittest.equals('foo')); | 1708 unittest.expect(o.volumeAnnotationsVersion, unittest.equals('foo')); |
1709 } | 1709 } |
1710 buildCounterVolumeLayerInfoLayers--; | 1710 buildCounterVolumeLayerInfoLayers--; |
1711 } | 1711 } |
1712 | 1712 |
1713 buildUnnamed518() { | 1713 buildUnnamed546() { |
1714 var o = new core.List<api.VolumeLayerInfoLayers>(); | 1714 var o = new core.List<api.VolumeLayerInfoLayers>(); |
1715 o.add(buildVolumeLayerInfoLayers()); | 1715 o.add(buildVolumeLayerInfoLayers()); |
1716 o.add(buildVolumeLayerInfoLayers()); | 1716 o.add(buildVolumeLayerInfoLayers()); |
1717 return o; | 1717 return o; |
1718 } | 1718 } |
1719 | 1719 |
1720 checkUnnamed518(core.List<api.VolumeLayerInfoLayers> o) { | 1720 checkUnnamed546(core.List<api.VolumeLayerInfoLayers> o) { |
1721 unittest.expect(o, unittest.hasLength(2)); | 1721 unittest.expect(o, unittest.hasLength(2)); |
1722 checkVolumeLayerInfoLayers(o[0]); | 1722 checkVolumeLayerInfoLayers(o[0]); |
1723 checkVolumeLayerInfoLayers(o[1]); | 1723 checkVolumeLayerInfoLayers(o[1]); |
1724 } | 1724 } |
1725 | 1725 |
1726 core.int buildCounterVolumeLayerInfo = 0; | 1726 core.int buildCounterVolumeLayerInfo = 0; |
1727 buildVolumeLayerInfo() { | 1727 buildVolumeLayerInfo() { |
1728 var o = new api.VolumeLayerInfo(); | 1728 var o = new api.VolumeLayerInfo(); |
1729 buildCounterVolumeLayerInfo++; | 1729 buildCounterVolumeLayerInfo++; |
1730 if (buildCounterVolumeLayerInfo < 3) { | 1730 if (buildCounterVolumeLayerInfo < 3) { |
1731 o.layers = buildUnnamed518(); | 1731 o.layers = buildUnnamed546(); |
1732 } | 1732 } |
1733 buildCounterVolumeLayerInfo--; | 1733 buildCounterVolumeLayerInfo--; |
1734 return o; | 1734 return o; |
1735 } | 1735 } |
1736 | 1736 |
1737 checkVolumeLayerInfo(api.VolumeLayerInfo o) { | 1737 checkVolumeLayerInfo(api.VolumeLayerInfo o) { |
1738 buildCounterVolumeLayerInfo++; | 1738 buildCounterVolumeLayerInfo++; |
1739 if (buildCounterVolumeLayerInfo < 3) { | 1739 if (buildCounterVolumeLayerInfo < 3) { |
1740 checkUnnamed518(o.layers); | 1740 checkUnnamed546(o.layers); |
1741 } | 1741 } |
1742 buildCounterVolumeLayerInfo--; | 1742 buildCounterVolumeLayerInfo--; |
1743 } | 1743 } |
1744 | 1744 |
1745 core.int buildCounterVolumeRecommendedInfo = 0; | 1745 core.int buildCounterVolumeRecommendedInfo = 0; |
1746 buildVolumeRecommendedInfo() { | 1746 buildVolumeRecommendedInfo() { |
1747 var o = new api.VolumeRecommendedInfo(); | 1747 var o = new api.VolumeRecommendedInfo(); |
1748 buildCounterVolumeRecommendedInfo++; | 1748 buildCounterVolumeRecommendedInfo++; |
1749 if (buildCounterVolumeRecommendedInfo < 3) { | 1749 if (buildCounterVolumeRecommendedInfo < 3) { |
1750 o.explanation = "foo"; | 1750 o.explanation = "foo"; |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1863 buildCounterVolumeSaleInfoOffers++; | 1863 buildCounterVolumeSaleInfoOffers++; |
1864 if (buildCounterVolumeSaleInfoOffers < 3) { | 1864 if (buildCounterVolumeSaleInfoOffers < 3) { |
1865 unittest.expect(o.finskyOfferType, unittest.equals(42)); | 1865 unittest.expect(o.finskyOfferType, unittest.equals(42)); |
1866 checkVolumeSaleInfoOffersListPrice(o.listPrice); | 1866 checkVolumeSaleInfoOffersListPrice(o.listPrice); |
1867 checkVolumeSaleInfoOffersRentalDuration(o.rentalDuration); | 1867 checkVolumeSaleInfoOffersRentalDuration(o.rentalDuration); |
1868 checkVolumeSaleInfoOffersRetailPrice(o.retailPrice); | 1868 checkVolumeSaleInfoOffersRetailPrice(o.retailPrice); |
1869 } | 1869 } |
1870 buildCounterVolumeSaleInfoOffers--; | 1870 buildCounterVolumeSaleInfoOffers--; |
1871 } | 1871 } |
1872 | 1872 |
1873 buildUnnamed519() { | 1873 buildUnnamed547() { |
1874 var o = new core.List<api.VolumeSaleInfoOffers>(); | 1874 var o = new core.List<api.VolumeSaleInfoOffers>(); |
1875 o.add(buildVolumeSaleInfoOffers()); | 1875 o.add(buildVolumeSaleInfoOffers()); |
1876 o.add(buildVolumeSaleInfoOffers()); | 1876 o.add(buildVolumeSaleInfoOffers()); |
1877 return o; | 1877 return o; |
1878 } | 1878 } |
1879 | 1879 |
1880 checkUnnamed519(core.List<api.VolumeSaleInfoOffers> o) { | 1880 checkUnnamed547(core.List<api.VolumeSaleInfoOffers> o) { |
1881 unittest.expect(o, unittest.hasLength(2)); | 1881 unittest.expect(o, unittest.hasLength(2)); |
1882 checkVolumeSaleInfoOffers(o[0]); | 1882 checkVolumeSaleInfoOffers(o[0]); |
1883 checkVolumeSaleInfoOffers(o[1]); | 1883 checkVolumeSaleInfoOffers(o[1]); |
1884 } | 1884 } |
1885 | 1885 |
1886 core.int buildCounterVolumeSaleInfoRetailPrice = 0; | 1886 core.int buildCounterVolumeSaleInfoRetailPrice = 0; |
1887 buildVolumeSaleInfoRetailPrice() { | 1887 buildVolumeSaleInfoRetailPrice() { |
1888 var o = new api.VolumeSaleInfoRetailPrice(); | 1888 var o = new api.VolumeSaleInfoRetailPrice(); |
1889 buildCounterVolumeSaleInfoRetailPrice++; | 1889 buildCounterVolumeSaleInfoRetailPrice++; |
1890 if (buildCounterVolumeSaleInfoRetailPrice < 3) { | 1890 if (buildCounterVolumeSaleInfoRetailPrice < 3) { |
(...skipping 15 matching lines...) Expand all Loading... |
1906 | 1906 |
1907 core.int buildCounterVolumeSaleInfo = 0; | 1907 core.int buildCounterVolumeSaleInfo = 0; |
1908 buildVolumeSaleInfo() { | 1908 buildVolumeSaleInfo() { |
1909 var o = new api.VolumeSaleInfo(); | 1909 var o = new api.VolumeSaleInfo(); |
1910 buildCounterVolumeSaleInfo++; | 1910 buildCounterVolumeSaleInfo++; |
1911 if (buildCounterVolumeSaleInfo < 3) { | 1911 if (buildCounterVolumeSaleInfo < 3) { |
1912 o.buyLink = "foo"; | 1912 o.buyLink = "foo"; |
1913 o.country = "foo"; | 1913 o.country = "foo"; |
1914 o.isEbook = true; | 1914 o.isEbook = true; |
1915 o.listPrice = buildVolumeSaleInfoListPrice(); | 1915 o.listPrice = buildVolumeSaleInfoListPrice(); |
1916 o.offers = buildUnnamed519(); | 1916 o.offers = buildUnnamed547(); |
1917 o.onSaleDate = core.DateTime.parse("2002-02-27T14:01:02"); | 1917 o.onSaleDate = core.DateTime.parse("2002-02-27T14:01:02"); |
1918 o.retailPrice = buildVolumeSaleInfoRetailPrice(); | 1918 o.retailPrice = buildVolumeSaleInfoRetailPrice(); |
1919 o.saleability = "foo"; | 1919 o.saleability = "foo"; |
1920 } | 1920 } |
1921 buildCounterVolumeSaleInfo--; | 1921 buildCounterVolumeSaleInfo--; |
1922 return o; | 1922 return o; |
1923 } | 1923 } |
1924 | 1924 |
1925 checkVolumeSaleInfo(api.VolumeSaleInfo o) { | 1925 checkVolumeSaleInfo(api.VolumeSaleInfo o) { |
1926 buildCounterVolumeSaleInfo++; | 1926 buildCounterVolumeSaleInfo++; |
1927 if (buildCounterVolumeSaleInfo < 3) { | 1927 if (buildCounterVolumeSaleInfo < 3) { |
1928 unittest.expect(o.buyLink, unittest.equals('foo')); | 1928 unittest.expect(o.buyLink, unittest.equals('foo')); |
1929 unittest.expect(o.country, unittest.equals('foo')); | 1929 unittest.expect(o.country, unittest.equals('foo')); |
1930 unittest.expect(o.isEbook, unittest.isTrue); | 1930 unittest.expect(o.isEbook, unittest.isTrue); |
1931 checkVolumeSaleInfoListPrice(o.listPrice); | 1931 checkVolumeSaleInfoListPrice(o.listPrice); |
1932 checkUnnamed519(o.offers); | 1932 checkUnnamed547(o.offers); |
1933 unittest.expect(o.onSaleDate, unittest.equals(core.DateTime.parse("2002-02-2
7T14:01:02"))); | 1933 unittest.expect(o.onSaleDate, unittest.equals(core.DateTime.parse("2002-02-2
7T14:01:02"))); |
1934 checkVolumeSaleInfoRetailPrice(o.retailPrice); | 1934 checkVolumeSaleInfoRetailPrice(o.retailPrice); |
1935 unittest.expect(o.saleability, unittest.equals('foo')); | 1935 unittest.expect(o.saleability, unittest.equals('foo')); |
1936 } | 1936 } |
1937 buildCounterVolumeSaleInfo--; | 1937 buildCounterVolumeSaleInfo--; |
1938 } | 1938 } |
1939 | 1939 |
1940 core.int buildCounterVolumeSearchInfo = 0; | 1940 core.int buildCounterVolumeSearchInfo = 0; |
1941 buildVolumeSearchInfo() { | 1941 buildVolumeSearchInfo() { |
1942 var o = new api.VolumeSearchInfo(); | 1942 var o = new api.VolumeSearchInfo(); |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2053 checkReadingPosition(o.readingPosition); | 2053 checkReadingPosition(o.readingPosition); |
2054 checkVolumeUserInfoRentalPeriod(o.rentalPeriod); | 2054 checkVolumeUserInfoRentalPeriod(o.rentalPeriod); |
2055 unittest.expect(o.rentalState, unittest.equals('foo')); | 2055 unittest.expect(o.rentalState, unittest.equals('foo')); |
2056 checkReview(o.review); | 2056 checkReview(o.review); |
2057 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 2057 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
2058 checkVolumeUserInfoUserUploadedVolumeInfo(o.userUploadedVolumeInfo); | 2058 checkVolumeUserInfoUserUploadedVolumeInfo(o.userUploadedVolumeInfo); |
2059 } | 2059 } |
2060 buildCounterVolumeUserInfo--; | 2060 buildCounterVolumeUserInfo--; |
2061 } | 2061 } |
2062 | 2062 |
2063 buildUnnamed520() { | 2063 buildUnnamed548() { |
2064 var o = new core.List<core.String>(); | 2064 var o = new core.List<core.String>(); |
2065 o.add("foo"); | 2065 o.add("foo"); |
2066 o.add("foo"); | 2066 o.add("foo"); |
2067 return o; | 2067 return o; |
2068 } | 2068 } |
2069 | 2069 |
2070 checkUnnamed520(core.List<core.String> o) { | 2070 checkUnnamed548(core.List<core.String> o) { |
2071 unittest.expect(o, unittest.hasLength(2)); | 2071 unittest.expect(o, unittest.hasLength(2)); |
2072 unittest.expect(o[0], unittest.equals('foo')); | 2072 unittest.expect(o[0], unittest.equals('foo')); |
2073 unittest.expect(o[1], unittest.equals('foo')); | 2073 unittest.expect(o[1], unittest.equals('foo')); |
2074 } | 2074 } |
2075 | 2075 |
2076 buildUnnamed521() { | 2076 buildUnnamed549() { |
2077 var o = new core.List<core.String>(); | 2077 var o = new core.List<core.String>(); |
2078 o.add("foo"); | 2078 o.add("foo"); |
2079 o.add("foo"); | 2079 o.add("foo"); |
2080 return o; | 2080 return o; |
2081 } | 2081 } |
2082 | 2082 |
2083 checkUnnamed521(core.List<core.String> o) { | 2083 checkUnnamed549(core.List<core.String> o) { |
2084 unittest.expect(o, unittest.hasLength(2)); | 2084 unittest.expect(o, unittest.hasLength(2)); |
2085 unittest.expect(o[0], unittest.equals('foo')); | 2085 unittest.expect(o[0], unittest.equals('foo')); |
2086 unittest.expect(o[1], unittest.equals('foo')); | 2086 unittest.expect(o[1], unittest.equals('foo')); |
2087 } | 2087 } |
2088 | 2088 |
2089 core.int buildCounterVolumeVolumeInfoDimensions = 0; | 2089 core.int buildCounterVolumeVolumeInfoDimensions = 0; |
2090 buildVolumeVolumeInfoDimensions() { | 2090 buildVolumeVolumeInfoDimensions() { |
2091 var o = new api.VolumeVolumeInfoDimensions(); | 2091 var o = new api.VolumeVolumeInfoDimensions(); |
2092 buildCounterVolumeVolumeInfoDimensions++; | 2092 buildCounterVolumeVolumeInfoDimensions++; |
2093 if (buildCounterVolumeVolumeInfoDimensions < 3) { | 2093 if (buildCounterVolumeVolumeInfoDimensions < 3) { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2152 | 2152 |
2153 checkVolumeVolumeInfoIndustryIdentifiers(api.VolumeVolumeInfoIndustryIdentifiers
o) { | 2153 checkVolumeVolumeInfoIndustryIdentifiers(api.VolumeVolumeInfoIndustryIdentifiers
o) { |
2154 buildCounterVolumeVolumeInfoIndustryIdentifiers++; | 2154 buildCounterVolumeVolumeInfoIndustryIdentifiers++; |
2155 if (buildCounterVolumeVolumeInfoIndustryIdentifiers < 3) { | 2155 if (buildCounterVolumeVolumeInfoIndustryIdentifiers < 3) { |
2156 unittest.expect(o.identifier, unittest.equals('foo')); | 2156 unittest.expect(o.identifier, unittest.equals('foo')); |
2157 unittest.expect(o.type, unittest.equals('foo')); | 2157 unittest.expect(o.type, unittest.equals('foo')); |
2158 } | 2158 } |
2159 buildCounterVolumeVolumeInfoIndustryIdentifiers--; | 2159 buildCounterVolumeVolumeInfoIndustryIdentifiers--; |
2160 } | 2160 } |
2161 | 2161 |
2162 buildUnnamed522() { | 2162 buildUnnamed550() { |
2163 var o = new core.List<api.VolumeVolumeInfoIndustryIdentifiers>(); | 2163 var o = new core.List<api.VolumeVolumeInfoIndustryIdentifiers>(); |
2164 o.add(buildVolumeVolumeInfoIndustryIdentifiers()); | 2164 o.add(buildVolumeVolumeInfoIndustryIdentifiers()); |
2165 o.add(buildVolumeVolumeInfoIndustryIdentifiers()); | 2165 o.add(buildVolumeVolumeInfoIndustryIdentifiers()); |
2166 return o; | 2166 return o; |
2167 } | 2167 } |
2168 | 2168 |
2169 checkUnnamed522(core.List<api.VolumeVolumeInfoIndustryIdentifiers> o) { | 2169 checkUnnamed550(core.List<api.VolumeVolumeInfoIndustryIdentifiers> o) { |
2170 unittest.expect(o, unittest.hasLength(2)); | 2170 unittest.expect(o, unittest.hasLength(2)); |
2171 checkVolumeVolumeInfoIndustryIdentifiers(o[0]); | 2171 checkVolumeVolumeInfoIndustryIdentifiers(o[0]); |
2172 checkVolumeVolumeInfoIndustryIdentifiers(o[1]); | 2172 checkVolumeVolumeInfoIndustryIdentifiers(o[1]); |
2173 } | 2173 } |
2174 | 2174 |
2175 core.int buildCounterVolumeVolumeInfo = 0; | 2175 core.int buildCounterVolumeVolumeInfo = 0; |
2176 buildVolumeVolumeInfo() { | 2176 buildVolumeVolumeInfo() { |
2177 var o = new api.VolumeVolumeInfo(); | 2177 var o = new api.VolumeVolumeInfo(); |
2178 buildCounterVolumeVolumeInfo++; | 2178 buildCounterVolumeVolumeInfo++; |
2179 if (buildCounterVolumeVolumeInfo < 3) { | 2179 if (buildCounterVolumeVolumeInfo < 3) { |
2180 o.authors = buildUnnamed520(); | 2180 o.authors = buildUnnamed548(); |
2181 o.averageRating = 42.0; | 2181 o.averageRating = 42.0; |
2182 o.canonicalVolumeLink = "foo"; | 2182 o.canonicalVolumeLink = "foo"; |
2183 o.categories = buildUnnamed521(); | 2183 o.categories = buildUnnamed549(); |
2184 o.contentVersion = "foo"; | 2184 o.contentVersion = "foo"; |
2185 o.description = "foo"; | 2185 o.description = "foo"; |
2186 o.dimensions = buildVolumeVolumeInfoDimensions(); | 2186 o.dimensions = buildVolumeVolumeInfoDimensions(); |
2187 o.imageLinks = buildVolumeVolumeInfoImageLinks(); | 2187 o.imageLinks = buildVolumeVolumeInfoImageLinks(); |
2188 o.industryIdentifiers = buildUnnamed522(); | 2188 o.industryIdentifiers = buildUnnamed550(); |
2189 o.infoLink = "foo"; | 2189 o.infoLink = "foo"; |
2190 o.language = "foo"; | 2190 o.language = "foo"; |
2191 o.mainCategory = "foo"; | 2191 o.mainCategory = "foo"; |
2192 o.pageCount = 42; | 2192 o.pageCount = 42; |
2193 o.previewLink = "foo"; | 2193 o.previewLink = "foo"; |
2194 o.printType = "foo"; | 2194 o.printType = "foo"; |
2195 o.printedPageCount = 42; | 2195 o.printedPageCount = 42; |
2196 o.publishedDate = "foo"; | 2196 o.publishedDate = "foo"; |
2197 o.publisher = "foo"; | 2197 o.publisher = "foo"; |
2198 o.ratingsCount = 42; | 2198 o.ratingsCount = 42; |
2199 o.readingModes = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2199 o.readingModes = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2200 o.subtitle = "foo"; | 2200 o.subtitle = "foo"; |
2201 o.title = "foo"; | 2201 o.title = "foo"; |
2202 } | 2202 } |
2203 buildCounterVolumeVolumeInfo--; | 2203 buildCounterVolumeVolumeInfo--; |
2204 return o; | 2204 return o; |
2205 } | 2205 } |
2206 | 2206 |
2207 checkVolumeVolumeInfo(api.VolumeVolumeInfo o) { | 2207 checkVolumeVolumeInfo(api.VolumeVolumeInfo o) { |
2208 buildCounterVolumeVolumeInfo++; | 2208 buildCounterVolumeVolumeInfo++; |
2209 if (buildCounterVolumeVolumeInfo < 3) { | 2209 if (buildCounterVolumeVolumeInfo < 3) { |
2210 checkUnnamed520(o.authors); | 2210 checkUnnamed548(o.authors); |
2211 unittest.expect(o.averageRating, unittest.equals(42.0)); | 2211 unittest.expect(o.averageRating, unittest.equals(42.0)); |
2212 unittest.expect(o.canonicalVolumeLink, unittest.equals('foo')); | 2212 unittest.expect(o.canonicalVolumeLink, unittest.equals('foo')); |
2213 checkUnnamed521(o.categories); | 2213 checkUnnamed549(o.categories); |
2214 unittest.expect(o.contentVersion, unittest.equals('foo')); | 2214 unittest.expect(o.contentVersion, unittest.equals('foo')); |
2215 unittest.expect(o.description, unittest.equals('foo')); | 2215 unittest.expect(o.description, unittest.equals('foo')); |
2216 checkVolumeVolumeInfoDimensions(o.dimensions); | 2216 checkVolumeVolumeInfoDimensions(o.dimensions); |
2217 checkVolumeVolumeInfoImageLinks(o.imageLinks); | 2217 checkVolumeVolumeInfoImageLinks(o.imageLinks); |
2218 checkUnnamed522(o.industryIdentifiers); | 2218 checkUnnamed550(o.industryIdentifiers); |
2219 unittest.expect(o.infoLink, unittest.equals('foo')); | 2219 unittest.expect(o.infoLink, unittest.equals('foo')); |
2220 unittest.expect(o.language, unittest.equals('foo')); | 2220 unittest.expect(o.language, unittest.equals('foo')); |
2221 unittest.expect(o.mainCategory, unittest.equals('foo')); | 2221 unittest.expect(o.mainCategory, unittest.equals('foo')); |
2222 unittest.expect(o.pageCount, unittest.equals(42)); | 2222 unittest.expect(o.pageCount, unittest.equals(42)); |
2223 unittest.expect(o.previewLink, unittest.equals('foo')); | 2223 unittest.expect(o.previewLink, unittest.equals('foo')); |
2224 unittest.expect(o.printType, unittest.equals('foo')); | 2224 unittest.expect(o.printType, unittest.equals('foo')); |
2225 unittest.expect(o.printedPageCount, unittest.equals(42)); | 2225 unittest.expect(o.printedPageCount, unittest.equals(42)); |
2226 unittest.expect(o.publishedDate, unittest.equals('foo')); | 2226 unittest.expect(o.publishedDate, unittest.equals('foo')); |
2227 unittest.expect(o.publisher, unittest.equals('foo')); | 2227 unittest.expect(o.publisher, unittest.equals('foo')); |
2228 unittest.expect(o.ratingsCount, unittest.equals(42)); | 2228 unittest.expect(o.ratingsCount, unittest.equals(42)); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2290 buildCounterVolumeannotationContentRanges++; | 2290 buildCounterVolumeannotationContentRanges++; |
2291 if (buildCounterVolumeannotationContentRanges < 3) { | 2291 if (buildCounterVolumeannotationContentRanges < 3) { |
2292 checkBooksAnnotationsRange(o.cfiRange); | 2292 checkBooksAnnotationsRange(o.cfiRange); |
2293 unittest.expect(o.contentVersion, unittest.equals('foo')); | 2293 unittest.expect(o.contentVersion, unittest.equals('foo')); |
2294 checkBooksAnnotationsRange(o.gbImageRange); | 2294 checkBooksAnnotationsRange(o.gbImageRange); |
2295 checkBooksAnnotationsRange(o.gbTextRange); | 2295 checkBooksAnnotationsRange(o.gbTextRange); |
2296 } | 2296 } |
2297 buildCounterVolumeannotationContentRanges--; | 2297 buildCounterVolumeannotationContentRanges--; |
2298 } | 2298 } |
2299 | 2299 |
2300 buildUnnamed523() { | 2300 buildUnnamed551() { |
2301 var o = new core.List<core.String>(); | 2301 var o = new core.List<core.String>(); |
2302 o.add("foo"); | 2302 o.add("foo"); |
2303 o.add("foo"); | 2303 o.add("foo"); |
2304 return o; | 2304 return o; |
2305 } | 2305 } |
2306 | 2306 |
2307 checkUnnamed523(core.List<core.String> o) { | 2307 checkUnnamed551(core.List<core.String> o) { |
2308 unittest.expect(o, unittest.hasLength(2)); | 2308 unittest.expect(o, unittest.hasLength(2)); |
2309 unittest.expect(o[0], unittest.equals('foo')); | 2309 unittest.expect(o[0], unittest.equals('foo')); |
2310 unittest.expect(o[1], unittest.equals('foo')); | 2310 unittest.expect(o[1], unittest.equals('foo')); |
2311 } | 2311 } |
2312 | 2312 |
2313 core.int buildCounterVolumeannotation = 0; | 2313 core.int buildCounterVolumeannotation = 0; |
2314 buildVolumeannotation() { | 2314 buildVolumeannotation() { |
2315 var o = new api.Volumeannotation(); | 2315 var o = new api.Volumeannotation(); |
2316 buildCounterVolumeannotation++; | 2316 buildCounterVolumeannotation++; |
2317 if (buildCounterVolumeannotation < 3) { | 2317 if (buildCounterVolumeannotation < 3) { |
2318 o.annotationDataId = "foo"; | 2318 o.annotationDataId = "foo"; |
2319 o.annotationDataLink = "foo"; | 2319 o.annotationDataLink = "foo"; |
2320 o.annotationType = "foo"; | 2320 o.annotationType = "foo"; |
2321 o.contentRanges = buildVolumeannotationContentRanges(); | 2321 o.contentRanges = buildVolumeannotationContentRanges(); |
2322 o.data = "foo"; | 2322 o.data = "foo"; |
2323 o.deleted = true; | 2323 o.deleted = true; |
2324 o.id = "foo"; | 2324 o.id = "foo"; |
2325 o.kind = "foo"; | 2325 o.kind = "foo"; |
2326 o.layerId = "foo"; | 2326 o.layerId = "foo"; |
2327 o.pageIds = buildUnnamed523(); | 2327 o.pageIds = buildUnnamed551(); |
2328 o.selectedText = "foo"; | 2328 o.selectedText = "foo"; |
2329 o.selfLink = "foo"; | 2329 o.selfLink = "foo"; |
2330 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 2330 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
2331 o.volumeId = "foo"; | 2331 o.volumeId = "foo"; |
2332 } | 2332 } |
2333 buildCounterVolumeannotation--; | 2333 buildCounterVolumeannotation--; |
2334 return o; | 2334 return o; |
2335 } | 2335 } |
2336 | 2336 |
2337 checkVolumeannotation(api.Volumeannotation o) { | 2337 checkVolumeannotation(api.Volumeannotation o) { |
2338 buildCounterVolumeannotation++; | 2338 buildCounterVolumeannotation++; |
2339 if (buildCounterVolumeannotation < 3) { | 2339 if (buildCounterVolumeannotation < 3) { |
2340 unittest.expect(o.annotationDataId, unittest.equals('foo')); | 2340 unittest.expect(o.annotationDataId, unittest.equals('foo')); |
2341 unittest.expect(o.annotationDataLink, unittest.equals('foo')); | 2341 unittest.expect(o.annotationDataLink, unittest.equals('foo')); |
2342 unittest.expect(o.annotationType, unittest.equals('foo')); | 2342 unittest.expect(o.annotationType, unittest.equals('foo')); |
2343 checkVolumeannotationContentRanges(o.contentRanges); | 2343 checkVolumeannotationContentRanges(o.contentRanges); |
2344 unittest.expect(o.data, unittest.equals('foo')); | 2344 unittest.expect(o.data, unittest.equals('foo')); |
2345 unittest.expect(o.deleted, unittest.isTrue); | 2345 unittest.expect(o.deleted, unittest.isTrue); |
2346 unittest.expect(o.id, unittest.equals('foo')); | 2346 unittest.expect(o.id, unittest.equals('foo')); |
2347 unittest.expect(o.kind, unittest.equals('foo')); | 2347 unittest.expect(o.kind, unittest.equals('foo')); |
2348 unittest.expect(o.layerId, unittest.equals('foo')); | 2348 unittest.expect(o.layerId, unittest.equals('foo')); |
2349 checkUnnamed523(o.pageIds); | 2349 checkUnnamed551(o.pageIds); |
2350 unittest.expect(o.selectedText, unittest.equals('foo')); | 2350 unittest.expect(o.selectedText, unittest.equals('foo')); |
2351 unittest.expect(o.selfLink, unittest.equals('foo')); | 2351 unittest.expect(o.selfLink, unittest.equals('foo')); |
2352 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 2352 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
2353 unittest.expect(o.volumeId, unittest.equals('foo')); | 2353 unittest.expect(o.volumeId, unittest.equals('foo')); |
2354 } | 2354 } |
2355 buildCounterVolumeannotation--; | 2355 buildCounterVolumeannotation--; |
2356 } | 2356 } |
2357 | 2357 |
2358 buildUnnamed524() { | 2358 buildUnnamed552() { |
2359 var o = new core.List<api.Volumeannotation>(); | 2359 var o = new core.List<api.Volumeannotation>(); |
2360 o.add(buildVolumeannotation()); | 2360 o.add(buildVolumeannotation()); |
2361 o.add(buildVolumeannotation()); | 2361 o.add(buildVolumeannotation()); |
2362 return o; | 2362 return o; |
2363 } | 2363 } |
2364 | 2364 |
2365 checkUnnamed524(core.List<api.Volumeannotation> o) { | 2365 checkUnnamed552(core.List<api.Volumeannotation> o) { |
2366 unittest.expect(o, unittest.hasLength(2)); | 2366 unittest.expect(o, unittest.hasLength(2)); |
2367 checkVolumeannotation(o[0]); | 2367 checkVolumeannotation(o[0]); |
2368 checkVolumeannotation(o[1]); | 2368 checkVolumeannotation(o[1]); |
2369 } | 2369 } |
2370 | 2370 |
2371 core.int buildCounterVolumeannotations = 0; | 2371 core.int buildCounterVolumeannotations = 0; |
2372 buildVolumeannotations() { | 2372 buildVolumeannotations() { |
2373 var o = new api.Volumeannotations(); | 2373 var o = new api.Volumeannotations(); |
2374 buildCounterVolumeannotations++; | 2374 buildCounterVolumeannotations++; |
2375 if (buildCounterVolumeannotations < 3) { | 2375 if (buildCounterVolumeannotations < 3) { |
2376 o.items = buildUnnamed524(); | 2376 o.items = buildUnnamed552(); |
2377 o.kind = "foo"; | 2377 o.kind = "foo"; |
2378 o.nextPageToken = "foo"; | 2378 o.nextPageToken = "foo"; |
2379 o.totalItems = 42; | 2379 o.totalItems = 42; |
2380 o.version = "foo"; | 2380 o.version = "foo"; |
2381 } | 2381 } |
2382 buildCounterVolumeannotations--; | 2382 buildCounterVolumeannotations--; |
2383 return o; | 2383 return o; |
2384 } | 2384 } |
2385 | 2385 |
2386 checkVolumeannotations(api.Volumeannotations o) { | 2386 checkVolumeannotations(api.Volumeannotations o) { |
2387 buildCounterVolumeannotations++; | 2387 buildCounterVolumeannotations++; |
2388 if (buildCounterVolumeannotations < 3) { | 2388 if (buildCounterVolumeannotations < 3) { |
2389 checkUnnamed524(o.items); | 2389 checkUnnamed552(o.items); |
2390 unittest.expect(o.kind, unittest.equals('foo')); | 2390 unittest.expect(o.kind, unittest.equals('foo')); |
2391 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2391 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2392 unittest.expect(o.totalItems, unittest.equals(42)); | 2392 unittest.expect(o.totalItems, unittest.equals(42)); |
2393 unittest.expect(o.version, unittest.equals('foo')); | 2393 unittest.expect(o.version, unittest.equals('foo')); |
2394 } | 2394 } |
2395 buildCounterVolumeannotations--; | 2395 buildCounterVolumeannotations--; |
2396 } | 2396 } |
2397 | 2397 |
2398 buildUnnamed525() { | 2398 buildUnnamed553() { |
2399 var o = new core.List<api.Volume>(); | 2399 var o = new core.List<api.Volume>(); |
2400 o.add(buildVolume()); | 2400 o.add(buildVolume()); |
2401 o.add(buildVolume()); | 2401 o.add(buildVolume()); |
2402 return o; | 2402 return o; |
2403 } | 2403 } |
2404 | 2404 |
2405 checkUnnamed525(core.List<api.Volume> o) { | 2405 checkUnnamed553(core.List<api.Volume> o) { |
2406 unittest.expect(o, unittest.hasLength(2)); | 2406 unittest.expect(o, unittest.hasLength(2)); |
2407 checkVolume(o[0]); | 2407 checkVolume(o[0]); |
2408 checkVolume(o[1]); | 2408 checkVolume(o[1]); |
2409 } | 2409 } |
2410 | 2410 |
2411 core.int buildCounterVolumes = 0; | 2411 core.int buildCounterVolumes = 0; |
2412 buildVolumes() { | 2412 buildVolumes() { |
2413 var o = new api.Volumes(); | 2413 var o = new api.Volumes(); |
2414 buildCounterVolumes++; | 2414 buildCounterVolumes++; |
2415 if (buildCounterVolumes < 3) { | 2415 if (buildCounterVolumes < 3) { |
2416 o.items = buildUnnamed525(); | 2416 o.items = buildUnnamed553(); |
2417 o.kind = "foo"; | 2417 o.kind = "foo"; |
2418 o.totalItems = 42; | 2418 o.totalItems = 42; |
2419 } | 2419 } |
2420 buildCounterVolumes--; | 2420 buildCounterVolumes--; |
2421 return o; | 2421 return o; |
2422 } | 2422 } |
2423 | 2423 |
2424 checkVolumes(api.Volumes o) { | 2424 checkVolumes(api.Volumes o) { |
2425 buildCounterVolumes++; | 2425 buildCounterVolumes++; |
2426 if (buildCounterVolumes < 3) { | 2426 if (buildCounterVolumes < 3) { |
2427 checkUnnamed525(o.items); | 2427 checkUnnamed553(o.items); |
2428 unittest.expect(o.kind, unittest.equals('foo')); | 2428 unittest.expect(o.kind, unittest.equals('foo')); |
2429 unittest.expect(o.totalItems, unittest.equals(42)); | 2429 unittest.expect(o.totalItems, unittest.equals(42)); |
2430 } | 2430 } |
2431 buildCounterVolumes--; | 2431 buildCounterVolumes--; |
2432 } | 2432 } |
2433 | 2433 |
2434 buildUnnamed526() { | 2434 buildUnnamed554() { |
2435 var o = new core.List<core.String>(); | 2435 var o = new core.List<core.String>(); |
2436 o.add("foo"); | 2436 o.add("foo"); |
2437 o.add("foo"); | 2437 o.add("foo"); |
2438 return o; | 2438 return o; |
2439 } | 2439 } |
2440 | 2440 |
2441 checkUnnamed526(core.List<core.String> o) { | 2441 checkUnnamed554(core.List<core.String> o) { |
2442 unittest.expect(o, unittest.hasLength(2)); | 2442 unittest.expect(o, unittest.hasLength(2)); |
2443 unittest.expect(o[0], unittest.equals('foo')); | 2443 unittest.expect(o[0], unittest.equals('foo')); |
2444 unittest.expect(o[1], unittest.equals('foo')); | 2444 unittest.expect(o[1], unittest.equals('foo')); |
2445 } | 2445 } |
2446 | 2446 |
2447 buildUnnamed527() { | 2447 buildUnnamed555() { |
2448 var o = new core.List<core.String>(); | 2448 var o = new core.List<core.String>(); |
2449 o.add("foo"); | 2449 o.add("foo"); |
2450 o.add("foo"); | 2450 o.add("foo"); |
2451 return o; | 2451 return o; |
2452 } | 2452 } |
2453 | 2453 |
2454 checkUnnamed527(core.List<core.String> o) { | 2454 checkUnnamed555(core.List<core.String> o) { |
2455 unittest.expect(o, unittest.hasLength(2)); | 2455 unittest.expect(o, unittest.hasLength(2)); |
2456 unittest.expect(o[0], unittest.equals('foo')); | 2456 unittest.expect(o[0], unittest.equals('foo')); |
2457 unittest.expect(o[1], unittest.equals('foo')); | 2457 unittest.expect(o[1], unittest.equals('foo')); |
2458 } | 2458 } |
2459 | 2459 |
2460 buildUnnamed528() { | 2460 buildUnnamed556() { |
2461 var o = new core.List<core.String>(); | 2461 var o = new core.List<core.String>(); |
2462 o.add("foo"); | 2462 o.add("foo"); |
2463 o.add("foo"); | 2463 o.add("foo"); |
2464 return o; | 2464 return o; |
2465 } | 2465 } |
2466 | 2466 |
2467 checkUnnamed528(core.List<core.String> o) { | 2467 checkUnnamed556(core.List<core.String> o) { |
2468 unittest.expect(o, unittest.hasLength(2)); | 2468 unittest.expect(o, unittest.hasLength(2)); |
2469 unittest.expect(o[0], unittest.equals('foo')); | 2469 unittest.expect(o[0], unittest.equals('foo')); |
2470 unittest.expect(o[1], unittest.equals('foo')); | 2470 unittest.expect(o[1], unittest.equals('foo')); |
2471 } | 2471 } |
2472 | 2472 |
2473 buildUnnamed529() { | 2473 buildUnnamed557() { |
2474 var o = new core.List<core.String>(); | 2474 var o = new core.List<core.String>(); |
2475 o.add("foo"); | 2475 o.add("foo"); |
2476 o.add("foo"); | 2476 o.add("foo"); |
2477 return o; | 2477 return o; |
2478 } | 2478 } |
2479 | 2479 |
2480 checkUnnamed529(core.List<core.String> o) { | 2480 checkUnnamed557(core.List<core.String> o) { |
2481 unittest.expect(o, unittest.hasLength(2)); | 2481 unittest.expect(o, unittest.hasLength(2)); |
2482 unittest.expect(o[0], unittest.equals('foo')); | 2482 unittest.expect(o[0], unittest.equals('foo')); |
2483 unittest.expect(o[1], unittest.equals('foo')); | 2483 unittest.expect(o[1], unittest.equals('foo')); |
2484 } | 2484 } |
2485 | 2485 |
2486 buildUnnamed530() { | 2486 buildUnnamed558() { |
2487 var o = new core.List<core.String>(); | 2487 var o = new core.List<core.String>(); |
2488 o.add("foo"); | 2488 o.add("foo"); |
2489 o.add("foo"); | 2489 o.add("foo"); |
2490 return o; | 2490 return o; |
2491 } | 2491 } |
2492 | 2492 |
2493 checkUnnamed530(core.List<core.String> o) { | 2493 checkUnnamed558(core.List<core.String> o) { |
2494 unittest.expect(o, unittest.hasLength(2)); | 2494 unittest.expect(o, unittest.hasLength(2)); |
2495 unittest.expect(o[0], unittest.equals('foo')); | 2495 unittest.expect(o[0], unittest.equals('foo')); |
2496 unittest.expect(o[1], unittest.equals('foo')); | 2496 unittest.expect(o[1], unittest.equals('foo')); |
2497 } | 2497 } |
2498 | 2498 |
2499 buildUnnamed531() { | 2499 buildUnnamed559() { |
2500 var o = new core.List<core.String>(); | 2500 var o = new core.List<core.String>(); |
2501 o.add("foo"); | 2501 o.add("foo"); |
2502 o.add("foo"); | 2502 o.add("foo"); |
2503 return o; | 2503 return o; |
2504 } | 2504 } |
2505 | 2505 |
2506 checkUnnamed531(core.List<core.String> o) { | 2506 checkUnnamed559(core.List<core.String> o) { |
2507 unittest.expect(o, unittest.hasLength(2)); | 2507 unittest.expect(o, unittest.hasLength(2)); |
2508 unittest.expect(o[0], unittest.equals('foo')); | 2508 unittest.expect(o[0], unittest.equals('foo')); |
2509 unittest.expect(o[1], unittest.equals('foo')); | 2509 unittest.expect(o[1], unittest.equals('foo')); |
2510 } | 2510 } |
2511 | 2511 |
2512 buildUnnamed532() { | 2512 buildUnnamed560() { |
2513 var o = new core.List<core.String>(); | 2513 var o = new core.List<core.String>(); |
2514 o.add("foo"); | 2514 o.add("foo"); |
2515 o.add("foo"); | 2515 o.add("foo"); |
2516 return o; | 2516 return o; |
2517 } | 2517 } |
2518 | 2518 |
2519 checkUnnamed532(core.List<core.String> o) { | 2519 checkUnnamed560(core.List<core.String> o) { |
2520 unittest.expect(o, unittest.hasLength(2)); | 2520 unittest.expect(o, unittest.hasLength(2)); |
2521 unittest.expect(o[0], unittest.equals('foo')); | 2521 unittest.expect(o[0], unittest.equals('foo')); |
2522 unittest.expect(o[1], unittest.equals('foo')); | 2522 unittest.expect(o[1], unittest.equals('foo')); |
2523 } | 2523 } |
2524 | 2524 |
2525 buildUnnamed533() { | 2525 buildUnnamed561() { |
2526 var o = new core.List<core.String>(); | 2526 var o = new core.List<core.String>(); |
2527 o.add("foo"); | 2527 o.add("foo"); |
2528 o.add("foo"); | 2528 o.add("foo"); |
2529 return o; | 2529 return o; |
2530 } | 2530 } |
2531 | 2531 |
2532 checkUnnamed533(core.List<core.String> o) { | 2532 checkUnnamed561(core.List<core.String> o) { |
2533 unittest.expect(o, unittest.hasLength(2)); | 2533 unittest.expect(o, unittest.hasLength(2)); |
2534 unittest.expect(o[0], unittest.equals('foo')); | 2534 unittest.expect(o[0], unittest.equals('foo')); |
2535 unittest.expect(o[1], unittest.equals('foo')); | 2535 unittest.expect(o[1], unittest.equals('foo')); |
2536 } | 2536 } |
2537 | 2537 |
2538 buildUnnamed534() { | 2538 buildUnnamed562() { |
2539 var o = new core.List<core.String>(); | 2539 var o = new core.List<core.String>(); |
2540 o.add("foo"); | 2540 o.add("foo"); |
2541 o.add("foo"); | 2541 o.add("foo"); |
2542 return o; | 2542 return o; |
2543 } | 2543 } |
2544 | 2544 |
2545 checkUnnamed534(core.List<core.String> o) { | 2545 checkUnnamed562(core.List<core.String> o) { |
2546 unittest.expect(o, unittest.hasLength(2)); | 2546 unittest.expect(o, unittest.hasLength(2)); |
2547 unittest.expect(o[0], unittest.equals('foo')); | 2547 unittest.expect(o[0], unittest.equals('foo')); |
2548 unittest.expect(o[1], unittest.equals('foo')); | 2548 unittest.expect(o[1], unittest.equals('foo')); |
2549 } | 2549 } |
2550 | 2550 |
2551 buildUnnamed535() { | 2551 buildUnnamed563() { |
2552 var o = new core.List<core.String>(); | 2552 var o = new core.List<core.String>(); |
2553 o.add("foo"); | 2553 o.add("foo"); |
2554 o.add("foo"); | 2554 o.add("foo"); |
2555 return o; | 2555 return o; |
2556 } | 2556 } |
2557 | 2557 |
2558 checkUnnamed535(core.List<core.String> o) { | 2558 checkUnnamed563(core.List<core.String> o) { |
2559 unittest.expect(o, unittest.hasLength(2)); | 2559 unittest.expect(o, unittest.hasLength(2)); |
2560 unittest.expect(o[0], unittest.equals('foo')); | 2560 unittest.expect(o[0], unittest.equals('foo')); |
2561 unittest.expect(o[1], unittest.equals('foo')); | 2561 unittest.expect(o[1], unittest.equals('foo')); |
2562 } | 2562 } |
2563 | 2563 |
2564 buildUnnamed536() { | 2564 buildUnnamed564() { |
2565 var o = new core.List<core.String>(); | 2565 var o = new core.List<core.String>(); |
2566 o.add("foo"); | 2566 o.add("foo"); |
2567 o.add("foo"); | 2567 o.add("foo"); |
2568 return o; | 2568 return o; |
2569 } | 2569 } |
2570 | 2570 |
2571 checkUnnamed536(core.List<core.String> o) { | 2571 checkUnnamed564(core.List<core.String> o) { |
2572 unittest.expect(o, unittest.hasLength(2)); | 2572 unittest.expect(o, unittest.hasLength(2)); |
2573 unittest.expect(o[0], unittest.equals('foo')); | 2573 unittest.expect(o[0], unittest.equals('foo')); |
2574 unittest.expect(o[1], unittest.equals('foo')); | 2574 unittest.expect(o[1], unittest.equals('foo')); |
2575 } | 2575 } |
2576 | 2576 |
2577 | 2577 |
2578 main() { | 2578 main() { |
2579 unittest.group("obj-schema-AnnotationClientVersionRanges", () { | 2579 unittest.group("obj-schema-AnnotationClientVersionRanges", () { |
2580 unittest.test("to-json--from-json", () { | 2580 unittest.test("to-json--from-json", () { |
2581 var o = buildAnnotationClientVersionRanges(); | 2581 var o = buildAnnotationClientVersionRanges(); |
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3293 var mock = new common_test.HttpServerMock(); | 3293 var mock = new common_test.HttpServerMock(); |
3294 api.BookshelvesResourceApi res = new api.BooksApi(mock).bookshelves; | 3294 api.BookshelvesResourceApi res = new api.BooksApi(mock).bookshelves; |
3295 var arg_userId = "foo"; | 3295 var arg_userId = "foo"; |
3296 var arg_shelf = "foo"; | 3296 var arg_shelf = "foo"; |
3297 var arg_source = "foo"; | 3297 var arg_source = "foo"; |
3298 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3298 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3299 var path = (req.url).path; | 3299 var path = (req.url).path; |
3300 var pathOffset = 0; | 3300 var pathOffset = 0; |
3301 var index; | 3301 var index; |
3302 var subPart; | 3302 var subPart; |
3303 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 3303 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3304 pathOffset += 10; | 3304 pathOffset += 1; |
| 3305 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 3306 pathOffset += 9; |
3305 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); | 3307 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); |
3306 pathOffset += 6; | 3308 pathOffset += 6; |
3307 index = path.indexOf("/bookshelves/", pathOffset); | 3309 index = path.indexOf("/bookshelves/", pathOffset); |
3308 unittest.expect(index >= 0, unittest.isTrue); | 3310 unittest.expect(index >= 0, unittest.isTrue); |
3309 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3311 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
3310 pathOffset = index; | 3312 pathOffset = index; |
3311 unittest.expect(subPart, unittest.equals("$arg_userId")); | 3313 unittest.expect(subPart, unittest.equals("$arg_userId")); |
3312 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/bookshelves/")); | 3314 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/bookshelves/")); |
3313 pathOffset += 13; | 3315 pathOffset += 13; |
3314 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 3316 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3349 | 3351 |
3350 var mock = new common_test.HttpServerMock(); | 3352 var mock = new common_test.HttpServerMock(); |
3351 api.BookshelvesResourceApi res = new api.BooksApi(mock).bookshelves; | 3353 api.BookshelvesResourceApi res = new api.BooksApi(mock).bookshelves; |
3352 var arg_userId = "foo"; | 3354 var arg_userId = "foo"; |
3353 var arg_source = "foo"; | 3355 var arg_source = "foo"; |
3354 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3356 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3355 var path = (req.url).path; | 3357 var path = (req.url).path; |
3356 var pathOffset = 0; | 3358 var pathOffset = 0; |
3357 var index; | 3359 var index; |
3358 var subPart; | 3360 var subPart; |
3359 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 3361 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3360 pathOffset += 10; | 3362 pathOffset += 1; |
| 3363 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 3364 pathOffset += 9; |
3361 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); | 3365 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); |
3362 pathOffset += 6; | 3366 pathOffset += 6; |
3363 index = path.indexOf("/bookshelves", pathOffset); | 3367 index = path.indexOf("/bookshelves", pathOffset); |
3364 unittest.expect(index >= 0, unittest.isTrue); | 3368 unittest.expect(index >= 0, unittest.isTrue); |
3365 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3369 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
3366 pathOffset = index; | 3370 pathOffset = index; |
3367 unittest.expect(subPart, unittest.equals("$arg_userId")); | 3371 unittest.expect(subPart, unittest.equals("$arg_userId")); |
3368 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/bookshelves")); | 3372 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/bookshelves")); |
3369 pathOffset += 12; | 3373 pathOffset += 12; |
3370 | 3374 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3410 var arg_shelf = "foo"; | 3414 var arg_shelf = "foo"; |
3411 var arg_maxResults = 42; | 3415 var arg_maxResults = 42; |
3412 var arg_showPreorders = true; | 3416 var arg_showPreorders = true; |
3413 var arg_source = "foo"; | 3417 var arg_source = "foo"; |
3414 var arg_startIndex = 42; | 3418 var arg_startIndex = 42; |
3415 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3419 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3416 var path = (req.url).path; | 3420 var path = (req.url).path; |
3417 var pathOffset = 0; | 3421 var pathOffset = 0; |
3418 var index; | 3422 var index; |
3419 var subPart; | 3423 var subPart; |
3420 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 3424 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3421 pathOffset += 10; | 3425 pathOffset += 1; |
| 3426 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 3427 pathOffset += 9; |
3422 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); | 3428 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("users/")); |
3423 pathOffset += 6; | 3429 pathOffset += 6; |
3424 index = path.indexOf("/bookshelves/", pathOffset); | 3430 index = path.indexOf("/bookshelves/", pathOffset); |
3425 unittest.expect(index >= 0, unittest.isTrue); | 3431 unittest.expect(index >= 0, unittest.isTrue); |
3426 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3432 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
3427 pathOffset = index; | 3433 pathOffset = index; |
3428 unittest.expect(subPart, unittest.equals("$arg_userId")); | 3434 unittest.expect(subPart, unittest.equals("$arg_userId")); |
3429 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/bookshelves/")); | 3435 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/bookshelves/")); |
3430 pathOffset += 13; | 3436 pathOffset += 13; |
3431 index = path.indexOf("/volumes", pathOffset); | 3437 index = path.indexOf("/volumes", pathOffset); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3479 api.CloudloadingResourceApi res = new api.BooksApi(mock).cloudloading; | 3485 api.CloudloadingResourceApi res = new api.BooksApi(mock).cloudloading; |
3480 var arg_driveDocumentId = "foo"; | 3486 var arg_driveDocumentId = "foo"; |
3481 var arg_mimeType = "foo"; | 3487 var arg_mimeType = "foo"; |
3482 var arg_name = "foo"; | 3488 var arg_name = "foo"; |
3483 var arg_uploadClientToken = "foo"; | 3489 var arg_uploadClientToken = "foo"; |
3484 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3490 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3485 var path = (req.url).path; | 3491 var path = (req.url).path; |
3486 var pathOffset = 0; | 3492 var pathOffset = 0; |
3487 var index; | 3493 var index; |
3488 var subPart; | 3494 var subPart; |
3489 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 3495 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3490 pathOffset += 10; | 3496 pathOffset += 1; |
| 3497 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 3498 pathOffset += 9; |
3491 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("cloudloading/addBook")); | 3499 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("cloudloading/addBook")); |
3492 pathOffset += 20; | 3500 pathOffset += 20; |
3493 | 3501 |
3494 var query = (req.url).query; | 3502 var query = (req.url).query; |
3495 var queryOffset = 0; | 3503 var queryOffset = 0; |
3496 var queryMap = {}; | 3504 var queryMap = {}; |
3497 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3505 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
3498 parseBool(n) { | 3506 parseBool(n) { |
3499 if (n == "true") return true; | 3507 if (n == "true") return true; |
3500 if (n == "false") return false; | 3508 if (n == "false") return false; |
(...skipping 26 matching lines...) Expand all Loading... |
3527 unittest.test("method--deleteBook", () { | 3535 unittest.test("method--deleteBook", () { |
3528 | 3536 |
3529 var mock = new common_test.HttpServerMock(); | 3537 var mock = new common_test.HttpServerMock(); |
3530 api.CloudloadingResourceApi res = new api.BooksApi(mock).cloudloading; | 3538 api.CloudloadingResourceApi res = new api.BooksApi(mock).cloudloading; |
3531 var arg_volumeId = "foo"; | 3539 var arg_volumeId = "foo"; |
3532 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3540 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3533 var path = (req.url).path; | 3541 var path = (req.url).path; |
3534 var pathOffset = 0; | 3542 var pathOffset = 0; |
3535 var index; | 3543 var index; |
3536 var subPart; | 3544 var subPart; |
3537 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 3545 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3538 pathOffset += 10; | 3546 pathOffset += 1; |
| 3547 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 3548 pathOffset += 9; |
3539 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("cloudloading/deleteBook")); | 3549 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("cloudloading/deleteBook")); |
3540 pathOffset += 23; | 3550 pathOffset += 23; |
3541 | 3551 |
3542 var query = (req.url).query; | 3552 var query = (req.url).query; |
3543 var queryOffset = 0; | 3553 var queryOffset = 0; |
3544 var queryMap = {}; | 3554 var queryMap = {}; |
3545 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3555 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
3546 parseBool(n) { | 3556 parseBool(n) { |
3547 if (n == "true") return true; | 3557 if (n == "true") return true; |
3548 if (n == "false") return false; | 3558 if (n == "false") return false; |
(...skipping 24 matching lines...) Expand all Loading... |
3573 api.CloudloadingResourceApi res = new api.BooksApi(mock).cloudloading; | 3583 api.CloudloadingResourceApi res = new api.BooksApi(mock).cloudloading; |
3574 var arg_request = buildBooksCloudloadingResource(); | 3584 var arg_request = buildBooksCloudloadingResource(); |
3575 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3585 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3576 var obj = new api.BooksCloudloadingResource.fromJson(json); | 3586 var obj = new api.BooksCloudloadingResource.fromJson(json); |
3577 checkBooksCloudloadingResource(obj); | 3587 checkBooksCloudloadingResource(obj); |
3578 | 3588 |
3579 var path = (req.url).path; | 3589 var path = (req.url).path; |
3580 var pathOffset = 0; | 3590 var pathOffset = 0; |
3581 var index; | 3591 var index; |
3582 var subPart; | 3592 var subPart; |
3583 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 3593 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3584 pathOffset += 10; | 3594 pathOffset += 1; |
| 3595 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 3596 pathOffset += 9; |
3585 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("cloudloading/updateBook")); | 3597 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("cloudloading/updateBook")); |
3586 pathOffset += 23; | 3598 pathOffset += 23; |
3587 | 3599 |
3588 var query = (req.url).query; | 3600 var query = (req.url).query; |
3589 var queryOffset = 0; | 3601 var queryOffset = 0; |
3590 var queryMap = {}; | 3602 var queryMap = {}; |
3591 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3603 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
3592 parseBool(n) { | 3604 parseBool(n) { |
3593 if (n == "true") return true; | 3605 if (n == "true") return true; |
3594 if (n == "false") return false; | 3606 if (n == "false") return false; |
(...skipping 29 matching lines...) Expand all Loading... |
3624 api.LayersResourceApi res = new api.BooksApi(mock).layers; | 3636 api.LayersResourceApi res = new api.BooksApi(mock).layers; |
3625 var arg_volumeId = "foo"; | 3637 var arg_volumeId = "foo"; |
3626 var arg_summaryId = "foo"; | 3638 var arg_summaryId = "foo"; |
3627 var arg_contentVersion = "foo"; | 3639 var arg_contentVersion = "foo"; |
3628 var arg_source = "foo"; | 3640 var arg_source = "foo"; |
3629 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3641 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3630 var path = (req.url).path; | 3642 var path = (req.url).path; |
3631 var pathOffset = 0; | 3643 var pathOffset = 0; |
3632 var index; | 3644 var index; |
3633 var subPart; | 3645 var subPart; |
3634 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 3646 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3635 pathOffset += 10; | 3647 pathOffset += 1; |
| 3648 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 3649 pathOffset += 9; |
3636 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("volumes/")); | 3650 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("volumes/")); |
3637 pathOffset += 8; | 3651 pathOffset += 8; |
3638 index = path.indexOf("/layersummary/", pathOffset); | 3652 index = path.indexOf("/layersummary/", pathOffset); |
3639 unittest.expect(index >= 0, unittest.isTrue); | 3653 unittest.expect(index >= 0, unittest.isTrue); |
3640 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3654 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
3641 pathOffset = index; | 3655 pathOffset = index; |
3642 unittest.expect(subPart, unittest.equals("$arg_volumeId")); | 3656 unittest.expect(subPart, unittest.equals("$arg_volumeId")); |
3643 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("/layersummary/")); | 3657 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("/layersummary/")); |
3644 pathOffset += 14; | 3658 pathOffset += 14; |
3645 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 3659 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3684 var arg_volumeId = "foo"; | 3698 var arg_volumeId = "foo"; |
3685 var arg_contentVersion = "foo"; | 3699 var arg_contentVersion = "foo"; |
3686 var arg_maxResults = 42; | 3700 var arg_maxResults = 42; |
3687 var arg_pageToken = "foo"; | 3701 var arg_pageToken = "foo"; |
3688 var arg_source = "foo"; | 3702 var arg_source = "foo"; |
3689 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3703 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3690 var path = (req.url).path; | 3704 var path = (req.url).path; |
3691 var pathOffset = 0; | 3705 var pathOffset = 0; |
3692 var index; | 3706 var index; |
3693 var subPart; | 3707 var subPart; |
3694 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 3708 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3695 pathOffset += 10; | 3709 pathOffset += 1; |
| 3710 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 3711 pathOffset += 9; |
3696 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("volumes/")); | 3712 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("volumes/")); |
3697 pathOffset += 8; | 3713 pathOffset += 8; |
3698 index = path.indexOf("/layersummary", pathOffset); | 3714 index = path.indexOf("/layersummary", pathOffset); |
3699 unittest.expect(index >= 0, unittest.isTrue); | 3715 unittest.expect(index >= 0, unittest.isTrue); |
3700 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3716 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
3701 pathOffset = index; | 3717 pathOffset = index; |
3702 unittest.expect(subPart, unittest.equals("$arg_volumeId")); | 3718 unittest.expect(subPart, unittest.equals("$arg_volumeId")); |
3703 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/layersummary")); | 3719 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/layersummary")); |
3704 pathOffset += 13; | 3720 pathOffset += 13; |
3705 | 3721 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3752 var arg_h = 42; | 3768 var arg_h = 42; |
3753 var arg_locale = "foo"; | 3769 var arg_locale = "foo"; |
3754 var arg_scale = 42; | 3770 var arg_scale = 42; |
3755 var arg_source = "foo"; | 3771 var arg_source = "foo"; |
3756 var arg_w = 42; | 3772 var arg_w = 42; |
3757 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3773 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3758 var path = (req.url).path; | 3774 var path = (req.url).path; |
3759 var pathOffset = 0; | 3775 var pathOffset = 0; |
3760 var index; | 3776 var index; |
3761 var subPart; | 3777 var subPart; |
3762 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 3778 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3763 pathOffset += 10; | 3779 pathOffset += 1; |
| 3780 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 3781 pathOffset += 9; |
3764 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("volumes/")); | 3782 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("volumes/")); |
3765 pathOffset += 8; | 3783 pathOffset += 8; |
3766 index = path.indexOf("/layers/", pathOffset); | 3784 index = path.indexOf("/layers/", pathOffset); |
3767 unittest.expect(index >= 0, unittest.isTrue); | 3785 unittest.expect(index >= 0, unittest.isTrue); |
3768 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3786 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
3769 pathOffset = index; | 3787 pathOffset = index; |
3770 unittest.expect(subPart, unittest.equals("$arg_volumeId")); | 3788 unittest.expect(subPart, unittest.equals("$arg_volumeId")); |
3771 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/layers/")); | 3789 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/layers/")); |
3772 pathOffset += 8; | 3790 pathOffset += 8; |
3773 index = path.indexOf("/data/", pathOffset); | 3791 index = path.indexOf("/data/", pathOffset); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3817 }))); | 3835 }))); |
3818 }); | 3836 }); |
3819 | 3837 |
3820 unittest.test("method--list", () { | 3838 unittest.test("method--list", () { |
3821 | 3839 |
3822 var mock = new common_test.HttpServerMock(); | 3840 var mock = new common_test.HttpServerMock(); |
3823 api.LayersAnnotationDataResourceApi res = new api.BooksApi(mock).layers.an
notationData; | 3841 api.LayersAnnotationDataResourceApi res = new api.BooksApi(mock).layers.an
notationData; |
3824 var arg_volumeId = "foo"; | 3842 var arg_volumeId = "foo"; |
3825 var arg_layerId = "foo"; | 3843 var arg_layerId = "foo"; |
3826 var arg_contentVersion = "foo"; | 3844 var arg_contentVersion = "foo"; |
3827 var arg_annotationDataId = buildUnnamed526(); | 3845 var arg_annotationDataId = buildUnnamed554(); |
3828 var arg_h = 42; | 3846 var arg_h = 42; |
3829 var arg_locale = "foo"; | 3847 var arg_locale = "foo"; |
3830 var arg_maxResults = 42; | 3848 var arg_maxResults = 42; |
3831 var arg_pageToken = "foo"; | 3849 var arg_pageToken = "foo"; |
3832 var arg_scale = 42; | 3850 var arg_scale = 42; |
3833 var arg_source = "foo"; | 3851 var arg_source = "foo"; |
3834 var arg_updatedMax = "foo"; | 3852 var arg_updatedMax = "foo"; |
3835 var arg_updatedMin = "foo"; | 3853 var arg_updatedMin = "foo"; |
3836 var arg_w = 42; | 3854 var arg_w = 42; |
3837 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3855 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3838 var path = (req.url).path; | 3856 var path = (req.url).path; |
3839 var pathOffset = 0; | 3857 var pathOffset = 0; |
3840 var index; | 3858 var index; |
3841 var subPart; | 3859 var subPart; |
3842 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 3860 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3843 pathOffset += 10; | 3861 pathOffset += 1; |
| 3862 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 3863 pathOffset += 9; |
3844 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("volumes/")); | 3864 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("volumes/")); |
3845 pathOffset += 8; | 3865 pathOffset += 8; |
3846 index = path.indexOf("/layers/", pathOffset); | 3866 index = path.indexOf("/layers/", pathOffset); |
3847 unittest.expect(index >= 0, unittest.isTrue); | 3867 unittest.expect(index >= 0, unittest.isTrue); |
3848 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3868 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
3849 pathOffset = index; | 3869 pathOffset = index; |
3850 unittest.expect(subPart, unittest.equals("$arg_volumeId")); | 3870 unittest.expect(subPart, unittest.equals("$arg_volumeId")); |
3851 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/layers/")); | 3871 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/layers/")); |
3852 pathOffset += 8; | 3872 pathOffset += 8; |
3853 index = path.indexOf("/data", pathOffset); | 3873 index = path.indexOf("/data", pathOffset); |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3909 var arg_volumeId = "foo"; | 3929 var arg_volumeId = "foo"; |
3910 var arg_layerId = "foo"; | 3930 var arg_layerId = "foo"; |
3911 var arg_annotationId = "foo"; | 3931 var arg_annotationId = "foo"; |
3912 var arg_locale = "foo"; | 3932 var arg_locale = "foo"; |
3913 var arg_source = "foo"; | 3933 var arg_source = "foo"; |
3914 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3934 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3915 var path = (req.url).path; | 3935 var path = (req.url).path; |
3916 var pathOffset = 0; | 3936 var pathOffset = 0; |
3917 var index; | 3937 var index; |
3918 var subPart; | 3938 var subPart; |
3919 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 3939 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3920 pathOffset += 10; | 3940 pathOffset += 1; |
| 3941 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 3942 pathOffset += 9; |
3921 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("volumes/")); | 3943 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("volumes/")); |
3922 pathOffset += 8; | 3944 pathOffset += 8; |
3923 index = path.indexOf("/layers/", pathOffset); | 3945 index = path.indexOf("/layers/", pathOffset); |
3924 unittest.expect(index >= 0, unittest.isTrue); | 3946 unittest.expect(index >= 0, unittest.isTrue); |
3925 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3947 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
3926 pathOffset = index; | 3948 pathOffset = index; |
3927 unittest.expect(subPart, unittest.equals("$arg_volumeId")); | 3949 unittest.expect(subPart, unittest.equals("$arg_volumeId")); |
3928 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/layers/")); | 3950 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/layers/")); |
3929 pathOffset += 8; | 3951 pathOffset += 8; |
3930 index = path.indexOf("/annotations/", pathOffset); | 3952 index = path.indexOf("/annotations/", pathOffset); |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3986 var arg_startOffset = "foo"; | 4008 var arg_startOffset = "foo"; |
3987 var arg_startPosition = "foo"; | 4009 var arg_startPosition = "foo"; |
3988 var arg_updatedMax = "foo"; | 4010 var arg_updatedMax = "foo"; |
3989 var arg_updatedMin = "foo"; | 4011 var arg_updatedMin = "foo"; |
3990 var arg_volumeAnnotationsVersion = "foo"; | 4012 var arg_volumeAnnotationsVersion = "foo"; |
3991 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4013 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3992 var path = (req.url).path; | 4014 var path = (req.url).path; |
3993 var pathOffset = 0; | 4015 var pathOffset = 0; |
3994 var index; | 4016 var index; |
3995 var subPart; | 4017 var subPart; |
3996 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 4018 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3997 pathOffset += 10; | 4019 pathOffset += 1; |
| 4020 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 4021 pathOffset += 9; |
3998 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("volumes/")); | 4022 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("volumes/")); |
3999 pathOffset += 8; | 4023 pathOffset += 8; |
4000 index = path.indexOf("/layers/", pathOffset); | 4024 index = path.indexOf("/layers/", pathOffset); |
4001 unittest.expect(index >= 0, unittest.isTrue); | 4025 unittest.expect(index >= 0, unittest.isTrue); |
4002 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4026 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
4003 pathOffset = index; | 4027 pathOffset = index; |
4004 unittest.expect(subPart, unittest.equals("$arg_volumeId")); | 4028 unittest.expect(subPart, unittest.equals("$arg_volumeId")); |
4005 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/layers/")); | 4029 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/layers/")); |
4006 pathOffset += 8; | 4030 pathOffset += 8; |
4007 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4031 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4051 }); | 4075 }); |
4052 | 4076 |
4053 }); | 4077 }); |
4054 | 4078 |
4055 | 4079 |
4056 unittest.group("resource-MyconfigResourceApi", () { | 4080 unittest.group("resource-MyconfigResourceApi", () { |
4057 unittest.test("method--releaseDownloadAccess", () { | 4081 unittest.test("method--releaseDownloadAccess", () { |
4058 | 4082 |
4059 var mock = new common_test.HttpServerMock(); | 4083 var mock = new common_test.HttpServerMock(); |
4060 api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig; | 4084 api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig; |
4061 var arg_volumeIds = buildUnnamed527(); | 4085 var arg_volumeIds = buildUnnamed555(); |
4062 var arg_cpksver = "foo"; | 4086 var arg_cpksver = "foo"; |
4063 var arg_locale = "foo"; | 4087 var arg_locale = "foo"; |
4064 var arg_source = "foo"; | 4088 var arg_source = "foo"; |
4065 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4089 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4066 var path = (req.url).path; | 4090 var path = (req.url).path; |
4067 var pathOffset = 0; | 4091 var pathOffset = 0; |
4068 var index; | 4092 var index; |
4069 var subPart; | 4093 var subPart; |
4070 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 4094 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4071 pathOffset += 10; | 4095 pathOffset += 1; |
| 4096 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 4097 pathOffset += 9; |
4072 unittest.expect(path.substring(pathOffset, pathOffset + 30), unittest.eq
uals("myconfig/releaseDownloadAccess")); | 4098 unittest.expect(path.substring(pathOffset, pathOffset + 30), unittest.eq
uals("myconfig/releaseDownloadAccess")); |
4073 pathOffset += 30; | 4099 pathOffset += 30; |
4074 | 4100 |
4075 var query = (req.url).query; | 4101 var query = (req.url).query; |
4076 var queryOffset = 0; | 4102 var queryOffset = 0; |
4077 var queryMap = {}; | 4103 var queryMap = {}; |
4078 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4104 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4079 parseBool(n) { | 4105 parseBool(n) { |
4080 if (n == "true") return true; | 4106 if (n == "true") return true; |
4081 if (n == "false") return false; | 4107 if (n == "false") return false; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4113 var arg_volumeId = "foo"; | 4139 var arg_volumeId = "foo"; |
4114 var arg_nonce = "foo"; | 4140 var arg_nonce = "foo"; |
4115 var arg_cpksver = "foo"; | 4141 var arg_cpksver = "foo"; |
4116 var arg_licenseTypes = "foo"; | 4142 var arg_licenseTypes = "foo"; |
4117 var arg_locale = "foo"; | 4143 var arg_locale = "foo"; |
4118 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4144 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4119 var path = (req.url).path; | 4145 var path = (req.url).path; |
4120 var pathOffset = 0; | 4146 var pathOffset = 0; |
4121 var index; | 4147 var index; |
4122 var subPart; | 4148 var subPart; |
4123 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 4149 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4124 pathOffset += 10; | 4150 pathOffset += 1; |
| 4151 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 4152 pathOffset += 9; |
4125 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("myconfig/requestAccess")); | 4153 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("myconfig/requestAccess")); |
4126 pathOffset += 22; | 4154 pathOffset += 22; |
4127 | 4155 |
4128 var query = (req.url).query; | 4156 var query = (req.url).query; |
4129 var queryOffset = 0; | 4157 var queryOffset = 0; |
4130 var queryMap = {}; | 4158 var queryMap = {}; |
4131 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4159 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4132 parseBool(n) { | 4160 parseBool(n) { |
4133 if (n == "true") return true; | 4161 if (n == "true") return true; |
4134 if (n == "false") return false; | 4162 if (n == "false") return false; |
(...skipping 25 matching lines...) Expand all Loading... |
4160 }))); | 4188 }))); |
4161 }); | 4189 }); |
4162 | 4190 |
4163 unittest.test("method--syncVolumeLicenses", () { | 4191 unittest.test("method--syncVolumeLicenses", () { |
4164 | 4192 |
4165 var mock = new common_test.HttpServerMock(); | 4193 var mock = new common_test.HttpServerMock(); |
4166 api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig; | 4194 api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig; |
4167 var arg_source = "foo"; | 4195 var arg_source = "foo"; |
4168 var arg_nonce = "foo"; | 4196 var arg_nonce = "foo"; |
4169 var arg_cpksver = "foo"; | 4197 var arg_cpksver = "foo"; |
4170 var arg_features = buildUnnamed528(); | 4198 var arg_features = buildUnnamed556(); |
4171 var arg_locale = "foo"; | 4199 var arg_locale = "foo"; |
4172 var arg_showPreorders = true; | 4200 var arg_showPreorders = true; |
4173 var arg_volumeIds = buildUnnamed529(); | 4201 var arg_volumeIds = buildUnnamed557(); |
4174 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4202 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4175 var path = (req.url).path; | 4203 var path = (req.url).path; |
4176 var pathOffset = 0; | 4204 var pathOffset = 0; |
4177 var index; | 4205 var index; |
4178 var subPart; | 4206 var subPart; |
4179 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 4207 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4180 pathOffset += 10; | 4208 pathOffset += 1; |
| 4209 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 4210 pathOffset += 9; |
4181 unittest.expect(path.substring(pathOffset, pathOffset + 27), unittest.eq
uals("myconfig/syncVolumeLicenses")); | 4211 unittest.expect(path.substring(pathOffset, pathOffset + 27), unittest.eq
uals("myconfig/syncVolumeLicenses")); |
4182 pathOffset += 27; | 4212 pathOffset += 27; |
4183 | 4213 |
4184 var query = (req.url).query; | 4214 var query = (req.url).query; |
4185 var queryOffset = 0; | 4215 var queryOffset = 0; |
4186 var queryMap = {}; | 4216 var queryMap = {}; |
4187 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4217 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4188 parseBool(n) { | 4218 parseBool(n) { |
4189 if (n == "true") return true; | 4219 if (n == "true") return true; |
4190 if (n == "false") return false; | 4220 if (n == "false") return false; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4225 | 4255 |
4226 var mock = new common_test.HttpServerMock(); | 4256 var mock = new common_test.HttpServerMock(); |
4227 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary
.annotations; | 4257 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary
.annotations; |
4228 var arg_annotationId = "foo"; | 4258 var arg_annotationId = "foo"; |
4229 var arg_source = "foo"; | 4259 var arg_source = "foo"; |
4230 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4260 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4231 var path = (req.url).path; | 4261 var path = (req.url).path; |
4232 var pathOffset = 0; | 4262 var pathOffset = 0; |
4233 var index; | 4263 var index; |
4234 var subPart; | 4264 var subPart; |
4235 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 4265 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4236 pathOffset += 10; | 4266 pathOffset += 1; |
| 4267 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 4268 pathOffset += 9; |
4237 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("mylibrary/annotations/")); | 4269 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("mylibrary/annotations/")); |
4238 pathOffset += 22; | 4270 pathOffset += 22; |
4239 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4271 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
4240 pathOffset = path.length; | 4272 pathOffset = path.length; |
4241 unittest.expect(subPart, unittest.equals("$arg_annotationId")); | 4273 unittest.expect(subPart, unittest.equals("$arg_annotationId")); |
4242 | 4274 |
4243 var query = (req.url).query; | 4275 var query = (req.url).query; |
4244 var queryOffset = 0; | 4276 var queryOffset = 0; |
4245 var queryMap = {}; | 4277 var queryMap = {}; |
4246 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4278 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
(...skipping 25 matching lines...) Expand all Loading... |
4272 | 4304 |
4273 var mock = new common_test.HttpServerMock(); | 4305 var mock = new common_test.HttpServerMock(); |
4274 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary
.annotations; | 4306 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary
.annotations; |
4275 var arg_annotationId = "foo"; | 4307 var arg_annotationId = "foo"; |
4276 var arg_source = "foo"; | 4308 var arg_source = "foo"; |
4277 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4309 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4278 var path = (req.url).path; | 4310 var path = (req.url).path; |
4279 var pathOffset = 0; | 4311 var pathOffset = 0; |
4280 var index; | 4312 var index; |
4281 var subPart; | 4313 var subPart; |
4282 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 4314 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4283 pathOffset += 10; | 4315 pathOffset += 1; |
| 4316 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 4317 pathOffset += 9; |
4284 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("mylibrary/annotations/")); | 4318 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("mylibrary/annotations/")); |
4285 pathOffset += 22; | 4319 pathOffset += 22; |
4286 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4320 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
4287 pathOffset = path.length; | 4321 pathOffset = path.length; |
4288 unittest.expect(subPart, unittest.equals("$arg_annotationId")); | 4322 unittest.expect(subPart, unittest.equals("$arg_annotationId")); |
4289 | 4323 |
4290 var query = (req.url).query; | 4324 var query = (req.url).query; |
4291 var queryOffset = 0; | 4325 var queryOffset = 0; |
4292 var queryMap = {}; | 4326 var queryMap = {}; |
4293 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4327 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4325 var arg_showOnlySummaryInResponse = true; | 4359 var arg_showOnlySummaryInResponse = true; |
4326 var arg_source = "foo"; | 4360 var arg_source = "foo"; |
4327 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4361 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4328 var obj = new api.Annotation.fromJson(json); | 4362 var obj = new api.Annotation.fromJson(json); |
4329 checkAnnotation(obj); | 4363 checkAnnotation(obj); |
4330 | 4364 |
4331 var path = (req.url).path; | 4365 var path = (req.url).path; |
4332 var pathOffset = 0; | 4366 var pathOffset = 0; |
4333 var index; | 4367 var index; |
4334 var subPart; | 4368 var subPart; |
4335 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 4369 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4336 pathOffset += 10; | 4370 pathOffset += 1; |
| 4371 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 4372 pathOffset += 9; |
4337 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("mylibrary/annotations")); | 4373 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("mylibrary/annotations")); |
4338 pathOffset += 21; | 4374 pathOffset += 21; |
4339 | 4375 |
4340 var query = (req.url).query; | 4376 var query = (req.url).query; |
4341 var queryOffset = 0; | 4377 var queryOffset = 0; |
4342 var queryMap = {}; | 4378 var queryMap = {}; |
4343 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4379 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4344 parseBool(n) { | 4380 parseBool(n) { |
4345 if (n == "true") return true; | 4381 if (n == "true") return true; |
4346 if (n == "false") return false; | 4382 if (n == "false") return false; |
(...skipping 20 matching lines...) Expand all Loading... |
4367 checkAnnotation(response); | 4403 checkAnnotation(response); |
4368 }))); | 4404 }))); |
4369 }); | 4405 }); |
4370 | 4406 |
4371 unittest.test("method--list", () { | 4407 unittest.test("method--list", () { |
4372 | 4408 |
4373 var mock = new common_test.HttpServerMock(); | 4409 var mock = new common_test.HttpServerMock(); |
4374 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary
.annotations; | 4410 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary
.annotations; |
4375 var arg_contentVersion = "foo"; | 4411 var arg_contentVersion = "foo"; |
4376 var arg_layerId = "foo"; | 4412 var arg_layerId = "foo"; |
4377 var arg_layerIds = buildUnnamed530(); | 4413 var arg_layerIds = buildUnnamed558(); |
4378 var arg_maxResults = 42; | 4414 var arg_maxResults = 42; |
4379 var arg_pageIds = buildUnnamed531(); | 4415 var arg_pageIds = buildUnnamed559(); |
4380 var arg_pageToken = "foo"; | 4416 var arg_pageToken = "foo"; |
4381 var arg_showDeleted = true; | 4417 var arg_showDeleted = true; |
4382 var arg_source = "foo"; | 4418 var arg_source = "foo"; |
4383 var arg_updatedMax = "foo"; | 4419 var arg_updatedMax = "foo"; |
4384 var arg_updatedMin = "foo"; | 4420 var arg_updatedMin = "foo"; |
4385 var arg_volumeId = "foo"; | 4421 var arg_volumeId = "foo"; |
4386 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4422 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4387 var path = (req.url).path; | 4423 var path = (req.url).path; |
4388 var pathOffset = 0; | 4424 var pathOffset = 0; |
4389 var index; | 4425 var index; |
4390 var subPart; | 4426 var subPart; |
4391 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 4427 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4392 pathOffset += 10; | 4428 pathOffset += 1; |
| 4429 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 4430 pathOffset += 9; |
4393 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("mylibrary/annotations")); | 4431 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("mylibrary/annotations")); |
4394 pathOffset += 21; | 4432 pathOffset += 21; |
4395 | 4433 |
4396 var query = (req.url).query; | 4434 var query = (req.url).query; |
4397 var queryOffset = 0; | 4435 var queryOffset = 0; |
4398 var queryMap = {}; | 4436 var queryMap = {}; |
4399 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4437 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4400 parseBool(n) { | 4438 parseBool(n) { |
4401 if (n == "true") return true; | 4439 if (n == "true") return true; |
4402 if (n == "false") return false; | 4440 if (n == "false") return false; |
(...skipping 27 matching lines...) Expand all Loading... |
4430 }), true); | 4468 }), true); |
4431 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) { | 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) { |
4432 checkAnnotations(response); | 4470 checkAnnotations(response); |
4433 }))); | 4471 }))); |
4434 }); | 4472 }); |
4435 | 4473 |
4436 unittest.test("method--summary", () { | 4474 unittest.test("method--summary", () { |
4437 | 4475 |
4438 var mock = new common_test.HttpServerMock(); | 4476 var mock = new common_test.HttpServerMock(); |
4439 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary
.annotations; | 4477 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary
.annotations; |
4440 var arg_layerIds = buildUnnamed532(); | 4478 var arg_layerIds = buildUnnamed560(); |
4441 var arg_volumeId = "foo"; | 4479 var arg_volumeId = "foo"; |
4442 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4480 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4443 var path = (req.url).path; | 4481 var path = (req.url).path; |
4444 var pathOffset = 0; | 4482 var pathOffset = 0; |
4445 var index; | 4483 var index; |
4446 var subPart; | 4484 var subPart; |
4447 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 4485 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4448 pathOffset += 10; | 4486 pathOffset += 1; |
| 4487 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 4488 pathOffset += 9; |
4449 unittest.expect(path.substring(pathOffset, pathOffset + 29), unittest.eq
uals("mylibrary/annotations/summary")); | 4489 unittest.expect(path.substring(pathOffset, pathOffset + 29), unittest.eq
uals("mylibrary/annotations/summary")); |
4450 pathOffset += 29; | 4490 pathOffset += 29; |
4451 | 4491 |
4452 var query = (req.url).query; | 4492 var query = (req.url).query; |
4453 var queryOffset = 0; | 4493 var queryOffset = 0; |
4454 var queryMap = {}; | 4494 var queryMap = {}; |
4455 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4495 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4456 parseBool(n) { | 4496 parseBool(n) { |
4457 if (n == "true") return true; | 4497 if (n == "true") return true; |
4458 if (n == "false") return false; | 4498 if (n == "false") return false; |
(...skipping 29 matching lines...) Expand all Loading... |
4488 var arg_annotationId = "foo"; | 4528 var arg_annotationId = "foo"; |
4489 var arg_source = "foo"; | 4529 var arg_source = "foo"; |
4490 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4530 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4491 var obj = new api.Annotation.fromJson(json); | 4531 var obj = new api.Annotation.fromJson(json); |
4492 checkAnnotation(obj); | 4532 checkAnnotation(obj); |
4493 | 4533 |
4494 var path = (req.url).path; | 4534 var path = (req.url).path; |
4495 var pathOffset = 0; | 4535 var pathOffset = 0; |
4496 var index; | 4536 var index; |
4497 var subPart; | 4537 var subPart; |
4498 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 4538 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4499 pathOffset += 10; | 4539 pathOffset += 1; |
| 4540 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 4541 pathOffset += 9; |
4500 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("mylibrary/annotations/")); | 4542 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("mylibrary/annotations/")); |
4501 pathOffset += 22; | 4543 pathOffset += 22; |
4502 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4544 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
4503 pathOffset = path.length; | 4545 pathOffset = path.length; |
4504 unittest.expect(subPart, unittest.equals("$arg_annotationId")); | 4546 unittest.expect(subPart, unittest.equals("$arg_annotationId")); |
4505 | 4547 |
4506 var query = (req.url).query; | 4548 var query = (req.url).query; |
4507 var queryOffset = 0; | 4549 var queryOffset = 0; |
4508 var queryMap = {}; | 4550 var queryMap = {}; |
4509 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4551 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4542 var mock = new common_test.HttpServerMock(); | 4584 var mock = new common_test.HttpServerMock(); |
4543 api.MylibraryBookshelvesResourceApi res = new api.BooksApi(mock).mylibrary
.bookshelves; | 4585 api.MylibraryBookshelvesResourceApi res = new api.BooksApi(mock).mylibrary
.bookshelves; |
4544 var arg_shelf = "foo"; | 4586 var arg_shelf = "foo"; |
4545 var arg_volumeId = "foo"; | 4587 var arg_volumeId = "foo"; |
4546 var arg_source = "foo"; | 4588 var arg_source = "foo"; |
4547 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4589 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4548 var path = (req.url).path; | 4590 var path = (req.url).path; |
4549 var pathOffset = 0; | 4591 var pathOffset = 0; |
4550 var index; | 4592 var index; |
4551 var subPart; | 4593 var subPart; |
4552 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 4594 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4553 pathOffset += 10; | 4595 pathOffset += 1; |
| 4596 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 4597 pathOffset += 9; |
4554 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("mylibrary/bookshelves/")); | 4598 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("mylibrary/bookshelves/")); |
4555 pathOffset += 22; | 4599 pathOffset += 22; |
4556 index = path.indexOf("/addVolume", pathOffset); | 4600 index = path.indexOf("/addVolume", pathOffset); |
4557 unittest.expect(index >= 0, unittest.isTrue); | 4601 unittest.expect(index >= 0, unittest.isTrue); |
4558 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4602 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
4559 pathOffset = index; | 4603 pathOffset = index; |
4560 unittest.expect(subPart, unittest.equals("$arg_shelf")); | 4604 unittest.expect(subPart, unittest.equals("$arg_shelf")); |
4561 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/addVolume")); | 4605 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/addVolume")); |
4562 pathOffset += 10; | 4606 pathOffset += 10; |
4563 | 4607 |
(...skipping 30 matching lines...) Expand all Loading... |
4594 | 4638 |
4595 var mock = new common_test.HttpServerMock(); | 4639 var mock = new common_test.HttpServerMock(); |
4596 api.MylibraryBookshelvesResourceApi res = new api.BooksApi(mock).mylibrary
.bookshelves; | 4640 api.MylibraryBookshelvesResourceApi res = new api.BooksApi(mock).mylibrary
.bookshelves; |
4597 var arg_shelf = "foo"; | 4641 var arg_shelf = "foo"; |
4598 var arg_source = "foo"; | 4642 var arg_source = "foo"; |
4599 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4643 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4600 var path = (req.url).path; | 4644 var path = (req.url).path; |
4601 var pathOffset = 0; | 4645 var pathOffset = 0; |
4602 var index; | 4646 var index; |
4603 var subPart; | 4647 var subPart; |
4604 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 4648 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4605 pathOffset += 10; | 4649 pathOffset += 1; |
| 4650 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 4651 pathOffset += 9; |
4606 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("mylibrary/bookshelves/")); | 4652 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("mylibrary/bookshelves/")); |
4607 pathOffset += 22; | 4653 pathOffset += 22; |
4608 index = path.indexOf("/clearVolumes", pathOffset); | 4654 index = path.indexOf("/clearVolumes", pathOffset); |
4609 unittest.expect(index >= 0, unittest.isTrue); | 4655 unittest.expect(index >= 0, unittest.isTrue); |
4610 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4656 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
4611 pathOffset = index; | 4657 pathOffset = index; |
4612 unittest.expect(subPart, unittest.equals("$arg_shelf")); | 4658 unittest.expect(subPart, unittest.equals("$arg_shelf")); |
4613 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/clearVolumes")); | 4659 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/clearVolumes")); |
4614 pathOffset += 13; | 4660 pathOffset += 13; |
4615 | 4661 |
(...skipping 29 matching lines...) Expand all Loading... |
4645 | 4691 |
4646 var mock = new common_test.HttpServerMock(); | 4692 var mock = new common_test.HttpServerMock(); |
4647 api.MylibraryBookshelvesResourceApi res = new api.BooksApi(mock).mylibrary
.bookshelves; | 4693 api.MylibraryBookshelvesResourceApi res = new api.BooksApi(mock).mylibrary
.bookshelves; |
4648 var arg_shelf = "foo"; | 4694 var arg_shelf = "foo"; |
4649 var arg_source = "foo"; | 4695 var arg_source = "foo"; |
4650 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4696 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4651 var path = (req.url).path; | 4697 var path = (req.url).path; |
4652 var pathOffset = 0; | 4698 var pathOffset = 0; |
4653 var index; | 4699 var index; |
4654 var subPart; | 4700 var subPart; |
4655 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 4701 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4656 pathOffset += 10; | 4702 pathOffset += 1; |
| 4703 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 4704 pathOffset += 9; |
4657 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("mylibrary/bookshelves/")); | 4705 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("mylibrary/bookshelves/")); |
4658 pathOffset += 22; | 4706 pathOffset += 22; |
4659 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4707 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
4660 pathOffset = path.length; | 4708 pathOffset = path.length; |
4661 unittest.expect(subPart, unittest.equals("$arg_shelf")); | 4709 unittest.expect(subPart, unittest.equals("$arg_shelf")); |
4662 | 4710 |
4663 var query = (req.url).query; | 4711 var query = (req.url).query; |
4664 var queryOffset = 0; | 4712 var queryOffset = 0; |
4665 var queryMap = {}; | 4713 var queryMap = {}; |
4666 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4714 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
(...skipping 26 matching lines...) Expand all Loading... |
4693 unittest.test("method--list", () { | 4741 unittest.test("method--list", () { |
4694 | 4742 |
4695 var mock = new common_test.HttpServerMock(); | 4743 var mock = new common_test.HttpServerMock(); |
4696 api.MylibraryBookshelvesResourceApi res = new api.BooksApi(mock).mylibrary
.bookshelves; | 4744 api.MylibraryBookshelvesResourceApi res = new api.BooksApi(mock).mylibrary
.bookshelves; |
4697 var arg_source = "foo"; | 4745 var arg_source = "foo"; |
4698 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4746 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4699 var path = (req.url).path; | 4747 var path = (req.url).path; |
4700 var pathOffset = 0; | 4748 var pathOffset = 0; |
4701 var index; | 4749 var index; |
4702 var subPart; | 4750 var subPart; |
4703 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 4751 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4704 pathOffset += 10; | 4752 pathOffset += 1; |
| 4753 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 4754 pathOffset += 9; |
4705 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("mylibrary/bookshelves")); | 4755 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("mylibrary/bookshelves")); |
4706 pathOffset += 21; | 4756 pathOffset += 21; |
4707 | 4757 |
4708 var query = (req.url).query; | 4758 var query = (req.url).query; |
4709 var queryOffset = 0; | 4759 var queryOffset = 0; |
4710 var queryMap = {}; | 4760 var queryMap = {}; |
4711 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4761 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4712 parseBool(n) { | 4762 parseBool(n) { |
4713 if (n == "true") return true; | 4763 if (n == "true") return true; |
4714 if (n == "false") return false; | 4764 if (n == "false") return false; |
(...skipping 26 matching lines...) Expand all Loading... |
4741 api.MylibraryBookshelvesResourceApi res = new api.BooksApi(mock).mylibrary
.bookshelves; | 4791 api.MylibraryBookshelvesResourceApi res = new api.BooksApi(mock).mylibrary
.bookshelves; |
4742 var arg_shelf = "foo"; | 4792 var arg_shelf = "foo"; |
4743 var arg_volumeId = "foo"; | 4793 var arg_volumeId = "foo"; |
4744 var arg_volumePosition = 42; | 4794 var arg_volumePosition = 42; |
4745 var arg_source = "foo"; | 4795 var arg_source = "foo"; |
4746 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4796 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4747 var path = (req.url).path; | 4797 var path = (req.url).path; |
4748 var pathOffset = 0; | 4798 var pathOffset = 0; |
4749 var index; | 4799 var index; |
4750 var subPart; | 4800 var subPart; |
4751 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 4801 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4752 pathOffset += 10; | 4802 pathOffset += 1; |
| 4803 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 4804 pathOffset += 9; |
4753 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("mylibrary/bookshelves/")); | 4805 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("mylibrary/bookshelves/")); |
4754 pathOffset += 22; | 4806 pathOffset += 22; |
4755 index = path.indexOf("/moveVolume", pathOffset); | 4807 index = path.indexOf("/moveVolume", pathOffset); |
4756 unittest.expect(index >= 0, unittest.isTrue); | 4808 unittest.expect(index >= 0, unittest.isTrue); |
4757 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4809 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
4758 pathOffset = index; | 4810 pathOffset = index; |
4759 unittest.expect(subPart, unittest.equals("$arg_shelf")); | 4811 unittest.expect(subPart, unittest.equals("$arg_shelf")); |
4760 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/moveVolume")); | 4812 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/moveVolume")); |
4761 pathOffset += 11; | 4813 pathOffset += 11; |
4762 | 4814 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4795 var mock = new common_test.HttpServerMock(); | 4847 var mock = new common_test.HttpServerMock(); |
4796 api.MylibraryBookshelvesResourceApi res = new api.BooksApi(mock).mylibrary
.bookshelves; | 4848 api.MylibraryBookshelvesResourceApi res = new api.BooksApi(mock).mylibrary
.bookshelves; |
4797 var arg_shelf = "foo"; | 4849 var arg_shelf = "foo"; |
4798 var arg_volumeId = "foo"; | 4850 var arg_volumeId = "foo"; |
4799 var arg_source = "foo"; | 4851 var arg_source = "foo"; |
4800 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4852 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4801 var path = (req.url).path; | 4853 var path = (req.url).path; |
4802 var pathOffset = 0; | 4854 var pathOffset = 0; |
4803 var index; | 4855 var index; |
4804 var subPart; | 4856 var subPart; |
4805 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 4857 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4806 pathOffset += 10; | 4858 pathOffset += 1; |
| 4859 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 4860 pathOffset += 9; |
4807 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("mylibrary/bookshelves/")); | 4861 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("mylibrary/bookshelves/")); |
4808 pathOffset += 22; | 4862 pathOffset += 22; |
4809 index = path.indexOf("/removeVolume", pathOffset); | 4863 index = path.indexOf("/removeVolume", pathOffset); |
4810 unittest.expect(index >= 0, unittest.isTrue); | 4864 unittest.expect(index >= 0, unittest.isTrue); |
4811 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4865 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
4812 pathOffset = index; | 4866 pathOffset = index; |
4813 unittest.expect(subPart, unittest.equals("$arg_shelf")); | 4867 unittest.expect(subPart, unittest.equals("$arg_shelf")); |
4814 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/removeVolume")); | 4868 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("/removeVolume")); |
4815 pathOffset += 13; | 4869 pathOffset += 13; |
4816 | 4870 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4857 var arg_projection = "foo"; | 4911 var arg_projection = "foo"; |
4858 var arg_q = "foo"; | 4912 var arg_q = "foo"; |
4859 var arg_showPreorders = true; | 4913 var arg_showPreorders = true; |
4860 var arg_source = "foo"; | 4914 var arg_source = "foo"; |
4861 var arg_startIndex = 42; | 4915 var arg_startIndex = 42; |
4862 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4916 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4863 var path = (req.url).path; | 4917 var path = (req.url).path; |
4864 var pathOffset = 0; | 4918 var pathOffset = 0; |
4865 var index; | 4919 var index; |
4866 var subPart; | 4920 var subPart; |
4867 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 4921 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4868 pathOffset += 10; | 4922 pathOffset += 1; |
| 4923 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 4924 pathOffset += 9; |
4869 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("mylibrary/bookshelves/")); | 4925 unittest.expect(path.substring(pathOffset, pathOffset + 22), unittest.eq
uals("mylibrary/bookshelves/")); |
4870 pathOffset += 22; | 4926 pathOffset += 22; |
4871 index = path.indexOf("/volumes", pathOffset); | 4927 index = path.indexOf("/volumes", pathOffset); |
4872 unittest.expect(index >= 0, unittest.isTrue); | 4928 unittest.expect(index >= 0, unittest.isTrue); |
4873 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4929 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
4874 pathOffset = index; | 4930 pathOffset = index; |
4875 unittest.expect(subPart, unittest.equals("$arg_shelf")); | 4931 unittest.expect(subPart, unittest.equals("$arg_shelf")); |
4876 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/volumes")); | 4932 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/volumes")); |
4877 pathOffset += 8; | 4933 pathOffset += 8; |
4878 | 4934 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4921 var mock = new common_test.HttpServerMock(); | 4977 var mock = new common_test.HttpServerMock(); |
4922 api.MylibraryReadingpositionsResourceApi res = new api.BooksApi(mock).myli
brary.readingpositions; | 4978 api.MylibraryReadingpositionsResourceApi res = new api.BooksApi(mock).myli
brary.readingpositions; |
4923 var arg_volumeId = "foo"; | 4979 var arg_volumeId = "foo"; |
4924 var arg_contentVersion = "foo"; | 4980 var arg_contentVersion = "foo"; |
4925 var arg_source = "foo"; | 4981 var arg_source = "foo"; |
4926 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4982 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4927 var path = (req.url).path; | 4983 var path = (req.url).path; |
4928 var pathOffset = 0; | 4984 var pathOffset = 0; |
4929 var index; | 4985 var index; |
4930 var subPart; | 4986 var subPart; |
4931 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 4987 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4932 pathOffset += 10; | 4988 pathOffset += 1; |
| 4989 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 4990 pathOffset += 9; |
4933 unittest.expect(path.substring(pathOffset, pathOffset + 27), unittest.eq
uals("mylibrary/readingpositions/")); | 4991 unittest.expect(path.substring(pathOffset, pathOffset + 27), unittest.eq
uals("mylibrary/readingpositions/")); |
4934 pathOffset += 27; | 4992 pathOffset += 27; |
4935 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4993 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
4936 pathOffset = path.length; | 4994 pathOffset = path.length; |
4937 unittest.expect(subPart, unittest.equals("$arg_volumeId")); | 4995 unittest.expect(subPart, unittest.equals("$arg_volumeId")); |
4938 | 4996 |
4939 var query = (req.url).query; | 4997 var query = (req.url).query; |
4940 var queryOffset = 0; | 4998 var queryOffset = 0; |
4941 var queryMap = {}; | 4999 var queryMap = {}; |
4942 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5000 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4976 var arg_position = "foo"; | 5034 var arg_position = "foo"; |
4977 var arg_action = "foo"; | 5035 var arg_action = "foo"; |
4978 var arg_contentVersion = "foo"; | 5036 var arg_contentVersion = "foo"; |
4979 var arg_deviceCookie = "foo"; | 5037 var arg_deviceCookie = "foo"; |
4980 var arg_source = "foo"; | 5038 var arg_source = "foo"; |
4981 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5039 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4982 var path = (req.url).path; | 5040 var path = (req.url).path; |
4983 var pathOffset = 0; | 5041 var pathOffset = 0; |
4984 var index; | 5042 var index; |
4985 var subPart; | 5043 var subPart; |
4986 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 5044 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4987 pathOffset += 10; | 5045 pathOffset += 1; |
| 5046 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 5047 pathOffset += 9; |
4988 unittest.expect(path.substring(pathOffset, pathOffset + 27), unittest.eq
uals("mylibrary/readingpositions/")); | 5048 unittest.expect(path.substring(pathOffset, pathOffset + 27), unittest.eq
uals("mylibrary/readingpositions/")); |
4989 pathOffset += 27; | 5049 pathOffset += 27; |
4990 index = path.indexOf("/setPosition", pathOffset); | 5050 index = path.indexOf("/setPosition", pathOffset); |
4991 unittest.expect(index >= 0, unittest.isTrue); | 5051 unittest.expect(index >= 0, unittest.isTrue); |
4992 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 5052 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
4993 pathOffset = index; | 5053 pathOffset = index; |
4994 unittest.expect(subPart, unittest.equals("$arg_volumeId")); | 5054 unittest.expect(subPart, unittest.equals("$arg_volumeId")); |
4995 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/setPosition")); | 5055 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/setPosition")); |
4996 pathOffset += 12; | 5056 pathOffset += 12; |
4997 | 5057 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5042 var arg_model = "foo"; | 5102 var arg_model = "foo"; |
5043 var arg_offerId = "foo"; | 5103 var arg_offerId = "foo"; |
5044 var arg_product = "foo"; | 5104 var arg_product = "foo"; |
5045 var arg_serial = "foo"; | 5105 var arg_serial = "foo"; |
5046 var arg_volumeId = "foo"; | 5106 var arg_volumeId = "foo"; |
5047 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5107 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5048 var path = (req.url).path; | 5108 var path = (req.url).path; |
5049 var pathOffset = 0; | 5109 var pathOffset = 0; |
5050 var index; | 5110 var index; |
5051 var subPart; | 5111 var subPart; |
5052 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 5112 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5053 pathOffset += 10; | 5113 pathOffset += 1; |
| 5114 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 5115 pathOffset += 9; |
5054 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("promooffer/accept")); | 5116 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("promooffer/accept")); |
5055 pathOffset += 17; | 5117 pathOffset += 17; |
5056 | 5118 |
5057 var query = (req.url).query; | 5119 var query = (req.url).query; |
5058 var queryOffset = 0; | 5120 var queryOffset = 0; |
5059 var queryMap = {}; | 5121 var queryMap = {}; |
5060 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5122 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5061 parseBool(n) { | 5123 parseBool(n) { |
5062 if (n == "true") return true; | 5124 if (n == "true") return true; |
5063 if (n == "false") return false; | 5125 if (n == "false") return false; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5098 var arg_manufacturer = "foo"; | 5160 var arg_manufacturer = "foo"; |
5099 var arg_model = "foo"; | 5161 var arg_model = "foo"; |
5100 var arg_offerId = "foo"; | 5162 var arg_offerId = "foo"; |
5101 var arg_product = "foo"; | 5163 var arg_product = "foo"; |
5102 var arg_serial = "foo"; | 5164 var arg_serial = "foo"; |
5103 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5165 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5104 var path = (req.url).path; | 5166 var path = (req.url).path; |
5105 var pathOffset = 0; | 5167 var pathOffset = 0; |
5106 var index; | 5168 var index; |
5107 var subPart; | 5169 var subPart; |
5108 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 5170 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5109 pathOffset += 10; | 5171 pathOffset += 1; |
| 5172 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 5173 pathOffset += 9; |
5110 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("promooffer/dismiss")); | 5174 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("promooffer/dismiss")); |
5111 pathOffset += 18; | 5175 pathOffset += 18; |
5112 | 5176 |
5113 var query = (req.url).query; | 5177 var query = (req.url).query; |
5114 var queryOffset = 0; | 5178 var queryOffset = 0; |
5115 var queryMap = {}; | 5179 var queryMap = {}; |
5116 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5180 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5117 parseBool(n) { | 5181 parseBool(n) { |
5118 if (n == "true") return true; | 5182 if (n == "true") return true; |
5119 if (n == "false") return false; | 5183 if (n == "false") return false; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5152 var arg_device = "foo"; | 5216 var arg_device = "foo"; |
5153 var arg_manufacturer = "foo"; | 5217 var arg_manufacturer = "foo"; |
5154 var arg_model = "foo"; | 5218 var arg_model = "foo"; |
5155 var arg_product = "foo"; | 5219 var arg_product = "foo"; |
5156 var arg_serial = "foo"; | 5220 var arg_serial = "foo"; |
5157 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5221 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5158 var path = (req.url).path; | 5222 var path = (req.url).path; |
5159 var pathOffset = 0; | 5223 var pathOffset = 0; |
5160 var index; | 5224 var index; |
5161 var subPart; | 5225 var subPart; |
5162 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 5226 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5163 pathOffset += 10; | 5227 pathOffset += 1; |
| 5228 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 5229 pathOffset += 9; |
5164 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("promooffer/get")); | 5230 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("promooffer/get")); |
5165 pathOffset += 14; | 5231 pathOffset += 14; |
5166 | 5232 |
5167 var query = (req.url).query; | 5233 var query = (req.url).query; |
5168 var queryOffset = 0; | 5234 var queryOffset = 0; |
5169 var queryMap = {}; | 5235 var queryMap = {}; |
5170 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5236 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5171 parseBool(n) { | 5237 parseBool(n) { |
5172 if (n == "true") return true; | 5238 if (n == "true") return true; |
5173 if (n == "false") return false; | 5239 if (n == "false") return false; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5210 var arg_volumeId = "foo"; | 5276 var arg_volumeId = "foo"; |
5211 var arg_country = "foo"; | 5277 var arg_country = "foo"; |
5212 var arg_partner = "foo"; | 5278 var arg_partner = "foo"; |
5213 var arg_projection = "foo"; | 5279 var arg_projection = "foo"; |
5214 var arg_source = "foo"; | 5280 var arg_source = "foo"; |
5215 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5281 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5216 var path = (req.url).path; | 5282 var path = (req.url).path; |
5217 var pathOffset = 0; | 5283 var pathOffset = 0; |
5218 var index; | 5284 var index; |
5219 var subPart; | 5285 var subPart; |
5220 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 5286 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5221 pathOffset += 10; | 5287 pathOffset += 1; |
| 5288 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 5289 pathOffset += 9; |
5222 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("volumes/")); | 5290 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("volumes/")); |
5223 pathOffset += 8; | 5291 pathOffset += 8; |
5224 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 5292 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
5225 pathOffset = path.length; | 5293 pathOffset = path.length; |
5226 unittest.expect(subPart, unittest.equals("$arg_volumeId")); | 5294 unittest.expect(subPart, unittest.equals("$arg_volumeId")); |
5227 | 5295 |
5228 var query = (req.url).query; | 5296 var query = (req.url).query; |
5229 var queryOffset = 0; | 5297 var queryOffset = 0; |
5230 var queryMap = {}; | 5298 var queryMap = {}; |
5231 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5299 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5273 var arg_printType = "foo"; | 5341 var arg_printType = "foo"; |
5274 var arg_projection = "foo"; | 5342 var arg_projection = "foo"; |
5275 var arg_showPreorders = true; | 5343 var arg_showPreorders = true; |
5276 var arg_source = "foo"; | 5344 var arg_source = "foo"; |
5277 var arg_startIndex = 42; | 5345 var arg_startIndex = 42; |
5278 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5346 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5279 var path = (req.url).path; | 5347 var path = (req.url).path; |
5280 var pathOffset = 0; | 5348 var pathOffset = 0; |
5281 var index; | 5349 var index; |
5282 var subPart; | 5350 var subPart; |
5283 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 5351 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5284 pathOffset += 10; | 5352 pathOffset += 1; |
| 5353 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 5354 pathOffset += 9; |
5285 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("volumes")); | 5355 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("volumes")); |
5286 pathOffset += 7; | 5356 pathOffset += 7; |
5287 | 5357 |
5288 var query = (req.url).query; | 5358 var query = (req.url).query; |
5289 var queryOffset = 0; | 5359 var queryOffset = 0; |
5290 var queryMap = {}; | 5360 var queryMap = {}; |
5291 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5361 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5292 parseBool(n) { | 5362 parseBool(n) { |
5293 if (n == "true") return true; | 5363 if (n == "true") return true; |
5294 if (n == "false") return false; | 5364 if (n == "false") return false; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5337 api.VolumesAssociatedResourceApi res = new api.BooksApi(mock).volumes.asso
ciated; | 5407 api.VolumesAssociatedResourceApi res = new api.BooksApi(mock).volumes.asso
ciated; |
5338 var arg_volumeId = "foo"; | 5408 var arg_volumeId = "foo"; |
5339 var arg_association = "foo"; | 5409 var arg_association = "foo"; |
5340 var arg_locale = "foo"; | 5410 var arg_locale = "foo"; |
5341 var arg_source = "foo"; | 5411 var arg_source = "foo"; |
5342 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5412 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5343 var path = (req.url).path; | 5413 var path = (req.url).path; |
5344 var pathOffset = 0; | 5414 var pathOffset = 0; |
5345 var index; | 5415 var index; |
5346 var subPart; | 5416 var subPart; |
5347 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 5417 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5348 pathOffset += 10; | 5418 pathOffset += 1; |
| 5419 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 5420 pathOffset += 9; |
5349 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("volumes/")); | 5421 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("volumes/")); |
5350 pathOffset += 8; | 5422 pathOffset += 8; |
5351 index = path.indexOf("/associated", pathOffset); | 5423 index = path.indexOf("/associated", pathOffset); |
5352 unittest.expect(index >= 0, unittest.isTrue); | 5424 unittest.expect(index >= 0, unittest.isTrue); |
5353 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 5425 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
5354 pathOffset = index; | 5426 pathOffset = index; |
5355 unittest.expect(subPart, unittest.equals("$arg_volumeId")); | 5427 unittest.expect(subPart, unittest.equals("$arg_volumeId")); |
5356 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/associated")); | 5428 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/associated")); |
5357 pathOffset += 11; | 5429 pathOffset += 11; |
5358 | 5430 |
(...skipping 30 matching lines...) Expand all Loading... |
5389 }); | 5461 }); |
5390 | 5462 |
5391 }); | 5463 }); |
5392 | 5464 |
5393 | 5465 |
5394 unittest.group("resource-VolumesMybooksResourceApi", () { | 5466 unittest.group("resource-VolumesMybooksResourceApi", () { |
5395 unittest.test("method--list", () { | 5467 unittest.test("method--list", () { |
5396 | 5468 |
5397 var mock = new common_test.HttpServerMock(); | 5469 var mock = new common_test.HttpServerMock(); |
5398 api.VolumesMybooksResourceApi res = new api.BooksApi(mock).volumes.mybooks
; | 5470 api.VolumesMybooksResourceApi res = new api.BooksApi(mock).volumes.mybooks
; |
5399 var arg_acquireMethod = buildUnnamed533(); | 5471 var arg_acquireMethod = buildUnnamed561(); |
5400 var arg_locale = "foo"; | 5472 var arg_locale = "foo"; |
5401 var arg_maxResults = 42; | 5473 var arg_maxResults = 42; |
5402 var arg_processingState = buildUnnamed534(); | 5474 var arg_processingState = buildUnnamed562(); |
5403 var arg_source = "foo"; | 5475 var arg_source = "foo"; |
5404 var arg_startIndex = 42; | 5476 var arg_startIndex = 42; |
5405 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5477 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5406 var path = (req.url).path; | 5478 var path = (req.url).path; |
5407 var pathOffset = 0; | 5479 var pathOffset = 0; |
5408 var index; | 5480 var index; |
5409 var subPart; | 5481 var subPart; |
5410 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 5482 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5411 pathOffset += 10; | 5483 pathOffset += 1; |
| 5484 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 5485 pathOffset += 9; |
5412 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("volumes/mybooks")); | 5486 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("volumes/mybooks")); |
5413 pathOffset += 15; | 5487 pathOffset += 15; |
5414 | 5488 |
5415 var query = (req.url).query; | 5489 var query = (req.url).query; |
5416 var queryOffset = 0; | 5490 var queryOffset = 0; |
5417 var queryMap = {}; | 5491 var queryMap = {}; |
5418 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5492 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5419 parseBool(n) { | 5493 parseBool(n) { |
5420 if (n == "true") return true; | 5494 if (n == "true") return true; |
5421 if (n == "false") return false; | 5495 if (n == "false") return false; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5455 | 5529 |
5456 var mock = new common_test.HttpServerMock(); | 5530 var mock = new common_test.HttpServerMock(); |
5457 api.VolumesRecommendedResourceApi res = new api.BooksApi(mock).volumes.rec
ommended; | 5531 api.VolumesRecommendedResourceApi res = new api.BooksApi(mock).volumes.rec
ommended; |
5458 var arg_locale = "foo"; | 5532 var arg_locale = "foo"; |
5459 var arg_source = "foo"; | 5533 var arg_source = "foo"; |
5460 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5534 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5461 var path = (req.url).path; | 5535 var path = (req.url).path; |
5462 var pathOffset = 0; | 5536 var pathOffset = 0; |
5463 var index; | 5537 var index; |
5464 var subPart; | 5538 var subPart; |
5465 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 5539 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5466 pathOffset += 10; | 5540 pathOffset += 1; |
| 5541 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 5542 pathOffset += 9; |
5467 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("volumes/recommended")); | 5543 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("volumes/recommended")); |
5468 pathOffset += 19; | 5544 pathOffset += 19; |
5469 | 5545 |
5470 var query = (req.url).query; | 5546 var query = (req.url).query; |
5471 var queryOffset = 0; | 5547 var queryOffset = 0; |
5472 var queryMap = {}; | 5548 var queryMap = {}; |
5473 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5549 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5474 parseBool(n) { | 5550 parseBool(n) { |
5475 if (n == "true") return true; | 5551 if (n == "true") return true; |
5476 if (n == "false") return false; | 5552 if (n == "false") return false; |
(...skipping 27 matching lines...) Expand all Loading... |
5504 api.VolumesRecommendedResourceApi res = new api.BooksApi(mock).volumes.rec
ommended; | 5580 api.VolumesRecommendedResourceApi res = new api.BooksApi(mock).volumes.rec
ommended; |
5505 var arg_rating = "foo"; | 5581 var arg_rating = "foo"; |
5506 var arg_volumeId = "foo"; | 5582 var arg_volumeId = "foo"; |
5507 var arg_locale = "foo"; | 5583 var arg_locale = "foo"; |
5508 var arg_source = "foo"; | 5584 var arg_source = "foo"; |
5509 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5585 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5510 var path = (req.url).path; | 5586 var path = (req.url).path; |
5511 var pathOffset = 0; | 5587 var pathOffset = 0; |
5512 var index; | 5588 var index; |
5513 var subPart; | 5589 var subPart; |
5514 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 5590 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5515 pathOffset += 10; | 5591 pathOffset += 1; |
| 5592 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 5593 pathOffset += 9; |
5516 unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.eq
uals("volumes/recommended/rate")); | 5594 unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.eq
uals("volumes/recommended/rate")); |
5517 pathOffset += 24; | 5595 pathOffset += 24; |
5518 | 5596 |
5519 var query = (req.url).query; | 5597 var query = (req.url).query; |
5520 var queryOffset = 0; | 5598 var queryOffset = 0; |
5521 var queryMap = {}; | 5599 var queryMap = {}; |
5522 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5600 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5523 parseBool(n) { | 5601 parseBool(n) { |
5524 if (n == "true") return true; | 5602 if (n == "true") return true; |
5525 if (n == "false") return false; | 5603 if (n == "false") return false; |
(...skipping 26 matching lines...) Expand all Loading... |
5552 }); | 5630 }); |
5553 | 5631 |
5554 | 5632 |
5555 unittest.group("resource-VolumesUseruploadedResourceApi", () { | 5633 unittest.group("resource-VolumesUseruploadedResourceApi", () { |
5556 unittest.test("method--list", () { | 5634 unittest.test("method--list", () { |
5557 | 5635 |
5558 var mock = new common_test.HttpServerMock(); | 5636 var mock = new common_test.HttpServerMock(); |
5559 api.VolumesUseruploadedResourceApi res = new api.BooksApi(mock).volumes.us
eruploaded; | 5637 api.VolumesUseruploadedResourceApi res = new api.BooksApi(mock).volumes.us
eruploaded; |
5560 var arg_locale = "foo"; | 5638 var arg_locale = "foo"; |
5561 var arg_maxResults = 42; | 5639 var arg_maxResults = 42; |
5562 var arg_processingState = buildUnnamed535(); | 5640 var arg_processingState = buildUnnamed563(); |
5563 var arg_source = "foo"; | 5641 var arg_source = "foo"; |
5564 var arg_startIndex = 42; | 5642 var arg_startIndex = 42; |
5565 var arg_volumeId = buildUnnamed536(); | 5643 var arg_volumeId = buildUnnamed564(); |
5566 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5644 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5567 var path = (req.url).path; | 5645 var path = (req.url).path; |
5568 var pathOffset = 0; | 5646 var pathOffset = 0; |
5569 var index; | 5647 var index; |
5570 var subPart; | 5648 var subPart; |
5571 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/books/v1/")); | 5649 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5572 pathOffset += 10; | 5650 pathOffset += 1; |
| 5651 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 5652 pathOffset += 9; |
5573 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("volumes/useruploaded")); | 5653 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("volumes/useruploaded")); |
5574 pathOffset += 20; | 5654 pathOffset += 20; |
5575 | 5655 |
5576 var query = (req.url).query; | 5656 var query = (req.url).query; |
5577 var queryOffset = 0; | 5657 var queryOffset = 0; |
5578 var queryMap = {}; | 5658 var queryMap = {}; |
5579 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5659 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5580 parseBool(n) { | 5660 parseBool(n) { |
5581 if (n == "true") return true; | 5661 if (n == "true") return true; |
5582 if (n == "false") return false; | 5662 if (n == "false") return false; |
(...skipping 23 matching lines...) Expand all Loading... |
5606 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) { | 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) { |
5607 checkVolumes(response); | 5687 checkVolumes(response); |
5608 }))); | 5688 }))); |
5609 }); | 5689 }); |
5610 | 5690 |
5611 }); | 5691 }); |
5612 | 5692 |
5613 | 5693 |
5614 } | 5694 } |
5615 | 5695 |
OLD | NEW |