| OLD | NEW |
| 1 library googleapis_beta.appengine.v1beta4.test; | 1 library googleapis_beta.appengine.v1beta4.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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 } | 90 } |
| 91 | 91 |
| 92 checkApiEndpointHandler(api.ApiEndpointHandler o) { | 92 checkApiEndpointHandler(api.ApiEndpointHandler o) { |
| 93 buildCounterApiEndpointHandler++; | 93 buildCounterApiEndpointHandler++; |
| 94 if (buildCounterApiEndpointHandler < 3) { | 94 if (buildCounterApiEndpointHandler < 3) { |
| 95 unittest.expect(o.scriptPath, unittest.equals('foo')); | 95 unittest.expect(o.scriptPath, unittest.equals('foo')); |
| 96 } | 96 } |
| 97 buildCounterApiEndpointHandler--; | 97 buildCounterApiEndpointHandler--; |
| 98 } | 98 } |
| 99 | 99 |
| 100 buildUnnamed4024() { | 100 buildUnnamed3738() { |
| 101 var o = new core.List<api.UrlDispatchRule>(); | 101 var o = new core.List<api.UrlDispatchRule>(); |
| 102 o.add(buildUrlDispatchRule()); | 102 o.add(buildUrlDispatchRule()); |
| 103 o.add(buildUrlDispatchRule()); | 103 o.add(buildUrlDispatchRule()); |
| 104 return o; | 104 return o; |
| 105 } | 105 } |
| 106 | 106 |
| 107 checkUnnamed4024(core.List<api.UrlDispatchRule> o) { | 107 checkUnnamed3738(core.List<api.UrlDispatchRule> o) { |
| 108 unittest.expect(o, unittest.hasLength(2)); | 108 unittest.expect(o, unittest.hasLength(2)); |
| 109 checkUrlDispatchRule(o[0]); | 109 checkUrlDispatchRule(o[0]); |
| 110 checkUrlDispatchRule(o[1]); | 110 checkUrlDispatchRule(o[1]); |
| 111 } | 111 } |
| 112 | 112 |
| 113 core.int buildCounterApplication = 0; | 113 core.int buildCounterApplication = 0; |
| 114 buildApplication() { | 114 buildApplication() { |
| 115 var o = new api.Application(); | 115 var o = new api.Application(); |
| 116 buildCounterApplication++; | 116 buildCounterApplication++; |
| 117 if (buildCounterApplication < 3) { | 117 if (buildCounterApplication < 3) { |
| 118 o.authDomain = "foo"; | 118 o.authDomain = "foo"; |
| 119 o.codeBucket = "foo"; | 119 o.codeBucket = "foo"; |
| 120 o.defaultBucket = "foo"; | 120 o.defaultBucket = "foo"; |
| 121 o.defaultCookieExpiration = "foo"; | 121 o.defaultCookieExpiration = "foo"; |
| 122 o.defaultHostname = "foo"; | 122 o.defaultHostname = "foo"; |
| 123 o.dispatchRules = buildUnnamed4024(); | 123 o.dispatchRules = buildUnnamed3738(); |
| 124 o.id = "foo"; | 124 o.id = "foo"; |
| 125 o.location = "foo"; | 125 o.location = "foo"; |
| 126 o.name = "foo"; | 126 o.name = "foo"; |
| 127 } | 127 } |
| 128 buildCounterApplication--; | 128 buildCounterApplication--; |
| 129 return o; | 129 return o; |
| 130 } | 130 } |
| 131 | 131 |
| 132 checkApplication(api.Application o) { | 132 checkApplication(api.Application o) { |
| 133 buildCounterApplication++; | 133 buildCounterApplication++; |
| 134 if (buildCounterApplication < 3) { | 134 if (buildCounterApplication < 3) { |
| 135 unittest.expect(o.authDomain, unittest.equals('foo')); | 135 unittest.expect(o.authDomain, unittest.equals('foo')); |
| 136 unittest.expect(o.codeBucket, unittest.equals('foo')); | 136 unittest.expect(o.codeBucket, unittest.equals('foo')); |
| 137 unittest.expect(o.defaultBucket, unittest.equals('foo')); | 137 unittest.expect(o.defaultBucket, unittest.equals('foo')); |
| 138 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); | 138 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); |
| 139 unittest.expect(o.defaultHostname, unittest.equals('foo')); | 139 unittest.expect(o.defaultHostname, unittest.equals('foo')); |
| 140 checkUnnamed4024(o.dispatchRules); | 140 checkUnnamed3738(o.dispatchRules); |
| 141 unittest.expect(o.id, unittest.equals('foo')); | 141 unittest.expect(o.id, unittest.equals('foo')); |
| 142 unittest.expect(o.location, unittest.equals('foo')); | 142 unittest.expect(o.location, unittest.equals('foo')); |
| 143 unittest.expect(o.name, unittest.equals('foo')); | 143 unittest.expect(o.name, unittest.equals('foo')); |
| 144 } | 144 } |
| 145 buildCounterApplication--; | 145 buildCounterApplication--; |
| 146 } | 146 } |
| 147 | 147 |
| 148 core.int buildCounterAutomaticScaling = 0; | 148 core.int buildCounterAutomaticScaling = 0; |
| 149 buildAutomaticScaling() { | 149 buildAutomaticScaling() { |
| 150 var o = new api.AutomaticScaling(); | 150 var o = new api.AutomaticScaling(); |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 } | 259 } |
| 260 | 260 |
| 261 checkDebugInstanceRequest(api.DebugInstanceRequest o) { | 261 checkDebugInstanceRequest(api.DebugInstanceRequest o) { |
| 262 buildCounterDebugInstanceRequest++; | 262 buildCounterDebugInstanceRequest++; |
| 263 if (buildCounterDebugInstanceRequest < 3) { | 263 if (buildCounterDebugInstanceRequest < 3) { |
| 264 unittest.expect(o.sshKey, unittest.equals('foo')); | 264 unittest.expect(o.sshKey, unittest.equals('foo')); |
| 265 } | 265 } |
| 266 buildCounterDebugInstanceRequest--; | 266 buildCounterDebugInstanceRequest--; |
| 267 } | 267 } |
| 268 | 268 |
| 269 buildUnnamed4025() { | 269 buildUnnamed3739() { |
| 270 var o = new core.Map<core.String, api.FileInfo>(); | 270 var o = new core.Map<core.String, api.FileInfo>(); |
| 271 o["x"] = buildFileInfo(); | 271 o["x"] = buildFileInfo(); |
| 272 o["y"] = buildFileInfo(); | 272 o["y"] = buildFileInfo(); |
| 273 return o; | 273 return o; |
| 274 } | 274 } |
| 275 | 275 |
| 276 checkUnnamed4025(core.Map<core.String, api.FileInfo> o) { | 276 checkUnnamed3739(core.Map<core.String, api.FileInfo> o) { |
| 277 unittest.expect(o, unittest.hasLength(2)); | 277 unittest.expect(o, unittest.hasLength(2)); |
| 278 checkFileInfo(o["x"]); | 278 checkFileInfo(o["x"]); |
| 279 checkFileInfo(o["y"]); | 279 checkFileInfo(o["y"]); |
| 280 } | 280 } |
| 281 | 281 |
| 282 buildUnnamed4026() { | 282 buildUnnamed3740() { |
| 283 var o = new core.List<api.SourceReference>(); | 283 var o = new core.List<api.SourceReference>(); |
| 284 o.add(buildSourceReference()); | 284 o.add(buildSourceReference()); |
| 285 o.add(buildSourceReference()); | 285 o.add(buildSourceReference()); |
| 286 return o; | 286 return o; |
| 287 } | 287 } |
| 288 | 288 |
| 289 checkUnnamed4026(core.List<api.SourceReference> o) { | 289 checkUnnamed3740(core.List<api.SourceReference> o) { |
| 290 unittest.expect(o, unittest.hasLength(2)); | 290 unittest.expect(o, unittest.hasLength(2)); |
| 291 checkSourceReference(o[0]); | 291 checkSourceReference(o[0]); |
| 292 checkSourceReference(o[1]); | 292 checkSourceReference(o[1]); |
| 293 } | 293 } |
| 294 | 294 |
| 295 core.int buildCounterDeployment = 0; | 295 core.int buildCounterDeployment = 0; |
| 296 buildDeployment() { | 296 buildDeployment() { |
| 297 var o = new api.Deployment(); | 297 var o = new api.Deployment(); |
| 298 buildCounterDeployment++; | 298 buildCounterDeployment++; |
| 299 if (buildCounterDeployment < 3) { | 299 if (buildCounterDeployment < 3) { |
| 300 o.container = buildContainerInfo(); | 300 o.container = buildContainerInfo(); |
| 301 o.files = buildUnnamed4025(); | 301 o.files = buildUnnamed3739(); |
| 302 o.sourceReferences = buildUnnamed4026(); | 302 o.sourceReferences = buildUnnamed3740(); |
| 303 } | 303 } |
| 304 buildCounterDeployment--; | 304 buildCounterDeployment--; |
| 305 return o; | 305 return o; |
| 306 } | 306 } |
| 307 | 307 |
| 308 checkDeployment(api.Deployment o) { | 308 checkDeployment(api.Deployment o) { |
| 309 buildCounterDeployment++; | 309 buildCounterDeployment++; |
| 310 if (buildCounterDeployment < 3) { | 310 if (buildCounterDeployment < 3) { |
| 311 checkContainerInfo(o.container); | 311 checkContainerInfo(o.container); |
| 312 checkUnnamed4025(o.files); | 312 checkUnnamed3739(o.files); |
| 313 checkUnnamed4026(o.sourceReferences); | 313 checkUnnamed3740(o.sourceReferences); |
| 314 } | 314 } |
| 315 buildCounterDeployment--; | 315 buildCounterDeployment--; |
| 316 } | 316 } |
| 317 | 317 |
| 318 core.int buildCounterDiskUtilization = 0; | 318 core.int buildCounterDiskUtilization = 0; |
| 319 buildDiskUtilization() { | 319 buildDiskUtilization() { |
| 320 var o = new api.DiskUtilization(); | 320 var o = new api.DiskUtilization(); |
| 321 buildCounterDiskUtilization++; | 321 buildCounterDiskUtilization++; |
| 322 if (buildCounterDiskUtilization < 3) { | 322 if (buildCounterDiskUtilization < 3) { |
| 323 o.targetReadBytesPerSec = 42; | 323 o.targetReadBytesPerSec = 42; |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 | 480 |
| 481 checkLibrary(api.Library o) { | 481 checkLibrary(api.Library o) { |
| 482 buildCounterLibrary++; | 482 buildCounterLibrary++; |
| 483 if (buildCounterLibrary < 3) { | 483 if (buildCounterLibrary < 3) { |
| 484 unittest.expect(o.name, unittest.equals('foo')); | 484 unittest.expect(o.name, unittest.equals('foo')); |
| 485 unittest.expect(o.version, unittest.equals('foo')); | 485 unittest.expect(o.version, unittest.equals('foo')); |
| 486 } | 486 } |
| 487 buildCounterLibrary--; | 487 buildCounterLibrary--; |
| 488 } | 488 } |
| 489 | 489 |
| 490 buildUnnamed4027() { | 490 buildUnnamed3741() { |
| 491 var o = new core.List<api.Instance>(); | 491 var o = new core.List<api.Instance>(); |
| 492 o.add(buildInstance()); | 492 o.add(buildInstance()); |
| 493 o.add(buildInstance()); | 493 o.add(buildInstance()); |
| 494 return o; | 494 return o; |
| 495 } | 495 } |
| 496 | 496 |
| 497 checkUnnamed4027(core.List<api.Instance> o) { | 497 checkUnnamed3741(core.List<api.Instance> o) { |
| 498 unittest.expect(o, unittest.hasLength(2)); | 498 unittest.expect(o, unittest.hasLength(2)); |
| 499 checkInstance(o[0]); | 499 checkInstance(o[0]); |
| 500 checkInstance(o[1]); | 500 checkInstance(o[1]); |
| 501 } | 501 } |
| 502 | 502 |
| 503 core.int buildCounterListInstancesResponse = 0; | 503 core.int buildCounterListInstancesResponse = 0; |
| 504 buildListInstancesResponse() { | 504 buildListInstancesResponse() { |
| 505 var o = new api.ListInstancesResponse(); | 505 var o = new api.ListInstancesResponse(); |
| 506 buildCounterListInstancesResponse++; | 506 buildCounterListInstancesResponse++; |
| 507 if (buildCounterListInstancesResponse < 3) { | 507 if (buildCounterListInstancesResponse < 3) { |
| 508 o.instances = buildUnnamed4027(); | 508 o.instances = buildUnnamed3741(); |
| 509 o.nextPageToken = "foo"; | 509 o.nextPageToken = "foo"; |
| 510 } | 510 } |
| 511 buildCounterListInstancesResponse--; | 511 buildCounterListInstancesResponse--; |
| 512 return o; | 512 return o; |
| 513 } | 513 } |
| 514 | 514 |
| 515 checkListInstancesResponse(api.ListInstancesResponse o) { | 515 checkListInstancesResponse(api.ListInstancesResponse o) { |
| 516 buildCounterListInstancesResponse++; | 516 buildCounterListInstancesResponse++; |
| 517 if (buildCounterListInstancesResponse < 3) { | 517 if (buildCounterListInstancesResponse < 3) { |
| 518 checkUnnamed4027(o.instances); | 518 checkUnnamed3741(o.instances); |
| 519 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 519 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 520 } | 520 } |
| 521 buildCounterListInstancesResponse--; | 521 buildCounterListInstancesResponse--; |
| 522 } | 522 } |
| 523 | 523 |
| 524 buildUnnamed4028() { | 524 buildUnnamed3742() { |
| 525 var o = new core.List<api.Location>(); | 525 var o = new core.List<api.Location>(); |
| 526 o.add(buildLocation()); | 526 o.add(buildLocation()); |
| 527 o.add(buildLocation()); | 527 o.add(buildLocation()); |
| 528 return o; | 528 return o; |
| 529 } | 529 } |
| 530 | 530 |
| 531 checkUnnamed4028(core.List<api.Location> o) { | 531 checkUnnamed3742(core.List<api.Location> o) { |
| 532 unittest.expect(o, unittest.hasLength(2)); | 532 unittest.expect(o, unittest.hasLength(2)); |
| 533 checkLocation(o[0]); | 533 checkLocation(o[0]); |
| 534 checkLocation(o[1]); | 534 checkLocation(o[1]); |
| 535 } | 535 } |
| 536 | 536 |
| 537 core.int buildCounterListLocationsResponse = 0; | 537 core.int buildCounterListLocationsResponse = 0; |
| 538 buildListLocationsResponse() { | 538 buildListLocationsResponse() { |
| 539 var o = new api.ListLocationsResponse(); | 539 var o = new api.ListLocationsResponse(); |
| 540 buildCounterListLocationsResponse++; | 540 buildCounterListLocationsResponse++; |
| 541 if (buildCounterListLocationsResponse < 3) { | 541 if (buildCounterListLocationsResponse < 3) { |
| 542 o.locations = buildUnnamed4028(); | 542 o.locations = buildUnnamed3742(); |
| 543 o.nextPageToken = "foo"; | 543 o.nextPageToken = "foo"; |
| 544 } | 544 } |
| 545 buildCounterListLocationsResponse--; | 545 buildCounterListLocationsResponse--; |
| 546 return o; | 546 return o; |
| 547 } | 547 } |
| 548 | 548 |
| 549 checkListLocationsResponse(api.ListLocationsResponse o) { | 549 checkListLocationsResponse(api.ListLocationsResponse o) { |
| 550 buildCounterListLocationsResponse++; | 550 buildCounterListLocationsResponse++; |
| 551 if (buildCounterListLocationsResponse < 3) { | 551 if (buildCounterListLocationsResponse < 3) { |
| 552 checkUnnamed4028(o.locations); | 552 checkUnnamed3742(o.locations); |
| 553 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 553 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 554 } | 554 } |
| 555 buildCounterListLocationsResponse--; | 555 buildCounterListLocationsResponse--; |
| 556 } | 556 } |
| 557 | 557 |
| 558 buildUnnamed4029() { | 558 buildUnnamed3743() { |
| 559 var o = new core.List<api.Module>(); | 559 var o = new core.List<api.Module>(); |
| 560 o.add(buildModule()); | 560 o.add(buildModule()); |
| 561 o.add(buildModule()); | 561 o.add(buildModule()); |
| 562 return o; | 562 return o; |
| 563 } | 563 } |
| 564 | 564 |
| 565 checkUnnamed4029(core.List<api.Module> o) { | 565 checkUnnamed3743(core.List<api.Module> o) { |
| 566 unittest.expect(o, unittest.hasLength(2)); | 566 unittest.expect(o, unittest.hasLength(2)); |
| 567 checkModule(o[0]); | 567 checkModule(o[0]); |
| 568 checkModule(o[1]); | 568 checkModule(o[1]); |
| 569 } | 569 } |
| 570 | 570 |
| 571 core.int buildCounterListModulesResponse = 0; | 571 core.int buildCounterListModulesResponse = 0; |
| 572 buildListModulesResponse() { | 572 buildListModulesResponse() { |
| 573 var o = new api.ListModulesResponse(); | 573 var o = new api.ListModulesResponse(); |
| 574 buildCounterListModulesResponse++; | 574 buildCounterListModulesResponse++; |
| 575 if (buildCounterListModulesResponse < 3) { | 575 if (buildCounterListModulesResponse < 3) { |
| 576 o.modules = buildUnnamed4029(); | 576 o.modules = buildUnnamed3743(); |
| 577 o.nextPageToken = "foo"; | 577 o.nextPageToken = "foo"; |
| 578 } | 578 } |
| 579 buildCounterListModulesResponse--; | 579 buildCounterListModulesResponse--; |
| 580 return o; | 580 return o; |
| 581 } | 581 } |
| 582 | 582 |
| 583 checkListModulesResponse(api.ListModulesResponse o) { | 583 checkListModulesResponse(api.ListModulesResponse o) { |
| 584 buildCounterListModulesResponse++; | 584 buildCounterListModulesResponse++; |
| 585 if (buildCounterListModulesResponse < 3) { | 585 if (buildCounterListModulesResponse < 3) { |
| 586 checkUnnamed4029(o.modules); | 586 checkUnnamed3743(o.modules); |
| 587 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 587 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 588 } | 588 } |
| 589 buildCounterListModulesResponse--; | 589 buildCounterListModulesResponse--; |
| 590 } | 590 } |
| 591 | 591 |
| 592 buildUnnamed4030() { | 592 buildUnnamed3744() { |
| 593 var o = new core.List<api.Operation>(); | 593 var o = new core.List<api.Operation>(); |
| 594 o.add(buildOperation()); | 594 o.add(buildOperation()); |
| 595 o.add(buildOperation()); | 595 o.add(buildOperation()); |
| 596 return o; | 596 return o; |
| 597 } | 597 } |
| 598 | 598 |
| 599 checkUnnamed4030(core.List<api.Operation> o) { | 599 checkUnnamed3744(core.List<api.Operation> o) { |
| 600 unittest.expect(o, unittest.hasLength(2)); | 600 unittest.expect(o, unittest.hasLength(2)); |
| 601 checkOperation(o[0]); | 601 checkOperation(o[0]); |
| 602 checkOperation(o[1]); | 602 checkOperation(o[1]); |
| 603 } | 603 } |
| 604 | 604 |
| 605 core.int buildCounterListOperationsResponse = 0; | 605 core.int buildCounterListOperationsResponse = 0; |
| 606 buildListOperationsResponse() { | 606 buildListOperationsResponse() { |
| 607 var o = new api.ListOperationsResponse(); | 607 var o = new api.ListOperationsResponse(); |
| 608 buildCounterListOperationsResponse++; | 608 buildCounterListOperationsResponse++; |
| 609 if (buildCounterListOperationsResponse < 3) { | 609 if (buildCounterListOperationsResponse < 3) { |
| 610 o.nextPageToken = "foo"; | 610 o.nextPageToken = "foo"; |
| 611 o.operations = buildUnnamed4030(); | 611 o.operations = buildUnnamed3744(); |
| 612 } | 612 } |
| 613 buildCounterListOperationsResponse--; | 613 buildCounterListOperationsResponse--; |
| 614 return o; | 614 return o; |
| 615 } | 615 } |
| 616 | 616 |
| 617 checkListOperationsResponse(api.ListOperationsResponse o) { | 617 checkListOperationsResponse(api.ListOperationsResponse o) { |
| 618 buildCounterListOperationsResponse++; | 618 buildCounterListOperationsResponse++; |
| 619 if (buildCounterListOperationsResponse < 3) { | 619 if (buildCounterListOperationsResponse < 3) { |
| 620 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 620 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 621 checkUnnamed4030(o.operations); | 621 checkUnnamed3744(o.operations); |
| 622 } | 622 } |
| 623 buildCounterListOperationsResponse--; | 623 buildCounterListOperationsResponse--; |
| 624 } | 624 } |
| 625 | 625 |
| 626 buildUnnamed4031() { | 626 buildUnnamed3745() { |
| 627 var o = new core.List<api.Version>(); | 627 var o = new core.List<api.Version>(); |
| 628 o.add(buildVersion()); | 628 o.add(buildVersion()); |
| 629 o.add(buildVersion()); | 629 o.add(buildVersion()); |
| 630 return o; | 630 return o; |
| 631 } | 631 } |
| 632 | 632 |
| 633 checkUnnamed4031(core.List<api.Version> o) { | 633 checkUnnamed3745(core.List<api.Version> o) { |
| 634 unittest.expect(o, unittest.hasLength(2)); | 634 unittest.expect(o, unittest.hasLength(2)); |
| 635 checkVersion(o[0]); | 635 checkVersion(o[0]); |
| 636 checkVersion(o[1]); | 636 checkVersion(o[1]); |
| 637 } | 637 } |
| 638 | 638 |
| 639 core.int buildCounterListVersionsResponse = 0; | 639 core.int buildCounterListVersionsResponse = 0; |
| 640 buildListVersionsResponse() { | 640 buildListVersionsResponse() { |
| 641 var o = new api.ListVersionsResponse(); | 641 var o = new api.ListVersionsResponse(); |
| 642 buildCounterListVersionsResponse++; | 642 buildCounterListVersionsResponse++; |
| 643 if (buildCounterListVersionsResponse < 3) { | 643 if (buildCounterListVersionsResponse < 3) { |
| 644 o.nextPageToken = "foo"; | 644 o.nextPageToken = "foo"; |
| 645 o.versions = buildUnnamed4031(); | 645 o.versions = buildUnnamed3745(); |
| 646 } | 646 } |
| 647 buildCounterListVersionsResponse--; | 647 buildCounterListVersionsResponse--; |
| 648 return o; | 648 return o; |
| 649 } | 649 } |
| 650 | 650 |
| 651 checkListVersionsResponse(api.ListVersionsResponse o) { | 651 checkListVersionsResponse(api.ListVersionsResponse o) { |
| 652 buildCounterListVersionsResponse++; | 652 buildCounterListVersionsResponse++; |
| 653 if (buildCounterListVersionsResponse < 3) { | 653 if (buildCounterListVersionsResponse < 3) { |
| 654 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 654 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 655 checkUnnamed4031(o.versions); | 655 checkUnnamed3745(o.versions); |
| 656 } | 656 } |
| 657 buildCounterListVersionsResponse--; | 657 buildCounterListVersionsResponse--; |
| 658 } | 658 } |
| 659 | 659 |
| 660 buildUnnamed4032() { | 660 buildUnnamed3746() { |
| 661 var o = new core.Map<core.String, core.String>(); | 661 var o = new core.Map<core.String, core.String>(); |
| 662 o["x"] = "foo"; | 662 o["x"] = "foo"; |
| 663 o["y"] = "foo"; | 663 o["y"] = "foo"; |
| 664 return o; | 664 return o; |
| 665 } | 665 } |
| 666 | 666 |
| 667 checkUnnamed4032(core.Map<core.String, core.String> o) { | 667 checkUnnamed3746(core.Map<core.String, core.String> o) { |
| 668 unittest.expect(o, unittest.hasLength(2)); | 668 unittest.expect(o, unittest.hasLength(2)); |
| 669 unittest.expect(o["x"], unittest.equals('foo')); | 669 unittest.expect(o["x"], unittest.equals('foo')); |
| 670 unittest.expect(o["y"], unittest.equals('foo')); | 670 unittest.expect(o["y"], unittest.equals('foo')); |
| 671 } | 671 } |
| 672 | 672 |
| 673 buildUnnamed4033() { | 673 buildUnnamed3747() { |
| 674 var o = new core.Map<core.String, core.Object>(); | 674 var o = new core.Map<core.String, core.Object>(); |
| 675 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 675 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 676 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 676 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 677 return o; | 677 return o; |
| 678 } | 678 } |
| 679 | 679 |
| 680 checkUnnamed4033(core.Map<core.String, core.Object> o) { | 680 checkUnnamed3747(core.Map<core.String, core.Object> o) { |
| 681 unittest.expect(o, unittest.hasLength(2)); | 681 unittest.expect(o, unittest.hasLength(2)); |
| 682 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); | 682 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); |
| 683 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); | 683 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); |
| 684 } | 684 } |
| 685 | 685 |
| 686 core.int buildCounterLocation = 0; | 686 core.int buildCounterLocation = 0; |
| 687 buildLocation() { | 687 buildLocation() { |
| 688 var o = new api.Location(); | 688 var o = new api.Location(); |
| 689 buildCounterLocation++; | 689 buildCounterLocation++; |
| 690 if (buildCounterLocation < 3) { | 690 if (buildCounterLocation < 3) { |
| 691 o.labels = buildUnnamed4032(); | 691 o.labels = buildUnnamed3746(); |
| 692 o.locationId = "foo"; | 692 o.locationId = "foo"; |
| 693 o.metadata = buildUnnamed4033(); | 693 o.metadata = buildUnnamed3747(); |
| 694 o.name = "foo"; | 694 o.name = "foo"; |
| 695 } | 695 } |
| 696 buildCounterLocation--; | 696 buildCounterLocation--; |
| 697 return o; | 697 return o; |
| 698 } | 698 } |
| 699 | 699 |
| 700 checkLocation(api.Location o) { | 700 checkLocation(api.Location o) { |
| 701 buildCounterLocation++; | 701 buildCounterLocation++; |
| 702 if (buildCounterLocation < 3) { | 702 if (buildCounterLocation < 3) { |
| 703 checkUnnamed4032(o.labels); | 703 checkUnnamed3746(o.labels); |
| 704 unittest.expect(o.locationId, unittest.equals('foo')); | 704 unittest.expect(o.locationId, unittest.equals('foo')); |
| 705 checkUnnamed4033(o.metadata); | 705 checkUnnamed3747(o.metadata); |
| 706 unittest.expect(o.name, unittest.equals('foo')); | 706 unittest.expect(o.name, unittest.equals('foo')); |
| 707 } | 707 } |
| 708 buildCounterLocation--; | 708 buildCounterLocation--; |
| 709 } | 709 } |
| 710 | 710 |
| 711 core.int buildCounterLocationMetadata = 0; | 711 core.int buildCounterLocationMetadata = 0; |
| 712 buildLocationMetadata() { | 712 buildLocationMetadata() { |
| 713 var o = new api.LocationMetadata(); | 713 var o = new api.LocationMetadata(); |
| 714 buildCounterLocationMetadata++; | 714 buildCounterLocationMetadata++; |
| 715 if (buildCounterLocationMetadata < 3) { | 715 if (buildCounterLocationMetadata < 3) { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 checkModule(api.Module o) { | 764 checkModule(api.Module o) { |
| 765 buildCounterModule++; | 765 buildCounterModule++; |
| 766 if (buildCounterModule < 3) { | 766 if (buildCounterModule < 3) { |
| 767 unittest.expect(o.id, unittest.equals('foo')); | 767 unittest.expect(o.id, unittest.equals('foo')); |
| 768 unittest.expect(o.name, unittest.equals('foo')); | 768 unittest.expect(o.name, unittest.equals('foo')); |
| 769 checkTrafficSplit(o.split); | 769 checkTrafficSplit(o.split); |
| 770 } | 770 } |
| 771 buildCounterModule--; | 771 buildCounterModule--; |
| 772 } | 772 } |
| 773 | 773 |
| 774 buildUnnamed4034() { | 774 buildUnnamed3748() { |
| 775 var o = new core.List<core.String>(); | 775 var o = new core.List<core.String>(); |
| 776 o.add("foo"); | 776 o.add("foo"); |
| 777 o.add("foo"); | 777 o.add("foo"); |
| 778 return o; | 778 return o; |
| 779 } | 779 } |
| 780 | 780 |
| 781 checkUnnamed4034(core.List<core.String> o) { | 781 checkUnnamed3748(core.List<core.String> o) { |
| 782 unittest.expect(o, unittest.hasLength(2)); | 782 unittest.expect(o, unittest.hasLength(2)); |
| 783 unittest.expect(o[0], unittest.equals('foo')); | 783 unittest.expect(o[0], unittest.equals('foo')); |
| 784 unittest.expect(o[1], unittest.equals('foo')); | 784 unittest.expect(o[1], unittest.equals('foo')); |
| 785 } | 785 } |
| 786 | 786 |
| 787 core.int buildCounterNetwork = 0; | 787 core.int buildCounterNetwork = 0; |
| 788 buildNetwork() { | 788 buildNetwork() { |
| 789 var o = new api.Network(); | 789 var o = new api.Network(); |
| 790 buildCounterNetwork++; | 790 buildCounterNetwork++; |
| 791 if (buildCounterNetwork < 3) { | 791 if (buildCounterNetwork < 3) { |
| 792 o.forwardedPorts = buildUnnamed4034(); | 792 o.forwardedPorts = buildUnnamed3748(); |
| 793 o.instanceTag = "foo"; | 793 o.instanceTag = "foo"; |
| 794 o.name = "foo"; | 794 o.name = "foo"; |
| 795 } | 795 } |
| 796 buildCounterNetwork--; | 796 buildCounterNetwork--; |
| 797 return o; | 797 return o; |
| 798 } | 798 } |
| 799 | 799 |
| 800 checkNetwork(api.Network o) { | 800 checkNetwork(api.Network o) { |
| 801 buildCounterNetwork++; | 801 buildCounterNetwork++; |
| 802 if (buildCounterNetwork < 3) { | 802 if (buildCounterNetwork < 3) { |
| 803 checkUnnamed4034(o.forwardedPorts); | 803 checkUnnamed3748(o.forwardedPorts); |
| 804 unittest.expect(o.instanceTag, unittest.equals('foo')); | 804 unittest.expect(o.instanceTag, unittest.equals('foo')); |
| 805 unittest.expect(o.name, unittest.equals('foo')); | 805 unittest.expect(o.name, unittest.equals('foo')); |
| 806 } | 806 } |
| 807 buildCounterNetwork--; | 807 buildCounterNetwork--; |
| 808 } | 808 } |
| 809 | 809 |
| 810 core.int buildCounterNetworkUtilization = 0; | 810 core.int buildCounterNetworkUtilization = 0; |
| 811 buildNetworkUtilization() { | 811 buildNetworkUtilization() { |
| 812 var o = new api.NetworkUtilization(); | 812 var o = new api.NetworkUtilization(); |
| 813 buildCounterNetworkUtilization++; | 813 buildCounterNetworkUtilization++; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 825 buildCounterNetworkUtilization++; | 825 buildCounterNetworkUtilization++; |
| 826 if (buildCounterNetworkUtilization < 3) { | 826 if (buildCounterNetworkUtilization < 3) { |
| 827 unittest.expect(o.targetReceivedBytesPerSec, unittest.equals(42)); | 827 unittest.expect(o.targetReceivedBytesPerSec, unittest.equals(42)); |
| 828 unittest.expect(o.targetReceivedPacketsPerSec, unittest.equals(42)); | 828 unittest.expect(o.targetReceivedPacketsPerSec, unittest.equals(42)); |
| 829 unittest.expect(o.targetSentBytesPerSec, unittest.equals(42)); | 829 unittest.expect(o.targetSentBytesPerSec, unittest.equals(42)); |
| 830 unittest.expect(o.targetSentPacketsPerSec, unittest.equals(42)); | 830 unittest.expect(o.targetSentPacketsPerSec, unittest.equals(42)); |
| 831 } | 831 } |
| 832 buildCounterNetworkUtilization--; | 832 buildCounterNetworkUtilization--; |
| 833 } | 833 } |
| 834 | 834 |
| 835 buildUnnamed4035() { | 835 buildUnnamed3749() { |
| 836 var o = new core.Map<core.String, core.Object>(); | 836 var o = new core.Map<core.String, core.Object>(); |
| 837 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 837 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 838 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 838 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 839 return o; | 839 return o; |
| 840 } | 840 } |
| 841 | 841 |
| 842 checkUnnamed4035(core.Map<core.String, core.Object> o) { | 842 checkUnnamed3749(core.Map<core.String, core.Object> o) { |
| 843 unittest.expect(o, unittest.hasLength(2)); | 843 unittest.expect(o, unittest.hasLength(2)); |
| 844 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); | 844 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); |
| 845 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); | 845 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); |
| 846 } | 846 } |
| 847 | 847 |
| 848 buildUnnamed4036() { | 848 buildUnnamed3750() { |
| 849 var o = new core.Map<core.String, core.Object>(); | 849 var o = new core.Map<core.String, core.Object>(); |
| 850 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 850 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 851 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 851 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 852 return o; | 852 return o; |
| 853 } | 853 } |
| 854 | 854 |
| 855 checkUnnamed4036(core.Map<core.String, core.Object> o) { | 855 checkUnnamed3750(core.Map<core.String, core.Object> o) { |
| 856 unittest.expect(o, unittest.hasLength(2)); | 856 unittest.expect(o, unittest.hasLength(2)); |
| 857 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); | 857 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); |
| 858 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); | 858 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); |
| 859 } | 859 } |
| 860 | 860 |
| 861 core.int buildCounterOperation = 0; | 861 core.int buildCounterOperation = 0; |
| 862 buildOperation() { | 862 buildOperation() { |
| 863 var o = new api.Operation(); | 863 var o = new api.Operation(); |
| 864 buildCounterOperation++; | 864 buildCounterOperation++; |
| 865 if (buildCounterOperation < 3) { | 865 if (buildCounterOperation < 3) { |
| 866 o.done = true; | 866 o.done = true; |
| 867 o.error = buildStatus(); | 867 o.error = buildStatus(); |
| 868 o.metadata = buildUnnamed4035(); | 868 o.metadata = buildUnnamed3749(); |
| 869 o.name = "foo"; | 869 o.name = "foo"; |
| 870 o.response = buildUnnamed4036(); | 870 o.response = buildUnnamed3750(); |
| 871 } | 871 } |
| 872 buildCounterOperation--; | 872 buildCounterOperation--; |
| 873 return o; | 873 return o; |
| 874 } | 874 } |
| 875 | 875 |
| 876 checkOperation(api.Operation o) { | 876 checkOperation(api.Operation o) { |
| 877 buildCounterOperation++; | 877 buildCounterOperation++; |
| 878 if (buildCounterOperation < 3) { | 878 if (buildCounterOperation < 3) { |
| 879 unittest.expect(o.done, unittest.isTrue); | 879 unittest.expect(o.done, unittest.isTrue); |
| 880 checkStatus(o.error); | 880 checkStatus(o.error); |
| 881 checkUnnamed4035(o.metadata); | 881 checkUnnamed3749(o.metadata); |
| 882 unittest.expect(o.name, unittest.equals('foo')); | 882 unittest.expect(o.name, unittest.equals('foo')); |
| 883 checkUnnamed4036(o.response); | 883 checkUnnamed3750(o.response); |
| 884 } | 884 } |
| 885 buildCounterOperation--; | 885 buildCounterOperation--; |
| 886 } | 886 } |
| 887 | 887 |
| 888 core.int buildCounterOperationMetadata = 0; | 888 core.int buildCounterOperationMetadata = 0; |
| 889 buildOperationMetadata() { | 889 buildOperationMetadata() { |
| 890 var o = new api.OperationMetadata(); | 890 var o = new api.OperationMetadata(); |
| 891 buildCounterOperationMetadata++; | 891 buildCounterOperationMetadata++; |
| 892 if (buildCounterOperationMetadata < 3) { | 892 if (buildCounterOperationMetadata < 3) { |
| 893 o.endTime = "foo"; | 893 o.endTime = "foo"; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 934 if (buildCounterOperationMetadataExperimental < 3) { | 934 if (buildCounterOperationMetadataExperimental < 3) { |
| 935 unittest.expect(o.endTime, unittest.equals('foo')); | 935 unittest.expect(o.endTime, unittest.equals('foo')); |
| 936 unittest.expect(o.insertTime, unittest.equals('foo')); | 936 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 937 unittest.expect(o.method, unittest.equals('foo')); | 937 unittest.expect(o.method, unittest.equals('foo')); |
| 938 unittest.expect(o.target, unittest.equals('foo')); | 938 unittest.expect(o.target, unittest.equals('foo')); |
| 939 unittest.expect(o.user, unittest.equals('foo')); | 939 unittest.expect(o.user, unittest.equals('foo')); |
| 940 } | 940 } |
| 941 buildCounterOperationMetadataExperimental--; | 941 buildCounterOperationMetadataExperimental--; |
| 942 } | 942 } |
| 943 | 943 |
| 944 buildUnnamed3751() { |
| 945 var o = new core.List<core.String>(); |
| 946 o.add("foo"); |
| 947 o.add("foo"); |
| 948 return o; |
| 949 } |
| 950 |
| 951 checkUnnamed3751(core.List<core.String> o) { |
| 952 unittest.expect(o, unittest.hasLength(2)); |
| 953 unittest.expect(o[0], unittest.equals('foo')); |
| 954 unittest.expect(o[1], unittest.equals('foo')); |
| 955 } |
| 956 |
| 944 core.int buildCounterOperationMetadataV1 = 0; | 957 core.int buildCounterOperationMetadataV1 = 0; |
| 945 buildOperationMetadataV1() { | 958 buildOperationMetadataV1() { |
| 946 var o = new api.OperationMetadataV1(); | 959 var o = new api.OperationMetadataV1(); |
| 947 buildCounterOperationMetadataV1++; | 960 buildCounterOperationMetadataV1++; |
| 948 if (buildCounterOperationMetadataV1 < 3) { | 961 if (buildCounterOperationMetadataV1 < 3) { |
| 949 o.endTime = "foo"; | 962 o.endTime = "foo"; |
| 963 o.ephemeralMessage = "foo"; |
| 950 o.insertTime = "foo"; | 964 o.insertTime = "foo"; |
| 951 o.method = "foo"; | 965 o.method = "foo"; |
| 952 o.target = "foo"; | 966 o.target = "foo"; |
| 953 o.user = "foo"; | 967 o.user = "foo"; |
| 968 o.warning = buildUnnamed3751(); |
| 954 } | 969 } |
| 955 buildCounterOperationMetadataV1--; | 970 buildCounterOperationMetadataV1--; |
| 956 return o; | 971 return o; |
| 957 } | 972 } |
| 958 | 973 |
| 959 checkOperationMetadataV1(api.OperationMetadataV1 o) { | 974 checkOperationMetadataV1(api.OperationMetadataV1 o) { |
| 960 buildCounterOperationMetadataV1++; | 975 buildCounterOperationMetadataV1++; |
| 961 if (buildCounterOperationMetadataV1 < 3) { | 976 if (buildCounterOperationMetadataV1 < 3) { |
| 962 unittest.expect(o.endTime, unittest.equals('foo')); | 977 unittest.expect(o.endTime, unittest.equals('foo')); |
| 978 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); |
| 963 unittest.expect(o.insertTime, unittest.equals('foo')); | 979 unittest.expect(o.insertTime, unittest.equals('foo')); |
| 964 unittest.expect(o.method, unittest.equals('foo')); | 980 unittest.expect(o.method, unittest.equals('foo')); |
| 965 unittest.expect(o.target, unittest.equals('foo')); | 981 unittest.expect(o.target, unittest.equals('foo')); |
| 966 unittest.expect(o.user, unittest.equals('foo')); | 982 unittest.expect(o.user, unittest.equals('foo')); |
| 983 checkUnnamed3751(o.warning); |
| 967 } | 984 } |
| 968 buildCounterOperationMetadataV1--; | 985 buildCounterOperationMetadataV1--; |
| 969 } | 986 } |
| 970 | 987 |
| 971 core.int buildCounterOperationMetadataV1Beta5 = 0; | 988 core.int buildCounterOperationMetadataV1Beta5 = 0; |
| 972 buildOperationMetadataV1Beta5() { | 989 buildOperationMetadataV1Beta5() { |
| 973 var o = new api.OperationMetadataV1Beta5(); | 990 var o = new api.OperationMetadataV1Beta5(); |
| 974 buildCounterOperationMetadataV1Beta5++; | 991 buildCounterOperationMetadataV1Beta5++; |
| 975 if (buildCounterOperationMetadataV1Beta5 < 3) { | 992 if (buildCounterOperationMetadataV1Beta5 < 3) { |
| 976 o.endTime = "foo"; | 993 o.endTime = "foo"; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1009 | 1026 |
| 1010 checkRequestUtilization(api.RequestUtilization o) { | 1027 checkRequestUtilization(api.RequestUtilization o) { |
| 1011 buildCounterRequestUtilization++; | 1028 buildCounterRequestUtilization++; |
| 1012 if (buildCounterRequestUtilization < 3) { | 1029 if (buildCounterRequestUtilization < 3) { |
| 1013 unittest.expect(o.targetConcurrentRequests, unittest.equals(42)); | 1030 unittest.expect(o.targetConcurrentRequests, unittest.equals(42)); |
| 1014 unittest.expect(o.targetRequestCountPerSec, unittest.equals(42)); | 1031 unittest.expect(o.targetRequestCountPerSec, unittest.equals(42)); |
| 1015 } | 1032 } |
| 1016 buildCounterRequestUtilization--; | 1033 buildCounterRequestUtilization--; |
| 1017 } | 1034 } |
| 1018 | 1035 |
| 1036 buildUnnamed3752() { |
| 1037 var o = new core.List<api.Volume>(); |
| 1038 o.add(buildVolume()); |
| 1039 o.add(buildVolume()); |
| 1040 return o; |
| 1041 } |
| 1042 |
| 1043 checkUnnamed3752(core.List<api.Volume> o) { |
| 1044 unittest.expect(o, unittest.hasLength(2)); |
| 1045 checkVolume(o[0]); |
| 1046 checkVolume(o[1]); |
| 1047 } |
| 1048 |
| 1019 core.int buildCounterResources = 0; | 1049 core.int buildCounterResources = 0; |
| 1020 buildResources() { | 1050 buildResources() { |
| 1021 var o = new api.Resources(); | 1051 var o = new api.Resources(); |
| 1022 buildCounterResources++; | 1052 buildCounterResources++; |
| 1023 if (buildCounterResources < 3) { | 1053 if (buildCounterResources < 3) { |
| 1024 o.cpu = 42.0; | 1054 o.cpu = 42.0; |
| 1025 o.diskGb = 42.0; | 1055 o.diskGb = 42.0; |
| 1026 o.memoryGb = 42.0; | 1056 o.memoryGb = 42.0; |
| 1057 o.volumes = buildUnnamed3752(); |
| 1027 } | 1058 } |
| 1028 buildCounterResources--; | 1059 buildCounterResources--; |
| 1029 return o; | 1060 return o; |
| 1030 } | 1061 } |
| 1031 | 1062 |
| 1032 checkResources(api.Resources o) { | 1063 checkResources(api.Resources o) { |
| 1033 buildCounterResources++; | 1064 buildCounterResources++; |
| 1034 if (buildCounterResources < 3) { | 1065 if (buildCounterResources < 3) { |
| 1035 unittest.expect(o.cpu, unittest.equals(42.0)); | 1066 unittest.expect(o.cpu, unittest.equals(42.0)); |
| 1036 unittest.expect(o.diskGb, unittest.equals(42.0)); | 1067 unittest.expect(o.diskGb, unittest.equals(42.0)); |
| 1037 unittest.expect(o.memoryGb, unittest.equals(42.0)); | 1068 unittest.expect(o.memoryGb, unittest.equals(42.0)); |
| 1069 checkUnnamed3752(o.volumes); |
| 1038 } | 1070 } |
| 1039 buildCounterResources--; | 1071 buildCounterResources--; |
| 1040 } | 1072 } |
| 1041 | 1073 |
| 1042 core.int buildCounterScriptHandler = 0; | 1074 core.int buildCounterScriptHandler = 0; |
| 1043 buildScriptHandler() { | 1075 buildScriptHandler() { |
| 1044 var o = new api.ScriptHandler(); | 1076 var o = new api.ScriptHandler(); |
| 1045 buildCounterScriptHandler++; | 1077 buildCounterScriptHandler++; |
| 1046 if (buildCounterScriptHandler < 3) { | 1078 if (buildCounterScriptHandler < 3) { |
| 1047 o.scriptPath = "foo"; | 1079 o.scriptPath = "foo"; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 1072 | 1104 |
| 1073 checkSourceReference(api.SourceReference o) { | 1105 checkSourceReference(api.SourceReference o) { |
| 1074 buildCounterSourceReference++; | 1106 buildCounterSourceReference++; |
| 1075 if (buildCounterSourceReference < 3) { | 1107 if (buildCounterSourceReference < 3) { |
| 1076 unittest.expect(o.repository, unittest.equals('foo')); | 1108 unittest.expect(o.repository, unittest.equals('foo')); |
| 1077 unittest.expect(o.revisionId, unittest.equals('foo')); | 1109 unittest.expect(o.revisionId, unittest.equals('foo')); |
| 1078 } | 1110 } |
| 1079 buildCounterSourceReference--; | 1111 buildCounterSourceReference--; |
| 1080 } | 1112 } |
| 1081 | 1113 |
| 1082 buildUnnamed4037() { | 1114 buildUnnamed3753() { |
| 1083 var o = new core.Map<core.String, core.String>(); | 1115 var o = new core.Map<core.String, core.String>(); |
| 1084 o["x"] = "foo"; | 1116 o["x"] = "foo"; |
| 1085 o["y"] = "foo"; | 1117 o["y"] = "foo"; |
| 1086 return o; | 1118 return o; |
| 1087 } | 1119 } |
| 1088 | 1120 |
| 1089 checkUnnamed4037(core.Map<core.String, core.String> o) { | 1121 checkUnnamed3753(core.Map<core.String, core.String> o) { |
| 1090 unittest.expect(o, unittest.hasLength(2)); | 1122 unittest.expect(o, unittest.hasLength(2)); |
| 1091 unittest.expect(o["x"], unittest.equals('foo')); | 1123 unittest.expect(o["x"], unittest.equals('foo')); |
| 1092 unittest.expect(o["y"], unittest.equals('foo')); | 1124 unittest.expect(o["y"], unittest.equals('foo')); |
| 1093 } | 1125 } |
| 1094 | 1126 |
| 1095 core.int buildCounterStaticDirectoryHandler = 0; | 1127 core.int buildCounterStaticDirectoryHandler = 0; |
| 1096 buildStaticDirectoryHandler() { | 1128 buildStaticDirectoryHandler() { |
| 1097 var o = new api.StaticDirectoryHandler(); | 1129 var o = new api.StaticDirectoryHandler(); |
| 1098 buildCounterStaticDirectoryHandler++; | 1130 buildCounterStaticDirectoryHandler++; |
| 1099 if (buildCounterStaticDirectoryHandler < 3) { | 1131 if (buildCounterStaticDirectoryHandler < 3) { |
| 1100 o.applicationReadable = true; | 1132 o.applicationReadable = true; |
| 1101 o.directory = "foo"; | 1133 o.directory = "foo"; |
| 1102 o.expiration = "foo"; | 1134 o.expiration = "foo"; |
| 1103 o.httpHeaders = buildUnnamed4037(); | 1135 o.httpHeaders = buildUnnamed3753(); |
| 1104 o.mimeType = "foo"; | 1136 o.mimeType = "foo"; |
| 1105 o.requireMatchingFile = true; | 1137 o.requireMatchingFile = true; |
| 1106 } | 1138 } |
| 1107 buildCounterStaticDirectoryHandler--; | 1139 buildCounterStaticDirectoryHandler--; |
| 1108 return o; | 1140 return o; |
| 1109 } | 1141 } |
| 1110 | 1142 |
| 1111 checkStaticDirectoryHandler(api.StaticDirectoryHandler o) { | 1143 checkStaticDirectoryHandler(api.StaticDirectoryHandler o) { |
| 1112 buildCounterStaticDirectoryHandler++; | 1144 buildCounterStaticDirectoryHandler++; |
| 1113 if (buildCounterStaticDirectoryHandler < 3) { | 1145 if (buildCounterStaticDirectoryHandler < 3) { |
| 1114 unittest.expect(o.applicationReadable, unittest.isTrue); | 1146 unittest.expect(o.applicationReadable, unittest.isTrue); |
| 1115 unittest.expect(o.directory, unittest.equals('foo')); | 1147 unittest.expect(o.directory, unittest.equals('foo')); |
| 1116 unittest.expect(o.expiration, unittest.equals('foo')); | 1148 unittest.expect(o.expiration, unittest.equals('foo')); |
| 1117 checkUnnamed4037(o.httpHeaders); | 1149 checkUnnamed3753(o.httpHeaders); |
| 1118 unittest.expect(o.mimeType, unittest.equals('foo')); | 1150 unittest.expect(o.mimeType, unittest.equals('foo')); |
| 1119 unittest.expect(o.requireMatchingFile, unittest.isTrue); | 1151 unittest.expect(o.requireMatchingFile, unittest.isTrue); |
| 1120 } | 1152 } |
| 1121 buildCounterStaticDirectoryHandler--; | 1153 buildCounterStaticDirectoryHandler--; |
| 1122 } | 1154 } |
| 1123 | 1155 |
| 1124 buildUnnamed4038() { | 1156 buildUnnamed3754() { |
| 1125 var o = new core.Map<core.String, core.String>(); | 1157 var o = new core.Map<core.String, core.String>(); |
| 1126 o["x"] = "foo"; | 1158 o["x"] = "foo"; |
| 1127 o["y"] = "foo"; | 1159 o["y"] = "foo"; |
| 1128 return o; | 1160 return o; |
| 1129 } | 1161 } |
| 1130 | 1162 |
| 1131 checkUnnamed4038(core.Map<core.String, core.String> o) { | 1163 checkUnnamed3754(core.Map<core.String, core.String> o) { |
| 1132 unittest.expect(o, unittest.hasLength(2)); | 1164 unittest.expect(o, unittest.hasLength(2)); |
| 1133 unittest.expect(o["x"], unittest.equals('foo')); | 1165 unittest.expect(o["x"], unittest.equals('foo')); |
| 1134 unittest.expect(o["y"], unittest.equals('foo')); | 1166 unittest.expect(o["y"], unittest.equals('foo')); |
| 1135 } | 1167 } |
| 1136 | 1168 |
| 1137 core.int buildCounterStaticFilesHandler = 0; | 1169 core.int buildCounterStaticFilesHandler = 0; |
| 1138 buildStaticFilesHandler() { | 1170 buildStaticFilesHandler() { |
| 1139 var o = new api.StaticFilesHandler(); | 1171 var o = new api.StaticFilesHandler(); |
| 1140 buildCounterStaticFilesHandler++; | 1172 buildCounterStaticFilesHandler++; |
| 1141 if (buildCounterStaticFilesHandler < 3) { | 1173 if (buildCounterStaticFilesHandler < 3) { |
| 1142 o.applicationReadable = true; | 1174 o.applicationReadable = true; |
| 1143 o.expiration = "foo"; | 1175 o.expiration = "foo"; |
| 1144 o.httpHeaders = buildUnnamed4038(); | 1176 o.httpHeaders = buildUnnamed3754(); |
| 1145 o.mimeType = "foo"; | 1177 o.mimeType = "foo"; |
| 1146 o.path = "foo"; | 1178 o.path = "foo"; |
| 1147 o.requireMatchingFile = true; | 1179 o.requireMatchingFile = true; |
| 1148 o.uploadPathRegex = "foo"; | 1180 o.uploadPathRegex = "foo"; |
| 1149 } | 1181 } |
| 1150 buildCounterStaticFilesHandler--; | 1182 buildCounterStaticFilesHandler--; |
| 1151 return o; | 1183 return o; |
| 1152 } | 1184 } |
| 1153 | 1185 |
| 1154 checkStaticFilesHandler(api.StaticFilesHandler o) { | 1186 checkStaticFilesHandler(api.StaticFilesHandler o) { |
| 1155 buildCounterStaticFilesHandler++; | 1187 buildCounterStaticFilesHandler++; |
| 1156 if (buildCounterStaticFilesHandler < 3) { | 1188 if (buildCounterStaticFilesHandler < 3) { |
| 1157 unittest.expect(o.applicationReadable, unittest.isTrue); | 1189 unittest.expect(o.applicationReadable, unittest.isTrue); |
| 1158 unittest.expect(o.expiration, unittest.equals('foo')); | 1190 unittest.expect(o.expiration, unittest.equals('foo')); |
| 1159 checkUnnamed4038(o.httpHeaders); | 1191 checkUnnamed3754(o.httpHeaders); |
| 1160 unittest.expect(o.mimeType, unittest.equals('foo')); | 1192 unittest.expect(o.mimeType, unittest.equals('foo')); |
| 1161 unittest.expect(o.path, unittest.equals('foo')); | 1193 unittest.expect(o.path, unittest.equals('foo')); |
| 1162 unittest.expect(o.requireMatchingFile, unittest.isTrue); | 1194 unittest.expect(o.requireMatchingFile, unittest.isTrue); |
| 1163 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); | 1195 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); |
| 1164 } | 1196 } |
| 1165 buildCounterStaticFilesHandler--; | 1197 buildCounterStaticFilesHandler--; |
| 1166 } | 1198 } |
| 1167 | 1199 |
| 1168 buildUnnamed4039() { | 1200 buildUnnamed3755() { |
| 1169 var o = new core.Map<core.String, core.Object>(); | 1201 var o = new core.Map<core.String, core.Object>(); |
| 1170 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1202 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1171 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1203 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1172 return o; | 1204 return o; |
| 1173 } | 1205 } |
| 1174 | 1206 |
| 1175 checkUnnamed4039(core.Map<core.String, core.Object> o) { | 1207 checkUnnamed3755(core.Map<core.String, core.Object> o) { |
| 1176 unittest.expect(o, unittest.hasLength(2)); | 1208 unittest.expect(o, unittest.hasLength(2)); |
| 1177 var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLengt
h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"],
unittest.equals('foo')); | 1209 var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLengt
h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"],
unittest.equals('foo')); |
| 1178 var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLengt
h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"],
unittest.equals('foo')); | 1210 var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLengt
h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"],
unittest.equals('foo')); |
| 1179 } | 1211 } |
| 1180 | 1212 |
| 1181 buildUnnamed4040() { | 1213 buildUnnamed3756() { |
| 1182 var o = new core.List<core.Map<core.String, core.Object>>(); | 1214 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 1183 o.add(buildUnnamed4039()); | 1215 o.add(buildUnnamed3755()); |
| 1184 o.add(buildUnnamed4039()); | 1216 o.add(buildUnnamed3755()); |
| 1185 return o; | 1217 return o; |
| 1186 } | 1218 } |
| 1187 | 1219 |
| 1188 checkUnnamed4040(core.List<core.Map<core.String, core.Object>> o) { | 1220 checkUnnamed3756(core.List<core.Map<core.String, core.Object>> o) { |
| 1189 unittest.expect(o, unittest.hasLength(2)); | 1221 unittest.expect(o, unittest.hasLength(2)); |
| 1190 checkUnnamed4039(o[0]); | 1222 checkUnnamed3755(o[0]); |
| 1191 checkUnnamed4039(o[1]); | 1223 checkUnnamed3755(o[1]); |
| 1192 } | 1224 } |
| 1193 | 1225 |
| 1194 core.int buildCounterStatus = 0; | 1226 core.int buildCounterStatus = 0; |
| 1195 buildStatus() { | 1227 buildStatus() { |
| 1196 var o = new api.Status(); | 1228 var o = new api.Status(); |
| 1197 buildCounterStatus++; | 1229 buildCounterStatus++; |
| 1198 if (buildCounterStatus < 3) { | 1230 if (buildCounterStatus < 3) { |
| 1199 o.code = 42; | 1231 o.code = 42; |
| 1200 o.details = buildUnnamed4040(); | 1232 o.details = buildUnnamed3756(); |
| 1201 o.message = "foo"; | 1233 o.message = "foo"; |
| 1202 } | 1234 } |
| 1203 buildCounterStatus--; | 1235 buildCounterStatus--; |
| 1204 return o; | 1236 return o; |
| 1205 } | 1237 } |
| 1206 | 1238 |
| 1207 checkStatus(api.Status o) { | 1239 checkStatus(api.Status o) { |
| 1208 buildCounterStatus++; | 1240 buildCounterStatus++; |
| 1209 if (buildCounterStatus < 3) { | 1241 if (buildCounterStatus < 3) { |
| 1210 unittest.expect(o.code, unittest.equals(42)); | 1242 unittest.expect(o.code, unittest.equals(42)); |
| 1211 checkUnnamed4040(o.details); | 1243 checkUnnamed3756(o.details); |
| 1212 unittest.expect(o.message, unittest.equals('foo')); | 1244 unittest.expect(o.message, unittest.equals('foo')); |
| 1213 } | 1245 } |
| 1214 buildCounterStatus--; | 1246 buildCounterStatus--; |
| 1215 } | 1247 } |
| 1216 | 1248 |
| 1217 buildUnnamed4041() { | 1249 buildUnnamed3757() { |
| 1218 var o = new core.Map<core.String, core.double>(); | 1250 var o = new core.Map<core.String, core.double>(); |
| 1219 o["x"] = 42.0; | 1251 o["x"] = 42.0; |
| 1220 o["y"] = 42.0; | 1252 o["y"] = 42.0; |
| 1221 return o; | 1253 return o; |
| 1222 } | 1254 } |
| 1223 | 1255 |
| 1224 checkUnnamed4041(core.Map<core.String, core.double> o) { | 1256 checkUnnamed3757(core.Map<core.String, core.double> o) { |
| 1225 unittest.expect(o, unittest.hasLength(2)); | 1257 unittest.expect(o, unittest.hasLength(2)); |
| 1226 unittest.expect(o["x"], unittest.equals(42.0)); | 1258 unittest.expect(o["x"], unittest.equals(42.0)); |
| 1227 unittest.expect(o["y"], unittest.equals(42.0)); | 1259 unittest.expect(o["y"], unittest.equals(42.0)); |
| 1228 } | 1260 } |
| 1229 | 1261 |
| 1230 core.int buildCounterTrafficSplit = 0; | 1262 core.int buildCounterTrafficSplit = 0; |
| 1231 buildTrafficSplit() { | 1263 buildTrafficSplit() { |
| 1232 var o = new api.TrafficSplit(); | 1264 var o = new api.TrafficSplit(); |
| 1233 buildCounterTrafficSplit++; | 1265 buildCounterTrafficSplit++; |
| 1234 if (buildCounterTrafficSplit < 3) { | 1266 if (buildCounterTrafficSplit < 3) { |
| 1235 o.allocations = buildUnnamed4041(); | 1267 o.allocations = buildUnnamed3757(); |
| 1236 o.shardBy = "foo"; | 1268 o.shardBy = "foo"; |
| 1237 } | 1269 } |
| 1238 buildCounterTrafficSplit--; | 1270 buildCounterTrafficSplit--; |
| 1239 return o; | 1271 return o; |
| 1240 } | 1272 } |
| 1241 | 1273 |
| 1242 checkTrafficSplit(api.TrafficSplit o) { | 1274 checkTrafficSplit(api.TrafficSplit o) { |
| 1243 buildCounterTrafficSplit++; | 1275 buildCounterTrafficSplit++; |
| 1244 if (buildCounterTrafficSplit < 3) { | 1276 if (buildCounterTrafficSplit < 3) { |
| 1245 checkUnnamed4041(o.allocations); | 1277 checkUnnamed3757(o.allocations); |
| 1246 unittest.expect(o.shardBy, unittest.equals('foo')); | 1278 unittest.expect(o.shardBy, unittest.equals('foo')); |
| 1247 } | 1279 } |
| 1248 buildCounterTrafficSplit--; | 1280 buildCounterTrafficSplit--; |
| 1249 } | 1281 } |
| 1250 | 1282 |
| 1251 core.int buildCounterUrlDispatchRule = 0; | 1283 core.int buildCounterUrlDispatchRule = 0; |
| 1252 buildUrlDispatchRule() { | 1284 buildUrlDispatchRule() { |
| 1253 var o = new api.UrlDispatchRule(); | 1285 var o = new api.UrlDispatchRule(); |
| 1254 buildCounterUrlDispatchRule++; | 1286 buildCounterUrlDispatchRule++; |
| 1255 if (buildCounterUrlDispatchRule < 3) { | 1287 if (buildCounterUrlDispatchRule < 3) { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1299 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); | 1331 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); |
| 1300 checkScriptHandler(o.script); | 1332 checkScriptHandler(o.script); |
| 1301 unittest.expect(o.securityLevel, unittest.equals('foo')); | 1333 unittest.expect(o.securityLevel, unittest.equals('foo')); |
| 1302 checkStaticDirectoryHandler(o.staticDirectory); | 1334 checkStaticDirectoryHandler(o.staticDirectory); |
| 1303 checkStaticFilesHandler(o.staticFiles); | 1335 checkStaticFilesHandler(o.staticFiles); |
| 1304 unittest.expect(o.urlRegex, unittest.equals('foo')); | 1336 unittest.expect(o.urlRegex, unittest.equals('foo')); |
| 1305 } | 1337 } |
| 1306 buildCounterUrlMap--; | 1338 buildCounterUrlMap--; |
| 1307 } | 1339 } |
| 1308 | 1340 |
| 1309 buildUnnamed4042() { | 1341 buildUnnamed3758() { |
| 1310 var o = new core.Map<core.String, core.String>(); | 1342 var o = new core.Map<core.String, core.String>(); |
| 1311 o["x"] = "foo"; | 1343 o["x"] = "foo"; |
| 1312 o["y"] = "foo"; | 1344 o["y"] = "foo"; |
| 1313 return o; | 1345 return o; |
| 1314 } | 1346 } |
| 1315 | 1347 |
| 1316 checkUnnamed4042(core.Map<core.String, core.String> o) { | 1348 checkUnnamed3758(core.Map<core.String, core.String> o) { |
| 1317 unittest.expect(o, unittest.hasLength(2)); | 1349 unittest.expect(o, unittest.hasLength(2)); |
| 1318 unittest.expect(o["x"], unittest.equals('foo')); | 1350 unittest.expect(o["x"], unittest.equals('foo')); |
| 1319 unittest.expect(o["y"], unittest.equals('foo')); | 1351 unittest.expect(o["y"], unittest.equals('foo')); |
| 1320 } | 1352 } |
| 1321 | 1353 |
| 1322 buildUnnamed4043() { | 1354 buildUnnamed3759() { |
| 1323 var o = new core.Map<core.String, core.String>(); | 1355 var o = new core.Map<core.String, core.String>(); |
| 1324 o["x"] = "foo"; | 1356 o["x"] = "foo"; |
| 1325 o["y"] = "foo"; | 1357 o["y"] = "foo"; |
| 1326 return o; | 1358 return o; |
| 1327 } | 1359 } |
| 1328 | 1360 |
| 1329 checkUnnamed4043(core.Map<core.String, core.String> o) { | 1361 checkUnnamed3759(core.Map<core.String, core.String> o) { |
| 1330 unittest.expect(o, unittest.hasLength(2)); | 1362 unittest.expect(o, unittest.hasLength(2)); |
| 1331 unittest.expect(o["x"], unittest.equals('foo')); | 1363 unittest.expect(o["x"], unittest.equals('foo')); |
| 1332 unittest.expect(o["y"], unittest.equals('foo')); | 1364 unittest.expect(o["y"], unittest.equals('foo')); |
| 1333 } | 1365 } |
| 1334 | 1366 |
| 1335 buildUnnamed4044() { | 1367 buildUnnamed3760() { |
| 1336 var o = new core.List<api.ErrorHandler>(); | 1368 var o = new core.List<api.ErrorHandler>(); |
| 1337 o.add(buildErrorHandler()); | 1369 o.add(buildErrorHandler()); |
| 1338 o.add(buildErrorHandler()); | 1370 o.add(buildErrorHandler()); |
| 1339 return o; | 1371 return o; |
| 1340 } | 1372 } |
| 1341 | 1373 |
| 1342 checkUnnamed4044(core.List<api.ErrorHandler> o) { | 1374 checkUnnamed3760(core.List<api.ErrorHandler> o) { |
| 1343 unittest.expect(o, unittest.hasLength(2)); | 1375 unittest.expect(o, unittest.hasLength(2)); |
| 1344 checkErrorHandler(o[0]); | 1376 checkErrorHandler(o[0]); |
| 1345 checkErrorHandler(o[1]); | 1377 checkErrorHandler(o[1]); |
| 1346 } | 1378 } |
| 1347 | 1379 |
| 1348 buildUnnamed4045() { | 1380 buildUnnamed3761() { |
| 1349 var o = new core.List<api.UrlMap>(); | 1381 var o = new core.List<api.UrlMap>(); |
| 1350 o.add(buildUrlMap()); | 1382 o.add(buildUrlMap()); |
| 1351 o.add(buildUrlMap()); | 1383 o.add(buildUrlMap()); |
| 1352 return o; | 1384 return o; |
| 1353 } | 1385 } |
| 1354 | 1386 |
| 1355 checkUnnamed4045(core.List<api.UrlMap> o) { | 1387 checkUnnamed3761(core.List<api.UrlMap> o) { |
| 1356 unittest.expect(o, unittest.hasLength(2)); | 1388 unittest.expect(o, unittest.hasLength(2)); |
| 1357 checkUrlMap(o[0]); | 1389 checkUrlMap(o[0]); |
| 1358 checkUrlMap(o[1]); | 1390 checkUrlMap(o[1]); |
| 1359 } | 1391 } |
| 1360 | 1392 |
| 1361 buildUnnamed4046() { | 1393 buildUnnamed3762() { |
| 1362 var o = new core.List<core.String>(); | 1394 var o = new core.List<core.String>(); |
| 1363 o.add("foo"); | 1395 o.add("foo"); |
| 1364 o.add("foo"); | 1396 o.add("foo"); |
| 1365 return o; | 1397 return o; |
| 1366 } | 1398 } |
| 1367 | 1399 |
| 1368 checkUnnamed4046(core.List<core.String> o) { | 1400 checkUnnamed3762(core.List<core.String> o) { |
| 1369 unittest.expect(o, unittest.hasLength(2)); | 1401 unittest.expect(o, unittest.hasLength(2)); |
| 1370 unittest.expect(o[0], unittest.equals('foo')); | 1402 unittest.expect(o[0], unittest.equals('foo')); |
| 1371 unittest.expect(o[1], unittest.equals('foo')); | 1403 unittest.expect(o[1], unittest.equals('foo')); |
| 1372 } | 1404 } |
| 1373 | 1405 |
| 1374 buildUnnamed4047() { | 1406 buildUnnamed3763() { |
| 1375 var o = new core.List<api.Library>(); | 1407 var o = new core.List<api.Library>(); |
| 1376 o.add(buildLibrary()); | 1408 o.add(buildLibrary()); |
| 1377 o.add(buildLibrary()); | 1409 o.add(buildLibrary()); |
| 1378 return o; | 1410 return o; |
| 1379 } | 1411 } |
| 1380 | 1412 |
| 1381 checkUnnamed4047(core.List<api.Library> o) { | 1413 checkUnnamed3763(core.List<api.Library> o) { |
| 1382 unittest.expect(o, unittest.hasLength(2)); | 1414 unittest.expect(o, unittest.hasLength(2)); |
| 1383 checkLibrary(o[0]); | 1415 checkLibrary(o[0]); |
| 1384 checkLibrary(o[1]); | 1416 checkLibrary(o[1]); |
| 1385 } | 1417 } |
| 1386 | 1418 |
| 1387 core.int buildCounterVersion = 0; | 1419 core.int buildCounterVersion = 0; |
| 1388 buildVersion() { | 1420 buildVersion() { |
| 1389 var o = new api.Version(); | 1421 var o = new api.Version(); |
| 1390 buildCounterVersion++; | 1422 buildCounterVersion++; |
| 1391 if (buildCounterVersion < 3) { | 1423 if (buildCounterVersion < 3) { |
| 1392 o.apiConfig = buildApiConfigHandler(); | 1424 o.apiConfig = buildApiConfigHandler(); |
| 1393 o.automaticScaling = buildAutomaticScaling(); | 1425 o.automaticScaling = buildAutomaticScaling(); |
| 1394 o.basicScaling = buildBasicScaling(); | 1426 o.basicScaling = buildBasicScaling(); |
| 1395 o.betaSettings = buildUnnamed4042(); | 1427 o.betaSettings = buildUnnamed3758(); |
| 1396 o.creationTime = "foo"; | 1428 o.creationTime = "foo"; |
| 1397 o.defaultExpiration = "foo"; | 1429 o.defaultExpiration = "foo"; |
| 1398 o.deployer = "foo"; | 1430 o.deployer = "foo"; |
| 1399 o.deployment = buildDeployment(); | 1431 o.deployment = buildDeployment(); |
| 1400 o.env = "foo"; | 1432 o.env = "foo"; |
| 1401 o.envVariables = buildUnnamed4043(); | 1433 o.envVariables = buildUnnamed3759(); |
| 1402 o.errorHandlers = buildUnnamed4044(); | 1434 o.errorHandlers = buildUnnamed3760(); |
| 1403 o.handlers = buildUnnamed4045(); | 1435 o.handlers = buildUnnamed3761(); |
| 1404 o.healthCheck = buildHealthCheck(); | 1436 o.healthCheck = buildHealthCheck(); |
| 1405 o.id = "foo"; | 1437 o.id = "foo"; |
| 1406 o.inboundServices = buildUnnamed4046(); | 1438 o.inboundServices = buildUnnamed3762(); |
| 1407 o.instanceClass = "foo"; | 1439 o.instanceClass = "foo"; |
| 1408 o.libraries = buildUnnamed4047(); | 1440 o.libraries = buildUnnamed3763(); |
| 1409 o.manualScaling = buildManualScaling(); | 1441 o.manualScaling = buildManualScaling(); |
| 1410 o.name = "foo"; | 1442 o.name = "foo"; |
| 1411 o.network = buildNetwork(); | 1443 o.network = buildNetwork(); |
| 1412 o.nobuildFilesRegex = "foo"; | 1444 o.nobuildFilesRegex = "foo"; |
| 1413 o.resources = buildResources(); | 1445 o.resources = buildResources(); |
| 1414 o.runtime = "foo"; | 1446 o.runtime = "foo"; |
| 1415 o.servingStatus = "foo"; | 1447 o.servingStatus = "foo"; |
| 1416 o.threadsafe = true; | 1448 o.threadsafe = true; |
| 1417 o.vm = true; | 1449 o.vm = true; |
| 1418 } | 1450 } |
| 1419 buildCounterVersion--; | 1451 buildCounterVersion--; |
| 1420 return o; | 1452 return o; |
| 1421 } | 1453 } |
| 1422 | 1454 |
| 1423 checkVersion(api.Version o) { | 1455 checkVersion(api.Version o) { |
| 1424 buildCounterVersion++; | 1456 buildCounterVersion++; |
| 1425 if (buildCounterVersion < 3) { | 1457 if (buildCounterVersion < 3) { |
| 1426 checkApiConfigHandler(o.apiConfig); | 1458 checkApiConfigHandler(o.apiConfig); |
| 1427 checkAutomaticScaling(o.automaticScaling); | 1459 checkAutomaticScaling(o.automaticScaling); |
| 1428 checkBasicScaling(o.basicScaling); | 1460 checkBasicScaling(o.basicScaling); |
| 1429 checkUnnamed4042(o.betaSettings); | 1461 checkUnnamed3758(o.betaSettings); |
| 1430 unittest.expect(o.creationTime, unittest.equals('foo')); | 1462 unittest.expect(o.creationTime, unittest.equals('foo')); |
| 1431 unittest.expect(o.defaultExpiration, unittest.equals('foo')); | 1463 unittest.expect(o.defaultExpiration, unittest.equals('foo')); |
| 1432 unittest.expect(o.deployer, unittest.equals('foo')); | 1464 unittest.expect(o.deployer, unittest.equals('foo')); |
| 1433 checkDeployment(o.deployment); | 1465 checkDeployment(o.deployment); |
| 1434 unittest.expect(o.env, unittest.equals('foo')); | 1466 unittest.expect(o.env, unittest.equals('foo')); |
| 1435 checkUnnamed4043(o.envVariables); | 1467 checkUnnamed3759(o.envVariables); |
| 1436 checkUnnamed4044(o.errorHandlers); | 1468 checkUnnamed3760(o.errorHandlers); |
| 1437 checkUnnamed4045(o.handlers); | 1469 checkUnnamed3761(o.handlers); |
| 1438 checkHealthCheck(o.healthCheck); | 1470 checkHealthCheck(o.healthCheck); |
| 1439 unittest.expect(o.id, unittest.equals('foo')); | 1471 unittest.expect(o.id, unittest.equals('foo')); |
| 1440 checkUnnamed4046(o.inboundServices); | 1472 checkUnnamed3762(o.inboundServices); |
| 1441 unittest.expect(o.instanceClass, unittest.equals('foo')); | 1473 unittest.expect(o.instanceClass, unittest.equals('foo')); |
| 1442 checkUnnamed4047(o.libraries); | 1474 checkUnnamed3763(o.libraries); |
| 1443 checkManualScaling(o.manualScaling); | 1475 checkManualScaling(o.manualScaling); |
| 1444 unittest.expect(o.name, unittest.equals('foo')); | 1476 unittest.expect(o.name, unittest.equals('foo')); |
| 1445 checkNetwork(o.network); | 1477 checkNetwork(o.network); |
| 1446 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); | 1478 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); |
| 1447 checkResources(o.resources); | 1479 checkResources(o.resources); |
| 1448 unittest.expect(o.runtime, unittest.equals('foo')); | 1480 unittest.expect(o.runtime, unittest.equals('foo')); |
| 1449 unittest.expect(o.servingStatus, unittest.equals('foo')); | 1481 unittest.expect(o.servingStatus, unittest.equals('foo')); |
| 1450 unittest.expect(o.threadsafe, unittest.isTrue); | 1482 unittest.expect(o.threadsafe, unittest.isTrue); |
| 1451 unittest.expect(o.vm, unittest.isTrue); | 1483 unittest.expect(o.vm, unittest.isTrue); |
| 1452 } | 1484 } |
| 1453 buildCounterVersion--; | 1485 buildCounterVersion--; |
| 1454 } | 1486 } |
| 1455 | 1487 |
| 1488 core.int buildCounterVolume = 0; |
| 1489 buildVolume() { |
| 1490 var o = new api.Volume(); |
| 1491 buildCounterVolume++; |
| 1492 if (buildCounterVolume < 3) { |
| 1493 o.name = "foo"; |
| 1494 o.sizeGb = 42.0; |
| 1495 o.volumeType = "foo"; |
| 1496 } |
| 1497 buildCounterVolume--; |
| 1498 return o; |
| 1499 } |
| 1500 |
| 1501 checkVolume(api.Volume o) { |
| 1502 buildCounterVolume++; |
| 1503 if (buildCounterVolume < 3) { |
| 1504 unittest.expect(o.name, unittest.equals('foo')); |
| 1505 unittest.expect(o.sizeGb, unittest.equals(42.0)); |
| 1506 unittest.expect(o.volumeType, unittest.equals('foo')); |
| 1507 } |
| 1508 buildCounterVolume--; |
| 1509 } |
| 1510 |
| 1456 | 1511 |
| 1457 main() { | 1512 main() { |
| 1458 unittest.group("obj-schema-ApiConfigHandler", () { | 1513 unittest.group("obj-schema-ApiConfigHandler", () { |
| 1459 unittest.test("to-json--from-json", () { | 1514 unittest.test("to-json--from-json", () { |
| 1460 var o = buildApiConfigHandler(); | 1515 var o = buildApiConfigHandler(); |
| 1461 var od = new api.ApiConfigHandler.fromJson(o.toJson()); | 1516 var od = new api.ApiConfigHandler.fromJson(o.toJson()); |
| 1462 checkApiConfigHandler(od); | 1517 checkApiConfigHandler(od); |
| 1463 }); | 1518 }); |
| 1464 }); | 1519 }); |
| 1465 | 1520 |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1826 | 1881 |
| 1827 unittest.group("obj-schema-Version", () { | 1882 unittest.group("obj-schema-Version", () { |
| 1828 unittest.test("to-json--from-json", () { | 1883 unittest.test("to-json--from-json", () { |
| 1829 var o = buildVersion(); | 1884 var o = buildVersion(); |
| 1830 var od = new api.Version.fromJson(o.toJson()); | 1885 var od = new api.Version.fromJson(o.toJson()); |
| 1831 checkVersion(od); | 1886 checkVersion(od); |
| 1832 }); | 1887 }); |
| 1833 }); | 1888 }); |
| 1834 | 1889 |
| 1835 | 1890 |
| 1891 unittest.group("obj-schema-Volume", () { |
| 1892 unittest.test("to-json--from-json", () { |
| 1893 var o = buildVolume(); |
| 1894 var od = new api.Volume.fromJson(o.toJson()); |
| 1895 checkVolume(od); |
| 1896 }); |
| 1897 }); |
| 1898 |
| 1899 |
| 1836 unittest.group("resource-AppsResourceApi", () { | 1900 unittest.group("resource-AppsResourceApi", () { |
| 1837 unittest.test("method--create", () { | 1901 unittest.test("method--create", () { |
| 1838 | 1902 |
| 1839 var mock = new HttpServerMock(); | 1903 var mock = new HttpServerMock(); |
| 1840 api.AppsResourceApi res = new api.AppengineApi(mock).apps; | 1904 api.AppsResourceApi res = new api.AppengineApi(mock).apps; |
| 1841 var arg_request = buildApplication(); | 1905 var arg_request = buildApplication(); |
| 1842 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1906 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1843 var obj = new api.Application.fromJson(json); | 1907 var obj = new api.Application.fromJson(json); |
| 1844 checkApplication(obj); | 1908 checkApplication(obj); |
| 1845 | 1909 |
| (...skipping 1224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3070 res.list(arg_appsId, filter: arg_filter, pageSize: arg_pageSize, pageToken
: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response
) { | 3134 res.list(arg_appsId, filter: arg_filter, pageSize: arg_pageSize, pageToken
: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response
) { |
| 3071 checkListOperationsResponse(response); | 3135 checkListOperationsResponse(response); |
| 3072 }))); | 3136 }))); |
| 3073 }); | 3137 }); |
| 3074 | 3138 |
| 3075 }); | 3139 }); |
| 3076 | 3140 |
| 3077 | 3141 |
| 3078 } | 3142 } |
| 3079 | 3143 |
| OLD | NEW |