| 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 buildUnnamed305() { | 96 buildUnnamed537() { |
| 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 checkUnnamed305(core.List<core.String> o) { | 103 checkUnnamed537(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 = buildUnnamed305(); | 126 o.pageIds = buildUnnamed537(); |
| 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 checkUnnamed305(o.pageIds); | 151 checkUnnamed537(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 buildUnnamed306() { | 195 buildUnnamed538() { |
| 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 checkUnnamed306(core.List<api.Annotation> o) { | 202 checkUnnamed538(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 = buildUnnamed306(); | 213 o.items = buildUnnamed538(); |
| 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 checkUnnamed306(o.items); | 225 checkUnnamed538(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 buildUnnamed307() { | 260 buildUnnamed539() { |
| 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 checkUnnamed307(core.List<api.AnnotationsSummaryLayers> o) { | 267 checkUnnamed539(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 = buildUnnamed307(); | 279 o.layers = buildUnnamed539(); |
| 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 checkUnnamed307(o.layers); | 289 checkUnnamed539(o.layers); |
| 290 } | 290 } |
| 291 buildCounterAnnotationsSummary--; | 291 buildCounterAnnotationsSummary--; |
| 292 } | 292 } |
| 293 | 293 |
| 294 buildUnnamed308() { | 294 buildUnnamed540() { |
| 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 checkUnnamed308(core.List<api.Annotationdata> o) { | 301 checkUnnamed540(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 = buildUnnamed308(); | 312 o.items = buildUnnamed540(); |
| 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 checkUnnamed308(o.items); | 324 checkUnnamed540(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 buildUnnamed309() { | 438 buildUnnamed541() { |
| 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 checkUnnamed309(core.List<api.Bookshelf> o) { | 445 checkUnnamed541(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 = buildUnnamed309(); | 456 o.items = buildUnnamed541(); |
| 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 checkUnnamed309(o.items); | 466 checkUnnamed541(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 buildCounterCategoryItems = 0; |
| 473 buildCategoryItems() { |
| 474 var o = new api.CategoryItems(); |
| 475 buildCounterCategoryItems++; |
| 476 if (buildCounterCategoryItems < 3) { |
| 477 o.badgeUrl = "foo"; |
| 478 o.categoryId = "foo"; |
| 479 o.name = "foo"; |
| 480 } |
| 481 buildCounterCategoryItems--; |
| 482 return o; |
| 483 } |
| 484 |
| 485 checkCategoryItems(api.CategoryItems o) { |
| 486 buildCounterCategoryItems++; |
| 487 if (buildCounterCategoryItems < 3) { |
| 488 unittest.expect(o.badgeUrl, unittest.equals('foo')); |
| 489 unittest.expect(o.categoryId, unittest.equals('foo')); |
| 490 unittest.expect(o.name, unittest.equals('foo')); |
| 491 } |
| 492 buildCounterCategoryItems--; |
| 493 } |
| 494 |
| 495 buildUnnamed542() { |
| 496 var o = new core.List<api.CategoryItems>(); |
| 497 o.add(buildCategoryItems()); |
| 498 o.add(buildCategoryItems()); |
| 499 return o; |
| 500 } |
| 501 |
| 502 checkUnnamed542(core.List<api.CategoryItems> o) { |
| 503 unittest.expect(o, unittest.hasLength(2)); |
| 504 checkCategoryItems(o[0]); |
| 505 checkCategoryItems(o[1]); |
| 506 } |
| 507 |
| 508 core.int buildCounterCategory = 0; |
| 509 buildCategory() { |
| 510 var o = new api.Category(); |
| 511 buildCounterCategory++; |
| 512 if (buildCounterCategory < 3) { |
| 513 o.items = buildUnnamed542(); |
| 514 o.kind = "foo"; |
| 515 } |
| 516 buildCounterCategory--; |
| 517 return o; |
| 518 } |
| 519 |
| 520 checkCategory(api.Category o) { |
| 521 buildCounterCategory++; |
| 522 if (buildCounterCategory < 3) { |
| 523 checkUnnamed542(o.items); |
| 524 unittest.expect(o.kind, unittest.equals('foo')); |
| 525 } |
| 526 buildCounterCategory--; |
| 527 } |
| 528 |
| 472 core.int buildCounterConcurrentAccessRestriction = 0; | 529 core.int buildCounterConcurrentAccessRestriction = 0; |
| 473 buildConcurrentAccessRestriction() { | 530 buildConcurrentAccessRestriction() { |
| 474 var o = new api.ConcurrentAccessRestriction(); | 531 var o = new api.ConcurrentAccessRestriction(); |
| 475 buildCounterConcurrentAccessRestriction++; | 532 buildCounterConcurrentAccessRestriction++; |
| 476 if (buildCounterConcurrentAccessRestriction < 3) { | 533 if (buildCounterConcurrentAccessRestriction < 3) { |
| 477 o.deviceAllowed = true; | 534 o.deviceAllowed = true; |
| 478 o.kind = "foo"; | 535 o.kind = "foo"; |
| 479 o.maxConcurrentDevices = 42; | 536 o.maxConcurrentDevices = 42; |
| 480 o.message = "foo"; | 537 o.message = "foo"; |
| 481 o.nonce = "foo"; | 538 o.nonce = "foo"; |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 | 640 |
| 584 checkDictlayerdataDictWordsDerivatives(api.DictlayerdataDictWordsDerivatives o)
{ | 641 checkDictlayerdataDictWordsDerivatives(api.DictlayerdataDictWordsDerivatives o)
{ |
| 585 buildCounterDictlayerdataDictWordsDerivatives++; | 642 buildCounterDictlayerdataDictWordsDerivatives++; |
| 586 if (buildCounterDictlayerdataDictWordsDerivatives < 3) { | 643 if (buildCounterDictlayerdataDictWordsDerivatives < 3) { |
| 587 checkDictlayerdataDictWordsDerivativesSource(o.source); | 644 checkDictlayerdataDictWordsDerivativesSource(o.source); |
| 588 unittest.expect(o.text, unittest.equals('foo')); | 645 unittest.expect(o.text, unittest.equals('foo')); |
| 589 } | 646 } |
| 590 buildCounterDictlayerdataDictWordsDerivatives--; | 647 buildCounterDictlayerdataDictWordsDerivatives--; |
| 591 } | 648 } |
| 592 | 649 |
| 593 buildUnnamed310() { | 650 buildUnnamed543() { |
| 594 var o = new core.List<api.DictlayerdataDictWordsDerivatives>(); | 651 var o = new core.List<api.DictlayerdataDictWordsDerivatives>(); |
| 595 o.add(buildDictlayerdataDictWordsDerivatives()); | 652 o.add(buildDictlayerdataDictWordsDerivatives()); |
| 596 o.add(buildDictlayerdataDictWordsDerivatives()); | 653 o.add(buildDictlayerdataDictWordsDerivatives()); |
| 597 return o; | 654 return o; |
| 598 } | 655 } |
| 599 | 656 |
| 600 checkUnnamed310(core.List<api.DictlayerdataDictWordsDerivatives> o) { | 657 checkUnnamed543(core.List<api.DictlayerdataDictWordsDerivatives> o) { |
| 601 unittest.expect(o, unittest.hasLength(2)); | 658 unittest.expect(o, unittest.hasLength(2)); |
| 602 checkDictlayerdataDictWordsDerivatives(o[0]); | 659 checkDictlayerdataDictWordsDerivatives(o[0]); |
| 603 checkDictlayerdataDictWordsDerivatives(o[1]); | 660 checkDictlayerdataDictWordsDerivatives(o[1]); |
| 604 } | 661 } |
| 605 | 662 |
| 606 core.int buildCounterDictlayerdataDictWordsExamplesSource = 0; | 663 core.int buildCounterDictlayerdataDictWordsExamplesSource = 0; |
| 607 buildDictlayerdataDictWordsExamplesSource() { | 664 buildDictlayerdataDictWordsExamplesSource() { |
| 608 var o = new api.DictlayerdataDictWordsExamplesSource(); | 665 var o = new api.DictlayerdataDictWordsExamplesSource(); |
| 609 buildCounterDictlayerdataDictWordsExamplesSource++; | 666 buildCounterDictlayerdataDictWordsExamplesSource++; |
| 610 if (buildCounterDictlayerdataDictWordsExamplesSource < 3) { | 667 if (buildCounterDictlayerdataDictWordsExamplesSource < 3) { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 638 | 695 |
| 639 checkDictlayerdataDictWordsExamples(api.DictlayerdataDictWordsExamples o) { | 696 checkDictlayerdataDictWordsExamples(api.DictlayerdataDictWordsExamples o) { |
| 640 buildCounterDictlayerdataDictWordsExamples++; | 697 buildCounterDictlayerdataDictWordsExamples++; |
| 641 if (buildCounterDictlayerdataDictWordsExamples < 3) { | 698 if (buildCounterDictlayerdataDictWordsExamples < 3) { |
| 642 checkDictlayerdataDictWordsExamplesSource(o.source); | 699 checkDictlayerdataDictWordsExamplesSource(o.source); |
| 643 unittest.expect(o.text, unittest.equals('foo')); | 700 unittest.expect(o.text, unittest.equals('foo')); |
| 644 } | 701 } |
| 645 buildCounterDictlayerdataDictWordsExamples--; | 702 buildCounterDictlayerdataDictWordsExamples--; |
| 646 } | 703 } |
| 647 | 704 |
| 648 buildUnnamed311() { | 705 buildUnnamed544() { |
| 649 var o = new core.List<api.DictlayerdataDictWordsExamples>(); | 706 var o = new core.List<api.DictlayerdataDictWordsExamples>(); |
| 650 o.add(buildDictlayerdataDictWordsExamples()); | 707 o.add(buildDictlayerdataDictWordsExamples()); |
| 651 o.add(buildDictlayerdataDictWordsExamples()); | 708 o.add(buildDictlayerdataDictWordsExamples()); |
| 652 return o; | 709 return o; |
| 653 } | 710 } |
| 654 | 711 |
| 655 checkUnnamed311(core.List<api.DictlayerdataDictWordsExamples> o) { | 712 checkUnnamed544(core.List<api.DictlayerdataDictWordsExamples> o) { |
| 656 unittest.expect(o, unittest.hasLength(2)); | 713 unittest.expect(o, unittest.hasLength(2)); |
| 657 checkDictlayerdataDictWordsExamples(o[0]); | 714 checkDictlayerdataDictWordsExamples(o[0]); |
| 658 checkDictlayerdataDictWordsExamples(o[1]); | 715 checkDictlayerdataDictWordsExamples(o[1]); |
| 659 } | 716 } |
| 660 | 717 |
| 661 core.int buildCounterDictlayerdataDictWordsSensesConjugations = 0; | 718 core.int buildCounterDictlayerdataDictWordsSensesConjugations = 0; |
| 662 buildDictlayerdataDictWordsSensesConjugations() { | 719 buildDictlayerdataDictWordsSensesConjugations() { |
| 663 var o = new api.DictlayerdataDictWordsSensesConjugations(); | 720 var o = new api.DictlayerdataDictWordsSensesConjugations(); |
| 664 buildCounterDictlayerdataDictWordsSensesConjugations++; | 721 buildCounterDictlayerdataDictWordsSensesConjugations++; |
| 665 if (buildCounterDictlayerdataDictWordsSensesConjugations < 3) { | 722 if (buildCounterDictlayerdataDictWordsSensesConjugations < 3) { |
| 666 o.type = "foo"; | 723 o.type = "foo"; |
| 667 o.value = "foo"; | 724 o.value = "foo"; |
| 668 } | 725 } |
| 669 buildCounterDictlayerdataDictWordsSensesConjugations--; | 726 buildCounterDictlayerdataDictWordsSensesConjugations--; |
| 670 return o; | 727 return o; |
| 671 } | 728 } |
| 672 | 729 |
| 673 checkDictlayerdataDictWordsSensesConjugations(api.DictlayerdataDictWordsSensesCo
njugations o) { | 730 checkDictlayerdataDictWordsSensesConjugations(api.DictlayerdataDictWordsSensesCo
njugations o) { |
| 674 buildCounterDictlayerdataDictWordsSensesConjugations++; | 731 buildCounterDictlayerdataDictWordsSensesConjugations++; |
| 675 if (buildCounterDictlayerdataDictWordsSensesConjugations < 3) { | 732 if (buildCounterDictlayerdataDictWordsSensesConjugations < 3) { |
| 676 unittest.expect(o.type, unittest.equals('foo')); | 733 unittest.expect(o.type, unittest.equals('foo')); |
| 677 unittest.expect(o.value, unittest.equals('foo')); | 734 unittest.expect(o.value, unittest.equals('foo')); |
| 678 } | 735 } |
| 679 buildCounterDictlayerdataDictWordsSensesConjugations--; | 736 buildCounterDictlayerdataDictWordsSensesConjugations--; |
| 680 } | 737 } |
| 681 | 738 |
| 682 buildUnnamed312() { | 739 buildUnnamed545() { |
| 683 var o = new core.List<api.DictlayerdataDictWordsSensesConjugations>(); | 740 var o = new core.List<api.DictlayerdataDictWordsSensesConjugations>(); |
| 684 o.add(buildDictlayerdataDictWordsSensesConjugations()); | 741 o.add(buildDictlayerdataDictWordsSensesConjugations()); |
| 685 o.add(buildDictlayerdataDictWordsSensesConjugations()); | 742 o.add(buildDictlayerdataDictWordsSensesConjugations()); |
| 686 return o; | 743 return o; |
| 687 } | 744 } |
| 688 | 745 |
| 689 checkUnnamed312(core.List<api.DictlayerdataDictWordsSensesConjugations> o) { | 746 checkUnnamed545(core.List<api.DictlayerdataDictWordsSensesConjugations> o) { |
| 690 unittest.expect(o, unittest.hasLength(2)); | 747 unittest.expect(o, unittest.hasLength(2)); |
| 691 checkDictlayerdataDictWordsSensesConjugations(o[0]); | 748 checkDictlayerdataDictWordsSensesConjugations(o[0]); |
| 692 checkDictlayerdataDictWordsSensesConjugations(o[1]); | 749 checkDictlayerdataDictWordsSensesConjugations(o[1]); |
| 693 } | 750 } |
| 694 | 751 |
| 695 core.int buildCounterDictlayerdataDictWordsSensesDefinitionsExamplesSource = 0; | 752 core.int buildCounterDictlayerdataDictWordsSensesDefinitionsExamplesSource = 0; |
| 696 buildDictlayerdataDictWordsSensesDefinitionsExamplesSource() { | 753 buildDictlayerdataDictWordsSensesDefinitionsExamplesSource() { |
| 697 var o = new api.DictlayerdataDictWordsSensesDefinitionsExamplesSource(); | 754 var o = new api.DictlayerdataDictWordsSensesDefinitionsExamplesSource(); |
| 698 buildCounterDictlayerdataDictWordsSensesDefinitionsExamplesSource++; | 755 buildCounterDictlayerdataDictWordsSensesDefinitionsExamplesSource++; |
| 699 if (buildCounterDictlayerdataDictWordsSensesDefinitionsExamplesSource < 3) { | 756 if (buildCounterDictlayerdataDictWordsSensesDefinitionsExamplesSource < 3) { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 727 | 784 |
| 728 checkDictlayerdataDictWordsSensesDefinitionsExamples(api.DictlayerdataDictWordsS
ensesDefinitionsExamples o) { | 785 checkDictlayerdataDictWordsSensesDefinitionsExamples(api.DictlayerdataDictWordsS
ensesDefinitionsExamples o) { |
| 729 buildCounterDictlayerdataDictWordsSensesDefinitionsExamples++; | 786 buildCounterDictlayerdataDictWordsSensesDefinitionsExamples++; |
| 730 if (buildCounterDictlayerdataDictWordsSensesDefinitionsExamples < 3) { | 787 if (buildCounterDictlayerdataDictWordsSensesDefinitionsExamples < 3) { |
| 731 checkDictlayerdataDictWordsSensesDefinitionsExamplesSource(o.source); | 788 checkDictlayerdataDictWordsSensesDefinitionsExamplesSource(o.source); |
| 732 unittest.expect(o.text, unittest.equals('foo')); | 789 unittest.expect(o.text, unittest.equals('foo')); |
| 733 } | 790 } |
| 734 buildCounterDictlayerdataDictWordsSensesDefinitionsExamples--; | 791 buildCounterDictlayerdataDictWordsSensesDefinitionsExamples--; |
| 735 } | 792 } |
| 736 | 793 |
| 737 buildUnnamed313() { | 794 buildUnnamed546() { |
| 738 var o = new core.List<api.DictlayerdataDictWordsSensesDefinitionsExamples>(); | 795 var o = new core.List<api.DictlayerdataDictWordsSensesDefinitionsExamples>(); |
| 739 o.add(buildDictlayerdataDictWordsSensesDefinitionsExamples()); | 796 o.add(buildDictlayerdataDictWordsSensesDefinitionsExamples()); |
| 740 o.add(buildDictlayerdataDictWordsSensesDefinitionsExamples()); | 797 o.add(buildDictlayerdataDictWordsSensesDefinitionsExamples()); |
| 741 return o; | 798 return o; |
| 742 } | 799 } |
| 743 | 800 |
| 744 checkUnnamed313(core.List<api.DictlayerdataDictWordsSensesDefinitionsExamples> o
) { | 801 checkUnnamed546(core.List<api.DictlayerdataDictWordsSensesDefinitionsExamples> o
) { |
| 745 unittest.expect(o, unittest.hasLength(2)); | 802 unittest.expect(o, unittest.hasLength(2)); |
| 746 checkDictlayerdataDictWordsSensesDefinitionsExamples(o[0]); | 803 checkDictlayerdataDictWordsSensesDefinitionsExamples(o[0]); |
| 747 checkDictlayerdataDictWordsSensesDefinitionsExamples(o[1]); | 804 checkDictlayerdataDictWordsSensesDefinitionsExamples(o[1]); |
| 748 } | 805 } |
| 749 | 806 |
| 750 core.int buildCounterDictlayerdataDictWordsSensesDefinitions = 0; | 807 core.int buildCounterDictlayerdataDictWordsSensesDefinitions = 0; |
| 751 buildDictlayerdataDictWordsSensesDefinitions() { | 808 buildDictlayerdataDictWordsSensesDefinitions() { |
| 752 var o = new api.DictlayerdataDictWordsSensesDefinitions(); | 809 var o = new api.DictlayerdataDictWordsSensesDefinitions(); |
| 753 buildCounterDictlayerdataDictWordsSensesDefinitions++; | 810 buildCounterDictlayerdataDictWordsSensesDefinitions++; |
| 754 if (buildCounterDictlayerdataDictWordsSensesDefinitions < 3) { | 811 if (buildCounterDictlayerdataDictWordsSensesDefinitions < 3) { |
| 755 o.definition = "foo"; | 812 o.definition = "foo"; |
| 756 o.examples = buildUnnamed313(); | 813 o.examples = buildUnnamed546(); |
| 757 } | 814 } |
| 758 buildCounterDictlayerdataDictWordsSensesDefinitions--; | 815 buildCounterDictlayerdataDictWordsSensesDefinitions--; |
| 759 return o; | 816 return o; |
| 760 } | 817 } |
| 761 | 818 |
| 762 checkDictlayerdataDictWordsSensesDefinitions(api.DictlayerdataDictWordsSensesDef
initions o) { | 819 checkDictlayerdataDictWordsSensesDefinitions(api.DictlayerdataDictWordsSensesDef
initions o) { |
| 763 buildCounterDictlayerdataDictWordsSensesDefinitions++; | 820 buildCounterDictlayerdataDictWordsSensesDefinitions++; |
| 764 if (buildCounterDictlayerdataDictWordsSensesDefinitions < 3) { | 821 if (buildCounterDictlayerdataDictWordsSensesDefinitions < 3) { |
| 765 unittest.expect(o.definition, unittest.equals('foo')); | 822 unittest.expect(o.definition, unittest.equals('foo')); |
| 766 checkUnnamed313(o.examples); | 823 checkUnnamed546(o.examples); |
| 767 } | 824 } |
| 768 buildCounterDictlayerdataDictWordsSensesDefinitions--; | 825 buildCounterDictlayerdataDictWordsSensesDefinitions--; |
| 769 } | 826 } |
| 770 | 827 |
| 771 buildUnnamed314() { | 828 buildUnnamed547() { |
| 772 var o = new core.List<api.DictlayerdataDictWordsSensesDefinitions>(); | 829 var o = new core.List<api.DictlayerdataDictWordsSensesDefinitions>(); |
| 773 o.add(buildDictlayerdataDictWordsSensesDefinitions()); | 830 o.add(buildDictlayerdataDictWordsSensesDefinitions()); |
| 774 o.add(buildDictlayerdataDictWordsSensesDefinitions()); | 831 o.add(buildDictlayerdataDictWordsSensesDefinitions()); |
| 775 return o; | 832 return o; |
| 776 } | 833 } |
| 777 | 834 |
| 778 checkUnnamed314(core.List<api.DictlayerdataDictWordsSensesDefinitions> o) { | 835 checkUnnamed547(core.List<api.DictlayerdataDictWordsSensesDefinitions> o) { |
| 779 unittest.expect(o, unittest.hasLength(2)); | 836 unittest.expect(o, unittest.hasLength(2)); |
| 780 checkDictlayerdataDictWordsSensesDefinitions(o[0]); | 837 checkDictlayerdataDictWordsSensesDefinitions(o[0]); |
| 781 checkDictlayerdataDictWordsSensesDefinitions(o[1]); | 838 checkDictlayerdataDictWordsSensesDefinitions(o[1]); |
| 782 } | 839 } |
| 783 | 840 |
| 784 core.int buildCounterDictlayerdataDictWordsSensesSource = 0; | 841 core.int buildCounterDictlayerdataDictWordsSensesSource = 0; |
| 785 buildDictlayerdataDictWordsSensesSource() { | 842 buildDictlayerdataDictWordsSensesSource() { |
| 786 var o = new api.DictlayerdataDictWordsSensesSource(); | 843 var o = new api.DictlayerdataDictWordsSensesSource(); |
| 787 buildCounterDictlayerdataDictWordsSensesSource++; | 844 buildCounterDictlayerdataDictWordsSensesSource++; |
| 788 if (buildCounterDictlayerdataDictWordsSensesSource < 3) { | 845 if (buildCounterDictlayerdataDictWordsSensesSource < 3) { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 | 894 |
| 838 checkDictlayerdataDictWordsSensesSynonyms(api.DictlayerdataDictWordsSensesSynony
ms o) { | 895 checkDictlayerdataDictWordsSensesSynonyms(api.DictlayerdataDictWordsSensesSynony
ms o) { |
| 839 buildCounterDictlayerdataDictWordsSensesSynonyms++; | 896 buildCounterDictlayerdataDictWordsSensesSynonyms++; |
| 840 if (buildCounterDictlayerdataDictWordsSensesSynonyms < 3) { | 897 if (buildCounterDictlayerdataDictWordsSensesSynonyms < 3) { |
| 841 checkDictlayerdataDictWordsSensesSynonymsSource(o.source); | 898 checkDictlayerdataDictWordsSensesSynonymsSource(o.source); |
| 842 unittest.expect(o.text, unittest.equals('foo')); | 899 unittest.expect(o.text, unittest.equals('foo')); |
| 843 } | 900 } |
| 844 buildCounterDictlayerdataDictWordsSensesSynonyms--; | 901 buildCounterDictlayerdataDictWordsSensesSynonyms--; |
| 845 } | 902 } |
| 846 | 903 |
| 847 buildUnnamed315() { | 904 buildUnnamed548() { |
| 848 var o = new core.List<api.DictlayerdataDictWordsSensesSynonyms>(); | 905 var o = new core.List<api.DictlayerdataDictWordsSensesSynonyms>(); |
| 849 o.add(buildDictlayerdataDictWordsSensesSynonyms()); | 906 o.add(buildDictlayerdataDictWordsSensesSynonyms()); |
| 850 o.add(buildDictlayerdataDictWordsSensesSynonyms()); | 907 o.add(buildDictlayerdataDictWordsSensesSynonyms()); |
| 851 return o; | 908 return o; |
| 852 } | 909 } |
| 853 | 910 |
| 854 checkUnnamed315(core.List<api.DictlayerdataDictWordsSensesSynonyms> o) { | 911 checkUnnamed548(core.List<api.DictlayerdataDictWordsSensesSynonyms> o) { |
| 855 unittest.expect(o, unittest.hasLength(2)); | 912 unittest.expect(o, unittest.hasLength(2)); |
| 856 checkDictlayerdataDictWordsSensesSynonyms(o[0]); | 913 checkDictlayerdataDictWordsSensesSynonyms(o[0]); |
| 857 checkDictlayerdataDictWordsSensesSynonyms(o[1]); | 914 checkDictlayerdataDictWordsSensesSynonyms(o[1]); |
| 858 } | 915 } |
| 859 | 916 |
| 860 core.int buildCounterDictlayerdataDictWordsSenses = 0; | 917 core.int buildCounterDictlayerdataDictWordsSenses = 0; |
| 861 buildDictlayerdataDictWordsSenses() { | 918 buildDictlayerdataDictWordsSenses() { |
| 862 var o = new api.DictlayerdataDictWordsSenses(); | 919 var o = new api.DictlayerdataDictWordsSenses(); |
| 863 buildCounterDictlayerdataDictWordsSenses++; | 920 buildCounterDictlayerdataDictWordsSenses++; |
| 864 if (buildCounterDictlayerdataDictWordsSenses < 3) { | 921 if (buildCounterDictlayerdataDictWordsSenses < 3) { |
| 865 o.conjugations = buildUnnamed312(); | 922 o.conjugations = buildUnnamed545(); |
| 866 o.definitions = buildUnnamed314(); | 923 o.definitions = buildUnnamed547(); |
| 867 o.partOfSpeech = "foo"; | 924 o.partOfSpeech = "foo"; |
| 868 o.pronunciation = "foo"; | 925 o.pronunciation = "foo"; |
| 869 o.pronunciationUrl = "foo"; | 926 o.pronunciationUrl = "foo"; |
| 870 o.source = buildDictlayerdataDictWordsSensesSource(); | 927 o.source = buildDictlayerdataDictWordsSensesSource(); |
| 871 o.syllabification = "foo"; | 928 o.syllabification = "foo"; |
| 872 o.synonyms = buildUnnamed315(); | 929 o.synonyms = buildUnnamed548(); |
| 873 } | 930 } |
| 874 buildCounterDictlayerdataDictWordsSenses--; | 931 buildCounterDictlayerdataDictWordsSenses--; |
| 875 return o; | 932 return o; |
| 876 } | 933 } |
| 877 | 934 |
| 878 checkDictlayerdataDictWordsSenses(api.DictlayerdataDictWordsSenses o) { | 935 checkDictlayerdataDictWordsSenses(api.DictlayerdataDictWordsSenses o) { |
| 879 buildCounterDictlayerdataDictWordsSenses++; | 936 buildCounterDictlayerdataDictWordsSenses++; |
| 880 if (buildCounterDictlayerdataDictWordsSenses < 3) { | 937 if (buildCounterDictlayerdataDictWordsSenses < 3) { |
| 881 checkUnnamed312(o.conjugations); | 938 checkUnnamed545(o.conjugations); |
| 882 checkUnnamed314(o.definitions); | 939 checkUnnamed547(o.definitions); |
| 883 unittest.expect(o.partOfSpeech, unittest.equals('foo')); | 940 unittest.expect(o.partOfSpeech, unittest.equals('foo')); |
| 884 unittest.expect(o.pronunciation, unittest.equals('foo')); | 941 unittest.expect(o.pronunciation, unittest.equals('foo')); |
| 885 unittest.expect(o.pronunciationUrl, unittest.equals('foo')); | 942 unittest.expect(o.pronunciationUrl, unittest.equals('foo')); |
| 886 checkDictlayerdataDictWordsSensesSource(o.source); | 943 checkDictlayerdataDictWordsSensesSource(o.source); |
| 887 unittest.expect(o.syllabification, unittest.equals('foo')); | 944 unittest.expect(o.syllabification, unittest.equals('foo')); |
| 888 checkUnnamed315(o.synonyms); | 945 checkUnnamed548(o.synonyms); |
| 889 } | 946 } |
| 890 buildCounterDictlayerdataDictWordsSenses--; | 947 buildCounterDictlayerdataDictWordsSenses--; |
| 891 } | 948 } |
| 892 | 949 |
| 893 buildUnnamed316() { | 950 buildUnnamed549() { |
| 894 var o = new core.List<api.DictlayerdataDictWordsSenses>(); | 951 var o = new core.List<api.DictlayerdataDictWordsSenses>(); |
| 895 o.add(buildDictlayerdataDictWordsSenses()); | 952 o.add(buildDictlayerdataDictWordsSenses()); |
| 896 o.add(buildDictlayerdataDictWordsSenses()); | 953 o.add(buildDictlayerdataDictWordsSenses()); |
| 897 return o; | 954 return o; |
| 898 } | 955 } |
| 899 | 956 |
| 900 checkUnnamed316(core.List<api.DictlayerdataDictWordsSenses> o) { | 957 checkUnnamed549(core.List<api.DictlayerdataDictWordsSenses> o) { |
| 901 unittest.expect(o, unittest.hasLength(2)); | 958 unittest.expect(o, unittest.hasLength(2)); |
| 902 checkDictlayerdataDictWordsSenses(o[0]); | 959 checkDictlayerdataDictWordsSenses(o[0]); |
| 903 checkDictlayerdataDictWordsSenses(o[1]); | 960 checkDictlayerdataDictWordsSenses(o[1]); |
| 904 } | 961 } |
| 905 | 962 |
| 906 core.int buildCounterDictlayerdataDictWordsSource = 0; | 963 core.int buildCounterDictlayerdataDictWordsSource = 0; |
| 907 buildDictlayerdataDictWordsSource() { | 964 buildDictlayerdataDictWordsSource() { |
| 908 var o = new api.DictlayerdataDictWordsSource(); | 965 var o = new api.DictlayerdataDictWordsSource(); |
| 909 buildCounterDictlayerdataDictWordsSource++; | 966 buildCounterDictlayerdataDictWordsSource++; |
| 910 if (buildCounterDictlayerdataDictWordsSource < 3) { | 967 if (buildCounterDictlayerdataDictWordsSource < 3) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 922 unittest.expect(o.url, unittest.equals('foo')); | 979 unittest.expect(o.url, unittest.equals('foo')); |
| 923 } | 980 } |
| 924 buildCounterDictlayerdataDictWordsSource--; | 981 buildCounterDictlayerdataDictWordsSource--; |
| 925 } | 982 } |
| 926 | 983 |
| 927 core.int buildCounterDictlayerdataDictWords = 0; | 984 core.int buildCounterDictlayerdataDictWords = 0; |
| 928 buildDictlayerdataDictWords() { | 985 buildDictlayerdataDictWords() { |
| 929 var o = new api.DictlayerdataDictWords(); | 986 var o = new api.DictlayerdataDictWords(); |
| 930 buildCounterDictlayerdataDictWords++; | 987 buildCounterDictlayerdataDictWords++; |
| 931 if (buildCounterDictlayerdataDictWords < 3) { | 988 if (buildCounterDictlayerdataDictWords < 3) { |
| 932 o.derivatives = buildUnnamed310(); | 989 o.derivatives = buildUnnamed543(); |
| 933 o.examples = buildUnnamed311(); | 990 o.examples = buildUnnamed544(); |
| 934 o.senses = buildUnnamed316(); | 991 o.senses = buildUnnamed549(); |
| 935 o.source = buildDictlayerdataDictWordsSource(); | 992 o.source = buildDictlayerdataDictWordsSource(); |
| 936 } | 993 } |
| 937 buildCounterDictlayerdataDictWords--; | 994 buildCounterDictlayerdataDictWords--; |
| 938 return o; | 995 return o; |
| 939 } | 996 } |
| 940 | 997 |
| 941 checkDictlayerdataDictWords(api.DictlayerdataDictWords o) { | 998 checkDictlayerdataDictWords(api.DictlayerdataDictWords o) { |
| 942 buildCounterDictlayerdataDictWords++; | 999 buildCounterDictlayerdataDictWords++; |
| 943 if (buildCounterDictlayerdataDictWords < 3) { | 1000 if (buildCounterDictlayerdataDictWords < 3) { |
| 944 checkUnnamed310(o.derivatives); | 1001 checkUnnamed543(o.derivatives); |
| 945 checkUnnamed311(o.examples); | 1002 checkUnnamed544(o.examples); |
| 946 checkUnnamed316(o.senses); | 1003 checkUnnamed549(o.senses); |
| 947 checkDictlayerdataDictWordsSource(o.source); | 1004 checkDictlayerdataDictWordsSource(o.source); |
| 948 } | 1005 } |
| 949 buildCounterDictlayerdataDictWords--; | 1006 buildCounterDictlayerdataDictWords--; |
| 950 } | 1007 } |
| 951 | 1008 |
| 952 buildUnnamed317() { | 1009 buildUnnamed550() { |
| 953 var o = new core.List<api.DictlayerdataDictWords>(); | 1010 var o = new core.List<api.DictlayerdataDictWords>(); |
| 954 o.add(buildDictlayerdataDictWords()); | 1011 o.add(buildDictlayerdataDictWords()); |
| 955 o.add(buildDictlayerdataDictWords()); | 1012 o.add(buildDictlayerdataDictWords()); |
| 956 return o; | 1013 return o; |
| 957 } | 1014 } |
| 958 | 1015 |
| 959 checkUnnamed317(core.List<api.DictlayerdataDictWords> o) { | 1016 checkUnnamed550(core.List<api.DictlayerdataDictWords> o) { |
| 960 unittest.expect(o, unittest.hasLength(2)); | 1017 unittest.expect(o, unittest.hasLength(2)); |
| 961 checkDictlayerdataDictWords(o[0]); | 1018 checkDictlayerdataDictWords(o[0]); |
| 962 checkDictlayerdataDictWords(o[1]); | 1019 checkDictlayerdataDictWords(o[1]); |
| 963 } | 1020 } |
| 964 | 1021 |
| 965 core.int buildCounterDictlayerdataDict = 0; | 1022 core.int buildCounterDictlayerdataDict = 0; |
| 966 buildDictlayerdataDict() { | 1023 buildDictlayerdataDict() { |
| 967 var o = new api.DictlayerdataDict(); | 1024 var o = new api.DictlayerdataDict(); |
| 968 buildCounterDictlayerdataDict++; | 1025 buildCounterDictlayerdataDict++; |
| 969 if (buildCounterDictlayerdataDict < 3) { | 1026 if (buildCounterDictlayerdataDict < 3) { |
| 970 o.source = buildDictlayerdataDictSource(); | 1027 o.source = buildDictlayerdataDictSource(); |
| 971 o.words = buildUnnamed317(); | 1028 o.words = buildUnnamed550(); |
| 972 } | 1029 } |
| 973 buildCounterDictlayerdataDict--; | 1030 buildCounterDictlayerdataDict--; |
| 974 return o; | 1031 return o; |
| 975 } | 1032 } |
| 976 | 1033 |
| 977 checkDictlayerdataDict(api.DictlayerdataDict o) { | 1034 checkDictlayerdataDict(api.DictlayerdataDict o) { |
| 978 buildCounterDictlayerdataDict++; | 1035 buildCounterDictlayerdataDict++; |
| 979 if (buildCounterDictlayerdataDict < 3) { | 1036 if (buildCounterDictlayerdataDict < 3) { |
| 980 checkDictlayerdataDictSource(o.source); | 1037 checkDictlayerdataDictSource(o.source); |
| 981 checkUnnamed317(o.words); | 1038 checkUnnamed550(o.words); |
| 982 } | 1039 } |
| 983 buildCounterDictlayerdataDict--; | 1040 buildCounterDictlayerdataDict--; |
| 984 } | 1041 } |
| 985 | 1042 |
| 986 core.int buildCounterDictlayerdata = 0; | 1043 core.int buildCounterDictlayerdata = 0; |
| 987 buildDictlayerdata() { | 1044 buildDictlayerdata() { |
| 988 var o = new api.Dictlayerdata(); | 1045 var o = new api.Dictlayerdata(); |
| 989 buildCounterDictlayerdata++; | 1046 buildCounterDictlayerdata++; |
| 990 if (buildCounterDictlayerdata < 3) { | 1047 if (buildCounterDictlayerdata < 3) { |
| 991 o.common = buildDictlayerdataCommon(); | 1048 o.common = buildDictlayerdataCommon(); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1040 unittest.expect(o.nonce, unittest.equals('foo')); | 1097 unittest.expect(o.nonce, unittest.equals('foo')); |
| 1041 unittest.expect(o.reasonCode, unittest.equals('foo')); | 1098 unittest.expect(o.reasonCode, unittest.equals('foo')); |
| 1042 unittest.expect(o.restricted, unittest.isTrue); | 1099 unittest.expect(o.restricted, unittest.isTrue); |
| 1043 unittest.expect(o.signature, unittest.equals('foo')); | 1100 unittest.expect(o.signature, unittest.equals('foo')); |
| 1044 unittest.expect(o.source, unittest.equals('foo')); | 1101 unittest.expect(o.source, unittest.equals('foo')); |
| 1045 unittest.expect(o.volumeId, unittest.equals('foo')); | 1102 unittest.expect(o.volumeId, unittest.equals('foo')); |
| 1046 } | 1103 } |
| 1047 buildCounterDownloadAccessRestriction--; | 1104 buildCounterDownloadAccessRestriction--; |
| 1048 } | 1105 } |
| 1049 | 1106 |
| 1050 buildUnnamed318() { | 1107 buildUnnamed551() { |
| 1051 var o = new core.List<api.DownloadAccessRestriction>(); | 1108 var o = new core.List<api.DownloadAccessRestriction>(); |
| 1052 o.add(buildDownloadAccessRestriction()); | 1109 o.add(buildDownloadAccessRestriction()); |
| 1053 o.add(buildDownloadAccessRestriction()); | 1110 o.add(buildDownloadAccessRestriction()); |
| 1054 return o; | 1111 return o; |
| 1055 } | 1112 } |
| 1056 | 1113 |
| 1057 checkUnnamed318(core.List<api.DownloadAccessRestriction> o) { | 1114 checkUnnamed551(core.List<api.DownloadAccessRestriction> o) { |
| 1058 unittest.expect(o, unittest.hasLength(2)); | 1115 unittest.expect(o, unittest.hasLength(2)); |
| 1059 checkDownloadAccessRestriction(o[0]); | 1116 checkDownloadAccessRestriction(o[0]); |
| 1060 checkDownloadAccessRestriction(o[1]); | 1117 checkDownloadAccessRestriction(o[1]); |
| 1061 } | 1118 } |
| 1062 | 1119 |
| 1063 core.int buildCounterDownloadAccesses = 0; | 1120 core.int buildCounterDownloadAccesses = 0; |
| 1064 buildDownloadAccesses() { | 1121 buildDownloadAccesses() { |
| 1065 var o = new api.DownloadAccesses(); | 1122 var o = new api.DownloadAccesses(); |
| 1066 buildCounterDownloadAccesses++; | 1123 buildCounterDownloadAccesses++; |
| 1067 if (buildCounterDownloadAccesses < 3) { | 1124 if (buildCounterDownloadAccesses < 3) { |
| 1068 o.downloadAccessList = buildUnnamed318(); | 1125 o.downloadAccessList = buildUnnamed551(); |
| 1069 o.kind = "foo"; | 1126 o.kind = "foo"; |
| 1070 } | 1127 } |
| 1071 buildCounterDownloadAccesses--; | 1128 buildCounterDownloadAccesses--; |
| 1072 return o; | 1129 return o; |
| 1073 } | 1130 } |
| 1074 | 1131 |
| 1075 checkDownloadAccesses(api.DownloadAccesses o) { | 1132 checkDownloadAccesses(api.DownloadAccesses o) { |
| 1076 buildCounterDownloadAccesses++; | 1133 buildCounterDownloadAccesses++; |
| 1077 if (buildCounterDownloadAccesses < 3) { | 1134 if (buildCounterDownloadAccesses < 3) { |
| 1078 checkUnnamed318(o.downloadAccessList); | 1135 checkUnnamed551(o.downloadAccessList); |
| 1079 unittest.expect(o.kind, unittest.equals('foo')); | 1136 unittest.expect(o.kind, unittest.equals('foo')); |
| 1080 } | 1137 } |
| 1081 buildCounterDownloadAccesses--; | 1138 buildCounterDownloadAccesses--; |
| 1082 } | 1139 } |
| 1083 | 1140 |
| 1084 core.int buildCounterGeolayerdataCommon = 0; | 1141 core.int buildCounterGeolayerdataCommon = 0; |
| 1085 buildGeolayerdataCommon() { | 1142 buildGeolayerdataCommon() { |
| 1086 var o = new api.GeolayerdataCommon(); | 1143 var o = new api.GeolayerdataCommon(); |
| 1087 buildCounterGeolayerdataCommon++; | 1144 buildCounterGeolayerdataCommon++; |
| 1088 if (buildCounterGeolayerdataCommon < 3) { | 1145 if (buildCounterGeolayerdataCommon < 3) { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1122 | 1179 |
| 1123 checkGeolayerdataGeoBoundary(api.GeolayerdataGeoBoundary o) { | 1180 checkGeolayerdataGeoBoundary(api.GeolayerdataGeoBoundary o) { |
| 1124 buildCounterGeolayerdataGeoBoundary++; | 1181 buildCounterGeolayerdataGeoBoundary++; |
| 1125 if (buildCounterGeolayerdataGeoBoundary < 3) { | 1182 if (buildCounterGeolayerdataGeoBoundary < 3) { |
| 1126 unittest.expect(o.latitude, unittest.equals(42)); | 1183 unittest.expect(o.latitude, unittest.equals(42)); |
| 1127 unittest.expect(o.longitude, unittest.equals(42)); | 1184 unittest.expect(o.longitude, unittest.equals(42)); |
| 1128 } | 1185 } |
| 1129 buildCounterGeolayerdataGeoBoundary--; | 1186 buildCounterGeolayerdataGeoBoundary--; |
| 1130 } | 1187 } |
| 1131 | 1188 |
| 1132 buildUnnamed319() { | 1189 buildUnnamed552() { |
| 1133 var o = new core.List<api.GeolayerdataGeoBoundary>(); | 1190 var o = new core.List<api.GeolayerdataGeoBoundary>(); |
| 1134 o.add(buildGeolayerdataGeoBoundary()); | 1191 o.add(buildGeolayerdataGeoBoundary()); |
| 1135 o.add(buildGeolayerdataGeoBoundary()); | 1192 o.add(buildGeolayerdataGeoBoundary()); |
| 1136 return o; | 1193 return o; |
| 1137 } | 1194 } |
| 1138 | 1195 |
| 1139 checkUnnamed319(core.List<api.GeolayerdataGeoBoundary> o) { | 1196 checkUnnamed552(core.List<api.GeolayerdataGeoBoundary> o) { |
| 1140 unittest.expect(o, unittest.hasLength(2)); | 1197 unittest.expect(o, unittest.hasLength(2)); |
| 1141 checkGeolayerdataGeoBoundary(o[0]); | 1198 checkGeolayerdataGeoBoundary(o[0]); |
| 1142 checkGeolayerdataGeoBoundary(o[1]); | 1199 checkGeolayerdataGeoBoundary(o[1]); |
| 1143 } | 1200 } |
| 1144 | 1201 |
| 1145 buildUnnamed320() { | 1202 buildUnnamed553() { |
| 1146 var o = new core.List<core.List<api.GeolayerdataGeoBoundary>>(); | 1203 var o = new core.List<core.List<api.GeolayerdataGeoBoundary>>(); |
| 1147 o.add(buildUnnamed319()); | 1204 o.add(buildUnnamed552()); |
| 1148 o.add(buildUnnamed319()); | 1205 o.add(buildUnnamed552()); |
| 1149 return o; | 1206 return o; |
| 1150 } | 1207 } |
| 1151 | 1208 |
| 1152 checkUnnamed320(core.List<core.List<api.GeolayerdataGeoBoundary>> o) { | 1209 checkUnnamed553(core.List<core.List<api.GeolayerdataGeoBoundary>> o) { |
| 1153 unittest.expect(o, unittest.hasLength(2)); | 1210 unittest.expect(o, unittest.hasLength(2)); |
| 1154 checkUnnamed319(o[0]); | 1211 checkUnnamed552(o[0]); |
| 1155 checkUnnamed319(o[1]); | 1212 checkUnnamed552(o[1]); |
| 1156 } | 1213 } |
| 1157 | 1214 |
| 1158 core.int buildCounterGeolayerdataGeoViewportHi = 0; | 1215 core.int buildCounterGeolayerdataGeoViewportHi = 0; |
| 1159 buildGeolayerdataGeoViewportHi() { | 1216 buildGeolayerdataGeoViewportHi() { |
| 1160 var o = new api.GeolayerdataGeoViewportHi(); | 1217 var o = new api.GeolayerdataGeoViewportHi(); |
| 1161 buildCounterGeolayerdataGeoViewportHi++; | 1218 buildCounterGeolayerdataGeoViewportHi++; |
| 1162 if (buildCounterGeolayerdataGeoViewportHi < 3) { | 1219 if (buildCounterGeolayerdataGeoViewportHi < 3) { |
| 1163 o.latitude = 42.0; | 1220 o.latitude = 42.0; |
| 1164 o.longitude = 42.0; | 1221 o.longitude = 42.0; |
| 1165 } | 1222 } |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1216 checkGeolayerdataGeoViewportLo(o.lo); | 1273 checkGeolayerdataGeoViewportLo(o.lo); |
| 1217 } | 1274 } |
| 1218 buildCounterGeolayerdataGeoViewport--; | 1275 buildCounterGeolayerdataGeoViewport--; |
| 1219 } | 1276 } |
| 1220 | 1277 |
| 1221 core.int buildCounterGeolayerdataGeo = 0; | 1278 core.int buildCounterGeolayerdataGeo = 0; |
| 1222 buildGeolayerdataGeo() { | 1279 buildGeolayerdataGeo() { |
| 1223 var o = new api.GeolayerdataGeo(); | 1280 var o = new api.GeolayerdataGeo(); |
| 1224 buildCounterGeolayerdataGeo++; | 1281 buildCounterGeolayerdataGeo++; |
| 1225 if (buildCounterGeolayerdataGeo < 3) { | 1282 if (buildCounterGeolayerdataGeo < 3) { |
| 1226 o.boundary = buildUnnamed320(); | 1283 o.boundary = buildUnnamed553(); |
| 1227 o.cachePolicy = "foo"; | 1284 o.cachePolicy = "foo"; |
| 1228 o.countryCode = "foo"; | 1285 o.countryCode = "foo"; |
| 1229 o.latitude = 42.0; | 1286 o.latitude = 42.0; |
| 1230 o.longitude = 42.0; | 1287 o.longitude = 42.0; |
| 1231 o.mapType = "foo"; | 1288 o.mapType = "foo"; |
| 1232 o.viewport = buildGeolayerdataGeoViewport(); | 1289 o.viewport = buildGeolayerdataGeoViewport(); |
| 1233 o.zoom = 42; | 1290 o.zoom = 42; |
| 1234 } | 1291 } |
| 1235 buildCounterGeolayerdataGeo--; | 1292 buildCounterGeolayerdataGeo--; |
| 1236 return o; | 1293 return o; |
| 1237 } | 1294 } |
| 1238 | 1295 |
| 1239 checkGeolayerdataGeo(api.GeolayerdataGeo o) { | 1296 checkGeolayerdataGeo(api.GeolayerdataGeo o) { |
| 1240 buildCounterGeolayerdataGeo++; | 1297 buildCounterGeolayerdataGeo++; |
| 1241 if (buildCounterGeolayerdataGeo < 3) { | 1298 if (buildCounterGeolayerdataGeo < 3) { |
| 1242 checkUnnamed320(o.boundary); | 1299 checkUnnamed553(o.boundary); |
| 1243 unittest.expect(o.cachePolicy, unittest.equals('foo')); | 1300 unittest.expect(o.cachePolicy, unittest.equals('foo')); |
| 1244 unittest.expect(o.countryCode, unittest.equals('foo')); | 1301 unittest.expect(o.countryCode, unittest.equals('foo')); |
| 1245 unittest.expect(o.latitude, unittest.equals(42.0)); | 1302 unittest.expect(o.latitude, unittest.equals(42.0)); |
| 1246 unittest.expect(o.longitude, unittest.equals(42.0)); | 1303 unittest.expect(o.longitude, unittest.equals(42.0)); |
| 1247 unittest.expect(o.mapType, unittest.equals('foo')); | 1304 unittest.expect(o.mapType, unittest.equals('foo')); |
| 1248 checkGeolayerdataGeoViewport(o.viewport); | 1305 checkGeolayerdataGeoViewport(o.viewport); |
| 1249 unittest.expect(o.zoom, unittest.equals(42)); | 1306 unittest.expect(o.zoom, unittest.equals(42)); |
| 1250 } | 1307 } |
| 1251 buildCounterGeolayerdataGeo--; | 1308 buildCounterGeolayerdataGeo--; |
| 1252 } | 1309 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1267 checkGeolayerdata(api.Geolayerdata o) { | 1324 checkGeolayerdata(api.Geolayerdata o) { |
| 1268 buildCounterGeolayerdata++; | 1325 buildCounterGeolayerdata++; |
| 1269 if (buildCounterGeolayerdata < 3) { | 1326 if (buildCounterGeolayerdata < 3) { |
| 1270 checkGeolayerdataCommon(o.common); | 1327 checkGeolayerdataCommon(o.common); |
| 1271 checkGeolayerdataGeo(o.geo); | 1328 checkGeolayerdataGeo(o.geo); |
| 1272 unittest.expect(o.kind, unittest.equals('foo')); | 1329 unittest.expect(o.kind, unittest.equals('foo')); |
| 1273 } | 1330 } |
| 1274 buildCounterGeolayerdata--; | 1331 buildCounterGeolayerdata--; |
| 1275 } | 1332 } |
| 1276 | 1333 |
| 1277 buildUnnamed321() { | 1334 buildUnnamed554() { |
| 1278 var o = new core.List<api.Layersummary>(); | 1335 var o = new core.List<api.Layersummary>(); |
| 1279 o.add(buildLayersummary()); | 1336 o.add(buildLayersummary()); |
| 1280 o.add(buildLayersummary()); | 1337 o.add(buildLayersummary()); |
| 1281 return o; | 1338 return o; |
| 1282 } | 1339 } |
| 1283 | 1340 |
| 1284 checkUnnamed321(core.List<api.Layersummary> o) { | 1341 checkUnnamed554(core.List<api.Layersummary> o) { |
| 1285 unittest.expect(o, unittest.hasLength(2)); | 1342 unittest.expect(o, unittest.hasLength(2)); |
| 1286 checkLayersummary(o[0]); | 1343 checkLayersummary(o[0]); |
| 1287 checkLayersummary(o[1]); | 1344 checkLayersummary(o[1]); |
| 1288 } | 1345 } |
| 1289 | 1346 |
| 1290 core.int buildCounterLayersummaries = 0; | 1347 core.int buildCounterLayersummaries = 0; |
| 1291 buildLayersummaries() { | 1348 buildLayersummaries() { |
| 1292 var o = new api.Layersummaries(); | 1349 var o = new api.Layersummaries(); |
| 1293 buildCounterLayersummaries++; | 1350 buildCounterLayersummaries++; |
| 1294 if (buildCounterLayersummaries < 3) { | 1351 if (buildCounterLayersummaries < 3) { |
| 1295 o.items = buildUnnamed321(); | 1352 o.items = buildUnnamed554(); |
| 1296 o.kind = "foo"; | 1353 o.kind = "foo"; |
| 1297 o.totalItems = 42; | 1354 o.totalItems = 42; |
| 1298 } | 1355 } |
| 1299 buildCounterLayersummaries--; | 1356 buildCounterLayersummaries--; |
| 1300 return o; | 1357 return o; |
| 1301 } | 1358 } |
| 1302 | 1359 |
| 1303 checkLayersummaries(api.Layersummaries o) { | 1360 checkLayersummaries(api.Layersummaries o) { |
| 1304 buildCounterLayersummaries++; | 1361 buildCounterLayersummaries++; |
| 1305 if (buildCounterLayersummaries < 3) { | 1362 if (buildCounterLayersummaries < 3) { |
| 1306 checkUnnamed321(o.items); | 1363 checkUnnamed554(o.items); |
| 1307 unittest.expect(o.kind, unittest.equals('foo')); | 1364 unittest.expect(o.kind, unittest.equals('foo')); |
| 1308 unittest.expect(o.totalItems, unittest.equals(42)); | 1365 unittest.expect(o.totalItems, unittest.equals(42)); |
| 1309 } | 1366 } |
| 1310 buildCounterLayersummaries--; | 1367 buildCounterLayersummaries--; |
| 1311 } | 1368 } |
| 1312 | 1369 |
| 1313 buildUnnamed322() { | 1370 buildUnnamed555() { |
| 1314 var o = new core.List<core.String>(); | 1371 var o = new core.List<core.String>(); |
| 1315 o.add("foo"); | 1372 o.add("foo"); |
| 1316 o.add("foo"); | 1373 o.add("foo"); |
| 1317 return o; | 1374 return o; |
| 1318 } | 1375 } |
| 1319 | 1376 |
| 1320 checkUnnamed322(core.List<core.String> o) { | 1377 checkUnnamed555(core.List<core.String> o) { |
| 1321 unittest.expect(o, unittest.hasLength(2)); | 1378 unittest.expect(o, unittest.hasLength(2)); |
| 1322 unittest.expect(o[0], unittest.equals('foo')); | 1379 unittest.expect(o[0], unittest.equals('foo')); |
| 1323 unittest.expect(o[1], unittest.equals('foo')); | 1380 unittest.expect(o[1], unittest.equals('foo')); |
| 1324 } | 1381 } |
| 1325 | 1382 |
| 1326 core.int buildCounterLayersummary = 0; | 1383 core.int buildCounterLayersummary = 0; |
| 1327 buildLayersummary() { | 1384 buildLayersummary() { |
| 1328 var o = new api.Layersummary(); | 1385 var o = new api.Layersummary(); |
| 1329 buildCounterLayersummary++; | 1386 buildCounterLayersummary++; |
| 1330 if (buildCounterLayersummary < 3) { | 1387 if (buildCounterLayersummary < 3) { |
| 1331 o.annotationCount = 42; | 1388 o.annotationCount = 42; |
| 1332 o.annotationTypes = buildUnnamed322(); | 1389 o.annotationTypes = buildUnnamed555(); |
| 1333 o.annotationsDataLink = "foo"; | 1390 o.annotationsDataLink = "foo"; |
| 1334 o.annotationsLink = "foo"; | 1391 o.annotationsLink = "foo"; |
| 1335 o.contentVersion = "foo"; | 1392 o.contentVersion = "foo"; |
| 1336 o.dataCount = 42; | 1393 o.dataCount = 42; |
| 1337 o.id = "foo"; | 1394 o.id = "foo"; |
| 1338 o.kind = "foo"; | 1395 o.kind = "foo"; |
| 1339 o.layerId = "foo"; | 1396 o.layerId = "foo"; |
| 1340 o.selfLink = "foo"; | 1397 o.selfLink = "foo"; |
| 1341 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 1398 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1342 o.volumeAnnotationsVersion = "foo"; | 1399 o.volumeAnnotationsVersion = "foo"; |
| 1343 o.volumeId = "foo"; | 1400 o.volumeId = "foo"; |
| 1344 } | 1401 } |
| 1345 buildCounterLayersummary--; | 1402 buildCounterLayersummary--; |
| 1346 return o; | 1403 return o; |
| 1347 } | 1404 } |
| 1348 | 1405 |
| 1349 checkLayersummary(api.Layersummary o) { | 1406 checkLayersummary(api.Layersummary o) { |
| 1350 buildCounterLayersummary++; | 1407 buildCounterLayersummary++; |
| 1351 if (buildCounterLayersummary < 3) { | 1408 if (buildCounterLayersummary < 3) { |
| 1352 unittest.expect(o.annotationCount, unittest.equals(42)); | 1409 unittest.expect(o.annotationCount, unittest.equals(42)); |
| 1353 checkUnnamed322(o.annotationTypes); | 1410 checkUnnamed555(o.annotationTypes); |
| 1354 unittest.expect(o.annotationsDataLink, unittest.equals('foo')); | 1411 unittest.expect(o.annotationsDataLink, unittest.equals('foo')); |
| 1355 unittest.expect(o.annotationsLink, unittest.equals('foo')); | 1412 unittest.expect(o.annotationsLink, unittest.equals('foo')); |
| 1356 unittest.expect(o.contentVersion, unittest.equals('foo')); | 1413 unittest.expect(o.contentVersion, unittest.equals('foo')); |
| 1357 unittest.expect(o.dataCount, unittest.equals(42)); | 1414 unittest.expect(o.dataCount, unittest.equals(42)); |
| 1358 unittest.expect(o.id, unittest.equals('foo')); | 1415 unittest.expect(o.id, unittest.equals('foo')); |
| 1359 unittest.expect(o.kind, unittest.equals('foo')); | 1416 unittest.expect(o.kind, unittest.equals('foo')); |
| 1360 unittest.expect(o.layerId, unittest.equals('foo')); | 1417 unittest.expect(o.layerId, unittest.equals('foo')); |
| 1361 unittest.expect(o.selfLink, unittest.equals('foo')); | 1418 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1362 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 1419 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
| 1363 unittest.expect(o.volumeAnnotationsVersion, unittest.equals('foo')); | 1420 unittest.expect(o.volumeAnnotationsVersion, unittest.equals('foo')); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 1386 if (buildCounterMetadataItems < 3) { | 1443 if (buildCounterMetadataItems < 3) { |
| 1387 unittest.expect(o.downloadUrl, unittest.equals('foo')); | 1444 unittest.expect(o.downloadUrl, unittest.equals('foo')); |
| 1388 unittest.expect(o.encryptedKey, unittest.equals('foo')); | 1445 unittest.expect(o.encryptedKey, unittest.equals('foo')); |
| 1389 unittest.expect(o.language, unittest.equals('foo')); | 1446 unittest.expect(o.language, unittest.equals('foo')); |
| 1390 unittest.expect(o.size, unittest.equals('foo')); | 1447 unittest.expect(o.size, unittest.equals('foo')); |
| 1391 unittest.expect(o.version, unittest.equals('foo')); | 1448 unittest.expect(o.version, unittest.equals('foo')); |
| 1392 } | 1449 } |
| 1393 buildCounterMetadataItems--; | 1450 buildCounterMetadataItems--; |
| 1394 } | 1451 } |
| 1395 | 1452 |
| 1396 buildUnnamed323() { | 1453 buildUnnamed556() { |
| 1397 var o = new core.List<api.MetadataItems>(); | 1454 var o = new core.List<api.MetadataItems>(); |
| 1398 o.add(buildMetadataItems()); | 1455 o.add(buildMetadataItems()); |
| 1399 o.add(buildMetadataItems()); | 1456 o.add(buildMetadataItems()); |
| 1400 return o; | 1457 return o; |
| 1401 } | 1458 } |
| 1402 | 1459 |
| 1403 checkUnnamed323(core.List<api.MetadataItems> o) { | 1460 checkUnnamed556(core.List<api.MetadataItems> o) { |
| 1404 unittest.expect(o, unittest.hasLength(2)); | 1461 unittest.expect(o, unittest.hasLength(2)); |
| 1405 checkMetadataItems(o[0]); | 1462 checkMetadataItems(o[0]); |
| 1406 checkMetadataItems(o[1]); | 1463 checkMetadataItems(o[1]); |
| 1407 } | 1464 } |
| 1408 | 1465 |
| 1409 core.int buildCounterMetadata = 0; | 1466 core.int buildCounterMetadata = 0; |
| 1410 buildMetadata() { | 1467 buildMetadata() { |
| 1411 var o = new api.Metadata(); | 1468 var o = new api.Metadata(); |
| 1412 buildCounterMetadata++; | 1469 buildCounterMetadata++; |
| 1413 if (buildCounterMetadata < 3) { | 1470 if (buildCounterMetadata < 3) { |
| 1414 o.items = buildUnnamed323(); | 1471 o.items = buildUnnamed556(); |
| 1415 o.kind = "foo"; | 1472 o.kind = "foo"; |
| 1416 } | 1473 } |
| 1417 buildCounterMetadata--; | 1474 buildCounterMetadata--; |
| 1418 return o; | 1475 return o; |
| 1419 } | 1476 } |
| 1420 | 1477 |
| 1421 checkMetadata(api.Metadata o) { | 1478 checkMetadata(api.Metadata o) { |
| 1422 buildCounterMetadata++; | 1479 buildCounterMetadata++; |
| 1423 if (buildCounterMetadata < 3) { | 1480 if (buildCounterMetadata < 3) { |
| 1424 checkUnnamed323(o.items); | 1481 checkUnnamed556(o.items); |
| 1425 unittest.expect(o.kind, unittest.equals('foo')); | 1482 unittest.expect(o.kind, unittest.equals('foo')); |
| 1426 } | 1483 } |
| 1427 buildCounterMetadata--; | 1484 buildCounterMetadata--; |
| 1428 } | 1485 } |
| 1429 | 1486 |
| 1430 core.int buildCounterOffersItemsItems = 0; | 1487 core.int buildCounterOffersItemsItems = 0; |
| 1431 buildOffersItemsItems() { | 1488 buildOffersItemsItems() { |
| 1432 var o = new api.OffersItemsItems(); | 1489 var o = new api.OffersItemsItems(); |
| 1433 buildCounterOffersItemsItems++; | 1490 buildCounterOffersItemsItems++; |
| 1434 if (buildCounterOffersItemsItems < 3) { | 1491 if (buildCounterOffersItemsItems < 3) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1449 unittest.expect(o.author, unittest.equals('foo')); | 1506 unittest.expect(o.author, unittest.equals('foo')); |
| 1450 unittest.expect(o.canonicalVolumeLink, unittest.equals('foo')); | 1507 unittest.expect(o.canonicalVolumeLink, unittest.equals('foo')); |
| 1451 unittest.expect(o.coverUrl, unittest.equals('foo')); | 1508 unittest.expect(o.coverUrl, unittest.equals('foo')); |
| 1452 unittest.expect(o.description, unittest.equals('foo')); | 1509 unittest.expect(o.description, unittest.equals('foo')); |
| 1453 unittest.expect(o.title, unittest.equals('foo')); | 1510 unittest.expect(o.title, unittest.equals('foo')); |
| 1454 unittest.expect(o.volumeId, unittest.equals('foo')); | 1511 unittest.expect(o.volumeId, unittest.equals('foo')); |
| 1455 } | 1512 } |
| 1456 buildCounterOffersItemsItems--; | 1513 buildCounterOffersItemsItems--; |
| 1457 } | 1514 } |
| 1458 | 1515 |
| 1459 buildUnnamed324() { | 1516 buildUnnamed557() { |
| 1460 var o = new core.List<api.OffersItemsItems>(); | 1517 var o = new core.List<api.OffersItemsItems>(); |
| 1461 o.add(buildOffersItemsItems()); | 1518 o.add(buildOffersItemsItems()); |
| 1462 o.add(buildOffersItemsItems()); | 1519 o.add(buildOffersItemsItems()); |
| 1463 return o; | 1520 return o; |
| 1464 } | 1521 } |
| 1465 | 1522 |
| 1466 checkUnnamed324(core.List<api.OffersItemsItems> o) { | 1523 checkUnnamed557(core.List<api.OffersItemsItems> o) { |
| 1467 unittest.expect(o, unittest.hasLength(2)); | 1524 unittest.expect(o, unittest.hasLength(2)); |
| 1468 checkOffersItemsItems(o[0]); | 1525 checkOffersItemsItems(o[0]); |
| 1469 checkOffersItemsItems(o[1]); | 1526 checkOffersItemsItems(o[1]); |
| 1470 } | 1527 } |
| 1471 | 1528 |
| 1472 core.int buildCounterOffersItems = 0; | 1529 core.int buildCounterOffersItems = 0; |
| 1473 buildOffersItems() { | 1530 buildOffersItems() { |
| 1474 var o = new api.OffersItems(); | 1531 var o = new api.OffersItems(); |
| 1475 buildCounterOffersItems++; | 1532 buildCounterOffersItems++; |
| 1476 if (buildCounterOffersItems < 3) { | 1533 if (buildCounterOffersItems < 3) { |
| 1477 o.artUrl = "foo"; | 1534 o.artUrl = "foo"; |
| 1478 o.id = "foo"; | 1535 o.id = "foo"; |
| 1479 o.items = buildUnnamed324(); | 1536 o.items = buildUnnamed557(); |
| 1480 } | 1537 } |
| 1481 buildCounterOffersItems--; | 1538 buildCounterOffersItems--; |
| 1482 return o; | 1539 return o; |
| 1483 } | 1540 } |
| 1484 | 1541 |
| 1485 checkOffersItems(api.OffersItems o) { | 1542 checkOffersItems(api.OffersItems o) { |
| 1486 buildCounterOffersItems++; | 1543 buildCounterOffersItems++; |
| 1487 if (buildCounterOffersItems < 3) { | 1544 if (buildCounterOffersItems < 3) { |
| 1488 unittest.expect(o.artUrl, unittest.equals('foo')); | 1545 unittest.expect(o.artUrl, unittest.equals('foo')); |
| 1489 unittest.expect(o.id, unittest.equals('foo')); | 1546 unittest.expect(o.id, unittest.equals('foo')); |
| 1490 checkUnnamed324(o.items); | 1547 checkUnnamed557(o.items); |
| 1491 } | 1548 } |
| 1492 buildCounterOffersItems--; | 1549 buildCounterOffersItems--; |
| 1493 } | 1550 } |
| 1494 | 1551 |
| 1495 buildUnnamed325() { | 1552 buildUnnamed558() { |
| 1496 var o = new core.List<api.OffersItems>(); | 1553 var o = new core.List<api.OffersItems>(); |
| 1497 o.add(buildOffersItems()); | 1554 o.add(buildOffersItems()); |
| 1498 o.add(buildOffersItems()); | 1555 o.add(buildOffersItems()); |
| 1499 return o; | 1556 return o; |
| 1500 } | 1557 } |
| 1501 | 1558 |
| 1502 checkUnnamed325(core.List<api.OffersItems> o) { | 1559 checkUnnamed558(core.List<api.OffersItems> o) { |
| 1503 unittest.expect(o, unittest.hasLength(2)); | 1560 unittest.expect(o, unittest.hasLength(2)); |
| 1504 checkOffersItems(o[0]); | 1561 checkOffersItems(o[0]); |
| 1505 checkOffersItems(o[1]); | 1562 checkOffersItems(o[1]); |
| 1506 } | 1563 } |
| 1507 | 1564 |
| 1508 core.int buildCounterOffers = 0; | 1565 core.int buildCounterOffers = 0; |
| 1509 buildOffers() { | 1566 buildOffers() { |
| 1510 var o = new api.Offers(); | 1567 var o = new api.Offers(); |
| 1511 buildCounterOffers++; | 1568 buildCounterOffers++; |
| 1512 if (buildCounterOffers < 3) { | 1569 if (buildCounterOffers < 3) { |
| 1513 o.items = buildUnnamed325(); | 1570 o.items = buildUnnamed558(); |
| 1514 o.kind = "foo"; | 1571 o.kind = "foo"; |
| 1515 } | 1572 } |
| 1516 buildCounterOffers--; | 1573 buildCounterOffers--; |
| 1517 return o; | 1574 return o; |
| 1518 } | 1575 } |
| 1519 | 1576 |
| 1520 checkOffers(api.Offers o) { | 1577 checkOffers(api.Offers o) { |
| 1521 buildCounterOffers++; | 1578 buildCounterOffers++; |
| 1522 if (buildCounterOffers < 3) { | 1579 if (buildCounterOffers < 3) { |
| 1523 checkUnnamed325(o.items); | 1580 checkUnnamed558(o.items); |
| 1524 unittest.expect(o.kind, unittest.equals('foo')); | 1581 unittest.expect(o.kind, unittest.equals('foo')); |
| 1525 } | 1582 } |
| 1526 buildCounterOffers--; | 1583 buildCounterOffers--; |
| 1527 } | 1584 } |
| 1528 | 1585 |
| 1529 core.int buildCounterReadingPosition = 0; | 1586 core.int buildCounterReadingPosition = 0; |
| 1530 buildReadingPosition() { | 1587 buildReadingPosition() { |
| 1531 var o = new api.ReadingPosition(); | 1588 var o = new api.ReadingPosition(); |
| 1532 buildCounterReadingPosition++; | 1589 buildCounterReadingPosition++; |
| 1533 if (buildCounterReadingPosition < 3) { | 1590 if (buildCounterReadingPosition < 3) { |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1652 unittest.expect(o.kind, unittest.equals('foo')); | 1709 unittest.expect(o.kind, unittest.equals('foo')); |
| 1653 unittest.expect(o.rating, unittest.equals('foo')); | 1710 unittest.expect(o.rating, unittest.equals('foo')); |
| 1654 checkReviewSource(o.source); | 1711 checkReviewSource(o.source); |
| 1655 unittest.expect(o.title, unittest.equals('foo')); | 1712 unittest.expect(o.title, unittest.equals('foo')); |
| 1656 unittest.expect(o.type, unittest.equals('foo')); | 1713 unittest.expect(o.type, unittest.equals('foo')); |
| 1657 unittest.expect(o.volumeId, unittest.equals('foo')); | 1714 unittest.expect(o.volumeId, unittest.equals('foo')); |
| 1658 } | 1715 } |
| 1659 buildCounterReview--; | 1716 buildCounterReview--; |
| 1660 } | 1717 } |
| 1661 | 1718 |
| 1719 core.int buildCounterUsersettingsNotesExport = 0; |
| 1720 buildUsersettingsNotesExport() { |
| 1721 var o = new api.UsersettingsNotesExport(); |
| 1722 buildCounterUsersettingsNotesExport++; |
| 1723 if (buildCounterUsersettingsNotesExport < 3) { |
| 1724 o.folderName = "foo"; |
| 1725 o.isEnabled = true; |
| 1726 } |
| 1727 buildCounterUsersettingsNotesExport--; |
| 1728 return o; |
| 1729 } |
| 1730 |
| 1731 checkUsersettingsNotesExport(api.UsersettingsNotesExport o) { |
| 1732 buildCounterUsersettingsNotesExport++; |
| 1733 if (buildCounterUsersettingsNotesExport < 3) { |
| 1734 unittest.expect(o.folderName, unittest.equals('foo')); |
| 1735 unittest.expect(o.isEnabled, unittest.isTrue); |
| 1736 } |
| 1737 buildCounterUsersettingsNotesExport--; |
| 1738 } |
| 1739 |
| 1740 core.int buildCounterUsersettings = 0; |
| 1741 buildUsersettings() { |
| 1742 var o = new api.Usersettings(); |
| 1743 buildCounterUsersettings++; |
| 1744 if (buildCounterUsersettings < 3) { |
| 1745 o.kind = "foo"; |
| 1746 o.notesExport = buildUsersettingsNotesExport(); |
| 1747 } |
| 1748 buildCounterUsersettings--; |
| 1749 return o; |
| 1750 } |
| 1751 |
| 1752 checkUsersettings(api.Usersettings o) { |
| 1753 buildCounterUsersettings++; |
| 1754 if (buildCounterUsersettings < 3) { |
| 1755 unittest.expect(o.kind, unittest.equals('foo')); |
| 1756 checkUsersettingsNotesExport(o.notesExport); |
| 1757 } |
| 1758 buildCounterUsersettings--; |
| 1759 } |
| 1760 |
| 1662 core.int buildCounterVolumeAccessInfoEpub = 0; | 1761 core.int buildCounterVolumeAccessInfoEpub = 0; |
| 1663 buildVolumeAccessInfoEpub() { | 1762 buildVolumeAccessInfoEpub() { |
| 1664 var o = new api.VolumeAccessInfoEpub(); | 1763 var o = new api.VolumeAccessInfoEpub(); |
| 1665 buildCounterVolumeAccessInfoEpub++; | 1764 buildCounterVolumeAccessInfoEpub++; |
| 1666 if (buildCounterVolumeAccessInfoEpub < 3) { | 1765 if (buildCounterVolumeAccessInfoEpub < 3) { |
| 1667 o.acsTokenLink = "foo"; | 1766 o.acsTokenLink = "foo"; |
| 1668 o.downloadLink = "foo"; | 1767 o.downloadLink = "foo"; |
| 1669 o.isAvailable = true; | 1768 o.isAvailable = true; |
| 1670 } | 1769 } |
| 1671 buildCounterVolumeAccessInfoEpub--; | 1770 buildCounterVolumeAccessInfoEpub--; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1764 | 1863 |
| 1765 checkVolumeLayerInfoLayers(api.VolumeLayerInfoLayers o) { | 1864 checkVolumeLayerInfoLayers(api.VolumeLayerInfoLayers o) { |
| 1766 buildCounterVolumeLayerInfoLayers++; | 1865 buildCounterVolumeLayerInfoLayers++; |
| 1767 if (buildCounterVolumeLayerInfoLayers < 3) { | 1866 if (buildCounterVolumeLayerInfoLayers < 3) { |
| 1768 unittest.expect(o.layerId, unittest.equals('foo')); | 1867 unittest.expect(o.layerId, unittest.equals('foo')); |
| 1769 unittest.expect(o.volumeAnnotationsVersion, unittest.equals('foo')); | 1868 unittest.expect(o.volumeAnnotationsVersion, unittest.equals('foo')); |
| 1770 } | 1869 } |
| 1771 buildCounterVolumeLayerInfoLayers--; | 1870 buildCounterVolumeLayerInfoLayers--; |
| 1772 } | 1871 } |
| 1773 | 1872 |
| 1774 buildUnnamed326() { | 1873 buildUnnamed559() { |
| 1775 var o = new core.List<api.VolumeLayerInfoLayers>(); | 1874 var o = new core.List<api.VolumeLayerInfoLayers>(); |
| 1776 o.add(buildVolumeLayerInfoLayers()); | 1875 o.add(buildVolumeLayerInfoLayers()); |
| 1777 o.add(buildVolumeLayerInfoLayers()); | 1876 o.add(buildVolumeLayerInfoLayers()); |
| 1778 return o; | 1877 return o; |
| 1779 } | 1878 } |
| 1780 | 1879 |
| 1781 checkUnnamed326(core.List<api.VolumeLayerInfoLayers> o) { | 1880 checkUnnamed559(core.List<api.VolumeLayerInfoLayers> o) { |
| 1782 unittest.expect(o, unittest.hasLength(2)); | 1881 unittest.expect(o, unittest.hasLength(2)); |
| 1783 checkVolumeLayerInfoLayers(o[0]); | 1882 checkVolumeLayerInfoLayers(o[0]); |
| 1784 checkVolumeLayerInfoLayers(o[1]); | 1883 checkVolumeLayerInfoLayers(o[1]); |
| 1785 } | 1884 } |
| 1786 | 1885 |
| 1787 core.int buildCounterVolumeLayerInfo = 0; | 1886 core.int buildCounterVolumeLayerInfo = 0; |
| 1788 buildVolumeLayerInfo() { | 1887 buildVolumeLayerInfo() { |
| 1789 var o = new api.VolumeLayerInfo(); | 1888 var o = new api.VolumeLayerInfo(); |
| 1790 buildCounterVolumeLayerInfo++; | 1889 buildCounterVolumeLayerInfo++; |
| 1791 if (buildCounterVolumeLayerInfo < 3) { | 1890 if (buildCounterVolumeLayerInfo < 3) { |
| 1792 o.layers = buildUnnamed326(); | 1891 o.layers = buildUnnamed559(); |
| 1793 } | 1892 } |
| 1794 buildCounterVolumeLayerInfo--; | 1893 buildCounterVolumeLayerInfo--; |
| 1795 return o; | 1894 return o; |
| 1796 } | 1895 } |
| 1797 | 1896 |
| 1798 checkVolumeLayerInfo(api.VolumeLayerInfo o) { | 1897 checkVolumeLayerInfo(api.VolumeLayerInfo o) { |
| 1799 buildCounterVolumeLayerInfo++; | 1898 buildCounterVolumeLayerInfo++; |
| 1800 if (buildCounterVolumeLayerInfo < 3) { | 1899 if (buildCounterVolumeLayerInfo < 3) { |
| 1801 checkUnnamed326(o.layers); | 1900 checkUnnamed559(o.layers); |
| 1802 } | 1901 } |
| 1803 buildCounterVolumeLayerInfo--; | 1902 buildCounterVolumeLayerInfo--; |
| 1804 } | 1903 } |
| 1805 | 1904 |
| 1806 core.int buildCounterVolumeRecommendedInfo = 0; | 1905 core.int buildCounterVolumeRecommendedInfo = 0; |
| 1807 buildVolumeRecommendedInfo() { | 1906 buildVolumeRecommendedInfo() { |
| 1808 var o = new api.VolumeRecommendedInfo(); | 1907 var o = new api.VolumeRecommendedInfo(); |
| 1809 buildCounterVolumeRecommendedInfo++; | 1908 buildCounterVolumeRecommendedInfo++; |
| 1810 if (buildCounterVolumeRecommendedInfo < 3) { | 1909 if (buildCounterVolumeRecommendedInfo < 3) { |
| 1811 o.explanation = "foo"; | 1910 o.explanation = "foo"; |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1924 buildCounterVolumeSaleInfoOffers++; | 2023 buildCounterVolumeSaleInfoOffers++; |
| 1925 if (buildCounterVolumeSaleInfoOffers < 3) { | 2024 if (buildCounterVolumeSaleInfoOffers < 3) { |
| 1926 unittest.expect(o.finskyOfferType, unittest.equals(42)); | 2025 unittest.expect(o.finskyOfferType, unittest.equals(42)); |
| 1927 checkVolumeSaleInfoOffersListPrice(o.listPrice); | 2026 checkVolumeSaleInfoOffersListPrice(o.listPrice); |
| 1928 checkVolumeSaleInfoOffersRentalDuration(o.rentalDuration); | 2027 checkVolumeSaleInfoOffersRentalDuration(o.rentalDuration); |
| 1929 checkVolumeSaleInfoOffersRetailPrice(o.retailPrice); | 2028 checkVolumeSaleInfoOffersRetailPrice(o.retailPrice); |
| 1930 } | 2029 } |
| 1931 buildCounterVolumeSaleInfoOffers--; | 2030 buildCounterVolumeSaleInfoOffers--; |
| 1932 } | 2031 } |
| 1933 | 2032 |
| 1934 buildUnnamed327() { | 2033 buildUnnamed560() { |
| 1935 var o = new core.List<api.VolumeSaleInfoOffers>(); | 2034 var o = new core.List<api.VolumeSaleInfoOffers>(); |
| 1936 o.add(buildVolumeSaleInfoOffers()); | 2035 o.add(buildVolumeSaleInfoOffers()); |
| 1937 o.add(buildVolumeSaleInfoOffers()); | 2036 o.add(buildVolumeSaleInfoOffers()); |
| 1938 return o; | 2037 return o; |
| 1939 } | 2038 } |
| 1940 | 2039 |
| 1941 checkUnnamed327(core.List<api.VolumeSaleInfoOffers> o) { | 2040 checkUnnamed560(core.List<api.VolumeSaleInfoOffers> o) { |
| 1942 unittest.expect(o, unittest.hasLength(2)); | 2041 unittest.expect(o, unittest.hasLength(2)); |
| 1943 checkVolumeSaleInfoOffers(o[0]); | 2042 checkVolumeSaleInfoOffers(o[0]); |
| 1944 checkVolumeSaleInfoOffers(o[1]); | 2043 checkVolumeSaleInfoOffers(o[1]); |
| 1945 } | 2044 } |
| 1946 | 2045 |
| 1947 core.int buildCounterVolumeSaleInfoRetailPrice = 0; | 2046 core.int buildCounterVolumeSaleInfoRetailPrice = 0; |
| 1948 buildVolumeSaleInfoRetailPrice() { | 2047 buildVolumeSaleInfoRetailPrice() { |
| 1949 var o = new api.VolumeSaleInfoRetailPrice(); | 2048 var o = new api.VolumeSaleInfoRetailPrice(); |
| 1950 buildCounterVolumeSaleInfoRetailPrice++; | 2049 buildCounterVolumeSaleInfoRetailPrice++; |
| 1951 if (buildCounterVolumeSaleInfoRetailPrice < 3) { | 2050 if (buildCounterVolumeSaleInfoRetailPrice < 3) { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1967 | 2066 |
| 1968 core.int buildCounterVolumeSaleInfo = 0; | 2067 core.int buildCounterVolumeSaleInfo = 0; |
| 1969 buildVolumeSaleInfo() { | 2068 buildVolumeSaleInfo() { |
| 1970 var o = new api.VolumeSaleInfo(); | 2069 var o = new api.VolumeSaleInfo(); |
| 1971 buildCounterVolumeSaleInfo++; | 2070 buildCounterVolumeSaleInfo++; |
| 1972 if (buildCounterVolumeSaleInfo < 3) { | 2071 if (buildCounterVolumeSaleInfo < 3) { |
| 1973 o.buyLink = "foo"; | 2072 o.buyLink = "foo"; |
| 1974 o.country = "foo"; | 2073 o.country = "foo"; |
| 1975 o.isEbook = true; | 2074 o.isEbook = true; |
| 1976 o.listPrice = buildVolumeSaleInfoListPrice(); | 2075 o.listPrice = buildVolumeSaleInfoListPrice(); |
| 1977 o.offers = buildUnnamed327(); | 2076 o.offers = buildUnnamed560(); |
| 1978 o.onSaleDate = core.DateTime.parse("2002-02-27T14:01:02"); | 2077 o.onSaleDate = core.DateTime.parse("2002-02-27T14:01:02"); |
| 1979 o.retailPrice = buildVolumeSaleInfoRetailPrice(); | 2078 o.retailPrice = buildVolumeSaleInfoRetailPrice(); |
| 1980 o.saleability = "foo"; | 2079 o.saleability = "foo"; |
| 1981 } | 2080 } |
| 1982 buildCounterVolumeSaleInfo--; | 2081 buildCounterVolumeSaleInfo--; |
| 1983 return o; | 2082 return o; |
| 1984 } | 2083 } |
| 1985 | 2084 |
| 1986 checkVolumeSaleInfo(api.VolumeSaleInfo o) { | 2085 checkVolumeSaleInfo(api.VolumeSaleInfo o) { |
| 1987 buildCounterVolumeSaleInfo++; | 2086 buildCounterVolumeSaleInfo++; |
| 1988 if (buildCounterVolumeSaleInfo < 3) { | 2087 if (buildCounterVolumeSaleInfo < 3) { |
| 1989 unittest.expect(o.buyLink, unittest.equals('foo')); | 2088 unittest.expect(o.buyLink, unittest.equals('foo')); |
| 1990 unittest.expect(o.country, unittest.equals('foo')); | 2089 unittest.expect(o.country, unittest.equals('foo')); |
| 1991 unittest.expect(o.isEbook, unittest.isTrue); | 2090 unittest.expect(o.isEbook, unittest.isTrue); |
| 1992 checkVolumeSaleInfoListPrice(o.listPrice); | 2091 checkVolumeSaleInfoListPrice(o.listPrice); |
| 1993 checkUnnamed327(o.offers); | 2092 checkUnnamed560(o.offers); |
| 1994 unittest.expect(o.onSaleDate, unittest.equals(core.DateTime.parse("2002-02-2
7T14:01:02"))); | 2093 unittest.expect(o.onSaleDate, unittest.equals(core.DateTime.parse("2002-02-2
7T14:01:02"))); |
| 1995 checkVolumeSaleInfoRetailPrice(o.retailPrice); | 2094 checkVolumeSaleInfoRetailPrice(o.retailPrice); |
| 1996 unittest.expect(o.saleability, unittest.equals('foo')); | 2095 unittest.expect(o.saleability, unittest.equals('foo')); |
| 1997 } | 2096 } |
| 1998 buildCounterVolumeSaleInfo--; | 2097 buildCounterVolumeSaleInfo--; |
| 1999 } | 2098 } |
| 2000 | 2099 |
| 2001 core.int buildCounterVolumeSearchInfo = 0; | 2100 core.int buildCounterVolumeSearchInfo = 0; |
| 2002 buildVolumeSearchInfo() { | 2101 buildVolumeSearchInfo() { |
| 2003 var o = new api.VolumeSearchInfo(); | 2102 var o = new api.VolumeSearchInfo(); |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2114 checkReadingPosition(o.readingPosition); | 2213 checkReadingPosition(o.readingPosition); |
| 2115 checkVolumeUserInfoRentalPeriod(o.rentalPeriod); | 2214 checkVolumeUserInfoRentalPeriod(o.rentalPeriod); |
| 2116 unittest.expect(o.rentalState, unittest.equals('foo')); | 2215 unittest.expect(o.rentalState, unittest.equals('foo')); |
| 2117 checkReview(o.review); | 2216 checkReview(o.review); |
| 2118 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 2217 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
| 2119 checkVolumeUserInfoUserUploadedVolumeInfo(o.userUploadedVolumeInfo); | 2218 checkVolumeUserInfoUserUploadedVolumeInfo(o.userUploadedVolumeInfo); |
| 2120 } | 2219 } |
| 2121 buildCounterVolumeUserInfo--; | 2220 buildCounterVolumeUserInfo--; |
| 2122 } | 2221 } |
| 2123 | 2222 |
| 2124 buildUnnamed328() { | 2223 buildUnnamed561() { |
| 2125 var o = new core.List<core.String>(); | 2224 var o = new core.List<core.String>(); |
| 2126 o.add("foo"); | 2225 o.add("foo"); |
| 2127 o.add("foo"); | 2226 o.add("foo"); |
| 2128 return o; | 2227 return o; |
| 2129 } | 2228 } |
| 2130 | 2229 |
| 2131 checkUnnamed328(core.List<core.String> o) { | 2230 checkUnnamed561(core.List<core.String> o) { |
| 2132 unittest.expect(o, unittest.hasLength(2)); | 2231 unittest.expect(o, unittest.hasLength(2)); |
| 2133 unittest.expect(o[0], unittest.equals('foo')); | 2232 unittest.expect(o[0], unittest.equals('foo')); |
| 2134 unittest.expect(o[1], unittest.equals('foo')); | 2233 unittest.expect(o[1], unittest.equals('foo')); |
| 2135 } | 2234 } |
| 2136 | 2235 |
| 2137 buildUnnamed329() { | 2236 buildUnnamed562() { |
| 2138 var o = new core.List<core.String>(); | 2237 var o = new core.List<core.String>(); |
| 2139 o.add("foo"); | 2238 o.add("foo"); |
| 2140 o.add("foo"); | 2239 o.add("foo"); |
| 2141 return o; | 2240 return o; |
| 2142 } | 2241 } |
| 2143 | 2242 |
| 2144 checkUnnamed329(core.List<core.String> o) { | 2243 checkUnnamed562(core.List<core.String> o) { |
| 2145 unittest.expect(o, unittest.hasLength(2)); | 2244 unittest.expect(o, unittest.hasLength(2)); |
| 2146 unittest.expect(o[0], unittest.equals('foo')); | 2245 unittest.expect(o[0], unittest.equals('foo')); |
| 2147 unittest.expect(o[1], unittest.equals('foo')); | 2246 unittest.expect(o[1], unittest.equals('foo')); |
| 2148 } | 2247 } |
| 2149 | 2248 |
| 2150 core.int buildCounterVolumeVolumeInfoDimensions = 0; | 2249 core.int buildCounterVolumeVolumeInfoDimensions = 0; |
| 2151 buildVolumeVolumeInfoDimensions() { | 2250 buildVolumeVolumeInfoDimensions() { |
| 2152 var o = new api.VolumeVolumeInfoDimensions(); | 2251 var o = new api.VolumeVolumeInfoDimensions(); |
| 2153 buildCounterVolumeVolumeInfoDimensions++; | 2252 buildCounterVolumeVolumeInfoDimensions++; |
| 2154 if (buildCounterVolumeVolumeInfoDimensions < 3) { | 2253 if (buildCounterVolumeVolumeInfoDimensions < 3) { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2213 | 2312 |
| 2214 checkVolumeVolumeInfoIndustryIdentifiers(api.VolumeVolumeInfoIndustryIdentifiers
o) { | 2313 checkVolumeVolumeInfoIndustryIdentifiers(api.VolumeVolumeInfoIndustryIdentifiers
o) { |
| 2215 buildCounterVolumeVolumeInfoIndustryIdentifiers++; | 2314 buildCounterVolumeVolumeInfoIndustryIdentifiers++; |
| 2216 if (buildCounterVolumeVolumeInfoIndustryIdentifiers < 3) { | 2315 if (buildCounterVolumeVolumeInfoIndustryIdentifiers < 3) { |
| 2217 unittest.expect(o.identifier, unittest.equals('foo')); | 2316 unittest.expect(o.identifier, unittest.equals('foo')); |
| 2218 unittest.expect(o.type, unittest.equals('foo')); | 2317 unittest.expect(o.type, unittest.equals('foo')); |
| 2219 } | 2318 } |
| 2220 buildCounterVolumeVolumeInfoIndustryIdentifiers--; | 2319 buildCounterVolumeVolumeInfoIndustryIdentifiers--; |
| 2221 } | 2320 } |
| 2222 | 2321 |
| 2223 buildUnnamed330() { | 2322 buildUnnamed563() { |
| 2224 var o = new core.List<api.VolumeVolumeInfoIndustryIdentifiers>(); | 2323 var o = new core.List<api.VolumeVolumeInfoIndustryIdentifiers>(); |
| 2225 o.add(buildVolumeVolumeInfoIndustryIdentifiers()); | 2324 o.add(buildVolumeVolumeInfoIndustryIdentifiers()); |
| 2226 o.add(buildVolumeVolumeInfoIndustryIdentifiers()); | 2325 o.add(buildVolumeVolumeInfoIndustryIdentifiers()); |
| 2227 return o; | 2326 return o; |
| 2228 } | 2327 } |
| 2229 | 2328 |
| 2230 checkUnnamed330(core.List<api.VolumeVolumeInfoIndustryIdentifiers> o) { | 2329 checkUnnamed563(core.List<api.VolumeVolumeInfoIndustryIdentifiers> o) { |
| 2231 unittest.expect(o, unittest.hasLength(2)); | 2330 unittest.expect(o, unittest.hasLength(2)); |
| 2232 checkVolumeVolumeInfoIndustryIdentifiers(o[0]); | 2331 checkVolumeVolumeInfoIndustryIdentifiers(o[0]); |
| 2233 checkVolumeVolumeInfoIndustryIdentifiers(o[1]); | 2332 checkVolumeVolumeInfoIndustryIdentifiers(o[1]); |
| 2234 } | 2333 } |
| 2235 | 2334 |
| 2236 core.int buildCounterVolumeVolumeInfo = 0; | 2335 core.int buildCounterVolumeVolumeInfo = 0; |
| 2237 buildVolumeVolumeInfo() { | 2336 buildVolumeVolumeInfo() { |
| 2238 var o = new api.VolumeVolumeInfo(); | 2337 var o = new api.VolumeVolumeInfo(); |
| 2239 buildCounterVolumeVolumeInfo++; | 2338 buildCounterVolumeVolumeInfo++; |
| 2240 if (buildCounterVolumeVolumeInfo < 3) { | 2339 if (buildCounterVolumeVolumeInfo < 3) { |
| 2241 o.authors = buildUnnamed328(); | 2340 o.authors = buildUnnamed561(); |
| 2242 o.averageRating = 42.0; | 2341 o.averageRating = 42.0; |
| 2243 o.canonicalVolumeLink = "foo"; | 2342 o.canonicalVolumeLink = "foo"; |
| 2244 o.categories = buildUnnamed329(); | 2343 o.categories = buildUnnamed562(); |
| 2245 o.contentVersion = "foo"; | 2344 o.contentVersion = "foo"; |
| 2246 o.description = "foo"; | 2345 o.description = "foo"; |
| 2247 o.dimensions = buildVolumeVolumeInfoDimensions(); | 2346 o.dimensions = buildVolumeVolumeInfoDimensions(); |
| 2248 o.imageLinks = buildVolumeVolumeInfoImageLinks(); | 2347 o.imageLinks = buildVolumeVolumeInfoImageLinks(); |
| 2249 o.industryIdentifiers = buildUnnamed330(); | 2348 o.industryIdentifiers = buildUnnamed563(); |
| 2250 o.infoLink = "foo"; | 2349 o.infoLink = "foo"; |
| 2251 o.language = "foo"; | 2350 o.language = "foo"; |
| 2252 o.mainCategory = "foo"; | 2351 o.mainCategory = "foo"; |
| 2253 o.pageCount = 42; | 2352 o.pageCount = 42; |
| 2254 o.previewLink = "foo"; | 2353 o.previewLink = "foo"; |
| 2255 o.printType = "foo"; | 2354 o.printType = "foo"; |
| 2256 o.printedPageCount = 42; | 2355 o.printedPageCount = 42; |
| 2257 o.publishedDate = "foo"; | 2356 o.publishedDate = "foo"; |
| 2258 o.publisher = "foo"; | 2357 o.publisher = "foo"; |
| 2259 o.ratingsCount = 42; | 2358 o.ratingsCount = 42; |
| 2260 o.readingModes = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2359 o.readingModes = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 2261 o.subtitle = "foo"; | 2360 o.subtitle = "foo"; |
| 2262 o.title = "foo"; | 2361 o.title = "foo"; |
| 2263 } | 2362 } |
| 2264 buildCounterVolumeVolumeInfo--; | 2363 buildCounterVolumeVolumeInfo--; |
| 2265 return o; | 2364 return o; |
| 2266 } | 2365 } |
| 2267 | 2366 |
| 2268 checkVolumeVolumeInfo(api.VolumeVolumeInfo o) { | 2367 checkVolumeVolumeInfo(api.VolumeVolumeInfo o) { |
| 2269 buildCounterVolumeVolumeInfo++; | 2368 buildCounterVolumeVolumeInfo++; |
| 2270 if (buildCounterVolumeVolumeInfo < 3) { | 2369 if (buildCounterVolumeVolumeInfo < 3) { |
| 2271 checkUnnamed328(o.authors); | 2370 checkUnnamed561(o.authors); |
| 2272 unittest.expect(o.averageRating, unittest.equals(42.0)); | 2371 unittest.expect(o.averageRating, unittest.equals(42.0)); |
| 2273 unittest.expect(o.canonicalVolumeLink, unittest.equals('foo')); | 2372 unittest.expect(o.canonicalVolumeLink, unittest.equals('foo')); |
| 2274 checkUnnamed329(o.categories); | 2373 checkUnnamed562(o.categories); |
| 2275 unittest.expect(o.contentVersion, unittest.equals('foo')); | 2374 unittest.expect(o.contentVersion, unittest.equals('foo')); |
| 2276 unittest.expect(o.description, unittest.equals('foo')); | 2375 unittest.expect(o.description, unittest.equals('foo')); |
| 2277 checkVolumeVolumeInfoDimensions(o.dimensions); | 2376 checkVolumeVolumeInfoDimensions(o.dimensions); |
| 2278 checkVolumeVolumeInfoImageLinks(o.imageLinks); | 2377 checkVolumeVolumeInfoImageLinks(o.imageLinks); |
| 2279 checkUnnamed330(o.industryIdentifiers); | 2378 checkUnnamed563(o.industryIdentifiers); |
| 2280 unittest.expect(o.infoLink, unittest.equals('foo')); | 2379 unittest.expect(o.infoLink, unittest.equals('foo')); |
| 2281 unittest.expect(o.language, unittest.equals('foo')); | 2380 unittest.expect(o.language, unittest.equals('foo')); |
| 2282 unittest.expect(o.mainCategory, unittest.equals('foo')); | 2381 unittest.expect(o.mainCategory, unittest.equals('foo')); |
| 2283 unittest.expect(o.pageCount, unittest.equals(42)); | 2382 unittest.expect(o.pageCount, unittest.equals(42)); |
| 2284 unittest.expect(o.previewLink, unittest.equals('foo')); | 2383 unittest.expect(o.previewLink, unittest.equals('foo')); |
| 2285 unittest.expect(o.printType, unittest.equals('foo')); | 2384 unittest.expect(o.printType, unittest.equals('foo')); |
| 2286 unittest.expect(o.printedPageCount, unittest.equals(42)); | 2385 unittest.expect(o.printedPageCount, unittest.equals(42)); |
| 2287 unittest.expect(o.publishedDate, unittest.equals('foo')); | 2386 unittest.expect(o.publishedDate, unittest.equals('foo')); |
| 2288 unittest.expect(o.publisher, unittest.equals('foo')); | 2387 unittest.expect(o.publisher, unittest.equals('foo')); |
| 2289 unittest.expect(o.ratingsCount, unittest.equals(42)); | 2388 unittest.expect(o.ratingsCount, unittest.equals(42)); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2326 checkVolumeRecommendedInfo(o.recommendedInfo); | 2425 checkVolumeRecommendedInfo(o.recommendedInfo); |
| 2327 checkVolumeSaleInfo(o.saleInfo); | 2426 checkVolumeSaleInfo(o.saleInfo); |
| 2328 checkVolumeSearchInfo(o.searchInfo); | 2427 checkVolumeSearchInfo(o.searchInfo); |
| 2329 unittest.expect(o.selfLink, unittest.equals('foo')); | 2428 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 2330 checkVolumeUserInfo(o.userInfo); | 2429 checkVolumeUserInfo(o.userInfo); |
| 2331 checkVolumeVolumeInfo(o.volumeInfo); | 2430 checkVolumeVolumeInfo(o.volumeInfo); |
| 2332 } | 2431 } |
| 2333 buildCounterVolume--; | 2432 buildCounterVolume--; |
| 2334 } | 2433 } |
| 2335 | 2434 |
| 2435 buildUnnamed564() { |
| 2436 var o = new core.List<api.Volume>(); |
| 2437 o.add(buildVolume()); |
| 2438 o.add(buildVolume()); |
| 2439 return o; |
| 2440 } |
| 2441 |
| 2442 checkUnnamed564(core.List<api.Volume> o) { |
| 2443 unittest.expect(o, unittest.hasLength(2)); |
| 2444 checkVolume(o[0]); |
| 2445 checkVolume(o[1]); |
| 2446 } |
| 2447 |
| 2448 core.int buildCounterVolume2 = 0; |
| 2449 buildVolume2() { |
| 2450 var o = new api.Volume2(); |
| 2451 buildCounterVolume2++; |
| 2452 if (buildCounterVolume2 < 3) { |
| 2453 o.items = buildUnnamed564(); |
| 2454 o.kind = "foo"; |
| 2455 o.nextPageToken = "foo"; |
| 2456 } |
| 2457 buildCounterVolume2--; |
| 2458 return o; |
| 2459 } |
| 2460 |
| 2461 checkVolume2(api.Volume2 o) { |
| 2462 buildCounterVolume2++; |
| 2463 if (buildCounterVolume2 < 3) { |
| 2464 checkUnnamed564(o.items); |
| 2465 unittest.expect(o.kind, unittest.equals('foo')); |
| 2466 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2467 } |
| 2468 buildCounterVolume2--; |
| 2469 } |
| 2470 |
| 2336 core.int buildCounterVolumeannotationContentRanges = 0; | 2471 core.int buildCounterVolumeannotationContentRanges = 0; |
| 2337 buildVolumeannotationContentRanges() { | 2472 buildVolumeannotationContentRanges() { |
| 2338 var o = new api.VolumeannotationContentRanges(); | 2473 var o = new api.VolumeannotationContentRanges(); |
| 2339 buildCounterVolumeannotationContentRanges++; | 2474 buildCounterVolumeannotationContentRanges++; |
| 2340 if (buildCounterVolumeannotationContentRanges < 3) { | 2475 if (buildCounterVolumeannotationContentRanges < 3) { |
| 2341 o.cfiRange = buildBooksAnnotationsRange(); | 2476 o.cfiRange = buildBooksAnnotationsRange(); |
| 2342 o.contentVersion = "foo"; | 2477 o.contentVersion = "foo"; |
| 2343 o.gbImageRange = buildBooksAnnotationsRange(); | 2478 o.gbImageRange = buildBooksAnnotationsRange(); |
| 2344 o.gbTextRange = buildBooksAnnotationsRange(); | 2479 o.gbTextRange = buildBooksAnnotationsRange(); |
| 2345 } | 2480 } |
| 2346 buildCounterVolumeannotationContentRanges--; | 2481 buildCounterVolumeannotationContentRanges--; |
| 2347 return o; | 2482 return o; |
| 2348 } | 2483 } |
| 2349 | 2484 |
| 2350 checkVolumeannotationContentRanges(api.VolumeannotationContentRanges o) { | 2485 checkVolumeannotationContentRanges(api.VolumeannotationContentRanges o) { |
| 2351 buildCounterVolumeannotationContentRanges++; | 2486 buildCounterVolumeannotationContentRanges++; |
| 2352 if (buildCounterVolumeannotationContentRanges < 3) { | 2487 if (buildCounterVolumeannotationContentRanges < 3) { |
| 2353 checkBooksAnnotationsRange(o.cfiRange); | 2488 checkBooksAnnotationsRange(o.cfiRange); |
| 2354 unittest.expect(o.contentVersion, unittest.equals('foo')); | 2489 unittest.expect(o.contentVersion, unittest.equals('foo')); |
| 2355 checkBooksAnnotationsRange(o.gbImageRange); | 2490 checkBooksAnnotationsRange(o.gbImageRange); |
| 2356 checkBooksAnnotationsRange(o.gbTextRange); | 2491 checkBooksAnnotationsRange(o.gbTextRange); |
| 2357 } | 2492 } |
| 2358 buildCounterVolumeannotationContentRanges--; | 2493 buildCounterVolumeannotationContentRanges--; |
| 2359 } | 2494 } |
| 2360 | 2495 |
| 2361 buildUnnamed331() { | 2496 buildUnnamed565() { |
| 2362 var o = new core.List<core.String>(); | 2497 var o = new core.List<core.String>(); |
| 2363 o.add("foo"); | 2498 o.add("foo"); |
| 2364 o.add("foo"); | 2499 o.add("foo"); |
| 2365 return o; | 2500 return o; |
| 2366 } | 2501 } |
| 2367 | 2502 |
| 2368 checkUnnamed331(core.List<core.String> o) { | 2503 checkUnnamed565(core.List<core.String> o) { |
| 2369 unittest.expect(o, unittest.hasLength(2)); | 2504 unittest.expect(o, unittest.hasLength(2)); |
| 2370 unittest.expect(o[0], unittest.equals('foo')); | 2505 unittest.expect(o[0], unittest.equals('foo')); |
| 2371 unittest.expect(o[1], unittest.equals('foo')); | 2506 unittest.expect(o[1], unittest.equals('foo')); |
| 2372 } | 2507 } |
| 2373 | 2508 |
| 2374 core.int buildCounterVolumeannotation = 0; | 2509 core.int buildCounterVolumeannotation = 0; |
| 2375 buildVolumeannotation() { | 2510 buildVolumeannotation() { |
| 2376 var o = new api.Volumeannotation(); | 2511 var o = new api.Volumeannotation(); |
| 2377 buildCounterVolumeannotation++; | 2512 buildCounterVolumeannotation++; |
| 2378 if (buildCounterVolumeannotation < 3) { | 2513 if (buildCounterVolumeannotation < 3) { |
| 2379 o.annotationDataId = "foo"; | 2514 o.annotationDataId = "foo"; |
| 2380 o.annotationDataLink = "foo"; | 2515 o.annotationDataLink = "foo"; |
| 2381 o.annotationType = "foo"; | 2516 o.annotationType = "foo"; |
| 2382 o.contentRanges = buildVolumeannotationContentRanges(); | 2517 o.contentRanges = buildVolumeannotationContentRanges(); |
| 2383 o.data = "foo"; | 2518 o.data = "foo"; |
| 2384 o.deleted = true; | 2519 o.deleted = true; |
| 2385 o.id = "foo"; | 2520 o.id = "foo"; |
| 2386 o.kind = "foo"; | 2521 o.kind = "foo"; |
| 2387 o.layerId = "foo"; | 2522 o.layerId = "foo"; |
| 2388 o.pageIds = buildUnnamed331(); | 2523 o.pageIds = buildUnnamed565(); |
| 2389 o.selectedText = "foo"; | 2524 o.selectedText = "foo"; |
| 2390 o.selfLink = "foo"; | 2525 o.selfLink = "foo"; |
| 2391 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); | 2526 o.updated = core.DateTime.parse("2002-02-27T14:01:02"); |
| 2392 o.volumeId = "foo"; | 2527 o.volumeId = "foo"; |
| 2393 } | 2528 } |
| 2394 buildCounterVolumeannotation--; | 2529 buildCounterVolumeannotation--; |
| 2395 return o; | 2530 return o; |
| 2396 } | 2531 } |
| 2397 | 2532 |
| 2398 checkVolumeannotation(api.Volumeannotation o) { | 2533 checkVolumeannotation(api.Volumeannotation o) { |
| 2399 buildCounterVolumeannotation++; | 2534 buildCounterVolumeannotation++; |
| 2400 if (buildCounterVolumeannotation < 3) { | 2535 if (buildCounterVolumeannotation < 3) { |
| 2401 unittest.expect(o.annotationDataId, unittest.equals('foo')); | 2536 unittest.expect(o.annotationDataId, unittest.equals('foo')); |
| 2402 unittest.expect(o.annotationDataLink, unittest.equals('foo')); | 2537 unittest.expect(o.annotationDataLink, unittest.equals('foo')); |
| 2403 unittest.expect(o.annotationType, unittest.equals('foo')); | 2538 unittest.expect(o.annotationType, unittest.equals('foo')); |
| 2404 checkVolumeannotationContentRanges(o.contentRanges); | 2539 checkVolumeannotationContentRanges(o.contentRanges); |
| 2405 unittest.expect(o.data, unittest.equals('foo')); | 2540 unittest.expect(o.data, unittest.equals('foo')); |
| 2406 unittest.expect(o.deleted, unittest.isTrue); | 2541 unittest.expect(o.deleted, unittest.isTrue); |
| 2407 unittest.expect(o.id, unittest.equals('foo')); | 2542 unittest.expect(o.id, unittest.equals('foo')); |
| 2408 unittest.expect(o.kind, unittest.equals('foo')); | 2543 unittest.expect(o.kind, unittest.equals('foo')); |
| 2409 unittest.expect(o.layerId, unittest.equals('foo')); | 2544 unittest.expect(o.layerId, unittest.equals('foo')); |
| 2410 checkUnnamed331(o.pageIds); | 2545 checkUnnamed565(o.pageIds); |
| 2411 unittest.expect(o.selectedText, unittest.equals('foo')); | 2546 unittest.expect(o.selectedText, unittest.equals('foo')); |
| 2412 unittest.expect(o.selfLink, unittest.equals('foo')); | 2547 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 2413 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); | 2548 unittest.expect(o.updated, unittest.equals(core.DateTime.parse("2002-02-27T1
4:01:02"))); |
| 2414 unittest.expect(o.volumeId, unittest.equals('foo')); | 2549 unittest.expect(o.volumeId, unittest.equals('foo')); |
| 2415 } | 2550 } |
| 2416 buildCounterVolumeannotation--; | 2551 buildCounterVolumeannotation--; |
| 2417 } | 2552 } |
| 2418 | 2553 |
| 2419 buildUnnamed332() { | 2554 buildUnnamed566() { |
| 2420 var o = new core.List<api.Volumeannotation>(); | 2555 var o = new core.List<api.Volumeannotation>(); |
| 2421 o.add(buildVolumeannotation()); | 2556 o.add(buildVolumeannotation()); |
| 2422 o.add(buildVolumeannotation()); | 2557 o.add(buildVolumeannotation()); |
| 2423 return o; | 2558 return o; |
| 2424 } | 2559 } |
| 2425 | 2560 |
| 2426 checkUnnamed332(core.List<api.Volumeannotation> o) { | 2561 checkUnnamed566(core.List<api.Volumeannotation> o) { |
| 2427 unittest.expect(o, unittest.hasLength(2)); | 2562 unittest.expect(o, unittest.hasLength(2)); |
| 2428 checkVolumeannotation(o[0]); | 2563 checkVolumeannotation(o[0]); |
| 2429 checkVolumeannotation(o[1]); | 2564 checkVolumeannotation(o[1]); |
| 2430 } | 2565 } |
| 2431 | 2566 |
| 2432 core.int buildCounterVolumeannotations = 0; | 2567 core.int buildCounterVolumeannotations = 0; |
| 2433 buildVolumeannotations() { | 2568 buildVolumeannotations() { |
| 2434 var o = new api.Volumeannotations(); | 2569 var o = new api.Volumeannotations(); |
| 2435 buildCounterVolumeannotations++; | 2570 buildCounterVolumeannotations++; |
| 2436 if (buildCounterVolumeannotations < 3) { | 2571 if (buildCounterVolumeannotations < 3) { |
| 2437 o.items = buildUnnamed332(); | 2572 o.items = buildUnnamed566(); |
| 2438 o.kind = "foo"; | 2573 o.kind = "foo"; |
| 2439 o.nextPageToken = "foo"; | 2574 o.nextPageToken = "foo"; |
| 2440 o.totalItems = 42; | 2575 o.totalItems = 42; |
| 2441 o.version = "foo"; | 2576 o.version = "foo"; |
| 2442 } | 2577 } |
| 2443 buildCounterVolumeannotations--; | 2578 buildCounterVolumeannotations--; |
| 2444 return o; | 2579 return o; |
| 2445 } | 2580 } |
| 2446 | 2581 |
| 2447 checkVolumeannotations(api.Volumeannotations o) { | 2582 checkVolumeannotations(api.Volumeannotations o) { |
| 2448 buildCounterVolumeannotations++; | 2583 buildCounterVolumeannotations++; |
| 2449 if (buildCounterVolumeannotations < 3) { | 2584 if (buildCounterVolumeannotations < 3) { |
| 2450 checkUnnamed332(o.items); | 2585 checkUnnamed566(o.items); |
| 2451 unittest.expect(o.kind, unittest.equals('foo')); | 2586 unittest.expect(o.kind, unittest.equals('foo')); |
| 2452 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2587 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2453 unittest.expect(o.totalItems, unittest.equals(42)); | 2588 unittest.expect(o.totalItems, unittest.equals(42)); |
| 2454 unittest.expect(o.version, unittest.equals('foo')); | 2589 unittest.expect(o.version, unittest.equals('foo')); |
| 2455 } | 2590 } |
| 2456 buildCounterVolumeannotations--; | 2591 buildCounterVolumeannotations--; |
| 2457 } | 2592 } |
| 2458 | 2593 |
| 2459 buildUnnamed333() { | 2594 buildUnnamed567() { |
| 2460 var o = new core.List<api.Volume>(); | 2595 var o = new core.List<api.Volume>(); |
| 2461 o.add(buildVolume()); | 2596 o.add(buildVolume()); |
| 2462 o.add(buildVolume()); | 2597 o.add(buildVolume()); |
| 2463 return o; | 2598 return o; |
| 2464 } | 2599 } |
| 2465 | 2600 |
| 2466 checkUnnamed333(core.List<api.Volume> o) { | 2601 checkUnnamed567(core.List<api.Volume> o) { |
| 2467 unittest.expect(o, unittest.hasLength(2)); | 2602 unittest.expect(o, unittest.hasLength(2)); |
| 2468 checkVolume(o[0]); | 2603 checkVolume(o[0]); |
| 2469 checkVolume(o[1]); | 2604 checkVolume(o[1]); |
| 2470 } | 2605 } |
| 2471 | 2606 |
| 2472 core.int buildCounterVolumes = 0; | 2607 core.int buildCounterVolumes = 0; |
| 2473 buildVolumes() { | 2608 buildVolumes() { |
| 2474 var o = new api.Volumes(); | 2609 var o = new api.Volumes(); |
| 2475 buildCounterVolumes++; | 2610 buildCounterVolumes++; |
| 2476 if (buildCounterVolumes < 3) { | 2611 if (buildCounterVolumes < 3) { |
| 2477 o.items = buildUnnamed333(); | 2612 o.items = buildUnnamed567(); |
| 2478 o.kind = "foo"; | 2613 o.kind = "foo"; |
| 2479 o.totalItems = 42; | 2614 o.totalItems = 42; |
| 2480 } | 2615 } |
| 2481 buildCounterVolumes--; | 2616 buildCounterVolumes--; |
| 2482 return o; | 2617 return o; |
| 2483 } | 2618 } |
| 2484 | 2619 |
| 2485 checkVolumes(api.Volumes o) { | 2620 checkVolumes(api.Volumes o) { |
| 2486 buildCounterVolumes++; | 2621 buildCounterVolumes++; |
| 2487 if (buildCounterVolumes < 3) { | 2622 if (buildCounterVolumes < 3) { |
| 2488 checkUnnamed333(o.items); | 2623 checkUnnamed567(o.items); |
| 2489 unittest.expect(o.kind, unittest.equals('foo')); | 2624 unittest.expect(o.kind, unittest.equals('foo')); |
| 2490 unittest.expect(o.totalItems, unittest.equals(42)); | 2625 unittest.expect(o.totalItems, unittest.equals(42)); |
| 2491 } | 2626 } |
| 2492 buildCounterVolumes--; | 2627 buildCounterVolumes--; |
| 2493 } | 2628 } |
| 2494 | 2629 |
| 2495 buildUnnamed334() { | 2630 buildUnnamed568() { |
| 2496 var o = new core.List<core.String>(); | 2631 var o = new core.List<core.String>(); |
| 2497 o.add("foo"); | 2632 o.add("foo"); |
| 2498 o.add("foo"); | 2633 o.add("foo"); |
| 2499 return o; | 2634 return o; |
| 2500 } | 2635 } |
| 2501 | 2636 |
| 2502 checkUnnamed334(core.List<core.String> o) { | 2637 checkUnnamed568(core.List<core.String> o) { |
| 2503 unittest.expect(o, unittest.hasLength(2)); | 2638 unittest.expect(o, unittest.hasLength(2)); |
| 2504 unittest.expect(o[0], unittest.equals('foo')); | 2639 unittest.expect(o[0], unittest.equals('foo')); |
| 2505 unittest.expect(o[1], unittest.equals('foo')); | 2640 unittest.expect(o[1], unittest.equals('foo')); |
| 2506 } | 2641 } |
| 2507 | 2642 |
| 2508 buildUnnamed335() { | 2643 buildUnnamed569() { |
| 2509 var o = new core.List<core.String>(); | 2644 var o = new core.List<core.String>(); |
| 2510 o.add("foo"); | 2645 o.add("foo"); |
| 2511 o.add("foo"); | 2646 o.add("foo"); |
| 2512 return o; | 2647 return o; |
| 2513 } | 2648 } |
| 2514 | 2649 |
| 2515 checkUnnamed335(core.List<core.String> o) { | 2650 checkUnnamed569(core.List<core.String> o) { |
| 2516 unittest.expect(o, unittest.hasLength(2)); | 2651 unittest.expect(o, unittest.hasLength(2)); |
| 2517 unittest.expect(o[0], unittest.equals('foo')); | 2652 unittest.expect(o[0], unittest.equals('foo')); |
| 2518 unittest.expect(o[1], unittest.equals('foo')); | 2653 unittest.expect(o[1], unittest.equals('foo')); |
| 2519 } | 2654 } |
| 2520 | 2655 |
| 2521 buildUnnamed336() { | 2656 buildUnnamed570() { |
| 2522 var o = new core.List<core.String>(); | 2657 var o = new core.List<core.String>(); |
| 2523 o.add("foo"); | 2658 o.add("foo"); |
| 2524 o.add("foo"); | 2659 o.add("foo"); |
| 2525 return o; | 2660 return o; |
| 2526 } | 2661 } |
| 2527 | 2662 |
| 2528 checkUnnamed336(core.List<core.String> o) { | 2663 checkUnnamed570(core.List<core.String> o) { |
| 2529 unittest.expect(o, unittest.hasLength(2)); | 2664 unittest.expect(o, unittest.hasLength(2)); |
| 2530 unittest.expect(o[0], unittest.equals('foo')); | 2665 unittest.expect(o[0], unittest.equals('foo')); |
| 2531 unittest.expect(o[1], unittest.equals('foo')); | 2666 unittest.expect(o[1], unittest.equals('foo')); |
| 2532 } | 2667 } |
| 2533 | 2668 |
| 2534 buildUnnamed337() { | 2669 buildUnnamed571() { |
| 2535 var o = new core.List<core.String>(); | 2670 var o = new core.List<core.String>(); |
| 2536 o.add("foo"); | 2671 o.add("foo"); |
| 2537 o.add("foo"); | 2672 o.add("foo"); |
| 2538 return o; | 2673 return o; |
| 2539 } | 2674 } |
| 2540 | 2675 |
| 2541 checkUnnamed337(core.List<core.String> o) { | 2676 checkUnnamed571(core.List<core.String> o) { |
| 2542 unittest.expect(o, unittest.hasLength(2)); | 2677 unittest.expect(o, unittest.hasLength(2)); |
| 2543 unittest.expect(o[0], unittest.equals('foo')); | 2678 unittest.expect(o[0], unittest.equals('foo')); |
| 2544 unittest.expect(o[1], unittest.equals('foo')); | 2679 unittest.expect(o[1], unittest.equals('foo')); |
| 2545 } | 2680 } |
| 2546 | 2681 |
| 2547 buildUnnamed338() { | 2682 buildUnnamed572() { |
| 2548 var o = new core.List<core.String>(); | 2683 var o = new core.List<core.String>(); |
| 2549 o.add("foo"); | 2684 o.add("foo"); |
| 2550 o.add("foo"); | 2685 o.add("foo"); |
| 2551 return o; | 2686 return o; |
| 2552 } | 2687 } |
| 2553 | 2688 |
| 2554 checkUnnamed338(core.List<core.String> o) { | 2689 checkUnnamed572(core.List<core.String> o) { |
| 2555 unittest.expect(o, unittest.hasLength(2)); | 2690 unittest.expect(o, unittest.hasLength(2)); |
| 2556 unittest.expect(o[0], unittest.equals('foo')); | 2691 unittest.expect(o[0], unittest.equals('foo')); |
| 2557 unittest.expect(o[1], unittest.equals('foo')); | 2692 unittest.expect(o[1], unittest.equals('foo')); |
| 2558 } | 2693 } |
| 2559 | 2694 |
| 2560 buildUnnamed339() { | 2695 buildUnnamed573() { |
| 2561 var o = new core.List<core.String>(); | 2696 var o = new core.List<core.String>(); |
| 2562 o.add("foo"); | 2697 o.add("foo"); |
| 2563 o.add("foo"); | 2698 o.add("foo"); |
| 2564 return o; | 2699 return o; |
| 2565 } | 2700 } |
| 2566 | 2701 |
| 2567 checkUnnamed339(core.List<core.String> o) { | 2702 checkUnnamed573(core.List<core.String> o) { |
| 2568 unittest.expect(o, unittest.hasLength(2)); | 2703 unittest.expect(o, unittest.hasLength(2)); |
| 2569 unittest.expect(o[0], unittest.equals('foo')); | 2704 unittest.expect(o[0], unittest.equals('foo')); |
| 2570 unittest.expect(o[1], unittest.equals('foo')); | 2705 unittest.expect(o[1], unittest.equals('foo')); |
| 2571 } | 2706 } |
| 2572 | 2707 |
| 2573 buildUnnamed340() { | 2708 buildUnnamed574() { |
| 2574 var o = new core.List<core.String>(); | 2709 var o = new core.List<core.String>(); |
| 2575 o.add("foo"); | 2710 o.add("foo"); |
| 2576 o.add("foo"); | 2711 o.add("foo"); |
| 2577 return o; | 2712 return o; |
| 2578 } | 2713 } |
| 2579 | 2714 |
| 2580 checkUnnamed340(core.List<core.String> o) { | 2715 checkUnnamed574(core.List<core.String> o) { |
| 2581 unittest.expect(o, unittest.hasLength(2)); | 2716 unittest.expect(o, unittest.hasLength(2)); |
| 2582 unittest.expect(o[0], unittest.equals('foo')); | 2717 unittest.expect(o[0], unittest.equals('foo')); |
| 2583 unittest.expect(o[1], unittest.equals('foo')); | 2718 unittest.expect(o[1], unittest.equals('foo')); |
| 2584 } | 2719 } |
| 2585 | 2720 |
| 2586 buildUnnamed341() { | 2721 buildUnnamed575() { |
| 2587 var o = new core.List<core.String>(); | 2722 var o = new core.List<core.String>(); |
| 2588 o.add("foo"); | 2723 o.add("foo"); |
| 2589 o.add("foo"); | 2724 o.add("foo"); |
| 2590 return o; | 2725 return o; |
| 2591 } | 2726 } |
| 2592 | 2727 |
| 2593 checkUnnamed341(core.List<core.String> o) { | 2728 checkUnnamed575(core.List<core.String> o) { |
| 2594 unittest.expect(o, unittest.hasLength(2)); | 2729 unittest.expect(o, unittest.hasLength(2)); |
| 2595 unittest.expect(o[0], unittest.equals('foo')); | 2730 unittest.expect(o[0], unittest.equals('foo')); |
| 2596 unittest.expect(o[1], unittest.equals('foo')); | 2731 unittest.expect(o[1], unittest.equals('foo')); |
| 2597 } | 2732 } |
| 2598 | 2733 |
| 2599 buildUnnamed342() { | 2734 buildUnnamed576() { |
| 2600 var o = new core.List<core.String>(); | 2735 var o = new core.List<core.String>(); |
| 2601 o.add("foo"); | 2736 o.add("foo"); |
| 2602 o.add("foo"); | 2737 o.add("foo"); |
| 2603 return o; | 2738 return o; |
| 2604 } | 2739 } |
| 2605 | 2740 |
| 2606 checkUnnamed342(core.List<core.String> o) { | 2741 checkUnnamed576(core.List<core.String> o) { |
| 2607 unittest.expect(o, unittest.hasLength(2)); | 2742 unittest.expect(o, unittest.hasLength(2)); |
| 2608 unittest.expect(o[0], unittest.equals('foo')); | 2743 unittest.expect(o[0], unittest.equals('foo')); |
| 2609 unittest.expect(o[1], unittest.equals('foo')); | 2744 unittest.expect(o[1], unittest.equals('foo')); |
| 2610 } | 2745 } |
| 2611 | 2746 |
| 2612 buildUnnamed343() { | 2747 buildUnnamed577() { |
| 2613 var o = new core.List<core.String>(); | 2748 var o = new core.List<core.String>(); |
| 2614 o.add("foo"); | 2749 o.add("foo"); |
| 2615 o.add("foo"); | 2750 o.add("foo"); |
| 2616 return o; | 2751 return o; |
| 2617 } | 2752 } |
| 2618 | 2753 |
| 2619 checkUnnamed343(core.List<core.String> o) { | 2754 checkUnnamed577(core.List<core.String> o) { |
| 2620 unittest.expect(o, unittest.hasLength(2)); | 2755 unittest.expect(o, unittest.hasLength(2)); |
| 2621 unittest.expect(o[0], unittest.equals('foo')); | 2756 unittest.expect(o[0], unittest.equals('foo')); |
| 2622 unittest.expect(o[1], unittest.equals('foo')); | 2757 unittest.expect(o[1], unittest.equals('foo')); |
| 2623 } | 2758 } |
| 2624 | 2759 |
| 2625 buildUnnamed344() { | 2760 buildUnnamed578() { |
| 2626 var o = new core.List<core.String>(); | 2761 var o = new core.List<core.String>(); |
| 2627 o.add("foo"); | 2762 o.add("foo"); |
| 2628 o.add("foo"); | 2763 o.add("foo"); |
| 2629 return o; | 2764 return o; |
| 2630 } | 2765 } |
| 2631 | 2766 |
| 2632 checkUnnamed344(core.List<core.String> o) { | 2767 checkUnnamed578(core.List<core.String> o) { |
| 2633 unittest.expect(o, unittest.hasLength(2)); | 2768 unittest.expect(o, unittest.hasLength(2)); |
| 2634 unittest.expect(o[0], unittest.equals('foo')); | 2769 unittest.expect(o[0], unittest.equals('foo')); |
| 2635 unittest.expect(o[1], unittest.equals('foo')); | 2770 unittest.expect(o[1], unittest.equals('foo')); |
| 2771 } |
| 2772 |
| 2773 buildUnnamed579() { |
| 2774 var o = new core.List<core.String>(); |
| 2775 o.add("foo"); |
| 2776 o.add("foo"); |
| 2777 return o; |
| 2778 } |
| 2779 |
| 2780 checkUnnamed579(core.List<core.String> o) { |
| 2781 unittest.expect(o, unittest.hasLength(2)); |
| 2782 unittest.expect(o[0], unittest.equals('foo')); |
| 2783 unittest.expect(o[1], unittest.equals('foo')); |
| 2636 } | 2784 } |
| 2637 | 2785 |
| 2638 | 2786 |
| 2639 main() { | 2787 main() { |
| 2640 unittest.group("obj-schema-AnnotationClientVersionRanges", () { | 2788 unittest.group("obj-schema-AnnotationClientVersionRanges", () { |
| 2641 unittest.test("to-json--from-json", () { | 2789 unittest.test("to-json--from-json", () { |
| 2642 var o = buildAnnotationClientVersionRanges(); | 2790 var o = buildAnnotationClientVersionRanges(); |
| 2643 var od = new api.AnnotationClientVersionRanges.fromJson(o.toJson()); | 2791 var od = new api.AnnotationClientVersionRanges.fromJson(o.toJson()); |
| 2644 checkAnnotationClientVersionRanges(od); | 2792 checkAnnotationClientVersionRanges(od); |
| 2645 }); | 2793 }); |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2756 | 2904 |
| 2757 unittest.group("obj-schema-Bookshelves", () { | 2905 unittest.group("obj-schema-Bookshelves", () { |
| 2758 unittest.test("to-json--from-json", () { | 2906 unittest.test("to-json--from-json", () { |
| 2759 var o = buildBookshelves(); | 2907 var o = buildBookshelves(); |
| 2760 var od = new api.Bookshelves.fromJson(o.toJson()); | 2908 var od = new api.Bookshelves.fromJson(o.toJson()); |
| 2761 checkBookshelves(od); | 2909 checkBookshelves(od); |
| 2762 }); | 2910 }); |
| 2763 }); | 2911 }); |
| 2764 | 2912 |
| 2765 | 2913 |
| 2914 unittest.group("obj-schema-CategoryItems", () { |
| 2915 unittest.test("to-json--from-json", () { |
| 2916 var o = buildCategoryItems(); |
| 2917 var od = new api.CategoryItems.fromJson(o.toJson()); |
| 2918 checkCategoryItems(od); |
| 2919 }); |
| 2920 }); |
| 2921 |
| 2922 |
| 2923 unittest.group("obj-schema-Category", () { |
| 2924 unittest.test("to-json--from-json", () { |
| 2925 var o = buildCategory(); |
| 2926 var od = new api.Category.fromJson(o.toJson()); |
| 2927 checkCategory(od); |
| 2928 }); |
| 2929 }); |
| 2930 |
| 2931 |
| 2766 unittest.group("obj-schema-ConcurrentAccessRestriction", () { | 2932 unittest.group("obj-schema-ConcurrentAccessRestriction", () { |
| 2767 unittest.test("to-json--from-json", () { | 2933 unittest.test("to-json--from-json", () { |
| 2768 var o = buildConcurrentAccessRestriction(); | 2934 var o = buildConcurrentAccessRestriction(); |
| 2769 var od = new api.ConcurrentAccessRestriction.fromJson(o.toJson()); | 2935 var od = new api.ConcurrentAccessRestriction.fromJson(o.toJson()); |
| 2770 checkConcurrentAccessRestriction(od); | 2936 checkConcurrentAccessRestriction(od); |
| 2771 }); | 2937 }); |
| 2772 }); | 2938 }); |
| 2773 | 2939 |
| 2774 | 2940 |
| 2775 unittest.group("obj-schema-DictlayerdataCommon", () { | 2941 unittest.group("obj-schema-DictlayerdataCommon", () { |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3116 | 3282 |
| 3117 unittest.group("obj-schema-Review", () { | 3283 unittest.group("obj-schema-Review", () { |
| 3118 unittest.test("to-json--from-json", () { | 3284 unittest.test("to-json--from-json", () { |
| 3119 var o = buildReview(); | 3285 var o = buildReview(); |
| 3120 var od = new api.Review.fromJson(o.toJson()); | 3286 var od = new api.Review.fromJson(o.toJson()); |
| 3121 checkReview(od); | 3287 checkReview(od); |
| 3122 }); | 3288 }); |
| 3123 }); | 3289 }); |
| 3124 | 3290 |
| 3125 | 3291 |
| 3292 unittest.group("obj-schema-UsersettingsNotesExport", () { |
| 3293 unittest.test("to-json--from-json", () { |
| 3294 var o = buildUsersettingsNotesExport(); |
| 3295 var od = new api.UsersettingsNotesExport.fromJson(o.toJson()); |
| 3296 checkUsersettingsNotesExport(od); |
| 3297 }); |
| 3298 }); |
| 3299 |
| 3300 |
| 3301 unittest.group("obj-schema-Usersettings", () { |
| 3302 unittest.test("to-json--from-json", () { |
| 3303 var o = buildUsersettings(); |
| 3304 var od = new api.Usersettings.fromJson(o.toJson()); |
| 3305 checkUsersettings(od); |
| 3306 }); |
| 3307 }); |
| 3308 |
| 3309 |
| 3126 unittest.group("obj-schema-VolumeAccessInfoEpub", () { | 3310 unittest.group("obj-schema-VolumeAccessInfoEpub", () { |
| 3127 unittest.test("to-json--from-json", () { | 3311 unittest.test("to-json--from-json", () { |
| 3128 var o = buildVolumeAccessInfoEpub(); | 3312 var o = buildVolumeAccessInfoEpub(); |
| 3129 var od = new api.VolumeAccessInfoEpub.fromJson(o.toJson()); | 3313 var od = new api.VolumeAccessInfoEpub.fromJson(o.toJson()); |
| 3130 checkVolumeAccessInfoEpub(od); | 3314 checkVolumeAccessInfoEpub(od); |
| 3131 }); | 3315 }); |
| 3132 }); | 3316 }); |
| 3133 | 3317 |
| 3134 | 3318 |
| 3135 unittest.group("obj-schema-VolumeAccessInfoPdf", () { | 3319 unittest.group("obj-schema-VolumeAccessInfoPdf", () { |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3323 | 3507 |
| 3324 unittest.group("obj-schema-Volume", () { | 3508 unittest.group("obj-schema-Volume", () { |
| 3325 unittest.test("to-json--from-json", () { | 3509 unittest.test("to-json--from-json", () { |
| 3326 var o = buildVolume(); | 3510 var o = buildVolume(); |
| 3327 var od = new api.Volume.fromJson(o.toJson()); | 3511 var od = new api.Volume.fromJson(o.toJson()); |
| 3328 checkVolume(od); | 3512 checkVolume(od); |
| 3329 }); | 3513 }); |
| 3330 }); | 3514 }); |
| 3331 | 3515 |
| 3332 | 3516 |
| 3517 unittest.group("obj-schema-Volume2", () { |
| 3518 unittest.test("to-json--from-json", () { |
| 3519 var o = buildVolume2(); |
| 3520 var od = new api.Volume2.fromJson(o.toJson()); |
| 3521 checkVolume2(od); |
| 3522 }); |
| 3523 }); |
| 3524 |
| 3525 |
| 3333 unittest.group("obj-schema-VolumeannotationContentRanges", () { | 3526 unittest.group("obj-schema-VolumeannotationContentRanges", () { |
| 3334 unittest.test("to-json--from-json", () { | 3527 unittest.test("to-json--from-json", () { |
| 3335 var o = buildVolumeannotationContentRanges(); | 3528 var o = buildVolumeannotationContentRanges(); |
| 3336 var od = new api.VolumeannotationContentRanges.fromJson(o.toJson()); | 3529 var od = new api.VolumeannotationContentRanges.fromJson(o.toJson()); |
| 3337 checkVolumeannotationContentRanges(od); | 3530 checkVolumeannotationContentRanges(od); |
| 3338 }); | 3531 }); |
| 3339 }); | 3532 }); |
| 3340 | 3533 |
| 3341 | 3534 |
| 3342 unittest.group("obj-schema-Volumeannotation", () { | 3535 unittest.group("obj-schema-Volumeannotation", () { |
| (...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3965 }))); | 4158 }))); |
| 3966 }); | 4159 }); |
| 3967 | 4160 |
| 3968 unittest.test("method--list", () { | 4161 unittest.test("method--list", () { |
| 3969 | 4162 |
| 3970 var mock = new common_test.HttpServerMock(); | 4163 var mock = new common_test.HttpServerMock(); |
| 3971 api.LayersAnnotationDataResourceApi res = new api.BooksApi(mock).layers.an
notationData; | 4164 api.LayersAnnotationDataResourceApi res = new api.BooksApi(mock).layers.an
notationData; |
| 3972 var arg_volumeId = "foo"; | 4165 var arg_volumeId = "foo"; |
| 3973 var arg_layerId = "foo"; | 4166 var arg_layerId = "foo"; |
| 3974 var arg_contentVersion = "foo"; | 4167 var arg_contentVersion = "foo"; |
| 3975 var arg_annotationDataId = buildUnnamed334(); | 4168 var arg_annotationDataId = buildUnnamed568(); |
| 3976 var arg_h = 42; | 4169 var arg_h = 42; |
| 3977 var arg_locale = "foo"; | 4170 var arg_locale = "foo"; |
| 3978 var arg_maxResults = 42; | 4171 var arg_maxResults = 42; |
| 3979 var arg_pageToken = "foo"; | 4172 var arg_pageToken = "foo"; |
| 3980 var arg_scale = 42; | 4173 var arg_scale = 42; |
| 3981 var arg_source = "foo"; | 4174 var arg_source = "foo"; |
| 3982 var arg_updatedMax = "foo"; | 4175 var arg_updatedMax = "foo"; |
| 3983 var arg_updatedMin = "foo"; | 4176 var arg_updatedMin = "foo"; |
| 3984 var arg_w = 42; | 4177 var arg_w = 42; |
| 3985 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4178 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4201 }), true); | 4394 }), true); |
| 4202 res.list(arg_volumeId, arg_layerId, arg_contentVersion, endOffset: arg_end
Offset, endPosition: arg_endPosition, locale: arg_locale, maxResults: arg_maxRes
ults, pageToken: arg_pageToken, showDeleted: arg_showDeleted, source: arg_source
, startOffset: arg_startOffset, startPosition: arg_startPosition, updatedMax: ar
g_updatedMax, updatedMin: arg_updatedMin, volumeAnnotationsVersion: arg_volumeAn
notationsVersion).then(unittest.expectAsync(((api.Volumeannotations response) { | 4395 res.list(arg_volumeId, arg_layerId, arg_contentVersion, endOffset: arg_end
Offset, endPosition: arg_endPosition, locale: arg_locale, maxResults: arg_maxRes
ults, pageToken: arg_pageToken, showDeleted: arg_showDeleted, source: arg_source
, startOffset: arg_startOffset, startPosition: arg_startPosition, updatedMax: ar
g_updatedMax, updatedMin: arg_updatedMin, volumeAnnotationsVersion: arg_volumeAn
notationsVersion).then(unittest.expectAsync(((api.Volumeannotations response) { |
| 4203 checkVolumeannotations(response); | 4396 checkVolumeannotations(response); |
| 4204 }))); | 4397 }))); |
| 4205 }); | 4398 }); |
| 4206 | 4399 |
| 4207 }); | 4400 }); |
| 4208 | 4401 |
| 4209 | 4402 |
| 4210 unittest.group("resource-MyconfigResourceApi", () { | 4403 unittest.group("resource-MyconfigResourceApi", () { |
| 4404 unittest.test("method--getUserSettings", () { |
| 4405 |
| 4406 var mock = new common_test.HttpServerMock(); |
| 4407 api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig; |
| 4408 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4409 var path = (req.url).path; |
| 4410 var pathOffset = 0; |
| 4411 var index; |
| 4412 var subPart; |
| 4413 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4414 pathOffset += 1; |
| 4415 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 4416 pathOffset += 9; |
| 4417 unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.eq
uals("myconfig/getUserSettings")); |
| 4418 pathOffset += 24; |
| 4419 |
| 4420 var query = (req.url).query; |
| 4421 var queryOffset = 0; |
| 4422 var queryMap = {}; |
| 4423 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 4424 parseBool(n) { |
| 4425 if (n == "true") return true; |
| 4426 if (n == "false") return false; |
| 4427 if (n == null) return null; |
| 4428 throw new core.ArgumentError("Invalid boolean: $n"); |
| 4429 } |
| 4430 if (query.length > 0) { |
| 4431 for (var part in query.split("&")) { |
| 4432 var keyvalue = part.split("="); |
| 4433 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4434 } |
| 4435 } |
| 4436 |
| 4437 |
| 4438 var h = { |
| 4439 "content-type" : "application/json; charset=utf-8", |
| 4440 }; |
| 4441 var resp = convert.JSON.encode(buildUsersettings()); |
| 4442 return new async.Future.value(common_test.stringResponse(200, h, resp)); |
| 4443 }), true); |
| 4444 res.getUserSettings().then(unittest.expectAsync(((api.Usersettings respons
e) { |
| 4445 checkUsersettings(response); |
| 4446 }))); |
| 4447 }); |
| 4448 |
| 4211 unittest.test("method--releaseDownloadAccess", () { | 4449 unittest.test("method--releaseDownloadAccess", () { |
| 4212 | 4450 |
| 4213 var mock = new common_test.HttpServerMock(); | 4451 var mock = new common_test.HttpServerMock(); |
| 4214 api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig; | 4452 api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig; |
| 4215 var arg_volumeIds = buildUnnamed335(); | 4453 var arg_volumeIds = buildUnnamed569(); |
| 4216 var arg_cpksver = "foo"; | 4454 var arg_cpksver = "foo"; |
| 4217 var arg_locale = "foo"; | 4455 var arg_locale = "foo"; |
| 4218 var arg_source = "foo"; | 4456 var arg_source = "foo"; |
| 4219 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4457 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4220 var path = (req.url).path; | 4458 var path = (req.url).path; |
| 4221 var pathOffset = 0; | 4459 var pathOffset = 0; |
| 4222 var index; | 4460 var index; |
| 4223 var subPart; | 4461 var subPart; |
| 4224 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4462 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4225 pathOffset += 1; | 4463 pathOffset += 1; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4318 }))); | 4556 }))); |
| 4319 }); | 4557 }); |
| 4320 | 4558 |
| 4321 unittest.test("method--syncVolumeLicenses", () { | 4559 unittest.test("method--syncVolumeLicenses", () { |
| 4322 | 4560 |
| 4323 var mock = new common_test.HttpServerMock(); | 4561 var mock = new common_test.HttpServerMock(); |
| 4324 api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig; | 4562 api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig; |
| 4325 var arg_source = "foo"; | 4563 var arg_source = "foo"; |
| 4326 var arg_nonce = "foo"; | 4564 var arg_nonce = "foo"; |
| 4327 var arg_cpksver = "foo"; | 4565 var arg_cpksver = "foo"; |
| 4328 var arg_features = buildUnnamed336(); | 4566 var arg_features = buildUnnamed570(); |
| 4329 var arg_locale = "foo"; | 4567 var arg_locale = "foo"; |
| 4330 var arg_showPreorders = true; | 4568 var arg_showPreorders = true; |
| 4331 var arg_volumeIds = buildUnnamed337(); | 4569 var arg_volumeIds = buildUnnamed571(); |
| 4332 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4570 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4333 var path = (req.url).path; | 4571 var path = (req.url).path; |
| 4334 var pathOffset = 0; | 4572 var pathOffset = 0; |
| 4335 var index; | 4573 var index; |
| 4336 var subPart; | 4574 var subPart; |
| 4337 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4575 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4338 pathOffset += 1; | 4576 pathOffset += 1; |
| 4339 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); | 4577 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 4340 pathOffset += 9; | 4578 pathOffset += 9; |
| 4341 unittest.expect(path.substring(pathOffset, pathOffset + 27), unittest.eq
uals("myconfig/syncVolumeLicenses")); | 4579 unittest.expect(path.substring(pathOffset, pathOffset + 27), unittest.eq
uals("myconfig/syncVolumeLicenses")); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 4370 "content-type" : "application/json; charset=utf-8", | 4608 "content-type" : "application/json; charset=utf-8", |
| 4371 }; | 4609 }; |
| 4372 var resp = convert.JSON.encode(buildVolumes()); | 4610 var resp = convert.JSON.encode(buildVolumes()); |
| 4373 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 4611 return new async.Future.value(common_test.stringResponse(200, h, resp)); |
| 4374 }), true); | 4612 }), true); |
| 4375 res.syncVolumeLicenses(arg_source, arg_nonce, arg_cpksver, features: arg_f
eatures, locale: arg_locale, showPreorders: arg_showPreorders, volumeIds: arg_vo
lumeIds).then(unittest.expectAsync(((api.Volumes response) { | 4613 res.syncVolumeLicenses(arg_source, arg_nonce, arg_cpksver, features: arg_f
eatures, locale: arg_locale, showPreorders: arg_showPreorders, volumeIds: arg_vo
lumeIds).then(unittest.expectAsync(((api.Volumes response) { |
| 4376 checkVolumes(response); | 4614 checkVolumes(response); |
| 4377 }))); | 4615 }))); |
| 4378 }); | 4616 }); |
| 4379 | 4617 |
| 4618 unittest.test("method--updateUserSettings", () { |
| 4619 |
| 4620 var mock = new common_test.HttpServerMock(); |
| 4621 api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig; |
| 4622 var arg_request = buildUsersettings(); |
| 4623 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4624 var obj = new api.Usersettings.fromJson(json); |
| 4625 checkUsersettings(obj); |
| 4626 |
| 4627 var path = (req.url).path; |
| 4628 var pathOffset = 0; |
| 4629 var index; |
| 4630 var subPart; |
| 4631 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4632 pathOffset += 1; |
| 4633 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 4634 pathOffset += 9; |
| 4635 unittest.expect(path.substring(pathOffset, pathOffset + 27), unittest.eq
uals("myconfig/updateUserSettings")); |
| 4636 pathOffset += 27; |
| 4637 |
| 4638 var query = (req.url).query; |
| 4639 var queryOffset = 0; |
| 4640 var queryMap = {}; |
| 4641 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 4642 parseBool(n) { |
| 4643 if (n == "true") return true; |
| 4644 if (n == "false") return false; |
| 4645 if (n == null) return null; |
| 4646 throw new core.ArgumentError("Invalid boolean: $n"); |
| 4647 } |
| 4648 if (query.length > 0) { |
| 4649 for (var part in query.split("&")) { |
| 4650 var keyvalue = part.split("="); |
| 4651 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4652 } |
| 4653 } |
| 4654 |
| 4655 |
| 4656 var h = { |
| 4657 "content-type" : "application/json; charset=utf-8", |
| 4658 }; |
| 4659 var resp = convert.JSON.encode(buildUsersettings()); |
| 4660 return new async.Future.value(common_test.stringResponse(200, h, resp)); |
| 4661 }), true); |
| 4662 res.updateUserSettings(arg_request).then(unittest.expectAsync(((api.Userse
ttings response) { |
| 4663 checkUsersettings(response); |
| 4664 }))); |
| 4665 }); |
| 4666 |
| 4380 }); | 4667 }); |
| 4381 | 4668 |
| 4382 | 4669 |
| 4383 unittest.group("resource-MylibraryAnnotationsResourceApi", () { | 4670 unittest.group("resource-MylibraryAnnotationsResourceApi", () { |
| 4384 unittest.test("method--delete", () { | 4671 unittest.test("method--delete", () { |
| 4385 | 4672 |
| 4386 var mock = new common_test.HttpServerMock(); | 4673 var mock = new common_test.HttpServerMock(); |
| 4387 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary
.annotations; | 4674 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary
.annotations; |
| 4388 var arg_annotationId = "foo"; | 4675 var arg_annotationId = "foo"; |
| 4389 var arg_source = "foo"; | 4676 var arg_source = "foo"; |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4535 checkAnnotation(response); | 4822 checkAnnotation(response); |
| 4536 }))); | 4823 }))); |
| 4537 }); | 4824 }); |
| 4538 | 4825 |
| 4539 unittest.test("method--list", () { | 4826 unittest.test("method--list", () { |
| 4540 | 4827 |
| 4541 var mock = new common_test.HttpServerMock(); | 4828 var mock = new common_test.HttpServerMock(); |
| 4542 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary
.annotations; | 4829 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary
.annotations; |
| 4543 var arg_contentVersion = "foo"; | 4830 var arg_contentVersion = "foo"; |
| 4544 var arg_layerId = "foo"; | 4831 var arg_layerId = "foo"; |
| 4545 var arg_layerIds = buildUnnamed338(); | 4832 var arg_layerIds = buildUnnamed572(); |
| 4546 var arg_maxResults = 42; | 4833 var arg_maxResults = 42; |
| 4547 var arg_pageIds = buildUnnamed339(); | 4834 var arg_pageIds = buildUnnamed573(); |
| 4548 var arg_pageToken = "foo"; | 4835 var arg_pageToken = "foo"; |
| 4549 var arg_showDeleted = true; | 4836 var arg_showDeleted = true; |
| 4550 var arg_source = "foo"; | 4837 var arg_source = "foo"; |
| 4551 var arg_updatedMax = "foo"; | 4838 var arg_updatedMax = "foo"; |
| 4552 var arg_updatedMin = "foo"; | 4839 var arg_updatedMin = "foo"; |
| 4553 var arg_volumeId = "foo"; | 4840 var arg_volumeId = "foo"; |
| 4554 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4841 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4555 var path = (req.url).path; | 4842 var path = (req.url).path; |
| 4556 var pathOffset = 0; | 4843 var pathOffset = 0; |
| 4557 var index; | 4844 var index; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4600 }), true); | 4887 }), true); |
| 4601 res.list(contentVersion: arg_contentVersion, layerId: arg_layerId, layerId
s: arg_layerIds, maxResults: arg_maxResults, pageIds: arg_pageIds, pageToken: ar
g_pageToken, showDeleted: arg_showDeleted, source: arg_source, updatedMax: arg_u
pdatedMax, updatedMin: arg_updatedMin, volumeId: arg_volumeId).then(unittest.exp
ectAsync(((api.Annotations response) { | 4888 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) { |
| 4602 checkAnnotations(response); | 4889 checkAnnotations(response); |
| 4603 }))); | 4890 }))); |
| 4604 }); | 4891 }); |
| 4605 | 4892 |
| 4606 unittest.test("method--summary", () { | 4893 unittest.test("method--summary", () { |
| 4607 | 4894 |
| 4608 var mock = new common_test.HttpServerMock(); | 4895 var mock = new common_test.HttpServerMock(); |
| 4609 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary
.annotations; | 4896 api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary
.annotations; |
| 4610 var arg_layerIds = buildUnnamed340(); | 4897 var arg_layerIds = buildUnnamed574(); |
| 4611 var arg_volumeId = "foo"; | 4898 var arg_volumeId = "foo"; |
| 4612 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4899 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4613 var path = (req.url).path; | 4900 var path = (req.url).path; |
| 4614 var pathOffset = 0; | 4901 var pathOffset = 0; |
| 4615 var index; | 4902 var index; |
| 4616 var subPart; | 4903 var subPart; |
| 4617 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4904 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4618 pathOffset += 1; | 4905 pathOffset += 1; |
| 4619 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); | 4906 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 4620 pathOffset += 9; | 4907 pathOffset += 9; |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5216 }; | 5503 }; |
| 5217 var resp = ""; | 5504 var resp = ""; |
| 5218 return new async.Future.value(common_test.stringResponse(200, h, resp)); | 5505 return new async.Future.value(common_test.stringResponse(200, h, resp)); |
| 5219 }), true); | 5506 }), true); |
| 5220 res.setPosition(arg_volumeId, arg_timestamp, arg_position, action: arg_act
ion, contentVersion: arg_contentVersion, deviceCookie: arg_deviceCookie, source:
arg_source).then(unittest.expectAsync((_) {})); | 5507 res.setPosition(arg_volumeId, arg_timestamp, arg_position, action: arg_act
ion, contentVersion: arg_contentVersion, deviceCookie: arg_deviceCookie, source:
arg_source).then(unittest.expectAsync((_) {})); |
| 5221 }); | 5508 }); |
| 5222 | 5509 |
| 5223 }); | 5510 }); |
| 5224 | 5511 |
| 5225 | 5512 |
| 5513 unittest.group("resource-OnboardingResourceApi", () { |
| 5514 unittest.test("method--listCategories", () { |
| 5515 |
| 5516 var mock = new common_test.HttpServerMock(); |
| 5517 api.OnboardingResourceApi res = new api.BooksApi(mock).onboarding; |
| 5518 var arg_locale = "foo"; |
| 5519 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5520 var path = (req.url).path; |
| 5521 var pathOffset = 0; |
| 5522 var index; |
| 5523 var subPart; |
| 5524 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5525 pathOffset += 1; |
| 5526 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 5527 pathOffset += 9; |
| 5528 unittest.expect(path.substring(pathOffset, pathOffset + 25), unittest.eq
uals("onboarding/listCategories")); |
| 5529 pathOffset += 25; |
| 5530 |
| 5531 var query = (req.url).query; |
| 5532 var queryOffset = 0; |
| 5533 var queryMap = {}; |
| 5534 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 5535 parseBool(n) { |
| 5536 if (n == "true") return true; |
| 5537 if (n == "false") return false; |
| 5538 if (n == null) return null; |
| 5539 throw new core.ArgumentError("Invalid boolean: $n"); |
| 5540 } |
| 5541 if (query.length > 0) { |
| 5542 for (var part in query.split("&")) { |
| 5543 var keyvalue = part.split("="); |
| 5544 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5545 } |
| 5546 } |
| 5547 unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); |
| 5548 |
| 5549 |
| 5550 var h = { |
| 5551 "content-type" : "application/json; charset=utf-8", |
| 5552 }; |
| 5553 var resp = convert.JSON.encode(buildCategory()); |
| 5554 return new async.Future.value(common_test.stringResponse(200, h, resp)); |
| 5555 }), true); |
| 5556 res.listCategories(locale: arg_locale).then(unittest.expectAsync(((api.Cat
egory response) { |
| 5557 checkCategory(response); |
| 5558 }))); |
| 5559 }); |
| 5560 |
| 5561 unittest.test("method--listCategoryVolumes", () { |
| 5562 |
| 5563 var mock = new common_test.HttpServerMock(); |
| 5564 api.OnboardingResourceApi res = new api.BooksApi(mock).onboarding; |
| 5565 var arg_categoryId = buildUnnamed575(); |
| 5566 var arg_locale = "foo"; |
| 5567 var arg_pageSize = 42; |
| 5568 var arg_pageToken = "foo"; |
| 5569 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5570 var path = (req.url).path; |
| 5571 var pathOffset = 0; |
| 5572 var index; |
| 5573 var subPart; |
| 5574 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5575 pathOffset += 1; |
| 5576 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 5577 pathOffset += 9; |
| 5578 unittest.expect(path.substring(pathOffset, pathOffset + 30), unittest.eq
uals("onboarding/listCategoryVolumes")); |
| 5579 pathOffset += 30; |
| 5580 |
| 5581 var query = (req.url).query; |
| 5582 var queryOffset = 0; |
| 5583 var queryMap = {}; |
| 5584 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 5585 parseBool(n) { |
| 5586 if (n == "true") return true; |
| 5587 if (n == "false") return false; |
| 5588 if (n == null) return null; |
| 5589 throw new core.ArgumentError("Invalid boolean: $n"); |
| 5590 } |
| 5591 if (query.length > 0) { |
| 5592 for (var part in query.split("&")) { |
| 5593 var keyvalue = part.split("="); |
| 5594 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5595 } |
| 5596 } |
| 5597 unittest.expect(queryMap["categoryId"], unittest.equals(arg_categoryId))
; |
| 5598 unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); |
| 5599 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
| 5600 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 5601 |
| 5602 |
| 5603 var h = { |
| 5604 "content-type" : "application/json; charset=utf-8", |
| 5605 }; |
| 5606 var resp = convert.JSON.encode(buildVolume2()); |
| 5607 return new async.Future.value(common_test.stringResponse(200, h, resp)); |
| 5608 }), true); |
| 5609 res.listCategoryVolumes(categoryId: arg_categoryId, locale: arg_locale, pa
geSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.
Volume2 response) { |
| 5610 checkVolume2(response); |
| 5611 }))); |
| 5612 }); |
| 5613 |
| 5614 }); |
| 5615 |
| 5616 |
| 5226 unittest.group("resource-PromoofferResourceApi", () { | 5617 unittest.group("resource-PromoofferResourceApi", () { |
| 5227 unittest.test("method--accept", () { | 5618 unittest.test("method--accept", () { |
| 5228 | 5619 |
| 5229 var mock = new common_test.HttpServerMock(); | 5620 var mock = new common_test.HttpServerMock(); |
| 5230 api.PromoofferResourceApi res = new api.BooksApi(mock).promooffer; | 5621 api.PromoofferResourceApi res = new api.BooksApi(mock).promooffer; |
| 5231 var arg_androidId = "foo"; | 5622 var arg_androidId = "foo"; |
| 5232 var arg_device = "foo"; | 5623 var arg_device = "foo"; |
| 5233 var arg_manufacturer = "foo"; | 5624 var arg_manufacturer = "foo"; |
| 5234 var arg_model = "foo"; | 5625 var arg_model = "foo"; |
| 5235 var arg_offerId = "foo"; | 5626 var arg_offerId = "foo"; |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5593 }); | 5984 }); |
| 5594 | 5985 |
| 5595 }); | 5986 }); |
| 5596 | 5987 |
| 5597 | 5988 |
| 5598 unittest.group("resource-VolumesMybooksResourceApi", () { | 5989 unittest.group("resource-VolumesMybooksResourceApi", () { |
| 5599 unittest.test("method--list", () { | 5990 unittest.test("method--list", () { |
| 5600 | 5991 |
| 5601 var mock = new common_test.HttpServerMock(); | 5992 var mock = new common_test.HttpServerMock(); |
| 5602 api.VolumesMybooksResourceApi res = new api.BooksApi(mock).volumes.mybooks
; | 5993 api.VolumesMybooksResourceApi res = new api.BooksApi(mock).volumes.mybooks
; |
| 5603 var arg_acquireMethod = buildUnnamed341(); | 5994 var arg_acquireMethod = buildUnnamed576(); |
| 5604 var arg_locale = "foo"; | 5995 var arg_locale = "foo"; |
| 5605 var arg_maxResults = 42; | 5996 var arg_maxResults = 42; |
| 5606 var arg_processingState = buildUnnamed342(); | 5997 var arg_processingState = buildUnnamed577(); |
| 5607 var arg_source = "foo"; | 5998 var arg_source = "foo"; |
| 5608 var arg_startIndex = 42; | 5999 var arg_startIndex = 42; |
| 5609 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6000 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5610 var path = (req.url).path; | 6001 var path = (req.url).path; |
| 5611 var pathOffset = 0; | 6002 var pathOffset = 0; |
| 5612 var index; | 6003 var index; |
| 5613 var subPart; | 6004 var subPart; |
| 5614 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6005 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5615 pathOffset += 1; | 6006 pathOffset += 1; |
| 5616 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); | 6007 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5762 }); | 6153 }); |
| 5763 | 6154 |
| 5764 | 6155 |
| 5765 unittest.group("resource-VolumesUseruploadedResourceApi", () { | 6156 unittest.group("resource-VolumesUseruploadedResourceApi", () { |
| 5766 unittest.test("method--list", () { | 6157 unittest.test("method--list", () { |
| 5767 | 6158 |
| 5768 var mock = new common_test.HttpServerMock(); | 6159 var mock = new common_test.HttpServerMock(); |
| 5769 api.VolumesUseruploadedResourceApi res = new api.BooksApi(mock).volumes.us
eruploaded; | 6160 api.VolumesUseruploadedResourceApi res = new api.BooksApi(mock).volumes.us
eruploaded; |
| 5770 var arg_locale = "foo"; | 6161 var arg_locale = "foo"; |
| 5771 var arg_maxResults = 42; | 6162 var arg_maxResults = 42; |
| 5772 var arg_processingState = buildUnnamed343(); | 6163 var arg_processingState = buildUnnamed578(); |
| 5773 var arg_source = "foo"; | 6164 var arg_source = "foo"; |
| 5774 var arg_startIndex = 42; | 6165 var arg_startIndex = 42; |
| 5775 var arg_volumeId = buildUnnamed344(); | 6166 var arg_volumeId = buildUnnamed579(); |
| 5776 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6167 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 5777 var path = (req.url).path; | 6168 var path = (req.url).path; |
| 5778 var pathOffset = 0; | 6169 var pathOffset = 0; |
| 5779 var index; | 6170 var index; |
| 5780 var subPart; | 6171 var subPart; |
| 5781 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6172 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5782 pathOffset += 1; | 6173 pathOffset += 1; |
| 5783 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); | 6174 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("books/v1/")); |
| 5784 pathOffset += 9; | 6175 pathOffset += 9; |
| 5785 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("volumes/useruploaded")); | 6176 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("volumes/useruploaded")); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5818 res.list(locale: arg_locale, maxResults: arg_maxResults, processingState:
arg_processingState, source: arg_source, startIndex: arg_startIndex, volumeId: a
rg_volumeId).then(unittest.expectAsync(((api.Volumes response) { | 6209 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) { |
| 5819 checkVolumes(response); | 6210 checkVolumes(response); |
| 5820 }))); | 6211 }))); |
| 5821 }); | 6212 }); |
| 5822 | 6213 |
| 5823 }); | 6214 }); |
| 5824 | 6215 |
| 5825 | 6216 |
| 5826 } | 6217 } |
| 5827 | 6218 |
| OLD | NEW |