| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 | 134 |
| 135 checkAutoscalingSettings(api.AutoscalingSettings o) { | 135 checkAutoscalingSettings(api.AutoscalingSettings o) { |
| 136 buildCounterAutoscalingSettings++; | 136 buildCounterAutoscalingSettings++; |
| 137 if (buildCounterAutoscalingSettings < 3) { | 137 if (buildCounterAutoscalingSettings < 3) { |
| 138 unittest.expect(o.algorithm, unittest.equals('foo')); | 138 unittest.expect(o.algorithm, unittest.equals('foo')); |
| 139 unittest.expect(o.maxNumWorkers, unittest.equals(42)); | 139 unittest.expect(o.maxNumWorkers, unittest.equals(42)); |
| 140 } | 140 } |
| 141 buildCounterAutoscalingSettings--; | 141 buildCounterAutoscalingSettings--; |
| 142 } | 142 } |
| 143 | 143 |
| 144 buildUnnamed3083() { | 144 buildUnnamed3082() { |
| 145 var o = new core.List<api.StreamLocation>(); | 145 var o = new core.List<api.StreamLocation>(); |
| 146 o.add(buildStreamLocation()); | 146 o.add(buildStreamLocation()); |
| 147 o.add(buildStreamLocation()); | 147 o.add(buildStreamLocation()); |
| 148 return o; | 148 return o; |
| 149 } | 149 } |
| 150 | 150 |
| 151 checkUnnamed3083(core.List<api.StreamLocation> o) { | 151 checkUnnamed3082(core.List<api.StreamLocation> o) { |
| 152 unittest.expect(o, unittest.hasLength(2)); | 152 unittest.expect(o, unittest.hasLength(2)); |
| 153 checkStreamLocation(o[0]); | 153 checkStreamLocation(o[0]); |
| 154 checkStreamLocation(o[1]); | 154 checkStreamLocation(o[1]); |
| 155 } | 155 } |
| 156 | 156 |
| 157 buildUnnamed3084() { | 157 buildUnnamed3083() { |
| 158 var o = new core.List<api.KeyRangeLocation>(); | 158 var o = new core.List<api.KeyRangeLocation>(); |
| 159 o.add(buildKeyRangeLocation()); | 159 o.add(buildKeyRangeLocation()); |
| 160 o.add(buildKeyRangeLocation()); | 160 o.add(buildKeyRangeLocation()); |
| 161 return o; | 161 return o; |
| 162 } | 162 } |
| 163 | 163 |
| 164 checkUnnamed3084(core.List<api.KeyRangeLocation> o) { | 164 checkUnnamed3083(core.List<api.KeyRangeLocation> o) { |
| 165 unittest.expect(o, unittest.hasLength(2)); | 165 unittest.expect(o, unittest.hasLength(2)); |
| 166 checkKeyRangeLocation(o[0]); | 166 checkKeyRangeLocation(o[0]); |
| 167 checkKeyRangeLocation(o[1]); | 167 checkKeyRangeLocation(o[1]); |
| 168 } | 168 } |
| 169 | 169 |
| 170 buildUnnamed3085() { | 170 buildUnnamed3084() { |
| 171 var o = new core.List<api.StreamLocation>(); | 171 var o = new core.List<api.StreamLocation>(); |
| 172 o.add(buildStreamLocation()); | 172 o.add(buildStreamLocation()); |
| 173 o.add(buildStreamLocation()); | 173 o.add(buildStreamLocation()); |
| 174 return o; | 174 return o; |
| 175 } | 175 } |
| 176 | 176 |
| 177 checkUnnamed3085(core.List<api.StreamLocation> o) { | 177 checkUnnamed3084(core.List<api.StreamLocation> o) { |
| 178 unittest.expect(o, unittest.hasLength(2)); | 178 unittest.expect(o, unittest.hasLength(2)); |
| 179 checkStreamLocation(o[0]); | 179 checkStreamLocation(o[0]); |
| 180 checkStreamLocation(o[1]); | 180 checkStreamLocation(o[1]); |
| 181 } | 181 } |
| 182 | 182 |
| 183 buildUnnamed3086() { | 183 buildUnnamed3085() { |
| 184 var o = new core.List<api.StateFamilyConfig>(); | 184 var o = new core.List<api.StateFamilyConfig>(); |
| 185 o.add(buildStateFamilyConfig()); | 185 o.add(buildStateFamilyConfig()); |
| 186 o.add(buildStateFamilyConfig()); | 186 o.add(buildStateFamilyConfig()); |
| 187 return o; | 187 return o; |
| 188 } | 188 } |
| 189 | 189 |
| 190 checkUnnamed3086(core.List<api.StateFamilyConfig> o) { | 190 checkUnnamed3085(core.List<api.StateFamilyConfig> o) { |
| 191 unittest.expect(o, unittest.hasLength(2)); | 191 unittest.expect(o, unittest.hasLength(2)); |
| 192 checkStateFamilyConfig(o[0]); | 192 checkStateFamilyConfig(o[0]); |
| 193 checkStateFamilyConfig(o[1]); | 193 checkStateFamilyConfig(o[1]); |
| 194 } | 194 } |
| 195 | 195 |
| 196 core.int buildCounterComputationTopology = 0; | 196 core.int buildCounterComputationTopology = 0; |
| 197 buildComputationTopology() { | 197 buildComputationTopology() { |
| 198 var o = new api.ComputationTopology(); | 198 var o = new api.ComputationTopology(); |
| 199 buildCounterComputationTopology++; | 199 buildCounterComputationTopology++; |
| 200 if (buildCounterComputationTopology < 3) { | 200 if (buildCounterComputationTopology < 3) { |
| 201 o.computationId = "foo"; | 201 o.computationId = "foo"; |
| 202 o.inputs = buildUnnamed3083(); | 202 o.inputs = buildUnnamed3082(); |
| 203 o.keyRanges = buildUnnamed3084(); | 203 o.keyRanges = buildUnnamed3083(); |
| 204 o.outputs = buildUnnamed3085(); | 204 o.outputs = buildUnnamed3084(); |
| 205 o.stateFamilies = buildUnnamed3086(); | 205 o.stateFamilies = buildUnnamed3085(); |
| 206 o.systemStageName = "foo"; | 206 o.systemStageName = "foo"; |
| 207 o.userStageName = "foo"; | 207 o.userStageName = "foo"; |
| 208 } | 208 } |
| 209 buildCounterComputationTopology--; | 209 buildCounterComputationTopology--; |
| 210 return o; | 210 return o; |
| 211 } | 211 } |
| 212 | 212 |
| 213 checkComputationTopology(api.ComputationTopology o) { | 213 checkComputationTopology(api.ComputationTopology o) { |
| 214 buildCounterComputationTopology++; | 214 buildCounterComputationTopology++; |
| 215 if (buildCounterComputationTopology < 3) { | 215 if (buildCounterComputationTopology < 3) { |
| 216 unittest.expect(o.computationId, unittest.equals('foo')); | 216 unittest.expect(o.computationId, unittest.equals('foo')); |
| 217 checkUnnamed3083(o.inputs); | 217 checkUnnamed3082(o.inputs); |
| 218 checkUnnamed3084(o.keyRanges); | 218 checkUnnamed3083(o.keyRanges); |
| 219 checkUnnamed3085(o.outputs); | 219 checkUnnamed3084(o.outputs); |
| 220 checkUnnamed3086(o.stateFamilies); | 220 checkUnnamed3085(o.stateFamilies); |
| 221 unittest.expect(o.systemStageName, unittest.equals('foo')); | 221 unittest.expect(o.systemStageName, unittest.equals('foo')); |
| 222 unittest.expect(o.userStageName, unittest.equals('foo')); | 222 unittest.expect(o.userStageName, unittest.equals('foo')); |
| 223 } | 223 } |
| 224 buildCounterComputationTopology--; | 224 buildCounterComputationTopology--; |
| 225 } | 225 } |
| 226 | 226 |
| 227 core.int buildCounterConcatPosition = 0; | 227 core.int buildCounterConcatPosition = 0; |
| 228 buildConcatPosition() { | 228 buildConcatPosition() { |
| 229 var o = new api.ConcatPosition(); | 229 var o = new api.ConcatPosition(); |
| 230 buildCounterConcatPosition++; | 230 buildCounterConcatPosition++; |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 } | 379 } |
| 380 | 380 |
| 381 checkCustomSourceLocation(api.CustomSourceLocation o) { | 381 checkCustomSourceLocation(api.CustomSourceLocation o) { |
| 382 buildCounterCustomSourceLocation++; | 382 buildCounterCustomSourceLocation++; |
| 383 if (buildCounterCustomSourceLocation < 3) { | 383 if (buildCounterCustomSourceLocation < 3) { |
| 384 unittest.expect(o.stateful, unittest.isTrue); | 384 unittest.expect(o.stateful, unittest.isTrue); |
| 385 } | 385 } |
| 386 buildCounterCustomSourceLocation--; | 386 buildCounterCustomSourceLocation--; |
| 387 } | 387 } |
| 388 | 388 |
| 389 buildUnnamed3087() { | 389 buildUnnamed3086() { |
| 390 var o = new core.List<core.String>(); | 390 var o = new core.List<core.String>(); |
| 391 o.add("foo"); | 391 o.add("foo"); |
| 392 o.add("foo"); | 392 o.add("foo"); |
| 393 return o; | 393 return o; |
| 394 } | 394 } |
| 395 | 395 |
| 396 checkUnnamed3087(core.List<core.String> o) { | 396 checkUnnamed3086(core.List<core.String> o) { |
| 397 unittest.expect(o, unittest.hasLength(2)); | 397 unittest.expect(o, unittest.hasLength(2)); |
| 398 unittest.expect(o[0], unittest.equals('foo')); | 398 unittest.expect(o[0], unittest.equals('foo')); |
| 399 unittest.expect(o[1], unittest.equals('foo')); | 399 unittest.expect(o[1], unittest.equals('foo')); |
| 400 } | 400 } |
| 401 | 401 |
| 402 core.int buildCounterDataDiskAssignment = 0; | 402 core.int buildCounterDataDiskAssignment = 0; |
| 403 buildDataDiskAssignment() { | 403 buildDataDiskAssignment() { |
| 404 var o = new api.DataDiskAssignment(); | 404 var o = new api.DataDiskAssignment(); |
| 405 buildCounterDataDiskAssignment++; | 405 buildCounterDataDiskAssignment++; |
| 406 if (buildCounterDataDiskAssignment < 3) { | 406 if (buildCounterDataDiskAssignment < 3) { |
| 407 o.dataDisks = buildUnnamed3087(); | 407 o.dataDisks = buildUnnamed3086(); |
| 408 o.vmInstance = "foo"; | 408 o.vmInstance = "foo"; |
| 409 } | 409 } |
| 410 buildCounterDataDiskAssignment--; | 410 buildCounterDataDiskAssignment--; |
| 411 return o; | 411 return o; |
| 412 } | 412 } |
| 413 | 413 |
| 414 checkDataDiskAssignment(api.DataDiskAssignment o) { | 414 checkDataDiskAssignment(api.DataDiskAssignment o) { |
| 415 buildCounterDataDiskAssignment++; | 415 buildCounterDataDiskAssignment++; |
| 416 if (buildCounterDataDiskAssignment < 3) { | 416 if (buildCounterDataDiskAssignment < 3) { |
| 417 checkUnnamed3087(o.dataDisks); | 417 checkUnnamed3086(o.dataDisks); |
| 418 unittest.expect(o.vmInstance, unittest.equals('foo')); | 418 unittest.expect(o.vmInstance, unittest.equals('foo')); |
| 419 } | 419 } |
| 420 buildCounterDataDiskAssignment--; | 420 buildCounterDataDiskAssignment--; |
| 421 } | 421 } |
| 422 | 422 |
| 423 core.int buildCounterDerivedSource = 0; | 423 core.int buildCounterDerivedSource = 0; |
| 424 buildDerivedSource() { | 424 buildDerivedSource() { |
| 425 var o = new api.DerivedSource(); | 425 var o = new api.DerivedSource(); |
| 426 buildCounterDerivedSource++; | 426 buildCounterDerivedSource++; |
| 427 if (buildCounterDerivedSource < 3) { | 427 if (buildCounterDerivedSource < 3) { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 | 478 |
| 479 checkDynamicSourceSplit(api.DynamicSourceSplit o) { | 479 checkDynamicSourceSplit(api.DynamicSourceSplit o) { |
| 480 buildCounterDynamicSourceSplit++; | 480 buildCounterDynamicSourceSplit++; |
| 481 if (buildCounterDynamicSourceSplit < 3) { | 481 if (buildCounterDynamicSourceSplit < 3) { |
| 482 checkDerivedSource(o.primary); | 482 checkDerivedSource(o.primary); |
| 483 checkDerivedSource(o.residual); | 483 checkDerivedSource(o.residual); |
| 484 } | 484 } |
| 485 buildCounterDynamicSourceSplit--; | 485 buildCounterDynamicSourceSplit--; |
| 486 } | 486 } |
| 487 | 487 |
| 488 buildUnnamed3088() { | 488 buildUnnamed3087() { |
| 489 var o = new core.List<core.String>(); | 489 var o = new core.List<core.String>(); |
| 490 o.add("foo"); | 490 o.add("foo"); |
| 491 o.add("foo"); | 491 o.add("foo"); |
| 492 return o; | 492 return o; |
| 493 } | 493 } |
| 494 | 494 |
| 495 checkUnnamed3088(core.List<core.String> o) { | 495 checkUnnamed3087(core.List<core.String> o) { |
| 496 unittest.expect(o, unittest.hasLength(2)); | 496 unittest.expect(o, unittest.hasLength(2)); |
| 497 unittest.expect(o[0], unittest.equals('foo')); | 497 unittest.expect(o[0], unittest.equals('foo')); |
| 498 unittest.expect(o[1], unittest.equals('foo')); | 498 unittest.expect(o[1], unittest.equals('foo')); |
| 499 } | 499 } |
| 500 | 500 |
| 501 buildUnnamed3088() { |
| 502 var o = new core.Map<core.String, core.Object>(); |
| 503 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 504 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 505 return o; |
| 506 } |
| 507 |
| 508 checkUnnamed3088(core.Map<core.String, core.Object> o) { |
| 509 unittest.expect(o, unittest.hasLength(2)); |
| 510 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')); |
| 511 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')); |
| 512 } |
| 513 |
| 501 buildUnnamed3089() { | 514 buildUnnamed3089() { |
| 502 var o = new core.Map<core.String, core.Object>(); | 515 var o = new core.Map<core.String, core.Object>(); |
| 503 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 516 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 504 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 517 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 505 return o; | 518 return o; |
| 506 } | 519 } |
| 507 | 520 |
| 508 checkUnnamed3089(core.Map<core.String, core.Object> o) { | 521 checkUnnamed3089(core.Map<core.String, core.Object> o) { |
| 509 unittest.expect(o, unittest.hasLength(2)); | 522 unittest.expect(o, unittest.hasLength(2)); |
| 510 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')); | 523 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')); |
| 511 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')); | 524 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')); |
| 512 } | 525 } |
| 513 | 526 |
| 514 buildUnnamed3090() { | 527 buildUnnamed3090() { |
| 515 var o = new core.Map<core.String, core.Object>(); | 528 var o = new core.Map<core.String, core.Object>(); |
| 516 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 529 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 517 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 530 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 518 return o; | 531 return o; |
| 519 } | 532 } |
| 520 | 533 |
| 521 checkUnnamed3090(core.Map<core.String, core.Object> o) { | 534 checkUnnamed3090(core.Map<core.String, core.Object> o) { |
| 522 unittest.expect(o, unittest.hasLength(2)); | 535 unittest.expect(o, unittest.hasLength(2)); |
| 523 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')); | 536 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')); |
| 524 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')); | 537 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')); |
| 525 } | 538 } |
| 526 | 539 |
| 527 buildUnnamed3091() { | 540 buildUnnamed3091() { |
| 528 var o = new core.Map<core.String, core.Object>(); | 541 var o = new core.Map<core.String, core.Object>(); |
| 529 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 542 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 530 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 543 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 531 return o; | 544 return o; |
| 532 } | 545 } |
| 533 | 546 |
| 534 checkUnnamed3091(core.Map<core.String, core.Object> o) { | 547 checkUnnamed3091(core.Map<core.String, core.Object> o) { |
| 535 unittest.expect(o, unittest.hasLength(2)); | 548 unittest.expect(o, unittest.hasLength(2)); |
| 536 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')); | |
| 537 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')); | |
| 538 } | |
| 539 | |
| 540 buildUnnamed3092() { | |
| 541 var o = new core.Map<core.String, core.Object>(); | |
| 542 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | |
| 543 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | |
| 544 return o; | |
| 545 } | |
| 546 | |
| 547 checkUnnamed3092(core.Map<core.String, core.Object> o) { | |
| 548 unittest.expect(o, unittest.hasLength(2)); | |
| 549 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')); | 549 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')); |
| 550 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')); | 550 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')); |
| 551 } | 551 } |
| 552 | 552 |
| 553 buildUnnamed3093() { | 553 buildUnnamed3092() { |
| 554 var o = new core.List<api.WorkerPool>(); | 554 var o = new core.List<api.WorkerPool>(); |
| 555 o.add(buildWorkerPool()); | 555 o.add(buildWorkerPool()); |
| 556 o.add(buildWorkerPool()); | 556 o.add(buildWorkerPool()); |
| 557 return o; | 557 return o; |
| 558 } | 558 } |
| 559 | 559 |
| 560 checkUnnamed3093(core.List<api.WorkerPool> o) { | 560 checkUnnamed3092(core.List<api.WorkerPool> o) { |
| 561 unittest.expect(o, unittest.hasLength(2)); | 561 unittest.expect(o, unittest.hasLength(2)); |
| 562 checkWorkerPool(o[0]); | 562 checkWorkerPool(o[0]); |
| 563 checkWorkerPool(o[1]); | 563 checkWorkerPool(o[1]); |
| 564 } | 564 } |
| 565 | 565 |
| 566 core.int buildCounterEnvironment = 0; | 566 core.int buildCounterEnvironment = 0; |
| 567 buildEnvironment() { | 567 buildEnvironment() { |
| 568 var o = new api.Environment(); | 568 var o = new api.Environment(); |
| 569 buildCounterEnvironment++; | 569 buildCounterEnvironment++; |
| 570 if (buildCounterEnvironment < 3) { | 570 if (buildCounterEnvironment < 3) { |
| 571 o.clusterManagerApiService = "foo"; | 571 o.clusterManagerApiService = "foo"; |
| 572 o.dataset = "foo"; | 572 o.dataset = "foo"; |
| 573 o.experiments = buildUnnamed3088(); | 573 o.experiments = buildUnnamed3087(); |
| 574 o.internalExperiments = buildUnnamed3089(); | 574 o.internalExperiments = buildUnnamed3088(); |
| 575 o.sdkPipelineOptions = buildUnnamed3090(); | 575 o.sdkPipelineOptions = buildUnnamed3089(); |
| 576 o.tempStoragePrefix = "foo"; | 576 o.tempStoragePrefix = "foo"; |
| 577 o.userAgent = buildUnnamed3091(); | 577 o.userAgent = buildUnnamed3090(); |
| 578 o.version = buildUnnamed3092(); | 578 o.version = buildUnnamed3091(); |
| 579 o.workerPools = buildUnnamed3093(); | 579 o.workerPools = buildUnnamed3092(); |
| 580 } | 580 } |
| 581 buildCounterEnvironment--; | 581 buildCounterEnvironment--; |
| 582 return o; | 582 return o; |
| 583 } | 583 } |
| 584 | 584 |
| 585 checkEnvironment(api.Environment o) { | 585 checkEnvironment(api.Environment o) { |
| 586 buildCounterEnvironment++; | 586 buildCounterEnvironment++; |
| 587 if (buildCounterEnvironment < 3) { | 587 if (buildCounterEnvironment < 3) { |
| 588 unittest.expect(o.clusterManagerApiService, unittest.equals('foo')); | 588 unittest.expect(o.clusterManagerApiService, unittest.equals('foo')); |
| 589 unittest.expect(o.dataset, unittest.equals('foo')); | 589 unittest.expect(o.dataset, unittest.equals('foo')); |
| 590 checkUnnamed3088(o.experiments); | 590 checkUnnamed3087(o.experiments); |
| 591 checkUnnamed3089(o.internalExperiments); | 591 checkUnnamed3088(o.internalExperiments); |
| 592 checkUnnamed3090(o.sdkPipelineOptions); | 592 checkUnnamed3089(o.sdkPipelineOptions); |
| 593 unittest.expect(o.tempStoragePrefix, unittest.equals('foo')); | 593 unittest.expect(o.tempStoragePrefix, unittest.equals('foo')); |
| 594 checkUnnamed3091(o.userAgent); | 594 checkUnnamed3090(o.userAgent); |
| 595 checkUnnamed3092(o.version); | 595 checkUnnamed3091(o.version); |
| 596 checkUnnamed3093(o.workerPools); | 596 checkUnnamed3092(o.workerPools); |
| 597 } | 597 } |
| 598 buildCounterEnvironment--; | 598 buildCounterEnvironment--; |
| 599 } | 599 } |
| 600 | 600 |
| 601 buildUnnamed3094() { | 601 buildUnnamed3093() { |
| 602 var o = new core.List<api.InstructionInput>(); | 602 var o = new core.List<api.InstructionInput>(); |
| 603 o.add(buildInstructionInput()); | 603 o.add(buildInstructionInput()); |
| 604 o.add(buildInstructionInput()); | 604 o.add(buildInstructionInput()); |
| 605 return o; | 605 return o; |
| 606 } | 606 } |
| 607 | 607 |
| 608 checkUnnamed3094(core.List<api.InstructionInput> o) { | 608 checkUnnamed3093(core.List<api.InstructionInput> o) { |
| 609 unittest.expect(o, unittest.hasLength(2)); | 609 unittest.expect(o, unittest.hasLength(2)); |
| 610 checkInstructionInput(o[0]); | 610 checkInstructionInput(o[0]); |
| 611 checkInstructionInput(o[1]); | 611 checkInstructionInput(o[1]); |
| 612 } | 612 } |
| 613 | 613 |
| 614 core.int buildCounterFlattenInstruction = 0; | 614 core.int buildCounterFlattenInstruction = 0; |
| 615 buildFlattenInstruction() { | 615 buildFlattenInstruction() { |
| 616 var o = new api.FlattenInstruction(); | 616 var o = new api.FlattenInstruction(); |
| 617 buildCounterFlattenInstruction++; | 617 buildCounterFlattenInstruction++; |
| 618 if (buildCounterFlattenInstruction < 3) { | 618 if (buildCounterFlattenInstruction < 3) { |
| 619 o.inputs = buildUnnamed3094(); | 619 o.inputs = buildUnnamed3093(); |
| 620 } | 620 } |
| 621 buildCounterFlattenInstruction--; | 621 buildCounterFlattenInstruction--; |
| 622 return o; | 622 return o; |
| 623 } | 623 } |
| 624 | 624 |
| 625 checkFlattenInstruction(api.FlattenInstruction o) { | 625 checkFlattenInstruction(api.FlattenInstruction o) { |
| 626 buildCounterFlattenInstruction++; | 626 buildCounterFlattenInstruction++; |
| 627 if (buildCounterFlattenInstruction < 3) { | 627 if (buildCounterFlattenInstruction < 3) { |
| 628 checkUnnamed3094(o.inputs); | 628 checkUnnamed3093(o.inputs); |
| 629 } | 629 } |
| 630 buildCounterFlattenInstruction--; | 630 buildCounterFlattenInstruction--; |
| 631 } | 631 } |
| 632 | 632 |
| 633 buildUnnamed3095() { | 633 buildUnnamed3094() { |
| 634 var o = new core.List<core.double>(); | 634 var o = new core.List<core.double>(); |
| 635 o.add(42.0); | 635 o.add(42.0); |
| 636 o.add(42.0); | 636 o.add(42.0); |
| 637 return o; | 637 return o; |
| 638 } | 638 } |
| 639 | 639 |
| 640 checkUnnamed3095(core.List<core.double> o) { | 640 checkUnnamed3094(core.List<core.double> o) { |
| 641 unittest.expect(o, unittest.hasLength(2)); | 641 unittest.expect(o, unittest.hasLength(2)); |
| 642 unittest.expect(o[0], unittest.equals(42.0)); | 642 unittest.expect(o[0], unittest.equals(42.0)); |
| 643 unittest.expect(o[1], unittest.equals(42.0)); | 643 unittest.expect(o[1], unittest.equals(42.0)); |
| 644 } | 644 } |
| 645 | 645 |
| 646 core.int buildCounterFloatingPointList = 0; | 646 core.int buildCounterFloatingPointList = 0; |
| 647 buildFloatingPointList() { | 647 buildFloatingPointList() { |
| 648 var o = new api.FloatingPointList(); | 648 var o = new api.FloatingPointList(); |
| 649 buildCounterFloatingPointList++; | 649 buildCounterFloatingPointList++; |
| 650 if (buildCounterFloatingPointList < 3) { | 650 if (buildCounterFloatingPointList < 3) { |
| 651 o.elements = buildUnnamed3095(); | 651 o.elements = buildUnnamed3094(); |
| 652 } | 652 } |
| 653 buildCounterFloatingPointList--; | 653 buildCounterFloatingPointList--; |
| 654 return o; | 654 return o; |
| 655 } | 655 } |
| 656 | 656 |
| 657 checkFloatingPointList(api.FloatingPointList o) { | 657 checkFloatingPointList(api.FloatingPointList o) { |
| 658 buildCounterFloatingPointList++; | 658 buildCounterFloatingPointList++; |
| 659 if (buildCounterFloatingPointList < 3) { | 659 if (buildCounterFloatingPointList < 3) { |
| 660 checkUnnamed3095(o.elements); | 660 checkUnnamed3094(o.elements); |
| 661 } | 661 } |
| 662 buildCounterFloatingPointList--; | 662 buildCounterFloatingPointList--; |
| 663 } | 663 } |
| 664 | 664 |
| 665 core.int buildCounterFloatingPointMean = 0; | 665 core.int buildCounterFloatingPointMean = 0; |
| 666 buildFloatingPointMean() { | 666 buildFloatingPointMean() { |
| 667 var o = new api.FloatingPointMean(); | 667 var o = new api.FloatingPointMean(); |
| 668 buildCounterFloatingPointMean++; | 668 buildCounterFloatingPointMean++; |
| 669 if (buildCounterFloatingPointMean < 3) { | 669 if (buildCounterFloatingPointMean < 3) { |
| 670 o.count = buildSplitInt64(); | 670 o.count = buildSplitInt64(); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 697 | 697 |
| 698 checkInstructionInput(api.InstructionInput o) { | 698 checkInstructionInput(api.InstructionInput o) { |
| 699 buildCounterInstructionInput++; | 699 buildCounterInstructionInput++; |
| 700 if (buildCounterInstructionInput < 3) { | 700 if (buildCounterInstructionInput < 3) { |
| 701 unittest.expect(o.outputNum, unittest.equals(42)); | 701 unittest.expect(o.outputNum, unittest.equals(42)); |
| 702 unittest.expect(o.producerInstructionIndex, unittest.equals(42)); | 702 unittest.expect(o.producerInstructionIndex, unittest.equals(42)); |
| 703 } | 703 } |
| 704 buildCounterInstructionInput--; | 704 buildCounterInstructionInput--; |
| 705 } | 705 } |
| 706 | 706 |
| 707 buildUnnamed3096() { | 707 buildUnnamed3095() { |
| 708 var o = new core.Map<core.String, core.Object>(); | 708 var o = new core.Map<core.String, core.Object>(); |
| 709 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 709 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 710 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 710 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 711 return o; | 711 return o; |
| 712 } | 712 } |
| 713 | 713 |
| 714 checkUnnamed3096(core.Map<core.String, core.Object> o) { | 714 checkUnnamed3095(core.Map<core.String, core.Object> o) { |
| 715 unittest.expect(o, unittest.hasLength(2)); | 715 unittest.expect(o, unittest.hasLength(2)); |
| 716 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')); | 716 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')); |
| 717 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')); | 717 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')); |
| 718 } | 718 } |
| 719 | 719 |
| 720 core.int buildCounterInstructionOutput = 0; | 720 core.int buildCounterInstructionOutput = 0; |
| 721 buildInstructionOutput() { | 721 buildInstructionOutput() { |
| 722 var o = new api.InstructionOutput(); | 722 var o = new api.InstructionOutput(); |
| 723 buildCounterInstructionOutput++; | 723 buildCounterInstructionOutput++; |
| 724 if (buildCounterInstructionOutput < 3) { | 724 if (buildCounterInstructionOutput < 3) { |
| 725 o.codec = buildUnnamed3096(); | 725 o.codec = buildUnnamed3095(); |
| 726 o.name = "foo"; | 726 o.name = "foo"; |
| 727 o.onlyCountKeyBytes = true; |
| 728 o.onlyCountValueBytes = true; |
| 729 o.originalName = "foo"; |
| 727 o.systemName = "foo"; | 730 o.systemName = "foo"; |
| 728 } | 731 } |
| 729 buildCounterInstructionOutput--; | 732 buildCounterInstructionOutput--; |
| 730 return o; | 733 return o; |
| 731 } | 734 } |
| 732 | 735 |
| 733 checkInstructionOutput(api.InstructionOutput o) { | 736 checkInstructionOutput(api.InstructionOutput o) { |
| 734 buildCounterInstructionOutput++; | 737 buildCounterInstructionOutput++; |
| 735 if (buildCounterInstructionOutput < 3) { | 738 if (buildCounterInstructionOutput < 3) { |
| 736 checkUnnamed3096(o.codec); | 739 checkUnnamed3095(o.codec); |
| 737 unittest.expect(o.name, unittest.equals('foo')); | 740 unittest.expect(o.name, unittest.equals('foo')); |
| 741 unittest.expect(o.onlyCountKeyBytes, unittest.isTrue); |
| 742 unittest.expect(o.onlyCountValueBytes, unittest.isTrue); |
| 743 unittest.expect(o.originalName, unittest.equals('foo')); |
| 738 unittest.expect(o.systemName, unittest.equals('foo')); | 744 unittest.expect(o.systemName, unittest.equals('foo')); |
| 739 } | 745 } |
| 740 buildCounterInstructionOutput--; | 746 buildCounterInstructionOutput--; |
| 741 } | 747 } |
| 742 | 748 |
| 743 buildUnnamed3097() { | 749 buildUnnamed3096() { |
| 744 var o = new core.List<api.SplitInt64>(); | 750 var o = new core.List<api.SplitInt64>(); |
| 745 o.add(buildSplitInt64()); | 751 o.add(buildSplitInt64()); |
| 746 o.add(buildSplitInt64()); | 752 o.add(buildSplitInt64()); |
| 747 return o; | 753 return o; |
| 748 } | 754 } |
| 749 | 755 |
| 750 checkUnnamed3097(core.List<api.SplitInt64> o) { | 756 checkUnnamed3096(core.List<api.SplitInt64> o) { |
| 751 unittest.expect(o, unittest.hasLength(2)); | 757 unittest.expect(o, unittest.hasLength(2)); |
| 752 checkSplitInt64(o[0]); | 758 checkSplitInt64(o[0]); |
| 753 checkSplitInt64(o[1]); | 759 checkSplitInt64(o[1]); |
| 754 } | 760 } |
| 755 | 761 |
| 756 core.int buildCounterIntegerList = 0; | 762 core.int buildCounterIntegerList = 0; |
| 757 buildIntegerList() { | 763 buildIntegerList() { |
| 758 var o = new api.IntegerList(); | 764 var o = new api.IntegerList(); |
| 759 buildCounterIntegerList++; | 765 buildCounterIntegerList++; |
| 760 if (buildCounterIntegerList < 3) { | 766 if (buildCounterIntegerList < 3) { |
| 761 o.elements = buildUnnamed3097(); | 767 o.elements = buildUnnamed3096(); |
| 762 } | 768 } |
| 763 buildCounterIntegerList--; | 769 buildCounterIntegerList--; |
| 764 return o; | 770 return o; |
| 765 } | 771 } |
| 766 | 772 |
| 767 checkIntegerList(api.IntegerList o) { | 773 checkIntegerList(api.IntegerList o) { |
| 768 buildCounterIntegerList++; | 774 buildCounterIntegerList++; |
| 769 if (buildCounterIntegerList < 3) { | 775 if (buildCounterIntegerList < 3) { |
| 770 checkUnnamed3097(o.elements); | 776 checkUnnamed3096(o.elements); |
| 771 } | 777 } |
| 772 buildCounterIntegerList--; | 778 buildCounterIntegerList--; |
| 773 } | 779 } |
| 774 | 780 |
| 775 core.int buildCounterIntegerMean = 0; | 781 core.int buildCounterIntegerMean = 0; |
| 776 buildIntegerMean() { | 782 buildIntegerMean() { |
| 777 var o = new api.IntegerMean(); | 783 var o = new api.IntegerMean(); |
| 778 buildCounterIntegerMean++; | 784 buildCounterIntegerMean++; |
| 779 if (buildCounterIntegerMean < 3) { | 785 if (buildCounterIntegerMean < 3) { |
| 780 o.count = buildSplitInt64(); | 786 o.count = buildSplitInt64(); |
| 781 o.sum = buildSplitInt64(); | 787 o.sum = buildSplitInt64(); |
| 782 } | 788 } |
| 783 buildCounterIntegerMean--; | 789 buildCounterIntegerMean--; |
| 784 return o; | 790 return o; |
| 785 } | 791 } |
| 786 | 792 |
| 787 checkIntegerMean(api.IntegerMean o) { | 793 checkIntegerMean(api.IntegerMean o) { |
| 788 buildCounterIntegerMean++; | 794 buildCounterIntegerMean++; |
| 789 if (buildCounterIntegerMean < 3) { | 795 if (buildCounterIntegerMean < 3) { |
| 790 checkSplitInt64(o.count); | 796 checkSplitInt64(o.count); |
| 791 checkSplitInt64(o.sum); | 797 checkSplitInt64(o.sum); |
| 792 } | 798 } |
| 793 buildCounterIntegerMean--; | 799 buildCounterIntegerMean--; |
| 794 } | 800 } |
| 795 | 801 |
| 802 buildUnnamed3097() { |
| 803 var o = new core.Map<core.String, core.String>(); |
| 804 o["x"] = "foo"; |
| 805 o["y"] = "foo"; |
| 806 return o; |
| 807 } |
| 808 |
| 809 checkUnnamed3097(core.Map<core.String, core.String> o) { |
| 810 unittest.expect(o, unittest.hasLength(2)); |
| 811 unittest.expect(o["x"], unittest.equals('foo')); |
| 812 unittest.expect(o["y"], unittest.equals('foo')); |
| 813 } |
| 814 |
| 796 buildUnnamed3098() { | 815 buildUnnamed3098() { |
| 797 var o = new core.List<api.Step>(); | 816 var o = new core.List<api.Step>(); |
| 798 o.add(buildStep()); | 817 o.add(buildStep()); |
| 799 o.add(buildStep()); | 818 o.add(buildStep()); |
| 800 return o; | 819 return o; |
| 801 } | 820 } |
| 802 | 821 |
| 803 checkUnnamed3098(core.List<api.Step> o) { | 822 checkUnnamed3098(core.List<api.Step> o) { |
| 804 unittest.expect(o, unittest.hasLength(2)); | 823 unittest.expect(o, unittest.hasLength(2)); |
| 805 checkStep(o[0]); | 824 checkStep(o[0]); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 var o = new api.Job(); | 856 var o = new api.Job(); |
| 838 buildCounterJob++; | 857 buildCounterJob++; |
| 839 if (buildCounterJob < 3) { | 858 if (buildCounterJob < 3) { |
| 840 o.clientRequestId = "foo"; | 859 o.clientRequestId = "foo"; |
| 841 o.createTime = "foo"; | 860 o.createTime = "foo"; |
| 842 o.currentState = "foo"; | 861 o.currentState = "foo"; |
| 843 o.currentStateTime = "foo"; | 862 o.currentStateTime = "foo"; |
| 844 o.environment = buildEnvironment(); | 863 o.environment = buildEnvironment(); |
| 845 o.executionInfo = buildJobExecutionInfo(); | 864 o.executionInfo = buildJobExecutionInfo(); |
| 846 o.id = "foo"; | 865 o.id = "foo"; |
| 866 o.labels = buildUnnamed3097(); |
| 847 o.name = "foo"; | 867 o.name = "foo"; |
| 848 o.projectId = "foo"; | 868 o.projectId = "foo"; |
| 849 o.replaceJobId = "foo"; | 869 o.replaceJobId = "foo"; |
| 850 o.replacedByJobId = "foo"; | 870 o.replacedByJobId = "foo"; |
| 851 o.requestedState = "foo"; | 871 o.requestedState = "foo"; |
| 852 o.steps = buildUnnamed3098(); | 872 o.steps = buildUnnamed3098(); |
| 853 o.tempFiles = buildUnnamed3099(); | 873 o.tempFiles = buildUnnamed3099(); |
| 854 o.transformNameMapping = buildUnnamed3100(); | 874 o.transformNameMapping = buildUnnamed3100(); |
| 855 o.type = "foo"; | 875 o.type = "foo"; |
| 856 } | 876 } |
| 857 buildCounterJob--; | 877 buildCounterJob--; |
| 858 return o; | 878 return o; |
| 859 } | 879 } |
| 860 | 880 |
| 861 checkJob(api.Job o) { | 881 checkJob(api.Job o) { |
| 862 buildCounterJob++; | 882 buildCounterJob++; |
| 863 if (buildCounterJob < 3) { | 883 if (buildCounterJob < 3) { |
| 864 unittest.expect(o.clientRequestId, unittest.equals('foo')); | 884 unittest.expect(o.clientRequestId, unittest.equals('foo')); |
| 865 unittest.expect(o.createTime, unittest.equals('foo')); | 885 unittest.expect(o.createTime, unittest.equals('foo')); |
| 866 unittest.expect(o.currentState, unittest.equals('foo')); | 886 unittest.expect(o.currentState, unittest.equals('foo')); |
| 867 unittest.expect(o.currentStateTime, unittest.equals('foo')); | 887 unittest.expect(o.currentStateTime, unittest.equals('foo')); |
| 868 checkEnvironment(o.environment); | 888 checkEnvironment(o.environment); |
| 869 checkJobExecutionInfo(o.executionInfo); | 889 checkJobExecutionInfo(o.executionInfo); |
| 870 unittest.expect(o.id, unittest.equals('foo')); | 890 unittest.expect(o.id, unittest.equals('foo')); |
| 891 checkUnnamed3097(o.labels); |
| 871 unittest.expect(o.name, unittest.equals('foo')); | 892 unittest.expect(o.name, unittest.equals('foo')); |
| 872 unittest.expect(o.projectId, unittest.equals('foo')); | 893 unittest.expect(o.projectId, unittest.equals('foo')); |
| 873 unittest.expect(o.replaceJobId, unittest.equals('foo')); | 894 unittest.expect(o.replaceJobId, unittest.equals('foo')); |
| 874 unittest.expect(o.replacedByJobId, unittest.equals('foo')); | 895 unittest.expect(o.replacedByJobId, unittest.equals('foo')); |
| 875 unittest.expect(o.requestedState, unittest.equals('foo')); | 896 unittest.expect(o.requestedState, unittest.equals('foo')); |
| 876 checkUnnamed3098(o.steps); | 897 checkUnnamed3098(o.steps); |
| 877 checkUnnamed3099(o.tempFiles); | 898 checkUnnamed3099(o.tempFiles); |
| 878 checkUnnamed3100(o.transformNameMapping); | 899 checkUnnamed3100(o.transformNameMapping); |
| 879 unittest.expect(o.type, unittest.equals('foo')); | 900 unittest.expect(o.type, unittest.equals('foo')); |
| 880 } | 901 } |
| (...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1494 checkInstructionOutput(o[1]); | 1515 checkInstructionOutput(o[1]); |
| 1495 } | 1516 } |
| 1496 | 1517 |
| 1497 core.int buildCounterParallelInstruction = 0; | 1518 core.int buildCounterParallelInstruction = 0; |
| 1498 buildParallelInstruction() { | 1519 buildParallelInstruction() { |
| 1499 var o = new api.ParallelInstruction(); | 1520 var o = new api.ParallelInstruction(); |
| 1500 buildCounterParallelInstruction++; | 1521 buildCounterParallelInstruction++; |
| 1501 if (buildCounterParallelInstruction < 3) { | 1522 if (buildCounterParallelInstruction < 3) { |
| 1502 o.flatten = buildFlattenInstruction(); | 1523 o.flatten = buildFlattenInstruction(); |
| 1503 o.name = "foo"; | 1524 o.name = "foo"; |
| 1525 o.originalName = "foo"; |
| 1504 o.outputs = buildUnnamed3114(); | 1526 o.outputs = buildUnnamed3114(); |
| 1505 o.parDo = buildParDoInstruction(); | 1527 o.parDo = buildParDoInstruction(); |
| 1506 o.partialGroupByKey = buildPartialGroupByKeyInstruction(); | 1528 o.partialGroupByKey = buildPartialGroupByKeyInstruction(); |
| 1507 o.read = buildReadInstruction(); | 1529 o.read = buildReadInstruction(); |
| 1508 o.systemName = "foo"; | 1530 o.systemName = "foo"; |
| 1509 o.write = buildWriteInstruction(); | 1531 o.write = buildWriteInstruction(); |
| 1510 } | 1532 } |
| 1511 buildCounterParallelInstruction--; | 1533 buildCounterParallelInstruction--; |
| 1512 return o; | 1534 return o; |
| 1513 } | 1535 } |
| 1514 | 1536 |
| 1515 checkParallelInstruction(api.ParallelInstruction o) { | 1537 checkParallelInstruction(api.ParallelInstruction o) { |
| 1516 buildCounterParallelInstruction++; | 1538 buildCounterParallelInstruction++; |
| 1517 if (buildCounterParallelInstruction < 3) { | 1539 if (buildCounterParallelInstruction < 3) { |
| 1518 checkFlattenInstruction(o.flatten); | 1540 checkFlattenInstruction(o.flatten); |
| 1519 unittest.expect(o.name, unittest.equals('foo')); | 1541 unittest.expect(o.name, unittest.equals('foo')); |
| 1542 unittest.expect(o.originalName, unittest.equals('foo')); |
| 1520 checkUnnamed3114(o.outputs); | 1543 checkUnnamed3114(o.outputs); |
| 1521 checkParDoInstruction(o.parDo); | 1544 checkParDoInstruction(o.parDo); |
| 1522 checkPartialGroupByKeyInstruction(o.partialGroupByKey); | 1545 checkPartialGroupByKeyInstruction(o.partialGroupByKey); |
| 1523 checkReadInstruction(o.read); | 1546 checkReadInstruction(o.read); |
| 1524 unittest.expect(o.systemName, unittest.equals('foo')); | 1547 unittest.expect(o.systemName, unittest.equals('foo')); |
| 1525 checkWriteInstruction(o.write); | 1548 checkWriteInstruction(o.write); |
| 1526 } | 1549 } |
| 1527 buildCounterParallelInstruction--; | 1550 buildCounterParallelInstruction--; |
| 1528 } | 1551 } |
| 1529 | 1552 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1566 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')); | 1589 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')); |
| 1567 } | 1590 } |
| 1568 | 1591 |
| 1569 core.int buildCounterPartialGroupByKeyInstruction = 0; | 1592 core.int buildCounterPartialGroupByKeyInstruction = 0; |
| 1570 buildPartialGroupByKeyInstruction() { | 1593 buildPartialGroupByKeyInstruction() { |
| 1571 var o = new api.PartialGroupByKeyInstruction(); | 1594 var o = new api.PartialGroupByKeyInstruction(); |
| 1572 buildCounterPartialGroupByKeyInstruction++; | 1595 buildCounterPartialGroupByKeyInstruction++; |
| 1573 if (buildCounterPartialGroupByKeyInstruction < 3) { | 1596 if (buildCounterPartialGroupByKeyInstruction < 3) { |
| 1574 o.input = buildInstructionInput(); | 1597 o.input = buildInstructionInput(); |
| 1575 o.inputElementCodec = buildUnnamed3115(); | 1598 o.inputElementCodec = buildUnnamed3115(); |
| 1599 o.originalCombineValuesInputStoreName = "foo"; |
| 1600 o.originalCombineValuesStepName = "foo"; |
| 1576 o.sideInputs = buildUnnamed3116(); | 1601 o.sideInputs = buildUnnamed3116(); |
| 1577 o.valueCombiningFn = buildUnnamed3117(); | 1602 o.valueCombiningFn = buildUnnamed3117(); |
| 1578 } | 1603 } |
| 1579 buildCounterPartialGroupByKeyInstruction--; | 1604 buildCounterPartialGroupByKeyInstruction--; |
| 1580 return o; | 1605 return o; |
| 1581 } | 1606 } |
| 1582 | 1607 |
| 1583 checkPartialGroupByKeyInstruction(api.PartialGroupByKeyInstruction o) { | 1608 checkPartialGroupByKeyInstruction(api.PartialGroupByKeyInstruction o) { |
| 1584 buildCounterPartialGroupByKeyInstruction++; | 1609 buildCounterPartialGroupByKeyInstruction++; |
| 1585 if (buildCounterPartialGroupByKeyInstruction < 3) { | 1610 if (buildCounterPartialGroupByKeyInstruction < 3) { |
| 1586 checkInstructionInput(o.input); | 1611 checkInstructionInput(o.input); |
| 1587 checkUnnamed3115(o.inputElementCodec); | 1612 checkUnnamed3115(o.inputElementCodec); |
| 1613 unittest.expect(o.originalCombineValuesInputStoreName, unittest.equals('foo'
)); |
| 1614 unittest.expect(o.originalCombineValuesStepName, unittest.equals('foo')); |
| 1588 checkUnnamed3116(o.sideInputs); | 1615 checkUnnamed3116(o.sideInputs); |
| 1589 checkUnnamed3117(o.valueCombiningFn); | 1616 checkUnnamed3117(o.valueCombiningFn); |
| 1590 } | 1617 } |
| 1591 buildCounterPartialGroupByKeyInstruction--; | 1618 buildCounterPartialGroupByKeyInstruction--; |
| 1592 } | 1619 } |
| 1593 | 1620 |
| 1594 core.int buildCounterPosition = 0; | 1621 core.int buildCounterPosition = 0; |
| 1595 buildPosition() { | 1622 buildPosition() { |
| 1596 var o = new api.Position(); | 1623 var o = new api.Position(); |
| 1597 buildCounterPosition++; | 1624 buildCounterPosition++; |
| (...skipping 3233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4831 res.reportStatus(arg_request, arg_projectId, arg_jobId).then(unittest.expe
ctAsync(((api.ReportWorkItemStatusResponse response) { | 4858 res.reportStatus(arg_request, arg_projectId, arg_jobId).then(unittest.expe
ctAsync(((api.ReportWorkItemStatusResponse response) { |
| 4832 checkReportWorkItemStatusResponse(response); | 4859 checkReportWorkItemStatusResponse(response); |
| 4833 }))); | 4860 }))); |
| 4834 }); | 4861 }); |
| 4835 | 4862 |
| 4836 }); | 4863 }); |
| 4837 | 4864 |
| 4838 | 4865 |
| 4839 } | 4866 } |
| 4840 | 4867 |
| OLD | NEW |