| OLD | NEW |
| 1 library googleapis_beta.appengine.v1beta5.test; | 1 library googleapis_beta.appengine.v1beta5.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 buildUnnamed2992() { | 100 buildUnnamed3662() { |
| 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 checkUnnamed2992(core.List<api.UrlDispatchRule> o) { | 107 checkUnnamed3662(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 = buildUnnamed2992(); | 123 o.dispatchRules = buildUnnamed3662(); |
| 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 checkUnnamed2992(o.dispatchRules); | 140 checkUnnamed3662(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 buildUnnamed2993() { | 250 buildUnnamed3663() { |
| 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 checkUnnamed2993(core.Map<core.String, api.FileInfo> o) { | 257 checkUnnamed3663(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 buildUnnamed2994() { | 263 buildUnnamed3664() { |
| 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 checkUnnamed2994(core.List<api.SourceReference> o) { | 270 checkUnnamed3664(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 = buildUnnamed2993(); | 282 o.files = buildUnnamed3663(); |
| 283 o.sourceReferences = buildUnnamed2994(); | 283 o.sourceReferences = buildUnnamed3664(); |
| 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 checkUnnamed2993(o.files); | 293 checkUnnamed3663(o.files); |
| 294 checkUnnamed2994(o.sourceReferences); | 294 checkUnnamed3664(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 buildUnnamed2995() { | 469 buildUnnamed3665() { |
| 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 checkUnnamed2995(core.List<api.Instance> o) { | 476 checkUnnamed3665(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 = buildUnnamed2995(); | 487 o.instances = buildUnnamed3665(); |
| 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 checkUnnamed2995(o.instances); | 497 checkUnnamed3665(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 buildUnnamed2996() { | 503 buildUnnamed3666() { |
| 504 var o = new core.List<api.Operation>(); | 504 var o = new core.List<api.Operation>(); |
| 505 o.add(buildOperation()); | 505 o.add(buildOperation()); |
| 506 o.add(buildOperation()); | 506 o.add(buildOperation()); |
| 507 return o; | 507 return o; |
| 508 } | 508 } |
| 509 | 509 |
| 510 checkUnnamed2996(core.List<api.Operation> o) { | 510 checkUnnamed3666(core.List<api.Operation> o) { |
| 511 unittest.expect(o, unittest.hasLength(2)); | 511 unittest.expect(o, unittest.hasLength(2)); |
| 512 checkOperation(o[0]); | 512 checkOperation(o[0]); |
| 513 checkOperation(o[1]); | 513 checkOperation(o[1]); |
| 514 } | 514 } |
| 515 | 515 |
| 516 core.int buildCounterListOperationsResponse = 0; | 516 core.int buildCounterListOperationsResponse = 0; |
| 517 buildListOperationsResponse() { | 517 buildListOperationsResponse() { |
| 518 var o = new api.ListOperationsResponse(); | 518 var o = new api.ListOperationsResponse(); |
| 519 buildCounterListOperationsResponse++; | 519 buildCounterListOperationsResponse++; |
| 520 if (buildCounterListOperationsResponse < 3) { | 520 if (buildCounterListOperationsResponse < 3) { |
| 521 o.nextPageToken = "foo"; | 521 o.nextPageToken = "foo"; |
| 522 o.operations = buildUnnamed2996(); | 522 o.operations = buildUnnamed3666(); |
| 523 } | 523 } |
| 524 buildCounterListOperationsResponse--; | 524 buildCounterListOperationsResponse--; |
| 525 return o; | 525 return o; |
| 526 } | 526 } |
| 527 | 527 |
| 528 checkListOperationsResponse(api.ListOperationsResponse o) { | 528 checkListOperationsResponse(api.ListOperationsResponse o) { |
| 529 buildCounterListOperationsResponse++; | 529 buildCounterListOperationsResponse++; |
| 530 if (buildCounterListOperationsResponse < 3) { | 530 if (buildCounterListOperationsResponse < 3) { |
| 531 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 531 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 532 checkUnnamed2996(o.operations); | 532 checkUnnamed3666(o.operations); |
| 533 } | 533 } |
| 534 buildCounterListOperationsResponse--; | 534 buildCounterListOperationsResponse--; |
| 535 } | 535 } |
| 536 | 536 |
| 537 buildUnnamed2997() { | 537 buildUnnamed3667() { |
| 538 var o = new core.List<api.Service>(); | 538 var o = new core.List<api.Service>(); |
| 539 o.add(buildService()); | 539 o.add(buildService()); |
| 540 o.add(buildService()); | 540 o.add(buildService()); |
| 541 return o; | 541 return o; |
| 542 } | 542 } |
| 543 | 543 |
| 544 checkUnnamed2997(core.List<api.Service> o) { | 544 checkUnnamed3667(core.List<api.Service> o) { |
| 545 unittest.expect(o, unittest.hasLength(2)); | 545 unittest.expect(o, unittest.hasLength(2)); |
| 546 checkService(o[0]); | 546 checkService(o[0]); |
| 547 checkService(o[1]); | 547 checkService(o[1]); |
| 548 } | 548 } |
| 549 | 549 |
| 550 core.int buildCounterListServicesResponse = 0; | 550 core.int buildCounterListServicesResponse = 0; |
| 551 buildListServicesResponse() { | 551 buildListServicesResponse() { |
| 552 var o = new api.ListServicesResponse(); | 552 var o = new api.ListServicesResponse(); |
| 553 buildCounterListServicesResponse++; | 553 buildCounterListServicesResponse++; |
| 554 if (buildCounterListServicesResponse < 3) { | 554 if (buildCounterListServicesResponse < 3) { |
| 555 o.nextPageToken = "foo"; | 555 o.nextPageToken = "foo"; |
| 556 o.services = buildUnnamed2997(); | 556 o.services = buildUnnamed3667(); |
| 557 } | 557 } |
| 558 buildCounterListServicesResponse--; | 558 buildCounterListServicesResponse--; |
| 559 return o; | 559 return o; |
| 560 } | 560 } |
| 561 | 561 |
| 562 checkListServicesResponse(api.ListServicesResponse o) { | 562 checkListServicesResponse(api.ListServicesResponse o) { |
| 563 buildCounterListServicesResponse++; | 563 buildCounterListServicesResponse++; |
| 564 if (buildCounterListServicesResponse < 3) { | 564 if (buildCounterListServicesResponse < 3) { |
| 565 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 565 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 566 checkUnnamed2997(o.services); | 566 checkUnnamed3667(o.services); |
| 567 } | 567 } |
| 568 buildCounterListServicesResponse--; | 568 buildCounterListServicesResponse--; |
| 569 } | 569 } |
| 570 | 570 |
| 571 buildUnnamed2998() { | 571 buildUnnamed3668() { |
| 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 checkUnnamed2998(core.List<api.Version> o) { | 578 checkUnnamed3668(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 = buildUnnamed2998(); | 590 o.versions = buildUnnamed3668(); |
| 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 checkUnnamed2998(o.versions); | 600 checkUnnamed3668(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; |
| 611 } | 611 } |
| 612 buildCounterManualScaling--; | 612 buildCounterManualScaling--; |
| 613 return o; | 613 return o; |
| 614 } | 614 } |
| 615 | 615 |
| 616 checkManualScaling(api.ManualScaling o) { | 616 checkManualScaling(api.ManualScaling o) { |
| 617 buildCounterManualScaling++; | 617 buildCounterManualScaling++; |
| 618 if (buildCounterManualScaling < 3) { | 618 if (buildCounterManualScaling < 3) { |
| 619 unittest.expect(o.instances, unittest.equals(42)); | 619 unittest.expect(o.instances, unittest.equals(42)); |
| 620 } | 620 } |
| 621 buildCounterManualScaling--; | 621 buildCounterManualScaling--; |
| 622 } | 622 } |
| 623 | 623 |
| 624 buildUnnamed2999() { | 624 buildUnnamed3669() { |
| 625 var o = new core.List<core.String>(); | 625 var o = new core.List<core.String>(); |
| 626 o.add("foo"); | 626 o.add("foo"); |
| 627 o.add("foo"); | 627 o.add("foo"); |
| 628 return o; | 628 return o; |
| 629 } | 629 } |
| 630 | 630 |
| 631 checkUnnamed2999(core.List<core.String> o) { | 631 checkUnnamed3669(core.List<core.String> o) { |
| 632 unittest.expect(o, unittest.hasLength(2)); | 632 unittest.expect(o, unittest.hasLength(2)); |
| 633 unittest.expect(o[0], unittest.equals('foo')); | 633 unittest.expect(o[0], unittest.equals('foo')); |
| 634 unittest.expect(o[1], unittest.equals('foo')); | 634 unittest.expect(o[1], unittest.equals('foo')); |
| 635 } | 635 } |
| 636 | 636 |
| 637 core.int buildCounterNetwork = 0; | 637 core.int buildCounterNetwork = 0; |
| 638 buildNetwork() { | 638 buildNetwork() { |
| 639 var o = new api.Network(); | 639 var o = new api.Network(); |
| 640 buildCounterNetwork++; | 640 buildCounterNetwork++; |
| 641 if (buildCounterNetwork < 3) { | 641 if (buildCounterNetwork < 3) { |
| 642 o.forwardedPorts = buildUnnamed2999(); | 642 o.forwardedPorts = buildUnnamed3669(); |
| 643 o.instanceTag = "foo"; | 643 o.instanceTag = "foo"; |
| 644 o.name = "foo"; | 644 o.name = "foo"; |
| 645 } | 645 } |
| 646 buildCounterNetwork--; | 646 buildCounterNetwork--; |
| 647 return o; | 647 return o; |
| 648 } | 648 } |
| 649 | 649 |
| 650 checkNetwork(api.Network o) { | 650 checkNetwork(api.Network o) { |
| 651 buildCounterNetwork++; | 651 buildCounterNetwork++; |
| 652 if (buildCounterNetwork < 3) { | 652 if (buildCounterNetwork < 3) { |
| 653 checkUnnamed2999(o.forwardedPorts); | 653 checkUnnamed3669(o.forwardedPorts); |
| 654 unittest.expect(o.instanceTag, unittest.equals('foo')); | 654 unittest.expect(o.instanceTag, unittest.equals('foo')); |
| 655 unittest.expect(o.name, unittest.equals('foo')); | 655 unittest.expect(o.name, unittest.equals('foo')); |
| 656 } | 656 } |
| 657 buildCounterNetwork--; | 657 buildCounterNetwork--; |
| 658 } | 658 } |
| 659 | 659 |
| 660 core.int buildCounterNetworkUtilization = 0; | 660 core.int buildCounterNetworkUtilization = 0; |
| 661 buildNetworkUtilization() { | 661 buildNetworkUtilization() { |
| 662 var o = new api.NetworkUtilization(); | 662 var o = new api.NetworkUtilization(); |
| 663 buildCounterNetworkUtilization++; | 663 buildCounterNetworkUtilization++; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 675 buildCounterNetworkUtilization++; | 675 buildCounterNetworkUtilization++; |
| 676 if (buildCounterNetworkUtilization < 3) { | 676 if (buildCounterNetworkUtilization < 3) { |
| 677 unittest.expect(o.targetReceivedBytesPerSec, unittest.equals(42)); | 677 unittest.expect(o.targetReceivedBytesPerSec, unittest.equals(42)); |
| 678 unittest.expect(o.targetReceivedPacketsPerSec, unittest.equals(42)); | 678 unittest.expect(o.targetReceivedPacketsPerSec, unittest.equals(42)); |
| 679 unittest.expect(o.targetSentBytesPerSec, unittest.equals(42)); | 679 unittest.expect(o.targetSentBytesPerSec, unittest.equals(42)); |
| 680 unittest.expect(o.targetSentPacketsPerSec, unittest.equals(42)); | 680 unittest.expect(o.targetSentPacketsPerSec, unittest.equals(42)); |
| 681 } | 681 } |
| 682 buildCounterNetworkUtilization--; | 682 buildCounterNetworkUtilization--; |
| 683 } | 683 } |
| 684 | 684 |
| 685 buildUnnamed3000() { | 685 buildUnnamed3670() { |
| 686 var o = new core.Map<core.String, core.Object>(); | 686 var o = new core.Map<core.String, core.Object>(); |
| 687 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 687 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 688 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 688 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 689 return o; | 689 return o; |
| 690 } | 690 } |
| 691 | 691 |
| 692 checkUnnamed3000(core.Map<core.String, core.Object> o) { | 692 checkUnnamed3670(core.Map<core.String, core.Object> o) { |
| 693 unittest.expect(o, unittest.hasLength(2)); | 693 unittest.expect(o, unittest.hasLength(2)); |
| 694 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')); | 694 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')); |
| 695 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')); | 695 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')); |
| 696 } | 696 } |
| 697 | 697 |
| 698 buildUnnamed3001() { | 698 buildUnnamed3671() { |
| 699 var o = new core.Map<core.String, core.Object>(); | 699 var o = new core.Map<core.String, core.Object>(); |
| 700 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 700 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 701 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 701 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 702 return o; | 702 return o; |
| 703 } | 703 } |
| 704 | 704 |
| 705 checkUnnamed3001(core.Map<core.String, core.Object> o) { | 705 checkUnnamed3671(core.Map<core.String, core.Object> o) { |
| 706 unittest.expect(o, unittest.hasLength(2)); | 706 unittest.expect(o, unittest.hasLength(2)); |
| 707 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')); | 707 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')); |
| 708 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')); | 708 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')); |
| 709 } | 709 } |
| 710 | 710 |
| 711 core.int buildCounterOperation = 0; | 711 core.int buildCounterOperation = 0; |
| 712 buildOperation() { | 712 buildOperation() { |
| 713 var o = new api.Operation(); | 713 var o = new api.Operation(); |
| 714 buildCounterOperation++; | 714 buildCounterOperation++; |
| 715 if (buildCounterOperation < 3) { | 715 if (buildCounterOperation < 3) { |
| 716 o.done = true; | 716 o.done = true; |
| 717 o.error = buildStatus(); | 717 o.error = buildStatus(); |
| 718 o.metadata = buildUnnamed3000(); | 718 o.metadata = buildUnnamed3670(); |
| 719 o.name = "foo"; | 719 o.name = "foo"; |
| 720 o.response = buildUnnamed3001(); | 720 o.response = buildUnnamed3671(); |
| 721 } | 721 } |
| 722 buildCounterOperation--; | 722 buildCounterOperation--; |
| 723 return o; | 723 return o; |
| 724 } | 724 } |
| 725 | 725 |
| 726 checkOperation(api.Operation o) { | 726 checkOperation(api.Operation o) { |
| 727 buildCounterOperation++; | 727 buildCounterOperation++; |
| 728 if (buildCounterOperation < 3) { | 728 if (buildCounterOperation < 3) { |
| 729 unittest.expect(o.done, unittest.isTrue); | 729 unittest.expect(o.done, unittest.isTrue); |
| 730 checkStatus(o.error); | 730 checkStatus(o.error); |
| 731 checkUnnamed3000(o.metadata); | 731 checkUnnamed3670(o.metadata); |
| 732 unittest.expect(o.name, unittest.equals('foo')); | 732 unittest.expect(o.name, unittest.equals('foo')); |
| 733 checkUnnamed3001(o.response); | 733 checkUnnamed3671(o.response); |
| 734 } | 734 } |
| 735 buildCounterOperation--; | 735 buildCounterOperation--; |
| 736 } | 736 } |
| 737 | 737 |
| 738 core.int buildCounterOperationMetadata = 0; | 738 core.int buildCounterOperationMetadata = 0; |
| 739 buildOperationMetadata() { | 739 buildOperationMetadata() { |
| 740 var o = new api.OperationMetadata(); | 740 var o = new api.OperationMetadata(); |
| 741 buildCounterOperationMetadata++; | 741 buildCounterOperationMetadata++; |
| 742 if (buildCounterOperationMetadata < 3) { | 742 if (buildCounterOperationMetadata < 3) { |
| 743 o.endTime = "foo"; | 743 o.endTime = "foo"; |
| (...skipping 147 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 buildUnnamed3002() { | 901 buildUnnamed3672() { |
| 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 checkUnnamed3002(core.Map<core.String, core.String> o) { | 908 checkUnnamed3672(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 buildCounterStaticFilesHandler = 0; | 914 core.int buildCounterStaticFilesHandler = 0; |
| 915 buildStaticFilesHandler() { | 915 buildStaticFilesHandler() { |
| 916 var o = new api.StaticFilesHandler(); | 916 var o = new api.StaticFilesHandler(); |
| 917 buildCounterStaticFilesHandler++; | 917 buildCounterStaticFilesHandler++; |
| 918 if (buildCounterStaticFilesHandler < 3) { | 918 if (buildCounterStaticFilesHandler < 3) { |
| 919 o.applicationReadable = true; | 919 o.applicationReadable = true; |
| 920 o.expiration = "foo"; | 920 o.expiration = "foo"; |
| 921 o.httpHeaders = buildUnnamed3002(); | 921 o.httpHeaders = buildUnnamed3672(); |
| 922 o.mimeType = "foo"; | 922 o.mimeType = "foo"; |
| 923 o.path = "foo"; | 923 o.path = "foo"; |
| 924 o.requireMatchingFile = true; | 924 o.requireMatchingFile = true; |
| 925 o.uploadPathRegex = "foo"; | 925 o.uploadPathRegex = "foo"; |
| 926 } | 926 } |
| 927 buildCounterStaticFilesHandler--; | 927 buildCounterStaticFilesHandler--; |
| 928 return o; | 928 return o; |
| 929 } | 929 } |
| 930 | 930 |
| 931 checkStaticFilesHandler(api.StaticFilesHandler o) { | 931 checkStaticFilesHandler(api.StaticFilesHandler o) { |
| 932 buildCounterStaticFilesHandler++; | 932 buildCounterStaticFilesHandler++; |
| 933 if (buildCounterStaticFilesHandler < 3) { | 933 if (buildCounterStaticFilesHandler < 3) { |
| 934 unittest.expect(o.applicationReadable, unittest.isTrue); | 934 unittest.expect(o.applicationReadable, unittest.isTrue); |
| 935 unittest.expect(o.expiration, unittest.equals('foo')); | 935 unittest.expect(o.expiration, unittest.equals('foo')); |
| 936 checkUnnamed3002(o.httpHeaders); | 936 checkUnnamed3672(o.httpHeaders); |
| 937 unittest.expect(o.mimeType, unittest.equals('foo')); | 937 unittest.expect(o.mimeType, unittest.equals('foo')); |
| 938 unittest.expect(o.path, unittest.equals('foo')); | 938 unittest.expect(o.path, unittest.equals('foo')); |
| 939 unittest.expect(o.requireMatchingFile, unittest.isTrue); | 939 unittest.expect(o.requireMatchingFile, unittest.isTrue); |
| 940 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); | 940 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); |
| 941 } | 941 } |
| 942 buildCounterStaticFilesHandler--; | 942 buildCounterStaticFilesHandler--; |
| 943 } | 943 } |
| 944 | 944 |
| 945 buildUnnamed3003() { | 945 buildUnnamed3673() { |
| 946 var o = new core.Map<core.String, core.Object>(); | 946 var o = new core.Map<core.String, core.Object>(); |
| 947 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 947 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 948 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 948 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 949 return o; | 949 return o; |
| 950 } | 950 } |
| 951 | 951 |
| 952 checkUnnamed3003(core.Map<core.String, core.Object> o) { | 952 checkUnnamed3673(core.Map<core.String, core.Object> o) { |
| 953 unittest.expect(o, unittest.hasLength(2)); | 953 unittest.expect(o, unittest.hasLength(2)); |
| 954 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')); | 954 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')); |
| 955 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')); | 955 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')); |
| 956 } | 956 } |
| 957 | 957 |
| 958 buildUnnamed3004() { | 958 buildUnnamed3674() { |
| 959 var o = new core.List<core.Map<core.String, core.Object>>(); | 959 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 960 o.add(buildUnnamed3003()); | 960 o.add(buildUnnamed3673()); |
| 961 o.add(buildUnnamed3003()); | 961 o.add(buildUnnamed3673()); |
| 962 return o; | 962 return o; |
| 963 } | 963 } |
| 964 | 964 |
| 965 checkUnnamed3004(core.List<core.Map<core.String, core.Object>> o) { | 965 checkUnnamed3674(core.List<core.Map<core.String, core.Object>> o) { |
| 966 unittest.expect(o, unittest.hasLength(2)); | 966 unittest.expect(o, unittest.hasLength(2)); |
| 967 checkUnnamed3003(o[0]); | 967 checkUnnamed3673(o[0]); |
| 968 checkUnnamed3003(o[1]); | 968 checkUnnamed3673(o[1]); |
| 969 } | 969 } |
| 970 | 970 |
| 971 core.int buildCounterStatus = 0; | 971 core.int buildCounterStatus = 0; |
| 972 buildStatus() { | 972 buildStatus() { |
| 973 var o = new api.Status(); | 973 var o = new api.Status(); |
| 974 buildCounterStatus++; | 974 buildCounterStatus++; |
| 975 if (buildCounterStatus < 3) { | 975 if (buildCounterStatus < 3) { |
| 976 o.code = 42; | 976 o.code = 42; |
| 977 o.details = buildUnnamed3004(); | 977 o.details = buildUnnamed3674(); |
| 978 o.message = "foo"; | 978 o.message = "foo"; |
| 979 } | 979 } |
| 980 buildCounterStatus--; | 980 buildCounterStatus--; |
| 981 return o; | 981 return o; |
| 982 } | 982 } |
| 983 | 983 |
| 984 checkStatus(api.Status o) { | 984 checkStatus(api.Status o) { |
| 985 buildCounterStatus++; | 985 buildCounterStatus++; |
| 986 if (buildCounterStatus < 3) { | 986 if (buildCounterStatus < 3) { |
| 987 unittest.expect(o.code, unittest.equals(42)); | 987 unittest.expect(o.code, unittest.equals(42)); |
| 988 checkUnnamed3004(o.details); | 988 checkUnnamed3674(o.details); |
| 989 unittest.expect(o.message, unittest.equals('foo')); | 989 unittest.expect(o.message, unittest.equals('foo')); |
| 990 } | 990 } |
| 991 buildCounterStatus--; | 991 buildCounterStatus--; |
| 992 } | 992 } |
| 993 | 993 |
| 994 buildUnnamed3005() { | 994 buildUnnamed3675() { |
| 995 var o = new core.Map<core.String, core.double>(); | 995 var o = new core.Map<core.String, core.double>(); |
| 996 o["x"] = 42.0; | 996 o["x"] = 42.0; |
| 997 o["y"] = 42.0; | 997 o["y"] = 42.0; |
| 998 return o; | 998 return o; |
| 999 } | 999 } |
| 1000 | 1000 |
| 1001 checkUnnamed3005(core.Map<core.String, core.double> o) { | 1001 checkUnnamed3675(core.Map<core.String, core.double> o) { |
| 1002 unittest.expect(o, unittest.hasLength(2)); | 1002 unittest.expect(o, unittest.hasLength(2)); |
| 1003 unittest.expect(o["x"], unittest.equals(42.0)); | 1003 unittest.expect(o["x"], unittest.equals(42.0)); |
| 1004 unittest.expect(o["y"], unittest.equals(42.0)); | 1004 unittest.expect(o["y"], unittest.equals(42.0)); |
| 1005 } | 1005 } |
| 1006 | 1006 |
| 1007 core.int buildCounterTrafficSplit = 0; | 1007 core.int buildCounterTrafficSplit = 0; |
| 1008 buildTrafficSplit() { | 1008 buildTrafficSplit() { |
| 1009 var o = new api.TrafficSplit(); | 1009 var o = new api.TrafficSplit(); |
| 1010 buildCounterTrafficSplit++; | 1010 buildCounterTrafficSplit++; |
| 1011 if (buildCounterTrafficSplit < 3) { | 1011 if (buildCounterTrafficSplit < 3) { |
| 1012 o.allocations = buildUnnamed3005(); | 1012 o.allocations = buildUnnamed3675(); |
| 1013 o.shardBy = "foo"; | 1013 o.shardBy = "foo"; |
| 1014 } | 1014 } |
| 1015 buildCounterTrafficSplit--; | 1015 buildCounterTrafficSplit--; |
| 1016 return o; | 1016 return o; |
| 1017 } | 1017 } |
| 1018 | 1018 |
| 1019 checkTrafficSplit(api.TrafficSplit o) { | 1019 checkTrafficSplit(api.TrafficSplit o) { |
| 1020 buildCounterTrafficSplit++; | 1020 buildCounterTrafficSplit++; |
| 1021 if (buildCounterTrafficSplit < 3) { | 1021 if (buildCounterTrafficSplit < 3) { |
| 1022 checkUnnamed3005(o.allocations); | 1022 checkUnnamed3675(o.allocations); |
| 1023 unittest.expect(o.shardBy, unittest.equals('foo')); | 1023 unittest.expect(o.shardBy, unittest.equals('foo')); |
| 1024 } | 1024 } |
| 1025 buildCounterTrafficSplit--; | 1025 buildCounterTrafficSplit--; |
| 1026 } | 1026 } |
| 1027 | 1027 |
| 1028 core.int buildCounterUrlDispatchRule = 0; | 1028 core.int buildCounterUrlDispatchRule = 0; |
| 1029 buildUrlDispatchRule() { | 1029 buildUrlDispatchRule() { |
| 1030 var o = new api.UrlDispatchRule(); | 1030 var o = new api.UrlDispatchRule(); |
| 1031 buildCounterUrlDispatchRule++; | 1031 buildCounterUrlDispatchRule++; |
| 1032 if (buildCounterUrlDispatchRule < 3) { | 1032 if (buildCounterUrlDispatchRule < 3) { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1074 unittest.expect(o.login, unittest.equals('foo')); | 1074 unittest.expect(o.login, unittest.equals('foo')); |
| 1075 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); | 1075 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); |
| 1076 checkScriptHandler(o.script); | 1076 checkScriptHandler(o.script); |
| 1077 unittest.expect(o.securityLevel, unittest.equals('foo')); | 1077 unittest.expect(o.securityLevel, unittest.equals('foo')); |
| 1078 checkStaticFilesHandler(o.staticFiles); | 1078 checkStaticFilesHandler(o.staticFiles); |
| 1079 unittest.expect(o.urlRegex, unittest.equals('foo')); | 1079 unittest.expect(o.urlRegex, unittest.equals('foo')); |
| 1080 } | 1080 } |
| 1081 buildCounterUrlMap--; | 1081 buildCounterUrlMap--; |
| 1082 } | 1082 } |
| 1083 | 1083 |
| 1084 buildUnnamed3006() { | 1084 buildUnnamed3676() { |
| 1085 var o = new core.Map<core.String, core.String>(); | 1085 var o = new core.Map<core.String, core.String>(); |
| 1086 o["x"] = "foo"; | 1086 o["x"] = "foo"; |
| 1087 o["y"] = "foo"; | 1087 o["y"] = "foo"; |
| 1088 return o; | 1088 return o; |
| 1089 } | 1089 } |
| 1090 | 1090 |
| 1091 checkUnnamed3006(core.Map<core.String, core.String> o) { | 1091 checkUnnamed3676(core.Map<core.String, core.String> o) { |
| 1092 unittest.expect(o, unittest.hasLength(2)); | 1092 unittest.expect(o, unittest.hasLength(2)); |
| 1093 unittest.expect(o["x"], unittest.equals('foo')); | 1093 unittest.expect(o["x"], unittest.equals('foo')); |
| 1094 unittest.expect(o["y"], unittest.equals('foo')); | 1094 unittest.expect(o["y"], unittest.equals('foo')); |
| 1095 } | 1095 } |
| 1096 | 1096 |
| 1097 buildUnnamed3007() { | 1097 buildUnnamed3677() { |
| 1098 var o = new core.Map<core.String, core.String>(); | 1098 var o = new core.Map<core.String, core.String>(); |
| 1099 o["x"] = "foo"; | 1099 o["x"] = "foo"; |
| 1100 o["y"] = "foo"; | 1100 o["y"] = "foo"; |
| 1101 return o; | 1101 return o; |
| 1102 } | 1102 } |
| 1103 | 1103 |
| 1104 checkUnnamed3007(core.Map<core.String, core.String> o) { | 1104 checkUnnamed3677(core.Map<core.String, core.String> o) { |
| 1105 unittest.expect(o, unittest.hasLength(2)); | 1105 unittest.expect(o, unittest.hasLength(2)); |
| 1106 unittest.expect(o["x"], unittest.equals('foo')); | 1106 unittest.expect(o["x"], unittest.equals('foo')); |
| 1107 unittest.expect(o["y"], unittest.equals('foo')); | 1107 unittest.expect(o["y"], unittest.equals('foo')); |
| 1108 } | 1108 } |
| 1109 | 1109 |
| 1110 buildUnnamed3008() { | 1110 buildUnnamed3678() { |
| 1111 var o = new core.List<api.ErrorHandler>(); | 1111 var o = new core.List<api.ErrorHandler>(); |
| 1112 o.add(buildErrorHandler()); | 1112 o.add(buildErrorHandler()); |
| 1113 o.add(buildErrorHandler()); | 1113 o.add(buildErrorHandler()); |
| 1114 return o; | 1114 return o; |
| 1115 } | 1115 } |
| 1116 | 1116 |
| 1117 checkUnnamed3008(core.List<api.ErrorHandler> o) { | 1117 checkUnnamed3678(core.List<api.ErrorHandler> o) { |
| 1118 unittest.expect(o, unittest.hasLength(2)); | 1118 unittest.expect(o, unittest.hasLength(2)); |
| 1119 checkErrorHandler(o[0]); | 1119 checkErrorHandler(o[0]); |
| 1120 checkErrorHandler(o[1]); | 1120 checkErrorHandler(o[1]); |
| 1121 } | 1121 } |
| 1122 | 1122 |
| 1123 buildUnnamed3009() { | 1123 buildUnnamed3679() { |
| 1124 var o = new core.List<api.UrlMap>(); | 1124 var o = new core.List<api.UrlMap>(); |
| 1125 o.add(buildUrlMap()); | 1125 o.add(buildUrlMap()); |
| 1126 o.add(buildUrlMap()); | 1126 o.add(buildUrlMap()); |
| 1127 return o; | 1127 return o; |
| 1128 } | 1128 } |
| 1129 | 1129 |
| 1130 checkUnnamed3009(core.List<api.UrlMap> o) { | 1130 checkUnnamed3679(core.List<api.UrlMap> o) { |
| 1131 unittest.expect(o, unittest.hasLength(2)); | 1131 unittest.expect(o, unittest.hasLength(2)); |
| 1132 checkUrlMap(o[0]); | 1132 checkUrlMap(o[0]); |
| 1133 checkUrlMap(o[1]); | 1133 checkUrlMap(o[1]); |
| 1134 } | 1134 } |
| 1135 | 1135 |
| 1136 buildUnnamed3010() { | 1136 buildUnnamed3680() { |
| 1137 var o = new core.List<core.String>(); | 1137 var o = new core.List<core.String>(); |
| 1138 o.add("foo"); | 1138 o.add("foo"); |
| 1139 o.add("foo"); | 1139 o.add("foo"); |
| 1140 return o; | 1140 return o; |
| 1141 } | 1141 } |
| 1142 | 1142 |
| 1143 checkUnnamed3010(core.List<core.String> o) { | 1143 checkUnnamed3680(core.List<core.String> o) { |
| 1144 unittest.expect(o, unittest.hasLength(2)); | 1144 unittest.expect(o, unittest.hasLength(2)); |
| 1145 unittest.expect(o[0], unittest.equals('foo')); | 1145 unittest.expect(o[0], unittest.equals('foo')); |
| 1146 unittest.expect(o[1], unittest.equals('foo')); | 1146 unittest.expect(o[1], unittest.equals('foo')); |
| 1147 } | 1147 } |
| 1148 | 1148 |
| 1149 buildUnnamed3011() { | 1149 buildUnnamed3681() { |
| 1150 var o = new core.List<api.Library>(); | 1150 var o = new core.List<api.Library>(); |
| 1151 o.add(buildLibrary()); | 1151 o.add(buildLibrary()); |
| 1152 o.add(buildLibrary()); | 1152 o.add(buildLibrary()); |
| 1153 return o; | 1153 return o; |
| 1154 } | 1154 } |
| 1155 | 1155 |
| 1156 checkUnnamed3011(core.List<api.Library> o) { | 1156 checkUnnamed3681(core.List<api.Library> o) { |
| 1157 unittest.expect(o, unittest.hasLength(2)); | 1157 unittest.expect(o, unittest.hasLength(2)); |
| 1158 checkLibrary(o[0]); | 1158 checkLibrary(o[0]); |
| 1159 checkLibrary(o[1]); | 1159 checkLibrary(o[1]); |
| 1160 } | 1160 } |
| 1161 | 1161 |
| 1162 core.int buildCounterVersion = 0; | 1162 core.int buildCounterVersion = 0; |
| 1163 buildVersion() { | 1163 buildVersion() { |
| 1164 var o = new api.Version(); | 1164 var o = new api.Version(); |
| 1165 buildCounterVersion++; | 1165 buildCounterVersion++; |
| 1166 if (buildCounterVersion < 3) { | 1166 if (buildCounterVersion < 3) { |
| 1167 o.apiConfig = buildApiConfigHandler(); | 1167 o.apiConfig = buildApiConfigHandler(); |
| 1168 o.automaticScaling = buildAutomaticScaling(); | 1168 o.automaticScaling = buildAutomaticScaling(); |
| 1169 o.basicScaling = buildBasicScaling(); | 1169 o.basicScaling = buildBasicScaling(); |
| 1170 o.betaSettings = buildUnnamed3006(); | 1170 o.betaSettings = buildUnnamed3676(); |
| 1171 o.creationTime = "foo"; | 1171 o.creationTime = "foo"; |
| 1172 o.defaultExpiration = "foo"; | 1172 o.defaultExpiration = "foo"; |
| 1173 o.deployer = "foo"; | 1173 o.deployer = "foo"; |
| 1174 o.deployment = buildDeployment(); | 1174 o.deployment = buildDeployment(); |
| 1175 o.diskUsageBytes = "foo"; | 1175 o.diskUsageBytes = "foo"; |
| 1176 o.env = "foo"; | 1176 o.env = "foo"; |
| 1177 o.envVariables = buildUnnamed3007(); | 1177 o.envVariables = buildUnnamed3677(); |
| 1178 o.errorHandlers = buildUnnamed3008(); | 1178 o.errorHandlers = buildUnnamed3678(); |
| 1179 o.handlers = buildUnnamed3009(); | 1179 o.handlers = buildUnnamed3679(); |
| 1180 o.healthCheck = buildHealthCheck(); | 1180 o.healthCheck = buildHealthCheck(); |
| 1181 o.id = "foo"; | 1181 o.id = "foo"; |
| 1182 o.inboundServices = buildUnnamed3010(); | 1182 o.inboundServices = buildUnnamed3680(); |
| 1183 o.instanceClass = "foo"; | 1183 o.instanceClass = "foo"; |
| 1184 o.libraries = buildUnnamed3011(); | 1184 o.libraries = buildUnnamed3681(); |
| 1185 o.manualScaling = buildManualScaling(); | 1185 o.manualScaling = buildManualScaling(); |
| 1186 o.name = "foo"; | 1186 o.name = "foo"; |
| 1187 o.network = buildNetwork(); | 1187 o.network = buildNetwork(); |
| 1188 o.nobuildFilesRegex = "foo"; | 1188 o.nobuildFilesRegex = "foo"; |
| 1189 o.resources = buildResources(); | 1189 o.resources = buildResources(); |
| 1190 o.runtime = "foo"; | 1190 o.runtime = "foo"; |
| 1191 o.servingStatus = "foo"; | 1191 o.servingStatus = "foo"; |
| 1192 o.threadsafe = true; | 1192 o.threadsafe = true; |
| 1193 o.vm = true; | 1193 o.vm = true; |
| 1194 } | 1194 } |
| 1195 buildCounterVersion--; | 1195 buildCounterVersion--; |
| 1196 return o; | 1196 return o; |
| 1197 } | 1197 } |
| 1198 | 1198 |
| 1199 checkVersion(api.Version o) { | 1199 checkVersion(api.Version o) { |
| 1200 buildCounterVersion++; | 1200 buildCounterVersion++; |
| 1201 if (buildCounterVersion < 3) { | 1201 if (buildCounterVersion < 3) { |
| 1202 checkApiConfigHandler(o.apiConfig); | 1202 checkApiConfigHandler(o.apiConfig); |
| 1203 checkAutomaticScaling(o.automaticScaling); | 1203 checkAutomaticScaling(o.automaticScaling); |
| 1204 checkBasicScaling(o.basicScaling); | 1204 checkBasicScaling(o.basicScaling); |
| 1205 checkUnnamed3006(o.betaSettings); | 1205 checkUnnamed3676(o.betaSettings); |
| 1206 unittest.expect(o.creationTime, unittest.equals('foo')); | 1206 unittest.expect(o.creationTime, unittest.equals('foo')); |
| 1207 unittest.expect(o.defaultExpiration, unittest.equals('foo')); | 1207 unittest.expect(o.defaultExpiration, unittest.equals('foo')); |
| 1208 unittest.expect(o.deployer, unittest.equals('foo')); | 1208 unittest.expect(o.deployer, unittest.equals('foo')); |
| 1209 checkDeployment(o.deployment); | 1209 checkDeployment(o.deployment); |
| 1210 unittest.expect(o.diskUsageBytes, unittest.equals('foo')); | 1210 unittest.expect(o.diskUsageBytes, unittest.equals('foo')); |
| 1211 unittest.expect(o.env, unittest.equals('foo')); | 1211 unittest.expect(o.env, unittest.equals('foo')); |
| 1212 checkUnnamed3007(o.envVariables); | 1212 checkUnnamed3677(o.envVariables); |
| 1213 checkUnnamed3008(o.errorHandlers); | 1213 checkUnnamed3678(o.errorHandlers); |
| 1214 checkUnnamed3009(o.handlers); | 1214 checkUnnamed3679(o.handlers); |
| 1215 checkHealthCheck(o.healthCheck); | 1215 checkHealthCheck(o.healthCheck); |
| 1216 unittest.expect(o.id, unittest.equals('foo')); | 1216 unittest.expect(o.id, unittest.equals('foo')); |
| 1217 checkUnnamed3010(o.inboundServices); | 1217 checkUnnamed3680(o.inboundServices); |
| 1218 unittest.expect(o.instanceClass, unittest.equals('foo')); | 1218 unittest.expect(o.instanceClass, unittest.equals('foo')); |
| 1219 checkUnnamed3011(o.libraries); | 1219 checkUnnamed3681(o.libraries); |
| 1220 checkManualScaling(o.manualScaling); | 1220 checkManualScaling(o.manualScaling); |
| 1221 unittest.expect(o.name, unittest.equals('foo')); | 1221 unittest.expect(o.name, unittest.equals('foo')); |
| 1222 checkNetwork(o.network); | 1222 checkNetwork(o.network); |
| 1223 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); | 1223 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); |
| 1224 checkResources(o.resources); | 1224 checkResources(o.resources); |
| 1225 unittest.expect(o.runtime, unittest.equals('foo')); | 1225 unittest.expect(o.runtime, unittest.equals('foo')); |
| 1226 unittest.expect(o.servingStatus, unittest.equals('foo')); | 1226 unittest.expect(o.servingStatus, unittest.equals('foo')); |
| 1227 unittest.expect(o.threadsafe, unittest.isTrue); | 1227 unittest.expect(o.threadsafe, unittest.isTrue); |
| 1228 unittest.expect(o.vm, unittest.isTrue); | 1228 unittest.expect(o.vm, unittest.isTrue); |
| 1229 } | 1229 } |
| (...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2347 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageSize: arg_pageSiz
e, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListInstancesRespon
se response) { | 2347 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageSize: arg_pageSiz
e, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListInstancesRespon
se response) { |
| 2348 checkListInstancesResponse(response); | 2348 checkListInstancesResponse(response); |
| 2349 }))); | 2349 }))); |
| 2350 }); | 2350 }); |
| 2351 | 2351 |
| 2352 }); | 2352 }); |
| 2353 | 2353 |
| 2354 | 2354 |
| 2355 } | 2355 } |
| 2356 | 2356 |
| OLD | NEW |