| 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 buildUnnamed2971() { | 100 buildUnnamed3682() { |
| 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 checkUnnamed2971(core.List<api.UrlDispatchRule> o) { | 107 checkUnnamed3682(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 = buildUnnamed2971(); | 123 o.dispatchRules = buildUnnamed3682(); |
| 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 checkUnnamed2971(o.dispatchRules); | 140 checkUnnamed3682(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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 | 240 |
| 241 checkCpuUtilization(api.CpuUtilization o) { | 241 checkCpuUtilization(api.CpuUtilization o) { |
| 242 buildCounterCpuUtilization++; | 242 buildCounterCpuUtilization++; |
| 243 if (buildCounterCpuUtilization < 3) { | 243 if (buildCounterCpuUtilization < 3) { |
| 244 unittest.expect(o.aggregationWindowLength, unittest.equals('foo')); | 244 unittest.expect(o.aggregationWindowLength, unittest.equals('foo')); |
| 245 unittest.expect(o.targetUtilization, unittest.equals(42.0)); | 245 unittest.expect(o.targetUtilization, unittest.equals(42.0)); |
| 246 } | 246 } |
| 247 buildCounterCpuUtilization--; | 247 buildCounterCpuUtilization--; |
| 248 } | 248 } |
| 249 | 249 |
| 250 buildUnnamed2972() { | 250 buildUnnamed3683() { |
| 251 var o = new core.Map<core.String, api.FileInfo>(); | 251 var o = new core.Map<core.String, api.FileInfo>(); |
| 252 o["x"] = buildFileInfo(); | 252 o["x"] = buildFileInfo(); |
| 253 o["y"] = buildFileInfo(); | 253 o["y"] = buildFileInfo(); |
| 254 return o; | 254 return o; |
| 255 } | 255 } |
| 256 | 256 |
| 257 checkUnnamed2972(core.Map<core.String, api.FileInfo> o) { | 257 checkUnnamed3683(core.Map<core.String, api.FileInfo> o) { |
| 258 unittest.expect(o, unittest.hasLength(2)); | 258 unittest.expect(o, unittest.hasLength(2)); |
| 259 checkFileInfo(o["x"]); | 259 checkFileInfo(o["x"]); |
| 260 checkFileInfo(o["y"]); | 260 checkFileInfo(o["y"]); |
| 261 } | 261 } |
| 262 | 262 |
| 263 buildUnnamed2973() { | 263 buildUnnamed3684() { |
| 264 var o = new core.List<api.SourceReference>(); | 264 var o = new core.List<api.SourceReference>(); |
| 265 o.add(buildSourceReference()); | 265 o.add(buildSourceReference()); |
| 266 o.add(buildSourceReference()); | 266 o.add(buildSourceReference()); |
| 267 return o; | 267 return o; |
| 268 } | 268 } |
| 269 | 269 |
| 270 checkUnnamed2973(core.List<api.SourceReference> o) { | 270 checkUnnamed3684(core.List<api.SourceReference> o) { |
| 271 unittest.expect(o, unittest.hasLength(2)); | 271 unittest.expect(o, unittest.hasLength(2)); |
| 272 checkSourceReference(o[0]); | 272 checkSourceReference(o[0]); |
| 273 checkSourceReference(o[1]); | 273 checkSourceReference(o[1]); |
| 274 } | 274 } |
| 275 | 275 |
| 276 core.int buildCounterDeployment = 0; | 276 core.int buildCounterDeployment = 0; |
| 277 buildDeployment() { | 277 buildDeployment() { |
| 278 var o = new api.Deployment(); | 278 var o = new api.Deployment(); |
| 279 buildCounterDeployment++; | 279 buildCounterDeployment++; |
| 280 if (buildCounterDeployment < 3) { | 280 if (buildCounterDeployment < 3) { |
| 281 o.container = buildContainerInfo(); | 281 o.container = buildContainerInfo(); |
| 282 o.files = buildUnnamed2972(); | 282 o.files = buildUnnamed3683(); |
| 283 o.sourceReferences = buildUnnamed2973(); | 283 o.sourceReferences = buildUnnamed3684(); |
| 284 } | 284 } |
| 285 buildCounterDeployment--; | 285 buildCounterDeployment--; |
| 286 return o; | 286 return o; |
| 287 } | 287 } |
| 288 | 288 |
| 289 checkDeployment(api.Deployment o) { | 289 checkDeployment(api.Deployment o) { |
| 290 buildCounterDeployment++; | 290 buildCounterDeployment++; |
| 291 if (buildCounterDeployment < 3) { | 291 if (buildCounterDeployment < 3) { |
| 292 checkContainerInfo(o.container); | 292 checkContainerInfo(o.container); |
| 293 checkUnnamed2972(o.files); | 293 checkUnnamed3683(o.files); |
| 294 checkUnnamed2973(o.sourceReferences); | 294 checkUnnamed3684(o.sourceReferences); |
| 295 } | 295 } |
| 296 buildCounterDeployment--; | 296 buildCounterDeployment--; |
| 297 } | 297 } |
| 298 | 298 |
| 299 core.int buildCounterDiskUtilization = 0; | 299 core.int buildCounterDiskUtilization = 0; |
| 300 buildDiskUtilization() { | 300 buildDiskUtilization() { |
| 301 var o = new api.DiskUtilization(); | 301 var o = new api.DiskUtilization(); |
| 302 buildCounterDiskUtilization++; | 302 buildCounterDiskUtilization++; |
| 303 if (buildCounterDiskUtilization < 3) { | 303 if (buildCounterDiskUtilization < 3) { |
| 304 o.targetReadBytesPerSec = 42; | 304 o.targetReadBytesPerSec = 42; |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 | 459 |
| 460 checkLibrary(api.Library o) { | 460 checkLibrary(api.Library o) { |
| 461 buildCounterLibrary++; | 461 buildCounterLibrary++; |
| 462 if (buildCounterLibrary < 3) { | 462 if (buildCounterLibrary < 3) { |
| 463 unittest.expect(o.name, unittest.equals('foo')); | 463 unittest.expect(o.name, unittest.equals('foo')); |
| 464 unittest.expect(o.version, unittest.equals('foo')); | 464 unittest.expect(o.version, unittest.equals('foo')); |
| 465 } | 465 } |
| 466 buildCounterLibrary--; | 466 buildCounterLibrary--; |
| 467 } | 467 } |
| 468 | 468 |
| 469 buildUnnamed2974() { | 469 buildUnnamed3685() { |
| 470 var o = new core.List<api.Instance>(); | 470 var o = new core.List<api.Instance>(); |
| 471 o.add(buildInstance()); | 471 o.add(buildInstance()); |
| 472 o.add(buildInstance()); | 472 o.add(buildInstance()); |
| 473 return o; | 473 return o; |
| 474 } | 474 } |
| 475 | 475 |
| 476 checkUnnamed2974(core.List<api.Instance> o) { | 476 checkUnnamed3685(core.List<api.Instance> o) { |
| 477 unittest.expect(o, unittest.hasLength(2)); | 477 unittest.expect(o, unittest.hasLength(2)); |
| 478 checkInstance(o[0]); | 478 checkInstance(o[0]); |
| 479 checkInstance(o[1]); | 479 checkInstance(o[1]); |
| 480 } | 480 } |
| 481 | 481 |
| 482 core.int buildCounterListInstancesResponse = 0; | 482 core.int buildCounterListInstancesResponse = 0; |
| 483 buildListInstancesResponse() { | 483 buildListInstancesResponse() { |
| 484 var o = new api.ListInstancesResponse(); | 484 var o = new api.ListInstancesResponse(); |
| 485 buildCounterListInstancesResponse++; | 485 buildCounterListInstancesResponse++; |
| 486 if (buildCounterListInstancesResponse < 3) { | 486 if (buildCounterListInstancesResponse < 3) { |
| 487 o.instances = buildUnnamed2974(); | 487 o.instances = buildUnnamed3685(); |
| 488 o.nextPageToken = "foo"; | 488 o.nextPageToken = "foo"; |
| 489 } | 489 } |
| 490 buildCounterListInstancesResponse--; | 490 buildCounterListInstancesResponse--; |
| 491 return o; | 491 return o; |
| 492 } | 492 } |
| 493 | 493 |
| 494 checkListInstancesResponse(api.ListInstancesResponse o) { | 494 checkListInstancesResponse(api.ListInstancesResponse o) { |
| 495 buildCounterListInstancesResponse++; | 495 buildCounterListInstancesResponse++; |
| 496 if (buildCounterListInstancesResponse < 3) { | 496 if (buildCounterListInstancesResponse < 3) { |
| 497 checkUnnamed2974(o.instances); | 497 checkUnnamed3685(o.instances); |
| 498 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 498 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 499 } | 499 } |
| 500 buildCounterListInstancesResponse--; | 500 buildCounterListInstancesResponse--; |
| 501 } | 501 } |
| 502 | 502 |
| 503 buildUnnamed2975() { | 503 buildUnnamed3686() { |
| 504 var o = new core.List<api.Module>(); | 504 var o = new core.List<api.Module>(); |
| 505 o.add(buildModule()); | 505 o.add(buildModule()); |
| 506 o.add(buildModule()); | 506 o.add(buildModule()); |
| 507 return o; | 507 return o; |
| 508 } | 508 } |
| 509 | 509 |
| 510 checkUnnamed2975(core.List<api.Module> o) { | 510 checkUnnamed3686(core.List<api.Module> o) { |
| 511 unittest.expect(o, unittest.hasLength(2)); | 511 unittest.expect(o, unittest.hasLength(2)); |
| 512 checkModule(o[0]); | 512 checkModule(o[0]); |
| 513 checkModule(o[1]); | 513 checkModule(o[1]); |
| 514 } | 514 } |
| 515 | 515 |
| 516 core.int buildCounterListModulesResponse = 0; | 516 core.int buildCounterListModulesResponse = 0; |
| 517 buildListModulesResponse() { | 517 buildListModulesResponse() { |
| 518 var o = new api.ListModulesResponse(); | 518 var o = new api.ListModulesResponse(); |
| 519 buildCounterListModulesResponse++; | 519 buildCounterListModulesResponse++; |
| 520 if (buildCounterListModulesResponse < 3) { | 520 if (buildCounterListModulesResponse < 3) { |
| 521 o.modules = buildUnnamed2975(); | 521 o.modules = buildUnnamed3686(); |
| 522 o.nextPageToken = "foo"; | 522 o.nextPageToken = "foo"; |
| 523 } | 523 } |
| 524 buildCounterListModulesResponse--; | 524 buildCounterListModulesResponse--; |
| 525 return o; | 525 return o; |
| 526 } | 526 } |
| 527 | 527 |
| 528 checkListModulesResponse(api.ListModulesResponse o) { | 528 checkListModulesResponse(api.ListModulesResponse o) { |
| 529 buildCounterListModulesResponse++; | 529 buildCounterListModulesResponse++; |
| 530 if (buildCounterListModulesResponse < 3) { | 530 if (buildCounterListModulesResponse < 3) { |
| 531 checkUnnamed2975(o.modules); | 531 checkUnnamed3686(o.modules); |
| 532 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 532 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 533 } | 533 } |
| 534 buildCounterListModulesResponse--; | 534 buildCounterListModulesResponse--; |
| 535 } | 535 } |
| 536 | 536 |
| 537 buildUnnamed2976() { | 537 buildUnnamed3687() { |
| 538 var o = new core.List<api.Operation>(); | 538 var o = new core.List<api.Operation>(); |
| 539 o.add(buildOperation()); | 539 o.add(buildOperation()); |
| 540 o.add(buildOperation()); | 540 o.add(buildOperation()); |
| 541 return o; | 541 return o; |
| 542 } | 542 } |
| 543 | 543 |
| 544 checkUnnamed2976(core.List<api.Operation> o) { | 544 checkUnnamed3687(core.List<api.Operation> o) { |
| 545 unittest.expect(o, unittest.hasLength(2)); | 545 unittest.expect(o, unittest.hasLength(2)); |
| 546 checkOperation(o[0]); | 546 checkOperation(o[0]); |
| 547 checkOperation(o[1]); | 547 checkOperation(o[1]); |
| 548 } | 548 } |
| 549 | 549 |
| 550 core.int buildCounterListOperationsResponse = 0; | 550 core.int buildCounterListOperationsResponse = 0; |
| 551 buildListOperationsResponse() { | 551 buildListOperationsResponse() { |
| 552 var o = new api.ListOperationsResponse(); | 552 var o = new api.ListOperationsResponse(); |
| 553 buildCounterListOperationsResponse++; | 553 buildCounterListOperationsResponse++; |
| 554 if (buildCounterListOperationsResponse < 3) { | 554 if (buildCounterListOperationsResponse < 3) { |
| 555 o.nextPageToken = "foo"; | 555 o.nextPageToken = "foo"; |
| 556 o.operations = buildUnnamed2976(); | 556 o.operations = buildUnnamed3687(); |
| 557 } | 557 } |
| 558 buildCounterListOperationsResponse--; | 558 buildCounterListOperationsResponse--; |
| 559 return o; | 559 return o; |
| 560 } | 560 } |
| 561 | 561 |
| 562 checkListOperationsResponse(api.ListOperationsResponse o) { | 562 checkListOperationsResponse(api.ListOperationsResponse o) { |
| 563 buildCounterListOperationsResponse++; | 563 buildCounterListOperationsResponse++; |
| 564 if (buildCounterListOperationsResponse < 3) { | 564 if (buildCounterListOperationsResponse < 3) { |
| 565 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 565 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 566 checkUnnamed2976(o.operations); | 566 checkUnnamed3687(o.operations); |
| 567 } | 567 } |
| 568 buildCounterListOperationsResponse--; | 568 buildCounterListOperationsResponse--; |
| 569 } | 569 } |
| 570 | 570 |
| 571 buildUnnamed2977() { | 571 buildUnnamed3688() { |
| 572 var o = new core.List<api.Version>(); | 572 var o = new core.List<api.Version>(); |
| 573 o.add(buildVersion()); | 573 o.add(buildVersion()); |
| 574 o.add(buildVersion()); | 574 o.add(buildVersion()); |
| 575 return o; | 575 return o; |
| 576 } | 576 } |
| 577 | 577 |
| 578 checkUnnamed2977(core.List<api.Version> o) { | 578 checkUnnamed3688(core.List<api.Version> o) { |
| 579 unittest.expect(o, unittest.hasLength(2)); | 579 unittest.expect(o, unittest.hasLength(2)); |
| 580 checkVersion(o[0]); | 580 checkVersion(o[0]); |
| 581 checkVersion(o[1]); | 581 checkVersion(o[1]); |
| 582 } | 582 } |
| 583 | 583 |
| 584 core.int buildCounterListVersionsResponse = 0; | 584 core.int buildCounterListVersionsResponse = 0; |
| 585 buildListVersionsResponse() { | 585 buildListVersionsResponse() { |
| 586 var o = new api.ListVersionsResponse(); | 586 var o = new api.ListVersionsResponse(); |
| 587 buildCounterListVersionsResponse++; | 587 buildCounterListVersionsResponse++; |
| 588 if (buildCounterListVersionsResponse < 3) { | 588 if (buildCounterListVersionsResponse < 3) { |
| 589 o.nextPageToken = "foo"; | 589 o.nextPageToken = "foo"; |
| 590 o.versions = buildUnnamed2977(); | 590 o.versions = buildUnnamed3688(); |
| 591 } | 591 } |
| 592 buildCounterListVersionsResponse--; | 592 buildCounterListVersionsResponse--; |
| 593 return o; | 593 return o; |
| 594 } | 594 } |
| 595 | 595 |
| 596 checkListVersionsResponse(api.ListVersionsResponse o) { | 596 checkListVersionsResponse(api.ListVersionsResponse o) { |
| 597 buildCounterListVersionsResponse++; | 597 buildCounterListVersionsResponse++; |
| 598 if (buildCounterListVersionsResponse < 3) { | 598 if (buildCounterListVersionsResponse < 3) { |
| 599 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 599 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 600 checkUnnamed2977(o.versions); | 600 checkUnnamed3688(o.versions); |
| 601 } | 601 } |
| 602 buildCounterListVersionsResponse--; | 602 buildCounterListVersionsResponse--; |
| 603 } | 603 } |
| 604 | 604 |
| 605 core.int buildCounterManualScaling = 0; | 605 core.int buildCounterManualScaling = 0; |
| 606 buildManualScaling() { | 606 buildManualScaling() { |
| 607 var o = new api.ManualScaling(); | 607 var o = new api.ManualScaling(); |
| 608 buildCounterManualScaling++; | 608 buildCounterManualScaling++; |
| 609 if (buildCounterManualScaling < 3) { | 609 if (buildCounterManualScaling < 3) { |
| 610 o.instances = 42; | 610 o.instances = 42; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 637 checkModule(api.Module o) { | 637 checkModule(api.Module o) { |
| 638 buildCounterModule++; | 638 buildCounterModule++; |
| 639 if (buildCounterModule < 3) { | 639 if (buildCounterModule < 3) { |
| 640 unittest.expect(o.id, unittest.equals('foo')); | 640 unittest.expect(o.id, unittest.equals('foo')); |
| 641 unittest.expect(o.name, unittest.equals('foo')); | 641 unittest.expect(o.name, unittest.equals('foo')); |
| 642 checkTrafficSplit(o.split); | 642 checkTrafficSplit(o.split); |
| 643 } | 643 } |
| 644 buildCounterModule--; | 644 buildCounterModule--; |
| 645 } | 645 } |
| 646 | 646 |
| 647 buildUnnamed2978() { | 647 buildUnnamed3689() { |
| 648 var o = new core.List<core.String>(); | 648 var o = new core.List<core.String>(); |
| 649 o.add("foo"); | 649 o.add("foo"); |
| 650 o.add("foo"); | 650 o.add("foo"); |
| 651 return o; | 651 return o; |
| 652 } | 652 } |
| 653 | 653 |
| 654 checkUnnamed2978(core.List<core.String> o) { | 654 checkUnnamed3689(core.List<core.String> o) { |
| 655 unittest.expect(o, unittest.hasLength(2)); | 655 unittest.expect(o, unittest.hasLength(2)); |
| 656 unittest.expect(o[0], unittest.equals('foo')); | 656 unittest.expect(o[0], unittest.equals('foo')); |
| 657 unittest.expect(o[1], unittest.equals('foo')); | 657 unittest.expect(o[1], unittest.equals('foo')); |
| 658 } | 658 } |
| 659 | 659 |
| 660 core.int buildCounterNetwork = 0; | 660 core.int buildCounterNetwork = 0; |
| 661 buildNetwork() { | 661 buildNetwork() { |
| 662 var o = new api.Network(); | 662 var o = new api.Network(); |
| 663 buildCounterNetwork++; | 663 buildCounterNetwork++; |
| 664 if (buildCounterNetwork < 3) { | 664 if (buildCounterNetwork < 3) { |
| 665 o.forwardedPorts = buildUnnamed2978(); | 665 o.forwardedPorts = buildUnnamed3689(); |
| 666 o.instanceTag = "foo"; | 666 o.instanceTag = "foo"; |
| 667 o.name = "foo"; | 667 o.name = "foo"; |
| 668 } | 668 } |
| 669 buildCounterNetwork--; | 669 buildCounterNetwork--; |
| 670 return o; | 670 return o; |
| 671 } | 671 } |
| 672 | 672 |
| 673 checkNetwork(api.Network o) { | 673 checkNetwork(api.Network o) { |
| 674 buildCounterNetwork++; | 674 buildCounterNetwork++; |
| 675 if (buildCounterNetwork < 3) { | 675 if (buildCounterNetwork < 3) { |
| 676 checkUnnamed2978(o.forwardedPorts); | 676 checkUnnamed3689(o.forwardedPorts); |
| 677 unittest.expect(o.instanceTag, unittest.equals('foo')); | 677 unittest.expect(o.instanceTag, unittest.equals('foo')); |
| 678 unittest.expect(o.name, unittest.equals('foo')); | 678 unittest.expect(o.name, unittest.equals('foo')); |
| 679 } | 679 } |
| 680 buildCounterNetwork--; | 680 buildCounterNetwork--; |
| 681 } | 681 } |
| 682 | 682 |
| 683 core.int buildCounterNetworkUtilization = 0; | 683 core.int buildCounterNetworkUtilization = 0; |
| 684 buildNetworkUtilization() { | 684 buildNetworkUtilization() { |
| 685 var o = new api.NetworkUtilization(); | 685 var o = new api.NetworkUtilization(); |
| 686 buildCounterNetworkUtilization++; | 686 buildCounterNetworkUtilization++; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 698 buildCounterNetworkUtilization++; | 698 buildCounterNetworkUtilization++; |
| 699 if (buildCounterNetworkUtilization < 3) { | 699 if (buildCounterNetworkUtilization < 3) { |
| 700 unittest.expect(o.targetReceivedBytesPerSec, unittest.equals(42)); | 700 unittest.expect(o.targetReceivedBytesPerSec, unittest.equals(42)); |
| 701 unittest.expect(o.targetReceivedPacketsPerSec, unittest.equals(42)); | 701 unittest.expect(o.targetReceivedPacketsPerSec, unittest.equals(42)); |
| 702 unittest.expect(o.targetSentBytesPerSec, unittest.equals(42)); | 702 unittest.expect(o.targetSentBytesPerSec, unittest.equals(42)); |
| 703 unittest.expect(o.targetSentPacketsPerSec, unittest.equals(42)); | 703 unittest.expect(o.targetSentPacketsPerSec, unittest.equals(42)); |
| 704 } | 704 } |
| 705 buildCounterNetworkUtilization--; | 705 buildCounterNetworkUtilization--; |
| 706 } | 706 } |
| 707 | 707 |
| 708 buildUnnamed2979() { | 708 buildUnnamed3690() { |
| 709 var o = new core.Map<core.String, core.Object>(); | 709 var o = new core.Map<core.String, core.Object>(); |
| 710 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 710 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 711 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 711 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 712 return o; | 712 return o; |
| 713 } | 713 } |
| 714 | 714 |
| 715 checkUnnamed2979(core.Map<core.String, core.Object> o) { | 715 checkUnnamed3690(core.Map<core.String, core.Object> o) { |
| 716 unittest.expect(o, unittest.hasLength(2)); | 716 unittest.expect(o, unittest.hasLength(2)); |
| 717 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')); | 717 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')); |
| 718 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')); | 718 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')); |
| 719 } | 719 } |
| 720 | 720 |
| 721 buildUnnamed2980() { | 721 buildUnnamed3691() { |
| 722 var o = new core.Map<core.String, core.Object>(); | 722 var o = new core.Map<core.String, core.Object>(); |
| 723 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 723 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 724 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 724 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 725 return o; | 725 return o; |
| 726 } | 726 } |
| 727 | 727 |
| 728 checkUnnamed2980(core.Map<core.String, core.Object> o) { | 728 checkUnnamed3691(core.Map<core.String, core.Object> o) { |
| 729 unittest.expect(o, unittest.hasLength(2)); | 729 unittest.expect(o, unittest.hasLength(2)); |
| 730 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')); | 730 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')); |
| 731 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')); | 731 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')); |
| 732 } | 732 } |
| 733 | 733 |
| 734 core.int buildCounterOperation = 0; | 734 core.int buildCounterOperation = 0; |
| 735 buildOperation() { | 735 buildOperation() { |
| 736 var o = new api.Operation(); | 736 var o = new api.Operation(); |
| 737 buildCounterOperation++; | 737 buildCounterOperation++; |
| 738 if (buildCounterOperation < 3) { | 738 if (buildCounterOperation < 3) { |
| 739 o.done = true; | 739 o.done = true; |
| 740 o.error = buildStatus(); | 740 o.error = buildStatus(); |
| 741 o.metadata = buildUnnamed2979(); | 741 o.metadata = buildUnnamed3690(); |
| 742 o.name = "foo"; | 742 o.name = "foo"; |
| 743 o.response = buildUnnamed2980(); | 743 o.response = buildUnnamed3691(); |
| 744 } | 744 } |
| 745 buildCounterOperation--; | 745 buildCounterOperation--; |
| 746 return o; | 746 return o; |
| 747 } | 747 } |
| 748 | 748 |
| 749 checkOperation(api.Operation o) { | 749 checkOperation(api.Operation o) { |
| 750 buildCounterOperation++; | 750 buildCounterOperation++; |
| 751 if (buildCounterOperation < 3) { | 751 if (buildCounterOperation < 3) { |
| 752 unittest.expect(o.done, unittest.isTrue); | 752 unittest.expect(o.done, unittest.isTrue); |
| 753 checkStatus(o.error); | 753 checkStatus(o.error); |
| 754 checkUnnamed2979(o.metadata); | 754 checkUnnamed3690(o.metadata); |
| 755 unittest.expect(o.name, unittest.equals('foo')); | 755 unittest.expect(o.name, unittest.equals('foo')); |
| 756 checkUnnamed2980(o.response); | 756 checkUnnamed3691(o.response); |
| 757 } | 757 } |
| 758 buildCounterOperation--; | 758 buildCounterOperation--; |
| 759 } | 759 } |
| 760 | 760 |
| 761 core.int buildCounterOperationMetadata = 0; | 761 core.int buildCounterOperationMetadata = 0; |
| 762 buildOperationMetadata() { | 762 buildOperationMetadata() { |
| 763 var o = new api.OperationMetadata(); | 763 var o = new api.OperationMetadata(); |
| 764 buildCounterOperationMetadata++; | 764 buildCounterOperationMetadata++; |
| 765 if (buildCounterOperationMetadata < 3) { | 765 if (buildCounterOperationMetadata < 3) { |
| 766 o.endTime = "foo"; | 766 o.endTime = "foo"; |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 891 | 891 |
| 892 checkSourceReference(api.SourceReference o) { | 892 checkSourceReference(api.SourceReference o) { |
| 893 buildCounterSourceReference++; | 893 buildCounterSourceReference++; |
| 894 if (buildCounterSourceReference < 3) { | 894 if (buildCounterSourceReference < 3) { |
| 895 unittest.expect(o.repository, unittest.equals('foo')); | 895 unittest.expect(o.repository, unittest.equals('foo')); |
| 896 unittest.expect(o.revisionId, unittest.equals('foo')); | 896 unittest.expect(o.revisionId, unittest.equals('foo')); |
| 897 } | 897 } |
| 898 buildCounterSourceReference--; | 898 buildCounterSourceReference--; |
| 899 } | 899 } |
| 900 | 900 |
| 901 buildUnnamed2981() { | 901 buildUnnamed3692() { |
| 902 var o = new core.Map<core.String, core.String>(); | 902 var o = new core.Map<core.String, core.String>(); |
| 903 o["x"] = "foo"; | 903 o["x"] = "foo"; |
| 904 o["y"] = "foo"; | 904 o["y"] = "foo"; |
| 905 return o; | 905 return o; |
| 906 } | 906 } |
| 907 | 907 |
| 908 checkUnnamed2981(core.Map<core.String, core.String> o) { | 908 checkUnnamed3692(core.Map<core.String, core.String> o) { |
| 909 unittest.expect(o, unittest.hasLength(2)); | 909 unittest.expect(o, unittest.hasLength(2)); |
| 910 unittest.expect(o["x"], unittest.equals('foo')); | 910 unittest.expect(o["x"], unittest.equals('foo')); |
| 911 unittest.expect(o["y"], unittest.equals('foo')); | 911 unittest.expect(o["y"], unittest.equals('foo')); |
| 912 } | 912 } |
| 913 | 913 |
| 914 core.int buildCounterStaticDirectoryHandler = 0; | 914 core.int buildCounterStaticDirectoryHandler = 0; |
| 915 buildStaticDirectoryHandler() { | 915 buildStaticDirectoryHandler() { |
| 916 var o = new api.StaticDirectoryHandler(); | 916 var o = new api.StaticDirectoryHandler(); |
| 917 buildCounterStaticDirectoryHandler++; | 917 buildCounterStaticDirectoryHandler++; |
| 918 if (buildCounterStaticDirectoryHandler < 3) { | 918 if (buildCounterStaticDirectoryHandler < 3) { |
| 919 o.applicationReadable = true; | 919 o.applicationReadable = true; |
| 920 o.directory = "foo"; | 920 o.directory = "foo"; |
| 921 o.expiration = "foo"; | 921 o.expiration = "foo"; |
| 922 o.httpHeaders = buildUnnamed2981(); | 922 o.httpHeaders = buildUnnamed3692(); |
| 923 o.mimeType = "foo"; | 923 o.mimeType = "foo"; |
| 924 o.requireMatchingFile = true; | 924 o.requireMatchingFile = true; |
| 925 } | 925 } |
| 926 buildCounterStaticDirectoryHandler--; | 926 buildCounterStaticDirectoryHandler--; |
| 927 return o; | 927 return o; |
| 928 } | 928 } |
| 929 | 929 |
| 930 checkStaticDirectoryHandler(api.StaticDirectoryHandler o) { | 930 checkStaticDirectoryHandler(api.StaticDirectoryHandler o) { |
| 931 buildCounterStaticDirectoryHandler++; | 931 buildCounterStaticDirectoryHandler++; |
| 932 if (buildCounterStaticDirectoryHandler < 3) { | 932 if (buildCounterStaticDirectoryHandler < 3) { |
| 933 unittest.expect(o.applicationReadable, unittest.isTrue); | 933 unittest.expect(o.applicationReadable, unittest.isTrue); |
| 934 unittest.expect(o.directory, unittest.equals('foo')); | 934 unittest.expect(o.directory, unittest.equals('foo')); |
| 935 unittest.expect(o.expiration, unittest.equals('foo')); | 935 unittest.expect(o.expiration, unittest.equals('foo')); |
| 936 checkUnnamed2981(o.httpHeaders); | 936 checkUnnamed3692(o.httpHeaders); |
| 937 unittest.expect(o.mimeType, unittest.equals('foo')); | 937 unittest.expect(o.mimeType, unittest.equals('foo')); |
| 938 unittest.expect(o.requireMatchingFile, unittest.isTrue); | 938 unittest.expect(o.requireMatchingFile, unittest.isTrue); |
| 939 } | 939 } |
| 940 buildCounterStaticDirectoryHandler--; | 940 buildCounterStaticDirectoryHandler--; |
| 941 } | 941 } |
| 942 | 942 |
| 943 buildUnnamed2982() { | 943 buildUnnamed3693() { |
| 944 var o = new core.Map<core.String, core.String>(); | 944 var o = new core.Map<core.String, core.String>(); |
| 945 o["x"] = "foo"; | 945 o["x"] = "foo"; |
| 946 o["y"] = "foo"; | 946 o["y"] = "foo"; |
| 947 return o; | 947 return o; |
| 948 } | 948 } |
| 949 | 949 |
| 950 checkUnnamed2982(core.Map<core.String, core.String> o) { | 950 checkUnnamed3693(core.Map<core.String, core.String> o) { |
| 951 unittest.expect(o, unittest.hasLength(2)); | 951 unittest.expect(o, unittest.hasLength(2)); |
| 952 unittest.expect(o["x"], unittest.equals('foo')); | 952 unittest.expect(o["x"], unittest.equals('foo')); |
| 953 unittest.expect(o["y"], unittest.equals('foo')); | 953 unittest.expect(o["y"], unittest.equals('foo')); |
| 954 } | 954 } |
| 955 | 955 |
| 956 core.int buildCounterStaticFilesHandler = 0; | 956 core.int buildCounterStaticFilesHandler = 0; |
| 957 buildStaticFilesHandler() { | 957 buildStaticFilesHandler() { |
| 958 var o = new api.StaticFilesHandler(); | 958 var o = new api.StaticFilesHandler(); |
| 959 buildCounterStaticFilesHandler++; | 959 buildCounterStaticFilesHandler++; |
| 960 if (buildCounterStaticFilesHandler < 3) { | 960 if (buildCounterStaticFilesHandler < 3) { |
| 961 o.applicationReadable = true; | 961 o.applicationReadable = true; |
| 962 o.expiration = "foo"; | 962 o.expiration = "foo"; |
| 963 o.httpHeaders = buildUnnamed2982(); | 963 o.httpHeaders = buildUnnamed3693(); |
| 964 o.mimeType = "foo"; | 964 o.mimeType = "foo"; |
| 965 o.path = "foo"; | 965 o.path = "foo"; |
| 966 o.requireMatchingFile = true; | 966 o.requireMatchingFile = true; |
| 967 o.uploadPathRegex = "foo"; | 967 o.uploadPathRegex = "foo"; |
| 968 } | 968 } |
| 969 buildCounterStaticFilesHandler--; | 969 buildCounterStaticFilesHandler--; |
| 970 return o; | 970 return o; |
| 971 } | 971 } |
| 972 | 972 |
| 973 checkStaticFilesHandler(api.StaticFilesHandler o) { | 973 checkStaticFilesHandler(api.StaticFilesHandler o) { |
| 974 buildCounterStaticFilesHandler++; | 974 buildCounterStaticFilesHandler++; |
| 975 if (buildCounterStaticFilesHandler < 3) { | 975 if (buildCounterStaticFilesHandler < 3) { |
| 976 unittest.expect(o.applicationReadable, unittest.isTrue); | 976 unittest.expect(o.applicationReadable, unittest.isTrue); |
| 977 unittest.expect(o.expiration, unittest.equals('foo')); | 977 unittest.expect(o.expiration, unittest.equals('foo')); |
| 978 checkUnnamed2982(o.httpHeaders); | 978 checkUnnamed3693(o.httpHeaders); |
| 979 unittest.expect(o.mimeType, unittest.equals('foo')); | 979 unittest.expect(o.mimeType, unittest.equals('foo')); |
| 980 unittest.expect(o.path, unittest.equals('foo')); | 980 unittest.expect(o.path, unittest.equals('foo')); |
| 981 unittest.expect(o.requireMatchingFile, unittest.isTrue); | 981 unittest.expect(o.requireMatchingFile, unittest.isTrue); |
| 982 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); | 982 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); |
| 983 } | 983 } |
| 984 buildCounterStaticFilesHandler--; | 984 buildCounterStaticFilesHandler--; |
| 985 } | 985 } |
| 986 | 986 |
| 987 buildUnnamed2983() { | 987 buildUnnamed3694() { |
| 988 var o = new core.Map<core.String, core.Object>(); | 988 var o = new core.Map<core.String, core.Object>(); |
| 989 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 989 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 990 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 990 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 991 return o; | 991 return o; |
| 992 } | 992 } |
| 993 | 993 |
| 994 checkUnnamed2983(core.Map<core.String, core.Object> o) { | 994 checkUnnamed3694(core.Map<core.String, core.Object> o) { |
| 995 unittest.expect(o, unittest.hasLength(2)); | 995 unittest.expect(o, unittest.hasLength(2)); |
| 996 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')); | 996 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')); |
| 997 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')); | 997 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')); |
| 998 } | 998 } |
| 999 | 999 |
| 1000 buildUnnamed2984() { | 1000 buildUnnamed3695() { |
| 1001 var o = new core.List<core.Map<core.String, core.Object>>(); | 1001 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 1002 o.add(buildUnnamed2983()); | 1002 o.add(buildUnnamed3694()); |
| 1003 o.add(buildUnnamed2983()); | 1003 o.add(buildUnnamed3694()); |
| 1004 return o; | 1004 return o; |
| 1005 } | 1005 } |
| 1006 | 1006 |
| 1007 checkUnnamed2984(core.List<core.Map<core.String, core.Object>> o) { | 1007 checkUnnamed3695(core.List<core.Map<core.String, core.Object>> o) { |
| 1008 unittest.expect(o, unittest.hasLength(2)); | 1008 unittest.expect(o, unittest.hasLength(2)); |
| 1009 checkUnnamed2983(o[0]); | 1009 checkUnnamed3694(o[0]); |
| 1010 checkUnnamed2983(o[1]); | 1010 checkUnnamed3694(o[1]); |
| 1011 } | 1011 } |
| 1012 | 1012 |
| 1013 core.int buildCounterStatus = 0; | 1013 core.int buildCounterStatus = 0; |
| 1014 buildStatus() { | 1014 buildStatus() { |
| 1015 var o = new api.Status(); | 1015 var o = new api.Status(); |
| 1016 buildCounterStatus++; | 1016 buildCounterStatus++; |
| 1017 if (buildCounterStatus < 3) { | 1017 if (buildCounterStatus < 3) { |
| 1018 o.code = 42; | 1018 o.code = 42; |
| 1019 o.details = buildUnnamed2984(); | 1019 o.details = buildUnnamed3695(); |
| 1020 o.message = "foo"; | 1020 o.message = "foo"; |
| 1021 } | 1021 } |
| 1022 buildCounterStatus--; | 1022 buildCounterStatus--; |
| 1023 return o; | 1023 return o; |
| 1024 } | 1024 } |
| 1025 | 1025 |
| 1026 checkStatus(api.Status o) { | 1026 checkStatus(api.Status o) { |
| 1027 buildCounterStatus++; | 1027 buildCounterStatus++; |
| 1028 if (buildCounterStatus < 3) { | 1028 if (buildCounterStatus < 3) { |
| 1029 unittest.expect(o.code, unittest.equals(42)); | 1029 unittest.expect(o.code, unittest.equals(42)); |
| 1030 checkUnnamed2984(o.details); | 1030 checkUnnamed3695(o.details); |
| 1031 unittest.expect(o.message, unittest.equals('foo')); | 1031 unittest.expect(o.message, unittest.equals('foo')); |
| 1032 } | 1032 } |
| 1033 buildCounterStatus--; | 1033 buildCounterStatus--; |
| 1034 } | 1034 } |
| 1035 | 1035 |
| 1036 buildUnnamed2985() { | 1036 buildUnnamed3696() { |
| 1037 var o = new core.Map<core.String, core.double>(); | 1037 var o = new core.Map<core.String, core.double>(); |
| 1038 o["x"] = 42.0; | 1038 o["x"] = 42.0; |
| 1039 o["y"] = 42.0; | 1039 o["y"] = 42.0; |
| 1040 return o; | 1040 return o; |
| 1041 } | 1041 } |
| 1042 | 1042 |
| 1043 checkUnnamed2985(core.Map<core.String, core.double> o) { | 1043 checkUnnamed3696(core.Map<core.String, core.double> o) { |
| 1044 unittest.expect(o, unittest.hasLength(2)); | 1044 unittest.expect(o, unittest.hasLength(2)); |
| 1045 unittest.expect(o["x"], unittest.equals(42.0)); | 1045 unittest.expect(o["x"], unittest.equals(42.0)); |
| 1046 unittest.expect(o["y"], unittest.equals(42.0)); | 1046 unittest.expect(o["y"], unittest.equals(42.0)); |
| 1047 } | 1047 } |
| 1048 | 1048 |
| 1049 core.int buildCounterTrafficSplit = 0; | 1049 core.int buildCounterTrafficSplit = 0; |
| 1050 buildTrafficSplit() { | 1050 buildTrafficSplit() { |
| 1051 var o = new api.TrafficSplit(); | 1051 var o = new api.TrafficSplit(); |
| 1052 buildCounterTrafficSplit++; | 1052 buildCounterTrafficSplit++; |
| 1053 if (buildCounterTrafficSplit < 3) { | 1053 if (buildCounterTrafficSplit < 3) { |
| 1054 o.allocations = buildUnnamed2985(); | 1054 o.allocations = buildUnnamed3696(); |
| 1055 o.shardBy = "foo"; | 1055 o.shardBy = "foo"; |
| 1056 } | 1056 } |
| 1057 buildCounterTrafficSplit--; | 1057 buildCounterTrafficSplit--; |
| 1058 return o; | 1058 return o; |
| 1059 } | 1059 } |
| 1060 | 1060 |
| 1061 checkTrafficSplit(api.TrafficSplit o) { | 1061 checkTrafficSplit(api.TrafficSplit o) { |
| 1062 buildCounterTrafficSplit++; | 1062 buildCounterTrafficSplit++; |
| 1063 if (buildCounterTrafficSplit < 3) { | 1063 if (buildCounterTrafficSplit < 3) { |
| 1064 checkUnnamed2985(o.allocations); | 1064 checkUnnamed3696(o.allocations); |
| 1065 unittest.expect(o.shardBy, unittest.equals('foo')); | 1065 unittest.expect(o.shardBy, unittest.equals('foo')); |
| 1066 } | 1066 } |
| 1067 buildCounterTrafficSplit--; | 1067 buildCounterTrafficSplit--; |
| 1068 } | 1068 } |
| 1069 | 1069 |
| 1070 core.int buildCounterUrlDispatchRule = 0; | 1070 core.int buildCounterUrlDispatchRule = 0; |
| 1071 buildUrlDispatchRule() { | 1071 buildUrlDispatchRule() { |
| 1072 var o = new api.UrlDispatchRule(); | 1072 var o = new api.UrlDispatchRule(); |
| 1073 buildCounterUrlDispatchRule++; | 1073 buildCounterUrlDispatchRule++; |
| 1074 if (buildCounterUrlDispatchRule < 3) { | 1074 if (buildCounterUrlDispatchRule < 3) { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1118 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); | 1118 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); |
| 1119 checkScriptHandler(o.script); | 1119 checkScriptHandler(o.script); |
| 1120 unittest.expect(o.securityLevel, unittest.equals('foo')); | 1120 unittest.expect(o.securityLevel, unittest.equals('foo')); |
| 1121 checkStaticDirectoryHandler(o.staticDirectory); | 1121 checkStaticDirectoryHandler(o.staticDirectory); |
| 1122 checkStaticFilesHandler(o.staticFiles); | 1122 checkStaticFilesHandler(o.staticFiles); |
| 1123 unittest.expect(o.urlRegex, unittest.equals('foo')); | 1123 unittest.expect(o.urlRegex, unittest.equals('foo')); |
| 1124 } | 1124 } |
| 1125 buildCounterUrlMap--; | 1125 buildCounterUrlMap--; |
| 1126 } | 1126 } |
| 1127 | 1127 |
| 1128 buildUnnamed2986() { | 1128 buildUnnamed3697() { |
| 1129 var o = new core.Map<core.String, core.String>(); | 1129 var o = new core.Map<core.String, core.String>(); |
| 1130 o["x"] = "foo"; | 1130 o["x"] = "foo"; |
| 1131 o["y"] = "foo"; | 1131 o["y"] = "foo"; |
| 1132 return o; | 1132 return o; |
| 1133 } | 1133 } |
| 1134 | 1134 |
| 1135 checkUnnamed2986(core.Map<core.String, core.String> o) { | 1135 checkUnnamed3697(core.Map<core.String, core.String> o) { |
| 1136 unittest.expect(o, unittest.hasLength(2)); | 1136 unittest.expect(o, unittest.hasLength(2)); |
| 1137 unittest.expect(o["x"], unittest.equals('foo')); | 1137 unittest.expect(o["x"], unittest.equals('foo')); |
| 1138 unittest.expect(o["y"], unittest.equals('foo')); | 1138 unittest.expect(o["y"], unittest.equals('foo')); |
| 1139 } | 1139 } |
| 1140 | 1140 |
| 1141 buildUnnamed2987() { | 1141 buildUnnamed3698() { |
| 1142 var o = new core.Map<core.String, core.String>(); | 1142 var o = new core.Map<core.String, core.String>(); |
| 1143 o["x"] = "foo"; | 1143 o["x"] = "foo"; |
| 1144 o["y"] = "foo"; | 1144 o["y"] = "foo"; |
| 1145 return o; | 1145 return o; |
| 1146 } | 1146 } |
| 1147 | 1147 |
| 1148 checkUnnamed2987(core.Map<core.String, core.String> o) { | 1148 checkUnnamed3698(core.Map<core.String, core.String> o) { |
| 1149 unittest.expect(o, unittest.hasLength(2)); | 1149 unittest.expect(o, unittest.hasLength(2)); |
| 1150 unittest.expect(o["x"], unittest.equals('foo')); | 1150 unittest.expect(o["x"], unittest.equals('foo')); |
| 1151 unittest.expect(o["y"], unittest.equals('foo')); | 1151 unittest.expect(o["y"], unittest.equals('foo')); |
| 1152 } | 1152 } |
| 1153 | 1153 |
| 1154 buildUnnamed2988() { | 1154 buildUnnamed3699() { |
| 1155 var o = new core.List<api.ErrorHandler>(); | 1155 var o = new core.List<api.ErrorHandler>(); |
| 1156 o.add(buildErrorHandler()); | 1156 o.add(buildErrorHandler()); |
| 1157 o.add(buildErrorHandler()); | 1157 o.add(buildErrorHandler()); |
| 1158 return o; | 1158 return o; |
| 1159 } | 1159 } |
| 1160 | 1160 |
| 1161 checkUnnamed2988(core.List<api.ErrorHandler> o) { | 1161 checkUnnamed3699(core.List<api.ErrorHandler> o) { |
| 1162 unittest.expect(o, unittest.hasLength(2)); | 1162 unittest.expect(o, unittest.hasLength(2)); |
| 1163 checkErrorHandler(o[0]); | 1163 checkErrorHandler(o[0]); |
| 1164 checkErrorHandler(o[1]); | 1164 checkErrorHandler(o[1]); |
| 1165 } | 1165 } |
| 1166 | 1166 |
| 1167 buildUnnamed2989() { | 1167 buildUnnamed3700() { |
| 1168 var o = new core.List<api.UrlMap>(); | 1168 var o = new core.List<api.UrlMap>(); |
| 1169 o.add(buildUrlMap()); | 1169 o.add(buildUrlMap()); |
| 1170 o.add(buildUrlMap()); | 1170 o.add(buildUrlMap()); |
| 1171 return o; | 1171 return o; |
| 1172 } | 1172 } |
| 1173 | 1173 |
| 1174 checkUnnamed2989(core.List<api.UrlMap> o) { | 1174 checkUnnamed3700(core.List<api.UrlMap> o) { |
| 1175 unittest.expect(o, unittest.hasLength(2)); | 1175 unittest.expect(o, unittest.hasLength(2)); |
| 1176 checkUrlMap(o[0]); | 1176 checkUrlMap(o[0]); |
| 1177 checkUrlMap(o[1]); | 1177 checkUrlMap(o[1]); |
| 1178 } | 1178 } |
| 1179 | 1179 |
| 1180 buildUnnamed2990() { | 1180 buildUnnamed3701() { |
| 1181 var o = new core.List<core.String>(); | 1181 var o = new core.List<core.String>(); |
| 1182 o.add("foo"); | 1182 o.add("foo"); |
| 1183 o.add("foo"); | 1183 o.add("foo"); |
| 1184 return o; | 1184 return o; |
| 1185 } | 1185 } |
| 1186 | 1186 |
| 1187 checkUnnamed2990(core.List<core.String> o) { | 1187 checkUnnamed3701(core.List<core.String> o) { |
| 1188 unittest.expect(o, unittest.hasLength(2)); | 1188 unittest.expect(o, unittest.hasLength(2)); |
| 1189 unittest.expect(o[0], unittest.equals('foo')); | 1189 unittest.expect(o[0], unittest.equals('foo')); |
| 1190 unittest.expect(o[1], unittest.equals('foo')); | 1190 unittest.expect(o[1], unittest.equals('foo')); |
| 1191 } | 1191 } |
| 1192 | 1192 |
| 1193 buildUnnamed2991() { | 1193 buildUnnamed3702() { |
| 1194 var o = new core.List<api.Library>(); | 1194 var o = new core.List<api.Library>(); |
| 1195 o.add(buildLibrary()); | 1195 o.add(buildLibrary()); |
| 1196 o.add(buildLibrary()); | 1196 o.add(buildLibrary()); |
| 1197 return o; | 1197 return o; |
| 1198 } | 1198 } |
| 1199 | 1199 |
| 1200 checkUnnamed2991(core.List<api.Library> o) { | 1200 checkUnnamed3702(core.List<api.Library> o) { |
| 1201 unittest.expect(o, unittest.hasLength(2)); | 1201 unittest.expect(o, unittest.hasLength(2)); |
| 1202 checkLibrary(o[0]); | 1202 checkLibrary(o[0]); |
| 1203 checkLibrary(o[1]); | 1203 checkLibrary(o[1]); |
| 1204 } | 1204 } |
| 1205 | 1205 |
| 1206 core.int buildCounterVersion = 0; | 1206 core.int buildCounterVersion = 0; |
| 1207 buildVersion() { | 1207 buildVersion() { |
| 1208 var o = new api.Version(); | 1208 var o = new api.Version(); |
| 1209 buildCounterVersion++; | 1209 buildCounterVersion++; |
| 1210 if (buildCounterVersion < 3) { | 1210 if (buildCounterVersion < 3) { |
| 1211 o.apiConfig = buildApiConfigHandler(); | 1211 o.apiConfig = buildApiConfigHandler(); |
| 1212 o.automaticScaling = buildAutomaticScaling(); | 1212 o.automaticScaling = buildAutomaticScaling(); |
| 1213 o.basicScaling = buildBasicScaling(); | 1213 o.basicScaling = buildBasicScaling(); |
| 1214 o.betaSettings = buildUnnamed2986(); | 1214 o.betaSettings = buildUnnamed3697(); |
| 1215 o.creationTime = "foo"; | 1215 o.creationTime = "foo"; |
| 1216 o.defaultExpiration = "foo"; | 1216 o.defaultExpiration = "foo"; |
| 1217 o.deployer = "foo"; | 1217 o.deployer = "foo"; |
| 1218 o.deployment = buildDeployment(); | 1218 o.deployment = buildDeployment(); |
| 1219 o.env = "foo"; | 1219 o.env = "foo"; |
| 1220 o.envVariables = buildUnnamed2987(); | 1220 o.envVariables = buildUnnamed3698(); |
| 1221 o.errorHandlers = buildUnnamed2988(); | 1221 o.errorHandlers = buildUnnamed3699(); |
| 1222 o.handlers = buildUnnamed2989(); | 1222 o.handlers = buildUnnamed3700(); |
| 1223 o.healthCheck = buildHealthCheck(); | 1223 o.healthCheck = buildHealthCheck(); |
| 1224 o.id = "foo"; | 1224 o.id = "foo"; |
| 1225 o.inboundServices = buildUnnamed2990(); | 1225 o.inboundServices = buildUnnamed3701(); |
| 1226 o.instanceClass = "foo"; | 1226 o.instanceClass = "foo"; |
| 1227 o.libraries = buildUnnamed2991(); | 1227 o.libraries = buildUnnamed3702(); |
| 1228 o.manualScaling = buildManualScaling(); | 1228 o.manualScaling = buildManualScaling(); |
| 1229 o.name = "foo"; | 1229 o.name = "foo"; |
| 1230 o.network = buildNetwork(); | 1230 o.network = buildNetwork(); |
| 1231 o.nobuildFilesRegex = "foo"; | 1231 o.nobuildFilesRegex = "foo"; |
| 1232 o.resources = buildResources(); | 1232 o.resources = buildResources(); |
| 1233 o.runtime = "foo"; | 1233 o.runtime = "foo"; |
| 1234 o.servingStatus = "foo"; | 1234 o.servingStatus = "foo"; |
| 1235 o.threadsafe = true; | 1235 o.threadsafe = true; |
| 1236 o.vm = true; | 1236 o.vm = true; |
| 1237 } | 1237 } |
| 1238 buildCounterVersion--; | 1238 buildCounterVersion--; |
| 1239 return o; | 1239 return o; |
| 1240 } | 1240 } |
| 1241 | 1241 |
| 1242 checkVersion(api.Version o) { | 1242 checkVersion(api.Version o) { |
| 1243 buildCounterVersion++; | 1243 buildCounterVersion++; |
| 1244 if (buildCounterVersion < 3) { | 1244 if (buildCounterVersion < 3) { |
| 1245 checkApiConfigHandler(o.apiConfig); | 1245 checkApiConfigHandler(o.apiConfig); |
| 1246 checkAutomaticScaling(o.automaticScaling); | 1246 checkAutomaticScaling(o.automaticScaling); |
| 1247 checkBasicScaling(o.basicScaling); | 1247 checkBasicScaling(o.basicScaling); |
| 1248 checkUnnamed2986(o.betaSettings); | 1248 checkUnnamed3697(o.betaSettings); |
| 1249 unittest.expect(o.creationTime, unittest.equals('foo')); | 1249 unittest.expect(o.creationTime, unittest.equals('foo')); |
| 1250 unittest.expect(o.defaultExpiration, unittest.equals('foo')); | 1250 unittest.expect(o.defaultExpiration, unittest.equals('foo')); |
| 1251 unittest.expect(o.deployer, unittest.equals('foo')); | 1251 unittest.expect(o.deployer, unittest.equals('foo')); |
| 1252 checkDeployment(o.deployment); | 1252 checkDeployment(o.deployment); |
| 1253 unittest.expect(o.env, unittest.equals('foo')); | 1253 unittest.expect(o.env, unittest.equals('foo')); |
| 1254 checkUnnamed2987(o.envVariables); | 1254 checkUnnamed3698(o.envVariables); |
| 1255 checkUnnamed2988(o.errorHandlers); | 1255 checkUnnamed3699(o.errorHandlers); |
| 1256 checkUnnamed2989(o.handlers); | 1256 checkUnnamed3700(o.handlers); |
| 1257 checkHealthCheck(o.healthCheck); | 1257 checkHealthCheck(o.healthCheck); |
| 1258 unittest.expect(o.id, unittest.equals('foo')); | 1258 unittest.expect(o.id, unittest.equals('foo')); |
| 1259 checkUnnamed2990(o.inboundServices); | 1259 checkUnnamed3701(o.inboundServices); |
| 1260 unittest.expect(o.instanceClass, unittest.equals('foo')); | 1260 unittest.expect(o.instanceClass, unittest.equals('foo')); |
| 1261 checkUnnamed2991(o.libraries); | 1261 checkUnnamed3702(o.libraries); |
| 1262 checkManualScaling(o.manualScaling); | 1262 checkManualScaling(o.manualScaling); |
| 1263 unittest.expect(o.name, unittest.equals('foo')); | 1263 unittest.expect(o.name, unittest.equals('foo')); |
| 1264 checkNetwork(o.network); | 1264 checkNetwork(o.network); |
| 1265 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); | 1265 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); |
| 1266 checkResources(o.resources); | 1266 checkResources(o.resources); |
| 1267 unittest.expect(o.runtime, unittest.equals('foo')); | 1267 unittest.expect(o.runtime, unittest.equals('foo')); |
| 1268 unittest.expect(o.servingStatus, unittest.equals('foo')); | 1268 unittest.expect(o.servingStatus, unittest.equals('foo')); |
| 1269 unittest.expect(o.threadsafe, unittest.isTrue); | 1269 unittest.expect(o.threadsafe, unittest.isTrue); |
| 1270 unittest.expect(o.vm, unittest.isTrue); | 1270 unittest.expect(o.vm, unittest.isTrue); |
| 1271 } | 1271 } |
| (...skipping 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2398 res.list(arg_appsId, filter: arg_filter, pageSize: arg_pageSize, pageToken
: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response
) { | 2398 res.list(arg_appsId, filter: arg_filter, pageSize: arg_pageSize, pageToken
: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response
) { |
| 2399 checkListOperationsResponse(response); | 2399 checkListOperationsResponse(response); |
| 2400 }))); | 2400 }))); |
| 2401 }); | 2401 }); |
| 2402 | 2402 |
| 2403 }); | 2403 }); |
| 2404 | 2404 |
| 2405 | 2405 |
| 2406 } | 2406 } |
| 2407 | 2407 |
| OLD | NEW |