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:unittest/unittest.dart' as unittest; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 113 |
114 checkApproximateSplitRequest(api.ApproximateSplitRequest o) { | 114 checkApproximateSplitRequest(api.ApproximateSplitRequest o) { |
115 buildCounterApproximateSplitRequest++; | 115 buildCounterApproximateSplitRequest++; |
116 if (buildCounterApproximateSplitRequest < 3) { | 116 if (buildCounterApproximateSplitRequest < 3) { |
117 unittest.expect(o.fractionConsumed, unittest.equals(42.0)); | 117 unittest.expect(o.fractionConsumed, unittest.equals(42.0)); |
118 checkPosition(o.position); | 118 checkPosition(o.position); |
119 } | 119 } |
120 buildCounterApproximateSplitRequest--; | 120 buildCounterApproximateSplitRequest--; |
121 } | 121 } |
122 | 122 |
| 123 core.int buildCounterAutoscalingEvent = 0; |
| 124 buildAutoscalingEvent() { |
| 125 var o = new api.AutoscalingEvent(); |
| 126 buildCounterAutoscalingEvent++; |
| 127 if (buildCounterAutoscalingEvent < 3) { |
| 128 o.currentNumWorkers = "foo"; |
| 129 o.description = buildStructuredMessage(); |
| 130 o.eventType = "foo"; |
| 131 o.targetNumWorkers = "foo"; |
| 132 o.time = "foo"; |
| 133 } |
| 134 buildCounterAutoscalingEvent--; |
| 135 return o; |
| 136 } |
| 137 |
| 138 checkAutoscalingEvent(api.AutoscalingEvent o) { |
| 139 buildCounterAutoscalingEvent++; |
| 140 if (buildCounterAutoscalingEvent < 3) { |
| 141 unittest.expect(o.currentNumWorkers, unittest.equals('foo')); |
| 142 checkStructuredMessage(o.description); |
| 143 unittest.expect(o.eventType, unittest.equals('foo')); |
| 144 unittest.expect(o.targetNumWorkers, unittest.equals('foo')); |
| 145 unittest.expect(o.time, unittest.equals('foo')); |
| 146 } |
| 147 buildCounterAutoscalingEvent--; |
| 148 } |
| 149 |
123 core.int buildCounterAutoscalingSettings = 0; | 150 core.int buildCounterAutoscalingSettings = 0; |
124 buildAutoscalingSettings() { | 151 buildAutoscalingSettings() { |
125 var o = new api.AutoscalingSettings(); | 152 var o = new api.AutoscalingSettings(); |
126 buildCounterAutoscalingSettings++; | 153 buildCounterAutoscalingSettings++; |
127 if (buildCounterAutoscalingSettings < 3) { | 154 if (buildCounterAutoscalingSettings < 3) { |
128 o.algorithm = "foo"; | 155 o.algorithm = "foo"; |
129 o.maxNumWorkers = 42; | 156 o.maxNumWorkers = 42; |
130 } | 157 } |
131 buildCounterAutoscalingSettings--; | 158 buildCounterAutoscalingSettings--; |
132 return o; | 159 return o; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 checkComponentTransform(api.ComponentTransform o) { | 230 checkComponentTransform(api.ComponentTransform o) { |
204 buildCounterComponentTransform++; | 231 buildCounterComponentTransform++; |
205 if (buildCounterComponentTransform < 3) { | 232 if (buildCounterComponentTransform < 3) { |
206 unittest.expect(o.name, unittest.equals('foo')); | 233 unittest.expect(o.name, unittest.equals('foo')); |
207 unittest.expect(o.originalTransform, unittest.equals('foo')); | 234 unittest.expect(o.originalTransform, unittest.equals('foo')); |
208 unittest.expect(o.userName, unittest.equals('foo')); | 235 unittest.expect(o.userName, unittest.equals('foo')); |
209 } | 236 } |
210 buildCounterComponentTransform--; | 237 buildCounterComponentTransform--; |
211 } | 238 } |
212 | 239 |
213 buildUnnamed3083() { | 240 buildUnnamed3086() { |
214 var o = new core.List<api.StreamLocation>(); | 241 var o = new core.List<api.StreamLocation>(); |
215 o.add(buildStreamLocation()); | 242 o.add(buildStreamLocation()); |
216 o.add(buildStreamLocation()); | 243 o.add(buildStreamLocation()); |
217 return o; | 244 return o; |
218 } | 245 } |
219 | 246 |
220 checkUnnamed3083(core.List<api.StreamLocation> o) { | 247 checkUnnamed3086(core.List<api.StreamLocation> o) { |
221 unittest.expect(o, unittest.hasLength(2)); | 248 unittest.expect(o, unittest.hasLength(2)); |
222 checkStreamLocation(o[0]); | 249 checkStreamLocation(o[0]); |
223 checkStreamLocation(o[1]); | 250 checkStreamLocation(o[1]); |
224 } | 251 } |
225 | 252 |
226 buildUnnamed3084() { | 253 buildUnnamed3087() { |
227 var o = new core.List<api.KeyRangeLocation>(); | 254 var o = new core.List<api.KeyRangeLocation>(); |
228 o.add(buildKeyRangeLocation()); | 255 o.add(buildKeyRangeLocation()); |
229 o.add(buildKeyRangeLocation()); | 256 o.add(buildKeyRangeLocation()); |
230 return o; | 257 return o; |
231 } | 258 } |
232 | 259 |
233 checkUnnamed3084(core.List<api.KeyRangeLocation> o) { | 260 checkUnnamed3087(core.List<api.KeyRangeLocation> o) { |
234 unittest.expect(o, unittest.hasLength(2)); | 261 unittest.expect(o, unittest.hasLength(2)); |
235 checkKeyRangeLocation(o[0]); | 262 checkKeyRangeLocation(o[0]); |
236 checkKeyRangeLocation(o[1]); | 263 checkKeyRangeLocation(o[1]); |
237 } | 264 } |
238 | 265 |
239 buildUnnamed3085() { | 266 buildUnnamed3088() { |
240 var o = new core.List<api.StreamLocation>(); | 267 var o = new core.List<api.StreamLocation>(); |
241 o.add(buildStreamLocation()); | 268 o.add(buildStreamLocation()); |
242 o.add(buildStreamLocation()); | 269 o.add(buildStreamLocation()); |
243 return o; | 270 return o; |
244 } | 271 } |
245 | 272 |
246 checkUnnamed3085(core.List<api.StreamLocation> o) { | 273 checkUnnamed3088(core.List<api.StreamLocation> o) { |
247 unittest.expect(o, unittest.hasLength(2)); | 274 unittest.expect(o, unittest.hasLength(2)); |
248 checkStreamLocation(o[0]); | 275 checkStreamLocation(o[0]); |
249 checkStreamLocation(o[1]); | 276 checkStreamLocation(o[1]); |
250 } | 277 } |
251 | 278 |
252 buildUnnamed3086() { | 279 buildUnnamed3089() { |
253 var o = new core.List<api.StateFamilyConfig>(); | 280 var o = new core.List<api.StateFamilyConfig>(); |
254 o.add(buildStateFamilyConfig()); | 281 o.add(buildStateFamilyConfig()); |
255 o.add(buildStateFamilyConfig()); | 282 o.add(buildStateFamilyConfig()); |
256 return o; | 283 return o; |
257 } | 284 } |
258 | 285 |
259 checkUnnamed3086(core.List<api.StateFamilyConfig> o) { | 286 checkUnnamed3089(core.List<api.StateFamilyConfig> o) { |
260 unittest.expect(o, unittest.hasLength(2)); | 287 unittest.expect(o, unittest.hasLength(2)); |
261 checkStateFamilyConfig(o[0]); | 288 checkStateFamilyConfig(o[0]); |
262 checkStateFamilyConfig(o[1]); | 289 checkStateFamilyConfig(o[1]); |
263 } | 290 } |
264 | 291 |
265 core.int buildCounterComputationTopology = 0; | 292 core.int buildCounterComputationTopology = 0; |
266 buildComputationTopology() { | 293 buildComputationTopology() { |
267 var o = new api.ComputationTopology(); | 294 var o = new api.ComputationTopology(); |
268 buildCounterComputationTopology++; | 295 buildCounterComputationTopology++; |
269 if (buildCounterComputationTopology < 3) { | 296 if (buildCounterComputationTopology < 3) { |
270 o.computationId = "foo"; | 297 o.computationId = "foo"; |
271 o.inputs = buildUnnamed3083(); | 298 o.inputs = buildUnnamed3086(); |
272 o.keyRanges = buildUnnamed3084(); | 299 o.keyRanges = buildUnnamed3087(); |
273 o.outputs = buildUnnamed3085(); | 300 o.outputs = buildUnnamed3088(); |
274 o.stateFamilies = buildUnnamed3086(); | 301 o.stateFamilies = buildUnnamed3089(); |
275 o.systemStageName = "foo"; | 302 o.systemStageName = "foo"; |
276 o.userStageName = "foo"; | 303 o.userStageName = "foo"; |
277 } | 304 } |
278 buildCounterComputationTopology--; | 305 buildCounterComputationTopology--; |
279 return o; | 306 return o; |
280 } | 307 } |
281 | 308 |
282 checkComputationTopology(api.ComputationTopology o) { | 309 checkComputationTopology(api.ComputationTopology o) { |
283 buildCounterComputationTopology++; | 310 buildCounterComputationTopology++; |
284 if (buildCounterComputationTopology < 3) { | 311 if (buildCounterComputationTopology < 3) { |
285 unittest.expect(o.computationId, unittest.equals('foo')); | 312 unittest.expect(o.computationId, unittest.equals('foo')); |
286 checkUnnamed3083(o.inputs); | 313 checkUnnamed3086(o.inputs); |
287 checkUnnamed3084(o.keyRanges); | 314 checkUnnamed3087(o.keyRanges); |
288 checkUnnamed3085(o.outputs); | 315 checkUnnamed3088(o.outputs); |
289 checkUnnamed3086(o.stateFamilies); | 316 checkUnnamed3089(o.stateFamilies); |
290 unittest.expect(o.systemStageName, unittest.equals('foo')); | 317 unittest.expect(o.systemStageName, unittest.equals('foo')); |
291 unittest.expect(o.userStageName, unittest.equals('foo')); | 318 unittest.expect(o.userStageName, unittest.equals('foo')); |
292 } | 319 } |
293 buildCounterComputationTopology--; | 320 buildCounterComputationTopology--; |
294 } | 321 } |
295 | 322 |
296 core.int buildCounterConcatPosition = 0; | 323 core.int buildCounterConcatPosition = 0; |
297 buildConcatPosition() { | 324 buildConcatPosition() { |
298 var o = new api.ConcatPosition(); | 325 var o = new api.ConcatPosition(); |
299 buildCounterConcatPosition++; | 326 buildCounterConcatPosition++; |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 checkIntegerMean(o.integerMean); | 458 checkIntegerMean(o.integerMean); |
432 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')); | 459 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')); |
433 checkNameAndKind(o.nameAndKind); | 460 checkNameAndKind(o.nameAndKind); |
434 unittest.expect(o.shortId, unittest.equals('foo')); | 461 unittest.expect(o.shortId, unittest.equals('foo')); |
435 checkStringList(o.stringList); | 462 checkStringList(o.stringList); |
436 checkCounterStructuredNameAndMetadata(o.structuredNameAndMetadata); | 463 checkCounterStructuredNameAndMetadata(o.structuredNameAndMetadata); |
437 } | 464 } |
438 buildCounterCounterUpdate--; | 465 buildCounterCounterUpdate--; |
439 } | 466 } |
440 | 467 |
441 buildUnnamed3087() { | 468 buildUnnamed3090() { |
442 var o = new core.Map<core.String, core.String>(); | 469 var o = new core.Map<core.String, core.String>(); |
443 o["x"] = "foo"; | 470 o["x"] = "foo"; |
444 o["y"] = "foo"; | 471 o["y"] = "foo"; |
445 return o; | 472 return o; |
446 } | 473 } |
447 | 474 |
448 checkUnnamed3087(core.Map<core.String, core.String> o) { | 475 checkUnnamed3090(core.Map<core.String, core.String> o) { |
449 unittest.expect(o, unittest.hasLength(2)); | 476 unittest.expect(o, unittest.hasLength(2)); |
450 unittest.expect(o["x"], unittest.equals('foo')); | 477 unittest.expect(o["x"], unittest.equals('foo')); |
451 unittest.expect(o["y"], unittest.equals('foo')); | 478 unittest.expect(o["y"], unittest.equals('foo')); |
452 } | 479 } |
453 | 480 |
454 core.int buildCounterCreateJobFromTemplateRequest = 0; | 481 core.int buildCounterCreateJobFromTemplateRequest = 0; |
455 buildCreateJobFromTemplateRequest() { | 482 buildCreateJobFromTemplateRequest() { |
456 var o = new api.CreateJobFromTemplateRequest(); | 483 var o = new api.CreateJobFromTemplateRequest(); |
457 buildCounterCreateJobFromTemplateRequest++; | 484 buildCounterCreateJobFromTemplateRequest++; |
458 if (buildCounterCreateJobFromTemplateRequest < 3) { | 485 if (buildCounterCreateJobFromTemplateRequest < 3) { |
459 o.environment = buildRuntimeEnvironment(); | 486 o.environment = buildRuntimeEnvironment(); |
460 o.gcsPath = "foo"; | 487 o.gcsPath = "foo"; |
461 o.jobName = "foo"; | 488 o.jobName = "foo"; |
462 o.parameters = buildUnnamed3087(); | 489 o.location = "foo"; |
| 490 o.parameters = buildUnnamed3090(); |
463 } | 491 } |
464 buildCounterCreateJobFromTemplateRequest--; | 492 buildCounterCreateJobFromTemplateRequest--; |
465 return o; | 493 return o; |
466 } | 494 } |
467 | 495 |
468 checkCreateJobFromTemplateRequest(api.CreateJobFromTemplateRequest o) { | 496 checkCreateJobFromTemplateRequest(api.CreateJobFromTemplateRequest o) { |
469 buildCounterCreateJobFromTemplateRequest++; | 497 buildCounterCreateJobFromTemplateRequest++; |
470 if (buildCounterCreateJobFromTemplateRequest < 3) { | 498 if (buildCounterCreateJobFromTemplateRequest < 3) { |
471 checkRuntimeEnvironment(o.environment); | 499 checkRuntimeEnvironment(o.environment); |
472 unittest.expect(o.gcsPath, unittest.equals('foo')); | 500 unittest.expect(o.gcsPath, unittest.equals('foo')); |
473 unittest.expect(o.jobName, unittest.equals('foo')); | 501 unittest.expect(o.jobName, unittest.equals('foo')); |
474 checkUnnamed3087(o.parameters); | 502 unittest.expect(o.location, unittest.equals('foo')); |
| 503 checkUnnamed3090(o.parameters); |
475 } | 504 } |
476 buildCounterCreateJobFromTemplateRequest--; | 505 buildCounterCreateJobFromTemplateRequest--; |
477 } | 506 } |
478 | 507 |
479 core.int buildCounterCustomSourceLocation = 0; | 508 core.int buildCounterCustomSourceLocation = 0; |
480 buildCustomSourceLocation() { | 509 buildCustomSourceLocation() { |
481 var o = new api.CustomSourceLocation(); | 510 var o = new api.CustomSourceLocation(); |
482 buildCounterCustomSourceLocation++; | 511 buildCounterCustomSourceLocation++; |
483 if (buildCounterCustomSourceLocation < 3) { | 512 if (buildCounterCustomSourceLocation < 3) { |
484 o.stateful = true; | 513 o.stateful = true; |
485 } | 514 } |
486 buildCounterCustomSourceLocation--; | 515 buildCounterCustomSourceLocation--; |
487 return o; | 516 return o; |
488 } | 517 } |
489 | 518 |
490 checkCustomSourceLocation(api.CustomSourceLocation o) { | 519 checkCustomSourceLocation(api.CustomSourceLocation o) { |
491 buildCounterCustomSourceLocation++; | 520 buildCounterCustomSourceLocation++; |
492 if (buildCounterCustomSourceLocation < 3) { | 521 if (buildCounterCustomSourceLocation < 3) { |
493 unittest.expect(o.stateful, unittest.isTrue); | 522 unittest.expect(o.stateful, unittest.isTrue); |
494 } | 523 } |
495 buildCounterCustomSourceLocation--; | 524 buildCounterCustomSourceLocation--; |
496 } | 525 } |
497 | 526 |
498 buildUnnamed3088() { | 527 buildUnnamed3091() { |
499 var o = new core.List<core.String>(); | 528 var o = new core.List<core.String>(); |
500 o.add("foo"); | 529 o.add("foo"); |
501 o.add("foo"); | 530 o.add("foo"); |
502 return o; | 531 return o; |
503 } | 532 } |
504 | 533 |
505 checkUnnamed3088(core.List<core.String> o) { | 534 checkUnnamed3091(core.List<core.String> o) { |
506 unittest.expect(o, unittest.hasLength(2)); | 535 unittest.expect(o, unittest.hasLength(2)); |
507 unittest.expect(o[0], unittest.equals('foo')); | 536 unittest.expect(o[0], unittest.equals('foo')); |
508 unittest.expect(o[1], unittest.equals('foo')); | 537 unittest.expect(o[1], unittest.equals('foo')); |
509 } | 538 } |
510 | 539 |
511 core.int buildCounterDataDiskAssignment = 0; | 540 core.int buildCounterDataDiskAssignment = 0; |
512 buildDataDiskAssignment() { | 541 buildDataDiskAssignment() { |
513 var o = new api.DataDiskAssignment(); | 542 var o = new api.DataDiskAssignment(); |
514 buildCounterDataDiskAssignment++; | 543 buildCounterDataDiskAssignment++; |
515 if (buildCounterDataDiskAssignment < 3) { | 544 if (buildCounterDataDiskAssignment < 3) { |
516 o.dataDisks = buildUnnamed3088(); | 545 o.dataDisks = buildUnnamed3091(); |
517 o.vmInstance = "foo"; | 546 o.vmInstance = "foo"; |
518 } | 547 } |
519 buildCounterDataDiskAssignment--; | 548 buildCounterDataDiskAssignment--; |
520 return o; | 549 return o; |
521 } | 550 } |
522 | 551 |
523 checkDataDiskAssignment(api.DataDiskAssignment o) { | 552 checkDataDiskAssignment(api.DataDiskAssignment o) { |
524 buildCounterDataDiskAssignment++; | 553 buildCounterDataDiskAssignment++; |
525 if (buildCounterDataDiskAssignment < 3) { | 554 if (buildCounterDataDiskAssignment < 3) { |
526 checkUnnamed3088(o.dataDisks); | 555 checkUnnamed3091(o.dataDisks); |
527 unittest.expect(o.vmInstance, unittest.equals('foo')); | 556 unittest.expect(o.vmInstance, unittest.equals('foo')); |
528 } | 557 } |
529 buildCounterDataDiskAssignment--; | 558 buildCounterDataDiskAssignment--; |
530 } | 559 } |
531 | 560 |
532 core.int buildCounterDerivedSource = 0; | 561 core.int buildCounterDerivedSource = 0; |
533 buildDerivedSource() { | 562 buildDerivedSource() { |
534 var o = new api.DerivedSource(); | 563 var o = new api.DerivedSource(); |
535 buildCounterDerivedSource++; | 564 buildCounterDerivedSource++; |
536 if (buildCounterDerivedSource < 3) { | 565 if (buildCounterDerivedSource < 3) { |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
655 | 684 |
656 checkDynamicSourceSplit(api.DynamicSourceSplit o) { | 685 checkDynamicSourceSplit(api.DynamicSourceSplit o) { |
657 buildCounterDynamicSourceSplit++; | 686 buildCounterDynamicSourceSplit++; |
658 if (buildCounterDynamicSourceSplit < 3) { | 687 if (buildCounterDynamicSourceSplit < 3) { |
659 checkDerivedSource(o.primary); | 688 checkDerivedSource(o.primary); |
660 checkDerivedSource(o.residual); | 689 checkDerivedSource(o.residual); |
661 } | 690 } |
662 buildCounterDynamicSourceSplit--; | 691 buildCounterDynamicSourceSplit--; |
663 } | 692 } |
664 | 693 |
665 buildUnnamed3089() { | 694 buildUnnamed3092() { |
666 var o = new core.List<core.String>(); | 695 var o = new core.List<core.String>(); |
667 o.add("foo"); | 696 o.add("foo"); |
668 o.add("foo"); | 697 o.add("foo"); |
669 return o; | 698 return o; |
670 } | 699 } |
671 | 700 |
672 checkUnnamed3089(core.List<core.String> o) { | 701 checkUnnamed3092(core.List<core.String> o) { |
673 unittest.expect(o, unittest.hasLength(2)); | 702 unittest.expect(o, unittest.hasLength(2)); |
674 unittest.expect(o[0], unittest.equals('foo')); | 703 unittest.expect(o[0], unittest.equals('foo')); |
675 unittest.expect(o[1], unittest.equals('foo')); | 704 unittest.expect(o[1], unittest.equals('foo')); |
676 } | 705 } |
677 | 706 |
678 buildUnnamed3090() { | |
679 var o = new core.Map<core.String, core.Object>(); | |
680 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | |
681 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | |
682 return o; | |
683 } | |
684 | |
685 checkUnnamed3090(core.Map<core.String, core.Object> o) { | |
686 unittest.expect(o, unittest.hasLength(2)); | |
687 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')); | |
688 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')); | |
689 } | |
690 | |
691 buildUnnamed3091() { | |
692 var o = new core.Map<core.String, core.Object>(); | |
693 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | |
694 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | |
695 return o; | |
696 } | |
697 | |
698 checkUnnamed3091(core.Map<core.String, core.Object> o) { | |
699 unittest.expect(o, unittest.hasLength(2)); | |
700 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')); | |
701 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')); | |
702 } | |
703 | |
704 buildUnnamed3092() { | |
705 var o = new core.Map<core.String, core.Object>(); | |
706 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | |
707 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | |
708 return o; | |
709 } | |
710 | |
711 checkUnnamed3092(core.Map<core.String, core.Object> o) { | |
712 unittest.expect(o, unittest.hasLength(2)); | |
713 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')); | |
714 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')); | |
715 } | |
716 | |
717 buildUnnamed3093() { | 707 buildUnnamed3093() { |
718 var o = new core.Map<core.String, core.Object>(); | 708 var o = new core.Map<core.String, core.Object>(); |
719 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 709 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
720 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 710 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
721 return o; | 711 return o; |
722 } | 712 } |
723 | 713 |
724 checkUnnamed3093(core.Map<core.String, core.Object> o) { | 714 checkUnnamed3093(core.Map<core.String, core.Object> o) { |
725 unittest.expect(o, unittest.hasLength(2)); | 715 unittest.expect(o, unittest.hasLength(2)); |
| 716 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')); |
| 717 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')); |
| 718 } |
| 719 |
| 720 buildUnnamed3094() { |
| 721 var o = new core.Map<core.String, core.Object>(); |
| 722 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 723 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 724 return o; |
| 725 } |
| 726 |
| 727 checkUnnamed3094(core.Map<core.String, core.Object> o) { |
| 728 unittest.expect(o, unittest.hasLength(2)); |
| 729 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')); |
| 730 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')); |
| 731 } |
| 732 |
| 733 buildUnnamed3095() { |
| 734 var o = new core.Map<core.String, core.Object>(); |
| 735 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 736 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 737 return o; |
| 738 } |
| 739 |
| 740 checkUnnamed3095(core.Map<core.String, core.Object> o) { |
| 741 unittest.expect(o, unittest.hasLength(2)); |
| 742 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')); |
| 743 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')); |
| 744 } |
| 745 |
| 746 buildUnnamed3096() { |
| 747 var o = new core.Map<core.String, core.Object>(); |
| 748 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 749 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 750 return o; |
| 751 } |
| 752 |
| 753 checkUnnamed3096(core.Map<core.String, core.Object> o) { |
| 754 unittest.expect(o, unittest.hasLength(2)); |
726 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')); | 755 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')); |
727 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')); | 756 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')); |
728 } | 757 } |
729 | 758 |
730 buildUnnamed3094() { | 759 buildUnnamed3097() { |
731 var o = new core.List<api.WorkerPool>(); | 760 var o = new core.List<api.WorkerPool>(); |
732 o.add(buildWorkerPool()); | 761 o.add(buildWorkerPool()); |
733 o.add(buildWorkerPool()); | 762 o.add(buildWorkerPool()); |
734 return o; | 763 return o; |
735 } | 764 } |
736 | 765 |
737 checkUnnamed3094(core.List<api.WorkerPool> o) { | 766 checkUnnamed3097(core.List<api.WorkerPool> o) { |
738 unittest.expect(o, unittest.hasLength(2)); | 767 unittest.expect(o, unittest.hasLength(2)); |
739 checkWorkerPool(o[0]); | 768 checkWorkerPool(o[0]); |
740 checkWorkerPool(o[1]); | 769 checkWorkerPool(o[1]); |
741 } | 770 } |
742 | 771 |
743 core.int buildCounterEnvironment = 0; | 772 core.int buildCounterEnvironment = 0; |
744 buildEnvironment() { | 773 buildEnvironment() { |
745 var o = new api.Environment(); | 774 var o = new api.Environment(); |
746 buildCounterEnvironment++; | 775 buildCounterEnvironment++; |
747 if (buildCounterEnvironment < 3) { | 776 if (buildCounterEnvironment < 3) { |
748 o.clusterManagerApiService = "foo"; | 777 o.clusterManagerApiService = "foo"; |
749 o.dataset = "foo"; | 778 o.dataset = "foo"; |
750 o.experiments = buildUnnamed3089(); | 779 o.experiments = buildUnnamed3092(); |
751 o.internalExperiments = buildUnnamed3090(); | 780 o.internalExperiments = buildUnnamed3093(); |
752 o.sdkPipelineOptions = buildUnnamed3091(); | 781 o.sdkPipelineOptions = buildUnnamed3094(); |
753 o.serviceAccountEmail = "foo"; | 782 o.serviceAccountEmail = "foo"; |
754 o.tempStoragePrefix = "foo"; | 783 o.tempStoragePrefix = "foo"; |
755 o.userAgent = buildUnnamed3092(); | 784 o.userAgent = buildUnnamed3095(); |
756 o.version = buildUnnamed3093(); | 785 o.version = buildUnnamed3096(); |
757 o.workerPools = buildUnnamed3094(); | 786 o.workerPools = buildUnnamed3097(); |
758 } | 787 } |
759 buildCounterEnvironment--; | 788 buildCounterEnvironment--; |
760 return o; | 789 return o; |
761 } | 790 } |
762 | 791 |
763 checkEnvironment(api.Environment o) { | 792 checkEnvironment(api.Environment o) { |
764 buildCounterEnvironment++; | 793 buildCounterEnvironment++; |
765 if (buildCounterEnvironment < 3) { | 794 if (buildCounterEnvironment < 3) { |
766 unittest.expect(o.clusterManagerApiService, unittest.equals('foo')); | 795 unittest.expect(o.clusterManagerApiService, unittest.equals('foo')); |
767 unittest.expect(o.dataset, unittest.equals('foo')); | 796 unittest.expect(o.dataset, unittest.equals('foo')); |
768 checkUnnamed3089(o.experiments); | 797 checkUnnamed3092(o.experiments); |
769 checkUnnamed3090(o.internalExperiments); | 798 checkUnnamed3093(o.internalExperiments); |
770 checkUnnamed3091(o.sdkPipelineOptions); | 799 checkUnnamed3094(o.sdkPipelineOptions); |
771 unittest.expect(o.serviceAccountEmail, unittest.equals('foo')); | 800 unittest.expect(o.serviceAccountEmail, unittest.equals('foo')); |
772 unittest.expect(o.tempStoragePrefix, unittest.equals('foo')); | 801 unittest.expect(o.tempStoragePrefix, unittest.equals('foo')); |
773 checkUnnamed3092(o.userAgent); | 802 checkUnnamed3095(o.userAgent); |
774 checkUnnamed3093(o.version); | 803 checkUnnamed3096(o.version); |
775 checkUnnamed3094(o.workerPools); | 804 checkUnnamed3097(o.workerPools); |
776 } | 805 } |
777 buildCounterEnvironment--; | 806 buildCounterEnvironment--; |
778 } | 807 } |
779 | 808 |
780 buildUnnamed3095() { | 809 core.int buildCounterExecutionStageState = 0; |
| 810 buildExecutionStageState() { |
| 811 var o = new api.ExecutionStageState(); |
| 812 buildCounterExecutionStageState++; |
| 813 if (buildCounterExecutionStageState < 3) { |
| 814 o.currentStateTime = "foo"; |
| 815 o.executionStageName = "foo"; |
| 816 o.executionStageState = "foo"; |
| 817 } |
| 818 buildCounterExecutionStageState--; |
| 819 return o; |
| 820 } |
| 821 |
| 822 checkExecutionStageState(api.ExecutionStageState o) { |
| 823 buildCounterExecutionStageState++; |
| 824 if (buildCounterExecutionStageState < 3) { |
| 825 unittest.expect(o.currentStateTime, unittest.equals('foo')); |
| 826 unittest.expect(o.executionStageName, unittest.equals('foo')); |
| 827 unittest.expect(o.executionStageState, unittest.equals('foo')); |
| 828 } |
| 829 buildCounterExecutionStageState--; |
| 830 } |
| 831 |
| 832 buildUnnamed3098() { |
781 var o = new core.List<api.ComponentSource>(); | 833 var o = new core.List<api.ComponentSource>(); |
782 o.add(buildComponentSource()); | 834 o.add(buildComponentSource()); |
783 o.add(buildComponentSource()); | 835 o.add(buildComponentSource()); |
784 return o; | 836 return o; |
785 } | 837 } |
786 | 838 |
787 checkUnnamed3095(core.List<api.ComponentSource> o) { | 839 checkUnnamed3098(core.List<api.ComponentSource> o) { |
788 unittest.expect(o, unittest.hasLength(2)); | 840 unittest.expect(o, unittest.hasLength(2)); |
789 checkComponentSource(o[0]); | 841 checkComponentSource(o[0]); |
790 checkComponentSource(o[1]); | 842 checkComponentSource(o[1]); |
791 } | 843 } |
792 | 844 |
793 buildUnnamed3096() { | 845 buildUnnamed3099() { |
794 var o = new core.List<api.ComponentTransform>(); | 846 var o = new core.List<api.ComponentTransform>(); |
795 o.add(buildComponentTransform()); | 847 o.add(buildComponentTransform()); |
796 o.add(buildComponentTransform()); | 848 o.add(buildComponentTransform()); |
797 return o; | 849 return o; |
798 } | 850 } |
799 | 851 |
800 checkUnnamed3096(core.List<api.ComponentTransform> o) { | 852 checkUnnamed3099(core.List<api.ComponentTransform> o) { |
801 unittest.expect(o, unittest.hasLength(2)); | 853 unittest.expect(o, unittest.hasLength(2)); |
802 checkComponentTransform(o[0]); | 854 checkComponentTransform(o[0]); |
803 checkComponentTransform(o[1]); | 855 checkComponentTransform(o[1]); |
804 } | 856 } |
805 | 857 |
806 buildUnnamed3097() { | 858 buildUnnamed3100() { |
807 var o = new core.List<api.StageSource>(); | 859 var o = new core.List<api.StageSource>(); |
808 o.add(buildStageSource()); | 860 o.add(buildStageSource()); |
809 o.add(buildStageSource()); | 861 o.add(buildStageSource()); |
810 return o; | 862 return o; |
811 } | 863 } |
812 | 864 |
813 checkUnnamed3097(core.List<api.StageSource> o) { | 865 checkUnnamed3100(core.List<api.StageSource> o) { |
814 unittest.expect(o, unittest.hasLength(2)); | 866 unittest.expect(o, unittest.hasLength(2)); |
815 checkStageSource(o[0]); | 867 checkStageSource(o[0]); |
816 checkStageSource(o[1]); | 868 checkStageSource(o[1]); |
817 } | 869 } |
818 | 870 |
819 buildUnnamed3098() { | 871 buildUnnamed3101() { |
820 var o = new core.List<api.StageSource>(); | 872 var o = new core.List<api.StageSource>(); |
821 o.add(buildStageSource()); | 873 o.add(buildStageSource()); |
822 o.add(buildStageSource()); | 874 o.add(buildStageSource()); |
823 return o; | 875 return o; |
824 } | 876 } |
825 | 877 |
826 checkUnnamed3098(core.List<api.StageSource> o) { | 878 checkUnnamed3101(core.List<api.StageSource> o) { |
827 unittest.expect(o, unittest.hasLength(2)); | 879 unittest.expect(o, unittest.hasLength(2)); |
828 checkStageSource(o[0]); | 880 checkStageSource(o[0]); |
829 checkStageSource(o[1]); | 881 checkStageSource(o[1]); |
830 } | 882 } |
831 | 883 |
832 core.int buildCounterExecutionStageSummary = 0; | 884 core.int buildCounterExecutionStageSummary = 0; |
833 buildExecutionStageSummary() { | 885 buildExecutionStageSummary() { |
834 var o = new api.ExecutionStageSummary(); | 886 var o = new api.ExecutionStageSummary(); |
835 buildCounterExecutionStageSummary++; | 887 buildCounterExecutionStageSummary++; |
836 if (buildCounterExecutionStageSummary < 3) { | 888 if (buildCounterExecutionStageSummary < 3) { |
837 o.componentSource = buildUnnamed3095(); | 889 o.componentSource = buildUnnamed3098(); |
838 o.componentTransform = buildUnnamed3096(); | 890 o.componentTransform = buildUnnamed3099(); |
839 o.id = "foo"; | 891 o.id = "foo"; |
840 o.inputSource = buildUnnamed3097(); | 892 o.inputSource = buildUnnamed3100(); |
841 o.kind = "foo"; | 893 o.kind = "foo"; |
842 o.name = "foo"; | 894 o.name = "foo"; |
843 o.outputSource = buildUnnamed3098(); | 895 o.outputSource = buildUnnamed3101(); |
844 } | 896 } |
845 buildCounterExecutionStageSummary--; | 897 buildCounterExecutionStageSummary--; |
846 return o; | 898 return o; |
847 } | 899 } |
848 | 900 |
849 checkExecutionStageSummary(api.ExecutionStageSummary o) { | 901 checkExecutionStageSummary(api.ExecutionStageSummary o) { |
850 buildCounterExecutionStageSummary++; | 902 buildCounterExecutionStageSummary++; |
851 if (buildCounterExecutionStageSummary < 3) { | 903 if (buildCounterExecutionStageSummary < 3) { |
852 checkUnnamed3095(o.componentSource); | 904 checkUnnamed3098(o.componentSource); |
853 checkUnnamed3096(o.componentTransform); | 905 checkUnnamed3099(o.componentTransform); |
854 unittest.expect(o.id, unittest.equals('foo')); | 906 unittest.expect(o.id, unittest.equals('foo')); |
855 checkUnnamed3097(o.inputSource); | 907 checkUnnamed3100(o.inputSource); |
856 unittest.expect(o.kind, unittest.equals('foo')); | 908 unittest.expect(o.kind, unittest.equals('foo')); |
857 unittest.expect(o.name, unittest.equals('foo')); | 909 unittest.expect(o.name, unittest.equals('foo')); |
858 checkUnnamed3098(o.outputSource); | 910 checkUnnamed3101(o.outputSource); |
859 } | 911 } |
860 buildCounterExecutionStageSummary--; | 912 buildCounterExecutionStageSummary--; |
861 } | 913 } |
862 | 914 |
863 core.int buildCounterFailedLocation = 0; | 915 core.int buildCounterFailedLocation = 0; |
864 buildFailedLocation() { | 916 buildFailedLocation() { |
865 var o = new api.FailedLocation(); | 917 var o = new api.FailedLocation(); |
866 buildCounterFailedLocation++; | 918 buildCounterFailedLocation++; |
867 if (buildCounterFailedLocation < 3) { | 919 if (buildCounterFailedLocation < 3) { |
868 o.name = "foo"; | 920 o.name = "foo"; |
869 } | 921 } |
870 buildCounterFailedLocation--; | 922 buildCounterFailedLocation--; |
871 return o; | 923 return o; |
872 } | 924 } |
873 | 925 |
874 checkFailedLocation(api.FailedLocation o) { | 926 checkFailedLocation(api.FailedLocation o) { |
875 buildCounterFailedLocation++; | 927 buildCounterFailedLocation++; |
876 if (buildCounterFailedLocation < 3) { | 928 if (buildCounterFailedLocation < 3) { |
877 unittest.expect(o.name, unittest.equals('foo')); | 929 unittest.expect(o.name, unittest.equals('foo')); |
878 } | 930 } |
879 buildCounterFailedLocation--; | 931 buildCounterFailedLocation--; |
880 } | 932 } |
881 | 933 |
882 buildUnnamed3099() { | 934 buildUnnamed3102() { |
883 var o = new core.List<api.InstructionInput>(); | 935 var o = new core.List<api.InstructionInput>(); |
884 o.add(buildInstructionInput()); | 936 o.add(buildInstructionInput()); |
885 o.add(buildInstructionInput()); | 937 o.add(buildInstructionInput()); |
886 return o; | 938 return o; |
887 } | 939 } |
888 | 940 |
889 checkUnnamed3099(core.List<api.InstructionInput> o) { | 941 checkUnnamed3102(core.List<api.InstructionInput> o) { |
890 unittest.expect(o, unittest.hasLength(2)); | 942 unittest.expect(o, unittest.hasLength(2)); |
891 checkInstructionInput(o[0]); | 943 checkInstructionInput(o[0]); |
892 checkInstructionInput(o[1]); | 944 checkInstructionInput(o[1]); |
893 } | 945 } |
894 | 946 |
895 core.int buildCounterFlattenInstruction = 0; | 947 core.int buildCounterFlattenInstruction = 0; |
896 buildFlattenInstruction() { | 948 buildFlattenInstruction() { |
897 var o = new api.FlattenInstruction(); | 949 var o = new api.FlattenInstruction(); |
898 buildCounterFlattenInstruction++; | 950 buildCounterFlattenInstruction++; |
899 if (buildCounterFlattenInstruction < 3) { | 951 if (buildCounterFlattenInstruction < 3) { |
900 o.inputs = buildUnnamed3099(); | 952 o.inputs = buildUnnamed3102(); |
901 } | 953 } |
902 buildCounterFlattenInstruction--; | 954 buildCounterFlattenInstruction--; |
903 return o; | 955 return o; |
904 } | 956 } |
905 | 957 |
906 checkFlattenInstruction(api.FlattenInstruction o) { | 958 checkFlattenInstruction(api.FlattenInstruction o) { |
907 buildCounterFlattenInstruction++; | 959 buildCounterFlattenInstruction++; |
908 if (buildCounterFlattenInstruction < 3) { | 960 if (buildCounterFlattenInstruction < 3) { |
909 checkUnnamed3099(o.inputs); | 961 checkUnnamed3102(o.inputs); |
910 } | 962 } |
911 buildCounterFlattenInstruction--; | 963 buildCounterFlattenInstruction--; |
912 } | 964 } |
913 | 965 |
914 buildUnnamed3100() { | 966 buildUnnamed3103() { |
915 var o = new core.List<core.double>(); | 967 var o = new core.List<core.double>(); |
916 o.add(42.0); | 968 o.add(42.0); |
917 o.add(42.0); | 969 o.add(42.0); |
918 return o; | 970 return o; |
919 } | 971 } |
920 | 972 |
921 checkUnnamed3100(core.List<core.double> o) { | 973 checkUnnamed3103(core.List<core.double> o) { |
922 unittest.expect(o, unittest.hasLength(2)); | 974 unittest.expect(o, unittest.hasLength(2)); |
923 unittest.expect(o[0], unittest.equals(42.0)); | 975 unittest.expect(o[0], unittest.equals(42.0)); |
924 unittest.expect(o[1], unittest.equals(42.0)); | 976 unittest.expect(o[1], unittest.equals(42.0)); |
925 } | 977 } |
926 | 978 |
927 core.int buildCounterFloatingPointList = 0; | 979 core.int buildCounterFloatingPointList = 0; |
928 buildFloatingPointList() { | 980 buildFloatingPointList() { |
929 var o = new api.FloatingPointList(); | 981 var o = new api.FloatingPointList(); |
930 buildCounterFloatingPointList++; | 982 buildCounterFloatingPointList++; |
931 if (buildCounterFloatingPointList < 3) { | 983 if (buildCounterFloatingPointList < 3) { |
932 o.elements = buildUnnamed3100(); | 984 o.elements = buildUnnamed3103(); |
933 } | 985 } |
934 buildCounterFloatingPointList--; | 986 buildCounterFloatingPointList--; |
935 return o; | 987 return o; |
936 } | 988 } |
937 | 989 |
938 checkFloatingPointList(api.FloatingPointList o) { | 990 checkFloatingPointList(api.FloatingPointList o) { |
939 buildCounterFloatingPointList++; | 991 buildCounterFloatingPointList++; |
940 if (buildCounterFloatingPointList < 3) { | 992 if (buildCounterFloatingPointList < 3) { |
941 checkUnnamed3100(o.elements); | 993 checkUnnamed3103(o.elements); |
942 } | 994 } |
943 buildCounterFloatingPointList--; | 995 buildCounterFloatingPointList--; |
944 } | 996 } |
945 | 997 |
946 core.int buildCounterFloatingPointMean = 0; | 998 core.int buildCounterFloatingPointMean = 0; |
947 buildFloatingPointMean() { | 999 buildFloatingPointMean() { |
948 var o = new api.FloatingPointMean(); | 1000 var o = new api.FloatingPointMean(); |
949 buildCounterFloatingPointMean++; | 1001 buildCounterFloatingPointMean++; |
950 if (buildCounterFloatingPointMean < 3) { | 1002 if (buildCounterFloatingPointMean < 3) { |
951 o.count = buildSplitInt64(); | 1003 o.count = buildSplitInt64(); |
(...skipping 11 matching lines...) Expand all Loading... |
963 } | 1015 } |
964 buildCounterFloatingPointMean--; | 1016 buildCounterFloatingPointMean--; |
965 } | 1017 } |
966 | 1018 |
967 core.int buildCounterGetDebugConfigRequest = 0; | 1019 core.int buildCounterGetDebugConfigRequest = 0; |
968 buildGetDebugConfigRequest() { | 1020 buildGetDebugConfigRequest() { |
969 var o = new api.GetDebugConfigRequest(); | 1021 var o = new api.GetDebugConfigRequest(); |
970 buildCounterGetDebugConfigRequest++; | 1022 buildCounterGetDebugConfigRequest++; |
971 if (buildCounterGetDebugConfigRequest < 3) { | 1023 if (buildCounterGetDebugConfigRequest < 3) { |
972 o.componentId = "foo"; | 1024 o.componentId = "foo"; |
| 1025 o.location = "foo"; |
973 o.workerId = "foo"; | 1026 o.workerId = "foo"; |
974 } | 1027 } |
975 buildCounterGetDebugConfigRequest--; | 1028 buildCounterGetDebugConfigRequest--; |
976 return o; | 1029 return o; |
977 } | 1030 } |
978 | 1031 |
979 checkGetDebugConfigRequest(api.GetDebugConfigRequest o) { | 1032 checkGetDebugConfigRequest(api.GetDebugConfigRequest o) { |
980 buildCounterGetDebugConfigRequest++; | 1033 buildCounterGetDebugConfigRequest++; |
981 if (buildCounterGetDebugConfigRequest < 3) { | 1034 if (buildCounterGetDebugConfigRequest < 3) { |
982 unittest.expect(o.componentId, unittest.equals('foo')); | 1035 unittest.expect(o.componentId, unittest.equals('foo')); |
| 1036 unittest.expect(o.location, unittest.equals('foo')); |
983 unittest.expect(o.workerId, unittest.equals('foo')); | 1037 unittest.expect(o.workerId, unittest.equals('foo')); |
984 } | 1038 } |
985 buildCounterGetDebugConfigRequest--; | 1039 buildCounterGetDebugConfigRequest--; |
986 } | 1040 } |
987 | 1041 |
988 core.int buildCounterGetDebugConfigResponse = 0; | 1042 core.int buildCounterGetDebugConfigResponse = 0; |
989 buildGetDebugConfigResponse() { | 1043 buildGetDebugConfigResponse() { |
990 var o = new api.GetDebugConfigResponse(); | 1044 var o = new api.GetDebugConfigResponse(); |
991 buildCounterGetDebugConfigResponse++; | 1045 buildCounterGetDebugConfigResponse++; |
992 if (buildCounterGetDebugConfigResponse < 3) { | 1046 if (buildCounterGetDebugConfigResponse < 3) { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1039 | 1093 |
1040 checkInstructionInput(api.InstructionInput o) { | 1094 checkInstructionInput(api.InstructionInput o) { |
1041 buildCounterInstructionInput++; | 1095 buildCounterInstructionInput++; |
1042 if (buildCounterInstructionInput < 3) { | 1096 if (buildCounterInstructionInput < 3) { |
1043 unittest.expect(o.outputNum, unittest.equals(42)); | 1097 unittest.expect(o.outputNum, unittest.equals(42)); |
1044 unittest.expect(o.producerInstructionIndex, unittest.equals(42)); | 1098 unittest.expect(o.producerInstructionIndex, unittest.equals(42)); |
1045 } | 1099 } |
1046 buildCounterInstructionInput--; | 1100 buildCounterInstructionInput--; |
1047 } | 1101 } |
1048 | 1102 |
1049 buildUnnamed3101() { | 1103 buildUnnamed3104() { |
1050 var o = new core.Map<core.String, core.Object>(); | 1104 var o = new core.Map<core.String, core.Object>(); |
1051 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1105 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1052 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1106 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1053 return o; | 1107 return o; |
1054 } | 1108 } |
1055 | 1109 |
1056 checkUnnamed3101(core.Map<core.String, core.Object> o) { | 1110 checkUnnamed3104(core.Map<core.String, core.Object> o) { |
1057 unittest.expect(o, unittest.hasLength(2)); | 1111 unittest.expect(o, unittest.hasLength(2)); |
1058 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')); | 1112 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')); |
1059 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')); | 1113 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')); |
1060 } | 1114 } |
1061 | 1115 |
1062 core.int buildCounterInstructionOutput = 0; | 1116 core.int buildCounterInstructionOutput = 0; |
1063 buildInstructionOutput() { | 1117 buildInstructionOutput() { |
1064 var o = new api.InstructionOutput(); | 1118 var o = new api.InstructionOutput(); |
1065 buildCounterInstructionOutput++; | 1119 buildCounterInstructionOutput++; |
1066 if (buildCounterInstructionOutput < 3) { | 1120 if (buildCounterInstructionOutput < 3) { |
1067 o.codec = buildUnnamed3101(); | 1121 o.codec = buildUnnamed3104(); |
1068 o.name = "foo"; | 1122 o.name = "foo"; |
1069 o.onlyCountKeyBytes = true; | 1123 o.onlyCountKeyBytes = true; |
1070 o.onlyCountValueBytes = true; | 1124 o.onlyCountValueBytes = true; |
1071 o.originalName = "foo"; | 1125 o.originalName = "foo"; |
1072 o.systemName = "foo"; | 1126 o.systemName = "foo"; |
1073 } | 1127 } |
1074 buildCounterInstructionOutput--; | 1128 buildCounterInstructionOutput--; |
1075 return o; | 1129 return o; |
1076 } | 1130 } |
1077 | 1131 |
1078 checkInstructionOutput(api.InstructionOutput o) { | 1132 checkInstructionOutput(api.InstructionOutput o) { |
1079 buildCounterInstructionOutput++; | 1133 buildCounterInstructionOutput++; |
1080 if (buildCounterInstructionOutput < 3) { | 1134 if (buildCounterInstructionOutput < 3) { |
1081 checkUnnamed3101(o.codec); | 1135 checkUnnamed3104(o.codec); |
1082 unittest.expect(o.name, unittest.equals('foo')); | 1136 unittest.expect(o.name, unittest.equals('foo')); |
1083 unittest.expect(o.onlyCountKeyBytes, unittest.isTrue); | 1137 unittest.expect(o.onlyCountKeyBytes, unittest.isTrue); |
1084 unittest.expect(o.onlyCountValueBytes, unittest.isTrue); | 1138 unittest.expect(o.onlyCountValueBytes, unittest.isTrue); |
1085 unittest.expect(o.originalName, unittest.equals('foo')); | 1139 unittest.expect(o.originalName, unittest.equals('foo')); |
1086 unittest.expect(o.systemName, unittest.equals('foo')); | 1140 unittest.expect(o.systemName, unittest.equals('foo')); |
1087 } | 1141 } |
1088 buildCounterInstructionOutput--; | 1142 buildCounterInstructionOutput--; |
1089 } | 1143 } |
1090 | 1144 |
1091 buildUnnamed3102() { | 1145 buildUnnamed3105() { |
1092 var o = new core.List<api.SplitInt64>(); | 1146 var o = new core.List<api.SplitInt64>(); |
1093 o.add(buildSplitInt64()); | 1147 o.add(buildSplitInt64()); |
1094 o.add(buildSplitInt64()); | 1148 o.add(buildSplitInt64()); |
1095 return o; | 1149 return o; |
1096 } | 1150 } |
1097 | 1151 |
1098 checkUnnamed3102(core.List<api.SplitInt64> o) { | 1152 checkUnnamed3105(core.List<api.SplitInt64> o) { |
1099 unittest.expect(o, unittest.hasLength(2)); | 1153 unittest.expect(o, unittest.hasLength(2)); |
1100 checkSplitInt64(o[0]); | 1154 checkSplitInt64(o[0]); |
1101 checkSplitInt64(o[1]); | 1155 checkSplitInt64(o[1]); |
1102 } | 1156 } |
1103 | 1157 |
1104 core.int buildCounterIntegerList = 0; | 1158 core.int buildCounterIntegerList = 0; |
1105 buildIntegerList() { | 1159 buildIntegerList() { |
1106 var o = new api.IntegerList(); | 1160 var o = new api.IntegerList(); |
1107 buildCounterIntegerList++; | 1161 buildCounterIntegerList++; |
1108 if (buildCounterIntegerList < 3) { | 1162 if (buildCounterIntegerList < 3) { |
1109 o.elements = buildUnnamed3102(); | 1163 o.elements = buildUnnamed3105(); |
1110 } | 1164 } |
1111 buildCounterIntegerList--; | 1165 buildCounterIntegerList--; |
1112 return o; | 1166 return o; |
1113 } | 1167 } |
1114 | 1168 |
1115 checkIntegerList(api.IntegerList o) { | 1169 checkIntegerList(api.IntegerList o) { |
1116 buildCounterIntegerList++; | 1170 buildCounterIntegerList++; |
1117 if (buildCounterIntegerList < 3) { | 1171 if (buildCounterIntegerList < 3) { |
1118 checkUnnamed3102(o.elements); | 1172 checkUnnamed3105(o.elements); |
1119 } | 1173 } |
1120 buildCounterIntegerList--; | 1174 buildCounterIntegerList--; |
1121 } | 1175 } |
1122 | 1176 |
1123 core.int buildCounterIntegerMean = 0; | 1177 core.int buildCounterIntegerMean = 0; |
1124 buildIntegerMean() { | 1178 buildIntegerMean() { |
1125 var o = new api.IntegerMean(); | 1179 var o = new api.IntegerMean(); |
1126 buildCounterIntegerMean++; | 1180 buildCounterIntegerMean++; |
1127 if (buildCounterIntegerMean < 3) { | 1181 if (buildCounterIntegerMean < 3) { |
1128 o.count = buildSplitInt64(); | 1182 o.count = buildSplitInt64(); |
1129 o.sum = buildSplitInt64(); | 1183 o.sum = buildSplitInt64(); |
1130 } | 1184 } |
1131 buildCounterIntegerMean--; | 1185 buildCounterIntegerMean--; |
1132 return o; | 1186 return o; |
1133 } | 1187 } |
1134 | 1188 |
1135 checkIntegerMean(api.IntegerMean o) { | 1189 checkIntegerMean(api.IntegerMean o) { |
1136 buildCounterIntegerMean++; | 1190 buildCounterIntegerMean++; |
1137 if (buildCounterIntegerMean < 3) { | 1191 if (buildCounterIntegerMean < 3) { |
1138 checkSplitInt64(o.count); | 1192 checkSplitInt64(o.count); |
1139 checkSplitInt64(o.sum); | 1193 checkSplitInt64(o.sum); |
1140 } | 1194 } |
1141 buildCounterIntegerMean--; | 1195 buildCounterIntegerMean--; |
1142 } | 1196 } |
1143 | 1197 |
1144 buildUnnamed3103() { | |
1145 var o = new core.Map<core.String, core.String>(); | |
1146 o["x"] = "foo"; | |
1147 o["y"] = "foo"; | |
1148 return o; | |
1149 } | |
1150 | |
1151 checkUnnamed3103(core.Map<core.String, core.String> o) { | |
1152 unittest.expect(o, unittest.hasLength(2)); | |
1153 unittest.expect(o["x"], unittest.equals('foo')); | |
1154 unittest.expect(o["y"], unittest.equals('foo')); | |
1155 } | |
1156 | |
1157 buildUnnamed3104() { | |
1158 var o = new core.List<api.Step>(); | |
1159 o.add(buildStep()); | |
1160 o.add(buildStep()); | |
1161 return o; | |
1162 } | |
1163 | |
1164 checkUnnamed3104(core.List<api.Step> o) { | |
1165 unittest.expect(o, unittest.hasLength(2)); | |
1166 checkStep(o[0]); | |
1167 checkStep(o[1]); | |
1168 } | |
1169 | |
1170 buildUnnamed3105() { | |
1171 var o = new core.List<core.String>(); | |
1172 o.add("foo"); | |
1173 o.add("foo"); | |
1174 return o; | |
1175 } | |
1176 | |
1177 checkUnnamed3105(core.List<core.String> o) { | |
1178 unittest.expect(o, unittest.hasLength(2)); | |
1179 unittest.expect(o[0], unittest.equals('foo')); | |
1180 unittest.expect(o[1], unittest.equals('foo')); | |
1181 } | |
1182 | |
1183 buildUnnamed3106() { | 1198 buildUnnamed3106() { |
1184 var o = new core.Map<core.String, core.String>(); | 1199 var o = new core.Map<core.String, core.String>(); |
1185 o["x"] = "foo"; | 1200 o["x"] = "foo"; |
1186 o["y"] = "foo"; | 1201 o["y"] = "foo"; |
1187 return o; | 1202 return o; |
1188 } | 1203 } |
1189 | 1204 |
1190 checkUnnamed3106(core.Map<core.String, core.String> o) { | 1205 checkUnnamed3106(core.Map<core.String, core.String> o) { |
1191 unittest.expect(o, unittest.hasLength(2)); | 1206 unittest.expect(o, unittest.hasLength(2)); |
1192 unittest.expect(o["x"], unittest.equals('foo')); | 1207 unittest.expect(o["x"], unittest.equals('foo')); |
1193 unittest.expect(o["y"], unittest.equals('foo')); | 1208 unittest.expect(o["y"], unittest.equals('foo')); |
| 1209 } |
| 1210 |
| 1211 buildUnnamed3107() { |
| 1212 var o = new core.List<api.ExecutionStageState>(); |
| 1213 o.add(buildExecutionStageState()); |
| 1214 o.add(buildExecutionStageState()); |
| 1215 return o; |
| 1216 } |
| 1217 |
| 1218 checkUnnamed3107(core.List<api.ExecutionStageState> o) { |
| 1219 unittest.expect(o, unittest.hasLength(2)); |
| 1220 checkExecutionStageState(o[0]); |
| 1221 checkExecutionStageState(o[1]); |
| 1222 } |
| 1223 |
| 1224 buildUnnamed3108() { |
| 1225 var o = new core.List<api.Step>(); |
| 1226 o.add(buildStep()); |
| 1227 o.add(buildStep()); |
| 1228 return o; |
| 1229 } |
| 1230 |
| 1231 checkUnnamed3108(core.List<api.Step> o) { |
| 1232 unittest.expect(o, unittest.hasLength(2)); |
| 1233 checkStep(o[0]); |
| 1234 checkStep(o[1]); |
| 1235 } |
| 1236 |
| 1237 buildUnnamed3109() { |
| 1238 var o = new core.List<core.String>(); |
| 1239 o.add("foo"); |
| 1240 o.add("foo"); |
| 1241 return o; |
| 1242 } |
| 1243 |
| 1244 checkUnnamed3109(core.List<core.String> o) { |
| 1245 unittest.expect(o, unittest.hasLength(2)); |
| 1246 unittest.expect(o[0], unittest.equals('foo')); |
| 1247 unittest.expect(o[1], unittest.equals('foo')); |
| 1248 } |
| 1249 |
| 1250 buildUnnamed3110() { |
| 1251 var o = new core.Map<core.String, core.String>(); |
| 1252 o["x"] = "foo"; |
| 1253 o["y"] = "foo"; |
| 1254 return o; |
| 1255 } |
| 1256 |
| 1257 checkUnnamed3110(core.Map<core.String, core.String> o) { |
| 1258 unittest.expect(o, unittest.hasLength(2)); |
| 1259 unittest.expect(o["x"], unittest.equals('foo')); |
| 1260 unittest.expect(o["y"], unittest.equals('foo')); |
1194 } | 1261 } |
1195 | 1262 |
1196 core.int buildCounterJob = 0; | 1263 core.int buildCounterJob = 0; |
1197 buildJob() { | 1264 buildJob() { |
1198 var o = new api.Job(); | 1265 var o = new api.Job(); |
1199 buildCounterJob++; | 1266 buildCounterJob++; |
1200 if (buildCounterJob < 3) { | 1267 if (buildCounterJob < 3) { |
1201 o.clientRequestId = "foo"; | 1268 o.clientRequestId = "foo"; |
1202 o.createTime = "foo"; | 1269 o.createTime = "foo"; |
1203 o.currentState = "foo"; | 1270 o.currentState = "foo"; |
1204 o.currentStateTime = "foo"; | 1271 o.currentStateTime = "foo"; |
1205 o.environment = buildEnvironment(); | 1272 o.environment = buildEnvironment(); |
1206 o.executionInfo = buildJobExecutionInfo(); | 1273 o.executionInfo = buildJobExecutionInfo(); |
1207 o.id = "foo"; | 1274 o.id = "foo"; |
1208 o.labels = buildUnnamed3103(); | 1275 o.labels = buildUnnamed3106(); |
1209 o.location = "foo"; | 1276 o.location = "foo"; |
1210 o.name = "foo"; | 1277 o.name = "foo"; |
1211 o.pipelineDescription = buildPipelineDescription(); | 1278 o.pipelineDescription = buildPipelineDescription(); |
1212 o.projectId = "foo"; | 1279 o.projectId = "foo"; |
1213 o.replaceJobId = "foo"; | 1280 o.replaceJobId = "foo"; |
1214 o.replacedByJobId = "foo"; | 1281 o.replacedByJobId = "foo"; |
1215 o.requestedState = "foo"; | 1282 o.requestedState = "foo"; |
1216 o.steps = buildUnnamed3104(); | 1283 o.stageStates = buildUnnamed3107(); |
1217 o.tempFiles = buildUnnamed3105(); | 1284 o.steps = buildUnnamed3108(); |
1218 o.transformNameMapping = buildUnnamed3106(); | 1285 o.tempFiles = buildUnnamed3109(); |
| 1286 o.transformNameMapping = buildUnnamed3110(); |
1219 o.type = "foo"; | 1287 o.type = "foo"; |
1220 } | 1288 } |
1221 buildCounterJob--; | 1289 buildCounterJob--; |
1222 return o; | 1290 return o; |
1223 } | 1291 } |
1224 | 1292 |
1225 checkJob(api.Job o) { | 1293 checkJob(api.Job o) { |
1226 buildCounterJob++; | 1294 buildCounterJob++; |
1227 if (buildCounterJob < 3) { | 1295 if (buildCounterJob < 3) { |
1228 unittest.expect(o.clientRequestId, unittest.equals('foo')); | 1296 unittest.expect(o.clientRequestId, unittest.equals('foo')); |
1229 unittest.expect(o.createTime, unittest.equals('foo')); | 1297 unittest.expect(o.createTime, unittest.equals('foo')); |
1230 unittest.expect(o.currentState, unittest.equals('foo')); | 1298 unittest.expect(o.currentState, unittest.equals('foo')); |
1231 unittest.expect(o.currentStateTime, unittest.equals('foo')); | 1299 unittest.expect(o.currentStateTime, unittest.equals('foo')); |
1232 checkEnvironment(o.environment); | 1300 checkEnvironment(o.environment); |
1233 checkJobExecutionInfo(o.executionInfo); | 1301 checkJobExecutionInfo(o.executionInfo); |
1234 unittest.expect(o.id, unittest.equals('foo')); | 1302 unittest.expect(o.id, unittest.equals('foo')); |
1235 checkUnnamed3103(o.labels); | 1303 checkUnnamed3106(o.labels); |
1236 unittest.expect(o.location, unittest.equals('foo')); | 1304 unittest.expect(o.location, unittest.equals('foo')); |
1237 unittest.expect(o.name, unittest.equals('foo')); | 1305 unittest.expect(o.name, unittest.equals('foo')); |
1238 checkPipelineDescription(o.pipelineDescription); | 1306 checkPipelineDescription(o.pipelineDescription); |
1239 unittest.expect(o.projectId, unittest.equals('foo')); | 1307 unittest.expect(o.projectId, unittest.equals('foo')); |
1240 unittest.expect(o.replaceJobId, unittest.equals('foo')); | 1308 unittest.expect(o.replaceJobId, unittest.equals('foo')); |
1241 unittest.expect(o.replacedByJobId, unittest.equals('foo')); | 1309 unittest.expect(o.replacedByJobId, unittest.equals('foo')); |
1242 unittest.expect(o.requestedState, unittest.equals('foo')); | 1310 unittest.expect(o.requestedState, unittest.equals('foo')); |
1243 checkUnnamed3104(o.steps); | 1311 checkUnnamed3107(o.stageStates); |
1244 checkUnnamed3105(o.tempFiles); | 1312 checkUnnamed3108(o.steps); |
1245 checkUnnamed3106(o.transformNameMapping); | 1313 checkUnnamed3109(o.tempFiles); |
| 1314 checkUnnamed3110(o.transformNameMapping); |
1246 unittest.expect(o.type, unittest.equals('foo')); | 1315 unittest.expect(o.type, unittest.equals('foo')); |
1247 } | 1316 } |
1248 buildCounterJob--; | 1317 buildCounterJob--; |
1249 } | 1318 } |
1250 | 1319 |
1251 buildUnnamed3107() { | 1320 buildUnnamed3111() { |
1252 var o = new core.Map<core.String, api.JobExecutionStageInfo>(); | 1321 var o = new core.Map<core.String, api.JobExecutionStageInfo>(); |
1253 o["x"] = buildJobExecutionStageInfo(); | 1322 o["x"] = buildJobExecutionStageInfo(); |
1254 o["y"] = buildJobExecutionStageInfo(); | 1323 o["y"] = buildJobExecutionStageInfo(); |
1255 return o; | 1324 return o; |
1256 } | 1325 } |
1257 | 1326 |
1258 checkUnnamed3107(core.Map<core.String, api.JobExecutionStageInfo> o) { | 1327 checkUnnamed3111(core.Map<core.String, api.JobExecutionStageInfo> o) { |
1259 unittest.expect(o, unittest.hasLength(2)); | 1328 unittest.expect(o, unittest.hasLength(2)); |
1260 checkJobExecutionStageInfo(o["x"]); | 1329 checkJobExecutionStageInfo(o["x"]); |
1261 checkJobExecutionStageInfo(o["y"]); | 1330 checkJobExecutionStageInfo(o["y"]); |
1262 } | 1331 } |
1263 | 1332 |
1264 core.int buildCounterJobExecutionInfo = 0; | 1333 core.int buildCounterJobExecutionInfo = 0; |
1265 buildJobExecutionInfo() { | 1334 buildJobExecutionInfo() { |
1266 var o = new api.JobExecutionInfo(); | 1335 var o = new api.JobExecutionInfo(); |
1267 buildCounterJobExecutionInfo++; | 1336 buildCounterJobExecutionInfo++; |
1268 if (buildCounterJobExecutionInfo < 3) { | 1337 if (buildCounterJobExecutionInfo < 3) { |
1269 o.stages = buildUnnamed3107(); | 1338 o.stages = buildUnnamed3111(); |
1270 } | 1339 } |
1271 buildCounterJobExecutionInfo--; | 1340 buildCounterJobExecutionInfo--; |
1272 return o; | 1341 return o; |
1273 } | 1342 } |
1274 | 1343 |
1275 checkJobExecutionInfo(api.JobExecutionInfo o) { | 1344 checkJobExecutionInfo(api.JobExecutionInfo o) { |
1276 buildCounterJobExecutionInfo++; | 1345 buildCounterJobExecutionInfo++; |
1277 if (buildCounterJobExecutionInfo < 3) { | 1346 if (buildCounterJobExecutionInfo < 3) { |
1278 checkUnnamed3107(o.stages); | 1347 checkUnnamed3111(o.stages); |
1279 } | 1348 } |
1280 buildCounterJobExecutionInfo--; | 1349 buildCounterJobExecutionInfo--; |
1281 } | 1350 } |
1282 | 1351 |
1283 buildUnnamed3108() { | 1352 buildUnnamed3112() { |
1284 var o = new core.List<core.String>(); | 1353 var o = new core.List<core.String>(); |
1285 o.add("foo"); | 1354 o.add("foo"); |
1286 o.add("foo"); | 1355 o.add("foo"); |
1287 return o; | 1356 return o; |
1288 } | 1357 } |
1289 | 1358 |
1290 checkUnnamed3108(core.List<core.String> o) { | 1359 checkUnnamed3112(core.List<core.String> o) { |
1291 unittest.expect(o, unittest.hasLength(2)); | 1360 unittest.expect(o, unittest.hasLength(2)); |
1292 unittest.expect(o[0], unittest.equals('foo')); | 1361 unittest.expect(o[0], unittest.equals('foo')); |
1293 unittest.expect(o[1], unittest.equals('foo')); | 1362 unittest.expect(o[1], unittest.equals('foo')); |
1294 } | 1363 } |
1295 | 1364 |
1296 core.int buildCounterJobExecutionStageInfo = 0; | 1365 core.int buildCounterJobExecutionStageInfo = 0; |
1297 buildJobExecutionStageInfo() { | 1366 buildJobExecutionStageInfo() { |
1298 var o = new api.JobExecutionStageInfo(); | 1367 var o = new api.JobExecutionStageInfo(); |
1299 buildCounterJobExecutionStageInfo++; | 1368 buildCounterJobExecutionStageInfo++; |
1300 if (buildCounterJobExecutionStageInfo < 3) { | 1369 if (buildCounterJobExecutionStageInfo < 3) { |
1301 o.stepName = buildUnnamed3108(); | 1370 o.stepName = buildUnnamed3112(); |
1302 } | 1371 } |
1303 buildCounterJobExecutionStageInfo--; | 1372 buildCounterJobExecutionStageInfo--; |
1304 return o; | 1373 return o; |
1305 } | 1374 } |
1306 | 1375 |
1307 checkJobExecutionStageInfo(api.JobExecutionStageInfo o) { | 1376 checkJobExecutionStageInfo(api.JobExecutionStageInfo o) { |
1308 buildCounterJobExecutionStageInfo++; | 1377 buildCounterJobExecutionStageInfo++; |
1309 if (buildCounterJobExecutionStageInfo < 3) { | 1378 if (buildCounterJobExecutionStageInfo < 3) { |
1310 checkUnnamed3108(o.stepName); | 1379 checkUnnamed3112(o.stepName); |
1311 } | 1380 } |
1312 buildCounterJobExecutionStageInfo--; | 1381 buildCounterJobExecutionStageInfo--; |
1313 } | 1382 } |
1314 | 1383 |
1315 core.int buildCounterJobMessage = 0; | 1384 core.int buildCounterJobMessage = 0; |
1316 buildJobMessage() { | 1385 buildJobMessage() { |
1317 var o = new api.JobMessage(); | 1386 var o = new api.JobMessage(); |
1318 buildCounterJobMessage++; | 1387 buildCounterJobMessage++; |
1319 if (buildCounterJobMessage < 3) { | 1388 if (buildCounterJobMessage < 3) { |
1320 o.id = "foo"; | 1389 o.id = "foo"; |
1321 o.messageImportance = "foo"; | 1390 o.messageImportance = "foo"; |
1322 o.messageText = "foo"; | 1391 o.messageText = "foo"; |
1323 o.time = "foo"; | 1392 o.time = "foo"; |
1324 } | 1393 } |
1325 buildCounterJobMessage--; | 1394 buildCounterJobMessage--; |
1326 return o; | 1395 return o; |
1327 } | 1396 } |
1328 | 1397 |
1329 checkJobMessage(api.JobMessage o) { | 1398 checkJobMessage(api.JobMessage o) { |
1330 buildCounterJobMessage++; | 1399 buildCounterJobMessage++; |
1331 if (buildCounterJobMessage < 3) { | 1400 if (buildCounterJobMessage < 3) { |
1332 unittest.expect(o.id, unittest.equals('foo')); | 1401 unittest.expect(o.id, unittest.equals('foo')); |
1333 unittest.expect(o.messageImportance, unittest.equals('foo')); | 1402 unittest.expect(o.messageImportance, unittest.equals('foo')); |
1334 unittest.expect(o.messageText, unittest.equals('foo')); | 1403 unittest.expect(o.messageText, unittest.equals('foo')); |
1335 unittest.expect(o.time, unittest.equals('foo')); | 1404 unittest.expect(o.time, unittest.equals('foo')); |
1336 } | 1405 } |
1337 buildCounterJobMessage--; | 1406 buildCounterJobMessage--; |
1338 } | 1407 } |
1339 | 1408 |
1340 buildUnnamed3109() { | 1409 buildUnnamed3113() { |
1341 var o = new core.List<api.MetricUpdate>(); | 1410 var o = new core.List<api.MetricUpdate>(); |
1342 o.add(buildMetricUpdate()); | 1411 o.add(buildMetricUpdate()); |
1343 o.add(buildMetricUpdate()); | 1412 o.add(buildMetricUpdate()); |
1344 return o; | 1413 return o; |
1345 } | 1414 } |
1346 | 1415 |
1347 checkUnnamed3109(core.List<api.MetricUpdate> o) { | 1416 checkUnnamed3113(core.List<api.MetricUpdate> o) { |
1348 unittest.expect(o, unittest.hasLength(2)); | 1417 unittest.expect(o, unittest.hasLength(2)); |
1349 checkMetricUpdate(o[0]); | 1418 checkMetricUpdate(o[0]); |
1350 checkMetricUpdate(o[1]); | 1419 checkMetricUpdate(o[1]); |
1351 } | 1420 } |
1352 | 1421 |
1353 core.int buildCounterJobMetrics = 0; | 1422 core.int buildCounterJobMetrics = 0; |
1354 buildJobMetrics() { | 1423 buildJobMetrics() { |
1355 var o = new api.JobMetrics(); | 1424 var o = new api.JobMetrics(); |
1356 buildCounterJobMetrics++; | 1425 buildCounterJobMetrics++; |
1357 if (buildCounterJobMetrics < 3) { | 1426 if (buildCounterJobMetrics < 3) { |
1358 o.metricTime = "foo"; | 1427 o.metricTime = "foo"; |
1359 o.metrics = buildUnnamed3109(); | 1428 o.metrics = buildUnnamed3113(); |
1360 } | 1429 } |
1361 buildCounterJobMetrics--; | 1430 buildCounterJobMetrics--; |
1362 return o; | 1431 return o; |
1363 } | 1432 } |
1364 | 1433 |
1365 checkJobMetrics(api.JobMetrics o) { | 1434 checkJobMetrics(api.JobMetrics o) { |
1366 buildCounterJobMetrics++; | 1435 buildCounterJobMetrics++; |
1367 if (buildCounterJobMetrics < 3) { | 1436 if (buildCounterJobMetrics < 3) { |
1368 unittest.expect(o.metricTime, unittest.equals('foo')); | 1437 unittest.expect(o.metricTime, unittest.equals('foo')); |
1369 checkUnnamed3109(o.metrics); | 1438 checkUnnamed3113(o.metrics); |
1370 } | 1439 } |
1371 buildCounterJobMetrics--; | 1440 buildCounterJobMetrics--; |
1372 } | 1441 } |
1373 | 1442 |
1374 core.int buildCounterKeyRangeDataDiskAssignment = 0; | 1443 core.int buildCounterKeyRangeDataDiskAssignment = 0; |
1375 buildKeyRangeDataDiskAssignment() { | 1444 buildKeyRangeDataDiskAssignment() { |
1376 var o = new api.KeyRangeDataDiskAssignment(); | 1445 var o = new api.KeyRangeDataDiskAssignment(); |
1377 buildCounterKeyRangeDataDiskAssignment++; | 1446 buildCounterKeyRangeDataDiskAssignment++; |
1378 if (buildCounterKeyRangeDataDiskAssignment < 3) { | 1447 if (buildCounterKeyRangeDataDiskAssignment < 3) { |
1379 o.dataDisk = "foo"; | 1448 o.dataDisk = "foo"; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1414 if (buildCounterKeyRangeLocation < 3) { | 1483 if (buildCounterKeyRangeLocation < 3) { |
1415 unittest.expect(o.dataDisk, unittest.equals('foo')); | 1484 unittest.expect(o.dataDisk, unittest.equals('foo')); |
1416 unittest.expect(o.deliveryEndpoint, unittest.equals('foo')); | 1485 unittest.expect(o.deliveryEndpoint, unittest.equals('foo')); |
1417 unittest.expect(o.deprecatedPersistentDirectory, unittest.equals('foo')); | 1486 unittest.expect(o.deprecatedPersistentDirectory, unittest.equals('foo')); |
1418 unittest.expect(o.end, unittest.equals('foo')); | 1487 unittest.expect(o.end, unittest.equals('foo')); |
1419 unittest.expect(o.start, unittest.equals('foo')); | 1488 unittest.expect(o.start, unittest.equals('foo')); |
1420 } | 1489 } |
1421 buildCounterKeyRangeLocation--; | 1490 buildCounterKeyRangeLocation--; |
1422 } | 1491 } |
1423 | 1492 |
1424 buildUnnamed3110() { | 1493 buildUnnamed3114() { |
1425 var o = new core.Map<core.String, core.String>(); | 1494 var o = new core.Map<core.String, core.String>(); |
1426 o["x"] = "foo"; | 1495 o["x"] = "foo"; |
1427 o["y"] = "foo"; | 1496 o["y"] = "foo"; |
1428 return o; | 1497 return o; |
1429 } | 1498 } |
1430 | 1499 |
1431 checkUnnamed3110(core.Map<core.String, core.String> o) { | 1500 checkUnnamed3114(core.Map<core.String, core.String> o) { |
1432 unittest.expect(o, unittest.hasLength(2)); | 1501 unittest.expect(o, unittest.hasLength(2)); |
1433 unittest.expect(o["x"], unittest.equals('foo')); | 1502 unittest.expect(o["x"], unittest.equals('foo')); |
1434 unittest.expect(o["y"], unittest.equals('foo')); | 1503 unittest.expect(o["y"], unittest.equals('foo')); |
1435 } | 1504 } |
1436 | 1505 |
1437 core.int buildCounterLaunchTemplateParameters = 0; | 1506 core.int buildCounterLaunchTemplateParameters = 0; |
1438 buildLaunchTemplateParameters() { | 1507 buildLaunchTemplateParameters() { |
1439 var o = new api.LaunchTemplateParameters(); | 1508 var o = new api.LaunchTemplateParameters(); |
1440 buildCounterLaunchTemplateParameters++; | 1509 buildCounterLaunchTemplateParameters++; |
1441 if (buildCounterLaunchTemplateParameters < 3) { | 1510 if (buildCounterLaunchTemplateParameters < 3) { |
1442 o.environment = buildRuntimeEnvironment(); | 1511 o.environment = buildRuntimeEnvironment(); |
1443 o.jobName = "foo"; | 1512 o.jobName = "foo"; |
1444 o.parameters = buildUnnamed3110(); | 1513 o.parameters = buildUnnamed3114(); |
1445 } | 1514 } |
1446 buildCounterLaunchTemplateParameters--; | 1515 buildCounterLaunchTemplateParameters--; |
1447 return o; | 1516 return o; |
1448 } | 1517 } |
1449 | 1518 |
1450 checkLaunchTemplateParameters(api.LaunchTemplateParameters o) { | 1519 checkLaunchTemplateParameters(api.LaunchTemplateParameters o) { |
1451 buildCounterLaunchTemplateParameters++; | 1520 buildCounterLaunchTemplateParameters++; |
1452 if (buildCounterLaunchTemplateParameters < 3) { | 1521 if (buildCounterLaunchTemplateParameters < 3) { |
1453 checkRuntimeEnvironment(o.environment); | 1522 checkRuntimeEnvironment(o.environment); |
1454 unittest.expect(o.jobName, unittest.equals('foo')); | 1523 unittest.expect(o.jobName, unittest.equals('foo')); |
1455 checkUnnamed3110(o.parameters); | 1524 checkUnnamed3114(o.parameters); |
1456 } | 1525 } |
1457 buildCounterLaunchTemplateParameters--; | 1526 buildCounterLaunchTemplateParameters--; |
1458 } | 1527 } |
1459 | 1528 |
1460 core.int buildCounterLaunchTemplateResponse = 0; | 1529 core.int buildCounterLaunchTemplateResponse = 0; |
1461 buildLaunchTemplateResponse() { | 1530 buildLaunchTemplateResponse() { |
1462 var o = new api.LaunchTemplateResponse(); | 1531 var o = new api.LaunchTemplateResponse(); |
1463 buildCounterLaunchTemplateResponse++; | 1532 buildCounterLaunchTemplateResponse++; |
1464 if (buildCounterLaunchTemplateResponse < 3) { | 1533 if (buildCounterLaunchTemplateResponse < 3) { |
1465 o.job = buildJob(); | 1534 o.job = buildJob(); |
1466 } | 1535 } |
1467 buildCounterLaunchTemplateResponse--; | 1536 buildCounterLaunchTemplateResponse--; |
1468 return o; | 1537 return o; |
1469 } | 1538 } |
1470 | 1539 |
1471 checkLaunchTemplateResponse(api.LaunchTemplateResponse o) { | 1540 checkLaunchTemplateResponse(api.LaunchTemplateResponse o) { |
1472 buildCounterLaunchTemplateResponse++; | 1541 buildCounterLaunchTemplateResponse++; |
1473 if (buildCounterLaunchTemplateResponse < 3) { | 1542 if (buildCounterLaunchTemplateResponse < 3) { |
1474 checkJob(o.job); | 1543 checkJob(o.job); |
1475 } | 1544 } |
1476 buildCounterLaunchTemplateResponse--; | 1545 buildCounterLaunchTemplateResponse--; |
1477 } | 1546 } |
1478 | 1547 |
1479 buildUnnamed3111() { | 1548 buildUnnamed3115() { |
1480 var o = new core.List<core.String>(); | 1549 var o = new core.List<core.String>(); |
1481 o.add("foo"); | 1550 o.add("foo"); |
1482 o.add("foo"); | 1551 o.add("foo"); |
1483 return o; | 1552 return o; |
1484 } | 1553 } |
1485 | 1554 |
1486 checkUnnamed3111(core.List<core.String> o) { | 1555 checkUnnamed3115(core.List<core.String> o) { |
1487 unittest.expect(o, unittest.hasLength(2)); | 1556 unittest.expect(o, unittest.hasLength(2)); |
1488 unittest.expect(o[0], unittest.equals('foo')); | 1557 unittest.expect(o[0], unittest.equals('foo')); |
1489 unittest.expect(o[1], unittest.equals('foo')); | 1558 unittest.expect(o[1], unittest.equals('foo')); |
1490 } | 1559 } |
1491 | 1560 |
1492 buildUnnamed3112() { | 1561 buildUnnamed3116() { |
1493 var o = new core.List<core.String>(); | 1562 var o = new core.List<core.String>(); |
1494 o.add("foo"); | 1563 o.add("foo"); |
1495 o.add("foo"); | 1564 o.add("foo"); |
1496 return o; | 1565 return o; |
1497 } | 1566 } |
1498 | 1567 |
1499 checkUnnamed3112(core.List<core.String> o) { | 1568 checkUnnamed3116(core.List<core.String> o) { |
1500 unittest.expect(o, unittest.hasLength(2)); | 1569 unittest.expect(o, unittest.hasLength(2)); |
1501 unittest.expect(o[0], unittest.equals('foo')); | 1570 unittest.expect(o[0], unittest.equals('foo')); |
1502 unittest.expect(o[1], unittest.equals('foo')); | 1571 unittest.expect(o[1], unittest.equals('foo')); |
1503 } | 1572 } |
1504 | 1573 |
1505 core.int buildCounterLeaseWorkItemRequest = 0; | 1574 core.int buildCounterLeaseWorkItemRequest = 0; |
1506 buildLeaseWorkItemRequest() { | 1575 buildLeaseWorkItemRequest() { |
1507 var o = new api.LeaseWorkItemRequest(); | 1576 var o = new api.LeaseWorkItemRequest(); |
1508 buildCounterLeaseWorkItemRequest++; | 1577 buildCounterLeaseWorkItemRequest++; |
1509 if (buildCounterLeaseWorkItemRequest < 3) { | 1578 if (buildCounterLeaseWorkItemRequest < 3) { |
1510 o.currentWorkerTime = "foo"; | 1579 o.currentWorkerTime = "foo"; |
1511 o.location = "foo"; | 1580 o.location = "foo"; |
1512 o.requestedLeaseDuration = "foo"; | 1581 o.requestedLeaseDuration = "foo"; |
1513 o.workItemTypes = buildUnnamed3111(); | 1582 o.workItemTypes = buildUnnamed3115(); |
1514 o.workerCapabilities = buildUnnamed3112(); | 1583 o.workerCapabilities = buildUnnamed3116(); |
1515 o.workerId = "foo"; | 1584 o.workerId = "foo"; |
1516 } | 1585 } |
1517 buildCounterLeaseWorkItemRequest--; | 1586 buildCounterLeaseWorkItemRequest--; |
1518 return o; | 1587 return o; |
1519 } | 1588 } |
1520 | 1589 |
1521 checkLeaseWorkItemRequest(api.LeaseWorkItemRequest o) { | 1590 checkLeaseWorkItemRequest(api.LeaseWorkItemRequest o) { |
1522 buildCounterLeaseWorkItemRequest++; | 1591 buildCounterLeaseWorkItemRequest++; |
1523 if (buildCounterLeaseWorkItemRequest < 3) { | 1592 if (buildCounterLeaseWorkItemRequest < 3) { |
1524 unittest.expect(o.currentWorkerTime, unittest.equals('foo')); | 1593 unittest.expect(o.currentWorkerTime, unittest.equals('foo')); |
1525 unittest.expect(o.location, unittest.equals('foo')); | 1594 unittest.expect(o.location, unittest.equals('foo')); |
1526 unittest.expect(o.requestedLeaseDuration, unittest.equals('foo')); | 1595 unittest.expect(o.requestedLeaseDuration, unittest.equals('foo')); |
1527 checkUnnamed3111(o.workItemTypes); | 1596 checkUnnamed3115(o.workItemTypes); |
1528 checkUnnamed3112(o.workerCapabilities); | 1597 checkUnnamed3116(o.workerCapabilities); |
1529 unittest.expect(o.workerId, unittest.equals('foo')); | 1598 unittest.expect(o.workerId, unittest.equals('foo')); |
1530 } | 1599 } |
1531 buildCounterLeaseWorkItemRequest--; | 1600 buildCounterLeaseWorkItemRequest--; |
1532 } | 1601 } |
1533 | 1602 |
1534 buildUnnamed3113() { | 1603 buildUnnamed3117() { |
1535 var o = new core.List<api.WorkItem>(); | 1604 var o = new core.List<api.WorkItem>(); |
1536 o.add(buildWorkItem()); | 1605 o.add(buildWorkItem()); |
1537 o.add(buildWorkItem()); | 1606 o.add(buildWorkItem()); |
1538 return o; | 1607 return o; |
1539 } | 1608 } |
1540 | 1609 |
1541 checkUnnamed3113(core.List<api.WorkItem> o) { | 1610 checkUnnamed3117(core.List<api.WorkItem> o) { |
1542 unittest.expect(o, unittest.hasLength(2)); | 1611 unittest.expect(o, unittest.hasLength(2)); |
1543 checkWorkItem(o[0]); | 1612 checkWorkItem(o[0]); |
1544 checkWorkItem(o[1]); | 1613 checkWorkItem(o[1]); |
1545 } | 1614 } |
1546 | 1615 |
1547 core.int buildCounterLeaseWorkItemResponse = 0; | 1616 core.int buildCounterLeaseWorkItemResponse = 0; |
1548 buildLeaseWorkItemResponse() { | 1617 buildLeaseWorkItemResponse() { |
1549 var o = new api.LeaseWorkItemResponse(); | 1618 var o = new api.LeaseWorkItemResponse(); |
1550 buildCounterLeaseWorkItemResponse++; | 1619 buildCounterLeaseWorkItemResponse++; |
1551 if (buildCounterLeaseWorkItemResponse < 3) { | 1620 if (buildCounterLeaseWorkItemResponse < 3) { |
1552 o.workItems = buildUnnamed3113(); | 1621 o.workItems = buildUnnamed3117(); |
1553 } | 1622 } |
1554 buildCounterLeaseWorkItemResponse--; | 1623 buildCounterLeaseWorkItemResponse--; |
1555 return o; | 1624 return o; |
1556 } | 1625 } |
1557 | 1626 |
1558 checkLeaseWorkItemResponse(api.LeaseWorkItemResponse o) { | 1627 checkLeaseWorkItemResponse(api.LeaseWorkItemResponse o) { |
1559 buildCounterLeaseWorkItemResponse++; | 1628 buildCounterLeaseWorkItemResponse++; |
1560 if (buildCounterLeaseWorkItemResponse < 3) { | 1629 if (buildCounterLeaseWorkItemResponse < 3) { |
1561 checkUnnamed3113(o.workItems); | 1630 checkUnnamed3117(o.workItems); |
1562 } | 1631 } |
1563 buildCounterLeaseWorkItemResponse--; | 1632 buildCounterLeaseWorkItemResponse--; |
1564 } | 1633 } |
1565 | 1634 |
1566 buildUnnamed3114() { | 1635 buildUnnamed3118() { |
| 1636 var o = new core.List<api.AutoscalingEvent>(); |
| 1637 o.add(buildAutoscalingEvent()); |
| 1638 o.add(buildAutoscalingEvent()); |
| 1639 return o; |
| 1640 } |
| 1641 |
| 1642 checkUnnamed3118(core.List<api.AutoscalingEvent> o) { |
| 1643 unittest.expect(o, unittest.hasLength(2)); |
| 1644 checkAutoscalingEvent(o[0]); |
| 1645 checkAutoscalingEvent(o[1]); |
| 1646 } |
| 1647 |
| 1648 buildUnnamed3119() { |
1567 var o = new core.List<api.JobMessage>(); | 1649 var o = new core.List<api.JobMessage>(); |
1568 o.add(buildJobMessage()); | 1650 o.add(buildJobMessage()); |
1569 o.add(buildJobMessage()); | 1651 o.add(buildJobMessage()); |
1570 return o; | 1652 return o; |
1571 } | 1653 } |
1572 | 1654 |
1573 checkUnnamed3114(core.List<api.JobMessage> o) { | 1655 checkUnnamed3119(core.List<api.JobMessage> o) { |
1574 unittest.expect(o, unittest.hasLength(2)); | 1656 unittest.expect(o, unittest.hasLength(2)); |
1575 checkJobMessage(o[0]); | 1657 checkJobMessage(o[0]); |
1576 checkJobMessage(o[1]); | 1658 checkJobMessage(o[1]); |
1577 } | 1659 } |
1578 | 1660 |
1579 core.int buildCounterListJobMessagesResponse = 0; | 1661 core.int buildCounterListJobMessagesResponse = 0; |
1580 buildListJobMessagesResponse() { | 1662 buildListJobMessagesResponse() { |
1581 var o = new api.ListJobMessagesResponse(); | 1663 var o = new api.ListJobMessagesResponse(); |
1582 buildCounterListJobMessagesResponse++; | 1664 buildCounterListJobMessagesResponse++; |
1583 if (buildCounterListJobMessagesResponse < 3) { | 1665 if (buildCounterListJobMessagesResponse < 3) { |
1584 o.jobMessages = buildUnnamed3114(); | 1666 o.autoscalingEvents = buildUnnamed3118(); |
| 1667 o.jobMessages = buildUnnamed3119(); |
1585 o.nextPageToken = "foo"; | 1668 o.nextPageToken = "foo"; |
1586 } | 1669 } |
1587 buildCounterListJobMessagesResponse--; | 1670 buildCounterListJobMessagesResponse--; |
1588 return o; | 1671 return o; |
1589 } | 1672 } |
1590 | 1673 |
1591 checkListJobMessagesResponse(api.ListJobMessagesResponse o) { | 1674 checkListJobMessagesResponse(api.ListJobMessagesResponse o) { |
1592 buildCounterListJobMessagesResponse++; | 1675 buildCounterListJobMessagesResponse++; |
1593 if (buildCounterListJobMessagesResponse < 3) { | 1676 if (buildCounterListJobMessagesResponse < 3) { |
1594 checkUnnamed3114(o.jobMessages); | 1677 checkUnnamed3118(o.autoscalingEvents); |
| 1678 checkUnnamed3119(o.jobMessages); |
1595 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1679 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1596 } | 1680 } |
1597 buildCounterListJobMessagesResponse--; | 1681 buildCounterListJobMessagesResponse--; |
1598 } | 1682 } |
1599 | 1683 |
1600 buildUnnamed3115() { | 1684 buildUnnamed3120() { |
1601 var o = new core.List<api.FailedLocation>(); | 1685 var o = new core.List<api.FailedLocation>(); |
1602 o.add(buildFailedLocation()); | 1686 o.add(buildFailedLocation()); |
1603 o.add(buildFailedLocation()); | 1687 o.add(buildFailedLocation()); |
1604 return o; | 1688 return o; |
1605 } | 1689 } |
1606 | 1690 |
1607 checkUnnamed3115(core.List<api.FailedLocation> o) { | 1691 checkUnnamed3120(core.List<api.FailedLocation> o) { |
1608 unittest.expect(o, unittest.hasLength(2)); | 1692 unittest.expect(o, unittest.hasLength(2)); |
1609 checkFailedLocation(o[0]); | 1693 checkFailedLocation(o[0]); |
1610 checkFailedLocation(o[1]); | 1694 checkFailedLocation(o[1]); |
1611 } | 1695 } |
1612 | 1696 |
1613 buildUnnamed3116() { | 1697 buildUnnamed3121() { |
1614 var o = new core.List<api.Job>(); | 1698 var o = new core.List<api.Job>(); |
1615 o.add(buildJob()); | 1699 o.add(buildJob()); |
1616 o.add(buildJob()); | 1700 o.add(buildJob()); |
1617 return o; | 1701 return o; |
1618 } | 1702 } |
1619 | 1703 |
1620 checkUnnamed3116(core.List<api.Job> o) { | 1704 checkUnnamed3121(core.List<api.Job> o) { |
1621 unittest.expect(o, unittest.hasLength(2)); | 1705 unittest.expect(o, unittest.hasLength(2)); |
1622 checkJob(o[0]); | 1706 checkJob(o[0]); |
1623 checkJob(o[1]); | 1707 checkJob(o[1]); |
1624 } | 1708 } |
1625 | 1709 |
1626 core.int buildCounterListJobsResponse = 0; | 1710 core.int buildCounterListJobsResponse = 0; |
1627 buildListJobsResponse() { | 1711 buildListJobsResponse() { |
1628 var o = new api.ListJobsResponse(); | 1712 var o = new api.ListJobsResponse(); |
1629 buildCounterListJobsResponse++; | 1713 buildCounterListJobsResponse++; |
1630 if (buildCounterListJobsResponse < 3) { | 1714 if (buildCounterListJobsResponse < 3) { |
1631 o.failedLocation = buildUnnamed3115(); | 1715 o.failedLocation = buildUnnamed3120(); |
1632 o.jobs = buildUnnamed3116(); | 1716 o.jobs = buildUnnamed3121(); |
1633 o.nextPageToken = "foo"; | 1717 o.nextPageToken = "foo"; |
1634 } | 1718 } |
1635 buildCounterListJobsResponse--; | 1719 buildCounterListJobsResponse--; |
1636 return o; | 1720 return o; |
1637 } | 1721 } |
1638 | 1722 |
1639 checkListJobsResponse(api.ListJobsResponse o) { | 1723 checkListJobsResponse(api.ListJobsResponse o) { |
1640 buildCounterListJobsResponse++; | 1724 buildCounterListJobsResponse++; |
1641 if (buildCounterListJobsResponse < 3) { | 1725 if (buildCounterListJobsResponse < 3) { |
1642 checkUnnamed3115(o.failedLocation); | 1726 checkUnnamed3120(o.failedLocation); |
1643 checkUnnamed3116(o.jobs); | 1727 checkUnnamed3121(o.jobs); |
1644 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1728 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1645 } | 1729 } |
1646 buildCounterListJobsResponse--; | 1730 buildCounterListJobsResponse--; |
1647 } | 1731 } |
1648 | 1732 |
1649 buildUnnamed3117() { | 1733 buildUnnamed3122() { |
1650 var o = new core.List<api.ParallelInstruction>(); | 1734 var o = new core.List<api.ParallelInstruction>(); |
1651 o.add(buildParallelInstruction()); | 1735 o.add(buildParallelInstruction()); |
1652 o.add(buildParallelInstruction()); | 1736 o.add(buildParallelInstruction()); |
1653 return o; | 1737 return o; |
1654 } | 1738 } |
1655 | 1739 |
1656 checkUnnamed3117(core.List<api.ParallelInstruction> o) { | 1740 checkUnnamed3122(core.List<api.ParallelInstruction> o) { |
1657 unittest.expect(o, unittest.hasLength(2)); | 1741 unittest.expect(o, unittest.hasLength(2)); |
1658 checkParallelInstruction(o[0]); | 1742 checkParallelInstruction(o[0]); |
1659 checkParallelInstruction(o[1]); | 1743 checkParallelInstruction(o[1]); |
1660 } | 1744 } |
1661 | 1745 |
1662 core.int buildCounterMapTask = 0; | 1746 core.int buildCounterMapTask = 0; |
1663 buildMapTask() { | 1747 buildMapTask() { |
1664 var o = new api.MapTask(); | 1748 var o = new api.MapTask(); |
1665 buildCounterMapTask++; | 1749 buildCounterMapTask++; |
1666 if (buildCounterMapTask < 3) { | 1750 if (buildCounterMapTask < 3) { |
1667 o.instructions = buildUnnamed3117(); | 1751 o.instructions = buildUnnamed3122(); |
1668 o.stageName = "foo"; | 1752 o.stageName = "foo"; |
1669 o.systemName = "foo"; | 1753 o.systemName = "foo"; |
1670 } | 1754 } |
1671 buildCounterMapTask--; | 1755 buildCounterMapTask--; |
1672 return o; | 1756 return o; |
1673 } | 1757 } |
1674 | 1758 |
1675 checkMapTask(api.MapTask o) { | 1759 checkMapTask(api.MapTask o) { |
1676 buildCounterMapTask++; | 1760 buildCounterMapTask++; |
1677 if (buildCounterMapTask < 3) { | 1761 if (buildCounterMapTask < 3) { |
1678 checkUnnamed3117(o.instructions); | 1762 checkUnnamed3122(o.instructions); |
1679 unittest.expect(o.stageName, unittest.equals('foo')); | 1763 unittest.expect(o.stageName, unittest.equals('foo')); |
1680 unittest.expect(o.systemName, unittest.equals('foo')); | 1764 unittest.expect(o.systemName, unittest.equals('foo')); |
1681 } | 1765 } |
1682 buildCounterMapTask--; | 1766 buildCounterMapTask--; |
1683 } | 1767 } |
1684 | 1768 |
1685 core.int buildCounterMetricShortId = 0; | 1769 core.int buildCounterMetricShortId = 0; |
1686 buildMetricShortId() { | 1770 buildMetricShortId() { |
1687 var o = new api.MetricShortId(); | 1771 var o = new api.MetricShortId(); |
1688 buildCounterMetricShortId++; | 1772 buildCounterMetricShortId++; |
1689 if (buildCounterMetricShortId < 3) { | 1773 if (buildCounterMetricShortId < 3) { |
1690 o.metricIndex = 42; | 1774 o.metricIndex = 42; |
1691 o.shortId = "foo"; | 1775 o.shortId = "foo"; |
1692 } | 1776 } |
1693 buildCounterMetricShortId--; | 1777 buildCounterMetricShortId--; |
1694 return o; | 1778 return o; |
1695 } | 1779 } |
1696 | 1780 |
1697 checkMetricShortId(api.MetricShortId o) { | 1781 checkMetricShortId(api.MetricShortId o) { |
1698 buildCounterMetricShortId++; | 1782 buildCounterMetricShortId++; |
1699 if (buildCounterMetricShortId < 3) { | 1783 if (buildCounterMetricShortId < 3) { |
1700 unittest.expect(o.metricIndex, unittest.equals(42)); | 1784 unittest.expect(o.metricIndex, unittest.equals(42)); |
1701 unittest.expect(o.shortId, unittest.equals('foo')); | 1785 unittest.expect(o.shortId, unittest.equals('foo')); |
1702 } | 1786 } |
1703 buildCounterMetricShortId--; | 1787 buildCounterMetricShortId--; |
1704 } | 1788 } |
1705 | 1789 |
1706 buildUnnamed3118() { | 1790 buildUnnamed3123() { |
1707 var o = new core.Map<core.String, core.String>(); | 1791 var o = new core.Map<core.String, core.String>(); |
1708 o["x"] = "foo"; | 1792 o["x"] = "foo"; |
1709 o["y"] = "foo"; | 1793 o["y"] = "foo"; |
1710 return o; | 1794 return o; |
1711 } | 1795 } |
1712 | 1796 |
1713 checkUnnamed3118(core.Map<core.String, core.String> o) { | 1797 checkUnnamed3123(core.Map<core.String, core.String> o) { |
1714 unittest.expect(o, unittest.hasLength(2)); | 1798 unittest.expect(o, unittest.hasLength(2)); |
1715 unittest.expect(o["x"], unittest.equals('foo')); | 1799 unittest.expect(o["x"], unittest.equals('foo')); |
1716 unittest.expect(o["y"], unittest.equals('foo')); | 1800 unittest.expect(o["y"], unittest.equals('foo')); |
1717 } | 1801 } |
1718 | 1802 |
1719 core.int buildCounterMetricStructuredName = 0; | 1803 core.int buildCounterMetricStructuredName = 0; |
1720 buildMetricStructuredName() { | 1804 buildMetricStructuredName() { |
1721 var o = new api.MetricStructuredName(); | 1805 var o = new api.MetricStructuredName(); |
1722 buildCounterMetricStructuredName++; | 1806 buildCounterMetricStructuredName++; |
1723 if (buildCounterMetricStructuredName < 3) { | 1807 if (buildCounterMetricStructuredName < 3) { |
1724 o.context = buildUnnamed3118(); | 1808 o.context = buildUnnamed3123(); |
1725 o.name = "foo"; | 1809 o.name = "foo"; |
1726 o.origin = "foo"; | 1810 o.origin = "foo"; |
1727 } | 1811 } |
1728 buildCounterMetricStructuredName--; | 1812 buildCounterMetricStructuredName--; |
1729 return o; | 1813 return o; |
1730 } | 1814 } |
1731 | 1815 |
1732 checkMetricStructuredName(api.MetricStructuredName o) { | 1816 checkMetricStructuredName(api.MetricStructuredName o) { |
1733 buildCounterMetricStructuredName++; | 1817 buildCounterMetricStructuredName++; |
1734 if (buildCounterMetricStructuredName < 3) { | 1818 if (buildCounterMetricStructuredName < 3) { |
1735 checkUnnamed3118(o.context); | 1819 checkUnnamed3123(o.context); |
1736 unittest.expect(o.name, unittest.equals('foo')); | 1820 unittest.expect(o.name, unittest.equals('foo')); |
1737 unittest.expect(o.origin, unittest.equals('foo')); | 1821 unittest.expect(o.origin, unittest.equals('foo')); |
1738 } | 1822 } |
1739 buildCounterMetricStructuredName--; | 1823 buildCounterMetricStructuredName--; |
1740 } | 1824 } |
1741 | 1825 |
1742 core.int buildCounterMetricUpdate = 0; | 1826 core.int buildCounterMetricUpdate = 0; |
1743 buildMetricUpdate() { | 1827 buildMetricUpdate() { |
1744 var o = new api.MetricUpdate(); | 1828 var o = new api.MetricUpdate(); |
1745 buildCounterMetricUpdate++; | 1829 buildCounterMetricUpdate++; |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1847 | 1931 |
1848 checkPackage(api.Package o) { | 1932 checkPackage(api.Package o) { |
1849 buildCounterPackage++; | 1933 buildCounterPackage++; |
1850 if (buildCounterPackage < 3) { | 1934 if (buildCounterPackage < 3) { |
1851 unittest.expect(o.location, unittest.equals('foo')); | 1935 unittest.expect(o.location, unittest.equals('foo')); |
1852 unittest.expect(o.name, unittest.equals('foo')); | 1936 unittest.expect(o.name, unittest.equals('foo')); |
1853 } | 1937 } |
1854 buildCounterPackage--; | 1938 buildCounterPackage--; |
1855 } | 1939 } |
1856 | 1940 |
1857 buildUnnamed3119() { | 1941 buildUnnamed3124() { |
1858 var o = new core.List<api.MultiOutputInfo>(); | 1942 var o = new core.List<api.MultiOutputInfo>(); |
1859 o.add(buildMultiOutputInfo()); | 1943 o.add(buildMultiOutputInfo()); |
1860 o.add(buildMultiOutputInfo()); | 1944 o.add(buildMultiOutputInfo()); |
1861 return o; | 1945 return o; |
1862 } | 1946 } |
1863 | 1947 |
1864 checkUnnamed3119(core.List<api.MultiOutputInfo> o) { | 1948 checkUnnamed3124(core.List<api.MultiOutputInfo> o) { |
1865 unittest.expect(o, unittest.hasLength(2)); | 1949 unittest.expect(o, unittest.hasLength(2)); |
1866 checkMultiOutputInfo(o[0]); | 1950 checkMultiOutputInfo(o[0]); |
1867 checkMultiOutputInfo(o[1]); | 1951 checkMultiOutputInfo(o[1]); |
1868 } | 1952 } |
1869 | 1953 |
1870 buildUnnamed3120() { | 1954 buildUnnamed3125() { |
1871 var o = new core.List<api.SideInputInfo>(); | 1955 var o = new core.List<api.SideInputInfo>(); |
1872 o.add(buildSideInputInfo()); | 1956 o.add(buildSideInputInfo()); |
1873 o.add(buildSideInputInfo()); | 1957 o.add(buildSideInputInfo()); |
1874 return o; | 1958 return o; |
1875 } | 1959 } |
1876 | 1960 |
1877 checkUnnamed3120(core.List<api.SideInputInfo> o) { | 1961 checkUnnamed3125(core.List<api.SideInputInfo> o) { |
1878 unittest.expect(o, unittest.hasLength(2)); | 1962 unittest.expect(o, unittest.hasLength(2)); |
1879 checkSideInputInfo(o[0]); | 1963 checkSideInputInfo(o[0]); |
1880 checkSideInputInfo(o[1]); | 1964 checkSideInputInfo(o[1]); |
1881 } | 1965 } |
1882 | 1966 |
1883 buildUnnamed3121() { | 1967 buildUnnamed3126() { |
1884 var o = new core.Map<core.String, core.Object>(); | 1968 var o = new core.Map<core.String, core.Object>(); |
1885 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1969 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1886 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1970 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1887 return o; | 1971 return o; |
1888 } | 1972 } |
1889 | 1973 |
1890 checkUnnamed3121(core.Map<core.String, core.Object> o) { | 1974 checkUnnamed3126(core.Map<core.String, core.Object> o) { |
1891 unittest.expect(o, unittest.hasLength(2)); | 1975 unittest.expect(o, unittest.hasLength(2)); |
1892 var casted17 = (o["x"]) as core.Map; unittest.expect(casted17, unittest.hasLen
gth(3)); unittest.expect(casted17["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted17["bool"], unittest.equals(true)); unittest.expect(casted17["stri
ng"], unittest.equals('foo')); | 1976 var casted17 = (o["x"]) as core.Map; unittest.expect(casted17, unittest.hasLen
gth(3)); unittest.expect(casted17["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted17["bool"], unittest.equals(true)); unittest.expect(casted17["stri
ng"], unittest.equals('foo')); |
1893 var casted18 = (o["y"]) 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')); | 1977 var casted18 = (o["y"]) 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')); |
1894 } | 1978 } |
1895 | 1979 |
1896 core.int buildCounterParDoInstruction = 0; | 1980 core.int buildCounterParDoInstruction = 0; |
1897 buildParDoInstruction() { | 1981 buildParDoInstruction() { |
1898 var o = new api.ParDoInstruction(); | 1982 var o = new api.ParDoInstruction(); |
1899 buildCounterParDoInstruction++; | 1983 buildCounterParDoInstruction++; |
1900 if (buildCounterParDoInstruction < 3) { | 1984 if (buildCounterParDoInstruction < 3) { |
1901 o.input = buildInstructionInput(); | 1985 o.input = buildInstructionInput(); |
1902 o.multiOutputInfos = buildUnnamed3119(); | 1986 o.multiOutputInfos = buildUnnamed3124(); |
1903 o.numOutputs = 42; | 1987 o.numOutputs = 42; |
1904 o.sideInputs = buildUnnamed3120(); | 1988 o.sideInputs = buildUnnamed3125(); |
1905 o.userFn = buildUnnamed3121(); | 1989 o.userFn = buildUnnamed3126(); |
1906 } | 1990 } |
1907 buildCounterParDoInstruction--; | 1991 buildCounterParDoInstruction--; |
1908 return o; | 1992 return o; |
1909 } | 1993 } |
1910 | 1994 |
1911 checkParDoInstruction(api.ParDoInstruction o) { | 1995 checkParDoInstruction(api.ParDoInstruction o) { |
1912 buildCounterParDoInstruction++; | 1996 buildCounterParDoInstruction++; |
1913 if (buildCounterParDoInstruction < 3) { | 1997 if (buildCounterParDoInstruction < 3) { |
1914 checkInstructionInput(o.input); | 1998 checkInstructionInput(o.input); |
1915 checkUnnamed3119(o.multiOutputInfos); | 1999 checkUnnamed3124(o.multiOutputInfos); |
1916 unittest.expect(o.numOutputs, unittest.equals(42)); | 2000 unittest.expect(o.numOutputs, unittest.equals(42)); |
1917 checkUnnamed3120(o.sideInputs); | 2001 checkUnnamed3125(o.sideInputs); |
1918 checkUnnamed3121(o.userFn); | 2002 checkUnnamed3126(o.userFn); |
1919 } | 2003 } |
1920 buildCounterParDoInstruction--; | 2004 buildCounterParDoInstruction--; |
1921 } | 2005 } |
1922 | 2006 |
1923 buildUnnamed3122() { | 2007 buildUnnamed3127() { |
1924 var o = new core.List<api.InstructionOutput>(); | 2008 var o = new core.List<api.InstructionOutput>(); |
1925 o.add(buildInstructionOutput()); | 2009 o.add(buildInstructionOutput()); |
1926 o.add(buildInstructionOutput()); | 2010 o.add(buildInstructionOutput()); |
1927 return o; | 2011 return o; |
1928 } | 2012 } |
1929 | 2013 |
1930 checkUnnamed3122(core.List<api.InstructionOutput> o) { | 2014 checkUnnamed3127(core.List<api.InstructionOutput> o) { |
1931 unittest.expect(o, unittest.hasLength(2)); | 2015 unittest.expect(o, unittest.hasLength(2)); |
1932 checkInstructionOutput(o[0]); | 2016 checkInstructionOutput(o[0]); |
1933 checkInstructionOutput(o[1]); | 2017 checkInstructionOutput(o[1]); |
1934 } | 2018 } |
1935 | 2019 |
1936 core.int buildCounterParallelInstruction = 0; | 2020 core.int buildCounterParallelInstruction = 0; |
1937 buildParallelInstruction() { | 2021 buildParallelInstruction() { |
1938 var o = new api.ParallelInstruction(); | 2022 var o = new api.ParallelInstruction(); |
1939 buildCounterParallelInstruction++; | 2023 buildCounterParallelInstruction++; |
1940 if (buildCounterParallelInstruction < 3) { | 2024 if (buildCounterParallelInstruction < 3) { |
1941 o.flatten = buildFlattenInstruction(); | 2025 o.flatten = buildFlattenInstruction(); |
1942 o.name = "foo"; | 2026 o.name = "foo"; |
1943 o.originalName = "foo"; | 2027 o.originalName = "foo"; |
1944 o.outputs = buildUnnamed3122(); | 2028 o.outputs = buildUnnamed3127(); |
1945 o.parDo = buildParDoInstruction(); | 2029 o.parDo = buildParDoInstruction(); |
1946 o.partialGroupByKey = buildPartialGroupByKeyInstruction(); | 2030 o.partialGroupByKey = buildPartialGroupByKeyInstruction(); |
1947 o.read = buildReadInstruction(); | 2031 o.read = buildReadInstruction(); |
1948 o.systemName = "foo"; | 2032 o.systemName = "foo"; |
1949 o.write = buildWriteInstruction(); | 2033 o.write = buildWriteInstruction(); |
1950 } | 2034 } |
1951 buildCounterParallelInstruction--; | 2035 buildCounterParallelInstruction--; |
1952 return o; | 2036 return o; |
1953 } | 2037 } |
1954 | 2038 |
1955 checkParallelInstruction(api.ParallelInstruction o) { | 2039 checkParallelInstruction(api.ParallelInstruction o) { |
1956 buildCounterParallelInstruction++; | 2040 buildCounterParallelInstruction++; |
1957 if (buildCounterParallelInstruction < 3) { | 2041 if (buildCounterParallelInstruction < 3) { |
1958 checkFlattenInstruction(o.flatten); | 2042 checkFlattenInstruction(o.flatten); |
1959 unittest.expect(o.name, unittest.equals('foo')); | 2043 unittest.expect(o.name, unittest.equals('foo')); |
1960 unittest.expect(o.originalName, unittest.equals('foo')); | 2044 unittest.expect(o.originalName, unittest.equals('foo')); |
1961 checkUnnamed3122(o.outputs); | 2045 checkUnnamed3127(o.outputs); |
1962 checkParDoInstruction(o.parDo); | 2046 checkParDoInstruction(o.parDo); |
1963 checkPartialGroupByKeyInstruction(o.partialGroupByKey); | 2047 checkPartialGroupByKeyInstruction(o.partialGroupByKey); |
1964 checkReadInstruction(o.read); | 2048 checkReadInstruction(o.read); |
1965 unittest.expect(o.systemName, unittest.equals('foo')); | 2049 unittest.expect(o.systemName, unittest.equals('foo')); |
1966 checkWriteInstruction(o.write); | 2050 checkWriteInstruction(o.write); |
1967 } | 2051 } |
1968 buildCounterParallelInstruction--; | 2052 buildCounterParallelInstruction--; |
1969 } | 2053 } |
1970 | 2054 |
1971 buildUnnamed3123() { | 2055 core.int buildCounterParameter = 0; |
| 2056 buildParameter() { |
| 2057 var o = new api.Parameter(); |
| 2058 buildCounterParameter++; |
| 2059 if (buildCounterParameter < 3) { |
| 2060 o.key = "foo"; |
| 2061 o.value = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 2062 } |
| 2063 buildCounterParameter--; |
| 2064 return o; |
| 2065 } |
| 2066 |
| 2067 checkParameter(api.Parameter o) { |
| 2068 buildCounterParameter++; |
| 2069 if (buildCounterParameter < 3) { |
| 2070 unittest.expect(o.key, unittest.equals('foo')); |
| 2071 var casted19 = (o.value) as core.Map; unittest.expect(casted19, unittest.has
Length(3)); unittest.expect(casted19["list"], unittest.equals([1, 2, 3])); unitt
est.expect(casted19["bool"], unittest.equals(true)); unittest.expect(casted19["s
tring"], unittest.equals('foo')); |
| 2072 } |
| 2073 buildCounterParameter--; |
| 2074 } |
| 2075 |
| 2076 buildUnnamed3128() { |
1972 var o = new core.List<core.String>(); | 2077 var o = new core.List<core.String>(); |
1973 o.add("foo"); | 2078 o.add("foo"); |
1974 o.add("foo"); | 2079 o.add("foo"); |
1975 return o; | 2080 return o; |
1976 } | 2081 } |
1977 | 2082 |
1978 checkUnnamed3123(core.List<core.String> o) { | 2083 checkUnnamed3128(core.List<core.String> o) { |
1979 unittest.expect(o, unittest.hasLength(2)); | 2084 unittest.expect(o, unittest.hasLength(2)); |
1980 unittest.expect(o[0], unittest.equals('foo')); | 2085 unittest.expect(o[0], unittest.equals('foo')); |
1981 unittest.expect(o[1], unittest.equals('foo')); | 2086 unittest.expect(o[1], unittest.equals('foo')); |
1982 } | 2087 } |
1983 | 2088 |
1984 core.int buildCounterParameterMetadata = 0; | 2089 core.int buildCounterParameterMetadata = 0; |
1985 buildParameterMetadata() { | 2090 buildParameterMetadata() { |
1986 var o = new api.ParameterMetadata(); | 2091 var o = new api.ParameterMetadata(); |
1987 buildCounterParameterMetadata++; | 2092 buildCounterParameterMetadata++; |
1988 if (buildCounterParameterMetadata < 3) { | 2093 if (buildCounterParameterMetadata < 3) { |
1989 o.helpText = "foo"; | 2094 o.helpText = "foo"; |
1990 o.isOptional = true; | 2095 o.isOptional = true; |
1991 o.label = "foo"; | 2096 o.label = "foo"; |
1992 o.name = "foo"; | 2097 o.name = "foo"; |
1993 o.regexes = buildUnnamed3123(); | 2098 o.regexes = buildUnnamed3128(); |
1994 } | 2099 } |
1995 buildCounterParameterMetadata--; | 2100 buildCounterParameterMetadata--; |
1996 return o; | 2101 return o; |
1997 } | 2102 } |
1998 | 2103 |
1999 checkParameterMetadata(api.ParameterMetadata o) { | 2104 checkParameterMetadata(api.ParameterMetadata o) { |
2000 buildCounterParameterMetadata++; | 2105 buildCounterParameterMetadata++; |
2001 if (buildCounterParameterMetadata < 3) { | 2106 if (buildCounterParameterMetadata < 3) { |
2002 unittest.expect(o.helpText, unittest.equals('foo')); | 2107 unittest.expect(o.helpText, unittest.equals('foo')); |
2003 unittest.expect(o.isOptional, unittest.isTrue); | 2108 unittest.expect(o.isOptional, unittest.isTrue); |
2004 unittest.expect(o.label, unittest.equals('foo')); | 2109 unittest.expect(o.label, unittest.equals('foo')); |
2005 unittest.expect(o.name, unittest.equals('foo')); | 2110 unittest.expect(o.name, unittest.equals('foo')); |
2006 checkUnnamed3123(o.regexes); | 2111 checkUnnamed3128(o.regexes); |
2007 } | 2112 } |
2008 buildCounterParameterMetadata--; | 2113 buildCounterParameterMetadata--; |
2009 } | 2114 } |
2010 | 2115 |
2011 buildUnnamed3124() { | 2116 buildUnnamed3129() { |
2012 var o = new core.Map<core.String, core.Object>(); | 2117 var o = new core.Map<core.String, core.Object>(); |
2013 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2118 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2014 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2119 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2015 return o; | 2120 return o; |
2016 } | 2121 } |
2017 | 2122 |
2018 checkUnnamed3124(core.Map<core.String, core.Object> o) { | 2123 checkUnnamed3129(core.Map<core.String, core.Object> o) { |
2019 unittest.expect(o, unittest.hasLength(2)); | 2124 unittest.expect(o, unittest.hasLength(2)); |
2020 var casted19 = (o["x"]) 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')); | 2125 var casted20 = (o["x"]) as core.Map; unittest.expect(casted20, unittest.hasLen
gth(3)); unittest.expect(casted20["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted20["bool"], unittest.equals(true)); unittest.expect(casted20["stri
ng"], unittest.equals('foo')); |
2021 var casted20 = (o["y"]) as core.Map; unittest.expect(casted20, unittest.hasLen
gth(3)); unittest.expect(casted20["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted20["bool"], unittest.equals(true)); unittest.expect(casted20["stri
ng"], unittest.equals('foo')); | 2126 var casted21 = (o["y"]) 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')); |
2022 } | 2127 } |
2023 | 2128 |
2024 buildUnnamed3125() { | 2129 buildUnnamed3130() { |
2025 var o = new core.List<api.SideInputInfo>(); | 2130 var o = new core.List<api.SideInputInfo>(); |
2026 o.add(buildSideInputInfo()); | 2131 o.add(buildSideInputInfo()); |
2027 o.add(buildSideInputInfo()); | 2132 o.add(buildSideInputInfo()); |
2028 return o; | 2133 return o; |
2029 } | 2134 } |
2030 | 2135 |
2031 checkUnnamed3125(core.List<api.SideInputInfo> o) { | 2136 checkUnnamed3130(core.List<api.SideInputInfo> o) { |
2032 unittest.expect(o, unittest.hasLength(2)); | 2137 unittest.expect(o, unittest.hasLength(2)); |
2033 checkSideInputInfo(o[0]); | 2138 checkSideInputInfo(o[0]); |
2034 checkSideInputInfo(o[1]); | 2139 checkSideInputInfo(o[1]); |
2035 } | 2140 } |
2036 | 2141 |
2037 buildUnnamed3126() { | 2142 buildUnnamed3131() { |
2038 var o = new core.Map<core.String, core.Object>(); | 2143 var o = new core.Map<core.String, core.Object>(); |
2039 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2144 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2040 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2145 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2041 return o; | 2146 return o; |
2042 } | 2147 } |
2043 | 2148 |
2044 checkUnnamed3126(core.Map<core.String, core.Object> o) { | 2149 checkUnnamed3131(core.Map<core.String, core.Object> o) { |
2045 unittest.expect(o, unittest.hasLength(2)); | 2150 unittest.expect(o, unittest.hasLength(2)); |
2046 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')); | 2151 var casted22 = (o["x"]) 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')); |
2047 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')); | 2152 var casted23 = (o["y"]) 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')); |
2048 } | 2153 } |
2049 | 2154 |
2050 core.int buildCounterPartialGroupByKeyInstruction = 0; | 2155 core.int buildCounterPartialGroupByKeyInstruction = 0; |
2051 buildPartialGroupByKeyInstruction() { | 2156 buildPartialGroupByKeyInstruction() { |
2052 var o = new api.PartialGroupByKeyInstruction(); | 2157 var o = new api.PartialGroupByKeyInstruction(); |
2053 buildCounterPartialGroupByKeyInstruction++; | 2158 buildCounterPartialGroupByKeyInstruction++; |
2054 if (buildCounterPartialGroupByKeyInstruction < 3) { | 2159 if (buildCounterPartialGroupByKeyInstruction < 3) { |
2055 o.input = buildInstructionInput(); | 2160 o.input = buildInstructionInput(); |
2056 o.inputElementCodec = buildUnnamed3124(); | 2161 o.inputElementCodec = buildUnnamed3129(); |
2057 o.originalCombineValuesInputStoreName = "foo"; | 2162 o.originalCombineValuesInputStoreName = "foo"; |
2058 o.originalCombineValuesStepName = "foo"; | 2163 o.originalCombineValuesStepName = "foo"; |
2059 o.sideInputs = buildUnnamed3125(); | 2164 o.sideInputs = buildUnnamed3130(); |
2060 o.valueCombiningFn = buildUnnamed3126(); | 2165 o.valueCombiningFn = buildUnnamed3131(); |
2061 } | 2166 } |
2062 buildCounterPartialGroupByKeyInstruction--; | 2167 buildCounterPartialGroupByKeyInstruction--; |
2063 return o; | 2168 return o; |
2064 } | 2169 } |
2065 | 2170 |
2066 checkPartialGroupByKeyInstruction(api.PartialGroupByKeyInstruction o) { | 2171 checkPartialGroupByKeyInstruction(api.PartialGroupByKeyInstruction o) { |
2067 buildCounterPartialGroupByKeyInstruction++; | 2172 buildCounterPartialGroupByKeyInstruction++; |
2068 if (buildCounterPartialGroupByKeyInstruction < 3) { | 2173 if (buildCounterPartialGroupByKeyInstruction < 3) { |
2069 checkInstructionInput(o.input); | 2174 checkInstructionInput(o.input); |
2070 checkUnnamed3124(o.inputElementCodec); | 2175 checkUnnamed3129(o.inputElementCodec); |
2071 unittest.expect(o.originalCombineValuesInputStoreName, unittest.equals('foo'
)); | 2176 unittest.expect(o.originalCombineValuesInputStoreName, unittest.equals('foo'
)); |
2072 unittest.expect(o.originalCombineValuesStepName, unittest.equals('foo')); | 2177 unittest.expect(o.originalCombineValuesStepName, unittest.equals('foo')); |
2073 checkUnnamed3125(o.sideInputs); | 2178 checkUnnamed3130(o.sideInputs); |
2074 checkUnnamed3126(o.valueCombiningFn); | 2179 checkUnnamed3131(o.valueCombiningFn); |
2075 } | 2180 } |
2076 buildCounterPartialGroupByKeyInstruction--; | 2181 buildCounterPartialGroupByKeyInstruction--; |
2077 } | 2182 } |
2078 | 2183 |
2079 buildUnnamed3127() { | 2184 buildUnnamed3132() { |
2080 var o = new core.List<api.DisplayData>(); | 2185 var o = new core.List<api.DisplayData>(); |
2081 o.add(buildDisplayData()); | 2186 o.add(buildDisplayData()); |
2082 o.add(buildDisplayData()); | 2187 o.add(buildDisplayData()); |
2083 return o; | 2188 return o; |
2084 } | 2189 } |
2085 | 2190 |
2086 checkUnnamed3127(core.List<api.DisplayData> o) { | 2191 checkUnnamed3132(core.List<api.DisplayData> o) { |
2087 unittest.expect(o, unittest.hasLength(2)); | 2192 unittest.expect(o, unittest.hasLength(2)); |
2088 checkDisplayData(o[0]); | 2193 checkDisplayData(o[0]); |
2089 checkDisplayData(o[1]); | 2194 checkDisplayData(o[1]); |
2090 } | 2195 } |
2091 | 2196 |
2092 buildUnnamed3128() { | 2197 buildUnnamed3133() { |
2093 var o = new core.List<api.ExecutionStageSummary>(); | 2198 var o = new core.List<api.ExecutionStageSummary>(); |
2094 o.add(buildExecutionStageSummary()); | 2199 o.add(buildExecutionStageSummary()); |
2095 o.add(buildExecutionStageSummary()); | 2200 o.add(buildExecutionStageSummary()); |
2096 return o; | 2201 return o; |
2097 } | 2202 } |
2098 | 2203 |
2099 checkUnnamed3128(core.List<api.ExecutionStageSummary> o) { | 2204 checkUnnamed3133(core.List<api.ExecutionStageSummary> o) { |
2100 unittest.expect(o, unittest.hasLength(2)); | 2205 unittest.expect(o, unittest.hasLength(2)); |
2101 checkExecutionStageSummary(o[0]); | 2206 checkExecutionStageSummary(o[0]); |
2102 checkExecutionStageSummary(o[1]); | 2207 checkExecutionStageSummary(o[1]); |
2103 } | 2208 } |
2104 | 2209 |
2105 buildUnnamed3129() { | 2210 buildUnnamed3134() { |
2106 var o = new core.List<api.TransformSummary>(); | 2211 var o = new core.List<api.TransformSummary>(); |
2107 o.add(buildTransformSummary()); | 2212 o.add(buildTransformSummary()); |
2108 o.add(buildTransformSummary()); | 2213 o.add(buildTransformSummary()); |
2109 return o; | 2214 return o; |
2110 } | 2215 } |
2111 | 2216 |
2112 checkUnnamed3129(core.List<api.TransformSummary> o) { | 2217 checkUnnamed3134(core.List<api.TransformSummary> o) { |
2113 unittest.expect(o, unittest.hasLength(2)); | 2218 unittest.expect(o, unittest.hasLength(2)); |
2114 checkTransformSummary(o[0]); | 2219 checkTransformSummary(o[0]); |
2115 checkTransformSummary(o[1]); | 2220 checkTransformSummary(o[1]); |
2116 } | 2221 } |
2117 | 2222 |
2118 core.int buildCounterPipelineDescription = 0; | 2223 core.int buildCounterPipelineDescription = 0; |
2119 buildPipelineDescription() { | 2224 buildPipelineDescription() { |
2120 var o = new api.PipelineDescription(); | 2225 var o = new api.PipelineDescription(); |
2121 buildCounterPipelineDescription++; | 2226 buildCounterPipelineDescription++; |
2122 if (buildCounterPipelineDescription < 3) { | 2227 if (buildCounterPipelineDescription < 3) { |
2123 o.displayData = buildUnnamed3127(); | 2228 o.displayData = buildUnnamed3132(); |
2124 o.executionPipelineStage = buildUnnamed3128(); | 2229 o.executionPipelineStage = buildUnnamed3133(); |
2125 o.originalPipelineTransform = buildUnnamed3129(); | 2230 o.originalPipelineTransform = buildUnnamed3134(); |
2126 } | 2231 } |
2127 buildCounterPipelineDescription--; | 2232 buildCounterPipelineDescription--; |
2128 return o; | 2233 return o; |
2129 } | 2234 } |
2130 | 2235 |
2131 checkPipelineDescription(api.PipelineDescription o) { | 2236 checkPipelineDescription(api.PipelineDescription o) { |
2132 buildCounterPipelineDescription++; | 2237 buildCounterPipelineDescription++; |
2133 if (buildCounterPipelineDescription < 3) { | 2238 if (buildCounterPipelineDescription < 3) { |
2134 checkUnnamed3127(o.displayData); | 2239 checkUnnamed3132(o.displayData); |
2135 checkUnnamed3128(o.executionPipelineStage); | 2240 checkUnnamed3133(o.executionPipelineStage); |
2136 checkUnnamed3129(o.originalPipelineTransform); | 2241 checkUnnamed3134(o.originalPipelineTransform); |
2137 } | 2242 } |
2138 buildCounterPipelineDescription--; | 2243 buildCounterPipelineDescription--; |
2139 } | 2244 } |
2140 | 2245 |
2141 core.int buildCounterPosition = 0; | 2246 core.int buildCounterPosition = 0; |
2142 buildPosition() { | 2247 buildPosition() { |
2143 var o = new api.Position(); | 2248 var o = new api.Position(); |
2144 buildCounterPosition++; | 2249 buildCounterPosition++; |
2145 if (buildCounterPosition < 3) { | 2250 if (buildCounterPosition < 3) { |
2146 o.byteOffset = "foo"; | 2251 o.byteOffset = "foo"; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2210 } | 2315 } |
2211 | 2316 |
2212 checkReadInstruction(api.ReadInstruction o) { | 2317 checkReadInstruction(api.ReadInstruction o) { |
2213 buildCounterReadInstruction++; | 2318 buildCounterReadInstruction++; |
2214 if (buildCounterReadInstruction < 3) { | 2319 if (buildCounterReadInstruction < 3) { |
2215 checkSource(o.source); | 2320 checkSource(o.source); |
2216 } | 2321 } |
2217 buildCounterReadInstruction--; | 2322 buildCounterReadInstruction--; |
2218 } | 2323 } |
2219 | 2324 |
2220 buildUnnamed3130() { | 2325 buildUnnamed3135() { |
2221 var o = new core.List<api.WorkItemStatus>(); | 2326 var o = new core.List<api.WorkItemStatus>(); |
2222 o.add(buildWorkItemStatus()); | 2327 o.add(buildWorkItemStatus()); |
2223 o.add(buildWorkItemStatus()); | 2328 o.add(buildWorkItemStatus()); |
2224 return o; | 2329 return o; |
2225 } | 2330 } |
2226 | 2331 |
2227 checkUnnamed3130(core.List<api.WorkItemStatus> o) { | 2332 checkUnnamed3135(core.List<api.WorkItemStatus> o) { |
2228 unittest.expect(o, unittest.hasLength(2)); | 2333 unittest.expect(o, unittest.hasLength(2)); |
2229 checkWorkItemStatus(o[0]); | 2334 checkWorkItemStatus(o[0]); |
2230 checkWorkItemStatus(o[1]); | 2335 checkWorkItemStatus(o[1]); |
2231 } | 2336 } |
2232 | 2337 |
2233 core.int buildCounterReportWorkItemStatusRequest = 0; | 2338 core.int buildCounterReportWorkItemStatusRequest = 0; |
2234 buildReportWorkItemStatusRequest() { | 2339 buildReportWorkItemStatusRequest() { |
2235 var o = new api.ReportWorkItemStatusRequest(); | 2340 var o = new api.ReportWorkItemStatusRequest(); |
2236 buildCounterReportWorkItemStatusRequest++; | 2341 buildCounterReportWorkItemStatusRequest++; |
2237 if (buildCounterReportWorkItemStatusRequest < 3) { | 2342 if (buildCounterReportWorkItemStatusRequest < 3) { |
2238 o.currentWorkerTime = "foo"; | 2343 o.currentWorkerTime = "foo"; |
2239 o.location = "foo"; | 2344 o.location = "foo"; |
2240 o.workItemStatuses = buildUnnamed3130(); | 2345 o.workItemStatuses = buildUnnamed3135(); |
2241 o.workerId = "foo"; | 2346 o.workerId = "foo"; |
2242 } | 2347 } |
2243 buildCounterReportWorkItemStatusRequest--; | 2348 buildCounterReportWorkItemStatusRequest--; |
2244 return o; | 2349 return o; |
2245 } | 2350 } |
2246 | 2351 |
2247 checkReportWorkItemStatusRequest(api.ReportWorkItemStatusRequest o) { | 2352 checkReportWorkItemStatusRequest(api.ReportWorkItemStatusRequest o) { |
2248 buildCounterReportWorkItemStatusRequest++; | 2353 buildCounterReportWorkItemStatusRequest++; |
2249 if (buildCounterReportWorkItemStatusRequest < 3) { | 2354 if (buildCounterReportWorkItemStatusRequest < 3) { |
2250 unittest.expect(o.currentWorkerTime, unittest.equals('foo')); | 2355 unittest.expect(o.currentWorkerTime, unittest.equals('foo')); |
2251 unittest.expect(o.location, unittest.equals('foo')); | 2356 unittest.expect(o.location, unittest.equals('foo')); |
2252 checkUnnamed3130(o.workItemStatuses); | 2357 checkUnnamed3135(o.workItemStatuses); |
2253 unittest.expect(o.workerId, unittest.equals('foo')); | 2358 unittest.expect(o.workerId, unittest.equals('foo')); |
2254 } | 2359 } |
2255 buildCounterReportWorkItemStatusRequest--; | 2360 buildCounterReportWorkItemStatusRequest--; |
2256 } | 2361 } |
2257 | 2362 |
2258 buildUnnamed3131() { | 2363 buildUnnamed3136() { |
2259 var o = new core.List<api.WorkItemServiceState>(); | 2364 var o = new core.List<api.WorkItemServiceState>(); |
2260 o.add(buildWorkItemServiceState()); | 2365 o.add(buildWorkItemServiceState()); |
2261 o.add(buildWorkItemServiceState()); | 2366 o.add(buildWorkItemServiceState()); |
2262 return o; | 2367 return o; |
2263 } | 2368 } |
2264 | 2369 |
2265 checkUnnamed3131(core.List<api.WorkItemServiceState> o) { | 2370 checkUnnamed3136(core.List<api.WorkItemServiceState> o) { |
2266 unittest.expect(o, unittest.hasLength(2)); | 2371 unittest.expect(o, unittest.hasLength(2)); |
2267 checkWorkItemServiceState(o[0]); | 2372 checkWorkItemServiceState(o[0]); |
2268 checkWorkItemServiceState(o[1]); | 2373 checkWorkItemServiceState(o[1]); |
2269 } | 2374 } |
2270 | 2375 |
2271 core.int buildCounterReportWorkItemStatusResponse = 0; | 2376 core.int buildCounterReportWorkItemStatusResponse = 0; |
2272 buildReportWorkItemStatusResponse() { | 2377 buildReportWorkItemStatusResponse() { |
2273 var o = new api.ReportWorkItemStatusResponse(); | 2378 var o = new api.ReportWorkItemStatusResponse(); |
2274 buildCounterReportWorkItemStatusResponse++; | 2379 buildCounterReportWorkItemStatusResponse++; |
2275 if (buildCounterReportWorkItemStatusResponse < 3) { | 2380 if (buildCounterReportWorkItemStatusResponse < 3) { |
2276 o.workItemServiceStates = buildUnnamed3131(); | 2381 o.workItemServiceStates = buildUnnamed3136(); |
2277 } | 2382 } |
2278 buildCounterReportWorkItemStatusResponse--; | 2383 buildCounterReportWorkItemStatusResponse--; |
2279 return o; | 2384 return o; |
2280 } | 2385 } |
2281 | 2386 |
2282 checkReportWorkItemStatusResponse(api.ReportWorkItemStatusResponse o) { | 2387 checkReportWorkItemStatusResponse(api.ReportWorkItemStatusResponse o) { |
2283 buildCounterReportWorkItemStatusResponse++; | 2388 buildCounterReportWorkItemStatusResponse++; |
2284 if (buildCounterReportWorkItemStatusResponse < 3) { | 2389 if (buildCounterReportWorkItemStatusResponse < 3) { |
2285 checkUnnamed3131(o.workItemServiceStates); | 2390 checkUnnamed3136(o.workItemServiceStates); |
2286 } | 2391 } |
2287 buildCounterReportWorkItemStatusResponse--; | 2392 buildCounterReportWorkItemStatusResponse--; |
2288 } | 2393 } |
2289 | 2394 |
2290 core.int buildCounterReportedParallelism = 0; | 2395 core.int buildCounterReportedParallelism = 0; |
2291 buildReportedParallelism() { | 2396 buildReportedParallelism() { |
2292 var o = new api.ReportedParallelism(); | 2397 var o = new api.ReportedParallelism(); |
2293 buildCounterReportedParallelism++; | 2398 buildCounterReportedParallelism++; |
2294 if (buildCounterReportedParallelism < 3) { | 2399 if (buildCounterReportedParallelism < 3) { |
2295 o.isInfinite = true; | 2400 o.isInfinite = true; |
2296 o.value = 42.0; | 2401 o.value = 42.0; |
2297 } | 2402 } |
2298 buildCounterReportedParallelism--; | 2403 buildCounterReportedParallelism--; |
2299 return o; | 2404 return o; |
2300 } | 2405 } |
2301 | 2406 |
2302 checkReportedParallelism(api.ReportedParallelism o) { | 2407 checkReportedParallelism(api.ReportedParallelism o) { |
2303 buildCounterReportedParallelism++; | 2408 buildCounterReportedParallelism++; |
2304 if (buildCounterReportedParallelism < 3) { | 2409 if (buildCounterReportedParallelism < 3) { |
2305 unittest.expect(o.isInfinite, unittest.isTrue); | 2410 unittest.expect(o.isInfinite, unittest.isTrue); |
2306 unittest.expect(o.value, unittest.equals(42.0)); | 2411 unittest.expect(o.value, unittest.equals(42.0)); |
2307 } | 2412 } |
2308 buildCounterReportedParallelism--; | 2413 buildCounterReportedParallelism--; |
2309 } | 2414 } |
2310 | 2415 |
2311 buildUnnamed3132() { | 2416 buildUnnamed3137() { |
2312 var o = new core.List<api.CPUTime>(); | 2417 var o = new core.List<api.CPUTime>(); |
2313 o.add(buildCPUTime()); | 2418 o.add(buildCPUTime()); |
2314 o.add(buildCPUTime()); | 2419 o.add(buildCPUTime()); |
2315 return o; | 2420 return o; |
2316 } | 2421 } |
2317 | 2422 |
2318 checkUnnamed3132(core.List<api.CPUTime> o) { | 2423 checkUnnamed3137(core.List<api.CPUTime> o) { |
2319 unittest.expect(o, unittest.hasLength(2)); | 2424 unittest.expect(o, unittest.hasLength(2)); |
2320 checkCPUTime(o[0]); | 2425 checkCPUTime(o[0]); |
2321 checkCPUTime(o[1]); | 2426 checkCPUTime(o[1]); |
2322 } | 2427 } |
2323 | 2428 |
2324 core.int buildCounterResourceUtilizationReport = 0; | 2429 core.int buildCounterResourceUtilizationReport = 0; |
2325 buildResourceUtilizationReport() { | 2430 buildResourceUtilizationReport() { |
2326 var o = new api.ResourceUtilizationReport(); | 2431 var o = new api.ResourceUtilizationReport(); |
2327 buildCounterResourceUtilizationReport++; | 2432 buildCounterResourceUtilizationReport++; |
2328 if (buildCounterResourceUtilizationReport < 3) { | 2433 if (buildCounterResourceUtilizationReport < 3) { |
2329 o.cpuTime = buildUnnamed3132(); | 2434 o.cpuTime = buildUnnamed3137(); |
2330 } | 2435 } |
2331 buildCounterResourceUtilizationReport--; | 2436 buildCounterResourceUtilizationReport--; |
2332 return o; | 2437 return o; |
2333 } | 2438 } |
2334 | 2439 |
2335 checkResourceUtilizationReport(api.ResourceUtilizationReport o) { | 2440 checkResourceUtilizationReport(api.ResourceUtilizationReport o) { |
2336 buildCounterResourceUtilizationReport++; | 2441 buildCounterResourceUtilizationReport++; |
2337 if (buildCounterResourceUtilizationReport < 3) { | 2442 if (buildCounterResourceUtilizationReport < 3) { |
2338 checkUnnamed3132(o.cpuTime); | 2443 checkUnnamed3137(o.cpuTime); |
2339 } | 2444 } |
2340 buildCounterResourceUtilizationReport--; | 2445 buildCounterResourceUtilizationReport--; |
2341 } | 2446 } |
2342 | 2447 |
2343 core.int buildCounterResourceUtilizationReportResponse = 0; | 2448 core.int buildCounterResourceUtilizationReportResponse = 0; |
2344 buildResourceUtilizationReportResponse() { | 2449 buildResourceUtilizationReportResponse() { |
2345 var o = new api.ResourceUtilizationReportResponse(); | 2450 var o = new api.ResourceUtilizationReportResponse(); |
2346 buildCounterResourceUtilizationReportResponse++; | 2451 buildCounterResourceUtilizationReportResponse++; |
2347 if (buildCounterResourceUtilizationReportResponse < 3) { | 2452 if (buildCounterResourceUtilizationReportResponse < 3) { |
2348 } | 2453 } |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2384 buildCounterRuntimeEnvironment--; | 2489 buildCounterRuntimeEnvironment--; |
2385 } | 2490 } |
2386 | 2491 |
2387 core.int buildCounterSendDebugCaptureRequest = 0; | 2492 core.int buildCounterSendDebugCaptureRequest = 0; |
2388 buildSendDebugCaptureRequest() { | 2493 buildSendDebugCaptureRequest() { |
2389 var o = new api.SendDebugCaptureRequest(); | 2494 var o = new api.SendDebugCaptureRequest(); |
2390 buildCounterSendDebugCaptureRequest++; | 2495 buildCounterSendDebugCaptureRequest++; |
2391 if (buildCounterSendDebugCaptureRequest < 3) { | 2496 if (buildCounterSendDebugCaptureRequest < 3) { |
2392 o.componentId = "foo"; | 2497 o.componentId = "foo"; |
2393 o.data = "foo"; | 2498 o.data = "foo"; |
| 2499 o.location = "foo"; |
2394 o.workerId = "foo"; | 2500 o.workerId = "foo"; |
2395 } | 2501 } |
2396 buildCounterSendDebugCaptureRequest--; | 2502 buildCounterSendDebugCaptureRequest--; |
2397 return o; | 2503 return o; |
2398 } | 2504 } |
2399 | 2505 |
2400 checkSendDebugCaptureRequest(api.SendDebugCaptureRequest o) { | 2506 checkSendDebugCaptureRequest(api.SendDebugCaptureRequest o) { |
2401 buildCounterSendDebugCaptureRequest++; | 2507 buildCounterSendDebugCaptureRequest++; |
2402 if (buildCounterSendDebugCaptureRequest < 3) { | 2508 if (buildCounterSendDebugCaptureRequest < 3) { |
2403 unittest.expect(o.componentId, unittest.equals('foo')); | 2509 unittest.expect(o.componentId, unittest.equals('foo')); |
2404 unittest.expect(o.data, unittest.equals('foo')); | 2510 unittest.expect(o.data, unittest.equals('foo')); |
| 2511 unittest.expect(o.location, unittest.equals('foo')); |
2405 unittest.expect(o.workerId, unittest.equals('foo')); | 2512 unittest.expect(o.workerId, unittest.equals('foo')); |
2406 } | 2513 } |
2407 buildCounterSendDebugCaptureRequest--; | 2514 buildCounterSendDebugCaptureRequest--; |
2408 } | 2515 } |
2409 | 2516 |
2410 core.int buildCounterSendDebugCaptureResponse = 0; | 2517 core.int buildCounterSendDebugCaptureResponse = 0; |
2411 buildSendDebugCaptureResponse() { | 2518 buildSendDebugCaptureResponse() { |
2412 var o = new api.SendDebugCaptureResponse(); | 2519 var o = new api.SendDebugCaptureResponse(); |
2413 buildCounterSendDebugCaptureResponse++; | 2520 buildCounterSendDebugCaptureResponse++; |
2414 if (buildCounterSendDebugCaptureResponse < 3) { | 2521 if (buildCounterSendDebugCaptureResponse < 3) { |
2415 } | 2522 } |
2416 buildCounterSendDebugCaptureResponse--; | 2523 buildCounterSendDebugCaptureResponse--; |
2417 return o; | 2524 return o; |
2418 } | 2525 } |
2419 | 2526 |
2420 checkSendDebugCaptureResponse(api.SendDebugCaptureResponse o) { | 2527 checkSendDebugCaptureResponse(api.SendDebugCaptureResponse o) { |
2421 buildCounterSendDebugCaptureResponse++; | 2528 buildCounterSendDebugCaptureResponse++; |
2422 if (buildCounterSendDebugCaptureResponse < 3) { | 2529 if (buildCounterSendDebugCaptureResponse < 3) { |
2423 } | 2530 } |
2424 buildCounterSendDebugCaptureResponse--; | 2531 buildCounterSendDebugCaptureResponse--; |
2425 } | 2532 } |
2426 | 2533 |
2427 buildUnnamed3133() { | 2534 buildUnnamed3138() { |
2428 var o = new core.List<api.WorkerMessage>(); | 2535 var o = new core.List<api.WorkerMessage>(); |
2429 o.add(buildWorkerMessage()); | 2536 o.add(buildWorkerMessage()); |
2430 o.add(buildWorkerMessage()); | 2537 o.add(buildWorkerMessage()); |
2431 return o; | 2538 return o; |
2432 } | 2539 } |
2433 | 2540 |
2434 checkUnnamed3133(core.List<api.WorkerMessage> o) { | 2541 checkUnnamed3138(core.List<api.WorkerMessage> o) { |
2435 unittest.expect(o, unittest.hasLength(2)); | 2542 unittest.expect(o, unittest.hasLength(2)); |
2436 checkWorkerMessage(o[0]); | 2543 checkWorkerMessage(o[0]); |
2437 checkWorkerMessage(o[1]); | 2544 checkWorkerMessage(o[1]); |
2438 } | 2545 } |
2439 | 2546 |
2440 core.int buildCounterSendWorkerMessagesRequest = 0; | 2547 core.int buildCounterSendWorkerMessagesRequest = 0; |
2441 buildSendWorkerMessagesRequest() { | 2548 buildSendWorkerMessagesRequest() { |
2442 var o = new api.SendWorkerMessagesRequest(); | 2549 var o = new api.SendWorkerMessagesRequest(); |
2443 buildCounterSendWorkerMessagesRequest++; | 2550 buildCounterSendWorkerMessagesRequest++; |
2444 if (buildCounterSendWorkerMessagesRequest < 3) { | 2551 if (buildCounterSendWorkerMessagesRequest < 3) { |
2445 o.workerMessages = buildUnnamed3133(); | 2552 o.location = "foo"; |
| 2553 o.workerMessages = buildUnnamed3138(); |
2446 } | 2554 } |
2447 buildCounterSendWorkerMessagesRequest--; | 2555 buildCounterSendWorkerMessagesRequest--; |
2448 return o; | 2556 return o; |
2449 } | 2557 } |
2450 | 2558 |
2451 checkSendWorkerMessagesRequest(api.SendWorkerMessagesRequest o) { | 2559 checkSendWorkerMessagesRequest(api.SendWorkerMessagesRequest o) { |
2452 buildCounterSendWorkerMessagesRequest++; | 2560 buildCounterSendWorkerMessagesRequest++; |
2453 if (buildCounterSendWorkerMessagesRequest < 3) { | 2561 if (buildCounterSendWorkerMessagesRequest < 3) { |
2454 checkUnnamed3133(o.workerMessages); | 2562 unittest.expect(o.location, unittest.equals('foo')); |
| 2563 checkUnnamed3138(o.workerMessages); |
2455 } | 2564 } |
2456 buildCounterSendWorkerMessagesRequest--; | 2565 buildCounterSendWorkerMessagesRequest--; |
2457 } | 2566 } |
2458 | 2567 |
2459 buildUnnamed3134() { | 2568 buildUnnamed3139() { |
2460 var o = new core.List<api.WorkerMessageResponse>(); | 2569 var o = new core.List<api.WorkerMessageResponse>(); |
2461 o.add(buildWorkerMessageResponse()); | 2570 o.add(buildWorkerMessageResponse()); |
2462 o.add(buildWorkerMessageResponse()); | 2571 o.add(buildWorkerMessageResponse()); |
2463 return o; | 2572 return o; |
2464 } | 2573 } |
2465 | 2574 |
2466 checkUnnamed3134(core.List<api.WorkerMessageResponse> o) { | 2575 checkUnnamed3139(core.List<api.WorkerMessageResponse> o) { |
2467 unittest.expect(o, unittest.hasLength(2)); | 2576 unittest.expect(o, unittest.hasLength(2)); |
2468 checkWorkerMessageResponse(o[0]); | 2577 checkWorkerMessageResponse(o[0]); |
2469 checkWorkerMessageResponse(o[1]); | 2578 checkWorkerMessageResponse(o[1]); |
2470 } | 2579 } |
2471 | 2580 |
2472 core.int buildCounterSendWorkerMessagesResponse = 0; | 2581 core.int buildCounterSendWorkerMessagesResponse = 0; |
2473 buildSendWorkerMessagesResponse() { | 2582 buildSendWorkerMessagesResponse() { |
2474 var o = new api.SendWorkerMessagesResponse(); | 2583 var o = new api.SendWorkerMessagesResponse(); |
2475 buildCounterSendWorkerMessagesResponse++; | 2584 buildCounterSendWorkerMessagesResponse++; |
2476 if (buildCounterSendWorkerMessagesResponse < 3) { | 2585 if (buildCounterSendWorkerMessagesResponse < 3) { |
2477 o.workerMessageResponses = buildUnnamed3134(); | 2586 o.workerMessageResponses = buildUnnamed3139(); |
2478 } | 2587 } |
2479 buildCounterSendWorkerMessagesResponse--; | 2588 buildCounterSendWorkerMessagesResponse--; |
2480 return o; | 2589 return o; |
2481 } | 2590 } |
2482 | 2591 |
2483 checkSendWorkerMessagesResponse(api.SendWorkerMessagesResponse o) { | 2592 checkSendWorkerMessagesResponse(api.SendWorkerMessagesResponse o) { |
2484 buildCounterSendWorkerMessagesResponse++; | 2593 buildCounterSendWorkerMessagesResponse++; |
2485 if (buildCounterSendWorkerMessagesResponse < 3) { | 2594 if (buildCounterSendWorkerMessagesResponse < 3) { |
2486 checkUnnamed3134(o.workerMessageResponses); | 2595 checkUnnamed3139(o.workerMessageResponses); |
2487 } | 2596 } |
2488 buildCounterSendWorkerMessagesResponse--; | 2597 buildCounterSendWorkerMessagesResponse--; |
2489 } | 2598 } |
2490 | 2599 |
2491 buildUnnamed3135() { | 2600 buildUnnamed3140() { |
2492 var o = new core.List<api.SideInputInfo>(); | 2601 var o = new core.List<api.SideInputInfo>(); |
2493 o.add(buildSideInputInfo()); | 2602 o.add(buildSideInputInfo()); |
2494 o.add(buildSideInputInfo()); | 2603 o.add(buildSideInputInfo()); |
2495 return o; | 2604 return o; |
2496 } | 2605 } |
2497 | 2606 |
2498 checkUnnamed3135(core.List<api.SideInputInfo> o) { | 2607 checkUnnamed3140(core.List<api.SideInputInfo> o) { |
2499 unittest.expect(o, unittest.hasLength(2)); | 2608 unittest.expect(o, unittest.hasLength(2)); |
2500 checkSideInputInfo(o[0]); | 2609 checkSideInputInfo(o[0]); |
2501 checkSideInputInfo(o[1]); | 2610 checkSideInputInfo(o[1]); |
2502 } | 2611 } |
2503 | 2612 |
2504 buildUnnamed3136() { | 2613 buildUnnamed3141() { |
2505 var o = new core.List<api.SeqMapTaskOutputInfo>(); | 2614 var o = new core.List<api.SeqMapTaskOutputInfo>(); |
2506 o.add(buildSeqMapTaskOutputInfo()); | 2615 o.add(buildSeqMapTaskOutputInfo()); |
2507 o.add(buildSeqMapTaskOutputInfo()); | 2616 o.add(buildSeqMapTaskOutputInfo()); |
2508 return o; | 2617 return o; |
2509 } | 2618 } |
2510 | 2619 |
2511 checkUnnamed3136(core.List<api.SeqMapTaskOutputInfo> o) { | 2620 checkUnnamed3141(core.List<api.SeqMapTaskOutputInfo> o) { |
2512 unittest.expect(o, unittest.hasLength(2)); | 2621 unittest.expect(o, unittest.hasLength(2)); |
2513 checkSeqMapTaskOutputInfo(o[0]); | 2622 checkSeqMapTaskOutputInfo(o[0]); |
2514 checkSeqMapTaskOutputInfo(o[1]); | 2623 checkSeqMapTaskOutputInfo(o[1]); |
2515 } | 2624 } |
2516 | 2625 |
2517 buildUnnamed3137() { | 2626 buildUnnamed3142() { |
2518 var o = new core.Map<core.String, core.Object>(); | 2627 var o = new core.Map<core.String, core.Object>(); |
2519 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2628 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2520 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2629 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2521 return o; | 2630 return o; |
2522 } | 2631 } |
2523 | 2632 |
2524 checkUnnamed3137(core.Map<core.String, core.Object> o) { | 2633 checkUnnamed3142(core.Map<core.String, core.Object> o) { |
2525 unittest.expect(o, unittest.hasLength(2)); | 2634 unittest.expect(o, unittest.hasLength(2)); |
2526 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')); | 2635 var casted24 = (o["x"]) 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')); |
2527 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')); | 2636 var casted25 = (o["y"]) 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')); |
2528 } | 2637 } |
2529 | 2638 |
2530 core.int buildCounterSeqMapTask = 0; | 2639 core.int buildCounterSeqMapTask = 0; |
2531 buildSeqMapTask() { | 2640 buildSeqMapTask() { |
2532 var o = new api.SeqMapTask(); | 2641 var o = new api.SeqMapTask(); |
2533 buildCounterSeqMapTask++; | 2642 buildCounterSeqMapTask++; |
2534 if (buildCounterSeqMapTask < 3) { | 2643 if (buildCounterSeqMapTask < 3) { |
2535 o.inputs = buildUnnamed3135(); | 2644 o.inputs = buildUnnamed3140(); |
2536 o.name = "foo"; | 2645 o.name = "foo"; |
2537 o.outputInfos = buildUnnamed3136(); | 2646 o.outputInfos = buildUnnamed3141(); |
2538 o.stageName = "foo"; | 2647 o.stageName = "foo"; |
2539 o.systemName = "foo"; | 2648 o.systemName = "foo"; |
2540 o.userFn = buildUnnamed3137(); | 2649 o.userFn = buildUnnamed3142(); |
2541 } | 2650 } |
2542 buildCounterSeqMapTask--; | 2651 buildCounterSeqMapTask--; |
2543 return o; | 2652 return o; |
2544 } | 2653 } |
2545 | 2654 |
2546 checkSeqMapTask(api.SeqMapTask o) { | 2655 checkSeqMapTask(api.SeqMapTask o) { |
2547 buildCounterSeqMapTask++; | 2656 buildCounterSeqMapTask++; |
2548 if (buildCounterSeqMapTask < 3) { | 2657 if (buildCounterSeqMapTask < 3) { |
2549 checkUnnamed3135(o.inputs); | 2658 checkUnnamed3140(o.inputs); |
2550 unittest.expect(o.name, unittest.equals('foo')); | 2659 unittest.expect(o.name, unittest.equals('foo')); |
2551 checkUnnamed3136(o.outputInfos); | 2660 checkUnnamed3141(o.outputInfos); |
2552 unittest.expect(o.stageName, unittest.equals('foo')); | 2661 unittest.expect(o.stageName, unittest.equals('foo')); |
2553 unittest.expect(o.systemName, unittest.equals('foo')); | 2662 unittest.expect(o.systemName, unittest.equals('foo')); |
2554 checkUnnamed3137(o.userFn); | 2663 checkUnnamed3142(o.userFn); |
2555 } | 2664 } |
2556 buildCounterSeqMapTask--; | 2665 buildCounterSeqMapTask--; |
2557 } | 2666 } |
2558 | 2667 |
2559 core.int buildCounterSeqMapTaskOutputInfo = 0; | 2668 core.int buildCounterSeqMapTaskOutputInfo = 0; |
2560 buildSeqMapTaskOutputInfo() { | 2669 buildSeqMapTaskOutputInfo() { |
2561 var o = new api.SeqMapTaskOutputInfo(); | 2670 var o = new api.SeqMapTaskOutputInfo(); |
2562 buildCounterSeqMapTaskOutputInfo++; | 2671 buildCounterSeqMapTaskOutputInfo++; |
2563 if (buildCounterSeqMapTaskOutputInfo < 3) { | 2672 if (buildCounterSeqMapTaskOutputInfo < 3) { |
2564 o.sink = buildSink(); | 2673 o.sink = buildSink(); |
(...skipping 26 matching lines...) Expand all Loading... |
2591 | 2700 |
2592 checkShellTask(api.ShellTask o) { | 2701 checkShellTask(api.ShellTask o) { |
2593 buildCounterShellTask++; | 2702 buildCounterShellTask++; |
2594 if (buildCounterShellTask < 3) { | 2703 if (buildCounterShellTask < 3) { |
2595 unittest.expect(o.command, unittest.equals('foo')); | 2704 unittest.expect(o.command, unittest.equals('foo')); |
2596 unittest.expect(o.exitCode, unittest.equals(42)); | 2705 unittest.expect(o.exitCode, unittest.equals(42)); |
2597 } | 2706 } |
2598 buildCounterShellTask--; | 2707 buildCounterShellTask--; |
2599 } | 2708 } |
2600 | 2709 |
2601 buildUnnamed3138() { | 2710 buildUnnamed3143() { |
2602 var o = new core.Map<core.String, core.Object>(); | 2711 var o = new core.Map<core.String, core.Object>(); |
2603 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2712 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2604 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2713 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2605 return o; | 2714 return o; |
2606 } | 2715 } |
2607 | 2716 |
2608 checkUnnamed3138(core.Map<core.String, core.Object> o) { | 2717 checkUnnamed3143(core.Map<core.String, core.Object> o) { |
2609 unittest.expect(o, unittest.hasLength(2)); | 2718 unittest.expect(o, unittest.hasLength(2)); |
2610 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')); | 2719 var casted26 = (o["x"]) 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')); |
2611 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')); | 2720 var casted27 = (o["y"]) 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')); |
2612 } | 2721 } |
2613 | 2722 |
2614 buildUnnamed3139() { | 2723 buildUnnamed3144() { |
2615 var o = new core.List<api.Source>(); | 2724 var o = new core.List<api.Source>(); |
2616 o.add(buildSource()); | 2725 o.add(buildSource()); |
2617 o.add(buildSource()); | 2726 o.add(buildSource()); |
2618 return o; | 2727 return o; |
2619 } | 2728 } |
2620 | 2729 |
2621 checkUnnamed3139(core.List<api.Source> o) { | 2730 checkUnnamed3144(core.List<api.Source> o) { |
2622 unittest.expect(o, unittest.hasLength(2)); | 2731 unittest.expect(o, unittest.hasLength(2)); |
2623 checkSource(o[0]); | 2732 checkSource(o[0]); |
2624 checkSource(o[1]); | 2733 checkSource(o[1]); |
2625 } | 2734 } |
2626 | 2735 |
2627 core.int buildCounterSideInputInfo = 0; | 2736 core.int buildCounterSideInputInfo = 0; |
2628 buildSideInputInfo() { | 2737 buildSideInputInfo() { |
2629 var o = new api.SideInputInfo(); | 2738 var o = new api.SideInputInfo(); |
2630 buildCounterSideInputInfo++; | 2739 buildCounterSideInputInfo++; |
2631 if (buildCounterSideInputInfo < 3) { | 2740 if (buildCounterSideInputInfo < 3) { |
2632 o.kind = buildUnnamed3138(); | 2741 o.kind = buildUnnamed3143(); |
2633 o.sources = buildUnnamed3139(); | 2742 o.sources = buildUnnamed3144(); |
2634 o.tag = "foo"; | 2743 o.tag = "foo"; |
2635 } | 2744 } |
2636 buildCounterSideInputInfo--; | 2745 buildCounterSideInputInfo--; |
2637 return o; | 2746 return o; |
2638 } | 2747 } |
2639 | 2748 |
2640 checkSideInputInfo(api.SideInputInfo o) { | 2749 checkSideInputInfo(api.SideInputInfo o) { |
2641 buildCounterSideInputInfo++; | 2750 buildCounterSideInputInfo++; |
2642 if (buildCounterSideInputInfo < 3) { | 2751 if (buildCounterSideInputInfo < 3) { |
2643 checkUnnamed3138(o.kind); | 2752 checkUnnamed3143(o.kind); |
2644 checkUnnamed3139(o.sources); | 2753 checkUnnamed3144(o.sources); |
2645 unittest.expect(o.tag, unittest.equals('foo')); | 2754 unittest.expect(o.tag, unittest.equals('foo')); |
2646 } | 2755 } |
2647 buildCounterSideInputInfo--; | 2756 buildCounterSideInputInfo--; |
2648 } | 2757 } |
2649 | 2758 |
2650 buildUnnamed3140() { | 2759 buildUnnamed3145() { |
2651 var o = new core.Map<core.String, core.Object>(); | 2760 var o = new core.Map<core.String, core.Object>(); |
2652 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2761 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2653 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2762 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2654 return o; | 2763 return o; |
2655 } | 2764 } |
2656 | 2765 |
2657 checkUnnamed3140(core.Map<core.String, core.Object> o) { | 2766 checkUnnamed3145(core.Map<core.String, core.Object> o) { |
2658 unittest.expect(o, unittest.hasLength(2)); | 2767 unittest.expect(o, unittest.hasLength(2)); |
2659 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')); | 2768 var casted28 = (o["x"]) 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')); |
2660 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')); | 2769 var casted29 = (o["y"]) 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')); |
2661 } | 2770 } |
2662 | 2771 |
2663 buildUnnamed3141() { | 2772 buildUnnamed3146() { |
2664 var o = new core.Map<core.String, core.Object>(); | 2773 var o = new core.Map<core.String, core.Object>(); |
2665 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2774 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2666 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2775 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2667 return o; | 2776 return o; |
2668 } | 2777 } |
2669 | 2778 |
2670 checkUnnamed3141(core.Map<core.String, core.Object> o) { | 2779 checkUnnamed3146(core.Map<core.String, core.Object> o) { |
2671 unittest.expect(o, unittest.hasLength(2)); | 2780 unittest.expect(o, unittest.hasLength(2)); |
2672 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')); | 2781 var casted30 = (o["x"]) 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')); |
2673 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')); | 2782 var casted31 = (o["y"]) 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')); |
2674 } | 2783 } |
2675 | 2784 |
2676 core.int buildCounterSink = 0; | 2785 core.int buildCounterSink = 0; |
2677 buildSink() { | 2786 buildSink() { |
2678 var o = new api.Sink(); | 2787 var o = new api.Sink(); |
2679 buildCounterSink++; | 2788 buildCounterSink++; |
2680 if (buildCounterSink < 3) { | 2789 if (buildCounterSink < 3) { |
2681 o.codec = buildUnnamed3140(); | 2790 o.codec = buildUnnamed3145(); |
2682 o.spec = buildUnnamed3141(); | 2791 o.spec = buildUnnamed3146(); |
2683 } | 2792 } |
2684 buildCounterSink--; | 2793 buildCounterSink--; |
2685 return o; | 2794 return o; |
2686 } | 2795 } |
2687 | 2796 |
2688 checkSink(api.Sink o) { | 2797 checkSink(api.Sink o) { |
2689 buildCounterSink++; | 2798 buildCounterSink++; |
2690 if (buildCounterSink < 3) { | 2799 if (buildCounterSink < 3) { |
2691 checkUnnamed3140(o.codec); | 2800 checkUnnamed3145(o.codec); |
2692 checkUnnamed3141(o.spec); | 2801 checkUnnamed3146(o.spec); |
2693 } | 2802 } |
2694 buildCounterSink--; | 2803 buildCounterSink--; |
2695 } | 2804 } |
2696 | 2805 |
2697 buildUnnamed3142() { | 2806 buildUnnamed3147() { |
2698 var o = new core.Map<core.String, core.Object>(); | 2807 var o = new core.Map<core.String, core.Object>(); |
2699 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2808 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2700 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2809 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2701 return o; | 2810 return o; |
2702 } | 2811 } |
2703 | 2812 |
2704 checkUnnamed3142(core.Map<core.String, core.Object> o) { | 2813 checkUnnamed3147(core.Map<core.String, core.Object> o) { |
2705 unittest.expect(o, unittest.hasLength(2)); | 2814 unittest.expect(o, unittest.hasLength(2)); |
2706 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')); | 2815 var casted32 = (o["x"]) 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')); |
2707 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')); | 2816 var casted33 = (o["y"]) 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')); |
2708 } | 2817 } |
2709 | 2818 |
2710 buildUnnamed3143() { | 2819 buildUnnamed3148() { |
2711 var o = new core.List<core.Map<core.String, core.Object>>(); | 2820 var o = new core.List<core.Map<core.String, core.Object>>(); |
2712 o.add(buildUnnamed3142()); | 2821 o.add(buildUnnamed3147()); |
2713 o.add(buildUnnamed3142()); | 2822 o.add(buildUnnamed3147()); |
2714 return o; | 2823 return o; |
2715 } | 2824 } |
2716 | 2825 |
2717 checkUnnamed3143(core.List<core.Map<core.String, core.Object>> o) { | 2826 checkUnnamed3148(core.List<core.Map<core.String, core.Object>> o) { |
2718 unittest.expect(o, unittest.hasLength(2)); | 2827 unittest.expect(o, unittest.hasLength(2)); |
2719 checkUnnamed3142(o[0]); | 2828 checkUnnamed3147(o[0]); |
2720 checkUnnamed3142(o[1]); | 2829 checkUnnamed3147(o[1]); |
2721 } | 2830 } |
2722 | 2831 |
2723 buildUnnamed3144() { | 2832 buildUnnamed3149() { |
2724 var o = new core.Map<core.String, core.Object>(); | 2833 var o = new core.Map<core.String, core.Object>(); |
2725 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2834 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2726 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2835 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2727 return o; | 2836 return o; |
2728 } | 2837 } |
2729 | 2838 |
2730 checkUnnamed3144(core.Map<core.String, core.Object> o) { | 2839 checkUnnamed3149(core.Map<core.String, core.Object> o) { |
2731 unittest.expect(o, unittest.hasLength(2)); | 2840 unittest.expect(o, unittest.hasLength(2)); |
2732 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')); | 2841 var casted34 = (o["x"]) 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')); |
2733 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')); | 2842 var casted35 = (o["y"]) 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')); |
2734 } | 2843 } |
2735 | 2844 |
2736 buildUnnamed3145() { | 2845 buildUnnamed3150() { |
2737 var o = new core.Map<core.String, core.Object>(); | 2846 var o = new core.Map<core.String, core.Object>(); |
2738 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2847 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2739 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2848 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2740 return o; | 2849 return o; |
2741 } | 2850 } |
2742 | 2851 |
2743 checkUnnamed3145(core.Map<core.String, core.Object> o) { | 2852 checkUnnamed3150(core.Map<core.String, core.Object> o) { |
2744 unittest.expect(o, unittest.hasLength(2)); | 2853 unittest.expect(o, unittest.hasLength(2)); |
2745 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')); | 2854 var casted36 = (o["x"]) 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')); |
2746 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')); | 2855 var casted37 = (o["y"]) 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')); |
2747 } | 2856 } |
2748 | 2857 |
2749 core.int buildCounterSource = 0; | 2858 core.int buildCounterSource = 0; |
2750 buildSource() { | 2859 buildSource() { |
2751 var o = new api.Source(); | 2860 var o = new api.Source(); |
2752 buildCounterSource++; | 2861 buildCounterSource++; |
2753 if (buildCounterSource < 3) { | 2862 if (buildCounterSource < 3) { |
2754 o.baseSpecs = buildUnnamed3143(); | 2863 o.baseSpecs = buildUnnamed3148(); |
2755 o.codec = buildUnnamed3144(); | 2864 o.codec = buildUnnamed3149(); |
2756 o.doesNotNeedSplitting = true; | 2865 o.doesNotNeedSplitting = true; |
2757 o.metadata = buildSourceMetadata(); | 2866 o.metadata = buildSourceMetadata(); |
2758 o.spec = buildUnnamed3145(); | 2867 o.spec = buildUnnamed3150(); |
2759 } | 2868 } |
2760 buildCounterSource--; | 2869 buildCounterSource--; |
2761 return o; | 2870 return o; |
2762 } | 2871 } |
2763 | 2872 |
2764 checkSource(api.Source o) { | 2873 checkSource(api.Source o) { |
2765 buildCounterSource++; | 2874 buildCounterSource++; |
2766 if (buildCounterSource < 3) { | 2875 if (buildCounterSource < 3) { |
2767 checkUnnamed3143(o.baseSpecs); | 2876 checkUnnamed3148(o.baseSpecs); |
2768 checkUnnamed3144(o.codec); | 2877 checkUnnamed3149(o.codec); |
2769 unittest.expect(o.doesNotNeedSplitting, unittest.isTrue); | 2878 unittest.expect(o.doesNotNeedSplitting, unittest.isTrue); |
2770 checkSourceMetadata(o.metadata); | 2879 checkSourceMetadata(o.metadata); |
2771 checkUnnamed3145(o.spec); | 2880 checkUnnamed3150(o.spec); |
2772 } | 2881 } |
2773 buildCounterSource--; | 2882 buildCounterSource--; |
2774 } | 2883 } |
2775 | 2884 |
2776 core.int buildCounterSourceFork = 0; | 2885 core.int buildCounterSourceFork = 0; |
2777 buildSourceFork() { | 2886 buildSourceFork() { |
2778 var o = new api.SourceFork(); | 2887 var o = new api.SourceFork(); |
2779 buildCounterSourceFork++; | 2888 buildCounterSourceFork++; |
2780 if (buildCounterSourceFork < 3) { | 2889 if (buildCounterSourceFork < 3) { |
2781 o.primary = buildSourceSplitShard(); | 2890 o.primary = buildSourceSplitShard(); |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2936 | 3045 |
2937 checkSourceSplitRequest(api.SourceSplitRequest o) { | 3046 checkSourceSplitRequest(api.SourceSplitRequest o) { |
2938 buildCounterSourceSplitRequest++; | 3047 buildCounterSourceSplitRequest++; |
2939 if (buildCounterSourceSplitRequest < 3) { | 3048 if (buildCounterSourceSplitRequest < 3) { |
2940 checkSourceSplitOptions(o.options); | 3049 checkSourceSplitOptions(o.options); |
2941 checkSource(o.source); | 3050 checkSource(o.source); |
2942 } | 3051 } |
2943 buildCounterSourceSplitRequest--; | 3052 buildCounterSourceSplitRequest--; |
2944 } | 3053 } |
2945 | 3054 |
2946 buildUnnamed3146() { | 3055 buildUnnamed3151() { |
2947 var o = new core.List<api.DerivedSource>(); | 3056 var o = new core.List<api.DerivedSource>(); |
2948 o.add(buildDerivedSource()); | 3057 o.add(buildDerivedSource()); |
2949 o.add(buildDerivedSource()); | 3058 o.add(buildDerivedSource()); |
2950 return o; | 3059 return o; |
2951 } | 3060 } |
2952 | 3061 |
2953 checkUnnamed3146(core.List<api.DerivedSource> o) { | 3062 checkUnnamed3151(core.List<api.DerivedSource> o) { |
2954 unittest.expect(o, unittest.hasLength(2)); | 3063 unittest.expect(o, unittest.hasLength(2)); |
2955 checkDerivedSource(o[0]); | 3064 checkDerivedSource(o[0]); |
2956 checkDerivedSource(o[1]); | 3065 checkDerivedSource(o[1]); |
2957 } | 3066 } |
2958 | 3067 |
2959 buildUnnamed3147() { | 3068 buildUnnamed3152() { |
2960 var o = new core.List<api.SourceSplitShard>(); | 3069 var o = new core.List<api.SourceSplitShard>(); |
2961 o.add(buildSourceSplitShard()); | 3070 o.add(buildSourceSplitShard()); |
2962 o.add(buildSourceSplitShard()); | 3071 o.add(buildSourceSplitShard()); |
2963 return o; | 3072 return o; |
2964 } | 3073 } |
2965 | 3074 |
2966 checkUnnamed3147(core.List<api.SourceSplitShard> o) { | 3075 checkUnnamed3152(core.List<api.SourceSplitShard> o) { |
2967 unittest.expect(o, unittest.hasLength(2)); | 3076 unittest.expect(o, unittest.hasLength(2)); |
2968 checkSourceSplitShard(o[0]); | 3077 checkSourceSplitShard(o[0]); |
2969 checkSourceSplitShard(o[1]); | 3078 checkSourceSplitShard(o[1]); |
2970 } | 3079 } |
2971 | 3080 |
2972 core.int buildCounterSourceSplitResponse = 0; | 3081 core.int buildCounterSourceSplitResponse = 0; |
2973 buildSourceSplitResponse() { | 3082 buildSourceSplitResponse() { |
2974 var o = new api.SourceSplitResponse(); | 3083 var o = new api.SourceSplitResponse(); |
2975 buildCounterSourceSplitResponse++; | 3084 buildCounterSourceSplitResponse++; |
2976 if (buildCounterSourceSplitResponse < 3) { | 3085 if (buildCounterSourceSplitResponse < 3) { |
2977 o.bundles = buildUnnamed3146(); | 3086 o.bundles = buildUnnamed3151(); |
2978 o.outcome = "foo"; | 3087 o.outcome = "foo"; |
2979 o.shards = buildUnnamed3147(); | 3088 o.shards = buildUnnamed3152(); |
2980 } | 3089 } |
2981 buildCounterSourceSplitResponse--; | 3090 buildCounterSourceSplitResponse--; |
2982 return o; | 3091 return o; |
2983 } | 3092 } |
2984 | 3093 |
2985 checkSourceSplitResponse(api.SourceSplitResponse o) { | 3094 checkSourceSplitResponse(api.SourceSplitResponse o) { |
2986 buildCounterSourceSplitResponse++; | 3095 buildCounterSourceSplitResponse++; |
2987 if (buildCounterSourceSplitResponse < 3) { | 3096 if (buildCounterSourceSplitResponse < 3) { |
2988 checkUnnamed3146(o.bundles); | 3097 checkUnnamed3151(o.bundles); |
2989 unittest.expect(o.outcome, unittest.equals('foo')); | 3098 unittest.expect(o.outcome, unittest.equals('foo')); |
2990 checkUnnamed3147(o.shards); | 3099 checkUnnamed3152(o.shards); |
2991 } | 3100 } |
2992 buildCounterSourceSplitResponse--; | 3101 buildCounterSourceSplitResponse--; |
2993 } | 3102 } |
2994 | 3103 |
2995 core.int buildCounterSourceSplitShard = 0; | 3104 core.int buildCounterSourceSplitShard = 0; |
2996 buildSourceSplitShard() { | 3105 buildSourceSplitShard() { |
2997 var o = new api.SourceSplitShard(); | 3106 var o = new api.SourceSplitShard(); |
2998 buildCounterSourceSplitShard++; | 3107 buildCounterSourceSplitShard++; |
2999 if (buildCounterSourceSplitShard < 3) { | 3108 if (buildCounterSourceSplitShard < 3) { |
3000 o.derivationMode = "foo"; | 3109 o.derivationMode = "foo"; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3073 | 3182 |
3074 checkStateFamilyConfig(api.StateFamilyConfig o) { | 3183 checkStateFamilyConfig(api.StateFamilyConfig o) { |
3075 buildCounterStateFamilyConfig++; | 3184 buildCounterStateFamilyConfig++; |
3076 if (buildCounterStateFamilyConfig < 3) { | 3185 if (buildCounterStateFamilyConfig < 3) { |
3077 unittest.expect(o.isRead, unittest.isTrue); | 3186 unittest.expect(o.isRead, unittest.isTrue); |
3078 unittest.expect(o.stateFamily, unittest.equals('foo')); | 3187 unittest.expect(o.stateFamily, unittest.equals('foo')); |
3079 } | 3188 } |
3080 buildCounterStateFamilyConfig--; | 3189 buildCounterStateFamilyConfig--; |
3081 } | 3190 } |
3082 | 3191 |
3083 buildUnnamed3148() { | 3192 buildUnnamed3153() { |
3084 var o = new core.Map<core.String, core.Object>(); | 3193 var o = new core.Map<core.String, core.Object>(); |
3085 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3194 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
3086 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3195 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
3087 return o; | 3196 return o; |
3088 } | 3197 } |
3089 | 3198 |
3090 checkUnnamed3148(core.Map<core.String, core.Object> o) { | 3199 checkUnnamed3153(core.Map<core.String, core.Object> o) { |
3091 unittest.expect(o, unittest.hasLength(2)); | 3200 unittest.expect(o, unittest.hasLength(2)); |
3092 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')); | 3201 var casted38 = (o["x"]) 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')); |
3093 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')); | 3202 var casted39 = (o["y"]) 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')); |
3094 } | 3203 } |
3095 | 3204 |
3096 buildUnnamed3149() { | 3205 buildUnnamed3154() { |
3097 var o = new core.List<core.Map<core.String, core.Object>>(); | 3206 var o = new core.List<core.Map<core.String, core.Object>>(); |
3098 o.add(buildUnnamed3148()); | 3207 o.add(buildUnnamed3153()); |
3099 o.add(buildUnnamed3148()); | 3208 o.add(buildUnnamed3153()); |
3100 return o; | 3209 return o; |
3101 } | 3210 } |
3102 | 3211 |
3103 checkUnnamed3149(core.List<core.Map<core.String, core.Object>> o) { | 3212 checkUnnamed3154(core.List<core.Map<core.String, core.Object>> o) { |
3104 unittest.expect(o, unittest.hasLength(2)); | 3213 unittest.expect(o, unittest.hasLength(2)); |
3105 checkUnnamed3148(o[0]); | 3214 checkUnnamed3153(o[0]); |
3106 checkUnnamed3148(o[1]); | 3215 checkUnnamed3153(o[1]); |
3107 } | 3216 } |
3108 | 3217 |
3109 core.int buildCounterStatus = 0; | 3218 core.int buildCounterStatus = 0; |
3110 buildStatus() { | 3219 buildStatus() { |
3111 var o = new api.Status(); | 3220 var o = new api.Status(); |
3112 buildCounterStatus++; | 3221 buildCounterStatus++; |
3113 if (buildCounterStatus < 3) { | 3222 if (buildCounterStatus < 3) { |
3114 o.code = 42; | 3223 o.code = 42; |
3115 o.details = buildUnnamed3149(); | 3224 o.details = buildUnnamed3154(); |
3116 o.message = "foo"; | 3225 o.message = "foo"; |
3117 } | 3226 } |
3118 buildCounterStatus--; | 3227 buildCounterStatus--; |
3119 return o; | 3228 return o; |
3120 } | 3229 } |
3121 | 3230 |
3122 checkStatus(api.Status o) { | 3231 checkStatus(api.Status o) { |
3123 buildCounterStatus++; | 3232 buildCounterStatus++; |
3124 if (buildCounterStatus < 3) { | 3233 if (buildCounterStatus < 3) { |
3125 unittest.expect(o.code, unittest.equals(42)); | 3234 unittest.expect(o.code, unittest.equals(42)); |
3126 checkUnnamed3149(o.details); | 3235 checkUnnamed3154(o.details); |
3127 unittest.expect(o.message, unittest.equals('foo')); | 3236 unittest.expect(o.message, unittest.equals('foo')); |
3128 } | 3237 } |
3129 buildCounterStatus--; | 3238 buildCounterStatus--; |
3130 } | 3239 } |
3131 | 3240 |
3132 buildUnnamed3150() { | 3241 buildUnnamed3155() { |
3133 var o = new core.Map<core.String, core.Object>(); | 3242 var o = new core.Map<core.String, core.Object>(); |
3134 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3243 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
3135 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3244 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
3136 return o; | 3245 return o; |
3137 } | 3246 } |
3138 | 3247 |
3139 checkUnnamed3150(core.Map<core.String, core.Object> o) { | 3248 checkUnnamed3155(core.Map<core.String, core.Object> o) { |
3140 unittest.expect(o, unittest.hasLength(2)); | 3249 unittest.expect(o, unittest.hasLength(2)); |
3141 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')); | 3250 var casted40 = (o["x"]) 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')); |
3142 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')); | 3251 var casted41 = (o["y"]) 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')); |
3143 } | 3252 } |
3144 | 3253 |
3145 core.int buildCounterStep = 0; | 3254 core.int buildCounterStep = 0; |
3146 buildStep() { | 3255 buildStep() { |
3147 var o = new api.Step(); | 3256 var o = new api.Step(); |
3148 buildCounterStep++; | 3257 buildCounterStep++; |
3149 if (buildCounterStep < 3) { | 3258 if (buildCounterStep < 3) { |
3150 o.kind = "foo"; | 3259 o.kind = "foo"; |
3151 o.name = "foo"; | 3260 o.name = "foo"; |
3152 o.properties = buildUnnamed3150(); | 3261 o.properties = buildUnnamed3155(); |
3153 } | 3262 } |
3154 buildCounterStep--; | 3263 buildCounterStep--; |
3155 return o; | 3264 return o; |
3156 } | 3265 } |
3157 | 3266 |
3158 checkStep(api.Step o) { | 3267 checkStep(api.Step o) { |
3159 buildCounterStep++; | 3268 buildCounterStep++; |
3160 if (buildCounterStep < 3) { | 3269 if (buildCounterStep < 3) { |
3161 unittest.expect(o.kind, unittest.equals('foo')); | 3270 unittest.expect(o.kind, unittest.equals('foo')); |
3162 unittest.expect(o.name, unittest.equals('foo')); | 3271 unittest.expect(o.name, unittest.equals('foo')); |
3163 checkUnnamed3150(o.properties); | 3272 checkUnnamed3155(o.properties); |
3164 } | 3273 } |
3165 buildCounterStep--; | 3274 buildCounterStep--; |
3166 } | 3275 } |
3167 | 3276 |
3168 core.int buildCounterStreamLocation = 0; | 3277 core.int buildCounterStreamLocation = 0; |
3169 buildStreamLocation() { | 3278 buildStreamLocation() { |
3170 var o = new api.StreamLocation(); | 3279 var o = new api.StreamLocation(); |
3171 buildCounterStreamLocation++; | 3280 buildCounterStreamLocation++; |
3172 if (buildCounterStreamLocation < 3) { | 3281 if (buildCounterStreamLocation < 3) { |
3173 o.customSourceLocation = buildCustomSourceLocation(); | 3282 o.customSourceLocation = buildCustomSourceLocation(); |
3174 o.pubsubLocation = buildPubsubLocation(); | 3283 o.pubsubLocation = buildPubsubLocation(); |
3175 o.sideInputLocation = buildStreamingSideInputLocation(); | 3284 o.sideInputLocation = buildStreamingSideInputLocation(); |
3176 o.streamingStageLocation = buildStreamingStageLocation(); | 3285 o.streamingStageLocation = buildStreamingStageLocation(); |
3177 } | 3286 } |
3178 buildCounterStreamLocation--; | 3287 buildCounterStreamLocation--; |
3179 return o; | 3288 return o; |
3180 } | 3289 } |
3181 | 3290 |
3182 checkStreamLocation(api.StreamLocation o) { | 3291 checkStreamLocation(api.StreamLocation o) { |
3183 buildCounterStreamLocation++; | 3292 buildCounterStreamLocation++; |
3184 if (buildCounterStreamLocation < 3) { | 3293 if (buildCounterStreamLocation < 3) { |
3185 checkCustomSourceLocation(o.customSourceLocation); | 3294 checkCustomSourceLocation(o.customSourceLocation); |
3186 checkPubsubLocation(o.pubsubLocation); | 3295 checkPubsubLocation(o.pubsubLocation); |
3187 checkStreamingSideInputLocation(o.sideInputLocation); | 3296 checkStreamingSideInputLocation(o.sideInputLocation); |
3188 checkStreamingStageLocation(o.streamingStageLocation); | 3297 checkStreamingStageLocation(o.streamingStageLocation); |
3189 } | 3298 } |
3190 buildCounterStreamLocation--; | 3299 buildCounterStreamLocation--; |
3191 } | 3300 } |
3192 | 3301 |
3193 buildUnnamed3151() { | 3302 buildUnnamed3156() { |
3194 var o = new core.List<api.ParallelInstruction>(); | 3303 var o = new core.List<api.ParallelInstruction>(); |
3195 o.add(buildParallelInstruction()); | 3304 o.add(buildParallelInstruction()); |
3196 o.add(buildParallelInstruction()); | 3305 o.add(buildParallelInstruction()); |
3197 return o; | 3306 return o; |
3198 } | 3307 } |
3199 | 3308 |
3200 checkUnnamed3151(core.List<api.ParallelInstruction> o) { | 3309 checkUnnamed3156(core.List<api.ParallelInstruction> o) { |
3201 unittest.expect(o, unittest.hasLength(2)); | 3310 unittest.expect(o, unittest.hasLength(2)); |
3202 checkParallelInstruction(o[0]); | 3311 checkParallelInstruction(o[0]); |
3203 checkParallelInstruction(o[1]); | 3312 checkParallelInstruction(o[1]); |
3204 } | 3313 } |
3205 | 3314 |
3206 core.int buildCounterStreamingComputationConfig = 0; | 3315 core.int buildCounterStreamingComputationConfig = 0; |
3207 buildStreamingComputationConfig() { | 3316 buildStreamingComputationConfig() { |
3208 var o = new api.StreamingComputationConfig(); | 3317 var o = new api.StreamingComputationConfig(); |
3209 buildCounterStreamingComputationConfig++; | 3318 buildCounterStreamingComputationConfig++; |
3210 if (buildCounterStreamingComputationConfig < 3) { | 3319 if (buildCounterStreamingComputationConfig < 3) { |
3211 o.computationId = "foo"; | 3320 o.computationId = "foo"; |
3212 o.instructions = buildUnnamed3151(); | 3321 o.instructions = buildUnnamed3156(); |
3213 o.stageName = "foo"; | 3322 o.stageName = "foo"; |
3214 o.systemName = "foo"; | 3323 o.systemName = "foo"; |
3215 } | 3324 } |
3216 buildCounterStreamingComputationConfig--; | 3325 buildCounterStreamingComputationConfig--; |
3217 return o; | 3326 return o; |
3218 } | 3327 } |
3219 | 3328 |
3220 checkStreamingComputationConfig(api.StreamingComputationConfig o) { | 3329 checkStreamingComputationConfig(api.StreamingComputationConfig o) { |
3221 buildCounterStreamingComputationConfig++; | 3330 buildCounterStreamingComputationConfig++; |
3222 if (buildCounterStreamingComputationConfig < 3) { | 3331 if (buildCounterStreamingComputationConfig < 3) { |
3223 unittest.expect(o.computationId, unittest.equals('foo')); | 3332 unittest.expect(o.computationId, unittest.equals('foo')); |
3224 checkUnnamed3151(o.instructions); | 3333 checkUnnamed3156(o.instructions); |
3225 unittest.expect(o.stageName, unittest.equals('foo')); | 3334 unittest.expect(o.stageName, unittest.equals('foo')); |
3226 unittest.expect(o.systemName, unittest.equals('foo')); | 3335 unittest.expect(o.systemName, unittest.equals('foo')); |
3227 } | 3336 } |
3228 buildCounterStreamingComputationConfig--; | 3337 buildCounterStreamingComputationConfig--; |
3229 } | 3338 } |
3230 | 3339 |
3231 buildUnnamed3152() { | 3340 buildUnnamed3157() { |
3232 var o = new core.List<api.KeyRangeDataDiskAssignment>(); | 3341 var o = new core.List<api.KeyRangeDataDiskAssignment>(); |
3233 o.add(buildKeyRangeDataDiskAssignment()); | 3342 o.add(buildKeyRangeDataDiskAssignment()); |
3234 o.add(buildKeyRangeDataDiskAssignment()); | 3343 o.add(buildKeyRangeDataDiskAssignment()); |
3235 return o; | 3344 return o; |
3236 } | 3345 } |
3237 | 3346 |
3238 checkUnnamed3152(core.List<api.KeyRangeDataDiskAssignment> o) { | 3347 checkUnnamed3157(core.List<api.KeyRangeDataDiskAssignment> o) { |
3239 unittest.expect(o, unittest.hasLength(2)); | 3348 unittest.expect(o, unittest.hasLength(2)); |
3240 checkKeyRangeDataDiskAssignment(o[0]); | 3349 checkKeyRangeDataDiskAssignment(o[0]); |
3241 checkKeyRangeDataDiskAssignment(o[1]); | 3350 checkKeyRangeDataDiskAssignment(o[1]); |
3242 } | 3351 } |
3243 | 3352 |
3244 core.int buildCounterStreamingComputationRanges = 0; | 3353 core.int buildCounterStreamingComputationRanges = 0; |
3245 buildStreamingComputationRanges() { | 3354 buildStreamingComputationRanges() { |
3246 var o = new api.StreamingComputationRanges(); | 3355 var o = new api.StreamingComputationRanges(); |
3247 buildCounterStreamingComputationRanges++; | 3356 buildCounterStreamingComputationRanges++; |
3248 if (buildCounterStreamingComputationRanges < 3) { | 3357 if (buildCounterStreamingComputationRanges < 3) { |
3249 o.computationId = "foo"; | 3358 o.computationId = "foo"; |
3250 o.rangeAssignments = buildUnnamed3152(); | 3359 o.rangeAssignments = buildUnnamed3157(); |
3251 } | 3360 } |
3252 buildCounterStreamingComputationRanges--; | 3361 buildCounterStreamingComputationRanges--; |
3253 return o; | 3362 return o; |
3254 } | 3363 } |
3255 | 3364 |
3256 checkStreamingComputationRanges(api.StreamingComputationRanges o) { | 3365 checkStreamingComputationRanges(api.StreamingComputationRanges o) { |
3257 buildCounterStreamingComputationRanges++; | 3366 buildCounterStreamingComputationRanges++; |
3258 if (buildCounterStreamingComputationRanges < 3) { | 3367 if (buildCounterStreamingComputationRanges < 3) { |
3259 unittest.expect(o.computationId, unittest.equals('foo')); | 3368 unittest.expect(o.computationId, unittest.equals('foo')); |
3260 checkUnnamed3152(o.rangeAssignments); | 3369 checkUnnamed3157(o.rangeAssignments); |
3261 } | 3370 } |
3262 buildCounterStreamingComputationRanges--; | 3371 buildCounterStreamingComputationRanges--; |
3263 } | 3372 } |
3264 | 3373 |
3265 buildUnnamed3153() { | 3374 buildUnnamed3158() { |
3266 var o = new core.List<api.StreamingComputationRanges>(); | 3375 var o = new core.List<api.StreamingComputationRanges>(); |
3267 o.add(buildStreamingComputationRanges()); | 3376 o.add(buildStreamingComputationRanges()); |
3268 o.add(buildStreamingComputationRanges()); | 3377 o.add(buildStreamingComputationRanges()); |
3269 return o; | 3378 return o; |
3270 } | 3379 } |
3271 | 3380 |
3272 checkUnnamed3153(core.List<api.StreamingComputationRanges> o) { | 3381 checkUnnamed3158(core.List<api.StreamingComputationRanges> o) { |
3273 unittest.expect(o, unittest.hasLength(2)); | 3382 unittest.expect(o, unittest.hasLength(2)); |
3274 checkStreamingComputationRanges(o[0]); | 3383 checkStreamingComputationRanges(o[0]); |
3275 checkStreamingComputationRanges(o[1]); | 3384 checkStreamingComputationRanges(o[1]); |
3276 } | 3385 } |
3277 | 3386 |
3278 buildUnnamed3154() { | 3387 buildUnnamed3159() { |
3279 var o = new core.List<api.MountedDataDisk>(); | 3388 var o = new core.List<api.MountedDataDisk>(); |
3280 o.add(buildMountedDataDisk()); | 3389 o.add(buildMountedDataDisk()); |
3281 o.add(buildMountedDataDisk()); | 3390 o.add(buildMountedDataDisk()); |
3282 return o; | 3391 return o; |
3283 } | 3392 } |
3284 | 3393 |
3285 checkUnnamed3154(core.List<api.MountedDataDisk> o) { | 3394 checkUnnamed3159(core.List<api.MountedDataDisk> o) { |
3286 unittest.expect(o, unittest.hasLength(2)); | 3395 unittest.expect(o, unittest.hasLength(2)); |
3287 checkMountedDataDisk(o[0]); | 3396 checkMountedDataDisk(o[0]); |
3288 checkMountedDataDisk(o[1]); | 3397 checkMountedDataDisk(o[1]); |
3289 } | 3398 } |
3290 | 3399 |
3291 core.int buildCounterStreamingComputationTask = 0; | 3400 core.int buildCounterStreamingComputationTask = 0; |
3292 buildStreamingComputationTask() { | 3401 buildStreamingComputationTask() { |
3293 var o = new api.StreamingComputationTask(); | 3402 var o = new api.StreamingComputationTask(); |
3294 buildCounterStreamingComputationTask++; | 3403 buildCounterStreamingComputationTask++; |
3295 if (buildCounterStreamingComputationTask < 3) { | 3404 if (buildCounterStreamingComputationTask < 3) { |
3296 o.computationRanges = buildUnnamed3153(); | 3405 o.computationRanges = buildUnnamed3158(); |
3297 o.dataDisks = buildUnnamed3154(); | 3406 o.dataDisks = buildUnnamed3159(); |
3298 o.taskType = "foo"; | 3407 o.taskType = "foo"; |
3299 } | 3408 } |
3300 buildCounterStreamingComputationTask--; | 3409 buildCounterStreamingComputationTask--; |
3301 return o; | 3410 return o; |
3302 } | 3411 } |
3303 | 3412 |
3304 checkStreamingComputationTask(api.StreamingComputationTask o) { | 3413 checkStreamingComputationTask(api.StreamingComputationTask o) { |
3305 buildCounterStreamingComputationTask++; | 3414 buildCounterStreamingComputationTask++; |
3306 if (buildCounterStreamingComputationTask < 3) { | 3415 if (buildCounterStreamingComputationTask < 3) { |
3307 checkUnnamed3153(o.computationRanges); | 3416 checkUnnamed3158(o.computationRanges); |
3308 checkUnnamed3154(o.dataDisks); | 3417 checkUnnamed3159(o.dataDisks); |
3309 unittest.expect(o.taskType, unittest.equals('foo')); | 3418 unittest.expect(o.taskType, unittest.equals('foo')); |
3310 } | 3419 } |
3311 buildCounterStreamingComputationTask--; | 3420 buildCounterStreamingComputationTask--; |
3312 } | 3421 } |
3313 | 3422 |
3314 buildUnnamed3155() { | 3423 buildUnnamed3160() { |
3315 var o = new core.List<api.StreamingComputationConfig>(); | 3424 var o = new core.List<api.StreamingComputationConfig>(); |
3316 o.add(buildStreamingComputationConfig()); | 3425 o.add(buildStreamingComputationConfig()); |
3317 o.add(buildStreamingComputationConfig()); | 3426 o.add(buildStreamingComputationConfig()); |
3318 return o; | 3427 return o; |
3319 } | 3428 } |
3320 | 3429 |
3321 checkUnnamed3155(core.List<api.StreamingComputationConfig> o) { | 3430 checkUnnamed3160(core.List<api.StreamingComputationConfig> o) { |
3322 unittest.expect(o, unittest.hasLength(2)); | 3431 unittest.expect(o, unittest.hasLength(2)); |
3323 checkStreamingComputationConfig(o[0]); | 3432 checkStreamingComputationConfig(o[0]); |
3324 checkStreamingComputationConfig(o[1]); | 3433 checkStreamingComputationConfig(o[1]); |
3325 } | 3434 } |
3326 | 3435 |
3327 buildUnnamed3156() { | 3436 buildUnnamed3161() { |
3328 var o = new core.Map<core.String, core.String>(); | 3437 var o = new core.Map<core.String, core.String>(); |
3329 o["x"] = "foo"; | 3438 o["x"] = "foo"; |
3330 o["y"] = "foo"; | 3439 o["y"] = "foo"; |
3331 return o; | 3440 return o; |
3332 } | 3441 } |
3333 | 3442 |
3334 checkUnnamed3156(core.Map<core.String, core.String> o) { | 3443 checkUnnamed3161(core.Map<core.String, core.String> o) { |
3335 unittest.expect(o, unittest.hasLength(2)); | 3444 unittest.expect(o, unittest.hasLength(2)); |
3336 unittest.expect(o["x"], unittest.equals('foo')); | 3445 unittest.expect(o["x"], unittest.equals('foo')); |
3337 unittest.expect(o["y"], unittest.equals('foo')); | 3446 unittest.expect(o["y"], unittest.equals('foo')); |
3338 } | 3447 } |
3339 | 3448 |
3340 core.int buildCounterStreamingConfigTask = 0; | 3449 core.int buildCounterStreamingConfigTask = 0; |
3341 buildStreamingConfigTask() { | 3450 buildStreamingConfigTask() { |
3342 var o = new api.StreamingConfigTask(); | 3451 var o = new api.StreamingConfigTask(); |
3343 buildCounterStreamingConfigTask++; | 3452 buildCounterStreamingConfigTask++; |
3344 if (buildCounterStreamingConfigTask < 3) { | 3453 if (buildCounterStreamingConfigTask < 3) { |
3345 o.streamingComputationConfigs = buildUnnamed3155(); | 3454 o.streamingComputationConfigs = buildUnnamed3160(); |
3346 o.userStepToStateFamilyNameMap = buildUnnamed3156(); | 3455 o.userStepToStateFamilyNameMap = buildUnnamed3161(); |
3347 } | 3456 } |
3348 buildCounterStreamingConfigTask--; | 3457 buildCounterStreamingConfigTask--; |
3349 return o; | 3458 return o; |
3350 } | 3459 } |
3351 | 3460 |
3352 checkStreamingConfigTask(api.StreamingConfigTask o) { | 3461 checkStreamingConfigTask(api.StreamingConfigTask o) { |
3353 buildCounterStreamingConfigTask++; | 3462 buildCounterStreamingConfigTask++; |
3354 if (buildCounterStreamingConfigTask < 3) { | 3463 if (buildCounterStreamingConfigTask < 3) { |
3355 checkUnnamed3155(o.streamingComputationConfigs); | 3464 checkUnnamed3160(o.streamingComputationConfigs); |
3356 checkUnnamed3156(o.userStepToStateFamilyNameMap); | 3465 checkUnnamed3161(o.userStepToStateFamilyNameMap); |
3357 } | 3466 } |
3358 buildCounterStreamingConfigTask--; | 3467 buildCounterStreamingConfigTask--; |
3359 } | 3468 } |
3360 | 3469 |
3361 core.int buildCounterStreamingSetupTask = 0; | 3470 core.int buildCounterStreamingSetupTask = 0; |
3362 buildStreamingSetupTask() { | 3471 buildStreamingSetupTask() { |
3363 var o = new api.StreamingSetupTask(); | 3472 var o = new api.StreamingSetupTask(); |
3364 buildCounterStreamingSetupTask++; | 3473 buildCounterStreamingSetupTask++; |
3365 if (buildCounterStreamingSetupTask < 3) { | 3474 if (buildCounterStreamingSetupTask < 3) { |
3366 o.drain = true; | 3475 o.drain = true; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3416 } | 3525 } |
3417 | 3526 |
3418 checkStreamingStageLocation(api.StreamingStageLocation o) { | 3527 checkStreamingStageLocation(api.StreamingStageLocation o) { |
3419 buildCounterStreamingStageLocation++; | 3528 buildCounterStreamingStageLocation++; |
3420 if (buildCounterStreamingStageLocation < 3) { | 3529 if (buildCounterStreamingStageLocation < 3) { |
3421 unittest.expect(o.streamId, unittest.equals('foo')); | 3530 unittest.expect(o.streamId, unittest.equals('foo')); |
3422 } | 3531 } |
3423 buildCounterStreamingStageLocation--; | 3532 buildCounterStreamingStageLocation--; |
3424 } | 3533 } |
3425 | 3534 |
3426 buildUnnamed3157() { | 3535 buildUnnamed3162() { |
3427 var o = new core.List<core.String>(); | 3536 var o = new core.List<core.String>(); |
3428 o.add("foo"); | 3537 o.add("foo"); |
3429 o.add("foo"); | 3538 o.add("foo"); |
3430 return o; | 3539 return o; |
3431 } | 3540 } |
3432 | 3541 |
3433 checkUnnamed3157(core.List<core.String> o) { | 3542 checkUnnamed3162(core.List<core.String> o) { |
3434 unittest.expect(o, unittest.hasLength(2)); | 3543 unittest.expect(o, unittest.hasLength(2)); |
3435 unittest.expect(o[0], unittest.equals('foo')); | 3544 unittest.expect(o[0], unittest.equals('foo')); |
3436 unittest.expect(o[1], unittest.equals('foo')); | 3545 unittest.expect(o[1], unittest.equals('foo')); |
3437 } | 3546 } |
3438 | 3547 |
3439 core.int buildCounterStringList = 0; | 3548 core.int buildCounterStringList = 0; |
3440 buildStringList() { | 3549 buildStringList() { |
3441 var o = new api.StringList(); | 3550 var o = new api.StringList(); |
3442 buildCounterStringList++; | 3551 buildCounterStringList++; |
3443 if (buildCounterStringList < 3) { | 3552 if (buildCounterStringList < 3) { |
3444 o.elements = buildUnnamed3157(); | 3553 o.elements = buildUnnamed3162(); |
3445 } | 3554 } |
3446 buildCounterStringList--; | 3555 buildCounterStringList--; |
3447 return o; | 3556 return o; |
3448 } | 3557 } |
3449 | 3558 |
3450 checkStringList(api.StringList o) { | 3559 checkStringList(api.StringList o) { |
3451 buildCounterStringList++; | 3560 buildCounterStringList++; |
3452 if (buildCounterStringList < 3) { | 3561 if (buildCounterStringList < 3) { |
3453 checkUnnamed3157(o.elements); | 3562 checkUnnamed3162(o.elements); |
3454 } | 3563 } |
3455 buildCounterStringList--; | 3564 buildCounterStringList--; |
3456 } | 3565 } |
3457 | 3566 |
3458 buildUnnamed3158() { | 3567 buildUnnamed3163() { |
| 3568 var o = new core.List<api.Parameter>(); |
| 3569 o.add(buildParameter()); |
| 3570 o.add(buildParameter()); |
| 3571 return o; |
| 3572 } |
| 3573 |
| 3574 checkUnnamed3163(core.List<api.Parameter> o) { |
| 3575 unittest.expect(o, unittest.hasLength(2)); |
| 3576 checkParameter(o[0]); |
| 3577 checkParameter(o[1]); |
| 3578 } |
| 3579 |
| 3580 core.int buildCounterStructuredMessage = 0; |
| 3581 buildStructuredMessage() { |
| 3582 var o = new api.StructuredMessage(); |
| 3583 buildCounterStructuredMessage++; |
| 3584 if (buildCounterStructuredMessage < 3) { |
| 3585 o.messageKey = "foo"; |
| 3586 o.messageText = "foo"; |
| 3587 o.parameters = buildUnnamed3163(); |
| 3588 } |
| 3589 buildCounterStructuredMessage--; |
| 3590 return o; |
| 3591 } |
| 3592 |
| 3593 checkStructuredMessage(api.StructuredMessage o) { |
| 3594 buildCounterStructuredMessage++; |
| 3595 if (buildCounterStructuredMessage < 3) { |
| 3596 unittest.expect(o.messageKey, unittest.equals('foo')); |
| 3597 unittest.expect(o.messageText, unittest.equals('foo')); |
| 3598 checkUnnamed3163(o.parameters); |
| 3599 } |
| 3600 buildCounterStructuredMessage--; |
| 3601 } |
| 3602 |
| 3603 buildUnnamed3164() { |
3459 var o = new core.List<core.String>(); | 3604 var o = new core.List<core.String>(); |
3460 o.add("foo"); | 3605 o.add("foo"); |
3461 o.add("foo"); | 3606 o.add("foo"); |
3462 return o; | 3607 return o; |
3463 } | 3608 } |
3464 | 3609 |
3465 checkUnnamed3158(core.List<core.String> o) { | 3610 checkUnnamed3164(core.List<core.String> o) { |
3466 unittest.expect(o, unittest.hasLength(2)); | 3611 unittest.expect(o, unittest.hasLength(2)); |
3467 unittest.expect(o[0], unittest.equals('foo')); | 3612 unittest.expect(o[0], unittest.equals('foo')); |
3468 unittest.expect(o[1], unittest.equals('foo')); | 3613 unittest.expect(o[1], unittest.equals('foo')); |
3469 } | 3614 } |
3470 | 3615 |
3471 core.int buildCounterTaskRunnerSettings = 0; | 3616 core.int buildCounterTaskRunnerSettings = 0; |
3472 buildTaskRunnerSettings() { | 3617 buildTaskRunnerSettings() { |
3473 var o = new api.TaskRunnerSettings(); | 3618 var o = new api.TaskRunnerSettings(); |
3474 buildCounterTaskRunnerSettings++; | 3619 buildCounterTaskRunnerSettings++; |
3475 if (buildCounterTaskRunnerSettings < 3) { | 3620 if (buildCounterTaskRunnerSettings < 3) { |
3476 o.alsologtostderr = true; | 3621 o.alsologtostderr = true; |
3477 o.baseTaskDir = "foo"; | 3622 o.baseTaskDir = "foo"; |
3478 o.baseUrl = "foo"; | 3623 o.baseUrl = "foo"; |
3479 o.commandlinesFileName = "foo"; | 3624 o.commandlinesFileName = "foo"; |
3480 o.continueOnException = true; | 3625 o.continueOnException = true; |
3481 o.dataflowApiVersion = "foo"; | 3626 o.dataflowApiVersion = "foo"; |
3482 o.harnessCommand = "foo"; | 3627 o.harnessCommand = "foo"; |
3483 o.languageHint = "foo"; | 3628 o.languageHint = "foo"; |
3484 o.logDir = "foo"; | 3629 o.logDir = "foo"; |
3485 o.logToSerialconsole = true; | 3630 o.logToSerialconsole = true; |
3486 o.logUploadLocation = "foo"; | 3631 o.logUploadLocation = "foo"; |
3487 o.oauthScopes = buildUnnamed3158(); | 3632 o.oauthScopes = buildUnnamed3164(); |
3488 o.parallelWorkerSettings = buildWorkerSettings(); | 3633 o.parallelWorkerSettings = buildWorkerSettings(); |
3489 o.streamingWorkerMainClass = "foo"; | 3634 o.streamingWorkerMainClass = "foo"; |
3490 o.taskGroup = "foo"; | 3635 o.taskGroup = "foo"; |
3491 o.taskUser = "foo"; | 3636 o.taskUser = "foo"; |
3492 o.tempStoragePrefix = "foo"; | 3637 o.tempStoragePrefix = "foo"; |
3493 o.vmId = "foo"; | 3638 o.vmId = "foo"; |
3494 o.workflowFileName = "foo"; | 3639 o.workflowFileName = "foo"; |
3495 } | 3640 } |
3496 buildCounterTaskRunnerSettings--; | 3641 buildCounterTaskRunnerSettings--; |
3497 return o; | 3642 return o; |
3498 } | 3643 } |
3499 | 3644 |
3500 checkTaskRunnerSettings(api.TaskRunnerSettings o) { | 3645 checkTaskRunnerSettings(api.TaskRunnerSettings o) { |
3501 buildCounterTaskRunnerSettings++; | 3646 buildCounterTaskRunnerSettings++; |
3502 if (buildCounterTaskRunnerSettings < 3) { | 3647 if (buildCounterTaskRunnerSettings < 3) { |
3503 unittest.expect(o.alsologtostderr, unittest.isTrue); | 3648 unittest.expect(o.alsologtostderr, unittest.isTrue); |
3504 unittest.expect(o.baseTaskDir, unittest.equals('foo')); | 3649 unittest.expect(o.baseTaskDir, unittest.equals('foo')); |
3505 unittest.expect(o.baseUrl, unittest.equals('foo')); | 3650 unittest.expect(o.baseUrl, unittest.equals('foo')); |
3506 unittest.expect(o.commandlinesFileName, unittest.equals('foo')); | 3651 unittest.expect(o.commandlinesFileName, unittest.equals('foo')); |
3507 unittest.expect(o.continueOnException, unittest.isTrue); | 3652 unittest.expect(o.continueOnException, unittest.isTrue); |
3508 unittest.expect(o.dataflowApiVersion, unittest.equals('foo')); | 3653 unittest.expect(o.dataflowApiVersion, unittest.equals('foo')); |
3509 unittest.expect(o.harnessCommand, unittest.equals('foo')); | 3654 unittest.expect(o.harnessCommand, unittest.equals('foo')); |
3510 unittest.expect(o.languageHint, unittest.equals('foo')); | 3655 unittest.expect(o.languageHint, unittest.equals('foo')); |
3511 unittest.expect(o.logDir, unittest.equals('foo')); | 3656 unittest.expect(o.logDir, unittest.equals('foo')); |
3512 unittest.expect(o.logToSerialconsole, unittest.isTrue); | 3657 unittest.expect(o.logToSerialconsole, unittest.isTrue); |
3513 unittest.expect(o.logUploadLocation, unittest.equals('foo')); | 3658 unittest.expect(o.logUploadLocation, unittest.equals('foo')); |
3514 checkUnnamed3158(o.oauthScopes); | 3659 checkUnnamed3164(o.oauthScopes); |
3515 checkWorkerSettings(o.parallelWorkerSettings); | 3660 checkWorkerSettings(o.parallelWorkerSettings); |
3516 unittest.expect(o.streamingWorkerMainClass, unittest.equals('foo')); | 3661 unittest.expect(o.streamingWorkerMainClass, unittest.equals('foo')); |
3517 unittest.expect(o.taskGroup, unittest.equals('foo')); | 3662 unittest.expect(o.taskGroup, unittest.equals('foo')); |
3518 unittest.expect(o.taskUser, unittest.equals('foo')); | 3663 unittest.expect(o.taskUser, unittest.equals('foo')); |
3519 unittest.expect(o.tempStoragePrefix, unittest.equals('foo')); | 3664 unittest.expect(o.tempStoragePrefix, unittest.equals('foo')); |
3520 unittest.expect(o.vmId, unittest.equals('foo')); | 3665 unittest.expect(o.vmId, unittest.equals('foo')); |
3521 unittest.expect(o.workflowFileName, unittest.equals('foo')); | 3666 unittest.expect(o.workflowFileName, unittest.equals('foo')); |
3522 } | 3667 } |
3523 buildCounterTaskRunnerSettings--; | 3668 buildCounterTaskRunnerSettings--; |
3524 } | 3669 } |
3525 | 3670 |
3526 buildUnnamed3159() { | 3671 buildUnnamed3165() { |
3527 var o = new core.List<api.ParameterMetadata>(); | 3672 var o = new core.List<api.ParameterMetadata>(); |
3528 o.add(buildParameterMetadata()); | 3673 o.add(buildParameterMetadata()); |
3529 o.add(buildParameterMetadata()); | 3674 o.add(buildParameterMetadata()); |
3530 return o; | 3675 return o; |
3531 } | 3676 } |
3532 | 3677 |
3533 checkUnnamed3159(core.List<api.ParameterMetadata> o) { | 3678 checkUnnamed3165(core.List<api.ParameterMetadata> o) { |
3534 unittest.expect(o, unittest.hasLength(2)); | 3679 unittest.expect(o, unittest.hasLength(2)); |
3535 checkParameterMetadata(o[0]); | 3680 checkParameterMetadata(o[0]); |
3536 checkParameterMetadata(o[1]); | 3681 checkParameterMetadata(o[1]); |
3537 } | 3682 } |
3538 | 3683 |
3539 core.int buildCounterTemplateMetadata = 0; | 3684 core.int buildCounterTemplateMetadata = 0; |
3540 buildTemplateMetadata() { | 3685 buildTemplateMetadata() { |
3541 var o = new api.TemplateMetadata(); | 3686 var o = new api.TemplateMetadata(); |
3542 buildCounterTemplateMetadata++; | 3687 buildCounterTemplateMetadata++; |
3543 if (buildCounterTemplateMetadata < 3) { | 3688 if (buildCounterTemplateMetadata < 3) { |
3544 o.bypassTempDirValidation = true; | 3689 o.bypassTempDirValidation = true; |
3545 o.description = "foo"; | 3690 o.description = "foo"; |
3546 o.name = "foo"; | 3691 o.name = "foo"; |
3547 o.parameters = buildUnnamed3159(); | 3692 o.parameters = buildUnnamed3165(); |
3548 } | 3693 } |
3549 buildCounterTemplateMetadata--; | 3694 buildCounterTemplateMetadata--; |
3550 return o; | 3695 return o; |
3551 } | 3696 } |
3552 | 3697 |
3553 checkTemplateMetadata(api.TemplateMetadata o) { | 3698 checkTemplateMetadata(api.TemplateMetadata o) { |
3554 buildCounterTemplateMetadata++; | 3699 buildCounterTemplateMetadata++; |
3555 if (buildCounterTemplateMetadata < 3) { | 3700 if (buildCounterTemplateMetadata < 3) { |
3556 unittest.expect(o.bypassTempDirValidation, unittest.isTrue); | 3701 unittest.expect(o.bypassTempDirValidation, unittest.isTrue); |
3557 unittest.expect(o.description, unittest.equals('foo')); | 3702 unittest.expect(o.description, unittest.equals('foo')); |
3558 unittest.expect(o.name, unittest.equals('foo')); | 3703 unittest.expect(o.name, unittest.equals('foo')); |
3559 checkUnnamed3159(o.parameters); | 3704 checkUnnamed3165(o.parameters); |
3560 } | 3705 } |
3561 buildCounterTemplateMetadata--; | 3706 buildCounterTemplateMetadata--; |
3562 } | 3707 } |
3563 | 3708 |
3564 buildUnnamed3160() { | 3709 buildUnnamed3166() { |
3565 var o = new core.List<api.ComputationTopology>(); | 3710 var o = new core.List<api.ComputationTopology>(); |
3566 o.add(buildComputationTopology()); | 3711 o.add(buildComputationTopology()); |
3567 o.add(buildComputationTopology()); | 3712 o.add(buildComputationTopology()); |
3568 return o; | 3713 return o; |
3569 } | 3714 } |
3570 | 3715 |
3571 checkUnnamed3160(core.List<api.ComputationTopology> o) { | 3716 checkUnnamed3166(core.List<api.ComputationTopology> o) { |
3572 unittest.expect(o, unittest.hasLength(2)); | 3717 unittest.expect(o, unittest.hasLength(2)); |
3573 checkComputationTopology(o[0]); | 3718 checkComputationTopology(o[0]); |
3574 checkComputationTopology(o[1]); | 3719 checkComputationTopology(o[1]); |
3575 } | 3720 } |
3576 | 3721 |
3577 buildUnnamed3161() { | 3722 buildUnnamed3167() { |
3578 var o = new core.List<api.DataDiskAssignment>(); | 3723 var o = new core.List<api.DataDiskAssignment>(); |
3579 o.add(buildDataDiskAssignment()); | 3724 o.add(buildDataDiskAssignment()); |
3580 o.add(buildDataDiskAssignment()); | 3725 o.add(buildDataDiskAssignment()); |
3581 return o; | 3726 return o; |
3582 } | 3727 } |
3583 | 3728 |
3584 checkUnnamed3161(core.List<api.DataDiskAssignment> o) { | 3729 checkUnnamed3167(core.List<api.DataDiskAssignment> o) { |
3585 unittest.expect(o, unittest.hasLength(2)); | 3730 unittest.expect(o, unittest.hasLength(2)); |
3586 checkDataDiskAssignment(o[0]); | 3731 checkDataDiskAssignment(o[0]); |
3587 checkDataDiskAssignment(o[1]); | 3732 checkDataDiskAssignment(o[1]); |
3588 } | 3733 } |
3589 | 3734 |
3590 buildUnnamed3162() { | 3735 buildUnnamed3168() { |
3591 var o = new core.Map<core.String, core.String>(); | 3736 var o = new core.Map<core.String, core.String>(); |
3592 o["x"] = "foo"; | 3737 o["x"] = "foo"; |
3593 o["y"] = "foo"; | 3738 o["y"] = "foo"; |
3594 return o; | 3739 return o; |
3595 } | 3740 } |
3596 | 3741 |
3597 checkUnnamed3162(core.Map<core.String, core.String> o) { | 3742 checkUnnamed3168(core.Map<core.String, core.String> o) { |
3598 unittest.expect(o, unittest.hasLength(2)); | 3743 unittest.expect(o, unittest.hasLength(2)); |
3599 unittest.expect(o["x"], unittest.equals('foo')); | 3744 unittest.expect(o["x"], unittest.equals('foo')); |
3600 unittest.expect(o["y"], unittest.equals('foo')); | 3745 unittest.expect(o["y"], unittest.equals('foo')); |
3601 } | 3746 } |
3602 | 3747 |
3603 core.int buildCounterTopologyConfig = 0; | 3748 core.int buildCounterTopologyConfig = 0; |
3604 buildTopologyConfig() { | 3749 buildTopologyConfig() { |
3605 var o = new api.TopologyConfig(); | 3750 var o = new api.TopologyConfig(); |
3606 buildCounterTopologyConfig++; | 3751 buildCounterTopologyConfig++; |
3607 if (buildCounterTopologyConfig < 3) { | 3752 if (buildCounterTopologyConfig < 3) { |
3608 o.computations = buildUnnamed3160(); | 3753 o.computations = buildUnnamed3166(); |
3609 o.dataDiskAssignments = buildUnnamed3161(); | 3754 o.dataDiskAssignments = buildUnnamed3167(); |
3610 o.forwardingKeyBits = 42; | 3755 o.forwardingKeyBits = 42; |
3611 o.persistentStateVersion = 42; | 3756 o.persistentStateVersion = 42; |
3612 o.userStageToComputationNameMap = buildUnnamed3162(); | 3757 o.userStageToComputationNameMap = buildUnnamed3168(); |
3613 } | 3758 } |
3614 buildCounterTopologyConfig--; | 3759 buildCounterTopologyConfig--; |
3615 return o; | 3760 return o; |
3616 } | 3761 } |
3617 | 3762 |
3618 checkTopologyConfig(api.TopologyConfig o) { | 3763 checkTopologyConfig(api.TopologyConfig o) { |
3619 buildCounterTopologyConfig++; | 3764 buildCounterTopologyConfig++; |
3620 if (buildCounterTopologyConfig < 3) { | 3765 if (buildCounterTopologyConfig < 3) { |
3621 checkUnnamed3160(o.computations); | 3766 checkUnnamed3166(o.computations); |
3622 checkUnnamed3161(o.dataDiskAssignments); | 3767 checkUnnamed3167(o.dataDiskAssignments); |
3623 unittest.expect(o.forwardingKeyBits, unittest.equals(42)); | 3768 unittest.expect(o.forwardingKeyBits, unittest.equals(42)); |
3624 unittest.expect(o.persistentStateVersion, unittest.equals(42)); | 3769 unittest.expect(o.persistentStateVersion, unittest.equals(42)); |
3625 checkUnnamed3162(o.userStageToComputationNameMap); | 3770 checkUnnamed3168(o.userStageToComputationNameMap); |
3626 } | 3771 } |
3627 buildCounterTopologyConfig--; | 3772 buildCounterTopologyConfig--; |
3628 } | 3773 } |
3629 | 3774 |
3630 buildUnnamed3163() { | 3775 buildUnnamed3169() { |
3631 var o = new core.List<api.DisplayData>(); | 3776 var o = new core.List<api.DisplayData>(); |
3632 o.add(buildDisplayData()); | 3777 o.add(buildDisplayData()); |
3633 o.add(buildDisplayData()); | 3778 o.add(buildDisplayData()); |
3634 return o; | 3779 return o; |
3635 } | 3780 } |
3636 | 3781 |
3637 checkUnnamed3163(core.List<api.DisplayData> o) { | 3782 checkUnnamed3169(core.List<api.DisplayData> o) { |
3638 unittest.expect(o, unittest.hasLength(2)); | 3783 unittest.expect(o, unittest.hasLength(2)); |
3639 checkDisplayData(o[0]); | 3784 checkDisplayData(o[0]); |
3640 checkDisplayData(o[1]); | 3785 checkDisplayData(o[1]); |
3641 } | 3786 } |
3642 | 3787 |
3643 buildUnnamed3164() { | 3788 buildUnnamed3170() { |
3644 var o = new core.List<core.String>(); | 3789 var o = new core.List<core.String>(); |
3645 o.add("foo"); | 3790 o.add("foo"); |
3646 o.add("foo"); | 3791 o.add("foo"); |
3647 return o; | 3792 return o; |
3648 } | 3793 } |
3649 | 3794 |
3650 checkUnnamed3164(core.List<core.String> o) { | 3795 checkUnnamed3170(core.List<core.String> o) { |
3651 unittest.expect(o, unittest.hasLength(2)); | 3796 unittest.expect(o, unittest.hasLength(2)); |
3652 unittest.expect(o[0], unittest.equals('foo')); | 3797 unittest.expect(o[0], unittest.equals('foo')); |
3653 unittest.expect(o[1], unittest.equals('foo')); | 3798 unittest.expect(o[1], unittest.equals('foo')); |
3654 } | 3799 } |
3655 | 3800 |
3656 buildUnnamed3165() { | 3801 buildUnnamed3171() { |
3657 var o = new core.List<core.String>(); | 3802 var o = new core.List<core.String>(); |
3658 o.add("foo"); | 3803 o.add("foo"); |
3659 o.add("foo"); | 3804 o.add("foo"); |
3660 return o; | 3805 return o; |
3661 } | 3806 } |
3662 | 3807 |
3663 checkUnnamed3165(core.List<core.String> o) { | 3808 checkUnnamed3171(core.List<core.String> o) { |
3664 unittest.expect(o, unittest.hasLength(2)); | 3809 unittest.expect(o, unittest.hasLength(2)); |
3665 unittest.expect(o[0], unittest.equals('foo')); | 3810 unittest.expect(o[0], unittest.equals('foo')); |
3666 unittest.expect(o[1], unittest.equals('foo')); | 3811 unittest.expect(o[1], unittest.equals('foo')); |
3667 } | 3812 } |
3668 | 3813 |
3669 core.int buildCounterTransformSummary = 0; | 3814 core.int buildCounterTransformSummary = 0; |
3670 buildTransformSummary() { | 3815 buildTransformSummary() { |
3671 var o = new api.TransformSummary(); | 3816 var o = new api.TransformSummary(); |
3672 buildCounterTransformSummary++; | 3817 buildCounterTransformSummary++; |
3673 if (buildCounterTransformSummary < 3) { | 3818 if (buildCounterTransformSummary < 3) { |
3674 o.displayData = buildUnnamed3163(); | 3819 o.displayData = buildUnnamed3169(); |
3675 o.id = "foo"; | 3820 o.id = "foo"; |
3676 o.inputCollectionName = buildUnnamed3164(); | 3821 o.inputCollectionName = buildUnnamed3170(); |
3677 o.kind = "foo"; | 3822 o.kind = "foo"; |
3678 o.name = "foo"; | 3823 o.name = "foo"; |
3679 o.outputCollectionName = buildUnnamed3165(); | 3824 o.outputCollectionName = buildUnnamed3171(); |
3680 } | 3825 } |
3681 buildCounterTransformSummary--; | 3826 buildCounterTransformSummary--; |
3682 return o; | 3827 return o; |
3683 } | 3828 } |
3684 | 3829 |
3685 checkTransformSummary(api.TransformSummary o) { | 3830 checkTransformSummary(api.TransformSummary o) { |
3686 buildCounterTransformSummary++; | 3831 buildCounterTransformSummary++; |
3687 if (buildCounterTransformSummary < 3) { | 3832 if (buildCounterTransformSummary < 3) { |
3688 checkUnnamed3163(o.displayData); | 3833 checkUnnamed3169(o.displayData); |
3689 unittest.expect(o.id, unittest.equals('foo')); | 3834 unittest.expect(o.id, unittest.equals('foo')); |
3690 checkUnnamed3164(o.inputCollectionName); | 3835 checkUnnamed3170(o.inputCollectionName); |
3691 unittest.expect(o.kind, unittest.equals('foo')); | 3836 unittest.expect(o.kind, unittest.equals('foo')); |
3692 unittest.expect(o.name, unittest.equals('foo')); | 3837 unittest.expect(o.name, unittest.equals('foo')); |
3693 checkUnnamed3165(o.outputCollectionName); | 3838 checkUnnamed3171(o.outputCollectionName); |
3694 } | 3839 } |
3695 buildCounterTransformSummary--; | 3840 buildCounterTransformSummary--; |
3696 } | 3841 } |
3697 | 3842 |
3698 buildUnnamed3166() { | 3843 buildUnnamed3172() { |
3699 var o = new core.List<api.Package>(); | 3844 var o = new core.List<api.Package>(); |
3700 o.add(buildPackage()); | 3845 o.add(buildPackage()); |
3701 o.add(buildPackage()); | 3846 o.add(buildPackage()); |
3702 return o; | 3847 return o; |
3703 } | 3848 } |
3704 | 3849 |
3705 checkUnnamed3166(core.List<api.Package> o) { | 3850 checkUnnamed3172(core.List<api.Package> o) { |
3706 unittest.expect(o, unittest.hasLength(2)); | 3851 unittest.expect(o, unittest.hasLength(2)); |
3707 checkPackage(o[0]); | 3852 checkPackage(o[0]); |
3708 checkPackage(o[1]); | 3853 checkPackage(o[1]); |
3709 } | 3854 } |
3710 | 3855 |
3711 core.int buildCounterWorkItem = 0; | 3856 core.int buildCounterWorkItem = 0; |
3712 buildWorkItem() { | 3857 buildWorkItem() { |
3713 var o = new api.WorkItem(); | 3858 var o = new api.WorkItem(); |
3714 buildCounterWorkItem++; | 3859 buildCounterWorkItem++; |
3715 if (buildCounterWorkItem < 3) { | 3860 if (buildCounterWorkItem < 3) { |
3716 o.configuration = "foo"; | 3861 o.configuration = "foo"; |
3717 o.id = "foo"; | 3862 o.id = "foo"; |
3718 o.initialReportIndex = "foo"; | 3863 o.initialReportIndex = "foo"; |
3719 o.jobId = "foo"; | 3864 o.jobId = "foo"; |
3720 o.leaseExpireTime = "foo"; | 3865 o.leaseExpireTime = "foo"; |
3721 o.mapTask = buildMapTask(); | 3866 o.mapTask = buildMapTask(); |
3722 o.packages = buildUnnamed3166(); | 3867 o.packages = buildUnnamed3172(); |
3723 o.projectId = "foo"; | 3868 o.projectId = "foo"; |
3724 o.reportStatusInterval = "foo"; | 3869 o.reportStatusInterval = "foo"; |
3725 o.seqMapTask = buildSeqMapTask(); | 3870 o.seqMapTask = buildSeqMapTask(); |
3726 o.shellTask = buildShellTask(); | 3871 o.shellTask = buildShellTask(); |
3727 o.sourceOperationTask = buildSourceOperationRequest(); | 3872 o.sourceOperationTask = buildSourceOperationRequest(); |
3728 o.streamingComputationTask = buildStreamingComputationTask(); | 3873 o.streamingComputationTask = buildStreamingComputationTask(); |
3729 o.streamingConfigTask = buildStreamingConfigTask(); | 3874 o.streamingConfigTask = buildStreamingConfigTask(); |
3730 o.streamingSetupTask = buildStreamingSetupTask(); | 3875 o.streamingSetupTask = buildStreamingSetupTask(); |
3731 } | 3876 } |
3732 buildCounterWorkItem--; | 3877 buildCounterWorkItem--; |
3733 return o; | 3878 return o; |
3734 } | 3879 } |
3735 | 3880 |
3736 checkWorkItem(api.WorkItem o) { | 3881 checkWorkItem(api.WorkItem o) { |
3737 buildCounterWorkItem++; | 3882 buildCounterWorkItem++; |
3738 if (buildCounterWorkItem < 3) { | 3883 if (buildCounterWorkItem < 3) { |
3739 unittest.expect(o.configuration, unittest.equals('foo')); | 3884 unittest.expect(o.configuration, unittest.equals('foo')); |
3740 unittest.expect(o.id, unittest.equals('foo')); | 3885 unittest.expect(o.id, unittest.equals('foo')); |
3741 unittest.expect(o.initialReportIndex, unittest.equals('foo')); | 3886 unittest.expect(o.initialReportIndex, unittest.equals('foo')); |
3742 unittest.expect(o.jobId, unittest.equals('foo')); | 3887 unittest.expect(o.jobId, unittest.equals('foo')); |
3743 unittest.expect(o.leaseExpireTime, unittest.equals('foo')); | 3888 unittest.expect(o.leaseExpireTime, unittest.equals('foo')); |
3744 checkMapTask(o.mapTask); | 3889 checkMapTask(o.mapTask); |
3745 checkUnnamed3166(o.packages); | 3890 checkUnnamed3172(o.packages); |
3746 unittest.expect(o.projectId, unittest.equals('foo')); | 3891 unittest.expect(o.projectId, unittest.equals('foo')); |
3747 unittest.expect(o.reportStatusInterval, unittest.equals('foo')); | 3892 unittest.expect(o.reportStatusInterval, unittest.equals('foo')); |
3748 checkSeqMapTask(o.seqMapTask); | 3893 checkSeqMapTask(o.seqMapTask); |
3749 checkShellTask(o.shellTask); | 3894 checkShellTask(o.shellTask); |
3750 checkSourceOperationRequest(o.sourceOperationTask); | 3895 checkSourceOperationRequest(o.sourceOperationTask); |
3751 checkStreamingComputationTask(o.streamingComputationTask); | 3896 checkStreamingComputationTask(o.streamingComputationTask); |
3752 checkStreamingConfigTask(o.streamingConfigTask); | 3897 checkStreamingConfigTask(o.streamingConfigTask); |
3753 checkStreamingSetupTask(o.streamingSetupTask); | 3898 checkStreamingSetupTask(o.streamingSetupTask); |
3754 } | 3899 } |
3755 buildCounterWorkItem--; | 3900 buildCounterWorkItem--; |
3756 } | 3901 } |
3757 | 3902 |
3758 buildUnnamed3167() { | 3903 buildUnnamed3173() { |
3759 var o = new core.Map<core.String, core.Object>(); | 3904 var o = new core.Map<core.String, core.Object>(); |
3760 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3905 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
3761 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3906 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
3762 return o; | 3907 return o; |
3763 } | 3908 } |
3764 | 3909 |
3765 checkUnnamed3167(core.Map<core.String, core.Object> o) { | 3910 checkUnnamed3173(core.Map<core.String, core.Object> o) { |
3766 unittest.expect(o, unittest.hasLength(2)); | 3911 unittest.expect(o, unittest.hasLength(2)); |
3767 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')); | 3912 var casted42 = (o["x"]) 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')); |
3768 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')); | 3913 var casted43 = (o["y"]) 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')); |
3769 } | 3914 } |
3770 | 3915 |
3771 buildUnnamed3168() { | 3916 buildUnnamed3174() { |
3772 var o = new core.List<api.MetricShortId>(); | 3917 var o = new core.List<api.MetricShortId>(); |
3773 o.add(buildMetricShortId()); | 3918 o.add(buildMetricShortId()); |
3774 o.add(buildMetricShortId()); | 3919 o.add(buildMetricShortId()); |
3775 return o; | 3920 return o; |
3776 } | 3921 } |
3777 | 3922 |
3778 checkUnnamed3168(core.List<api.MetricShortId> o) { | 3923 checkUnnamed3174(core.List<api.MetricShortId> o) { |
3779 unittest.expect(o, unittest.hasLength(2)); | 3924 unittest.expect(o, unittest.hasLength(2)); |
3780 checkMetricShortId(o[0]); | 3925 checkMetricShortId(o[0]); |
3781 checkMetricShortId(o[1]); | 3926 checkMetricShortId(o[1]); |
3782 } | 3927 } |
3783 | 3928 |
3784 core.int buildCounterWorkItemServiceState = 0; | 3929 core.int buildCounterWorkItemServiceState = 0; |
3785 buildWorkItemServiceState() { | 3930 buildWorkItemServiceState() { |
3786 var o = new api.WorkItemServiceState(); | 3931 var o = new api.WorkItemServiceState(); |
3787 buildCounterWorkItemServiceState++; | 3932 buildCounterWorkItemServiceState++; |
3788 if (buildCounterWorkItemServiceState < 3) { | 3933 if (buildCounterWorkItemServiceState < 3) { |
3789 o.harnessData = buildUnnamed3167(); | 3934 o.harnessData = buildUnnamed3173(); |
3790 o.leaseExpireTime = "foo"; | 3935 o.leaseExpireTime = "foo"; |
3791 o.metricShortId = buildUnnamed3168(); | 3936 o.metricShortId = buildUnnamed3174(); |
3792 o.nextReportIndex = "foo"; | 3937 o.nextReportIndex = "foo"; |
3793 o.reportStatusInterval = "foo"; | 3938 o.reportStatusInterval = "foo"; |
3794 o.splitRequest = buildApproximateSplitRequest(); | 3939 o.splitRequest = buildApproximateSplitRequest(); |
3795 o.suggestedStopPoint = buildApproximateProgress(); | 3940 o.suggestedStopPoint = buildApproximateProgress(); |
3796 o.suggestedStopPosition = buildPosition(); | 3941 o.suggestedStopPosition = buildPosition(); |
3797 } | 3942 } |
3798 buildCounterWorkItemServiceState--; | 3943 buildCounterWorkItemServiceState--; |
3799 return o; | 3944 return o; |
3800 } | 3945 } |
3801 | 3946 |
3802 checkWorkItemServiceState(api.WorkItemServiceState o) { | 3947 checkWorkItemServiceState(api.WorkItemServiceState o) { |
3803 buildCounterWorkItemServiceState++; | 3948 buildCounterWorkItemServiceState++; |
3804 if (buildCounterWorkItemServiceState < 3) { | 3949 if (buildCounterWorkItemServiceState < 3) { |
3805 checkUnnamed3167(o.harnessData); | 3950 checkUnnamed3173(o.harnessData); |
3806 unittest.expect(o.leaseExpireTime, unittest.equals('foo')); | 3951 unittest.expect(o.leaseExpireTime, unittest.equals('foo')); |
3807 checkUnnamed3168(o.metricShortId); | 3952 checkUnnamed3174(o.metricShortId); |
3808 unittest.expect(o.nextReportIndex, unittest.equals('foo')); | 3953 unittest.expect(o.nextReportIndex, unittest.equals('foo')); |
3809 unittest.expect(o.reportStatusInterval, unittest.equals('foo')); | 3954 unittest.expect(o.reportStatusInterval, unittest.equals('foo')); |
3810 checkApproximateSplitRequest(o.splitRequest); | 3955 checkApproximateSplitRequest(o.splitRequest); |
3811 checkApproximateProgress(o.suggestedStopPoint); | 3956 checkApproximateProgress(o.suggestedStopPoint); |
3812 checkPosition(o.suggestedStopPosition); | 3957 checkPosition(o.suggestedStopPosition); |
3813 } | 3958 } |
3814 buildCounterWorkItemServiceState--; | 3959 buildCounterWorkItemServiceState--; |
3815 } | 3960 } |
3816 | 3961 |
3817 buildUnnamed3169() { | 3962 buildUnnamed3175() { |
3818 var o = new core.List<api.CounterUpdate>(); | 3963 var o = new core.List<api.CounterUpdate>(); |
3819 o.add(buildCounterUpdate()); | 3964 o.add(buildCounterUpdate()); |
3820 o.add(buildCounterUpdate()); | 3965 o.add(buildCounterUpdate()); |
3821 return o; | 3966 return o; |
3822 } | 3967 } |
3823 | 3968 |
3824 checkUnnamed3169(core.List<api.CounterUpdate> o) { | 3969 checkUnnamed3175(core.List<api.CounterUpdate> o) { |
3825 unittest.expect(o, unittest.hasLength(2)); | 3970 unittest.expect(o, unittest.hasLength(2)); |
3826 checkCounterUpdate(o[0]); | 3971 checkCounterUpdate(o[0]); |
3827 checkCounterUpdate(o[1]); | 3972 checkCounterUpdate(o[1]); |
3828 } | 3973 } |
3829 | 3974 |
3830 buildUnnamed3170() { | 3975 buildUnnamed3176() { |
3831 var o = new core.List<api.Status>(); | 3976 var o = new core.List<api.Status>(); |
3832 o.add(buildStatus()); | 3977 o.add(buildStatus()); |
3833 o.add(buildStatus()); | 3978 o.add(buildStatus()); |
3834 return o; | 3979 return o; |
3835 } | 3980 } |
3836 | 3981 |
3837 checkUnnamed3170(core.List<api.Status> o) { | 3982 checkUnnamed3176(core.List<api.Status> o) { |
3838 unittest.expect(o, unittest.hasLength(2)); | 3983 unittest.expect(o, unittest.hasLength(2)); |
3839 checkStatus(o[0]); | 3984 checkStatus(o[0]); |
3840 checkStatus(o[1]); | 3985 checkStatus(o[1]); |
3841 } | 3986 } |
3842 | 3987 |
3843 buildUnnamed3171() { | 3988 buildUnnamed3177() { |
3844 var o = new core.List<api.MetricUpdate>(); | 3989 var o = new core.List<api.MetricUpdate>(); |
3845 o.add(buildMetricUpdate()); | 3990 o.add(buildMetricUpdate()); |
3846 o.add(buildMetricUpdate()); | 3991 o.add(buildMetricUpdate()); |
3847 return o; | 3992 return o; |
3848 } | 3993 } |
3849 | 3994 |
3850 checkUnnamed3171(core.List<api.MetricUpdate> o) { | 3995 checkUnnamed3177(core.List<api.MetricUpdate> o) { |
3851 unittest.expect(o, unittest.hasLength(2)); | 3996 unittest.expect(o, unittest.hasLength(2)); |
3852 checkMetricUpdate(o[0]); | 3997 checkMetricUpdate(o[0]); |
3853 checkMetricUpdate(o[1]); | 3998 checkMetricUpdate(o[1]); |
3854 } | 3999 } |
3855 | 4000 |
3856 core.int buildCounterWorkItemStatus = 0; | 4001 core.int buildCounterWorkItemStatus = 0; |
3857 buildWorkItemStatus() { | 4002 buildWorkItemStatus() { |
3858 var o = new api.WorkItemStatus(); | 4003 var o = new api.WorkItemStatus(); |
3859 buildCounterWorkItemStatus++; | 4004 buildCounterWorkItemStatus++; |
3860 if (buildCounterWorkItemStatus < 3) { | 4005 if (buildCounterWorkItemStatus < 3) { |
3861 o.completed = true; | 4006 o.completed = true; |
3862 o.counterUpdates = buildUnnamed3169(); | 4007 o.counterUpdates = buildUnnamed3175(); |
3863 o.dynamicSourceSplit = buildDynamicSourceSplit(); | 4008 o.dynamicSourceSplit = buildDynamicSourceSplit(); |
3864 o.errors = buildUnnamed3170(); | 4009 o.errors = buildUnnamed3176(); |
3865 o.metricUpdates = buildUnnamed3171(); | 4010 o.metricUpdates = buildUnnamed3177(); |
3866 o.progress = buildApproximateProgress(); | 4011 o.progress = buildApproximateProgress(); |
3867 o.reportIndex = "foo"; | 4012 o.reportIndex = "foo"; |
3868 o.reportedProgress = buildApproximateReportedProgress(); | 4013 o.reportedProgress = buildApproximateReportedProgress(); |
3869 o.requestedLeaseDuration = "foo"; | 4014 o.requestedLeaseDuration = "foo"; |
3870 o.sourceFork = buildSourceFork(); | 4015 o.sourceFork = buildSourceFork(); |
3871 o.sourceOperationResponse = buildSourceOperationResponse(); | 4016 o.sourceOperationResponse = buildSourceOperationResponse(); |
3872 o.stopPosition = buildPosition(); | 4017 o.stopPosition = buildPosition(); |
3873 o.workItemId = "foo"; | 4018 o.workItemId = "foo"; |
3874 } | 4019 } |
3875 buildCounterWorkItemStatus--; | 4020 buildCounterWorkItemStatus--; |
3876 return o; | 4021 return o; |
3877 } | 4022 } |
3878 | 4023 |
3879 checkWorkItemStatus(api.WorkItemStatus o) { | 4024 checkWorkItemStatus(api.WorkItemStatus o) { |
3880 buildCounterWorkItemStatus++; | 4025 buildCounterWorkItemStatus++; |
3881 if (buildCounterWorkItemStatus < 3) { | 4026 if (buildCounterWorkItemStatus < 3) { |
3882 unittest.expect(o.completed, unittest.isTrue); | 4027 unittest.expect(o.completed, unittest.isTrue); |
3883 checkUnnamed3169(o.counterUpdates); | 4028 checkUnnamed3175(o.counterUpdates); |
3884 checkDynamicSourceSplit(o.dynamicSourceSplit); | 4029 checkDynamicSourceSplit(o.dynamicSourceSplit); |
3885 checkUnnamed3170(o.errors); | 4030 checkUnnamed3176(o.errors); |
3886 checkUnnamed3171(o.metricUpdates); | 4031 checkUnnamed3177(o.metricUpdates); |
3887 checkApproximateProgress(o.progress); | 4032 checkApproximateProgress(o.progress); |
3888 unittest.expect(o.reportIndex, unittest.equals('foo')); | 4033 unittest.expect(o.reportIndex, unittest.equals('foo')); |
3889 checkApproximateReportedProgress(o.reportedProgress); | 4034 checkApproximateReportedProgress(o.reportedProgress); |
3890 unittest.expect(o.requestedLeaseDuration, unittest.equals('foo')); | 4035 unittest.expect(o.requestedLeaseDuration, unittest.equals('foo')); |
3891 checkSourceFork(o.sourceFork); | 4036 checkSourceFork(o.sourceFork); |
3892 checkSourceOperationResponse(o.sourceOperationResponse); | 4037 checkSourceOperationResponse(o.sourceOperationResponse); |
3893 checkPosition(o.stopPosition); | 4038 checkPosition(o.stopPosition); |
3894 unittest.expect(o.workItemId, unittest.equals('foo')); | 4039 unittest.expect(o.workItemId, unittest.equals('foo')); |
3895 } | 4040 } |
3896 buildCounterWorkItemStatus--; | 4041 buildCounterWorkItemStatus--; |
3897 } | 4042 } |
3898 | 4043 |
3899 buildUnnamed3172() { | 4044 buildUnnamed3178() { |
3900 var o = new core.Map<core.String, core.Object>(); | 4045 var o = new core.Map<core.String, core.Object>(); |
3901 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 4046 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
3902 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 4047 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
3903 return o; | 4048 return o; |
3904 } | 4049 } |
3905 | 4050 |
3906 checkUnnamed3172(core.Map<core.String, core.Object> o) { | 4051 checkUnnamed3178(core.Map<core.String, core.Object> o) { |
3907 unittest.expect(o, unittest.hasLength(2)); | 4052 unittest.expect(o, unittest.hasLength(2)); |
3908 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')); | 4053 var casted44 = (o["x"]) 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')); |
3909 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')); | 4054 var casted45 = (o["y"]) 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')); |
3910 } | 4055 } |
3911 | 4056 |
3912 buildUnnamed3173() { | 4057 buildUnnamed3179() { |
3913 var o = new core.List<core.Map<core.String, core.Object>>(); | 4058 var o = new core.List<core.Map<core.String, core.Object>>(); |
3914 o.add(buildUnnamed3172()); | 4059 o.add(buildUnnamed3178()); |
3915 o.add(buildUnnamed3172()); | 4060 o.add(buildUnnamed3178()); |
3916 return o; | 4061 return o; |
3917 } | 4062 } |
3918 | 4063 |
3919 checkUnnamed3173(core.List<core.Map<core.String, core.Object>> o) { | 4064 checkUnnamed3179(core.List<core.Map<core.String, core.Object>> o) { |
3920 unittest.expect(o, unittest.hasLength(2)); | 4065 unittest.expect(o, unittest.hasLength(2)); |
3921 checkUnnamed3172(o[0]); | 4066 checkUnnamed3178(o[0]); |
3922 checkUnnamed3172(o[1]); | 4067 checkUnnamed3178(o[1]); |
3923 } | 4068 } |
3924 | 4069 |
3925 core.int buildCounterWorkerHealthReport = 0; | 4070 core.int buildCounterWorkerHealthReport = 0; |
3926 buildWorkerHealthReport() { | 4071 buildWorkerHealthReport() { |
3927 var o = new api.WorkerHealthReport(); | 4072 var o = new api.WorkerHealthReport(); |
3928 buildCounterWorkerHealthReport++; | 4073 buildCounterWorkerHealthReport++; |
3929 if (buildCounterWorkerHealthReport < 3) { | 4074 if (buildCounterWorkerHealthReport < 3) { |
3930 o.pods = buildUnnamed3173(); | 4075 o.pods = buildUnnamed3179(); |
3931 o.reportInterval = "foo"; | 4076 o.reportInterval = "foo"; |
3932 o.vmIsHealthy = true; | 4077 o.vmIsHealthy = true; |
3933 o.vmStartupTime = "foo"; | 4078 o.vmStartupTime = "foo"; |
3934 } | 4079 } |
3935 buildCounterWorkerHealthReport--; | 4080 buildCounterWorkerHealthReport--; |
3936 return o; | 4081 return o; |
3937 } | 4082 } |
3938 | 4083 |
3939 checkWorkerHealthReport(api.WorkerHealthReport o) { | 4084 checkWorkerHealthReport(api.WorkerHealthReport o) { |
3940 buildCounterWorkerHealthReport++; | 4085 buildCounterWorkerHealthReport++; |
3941 if (buildCounterWorkerHealthReport < 3) { | 4086 if (buildCounterWorkerHealthReport < 3) { |
3942 checkUnnamed3173(o.pods); | 4087 checkUnnamed3179(o.pods); |
3943 unittest.expect(o.reportInterval, unittest.equals('foo')); | 4088 unittest.expect(o.reportInterval, unittest.equals('foo')); |
3944 unittest.expect(o.vmIsHealthy, unittest.isTrue); | 4089 unittest.expect(o.vmIsHealthy, unittest.isTrue); |
3945 unittest.expect(o.vmStartupTime, unittest.equals('foo')); | 4090 unittest.expect(o.vmStartupTime, unittest.equals('foo')); |
3946 } | 4091 } |
3947 buildCounterWorkerHealthReport--; | 4092 buildCounterWorkerHealthReport--; |
3948 } | 4093 } |
3949 | 4094 |
3950 core.int buildCounterWorkerHealthReportResponse = 0; | 4095 core.int buildCounterWorkerHealthReportResponse = 0; |
3951 buildWorkerHealthReportResponse() { | 4096 buildWorkerHealthReportResponse() { |
3952 var o = new api.WorkerHealthReportResponse(); | 4097 var o = new api.WorkerHealthReportResponse(); |
3953 buildCounterWorkerHealthReportResponse++; | 4098 buildCounterWorkerHealthReportResponse++; |
3954 if (buildCounterWorkerHealthReportResponse < 3) { | 4099 if (buildCounterWorkerHealthReportResponse < 3) { |
3955 o.reportInterval = "foo"; | 4100 o.reportInterval = "foo"; |
3956 } | 4101 } |
3957 buildCounterWorkerHealthReportResponse--; | 4102 buildCounterWorkerHealthReportResponse--; |
3958 return o; | 4103 return o; |
3959 } | 4104 } |
3960 | 4105 |
3961 checkWorkerHealthReportResponse(api.WorkerHealthReportResponse o) { | 4106 checkWorkerHealthReportResponse(api.WorkerHealthReportResponse o) { |
3962 buildCounterWorkerHealthReportResponse++; | 4107 buildCounterWorkerHealthReportResponse++; |
3963 if (buildCounterWorkerHealthReportResponse < 3) { | 4108 if (buildCounterWorkerHealthReportResponse < 3) { |
3964 unittest.expect(o.reportInterval, unittest.equals('foo')); | 4109 unittest.expect(o.reportInterval, unittest.equals('foo')); |
3965 } | 4110 } |
3966 buildCounterWorkerHealthReportResponse--; | 4111 buildCounterWorkerHealthReportResponse--; |
3967 } | 4112 } |
3968 | 4113 |
3969 buildUnnamed3174() { | 4114 buildUnnamed3180() { |
3970 var o = new core.Map<core.String, core.String>(); | 4115 var o = new core.Map<core.String, core.String>(); |
3971 o["x"] = "foo"; | 4116 o["x"] = "foo"; |
3972 o["y"] = "foo"; | 4117 o["y"] = "foo"; |
3973 return o; | 4118 return o; |
3974 } | 4119 } |
3975 | 4120 |
3976 checkUnnamed3174(core.Map<core.String, core.String> o) { | 4121 checkUnnamed3180(core.Map<core.String, core.String> o) { |
3977 unittest.expect(o, unittest.hasLength(2)); | 4122 unittest.expect(o, unittest.hasLength(2)); |
3978 unittest.expect(o["x"], unittest.equals('foo')); | 4123 unittest.expect(o["x"], unittest.equals('foo')); |
3979 unittest.expect(o["y"], unittest.equals('foo')); | 4124 unittest.expect(o["y"], unittest.equals('foo')); |
3980 } | 4125 } |
3981 | 4126 |
3982 core.int buildCounterWorkerMessage = 0; | 4127 core.int buildCounterWorkerMessage = 0; |
3983 buildWorkerMessage() { | 4128 buildWorkerMessage() { |
3984 var o = new api.WorkerMessage(); | 4129 var o = new api.WorkerMessage(); |
3985 buildCounterWorkerMessage++; | 4130 buildCounterWorkerMessage++; |
3986 if (buildCounterWorkerMessage < 3) { | 4131 if (buildCounterWorkerMessage < 3) { |
3987 o.labels = buildUnnamed3174(); | 4132 o.labels = buildUnnamed3180(); |
3988 o.time = "foo"; | 4133 o.time = "foo"; |
3989 o.workerHealthReport = buildWorkerHealthReport(); | 4134 o.workerHealthReport = buildWorkerHealthReport(); |
3990 o.workerMessageCode = buildWorkerMessageCode(); | 4135 o.workerMessageCode = buildWorkerMessageCode(); |
3991 o.workerMetrics = buildResourceUtilizationReport(); | 4136 o.workerMetrics = buildResourceUtilizationReport(); |
3992 } | 4137 } |
3993 buildCounterWorkerMessage--; | 4138 buildCounterWorkerMessage--; |
3994 return o; | 4139 return o; |
3995 } | 4140 } |
3996 | 4141 |
3997 checkWorkerMessage(api.WorkerMessage o) { | 4142 checkWorkerMessage(api.WorkerMessage o) { |
3998 buildCounterWorkerMessage++; | 4143 buildCounterWorkerMessage++; |
3999 if (buildCounterWorkerMessage < 3) { | 4144 if (buildCounterWorkerMessage < 3) { |
4000 checkUnnamed3174(o.labels); | 4145 checkUnnamed3180(o.labels); |
4001 unittest.expect(o.time, unittest.equals('foo')); | 4146 unittest.expect(o.time, unittest.equals('foo')); |
4002 checkWorkerHealthReport(o.workerHealthReport); | 4147 checkWorkerHealthReport(o.workerHealthReport); |
4003 checkWorkerMessageCode(o.workerMessageCode); | 4148 checkWorkerMessageCode(o.workerMessageCode); |
4004 checkResourceUtilizationReport(o.workerMetrics); | 4149 checkResourceUtilizationReport(o.workerMetrics); |
4005 } | 4150 } |
4006 buildCounterWorkerMessage--; | 4151 buildCounterWorkerMessage--; |
4007 } | 4152 } |
4008 | 4153 |
4009 buildUnnamed3175() { | 4154 buildUnnamed3181() { |
4010 var o = new core.Map<core.String, core.Object>(); | 4155 var o = new core.Map<core.String, core.Object>(); |
4011 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 4156 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
4012 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 4157 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
4013 return o; | 4158 return o; |
4014 } | 4159 } |
4015 | 4160 |
4016 checkUnnamed3175(core.Map<core.String, core.Object> o) { | 4161 checkUnnamed3181(core.Map<core.String, core.Object> o) { |
4017 unittest.expect(o, unittest.hasLength(2)); | 4162 unittest.expect(o, unittest.hasLength(2)); |
4018 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')); | 4163 var casted46 = (o["x"]) 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')); |
4019 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')); | 4164 var casted47 = (o["y"]) 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')); |
4020 } | 4165 } |
4021 | 4166 |
4022 core.int buildCounterWorkerMessageCode = 0; | 4167 core.int buildCounterWorkerMessageCode = 0; |
4023 buildWorkerMessageCode() { | 4168 buildWorkerMessageCode() { |
4024 var o = new api.WorkerMessageCode(); | 4169 var o = new api.WorkerMessageCode(); |
4025 buildCounterWorkerMessageCode++; | 4170 buildCounterWorkerMessageCode++; |
4026 if (buildCounterWorkerMessageCode < 3) { | 4171 if (buildCounterWorkerMessageCode < 3) { |
4027 o.code = "foo"; | 4172 o.code = "foo"; |
4028 o.parameters = buildUnnamed3175(); | 4173 o.parameters = buildUnnamed3181(); |
4029 } | 4174 } |
4030 buildCounterWorkerMessageCode--; | 4175 buildCounterWorkerMessageCode--; |
4031 return o; | 4176 return o; |
4032 } | 4177 } |
4033 | 4178 |
4034 checkWorkerMessageCode(api.WorkerMessageCode o) { | 4179 checkWorkerMessageCode(api.WorkerMessageCode o) { |
4035 buildCounterWorkerMessageCode++; | 4180 buildCounterWorkerMessageCode++; |
4036 if (buildCounterWorkerMessageCode < 3) { | 4181 if (buildCounterWorkerMessageCode < 3) { |
4037 unittest.expect(o.code, unittest.equals('foo')); | 4182 unittest.expect(o.code, unittest.equals('foo')); |
4038 checkUnnamed3175(o.parameters); | 4183 checkUnnamed3181(o.parameters); |
4039 } | 4184 } |
4040 buildCounterWorkerMessageCode--; | 4185 buildCounterWorkerMessageCode--; |
4041 } | 4186 } |
4042 | 4187 |
4043 core.int buildCounterWorkerMessageResponse = 0; | 4188 core.int buildCounterWorkerMessageResponse = 0; |
4044 buildWorkerMessageResponse() { | 4189 buildWorkerMessageResponse() { |
4045 var o = new api.WorkerMessageResponse(); | 4190 var o = new api.WorkerMessageResponse(); |
4046 buildCounterWorkerMessageResponse++; | 4191 buildCounterWorkerMessageResponse++; |
4047 if (buildCounterWorkerMessageResponse < 3) { | 4192 if (buildCounterWorkerMessageResponse < 3) { |
4048 o.workerHealthReportResponse = buildWorkerHealthReportResponse(); | 4193 o.workerHealthReportResponse = buildWorkerHealthReportResponse(); |
4049 o.workerMetricsResponse = buildResourceUtilizationReportResponse(); | 4194 o.workerMetricsResponse = buildResourceUtilizationReportResponse(); |
4050 } | 4195 } |
4051 buildCounterWorkerMessageResponse--; | 4196 buildCounterWorkerMessageResponse--; |
4052 return o; | 4197 return o; |
4053 } | 4198 } |
4054 | 4199 |
4055 checkWorkerMessageResponse(api.WorkerMessageResponse o) { | 4200 checkWorkerMessageResponse(api.WorkerMessageResponse o) { |
4056 buildCounterWorkerMessageResponse++; | 4201 buildCounterWorkerMessageResponse++; |
4057 if (buildCounterWorkerMessageResponse < 3) { | 4202 if (buildCounterWorkerMessageResponse < 3) { |
4058 checkWorkerHealthReportResponse(o.workerHealthReportResponse); | 4203 checkWorkerHealthReportResponse(o.workerHealthReportResponse); |
4059 checkResourceUtilizationReportResponse(o.workerMetricsResponse); | 4204 checkResourceUtilizationReportResponse(o.workerMetricsResponse); |
4060 } | 4205 } |
4061 buildCounterWorkerMessageResponse--; | 4206 buildCounterWorkerMessageResponse--; |
4062 } | 4207 } |
4063 | 4208 |
4064 buildUnnamed3176() { | 4209 buildUnnamed3182() { |
4065 var o = new core.List<api.Disk>(); | 4210 var o = new core.List<api.Disk>(); |
4066 o.add(buildDisk()); | 4211 o.add(buildDisk()); |
4067 o.add(buildDisk()); | 4212 o.add(buildDisk()); |
4068 return o; | 4213 return o; |
4069 } | 4214 } |
4070 | 4215 |
4071 checkUnnamed3176(core.List<api.Disk> o) { | 4216 checkUnnamed3182(core.List<api.Disk> o) { |
4072 unittest.expect(o, unittest.hasLength(2)); | 4217 unittest.expect(o, unittest.hasLength(2)); |
4073 checkDisk(o[0]); | 4218 checkDisk(o[0]); |
4074 checkDisk(o[1]); | 4219 checkDisk(o[1]); |
4075 } | 4220 } |
4076 | 4221 |
4077 buildUnnamed3177() { | 4222 buildUnnamed3183() { |
4078 var o = new core.Map<core.String, core.String>(); | 4223 var o = new core.Map<core.String, core.String>(); |
4079 o["x"] = "foo"; | 4224 o["x"] = "foo"; |
4080 o["y"] = "foo"; | 4225 o["y"] = "foo"; |
4081 return o; | 4226 return o; |
4082 } | 4227 } |
4083 | 4228 |
4084 checkUnnamed3177(core.Map<core.String, core.String> o) { | 4229 checkUnnamed3183(core.Map<core.String, core.String> o) { |
4085 unittest.expect(o, unittest.hasLength(2)); | 4230 unittest.expect(o, unittest.hasLength(2)); |
4086 unittest.expect(o["x"], unittest.equals('foo')); | 4231 unittest.expect(o["x"], unittest.equals('foo')); |
4087 unittest.expect(o["y"], unittest.equals('foo')); | 4232 unittest.expect(o["y"], unittest.equals('foo')); |
4088 } | 4233 } |
4089 | 4234 |
4090 buildUnnamed3178() { | 4235 buildUnnamed3184() { |
4091 var o = new core.List<api.Package>(); | 4236 var o = new core.List<api.Package>(); |
4092 o.add(buildPackage()); | 4237 o.add(buildPackage()); |
4093 o.add(buildPackage()); | 4238 o.add(buildPackage()); |
4094 return o; | 4239 return o; |
4095 } | 4240 } |
4096 | 4241 |
4097 checkUnnamed3178(core.List<api.Package> o) { | 4242 checkUnnamed3184(core.List<api.Package> o) { |
4098 unittest.expect(o, unittest.hasLength(2)); | 4243 unittest.expect(o, unittest.hasLength(2)); |
4099 checkPackage(o[0]); | 4244 checkPackage(o[0]); |
4100 checkPackage(o[1]); | 4245 checkPackage(o[1]); |
4101 } | 4246 } |
4102 | 4247 |
4103 buildUnnamed3179() { | 4248 buildUnnamed3185() { |
4104 var o = new core.Map<core.String, core.Object>(); | 4249 var o = new core.Map<core.String, core.Object>(); |
4105 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 4250 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
4106 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 4251 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
4107 return o; | 4252 return o; |
4108 } | 4253 } |
4109 | 4254 |
4110 checkUnnamed3179(core.Map<core.String, core.Object> o) { | 4255 checkUnnamed3185(core.Map<core.String, core.Object> o) { |
4111 unittest.expect(o, unittest.hasLength(2)); | 4256 unittest.expect(o, unittest.hasLength(2)); |
4112 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')); | 4257 var casted48 = (o["x"]) 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')); |
4113 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')); | 4258 var casted49 = (o["y"]) 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')); |
4114 } | 4259 } |
4115 | 4260 |
4116 core.int buildCounterWorkerPool = 0; | 4261 core.int buildCounterWorkerPool = 0; |
4117 buildWorkerPool() { | 4262 buildWorkerPool() { |
4118 var o = new api.WorkerPool(); | 4263 var o = new api.WorkerPool(); |
4119 buildCounterWorkerPool++; | 4264 buildCounterWorkerPool++; |
4120 if (buildCounterWorkerPool < 3) { | 4265 if (buildCounterWorkerPool < 3) { |
4121 o.autoscalingSettings = buildAutoscalingSettings(); | 4266 o.autoscalingSettings = buildAutoscalingSettings(); |
4122 o.dataDisks = buildUnnamed3176(); | 4267 o.dataDisks = buildUnnamed3182(); |
4123 o.defaultPackageSet = "foo"; | 4268 o.defaultPackageSet = "foo"; |
4124 o.diskSizeGb = 42; | 4269 o.diskSizeGb = 42; |
4125 o.diskSourceImage = "foo"; | 4270 o.diskSourceImage = "foo"; |
4126 o.diskType = "foo"; | 4271 o.diskType = "foo"; |
4127 o.ipConfiguration = "foo"; | 4272 o.ipConfiguration = "foo"; |
4128 o.kind = "foo"; | 4273 o.kind = "foo"; |
4129 o.machineType = "foo"; | 4274 o.machineType = "foo"; |
4130 o.metadata = buildUnnamed3177(); | 4275 o.metadata = buildUnnamed3183(); |
4131 o.network = "foo"; | 4276 o.network = "foo"; |
4132 o.numThreadsPerWorker = 42; | 4277 o.numThreadsPerWorker = 42; |
4133 o.numWorkers = 42; | 4278 o.numWorkers = 42; |
4134 o.onHostMaintenance = "foo"; | 4279 o.onHostMaintenance = "foo"; |
4135 o.packages = buildUnnamed3178(); | 4280 o.packages = buildUnnamed3184(); |
4136 o.poolArgs = buildUnnamed3179(); | 4281 o.poolArgs = buildUnnamed3185(); |
4137 o.subnetwork = "foo"; | 4282 o.subnetwork = "foo"; |
4138 o.taskrunnerSettings = buildTaskRunnerSettings(); | 4283 o.taskrunnerSettings = buildTaskRunnerSettings(); |
4139 o.teardownPolicy = "foo"; | 4284 o.teardownPolicy = "foo"; |
4140 o.workerHarnessContainerImage = "foo"; | 4285 o.workerHarnessContainerImage = "foo"; |
4141 o.zone = "foo"; | 4286 o.zone = "foo"; |
4142 } | 4287 } |
4143 buildCounterWorkerPool--; | 4288 buildCounterWorkerPool--; |
4144 return o; | 4289 return o; |
4145 } | 4290 } |
4146 | 4291 |
4147 checkWorkerPool(api.WorkerPool o) { | 4292 checkWorkerPool(api.WorkerPool o) { |
4148 buildCounterWorkerPool++; | 4293 buildCounterWorkerPool++; |
4149 if (buildCounterWorkerPool < 3) { | 4294 if (buildCounterWorkerPool < 3) { |
4150 checkAutoscalingSettings(o.autoscalingSettings); | 4295 checkAutoscalingSettings(o.autoscalingSettings); |
4151 checkUnnamed3176(o.dataDisks); | 4296 checkUnnamed3182(o.dataDisks); |
4152 unittest.expect(o.defaultPackageSet, unittest.equals('foo')); | 4297 unittest.expect(o.defaultPackageSet, unittest.equals('foo')); |
4153 unittest.expect(o.diskSizeGb, unittest.equals(42)); | 4298 unittest.expect(o.diskSizeGb, unittest.equals(42)); |
4154 unittest.expect(o.diskSourceImage, unittest.equals('foo')); | 4299 unittest.expect(o.diskSourceImage, unittest.equals('foo')); |
4155 unittest.expect(o.diskType, unittest.equals('foo')); | 4300 unittest.expect(o.diskType, unittest.equals('foo')); |
4156 unittest.expect(o.ipConfiguration, unittest.equals('foo')); | 4301 unittest.expect(o.ipConfiguration, unittest.equals('foo')); |
4157 unittest.expect(o.kind, unittest.equals('foo')); | 4302 unittest.expect(o.kind, unittest.equals('foo')); |
4158 unittest.expect(o.machineType, unittest.equals('foo')); | 4303 unittest.expect(o.machineType, unittest.equals('foo')); |
4159 checkUnnamed3177(o.metadata); | 4304 checkUnnamed3183(o.metadata); |
4160 unittest.expect(o.network, unittest.equals('foo')); | 4305 unittest.expect(o.network, unittest.equals('foo')); |
4161 unittest.expect(o.numThreadsPerWorker, unittest.equals(42)); | 4306 unittest.expect(o.numThreadsPerWorker, unittest.equals(42)); |
4162 unittest.expect(o.numWorkers, unittest.equals(42)); | 4307 unittest.expect(o.numWorkers, unittest.equals(42)); |
4163 unittest.expect(o.onHostMaintenance, unittest.equals('foo')); | 4308 unittest.expect(o.onHostMaintenance, unittest.equals('foo')); |
4164 checkUnnamed3178(o.packages); | 4309 checkUnnamed3184(o.packages); |
4165 checkUnnamed3179(o.poolArgs); | 4310 checkUnnamed3185(o.poolArgs); |
4166 unittest.expect(o.subnetwork, unittest.equals('foo')); | 4311 unittest.expect(o.subnetwork, unittest.equals('foo')); |
4167 checkTaskRunnerSettings(o.taskrunnerSettings); | 4312 checkTaskRunnerSettings(o.taskrunnerSettings); |
4168 unittest.expect(o.teardownPolicy, unittest.equals('foo')); | 4313 unittest.expect(o.teardownPolicy, unittest.equals('foo')); |
4169 unittest.expect(o.workerHarnessContainerImage, unittest.equals('foo')); | 4314 unittest.expect(o.workerHarnessContainerImage, unittest.equals('foo')); |
4170 unittest.expect(o.zone, unittest.equals('foo')); | 4315 unittest.expect(o.zone, unittest.equals('foo')); |
4171 } | 4316 } |
4172 buildCounterWorkerPool--; | 4317 buildCounterWorkerPool--; |
4173 } | 4318 } |
4174 | 4319 |
4175 core.int buildCounterWorkerSettings = 0; | 4320 core.int buildCounterWorkerSettings = 0; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4244 | 4389 |
4245 unittest.group("obj-schema-ApproximateSplitRequest", () { | 4390 unittest.group("obj-schema-ApproximateSplitRequest", () { |
4246 unittest.test("to-json--from-json", () { | 4391 unittest.test("to-json--from-json", () { |
4247 var o = buildApproximateSplitRequest(); | 4392 var o = buildApproximateSplitRequest(); |
4248 var od = new api.ApproximateSplitRequest.fromJson(o.toJson()); | 4393 var od = new api.ApproximateSplitRequest.fromJson(o.toJson()); |
4249 checkApproximateSplitRequest(od); | 4394 checkApproximateSplitRequest(od); |
4250 }); | 4395 }); |
4251 }); | 4396 }); |
4252 | 4397 |
4253 | 4398 |
| 4399 unittest.group("obj-schema-AutoscalingEvent", () { |
| 4400 unittest.test("to-json--from-json", () { |
| 4401 var o = buildAutoscalingEvent(); |
| 4402 var od = new api.AutoscalingEvent.fromJson(o.toJson()); |
| 4403 checkAutoscalingEvent(od); |
| 4404 }); |
| 4405 }); |
| 4406 |
| 4407 |
4254 unittest.group("obj-schema-AutoscalingSettings", () { | 4408 unittest.group("obj-schema-AutoscalingSettings", () { |
4255 unittest.test("to-json--from-json", () { | 4409 unittest.test("to-json--from-json", () { |
4256 var o = buildAutoscalingSettings(); | 4410 var o = buildAutoscalingSettings(); |
4257 var od = new api.AutoscalingSettings.fromJson(o.toJson()); | 4411 var od = new api.AutoscalingSettings.fromJson(o.toJson()); |
4258 checkAutoscalingSettings(od); | 4412 checkAutoscalingSettings(od); |
4259 }); | 4413 }); |
4260 }); | 4414 }); |
4261 | 4415 |
4262 | 4416 |
4263 unittest.group("obj-schema-CPUTime", () { | 4417 unittest.group("obj-schema-CPUTime", () { |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4415 | 4569 |
4416 unittest.group("obj-schema-Environment", () { | 4570 unittest.group("obj-schema-Environment", () { |
4417 unittest.test("to-json--from-json", () { | 4571 unittest.test("to-json--from-json", () { |
4418 var o = buildEnvironment(); | 4572 var o = buildEnvironment(); |
4419 var od = new api.Environment.fromJson(o.toJson()); | 4573 var od = new api.Environment.fromJson(o.toJson()); |
4420 checkEnvironment(od); | 4574 checkEnvironment(od); |
4421 }); | 4575 }); |
4422 }); | 4576 }); |
4423 | 4577 |
4424 | 4578 |
| 4579 unittest.group("obj-schema-ExecutionStageState", () { |
| 4580 unittest.test("to-json--from-json", () { |
| 4581 var o = buildExecutionStageState(); |
| 4582 var od = new api.ExecutionStageState.fromJson(o.toJson()); |
| 4583 checkExecutionStageState(od); |
| 4584 }); |
| 4585 }); |
| 4586 |
| 4587 |
4425 unittest.group("obj-schema-ExecutionStageSummary", () { | 4588 unittest.group("obj-schema-ExecutionStageSummary", () { |
4426 unittest.test("to-json--from-json", () { | 4589 unittest.test("to-json--from-json", () { |
4427 var o = buildExecutionStageSummary(); | 4590 var o = buildExecutionStageSummary(); |
4428 var od = new api.ExecutionStageSummary.fromJson(o.toJson()); | 4591 var od = new api.ExecutionStageSummary.fromJson(o.toJson()); |
4429 checkExecutionStageSummary(od); | 4592 checkExecutionStageSummary(od); |
4430 }); | 4593 }); |
4431 }); | 4594 }); |
4432 | 4595 |
4433 | 4596 |
4434 unittest.group("obj-schema-FailedLocation", () { | 4597 unittest.group("obj-schema-FailedLocation", () { |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4730 | 4893 |
4731 unittest.group("obj-schema-ParallelInstruction", () { | 4894 unittest.group("obj-schema-ParallelInstruction", () { |
4732 unittest.test("to-json--from-json", () { | 4895 unittest.test("to-json--from-json", () { |
4733 var o = buildParallelInstruction(); | 4896 var o = buildParallelInstruction(); |
4734 var od = new api.ParallelInstruction.fromJson(o.toJson()); | 4897 var od = new api.ParallelInstruction.fromJson(o.toJson()); |
4735 checkParallelInstruction(od); | 4898 checkParallelInstruction(od); |
4736 }); | 4899 }); |
4737 }); | 4900 }); |
4738 | 4901 |
4739 | 4902 |
| 4903 unittest.group("obj-schema-Parameter", () { |
| 4904 unittest.test("to-json--from-json", () { |
| 4905 var o = buildParameter(); |
| 4906 var od = new api.Parameter.fromJson(o.toJson()); |
| 4907 checkParameter(od); |
| 4908 }); |
| 4909 }); |
| 4910 |
| 4911 |
4740 unittest.group("obj-schema-ParameterMetadata", () { | 4912 unittest.group("obj-schema-ParameterMetadata", () { |
4741 unittest.test("to-json--from-json", () { | 4913 unittest.test("to-json--from-json", () { |
4742 var o = buildParameterMetadata(); | 4914 var o = buildParameterMetadata(); |
4743 var od = new api.ParameterMetadata.fromJson(o.toJson()); | 4915 var od = new api.ParameterMetadata.fromJson(o.toJson()); |
4744 checkParameterMetadata(od); | 4916 checkParameterMetadata(od); |
4745 }); | 4917 }); |
4746 }); | 4918 }); |
4747 | 4919 |
4748 | 4920 |
4749 unittest.group("obj-schema-PartialGroupByKeyInstruction", () { | 4921 unittest.group("obj-schema-PartialGroupByKeyInstruction", () { |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5144 | 5316 |
5145 unittest.group("obj-schema-StringList", () { | 5317 unittest.group("obj-schema-StringList", () { |
5146 unittest.test("to-json--from-json", () { | 5318 unittest.test("to-json--from-json", () { |
5147 var o = buildStringList(); | 5319 var o = buildStringList(); |
5148 var od = new api.StringList.fromJson(o.toJson()); | 5320 var od = new api.StringList.fromJson(o.toJson()); |
5149 checkStringList(od); | 5321 checkStringList(od); |
5150 }); | 5322 }); |
5151 }); | 5323 }); |
5152 | 5324 |
5153 | 5325 |
| 5326 unittest.group("obj-schema-StructuredMessage", () { |
| 5327 unittest.test("to-json--from-json", () { |
| 5328 var o = buildStructuredMessage(); |
| 5329 var od = new api.StructuredMessage.fromJson(o.toJson()); |
| 5330 checkStructuredMessage(od); |
| 5331 }); |
| 5332 }); |
| 5333 |
| 5334 |
5154 unittest.group("obj-schema-TaskRunnerSettings", () { | 5335 unittest.group("obj-schema-TaskRunnerSettings", () { |
5155 unittest.test("to-json--from-json", () { | 5336 unittest.test("to-json--from-json", () { |
5156 var o = buildTaskRunnerSettings(); | 5337 var o = buildTaskRunnerSettings(); |
5157 var od = new api.TaskRunnerSettings.fromJson(o.toJson()); | 5338 var od = new api.TaskRunnerSettings.fromJson(o.toJson()); |
5158 checkTaskRunnerSettings(od); | 5339 checkTaskRunnerSettings(od); |
5159 }); | 5340 }); |
5160 }); | 5341 }); |
5161 | 5342 |
5162 | 5343 |
5163 unittest.group("obj-schema-TemplateMetadata", () { | 5344 unittest.group("obj-schema-TemplateMetadata", () { |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5345 }); | 5526 }); |
5346 | 5527 |
5347 | 5528 |
5348 unittest.group("resource-ProjectsJobsResourceApi", () { | 5529 unittest.group("resource-ProjectsJobsResourceApi", () { |
5349 unittest.test("method--create", () { | 5530 unittest.test("method--create", () { |
5350 | 5531 |
5351 var mock = new HttpServerMock(); | 5532 var mock = new HttpServerMock(); |
5352 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; | 5533 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; |
5353 var arg_request = buildJob(); | 5534 var arg_request = buildJob(); |
5354 var arg_projectId = "foo"; | 5535 var arg_projectId = "foo"; |
| 5536 var arg_view = "foo"; |
5355 var arg_location = "foo"; | 5537 var arg_location = "foo"; |
5356 var arg_replaceJobId = "foo"; | 5538 var arg_replaceJobId = "foo"; |
5357 var arg_view = "foo"; | |
5358 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5539 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5359 var obj = new api.Job.fromJson(json); | 5540 var obj = new api.Job.fromJson(json); |
5360 checkJob(obj); | 5541 checkJob(obj); |
5361 | 5542 |
5362 var path = (req.url).path; | 5543 var path = (req.url).path; |
5363 var pathOffset = 0; | 5544 var pathOffset = 0; |
5364 var index; | 5545 var index; |
5365 var subPart; | 5546 var subPart; |
5366 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5547 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5367 pathOffset += 1; | 5548 pathOffset += 1; |
(...skipping 16 matching lines...) Expand all Loading... |
5384 if (n == "false") return false; | 5565 if (n == "false") return false; |
5385 if (n == null) return null; | 5566 if (n == null) return null; |
5386 throw new core.ArgumentError("Invalid boolean: $n"); | 5567 throw new core.ArgumentError("Invalid boolean: $n"); |
5387 } | 5568 } |
5388 if (query.length > 0) { | 5569 if (query.length > 0) { |
5389 for (var part in query.split("&")) { | 5570 for (var part in query.split("&")) { |
5390 var keyvalue = part.split("="); | 5571 var keyvalue = part.split("="); |
5391 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5572 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5392 } | 5573 } |
5393 } | 5574 } |
| 5575 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
5394 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); | 5576 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); |
5395 unittest.expect(queryMap["replaceJobId"].first, unittest.equals(arg_repl
aceJobId)); | 5577 unittest.expect(queryMap["replaceJobId"].first, unittest.equals(arg_repl
aceJobId)); |
5396 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | |
5397 | 5578 |
5398 | 5579 |
5399 var h = { | 5580 var h = { |
5400 "content-type" : "application/json; charset=utf-8", | 5581 "content-type" : "application/json; charset=utf-8", |
5401 }; | 5582 }; |
5402 var resp = convert.JSON.encode(buildJob()); | 5583 var resp = convert.JSON.encode(buildJob()); |
5403 return new async.Future.value(stringResponse(200, h, resp)); | 5584 return new async.Future.value(stringResponse(200, h, resp)); |
5404 }), true); | 5585 }), true); |
5405 res.create(arg_request, arg_projectId, location: arg_location, replaceJobI
d: arg_replaceJobId, view: arg_view).then(unittest.expectAsync(((api.Job respons
e) { | 5586 res.create(arg_request, arg_projectId, view: arg_view, location: arg_locat
ion, replaceJobId: arg_replaceJobId).then(unittest.expectAsync(((api.Job respons
e) { |
5406 checkJob(response); | 5587 checkJob(response); |
5407 }))); | 5588 }))); |
5408 }); | 5589 }); |
5409 | 5590 |
5410 unittest.test("method--get", () { | 5591 unittest.test("method--get", () { |
5411 | 5592 |
5412 var mock = new HttpServerMock(); | 5593 var mock = new HttpServerMock(); |
5413 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; | 5594 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; |
5414 var arg_projectId = "foo"; | 5595 var arg_projectId = "foo"; |
5415 var arg_jobId = "foo"; | 5596 var arg_jobId = "foo"; |
| 5597 var arg_location = "foo"; |
5416 var arg_view = "foo"; | 5598 var arg_view = "foo"; |
5417 var arg_location = "foo"; | |
5418 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5599 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5419 var path = (req.url).path; | 5600 var path = (req.url).path; |
5420 var pathOffset = 0; | 5601 var pathOffset = 0; |
5421 var index; | 5602 var index; |
5422 var subPart; | 5603 var subPart; |
5423 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5604 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5424 pathOffset += 1; | 5605 pathOffset += 1; |
5425 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 5606 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
5426 pathOffset += 14; | 5607 pathOffset += 14; |
5427 index = path.indexOf("/jobs/", pathOffset); | 5608 index = path.indexOf("/jobs/", pathOffset); |
(...skipping 16 matching lines...) Expand all Loading... |
5444 if (n == "false") return false; | 5625 if (n == "false") return false; |
5445 if (n == null) return null; | 5626 if (n == null) return null; |
5446 throw new core.ArgumentError("Invalid boolean: $n"); | 5627 throw new core.ArgumentError("Invalid boolean: $n"); |
5447 } | 5628 } |
5448 if (query.length > 0) { | 5629 if (query.length > 0) { |
5449 for (var part in query.split("&")) { | 5630 for (var part in query.split("&")) { |
5450 var keyvalue = part.split("="); | 5631 var keyvalue = part.split("="); |
5451 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5632 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5452 } | 5633 } |
5453 } | 5634 } |
| 5635 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); |
5454 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | 5636 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
5455 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); | |
5456 | 5637 |
5457 | 5638 |
5458 var h = { | 5639 var h = { |
5459 "content-type" : "application/json; charset=utf-8", | 5640 "content-type" : "application/json; charset=utf-8", |
5460 }; | 5641 }; |
5461 var resp = convert.JSON.encode(buildJob()); | 5642 var resp = convert.JSON.encode(buildJob()); |
5462 return new async.Future.value(stringResponse(200, h, resp)); | 5643 return new async.Future.value(stringResponse(200, h, resp)); |
5463 }), true); | 5644 }), true); |
5464 res.get(arg_projectId, arg_jobId, view: arg_view, location: arg_location).
then(unittest.expectAsync(((api.Job response) { | 5645 res.get(arg_projectId, arg_jobId, location: arg_location, view: arg_view).
then(unittest.expectAsync(((api.Job response) { |
5465 checkJob(response); | 5646 checkJob(response); |
5466 }))); | 5647 }))); |
5467 }); | 5648 }); |
5468 | 5649 |
5469 unittest.test("method--getMetrics", () { | 5650 unittest.test("method--getMetrics", () { |
5470 | 5651 |
5471 var mock = new HttpServerMock(); | 5652 var mock = new HttpServerMock(); |
5472 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; | 5653 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; |
5473 var arg_projectId = "foo"; | 5654 var arg_projectId = "foo"; |
5474 var arg_jobId = "foo"; | 5655 var arg_jobId = "foo"; |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5784 }); | 5965 }); |
5785 | 5966 |
5786 | 5967 |
5787 unittest.group("resource-ProjectsJobsMessagesResourceApi", () { | 5968 unittest.group("resource-ProjectsJobsMessagesResourceApi", () { |
5788 unittest.test("method--list", () { | 5969 unittest.test("method--list", () { |
5789 | 5970 |
5790 var mock = new HttpServerMock(); | 5971 var mock = new HttpServerMock(); |
5791 api.ProjectsJobsMessagesResourceApi res = new api.DataflowApi(mock).projec
ts.jobs.messages; | 5972 api.ProjectsJobsMessagesResourceApi res = new api.DataflowApi(mock).projec
ts.jobs.messages; |
5792 var arg_projectId = "foo"; | 5973 var arg_projectId = "foo"; |
5793 var arg_jobId = "foo"; | 5974 var arg_jobId = "foo"; |
| 5975 var arg_location = "foo"; |
| 5976 var arg_endTime = "foo"; |
| 5977 var arg_startTime = "foo"; |
| 5978 var arg_pageToken = "foo"; |
5794 var arg_pageSize = 42; | 5979 var arg_pageSize = 42; |
5795 var arg_minimumImportance = "foo"; | 5980 var arg_minimumImportance = "foo"; |
5796 var arg_endTime = "foo"; | |
5797 var arg_location = "foo"; | |
5798 var arg_pageToken = "foo"; | |
5799 var arg_startTime = "foo"; | |
5800 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5981 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5801 var path = (req.url).path; | 5982 var path = (req.url).path; |
5802 var pathOffset = 0; | 5983 var pathOffset = 0; |
5803 var index; | 5984 var index; |
5804 var subPart; | 5985 var subPart; |
5805 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5986 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5806 pathOffset += 1; | 5987 pathOffset += 1; |
5807 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 5988 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
5808 pathOffset += 14; | 5989 pathOffset += 14; |
5809 index = path.indexOf("/jobs/", pathOffset); | 5990 index = path.indexOf("/jobs/", pathOffset); |
(...skipping 20 matching lines...) Expand all Loading... |
5830 if (n == "false") return false; | 6011 if (n == "false") return false; |
5831 if (n == null) return null; | 6012 if (n == null) return null; |
5832 throw new core.ArgumentError("Invalid boolean: $n"); | 6013 throw new core.ArgumentError("Invalid boolean: $n"); |
5833 } | 6014 } |
5834 if (query.length > 0) { | 6015 if (query.length > 0) { |
5835 for (var part in query.split("&")) { | 6016 for (var part in query.split("&")) { |
5836 var keyvalue = part.split("="); | 6017 var keyvalue = part.split("="); |
5837 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6018 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5838 } | 6019 } |
5839 } | 6020 } |
| 6021 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); |
| 6022 unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime))
; |
| 6023 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi
me)); |
| 6024 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
5840 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 6025 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
5841 unittest.expect(queryMap["minimumImportance"].first, unittest.equals(arg
_minimumImportance)); | 6026 unittest.expect(queryMap["minimumImportance"].first, unittest.equals(arg
_minimumImportance)); |
5842 unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime))
; | |
5843 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); | |
5844 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
5845 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi
me)); | |
5846 | 6027 |
5847 | 6028 |
5848 var h = { | 6029 var h = { |
5849 "content-type" : "application/json; charset=utf-8", | 6030 "content-type" : "application/json; charset=utf-8", |
5850 }; | 6031 }; |
5851 var resp = convert.JSON.encode(buildListJobMessagesResponse()); | 6032 var resp = convert.JSON.encode(buildListJobMessagesResponse()); |
5852 return new async.Future.value(stringResponse(200, h, resp)); | 6033 return new async.Future.value(stringResponse(200, h, resp)); |
5853 }), true); | 6034 }), true); |
5854 res.list(arg_projectId, arg_jobId, pageSize: arg_pageSize, minimumImportan
ce: arg_minimumImportance, endTime: arg_endTime, location: arg_location, pageTok
en: arg_pageToken, startTime: arg_startTime).then(unittest.expectAsync(((api.Lis
tJobMessagesResponse response) { | 6035 res.list(arg_projectId, arg_jobId, location: arg_location, endTime: arg_en
dTime, startTime: arg_startTime, pageToken: arg_pageToken, pageSize: arg_pageSiz
e, minimumImportance: arg_minimumImportance).then(unittest.expectAsync(((api.Lis
tJobMessagesResponse response) { |
5855 checkListJobMessagesResponse(response); | 6036 checkListJobMessagesResponse(response); |
5856 }))); | 6037 }))); |
5857 }); | 6038 }); |
5858 | 6039 |
5859 }); | 6040 }); |
5860 | 6041 |
5861 | 6042 |
5862 unittest.group("resource-ProjectsJobsWorkItemsResourceApi", () { | 6043 unittest.group("resource-ProjectsJobsWorkItemsResourceApi", () { |
5863 unittest.test("method--lease", () { | 6044 unittest.test("method--lease", () { |
5864 | 6045 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5982 return new async.Future.value(stringResponse(200, h, resp)); | 6163 return new async.Future.value(stringResponse(200, h, resp)); |
5983 }), true); | 6164 }), true); |
5984 res.reportStatus(arg_request, arg_projectId, arg_jobId).then(unittest.expe
ctAsync(((api.ReportWorkItemStatusResponse response) { | 6165 res.reportStatus(arg_request, arg_projectId, arg_jobId).then(unittest.expe
ctAsync(((api.ReportWorkItemStatusResponse response) { |
5985 checkReportWorkItemStatusResponse(response); | 6166 checkReportWorkItemStatusResponse(response); |
5986 }))); | 6167 }))); |
5987 }); | 6168 }); |
5988 | 6169 |
5989 }); | 6170 }); |
5990 | 6171 |
5991 | 6172 |
| 6173 unittest.group("resource-ProjectsLocationsResourceApi", () { |
| 6174 unittest.test("method--workerMessages", () { |
| 6175 |
| 6176 var mock = new HttpServerMock(); |
| 6177 api.ProjectsLocationsResourceApi res = new api.DataflowApi(mock).projects.
locations; |
| 6178 var arg_request = buildSendWorkerMessagesRequest(); |
| 6179 var arg_projectId = "foo"; |
| 6180 var arg_location = "foo"; |
| 6181 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6182 var obj = new api.SendWorkerMessagesRequest.fromJson(json); |
| 6183 checkSendWorkerMessagesRequest(obj); |
| 6184 |
| 6185 var path = (req.url).path; |
| 6186 var pathOffset = 0; |
| 6187 var index; |
| 6188 var subPart; |
| 6189 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6190 pathOffset += 1; |
| 6191 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
| 6192 pathOffset += 14; |
| 6193 index = path.indexOf("/locations/", pathOffset); |
| 6194 unittest.expect(index >= 0, unittest.isTrue); |
| 6195 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 6196 pathOffset = index; |
| 6197 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 6198 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/locations/")); |
| 6199 pathOffset += 11; |
| 6200 index = path.indexOf("/WorkerMessages", pathOffset); |
| 6201 unittest.expect(index >= 0, unittest.isTrue); |
| 6202 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 6203 pathOffset = index; |
| 6204 unittest.expect(subPart, unittest.equals("$arg_location")); |
| 6205 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/WorkerMessages")); |
| 6206 pathOffset += 15; |
| 6207 |
| 6208 var query = (req.url).query; |
| 6209 var queryOffset = 0; |
| 6210 var queryMap = {}; |
| 6211 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 6212 parseBool(n) { |
| 6213 if (n == "true") return true; |
| 6214 if (n == "false") return false; |
| 6215 if (n == null) return null; |
| 6216 throw new core.ArgumentError("Invalid boolean: $n"); |
| 6217 } |
| 6218 if (query.length > 0) { |
| 6219 for (var part in query.split("&")) { |
| 6220 var keyvalue = part.split("="); |
| 6221 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6222 } |
| 6223 } |
| 6224 |
| 6225 |
| 6226 var h = { |
| 6227 "content-type" : "application/json; charset=utf-8", |
| 6228 }; |
| 6229 var resp = convert.JSON.encode(buildSendWorkerMessagesResponse()); |
| 6230 return new async.Future.value(stringResponse(200, h, resp)); |
| 6231 }), true); |
| 6232 res.workerMessages(arg_request, arg_projectId, arg_location).then(unittest
.expectAsync(((api.SendWorkerMessagesResponse response) { |
| 6233 checkSendWorkerMessagesResponse(response); |
| 6234 }))); |
| 6235 }); |
| 6236 |
| 6237 }); |
| 6238 |
| 6239 |
5992 unittest.group("resource-ProjectsLocationsJobsResourceApi", () { | 6240 unittest.group("resource-ProjectsLocationsJobsResourceApi", () { |
5993 unittest.test("method--create", () { | 6241 unittest.test("method--create", () { |
5994 | 6242 |
5995 var mock = new HttpServerMock(); | 6243 var mock = new HttpServerMock(); |
5996 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje
cts.locations.jobs; | 6244 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje
cts.locations.jobs; |
5997 var arg_request = buildJob(); | 6245 var arg_request = buildJob(); |
5998 var arg_projectId = "foo"; | 6246 var arg_projectId = "foo"; |
5999 var arg_location = "foo"; | 6247 var arg_location = "foo"; |
6000 var arg_view = "foo"; | 6248 var arg_view = "foo"; |
6001 var arg_replaceJobId = "foo"; | 6249 var arg_replaceJobId = "foo"; |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6190 checkJobMetrics(response); | 6438 checkJobMetrics(response); |
6191 }))); | 6439 }))); |
6192 }); | 6440 }); |
6193 | 6441 |
6194 unittest.test("method--list", () { | 6442 unittest.test("method--list", () { |
6195 | 6443 |
6196 var mock = new HttpServerMock(); | 6444 var mock = new HttpServerMock(); |
6197 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje
cts.locations.jobs; | 6445 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje
cts.locations.jobs; |
6198 var arg_projectId = "foo"; | 6446 var arg_projectId = "foo"; |
6199 var arg_location = "foo"; | 6447 var arg_location = "foo"; |
| 6448 var arg_filter = "foo"; |
| 6449 var arg_pageToken = "foo"; |
6200 var arg_pageSize = 42; | 6450 var arg_pageSize = 42; |
6201 var arg_view = "foo"; | 6451 var arg_view = "foo"; |
6202 var arg_filter = "foo"; | |
6203 var arg_pageToken = "foo"; | |
6204 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6452 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6205 var path = (req.url).path; | 6453 var path = (req.url).path; |
6206 var pathOffset = 0; | 6454 var pathOffset = 0; |
6207 var index; | 6455 var index; |
6208 var subPart; | 6456 var subPart; |
6209 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6457 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6210 pathOffset += 1; | 6458 pathOffset += 1; |
6211 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 6459 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
6212 pathOffset += 14; | 6460 pathOffset += 14; |
6213 index = path.indexOf("/locations/", pathOffset); | 6461 index = path.indexOf("/locations/", pathOffset); |
(...skipping 20 matching lines...) Expand all Loading... |
6234 if (n == "false") return false; | 6482 if (n == "false") return false; |
6235 if (n == null) return null; | 6483 if (n == null) return null; |
6236 throw new core.ArgumentError("Invalid boolean: $n"); | 6484 throw new core.ArgumentError("Invalid boolean: $n"); |
6237 } | 6485 } |
6238 if (query.length > 0) { | 6486 if (query.length > 0) { |
6239 for (var part in query.split("&")) { | 6487 for (var part in query.split("&")) { |
6240 var keyvalue = part.split("="); | 6488 var keyvalue = part.split("="); |
6241 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6489 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
6242 } | 6490 } |
6243 } | 6491 } |
| 6492 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 6493 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
6244 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 6494 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
6245 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | 6495 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
6246 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
6247 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
6248 | 6496 |
6249 | 6497 |
6250 var h = { | 6498 var h = { |
6251 "content-type" : "application/json; charset=utf-8", | 6499 "content-type" : "application/json; charset=utf-8", |
6252 }; | 6500 }; |
6253 var resp = convert.JSON.encode(buildListJobsResponse()); | 6501 var resp = convert.JSON.encode(buildListJobsResponse()); |
6254 return new async.Future.value(stringResponse(200, h, resp)); | 6502 return new async.Future.value(stringResponse(200, h, resp)); |
6255 }), true); | 6503 }), true); |
6256 res.list(arg_projectId, arg_location, pageSize: arg_pageSize, view: arg_vi
ew, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((ap
i.ListJobsResponse response) { | 6504 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) { |
6257 checkListJobsResponse(response); | 6505 checkListJobsResponse(response); |
6258 }))); | 6506 }))); |
6259 }); | 6507 }); |
6260 | 6508 |
6261 unittest.test("method--update", () { | 6509 unittest.test("method--update", () { |
6262 | 6510 |
6263 var mock = new HttpServerMock(); | 6511 var mock = new HttpServerMock(); |
6264 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje
cts.locations.jobs; | 6512 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje
cts.locations.jobs; |
6265 var arg_request = buildJob(); | 6513 var arg_request = buildJob(); |
6266 var arg_projectId = "foo"; | 6514 var arg_projectId = "foo"; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6321 return new async.Future.value(stringResponse(200, h, resp)); | 6569 return new async.Future.value(stringResponse(200, h, resp)); |
6322 }), true); | 6570 }), true); |
6323 res.update(arg_request, arg_projectId, arg_location, arg_jobId).then(unitt
est.expectAsync(((api.Job response) { | 6571 res.update(arg_request, arg_projectId, arg_location, arg_jobId).then(unitt
est.expectAsync(((api.Job response) { |
6324 checkJob(response); | 6572 checkJob(response); |
6325 }))); | 6573 }))); |
6326 }); | 6574 }); |
6327 | 6575 |
6328 }); | 6576 }); |
6329 | 6577 |
6330 | 6578 |
| 6579 unittest.group("resource-ProjectsLocationsJobsDebugResourceApi", () { |
| 6580 unittest.test("method--getConfig", () { |
| 6581 |
| 6582 var mock = new HttpServerMock(); |
| 6583 api.ProjectsLocationsJobsDebugResourceApi res = new api.DataflowApi(mock).
projects.locations.jobs.debug; |
| 6584 var arg_request = buildGetDebugConfigRequest(); |
| 6585 var arg_projectId = "foo"; |
| 6586 var arg_location = "foo"; |
| 6587 var arg_jobId = "foo"; |
| 6588 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6589 var obj = new api.GetDebugConfigRequest.fromJson(json); |
| 6590 checkGetDebugConfigRequest(obj); |
| 6591 |
| 6592 var path = (req.url).path; |
| 6593 var pathOffset = 0; |
| 6594 var index; |
| 6595 var subPart; |
| 6596 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6597 pathOffset += 1; |
| 6598 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
| 6599 pathOffset += 14; |
| 6600 index = path.indexOf("/locations/", pathOffset); |
| 6601 unittest.expect(index >= 0, unittest.isTrue); |
| 6602 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 6603 pathOffset = index; |
| 6604 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 6605 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/locations/")); |
| 6606 pathOffset += 11; |
| 6607 index = path.indexOf("/jobs/", pathOffset); |
| 6608 unittest.expect(index >= 0, unittest.isTrue); |
| 6609 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 6610 pathOffset = index; |
| 6611 unittest.expect(subPart, unittest.equals("$arg_location")); |
| 6612 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/jobs/")); |
| 6613 pathOffset += 6; |
| 6614 index = path.indexOf("/debug/getConfig", pathOffset); |
| 6615 unittest.expect(index >= 0, unittest.isTrue); |
| 6616 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 6617 pathOffset = index; |
| 6618 unittest.expect(subPart, unittest.equals("$arg_jobId")); |
| 6619 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/debug/getConfig")); |
| 6620 pathOffset += 16; |
| 6621 |
| 6622 var query = (req.url).query; |
| 6623 var queryOffset = 0; |
| 6624 var queryMap = {}; |
| 6625 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 6626 parseBool(n) { |
| 6627 if (n == "true") return true; |
| 6628 if (n == "false") return false; |
| 6629 if (n == null) return null; |
| 6630 throw new core.ArgumentError("Invalid boolean: $n"); |
| 6631 } |
| 6632 if (query.length > 0) { |
| 6633 for (var part in query.split("&")) { |
| 6634 var keyvalue = part.split("="); |
| 6635 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6636 } |
| 6637 } |
| 6638 |
| 6639 |
| 6640 var h = { |
| 6641 "content-type" : "application/json; charset=utf-8", |
| 6642 }; |
| 6643 var resp = convert.JSON.encode(buildGetDebugConfigResponse()); |
| 6644 return new async.Future.value(stringResponse(200, h, resp)); |
| 6645 }), true); |
| 6646 res.getConfig(arg_request, arg_projectId, arg_location, arg_jobId).then(un
ittest.expectAsync(((api.GetDebugConfigResponse response) { |
| 6647 checkGetDebugConfigResponse(response); |
| 6648 }))); |
| 6649 }); |
| 6650 |
| 6651 unittest.test("method--sendCapture", () { |
| 6652 |
| 6653 var mock = new HttpServerMock(); |
| 6654 api.ProjectsLocationsJobsDebugResourceApi res = new api.DataflowApi(mock).
projects.locations.jobs.debug; |
| 6655 var arg_request = buildSendDebugCaptureRequest(); |
| 6656 var arg_projectId = "foo"; |
| 6657 var arg_location = "foo"; |
| 6658 var arg_jobId = "foo"; |
| 6659 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6660 var obj = new api.SendDebugCaptureRequest.fromJson(json); |
| 6661 checkSendDebugCaptureRequest(obj); |
| 6662 |
| 6663 var path = (req.url).path; |
| 6664 var pathOffset = 0; |
| 6665 var index; |
| 6666 var subPart; |
| 6667 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6668 pathOffset += 1; |
| 6669 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
| 6670 pathOffset += 14; |
| 6671 index = path.indexOf("/locations/", pathOffset); |
| 6672 unittest.expect(index >= 0, unittest.isTrue); |
| 6673 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 6674 pathOffset = index; |
| 6675 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 6676 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/locations/")); |
| 6677 pathOffset += 11; |
| 6678 index = path.indexOf("/jobs/", pathOffset); |
| 6679 unittest.expect(index >= 0, unittest.isTrue); |
| 6680 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 6681 pathOffset = index; |
| 6682 unittest.expect(subPart, unittest.equals("$arg_location")); |
| 6683 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/jobs/")); |
| 6684 pathOffset += 6; |
| 6685 index = path.indexOf("/debug/sendCapture", pathOffset); |
| 6686 unittest.expect(index >= 0, unittest.isTrue); |
| 6687 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 6688 pathOffset = index; |
| 6689 unittest.expect(subPart, unittest.equals("$arg_jobId")); |
| 6690 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/debug/sendCapture")); |
| 6691 pathOffset += 18; |
| 6692 |
| 6693 var query = (req.url).query; |
| 6694 var queryOffset = 0; |
| 6695 var queryMap = {}; |
| 6696 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 6697 parseBool(n) { |
| 6698 if (n == "true") return true; |
| 6699 if (n == "false") return false; |
| 6700 if (n == null) return null; |
| 6701 throw new core.ArgumentError("Invalid boolean: $n"); |
| 6702 } |
| 6703 if (query.length > 0) { |
| 6704 for (var part in query.split("&")) { |
| 6705 var keyvalue = part.split("="); |
| 6706 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6707 } |
| 6708 } |
| 6709 |
| 6710 |
| 6711 var h = { |
| 6712 "content-type" : "application/json; charset=utf-8", |
| 6713 }; |
| 6714 var resp = convert.JSON.encode(buildSendDebugCaptureResponse()); |
| 6715 return new async.Future.value(stringResponse(200, h, resp)); |
| 6716 }), true); |
| 6717 res.sendCapture(arg_request, arg_projectId, arg_location, arg_jobId).then(
unittest.expectAsync(((api.SendDebugCaptureResponse response) { |
| 6718 checkSendDebugCaptureResponse(response); |
| 6719 }))); |
| 6720 }); |
| 6721 |
| 6722 }); |
| 6723 |
| 6724 |
6331 unittest.group("resource-ProjectsLocationsJobsMessagesResourceApi", () { | 6725 unittest.group("resource-ProjectsLocationsJobsMessagesResourceApi", () { |
6332 unittest.test("method--list", () { | 6726 unittest.test("method--list", () { |
6333 | 6727 |
6334 var mock = new HttpServerMock(); | 6728 var mock = new HttpServerMock(); |
6335 api.ProjectsLocationsJobsMessagesResourceApi res = new api.DataflowApi(moc
k).projects.locations.jobs.messages; | 6729 api.ProjectsLocationsJobsMessagesResourceApi res = new api.DataflowApi(moc
k).projects.locations.jobs.messages; |
6336 var arg_projectId = "foo"; | 6730 var arg_projectId = "foo"; |
6337 var arg_location = "foo"; | 6731 var arg_location = "foo"; |
6338 var arg_jobId = "foo"; | 6732 var arg_jobId = "foo"; |
6339 var arg_endTime = "foo"; | 6733 var arg_endTime = "foo"; |
6340 var arg_pageToken = "foo"; | 6734 var arg_pageToken = "foo"; |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6548 return new async.Future.value(stringResponse(200, h, resp)); | 6942 return new async.Future.value(stringResponse(200, h, resp)); |
6549 }), true); | 6943 }), true); |
6550 res.reportStatus(arg_request, arg_projectId, arg_location, arg_jobId).then
(unittest.expectAsync(((api.ReportWorkItemStatusResponse response) { | 6944 res.reportStatus(arg_request, arg_projectId, arg_location, arg_jobId).then
(unittest.expectAsync(((api.ReportWorkItemStatusResponse response) { |
6551 checkReportWorkItemStatusResponse(response); | 6945 checkReportWorkItemStatusResponse(response); |
6552 }))); | 6946 }))); |
6553 }); | 6947 }); |
6554 | 6948 |
6555 }); | 6949 }); |
6556 | 6950 |
6557 | 6951 |
| 6952 unittest.group("resource-ProjectsLocationsTemplatesResourceApi", () { |
| 6953 unittest.test("method--create", () { |
| 6954 |
| 6955 var mock = new HttpServerMock(); |
| 6956 api.ProjectsLocationsTemplatesResourceApi res = new api.DataflowApi(mock).
projects.locations.templates; |
| 6957 var arg_request = buildCreateJobFromTemplateRequest(); |
| 6958 var arg_projectId = "foo"; |
| 6959 var arg_location = "foo"; |
| 6960 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6961 var obj = new api.CreateJobFromTemplateRequest.fromJson(json); |
| 6962 checkCreateJobFromTemplateRequest(obj); |
| 6963 |
| 6964 var path = (req.url).path; |
| 6965 var pathOffset = 0; |
| 6966 var index; |
| 6967 var subPart; |
| 6968 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6969 pathOffset += 1; |
| 6970 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
| 6971 pathOffset += 14; |
| 6972 index = path.indexOf("/locations/", pathOffset); |
| 6973 unittest.expect(index >= 0, unittest.isTrue); |
| 6974 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 6975 pathOffset = index; |
| 6976 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 6977 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/locations/")); |
| 6978 pathOffset += 11; |
| 6979 index = path.indexOf("/templates", pathOffset); |
| 6980 unittest.expect(index >= 0, unittest.isTrue); |
| 6981 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 6982 pathOffset = index; |
| 6983 unittest.expect(subPart, unittest.equals("$arg_location")); |
| 6984 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/templates")); |
| 6985 pathOffset += 10; |
| 6986 |
| 6987 var query = (req.url).query; |
| 6988 var queryOffset = 0; |
| 6989 var queryMap = {}; |
| 6990 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 6991 parseBool(n) { |
| 6992 if (n == "true") return true; |
| 6993 if (n == "false") return false; |
| 6994 if (n == null) return null; |
| 6995 throw new core.ArgumentError("Invalid boolean: $n"); |
| 6996 } |
| 6997 if (query.length > 0) { |
| 6998 for (var part in query.split("&")) { |
| 6999 var keyvalue = part.split("="); |
| 7000 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 7001 } |
| 7002 } |
| 7003 |
| 7004 |
| 7005 var h = { |
| 7006 "content-type" : "application/json; charset=utf-8", |
| 7007 }; |
| 7008 var resp = convert.JSON.encode(buildJob()); |
| 7009 return new async.Future.value(stringResponse(200, h, resp)); |
| 7010 }), true); |
| 7011 res.create(arg_request, arg_projectId, arg_location).then(unittest.expectA
sync(((api.Job response) { |
| 7012 checkJob(response); |
| 7013 }))); |
| 7014 }); |
| 7015 |
| 7016 unittest.test("method--get", () { |
| 7017 |
| 7018 var mock = new HttpServerMock(); |
| 7019 api.ProjectsLocationsTemplatesResourceApi res = new api.DataflowApi(mock).
projects.locations.templates; |
| 7020 var arg_projectId = "foo"; |
| 7021 var arg_location = "foo"; |
| 7022 var arg_view = "foo"; |
| 7023 var arg_gcsPath = "foo"; |
| 7024 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7025 var path = (req.url).path; |
| 7026 var pathOffset = 0; |
| 7027 var index; |
| 7028 var subPart; |
| 7029 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 7030 pathOffset += 1; |
| 7031 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
| 7032 pathOffset += 14; |
| 7033 index = path.indexOf("/locations/", pathOffset); |
| 7034 unittest.expect(index >= 0, unittest.isTrue); |
| 7035 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 7036 pathOffset = index; |
| 7037 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 7038 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/locations/")); |
| 7039 pathOffset += 11; |
| 7040 index = path.indexOf("/templates:get", pathOffset); |
| 7041 unittest.expect(index >= 0, unittest.isTrue); |
| 7042 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 7043 pathOffset = index; |
| 7044 unittest.expect(subPart, unittest.equals("$arg_location")); |
| 7045 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("/templates:get")); |
| 7046 pathOffset += 14; |
| 7047 |
| 7048 var query = (req.url).query; |
| 7049 var queryOffset = 0; |
| 7050 var queryMap = {}; |
| 7051 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 7052 parseBool(n) { |
| 7053 if (n == "true") return true; |
| 7054 if (n == "false") return false; |
| 7055 if (n == null) return null; |
| 7056 throw new core.ArgumentError("Invalid boolean: $n"); |
| 7057 } |
| 7058 if (query.length > 0) { |
| 7059 for (var part in query.split("&")) { |
| 7060 var keyvalue = part.split("="); |
| 7061 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 7062 } |
| 7063 } |
| 7064 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
| 7065 unittest.expect(queryMap["gcsPath"].first, unittest.equals(arg_gcsPath))
; |
| 7066 |
| 7067 |
| 7068 var h = { |
| 7069 "content-type" : "application/json; charset=utf-8", |
| 7070 }; |
| 7071 var resp = convert.JSON.encode(buildGetTemplateResponse()); |
| 7072 return new async.Future.value(stringResponse(200, h, resp)); |
| 7073 }), true); |
| 7074 res.get(arg_projectId, arg_location, view: arg_view, gcsPath: arg_gcsPath)
.then(unittest.expectAsync(((api.GetTemplateResponse response) { |
| 7075 checkGetTemplateResponse(response); |
| 7076 }))); |
| 7077 }); |
| 7078 |
| 7079 unittest.test("method--launch", () { |
| 7080 |
| 7081 var mock = new HttpServerMock(); |
| 7082 api.ProjectsLocationsTemplatesResourceApi res = new api.DataflowApi(mock).
projects.locations.templates; |
| 7083 var arg_request = buildLaunchTemplateParameters(); |
| 7084 var arg_projectId = "foo"; |
| 7085 var arg_location = "foo"; |
| 7086 var arg_gcsPath = "foo"; |
| 7087 var arg_dryRun = true; |
| 7088 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 7089 var obj = new api.LaunchTemplateParameters.fromJson(json); |
| 7090 checkLaunchTemplateParameters(obj); |
| 7091 |
| 7092 var path = (req.url).path; |
| 7093 var pathOffset = 0; |
| 7094 var index; |
| 7095 var subPart; |
| 7096 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 7097 pathOffset += 1; |
| 7098 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
| 7099 pathOffset += 14; |
| 7100 index = path.indexOf("/locations/", pathOffset); |
| 7101 unittest.expect(index >= 0, unittest.isTrue); |
| 7102 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 7103 pathOffset = index; |
| 7104 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 7105 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/locations/")); |
| 7106 pathOffset += 11; |
| 7107 index = path.indexOf("/templates:launch", pathOffset); |
| 7108 unittest.expect(index >= 0, unittest.isTrue); |
| 7109 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 7110 pathOffset = index; |
| 7111 unittest.expect(subPart, unittest.equals("$arg_location")); |
| 7112 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/templates:launch")); |
| 7113 pathOffset += 17; |
| 7114 |
| 7115 var query = (req.url).query; |
| 7116 var queryOffset = 0; |
| 7117 var queryMap = {}; |
| 7118 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 7119 parseBool(n) { |
| 7120 if (n == "true") return true; |
| 7121 if (n == "false") return false; |
| 7122 if (n == null) return null; |
| 7123 throw new core.ArgumentError("Invalid boolean: $n"); |
| 7124 } |
| 7125 if (query.length > 0) { |
| 7126 for (var part in query.split("&")) { |
| 7127 var keyvalue = part.split("="); |
| 7128 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 7129 } |
| 7130 } |
| 7131 unittest.expect(queryMap["gcsPath"].first, unittest.equals(arg_gcsPath))
; |
| 7132 unittest.expect(queryMap["dryRun"].first, unittest.equals("$arg_dryRun")
); |
| 7133 |
| 7134 |
| 7135 var h = { |
| 7136 "content-type" : "application/json; charset=utf-8", |
| 7137 }; |
| 7138 var resp = convert.JSON.encode(buildLaunchTemplateResponse()); |
| 7139 return new async.Future.value(stringResponse(200, h, resp)); |
| 7140 }), true); |
| 7141 res.launch(arg_request, arg_projectId, arg_location, gcsPath: arg_gcsPath,
dryRun: arg_dryRun).then(unittest.expectAsync(((api.LaunchTemplateResponse resp
onse) { |
| 7142 checkLaunchTemplateResponse(response); |
| 7143 }))); |
| 7144 }); |
| 7145 |
| 7146 }); |
| 7147 |
| 7148 |
6558 unittest.group("resource-ProjectsTemplatesResourceApi", () { | 7149 unittest.group("resource-ProjectsTemplatesResourceApi", () { |
6559 unittest.test("method--create", () { | 7150 unittest.test("method--create", () { |
6560 | 7151 |
6561 var mock = new HttpServerMock(); | 7152 var mock = new HttpServerMock(); |
6562 api.ProjectsTemplatesResourceApi res = new api.DataflowApi(mock).projects.
templates; | 7153 api.ProjectsTemplatesResourceApi res = new api.DataflowApi(mock).projects.
templates; |
6563 var arg_request = buildCreateJobFromTemplateRequest(); | 7154 var arg_request = buildCreateJobFromTemplateRequest(); |
6564 var arg_projectId = "foo"; | 7155 var arg_projectId = "foo"; |
6565 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7156 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6566 var obj = new api.CreateJobFromTemplateRequest.fromJson(json); | 7157 var obj = new api.CreateJobFromTemplateRequest.fromJson(json); |
6567 checkCreateJobFromTemplateRequest(obj); | 7158 checkCreateJobFromTemplateRequest(obj); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6611 }))); | 7202 }))); |
6612 }); | 7203 }); |
6613 | 7204 |
6614 unittest.test("method--get", () { | 7205 unittest.test("method--get", () { |
6615 | 7206 |
6616 var mock = new HttpServerMock(); | 7207 var mock = new HttpServerMock(); |
6617 api.ProjectsTemplatesResourceApi res = new api.DataflowApi(mock).projects.
templates; | 7208 api.ProjectsTemplatesResourceApi res = new api.DataflowApi(mock).projects.
templates; |
6618 var arg_projectId = "foo"; | 7209 var arg_projectId = "foo"; |
6619 var arg_view = "foo"; | 7210 var arg_view = "foo"; |
6620 var arg_gcsPath = "foo"; | 7211 var arg_gcsPath = "foo"; |
| 7212 var arg_location = "foo"; |
6621 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7213 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6622 var path = (req.url).path; | 7214 var path = (req.url).path; |
6623 var pathOffset = 0; | 7215 var pathOffset = 0; |
6624 var index; | 7216 var index; |
6625 var subPart; | 7217 var subPart; |
6626 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7218 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6627 pathOffset += 1; | 7219 pathOffset += 1; |
6628 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 7220 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
6629 pathOffset += 14; | 7221 pathOffset += 14; |
6630 index = path.indexOf("/templates:get", pathOffset); | 7222 index = path.indexOf("/templates:get", pathOffset); |
(...skipping 15 matching lines...) Expand all Loading... |
6646 throw new core.ArgumentError("Invalid boolean: $n"); | 7238 throw new core.ArgumentError("Invalid boolean: $n"); |
6647 } | 7239 } |
6648 if (query.length > 0) { | 7240 if (query.length > 0) { |
6649 for (var part in query.split("&")) { | 7241 for (var part in query.split("&")) { |
6650 var keyvalue = part.split("="); | 7242 var keyvalue = part.split("="); |
6651 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7243 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
6652 } | 7244 } |
6653 } | 7245 } |
6654 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | 7246 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
6655 unittest.expect(queryMap["gcsPath"].first, unittest.equals(arg_gcsPath))
; | 7247 unittest.expect(queryMap["gcsPath"].first, unittest.equals(arg_gcsPath))
; |
| 7248 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); |
6656 | 7249 |
6657 | 7250 |
6658 var h = { | 7251 var h = { |
6659 "content-type" : "application/json; charset=utf-8", | 7252 "content-type" : "application/json; charset=utf-8", |
6660 }; | 7253 }; |
6661 var resp = convert.JSON.encode(buildGetTemplateResponse()); | 7254 var resp = convert.JSON.encode(buildGetTemplateResponse()); |
6662 return new async.Future.value(stringResponse(200, h, resp)); | 7255 return new async.Future.value(stringResponse(200, h, resp)); |
6663 }), true); | 7256 }), true); |
6664 res.get(arg_projectId, view: arg_view, gcsPath: arg_gcsPath).then(unittest
.expectAsync(((api.GetTemplateResponse response) { | 7257 res.get(arg_projectId, view: arg_view, gcsPath: arg_gcsPath, location: arg
_location).then(unittest.expectAsync(((api.GetTemplateResponse response) { |
6665 checkGetTemplateResponse(response); | 7258 checkGetTemplateResponse(response); |
6666 }))); | 7259 }))); |
6667 }); | 7260 }); |
6668 | 7261 |
6669 unittest.test("method--launch", () { | 7262 unittest.test("method--launch", () { |
6670 | 7263 |
6671 var mock = new HttpServerMock(); | 7264 var mock = new HttpServerMock(); |
6672 api.ProjectsTemplatesResourceApi res = new api.DataflowApi(mock).projects.
templates; | 7265 api.ProjectsTemplatesResourceApi res = new api.DataflowApi(mock).projects.
templates; |
6673 var arg_request = buildLaunchTemplateParameters(); | 7266 var arg_request = buildLaunchTemplateParameters(); |
6674 var arg_projectId = "foo"; | 7267 var arg_projectId = "foo"; |
6675 var arg_gcsPath = "foo"; | 7268 var arg_gcsPath = "foo"; |
6676 var arg_dryRun = true; | 7269 var arg_dryRun = true; |
| 7270 var arg_location = "foo"; |
6677 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 7271 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6678 var obj = new api.LaunchTemplateParameters.fromJson(json); | 7272 var obj = new api.LaunchTemplateParameters.fromJson(json); |
6679 checkLaunchTemplateParameters(obj); | 7273 checkLaunchTemplateParameters(obj); |
6680 | 7274 |
6681 var path = (req.url).path; | 7275 var path = (req.url).path; |
6682 var pathOffset = 0; | 7276 var pathOffset = 0; |
6683 var index; | 7277 var index; |
6684 var subPart; | 7278 var subPart; |
6685 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7279 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6686 pathOffset += 1; | 7280 pathOffset += 1; |
(...skipping 18 matching lines...) Expand all Loading... |
6705 throw new core.ArgumentError("Invalid boolean: $n"); | 7299 throw new core.ArgumentError("Invalid boolean: $n"); |
6706 } | 7300 } |
6707 if (query.length > 0) { | 7301 if (query.length > 0) { |
6708 for (var part in query.split("&")) { | 7302 for (var part in query.split("&")) { |
6709 var keyvalue = part.split("="); | 7303 var keyvalue = part.split("="); |
6710 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7304 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
6711 } | 7305 } |
6712 } | 7306 } |
6713 unittest.expect(queryMap["gcsPath"].first, unittest.equals(arg_gcsPath))
; | 7307 unittest.expect(queryMap["gcsPath"].first, unittest.equals(arg_gcsPath))
; |
6714 unittest.expect(queryMap["dryRun"].first, unittest.equals("$arg_dryRun")
); | 7308 unittest.expect(queryMap["dryRun"].first, unittest.equals("$arg_dryRun")
); |
| 7309 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); |
6715 | 7310 |
6716 | 7311 |
6717 var h = { | 7312 var h = { |
6718 "content-type" : "application/json; charset=utf-8", | 7313 "content-type" : "application/json; charset=utf-8", |
6719 }; | 7314 }; |
6720 var resp = convert.JSON.encode(buildLaunchTemplateResponse()); | 7315 var resp = convert.JSON.encode(buildLaunchTemplateResponse()); |
6721 return new async.Future.value(stringResponse(200, h, resp)); | 7316 return new async.Future.value(stringResponse(200, h, resp)); |
6722 }), true); | 7317 }), true); |
6723 res.launch(arg_request, arg_projectId, gcsPath: arg_gcsPath, dryRun: arg_d
ryRun).then(unittest.expectAsync(((api.LaunchTemplateResponse response) { | 7318 res.launch(arg_request, arg_projectId, gcsPath: arg_gcsPath, dryRun: arg_d
ryRun, location: arg_location).then(unittest.expectAsync(((api.LaunchTemplateRes
ponse response) { |
6724 checkLaunchTemplateResponse(response); | 7319 checkLaunchTemplateResponse(response); |
6725 }))); | 7320 }))); |
6726 }); | 7321 }); |
6727 | 7322 |
6728 }); | 7323 }); |
6729 | 7324 |
6730 | 7325 |
6731 } | 7326 } |
6732 | 7327 |
OLD | NEW |