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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 checkCPUTime(api.CPUTime o) { | 157 checkCPUTime(api.CPUTime o) { |
158 buildCounterCPUTime++; | 158 buildCounterCPUTime++; |
159 if (buildCounterCPUTime < 3) { | 159 if (buildCounterCPUTime < 3) { |
160 unittest.expect(o.rate, unittest.equals(42.0)); | 160 unittest.expect(o.rate, unittest.equals(42.0)); |
161 unittest.expect(o.timestamp, unittest.equals('foo')); | 161 unittest.expect(o.timestamp, unittest.equals('foo')); |
162 unittest.expect(o.totalMs, unittest.equals('foo')); | 162 unittest.expect(o.totalMs, unittest.equals('foo')); |
163 } | 163 } |
164 buildCounterCPUTime--; | 164 buildCounterCPUTime--; |
165 } | 165 } |
166 | 166 |
167 buildUnnamed3138() { | 167 core.int buildCounterComponentSource = 0; |
| 168 buildComponentSource() { |
| 169 var o = new api.ComponentSource(); |
| 170 buildCounterComponentSource++; |
| 171 if (buildCounterComponentSource < 3) { |
| 172 o.name = "foo"; |
| 173 o.originalTransformOrCollection = "foo"; |
| 174 o.userName = "foo"; |
| 175 } |
| 176 buildCounterComponentSource--; |
| 177 return o; |
| 178 } |
| 179 |
| 180 checkComponentSource(api.ComponentSource o) { |
| 181 buildCounterComponentSource++; |
| 182 if (buildCounterComponentSource < 3) { |
| 183 unittest.expect(o.name, unittest.equals('foo')); |
| 184 unittest.expect(o.originalTransformOrCollection, unittest.equals('foo')); |
| 185 unittest.expect(o.userName, unittest.equals('foo')); |
| 186 } |
| 187 buildCounterComponentSource--; |
| 188 } |
| 189 |
| 190 core.int buildCounterComponentTransform = 0; |
| 191 buildComponentTransform() { |
| 192 var o = new api.ComponentTransform(); |
| 193 buildCounterComponentTransform++; |
| 194 if (buildCounterComponentTransform < 3) { |
| 195 o.name = "foo"; |
| 196 o.originalTransform = "foo"; |
| 197 o.userName = "foo"; |
| 198 } |
| 199 buildCounterComponentTransform--; |
| 200 return o; |
| 201 } |
| 202 |
| 203 checkComponentTransform(api.ComponentTransform o) { |
| 204 buildCounterComponentTransform++; |
| 205 if (buildCounterComponentTransform < 3) { |
| 206 unittest.expect(o.name, unittest.equals('foo')); |
| 207 unittest.expect(o.originalTransform, unittest.equals('foo')); |
| 208 unittest.expect(o.userName, unittest.equals('foo')); |
| 209 } |
| 210 buildCounterComponentTransform--; |
| 211 } |
| 212 |
| 213 buildUnnamed2973() { |
168 var o = new core.List<api.StreamLocation>(); | 214 var o = new core.List<api.StreamLocation>(); |
169 o.add(buildStreamLocation()); | 215 o.add(buildStreamLocation()); |
170 o.add(buildStreamLocation()); | 216 o.add(buildStreamLocation()); |
171 return o; | 217 return o; |
172 } | 218 } |
173 | 219 |
174 checkUnnamed3138(core.List<api.StreamLocation> o) { | 220 checkUnnamed2973(core.List<api.StreamLocation> o) { |
175 unittest.expect(o, unittest.hasLength(2)); | 221 unittest.expect(o, unittest.hasLength(2)); |
176 checkStreamLocation(o[0]); | 222 checkStreamLocation(o[0]); |
177 checkStreamLocation(o[1]); | 223 checkStreamLocation(o[1]); |
178 } | 224 } |
179 | 225 |
180 buildUnnamed3139() { | 226 buildUnnamed2974() { |
181 var o = new core.List<api.KeyRangeLocation>(); | 227 var o = new core.List<api.KeyRangeLocation>(); |
182 o.add(buildKeyRangeLocation()); | 228 o.add(buildKeyRangeLocation()); |
183 o.add(buildKeyRangeLocation()); | 229 o.add(buildKeyRangeLocation()); |
184 return o; | 230 return o; |
185 } | 231 } |
186 | 232 |
187 checkUnnamed3139(core.List<api.KeyRangeLocation> o) { | 233 checkUnnamed2974(core.List<api.KeyRangeLocation> o) { |
188 unittest.expect(o, unittest.hasLength(2)); | 234 unittest.expect(o, unittest.hasLength(2)); |
189 checkKeyRangeLocation(o[0]); | 235 checkKeyRangeLocation(o[0]); |
190 checkKeyRangeLocation(o[1]); | 236 checkKeyRangeLocation(o[1]); |
191 } | 237 } |
192 | 238 |
193 buildUnnamed3140() { | 239 buildUnnamed2975() { |
194 var o = new core.List<api.StreamLocation>(); | 240 var o = new core.List<api.StreamLocation>(); |
195 o.add(buildStreamLocation()); | 241 o.add(buildStreamLocation()); |
196 o.add(buildStreamLocation()); | 242 o.add(buildStreamLocation()); |
197 return o; | 243 return o; |
198 } | 244 } |
199 | 245 |
200 checkUnnamed3140(core.List<api.StreamLocation> o) { | 246 checkUnnamed2975(core.List<api.StreamLocation> o) { |
201 unittest.expect(o, unittest.hasLength(2)); | 247 unittest.expect(o, unittest.hasLength(2)); |
202 checkStreamLocation(o[0]); | 248 checkStreamLocation(o[0]); |
203 checkStreamLocation(o[1]); | 249 checkStreamLocation(o[1]); |
204 } | 250 } |
205 | 251 |
206 buildUnnamed3141() { | 252 buildUnnamed2976() { |
207 var o = new core.List<api.StateFamilyConfig>(); | 253 var o = new core.List<api.StateFamilyConfig>(); |
208 o.add(buildStateFamilyConfig()); | 254 o.add(buildStateFamilyConfig()); |
209 o.add(buildStateFamilyConfig()); | 255 o.add(buildStateFamilyConfig()); |
210 return o; | 256 return o; |
211 } | 257 } |
212 | 258 |
213 checkUnnamed3141(core.List<api.StateFamilyConfig> o) { | 259 checkUnnamed2976(core.List<api.StateFamilyConfig> o) { |
214 unittest.expect(o, unittest.hasLength(2)); | 260 unittest.expect(o, unittest.hasLength(2)); |
215 checkStateFamilyConfig(o[0]); | 261 checkStateFamilyConfig(o[0]); |
216 checkStateFamilyConfig(o[1]); | 262 checkStateFamilyConfig(o[1]); |
217 } | 263 } |
218 | 264 |
219 core.int buildCounterComputationTopology = 0; | 265 core.int buildCounterComputationTopology = 0; |
220 buildComputationTopology() { | 266 buildComputationTopology() { |
221 var o = new api.ComputationTopology(); | 267 var o = new api.ComputationTopology(); |
222 buildCounterComputationTopology++; | 268 buildCounterComputationTopology++; |
223 if (buildCounterComputationTopology < 3) { | 269 if (buildCounterComputationTopology < 3) { |
224 o.computationId = "foo"; | 270 o.computationId = "foo"; |
225 o.inputs = buildUnnamed3138(); | 271 o.inputs = buildUnnamed2973(); |
226 o.keyRanges = buildUnnamed3139(); | 272 o.keyRanges = buildUnnamed2974(); |
227 o.outputs = buildUnnamed3140(); | 273 o.outputs = buildUnnamed2975(); |
228 o.stateFamilies = buildUnnamed3141(); | 274 o.stateFamilies = buildUnnamed2976(); |
229 o.systemStageName = "foo"; | 275 o.systemStageName = "foo"; |
230 o.userStageName = "foo"; | 276 o.userStageName = "foo"; |
231 } | 277 } |
232 buildCounterComputationTopology--; | 278 buildCounterComputationTopology--; |
233 return o; | 279 return o; |
234 } | 280 } |
235 | 281 |
236 checkComputationTopology(api.ComputationTopology o) { | 282 checkComputationTopology(api.ComputationTopology o) { |
237 buildCounterComputationTopology++; | 283 buildCounterComputationTopology++; |
238 if (buildCounterComputationTopology < 3) { | 284 if (buildCounterComputationTopology < 3) { |
239 unittest.expect(o.computationId, unittest.equals('foo')); | 285 unittest.expect(o.computationId, unittest.equals('foo')); |
240 checkUnnamed3138(o.inputs); | 286 checkUnnamed2973(o.inputs); |
241 checkUnnamed3139(o.keyRanges); | 287 checkUnnamed2974(o.keyRanges); |
242 checkUnnamed3140(o.outputs); | 288 checkUnnamed2975(o.outputs); |
243 checkUnnamed3141(o.stateFamilies); | 289 checkUnnamed2976(o.stateFamilies); |
244 unittest.expect(o.systemStageName, unittest.equals('foo')); | 290 unittest.expect(o.systemStageName, unittest.equals('foo')); |
245 unittest.expect(o.userStageName, unittest.equals('foo')); | 291 unittest.expect(o.userStageName, unittest.equals('foo')); |
246 } | 292 } |
247 buildCounterComputationTopology--; | 293 buildCounterComputationTopology--; |
248 } | 294 } |
249 | 295 |
250 core.int buildCounterConcatPosition = 0; | 296 core.int buildCounterConcatPosition = 0; |
251 buildConcatPosition() { | 297 buildConcatPosition() { |
252 var o = new api.ConcatPosition(); | 298 var o = new api.ConcatPosition(); |
253 buildCounterConcatPosition++; | 299 buildCounterConcatPosition++; |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 checkIntegerMean(o.integerMean); | 431 checkIntegerMean(o.integerMean); |
386 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')); | 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')); |
387 checkNameAndKind(o.nameAndKind); | 433 checkNameAndKind(o.nameAndKind); |
388 unittest.expect(o.shortId, unittest.equals('foo')); | 434 unittest.expect(o.shortId, unittest.equals('foo')); |
389 checkStringList(o.stringList); | 435 checkStringList(o.stringList); |
390 checkCounterStructuredNameAndMetadata(o.structuredNameAndMetadata); | 436 checkCounterStructuredNameAndMetadata(o.structuredNameAndMetadata); |
391 } | 437 } |
392 buildCounterCounterUpdate--; | 438 buildCounterCounterUpdate--; |
393 } | 439 } |
394 | 440 |
395 buildUnnamed3142() { | 441 buildUnnamed2977() { |
396 var o = new core.Map<core.String, core.String>(); | 442 var o = new core.Map<core.String, core.String>(); |
397 o["x"] = "foo"; | 443 o["x"] = "foo"; |
398 o["y"] = "foo"; | 444 o["y"] = "foo"; |
399 return o; | 445 return o; |
400 } | 446 } |
401 | 447 |
402 checkUnnamed3142(core.Map<core.String, core.String> o) { | 448 checkUnnamed2977(core.Map<core.String, core.String> o) { |
403 unittest.expect(o, unittest.hasLength(2)); | 449 unittest.expect(o, unittest.hasLength(2)); |
404 unittest.expect(o["x"], unittest.equals('foo')); | 450 unittest.expect(o["x"], unittest.equals('foo')); |
405 unittest.expect(o["y"], unittest.equals('foo')); | 451 unittest.expect(o["y"], unittest.equals('foo')); |
406 } | 452 } |
407 | 453 |
408 core.int buildCounterCreateJobFromTemplateRequest = 0; | 454 core.int buildCounterCreateJobFromTemplateRequest = 0; |
409 buildCreateJobFromTemplateRequest() { | 455 buildCreateJobFromTemplateRequest() { |
410 var o = new api.CreateJobFromTemplateRequest(); | 456 var o = new api.CreateJobFromTemplateRequest(); |
411 buildCounterCreateJobFromTemplateRequest++; | 457 buildCounterCreateJobFromTemplateRequest++; |
412 if (buildCounterCreateJobFromTemplateRequest < 3) { | 458 if (buildCounterCreateJobFromTemplateRequest < 3) { |
413 o.environment = buildRuntimeEnvironment(); | 459 o.environment = buildRuntimeEnvironment(); |
414 o.gcsPath = "foo"; | 460 o.gcsPath = "foo"; |
415 o.jobName = "foo"; | 461 o.jobName = "foo"; |
416 o.parameters = buildUnnamed3142(); | 462 o.parameters = buildUnnamed2977(); |
417 } | 463 } |
418 buildCounterCreateJobFromTemplateRequest--; | 464 buildCounterCreateJobFromTemplateRequest--; |
419 return o; | 465 return o; |
420 } | 466 } |
421 | 467 |
422 checkCreateJobFromTemplateRequest(api.CreateJobFromTemplateRequest o) { | 468 checkCreateJobFromTemplateRequest(api.CreateJobFromTemplateRequest o) { |
423 buildCounterCreateJobFromTemplateRequest++; | 469 buildCounterCreateJobFromTemplateRequest++; |
424 if (buildCounterCreateJobFromTemplateRequest < 3) { | 470 if (buildCounterCreateJobFromTemplateRequest < 3) { |
425 checkRuntimeEnvironment(o.environment); | 471 checkRuntimeEnvironment(o.environment); |
426 unittest.expect(o.gcsPath, unittest.equals('foo')); | 472 unittest.expect(o.gcsPath, unittest.equals('foo')); |
427 unittest.expect(o.jobName, unittest.equals('foo')); | 473 unittest.expect(o.jobName, unittest.equals('foo')); |
428 checkUnnamed3142(o.parameters); | 474 checkUnnamed2977(o.parameters); |
429 } | 475 } |
430 buildCounterCreateJobFromTemplateRequest--; | 476 buildCounterCreateJobFromTemplateRequest--; |
431 } | 477 } |
432 | 478 |
433 core.int buildCounterCustomSourceLocation = 0; | 479 core.int buildCounterCustomSourceLocation = 0; |
434 buildCustomSourceLocation() { | 480 buildCustomSourceLocation() { |
435 var o = new api.CustomSourceLocation(); | 481 var o = new api.CustomSourceLocation(); |
436 buildCounterCustomSourceLocation++; | 482 buildCounterCustomSourceLocation++; |
437 if (buildCounterCustomSourceLocation < 3) { | 483 if (buildCounterCustomSourceLocation < 3) { |
438 o.stateful = true; | 484 o.stateful = true; |
439 } | 485 } |
440 buildCounterCustomSourceLocation--; | 486 buildCounterCustomSourceLocation--; |
441 return o; | 487 return o; |
442 } | 488 } |
443 | 489 |
444 checkCustomSourceLocation(api.CustomSourceLocation o) { | 490 checkCustomSourceLocation(api.CustomSourceLocation o) { |
445 buildCounterCustomSourceLocation++; | 491 buildCounterCustomSourceLocation++; |
446 if (buildCounterCustomSourceLocation < 3) { | 492 if (buildCounterCustomSourceLocation < 3) { |
447 unittest.expect(o.stateful, unittest.isTrue); | 493 unittest.expect(o.stateful, unittest.isTrue); |
448 } | 494 } |
449 buildCounterCustomSourceLocation--; | 495 buildCounterCustomSourceLocation--; |
450 } | 496 } |
451 | 497 |
452 buildUnnamed3143() { | 498 buildUnnamed2978() { |
453 var o = new core.List<core.String>(); | 499 var o = new core.List<core.String>(); |
454 o.add("foo"); | 500 o.add("foo"); |
455 o.add("foo"); | 501 o.add("foo"); |
456 return o; | 502 return o; |
457 } | 503 } |
458 | 504 |
459 checkUnnamed3143(core.List<core.String> o) { | 505 checkUnnamed2978(core.List<core.String> o) { |
460 unittest.expect(o, unittest.hasLength(2)); | 506 unittest.expect(o, unittest.hasLength(2)); |
461 unittest.expect(o[0], unittest.equals('foo')); | 507 unittest.expect(o[0], unittest.equals('foo')); |
462 unittest.expect(o[1], unittest.equals('foo')); | 508 unittest.expect(o[1], unittest.equals('foo')); |
463 } | 509 } |
464 | 510 |
465 core.int buildCounterDataDiskAssignment = 0; | 511 core.int buildCounterDataDiskAssignment = 0; |
466 buildDataDiskAssignment() { | 512 buildDataDiskAssignment() { |
467 var o = new api.DataDiskAssignment(); | 513 var o = new api.DataDiskAssignment(); |
468 buildCounterDataDiskAssignment++; | 514 buildCounterDataDiskAssignment++; |
469 if (buildCounterDataDiskAssignment < 3) { | 515 if (buildCounterDataDiskAssignment < 3) { |
470 o.dataDisks = buildUnnamed3143(); | 516 o.dataDisks = buildUnnamed2978(); |
471 o.vmInstance = "foo"; | 517 o.vmInstance = "foo"; |
472 } | 518 } |
473 buildCounterDataDiskAssignment--; | 519 buildCounterDataDiskAssignment--; |
474 return o; | 520 return o; |
475 } | 521 } |
476 | 522 |
477 checkDataDiskAssignment(api.DataDiskAssignment o) { | 523 checkDataDiskAssignment(api.DataDiskAssignment o) { |
478 buildCounterDataDiskAssignment++; | 524 buildCounterDataDiskAssignment++; |
479 if (buildCounterDataDiskAssignment < 3) { | 525 if (buildCounterDataDiskAssignment < 3) { |
480 checkUnnamed3143(o.dataDisks); | 526 checkUnnamed2978(o.dataDisks); |
481 unittest.expect(o.vmInstance, unittest.equals('foo')); | 527 unittest.expect(o.vmInstance, unittest.equals('foo')); |
482 } | 528 } |
483 buildCounterDataDiskAssignment--; | 529 buildCounterDataDiskAssignment--; |
484 } | 530 } |
485 | 531 |
486 core.int buildCounterDerivedSource = 0; | 532 core.int buildCounterDerivedSource = 0; |
487 buildDerivedSource() { | 533 buildDerivedSource() { |
488 var o = new api.DerivedSource(); | 534 var o = new api.DerivedSource(); |
489 buildCounterDerivedSource++; | 535 buildCounterDerivedSource++; |
490 if (buildCounterDerivedSource < 3) { | 536 if (buildCounterDerivedSource < 3) { |
(...skipping 29 matching lines...) Expand all Loading... |
520 checkDisk(api.Disk o) { | 566 checkDisk(api.Disk o) { |
521 buildCounterDisk++; | 567 buildCounterDisk++; |
522 if (buildCounterDisk < 3) { | 568 if (buildCounterDisk < 3) { |
523 unittest.expect(o.diskType, unittest.equals('foo')); | 569 unittest.expect(o.diskType, unittest.equals('foo')); |
524 unittest.expect(o.mountPoint, unittest.equals('foo')); | 570 unittest.expect(o.mountPoint, unittest.equals('foo')); |
525 unittest.expect(o.sizeGb, unittest.equals(42)); | 571 unittest.expect(o.sizeGb, unittest.equals(42)); |
526 } | 572 } |
527 buildCounterDisk--; | 573 buildCounterDisk--; |
528 } | 574 } |
529 | 575 |
| 576 core.int buildCounterDisplayData = 0; |
| 577 buildDisplayData() { |
| 578 var o = new api.DisplayData(); |
| 579 buildCounterDisplayData++; |
| 580 if (buildCounterDisplayData < 3) { |
| 581 o.boolValue = true; |
| 582 o.durationValue = "foo"; |
| 583 o.floatValue = 42.0; |
| 584 o.int64Value = "foo"; |
| 585 o.javaClassValue = "foo"; |
| 586 o.key = "foo"; |
| 587 o.label = "foo"; |
| 588 o.namespace = "foo"; |
| 589 o.shortStrValue = "foo"; |
| 590 o.strValue = "foo"; |
| 591 o.timestampValue = "foo"; |
| 592 o.url = "foo"; |
| 593 } |
| 594 buildCounterDisplayData--; |
| 595 return o; |
| 596 } |
| 597 |
| 598 checkDisplayData(api.DisplayData o) { |
| 599 buildCounterDisplayData++; |
| 600 if (buildCounterDisplayData < 3) { |
| 601 unittest.expect(o.boolValue, unittest.isTrue); |
| 602 unittest.expect(o.durationValue, unittest.equals('foo')); |
| 603 unittest.expect(o.floatValue, unittest.equals(42.0)); |
| 604 unittest.expect(o.int64Value, unittest.equals('foo')); |
| 605 unittest.expect(o.javaClassValue, unittest.equals('foo')); |
| 606 unittest.expect(o.key, unittest.equals('foo')); |
| 607 unittest.expect(o.label, unittest.equals('foo')); |
| 608 unittest.expect(o.namespace, unittest.equals('foo')); |
| 609 unittest.expect(o.shortStrValue, unittest.equals('foo')); |
| 610 unittest.expect(o.strValue, unittest.equals('foo')); |
| 611 unittest.expect(o.timestampValue, unittest.equals('foo')); |
| 612 unittest.expect(o.url, unittest.equals('foo')); |
| 613 } |
| 614 buildCounterDisplayData--; |
| 615 } |
| 616 |
530 core.int buildCounterDistributionUpdate = 0; | 617 core.int buildCounterDistributionUpdate = 0; |
531 buildDistributionUpdate() { | 618 buildDistributionUpdate() { |
532 var o = new api.DistributionUpdate(); | 619 var o = new api.DistributionUpdate(); |
533 buildCounterDistributionUpdate++; | 620 buildCounterDistributionUpdate++; |
534 if (buildCounterDistributionUpdate < 3) { | 621 if (buildCounterDistributionUpdate < 3) { |
535 o.count = buildSplitInt64(); | 622 o.count = buildSplitInt64(); |
536 o.max = buildSplitInt64(); | 623 o.max = buildSplitInt64(); |
537 o.min = buildSplitInt64(); | 624 o.min = buildSplitInt64(); |
538 o.sum = buildSplitInt64(); | 625 o.sum = buildSplitInt64(); |
539 o.sumOfSquares = 42.0; | 626 o.sumOfSquares = 42.0; |
(...skipping 28 matching lines...) Expand all Loading... |
568 | 655 |
569 checkDynamicSourceSplit(api.DynamicSourceSplit o) { | 656 checkDynamicSourceSplit(api.DynamicSourceSplit o) { |
570 buildCounterDynamicSourceSplit++; | 657 buildCounterDynamicSourceSplit++; |
571 if (buildCounterDynamicSourceSplit < 3) { | 658 if (buildCounterDynamicSourceSplit < 3) { |
572 checkDerivedSource(o.primary); | 659 checkDerivedSource(o.primary); |
573 checkDerivedSource(o.residual); | 660 checkDerivedSource(o.residual); |
574 } | 661 } |
575 buildCounterDynamicSourceSplit--; | 662 buildCounterDynamicSourceSplit--; |
576 } | 663 } |
577 | 664 |
578 buildUnnamed3144() { | 665 buildUnnamed2979() { |
579 var o = new core.List<core.String>(); | 666 var o = new core.List<core.String>(); |
580 o.add("foo"); | 667 o.add("foo"); |
581 o.add("foo"); | 668 o.add("foo"); |
582 return o; | 669 return o; |
583 } | 670 } |
584 | 671 |
585 checkUnnamed3144(core.List<core.String> o) { | 672 checkUnnamed2979(core.List<core.String> o) { |
586 unittest.expect(o, unittest.hasLength(2)); | 673 unittest.expect(o, unittest.hasLength(2)); |
587 unittest.expect(o[0], unittest.equals('foo')); | 674 unittest.expect(o[0], unittest.equals('foo')); |
588 unittest.expect(o[1], unittest.equals('foo')); | 675 unittest.expect(o[1], unittest.equals('foo')); |
589 } | 676 } |
590 | 677 |
591 buildUnnamed3145() { | 678 buildUnnamed2980() { |
592 var o = new core.Map<core.String, core.Object>(); | 679 var o = new core.Map<core.String, core.Object>(); |
593 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 680 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
594 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 681 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
595 return o; | 682 return o; |
596 } | 683 } |
597 | 684 |
598 checkUnnamed3145(core.Map<core.String, core.Object> o) { | 685 checkUnnamed2980(core.Map<core.String, core.Object> o) { |
599 unittest.expect(o, unittest.hasLength(2)); | 686 unittest.expect(o, unittest.hasLength(2)); |
600 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')); | 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')); |
601 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')); | 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')); |
602 } | 689 } |
603 | 690 |
604 buildUnnamed3146() { | 691 buildUnnamed2981() { |
605 var o = new core.Map<core.String, core.Object>(); | 692 var o = new core.Map<core.String, core.Object>(); |
606 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 693 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
607 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 694 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
608 return o; | 695 return o; |
609 } | 696 } |
610 | 697 |
611 checkUnnamed3146(core.Map<core.String, core.Object> o) { | 698 checkUnnamed2981(core.Map<core.String, core.Object> o) { |
612 unittest.expect(o, unittest.hasLength(2)); | 699 unittest.expect(o, unittest.hasLength(2)); |
613 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')); | 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')); |
614 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')); | 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')); |
615 } | 702 } |
616 | 703 |
617 buildUnnamed3147() { | 704 buildUnnamed2982() { |
618 var o = new core.Map<core.String, core.Object>(); | 705 var o = new core.Map<core.String, core.Object>(); |
619 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 706 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
620 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 707 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
621 return o; | 708 return o; |
622 } | 709 } |
623 | 710 |
624 checkUnnamed3147(core.Map<core.String, core.Object> o) { | 711 checkUnnamed2982(core.Map<core.String, core.Object> o) { |
625 unittest.expect(o, unittest.hasLength(2)); | 712 unittest.expect(o, unittest.hasLength(2)); |
626 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')); | 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')); |
627 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')); | 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')); |
628 } | 715 } |
629 | 716 |
630 buildUnnamed3148() { | 717 buildUnnamed2983() { |
631 var o = new core.Map<core.String, core.Object>(); | 718 var o = new core.Map<core.String, core.Object>(); |
632 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 719 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
633 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 720 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
634 return o; | 721 return o; |
635 } | 722 } |
636 | 723 |
637 checkUnnamed3148(core.Map<core.String, core.Object> o) { | 724 checkUnnamed2983(core.Map<core.String, core.Object> o) { |
638 unittest.expect(o, unittest.hasLength(2)); | 725 unittest.expect(o, unittest.hasLength(2)); |
639 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')); | 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')); |
640 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')); | 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')); |
641 } | 728 } |
642 | 729 |
643 buildUnnamed3149() { | 730 buildUnnamed2984() { |
644 var o = new core.List<api.WorkerPool>(); | 731 var o = new core.List<api.WorkerPool>(); |
645 o.add(buildWorkerPool()); | 732 o.add(buildWorkerPool()); |
646 o.add(buildWorkerPool()); | 733 o.add(buildWorkerPool()); |
647 return o; | 734 return o; |
648 } | 735 } |
649 | 736 |
650 checkUnnamed3149(core.List<api.WorkerPool> o) { | 737 checkUnnamed2984(core.List<api.WorkerPool> o) { |
651 unittest.expect(o, unittest.hasLength(2)); | 738 unittest.expect(o, unittest.hasLength(2)); |
652 checkWorkerPool(o[0]); | 739 checkWorkerPool(o[0]); |
653 checkWorkerPool(o[1]); | 740 checkWorkerPool(o[1]); |
654 } | 741 } |
655 | 742 |
656 core.int buildCounterEnvironment = 0; | 743 core.int buildCounterEnvironment = 0; |
657 buildEnvironment() { | 744 buildEnvironment() { |
658 var o = new api.Environment(); | 745 var o = new api.Environment(); |
659 buildCounterEnvironment++; | 746 buildCounterEnvironment++; |
660 if (buildCounterEnvironment < 3) { | 747 if (buildCounterEnvironment < 3) { |
661 o.clusterManagerApiService = "foo"; | 748 o.clusterManagerApiService = "foo"; |
662 o.dataset = "foo"; | 749 o.dataset = "foo"; |
663 o.experiments = buildUnnamed3144(); | 750 o.experiments = buildUnnamed2979(); |
664 o.internalExperiments = buildUnnamed3145(); | 751 o.internalExperiments = buildUnnamed2980(); |
665 o.sdkPipelineOptions = buildUnnamed3146(); | 752 o.sdkPipelineOptions = buildUnnamed2981(); |
666 o.serviceAccountEmail = "foo"; | 753 o.serviceAccountEmail = "foo"; |
667 o.tempStoragePrefix = "foo"; | 754 o.tempStoragePrefix = "foo"; |
668 o.userAgent = buildUnnamed3147(); | 755 o.userAgent = buildUnnamed2982(); |
669 o.version = buildUnnamed3148(); | 756 o.version = buildUnnamed2983(); |
670 o.workerPools = buildUnnamed3149(); | 757 o.workerPools = buildUnnamed2984(); |
671 } | 758 } |
672 buildCounterEnvironment--; | 759 buildCounterEnvironment--; |
673 return o; | 760 return o; |
674 } | 761 } |
675 | 762 |
676 checkEnvironment(api.Environment o) { | 763 checkEnvironment(api.Environment o) { |
677 buildCounterEnvironment++; | 764 buildCounterEnvironment++; |
678 if (buildCounterEnvironment < 3) { | 765 if (buildCounterEnvironment < 3) { |
679 unittest.expect(o.clusterManagerApiService, unittest.equals('foo')); | 766 unittest.expect(o.clusterManagerApiService, unittest.equals('foo')); |
680 unittest.expect(o.dataset, unittest.equals('foo')); | 767 unittest.expect(o.dataset, unittest.equals('foo')); |
681 checkUnnamed3144(o.experiments); | 768 checkUnnamed2979(o.experiments); |
682 checkUnnamed3145(o.internalExperiments); | 769 checkUnnamed2980(o.internalExperiments); |
683 checkUnnamed3146(o.sdkPipelineOptions); | 770 checkUnnamed2981(o.sdkPipelineOptions); |
684 unittest.expect(o.serviceAccountEmail, unittest.equals('foo')); | 771 unittest.expect(o.serviceAccountEmail, unittest.equals('foo')); |
685 unittest.expect(o.tempStoragePrefix, unittest.equals('foo')); | 772 unittest.expect(o.tempStoragePrefix, unittest.equals('foo')); |
686 checkUnnamed3147(o.userAgent); | 773 checkUnnamed2982(o.userAgent); |
687 checkUnnamed3148(o.version); | 774 checkUnnamed2983(o.version); |
688 checkUnnamed3149(o.workerPools); | 775 checkUnnamed2984(o.workerPools); |
689 } | 776 } |
690 buildCounterEnvironment--; | 777 buildCounterEnvironment--; |
691 } | 778 } |
692 | 779 |
| 780 buildUnnamed2985() { |
| 781 var o = new core.List<api.ComponentSource>(); |
| 782 o.add(buildComponentSource()); |
| 783 o.add(buildComponentSource()); |
| 784 return o; |
| 785 } |
| 786 |
| 787 checkUnnamed2985(core.List<api.ComponentSource> o) { |
| 788 unittest.expect(o, unittest.hasLength(2)); |
| 789 checkComponentSource(o[0]); |
| 790 checkComponentSource(o[1]); |
| 791 } |
| 792 |
| 793 buildUnnamed2986() { |
| 794 var o = new core.List<api.ComponentTransform>(); |
| 795 o.add(buildComponentTransform()); |
| 796 o.add(buildComponentTransform()); |
| 797 return o; |
| 798 } |
| 799 |
| 800 checkUnnamed2986(core.List<api.ComponentTransform> o) { |
| 801 unittest.expect(o, unittest.hasLength(2)); |
| 802 checkComponentTransform(o[0]); |
| 803 checkComponentTransform(o[1]); |
| 804 } |
| 805 |
| 806 buildUnnamed2987() { |
| 807 var o = new core.List<api.StageSource>(); |
| 808 o.add(buildStageSource()); |
| 809 o.add(buildStageSource()); |
| 810 return o; |
| 811 } |
| 812 |
| 813 checkUnnamed2987(core.List<api.StageSource> o) { |
| 814 unittest.expect(o, unittest.hasLength(2)); |
| 815 checkStageSource(o[0]); |
| 816 checkStageSource(o[1]); |
| 817 } |
| 818 |
| 819 buildUnnamed2988() { |
| 820 var o = new core.List<api.StageSource>(); |
| 821 o.add(buildStageSource()); |
| 822 o.add(buildStageSource()); |
| 823 return o; |
| 824 } |
| 825 |
| 826 checkUnnamed2988(core.List<api.StageSource> o) { |
| 827 unittest.expect(o, unittest.hasLength(2)); |
| 828 checkStageSource(o[0]); |
| 829 checkStageSource(o[1]); |
| 830 } |
| 831 |
| 832 core.int buildCounterExecutionStageSummary = 0; |
| 833 buildExecutionStageSummary() { |
| 834 var o = new api.ExecutionStageSummary(); |
| 835 buildCounterExecutionStageSummary++; |
| 836 if (buildCounterExecutionStageSummary < 3) { |
| 837 o.componentSource = buildUnnamed2985(); |
| 838 o.componentTransform = buildUnnamed2986(); |
| 839 o.id = "foo"; |
| 840 o.inputSource = buildUnnamed2987(); |
| 841 o.kind = "foo"; |
| 842 o.name = "foo"; |
| 843 o.outputSource = buildUnnamed2988(); |
| 844 } |
| 845 buildCounterExecutionStageSummary--; |
| 846 return o; |
| 847 } |
| 848 |
| 849 checkExecutionStageSummary(api.ExecutionStageSummary o) { |
| 850 buildCounterExecutionStageSummary++; |
| 851 if (buildCounterExecutionStageSummary < 3) { |
| 852 checkUnnamed2985(o.componentSource); |
| 853 checkUnnamed2986(o.componentTransform); |
| 854 unittest.expect(o.id, unittest.equals('foo')); |
| 855 checkUnnamed2987(o.inputSource); |
| 856 unittest.expect(o.kind, unittest.equals('foo')); |
| 857 unittest.expect(o.name, unittest.equals('foo')); |
| 858 checkUnnamed2988(o.outputSource); |
| 859 } |
| 860 buildCounterExecutionStageSummary--; |
| 861 } |
| 862 |
693 core.int buildCounterFailedLocation = 0; | 863 core.int buildCounterFailedLocation = 0; |
694 buildFailedLocation() { | 864 buildFailedLocation() { |
695 var o = new api.FailedLocation(); | 865 var o = new api.FailedLocation(); |
696 buildCounterFailedLocation++; | 866 buildCounterFailedLocation++; |
697 if (buildCounterFailedLocation < 3) { | 867 if (buildCounterFailedLocation < 3) { |
698 o.name = "foo"; | 868 o.name = "foo"; |
699 } | 869 } |
700 buildCounterFailedLocation--; | 870 buildCounterFailedLocation--; |
701 return o; | 871 return o; |
702 } | 872 } |
703 | 873 |
704 checkFailedLocation(api.FailedLocation o) { | 874 checkFailedLocation(api.FailedLocation o) { |
705 buildCounterFailedLocation++; | 875 buildCounterFailedLocation++; |
706 if (buildCounterFailedLocation < 3) { | 876 if (buildCounterFailedLocation < 3) { |
707 unittest.expect(o.name, unittest.equals('foo')); | 877 unittest.expect(o.name, unittest.equals('foo')); |
708 } | 878 } |
709 buildCounterFailedLocation--; | 879 buildCounterFailedLocation--; |
710 } | 880 } |
711 | 881 |
712 buildUnnamed3150() { | 882 buildUnnamed2989() { |
713 var o = new core.List<api.InstructionInput>(); | 883 var o = new core.List<api.InstructionInput>(); |
714 o.add(buildInstructionInput()); | 884 o.add(buildInstructionInput()); |
715 o.add(buildInstructionInput()); | 885 o.add(buildInstructionInput()); |
716 return o; | 886 return o; |
717 } | 887 } |
718 | 888 |
719 checkUnnamed3150(core.List<api.InstructionInput> o) { | 889 checkUnnamed2989(core.List<api.InstructionInput> o) { |
720 unittest.expect(o, unittest.hasLength(2)); | 890 unittest.expect(o, unittest.hasLength(2)); |
721 checkInstructionInput(o[0]); | 891 checkInstructionInput(o[0]); |
722 checkInstructionInput(o[1]); | 892 checkInstructionInput(o[1]); |
723 } | 893 } |
724 | 894 |
725 core.int buildCounterFlattenInstruction = 0; | 895 core.int buildCounterFlattenInstruction = 0; |
726 buildFlattenInstruction() { | 896 buildFlattenInstruction() { |
727 var o = new api.FlattenInstruction(); | 897 var o = new api.FlattenInstruction(); |
728 buildCounterFlattenInstruction++; | 898 buildCounterFlattenInstruction++; |
729 if (buildCounterFlattenInstruction < 3) { | 899 if (buildCounterFlattenInstruction < 3) { |
730 o.inputs = buildUnnamed3150(); | 900 o.inputs = buildUnnamed2989(); |
731 } | 901 } |
732 buildCounterFlattenInstruction--; | 902 buildCounterFlattenInstruction--; |
733 return o; | 903 return o; |
734 } | 904 } |
735 | 905 |
736 checkFlattenInstruction(api.FlattenInstruction o) { | 906 checkFlattenInstruction(api.FlattenInstruction o) { |
737 buildCounterFlattenInstruction++; | 907 buildCounterFlattenInstruction++; |
738 if (buildCounterFlattenInstruction < 3) { | 908 if (buildCounterFlattenInstruction < 3) { |
739 checkUnnamed3150(o.inputs); | 909 checkUnnamed2989(o.inputs); |
740 } | 910 } |
741 buildCounterFlattenInstruction--; | 911 buildCounterFlattenInstruction--; |
742 } | 912 } |
743 | 913 |
744 buildUnnamed3151() { | 914 buildUnnamed2990() { |
745 var o = new core.List<core.double>(); | 915 var o = new core.List<core.double>(); |
746 o.add(42.0); | 916 o.add(42.0); |
747 o.add(42.0); | 917 o.add(42.0); |
748 return o; | 918 return o; |
749 } | 919 } |
750 | 920 |
751 checkUnnamed3151(core.List<core.double> o) { | 921 checkUnnamed2990(core.List<core.double> o) { |
752 unittest.expect(o, unittest.hasLength(2)); | 922 unittest.expect(o, unittest.hasLength(2)); |
753 unittest.expect(o[0], unittest.equals(42.0)); | 923 unittest.expect(o[0], unittest.equals(42.0)); |
754 unittest.expect(o[1], unittest.equals(42.0)); | 924 unittest.expect(o[1], unittest.equals(42.0)); |
755 } | 925 } |
756 | 926 |
757 core.int buildCounterFloatingPointList = 0; | 927 core.int buildCounterFloatingPointList = 0; |
758 buildFloatingPointList() { | 928 buildFloatingPointList() { |
759 var o = new api.FloatingPointList(); | 929 var o = new api.FloatingPointList(); |
760 buildCounterFloatingPointList++; | 930 buildCounterFloatingPointList++; |
761 if (buildCounterFloatingPointList < 3) { | 931 if (buildCounterFloatingPointList < 3) { |
762 o.elements = buildUnnamed3151(); | 932 o.elements = buildUnnamed2990(); |
763 } | 933 } |
764 buildCounterFloatingPointList--; | 934 buildCounterFloatingPointList--; |
765 return o; | 935 return o; |
766 } | 936 } |
767 | 937 |
768 checkFloatingPointList(api.FloatingPointList o) { | 938 checkFloatingPointList(api.FloatingPointList o) { |
769 buildCounterFloatingPointList++; | 939 buildCounterFloatingPointList++; |
770 if (buildCounterFloatingPointList < 3) { | 940 if (buildCounterFloatingPointList < 3) { |
771 checkUnnamed3151(o.elements); | 941 checkUnnamed2990(o.elements); |
772 } | 942 } |
773 buildCounterFloatingPointList--; | 943 buildCounterFloatingPointList--; |
774 } | 944 } |
775 | 945 |
776 core.int buildCounterFloatingPointMean = 0; | 946 core.int buildCounterFloatingPointMean = 0; |
777 buildFloatingPointMean() { | 947 buildFloatingPointMean() { |
778 var o = new api.FloatingPointMean(); | 948 var o = new api.FloatingPointMean(); |
779 buildCounterFloatingPointMean++; | 949 buildCounterFloatingPointMean++; |
780 if (buildCounterFloatingPointMean < 3) { | 950 if (buildCounterFloatingPointMean < 3) { |
781 o.count = buildSplitInt64(); | 951 o.count = buildSplitInt64(); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
827 } | 997 } |
828 | 998 |
829 checkGetDebugConfigResponse(api.GetDebugConfigResponse o) { | 999 checkGetDebugConfigResponse(api.GetDebugConfigResponse o) { |
830 buildCounterGetDebugConfigResponse++; | 1000 buildCounterGetDebugConfigResponse++; |
831 if (buildCounterGetDebugConfigResponse < 3) { | 1001 if (buildCounterGetDebugConfigResponse < 3) { |
832 unittest.expect(o.config, unittest.equals('foo')); | 1002 unittest.expect(o.config, unittest.equals('foo')); |
833 } | 1003 } |
834 buildCounterGetDebugConfigResponse--; | 1004 buildCounterGetDebugConfigResponse--; |
835 } | 1005 } |
836 | 1006 |
| 1007 core.int buildCounterGetTemplateResponse = 0; |
| 1008 buildGetTemplateResponse() { |
| 1009 var o = new api.GetTemplateResponse(); |
| 1010 buildCounterGetTemplateResponse++; |
| 1011 if (buildCounterGetTemplateResponse < 3) { |
| 1012 o.metadata = buildTemplateMetadata(); |
| 1013 o.status = buildStatus(); |
| 1014 } |
| 1015 buildCounterGetTemplateResponse--; |
| 1016 return o; |
| 1017 } |
| 1018 |
| 1019 checkGetTemplateResponse(api.GetTemplateResponse o) { |
| 1020 buildCounterGetTemplateResponse++; |
| 1021 if (buildCounterGetTemplateResponse < 3) { |
| 1022 checkTemplateMetadata(o.metadata); |
| 1023 checkStatus(o.status); |
| 1024 } |
| 1025 buildCounterGetTemplateResponse--; |
| 1026 } |
| 1027 |
837 core.int buildCounterInstructionInput = 0; | 1028 core.int buildCounterInstructionInput = 0; |
838 buildInstructionInput() { | 1029 buildInstructionInput() { |
839 var o = new api.InstructionInput(); | 1030 var o = new api.InstructionInput(); |
840 buildCounterInstructionInput++; | 1031 buildCounterInstructionInput++; |
841 if (buildCounterInstructionInput < 3) { | 1032 if (buildCounterInstructionInput < 3) { |
842 o.outputNum = 42; | 1033 o.outputNum = 42; |
843 o.producerInstructionIndex = 42; | 1034 o.producerInstructionIndex = 42; |
844 } | 1035 } |
845 buildCounterInstructionInput--; | 1036 buildCounterInstructionInput--; |
846 return o; | 1037 return o; |
847 } | 1038 } |
848 | 1039 |
849 checkInstructionInput(api.InstructionInput o) { | 1040 checkInstructionInput(api.InstructionInput o) { |
850 buildCounterInstructionInput++; | 1041 buildCounterInstructionInput++; |
851 if (buildCounterInstructionInput < 3) { | 1042 if (buildCounterInstructionInput < 3) { |
852 unittest.expect(o.outputNum, unittest.equals(42)); | 1043 unittest.expect(o.outputNum, unittest.equals(42)); |
853 unittest.expect(o.producerInstructionIndex, unittest.equals(42)); | 1044 unittest.expect(o.producerInstructionIndex, unittest.equals(42)); |
854 } | 1045 } |
855 buildCounterInstructionInput--; | 1046 buildCounterInstructionInput--; |
856 } | 1047 } |
857 | 1048 |
858 buildUnnamed3152() { | 1049 buildUnnamed2991() { |
859 var o = new core.Map<core.String, core.Object>(); | 1050 var o = new core.Map<core.String, core.Object>(); |
860 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1051 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
861 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1052 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
862 return o; | 1053 return o; |
863 } | 1054 } |
864 | 1055 |
865 checkUnnamed3152(core.Map<core.String, core.Object> o) { | 1056 checkUnnamed2991(core.Map<core.String, core.Object> o) { |
866 unittest.expect(o, unittest.hasLength(2)); | 1057 unittest.expect(o, unittest.hasLength(2)); |
867 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')); | 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')); |
868 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')); | 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')); |
869 } | 1060 } |
870 | 1061 |
871 core.int buildCounterInstructionOutput = 0; | 1062 core.int buildCounterInstructionOutput = 0; |
872 buildInstructionOutput() { | 1063 buildInstructionOutput() { |
873 var o = new api.InstructionOutput(); | 1064 var o = new api.InstructionOutput(); |
874 buildCounterInstructionOutput++; | 1065 buildCounterInstructionOutput++; |
875 if (buildCounterInstructionOutput < 3) { | 1066 if (buildCounterInstructionOutput < 3) { |
876 o.codec = buildUnnamed3152(); | 1067 o.codec = buildUnnamed2991(); |
877 o.name = "foo"; | 1068 o.name = "foo"; |
878 o.onlyCountKeyBytes = true; | 1069 o.onlyCountKeyBytes = true; |
879 o.onlyCountValueBytes = true; | 1070 o.onlyCountValueBytes = true; |
880 o.originalName = "foo"; | 1071 o.originalName = "foo"; |
881 o.systemName = "foo"; | 1072 o.systemName = "foo"; |
882 } | 1073 } |
883 buildCounterInstructionOutput--; | 1074 buildCounterInstructionOutput--; |
884 return o; | 1075 return o; |
885 } | 1076 } |
886 | 1077 |
887 checkInstructionOutput(api.InstructionOutput o) { | 1078 checkInstructionOutput(api.InstructionOutput o) { |
888 buildCounterInstructionOutput++; | 1079 buildCounterInstructionOutput++; |
889 if (buildCounterInstructionOutput < 3) { | 1080 if (buildCounterInstructionOutput < 3) { |
890 checkUnnamed3152(o.codec); | 1081 checkUnnamed2991(o.codec); |
891 unittest.expect(o.name, unittest.equals('foo')); | 1082 unittest.expect(o.name, unittest.equals('foo')); |
892 unittest.expect(o.onlyCountKeyBytes, unittest.isTrue); | 1083 unittest.expect(o.onlyCountKeyBytes, unittest.isTrue); |
893 unittest.expect(o.onlyCountValueBytes, unittest.isTrue); | 1084 unittest.expect(o.onlyCountValueBytes, unittest.isTrue); |
894 unittest.expect(o.originalName, unittest.equals('foo')); | 1085 unittest.expect(o.originalName, unittest.equals('foo')); |
895 unittest.expect(o.systemName, unittest.equals('foo')); | 1086 unittest.expect(o.systemName, unittest.equals('foo')); |
896 } | 1087 } |
897 buildCounterInstructionOutput--; | 1088 buildCounterInstructionOutput--; |
898 } | 1089 } |
899 | 1090 |
900 buildUnnamed3153() { | 1091 buildUnnamed2992() { |
901 var o = new core.List<api.SplitInt64>(); | 1092 var o = new core.List<api.SplitInt64>(); |
902 o.add(buildSplitInt64()); | 1093 o.add(buildSplitInt64()); |
903 o.add(buildSplitInt64()); | 1094 o.add(buildSplitInt64()); |
904 return o; | 1095 return o; |
905 } | 1096 } |
906 | 1097 |
907 checkUnnamed3153(core.List<api.SplitInt64> o) { | 1098 checkUnnamed2992(core.List<api.SplitInt64> o) { |
908 unittest.expect(o, unittest.hasLength(2)); | 1099 unittest.expect(o, unittest.hasLength(2)); |
909 checkSplitInt64(o[0]); | 1100 checkSplitInt64(o[0]); |
910 checkSplitInt64(o[1]); | 1101 checkSplitInt64(o[1]); |
911 } | 1102 } |
912 | 1103 |
913 core.int buildCounterIntegerList = 0; | 1104 core.int buildCounterIntegerList = 0; |
914 buildIntegerList() { | 1105 buildIntegerList() { |
915 var o = new api.IntegerList(); | 1106 var o = new api.IntegerList(); |
916 buildCounterIntegerList++; | 1107 buildCounterIntegerList++; |
917 if (buildCounterIntegerList < 3) { | 1108 if (buildCounterIntegerList < 3) { |
918 o.elements = buildUnnamed3153(); | 1109 o.elements = buildUnnamed2992(); |
919 } | 1110 } |
920 buildCounterIntegerList--; | 1111 buildCounterIntegerList--; |
921 return o; | 1112 return o; |
922 } | 1113 } |
923 | 1114 |
924 checkIntegerList(api.IntegerList o) { | 1115 checkIntegerList(api.IntegerList o) { |
925 buildCounterIntegerList++; | 1116 buildCounterIntegerList++; |
926 if (buildCounterIntegerList < 3) { | 1117 if (buildCounterIntegerList < 3) { |
927 checkUnnamed3153(o.elements); | 1118 checkUnnamed2992(o.elements); |
928 } | 1119 } |
929 buildCounterIntegerList--; | 1120 buildCounterIntegerList--; |
930 } | 1121 } |
931 | 1122 |
932 core.int buildCounterIntegerMean = 0; | 1123 core.int buildCounterIntegerMean = 0; |
933 buildIntegerMean() { | 1124 buildIntegerMean() { |
934 var o = new api.IntegerMean(); | 1125 var o = new api.IntegerMean(); |
935 buildCounterIntegerMean++; | 1126 buildCounterIntegerMean++; |
936 if (buildCounterIntegerMean < 3) { | 1127 if (buildCounterIntegerMean < 3) { |
937 o.count = buildSplitInt64(); | 1128 o.count = buildSplitInt64(); |
938 o.sum = buildSplitInt64(); | 1129 o.sum = buildSplitInt64(); |
939 } | 1130 } |
940 buildCounterIntegerMean--; | 1131 buildCounterIntegerMean--; |
941 return o; | 1132 return o; |
942 } | 1133 } |
943 | 1134 |
944 checkIntegerMean(api.IntegerMean o) { | 1135 checkIntegerMean(api.IntegerMean o) { |
945 buildCounterIntegerMean++; | 1136 buildCounterIntegerMean++; |
946 if (buildCounterIntegerMean < 3) { | 1137 if (buildCounterIntegerMean < 3) { |
947 checkSplitInt64(o.count); | 1138 checkSplitInt64(o.count); |
948 checkSplitInt64(o.sum); | 1139 checkSplitInt64(o.sum); |
949 } | 1140 } |
950 buildCounterIntegerMean--; | 1141 buildCounterIntegerMean--; |
951 } | 1142 } |
952 | 1143 |
953 buildUnnamed3154() { | 1144 buildUnnamed2993() { |
954 var o = new core.Map<core.String, core.String>(); | 1145 var o = new core.Map<core.String, core.String>(); |
955 o["x"] = "foo"; | 1146 o["x"] = "foo"; |
956 o["y"] = "foo"; | 1147 o["y"] = "foo"; |
957 return o; | 1148 return o; |
958 } | 1149 } |
959 | 1150 |
960 checkUnnamed3154(core.Map<core.String, core.String> o) { | 1151 checkUnnamed2993(core.Map<core.String, core.String> o) { |
961 unittest.expect(o, unittest.hasLength(2)); | 1152 unittest.expect(o, unittest.hasLength(2)); |
962 unittest.expect(o["x"], unittest.equals('foo')); | 1153 unittest.expect(o["x"], unittest.equals('foo')); |
963 unittest.expect(o["y"], unittest.equals('foo')); | 1154 unittest.expect(o["y"], unittest.equals('foo')); |
964 } | 1155 } |
965 | 1156 |
966 buildUnnamed3155() { | 1157 buildUnnamed2994() { |
967 var o = new core.List<api.Step>(); | 1158 var o = new core.List<api.Step>(); |
968 o.add(buildStep()); | 1159 o.add(buildStep()); |
969 o.add(buildStep()); | 1160 o.add(buildStep()); |
970 return o; | 1161 return o; |
971 } | 1162 } |
972 | 1163 |
973 checkUnnamed3155(core.List<api.Step> o) { | 1164 checkUnnamed2994(core.List<api.Step> o) { |
974 unittest.expect(o, unittest.hasLength(2)); | 1165 unittest.expect(o, unittest.hasLength(2)); |
975 checkStep(o[0]); | 1166 checkStep(o[0]); |
976 checkStep(o[1]); | 1167 checkStep(o[1]); |
977 } | 1168 } |
978 | 1169 |
979 buildUnnamed3156() { | 1170 buildUnnamed2995() { |
980 var o = new core.List<core.String>(); | 1171 var o = new core.List<core.String>(); |
981 o.add("foo"); | 1172 o.add("foo"); |
982 o.add("foo"); | 1173 o.add("foo"); |
983 return o; | 1174 return o; |
984 } | 1175 } |
985 | 1176 |
986 checkUnnamed3156(core.List<core.String> o) { | 1177 checkUnnamed2995(core.List<core.String> o) { |
987 unittest.expect(o, unittest.hasLength(2)); | 1178 unittest.expect(o, unittest.hasLength(2)); |
988 unittest.expect(o[0], unittest.equals('foo')); | 1179 unittest.expect(o[0], unittest.equals('foo')); |
989 unittest.expect(o[1], unittest.equals('foo')); | 1180 unittest.expect(o[1], unittest.equals('foo')); |
990 } | 1181 } |
991 | 1182 |
992 buildUnnamed3157() { | 1183 buildUnnamed2996() { |
993 var o = new core.Map<core.String, core.String>(); | 1184 var o = new core.Map<core.String, core.String>(); |
994 o["x"] = "foo"; | 1185 o["x"] = "foo"; |
995 o["y"] = "foo"; | 1186 o["y"] = "foo"; |
996 return o; | 1187 return o; |
997 } | 1188 } |
998 | 1189 |
999 checkUnnamed3157(core.Map<core.String, core.String> o) { | 1190 checkUnnamed2996(core.Map<core.String, core.String> o) { |
1000 unittest.expect(o, unittest.hasLength(2)); | 1191 unittest.expect(o, unittest.hasLength(2)); |
1001 unittest.expect(o["x"], unittest.equals('foo')); | 1192 unittest.expect(o["x"], unittest.equals('foo')); |
1002 unittest.expect(o["y"], unittest.equals('foo')); | 1193 unittest.expect(o["y"], unittest.equals('foo')); |
1003 } | 1194 } |
1004 | 1195 |
1005 core.int buildCounterJob = 0; | 1196 core.int buildCounterJob = 0; |
1006 buildJob() { | 1197 buildJob() { |
1007 var o = new api.Job(); | 1198 var o = new api.Job(); |
1008 buildCounterJob++; | 1199 buildCounterJob++; |
1009 if (buildCounterJob < 3) { | 1200 if (buildCounterJob < 3) { |
1010 o.clientRequestId = "foo"; | 1201 o.clientRequestId = "foo"; |
1011 o.createTime = "foo"; | 1202 o.createTime = "foo"; |
1012 o.currentState = "foo"; | 1203 o.currentState = "foo"; |
1013 o.currentStateTime = "foo"; | 1204 o.currentStateTime = "foo"; |
1014 o.environment = buildEnvironment(); | 1205 o.environment = buildEnvironment(); |
1015 o.executionInfo = buildJobExecutionInfo(); | 1206 o.executionInfo = buildJobExecutionInfo(); |
1016 o.id = "foo"; | 1207 o.id = "foo"; |
1017 o.labels = buildUnnamed3154(); | 1208 o.labels = buildUnnamed2993(); |
1018 o.location = "foo"; | 1209 o.location = "foo"; |
1019 o.name = "foo"; | 1210 o.name = "foo"; |
| 1211 o.pipelineDescription = buildPipelineDescription(); |
1020 o.projectId = "foo"; | 1212 o.projectId = "foo"; |
1021 o.replaceJobId = "foo"; | 1213 o.replaceJobId = "foo"; |
1022 o.replacedByJobId = "foo"; | 1214 o.replacedByJobId = "foo"; |
1023 o.requestedState = "foo"; | 1215 o.requestedState = "foo"; |
1024 o.steps = buildUnnamed3155(); | 1216 o.steps = buildUnnamed2994(); |
1025 o.tempFiles = buildUnnamed3156(); | 1217 o.tempFiles = buildUnnamed2995(); |
1026 o.transformNameMapping = buildUnnamed3157(); | 1218 o.transformNameMapping = buildUnnamed2996(); |
1027 o.type = "foo"; | 1219 o.type = "foo"; |
1028 } | 1220 } |
1029 buildCounterJob--; | 1221 buildCounterJob--; |
1030 return o; | 1222 return o; |
1031 } | 1223 } |
1032 | 1224 |
1033 checkJob(api.Job o) { | 1225 checkJob(api.Job o) { |
1034 buildCounterJob++; | 1226 buildCounterJob++; |
1035 if (buildCounterJob < 3) { | 1227 if (buildCounterJob < 3) { |
1036 unittest.expect(o.clientRequestId, unittest.equals('foo')); | 1228 unittest.expect(o.clientRequestId, unittest.equals('foo')); |
1037 unittest.expect(o.createTime, unittest.equals('foo')); | 1229 unittest.expect(o.createTime, unittest.equals('foo')); |
1038 unittest.expect(o.currentState, unittest.equals('foo')); | 1230 unittest.expect(o.currentState, unittest.equals('foo')); |
1039 unittest.expect(o.currentStateTime, unittest.equals('foo')); | 1231 unittest.expect(o.currentStateTime, unittest.equals('foo')); |
1040 checkEnvironment(o.environment); | 1232 checkEnvironment(o.environment); |
1041 checkJobExecutionInfo(o.executionInfo); | 1233 checkJobExecutionInfo(o.executionInfo); |
1042 unittest.expect(o.id, unittest.equals('foo')); | 1234 unittest.expect(o.id, unittest.equals('foo')); |
1043 checkUnnamed3154(o.labels); | 1235 checkUnnamed2993(o.labels); |
1044 unittest.expect(o.location, unittest.equals('foo')); | 1236 unittest.expect(o.location, unittest.equals('foo')); |
1045 unittest.expect(o.name, unittest.equals('foo')); | 1237 unittest.expect(o.name, unittest.equals('foo')); |
| 1238 checkPipelineDescription(o.pipelineDescription); |
1046 unittest.expect(o.projectId, unittest.equals('foo')); | 1239 unittest.expect(o.projectId, unittest.equals('foo')); |
1047 unittest.expect(o.replaceJobId, unittest.equals('foo')); | 1240 unittest.expect(o.replaceJobId, unittest.equals('foo')); |
1048 unittest.expect(o.replacedByJobId, unittest.equals('foo')); | 1241 unittest.expect(o.replacedByJobId, unittest.equals('foo')); |
1049 unittest.expect(o.requestedState, unittest.equals('foo')); | 1242 unittest.expect(o.requestedState, unittest.equals('foo')); |
1050 checkUnnamed3155(o.steps); | 1243 checkUnnamed2994(o.steps); |
1051 checkUnnamed3156(o.tempFiles); | 1244 checkUnnamed2995(o.tempFiles); |
1052 checkUnnamed3157(o.transformNameMapping); | 1245 checkUnnamed2996(o.transformNameMapping); |
1053 unittest.expect(o.type, unittest.equals('foo')); | 1246 unittest.expect(o.type, unittest.equals('foo')); |
1054 } | 1247 } |
1055 buildCounterJob--; | 1248 buildCounterJob--; |
1056 } | 1249 } |
1057 | 1250 |
1058 buildUnnamed3158() { | 1251 buildUnnamed2997() { |
1059 var o = new core.Map<core.String, api.JobExecutionStageInfo>(); | 1252 var o = new core.Map<core.String, api.JobExecutionStageInfo>(); |
1060 o["x"] = buildJobExecutionStageInfo(); | 1253 o["x"] = buildJobExecutionStageInfo(); |
1061 o["y"] = buildJobExecutionStageInfo(); | 1254 o["y"] = buildJobExecutionStageInfo(); |
1062 return o; | 1255 return o; |
1063 } | 1256 } |
1064 | 1257 |
1065 checkUnnamed3158(core.Map<core.String, api.JobExecutionStageInfo> o) { | 1258 checkUnnamed2997(core.Map<core.String, api.JobExecutionStageInfo> o) { |
1066 unittest.expect(o, unittest.hasLength(2)); | 1259 unittest.expect(o, unittest.hasLength(2)); |
1067 checkJobExecutionStageInfo(o["x"]); | 1260 checkJobExecutionStageInfo(o["x"]); |
1068 checkJobExecutionStageInfo(o["y"]); | 1261 checkJobExecutionStageInfo(o["y"]); |
1069 } | 1262 } |
1070 | 1263 |
1071 core.int buildCounterJobExecutionInfo = 0; | 1264 core.int buildCounterJobExecutionInfo = 0; |
1072 buildJobExecutionInfo() { | 1265 buildJobExecutionInfo() { |
1073 var o = new api.JobExecutionInfo(); | 1266 var o = new api.JobExecutionInfo(); |
1074 buildCounterJobExecutionInfo++; | 1267 buildCounterJobExecutionInfo++; |
1075 if (buildCounterJobExecutionInfo < 3) { | 1268 if (buildCounterJobExecutionInfo < 3) { |
1076 o.stages = buildUnnamed3158(); | 1269 o.stages = buildUnnamed2997(); |
1077 } | 1270 } |
1078 buildCounterJobExecutionInfo--; | 1271 buildCounterJobExecutionInfo--; |
1079 return o; | 1272 return o; |
1080 } | 1273 } |
1081 | 1274 |
1082 checkJobExecutionInfo(api.JobExecutionInfo o) { | 1275 checkJobExecutionInfo(api.JobExecutionInfo o) { |
1083 buildCounterJobExecutionInfo++; | 1276 buildCounterJobExecutionInfo++; |
1084 if (buildCounterJobExecutionInfo < 3) { | 1277 if (buildCounterJobExecutionInfo < 3) { |
1085 checkUnnamed3158(o.stages); | 1278 checkUnnamed2997(o.stages); |
1086 } | 1279 } |
1087 buildCounterJobExecutionInfo--; | 1280 buildCounterJobExecutionInfo--; |
1088 } | 1281 } |
1089 | 1282 |
1090 buildUnnamed3159() { | 1283 buildUnnamed2998() { |
1091 var o = new core.List<core.String>(); | 1284 var o = new core.List<core.String>(); |
1092 o.add("foo"); | 1285 o.add("foo"); |
1093 o.add("foo"); | 1286 o.add("foo"); |
1094 return o; | 1287 return o; |
1095 } | 1288 } |
1096 | 1289 |
1097 checkUnnamed3159(core.List<core.String> o) { | 1290 checkUnnamed2998(core.List<core.String> o) { |
1098 unittest.expect(o, unittest.hasLength(2)); | 1291 unittest.expect(o, unittest.hasLength(2)); |
1099 unittest.expect(o[0], unittest.equals('foo')); | 1292 unittest.expect(o[0], unittest.equals('foo')); |
1100 unittest.expect(o[1], unittest.equals('foo')); | 1293 unittest.expect(o[1], unittest.equals('foo')); |
1101 } | 1294 } |
1102 | 1295 |
1103 core.int buildCounterJobExecutionStageInfo = 0; | 1296 core.int buildCounterJobExecutionStageInfo = 0; |
1104 buildJobExecutionStageInfo() { | 1297 buildJobExecutionStageInfo() { |
1105 var o = new api.JobExecutionStageInfo(); | 1298 var o = new api.JobExecutionStageInfo(); |
1106 buildCounterJobExecutionStageInfo++; | 1299 buildCounterJobExecutionStageInfo++; |
1107 if (buildCounterJobExecutionStageInfo < 3) { | 1300 if (buildCounterJobExecutionStageInfo < 3) { |
1108 o.stepName = buildUnnamed3159(); | 1301 o.stepName = buildUnnamed2998(); |
1109 } | 1302 } |
1110 buildCounterJobExecutionStageInfo--; | 1303 buildCounterJobExecutionStageInfo--; |
1111 return o; | 1304 return o; |
1112 } | 1305 } |
1113 | 1306 |
1114 checkJobExecutionStageInfo(api.JobExecutionStageInfo o) { | 1307 checkJobExecutionStageInfo(api.JobExecutionStageInfo o) { |
1115 buildCounterJobExecutionStageInfo++; | 1308 buildCounterJobExecutionStageInfo++; |
1116 if (buildCounterJobExecutionStageInfo < 3) { | 1309 if (buildCounterJobExecutionStageInfo < 3) { |
1117 checkUnnamed3159(o.stepName); | 1310 checkUnnamed2998(o.stepName); |
1118 } | 1311 } |
1119 buildCounterJobExecutionStageInfo--; | 1312 buildCounterJobExecutionStageInfo--; |
1120 } | 1313 } |
1121 | 1314 |
1122 core.int buildCounterJobMessage = 0; | 1315 core.int buildCounterJobMessage = 0; |
1123 buildJobMessage() { | 1316 buildJobMessage() { |
1124 var o = new api.JobMessage(); | 1317 var o = new api.JobMessage(); |
1125 buildCounterJobMessage++; | 1318 buildCounterJobMessage++; |
1126 if (buildCounterJobMessage < 3) { | 1319 if (buildCounterJobMessage < 3) { |
1127 o.id = "foo"; | 1320 o.id = "foo"; |
1128 o.messageImportance = "foo"; | 1321 o.messageImportance = "foo"; |
1129 o.messageText = "foo"; | 1322 o.messageText = "foo"; |
1130 o.time = "foo"; | 1323 o.time = "foo"; |
1131 } | 1324 } |
1132 buildCounterJobMessage--; | 1325 buildCounterJobMessage--; |
1133 return o; | 1326 return o; |
1134 } | 1327 } |
1135 | 1328 |
1136 checkJobMessage(api.JobMessage o) { | 1329 checkJobMessage(api.JobMessage o) { |
1137 buildCounterJobMessage++; | 1330 buildCounterJobMessage++; |
1138 if (buildCounterJobMessage < 3) { | 1331 if (buildCounterJobMessage < 3) { |
1139 unittest.expect(o.id, unittest.equals('foo')); | 1332 unittest.expect(o.id, unittest.equals('foo')); |
1140 unittest.expect(o.messageImportance, unittest.equals('foo')); | 1333 unittest.expect(o.messageImportance, unittest.equals('foo')); |
1141 unittest.expect(o.messageText, unittest.equals('foo')); | 1334 unittest.expect(o.messageText, unittest.equals('foo')); |
1142 unittest.expect(o.time, unittest.equals('foo')); | 1335 unittest.expect(o.time, unittest.equals('foo')); |
1143 } | 1336 } |
1144 buildCounterJobMessage--; | 1337 buildCounterJobMessage--; |
1145 } | 1338 } |
1146 | 1339 |
1147 buildUnnamed3160() { | 1340 buildUnnamed2999() { |
1148 var o = new core.List<api.MetricUpdate>(); | 1341 var o = new core.List<api.MetricUpdate>(); |
1149 o.add(buildMetricUpdate()); | 1342 o.add(buildMetricUpdate()); |
1150 o.add(buildMetricUpdate()); | 1343 o.add(buildMetricUpdate()); |
1151 return o; | 1344 return o; |
1152 } | 1345 } |
1153 | 1346 |
1154 checkUnnamed3160(core.List<api.MetricUpdate> o) { | 1347 checkUnnamed2999(core.List<api.MetricUpdate> o) { |
1155 unittest.expect(o, unittest.hasLength(2)); | 1348 unittest.expect(o, unittest.hasLength(2)); |
1156 checkMetricUpdate(o[0]); | 1349 checkMetricUpdate(o[0]); |
1157 checkMetricUpdate(o[1]); | 1350 checkMetricUpdate(o[1]); |
1158 } | 1351 } |
1159 | 1352 |
1160 core.int buildCounterJobMetrics = 0; | 1353 core.int buildCounterJobMetrics = 0; |
1161 buildJobMetrics() { | 1354 buildJobMetrics() { |
1162 var o = new api.JobMetrics(); | 1355 var o = new api.JobMetrics(); |
1163 buildCounterJobMetrics++; | 1356 buildCounterJobMetrics++; |
1164 if (buildCounterJobMetrics < 3) { | 1357 if (buildCounterJobMetrics < 3) { |
1165 o.metricTime = "foo"; | 1358 o.metricTime = "foo"; |
1166 o.metrics = buildUnnamed3160(); | 1359 o.metrics = buildUnnamed2999(); |
1167 } | 1360 } |
1168 buildCounterJobMetrics--; | 1361 buildCounterJobMetrics--; |
1169 return o; | 1362 return o; |
1170 } | 1363 } |
1171 | 1364 |
1172 checkJobMetrics(api.JobMetrics o) { | 1365 checkJobMetrics(api.JobMetrics o) { |
1173 buildCounterJobMetrics++; | 1366 buildCounterJobMetrics++; |
1174 if (buildCounterJobMetrics < 3) { | 1367 if (buildCounterJobMetrics < 3) { |
1175 unittest.expect(o.metricTime, unittest.equals('foo')); | 1368 unittest.expect(o.metricTime, unittest.equals('foo')); |
1176 checkUnnamed3160(o.metrics); | 1369 checkUnnamed2999(o.metrics); |
1177 } | 1370 } |
1178 buildCounterJobMetrics--; | 1371 buildCounterJobMetrics--; |
1179 } | 1372 } |
1180 | 1373 |
1181 core.int buildCounterKeyRangeDataDiskAssignment = 0; | 1374 core.int buildCounterKeyRangeDataDiskAssignment = 0; |
1182 buildKeyRangeDataDiskAssignment() { | 1375 buildKeyRangeDataDiskAssignment() { |
1183 var o = new api.KeyRangeDataDiskAssignment(); | 1376 var o = new api.KeyRangeDataDiskAssignment(); |
1184 buildCounterKeyRangeDataDiskAssignment++; | 1377 buildCounterKeyRangeDataDiskAssignment++; |
1185 if (buildCounterKeyRangeDataDiskAssignment < 3) { | 1378 if (buildCounterKeyRangeDataDiskAssignment < 3) { |
1186 o.dataDisk = "foo"; | 1379 o.dataDisk = "foo"; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1221 if (buildCounterKeyRangeLocation < 3) { | 1414 if (buildCounterKeyRangeLocation < 3) { |
1222 unittest.expect(o.dataDisk, unittest.equals('foo')); | 1415 unittest.expect(o.dataDisk, unittest.equals('foo')); |
1223 unittest.expect(o.deliveryEndpoint, unittest.equals('foo')); | 1416 unittest.expect(o.deliveryEndpoint, unittest.equals('foo')); |
1224 unittest.expect(o.end, unittest.equals('foo')); | 1417 unittest.expect(o.end, unittest.equals('foo')); |
1225 unittest.expect(o.persistentDirectory, unittest.equals('foo')); | 1418 unittest.expect(o.persistentDirectory, unittest.equals('foo')); |
1226 unittest.expect(o.start, unittest.equals('foo')); | 1419 unittest.expect(o.start, unittest.equals('foo')); |
1227 } | 1420 } |
1228 buildCounterKeyRangeLocation--; | 1421 buildCounterKeyRangeLocation--; |
1229 } | 1422 } |
1230 | 1423 |
1231 buildUnnamed3161() { | 1424 buildUnnamed3000() { |
| 1425 var o = new core.Map<core.String, core.String>(); |
| 1426 o["x"] = "foo"; |
| 1427 o["y"] = "foo"; |
| 1428 return o; |
| 1429 } |
| 1430 |
| 1431 checkUnnamed3000(core.Map<core.String, core.String> o) { |
| 1432 unittest.expect(o, unittest.hasLength(2)); |
| 1433 unittest.expect(o["x"], unittest.equals('foo')); |
| 1434 unittest.expect(o["y"], unittest.equals('foo')); |
| 1435 } |
| 1436 |
| 1437 core.int buildCounterLaunchTemplateParameters = 0; |
| 1438 buildLaunchTemplateParameters() { |
| 1439 var o = new api.LaunchTemplateParameters(); |
| 1440 buildCounterLaunchTemplateParameters++; |
| 1441 if (buildCounterLaunchTemplateParameters < 3) { |
| 1442 o.environment = buildRuntimeEnvironment(); |
| 1443 o.jobName = "foo"; |
| 1444 o.parameters = buildUnnamed3000(); |
| 1445 } |
| 1446 buildCounterLaunchTemplateParameters--; |
| 1447 return o; |
| 1448 } |
| 1449 |
| 1450 checkLaunchTemplateParameters(api.LaunchTemplateParameters o) { |
| 1451 buildCounterLaunchTemplateParameters++; |
| 1452 if (buildCounterLaunchTemplateParameters < 3) { |
| 1453 checkRuntimeEnvironment(o.environment); |
| 1454 unittest.expect(o.jobName, unittest.equals('foo')); |
| 1455 checkUnnamed3000(o.parameters); |
| 1456 } |
| 1457 buildCounterLaunchTemplateParameters--; |
| 1458 } |
| 1459 |
| 1460 core.int buildCounterLaunchTemplateResponse = 0; |
| 1461 buildLaunchTemplateResponse() { |
| 1462 var o = new api.LaunchTemplateResponse(); |
| 1463 buildCounterLaunchTemplateResponse++; |
| 1464 if (buildCounterLaunchTemplateResponse < 3) { |
| 1465 o.job = buildJob(); |
| 1466 o.status = buildStatus(); |
| 1467 } |
| 1468 buildCounterLaunchTemplateResponse--; |
| 1469 return o; |
| 1470 } |
| 1471 |
| 1472 checkLaunchTemplateResponse(api.LaunchTemplateResponse o) { |
| 1473 buildCounterLaunchTemplateResponse++; |
| 1474 if (buildCounterLaunchTemplateResponse < 3) { |
| 1475 checkJob(o.job); |
| 1476 checkStatus(o.status); |
| 1477 } |
| 1478 buildCounterLaunchTemplateResponse--; |
| 1479 } |
| 1480 |
| 1481 buildUnnamed3001() { |
1232 var o = new core.List<core.String>(); | 1482 var o = new core.List<core.String>(); |
1233 o.add("foo"); | 1483 o.add("foo"); |
1234 o.add("foo"); | 1484 o.add("foo"); |
1235 return o; | 1485 return o; |
1236 } | 1486 } |
1237 | 1487 |
1238 checkUnnamed3161(core.List<core.String> o) { | 1488 checkUnnamed3001(core.List<core.String> o) { |
1239 unittest.expect(o, unittest.hasLength(2)); | 1489 unittest.expect(o, unittest.hasLength(2)); |
1240 unittest.expect(o[0], unittest.equals('foo')); | 1490 unittest.expect(o[0], unittest.equals('foo')); |
1241 unittest.expect(o[1], unittest.equals('foo')); | 1491 unittest.expect(o[1], unittest.equals('foo')); |
1242 } | 1492 } |
1243 | 1493 |
1244 buildUnnamed3162() { | 1494 buildUnnamed3002() { |
1245 var o = new core.List<core.String>(); | 1495 var o = new core.List<core.String>(); |
1246 o.add("foo"); | 1496 o.add("foo"); |
1247 o.add("foo"); | 1497 o.add("foo"); |
1248 return o; | 1498 return o; |
1249 } | 1499 } |
1250 | 1500 |
1251 checkUnnamed3162(core.List<core.String> o) { | 1501 checkUnnamed3002(core.List<core.String> o) { |
1252 unittest.expect(o, unittest.hasLength(2)); | 1502 unittest.expect(o, unittest.hasLength(2)); |
1253 unittest.expect(o[0], unittest.equals('foo')); | 1503 unittest.expect(o[0], unittest.equals('foo')); |
1254 unittest.expect(o[1], unittest.equals('foo')); | 1504 unittest.expect(o[1], unittest.equals('foo')); |
1255 } | 1505 } |
1256 | 1506 |
1257 core.int buildCounterLeaseWorkItemRequest = 0; | 1507 core.int buildCounterLeaseWorkItemRequest = 0; |
1258 buildLeaseWorkItemRequest() { | 1508 buildLeaseWorkItemRequest() { |
1259 var o = new api.LeaseWorkItemRequest(); | 1509 var o = new api.LeaseWorkItemRequest(); |
1260 buildCounterLeaseWorkItemRequest++; | 1510 buildCounterLeaseWorkItemRequest++; |
1261 if (buildCounterLeaseWorkItemRequest < 3) { | 1511 if (buildCounterLeaseWorkItemRequest < 3) { |
1262 o.currentWorkerTime = "foo"; | 1512 o.currentWorkerTime = "foo"; |
1263 o.location = "foo"; | 1513 o.location = "foo"; |
1264 o.requestedLeaseDuration = "foo"; | 1514 o.requestedLeaseDuration = "foo"; |
1265 o.workItemTypes = buildUnnamed3161(); | 1515 o.workItemTypes = buildUnnamed3001(); |
1266 o.workerCapabilities = buildUnnamed3162(); | 1516 o.workerCapabilities = buildUnnamed3002(); |
1267 o.workerId = "foo"; | 1517 o.workerId = "foo"; |
1268 } | 1518 } |
1269 buildCounterLeaseWorkItemRequest--; | 1519 buildCounterLeaseWorkItemRequest--; |
1270 return o; | 1520 return o; |
1271 } | 1521 } |
1272 | 1522 |
1273 checkLeaseWorkItemRequest(api.LeaseWorkItemRequest o) { | 1523 checkLeaseWorkItemRequest(api.LeaseWorkItemRequest o) { |
1274 buildCounterLeaseWorkItemRequest++; | 1524 buildCounterLeaseWorkItemRequest++; |
1275 if (buildCounterLeaseWorkItemRequest < 3) { | 1525 if (buildCounterLeaseWorkItemRequest < 3) { |
1276 unittest.expect(o.currentWorkerTime, unittest.equals('foo')); | 1526 unittest.expect(o.currentWorkerTime, unittest.equals('foo')); |
1277 unittest.expect(o.location, unittest.equals('foo')); | 1527 unittest.expect(o.location, unittest.equals('foo')); |
1278 unittest.expect(o.requestedLeaseDuration, unittest.equals('foo')); | 1528 unittest.expect(o.requestedLeaseDuration, unittest.equals('foo')); |
1279 checkUnnamed3161(o.workItemTypes); | 1529 checkUnnamed3001(o.workItemTypes); |
1280 checkUnnamed3162(o.workerCapabilities); | 1530 checkUnnamed3002(o.workerCapabilities); |
1281 unittest.expect(o.workerId, unittest.equals('foo')); | 1531 unittest.expect(o.workerId, unittest.equals('foo')); |
1282 } | 1532 } |
1283 buildCounterLeaseWorkItemRequest--; | 1533 buildCounterLeaseWorkItemRequest--; |
1284 } | 1534 } |
1285 | 1535 |
1286 buildUnnamed3163() { | 1536 buildUnnamed3003() { |
1287 var o = new core.List<api.WorkItem>(); | 1537 var o = new core.List<api.WorkItem>(); |
1288 o.add(buildWorkItem()); | 1538 o.add(buildWorkItem()); |
1289 o.add(buildWorkItem()); | 1539 o.add(buildWorkItem()); |
1290 return o; | 1540 return o; |
1291 } | 1541 } |
1292 | 1542 |
1293 checkUnnamed3163(core.List<api.WorkItem> o) { | 1543 checkUnnamed3003(core.List<api.WorkItem> o) { |
1294 unittest.expect(o, unittest.hasLength(2)); | 1544 unittest.expect(o, unittest.hasLength(2)); |
1295 checkWorkItem(o[0]); | 1545 checkWorkItem(o[0]); |
1296 checkWorkItem(o[1]); | 1546 checkWorkItem(o[1]); |
1297 } | 1547 } |
1298 | 1548 |
1299 core.int buildCounterLeaseWorkItemResponse = 0; | 1549 core.int buildCounterLeaseWorkItemResponse = 0; |
1300 buildLeaseWorkItemResponse() { | 1550 buildLeaseWorkItemResponse() { |
1301 var o = new api.LeaseWorkItemResponse(); | 1551 var o = new api.LeaseWorkItemResponse(); |
1302 buildCounterLeaseWorkItemResponse++; | 1552 buildCounterLeaseWorkItemResponse++; |
1303 if (buildCounterLeaseWorkItemResponse < 3) { | 1553 if (buildCounterLeaseWorkItemResponse < 3) { |
1304 o.workItems = buildUnnamed3163(); | 1554 o.workItems = buildUnnamed3003(); |
1305 } | 1555 } |
1306 buildCounterLeaseWorkItemResponse--; | 1556 buildCounterLeaseWorkItemResponse--; |
1307 return o; | 1557 return o; |
1308 } | 1558 } |
1309 | 1559 |
1310 checkLeaseWorkItemResponse(api.LeaseWorkItemResponse o) { | 1560 checkLeaseWorkItemResponse(api.LeaseWorkItemResponse o) { |
1311 buildCounterLeaseWorkItemResponse++; | 1561 buildCounterLeaseWorkItemResponse++; |
1312 if (buildCounterLeaseWorkItemResponse < 3) { | 1562 if (buildCounterLeaseWorkItemResponse < 3) { |
1313 checkUnnamed3163(o.workItems); | 1563 checkUnnamed3003(o.workItems); |
1314 } | 1564 } |
1315 buildCounterLeaseWorkItemResponse--; | 1565 buildCounterLeaseWorkItemResponse--; |
1316 } | 1566 } |
1317 | 1567 |
1318 buildUnnamed3164() { | 1568 buildUnnamed3004() { |
1319 var o = new core.List<api.JobMessage>(); | 1569 var o = new core.List<api.JobMessage>(); |
1320 o.add(buildJobMessage()); | 1570 o.add(buildJobMessage()); |
1321 o.add(buildJobMessage()); | 1571 o.add(buildJobMessage()); |
1322 return o; | 1572 return o; |
1323 } | 1573 } |
1324 | 1574 |
1325 checkUnnamed3164(core.List<api.JobMessage> o) { | 1575 checkUnnamed3004(core.List<api.JobMessage> o) { |
1326 unittest.expect(o, unittest.hasLength(2)); | 1576 unittest.expect(o, unittest.hasLength(2)); |
1327 checkJobMessage(o[0]); | 1577 checkJobMessage(o[0]); |
1328 checkJobMessage(o[1]); | 1578 checkJobMessage(o[1]); |
1329 } | 1579 } |
1330 | 1580 |
1331 core.int buildCounterListJobMessagesResponse = 0; | 1581 core.int buildCounterListJobMessagesResponse = 0; |
1332 buildListJobMessagesResponse() { | 1582 buildListJobMessagesResponse() { |
1333 var o = new api.ListJobMessagesResponse(); | 1583 var o = new api.ListJobMessagesResponse(); |
1334 buildCounterListJobMessagesResponse++; | 1584 buildCounterListJobMessagesResponse++; |
1335 if (buildCounterListJobMessagesResponse < 3) { | 1585 if (buildCounterListJobMessagesResponse < 3) { |
1336 o.jobMessages = buildUnnamed3164(); | 1586 o.jobMessages = buildUnnamed3004(); |
1337 o.nextPageToken = "foo"; | 1587 o.nextPageToken = "foo"; |
1338 } | 1588 } |
1339 buildCounterListJobMessagesResponse--; | 1589 buildCounterListJobMessagesResponse--; |
1340 return o; | 1590 return o; |
1341 } | 1591 } |
1342 | 1592 |
1343 checkListJobMessagesResponse(api.ListJobMessagesResponse o) { | 1593 checkListJobMessagesResponse(api.ListJobMessagesResponse o) { |
1344 buildCounterListJobMessagesResponse++; | 1594 buildCounterListJobMessagesResponse++; |
1345 if (buildCounterListJobMessagesResponse < 3) { | 1595 if (buildCounterListJobMessagesResponse < 3) { |
1346 checkUnnamed3164(o.jobMessages); | 1596 checkUnnamed3004(o.jobMessages); |
1347 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1597 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1348 } | 1598 } |
1349 buildCounterListJobMessagesResponse--; | 1599 buildCounterListJobMessagesResponse--; |
1350 } | 1600 } |
1351 | 1601 |
1352 buildUnnamed3165() { | 1602 buildUnnamed3005() { |
1353 var o = new core.List<api.FailedLocation>(); | 1603 var o = new core.List<api.FailedLocation>(); |
1354 o.add(buildFailedLocation()); | 1604 o.add(buildFailedLocation()); |
1355 o.add(buildFailedLocation()); | 1605 o.add(buildFailedLocation()); |
1356 return o; | 1606 return o; |
1357 } | 1607 } |
1358 | 1608 |
1359 checkUnnamed3165(core.List<api.FailedLocation> o) { | 1609 checkUnnamed3005(core.List<api.FailedLocation> o) { |
1360 unittest.expect(o, unittest.hasLength(2)); | 1610 unittest.expect(o, unittest.hasLength(2)); |
1361 checkFailedLocation(o[0]); | 1611 checkFailedLocation(o[0]); |
1362 checkFailedLocation(o[1]); | 1612 checkFailedLocation(o[1]); |
1363 } | 1613 } |
1364 | 1614 |
1365 buildUnnamed3166() { | 1615 buildUnnamed3006() { |
1366 var o = new core.List<api.Job>(); | 1616 var o = new core.List<api.Job>(); |
1367 o.add(buildJob()); | 1617 o.add(buildJob()); |
1368 o.add(buildJob()); | 1618 o.add(buildJob()); |
1369 return o; | 1619 return o; |
1370 } | 1620 } |
1371 | 1621 |
1372 checkUnnamed3166(core.List<api.Job> o) { | 1622 checkUnnamed3006(core.List<api.Job> o) { |
1373 unittest.expect(o, unittest.hasLength(2)); | 1623 unittest.expect(o, unittest.hasLength(2)); |
1374 checkJob(o[0]); | 1624 checkJob(o[0]); |
1375 checkJob(o[1]); | 1625 checkJob(o[1]); |
1376 } | 1626 } |
1377 | 1627 |
1378 core.int buildCounterListJobsResponse = 0; | 1628 core.int buildCounterListJobsResponse = 0; |
1379 buildListJobsResponse() { | 1629 buildListJobsResponse() { |
1380 var o = new api.ListJobsResponse(); | 1630 var o = new api.ListJobsResponse(); |
1381 buildCounterListJobsResponse++; | 1631 buildCounterListJobsResponse++; |
1382 if (buildCounterListJobsResponse < 3) { | 1632 if (buildCounterListJobsResponse < 3) { |
1383 o.failedLocation = buildUnnamed3165(); | 1633 o.failedLocation = buildUnnamed3005(); |
1384 o.jobs = buildUnnamed3166(); | 1634 o.jobs = buildUnnamed3006(); |
1385 o.nextPageToken = "foo"; | 1635 o.nextPageToken = "foo"; |
1386 } | 1636 } |
1387 buildCounterListJobsResponse--; | 1637 buildCounterListJobsResponse--; |
1388 return o; | 1638 return o; |
1389 } | 1639 } |
1390 | 1640 |
1391 checkListJobsResponse(api.ListJobsResponse o) { | 1641 checkListJobsResponse(api.ListJobsResponse o) { |
1392 buildCounterListJobsResponse++; | 1642 buildCounterListJobsResponse++; |
1393 if (buildCounterListJobsResponse < 3) { | 1643 if (buildCounterListJobsResponse < 3) { |
1394 checkUnnamed3165(o.failedLocation); | 1644 checkUnnamed3005(o.failedLocation); |
1395 checkUnnamed3166(o.jobs); | 1645 checkUnnamed3006(o.jobs); |
1396 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1646 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1397 } | 1647 } |
1398 buildCounterListJobsResponse--; | 1648 buildCounterListJobsResponse--; |
1399 } | 1649 } |
1400 | 1650 |
1401 buildUnnamed3167() { | 1651 buildUnnamed3007() { |
1402 var o = new core.List<api.ParallelInstruction>(); | 1652 var o = new core.List<api.ParallelInstruction>(); |
1403 o.add(buildParallelInstruction()); | 1653 o.add(buildParallelInstruction()); |
1404 o.add(buildParallelInstruction()); | 1654 o.add(buildParallelInstruction()); |
1405 return o; | 1655 return o; |
1406 } | 1656 } |
1407 | 1657 |
1408 checkUnnamed3167(core.List<api.ParallelInstruction> o) { | 1658 checkUnnamed3007(core.List<api.ParallelInstruction> o) { |
1409 unittest.expect(o, unittest.hasLength(2)); | 1659 unittest.expect(o, unittest.hasLength(2)); |
1410 checkParallelInstruction(o[0]); | 1660 checkParallelInstruction(o[0]); |
1411 checkParallelInstruction(o[1]); | 1661 checkParallelInstruction(o[1]); |
1412 } | 1662 } |
1413 | 1663 |
1414 core.int buildCounterMapTask = 0; | 1664 core.int buildCounterMapTask = 0; |
1415 buildMapTask() { | 1665 buildMapTask() { |
1416 var o = new api.MapTask(); | 1666 var o = new api.MapTask(); |
1417 buildCounterMapTask++; | 1667 buildCounterMapTask++; |
1418 if (buildCounterMapTask < 3) { | 1668 if (buildCounterMapTask < 3) { |
1419 o.instructions = buildUnnamed3167(); | 1669 o.instructions = buildUnnamed3007(); |
1420 o.stageName = "foo"; | 1670 o.stageName = "foo"; |
1421 o.systemName = "foo"; | 1671 o.systemName = "foo"; |
1422 } | 1672 } |
1423 buildCounterMapTask--; | 1673 buildCounterMapTask--; |
1424 return o; | 1674 return o; |
1425 } | 1675 } |
1426 | 1676 |
1427 checkMapTask(api.MapTask o) { | 1677 checkMapTask(api.MapTask o) { |
1428 buildCounterMapTask++; | 1678 buildCounterMapTask++; |
1429 if (buildCounterMapTask < 3) { | 1679 if (buildCounterMapTask < 3) { |
1430 checkUnnamed3167(o.instructions); | 1680 checkUnnamed3007(o.instructions); |
1431 unittest.expect(o.stageName, unittest.equals('foo')); | 1681 unittest.expect(o.stageName, unittest.equals('foo')); |
1432 unittest.expect(o.systemName, unittest.equals('foo')); | 1682 unittest.expect(o.systemName, unittest.equals('foo')); |
1433 } | 1683 } |
1434 buildCounterMapTask--; | 1684 buildCounterMapTask--; |
1435 } | 1685 } |
1436 | 1686 |
1437 core.int buildCounterMetricShortId = 0; | 1687 core.int buildCounterMetricShortId = 0; |
1438 buildMetricShortId() { | 1688 buildMetricShortId() { |
1439 var o = new api.MetricShortId(); | 1689 var o = new api.MetricShortId(); |
1440 buildCounterMetricShortId++; | 1690 buildCounterMetricShortId++; |
1441 if (buildCounterMetricShortId < 3) { | 1691 if (buildCounterMetricShortId < 3) { |
1442 o.metricIndex = 42; | 1692 o.metricIndex = 42; |
1443 o.shortId = "foo"; | 1693 o.shortId = "foo"; |
1444 } | 1694 } |
1445 buildCounterMetricShortId--; | 1695 buildCounterMetricShortId--; |
1446 return o; | 1696 return o; |
1447 } | 1697 } |
1448 | 1698 |
1449 checkMetricShortId(api.MetricShortId o) { | 1699 checkMetricShortId(api.MetricShortId o) { |
1450 buildCounterMetricShortId++; | 1700 buildCounterMetricShortId++; |
1451 if (buildCounterMetricShortId < 3) { | 1701 if (buildCounterMetricShortId < 3) { |
1452 unittest.expect(o.metricIndex, unittest.equals(42)); | 1702 unittest.expect(o.metricIndex, unittest.equals(42)); |
1453 unittest.expect(o.shortId, unittest.equals('foo')); | 1703 unittest.expect(o.shortId, unittest.equals('foo')); |
1454 } | 1704 } |
1455 buildCounterMetricShortId--; | 1705 buildCounterMetricShortId--; |
1456 } | 1706 } |
1457 | 1707 |
1458 buildUnnamed3168() { | 1708 buildUnnamed3008() { |
1459 var o = new core.Map<core.String, core.String>(); | 1709 var o = new core.Map<core.String, core.String>(); |
1460 o["x"] = "foo"; | 1710 o["x"] = "foo"; |
1461 o["y"] = "foo"; | 1711 o["y"] = "foo"; |
1462 return o; | 1712 return o; |
1463 } | 1713 } |
1464 | 1714 |
1465 checkUnnamed3168(core.Map<core.String, core.String> o) { | 1715 checkUnnamed3008(core.Map<core.String, core.String> o) { |
1466 unittest.expect(o, unittest.hasLength(2)); | 1716 unittest.expect(o, unittest.hasLength(2)); |
1467 unittest.expect(o["x"], unittest.equals('foo')); | 1717 unittest.expect(o["x"], unittest.equals('foo')); |
1468 unittest.expect(o["y"], unittest.equals('foo')); | 1718 unittest.expect(o["y"], unittest.equals('foo')); |
1469 } | 1719 } |
1470 | 1720 |
1471 core.int buildCounterMetricStructuredName = 0; | 1721 core.int buildCounterMetricStructuredName = 0; |
1472 buildMetricStructuredName() { | 1722 buildMetricStructuredName() { |
1473 var o = new api.MetricStructuredName(); | 1723 var o = new api.MetricStructuredName(); |
1474 buildCounterMetricStructuredName++; | 1724 buildCounterMetricStructuredName++; |
1475 if (buildCounterMetricStructuredName < 3) { | 1725 if (buildCounterMetricStructuredName < 3) { |
1476 o.context = buildUnnamed3168(); | 1726 o.context = buildUnnamed3008(); |
1477 o.name = "foo"; | 1727 o.name = "foo"; |
1478 o.origin = "foo"; | 1728 o.origin = "foo"; |
1479 } | 1729 } |
1480 buildCounterMetricStructuredName--; | 1730 buildCounterMetricStructuredName--; |
1481 return o; | 1731 return o; |
1482 } | 1732 } |
1483 | 1733 |
1484 checkMetricStructuredName(api.MetricStructuredName o) { | 1734 checkMetricStructuredName(api.MetricStructuredName o) { |
1485 buildCounterMetricStructuredName++; | 1735 buildCounterMetricStructuredName++; |
1486 if (buildCounterMetricStructuredName < 3) { | 1736 if (buildCounterMetricStructuredName < 3) { |
1487 checkUnnamed3168(o.context); | 1737 checkUnnamed3008(o.context); |
1488 unittest.expect(o.name, unittest.equals('foo')); | 1738 unittest.expect(o.name, unittest.equals('foo')); |
1489 unittest.expect(o.origin, unittest.equals('foo')); | 1739 unittest.expect(o.origin, unittest.equals('foo')); |
1490 } | 1740 } |
1491 buildCounterMetricStructuredName--; | 1741 buildCounterMetricStructuredName--; |
1492 } | 1742 } |
1493 | 1743 |
1494 core.int buildCounterMetricUpdate = 0; | 1744 core.int buildCounterMetricUpdate = 0; |
1495 buildMetricUpdate() { | 1745 buildMetricUpdate() { |
1496 var o = new api.MetricUpdate(); | 1746 var o = new api.MetricUpdate(); |
1497 buildCounterMetricUpdate++; | 1747 buildCounterMetricUpdate++; |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1599 | 1849 |
1600 checkPackage(api.Package o) { | 1850 checkPackage(api.Package o) { |
1601 buildCounterPackage++; | 1851 buildCounterPackage++; |
1602 if (buildCounterPackage < 3) { | 1852 if (buildCounterPackage < 3) { |
1603 unittest.expect(o.location, unittest.equals('foo')); | 1853 unittest.expect(o.location, unittest.equals('foo')); |
1604 unittest.expect(o.name, unittest.equals('foo')); | 1854 unittest.expect(o.name, unittest.equals('foo')); |
1605 } | 1855 } |
1606 buildCounterPackage--; | 1856 buildCounterPackage--; |
1607 } | 1857 } |
1608 | 1858 |
1609 buildUnnamed3169() { | 1859 buildUnnamed3009() { |
1610 var o = new core.List<api.MultiOutputInfo>(); | 1860 var o = new core.List<api.MultiOutputInfo>(); |
1611 o.add(buildMultiOutputInfo()); | 1861 o.add(buildMultiOutputInfo()); |
1612 o.add(buildMultiOutputInfo()); | 1862 o.add(buildMultiOutputInfo()); |
1613 return o; | 1863 return o; |
1614 } | 1864 } |
1615 | 1865 |
1616 checkUnnamed3169(core.List<api.MultiOutputInfo> o) { | 1866 checkUnnamed3009(core.List<api.MultiOutputInfo> o) { |
1617 unittest.expect(o, unittest.hasLength(2)); | 1867 unittest.expect(o, unittest.hasLength(2)); |
1618 checkMultiOutputInfo(o[0]); | 1868 checkMultiOutputInfo(o[0]); |
1619 checkMultiOutputInfo(o[1]); | 1869 checkMultiOutputInfo(o[1]); |
1620 } | 1870 } |
1621 | 1871 |
1622 buildUnnamed3170() { | 1872 buildUnnamed3010() { |
1623 var o = new core.List<api.SideInputInfo>(); | 1873 var o = new core.List<api.SideInputInfo>(); |
1624 o.add(buildSideInputInfo()); | 1874 o.add(buildSideInputInfo()); |
1625 o.add(buildSideInputInfo()); | 1875 o.add(buildSideInputInfo()); |
1626 return o; | 1876 return o; |
1627 } | 1877 } |
1628 | 1878 |
1629 checkUnnamed3170(core.List<api.SideInputInfo> o) { | 1879 checkUnnamed3010(core.List<api.SideInputInfo> o) { |
1630 unittest.expect(o, unittest.hasLength(2)); | 1880 unittest.expect(o, unittest.hasLength(2)); |
1631 checkSideInputInfo(o[0]); | 1881 checkSideInputInfo(o[0]); |
1632 checkSideInputInfo(o[1]); | 1882 checkSideInputInfo(o[1]); |
1633 } | 1883 } |
1634 | 1884 |
1635 buildUnnamed3171() { | 1885 buildUnnamed3011() { |
1636 var o = new core.Map<core.String, core.Object>(); | 1886 var o = new core.Map<core.String, core.Object>(); |
1637 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1887 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1638 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1888 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1639 return o; | 1889 return o; |
1640 } | 1890 } |
1641 | 1891 |
1642 checkUnnamed3171(core.Map<core.String, core.Object> o) { | 1892 checkUnnamed3011(core.Map<core.String, core.Object> o) { |
1643 unittest.expect(o, unittest.hasLength(2)); | 1893 unittest.expect(o, unittest.hasLength(2)); |
1644 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')); | 1894 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')); |
1645 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')); | 1895 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')); |
1646 } | 1896 } |
1647 | 1897 |
1648 core.int buildCounterParDoInstruction = 0; | 1898 core.int buildCounterParDoInstruction = 0; |
1649 buildParDoInstruction() { | 1899 buildParDoInstruction() { |
1650 var o = new api.ParDoInstruction(); | 1900 var o = new api.ParDoInstruction(); |
1651 buildCounterParDoInstruction++; | 1901 buildCounterParDoInstruction++; |
1652 if (buildCounterParDoInstruction < 3) { | 1902 if (buildCounterParDoInstruction < 3) { |
1653 o.input = buildInstructionInput(); | 1903 o.input = buildInstructionInput(); |
1654 o.multiOutputInfos = buildUnnamed3169(); | 1904 o.multiOutputInfos = buildUnnamed3009(); |
1655 o.numOutputs = 42; | 1905 o.numOutputs = 42; |
1656 o.sideInputs = buildUnnamed3170(); | 1906 o.sideInputs = buildUnnamed3010(); |
1657 o.userFn = buildUnnamed3171(); | 1907 o.userFn = buildUnnamed3011(); |
1658 } | 1908 } |
1659 buildCounterParDoInstruction--; | 1909 buildCounterParDoInstruction--; |
1660 return o; | 1910 return o; |
1661 } | 1911 } |
1662 | 1912 |
1663 checkParDoInstruction(api.ParDoInstruction o) { | 1913 checkParDoInstruction(api.ParDoInstruction o) { |
1664 buildCounterParDoInstruction++; | 1914 buildCounterParDoInstruction++; |
1665 if (buildCounterParDoInstruction < 3) { | 1915 if (buildCounterParDoInstruction < 3) { |
1666 checkInstructionInput(o.input); | 1916 checkInstructionInput(o.input); |
1667 checkUnnamed3169(o.multiOutputInfos); | 1917 checkUnnamed3009(o.multiOutputInfos); |
1668 unittest.expect(o.numOutputs, unittest.equals(42)); | 1918 unittest.expect(o.numOutputs, unittest.equals(42)); |
1669 checkUnnamed3170(o.sideInputs); | 1919 checkUnnamed3010(o.sideInputs); |
1670 checkUnnamed3171(o.userFn); | 1920 checkUnnamed3011(o.userFn); |
1671 } | 1921 } |
1672 buildCounterParDoInstruction--; | 1922 buildCounterParDoInstruction--; |
1673 } | 1923 } |
1674 | 1924 |
1675 buildUnnamed3172() { | 1925 buildUnnamed3012() { |
1676 var o = new core.List<api.InstructionOutput>(); | 1926 var o = new core.List<api.InstructionOutput>(); |
1677 o.add(buildInstructionOutput()); | 1927 o.add(buildInstructionOutput()); |
1678 o.add(buildInstructionOutput()); | 1928 o.add(buildInstructionOutput()); |
1679 return o; | 1929 return o; |
1680 } | 1930 } |
1681 | 1931 |
1682 checkUnnamed3172(core.List<api.InstructionOutput> o) { | 1932 checkUnnamed3012(core.List<api.InstructionOutput> o) { |
1683 unittest.expect(o, unittest.hasLength(2)); | 1933 unittest.expect(o, unittest.hasLength(2)); |
1684 checkInstructionOutput(o[0]); | 1934 checkInstructionOutput(o[0]); |
1685 checkInstructionOutput(o[1]); | 1935 checkInstructionOutput(o[1]); |
1686 } | 1936 } |
1687 | 1937 |
1688 core.int buildCounterParallelInstruction = 0; | 1938 core.int buildCounterParallelInstruction = 0; |
1689 buildParallelInstruction() { | 1939 buildParallelInstruction() { |
1690 var o = new api.ParallelInstruction(); | 1940 var o = new api.ParallelInstruction(); |
1691 buildCounterParallelInstruction++; | 1941 buildCounterParallelInstruction++; |
1692 if (buildCounterParallelInstruction < 3) { | 1942 if (buildCounterParallelInstruction < 3) { |
1693 o.flatten = buildFlattenInstruction(); | 1943 o.flatten = buildFlattenInstruction(); |
1694 o.name = "foo"; | 1944 o.name = "foo"; |
1695 o.originalName = "foo"; | 1945 o.originalName = "foo"; |
1696 o.outputs = buildUnnamed3172(); | 1946 o.outputs = buildUnnamed3012(); |
1697 o.parDo = buildParDoInstruction(); | 1947 o.parDo = buildParDoInstruction(); |
1698 o.partialGroupByKey = buildPartialGroupByKeyInstruction(); | 1948 o.partialGroupByKey = buildPartialGroupByKeyInstruction(); |
1699 o.read = buildReadInstruction(); | 1949 o.read = buildReadInstruction(); |
1700 o.systemName = "foo"; | 1950 o.systemName = "foo"; |
1701 o.write = buildWriteInstruction(); | 1951 o.write = buildWriteInstruction(); |
1702 } | 1952 } |
1703 buildCounterParallelInstruction--; | 1953 buildCounterParallelInstruction--; |
1704 return o; | 1954 return o; |
1705 } | 1955 } |
1706 | 1956 |
1707 checkParallelInstruction(api.ParallelInstruction o) { | 1957 checkParallelInstruction(api.ParallelInstruction o) { |
1708 buildCounterParallelInstruction++; | 1958 buildCounterParallelInstruction++; |
1709 if (buildCounterParallelInstruction < 3) { | 1959 if (buildCounterParallelInstruction < 3) { |
1710 checkFlattenInstruction(o.flatten); | 1960 checkFlattenInstruction(o.flatten); |
1711 unittest.expect(o.name, unittest.equals('foo')); | 1961 unittest.expect(o.name, unittest.equals('foo')); |
1712 unittest.expect(o.originalName, unittest.equals('foo')); | 1962 unittest.expect(o.originalName, unittest.equals('foo')); |
1713 checkUnnamed3172(o.outputs); | 1963 checkUnnamed3012(o.outputs); |
1714 checkParDoInstruction(o.parDo); | 1964 checkParDoInstruction(o.parDo); |
1715 checkPartialGroupByKeyInstruction(o.partialGroupByKey); | 1965 checkPartialGroupByKeyInstruction(o.partialGroupByKey); |
1716 checkReadInstruction(o.read); | 1966 checkReadInstruction(o.read); |
1717 unittest.expect(o.systemName, unittest.equals('foo')); | 1967 unittest.expect(o.systemName, unittest.equals('foo')); |
1718 checkWriteInstruction(o.write); | 1968 checkWriteInstruction(o.write); |
1719 } | 1969 } |
1720 buildCounterParallelInstruction--; | 1970 buildCounterParallelInstruction--; |
1721 } | 1971 } |
1722 | 1972 |
1723 buildUnnamed3173() { | 1973 buildUnnamed3013() { |
| 1974 var o = new core.List<core.String>(); |
| 1975 o.add("foo"); |
| 1976 o.add("foo"); |
| 1977 return o; |
| 1978 } |
| 1979 |
| 1980 checkUnnamed3013(core.List<core.String> o) { |
| 1981 unittest.expect(o, unittest.hasLength(2)); |
| 1982 unittest.expect(o[0], unittest.equals('foo')); |
| 1983 unittest.expect(o[1], unittest.equals('foo')); |
| 1984 } |
| 1985 |
| 1986 core.int buildCounterParameterMetadata = 0; |
| 1987 buildParameterMetadata() { |
| 1988 var o = new api.ParameterMetadata(); |
| 1989 buildCounterParameterMetadata++; |
| 1990 if (buildCounterParameterMetadata < 3) { |
| 1991 o.helpText = "foo"; |
| 1992 o.isOptional = true; |
| 1993 o.label = "foo"; |
| 1994 o.name = "foo"; |
| 1995 o.regexes = buildUnnamed3013(); |
| 1996 } |
| 1997 buildCounterParameterMetadata--; |
| 1998 return o; |
| 1999 } |
| 2000 |
| 2001 checkParameterMetadata(api.ParameterMetadata o) { |
| 2002 buildCounterParameterMetadata++; |
| 2003 if (buildCounterParameterMetadata < 3) { |
| 2004 unittest.expect(o.helpText, unittest.equals('foo')); |
| 2005 unittest.expect(o.isOptional, unittest.isTrue); |
| 2006 unittest.expect(o.label, unittest.equals('foo')); |
| 2007 unittest.expect(o.name, unittest.equals('foo')); |
| 2008 checkUnnamed3013(o.regexes); |
| 2009 } |
| 2010 buildCounterParameterMetadata--; |
| 2011 } |
| 2012 |
| 2013 buildUnnamed3014() { |
1724 var o = new core.Map<core.String, core.Object>(); | 2014 var o = new core.Map<core.String, core.Object>(); |
1725 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2015 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1726 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2016 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1727 return o; | 2017 return o; |
1728 } | 2018 } |
1729 | 2019 |
1730 checkUnnamed3173(core.Map<core.String, core.Object> o) { | 2020 checkUnnamed3014(core.Map<core.String, core.Object> o) { |
1731 unittest.expect(o, unittest.hasLength(2)); | 2021 unittest.expect(o, unittest.hasLength(2)); |
1732 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')); | 2022 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')); |
1733 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')); | 2023 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')); |
1734 } | 2024 } |
1735 | 2025 |
1736 buildUnnamed3174() { | 2026 buildUnnamed3015() { |
1737 var o = new core.List<api.SideInputInfo>(); | 2027 var o = new core.List<api.SideInputInfo>(); |
1738 o.add(buildSideInputInfo()); | 2028 o.add(buildSideInputInfo()); |
1739 o.add(buildSideInputInfo()); | 2029 o.add(buildSideInputInfo()); |
1740 return o; | 2030 return o; |
1741 } | 2031 } |
1742 | 2032 |
1743 checkUnnamed3174(core.List<api.SideInputInfo> o) { | 2033 checkUnnamed3015(core.List<api.SideInputInfo> o) { |
1744 unittest.expect(o, unittest.hasLength(2)); | 2034 unittest.expect(o, unittest.hasLength(2)); |
1745 checkSideInputInfo(o[0]); | 2035 checkSideInputInfo(o[0]); |
1746 checkSideInputInfo(o[1]); | 2036 checkSideInputInfo(o[1]); |
1747 } | 2037 } |
1748 | 2038 |
1749 buildUnnamed3175() { | 2039 buildUnnamed3016() { |
1750 var o = new core.Map<core.String, core.Object>(); | 2040 var o = new core.Map<core.String, core.Object>(); |
1751 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2041 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1752 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2042 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1753 return o; | 2043 return o; |
1754 } | 2044 } |
1755 | 2045 |
1756 checkUnnamed3175(core.Map<core.String, core.Object> o) { | 2046 checkUnnamed3016(core.Map<core.String, core.Object> o) { |
1757 unittest.expect(o, unittest.hasLength(2)); | 2047 unittest.expect(o, unittest.hasLength(2)); |
1758 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')); | 2048 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')); |
1759 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')); | 2049 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')); |
1760 } | 2050 } |
1761 | 2051 |
1762 core.int buildCounterPartialGroupByKeyInstruction = 0; | 2052 core.int buildCounterPartialGroupByKeyInstruction = 0; |
1763 buildPartialGroupByKeyInstruction() { | 2053 buildPartialGroupByKeyInstruction() { |
1764 var o = new api.PartialGroupByKeyInstruction(); | 2054 var o = new api.PartialGroupByKeyInstruction(); |
1765 buildCounterPartialGroupByKeyInstruction++; | 2055 buildCounterPartialGroupByKeyInstruction++; |
1766 if (buildCounterPartialGroupByKeyInstruction < 3) { | 2056 if (buildCounterPartialGroupByKeyInstruction < 3) { |
1767 o.input = buildInstructionInput(); | 2057 o.input = buildInstructionInput(); |
1768 o.inputElementCodec = buildUnnamed3173(); | 2058 o.inputElementCodec = buildUnnamed3014(); |
1769 o.originalCombineValuesInputStoreName = "foo"; | 2059 o.originalCombineValuesInputStoreName = "foo"; |
1770 o.originalCombineValuesStepName = "foo"; | 2060 o.originalCombineValuesStepName = "foo"; |
1771 o.sideInputs = buildUnnamed3174(); | 2061 o.sideInputs = buildUnnamed3015(); |
1772 o.valueCombiningFn = buildUnnamed3175(); | 2062 o.valueCombiningFn = buildUnnamed3016(); |
1773 } | 2063 } |
1774 buildCounterPartialGroupByKeyInstruction--; | 2064 buildCounterPartialGroupByKeyInstruction--; |
1775 return o; | 2065 return o; |
1776 } | 2066 } |
1777 | 2067 |
1778 checkPartialGroupByKeyInstruction(api.PartialGroupByKeyInstruction o) { | 2068 checkPartialGroupByKeyInstruction(api.PartialGroupByKeyInstruction o) { |
1779 buildCounterPartialGroupByKeyInstruction++; | 2069 buildCounterPartialGroupByKeyInstruction++; |
1780 if (buildCounterPartialGroupByKeyInstruction < 3) { | 2070 if (buildCounterPartialGroupByKeyInstruction < 3) { |
1781 checkInstructionInput(o.input); | 2071 checkInstructionInput(o.input); |
1782 checkUnnamed3173(o.inputElementCodec); | 2072 checkUnnamed3014(o.inputElementCodec); |
1783 unittest.expect(o.originalCombineValuesInputStoreName, unittest.equals('foo'
)); | 2073 unittest.expect(o.originalCombineValuesInputStoreName, unittest.equals('foo'
)); |
1784 unittest.expect(o.originalCombineValuesStepName, unittest.equals('foo')); | 2074 unittest.expect(o.originalCombineValuesStepName, unittest.equals('foo')); |
1785 checkUnnamed3174(o.sideInputs); | 2075 checkUnnamed3015(o.sideInputs); |
1786 checkUnnamed3175(o.valueCombiningFn); | 2076 checkUnnamed3016(o.valueCombiningFn); |
1787 } | 2077 } |
1788 buildCounterPartialGroupByKeyInstruction--; | 2078 buildCounterPartialGroupByKeyInstruction--; |
1789 } | 2079 } |
1790 | 2080 |
| 2081 buildUnnamed3017() { |
| 2082 var o = new core.List<api.DisplayData>(); |
| 2083 o.add(buildDisplayData()); |
| 2084 o.add(buildDisplayData()); |
| 2085 return o; |
| 2086 } |
| 2087 |
| 2088 checkUnnamed3017(core.List<api.DisplayData> o) { |
| 2089 unittest.expect(o, unittest.hasLength(2)); |
| 2090 checkDisplayData(o[0]); |
| 2091 checkDisplayData(o[1]); |
| 2092 } |
| 2093 |
| 2094 buildUnnamed3018() { |
| 2095 var o = new core.List<api.ExecutionStageSummary>(); |
| 2096 o.add(buildExecutionStageSummary()); |
| 2097 o.add(buildExecutionStageSummary()); |
| 2098 return o; |
| 2099 } |
| 2100 |
| 2101 checkUnnamed3018(core.List<api.ExecutionStageSummary> o) { |
| 2102 unittest.expect(o, unittest.hasLength(2)); |
| 2103 checkExecutionStageSummary(o[0]); |
| 2104 checkExecutionStageSummary(o[1]); |
| 2105 } |
| 2106 |
| 2107 buildUnnamed3019() { |
| 2108 var o = new core.List<api.TransformSummary>(); |
| 2109 o.add(buildTransformSummary()); |
| 2110 o.add(buildTransformSummary()); |
| 2111 return o; |
| 2112 } |
| 2113 |
| 2114 checkUnnamed3019(core.List<api.TransformSummary> o) { |
| 2115 unittest.expect(o, unittest.hasLength(2)); |
| 2116 checkTransformSummary(o[0]); |
| 2117 checkTransformSummary(o[1]); |
| 2118 } |
| 2119 |
| 2120 core.int buildCounterPipelineDescription = 0; |
| 2121 buildPipelineDescription() { |
| 2122 var o = new api.PipelineDescription(); |
| 2123 buildCounterPipelineDescription++; |
| 2124 if (buildCounterPipelineDescription < 3) { |
| 2125 o.displayData = buildUnnamed3017(); |
| 2126 o.executionPipelineStage = buildUnnamed3018(); |
| 2127 o.originalPipelineTransform = buildUnnamed3019(); |
| 2128 } |
| 2129 buildCounterPipelineDescription--; |
| 2130 return o; |
| 2131 } |
| 2132 |
| 2133 checkPipelineDescription(api.PipelineDescription o) { |
| 2134 buildCounterPipelineDescription++; |
| 2135 if (buildCounterPipelineDescription < 3) { |
| 2136 checkUnnamed3017(o.displayData); |
| 2137 checkUnnamed3018(o.executionPipelineStage); |
| 2138 checkUnnamed3019(o.originalPipelineTransform); |
| 2139 } |
| 2140 buildCounterPipelineDescription--; |
| 2141 } |
| 2142 |
1791 core.int buildCounterPosition = 0; | 2143 core.int buildCounterPosition = 0; |
1792 buildPosition() { | 2144 buildPosition() { |
1793 var o = new api.Position(); | 2145 var o = new api.Position(); |
1794 buildCounterPosition++; | 2146 buildCounterPosition++; |
1795 if (buildCounterPosition < 3) { | 2147 if (buildCounterPosition < 3) { |
1796 o.byteOffset = "foo"; | 2148 o.byteOffset = "foo"; |
1797 o.concatPosition = buildConcatPosition(); | 2149 o.concatPosition = buildConcatPosition(); |
1798 o.end = true; | 2150 o.end = true; |
1799 o.key = "foo"; | 2151 o.key = "foo"; |
1800 o.recordIndex = "foo"; | 2152 o.recordIndex = "foo"; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1860 } | 2212 } |
1861 | 2213 |
1862 checkReadInstruction(api.ReadInstruction o) { | 2214 checkReadInstruction(api.ReadInstruction o) { |
1863 buildCounterReadInstruction++; | 2215 buildCounterReadInstruction++; |
1864 if (buildCounterReadInstruction < 3) { | 2216 if (buildCounterReadInstruction < 3) { |
1865 checkSource(o.source); | 2217 checkSource(o.source); |
1866 } | 2218 } |
1867 buildCounterReadInstruction--; | 2219 buildCounterReadInstruction--; |
1868 } | 2220 } |
1869 | 2221 |
1870 buildUnnamed3176() { | 2222 buildUnnamed3020() { |
1871 var o = new core.List<api.WorkItemStatus>(); | 2223 var o = new core.List<api.WorkItemStatus>(); |
1872 o.add(buildWorkItemStatus()); | 2224 o.add(buildWorkItemStatus()); |
1873 o.add(buildWorkItemStatus()); | 2225 o.add(buildWorkItemStatus()); |
1874 return o; | 2226 return o; |
1875 } | 2227 } |
1876 | 2228 |
1877 checkUnnamed3176(core.List<api.WorkItemStatus> o) { | 2229 checkUnnamed3020(core.List<api.WorkItemStatus> o) { |
1878 unittest.expect(o, unittest.hasLength(2)); | 2230 unittest.expect(o, unittest.hasLength(2)); |
1879 checkWorkItemStatus(o[0]); | 2231 checkWorkItemStatus(o[0]); |
1880 checkWorkItemStatus(o[1]); | 2232 checkWorkItemStatus(o[1]); |
1881 } | 2233 } |
1882 | 2234 |
1883 core.int buildCounterReportWorkItemStatusRequest = 0; | 2235 core.int buildCounterReportWorkItemStatusRequest = 0; |
1884 buildReportWorkItemStatusRequest() { | 2236 buildReportWorkItemStatusRequest() { |
1885 var o = new api.ReportWorkItemStatusRequest(); | 2237 var o = new api.ReportWorkItemStatusRequest(); |
1886 buildCounterReportWorkItemStatusRequest++; | 2238 buildCounterReportWorkItemStatusRequest++; |
1887 if (buildCounterReportWorkItemStatusRequest < 3) { | 2239 if (buildCounterReportWorkItemStatusRequest < 3) { |
1888 o.currentWorkerTime = "foo"; | 2240 o.currentWorkerTime = "foo"; |
1889 o.location = "foo"; | 2241 o.location = "foo"; |
1890 o.workItemStatuses = buildUnnamed3176(); | 2242 o.workItemStatuses = buildUnnamed3020(); |
1891 o.workerId = "foo"; | 2243 o.workerId = "foo"; |
1892 } | 2244 } |
1893 buildCounterReportWorkItemStatusRequest--; | 2245 buildCounterReportWorkItemStatusRequest--; |
1894 return o; | 2246 return o; |
1895 } | 2247 } |
1896 | 2248 |
1897 checkReportWorkItemStatusRequest(api.ReportWorkItemStatusRequest o) { | 2249 checkReportWorkItemStatusRequest(api.ReportWorkItemStatusRequest o) { |
1898 buildCounterReportWorkItemStatusRequest++; | 2250 buildCounterReportWorkItemStatusRequest++; |
1899 if (buildCounterReportWorkItemStatusRequest < 3) { | 2251 if (buildCounterReportWorkItemStatusRequest < 3) { |
1900 unittest.expect(o.currentWorkerTime, unittest.equals('foo')); | 2252 unittest.expect(o.currentWorkerTime, unittest.equals('foo')); |
1901 unittest.expect(o.location, unittest.equals('foo')); | 2253 unittest.expect(o.location, unittest.equals('foo')); |
1902 checkUnnamed3176(o.workItemStatuses); | 2254 checkUnnamed3020(o.workItemStatuses); |
1903 unittest.expect(o.workerId, unittest.equals('foo')); | 2255 unittest.expect(o.workerId, unittest.equals('foo')); |
1904 } | 2256 } |
1905 buildCounterReportWorkItemStatusRequest--; | 2257 buildCounterReportWorkItemStatusRequest--; |
1906 } | 2258 } |
1907 | 2259 |
1908 buildUnnamed3177() { | 2260 buildUnnamed3021() { |
1909 var o = new core.List<api.WorkItemServiceState>(); | 2261 var o = new core.List<api.WorkItemServiceState>(); |
1910 o.add(buildWorkItemServiceState()); | 2262 o.add(buildWorkItemServiceState()); |
1911 o.add(buildWorkItemServiceState()); | 2263 o.add(buildWorkItemServiceState()); |
1912 return o; | 2264 return o; |
1913 } | 2265 } |
1914 | 2266 |
1915 checkUnnamed3177(core.List<api.WorkItemServiceState> o) { | 2267 checkUnnamed3021(core.List<api.WorkItemServiceState> o) { |
1916 unittest.expect(o, unittest.hasLength(2)); | 2268 unittest.expect(o, unittest.hasLength(2)); |
1917 checkWorkItemServiceState(o[0]); | 2269 checkWorkItemServiceState(o[0]); |
1918 checkWorkItemServiceState(o[1]); | 2270 checkWorkItemServiceState(o[1]); |
1919 } | 2271 } |
1920 | 2272 |
1921 core.int buildCounterReportWorkItemStatusResponse = 0; | 2273 core.int buildCounterReportWorkItemStatusResponse = 0; |
1922 buildReportWorkItemStatusResponse() { | 2274 buildReportWorkItemStatusResponse() { |
1923 var o = new api.ReportWorkItemStatusResponse(); | 2275 var o = new api.ReportWorkItemStatusResponse(); |
1924 buildCounterReportWorkItemStatusResponse++; | 2276 buildCounterReportWorkItemStatusResponse++; |
1925 if (buildCounterReportWorkItemStatusResponse < 3) { | 2277 if (buildCounterReportWorkItemStatusResponse < 3) { |
1926 o.workItemServiceStates = buildUnnamed3177(); | 2278 o.workItemServiceStates = buildUnnamed3021(); |
1927 } | 2279 } |
1928 buildCounterReportWorkItemStatusResponse--; | 2280 buildCounterReportWorkItemStatusResponse--; |
1929 return o; | 2281 return o; |
1930 } | 2282 } |
1931 | 2283 |
1932 checkReportWorkItemStatusResponse(api.ReportWorkItemStatusResponse o) { | 2284 checkReportWorkItemStatusResponse(api.ReportWorkItemStatusResponse o) { |
1933 buildCounterReportWorkItemStatusResponse++; | 2285 buildCounterReportWorkItemStatusResponse++; |
1934 if (buildCounterReportWorkItemStatusResponse < 3) { | 2286 if (buildCounterReportWorkItemStatusResponse < 3) { |
1935 checkUnnamed3177(o.workItemServiceStates); | 2287 checkUnnamed3021(o.workItemServiceStates); |
1936 } | 2288 } |
1937 buildCounterReportWorkItemStatusResponse--; | 2289 buildCounterReportWorkItemStatusResponse--; |
1938 } | 2290 } |
1939 | 2291 |
1940 core.int buildCounterReportedParallelism = 0; | 2292 core.int buildCounterReportedParallelism = 0; |
1941 buildReportedParallelism() { | 2293 buildReportedParallelism() { |
1942 var o = new api.ReportedParallelism(); | 2294 var o = new api.ReportedParallelism(); |
1943 buildCounterReportedParallelism++; | 2295 buildCounterReportedParallelism++; |
1944 if (buildCounterReportedParallelism < 3) { | 2296 if (buildCounterReportedParallelism < 3) { |
1945 o.isInfinite = true; | 2297 o.isInfinite = true; |
1946 o.value = 42.0; | 2298 o.value = 42.0; |
1947 } | 2299 } |
1948 buildCounterReportedParallelism--; | 2300 buildCounterReportedParallelism--; |
1949 return o; | 2301 return o; |
1950 } | 2302 } |
1951 | 2303 |
1952 checkReportedParallelism(api.ReportedParallelism o) { | 2304 checkReportedParallelism(api.ReportedParallelism o) { |
1953 buildCounterReportedParallelism++; | 2305 buildCounterReportedParallelism++; |
1954 if (buildCounterReportedParallelism < 3) { | 2306 if (buildCounterReportedParallelism < 3) { |
1955 unittest.expect(o.isInfinite, unittest.isTrue); | 2307 unittest.expect(o.isInfinite, unittest.isTrue); |
1956 unittest.expect(o.value, unittest.equals(42.0)); | 2308 unittest.expect(o.value, unittest.equals(42.0)); |
1957 } | 2309 } |
1958 buildCounterReportedParallelism--; | 2310 buildCounterReportedParallelism--; |
1959 } | 2311 } |
1960 | 2312 |
1961 buildUnnamed3178() { | 2313 buildUnnamed3022() { |
1962 var o = new core.List<api.CPUTime>(); | 2314 var o = new core.List<api.CPUTime>(); |
1963 o.add(buildCPUTime()); | 2315 o.add(buildCPUTime()); |
1964 o.add(buildCPUTime()); | 2316 o.add(buildCPUTime()); |
1965 return o; | 2317 return o; |
1966 } | 2318 } |
1967 | 2319 |
1968 checkUnnamed3178(core.List<api.CPUTime> o) { | 2320 checkUnnamed3022(core.List<api.CPUTime> o) { |
1969 unittest.expect(o, unittest.hasLength(2)); | 2321 unittest.expect(o, unittest.hasLength(2)); |
1970 checkCPUTime(o[0]); | 2322 checkCPUTime(o[0]); |
1971 checkCPUTime(o[1]); | 2323 checkCPUTime(o[1]); |
1972 } | 2324 } |
1973 | 2325 |
1974 core.int buildCounterResourceUtilizationReport = 0; | 2326 core.int buildCounterResourceUtilizationReport = 0; |
1975 buildResourceUtilizationReport() { | 2327 buildResourceUtilizationReport() { |
1976 var o = new api.ResourceUtilizationReport(); | 2328 var o = new api.ResourceUtilizationReport(); |
1977 buildCounterResourceUtilizationReport++; | 2329 buildCounterResourceUtilizationReport++; |
1978 if (buildCounterResourceUtilizationReport < 3) { | 2330 if (buildCounterResourceUtilizationReport < 3) { |
1979 o.cpuTime = buildUnnamed3178(); | 2331 o.cpuTime = buildUnnamed3022(); |
1980 } | 2332 } |
1981 buildCounterResourceUtilizationReport--; | 2333 buildCounterResourceUtilizationReport--; |
1982 return o; | 2334 return o; |
1983 } | 2335 } |
1984 | 2336 |
1985 checkResourceUtilizationReport(api.ResourceUtilizationReport o) { | 2337 checkResourceUtilizationReport(api.ResourceUtilizationReport o) { |
1986 buildCounterResourceUtilizationReport++; | 2338 buildCounterResourceUtilizationReport++; |
1987 if (buildCounterResourceUtilizationReport < 3) { | 2339 if (buildCounterResourceUtilizationReport < 3) { |
1988 checkUnnamed3178(o.cpuTime); | 2340 checkUnnamed3022(o.cpuTime); |
1989 } | 2341 } |
1990 buildCounterResourceUtilizationReport--; | 2342 buildCounterResourceUtilizationReport--; |
1991 } | 2343 } |
1992 | 2344 |
1993 core.int buildCounterResourceUtilizationReportResponse = 0; | 2345 core.int buildCounterResourceUtilizationReportResponse = 0; |
1994 buildResourceUtilizationReportResponse() { | 2346 buildResourceUtilizationReportResponse() { |
1995 var o = new api.ResourceUtilizationReportResponse(); | 2347 var o = new api.ResourceUtilizationReportResponse(); |
1996 buildCounterResourceUtilizationReportResponse++; | 2348 buildCounterResourceUtilizationReportResponse++; |
1997 if (buildCounterResourceUtilizationReportResponse < 3) { | 2349 if (buildCounterResourceUtilizationReportResponse < 3) { |
1998 } | 2350 } |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2067 return o; | 2419 return o; |
2068 } | 2420 } |
2069 | 2421 |
2070 checkSendDebugCaptureResponse(api.SendDebugCaptureResponse o) { | 2422 checkSendDebugCaptureResponse(api.SendDebugCaptureResponse o) { |
2071 buildCounterSendDebugCaptureResponse++; | 2423 buildCounterSendDebugCaptureResponse++; |
2072 if (buildCounterSendDebugCaptureResponse < 3) { | 2424 if (buildCounterSendDebugCaptureResponse < 3) { |
2073 } | 2425 } |
2074 buildCounterSendDebugCaptureResponse--; | 2426 buildCounterSendDebugCaptureResponse--; |
2075 } | 2427 } |
2076 | 2428 |
2077 buildUnnamed3179() { | 2429 buildUnnamed3023() { |
2078 var o = new core.List<api.WorkerMessage>(); | 2430 var o = new core.List<api.WorkerMessage>(); |
2079 o.add(buildWorkerMessage()); | 2431 o.add(buildWorkerMessage()); |
2080 o.add(buildWorkerMessage()); | 2432 o.add(buildWorkerMessage()); |
2081 return o; | 2433 return o; |
2082 } | 2434 } |
2083 | 2435 |
2084 checkUnnamed3179(core.List<api.WorkerMessage> o) { | 2436 checkUnnamed3023(core.List<api.WorkerMessage> o) { |
2085 unittest.expect(o, unittest.hasLength(2)); | 2437 unittest.expect(o, unittest.hasLength(2)); |
2086 checkWorkerMessage(o[0]); | 2438 checkWorkerMessage(o[0]); |
2087 checkWorkerMessage(o[1]); | 2439 checkWorkerMessage(o[1]); |
2088 } | 2440 } |
2089 | 2441 |
2090 core.int buildCounterSendWorkerMessagesRequest = 0; | 2442 core.int buildCounterSendWorkerMessagesRequest = 0; |
2091 buildSendWorkerMessagesRequest() { | 2443 buildSendWorkerMessagesRequest() { |
2092 var o = new api.SendWorkerMessagesRequest(); | 2444 var o = new api.SendWorkerMessagesRequest(); |
2093 buildCounterSendWorkerMessagesRequest++; | 2445 buildCounterSendWorkerMessagesRequest++; |
2094 if (buildCounterSendWorkerMessagesRequest < 3) { | 2446 if (buildCounterSendWorkerMessagesRequest < 3) { |
2095 o.workerMessages = buildUnnamed3179(); | 2447 o.workerMessages = buildUnnamed3023(); |
2096 } | 2448 } |
2097 buildCounterSendWorkerMessagesRequest--; | 2449 buildCounterSendWorkerMessagesRequest--; |
2098 return o; | 2450 return o; |
2099 } | 2451 } |
2100 | 2452 |
2101 checkSendWorkerMessagesRequest(api.SendWorkerMessagesRequest o) { | 2453 checkSendWorkerMessagesRequest(api.SendWorkerMessagesRequest o) { |
2102 buildCounterSendWorkerMessagesRequest++; | 2454 buildCounterSendWorkerMessagesRequest++; |
2103 if (buildCounterSendWorkerMessagesRequest < 3) { | 2455 if (buildCounterSendWorkerMessagesRequest < 3) { |
2104 checkUnnamed3179(o.workerMessages); | 2456 checkUnnamed3023(o.workerMessages); |
2105 } | 2457 } |
2106 buildCounterSendWorkerMessagesRequest--; | 2458 buildCounterSendWorkerMessagesRequest--; |
2107 } | 2459 } |
2108 | 2460 |
2109 buildUnnamed3180() { | 2461 buildUnnamed3024() { |
2110 var o = new core.List<api.WorkerMessageResponse>(); | 2462 var o = new core.List<api.WorkerMessageResponse>(); |
2111 o.add(buildWorkerMessageResponse()); | 2463 o.add(buildWorkerMessageResponse()); |
2112 o.add(buildWorkerMessageResponse()); | 2464 o.add(buildWorkerMessageResponse()); |
2113 return o; | 2465 return o; |
2114 } | 2466 } |
2115 | 2467 |
2116 checkUnnamed3180(core.List<api.WorkerMessageResponse> o) { | 2468 checkUnnamed3024(core.List<api.WorkerMessageResponse> o) { |
2117 unittest.expect(o, unittest.hasLength(2)); | 2469 unittest.expect(o, unittest.hasLength(2)); |
2118 checkWorkerMessageResponse(o[0]); | 2470 checkWorkerMessageResponse(o[0]); |
2119 checkWorkerMessageResponse(o[1]); | 2471 checkWorkerMessageResponse(o[1]); |
2120 } | 2472 } |
2121 | 2473 |
2122 core.int buildCounterSendWorkerMessagesResponse = 0; | 2474 core.int buildCounterSendWorkerMessagesResponse = 0; |
2123 buildSendWorkerMessagesResponse() { | 2475 buildSendWorkerMessagesResponse() { |
2124 var o = new api.SendWorkerMessagesResponse(); | 2476 var o = new api.SendWorkerMessagesResponse(); |
2125 buildCounterSendWorkerMessagesResponse++; | 2477 buildCounterSendWorkerMessagesResponse++; |
2126 if (buildCounterSendWorkerMessagesResponse < 3) { | 2478 if (buildCounterSendWorkerMessagesResponse < 3) { |
2127 o.workerMessageResponses = buildUnnamed3180(); | 2479 o.workerMessageResponses = buildUnnamed3024(); |
2128 } | 2480 } |
2129 buildCounterSendWorkerMessagesResponse--; | 2481 buildCounterSendWorkerMessagesResponse--; |
2130 return o; | 2482 return o; |
2131 } | 2483 } |
2132 | 2484 |
2133 checkSendWorkerMessagesResponse(api.SendWorkerMessagesResponse o) { | 2485 checkSendWorkerMessagesResponse(api.SendWorkerMessagesResponse o) { |
2134 buildCounterSendWorkerMessagesResponse++; | 2486 buildCounterSendWorkerMessagesResponse++; |
2135 if (buildCounterSendWorkerMessagesResponse < 3) { | 2487 if (buildCounterSendWorkerMessagesResponse < 3) { |
2136 checkUnnamed3180(o.workerMessageResponses); | 2488 checkUnnamed3024(o.workerMessageResponses); |
2137 } | 2489 } |
2138 buildCounterSendWorkerMessagesResponse--; | 2490 buildCounterSendWorkerMessagesResponse--; |
2139 } | 2491 } |
2140 | 2492 |
2141 buildUnnamed3181() { | 2493 buildUnnamed3025() { |
2142 var o = new core.List<api.SideInputInfo>(); | 2494 var o = new core.List<api.SideInputInfo>(); |
2143 o.add(buildSideInputInfo()); | 2495 o.add(buildSideInputInfo()); |
2144 o.add(buildSideInputInfo()); | 2496 o.add(buildSideInputInfo()); |
2145 return o; | 2497 return o; |
2146 } | 2498 } |
2147 | 2499 |
2148 checkUnnamed3181(core.List<api.SideInputInfo> o) { | 2500 checkUnnamed3025(core.List<api.SideInputInfo> o) { |
2149 unittest.expect(o, unittest.hasLength(2)); | 2501 unittest.expect(o, unittest.hasLength(2)); |
2150 checkSideInputInfo(o[0]); | 2502 checkSideInputInfo(o[0]); |
2151 checkSideInputInfo(o[1]); | 2503 checkSideInputInfo(o[1]); |
2152 } | 2504 } |
2153 | 2505 |
2154 buildUnnamed3182() { | 2506 buildUnnamed3026() { |
2155 var o = new core.List<api.SeqMapTaskOutputInfo>(); | 2507 var o = new core.List<api.SeqMapTaskOutputInfo>(); |
2156 o.add(buildSeqMapTaskOutputInfo()); | 2508 o.add(buildSeqMapTaskOutputInfo()); |
2157 o.add(buildSeqMapTaskOutputInfo()); | 2509 o.add(buildSeqMapTaskOutputInfo()); |
2158 return o; | 2510 return o; |
2159 } | 2511 } |
2160 | 2512 |
2161 checkUnnamed3182(core.List<api.SeqMapTaskOutputInfo> o) { | 2513 checkUnnamed3026(core.List<api.SeqMapTaskOutputInfo> o) { |
2162 unittest.expect(o, unittest.hasLength(2)); | 2514 unittest.expect(o, unittest.hasLength(2)); |
2163 checkSeqMapTaskOutputInfo(o[0]); | 2515 checkSeqMapTaskOutputInfo(o[0]); |
2164 checkSeqMapTaskOutputInfo(o[1]); | 2516 checkSeqMapTaskOutputInfo(o[1]); |
2165 } | 2517 } |
2166 | 2518 |
2167 buildUnnamed3183() { | 2519 buildUnnamed3027() { |
2168 var o = new core.Map<core.String, core.Object>(); | 2520 var o = new core.Map<core.String, core.Object>(); |
2169 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2521 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2170 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2522 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2171 return o; | 2523 return o; |
2172 } | 2524 } |
2173 | 2525 |
2174 checkUnnamed3183(core.Map<core.String, core.Object> o) { | 2526 checkUnnamed3027(core.Map<core.String, core.Object> o) { |
2175 unittest.expect(o, unittest.hasLength(2)); | 2527 unittest.expect(o, unittest.hasLength(2)); |
2176 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')); | 2528 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')); |
2177 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')); | 2529 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')); |
2178 } | 2530 } |
2179 | 2531 |
2180 core.int buildCounterSeqMapTask = 0; | 2532 core.int buildCounterSeqMapTask = 0; |
2181 buildSeqMapTask() { | 2533 buildSeqMapTask() { |
2182 var o = new api.SeqMapTask(); | 2534 var o = new api.SeqMapTask(); |
2183 buildCounterSeqMapTask++; | 2535 buildCounterSeqMapTask++; |
2184 if (buildCounterSeqMapTask < 3) { | 2536 if (buildCounterSeqMapTask < 3) { |
2185 o.inputs = buildUnnamed3181(); | 2537 o.inputs = buildUnnamed3025(); |
2186 o.name = "foo"; | 2538 o.name = "foo"; |
2187 o.outputInfos = buildUnnamed3182(); | 2539 o.outputInfos = buildUnnamed3026(); |
2188 o.stageName = "foo"; | 2540 o.stageName = "foo"; |
2189 o.systemName = "foo"; | 2541 o.systemName = "foo"; |
2190 o.userFn = buildUnnamed3183(); | 2542 o.userFn = buildUnnamed3027(); |
2191 } | 2543 } |
2192 buildCounterSeqMapTask--; | 2544 buildCounterSeqMapTask--; |
2193 return o; | 2545 return o; |
2194 } | 2546 } |
2195 | 2547 |
2196 checkSeqMapTask(api.SeqMapTask o) { | 2548 checkSeqMapTask(api.SeqMapTask o) { |
2197 buildCounterSeqMapTask++; | 2549 buildCounterSeqMapTask++; |
2198 if (buildCounterSeqMapTask < 3) { | 2550 if (buildCounterSeqMapTask < 3) { |
2199 checkUnnamed3181(o.inputs); | 2551 checkUnnamed3025(o.inputs); |
2200 unittest.expect(o.name, unittest.equals('foo')); | 2552 unittest.expect(o.name, unittest.equals('foo')); |
2201 checkUnnamed3182(o.outputInfos); | 2553 checkUnnamed3026(o.outputInfos); |
2202 unittest.expect(o.stageName, unittest.equals('foo')); | 2554 unittest.expect(o.stageName, unittest.equals('foo')); |
2203 unittest.expect(o.systemName, unittest.equals('foo')); | 2555 unittest.expect(o.systemName, unittest.equals('foo')); |
2204 checkUnnamed3183(o.userFn); | 2556 checkUnnamed3027(o.userFn); |
2205 } | 2557 } |
2206 buildCounterSeqMapTask--; | 2558 buildCounterSeqMapTask--; |
2207 } | 2559 } |
2208 | 2560 |
2209 core.int buildCounterSeqMapTaskOutputInfo = 0; | 2561 core.int buildCounterSeqMapTaskOutputInfo = 0; |
2210 buildSeqMapTaskOutputInfo() { | 2562 buildSeqMapTaskOutputInfo() { |
2211 var o = new api.SeqMapTaskOutputInfo(); | 2563 var o = new api.SeqMapTaskOutputInfo(); |
2212 buildCounterSeqMapTaskOutputInfo++; | 2564 buildCounterSeqMapTaskOutputInfo++; |
2213 if (buildCounterSeqMapTaskOutputInfo < 3) { | 2565 if (buildCounterSeqMapTaskOutputInfo < 3) { |
2214 o.sink = buildSink(); | 2566 o.sink = buildSink(); |
(...skipping 26 matching lines...) Expand all Loading... |
2241 | 2593 |
2242 checkShellTask(api.ShellTask o) { | 2594 checkShellTask(api.ShellTask o) { |
2243 buildCounterShellTask++; | 2595 buildCounterShellTask++; |
2244 if (buildCounterShellTask < 3) { | 2596 if (buildCounterShellTask < 3) { |
2245 unittest.expect(o.command, unittest.equals('foo')); | 2597 unittest.expect(o.command, unittest.equals('foo')); |
2246 unittest.expect(o.exitCode, unittest.equals(42)); | 2598 unittest.expect(o.exitCode, unittest.equals(42)); |
2247 } | 2599 } |
2248 buildCounterShellTask--; | 2600 buildCounterShellTask--; |
2249 } | 2601 } |
2250 | 2602 |
2251 buildUnnamed3184() { | 2603 buildUnnamed3028() { |
2252 var o = new core.Map<core.String, core.Object>(); | 2604 var o = new core.Map<core.String, core.Object>(); |
2253 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2605 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2254 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2606 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2255 return o; | 2607 return o; |
2256 } | 2608 } |
2257 | 2609 |
2258 checkUnnamed3184(core.Map<core.String, core.Object> o) { | 2610 checkUnnamed3028(core.Map<core.String, core.Object> o) { |
2259 unittest.expect(o, unittest.hasLength(2)); | 2611 unittest.expect(o, unittest.hasLength(2)); |
2260 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')); | 2612 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')); |
2261 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')); | 2613 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')); |
2262 } | 2614 } |
2263 | 2615 |
2264 buildUnnamed3185() { | 2616 buildUnnamed3029() { |
2265 var o = new core.List<api.Source>(); | 2617 var o = new core.List<api.Source>(); |
2266 o.add(buildSource()); | 2618 o.add(buildSource()); |
2267 o.add(buildSource()); | 2619 o.add(buildSource()); |
2268 return o; | 2620 return o; |
2269 } | 2621 } |
2270 | 2622 |
2271 checkUnnamed3185(core.List<api.Source> o) { | 2623 checkUnnamed3029(core.List<api.Source> o) { |
2272 unittest.expect(o, unittest.hasLength(2)); | 2624 unittest.expect(o, unittest.hasLength(2)); |
2273 checkSource(o[0]); | 2625 checkSource(o[0]); |
2274 checkSource(o[1]); | 2626 checkSource(o[1]); |
2275 } | 2627 } |
2276 | 2628 |
2277 core.int buildCounterSideInputInfo = 0; | 2629 core.int buildCounterSideInputInfo = 0; |
2278 buildSideInputInfo() { | 2630 buildSideInputInfo() { |
2279 var o = new api.SideInputInfo(); | 2631 var o = new api.SideInputInfo(); |
2280 buildCounterSideInputInfo++; | 2632 buildCounterSideInputInfo++; |
2281 if (buildCounterSideInputInfo < 3) { | 2633 if (buildCounterSideInputInfo < 3) { |
2282 o.kind = buildUnnamed3184(); | 2634 o.kind = buildUnnamed3028(); |
2283 o.sources = buildUnnamed3185(); | 2635 o.sources = buildUnnamed3029(); |
2284 o.tag = "foo"; | 2636 o.tag = "foo"; |
2285 } | 2637 } |
2286 buildCounterSideInputInfo--; | 2638 buildCounterSideInputInfo--; |
2287 return o; | 2639 return o; |
2288 } | 2640 } |
2289 | 2641 |
2290 checkSideInputInfo(api.SideInputInfo o) { | 2642 checkSideInputInfo(api.SideInputInfo o) { |
2291 buildCounterSideInputInfo++; | 2643 buildCounterSideInputInfo++; |
2292 if (buildCounterSideInputInfo < 3) { | 2644 if (buildCounterSideInputInfo < 3) { |
2293 checkUnnamed3184(o.kind); | 2645 checkUnnamed3028(o.kind); |
2294 checkUnnamed3185(o.sources); | 2646 checkUnnamed3029(o.sources); |
2295 unittest.expect(o.tag, unittest.equals('foo')); | 2647 unittest.expect(o.tag, unittest.equals('foo')); |
2296 } | 2648 } |
2297 buildCounterSideInputInfo--; | 2649 buildCounterSideInputInfo--; |
2298 } | 2650 } |
2299 | 2651 |
2300 buildUnnamed3186() { | 2652 buildUnnamed3030() { |
2301 var o = new core.Map<core.String, core.Object>(); | 2653 var o = new core.Map<core.String, core.Object>(); |
2302 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2654 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2303 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2655 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2304 return o; | 2656 return o; |
2305 } | 2657 } |
2306 | 2658 |
2307 checkUnnamed3186(core.Map<core.String, core.Object> o) { | 2659 checkUnnamed3030(core.Map<core.String, core.Object> o) { |
2308 unittest.expect(o, unittest.hasLength(2)); | 2660 unittest.expect(o, unittest.hasLength(2)); |
2309 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')); | 2661 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')); |
2310 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')); | 2662 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')); |
2311 } | 2663 } |
2312 | 2664 |
2313 buildUnnamed3187() { | 2665 buildUnnamed3031() { |
2314 var o = new core.Map<core.String, core.Object>(); | 2666 var o = new core.Map<core.String, core.Object>(); |
2315 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2667 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2316 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2668 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2317 return o; | 2669 return o; |
2318 } | 2670 } |
2319 | 2671 |
2320 checkUnnamed3187(core.Map<core.String, core.Object> o) { | 2672 checkUnnamed3031(core.Map<core.String, core.Object> o) { |
2321 unittest.expect(o, unittest.hasLength(2)); | 2673 unittest.expect(o, unittest.hasLength(2)); |
2322 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')); | 2674 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')); |
2323 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')); | 2675 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')); |
2324 } | 2676 } |
2325 | 2677 |
2326 core.int buildCounterSink = 0; | 2678 core.int buildCounterSink = 0; |
2327 buildSink() { | 2679 buildSink() { |
2328 var o = new api.Sink(); | 2680 var o = new api.Sink(); |
2329 buildCounterSink++; | 2681 buildCounterSink++; |
2330 if (buildCounterSink < 3) { | 2682 if (buildCounterSink < 3) { |
2331 o.codec = buildUnnamed3186(); | 2683 o.codec = buildUnnamed3030(); |
2332 o.spec = buildUnnamed3187(); | 2684 o.spec = buildUnnamed3031(); |
2333 } | 2685 } |
2334 buildCounterSink--; | 2686 buildCounterSink--; |
2335 return o; | 2687 return o; |
2336 } | 2688 } |
2337 | 2689 |
2338 checkSink(api.Sink o) { | 2690 checkSink(api.Sink o) { |
2339 buildCounterSink++; | 2691 buildCounterSink++; |
2340 if (buildCounterSink < 3) { | 2692 if (buildCounterSink < 3) { |
2341 checkUnnamed3186(o.codec); | 2693 checkUnnamed3030(o.codec); |
2342 checkUnnamed3187(o.spec); | 2694 checkUnnamed3031(o.spec); |
2343 } | 2695 } |
2344 buildCounterSink--; | 2696 buildCounterSink--; |
2345 } | 2697 } |
2346 | 2698 |
2347 buildUnnamed3188() { | 2699 buildUnnamed3032() { |
2348 var o = new core.Map<core.String, core.Object>(); | 2700 var o = new core.Map<core.String, core.Object>(); |
2349 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2701 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2350 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2702 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2351 return o; | 2703 return o; |
2352 } | 2704 } |
2353 | 2705 |
2354 checkUnnamed3188(core.Map<core.String, core.Object> o) { | 2706 checkUnnamed3032(core.Map<core.String, core.Object> o) { |
2355 unittest.expect(o, unittest.hasLength(2)); | 2707 unittest.expect(o, unittest.hasLength(2)); |
2356 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')); | 2708 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')); |
2357 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')); | 2709 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')); |
2358 } | 2710 } |
2359 | 2711 |
2360 buildUnnamed3189() { | 2712 buildUnnamed3033() { |
2361 var o = new core.List<core.Map<core.String, core.Object>>(); | 2713 var o = new core.List<core.Map<core.String, core.Object>>(); |
2362 o.add(buildUnnamed3188()); | 2714 o.add(buildUnnamed3032()); |
2363 o.add(buildUnnamed3188()); | 2715 o.add(buildUnnamed3032()); |
2364 return o; | 2716 return o; |
2365 } | 2717 } |
2366 | 2718 |
2367 checkUnnamed3189(core.List<core.Map<core.String, core.Object>> o) { | 2719 checkUnnamed3033(core.List<core.Map<core.String, core.Object>> o) { |
2368 unittest.expect(o, unittest.hasLength(2)); | 2720 unittest.expect(o, unittest.hasLength(2)); |
2369 checkUnnamed3188(o[0]); | 2721 checkUnnamed3032(o[0]); |
2370 checkUnnamed3188(o[1]); | 2722 checkUnnamed3032(o[1]); |
2371 } | 2723 } |
2372 | 2724 |
2373 buildUnnamed3190() { | 2725 buildUnnamed3034() { |
2374 var o = new core.Map<core.String, core.Object>(); | 2726 var o = new core.Map<core.String, core.Object>(); |
2375 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2727 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2376 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2728 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2377 return o; | 2729 return o; |
2378 } | 2730 } |
2379 | 2731 |
2380 checkUnnamed3190(core.Map<core.String, core.Object> o) { | 2732 checkUnnamed3034(core.Map<core.String, core.Object> o) { |
2381 unittest.expect(o, unittest.hasLength(2)); | 2733 unittest.expect(o, unittest.hasLength(2)); |
2382 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')); | 2734 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')); |
2383 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')); | 2735 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')); |
2384 } | 2736 } |
2385 | 2737 |
2386 buildUnnamed3191() { | 2738 buildUnnamed3035() { |
2387 var o = new core.Map<core.String, core.Object>(); | 2739 var o = new core.Map<core.String, core.Object>(); |
2388 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2740 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2389 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2741 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2390 return o; | 2742 return o; |
2391 } | 2743 } |
2392 | 2744 |
2393 checkUnnamed3191(core.Map<core.String, core.Object> o) { | 2745 checkUnnamed3035(core.Map<core.String, core.Object> o) { |
2394 unittest.expect(o, unittest.hasLength(2)); | 2746 unittest.expect(o, unittest.hasLength(2)); |
2395 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')); | 2747 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')); |
2396 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')); | 2748 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')); |
2397 } | 2749 } |
2398 | 2750 |
2399 core.int buildCounterSource = 0; | 2751 core.int buildCounterSource = 0; |
2400 buildSource() { | 2752 buildSource() { |
2401 var o = new api.Source(); | 2753 var o = new api.Source(); |
2402 buildCounterSource++; | 2754 buildCounterSource++; |
2403 if (buildCounterSource < 3) { | 2755 if (buildCounterSource < 3) { |
2404 o.baseSpecs = buildUnnamed3189(); | 2756 o.baseSpecs = buildUnnamed3033(); |
2405 o.codec = buildUnnamed3190(); | 2757 o.codec = buildUnnamed3034(); |
2406 o.doesNotNeedSplitting = true; | 2758 o.doesNotNeedSplitting = true; |
2407 o.metadata = buildSourceMetadata(); | 2759 o.metadata = buildSourceMetadata(); |
2408 o.spec = buildUnnamed3191(); | 2760 o.spec = buildUnnamed3035(); |
2409 } | 2761 } |
2410 buildCounterSource--; | 2762 buildCounterSource--; |
2411 return o; | 2763 return o; |
2412 } | 2764 } |
2413 | 2765 |
2414 checkSource(api.Source o) { | 2766 checkSource(api.Source o) { |
2415 buildCounterSource++; | 2767 buildCounterSource++; |
2416 if (buildCounterSource < 3) { | 2768 if (buildCounterSource < 3) { |
2417 checkUnnamed3189(o.baseSpecs); | 2769 checkUnnamed3033(o.baseSpecs); |
2418 checkUnnamed3190(o.codec); | 2770 checkUnnamed3034(o.codec); |
2419 unittest.expect(o.doesNotNeedSplitting, unittest.isTrue); | 2771 unittest.expect(o.doesNotNeedSplitting, unittest.isTrue); |
2420 checkSourceMetadata(o.metadata); | 2772 checkSourceMetadata(o.metadata); |
2421 checkUnnamed3191(o.spec); | 2773 checkUnnamed3035(o.spec); |
2422 } | 2774 } |
2423 buildCounterSource--; | 2775 buildCounterSource--; |
2424 } | 2776 } |
2425 | 2777 |
2426 core.int buildCounterSourceFork = 0; | 2778 core.int buildCounterSourceFork = 0; |
2427 buildSourceFork() { | 2779 buildSourceFork() { |
2428 var o = new api.SourceFork(); | 2780 var o = new api.SourceFork(); |
2429 buildCounterSourceFork++; | 2781 buildCounterSourceFork++; |
2430 if (buildCounterSourceFork < 3) { | 2782 if (buildCounterSourceFork < 3) { |
2431 o.primary = buildSourceSplitShard(); | 2783 o.primary = buildSourceSplitShard(); |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2586 | 2938 |
2587 checkSourceSplitRequest(api.SourceSplitRequest o) { | 2939 checkSourceSplitRequest(api.SourceSplitRequest o) { |
2588 buildCounterSourceSplitRequest++; | 2940 buildCounterSourceSplitRequest++; |
2589 if (buildCounterSourceSplitRequest < 3) { | 2941 if (buildCounterSourceSplitRequest < 3) { |
2590 checkSourceSplitOptions(o.options); | 2942 checkSourceSplitOptions(o.options); |
2591 checkSource(o.source); | 2943 checkSource(o.source); |
2592 } | 2944 } |
2593 buildCounterSourceSplitRequest--; | 2945 buildCounterSourceSplitRequest--; |
2594 } | 2946 } |
2595 | 2947 |
2596 buildUnnamed3192() { | 2948 buildUnnamed3036() { |
2597 var o = new core.List<api.DerivedSource>(); | 2949 var o = new core.List<api.DerivedSource>(); |
2598 o.add(buildDerivedSource()); | 2950 o.add(buildDerivedSource()); |
2599 o.add(buildDerivedSource()); | 2951 o.add(buildDerivedSource()); |
2600 return o; | 2952 return o; |
2601 } | 2953 } |
2602 | 2954 |
2603 checkUnnamed3192(core.List<api.DerivedSource> o) { | 2955 checkUnnamed3036(core.List<api.DerivedSource> o) { |
2604 unittest.expect(o, unittest.hasLength(2)); | 2956 unittest.expect(o, unittest.hasLength(2)); |
2605 checkDerivedSource(o[0]); | 2957 checkDerivedSource(o[0]); |
2606 checkDerivedSource(o[1]); | 2958 checkDerivedSource(o[1]); |
2607 } | 2959 } |
2608 | 2960 |
2609 buildUnnamed3193() { | 2961 buildUnnamed3037() { |
2610 var o = new core.List<api.SourceSplitShard>(); | 2962 var o = new core.List<api.SourceSplitShard>(); |
2611 o.add(buildSourceSplitShard()); | 2963 o.add(buildSourceSplitShard()); |
2612 o.add(buildSourceSplitShard()); | 2964 o.add(buildSourceSplitShard()); |
2613 return o; | 2965 return o; |
2614 } | 2966 } |
2615 | 2967 |
2616 checkUnnamed3193(core.List<api.SourceSplitShard> o) { | 2968 checkUnnamed3037(core.List<api.SourceSplitShard> o) { |
2617 unittest.expect(o, unittest.hasLength(2)); | 2969 unittest.expect(o, unittest.hasLength(2)); |
2618 checkSourceSplitShard(o[0]); | 2970 checkSourceSplitShard(o[0]); |
2619 checkSourceSplitShard(o[1]); | 2971 checkSourceSplitShard(o[1]); |
2620 } | 2972 } |
2621 | 2973 |
2622 core.int buildCounterSourceSplitResponse = 0; | 2974 core.int buildCounterSourceSplitResponse = 0; |
2623 buildSourceSplitResponse() { | 2975 buildSourceSplitResponse() { |
2624 var o = new api.SourceSplitResponse(); | 2976 var o = new api.SourceSplitResponse(); |
2625 buildCounterSourceSplitResponse++; | 2977 buildCounterSourceSplitResponse++; |
2626 if (buildCounterSourceSplitResponse < 3) { | 2978 if (buildCounterSourceSplitResponse < 3) { |
2627 o.bundles = buildUnnamed3192(); | 2979 o.bundles = buildUnnamed3036(); |
2628 o.outcome = "foo"; | 2980 o.outcome = "foo"; |
2629 o.shards = buildUnnamed3193(); | 2981 o.shards = buildUnnamed3037(); |
2630 } | 2982 } |
2631 buildCounterSourceSplitResponse--; | 2983 buildCounterSourceSplitResponse--; |
2632 return o; | 2984 return o; |
2633 } | 2985 } |
2634 | 2986 |
2635 checkSourceSplitResponse(api.SourceSplitResponse o) { | 2987 checkSourceSplitResponse(api.SourceSplitResponse o) { |
2636 buildCounterSourceSplitResponse++; | 2988 buildCounterSourceSplitResponse++; |
2637 if (buildCounterSourceSplitResponse < 3) { | 2989 if (buildCounterSourceSplitResponse < 3) { |
2638 checkUnnamed3192(o.bundles); | 2990 checkUnnamed3036(o.bundles); |
2639 unittest.expect(o.outcome, unittest.equals('foo')); | 2991 unittest.expect(o.outcome, unittest.equals('foo')); |
2640 checkUnnamed3193(o.shards); | 2992 checkUnnamed3037(o.shards); |
2641 } | 2993 } |
2642 buildCounterSourceSplitResponse--; | 2994 buildCounterSourceSplitResponse--; |
2643 } | 2995 } |
2644 | 2996 |
2645 core.int buildCounterSourceSplitShard = 0; | 2997 core.int buildCounterSourceSplitShard = 0; |
2646 buildSourceSplitShard() { | 2998 buildSourceSplitShard() { |
2647 var o = new api.SourceSplitShard(); | 2999 var o = new api.SourceSplitShard(); |
2648 buildCounterSourceSplitShard++; | 3000 buildCounterSourceSplitShard++; |
2649 if (buildCounterSourceSplitShard < 3) { | 3001 if (buildCounterSourceSplitShard < 3) { |
2650 o.derivationMode = "foo"; | 3002 o.derivationMode = "foo"; |
(...skipping 26 matching lines...) Expand all Loading... |
2677 | 3029 |
2678 checkSplitInt64(api.SplitInt64 o) { | 3030 checkSplitInt64(api.SplitInt64 o) { |
2679 buildCounterSplitInt64++; | 3031 buildCounterSplitInt64++; |
2680 if (buildCounterSplitInt64 < 3) { | 3032 if (buildCounterSplitInt64 < 3) { |
2681 unittest.expect(o.highBits, unittest.equals(42)); | 3033 unittest.expect(o.highBits, unittest.equals(42)); |
2682 unittest.expect(o.lowBits, unittest.equals(42)); | 3034 unittest.expect(o.lowBits, unittest.equals(42)); |
2683 } | 3035 } |
2684 buildCounterSplitInt64--; | 3036 buildCounterSplitInt64--; |
2685 } | 3037 } |
2686 | 3038 |
| 3039 core.int buildCounterStageSource = 0; |
| 3040 buildStageSource() { |
| 3041 var o = new api.StageSource(); |
| 3042 buildCounterStageSource++; |
| 3043 if (buildCounterStageSource < 3) { |
| 3044 o.name = "foo"; |
| 3045 o.originalTransformOrCollection = "foo"; |
| 3046 o.sizeBytes = "foo"; |
| 3047 o.userName = "foo"; |
| 3048 } |
| 3049 buildCounterStageSource--; |
| 3050 return o; |
| 3051 } |
| 3052 |
| 3053 checkStageSource(api.StageSource o) { |
| 3054 buildCounterStageSource++; |
| 3055 if (buildCounterStageSource < 3) { |
| 3056 unittest.expect(o.name, unittest.equals('foo')); |
| 3057 unittest.expect(o.originalTransformOrCollection, unittest.equals('foo')); |
| 3058 unittest.expect(o.sizeBytes, unittest.equals('foo')); |
| 3059 unittest.expect(o.userName, unittest.equals('foo')); |
| 3060 } |
| 3061 buildCounterStageSource--; |
| 3062 } |
| 3063 |
2687 core.int buildCounterStateFamilyConfig = 0; | 3064 core.int buildCounterStateFamilyConfig = 0; |
2688 buildStateFamilyConfig() { | 3065 buildStateFamilyConfig() { |
2689 var o = new api.StateFamilyConfig(); | 3066 var o = new api.StateFamilyConfig(); |
2690 buildCounterStateFamilyConfig++; | 3067 buildCounterStateFamilyConfig++; |
2691 if (buildCounterStateFamilyConfig < 3) { | 3068 if (buildCounterStateFamilyConfig < 3) { |
2692 o.isRead = true; | 3069 o.isRead = true; |
2693 o.stateFamily = "foo"; | 3070 o.stateFamily = "foo"; |
2694 } | 3071 } |
2695 buildCounterStateFamilyConfig--; | 3072 buildCounterStateFamilyConfig--; |
2696 return o; | 3073 return o; |
2697 } | 3074 } |
2698 | 3075 |
2699 checkStateFamilyConfig(api.StateFamilyConfig o) { | 3076 checkStateFamilyConfig(api.StateFamilyConfig o) { |
2700 buildCounterStateFamilyConfig++; | 3077 buildCounterStateFamilyConfig++; |
2701 if (buildCounterStateFamilyConfig < 3) { | 3078 if (buildCounterStateFamilyConfig < 3) { |
2702 unittest.expect(o.isRead, unittest.isTrue); | 3079 unittest.expect(o.isRead, unittest.isTrue); |
2703 unittest.expect(o.stateFamily, unittest.equals('foo')); | 3080 unittest.expect(o.stateFamily, unittest.equals('foo')); |
2704 } | 3081 } |
2705 buildCounterStateFamilyConfig--; | 3082 buildCounterStateFamilyConfig--; |
2706 } | 3083 } |
2707 | 3084 |
2708 buildUnnamed3194() { | 3085 buildUnnamed3038() { |
2709 var o = new core.Map<core.String, core.Object>(); | 3086 var o = new core.Map<core.String, core.Object>(); |
2710 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3087 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2711 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3088 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2712 return o; | 3089 return o; |
2713 } | 3090 } |
2714 | 3091 |
2715 checkUnnamed3194(core.Map<core.String, core.Object> o) { | 3092 checkUnnamed3038(core.Map<core.String, core.Object> o) { |
2716 unittest.expect(o, unittest.hasLength(2)); | 3093 unittest.expect(o, unittest.hasLength(2)); |
2717 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')); | 3094 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')); |
2718 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')); | 3095 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')); |
2719 } | 3096 } |
2720 | 3097 |
2721 buildUnnamed3195() { | 3098 buildUnnamed3039() { |
2722 var o = new core.List<core.Map<core.String, core.Object>>(); | 3099 var o = new core.List<core.Map<core.String, core.Object>>(); |
2723 o.add(buildUnnamed3194()); | 3100 o.add(buildUnnamed3038()); |
2724 o.add(buildUnnamed3194()); | 3101 o.add(buildUnnamed3038()); |
2725 return o; | 3102 return o; |
2726 } | 3103 } |
2727 | 3104 |
2728 checkUnnamed3195(core.List<core.Map<core.String, core.Object>> o) { | 3105 checkUnnamed3039(core.List<core.Map<core.String, core.Object>> o) { |
2729 unittest.expect(o, unittest.hasLength(2)); | 3106 unittest.expect(o, unittest.hasLength(2)); |
2730 checkUnnamed3194(o[0]); | 3107 checkUnnamed3038(o[0]); |
2731 checkUnnamed3194(o[1]); | 3108 checkUnnamed3038(o[1]); |
2732 } | 3109 } |
2733 | 3110 |
2734 core.int buildCounterStatus = 0; | 3111 core.int buildCounterStatus = 0; |
2735 buildStatus() { | 3112 buildStatus() { |
2736 var o = new api.Status(); | 3113 var o = new api.Status(); |
2737 buildCounterStatus++; | 3114 buildCounterStatus++; |
2738 if (buildCounterStatus < 3) { | 3115 if (buildCounterStatus < 3) { |
2739 o.code = 42; | 3116 o.code = 42; |
2740 o.details = buildUnnamed3195(); | 3117 o.details = buildUnnamed3039(); |
2741 o.message = "foo"; | 3118 o.message = "foo"; |
2742 } | 3119 } |
2743 buildCounterStatus--; | 3120 buildCounterStatus--; |
2744 return o; | 3121 return o; |
2745 } | 3122 } |
2746 | 3123 |
2747 checkStatus(api.Status o) { | 3124 checkStatus(api.Status o) { |
2748 buildCounterStatus++; | 3125 buildCounterStatus++; |
2749 if (buildCounterStatus < 3) { | 3126 if (buildCounterStatus < 3) { |
2750 unittest.expect(o.code, unittest.equals(42)); | 3127 unittest.expect(o.code, unittest.equals(42)); |
2751 checkUnnamed3195(o.details); | 3128 checkUnnamed3039(o.details); |
2752 unittest.expect(o.message, unittest.equals('foo')); | 3129 unittest.expect(o.message, unittest.equals('foo')); |
2753 } | 3130 } |
2754 buildCounterStatus--; | 3131 buildCounterStatus--; |
2755 } | 3132 } |
2756 | 3133 |
2757 buildUnnamed3196() { | 3134 buildUnnamed3040() { |
2758 var o = new core.Map<core.String, core.Object>(); | 3135 var o = new core.Map<core.String, core.Object>(); |
2759 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3136 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2760 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3137 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2761 return o; | 3138 return o; |
2762 } | 3139 } |
2763 | 3140 |
2764 checkUnnamed3196(core.Map<core.String, core.Object> o) { | 3141 checkUnnamed3040(core.Map<core.String, core.Object> o) { |
2765 unittest.expect(o, unittest.hasLength(2)); | 3142 unittest.expect(o, unittest.hasLength(2)); |
2766 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')); | 3143 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')); |
2767 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')); | 3144 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')); |
2768 } | 3145 } |
2769 | 3146 |
2770 core.int buildCounterStep = 0; | 3147 core.int buildCounterStep = 0; |
2771 buildStep() { | 3148 buildStep() { |
2772 var o = new api.Step(); | 3149 var o = new api.Step(); |
2773 buildCounterStep++; | 3150 buildCounterStep++; |
2774 if (buildCounterStep < 3) { | 3151 if (buildCounterStep < 3) { |
2775 o.kind = "foo"; | 3152 o.kind = "foo"; |
2776 o.name = "foo"; | 3153 o.name = "foo"; |
2777 o.properties = buildUnnamed3196(); | 3154 o.properties = buildUnnamed3040(); |
2778 } | 3155 } |
2779 buildCounterStep--; | 3156 buildCounterStep--; |
2780 return o; | 3157 return o; |
2781 } | 3158 } |
2782 | 3159 |
2783 checkStep(api.Step o) { | 3160 checkStep(api.Step o) { |
2784 buildCounterStep++; | 3161 buildCounterStep++; |
2785 if (buildCounterStep < 3) { | 3162 if (buildCounterStep < 3) { |
2786 unittest.expect(o.kind, unittest.equals('foo')); | 3163 unittest.expect(o.kind, unittest.equals('foo')); |
2787 unittest.expect(o.name, unittest.equals('foo')); | 3164 unittest.expect(o.name, unittest.equals('foo')); |
2788 checkUnnamed3196(o.properties); | 3165 checkUnnamed3040(o.properties); |
2789 } | 3166 } |
2790 buildCounterStep--; | 3167 buildCounterStep--; |
2791 } | 3168 } |
2792 | 3169 |
2793 core.int buildCounterStreamLocation = 0; | 3170 core.int buildCounterStreamLocation = 0; |
2794 buildStreamLocation() { | 3171 buildStreamLocation() { |
2795 var o = new api.StreamLocation(); | 3172 var o = new api.StreamLocation(); |
2796 buildCounterStreamLocation++; | 3173 buildCounterStreamLocation++; |
2797 if (buildCounterStreamLocation < 3) { | 3174 if (buildCounterStreamLocation < 3) { |
2798 o.customSourceLocation = buildCustomSourceLocation(); | 3175 o.customSourceLocation = buildCustomSourceLocation(); |
2799 o.pubsubLocation = buildPubsubLocation(); | 3176 o.pubsubLocation = buildPubsubLocation(); |
2800 o.sideInputLocation = buildStreamingSideInputLocation(); | 3177 o.sideInputLocation = buildStreamingSideInputLocation(); |
2801 o.streamingStageLocation = buildStreamingStageLocation(); | 3178 o.streamingStageLocation = buildStreamingStageLocation(); |
2802 } | 3179 } |
2803 buildCounterStreamLocation--; | 3180 buildCounterStreamLocation--; |
2804 return o; | 3181 return o; |
2805 } | 3182 } |
2806 | 3183 |
2807 checkStreamLocation(api.StreamLocation o) { | 3184 checkStreamLocation(api.StreamLocation o) { |
2808 buildCounterStreamLocation++; | 3185 buildCounterStreamLocation++; |
2809 if (buildCounterStreamLocation < 3) { | 3186 if (buildCounterStreamLocation < 3) { |
2810 checkCustomSourceLocation(o.customSourceLocation); | 3187 checkCustomSourceLocation(o.customSourceLocation); |
2811 checkPubsubLocation(o.pubsubLocation); | 3188 checkPubsubLocation(o.pubsubLocation); |
2812 checkStreamingSideInputLocation(o.sideInputLocation); | 3189 checkStreamingSideInputLocation(o.sideInputLocation); |
2813 checkStreamingStageLocation(o.streamingStageLocation); | 3190 checkStreamingStageLocation(o.streamingStageLocation); |
2814 } | 3191 } |
2815 buildCounterStreamLocation--; | 3192 buildCounterStreamLocation--; |
2816 } | 3193 } |
2817 | 3194 |
2818 buildUnnamed3197() { | 3195 buildUnnamed3041() { |
2819 var o = new core.List<api.ParallelInstruction>(); | 3196 var o = new core.List<api.ParallelInstruction>(); |
2820 o.add(buildParallelInstruction()); | 3197 o.add(buildParallelInstruction()); |
2821 o.add(buildParallelInstruction()); | 3198 o.add(buildParallelInstruction()); |
2822 return o; | 3199 return o; |
2823 } | 3200 } |
2824 | 3201 |
2825 checkUnnamed3197(core.List<api.ParallelInstruction> o) { | 3202 checkUnnamed3041(core.List<api.ParallelInstruction> o) { |
2826 unittest.expect(o, unittest.hasLength(2)); | 3203 unittest.expect(o, unittest.hasLength(2)); |
2827 checkParallelInstruction(o[0]); | 3204 checkParallelInstruction(o[0]); |
2828 checkParallelInstruction(o[1]); | 3205 checkParallelInstruction(o[1]); |
2829 } | 3206 } |
2830 | 3207 |
2831 core.int buildCounterStreamingComputationConfig = 0; | 3208 core.int buildCounterStreamingComputationConfig = 0; |
2832 buildStreamingComputationConfig() { | 3209 buildStreamingComputationConfig() { |
2833 var o = new api.StreamingComputationConfig(); | 3210 var o = new api.StreamingComputationConfig(); |
2834 buildCounterStreamingComputationConfig++; | 3211 buildCounterStreamingComputationConfig++; |
2835 if (buildCounterStreamingComputationConfig < 3) { | 3212 if (buildCounterStreamingComputationConfig < 3) { |
2836 o.computationId = "foo"; | 3213 o.computationId = "foo"; |
2837 o.instructions = buildUnnamed3197(); | 3214 o.instructions = buildUnnamed3041(); |
2838 o.stageName = "foo"; | 3215 o.stageName = "foo"; |
2839 o.systemName = "foo"; | 3216 o.systemName = "foo"; |
2840 } | 3217 } |
2841 buildCounterStreamingComputationConfig--; | 3218 buildCounterStreamingComputationConfig--; |
2842 return o; | 3219 return o; |
2843 } | 3220 } |
2844 | 3221 |
2845 checkStreamingComputationConfig(api.StreamingComputationConfig o) { | 3222 checkStreamingComputationConfig(api.StreamingComputationConfig o) { |
2846 buildCounterStreamingComputationConfig++; | 3223 buildCounterStreamingComputationConfig++; |
2847 if (buildCounterStreamingComputationConfig < 3) { | 3224 if (buildCounterStreamingComputationConfig < 3) { |
2848 unittest.expect(o.computationId, unittest.equals('foo')); | 3225 unittest.expect(o.computationId, unittest.equals('foo')); |
2849 checkUnnamed3197(o.instructions); | 3226 checkUnnamed3041(o.instructions); |
2850 unittest.expect(o.stageName, unittest.equals('foo')); | 3227 unittest.expect(o.stageName, unittest.equals('foo')); |
2851 unittest.expect(o.systemName, unittest.equals('foo')); | 3228 unittest.expect(o.systemName, unittest.equals('foo')); |
2852 } | 3229 } |
2853 buildCounterStreamingComputationConfig--; | 3230 buildCounterStreamingComputationConfig--; |
2854 } | 3231 } |
2855 | 3232 |
2856 buildUnnamed3198() { | 3233 buildUnnamed3042() { |
2857 var o = new core.List<api.KeyRangeDataDiskAssignment>(); | 3234 var o = new core.List<api.KeyRangeDataDiskAssignment>(); |
2858 o.add(buildKeyRangeDataDiskAssignment()); | 3235 o.add(buildKeyRangeDataDiskAssignment()); |
2859 o.add(buildKeyRangeDataDiskAssignment()); | 3236 o.add(buildKeyRangeDataDiskAssignment()); |
2860 return o; | 3237 return o; |
2861 } | 3238 } |
2862 | 3239 |
2863 checkUnnamed3198(core.List<api.KeyRangeDataDiskAssignment> o) { | 3240 checkUnnamed3042(core.List<api.KeyRangeDataDiskAssignment> o) { |
2864 unittest.expect(o, unittest.hasLength(2)); | 3241 unittest.expect(o, unittest.hasLength(2)); |
2865 checkKeyRangeDataDiskAssignment(o[0]); | 3242 checkKeyRangeDataDiskAssignment(o[0]); |
2866 checkKeyRangeDataDiskAssignment(o[1]); | 3243 checkKeyRangeDataDiskAssignment(o[1]); |
2867 } | 3244 } |
2868 | 3245 |
2869 core.int buildCounterStreamingComputationRanges = 0; | 3246 core.int buildCounterStreamingComputationRanges = 0; |
2870 buildStreamingComputationRanges() { | 3247 buildStreamingComputationRanges() { |
2871 var o = new api.StreamingComputationRanges(); | 3248 var o = new api.StreamingComputationRanges(); |
2872 buildCounterStreamingComputationRanges++; | 3249 buildCounterStreamingComputationRanges++; |
2873 if (buildCounterStreamingComputationRanges < 3) { | 3250 if (buildCounterStreamingComputationRanges < 3) { |
2874 o.computationId = "foo"; | 3251 o.computationId = "foo"; |
2875 o.rangeAssignments = buildUnnamed3198(); | 3252 o.rangeAssignments = buildUnnamed3042(); |
2876 } | 3253 } |
2877 buildCounterStreamingComputationRanges--; | 3254 buildCounterStreamingComputationRanges--; |
2878 return o; | 3255 return o; |
2879 } | 3256 } |
2880 | 3257 |
2881 checkStreamingComputationRanges(api.StreamingComputationRanges o) { | 3258 checkStreamingComputationRanges(api.StreamingComputationRanges o) { |
2882 buildCounterStreamingComputationRanges++; | 3259 buildCounterStreamingComputationRanges++; |
2883 if (buildCounterStreamingComputationRanges < 3) { | 3260 if (buildCounterStreamingComputationRanges < 3) { |
2884 unittest.expect(o.computationId, unittest.equals('foo')); | 3261 unittest.expect(o.computationId, unittest.equals('foo')); |
2885 checkUnnamed3198(o.rangeAssignments); | 3262 checkUnnamed3042(o.rangeAssignments); |
2886 } | 3263 } |
2887 buildCounterStreamingComputationRanges--; | 3264 buildCounterStreamingComputationRanges--; |
2888 } | 3265 } |
2889 | 3266 |
2890 buildUnnamed3199() { | 3267 buildUnnamed3043() { |
2891 var o = new core.List<api.StreamingComputationRanges>(); | 3268 var o = new core.List<api.StreamingComputationRanges>(); |
2892 o.add(buildStreamingComputationRanges()); | 3269 o.add(buildStreamingComputationRanges()); |
2893 o.add(buildStreamingComputationRanges()); | 3270 o.add(buildStreamingComputationRanges()); |
2894 return o; | 3271 return o; |
2895 } | 3272 } |
2896 | 3273 |
2897 checkUnnamed3199(core.List<api.StreamingComputationRanges> o) { | 3274 checkUnnamed3043(core.List<api.StreamingComputationRanges> o) { |
2898 unittest.expect(o, unittest.hasLength(2)); | 3275 unittest.expect(o, unittest.hasLength(2)); |
2899 checkStreamingComputationRanges(o[0]); | 3276 checkStreamingComputationRanges(o[0]); |
2900 checkStreamingComputationRanges(o[1]); | 3277 checkStreamingComputationRanges(o[1]); |
2901 } | 3278 } |
2902 | 3279 |
2903 buildUnnamed3200() { | 3280 buildUnnamed3044() { |
2904 var o = new core.List<api.MountedDataDisk>(); | 3281 var o = new core.List<api.MountedDataDisk>(); |
2905 o.add(buildMountedDataDisk()); | 3282 o.add(buildMountedDataDisk()); |
2906 o.add(buildMountedDataDisk()); | 3283 o.add(buildMountedDataDisk()); |
2907 return o; | 3284 return o; |
2908 } | 3285 } |
2909 | 3286 |
2910 checkUnnamed3200(core.List<api.MountedDataDisk> o) { | 3287 checkUnnamed3044(core.List<api.MountedDataDisk> o) { |
2911 unittest.expect(o, unittest.hasLength(2)); | 3288 unittest.expect(o, unittest.hasLength(2)); |
2912 checkMountedDataDisk(o[0]); | 3289 checkMountedDataDisk(o[0]); |
2913 checkMountedDataDisk(o[1]); | 3290 checkMountedDataDisk(o[1]); |
2914 } | 3291 } |
2915 | 3292 |
2916 core.int buildCounterStreamingComputationTask = 0; | 3293 core.int buildCounterStreamingComputationTask = 0; |
2917 buildStreamingComputationTask() { | 3294 buildStreamingComputationTask() { |
2918 var o = new api.StreamingComputationTask(); | 3295 var o = new api.StreamingComputationTask(); |
2919 buildCounterStreamingComputationTask++; | 3296 buildCounterStreamingComputationTask++; |
2920 if (buildCounterStreamingComputationTask < 3) { | 3297 if (buildCounterStreamingComputationTask < 3) { |
2921 o.computationRanges = buildUnnamed3199(); | 3298 o.computationRanges = buildUnnamed3043(); |
2922 o.dataDisks = buildUnnamed3200(); | 3299 o.dataDisks = buildUnnamed3044(); |
2923 o.taskType = "foo"; | 3300 o.taskType = "foo"; |
2924 } | 3301 } |
2925 buildCounterStreamingComputationTask--; | 3302 buildCounterStreamingComputationTask--; |
2926 return o; | 3303 return o; |
2927 } | 3304 } |
2928 | 3305 |
2929 checkStreamingComputationTask(api.StreamingComputationTask o) { | 3306 checkStreamingComputationTask(api.StreamingComputationTask o) { |
2930 buildCounterStreamingComputationTask++; | 3307 buildCounterStreamingComputationTask++; |
2931 if (buildCounterStreamingComputationTask < 3) { | 3308 if (buildCounterStreamingComputationTask < 3) { |
2932 checkUnnamed3199(o.computationRanges); | 3309 checkUnnamed3043(o.computationRanges); |
2933 checkUnnamed3200(o.dataDisks); | 3310 checkUnnamed3044(o.dataDisks); |
2934 unittest.expect(o.taskType, unittest.equals('foo')); | 3311 unittest.expect(o.taskType, unittest.equals('foo')); |
2935 } | 3312 } |
2936 buildCounterStreamingComputationTask--; | 3313 buildCounterStreamingComputationTask--; |
2937 } | 3314 } |
2938 | 3315 |
2939 buildUnnamed3201() { | 3316 buildUnnamed3045() { |
2940 var o = new core.List<api.StreamingComputationConfig>(); | 3317 var o = new core.List<api.StreamingComputationConfig>(); |
2941 o.add(buildStreamingComputationConfig()); | 3318 o.add(buildStreamingComputationConfig()); |
2942 o.add(buildStreamingComputationConfig()); | 3319 o.add(buildStreamingComputationConfig()); |
2943 return o; | 3320 return o; |
2944 } | 3321 } |
2945 | 3322 |
2946 checkUnnamed3201(core.List<api.StreamingComputationConfig> o) { | 3323 checkUnnamed3045(core.List<api.StreamingComputationConfig> o) { |
2947 unittest.expect(o, unittest.hasLength(2)); | 3324 unittest.expect(o, unittest.hasLength(2)); |
2948 checkStreamingComputationConfig(o[0]); | 3325 checkStreamingComputationConfig(o[0]); |
2949 checkStreamingComputationConfig(o[1]); | 3326 checkStreamingComputationConfig(o[1]); |
2950 } | 3327 } |
2951 | 3328 |
2952 buildUnnamed3202() { | 3329 buildUnnamed3046() { |
2953 var o = new core.Map<core.String, core.String>(); | 3330 var o = new core.Map<core.String, core.String>(); |
2954 o["x"] = "foo"; | 3331 o["x"] = "foo"; |
2955 o["y"] = "foo"; | 3332 o["y"] = "foo"; |
2956 return o; | 3333 return o; |
2957 } | 3334 } |
2958 | 3335 |
2959 checkUnnamed3202(core.Map<core.String, core.String> o) { | 3336 checkUnnamed3046(core.Map<core.String, core.String> o) { |
2960 unittest.expect(o, unittest.hasLength(2)); | 3337 unittest.expect(o, unittest.hasLength(2)); |
2961 unittest.expect(o["x"], unittest.equals('foo')); | 3338 unittest.expect(o["x"], unittest.equals('foo')); |
2962 unittest.expect(o["y"], unittest.equals('foo')); | 3339 unittest.expect(o["y"], unittest.equals('foo')); |
2963 } | 3340 } |
2964 | 3341 |
2965 core.int buildCounterStreamingConfigTask = 0; | 3342 core.int buildCounterStreamingConfigTask = 0; |
2966 buildStreamingConfigTask() { | 3343 buildStreamingConfigTask() { |
2967 var o = new api.StreamingConfigTask(); | 3344 var o = new api.StreamingConfigTask(); |
2968 buildCounterStreamingConfigTask++; | 3345 buildCounterStreamingConfigTask++; |
2969 if (buildCounterStreamingConfigTask < 3) { | 3346 if (buildCounterStreamingConfigTask < 3) { |
2970 o.streamingComputationConfigs = buildUnnamed3201(); | 3347 o.streamingComputationConfigs = buildUnnamed3045(); |
2971 o.userStepToStateFamilyNameMap = buildUnnamed3202(); | 3348 o.userStepToStateFamilyNameMap = buildUnnamed3046(); |
2972 } | 3349 } |
2973 buildCounterStreamingConfigTask--; | 3350 buildCounterStreamingConfigTask--; |
2974 return o; | 3351 return o; |
2975 } | 3352 } |
2976 | 3353 |
2977 checkStreamingConfigTask(api.StreamingConfigTask o) { | 3354 checkStreamingConfigTask(api.StreamingConfigTask o) { |
2978 buildCounterStreamingConfigTask++; | 3355 buildCounterStreamingConfigTask++; |
2979 if (buildCounterStreamingConfigTask < 3) { | 3356 if (buildCounterStreamingConfigTask < 3) { |
2980 checkUnnamed3201(o.streamingComputationConfigs); | 3357 checkUnnamed3045(o.streamingComputationConfigs); |
2981 checkUnnamed3202(o.userStepToStateFamilyNameMap); | 3358 checkUnnamed3046(o.userStepToStateFamilyNameMap); |
2982 } | 3359 } |
2983 buildCounterStreamingConfigTask--; | 3360 buildCounterStreamingConfigTask--; |
2984 } | 3361 } |
2985 | 3362 |
2986 core.int buildCounterStreamingSetupTask = 0; | 3363 core.int buildCounterStreamingSetupTask = 0; |
2987 buildStreamingSetupTask() { | 3364 buildStreamingSetupTask() { |
2988 var o = new api.StreamingSetupTask(); | 3365 var o = new api.StreamingSetupTask(); |
2989 buildCounterStreamingSetupTask++; | 3366 buildCounterStreamingSetupTask++; |
2990 if (buildCounterStreamingSetupTask < 3) { | 3367 if (buildCounterStreamingSetupTask < 3) { |
2991 o.drain = true; | 3368 o.drain = true; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3041 } | 3418 } |
3042 | 3419 |
3043 checkStreamingStageLocation(api.StreamingStageLocation o) { | 3420 checkStreamingStageLocation(api.StreamingStageLocation o) { |
3044 buildCounterStreamingStageLocation++; | 3421 buildCounterStreamingStageLocation++; |
3045 if (buildCounterStreamingStageLocation < 3) { | 3422 if (buildCounterStreamingStageLocation < 3) { |
3046 unittest.expect(o.streamId, unittest.equals('foo')); | 3423 unittest.expect(o.streamId, unittest.equals('foo')); |
3047 } | 3424 } |
3048 buildCounterStreamingStageLocation--; | 3425 buildCounterStreamingStageLocation--; |
3049 } | 3426 } |
3050 | 3427 |
3051 buildUnnamed3203() { | 3428 buildUnnamed3047() { |
3052 var o = new core.List<core.String>(); | 3429 var o = new core.List<core.String>(); |
3053 o.add("foo"); | 3430 o.add("foo"); |
3054 o.add("foo"); | 3431 o.add("foo"); |
3055 return o; | 3432 return o; |
3056 } | 3433 } |
3057 | 3434 |
3058 checkUnnamed3203(core.List<core.String> o) { | 3435 checkUnnamed3047(core.List<core.String> o) { |
3059 unittest.expect(o, unittest.hasLength(2)); | 3436 unittest.expect(o, unittest.hasLength(2)); |
3060 unittest.expect(o[0], unittest.equals('foo')); | 3437 unittest.expect(o[0], unittest.equals('foo')); |
3061 unittest.expect(o[1], unittest.equals('foo')); | 3438 unittest.expect(o[1], unittest.equals('foo')); |
3062 } | 3439 } |
3063 | 3440 |
3064 core.int buildCounterStringList = 0; | 3441 core.int buildCounterStringList = 0; |
3065 buildStringList() { | 3442 buildStringList() { |
3066 var o = new api.StringList(); | 3443 var o = new api.StringList(); |
3067 buildCounterStringList++; | 3444 buildCounterStringList++; |
3068 if (buildCounterStringList < 3) { | 3445 if (buildCounterStringList < 3) { |
3069 o.elements = buildUnnamed3203(); | 3446 o.elements = buildUnnamed3047(); |
3070 } | 3447 } |
3071 buildCounterStringList--; | 3448 buildCounterStringList--; |
3072 return o; | 3449 return o; |
3073 } | 3450 } |
3074 | 3451 |
3075 checkStringList(api.StringList o) { | 3452 checkStringList(api.StringList o) { |
3076 buildCounterStringList++; | 3453 buildCounterStringList++; |
3077 if (buildCounterStringList < 3) { | 3454 if (buildCounterStringList < 3) { |
3078 checkUnnamed3203(o.elements); | 3455 checkUnnamed3047(o.elements); |
3079 } | 3456 } |
3080 buildCounterStringList--; | 3457 buildCounterStringList--; |
3081 } | 3458 } |
3082 | 3459 |
3083 buildUnnamed3204() { | 3460 buildUnnamed3048() { |
3084 var o = new core.List<core.String>(); | 3461 var o = new core.List<core.String>(); |
3085 o.add("foo"); | 3462 o.add("foo"); |
3086 o.add("foo"); | 3463 o.add("foo"); |
3087 return o; | 3464 return o; |
3088 } | 3465 } |
3089 | 3466 |
3090 checkUnnamed3204(core.List<core.String> o) { | 3467 checkUnnamed3048(core.List<core.String> o) { |
3091 unittest.expect(o, unittest.hasLength(2)); | 3468 unittest.expect(o, unittest.hasLength(2)); |
3092 unittest.expect(o[0], unittest.equals('foo')); | 3469 unittest.expect(o[0], unittest.equals('foo')); |
3093 unittest.expect(o[1], unittest.equals('foo')); | 3470 unittest.expect(o[1], unittest.equals('foo')); |
3094 } | 3471 } |
3095 | 3472 |
3096 core.int buildCounterTaskRunnerSettings = 0; | 3473 core.int buildCounterTaskRunnerSettings = 0; |
3097 buildTaskRunnerSettings() { | 3474 buildTaskRunnerSettings() { |
3098 var o = new api.TaskRunnerSettings(); | 3475 var o = new api.TaskRunnerSettings(); |
3099 buildCounterTaskRunnerSettings++; | 3476 buildCounterTaskRunnerSettings++; |
3100 if (buildCounterTaskRunnerSettings < 3) { | 3477 if (buildCounterTaskRunnerSettings < 3) { |
3101 o.alsologtostderr = true; | 3478 o.alsologtostderr = true; |
3102 o.baseTaskDir = "foo"; | 3479 o.baseTaskDir = "foo"; |
3103 o.baseUrl = "foo"; | 3480 o.baseUrl = "foo"; |
3104 o.commandlinesFileName = "foo"; | 3481 o.commandlinesFileName = "foo"; |
3105 o.continueOnException = true; | 3482 o.continueOnException = true; |
3106 o.dataflowApiVersion = "foo"; | 3483 o.dataflowApiVersion = "foo"; |
3107 o.harnessCommand = "foo"; | 3484 o.harnessCommand = "foo"; |
3108 o.languageHint = "foo"; | 3485 o.languageHint = "foo"; |
3109 o.logDir = "foo"; | 3486 o.logDir = "foo"; |
3110 o.logToSerialconsole = true; | 3487 o.logToSerialconsole = true; |
3111 o.logUploadLocation = "foo"; | 3488 o.logUploadLocation = "foo"; |
3112 o.oauthScopes = buildUnnamed3204(); | 3489 o.oauthScopes = buildUnnamed3048(); |
3113 o.parallelWorkerSettings = buildWorkerSettings(); | 3490 o.parallelWorkerSettings = buildWorkerSettings(); |
3114 o.streamingWorkerMainClass = "foo"; | 3491 o.streamingWorkerMainClass = "foo"; |
3115 o.taskGroup = "foo"; | 3492 o.taskGroup = "foo"; |
3116 o.taskUser = "foo"; | 3493 o.taskUser = "foo"; |
3117 o.tempStoragePrefix = "foo"; | 3494 o.tempStoragePrefix = "foo"; |
3118 o.vmId = "foo"; | 3495 o.vmId = "foo"; |
3119 o.workflowFileName = "foo"; | 3496 o.workflowFileName = "foo"; |
3120 } | 3497 } |
3121 buildCounterTaskRunnerSettings--; | 3498 buildCounterTaskRunnerSettings--; |
3122 return o; | 3499 return o; |
3123 } | 3500 } |
3124 | 3501 |
3125 checkTaskRunnerSettings(api.TaskRunnerSettings o) { | 3502 checkTaskRunnerSettings(api.TaskRunnerSettings o) { |
3126 buildCounterTaskRunnerSettings++; | 3503 buildCounterTaskRunnerSettings++; |
3127 if (buildCounterTaskRunnerSettings < 3) { | 3504 if (buildCounterTaskRunnerSettings < 3) { |
3128 unittest.expect(o.alsologtostderr, unittest.isTrue); | 3505 unittest.expect(o.alsologtostderr, unittest.isTrue); |
3129 unittest.expect(o.baseTaskDir, unittest.equals('foo')); | 3506 unittest.expect(o.baseTaskDir, unittest.equals('foo')); |
3130 unittest.expect(o.baseUrl, unittest.equals('foo')); | 3507 unittest.expect(o.baseUrl, unittest.equals('foo')); |
3131 unittest.expect(o.commandlinesFileName, unittest.equals('foo')); | 3508 unittest.expect(o.commandlinesFileName, unittest.equals('foo')); |
3132 unittest.expect(o.continueOnException, unittest.isTrue); | 3509 unittest.expect(o.continueOnException, unittest.isTrue); |
3133 unittest.expect(o.dataflowApiVersion, unittest.equals('foo')); | 3510 unittest.expect(o.dataflowApiVersion, unittest.equals('foo')); |
3134 unittest.expect(o.harnessCommand, unittest.equals('foo')); | 3511 unittest.expect(o.harnessCommand, unittest.equals('foo')); |
3135 unittest.expect(o.languageHint, unittest.equals('foo')); | 3512 unittest.expect(o.languageHint, unittest.equals('foo')); |
3136 unittest.expect(o.logDir, unittest.equals('foo')); | 3513 unittest.expect(o.logDir, unittest.equals('foo')); |
3137 unittest.expect(o.logToSerialconsole, unittest.isTrue); | 3514 unittest.expect(o.logToSerialconsole, unittest.isTrue); |
3138 unittest.expect(o.logUploadLocation, unittest.equals('foo')); | 3515 unittest.expect(o.logUploadLocation, unittest.equals('foo')); |
3139 checkUnnamed3204(o.oauthScopes); | 3516 checkUnnamed3048(o.oauthScopes); |
3140 checkWorkerSettings(o.parallelWorkerSettings); | 3517 checkWorkerSettings(o.parallelWorkerSettings); |
3141 unittest.expect(o.streamingWorkerMainClass, unittest.equals('foo')); | 3518 unittest.expect(o.streamingWorkerMainClass, unittest.equals('foo')); |
3142 unittest.expect(o.taskGroup, unittest.equals('foo')); | 3519 unittest.expect(o.taskGroup, unittest.equals('foo')); |
3143 unittest.expect(o.taskUser, unittest.equals('foo')); | 3520 unittest.expect(o.taskUser, unittest.equals('foo')); |
3144 unittest.expect(o.tempStoragePrefix, unittest.equals('foo')); | 3521 unittest.expect(o.tempStoragePrefix, unittest.equals('foo')); |
3145 unittest.expect(o.vmId, unittest.equals('foo')); | 3522 unittest.expect(o.vmId, unittest.equals('foo')); |
3146 unittest.expect(o.workflowFileName, unittest.equals('foo')); | 3523 unittest.expect(o.workflowFileName, unittest.equals('foo')); |
3147 } | 3524 } |
3148 buildCounterTaskRunnerSettings--; | 3525 buildCounterTaskRunnerSettings--; |
3149 } | 3526 } |
3150 | 3527 |
3151 buildUnnamed3205() { | 3528 buildUnnamed3049() { |
| 3529 var o = new core.List<api.ParameterMetadata>(); |
| 3530 o.add(buildParameterMetadata()); |
| 3531 o.add(buildParameterMetadata()); |
| 3532 return o; |
| 3533 } |
| 3534 |
| 3535 checkUnnamed3049(core.List<api.ParameterMetadata> o) { |
| 3536 unittest.expect(o, unittest.hasLength(2)); |
| 3537 checkParameterMetadata(o[0]); |
| 3538 checkParameterMetadata(o[1]); |
| 3539 } |
| 3540 |
| 3541 core.int buildCounterTemplateMetadata = 0; |
| 3542 buildTemplateMetadata() { |
| 3543 var o = new api.TemplateMetadata(); |
| 3544 buildCounterTemplateMetadata++; |
| 3545 if (buildCounterTemplateMetadata < 3) { |
| 3546 o.bypassTempDirValidation = true; |
| 3547 o.description = "foo"; |
| 3548 o.name = "foo"; |
| 3549 o.parameters = buildUnnamed3049(); |
| 3550 } |
| 3551 buildCounterTemplateMetadata--; |
| 3552 return o; |
| 3553 } |
| 3554 |
| 3555 checkTemplateMetadata(api.TemplateMetadata o) { |
| 3556 buildCounterTemplateMetadata++; |
| 3557 if (buildCounterTemplateMetadata < 3) { |
| 3558 unittest.expect(o.bypassTempDirValidation, unittest.isTrue); |
| 3559 unittest.expect(o.description, unittest.equals('foo')); |
| 3560 unittest.expect(o.name, unittest.equals('foo')); |
| 3561 checkUnnamed3049(o.parameters); |
| 3562 } |
| 3563 buildCounterTemplateMetadata--; |
| 3564 } |
| 3565 |
| 3566 buildUnnamed3050() { |
3152 var o = new core.List<api.ComputationTopology>(); | 3567 var o = new core.List<api.ComputationTopology>(); |
3153 o.add(buildComputationTopology()); | 3568 o.add(buildComputationTopology()); |
3154 o.add(buildComputationTopology()); | 3569 o.add(buildComputationTopology()); |
3155 return o; | 3570 return o; |
3156 } | 3571 } |
3157 | 3572 |
3158 checkUnnamed3205(core.List<api.ComputationTopology> o) { | 3573 checkUnnamed3050(core.List<api.ComputationTopology> o) { |
3159 unittest.expect(o, unittest.hasLength(2)); | 3574 unittest.expect(o, unittest.hasLength(2)); |
3160 checkComputationTopology(o[0]); | 3575 checkComputationTopology(o[0]); |
3161 checkComputationTopology(o[1]); | 3576 checkComputationTopology(o[1]); |
3162 } | 3577 } |
3163 | 3578 |
3164 buildUnnamed3206() { | 3579 buildUnnamed3051() { |
3165 var o = new core.List<api.DataDiskAssignment>(); | 3580 var o = new core.List<api.DataDiskAssignment>(); |
3166 o.add(buildDataDiskAssignment()); | 3581 o.add(buildDataDiskAssignment()); |
3167 o.add(buildDataDiskAssignment()); | 3582 o.add(buildDataDiskAssignment()); |
3168 return o; | 3583 return o; |
3169 } | 3584 } |
3170 | 3585 |
3171 checkUnnamed3206(core.List<api.DataDiskAssignment> o) { | 3586 checkUnnamed3051(core.List<api.DataDiskAssignment> o) { |
3172 unittest.expect(o, unittest.hasLength(2)); | 3587 unittest.expect(o, unittest.hasLength(2)); |
3173 checkDataDiskAssignment(o[0]); | 3588 checkDataDiskAssignment(o[0]); |
3174 checkDataDiskAssignment(o[1]); | 3589 checkDataDiskAssignment(o[1]); |
3175 } | 3590 } |
3176 | 3591 |
3177 buildUnnamed3207() { | 3592 buildUnnamed3052() { |
3178 var o = new core.Map<core.String, core.String>(); | 3593 var o = new core.Map<core.String, core.String>(); |
3179 o["x"] = "foo"; | 3594 o["x"] = "foo"; |
3180 o["y"] = "foo"; | 3595 o["y"] = "foo"; |
3181 return o; | 3596 return o; |
3182 } | 3597 } |
3183 | 3598 |
3184 checkUnnamed3207(core.Map<core.String, core.String> o) { | 3599 checkUnnamed3052(core.Map<core.String, core.String> o) { |
3185 unittest.expect(o, unittest.hasLength(2)); | 3600 unittest.expect(o, unittest.hasLength(2)); |
3186 unittest.expect(o["x"], unittest.equals('foo')); | 3601 unittest.expect(o["x"], unittest.equals('foo')); |
3187 unittest.expect(o["y"], unittest.equals('foo')); | 3602 unittest.expect(o["y"], unittest.equals('foo')); |
3188 } | 3603 } |
3189 | 3604 |
3190 core.int buildCounterTopologyConfig = 0; | 3605 core.int buildCounterTopologyConfig = 0; |
3191 buildTopologyConfig() { | 3606 buildTopologyConfig() { |
3192 var o = new api.TopologyConfig(); | 3607 var o = new api.TopologyConfig(); |
3193 buildCounterTopologyConfig++; | 3608 buildCounterTopologyConfig++; |
3194 if (buildCounterTopologyConfig < 3) { | 3609 if (buildCounterTopologyConfig < 3) { |
3195 o.computations = buildUnnamed3205(); | 3610 o.computations = buildUnnamed3050(); |
3196 o.dataDiskAssignments = buildUnnamed3206(); | 3611 o.dataDiskAssignments = buildUnnamed3051(); |
3197 o.forwardingKeyBits = 42; | 3612 o.forwardingKeyBits = 42; |
3198 o.persistentStateVersion = 42; | 3613 o.persistentStateVersion = 42; |
3199 o.userStageToComputationNameMap = buildUnnamed3207(); | 3614 o.userStageToComputationNameMap = buildUnnamed3052(); |
3200 } | 3615 } |
3201 buildCounterTopologyConfig--; | 3616 buildCounterTopologyConfig--; |
3202 return o; | 3617 return o; |
3203 } | 3618 } |
3204 | 3619 |
3205 checkTopologyConfig(api.TopologyConfig o) { | 3620 checkTopologyConfig(api.TopologyConfig o) { |
3206 buildCounterTopologyConfig++; | 3621 buildCounterTopologyConfig++; |
3207 if (buildCounterTopologyConfig < 3) { | 3622 if (buildCounterTopologyConfig < 3) { |
3208 checkUnnamed3205(o.computations); | 3623 checkUnnamed3050(o.computations); |
3209 checkUnnamed3206(o.dataDiskAssignments); | 3624 checkUnnamed3051(o.dataDiskAssignments); |
3210 unittest.expect(o.forwardingKeyBits, unittest.equals(42)); | 3625 unittest.expect(o.forwardingKeyBits, unittest.equals(42)); |
3211 unittest.expect(o.persistentStateVersion, unittest.equals(42)); | 3626 unittest.expect(o.persistentStateVersion, unittest.equals(42)); |
3212 checkUnnamed3207(o.userStageToComputationNameMap); | 3627 checkUnnamed3052(o.userStageToComputationNameMap); |
3213 } | 3628 } |
3214 buildCounterTopologyConfig--; | 3629 buildCounterTopologyConfig--; |
3215 } | 3630 } |
3216 | 3631 |
3217 buildUnnamed3208() { | 3632 buildUnnamed3053() { |
| 3633 var o = new core.List<api.DisplayData>(); |
| 3634 o.add(buildDisplayData()); |
| 3635 o.add(buildDisplayData()); |
| 3636 return o; |
| 3637 } |
| 3638 |
| 3639 checkUnnamed3053(core.List<api.DisplayData> o) { |
| 3640 unittest.expect(o, unittest.hasLength(2)); |
| 3641 checkDisplayData(o[0]); |
| 3642 checkDisplayData(o[1]); |
| 3643 } |
| 3644 |
| 3645 buildUnnamed3054() { |
| 3646 var o = new core.List<core.String>(); |
| 3647 o.add("foo"); |
| 3648 o.add("foo"); |
| 3649 return o; |
| 3650 } |
| 3651 |
| 3652 checkUnnamed3054(core.List<core.String> o) { |
| 3653 unittest.expect(o, unittest.hasLength(2)); |
| 3654 unittest.expect(o[0], unittest.equals('foo')); |
| 3655 unittest.expect(o[1], unittest.equals('foo')); |
| 3656 } |
| 3657 |
| 3658 buildUnnamed3055() { |
| 3659 var o = new core.List<core.String>(); |
| 3660 o.add("foo"); |
| 3661 o.add("foo"); |
| 3662 return o; |
| 3663 } |
| 3664 |
| 3665 checkUnnamed3055(core.List<core.String> o) { |
| 3666 unittest.expect(o, unittest.hasLength(2)); |
| 3667 unittest.expect(o[0], unittest.equals('foo')); |
| 3668 unittest.expect(o[1], unittest.equals('foo')); |
| 3669 } |
| 3670 |
| 3671 core.int buildCounterTransformSummary = 0; |
| 3672 buildTransformSummary() { |
| 3673 var o = new api.TransformSummary(); |
| 3674 buildCounterTransformSummary++; |
| 3675 if (buildCounterTransformSummary < 3) { |
| 3676 o.displayData = buildUnnamed3053(); |
| 3677 o.id = "foo"; |
| 3678 o.inputCollectionName = buildUnnamed3054(); |
| 3679 o.kind = "foo"; |
| 3680 o.name = "foo"; |
| 3681 o.outputCollectionName = buildUnnamed3055(); |
| 3682 } |
| 3683 buildCounterTransformSummary--; |
| 3684 return o; |
| 3685 } |
| 3686 |
| 3687 checkTransformSummary(api.TransformSummary o) { |
| 3688 buildCounterTransformSummary++; |
| 3689 if (buildCounterTransformSummary < 3) { |
| 3690 checkUnnamed3053(o.displayData); |
| 3691 unittest.expect(o.id, unittest.equals('foo')); |
| 3692 checkUnnamed3054(o.inputCollectionName); |
| 3693 unittest.expect(o.kind, unittest.equals('foo')); |
| 3694 unittest.expect(o.name, unittest.equals('foo')); |
| 3695 checkUnnamed3055(o.outputCollectionName); |
| 3696 } |
| 3697 buildCounterTransformSummary--; |
| 3698 } |
| 3699 |
| 3700 buildUnnamed3056() { |
3218 var o = new core.List<api.Package>(); | 3701 var o = new core.List<api.Package>(); |
3219 o.add(buildPackage()); | 3702 o.add(buildPackage()); |
3220 o.add(buildPackage()); | 3703 o.add(buildPackage()); |
3221 return o; | 3704 return o; |
3222 } | 3705 } |
3223 | 3706 |
3224 checkUnnamed3208(core.List<api.Package> o) { | 3707 checkUnnamed3056(core.List<api.Package> o) { |
3225 unittest.expect(o, unittest.hasLength(2)); | 3708 unittest.expect(o, unittest.hasLength(2)); |
3226 checkPackage(o[0]); | 3709 checkPackage(o[0]); |
3227 checkPackage(o[1]); | 3710 checkPackage(o[1]); |
3228 } | 3711 } |
3229 | 3712 |
3230 core.int buildCounterWorkItem = 0; | 3713 core.int buildCounterWorkItem = 0; |
3231 buildWorkItem() { | 3714 buildWorkItem() { |
3232 var o = new api.WorkItem(); | 3715 var o = new api.WorkItem(); |
3233 buildCounterWorkItem++; | 3716 buildCounterWorkItem++; |
3234 if (buildCounterWorkItem < 3) { | 3717 if (buildCounterWorkItem < 3) { |
3235 o.configuration = "foo"; | 3718 o.configuration = "foo"; |
3236 o.id = "foo"; | 3719 o.id = "foo"; |
3237 o.initialReportIndex = "foo"; | 3720 o.initialReportIndex = "foo"; |
3238 o.jobId = "foo"; | 3721 o.jobId = "foo"; |
3239 o.leaseExpireTime = "foo"; | 3722 o.leaseExpireTime = "foo"; |
3240 o.mapTask = buildMapTask(); | 3723 o.mapTask = buildMapTask(); |
3241 o.packages = buildUnnamed3208(); | 3724 o.packages = buildUnnamed3056(); |
3242 o.projectId = "foo"; | 3725 o.projectId = "foo"; |
3243 o.reportStatusInterval = "foo"; | 3726 o.reportStatusInterval = "foo"; |
3244 o.seqMapTask = buildSeqMapTask(); | 3727 o.seqMapTask = buildSeqMapTask(); |
3245 o.shellTask = buildShellTask(); | 3728 o.shellTask = buildShellTask(); |
3246 o.sourceOperationTask = buildSourceOperationRequest(); | 3729 o.sourceOperationTask = buildSourceOperationRequest(); |
3247 o.streamingComputationTask = buildStreamingComputationTask(); | 3730 o.streamingComputationTask = buildStreamingComputationTask(); |
3248 o.streamingConfigTask = buildStreamingConfigTask(); | 3731 o.streamingConfigTask = buildStreamingConfigTask(); |
3249 o.streamingSetupTask = buildStreamingSetupTask(); | 3732 o.streamingSetupTask = buildStreamingSetupTask(); |
3250 } | 3733 } |
3251 buildCounterWorkItem--; | 3734 buildCounterWorkItem--; |
3252 return o; | 3735 return o; |
3253 } | 3736 } |
3254 | 3737 |
3255 checkWorkItem(api.WorkItem o) { | 3738 checkWorkItem(api.WorkItem o) { |
3256 buildCounterWorkItem++; | 3739 buildCounterWorkItem++; |
3257 if (buildCounterWorkItem < 3) { | 3740 if (buildCounterWorkItem < 3) { |
3258 unittest.expect(o.configuration, unittest.equals('foo')); | 3741 unittest.expect(o.configuration, unittest.equals('foo')); |
3259 unittest.expect(o.id, unittest.equals('foo')); | 3742 unittest.expect(o.id, unittest.equals('foo')); |
3260 unittest.expect(o.initialReportIndex, unittest.equals('foo')); | 3743 unittest.expect(o.initialReportIndex, unittest.equals('foo')); |
3261 unittest.expect(o.jobId, unittest.equals('foo')); | 3744 unittest.expect(o.jobId, unittest.equals('foo')); |
3262 unittest.expect(o.leaseExpireTime, unittest.equals('foo')); | 3745 unittest.expect(o.leaseExpireTime, unittest.equals('foo')); |
3263 checkMapTask(o.mapTask); | 3746 checkMapTask(o.mapTask); |
3264 checkUnnamed3208(o.packages); | 3747 checkUnnamed3056(o.packages); |
3265 unittest.expect(o.projectId, unittest.equals('foo')); | 3748 unittest.expect(o.projectId, unittest.equals('foo')); |
3266 unittest.expect(o.reportStatusInterval, unittest.equals('foo')); | 3749 unittest.expect(o.reportStatusInterval, unittest.equals('foo')); |
3267 checkSeqMapTask(o.seqMapTask); | 3750 checkSeqMapTask(o.seqMapTask); |
3268 checkShellTask(o.shellTask); | 3751 checkShellTask(o.shellTask); |
3269 checkSourceOperationRequest(o.sourceOperationTask); | 3752 checkSourceOperationRequest(o.sourceOperationTask); |
3270 checkStreamingComputationTask(o.streamingComputationTask); | 3753 checkStreamingComputationTask(o.streamingComputationTask); |
3271 checkStreamingConfigTask(o.streamingConfigTask); | 3754 checkStreamingConfigTask(o.streamingConfigTask); |
3272 checkStreamingSetupTask(o.streamingSetupTask); | 3755 checkStreamingSetupTask(o.streamingSetupTask); |
3273 } | 3756 } |
3274 buildCounterWorkItem--; | 3757 buildCounterWorkItem--; |
3275 } | 3758 } |
3276 | 3759 |
3277 buildUnnamed3209() { | 3760 buildUnnamed3057() { |
3278 var o = new core.Map<core.String, core.Object>(); | 3761 var o = new core.Map<core.String, core.Object>(); |
3279 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3762 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
3280 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3763 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
3281 return o; | 3764 return o; |
3282 } | 3765 } |
3283 | 3766 |
3284 checkUnnamed3209(core.Map<core.String, core.Object> o) { | 3767 checkUnnamed3057(core.Map<core.String, core.Object> o) { |
3285 unittest.expect(o, unittest.hasLength(2)); | 3768 unittest.expect(o, unittest.hasLength(2)); |
3286 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')); | 3769 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')); |
3287 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')); | 3770 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')); |
3288 } | 3771 } |
3289 | 3772 |
3290 buildUnnamed3210() { | 3773 buildUnnamed3058() { |
3291 var o = new core.List<api.MetricShortId>(); | 3774 var o = new core.List<api.MetricShortId>(); |
3292 o.add(buildMetricShortId()); | 3775 o.add(buildMetricShortId()); |
3293 o.add(buildMetricShortId()); | 3776 o.add(buildMetricShortId()); |
3294 return o; | 3777 return o; |
3295 } | 3778 } |
3296 | 3779 |
3297 checkUnnamed3210(core.List<api.MetricShortId> o) { | 3780 checkUnnamed3058(core.List<api.MetricShortId> o) { |
3298 unittest.expect(o, unittest.hasLength(2)); | 3781 unittest.expect(o, unittest.hasLength(2)); |
3299 checkMetricShortId(o[0]); | 3782 checkMetricShortId(o[0]); |
3300 checkMetricShortId(o[1]); | 3783 checkMetricShortId(o[1]); |
3301 } | 3784 } |
3302 | 3785 |
3303 core.int buildCounterWorkItemServiceState = 0; | 3786 core.int buildCounterWorkItemServiceState = 0; |
3304 buildWorkItemServiceState() { | 3787 buildWorkItemServiceState() { |
3305 var o = new api.WorkItemServiceState(); | 3788 var o = new api.WorkItemServiceState(); |
3306 buildCounterWorkItemServiceState++; | 3789 buildCounterWorkItemServiceState++; |
3307 if (buildCounterWorkItemServiceState < 3) { | 3790 if (buildCounterWorkItemServiceState < 3) { |
3308 o.harnessData = buildUnnamed3209(); | 3791 o.harnessData = buildUnnamed3057(); |
3309 o.leaseExpireTime = "foo"; | 3792 o.leaseExpireTime = "foo"; |
3310 o.metricShortId = buildUnnamed3210(); | 3793 o.metricShortId = buildUnnamed3058(); |
3311 o.nextReportIndex = "foo"; | 3794 o.nextReportIndex = "foo"; |
3312 o.reportStatusInterval = "foo"; | 3795 o.reportStatusInterval = "foo"; |
3313 o.splitRequest = buildApproximateSplitRequest(); | 3796 o.splitRequest = buildApproximateSplitRequest(); |
3314 o.suggestedStopPoint = buildApproximateProgress(); | 3797 o.suggestedStopPoint = buildApproximateProgress(); |
3315 o.suggestedStopPosition = buildPosition(); | 3798 o.suggestedStopPosition = buildPosition(); |
3316 } | 3799 } |
3317 buildCounterWorkItemServiceState--; | 3800 buildCounterWorkItemServiceState--; |
3318 return o; | 3801 return o; |
3319 } | 3802 } |
3320 | 3803 |
3321 checkWorkItemServiceState(api.WorkItemServiceState o) { | 3804 checkWorkItemServiceState(api.WorkItemServiceState o) { |
3322 buildCounterWorkItemServiceState++; | 3805 buildCounterWorkItemServiceState++; |
3323 if (buildCounterWorkItemServiceState < 3) { | 3806 if (buildCounterWorkItemServiceState < 3) { |
3324 checkUnnamed3209(o.harnessData); | 3807 checkUnnamed3057(o.harnessData); |
3325 unittest.expect(o.leaseExpireTime, unittest.equals('foo')); | 3808 unittest.expect(o.leaseExpireTime, unittest.equals('foo')); |
3326 checkUnnamed3210(o.metricShortId); | 3809 checkUnnamed3058(o.metricShortId); |
3327 unittest.expect(o.nextReportIndex, unittest.equals('foo')); | 3810 unittest.expect(o.nextReportIndex, unittest.equals('foo')); |
3328 unittest.expect(o.reportStatusInterval, unittest.equals('foo')); | 3811 unittest.expect(o.reportStatusInterval, unittest.equals('foo')); |
3329 checkApproximateSplitRequest(o.splitRequest); | 3812 checkApproximateSplitRequest(o.splitRequest); |
3330 checkApproximateProgress(o.suggestedStopPoint); | 3813 checkApproximateProgress(o.suggestedStopPoint); |
3331 checkPosition(o.suggestedStopPosition); | 3814 checkPosition(o.suggestedStopPosition); |
3332 } | 3815 } |
3333 buildCounterWorkItemServiceState--; | 3816 buildCounterWorkItemServiceState--; |
3334 } | 3817 } |
3335 | 3818 |
3336 buildUnnamed3211() { | 3819 buildUnnamed3059() { |
3337 var o = new core.List<api.CounterUpdate>(); | 3820 var o = new core.List<api.CounterUpdate>(); |
3338 o.add(buildCounterUpdate()); | 3821 o.add(buildCounterUpdate()); |
3339 o.add(buildCounterUpdate()); | 3822 o.add(buildCounterUpdate()); |
3340 return o; | 3823 return o; |
3341 } | 3824 } |
3342 | 3825 |
3343 checkUnnamed3211(core.List<api.CounterUpdate> o) { | 3826 checkUnnamed3059(core.List<api.CounterUpdate> o) { |
3344 unittest.expect(o, unittest.hasLength(2)); | 3827 unittest.expect(o, unittest.hasLength(2)); |
3345 checkCounterUpdate(o[0]); | 3828 checkCounterUpdate(o[0]); |
3346 checkCounterUpdate(o[1]); | 3829 checkCounterUpdate(o[1]); |
3347 } | 3830 } |
3348 | 3831 |
3349 buildUnnamed3212() { | 3832 buildUnnamed3060() { |
3350 var o = new core.List<api.Status>(); | 3833 var o = new core.List<api.Status>(); |
3351 o.add(buildStatus()); | 3834 o.add(buildStatus()); |
3352 o.add(buildStatus()); | 3835 o.add(buildStatus()); |
3353 return o; | 3836 return o; |
3354 } | 3837 } |
3355 | 3838 |
3356 checkUnnamed3212(core.List<api.Status> o) { | 3839 checkUnnamed3060(core.List<api.Status> o) { |
3357 unittest.expect(o, unittest.hasLength(2)); | 3840 unittest.expect(o, unittest.hasLength(2)); |
3358 checkStatus(o[0]); | 3841 checkStatus(o[0]); |
3359 checkStatus(o[1]); | 3842 checkStatus(o[1]); |
3360 } | 3843 } |
3361 | 3844 |
3362 buildUnnamed3213() { | 3845 buildUnnamed3061() { |
3363 var o = new core.List<api.MetricUpdate>(); | 3846 var o = new core.List<api.MetricUpdate>(); |
3364 o.add(buildMetricUpdate()); | 3847 o.add(buildMetricUpdate()); |
3365 o.add(buildMetricUpdate()); | 3848 o.add(buildMetricUpdate()); |
3366 return o; | 3849 return o; |
3367 } | 3850 } |
3368 | 3851 |
3369 checkUnnamed3213(core.List<api.MetricUpdate> o) { | 3852 checkUnnamed3061(core.List<api.MetricUpdate> o) { |
3370 unittest.expect(o, unittest.hasLength(2)); | 3853 unittest.expect(o, unittest.hasLength(2)); |
3371 checkMetricUpdate(o[0]); | 3854 checkMetricUpdate(o[0]); |
3372 checkMetricUpdate(o[1]); | 3855 checkMetricUpdate(o[1]); |
3373 } | 3856 } |
3374 | 3857 |
3375 core.int buildCounterWorkItemStatus = 0; | 3858 core.int buildCounterWorkItemStatus = 0; |
3376 buildWorkItemStatus() { | 3859 buildWorkItemStatus() { |
3377 var o = new api.WorkItemStatus(); | 3860 var o = new api.WorkItemStatus(); |
3378 buildCounterWorkItemStatus++; | 3861 buildCounterWorkItemStatus++; |
3379 if (buildCounterWorkItemStatus < 3) { | 3862 if (buildCounterWorkItemStatus < 3) { |
3380 o.completed = true; | 3863 o.completed = true; |
3381 o.counterUpdates = buildUnnamed3211(); | 3864 o.counterUpdates = buildUnnamed3059(); |
3382 o.dynamicSourceSplit = buildDynamicSourceSplit(); | 3865 o.dynamicSourceSplit = buildDynamicSourceSplit(); |
3383 o.errors = buildUnnamed3212(); | 3866 o.errors = buildUnnamed3060(); |
3384 o.metricUpdates = buildUnnamed3213(); | 3867 o.metricUpdates = buildUnnamed3061(); |
3385 o.progress = buildApproximateProgress(); | 3868 o.progress = buildApproximateProgress(); |
3386 o.reportIndex = "foo"; | 3869 o.reportIndex = "foo"; |
3387 o.reportedProgress = buildApproximateReportedProgress(); | 3870 o.reportedProgress = buildApproximateReportedProgress(); |
3388 o.requestedLeaseDuration = "foo"; | 3871 o.requestedLeaseDuration = "foo"; |
3389 o.sourceFork = buildSourceFork(); | 3872 o.sourceFork = buildSourceFork(); |
3390 o.sourceOperationResponse = buildSourceOperationResponse(); | 3873 o.sourceOperationResponse = buildSourceOperationResponse(); |
3391 o.stopPosition = buildPosition(); | 3874 o.stopPosition = buildPosition(); |
3392 o.workItemId = "foo"; | 3875 o.workItemId = "foo"; |
3393 } | 3876 } |
3394 buildCounterWorkItemStatus--; | 3877 buildCounterWorkItemStatus--; |
3395 return o; | 3878 return o; |
3396 } | 3879 } |
3397 | 3880 |
3398 checkWorkItemStatus(api.WorkItemStatus o) { | 3881 checkWorkItemStatus(api.WorkItemStatus o) { |
3399 buildCounterWorkItemStatus++; | 3882 buildCounterWorkItemStatus++; |
3400 if (buildCounterWorkItemStatus < 3) { | 3883 if (buildCounterWorkItemStatus < 3) { |
3401 unittest.expect(o.completed, unittest.isTrue); | 3884 unittest.expect(o.completed, unittest.isTrue); |
3402 checkUnnamed3211(o.counterUpdates); | 3885 checkUnnamed3059(o.counterUpdates); |
3403 checkDynamicSourceSplit(o.dynamicSourceSplit); | 3886 checkDynamicSourceSplit(o.dynamicSourceSplit); |
3404 checkUnnamed3212(o.errors); | 3887 checkUnnamed3060(o.errors); |
3405 checkUnnamed3213(o.metricUpdates); | 3888 checkUnnamed3061(o.metricUpdates); |
3406 checkApproximateProgress(o.progress); | 3889 checkApproximateProgress(o.progress); |
3407 unittest.expect(o.reportIndex, unittest.equals('foo')); | 3890 unittest.expect(o.reportIndex, unittest.equals('foo')); |
3408 checkApproximateReportedProgress(o.reportedProgress); | 3891 checkApproximateReportedProgress(o.reportedProgress); |
3409 unittest.expect(o.requestedLeaseDuration, unittest.equals('foo')); | 3892 unittest.expect(o.requestedLeaseDuration, unittest.equals('foo')); |
3410 checkSourceFork(o.sourceFork); | 3893 checkSourceFork(o.sourceFork); |
3411 checkSourceOperationResponse(o.sourceOperationResponse); | 3894 checkSourceOperationResponse(o.sourceOperationResponse); |
3412 checkPosition(o.stopPosition); | 3895 checkPosition(o.stopPosition); |
3413 unittest.expect(o.workItemId, unittest.equals('foo')); | 3896 unittest.expect(o.workItemId, unittest.equals('foo')); |
3414 } | 3897 } |
3415 buildCounterWorkItemStatus--; | 3898 buildCounterWorkItemStatus--; |
3416 } | 3899 } |
3417 | 3900 |
3418 buildUnnamed3214() { | 3901 buildUnnamed3062() { |
3419 var o = new core.Map<core.String, core.Object>(); | 3902 var o = new core.Map<core.String, core.Object>(); |
3420 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3903 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
3421 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3904 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
3422 return o; | 3905 return o; |
3423 } | 3906 } |
3424 | 3907 |
3425 checkUnnamed3214(core.Map<core.String, core.Object> o) { | 3908 checkUnnamed3062(core.Map<core.String, core.Object> o) { |
3426 unittest.expect(o, unittest.hasLength(2)); | 3909 unittest.expect(o, unittest.hasLength(2)); |
3427 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')); | 3910 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')); |
3428 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')); | 3911 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')); |
3429 } | 3912 } |
3430 | 3913 |
3431 buildUnnamed3215() { | 3914 buildUnnamed3063() { |
3432 var o = new core.List<core.Map<core.String, core.Object>>(); | 3915 var o = new core.List<core.Map<core.String, core.Object>>(); |
3433 o.add(buildUnnamed3214()); | 3916 o.add(buildUnnamed3062()); |
3434 o.add(buildUnnamed3214()); | 3917 o.add(buildUnnamed3062()); |
3435 return o; | 3918 return o; |
3436 } | 3919 } |
3437 | 3920 |
3438 checkUnnamed3215(core.List<core.Map<core.String, core.Object>> o) { | 3921 checkUnnamed3063(core.List<core.Map<core.String, core.Object>> o) { |
3439 unittest.expect(o, unittest.hasLength(2)); | 3922 unittest.expect(o, unittest.hasLength(2)); |
3440 checkUnnamed3214(o[0]); | 3923 checkUnnamed3062(o[0]); |
3441 checkUnnamed3214(o[1]); | 3924 checkUnnamed3062(o[1]); |
3442 } | 3925 } |
3443 | 3926 |
3444 core.int buildCounterWorkerHealthReport = 0; | 3927 core.int buildCounterWorkerHealthReport = 0; |
3445 buildWorkerHealthReport() { | 3928 buildWorkerHealthReport() { |
3446 var o = new api.WorkerHealthReport(); | 3929 var o = new api.WorkerHealthReport(); |
3447 buildCounterWorkerHealthReport++; | 3930 buildCounterWorkerHealthReport++; |
3448 if (buildCounterWorkerHealthReport < 3) { | 3931 if (buildCounterWorkerHealthReport < 3) { |
3449 o.pods = buildUnnamed3215(); | 3932 o.pods = buildUnnamed3063(); |
3450 o.reportInterval = "foo"; | 3933 o.reportInterval = "foo"; |
3451 o.vmIsHealthy = true; | 3934 o.vmIsHealthy = true; |
3452 o.vmStartupTime = "foo"; | 3935 o.vmStartupTime = "foo"; |
3453 } | 3936 } |
3454 buildCounterWorkerHealthReport--; | 3937 buildCounterWorkerHealthReport--; |
3455 return o; | 3938 return o; |
3456 } | 3939 } |
3457 | 3940 |
3458 checkWorkerHealthReport(api.WorkerHealthReport o) { | 3941 checkWorkerHealthReport(api.WorkerHealthReport o) { |
3459 buildCounterWorkerHealthReport++; | 3942 buildCounterWorkerHealthReport++; |
3460 if (buildCounterWorkerHealthReport < 3) { | 3943 if (buildCounterWorkerHealthReport < 3) { |
3461 checkUnnamed3215(o.pods); | 3944 checkUnnamed3063(o.pods); |
3462 unittest.expect(o.reportInterval, unittest.equals('foo')); | 3945 unittest.expect(o.reportInterval, unittest.equals('foo')); |
3463 unittest.expect(o.vmIsHealthy, unittest.isTrue); | 3946 unittest.expect(o.vmIsHealthy, unittest.isTrue); |
3464 unittest.expect(o.vmStartupTime, unittest.equals('foo')); | 3947 unittest.expect(o.vmStartupTime, unittest.equals('foo')); |
3465 } | 3948 } |
3466 buildCounterWorkerHealthReport--; | 3949 buildCounterWorkerHealthReport--; |
3467 } | 3950 } |
3468 | 3951 |
3469 core.int buildCounterWorkerHealthReportResponse = 0; | 3952 core.int buildCounterWorkerHealthReportResponse = 0; |
3470 buildWorkerHealthReportResponse() { | 3953 buildWorkerHealthReportResponse() { |
3471 var o = new api.WorkerHealthReportResponse(); | 3954 var o = new api.WorkerHealthReportResponse(); |
3472 buildCounterWorkerHealthReportResponse++; | 3955 buildCounterWorkerHealthReportResponse++; |
3473 if (buildCounterWorkerHealthReportResponse < 3) { | 3956 if (buildCounterWorkerHealthReportResponse < 3) { |
3474 o.reportInterval = "foo"; | 3957 o.reportInterval = "foo"; |
3475 } | 3958 } |
3476 buildCounterWorkerHealthReportResponse--; | 3959 buildCounterWorkerHealthReportResponse--; |
3477 return o; | 3960 return o; |
3478 } | 3961 } |
3479 | 3962 |
3480 checkWorkerHealthReportResponse(api.WorkerHealthReportResponse o) { | 3963 checkWorkerHealthReportResponse(api.WorkerHealthReportResponse o) { |
3481 buildCounterWorkerHealthReportResponse++; | 3964 buildCounterWorkerHealthReportResponse++; |
3482 if (buildCounterWorkerHealthReportResponse < 3) { | 3965 if (buildCounterWorkerHealthReportResponse < 3) { |
3483 unittest.expect(o.reportInterval, unittest.equals('foo')); | 3966 unittest.expect(o.reportInterval, unittest.equals('foo')); |
3484 } | 3967 } |
3485 buildCounterWorkerHealthReportResponse--; | 3968 buildCounterWorkerHealthReportResponse--; |
3486 } | 3969 } |
3487 | 3970 |
3488 buildUnnamed3216() { | 3971 buildUnnamed3064() { |
3489 var o = new core.Map<core.String, core.String>(); | 3972 var o = new core.Map<core.String, core.String>(); |
3490 o["x"] = "foo"; | 3973 o["x"] = "foo"; |
3491 o["y"] = "foo"; | 3974 o["y"] = "foo"; |
3492 return o; | 3975 return o; |
3493 } | 3976 } |
3494 | 3977 |
3495 checkUnnamed3216(core.Map<core.String, core.String> o) { | 3978 checkUnnamed3064(core.Map<core.String, core.String> o) { |
3496 unittest.expect(o, unittest.hasLength(2)); | 3979 unittest.expect(o, unittest.hasLength(2)); |
3497 unittest.expect(o["x"], unittest.equals('foo')); | 3980 unittest.expect(o["x"], unittest.equals('foo')); |
3498 unittest.expect(o["y"], unittest.equals('foo')); | 3981 unittest.expect(o["y"], unittest.equals('foo')); |
3499 } | 3982 } |
3500 | 3983 |
3501 core.int buildCounterWorkerMessage = 0; | 3984 core.int buildCounterWorkerMessage = 0; |
3502 buildWorkerMessage() { | 3985 buildWorkerMessage() { |
3503 var o = new api.WorkerMessage(); | 3986 var o = new api.WorkerMessage(); |
3504 buildCounterWorkerMessage++; | 3987 buildCounterWorkerMessage++; |
3505 if (buildCounterWorkerMessage < 3) { | 3988 if (buildCounterWorkerMessage < 3) { |
3506 o.labels = buildUnnamed3216(); | 3989 o.labels = buildUnnamed3064(); |
3507 o.time = "foo"; | 3990 o.time = "foo"; |
3508 o.workerHealthReport = buildWorkerHealthReport(); | 3991 o.workerHealthReport = buildWorkerHealthReport(); |
3509 o.workerMessageCode = buildWorkerMessageCode(); | 3992 o.workerMessageCode = buildWorkerMessageCode(); |
3510 o.workerMetrics = buildResourceUtilizationReport(); | 3993 o.workerMetrics = buildResourceUtilizationReport(); |
3511 } | 3994 } |
3512 buildCounterWorkerMessage--; | 3995 buildCounterWorkerMessage--; |
3513 return o; | 3996 return o; |
3514 } | 3997 } |
3515 | 3998 |
3516 checkWorkerMessage(api.WorkerMessage o) { | 3999 checkWorkerMessage(api.WorkerMessage o) { |
3517 buildCounterWorkerMessage++; | 4000 buildCounterWorkerMessage++; |
3518 if (buildCounterWorkerMessage < 3) { | 4001 if (buildCounterWorkerMessage < 3) { |
3519 checkUnnamed3216(o.labels); | 4002 checkUnnamed3064(o.labels); |
3520 unittest.expect(o.time, unittest.equals('foo')); | 4003 unittest.expect(o.time, unittest.equals('foo')); |
3521 checkWorkerHealthReport(o.workerHealthReport); | 4004 checkWorkerHealthReport(o.workerHealthReport); |
3522 checkWorkerMessageCode(o.workerMessageCode); | 4005 checkWorkerMessageCode(o.workerMessageCode); |
3523 checkResourceUtilizationReport(o.workerMetrics); | 4006 checkResourceUtilizationReport(o.workerMetrics); |
3524 } | 4007 } |
3525 buildCounterWorkerMessage--; | 4008 buildCounterWorkerMessage--; |
3526 } | 4009 } |
3527 | 4010 |
3528 buildUnnamed3217() { | 4011 buildUnnamed3065() { |
3529 var o = new core.Map<core.String, core.Object>(); | 4012 var o = new core.Map<core.String, core.Object>(); |
3530 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 4013 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
3531 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 4014 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
3532 return o; | 4015 return o; |
3533 } | 4016 } |
3534 | 4017 |
3535 checkUnnamed3217(core.Map<core.String, core.Object> o) { | 4018 checkUnnamed3065(core.Map<core.String, core.Object> o) { |
3536 unittest.expect(o, unittest.hasLength(2)); | 4019 unittest.expect(o, unittest.hasLength(2)); |
3537 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')); | 4020 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')); |
3538 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')); | 4021 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')); |
3539 } | 4022 } |
3540 | 4023 |
3541 core.int buildCounterWorkerMessageCode = 0; | 4024 core.int buildCounterWorkerMessageCode = 0; |
3542 buildWorkerMessageCode() { | 4025 buildWorkerMessageCode() { |
3543 var o = new api.WorkerMessageCode(); | 4026 var o = new api.WorkerMessageCode(); |
3544 buildCounterWorkerMessageCode++; | 4027 buildCounterWorkerMessageCode++; |
3545 if (buildCounterWorkerMessageCode < 3) { | 4028 if (buildCounterWorkerMessageCode < 3) { |
3546 o.code = "foo"; | 4029 o.code = "foo"; |
3547 o.parameters = buildUnnamed3217(); | 4030 o.parameters = buildUnnamed3065(); |
3548 } | 4031 } |
3549 buildCounterWorkerMessageCode--; | 4032 buildCounterWorkerMessageCode--; |
3550 return o; | 4033 return o; |
3551 } | 4034 } |
3552 | 4035 |
3553 checkWorkerMessageCode(api.WorkerMessageCode o) { | 4036 checkWorkerMessageCode(api.WorkerMessageCode o) { |
3554 buildCounterWorkerMessageCode++; | 4037 buildCounterWorkerMessageCode++; |
3555 if (buildCounterWorkerMessageCode < 3) { | 4038 if (buildCounterWorkerMessageCode < 3) { |
3556 unittest.expect(o.code, unittest.equals('foo')); | 4039 unittest.expect(o.code, unittest.equals('foo')); |
3557 checkUnnamed3217(o.parameters); | 4040 checkUnnamed3065(o.parameters); |
3558 } | 4041 } |
3559 buildCounterWorkerMessageCode--; | 4042 buildCounterWorkerMessageCode--; |
3560 } | 4043 } |
3561 | 4044 |
3562 core.int buildCounterWorkerMessageResponse = 0; | 4045 core.int buildCounterWorkerMessageResponse = 0; |
3563 buildWorkerMessageResponse() { | 4046 buildWorkerMessageResponse() { |
3564 var o = new api.WorkerMessageResponse(); | 4047 var o = new api.WorkerMessageResponse(); |
3565 buildCounterWorkerMessageResponse++; | 4048 buildCounterWorkerMessageResponse++; |
3566 if (buildCounterWorkerMessageResponse < 3) { | 4049 if (buildCounterWorkerMessageResponse < 3) { |
3567 o.workerHealthReportResponse = buildWorkerHealthReportResponse(); | 4050 o.workerHealthReportResponse = buildWorkerHealthReportResponse(); |
3568 o.workerMetricsResponse = buildResourceUtilizationReportResponse(); | 4051 o.workerMetricsResponse = buildResourceUtilizationReportResponse(); |
3569 } | 4052 } |
3570 buildCounterWorkerMessageResponse--; | 4053 buildCounterWorkerMessageResponse--; |
3571 return o; | 4054 return o; |
3572 } | 4055 } |
3573 | 4056 |
3574 checkWorkerMessageResponse(api.WorkerMessageResponse o) { | 4057 checkWorkerMessageResponse(api.WorkerMessageResponse o) { |
3575 buildCounterWorkerMessageResponse++; | 4058 buildCounterWorkerMessageResponse++; |
3576 if (buildCounterWorkerMessageResponse < 3) { | 4059 if (buildCounterWorkerMessageResponse < 3) { |
3577 checkWorkerHealthReportResponse(o.workerHealthReportResponse); | 4060 checkWorkerHealthReportResponse(o.workerHealthReportResponse); |
3578 checkResourceUtilizationReportResponse(o.workerMetricsResponse); | 4061 checkResourceUtilizationReportResponse(o.workerMetricsResponse); |
3579 } | 4062 } |
3580 buildCounterWorkerMessageResponse--; | 4063 buildCounterWorkerMessageResponse--; |
3581 } | 4064 } |
3582 | 4065 |
3583 buildUnnamed3218() { | 4066 buildUnnamed3066() { |
3584 var o = new core.List<api.Disk>(); | 4067 var o = new core.List<api.Disk>(); |
3585 o.add(buildDisk()); | 4068 o.add(buildDisk()); |
3586 o.add(buildDisk()); | 4069 o.add(buildDisk()); |
3587 return o; | 4070 return o; |
3588 } | 4071 } |
3589 | 4072 |
3590 checkUnnamed3218(core.List<api.Disk> o) { | 4073 checkUnnamed3066(core.List<api.Disk> o) { |
3591 unittest.expect(o, unittest.hasLength(2)); | 4074 unittest.expect(o, unittest.hasLength(2)); |
3592 checkDisk(o[0]); | 4075 checkDisk(o[0]); |
3593 checkDisk(o[1]); | 4076 checkDisk(o[1]); |
3594 } | 4077 } |
3595 | 4078 |
3596 buildUnnamed3219() { | 4079 buildUnnamed3067() { |
3597 var o = new core.Map<core.String, core.String>(); | 4080 var o = new core.Map<core.String, core.String>(); |
3598 o["x"] = "foo"; | 4081 o["x"] = "foo"; |
3599 o["y"] = "foo"; | 4082 o["y"] = "foo"; |
3600 return o; | 4083 return o; |
3601 } | 4084 } |
3602 | 4085 |
3603 checkUnnamed3219(core.Map<core.String, core.String> o) { | 4086 checkUnnamed3067(core.Map<core.String, core.String> o) { |
3604 unittest.expect(o, unittest.hasLength(2)); | 4087 unittest.expect(o, unittest.hasLength(2)); |
3605 unittest.expect(o["x"], unittest.equals('foo')); | 4088 unittest.expect(o["x"], unittest.equals('foo')); |
3606 unittest.expect(o["y"], unittest.equals('foo')); | 4089 unittest.expect(o["y"], unittest.equals('foo')); |
3607 } | 4090 } |
3608 | 4091 |
3609 buildUnnamed3220() { | 4092 buildUnnamed3068() { |
3610 var o = new core.List<api.Package>(); | 4093 var o = new core.List<api.Package>(); |
3611 o.add(buildPackage()); | 4094 o.add(buildPackage()); |
3612 o.add(buildPackage()); | 4095 o.add(buildPackage()); |
3613 return o; | 4096 return o; |
3614 } | 4097 } |
3615 | 4098 |
3616 checkUnnamed3220(core.List<api.Package> o) { | 4099 checkUnnamed3068(core.List<api.Package> o) { |
3617 unittest.expect(o, unittest.hasLength(2)); | 4100 unittest.expect(o, unittest.hasLength(2)); |
3618 checkPackage(o[0]); | 4101 checkPackage(o[0]); |
3619 checkPackage(o[1]); | 4102 checkPackage(o[1]); |
3620 } | 4103 } |
3621 | 4104 |
3622 buildUnnamed3221() { | 4105 buildUnnamed3069() { |
3623 var o = new core.Map<core.String, core.Object>(); | 4106 var o = new core.Map<core.String, core.Object>(); |
3624 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 4107 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
3625 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 4108 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
3626 return o; | 4109 return o; |
3627 } | 4110 } |
3628 | 4111 |
3629 checkUnnamed3221(core.Map<core.String, core.Object> o) { | 4112 checkUnnamed3069(core.Map<core.String, core.Object> o) { |
3630 unittest.expect(o, unittest.hasLength(2)); | 4113 unittest.expect(o, unittest.hasLength(2)); |
3631 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')); | 4114 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')); |
3632 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')); | 4115 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')); |
3633 } | 4116 } |
3634 | 4117 |
3635 core.int buildCounterWorkerPool = 0; | 4118 core.int buildCounterWorkerPool = 0; |
3636 buildWorkerPool() { | 4119 buildWorkerPool() { |
3637 var o = new api.WorkerPool(); | 4120 var o = new api.WorkerPool(); |
3638 buildCounterWorkerPool++; | 4121 buildCounterWorkerPool++; |
3639 if (buildCounterWorkerPool < 3) { | 4122 if (buildCounterWorkerPool < 3) { |
3640 o.autoscalingSettings = buildAutoscalingSettings(); | 4123 o.autoscalingSettings = buildAutoscalingSettings(); |
3641 o.dataDisks = buildUnnamed3218(); | 4124 o.dataDisks = buildUnnamed3066(); |
3642 o.defaultPackageSet = "foo"; | 4125 o.defaultPackageSet = "foo"; |
3643 o.diskSizeGb = 42; | 4126 o.diskSizeGb = 42; |
3644 o.diskSourceImage = "foo"; | 4127 o.diskSourceImage = "foo"; |
3645 o.diskType = "foo"; | 4128 o.diskType = "foo"; |
3646 o.ipConfiguration = "foo"; | 4129 o.ipConfiguration = "foo"; |
3647 o.kind = "foo"; | 4130 o.kind = "foo"; |
3648 o.machineType = "foo"; | 4131 o.machineType = "foo"; |
3649 o.metadata = buildUnnamed3219(); | 4132 o.metadata = buildUnnamed3067(); |
3650 o.network = "foo"; | 4133 o.network = "foo"; |
3651 o.numThreadsPerWorker = 42; | 4134 o.numThreadsPerWorker = 42; |
3652 o.numWorkers = 42; | 4135 o.numWorkers = 42; |
3653 o.onHostMaintenance = "foo"; | 4136 o.onHostMaintenance = "foo"; |
3654 o.packages = buildUnnamed3220(); | 4137 o.packages = buildUnnamed3068(); |
3655 o.poolArgs = buildUnnamed3221(); | 4138 o.poolArgs = buildUnnamed3069(); |
3656 o.subnetwork = "foo"; | 4139 o.subnetwork = "foo"; |
3657 o.taskrunnerSettings = buildTaskRunnerSettings(); | 4140 o.taskrunnerSettings = buildTaskRunnerSettings(); |
3658 o.teardownPolicy = "foo"; | 4141 o.teardownPolicy = "foo"; |
3659 o.workerHarnessContainerImage = "foo"; | 4142 o.workerHarnessContainerImage = "foo"; |
3660 o.zone = "foo"; | 4143 o.zone = "foo"; |
3661 } | 4144 } |
3662 buildCounterWorkerPool--; | 4145 buildCounterWorkerPool--; |
3663 return o; | 4146 return o; |
3664 } | 4147 } |
3665 | 4148 |
3666 checkWorkerPool(api.WorkerPool o) { | 4149 checkWorkerPool(api.WorkerPool o) { |
3667 buildCounterWorkerPool++; | 4150 buildCounterWorkerPool++; |
3668 if (buildCounterWorkerPool < 3) { | 4151 if (buildCounterWorkerPool < 3) { |
3669 checkAutoscalingSettings(o.autoscalingSettings); | 4152 checkAutoscalingSettings(o.autoscalingSettings); |
3670 checkUnnamed3218(o.dataDisks); | 4153 checkUnnamed3066(o.dataDisks); |
3671 unittest.expect(o.defaultPackageSet, unittest.equals('foo')); | 4154 unittest.expect(o.defaultPackageSet, unittest.equals('foo')); |
3672 unittest.expect(o.diskSizeGb, unittest.equals(42)); | 4155 unittest.expect(o.diskSizeGb, unittest.equals(42)); |
3673 unittest.expect(o.diskSourceImage, unittest.equals('foo')); | 4156 unittest.expect(o.diskSourceImage, unittest.equals('foo')); |
3674 unittest.expect(o.diskType, unittest.equals('foo')); | 4157 unittest.expect(o.diskType, unittest.equals('foo')); |
3675 unittest.expect(o.ipConfiguration, unittest.equals('foo')); | 4158 unittest.expect(o.ipConfiguration, unittest.equals('foo')); |
3676 unittest.expect(o.kind, unittest.equals('foo')); | 4159 unittest.expect(o.kind, unittest.equals('foo')); |
3677 unittest.expect(o.machineType, unittest.equals('foo')); | 4160 unittest.expect(o.machineType, unittest.equals('foo')); |
3678 checkUnnamed3219(o.metadata); | 4161 checkUnnamed3067(o.metadata); |
3679 unittest.expect(o.network, unittest.equals('foo')); | 4162 unittest.expect(o.network, unittest.equals('foo')); |
3680 unittest.expect(o.numThreadsPerWorker, unittest.equals(42)); | 4163 unittest.expect(o.numThreadsPerWorker, unittest.equals(42)); |
3681 unittest.expect(o.numWorkers, unittest.equals(42)); | 4164 unittest.expect(o.numWorkers, unittest.equals(42)); |
3682 unittest.expect(o.onHostMaintenance, unittest.equals('foo')); | 4165 unittest.expect(o.onHostMaintenance, unittest.equals('foo')); |
3683 checkUnnamed3220(o.packages); | 4166 checkUnnamed3068(o.packages); |
3684 checkUnnamed3221(o.poolArgs); | 4167 checkUnnamed3069(o.poolArgs); |
3685 unittest.expect(o.subnetwork, unittest.equals('foo')); | 4168 unittest.expect(o.subnetwork, unittest.equals('foo')); |
3686 checkTaskRunnerSettings(o.taskrunnerSettings); | 4169 checkTaskRunnerSettings(o.taskrunnerSettings); |
3687 unittest.expect(o.teardownPolicy, unittest.equals('foo')); | 4170 unittest.expect(o.teardownPolicy, unittest.equals('foo')); |
3688 unittest.expect(o.workerHarnessContainerImage, unittest.equals('foo')); | 4171 unittest.expect(o.workerHarnessContainerImage, unittest.equals('foo')); |
3689 unittest.expect(o.zone, unittest.equals('foo')); | 4172 unittest.expect(o.zone, unittest.equals('foo')); |
3690 } | 4173 } |
3691 buildCounterWorkerPool--; | 4174 buildCounterWorkerPool--; |
3692 } | 4175 } |
3693 | 4176 |
3694 core.int buildCounterWorkerSettings = 0; | 4177 core.int buildCounterWorkerSettings = 0; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3781 | 4264 |
3782 unittest.group("obj-schema-CPUTime", () { | 4265 unittest.group("obj-schema-CPUTime", () { |
3783 unittest.test("to-json--from-json", () { | 4266 unittest.test("to-json--from-json", () { |
3784 var o = buildCPUTime(); | 4267 var o = buildCPUTime(); |
3785 var od = new api.CPUTime.fromJson(o.toJson()); | 4268 var od = new api.CPUTime.fromJson(o.toJson()); |
3786 checkCPUTime(od); | 4269 checkCPUTime(od); |
3787 }); | 4270 }); |
3788 }); | 4271 }); |
3789 | 4272 |
3790 | 4273 |
| 4274 unittest.group("obj-schema-ComponentSource", () { |
| 4275 unittest.test("to-json--from-json", () { |
| 4276 var o = buildComponentSource(); |
| 4277 var od = new api.ComponentSource.fromJson(o.toJson()); |
| 4278 checkComponentSource(od); |
| 4279 }); |
| 4280 }); |
| 4281 |
| 4282 |
| 4283 unittest.group("obj-schema-ComponentTransform", () { |
| 4284 unittest.test("to-json--from-json", () { |
| 4285 var o = buildComponentTransform(); |
| 4286 var od = new api.ComponentTransform.fromJson(o.toJson()); |
| 4287 checkComponentTransform(od); |
| 4288 }); |
| 4289 }); |
| 4290 |
| 4291 |
3791 unittest.group("obj-schema-ComputationTopology", () { | 4292 unittest.group("obj-schema-ComputationTopology", () { |
3792 unittest.test("to-json--from-json", () { | 4293 unittest.test("to-json--from-json", () { |
3793 var o = buildComputationTopology(); | 4294 var o = buildComputationTopology(); |
3794 var od = new api.ComputationTopology.fromJson(o.toJson()); | 4295 var od = new api.ComputationTopology.fromJson(o.toJson()); |
3795 checkComputationTopology(od); | 4296 checkComputationTopology(od); |
3796 }); | 4297 }); |
3797 }); | 4298 }); |
3798 | 4299 |
3799 | 4300 |
3800 unittest.group("obj-schema-ConcatPosition", () { | 4301 unittest.group("obj-schema-ConcatPosition", () { |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3880 | 4381 |
3881 unittest.group("obj-schema-Disk", () { | 4382 unittest.group("obj-schema-Disk", () { |
3882 unittest.test("to-json--from-json", () { | 4383 unittest.test("to-json--from-json", () { |
3883 var o = buildDisk(); | 4384 var o = buildDisk(); |
3884 var od = new api.Disk.fromJson(o.toJson()); | 4385 var od = new api.Disk.fromJson(o.toJson()); |
3885 checkDisk(od); | 4386 checkDisk(od); |
3886 }); | 4387 }); |
3887 }); | 4388 }); |
3888 | 4389 |
3889 | 4390 |
| 4391 unittest.group("obj-schema-DisplayData", () { |
| 4392 unittest.test("to-json--from-json", () { |
| 4393 var o = buildDisplayData(); |
| 4394 var od = new api.DisplayData.fromJson(o.toJson()); |
| 4395 checkDisplayData(od); |
| 4396 }); |
| 4397 }); |
| 4398 |
| 4399 |
3890 unittest.group("obj-schema-DistributionUpdate", () { | 4400 unittest.group("obj-schema-DistributionUpdate", () { |
3891 unittest.test("to-json--from-json", () { | 4401 unittest.test("to-json--from-json", () { |
3892 var o = buildDistributionUpdate(); | 4402 var o = buildDistributionUpdate(); |
3893 var od = new api.DistributionUpdate.fromJson(o.toJson()); | 4403 var od = new api.DistributionUpdate.fromJson(o.toJson()); |
3894 checkDistributionUpdate(od); | 4404 checkDistributionUpdate(od); |
3895 }); | 4405 }); |
3896 }); | 4406 }); |
3897 | 4407 |
3898 | 4408 |
3899 unittest.group("obj-schema-DynamicSourceSplit", () { | 4409 unittest.group("obj-schema-DynamicSourceSplit", () { |
3900 unittest.test("to-json--from-json", () { | 4410 unittest.test("to-json--from-json", () { |
3901 var o = buildDynamicSourceSplit(); | 4411 var o = buildDynamicSourceSplit(); |
3902 var od = new api.DynamicSourceSplit.fromJson(o.toJson()); | 4412 var od = new api.DynamicSourceSplit.fromJson(o.toJson()); |
3903 checkDynamicSourceSplit(od); | 4413 checkDynamicSourceSplit(od); |
3904 }); | 4414 }); |
3905 }); | 4415 }); |
3906 | 4416 |
3907 | 4417 |
3908 unittest.group("obj-schema-Environment", () { | 4418 unittest.group("obj-schema-Environment", () { |
3909 unittest.test("to-json--from-json", () { | 4419 unittest.test("to-json--from-json", () { |
3910 var o = buildEnvironment(); | 4420 var o = buildEnvironment(); |
3911 var od = new api.Environment.fromJson(o.toJson()); | 4421 var od = new api.Environment.fromJson(o.toJson()); |
3912 checkEnvironment(od); | 4422 checkEnvironment(od); |
3913 }); | 4423 }); |
3914 }); | 4424 }); |
3915 | 4425 |
3916 | 4426 |
| 4427 unittest.group("obj-schema-ExecutionStageSummary", () { |
| 4428 unittest.test("to-json--from-json", () { |
| 4429 var o = buildExecutionStageSummary(); |
| 4430 var od = new api.ExecutionStageSummary.fromJson(o.toJson()); |
| 4431 checkExecutionStageSummary(od); |
| 4432 }); |
| 4433 }); |
| 4434 |
| 4435 |
3917 unittest.group("obj-schema-FailedLocation", () { | 4436 unittest.group("obj-schema-FailedLocation", () { |
3918 unittest.test("to-json--from-json", () { | 4437 unittest.test("to-json--from-json", () { |
3919 var o = buildFailedLocation(); | 4438 var o = buildFailedLocation(); |
3920 var od = new api.FailedLocation.fromJson(o.toJson()); | 4439 var od = new api.FailedLocation.fromJson(o.toJson()); |
3921 checkFailedLocation(od); | 4440 checkFailedLocation(od); |
3922 }); | 4441 }); |
3923 }); | 4442 }); |
3924 | 4443 |
3925 | 4444 |
3926 unittest.group("obj-schema-FlattenInstruction", () { | 4445 unittest.group("obj-schema-FlattenInstruction", () { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3961 | 4480 |
3962 unittest.group("obj-schema-GetDebugConfigResponse", () { | 4481 unittest.group("obj-schema-GetDebugConfigResponse", () { |
3963 unittest.test("to-json--from-json", () { | 4482 unittest.test("to-json--from-json", () { |
3964 var o = buildGetDebugConfigResponse(); | 4483 var o = buildGetDebugConfigResponse(); |
3965 var od = new api.GetDebugConfigResponse.fromJson(o.toJson()); | 4484 var od = new api.GetDebugConfigResponse.fromJson(o.toJson()); |
3966 checkGetDebugConfigResponse(od); | 4485 checkGetDebugConfigResponse(od); |
3967 }); | 4486 }); |
3968 }); | 4487 }); |
3969 | 4488 |
3970 | 4489 |
| 4490 unittest.group("obj-schema-GetTemplateResponse", () { |
| 4491 unittest.test("to-json--from-json", () { |
| 4492 var o = buildGetTemplateResponse(); |
| 4493 var od = new api.GetTemplateResponse.fromJson(o.toJson()); |
| 4494 checkGetTemplateResponse(od); |
| 4495 }); |
| 4496 }); |
| 4497 |
| 4498 |
3971 unittest.group("obj-schema-InstructionInput", () { | 4499 unittest.group("obj-schema-InstructionInput", () { |
3972 unittest.test("to-json--from-json", () { | 4500 unittest.test("to-json--from-json", () { |
3973 var o = buildInstructionInput(); | 4501 var o = buildInstructionInput(); |
3974 var od = new api.InstructionInput.fromJson(o.toJson()); | 4502 var od = new api.InstructionInput.fromJson(o.toJson()); |
3975 checkInstructionInput(od); | 4503 checkInstructionInput(od); |
3976 }); | 4504 }); |
3977 }); | 4505 }); |
3978 | 4506 |
3979 | 4507 |
3980 unittest.group("obj-schema-InstructionOutput", () { | 4508 unittest.group("obj-schema-InstructionOutput", () { |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4060 | 4588 |
4061 unittest.group("obj-schema-KeyRangeLocation", () { | 4589 unittest.group("obj-schema-KeyRangeLocation", () { |
4062 unittest.test("to-json--from-json", () { | 4590 unittest.test("to-json--from-json", () { |
4063 var o = buildKeyRangeLocation(); | 4591 var o = buildKeyRangeLocation(); |
4064 var od = new api.KeyRangeLocation.fromJson(o.toJson()); | 4592 var od = new api.KeyRangeLocation.fromJson(o.toJson()); |
4065 checkKeyRangeLocation(od); | 4593 checkKeyRangeLocation(od); |
4066 }); | 4594 }); |
4067 }); | 4595 }); |
4068 | 4596 |
4069 | 4597 |
| 4598 unittest.group("obj-schema-LaunchTemplateParameters", () { |
| 4599 unittest.test("to-json--from-json", () { |
| 4600 var o = buildLaunchTemplateParameters(); |
| 4601 var od = new api.LaunchTemplateParameters.fromJson(o.toJson()); |
| 4602 checkLaunchTemplateParameters(od); |
| 4603 }); |
| 4604 }); |
| 4605 |
| 4606 |
| 4607 unittest.group("obj-schema-LaunchTemplateResponse", () { |
| 4608 unittest.test("to-json--from-json", () { |
| 4609 var o = buildLaunchTemplateResponse(); |
| 4610 var od = new api.LaunchTemplateResponse.fromJson(o.toJson()); |
| 4611 checkLaunchTemplateResponse(od); |
| 4612 }); |
| 4613 }); |
| 4614 |
| 4615 |
4070 unittest.group("obj-schema-LeaseWorkItemRequest", () { | 4616 unittest.group("obj-schema-LeaseWorkItemRequest", () { |
4071 unittest.test("to-json--from-json", () { | 4617 unittest.test("to-json--from-json", () { |
4072 var o = buildLeaseWorkItemRequest(); | 4618 var o = buildLeaseWorkItemRequest(); |
4073 var od = new api.LeaseWorkItemRequest.fromJson(o.toJson()); | 4619 var od = new api.LeaseWorkItemRequest.fromJson(o.toJson()); |
4074 checkLeaseWorkItemRequest(od); | 4620 checkLeaseWorkItemRequest(od); |
4075 }); | 4621 }); |
4076 }); | 4622 }); |
4077 | 4623 |
4078 | 4624 |
4079 unittest.group("obj-schema-LeaseWorkItemResponse", () { | 4625 unittest.group("obj-schema-LeaseWorkItemResponse", () { |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4186 | 4732 |
4187 unittest.group("obj-schema-ParallelInstruction", () { | 4733 unittest.group("obj-schema-ParallelInstruction", () { |
4188 unittest.test("to-json--from-json", () { | 4734 unittest.test("to-json--from-json", () { |
4189 var o = buildParallelInstruction(); | 4735 var o = buildParallelInstruction(); |
4190 var od = new api.ParallelInstruction.fromJson(o.toJson()); | 4736 var od = new api.ParallelInstruction.fromJson(o.toJson()); |
4191 checkParallelInstruction(od); | 4737 checkParallelInstruction(od); |
4192 }); | 4738 }); |
4193 }); | 4739 }); |
4194 | 4740 |
4195 | 4741 |
| 4742 unittest.group("obj-schema-ParameterMetadata", () { |
| 4743 unittest.test("to-json--from-json", () { |
| 4744 var o = buildParameterMetadata(); |
| 4745 var od = new api.ParameterMetadata.fromJson(o.toJson()); |
| 4746 checkParameterMetadata(od); |
| 4747 }); |
| 4748 }); |
| 4749 |
| 4750 |
4196 unittest.group("obj-schema-PartialGroupByKeyInstruction", () { | 4751 unittest.group("obj-schema-PartialGroupByKeyInstruction", () { |
4197 unittest.test("to-json--from-json", () { | 4752 unittest.test("to-json--from-json", () { |
4198 var o = buildPartialGroupByKeyInstruction(); | 4753 var o = buildPartialGroupByKeyInstruction(); |
4199 var od = new api.PartialGroupByKeyInstruction.fromJson(o.toJson()); | 4754 var od = new api.PartialGroupByKeyInstruction.fromJson(o.toJson()); |
4200 checkPartialGroupByKeyInstruction(od); | 4755 checkPartialGroupByKeyInstruction(od); |
4201 }); | 4756 }); |
4202 }); | 4757 }); |
4203 | 4758 |
4204 | 4759 |
| 4760 unittest.group("obj-schema-PipelineDescription", () { |
| 4761 unittest.test("to-json--from-json", () { |
| 4762 var o = buildPipelineDescription(); |
| 4763 var od = new api.PipelineDescription.fromJson(o.toJson()); |
| 4764 checkPipelineDescription(od); |
| 4765 }); |
| 4766 }); |
| 4767 |
| 4768 |
4205 unittest.group("obj-schema-Position", () { | 4769 unittest.group("obj-schema-Position", () { |
4206 unittest.test("to-json--from-json", () { | 4770 unittest.test("to-json--from-json", () { |
4207 var o = buildPosition(); | 4771 var o = buildPosition(); |
4208 var od = new api.Position.fromJson(o.toJson()); | 4772 var od = new api.Position.fromJson(o.toJson()); |
4209 checkPosition(od); | 4773 checkPosition(od); |
4210 }); | 4774 }); |
4211 }); | 4775 }); |
4212 | 4776 |
4213 | 4777 |
4214 unittest.group("obj-schema-PubsubLocation", () { | 4778 unittest.group("obj-schema-PubsubLocation", () { |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4465 | 5029 |
4466 unittest.group("obj-schema-SplitInt64", () { | 5030 unittest.group("obj-schema-SplitInt64", () { |
4467 unittest.test("to-json--from-json", () { | 5031 unittest.test("to-json--from-json", () { |
4468 var o = buildSplitInt64(); | 5032 var o = buildSplitInt64(); |
4469 var od = new api.SplitInt64.fromJson(o.toJson()); | 5033 var od = new api.SplitInt64.fromJson(o.toJson()); |
4470 checkSplitInt64(od); | 5034 checkSplitInt64(od); |
4471 }); | 5035 }); |
4472 }); | 5036 }); |
4473 | 5037 |
4474 | 5038 |
| 5039 unittest.group("obj-schema-StageSource", () { |
| 5040 unittest.test("to-json--from-json", () { |
| 5041 var o = buildStageSource(); |
| 5042 var od = new api.StageSource.fromJson(o.toJson()); |
| 5043 checkStageSource(od); |
| 5044 }); |
| 5045 }); |
| 5046 |
| 5047 |
4475 unittest.group("obj-schema-StateFamilyConfig", () { | 5048 unittest.group("obj-schema-StateFamilyConfig", () { |
4476 unittest.test("to-json--from-json", () { | 5049 unittest.test("to-json--from-json", () { |
4477 var o = buildStateFamilyConfig(); | 5050 var o = buildStateFamilyConfig(); |
4478 var od = new api.StateFamilyConfig.fromJson(o.toJson()); | 5051 var od = new api.StateFamilyConfig.fromJson(o.toJson()); |
4479 checkStateFamilyConfig(od); | 5052 checkStateFamilyConfig(od); |
4480 }); | 5053 }); |
4481 }); | 5054 }); |
4482 | 5055 |
4483 | 5056 |
4484 unittest.group("obj-schema-Status", () { | 5057 unittest.group("obj-schema-Status", () { |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4582 | 5155 |
4583 unittest.group("obj-schema-TaskRunnerSettings", () { | 5156 unittest.group("obj-schema-TaskRunnerSettings", () { |
4584 unittest.test("to-json--from-json", () { | 5157 unittest.test("to-json--from-json", () { |
4585 var o = buildTaskRunnerSettings(); | 5158 var o = buildTaskRunnerSettings(); |
4586 var od = new api.TaskRunnerSettings.fromJson(o.toJson()); | 5159 var od = new api.TaskRunnerSettings.fromJson(o.toJson()); |
4587 checkTaskRunnerSettings(od); | 5160 checkTaskRunnerSettings(od); |
4588 }); | 5161 }); |
4589 }); | 5162 }); |
4590 | 5163 |
4591 | 5164 |
| 5165 unittest.group("obj-schema-TemplateMetadata", () { |
| 5166 unittest.test("to-json--from-json", () { |
| 5167 var o = buildTemplateMetadata(); |
| 5168 var od = new api.TemplateMetadata.fromJson(o.toJson()); |
| 5169 checkTemplateMetadata(od); |
| 5170 }); |
| 5171 }); |
| 5172 |
| 5173 |
4592 unittest.group("obj-schema-TopologyConfig", () { | 5174 unittest.group("obj-schema-TopologyConfig", () { |
4593 unittest.test("to-json--from-json", () { | 5175 unittest.test("to-json--from-json", () { |
4594 var o = buildTopologyConfig(); | 5176 var o = buildTopologyConfig(); |
4595 var od = new api.TopologyConfig.fromJson(o.toJson()); | 5177 var od = new api.TopologyConfig.fromJson(o.toJson()); |
4596 checkTopologyConfig(od); | 5178 checkTopologyConfig(od); |
4597 }); | 5179 }); |
4598 }); | 5180 }); |
4599 | 5181 |
4600 | 5182 |
| 5183 unittest.group("obj-schema-TransformSummary", () { |
| 5184 unittest.test("to-json--from-json", () { |
| 5185 var o = buildTransformSummary(); |
| 5186 var od = new api.TransformSummary.fromJson(o.toJson()); |
| 5187 checkTransformSummary(od); |
| 5188 }); |
| 5189 }); |
| 5190 |
| 5191 |
4601 unittest.group("obj-schema-WorkItem", () { | 5192 unittest.group("obj-schema-WorkItem", () { |
4602 unittest.test("to-json--from-json", () { | 5193 unittest.test("to-json--from-json", () { |
4603 var o = buildWorkItem(); | 5194 var o = buildWorkItem(); |
4604 var od = new api.WorkItem.fromJson(o.toJson()); | 5195 var od = new api.WorkItem.fromJson(o.toJson()); |
4605 checkWorkItem(od); | 5196 checkWorkItem(od); |
4606 }); | 5197 }); |
4607 }); | 5198 }); |
4608 | 5199 |
4609 | 5200 |
4610 unittest.group("obj-schema-WorkItemServiceState", () { | 5201 unittest.group("obj-schema-WorkItemServiceState", () { |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4817 checkJob(response); | 5408 checkJob(response); |
4818 }))); | 5409 }))); |
4819 }); | 5410 }); |
4820 | 5411 |
4821 unittest.test("method--get", () { | 5412 unittest.test("method--get", () { |
4822 | 5413 |
4823 var mock = new HttpServerMock(); | 5414 var mock = new HttpServerMock(); |
4824 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; | 5415 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; |
4825 var arg_projectId = "foo"; | 5416 var arg_projectId = "foo"; |
4826 var arg_jobId = "foo"; | 5417 var arg_jobId = "foo"; |
| 5418 var arg_location = "foo"; |
4827 var arg_view = "foo"; | 5419 var arg_view = "foo"; |
4828 var arg_location = "foo"; | |
4829 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5420 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4830 var path = (req.url).path; | 5421 var path = (req.url).path; |
4831 var pathOffset = 0; | 5422 var pathOffset = 0; |
4832 var index; | 5423 var index; |
4833 var subPart; | 5424 var subPart; |
4834 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5425 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4835 pathOffset += 1; | 5426 pathOffset += 1; |
4836 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 5427 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
4837 pathOffset += 14; | 5428 pathOffset += 14; |
4838 index = path.indexOf("/jobs/", pathOffset); | 5429 index = path.indexOf("/jobs/", pathOffset); |
(...skipping 16 matching lines...) Expand all Loading... |
4855 if (n == "false") return false; | 5446 if (n == "false") return false; |
4856 if (n == null) return null; | 5447 if (n == null) return null; |
4857 throw new core.ArgumentError("Invalid boolean: $n"); | 5448 throw new core.ArgumentError("Invalid boolean: $n"); |
4858 } | 5449 } |
4859 if (query.length > 0) { | 5450 if (query.length > 0) { |
4860 for (var part in query.split("&")) { | 5451 for (var part in query.split("&")) { |
4861 var keyvalue = part.split("="); | 5452 var keyvalue = part.split("="); |
4862 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5453 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4863 } | 5454 } |
4864 } | 5455 } |
| 5456 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); |
4865 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | 5457 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
4866 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); | |
4867 | 5458 |
4868 | 5459 |
4869 var h = { | 5460 var h = { |
4870 "content-type" : "application/json; charset=utf-8", | 5461 "content-type" : "application/json; charset=utf-8", |
4871 }; | 5462 }; |
4872 var resp = convert.JSON.encode(buildJob()); | 5463 var resp = convert.JSON.encode(buildJob()); |
4873 return new async.Future.value(stringResponse(200, h, resp)); | 5464 return new async.Future.value(stringResponse(200, h, resp)); |
4874 }), true); | 5465 }), true); |
4875 res.get(arg_projectId, arg_jobId, view: arg_view, location: arg_location).
then(unittest.expectAsync(((api.Job response) { | 5466 res.get(arg_projectId, arg_jobId, location: arg_location, view: arg_view).
then(unittest.expectAsync(((api.Job response) { |
4876 checkJob(response); | 5467 checkJob(response); |
4877 }))); | 5468 }))); |
4878 }); | 5469 }); |
4879 | 5470 |
4880 unittest.test("method--getMetrics", () { | 5471 unittest.test("method--getMetrics", () { |
4881 | 5472 |
4882 var mock = new HttpServerMock(); | 5473 var mock = new HttpServerMock(); |
4883 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; | 5474 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; |
4884 var arg_projectId = "foo"; | 5475 var arg_projectId = "foo"; |
4885 var arg_jobId = "foo"; | 5476 var arg_jobId = "foo"; |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5195 }); | 5786 }); |
5196 | 5787 |
5197 | 5788 |
5198 unittest.group("resource-ProjectsJobsMessagesResourceApi", () { | 5789 unittest.group("resource-ProjectsJobsMessagesResourceApi", () { |
5199 unittest.test("method--list", () { | 5790 unittest.test("method--list", () { |
5200 | 5791 |
5201 var mock = new HttpServerMock(); | 5792 var mock = new HttpServerMock(); |
5202 api.ProjectsJobsMessagesResourceApi res = new api.DataflowApi(mock).projec
ts.jobs.messages; | 5793 api.ProjectsJobsMessagesResourceApi res = new api.DataflowApi(mock).projec
ts.jobs.messages; |
5203 var arg_projectId = "foo"; | 5794 var arg_projectId = "foo"; |
5204 var arg_jobId = "foo"; | 5795 var arg_jobId = "foo"; |
| 5796 var arg_startTime = "foo"; |
| 5797 var arg_pageToken = "foo"; |
| 5798 var arg_pageSize = 42; |
5205 var arg_minimumImportance = "foo"; | 5799 var arg_minimumImportance = "foo"; |
5206 var arg_location = "foo"; | 5800 var arg_location = "foo"; |
5207 var arg_endTime = "foo"; | 5801 var arg_endTime = "foo"; |
5208 var arg_startTime = "foo"; | |
5209 var arg_pageToken = "foo"; | |
5210 var arg_pageSize = 42; | |
5211 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5802 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5212 var path = (req.url).path; | 5803 var path = (req.url).path; |
5213 var pathOffset = 0; | 5804 var pathOffset = 0; |
5214 var index; | 5805 var index; |
5215 var subPart; | 5806 var subPart; |
5216 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5807 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5217 pathOffset += 1; | 5808 pathOffset += 1; |
5218 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 5809 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
5219 pathOffset += 14; | 5810 pathOffset += 14; |
5220 index = path.indexOf("/jobs/", pathOffset); | 5811 index = path.indexOf("/jobs/", pathOffset); |
(...skipping 20 matching lines...) Expand all Loading... |
5241 if (n == "false") return false; | 5832 if (n == "false") return false; |
5242 if (n == null) return null; | 5833 if (n == null) return null; |
5243 throw new core.ArgumentError("Invalid boolean: $n"); | 5834 throw new core.ArgumentError("Invalid boolean: $n"); |
5244 } | 5835 } |
5245 if (query.length > 0) { | 5836 if (query.length > 0) { |
5246 for (var part in query.split("&")) { | 5837 for (var part in query.split("&")) { |
5247 var keyvalue = part.split("="); | 5838 var keyvalue = part.split("="); |
5248 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5839 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5249 } | 5840 } |
5250 } | 5841 } |
| 5842 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi
me)); |
| 5843 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 5844 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
5251 unittest.expect(queryMap["minimumImportance"].first, unittest.equals(arg
_minimumImportance)); | 5845 unittest.expect(queryMap["minimumImportance"].first, unittest.equals(arg
_minimumImportance)); |
5252 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); | 5846 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); |
5253 unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime))
; | 5847 unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime))
; |
5254 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi
me)); | |
5255 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
5256 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
5257 | 5848 |
5258 | 5849 |
5259 var h = { | 5850 var h = { |
5260 "content-type" : "application/json; charset=utf-8", | 5851 "content-type" : "application/json; charset=utf-8", |
5261 }; | 5852 }; |
5262 var resp = convert.JSON.encode(buildListJobMessagesResponse()); | 5853 var resp = convert.JSON.encode(buildListJobMessagesResponse()); |
5263 return new async.Future.value(stringResponse(200, h, resp)); | 5854 return new async.Future.value(stringResponse(200, h, resp)); |
5264 }), true); | 5855 }), true); |
5265 res.list(arg_projectId, arg_jobId, minimumImportance: arg_minimumImportanc
e, location: arg_location, endTime: arg_endTime, startTime: arg_startTime, pageT
oken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.Lis
tJobMessagesResponse response) { | 5856 res.list(arg_projectId, arg_jobId, startTime: arg_startTime, pageToken: ar
g_pageToken, pageSize: arg_pageSize, minimumImportance: arg_minimumImportance, l
ocation: arg_location, endTime: arg_endTime).then(unittest.expectAsync(((api.Lis
tJobMessagesResponse response) { |
5266 checkListJobMessagesResponse(response); | 5857 checkListJobMessagesResponse(response); |
5267 }))); | 5858 }))); |
5268 }); | 5859 }); |
5269 | 5860 |
5270 }); | 5861 }); |
5271 | 5862 |
5272 | 5863 |
5273 unittest.group("resource-ProjectsJobsWorkItemsResourceApi", () { | 5864 unittest.group("resource-ProjectsJobsWorkItemsResourceApi", () { |
5274 unittest.test("method--lease", () { | 5865 unittest.test("method--lease", () { |
5275 | 5866 |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5401 | 5992 |
5402 | 5993 |
5403 unittest.group("resource-ProjectsLocationsJobsResourceApi", () { | 5994 unittest.group("resource-ProjectsLocationsJobsResourceApi", () { |
5404 unittest.test("method--create", () { | 5995 unittest.test("method--create", () { |
5405 | 5996 |
5406 var mock = new HttpServerMock(); | 5997 var mock = new HttpServerMock(); |
5407 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje
cts.locations.jobs; | 5998 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje
cts.locations.jobs; |
5408 var arg_request = buildJob(); | 5999 var arg_request = buildJob(); |
5409 var arg_projectId = "foo"; | 6000 var arg_projectId = "foo"; |
5410 var arg_location = "foo"; | 6001 var arg_location = "foo"; |
| 6002 var arg_replaceJobId = "foo"; |
5411 var arg_view = "foo"; | 6003 var arg_view = "foo"; |
5412 var arg_replaceJobId = "foo"; | |
5413 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6004 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5414 var obj = new api.Job.fromJson(json); | 6005 var obj = new api.Job.fromJson(json); |
5415 checkJob(obj); | 6006 checkJob(obj); |
5416 | 6007 |
5417 var path = (req.url).path; | 6008 var path = (req.url).path; |
5418 var pathOffset = 0; | 6009 var pathOffset = 0; |
5419 var index; | 6010 var index; |
5420 var subPart; | 6011 var subPart; |
5421 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6012 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5422 pathOffset += 1; | 6013 pathOffset += 1; |
(...skipping 23 matching lines...) Expand all Loading... |
5446 if (n == "false") return false; | 6037 if (n == "false") return false; |
5447 if (n == null) return null; | 6038 if (n == null) return null; |
5448 throw new core.ArgumentError("Invalid boolean: $n"); | 6039 throw new core.ArgumentError("Invalid boolean: $n"); |
5449 } | 6040 } |
5450 if (query.length > 0) { | 6041 if (query.length > 0) { |
5451 for (var part in query.split("&")) { | 6042 for (var part in query.split("&")) { |
5452 var keyvalue = part.split("="); | 6043 var keyvalue = part.split("="); |
5453 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6044 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5454 } | 6045 } |
5455 } | 6046 } |
| 6047 unittest.expect(queryMap["replaceJobId"].first, unittest.equals(arg_repl
aceJobId)); |
5456 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | 6048 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
5457 unittest.expect(queryMap["replaceJobId"].first, unittest.equals(arg_repl
aceJobId)); | |
5458 | 6049 |
5459 | 6050 |
5460 var h = { | 6051 var h = { |
5461 "content-type" : "application/json; charset=utf-8", | 6052 "content-type" : "application/json; charset=utf-8", |
5462 }; | 6053 }; |
5463 var resp = convert.JSON.encode(buildJob()); | 6054 var resp = convert.JSON.encode(buildJob()); |
5464 return new async.Future.value(stringResponse(200, h, resp)); | 6055 return new async.Future.value(stringResponse(200, h, resp)); |
5465 }), true); | 6056 }), true); |
5466 res.create(arg_request, arg_projectId, arg_location, view: arg_view, repla
ceJobId: arg_replaceJobId).then(unittest.expectAsync(((api.Job response) { | 6057 res.create(arg_request, arg_projectId, arg_location, replaceJobId: arg_rep
laceJobId, view: arg_view).then(unittest.expectAsync(((api.Job response) { |
5467 checkJob(response); | 6058 checkJob(response); |
5468 }))); | 6059 }))); |
5469 }); | 6060 }); |
5470 | 6061 |
5471 unittest.test("method--get", () { | 6062 unittest.test("method--get", () { |
5472 | 6063 |
5473 var mock = new HttpServerMock(); | 6064 var mock = new HttpServerMock(); |
5474 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje
cts.locations.jobs; | 6065 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje
cts.locations.jobs; |
5475 var arg_projectId = "foo"; | 6066 var arg_projectId = "foo"; |
5476 var arg_location = "foo"; | 6067 var arg_location = "foo"; |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5741 | 6332 |
5742 unittest.group("resource-ProjectsLocationsJobsMessagesResourceApi", () { | 6333 unittest.group("resource-ProjectsLocationsJobsMessagesResourceApi", () { |
5743 unittest.test("method--list", () { | 6334 unittest.test("method--list", () { |
5744 | 6335 |
5745 var mock = new HttpServerMock(); | 6336 var mock = new HttpServerMock(); |
5746 api.ProjectsLocationsJobsMessagesResourceApi res = new api.DataflowApi(moc
k).projects.locations.jobs.messages; | 6337 api.ProjectsLocationsJobsMessagesResourceApi res = new api.DataflowApi(moc
k).projects.locations.jobs.messages; |
5747 var arg_projectId = "foo"; | 6338 var arg_projectId = "foo"; |
5748 var arg_location = "foo"; | 6339 var arg_location = "foo"; |
5749 var arg_jobId = "foo"; | 6340 var arg_jobId = "foo"; |
5750 var arg_endTime = "foo"; | 6341 var arg_endTime = "foo"; |
| 6342 var arg_pageToken = "foo"; |
5751 var arg_startTime = "foo"; | 6343 var arg_startTime = "foo"; |
5752 var arg_pageToken = "foo"; | |
5753 var arg_pageSize = 42; | 6344 var arg_pageSize = 42; |
5754 var arg_minimumImportance = "foo"; | 6345 var arg_minimumImportance = "foo"; |
5755 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6346 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5756 var path = (req.url).path; | 6347 var path = (req.url).path; |
5757 var pathOffset = 0; | 6348 var pathOffset = 0; |
5758 var index; | 6349 var index; |
5759 var subPart; | 6350 var subPart; |
5760 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6351 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5761 pathOffset += 1; | 6352 pathOffset += 1; |
5762 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 6353 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
(...skipping 30 matching lines...) Expand all Loading... |
5793 if (n == null) return null; | 6384 if (n == null) return null; |
5794 throw new core.ArgumentError("Invalid boolean: $n"); | 6385 throw new core.ArgumentError("Invalid boolean: $n"); |
5795 } | 6386 } |
5796 if (query.length > 0) { | 6387 if (query.length > 0) { |
5797 for (var part in query.split("&")) { | 6388 for (var part in query.split("&")) { |
5798 var keyvalue = part.split("="); | 6389 var keyvalue = part.split("="); |
5799 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6390 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5800 } | 6391 } |
5801 } | 6392 } |
5802 unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime))
; | 6393 unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime))
; |
| 6394 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
5803 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi
me)); | 6395 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi
me)); |
5804 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
5805 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 6396 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
5806 unittest.expect(queryMap["minimumImportance"].first, unittest.equals(arg
_minimumImportance)); | 6397 unittest.expect(queryMap["minimumImportance"].first, unittest.equals(arg
_minimumImportance)); |
5807 | 6398 |
5808 | 6399 |
5809 var h = { | 6400 var h = { |
5810 "content-type" : "application/json; charset=utf-8", | 6401 "content-type" : "application/json; charset=utf-8", |
5811 }; | 6402 }; |
5812 var resp = convert.JSON.encode(buildListJobMessagesResponse()); | 6403 var resp = convert.JSON.encode(buildListJobMessagesResponse()); |
5813 return new async.Future.value(stringResponse(200, h, resp)); | 6404 return new async.Future.value(stringResponse(200, h, resp)); |
5814 }), true); | 6405 }), true); |
5815 res.list(arg_projectId, arg_location, arg_jobId, endTime: arg_endTime, sta
rtTime: arg_startTime, pageToken: arg_pageToken, pageSize: arg_pageSize, minimum
Importance: arg_minimumImportance).then(unittest.expectAsync(((api.ListJobMessag
esResponse response) { | 6406 res.list(arg_projectId, arg_location, arg_jobId, endTime: arg_endTime, pag
eToken: arg_pageToken, startTime: arg_startTime, pageSize: arg_pageSize, minimum
Importance: arg_minimumImportance).then(unittest.expectAsync(((api.ListJobMessag
esResponse response) { |
5816 checkListJobMessagesResponse(response); | 6407 checkListJobMessagesResponse(response); |
5817 }))); | 6408 }))); |
5818 }); | 6409 }); |
5819 | 6410 |
5820 }); | 6411 }); |
5821 | 6412 |
5822 | 6413 |
5823 unittest.group("resource-ProjectsLocationsJobsWorkItemsResourceApi", () { | 6414 unittest.group("resource-ProjectsLocationsJobsWorkItemsResourceApi", () { |
5824 unittest.test("method--lease", () { | 6415 unittest.test("method--lease", () { |
5825 | 6416 |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6015 "content-type" : "application/json; charset=utf-8", | 6606 "content-type" : "application/json; charset=utf-8", |
6016 }; | 6607 }; |
6017 var resp = convert.JSON.encode(buildJob()); | 6608 var resp = convert.JSON.encode(buildJob()); |
6018 return new async.Future.value(stringResponse(200, h, resp)); | 6609 return new async.Future.value(stringResponse(200, h, resp)); |
6019 }), true); | 6610 }), true); |
6020 res.create(arg_request, arg_projectId).then(unittest.expectAsync(((api.Job
response) { | 6611 res.create(arg_request, arg_projectId).then(unittest.expectAsync(((api.Job
response) { |
6021 checkJob(response); | 6612 checkJob(response); |
6022 }))); | 6613 }))); |
6023 }); | 6614 }); |
6024 | 6615 |
| 6616 unittest.test("method--get", () { |
| 6617 |
| 6618 var mock = new HttpServerMock(); |
| 6619 api.ProjectsTemplatesResourceApi res = new api.DataflowApi(mock).projects.
templates; |
| 6620 var arg_projectId = "foo"; |
| 6621 var arg_view = "foo"; |
| 6622 var arg_gcsPath = "foo"; |
| 6623 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6624 var path = (req.url).path; |
| 6625 var pathOffset = 0; |
| 6626 var index; |
| 6627 var subPart; |
| 6628 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6629 pathOffset += 1; |
| 6630 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
| 6631 pathOffset += 14; |
| 6632 index = path.indexOf("/templates:get", pathOffset); |
| 6633 unittest.expect(index >= 0, unittest.isTrue); |
| 6634 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 6635 pathOffset = index; |
| 6636 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 6637 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("/templates:get")); |
| 6638 pathOffset += 14; |
| 6639 |
| 6640 var query = (req.url).query; |
| 6641 var queryOffset = 0; |
| 6642 var queryMap = {}; |
| 6643 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 6644 parseBool(n) { |
| 6645 if (n == "true") return true; |
| 6646 if (n == "false") return false; |
| 6647 if (n == null) return null; |
| 6648 throw new core.ArgumentError("Invalid boolean: $n"); |
| 6649 } |
| 6650 if (query.length > 0) { |
| 6651 for (var part in query.split("&")) { |
| 6652 var keyvalue = part.split("="); |
| 6653 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6654 } |
| 6655 } |
| 6656 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
| 6657 unittest.expect(queryMap["gcsPath"].first, unittest.equals(arg_gcsPath))
; |
| 6658 |
| 6659 |
| 6660 var h = { |
| 6661 "content-type" : "application/json; charset=utf-8", |
| 6662 }; |
| 6663 var resp = convert.JSON.encode(buildGetTemplateResponse()); |
| 6664 return new async.Future.value(stringResponse(200, h, resp)); |
| 6665 }), true); |
| 6666 res.get(arg_projectId, view: arg_view, gcsPath: arg_gcsPath).then(unittest
.expectAsync(((api.GetTemplateResponse response) { |
| 6667 checkGetTemplateResponse(response); |
| 6668 }))); |
| 6669 }); |
| 6670 |
| 6671 unittest.test("method--launch", () { |
| 6672 |
| 6673 var mock = new HttpServerMock(); |
| 6674 api.ProjectsTemplatesResourceApi res = new api.DataflowApi(mock).projects.
templates; |
| 6675 var arg_request = buildLaunchTemplateParameters(); |
| 6676 var arg_projectId = "foo"; |
| 6677 var arg_dryRun = true; |
| 6678 var arg_gcsPath = "foo"; |
| 6679 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 6680 var obj = new api.LaunchTemplateParameters.fromJson(json); |
| 6681 checkLaunchTemplateParameters(obj); |
| 6682 |
| 6683 var path = (req.url).path; |
| 6684 var pathOffset = 0; |
| 6685 var index; |
| 6686 var subPart; |
| 6687 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6688 pathOffset += 1; |
| 6689 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); |
| 6690 pathOffset += 14; |
| 6691 index = path.indexOf("/templates:launch", pathOffset); |
| 6692 unittest.expect(index >= 0, unittest.isTrue); |
| 6693 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 6694 pathOffset = index; |
| 6695 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
| 6696 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/templates:launch")); |
| 6697 pathOffset += 17; |
| 6698 |
| 6699 var query = (req.url).query; |
| 6700 var queryOffset = 0; |
| 6701 var queryMap = {}; |
| 6702 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 6703 parseBool(n) { |
| 6704 if (n == "true") return true; |
| 6705 if (n == "false") return false; |
| 6706 if (n == null) return null; |
| 6707 throw new core.ArgumentError("Invalid boolean: $n"); |
| 6708 } |
| 6709 if (query.length > 0) { |
| 6710 for (var part in query.split("&")) { |
| 6711 var keyvalue = part.split("="); |
| 6712 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 6713 } |
| 6714 } |
| 6715 unittest.expect(queryMap["dryRun"].first, unittest.equals("$arg_dryRun")
); |
| 6716 unittest.expect(queryMap["gcsPath"].first, unittest.equals(arg_gcsPath))
; |
| 6717 |
| 6718 |
| 6719 var h = { |
| 6720 "content-type" : "application/json; charset=utf-8", |
| 6721 }; |
| 6722 var resp = convert.JSON.encode(buildLaunchTemplateResponse()); |
| 6723 return new async.Future.value(stringResponse(200, h, resp)); |
| 6724 }), true); |
| 6725 res.launch(arg_request, arg_projectId, dryRun: arg_dryRun, gcsPath: arg_gc
sPath).then(unittest.expectAsync(((api.LaunchTemplateResponse response) { |
| 6726 checkLaunchTemplateResponse(response); |
| 6727 }))); |
| 6728 }); |
| 6729 |
6025 }); | 6730 }); |
6026 | 6731 |
6027 | 6732 |
6028 } | 6733 } |
6029 | 6734 |
OLD | NEW |