OLD | NEW |
1 library googleapis_beta.dataflow.v1b3.test; | 1 library googleapis_beta.dataflow.v1b3.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:test/test.dart' as unittest; |
11 | 11 |
12 import 'package:googleapis_beta/dataflow/v1b3.dart' as api; | 12 import 'package:googleapis_beta/dataflow/v1b3.dart' as api; |
13 | 13 |
14 class HttpServerMock extends http.BaseClient { | 14 class HttpServerMock extends http.BaseClient { |
15 core.Function _callback; | 15 core.Function _callback; |
16 core.bool _expectJson; | 16 core.bool _expectJson; |
17 | 17 |
18 void register(core.Function callback, core.bool expectJson) { | 18 void register(core.Function callback, core.bool expectJson) { |
19 _callback = callback; | 19 _callback = callback; |
20 _expectJson = expectJson; | 20 _expectJson = expectJson; |
(...skipping 18 matching lines...) Expand all Loading... |
39 } else { | 39 } else { |
40 return stream.toBytes().then((data) { | 40 return stream.toBytes().then((data) { |
41 return _callback(request, data); | 41 return _callback(request, data); |
42 }); | 42 }); |
43 } | 43 } |
44 } | 44 } |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map<core.String, core.String> headers, core.String bod
y) { |
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
52 } | 52 } |
53 | 53 |
54 core.int buildCounterApproximateProgress = 0; | 54 core.int buildCounterApproximateProgress = 0; |
55 buildApproximateProgress() { | 55 buildApproximateProgress() { |
56 var o = new api.ApproximateProgress(); | 56 var o = new api.ApproximateProgress(); |
57 buildCounterApproximateProgress++; | 57 buildCounterApproximateProgress++; |
58 if (buildCounterApproximateProgress < 3) { | 58 if (buildCounterApproximateProgress < 3) { |
59 o.percentComplete = 42.0; | 59 o.percentComplete = 42.0; |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 checkComponentTransform(api.ComponentTransform o) { | 230 checkComponentTransform(api.ComponentTransform o) { |
231 buildCounterComponentTransform++; | 231 buildCounterComponentTransform++; |
232 if (buildCounterComponentTransform < 3) { | 232 if (buildCounterComponentTransform < 3) { |
233 unittest.expect(o.name, unittest.equals('foo')); | 233 unittest.expect(o.name, unittest.equals('foo')); |
234 unittest.expect(o.originalTransform, unittest.equals('foo')); | 234 unittest.expect(o.originalTransform, unittest.equals('foo')); |
235 unittest.expect(o.userName, unittest.equals('foo')); | 235 unittest.expect(o.userName, unittest.equals('foo')); |
236 } | 236 } |
237 buildCounterComponentTransform--; | 237 buildCounterComponentTransform--; |
238 } | 238 } |
239 | 239 |
240 buildUnnamed3447() { | 240 buildUnnamed2921() { |
241 var o = new core.List<api.StreamLocation>(); | 241 var o = new core.List<api.StreamLocation>(); |
242 o.add(buildStreamLocation()); | 242 o.add(buildStreamLocation()); |
243 o.add(buildStreamLocation()); | 243 o.add(buildStreamLocation()); |
244 return o; | 244 return o; |
245 } | 245 } |
246 | 246 |
247 checkUnnamed3447(core.List<api.StreamLocation> o) { | 247 checkUnnamed2921(core.List<api.StreamLocation> o) { |
248 unittest.expect(o, unittest.hasLength(2)); | 248 unittest.expect(o, unittest.hasLength(2)); |
249 checkStreamLocation(o[0]); | 249 checkStreamLocation(o[0]); |
250 checkStreamLocation(o[1]); | 250 checkStreamLocation(o[1]); |
251 } | 251 } |
252 | 252 |
253 buildUnnamed3448() { | 253 buildUnnamed2922() { |
254 var o = new core.List<api.KeyRangeLocation>(); | 254 var o = new core.List<api.KeyRangeLocation>(); |
255 o.add(buildKeyRangeLocation()); | 255 o.add(buildKeyRangeLocation()); |
256 o.add(buildKeyRangeLocation()); | 256 o.add(buildKeyRangeLocation()); |
257 return o; | 257 return o; |
258 } | 258 } |
259 | 259 |
260 checkUnnamed3448(core.List<api.KeyRangeLocation> o) { | 260 checkUnnamed2922(core.List<api.KeyRangeLocation> o) { |
261 unittest.expect(o, unittest.hasLength(2)); | 261 unittest.expect(o, unittest.hasLength(2)); |
262 checkKeyRangeLocation(o[0]); | 262 checkKeyRangeLocation(o[0]); |
263 checkKeyRangeLocation(o[1]); | 263 checkKeyRangeLocation(o[1]); |
264 } | 264 } |
265 | 265 |
266 buildUnnamed3449() { | 266 buildUnnamed2923() { |
267 var o = new core.List<api.StreamLocation>(); | 267 var o = new core.List<api.StreamLocation>(); |
268 o.add(buildStreamLocation()); | 268 o.add(buildStreamLocation()); |
269 o.add(buildStreamLocation()); | 269 o.add(buildStreamLocation()); |
270 return o; | 270 return o; |
271 } | 271 } |
272 | 272 |
273 checkUnnamed3449(core.List<api.StreamLocation> o) { | 273 checkUnnamed2923(core.List<api.StreamLocation> o) { |
274 unittest.expect(o, unittest.hasLength(2)); | 274 unittest.expect(o, unittest.hasLength(2)); |
275 checkStreamLocation(o[0]); | 275 checkStreamLocation(o[0]); |
276 checkStreamLocation(o[1]); | 276 checkStreamLocation(o[1]); |
277 } | 277 } |
278 | 278 |
279 buildUnnamed3450() { | 279 buildUnnamed2924() { |
280 var o = new core.List<api.StateFamilyConfig>(); | 280 var o = new core.List<api.StateFamilyConfig>(); |
281 o.add(buildStateFamilyConfig()); | 281 o.add(buildStateFamilyConfig()); |
282 o.add(buildStateFamilyConfig()); | 282 o.add(buildStateFamilyConfig()); |
283 return o; | 283 return o; |
284 } | 284 } |
285 | 285 |
286 checkUnnamed3450(core.List<api.StateFamilyConfig> o) { | 286 checkUnnamed2924(core.List<api.StateFamilyConfig> o) { |
287 unittest.expect(o, unittest.hasLength(2)); | 287 unittest.expect(o, unittest.hasLength(2)); |
288 checkStateFamilyConfig(o[0]); | 288 checkStateFamilyConfig(o[0]); |
289 checkStateFamilyConfig(o[1]); | 289 checkStateFamilyConfig(o[1]); |
290 } | 290 } |
291 | 291 |
292 core.int buildCounterComputationTopology = 0; | 292 core.int buildCounterComputationTopology = 0; |
293 buildComputationTopology() { | 293 buildComputationTopology() { |
294 var o = new api.ComputationTopology(); | 294 var o = new api.ComputationTopology(); |
295 buildCounterComputationTopology++; | 295 buildCounterComputationTopology++; |
296 if (buildCounterComputationTopology < 3) { | 296 if (buildCounterComputationTopology < 3) { |
297 o.computationId = "foo"; | 297 o.computationId = "foo"; |
298 o.inputs = buildUnnamed3447(); | 298 o.inputs = buildUnnamed2921(); |
299 o.keyRanges = buildUnnamed3448(); | 299 o.keyRanges = buildUnnamed2922(); |
300 o.outputs = buildUnnamed3449(); | 300 o.outputs = buildUnnamed2923(); |
301 o.stateFamilies = buildUnnamed3450(); | 301 o.stateFamilies = buildUnnamed2924(); |
302 o.systemStageName = "foo"; | 302 o.systemStageName = "foo"; |
303 } | 303 } |
304 buildCounterComputationTopology--; | 304 buildCounterComputationTopology--; |
305 return o; | 305 return o; |
306 } | 306 } |
307 | 307 |
308 checkComputationTopology(api.ComputationTopology o) { | 308 checkComputationTopology(api.ComputationTopology o) { |
309 buildCounterComputationTopology++; | 309 buildCounterComputationTopology++; |
310 if (buildCounterComputationTopology < 3) { | 310 if (buildCounterComputationTopology < 3) { |
311 unittest.expect(o.computationId, unittest.equals('foo')); | 311 unittest.expect(o.computationId, unittest.equals('foo')); |
312 checkUnnamed3447(o.inputs); | 312 checkUnnamed2921(o.inputs); |
313 checkUnnamed3448(o.keyRanges); | 313 checkUnnamed2922(o.keyRanges); |
314 checkUnnamed3449(o.outputs); | 314 checkUnnamed2923(o.outputs); |
315 checkUnnamed3450(o.stateFamilies); | 315 checkUnnamed2924(o.stateFamilies); |
316 unittest.expect(o.systemStageName, unittest.equals('foo')); | 316 unittest.expect(o.systemStageName, unittest.equals('foo')); |
317 } | 317 } |
318 buildCounterComputationTopology--; | 318 buildCounterComputationTopology--; |
319 } | 319 } |
320 | 320 |
321 core.int buildCounterConcatPosition = 0; | 321 core.int buildCounterConcatPosition = 0; |
322 buildConcatPosition() { | 322 buildConcatPosition() { |
323 var o = new api.ConcatPosition(); | 323 var o = new api.ConcatPosition(); |
324 buildCounterConcatPosition++; | 324 buildCounterConcatPosition++; |
325 if (buildCounterConcatPosition < 3) { | 325 if (buildCounterConcatPosition < 3) { |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 checkIntegerMean(o.integerMean); | 456 checkIntegerMean(o.integerMean); |
457 var casted1 = (o.internal) as core.Map; unittest.expect(casted1, unittest.ha
sLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unitt
est.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["str
ing"], unittest.equals('foo')); | 457 var casted1 = (o.internal) as core.Map; unittest.expect(casted1, unittest.ha
sLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unitt
est.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["str
ing"], unittest.equals('foo')); |
458 checkNameAndKind(o.nameAndKind); | 458 checkNameAndKind(o.nameAndKind); |
459 unittest.expect(o.shortId, unittest.equals('foo')); | 459 unittest.expect(o.shortId, unittest.equals('foo')); |
460 checkStringList(o.stringList); | 460 checkStringList(o.stringList); |
461 checkCounterStructuredNameAndMetadata(o.structuredNameAndMetadata); | 461 checkCounterStructuredNameAndMetadata(o.structuredNameAndMetadata); |
462 } | 462 } |
463 buildCounterCounterUpdate--; | 463 buildCounterCounterUpdate--; |
464 } | 464 } |
465 | 465 |
466 buildUnnamed3451() { | 466 buildUnnamed2925() { |
467 var o = new core.Map<core.String, core.String>(); | 467 var o = new core.Map<core.String, core.String>(); |
468 o["x"] = "foo"; | 468 o["x"] = "foo"; |
469 o["y"] = "foo"; | 469 o["y"] = "foo"; |
470 return o; | 470 return o; |
471 } | 471 } |
472 | 472 |
473 checkUnnamed3451(core.Map<core.String, core.String> o) { | 473 checkUnnamed2925(core.Map<core.String, core.String> o) { |
474 unittest.expect(o, unittest.hasLength(2)); | 474 unittest.expect(o, unittest.hasLength(2)); |
475 unittest.expect(o["x"], unittest.equals('foo')); | 475 unittest.expect(o["x"], unittest.equals('foo')); |
476 unittest.expect(o["y"], unittest.equals('foo')); | 476 unittest.expect(o["y"], unittest.equals('foo')); |
477 } | 477 } |
478 | 478 |
479 core.int buildCounterCreateJobFromTemplateRequest = 0; | 479 core.int buildCounterCreateJobFromTemplateRequest = 0; |
480 buildCreateJobFromTemplateRequest() { | 480 buildCreateJobFromTemplateRequest() { |
481 var o = new api.CreateJobFromTemplateRequest(); | 481 var o = new api.CreateJobFromTemplateRequest(); |
482 buildCounterCreateJobFromTemplateRequest++; | 482 buildCounterCreateJobFromTemplateRequest++; |
483 if (buildCounterCreateJobFromTemplateRequest < 3) { | 483 if (buildCounterCreateJobFromTemplateRequest < 3) { |
484 o.environment = buildRuntimeEnvironment(); | 484 o.environment = buildRuntimeEnvironment(); |
485 o.gcsPath = "foo"; | 485 o.gcsPath = "foo"; |
486 o.jobName = "foo"; | 486 o.jobName = "foo"; |
487 o.location = "foo"; | 487 o.location = "foo"; |
488 o.parameters = buildUnnamed3451(); | 488 o.parameters = buildUnnamed2925(); |
489 } | 489 } |
490 buildCounterCreateJobFromTemplateRequest--; | 490 buildCounterCreateJobFromTemplateRequest--; |
491 return o; | 491 return o; |
492 } | 492 } |
493 | 493 |
494 checkCreateJobFromTemplateRequest(api.CreateJobFromTemplateRequest o) { | 494 checkCreateJobFromTemplateRequest(api.CreateJobFromTemplateRequest o) { |
495 buildCounterCreateJobFromTemplateRequest++; | 495 buildCounterCreateJobFromTemplateRequest++; |
496 if (buildCounterCreateJobFromTemplateRequest < 3) { | 496 if (buildCounterCreateJobFromTemplateRequest < 3) { |
497 checkRuntimeEnvironment(o.environment); | 497 checkRuntimeEnvironment(o.environment); |
498 unittest.expect(o.gcsPath, unittest.equals('foo')); | 498 unittest.expect(o.gcsPath, unittest.equals('foo')); |
499 unittest.expect(o.jobName, unittest.equals('foo')); | 499 unittest.expect(o.jobName, unittest.equals('foo')); |
500 unittest.expect(o.location, unittest.equals('foo')); | 500 unittest.expect(o.location, unittest.equals('foo')); |
501 checkUnnamed3451(o.parameters); | 501 checkUnnamed2925(o.parameters); |
502 } | 502 } |
503 buildCounterCreateJobFromTemplateRequest--; | 503 buildCounterCreateJobFromTemplateRequest--; |
504 } | 504 } |
505 | 505 |
506 core.int buildCounterCustomSourceLocation = 0; | 506 core.int buildCounterCustomSourceLocation = 0; |
507 buildCustomSourceLocation() { | 507 buildCustomSourceLocation() { |
508 var o = new api.CustomSourceLocation(); | 508 var o = new api.CustomSourceLocation(); |
509 buildCounterCustomSourceLocation++; | 509 buildCounterCustomSourceLocation++; |
510 if (buildCounterCustomSourceLocation < 3) { | 510 if (buildCounterCustomSourceLocation < 3) { |
511 o.stateful = true; | 511 o.stateful = true; |
512 } | 512 } |
513 buildCounterCustomSourceLocation--; | 513 buildCounterCustomSourceLocation--; |
514 return o; | 514 return o; |
515 } | 515 } |
516 | 516 |
517 checkCustomSourceLocation(api.CustomSourceLocation o) { | 517 checkCustomSourceLocation(api.CustomSourceLocation o) { |
518 buildCounterCustomSourceLocation++; | 518 buildCounterCustomSourceLocation++; |
519 if (buildCounterCustomSourceLocation < 3) { | 519 if (buildCounterCustomSourceLocation < 3) { |
520 unittest.expect(o.stateful, unittest.isTrue); | 520 unittest.expect(o.stateful, unittest.isTrue); |
521 } | 521 } |
522 buildCounterCustomSourceLocation--; | 522 buildCounterCustomSourceLocation--; |
523 } | 523 } |
524 | 524 |
525 buildUnnamed3452() { | 525 buildUnnamed2926() { |
526 var o = new core.List<core.String>(); | 526 var o = new core.List<core.String>(); |
527 o.add("foo"); | 527 o.add("foo"); |
528 o.add("foo"); | 528 o.add("foo"); |
529 return o; | 529 return o; |
530 } | 530 } |
531 | 531 |
532 checkUnnamed3452(core.List<core.String> o) { | 532 checkUnnamed2926(core.List<core.String> o) { |
533 unittest.expect(o, unittest.hasLength(2)); | 533 unittest.expect(o, unittest.hasLength(2)); |
534 unittest.expect(o[0], unittest.equals('foo')); | 534 unittest.expect(o[0], unittest.equals('foo')); |
535 unittest.expect(o[1], unittest.equals('foo')); | 535 unittest.expect(o[1], unittest.equals('foo')); |
536 } | 536 } |
537 | 537 |
538 core.int buildCounterDataDiskAssignment = 0; | 538 core.int buildCounterDataDiskAssignment = 0; |
539 buildDataDiskAssignment() { | 539 buildDataDiskAssignment() { |
540 var o = new api.DataDiskAssignment(); | 540 var o = new api.DataDiskAssignment(); |
541 buildCounterDataDiskAssignment++; | 541 buildCounterDataDiskAssignment++; |
542 if (buildCounterDataDiskAssignment < 3) { | 542 if (buildCounterDataDiskAssignment < 3) { |
543 o.dataDisks = buildUnnamed3452(); | 543 o.dataDisks = buildUnnamed2926(); |
544 o.vmInstance = "foo"; | 544 o.vmInstance = "foo"; |
545 } | 545 } |
546 buildCounterDataDiskAssignment--; | 546 buildCounterDataDiskAssignment--; |
547 return o; | 547 return o; |
548 } | 548 } |
549 | 549 |
550 checkDataDiskAssignment(api.DataDiskAssignment o) { | 550 checkDataDiskAssignment(api.DataDiskAssignment o) { |
551 buildCounterDataDiskAssignment++; | 551 buildCounterDataDiskAssignment++; |
552 if (buildCounterDataDiskAssignment < 3) { | 552 if (buildCounterDataDiskAssignment < 3) { |
553 checkUnnamed3452(o.dataDisks); | 553 checkUnnamed2926(o.dataDisks); |
554 unittest.expect(o.vmInstance, unittest.equals('foo')); | 554 unittest.expect(o.vmInstance, unittest.equals('foo')); |
555 } | 555 } |
556 buildCounterDataDiskAssignment--; | 556 buildCounterDataDiskAssignment--; |
557 } | 557 } |
558 | 558 |
559 core.int buildCounterDerivedSource = 0; | 559 core.int buildCounterDerivedSource = 0; |
560 buildDerivedSource() { | 560 buildDerivedSource() { |
561 var o = new api.DerivedSource(); | 561 var o = new api.DerivedSource(); |
562 buildCounterDerivedSource++; | 562 buildCounterDerivedSource++; |
563 if (buildCounterDerivedSource < 3) { | 563 if (buildCounterDerivedSource < 3) { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
634 unittest.expect(o.label, unittest.equals('foo')); | 634 unittest.expect(o.label, unittest.equals('foo')); |
635 unittest.expect(o.namespace, unittest.equals('foo')); | 635 unittest.expect(o.namespace, unittest.equals('foo')); |
636 unittest.expect(o.shortStrValue, unittest.equals('foo')); | 636 unittest.expect(o.shortStrValue, unittest.equals('foo')); |
637 unittest.expect(o.strValue, unittest.equals('foo')); | 637 unittest.expect(o.strValue, unittest.equals('foo')); |
638 unittest.expect(o.timestampValue, unittest.equals('foo')); | 638 unittest.expect(o.timestampValue, unittest.equals('foo')); |
639 unittest.expect(o.url, unittest.equals('foo')); | 639 unittest.expect(o.url, unittest.equals('foo')); |
640 } | 640 } |
641 buildCounterDisplayData--; | 641 buildCounterDisplayData--; |
642 } | 642 } |
643 | 643 |
644 buildUnnamed3453() { | 644 buildUnnamed2927() { |
645 var o = new core.List<api.LogBucket>(); | 645 var o = new core.List<api.LogBucket>(); |
646 o.add(buildLogBucket()); | 646 o.add(buildLogBucket()); |
647 o.add(buildLogBucket()); | 647 o.add(buildLogBucket()); |
648 return o; | 648 return o; |
649 } | 649 } |
650 | 650 |
651 checkUnnamed3453(core.List<api.LogBucket> o) { | 651 checkUnnamed2927(core.List<api.LogBucket> o) { |
652 unittest.expect(o, unittest.hasLength(2)); | 652 unittest.expect(o, unittest.hasLength(2)); |
653 checkLogBucket(o[0]); | 653 checkLogBucket(o[0]); |
654 checkLogBucket(o[1]); | 654 checkLogBucket(o[1]); |
655 } | 655 } |
656 | 656 |
657 core.int buildCounterDistributionUpdate = 0; | 657 core.int buildCounterDistributionUpdate = 0; |
658 buildDistributionUpdate() { | 658 buildDistributionUpdate() { |
659 var o = new api.DistributionUpdate(); | 659 var o = new api.DistributionUpdate(); |
660 buildCounterDistributionUpdate++; | 660 buildCounterDistributionUpdate++; |
661 if (buildCounterDistributionUpdate < 3) { | 661 if (buildCounterDistributionUpdate < 3) { |
662 o.count = buildSplitInt64(); | 662 o.count = buildSplitInt64(); |
663 o.logBuckets = buildUnnamed3453(); | 663 o.logBuckets = buildUnnamed2927(); |
664 o.max = buildSplitInt64(); | 664 o.max = buildSplitInt64(); |
665 o.min = buildSplitInt64(); | 665 o.min = buildSplitInt64(); |
666 o.sum = buildSplitInt64(); | 666 o.sum = buildSplitInt64(); |
667 o.sumOfSquares = 42.0; | 667 o.sumOfSquares = 42.0; |
668 } | 668 } |
669 buildCounterDistributionUpdate--; | 669 buildCounterDistributionUpdate--; |
670 return o; | 670 return o; |
671 } | 671 } |
672 | 672 |
673 checkDistributionUpdate(api.DistributionUpdate o) { | 673 checkDistributionUpdate(api.DistributionUpdate o) { |
674 buildCounterDistributionUpdate++; | 674 buildCounterDistributionUpdate++; |
675 if (buildCounterDistributionUpdate < 3) { | 675 if (buildCounterDistributionUpdate < 3) { |
676 checkSplitInt64(o.count); | 676 checkSplitInt64(o.count); |
677 checkUnnamed3453(o.logBuckets); | 677 checkUnnamed2927(o.logBuckets); |
678 checkSplitInt64(o.max); | 678 checkSplitInt64(o.max); |
679 checkSplitInt64(o.min); | 679 checkSplitInt64(o.min); |
680 checkSplitInt64(o.sum); | 680 checkSplitInt64(o.sum); |
681 unittest.expect(o.sumOfSquares, unittest.equals(42.0)); | 681 unittest.expect(o.sumOfSquares, unittest.equals(42.0)); |
682 } | 682 } |
683 buildCounterDistributionUpdate--; | 683 buildCounterDistributionUpdate--; |
684 } | 684 } |
685 | 685 |
686 core.int buildCounterDynamicSourceSplit = 0; | 686 core.int buildCounterDynamicSourceSplit = 0; |
687 buildDynamicSourceSplit() { | 687 buildDynamicSourceSplit() { |
688 var o = new api.DynamicSourceSplit(); | 688 var o = new api.DynamicSourceSplit(); |
689 buildCounterDynamicSourceSplit++; | 689 buildCounterDynamicSourceSplit++; |
690 if (buildCounterDynamicSourceSplit < 3) { | 690 if (buildCounterDynamicSourceSplit < 3) { |
691 o.primary = buildDerivedSource(); | 691 o.primary = buildDerivedSource(); |
692 o.residual = buildDerivedSource(); | 692 o.residual = buildDerivedSource(); |
693 } | 693 } |
694 buildCounterDynamicSourceSplit--; | 694 buildCounterDynamicSourceSplit--; |
695 return o; | 695 return o; |
696 } | 696 } |
697 | 697 |
698 checkDynamicSourceSplit(api.DynamicSourceSplit o) { | 698 checkDynamicSourceSplit(api.DynamicSourceSplit o) { |
699 buildCounterDynamicSourceSplit++; | 699 buildCounterDynamicSourceSplit++; |
700 if (buildCounterDynamicSourceSplit < 3) { | 700 if (buildCounterDynamicSourceSplit < 3) { |
701 checkDerivedSource(o.primary); | 701 checkDerivedSource(o.primary); |
702 checkDerivedSource(o.residual); | 702 checkDerivedSource(o.residual); |
703 } | 703 } |
704 buildCounterDynamicSourceSplit--; | 704 buildCounterDynamicSourceSplit--; |
705 } | 705 } |
706 | 706 |
707 buildUnnamed3454() { | 707 buildUnnamed2928() { |
708 var o = new core.List<core.String>(); | 708 var o = new core.List<core.String>(); |
709 o.add("foo"); | 709 o.add("foo"); |
710 o.add("foo"); | 710 o.add("foo"); |
711 return o; | 711 return o; |
712 } | 712 } |
713 | 713 |
714 checkUnnamed3454(core.List<core.String> o) { | 714 checkUnnamed2928(core.List<core.String> o) { |
715 unittest.expect(o, unittest.hasLength(2)); | 715 unittest.expect(o, unittest.hasLength(2)); |
716 unittest.expect(o[0], unittest.equals('foo')); | 716 unittest.expect(o[0], unittest.equals('foo')); |
717 unittest.expect(o[1], unittest.equals('foo')); | 717 unittest.expect(o[1], unittest.equals('foo')); |
718 } | 718 } |
719 | 719 |
720 buildUnnamed3455() { | 720 buildUnnamed2929() { |
721 var o = new core.Map<core.String, core.Object>(); | 721 var o = new core.Map<core.String, core.Object>(); |
722 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 722 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
723 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 723 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
724 return o; | 724 return o; |
725 } | 725 } |
726 | 726 |
727 checkUnnamed3455(core.Map<core.String, core.Object> o) { | 727 checkUnnamed2929(core.Map<core.String, core.Object> o) { |
728 unittest.expect(o, unittest.hasLength(2)); | 728 unittest.expect(o, unittest.hasLength(2)); |
729 var casted2 = (o["x"]) 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')); | 729 var casted2 = (o["x"]) 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')); |
730 var casted3 = (o["y"]) 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["y"]) 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 } | 731 } |
732 | 732 |
733 buildUnnamed3456() { | 733 buildUnnamed2930() { |
734 var o = new core.Map<core.String, core.Object>(); | 734 var o = new core.Map<core.String, core.Object>(); |
735 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 735 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
736 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 736 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
737 return o; | 737 return o; |
738 } | 738 } |
739 | 739 |
740 checkUnnamed3456(core.Map<core.String, core.Object> o) { | 740 checkUnnamed2930(core.Map<core.String, core.Object> o) { |
741 unittest.expect(o, unittest.hasLength(2)); | 741 unittest.expect(o, unittest.hasLength(2)); |
742 var casted4 = (o["x"]) 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')); | 742 var casted4 = (o["x"]) 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')); |
743 var casted5 = (o["y"]) 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')); | 743 var casted5 = (o["y"]) 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')); |
744 } | 744 } |
745 | 745 |
746 buildUnnamed3457() { | 746 buildUnnamed2931() { |
747 var o = new core.Map<core.String, core.Object>(); | 747 var o = new core.Map<core.String, core.Object>(); |
748 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 748 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
749 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 749 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
750 return o; | 750 return o; |
751 } | 751 } |
752 | 752 |
753 checkUnnamed3457(core.Map<core.String, core.Object> o) { | 753 checkUnnamed2931(core.Map<core.String, core.Object> o) { |
754 unittest.expect(o, unittest.hasLength(2)); | 754 unittest.expect(o, unittest.hasLength(2)); |
755 var casted6 = (o["x"]) 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')); | 755 var casted6 = (o["x"]) 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')); |
756 var casted7 = (o["y"]) as core.Map; unittest.expect(casted7, unittest.hasLengt
h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"],
unittest.equals('foo')); | 756 var casted7 = (o["y"]) as core.Map; unittest.expect(casted7, unittest.hasLengt
h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"],
unittest.equals('foo')); |
757 } | 757 } |
758 | 758 |
759 buildUnnamed3458() { | 759 buildUnnamed2932() { |
760 var o = new core.Map<core.String, core.Object>(); | 760 var o = new core.Map<core.String, core.Object>(); |
761 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 761 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
762 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 762 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
763 return o; | 763 return o; |
764 } | 764 } |
765 | 765 |
766 checkUnnamed3458(core.Map<core.String, core.Object> o) { | 766 checkUnnamed2932(core.Map<core.String, core.Object> o) { |
767 unittest.expect(o, unittest.hasLength(2)); | 767 unittest.expect(o, unittest.hasLength(2)); |
768 var casted8 = (o["x"]) as core.Map; unittest.expect(casted8, unittest.hasLengt
h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"],
unittest.equals('foo')); | 768 var casted8 = (o["x"]) as core.Map; unittest.expect(casted8, unittest.hasLengt
h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"],
unittest.equals('foo')); |
769 var casted9 = (o["y"]) as core.Map; unittest.expect(casted9, unittest.hasLengt
h(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"],
unittest.equals('foo')); | 769 var casted9 = (o["y"]) as core.Map; unittest.expect(casted9, unittest.hasLengt
h(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"],
unittest.equals('foo')); |
770 } | 770 } |
771 | 771 |
772 buildUnnamed3459() { | 772 buildUnnamed2933() { |
773 var o = new core.List<api.WorkerPool>(); | 773 var o = new core.List<api.WorkerPool>(); |
774 o.add(buildWorkerPool()); | 774 o.add(buildWorkerPool()); |
775 o.add(buildWorkerPool()); | 775 o.add(buildWorkerPool()); |
776 return o; | 776 return o; |
777 } | 777 } |
778 | 778 |
779 checkUnnamed3459(core.List<api.WorkerPool> o) { | 779 checkUnnamed2933(core.List<api.WorkerPool> o) { |
780 unittest.expect(o, unittest.hasLength(2)); | 780 unittest.expect(o, unittest.hasLength(2)); |
781 checkWorkerPool(o[0]); | 781 checkWorkerPool(o[0]); |
782 checkWorkerPool(o[1]); | 782 checkWorkerPool(o[1]); |
783 } | 783 } |
784 | 784 |
785 core.int buildCounterEnvironment = 0; | 785 core.int buildCounterEnvironment = 0; |
786 buildEnvironment() { | 786 buildEnvironment() { |
787 var o = new api.Environment(); | 787 var o = new api.Environment(); |
788 buildCounterEnvironment++; | 788 buildCounterEnvironment++; |
789 if (buildCounterEnvironment < 3) { | 789 if (buildCounterEnvironment < 3) { |
790 o.clusterManagerApiService = "foo"; | 790 o.clusterManagerApiService = "foo"; |
791 o.dataset = "foo"; | 791 o.dataset = "foo"; |
792 o.experiments = buildUnnamed3454(); | 792 o.experiments = buildUnnamed2928(); |
793 o.internalExperiments = buildUnnamed3455(); | 793 o.internalExperiments = buildUnnamed2929(); |
794 o.sdkPipelineOptions = buildUnnamed3456(); | 794 o.sdkPipelineOptions = buildUnnamed2930(); |
795 o.serviceAccountEmail = "foo"; | 795 o.serviceAccountEmail = "foo"; |
796 o.tempStoragePrefix = "foo"; | 796 o.tempStoragePrefix = "foo"; |
797 o.userAgent = buildUnnamed3457(); | 797 o.userAgent = buildUnnamed2931(); |
798 o.version = buildUnnamed3458(); | 798 o.version = buildUnnamed2932(); |
799 o.workerPools = buildUnnamed3459(); | 799 o.workerPools = buildUnnamed2933(); |
800 } | 800 } |
801 buildCounterEnvironment--; | 801 buildCounterEnvironment--; |
802 return o; | 802 return o; |
803 } | 803 } |
804 | 804 |
805 checkEnvironment(api.Environment o) { | 805 checkEnvironment(api.Environment o) { |
806 buildCounterEnvironment++; | 806 buildCounterEnvironment++; |
807 if (buildCounterEnvironment < 3) { | 807 if (buildCounterEnvironment < 3) { |
808 unittest.expect(o.clusterManagerApiService, unittest.equals('foo')); | 808 unittest.expect(o.clusterManagerApiService, unittest.equals('foo')); |
809 unittest.expect(o.dataset, unittest.equals('foo')); | 809 unittest.expect(o.dataset, unittest.equals('foo')); |
810 checkUnnamed3454(o.experiments); | 810 checkUnnamed2928(o.experiments); |
811 checkUnnamed3455(o.internalExperiments); | 811 checkUnnamed2929(o.internalExperiments); |
812 checkUnnamed3456(o.sdkPipelineOptions); | 812 checkUnnamed2930(o.sdkPipelineOptions); |
813 unittest.expect(o.serviceAccountEmail, unittest.equals('foo')); | 813 unittest.expect(o.serviceAccountEmail, unittest.equals('foo')); |
814 unittest.expect(o.tempStoragePrefix, unittest.equals('foo')); | 814 unittest.expect(o.tempStoragePrefix, unittest.equals('foo')); |
815 checkUnnamed3457(o.userAgent); | 815 checkUnnamed2931(o.userAgent); |
816 checkUnnamed3458(o.version); | 816 checkUnnamed2932(o.version); |
817 checkUnnamed3459(o.workerPools); | 817 checkUnnamed2933(o.workerPools); |
818 } | 818 } |
819 buildCounterEnvironment--; | 819 buildCounterEnvironment--; |
820 } | 820 } |
821 | 821 |
822 core.int buildCounterExecutionStageState = 0; | 822 core.int buildCounterExecutionStageState = 0; |
823 buildExecutionStageState() { | 823 buildExecutionStageState() { |
824 var o = new api.ExecutionStageState(); | 824 var o = new api.ExecutionStageState(); |
825 buildCounterExecutionStageState++; | 825 buildCounterExecutionStageState++; |
826 if (buildCounterExecutionStageState < 3) { | 826 if (buildCounterExecutionStageState < 3) { |
827 o.currentStateTime = "foo"; | 827 o.currentStateTime = "foo"; |
828 o.executionStageName = "foo"; | 828 o.executionStageName = "foo"; |
829 o.executionStageState = "foo"; | 829 o.executionStageState = "foo"; |
830 } | 830 } |
831 buildCounterExecutionStageState--; | 831 buildCounterExecutionStageState--; |
832 return o; | 832 return o; |
833 } | 833 } |
834 | 834 |
835 checkExecutionStageState(api.ExecutionStageState o) { | 835 checkExecutionStageState(api.ExecutionStageState o) { |
836 buildCounterExecutionStageState++; | 836 buildCounterExecutionStageState++; |
837 if (buildCounterExecutionStageState < 3) { | 837 if (buildCounterExecutionStageState < 3) { |
838 unittest.expect(o.currentStateTime, unittest.equals('foo')); | 838 unittest.expect(o.currentStateTime, unittest.equals('foo')); |
839 unittest.expect(o.executionStageName, unittest.equals('foo')); | 839 unittest.expect(o.executionStageName, unittest.equals('foo')); |
840 unittest.expect(o.executionStageState, unittest.equals('foo')); | 840 unittest.expect(o.executionStageState, unittest.equals('foo')); |
841 } | 841 } |
842 buildCounterExecutionStageState--; | 842 buildCounterExecutionStageState--; |
843 } | 843 } |
844 | 844 |
845 buildUnnamed3460() { | 845 buildUnnamed2934() { |
846 var o = new core.List<api.ComponentSource>(); | 846 var o = new core.List<api.ComponentSource>(); |
847 o.add(buildComponentSource()); | 847 o.add(buildComponentSource()); |
848 o.add(buildComponentSource()); | 848 o.add(buildComponentSource()); |
849 return o; | 849 return o; |
850 } | 850 } |
851 | 851 |
852 checkUnnamed3460(core.List<api.ComponentSource> o) { | 852 checkUnnamed2934(core.List<api.ComponentSource> o) { |
853 unittest.expect(o, unittest.hasLength(2)); | 853 unittest.expect(o, unittest.hasLength(2)); |
854 checkComponentSource(o[0]); | 854 checkComponentSource(o[0]); |
855 checkComponentSource(o[1]); | 855 checkComponentSource(o[1]); |
856 } | 856 } |
857 | 857 |
858 buildUnnamed3461() { | 858 buildUnnamed2935() { |
859 var o = new core.List<api.ComponentTransform>(); | 859 var o = new core.List<api.ComponentTransform>(); |
860 o.add(buildComponentTransform()); | 860 o.add(buildComponentTransform()); |
861 o.add(buildComponentTransform()); | 861 o.add(buildComponentTransform()); |
862 return o; | 862 return o; |
863 } | 863 } |
864 | 864 |
865 checkUnnamed3461(core.List<api.ComponentTransform> o) { | 865 checkUnnamed2935(core.List<api.ComponentTransform> o) { |
866 unittest.expect(o, unittest.hasLength(2)); | 866 unittest.expect(o, unittest.hasLength(2)); |
867 checkComponentTransform(o[0]); | 867 checkComponentTransform(o[0]); |
868 checkComponentTransform(o[1]); | 868 checkComponentTransform(o[1]); |
869 } | 869 } |
870 | 870 |
871 buildUnnamed3462() { | 871 buildUnnamed2936() { |
872 var o = new core.List<api.StageSource>(); | 872 var o = new core.List<api.StageSource>(); |
873 o.add(buildStageSource()); | 873 o.add(buildStageSource()); |
874 o.add(buildStageSource()); | 874 o.add(buildStageSource()); |
875 return o; | 875 return o; |
876 } | 876 } |
877 | 877 |
878 checkUnnamed3462(core.List<api.StageSource> o) { | 878 checkUnnamed2936(core.List<api.StageSource> o) { |
879 unittest.expect(o, unittest.hasLength(2)); | 879 unittest.expect(o, unittest.hasLength(2)); |
880 checkStageSource(o[0]); | 880 checkStageSource(o[0]); |
881 checkStageSource(o[1]); | 881 checkStageSource(o[1]); |
882 } | 882 } |
883 | 883 |
884 buildUnnamed3463() { | 884 buildUnnamed2937() { |
885 var o = new core.List<api.StageSource>(); | 885 var o = new core.List<api.StageSource>(); |
886 o.add(buildStageSource()); | 886 o.add(buildStageSource()); |
887 o.add(buildStageSource()); | 887 o.add(buildStageSource()); |
888 return o; | 888 return o; |
889 } | 889 } |
890 | 890 |
891 checkUnnamed3463(core.List<api.StageSource> o) { | 891 checkUnnamed2937(core.List<api.StageSource> o) { |
892 unittest.expect(o, unittest.hasLength(2)); | 892 unittest.expect(o, unittest.hasLength(2)); |
893 checkStageSource(o[0]); | 893 checkStageSource(o[0]); |
894 checkStageSource(o[1]); | 894 checkStageSource(o[1]); |
895 } | 895 } |
896 | 896 |
897 core.int buildCounterExecutionStageSummary = 0; | 897 core.int buildCounterExecutionStageSummary = 0; |
898 buildExecutionStageSummary() { | 898 buildExecutionStageSummary() { |
899 var o = new api.ExecutionStageSummary(); | 899 var o = new api.ExecutionStageSummary(); |
900 buildCounterExecutionStageSummary++; | 900 buildCounterExecutionStageSummary++; |
901 if (buildCounterExecutionStageSummary < 3) { | 901 if (buildCounterExecutionStageSummary < 3) { |
902 o.componentSource = buildUnnamed3460(); | 902 o.componentSource = buildUnnamed2934(); |
903 o.componentTransform = buildUnnamed3461(); | 903 o.componentTransform = buildUnnamed2935(); |
904 o.id = "foo"; | 904 o.id = "foo"; |
905 o.inputSource = buildUnnamed3462(); | 905 o.inputSource = buildUnnamed2936(); |
906 o.kind = "foo"; | 906 o.kind = "foo"; |
907 o.name = "foo"; | 907 o.name = "foo"; |
908 o.outputSource = buildUnnamed3463(); | 908 o.outputSource = buildUnnamed2937(); |
909 } | 909 } |
910 buildCounterExecutionStageSummary--; | 910 buildCounterExecutionStageSummary--; |
911 return o; | 911 return o; |
912 } | 912 } |
913 | 913 |
914 checkExecutionStageSummary(api.ExecutionStageSummary o) { | 914 checkExecutionStageSummary(api.ExecutionStageSummary o) { |
915 buildCounterExecutionStageSummary++; | 915 buildCounterExecutionStageSummary++; |
916 if (buildCounterExecutionStageSummary < 3) { | 916 if (buildCounterExecutionStageSummary < 3) { |
917 checkUnnamed3460(o.componentSource); | 917 checkUnnamed2934(o.componentSource); |
918 checkUnnamed3461(o.componentTransform); | 918 checkUnnamed2935(o.componentTransform); |
919 unittest.expect(o.id, unittest.equals('foo')); | 919 unittest.expect(o.id, unittest.equals('foo')); |
920 checkUnnamed3462(o.inputSource); | 920 checkUnnamed2936(o.inputSource); |
921 unittest.expect(o.kind, unittest.equals('foo')); | 921 unittest.expect(o.kind, unittest.equals('foo')); |
922 unittest.expect(o.name, unittest.equals('foo')); | 922 unittest.expect(o.name, unittest.equals('foo')); |
923 checkUnnamed3463(o.outputSource); | 923 checkUnnamed2937(o.outputSource); |
924 } | 924 } |
925 buildCounterExecutionStageSummary--; | 925 buildCounterExecutionStageSummary--; |
926 } | 926 } |
927 | 927 |
928 core.int buildCounterFailedLocation = 0; | 928 core.int buildCounterFailedLocation = 0; |
929 buildFailedLocation() { | 929 buildFailedLocation() { |
930 var o = new api.FailedLocation(); | 930 var o = new api.FailedLocation(); |
931 buildCounterFailedLocation++; | 931 buildCounterFailedLocation++; |
932 if (buildCounterFailedLocation < 3) { | 932 if (buildCounterFailedLocation < 3) { |
933 o.name = "foo"; | 933 o.name = "foo"; |
934 } | 934 } |
935 buildCounterFailedLocation--; | 935 buildCounterFailedLocation--; |
936 return o; | 936 return o; |
937 } | 937 } |
938 | 938 |
939 checkFailedLocation(api.FailedLocation o) { | 939 checkFailedLocation(api.FailedLocation o) { |
940 buildCounterFailedLocation++; | 940 buildCounterFailedLocation++; |
941 if (buildCounterFailedLocation < 3) { | 941 if (buildCounterFailedLocation < 3) { |
942 unittest.expect(o.name, unittest.equals('foo')); | 942 unittest.expect(o.name, unittest.equals('foo')); |
943 } | 943 } |
944 buildCounterFailedLocation--; | 944 buildCounterFailedLocation--; |
945 } | 945 } |
946 | 946 |
947 buildUnnamed3464() { | 947 buildUnnamed2938() { |
948 var o = new core.List<api.InstructionInput>(); | 948 var o = new core.List<api.InstructionInput>(); |
949 o.add(buildInstructionInput()); | 949 o.add(buildInstructionInput()); |
950 o.add(buildInstructionInput()); | 950 o.add(buildInstructionInput()); |
951 return o; | 951 return o; |
952 } | 952 } |
953 | 953 |
954 checkUnnamed3464(core.List<api.InstructionInput> o) { | 954 checkUnnamed2938(core.List<api.InstructionInput> o) { |
955 unittest.expect(o, unittest.hasLength(2)); | 955 unittest.expect(o, unittest.hasLength(2)); |
956 checkInstructionInput(o[0]); | 956 checkInstructionInput(o[0]); |
957 checkInstructionInput(o[1]); | 957 checkInstructionInput(o[1]); |
958 } | 958 } |
959 | 959 |
960 core.int buildCounterFlattenInstruction = 0; | 960 core.int buildCounterFlattenInstruction = 0; |
961 buildFlattenInstruction() { | 961 buildFlattenInstruction() { |
962 var o = new api.FlattenInstruction(); | 962 var o = new api.FlattenInstruction(); |
963 buildCounterFlattenInstruction++; | 963 buildCounterFlattenInstruction++; |
964 if (buildCounterFlattenInstruction < 3) { | 964 if (buildCounterFlattenInstruction < 3) { |
965 o.inputs = buildUnnamed3464(); | 965 o.inputs = buildUnnamed2938(); |
966 } | 966 } |
967 buildCounterFlattenInstruction--; | 967 buildCounterFlattenInstruction--; |
968 return o; | 968 return o; |
969 } | 969 } |
970 | 970 |
971 checkFlattenInstruction(api.FlattenInstruction o) { | 971 checkFlattenInstruction(api.FlattenInstruction o) { |
972 buildCounterFlattenInstruction++; | 972 buildCounterFlattenInstruction++; |
973 if (buildCounterFlattenInstruction < 3) { | 973 if (buildCounterFlattenInstruction < 3) { |
974 checkUnnamed3464(o.inputs); | 974 checkUnnamed2938(o.inputs); |
975 } | 975 } |
976 buildCounterFlattenInstruction--; | 976 buildCounterFlattenInstruction--; |
977 } | 977 } |
978 | 978 |
979 buildUnnamed3465() { | 979 buildUnnamed2939() { |
980 var o = new core.List<core.double>(); | 980 var o = new core.List<core.double>(); |
981 o.add(42.0); | 981 o.add(42.0); |
982 o.add(42.0); | 982 o.add(42.0); |
983 return o; | 983 return o; |
984 } | 984 } |
985 | 985 |
986 checkUnnamed3465(core.List<core.double> o) { | 986 checkUnnamed2939(core.List<core.double> o) { |
987 unittest.expect(o, unittest.hasLength(2)); | 987 unittest.expect(o, unittest.hasLength(2)); |
988 unittest.expect(o[0], unittest.equals(42.0)); | 988 unittest.expect(o[0], unittest.equals(42.0)); |
989 unittest.expect(o[1], unittest.equals(42.0)); | 989 unittest.expect(o[1], unittest.equals(42.0)); |
990 } | 990 } |
991 | 991 |
992 core.int buildCounterFloatingPointList = 0; | 992 core.int buildCounterFloatingPointList = 0; |
993 buildFloatingPointList() { | 993 buildFloatingPointList() { |
994 var o = new api.FloatingPointList(); | 994 var o = new api.FloatingPointList(); |
995 buildCounterFloatingPointList++; | 995 buildCounterFloatingPointList++; |
996 if (buildCounterFloatingPointList < 3) { | 996 if (buildCounterFloatingPointList < 3) { |
997 o.elements = buildUnnamed3465(); | 997 o.elements = buildUnnamed2939(); |
998 } | 998 } |
999 buildCounterFloatingPointList--; | 999 buildCounterFloatingPointList--; |
1000 return o; | 1000 return o; |
1001 } | 1001 } |
1002 | 1002 |
1003 checkFloatingPointList(api.FloatingPointList o) { | 1003 checkFloatingPointList(api.FloatingPointList o) { |
1004 buildCounterFloatingPointList++; | 1004 buildCounterFloatingPointList++; |
1005 if (buildCounterFloatingPointList < 3) { | 1005 if (buildCounterFloatingPointList < 3) { |
1006 checkUnnamed3465(o.elements); | 1006 checkUnnamed2939(o.elements); |
1007 } | 1007 } |
1008 buildCounterFloatingPointList--; | 1008 buildCounterFloatingPointList--; |
1009 } | 1009 } |
1010 | 1010 |
1011 core.int buildCounterFloatingPointMean = 0; | 1011 core.int buildCounterFloatingPointMean = 0; |
1012 buildFloatingPointMean() { | 1012 buildFloatingPointMean() { |
1013 var o = new api.FloatingPointMean(); | 1013 var o = new api.FloatingPointMean(); |
1014 buildCounterFloatingPointMean++; | 1014 buildCounterFloatingPointMean++; |
1015 if (buildCounterFloatingPointMean < 3) { | 1015 if (buildCounterFloatingPointMean < 3) { |
1016 o.count = buildSplitInt64(); | 1016 o.count = buildSplitInt64(); |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1106 | 1106 |
1107 checkInstructionInput(api.InstructionInput o) { | 1107 checkInstructionInput(api.InstructionInput o) { |
1108 buildCounterInstructionInput++; | 1108 buildCounterInstructionInput++; |
1109 if (buildCounterInstructionInput < 3) { | 1109 if (buildCounterInstructionInput < 3) { |
1110 unittest.expect(o.outputNum, unittest.equals(42)); | 1110 unittest.expect(o.outputNum, unittest.equals(42)); |
1111 unittest.expect(o.producerInstructionIndex, unittest.equals(42)); | 1111 unittest.expect(o.producerInstructionIndex, unittest.equals(42)); |
1112 } | 1112 } |
1113 buildCounterInstructionInput--; | 1113 buildCounterInstructionInput--; |
1114 } | 1114 } |
1115 | 1115 |
1116 buildUnnamed3466() { | 1116 buildUnnamed2940() { |
1117 var o = new core.Map<core.String, core.Object>(); | 1117 var o = new core.Map<core.String, core.Object>(); |
1118 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1118 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1119 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1119 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1120 return o; | 1120 return o; |
1121 } | 1121 } |
1122 | 1122 |
1123 checkUnnamed3466(core.Map<core.String, core.Object> o) { | 1123 checkUnnamed2940(core.Map<core.String, core.Object> o) { |
1124 unittest.expect(o, unittest.hasLength(2)); | 1124 unittest.expect(o, unittest.hasLength(2)); |
1125 var casted10 = (o["x"]) as core.Map; unittest.expect(casted10, unittest.hasLen
gth(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["stri
ng"], unittest.equals('foo')); | 1125 var casted10 = (o["x"]) as core.Map; unittest.expect(casted10, unittest.hasLen
gth(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["stri
ng"], unittest.equals('foo')); |
1126 var casted11 = (o["y"]) as core.Map; unittest.expect(casted11, unittest.hasLen
gth(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["stri
ng"], unittest.equals('foo')); | 1126 var casted11 = (o["y"]) as core.Map; unittest.expect(casted11, unittest.hasLen
gth(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["stri
ng"], unittest.equals('foo')); |
1127 } | 1127 } |
1128 | 1128 |
1129 core.int buildCounterInstructionOutput = 0; | 1129 core.int buildCounterInstructionOutput = 0; |
1130 buildInstructionOutput() { | 1130 buildInstructionOutput() { |
1131 var o = new api.InstructionOutput(); | 1131 var o = new api.InstructionOutput(); |
1132 buildCounterInstructionOutput++; | 1132 buildCounterInstructionOutput++; |
1133 if (buildCounterInstructionOutput < 3) { | 1133 if (buildCounterInstructionOutput < 3) { |
1134 o.codec = buildUnnamed3466(); | 1134 o.codec = buildUnnamed2940(); |
1135 o.name = "foo"; | 1135 o.name = "foo"; |
1136 o.onlyCountKeyBytes = true; | 1136 o.onlyCountKeyBytes = true; |
1137 o.onlyCountValueBytes = true; | 1137 o.onlyCountValueBytes = true; |
1138 o.originalName = "foo"; | 1138 o.originalName = "foo"; |
1139 o.systemName = "foo"; | 1139 o.systemName = "foo"; |
1140 } | 1140 } |
1141 buildCounterInstructionOutput--; | 1141 buildCounterInstructionOutput--; |
1142 return o; | 1142 return o; |
1143 } | 1143 } |
1144 | 1144 |
1145 checkInstructionOutput(api.InstructionOutput o) { | 1145 checkInstructionOutput(api.InstructionOutput o) { |
1146 buildCounterInstructionOutput++; | 1146 buildCounterInstructionOutput++; |
1147 if (buildCounterInstructionOutput < 3) { | 1147 if (buildCounterInstructionOutput < 3) { |
1148 checkUnnamed3466(o.codec); | 1148 checkUnnamed2940(o.codec); |
1149 unittest.expect(o.name, unittest.equals('foo')); | 1149 unittest.expect(o.name, unittest.equals('foo')); |
1150 unittest.expect(o.onlyCountKeyBytes, unittest.isTrue); | 1150 unittest.expect(o.onlyCountKeyBytes, unittest.isTrue); |
1151 unittest.expect(o.onlyCountValueBytes, unittest.isTrue); | 1151 unittest.expect(o.onlyCountValueBytes, unittest.isTrue); |
1152 unittest.expect(o.originalName, unittest.equals('foo')); | 1152 unittest.expect(o.originalName, unittest.equals('foo')); |
1153 unittest.expect(o.systemName, unittest.equals('foo')); | 1153 unittest.expect(o.systemName, unittest.equals('foo')); |
1154 } | 1154 } |
1155 buildCounterInstructionOutput--; | 1155 buildCounterInstructionOutput--; |
1156 } | 1156 } |
1157 | 1157 |
1158 buildUnnamed3467() { | 1158 buildUnnamed2941() { |
1159 var o = new core.List<api.SplitInt64>(); | 1159 var o = new core.List<api.SplitInt64>(); |
1160 o.add(buildSplitInt64()); | 1160 o.add(buildSplitInt64()); |
1161 o.add(buildSplitInt64()); | 1161 o.add(buildSplitInt64()); |
1162 return o; | 1162 return o; |
1163 } | 1163 } |
1164 | 1164 |
1165 checkUnnamed3467(core.List<api.SplitInt64> o) { | 1165 checkUnnamed2941(core.List<api.SplitInt64> o) { |
1166 unittest.expect(o, unittest.hasLength(2)); | 1166 unittest.expect(o, unittest.hasLength(2)); |
1167 checkSplitInt64(o[0]); | 1167 checkSplitInt64(o[0]); |
1168 checkSplitInt64(o[1]); | 1168 checkSplitInt64(o[1]); |
1169 } | 1169 } |
1170 | 1170 |
1171 core.int buildCounterIntegerList = 0; | 1171 core.int buildCounterIntegerList = 0; |
1172 buildIntegerList() { | 1172 buildIntegerList() { |
1173 var o = new api.IntegerList(); | 1173 var o = new api.IntegerList(); |
1174 buildCounterIntegerList++; | 1174 buildCounterIntegerList++; |
1175 if (buildCounterIntegerList < 3) { | 1175 if (buildCounterIntegerList < 3) { |
1176 o.elements = buildUnnamed3467(); | 1176 o.elements = buildUnnamed2941(); |
1177 } | 1177 } |
1178 buildCounterIntegerList--; | 1178 buildCounterIntegerList--; |
1179 return o; | 1179 return o; |
1180 } | 1180 } |
1181 | 1181 |
1182 checkIntegerList(api.IntegerList o) { | 1182 checkIntegerList(api.IntegerList o) { |
1183 buildCounterIntegerList++; | 1183 buildCounterIntegerList++; |
1184 if (buildCounterIntegerList < 3) { | 1184 if (buildCounterIntegerList < 3) { |
1185 checkUnnamed3467(o.elements); | 1185 checkUnnamed2941(o.elements); |
1186 } | 1186 } |
1187 buildCounterIntegerList--; | 1187 buildCounterIntegerList--; |
1188 } | 1188 } |
1189 | 1189 |
1190 core.int buildCounterIntegerMean = 0; | 1190 core.int buildCounterIntegerMean = 0; |
1191 buildIntegerMean() { | 1191 buildIntegerMean() { |
1192 var o = new api.IntegerMean(); | 1192 var o = new api.IntegerMean(); |
1193 buildCounterIntegerMean++; | 1193 buildCounterIntegerMean++; |
1194 if (buildCounterIntegerMean < 3) { | 1194 if (buildCounterIntegerMean < 3) { |
1195 o.count = buildSplitInt64(); | 1195 o.count = buildSplitInt64(); |
1196 o.sum = buildSplitInt64(); | 1196 o.sum = buildSplitInt64(); |
1197 } | 1197 } |
1198 buildCounterIntegerMean--; | 1198 buildCounterIntegerMean--; |
1199 return o; | 1199 return o; |
1200 } | 1200 } |
1201 | 1201 |
1202 checkIntegerMean(api.IntegerMean o) { | 1202 checkIntegerMean(api.IntegerMean o) { |
1203 buildCounterIntegerMean++; | 1203 buildCounterIntegerMean++; |
1204 if (buildCounterIntegerMean < 3) { | 1204 if (buildCounterIntegerMean < 3) { |
1205 checkSplitInt64(o.count); | 1205 checkSplitInt64(o.count); |
1206 checkSplitInt64(o.sum); | 1206 checkSplitInt64(o.sum); |
1207 } | 1207 } |
1208 buildCounterIntegerMean--; | 1208 buildCounterIntegerMean--; |
1209 } | 1209 } |
1210 | 1210 |
1211 buildUnnamed3468() { | 1211 buildUnnamed2942() { |
1212 var o = new core.Map<core.String, core.String>(); | 1212 var o = new core.Map<core.String, core.String>(); |
1213 o["x"] = "foo"; | 1213 o["x"] = "foo"; |
1214 o["y"] = "foo"; | 1214 o["y"] = "foo"; |
1215 return o; | 1215 return o; |
1216 } | 1216 } |
1217 | 1217 |
1218 checkUnnamed3468(core.Map<core.String, core.String> o) { | 1218 checkUnnamed2942(core.Map<core.String, core.String> o) { |
1219 unittest.expect(o, unittest.hasLength(2)); | 1219 unittest.expect(o, unittest.hasLength(2)); |
1220 unittest.expect(o["x"], unittest.equals('foo')); | 1220 unittest.expect(o["x"], unittest.equals('foo')); |
1221 unittest.expect(o["y"], unittest.equals('foo')); | 1221 unittest.expect(o["y"], unittest.equals('foo')); |
1222 } | 1222 } |
1223 | 1223 |
1224 buildUnnamed3469() { | 1224 buildUnnamed2943() { |
1225 var o = new core.List<api.ExecutionStageState>(); | 1225 var o = new core.List<api.ExecutionStageState>(); |
1226 o.add(buildExecutionStageState()); | 1226 o.add(buildExecutionStageState()); |
1227 o.add(buildExecutionStageState()); | 1227 o.add(buildExecutionStageState()); |
1228 return o; | 1228 return o; |
1229 } | 1229 } |
1230 | 1230 |
1231 checkUnnamed3469(core.List<api.ExecutionStageState> o) { | 1231 checkUnnamed2943(core.List<api.ExecutionStageState> o) { |
1232 unittest.expect(o, unittest.hasLength(2)); | 1232 unittest.expect(o, unittest.hasLength(2)); |
1233 checkExecutionStageState(o[0]); | 1233 checkExecutionStageState(o[0]); |
1234 checkExecutionStageState(o[1]); | 1234 checkExecutionStageState(o[1]); |
1235 } | 1235 } |
1236 | 1236 |
1237 buildUnnamed3470() { | 1237 buildUnnamed2944() { |
1238 var o = new core.List<api.Step>(); | 1238 var o = new core.List<api.Step>(); |
1239 o.add(buildStep()); | 1239 o.add(buildStep()); |
1240 o.add(buildStep()); | 1240 o.add(buildStep()); |
1241 return o; | 1241 return o; |
1242 } | 1242 } |
1243 | 1243 |
1244 checkUnnamed3470(core.List<api.Step> o) { | 1244 checkUnnamed2944(core.List<api.Step> o) { |
1245 unittest.expect(o, unittest.hasLength(2)); | 1245 unittest.expect(o, unittest.hasLength(2)); |
1246 checkStep(o[0]); | 1246 checkStep(o[0]); |
1247 checkStep(o[1]); | 1247 checkStep(o[1]); |
1248 } | 1248 } |
1249 | 1249 |
1250 buildUnnamed3471() { | 1250 buildUnnamed2945() { |
1251 var o = new core.List<core.String>(); | 1251 var o = new core.List<core.String>(); |
1252 o.add("foo"); | 1252 o.add("foo"); |
1253 o.add("foo"); | 1253 o.add("foo"); |
1254 return o; | 1254 return o; |
1255 } | 1255 } |
1256 | 1256 |
1257 checkUnnamed3471(core.List<core.String> o) { | 1257 checkUnnamed2945(core.List<core.String> o) { |
1258 unittest.expect(o, unittest.hasLength(2)); | 1258 unittest.expect(o, unittest.hasLength(2)); |
1259 unittest.expect(o[0], unittest.equals('foo')); | 1259 unittest.expect(o[0], unittest.equals('foo')); |
1260 unittest.expect(o[1], unittest.equals('foo')); | 1260 unittest.expect(o[1], unittest.equals('foo')); |
1261 } | 1261 } |
1262 | 1262 |
1263 buildUnnamed3472() { | 1263 buildUnnamed2946() { |
1264 var o = new core.Map<core.String, core.String>(); | 1264 var o = new core.Map<core.String, core.String>(); |
1265 o["x"] = "foo"; | 1265 o["x"] = "foo"; |
1266 o["y"] = "foo"; | 1266 o["y"] = "foo"; |
1267 return o; | 1267 return o; |
1268 } | 1268 } |
1269 | 1269 |
1270 checkUnnamed3472(core.Map<core.String, core.String> o) { | 1270 checkUnnamed2946(core.Map<core.String, core.String> o) { |
1271 unittest.expect(o, unittest.hasLength(2)); | 1271 unittest.expect(o, unittest.hasLength(2)); |
1272 unittest.expect(o["x"], unittest.equals('foo')); | 1272 unittest.expect(o["x"], unittest.equals('foo')); |
1273 unittest.expect(o["y"], unittest.equals('foo')); | 1273 unittest.expect(o["y"], unittest.equals('foo')); |
1274 } | 1274 } |
1275 | 1275 |
1276 core.int buildCounterJob = 0; | 1276 core.int buildCounterJob = 0; |
1277 buildJob() { | 1277 buildJob() { |
1278 var o = new api.Job(); | 1278 var o = new api.Job(); |
1279 buildCounterJob++; | 1279 buildCounterJob++; |
1280 if (buildCounterJob < 3) { | 1280 if (buildCounterJob < 3) { |
1281 o.clientRequestId = "foo"; | 1281 o.clientRequestId = "foo"; |
1282 o.createTime = "foo"; | 1282 o.createTime = "foo"; |
1283 o.currentState = "foo"; | 1283 o.currentState = "foo"; |
1284 o.currentStateTime = "foo"; | 1284 o.currentStateTime = "foo"; |
1285 o.environment = buildEnvironment(); | 1285 o.environment = buildEnvironment(); |
1286 o.executionInfo = buildJobExecutionInfo(); | 1286 o.executionInfo = buildJobExecutionInfo(); |
1287 o.id = "foo"; | 1287 o.id = "foo"; |
1288 o.labels = buildUnnamed3468(); | 1288 o.labels = buildUnnamed2942(); |
1289 o.location = "foo"; | 1289 o.location = "foo"; |
1290 o.name = "foo"; | 1290 o.name = "foo"; |
1291 o.pipelineDescription = buildPipelineDescription(); | 1291 o.pipelineDescription = buildPipelineDescription(); |
1292 o.projectId = "foo"; | 1292 o.projectId = "foo"; |
1293 o.replaceJobId = "foo"; | 1293 o.replaceJobId = "foo"; |
1294 o.replacedByJobId = "foo"; | 1294 o.replacedByJobId = "foo"; |
1295 o.requestedState = "foo"; | 1295 o.requestedState = "foo"; |
1296 o.stageStates = buildUnnamed3469(); | 1296 o.stageStates = buildUnnamed2943(); |
1297 o.steps = buildUnnamed3470(); | 1297 o.steps = buildUnnamed2944(); |
1298 o.tempFiles = buildUnnamed3471(); | 1298 o.tempFiles = buildUnnamed2945(); |
1299 o.transformNameMapping = buildUnnamed3472(); | 1299 o.transformNameMapping = buildUnnamed2946(); |
1300 o.type = "foo"; | 1300 o.type = "foo"; |
1301 } | 1301 } |
1302 buildCounterJob--; | 1302 buildCounterJob--; |
1303 return o; | 1303 return o; |
1304 } | 1304 } |
1305 | 1305 |
1306 checkJob(api.Job o) { | 1306 checkJob(api.Job o) { |
1307 buildCounterJob++; | 1307 buildCounterJob++; |
1308 if (buildCounterJob < 3) { | 1308 if (buildCounterJob < 3) { |
1309 unittest.expect(o.clientRequestId, unittest.equals('foo')); | 1309 unittest.expect(o.clientRequestId, unittest.equals('foo')); |
1310 unittest.expect(o.createTime, unittest.equals('foo')); | 1310 unittest.expect(o.createTime, unittest.equals('foo')); |
1311 unittest.expect(o.currentState, unittest.equals('foo')); | 1311 unittest.expect(o.currentState, unittest.equals('foo')); |
1312 unittest.expect(o.currentStateTime, unittest.equals('foo')); | 1312 unittest.expect(o.currentStateTime, unittest.equals('foo')); |
1313 checkEnvironment(o.environment); | 1313 checkEnvironment(o.environment); |
1314 checkJobExecutionInfo(o.executionInfo); | 1314 checkJobExecutionInfo(o.executionInfo); |
1315 unittest.expect(o.id, unittest.equals('foo')); | 1315 unittest.expect(o.id, unittest.equals('foo')); |
1316 checkUnnamed3468(o.labels); | 1316 checkUnnamed2942(o.labels); |
1317 unittest.expect(o.location, unittest.equals('foo')); | 1317 unittest.expect(o.location, unittest.equals('foo')); |
1318 unittest.expect(o.name, unittest.equals('foo')); | 1318 unittest.expect(o.name, unittest.equals('foo')); |
1319 checkPipelineDescription(o.pipelineDescription); | 1319 checkPipelineDescription(o.pipelineDescription); |
1320 unittest.expect(o.projectId, unittest.equals('foo')); | 1320 unittest.expect(o.projectId, unittest.equals('foo')); |
1321 unittest.expect(o.replaceJobId, unittest.equals('foo')); | 1321 unittest.expect(o.replaceJobId, unittest.equals('foo')); |
1322 unittest.expect(o.replacedByJobId, unittest.equals('foo')); | 1322 unittest.expect(o.replacedByJobId, unittest.equals('foo')); |
1323 unittest.expect(o.requestedState, unittest.equals('foo')); | 1323 unittest.expect(o.requestedState, unittest.equals('foo')); |
1324 checkUnnamed3469(o.stageStates); | 1324 checkUnnamed2943(o.stageStates); |
1325 checkUnnamed3470(o.steps); | 1325 checkUnnamed2944(o.steps); |
1326 checkUnnamed3471(o.tempFiles); | 1326 checkUnnamed2945(o.tempFiles); |
1327 checkUnnamed3472(o.transformNameMapping); | 1327 checkUnnamed2946(o.transformNameMapping); |
1328 unittest.expect(o.type, unittest.equals('foo')); | 1328 unittest.expect(o.type, unittest.equals('foo')); |
1329 } | 1329 } |
1330 buildCounterJob--; | 1330 buildCounterJob--; |
1331 } | 1331 } |
1332 | 1332 |
1333 buildUnnamed3473() { | 1333 buildUnnamed2947() { |
1334 var o = new core.Map<core.String, api.JobExecutionStageInfo>(); | 1334 var o = new core.Map<core.String, api.JobExecutionStageInfo>(); |
1335 o["x"] = buildJobExecutionStageInfo(); | 1335 o["x"] = buildJobExecutionStageInfo(); |
1336 o["y"] = buildJobExecutionStageInfo(); | 1336 o["y"] = buildJobExecutionStageInfo(); |
1337 return o; | 1337 return o; |
1338 } | 1338 } |
1339 | 1339 |
1340 checkUnnamed3473(core.Map<core.String, api.JobExecutionStageInfo> o) { | 1340 checkUnnamed2947(core.Map<core.String, api.JobExecutionStageInfo> o) { |
1341 unittest.expect(o, unittest.hasLength(2)); | 1341 unittest.expect(o, unittest.hasLength(2)); |
1342 checkJobExecutionStageInfo(o["x"]); | 1342 checkJobExecutionStageInfo(o["x"]); |
1343 checkJobExecutionStageInfo(o["y"]); | 1343 checkJobExecutionStageInfo(o["y"]); |
1344 } | 1344 } |
1345 | 1345 |
1346 core.int buildCounterJobExecutionInfo = 0; | 1346 core.int buildCounterJobExecutionInfo = 0; |
1347 buildJobExecutionInfo() { | 1347 buildJobExecutionInfo() { |
1348 var o = new api.JobExecutionInfo(); | 1348 var o = new api.JobExecutionInfo(); |
1349 buildCounterJobExecutionInfo++; | 1349 buildCounterJobExecutionInfo++; |
1350 if (buildCounterJobExecutionInfo < 3) { | 1350 if (buildCounterJobExecutionInfo < 3) { |
1351 o.stages = buildUnnamed3473(); | 1351 o.stages = buildUnnamed2947(); |
1352 } | 1352 } |
1353 buildCounterJobExecutionInfo--; | 1353 buildCounterJobExecutionInfo--; |
1354 return o; | 1354 return o; |
1355 } | 1355 } |
1356 | 1356 |
1357 checkJobExecutionInfo(api.JobExecutionInfo o) { | 1357 checkJobExecutionInfo(api.JobExecutionInfo o) { |
1358 buildCounterJobExecutionInfo++; | 1358 buildCounterJobExecutionInfo++; |
1359 if (buildCounterJobExecutionInfo < 3) { | 1359 if (buildCounterJobExecutionInfo < 3) { |
1360 checkUnnamed3473(o.stages); | 1360 checkUnnamed2947(o.stages); |
1361 } | 1361 } |
1362 buildCounterJobExecutionInfo--; | 1362 buildCounterJobExecutionInfo--; |
1363 } | 1363 } |
1364 | 1364 |
1365 buildUnnamed3474() { | 1365 buildUnnamed2948() { |
1366 var o = new core.List<core.String>(); | 1366 var o = new core.List<core.String>(); |
1367 o.add("foo"); | 1367 o.add("foo"); |
1368 o.add("foo"); | 1368 o.add("foo"); |
1369 return o; | 1369 return o; |
1370 } | 1370 } |
1371 | 1371 |
1372 checkUnnamed3474(core.List<core.String> o) { | 1372 checkUnnamed2948(core.List<core.String> o) { |
1373 unittest.expect(o, unittest.hasLength(2)); | 1373 unittest.expect(o, unittest.hasLength(2)); |
1374 unittest.expect(o[0], unittest.equals('foo')); | 1374 unittest.expect(o[0], unittest.equals('foo')); |
1375 unittest.expect(o[1], unittest.equals('foo')); | 1375 unittest.expect(o[1], unittest.equals('foo')); |
1376 } | 1376 } |
1377 | 1377 |
1378 core.int buildCounterJobExecutionStageInfo = 0; | 1378 core.int buildCounterJobExecutionStageInfo = 0; |
1379 buildJobExecutionStageInfo() { | 1379 buildJobExecutionStageInfo() { |
1380 var o = new api.JobExecutionStageInfo(); | 1380 var o = new api.JobExecutionStageInfo(); |
1381 buildCounterJobExecutionStageInfo++; | 1381 buildCounterJobExecutionStageInfo++; |
1382 if (buildCounterJobExecutionStageInfo < 3) { | 1382 if (buildCounterJobExecutionStageInfo < 3) { |
1383 o.stepName = buildUnnamed3474(); | 1383 o.stepName = buildUnnamed2948(); |
1384 } | 1384 } |
1385 buildCounterJobExecutionStageInfo--; | 1385 buildCounterJobExecutionStageInfo--; |
1386 return o; | 1386 return o; |
1387 } | 1387 } |
1388 | 1388 |
1389 checkJobExecutionStageInfo(api.JobExecutionStageInfo o) { | 1389 checkJobExecutionStageInfo(api.JobExecutionStageInfo o) { |
1390 buildCounterJobExecutionStageInfo++; | 1390 buildCounterJobExecutionStageInfo++; |
1391 if (buildCounterJobExecutionStageInfo < 3) { | 1391 if (buildCounterJobExecutionStageInfo < 3) { |
1392 checkUnnamed3474(o.stepName); | 1392 checkUnnamed2948(o.stepName); |
1393 } | 1393 } |
1394 buildCounterJobExecutionStageInfo--; | 1394 buildCounterJobExecutionStageInfo--; |
1395 } | 1395 } |
1396 | 1396 |
1397 core.int buildCounterJobMessage = 0; | 1397 core.int buildCounterJobMessage = 0; |
1398 buildJobMessage() { | 1398 buildJobMessage() { |
1399 var o = new api.JobMessage(); | 1399 var o = new api.JobMessage(); |
1400 buildCounterJobMessage++; | 1400 buildCounterJobMessage++; |
1401 if (buildCounterJobMessage < 3) { | 1401 if (buildCounterJobMessage < 3) { |
1402 o.id = "foo"; | 1402 o.id = "foo"; |
1403 o.messageImportance = "foo"; | 1403 o.messageImportance = "foo"; |
1404 o.messageText = "foo"; | 1404 o.messageText = "foo"; |
1405 o.time = "foo"; | 1405 o.time = "foo"; |
1406 } | 1406 } |
1407 buildCounterJobMessage--; | 1407 buildCounterJobMessage--; |
1408 return o; | 1408 return o; |
1409 } | 1409 } |
1410 | 1410 |
1411 checkJobMessage(api.JobMessage o) { | 1411 checkJobMessage(api.JobMessage o) { |
1412 buildCounterJobMessage++; | 1412 buildCounterJobMessage++; |
1413 if (buildCounterJobMessage < 3) { | 1413 if (buildCounterJobMessage < 3) { |
1414 unittest.expect(o.id, unittest.equals('foo')); | 1414 unittest.expect(o.id, unittest.equals('foo')); |
1415 unittest.expect(o.messageImportance, unittest.equals('foo')); | 1415 unittest.expect(o.messageImportance, unittest.equals('foo')); |
1416 unittest.expect(o.messageText, unittest.equals('foo')); | 1416 unittest.expect(o.messageText, unittest.equals('foo')); |
1417 unittest.expect(o.time, unittest.equals('foo')); | 1417 unittest.expect(o.time, unittest.equals('foo')); |
1418 } | 1418 } |
1419 buildCounterJobMessage--; | 1419 buildCounterJobMessage--; |
1420 } | 1420 } |
1421 | 1421 |
1422 buildUnnamed3475() { | 1422 buildUnnamed2949() { |
1423 var o = new core.List<api.MetricUpdate>(); | 1423 var o = new core.List<api.MetricUpdate>(); |
1424 o.add(buildMetricUpdate()); | 1424 o.add(buildMetricUpdate()); |
1425 o.add(buildMetricUpdate()); | 1425 o.add(buildMetricUpdate()); |
1426 return o; | 1426 return o; |
1427 } | 1427 } |
1428 | 1428 |
1429 checkUnnamed3475(core.List<api.MetricUpdate> o) { | 1429 checkUnnamed2949(core.List<api.MetricUpdate> o) { |
1430 unittest.expect(o, unittest.hasLength(2)); | 1430 unittest.expect(o, unittest.hasLength(2)); |
1431 checkMetricUpdate(o[0]); | 1431 checkMetricUpdate(o[0]); |
1432 checkMetricUpdate(o[1]); | 1432 checkMetricUpdate(o[1]); |
1433 } | 1433 } |
1434 | 1434 |
1435 core.int buildCounterJobMetrics = 0; | 1435 core.int buildCounterJobMetrics = 0; |
1436 buildJobMetrics() { | 1436 buildJobMetrics() { |
1437 var o = new api.JobMetrics(); | 1437 var o = new api.JobMetrics(); |
1438 buildCounterJobMetrics++; | 1438 buildCounterJobMetrics++; |
1439 if (buildCounterJobMetrics < 3) { | 1439 if (buildCounterJobMetrics < 3) { |
1440 o.metricTime = "foo"; | 1440 o.metricTime = "foo"; |
1441 o.metrics = buildUnnamed3475(); | 1441 o.metrics = buildUnnamed2949(); |
1442 } | 1442 } |
1443 buildCounterJobMetrics--; | 1443 buildCounterJobMetrics--; |
1444 return o; | 1444 return o; |
1445 } | 1445 } |
1446 | 1446 |
1447 checkJobMetrics(api.JobMetrics o) { | 1447 checkJobMetrics(api.JobMetrics o) { |
1448 buildCounterJobMetrics++; | 1448 buildCounterJobMetrics++; |
1449 if (buildCounterJobMetrics < 3) { | 1449 if (buildCounterJobMetrics < 3) { |
1450 unittest.expect(o.metricTime, unittest.equals('foo')); | 1450 unittest.expect(o.metricTime, unittest.equals('foo')); |
1451 checkUnnamed3475(o.metrics); | 1451 checkUnnamed2949(o.metrics); |
1452 } | 1452 } |
1453 buildCounterJobMetrics--; | 1453 buildCounterJobMetrics--; |
1454 } | 1454 } |
1455 | 1455 |
1456 core.int buildCounterKeyRangeDataDiskAssignment = 0; | 1456 core.int buildCounterKeyRangeDataDiskAssignment = 0; |
1457 buildKeyRangeDataDiskAssignment() { | 1457 buildKeyRangeDataDiskAssignment() { |
1458 var o = new api.KeyRangeDataDiskAssignment(); | 1458 var o = new api.KeyRangeDataDiskAssignment(); |
1459 buildCounterKeyRangeDataDiskAssignment++; | 1459 buildCounterKeyRangeDataDiskAssignment++; |
1460 if (buildCounterKeyRangeDataDiskAssignment < 3) { | 1460 if (buildCounterKeyRangeDataDiskAssignment < 3) { |
1461 o.dataDisk = "foo"; | 1461 o.dataDisk = "foo"; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1496 if (buildCounterKeyRangeLocation < 3) { | 1496 if (buildCounterKeyRangeLocation < 3) { |
1497 unittest.expect(o.dataDisk, unittest.equals('foo')); | 1497 unittest.expect(o.dataDisk, unittest.equals('foo')); |
1498 unittest.expect(o.deliveryEndpoint, unittest.equals('foo')); | 1498 unittest.expect(o.deliveryEndpoint, unittest.equals('foo')); |
1499 unittest.expect(o.deprecatedPersistentDirectory, unittest.equals('foo')); | 1499 unittest.expect(o.deprecatedPersistentDirectory, unittest.equals('foo')); |
1500 unittest.expect(o.end, unittest.equals('foo')); | 1500 unittest.expect(o.end, unittest.equals('foo')); |
1501 unittest.expect(o.start, unittest.equals('foo')); | 1501 unittest.expect(o.start, unittest.equals('foo')); |
1502 } | 1502 } |
1503 buildCounterKeyRangeLocation--; | 1503 buildCounterKeyRangeLocation--; |
1504 } | 1504 } |
1505 | 1505 |
1506 buildUnnamed3476() { | 1506 buildUnnamed2950() { |
1507 var o = new core.Map<core.String, core.String>(); | 1507 var o = new core.Map<core.String, core.String>(); |
1508 o["x"] = "foo"; | 1508 o["x"] = "foo"; |
1509 o["y"] = "foo"; | 1509 o["y"] = "foo"; |
1510 return o; | 1510 return o; |
1511 } | 1511 } |
1512 | 1512 |
1513 checkUnnamed3476(core.Map<core.String, core.String> o) { | 1513 checkUnnamed2950(core.Map<core.String, core.String> o) { |
1514 unittest.expect(o, unittest.hasLength(2)); | 1514 unittest.expect(o, unittest.hasLength(2)); |
1515 unittest.expect(o["x"], unittest.equals('foo')); | 1515 unittest.expect(o["x"], unittest.equals('foo')); |
1516 unittest.expect(o["y"], unittest.equals('foo')); | 1516 unittest.expect(o["y"], unittest.equals('foo')); |
1517 } | 1517 } |
1518 | 1518 |
1519 core.int buildCounterLaunchTemplateParameters = 0; | 1519 core.int buildCounterLaunchTemplateParameters = 0; |
1520 buildLaunchTemplateParameters() { | 1520 buildLaunchTemplateParameters() { |
1521 var o = new api.LaunchTemplateParameters(); | 1521 var o = new api.LaunchTemplateParameters(); |
1522 buildCounterLaunchTemplateParameters++; | 1522 buildCounterLaunchTemplateParameters++; |
1523 if (buildCounterLaunchTemplateParameters < 3) { | 1523 if (buildCounterLaunchTemplateParameters < 3) { |
1524 o.environment = buildRuntimeEnvironment(); | 1524 o.environment = buildRuntimeEnvironment(); |
1525 o.jobName = "foo"; | 1525 o.jobName = "foo"; |
1526 o.parameters = buildUnnamed3476(); | 1526 o.parameters = buildUnnamed2950(); |
1527 } | 1527 } |
1528 buildCounterLaunchTemplateParameters--; | 1528 buildCounterLaunchTemplateParameters--; |
1529 return o; | 1529 return o; |
1530 } | 1530 } |
1531 | 1531 |
1532 checkLaunchTemplateParameters(api.LaunchTemplateParameters o) { | 1532 checkLaunchTemplateParameters(api.LaunchTemplateParameters o) { |
1533 buildCounterLaunchTemplateParameters++; | 1533 buildCounterLaunchTemplateParameters++; |
1534 if (buildCounterLaunchTemplateParameters < 3) { | 1534 if (buildCounterLaunchTemplateParameters < 3) { |
1535 checkRuntimeEnvironment(o.environment); | 1535 checkRuntimeEnvironment(o.environment); |
1536 unittest.expect(o.jobName, unittest.equals('foo')); | 1536 unittest.expect(o.jobName, unittest.equals('foo')); |
1537 checkUnnamed3476(o.parameters); | 1537 checkUnnamed2950(o.parameters); |
1538 } | 1538 } |
1539 buildCounterLaunchTemplateParameters--; | 1539 buildCounterLaunchTemplateParameters--; |
1540 } | 1540 } |
1541 | 1541 |
1542 core.int buildCounterLaunchTemplateResponse = 0; | 1542 core.int buildCounterLaunchTemplateResponse = 0; |
1543 buildLaunchTemplateResponse() { | 1543 buildLaunchTemplateResponse() { |
1544 var o = new api.LaunchTemplateResponse(); | 1544 var o = new api.LaunchTemplateResponse(); |
1545 buildCounterLaunchTemplateResponse++; | 1545 buildCounterLaunchTemplateResponse++; |
1546 if (buildCounterLaunchTemplateResponse < 3) { | 1546 if (buildCounterLaunchTemplateResponse < 3) { |
1547 o.job = buildJob(); | 1547 o.job = buildJob(); |
1548 } | 1548 } |
1549 buildCounterLaunchTemplateResponse--; | 1549 buildCounterLaunchTemplateResponse--; |
1550 return o; | 1550 return o; |
1551 } | 1551 } |
1552 | 1552 |
1553 checkLaunchTemplateResponse(api.LaunchTemplateResponse o) { | 1553 checkLaunchTemplateResponse(api.LaunchTemplateResponse o) { |
1554 buildCounterLaunchTemplateResponse++; | 1554 buildCounterLaunchTemplateResponse++; |
1555 if (buildCounterLaunchTemplateResponse < 3) { | 1555 if (buildCounterLaunchTemplateResponse < 3) { |
1556 checkJob(o.job); | 1556 checkJob(o.job); |
1557 } | 1557 } |
1558 buildCounterLaunchTemplateResponse--; | 1558 buildCounterLaunchTemplateResponse--; |
1559 } | 1559 } |
1560 | 1560 |
1561 buildUnnamed3477() { | 1561 buildUnnamed2951() { |
1562 var o = new core.List<core.String>(); | 1562 var o = new core.List<core.String>(); |
1563 o.add("foo"); | 1563 o.add("foo"); |
1564 o.add("foo"); | 1564 o.add("foo"); |
1565 return o; | 1565 return o; |
1566 } | 1566 } |
1567 | 1567 |
1568 checkUnnamed3477(core.List<core.String> o) { | 1568 checkUnnamed2951(core.List<core.String> o) { |
1569 unittest.expect(o, unittest.hasLength(2)); | 1569 unittest.expect(o, unittest.hasLength(2)); |
1570 unittest.expect(o[0], unittest.equals('foo')); | 1570 unittest.expect(o[0], unittest.equals('foo')); |
1571 unittest.expect(o[1], unittest.equals('foo')); | 1571 unittest.expect(o[1], unittest.equals('foo')); |
1572 } | 1572 } |
1573 | 1573 |
1574 buildUnnamed3478() { | 1574 buildUnnamed2952() { |
1575 var o = new core.List<core.String>(); | 1575 var o = new core.List<core.String>(); |
1576 o.add("foo"); | 1576 o.add("foo"); |
1577 o.add("foo"); | 1577 o.add("foo"); |
1578 return o; | 1578 return o; |
1579 } | 1579 } |
1580 | 1580 |
1581 checkUnnamed3478(core.List<core.String> o) { | 1581 checkUnnamed2952(core.List<core.String> o) { |
1582 unittest.expect(o, unittest.hasLength(2)); | 1582 unittest.expect(o, unittest.hasLength(2)); |
1583 unittest.expect(o[0], unittest.equals('foo')); | 1583 unittest.expect(o[0], unittest.equals('foo')); |
1584 unittest.expect(o[1], unittest.equals('foo')); | 1584 unittest.expect(o[1], unittest.equals('foo')); |
1585 } | 1585 } |
1586 | 1586 |
1587 core.int buildCounterLeaseWorkItemRequest = 0; | 1587 core.int buildCounterLeaseWorkItemRequest = 0; |
1588 buildLeaseWorkItemRequest() { | 1588 buildLeaseWorkItemRequest() { |
1589 var o = new api.LeaseWorkItemRequest(); | 1589 var o = new api.LeaseWorkItemRequest(); |
1590 buildCounterLeaseWorkItemRequest++; | 1590 buildCounterLeaseWorkItemRequest++; |
1591 if (buildCounterLeaseWorkItemRequest < 3) { | 1591 if (buildCounterLeaseWorkItemRequest < 3) { |
1592 o.currentWorkerTime = "foo"; | 1592 o.currentWorkerTime = "foo"; |
1593 o.location = "foo"; | 1593 o.location = "foo"; |
1594 o.requestedLeaseDuration = "foo"; | 1594 o.requestedLeaseDuration = "foo"; |
1595 o.workItemTypes = buildUnnamed3477(); | 1595 o.workItemTypes = buildUnnamed2951(); |
1596 o.workerCapabilities = buildUnnamed3478(); | 1596 o.workerCapabilities = buildUnnamed2952(); |
1597 o.workerId = "foo"; | 1597 o.workerId = "foo"; |
1598 } | 1598 } |
1599 buildCounterLeaseWorkItemRequest--; | 1599 buildCounterLeaseWorkItemRequest--; |
1600 return o; | 1600 return o; |
1601 } | 1601 } |
1602 | 1602 |
1603 checkLeaseWorkItemRequest(api.LeaseWorkItemRequest o) { | 1603 checkLeaseWorkItemRequest(api.LeaseWorkItemRequest o) { |
1604 buildCounterLeaseWorkItemRequest++; | 1604 buildCounterLeaseWorkItemRequest++; |
1605 if (buildCounterLeaseWorkItemRequest < 3) { | 1605 if (buildCounterLeaseWorkItemRequest < 3) { |
1606 unittest.expect(o.currentWorkerTime, unittest.equals('foo')); | 1606 unittest.expect(o.currentWorkerTime, unittest.equals('foo')); |
1607 unittest.expect(o.location, unittest.equals('foo')); | 1607 unittest.expect(o.location, unittest.equals('foo')); |
1608 unittest.expect(o.requestedLeaseDuration, unittest.equals('foo')); | 1608 unittest.expect(o.requestedLeaseDuration, unittest.equals('foo')); |
1609 checkUnnamed3477(o.workItemTypes); | 1609 checkUnnamed2951(o.workItemTypes); |
1610 checkUnnamed3478(o.workerCapabilities); | 1610 checkUnnamed2952(o.workerCapabilities); |
1611 unittest.expect(o.workerId, unittest.equals('foo')); | 1611 unittest.expect(o.workerId, unittest.equals('foo')); |
1612 } | 1612 } |
1613 buildCounterLeaseWorkItemRequest--; | 1613 buildCounterLeaseWorkItemRequest--; |
1614 } | 1614 } |
1615 | 1615 |
1616 buildUnnamed3479() { | 1616 buildUnnamed2953() { |
1617 var o = new core.List<api.WorkItem>(); | 1617 var o = new core.List<api.WorkItem>(); |
1618 o.add(buildWorkItem()); | 1618 o.add(buildWorkItem()); |
1619 o.add(buildWorkItem()); | 1619 o.add(buildWorkItem()); |
1620 return o; | 1620 return o; |
1621 } | 1621 } |
1622 | 1622 |
1623 checkUnnamed3479(core.List<api.WorkItem> o) { | 1623 checkUnnamed2953(core.List<api.WorkItem> o) { |
1624 unittest.expect(o, unittest.hasLength(2)); | 1624 unittest.expect(o, unittest.hasLength(2)); |
1625 checkWorkItem(o[0]); | 1625 checkWorkItem(o[0]); |
1626 checkWorkItem(o[1]); | 1626 checkWorkItem(o[1]); |
1627 } | 1627 } |
1628 | 1628 |
1629 core.int buildCounterLeaseWorkItemResponse = 0; | 1629 core.int buildCounterLeaseWorkItemResponse = 0; |
1630 buildLeaseWorkItemResponse() { | 1630 buildLeaseWorkItemResponse() { |
1631 var o = new api.LeaseWorkItemResponse(); | 1631 var o = new api.LeaseWorkItemResponse(); |
1632 buildCounterLeaseWorkItemResponse++; | 1632 buildCounterLeaseWorkItemResponse++; |
1633 if (buildCounterLeaseWorkItemResponse < 3) { | 1633 if (buildCounterLeaseWorkItemResponse < 3) { |
1634 o.workItems = buildUnnamed3479(); | 1634 o.workItems = buildUnnamed2953(); |
1635 } | 1635 } |
1636 buildCounterLeaseWorkItemResponse--; | 1636 buildCounterLeaseWorkItemResponse--; |
1637 return o; | 1637 return o; |
1638 } | 1638 } |
1639 | 1639 |
1640 checkLeaseWorkItemResponse(api.LeaseWorkItemResponse o) { | 1640 checkLeaseWorkItemResponse(api.LeaseWorkItemResponse o) { |
1641 buildCounterLeaseWorkItemResponse++; | 1641 buildCounterLeaseWorkItemResponse++; |
1642 if (buildCounterLeaseWorkItemResponse < 3) { | 1642 if (buildCounterLeaseWorkItemResponse < 3) { |
1643 checkUnnamed3479(o.workItems); | 1643 checkUnnamed2953(o.workItems); |
1644 } | 1644 } |
1645 buildCounterLeaseWorkItemResponse--; | 1645 buildCounterLeaseWorkItemResponse--; |
1646 } | 1646 } |
1647 | 1647 |
1648 buildUnnamed3480() { | 1648 buildUnnamed2954() { |
1649 var o = new core.List<api.AutoscalingEvent>(); | 1649 var o = new core.List<api.AutoscalingEvent>(); |
1650 o.add(buildAutoscalingEvent()); | 1650 o.add(buildAutoscalingEvent()); |
1651 o.add(buildAutoscalingEvent()); | 1651 o.add(buildAutoscalingEvent()); |
1652 return o; | 1652 return o; |
1653 } | 1653 } |
1654 | 1654 |
1655 checkUnnamed3480(core.List<api.AutoscalingEvent> o) { | 1655 checkUnnamed2954(core.List<api.AutoscalingEvent> o) { |
1656 unittest.expect(o, unittest.hasLength(2)); | 1656 unittest.expect(o, unittest.hasLength(2)); |
1657 checkAutoscalingEvent(o[0]); | 1657 checkAutoscalingEvent(o[0]); |
1658 checkAutoscalingEvent(o[1]); | 1658 checkAutoscalingEvent(o[1]); |
1659 } | 1659 } |
1660 | 1660 |
1661 buildUnnamed3481() { | 1661 buildUnnamed2955() { |
1662 var o = new core.List<api.JobMessage>(); | 1662 var o = new core.List<api.JobMessage>(); |
1663 o.add(buildJobMessage()); | 1663 o.add(buildJobMessage()); |
1664 o.add(buildJobMessage()); | 1664 o.add(buildJobMessage()); |
1665 return o; | 1665 return o; |
1666 } | 1666 } |
1667 | 1667 |
1668 checkUnnamed3481(core.List<api.JobMessage> o) { | 1668 checkUnnamed2955(core.List<api.JobMessage> o) { |
1669 unittest.expect(o, unittest.hasLength(2)); | 1669 unittest.expect(o, unittest.hasLength(2)); |
1670 checkJobMessage(o[0]); | 1670 checkJobMessage(o[0]); |
1671 checkJobMessage(o[1]); | 1671 checkJobMessage(o[1]); |
1672 } | 1672 } |
1673 | 1673 |
1674 core.int buildCounterListJobMessagesResponse = 0; | 1674 core.int buildCounterListJobMessagesResponse = 0; |
1675 buildListJobMessagesResponse() { | 1675 buildListJobMessagesResponse() { |
1676 var o = new api.ListJobMessagesResponse(); | 1676 var o = new api.ListJobMessagesResponse(); |
1677 buildCounterListJobMessagesResponse++; | 1677 buildCounterListJobMessagesResponse++; |
1678 if (buildCounterListJobMessagesResponse < 3) { | 1678 if (buildCounterListJobMessagesResponse < 3) { |
1679 o.autoscalingEvents = buildUnnamed3480(); | 1679 o.autoscalingEvents = buildUnnamed2954(); |
1680 o.jobMessages = buildUnnamed3481(); | 1680 o.jobMessages = buildUnnamed2955(); |
1681 o.nextPageToken = "foo"; | 1681 o.nextPageToken = "foo"; |
1682 } | 1682 } |
1683 buildCounterListJobMessagesResponse--; | 1683 buildCounterListJobMessagesResponse--; |
1684 return o; | 1684 return o; |
1685 } | 1685 } |
1686 | 1686 |
1687 checkListJobMessagesResponse(api.ListJobMessagesResponse o) { | 1687 checkListJobMessagesResponse(api.ListJobMessagesResponse o) { |
1688 buildCounterListJobMessagesResponse++; | 1688 buildCounterListJobMessagesResponse++; |
1689 if (buildCounterListJobMessagesResponse < 3) { | 1689 if (buildCounterListJobMessagesResponse < 3) { |
1690 checkUnnamed3480(o.autoscalingEvents); | 1690 checkUnnamed2954(o.autoscalingEvents); |
1691 checkUnnamed3481(o.jobMessages); | 1691 checkUnnamed2955(o.jobMessages); |
1692 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1692 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1693 } | 1693 } |
1694 buildCounterListJobMessagesResponse--; | 1694 buildCounterListJobMessagesResponse--; |
1695 } | 1695 } |
1696 | 1696 |
1697 buildUnnamed3482() { | 1697 buildUnnamed2956() { |
1698 var o = new core.List<api.FailedLocation>(); | 1698 var o = new core.List<api.FailedLocation>(); |
1699 o.add(buildFailedLocation()); | 1699 o.add(buildFailedLocation()); |
1700 o.add(buildFailedLocation()); | 1700 o.add(buildFailedLocation()); |
1701 return o; | 1701 return o; |
1702 } | 1702 } |
1703 | 1703 |
1704 checkUnnamed3482(core.List<api.FailedLocation> o) { | 1704 checkUnnamed2956(core.List<api.FailedLocation> o) { |
1705 unittest.expect(o, unittest.hasLength(2)); | 1705 unittest.expect(o, unittest.hasLength(2)); |
1706 checkFailedLocation(o[0]); | 1706 checkFailedLocation(o[0]); |
1707 checkFailedLocation(o[1]); | 1707 checkFailedLocation(o[1]); |
1708 } | 1708 } |
1709 | 1709 |
1710 buildUnnamed3483() { | 1710 buildUnnamed2957() { |
1711 var o = new core.List<api.Job>(); | 1711 var o = new core.List<api.Job>(); |
1712 o.add(buildJob()); | 1712 o.add(buildJob()); |
1713 o.add(buildJob()); | 1713 o.add(buildJob()); |
1714 return o; | 1714 return o; |
1715 } | 1715 } |
1716 | 1716 |
1717 checkUnnamed3483(core.List<api.Job> o) { | 1717 checkUnnamed2957(core.List<api.Job> o) { |
1718 unittest.expect(o, unittest.hasLength(2)); | 1718 unittest.expect(o, unittest.hasLength(2)); |
1719 checkJob(o[0]); | 1719 checkJob(o[0]); |
1720 checkJob(o[1]); | 1720 checkJob(o[1]); |
1721 } | 1721 } |
1722 | 1722 |
1723 core.int buildCounterListJobsResponse = 0; | 1723 core.int buildCounterListJobsResponse = 0; |
1724 buildListJobsResponse() { | 1724 buildListJobsResponse() { |
1725 var o = new api.ListJobsResponse(); | 1725 var o = new api.ListJobsResponse(); |
1726 buildCounterListJobsResponse++; | 1726 buildCounterListJobsResponse++; |
1727 if (buildCounterListJobsResponse < 3) { | 1727 if (buildCounterListJobsResponse < 3) { |
1728 o.failedLocation = buildUnnamed3482(); | 1728 o.failedLocation = buildUnnamed2956(); |
1729 o.jobs = buildUnnamed3483(); | 1729 o.jobs = buildUnnamed2957(); |
1730 o.nextPageToken = "foo"; | 1730 o.nextPageToken = "foo"; |
1731 } | 1731 } |
1732 buildCounterListJobsResponse--; | 1732 buildCounterListJobsResponse--; |
1733 return o; | 1733 return o; |
1734 } | 1734 } |
1735 | 1735 |
1736 checkListJobsResponse(api.ListJobsResponse o) { | 1736 checkListJobsResponse(api.ListJobsResponse o) { |
1737 buildCounterListJobsResponse++; | 1737 buildCounterListJobsResponse++; |
1738 if (buildCounterListJobsResponse < 3) { | 1738 if (buildCounterListJobsResponse < 3) { |
1739 checkUnnamed3482(o.failedLocation); | 1739 checkUnnamed2956(o.failedLocation); |
1740 checkUnnamed3483(o.jobs); | 1740 checkUnnamed2957(o.jobs); |
1741 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1741 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1742 } | 1742 } |
1743 buildCounterListJobsResponse--; | 1743 buildCounterListJobsResponse--; |
1744 } | 1744 } |
1745 | 1745 |
1746 core.int buildCounterLogBucket = 0; | 1746 core.int buildCounterLogBucket = 0; |
1747 buildLogBucket() { | 1747 buildLogBucket() { |
1748 var o = new api.LogBucket(); | 1748 var o = new api.LogBucket(); |
1749 buildCounterLogBucket++; | 1749 buildCounterLogBucket++; |
1750 if (buildCounterLogBucket < 3) { | 1750 if (buildCounterLogBucket < 3) { |
1751 o.count = "foo"; | 1751 o.count = "foo"; |
1752 o.log = 42; | 1752 o.log = 42; |
1753 } | 1753 } |
1754 buildCounterLogBucket--; | 1754 buildCounterLogBucket--; |
1755 return o; | 1755 return o; |
1756 } | 1756 } |
1757 | 1757 |
1758 checkLogBucket(api.LogBucket o) { | 1758 checkLogBucket(api.LogBucket o) { |
1759 buildCounterLogBucket++; | 1759 buildCounterLogBucket++; |
1760 if (buildCounterLogBucket < 3) { | 1760 if (buildCounterLogBucket < 3) { |
1761 unittest.expect(o.count, unittest.equals('foo')); | 1761 unittest.expect(o.count, unittest.equals('foo')); |
1762 unittest.expect(o.log, unittest.equals(42)); | 1762 unittest.expect(o.log, unittest.equals(42)); |
1763 } | 1763 } |
1764 buildCounterLogBucket--; | 1764 buildCounterLogBucket--; |
1765 } | 1765 } |
1766 | 1766 |
1767 buildUnnamed3484() { | 1767 buildUnnamed2958() { |
1768 var o = new core.List<api.ParallelInstruction>(); | 1768 var o = new core.List<api.ParallelInstruction>(); |
1769 o.add(buildParallelInstruction()); | 1769 o.add(buildParallelInstruction()); |
1770 o.add(buildParallelInstruction()); | 1770 o.add(buildParallelInstruction()); |
1771 return o; | 1771 return o; |
1772 } | 1772 } |
1773 | 1773 |
1774 checkUnnamed3484(core.List<api.ParallelInstruction> o) { | 1774 checkUnnamed2958(core.List<api.ParallelInstruction> o) { |
1775 unittest.expect(o, unittest.hasLength(2)); | 1775 unittest.expect(o, unittest.hasLength(2)); |
1776 checkParallelInstruction(o[0]); | 1776 checkParallelInstruction(o[0]); |
1777 checkParallelInstruction(o[1]); | 1777 checkParallelInstruction(o[1]); |
1778 } | 1778 } |
1779 | 1779 |
1780 core.int buildCounterMapTask = 0; | 1780 core.int buildCounterMapTask = 0; |
1781 buildMapTask() { | 1781 buildMapTask() { |
1782 var o = new api.MapTask(); | 1782 var o = new api.MapTask(); |
1783 buildCounterMapTask++; | 1783 buildCounterMapTask++; |
1784 if (buildCounterMapTask < 3) { | 1784 if (buildCounterMapTask < 3) { |
1785 o.instructions = buildUnnamed3484(); | 1785 o.instructions = buildUnnamed2958(); |
1786 o.stageName = "foo"; | 1786 o.stageName = "foo"; |
1787 o.systemName = "foo"; | 1787 o.systemName = "foo"; |
1788 } | 1788 } |
1789 buildCounterMapTask--; | 1789 buildCounterMapTask--; |
1790 return o; | 1790 return o; |
1791 } | 1791 } |
1792 | 1792 |
1793 checkMapTask(api.MapTask o) { | 1793 checkMapTask(api.MapTask o) { |
1794 buildCounterMapTask++; | 1794 buildCounterMapTask++; |
1795 if (buildCounterMapTask < 3) { | 1795 if (buildCounterMapTask < 3) { |
1796 checkUnnamed3484(o.instructions); | 1796 checkUnnamed2958(o.instructions); |
1797 unittest.expect(o.stageName, unittest.equals('foo')); | 1797 unittest.expect(o.stageName, unittest.equals('foo')); |
1798 unittest.expect(o.systemName, unittest.equals('foo')); | 1798 unittest.expect(o.systemName, unittest.equals('foo')); |
1799 } | 1799 } |
1800 buildCounterMapTask--; | 1800 buildCounterMapTask--; |
1801 } | 1801 } |
1802 | 1802 |
1803 core.int buildCounterMetricShortId = 0; | 1803 core.int buildCounterMetricShortId = 0; |
1804 buildMetricShortId() { | 1804 buildMetricShortId() { |
1805 var o = new api.MetricShortId(); | 1805 var o = new api.MetricShortId(); |
1806 buildCounterMetricShortId++; | 1806 buildCounterMetricShortId++; |
1807 if (buildCounterMetricShortId < 3) { | 1807 if (buildCounterMetricShortId < 3) { |
1808 o.metricIndex = 42; | 1808 o.metricIndex = 42; |
1809 o.shortId = "foo"; | 1809 o.shortId = "foo"; |
1810 } | 1810 } |
1811 buildCounterMetricShortId--; | 1811 buildCounterMetricShortId--; |
1812 return o; | 1812 return o; |
1813 } | 1813 } |
1814 | 1814 |
1815 checkMetricShortId(api.MetricShortId o) { | 1815 checkMetricShortId(api.MetricShortId o) { |
1816 buildCounterMetricShortId++; | 1816 buildCounterMetricShortId++; |
1817 if (buildCounterMetricShortId < 3) { | 1817 if (buildCounterMetricShortId < 3) { |
1818 unittest.expect(o.metricIndex, unittest.equals(42)); | 1818 unittest.expect(o.metricIndex, unittest.equals(42)); |
1819 unittest.expect(o.shortId, unittest.equals('foo')); | 1819 unittest.expect(o.shortId, unittest.equals('foo')); |
1820 } | 1820 } |
1821 buildCounterMetricShortId--; | 1821 buildCounterMetricShortId--; |
1822 } | 1822 } |
1823 | 1823 |
1824 buildUnnamed3485() { | 1824 buildUnnamed2959() { |
1825 var o = new core.Map<core.String, core.String>(); | 1825 var o = new core.Map<core.String, core.String>(); |
1826 o["x"] = "foo"; | 1826 o["x"] = "foo"; |
1827 o["y"] = "foo"; | 1827 o["y"] = "foo"; |
1828 return o; | 1828 return o; |
1829 } | 1829 } |
1830 | 1830 |
1831 checkUnnamed3485(core.Map<core.String, core.String> o) { | 1831 checkUnnamed2959(core.Map<core.String, core.String> o) { |
1832 unittest.expect(o, unittest.hasLength(2)); | 1832 unittest.expect(o, unittest.hasLength(2)); |
1833 unittest.expect(o["x"], unittest.equals('foo')); | 1833 unittest.expect(o["x"], unittest.equals('foo')); |
1834 unittest.expect(o["y"], unittest.equals('foo')); | 1834 unittest.expect(o["y"], unittest.equals('foo')); |
1835 } | 1835 } |
1836 | 1836 |
1837 core.int buildCounterMetricStructuredName = 0; | 1837 core.int buildCounterMetricStructuredName = 0; |
1838 buildMetricStructuredName() { | 1838 buildMetricStructuredName() { |
1839 var o = new api.MetricStructuredName(); | 1839 var o = new api.MetricStructuredName(); |
1840 buildCounterMetricStructuredName++; | 1840 buildCounterMetricStructuredName++; |
1841 if (buildCounterMetricStructuredName < 3) { | 1841 if (buildCounterMetricStructuredName < 3) { |
1842 o.context = buildUnnamed3485(); | 1842 o.context = buildUnnamed2959(); |
1843 o.name = "foo"; | 1843 o.name = "foo"; |
1844 o.origin = "foo"; | 1844 o.origin = "foo"; |
1845 } | 1845 } |
1846 buildCounterMetricStructuredName--; | 1846 buildCounterMetricStructuredName--; |
1847 return o; | 1847 return o; |
1848 } | 1848 } |
1849 | 1849 |
1850 checkMetricStructuredName(api.MetricStructuredName o) { | 1850 checkMetricStructuredName(api.MetricStructuredName o) { |
1851 buildCounterMetricStructuredName++; | 1851 buildCounterMetricStructuredName++; |
1852 if (buildCounterMetricStructuredName < 3) { | 1852 if (buildCounterMetricStructuredName < 3) { |
1853 checkUnnamed3485(o.context); | 1853 checkUnnamed2959(o.context); |
1854 unittest.expect(o.name, unittest.equals('foo')); | 1854 unittest.expect(o.name, unittest.equals('foo')); |
1855 unittest.expect(o.origin, unittest.equals('foo')); | 1855 unittest.expect(o.origin, unittest.equals('foo')); |
1856 } | 1856 } |
1857 buildCounterMetricStructuredName--; | 1857 buildCounterMetricStructuredName--; |
1858 } | 1858 } |
1859 | 1859 |
1860 core.int buildCounterMetricUpdate = 0; | 1860 core.int buildCounterMetricUpdate = 0; |
1861 buildMetricUpdate() { | 1861 buildMetricUpdate() { |
1862 var o = new api.MetricUpdate(); | 1862 var o = new api.MetricUpdate(); |
1863 buildCounterMetricUpdate++; | 1863 buildCounterMetricUpdate++; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1967 | 1967 |
1968 checkPackage(api.Package o) { | 1968 checkPackage(api.Package o) { |
1969 buildCounterPackage++; | 1969 buildCounterPackage++; |
1970 if (buildCounterPackage < 3) { | 1970 if (buildCounterPackage < 3) { |
1971 unittest.expect(o.location, unittest.equals('foo')); | 1971 unittest.expect(o.location, unittest.equals('foo')); |
1972 unittest.expect(o.name, unittest.equals('foo')); | 1972 unittest.expect(o.name, unittest.equals('foo')); |
1973 } | 1973 } |
1974 buildCounterPackage--; | 1974 buildCounterPackage--; |
1975 } | 1975 } |
1976 | 1976 |
1977 buildUnnamed3486() { | 1977 buildUnnamed2960() { |
1978 var o = new core.List<api.MultiOutputInfo>(); | 1978 var o = new core.List<api.MultiOutputInfo>(); |
1979 o.add(buildMultiOutputInfo()); | 1979 o.add(buildMultiOutputInfo()); |
1980 o.add(buildMultiOutputInfo()); | 1980 o.add(buildMultiOutputInfo()); |
1981 return o; | 1981 return o; |
1982 } | 1982 } |
1983 | 1983 |
1984 checkUnnamed3486(core.List<api.MultiOutputInfo> o) { | 1984 checkUnnamed2960(core.List<api.MultiOutputInfo> o) { |
1985 unittest.expect(o, unittest.hasLength(2)); | 1985 unittest.expect(o, unittest.hasLength(2)); |
1986 checkMultiOutputInfo(o[0]); | 1986 checkMultiOutputInfo(o[0]); |
1987 checkMultiOutputInfo(o[1]); | 1987 checkMultiOutputInfo(o[1]); |
1988 } | 1988 } |
1989 | 1989 |
1990 buildUnnamed3487() { | 1990 buildUnnamed2961() { |
1991 var o = new core.List<api.SideInputInfo>(); | 1991 var o = new core.List<api.SideInputInfo>(); |
1992 o.add(buildSideInputInfo()); | 1992 o.add(buildSideInputInfo()); |
1993 o.add(buildSideInputInfo()); | 1993 o.add(buildSideInputInfo()); |
1994 return o; | 1994 return o; |
1995 } | 1995 } |
1996 | 1996 |
1997 checkUnnamed3487(core.List<api.SideInputInfo> o) { | 1997 checkUnnamed2961(core.List<api.SideInputInfo> o) { |
1998 unittest.expect(o, unittest.hasLength(2)); | 1998 unittest.expect(o, unittest.hasLength(2)); |
1999 checkSideInputInfo(o[0]); | 1999 checkSideInputInfo(o[0]); |
2000 checkSideInputInfo(o[1]); | 2000 checkSideInputInfo(o[1]); |
2001 } | 2001 } |
2002 | 2002 |
2003 buildUnnamed3488() { | 2003 buildUnnamed2962() { |
2004 var o = new core.Map<core.String, core.Object>(); | 2004 var o = new core.Map<core.String, core.Object>(); |
2005 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2005 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2006 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2006 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2007 return o; | 2007 return o; |
2008 } | 2008 } |
2009 | 2009 |
2010 checkUnnamed3488(core.Map<core.String, core.Object> o) { | 2010 checkUnnamed2962(core.Map<core.String, core.Object> o) { |
2011 unittest.expect(o, unittest.hasLength(2)); | 2011 unittest.expect(o, unittest.hasLength(2)); |
2012 var casted18 = (o["x"]) as core.Map; unittest.expect(casted18, unittest.hasLen
gth(3)); unittest.expect(casted18["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted18["bool"], unittest.equals(true)); unittest.expect(casted18["stri
ng"], unittest.equals('foo')); | 2012 var casted18 = (o["x"]) as core.Map; unittest.expect(casted18, unittest.hasLen
gth(3)); unittest.expect(casted18["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted18["bool"], unittest.equals(true)); unittest.expect(casted18["stri
ng"], unittest.equals('foo')); |
2013 var casted19 = (o["y"]) as core.Map; unittest.expect(casted19, unittest.hasLen
gth(3)); unittest.expect(casted19["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted19["bool"], unittest.equals(true)); unittest.expect(casted19["stri
ng"], unittest.equals('foo')); | 2013 var casted19 = (o["y"]) as core.Map; unittest.expect(casted19, unittest.hasLen
gth(3)); unittest.expect(casted19["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted19["bool"], unittest.equals(true)); unittest.expect(casted19["stri
ng"], unittest.equals('foo')); |
2014 } | 2014 } |
2015 | 2015 |
2016 core.int buildCounterParDoInstruction = 0; | 2016 core.int buildCounterParDoInstruction = 0; |
2017 buildParDoInstruction() { | 2017 buildParDoInstruction() { |
2018 var o = new api.ParDoInstruction(); | 2018 var o = new api.ParDoInstruction(); |
2019 buildCounterParDoInstruction++; | 2019 buildCounterParDoInstruction++; |
2020 if (buildCounterParDoInstruction < 3) { | 2020 if (buildCounterParDoInstruction < 3) { |
2021 o.input = buildInstructionInput(); | 2021 o.input = buildInstructionInput(); |
2022 o.multiOutputInfos = buildUnnamed3486(); | 2022 o.multiOutputInfos = buildUnnamed2960(); |
2023 o.numOutputs = 42; | 2023 o.numOutputs = 42; |
2024 o.sideInputs = buildUnnamed3487(); | 2024 o.sideInputs = buildUnnamed2961(); |
2025 o.userFn = buildUnnamed3488(); | 2025 o.userFn = buildUnnamed2962(); |
2026 } | 2026 } |
2027 buildCounterParDoInstruction--; | 2027 buildCounterParDoInstruction--; |
2028 return o; | 2028 return o; |
2029 } | 2029 } |
2030 | 2030 |
2031 checkParDoInstruction(api.ParDoInstruction o) { | 2031 checkParDoInstruction(api.ParDoInstruction o) { |
2032 buildCounterParDoInstruction++; | 2032 buildCounterParDoInstruction++; |
2033 if (buildCounterParDoInstruction < 3) { | 2033 if (buildCounterParDoInstruction < 3) { |
2034 checkInstructionInput(o.input); | 2034 checkInstructionInput(o.input); |
2035 checkUnnamed3486(o.multiOutputInfos); | 2035 checkUnnamed2960(o.multiOutputInfos); |
2036 unittest.expect(o.numOutputs, unittest.equals(42)); | 2036 unittest.expect(o.numOutputs, unittest.equals(42)); |
2037 checkUnnamed3487(o.sideInputs); | 2037 checkUnnamed2961(o.sideInputs); |
2038 checkUnnamed3488(o.userFn); | 2038 checkUnnamed2962(o.userFn); |
2039 } | 2039 } |
2040 buildCounterParDoInstruction--; | 2040 buildCounterParDoInstruction--; |
2041 } | 2041 } |
2042 | 2042 |
2043 buildUnnamed3489() { | 2043 buildUnnamed2963() { |
2044 var o = new core.List<api.InstructionOutput>(); | 2044 var o = new core.List<api.InstructionOutput>(); |
2045 o.add(buildInstructionOutput()); | 2045 o.add(buildInstructionOutput()); |
2046 o.add(buildInstructionOutput()); | 2046 o.add(buildInstructionOutput()); |
2047 return o; | 2047 return o; |
2048 } | 2048 } |
2049 | 2049 |
2050 checkUnnamed3489(core.List<api.InstructionOutput> o) { | 2050 checkUnnamed2963(core.List<api.InstructionOutput> o) { |
2051 unittest.expect(o, unittest.hasLength(2)); | 2051 unittest.expect(o, unittest.hasLength(2)); |
2052 checkInstructionOutput(o[0]); | 2052 checkInstructionOutput(o[0]); |
2053 checkInstructionOutput(o[1]); | 2053 checkInstructionOutput(o[1]); |
2054 } | 2054 } |
2055 | 2055 |
2056 core.int buildCounterParallelInstruction = 0; | 2056 core.int buildCounterParallelInstruction = 0; |
2057 buildParallelInstruction() { | 2057 buildParallelInstruction() { |
2058 var o = new api.ParallelInstruction(); | 2058 var o = new api.ParallelInstruction(); |
2059 buildCounterParallelInstruction++; | 2059 buildCounterParallelInstruction++; |
2060 if (buildCounterParallelInstruction < 3) { | 2060 if (buildCounterParallelInstruction < 3) { |
2061 o.flatten = buildFlattenInstruction(); | 2061 o.flatten = buildFlattenInstruction(); |
2062 o.name = "foo"; | 2062 o.name = "foo"; |
2063 o.originalName = "foo"; | 2063 o.originalName = "foo"; |
2064 o.outputs = buildUnnamed3489(); | 2064 o.outputs = buildUnnamed2963(); |
2065 o.parDo = buildParDoInstruction(); | 2065 o.parDo = buildParDoInstruction(); |
2066 o.partialGroupByKey = buildPartialGroupByKeyInstruction(); | 2066 o.partialGroupByKey = buildPartialGroupByKeyInstruction(); |
2067 o.read = buildReadInstruction(); | 2067 o.read = buildReadInstruction(); |
2068 o.systemName = "foo"; | 2068 o.systemName = "foo"; |
2069 o.write = buildWriteInstruction(); | 2069 o.write = buildWriteInstruction(); |
2070 } | 2070 } |
2071 buildCounterParallelInstruction--; | 2071 buildCounterParallelInstruction--; |
2072 return o; | 2072 return o; |
2073 } | 2073 } |
2074 | 2074 |
2075 checkParallelInstruction(api.ParallelInstruction o) { | 2075 checkParallelInstruction(api.ParallelInstruction o) { |
2076 buildCounterParallelInstruction++; | 2076 buildCounterParallelInstruction++; |
2077 if (buildCounterParallelInstruction < 3) { | 2077 if (buildCounterParallelInstruction < 3) { |
2078 checkFlattenInstruction(o.flatten); | 2078 checkFlattenInstruction(o.flatten); |
2079 unittest.expect(o.name, unittest.equals('foo')); | 2079 unittest.expect(o.name, unittest.equals('foo')); |
2080 unittest.expect(o.originalName, unittest.equals('foo')); | 2080 unittest.expect(o.originalName, unittest.equals('foo')); |
2081 checkUnnamed3489(o.outputs); | 2081 checkUnnamed2963(o.outputs); |
2082 checkParDoInstruction(o.parDo); | 2082 checkParDoInstruction(o.parDo); |
2083 checkPartialGroupByKeyInstruction(o.partialGroupByKey); | 2083 checkPartialGroupByKeyInstruction(o.partialGroupByKey); |
2084 checkReadInstruction(o.read); | 2084 checkReadInstruction(o.read); |
2085 unittest.expect(o.systemName, unittest.equals('foo')); | 2085 unittest.expect(o.systemName, unittest.equals('foo')); |
2086 checkWriteInstruction(o.write); | 2086 checkWriteInstruction(o.write); |
2087 } | 2087 } |
2088 buildCounterParallelInstruction--; | 2088 buildCounterParallelInstruction--; |
2089 } | 2089 } |
2090 | 2090 |
2091 core.int buildCounterParameter = 0; | 2091 core.int buildCounterParameter = 0; |
(...skipping 10 matching lines...) Expand all Loading... |
2102 | 2102 |
2103 checkParameter(api.Parameter o) { | 2103 checkParameter(api.Parameter o) { |
2104 buildCounterParameter++; | 2104 buildCounterParameter++; |
2105 if (buildCounterParameter < 3) { | 2105 if (buildCounterParameter < 3) { |
2106 unittest.expect(o.key, unittest.equals('foo')); | 2106 unittest.expect(o.key, unittest.equals('foo')); |
2107 var casted20 = (o.value) as core.Map; unittest.expect(casted20, unittest.has
Length(3)); unittest.expect(casted20["list"], unittest.equals([1, 2, 3])); unitt
est.expect(casted20["bool"], unittest.equals(true)); unittest.expect(casted20["s
tring"], unittest.equals('foo')); | 2107 var casted20 = (o.value) as core.Map; unittest.expect(casted20, unittest.has
Length(3)); unittest.expect(casted20["list"], unittest.equals([1, 2, 3])); unitt
est.expect(casted20["bool"], unittest.equals(true)); unittest.expect(casted20["s
tring"], unittest.equals('foo')); |
2108 } | 2108 } |
2109 buildCounterParameter--; | 2109 buildCounterParameter--; |
2110 } | 2110 } |
2111 | 2111 |
2112 buildUnnamed3490() { | 2112 buildUnnamed2964() { |
2113 var o = new core.List<core.String>(); | 2113 var o = new core.List<core.String>(); |
2114 o.add("foo"); | 2114 o.add("foo"); |
2115 o.add("foo"); | 2115 o.add("foo"); |
2116 return o; | 2116 return o; |
2117 } | 2117 } |
2118 | 2118 |
2119 checkUnnamed3490(core.List<core.String> o) { | 2119 checkUnnamed2964(core.List<core.String> o) { |
2120 unittest.expect(o, unittest.hasLength(2)); | 2120 unittest.expect(o, unittest.hasLength(2)); |
2121 unittest.expect(o[0], unittest.equals('foo')); | 2121 unittest.expect(o[0], unittest.equals('foo')); |
2122 unittest.expect(o[1], unittest.equals('foo')); | 2122 unittest.expect(o[1], unittest.equals('foo')); |
2123 } | 2123 } |
2124 | 2124 |
2125 core.int buildCounterParameterMetadata = 0; | 2125 core.int buildCounterParameterMetadata = 0; |
2126 buildParameterMetadata() { | 2126 buildParameterMetadata() { |
2127 var o = new api.ParameterMetadata(); | 2127 var o = new api.ParameterMetadata(); |
2128 buildCounterParameterMetadata++; | 2128 buildCounterParameterMetadata++; |
2129 if (buildCounterParameterMetadata < 3) { | 2129 if (buildCounterParameterMetadata < 3) { |
2130 o.helpText = "foo"; | 2130 o.helpText = "foo"; |
2131 o.isOptional = true; | 2131 o.isOptional = true; |
2132 o.label = "foo"; | 2132 o.label = "foo"; |
2133 o.name = "foo"; | 2133 o.name = "foo"; |
2134 o.regexes = buildUnnamed3490(); | 2134 o.regexes = buildUnnamed2964(); |
2135 } | 2135 } |
2136 buildCounterParameterMetadata--; | 2136 buildCounterParameterMetadata--; |
2137 return o; | 2137 return o; |
2138 } | 2138 } |
2139 | 2139 |
2140 checkParameterMetadata(api.ParameterMetadata o) { | 2140 checkParameterMetadata(api.ParameterMetadata o) { |
2141 buildCounterParameterMetadata++; | 2141 buildCounterParameterMetadata++; |
2142 if (buildCounterParameterMetadata < 3) { | 2142 if (buildCounterParameterMetadata < 3) { |
2143 unittest.expect(o.helpText, unittest.equals('foo')); | 2143 unittest.expect(o.helpText, unittest.equals('foo')); |
2144 unittest.expect(o.isOptional, unittest.isTrue); | 2144 unittest.expect(o.isOptional, unittest.isTrue); |
2145 unittest.expect(o.label, unittest.equals('foo')); | 2145 unittest.expect(o.label, unittest.equals('foo')); |
2146 unittest.expect(o.name, unittest.equals('foo')); | 2146 unittest.expect(o.name, unittest.equals('foo')); |
2147 checkUnnamed3490(o.regexes); | 2147 checkUnnamed2964(o.regexes); |
2148 } | 2148 } |
2149 buildCounterParameterMetadata--; | 2149 buildCounterParameterMetadata--; |
2150 } | 2150 } |
2151 | 2151 |
2152 buildUnnamed3491() { | 2152 buildUnnamed2965() { |
2153 var o = new core.Map<core.String, core.Object>(); | 2153 var o = new core.Map<core.String, core.Object>(); |
2154 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2154 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2155 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2155 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2156 return o; | 2156 return o; |
2157 } | 2157 } |
2158 | 2158 |
2159 checkUnnamed3491(core.Map<core.String, core.Object> o) { | 2159 checkUnnamed2965(core.Map<core.String, core.Object> o) { |
2160 unittest.expect(o, unittest.hasLength(2)); | 2160 unittest.expect(o, unittest.hasLength(2)); |
2161 var casted21 = (o["x"]) as core.Map; unittest.expect(casted21, unittest.hasLen
gth(3)); unittest.expect(casted21["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted21["bool"], unittest.equals(true)); unittest.expect(casted21["stri
ng"], unittest.equals('foo')); | 2161 var casted21 = (o["x"]) as core.Map; unittest.expect(casted21, unittest.hasLen
gth(3)); unittest.expect(casted21["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted21["bool"], unittest.equals(true)); unittest.expect(casted21["stri
ng"], unittest.equals('foo')); |
2162 var casted22 = (o["y"]) as core.Map; unittest.expect(casted22, unittest.hasLen
gth(3)); unittest.expect(casted22["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted22["bool"], unittest.equals(true)); unittest.expect(casted22["stri
ng"], unittest.equals('foo')); | 2162 var casted22 = (o["y"]) as core.Map; unittest.expect(casted22, unittest.hasLen
gth(3)); unittest.expect(casted22["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted22["bool"], unittest.equals(true)); unittest.expect(casted22["stri
ng"], unittest.equals('foo')); |
2163 } | 2163 } |
2164 | 2164 |
2165 buildUnnamed3492() { | 2165 buildUnnamed2966() { |
2166 var o = new core.List<api.SideInputInfo>(); | 2166 var o = new core.List<api.SideInputInfo>(); |
2167 o.add(buildSideInputInfo()); | 2167 o.add(buildSideInputInfo()); |
2168 o.add(buildSideInputInfo()); | 2168 o.add(buildSideInputInfo()); |
2169 return o; | 2169 return o; |
2170 } | 2170 } |
2171 | 2171 |
2172 checkUnnamed3492(core.List<api.SideInputInfo> o) { | 2172 checkUnnamed2966(core.List<api.SideInputInfo> o) { |
2173 unittest.expect(o, unittest.hasLength(2)); | 2173 unittest.expect(o, unittest.hasLength(2)); |
2174 checkSideInputInfo(o[0]); | 2174 checkSideInputInfo(o[0]); |
2175 checkSideInputInfo(o[1]); | 2175 checkSideInputInfo(o[1]); |
2176 } | 2176 } |
2177 | 2177 |
2178 buildUnnamed3493() { | 2178 buildUnnamed2967() { |
2179 var o = new core.Map<core.String, core.Object>(); | 2179 var o = new core.Map<core.String, core.Object>(); |
2180 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2180 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2181 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2181 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2182 return o; | 2182 return o; |
2183 } | 2183 } |
2184 | 2184 |
2185 checkUnnamed3493(core.Map<core.String, core.Object> o) { | 2185 checkUnnamed2967(core.Map<core.String, core.Object> o) { |
2186 unittest.expect(o, unittest.hasLength(2)); | 2186 unittest.expect(o, unittest.hasLength(2)); |
2187 var casted23 = (o["x"]) as core.Map; unittest.expect(casted23, unittest.hasLen
gth(3)); unittest.expect(casted23["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted23["bool"], unittest.equals(true)); unittest.expect(casted23["stri
ng"], unittest.equals('foo')); | 2187 var casted23 = (o["x"]) as core.Map; unittest.expect(casted23, unittest.hasLen
gth(3)); unittest.expect(casted23["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted23["bool"], unittest.equals(true)); unittest.expect(casted23["stri
ng"], unittest.equals('foo')); |
2188 var casted24 = (o["y"]) as core.Map; unittest.expect(casted24, unittest.hasLen
gth(3)); unittest.expect(casted24["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted24["bool"], unittest.equals(true)); unittest.expect(casted24["stri
ng"], unittest.equals('foo')); | 2188 var casted24 = (o["y"]) as core.Map; unittest.expect(casted24, unittest.hasLen
gth(3)); unittest.expect(casted24["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted24["bool"], unittest.equals(true)); unittest.expect(casted24["stri
ng"], unittest.equals('foo')); |
2189 } | 2189 } |
2190 | 2190 |
2191 core.int buildCounterPartialGroupByKeyInstruction = 0; | 2191 core.int buildCounterPartialGroupByKeyInstruction = 0; |
2192 buildPartialGroupByKeyInstruction() { | 2192 buildPartialGroupByKeyInstruction() { |
2193 var o = new api.PartialGroupByKeyInstruction(); | 2193 var o = new api.PartialGroupByKeyInstruction(); |
2194 buildCounterPartialGroupByKeyInstruction++; | 2194 buildCounterPartialGroupByKeyInstruction++; |
2195 if (buildCounterPartialGroupByKeyInstruction < 3) { | 2195 if (buildCounterPartialGroupByKeyInstruction < 3) { |
2196 o.input = buildInstructionInput(); | 2196 o.input = buildInstructionInput(); |
2197 o.inputElementCodec = buildUnnamed3491(); | 2197 o.inputElementCodec = buildUnnamed2965(); |
2198 o.originalCombineValuesInputStoreName = "foo"; | 2198 o.originalCombineValuesInputStoreName = "foo"; |
2199 o.originalCombineValuesStepName = "foo"; | 2199 o.originalCombineValuesStepName = "foo"; |
2200 o.sideInputs = buildUnnamed3492(); | 2200 o.sideInputs = buildUnnamed2966(); |
2201 o.valueCombiningFn = buildUnnamed3493(); | 2201 o.valueCombiningFn = buildUnnamed2967(); |
2202 } | 2202 } |
2203 buildCounterPartialGroupByKeyInstruction--; | 2203 buildCounterPartialGroupByKeyInstruction--; |
2204 return o; | 2204 return o; |
2205 } | 2205 } |
2206 | 2206 |
2207 checkPartialGroupByKeyInstruction(api.PartialGroupByKeyInstruction o) { | 2207 checkPartialGroupByKeyInstruction(api.PartialGroupByKeyInstruction o) { |
2208 buildCounterPartialGroupByKeyInstruction++; | 2208 buildCounterPartialGroupByKeyInstruction++; |
2209 if (buildCounterPartialGroupByKeyInstruction < 3) { | 2209 if (buildCounterPartialGroupByKeyInstruction < 3) { |
2210 checkInstructionInput(o.input); | 2210 checkInstructionInput(o.input); |
2211 checkUnnamed3491(o.inputElementCodec); | 2211 checkUnnamed2965(o.inputElementCodec); |
2212 unittest.expect(o.originalCombineValuesInputStoreName, unittest.equals('foo'
)); | 2212 unittest.expect(o.originalCombineValuesInputStoreName, unittest.equals('foo'
)); |
2213 unittest.expect(o.originalCombineValuesStepName, unittest.equals('foo')); | 2213 unittest.expect(o.originalCombineValuesStepName, unittest.equals('foo')); |
2214 checkUnnamed3492(o.sideInputs); | 2214 checkUnnamed2966(o.sideInputs); |
2215 checkUnnamed3493(o.valueCombiningFn); | 2215 checkUnnamed2967(o.valueCombiningFn); |
2216 } | 2216 } |
2217 buildCounterPartialGroupByKeyInstruction--; | 2217 buildCounterPartialGroupByKeyInstruction--; |
2218 } | 2218 } |
2219 | 2219 |
2220 buildUnnamed3494() { | 2220 buildUnnamed2968() { |
2221 var o = new core.List<api.DisplayData>(); | 2221 var o = new core.List<api.DisplayData>(); |
2222 o.add(buildDisplayData()); | 2222 o.add(buildDisplayData()); |
2223 o.add(buildDisplayData()); | 2223 o.add(buildDisplayData()); |
2224 return o; | 2224 return o; |
2225 } | 2225 } |
2226 | 2226 |
2227 checkUnnamed3494(core.List<api.DisplayData> o) { | 2227 checkUnnamed2968(core.List<api.DisplayData> o) { |
2228 unittest.expect(o, unittest.hasLength(2)); | 2228 unittest.expect(o, unittest.hasLength(2)); |
2229 checkDisplayData(o[0]); | 2229 checkDisplayData(o[0]); |
2230 checkDisplayData(o[1]); | 2230 checkDisplayData(o[1]); |
2231 } | 2231 } |
2232 | 2232 |
2233 buildUnnamed3495() { | 2233 buildUnnamed2969() { |
2234 var o = new core.List<api.ExecutionStageSummary>(); | 2234 var o = new core.List<api.ExecutionStageSummary>(); |
2235 o.add(buildExecutionStageSummary()); | 2235 o.add(buildExecutionStageSummary()); |
2236 o.add(buildExecutionStageSummary()); | 2236 o.add(buildExecutionStageSummary()); |
2237 return o; | 2237 return o; |
2238 } | 2238 } |
2239 | 2239 |
2240 checkUnnamed3495(core.List<api.ExecutionStageSummary> o) { | 2240 checkUnnamed2969(core.List<api.ExecutionStageSummary> o) { |
2241 unittest.expect(o, unittest.hasLength(2)); | 2241 unittest.expect(o, unittest.hasLength(2)); |
2242 checkExecutionStageSummary(o[0]); | 2242 checkExecutionStageSummary(o[0]); |
2243 checkExecutionStageSummary(o[1]); | 2243 checkExecutionStageSummary(o[1]); |
2244 } | 2244 } |
2245 | 2245 |
2246 buildUnnamed3496() { | 2246 buildUnnamed2970() { |
2247 var o = new core.List<api.TransformSummary>(); | 2247 var o = new core.List<api.TransformSummary>(); |
2248 o.add(buildTransformSummary()); | 2248 o.add(buildTransformSummary()); |
2249 o.add(buildTransformSummary()); | 2249 o.add(buildTransformSummary()); |
2250 return o; | 2250 return o; |
2251 } | 2251 } |
2252 | 2252 |
2253 checkUnnamed3496(core.List<api.TransformSummary> o) { | 2253 checkUnnamed2970(core.List<api.TransformSummary> o) { |
2254 unittest.expect(o, unittest.hasLength(2)); | 2254 unittest.expect(o, unittest.hasLength(2)); |
2255 checkTransformSummary(o[0]); | 2255 checkTransformSummary(o[0]); |
2256 checkTransformSummary(o[1]); | 2256 checkTransformSummary(o[1]); |
2257 } | 2257 } |
2258 | 2258 |
2259 core.int buildCounterPipelineDescription = 0; | 2259 core.int buildCounterPipelineDescription = 0; |
2260 buildPipelineDescription() { | 2260 buildPipelineDescription() { |
2261 var o = new api.PipelineDescription(); | 2261 var o = new api.PipelineDescription(); |
2262 buildCounterPipelineDescription++; | 2262 buildCounterPipelineDescription++; |
2263 if (buildCounterPipelineDescription < 3) { | 2263 if (buildCounterPipelineDescription < 3) { |
2264 o.displayData = buildUnnamed3494(); | 2264 o.displayData = buildUnnamed2968(); |
2265 o.executionPipelineStage = buildUnnamed3495(); | 2265 o.executionPipelineStage = buildUnnamed2969(); |
2266 o.originalPipelineTransform = buildUnnamed3496(); | 2266 o.originalPipelineTransform = buildUnnamed2970(); |
2267 } | 2267 } |
2268 buildCounterPipelineDescription--; | 2268 buildCounterPipelineDescription--; |
2269 return o; | 2269 return o; |
2270 } | 2270 } |
2271 | 2271 |
2272 checkPipelineDescription(api.PipelineDescription o) { | 2272 checkPipelineDescription(api.PipelineDescription o) { |
2273 buildCounterPipelineDescription++; | 2273 buildCounterPipelineDescription++; |
2274 if (buildCounterPipelineDescription < 3) { | 2274 if (buildCounterPipelineDescription < 3) { |
2275 checkUnnamed3494(o.displayData); | 2275 checkUnnamed2968(o.displayData); |
2276 checkUnnamed3495(o.executionPipelineStage); | 2276 checkUnnamed2969(o.executionPipelineStage); |
2277 checkUnnamed3496(o.originalPipelineTransform); | 2277 checkUnnamed2970(o.originalPipelineTransform); |
2278 } | 2278 } |
2279 buildCounterPipelineDescription--; | 2279 buildCounterPipelineDescription--; |
2280 } | 2280 } |
2281 | 2281 |
2282 core.int buildCounterPosition = 0; | 2282 core.int buildCounterPosition = 0; |
2283 buildPosition() { | 2283 buildPosition() { |
2284 var o = new api.Position(); | 2284 var o = new api.Position(); |
2285 buildCounterPosition++; | 2285 buildCounterPosition++; |
2286 if (buildCounterPosition < 3) { | 2286 if (buildCounterPosition < 3) { |
2287 o.byteOffset = "foo"; | 2287 o.byteOffset = "foo"; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2351 } | 2351 } |
2352 | 2352 |
2353 checkReadInstruction(api.ReadInstruction o) { | 2353 checkReadInstruction(api.ReadInstruction o) { |
2354 buildCounterReadInstruction++; | 2354 buildCounterReadInstruction++; |
2355 if (buildCounterReadInstruction < 3) { | 2355 if (buildCounterReadInstruction < 3) { |
2356 checkSource(o.source); | 2356 checkSource(o.source); |
2357 } | 2357 } |
2358 buildCounterReadInstruction--; | 2358 buildCounterReadInstruction--; |
2359 } | 2359 } |
2360 | 2360 |
2361 buildUnnamed3497() { | 2361 buildUnnamed2971() { |
2362 var o = new core.List<api.WorkItemStatus>(); | 2362 var o = new core.List<api.WorkItemStatus>(); |
2363 o.add(buildWorkItemStatus()); | 2363 o.add(buildWorkItemStatus()); |
2364 o.add(buildWorkItemStatus()); | 2364 o.add(buildWorkItemStatus()); |
2365 return o; | 2365 return o; |
2366 } | 2366 } |
2367 | 2367 |
2368 checkUnnamed3497(core.List<api.WorkItemStatus> o) { | 2368 checkUnnamed2971(core.List<api.WorkItemStatus> o) { |
2369 unittest.expect(o, unittest.hasLength(2)); | 2369 unittest.expect(o, unittest.hasLength(2)); |
2370 checkWorkItemStatus(o[0]); | 2370 checkWorkItemStatus(o[0]); |
2371 checkWorkItemStatus(o[1]); | 2371 checkWorkItemStatus(o[1]); |
2372 } | 2372 } |
2373 | 2373 |
2374 core.int buildCounterReportWorkItemStatusRequest = 0; | 2374 core.int buildCounterReportWorkItemStatusRequest = 0; |
2375 buildReportWorkItemStatusRequest() { | 2375 buildReportWorkItemStatusRequest() { |
2376 var o = new api.ReportWorkItemStatusRequest(); | 2376 var o = new api.ReportWorkItemStatusRequest(); |
2377 buildCounterReportWorkItemStatusRequest++; | 2377 buildCounterReportWorkItemStatusRequest++; |
2378 if (buildCounterReportWorkItemStatusRequest < 3) { | 2378 if (buildCounterReportWorkItemStatusRequest < 3) { |
2379 o.currentWorkerTime = "foo"; | 2379 o.currentWorkerTime = "foo"; |
2380 o.location = "foo"; | 2380 o.location = "foo"; |
2381 o.workItemStatuses = buildUnnamed3497(); | 2381 o.workItemStatuses = buildUnnamed2971(); |
2382 o.workerId = "foo"; | 2382 o.workerId = "foo"; |
2383 } | 2383 } |
2384 buildCounterReportWorkItemStatusRequest--; | 2384 buildCounterReportWorkItemStatusRequest--; |
2385 return o; | 2385 return o; |
2386 } | 2386 } |
2387 | 2387 |
2388 checkReportWorkItemStatusRequest(api.ReportWorkItemStatusRequest o) { | 2388 checkReportWorkItemStatusRequest(api.ReportWorkItemStatusRequest o) { |
2389 buildCounterReportWorkItemStatusRequest++; | 2389 buildCounterReportWorkItemStatusRequest++; |
2390 if (buildCounterReportWorkItemStatusRequest < 3) { | 2390 if (buildCounterReportWorkItemStatusRequest < 3) { |
2391 unittest.expect(o.currentWorkerTime, unittest.equals('foo')); | 2391 unittest.expect(o.currentWorkerTime, unittest.equals('foo')); |
2392 unittest.expect(o.location, unittest.equals('foo')); | 2392 unittest.expect(o.location, unittest.equals('foo')); |
2393 checkUnnamed3497(o.workItemStatuses); | 2393 checkUnnamed2971(o.workItemStatuses); |
2394 unittest.expect(o.workerId, unittest.equals('foo')); | 2394 unittest.expect(o.workerId, unittest.equals('foo')); |
2395 } | 2395 } |
2396 buildCounterReportWorkItemStatusRequest--; | 2396 buildCounterReportWorkItemStatusRequest--; |
2397 } | 2397 } |
2398 | 2398 |
2399 buildUnnamed3498() { | 2399 buildUnnamed2972() { |
2400 var o = new core.List<api.WorkItemServiceState>(); | 2400 var o = new core.List<api.WorkItemServiceState>(); |
2401 o.add(buildWorkItemServiceState()); | 2401 o.add(buildWorkItemServiceState()); |
2402 o.add(buildWorkItemServiceState()); | 2402 o.add(buildWorkItemServiceState()); |
2403 return o; | 2403 return o; |
2404 } | 2404 } |
2405 | 2405 |
2406 checkUnnamed3498(core.List<api.WorkItemServiceState> o) { | 2406 checkUnnamed2972(core.List<api.WorkItemServiceState> o) { |
2407 unittest.expect(o, unittest.hasLength(2)); | 2407 unittest.expect(o, unittest.hasLength(2)); |
2408 checkWorkItemServiceState(o[0]); | 2408 checkWorkItemServiceState(o[0]); |
2409 checkWorkItemServiceState(o[1]); | 2409 checkWorkItemServiceState(o[1]); |
2410 } | 2410 } |
2411 | 2411 |
2412 core.int buildCounterReportWorkItemStatusResponse = 0; | 2412 core.int buildCounterReportWorkItemStatusResponse = 0; |
2413 buildReportWorkItemStatusResponse() { | 2413 buildReportWorkItemStatusResponse() { |
2414 var o = new api.ReportWorkItemStatusResponse(); | 2414 var o = new api.ReportWorkItemStatusResponse(); |
2415 buildCounterReportWorkItemStatusResponse++; | 2415 buildCounterReportWorkItemStatusResponse++; |
2416 if (buildCounterReportWorkItemStatusResponse < 3) { | 2416 if (buildCounterReportWorkItemStatusResponse < 3) { |
2417 o.workItemServiceStates = buildUnnamed3498(); | 2417 o.workItemServiceStates = buildUnnamed2972(); |
2418 } | 2418 } |
2419 buildCounterReportWorkItemStatusResponse--; | 2419 buildCounterReportWorkItemStatusResponse--; |
2420 return o; | 2420 return o; |
2421 } | 2421 } |
2422 | 2422 |
2423 checkReportWorkItemStatusResponse(api.ReportWorkItemStatusResponse o) { | 2423 checkReportWorkItemStatusResponse(api.ReportWorkItemStatusResponse o) { |
2424 buildCounterReportWorkItemStatusResponse++; | 2424 buildCounterReportWorkItemStatusResponse++; |
2425 if (buildCounterReportWorkItemStatusResponse < 3) { | 2425 if (buildCounterReportWorkItemStatusResponse < 3) { |
2426 checkUnnamed3498(o.workItemServiceStates); | 2426 checkUnnamed2972(o.workItemServiceStates); |
2427 } | 2427 } |
2428 buildCounterReportWorkItemStatusResponse--; | 2428 buildCounterReportWorkItemStatusResponse--; |
2429 } | 2429 } |
2430 | 2430 |
2431 core.int buildCounterReportedParallelism = 0; | 2431 core.int buildCounterReportedParallelism = 0; |
2432 buildReportedParallelism() { | 2432 buildReportedParallelism() { |
2433 var o = new api.ReportedParallelism(); | 2433 var o = new api.ReportedParallelism(); |
2434 buildCounterReportedParallelism++; | 2434 buildCounterReportedParallelism++; |
2435 if (buildCounterReportedParallelism < 3) { | 2435 if (buildCounterReportedParallelism < 3) { |
2436 o.isInfinite = true; | 2436 o.isInfinite = true; |
2437 o.value = 42.0; | 2437 o.value = 42.0; |
2438 } | 2438 } |
2439 buildCounterReportedParallelism--; | 2439 buildCounterReportedParallelism--; |
2440 return o; | 2440 return o; |
2441 } | 2441 } |
2442 | 2442 |
2443 checkReportedParallelism(api.ReportedParallelism o) { | 2443 checkReportedParallelism(api.ReportedParallelism o) { |
2444 buildCounterReportedParallelism++; | 2444 buildCounterReportedParallelism++; |
2445 if (buildCounterReportedParallelism < 3) { | 2445 if (buildCounterReportedParallelism < 3) { |
2446 unittest.expect(o.isInfinite, unittest.isTrue); | 2446 unittest.expect(o.isInfinite, unittest.isTrue); |
2447 unittest.expect(o.value, unittest.equals(42.0)); | 2447 unittest.expect(o.value, unittest.equals(42.0)); |
2448 } | 2448 } |
2449 buildCounterReportedParallelism--; | 2449 buildCounterReportedParallelism--; |
2450 } | 2450 } |
2451 | 2451 |
2452 buildUnnamed3499() { | 2452 buildUnnamed2973() { |
2453 var o = new core.List<api.CPUTime>(); | 2453 var o = new core.List<api.CPUTime>(); |
2454 o.add(buildCPUTime()); | 2454 o.add(buildCPUTime()); |
2455 o.add(buildCPUTime()); | 2455 o.add(buildCPUTime()); |
2456 return o; | 2456 return o; |
2457 } | 2457 } |
2458 | 2458 |
2459 checkUnnamed3499(core.List<api.CPUTime> o) { | 2459 checkUnnamed2973(core.List<api.CPUTime> o) { |
2460 unittest.expect(o, unittest.hasLength(2)); | 2460 unittest.expect(o, unittest.hasLength(2)); |
2461 checkCPUTime(o[0]); | 2461 checkCPUTime(o[0]); |
2462 checkCPUTime(o[1]); | 2462 checkCPUTime(o[1]); |
2463 } | 2463 } |
2464 | 2464 |
2465 core.int buildCounterResourceUtilizationReport = 0; | 2465 core.int buildCounterResourceUtilizationReport = 0; |
2466 buildResourceUtilizationReport() { | 2466 buildResourceUtilizationReport() { |
2467 var o = new api.ResourceUtilizationReport(); | 2467 var o = new api.ResourceUtilizationReport(); |
2468 buildCounterResourceUtilizationReport++; | 2468 buildCounterResourceUtilizationReport++; |
2469 if (buildCounterResourceUtilizationReport < 3) { | 2469 if (buildCounterResourceUtilizationReport < 3) { |
2470 o.cpuTime = buildUnnamed3499(); | 2470 o.cpuTime = buildUnnamed2973(); |
2471 } | 2471 } |
2472 buildCounterResourceUtilizationReport--; | 2472 buildCounterResourceUtilizationReport--; |
2473 return o; | 2473 return o; |
2474 } | 2474 } |
2475 | 2475 |
2476 checkResourceUtilizationReport(api.ResourceUtilizationReport o) { | 2476 checkResourceUtilizationReport(api.ResourceUtilizationReport o) { |
2477 buildCounterResourceUtilizationReport++; | 2477 buildCounterResourceUtilizationReport++; |
2478 if (buildCounterResourceUtilizationReport < 3) { | 2478 if (buildCounterResourceUtilizationReport < 3) { |
2479 checkUnnamed3499(o.cpuTime); | 2479 checkUnnamed2973(o.cpuTime); |
2480 } | 2480 } |
2481 buildCounterResourceUtilizationReport--; | 2481 buildCounterResourceUtilizationReport--; |
2482 } | 2482 } |
2483 | 2483 |
2484 core.int buildCounterResourceUtilizationReportResponse = 0; | 2484 core.int buildCounterResourceUtilizationReportResponse = 0; |
2485 buildResourceUtilizationReportResponse() { | 2485 buildResourceUtilizationReportResponse() { |
2486 var o = new api.ResourceUtilizationReportResponse(); | 2486 var o = new api.ResourceUtilizationReportResponse(); |
2487 buildCounterResourceUtilizationReportResponse++; | 2487 buildCounterResourceUtilizationReportResponse++; |
2488 if (buildCounterResourceUtilizationReportResponse < 3) { | 2488 if (buildCounterResourceUtilizationReportResponse < 3) { |
2489 } | 2489 } |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2562 return o; | 2562 return o; |
2563 } | 2563 } |
2564 | 2564 |
2565 checkSendDebugCaptureResponse(api.SendDebugCaptureResponse o) { | 2565 checkSendDebugCaptureResponse(api.SendDebugCaptureResponse o) { |
2566 buildCounterSendDebugCaptureResponse++; | 2566 buildCounterSendDebugCaptureResponse++; |
2567 if (buildCounterSendDebugCaptureResponse < 3) { | 2567 if (buildCounterSendDebugCaptureResponse < 3) { |
2568 } | 2568 } |
2569 buildCounterSendDebugCaptureResponse--; | 2569 buildCounterSendDebugCaptureResponse--; |
2570 } | 2570 } |
2571 | 2571 |
2572 buildUnnamed3500() { | 2572 buildUnnamed2974() { |
2573 var o = new core.List<api.WorkerMessage>(); | 2573 var o = new core.List<api.WorkerMessage>(); |
2574 o.add(buildWorkerMessage()); | 2574 o.add(buildWorkerMessage()); |
2575 o.add(buildWorkerMessage()); | 2575 o.add(buildWorkerMessage()); |
2576 return o; | 2576 return o; |
2577 } | 2577 } |
2578 | 2578 |
2579 checkUnnamed3500(core.List<api.WorkerMessage> o) { | 2579 checkUnnamed2974(core.List<api.WorkerMessage> o) { |
2580 unittest.expect(o, unittest.hasLength(2)); | 2580 unittest.expect(o, unittest.hasLength(2)); |
2581 checkWorkerMessage(o[0]); | 2581 checkWorkerMessage(o[0]); |
2582 checkWorkerMessage(o[1]); | 2582 checkWorkerMessage(o[1]); |
2583 } | 2583 } |
2584 | 2584 |
2585 core.int buildCounterSendWorkerMessagesRequest = 0; | 2585 core.int buildCounterSendWorkerMessagesRequest = 0; |
2586 buildSendWorkerMessagesRequest() { | 2586 buildSendWorkerMessagesRequest() { |
2587 var o = new api.SendWorkerMessagesRequest(); | 2587 var o = new api.SendWorkerMessagesRequest(); |
2588 buildCounterSendWorkerMessagesRequest++; | 2588 buildCounterSendWorkerMessagesRequest++; |
2589 if (buildCounterSendWorkerMessagesRequest < 3) { | 2589 if (buildCounterSendWorkerMessagesRequest < 3) { |
2590 o.location = "foo"; | 2590 o.location = "foo"; |
2591 o.workerMessages = buildUnnamed3500(); | 2591 o.workerMessages = buildUnnamed2974(); |
2592 } | 2592 } |
2593 buildCounterSendWorkerMessagesRequest--; | 2593 buildCounterSendWorkerMessagesRequest--; |
2594 return o; | 2594 return o; |
2595 } | 2595 } |
2596 | 2596 |
2597 checkSendWorkerMessagesRequest(api.SendWorkerMessagesRequest o) { | 2597 checkSendWorkerMessagesRequest(api.SendWorkerMessagesRequest o) { |
2598 buildCounterSendWorkerMessagesRequest++; | 2598 buildCounterSendWorkerMessagesRequest++; |
2599 if (buildCounterSendWorkerMessagesRequest < 3) { | 2599 if (buildCounterSendWorkerMessagesRequest < 3) { |
2600 unittest.expect(o.location, unittest.equals('foo')); | 2600 unittest.expect(o.location, unittest.equals('foo')); |
2601 checkUnnamed3500(o.workerMessages); | 2601 checkUnnamed2974(o.workerMessages); |
2602 } | 2602 } |
2603 buildCounterSendWorkerMessagesRequest--; | 2603 buildCounterSendWorkerMessagesRequest--; |
2604 } | 2604 } |
2605 | 2605 |
2606 buildUnnamed3501() { | 2606 buildUnnamed2975() { |
2607 var o = new core.List<api.WorkerMessageResponse>(); | 2607 var o = new core.List<api.WorkerMessageResponse>(); |
2608 o.add(buildWorkerMessageResponse()); | 2608 o.add(buildWorkerMessageResponse()); |
2609 o.add(buildWorkerMessageResponse()); | 2609 o.add(buildWorkerMessageResponse()); |
2610 return o; | 2610 return o; |
2611 } | 2611 } |
2612 | 2612 |
2613 checkUnnamed3501(core.List<api.WorkerMessageResponse> o) { | 2613 checkUnnamed2975(core.List<api.WorkerMessageResponse> o) { |
2614 unittest.expect(o, unittest.hasLength(2)); | 2614 unittest.expect(o, unittest.hasLength(2)); |
2615 checkWorkerMessageResponse(o[0]); | 2615 checkWorkerMessageResponse(o[0]); |
2616 checkWorkerMessageResponse(o[1]); | 2616 checkWorkerMessageResponse(o[1]); |
2617 } | 2617 } |
2618 | 2618 |
2619 core.int buildCounterSendWorkerMessagesResponse = 0; | 2619 core.int buildCounterSendWorkerMessagesResponse = 0; |
2620 buildSendWorkerMessagesResponse() { | 2620 buildSendWorkerMessagesResponse() { |
2621 var o = new api.SendWorkerMessagesResponse(); | 2621 var o = new api.SendWorkerMessagesResponse(); |
2622 buildCounterSendWorkerMessagesResponse++; | 2622 buildCounterSendWorkerMessagesResponse++; |
2623 if (buildCounterSendWorkerMessagesResponse < 3) { | 2623 if (buildCounterSendWorkerMessagesResponse < 3) { |
2624 o.workerMessageResponses = buildUnnamed3501(); | 2624 o.workerMessageResponses = buildUnnamed2975(); |
2625 } | 2625 } |
2626 buildCounterSendWorkerMessagesResponse--; | 2626 buildCounterSendWorkerMessagesResponse--; |
2627 return o; | 2627 return o; |
2628 } | 2628 } |
2629 | 2629 |
2630 checkSendWorkerMessagesResponse(api.SendWorkerMessagesResponse o) { | 2630 checkSendWorkerMessagesResponse(api.SendWorkerMessagesResponse o) { |
2631 buildCounterSendWorkerMessagesResponse++; | 2631 buildCounterSendWorkerMessagesResponse++; |
2632 if (buildCounterSendWorkerMessagesResponse < 3) { | 2632 if (buildCounterSendWorkerMessagesResponse < 3) { |
2633 checkUnnamed3501(o.workerMessageResponses); | 2633 checkUnnamed2975(o.workerMessageResponses); |
2634 } | 2634 } |
2635 buildCounterSendWorkerMessagesResponse--; | 2635 buildCounterSendWorkerMessagesResponse--; |
2636 } | 2636 } |
2637 | 2637 |
2638 buildUnnamed3502() { | 2638 buildUnnamed2976() { |
2639 var o = new core.List<api.SideInputInfo>(); | 2639 var o = new core.List<api.SideInputInfo>(); |
2640 o.add(buildSideInputInfo()); | 2640 o.add(buildSideInputInfo()); |
2641 o.add(buildSideInputInfo()); | 2641 o.add(buildSideInputInfo()); |
2642 return o; | 2642 return o; |
2643 } | 2643 } |
2644 | 2644 |
2645 checkUnnamed3502(core.List<api.SideInputInfo> o) { | 2645 checkUnnamed2976(core.List<api.SideInputInfo> o) { |
2646 unittest.expect(o, unittest.hasLength(2)); | 2646 unittest.expect(o, unittest.hasLength(2)); |
2647 checkSideInputInfo(o[0]); | 2647 checkSideInputInfo(o[0]); |
2648 checkSideInputInfo(o[1]); | 2648 checkSideInputInfo(o[1]); |
2649 } | 2649 } |
2650 | 2650 |
2651 buildUnnamed3503() { | 2651 buildUnnamed2977() { |
2652 var o = new core.List<api.SeqMapTaskOutputInfo>(); | 2652 var o = new core.List<api.SeqMapTaskOutputInfo>(); |
2653 o.add(buildSeqMapTaskOutputInfo()); | 2653 o.add(buildSeqMapTaskOutputInfo()); |
2654 o.add(buildSeqMapTaskOutputInfo()); | 2654 o.add(buildSeqMapTaskOutputInfo()); |
2655 return o; | 2655 return o; |
2656 } | 2656 } |
2657 | 2657 |
2658 checkUnnamed3503(core.List<api.SeqMapTaskOutputInfo> o) { | 2658 checkUnnamed2977(core.List<api.SeqMapTaskOutputInfo> o) { |
2659 unittest.expect(o, unittest.hasLength(2)); | 2659 unittest.expect(o, unittest.hasLength(2)); |
2660 checkSeqMapTaskOutputInfo(o[0]); | 2660 checkSeqMapTaskOutputInfo(o[0]); |
2661 checkSeqMapTaskOutputInfo(o[1]); | 2661 checkSeqMapTaskOutputInfo(o[1]); |
2662 } | 2662 } |
2663 | 2663 |
2664 buildUnnamed3504() { | 2664 buildUnnamed2978() { |
2665 var o = new core.Map<core.String, core.Object>(); | 2665 var o = new core.Map<core.String, core.Object>(); |
2666 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2666 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2667 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2667 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2668 return o; | 2668 return o; |
2669 } | 2669 } |
2670 | 2670 |
2671 checkUnnamed3504(core.Map<core.String, core.Object> o) { | 2671 checkUnnamed2978(core.Map<core.String, core.Object> o) { |
2672 unittest.expect(o, unittest.hasLength(2)); | 2672 unittest.expect(o, unittest.hasLength(2)); |
2673 var casted25 = (o["x"]) as core.Map; unittest.expect(casted25, unittest.hasLen
gth(3)); unittest.expect(casted25["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted25["bool"], unittest.equals(true)); unittest.expect(casted25["stri
ng"], unittest.equals('foo')); | 2673 var casted25 = (o["x"]) as core.Map; unittest.expect(casted25, unittest.hasLen
gth(3)); unittest.expect(casted25["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted25["bool"], unittest.equals(true)); unittest.expect(casted25["stri
ng"], unittest.equals('foo')); |
2674 var casted26 = (o["y"]) as core.Map; unittest.expect(casted26, unittest.hasLen
gth(3)); unittest.expect(casted26["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted26["bool"], unittest.equals(true)); unittest.expect(casted26["stri
ng"], unittest.equals('foo')); | 2674 var casted26 = (o["y"]) as core.Map; unittest.expect(casted26, unittest.hasLen
gth(3)); unittest.expect(casted26["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted26["bool"], unittest.equals(true)); unittest.expect(casted26["stri
ng"], unittest.equals('foo')); |
2675 } | 2675 } |
2676 | 2676 |
2677 core.int buildCounterSeqMapTask = 0; | 2677 core.int buildCounterSeqMapTask = 0; |
2678 buildSeqMapTask() { | 2678 buildSeqMapTask() { |
2679 var o = new api.SeqMapTask(); | 2679 var o = new api.SeqMapTask(); |
2680 buildCounterSeqMapTask++; | 2680 buildCounterSeqMapTask++; |
2681 if (buildCounterSeqMapTask < 3) { | 2681 if (buildCounterSeqMapTask < 3) { |
2682 o.inputs = buildUnnamed3502(); | 2682 o.inputs = buildUnnamed2976(); |
2683 o.name = "foo"; | 2683 o.name = "foo"; |
2684 o.outputInfos = buildUnnamed3503(); | 2684 o.outputInfos = buildUnnamed2977(); |
2685 o.stageName = "foo"; | 2685 o.stageName = "foo"; |
2686 o.systemName = "foo"; | 2686 o.systemName = "foo"; |
2687 o.userFn = buildUnnamed3504(); | 2687 o.userFn = buildUnnamed2978(); |
2688 } | 2688 } |
2689 buildCounterSeqMapTask--; | 2689 buildCounterSeqMapTask--; |
2690 return o; | 2690 return o; |
2691 } | 2691 } |
2692 | 2692 |
2693 checkSeqMapTask(api.SeqMapTask o) { | 2693 checkSeqMapTask(api.SeqMapTask o) { |
2694 buildCounterSeqMapTask++; | 2694 buildCounterSeqMapTask++; |
2695 if (buildCounterSeqMapTask < 3) { | 2695 if (buildCounterSeqMapTask < 3) { |
2696 checkUnnamed3502(o.inputs); | 2696 checkUnnamed2976(o.inputs); |
2697 unittest.expect(o.name, unittest.equals('foo')); | 2697 unittest.expect(o.name, unittest.equals('foo')); |
2698 checkUnnamed3503(o.outputInfos); | 2698 checkUnnamed2977(o.outputInfos); |
2699 unittest.expect(o.stageName, unittest.equals('foo')); | 2699 unittest.expect(o.stageName, unittest.equals('foo')); |
2700 unittest.expect(o.systemName, unittest.equals('foo')); | 2700 unittest.expect(o.systemName, unittest.equals('foo')); |
2701 checkUnnamed3504(o.userFn); | 2701 checkUnnamed2978(o.userFn); |
2702 } | 2702 } |
2703 buildCounterSeqMapTask--; | 2703 buildCounterSeqMapTask--; |
2704 } | 2704 } |
2705 | 2705 |
2706 core.int buildCounterSeqMapTaskOutputInfo = 0; | 2706 core.int buildCounterSeqMapTaskOutputInfo = 0; |
2707 buildSeqMapTaskOutputInfo() { | 2707 buildSeqMapTaskOutputInfo() { |
2708 var o = new api.SeqMapTaskOutputInfo(); | 2708 var o = new api.SeqMapTaskOutputInfo(); |
2709 buildCounterSeqMapTaskOutputInfo++; | 2709 buildCounterSeqMapTaskOutputInfo++; |
2710 if (buildCounterSeqMapTaskOutputInfo < 3) { | 2710 if (buildCounterSeqMapTaskOutputInfo < 3) { |
2711 o.sink = buildSink(); | 2711 o.sink = buildSink(); |
(...skipping 26 matching lines...) Expand all Loading... |
2738 | 2738 |
2739 checkShellTask(api.ShellTask o) { | 2739 checkShellTask(api.ShellTask o) { |
2740 buildCounterShellTask++; | 2740 buildCounterShellTask++; |
2741 if (buildCounterShellTask < 3) { | 2741 if (buildCounterShellTask < 3) { |
2742 unittest.expect(o.command, unittest.equals('foo')); | 2742 unittest.expect(o.command, unittest.equals('foo')); |
2743 unittest.expect(o.exitCode, unittest.equals(42)); | 2743 unittest.expect(o.exitCode, unittest.equals(42)); |
2744 } | 2744 } |
2745 buildCounterShellTask--; | 2745 buildCounterShellTask--; |
2746 } | 2746 } |
2747 | 2747 |
2748 buildUnnamed3505() { | 2748 buildUnnamed2979() { |
2749 var o = new core.Map<core.String, core.Object>(); | 2749 var o = new core.Map<core.String, core.Object>(); |
2750 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2750 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2751 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2751 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2752 return o; | 2752 return o; |
2753 } | 2753 } |
2754 | 2754 |
2755 checkUnnamed3505(core.Map<core.String, core.Object> o) { | 2755 checkUnnamed2979(core.Map<core.String, core.Object> o) { |
2756 unittest.expect(o, unittest.hasLength(2)); | 2756 unittest.expect(o, unittest.hasLength(2)); |
2757 var casted27 = (o["x"]) as core.Map; unittest.expect(casted27, unittest.hasLen
gth(3)); unittest.expect(casted27["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted27["bool"], unittest.equals(true)); unittest.expect(casted27["stri
ng"], unittest.equals('foo')); | 2757 var casted27 = (o["x"]) as core.Map; unittest.expect(casted27, unittest.hasLen
gth(3)); unittest.expect(casted27["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted27["bool"], unittest.equals(true)); unittest.expect(casted27["stri
ng"], unittest.equals('foo')); |
2758 var casted28 = (o["y"]) as core.Map; unittest.expect(casted28, unittest.hasLen
gth(3)); unittest.expect(casted28["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted28["bool"], unittest.equals(true)); unittest.expect(casted28["stri
ng"], unittest.equals('foo')); | 2758 var casted28 = (o["y"]) as core.Map; unittest.expect(casted28, unittest.hasLen
gth(3)); unittest.expect(casted28["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted28["bool"], unittest.equals(true)); unittest.expect(casted28["stri
ng"], unittest.equals('foo')); |
2759 } | 2759 } |
2760 | 2760 |
2761 buildUnnamed3506() { | 2761 buildUnnamed2980() { |
2762 var o = new core.List<api.Source>(); | 2762 var o = new core.List<api.Source>(); |
2763 o.add(buildSource()); | 2763 o.add(buildSource()); |
2764 o.add(buildSource()); | 2764 o.add(buildSource()); |
2765 return o; | 2765 return o; |
2766 } | 2766 } |
2767 | 2767 |
2768 checkUnnamed3506(core.List<api.Source> o) { | 2768 checkUnnamed2980(core.List<api.Source> o) { |
2769 unittest.expect(o, unittest.hasLength(2)); | 2769 unittest.expect(o, unittest.hasLength(2)); |
2770 checkSource(o[0]); | 2770 checkSource(o[0]); |
2771 checkSource(o[1]); | 2771 checkSource(o[1]); |
2772 } | 2772 } |
2773 | 2773 |
2774 core.int buildCounterSideInputInfo = 0; | 2774 core.int buildCounterSideInputInfo = 0; |
2775 buildSideInputInfo() { | 2775 buildSideInputInfo() { |
2776 var o = new api.SideInputInfo(); | 2776 var o = new api.SideInputInfo(); |
2777 buildCounterSideInputInfo++; | 2777 buildCounterSideInputInfo++; |
2778 if (buildCounterSideInputInfo < 3) { | 2778 if (buildCounterSideInputInfo < 3) { |
2779 o.kind = buildUnnamed3505(); | 2779 o.kind = buildUnnamed2979(); |
2780 o.sources = buildUnnamed3506(); | 2780 o.sources = buildUnnamed2980(); |
2781 o.tag = "foo"; | 2781 o.tag = "foo"; |
2782 } | 2782 } |
2783 buildCounterSideInputInfo--; | 2783 buildCounterSideInputInfo--; |
2784 return o; | 2784 return o; |
2785 } | 2785 } |
2786 | 2786 |
2787 checkSideInputInfo(api.SideInputInfo o) { | 2787 checkSideInputInfo(api.SideInputInfo o) { |
2788 buildCounterSideInputInfo++; | 2788 buildCounterSideInputInfo++; |
2789 if (buildCounterSideInputInfo < 3) { | 2789 if (buildCounterSideInputInfo < 3) { |
2790 checkUnnamed3505(o.kind); | 2790 checkUnnamed2979(o.kind); |
2791 checkUnnamed3506(o.sources); | 2791 checkUnnamed2980(o.sources); |
2792 unittest.expect(o.tag, unittest.equals('foo')); | 2792 unittest.expect(o.tag, unittest.equals('foo')); |
2793 } | 2793 } |
2794 buildCounterSideInputInfo--; | 2794 buildCounterSideInputInfo--; |
2795 } | 2795 } |
2796 | 2796 |
2797 buildUnnamed3507() { | 2797 buildUnnamed2981() { |
2798 var o = new core.Map<core.String, core.Object>(); | 2798 var o = new core.Map<core.String, core.Object>(); |
2799 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2799 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2800 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2800 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2801 return o; | 2801 return o; |
2802 } | 2802 } |
2803 | 2803 |
2804 checkUnnamed3507(core.Map<core.String, core.Object> o) { | 2804 checkUnnamed2981(core.Map<core.String, core.Object> o) { |
2805 unittest.expect(o, unittest.hasLength(2)); | 2805 unittest.expect(o, unittest.hasLength(2)); |
2806 var casted29 = (o["x"]) as core.Map; unittest.expect(casted29, unittest.hasLen
gth(3)); unittest.expect(casted29["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted29["bool"], unittest.equals(true)); unittest.expect(casted29["stri
ng"], unittest.equals('foo')); | 2806 var casted29 = (o["x"]) as core.Map; unittest.expect(casted29, unittest.hasLen
gth(3)); unittest.expect(casted29["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted29["bool"], unittest.equals(true)); unittest.expect(casted29["stri
ng"], unittest.equals('foo')); |
2807 var casted30 = (o["y"]) as core.Map; unittest.expect(casted30, unittest.hasLen
gth(3)); unittest.expect(casted30["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted30["bool"], unittest.equals(true)); unittest.expect(casted30["stri
ng"], unittest.equals('foo')); | 2807 var casted30 = (o["y"]) as core.Map; unittest.expect(casted30, unittest.hasLen
gth(3)); unittest.expect(casted30["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted30["bool"], unittest.equals(true)); unittest.expect(casted30["stri
ng"], unittest.equals('foo')); |
2808 } | 2808 } |
2809 | 2809 |
2810 buildUnnamed3508() { | 2810 buildUnnamed2982() { |
2811 var o = new core.Map<core.String, core.Object>(); | 2811 var o = new core.Map<core.String, core.Object>(); |
2812 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2812 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2813 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2813 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2814 return o; | 2814 return o; |
2815 } | 2815 } |
2816 | 2816 |
2817 checkUnnamed3508(core.Map<core.String, core.Object> o) { | 2817 checkUnnamed2982(core.Map<core.String, core.Object> o) { |
2818 unittest.expect(o, unittest.hasLength(2)); | 2818 unittest.expect(o, unittest.hasLength(2)); |
2819 var casted31 = (o["x"]) as core.Map; unittest.expect(casted31, unittest.hasLen
gth(3)); unittest.expect(casted31["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted31["bool"], unittest.equals(true)); unittest.expect(casted31["stri
ng"], unittest.equals('foo')); | 2819 var casted31 = (o["x"]) as core.Map; unittest.expect(casted31, unittest.hasLen
gth(3)); unittest.expect(casted31["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted31["bool"], unittest.equals(true)); unittest.expect(casted31["stri
ng"], unittest.equals('foo')); |
2820 var casted32 = (o["y"]) as core.Map; unittest.expect(casted32, unittest.hasLen
gth(3)); unittest.expect(casted32["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted32["bool"], unittest.equals(true)); unittest.expect(casted32["stri
ng"], unittest.equals('foo')); | 2820 var casted32 = (o["y"]) as core.Map; unittest.expect(casted32, unittest.hasLen
gth(3)); unittest.expect(casted32["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted32["bool"], unittest.equals(true)); unittest.expect(casted32["stri
ng"], unittest.equals('foo')); |
2821 } | 2821 } |
2822 | 2822 |
2823 core.int buildCounterSink = 0; | 2823 core.int buildCounterSink = 0; |
2824 buildSink() { | 2824 buildSink() { |
2825 var o = new api.Sink(); | 2825 var o = new api.Sink(); |
2826 buildCounterSink++; | 2826 buildCounterSink++; |
2827 if (buildCounterSink < 3) { | 2827 if (buildCounterSink < 3) { |
2828 o.codec = buildUnnamed3507(); | 2828 o.codec = buildUnnamed2981(); |
2829 o.spec = buildUnnamed3508(); | 2829 o.spec = buildUnnamed2982(); |
2830 } | 2830 } |
2831 buildCounterSink--; | 2831 buildCounterSink--; |
2832 return o; | 2832 return o; |
2833 } | 2833 } |
2834 | 2834 |
2835 checkSink(api.Sink o) { | 2835 checkSink(api.Sink o) { |
2836 buildCounterSink++; | 2836 buildCounterSink++; |
2837 if (buildCounterSink < 3) { | 2837 if (buildCounterSink < 3) { |
2838 checkUnnamed3507(o.codec); | 2838 checkUnnamed2981(o.codec); |
2839 checkUnnamed3508(o.spec); | 2839 checkUnnamed2982(o.spec); |
2840 } | 2840 } |
2841 buildCounterSink--; | 2841 buildCounterSink--; |
2842 } | 2842 } |
2843 | 2843 |
2844 buildUnnamed3509() { | 2844 buildUnnamed2983() { |
2845 var o = new core.Map<core.String, core.Object>(); | 2845 var o = new core.Map<core.String, core.Object>(); |
2846 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2846 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2847 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2847 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2848 return o; | 2848 return o; |
2849 } | 2849 } |
2850 | 2850 |
2851 checkUnnamed3509(core.Map<core.String, core.Object> o) { | 2851 checkUnnamed2983(core.Map<core.String, core.Object> o) { |
2852 unittest.expect(o, unittest.hasLength(2)); | 2852 unittest.expect(o, unittest.hasLength(2)); |
2853 var casted33 = (o["x"]) as core.Map; unittest.expect(casted33, unittest.hasLen
gth(3)); unittest.expect(casted33["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted33["bool"], unittest.equals(true)); unittest.expect(casted33["stri
ng"], unittest.equals('foo')); | 2853 var casted33 = (o["x"]) as core.Map; unittest.expect(casted33, unittest.hasLen
gth(3)); unittest.expect(casted33["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted33["bool"], unittest.equals(true)); unittest.expect(casted33["stri
ng"], unittest.equals('foo')); |
2854 var casted34 = (o["y"]) as core.Map; unittest.expect(casted34, unittest.hasLen
gth(3)); unittest.expect(casted34["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted34["bool"], unittest.equals(true)); unittest.expect(casted34["stri
ng"], unittest.equals('foo')); | 2854 var casted34 = (o["y"]) as core.Map; unittest.expect(casted34, unittest.hasLen
gth(3)); unittest.expect(casted34["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted34["bool"], unittest.equals(true)); unittest.expect(casted34["stri
ng"], unittest.equals('foo')); |
2855 } | 2855 } |
2856 | 2856 |
2857 buildUnnamed3510() { | 2857 buildUnnamed2984() { |
2858 var o = new core.List<core.Map<core.String, core.Object>>(); | 2858 var o = new core.List<core.Map<core.String, core.Object>>(); |
2859 o.add(buildUnnamed3509()); | 2859 o.add(buildUnnamed2983()); |
2860 o.add(buildUnnamed3509()); | 2860 o.add(buildUnnamed2983()); |
2861 return o; | 2861 return o; |
2862 } | 2862 } |
2863 | 2863 |
2864 checkUnnamed3510(core.List<core.Map<core.String, core.Object>> o) { | 2864 checkUnnamed2984(core.List<core.Map<core.String, core.Object>> o) { |
2865 unittest.expect(o, unittest.hasLength(2)); | 2865 unittest.expect(o, unittest.hasLength(2)); |
2866 checkUnnamed3509(o[0]); | 2866 checkUnnamed2983(o[0]); |
2867 checkUnnamed3509(o[1]); | 2867 checkUnnamed2983(o[1]); |
2868 } | 2868 } |
2869 | 2869 |
2870 buildUnnamed3511() { | 2870 buildUnnamed2985() { |
2871 var o = new core.Map<core.String, core.Object>(); | 2871 var o = new core.Map<core.String, core.Object>(); |
2872 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2872 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2873 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2873 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2874 return o; | 2874 return o; |
2875 } | 2875 } |
2876 | 2876 |
2877 checkUnnamed3511(core.Map<core.String, core.Object> o) { | 2877 checkUnnamed2985(core.Map<core.String, core.Object> o) { |
2878 unittest.expect(o, unittest.hasLength(2)); | 2878 unittest.expect(o, unittest.hasLength(2)); |
2879 var casted35 = (o["x"]) as core.Map; unittest.expect(casted35, unittest.hasLen
gth(3)); unittest.expect(casted35["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted35["bool"], unittest.equals(true)); unittest.expect(casted35["stri
ng"], unittest.equals('foo')); | 2879 var casted35 = (o["x"]) as core.Map; unittest.expect(casted35, unittest.hasLen
gth(3)); unittest.expect(casted35["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted35["bool"], unittest.equals(true)); unittest.expect(casted35["stri
ng"], unittest.equals('foo')); |
2880 var casted36 = (o["y"]) as core.Map; unittest.expect(casted36, unittest.hasLen
gth(3)); unittest.expect(casted36["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted36["bool"], unittest.equals(true)); unittest.expect(casted36["stri
ng"], unittest.equals('foo')); | 2880 var casted36 = (o["y"]) as core.Map; unittest.expect(casted36, unittest.hasLen
gth(3)); unittest.expect(casted36["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted36["bool"], unittest.equals(true)); unittest.expect(casted36["stri
ng"], unittest.equals('foo')); |
2881 } | 2881 } |
2882 | 2882 |
2883 buildUnnamed3512() { | 2883 buildUnnamed2986() { |
2884 var o = new core.Map<core.String, core.Object>(); | 2884 var o = new core.Map<core.String, core.Object>(); |
2885 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2885 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2886 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2886 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2887 return o; | 2887 return o; |
2888 } | 2888 } |
2889 | 2889 |
2890 checkUnnamed3512(core.Map<core.String, core.Object> o) { | 2890 checkUnnamed2986(core.Map<core.String, core.Object> o) { |
2891 unittest.expect(o, unittest.hasLength(2)); | 2891 unittest.expect(o, unittest.hasLength(2)); |
2892 var casted37 = (o["x"]) as core.Map; unittest.expect(casted37, unittest.hasLen
gth(3)); unittest.expect(casted37["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted37["bool"], unittest.equals(true)); unittest.expect(casted37["stri
ng"], unittest.equals('foo')); | 2892 var casted37 = (o["x"]) as core.Map; unittest.expect(casted37, unittest.hasLen
gth(3)); unittest.expect(casted37["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted37["bool"], unittest.equals(true)); unittest.expect(casted37["stri
ng"], unittest.equals('foo')); |
2893 var casted38 = (o["y"]) as core.Map; unittest.expect(casted38, unittest.hasLen
gth(3)); unittest.expect(casted38["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted38["bool"], unittest.equals(true)); unittest.expect(casted38["stri
ng"], unittest.equals('foo')); | 2893 var casted38 = (o["y"]) as core.Map; unittest.expect(casted38, unittest.hasLen
gth(3)); unittest.expect(casted38["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted38["bool"], unittest.equals(true)); unittest.expect(casted38["stri
ng"], unittest.equals('foo')); |
2894 } | 2894 } |
2895 | 2895 |
2896 core.int buildCounterSource = 0; | 2896 core.int buildCounterSource = 0; |
2897 buildSource() { | 2897 buildSource() { |
2898 var o = new api.Source(); | 2898 var o = new api.Source(); |
2899 buildCounterSource++; | 2899 buildCounterSource++; |
2900 if (buildCounterSource < 3) { | 2900 if (buildCounterSource < 3) { |
2901 o.baseSpecs = buildUnnamed3510(); | 2901 o.baseSpecs = buildUnnamed2984(); |
2902 o.codec = buildUnnamed3511(); | 2902 o.codec = buildUnnamed2985(); |
2903 o.doesNotNeedSplitting = true; | 2903 o.doesNotNeedSplitting = true; |
2904 o.metadata = buildSourceMetadata(); | 2904 o.metadata = buildSourceMetadata(); |
2905 o.spec = buildUnnamed3512(); | 2905 o.spec = buildUnnamed2986(); |
2906 } | 2906 } |
2907 buildCounterSource--; | 2907 buildCounterSource--; |
2908 return o; | 2908 return o; |
2909 } | 2909 } |
2910 | 2910 |
2911 checkSource(api.Source o) { | 2911 checkSource(api.Source o) { |
2912 buildCounterSource++; | 2912 buildCounterSource++; |
2913 if (buildCounterSource < 3) { | 2913 if (buildCounterSource < 3) { |
2914 checkUnnamed3510(o.baseSpecs); | 2914 checkUnnamed2984(o.baseSpecs); |
2915 checkUnnamed3511(o.codec); | 2915 checkUnnamed2985(o.codec); |
2916 unittest.expect(o.doesNotNeedSplitting, unittest.isTrue); | 2916 unittest.expect(o.doesNotNeedSplitting, unittest.isTrue); |
2917 checkSourceMetadata(o.metadata); | 2917 checkSourceMetadata(o.metadata); |
2918 checkUnnamed3512(o.spec); | 2918 checkUnnamed2986(o.spec); |
2919 } | 2919 } |
2920 buildCounterSource--; | 2920 buildCounterSource--; |
2921 } | 2921 } |
2922 | 2922 |
2923 core.int buildCounterSourceFork = 0; | 2923 core.int buildCounterSourceFork = 0; |
2924 buildSourceFork() { | 2924 buildSourceFork() { |
2925 var o = new api.SourceFork(); | 2925 var o = new api.SourceFork(); |
2926 buildCounterSourceFork++; | 2926 buildCounterSourceFork++; |
2927 if (buildCounterSourceFork < 3) { | 2927 if (buildCounterSourceFork < 3) { |
2928 o.primary = buildSourceSplitShard(); | 2928 o.primary = buildSourceSplitShard(); |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3083 | 3083 |
3084 checkSourceSplitRequest(api.SourceSplitRequest o) { | 3084 checkSourceSplitRequest(api.SourceSplitRequest o) { |
3085 buildCounterSourceSplitRequest++; | 3085 buildCounterSourceSplitRequest++; |
3086 if (buildCounterSourceSplitRequest < 3) { | 3086 if (buildCounterSourceSplitRequest < 3) { |
3087 checkSourceSplitOptions(o.options); | 3087 checkSourceSplitOptions(o.options); |
3088 checkSource(o.source); | 3088 checkSource(o.source); |
3089 } | 3089 } |
3090 buildCounterSourceSplitRequest--; | 3090 buildCounterSourceSplitRequest--; |
3091 } | 3091 } |
3092 | 3092 |
3093 buildUnnamed3513() { | 3093 buildUnnamed2987() { |
3094 var o = new core.List<api.DerivedSource>(); | 3094 var o = new core.List<api.DerivedSource>(); |
3095 o.add(buildDerivedSource()); | 3095 o.add(buildDerivedSource()); |
3096 o.add(buildDerivedSource()); | 3096 o.add(buildDerivedSource()); |
3097 return o; | 3097 return o; |
3098 } | 3098 } |
3099 | 3099 |
3100 checkUnnamed3513(core.List<api.DerivedSource> o) { | 3100 checkUnnamed2987(core.List<api.DerivedSource> o) { |
3101 unittest.expect(o, unittest.hasLength(2)); | 3101 unittest.expect(o, unittest.hasLength(2)); |
3102 checkDerivedSource(o[0]); | 3102 checkDerivedSource(o[0]); |
3103 checkDerivedSource(o[1]); | 3103 checkDerivedSource(o[1]); |
3104 } | 3104 } |
3105 | 3105 |
3106 buildUnnamed3514() { | 3106 buildUnnamed2988() { |
3107 var o = new core.List<api.SourceSplitShard>(); | 3107 var o = new core.List<api.SourceSplitShard>(); |
3108 o.add(buildSourceSplitShard()); | 3108 o.add(buildSourceSplitShard()); |
3109 o.add(buildSourceSplitShard()); | 3109 o.add(buildSourceSplitShard()); |
3110 return o; | 3110 return o; |
3111 } | 3111 } |
3112 | 3112 |
3113 checkUnnamed3514(core.List<api.SourceSplitShard> o) { | 3113 checkUnnamed2988(core.List<api.SourceSplitShard> o) { |
3114 unittest.expect(o, unittest.hasLength(2)); | 3114 unittest.expect(o, unittest.hasLength(2)); |
3115 checkSourceSplitShard(o[0]); | 3115 checkSourceSplitShard(o[0]); |
3116 checkSourceSplitShard(o[1]); | 3116 checkSourceSplitShard(o[1]); |
3117 } | 3117 } |
3118 | 3118 |
3119 core.int buildCounterSourceSplitResponse = 0; | 3119 core.int buildCounterSourceSplitResponse = 0; |
3120 buildSourceSplitResponse() { | 3120 buildSourceSplitResponse() { |
3121 var o = new api.SourceSplitResponse(); | 3121 var o = new api.SourceSplitResponse(); |
3122 buildCounterSourceSplitResponse++; | 3122 buildCounterSourceSplitResponse++; |
3123 if (buildCounterSourceSplitResponse < 3) { | 3123 if (buildCounterSourceSplitResponse < 3) { |
3124 o.bundles = buildUnnamed3513(); | 3124 o.bundles = buildUnnamed2987(); |
3125 o.outcome = "foo"; | 3125 o.outcome = "foo"; |
3126 o.shards = buildUnnamed3514(); | 3126 o.shards = buildUnnamed2988(); |
3127 } | 3127 } |
3128 buildCounterSourceSplitResponse--; | 3128 buildCounterSourceSplitResponse--; |
3129 return o; | 3129 return o; |
3130 } | 3130 } |
3131 | 3131 |
3132 checkSourceSplitResponse(api.SourceSplitResponse o) { | 3132 checkSourceSplitResponse(api.SourceSplitResponse o) { |
3133 buildCounterSourceSplitResponse++; | 3133 buildCounterSourceSplitResponse++; |
3134 if (buildCounterSourceSplitResponse < 3) { | 3134 if (buildCounterSourceSplitResponse < 3) { |
3135 checkUnnamed3513(o.bundles); | 3135 checkUnnamed2987(o.bundles); |
3136 unittest.expect(o.outcome, unittest.equals('foo')); | 3136 unittest.expect(o.outcome, unittest.equals('foo')); |
3137 checkUnnamed3514(o.shards); | 3137 checkUnnamed2988(o.shards); |
3138 } | 3138 } |
3139 buildCounterSourceSplitResponse--; | 3139 buildCounterSourceSplitResponse--; |
3140 } | 3140 } |
3141 | 3141 |
3142 core.int buildCounterSourceSplitShard = 0; | 3142 core.int buildCounterSourceSplitShard = 0; |
3143 buildSourceSplitShard() { | 3143 buildSourceSplitShard() { |
3144 var o = new api.SourceSplitShard(); | 3144 var o = new api.SourceSplitShard(); |
3145 buildCounterSourceSplitShard++; | 3145 buildCounterSourceSplitShard++; |
3146 if (buildCounterSourceSplitShard < 3) { | 3146 if (buildCounterSourceSplitShard < 3) { |
3147 o.derivationMode = "foo"; | 3147 o.derivationMode = "foo"; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3220 | 3220 |
3221 checkStateFamilyConfig(api.StateFamilyConfig o) { | 3221 checkStateFamilyConfig(api.StateFamilyConfig o) { |
3222 buildCounterStateFamilyConfig++; | 3222 buildCounterStateFamilyConfig++; |
3223 if (buildCounterStateFamilyConfig < 3) { | 3223 if (buildCounterStateFamilyConfig < 3) { |
3224 unittest.expect(o.isRead, unittest.isTrue); | 3224 unittest.expect(o.isRead, unittest.isTrue); |
3225 unittest.expect(o.stateFamily, unittest.equals('foo')); | 3225 unittest.expect(o.stateFamily, unittest.equals('foo')); |
3226 } | 3226 } |
3227 buildCounterStateFamilyConfig--; | 3227 buildCounterStateFamilyConfig--; |
3228 } | 3228 } |
3229 | 3229 |
3230 buildUnnamed3515() { | 3230 buildUnnamed2989() { |
3231 var o = new core.Map<core.String, core.Object>(); | 3231 var o = new core.Map<core.String, core.Object>(); |
3232 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3232 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
3233 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3233 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
3234 return o; | 3234 return o; |
3235 } | 3235 } |
3236 | 3236 |
3237 checkUnnamed3515(core.Map<core.String, core.Object> o) { | 3237 checkUnnamed2989(core.Map<core.String, core.Object> o) { |
3238 unittest.expect(o, unittest.hasLength(2)); | 3238 unittest.expect(o, unittest.hasLength(2)); |
3239 var casted39 = (o["x"]) as core.Map; unittest.expect(casted39, unittest.hasLen
gth(3)); unittest.expect(casted39["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted39["bool"], unittest.equals(true)); unittest.expect(casted39["stri
ng"], unittest.equals('foo')); | 3239 var casted39 = (o["x"]) as core.Map; unittest.expect(casted39, unittest.hasLen
gth(3)); unittest.expect(casted39["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted39["bool"], unittest.equals(true)); unittest.expect(casted39["stri
ng"], unittest.equals('foo')); |
3240 var casted40 = (o["y"]) as core.Map; unittest.expect(casted40, unittest.hasLen
gth(3)); unittest.expect(casted40["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted40["bool"], unittest.equals(true)); unittest.expect(casted40["stri
ng"], unittest.equals('foo')); | 3240 var casted40 = (o["y"]) as core.Map; unittest.expect(casted40, unittest.hasLen
gth(3)); unittest.expect(casted40["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted40["bool"], unittest.equals(true)); unittest.expect(casted40["stri
ng"], unittest.equals('foo')); |
3241 } | 3241 } |
3242 | 3242 |
3243 buildUnnamed3516() { | 3243 buildUnnamed2990() { |
3244 var o = new core.List<core.Map<core.String, core.Object>>(); | 3244 var o = new core.List<core.Map<core.String, core.Object>>(); |
3245 o.add(buildUnnamed3515()); | 3245 o.add(buildUnnamed2989()); |
3246 o.add(buildUnnamed3515()); | 3246 o.add(buildUnnamed2989()); |
3247 return o; | 3247 return o; |
3248 } | 3248 } |
3249 | 3249 |
3250 checkUnnamed3516(core.List<core.Map<core.String, core.Object>> o) { | 3250 checkUnnamed2990(core.List<core.Map<core.String, core.Object>> o) { |
3251 unittest.expect(o, unittest.hasLength(2)); | 3251 unittest.expect(o, unittest.hasLength(2)); |
3252 checkUnnamed3515(o[0]); | 3252 checkUnnamed2989(o[0]); |
3253 checkUnnamed3515(o[1]); | 3253 checkUnnamed2989(o[1]); |
3254 } | 3254 } |
3255 | 3255 |
3256 core.int buildCounterStatus = 0; | 3256 core.int buildCounterStatus = 0; |
3257 buildStatus() { | 3257 buildStatus() { |
3258 var o = new api.Status(); | 3258 var o = new api.Status(); |
3259 buildCounterStatus++; | 3259 buildCounterStatus++; |
3260 if (buildCounterStatus < 3) { | 3260 if (buildCounterStatus < 3) { |
3261 o.code = 42; | 3261 o.code = 42; |
3262 o.details = buildUnnamed3516(); | 3262 o.details = buildUnnamed2990(); |
3263 o.message = "foo"; | 3263 o.message = "foo"; |
3264 } | 3264 } |
3265 buildCounterStatus--; | 3265 buildCounterStatus--; |
3266 return o; | 3266 return o; |
3267 } | 3267 } |
3268 | 3268 |
3269 checkStatus(api.Status o) { | 3269 checkStatus(api.Status o) { |
3270 buildCounterStatus++; | 3270 buildCounterStatus++; |
3271 if (buildCounterStatus < 3) { | 3271 if (buildCounterStatus < 3) { |
3272 unittest.expect(o.code, unittest.equals(42)); | 3272 unittest.expect(o.code, unittest.equals(42)); |
3273 checkUnnamed3516(o.details); | 3273 checkUnnamed2990(o.details); |
3274 unittest.expect(o.message, unittest.equals('foo')); | 3274 unittest.expect(o.message, unittest.equals('foo')); |
3275 } | 3275 } |
3276 buildCounterStatus--; | 3276 buildCounterStatus--; |
3277 } | 3277 } |
3278 | 3278 |
3279 buildUnnamed3517() { | 3279 buildUnnamed2991() { |
3280 var o = new core.Map<core.String, core.Object>(); | 3280 var o = new core.Map<core.String, core.Object>(); |
3281 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3281 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
3282 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3282 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
3283 return o; | 3283 return o; |
3284 } | 3284 } |
3285 | 3285 |
3286 checkUnnamed3517(core.Map<core.String, core.Object> o) { | 3286 checkUnnamed2991(core.Map<core.String, core.Object> o) { |
3287 unittest.expect(o, unittest.hasLength(2)); | 3287 unittest.expect(o, unittest.hasLength(2)); |
3288 var casted41 = (o["x"]) as core.Map; unittest.expect(casted41, unittest.hasLen
gth(3)); unittest.expect(casted41["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted41["bool"], unittest.equals(true)); unittest.expect(casted41["stri
ng"], unittest.equals('foo')); | 3288 var casted41 = (o["x"]) as core.Map; unittest.expect(casted41, unittest.hasLen
gth(3)); unittest.expect(casted41["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted41["bool"], unittest.equals(true)); unittest.expect(casted41["stri
ng"], unittest.equals('foo')); |
3289 var casted42 = (o["y"]) as core.Map; unittest.expect(casted42, unittest.hasLen
gth(3)); unittest.expect(casted42["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted42["bool"], unittest.equals(true)); unittest.expect(casted42["stri
ng"], unittest.equals('foo')); | 3289 var casted42 = (o["y"]) as core.Map; unittest.expect(casted42, unittest.hasLen
gth(3)); unittest.expect(casted42["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted42["bool"], unittest.equals(true)); unittest.expect(casted42["stri
ng"], unittest.equals('foo')); |
3290 } | 3290 } |
3291 | 3291 |
3292 core.int buildCounterStep = 0; | 3292 core.int buildCounterStep = 0; |
3293 buildStep() { | 3293 buildStep() { |
3294 var o = new api.Step(); | 3294 var o = new api.Step(); |
3295 buildCounterStep++; | 3295 buildCounterStep++; |
3296 if (buildCounterStep < 3) { | 3296 if (buildCounterStep < 3) { |
3297 o.kind = "foo"; | 3297 o.kind = "foo"; |
3298 o.name = "foo"; | 3298 o.name = "foo"; |
3299 o.properties = buildUnnamed3517(); | 3299 o.properties = buildUnnamed2991(); |
3300 } | 3300 } |
3301 buildCounterStep--; | 3301 buildCounterStep--; |
3302 return o; | 3302 return o; |
3303 } | 3303 } |
3304 | 3304 |
3305 checkStep(api.Step o) { | 3305 checkStep(api.Step o) { |
3306 buildCounterStep++; | 3306 buildCounterStep++; |
3307 if (buildCounterStep < 3) { | 3307 if (buildCounterStep < 3) { |
3308 unittest.expect(o.kind, unittest.equals('foo')); | 3308 unittest.expect(o.kind, unittest.equals('foo')); |
3309 unittest.expect(o.name, unittest.equals('foo')); | 3309 unittest.expect(o.name, unittest.equals('foo')); |
3310 checkUnnamed3517(o.properties); | 3310 checkUnnamed2991(o.properties); |
3311 } | 3311 } |
3312 buildCounterStep--; | 3312 buildCounterStep--; |
3313 } | 3313 } |
3314 | 3314 |
3315 core.int buildCounterStreamLocation = 0; | 3315 core.int buildCounterStreamLocation = 0; |
3316 buildStreamLocation() { | 3316 buildStreamLocation() { |
3317 var o = new api.StreamLocation(); | 3317 var o = new api.StreamLocation(); |
3318 buildCounterStreamLocation++; | 3318 buildCounterStreamLocation++; |
3319 if (buildCounterStreamLocation < 3) { | 3319 if (buildCounterStreamLocation < 3) { |
3320 o.customSourceLocation = buildCustomSourceLocation(); | 3320 o.customSourceLocation = buildCustomSourceLocation(); |
3321 o.pubsubLocation = buildPubsubLocation(); | 3321 o.pubsubLocation = buildPubsubLocation(); |
3322 o.sideInputLocation = buildStreamingSideInputLocation(); | 3322 o.sideInputLocation = buildStreamingSideInputLocation(); |
3323 o.streamingStageLocation = buildStreamingStageLocation(); | 3323 o.streamingStageLocation = buildStreamingStageLocation(); |
3324 } | 3324 } |
3325 buildCounterStreamLocation--; | 3325 buildCounterStreamLocation--; |
3326 return o; | 3326 return o; |
3327 } | 3327 } |
3328 | 3328 |
3329 checkStreamLocation(api.StreamLocation o) { | 3329 checkStreamLocation(api.StreamLocation o) { |
3330 buildCounterStreamLocation++; | 3330 buildCounterStreamLocation++; |
3331 if (buildCounterStreamLocation < 3) { | 3331 if (buildCounterStreamLocation < 3) { |
3332 checkCustomSourceLocation(o.customSourceLocation); | 3332 checkCustomSourceLocation(o.customSourceLocation); |
3333 checkPubsubLocation(o.pubsubLocation); | 3333 checkPubsubLocation(o.pubsubLocation); |
3334 checkStreamingSideInputLocation(o.sideInputLocation); | 3334 checkStreamingSideInputLocation(o.sideInputLocation); |
3335 checkStreamingStageLocation(o.streamingStageLocation); | 3335 checkStreamingStageLocation(o.streamingStageLocation); |
3336 } | 3336 } |
3337 buildCounterStreamLocation--; | 3337 buildCounterStreamLocation--; |
3338 } | 3338 } |
3339 | 3339 |
3340 buildUnnamed3518() { | 3340 buildUnnamed2992() { |
3341 var o = new core.List<api.ParallelInstruction>(); | 3341 var o = new core.List<api.ParallelInstruction>(); |
3342 o.add(buildParallelInstruction()); | 3342 o.add(buildParallelInstruction()); |
3343 o.add(buildParallelInstruction()); | 3343 o.add(buildParallelInstruction()); |
3344 return o; | 3344 return o; |
3345 } | 3345 } |
3346 | 3346 |
3347 checkUnnamed3518(core.List<api.ParallelInstruction> o) { | 3347 checkUnnamed2992(core.List<api.ParallelInstruction> o) { |
3348 unittest.expect(o, unittest.hasLength(2)); | 3348 unittest.expect(o, unittest.hasLength(2)); |
3349 checkParallelInstruction(o[0]); | 3349 checkParallelInstruction(o[0]); |
3350 checkParallelInstruction(o[1]); | 3350 checkParallelInstruction(o[1]); |
3351 } | 3351 } |
3352 | 3352 |
3353 core.int buildCounterStreamingComputationConfig = 0; | 3353 core.int buildCounterStreamingComputationConfig = 0; |
3354 buildStreamingComputationConfig() { | 3354 buildStreamingComputationConfig() { |
3355 var o = new api.StreamingComputationConfig(); | 3355 var o = new api.StreamingComputationConfig(); |
3356 buildCounterStreamingComputationConfig++; | 3356 buildCounterStreamingComputationConfig++; |
3357 if (buildCounterStreamingComputationConfig < 3) { | 3357 if (buildCounterStreamingComputationConfig < 3) { |
3358 o.computationId = "foo"; | 3358 o.computationId = "foo"; |
3359 o.instructions = buildUnnamed3518(); | 3359 o.instructions = buildUnnamed2992(); |
3360 o.stageName = "foo"; | 3360 o.stageName = "foo"; |
3361 o.systemName = "foo"; | 3361 o.systemName = "foo"; |
3362 } | 3362 } |
3363 buildCounterStreamingComputationConfig--; | 3363 buildCounterStreamingComputationConfig--; |
3364 return o; | 3364 return o; |
3365 } | 3365 } |
3366 | 3366 |
3367 checkStreamingComputationConfig(api.StreamingComputationConfig o) { | 3367 checkStreamingComputationConfig(api.StreamingComputationConfig o) { |
3368 buildCounterStreamingComputationConfig++; | 3368 buildCounterStreamingComputationConfig++; |
3369 if (buildCounterStreamingComputationConfig < 3) { | 3369 if (buildCounterStreamingComputationConfig < 3) { |
3370 unittest.expect(o.computationId, unittest.equals('foo')); | 3370 unittest.expect(o.computationId, unittest.equals('foo')); |
3371 checkUnnamed3518(o.instructions); | 3371 checkUnnamed2992(o.instructions); |
3372 unittest.expect(o.stageName, unittest.equals('foo')); | 3372 unittest.expect(o.stageName, unittest.equals('foo')); |
3373 unittest.expect(o.systemName, unittest.equals('foo')); | 3373 unittest.expect(o.systemName, unittest.equals('foo')); |
3374 } | 3374 } |
3375 buildCounterStreamingComputationConfig--; | 3375 buildCounterStreamingComputationConfig--; |
3376 } | 3376 } |
3377 | 3377 |
3378 buildUnnamed3519() { | 3378 buildUnnamed2993() { |
3379 var o = new core.List<api.KeyRangeDataDiskAssignment>(); | 3379 var o = new core.List<api.KeyRangeDataDiskAssignment>(); |
3380 o.add(buildKeyRangeDataDiskAssignment()); | 3380 o.add(buildKeyRangeDataDiskAssignment()); |
3381 o.add(buildKeyRangeDataDiskAssignment()); | 3381 o.add(buildKeyRangeDataDiskAssignment()); |
3382 return o; | 3382 return o; |
3383 } | 3383 } |
3384 | 3384 |
3385 checkUnnamed3519(core.List<api.KeyRangeDataDiskAssignment> o) { | 3385 checkUnnamed2993(core.List<api.KeyRangeDataDiskAssignment> o) { |
3386 unittest.expect(o, unittest.hasLength(2)); | 3386 unittest.expect(o, unittest.hasLength(2)); |
3387 checkKeyRangeDataDiskAssignment(o[0]); | 3387 checkKeyRangeDataDiskAssignment(o[0]); |
3388 checkKeyRangeDataDiskAssignment(o[1]); | 3388 checkKeyRangeDataDiskAssignment(o[1]); |
3389 } | 3389 } |
3390 | 3390 |
3391 core.int buildCounterStreamingComputationRanges = 0; | 3391 core.int buildCounterStreamingComputationRanges = 0; |
3392 buildStreamingComputationRanges() { | 3392 buildStreamingComputationRanges() { |
3393 var o = new api.StreamingComputationRanges(); | 3393 var o = new api.StreamingComputationRanges(); |
3394 buildCounterStreamingComputationRanges++; | 3394 buildCounterStreamingComputationRanges++; |
3395 if (buildCounterStreamingComputationRanges < 3) { | 3395 if (buildCounterStreamingComputationRanges < 3) { |
3396 o.computationId = "foo"; | 3396 o.computationId = "foo"; |
3397 o.rangeAssignments = buildUnnamed3519(); | 3397 o.rangeAssignments = buildUnnamed2993(); |
3398 } | 3398 } |
3399 buildCounterStreamingComputationRanges--; | 3399 buildCounterStreamingComputationRanges--; |
3400 return o; | 3400 return o; |
3401 } | 3401 } |
3402 | 3402 |
3403 checkStreamingComputationRanges(api.StreamingComputationRanges o) { | 3403 checkStreamingComputationRanges(api.StreamingComputationRanges o) { |
3404 buildCounterStreamingComputationRanges++; | 3404 buildCounterStreamingComputationRanges++; |
3405 if (buildCounterStreamingComputationRanges < 3) { | 3405 if (buildCounterStreamingComputationRanges < 3) { |
3406 unittest.expect(o.computationId, unittest.equals('foo')); | 3406 unittest.expect(o.computationId, unittest.equals('foo')); |
3407 checkUnnamed3519(o.rangeAssignments); | 3407 checkUnnamed2993(o.rangeAssignments); |
3408 } | 3408 } |
3409 buildCounterStreamingComputationRanges--; | 3409 buildCounterStreamingComputationRanges--; |
3410 } | 3410 } |
3411 | 3411 |
3412 buildUnnamed3520() { | 3412 buildUnnamed2994() { |
3413 var o = new core.List<api.StreamingComputationRanges>(); | 3413 var o = new core.List<api.StreamingComputationRanges>(); |
3414 o.add(buildStreamingComputationRanges()); | 3414 o.add(buildStreamingComputationRanges()); |
3415 o.add(buildStreamingComputationRanges()); | 3415 o.add(buildStreamingComputationRanges()); |
3416 return o; | 3416 return o; |
3417 } | 3417 } |
3418 | 3418 |
3419 checkUnnamed3520(core.List<api.StreamingComputationRanges> o) { | 3419 checkUnnamed2994(core.List<api.StreamingComputationRanges> o) { |
3420 unittest.expect(o, unittest.hasLength(2)); | 3420 unittest.expect(o, unittest.hasLength(2)); |
3421 checkStreamingComputationRanges(o[0]); | 3421 checkStreamingComputationRanges(o[0]); |
3422 checkStreamingComputationRanges(o[1]); | 3422 checkStreamingComputationRanges(o[1]); |
3423 } | 3423 } |
3424 | 3424 |
3425 buildUnnamed3521() { | 3425 buildUnnamed2995() { |
3426 var o = new core.List<api.MountedDataDisk>(); | 3426 var o = new core.List<api.MountedDataDisk>(); |
3427 o.add(buildMountedDataDisk()); | 3427 o.add(buildMountedDataDisk()); |
3428 o.add(buildMountedDataDisk()); | 3428 o.add(buildMountedDataDisk()); |
3429 return o; | 3429 return o; |
3430 } | 3430 } |
3431 | 3431 |
3432 checkUnnamed3521(core.List<api.MountedDataDisk> o) { | 3432 checkUnnamed2995(core.List<api.MountedDataDisk> o) { |
3433 unittest.expect(o, unittest.hasLength(2)); | 3433 unittest.expect(o, unittest.hasLength(2)); |
3434 checkMountedDataDisk(o[0]); | 3434 checkMountedDataDisk(o[0]); |
3435 checkMountedDataDisk(o[1]); | 3435 checkMountedDataDisk(o[1]); |
3436 } | 3436 } |
3437 | 3437 |
3438 core.int buildCounterStreamingComputationTask = 0; | 3438 core.int buildCounterStreamingComputationTask = 0; |
3439 buildStreamingComputationTask() { | 3439 buildStreamingComputationTask() { |
3440 var o = new api.StreamingComputationTask(); | 3440 var o = new api.StreamingComputationTask(); |
3441 buildCounterStreamingComputationTask++; | 3441 buildCounterStreamingComputationTask++; |
3442 if (buildCounterStreamingComputationTask < 3) { | 3442 if (buildCounterStreamingComputationTask < 3) { |
3443 o.computationRanges = buildUnnamed3520(); | 3443 o.computationRanges = buildUnnamed2994(); |
3444 o.dataDisks = buildUnnamed3521(); | 3444 o.dataDisks = buildUnnamed2995(); |
3445 o.taskType = "foo"; | 3445 o.taskType = "foo"; |
3446 } | 3446 } |
3447 buildCounterStreamingComputationTask--; | 3447 buildCounterStreamingComputationTask--; |
3448 return o; | 3448 return o; |
3449 } | 3449 } |
3450 | 3450 |
3451 checkStreamingComputationTask(api.StreamingComputationTask o) { | 3451 checkStreamingComputationTask(api.StreamingComputationTask o) { |
3452 buildCounterStreamingComputationTask++; | 3452 buildCounterStreamingComputationTask++; |
3453 if (buildCounterStreamingComputationTask < 3) { | 3453 if (buildCounterStreamingComputationTask < 3) { |
3454 checkUnnamed3520(o.computationRanges); | 3454 checkUnnamed2994(o.computationRanges); |
3455 checkUnnamed3521(o.dataDisks); | 3455 checkUnnamed2995(o.dataDisks); |
3456 unittest.expect(o.taskType, unittest.equals('foo')); | 3456 unittest.expect(o.taskType, unittest.equals('foo')); |
3457 } | 3457 } |
3458 buildCounterStreamingComputationTask--; | 3458 buildCounterStreamingComputationTask--; |
3459 } | 3459 } |
3460 | 3460 |
3461 buildUnnamed3522() { | 3461 buildUnnamed2996() { |
3462 var o = new core.List<api.StreamingComputationConfig>(); | 3462 var o = new core.List<api.StreamingComputationConfig>(); |
3463 o.add(buildStreamingComputationConfig()); | 3463 o.add(buildStreamingComputationConfig()); |
3464 o.add(buildStreamingComputationConfig()); | 3464 o.add(buildStreamingComputationConfig()); |
3465 return o; | 3465 return o; |
3466 } | 3466 } |
3467 | 3467 |
3468 checkUnnamed3522(core.List<api.StreamingComputationConfig> o) { | 3468 checkUnnamed2996(core.List<api.StreamingComputationConfig> o) { |
3469 unittest.expect(o, unittest.hasLength(2)); | 3469 unittest.expect(o, unittest.hasLength(2)); |
3470 checkStreamingComputationConfig(o[0]); | 3470 checkStreamingComputationConfig(o[0]); |
3471 checkStreamingComputationConfig(o[1]); | 3471 checkStreamingComputationConfig(o[1]); |
3472 } | 3472 } |
3473 | 3473 |
3474 buildUnnamed3523() { | 3474 buildUnnamed2997() { |
3475 var o = new core.Map<core.String, core.String>(); | 3475 var o = new core.Map<core.String, core.String>(); |
3476 o["x"] = "foo"; | 3476 o["x"] = "foo"; |
3477 o["y"] = "foo"; | 3477 o["y"] = "foo"; |
3478 return o; | 3478 return o; |
3479 } | 3479 } |
3480 | 3480 |
3481 checkUnnamed3523(core.Map<core.String, core.String> o) { | 3481 checkUnnamed2997(core.Map<core.String, core.String> o) { |
3482 unittest.expect(o, unittest.hasLength(2)); | 3482 unittest.expect(o, unittest.hasLength(2)); |
3483 unittest.expect(o["x"], unittest.equals('foo')); | 3483 unittest.expect(o["x"], unittest.equals('foo')); |
3484 unittest.expect(o["y"], unittest.equals('foo')); | 3484 unittest.expect(o["y"], unittest.equals('foo')); |
3485 } | 3485 } |
3486 | 3486 |
3487 core.int buildCounterStreamingConfigTask = 0; | 3487 core.int buildCounterStreamingConfigTask = 0; |
3488 buildStreamingConfigTask() { | 3488 buildStreamingConfigTask() { |
3489 var o = new api.StreamingConfigTask(); | 3489 var o = new api.StreamingConfigTask(); |
3490 buildCounterStreamingConfigTask++; | 3490 buildCounterStreamingConfigTask++; |
3491 if (buildCounterStreamingConfigTask < 3) { | 3491 if (buildCounterStreamingConfigTask < 3) { |
3492 o.streamingComputationConfigs = buildUnnamed3522(); | 3492 o.streamingComputationConfigs = buildUnnamed2996(); |
3493 o.userStepToStateFamilyNameMap = buildUnnamed3523(); | 3493 o.userStepToStateFamilyNameMap = buildUnnamed2997(); |
3494 o.windmillServiceEndpoint = "foo"; | 3494 o.windmillServiceEndpoint = "foo"; |
3495 o.windmillServicePort = "foo"; | 3495 o.windmillServicePort = "foo"; |
3496 } | 3496 } |
3497 buildCounterStreamingConfigTask--; | 3497 buildCounterStreamingConfigTask--; |
3498 return o; | 3498 return o; |
3499 } | 3499 } |
3500 | 3500 |
3501 checkStreamingConfigTask(api.StreamingConfigTask o) { | 3501 checkStreamingConfigTask(api.StreamingConfigTask o) { |
3502 buildCounterStreamingConfigTask++; | 3502 buildCounterStreamingConfigTask++; |
3503 if (buildCounterStreamingConfigTask < 3) { | 3503 if (buildCounterStreamingConfigTask < 3) { |
3504 checkUnnamed3522(o.streamingComputationConfigs); | 3504 checkUnnamed2996(o.streamingComputationConfigs); |
3505 checkUnnamed3523(o.userStepToStateFamilyNameMap); | 3505 checkUnnamed2997(o.userStepToStateFamilyNameMap); |
3506 unittest.expect(o.windmillServiceEndpoint, unittest.equals('foo')); | 3506 unittest.expect(o.windmillServiceEndpoint, unittest.equals('foo')); |
3507 unittest.expect(o.windmillServicePort, unittest.equals('foo')); | 3507 unittest.expect(o.windmillServicePort, unittest.equals('foo')); |
3508 } | 3508 } |
3509 buildCounterStreamingConfigTask--; | 3509 buildCounterStreamingConfigTask--; |
3510 } | 3510 } |
3511 | 3511 |
3512 core.int buildCounterStreamingSetupTask = 0; | 3512 core.int buildCounterStreamingSetupTask = 0; |
3513 buildStreamingSetupTask() { | 3513 buildStreamingSetupTask() { |
3514 var o = new api.StreamingSetupTask(); | 3514 var o = new api.StreamingSetupTask(); |
3515 buildCounterStreamingSetupTask++; | 3515 buildCounterStreamingSetupTask++; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3567 } | 3567 } |
3568 | 3568 |
3569 checkStreamingStageLocation(api.StreamingStageLocation o) { | 3569 checkStreamingStageLocation(api.StreamingStageLocation o) { |
3570 buildCounterStreamingStageLocation++; | 3570 buildCounterStreamingStageLocation++; |
3571 if (buildCounterStreamingStageLocation < 3) { | 3571 if (buildCounterStreamingStageLocation < 3) { |
3572 unittest.expect(o.streamId, unittest.equals('foo')); | 3572 unittest.expect(o.streamId, unittest.equals('foo')); |
3573 } | 3573 } |
3574 buildCounterStreamingStageLocation--; | 3574 buildCounterStreamingStageLocation--; |
3575 } | 3575 } |
3576 | 3576 |
3577 buildUnnamed3524() { | 3577 buildUnnamed2998() { |
3578 var o = new core.List<core.String>(); | 3578 var o = new core.List<core.String>(); |
3579 o.add("foo"); | 3579 o.add("foo"); |
3580 o.add("foo"); | 3580 o.add("foo"); |
3581 return o; | 3581 return o; |
3582 } | 3582 } |
3583 | 3583 |
3584 checkUnnamed3524(core.List<core.String> o) { | 3584 checkUnnamed2998(core.List<core.String> o) { |
3585 unittest.expect(o, unittest.hasLength(2)); | 3585 unittest.expect(o, unittest.hasLength(2)); |
3586 unittest.expect(o[0], unittest.equals('foo')); | 3586 unittest.expect(o[0], unittest.equals('foo')); |
3587 unittest.expect(o[1], unittest.equals('foo')); | 3587 unittest.expect(o[1], unittest.equals('foo')); |
3588 } | 3588 } |
3589 | 3589 |
3590 core.int buildCounterStringList = 0; | 3590 core.int buildCounterStringList = 0; |
3591 buildStringList() { | 3591 buildStringList() { |
3592 var o = new api.StringList(); | 3592 var o = new api.StringList(); |
3593 buildCounterStringList++; | 3593 buildCounterStringList++; |
3594 if (buildCounterStringList < 3) { | 3594 if (buildCounterStringList < 3) { |
3595 o.elements = buildUnnamed3524(); | 3595 o.elements = buildUnnamed2998(); |
3596 } | 3596 } |
3597 buildCounterStringList--; | 3597 buildCounterStringList--; |
3598 return o; | 3598 return o; |
3599 } | 3599 } |
3600 | 3600 |
3601 checkStringList(api.StringList o) { | 3601 checkStringList(api.StringList o) { |
3602 buildCounterStringList++; | 3602 buildCounterStringList++; |
3603 if (buildCounterStringList < 3) { | 3603 if (buildCounterStringList < 3) { |
3604 checkUnnamed3524(o.elements); | 3604 checkUnnamed2998(o.elements); |
3605 } | 3605 } |
3606 buildCounterStringList--; | 3606 buildCounterStringList--; |
3607 } | 3607 } |
3608 | 3608 |
3609 buildUnnamed3525() { | 3609 buildUnnamed2999() { |
3610 var o = new core.List<api.Parameter>(); | 3610 var o = new core.List<api.Parameter>(); |
3611 o.add(buildParameter()); | 3611 o.add(buildParameter()); |
3612 o.add(buildParameter()); | 3612 o.add(buildParameter()); |
3613 return o; | 3613 return o; |
3614 } | 3614 } |
3615 | 3615 |
3616 checkUnnamed3525(core.List<api.Parameter> o) { | 3616 checkUnnamed2999(core.List<api.Parameter> o) { |
3617 unittest.expect(o, unittest.hasLength(2)); | 3617 unittest.expect(o, unittest.hasLength(2)); |
3618 checkParameter(o[0]); | 3618 checkParameter(o[0]); |
3619 checkParameter(o[1]); | 3619 checkParameter(o[1]); |
3620 } | 3620 } |
3621 | 3621 |
3622 core.int buildCounterStructuredMessage = 0; | 3622 core.int buildCounterStructuredMessage = 0; |
3623 buildStructuredMessage() { | 3623 buildStructuredMessage() { |
3624 var o = new api.StructuredMessage(); | 3624 var o = new api.StructuredMessage(); |
3625 buildCounterStructuredMessage++; | 3625 buildCounterStructuredMessage++; |
3626 if (buildCounterStructuredMessage < 3) { | 3626 if (buildCounterStructuredMessage < 3) { |
3627 o.messageKey = "foo"; | 3627 o.messageKey = "foo"; |
3628 o.messageText = "foo"; | 3628 o.messageText = "foo"; |
3629 o.parameters = buildUnnamed3525(); | 3629 o.parameters = buildUnnamed2999(); |
3630 } | 3630 } |
3631 buildCounterStructuredMessage--; | 3631 buildCounterStructuredMessage--; |
3632 return o; | 3632 return o; |
3633 } | 3633 } |
3634 | 3634 |
3635 checkStructuredMessage(api.StructuredMessage o) { | 3635 checkStructuredMessage(api.StructuredMessage o) { |
3636 buildCounterStructuredMessage++; | 3636 buildCounterStructuredMessage++; |
3637 if (buildCounterStructuredMessage < 3) { | 3637 if (buildCounterStructuredMessage < 3) { |
3638 unittest.expect(o.messageKey, unittest.equals('foo')); | 3638 unittest.expect(o.messageKey, unittest.equals('foo')); |
3639 unittest.expect(o.messageText, unittest.equals('foo')); | 3639 unittest.expect(o.messageText, unittest.equals('foo')); |
3640 checkUnnamed3525(o.parameters); | 3640 checkUnnamed2999(o.parameters); |
3641 } | 3641 } |
3642 buildCounterStructuredMessage--; | 3642 buildCounterStructuredMessage--; |
3643 } | 3643 } |
3644 | 3644 |
3645 buildUnnamed3526() { | 3645 buildUnnamed3000() { |
3646 var o = new core.List<core.String>(); | 3646 var o = new core.List<core.String>(); |
3647 o.add("foo"); | 3647 o.add("foo"); |
3648 o.add("foo"); | 3648 o.add("foo"); |
3649 return o; | 3649 return o; |
3650 } | 3650 } |
3651 | 3651 |
3652 checkUnnamed3526(core.List<core.String> o) { | 3652 checkUnnamed3000(core.List<core.String> o) { |
3653 unittest.expect(o, unittest.hasLength(2)); | 3653 unittest.expect(o, unittest.hasLength(2)); |
3654 unittest.expect(o[0], unittest.equals('foo')); | 3654 unittest.expect(o[0], unittest.equals('foo')); |
3655 unittest.expect(o[1], unittest.equals('foo')); | 3655 unittest.expect(o[1], unittest.equals('foo')); |
3656 } | 3656 } |
3657 | 3657 |
3658 core.int buildCounterTaskRunnerSettings = 0; | 3658 core.int buildCounterTaskRunnerSettings = 0; |
3659 buildTaskRunnerSettings() { | 3659 buildTaskRunnerSettings() { |
3660 var o = new api.TaskRunnerSettings(); | 3660 var o = new api.TaskRunnerSettings(); |
3661 buildCounterTaskRunnerSettings++; | 3661 buildCounterTaskRunnerSettings++; |
3662 if (buildCounterTaskRunnerSettings < 3) { | 3662 if (buildCounterTaskRunnerSettings < 3) { |
3663 o.alsologtostderr = true; | 3663 o.alsologtostderr = true; |
3664 o.baseTaskDir = "foo"; | 3664 o.baseTaskDir = "foo"; |
3665 o.baseUrl = "foo"; | 3665 o.baseUrl = "foo"; |
3666 o.commandlinesFileName = "foo"; | 3666 o.commandlinesFileName = "foo"; |
3667 o.continueOnException = true; | 3667 o.continueOnException = true; |
3668 o.dataflowApiVersion = "foo"; | 3668 o.dataflowApiVersion = "foo"; |
3669 o.harnessCommand = "foo"; | 3669 o.harnessCommand = "foo"; |
3670 o.languageHint = "foo"; | 3670 o.languageHint = "foo"; |
3671 o.logDir = "foo"; | 3671 o.logDir = "foo"; |
3672 o.logToSerialconsole = true; | 3672 o.logToSerialconsole = true; |
3673 o.logUploadLocation = "foo"; | 3673 o.logUploadLocation = "foo"; |
3674 o.oauthScopes = buildUnnamed3526(); | 3674 o.oauthScopes = buildUnnamed3000(); |
3675 o.parallelWorkerSettings = buildWorkerSettings(); | 3675 o.parallelWorkerSettings = buildWorkerSettings(); |
3676 o.streamingWorkerMainClass = "foo"; | 3676 o.streamingWorkerMainClass = "foo"; |
3677 o.taskGroup = "foo"; | 3677 o.taskGroup = "foo"; |
3678 o.taskUser = "foo"; | 3678 o.taskUser = "foo"; |
3679 o.tempStoragePrefix = "foo"; | 3679 o.tempStoragePrefix = "foo"; |
3680 o.vmId = "foo"; | 3680 o.vmId = "foo"; |
3681 o.workflowFileName = "foo"; | 3681 o.workflowFileName = "foo"; |
3682 } | 3682 } |
3683 buildCounterTaskRunnerSettings--; | 3683 buildCounterTaskRunnerSettings--; |
3684 return o; | 3684 return o; |
3685 } | 3685 } |
3686 | 3686 |
3687 checkTaskRunnerSettings(api.TaskRunnerSettings o) { | 3687 checkTaskRunnerSettings(api.TaskRunnerSettings o) { |
3688 buildCounterTaskRunnerSettings++; | 3688 buildCounterTaskRunnerSettings++; |
3689 if (buildCounterTaskRunnerSettings < 3) { | 3689 if (buildCounterTaskRunnerSettings < 3) { |
3690 unittest.expect(o.alsologtostderr, unittest.isTrue); | 3690 unittest.expect(o.alsologtostderr, unittest.isTrue); |
3691 unittest.expect(o.baseTaskDir, unittest.equals('foo')); | 3691 unittest.expect(o.baseTaskDir, unittest.equals('foo')); |
3692 unittest.expect(o.baseUrl, unittest.equals('foo')); | 3692 unittest.expect(o.baseUrl, unittest.equals('foo')); |
3693 unittest.expect(o.commandlinesFileName, unittest.equals('foo')); | 3693 unittest.expect(o.commandlinesFileName, unittest.equals('foo')); |
3694 unittest.expect(o.continueOnException, unittest.isTrue); | 3694 unittest.expect(o.continueOnException, unittest.isTrue); |
3695 unittest.expect(o.dataflowApiVersion, unittest.equals('foo')); | 3695 unittest.expect(o.dataflowApiVersion, unittest.equals('foo')); |
3696 unittest.expect(o.harnessCommand, unittest.equals('foo')); | 3696 unittest.expect(o.harnessCommand, unittest.equals('foo')); |
3697 unittest.expect(o.languageHint, unittest.equals('foo')); | 3697 unittest.expect(o.languageHint, unittest.equals('foo')); |
3698 unittest.expect(o.logDir, unittest.equals('foo')); | 3698 unittest.expect(o.logDir, unittest.equals('foo')); |
3699 unittest.expect(o.logToSerialconsole, unittest.isTrue); | 3699 unittest.expect(o.logToSerialconsole, unittest.isTrue); |
3700 unittest.expect(o.logUploadLocation, unittest.equals('foo')); | 3700 unittest.expect(o.logUploadLocation, unittest.equals('foo')); |
3701 checkUnnamed3526(o.oauthScopes); | 3701 checkUnnamed3000(o.oauthScopes); |
3702 checkWorkerSettings(o.parallelWorkerSettings); | 3702 checkWorkerSettings(o.parallelWorkerSettings); |
3703 unittest.expect(o.streamingWorkerMainClass, unittest.equals('foo')); | 3703 unittest.expect(o.streamingWorkerMainClass, unittest.equals('foo')); |
3704 unittest.expect(o.taskGroup, unittest.equals('foo')); | 3704 unittest.expect(o.taskGroup, unittest.equals('foo')); |
3705 unittest.expect(o.taskUser, unittest.equals('foo')); | 3705 unittest.expect(o.taskUser, unittest.equals('foo')); |
3706 unittest.expect(o.tempStoragePrefix, unittest.equals('foo')); | 3706 unittest.expect(o.tempStoragePrefix, unittest.equals('foo')); |
3707 unittest.expect(o.vmId, unittest.equals('foo')); | 3707 unittest.expect(o.vmId, unittest.equals('foo')); |
3708 unittest.expect(o.workflowFileName, unittest.equals('foo')); | 3708 unittest.expect(o.workflowFileName, unittest.equals('foo')); |
3709 } | 3709 } |
3710 buildCounterTaskRunnerSettings--; | 3710 buildCounterTaskRunnerSettings--; |
3711 } | 3711 } |
3712 | 3712 |
3713 buildUnnamed3527() { | 3713 buildUnnamed3001() { |
3714 var o = new core.List<api.ParameterMetadata>(); | 3714 var o = new core.List<api.ParameterMetadata>(); |
3715 o.add(buildParameterMetadata()); | 3715 o.add(buildParameterMetadata()); |
3716 o.add(buildParameterMetadata()); | 3716 o.add(buildParameterMetadata()); |
3717 return o; | 3717 return o; |
3718 } | 3718 } |
3719 | 3719 |
3720 checkUnnamed3527(core.List<api.ParameterMetadata> o) { | 3720 checkUnnamed3001(core.List<api.ParameterMetadata> o) { |
3721 unittest.expect(o, unittest.hasLength(2)); | 3721 unittest.expect(o, unittest.hasLength(2)); |
3722 checkParameterMetadata(o[0]); | 3722 checkParameterMetadata(o[0]); |
3723 checkParameterMetadata(o[1]); | 3723 checkParameterMetadata(o[1]); |
3724 } | 3724 } |
3725 | 3725 |
3726 core.int buildCounterTemplateMetadata = 0; | 3726 core.int buildCounterTemplateMetadata = 0; |
3727 buildTemplateMetadata() { | 3727 buildTemplateMetadata() { |
3728 var o = new api.TemplateMetadata(); | 3728 var o = new api.TemplateMetadata(); |
3729 buildCounterTemplateMetadata++; | 3729 buildCounterTemplateMetadata++; |
3730 if (buildCounterTemplateMetadata < 3) { | 3730 if (buildCounterTemplateMetadata < 3) { |
3731 o.bypassTempDirValidation = true; | |
3732 o.description = "foo"; | 3731 o.description = "foo"; |
3733 o.name = "foo"; | 3732 o.name = "foo"; |
3734 o.parameters = buildUnnamed3527(); | 3733 o.parameters = buildUnnamed3001(); |
3735 } | 3734 } |
3736 buildCounterTemplateMetadata--; | 3735 buildCounterTemplateMetadata--; |
3737 return o; | 3736 return o; |
3738 } | 3737 } |
3739 | 3738 |
3740 checkTemplateMetadata(api.TemplateMetadata o) { | 3739 checkTemplateMetadata(api.TemplateMetadata o) { |
3741 buildCounterTemplateMetadata++; | 3740 buildCounterTemplateMetadata++; |
3742 if (buildCounterTemplateMetadata < 3) { | 3741 if (buildCounterTemplateMetadata < 3) { |
3743 unittest.expect(o.bypassTempDirValidation, unittest.isTrue); | |
3744 unittest.expect(o.description, unittest.equals('foo')); | 3742 unittest.expect(o.description, unittest.equals('foo')); |
3745 unittest.expect(o.name, unittest.equals('foo')); | 3743 unittest.expect(o.name, unittest.equals('foo')); |
3746 checkUnnamed3527(o.parameters); | 3744 checkUnnamed3001(o.parameters); |
3747 } | 3745 } |
3748 buildCounterTemplateMetadata--; | 3746 buildCounterTemplateMetadata--; |
3749 } | 3747 } |
3750 | 3748 |
3751 buildUnnamed3528() { | 3749 buildUnnamed3002() { |
3752 var o = new core.List<api.ComputationTopology>(); | 3750 var o = new core.List<api.ComputationTopology>(); |
3753 o.add(buildComputationTopology()); | 3751 o.add(buildComputationTopology()); |
3754 o.add(buildComputationTopology()); | 3752 o.add(buildComputationTopology()); |
3755 return o; | 3753 return o; |
3756 } | 3754 } |
3757 | 3755 |
3758 checkUnnamed3528(core.List<api.ComputationTopology> o) { | 3756 checkUnnamed3002(core.List<api.ComputationTopology> o) { |
3759 unittest.expect(o, unittest.hasLength(2)); | 3757 unittest.expect(o, unittest.hasLength(2)); |
3760 checkComputationTopology(o[0]); | 3758 checkComputationTopology(o[0]); |
3761 checkComputationTopology(o[1]); | 3759 checkComputationTopology(o[1]); |
3762 } | 3760 } |
3763 | 3761 |
3764 buildUnnamed3529() { | 3762 buildUnnamed3003() { |
3765 var o = new core.List<api.DataDiskAssignment>(); | 3763 var o = new core.List<api.DataDiskAssignment>(); |
3766 o.add(buildDataDiskAssignment()); | 3764 o.add(buildDataDiskAssignment()); |
3767 o.add(buildDataDiskAssignment()); | 3765 o.add(buildDataDiskAssignment()); |
3768 return o; | 3766 return o; |
3769 } | 3767 } |
3770 | 3768 |
3771 checkUnnamed3529(core.List<api.DataDiskAssignment> o) { | 3769 checkUnnamed3003(core.List<api.DataDiskAssignment> o) { |
3772 unittest.expect(o, unittest.hasLength(2)); | 3770 unittest.expect(o, unittest.hasLength(2)); |
3773 checkDataDiskAssignment(o[0]); | 3771 checkDataDiskAssignment(o[0]); |
3774 checkDataDiskAssignment(o[1]); | 3772 checkDataDiskAssignment(o[1]); |
3775 } | 3773 } |
3776 | 3774 |
3777 buildUnnamed3530() { | 3775 buildUnnamed3004() { |
3778 var o = new core.Map<core.String, core.String>(); | 3776 var o = new core.Map<core.String, core.String>(); |
3779 o["x"] = "foo"; | 3777 o["x"] = "foo"; |
3780 o["y"] = "foo"; | 3778 o["y"] = "foo"; |
3781 return o; | 3779 return o; |
3782 } | 3780 } |
3783 | 3781 |
3784 checkUnnamed3530(core.Map<core.String, core.String> o) { | 3782 checkUnnamed3004(core.Map<core.String, core.String> o) { |
3785 unittest.expect(o, unittest.hasLength(2)); | 3783 unittest.expect(o, unittest.hasLength(2)); |
3786 unittest.expect(o["x"], unittest.equals('foo')); | 3784 unittest.expect(o["x"], unittest.equals('foo')); |
3787 unittest.expect(o["y"], unittest.equals('foo')); | 3785 unittest.expect(o["y"], unittest.equals('foo')); |
3788 } | 3786 } |
3789 | 3787 |
3790 core.int buildCounterTopologyConfig = 0; | 3788 core.int buildCounterTopologyConfig = 0; |
3791 buildTopologyConfig() { | 3789 buildTopologyConfig() { |
3792 var o = new api.TopologyConfig(); | 3790 var o = new api.TopologyConfig(); |
3793 buildCounterTopologyConfig++; | 3791 buildCounterTopologyConfig++; |
3794 if (buildCounterTopologyConfig < 3) { | 3792 if (buildCounterTopologyConfig < 3) { |
3795 o.computations = buildUnnamed3528(); | 3793 o.computations = buildUnnamed3002(); |
3796 o.dataDiskAssignments = buildUnnamed3529(); | 3794 o.dataDiskAssignments = buildUnnamed3003(); |
3797 o.forwardingKeyBits = 42; | 3795 o.forwardingKeyBits = 42; |
3798 o.persistentStateVersion = 42; | 3796 o.persistentStateVersion = 42; |
3799 o.userStageToComputationNameMap = buildUnnamed3530(); | 3797 o.userStageToComputationNameMap = buildUnnamed3004(); |
3800 } | 3798 } |
3801 buildCounterTopologyConfig--; | 3799 buildCounterTopologyConfig--; |
3802 return o; | 3800 return o; |
3803 } | 3801 } |
3804 | 3802 |
3805 checkTopologyConfig(api.TopologyConfig o) { | 3803 checkTopologyConfig(api.TopologyConfig o) { |
3806 buildCounterTopologyConfig++; | 3804 buildCounterTopologyConfig++; |
3807 if (buildCounterTopologyConfig < 3) { | 3805 if (buildCounterTopologyConfig < 3) { |
3808 checkUnnamed3528(o.computations); | 3806 checkUnnamed3002(o.computations); |
3809 checkUnnamed3529(o.dataDiskAssignments); | 3807 checkUnnamed3003(o.dataDiskAssignments); |
3810 unittest.expect(o.forwardingKeyBits, unittest.equals(42)); | 3808 unittest.expect(o.forwardingKeyBits, unittest.equals(42)); |
3811 unittest.expect(o.persistentStateVersion, unittest.equals(42)); | 3809 unittest.expect(o.persistentStateVersion, unittest.equals(42)); |
3812 checkUnnamed3530(o.userStageToComputationNameMap); | 3810 checkUnnamed3004(o.userStageToComputationNameMap); |
3813 } | 3811 } |
3814 buildCounterTopologyConfig--; | 3812 buildCounterTopologyConfig--; |
3815 } | 3813 } |
3816 | 3814 |
3817 buildUnnamed3531() { | 3815 buildUnnamed3005() { |
3818 var o = new core.List<api.DisplayData>(); | 3816 var o = new core.List<api.DisplayData>(); |
3819 o.add(buildDisplayData()); | 3817 o.add(buildDisplayData()); |
3820 o.add(buildDisplayData()); | 3818 o.add(buildDisplayData()); |
3821 return o; | 3819 return o; |
3822 } | 3820 } |
3823 | 3821 |
3824 checkUnnamed3531(core.List<api.DisplayData> o) { | 3822 checkUnnamed3005(core.List<api.DisplayData> o) { |
3825 unittest.expect(o, unittest.hasLength(2)); | 3823 unittest.expect(o, unittest.hasLength(2)); |
3826 checkDisplayData(o[0]); | 3824 checkDisplayData(o[0]); |
3827 checkDisplayData(o[1]); | 3825 checkDisplayData(o[1]); |
3828 } | 3826 } |
3829 | 3827 |
3830 buildUnnamed3532() { | 3828 buildUnnamed3006() { |
3831 var o = new core.List<core.String>(); | 3829 var o = new core.List<core.String>(); |
3832 o.add("foo"); | 3830 o.add("foo"); |
3833 o.add("foo"); | 3831 o.add("foo"); |
3834 return o; | 3832 return o; |
3835 } | 3833 } |
3836 | 3834 |
3837 checkUnnamed3532(core.List<core.String> o) { | 3835 checkUnnamed3006(core.List<core.String> o) { |
3838 unittest.expect(o, unittest.hasLength(2)); | 3836 unittest.expect(o, unittest.hasLength(2)); |
3839 unittest.expect(o[0], unittest.equals('foo')); | 3837 unittest.expect(o[0], unittest.equals('foo')); |
3840 unittest.expect(o[1], unittest.equals('foo')); | 3838 unittest.expect(o[1], unittest.equals('foo')); |
3841 } | 3839 } |
3842 | 3840 |
3843 buildUnnamed3533() { | 3841 buildUnnamed3007() { |
3844 var o = new core.List<core.String>(); | 3842 var o = new core.List<core.String>(); |
3845 o.add("foo"); | 3843 o.add("foo"); |
3846 o.add("foo"); | 3844 o.add("foo"); |
3847 return o; | 3845 return o; |
3848 } | 3846 } |
3849 | 3847 |
3850 checkUnnamed3533(core.List<core.String> o) { | 3848 checkUnnamed3007(core.List<core.String> o) { |
3851 unittest.expect(o, unittest.hasLength(2)); | 3849 unittest.expect(o, unittest.hasLength(2)); |
3852 unittest.expect(o[0], unittest.equals('foo')); | 3850 unittest.expect(o[0], unittest.equals('foo')); |
3853 unittest.expect(o[1], unittest.equals('foo')); | 3851 unittest.expect(o[1], unittest.equals('foo')); |
3854 } | 3852 } |
3855 | 3853 |
3856 core.int buildCounterTransformSummary = 0; | 3854 core.int buildCounterTransformSummary = 0; |
3857 buildTransformSummary() { | 3855 buildTransformSummary() { |
3858 var o = new api.TransformSummary(); | 3856 var o = new api.TransformSummary(); |
3859 buildCounterTransformSummary++; | 3857 buildCounterTransformSummary++; |
3860 if (buildCounterTransformSummary < 3) { | 3858 if (buildCounterTransformSummary < 3) { |
3861 o.displayData = buildUnnamed3531(); | 3859 o.displayData = buildUnnamed3005(); |
3862 o.id = "foo"; | 3860 o.id = "foo"; |
3863 o.inputCollectionName = buildUnnamed3532(); | 3861 o.inputCollectionName = buildUnnamed3006(); |
3864 o.kind = "foo"; | 3862 o.kind = "foo"; |
3865 o.name = "foo"; | 3863 o.name = "foo"; |
3866 o.outputCollectionName = buildUnnamed3533(); | 3864 o.outputCollectionName = buildUnnamed3007(); |
3867 } | 3865 } |
3868 buildCounterTransformSummary--; | 3866 buildCounterTransformSummary--; |
3869 return o; | 3867 return o; |
3870 } | 3868 } |
3871 | 3869 |
3872 checkTransformSummary(api.TransformSummary o) { | 3870 checkTransformSummary(api.TransformSummary o) { |
3873 buildCounterTransformSummary++; | 3871 buildCounterTransformSummary++; |
3874 if (buildCounterTransformSummary < 3) { | 3872 if (buildCounterTransformSummary < 3) { |
3875 checkUnnamed3531(o.displayData); | 3873 checkUnnamed3005(o.displayData); |
3876 unittest.expect(o.id, unittest.equals('foo')); | 3874 unittest.expect(o.id, unittest.equals('foo')); |
3877 checkUnnamed3532(o.inputCollectionName); | 3875 checkUnnamed3006(o.inputCollectionName); |
3878 unittest.expect(o.kind, unittest.equals('foo')); | 3876 unittest.expect(o.kind, unittest.equals('foo')); |
3879 unittest.expect(o.name, unittest.equals('foo')); | 3877 unittest.expect(o.name, unittest.equals('foo')); |
3880 checkUnnamed3533(o.outputCollectionName); | 3878 checkUnnamed3007(o.outputCollectionName); |
3881 } | 3879 } |
3882 buildCounterTransformSummary--; | 3880 buildCounterTransformSummary--; |
3883 } | 3881 } |
3884 | 3882 |
3885 buildUnnamed3534() { | 3883 buildUnnamed3008() { |
3886 var o = new core.List<api.Package>(); | 3884 var o = new core.List<api.Package>(); |
3887 o.add(buildPackage()); | 3885 o.add(buildPackage()); |
3888 o.add(buildPackage()); | 3886 o.add(buildPackage()); |
3889 return o; | 3887 return o; |
3890 } | 3888 } |
3891 | 3889 |
3892 checkUnnamed3534(core.List<api.Package> o) { | 3890 checkUnnamed3008(core.List<api.Package> o) { |
3893 unittest.expect(o, unittest.hasLength(2)); | 3891 unittest.expect(o, unittest.hasLength(2)); |
3894 checkPackage(o[0]); | 3892 checkPackage(o[0]); |
3895 checkPackage(o[1]); | 3893 checkPackage(o[1]); |
3896 } | 3894 } |
3897 | 3895 |
3898 core.int buildCounterWorkItem = 0; | 3896 core.int buildCounterWorkItem = 0; |
3899 buildWorkItem() { | 3897 buildWorkItem() { |
3900 var o = new api.WorkItem(); | 3898 var o = new api.WorkItem(); |
3901 buildCounterWorkItem++; | 3899 buildCounterWorkItem++; |
3902 if (buildCounterWorkItem < 3) { | 3900 if (buildCounterWorkItem < 3) { |
3903 o.configuration = "foo"; | 3901 o.configuration = "foo"; |
3904 o.id = "foo"; | 3902 o.id = "foo"; |
3905 o.initialReportIndex = "foo"; | 3903 o.initialReportIndex = "foo"; |
3906 o.jobId = "foo"; | 3904 o.jobId = "foo"; |
3907 o.leaseExpireTime = "foo"; | 3905 o.leaseExpireTime = "foo"; |
3908 o.mapTask = buildMapTask(); | 3906 o.mapTask = buildMapTask(); |
3909 o.packages = buildUnnamed3534(); | 3907 o.packages = buildUnnamed3008(); |
3910 o.projectId = "foo"; | 3908 o.projectId = "foo"; |
3911 o.reportStatusInterval = "foo"; | 3909 o.reportStatusInterval = "foo"; |
3912 o.seqMapTask = buildSeqMapTask(); | 3910 o.seqMapTask = buildSeqMapTask(); |
3913 o.shellTask = buildShellTask(); | 3911 o.shellTask = buildShellTask(); |
3914 o.sourceOperationTask = buildSourceOperationRequest(); | 3912 o.sourceOperationTask = buildSourceOperationRequest(); |
3915 o.streamingComputationTask = buildStreamingComputationTask(); | 3913 o.streamingComputationTask = buildStreamingComputationTask(); |
3916 o.streamingConfigTask = buildStreamingConfigTask(); | 3914 o.streamingConfigTask = buildStreamingConfigTask(); |
3917 o.streamingSetupTask = buildStreamingSetupTask(); | 3915 o.streamingSetupTask = buildStreamingSetupTask(); |
3918 } | 3916 } |
3919 buildCounterWorkItem--; | 3917 buildCounterWorkItem--; |
3920 return o; | 3918 return o; |
3921 } | 3919 } |
3922 | 3920 |
3923 checkWorkItem(api.WorkItem o) { | 3921 checkWorkItem(api.WorkItem o) { |
3924 buildCounterWorkItem++; | 3922 buildCounterWorkItem++; |
3925 if (buildCounterWorkItem < 3) { | 3923 if (buildCounterWorkItem < 3) { |
3926 unittest.expect(o.configuration, unittest.equals('foo')); | 3924 unittest.expect(o.configuration, unittest.equals('foo')); |
3927 unittest.expect(o.id, unittest.equals('foo')); | 3925 unittest.expect(o.id, unittest.equals('foo')); |
3928 unittest.expect(o.initialReportIndex, unittest.equals('foo')); | 3926 unittest.expect(o.initialReportIndex, unittest.equals('foo')); |
3929 unittest.expect(o.jobId, unittest.equals('foo')); | 3927 unittest.expect(o.jobId, unittest.equals('foo')); |
3930 unittest.expect(o.leaseExpireTime, unittest.equals('foo')); | 3928 unittest.expect(o.leaseExpireTime, unittest.equals('foo')); |
3931 checkMapTask(o.mapTask); | 3929 checkMapTask(o.mapTask); |
3932 checkUnnamed3534(o.packages); | 3930 checkUnnamed3008(o.packages); |
3933 unittest.expect(o.projectId, unittest.equals('foo')); | 3931 unittest.expect(o.projectId, unittest.equals('foo')); |
3934 unittest.expect(o.reportStatusInterval, unittest.equals('foo')); | 3932 unittest.expect(o.reportStatusInterval, unittest.equals('foo')); |
3935 checkSeqMapTask(o.seqMapTask); | 3933 checkSeqMapTask(o.seqMapTask); |
3936 checkShellTask(o.shellTask); | 3934 checkShellTask(o.shellTask); |
3937 checkSourceOperationRequest(o.sourceOperationTask); | 3935 checkSourceOperationRequest(o.sourceOperationTask); |
3938 checkStreamingComputationTask(o.streamingComputationTask); | 3936 checkStreamingComputationTask(o.streamingComputationTask); |
3939 checkStreamingConfigTask(o.streamingConfigTask); | 3937 checkStreamingConfigTask(o.streamingConfigTask); |
3940 checkStreamingSetupTask(o.streamingSetupTask); | 3938 checkStreamingSetupTask(o.streamingSetupTask); |
3941 } | 3939 } |
3942 buildCounterWorkItem--; | 3940 buildCounterWorkItem--; |
3943 } | 3941 } |
3944 | 3942 |
3945 buildUnnamed3535() { | 3943 buildUnnamed3009() { |
3946 var o = new core.Map<core.String, core.Object>(); | 3944 var o = new core.Map<core.String, core.Object>(); |
3947 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3945 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
3948 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3946 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
3949 return o; | 3947 return o; |
3950 } | 3948 } |
3951 | 3949 |
3952 checkUnnamed3535(core.Map<core.String, core.Object> o) { | 3950 checkUnnamed3009(core.Map<core.String, core.Object> o) { |
3953 unittest.expect(o, unittest.hasLength(2)); | 3951 unittest.expect(o, unittest.hasLength(2)); |
3954 var casted43 = (o["x"]) as core.Map; unittest.expect(casted43, unittest.hasLen
gth(3)); unittest.expect(casted43["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted43["bool"], unittest.equals(true)); unittest.expect(casted43["stri
ng"], unittest.equals('foo')); | 3952 var casted43 = (o["x"]) as core.Map; unittest.expect(casted43, unittest.hasLen
gth(3)); unittest.expect(casted43["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted43["bool"], unittest.equals(true)); unittest.expect(casted43["stri
ng"], unittest.equals('foo')); |
3955 var casted44 = (o["y"]) as core.Map; unittest.expect(casted44, unittest.hasLen
gth(3)); unittest.expect(casted44["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted44["bool"], unittest.equals(true)); unittest.expect(casted44["stri
ng"], unittest.equals('foo')); | 3953 var casted44 = (o["y"]) as core.Map; unittest.expect(casted44, unittest.hasLen
gth(3)); unittest.expect(casted44["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted44["bool"], unittest.equals(true)); unittest.expect(casted44["stri
ng"], unittest.equals('foo')); |
3956 } | 3954 } |
3957 | 3955 |
3958 buildUnnamed3536() { | 3956 buildUnnamed3010() { |
3959 var o = new core.List<api.MetricShortId>(); | 3957 var o = new core.List<api.MetricShortId>(); |
3960 o.add(buildMetricShortId()); | 3958 o.add(buildMetricShortId()); |
3961 o.add(buildMetricShortId()); | 3959 o.add(buildMetricShortId()); |
3962 return o; | 3960 return o; |
3963 } | 3961 } |
3964 | 3962 |
3965 checkUnnamed3536(core.List<api.MetricShortId> o) { | 3963 checkUnnamed3010(core.List<api.MetricShortId> o) { |
3966 unittest.expect(o, unittest.hasLength(2)); | 3964 unittest.expect(o, unittest.hasLength(2)); |
3967 checkMetricShortId(o[0]); | 3965 checkMetricShortId(o[0]); |
3968 checkMetricShortId(o[1]); | 3966 checkMetricShortId(o[1]); |
3969 } | 3967 } |
3970 | 3968 |
3971 core.int buildCounterWorkItemServiceState = 0; | 3969 core.int buildCounterWorkItemServiceState = 0; |
3972 buildWorkItemServiceState() { | 3970 buildWorkItemServiceState() { |
3973 var o = new api.WorkItemServiceState(); | 3971 var o = new api.WorkItemServiceState(); |
3974 buildCounterWorkItemServiceState++; | 3972 buildCounterWorkItemServiceState++; |
3975 if (buildCounterWorkItemServiceState < 3) { | 3973 if (buildCounterWorkItemServiceState < 3) { |
3976 o.harnessData = buildUnnamed3535(); | 3974 o.harnessData = buildUnnamed3009(); |
3977 o.leaseExpireTime = "foo"; | 3975 o.leaseExpireTime = "foo"; |
3978 o.metricShortId = buildUnnamed3536(); | 3976 o.metricShortId = buildUnnamed3010(); |
3979 o.nextReportIndex = "foo"; | 3977 o.nextReportIndex = "foo"; |
3980 o.reportStatusInterval = "foo"; | 3978 o.reportStatusInterval = "foo"; |
3981 o.splitRequest = buildApproximateSplitRequest(); | 3979 o.splitRequest = buildApproximateSplitRequest(); |
3982 o.suggestedStopPoint = buildApproximateProgress(); | 3980 o.suggestedStopPoint = buildApproximateProgress(); |
3983 o.suggestedStopPosition = buildPosition(); | 3981 o.suggestedStopPosition = buildPosition(); |
3984 } | 3982 } |
3985 buildCounterWorkItemServiceState--; | 3983 buildCounterWorkItemServiceState--; |
3986 return o; | 3984 return o; |
3987 } | 3985 } |
3988 | 3986 |
3989 checkWorkItemServiceState(api.WorkItemServiceState o) { | 3987 checkWorkItemServiceState(api.WorkItemServiceState o) { |
3990 buildCounterWorkItemServiceState++; | 3988 buildCounterWorkItemServiceState++; |
3991 if (buildCounterWorkItemServiceState < 3) { | 3989 if (buildCounterWorkItemServiceState < 3) { |
3992 checkUnnamed3535(o.harnessData); | 3990 checkUnnamed3009(o.harnessData); |
3993 unittest.expect(o.leaseExpireTime, unittest.equals('foo')); | 3991 unittest.expect(o.leaseExpireTime, unittest.equals('foo')); |
3994 checkUnnamed3536(o.metricShortId); | 3992 checkUnnamed3010(o.metricShortId); |
3995 unittest.expect(o.nextReportIndex, unittest.equals('foo')); | 3993 unittest.expect(o.nextReportIndex, unittest.equals('foo')); |
3996 unittest.expect(o.reportStatusInterval, unittest.equals('foo')); | 3994 unittest.expect(o.reportStatusInterval, unittest.equals('foo')); |
3997 checkApproximateSplitRequest(o.splitRequest); | 3995 checkApproximateSplitRequest(o.splitRequest); |
3998 checkApproximateProgress(o.suggestedStopPoint); | 3996 checkApproximateProgress(o.suggestedStopPoint); |
3999 checkPosition(o.suggestedStopPosition); | 3997 checkPosition(o.suggestedStopPosition); |
4000 } | 3998 } |
4001 buildCounterWorkItemServiceState--; | 3999 buildCounterWorkItemServiceState--; |
4002 } | 4000 } |
4003 | 4001 |
4004 buildUnnamed3537() { | 4002 buildUnnamed3011() { |
4005 var o = new core.List<api.CounterUpdate>(); | 4003 var o = new core.List<api.CounterUpdate>(); |
4006 o.add(buildCounterUpdate()); | 4004 o.add(buildCounterUpdate()); |
4007 o.add(buildCounterUpdate()); | 4005 o.add(buildCounterUpdate()); |
4008 return o; | 4006 return o; |
4009 } | 4007 } |
4010 | 4008 |
4011 checkUnnamed3537(core.List<api.CounterUpdate> o) { | 4009 checkUnnamed3011(core.List<api.CounterUpdate> o) { |
4012 unittest.expect(o, unittest.hasLength(2)); | 4010 unittest.expect(o, unittest.hasLength(2)); |
4013 checkCounterUpdate(o[0]); | 4011 checkCounterUpdate(o[0]); |
4014 checkCounterUpdate(o[1]); | 4012 checkCounterUpdate(o[1]); |
4015 } | 4013 } |
4016 | 4014 |
4017 buildUnnamed3538() { | 4015 buildUnnamed3012() { |
4018 var o = new core.List<api.Status>(); | 4016 var o = new core.List<api.Status>(); |
4019 o.add(buildStatus()); | 4017 o.add(buildStatus()); |
4020 o.add(buildStatus()); | 4018 o.add(buildStatus()); |
4021 return o; | 4019 return o; |
4022 } | 4020 } |
4023 | 4021 |
4024 checkUnnamed3538(core.List<api.Status> o) { | 4022 checkUnnamed3012(core.List<api.Status> o) { |
4025 unittest.expect(o, unittest.hasLength(2)); | 4023 unittest.expect(o, unittest.hasLength(2)); |
4026 checkStatus(o[0]); | 4024 checkStatus(o[0]); |
4027 checkStatus(o[1]); | 4025 checkStatus(o[1]); |
4028 } | 4026 } |
4029 | 4027 |
4030 buildUnnamed3539() { | 4028 buildUnnamed3013() { |
4031 var o = new core.List<api.MetricUpdate>(); | 4029 var o = new core.List<api.MetricUpdate>(); |
4032 o.add(buildMetricUpdate()); | 4030 o.add(buildMetricUpdate()); |
4033 o.add(buildMetricUpdate()); | 4031 o.add(buildMetricUpdate()); |
4034 return o; | 4032 return o; |
4035 } | 4033 } |
4036 | 4034 |
4037 checkUnnamed3539(core.List<api.MetricUpdate> o) { | 4035 checkUnnamed3013(core.List<api.MetricUpdate> o) { |
4038 unittest.expect(o, unittest.hasLength(2)); | 4036 unittest.expect(o, unittest.hasLength(2)); |
4039 checkMetricUpdate(o[0]); | 4037 checkMetricUpdate(o[0]); |
4040 checkMetricUpdate(o[1]); | 4038 checkMetricUpdate(o[1]); |
4041 } | 4039 } |
4042 | 4040 |
4043 core.int buildCounterWorkItemStatus = 0; | 4041 core.int buildCounterWorkItemStatus = 0; |
4044 buildWorkItemStatus() { | 4042 buildWorkItemStatus() { |
4045 var o = new api.WorkItemStatus(); | 4043 var o = new api.WorkItemStatus(); |
4046 buildCounterWorkItemStatus++; | 4044 buildCounterWorkItemStatus++; |
4047 if (buildCounterWorkItemStatus < 3) { | 4045 if (buildCounterWorkItemStatus < 3) { |
4048 o.completed = true; | 4046 o.completed = true; |
4049 o.counterUpdates = buildUnnamed3537(); | 4047 o.counterUpdates = buildUnnamed3011(); |
4050 o.dynamicSourceSplit = buildDynamicSourceSplit(); | 4048 o.dynamicSourceSplit = buildDynamicSourceSplit(); |
4051 o.errors = buildUnnamed3538(); | 4049 o.errors = buildUnnamed3012(); |
4052 o.metricUpdates = buildUnnamed3539(); | 4050 o.metricUpdates = buildUnnamed3013(); |
4053 o.progress = buildApproximateProgress(); | 4051 o.progress = buildApproximateProgress(); |
4054 o.reportIndex = "foo"; | 4052 o.reportIndex = "foo"; |
4055 o.reportedProgress = buildApproximateReportedProgress(); | 4053 o.reportedProgress = buildApproximateReportedProgress(); |
4056 o.requestedLeaseDuration = "foo"; | 4054 o.requestedLeaseDuration = "foo"; |
4057 o.sourceFork = buildSourceFork(); | 4055 o.sourceFork = buildSourceFork(); |
4058 o.sourceOperationResponse = buildSourceOperationResponse(); | 4056 o.sourceOperationResponse = buildSourceOperationResponse(); |
4059 o.stopPosition = buildPosition(); | 4057 o.stopPosition = buildPosition(); |
4060 o.workItemId = "foo"; | 4058 o.workItemId = "foo"; |
4061 } | 4059 } |
4062 buildCounterWorkItemStatus--; | 4060 buildCounterWorkItemStatus--; |
4063 return o; | 4061 return o; |
4064 } | 4062 } |
4065 | 4063 |
4066 checkWorkItemStatus(api.WorkItemStatus o) { | 4064 checkWorkItemStatus(api.WorkItemStatus o) { |
4067 buildCounterWorkItemStatus++; | 4065 buildCounterWorkItemStatus++; |
4068 if (buildCounterWorkItemStatus < 3) { | 4066 if (buildCounterWorkItemStatus < 3) { |
4069 unittest.expect(o.completed, unittest.isTrue); | 4067 unittest.expect(o.completed, unittest.isTrue); |
4070 checkUnnamed3537(o.counterUpdates); | 4068 checkUnnamed3011(o.counterUpdates); |
4071 checkDynamicSourceSplit(o.dynamicSourceSplit); | 4069 checkDynamicSourceSplit(o.dynamicSourceSplit); |
4072 checkUnnamed3538(o.errors); | 4070 checkUnnamed3012(o.errors); |
4073 checkUnnamed3539(o.metricUpdates); | 4071 checkUnnamed3013(o.metricUpdates); |
4074 checkApproximateProgress(o.progress); | 4072 checkApproximateProgress(o.progress); |
4075 unittest.expect(o.reportIndex, unittest.equals('foo')); | 4073 unittest.expect(o.reportIndex, unittest.equals('foo')); |
4076 checkApproximateReportedProgress(o.reportedProgress); | 4074 checkApproximateReportedProgress(o.reportedProgress); |
4077 unittest.expect(o.requestedLeaseDuration, unittest.equals('foo')); | 4075 unittest.expect(o.requestedLeaseDuration, unittest.equals('foo')); |
4078 checkSourceFork(o.sourceFork); | 4076 checkSourceFork(o.sourceFork); |
4079 checkSourceOperationResponse(o.sourceOperationResponse); | 4077 checkSourceOperationResponse(o.sourceOperationResponse); |
4080 checkPosition(o.stopPosition); | 4078 checkPosition(o.stopPosition); |
4081 unittest.expect(o.workItemId, unittest.equals('foo')); | 4079 unittest.expect(o.workItemId, unittest.equals('foo')); |
4082 } | 4080 } |
4083 buildCounterWorkItemStatus--; | 4081 buildCounterWorkItemStatus--; |
4084 } | 4082 } |
4085 | 4083 |
4086 buildUnnamed3540() { | 4084 buildUnnamed3014() { |
4087 var o = new core.Map<core.String, core.Object>(); | 4085 var o = new core.Map<core.String, core.Object>(); |
4088 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 4086 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
4089 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 4087 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
4090 return o; | 4088 return o; |
4091 } | 4089 } |
4092 | 4090 |
4093 checkUnnamed3540(core.Map<core.String, core.Object> o) { | 4091 checkUnnamed3014(core.Map<core.String, core.Object> o) { |
4094 unittest.expect(o, unittest.hasLength(2)); | 4092 unittest.expect(o, unittest.hasLength(2)); |
4095 var casted45 = (o["x"]) as core.Map; unittest.expect(casted45, unittest.hasLen
gth(3)); unittest.expect(casted45["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted45["bool"], unittest.equals(true)); unittest.expect(casted45["stri
ng"], unittest.equals('foo')); | 4093 var casted45 = (o["x"]) as core.Map; unittest.expect(casted45, unittest.hasLen
gth(3)); unittest.expect(casted45["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted45["bool"], unittest.equals(true)); unittest.expect(casted45["stri
ng"], unittest.equals('foo')); |
4096 var casted46 = (o["y"]) as core.Map; unittest.expect(casted46, unittest.hasLen
gth(3)); unittest.expect(casted46["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted46["bool"], unittest.equals(true)); unittest.expect(casted46["stri
ng"], unittest.equals('foo')); | 4094 var casted46 = (o["y"]) as core.Map; unittest.expect(casted46, unittest.hasLen
gth(3)); unittest.expect(casted46["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted46["bool"], unittest.equals(true)); unittest.expect(casted46["stri
ng"], unittest.equals('foo')); |
4097 } | 4095 } |
4098 | 4096 |
4099 buildUnnamed3541() { | 4097 buildUnnamed3015() { |
4100 var o = new core.List<core.Map<core.String, core.Object>>(); | 4098 var o = new core.List<core.Map<core.String, core.Object>>(); |
4101 o.add(buildUnnamed3540()); | 4099 o.add(buildUnnamed3014()); |
4102 o.add(buildUnnamed3540()); | 4100 o.add(buildUnnamed3014()); |
4103 return o; | 4101 return o; |
4104 } | 4102 } |
4105 | 4103 |
4106 checkUnnamed3541(core.List<core.Map<core.String, core.Object>> o) { | 4104 checkUnnamed3015(core.List<core.Map<core.String, core.Object>> o) { |
4107 unittest.expect(o, unittest.hasLength(2)); | 4105 unittest.expect(o, unittest.hasLength(2)); |
4108 checkUnnamed3540(o[0]); | 4106 checkUnnamed3014(o[0]); |
4109 checkUnnamed3540(o[1]); | 4107 checkUnnamed3014(o[1]); |
4110 } | 4108 } |
4111 | 4109 |
4112 core.int buildCounterWorkerHealthReport = 0; | 4110 core.int buildCounterWorkerHealthReport = 0; |
4113 buildWorkerHealthReport() { | 4111 buildWorkerHealthReport() { |
4114 var o = new api.WorkerHealthReport(); | 4112 var o = new api.WorkerHealthReport(); |
4115 buildCounterWorkerHealthReport++; | 4113 buildCounterWorkerHealthReport++; |
4116 if (buildCounterWorkerHealthReport < 3) { | 4114 if (buildCounterWorkerHealthReport < 3) { |
4117 o.pods = buildUnnamed3541(); | 4115 o.pods = buildUnnamed3015(); |
4118 o.reportInterval = "foo"; | 4116 o.reportInterval = "foo"; |
4119 o.vmIsHealthy = true; | 4117 o.vmIsHealthy = true; |
4120 o.vmStartupTime = "foo"; | 4118 o.vmStartupTime = "foo"; |
4121 } | 4119 } |
4122 buildCounterWorkerHealthReport--; | 4120 buildCounterWorkerHealthReport--; |
4123 return o; | 4121 return o; |
4124 } | 4122 } |
4125 | 4123 |
4126 checkWorkerHealthReport(api.WorkerHealthReport o) { | 4124 checkWorkerHealthReport(api.WorkerHealthReport o) { |
4127 buildCounterWorkerHealthReport++; | 4125 buildCounterWorkerHealthReport++; |
4128 if (buildCounterWorkerHealthReport < 3) { | 4126 if (buildCounterWorkerHealthReport < 3) { |
4129 checkUnnamed3541(o.pods); | 4127 checkUnnamed3015(o.pods); |
4130 unittest.expect(o.reportInterval, unittest.equals('foo')); | 4128 unittest.expect(o.reportInterval, unittest.equals('foo')); |
4131 unittest.expect(o.vmIsHealthy, unittest.isTrue); | 4129 unittest.expect(o.vmIsHealthy, unittest.isTrue); |
4132 unittest.expect(o.vmStartupTime, unittest.equals('foo')); | 4130 unittest.expect(o.vmStartupTime, unittest.equals('foo')); |
4133 } | 4131 } |
4134 buildCounterWorkerHealthReport--; | 4132 buildCounterWorkerHealthReport--; |
4135 } | 4133 } |
4136 | 4134 |
4137 core.int buildCounterWorkerHealthReportResponse = 0; | 4135 core.int buildCounterWorkerHealthReportResponse = 0; |
4138 buildWorkerHealthReportResponse() { | 4136 buildWorkerHealthReportResponse() { |
4139 var o = new api.WorkerHealthReportResponse(); | 4137 var o = new api.WorkerHealthReportResponse(); |
4140 buildCounterWorkerHealthReportResponse++; | 4138 buildCounterWorkerHealthReportResponse++; |
4141 if (buildCounterWorkerHealthReportResponse < 3) { | 4139 if (buildCounterWorkerHealthReportResponse < 3) { |
4142 o.reportInterval = "foo"; | 4140 o.reportInterval = "foo"; |
4143 } | 4141 } |
4144 buildCounterWorkerHealthReportResponse--; | 4142 buildCounterWorkerHealthReportResponse--; |
4145 return o; | 4143 return o; |
4146 } | 4144 } |
4147 | 4145 |
4148 checkWorkerHealthReportResponse(api.WorkerHealthReportResponse o) { | 4146 checkWorkerHealthReportResponse(api.WorkerHealthReportResponse o) { |
4149 buildCounterWorkerHealthReportResponse++; | 4147 buildCounterWorkerHealthReportResponse++; |
4150 if (buildCounterWorkerHealthReportResponse < 3) { | 4148 if (buildCounterWorkerHealthReportResponse < 3) { |
4151 unittest.expect(o.reportInterval, unittest.equals('foo')); | 4149 unittest.expect(o.reportInterval, unittest.equals('foo')); |
4152 } | 4150 } |
4153 buildCounterWorkerHealthReportResponse--; | 4151 buildCounterWorkerHealthReportResponse--; |
4154 } | 4152 } |
4155 | 4153 |
4156 buildUnnamed3542() { | 4154 buildUnnamed3016() { |
4157 var o = new core.Map<core.String, core.String>(); | 4155 var o = new core.Map<core.String, core.String>(); |
4158 o["x"] = "foo"; | 4156 o["x"] = "foo"; |
4159 o["y"] = "foo"; | 4157 o["y"] = "foo"; |
4160 return o; | 4158 return o; |
4161 } | 4159 } |
4162 | 4160 |
4163 checkUnnamed3542(core.Map<core.String, core.String> o) { | 4161 checkUnnamed3016(core.Map<core.String, core.String> o) { |
4164 unittest.expect(o, unittest.hasLength(2)); | 4162 unittest.expect(o, unittest.hasLength(2)); |
4165 unittest.expect(o["x"], unittest.equals('foo')); | 4163 unittest.expect(o["x"], unittest.equals('foo')); |
4166 unittest.expect(o["y"], unittest.equals('foo')); | 4164 unittest.expect(o["y"], unittest.equals('foo')); |
4167 } | 4165 } |
4168 | 4166 |
4169 core.int buildCounterWorkerMessage = 0; | 4167 core.int buildCounterWorkerMessage = 0; |
4170 buildWorkerMessage() { | 4168 buildWorkerMessage() { |
4171 var o = new api.WorkerMessage(); | 4169 var o = new api.WorkerMessage(); |
4172 buildCounterWorkerMessage++; | 4170 buildCounterWorkerMessage++; |
4173 if (buildCounterWorkerMessage < 3) { | 4171 if (buildCounterWorkerMessage < 3) { |
4174 o.labels = buildUnnamed3542(); | 4172 o.labels = buildUnnamed3016(); |
4175 o.time = "foo"; | 4173 o.time = "foo"; |
4176 o.workerHealthReport = buildWorkerHealthReport(); | 4174 o.workerHealthReport = buildWorkerHealthReport(); |
4177 o.workerMessageCode = buildWorkerMessageCode(); | 4175 o.workerMessageCode = buildWorkerMessageCode(); |
4178 o.workerMetrics = buildResourceUtilizationReport(); | 4176 o.workerMetrics = buildResourceUtilizationReport(); |
4179 } | 4177 } |
4180 buildCounterWorkerMessage--; | 4178 buildCounterWorkerMessage--; |
4181 return o; | 4179 return o; |
4182 } | 4180 } |
4183 | 4181 |
4184 checkWorkerMessage(api.WorkerMessage o) { | 4182 checkWorkerMessage(api.WorkerMessage o) { |
4185 buildCounterWorkerMessage++; | 4183 buildCounterWorkerMessage++; |
4186 if (buildCounterWorkerMessage < 3) { | 4184 if (buildCounterWorkerMessage < 3) { |
4187 checkUnnamed3542(o.labels); | 4185 checkUnnamed3016(o.labels); |
4188 unittest.expect(o.time, unittest.equals('foo')); | 4186 unittest.expect(o.time, unittest.equals('foo')); |
4189 checkWorkerHealthReport(o.workerHealthReport); | 4187 checkWorkerHealthReport(o.workerHealthReport); |
4190 checkWorkerMessageCode(o.workerMessageCode); | 4188 checkWorkerMessageCode(o.workerMessageCode); |
4191 checkResourceUtilizationReport(o.workerMetrics); | 4189 checkResourceUtilizationReport(o.workerMetrics); |
4192 } | 4190 } |
4193 buildCounterWorkerMessage--; | 4191 buildCounterWorkerMessage--; |
4194 } | 4192 } |
4195 | 4193 |
4196 buildUnnamed3543() { | 4194 buildUnnamed3017() { |
4197 var o = new core.Map<core.String, core.Object>(); | 4195 var o = new core.Map<core.String, core.Object>(); |
4198 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 4196 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
4199 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 4197 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
4200 return o; | 4198 return o; |
4201 } | 4199 } |
4202 | 4200 |
4203 checkUnnamed3543(core.Map<core.String, core.Object> o) { | 4201 checkUnnamed3017(core.Map<core.String, core.Object> o) { |
4204 unittest.expect(o, unittest.hasLength(2)); | 4202 unittest.expect(o, unittest.hasLength(2)); |
4205 var casted47 = (o["x"]) as core.Map; unittest.expect(casted47, unittest.hasLen
gth(3)); unittest.expect(casted47["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted47["bool"], unittest.equals(true)); unittest.expect(casted47["stri
ng"], unittest.equals('foo')); | 4203 var casted47 = (o["x"]) as core.Map; unittest.expect(casted47, unittest.hasLen
gth(3)); unittest.expect(casted47["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted47["bool"], unittest.equals(true)); unittest.expect(casted47["stri
ng"], unittest.equals('foo')); |
4206 var casted48 = (o["y"]) as core.Map; unittest.expect(casted48, unittest.hasLen
gth(3)); unittest.expect(casted48["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted48["bool"], unittest.equals(true)); unittest.expect(casted48["stri
ng"], unittest.equals('foo')); | 4204 var casted48 = (o["y"]) as core.Map; unittest.expect(casted48, unittest.hasLen
gth(3)); unittest.expect(casted48["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted48["bool"], unittest.equals(true)); unittest.expect(casted48["stri
ng"], unittest.equals('foo')); |
4207 } | 4205 } |
4208 | 4206 |
4209 core.int buildCounterWorkerMessageCode = 0; | 4207 core.int buildCounterWorkerMessageCode = 0; |
4210 buildWorkerMessageCode() { | 4208 buildWorkerMessageCode() { |
4211 var o = new api.WorkerMessageCode(); | 4209 var o = new api.WorkerMessageCode(); |
4212 buildCounterWorkerMessageCode++; | 4210 buildCounterWorkerMessageCode++; |
4213 if (buildCounterWorkerMessageCode < 3) { | 4211 if (buildCounterWorkerMessageCode < 3) { |
4214 o.code = "foo"; | 4212 o.code = "foo"; |
4215 o.parameters = buildUnnamed3543(); | 4213 o.parameters = buildUnnamed3017(); |
4216 } | 4214 } |
4217 buildCounterWorkerMessageCode--; | 4215 buildCounterWorkerMessageCode--; |
4218 return o; | 4216 return o; |
4219 } | 4217 } |
4220 | 4218 |
4221 checkWorkerMessageCode(api.WorkerMessageCode o) { | 4219 checkWorkerMessageCode(api.WorkerMessageCode o) { |
4222 buildCounterWorkerMessageCode++; | 4220 buildCounterWorkerMessageCode++; |
4223 if (buildCounterWorkerMessageCode < 3) { | 4221 if (buildCounterWorkerMessageCode < 3) { |
4224 unittest.expect(o.code, unittest.equals('foo')); | 4222 unittest.expect(o.code, unittest.equals('foo')); |
4225 checkUnnamed3543(o.parameters); | 4223 checkUnnamed3017(o.parameters); |
4226 } | 4224 } |
4227 buildCounterWorkerMessageCode--; | 4225 buildCounterWorkerMessageCode--; |
4228 } | 4226 } |
4229 | 4227 |
4230 core.int buildCounterWorkerMessageResponse = 0; | 4228 core.int buildCounterWorkerMessageResponse = 0; |
4231 buildWorkerMessageResponse() { | 4229 buildWorkerMessageResponse() { |
4232 var o = new api.WorkerMessageResponse(); | 4230 var o = new api.WorkerMessageResponse(); |
4233 buildCounterWorkerMessageResponse++; | 4231 buildCounterWorkerMessageResponse++; |
4234 if (buildCounterWorkerMessageResponse < 3) { | 4232 if (buildCounterWorkerMessageResponse < 3) { |
4235 o.workerHealthReportResponse = buildWorkerHealthReportResponse(); | 4233 o.workerHealthReportResponse = buildWorkerHealthReportResponse(); |
4236 o.workerMetricsResponse = buildResourceUtilizationReportResponse(); | 4234 o.workerMetricsResponse = buildResourceUtilizationReportResponse(); |
4237 } | 4235 } |
4238 buildCounterWorkerMessageResponse--; | 4236 buildCounterWorkerMessageResponse--; |
4239 return o; | 4237 return o; |
4240 } | 4238 } |
4241 | 4239 |
4242 checkWorkerMessageResponse(api.WorkerMessageResponse o) { | 4240 checkWorkerMessageResponse(api.WorkerMessageResponse o) { |
4243 buildCounterWorkerMessageResponse++; | 4241 buildCounterWorkerMessageResponse++; |
4244 if (buildCounterWorkerMessageResponse < 3) { | 4242 if (buildCounterWorkerMessageResponse < 3) { |
4245 checkWorkerHealthReportResponse(o.workerHealthReportResponse); | 4243 checkWorkerHealthReportResponse(o.workerHealthReportResponse); |
4246 checkResourceUtilizationReportResponse(o.workerMetricsResponse); | 4244 checkResourceUtilizationReportResponse(o.workerMetricsResponse); |
4247 } | 4245 } |
4248 buildCounterWorkerMessageResponse--; | 4246 buildCounterWorkerMessageResponse--; |
4249 } | 4247 } |
4250 | 4248 |
4251 buildUnnamed3544() { | 4249 buildUnnamed3018() { |
4252 var o = new core.List<api.Disk>(); | 4250 var o = new core.List<api.Disk>(); |
4253 o.add(buildDisk()); | 4251 o.add(buildDisk()); |
4254 o.add(buildDisk()); | 4252 o.add(buildDisk()); |
4255 return o; | 4253 return o; |
4256 } | 4254 } |
4257 | 4255 |
4258 checkUnnamed3544(core.List<api.Disk> o) { | 4256 checkUnnamed3018(core.List<api.Disk> o) { |
4259 unittest.expect(o, unittest.hasLength(2)); | 4257 unittest.expect(o, unittest.hasLength(2)); |
4260 checkDisk(o[0]); | 4258 checkDisk(o[0]); |
4261 checkDisk(o[1]); | 4259 checkDisk(o[1]); |
4262 } | 4260 } |
4263 | 4261 |
4264 buildUnnamed3545() { | 4262 buildUnnamed3019() { |
4265 var o = new core.Map<core.String, core.String>(); | 4263 var o = new core.Map<core.String, core.String>(); |
4266 o["x"] = "foo"; | 4264 o["x"] = "foo"; |
4267 o["y"] = "foo"; | 4265 o["y"] = "foo"; |
4268 return o; | 4266 return o; |
4269 } | 4267 } |
4270 | 4268 |
4271 checkUnnamed3545(core.Map<core.String, core.String> o) { | 4269 checkUnnamed3019(core.Map<core.String, core.String> o) { |
4272 unittest.expect(o, unittest.hasLength(2)); | 4270 unittest.expect(o, unittest.hasLength(2)); |
4273 unittest.expect(o["x"], unittest.equals('foo')); | 4271 unittest.expect(o["x"], unittest.equals('foo')); |
4274 unittest.expect(o["y"], unittest.equals('foo')); | 4272 unittest.expect(o["y"], unittest.equals('foo')); |
4275 } | 4273 } |
4276 | 4274 |
4277 buildUnnamed3546() { | 4275 buildUnnamed3020() { |
4278 var o = new core.List<api.Package>(); | 4276 var o = new core.List<api.Package>(); |
4279 o.add(buildPackage()); | 4277 o.add(buildPackage()); |
4280 o.add(buildPackage()); | 4278 o.add(buildPackage()); |
4281 return o; | 4279 return o; |
4282 } | 4280 } |
4283 | 4281 |
4284 checkUnnamed3546(core.List<api.Package> o) { | 4282 checkUnnamed3020(core.List<api.Package> o) { |
4285 unittest.expect(o, unittest.hasLength(2)); | 4283 unittest.expect(o, unittest.hasLength(2)); |
4286 checkPackage(o[0]); | 4284 checkPackage(o[0]); |
4287 checkPackage(o[1]); | 4285 checkPackage(o[1]); |
4288 } | 4286 } |
4289 | 4287 |
4290 buildUnnamed3547() { | 4288 buildUnnamed3021() { |
4291 var o = new core.Map<core.String, core.Object>(); | 4289 var o = new core.Map<core.String, core.Object>(); |
4292 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 4290 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
4293 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 4291 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
4294 return o; | 4292 return o; |
4295 } | 4293 } |
4296 | 4294 |
4297 checkUnnamed3547(core.Map<core.String, core.Object> o) { | 4295 checkUnnamed3021(core.Map<core.String, core.Object> o) { |
4298 unittest.expect(o, unittest.hasLength(2)); | 4296 unittest.expect(o, unittest.hasLength(2)); |
4299 var casted49 = (o["x"]) as core.Map; unittest.expect(casted49, unittest.hasLen
gth(3)); unittest.expect(casted49["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted49["bool"], unittest.equals(true)); unittest.expect(casted49["stri
ng"], unittest.equals('foo')); | 4297 var casted49 = (o["x"]) as core.Map; unittest.expect(casted49, unittest.hasLen
gth(3)); unittest.expect(casted49["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted49["bool"], unittest.equals(true)); unittest.expect(casted49["stri
ng"], unittest.equals('foo')); |
4300 var casted50 = (o["y"]) as core.Map; unittest.expect(casted50, unittest.hasLen
gth(3)); unittest.expect(casted50["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted50["bool"], unittest.equals(true)); unittest.expect(casted50["stri
ng"], unittest.equals('foo')); | 4298 var casted50 = (o["y"]) as core.Map; unittest.expect(casted50, unittest.hasLen
gth(3)); unittest.expect(casted50["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted50["bool"], unittest.equals(true)); unittest.expect(casted50["stri
ng"], unittest.equals('foo')); |
4301 } | 4299 } |
4302 | 4300 |
4303 core.int buildCounterWorkerPool = 0; | 4301 core.int buildCounterWorkerPool = 0; |
4304 buildWorkerPool() { | 4302 buildWorkerPool() { |
4305 var o = new api.WorkerPool(); | 4303 var o = new api.WorkerPool(); |
4306 buildCounterWorkerPool++; | 4304 buildCounterWorkerPool++; |
4307 if (buildCounterWorkerPool < 3) { | 4305 if (buildCounterWorkerPool < 3) { |
4308 o.autoscalingSettings = buildAutoscalingSettings(); | 4306 o.autoscalingSettings = buildAutoscalingSettings(); |
4309 o.dataDisks = buildUnnamed3544(); | 4307 o.dataDisks = buildUnnamed3018(); |
4310 o.defaultPackageSet = "foo"; | 4308 o.defaultPackageSet = "foo"; |
4311 o.diskSizeGb = 42; | 4309 o.diskSizeGb = 42; |
4312 o.diskSourceImage = "foo"; | 4310 o.diskSourceImage = "foo"; |
4313 o.diskType = "foo"; | 4311 o.diskType = "foo"; |
4314 o.ipConfiguration = "foo"; | 4312 o.ipConfiguration = "foo"; |
4315 o.kind = "foo"; | 4313 o.kind = "foo"; |
4316 o.machineType = "foo"; | 4314 o.machineType = "foo"; |
4317 o.metadata = buildUnnamed3545(); | 4315 o.metadata = buildUnnamed3019(); |
4318 o.network = "foo"; | 4316 o.network = "foo"; |
4319 o.numThreadsPerWorker = 42; | 4317 o.numThreadsPerWorker = 42; |
4320 o.numWorkers = 42; | 4318 o.numWorkers = 42; |
4321 o.onHostMaintenance = "foo"; | 4319 o.onHostMaintenance = "foo"; |
4322 o.packages = buildUnnamed3546(); | 4320 o.packages = buildUnnamed3020(); |
4323 o.poolArgs = buildUnnamed3547(); | 4321 o.poolArgs = buildUnnamed3021(); |
4324 o.subnetwork = "foo"; | 4322 o.subnetwork = "foo"; |
4325 o.taskrunnerSettings = buildTaskRunnerSettings(); | 4323 o.taskrunnerSettings = buildTaskRunnerSettings(); |
4326 o.teardownPolicy = "foo"; | 4324 o.teardownPolicy = "foo"; |
4327 o.workerHarnessContainerImage = "foo"; | 4325 o.workerHarnessContainerImage = "foo"; |
4328 o.zone = "foo"; | 4326 o.zone = "foo"; |
4329 } | 4327 } |
4330 buildCounterWorkerPool--; | 4328 buildCounterWorkerPool--; |
4331 return o; | 4329 return o; |
4332 } | 4330 } |
4333 | 4331 |
4334 checkWorkerPool(api.WorkerPool o) { | 4332 checkWorkerPool(api.WorkerPool o) { |
4335 buildCounterWorkerPool++; | 4333 buildCounterWorkerPool++; |
4336 if (buildCounterWorkerPool < 3) { | 4334 if (buildCounterWorkerPool < 3) { |
4337 checkAutoscalingSettings(o.autoscalingSettings); | 4335 checkAutoscalingSettings(o.autoscalingSettings); |
4338 checkUnnamed3544(o.dataDisks); | 4336 checkUnnamed3018(o.dataDisks); |
4339 unittest.expect(o.defaultPackageSet, unittest.equals('foo')); | 4337 unittest.expect(o.defaultPackageSet, unittest.equals('foo')); |
4340 unittest.expect(o.diskSizeGb, unittest.equals(42)); | 4338 unittest.expect(o.diskSizeGb, unittest.equals(42)); |
4341 unittest.expect(o.diskSourceImage, unittest.equals('foo')); | 4339 unittest.expect(o.diskSourceImage, unittest.equals('foo')); |
4342 unittest.expect(o.diskType, unittest.equals('foo')); | 4340 unittest.expect(o.diskType, unittest.equals('foo')); |
4343 unittest.expect(o.ipConfiguration, unittest.equals('foo')); | 4341 unittest.expect(o.ipConfiguration, unittest.equals('foo')); |
4344 unittest.expect(o.kind, unittest.equals('foo')); | 4342 unittest.expect(o.kind, unittest.equals('foo')); |
4345 unittest.expect(o.machineType, unittest.equals('foo')); | 4343 unittest.expect(o.machineType, unittest.equals('foo')); |
4346 checkUnnamed3545(o.metadata); | 4344 checkUnnamed3019(o.metadata); |
4347 unittest.expect(o.network, unittest.equals('foo')); | 4345 unittest.expect(o.network, unittest.equals('foo')); |
4348 unittest.expect(o.numThreadsPerWorker, unittest.equals(42)); | 4346 unittest.expect(o.numThreadsPerWorker, unittest.equals(42)); |
4349 unittest.expect(o.numWorkers, unittest.equals(42)); | 4347 unittest.expect(o.numWorkers, unittest.equals(42)); |
4350 unittest.expect(o.onHostMaintenance, unittest.equals('foo')); | 4348 unittest.expect(o.onHostMaintenance, unittest.equals('foo')); |
4351 checkUnnamed3546(o.packages); | 4349 checkUnnamed3020(o.packages); |
4352 checkUnnamed3547(o.poolArgs); | 4350 checkUnnamed3021(o.poolArgs); |
4353 unittest.expect(o.subnetwork, unittest.equals('foo')); | 4351 unittest.expect(o.subnetwork, unittest.equals('foo')); |
4354 checkTaskRunnerSettings(o.taskrunnerSettings); | 4352 checkTaskRunnerSettings(o.taskrunnerSettings); |
4355 unittest.expect(o.teardownPolicy, unittest.equals('foo')); | 4353 unittest.expect(o.teardownPolicy, unittest.equals('foo')); |
4356 unittest.expect(o.workerHarnessContainerImage, unittest.equals('foo')); | 4354 unittest.expect(o.workerHarnessContainerImage, unittest.equals('foo')); |
4357 unittest.expect(o.zone, unittest.equals('foo')); | 4355 unittest.expect(o.zone, unittest.equals('foo')); |
4358 } | 4356 } |
4359 buildCounterWorkerPool--; | 4357 buildCounterWorkerPool--; |
4360 } | 4358 } |
4361 | 4359 |
4362 core.int buildCounterWorkerSettings = 0; | 4360 core.int buildCounterWorkerSettings = 0; |
(...skipping 1155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5518 }); | 5516 }); |
5519 | 5517 |
5520 | 5518 |
5521 unittest.group("resource-ProjectsResourceApi", () { | 5519 unittest.group("resource-ProjectsResourceApi", () { |
5522 unittest.test("method--workerMessages", () { | 5520 unittest.test("method--workerMessages", () { |
5523 | 5521 |
5524 var mock = new HttpServerMock(); | 5522 var mock = new HttpServerMock(); |
5525 api.ProjectsResourceApi res = new api.DataflowApi(mock).projects; | 5523 api.ProjectsResourceApi res = new api.DataflowApi(mock).projects; |
5526 var arg_request = buildSendWorkerMessagesRequest(); | 5524 var arg_request = buildSendWorkerMessagesRequest(); |
5527 var arg_projectId = "foo"; | 5525 var arg_projectId = "foo"; |
5528 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5526 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5529 var obj = new api.SendWorkerMessagesRequest.fromJson(json); | 5527 var obj = new api.SendWorkerMessagesRequest.fromJson(json); |
5530 checkSendWorkerMessagesRequest(obj); | 5528 checkSendWorkerMessagesRequest(obj); |
5531 | 5529 |
5532 var path = (req.url).path; | 5530 var path = (req.url).path; |
5533 var pathOffset = 0; | 5531 var pathOffset = 0; |
5534 var index; | 5532 var index; |
5535 var subPart; | 5533 var subPart; |
5536 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5534 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5537 pathOffset += 1; | 5535 pathOffset += 1; |
5538 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 5536 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
(...skipping 23 matching lines...) Expand all Loading... |
5562 } | 5560 } |
5563 } | 5561 } |
5564 | 5562 |
5565 | 5563 |
5566 var h = { | 5564 var h = { |
5567 "content-type" : "application/json; charset=utf-8", | 5565 "content-type" : "application/json; charset=utf-8", |
5568 }; | 5566 }; |
5569 var resp = convert.JSON.encode(buildSendWorkerMessagesResponse()); | 5567 var resp = convert.JSON.encode(buildSendWorkerMessagesResponse()); |
5570 return new async.Future.value(stringResponse(200, h, resp)); | 5568 return new async.Future.value(stringResponse(200, h, resp)); |
5571 }), true); | 5569 }), true); |
5572 res.workerMessages(arg_request, arg_projectId).then(unittest.expectAsync((
(api.SendWorkerMessagesResponse response) { | 5570 res.workerMessages(arg_request, arg_projectId).then(unittest.expectAsync1(
((api.SendWorkerMessagesResponse response) { |
5573 checkSendWorkerMessagesResponse(response); | 5571 checkSendWorkerMessagesResponse(response); |
5574 }))); | 5572 }))); |
5575 }); | 5573 }); |
5576 | 5574 |
5577 }); | 5575 }); |
5578 | 5576 |
5579 | 5577 |
5580 unittest.group("resource-ProjectsJobsResourceApi", () { | 5578 unittest.group("resource-ProjectsJobsResourceApi", () { |
5581 unittest.test("method--create", () { | 5579 unittest.test("method--create", () { |
5582 | 5580 |
5583 var mock = new HttpServerMock(); | 5581 var mock = new HttpServerMock(); |
5584 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; | 5582 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; |
5585 var arg_request = buildJob(); | 5583 var arg_request = buildJob(); |
5586 var arg_projectId = "foo"; | 5584 var arg_projectId = "foo"; |
5587 var arg_view = "foo"; | 5585 var arg_view = "foo"; |
5588 var arg_location = "foo"; | 5586 var arg_location = "foo"; |
5589 var arg_replaceJobId = "foo"; | 5587 var arg_replaceJobId = "foo"; |
5590 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5588 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5591 var obj = new api.Job.fromJson(json); | 5589 var obj = new api.Job.fromJson(json); |
5592 checkJob(obj); | 5590 checkJob(obj); |
5593 | 5591 |
5594 var path = (req.url).path; | 5592 var path = (req.url).path; |
5595 var pathOffset = 0; | 5593 var pathOffset = 0; |
5596 var index; | 5594 var index; |
5597 var subPart; | 5595 var subPart; |
5598 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5596 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5599 pathOffset += 1; | 5597 pathOffset += 1; |
5600 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 5598 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
(...skipping 26 matching lines...) Expand all Loading... |
5627 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); | 5625 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); |
5628 unittest.expect(queryMap["replaceJobId"].first, unittest.equals(arg_repl
aceJobId)); | 5626 unittest.expect(queryMap["replaceJobId"].first, unittest.equals(arg_repl
aceJobId)); |
5629 | 5627 |
5630 | 5628 |
5631 var h = { | 5629 var h = { |
5632 "content-type" : "application/json; charset=utf-8", | 5630 "content-type" : "application/json; charset=utf-8", |
5633 }; | 5631 }; |
5634 var resp = convert.JSON.encode(buildJob()); | 5632 var resp = convert.JSON.encode(buildJob()); |
5635 return new async.Future.value(stringResponse(200, h, resp)); | 5633 return new async.Future.value(stringResponse(200, h, resp)); |
5636 }), true); | 5634 }), true); |
5637 res.create(arg_request, arg_projectId, view: arg_view, location: arg_locat
ion, replaceJobId: arg_replaceJobId).then(unittest.expectAsync(((api.Job respons
e) { | 5635 res.create(arg_request, arg_projectId, view: arg_view, location: arg_locat
ion, replaceJobId: arg_replaceJobId).then(unittest.expectAsync1(((api.Job respon
se) { |
5638 checkJob(response); | 5636 checkJob(response); |
5639 }))); | 5637 }))); |
5640 }); | 5638 }); |
5641 | 5639 |
5642 unittest.test("method--get", () { | 5640 unittest.test("method--get", () { |
5643 | 5641 |
5644 var mock = new HttpServerMock(); | 5642 var mock = new HttpServerMock(); |
5645 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; | 5643 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; |
5646 var arg_projectId = "foo"; | 5644 var arg_projectId = "foo"; |
5647 var arg_jobId = "foo"; | 5645 var arg_jobId = "foo"; |
5648 var arg_view = "foo"; | 5646 var arg_view = "foo"; |
5649 var arg_location = "foo"; | 5647 var arg_location = "foo"; |
5650 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5648 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5651 var path = (req.url).path; | 5649 var path = (req.url).path; |
5652 var pathOffset = 0; | 5650 var pathOffset = 0; |
5653 var index; | 5651 var index; |
5654 var subPart; | 5652 var subPart; |
5655 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5653 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5656 pathOffset += 1; | 5654 pathOffset += 1; |
5657 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 5655 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
5658 pathOffset += 14; | 5656 pathOffset += 14; |
5659 index = path.indexOf("/jobs/", pathOffset); | 5657 index = path.indexOf("/jobs/", pathOffset); |
5660 unittest.expect(index >= 0, unittest.isTrue); | 5658 unittest.expect(index >= 0, unittest.isTrue); |
(...skipping 25 matching lines...) Expand all Loading... |
5686 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | 5684 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
5687 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); | 5685 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); |
5688 | 5686 |
5689 | 5687 |
5690 var h = { | 5688 var h = { |
5691 "content-type" : "application/json; charset=utf-8", | 5689 "content-type" : "application/json; charset=utf-8", |
5692 }; | 5690 }; |
5693 var resp = convert.JSON.encode(buildJob()); | 5691 var resp = convert.JSON.encode(buildJob()); |
5694 return new async.Future.value(stringResponse(200, h, resp)); | 5692 return new async.Future.value(stringResponse(200, h, resp)); |
5695 }), true); | 5693 }), true); |
5696 res.get(arg_projectId, arg_jobId, view: arg_view, location: arg_location).
then(unittest.expectAsync(((api.Job response) { | 5694 res.get(arg_projectId, arg_jobId, view: arg_view, location: arg_location).
then(unittest.expectAsync1(((api.Job response) { |
5697 checkJob(response); | 5695 checkJob(response); |
5698 }))); | 5696 }))); |
5699 }); | 5697 }); |
5700 | 5698 |
5701 unittest.test("method--getMetrics", () { | 5699 unittest.test("method--getMetrics", () { |
5702 | 5700 |
5703 var mock = new HttpServerMock(); | 5701 var mock = new HttpServerMock(); |
5704 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; | 5702 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; |
5705 var arg_projectId = "foo"; | 5703 var arg_projectId = "foo"; |
5706 var arg_jobId = "foo"; | 5704 var arg_jobId = "foo"; |
| 5705 var arg_startTime = "foo"; |
5707 var arg_location = "foo"; | 5706 var arg_location = "foo"; |
5708 var arg_startTime = "foo"; | 5707 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5709 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
5710 var path = (req.url).path; | 5708 var path = (req.url).path; |
5711 var pathOffset = 0; | 5709 var pathOffset = 0; |
5712 var index; | 5710 var index; |
5713 var subPart; | 5711 var subPart; |
5714 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5712 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5715 pathOffset += 1; | 5713 pathOffset += 1; |
5716 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 5714 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
5717 pathOffset += 14; | 5715 pathOffset += 14; |
5718 index = path.indexOf("/jobs/", pathOffset); | 5716 index = path.indexOf("/jobs/", pathOffset); |
5719 unittest.expect(index >= 0, unittest.isTrue); | 5717 unittest.expect(index >= 0, unittest.isTrue); |
(...skipping 19 matching lines...) Expand all Loading... |
5739 if (n == "false") return false; | 5737 if (n == "false") return false; |
5740 if (n == null) return null; | 5738 if (n == null) return null; |
5741 throw new core.ArgumentError("Invalid boolean: $n"); | 5739 throw new core.ArgumentError("Invalid boolean: $n"); |
5742 } | 5740 } |
5743 if (query.length > 0) { | 5741 if (query.length > 0) { |
5744 for (var part in query.split("&")) { | 5742 for (var part in query.split("&")) { |
5745 var keyvalue = part.split("="); | 5743 var keyvalue = part.split("="); |
5746 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5744 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5747 } | 5745 } |
5748 } | 5746 } |
| 5747 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi
me)); |
5749 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); | 5748 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); |
5750 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi
me)); | |
5751 | 5749 |
5752 | 5750 |
5753 var h = { | 5751 var h = { |
5754 "content-type" : "application/json; charset=utf-8", | 5752 "content-type" : "application/json; charset=utf-8", |
5755 }; | 5753 }; |
5756 var resp = convert.JSON.encode(buildJobMetrics()); | 5754 var resp = convert.JSON.encode(buildJobMetrics()); |
5757 return new async.Future.value(stringResponse(200, h, resp)); | 5755 return new async.Future.value(stringResponse(200, h, resp)); |
5758 }), true); | 5756 }), true); |
5759 res.getMetrics(arg_projectId, arg_jobId, location: arg_location, startTime
: arg_startTime).then(unittest.expectAsync(((api.JobMetrics response) { | 5757 res.getMetrics(arg_projectId, arg_jobId, startTime: arg_startTime, locatio
n: arg_location).then(unittest.expectAsync1(((api.JobMetrics response) { |
5760 checkJobMetrics(response); | 5758 checkJobMetrics(response); |
5761 }))); | 5759 }))); |
5762 }); | 5760 }); |
5763 | 5761 |
5764 unittest.test("method--list", () { | 5762 unittest.test("method--list", () { |
5765 | 5763 |
5766 var mock = new HttpServerMock(); | 5764 var mock = new HttpServerMock(); |
5767 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; | 5765 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; |
5768 var arg_projectId = "foo"; | 5766 var arg_projectId = "foo"; |
5769 var arg_view = "foo"; | |
5770 var arg_filter = "foo"; | |
5771 var arg_location = "foo"; | 5767 var arg_location = "foo"; |
5772 var arg_pageToken = "foo"; | 5768 var arg_pageToken = "foo"; |
5773 var arg_pageSize = 42; | 5769 var arg_pageSize = 42; |
5774 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5770 var arg_view = "foo"; |
| 5771 var arg_filter = "foo"; |
| 5772 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5775 var path = (req.url).path; | 5773 var path = (req.url).path; |
5776 var pathOffset = 0; | 5774 var pathOffset = 0; |
5777 var index; | 5775 var index; |
5778 var subPart; | 5776 var subPart; |
5779 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5777 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5780 pathOffset += 1; | 5778 pathOffset += 1; |
5781 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 5779 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
5782 pathOffset += 14; | 5780 pathOffset += 14; |
5783 index = path.indexOf("/jobs", pathOffset); | 5781 index = path.indexOf("/jobs", pathOffset); |
5784 unittest.expect(index >= 0, unittest.isTrue); | 5782 unittest.expect(index >= 0, unittest.isTrue); |
(...skipping 12 matching lines...) Expand all Loading... |
5797 if (n == "false") return false; | 5795 if (n == "false") return false; |
5798 if (n == null) return null; | 5796 if (n == null) return null; |
5799 throw new core.ArgumentError("Invalid boolean: $n"); | 5797 throw new core.ArgumentError("Invalid boolean: $n"); |
5800 } | 5798 } |
5801 if (query.length > 0) { | 5799 if (query.length > 0) { |
5802 for (var part in query.split("&")) { | 5800 for (var part in query.split("&")) { |
5803 var keyvalue = part.split("="); | 5801 var keyvalue = part.split("="); |
5804 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5802 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5805 } | 5803 } |
5806 } | 5804 } |
5807 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | |
5808 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
5809 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); | 5805 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); |
5810 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 5806 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
5811 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 5807 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
| 5808 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
| 5809 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
5812 | 5810 |
5813 | 5811 |
5814 var h = { | 5812 var h = { |
5815 "content-type" : "application/json; charset=utf-8", | 5813 "content-type" : "application/json; charset=utf-8", |
5816 }; | 5814 }; |
5817 var resp = convert.JSON.encode(buildListJobsResponse()); | 5815 var resp = convert.JSON.encode(buildListJobsResponse()); |
5818 return new async.Future.value(stringResponse(200, h, resp)); | 5816 return new async.Future.value(stringResponse(200, h, resp)); |
5819 }), true); | 5817 }), true); |
5820 res.list(arg_projectId, view: arg_view, filter: arg_filter, location: arg_
location, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expect
Async(((api.ListJobsResponse response) { | 5818 res.list(arg_projectId, location: arg_location, pageToken: arg_pageToken,
pageSize: arg_pageSize, view: arg_view, filter: arg_filter).then(unittest.expect
Async1(((api.ListJobsResponse response) { |
5821 checkListJobsResponse(response); | 5819 checkListJobsResponse(response); |
5822 }))); | 5820 }))); |
5823 }); | 5821 }); |
5824 | 5822 |
5825 unittest.test("method--update", () { | 5823 unittest.test("method--update", () { |
5826 | 5824 |
5827 var mock = new HttpServerMock(); | 5825 var mock = new HttpServerMock(); |
5828 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; | 5826 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; |
5829 var arg_request = buildJob(); | 5827 var arg_request = buildJob(); |
5830 var arg_projectId = "foo"; | 5828 var arg_projectId = "foo"; |
5831 var arg_jobId = "foo"; | 5829 var arg_jobId = "foo"; |
5832 var arg_location = "foo"; | 5830 var arg_location = "foo"; |
5833 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5831 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5834 var obj = new api.Job.fromJson(json); | 5832 var obj = new api.Job.fromJson(json); |
5835 checkJob(obj); | 5833 checkJob(obj); |
5836 | 5834 |
5837 var path = (req.url).path; | 5835 var path = (req.url).path; |
5838 var pathOffset = 0; | 5836 var pathOffset = 0; |
5839 var index; | 5837 var index; |
5840 var subPart; | 5838 var subPart; |
5841 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5839 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5842 pathOffset += 1; | 5840 pathOffset += 1; |
5843 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 5841 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
(...skipping 27 matching lines...) Expand all Loading... |
5871 } | 5869 } |
5872 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); | 5870 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); |
5873 | 5871 |
5874 | 5872 |
5875 var h = { | 5873 var h = { |
5876 "content-type" : "application/json; charset=utf-8", | 5874 "content-type" : "application/json; charset=utf-8", |
5877 }; | 5875 }; |
5878 var resp = convert.JSON.encode(buildJob()); | 5876 var resp = convert.JSON.encode(buildJob()); |
5879 return new async.Future.value(stringResponse(200, h, resp)); | 5877 return new async.Future.value(stringResponse(200, h, resp)); |
5880 }), true); | 5878 }), true); |
5881 res.update(arg_request, arg_projectId, arg_jobId, location: arg_location).
then(unittest.expectAsync(((api.Job response) { | 5879 res.update(arg_request, arg_projectId, arg_jobId, location: arg_location).
then(unittest.expectAsync1(((api.Job response) { |
5882 checkJob(response); | 5880 checkJob(response); |
5883 }))); | 5881 }))); |
5884 }); | 5882 }); |
5885 | 5883 |
5886 }); | 5884 }); |
5887 | 5885 |
5888 | 5886 |
5889 unittest.group("resource-ProjectsJobsDebugResourceApi", () { | 5887 unittest.group("resource-ProjectsJobsDebugResourceApi", () { |
5890 unittest.test("method--getConfig", () { | 5888 unittest.test("method--getConfig", () { |
5891 | 5889 |
5892 var mock = new HttpServerMock(); | 5890 var mock = new HttpServerMock(); |
5893 api.ProjectsJobsDebugResourceApi res = new api.DataflowApi(mock).projects.
jobs.debug; | 5891 api.ProjectsJobsDebugResourceApi res = new api.DataflowApi(mock).projects.
jobs.debug; |
5894 var arg_request = buildGetDebugConfigRequest(); | 5892 var arg_request = buildGetDebugConfigRequest(); |
5895 var arg_projectId = "foo"; | 5893 var arg_projectId = "foo"; |
5896 var arg_jobId = "foo"; | 5894 var arg_jobId = "foo"; |
5897 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5895 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5898 var obj = new api.GetDebugConfigRequest.fromJson(json); | 5896 var obj = new api.GetDebugConfigRequest.fromJson(json); |
5899 checkGetDebugConfigRequest(obj); | 5897 checkGetDebugConfigRequest(obj); |
5900 | 5898 |
5901 var path = (req.url).path; | 5899 var path = (req.url).path; |
5902 var pathOffset = 0; | 5900 var pathOffset = 0; |
5903 var index; | 5901 var index; |
5904 var subPart; | 5902 var subPart; |
5905 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5903 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5906 pathOffset += 1; | 5904 pathOffset += 1; |
5907 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 5905 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
(...skipping 30 matching lines...) Expand all Loading... |
5938 } | 5936 } |
5939 } | 5937 } |
5940 | 5938 |
5941 | 5939 |
5942 var h = { | 5940 var h = { |
5943 "content-type" : "application/json; charset=utf-8", | 5941 "content-type" : "application/json; charset=utf-8", |
5944 }; | 5942 }; |
5945 var resp = convert.JSON.encode(buildGetDebugConfigResponse()); | 5943 var resp = convert.JSON.encode(buildGetDebugConfigResponse()); |
5946 return new async.Future.value(stringResponse(200, h, resp)); | 5944 return new async.Future.value(stringResponse(200, h, resp)); |
5947 }), true); | 5945 }), true); |
5948 res.getConfig(arg_request, arg_projectId, arg_jobId).then(unittest.expectA
sync(((api.GetDebugConfigResponse response) { | 5946 res.getConfig(arg_request, arg_projectId, arg_jobId).then(unittest.expectA
sync1(((api.GetDebugConfigResponse response) { |
5949 checkGetDebugConfigResponse(response); | 5947 checkGetDebugConfigResponse(response); |
5950 }))); | 5948 }))); |
5951 }); | 5949 }); |
5952 | 5950 |
5953 unittest.test("method--sendCapture", () { | 5951 unittest.test("method--sendCapture", () { |
5954 | 5952 |
5955 var mock = new HttpServerMock(); | 5953 var mock = new HttpServerMock(); |
5956 api.ProjectsJobsDebugResourceApi res = new api.DataflowApi(mock).projects.
jobs.debug; | 5954 api.ProjectsJobsDebugResourceApi res = new api.DataflowApi(mock).projects.
jobs.debug; |
5957 var arg_request = buildSendDebugCaptureRequest(); | 5955 var arg_request = buildSendDebugCaptureRequest(); |
5958 var arg_projectId = "foo"; | 5956 var arg_projectId = "foo"; |
5959 var arg_jobId = "foo"; | 5957 var arg_jobId = "foo"; |
5960 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5958 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5961 var obj = new api.SendDebugCaptureRequest.fromJson(json); | 5959 var obj = new api.SendDebugCaptureRequest.fromJson(json); |
5962 checkSendDebugCaptureRequest(obj); | 5960 checkSendDebugCaptureRequest(obj); |
5963 | 5961 |
5964 var path = (req.url).path; | 5962 var path = (req.url).path; |
5965 var pathOffset = 0; | 5963 var pathOffset = 0; |
5966 var index; | 5964 var index; |
5967 var subPart; | 5965 var subPart; |
5968 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5966 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5969 pathOffset += 1; | 5967 pathOffset += 1; |
5970 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 5968 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
(...skipping 30 matching lines...) Expand all Loading... |
6001 } | 5999 } |
6002 } | 6000 } |
6003 | 6001 |
6004 | 6002 |
6005 var h = { | 6003 var h = { |
6006 "content-type" : "application/json; charset=utf-8", | 6004 "content-type" : "application/json; charset=utf-8", |
6007 }; | 6005 }; |
6008 var resp = convert.JSON.encode(buildSendDebugCaptureResponse()); | 6006 var resp = convert.JSON.encode(buildSendDebugCaptureResponse()); |
6009 return new async.Future.value(stringResponse(200, h, resp)); | 6007 return new async.Future.value(stringResponse(200, h, resp)); |
6010 }), true); | 6008 }), true); |
6011 res.sendCapture(arg_request, arg_projectId, arg_jobId).then(unittest.expec
tAsync(((api.SendDebugCaptureResponse response) { | 6009 res.sendCapture(arg_request, arg_projectId, arg_jobId).then(unittest.expec
tAsync1(((api.SendDebugCaptureResponse response) { |
6012 checkSendDebugCaptureResponse(response); | 6010 checkSendDebugCaptureResponse(response); |
6013 }))); | 6011 }))); |
6014 }); | 6012 }); |
6015 | 6013 |
6016 }); | 6014 }); |
6017 | 6015 |
6018 | 6016 |
6019 unittest.group("resource-ProjectsJobsMessagesResourceApi", () { | 6017 unittest.group("resource-ProjectsJobsMessagesResourceApi", () { |
6020 unittest.test("method--list", () { | 6018 unittest.test("method--list", () { |
6021 | 6019 |
6022 var mock = new HttpServerMock(); | 6020 var mock = new HttpServerMock(); |
6023 api.ProjectsJobsMessagesResourceApi res = new api.DataflowApi(mock).projec
ts.jobs.messages; | 6021 api.ProjectsJobsMessagesResourceApi res = new api.DataflowApi(mock).projec
ts.jobs.messages; |
6024 var arg_projectId = "foo"; | 6022 var arg_projectId = "foo"; |
6025 var arg_jobId = "foo"; | 6023 var arg_jobId = "foo"; |
| 6024 var arg_pageSize = 42; |
6026 var arg_minimumImportance = "foo"; | 6025 var arg_minimumImportance = "foo"; |
| 6026 var arg_location = "foo"; |
6027 var arg_endTime = "foo"; | 6027 var arg_endTime = "foo"; |
6028 var arg_location = "foo"; | 6028 var arg_startTime = "foo"; |
6029 var arg_pageToken = "foo"; | 6029 var arg_pageToken = "foo"; |
6030 var arg_startTime = "foo"; | 6030 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6031 var arg_pageSize = 42; | |
6032 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
6033 var path = (req.url).path; | 6031 var path = (req.url).path; |
6034 var pathOffset = 0; | 6032 var pathOffset = 0; |
6035 var index; | 6033 var index; |
6036 var subPart; | 6034 var subPart; |
6037 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6035 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6038 pathOffset += 1; | 6036 pathOffset += 1; |
6039 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 6037 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
6040 pathOffset += 14; | 6038 pathOffset += 14; |
6041 index = path.indexOf("/jobs/", pathOffset); | 6039 index = path.indexOf("/jobs/", pathOffset); |
6042 unittest.expect(index >= 0, unittest.isTrue); | 6040 unittest.expect(index >= 0, unittest.isTrue); |
(...skipping 19 matching lines...) Expand all Loading... |
6062 if (n == "false") return false; | 6060 if (n == "false") return false; |
6063 if (n == null) return null; | 6061 if (n == null) return null; |
6064 throw new core.ArgumentError("Invalid boolean: $n"); | 6062 throw new core.ArgumentError("Invalid boolean: $n"); |
6065 } | 6063 } |
6066 if (query.length > 0) { | 6064 if (query.length > 0) { |
6067 for (var part in query.split("&")) { | 6065 for (var part in query.split("&")) { |
6068 var keyvalue = part.split("="); | 6066 var keyvalue = part.split("="); |
6069 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6067 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
6070 } | 6068 } |
6071 } | 6069 } |
| 6070 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
6072 unittest.expect(queryMap["minimumImportance"].first, unittest.equals(arg
_minimumImportance)); | 6071 unittest.expect(queryMap["minimumImportance"].first, unittest.equals(arg
_minimumImportance)); |
| 6072 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); |
6073 unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime))
; | 6073 unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime))
; |
6074 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); | 6074 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi
me)); |
6075 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 6075 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
6076 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi
me)); | |
6077 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
6078 | 6076 |
6079 | 6077 |
6080 var h = { | 6078 var h = { |
6081 "content-type" : "application/json; charset=utf-8", | 6079 "content-type" : "application/json; charset=utf-8", |
6082 }; | 6080 }; |
6083 var resp = convert.JSON.encode(buildListJobMessagesResponse()); | 6081 var resp = convert.JSON.encode(buildListJobMessagesResponse()); |
6084 return new async.Future.value(stringResponse(200, h, resp)); | 6082 return new async.Future.value(stringResponse(200, h, resp)); |
6085 }), true); | 6083 }), true); |
6086 res.list(arg_projectId, arg_jobId, minimumImportance: arg_minimumImportanc
e, endTime: arg_endTime, location: arg_location, pageToken: arg_pageToken, start
Time: arg_startTime, pageSize: arg_pageSize).then(unittest.expectAsync(((api.Lis
tJobMessagesResponse response) { | 6084 res.list(arg_projectId, arg_jobId, pageSize: arg_pageSize, minimumImportan
ce: arg_minimumImportance, location: arg_location, endTime: arg_endTime, startTi
me: arg_startTime, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.Li
stJobMessagesResponse response) { |
6087 checkListJobMessagesResponse(response); | 6085 checkListJobMessagesResponse(response); |
6088 }))); | 6086 }))); |
6089 }); | 6087 }); |
6090 | 6088 |
6091 }); | 6089 }); |
6092 | 6090 |
6093 | 6091 |
6094 unittest.group("resource-ProjectsJobsWorkItemsResourceApi", () { | 6092 unittest.group("resource-ProjectsJobsWorkItemsResourceApi", () { |
6095 unittest.test("method--lease", () { | 6093 unittest.test("method--lease", () { |
6096 | 6094 |
6097 var mock = new HttpServerMock(); | 6095 var mock = new HttpServerMock(); |
6098 api.ProjectsJobsWorkItemsResourceApi res = new api.DataflowApi(mock).proje
cts.jobs.workItems; | 6096 api.ProjectsJobsWorkItemsResourceApi res = new api.DataflowApi(mock).proje
cts.jobs.workItems; |
6099 var arg_request = buildLeaseWorkItemRequest(); | 6097 var arg_request = buildLeaseWorkItemRequest(); |
6100 var arg_projectId = "foo"; | 6098 var arg_projectId = "foo"; |
6101 var arg_jobId = "foo"; | 6099 var arg_jobId = "foo"; |
6102 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6100 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6103 var obj = new api.LeaseWorkItemRequest.fromJson(json); | 6101 var obj = new api.LeaseWorkItemRequest.fromJson(json); |
6104 checkLeaseWorkItemRequest(obj); | 6102 checkLeaseWorkItemRequest(obj); |
6105 | 6103 |
6106 var path = (req.url).path; | 6104 var path = (req.url).path; |
6107 var pathOffset = 0; | 6105 var pathOffset = 0; |
6108 var index; | 6106 var index; |
6109 var subPart; | 6107 var subPart; |
6110 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6108 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6111 pathOffset += 1; | 6109 pathOffset += 1; |
6112 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 6110 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
(...skipping 30 matching lines...) Expand all Loading... |
6143 } | 6141 } |
6144 } | 6142 } |
6145 | 6143 |
6146 | 6144 |
6147 var h = { | 6145 var h = { |
6148 "content-type" : "application/json; charset=utf-8", | 6146 "content-type" : "application/json; charset=utf-8", |
6149 }; | 6147 }; |
6150 var resp = convert.JSON.encode(buildLeaseWorkItemResponse()); | 6148 var resp = convert.JSON.encode(buildLeaseWorkItemResponse()); |
6151 return new async.Future.value(stringResponse(200, h, resp)); | 6149 return new async.Future.value(stringResponse(200, h, resp)); |
6152 }), true); | 6150 }), true); |
6153 res.lease(arg_request, arg_projectId, arg_jobId).then(unittest.expectAsync
(((api.LeaseWorkItemResponse response) { | 6151 res.lease(arg_request, arg_projectId, arg_jobId).then(unittest.expectAsync
1(((api.LeaseWorkItemResponse response) { |
6154 checkLeaseWorkItemResponse(response); | 6152 checkLeaseWorkItemResponse(response); |
6155 }))); | 6153 }))); |
6156 }); | 6154 }); |
6157 | 6155 |
6158 unittest.test("method--reportStatus", () { | 6156 unittest.test("method--reportStatus", () { |
6159 | 6157 |
6160 var mock = new HttpServerMock(); | 6158 var mock = new HttpServerMock(); |
6161 api.ProjectsJobsWorkItemsResourceApi res = new api.DataflowApi(mock).proje
cts.jobs.workItems; | 6159 api.ProjectsJobsWorkItemsResourceApi res = new api.DataflowApi(mock).proje
cts.jobs.workItems; |
6162 var arg_request = buildReportWorkItemStatusRequest(); | 6160 var arg_request = buildReportWorkItemStatusRequest(); |
6163 var arg_projectId = "foo"; | 6161 var arg_projectId = "foo"; |
6164 var arg_jobId = "foo"; | 6162 var arg_jobId = "foo"; |
6165 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6163 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6166 var obj = new api.ReportWorkItemStatusRequest.fromJson(json); | 6164 var obj = new api.ReportWorkItemStatusRequest.fromJson(json); |
6167 checkReportWorkItemStatusRequest(obj); | 6165 checkReportWorkItemStatusRequest(obj); |
6168 | 6166 |
6169 var path = (req.url).path; | 6167 var path = (req.url).path; |
6170 var pathOffset = 0; | 6168 var pathOffset = 0; |
6171 var index; | 6169 var index; |
6172 var subPart; | 6170 var subPart; |
6173 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6171 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6174 pathOffset += 1; | 6172 pathOffset += 1; |
6175 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 6173 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
(...skipping 30 matching lines...) Expand all Loading... |
6206 } | 6204 } |
6207 } | 6205 } |
6208 | 6206 |
6209 | 6207 |
6210 var h = { | 6208 var h = { |
6211 "content-type" : "application/json; charset=utf-8", | 6209 "content-type" : "application/json; charset=utf-8", |
6212 }; | 6210 }; |
6213 var resp = convert.JSON.encode(buildReportWorkItemStatusResponse()); | 6211 var resp = convert.JSON.encode(buildReportWorkItemStatusResponse()); |
6214 return new async.Future.value(stringResponse(200, h, resp)); | 6212 return new async.Future.value(stringResponse(200, h, resp)); |
6215 }), true); | 6213 }), true); |
6216 res.reportStatus(arg_request, arg_projectId, arg_jobId).then(unittest.expe
ctAsync(((api.ReportWorkItemStatusResponse response) { | 6214 res.reportStatus(arg_request, arg_projectId, arg_jobId).then(unittest.expe
ctAsync1(((api.ReportWorkItemStatusResponse response) { |
6217 checkReportWorkItemStatusResponse(response); | 6215 checkReportWorkItemStatusResponse(response); |
6218 }))); | 6216 }))); |
6219 }); | 6217 }); |
6220 | 6218 |
6221 }); | 6219 }); |
6222 | 6220 |
6223 | 6221 |
6224 unittest.group("resource-ProjectsLocationsResourceApi", () { | 6222 unittest.group("resource-ProjectsLocationsResourceApi", () { |
6225 unittest.test("method--workerMessages", () { | 6223 unittest.test("method--workerMessages", () { |
6226 | 6224 |
6227 var mock = new HttpServerMock(); | 6225 var mock = new HttpServerMock(); |
6228 api.ProjectsLocationsResourceApi res = new api.DataflowApi(mock).projects.
locations; | 6226 api.ProjectsLocationsResourceApi res = new api.DataflowApi(mock).projects.
locations; |
6229 var arg_request = buildSendWorkerMessagesRequest(); | 6227 var arg_request = buildSendWorkerMessagesRequest(); |
6230 var arg_projectId = "foo"; | 6228 var arg_projectId = "foo"; |
6231 var arg_location = "foo"; | 6229 var arg_location = "foo"; |
6232 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6230 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6233 var obj = new api.SendWorkerMessagesRequest.fromJson(json); | 6231 var obj = new api.SendWorkerMessagesRequest.fromJson(json); |
6234 checkSendWorkerMessagesRequest(obj); | 6232 checkSendWorkerMessagesRequest(obj); |
6235 | 6233 |
6236 var path = (req.url).path; | 6234 var path = (req.url).path; |
6237 var pathOffset = 0; | 6235 var pathOffset = 0; |
6238 var index; | 6236 var index; |
6239 var subPart; | 6237 var subPart; |
6240 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6238 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6241 pathOffset += 1; | 6239 pathOffset += 1; |
6242 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 6240 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
(...skipping 30 matching lines...) Expand all Loading... |
6273 } | 6271 } |
6274 } | 6272 } |
6275 | 6273 |
6276 | 6274 |
6277 var h = { | 6275 var h = { |
6278 "content-type" : "application/json; charset=utf-8", | 6276 "content-type" : "application/json; charset=utf-8", |
6279 }; | 6277 }; |
6280 var resp = convert.JSON.encode(buildSendWorkerMessagesResponse()); | 6278 var resp = convert.JSON.encode(buildSendWorkerMessagesResponse()); |
6281 return new async.Future.value(stringResponse(200, h, resp)); | 6279 return new async.Future.value(stringResponse(200, h, resp)); |
6282 }), true); | 6280 }), true); |
6283 res.workerMessages(arg_request, arg_projectId, arg_location).then(unittest
.expectAsync(((api.SendWorkerMessagesResponse response) { | 6281 res.workerMessages(arg_request, arg_projectId, arg_location).then(unittest
.expectAsync1(((api.SendWorkerMessagesResponse response) { |
6284 checkSendWorkerMessagesResponse(response); | 6282 checkSendWorkerMessagesResponse(response); |
6285 }))); | 6283 }))); |
6286 }); | 6284 }); |
6287 | 6285 |
6288 }); | 6286 }); |
6289 | 6287 |
6290 | 6288 |
6291 unittest.group("resource-ProjectsLocationsJobsResourceApi", () { | 6289 unittest.group("resource-ProjectsLocationsJobsResourceApi", () { |
6292 unittest.test("method--create", () { | 6290 unittest.test("method--create", () { |
6293 | 6291 |
6294 var mock = new HttpServerMock(); | 6292 var mock = new HttpServerMock(); |
6295 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje
cts.locations.jobs; | 6293 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje
cts.locations.jobs; |
6296 var arg_request = buildJob(); | 6294 var arg_request = buildJob(); |
6297 var arg_projectId = "foo"; | 6295 var arg_projectId = "foo"; |
6298 var arg_location = "foo"; | 6296 var arg_location = "foo"; |
6299 var arg_view = "foo"; | 6297 var arg_view = "foo"; |
6300 var arg_replaceJobId = "foo"; | 6298 var arg_replaceJobId = "foo"; |
6301 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6299 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6302 var obj = new api.Job.fromJson(json); | 6300 var obj = new api.Job.fromJson(json); |
6303 checkJob(obj); | 6301 checkJob(obj); |
6304 | 6302 |
6305 var path = (req.url).path; | 6303 var path = (req.url).path; |
6306 var pathOffset = 0; | 6304 var pathOffset = 0; |
6307 var index; | 6305 var index; |
6308 var subPart; | 6306 var subPart; |
6309 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6307 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6310 pathOffset += 1; | 6308 pathOffset += 1; |
6311 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 6309 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6344 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | 6342 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
6345 unittest.expect(queryMap["replaceJobId"].first, unittest.equals(arg_repl
aceJobId)); | 6343 unittest.expect(queryMap["replaceJobId"].first, unittest.equals(arg_repl
aceJobId)); |
6346 | 6344 |
6347 | 6345 |
6348 var h = { | 6346 var h = { |
6349 "content-type" : "application/json; charset=utf-8", | 6347 "content-type" : "application/json; charset=utf-8", |
6350 }; | 6348 }; |
6351 var resp = convert.JSON.encode(buildJob()); | 6349 var resp = convert.JSON.encode(buildJob()); |
6352 return new async.Future.value(stringResponse(200, h, resp)); | 6350 return new async.Future.value(stringResponse(200, h, resp)); |
6353 }), true); | 6351 }), true); |
6354 res.create(arg_request, arg_projectId, arg_location, view: arg_view, repla
ceJobId: arg_replaceJobId).then(unittest.expectAsync(((api.Job response) { | 6352 res.create(arg_request, arg_projectId, arg_location, view: arg_view, repla
ceJobId: arg_replaceJobId).then(unittest.expectAsync1(((api.Job response) { |
6355 checkJob(response); | 6353 checkJob(response); |
6356 }))); | 6354 }))); |
6357 }); | 6355 }); |
6358 | 6356 |
6359 unittest.test("method--get", () { | 6357 unittest.test("method--get", () { |
6360 | 6358 |
6361 var mock = new HttpServerMock(); | 6359 var mock = new HttpServerMock(); |
6362 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje
cts.locations.jobs; | 6360 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje
cts.locations.jobs; |
6363 var arg_projectId = "foo"; | 6361 var arg_projectId = "foo"; |
6364 var arg_location = "foo"; | 6362 var arg_location = "foo"; |
6365 var arg_jobId = "foo"; | 6363 var arg_jobId = "foo"; |
6366 var arg_view = "foo"; | 6364 var arg_view = "foo"; |
6367 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6365 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6368 var path = (req.url).path; | 6366 var path = (req.url).path; |
6369 var pathOffset = 0; | 6367 var pathOffset = 0; |
6370 var index; | 6368 var index; |
6371 var subPart; | 6369 var subPart; |
6372 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6370 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6373 pathOffset += 1; | 6371 pathOffset += 1; |
6374 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 6372 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
6375 pathOffset += 14; | 6373 pathOffset += 14; |
6376 index = path.indexOf("/locations/", pathOffset); | 6374 index = path.indexOf("/locations/", pathOffset); |
6377 unittest.expect(index >= 0, unittest.isTrue); | 6375 unittest.expect(index >= 0, unittest.isTrue); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6409 } | 6407 } |
6410 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | 6408 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
6411 | 6409 |
6412 | 6410 |
6413 var h = { | 6411 var h = { |
6414 "content-type" : "application/json; charset=utf-8", | 6412 "content-type" : "application/json; charset=utf-8", |
6415 }; | 6413 }; |
6416 var resp = convert.JSON.encode(buildJob()); | 6414 var resp = convert.JSON.encode(buildJob()); |
6417 return new async.Future.value(stringResponse(200, h, resp)); | 6415 return new async.Future.value(stringResponse(200, h, resp)); |
6418 }), true); | 6416 }), true); |
6419 res.get(arg_projectId, arg_location, arg_jobId, view: arg_view).then(unitt
est.expectAsync(((api.Job response) { | 6417 res.get(arg_projectId, arg_location, arg_jobId, view: arg_view).then(unitt
est.expectAsync1(((api.Job response) { |
6420 checkJob(response); | 6418 checkJob(response); |
6421 }))); | 6419 }))); |
6422 }); | 6420 }); |
6423 | 6421 |
6424 unittest.test("method--getMetrics", () { | 6422 unittest.test("method--getMetrics", () { |
6425 | 6423 |
6426 var mock = new HttpServerMock(); | 6424 var mock = new HttpServerMock(); |
6427 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje
cts.locations.jobs; | 6425 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje
cts.locations.jobs; |
6428 var arg_projectId = "foo"; | 6426 var arg_projectId = "foo"; |
6429 var arg_location = "foo"; | 6427 var arg_location = "foo"; |
6430 var arg_jobId = "foo"; | 6428 var arg_jobId = "foo"; |
6431 var arg_startTime = "foo"; | 6429 var arg_startTime = "foo"; |
6432 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6430 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6433 var path = (req.url).path; | 6431 var path = (req.url).path; |
6434 var pathOffset = 0; | 6432 var pathOffset = 0; |
6435 var index; | 6433 var index; |
6436 var subPart; | 6434 var subPart; |
6437 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6435 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6438 pathOffset += 1; | 6436 pathOffset += 1; |
6439 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 6437 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
6440 pathOffset += 14; | 6438 pathOffset += 14; |
6441 index = path.indexOf("/locations/", pathOffset); | 6439 index = path.indexOf("/locations/", pathOffset); |
6442 unittest.expect(index >= 0, unittest.isTrue); | 6440 unittest.expect(index >= 0, unittest.isTrue); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6478 } | 6476 } |
6479 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi
me)); | 6477 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi
me)); |
6480 | 6478 |
6481 | 6479 |
6482 var h = { | 6480 var h = { |
6483 "content-type" : "application/json; charset=utf-8", | 6481 "content-type" : "application/json; charset=utf-8", |
6484 }; | 6482 }; |
6485 var resp = convert.JSON.encode(buildJobMetrics()); | 6483 var resp = convert.JSON.encode(buildJobMetrics()); |
6486 return new async.Future.value(stringResponse(200, h, resp)); | 6484 return new async.Future.value(stringResponse(200, h, resp)); |
6487 }), true); | 6485 }), true); |
6488 res.getMetrics(arg_projectId, arg_location, arg_jobId, startTime: arg_star
tTime).then(unittest.expectAsync(((api.JobMetrics response) { | 6486 res.getMetrics(arg_projectId, arg_location, arg_jobId, startTime: arg_star
tTime).then(unittest.expectAsync1(((api.JobMetrics response) { |
6489 checkJobMetrics(response); | 6487 checkJobMetrics(response); |
6490 }))); | 6488 }))); |
6491 }); | 6489 }); |
6492 | 6490 |
6493 unittest.test("method--list", () { | 6491 unittest.test("method--list", () { |
6494 | 6492 |
6495 var mock = new HttpServerMock(); | 6493 var mock = new HttpServerMock(); |
6496 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje
cts.locations.jobs; | 6494 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje
cts.locations.jobs; |
6497 var arg_projectId = "foo"; | 6495 var arg_projectId = "foo"; |
6498 var arg_location = "foo"; | 6496 var arg_location = "foo"; |
6499 var arg_filter = "foo"; | |
6500 var arg_pageToken = "foo"; | 6497 var arg_pageToken = "foo"; |
6501 var arg_pageSize = 42; | 6498 var arg_pageSize = 42; |
6502 var arg_view = "foo"; | 6499 var arg_view = "foo"; |
6503 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6500 var arg_filter = "foo"; |
| 6501 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6504 var path = (req.url).path; | 6502 var path = (req.url).path; |
6505 var pathOffset = 0; | 6503 var pathOffset = 0; |
6506 var index; | 6504 var index; |
6507 var subPart; | 6505 var subPart; |
6508 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6506 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6509 pathOffset += 1; | 6507 pathOffset += 1; |
6510 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 6508 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
6511 pathOffset += 14; | 6509 pathOffset += 14; |
6512 index = path.indexOf("/locations/", pathOffset); | 6510 index = path.indexOf("/locations/", pathOffset); |
6513 unittest.expect(index >= 0, unittest.isTrue); | 6511 unittest.expect(index >= 0, unittest.isTrue); |
(...skipping 19 matching lines...) Expand all Loading... |
6533 if (n == "false") return false; | 6531 if (n == "false") return false; |
6534 if (n == null) return null; | 6532 if (n == null) return null; |
6535 throw new core.ArgumentError("Invalid boolean: $n"); | 6533 throw new core.ArgumentError("Invalid boolean: $n"); |
6536 } | 6534 } |
6537 if (query.length > 0) { | 6535 if (query.length > 0) { |
6538 for (var part in query.split("&")) { | 6536 for (var part in query.split("&")) { |
6539 var keyvalue = part.split("="); | 6537 var keyvalue = part.split("="); |
6540 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6538 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
6541 } | 6539 } |
6542 } | 6540 } |
6543 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
6544 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 6541 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
6545 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 6542 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
6546 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | 6543 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
| 6544 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
6547 | 6545 |
6548 | 6546 |
6549 var h = { | 6547 var h = { |
6550 "content-type" : "application/json; charset=utf-8", | 6548 "content-type" : "application/json; charset=utf-8", |
6551 }; | 6549 }; |
6552 var resp = convert.JSON.encode(buildListJobsResponse()); | 6550 var resp = convert.JSON.encode(buildListJobsResponse()); |
6553 return new async.Future.value(stringResponse(200, h, resp)); | 6551 return new async.Future.value(stringResponse(200, h, resp)); |
6554 }), true); | 6552 }), true); |
6555 res.list(arg_projectId, arg_location, filter: arg_filter, pageToken: arg_p
ageToken, pageSize: arg_pageSize, view: arg_view).then(unittest.expectAsync(((ap
i.ListJobsResponse response) { | 6553 res.list(arg_projectId, arg_location, pageToken: arg_pageToken, pageSize:
arg_pageSize, view: arg_view, filter: arg_filter).then(unittest.expectAsync1(((a
pi.ListJobsResponse response) { |
6556 checkListJobsResponse(response); | 6554 checkListJobsResponse(response); |
6557 }))); | 6555 }))); |
6558 }); | 6556 }); |
6559 | 6557 |
6560 unittest.test("method--update", () { | 6558 unittest.test("method--update", () { |
6561 | 6559 |
6562 var mock = new HttpServerMock(); | 6560 var mock = new HttpServerMock(); |
6563 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje
cts.locations.jobs; | 6561 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje
cts.locations.jobs; |
6564 var arg_request = buildJob(); | 6562 var arg_request = buildJob(); |
6565 var arg_projectId = "foo"; | 6563 var arg_projectId = "foo"; |
6566 var arg_location = "foo"; | 6564 var arg_location = "foo"; |
6567 var arg_jobId = "foo"; | 6565 var arg_jobId = "foo"; |
6568 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6566 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6569 var obj = new api.Job.fromJson(json); | 6567 var obj = new api.Job.fromJson(json); |
6570 checkJob(obj); | 6568 checkJob(obj); |
6571 | 6569 |
6572 var path = (req.url).path; | 6570 var path = (req.url).path; |
6573 var pathOffset = 0; | 6571 var pathOffset = 0; |
6574 var index; | 6572 var index; |
6575 var subPart; | 6573 var subPart; |
6576 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6574 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6577 pathOffset += 1; | 6575 pathOffset += 1; |
6578 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 6576 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6612 } | 6610 } |
6613 } | 6611 } |
6614 | 6612 |
6615 | 6613 |
6616 var h = { | 6614 var h = { |
6617 "content-type" : "application/json; charset=utf-8", | 6615 "content-type" : "application/json; charset=utf-8", |
6618 }; | 6616 }; |
6619 var resp = convert.JSON.encode(buildJob()); | 6617 var resp = convert.JSON.encode(buildJob()); |
6620 return new async.Future.value(stringResponse(200, h, resp)); | 6618 return new async.Future.value(stringResponse(200, h, resp)); |
6621 }), true); | 6619 }), true); |
6622 res.update(arg_request, arg_projectId, arg_location, arg_jobId).then(unitt
est.expectAsync(((api.Job response) { | 6620 res.update(arg_request, arg_projectId, arg_location, arg_jobId).then(unitt
est.expectAsync1(((api.Job response) { |
6623 checkJob(response); | 6621 checkJob(response); |
6624 }))); | 6622 }))); |
6625 }); | 6623 }); |
6626 | 6624 |
6627 }); | 6625 }); |
6628 | 6626 |
6629 | 6627 |
6630 unittest.group("resource-ProjectsLocationsJobsDebugResourceApi", () { | 6628 unittest.group("resource-ProjectsLocationsJobsDebugResourceApi", () { |
6631 unittest.test("method--getConfig", () { | 6629 unittest.test("method--getConfig", () { |
6632 | 6630 |
6633 var mock = new HttpServerMock(); | 6631 var mock = new HttpServerMock(); |
6634 api.ProjectsLocationsJobsDebugResourceApi res = new api.DataflowApi(mock).
projects.locations.jobs.debug; | 6632 api.ProjectsLocationsJobsDebugResourceApi res = new api.DataflowApi(mock).
projects.locations.jobs.debug; |
6635 var arg_request = buildGetDebugConfigRequest(); | 6633 var arg_request = buildGetDebugConfigRequest(); |
6636 var arg_projectId = "foo"; | 6634 var arg_projectId = "foo"; |
6637 var arg_location = "foo"; | 6635 var arg_location = "foo"; |
6638 var arg_jobId = "foo"; | 6636 var arg_jobId = "foo"; |
6639 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6637 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6640 var obj = new api.GetDebugConfigRequest.fromJson(json); | 6638 var obj = new api.GetDebugConfigRequest.fromJson(json); |
6641 checkGetDebugConfigRequest(obj); | 6639 checkGetDebugConfigRequest(obj); |
6642 | 6640 |
6643 var path = (req.url).path; | 6641 var path = (req.url).path; |
6644 var pathOffset = 0; | 6642 var pathOffset = 0; |
6645 var index; | 6643 var index; |
6646 var subPart; | 6644 var subPart; |
6647 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6645 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6648 pathOffset += 1; | 6646 pathOffset += 1; |
6649 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 6647 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6687 } | 6685 } |
6688 } | 6686 } |
6689 | 6687 |
6690 | 6688 |
6691 var h = { | 6689 var h = { |
6692 "content-type" : "application/json; charset=utf-8", | 6690 "content-type" : "application/json; charset=utf-8", |
6693 }; | 6691 }; |
6694 var resp = convert.JSON.encode(buildGetDebugConfigResponse()); | 6692 var resp = convert.JSON.encode(buildGetDebugConfigResponse()); |
6695 return new async.Future.value(stringResponse(200, h, resp)); | 6693 return new async.Future.value(stringResponse(200, h, resp)); |
6696 }), true); | 6694 }), true); |
6697 res.getConfig(arg_request, arg_projectId, arg_location, arg_jobId).then(un
ittest.expectAsync(((api.GetDebugConfigResponse response) { | 6695 res.getConfig(arg_request, arg_projectId, arg_location, arg_jobId).then(un
ittest.expectAsync1(((api.GetDebugConfigResponse response) { |
6698 checkGetDebugConfigResponse(response); | 6696 checkGetDebugConfigResponse(response); |
6699 }))); | 6697 }))); |
6700 }); | 6698 }); |
6701 | 6699 |
6702 unittest.test("method--sendCapture", () { | 6700 unittest.test("method--sendCapture", () { |
6703 | 6701 |
6704 var mock = new HttpServerMock(); | 6702 var mock = new HttpServerMock(); |
6705 api.ProjectsLocationsJobsDebugResourceApi res = new api.DataflowApi(mock).
projects.locations.jobs.debug; | 6703 api.ProjectsLocationsJobsDebugResourceApi res = new api.DataflowApi(mock).
projects.locations.jobs.debug; |
6706 var arg_request = buildSendDebugCaptureRequest(); | 6704 var arg_request = buildSendDebugCaptureRequest(); |
6707 var arg_projectId = "foo"; | 6705 var arg_projectId = "foo"; |
6708 var arg_location = "foo"; | 6706 var arg_location = "foo"; |
6709 var arg_jobId = "foo"; | 6707 var arg_jobId = "foo"; |
6710 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6708 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6711 var obj = new api.SendDebugCaptureRequest.fromJson(json); | 6709 var obj = new api.SendDebugCaptureRequest.fromJson(json); |
6712 checkSendDebugCaptureRequest(obj); | 6710 checkSendDebugCaptureRequest(obj); |
6713 | 6711 |
6714 var path = (req.url).path; | 6712 var path = (req.url).path; |
6715 var pathOffset = 0; | 6713 var pathOffset = 0; |
6716 var index; | 6714 var index; |
6717 var subPart; | 6715 var subPart; |
6718 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6716 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6719 pathOffset += 1; | 6717 pathOffset += 1; |
6720 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 6718 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6758 } | 6756 } |
6759 } | 6757 } |
6760 | 6758 |
6761 | 6759 |
6762 var h = { | 6760 var h = { |
6763 "content-type" : "application/json; charset=utf-8", | 6761 "content-type" : "application/json; charset=utf-8", |
6764 }; | 6762 }; |
6765 var resp = convert.JSON.encode(buildSendDebugCaptureResponse()); | 6763 var resp = convert.JSON.encode(buildSendDebugCaptureResponse()); |
6766 return new async.Future.value(stringResponse(200, h, resp)); | 6764 return new async.Future.value(stringResponse(200, h, resp)); |
6767 }), true); | 6765 }), true); |
6768 res.sendCapture(arg_request, arg_projectId, arg_location, arg_jobId).then(
unittest.expectAsync(((api.SendDebugCaptureResponse response) { | 6766 res.sendCapture(arg_request, arg_projectId, arg_location, arg_jobId).then(
unittest.expectAsync1(((api.SendDebugCaptureResponse response) { |
6769 checkSendDebugCaptureResponse(response); | 6767 checkSendDebugCaptureResponse(response); |
6770 }))); | 6768 }))); |
6771 }); | 6769 }); |
6772 | 6770 |
6773 }); | 6771 }); |
6774 | 6772 |
6775 | 6773 |
6776 unittest.group("resource-ProjectsLocationsJobsMessagesResourceApi", () { | 6774 unittest.group("resource-ProjectsLocationsJobsMessagesResourceApi", () { |
6777 unittest.test("method--list", () { | 6775 unittest.test("method--list", () { |
6778 | 6776 |
6779 var mock = new HttpServerMock(); | 6777 var mock = new HttpServerMock(); |
6780 api.ProjectsLocationsJobsMessagesResourceApi res = new api.DataflowApi(moc
k).projects.locations.jobs.messages; | 6778 api.ProjectsLocationsJobsMessagesResourceApi res = new api.DataflowApi(moc
k).projects.locations.jobs.messages; |
6781 var arg_projectId = "foo"; | 6779 var arg_projectId = "foo"; |
6782 var arg_location = "foo"; | 6780 var arg_location = "foo"; |
6783 var arg_jobId = "foo"; | 6781 var arg_jobId = "foo"; |
6784 var arg_endTime = "foo"; | |
6785 var arg_startTime = "foo"; | 6782 var arg_startTime = "foo"; |
6786 var arg_pageToken = "foo"; | 6783 var arg_pageToken = "foo"; |
6787 var arg_pageSize = 42; | 6784 var arg_pageSize = 42; |
6788 var arg_minimumImportance = "foo"; | 6785 var arg_minimumImportance = "foo"; |
6789 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6786 var arg_endTime = "foo"; |
| 6787 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6790 var path = (req.url).path; | 6788 var path = (req.url).path; |
6791 var pathOffset = 0; | 6789 var pathOffset = 0; |
6792 var index; | 6790 var index; |
6793 var subPart; | 6791 var subPart; |
6794 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6792 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6795 pathOffset += 1; | 6793 pathOffset += 1; |
6796 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 6794 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
6797 pathOffset += 14; | 6795 pathOffset += 14; |
6798 index = path.indexOf("/locations/", pathOffset); | 6796 index = path.indexOf("/locations/", pathOffset); |
6799 unittest.expect(index >= 0, unittest.isTrue); | 6797 unittest.expect(index >= 0, unittest.isTrue); |
(...skipping 26 matching lines...) Expand all Loading... |
6826 if (n == "false") return false; | 6824 if (n == "false") return false; |
6827 if (n == null) return null; | 6825 if (n == null) return null; |
6828 throw new core.ArgumentError("Invalid boolean: $n"); | 6826 throw new core.ArgumentError("Invalid boolean: $n"); |
6829 } | 6827 } |
6830 if (query.length > 0) { | 6828 if (query.length > 0) { |
6831 for (var part in query.split("&")) { | 6829 for (var part in query.split("&")) { |
6832 var keyvalue = part.split("="); | 6830 var keyvalue = part.split("="); |
6833 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6831 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
6834 } | 6832 } |
6835 } | 6833 } |
6836 unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime))
; | |
6837 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi
me)); | 6834 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi
me)); |
6838 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 6835 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
6839 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 6836 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
6840 unittest.expect(queryMap["minimumImportance"].first, unittest.equals(arg
_minimumImportance)); | 6837 unittest.expect(queryMap["minimumImportance"].first, unittest.equals(arg
_minimumImportance)); |
| 6838 unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime))
; |
6841 | 6839 |
6842 | 6840 |
6843 var h = { | 6841 var h = { |
6844 "content-type" : "application/json; charset=utf-8", | 6842 "content-type" : "application/json; charset=utf-8", |
6845 }; | 6843 }; |
6846 var resp = convert.JSON.encode(buildListJobMessagesResponse()); | 6844 var resp = convert.JSON.encode(buildListJobMessagesResponse()); |
6847 return new async.Future.value(stringResponse(200, h, resp)); | 6845 return new async.Future.value(stringResponse(200, h, resp)); |
6848 }), true); | 6846 }), true); |
6849 res.list(arg_projectId, arg_location, arg_jobId, endTime: arg_endTime, sta
rtTime: arg_startTime, pageToken: arg_pageToken, pageSize: arg_pageSize, minimum
Importance: arg_minimumImportance).then(unittest.expectAsync(((api.ListJobMessag
esResponse response) { | 6847 res.list(arg_projectId, arg_location, arg_jobId, startTime: arg_startTime,
pageToken: arg_pageToken, pageSize: arg_pageSize, minimumImportance: arg_minimu
mImportance, endTime: arg_endTime).then(unittest.expectAsync1(((api.ListJobMessa
gesResponse response) { |
6850 checkListJobMessagesResponse(response); | 6848 checkListJobMessagesResponse(response); |
6851 }))); | 6849 }))); |
6852 }); | 6850 }); |
6853 | 6851 |
6854 }); | 6852 }); |
6855 | 6853 |
6856 | 6854 |
6857 unittest.group("resource-ProjectsLocationsJobsWorkItemsResourceApi", () { | 6855 unittest.group("resource-ProjectsLocationsJobsWorkItemsResourceApi", () { |
6858 unittest.test("method--lease", () { | 6856 unittest.test("method--lease", () { |
6859 | 6857 |
6860 var mock = new HttpServerMock(); | 6858 var mock = new HttpServerMock(); |
6861 api.ProjectsLocationsJobsWorkItemsResourceApi res = new api.DataflowApi(mo
ck).projects.locations.jobs.workItems; | 6859 api.ProjectsLocationsJobsWorkItemsResourceApi res = new api.DataflowApi(mo
ck).projects.locations.jobs.workItems; |
6862 var arg_request = buildLeaseWorkItemRequest(); | 6860 var arg_request = buildLeaseWorkItemRequest(); |
6863 var arg_projectId = "foo"; | 6861 var arg_projectId = "foo"; |
6864 var arg_location = "foo"; | 6862 var arg_location = "foo"; |
6865 var arg_jobId = "foo"; | 6863 var arg_jobId = "foo"; |
6866 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6864 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6867 var obj = new api.LeaseWorkItemRequest.fromJson(json); | 6865 var obj = new api.LeaseWorkItemRequest.fromJson(json); |
6868 checkLeaseWorkItemRequest(obj); | 6866 checkLeaseWorkItemRequest(obj); |
6869 | 6867 |
6870 var path = (req.url).path; | 6868 var path = (req.url).path; |
6871 var pathOffset = 0; | 6869 var pathOffset = 0; |
6872 var index; | 6870 var index; |
6873 var subPart; | 6871 var subPart; |
6874 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6872 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6875 pathOffset += 1; | 6873 pathOffset += 1; |
6876 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 6874 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6914 } | 6912 } |
6915 } | 6913 } |
6916 | 6914 |
6917 | 6915 |
6918 var h = { | 6916 var h = { |
6919 "content-type" : "application/json; charset=utf-8", | 6917 "content-type" : "application/json; charset=utf-8", |
6920 }; | 6918 }; |
6921 var resp = convert.JSON.encode(buildLeaseWorkItemResponse()); | 6919 var resp = convert.JSON.encode(buildLeaseWorkItemResponse()); |
6922 return new async.Future.value(stringResponse(200, h, resp)); | 6920 return new async.Future.value(stringResponse(200, h, resp)); |
6923 }), true); | 6921 }), true); |
6924 res.lease(arg_request, arg_projectId, arg_location, arg_jobId).then(unitte
st.expectAsync(((api.LeaseWorkItemResponse response) { | 6922 res.lease(arg_request, arg_projectId, arg_location, arg_jobId).then(unitte
st.expectAsync1(((api.LeaseWorkItemResponse response) { |
6925 checkLeaseWorkItemResponse(response); | 6923 checkLeaseWorkItemResponse(response); |
6926 }))); | 6924 }))); |
6927 }); | 6925 }); |
6928 | 6926 |
6929 unittest.test("method--reportStatus", () { | 6927 unittest.test("method--reportStatus", () { |
6930 | 6928 |
6931 var mock = new HttpServerMock(); | 6929 var mock = new HttpServerMock(); |
6932 api.ProjectsLocationsJobsWorkItemsResourceApi res = new api.DataflowApi(mo
ck).projects.locations.jobs.workItems; | 6930 api.ProjectsLocationsJobsWorkItemsResourceApi res = new api.DataflowApi(mo
ck).projects.locations.jobs.workItems; |
6933 var arg_request = buildReportWorkItemStatusRequest(); | 6931 var arg_request = buildReportWorkItemStatusRequest(); |
6934 var arg_projectId = "foo"; | 6932 var arg_projectId = "foo"; |
6935 var arg_location = "foo"; | 6933 var arg_location = "foo"; |
6936 var arg_jobId = "foo"; | 6934 var arg_jobId = "foo"; |
6937 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6935 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6938 var obj = new api.ReportWorkItemStatusRequest.fromJson(json); | 6936 var obj = new api.ReportWorkItemStatusRequest.fromJson(json); |
6939 checkReportWorkItemStatusRequest(obj); | 6937 checkReportWorkItemStatusRequest(obj); |
6940 | 6938 |
6941 var path = (req.url).path; | 6939 var path = (req.url).path; |
6942 var pathOffset = 0; | 6940 var pathOffset = 0; |
6943 var index; | 6941 var index; |
6944 var subPart; | 6942 var subPart; |
6945 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6943 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6946 pathOffset += 1; | 6944 pathOffset += 1; |
6947 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 6945 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6985 } | 6983 } |
6986 } | 6984 } |
6987 | 6985 |
6988 | 6986 |
6989 var h = { | 6987 var h = { |
6990 "content-type" : "application/json; charset=utf-8", | 6988 "content-type" : "application/json; charset=utf-8", |
6991 }; | 6989 }; |
6992 var resp = convert.JSON.encode(buildReportWorkItemStatusResponse()); | 6990 var resp = convert.JSON.encode(buildReportWorkItemStatusResponse()); |
6993 return new async.Future.value(stringResponse(200, h, resp)); | 6991 return new async.Future.value(stringResponse(200, h, resp)); |
6994 }), true); | 6992 }), true); |
6995 res.reportStatus(arg_request, arg_projectId, arg_location, arg_jobId).then
(unittest.expectAsync(((api.ReportWorkItemStatusResponse response) { | 6993 res.reportStatus(arg_request, arg_projectId, arg_location, arg_jobId).then
(unittest.expectAsync1(((api.ReportWorkItemStatusResponse response) { |
6996 checkReportWorkItemStatusResponse(response); | 6994 checkReportWorkItemStatusResponse(response); |
6997 }))); | 6995 }))); |
6998 }); | 6996 }); |
6999 | 6997 |
7000 }); | 6998 }); |
7001 | 6999 |
7002 | 7000 |
7003 unittest.group("resource-ProjectsLocationsTemplatesResourceApi", () { | 7001 unittest.group("resource-ProjectsLocationsTemplatesResourceApi", () { |
7004 unittest.test("method--create", () { | 7002 unittest.test("method--create", () { |
7005 | 7003 |
7006 var mock = new HttpServerMock(); | 7004 var mock = new HttpServerMock(); |
7007 api.ProjectsLocationsTemplatesResourceApi res = new api.DataflowApi(mock).
projects.locations.templates; | 7005 api.ProjectsLocationsTemplatesResourceApi res = new api.DataflowApi(mock).
projects.locations.templates; |
7008 var arg_request = buildCreateJobFromTemplateRequest(); | 7006 var arg_request = buildCreateJobFromTemplateRequest(); |
7009 var arg_projectId = "foo"; | 7007 var arg_projectId = "foo"; |
7010 var arg_location = "foo"; | 7008 var arg_location = "foo"; |
7011 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7009 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
7012 var obj = new api.CreateJobFromTemplateRequest.fromJson(json); | 7010 var obj = new api.CreateJobFromTemplateRequest.fromJson(json); |
7013 checkCreateJobFromTemplateRequest(obj); | 7011 checkCreateJobFromTemplateRequest(obj); |
7014 | 7012 |
7015 var path = (req.url).path; | 7013 var path = (req.url).path; |
7016 var pathOffset = 0; | 7014 var pathOffset = 0; |
7017 var index; | 7015 var index; |
7018 var subPart; | 7016 var subPart; |
7019 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7017 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7020 pathOffset += 1; | 7018 pathOffset += 1; |
7021 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 7019 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
(...skipping 30 matching lines...) Expand all Loading... |
7052 } | 7050 } |
7053 } | 7051 } |
7054 | 7052 |
7055 | 7053 |
7056 var h = { | 7054 var h = { |
7057 "content-type" : "application/json; charset=utf-8", | 7055 "content-type" : "application/json; charset=utf-8", |
7058 }; | 7056 }; |
7059 var resp = convert.JSON.encode(buildJob()); | 7057 var resp = convert.JSON.encode(buildJob()); |
7060 return new async.Future.value(stringResponse(200, h, resp)); | 7058 return new async.Future.value(stringResponse(200, h, resp)); |
7061 }), true); | 7059 }), true); |
7062 res.create(arg_request, arg_projectId, arg_location).then(unittest.expectA
sync(((api.Job response) { | 7060 res.create(arg_request, arg_projectId, arg_location).then(unittest.expectA
sync1(((api.Job response) { |
7063 checkJob(response); | 7061 checkJob(response); |
7064 }))); | 7062 }))); |
7065 }); | 7063 }); |
7066 | 7064 |
7067 unittest.test("method--get", () { | 7065 unittest.test("method--get", () { |
7068 | 7066 |
7069 var mock = new HttpServerMock(); | 7067 var mock = new HttpServerMock(); |
7070 api.ProjectsLocationsTemplatesResourceApi res = new api.DataflowApi(mock).
projects.locations.templates; | 7068 api.ProjectsLocationsTemplatesResourceApi res = new api.DataflowApi(mock).
projects.locations.templates; |
7071 var arg_projectId = "foo"; | 7069 var arg_projectId = "foo"; |
7072 var arg_location = "foo"; | 7070 var arg_location = "foo"; |
7073 var arg_view = "foo"; | 7071 var arg_view = "foo"; |
7074 var arg_gcsPath = "foo"; | 7072 var arg_gcsPath = "foo"; |
7075 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7073 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
7076 var path = (req.url).path; | 7074 var path = (req.url).path; |
7077 var pathOffset = 0; | 7075 var pathOffset = 0; |
7078 var index; | 7076 var index; |
7079 var subPart; | 7077 var subPart; |
7080 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7078 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7081 pathOffset += 1; | 7079 pathOffset += 1; |
7082 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 7080 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
7083 pathOffset += 14; | 7081 pathOffset += 14; |
7084 index = path.indexOf("/locations/", pathOffset); | 7082 index = path.indexOf("/locations/", pathOffset); |
7085 unittest.expect(index >= 0, unittest.isTrue); | 7083 unittest.expect(index >= 0, unittest.isTrue); |
(...skipping 29 matching lines...) Expand all Loading... |
7115 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | 7113 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
7116 unittest.expect(queryMap["gcsPath"].first, unittest.equals(arg_gcsPath))
; | 7114 unittest.expect(queryMap["gcsPath"].first, unittest.equals(arg_gcsPath))
; |
7117 | 7115 |
7118 | 7116 |
7119 var h = { | 7117 var h = { |
7120 "content-type" : "application/json; charset=utf-8", | 7118 "content-type" : "application/json; charset=utf-8", |
7121 }; | 7119 }; |
7122 var resp = convert.JSON.encode(buildGetTemplateResponse()); | 7120 var resp = convert.JSON.encode(buildGetTemplateResponse()); |
7123 return new async.Future.value(stringResponse(200, h, resp)); | 7121 return new async.Future.value(stringResponse(200, h, resp)); |
7124 }), true); | 7122 }), true); |
7125 res.get(arg_projectId, arg_location, view: arg_view, gcsPath: arg_gcsPath)
.then(unittest.expectAsync(((api.GetTemplateResponse response) { | 7123 res.get(arg_projectId, arg_location, view: arg_view, gcsPath: arg_gcsPath)
.then(unittest.expectAsync1(((api.GetTemplateResponse response) { |
7126 checkGetTemplateResponse(response); | 7124 checkGetTemplateResponse(response); |
7127 }))); | 7125 }))); |
7128 }); | 7126 }); |
7129 | 7127 |
7130 unittest.test("method--launch", () { | 7128 unittest.test("method--launch", () { |
7131 | 7129 |
7132 var mock = new HttpServerMock(); | 7130 var mock = new HttpServerMock(); |
7133 api.ProjectsLocationsTemplatesResourceApi res = new api.DataflowApi(mock).
projects.locations.templates; | 7131 api.ProjectsLocationsTemplatesResourceApi res = new api.DataflowApi(mock).
projects.locations.templates; |
7134 var arg_request = buildLaunchTemplateParameters(); | 7132 var arg_request = buildLaunchTemplateParameters(); |
7135 var arg_projectId = "foo"; | 7133 var arg_projectId = "foo"; |
7136 var arg_location = "foo"; | 7134 var arg_location = "foo"; |
| 7135 var arg_gcsPath = "foo"; |
7137 var arg_validateOnly = true; | 7136 var arg_validateOnly = true; |
7138 var arg_gcsPath = "foo"; | 7137 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
7139 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
7140 var obj = new api.LaunchTemplateParameters.fromJson(json); | 7138 var obj = new api.LaunchTemplateParameters.fromJson(json); |
7141 checkLaunchTemplateParameters(obj); | 7139 checkLaunchTemplateParameters(obj); |
7142 | 7140 |
7143 var path = (req.url).path; | 7141 var path = (req.url).path; |
7144 var pathOffset = 0; | 7142 var pathOffset = 0; |
7145 var index; | 7143 var index; |
7146 var subPart; | 7144 var subPart; |
7147 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7145 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7148 pathOffset += 1; | 7146 pathOffset += 1; |
7149 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 7147 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
(...skipping 22 matching lines...) Expand all Loading... |
7172 if (n == "false") return false; | 7170 if (n == "false") return false; |
7173 if (n == null) return null; | 7171 if (n == null) return null; |
7174 throw new core.ArgumentError("Invalid boolean: $n"); | 7172 throw new core.ArgumentError("Invalid boolean: $n"); |
7175 } | 7173 } |
7176 if (query.length > 0) { | 7174 if (query.length > 0) { |
7177 for (var part in query.split("&")) { | 7175 for (var part in query.split("&")) { |
7178 var keyvalue = part.split("="); | 7176 var keyvalue = part.split("="); |
7179 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7177 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
7180 } | 7178 } |
7181 } | 7179 } |
| 7180 unittest.expect(queryMap["gcsPath"].first, unittest.equals(arg_gcsPath))
; |
7182 unittest.expect(queryMap["validateOnly"].first, unittest.equals("$arg_va
lidateOnly")); | 7181 unittest.expect(queryMap["validateOnly"].first, unittest.equals("$arg_va
lidateOnly")); |
7183 unittest.expect(queryMap["gcsPath"].first, unittest.equals(arg_gcsPath))
; | |
7184 | 7182 |
7185 | 7183 |
7186 var h = { | 7184 var h = { |
7187 "content-type" : "application/json; charset=utf-8", | 7185 "content-type" : "application/json; charset=utf-8", |
7188 }; | 7186 }; |
7189 var resp = convert.JSON.encode(buildLaunchTemplateResponse()); | 7187 var resp = convert.JSON.encode(buildLaunchTemplateResponse()); |
7190 return new async.Future.value(stringResponse(200, h, resp)); | 7188 return new async.Future.value(stringResponse(200, h, resp)); |
7191 }), true); | 7189 }), true); |
7192 res.launch(arg_request, arg_projectId, arg_location, validateOnly: arg_val
idateOnly, gcsPath: arg_gcsPath).then(unittest.expectAsync(((api.LaunchTemplateR
esponse response) { | 7190 res.launch(arg_request, arg_projectId, arg_location, gcsPath: arg_gcsPath,
validateOnly: arg_validateOnly).then(unittest.expectAsync1(((api.LaunchTemplate
Response response) { |
7193 checkLaunchTemplateResponse(response); | 7191 checkLaunchTemplateResponse(response); |
7194 }))); | 7192 }))); |
7195 }); | 7193 }); |
7196 | 7194 |
7197 }); | 7195 }); |
7198 | 7196 |
7199 | 7197 |
7200 unittest.group("resource-ProjectsTemplatesResourceApi", () { | 7198 unittest.group("resource-ProjectsTemplatesResourceApi", () { |
7201 unittest.test("method--create", () { | 7199 unittest.test("method--create", () { |
7202 | 7200 |
7203 var mock = new HttpServerMock(); | 7201 var mock = new HttpServerMock(); |
7204 api.ProjectsTemplatesResourceApi res = new api.DataflowApi(mock).projects.
templates; | 7202 api.ProjectsTemplatesResourceApi res = new api.DataflowApi(mock).projects.
templates; |
7205 var arg_request = buildCreateJobFromTemplateRequest(); | 7203 var arg_request = buildCreateJobFromTemplateRequest(); |
7206 var arg_projectId = "foo"; | 7204 var arg_projectId = "foo"; |
7207 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7205 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
7208 var obj = new api.CreateJobFromTemplateRequest.fromJson(json); | 7206 var obj = new api.CreateJobFromTemplateRequest.fromJson(json); |
7209 checkCreateJobFromTemplateRequest(obj); | 7207 checkCreateJobFromTemplateRequest(obj); |
7210 | 7208 |
7211 var path = (req.url).path; | 7209 var path = (req.url).path; |
7212 var pathOffset = 0; | 7210 var pathOffset = 0; |
7213 var index; | 7211 var index; |
7214 var subPart; | 7212 var subPart; |
7215 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7213 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7216 pathOffset += 1; | 7214 pathOffset += 1; |
7217 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 7215 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
(...skipping 23 matching lines...) Expand all Loading... |
7241 } | 7239 } |
7242 } | 7240 } |
7243 | 7241 |
7244 | 7242 |
7245 var h = { | 7243 var h = { |
7246 "content-type" : "application/json; charset=utf-8", | 7244 "content-type" : "application/json; charset=utf-8", |
7247 }; | 7245 }; |
7248 var resp = convert.JSON.encode(buildJob()); | 7246 var resp = convert.JSON.encode(buildJob()); |
7249 return new async.Future.value(stringResponse(200, h, resp)); | 7247 return new async.Future.value(stringResponse(200, h, resp)); |
7250 }), true); | 7248 }), true); |
7251 res.create(arg_request, arg_projectId).then(unittest.expectAsync(((api.Job
response) { | 7249 res.create(arg_request, arg_projectId).then(unittest.expectAsync1(((api.Jo
b response) { |
7252 checkJob(response); | 7250 checkJob(response); |
7253 }))); | 7251 }))); |
7254 }); | 7252 }); |
7255 | 7253 |
7256 unittest.test("method--get", () { | 7254 unittest.test("method--get", () { |
7257 | 7255 |
7258 var mock = new HttpServerMock(); | 7256 var mock = new HttpServerMock(); |
7259 api.ProjectsTemplatesResourceApi res = new api.DataflowApi(mock).projects.
templates; | 7257 api.ProjectsTemplatesResourceApi res = new api.DataflowApi(mock).projects.
templates; |
7260 var arg_projectId = "foo"; | 7258 var arg_projectId = "foo"; |
| 7259 var arg_location = "foo"; |
7261 var arg_view = "foo"; | 7260 var arg_view = "foo"; |
7262 var arg_gcsPath = "foo"; | 7261 var arg_gcsPath = "foo"; |
7263 var arg_location = "foo"; | 7262 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
7264 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
7265 var path = (req.url).path; | 7263 var path = (req.url).path; |
7266 var pathOffset = 0; | 7264 var pathOffset = 0; |
7267 var index; | 7265 var index; |
7268 var subPart; | 7266 var subPart; |
7269 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7267 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7270 pathOffset += 1; | 7268 pathOffset += 1; |
7271 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 7269 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
7272 pathOffset += 14; | 7270 pathOffset += 14; |
7273 index = path.indexOf("/templates:get", pathOffset); | 7271 index = path.indexOf("/templates:get", pathOffset); |
7274 unittest.expect(index >= 0, unittest.isTrue); | 7272 unittest.expect(index >= 0, unittest.isTrue); |
(...skipping 12 matching lines...) Expand all Loading... |
7287 if (n == "false") return false; | 7285 if (n == "false") return false; |
7288 if (n == null) return null; | 7286 if (n == null) return null; |
7289 throw new core.ArgumentError("Invalid boolean: $n"); | 7287 throw new core.ArgumentError("Invalid boolean: $n"); |
7290 } | 7288 } |
7291 if (query.length > 0) { | 7289 if (query.length > 0) { |
7292 for (var part in query.split("&")) { | 7290 for (var part in query.split("&")) { |
7293 var keyvalue = part.split("="); | 7291 var keyvalue = part.split("="); |
7294 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7292 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
7295 } | 7293 } |
7296 } | 7294 } |
| 7295 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); |
7297 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | 7296 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
7298 unittest.expect(queryMap["gcsPath"].first, unittest.equals(arg_gcsPath))
; | 7297 unittest.expect(queryMap["gcsPath"].first, unittest.equals(arg_gcsPath))
; |
7299 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); | |
7300 | 7298 |
7301 | 7299 |
7302 var h = { | 7300 var h = { |
7303 "content-type" : "application/json; charset=utf-8", | 7301 "content-type" : "application/json; charset=utf-8", |
7304 }; | 7302 }; |
7305 var resp = convert.JSON.encode(buildGetTemplateResponse()); | 7303 var resp = convert.JSON.encode(buildGetTemplateResponse()); |
7306 return new async.Future.value(stringResponse(200, h, resp)); | 7304 return new async.Future.value(stringResponse(200, h, resp)); |
7307 }), true); | 7305 }), true); |
7308 res.get(arg_projectId, view: arg_view, gcsPath: arg_gcsPath, location: arg
_location).then(unittest.expectAsync(((api.GetTemplateResponse response) { | 7306 res.get(arg_projectId, location: arg_location, view: arg_view, gcsPath: ar
g_gcsPath).then(unittest.expectAsync1(((api.GetTemplateResponse response) { |
7309 checkGetTemplateResponse(response); | 7307 checkGetTemplateResponse(response); |
7310 }))); | 7308 }))); |
7311 }); | 7309 }); |
7312 | 7310 |
7313 unittest.test("method--launch", () { | 7311 unittest.test("method--launch", () { |
7314 | 7312 |
7315 var mock = new HttpServerMock(); | 7313 var mock = new HttpServerMock(); |
7316 api.ProjectsTemplatesResourceApi res = new api.DataflowApi(mock).projects.
templates; | 7314 api.ProjectsTemplatesResourceApi res = new api.DataflowApi(mock).projects.
templates; |
7317 var arg_request = buildLaunchTemplateParameters(); | 7315 var arg_request = buildLaunchTemplateParameters(); |
7318 var arg_projectId = "foo"; | 7316 var arg_projectId = "foo"; |
7319 var arg_location = "foo"; | 7317 var arg_location = "foo"; |
7320 var arg_validateOnly = true; | 7318 var arg_validateOnly = true; |
7321 var arg_gcsPath = "foo"; | 7319 var arg_gcsPath = "foo"; |
7322 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7320 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
7323 var obj = new api.LaunchTemplateParameters.fromJson(json); | 7321 var obj = new api.LaunchTemplateParameters.fromJson(json); |
7324 checkLaunchTemplateParameters(obj); | 7322 checkLaunchTemplateParameters(obj); |
7325 | 7323 |
7326 var path = (req.url).path; | 7324 var path = (req.url).path; |
7327 var pathOffset = 0; | 7325 var pathOffset = 0; |
7328 var index; | 7326 var index; |
7329 var subPart; | 7327 var subPart; |
7330 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7328 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
7331 pathOffset += 1; | 7329 pathOffset += 1; |
7332 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 7330 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
(...skipping 26 matching lines...) Expand all Loading... |
7359 unittest.expect(queryMap["validateOnly"].first, unittest.equals("$arg_va
lidateOnly")); | 7357 unittest.expect(queryMap["validateOnly"].first, unittest.equals("$arg_va
lidateOnly")); |
7360 unittest.expect(queryMap["gcsPath"].first, unittest.equals(arg_gcsPath))
; | 7358 unittest.expect(queryMap["gcsPath"].first, unittest.equals(arg_gcsPath))
; |
7361 | 7359 |
7362 | 7360 |
7363 var h = { | 7361 var h = { |
7364 "content-type" : "application/json; charset=utf-8", | 7362 "content-type" : "application/json; charset=utf-8", |
7365 }; | 7363 }; |
7366 var resp = convert.JSON.encode(buildLaunchTemplateResponse()); | 7364 var resp = convert.JSON.encode(buildLaunchTemplateResponse()); |
7367 return new async.Future.value(stringResponse(200, h, resp)); | 7365 return new async.Future.value(stringResponse(200, h, resp)); |
7368 }), true); | 7366 }), true); |
7369 res.launch(arg_request, arg_projectId, location: arg_location, validateOnl
y: arg_validateOnly, gcsPath: arg_gcsPath).then(unittest.expectAsync(((api.Launc
hTemplateResponse response) { | 7367 res.launch(arg_request, arg_projectId, location: arg_location, validateOnl
y: arg_validateOnly, gcsPath: arg_gcsPath).then(unittest.expectAsync1(((api.Laun
chTemplateResponse response) { |
7370 checkLaunchTemplateResponse(response); | 7368 checkLaunchTemplateResponse(response); |
7371 }))); | 7369 }))); |
7372 }); | 7370 }); |
7373 | 7371 |
7374 }); | 7372 }); |
7375 | 7373 |
7376 | 7374 |
7377 } | 7375 } |
7378 | 7376 |
OLD | NEW |