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; | |
5 import "dart:async" as async; | 4 import "dart:async" as async; |
6 import "dart:convert" as convert; | 5 import "dart:convert" as convert; |
7 | 6 |
8 import 'package:http/http.dart' as http; | 7 import 'package:http/http.dart' as http; |
9 import 'package:http/testing.dart' as http_testing; | |
10 import 'package:test/test.dart' as unittest; | 8 import 'package:test/test.dart' as unittest; |
11 | 9 |
12 import 'package:googleapis_beta/dataflow/v1b3.dart' as api; | 10 import 'package:googleapis_beta/dataflow/v1b3.dart' as api; |
13 | 11 |
14 class HttpServerMock extends http.BaseClient { | 12 class HttpServerMock extends http.BaseClient { |
15 core.Function _callback; | 13 core.Function _callback; |
16 core.bool _expectJson; | 14 core.bool _expectJson; |
17 | 15 |
18 void register(core.Function callback, core.bool expectJson) { | 16 void register(core.Function callback, core.bool expectJson) { |
19 _callback = callback; | 17 _callback = callback; |
20 _expectJson = expectJson; | 18 _expectJson = expectJson; |
21 } | 19 } |
22 | 20 |
23 async.Future<http.StreamedResponse> send(http.BaseRequest request) { | 21 async.Future<http.StreamedResponse> send(http.BaseRequest request) { |
24 if (_expectJson) { | 22 if (_expectJson) { |
25 return request.finalize() | 23 return request |
| 24 .finalize() |
26 .transform(convert.UTF8.decoder) | 25 .transform(convert.UTF8.decoder) |
27 .join('') | 26 .join('') |
28 .then((core.String jsonString) { | 27 .then((core.String jsonString) { |
29 if (jsonString.isEmpty) { | 28 if (jsonString.isEmpty) { |
30 return _callback(request, null); | 29 return _callback(request, null); |
31 } else { | 30 } else { |
32 return _callback(request, convert.JSON.decode(jsonString)); | 31 return _callback(request, convert.JSON.decode(jsonString)); |
33 } | 32 } |
34 }); | 33 }); |
35 } else { | 34 } else { |
36 var stream = request.finalize(); | 35 var stream = request.finalize(); |
37 if (stream == null) { | 36 if (stream == null) { |
38 return _callback(request, []); | 37 return _callback(request, []); |
39 } else { | 38 } else { |
40 return stream.toBytes().then((data) { | 39 return stream.toBytes().then((data) { |
41 return _callback(request, data); | 40 return _callback(request, data); |
42 }); | 41 }); |
43 } | 42 } |
44 } | 43 } |
45 } | 44 } |
46 } | 45 } |
47 | 46 |
48 http.StreamedResponse stringResponse( | 47 http.StreamedResponse stringResponse(core.int status, |
49 core.int status, core.Map<core.String, core.String> headers, core.String bod
y) { | 48 core.Map<core.String, core.String> headers, core.String body) { |
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 49 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
51 return new http.StreamedResponse(stream, status, headers: headers); | 50 return new http.StreamedResponse(stream, status, headers: headers); |
52 } | 51 } |
53 | 52 |
54 core.int buildCounterApproximateProgress = 0; | 53 core.int buildCounterApproximateProgress = 0; |
55 buildApproximateProgress() { | 54 buildApproximateProgress() { |
56 var o = new api.ApproximateProgress(); | 55 var o = new api.ApproximateProgress(); |
57 buildCounterApproximateProgress++; | 56 buildCounterApproximateProgress++; |
58 if (buildCounterApproximateProgress < 3) { | 57 if (buildCounterApproximateProgress < 3) { |
59 o.percentComplete = 42.0; | 58 o.percentComplete = 42.0; |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 checkComponentTransform(api.ComponentTransform o) { | 229 checkComponentTransform(api.ComponentTransform o) { |
231 buildCounterComponentTransform++; | 230 buildCounterComponentTransform++; |
232 if (buildCounterComponentTransform < 3) { | 231 if (buildCounterComponentTransform < 3) { |
233 unittest.expect(o.name, unittest.equals('foo')); | 232 unittest.expect(o.name, unittest.equals('foo')); |
234 unittest.expect(o.originalTransform, unittest.equals('foo')); | 233 unittest.expect(o.originalTransform, unittest.equals('foo')); |
235 unittest.expect(o.userName, unittest.equals('foo')); | 234 unittest.expect(o.userName, unittest.equals('foo')); |
236 } | 235 } |
237 buildCounterComponentTransform--; | 236 buildCounterComponentTransform--; |
238 } | 237 } |
239 | 238 |
240 buildUnnamed3090() { | 239 buildUnnamed3083() { |
241 var o = new core.List<api.StreamLocation>(); | 240 var o = new core.List<api.StreamLocation>(); |
242 o.add(buildStreamLocation()); | 241 o.add(buildStreamLocation()); |
243 o.add(buildStreamLocation()); | 242 o.add(buildStreamLocation()); |
244 return o; | 243 return o; |
245 } | 244 } |
246 | 245 |
247 checkUnnamed3090(core.List<api.StreamLocation> o) { | 246 checkUnnamed3083(core.List<api.StreamLocation> o) { |
248 unittest.expect(o, unittest.hasLength(2)); | 247 unittest.expect(o, unittest.hasLength(2)); |
249 checkStreamLocation(o[0]); | 248 checkStreamLocation(o[0]); |
250 checkStreamLocation(o[1]); | 249 checkStreamLocation(o[1]); |
251 } | 250 } |
252 | 251 |
253 buildUnnamed3091() { | 252 buildUnnamed3084() { |
254 var o = new core.List<api.KeyRangeLocation>(); | 253 var o = new core.List<api.KeyRangeLocation>(); |
255 o.add(buildKeyRangeLocation()); | 254 o.add(buildKeyRangeLocation()); |
256 o.add(buildKeyRangeLocation()); | 255 o.add(buildKeyRangeLocation()); |
257 return o; | 256 return o; |
258 } | 257 } |
259 | 258 |
260 checkUnnamed3091(core.List<api.KeyRangeLocation> o) { | 259 checkUnnamed3084(core.List<api.KeyRangeLocation> o) { |
261 unittest.expect(o, unittest.hasLength(2)); | 260 unittest.expect(o, unittest.hasLength(2)); |
262 checkKeyRangeLocation(o[0]); | 261 checkKeyRangeLocation(o[0]); |
263 checkKeyRangeLocation(o[1]); | 262 checkKeyRangeLocation(o[1]); |
264 } | 263 } |
265 | 264 |
266 buildUnnamed3092() { | 265 buildUnnamed3085() { |
267 var o = new core.List<api.StreamLocation>(); | 266 var o = new core.List<api.StreamLocation>(); |
268 o.add(buildStreamLocation()); | 267 o.add(buildStreamLocation()); |
269 o.add(buildStreamLocation()); | 268 o.add(buildStreamLocation()); |
270 return o; | 269 return o; |
271 } | 270 } |
272 | 271 |
273 checkUnnamed3092(core.List<api.StreamLocation> o) { | 272 checkUnnamed3085(core.List<api.StreamLocation> o) { |
274 unittest.expect(o, unittest.hasLength(2)); | 273 unittest.expect(o, unittest.hasLength(2)); |
275 checkStreamLocation(o[0]); | 274 checkStreamLocation(o[0]); |
276 checkStreamLocation(o[1]); | 275 checkStreamLocation(o[1]); |
277 } | 276 } |
278 | 277 |
279 buildUnnamed3093() { | 278 buildUnnamed3086() { |
280 var o = new core.List<api.StateFamilyConfig>(); | 279 var o = new core.List<api.StateFamilyConfig>(); |
281 o.add(buildStateFamilyConfig()); | 280 o.add(buildStateFamilyConfig()); |
282 o.add(buildStateFamilyConfig()); | 281 o.add(buildStateFamilyConfig()); |
283 return o; | 282 return o; |
284 } | 283 } |
285 | 284 |
286 checkUnnamed3093(core.List<api.StateFamilyConfig> o) { | 285 checkUnnamed3086(core.List<api.StateFamilyConfig> o) { |
287 unittest.expect(o, unittest.hasLength(2)); | 286 unittest.expect(o, unittest.hasLength(2)); |
288 checkStateFamilyConfig(o[0]); | 287 checkStateFamilyConfig(o[0]); |
289 checkStateFamilyConfig(o[1]); | 288 checkStateFamilyConfig(o[1]); |
290 } | 289 } |
291 | 290 |
292 core.int buildCounterComputationTopology = 0; | 291 core.int buildCounterComputationTopology = 0; |
293 buildComputationTopology() { | 292 buildComputationTopology() { |
294 var o = new api.ComputationTopology(); | 293 var o = new api.ComputationTopology(); |
295 buildCounterComputationTopology++; | 294 buildCounterComputationTopology++; |
296 if (buildCounterComputationTopology < 3) { | 295 if (buildCounterComputationTopology < 3) { |
297 o.computationId = "foo"; | 296 o.computationId = "foo"; |
298 o.inputs = buildUnnamed3090(); | 297 o.inputs = buildUnnamed3083(); |
299 o.keyRanges = buildUnnamed3091(); | 298 o.keyRanges = buildUnnamed3084(); |
300 o.outputs = buildUnnamed3092(); | 299 o.outputs = buildUnnamed3085(); |
301 o.stateFamilies = buildUnnamed3093(); | 300 o.stateFamilies = buildUnnamed3086(); |
302 o.systemStageName = "foo"; | 301 o.systemStageName = "foo"; |
303 } | 302 } |
304 buildCounterComputationTopology--; | 303 buildCounterComputationTopology--; |
305 return o; | 304 return o; |
306 } | 305 } |
307 | 306 |
308 checkComputationTopology(api.ComputationTopology o) { | 307 checkComputationTopology(api.ComputationTopology o) { |
309 buildCounterComputationTopology++; | 308 buildCounterComputationTopology++; |
310 if (buildCounterComputationTopology < 3) { | 309 if (buildCounterComputationTopology < 3) { |
311 unittest.expect(o.computationId, unittest.equals('foo')); | 310 unittest.expect(o.computationId, unittest.equals('foo')); |
312 checkUnnamed3090(o.inputs); | 311 checkUnnamed3083(o.inputs); |
313 checkUnnamed3091(o.keyRanges); | 312 checkUnnamed3084(o.keyRanges); |
314 checkUnnamed3092(o.outputs); | 313 checkUnnamed3085(o.outputs); |
315 checkUnnamed3093(o.stateFamilies); | 314 checkUnnamed3086(o.stateFamilies); |
316 unittest.expect(o.systemStageName, unittest.equals('foo')); | 315 unittest.expect(o.systemStageName, unittest.equals('foo')); |
317 } | 316 } |
318 buildCounterComputationTopology--; | 317 buildCounterComputationTopology--; |
319 } | 318 } |
320 | 319 |
321 core.int buildCounterConcatPosition = 0; | 320 core.int buildCounterConcatPosition = 0; |
322 buildConcatPosition() { | 321 buildConcatPosition() { |
323 var o = new api.ConcatPosition(); | 322 var o = new api.ConcatPosition(); |
324 buildCounterConcatPosition++; | 323 buildCounterConcatPosition++; |
325 if (buildCounterConcatPosition < 3) { | 324 if (buildCounterConcatPosition < 3) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 core.int buildCounterCounterStructuredName = 0; | 366 core.int buildCounterCounterStructuredName = 0; |
368 buildCounterStructuredName() { | 367 buildCounterStructuredName() { |
369 var o = new api.CounterStructuredName(); | 368 var o = new api.CounterStructuredName(); |
370 buildCounterCounterStructuredName++; | 369 buildCounterCounterStructuredName++; |
371 if (buildCounterCounterStructuredName < 3) { | 370 if (buildCounterCounterStructuredName < 3) { |
372 o.componentStepName = "foo"; | 371 o.componentStepName = "foo"; |
373 o.executionStepName = "foo"; | 372 o.executionStepName = "foo"; |
374 o.name = "foo"; | 373 o.name = "foo"; |
375 o.origin = "foo"; | 374 o.origin = "foo"; |
376 o.originNamespace = "foo"; | 375 o.originNamespace = "foo"; |
| 376 o.originalShuffleStepName = "foo"; |
377 o.originalStepName = "foo"; | 377 o.originalStepName = "foo"; |
378 o.portion = "foo"; | 378 o.portion = "foo"; |
| 379 o.sideInput = buildSideInputId(); |
379 o.workerId = "foo"; | 380 o.workerId = "foo"; |
380 } | 381 } |
381 buildCounterCounterStructuredName--; | 382 buildCounterCounterStructuredName--; |
382 return o; | 383 return o; |
383 } | 384 } |
384 | 385 |
385 checkCounterStructuredName(api.CounterStructuredName o) { | 386 checkCounterStructuredName(api.CounterStructuredName o) { |
386 buildCounterCounterStructuredName++; | 387 buildCounterCounterStructuredName++; |
387 if (buildCounterCounterStructuredName < 3) { | 388 if (buildCounterCounterStructuredName < 3) { |
388 unittest.expect(o.componentStepName, unittest.equals('foo')); | 389 unittest.expect(o.componentStepName, unittest.equals('foo')); |
389 unittest.expect(o.executionStepName, unittest.equals('foo')); | 390 unittest.expect(o.executionStepName, unittest.equals('foo')); |
390 unittest.expect(o.name, unittest.equals('foo')); | 391 unittest.expect(o.name, unittest.equals('foo')); |
391 unittest.expect(o.origin, unittest.equals('foo')); | 392 unittest.expect(o.origin, unittest.equals('foo')); |
392 unittest.expect(o.originNamespace, unittest.equals('foo')); | 393 unittest.expect(o.originNamespace, unittest.equals('foo')); |
| 394 unittest.expect(o.originalShuffleStepName, unittest.equals('foo')); |
393 unittest.expect(o.originalStepName, unittest.equals('foo')); | 395 unittest.expect(o.originalStepName, unittest.equals('foo')); |
394 unittest.expect(o.portion, unittest.equals('foo')); | 396 unittest.expect(o.portion, unittest.equals('foo')); |
| 397 checkSideInputId(o.sideInput); |
395 unittest.expect(o.workerId, unittest.equals('foo')); | 398 unittest.expect(o.workerId, unittest.equals('foo')); |
396 } | 399 } |
397 buildCounterCounterStructuredName--; | 400 buildCounterCounterStructuredName--; |
398 } | 401 } |
399 | 402 |
400 core.int buildCounterCounterStructuredNameAndMetadata = 0; | 403 core.int buildCounterCounterStructuredNameAndMetadata = 0; |
401 buildCounterStructuredNameAndMetadata() { | 404 buildCounterStructuredNameAndMetadata() { |
402 var o = new api.CounterStructuredNameAndMetadata(); | 405 var o = new api.CounterStructuredNameAndMetadata(); |
403 buildCounterCounterStructuredNameAndMetadata++; | 406 buildCounterCounterStructuredNameAndMetadata++; |
404 if (buildCounterCounterStructuredNameAndMetadata < 3) { | 407 if (buildCounterCounterStructuredNameAndMetadata < 3) { |
(...skipping 20 matching lines...) Expand all Loading... |
425 if (buildCounterCounterUpdate < 3) { | 428 if (buildCounterCounterUpdate < 3) { |
426 o.boolean = true; | 429 o.boolean = true; |
427 o.cumulative = true; | 430 o.cumulative = true; |
428 o.distribution = buildDistributionUpdate(); | 431 o.distribution = buildDistributionUpdate(); |
429 o.floatingPoint = 42.0; | 432 o.floatingPoint = 42.0; |
430 o.floatingPointList = buildFloatingPointList(); | 433 o.floatingPointList = buildFloatingPointList(); |
431 o.floatingPointMean = buildFloatingPointMean(); | 434 o.floatingPointMean = buildFloatingPointMean(); |
432 o.integer = buildSplitInt64(); | 435 o.integer = buildSplitInt64(); |
433 o.integerList = buildIntegerList(); | 436 o.integerList = buildIntegerList(); |
434 o.integerMean = buildIntegerMean(); | 437 o.integerMean = buildIntegerMean(); |
435 o.internal = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 438 o.internal = { |
| 439 'list': [1, 2, 3], |
| 440 'bool': true, |
| 441 'string': 'foo' |
| 442 }; |
436 o.nameAndKind = buildNameAndKind(); | 443 o.nameAndKind = buildNameAndKind(); |
437 o.shortId = "foo"; | 444 o.shortId = "foo"; |
438 o.stringList = buildStringList(); | 445 o.stringList = buildStringList(); |
439 o.structuredNameAndMetadata = buildCounterStructuredNameAndMetadata(); | 446 o.structuredNameAndMetadata = buildCounterStructuredNameAndMetadata(); |
440 } | 447 } |
441 buildCounterCounterUpdate--; | 448 buildCounterCounterUpdate--; |
442 return o; | 449 return o; |
443 } | 450 } |
444 | 451 |
445 checkCounterUpdate(api.CounterUpdate o) { | 452 checkCounterUpdate(api.CounterUpdate o) { |
446 buildCounterCounterUpdate++; | 453 buildCounterCounterUpdate++; |
447 if (buildCounterCounterUpdate < 3) { | 454 if (buildCounterCounterUpdate < 3) { |
448 unittest.expect(o.boolean, unittest.isTrue); | 455 unittest.expect(o.boolean, unittest.isTrue); |
449 unittest.expect(o.cumulative, unittest.isTrue); | 456 unittest.expect(o.cumulative, unittest.isTrue); |
450 checkDistributionUpdate(o.distribution); | 457 checkDistributionUpdate(o.distribution); |
451 unittest.expect(o.floatingPoint, unittest.equals(42.0)); | 458 unittest.expect(o.floatingPoint, unittest.equals(42.0)); |
452 checkFloatingPointList(o.floatingPointList); | 459 checkFloatingPointList(o.floatingPointList); |
453 checkFloatingPointMean(o.floatingPointMean); | 460 checkFloatingPointMean(o.floatingPointMean); |
454 checkSplitInt64(o.integer); | 461 checkSplitInt64(o.integer); |
455 checkIntegerList(o.integerList); | 462 checkIntegerList(o.integerList); |
456 checkIntegerMean(o.integerMean); | 463 checkIntegerMean(o.integerMean); |
457 var casted1 = (o.internal) as core.Map; unittest.expect(casted1, unittest.ha
sLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unitt
est.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["str
ing"], unittest.equals('foo')); | 464 var casted1 = (o.internal) as core.Map; |
| 465 unittest.expect(casted1, unittest.hasLength(3)); |
| 466 unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); |
| 467 unittest.expect(casted1["bool"], unittest.equals(true)); |
| 468 unittest.expect(casted1["string"], unittest.equals('foo')); |
458 checkNameAndKind(o.nameAndKind); | 469 checkNameAndKind(o.nameAndKind); |
459 unittest.expect(o.shortId, unittest.equals('foo')); | 470 unittest.expect(o.shortId, unittest.equals('foo')); |
460 checkStringList(o.stringList); | 471 checkStringList(o.stringList); |
461 checkCounterStructuredNameAndMetadata(o.structuredNameAndMetadata); | 472 checkCounterStructuredNameAndMetadata(o.structuredNameAndMetadata); |
462 } | 473 } |
463 buildCounterCounterUpdate--; | 474 buildCounterCounterUpdate--; |
464 } | 475 } |
465 | 476 |
466 buildUnnamed3094() { | 477 buildUnnamed3087() { |
467 var o = new core.Map<core.String, core.String>(); | 478 var o = new core.Map<core.String, core.String>(); |
468 o["x"] = "foo"; | 479 o["x"] = "foo"; |
469 o["y"] = "foo"; | 480 o["y"] = "foo"; |
470 return o; | 481 return o; |
471 } | 482 } |
472 | 483 |
473 checkUnnamed3094(core.Map<core.String, core.String> o) { | 484 checkUnnamed3087(core.Map<core.String, core.String> o) { |
474 unittest.expect(o, unittest.hasLength(2)); | 485 unittest.expect(o, unittest.hasLength(2)); |
475 unittest.expect(o["x"], unittest.equals('foo')); | 486 unittest.expect(o["x"], unittest.equals('foo')); |
476 unittest.expect(o["y"], unittest.equals('foo')); | 487 unittest.expect(o["y"], unittest.equals('foo')); |
477 } | 488 } |
478 | 489 |
479 core.int buildCounterCreateJobFromTemplateRequest = 0; | 490 core.int buildCounterCreateJobFromTemplateRequest = 0; |
480 buildCreateJobFromTemplateRequest() { | 491 buildCreateJobFromTemplateRequest() { |
481 var o = new api.CreateJobFromTemplateRequest(); | 492 var o = new api.CreateJobFromTemplateRequest(); |
482 buildCounterCreateJobFromTemplateRequest++; | 493 buildCounterCreateJobFromTemplateRequest++; |
483 if (buildCounterCreateJobFromTemplateRequest < 3) { | 494 if (buildCounterCreateJobFromTemplateRequest < 3) { |
484 o.environment = buildRuntimeEnvironment(); | 495 o.environment = buildRuntimeEnvironment(); |
485 o.gcsPath = "foo"; | 496 o.gcsPath = "foo"; |
486 o.jobName = "foo"; | 497 o.jobName = "foo"; |
487 o.location = "foo"; | 498 o.location = "foo"; |
488 o.parameters = buildUnnamed3094(); | 499 o.parameters = buildUnnamed3087(); |
489 } | 500 } |
490 buildCounterCreateJobFromTemplateRequest--; | 501 buildCounterCreateJobFromTemplateRequest--; |
491 return o; | 502 return o; |
492 } | 503 } |
493 | 504 |
494 checkCreateJobFromTemplateRequest(api.CreateJobFromTemplateRequest o) { | 505 checkCreateJobFromTemplateRequest(api.CreateJobFromTemplateRequest o) { |
495 buildCounterCreateJobFromTemplateRequest++; | 506 buildCounterCreateJobFromTemplateRequest++; |
496 if (buildCounterCreateJobFromTemplateRequest < 3) { | 507 if (buildCounterCreateJobFromTemplateRequest < 3) { |
497 checkRuntimeEnvironment(o.environment); | 508 checkRuntimeEnvironment(o.environment); |
498 unittest.expect(o.gcsPath, unittest.equals('foo')); | 509 unittest.expect(o.gcsPath, unittest.equals('foo')); |
499 unittest.expect(o.jobName, unittest.equals('foo')); | 510 unittest.expect(o.jobName, unittest.equals('foo')); |
500 unittest.expect(o.location, unittest.equals('foo')); | 511 unittest.expect(o.location, unittest.equals('foo')); |
501 checkUnnamed3094(o.parameters); | 512 checkUnnamed3087(o.parameters); |
502 } | 513 } |
503 buildCounterCreateJobFromTemplateRequest--; | 514 buildCounterCreateJobFromTemplateRequest--; |
504 } | 515 } |
505 | 516 |
506 core.int buildCounterCustomSourceLocation = 0; | 517 core.int buildCounterCustomSourceLocation = 0; |
507 buildCustomSourceLocation() { | 518 buildCustomSourceLocation() { |
508 var o = new api.CustomSourceLocation(); | 519 var o = new api.CustomSourceLocation(); |
509 buildCounterCustomSourceLocation++; | 520 buildCounterCustomSourceLocation++; |
510 if (buildCounterCustomSourceLocation < 3) { | 521 if (buildCounterCustomSourceLocation < 3) { |
511 o.stateful = true; | 522 o.stateful = true; |
512 } | 523 } |
513 buildCounterCustomSourceLocation--; | 524 buildCounterCustomSourceLocation--; |
514 return o; | 525 return o; |
515 } | 526 } |
516 | 527 |
517 checkCustomSourceLocation(api.CustomSourceLocation o) { | 528 checkCustomSourceLocation(api.CustomSourceLocation o) { |
518 buildCounterCustomSourceLocation++; | 529 buildCounterCustomSourceLocation++; |
519 if (buildCounterCustomSourceLocation < 3) { | 530 if (buildCounterCustomSourceLocation < 3) { |
520 unittest.expect(o.stateful, unittest.isTrue); | 531 unittest.expect(o.stateful, unittest.isTrue); |
521 } | 532 } |
522 buildCounterCustomSourceLocation--; | 533 buildCounterCustomSourceLocation--; |
523 } | 534 } |
524 | 535 |
525 buildUnnamed3095() { | 536 buildUnnamed3088() { |
526 var o = new core.List<core.String>(); | 537 var o = new core.List<core.String>(); |
527 o.add("foo"); | 538 o.add("foo"); |
528 o.add("foo"); | 539 o.add("foo"); |
529 return o; | 540 return o; |
530 } | 541 } |
531 | 542 |
532 checkUnnamed3095(core.List<core.String> o) { | 543 checkUnnamed3088(core.List<core.String> o) { |
533 unittest.expect(o, unittest.hasLength(2)); | 544 unittest.expect(o, unittest.hasLength(2)); |
534 unittest.expect(o[0], unittest.equals('foo')); | 545 unittest.expect(o[0], unittest.equals('foo')); |
535 unittest.expect(o[1], unittest.equals('foo')); | 546 unittest.expect(o[1], unittest.equals('foo')); |
536 } | 547 } |
537 | 548 |
538 core.int buildCounterDataDiskAssignment = 0; | 549 core.int buildCounterDataDiskAssignment = 0; |
539 buildDataDiskAssignment() { | 550 buildDataDiskAssignment() { |
540 var o = new api.DataDiskAssignment(); | 551 var o = new api.DataDiskAssignment(); |
541 buildCounterDataDiskAssignment++; | 552 buildCounterDataDiskAssignment++; |
542 if (buildCounterDataDiskAssignment < 3) { | 553 if (buildCounterDataDiskAssignment < 3) { |
543 o.dataDisks = buildUnnamed3095(); | 554 o.dataDisks = buildUnnamed3088(); |
544 o.vmInstance = "foo"; | 555 o.vmInstance = "foo"; |
545 } | 556 } |
546 buildCounterDataDiskAssignment--; | 557 buildCounterDataDiskAssignment--; |
547 return o; | 558 return o; |
548 } | 559 } |
549 | 560 |
550 checkDataDiskAssignment(api.DataDiskAssignment o) { | 561 checkDataDiskAssignment(api.DataDiskAssignment o) { |
551 buildCounterDataDiskAssignment++; | 562 buildCounterDataDiskAssignment++; |
552 if (buildCounterDataDiskAssignment < 3) { | 563 if (buildCounterDataDiskAssignment < 3) { |
553 checkUnnamed3095(o.dataDisks); | 564 checkUnnamed3088(o.dataDisks); |
554 unittest.expect(o.vmInstance, unittest.equals('foo')); | 565 unittest.expect(o.vmInstance, unittest.equals('foo')); |
555 } | 566 } |
556 buildCounterDataDiskAssignment--; | 567 buildCounterDataDiskAssignment--; |
557 } | 568 } |
558 | 569 |
559 core.int buildCounterDerivedSource = 0; | 570 core.int buildCounterDerivedSource = 0; |
560 buildDerivedSource() { | 571 buildDerivedSource() { |
561 var o = new api.DerivedSource(); | 572 var o = new api.DerivedSource(); |
562 buildCounterDerivedSource++; | 573 buildCounterDerivedSource++; |
563 if (buildCounterDerivedSource < 3) { | 574 if (buildCounterDerivedSource < 3) { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
634 unittest.expect(o.label, unittest.equals('foo')); | 645 unittest.expect(o.label, unittest.equals('foo')); |
635 unittest.expect(o.namespace, unittest.equals('foo')); | 646 unittest.expect(o.namespace, unittest.equals('foo')); |
636 unittest.expect(o.shortStrValue, unittest.equals('foo')); | 647 unittest.expect(o.shortStrValue, unittest.equals('foo')); |
637 unittest.expect(o.strValue, unittest.equals('foo')); | 648 unittest.expect(o.strValue, unittest.equals('foo')); |
638 unittest.expect(o.timestampValue, unittest.equals('foo')); | 649 unittest.expect(o.timestampValue, unittest.equals('foo')); |
639 unittest.expect(o.url, unittest.equals('foo')); | 650 unittest.expect(o.url, unittest.equals('foo')); |
640 } | 651 } |
641 buildCounterDisplayData--; | 652 buildCounterDisplayData--; |
642 } | 653 } |
643 | 654 |
644 buildUnnamed3096() { | 655 buildUnnamed3089() { |
645 var o = new core.List<api.LogBucket>(); | 656 var o = new core.List<api.LogBucket>(); |
646 o.add(buildLogBucket()); | 657 o.add(buildLogBucket()); |
647 o.add(buildLogBucket()); | 658 o.add(buildLogBucket()); |
648 return o; | 659 return o; |
649 } | 660 } |
650 | 661 |
651 checkUnnamed3096(core.List<api.LogBucket> o) { | 662 checkUnnamed3089(core.List<api.LogBucket> o) { |
652 unittest.expect(o, unittest.hasLength(2)); | 663 unittest.expect(o, unittest.hasLength(2)); |
653 checkLogBucket(o[0]); | 664 checkLogBucket(o[0]); |
654 checkLogBucket(o[1]); | 665 checkLogBucket(o[1]); |
655 } | 666 } |
656 | 667 |
657 core.int buildCounterDistributionUpdate = 0; | 668 core.int buildCounterDistributionUpdate = 0; |
658 buildDistributionUpdate() { | 669 buildDistributionUpdate() { |
659 var o = new api.DistributionUpdate(); | 670 var o = new api.DistributionUpdate(); |
660 buildCounterDistributionUpdate++; | 671 buildCounterDistributionUpdate++; |
661 if (buildCounterDistributionUpdate < 3) { | 672 if (buildCounterDistributionUpdate < 3) { |
662 o.count = buildSplitInt64(); | 673 o.count = buildSplitInt64(); |
663 o.logBuckets = buildUnnamed3096(); | 674 o.logBuckets = buildUnnamed3089(); |
664 o.max = buildSplitInt64(); | 675 o.max = buildSplitInt64(); |
665 o.min = buildSplitInt64(); | 676 o.min = buildSplitInt64(); |
666 o.sum = buildSplitInt64(); | 677 o.sum = buildSplitInt64(); |
667 o.sumOfSquares = 42.0; | 678 o.sumOfSquares = 42.0; |
668 } | 679 } |
669 buildCounterDistributionUpdate--; | 680 buildCounterDistributionUpdate--; |
670 return o; | 681 return o; |
671 } | 682 } |
672 | 683 |
673 checkDistributionUpdate(api.DistributionUpdate o) { | 684 checkDistributionUpdate(api.DistributionUpdate o) { |
674 buildCounterDistributionUpdate++; | 685 buildCounterDistributionUpdate++; |
675 if (buildCounterDistributionUpdate < 3) { | 686 if (buildCounterDistributionUpdate < 3) { |
676 checkSplitInt64(o.count); | 687 checkSplitInt64(o.count); |
677 checkUnnamed3096(o.logBuckets); | 688 checkUnnamed3089(o.logBuckets); |
678 checkSplitInt64(o.max); | 689 checkSplitInt64(o.max); |
679 checkSplitInt64(o.min); | 690 checkSplitInt64(o.min); |
680 checkSplitInt64(o.sum); | 691 checkSplitInt64(o.sum); |
681 unittest.expect(o.sumOfSquares, unittest.equals(42.0)); | 692 unittest.expect(o.sumOfSquares, unittest.equals(42.0)); |
682 } | 693 } |
683 buildCounterDistributionUpdate--; | 694 buildCounterDistributionUpdate--; |
684 } | 695 } |
685 | 696 |
686 core.int buildCounterDynamicSourceSplit = 0; | 697 core.int buildCounterDynamicSourceSplit = 0; |
687 buildDynamicSourceSplit() { | 698 buildDynamicSourceSplit() { |
688 var o = new api.DynamicSourceSplit(); | 699 var o = new api.DynamicSourceSplit(); |
689 buildCounterDynamicSourceSplit++; | 700 buildCounterDynamicSourceSplit++; |
690 if (buildCounterDynamicSourceSplit < 3) { | 701 if (buildCounterDynamicSourceSplit < 3) { |
691 o.primary = buildDerivedSource(); | 702 o.primary = buildDerivedSource(); |
692 o.residual = buildDerivedSource(); | 703 o.residual = buildDerivedSource(); |
693 } | 704 } |
694 buildCounterDynamicSourceSplit--; | 705 buildCounterDynamicSourceSplit--; |
695 return o; | 706 return o; |
696 } | 707 } |
697 | 708 |
698 checkDynamicSourceSplit(api.DynamicSourceSplit o) { | 709 checkDynamicSourceSplit(api.DynamicSourceSplit o) { |
699 buildCounterDynamicSourceSplit++; | 710 buildCounterDynamicSourceSplit++; |
700 if (buildCounterDynamicSourceSplit < 3) { | 711 if (buildCounterDynamicSourceSplit < 3) { |
701 checkDerivedSource(o.primary); | 712 checkDerivedSource(o.primary); |
702 checkDerivedSource(o.residual); | 713 checkDerivedSource(o.residual); |
703 } | 714 } |
704 buildCounterDynamicSourceSplit--; | 715 buildCounterDynamicSourceSplit--; |
705 } | 716 } |
706 | 717 |
707 buildUnnamed3097() { | 718 buildUnnamed3090() { |
708 var o = new core.List<core.String>(); | 719 var o = new core.List<core.String>(); |
709 o.add("foo"); | 720 o.add("foo"); |
710 o.add("foo"); | 721 o.add("foo"); |
711 return o; | 722 return o; |
712 } | 723 } |
713 | 724 |
714 checkUnnamed3097(core.List<core.String> o) { | 725 checkUnnamed3090(core.List<core.String> o) { |
715 unittest.expect(o, unittest.hasLength(2)); | 726 unittest.expect(o, unittest.hasLength(2)); |
716 unittest.expect(o[0], unittest.equals('foo')); | 727 unittest.expect(o[0], unittest.equals('foo')); |
717 unittest.expect(o[1], unittest.equals('foo')); | 728 unittest.expect(o[1], unittest.equals('foo')); |
718 } | 729 } |
719 | 730 |
720 buildUnnamed3098() { | 731 buildUnnamed3091() { |
721 var o = new core.Map<core.String, core.Object>(); | 732 var o = new core.Map<core.String, core.Object>(); |
722 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 733 o["x"] = { |
723 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 734 'list': [1, 2, 3], |
| 735 'bool': true, |
| 736 'string': 'foo' |
| 737 }; |
| 738 o["y"] = { |
| 739 'list': [1, 2, 3], |
| 740 'bool': true, |
| 741 'string': 'foo' |
| 742 }; |
724 return o; | 743 return o; |
725 } | 744 } |
726 | 745 |
727 checkUnnamed3098(core.Map<core.String, core.Object> o) { | 746 checkUnnamed3091(core.Map<core.String, core.Object> o) { |
728 unittest.expect(o, unittest.hasLength(2)); | 747 unittest.expect(o, unittest.hasLength(2)); |
729 var casted2 = (o["x"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); | 748 var casted2 = (o["x"]) as core.Map; |
730 var casted3 = (o["y"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); | 749 unittest.expect(casted2, unittest.hasLength(3)); |
| 750 unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); |
| 751 unittest.expect(casted2["bool"], unittest.equals(true)); |
| 752 unittest.expect(casted2["string"], unittest.equals('foo')); |
| 753 var casted3 = (o["y"]) as core.Map; |
| 754 unittest.expect(casted3, unittest.hasLength(3)); |
| 755 unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); |
| 756 unittest.expect(casted3["bool"], unittest.equals(true)); |
| 757 unittest.expect(casted3["string"], unittest.equals('foo')); |
731 } | 758 } |
732 | 759 |
733 buildUnnamed3099() { | 760 buildUnnamed3092() { |
734 var o = new core.Map<core.String, core.Object>(); | 761 var o = new core.Map<core.String, core.Object>(); |
735 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 762 o["x"] = { |
736 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 763 'list': [1, 2, 3], |
| 764 'bool': true, |
| 765 'string': 'foo' |
| 766 }; |
| 767 o["y"] = { |
| 768 'list': [1, 2, 3], |
| 769 'bool': true, |
| 770 'string': 'foo' |
| 771 }; |
737 return o; | 772 return o; |
738 } | 773 } |
739 | 774 |
740 checkUnnamed3099(core.Map<core.String, core.Object> o) { | 775 checkUnnamed3092(core.Map<core.String, core.Object> o) { |
741 unittest.expect(o, unittest.hasLength(2)); | 776 unittest.expect(o, unittest.hasLength(2)); |
742 var casted4 = (o["x"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); | 777 var casted4 = (o["x"]) as core.Map; |
743 var casted5 = (o["y"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); | 778 unittest.expect(casted4, unittest.hasLength(3)); |
| 779 unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); |
| 780 unittest.expect(casted4["bool"], unittest.equals(true)); |
| 781 unittest.expect(casted4["string"], unittest.equals('foo')); |
| 782 var casted5 = (o["y"]) as core.Map; |
| 783 unittest.expect(casted5, unittest.hasLength(3)); |
| 784 unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); |
| 785 unittest.expect(casted5["bool"], unittest.equals(true)); |
| 786 unittest.expect(casted5["string"], unittest.equals('foo')); |
744 } | 787 } |
745 | 788 |
746 buildUnnamed3100() { | 789 buildUnnamed3093() { |
747 var o = new core.Map<core.String, core.Object>(); | 790 var o = new core.Map<core.String, core.Object>(); |
748 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 791 o["x"] = { |
749 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 792 'list': [1, 2, 3], |
| 793 'bool': true, |
| 794 'string': 'foo' |
| 795 }; |
| 796 o["y"] = { |
| 797 'list': [1, 2, 3], |
| 798 'bool': true, |
| 799 'string': 'foo' |
| 800 }; |
750 return o; | 801 return o; |
751 } | 802 } |
752 | 803 |
753 checkUnnamed3100(core.Map<core.String, core.Object> o) { | 804 checkUnnamed3093(core.Map<core.String, core.Object> o) { |
754 unittest.expect(o, unittest.hasLength(2)); | 805 unittest.expect(o, unittest.hasLength(2)); |
755 var casted6 = (o["x"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); | 806 var casted6 = (o["x"]) as core.Map; |
756 var casted7 = (o["y"]) as core.Map; unittest.expect(casted7, unittest.hasLengt
h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"],
unittest.equals('foo')); | 807 unittest.expect(casted6, unittest.hasLength(3)); |
| 808 unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); |
| 809 unittest.expect(casted6["bool"], unittest.equals(true)); |
| 810 unittest.expect(casted6["string"], unittest.equals('foo')); |
| 811 var casted7 = (o["y"]) as core.Map; |
| 812 unittest.expect(casted7, unittest.hasLength(3)); |
| 813 unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); |
| 814 unittest.expect(casted7["bool"], unittest.equals(true)); |
| 815 unittest.expect(casted7["string"], unittest.equals('foo')); |
757 } | 816 } |
758 | 817 |
759 buildUnnamed3101() { | 818 buildUnnamed3094() { |
760 var o = new core.Map<core.String, core.Object>(); | 819 var o = new core.Map<core.String, core.Object>(); |
761 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 820 o["x"] = { |
762 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 821 'list': [1, 2, 3], |
| 822 'bool': true, |
| 823 'string': 'foo' |
| 824 }; |
| 825 o["y"] = { |
| 826 'list': [1, 2, 3], |
| 827 'bool': true, |
| 828 'string': 'foo' |
| 829 }; |
763 return o; | 830 return o; |
764 } | 831 } |
765 | 832 |
766 checkUnnamed3101(core.Map<core.String, core.Object> o) { | 833 checkUnnamed3094(core.Map<core.String, core.Object> o) { |
767 unittest.expect(o, unittest.hasLength(2)); | 834 unittest.expect(o, unittest.hasLength(2)); |
768 var casted8 = (o["x"]) as core.Map; unittest.expect(casted8, unittest.hasLengt
h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"],
unittest.equals('foo')); | 835 var casted8 = (o["x"]) as core.Map; |
769 var casted9 = (o["y"]) as core.Map; unittest.expect(casted9, unittest.hasLengt
h(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"],
unittest.equals('foo')); | 836 unittest.expect(casted8, unittest.hasLength(3)); |
| 837 unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); |
| 838 unittest.expect(casted8["bool"], unittest.equals(true)); |
| 839 unittest.expect(casted8["string"], unittest.equals('foo')); |
| 840 var casted9 = (o["y"]) as core.Map; |
| 841 unittest.expect(casted9, unittest.hasLength(3)); |
| 842 unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); |
| 843 unittest.expect(casted9["bool"], unittest.equals(true)); |
| 844 unittest.expect(casted9["string"], unittest.equals('foo')); |
770 } | 845 } |
771 | 846 |
772 buildUnnamed3102() { | 847 buildUnnamed3095() { |
773 var o = new core.List<api.WorkerPool>(); | 848 var o = new core.List<api.WorkerPool>(); |
774 o.add(buildWorkerPool()); | 849 o.add(buildWorkerPool()); |
775 o.add(buildWorkerPool()); | 850 o.add(buildWorkerPool()); |
776 return o; | 851 return o; |
777 } | 852 } |
778 | 853 |
779 checkUnnamed3102(core.List<api.WorkerPool> o) { | 854 checkUnnamed3095(core.List<api.WorkerPool> o) { |
780 unittest.expect(o, unittest.hasLength(2)); | 855 unittest.expect(o, unittest.hasLength(2)); |
781 checkWorkerPool(o[0]); | 856 checkWorkerPool(o[0]); |
782 checkWorkerPool(o[1]); | 857 checkWorkerPool(o[1]); |
783 } | 858 } |
784 | 859 |
785 core.int buildCounterEnvironment = 0; | 860 core.int buildCounterEnvironment = 0; |
786 buildEnvironment() { | 861 buildEnvironment() { |
787 var o = new api.Environment(); | 862 var o = new api.Environment(); |
788 buildCounterEnvironment++; | 863 buildCounterEnvironment++; |
789 if (buildCounterEnvironment < 3) { | 864 if (buildCounterEnvironment < 3) { |
790 o.clusterManagerApiService = "foo"; | 865 o.clusterManagerApiService = "foo"; |
791 o.dataset = "foo"; | 866 o.dataset = "foo"; |
792 o.experiments = buildUnnamed3097(); | 867 o.experiments = buildUnnamed3090(); |
793 o.internalExperiments = buildUnnamed3098(); | 868 o.internalExperiments = buildUnnamed3091(); |
794 o.sdkPipelineOptions = buildUnnamed3099(); | 869 o.sdkPipelineOptions = buildUnnamed3092(); |
795 o.serviceAccountEmail = "foo"; | 870 o.serviceAccountEmail = "foo"; |
796 o.tempStoragePrefix = "foo"; | 871 o.tempStoragePrefix = "foo"; |
797 o.userAgent = buildUnnamed3100(); | 872 o.userAgent = buildUnnamed3093(); |
798 o.version = buildUnnamed3101(); | 873 o.version = buildUnnamed3094(); |
799 o.workerPools = buildUnnamed3102(); | 874 o.workerPools = buildUnnamed3095(); |
800 } | 875 } |
801 buildCounterEnvironment--; | 876 buildCounterEnvironment--; |
802 return o; | 877 return o; |
803 } | 878 } |
804 | 879 |
805 checkEnvironment(api.Environment o) { | 880 checkEnvironment(api.Environment o) { |
806 buildCounterEnvironment++; | 881 buildCounterEnvironment++; |
807 if (buildCounterEnvironment < 3) { | 882 if (buildCounterEnvironment < 3) { |
808 unittest.expect(o.clusterManagerApiService, unittest.equals('foo')); | 883 unittest.expect(o.clusterManagerApiService, unittest.equals('foo')); |
809 unittest.expect(o.dataset, unittest.equals('foo')); | 884 unittest.expect(o.dataset, unittest.equals('foo')); |
810 checkUnnamed3097(o.experiments); | 885 checkUnnamed3090(o.experiments); |
811 checkUnnamed3098(o.internalExperiments); | 886 checkUnnamed3091(o.internalExperiments); |
812 checkUnnamed3099(o.sdkPipelineOptions); | 887 checkUnnamed3092(o.sdkPipelineOptions); |
813 unittest.expect(o.serviceAccountEmail, unittest.equals('foo')); | 888 unittest.expect(o.serviceAccountEmail, unittest.equals('foo')); |
814 unittest.expect(o.tempStoragePrefix, unittest.equals('foo')); | 889 unittest.expect(o.tempStoragePrefix, unittest.equals('foo')); |
815 checkUnnamed3100(o.userAgent); | 890 checkUnnamed3093(o.userAgent); |
816 checkUnnamed3101(o.version); | 891 checkUnnamed3094(o.version); |
817 checkUnnamed3102(o.workerPools); | 892 checkUnnamed3095(o.workerPools); |
818 } | 893 } |
819 buildCounterEnvironment--; | 894 buildCounterEnvironment--; |
820 } | 895 } |
821 | 896 |
822 core.int buildCounterExecutionStageState = 0; | 897 core.int buildCounterExecutionStageState = 0; |
823 buildExecutionStageState() { | 898 buildExecutionStageState() { |
824 var o = new api.ExecutionStageState(); | 899 var o = new api.ExecutionStageState(); |
825 buildCounterExecutionStageState++; | 900 buildCounterExecutionStageState++; |
826 if (buildCounterExecutionStageState < 3) { | 901 if (buildCounterExecutionStageState < 3) { |
827 o.currentStateTime = "foo"; | 902 o.currentStateTime = "foo"; |
828 o.executionStageName = "foo"; | 903 o.executionStageName = "foo"; |
829 o.executionStageState = "foo"; | 904 o.executionStageState = "foo"; |
830 } | 905 } |
831 buildCounterExecutionStageState--; | 906 buildCounterExecutionStageState--; |
832 return o; | 907 return o; |
833 } | 908 } |
834 | 909 |
835 checkExecutionStageState(api.ExecutionStageState o) { | 910 checkExecutionStageState(api.ExecutionStageState o) { |
836 buildCounterExecutionStageState++; | 911 buildCounterExecutionStageState++; |
837 if (buildCounterExecutionStageState < 3) { | 912 if (buildCounterExecutionStageState < 3) { |
838 unittest.expect(o.currentStateTime, unittest.equals('foo')); | 913 unittest.expect(o.currentStateTime, unittest.equals('foo')); |
839 unittest.expect(o.executionStageName, unittest.equals('foo')); | 914 unittest.expect(o.executionStageName, unittest.equals('foo')); |
840 unittest.expect(o.executionStageState, unittest.equals('foo')); | 915 unittest.expect(o.executionStageState, unittest.equals('foo')); |
841 } | 916 } |
842 buildCounterExecutionStageState--; | 917 buildCounterExecutionStageState--; |
843 } | 918 } |
844 | 919 |
845 buildUnnamed3103() { | 920 buildUnnamed3096() { |
846 var o = new core.List<api.ComponentSource>(); | 921 var o = new core.List<api.ComponentSource>(); |
847 o.add(buildComponentSource()); | 922 o.add(buildComponentSource()); |
848 o.add(buildComponentSource()); | 923 o.add(buildComponentSource()); |
849 return o; | 924 return o; |
850 } | 925 } |
851 | 926 |
852 checkUnnamed3103(core.List<api.ComponentSource> o) { | 927 checkUnnamed3096(core.List<api.ComponentSource> o) { |
853 unittest.expect(o, unittest.hasLength(2)); | 928 unittest.expect(o, unittest.hasLength(2)); |
854 checkComponentSource(o[0]); | 929 checkComponentSource(o[0]); |
855 checkComponentSource(o[1]); | 930 checkComponentSource(o[1]); |
856 } | 931 } |
857 | 932 |
858 buildUnnamed3104() { | 933 buildUnnamed3097() { |
859 var o = new core.List<api.ComponentTransform>(); | 934 var o = new core.List<api.ComponentTransform>(); |
860 o.add(buildComponentTransform()); | 935 o.add(buildComponentTransform()); |
861 o.add(buildComponentTransform()); | 936 o.add(buildComponentTransform()); |
862 return o; | 937 return o; |
863 } | 938 } |
864 | 939 |
865 checkUnnamed3104(core.List<api.ComponentTransform> o) { | 940 checkUnnamed3097(core.List<api.ComponentTransform> o) { |
866 unittest.expect(o, unittest.hasLength(2)); | 941 unittest.expect(o, unittest.hasLength(2)); |
867 checkComponentTransform(o[0]); | 942 checkComponentTransform(o[0]); |
868 checkComponentTransform(o[1]); | 943 checkComponentTransform(o[1]); |
869 } | 944 } |
870 | 945 |
871 buildUnnamed3105() { | 946 buildUnnamed3098() { |
872 var o = new core.List<api.StageSource>(); | 947 var o = new core.List<api.StageSource>(); |
873 o.add(buildStageSource()); | 948 o.add(buildStageSource()); |
874 o.add(buildStageSource()); | 949 o.add(buildStageSource()); |
875 return o; | 950 return o; |
876 } | 951 } |
877 | 952 |
878 checkUnnamed3105(core.List<api.StageSource> o) { | 953 checkUnnamed3098(core.List<api.StageSource> o) { |
879 unittest.expect(o, unittest.hasLength(2)); | 954 unittest.expect(o, unittest.hasLength(2)); |
880 checkStageSource(o[0]); | 955 checkStageSource(o[0]); |
881 checkStageSource(o[1]); | 956 checkStageSource(o[1]); |
882 } | 957 } |
883 | 958 |
884 buildUnnamed3106() { | 959 buildUnnamed3099() { |
885 var o = new core.List<api.StageSource>(); | 960 var o = new core.List<api.StageSource>(); |
886 o.add(buildStageSource()); | 961 o.add(buildStageSource()); |
887 o.add(buildStageSource()); | 962 o.add(buildStageSource()); |
888 return o; | 963 return o; |
889 } | 964 } |
890 | 965 |
891 checkUnnamed3106(core.List<api.StageSource> o) { | 966 checkUnnamed3099(core.List<api.StageSource> o) { |
892 unittest.expect(o, unittest.hasLength(2)); | 967 unittest.expect(o, unittest.hasLength(2)); |
893 checkStageSource(o[0]); | 968 checkStageSource(o[0]); |
894 checkStageSource(o[1]); | 969 checkStageSource(o[1]); |
895 } | 970 } |
896 | 971 |
897 core.int buildCounterExecutionStageSummary = 0; | 972 core.int buildCounterExecutionStageSummary = 0; |
898 buildExecutionStageSummary() { | 973 buildExecutionStageSummary() { |
899 var o = new api.ExecutionStageSummary(); | 974 var o = new api.ExecutionStageSummary(); |
900 buildCounterExecutionStageSummary++; | 975 buildCounterExecutionStageSummary++; |
901 if (buildCounterExecutionStageSummary < 3) { | 976 if (buildCounterExecutionStageSummary < 3) { |
902 o.componentSource = buildUnnamed3103(); | 977 o.componentSource = buildUnnamed3096(); |
903 o.componentTransform = buildUnnamed3104(); | 978 o.componentTransform = buildUnnamed3097(); |
904 o.id = "foo"; | 979 o.id = "foo"; |
905 o.inputSource = buildUnnamed3105(); | 980 o.inputSource = buildUnnamed3098(); |
906 o.kind = "foo"; | 981 o.kind = "foo"; |
907 o.name = "foo"; | 982 o.name = "foo"; |
908 o.outputSource = buildUnnamed3106(); | 983 o.outputSource = buildUnnamed3099(); |
909 } | 984 } |
910 buildCounterExecutionStageSummary--; | 985 buildCounterExecutionStageSummary--; |
911 return o; | 986 return o; |
912 } | 987 } |
913 | 988 |
914 checkExecutionStageSummary(api.ExecutionStageSummary o) { | 989 checkExecutionStageSummary(api.ExecutionStageSummary o) { |
915 buildCounterExecutionStageSummary++; | 990 buildCounterExecutionStageSummary++; |
916 if (buildCounterExecutionStageSummary < 3) { | 991 if (buildCounterExecutionStageSummary < 3) { |
917 checkUnnamed3103(o.componentSource); | 992 checkUnnamed3096(o.componentSource); |
918 checkUnnamed3104(o.componentTransform); | 993 checkUnnamed3097(o.componentTransform); |
919 unittest.expect(o.id, unittest.equals('foo')); | 994 unittest.expect(o.id, unittest.equals('foo')); |
920 checkUnnamed3105(o.inputSource); | 995 checkUnnamed3098(o.inputSource); |
921 unittest.expect(o.kind, unittest.equals('foo')); | 996 unittest.expect(o.kind, unittest.equals('foo')); |
922 unittest.expect(o.name, unittest.equals('foo')); | 997 unittest.expect(o.name, unittest.equals('foo')); |
923 checkUnnamed3106(o.outputSource); | 998 checkUnnamed3099(o.outputSource); |
924 } | 999 } |
925 buildCounterExecutionStageSummary--; | 1000 buildCounterExecutionStageSummary--; |
926 } | 1001 } |
927 | 1002 |
928 core.int buildCounterFailedLocation = 0; | 1003 core.int buildCounterFailedLocation = 0; |
929 buildFailedLocation() { | 1004 buildFailedLocation() { |
930 var o = new api.FailedLocation(); | 1005 var o = new api.FailedLocation(); |
931 buildCounterFailedLocation++; | 1006 buildCounterFailedLocation++; |
932 if (buildCounterFailedLocation < 3) { | 1007 if (buildCounterFailedLocation < 3) { |
933 o.name = "foo"; | 1008 o.name = "foo"; |
934 } | 1009 } |
935 buildCounterFailedLocation--; | 1010 buildCounterFailedLocation--; |
936 return o; | 1011 return o; |
937 } | 1012 } |
938 | 1013 |
939 checkFailedLocation(api.FailedLocation o) { | 1014 checkFailedLocation(api.FailedLocation o) { |
940 buildCounterFailedLocation++; | 1015 buildCounterFailedLocation++; |
941 if (buildCounterFailedLocation < 3) { | 1016 if (buildCounterFailedLocation < 3) { |
942 unittest.expect(o.name, unittest.equals('foo')); | 1017 unittest.expect(o.name, unittest.equals('foo')); |
943 } | 1018 } |
944 buildCounterFailedLocation--; | 1019 buildCounterFailedLocation--; |
945 } | 1020 } |
946 | 1021 |
947 buildUnnamed3107() { | 1022 buildUnnamed3100() { |
948 var o = new core.List<api.InstructionInput>(); | 1023 var o = new core.List<api.InstructionInput>(); |
949 o.add(buildInstructionInput()); | 1024 o.add(buildInstructionInput()); |
950 o.add(buildInstructionInput()); | 1025 o.add(buildInstructionInput()); |
951 return o; | 1026 return o; |
952 } | 1027 } |
953 | 1028 |
954 checkUnnamed3107(core.List<api.InstructionInput> o) { | 1029 checkUnnamed3100(core.List<api.InstructionInput> o) { |
955 unittest.expect(o, unittest.hasLength(2)); | 1030 unittest.expect(o, unittest.hasLength(2)); |
956 checkInstructionInput(o[0]); | 1031 checkInstructionInput(o[0]); |
957 checkInstructionInput(o[1]); | 1032 checkInstructionInput(o[1]); |
958 } | 1033 } |
959 | 1034 |
960 core.int buildCounterFlattenInstruction = 0; | 1035 core.int buildCounterFlattenInstruction = 0; |
961 buildFlattenInstruction() { | 1036 buildFlattenInstruction() { |
962 var o = new api.FlattenInstruction(); | 1037 var o = new api.FlattenInstruction(); |
963 buildCounterFlattenInstruction++; | 1038 buildCounterFlattenInstruction++; |
964 if (buildCounterFlattenInstruction < 3) { | 1039 if (buildCounterFlattenInstruction < 3) { |
965 o.inputs = buildUnnamed3107(); | 1040 o.inputs = buildUnnamed3100(); |
966 } | 1041 } |
967 buildCounterFlattenInstruction--; | 1042 buildCounterFlattenInstruction--; |
968 return o; | 1043 return o; |
969 } | 1044 } |
970 | 1045 |
971 checkFlattenInstruction(api.FlattenInstruction o) { | 1046 checkFlattenInstruction(api.FlattenInstruction o) { |
972 buildCounterFlattenInstruction++; | 1047 buildCounterFlattenInstruction++; |
973 if (buildCounterFlattenInstruction < 3) { | 1048 if (buildCounterFlattenInstruction < 3) { |
974 checkUnnamed3107(o.inputs); | 1049 checkUnnamed3100(o.inputs); |
975 } | 1050 } |
976 buildCounterFlattenInstruction--; | 1051 buildCounterFlattenInstruction--; |
977 } | 1052 } |
978 | 1053 |
979 buildUnnamed3108() { | 1054 buildUnnamed3101() { |
980 var o = new core.List<core.double>(); | 1055 var o = new core.List<core.double>(); |
981 o.add(42.0); | 1056 o.add(42.0); |
982 o.add(42.0); | 1057 o.add(42.0); |
983 return o; | 1058 return o; |
984 } | 1059 } |
985 | 1060 |
986 checkUnnamed3108(core.List<core.double> o) { | 1061 checkUnnamed3101(core.List<core.double> o) { |
987 unittest.expect(o, unittest.hasLength(2)); | 1062 unittest.expect(o, unittest.hasLength(2)); |
988 unittest.expect(o[0], unittest.equals(42.0)); | 1063 unittest.expect(o[0], unittest.equals(42.0)); |
989 unittest.expect(o[1], unittest.equals(42.0)); | 1064 unittest.expect(o[1], unittest.equals(42.0)); |
990 } | 1065 } |
991 | 1066 |
992 core.int buildCounterFloatingPointList = 0; | 1067 core.int buildCounterFloatingPointList = 0; |
993 buildFloatingPointList() { | 1068 buildFloatingPointList() { |
994 var o = new api.FloatingPointList(); | 1069 var o = new api.FloatingPointList(); |
995 buildCounterFloatingPointList++; | 1070 buildCounterFloatingPointList++; |
996 if (buildCounterFloatingPointList < 3) { | 1071 if (buildCounterFloatingPointList < 3) { |
997 o.elements = buildUnnamed3108(); | 1072 o.elements = buildUnnamed3101(); |
998 } | 1073 } |
999 buildCounterFloatingPointList--; | 1074 buildCounterFloatingPointList--; |
1000 return o; | 1075 return o; |
1001 } | 1076 } |
1002 | 1077 |
1003 checkFloatingPointList(api.FloatingPointList o) { | 1078 checkFloatingPointList(api.FloatingPointList o) { |
1004 buildCounterFloatingPointList++; | 1079 buildCounterFloatingPointList++; |
1005 if (buildCounterFloatingPointList < 3) { | 1080 if (buildCounterFloatingPointList < 3) { |
1006 checkUnnamed3108(o.elements); | 1081 checkUnnamed3101(o.elements); |
1007 } | 1082 } |
1008 buildCounterFloatingPointList--; | 1083 buildCounterFloatingPointList--; |
1009 } | 1084 } |
1010 | 1085 |
1011 core.int buildCounterFloatingPointMean = 0; | 1086 core.int buildCounterFloatingPointMean = 0; |
1012 buildFloatingPointMean() { | 1087 buildFloatingPointMean() { |
1013 var o = new api.FloatingPointMean(); | 1088 var o = new api.FloatingPointMean(); |
1014 buildCounterFloatingPointMean++; | 1089 buildCounterFloatingPointMean++; |
1015 if (buildCounterFloatingPointMean < 3) { | 1090 if (buildCounterFloatingPointMean < 3) { |
1016 o.count = buildSplitInt64(); | 1091 o.count = buildSplitInt64(); |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1106 | 1181 |
1107 checkInstructionInput(api.InstructionInput o) { | 1182 checkInstructionInput(api.InstructionInput o) { |
1108 buildCounterInstructionInput++; | 1183 buildCounterInstructionInput++; |
1109 if (buildCounterInstructionInput < 3) { | 1184 if (buildCounterInstructionInput < 3) { |
1110 unittest.expect(o.outputNum, unittest.equals(42)); | 1185 unittest.expect(o.outputNum, unittest.equals(42)); |
1111 unittest.expect(o.producerInstructionIndex, unittest.equals(42)); | 1186 unittest.expect(o.producerInstructionIndex, unittest.equals(42)); |
1112 } | 1187 } |
1113 buildCounterInstructionInput--; | 1188 buildCounterInstructionInput--; |
1114 } | 1189 } |
1115 | 1190 |
1116 buildUnnamed3109() { | 1191 buildUnnamed3102() { |
1117 var o = new core.Map<core.String, core.Object>(); | 1192 var o = new core.Map<core.String, core.Object>(); |
1118 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1193 o["x"] = { |
1119 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1194 'list': [1, 2, 3], |
| 1195 'bool': true, |
| 1196 'string': 'foo' |
| 1197 }; |
| 1198 o["y"] = { |
| 1199 'list': [1, 2, 3], |
| 1200 'bool': true, |
| 1201 'string': 'foo' |
| 1202 }; |
1120 return o; | 1203 return o; |
1121 } | 1204 } |
1122 | 1205 |
1123 checkUnnamed3109(core.Map<core.String, core.Object> o) { | 1206 checkUnnamed3102(core.Map<core.String, core.Object> o) { |
1124 unittest.expect(o, unittest.hasLength(2)); | 1207 unittest.expect(o, unittest.hasLength(2)); |
1125 var casted10 = (o["x"]) as core.Map; unittest.expect(casted10, unittest.hasLen
gth(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["stri
ng"], unittest.equals('foo')); | 1208 var casted10 = (o["x"]) as core.Map; |
1126 var casted11 = (o["y"]) as core.Map; unittest.expect(casted11, unittest.hasLen
gth(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["stri
ng"], unittest.equals('foo')); | 1209 unittest.expect(casted10, unittest.hasLength(3)); |
| 1210 unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); |
| 1211 unittest.expect(casted10["bool"], unittest.equals(true)); |
| 1212 unittest.expect(casted10["string"], unittest.equals('foo')); |
| 1213 var casted11 = (o["y"]) as core.Map; |
| 1214 unittest.expect(casted11, unittest.hasLength(3)); |
| 1215 unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); |
| 1216 unittest.expect(casted11["bool"], unittest.equals(true)); |
| 1217 unittest.expect(casted11["string"], unittest.equals('foo')); |
1127 } | 1218 } |
1128 | 1219 |
1129 core.int buildCounterInstructionOutput = 0; | 1220 core.int buildCounterInstructionOutput = 0; |
1130 buildInstructionOutput() { | 1221 buildInstructionOutput() { |
1131 var o = new api.InstructionOutput(); | 1222 var o = new api.InstructionOutput(); |
1132 buildCounterInstructionOutput++; | 1223 buildCounterInstructionOutput++; |
1133 if (buildCounterInstructionOutput < 3) { | 1224 if (buildCounterInstructionOutput < 3) { |
1134 o.codec = buildUnnamed3109(); | 1225 o.codec = buildUnnamed3102(); |
1135 o.name = "foo"; | 1226 o.name = "foo"; |
1136 o.onlyCountKeyBytes = true; | 1227 o.onlyCountKeyBytes = true; |
1137 o.onlyCountValueBytes = true; | 1228 o.onlyCountValueBytes = true; |
1138 o.originalName = "foo"; | 1229 o.originalName = "foo"; |
1139 o.systemName = "foo"; | 1230 o.systemName = "foo"; |
1140 } | 1231 } |
1141 buildCounterInstructionOutput--; | 1232 buildCounterInstructionOutput--; |
1142 return o; | 1233 return o; |
1143 } | 1234 } |
1144 | 1235 |
1145 checkInstructionOutput(api.InstructionOutput o) { | 1236 checkInstructionOutput(api.InstructionOutput o) { |
1146 buildCounterInstructionOutput++; | 1237 buildCounterInstructionOutput++; |
1147 if (buildCounterInstructionOutput < 3) { | 1238 if (buildCounterInstructionOutput < 3) { |
1148 checkUnnamed3109(o.codec); | 1239 checkUnnamed3102(o.codec); |
1149 unittest.expect(o.name, unittest.equals('foo')); | 1240 unittest.expect(o.name, unittest.equals('foo')); |
1150 unittest.expect(o.onlyCountKeyBytes, unittest.isTrue); | 1241 unittest.expect(o.onlyCountKeyBytes, unittest.isTrue); |
1151 unittest.expect(o.onlyCountValueBytes, unittest.isTrue); | 1242 unittest.expect(o.onlyCountValueBytes, unittest.isTrue); |
1152 unittest.expect(o.originalName, unittest.equals('foo')); | 1243 unittest.expect(o.originalName, unittest.equals('foo')); |
1153 unittest.expect(o.systemName, unittest.equals('foo')); | 1244 unittest.expect(o.systemName, unittest.equals('foo')); |
1154 } | 1245 } |
1155 buildCounterInstructionOutput--; | 1246 buildCounterInstructionOutput--; |
1156 } | 1247 } |
1157 | 1248 |
1158 buildUnnamed3110() { | 1249 buildUnnamed3103() { |
1159 var o = new core.List<api.SplitInt64>(); | 1250 var o = new core.List<api.SplitInt64>(); |
1160 o.add(buildSplitInt64()); | 1251 o.add(buildSplitInt64()); |
1161 o.add(buildSplitInt64()); | 1252 o.add(buildSplitInt64()); |
1162 return o; | 1253 return o; |
1163 } | 1254 } |
1164 | 1255 |
1165 checkUnnamed3110(core.List<api.SplitInt64> o) { | 1256 checkUnnamed3103(core.List<api.SplitInt64> o) { |
1166 unittest.expect(o, unittest.hasLength(2)); | 1257 unittest.expect(o, unittest.hasLength(2)); |
1167 checkSplitInt64(o[0]); | 1258 checkSplitInt64(o[0]); |
1168 checkSplitInt64(o[1]); | 1259 checkSplitInt64(o[1]); |
1169 } | 1260 } |
1170 | 1261 |
1171 core.int buildCounterIntegerList = 0; | 1262 core.int buildCounterIntegerList = 0; |
1172 buildIntegerList() { | 1263 buildIntegerList() { |
1173 var o = new api.IntegerList(); | 1264 var o = new api.IntegerList(); |
1174 buildCounterIntegerList++; | 1265 buildCounterIntegerList++; |
1175 if (buildCounterIntegerList < 3) { | 1266 if (buildCounterIntegerList < 3) { |
1176 o.elements = buildUnnamed3110(); | 1267 o.elements = buildUnnamed3103(); |
1177 } | 1268 } |
1178 buildCounterIntegerList--; | 1269 buildCounterIntegerList--; |
1179 return o; | 1270 return o; |
1180 } | 1271 } |
1181 | 1272 |
1182 checkIntegerList(api.IntegerList o) { | 1273 checkIntegerList(api.IntegerList o) { |
1183 buildCounterIntegerList++; | 1274 buildCounterIntegerList++; |
1184 if (buildCounterIntegerList < 3) { | 1275 if (buildCounterIntegerList < 3) { |
1185 checkUnnamed3110(o.elements); | 1276 checkUnnamed3103(o.elements); |
1186 } | 1277 } |
1187 buildCounterIntegerList--; | 1278 buildCounterIntegerList--; |
1188 } | 1279 } |
1189 | 1280 |
1190 core.int buildCounterIntegerMean = 0; | 1281 core.int buildCounterIntegerMean = 0; |
1191 buildIntegerMean() { | 1282 buildIntegerMean() { |
1192 var o = new api.IntegerMean(); | 1283 var o = new api.IntegerMean(); |
1193 buildCounterIntegerMean++; | 1284 buildCounterIntegerMean++; |
1194 if (buildCounterIntegerMean < 3) { | 1285 if (buildCounterIntegerMean < 3) { |
1195 o.count = buildSplitInt64(); | 1286 o.count = buildSplitInt64(); |
1196 o.sum = buildSplitInt64(); | 1287 o.sum = buildSplitInt64(); |
1197 } | 1288 } |
1198 buildCounterIntegerMean--; | 1289 buildCounterIntegerMean--; |
1199 return o; | 1290 return o; |
1200 } | 1291 } |
1201 | 1292 |
1202 checkIntegerMean(api.IntegerMean o) { | 1293 checkIntegerMean(api.IntegerMean o) { |
1203 buildCounterIntegerMean++; | 1294 buildCounterIntegerMean++; |
1204 if (buildCounterIntegerMean < 3) { | 1295 if (buildCounterIntegerMean < 3) { |
1205 checkSplitInt64(o.count); | 1296 checkSplitInt64(o.count); |
1206 checkSplitInt64(o.sum); | 1297 checkSplitInt64(o.sum); |
1207 } | 1298 } |
1208 buildCounterIntegerMean--; | 1299 buildCounterIntegerMean--; |
1209 } | 1300 } |
1210 | 1301 |
1211 buildUnnamed3111() { | 1302 buildUnnamed3104() { |
1212 var o = new core.Map<core.String, core.String>(); | 1303 var o = new core.Map<core.String, core.String>(); |
1213 o["x"] = "foo"; | 1304 o["x"] = "foo"; |
1214 o["y"] = "foo"; | 1305 o["y"] = "foo"; |
1215 return o; | 1306 return o; |
1216 } | 1307 } |
1217 | 1308 |
1218 checkUnnamed3111(core.Map<core.String, core.String> o) { | 1309 checkUnnamed3104(core.Map<core.String, core.String> o) { |
1219 unittest.expect(o, unittest.hasLength(2)); | 1310 unittest.expect(o, unittest.hasLength(2)); |
1220 unittest.expect(o["x"], unittest.equals('foo')); | 1311 unittest.expect(o["x"], unittest.equals('foo')); |
1221 unittest.expect(o["y"], unittest.equals('foo')); | 1312 unittest.expect(o["y"], unittest.equals('foo')); |
1222 } | 1313 } |
1223 | 1314 |
1224 buildUnnamed3112() { | 1315 buildUnnamed3105() { |
1225 var o = new core.List<api.ExecutionStageState>(); | 1316 var o = new core.List<api.ExecutionStageState>(); |
1226 o.add(buildExecutionStageState()); | 1317 o.add(buildExecutionStageState()); |
1227 o.add(buildExecutionStageState()); | 1318 o.add(buildExecutionStageState()); |
1228 return o; | 1319 return o; |
1229 } | 1320 } |
1230 | 1321 |
1231 checkUnnamed3112(core.List<api.ExecutionStageState> o) { | 1322 checkUnnamed3105(core.List<api.ExecutionStageState> o) { |
1232 unittest.expect(o, unittest.hasLength(2)); | 1323 unittest.expect(o, unittest.hasLength(2)); |
1233 checkExecutionStageState(o[0]); | 1324 checkExecutionStageState(o[0]); |
1234 checkExecutionStageState(o[1]); | 1325 checkExecutionStageState(o[1]); |
1235 } | 1326 } |
1236 | 1327 |
1237 buildUnnamed3113() { | 1328 buildUnnamed3106() { |
1238 var o = new core.List<api.Step>(); | 1329 var o = new core.List<api.Step>(); |
1239 o.add(buildStep()); | 1330 o.add(buildStep()); |
1240 o.add(buildStep()); | 1331 o.add(buildStep()); |
1241 return o; | 1332 return o; |
1242 } | 1333 } |
1243 | 1334 |
1244 checkUnnamed3113(core.List<api.Step> o) { | 1335 checkUnnamed3106(core.List<api.Step> o) { |
1245 unittest.expect(o, unittest.hasLength(2)); | 1336 unittest.expect(o, unittest.hasLength(2)); |
1246 checkStep(o[0]); | 1337 checkStep(o[0]); |
1247 checkStep(o[1]); | 1338 checkStep(o[1]); |
1248 } | 1339 } |
1249 | 1340 |
1250 buildUnnamed3114() { | 1341 buildUnnamed3107() { |
1251 var o = new core.List<core.String>(); | 1342 var o = new core.List<core.String>(); |
1252 o.add("foo"); | 1343 o.add("foo"); |
1253 o.add("foo"); | 1344 o.add("foo"); |
1254 return o; | 1345 return o; |
1255 } | 1346 } |
1256 | 1347 |
1257 checkUnnamed3114(core.List<core.String> o) { | 1348 checkUnnamed3107(core.List<core.String> o) { |
1258 unittest.expect(o, unittest.hasLength(2)); | 1349 unittest.expect(o, unittest.hasLength(2)); |
1259 unittest.expect(o[0], unittest.equals('foo')); | 1350 unittest.expect(o[0], unittest.equals('foo')); |
1260 unittest.expect(o[1], unittest.equals('foo')); | 1351 unittest.expect(o[1], unittest.equals('foo')); |
1261 } | 1352 } |
1262 | 1353 |
1263 buildUnnamed3115() { | 1354 buildUnnamed3108() { |
1264 var o = new core.Map<core.String, core.String>(); | 1355 var o = new core.Map<core.String, core.String>(); |
1265 o["x"] = "foo"; | 1356 o["x"] = "foo"; |
1266 o["y"] = "foo"; | 1357 o["y"] = "foo"; |
1267 return o; | 1358 return o; |
1268 } | 1359 } |
1269 | 1360 |
1270 checkUnnamed3115(core.Map<core.String, core.String> o) { | 1361 checkUnnamed3108(core.Map<core.String, core.String> o) { |
1271 unittest.expect(o, unittest.hasLength(2)); | 1362 unittest.expect(o, unittest.hasLength(2)); |
1272 unittest.expect(o["x"], unittest.equals('foo')); | 1363 unittest.expect(o["x"], unittest.equals('foo')); |
1273 unittest.expect(o["y"], unittest.equals('foo')); | 1364 unittest.expect(o["y"], unittest.equals('foo')); |
1274 } | 1365 } |
1275 | 1366 |
1276 core.int buildCounterJob = 0; | 1367 core.int buildCounterJob = 0; |
1277 buildJob() { | 1368 buildJob() { |
1278 var o = new api.Job(); | 1369 var o = new api.Job(); |
1279 buildCounterJob++; | 1370 buildCounterJob++; |
1280 if (buildCounterJob < 3) { | 1371 if (buildCounterJob < 3) { |
1281 o.clientRequestId = "foo"; | 1372 o.clientRequestId = "foo"; |
1282 o.createTime = "foo"; | 1373 o.createTime = "foo"; |
1283 o.currentState = "foo"; | 1374 o.currentState = "foo"; |
1284 o.currentStateTime = "foo"; | 1375 o.currentStateTime = "foo"; |
1285 o.environment = buildEnvironment(); | 1376 o.environment = buildEnvironment(); |
1286 o.executionInfo = buildJobExecutionInfo(); | 1377 o.executionInfo = buildJobExecutionInfo(); |
1287 o.id = "foo"; | 1378 o.id = "foo"; |
1288 o.labels = buildUnnamed3111(); | 1379 o.labels = buildUnnamed3104(); |
1289 o.location = "foo"; | 1380 o.location = "foo"; |
1290 o.name = "foo"; | 1381 o.name = "foo"; |
1291 o.pipelineDescription = buildPipelineDescription(); | 1382 o.pipelineDescription = buildPipelineDescription(); |
1292 o.projectId = "foo"; | 1383 o.projectId = "foo"; |
1293 o.replaceJobId = "foo"; | 1384 o.replaceJobId = "foo"; |
1294 o.replacedByJobId = "foo"; | 1385 o.replacedByJobId = "foo"; |
1295 o.requestedState = "foo"; | 1386 o.requestedState = "foo"; |
1296 o.stageStates = buildUnnamed3112(); | 1387 o.stageStates = buildUnnamed3105(); |
1297 o.steps = buildUnnamed3113(); | 1388 o.steps = buildUnnamed3106(); |
1298 o.tempFiles = buildUnnamed3114(); | 1389 o.tempFiles = buildUnnamed3107(); |
1299 o.transformNameMapping = buildUnnamed3115(); | 1390 o.transformNameMapping = buildUnnamed3108(); |
1300 o.type = "foo"; | 1391 o.type = "foo"; |
1301 } | 1392 } |
1302 buildCounterJob--; | 1393 buildCounterJob--; |
1303 return o; | 1394 return o; |
1304 } | 1395 } |
1305 | 1396 |
1306 checkJob(api.Job o) { | 1397 checkJob(api.Job o) { |
1307 buildCounterJob++; | 1398 buildCounterJob++; |
1308 if (buildCounterJob < 3) { | 1399 if (buildCounterJob < 3) { |
1309 unittest.expect(o.clientRequestId, unittest.equals('foo')); | 1400 unittest.expect(o.clientRequestId, unittest.equals('foo')); |
1310 unittest.expect(o.createTime, unittest.equals('foo')); | 1401 unittest.expect(o.createTime, unittest.equals('foo')); |
1311 unittest.expect(o.currentState, unittest.equals('foo')); | 1402 unittest.expect(o.currentState, unittest.equals('foo')); |
1312 unittest.expect(o.currentStateTime, unittest.equals('foo')); | 1403 unittest.expect(o.currentStateTime, unittest.equals('foo')); |
1313 checkEnvironment(o.environment); | 1404 checkEnvironment(o.environment); |
1314 checkJobExecutionInfo(o.executionInfo); | 1405 checkJobExecutionInfo(o.executionInfo); |
1315 unittest.expect(o.id, unittest.equals('foo')); | 1406 unittest.expect(o.id, unittest.equals('foo')); |
1316 checkUnnamed3111(o.labels); | 1407 checkUnnamed3104(o.labels); |
1317 unittest.expect(o.location, unittest.equals('foo')); | 1408 unittest.expect(o.location, unittest.equals('foo')); |
1318 unittest.expect(o.name, unittest.equals('foo')); | 1409 unittest.expect(o.name, unittest.equals('foo')); |
1319 checkPipelineDescription(o.pipelineDescription); | 1410 checkPipelineDescription(o.pipelineDescription); |
1320 unittest.expect(o.projectId, unittest.equals('foo')); | 1411 unittest.expect(o.projectId, unittest.equals('foo')); |
1321 unittest.expect(o.replaceJobId, unittest.equals('foo')); | 1412 unittest.expect(o.replaceJobId, unittest.equals('foo')); |
1322 unittest.expect(o.replacedByJobId, unittest.equals('foo')); | 1413 unittest.expect(o.replacedByJobId, unittest.equals('foo')); |
1323 unittest.expect(o.requestedState, unittest.equals('foo')); | 1414 unittest.expect(o.requestedState, unittest.equals('foo')); |
1324 checkUnnamed3112(o.stageStates); | 1415 checkUnnamed3105(o.stageStates); |
1325 checkUnnamed3113(o.steps); | 1416 checkUnnamed3106(o.steps); |
1326 checkUnnamed3114(o.tempFiles); | 1417 checkUnnamed3107(o.tempFiles); |
1327 checkUnnamed3115(o.transformNameMapping); | 1418 checkUnnamed3108(o.transformNameMapping); |
1328 unittest.expect(o.type, unittest.equals('foo')); | 1419 unittest.expect(o.type, unittest.equals('foo')); |
1329 } | 1420 } |
1330 buildCounterJob--; | 1421 buildCounterJob--; |
1331 } | 1422 } |
1332 | 1423 |
1333 buildUnnamed3116() { | 1424 buildUnnamed3109() { |
1334 var o = new core.Map<core.String, api.JobExecutionStageInfo>(); | 1425 var o = new core.Map<core.String, api.JobExecutionStageInfo>(); |
1335 o["x"] = buildJobExecutionStageInfo(); | 1426 o["x"] = buildJobExecutionStageInfo(); |
1336 o["y"] = buildJobExecutionStageInfo(); | 1427 o["y"] = buildJobExecutionStageInfo(); |
1337 return o; | 1428 return o; |
1338 } | 1429 } |
1339 | 1430 |
1340 checkUnnamed3116(core.Map<core.String, api.JobExecutionStageInfo> o) { | 1431 checkUnnamed3109(core.Map<core.String, api.JobExecutionStageInfo> o) { |
1341 unittest.expect(o, unittest.hasLength(2)); | 1432 unittest.expect(o, unittest.hasLength(2)); |
1342 checkJobExecutionStageInfo(o["x"]); | 1433 checkJobExecutionStageInfo(o["x"]); |
1343 checkJobExecutionStageInfo(o["y"]); | 1434 checkJobExecutionStageInfo(o["y"]); |
1344 } | 1435 } |
1345 | 1436 |
1346 core.int buildCounterJobExecutionInfo = 0; | 1437 core.int buildCounterJobExecutionInfo = 0; |
1347 buildJobExecutionInfo() { | 1438 buildJobExecutionInfo() { |
1348 var o = new api.JobExecutionInfo(); | 1439 var o = new api.JobExecutionInfo(); |
1349 buildCounterJobExecutionInfo++; | 1440 buildCounterJobExecutionInfo++; |
1350 if (buildCounterJobExecutionInfo < 3) { | 1441 if (buildCounterJobExecutionInfo < 3) { |
1351 o.stages = buildUnnamed3116(); | 1442 o.stages = buildUnnamed3109(); |
1352 } | 1443 } |
1353 buildCounterJobExecutionInfo--; | 1444 buildCounterJobExecutionInfo--; |
1354 return o; | 1445 return o; |
1355 } | 1446 } |
1356 | 1447 |
1357 checkJobExecutionInfo(api.JobExecutionInfo o) { | 1448 checkJobExecutionInfo(api.JobExecutionInfo o) { |
1358 buildCounterJobExecutionInfo++; | 1449 buildCounterJobExecutionInfo++; |
1359 if (buildCounterJobExecutionInfo < 3) { | 1450 if (buildCounterJobExecutionInfo < 3) { |
1360 checkUnnamed3116(o.stages); | 1451 checkUnnamed3109(o.stages); |
1361 } | 1452 } |
1362 buildCounterJobExecutionInfo--; | 1453 buildCounterJobExecutionInfo--; |
1363 } | 1454 } |
1364 | 1455 |
1365 buildUnnamed3117() { | 1456 buildUnnamed3110() { |
1366 var o = new core.List<core.String>(); | 1457 var o = new core.List<core.String>(); |
1367 o.add("foo"); | 1458 o.add("foo"); |
1368 o.add("foo"); | 1459 o.add("foo"); |
1369 return o; | 1460 return o; |
1370 } | 1461 } |
1371 | 1462 |
1372 checkUnnamed3117(core.List<core.String> o) { | 1463 checkUnnamed3110(core.List<core.String> o) { |
1373 unittest.expect(o, unittest.hasLength(2)); | 1464 unittest.expect(o, unittest.hasLength(2)); |
1374 unittest.expect(o[0], unittest.equals('foo')); | 1465 unittest.expect(o[0], unittest.equals('foo')); |
1375 unittest.expect(o[1], unittest.equals('foo')); | 1466 unittest.expect(o[1], unittest.equals('foo')); |
1376 } | 1467 } |
1377 | 1468 |
1378 core.int buildCounterJobExecutionStageInfo = 0; | 1469 core.int buildCounterJobExecutionStageInfo = 0; |
1379 buildJobExecutionStageInfo() { | 1470 buildJobExecutionStageInfo() { |
1380 var o = new api.JobExecutionStageInfo(); | 1471 var o = new api.JobExecutionStageInfo(); |
1381 buildCounterJobExecutionStageInfo++; | 1472 buildCounterJobExecutionStageInfo++; |
1382 if (buildCounterJobExecutionStageInfo < 3) { | 1473 if (buildCounterJobExecutionStageInfo < 3) { |
1383 o.stepName = buildUnnamed3117(); | 1474 o.stepName = buildUnnamed3110(); |
1384 } | 1475 } |
1385 buildCounterJobExecutionStageInfo--; | 1476 buildCounterJobExecutionStageInfo--; |
1386 return o; | 1477 return o; |
1387 } | 1478 } |
1388 | 1479 |
1389 checkJobExecutionStageInfo(api.JobExecutionStageInfo o) { | 1480 checkJobExecutionStageInfo(api.JobExecutionStageInfo o) { |
1390 buildCounterJobExecutionStageInfo++; | 1481 buildCounterJobExecutionStageInfo++; |
1391 if (buildCounterJobExecutionStageInfo < 3) { | 1482 if (buildCounterJobExecutionStageInfo < 3) { |
1392 checkUnnamed3117(o.stepName); | 1483 checkUnnamed3110(o.stepName); |
1393 } | 1484 } |
1394 buildCounterJobExecutionStageInfo--; | 1485 buildCounterJobExecutionStageInfo--; |
1395 } | 1486 } |
1396 | 1487 |
1397 core.int buildCounterJobMessage = 0; | 1488 core.int buildCounterJobMessage = 0; |
1398 buildJobMessage() { | 1489 buildJobMessage() { |
1399 var o = new api.JobMessage(); | 1490 var o = new api.JobMessage(); |
1400 buildCounterJobMessage++; | 1491 buildCounterJobMessage++; |
1401 if (buildCounterJobMessage < 3) { | 1492 if (buildCounterJobMessage < 3) { |
1402 o.id = "foo"; | 1493 o.id = "foo"; |
1403 o.messageImportance = "foo"; | 1494 o.messageImportance = "foo"; |
1404 o.messageText = "foo"; | 1495 o.messageText = "foo"; |
1405 o.time = "foo"; | 1496 o.time = "foo"; |
1406 } | 1497 } |
1407 buildCounterJobMessage--; | 1498 buildCounterJobMessage--; |
1408 return o; | 1499 return o; |
1409 } | 1500 } |
1410 | 1501 |
1411 checkJobMessage(api.JobMessage o) { | 1502 checkJobMessage(api.JobMessage o) { |
1412 buildCounterJobMessage++; | 1503 buildCounterJobMessage++; |
1413 if (buildCounterJobMessage < 3) { | 1504 if (buildCounterJobMessage < 3) { |
1414 unittest.expect(o.id, unittest.equals('foo')); | 1505 unittest.expect(o.id, unittest.equals('foo')); |
1415 unittest.expect(o.messageImportance, unittest.equals('foo')); | 1506 unittest.expect(o.messageImportance, unittest.equals('foo')); |
1416 unittest.expect(o.messageText, unittest.equals('foo')); | 1507 unittest.expect(o.messageText, unittest.equals('foo')); |
1417 unittest.expect(o.time, unittest.equals('foo')); | 1508 unittest.expect(o.time, unittest.equals('foo')); |
1418 } | 1509 } |
1419 buildCounterJobMessage--; | 1510 buildCounterJobMessage--; |
1420 } | 1511 } |
1421 | 1512 |
1422 buildUnnamed3118() { | 1513 buildUnnamed3111() { |
1423 var o = new core.List<api.MetricUpdate>(); | 1514 var o = new core.List<api.MetricUpdate>(); |
1424 o.add(buildMetricUpdate()); | 1515 o.add(buildMetricUpdate()); |
1425 o.add(buildMetricUpdate()); | 1516 o.add(buildMetricUpdate()); |
1426 return o; | 1517 return o; |
1427 } | 1518 } |
1428 | 1519 |
1429 checkUnnamed3118(core.List<api.MetricUpdate> o) { | 1520 checkUnnamed3111(core.List<api.MetricUpdate> o) { |
1430 unittest.expect(o, unittest.hasLength(2)); | 1521 unittest.expect(o, unittest.hasLength(2)); |
1431 checkMetricUpdate(o[0]); | 1522 checkMetricUpdate(o[0]); |
1432 checkMetricUpdate(o[1]); | 1523 checkMetricUpdate(o[1]); |
1433 } | 1524 } |
1434 | 1525 |
1435 core.int buildCounterJobMetrics = 0; | 1526 core.int buildCounterJobMetrics = 0; |
1436 buildJobMetrics() { | 1527 buildJobMetrics() { |
1437 var o = new api.JobMetrics(); | 1528 var o = new api.JobMetrics(); |
1438 buildCounterJobMetrics++; | 1529 buildCounterJobMetrics++; |
1439 if (buildCounterJobMetrics < 3) { | 1530 if (buildCounterJobMetrics < 3) { |
1440 o.metricTime = "foo"; | 1531 o.metricTime = "foo"; |
1441 o.metrics = buildUnnamed3118(); | 1532 o.metrics = buildUnnamed3111(); |
1442 } | 1533 } |
1443 buildCounterJobMetrics--; | 1534 buildCounterJobMetrics--; |
1444 return o; | 1535 return o; |
1445 } | 1536 } |
1446 | 1537 |
1447 checkJobMetrics(api.JobMetrics o) { | 1538 checkJobMetrics(api.JobMetrics o) { |
1448 buildCounterJobMetrics++; | 1539 buildCounterJobMetrics++; |
1449 if (buildCounterJobMetrics < 3) { | 1540 if (buildCounterJobMetrics < 3) { |
1450 unittest.expect(o.metricTime, unittest.equals('foo')); | 1541 unittest.expect(o.metricTime, unittest.equals('foo')); |
1451 checkUnnamed3118(o.metrics); | 1542 checkUnnamed3111(o.metrics); |
1452 } | 1543 } |
1453 buildCounterJobMetrics--; | 1544 buildCounterJobMetrics--; |
1454 } | 1545 } |
1455 | 1546 |
1456 core.int buildCounterKeyRangeDataDiskAssignment = 0; | 1547 core.int buildCounterKeyRangeDataDiskAssignment = 0; |
1457 buildKeyRangeDataDiskAssignment() { | 1548 buildKeyRangeDataDiskAssignment() { |
1458 var o = new api.KeyRangeDataDiskAssignment(); | 1549 var o = new api.KeyRangeDataDiskAssignment(); |
1459 buildCounterKeyRangeDataDiskAssignment++; | 1550 buildCounterKeyRangeDataDiskAssignment++; |
1460 if (buildCounterKeyRangeDataDiskAssignment < 3) { | 1551 if (buildCounterKeyRangeDataDiskAssignment < 3) { |
1461 o.dataDisk = "foo"; | 1552 o.dataDisk = "foo"; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1496 if (buildCounterKeyRangeLocation < 3) { | 1587 if (buildCounterKeyRangeLocation < 3) { |
1497 unittest.expect(o.dataDisk, unittest.equals('foo')); | 1588 unittest.expect(o.dataDisk, unittest.equals('foo')); |
1498 unittest.expect(o.deliveryEndpoint, unittest.equals('foo')); | 1589 unittest.expect(o.deliveryEndpoint, unittest.equals('foo')); |
1499 unittest.expect(o.deprecatedPersistentDirectory, unittest.equals('foo')); | 1590 unittest.expect(o.deprecatedPersistentDirectory, unittest.equals('foo')); |
1500 unittest.expect(o.end, unittest.equals('foo')); | 1591 unittest.expect(o.end, unittest.equals('foo')); |
1501 unittest.expect(o.start, unittest.equals('foo')); | 1592 unittest.expect(o.start, unittest.equals('foo')); |
1502 } | 1593 } |
1503 buildCounterKeyRangeLocation--; | 1594 buildCounterKeyRangeLocation--; |
1504 } | 1595 } |
1505 | 1596 |
1506 buildUnnamed3119() { | 1597 buildUnnamed3112() { |
1507 var o = new core.Map<core.String, core.String>(); | 1598 var o = new core.Map<core.String, core.String>(); |
1508 o["x"] = "foo"; | 1599 o["x"] = "foo"; |
1509 o["y"] = "foo"; | 1600 o["y"] = "foo"; |
1510 return o; | 1601 return o; |
1511 } | 1602 } |
1512 | 1603 |
1513 checkUnnamed3119(core.Map<core.String, core.String> o) { | 1604 checkUnnamed3112(core.Map<core.String, core.String> o) { |
1514 unittest.expect(o, unittest.hasLength(2)); | 1605 unittest.expect(o, unittest.hasLength(2)); |
1515 unittest.expect(o["x"], unittest.equals('foo')); | 1606 unittest.expect(o["x"], unittest.equals('foo')); |
1516 unittest.expect(o["y"], unittest.equals('foo')); | 1607 unittest.expect(o["y"], unittest.equals('foo')); |
1517 } | 1608 } |
1518 | 1609 |
1519 core.int buildCounterLaunchTemplateParameters = 0; | 1610 core.int buildCounterLaunchTemplateParameters = 0; |
1520 buildLaunchTemplateParameters() { | 1611 buildLaunchTemplateParameters() { |
1521 var o = new api.LaunchTemplateParameters(); | 1612 var o = new api.LaunchTemplateParameters(); |
1522 buildCounterLaunchTemplateParameters++; | 1613 buildCounterLaunchTemplateParameters++; |
1523 if (buildCounterLaunchTemplateParameters < 3) { | 1614 if (buildCounterLaunchTemplateParameters < 3) { |
1524 o.environment = buildRuntimeEnvironment(); | 1615 o.environment = buildRuntimeEnvironment(); |
1525 o.jobName = "foo"; | 1616 o.jobName = "foo"; |
1526 o.parameters = buildUnnamed3119(); | 1617 o.parameters = buildUnnamed3112(); |
1527 } | 1618 } |
1528 buildCounterLaunchTemplateParameters--; | 1619 buildCounterLaunchTemplateParameters--; |
1529 return o; | 1620 return o; |
1530 } | 1621 } |
1531 | 1622 |
1532 checkLaunchTemplateParameters(api.LaunchTemplateParameters o) { | 1623 checkLaunchTemplateParameters(api.LaunchTemplateParameters o) { |
1533 buildCounterLaunchTemplateParameters++; | 1624 buildCounterLaunchTemplateParameters++; |
1534 if (buildCounterLaunchTemplateParameters < 3) { | 1625 if (buildCounterLaunchTemplateParameters < 3) { |
1535 checkRuntimeEnvironment(o.environment); | 1626 checkRuntimeEnvironment(o.environment); |
1536 unittest.expect(o.jobName, unittest.equals('foo')); | 1627 unittest.expect(o.jobName, unittest.equals('foo')); |
1537 checkUnnamed3119(o.parameters); | 1628 checkUnnamed3112(o.parameters); |
1538 } | 1629 } |
1539 buildCounterLaunchTemplateParameters--; | 1630 buildCounterLaunchTemplateParameters--; |
1540 } | 1631 } |
1541 | 1632 |
1542 core.int buildCounterLaunchTemplateResponse = 0; | 1633 core.int buildCounterLaunchTemplateResponse = 0; |
1543 buildLaunchTemplateResponse() { | 1634 buildLaunchTemplateResponse() { |
1544 var o = new api.LaunchTemplateResponse(); | 1635 var o = new api.LaunchTemplateResponse(); |
1545 buildCounterLaunchTemplateResponse++; | 1636 buildCounterLaunchTemplateResponse++; |
1546 if (buildCounterLaunchTemplateResponse < 3) { | 1637 if (buildCounterLaunchTemplateResponse < 3) { |
1547 o.job = buildJob(); | 1638 o.job = buildJob(); |
1548 } | 1639 } |
1549 buildCounterLaunchTemplateResponse--; | 1640 buildCounterLaunchTemplateResponse--; |
1550 return o; | 1641 return o; |
1551 } | 1642 } |
1552 | 1643 |
1553 checkLaunchTemplateResponse(api.LaunchTemplateResponse o) { | 1644 checkLaunchTemplateResponse(api.LaunchTemplateResponse o) { |
1554 buildCounterLaunchTemplateResponse++; | 1645 buildCounterLaunchTemplateResponse++; |
1555 if (buildCounterLaunchTemplateResponse < 3) { | 1646 if (buildCounterLaunchTemplateResponse < 3) { |
1556 checkJob(o.job); | 1647 checkJob(o.job); |
1557 } | 1648 } |
1558 buildCounterLaunchTemplateResponse--; | 1649 buildCounterLaunchTemplateResponse--; |
1559 } | 1650 } |
1560 | 1651 |
1561 buildUnnamed3120() { | 1652 buildUnnamed3113() { |
1562 var o = new core.List<core.String>(); | 1653 var o = new core.List<core.String>(); |
1563 o.add("foo"); | 1654 o.add("foo"); |
1564 o.add("foo"); | 1655 o.add("foo"); |
1565 return o; | 1656 return o; |
1566 } | 1657 } |
1567 | 1658 |
1568 checkUnnamed3120(core.List<core.String> o) { | 1659 checkUnnamed3113(core.List<core.String> o) { |
1569 unittest.expect(o, unittest.hasLength(2)); | 1660 unittest.expect(o, unittest.hasLength(2)); |
1570 unittest.expect(o[0], unittest.equals('foo')); | 1661 unittest.expect(o[0], unittest.equals('foo')); |
1571 unittest.expect(o[1], unittest.equals('foo')); | 1662 unittest.expect(o[1], unittest.equals('foo')); |
1572 } | 1663 } |
1573 | 1664 |
1574 buildUnnamed3121() { | 1665 buildUnnamed3114() { |
1575 var o = new core.List<core.String>(); | 1666 var o = new core.List<core.String>(); |
1576 o.add("foo"); | 1667 o.add("foo"); |
1577 o.add("foo"); | 1668 o.add("foo"); |
1578 return o; | 1669 return o; |
1579 } | 1670 } |
1580 | 1671 |
1581 checkUnnamed3121(core.List<core.String> o) { | 1672 checkUnnamed3114(core.List<core.String> o) { |
1582 unittest.expect(o, unittest.hasLength(2)); | 1673 unittest.expect(o, unittest.hasLength(2)); |
1583 unittest.expect(o[0], unittest.equals('foo')); | 1674 unittest.expect(o[0], unittest.equals('foo')); |
1584 unittest.expect(o[1], unittest.equals('foo')); | 1675 unittest.expect(o[1], unittest.equals('foo')); |
1585 } | 1676 } |
1586 | 1677 |
1587 core.int buildCounterLeaseWorkItemRequest = 0; | 1678 core.int buildCounterLeaseWorkItemRequest = 0; |
1588 buildLeaseWorkItemRequest() { | 1679 buildLeaseWorkItemRequest() { |
1589 var o = new api.LeaseWorkItemRequest(); | 1680 var o = new api.LeaseWorkItemRequest(); |
1590 buildCounterLeaseWorkItemRequest++; | 1681 buildCounterLeaseWorkItemRequest++; |
1591 if (buildCounterLeaseWorkItemRequest < 3) { | 1682 if (buildCounterLeaseWorkItemRequest < 3) { |
1592 o.currentWorkerTime = "foo"; | 1683 o.currentWorkerTime = "foo"; |
1593 o.location = "foo"; | 1684 o.location = "foo"; |
1594 o.requestedLeaseDuration = "foo"; | 1685 o.requestedLeaseDuration = "foo"; |
1595 o.workItemTypes = buildUnnamed3120(); | 1686 o.workItemTypes = buildUnnamed3113(); |
1596 o.workerCapabilities = buildUnnamed3121(); | 1687 o.workerCapabilities = buildUnnamed3114(); |
1597 o.workerId = "foo"; | 1688 o.workerId = "foo"; |
1598 } | 1689 } |
1599 buildCounterLeaseWorkItemRequest--; | 1690 buildCounterLeaseWorkItemRequest--; |
1600 return o; | 1691 return o; |
1601 } | 1692 } |
1602 | 1693 |
1603 checkLeaseWorkItemRequest(api.LeaseWorkItemRequest o) { | 1694 checkLeaseWorkItemRequest(api.LeaseWorkItemRequest o) { |
1604 buildCounterLeaseWorkItemRequest++; | 1695 buildCounterLeaseWorkItemRequest++; |
1605 if (buildCounterLeaseWorkItemRequest < 3) { | 1696 if (buildCounterLeaseWorkItemRequest < 3) { |
1606 unittest.expect(o.currentWorkerTime, unittest.equals('foo')); | 1697 unittest.expect(o.currentWorkerTime, unittest.equals('foo')); |
1607 unittest.expect(o.location, unittest.equals('foo')); | 1698 unittest.expect(o.location, unittest.equals('foo')); |
1608 unittest.expect(o.requestedLeaseDuration, unittest.equals('foo')); | 1699 unittest.expect(o.requestedLeaseDuration, unittest.equals('foo')); |
1609 checkUnnamed3120(o.workItemTypes); | 1700 checkUnnamed3113(o.workItemTypes); |
1610 checkUnnamed3121(o.workerCapabilities); | 1701 checkUnnamed3114(o.workerCapabilities); |
1611 unittest.expect(o.workerId, unittest.equals('foo')); | 1702 unittest.expect(o.workerId, unittest.equals('foo')); |
1612 } | 1703 } |
1613 buildCounterLeaseWorkItemRequest--; | 1704 buildCounterLeaseWorkItemRequest--; |
1614 } | 1705 } |
1615 | 1706 |
1616 buildUnnamed3122() { | 1707 buildUnnamed3115() { |
1617 var o = new core.List<api.WorkItem>(); | 1708 var o = new core.List<api.WorkItem>(); |
1618 o.add(buildWorkItem()); | 1709 o.add(buildWorkItem()); |
1619 o.add(buildWorkItem()); | 1710 o.add(buildWorkItem()); |
1620 return o; | 1711 return o; |
1621 } | 1712 } |
1622 | 1713 |
1623 checkUnnamed3122(core.List<api.WorkItem> o) { | 1714 checkUnnamed3115(core.List<api.WorkItem> o) { |
1624 unittest.expect(o, unittest.hasLength(2)); | 1715 unittest.expect(o, unittest.hasLength(2)); |
1625 checkWorkItem(o[0]); | 1716 checkWorkItem(o[0]); |
1626 checkWorkItem(o[1]); | 1717 checkWorkItem(o[1]); |
1627 } | 1718 } |
1628 | 1719 |
1629 core.int buildCounterLeaseWorkItemResponse = 0; | 1720 core.int buildCounterLeaseWorkItemResponse = 0; |
1630 buildLeaseWorkItemResponse() { | 1721 buildLeaseWorkItemResponse() { |
1631 var o = new api.LeaseWorkItemResponse(); | 1722 var o = new api.LeaseWorkItemResponse(); |
1632 buildCounterLeaseWorkItemResponse++; | 1723 buildCounterLeaseWorkItemResponse++; |
1633 if (buildCounterLeaseWorkItemResponse < 3) { | 1724 if (buildCounterLeaseWorkItemResponse < 3) { |
1634 o.workItems = buildUnnamed3122(); | 1725 o.workItems = buildUnnamed3115(); |
1635 } | 1726 } |
1636 buildCounterLeaseWorkItemResponse--; | 1727 buildCounterLeaseWorkItemResponse--; |
1637 return o; | 1728 return o; |
1638 } | 1729 } |
1639 | 1730 |
1640 checkLeaseWorkItemResponse(api.LeaseWorkItemResponse o) { | 1731 checkLeaseWorkItemResponse(api.LeaseWorkItemResponse o) { |
1641 buildCounterLeaseWorkItemResponse++; | 1732 buildCounterLeaseWorkItemResponse++; |
1642 if (buildCounterLeaseWorkItemResponse < 3) { | 1733 if (buildCounterLeaseWorkItemResponse < 3) { |
1643 checkUnnamed3122(o.workItems); | 1734 checkUnnamed3115(o.workItems); |
1644 } | 1735 } |
1645 buildCounterLeaseWorkItemResponse--; | 1736 buildCounterLeaseWorkItemResponse--; |
1646 } | 1737 } |
1647 | 1738 |
1648 buildUnnamed3123() { | 1739 buildUnnamed3116() { |
1649 var o = new core.List<api.AutoscalingEvent>(); | 1740 var o = new core.List<api.AutoscalingEvent>(); |
1650 o.add(buildAutoscalingEvent()); | 1741 o.add(buildAutoscalingEvent()); |
1651 o.add(buildAutoscalingEvent()); | 1742 o.add(buildAutoscalingEvent()); |
1652 return o; | 1743 return o; |
1653 } | 1744 } |
1654 | 1745 |
1655 checkUnnamed3123(core.List<api.AutoscalingEvent> o) { | 1746 checkUnnamed3116(core.List<api.AutoscalingEvent> o) { |
1656 unittest.expect(o, unittest.hasLength(2)); | 1747 unittest.expect(o, unittest.hasLength(2)); |
1657 checkAutoscalingEvent(o[0]); | 1748 checkAutoscalingEvent(o[0]); |
1658 checkAutoscalingEvent(o[1]); | 1749 checkAutoscalingEvent(o[1]); |
1659 } | 1750 } |
1660 | 1751 |
1661 buildUnnamed3124() { | 1752 buildUnnamed3117() { |
1662 var o = new core.List<api.JobMessage>(); | 1753 var o = new core.List<api.JobMessage>(); |
1663 o.add(buildJobMessage()); | 1754 o.add(buildJobMessage()); |
1664 o.add(buildJobMessage()); | 1755 o.add(buildJobMessage()); |
1665 return o; | 1756 return o; |
1666 } | 1757 } |
1667 | 1758 |
1668 checkUnnamed3124(core.List<api.JobMessage> o) { | 1759 checkUnnamed3117(core.List<api.JobMessage> o) { |
1669 unittest.expect(o, unittest.hasLength(2)); | 1760 unittest.expect(o, unittest.hasLength(2)); |
1670 checkJobMessage(o[0]); | 1761 checkJobMessage(o[0]); |
1671 checkJobMessage(o[1]); | 1762 checkJobMessage(o[1]); |
1672 } | 1763 } |
1673 | 1764 |
1674 core.int buildCounterListJobMessagesResponse = 0; | 1765 core.int buildCounterListJobMessagesResponse = 0; |
1675 buildListJobMessagesResponse() { | 1766 buildListJobMessagesResponse() { |
1676 var o = new api.ListJobMessagesResponse(); | 1767 var o = new api.ListJobMessagesResponse(); |
1677 buildCounterListJobMessagesResponse++; | 1768 buildCounterListJobMessagesResponse++; |
1678 if (buildCounterListJobMessagesResponse < 3) { | 1769 if (buildCounterListJobMessagesResponse < 3) { |
1679 o.autoscalingEvents = buildUnnamed3123(); | 1770 o.autoscalingEvents = buildUnnamed3116(); |
1680 o.jobMessages = buildUnnamed3124(); | 1771 o.jobMessages = buildUnnamed3117(); |
1681 o.nextPageToken = "foo"; | 1772 o.nextPageToken = "foo"; |
1682 } | 1773 } |
1683 buildCounterListJobMessagesResponse--; | 1774 buildCounterListJobMessagesResponse--; |
1684 return o; | 1775 return o; |
1685 } | 1776 } |
1686 | 1777 |
1687 checkListJobMessagesResponse(api.ListJobMessagesResponse o) { | 1778 checkListJobMessagesResponse(api.ListJobMessagesResponse o) { |
1688 buildCounterListJobMessagesResponse++; | 1779 buildCounterListJobMessagesResponse++; |
1689 if (buildCounterListJobMessagesResponse < 3) { | 1780 if (buildCounterListJobMessagesResponse < 3) { |
1690 checkUnnamed3123(o.autoscalingEvents); | 1781 checkUnnamed3116(o.autoscalingEvents); |
1691 checkUnnamed3124(o.jobMessages); | 1782 checkUnnamed3117(o.jobMessages); |
1692 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1783 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1693 } | 1784 } |
1694 buildCounterListJobMessagesResponse--; | 1785 buildCounterListJobMessagesResponse--; |
1695 } | 1786 } |
1696 | 1787 |
1697 buildUnnamed3125() { | 1788 buildUnnamed3118() { |
1698 var o = new core.List<api.FailedLocation>(); | 1789 var o = new core.List<api.FailedLocation>(); |
1699 o.add(buildFailedLocation()); | 1790 o.add(buildFailedLocation()); |
1700 o.add(buildFailedLocation()); | 1791 o.add(buildFailedLocation()); |
1701 return o; | 1792 return o; |
1702 } | 1793 } |
1703 | 1794 |
1704 checkUnnamed3125(core.List<api.FailedLocation> o) { | 1795 checkUnnamed3118(core.List<api.FailedLocation> o) { |
1705 unittest.expect(o, unittest.hasLength(2)); | 1796 unittest.expect(o, unittest.hasLength(2)); |
1706 checkFailedLocation(o[0]); | 1797 checkFailedLocation(o[0]); |
1707 checkFailedLocation(o[1]); | 1798 checkFailedLocation(o[1]); |
1708 } | 1799 } |
1709 | 1800 |
1710 buildUnnamed3126() { | 1801 buildUnnamed3119() { |
1711 var o = new core.List<api.Job>(); | 1802 var o = new core.List<api.Job>(); |
1712 o.add(buildJob()); | 1803 o.add(buildJob()); |
1713 o.add(buildJob()); | 1804 o.add(buildJob()); |
1714 return o; | 1805 return o; |
1715 } | 1806 } |
1716 | 1807 |
1717 checkUnnamed3126(core.List<api.Job> o) { | 1808 checkUnnamed3119(core.List<api.Job> o) { |
1718 unittest.expect(o, unittest.hasLength(2)); | 1809 unittest.expect(o, unittest.hasLength(2)); |
1719 checkJob(o[0]); | 1810 checkJob(o[0]); |
1720 checkJob(o[1]); | 1811 checkJob(o[1]); |
1721 } | 1812 } |
1722 | 1813 |
1723 core.int buildCounterListJobsResponse = 0; | 1814 core.int buildCounterListJobsResponse = 0; |
1724 buildListJobsResponse() { | 1815 buildListJobsResponse() { |
1725 var o = new api.ListJobsResponse(); | 1816 var o = new api.ListJobsResponse(); |
1726 buildCounterListJobsResponse++; | 1817 buildCounterListJobsResponse++; |
1727 if (buildCounterListJobsResponse < 3) { | 1818 if (buildCounterListJobsResponse < 3) { |
1728 o.failedLocation = buildUnnamed3125(); | 1819 o.failedLocation = buildUnnamed3118(); |
1729 o.jobs = buildUnnamed3126(); | 1820 o.jobs = buildUnnamed3119(); |
1730 o.nextPageToken = "foo"; | 1821 o.nextPageToken = "foo"; |
1731 } | 1822 } |
1732 buildCounterListJobsResponse--; | 1823 buildCounterListJobsResponse--; |
1733 return o; | 1824 return o; |
1734 } | 1825 } |
1735 | 1826 |
1736 checkListJobsResponse(api.ListJobsResponse o) { | 1827 checkListJobsResponse(api.ListJobsResponse o) { |
1737 buildCounterListJobsResponse++; | 1828 buildCounterListJobsResponse++; |
1738 if (buildCounterListJobsResponse < 3) { | 1829 if (buildCounterListJobsResponse < 3) { |
1739 checkUnnamed3125(o.failedLocation); | 1830 checkUnnamed3118(o.failedLocation); |
1740 checkUnnamed3126(o.jobs); | 1831 checkUnnamed3119(o.jobs); |
1741 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1832 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1742 } | 1833 } |
1743 buildCounterListJobsResponse--; | 1834 buildCounterListJobsResponse--; |
1744 } | 1835 } |
1745 | 1836 |
1746 core.int buildCounterLogBucket = 0; | 1837 core.int buildCounterLogBucket = 0; |
1747 buildLogBucket() { | 1838 buildLogBucket() { |
1748 var o = new api.LogBucket(); | 1839 var o = new api.LogBucket(); |
1749 buildCounterLogBucket++; | 1840 buildCounterLogBucket++; |
1750 if (buildCounterLogBucket < 3) { | 1841 if (buildCounterLogBucket < 3) { |
1751 o.count = "foo"; | 1842 o.count = "foo"; |
1752 o.log = 42; | 1843 o.log = 42; |
1753 } | 1844 } |
1754 buildCounterLogBucket--; | 1845 buildCounterLogBucket--; |
1755 return o; | 1846 return o; |
1756 } | 1847 } |
1757 | 1848 |
1758 checkLogBucket(api.LogBucket o) { | 1849 checkLogBucket(api.LogBucket o) { |
1759 buildCounterLogBucket++; | 1850 buildCounterLogBucket++; |
1760 if (buildCounterLogBucket < 3) { | 1851 if (buildCounterLogBucket < 3) { |
1761 unittest.expect(o.count, unittest.equals('foo')); | 1852 unittest.expect(o.count, unittest.equals('foo')); |
1762 unittest.expect(o.log, unittest.equals(42)); | 1853 unittest.expect(o.log, unittest.equals(42)); |
1763 } | 1854 } |
1764 buildCounterLogBucket--; | 1855 buildCounterLogBucket--; |
1765 } | 1856 } |
1766 | 1857 |
1767 buildUnnamed3127() { | 1858 buildUnnamed3120() { |
1768 var o = new core.List<api.ParallelInstruction>(); | 1859 var o = new core.List<api.ParallelInstruction>(); |
1769 o.add(buildParallelInstruction()); | 1860 o.add(buildParallelInstruction()); |
1770 o.add(buildParallelInstruction()); | 1861 o.add(buildParallelInstruction()); |
1771 return o; | 1862 return o; |
1772 } | 1863 } |
1773 | 1864 |
1774 checkUnnamed3127(core.List<api.ParallelInstruction> o) { | 1865 checkUnnamed3120(core.List<api.ParallelInstruction> o) { |
1775 unittest.expect(o, unittest.hasLength(2)); | 1866 unittest.expect(o, unittest.hasLength(2)); |
1776 checkParallelInstruction(o[0]); | 1867 checkParallelInstruction(o[0]); |
1777 checkParallelInstruction(o[1]); | 1868 checkParallelInstruction(o[1]); |
1778 } | 1869 } |
1779 | 1870 |
1780 core.int buildCounterMapTask = 0; | 1871 core.int buildCounterMapTask = 0; |
1781 buildMapTask() { | 1872 buildMapTask() { |
1782 var o = new api.MapTask(); | 1873 var o = new api.MapTask(); |
1783 buildCounterMapTask++; | 1874 buildCounterMapTask++; |
1784 if (buildCounterMapTask < 3) { | 1875 if (buildCounterMapTask < 3) { |
1785 o.instructions = buildUnnamed3127(); | 1876 o.instructions = buildUnnamed3120(); |
1786 o.stageName = "foo"; | 1877 o.stageName = "foo"; |
1787 o.systemName = "foo"; | 1878 o.systemName = "foo"; |
1788 } | 1879 } |
1789 buildCounterMapTask--; | 1880 buildCounterMapTask--; |
1790 return o; | 1881 return o; |
1791 } | 1882 } |
1792 | 1883 |
1793 checkMapTask(api.MapTask o) { | 1884 checkMapTask(api.MapTask o) { |
1794 buildCounterMapTask++; | 1885 buildCounterMapTask++; |
1795 if (buildCounterMapTask < 3) { | 1886 if (buildCounterMapTask < 3) { |
1796 checkUnnamed3127(o.instructions); | 1887 checkUnnamed3120(o.instructions); |
1797 unittest.expect(o.stageName, unittest.equals('foo')); | 1888 unittest.expect(o.stageName, unittest.equals('foo')); |
1798 unittest.expect(o.systemName, unittest.equals('foo')); | 1889 unittest.expect(o.systemName, unittest.equals('foo')); |
1799 } | 1890 } |
1800 buildCounterMapTask--; | 1891 buildCounterMapTask--; |
1801 } | 1892 } |
1802 | 1893 |
1803 core.int buildCounterMetricShortId = 0; | 1894 core.int buildCounterMetricShortId = 0; |
1804 buildMetricShortId() { | 1895 buildMetricShortId() { |
1805 var o = new api.MetricShortId(); | 1896 var o = new api.MetricShortId(); |
1806 buildCounterMetricShortId++; | 1897 buildCounterMetricShortId++; |
1807 if (buildCounterMetricShortId < 3) { | 1898 if (buildCounterMetricShortId < 3) { |
1808 o.metricIndex = 42; | 1899 o.metricIndex = 42; |
1809 o.shortId = "foo"; | 1900 o.shortId = "foo"; |
1810 } | 1901 } |
1811 buildCounterMetricShortId--; | 1902 buildCounterMetricShortId--; |
1812 return o; | 1903 return o; |
1813 } | 1904 } |
1814 | 1905 |
1815 checkMetricShortId(api.MetricShortId o) { | 1906 checkMetricShortId(api.MetricShortId o) { |
1816 buildCounterMetricShortId++; | 1907 buildCounterMetricShortId++; |
1817 if (buildCounterMetricShortId < 3) { | 1908 if (buildCounterMetricShortId < 3) { |
1818 unittest.expect(o.metricIndex, unittest.equals(42)); | 1909 unittest.expect(o.metricIndex, unittest.equals(42)); |
1819 unittest.expect(o.shortId, unittest.equals('foo')); | 1910 unittest.expect(o.shortId, unittest.equals('foo')); |
1820 } | 1911 } |
1821 buildCounterMetricShortId--; | 1912 buildCounterMetricShortId--; |
1822 } | 1913 } |
1823 | 1914 |
1824 buildUnnamed3128() { | 1915 buildUnnamed3121() { |
1825 var o = new core.Map<core.String, core.String>(); | 1916 var o = new core.Map<core.String, core.String>(); |
1826 o["x"] = "foo"; | 1917 o["x"] = "foo"; |
1827 o["y"] = "foo"; | 1918 o["y"] = "foo"; |
1828 return o; | 1919 return o; |
1829 } | 1920 } |
1830 | 1921 |
1831 checkUnnamed3128(core.Map<core.String, core.String> o) { | 1922 checkUnnamed3121(core.Map<core.String, core.String> o) { |
1832 unittest.expect(o, unittest.hasLength(2)); | 1923 unittest.expect(o, unittest.hasLength(2)); |
1833 unittest.expect(o["x"], unittest.equals('foo')); | 1924 unittest.expect(o["x"], unittest.equals('foo')); |
1834 unittest.expect(o["y"], unittest.equals('foo')); | 1925 unittest.expect(o["y"], unittest.equals('foo')); |
1835 } | 1926 } |
1836 | 1927 |
1837 core.int buildCounterMetricStructuredName = 0; | 1928 core.int buildCounterMetricStructuredName = 0; |
1838 buildMetricStructuredName() { | 1929 buildMetricStructuredName() { |
1839 var o = new api.MetricStructuredName(); | 1930 var o = new api.MetricStructuredName(); |
1840 buildCounterMetricStructuredName++; | 1931 buildCounterMetricStructuredName++; |
1841 if (buildCounterMetricStructuredName < 3) { | 1932 if (buildCounterMetricStructuredName < 3) { |
1842 o.context = buildUnnamed3128(); | 1933 o.context = buildUnnamed3121(); |
1843 o.name = "foo"; | 1934 o.name = "foo"; |
1844 o.origin = "foo"; | 1935 o.origin = "foo"; |
1845 } | 1936 } |
1846 buildCounterMetricStructuredName--; | 1937 buildCounterMetricStructuredName--; |
1847 return o; | 1938 return o; |
1848 } | 1939 } |
1849 | 1940 |
1850 checkMetricStructuredName(api.MetricStructuredName o) { | 1941 checkMetricStructuredName(api.MetricStructuredName o) { |
1851 buildCounterMetricStructuredName++; | 1942 buildCounterMetricStructuredName++; |
1852 if (buildCounterMetricStructuredName < 3) { | 1943 if (buildCounterMetricStructuredName < 3) { |
1853 checkUnnamed3128(o.context); | 1944 checkUnnamed3121(o.context); |
1854 unittest.expect(o.name, unittest.equals('foo')); | 1945 unittest.expect(o.name, unittest.equals('foo')); |
1855 unittest.expect(o.origin, unittest.equals('foo')); | 1946 unittest.expect(o.origin, unittest.equals('foo')); |
1856 } | 1947 } |
1857 buildCounterMetricStructuredName--; | 1948 buildCounterMetricStructuredName--; |
1858 } | 1949 } |
1859 | 1950 |
1860 core.int buildCounterMetricUpdate = 0; | 1951 core.int buildCounterMetricUpdate = 0; |
1861 buildMetricUpdate() { | 1952 buildMetricUpdate() { |
1862 var o = new api.MetricUpdate(); | 1953 var o = new api.MetricUpdate(); |
1863 buildCounterMetricUpdate++; | 1954 buildCounterMetricUpdate++; |
1864 if (buildCounterMetricUpdate < 3) { | 1955 if (buildCounterMetricUpdate < 3) { |
1865 o.cumulative = true; | 1956 o.cumulative = true; |
1866 o.distribution = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1957 o.distribution = { |
1867 o.internal = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1958 'list': [1, 2, 3], |
| 1959 'bool': true, |
| 1960 'string': 'foo' |
| 1961 }; |
| 1962 o.internal = { |
| 1963 'list': [1, 2, 3], |
| 1964 'bool': true, |
| 1965 'string': 'foo' |
| 1966 }; |
1868 o.kind = "foo"; | 1967 o.kind = "foo"; |
1869 o.meanCount = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1968 o.meanCount = { |
1870 o.meanSum = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1969 'list': [1, 2, 3], |
| 1970 'bool': true, |
| 1971 'string': 'foo' |
| 1972 }; |
| 1973 o.meanSum = { |
| 1974 'list': [1, 2, 3], |
| 1975 'bool': true, |
| 1976 'string': 'foo' |
| 1977 }; |
1871 o.name = buildMetricStructuredName(); | 1978 o.name = buildMetricStructuredName(); |
1872 o.scalar = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1979 o.scalar = { |
1873 o.set = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1980 'list': [1, 2, 3], |
| 1981 'bool': true, |
| 1982 'string': 'foo' |
| 1983 }; |
| 1984 o.set = { |
| 1985 'list': [1, 2, 3], |
| 1986 'bool': true, |
| 1987 'string': 'foo' |
| 1988 }; |
1874 o.updateTime = "foo"; | 1989 o.updateTime = "foo"; |
1875 } | 1990 } |
1876 buildCounterMetricUpdate--; | 1991 buildCounterMetricUpdate--; |
1877 return o; | 1992 return o; |
1878 } | 1993 } |
1879 | 1994 |
1880 checkMetricUpdate(api.MetricUpdate o) { | 1995 checkMetricUpdate(api.MetricUpdate o) { |
1881 buildCounterMetricUpdate++; | 1996 buildCounterMetricUpdate++; |
1882 if (buildCounterMetricUpdate < 3) { | 1997 if (buildCounterMetricUpdate < 3) { |
1883 unittest.expect(o.cumulative, unittest.isTrue); | 1998 unittest.expect(o.cumulative, unittest.isTrue); |
1884 var casted12 = (o.distribution) as core.Map; unittest.expect(casted12, unitt
est.hasLength(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3]))
; unittest.expect(casted12["bool"], unittest.equals(true)); unittest.expect(cast
ed12["string"], unittest.equals('foo')); | 1999 var casted12 = (o.distribution) as core.Map; |
1885 var casted13 = (o.internal) as core.Map; unittest.expect(casted13, unittest.
hasLength(3)); unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); un
ittest.expect(casted13["bool"], unittest.equals(true)); unittest.expect(casted13
["string"], unittest.equals('foo')); | 2000 unittest.expect(casted12, unittest.hasLength(3)); |
| 2001 unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); |
| 2002 unittest.expect(casted12["bool"], unittest.equals(true)); |
| 2003 unittest.expect(casted12["string"], unittest.equals('foo')); |
| 2004 var casted13 = (o.internal) as core.Map; |
| 2005 unittest.expect(casted13, unittest.hasLength(3)); |
| 2006 unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); |
| 2007 unittest.expect(casted13["bool"], unittest.equals(true)); |
| 2008 unittest.expect(casted13["string"], unittest.equals('foo')); |
1886 unittest.expect(o.kind, unittest.equals('foo')); | 2009 unittest.expect(o.kind, unittest.equals('foo')); |
1887 var casted14 = (o.meanCount) as core.Map; unittest.expect(casted14, unittest
.hasLength(3)); unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); u
nittest.expect(casted14["bool"], unittest.equals(true)); unittest.expect(casted1
4["string"], unittest.equals('foo')); | 2010 var casted14 = (o.meanCount) as core.Map; |
1888 var casted15 = (o.meanSum) as core.Map; unittest.expect(casted15, unittest.h
asLength(3)); unittest.expect(casted15["list"], unittest.equals([1, 2, 3])); uni
ttest.expect(casted15["bool"], unittest.equals(true)); unittest.expect(casted15[
"string"], unittest.equals('foo')); | 2011 unittest.expect(casted14, unittest.hasLength(3)); |
| 2012 unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); |
| 2013 unittest.expect(casted14["bool"], unittest.equals(true)); |
| 2014 unittest.expect(casted14["string"], unittest.equals('foo')); |
| 2015 var casted15 = (o.meanSum) as core.Map; |
| 2016 unittest.expect(casted15, unittest.hasLength(3)); |
| 2017 unittest.expect(casted15["list"], unittest.equals([1, 2, 3])); |
| 2018 unittest.expect(casted15["bool"], unittest.equals(true)); |
| 2019 unittest.expect(casted15["string"], unittest.equals('foo')); |
1889 checkMetricStructuredName(o.name); | 2020 checkMetricStructuredName(o.name); |
1890 var casted16 = (o.scalar) as core.Map; unittest.expect(casted16, unittest.ha
sLength(3)); unittest.expect(casted16["list"], unittest.equals([1, 2, 3])); unit
test.expect(casted16["bool"], unittest.equals(true)); unittest.expect(casted16["
string"], unittest.equals('foo')); | 2021 var casted16 = (o.scalar) as core.Map; |
1891 var casted17 = (o.set) as core.Map; unittest.expect(casted17, unittest.hasLe
ngth(3)); unittest.expect(casted17["list"], unittest.equals([1, 2, 3])); unittes
t.expect(casted17["bool"], unittest.equals(true)); unittest.expect(casted17["str
ing"], unittest.equals('foo')); | 2022 unittest.expect(casted16, unittest.hasLength(3)); |
| 2023 unittest.expect(casted16["list"], unittest.equals([1, 2, 3])); |
| 2024 unittest.expect(casted16["bool"], unittest.equals(true)); |
| 2025 unittest.expect(casted16["string"], unittest.equals('foo')); |
| 2026 var casted17 = (o.set) as core.Map; |
| 2027 unittest.expect(casted17, unittest.hasLength(3)); |
| 2028 unittest.expect(casted17["list"], unittest.equals([1, 2, 3])); |
| 2029 unittest.expect(casted17["bool"], unittest.equals(true)); |
| 2030 unittest.expect(casted17["string"], unittest.equals('foo')); |
1892 unittest.expect(o.updateTime, unittest.equals('foo')); | 2031 unittest.expect(o.updateTime, unittest.equals('foo')); |
1893 } | 2032 } |
1894 buildCounterMetricUpdate--; | 2033 buildCounterMetricUpdate--; |
1895 } | 2034 } |
1896 | 2035 |
1897 core.int buildCounterMountedDataDisk = 0; | 2036 core.int buildCounterMountedDataDisk = 0; |
1898 buildMountedDataDisk() { | 2037 buildMountedDataDisk() { |
1899 var o = new api.MountedDataDisk(); | 2038 var o = new api.MountedDataDisk(); |
1900 buildCounterMountedDataDisk++; | 2039 buildCounterMountedDataDisk++; |
1901 if (buildCounterMountedDataDisk < 3) { | 2040 if (buildCounterMountedDataDisk < 3) { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1967 | 2106 |
1968 checkPackage(api.Package o) { | 2107 checkPackage(api.Package o) { |
1969 buildCounterPackage++; | 2108 buildCounterPackage++; |
1970 if (buildCounterPackage < 3) { | 2109 if (buildCounterPackage < 3) { |
1971 unittest.expect(o.location, unittest.equals('foo')); | 2110 unittest.expect(o.location, unittest.equals('foo')); |
1972 unittest.expect(o.name, unittest.equals('foo')); | 2111 unittest.expect(o.name, unittest.equals('foo')); |
1973 } | 2112 } |
1974 buildCounterPackage--; | 2113 buildCounterPackage--; |
1975 } | 2114 } |
1976 | 2115 |
1977 buildUnnamed3129() { | 2116 buildUnnamed3122() { |
1978 var o = new core.List<api.MultiOutputInfo>(); | 2117 var o = new core.List<api.MultiOutputInfo>(); |
1979 o.add(buildMultiOutputInfo()); | 2118 o.add(buildMultiOutputInfo()); |
1980 o.add(buildMultiOutputInfo()); | 2119 o.add(buildMultiOutputInfo()); |
1981 return o; | 2120 return o; |
1982 } | 2121 } |
1983 | 2122 |
1984 checkUnnamed3129(core.List<api.MultiOutputInfo> o) { | 2123 checkUnnamed3122(core.List<api.MultiOutputInfo> o) { |
1985 unittest.expect(o, unittest.hasLength(2)); | 2124 unittest.expect(o, unittest.hasLength(2)); |
1986 checkMultiOutputInfo(o[0]); | 2125 checkMultiOutputInfo(o[0]); |
1987 checkMultiOutputInfo(o[1]); | 2126 checkMultiOutputInfo(o[1]); |
1988 } | 2127 } |
1989 | 2128 |
1990 buildUnnamed3130() { | 2129 buildUnnamed3123() { |
1991 var o = new core.List<api.SideInputInfo>(); | 2130 var o = new core.List<api.SideInputInfo>(); |
1992 o.add(buildSideInputInfo()); | 2131 o.add(buildSideInputInfo()); |
1993 o.add(buildSideInputInfo()); | 2132 o.add(buildSideInputInfo()); |
1994 return o; | 2133 return o; |
1995 } | 2134 } |
1996 | 2135 |
1997 checkUnnamed3130(core.List<api.SideInputInfo> o) { | 2136 checkUnnamed3123(core.List<api.SideInputInfo> o) { |
1998 unittest.expect(o, unittest.hasLength(2)); | 2137 unittest.expect(o, unittest.hasLength(2)); |
1999 checkSideInputInfo(o[0]); | 2138 checkSideInputInfo(o[0]); |
2000 checkSideInputInfo(o[1]); | 2139 checkSideInputInfo(o[1]); |
2001 } | 2140 } |
2002 | 2141 |
2003 buildUnnamed3131() { | 2142 buildUnnamed3124() { |
2004 var o = new core.Map<core.String, core.Object>(); | 2143 var o = new core.Map<core.String, core.Object>(); |
2005 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2144 o["x"] = { |
2006 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2145 'list': [1, 2, 3], |
| 2146 'bool': true, |
| 2147 'string': 'foo' |
| 2148 }; |
| 2149 o["y"] = { |
| 2150 'list': [1, 2, 3], |
| 2151 'bool': true, |
| 2152 'string': 'foo' |
| 2153 }; |
2007 return o; | 2154 return o; |
2008 } | 2155 } |
2009 | 2156 |
2010 checkUnnamed3131(core.Map<core.String, core.Object> o) { | 2157 checkUnnamed3124(core.Map<core.String, core.Object> o) { |
2011 unittest.expect(o, unittest.hasLength(2)); | 2158 unittest.expect(o, unittest.hasLength(2)); |
2012 var casted18 = (o["x"]) as core.Map; unittest.expect(casted18, unittest.hasLen
gth(3)); unittest.expect(casted18["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted18["bool"], unittest.equals(true)); unittest.expect(casted18["stri
ng"], unittest.equals('foo')); | 2159 var casted18 = (o["x"]) as core.Map; |
2013 var casted19 = (o["y"]) as core.Map; unittest.expect(casted19, unittest.hasLen
gth(3)); unittest.expect(casted19["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted19["bool"], unittest.equals(true)); unittest.expect(casted19["stri
ng"], unittest.equals('foo')); | 2160 unittest.expect(casted18, unittest.hasLength(3)); |
| 2161 unittest.expect(casted18["list"], unittest.equals([1, 2, 3])); |
| 2162 unittest.expect(casted18["bool"], unittest.equals(true)); |
| 2163 unittest.expect(casted18["string"], unittest.equals('foo')); |
| 2164 var casted19 = (o["y"]) as core.Map; |
| 2165 unittest.expect(casted19, unittest.hasLength(3)); |
| 2166 unittest.expect(casted19["list"], unittest.equals([1, 2, 3])); |
| 2167 unittest.expect(casted19["bool"], unittest.equals(true)); |
| 2168 unittest.expect(casted19["string"], unittest.equals('foo')); |
2014 } | 2169 } |
2015 | 2170 |
2016 core.int buildCounterParDoInstruction = 0; | 2171 core.int buildCounterParDoInstruction = 0; |
2017 buildParDoInstruction() { | 2172 buildParDoInstruction() { |
2018 var o = new api.ParDoInstruction(); | 2173 var o = new api.ParDoInstruction(); |
2019 buildCounterParDoInstruction++; | 2174 buildCounterParDoInstruction++; |
2020 if (buildCounterParDoInstruction < 3) { | 2175 if (buildCounterParDoInstruction < 3) { |
2021 o.input = buildInstructionInput(); | 2176 o.input = buildInstructionInput(); |
2022 o.multiOutputInfos = buildUnnamed3129(); | 2177 o.multiOutputInfos = buildUnnamed3122(); |
2023 o.numOutputs = 42; | 2178 o.numOutputs = 42; |
2024 o.sideInputs = buildUnnamed3130(); | 2179 o.sideInputs = buildUnnamed3123(); |
2025 o.userFn = buildUnnamed3131(); | 2180 o.userFn = buildUnnamed3124(); |
2026 } | 2181 } |
2027 buildCounterParDoInstruction--; | 2182 buildCounterParDoInstruction--; |
2028 return o; | 2183 return o; |
2029 } | 2184 } |
2030 | 2185 |
2031 checkParDoInstruction(api.ParDoInstruction o) { | 2186 checkParDoInstruction(api.ParDoInstruction o) { |
2032 buildCounterParDoInstruction++; | 2187 buildCounterParDoInstruction++; |
2033 if (buildCounterParDoInstruction < 3) { | 2188 if (buildCounterParDoInstruction < 3) { |
2034 checkInstructionInput(o.input); | 2189 checkInstructionInput(o.input); |
2035 checkUnnamed3129(o.multiOutputInfos); | 2190 checkUnnamed3122(o.multiOutputInfos); |
2036 unittest.expect(o.numOutputs, unittest.equals(42)); | 2191 unittest.expect(o.numOutputs, unittest.equals(42)); |
2037 checkUnnamed3130(o.sideInputs); | 2192 checkUnnamed3123(o.sideInputs); |
2038 checkUnnamed3131(o.userFn); | 2193 checkUnnamed3124(o.userFn); |
2039 } | 2194 } |
2040 buildCounterParDoInstruction--; | 2195 buildCounterParDoInstruction--; |
2041 } | 2196 } |
2042 | 2197 |
2043 buildUnnamed3132() { | 2198 buildUnnamed3125() { |
2044 var o = new core.List<api.InstructionOutput>(); | 2199 var o = new core.List<api.InstructionOutput>(); |
2045 o.add(buildInstructionOutput()); | 2200 o.add(buildInstructionOutput()); |
2046 o.add(buildInstructionOutput()); | 2201 o.add(buildInstructionOutput()); |
2047 return o; | 2202 return o; |
2048 } | 2203 } |
2049 | 2204 |
2050 checkUnnamed3132(core.List<api.InstructionOutput> o) { | 2205 checkUnnamed3125(core.List<api.InstructionOutput> o) { |
2051 unittest.expect(o, unittest.hasLength(2)); | 2206 unittest.expect(o, unittest.hasLength(2)); |
2052 checkInstructionOutput(o[0]); | 2207 checkInstructionOutput(o[0]); |
2053 checkInstructionOutput(o[1]); | 2208 checkInstructionOutput(o[1]); |
2054 } | 2209 } |
2055 | 2210 |
2056 core.int buildCounterParallelInstruction = 0; | 2211 core.int buildCounterParallelInstruction = 0; |
2057 buildParallelInstruction() { | 2212 buildParallelInstruction() { |
2058 var o = new api.ParallelInstruction(); | 2213 var o = new api.ParallelInstruction(); |
2059 buildCounterParallelInstruction++; | 2214 buildCounterParallelInstruction++; |
2060 if (buildCounterParallelInstruction < 3) { | 2215 if (buildCounterParallelInstruction < 3) { |
2061 o.flatten = buildFlattenInstruction(); | 2216 o.flatten = buildFlattenInstruction(); |
2062 o.name = "foo"; | 2217 o.name = "foo"; |
2063 o.originalName = "foo"; | 2218 o.originalName = "foo"; |
2064 o.outputs = buildUnnamed3132(); | 2219 o.outputs = buildUnnamed3125(); |
2065 o.parDo = buildParDoInstruction(); | 2220 o.parDo = buildParDoInstruction(); |
2066 o.partialGroupByKey = buildPartialGroupByKeyInstruction(); | 2221 o.partialGroupByKey = buildPartialGroupByKeyInstruction(); |
2067 o.read = buildReadInstruction(); | 2222 o.read = buildReadInstruction(); |
2068 o.systemName = "foo"; | 2223 o.systemName = "foo"; |
2069 o.write = buildWriteInstruction(); | 2224 o.write = buildWriteInstruction(); |
2070 } | 2225 } |
2071 buildCounterParallelInstruction--; | 2226 buildCounterParallelInstruction--; |
2072 return o; | 2227 return o; |
2073 } | 2228 } |
2074 | 2229 |
2075 checkParallelInstruction(api.ParallelInstruction o) { | 2230 checkParallelInstruction(api.ParallelInstruction o) { |
2076 buildCounterParallelInstruction++; | 2231 buildCounterParallelInstruction++; |
2077 if (buildCounterParallelInstruction < 3) { | 2232 if (buildCounterParallelInstruction < 3) { |
2078 checkFlattenInstruction(o.flatten); | 2233 checkFlattenInstruction(o.flatten); |
2079 unittest.expect(o.name, unittest.equals('foo')); | 2234 unittest.expect(o.name, unittest.equals('foo')); |
2080 unittest.expect(o.originalName, unittest.equals('foo')); | 2235 unittest.expect(o.originalName, unittest.equals('foo')); |
2081 checkUnnamed3132(o.outputs); | 2236 checkUnnamed3125(o.outputs); |
2082 checkParDoInstruction(o.parDo); | 2237 checkParDoInstruction(o.parDo); |
2083 checkPartialGroupByKeyInstruction(o.partialGroupByKey); | 2238 checkPartialGroupByKeyInstruction(o.partialGroupByKey); |
2084 checkReadInstruction(o.read); | 2239 checkReadInstruction(o.read); |
2085 unittest.expect(o.systemName, unittest.equals('foo')); | 2240 unittest.expect(o.systemName, unittest.equals('foo')); |
2086 checkWriteInstruction(o.write); | 2241 checkWriteInstruction(o.write); |
2087 } | 2242 } |
2088 buildCounterParallelInstruction--; | 2243 buildCounterParallelInstruction--; |
2089 } | 2244 } |
2090 | 2245 |
2091 core.int buildCounterParameter = 0; | 2246 core.int buildCounterParameter = 0; |
2092 buildParameter() { | 2247 buildParameter() { |
2093 var o = new api.Parameter(); | 2248 var o = new api.Parameter(); |
2094 buildCounterParameter++; | 2249 buildCounterParameter++; |
2095 if (buildCounterParameter < 3) { | 2250 if (buildCounterParameter < 3) { |
2096 o.key = "foo"; | 2251 o.key = "foo"; |
2097 o.value = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2252 o.value = { |
| 2253 'list': [1, 2, 3], |
| 2254 'bool': true, |
| 2255 'string': 'foo' |
| 2256 }; |
2098 } | 2257 } |
2099 buildCounterParameter--; | 2258 buildCounterParameter--; |
2100 return o; | 2259 return o; |
2101 } | 2260 } |
2102 | 2261 |
2103 checkParameter(api.Parameter o) { | 2262 checkParameter(api.Parameter o) { |
2104 buildCounterParameter++; | 2263 buildCounterParameter++; |
2105 if (buildCounterParameter < 3) { | 2264 if (buildCounterParameter < 3) { |
2106 unittest.expect(o.key, unittest.equals('foo')); | 2265 unittest.expect(o.key, unittest.equals('foo')); |
2107 var casted20 = (o.value) as core.Map; unittest.expect(casted20, unittest.has
Length(3)); unittest.expect(casted20["list"], unittest.equals([1, 2, 3])); unitt
est.expect(casted20["bool"], unittest.equals(true)); unittest.expect(casted20["s
tring"], unittest.equals('foo')); | 2266 var casted20 = (o.value) as core.Map; |
| 2267 unittest.expect(casted20, unittest.hasLength(3)); |
| 2268 unittest.expect(casted20["list"], unittest.equals([1, 2, 3])); |
| 2269 unittest.expect(casted20["bool"], unittest.equals(true)); |
| 2270 unittest.expect(casted20["string"], unittest.equals('foo')); |
2108 } | 2271 } |
2109 buildCounterParameter--; | 2272 buildCounterParameter--; |
2110 } | 2273 } |
2111 | 2274 |
2112 buildUnnamed3133() { | 2275 buildUnnamed3126() { |
2113 var o = new core.List<core.String>(); | 2276 var o = new core.List<core.String>(); |
2114 o.add("foo"); | 2277 o.add("foo"); |
2115 o.add("foo"); | 2278 o.add("foo"); |
2116 return o; | 2279 return o; |
2117 } | 2280 } |
2118 | 2281 |
2119 checkUnnamed3133(core.List<core.String> o) { | 2282 checkUnnamed3126(core.List<core.String> o) { |
2120 unittest.expect(o, unittest.hasLength(2)); | 2283 unittest.expect(o, unittest.hasLength(2)); |
2121 unittest.expect(o[0], unittest.equals('foo')); | 2284 unittest.expect(o[0], unittest.equals('foo')); |
2122 unittest.expect(o[1], unittest.equals('foo')); | 2285 unittest.expect(o[1], unittest.equals('foo')); |
2123 } | 2286 } |
2124 | 2287 |
2125 core.int buildCounterParameterMetadata = 0; | 2288 core.int buildCounterParameterMetadata = 0; |
2126 buildParameterMetadata() { | 2289 buildParameterMetadata() { |
2127 var o = new api.ParameterMetadata(); | 2290 var o = new api.ParameterMetadata(); |
2128 buildCounterParameterMetadata++; | 2291 buildCounterParameterMetadata++; |
2129 if (buildCounterParameterMetadata < 3) { | 2292 if (buildCounterParameterMetadata < 3) { |
2130 o.helpText = "foo"; | 2293 o.helpText = "foo"; |
2131 o.isOptional = true; | 2294 o.isOptional = true; |
2132 o.label = "foo"; | 2295 o.label = "foo"; |
2133 o.name = "foo"; | 2296 o.name = "foo"; |
2134 o.regexes = buildUnnamed3133(); | 2297 o.regexes = buildUnnamed3126(); |
2135 } | 2298 } |
2136 buildCounterParameterMetadata--; | 2299 buildCounterParameterMetadata--; |
2137 return o; | 2300 return o; |
2138 } | 2301 } |
2139 | 2302 |
2140 checkParameterMetadata(api.ParameterMetadata o) { | 2303 checkParameterMetadata(api.ParameterMetadata o) { |
2141 buildCounterParameterMetadata++; | 2304 buildCounterParameterMetadata++; |
2142 if (buildCounterParameterMetadata < 3) { | 2305 if (buildCounterParameterMetadata < 3) { |
2143 unittest.expect(o.helpText, unittest.equals('foo')); | 2306 unittest.expect(o.helpText, unittest.equals('foo')); |
2144 unittest.expect(o.isOptional, unittest.isTrue); | 2307 unittest.expect(o.isOptional, unittest.isTrue); |
2145 unittest.expect(o.label, unittest.equals('foo')); | 2308 unittest.expect(o.label, unittest.equals('foo')); |
2146 unittest.expect(o.name, unittest.equals('foo')); | 2309 unittest.expect(o.name, unittest.equals('foo')); |
2147 checkUnnamed3133(o.regexes); | 2310 checkUnnamed3126(o.regexes); |
2148 } | 2311 } |
2149 buildCounterParameterMetadata--; | 2312 buildCounterParameterMetadata--; |
2150 } | 2313 } |
2151 | 2314 |
2152 buildUnnamed3134() { | 2315 buildUnnamed3127() { |
2153 var o = new core.Map<core.String, core.Object>(); | 2316 var o = new core.Map<core.String, core.Object>(); |
2154 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2317 o["x"] = { |
2155 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2318 'list': [1, 2, 3], |
| 2319 'bool': true, |
| 2320 'string': 'foo' |
| 2321 }; |
| 2322 o["y"] = { |
| 2323 'list': [1, 2, 3], |
| 2324 'bool': true, |
| 2325 'string': 'foo' |
| 2326 }; |
2156 return o; | 2327 return o; |
2157 } | 2328 } |
2158 | 2329 |
2159 checkUnnamed3134(core.Map<core.String, core.Object> o) { | 2330 checkUnnamed3127(core.Map<core.String, core.Object> o) { |
2160 unittest.expect(o, unittest.hasLength(2)); | 2331 unittest.expect(o, unittest.hasLength(2)); |
2161 var casted21 = (o["x"]) as core.Map; unittest.expect(casted21, unittest.hasLen
gth(3)); unittest.expect(casted21["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted21["bool"], unittest.equals(true)); unittest.expect(casted21["stri
ng"], unittest.equals('foo')); | 2332 var casted21 = (o["x"]) as core.Map; |
2162 var casted22 = (o["y"]) as core.Map; unittest.expect(casted22, unittest.hasLen
gth(3)); unittest.expect(casted22["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted22["bool"], unittest.equals(true)); unittest.expect(casted22["stri
ng"], unittest.equals('foo')); | 2333 unittest.expect(casted21, unittest.hasLength(3)); |
| 2334 unittest.expect(casted21["list"], unittest.equals([1, 2, 3])); |
| 2335 unittest.expect(casted21["bool"], unittest.equals(true)); |
| 2336 unittest.expect(casted21["string"], unittest.equals('foo')); |
| 2337 var casted22 = (o["y"]) as core.Map; |
| 2338 unittest.expect(casted22, unittest.hasLength(3)); |
| 2339 unittest.expect(casted22["list"], unittest.equals([1, 2, 3])); |
| 2340 unittest.expect(casted22["bool"], unittest.equals(true)); |
| 2341 unittest.expect(casted22["string"], unittest.equals('foo')); |
2163 } | 2342 } |
2164 | 2343 |
2165 buildUnnamed3135() { | 2344 buildUnnamed3128() { |
2166 var o = new core.List<api.SideInputInfo>(); | 2345 var o = new core.List<api.SideInputInfo>(); |
2167 o.add(buildSideInputInfo()); | 2346 o.add(buildSideInputInfo()); |
2168 o.add(buildSideInputInfo()); | 2347 o.add(buildSideInputInfo()); |
2169 return o; | 2348 return o; |
2170 } | 2349 } |
2171 | 2350 |
2172 checkUnnamed3135(core.List<api.SideInputInfo> o) { | 2351 checkUnnamed3128(core.List<api.SideInputInfo> o) { |
2173 unittest.expect(o, unittest.hasLength(2)); | 2352 unittest.expect(o, unittest.hasLength(2)); |
2174 checkSideInputInfo(o[0]); | 2353 checkSideInputInfo(o[0]); |
2175 checkSideInputInfo(o[1]); | 2354 checkSideInputInfo(o[1]); |
2176 } | 2355 } |
2177 | 2356 |
2178 buildUnnamed3136() { | 2357 buildUnnamed3129() { |
2179 var o = new core.Map<core.String, core.Object>(); | 2358 var o = new core.Map<core.String, core.Object>(); |
2180 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2359 o["x"] = { |
2181 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2360 'list': [1, 2, 3], |
| 2361 'bool': true, |
| 2362 'string': 'foo' |
| 2363 }; |
| 2364 o["y"] = { |
| 2365 'list': [1, 2, 3], |
| 2366 'bool': true, |
| 2367 'string': 'foo' |
| 2368 }; |
2182 return o; | 2369 return o; |
2183 } | 2370 } |
2184 | 2371 |
2185 checkUnnamed3136(core.Map<core.String, core.Object> o) { | 2372 checkUnnamed3129(core.Map<core.String, core.Object> o) { |
2186 unittest.expect(o, unittest.hasLength(2)); | 2373 unittest.expect(o, unittest.hasLength(2)); |
2187 var casted23 = (o["x"]) as core.Map; unittest.expect(casted23, unittest.hasLen
gth(3)); unittest.expect(casted23["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted23["bool"], unittest.equals(true)); unittest.expect(casted23["stri
ng"], unittest.equals('foo')); | 2374 var casted23 = (o["x"]) as core.Map; |
2188 var casted24 = (o["y"]) as core.Map; unittest.expect(casted24, unittest.hasLen
gth(3)); unittest.expect(casted24["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted24["bool"], unittest.equals(true)); unittest.expect(casted24["stri
ng"], unittest.equals('foo')); | 2375 unittest.expect(casted23, unittest.hasLength(3)); |
| 2376 unittest.expect(casted23["list"], unittest.equals([1, 2, 3])); |
| 2377 unittest.expect(casted23["bool"], unittest.equals(true)); |
| 2378 unittest.expect(casted23["string"], unittest.equals('foo')); |
| 2379 var casted24 = (o["y"]) as core.Map; |
| 2380 unittest.expect(casted24, unittest.hasLength(3)); |
| 2381 unittest.expect(casted24["list"], unittest.equals([1, 2, 3])); |
| 2382 unittest.expect(casted24["bool"], unittest.equals(true)); |
| 2383 unittest.expect(casted24["string"], unittest.equals('foo')); |
2189 } | 2384 } |
2190 | 2385 |
2191 core.int buildCounterPartialGroupByKeyInstruction = 0; | 2386 core.int buildCounterPartialGroupByKeyInstruction = 0; |
2192 buildPartialGroupByKeyInstruction() { | 2387 buildPartialGroupByKeyInstruction() { |
2193 var o = new api.PartialGroupByKeyInstruction(); | 2388 var o = new api.PartialGroupByKeyInstruction(); |
2194 buildCounterPartialGroupByKeyInstruction++; | 2389 buildCounterPartialGroupByKeyInstruction++; |
2195 if (buildCounterPartialGroupByKeyInstruction < 3) { | 2390 if (buildCounterPartialGroupByKeyInstruction < 3) { |
2196 o.input = buildInstructionInput(); | 2391 o.input = buildInstructionInput(); |
2197 o.inputElementCodec = buildUnnamed3134(); | 2392 o.inputElementCodec = buildUnnamed3127(); |
2198 o.originalCombineValuesInputStoreName = "foo"; | 2393 o.originalCombineValuesInputStoreName = "foo"; |
2199 o.originalCombineValuesStepName = "foo"; | 2394 o.originalCombineValuesStepName = "foo"; |
2200 o.sideInputs = buildUnnamed3135(); | 2395 o.sideInputs = buildUnnamed3128(); |
2201 o.valueCombiningFn = buildUnnamed3136(); | 2396 o.valueCombiningFn = buildUnnamed3129(); |
2202 } | 2397 } |
2203 buildCounterPartialGroupByKeyInstruction--; | 2398 buildCounterPartialGroupByKeyInstruction--; |
2204 return o; | 2399 return o; |
2205 } | 2400 } |
2206 | 2401 |
2207 checkPartialGroupByKeyInstruction(api.PartialGroupByKeyInstruction o) { | 2402 checkPartialGroupByKeyInstruction(api.PartialGroupByKeyInstruction o) { |
2208 buildCounterPartialGroupByKeyInstruction++; | 2403 buildCounterPartialGroupByKeyInstruction++; |
2209 if (buildCounterPartialGroupByKeyInstruction < 3) { | 2404 if (buildCounterPartialGroupByKeyInstruction < 3) { |
2210 checkInstructionInput(o.input); | 2405 checkInstructionInput(o.input); |
2211 checkUnnamed3134(o.inputElementCodec); | 2406 checkUnnamed3127(o.inputElementCodec); |
2212 unittest.expect(o.originalCombineValuesInputStoreName, unittest.equals('foo'
)); | 2407 unittest.expect( |
| 2408 o.originalCombineValuesInputStoreName, unittest.equals('foo')); |
2213 unittest.expect(o.originalCombineValuesStepName, unittest.equals('foo')); | 2409 unittest.expect(o.originalCombineValuesStepName, unittest.equals('foo')); |
2214 checkUnnamed3135(o.sideInputs); | 2410 checkUnnamed3128(o.sideInputs); |
2215 checkUnnamed3136(o.valueCombiningFn); | 2411 checkUnnamed3129(o.valueCombiningFn); |
2216 } | 2412 } |
2217 buildCounterPartialGroupByKeyInstruction--; | 2413 buildCounterPartialGroupByKeyInstruction--; |
2218 } | 2414 } |
2219 | 2415 |
2220 buildUnnamed3137() { | 2416 buildUnnamed3130() { |
2221 var o = new core.List<api.DisplayData>(); | 2417 var o = new core.List<api.DisplayData>(); |
2222 o.add(buildDisplayData()); | 2418 o.add(buildDisplayData()); |
2223 o.add(buildDisplayData()); | 2419 o.add(buildDisplayData()); |
2224 return o; | 2420 return o; |
2225 } | 2421 } |
2226 | 2422 |
2227 checkUnnamed3137(core.List<api.DisplayData> o) { | 2423 checkUnnamed3130(core.List<api.DisplayData> o) { |
2228 unittest.expect(o, unittest.hasLength(2)); | 2424 unittest.expect(o, unittest.hasLength(2)); |
2229 checkDisplayData(o[0]); | 2425 checkDisplayData(o[0]); |
2230 checkDisplayData(o[1]); | 2426 checkDisplayData(o[1]); |
2231 } | 2427 } |
2232 | 2428 |
2233 buildUnnamed3138() { | 2429 buildUnnamed3131() { |
2234 var o = new core.List<api.ExecutionStageSummary>(); | 2430 var o = new core.List<api.ExecutionStageSummary>(); |
2235 o.add(buildExecutionStageSummary()); | 2431 o.add(buildExecutionStageSummary()); |
2236 o.add(buildExecutionStageSummary()); | 2432 o.add(buildExecutionStageSummary()); |
2237 return o; | 2433 return o; |
2238 } | 2434 } |
2239 | 2435 |
2240 checkUnnamed3138(core.List<api.ExecutionStageSummary> o) { | 2436 checkUnnamed3131(core.List<api.ExecutionStageSummary> o) { |
2241 unittest.expect(o, unittest.hasLength(2)); | 2437 unittest.expect(o, unittest.hasLength(2)); |
2242 checkExecutionStageSummary(o[0]); | 2438 checkExecutionStageSummary(o[0]); |
2243 checkExecutionStageSummary(o[1]); | 2439 checkExecutionStageSummary(o[1]); |
2244 } | 2440 } |
2245 | 2441 |
2246 buildUnnamed3139() { | 2442 buildUnnamed3132() { |
2247 var o = new core.List<api.TransformSummary>(); | 2443 var o = new core.List<api.TransformSummary>(); |
2248 o.add(buildTransformSummary()); | 2444 o.add(buildTransformSummary()); |
2249 o.add(buildTransformSummary()); | 2445 o.add(buildTransformSummary()); |
2250 return o; | 2446 return o; |
2251 } | 2447 } |
2252 | 2448 |
2253 checkUnnamed3139(core.List<api.TransformSummary> o) { | 2449 checkUnnamed3132(core.List<api.TransformSummary> o) { |
2254 unittest.expect(o, unittest.hasLength(2)); | 2450 unittest.expect(o, unittest.hasLength(2)); |
2255 checkTransformSummary(o[0]); | 2451 checkTransformSummary(o[0]); |
2256 checkTransformSummary(o[1]); | 2452 checkTransformSummary(o[1]); |
2257 } | 2453 } |
2258 | 2454 |
2259 core.int buildCounterPipelineDescription = 0; | 2455 core.int buildCounterPipelineDescription = 0; |
2260 buildPipelineDescription() { | 2456 buildPipelineDescription() { |
2261 var o = new api.PipelineDescription(); | 2457 var o = new api.PipelineDescription(); |
2262 buildCounterPipelineDescription++; | 2458 buildCounterPipelineDescription++; |
2263 if (buildCounterPipelineDescription < 3) { | 2459 if (buildCounterPipelineDescription < 3) { |
2264 o.displayData = buildUnnamed3137(); | 2460 o.displayData = buildUnnamed3130(); |
2265 o.executionPipelineStage = buildUnnamed3138(); | 2461 o.executionPipelineStage = buildUnnamed3131(); |
2266 o.originalPipelineTransform = buildUnnamed3139(); | 2462 o.originalPipelineTransform = buildUnnamed3132(); |
2267 } | 2463 } |
2268 buildCounterPipelineDescription--; | 2464 buildCounterPipelineDescription--; |
2269 return o; | 2465 return o; |
2270 } | 2466 } |
2271 | 2467 |
2272 checkPipelineDescription(api.PipelineDescription o) { | 2468 checkPipelineDescription(api.PipelineDescription o) { |
2273 buildCounterPipelineDescription++; | 2469 buildCounterPipelineDescription++; |
2274 if (buildCounterPipelineDescription < 3) { | 2470 if (buildCounterPipelineDescription < 3) { |
2275 checkUnnamed3137(o.displayData); | 2471 checkUnnamed3130(o.displayData); |
2276 checkUnnamed3138(o.executionPipelineStage); | 2472 checkUnnamed3131(o.executionPipelineStage); |
2277 checkUnnamed3139(o.originalPipelineTransform); | 2473 checkUnnamed3132(o.originalPipelineTransform); |
2278 } | 2474 } |
2279 buildCounterPipelineDescription--; | 2475 buildCounterPipelineDescription--; |
2280 } | 2476 } |
2281 | 2477 |
2282 core.int buildCounterPosition = 0; | 2478 core.int buildCounterPosition = 0; |
2283 buildPosition() { | 2479 buildPosition() { |
2284 var o = new api.Position(); | 2480 var o = new api.Position(); |
2285 buildCounterPosition++; | 2481 buildCounterPosition++; |
2286 if (buildCounterPosition < 3) { | 2482 if (buildCounterPosition < 3) { |
2287 o.byteOffset = "foo"; | 2483 o.byteOffset = "foo"; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2351 } | 2547 } |
2352 | 2548 |
2353 checkReadInstruction(api.ReadInstruction o) { | 2549 checkReadInstruction(api.ReadInstruction o) { |
2354 buildCounterReadInstruction++; | 2550 buildCounterReadInstruction++; |
2355 if (buildCounterReadInstruction < 3) { | 2551 if (buildCounterReadInstruction < 3) { |
2356 checkSource(o.source); | 2552 checkSource(o.source); |
2357 } | 2553 } |
2358 buildCounterReadInstruction--; | 2554 buildCounterReadInstruction--; |
2359 } | 2555 } |
2360 | 2556 |
2361 buildUnnamed3140() { | 2557 buildUnnamed3133() { |
2362 var o = new core.List<api.WorkItemStatus>(); | 2558 var o = new core.List<api.WorkItemStatus>(); |
2363 o.add(buildWorkItemStatus()); | 2559 o.add(buildWorkItemStatus()); |
2364 o.add(buildWorkItemStatus()); | 2560 o.add(buildWorkItemStatus()); |
2365 return o; | 2561 return o; |
2366 } | 2562 } |
2367 | 2563 |
2368 checkUnnamed3140(core.List<api.WorkItemStatus> o) { | 2564 checkUnnamed3133(core.List<api.WorkItemStatus> o) { |
2369 unittest.expect(o, unittest.hasLength(2)); | 2565 unittest.expect(o, unittest.hasLength(2)); |
2370 checkWorkItemStatus(o[0]); | 2566 checkWorkItemStatus(o[0]); |
2371 checkWorkItemStatus(o[1]); | 2567 checkWorkItemStatus(o[1]); |
2372 } | 2568 } |
2373 | 2569 |
2374 core.int buildCounterReportWorkItemStatusRequest = 0; | 2570 core.int buildCounterReportWorkItemStatusRequest = 0; |
2375 buildReportWorkItemStatusRequest() { | 2571 buildReportWorkItemStatusRequest() { |
2376 var o = new api.ReportWorkItemStatusRequest(); | 2572 var o = new api.ReportWorkItemStatusRequest(); |
2377 buildCounterReportWorkItemStatusRequest++; | 2573 buildCounterReportWorkItemStatusRequest++; |
2378 if (buildCounterReportWorkItemStatusRequest < 3) { | 2574 if (buildCounterReportWorkItemStatusRequest < 3) { |
2379 o.currentWorkerTime = "foo"; | 2575 o.currentWorkerTime = "foo"; |
2380 o.location = "foo"; | 2576 o.location = "foo"; |
2381 o.workItemStatuses = buildUnnamed3140(); | 2577 o.workItemStatuses = buildUnnamed3133(); |
2382 o.workerId = "foo"; | 2578 o.workerId = "foo"; |
2383 } | 2579 } |
2384 buildCounterReportWorkItemStatusRequest--; | 2580 buildCounterReportWorkItemStatusRequest--; |
2385 return o; | 2581 return o; |
2386 } | 2582 } |
2387 | 2583 |
2388 checkReportWorkItemStatusRequest(api.ReportWorkItemStatusRequest o) { | 2584 checkReportWorkItemStatusRequest(api.ReportWorkItemStatusRequest o) { |
2389 buildCounterReportWorkItemStatusRequest++; | 2585 buildCounterReportWorkItemStatusRequest++; |
2390 if (buildCounterReportWorkItemStatusRequest < 3) { | 2586 if (buildCounterReportWorkItemStatusRequest < 3) { |
2391 unittest.expect(o.currentWorkerTime, unittest.equals('foo')); | 2587 unittest.expect(o.currentWorkerTime, unittest.equals('foo')); |
2392 unittest.expect(o.location, unittest.equals('foo')); | 2588 unittest.expect(o.location, unittest.equals('foo')); |
2393 checkUnnamed3140(o.workItemStatuses); | 2589 checkUnnamed3133(o.workItemStatuses); |
2394 unittest.expect(o.workerId, unittest.equals('foo')); | 2590 unittest.expect(o.workerId, unittest.equals('foo')); |
2395 } | 2591 } |
2396 buildCounterReportWorkItemStatusRequest--; | 2592 buildCounterReportWorkItemStatusRequest--; |
2397 } | 2593 } |
2398 | 2594 |
2399 buildUnnamed3141() { | 2595 buildUnnamed3134() { |
2400 var o = new core.List<api.WorkItemServiceState>(); | 2596 var o = new core.List<api.WorkItemServiceState>(); |
2401 o.add(buildWorkItemServiceState()); | 2597 o.add(buildWorkItemServiceState()); |
2402 o.add(buildWorkItemServiceState()); | 2598 o.add(buildWorkItemServiceState()); |
2403 return o; | 2599 return o; |
2404 } | 2600 } |
2405 | 2601 |
2406 checkUnnamed3141(core.List<api.WorkItemServiceState> o) { | 2602 checkUnnamed3134(core.List<api.WorkItemServiceState> o) { |
2407 unittest.expect(o, unittest.hasLength(2)); | 2603 unittest.expect(o, unittest.hasLength(2)); |
2408 checkWorkItemServiceState(o[0]); | 2604 checkWorkItemServiceState(o[0]); |
2409 checkWorkItemServiceState(o[1]); | 2605 checkWorkItemServiceState(o[1]); |
2410 } | 2606 } |
2411 | 2607 |
2412 core.int buildCounterReportWorkItemStatusResponse = 0; | 2608 core.int buildCounterReportWorkItemStatusResponse = 0; |
2413 buildReportWorkItemStatusResponse() { | 2609 buildReportWorkItemStatusResponse() { |
2414 var o = new api.ReportWorkItemStatusResponse(); | 2610 var o = new api.ReportWorkItemStatusResponse(); |
2415 buildCounterReportWorkItemStatusResponse++; | 2611 buildCounterReportWorkItemStatusResponse++; |
2416 if (buildCounterReportWorkItemStatusResponse < 3) { | 2612 if (buildCounterReportWorkItemStatusResponse < 3) { |
2417 o.workItemServiceStates = buildUnnamed3141(); | 2613 o.workItemServiceStates = buildUnnamed3134(); |
2418 } | 2614 } |
2419 buildCounterReportWorkItemStatusResponse--; | 2615 buildCounterReportWorkItemStatusResponse--; |
2420 return o; | 2616 return o; |
2421 } | 2617 } |
2422 | 2618 |
2423 checkReportWorkItemStatusResponse(api.ReportWorkItemStatusResponse o) { | 2619 checkReportWorkItemStatusResponse(api.ReportWorkItemStatusResponse o) { |
2424 buildCounterReportWorkItemStatusResponse++; | 2620 buildCounterReportWorkItemStatusResponse++; |
2425 if (buildCounterReportWorkItemStatusResponse < 3) { | 2621 if (buildCounterReportWorkItemStatusResponse < 3) { |
2426 checkUnnamed3141(o.workItemServiceStates); | 2622 checkUnnamed3134(o.workItemServiceStates); |
2427 } | 2623 } |
2428 buildCounterReportWorkItemStatusResponse--; | 2624 buildCounterReportWorkItemStatusResponse--; |
2429 } | 2625 } |
2430 | 2626 |
2431 core.int buildCounterReportedParallelism = 0; | 2627 core.int buildCounterReportedParallelism = 0; |
2432 buildReportedParallelism() { | 2628 buildReportedParallelism() { |
2433 var o = new api.ReportedParallelism(); | 2629 var o = new api.ReportedParallelism(); |
2434 buildCounterReportedParallelism++; | 2630 buildCounterReportedParallelism++; |
2435 if (buildCounterReportedParallelism < 3) { | 2631 if (buildCounterReportedParallelism < 3) { |
2436 o.isInfinite = true; | 2632 o.isInfinite = true; |
2437 o.value = 42.0; | 2633 o.value = 42.0; |
2438 } | 2634 } |
2439 buildCounterReportedParallelism--; | 2635 buildCounterReportedParallelism--; |
2440 return o; | 2636 return o; |
2441 } | 2637 } |
2442 | 2638 |
2443 checkReportedParallelism(api.ReportedParallelism o) { | 2639 checkReportedParallelism(api.ReportedParallelism o) { |
2444 buildCounterReportedParallelism++; | 2640 buildCounterReportedParallelism++; |
2445 if (buildCounterReportedParallelism < 3) { | 2641 if (buildCounterReportedParallelism < 3) { |
2446 unittest.expect(o.isInfinite, unittest.isTrue); | 2642 unittest.expect(o.isInfinite, unittest.isTrue); |
2447 unittest.expect(o.value, unittest.equals(42.0)); | 2643 unittest.expect(o.value, unittest.equals(42.0)); |
2448 } | 2644 } |
2449 buildCounterReportedParallelism--; | 2645 buildCounterReportedParallelism--; |
2450 } | 2646 } |
2451 | 2647 |
2452 buildUnnamed3142() { | 2648 buildUnnamed3135() { |
2453 var o = new core.List<api.CPUTime>(); | 2649 var o = new core.List<api.CPUTime>(); |
2454 o.add(buildCPUTime()); | 2650 o.add(buildCPUTime()); |
2455 o.add(buildCPUTime()); | 2651 o.add(buildCPUTime()); |
2456 return o; | 2652 return o; |
2457 } | 2653 } |
2458 | 2654 |
2459 checkUnnamed3142(core.List<api.CPUTime> o) { | 2655 checkUnnamed3135(core.List<api.CPUTime> o) { |
2460 unittest.expect(o, unittest.hasLength(2)); | 2656 unittest.expect(o, unittest.hasLength(2)); |
2461 checkCPUTime(o[0]); | 2657 checkCPUTime(o[0]); |
2462 checkCPUTime(o[1]); | 2658 checkCPUTime(o[1]); |
2463 } | 2659 } |
2464 | 2660 |
2465 core.int buildCounterResourceUtilizationReport = 0; | 2661 core.int buildCounterResourceUtilizationReport = 0; |
2466 buildResourceUtilizationReport() { | 2662 buildResourceUtilizationReport() { |
2467 var o = new api.ResourceUtilizationReport(); | 2663 var o = new api.ResourceUtilizationReport(); |
2468 buildCounterResourceUtilizationReport++; | 2664 buildCounterResourceUtilizationReport++; |
2469 if (buildCounterResourceUtilizationReport < 3) { | 2665 if (buildCounterResourceUtilizationReport < 3) { |
2470 o.cpuTime = buildUnnamed3142(); | 2666 o.cpuTime = buildUnnamed3135(); |
2471 } | 2667 } |
2472 buildCounterResourceUtilizationReport--; | 2668 buildCounterResourceUtilizationReport--; |
2473 return o; | 2669 return o; |
2474 } | 2670 } |
2475 | 2671 |
2476 checkResourceUtilizationReport(api.ResourceUtilizationReport o) { | 2672 checkResourceUtilizationReport(api.ResourceUtilizationReport o) { |
2477 buildCounterResourceUtilizationReport++; | 2673 buildCounterResourceUtilizationReport++; |
2478 if (buildCounterResourceUtilizationReport < 3) { | 2674 if (buildCounterResourceUtilizationReport < 3) { |
2479 checkUnnamed3142(o.cpuTime); | 2675 checkUnnamed3135(o.cpuTime); |
2480 } | 2676 } |
2481 buildCounterResourceUtilizationReport--; | 2677 buildCounterResourceUtilizationReport--; |
2482 } | 2678 } |
2483 | 2679 |
2484 core.int buildCounterResourceUtilizationReportResponse = 0; | 2680 core.int buildCounterResourceUtilizationReportResponse = 0; |
2485 buildResourceUtilizationReportResponse() { | 2681 buildResourceUtilizationReportResponse() { |
2486 var o = new api.ResourceUtilizationReportResponse(); | 2682 var o = new api.ResourceUtilizationReportResponse(); |
2487 buildCounterResourceUtilizationReportResponse++; | 2683 buildCounterResourceUtilizationReportResponse++; |
2488 if (buildCounterResourceUtilizationReportResponse < 3) { | 2684 if (buildCounterResourceUtilizationReportResponse < 3) {} |
2489 } | |
2490 buildCounterResourceUtilizationReportResponse--; | 2685 buildCounterResourceUtilizationReportResponse--; |
2491 return o; | 2686 return o; |
2492 } | 2687 } |
2493 | 2688 |
2494 checkResourceUtilizationReportResponse(api.ResourceUtilizationReportResponse o)
{ | 2689 checkResourceUtilizationReportResponse( |
| 2690 api.ResourceUtilizationReportResponse o) { |
2495 buildCounterResourceUtilizationReportResponse++; | 2691 buildCounterResourceUtilizationReportResponse++; |
2496 if (buildCounterResourceUtilizationReportResponse < 3) { | 2692 if (buildCounterResourceUtilizationReportResponse < 3) {} |
2497 } | |
2498 buildCounterResourceUtilizationReportResponse--; | 2693 buildCounterResourceUtilizationReportResponse--; |
2499 } | 2694 } |
2500 | 2695 |
2501 core.int buildCounterRuntimeEnvironment = 0; | 2696 core.int buildCounterRuntimeEnvironment = 0; |
2502 buildRuntimeEnvironment() { | 2697 buildRuntimeEnvironment() { |
2503 var o = new api.RuntimeEnvironment(); | 2698 var o = new api.RuntimeEnvironment(); |
2504 buildCounterRuntimeEnvironment++; | 2699 buildCounterRuntimeEnvironment++; |
2505 if (buildCounterRuntimeEnvironment < 3) { | 2700 if (buildCounterRuntimeEnvironment < 3) { |
2506 o.bypassTempDirValidation = true; | 2701 o.bypassTempDirValidation = true; |
2507 o.machineType = "foo"; | 2702 o.machineType = "foo"; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2549 unittest.expect(o.location, unittest.equals('foo')); | 2744 unittest.expect(o.location, unittest.equals('foo')); |
2550 unittest.expect(o.workerId, unittest.equals('foo')); | 2745 unittest.expect(o.workerId, unittest.equals('foo')); |
2551 } | 2746 } |
2552 buildCounterSendDebugCaptureRequest--; | 2747 buildCounterSendDebugCaptureRequest--; |
2553 } | 2748 } |
2554 | 2749 |
2555 core.int buildCounterSendDebugCaptureResponse = 0; | 2750 core.int buildCounterSendDebugCaptureResponse = 0; |
2556 buildSendDebugCaptureResponse() { | 2751 buildSendDebugCaptureResponse() { |
2557 var o = new api.SendDebugCaptureResponse(); | 2752 var o = new api.SendDebugCaptureResponse(); |
2558 buildCounterSendDebugCaptureResponse++; | 2753 buildCounterSendDebugCaptureResponse++; |
2559 if (buildCounterSendDebugCaptureResponse < 3) { | 2754 if (buildCounterSendDebugCaptureResponse < 3) {} |
2560 } | |
2561 buildCounterSendDebugCaptureResponse--; | 2755 buildCounterSendDebugCaptureResponse--; |
2562 return o; | 2756 return o; |
2563 } | 2757 } |
2564 | 2758 |
2565 checkSendDebugCaptureResponse(api.SendDebugCaptureResponse o) { | 2759 checkSendDebugCaptureResponse(api.SendDebugCaptureResponse o) { |
2566 buildCounterSendDebugCaptureResponse++; | 2760 buildCounterSendDebugCaptureResponse++; |
2567 if (buildCounterSendDebugCaptureResponse < 3) { | 2761 if (buildCounterSendDebugCaptureResponse < 3) {} |
2568 } | |
2569 buildCounterSendDebugCaptureResponse--; | 2762 buildCounterSendDebugCaptureResponse--; |
2570 } | 2763 } |
2571 | 2764 |
2572 buildUnnamed3143() { | 2765 buildUnnamed3136() { |
2573 var o = new core.List<api.WorkerMessage>(); | 2766 var o = new core.List<api.WorkerMessage>(); |
2574 o.add(buildWorkerMessage()); | 2767 o.add(buildWorkerMessage()); |
2575 o.add(buildWorkerMessage()); | 2768 o.add(buildWorkerMessage()); |
2576 return o; | 2769 return o; |
2577 } | 2770 } |
2578 | 2771 |
2579 checkUnnamed3143(core.List<api.WorkerMessage> o) { | 2772 checkUnnamed3136(core.List<api.WorkerMessage> o) { |
2580 unittest.expect(o, unittest.hasLength(2)); | 2773 unittest.expect(o, unittest.hasLength(2)); |
2581 checkWorkerMessage(o[0]); | 2774 checkWorkerMessage(o[0]); |
2582 checkWorkerMessage(o[1]); | 2775 checkWorkerMessage(o[1]); |
2583 } | 2776 } |
2584 | 2777 |
2585 core.int buildCounterSendWorkerMessagesRequest = 0; | 2778 core.int buildCounterSendWorkerMessagesRequest = 0; |
2586 buildSendWorkerMessagesRequest() { | 2779 buildSendWorkerMessagesRequest() { |
2587 var o = new api.SendWorkerMessagesRequest(); | 2780 var o = new api.SendWorkerMessagesRequest(); |
2588 buildCounterSendWorkerMessagesRequest++; | 2781 buildCounterSendWorkerMessagesRequest++; |
2589 if (buildCounterSendWorkerMessagesRequest < 3) { | 2782 if (buildCounterSendWorkerMessagesRequest < 3) { |
2590 o.location = "foo"; | 2783 o.location = "foo"; |
2591 o.workerMessages = buildUnnamed3143(); | 2784 o.workerMessages = buildUnnamed3136(); |
2592 } | 2785 } |
2593 buildCounterSendWorkerMessagesRequest--; | 2786 buildCounterSendWorkerMessagesRequest--; |
2594 return o; | 2787 return o; |
2595 } | 2788 } |
2596 | 2789 |
2597 checkSendWorkerMessagesRequest(api.SendWorkerMessagesRequest o) { | 2790 checkSendWorkerMessagesRequest(api.SendWorkerMessagesRequest o) { |
2598 buildCounterSendWorkerMessagesRequest++; | 2791 buildCounterSendWorkerMessagesRequest++; |
2599 if (buildCounterSendWorkerMessagesRequest < 3) { | 2792 if (buildCounterSendWorkerMessagesRequest < 3) { |
2600 unittest.expect(o.location, unittest.equals('foo')); | 2793 unittest.expect(o.location, unittest.equals('foo')); |
2601 checkUnnamed3143(o.workerMessages); | 2794 checkUnnamed3136(o.workerMessages); |
2602 } | 2795 } |
2603 buildCounterSendWorkerMessagesRequest--; | 2796 buildCounterSendWorkerMessagesRequest--; |
2604 } | 2797 } |
2605 | 2798 |
2606 buildUnnamed3144() { | 2799 buildUnnamed3137() { |
2607 var o = new core.List<api.WorkerMessageResponse>(); | 2800 var o = new core.List<api.WorkerMessageResponse>(); |
2608 o.add(buildWorkerMessageResponse()); | 2801 o.add(buildWorkerMessageResponse()); |
2609 o.add(buildWorkerMessageResponse()); | 2802 o.add(buildWorkerMessageResponse()); |
2610 return o; | 2803 return o; |
2611 } | 2804 } |
2612 | 2805 |
2613 checkUnnamed3144(core.List<api.WorkerMessageResponse> o) { | 2806 checkUnnamed3137(core.List<api.WorkerMessageResponse> o) { |
2614 unittest.expect(o, unittest.hasLength(2)); | 2807 unittest.expect(o, unittest.hasLength(2)); |
2615 checkWorkerMessageResponse(o[0]); | 2808 checkWorkerMessageResponse(o[0]); |
2616 checkWorkerMessageResponse(o[1]); | 2809 checkWorkerMessageResponse(o[1]); |
2617 } | 2810 } |
2618 | 2811 |
2619 core.int buildCounterSendWorkerMessagesResponse = 0; | 2812 core.int buildCounterSendWorkerMessagesResponse = 0; |
2620 buildSendWorkerMessagesResponse() { | 2813 buildSendWorkerMessagesResponse() { |
2621 var o = new api.SendWorkerMessagesResponse(); | 2814 var o = new api.SendWorkerMessagesResponse(); |
2622 buildCounterSendWorkerMessagesResponse++; | 2815 buildCounterSendWorkerMessagesResponse++; |
2623 if (buildCounterSendWorkerMessagesResponse < 3) { | 2816 if (buildCounterSendWorkerMessagesResponse < 3) { |
2624 o.workerMessageResponses = buildUnnamed3144(); | 2817 o.workerMessageResponses = buildUnnamed3137(); |
2625 } | 2818 } |
2626 buildCounterSendWorkerMessagesResponse--; | 2819 buildCounterSendWorkerMessagesResponse--; |
2627 return o; | 2820 return o; |
2628 } | 2821 } |
2629 | 2822 |
2630 checkSendWorkerMessagesResponse(api.SendWorkerMessagesResponse o) { | 2823 checkSendWorkerMessagesResponse(api.SendWorkerMessagesResponse o) { |
2631 buildCounterSendWorkerMessagesResponse++; | 2824 buildCounterSendWorkerMessagesResponse++; |
2632 if (buildCounterSendWorkerMessagesResponse < 3) { | 2825 if (buildCounterSendWorkerMessagesResponse < 3) { |
2633 checkUnnamed3144(o.workerMessageResponses); | 2826 checkUnnamed3137(o.workerMessageResponses); |
2634 } | 2827 } |
2635 buildCounterSendWorkerMessagesResponse--; | 2828 buildCounterSendWorkerMessagesResponse--; |
2636 } | 2829 } |
2637 | 2830 |
2638 buildUnnamed3145() { | 2831 buildUnnamed3138() { |
2639 var o = new core.List<api.SideInputInfo>(); | 2832 var o = new core.List<api.SideInputInfo>(); |
2640 o.add(buildSideInputInfo()); | 2833 o.add(buildSideInputInfo()); |
2641 o.add(buildSideInputInfo()); | 2834 o.add(buildSideInputInfo()); |
2642 return o; | 2835 return o; |
2643 } | 2836 } |
2644 | 2837 |
2645 checkUnnamed3145(core.List<api.SideInputInfo> o) { | 2838 checkUnnamed3138(core.List<api.SideInputInfo> o) { |
2646 unittest.expect(o, unittest.hasLength(2)); | 2839 unittest.expect(o, unittest.hasLength(2)); |
2647 checkSideInputInfo(o[0]); | 2840 checkSideInputInfo(o[0]); |
2648 checkSideInputInfo(o[1]); | 2841 checkSideInputInfo(o[1]); |
2649 } | 2842 } |
2650 | 2843 |
2651 buildUnnamed3146() { | 2844 buildUnnamed3139() { |
2652 var o = new core.List<api.SeqMapTaskOutputInfo>(); | 2845 var o = new core.List<api.SeqMapTaskOutputInfo>(); |
2653 o.add(buildSeqMapTaskOutputInfo()); | 2846 o.add(buildSeqMapTaskOutputInfo()); |
2654 o.add(buildSeqMapTaskOutputInfo()); | 2847 o.add(buildSeqMapTaskOutputInfo()); |
2655 return o; | 2848 return o; |
2656 } | 2849 } |
2657 | 2850 |
2658 checkUnnamed3146(core.List<api.SeqMapTaskOutputInfo> o) { | 2851 checkUnnamed3139(core.List<api.SeqMapTaskOutputInfo> o) { |
2659 unittest.expect(o, unittest.hasLength(2)); | 2852 unittest.expect(o, unittest.hasLength(2)); |
2660 checkSeqMapTaskOutputInfo(o[0]); | 2853 checkSeqMapTaskOutputInfo(o[0]); |
2661 checkSeqMapTaskOutputInfo(o[1]); | 2854 checkSeqMapTaskOutputInfo(o[1]); |
2662 } | 2855 } |
2663 | 2856 |
2664 buildUnnamed3147() { | 2857 buildUnnamed3140() { |
2665 var o = new core.Map<core.String, core.Object>(); | 2858 var o = new core.Map<core.String, core.Object>(); |
2666 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2859 o["x"] = { |
2667 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2860 'list': [1, 2, 3], |
| 2861 'bool': true, |
| 2862 'string': 'foo' |
| 2863 }; |
| 2864 o["y"] = { |
| 2865 'list': [1, 2, 3], |
| 2866 'bool': true, |
| 2867 'string': 'foo' |
| 2868 }; |
2668 return o; | 2869 return o; |
2669 } | 2870 } |
2670 | 2871 |
2671 checkUnnamed3147(core.Map<core.String, core.Object> o) { | 2872 checkUnnamed3140(core.Map<core.String, core.Object> o) { |
2672 unittest.expect(o, unittest.hasLength(2)); | 2873 unittest.expect(o, unittest.hasLength(2)); |
2673 var casted25 = (o["x"]) as core.Map; unittest.expect(casted25, unittest.hasLen
gth(3)); unittest.expect(casted25["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted25["bool"], unittest.equals(true)); unittest.expect(casted25["stri
ng"], unittest.equals('foo')); | 2874 var casted25 = (o["x"]) as core.Map; |
2674 var casted26 = (o["y"]) as core.Map; unittest.expect(casted26, unittest.hasLen
gth(3)); unittest.expect(casted26["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted26["bool"], unittest.equals(true)); unittest.expect(casted26["stri
ng"], unittest.equals('foo')); | 2875 unittest.expect(casted25, unittest.hasLength(3)); |
| 2876 unittest.expect(casted25["list"], unittest.equals([1, 2, 3])); |
| 2877 unittest.expect(casted25["bool"], unittest.equals(true)); |
| 2878 unittest.expect(casted25["string"], unittest.equals('foo')); |
| 2879 var casted26 = (o["y"]) as core.Map; |
| 2880 unittest.expect(casted26, unittest.hasLength(3)); |
| 2881 unittest.expect(casted26["list"], unittest.equals([1, 2, 3])); |
| 2882 unittest.expect(casted26["bool"], unittest.equals(true)); |
| 2883 unittest.expect(casted26["string"], unittest.equals('foo')); |
2675 } | 2884 } |
2676 | 2885 |
2677 core.int buildCounterSeqMapTask = 0; | 2886 core.int buildCounterSeqMapTask = 0; |
2678 buildSeqMapTask() { | 2887 buildSeqMapTask() { |
2679 var o = new api.SeqMapTask(); | 2888 var o = new api.SeqMapTask(); |
2680 buildCounterSeqMapTask++; | 2889 buildCounterSeqMapTask++; |
2681 if (buildCounterSeqMapTask < 3) { | 2890 if (buildCounterSeqMapTask < 3) { |
2682 o.inputs = buildUnnamed3145(); | 2891 o.inputs = buildUnnamed3138(); |
2683 o.name = "foo"; | 2892 o.name = "foo"; |
2684 o.outputInfos = buildUnnamed3146(); | 2893 o.outputInfos = buildUnnamed3139(); |
2685 o.stageName = "foo"; | 2894 o.stageName = "foo"; |
2686 o.systemName = "foo"; | 2895 o.systemName = "foo"; |
2687 o.userFn = buildUnnamed3147(); | 2896 o.userFn = buildUnnamed3140(); |
2688 } | 2897 } |
2689 buildCounterSeqMapTask--; | 2898 buildCounterSeqMapTask--; |
2690 return o; | 2899 return o; |
2691 } | 2900 } |
2692 | 2901 |
2693 checkSeqMapTask(api.SeqMapTask o) { | 2902 checkSeqMapTask(api.SeqMapTask o) { |
2694 buildCounterSeqMapTask++; | 2903 buildCounterSeqMapTask++; |
2695 if (buildCounterSeqMapTask < 3) { | 2904 if (buildCounterSeqMapTask < 3) { |
2696 checkUnnamed3145(o.inputs); | 2905 checkUnnamed3138(o.inputs); |
2697 unittest.expect(o.name, unittest.equals('foo')); | 2906 unittest.expect(o.name, unittest.equals('foo')); |
2698 checkUnnamed3146(o.outputInfos); | 2907 checkUnnamed3139(o.outputInfos); |
2699 unittest.expect(o.stageName, unittest.equals('foo')); | 2908 unittest.expect(o.stageName, unittest.equals('foo')); |
2700 unittest.expect(o.systemName, unittest.equals('foo')); | 2909 unittest.expect(o.systemName, unittest.equals('foo')); |
2701 checkUnnamed3147(o.userFn); | 2910 checkUnnamed3140(o.userFn); |
2702 } | 2911 } |
2703 buildCounterSeqMapTask--; | 2912 buildCounterSeqMapTask--; |
2704 } | 2913 } |
2705 | 2914 |
2706 core.int buildCounterSeqMapTaskOutputInfo = 0; | 2915 core.int buildCounterSeqMapTaskOutputInfo = 0; |
2707 buildSeqMapTaskOutputInfo() { | 2916 buildSeqMapTaskOutputInfo() { |
2708 var o = new api.SeqMapTaskOutputInfo(); | 2917 var o = new api.SeqMapTaskOutputInfo(); |
2709 buildCounterSeqMapTaskOutputInfo++; | 2918 buildCounterSeqMapTaskOutputInfo++; |
2710 if (buildCounterSeqMapTaskOutputInfo < 3) { | 2919 if (buildCounterSeqMapTaskOutputInfo < 3) { |
2711 o.sink = buildSink(); | 2920 o.sink = buildSink(); |
(...skipping 26 matching lines...) Expand all Loading... |
2738 | 2947 |
2739 checkShellTask(api.ShellTask o) { | 2948 checkShellTask(api.ShellTask o) { |
2740 buildCounterShellTask++; | 2949 buildCounterShellTask++; |
2741 if (buildCounterShellTask < 3) { | 2950 if (buildCounterShellTask < 3) { |
2742 unittest.expect(o.command, unittest.equals('foo')); | 2951 unittest.expect(o.command, unittest.equals('foo')); |
2743 unittest.expect(o.exitCode, unittest.equals(42)); | 2952 unittest.expect(o.exitCode, unittest.equals(42)); |
2744 } | 2953 } |
2745 buildCounterShellTask--; | 2954 buildCounterShellTask--; |
2746 } | 2955 } |
2747 | 2956 |
2748 buildUnnamed3148() { | 2957 core.int buildCounterSideInputId = 0; |
2749 var o = new core.Map<core.String, core.Object>(); | 2958 buildSideInputId() { |
2750 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2959 var o = new api.SideInputId(); |
2751 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2960 buildCounterSideInputId++; |
| 2961 if (buildCounterSideInputId < 3) { |
| 2962 o.declaringStepName = "foo"; |
| 2963 o.inputIndex = 42; |
| 2964 } |
| 2965 buildCounterSideInputId--; |
2752 return o; | 2966 return o; |
2753 } | 2967 } |
2754 | 2968 |
2755 checkUnnamed3148(core.Map<core.String, core.Object> o) { | 2969 checkSideInputId(api.SideInputId o) { |
2756 unittest.expect(o, unittest.hasLength(2)); | 2970 buildCounterSideInputId++; |
2757 var casted27 = (o["x"]) as core.Map; unittest.expect(casted27, unittest.hasLen
gth(3)); unittest.expect(casted27["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted27["bool"], unittest.equals(true)); unittest.expect(casted27["stri
ng"], unittest.equals('foo')); | 2971 if (buildCounterSideInputId < 3) { |
2758 var casted28 = (o["y"]) as core.Map; unittest.expect(casted28, unittest.hasLen
gth(3)); unittest.expect(casted28["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted28["bool"], unittest.equals(true)); unittest.expect(casted28["stri
ng"], unittest.equals('foo')); | 2972 unittest.expect(o.declaringStepName, unittest.equals('foo')); |
| 2973 unittest.expect(o.inputIndex, unittest.equals(42)); |
| 2974 } |
| 2975 buildCounterSideInputId--; |
2759 } | 2976 } |
2760 | 2977 |
2761 buildUnnamed3149() { | 2978 buildUnnamed3141() { |
| 2979 var o = new core.Map<core.String, core.Object>(); |
| 2980 o["x"] = { |
| 2981 'list': [1, 2, 3], |
| 2982 'bool': true, |
| 2983 'string': 'foo' |
| 2984 }; |
| 2985 o["y"] = { |
| 2986 'list': [1, 2, 3], |
| 2987 'bool': true, |
| 2988 'string': 'foo' |
| 2989 }; |
| 2990 return o; |
| 2991 } |
| 2992 |
| 2993 checkUnnamed3141(core.Map<core.String, core.Object> o) { |
| 2994 unittest.expect(o, unittest.hasLength(2)); |
| 2995 var casted27 = (o["x"]) as core.Map; |
| 2996 unittest.expect(casted27, unittest.hasLength(3)); |
| 2997 unittest.expect(casted27["list"], unittest.equals([1, 2, 3])); |
| 2998 unittest.expect(casted27["bool"], unittest.equals(true)); |
| 2999 unittest.expect(casted27["string"], unittest.equals('foo')); |
| 3000 var casted28 = (o["y"]) as core.Map; |
| 3001 unittest.expect(casted28, unittest.hasLength(3)); |
| 3002 unittest.expect(casted28["list"], unittest.equals([1, 2, 3])); |
| 3003 unittest.expect(casted28["bool"], unittest.equals(true)); |
| 3004 unittest.expect(casted28["string"], unittest.equals('foo')); |
| 3005 } |
| 3006 |
| 3007 buildUnnamed3142() { |
2762 var o = new core.List<api.Source>(); | 3008 var o = new core.List<api.Source>(); |
2763 o.add(buildSource()); | 3009 o.add(buildSource()); |
2764 o.add(buildSource()); | 3010 o.add(buildSource()); |
2765 return o; | 3011 return o; |
2766 } | 3012 } |
2767 | 3013 |
2768 checkUnnamed3149(core.List<api.Source> o) { | 3014 checkUnnamed3142(core.List<api.Source> o) { |
2769 unittest.expect(o, unittest.hasLength(2)); | 3015 unittest.expect(o, unittest.hasLength(2)); |
2770 checkSource(o[0]); | 3016 checkSource(o[0]); |
2771 checkSource(o[1]); | 3017 checkSource(o[1]); |
2772 } | 3018 } |
2773 | 3019 |
2774 core.int buildCounterSideInputInfo = 0; | 3020 core.int buildCounterSideInputInfo = 0; |
2775 buildSideInputInfo() { | 3021 buildSideInputInfo() { |
2776 var o = new api.SideInputInfo(); | 3022 var o = new api.SideInputInfo(); |
2777 buildCounterSideInputInfo++; | 3023 buildCounterSideInputInfo++; |
2778 if (buildCounterSideInputInfo < 3) { | 3024 if (buildCounterSideInputInfo < 3) { |
2779 o.kind = buildUnnamed3148(); | 3025 o.kind = buildUnnamed3141(); |
2780 o.sources = buildUnnamed3149(); | 3026 o.sources = buildUnnamed3142(); |
2781 o.tag = "foo"; | 3027 o.tag = "foo"; |
2782 } | 3028 } |
2783 buildCounterSideInputInfo--; | 3029 buildCounterSideInputInfo--; |
2784 return o; | 3030 return o; |
2785 } | 3031 } |
2786 | 3032 |
2787 checkSideInputInfo(api.SideInputInfo o) { | 3033 checkSideInputInfo(api.SideInputInfo o) { |
2788 buildCounterSideInputInfo++; | 3034 buildCounterSideInputInfo++; |
2789 if (buildCounterSideInputInfo < 3) { | 3035 if (buildCounterSideInputInfo < 3) { |
2790 checkUnnamed3148(o.kind); | 3036 checkUnnamed3141(o.kind); |
2791 checkUnnamed3149(o.sources); | 3037 checkUnnamed3142(o.sources); |
2792 unittest.expect(o.tag, unittest.equals('foo')); | 3038 unittest.expect(o.tag, unittest.equals('foo')); |
2793 } | 3039 } |
2794 buildCounterSideInputInfo--; | 3040 buildCounterSideInputInfo--; |
2795 } | 3041 } |
2796 | 3042 |
2797 buildUnnamed3150() { | 3043 buildUnnamed3143() { |
2798 var o = new core.Map<core.String, core.Object>(); | 3044 var o = new core.Map<core.String, core.Object>(); |
2799 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3045 o["x"] = { |
2800 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3046 'list': [1, 2, 3], |
| 3047 'bool': true, |
| 3048 'string': 'foo' |
| 3049 }; |
| 3050 o["y"] = { |
| 3051 'list': [1, 2, 3], |
| 3052 'bool': true, |
| 3053 'string': 'foo' |
| 3054 }; |
2801 return o; | 3055 return o; |
2802 } | 3056 } |
2803 | 3057 |
2804 checkUnnamed3150(core.Map<core.String, core.Object> o) { | 3058 checkUnnamed3143(core.Map<core.String, core.Object> o) { |
2805 unittest.expect(o, unittest.hasLength(2)); | 3059 unittest.expect(o, unittest.hasLength(2)); |
2806 var casted29 = (o["x"]) as core.Map; unittest.expect(casted29, unittest.hasLen
gth(3)); unittest.expect(casted29["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted29["bool"], unittest.equals(true)); unittest.expect(casted29["stri
ng"], unittest.equals('foo')); | 3060 var casted29 = (o["x"]) as core.Map; |
2807 var casted30 = (o["y"]) as core.Map; unittest.expect(casted30, unittest.hasLen
gth(3)); unittest.expect(casted30["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted30["bool"], unittest.equals(true)); unittest.expect(casted30["stri
ng"], unittest.equals('foo')); | 3061 unittest.expect(casted29, unittest.hasLength(3)); |
| 3062 unittest.expect(casted29["list"], unittest.equals([1, 2, 3])); |
| 3063 unittest.expect(casted29["bool"], unittest.equals(true)); |
| 3064 unittest.expect(casted29["string"], unittest.equals('foo')); |
| 3065 var casted30 = (o["y"]) as core.Map; |
| 3066 unittest.expect(casted30, unittest.hasLength(3)); |
| 3067 unittest.expect(casted30["list"], unittest.equals([1, 2, 3])); |
| 3068 unittest.expect(casted30["bool"], unittest.equals(true)); |
| 3069 unittest.expect(casted30["string"], unittest.equals('foo')); |
2808 } | 3070 } |
2809 | 3071 |
2810 buildUnnamed3151() { | 3072 buildUnnamed3144() { |
2811 var o = new core.Map<core.String, core.Object>(); | 3073 var o = new core.Map<core.String, core.Object>(); |
2812 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3074 o["x"] = { |
2813 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3075 'list': [1, 2, 3], |
| 3076 'bool': true, |
| 3077 'string': 'foo' |
| 3078 }; |
| 3079 o["y"] = { |
| 3080 'list': [1, 2, 3], |
| 3081 'bool': true, |
| 3082 'string': 'foo' |
| 3083 }; |
2814 return o; | 3084 return o; |
2815 } | 3085 } |
2816 | 3086 |
2817 checkUnnamed3151(core.Map<core.String, core.Object> o) { | 3087 checkUnnamed3144(core.Map<core.String, core.Object> o) { |
2818 unittest.expect(o, unittest.hasLength(2)); | 3088 unittest.expect(o, unittest.hasLength(2)); |
2819 var casted31 = (o["x"]) as core.Map; unittest.expect(casted31, unittest.hasLen
gth(3)); unittest.expect(casted31["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted31["bool"], unittest.equals(true)); unittest.expect(casted31["stri
ng"], unittest.equals('foo')); | 3089 var casted31 = (o["x"]) as core.Map; |
2820 var casted32 = (o["y"]) as core.Map; unittest.expect(casted32, unittest.hasLen
gth(3)); unittest.expect(casted32["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted32["bool"], unittest.equals(true)); unittest.expect(casted32["stri
ng"], unittest.equals('foo')); | 3090 unittest.expect(casted31, unittest.hasLength(3)); |
| 3091 unittest.expect(casted31["list"], unittest.equals([1, 2, 3])); |
| 3092 unittest.expect(casted31["bool"], unittest.equals(true)); |
| 3093 unittest.expect(casted31["string"], unittest.equals('foo')); |
| 3094 var casted32 = (o["y"]) as core.Map; |
| 3095 unittest.expect(casted32, unittest.hasLength(3)); |
| 3096 unittest.expect(casted32["list"], unittest.equals([1, 2, 3])); |
| 3097 unittest.expect(casted32["bool"], unittest.equals(true)); |
| 3098 unittest.expect(casted32["string"], unittest.equals('foo')); |
2821 } | 3099 } |
2822 | 3100 |
2823 core.int buildCounterSink = 0; | 3101 core.int buildCounterSink = 0; |
2824 buildSink() { | 3102 buildSink() { |
2825 var o = new api.Sink(); | 3103 var o = new api.Sink(); |
2826 buildCounterSink++; | 3104 buildCounterSink++; |
2827 if (buildCounterSink < 3) { | 3105 if (buildCounterSink < 3) { |
2828 o.codec = buildUnnamed3150(); | 3106 o.codec = buildUnnamed3143(); |
2829 o.spec = buildUnnamed3151(); | 3107 o.spec = buildUnnamed3144(); |
2830 } | 3108 } |
2831 buildCounterSink--; | 3109 buildCounterSink--; |
2832 return o; | 3110 return o; |
2833 } | 3111 } |
2834 | 3112 |
2835 checkSink(api.Sink o) { | 3113 checkSink(api.Sink o) { |
2836 buildCounterSink++; | 3114 buildCounterSink++; |
2837 if (buildCounterSink < 3) { | 3115 if (buildCounterSink < 3) { |
2838 checkUnnamed3150(o.codec); | 3116 checkUnnamed3143(o.codec); |
2839 checkUnnamed3151(o.spec); | 3117 checkUnnamed3144(o.spec); |
2840 } | 3118 } |
2841 buildCounterSink--; | 3119 buildCounterSink--; |
2842 } | 3120 } |
2843 | 3121 |
2844 buildUnnamed3152() { | 3122 buildUnnamed3145() { |
2845 var o = new core.Map<core.String, core.Object>(); | 3123 var o = new core.Map<core.String, core.Object>(); |
2846 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3124 o["x"] = { |
2847 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3125 'list': [1, 2, 3], |
| 3126 'bool': true, |
| 3127 'string': 'foo' |
| 3128 }; |
| 3129 o["y"] = { |
| 3130 'list': [1, 2, 3], |
| 3131 'bool': true, |
| 3132 'string': 'foo' |
| 3133 }; |
2848 return o; | 3134 return o; |
2849 } | 3135 } |
2850 | 3136 |
2851 checkUnnamed3152(core.Map<core.String, core.Object> o) { | 3137 checkUnnamed3145(core.Map<core.String, core.Object> o) { |
2852 unittest.expect(o, unittest.hasLength(2)); | 3138 unittest.expect(o, unittest.hasLength(2)); |
2853 var casted33 = (o["x"]) as core.Map; unittest.expect(casted33, unittest.hasLen
gth(3)); unittest.expect(casted33["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted33["bool"], unittest.equals(true)); unittest.expect(casted33["stri
ng"], unittest.equals('foo')); | 3139 var casted33 = (o["x"]) as core.Map; |
2854 var casted34 = (o["y"]) as core.Map; unittest.expect(casted34, unittest.hasLen
gth(3)); unittest.expect(casted34["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted34["bool"], unittest.equals(true)); unittest.expect(casted34["stri
ng"], unittest.equals('foo')); | 3140 unittest.expect(casted33, unittest.hasLength(3)); |
| 3141 unittest.expect(casted33["list"], unittest.equals([1, 2, 3])); |
| 3142 unittest.expect(casted33["bool"], unittest.equals(true)); |
| 3143 unittest.expect(casted33["string"], unittest.equals('foo')); |
| 3144 var casted34 = (o["y"]) as core.Map; |
| 3145 unittest.expect(casted34, unittest.hasLength(3)); |
| 3146 unittest.expect(casted34["list"], unittest.equals([1, 2, 3])); |
| 3147 unittest.expect(casted34["bool"], unittest.equals(true)); |
| 3148 unittest.expect(casted34["string"], unittest.equals('foo')); |
2855 } | 3149 } |
2856 | 3150 |
2857 buildUnnamed3153() { | 3151 buildUnnamed3146() { |
2858 var o = new core.List<core.Map<core.String, core.Object>>(); | 3152 var o = new core.List<core.Map<core.String, core.Object>>(); |
2859 o.add(buildUnnamed3152()); | 3153 o.add(buildUnnamed3145()); |
2860 o.add(buildUnnamed3152()); | 3154 o.add(buildUnnamed3145()); |
2861 return o; | 3155 return o; |
2862 } | 3156 } |
2863 | 3157 |
2864 checkUnnamed3153(core.List<core.Map<core.String, core.Object>> o) { | 3158 checkUnnamed3146(core.List<core.Map<core.String, core.Object>> o) { |
2865 unittest.expect(o, unittest.hasLength(2)); | 3159 unittest.expect(o, unittest.hasLength(2)); |
2866 checkUnnamed3152(o[0]); | 3160 checkUnnamed3145(o[0]); |
2867 checkUnnamed3152(o[1]); | 3161 checkUnnamed3145(o[1]); |
2868 } | 3162 } |
2869 | 3163 |
2870 buildUnnamed3154() { | 3164 buildUnnamed3147() { |
2871 var o = new core.Map<core.String, core.Object>(); | 3165 var o = new core.Map<core.String, core.Object>(); |
2872 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3166 o["x"] = { |
2873 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3167 'list': [1, 2, 3], |
| 3168 'bool': true, |
| 3169 'string': 'foo' |
| 3170 }; |
| 3171 o["y"] = { |
| 3172 'list': [1, 2, 3], |
| 3173 'bool': true, |
| 3174 'string': 'foo' |
| 3175 }; |
2874 return o; | 3176 return o; |
2875 } | 3177 } |
2876 | 3178 |
2877 checkUnnamed3154(core.Map<core.String, core.Object> o) { | 3179 checkUnnamed3147(core.Map<core.String, core.Object> o) { |
2878 unittest.expect(o, unittest.hasLength(2)); | 3180 unittest.expect(o, unittest.hasLength(2)); |
2879 var casted35 = (o["x"]) as core.Map; unittest.expect(casted35, unittest.hasLen
gth(3)); unittest.expect(casted35["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted35["bool"], unittest.equals(true)); unittest.expect(casted35["stri
ng"], unittest.equals('foo')); | 3181 var casted35 = (o["x"]) as core.Map; |
2880 var casted36 = (o["y"]) as core.Map; unittest.expect(casted36, unittest.hasLen
gth(3)); unittest.expect(casted36["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted36["bool"], unittest.equals(true)); unittest.expect(casted36["stri
ng"], unittest.equals('foo')); | 3182 unittest.expect(casted35, unittest.hasLength(3)); |
| 3183 unittest.expect(casted35["list"], unittest.equals([1, 2, 3])); |
| 3184 unittest.expect(casted35["bool"], unittest.equals(true)); |
| 3185 unittest.expect(casted35["string"], unittest.equals('foo')); |
| 3186 var casted36 = (o["y"]) as core.Map; |
| 3187 unittest.expect(casted36, unittest.hasLength(3)); |
| 3188 unittest.expect(casted36["list"], unittest.equals([1, 2, 3])); |
| 3189 unittest.expect(casted36["bool"], unittest.equals(true)); |
| 3190 unittest.expect(casted36["string"], unittest.equals('foo')); |
2881 } | 3191 } |
2882 | 3192 |
2883 buildUnnamed3155() { | 3193 buildUnnamed3148() { |
2884 var o = new core.Map<core.String, core.Object>(); | 3194 var o = new core.Map<core.String, core.Object>(); |
2885 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3195 o["x"] = { |
2886 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3196 'list': [1, 2, 3], |
| 3197 'bool': true, |
| 3198 'string': 'foo' |
| 3199 }; |
| 3200 o["y"] = { |
| 3201 'list': [1, 2, 3], |
| 3202 'bool': true, |
| 3203 'string': 'foo' |
| 3204 }; |
2887 return o; | 3205 return o; |
2888 } | 3206 } |
2889 | 3207 |
2890 checkUnnamed3155(core.Map<core.String, core.Object> o) { | 3208 checkUnnamed3148(core.Map<core.String, core.Object> o) { |
2891 unittest.expect(o, unittest.hasLength(2)); | 3209 unittest.expect(o, unittest.hasLength(2)); |
2892 var casted37 = (o["x"]) as core.Map; unittest.expect(casted37, unittest.hasLen
gth(3)); unittest.expect(casted37["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted37["bool"], unittest.equals(true)); unittest.expect(casted37["stri
ng"], unittest.equals('foo')); | 3210 var casted37 = (o["x"]) as core.Map; |
2893 var casted38 = (o["y"]) as core.Map; unittest.expect(casted38, unittest.hasLen
gth(3)); unittest.expect(casted38["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted38["bool"], unittest.equals(true)); unittest.expect(casted38["stri
ng"], unittest.equals('foo')); | 3211 unittest.expect(casted37, unittest.hasLength(3)); |
| 3212 unittest.expect(casted37["list"], unittest.equals([1, 2, 3])); |
| 3213 unittest.expect(casted37["bool"], unittest.equals(true)); |
| 3214 unittest.expect(casted37["string"], unittest.equals('foo')); |
| 3215 var casted38 = (o["y"]) as core.Map; |
| 3216 unittest.expect(casted38, unittest.hasLength(3)); |
| 3217 unittest.expect(casted38["list"], unittest.equals([1, 2, 3])); |
| 3218 unittest.expect(casted38["bool"], unittest.equals(true)); |
| 3219 unittest.expect(casted38["string"], unittest.equals('foo')); |
2894 } | 3220 } |
2895 | 3221 |
2896 core.int buildCounterSource = 0; | 3222 core.int buildCounterSource = 0; |
2897 buildSource() { | 3223 buildSource() { |
2898 var o = new api.Source(); | 3224 var o = new api.Source(); |
2899 buildCounterSource++; | 3225 buildCounterSource++; |
2900 if (buildCounterSource < 3) { | 3226 if (buildCounterSource < 3) { |
2901 o.baseSpecs = buildUnnamed3153(); | 3227 o.baseSpecs = buildUnnamed3146(); |
2902 o.codec = buildUnnamed3154(); | 3228 o.codec = buildUnnamed3147(); |
2903 o.doesNotNeedSplitting = true; | 3229 o.doesNotNeedSplitting = true; |
2904 o.metadata = buildSourceMetadata(); | 3230 o.metadata = buildSourceMetadata(); |
2905 o.spec = buildUnnamed3155(); | 3231 o.spec = buildUnnamed3148(); |
2906 } | 3232 } |
2907 buildCounterSource--; | 3233 buildCounterSource--; |
2908 return o; | 3234 return o; |
2909 } | 3235 } |
2910 | 3236 |
2911 checkSource(api.Source o) { | 3237 checkSource(api.Source o) { |
2912 buildCounterSource++; | 3238 buildCounterSource++; |
2913 if (buildCounterSource < 3) { | 3239 if (buildCounterSource < 3) { |
2914 checkUnnamed3153(o.baseSpecs); | 3240 checkUnnamed3146(o.baseSpecs); |
2915 checkUnnamed3154(o.codec); | 3241 checkUnnamed3147(o.codec); |
2916 unittest.expect(o.doesNotNeedSplitting, unittest.isTrue); | 3242 unittest.expect(o.doesNotNeedSplitting, unittest.isTrue); |
2917 checkSourceMetadata(o.metadata); | 3243 checkSourceMetadata(o.metadata); |
2918 checkUnnamed3155(o.spec); | 3244 checkUnnamed3148(o.spec); |
2919 } | 3245 } |
2920 buildCounterSource--; | 3246 buildCounterSource--; |
2921 } | 3247 } |
2922 | 3248 |
2923 core.int buildCounterSourceFork = 0; | 3249 core.int buildCounterSourceFork = 0; |
2924 buildSourceFork() { | 3250 buildSourceFork() { |
2925 var o = new api.SourceFork(); | 3251 var o = new api.SourceFork(); |
2926 buildCounterSourceFork++; | 3252 buildCounterSourceFork++; |
2927 if (buildCounterSourceFork < 3) { | 3253 if (buildCounterSourceFork < 3) { |
2928 o.primary = buildSourceSplitShard(); | 3254 o.primary = buildSourceSplitShard(); |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3083 | 3409 |
3084 checkSourceSplitRequest(api.SourceSplitRequest o) { | 3410 checkSourceSplitRequest(api.SourceSplitRequest o) { |
3085 buildCounterSourceSplitRequest++; | 3411 buildCounterSourceSplitRequest++; |
3086 if (buildCounterSourceSplitRequest < 3) { | 3412 if (buildCounterSourceSplitRequest < 3) { |
3087 checkSourceSplitOptions(o.options); | 3413 checkSourceSplitOptions(o.options); |
3088 checkSource(o.source); | 3414 checkSource(o.source); |
3089 } | 3415 } |
3090 buildCounterSourceSplitRequest--; | 3416 buildCounterSourceSplitRequest--; |
3091 } | 3417 } |
3092 | 3418 |
3093 buildUnnamed3156() { | 3419 buildUnnamed3149() { |
3094 var o = new core.List<api.DerivedSource>(); | 3420 var o = new core.List<api.DerivedSource>(); |
3095 o.add(buildDerivedSource()); | 3421 o.add(buildDerivedSource()); |
3096 o.add(buildDerivedSource()); | 3422 o.add(buildDerivedSource()); |
3097 return o; | 3423 return o; |
3098 } | 3424 } |
3099 | 3425 |
3100 checkUnnamed3156(core.List<api.DerivedSource> o) { | 3426 checkUnnamed3149(core.List<api.DerivedSource> o) { |
3101 unittest.expect(o, unittest.hasLength(2)); | 3427 unittest.expect(o, unittest.hasLength(2)); |
3102 checkDerivedSource(o[0]); | 3428 checkDerivedSource(o[0]); |
3103 checkDerivedSource(o[1]); | 3429 checkDerivedSource(o[1]); |
3104 } | 3430 } |
3105 | 3431 |
3106 buildUnnamed3157() { | 3432 buildUnnamed3150() { |
3107 var o = new core.List<api.SourceSplitShard>(); | 3433 var o = new core.List<api.SourceSplitShard>(); |
3108 o.add(buildSourceSplitShard()); | 3434 o.add(buildSourceSplitShard()); |
3109 o.add(buildSourceSplitShard()); | 3435 o.add(buildSourceSplitShard()); |
3110 return o; | 3436 return o; |
3111 } | 3437 } |
3112 | 3438 |
3113 checkUnnamed3157(core.List<api.SourceSplitShard> o) { | 3439 checkUnnamed3150(core.List<api.SourceSplitShard> o) { |
3114 unittest.expect(o, unittest.hasLength(2)); | 3440 unittest.expect(o, unittest.hasLength(2)); |
3115 checkSourceSplitShard(o[0]); | 3441 checkSourceSplitShard(o[0]); |
3116 checkSourceSplitShard(o[1]); | 3442 checkSourceSplitShard(o[1]); |
3117 } | 3443 } |
3118 | 3444 |
3119 core.int buildCounterSourceSplitResponse = 0; | 3445 core.int buildCounterSourceSplitResponse = 0; |
3120 buildSourceSplitResponse() { | 3446 buildSourceSplitResponse() { |
3121 var o = new api.SourceSplitResponse(); | 3447 var o = new api.SourceSplitResponse(); |
3122 buildCounterSourceSplitResponse++; | 3448 buildCounterSourceSplitResponse++; |
3123 if (buildCounterSourceSplitResponse < 3) { | 3449 if (buildCounterSourceSplitResponse < 3) { |
3124 o.bundles = buildUnnamed3156(); | 3450 o.bundles = buildUnnamed3149(); |
3125 o.outcome = "foo"; | 3451 o.outcome = "foo"; |
3126 o.shards = buildUnnamed3157(); | 3452 o.shards = buildUnnamed3150(); |
3127 } | 3453 } |
3128 buildCounterSourceSplitResponse--; | 3454 buildCounterSourceSplitResponse--; |
3129 return o; | 3455 return o; |
3130 } | 3456 } |
3131 | 3457 |
3132 checkSourceSplitResponse(api.SourceSplitResponse o) { | 3458 checkSourceSplitResponse(api.SourceSplitResponse o) { |
3133 buildCounterSourceSplitResponse++; | 3459 buildCounterSourceSplitResponse++; |
3134 if (buildCounterSourceSplitResponse < 3) { | 3460 if (buildCounterSourceSplitResponse < 3) { |
3135 checkUnnamed3156(o.bundles); | 3461 checkUnnamed3149(o.bundles); |
3136 unittest.expect(o.outcome, unittest.equals('foo')); | 3462 unittest.expect(o.outcome, unittest.equals('foo')); |
3137 checkUnnamed3157(o.shards); | 3463 checkUnnamed3150(o.shards); |
3138 } | 3464 } |
3139 buildCounterSourceSplitResponse--; | 3465 buildCounterSourceSplitResponse--; |
3140 } | 3466 } |
3141 | 3467 |
3142 core.int buildCounterSourceSplitShard = 0; | 3468 core.int buildCounterSourceSplitShard = 0; |
3143 buildSourceSplitShard() { | 3469 buildSourceSplitShard() { |
3144 var o = new api.SourceSplitShard(); | 3470 var o = new api.SourceSplitShard(); |
3145 buildCounterSourceSplitShard++; | 3471 buildCounterSourceSplitShard++; |
3146 if (buildCounterSourceSplitShard < 3) { | 3472 if (buildCounterSourceSplitShard < 3) { |
3147 o.derivationMode = "foo"; | 3473 o.derivationMode = "foo"; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3220 | 3546 |
3221 checkStateFamilyConfig(api.StateFamilyConfig o) { | 3547 checkStateFamilyConfig(api.StateFamilyConfig o) { |
3222 buildCounterStateFamilyConfig++; | 3548 buildCounterStateFamilyConfig++; |
3223 if (buildCounterStateFamilyConfig < 3) { | 3549 if (buildCounterStateFamilyConfig < 3) { |
3224 unittest.expect(o.isRead, unittest.isTrue); | 3550 unittest.expect(o.isRead, unittest.isTrue); |
3225 unittest.expect(o.stateFamily, unittest.equals('foo')); | 3551 unittest.expect(o.stateFamily, unittest.equals('foo')); |
3226 } | 3552 } |
3227 buildCounterStateFamilyConfig--; | 3553 buildCounterStateFamilyConfig--; |
3228 } | 3554 } |
3229 | 3555 |
3230 buildUnnamed3158() { | 3556 buildUnnamed3151() { |
3231 var o = new core.Map<core.String, core.Object>(); | 3557 var o = new core.Map<core.String, core.Object>(); |
3232 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3558 o["x"] = { |
3233 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3559 'list': [1, 2, 3], |
| 3560 'bool': true, |
| 3561 'string': 'foo' |
| 3562 }; |
| 3563 o["y"] = { |
| 3564 'list': [1, 2, 3], |
| 3565 'bool': true, |
| 3566 'string': 'foo' |
| 3567 }; |
3234 return o; | 3568 return o; |
3235 } | 3569 } |
3236 | 3570 |
3237 checkUnnamed3158(core.Map<core.String, core.Object> o) { | 3571 checkUnnamed3151(core.Map<core.String, core.Object> o) { |
3238 unittest.expect(o, unittest.hasLength(2)); | 3572 unittest.expect(o, unittest.hasLength(2)); |
3239 var casted39 = (o["x"]) as core.Map; unittest.expect(casted39, unittest.hasLen
gth(3)); unittest.expect(casted39["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted39["bool"], unittest.equals(true)); unittest.expect(casted39["stri
ng"], unittest.equals('foo')); | 3573 var casted39 = (o["x"]) as core.Map; |
3240 var casted40 = (o["y"]) as core.Map; unittest.expect(casted40, unittest.hasLen
gth(3)); unittest.expect(casted40["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted40["bool"], unittest.equals(true)); unittest.expect(casted40["stri
ng"], unittest.equals('foo')); | 3574 unittest.expect(casted39, unittest.hasLength(3)); |
| 3575 unittest.expect(casted39["list"], unittest.equals([1, 2, 3])); |
| 3576 unittest.expect(casted39["bool"], unittest.equals(true)); |
| 3577 unittest.expect(casted39["string"], unittest.equals('foo')); |
| 3578 var casted40 = (o["y"]) as core.Map; |
| 3579 unittest.expect(casted40, unittest.hasLength(3)); |
| 3580 unittest.expect(casted40["list"], unittest.equals([1, 2, 3])); |
| 3581 unittest.expect(casted40["bool"], unittest.equals(true)); |
| 3582 unittest.expect(casted40["string"], unittest.equals('foo')); |
3241 } | 3583 } |
3242 | 3584 |
3243 buildUnnamed3159() { | 3585 buildUnnamed3152() { |
3244 var o = new core.List<core.Map<core.String, core.Object>>(); | 3586 var o = new core.List<core.Map<core.String, core.Object>>(); |
3245 o.add(buildUnnamed3158()); | 3587 o.add(buildUnnamed3151()); |
3246 o.add(buildUnnamed3158()); | 3588 o.add(buildUnnamed3151()); |
3247 return o; | 3589 return o; |
3248 } | 3590 } |
3249 | 3591 |
3250 checkUnnamed3159(core.List<core.Map<core.String, core.Object>> o) { | 3592 checkUnnamed3152(core.List<core.Map<core.String, core.Object>> o) { |
3251 unittest.expect(o, unittest.hasLength(2)); | 3593 unittest.expect(o, unittest.hasLength(2)); |
3252 checkUnnamed3158(o[0]); | 3594 checkUnnamed3151(o[0]); |
3253 checkUnnamed3158(o[1]); | 3595 checkUnnamed3151(o[1]); |
3254 } | 3596 } |
3255 | 3597 |
3256 core.int buildCounterStatus = 0; | 3598 core.int buildCounterStatus = 0; |
3257 buildStatus() { | 3599 buildStatus() { |
3258 var o = new api.Status(); | 3600 var o = new api.Status(); |
3259 buildCounterStatus++; | 3601 buildCounterStatus++; |
3260 if (buildCounterStatus < 3) { | 3602 if (buildCounterStatus < 3) { |
3261 o.code = 42; | 3603 o.code = 42; |
3262 o.details = buildUnnamed3159(); | 3604 o.details = buildUnnamed3152(); |
3263 o.message = "foo"; | 3605 o.message = "foo"; |
3264 } | 3606 } |
3265 buildCounterStatus--; | 3607 buildCounterStatus--; |
3266 return o; | 3608 return o; |
3267 } | 3609 } |
3268 | 3610 |
3269 checkStatus(api.Status o) { | 3611 checkStatus(api.Status o) { |
3270 buildCounterStatus++; | 3612 buildCounterStatus++; |
3271 if (buildCounterStatus < 3) { | 3613 if (buildCounterStatus < 3) { |
3272 unittest.expect(o.code, unittest.equals(42)); | 3614 unittest.expect(o.code, unittest.equals(42)); |
3273 checkUnnamed3159(o.details); | 3615 checkUnnamed3152(o.details); |
3274 unittest.expect(o.message, unittest.equals('foo')); | 3616 unittest.expect(o.message, unittest.equals('foo')); |
3275 } | 3617 } |
3276 buildCounterStatus--; | 3618 buildCounterStatus--; |
3277 } | 3619 } |
3278 | 3620 |
3279 buildUnnamed3160() { | 3621 buildUnnamed3153() { |
3280 var o = new core.Map<core.String, core.Object>(); | 3622 var o = new core.Map<core.String, core.Object>(); |
3281 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3623 o["x"] = { |
3282 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 3624 'list': [1, 2, 3], |
| 3625 'bool': true, |
| 3626 'string': 'foo' |
| 3627 }; |
| 3628 o["y"] = { |
| 3629 'list': [1, 2, 3], |
| 3630 'bool': true, |
| 3631 'string': 'foo' |
| 3632 }; |
3283 return o; | 3633 return o; |
3284 } | 3634 } |
3285 | 3635 |
3286 checkUnnamed3160(core.Map<core.String, core.Object> o) { | 3636 checkUnnamed3153(core.Map<core.String, core.Object> o) { |
3287 unittest.expect(o, unittest.hasLength(2)); | 3637 unittest.expect(o, unittest.hasLength(2)); |
3288 var casted41 = (o["x"]) as core.Map; unittest.expect(casted41, unittest.hasLen
gth(3)); unittest.expect(casted41["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted41["bool"], unittest.equals(true)); unittest.expect(casted41["stri
ng"], unittest.equals('foo')); | 3638 var casted41 = (o["x"]) as core.Map; |
3289 var casted42 = (o["y"]) as core.Map; unittest.expect(casted42, unittest.hasLen
gth(3)); unittest.expect(casted42["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted42["bool"], unittest.equals(true)); unittest.expect(casted42["stri
ng"], unittest.equals('foo')); | 3639 unittest.expect(casted41, unittest.hasLength(3)); |
| 3640 unittest.expect(casted41["list"], unittest.equals([1, 2, 3])); |
| 3641 unittest.expect(casted41["bool"], unittest.equals(true)); |
| 3642 unittest.expect(casted41["string"], unittest.equals('foo')); |
| 3643 var casted42 = (o["y"]) as core.Map; |
| 3644 unittest.expect(casted42, unittest.hasLength(3)); |
| 3645 unittest.expect(casted42["list"], unittest.equals([1, 2, 3])); |
| 3646 unittest.expect(casted42["bool"], unittest.equals(true)); |
| 3647 unittest.expect(casted42["string"], unittest.equals('foo')); |
3290 } | 3648 } |
3291 | 3649 |
3292 core.int buildCounterStep = 0; | 3650 core.int buildCounterStep = 0; |
3293 buildStep() { | 3651 buildStep() { |
3294 var o = new api.Step(); | 3652 var o = new api.Step(); |
3295 buildCounterStep++; | 3653 buildCounterStep++; |
3296 if (buildCounterStep < 3) { | 3654 if (buildCounterStep < 3) { |
3297 o.kind = "foo"; | 3655 o.kind = "foo"; |
3298 o.name = "foo"; | 3656 o.name = "foo"; |
3299 o.properties = buildUnnamed3160(); | 3657 o.properties = buildUnnamed3153(); |
3300 } | 3658 } |
3301 buildCounterStep--; | 3659 buildCounterStep--; |
3302 return o; | 3660 return o; |
3303 } | 3661 } |
3304 | 3662 |
3305 checkStep(api.Step o) { | 3663 checkStep(api.Step o) { |
3306 buildCounterStep++; | 3664 buildCounterStep++; |
3307 if (buildCounterStep < 3) { | 3665 if (buildCounterStep < 3) { |
3308 unittest.expect(o.kind, unittest.equals('foo')); | 3666 unittest.expect(o.kind, unittest.equals('foo')); |
3309 unittest.expect(o.name, unittest.equals('foo')); | 3667 unittest.expect(o.name, unittest.equals('foo')); |
3310 checkUnnamed3160(o.properties); | 3668 checkUnnamed3153(o.properties); |
3311 } | 3669 } |
3312 buildCounterStep--; | 3670 buildCounterStep--; |
3313 } | 3671 } |
3314 | 3672 |
3315 core.int buildCounterStreamLocation = 0; | 3673 core.int buildCounterStreamLocation = 0; |
3316 buildStreamLocation() { | 3674 buildStreamLocation() { |
3317 var o = new api.StreamLocation(); | 3675 var o = new api.StreamLocation(); |
3318 buildCounterStreamLocation++; | 3676 buildCounterStreamLocation++; |
3319 if (buildCounterStreamLocation < 3) { | 3677 if (buildCounterStreamLocation < 3) { |
3320 o.customSourceLocation = buildCustomSourceLocation(); | 3678 o.customSourceLocation = buildCustomSourceLocation(); |
3321 o.pubsubLocation = buildPubsubLocation(); | 3679 o.pubsubLocation = buildPubsubLocation(); |
3322 o.sideInputLocation = buildStreamingSideInputLocation(); | 3680 o.sideInputLocation = buildStreamingSideInputLocation(); |
3323 o.streamingStageLocation = buildStreamingStageLocation(); | 3681 o.streamingStageLocation = buildStreamingStageLocation(); |
3324 } | 3682 } |
3325 buildCounterStreamLocation--; | 3683 buildCounterStreamLocation--; |
3326 return o; | 3684 return o; |
3327 } | 3685 } |
3328 | 3686 |
3329 checkStreamLocation(api.StreamLocation o) { | 3687 checkStreamLocation(api.StreamLocation o) { |
3330 buildCounterStreamLocation++; | 3688 buildCounterStreamLocation++; |
3331 if (buildCounterStreamLocation < 3) { | 3689 if (buildCounterStreamLocation < 3) { |
3332 checkCustomSourceLocation(o.customSourceLocation); | 3690 checkCustomSourceLocation(o.customSourceLocation); |
3333 checkPubsubLocation(o.pubsubLocation); | 3691 checkPubsubLocation(o.pubsubLocation); |
3334 checkStreamingSideInputLocation(o.sideInputLocation); | 3692 checkStreamingSideInputLocation(o.sideInputLocation); |
3335 checkStreamingStageLocation(o.streamingStageLocation); | 3693 checkStreamingStageLocation(o.streamingStageLocation); |
3336 } | 3694 } |
3337 buildCounterStreamLocation--; | 3695 buildCounterStreamLocation--; |
3338 } | 3696 } |
3339 | 3697 |
3340 buildUnnamed3161() { | 3698 buildUnnamed3154() { |
3341 var o = new core.List<api.ParallelInstruction>(); | 3699 var o = new core.List<api.ParallelInstruction>(); |
3342 o.add(buildParallelInstruction()); | 3700 o.add(buildParallelInstruction()); |
3343 o.add(buildParallelInstruction()); | 3701 o.add(buildParallelInstruction()); |
3344 return o; | 3702 return o; |
3345 } | 3703 } |
3346 | 3704 |
3347 checkUnnamed3161(core.List<api.ParallelInstruction> o) { | 3705 checkUnnamed3154(core.List<api.ParallelInstruction> o) { |
3348 unittest.expect(o, unittest.hasLength(2)); | 3706 unittest.expect(o, unittest.hasLength(2)); |
3349 checkParallelInstruction(o[0]); | 3707 checkParallelInstruction(o[0]); |
3350 checkParallelInstruction(o[1]); | 3708 checkParallelInstruction(o[1]); |
3351 } | 3709 } |
3352 | 3710 |
3353 core.int buildCounterStreamingComputationConfig = 0; | 3711 core.int buildCounterStreamingComputationConfig = 0; |
3354 buildStreamingComputationConfig() { | 3712 buildStreamingComputationConfig() { |
3355 var o = new api.StreamingComputationConfig(); | 3713 var o = new api.StreamingComputationConfig(); |
3356 buildCounterStreamingComputationConfig++; | 3714 buildCounterStreamingComputationConfig++; |
3357 if (buildCounterStreamingComputationConfig < 3) { | 3715 if (buildCounterStreamingComputationConfig < 3) { |
3358 o.computationId = "foo"; | 3716 o.computationId = "foo"; |
3359 o.instructions = buildUnnamed3161(); | 3717 o.instructions = buildUnnamed3154(); |
3360 o.stageName = "foo"; | 3718 o.stageName = "foo"; |
3361 o.systemName = "foo"; | 3719 o.systemName = "foo"; |
3362 } | 3720 } |
3363 buildCounterStreamingComputationConfig--; | 3721 buildCounterStreamingComputationConfig--; |
3364 return o; | 3722 return o; |
3365 } | 3723 } |
3366 | 3724 |
3367 checkStreamingComputationConfig(api.StreamingComputationConfig o) { | 3725 checkStreamingComputationConfig(api.StreamingComputationConfig o) { |
3368 buildCounterStreamingComputationConfig++; | 3726 buildCounterStreamingComputationConfig++; |
3369 if (buildCounterStreamingComputationConfig < 3) { | 3727 if (buildCounterStreamingComputationConfig < 3) { |
3370 unittest.expect(o.computationId, unittest.equals('foo')); | 3728 unittest.expect(o.computationId, unittest.equals('foo')); |
3371 checkUnnamed3161(o.instructions); | 3729 checkUnnamed3154(o.instructions); |
3372 unittest.expect(o.stageName, unittest.equals('foo')); | 3730 unittest.expect(o.stageName, unittest.equals('foo')); |
3373 unittest.expect(o.systemName, unittest.equals('foo')); | 3731 unittest.expect(o.systemName, unittest.equals('foo')); |
3374 } | 3732 } |
3375 buildCounterStreamingComputationConfig--; | 3733 buildCounterStreamingComputationConfig--; |
3376 } | 3734 } |
3377 | 3735 |
3378 buildUnnamed3162() { | 3736 buildUnnamed3155() { |
3379 var o = new core.List<api.KeyRangeDataDiskAssignment>(); | 3737 var o = new core.List<api.KeyRangeDataDiskAssignment>(); |
3380 o.add(buildKeyRangeDataDiskAssignment()); | 3738 o.add(buildKeyRangeDataDiskAssignment()); |
3381 o.add(buildKeyRangeDataDiskAssignment()); | 3739 o.add(buildKeyRangeDataDiskAssignment()); |
3382 return o; | 3740 return o; |
3383 } | 3741 } |
3384 | 3742 |
3385 checkUnnamed3162(core.List<api.KeyRangeDataDiskAssignment> o) { | 3743 checkUnnamed3155(core.List<api.KeyRangeDataDiskAssignment> o) { |
3386 unittest.expect(o, unittest.hasLength(2)); | 3744 unittest.expect(o, unittest.hasLength(2)); |
3387 checkKeyRangeDataDiskAssignment(o[0]); | 3745 checkKeyRangeDataDiskAssignment(o[0]); |
3388 checkKeyRangeDataDiskAssignment(o[1]); | 3746 checkKeyRangeDataDiskAssignment(o[1]); |
3389 } | 3747 } |
3390 | 3748 |
3391 core.int buildCounterStreamingComputationRanges = 0; | 3749 core.int buildCounterStreamingComputationRanges = 0; |
3392 buildStreamingComputationRanges() { | 3750 buildStreamingComputationRanges() { |
3393 var o = new api.StreamingComputationRanges(); | 3751 var o = new api.StreamingComputationRanges(); |
3394 buildCounterStreamingComputationRanges++; | 3752 buildCounterStreamingComputationRanges++; |
3395 if (buildCounterStreamingComputationRanges < 3) { | 3753 if (buildCounterStreamingComputationRanges < 3) { |
3396 o.computationId = "foo"; | 3754 o.computationId = "foo"; |
3397 o.rangeAssignments = buildUnnamed3162(); | 3755 o.rangeAssignments = buildUnnamed3155(); |
3398 } | 3756 } |
3399 buildCounterStreamingComputationRanges--; | 3757 buildCounterStreamingComputationRanges--; |
3400 return o; | 3758 return o; |
3401 } | 3759 } |
3402 | 3760 |
3403 checkStreamingComputationRanges(api.StreamingComputationRanges o) { | 3761 checkStreamingComputationRanges(api.StreamingComputationRanges o) { |
3404 buildCounterStreamingComputationRanges++; | 3762 buildCounterStreamingComputationRanges++; |
3405 if (buildCounterStreamingComputationRanges < 3) { | 3763 if (buildCounterStreamingComputationRanges < 3) { |
3406 unittest.expect(o.computationId, unittest.equals('foo')); | 3764 unittest.expect(o.computationId, unittest.equals('foo')); |
3407 checkUnnamed3162(o.rangeAssignments); | 3765 checkUnnamed3155(o.rangeAssignments); |
3408 } | 3766 } |
3409 buildCounterStreamingComputationRanges--; | 3767 buildCounterStreamingComputationRanges--; |
3410 } | 3768 } |
3411 | 3769 |
3412 buildUnnamed3163() { | 3770 buildUnnamed3156() { |
3413 var o = new core.List<api.StreamingComputationRanges>(); | 3771 var o = new core.List<api.StreamingComputationRanges>(); |
3414 o.add(buildStreamingComputationRanges()); | 3772 o.add(buildStreamingComputationRanges()); |
3415 o.add(buildStreamingComputationRanges()); | 3773 o.add(buildStreamingComputationRanges()); |
3416 return o; | 3774 return o; |
3417 } | 3775 } |
3418 | 3776 |
3419 checkUnnamed3163(core.List<api.StreamingComputationRanges> o) { | 3777 checkUnnamed3156(core.List<api.StreamingComputationRanges> o) { |
3420 unittest.expect(o, unittest.hasLength(2)); | 3778 unittest.expect(o, unittest.hasLength(2)); |
3421 checkStreamingComputationRanges(o[0]); | 3779 checkStreamingComputationRanges(o[0]); |
3422 checkStreamingComputationRanges(o[1]); | 3780 checkStreamingComputationRanges(o[1]); |
3423 } | 3781 } |
3424 | 3782 |
3425 buildUnnamed3164() { | 3783 buildUnnamed3157() { |
3426 var o = new core.List<api.MountedDataDisk>(); | 3784 var o = new core.List<api.MountedDataDisk>(); |
3427 o.add(buildMountedDataDisk()); | 3785 o.add(buildMountedDataDisk()); |
3428 o.add(buildMountedDataDisk()); | 3786 o.add(buildMountedDataDisk()); |
3429 return o; | 3787 return o; |
3430 } | 3788 } |
3431 | 3789 |
3432 checkUnnamed3164(core.List<api.MountedDataDisk> o) { | 3790 checkUnnamed3157(core.List<api.MountedDataDisk> o) { |
3433 unittest.expect(o, unittest.hasLength(2)); | 3791 unittest.expect(o, unittest.hasLength(2)); |
3434 checkMountedDataDisk(o[0]); | 3792 checkMountedDataDisk(o[0]); |
3435 checkMountedDataDisk(o[1]); | 3793 checkMountedDataDisk(o[1]); |
3436 } | 3794 } |
3437 | 3795 |
3438 core.int buildCounterStreamingComputationTask = 0; | 3796 core.int buildCounterStreamingComputationTask = 0; |
3439 buildStreamingComputationTask() { | 3797 buildStreamingComputationTask() { |
3440 var o = new api.StreamingComputationTask(); | 3798 var o = new api.StreamingComputationTask(); |
3441 buildCounterStreamingComputationTask++; | 3799 buildCounterStreamingComputationTask++; |
3442 if (buildCounterStreamingComputationTask < 3) { | 3800 if (buildCounterStreamingComputationTask < 3) { |
3443 o.computationRanges = buildUnnamed3163(); | 3801 o.computationRanges = buildUnnamed3156(); |
3444 o.dataDisks = buildUnnamed3164(); | 3802 o.dataDisks = buildUnnamed3157(); |
3445 o.taskType = "foo"; | 3803 o.taskType = "foo"; |
3446 } | 3804 } |
3447 buildCounterStreamingComputationTask--; | 3805 buildCounterStreamingComputationTask--; |
3448 return o; | 3806 return o; |
3449 } | 3807 } |
3450 | 3808 |
3451 checkStreamingComputationTask(api.StreamingComputationTask o) { | 3809 checkStreamingComputationTask(api.StreamingComputationTask o) { |
3452 buildCounterStreamingComputationTask++; | 3810 buildCounterStreamingComputationTask++; |
3453 if (buildCounterStreamingComputationTask < 3) { | 3811 if (buildCounterStreamingComputationTask < 3) { |
3454 checkUnnamed3163(o.computationRanges); | 3812 checkUnnamed3156(o.computationRanges); |
3455 checkUnnamed3164(o.dataDisks); | 3813 checkUnnamed3157(o.dataDisks); |
3456 unittest.expect(o.taskType, unittest.equals('foo')); | 3814 unittest.expect(o.taskType, unittest.equals('foo')); |
3457 } | 3815 } |
3458 buildCounterStreamingComputationTask--; | 3816 buildCounterStreamingComputationTask--; |
3459 } | 3817 } |
3460 | 3818 |
3461 buildUnnamed3165() { | 3819 buildUnnamed3158() { |
3462 var o = new core.List<api.StreamingComputationConfig>(); | 3820 var o = new core.List<api.StreamingComputationConfig>(); |
3463 o.add(buildStreamingComputationConfig()); | 3821 o.add(buildStreamingComputationConfig()); |
3464 o.add(buildStreamingComputationConfig()); | 3822 o.add(buildStreamingComputationConfig()); |
3465 return o; | 3823 return o; |
3466 } | 3824 } |
3467 | 3825 |
3468 checkUnnamed3165(core.List<api.StreamingComputationConfig> o) { | 3826 checkUnnamed3158(core.List<api.StreamingComputationConfig> o) { |
3469 unittest.expect(o, unittest.hasLength(2)); | 3827 unittest.expect(o, unittest.hasLength(2)); |
3470 checkStreamingComputationConfig(o[0]); | 3828 checkStreamingComputationConfig(o[0]); |
3471 checkStreamingComputationConfig(o[1]); | 3829 checkStreamingComputationConfig(o[1]); |
3472 } | 3830 } |
3473 | 3831 |
3474 buildUnnamed3166() { | 3832 buildUnnamed3159() { |
3475 var o = new core.Map<core.String, core.String>(); | 3833 var o = new core.Map<core.String, core.String>(); |
3476 o["x"] = "foo"; | 3834 o["x"] = "foo"; |
3477 o["y"] = "foo"; | 3835 o["y"] = "foo"; |
3478 return o; | 3836 return o; |
3479 } | 3837 } |
3480 | 3838 |
3481 checkUnnamed3166(core.Map<core.String, core.String> o) { | 3839 checkUnnamed3159(core.Map<core.String, core.String> o) { |
3482 unittest.expect(o, unittest.hasLength(2)); | 3840 unittest.expect(o, unittest.hasLength(2)); |
3483 unittest.expect(o["x"], unittest.equals('foo')); | 3841 unittest.expect(o["x"], unittest.equals('foo')); |
3484 unittest.expect(o["y"], unittest.equals('foo')); | 3842 unittest.expect(o["y"], unittest.equals('foo')); |
3485 } | 3843 } |
3486 | 3844 |
3487 core.int buildCounterStreamingConfigTask = 0; | 3845 core.int buildCounterStreamingConfigTask = 0; |
3488 buildStreamingConfigTask() { | 3846 buildStreamingConfigTask() { |
3489 var o = new api.StreamingConfigTask(); | 3847 var o = new api.StreamingConfigTask(); |
3490 buildCounterStreamingConfigTask++; | 3848 buildCounterStreamingConfigTask++; |
3491 if (buildCounterStreamingConfigTask < 3) { | 3849 if (buildCounterStreamingConfigTask < 3) { |
3492 o.streamingComputationConfigs = buildUnnamed3165(); | 3850 o.streamingComputationConfigs = buildUnnamed3158(); |
3493 o.userStepToStateFamilyNameMap = buildUnnamed3166(); | 3851 o.userStepToStateFamilyNameMap = buildUnnamed3159(); |
3494 o.windmillServiceEndpoint = "foo"; | 3852 o.windmillServiceEndpoint = "foo"; |
3495 o.windmillServicePort = "foo"; | 3853 o.windmillServicePort = "foo"; |
3496 } | 3854 } |
3497 buildCounterStreamingConfigTask--; | 3855 buildCounterStreamingConfigTask--; |
3498 return o; | 3856 return o; |
3499 } | 3857 } |
3500 | 3858 |
3501 checkStreamingConfigTask(api.StreamingConfigTask o) { | 3859 checkStreamingConfigTask(api.StreamingConfigTask o) { |
3502 buildCounterStreamingConfigTask++; | 3860 buildCounterStreamingConfigTask++; |
3503 if (buildCounterStreamingConfigTask < 3) { | 3861 if (buildCounterStreamingConfigTask < 3) { |
3504 checkUnnamed3165(o.streamingComputationConfigs); | 3862 checkUnnamed3158(o.streamingComputationConfigs); |
3505 checkUnnamed3166(o.userStepToStateFamilyNameMap); | 3863 checkUnnamed3159(o.userStepToStateFamilyNameMap); |
3506 unittest.expect(o.windmillServiceEndpoint, unittest.equals('foo')); | 3864 unittest.expect(o.windmillServiceEndpoint, unittest.equals('foo')); |
3507 unittest.expect(o.windmillServicePort, unittest.equals('foo')); | 3865 unittest.expect(o.windmillServicePort, unittest.equals('foo')); |
3508 } | 3866 } |
3509 buildCounterStreamingConfigTask--; | 3867 buildCounterStreamingConfigTask--; |
3510 } | 3868 } |
3511 | 3869 |
3512 core.int buildCounterStreamingSetupTask = 0; | 3870 core.int buildCounterStreamingSetupTask = 0; |
3513 buildStreamingSetupTask() { | 3871 buildStreamingSetupTask() { |
3514 var o = new api.StreamingSetupTask(); | 3872 var o = new api.StreamingSetupTask(); |
3515 buildCounterStreamingSetupTask++; | 3873 buildCounterStreamingSetupTask++; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3567 } | 3925 } |
3568 | 3926 |
3569 checkStreamingStageLocation(api.StreamingStageLocation o) { | 3927 checkStreamingStageLocation(api.StreamingStageLocation o) { |
3570 buildCounterStreamingStageLocation++; | 3928 buildCounterStreamingStageLocation++; |
3571 if (buildCounterStreamingStageLocation < 3) { | 3929 if (buildCounterStreamingStageLocation < 3) { |
3572 unittest.expect(o.streamId, unittest.equals('foo')); | 3930 unittest.expect(o.streamId, unittest.equals('foo')); |
3573 } | 3931 } |
3574 buildCounterStreamingStageLocation--; | 3932 buildCounterStreamingStageLocation--; |
3575 } | 3933 } |
3576 | 3934 |
3577 buildUnnamed3167() { | 3935 buildUnnamed3160() { |
3578 var o = new core.List<core.String>(); | 3936 var o = new core.List<core.String>(); |
3579 o.add("foo"); | 3937 o.add("foo"); |
3580 o.add("foo"); | 3938 o.add("foo"); |
3581 return o; | 3939 return o; |
3582 } | 3940 } |
3583 | 3941 |
3584 checkUnnamed3167(core.List<core.String> o) { | 3942 checkUnnamed3160(core.List<core.String> o) { |
3585 unittest.expect(o, unittest.hasLength(2)); | 3943 unittest.expect(o, unittest.hasLength(2)); |
3586 unittest.expect(o[0], unittest.equals('foo')); | 3944 unittest.expect(o[0], unittest.equals('foo')); |
3587 unittest.expect(o[1], unittest.equals('foo')); | 3945 unittest.expect(o[1], unittest.equals('foo')); |
3588 } | 3946 } |
3589 | 3947 |
3590 core.int buildCounterStringList = 0; | 3948 core.int buildCounterStringList = 0; |
3591 buildStringList() { | 3949 buildStringList() { |
3592 var o = new api.StringList(); | 3950 var o = new api.StringList(); |
3593 buildCounterStringList++; | 3951 buildCounterStringList++; |
3594 if (buildCounterStringList < 3) { | 3952 if (buildCounterStringList < 3) { |
3595 o.elements = buildUnnamed3167(); | 3953 o.elements = buildUnnamed3160(); |
3596 } | 3954 } |
3597 buildCounterStringList--; | 3955 buildCounterStringList--; |
3598 return o; | 3956 return o; |
3599 } | 3957 } |
3600 | 3958 |
3601 checkStringList(api.StringList o) { | 3959 checkStringList(api.StringList o) { |
3602 buildCounterStringList++; | 3960 buildCounterStringList++; |
3603 if (buildCounterStringList < 3) { | 3961 if (buildCounterStringList < 3) { |
3604 checkUnnamed3167(o.elements); | 3962 checkUnnamed3160(o.elements); |
3605 } | 3963 } |
3606 buildCounterStringList--; | 3964 buildCounterStringList--; |
3607 } | 3965 } |
3608 | 3966 |
3609 buildUnnamed3168() { | 3967 buildUnnamed3161() { |
3610 var o = new core.List<api.Parameter>(); | 3968 var o = new core.List<api.Parameter>(); |
3611 o.add(buildParameter()); | 3969 o.add(buildParameter()); |
3612 o.add(buildParameter()); | 3970 o.add(buildParameter()); |
3613 return o; | 3971 return o; |
3614 } | 3972 } |
3615 | 3973 |
3616 checkUnnamed3168(core.List<api.Parameter> o) { | 3974 checkUnnamed3161(core.List<api.Parameter> o) { |
3617 unittest.expect(o, unittest.hasLength(2)); | 3975 unittest.expect(o, unittest.hasLength(2)); |
3618 checkParameter(o[0]); | 3976 checkParameter(o[0]); |
3619 checkParameter(o[1]); | 3977 checkParameter(o[1]); |
3620 } | 3978 } |
3621 | 3979 |
3622 core.int buildCounterStructuredMessage = 0; | 3980 core.int buildCounterStructuredMessage = 0; |
3623 buildStructuredMessage() { | 3981 buildStructuredMessage() { |
3624 var o = new api.StructuredMessage(); | 3982 var o = new api.StructuredMessage(); |
3625 buildCounterStructuredMessage++; | 3983 buildCounterStructuredMessage++; |
3626 if (buildCounterStructuredMessage < 3) { | 3984 if (buildCounterStructuredMessage < 3) { |
3627 o.messageKey = "foo"; | 3985 o.messageKey = "foo"; |
3628 o.messageText = "foo"; | 3986 o.messageText = "foo"; |
3629 o.parameters = buildUnnamed3168(); | 3987 o.parameters = buildUnnamed3161(); |
3630 } | 3988 } |
3631 buildCounterStructuredMessage--; | 3989 buildCounterStructuredMessage--; |
3632 return o; | 3990 return o; |
3633 } | 3991 } |
3634 | 3992 |
3635 checkStructuredMessage(api.StructuredMessage o) { | 3993 checkStructuredMessage(api.StructuredMessage o) { |
3636 buildCounterStructuredMessage++; | 3994 buildCounterStructuredMessage++; |
3637 if (buildCounterStructuredMessage < 3) { | 3995 if (buildCounterStructuredMessage < 3) { |
3638 unittest.expect(o.messageKey, unittest.equals('foo')); | 3996 unittest.expect(o.messageKey, unittest.equals('foo')); |
3639 unittest.expect(o.messageText, unittest.equals('foo')); | 3997 unittest.expect(o.messageText, unittest.equals('foo')); |
3640 checkUnnamed3168(o.parameters); | 3998 checkUnnamed3161(o.parameters); |
3641 } | 3999 } |
3642 buildCounterStructuredMessage--; | 4000 buildCounterStructuredMessage--; |
3643 } | 4001 } |
3644 | 4002 |
3645 buildUnnamed3169() { | 4003 buildUnnamed3162() { |
3646 var o = new core.List<core.String>(); | 4004 var o = new core.List<core.String>(); |
3647 o.add("foo"); | 4005 o.add("foo"); |
3648 o.add("foo"); | 4006 o.add("foo"); |
3649 return o; | 4007 return o; |
3650 } | 4008 } |
3651 | 4009 |
3652 checkUnnamed3169(core.List<core.String> o) { | 4010 checkUnnamed3162(core.List<core.String> o) { |
3653 unittest.expect(o, unittest.hasLength(2)); | 4011 unittest.expect(o, unittest.hasLength(2)); |
3654 unittest.expect(o[0], unittest.equals('foo')); | 4012 unittest.expect(o[0], unittest.equals('foo')); |
3655 unittest.expect(o[1], unittest.equals('foo')); | 4013 unittest.expect(o[1], unittest.equals('foo')); |
3656 } | 4014 } |
3657 | 4015 |
3658 core.int buildCounterTaskRunnerSettings = 0; | 4016 core.int buildCounterTaskRunnerSettings = 0; |
3659 buildTaskRunnerSettings() { | 4017 buildTaskRunnerSettings() { |
3660 var o = new api.TaskRunnerSettings(); | 4018 var o = new api.TaskRunnerSettings(); |
3661 buildCounterTaskRunnerSettings++; | 4019 buildCounterTaskRunnerSettings++; |
3662 if (buildCounterTaskRunnerSettings < 3) { | 4020 if (buildCounterTaskRunnerSettings < 3) { |
3663 o.alsologtostderr = true; | 4021 o.alsologtostderr = true; |
3664 o.baseTaskDir = "foo"; | 4022 o.baseTaskDir = "foo"; |
3665 o.baseUrl = "foo"; | 4023 o.baseUrl = "foo"; |
3666 o.commandlinesFileName = "foo"; | 4024 o.commandlinesFileName = "foo"; |
3667 o.continueOnException = true; | 4025 o.continueOnException = true; |
3668 o.dataflowApiVersion = "foo"; | 4026 o.dataflowApiVersion = "foo"; |
3669 o.harnessCommand = "foo"; | 4027 o.harnessCommand = "foo"; |
3670 o.languageHint = "foo"; | 4028 o.languageHint = "foo"; |
3671 o.logDir = "foo"; | 4029 o.logDir = "foo"; |
3672 o.logToSerialconsole = true; | 4030 o.logToSerialconsole = true; |
3673 o.logUploadLocation = "foo"; | 4031 o.logUploadLocation = "foo"; |
3674 o.oauthScopes = buildUnnamed3169(); | 4032 o.oauthScopes = buildUnnamed3162(); |
3675 o.parallelWorkerSettings = buildWorkerSettings(); | 4033 o.parallelWorkerSettings = buildWorkerSettings(); |
3676 o.streamingWorkerMainClass = "foo"; | 4034 o.streamingWorkerMainClass = "foo"; |
3677 o.taskGroup = "foo"; | 4035 o.taskGroup = "foo"; |
3678 o.taskUser = "foo"; | 4036 o.taskUser = "foo"; |
3679 o.tempStoragePrefix = "foo"; | 4037 o.tempStoragePrefix = "foo"; |
3680 o.vmId = "foo"; | 4038 o.vmId = "foo"; |
3681 o.workflowFileName = "foo"; | 4039 o.workflowFileName = "foo"; |
3682 } | 4040 } |
3683 buildCounterTaskRunnerSettings--; | 4041 buildCounterTaskRunnerSettings--; |
3684 return o; | 4042 return o; |
3685 } | 4043 } |
3686 | 4044 |
3687 checkTaskRunnerSettings(api.TaskRunnerSettings o) { | 4045 checkTaskRunnerSettings(api.TaskRunnerSettings o) { |
3688 buildCounterTaskRunnerSettings++; | 4046 buildCounterTaskRunnerSettings++; |
3689 if (buildCounterTaskRunnerSettings < 3) { | 4047 if (buildCounterTaskRunnerSettings < 3) { |
3690 unittest.expect(o.alsologtostderr, unittest.isTrue); | 4048 unittest.expect(o.alsologtostderr, unittest.isTrue); |
3691 unittest.expect(o.baseTaskDir, unittest.equals('foo')); | 4049 unittest.expect(o.baseTaskDir, unittest.equals('foo')); |
3692 unittest.expect(o.baseUrl, unittest.equals('foo')); | 4050 unittest.expect(o.baseUrl, unittest.equals('foo')); |
3693 unittest.expect(o.commandlinesFileName, unittest.equals('foo')); | 4051 unittest.expect(o.commandlinesFileName, unittest.equals('foo')); |
3694 unittest.expect(o.continueOnException, unittest.isTrue); | 4052 unittest.expect(o.continueOnException, unittest.isTrue); |
3695 unittest.expect(o.dataflowApiVersion, unittest.equals('foo')); | 4053 unittest.expect(o.dataflowApiVersion, unittest.equals('foo')); |
3696 unittest.expect(o.harnessCommand, unittest.equals('foo')); | 4054 unittest.expect(o.harnessCommand, unittest.equals('foo')); |
3697 unittest.expect(o.languageHint, unittest.equals('foo')); | 4055 unittest.expect(o.languageHint, unittest.equals('foo')); |
3698 unittest.expect(o.logDir, unittest.equals('foo')); | 4056 unittest.expect(o.logDir, unittest.equals('foo')); |
3699 unittest.expect(o.logToSerialconsole, unittest.isTrue); | 4057 unittest.expect(o.logToSerialconsole, unittest.isTrue); |
3700 unittest.expect(o.logUploadLocation, unittest.equals('foo')); | 4058 unittest.expect(o.logUploadLocation, unittest.equals('foo')); |
3701 checkUnnamed3169(o.oauthScopes); | 4059 checkUnnamed3162(o.oauthScopes); |
3702 checkWorkerSettings(o.parallelWorkerSettings); | 4060 checkWorkerSettings(o.parallelWorkerSettings); |
3703 unittest.expect(o.streamingWorkerMainClass, unittest.equals('foo')); | 4061 unittest.expect(o.streamingWorkerMainClass, unittest.equals('foo')); |
3704 unittest.expect(o.taskGroup, unittest.equals('foo')); | 4062 unittest.expect(o.taskGroup, unittest.equals('foo')); |
3705 unittest.expect(o.taskUser, unittest.equals('foo')); | 4063 unittest.expect(o.taskUser, unittest.equals('foo')); |
3706 unittest.expect(o.tempStoragePrefix, unittest.equals('foo')); | 4064 unittest.expect(o.tempStoragePrefix, unittest.equals('foo')); |
3707 unittest.expect(o.vmId, unittest.equals('foo')); | 4065 unittest.expect(o.vmId, unittest.equals('foo')); |
3708 unittest.expect(o.workflowFileName, unittest.equals('foo')); | 4066 unittest.expect(o.workflowFileName, unittest.equals('foo')); |
3709 } | 4067 } |
3710 buildCounterTaskRunnerSettings--; | 4068 buildCounterTaskRunnerSettings--; |
3711 } | 4069 } |
3712 | 4070 |
3713 buildUnnamed3170() { | 4071 buildUnnamed3163() { |
3714 var o = new core.List<api.ParameterMetadata>(); | 4072 var o = new core.List<api.ParameterMetadata>(); |
3715 o.add(buildParameterMetadata()); | 4073 o.add(buildParameterMetadata()); |
3716 o.add(buildParameterMetadata()); | 4074 o.add(buildParameterMetadata()); |
3717 return o; | 4075 return o; |
3718 } | 4076 } |
3719 | 4077 |
3720 checkUnnamed3170(core.List<api.ParameterMetadata> o) { | 4078 checkUnnamed3163(core.List<api.ParameterMetadata> o) { |
3721 unittest.expect(o, unittest.hasLength(2)); | 4079 unittest.expect(o, unittest.hasLength(2)); |
3722 checkParameterMetadata(o[0]); | 4080 checkParameterMetadata(o[0]); |
3723 checkParameterMetadata(o[1]); | 4081 checkParameterMetadata(o[1]); |
3724 } | 4082 } |
3725 | 4083 |
3726 core.int buildCounterTemplateMetadata = 0; | 4084 core.int buildCounterTemplateMetadata = 0; |
3727 buildTemplateMetadata() { | 4085 buildTemplateMetadata() { |
3728 var o = new api.TemplateMetadata(); | 4086 var o = new api.TemplateMetadata(); |
3729 buildCounterTemplateMetadata++; | 4087 buildCounterTemplateMetadata++; |
3730 if (buildCounterTemplateMetadata < 3) { | 4088 if (buildCounterTemplateMetadata < 3) { |
3731 o.description = "foo"; | 4089 o.description = "foo"; |
3732 o.name = "foo"; | 4090 o.name = "foo"; |
3733 o.parameters = buildUnnamed3170(); | 4091 o.parameters = buildUnnamed3163(); |
3734 } | 4092 } |
3735 buildCounterTemplateMetadata--; | 4093 buildCounterTemplateMetadata--; |
3736 return o; | 4094 return o; |
3737 } | 4095 } |
3738 | 4096 |
3739 checkTemplateMetadata(api.TemplateMetadata o) { | 4097 checkTemplateMetadata(api.TemplateMetadata o) { |
3740 buildCounterTemplateMetadata++; | 4098 buildCounterTemplateMetadata++; |
3741 if (buildCounterTemplateMetadata < 3) { | 4099 if (buildCounterTemplateMetadata < 3) { |
3742 unittest.expect(o.description, unittest.equals('foo')); | 4100 unittest.expect(o.description, unittest.equals('foo')); |
3743 unittest.expect(o.name, unittest.equals('foo')); | 4101 unittest.expect(o.name, unittest.equals('foo')); |
3744 checkUnnamed3170(o.parameters); | 4102 checkUnnamed3163(o.parameters); |
3745 } | 4103 } |
3746 buildCounterTemplateMetadata--; | 4104 buildCounterTemplateMetadata--; |
3747 } | 4105 } |
3748 | 4106 |
3749 buildUnnamed3171() { | 4107 buildUnnamed3164() { |
3750 var o = new core.List<api.ComputationTopology>(); | 4108 var o = new core.List<api.ComputationTopology>(); |
3751 o.add(buildComputationTopology()); | 4109 o.add(buildComputationTopology()); |
3752 o.add(buildComputationTopology()); | 4110 o.add(buildComputationTopology()); |
3753 return o; | 4111 return o; |
3754 } | 4112 } |
3755 | 4113 |
3756 checkUnnamed3171(core.List<api.ComputationTopology> o) { | 4114 checkUnnamed3164(core.List<api.ComputationTopology> o) { |
3757 unittest.expect(o, unittest.hasLength(2)); | 4115 unittest.expect(o, unittest.hasLength(2)); |
3758 checkComputationTopology(o[0]); | 4116 checkComputationTopology(o[0]); |
3759 checkComputationTopology(o[1]); | 4117 checkComputationTopology(o[1]); |
3760 } | 4118 } |
3761 | 4119 |
3762 buildUnnamed3172() { | 4120 buildUnnamed3165() { |
3763 var o = new core.List<api.DataDiskAssignment>(); | 4121 var o = new core.List<api.DataDiskAssignment>(); |
3764 o.add(buildDataDiskAssignment()); | 4122 o.add(buildDataDiskAssignment()); |
3765 o.add(buildDataDiskAssignment()); | 4123 o.add(buildDataDiskAssignment()); |
3766 return o; | 4124 return o; |
3767 } | 4125 } |
3768 | 4126 |
3769 checkUnnamed3172(core.List<api.DataDiskAssignment> o) { | 4127 checkUnnamed3165(core.List<api.DataDiskAssignment> o) { |
3770 unittest.expect(o, unittest.hasLength(2)); | 4128 unittest.expect(o, unittest.hasLength(2)); |
3771 checkDataDiskAssignment(o[0]); | 4129 checkDataDiskAssignment(o[0]); |
3772 checkDataDiskAssignment(o[1]); | 4130 checkDataDiskAssignment(o[1]); |
3773 } | 4131 } |
3774 | 4132 |
3775 buildUnnamed3173() { | 4133 buildUnnamed3166() { |
3776 var o = new core.Map<core.String, core.String>(); | 4134 var o = new core.Map<core.String, core.String>(); |
3777 o["x"] = "foo"; | 4135 o["x"] = "foo"; |
3778 o["y"] = "foo"; | 4136 o["y"] = "foo"; |
3779 return o; | 4137 return o; |
3780 } | 4138 } |
3781 | 4139 |
3782 checkUnnamed3173(core.Map<core.String, core.String> o) { | 4140 checkUnnamed3166(core.Map<core.String, core.String> o) { |
3783 unittest.expect(o, unittest.hasLength(2)); | 4141 unittest.expect(o, unittest.hasLength(2)); |
3784 unittest.expect(o["x"], unittest.equals('foo')); | 4142 unittest.expect(o["x"], unittest.equals('foo')); |
3785 unittest.expect(o["y"], unittest.equals('foo')); | 4143 unittest.expect(o["y"], unittest.equals('foo')); |
3786 } | 4144 } |
3787 | 4145 |
3788 core.int buildCounterTopologyConfig = 0; | 4146 core.int buildCounterTopologyConfig = 0; |
3789 buildTopologyConfig() { | 4147 buildTopologyConfig() { |
3790 var o = new api.TopologyConfig(); | 4148 var o = new api.TopologyConfig(); |
3791 buildCounterTopologyConfig++; | 4149 buildCounterTopologyConfig++; |
3792 if (buildCounterTopologyConfig < 3) { | 4150 if (buildCounterTopologyConfig < 3) { |
3793 o.computations = buildUnnamed3171(); | 4151 o.computations = buildUnnamed3164(); |
3794 o.dataDiskAssignments = buildUnnamed3172(); | 4152 o.dataDiskAssignments = buildUnnamed3165(); |
3795 o.forwardingKeyBits = 42; | 4153 o.forwardingKeyBits = 42; |
3796 o.persistentStateVersion = 42; | 4154 o.persistentStateVersion = 42; |
3797 o.userStageToComputationNameMap = buildUnnamed3173(); | 4155 o.userStageToComputationNameMap = buildUnnamed3166(); |
3798 } | 4156 } |
3799 buildCounterTopologyConfig--; | 4157 buildCounterTopologyConfig--; |
3800 return o; | 4158 return o; |
3801 } | 4159 } |
3802 | 4160 |
3803 checkTopologyConfig(api.TopologyConfig o) { | 4161 checkTopologyConfig(api.TopologyConfig o) { |
3804 buildCounterTopologyConfig++; | 4162 buildCounterTopologyConfig++; |
3805 if (buildCounterTopologyConfig < 3) { | 4163 if (buildCounterTopologyConfig < 3) { |
3806 checkUnnamed3171(o.computations); | 4164 checkUnnamed3164(o.computations); |
3807 checkUnnamed3172(o.dataDiskAssignments); | 4165 checkUnnamed3165(o.dataDiskAssignments); |
3808 unittest.expect(o.forwardingKeyBits, unittest.equals(42)); | 4166 unittest.expect(o.forwardingKeyBits, unittest.equals(42)); |
3809 unittest.expect(o.persistentStateVersion, unittest.equals(42)); | 4167 unittest.expect(o.persistentStateVersion, unittest.equals(42)); |
3810 checkUnnamed3173(o.userStageToComputationNameMap); | 4168 checkUnnamed3166(o.userStageToComputationNameMap); |
3811 } | 4169 } |
3812 buildCounterTopologyConfig--; | 4170 buildCounterTopologyConfig--; |
3813 } | 4171 } |
3814 | 4172 |
3815 buildUnnamed3174() { | 4173 buildUnnamed3167() { |
3816 var o = new core.List<api.DisplayData>(); | 4174 var o = new core.List<api.DisplayData>(); |
3817 o.add(buildDisplayData()); | 4175 o.add(buildDisplayData()); |
3818 o.add(buildDisplayData()); | 4176 o.add(buildDisplayData()); |
3819 return o; | 4177 return o; |
3820 } | 4178 } |
3821 | 4179 |
3822 checkUnnamed3174(core.List<api.DisplayData> o) { | 4180 checkUnnamed3167(core.List<api.DisplayData> o) { |
3823 unittest.expect(o, unittest.hasLength(2)); | 4181 unittest.expect(o, unittest.hasLength(2)); |
3824 checkDisplayData(o[0]); | 4182 checkDisplayData(o[0]); |
3825 checkDisplayData(o[1]); | 4183 checkDisplayData(o[1]); |
3826 } | 4184 } |
3827 | 4185 |
3828 buildUnnamed3175() { | 4186 buildUnnamed3168() { |
3829 var o = new core.List<core.String>(); | 4187 var o = new core.List<core.String>(); |
3830 o.add("foo"); | 4188 o.add("foo"); |
3831 o.add("foo"); | 4189 o.add("foo"); |
3832 return o; | 4190 return o; |
3833 } | 4191 } |
3834 | 4192 |
3835 checkUnnamed3175(core.List<core.String> o) { | 4193 checkUnnamed3168(core.List<core.String> o) { |
3836 unittest.expect(o, unittest.hasLength(2)); | 4194 unittest.expect(o, unittest.hasLength(2)); |
3837 unittest.expect(o[0], unittest.equals('foo')); | 4195 unittest.expect(o[0], unittest.equals('foo')); |
3838 unittest.expect(o[1], unittest.equals('foo')); | 4196 unittest.expect(o[1], unittest.equals('foo')); |
3839 } | 4197 } |
3840 | 4198 |
3841 buildUnnamed3176() { | 4199 buildUnnamed3169() { |
3842 var o = new core.List<core.String>(); | 4200 var o = new core.List<core.String>(); |
3843 o.add("foo"); | 4201 o.add("foo"); |
3844 o.add("foo"); | 4202 o.add("foo"); |
3845 return o; | 4203 return o; |
3846 } | 4204 } |
3847 | 4205 |
3848 checkUnnamed3176(core.List<core.String> o) { | 4206 checkUnnamed3169(core.List<core.String> o) { |
3849 unittest.expect(o, unittest.hasLength(2)); | 4207 unittest.expect(o, unittest.hasLength(2)); |
3850 unittest.expect(o[0], unittest.equals('foo')); | 4208 unittest.expect(o[0], unittest.equals('foo')); |
3851 unittest.expect(o[1], unittest.equals('foo')); | 4209 unittest.expect(o[1], unittest.equals('foo')); |
3852 } | 4210 } |
3853 | 4211 |
3854 core.int buildCounterTransformSummary = 0; | 4212 core.int buildCounterTransformSummary = 0; |
3855 buildTransformSummary() { | 4213 buildTransformSummary() { |
3856 var o = new api.TransformSummary(); | 4214 var o = new api.TransformSummary(); |
3857 buildCounterTransformSummary++; | 4215 buildCounterTransformSummary++; |
3858 if (buildCounterTransformSummary < 3) { | 4216 if (buildCounterTransformSummary < 3) { |
3859 o.displayData = buildUnnamed3174(); | 4217 o.displayData = buildUnnamed3167(); |
3860 o.id = "foo"; | 4218 o.id = "foo"; |
3861 o.inputCollectionName = buildUnnamed3175(); | 4219 o.inputCollectionName = buildUnnamed3168(); |
3862 o.kind = "foo"; | 4220 o.kind = "foo"; |
3863 o.name = "foo"; | 4221 o.name = "foo"; |
3864 o.outputCollectionName = buildUnnamed3176(); | 4222 o.outputCollectionName = buildUnnamed3169(); |
3865 } | 4223 } |
3866 buildCounterTransformSummary--; | 4224 buildCounterTransformSummary--; |
3867 return o; | 4225 return o; |
3868 } | 4226 } |
3869 | 4227 |
3870 checkTransformSummary(api.TransformSummary o) { | 4228 checkTransformSummary(api.TransformSummary o) { |
3871 buildCounterTransformSummary++; | 4229 buildCounterTransformSummary++; |
3872 if (buildCounterTransformSummary < 3) { | 4230 if (buildCounterTransformSummary < 3) { |
3873 checkUnnamed3174(o.displayData); | 4231 checkUnnamed3167(o.displayData); |
3874 unittest.expect(o.id, unittest.equals('foo')); | 4232 unittest.expect(o.id, unittest.equals('foo')); |
3875 checkUnnamed3175(o.inputCollectionName); | 4233 checkUnnamed3168(o.inputCollectionName); |
3876 unittest.expect(o.kind, unittest.equals('foo')); | 4234 unittest.expect(o.kind, unittest.equals('foo')); |
3877 unittest.expect(o.name, unittest.equals('foo')); | 4235 unittest.expect(o.name, unittest.equals('foo')); |
3878 checkUnnamed3176(o.outputCollectionName); | 4236 checkUnnamed3169(o.outputCollectionName); |
3879 } | 4237 } |
3880 buildCounterTransformSummary--; | 4238 buildCounterTransformSummary--; |
3881 } | 4239 } |
3882 | 4240 |
3883 buildUnnamed3177() { | 4241 buildUnnamed3170() { |
3884 var o = new core.List<api.Package>(); | 4242 var o = new core.List<api.Package>(); |
3885 o.add(buildPackage()); | 4243 o.add(buildPackage()); |
3886 o.add(buildPackage()); | 4244 o.add(buildPackage()); |
3887 return o; | 4245 return o; |
3888 } | 4246 } |
3889 | 4247 |
3890 checkUnnamed3177(core.List<api.Package> o) { | 4248 checkUnnamed3170(core.List<api.Package> o) { |
3891 unittest.expect(o, unittest.hasLength(2)); | 4249 unittest.expect(o, unittest.hasLength(2)); |
3892 checkPackage(o[0]); | 4250 checkPackage(o[0]); |
3893 checkPackage(o[1]); | 4251 checkPackage(o[1]); |
3894 } | 4252 } |
3895 | 4253 |
3896 core.int buildCounterWorkItem = 0; | 4254 core.int buildCounterWorkItem = 0; |
3897 buildWorkItem() { | 4255 buildWorkItem() { |
3898 var o = new api.WorkItem(); | 4256 var o = new api.WorkItem(); |
3899 buildCounterWorkItem++; | 4257 buildCounterWorkItem++; |
3900 if (buildCounterWorkItem < 3) { | 4258 if (buildCounterWorkItem < 3) { |
3901 o.configuration = "foo"; | 4259 o.configuration = "foo"; |
3902 o.id = "foo"; | 4260 o.id = "foo"; |
3903 o.initialReportIndex = "foo"; | 4261 o.initialReportIndex = "foo"; |
3904 o.jobId = "foo"; | 4262 o.jobId = "foo"; |
3905 o.leaseExpireTime = "foo"; | 4263 o.leaseExpireTime = "foo"; |
3906 o.mapTask = buildMapTask(); | 4264 o.mapTask = buildMapTask(); |
3907 o.packages = buildUnnamed3177(); | 4265 o.packages = buildUnnamed3170(); |
3908 o.projectId = "foo"; | 4266 o.projectId = "foo"; |
3909 o.reportStatusInterval = "foo"; | 4267 o.reportStatusInterval = "foo"; |
3910 o.seqMapTask = buildSeqMapTask(); | 4268 o.seqMapTask = buildSeqMapTask(); |
3911 o.shellTask = buildShellTask(); | 4269 o.shellTask = buildShellTask(); |
3912 o.sourceOperationTask = buildSourceOperationRequest(); | 4270 o.sourceOperationTask = buildSourceOperationRequest(); |
3913 o.streamingComputationTask = buildStreamingComputationTask(); | 4271 o.streamingComputationTask = buildStreamingComputationTask(); |
3914 o.streamingConfigTask = buildStreamingConfigTask(); | 4272 o.streamingConfigTask = buildStreamingConfigTask(); |
3915 o.streamingSetupTask = buildStreamingSetupTask(); | 4273 o.streamingSetupTask = buildStreamingSetupTask(); |
3916 } | 4274 } |
3917 buildCounterWorkItem--; | 4275 buildCounterWorkItem--; |
3918 return o; | 4276 return o; |
3919 } | 4277 } |
3920 | 4278 |
3921 checkWorkItem(api.WorkItem o) { | 4279 checkWorkItem(api.WorkItem o) { |
3922 buildCounterWorkItem++; | 4280 buildCounterWorkItem++; |
3923 if (buildCounterWorkItem < 3) { | 4281 if (buildCounterWorkItem < 3) { |
3924 unittest.expect(o.configuration, unittest.equals('foo')); | 4282 unittest.expect(o.configuration, unittest.equals('foo')); |
3925 unittest.expect(o.id, unittest.equals('foo')); | 4283 unittest.expect(o.id, unittest.equals('foo')); |
3926 unittest.expect(o.initialReportIndex, unittest.equals('foo')); | 4284 unittest.expect(o.initialReportIndex, unittest.equals('foo')); |
3927 unittest.expect(o.jobId, unittest.equals('foo')); | 4285 unittest.expect(o.jobId, unittest.equals('foo')); |
3928 unittest.expect(o.leaseExpireTime, unittest.equals('foo')); | 4286 unittest.expect(o.leaseExpireTime, unittest.equals('foo')); |
3929 checkMapTask(o.mapTask); | 4287 checkMapTask(o.mapTask); |
3930 checkUnnamed3177(o.packages); | 4288 checkUnnamed3170(o.packages); |
3931 unittest.expect(o.projectId, unittest.equals('foo')); | 4289 unittest.expect(o.projectId, unittest.equals('foo')); |
3932 unittest.expect(o.reportStatusInterval, unittest.equals('foo')); | 4290 unittest.expect(o.reportStatusInterval, unittest.equals('foo')); |
3933 checkSeqMapTask(o.seqMapTask); | 4291 checkSeqMapTask(o.seqMapTask); |
3934 checkShellTask(o.shellTask); | 4292 checkShellTask(o.shellTask); |
3935 checkSourceOperationRequest(o.sourceOperationTask); | 4293 checkSourceOperationRequest(o.sourceOperationTask); |
3936 checkStreamingComputationTask(o.streamingComputationTask); | 4294 checkStreamingComputationTask(o.streamingComputationTask); |
3937 checkStreamingConfigTask(o.streamingConfigTask); | 4295 checkStreamingConfigTask(o.streamingConfigTask); |
3938 checkStreamingSetupTask(o.streamingSetupTask); | 4296 checkStreamingSetupTask(o.streamingSetupTask); |
3939 } | 4297 } |
3940 buildCounterWorkItem--; | 4298 buildCounterWorkItem--; |
3941 } | 4299 } |
3942 | 4300 |
3943 buildUnnamed3178() { | 4301 buildUnnamed3171() { |
3944 var o = new core.Map<core.String, core.Object>(); | 4302 var o = new core.Map<core.String, core.Object>(); |
3945 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 4303 o["x"] = { |
3946 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 4304 'list': [1, 2, 3], |
| 4305 'bool': true, |
| 4306 'string': 'foo' |
| 4307 }; |
| 4308 o["y"] = { |
| 4309 'list': [1, 2, 3], |
| 4310 'bool': true, |
| 4311 'string': 'foo' |
| 4312 }; |
3947 return o; | 4313 return o; |
3948 } | 4314 } |
3949 | 4315 |
3950 checkUnnamed3178(core.Map<core.String, core.Object> o) { | 4316 checkUnnamed3171(core.Map<core.String, core.Object> o) { |
3951 unittest.expect(o, unittest.hasLength(2)); | 4317 unittest.expect(o, unittest.hasLength(2)); |
3952 var casted43 = (o["x"]) as core.Map; unittest.expect(casted43, unittest.hasLen
gth(3)); unittest.expect(casted43["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted43["bool"], unittest.equals(true)); unittest.expect(casted43["stri
ng"], unittest.equals('foo')); | 4318 var casted43 = (o["x"]) as core.Map; |
3953 var casted44 = (o["y"]) as core.Map; unittest.expect(casted44, unittest.hasLen
gth(3)); unittest.expect(casted44["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted44["bool"], unittest.equals(true)); unittest.expect(casted44["stri
ng"], unittest.equals('foo')); | 4319 unittest.expect(casted43, unittest.hasLength(3)); |
| 4320 unittest.expect(casted43["list"], unittest.equals([1, 2, 3])); |
| 4321 unittest.expect(casted43["bool"], unittest.equals(true)); |
| 4322 unittest.expect(casted43["string"], unittest.equals('foo')); |
| 4323 var casted44 = (o["y"]) as core.Map; |
| 4324 unittest.expect(casted44, unittest.hasLength(3)); |
| 4325 unittest.expect(casted44["list"], unittest.equals([1, 2, 3])); |
| 4326 unittest.expect(casted44["bool"], unittest.equals(true)); |
| 4327 unittest.expect(casted44["string"], unittest.equals('foo')); |
3954 } | 4328 } |
3955 | 4329 |
3956 buildUnnamed3179() { | 4330 buildUnnamed3172() { |
3957 var o = new core.List<api.MetricShortId>(); | 4331 var o = new core.List<api.MetricShortId>(); |
3958 o.add(buildMetricShortId()); | 4332 o.add(buildMetricShortId()); |
3959 o.add(buildMetricShortId()); | 4333 o.add(buildMetricShortId()); |
3960 return o; | 4334 return o; |
3961 } | 4335 } |
3962 | 4336 |
3963 checkUnnamed3179(core.List<api.MetricShortId> o) { | 4337 checkUnnamed3172(core.List<api.MetricShortId> o) { |
3964 unittest.expect(o, unittest.hasLength(2)); | 4338 unittest.expect(o, unittest.hasLength(2)); |
3965 checkMetricShortId(o[0]); | 4339 checkMetricShortId(o[0]); |
3966 checkMetricShortId(o[1]); | 4340 checkMetricShortId(o[1]); |
3967 } | 4341 } |
3968 | 4342 |
3969 core.int buildCounterWorkItemServiceState = 0; | 4343 core.int buildCounterWorkItemServiceState = 0; |
3970 buildWorkItemServiceState() { | 4344 buildWorkItemServiceState() { |
3971 var o = new api.WorkItemServiceState(); | 4345 var o = new api.WorkItemServiceState(); |
3972 buildCounterWorkItemServiceState++; | 4346 buildCounterWorkItemServiceState++; |
3973 if (buildCounterWorkItemServiceState < 3) { | 4347 if (buildCounterWorkItemServiceState < 3) { |
3974 o.harnessData = buildUnnamed3178(); | 4348 o.harnessData = buildUnnamed3171(); |
3975 o.leaseExpireTime = "foo"; | 4349 o.leaseExpireTime = "foo"; |
3976 o.metricShortId = buildUnnamed3179(); | 4350 o.metricShortId = buildUnnamed3172(); |
3977 o.nextReportIndex = "foo"; | 4351 o.nextReportIndex = "foo"; |
3978 o.reportStatusInterval = "foo"; | 4352 o.reportStatusInterval = "foo"; |
3979 o.splitRequest = buildApproximateSplitRequest(); | 4353 o.splitRequest = buildApproximateSplitRequest(); |
3980 o.suggestedStopPoint = buildApproximateProgress(); | 4354 o.suggestedStopPoint = buildApproximateProgress(); |
3981 o.suggestedStopPosition = buildPosition(); | 4355 o.suggestedStopPosition = buildPosition(); |
3982 } | 4356 } |
3983 buildCounterWorkItemServiceState--; | 4357 buildCounterWorkItemServiceState--; |
3984 return o; | 4358 return o; |
3985 } | 4359 } |
3986 | 4360 |
3987 checkWorkItemServiceState(api.WorkItemServiceState o) { | 4361 checkWorkItemServiceState(api.WorkItemServiceState o) { |
3988 buildCounterWorkItemServiceState++; | 4362 buildCounterWorkItemServiceState++; |
3989 if (buildCounterWorkItemServiceState < 3) { | 4363 if (buildCounterWorkItemServiceState < 3) { |
3990 checkUnnamed3178(o.harnessData); | 4364 checkUnnamed3171(o.harnessData); |
3991 unittest.expect(o.leaseExpireTime, unittest.equals('foo')); | 4365 unittest.expect(o.leaseExpireTime, unittest.equals('foo')); |
3992 checkUnnamed3179(o.metricShortId); | 4366 checkUnnamed3172(o.metricShortId); |
3993 unittest.expect(o.nextReportIndex, unittest.equals('foo')); | 4367 unittest.expect(o.nextReportIndex, unittest.equals('foo')); |
3994 unittest.expect(o.reportStatusInterval, unittest.equals('foo')); | 4368 unittest.expect(o.reportStatusInterval, unittest.equals('foo')); |
3995 checkApproximateSplitRequest(o.splitRequest); | 4369 checkApproximateSplitRequest(o.splitRequest); |
3996 checkApproximateProgress(o.suggestedStopPoint); | 4370 checkApproximateProgress(o.suggestedStopPoint); |
3997 checkPosition(o.suggestedStopPosition); | 4371 checkPosition(o.suggestedStopPosition); |
3998 } | 4372 } |
3999 buildCounterWorkItemServiceState--; | 4373 buildCounterWorkItemServiceState--; |
4000 } | 4374 } |
4001 | 4375 |
4002 buildUnnamed3180() { | 4376 buildUnnamed3173() { |
4003 var o = new core.List<api.CounterUpdate>(); | 4377 var o = new core.List<api.CounterUpdate>(); |
4004 o.add(buildCounterUpdate()); | 4378 o.add(buildCounterUpdate()); |
4005 o.add(buildCounterUpdate()); | 4379 o.add(buildCounterUpdate()); |
4006 return o; | 4380 return o; |
4007 } | 4381 } |
4008 | 4382 |
4009 checkUnnamed3180(core.List<api.CounterUpdate> o) { | 4383 checkUnnamed3173(core.List<api.CounterUpdate> o) { |
4010 unittest.expect(o, unittest.hasLength(2)); | 4384 unittest.expect(o, unittest.hasLength(2)); |
4011 checkCounterUpdate(o[0]); | 4385 checkCounterUpdate(o[0]); |
4012 checkCounterUpdate(o[1]); | 4386 checkCounterUpdate(o[1]); |
4013 } | 4387 } |
4014 | 4388 |
4015 buildUnnamed3181() { | 4389 buildUnnamed3174() { |
4016 var o = new core.List<api.Status>(); | 4390 var o = new core.List<api.Status>(); |
4017 o.add(buildStatus()); | 4391 o.add(buildStatus()); |
4018 o.add(buildStatus()); | 4392 o.add(buildStatus()); |
4019 return o; | 4393 return o; |
4020 } | 4394 } |
4021 | 4395 |
4022 checkUnnamed3181(core.List<api.Status> o) { | 4396 checkUnnamed3174(core.List<api.Status> o) { |
4023 unittest.expect(o, unittest.hasLength(2)); | 4397 unittest.expect(o, unittest.hasLength(2)); |
4024 checkStatus(o[0]); | 4398 checkStatus(o[0]); |
4025 checkStatus(o[1]); | 4399 checkStatus(o[1]); |
4026 } | 4400 } |
4027 | 4401 |
4028 buildUnnamed3182() { | 4402 buildUnnamed3175() { |
4029 var o = new core.List<api.MetricUpdate>(); | 4403 var o = new core.List<api.MetricUpdate>(); |
4030 o.add(buildMetricUpdate()); | 4404 o.add(buildMetricUpdate()); |
4031 o.add(buildMetricUpdate()); | 4405 o.add(buildMetricUpdate()); |
4032 return o; | 4406 return o; |
4033 } | 4407 } |
4034 | 4408 |
4035 checkUnnamed3182(core.List<api.MetricUpdate> o) { | 4409 checkUnnamed3175(core.List<api.MetricUpdate> o) { |
4036 unittest.expect(o, unittest.hasLength(2)); | 4410 unittest.expect(o, unittest.hasLength(2)); |
4037 checkMetricUpdate(o[0]); | 4411 checkMetricUpdate(o[0]); |
4038 checkMetricUpdate(o[1]); | 4412 checkMetricUpdate(o[1]); |
4039 } | 4413 } |
4040 | 4414 |
4041 core.int buildCounterWorkItemStatus = 0; | 4415 core.int buildCounterWorkItemStatus = 0; |
4042 buildWorkItemStatus() { | 4416 buildWorkItemStatus() { |
4043 var o = new api.WorkItemStatus(); | 4417 var o = new api.WorkItemStatus(); |
4044 buildCounterWorkItemStatus++; | 4418 buildCounterWorkItemStatus++; |
4045 if (buildCounterWorkItemStatus < 3) { | 4419 if (buildCounterWorkItemStatus < 3) { |
4046 o.completed = true; | 4420 o.completed = true; |
4047 o.counterUpdates = buildUnnamed3180(); | 4421 o.counterUpdates = buildUnnamed3173(); |
4048 o.dynamicSourceSplit = buildDynamicSourceSplit(); | 4422 o.dynamicSourceSplit = buildDynamicSourceSplit(); |
4049 o.errors = buildUnnamed3181(); | 4423 o.errors = buildUnnamed3174(); |
4050 o.metricUpdates = buildUnnamed3182(); | 4424 o.metricUpdates = buildUnnamed3175(); |
4051 o.progress = buildApproximateProgress(); | 4425 o.progress = buildApproximateProgress(); |
4052 o.reportIndex = "foo"; | 4426 o.reportIndex = "foo"; |
4053 o.reportedProgress = buildApproximateReportedProgress(); | 4427 o.reportedProgress = buildApproximateReportedProgress(); |
4054 o.requestedLeaseDuration = "foo"; | 4428 o.requestedLeaseDuration = "foo"; |
4055 o.sourceFork = buildSourceFork(); | 4429 o.sourceFork = buildSourceFork(); |
4056 o.sourceOperationResponse = buildSourceOperationResponse(); | 4430 o.sourceOperationResponse = buildSourceOperationResponse(); |
4057 o.stopPosition = buildPosition(); | 4431 o.stopPosition = buildPosition(); |
4058 o.workItemId = "foo"; | 4432 o.workItemId = "foo"; |
4059 } | 4433 } |
4060 buildCounterWorkItemStatus--; | 4434 buildCounterWorkItemStatus--; |
4061 return o; | 4435 return o; |
4062 } | 4436 } |
4063 | 4437 |
4064 checkWorkItemStatus(api.WorkItemStatus o) { | 4438 checkWorkItemStatus(api.WorkItemStatus o) { |
4065 buildCounterWorkItemStatus++; | 4439 buildCounterWorkItemStatus++; |
4066 if (buildCounterWorkItemStatus < 3) { | 4440 if (buildCounterWorkItemStatus < 3) { |
4067 unittest.expect(o.completed, unittest.isTrue); | 4441 unittest.expect(o.completed, unittest.isTrue); |
4068 checkUnnamed3180(o.counterUpdates); | 4442 checkUnnamed3173(o.counterUpdates); |
4069 checkDynamicSourceSplit(o.dynamicSourceSplit); | 4443 checkDynamicSourceSplit(o.dynamicSourceSplit); |
4070 checkUnnamed3181(o.errors); | 4444 checkUnnamed3174(o.errors); |
4071 checkUnnamed3182(o.metricUpdates); | 4445 checkUnnamed3175(o.metricUpdates); |
4072 checkApproximateProgress(o.progress); | 4446 checkApproximateProgress(o.progress); |
4073 unittest.expect(o.reportIndex, unittest.equals('foo')); | 4447 unittest.expect(o.reportIndex, unittest.equals('foo')); |
4074 checkApproximateReportedProgress(o.reportedProgress); | 4448 checkApproximateReportedProgress(o.reportedProgress); |
4075 unittest.expect(o.requestedLeaseDuration, unittest.equals('foo')); | 4449 unittest.expect(o.requestedLeaseDuration, unittest.equals('foo')); |
4076 checkSourceFork(o.sourceFork); | 4450 checkSourceFork(o.sourceFork); |
4077 checkSourceOperationResponse(o.sourceOperationResponse); | 4451 checkSourceOperationResponse(o.sourceOperationResponse); |
4078 checkPosition(o.stopPosition); | 4452 checkPosition(o.stopPosition); |
4079 unittest.expect(o.workItemId, unittest.equals('foo')); | 4453 unittest.expect(o.workItemId, unittest.equals('foo')); |
4080 } | 4454 } |
4081 buildCounterWorkItemStatus--; | 4455 buildCounterWorkItemStatus--; |
4082 } | 4456 } |
4083 | 4457 |
4084 buildUnnamed3183() { | 4458 buildUnnamed3176() { |
4085 var o = new core.Map<core.String, core.Object>(); | 4459 var o = new core.Map<core.String, core.Object>(); |
4086 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 4460 o["x"] = { |
4087 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 4461 'list': [1, 2, 3], |
| 4462 'bool': true, |
| 4463 'string': 'foo' |
| 4464 }; |
| 4465 o["y"] = { |
| 4466 'list': [1, 2, 3], |
| 4467 'bool': true, |
| 4468 'string': 'foo' |
| 4469 }; |
4088 return o; | 4470 return o; |
4089 } | 4471 } |
4090 | 4472 |
4091 checkUnnamed3183(core.Map<core.String, core.Object> o) { | 4473 checkUnnamed3176(core.Map<core.String, core.Object> o) { |
4092 unittest.expect(o, unittest.hasLength(2)); | 4474 unittest.expect(o, unittest.hasLength(2)); |
4093 var casted45 = (o["x"]) as core.Map; unittest.expect(casted45, unittest.hasLen
gth(3)); unittest.expect(casted45["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted45["bool"], unittest.equals(true)); unittest.expect(casted45["stri
ng"], unittest.equals('foo')); | 4475 var casted45 = (o["x"]) as core.Map; |
4094 var casted46 = (o["y"]) as core.Map; unittest.expect(casted46, unittest.hasLen
gth(3)); unittest.expect(casted46["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted46["bool"], unittest.equals(true)); unittest.expect(casted46["stri
ng"], unittest.equals('foo')); | 4476 unittest.expect(casted45, unittest.hasLength(3)); |
| 4477 unittest.expect(casted45["list"], unittest.equals([1, 2, 3])); |
| 4478 unittest.expect(casted45["bool"], unittest.equals(true)); |
| 4479 unittest.expect(casted45["string"], unittest.equals('foo')); |
| 4480 var casted46 = (o["y"]) as core.Map; |
| 4481 unittest.expect(casted46, unittest.hasLength(3)); |
| 4482 unittest.expect(casted46["list"], unittest.equals([1, 2, 3])); |
| 4483 unittest.expect(casted46["bool"], unittest.equals(true)); |
| 4484 unittest.expect(casted46["string"], unittest.equals('foo')); |
4095 } | 4485 } |
4096 | 4486 |
4097 buildUnnamed3184() { | 4487 buildUnnamed3177() { |
4098 var o = new core.List<core.Map<core.String, core.Object>>(); | 4488 var o = new core.List<core.Map<core.String, core.Object>>(); |
4099 o.add(buildUnnamed3183()); | 4489 o.add(buildUnnamed3176()); |
4100 o.add(buildUnnamed3183()); | 4490 o.add(buildUnnamed3176()); |
4101 return o; | 4491 return o; |
4102 } | 4492 } |
4103 | 4493 |
4104 checkUnnamed3184(core.List<core.Map<core.String, core.Object>> o) { | 4494 checkUnnamed3177(core.List<core.Map<core.String, core.Object>> o) { |
4105 unittest.expect(o, unittest.hasLength(2)); | 4495 unittest.expect(o, unittest.hasLength(2)); |
4106 checkUnnamed3183(o[0]); | 4496 checkUnnamed3176(o[0]); |
4107 checkUnnamed3183(o[1]); | 4497 checkUnnamed3176(o[1]); |
4108 } | 4498 } |
4109 | 4499 |
4110 core.int buildCounterWorkerHealthReport = 0; | 4500 core.int buildCounterWorkerHealthReport = 0; |
4111 buildWorkerHealthReport() { | 4501 buildWorkerHealthReport() { |
4112 var o = new api.WorkerHealthReport(); | 4502 var o = new api.WorkerHealthReport(); |
4113 buildCounterWorkerHealthReport++; | 4503 buildCounterWorkerHealthReport++; |
4114 if (buildCounterWorkerHealthReport < 3) { | 4504 if (buildCounterWorkerHealthReport < 3) { |
4115 o.pods = buildUnnamed3184(); | 4505 o.pods = buildUnnamed3177(); |
4116 o.reportInterval = "foo"; | 4506 o.reportInterval = "foo"; |
4117 o.vmIsHealthy = true; | 4507 o.vmIsHealthy = true; |
4118 o.vmStartupTime = "foo"; | 4508 o.vmStartupTime = "foo"; |
4119 } | 4509 } |
4120 buildCounterWorkerHealthReport--; | 4510 buildCounterWorkerHealthReport--; |
4121 return o; | 4511 return o; |
4122 } | 4512 } |
4123 | 4513 |
4124 checkWorkerHealthReport(api.WorkerHealthReport o) { | 4514 checkWorkerHealthReport(api.WorkerHealthReport o) { |
4125 buildCounterWorkerHealthReport++; | 4515 buildCounterWorkerHealthReport++; |
4126 if (buildCounterWorkerHealthReport < 3) { | 4516 if (buildCounterWorkerHealthReport < 3) { |
4127 checkUnnamed3184(o.pods); | 4517 checkUnnamed3177(o.pods); |
4128 unittest.expect(o.reportInterval, unittest.equals('foo')); | 4518 unittest.expect(o.reportInterval, unittest.equals('foo')); |
4129 unittest.expect(o.vmIsHealthy, unittest.isTrue); | 4519 unittest.expect(o.vmIsHealthy, unittest.isTrue); |
4130 unittest.expect(o.vmStartupTime, unittest.equals('foo')); | 4520 unittest.expect(o.vmStartupTime, unittest.equals('foo')); |
4131 } | 4521 } |
4132 buildCounterWorkerHealthReport--; | 4522 buildCounterWorkerHealthReport--; |
4133 } | 4523 } |
4134 | 4524 |
4135 core.int buildCounterWorkerHealthReportResponse = 0; | 4525 core.int buildCounterWorkerHealthReportResponse = 0; |
4136 buildWorkerHealthReportResponse() { | 4526 buildWorkerHealthReportResponse() { |
4137 var o = new api.WorkerHealthReportResponse(); | 4527 var o = new api.WorkerHealthReportResponse(); |
4138 buildCounterWorkerHealthReportResponse++; | 4528 buildCounterWorkerHealthReportResponse++; |
4139 if (buildCounterWorkerHealthReportResponse < 3) { | 4529 if (buildCounterWorkerHealthReportResponse < 3) { |
4140 o.reportInterval = "foo"; | 4530 o.reportInterval = "foo"; |
4141 } | 4531 } |
4142 buildCounterWorkerHealthReportResponse--; | 4532 buildCounterWorkerHealthReportResponse--; |
4143 return o; | 4533 return o; |
4144 } | 4534 } |
4145 | 4535 |
4146 checkWorkerHealthReportResponse(api.WorkerHealthReportResponse o) { | 4536 checkWorkerHealthReportResponse(api.WorkerHealthReportResponse o) { |
4147 buildCounterWorkerHealthReportResponse++; | 4537 buildCounterWorkerHealthReportResponse++; |
4148 if (buildCounterWorkerHealthReportResponse < 3) { | 4538 if (buildCounterWorkerHealthReportResponse < 3) { |
4149 unittest.expect(o.reportInterval, unittest.equals('foo')); | 4539 unittest.expect(o.reportInterval, unittest.equals('foo')); |
4150 } | 4540 } |
4151 buildCounterWorkerHealthReportResponse--; | 4541 buildCounterWorkerHealthReportResponse--; |
4152 } | 4542 } |
4153 | 4543 |
4154 buildUnnamed3185() { | 4544 buildUnnamed3178() { |
4155 var o = new core.Map<core.String, core.String>(); | 4545 var o = new core.Map<core.String, core.String>(); |
4156 o["x"] = "foo"; | 4546 o["x"] = "foo"; |
4157 o["y"] = "foo"; | 4547 o["y"] = "foo"; |
4158 return o; | 4548 return o; |
4159 } | 4549 } |
4160 | 4550 |
4161 checkUnnamed3185(core.Map<core.String, core.String> o) { | 4551 checkUnnamed3178(core.Map<core.String, core.String> o) { |
4162 unittest.expect(o, unittest.hasLength(2)); | 4552 unittest.expect(o, unittest.hasLength(2)); |
4163 unittest.expect(o["x"], unittest.equals('foo')); | 4553 unittest.expect(o["x"], unittest.equals('foo')); |
4164 unittest.expect(o["y"], unittest.equals('foo')); | 4554 unittest.expect(o["y"], unittest.equals('foo')); |
4165 } | 4555 } |
4166 | 4556 |
4167 core.int buildCounterWorkerMessage = 0; | 4557 core.int buildCounterWorkerMessage = 0; |
4168 buildWorkerMessage() { | 4558 buildWorkerMessage() { |
4169 var o = new api.WorkerMessage(); | 4559 var o = new api.WorkerMessage(); |
4170 buildCounterWorkerMessage++; | 4560 buildCounterWorkerMessage++; |
4171 if (buildCounterWorkerMessage < 3) { | 4561 if (buildCounterWorkerMessage < 3) { |
4172 o.labels = buildUnnamed3185(); | 4562 o.labels = buildUnnamed3178(); |
4173 o.time = "foo"; | 4563 o.time = "foo"; |
4174 o.workerHealthReport = buildWorkerHealthReport(); | 4564 o.workerHealthReport = buildWorkerHealthReport(); |
4175 o.workerMessageCode = buildWorkerMessageCode(); | 4565 o.workerMessageCode = buildWorkerMessageCode(); |
4176 o.workerMetrics = buildResourceUtilizationReport(); | 4566 o.workerMetrics = buildResourceUtilizationReport(); |
| 4567 o.workerShutdownNotice = buildWorkerShutdownNotice(); |
4177 } | 4568 } |
4178 buildCounterWorkerMessage--; | 4569 buildCounterWorkerMessage--; |
4179 return o; | 4570 return o; |
4180 } | 4571 } |
4181 | 4572 |
4182 checkWorkerMessage(api.WorkerMessage o) { | 4573 checkWorkerMessage(api.WorkerMessage o) { |
4183 buildCounterWorkerMessage++; | 4574 buildCounterWorkerMessage++; |
4184 if (buildCounterWorkerMessage < 3) { | 4575 if (buildCounterWorkerMessage < 3) { |
4185 checkUnnamed3185(o.labels); | 4576 checkUnnamed3178(o.labels); |
4186 unittest.expect(o.time, unittest.equals('foo')); | 4577 unittest.expect(o.time, unittest.equals('foo')); |
4187 checkWorkerHealthReport(o.workerHealthReport); | 4578 checkWorkerHealthReport(o.workerHealthReport); |
4188 checkWorkerMessageCode(o.workerMessageCode); | 4579 checkWorkerMessageCode(o.workerMessageCode); |
4189 checkResourceUtilizationReport(o.workerMetrics); | 4580 checkResourceUtilizationReport(o.workerMetrics); |
| 4581 checkWorkerShutdownNotice(o.workerShutdownNotice); |
4190 } | 4582 } |
4191 buildCounterWorkerMessage--; | 4583 buildCounterWorkerMessage--; |
4192 } | 4584 } |
4193 | 4585 |
4194 buildUnnamed3186() { | 4586 buildUnnamed3179() { |
4195 var o = new core.Map<core.String, core.Object>(); | 4587 var o = new core.Map<core.String, core.Object>(); |
4196 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 4588 o["x"] = { |
4197 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 4589 'list': [1, 2, 3], |
| 4590 'bool': true, |
| 4591 'string': 'foo' |
| 4592 }; |
| 4593 o["y"] = { |
| 4594 'list': [1, 2, 3], |
| 4595 'bool': true, |
| 4596 'string': 'foo' |
| 4597 }; |
4198 return o; | 4598 return o; |
4199 } | 4599 } |
4200 | 4600 |
4201 checkUnnamed3186(core.Map<core.String, core.Object> o) { | 4601 checkUnnamed3179(core.Map<core.String, core.Object> o) { |
4202 unittest.expect(o, unittest.hasLength(2)); | 4602 unittest.expect(o, unittest.hasLength(2)); |
4203 var casted47 = (o["x"]) as core.Map; unittest.expect(casted47, unittest.hasLen
gth(3)); unittest.expect(casted47["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted47["bool"], unittest.equals(true)); unittest.expect(casted47["stri
ng"], unittest.equals('foo')); | 4603 var casted47 = (o["x"]) as core.Map; |
4204 var casted48 = (o["y"]) as core.Map; unittest.expect(casted48, unittest.hasLen
gth(3)); unittest.expect(casted48["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted48["bool"], unittest.equals(true)); unittest.expect(casted48["stri
ng"], unittest.equals('foo')); | 4604 unittest.expect(casted47, unittest.hasLength(3)); |
| 4605 unittest.expect(casted47["list"], unittest.equals([1, 2, 3])); |
| 4606 unittest.expect(casted47["bool"], unittest.equals(true)); |
| 4607 unittest.expect(casted47["string"], unittest.equals('foo')); |
| 4608 var casted48 = (o["y"]) as core.Map; |
| 4609 unittest.expect(casted48, unittest.hasLength(3)); |
| 4610 unittest.expect(casted48["list"], unittest.equals([1, 2, 3])); |
| 4611 unittest.expect(casted48["bool"], unittest.equals(true)); |
| 4612 unittest.expect(casted48["string"], unittest.equals('foo')); |
4205 } | 4613 } |
4206 | 4614 |
4207 core.int buildCounterWorkerMessageCode = 0; | 4615 core.int buildCounterWorkerMessageCode = 0; |
4208 buildWorkerMessageCode() { | 4616 buildWorkerMessageCode() { |
4209 var o = new api.WorkerMessageCode(); | 4617 var o = new api.WorkerMessageCode(); |
4210 buildCounterWorkerMessageCode++; | 4618 buildCounterWorkerMessageCode++; |
4211 if (buildCounterWorkerMessageCode < 3) { | 4619 if (buildCounterWorkerMessageCode < 3) { |
4212 o.code = "foo"; | 4620 o.code = "foo"; |
4213 o.parameters = buildUnnamed3186(); | 4621 o.parameters = buildUnnamed3179(); |
4214 } | 4622 } |
4215 buildCounterWorkerMessageCode--; | 4623 buildCounterWorkerMessageCode--; |
4216 return o; | 4624 return o; |
4217 } | 4625 } |
4218 | 4626 |
4219 checkWorkerMessageCode(api.WorkerMessageCode o) { | 4627 checkWorkerMessageCode(api.WorkerMessageCode o) { |
4220 buildCounterWorkerMessageCode++; | 4628 buildCounterWorkerMessageCode++; |
4221 if (buildCounterWorkerMessageCode < 3) { | 4629 if (buildCounterWorkerMessageCode < 3) { |
4222 unittest.expect(o.code, unittest.equals('foo')); | 4630 unittest.expect(o.code, unittest.equals('foo')); |
4223 checkUnnamed3186(o.parameters); | 4631 checkUnnamed3179(o.parameters); |
4224 } | 4632 } |
4225 buildCounterWorkerMessageCode--; | 4633 buildCounterWorkerMessageCode--; |
4226 } | 4634 } |
4227 | 4635 |
4228 core.int buildCounterWorkerMessageResponse = 0; | 4636 core.int buildCounterWorkerMessageResponse = 0; |
4229 buildWorkerMessageResponse() { | 4637 buildWorkerMessageResponse() { |
4230 var o = new api.WorkerMessageResponse(); | 4638 var o = new api.WorkerMessageResponse(); |
4231 buildCounterWorkerMessageResponse++; | 4639 buildCounterWorkerMessageResponse++; |
4232 if (buildCounterWorkerMessageResponse < 3) { | 4640 if (buildCounterWorkerMessageResponse < 3) { |
4233 o.workerHealthReportResponse = buildWorkerHealthReportResponse(); | 4641 o.workerHealthReportResponse = buildWorkerHealthReportResponse(); |
4234 o.workerMetricsResponse = buildResourceUtilizationReportResponse(); | 4642 o.workerMetricsResponse = buildResourceUtilizationReportResponse(); |
| 4643 o.workerShutdownNoticeResponse = buildWorkerShutdownNoticeResponse(); |
4235 } | 4644 } |
4236 buildCounterWorkerMessageResponse--; | 4645 buildCounterWorkerMessageResponse--; |
4237 return o; | 4646 return o; |
4238 } | 4647 } |
4239 | 4648 |
4240 checkWorkerMessageResponse(api.WorkerMessageResponse o) { | 4649 checkWorkerMessageResponse(api.WorkerMessageResponse o) { |
4241 buildCounterWorkerMessageResponse++; | 4650 buildCounterWorkerMessageResponse++; |
4242 if (buildCounterWorkerMessageResponse < 3) { | 4651 if (buildCounterWorkerMessageResponse < 3) { |
4243 checkWorkerHealthReportResponse(o.workerHealthReportResponse); | 4652 checkWorkerHealthReportResponse(o.workerHealthReportResponse); |
4244 checkResourceUtilizationReportResponse(o.workerMetricsResponse); | 4653 checkResourceUtilizationReportResponse(o.workerMetricsResponse); |
| 4654 checkWorkerShutdownNoticeResponse(o.workerShutdownNoticeResponse); |
4245 } | 4655 } |
4246 buildCounterWorkerMessageResponse--; | 4656 buildCounterWorkerMessageResponse--; |
4247 } | 4657 } |
4248 | 4658 |
4249 buildUnnamed3187() { | 4659 buildUnnamed3180() { |
4250 var o = new core.List<api.Disk>(); | 4660 var o = new core.List<api.Disk>(); |
4251 o.add(buildDisk()); | 4661 o.add(buildDisk()); |
4252 o.add(buildDisk()); | 4662 o.add(buildDisk()); |
4253 return o; | 4663 return o; |
4254 } | 4664 } |
4255 | 4665 |
4256 checkUnnamed3187(core.List<api.Disk> o) { | 4666 checkUnnamed3180(core.List<api.Disk> o) { |
4257 unittest.expect(o, unittest.hasLength(2)); | 4667 unittest.expect(o, unittest.hasLength(2)); |
4258 checkDisk(o[0]); | 4668 checkDisk(o[0]); |
4259 checkDisk(o[1]); | 4669 checkDisk(o[1]); |
4260 } | 4670 } |
4261 | 4671 |
4262 buildUnnamed3188() { | 4672 buildUnnamed3181() { |
4263 var o = new core.Map<core.String, core.String>(); | 4673 var o = new core.Map<core.String, core.String>(); |
4264 o["x"] = "foo"; | 4674 o["x"] = "foo"; |
4265 o["y"] = "foo"; | 4675 o["y"] = "foo"; |
4266 return o; | 4676 return o; |
4267 } | 4677 } |
4268 | 4678 |
4269 checkUnnamed3188(core.Map<core.String, core.String> o) { | 4679 checkUnnamed3181(core.Map<core.String, core.String> o) { |
4270 unittest.expect(o, unittest.hasLength(2)); | 4680 unittest.expect(o, unittest.hasLength(2)); |
4271 unittest.expect(o["x"], unittest.equals('foo')); | 4681 unittest.expect(o["x"], unittest.equals('foo')); |
4272 unittest.expect(o["y"], unittest.equals('foo')); | 4682 unittest.expect(o["y"], unittest.equals('foo')); |
4273 } | 4683 } |
4274 | 4684 |
4275 buildUnnamed3189() { | 4685 buildUnnamed3182() { |
4276 var o = new core.List<api.Package>(); | 4686 var o = new core.List<api.Package>(); |
4277 o.add(buildPackage()); | 4687 o.add(buildPackage()); |
4278 o.add(buildPackage()); | 4688 o.add(buildPackage()); |
4279 return o; | 4689 return o; |
4280 } | 4690 } |
4281 | 4691 |
4282 checkUnnamed3189(core.List<api.Package> o) { | 4692 checkUnnamed3182(core.List<api.Package> o) { |
4283 unittest.expect(o, unittest.hasLength(2)); | 4693 unittest.expect(o, unittest.hasLength(2)); |
4284 checkPackage(o[0]); | 4694 checkPackage(o[0]); |
4285 checkPackage(o[1]); | 4695 checkPackage(o[1]); |
4286 } | 4696 } |
4287 | 4697 |
4288 buildUnnamed3190() { | 4698 buildUnnamed3183() { |
4289 var o = new core.Map<core.String, core.Object>(); | 4699 var o = new core.Map<core.String, core.Object>(); |
4290 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 4700 o["x"] = { |
4291 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 4701 'list': [1, 2, 3], |
| 4702 'bool': true, |
| 4703 'string': 'foo' |
| 4704 }; |
| 4705 o["y"] = { |
| 4706 'list': [1, 2, 3], |
| 4707 'bool': true, |
| 4708 'string': 'foo' |
| 4709 }; |
4292 return o; | 4710 return o; |
4293 } | 4711 } |
4294 | 4712 |
4295 checkUnnamed3190(core.Map<core.String, core.Object> o) { | 4713 checkUnnamed3183(core.Map<core.String, core.Object> o) { |
4296 unittest.expect(o, unittest.hasLength(2)); | 4714 unittest.expect(o, unittest.hasLength(2)); |
4297 var casted49 = (o["x"]) as core.Map; unittest.expect(casted49, unittest.hasLen
gth(3)); unittest.expect(casted49["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted49["bool"], unittest.equals(true)); unittest.expect(casted49["stri
ng"], unittest.equals('foo')); | 4715 var casted49 = (o["x"]) as core.Map; |
4298 var casted50 = (o["y"]) as core.Map; unittest.expect(casted50, unittest.hasLen
gth(3)); unittest.expect(casted50["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted50["bool"], unittest.equals(true)); unittest.expect(casted50["stri
ng"], unittest.equals('foo')); | 4716 unittest.expect(casted49, unittest.hasLength(3)); |
| 4717 unittest.expect(casted49["list"], unittest.equals([1, 2, 3])); |
| 4718 unittest.expect(casted49["bool"], unittest.equals(true)); |
| 4719 unittest.expect(casted49["string"], unittest.equals('foo')); |
| 4720 var casted50 = (o["y"]) as core.Map; |
| 4721 unittest.expect(casted50, unittest.hasLength(3)); |
| 4722 unittest.expect(casted50["list"], unittest.equals([1, 2, 3])); |
| 4723 unittest.expect(casted50["bool"], unittest.equals(true)); |
| 4724 unittest.expect(casted50["string"], unittest.equals('foo')); |
4299 } | 4725 } |
4300 | 4726 |
4301 core.int buildCounterWorkerPool = 0; | 4727 core.int buildCounterWorkerPool = 0; |
4302 buildWorkerPool() { | 4728 buildWorkerPool() { |
4303 var o = new api.WorkerPool(); | 4729 var o = new api.WorkerPool(); |
4304 buildCounterWorkerPool++; | 4730 buildCounterWorkerPool++; |
4305 if (buildCounterWorkerPool < 3) { | 4731 if (buildCounterWorkerPool < 3) { |
4306 o.autoscalingSettings = buildAutoscalingSettings(); | 4732 o.autoscalingSettings = buildAutoscalingSettings(); |
4307 o.dataDisks = buildUnnamed3187(); | 4733 o.dataDisks = buildUnnamed3180(); |
4308 o.defaultPackageSet = "foo"; | 4734 o.defaultPackageSet = "foo"; |
4309 o.diskSizeGb = 42; | 4735 o.diskSizeGb = 42; |
4310 o.diskSourceImage = "foo"; | 4736 o.diskSourceImage = "foo"; |
4311 o.diskType = "foo"; | 4737 o.diskType = "foo"; |
4312 o.ipConfiguration = "foo"; | 4738 o.ipConfiguration = "foo"; |
4313 o.kind = "foo"; | 4739 o.kind = "foo"; |
4314 o.machineType = "foo"; | 4740 o.machineType = "foo"; |
4315 o.metadata = buildUnnamed3188(); | 4741 o.metadata = buildUnnamed3181(); |
4316 o.network = "foo"; | 4742 o.network = "foo"; |
4317 o.numThreadsPerWorker = 42; | 4743 o.numThreadsPerWorker = 42; |
4318 o.numWorkers = 42; | 4744 o.numWorkers = 42; |
4319 o.onHostMaintenance = "foo"; | 4745 o.onHostMaintenance = "foo"; |
4320 o.packages = buildUnnamed3189(); | 4746 o.packages = buildUnnamed3182(); |
4321 o.poolArgs = buildUnnamed3190(); | 4747 o.poolArgs = buildUnnamed3183(); |
4322 o.subnetwork = "foo"; | 4748 o.subnetwork = "foo"; |
4323 o.taskrunnerSettings = buildTaskRunnerSettings(); | 4749 o.taskrunnerSettings = buildTaskRunnerSettings(); |
4324 o.teardownPolicy = "foo"; | 4750 o.teardownPolicy = "foo"; |
4325 o.workerHarnessContainerImage = "foo"; | 4751 o.workerHarnessContainerImage = "foo"; |
4326 o.zone = "foo"; | 4752 o.zone = "foo"; |
4327 } | 4753 } |
4328 buildCounterWorkerPool--; | 4754 buildCounterWorkerPool--; |
4329 return o; | 4755 return o; |
4330 } | 4756 } |
4331 | 4757 |
4332 checkWorkerPool(api.WorkerPool o) { | 4758 checkWorkerPool(api.WorkerPool o) { |
4333 buildCounterWorkerPool++; | 4759 buildCounterWorkerPool++; |
4334 if (buildCounterWorkerPool < 3) { | 4760 if (buildCounterWorkerPool < 3) { |
4335 checkAutoscalingSettings(o.autoscalingSettings); | 4761 checkAutoscalingSettings(o.autoscalingSettings); |
4336 checkUnnamed3187(o.dataDisks); | 4762 checkUnnamed3180(o.dataDisks); |
4337 unittest.expect(o.defaultPackageSet, unittest.equals('foo')); | 4763 unittest.expect(o.defaultPackageSet, unittest.equals('foo')); |
4338 unittest.expect(o.diskSizeGb, unittest.equals(42)); | 4764 unittest.expect(o.diskSizeGb, unittest.equals(42)); |
4339 unittest.expect(o.diskSourceImage, unittest.equals('foo')); | 4765 unittest.expect(o.diskSourceImage, unittest.equals('foo')); |
4340 unittest.expect(o.diskType, unittest.equals('foo')); | 4766 unittest.expect(o.diskType, unittest.equals('foo')); |
4341 unittest.expect(o.ipConfiguration, unittest.equals('foo')); | 4767 unittest.expect(o.ipConfiguration, unittest.equals('foo')); |
4342 unittest.expect(o.kind, unittest.equals('foo')); | 4768 unittest.expect(o.kind, unittest.equals('foo')); |
4343 unittest.expect(o.machineType, unittest.equals('foo')); | 4769 unittest.expect(o.machineType, unittest.equals('foo')); |
4344 checkUnnamed3188(o.metadata); | 4770 checkUnnamed3181(o.metadata); |
4345 unittest.expect(o.network, unittest.equals('foo')); | 4771 unittest.expect(o.network, unittest.equals('foo')); |
4346 unittest.expect(o.numThreadsPerWorker, unittest.equals(42)); | 4772 unittest.expect(o.numThreadsPerWorker, unittest.equals(42)); |
4347 unittest.expect(o.numWorkers, unittest.equals(42)); | 4773 unittest.expect(o.numWorkers, unittest.equals(42)); |
4348 unittest.expect(o.onHostMaintenance, unittest.equals('foo')); | 4774 unittest.expect(o.onHostMaintenance, unittest.equals('foo')); |
4349 checkUnnamed3189(o.packages); | 4775 checkUnnamed3182(o.packages); |
4350 checkUnnamed3190(o.poolArgs); | 4776 checkUnnamed3183(o.poolArgs); |
4351 unittest.expect(o.subnetwork, unittest.equals('foo')); | 4777 unittest.expect(o.subnetwork, unittest.equals('foo')); |
4352 checkTaskRunnerSettings(o.taskrunnerSettings); | 4778 checkTaskRunnerSettings(o.taskrunnerSettings); |
4353 unittest.expect(o.teardownPolicy, unittest.equals('foo')); | 4779 unittest.expect(o.teardownPolicy, unittest.equals('foo')); |
4354 unittest.expect(o.workerHarnessContainerImage, unittest.equals('foo')); | 4780 unittest.expect(o.workerHarnessContainerImage, unittest.equals('foo')); |
4355 unittest.expect(o.zone, unittest.equals('foo')); | 4781 unittest.expect(o.zone, unittest.equals('foo')); |
4356 } | 4782 } |
4357 buildCounterWorkerPool--; | 4783 buildCounterWorkerPool--; |
4358 } | 4784 } |
4359 | 4785 |
4360 core.int buildCounterWorkerSettings = 0; | 4786 core.int buildCounterWorkerSettings = 0; |
(...skipping 18 matching lines...) Expand all Loading... |
4379 unittest.expect(o.baseUrl, unittest.equals('foo')); | 4805 unittest.expect(o.baseUrl, unittest.equals('foo')); |
4380 unittest.expect(o.reportingEnabled, unittest.isTrue); | 4806 unittest.expect(o.reportingEnabled, unittest.isTrue); |
4381 unittest.expect(o.servicePath, unittest.equals('foo')); | 4807 unittest.expect(o.servicePath, unittest.equals('foo')); |
4382 unittest.expect(o.shuffleServicePath, unittest.equals('foo')); | 4808 unittest.expect(o.shuffleServicePath, unittest.equals('foo')); |
4383 unittest.expect(o.tempStoragePrefix, unittest.equals('foo')); | 4809 unittest.expect(o.tempStoragePrefix, unittest.equals('foo')); |
4384 unittest.expect(o.workerId, unittest.equals('foo')); | 4810 unittest.expect(o.workerId, unittest.equals('foo')); |
4385 } | 4811 } |
4386 buildCounterWorkerSettings--; | 4812 buildCounterWorkerSettings--; |
4387 } | 4813 } |
4388 | 4814 |
| 4815 core.int buildCounterWorkerShutdownNotice = 0; |
| 4816 buildWorkerShutdownNotice() { |
| 4817 var o = new api.WorkerShutdownNotice(); |
| 4818 buildCounterWorkerShutdownNotice++; |
| 4819 if (buildCounterWorkerShutdownNotice < 3) { |
| 4820 o.reason = "foo"; |
| 4821 } |
| 4822 buildCounterWorkerShutdownNotice--; |
| 4823 return o; |
| 4824 } |
| 4825 |
| 4826 checkWorkerShutdownNotice(api.WorkerShutdownNotice o) { |
| 4827 buildCounterWorkerShutdownNotice++; |
| 4828 if (buildCounterWorkerShutdownNotice < 3) { |
| 4829 unittest.expect(o.reason, unittest.equals('foo')); |
| 4830 } |
| 4831 buildCounterWorkerShutdownNotice--; |
| 4832 } |
| 4833 |
| 4834 core.int buildCounterWorkerShutdownNoticeResponse = 0; |
| 4835 buildWorkerShutdownNoticeResponse() { |
| 4836 var o = new api.WorkerShutdownNoticeResponse(); |
| 4837 buildCounterWorkerShutdownNoticeResponse++; |
| 4838 if (buildCounterWorkerShutdownNoticeResponse < 3) {} |
| 4839 buildCounterWorkerShutdownNoticeResponse--; |
| 4840 return o; |
| 4841 } |
| 4842 |
| 4843 checkWorkerShutdownNoticeResponse(api.WorkerShutdownNoticeResponse o) { |
| 4844 buildCounterWorkerShutdownNoticeResponse++; |
| 4845 if (buildCounterWorkerShutdownNoticeResponse < 3) {} |
| 4846 buildCounterWorkerShutdownNoticeResponse--; |
| 4847 } |
| 4848 |
4389 core.int buildCounterWriteInstruction = 0; | 4849 core.int buildCounterWriteInstruction = 0; |
4390 buildWriteInstruction() { | 4850 buildWriteInstruction() { |
4391 var o = new api.WriteInstruction(); | 4851 var o = new api.WriteInstruction(); |
4392 buildCounterWriteInstruction++; | 4852 buildCounterWriteInstruction++; |
4393 if (buildCounterWriteInstruction < 3) { | 4853 if (buildCounterWriteInstruction < 3) { |
4394 o.input = buildInstructionInput(); | 4854 o.input = buildInstructionInput(); |
4395 o.sink = buildSink(); | 4855 o.sink = buildSink(); |
4396 } | 4856 } |
4397 buildCounterWriteInstruction--; | 4857 buildCounterWriteInstruction--; |
4398 return o; | 4858 return o; |
4399 } | 4859 } |
4400 | 4860 |
4401 checkWriteInstruction(api.WriteInstruction o) { | 4861 checkWriteInstruction(api.WriteInstruction o) { |
4402 buildCounterWriteInstruction++; | 4862 buildCounterWriteInstruction++; |
4403 if (buildCounterWriteInstruction < 3) { | 4863 if (buildCounterWriteInstruction < 3) { |
4404 checkInstructionInput(o.input); | 4864 checkInstructionInput(o.input); |
4405 checkSink(o.sink); | 4865 checkSink(o.sink); |
4406 } | 4866 } |
4407 buildCounterWriteInstruction--; | 4867 buildCounterWriteInstruction--; |
4408 } | 4868 } |
4409 | 4869 |
4410 | |
4411 main() { | 4870 main() { |
4412 unittest.group("obj-schema-ApproximateProgress", () { | 4871 unittest.group("obj-schema-ApproximateProgress", () { |
4413 unittest.test("to-json--from-json", () { | 4872 unittest.test("to-json--from-json", () { |
4414 var o = buildApproximateProgress(); | 4873 var o = buildApproximateProgress(); |
4415 var od = new api.ApproximateProgress.fromJson(o.toJson()); | 4874 var od = new api.ApproximateProgress.fromJson(o.toJson()); |
4416 checkApproximateProgress(od); | 4875 checkApproximateProgress(od); |
4417 }); | 4876 }); |
4418 }); | 4877 }); |
4419 | 4878 |
4420 | |
4421 unittest.group("obj-schema-ApproximateReportedProgress", () { | 4879 unittest.group("obj-schema-ApproximateReportedProgress", () { |
4422 unittest.test("to-json--from-json", () { | 4880 unittest.test("to-json--from-json", () { |
4423 var o = buildApproximateReportedProgress(); | 4881 var o = buildApproximateReportedProgress(); |
4424 var od = new api.ApproximateReportedProgress.fromJson(o.toJson()); | 4882 var od = new api.ApproximateReportedProgress.fromJson(o.toJson()); |
4425 checkApproximateReportedProgress(od); | 4883 checkApproximateReportedProgress(od); |
4426 }); | 4884 }); |
4427 }); | 4885 }); |
4428 | 4886 |
4429 | |
4430 unittest.group("obj-schema-ApproximateSplitRequest", () { | 4887 unittest.group("obj-schema-ApproximateSplitRequest", () { |
4431 unittest.test("to-json--from-json", () { | 4888 unittest.test("to-json--from-json", () { |
4432 var o = buildApproximateSplitRequest(); | 4889 var o = buildApproximateSplitRequest(); |
4433 var od = new api.ApproximateSplitRequest.fromJson(o.toJson()); | 4890 var od = new api.ApproximateSplitRequest.fromJson(o.toJson()); |
4434 checkApproximateSplitRequest(od); | 4891 checkApproximateSplitRequest(od); |
4435 }); | 4892 }); |
4436 }); | 4893 }); |
4437 | 4894 |
4438 | |
4439 unittest.group("obj-schema-AutoscalingEvent", () { | 4895 unittest.group("obj-schema-AutoscalingEvent", () { |
4440 unittest.test("to-json--from-json", () { | 4896 unittest.test("to-json--from-json", () { |
4441 var o = buildAutoscalingEvent(); | 4897 var o = buildAutoscalingEvent(); |
4442 var od = new api.AutoscalingEvent.fromJson(o.toJson()); | 4898 var od = new api.AutoscalingEvent.fromJson(o.toJson()); |
4443 checkAutoscalingEvent(od); | 4899 checkAutoscalingEvent(od); |
4444 }); | 4900 }); |
4445 }); | 4901 }); |
4446 | 4902 |
4447 | |
4448 unittest.group("obj-schema-AutoscalingSettings", () { | 4903 unittest.group("obj-schema-AutoscalingSettings", () { |
4449 unittest.test("to-json--from-json", () { | 4904 unittest.test("to-json--from-json", () { |
4450 var o = buildAutoscalingSettings(); | 4905 var o = buildAutoscalingSettings(); |
4451 var od = new api.AutoscalingSettings.fromJson(o.toJson()); | 4906 var od = new api.AutoscalingSettings.fromJson(o.toJson()); |
4452 checkAutoscalingSettings(od); | 4907 checkAutoscalingSettings(od); |
4453 }); | 4908 }); |
4454 }); | 4909 }); |
4455 | 4910 |
4456 | |
4457 unittest.group("obj-schema-CPUTime", () { | 4911 unittest.group("obj-schema-CPUTime", () { |
4458 unittest.test("to-json--from-json", () { | 4912 unittest.test("to-json--from-json", () { |
4459 var o = buildCPUTime(); | 4913 var o = buildCPUTime(); |
4460 var od = new api.CPUTime.fromJson(o.toJson()); | 4914 var od = new api.CPUTime.fromJson(o.toJson()); |
4461 checkCPUTime(od); | 4915 checkCPUTime(od); |
4462 }); | 4916 }); |
4463 }); | 4917 }); |
4464 | 4918 |
4465 | |
4466 unittest.group("obj-schema-ComponentSource", () { | 4919 unittest.group("obj-schema-ComponentSource", () { |
4467 unittest.test("to-json--from-json", () { | 4920 unittest.test("to-json--from-json", () { |
4468 var o = buildComponentSource(); | 4921 var o = buildComponentSource(); |
4469 var od = new api.ComponentSource.fromJson(o.toJson()); | 4922 var od = new api.ComponentSource.fromJson(o.toJson()); |
4470 checkComponentSource(od); | 4923 checkComponentSource(od); |
4471 }); | 4924 }); |
4472 }); | 4925 }); |
4473 | 4926 |
4474 | |
4475 unittest.group("obj-schema-ComponentTransform", () { | 4927 unittest.group("obj-schema-ComponentTransform", () { |
4476 unittest.test("to-json--from-json", () { | 4928 unittest.test("to-json--from-json", () { |
4477 var o = buildComponentTransform(); | 4929 var o = buildComponentTransform(); |
4478 var od = new api.ComponentTransform.fromJson(o.toJson()); | 4930 var od = new api.ComponentTransform.fromJson(o.toJson()); |
4479 checkComponentTransform(od); | 4931 checkComponentTransform(od); |
4480 }); | 4932 }); |
4481 }); | 4933 }); |
4482 | 4934 |
4483 | |
4484 unittest.group("obj-schema-ComputationTopology", () { | 4935 unittest.group("obj-schema-ComputationTopology", () { |
4485 unittest.test("to-json--from-json", () { | 4936 unittest.test("to-json--from-json", () { |
4486 var o = buildComputationTopology(); | 4937 var o = buildComputationTopology(); |
4487 var od = new api.ComputationTopology.fromJson(o.toJson()); | 4938 var od = new api.ComputationTopology.fromJson(o.toJson()); |
4488 checkComputationTopology(od); | 4939 checkComputationTopology(od); |
4489 }); | 4940 }); |
4490 }); | 4941 }); |
4491 | 4942 |
4492 | |
4493 unittest.group("obj-schema-ConcatPosition", () { | 4943 unittest.group("obj-schema-ConcatPosition", () { |
4494 unittest.test("to-json--from-json", () { | 4944 unittest.test("to-json--from-json", () { |
4495 var o = buildConcatPosition(); | 4945 var o = buildConcatPosition(); |
4496 var od = new api.ConcatPosition.fromJson(o.toJson()); | 4946 var od = new api.ConcatPosition.fromJson(o.toJson()); |
4497 checkConcatPosition(od); | 4947 checkConcatPosition(od); |
4498 }); | 4948 }); |
4499 }); | 4949 }); |
4500 | 4950 |
4501 | |
4502 unittest.group("obj-schema-CounterMetadata", () { | 4951 unittest.group("obj-schema-CounterMetadata", () { |
4503 unittest.test("to-json--from-json", () { | 4952 unittest.test("to-json--from-json", () { |
4504 var o = buildCounterMetadata(); | 4953 var o = buildCounterMetadata(); |
4505 var od = new api.CounterMetadata.fromJson(o.toJson()); | 4954 var od = new api.CounterMetadata.fromJson(o.toJson()); |
4506 checkCounterMetadata(od); | 4955 checkCounterMetadata(od); |
4507 }); | 4956 }); |
4508 }); | 4957 }); |
4509 | 4958 |
4510 | |
4511 unittest.group("obj-schema-CounterStructuredName", () { | 4959 unittest.group("obj-schema-CounterStructuredName", () { |
4512 unittest.test("to-json--from-json", () { | 4960 unittest.test("to-json--from-json", () { |
4513 var o = buildCounterStructuredName(); | 4961 var o = buildCounterStructuredName(); |
4514 var od = new api.CounterStructuredName.fromJson(o.toJson()); | 4962 var od = new api.CounterStructuredName.fromJson(o.toJson()); |
4515 checkCounterStructuredName(od); | 4963 checkCounterStructuredName(od); |
4516 }); | 4964 }); |
4517 }); | 4965 }); |
4518 | 4966 |
4519 | |
4520 unittest.group("obj-schema-CounterStructuredNameAndMetadata", () { | 4967 unittest.group("obj-schema-CounterStructuredNameAndMetadata", () { |
4521 unittest.test("to-json--from-json", () { | 4968 unittest.test("to-json--from-json", () { |
4522 var o = buildCounterStructuredNameAndMetadata(); | 4969 var o = buildCounterStructuredNameAndMetadata(); |
4523 var od = new api.CounterStructuredNameAndMetadata.fromJson(o.toJson()); | 4970 var od = new api.CounterStructuredNameAndMetadata.fromJson(o.toJson()); |
4524 checkCounterStructuredNameAndMetadata(od); | 4971 checkCounterStructuredNameAndMetadata(od); |
4525 }); | 4972 }); |
4526 }); | 4973 }); |
4527 | 4974 |
4528 | |
4529 unittest.group("obj-schema-CounterUpdate", () { | 4975 unittest.group("obj-schema-CounterUpdate", () { |
4530 unittest.test("to-json--from-json", () { | 4976 unittest.test("to-json--from-json", () { |
4531 var o = buildCounterUpdate(); | 4977 var o = buildCounterUpdate(); |
4532 var od = new api.CounterUpdate.fromJson(o.toJson()); | 4978 var od = new api.CounterUpdate.fromJson(o.toJson()); |
4533 checkCounterUpdate(od); | 4979 checkCounterUpdate(od); |
4534 }); | 4980 }); |
4535 }); | 4981 }); |
4536 | 4982 |
4537 | |
4538 unittest.group("obj-schema-CreateJobFromTemplateRequest", () { | 4983 unittest.group("obj-schema-CreateJobFromTemplateRequest", () { |
4539 unittest.test("to-json--from-json", () { | 4984 unittest.test("to-json--from-json", () { |
4540 var o = buildCreateJobFromTemplateRequest(); | 4985 var o = buildCreateJobFromTemplateRequest(); |
4541 var od = new api.CreateJobFromTemplateRequest.fromJson(o.toJson()); | 4986 var od = new api.CreateJobFromTemplateRequest.fromJson(o.toJson()); |
4542 checkCreateJobFromTemplateRequest(od); | 4987 checkCreateJobFromTemplateRequest(od); |
4543 }); | 4988 }); |
4544 }); | 4989 }); |
4545 | 4990 |
4546 | |
4547 unittest.group("obj-schema-CustomSourceLocation", () { | 4991 unittest.group("obj-schema-CustomSourceLocation", () { |
4548 unittest.test("to-json--from-json", () { | 4992 unittest.test("to-json--from-json", () { |
4549 var o = buildCustomSourceLocation(); | 4993 var o = buildCustomSourceLocation(); |
4550 var od = new api.CustomSourceLocation.fromJson(o.toJson()); | 4994 var od = new api.CustomSourceLocation.fromJson(o.toJson()); |
4551 checkCustomSourceLocation(od); | 4995 checkCustomSourceLocation(od); |
4552 }); | 4996 }); |
4553 }); | 4997 }); |
4554 | 4998 |
4555 | |
4556 unittest.group("obj-schema-DataDiskAssignment", () { | 4999 unittest.group("obj-schema-DataDiskAssignment", () { |
4557 unittest.test("to-json--from-json", () { | 5000 unittest.test("to-json--from-json", () { |
4558 var o = buildDataDiskAssignment(); | 5001 var o = buildDataDiskAssignment(); |
4559 var od = new api.DataDiskAssignment.fromJson(o.toJson()); | 5002 var od = new api.DataDiskAssignment.fromJson(o.toJson()); |
4560 checkDataDiskAssignment(od); | 5003 checkDataDiskAssignment(od); |
4561 }); | 5004 }); |
4562 }); | 5005 }); |
4563 | 5006 |
4564 | |
4565 unittest.group("obj-schema-DerivedSource", () { | 5007 unittest.group("obj-schema-DerivedSource", () { |
4566 unittest.test("to-json--from-json", () { | 5008 unittest.test("to-json--from-json", () { |
4567 var o = buildDerivedSource(); | 5009 var o = buildDerivedSource(); |
4568 var od = new api.DerivedSource.fromJson(o.toJson()); | 5010 var od = new api.DerivedSource.fromJson(o.toJson()); |
4569 checkDerivedSource(od); | 5011 checkDerivedSource(od); |
4570 }); | 5012 }); |
4571 }); | 5013 }); |
4572 | 5014 |
4573 | |
4574 unittest.group("obj-schema-Disk", () { | 5015 unittest.group("obj-schema-Disk", () { |
4575 unittest.test("to-json--from-json", () { | 5016 unittest.test("to-json--from-json", () { |
4576 var o = buildDisk(); | 5017 var o = buildDisk(); |
4577 var od = new api.Disk.fromJson(o.toJson()); | 5018 var od = new api.Disk.fromJson(o.toJson()); |
4578 checkDisk(od); | 5019 checkDisk(od); |
4579 }); | 5020 }); |
4580 }); | 5021 }); |
4581 | 5022 |
4582 | |
4583 unittest.group("obj-schema-DisplayData", () { | 5023 unittest.group("obj-schema-DisplayData", () { |
4584 unittest.test("to-json--from-json", () { | 5024 unittest.test("to-json--from-json", () { |
4585 var o = buildDisplayData(); | 5025 var o = buildDisplayData(); |
4586 var od = new api.DisplayData.fromJson(o.toJson()); | 5026 var od = new api.DisplayData.fromJson(o.toJson()); |
4587 checkDisplayData(od); | 5027 checkDisplayData(od); |
4588 }); | 5028 }); |
4589 }); | 5029 }); |
4590 | 5030 |
4591 | |
4592 unittest.group("obj-schema-DistributionUpdate", () { | 5031 unittest.group("obj-schema-DistributionUpdate", () { |
4593 unittest.test("to-json--from-json", () { | 5032 unittest.test("to-json--from-json", () { |
4594 var o = buildDistributionUpdate(); | 5033 var o = buildDistributionUpdate(); |
4595 var od = new api.DistributionUpdate.fromJson(o.toJson()); | 5034 var od = new api.DistributionUpdate.fromJson(o.toJson()); |
4596 checkDistributionUpdate(od); | 5035 checkDistributionUpdate(od); |
4597 }); | 5036 }); |
4598 }); | 5037 }); |
4599 | 5038 |
4600 | |
4601 unittest.group("obj-schema-DynamicSourceSplit", () { | 5039 unittest.group("obj-schema-DynamicSourceSplit", () { |
4602 unittest.test("to-json--from-json", () { | 5040 unittest.test("to-json--from-json", () { |
4603 var o = buildDynamicSourceSplit(); | 5041 var o = buildDynamicSourceSplit(); |
4604 var od = new api.DynamicSourceSplit.fromJson(o.toJson()); | 5042 var od = new api.DynamicSourceSplit.fromJson(o.toJson()); |
4605 checkDynamicSourceSplit(od); | 5043 checkDynamicSourceSplit(od); |
4606 }); | 5044 }); |
4607 }); | 5045 }); |
4608 | 5046 |
4609 | |
4610 unittest.group("obj-schema-Environment", () { | 5047 unittest.group("obj-schema-Environment", () { |
4611 unittest.test("to-json--from-json", () { | 5048 unittest.test("to-json--from-json", () { |
4612 var o = buildEnvironment(); | 5049 var o = buildEnvironment(); |
4613 var od = new api.Environment.fromJson(o.toJson()); | 5050 var od = new api.Environment.fromJson(o.toJson()); |
4614 checkEnvironment(od); | 5051 checkEnvironment(od); |
4615 }); | 5052 }); |
4616 }); | 5053 }); |
4617 | 5054 |
4618 | |
4619 unittest.group("obj-schema-ExecutionStageState", () { | 5055 unittest.group("obj-schema-ExecutionStageState", () { |
4620 unittest.test("to-json--from-json", () { | 5056 unittest.test("to-json--from-json", () { |
4621 var o = buildExecutionStageState(); | 5057 var o = buildExecutionStageState(); |
4622 var od = new api.ExecutionStageState.fromJson(o.toJson()); | 5058 var od = new api.ExecutionStageState.fromJson(o.toJson()); |
4623 checkExecutionStageState(od); | 5059 checkExecutionStageState(od); |
4624 }); | 5060 }); |
4625 }); | 5061 }); |
4626 | 5062 |
4627 | |
4628 unittest.group("obj-schema-ExecutionStageSummary", () { | 5063 unittest.group("obj-schema-ExecutionStageSummary", () { |
4629 unittest.test("to-json--from-json", () { | 5064 unittest.test("to-json--from-json", () { |
4630 var o = buildExecutionStageSummary(); | 5065 var o = buildExecutionStageSummary(); |
4631 var od = new api.ExecutionStageSummary.fromJson(o.toJson()); | 5066 var od = new api.ExecutionStageSummary.fromJson(o.toJson()); |
4632 checkExecutionStageSummary(od); | 5067 checkExecutionStageSummary(od); |
4633 }); | 5068 }); |
4634 }); | 5069 }); |
4635 | 5070 |
4636 | |
4637 unittest.group("obj-schema-FailedLocation", () { | 5071 unittest.group("obj-schema-FailedLocation", () { |
4638 unittest.test("to-json--from-json", () { | 5072 unittest.test("to-json--from-json", () { |
4639 var o = buildFailedLocation(); | 5073 var o = buildFailedLocation(); |
4640 var od = new api.FailedLocation.fromJson(o.toJson()); | 5074 var od = new api.FailedLocation.fromJson(o.toJson()); |
4641 checkFailedLocation(od); | 5075 checkFailedLocation(od); |
4642 }); | 5076 }); |
4643 }); | 5077 }); |
4644 | 5078 |
4645 | |
4646 unittest.group("obj-schema-FlattenInstruction", () { | 5079 unittest.group("obj-schema-FlattenInstruction", () { |
4647 unittest.test("to-json--from-json", () { | 5080 unittest.test("to-json--from-json", () { |
4648 var o = buildFlattenInstruction(); | 5081 var o = buildFlattenInstruction(); |
4649 var od = new api.FlattenInstruction.fromJson(o.toJson()); | 5082 var od = new api.FlattenInstruction.fromJson(o.toJson()); |
4650 checkFlattenInstruction(od); | 5083 checkFlattenInstruction(od); |
4651 }); | 5084 }); |
4652 }); | 5085 }); |
4653 | 5086 |
4654 | |
4655 unittest.group("obj-schema-FloatingPointList", () { | 5087 unittest.group("obj-schema-FloatingPointList", () { |
4656 unittest.test("to-json--from-json", () { | 5088 unittest.test("to-json--from-json", () { |
4657 var o = buildFloatingPointList(); | 5089 var o = buildFloatingPointList(); |
4658 var od = new api.FloatingPointList.fromJson(o.toJson()); | 5090 var od = new api.FloatingPointList.fromJson(o.toJson()); |
4659 checkFloatingPointList(od); | 5091 checkFloatingPointList(od); |
4660 }); | 5092 }); |
4661 }); | 5093 }); |
4662 | 5094 |
4663 | |
4664 unittest.group("obj-schema-FloatingPointMean", () { | 5095 unittest.group("obj-schema-FloatingPointMean", () { |
4665 unittest.test("to-json--from-json", () { | 5096 unittest.test("to-json--from-json", () { |
4666 var o = buildFloatingPointMean(); | 5097 var o = buildFloatingPointMean(); |
4667 var od = new api.FloatingPointMean.fromJson(o.toJson()); | 5098 var od = new api.FloatingPointMean.fromJson(o.toJson()); |
4668 checkFloatingPointMean(od); | 5099 checkFloatingPointMean(od); |
4669 }); | 5100 }); |
4670 }); | 5101 }); |
4671 | 5102 |
4672 | |
4673 unittest.group("obj-schema-GetDebugConfigRequest", () { | 5103 unittest.group("obj-schema-GetDebugConfigRequest", () { |
4674 unittest.test("to-json--from-json", () { | 5104 unittest.test("to-json--from-json", () { |
4675 var o = buildGetDebugConfigRequest(); | 5105 var o = buildGetDebugConfigRequest(); |
4676 var od = new api.GetDebugConfigRequest.fromJson(o.toJson()); | 5106 var od = new api.GetDebugConfigRequest.fromJson(o.toJson()); |
4677 checkGetDebugConfigRequest(od); | 5107 checkGetDebugConfigRequest(od); |
4678 }); | 5108 }); |
4679 }); | 5109 }); |
4680 | 5110 |
4681 | |
4682 unittest.group("obj-schema-GetDebugConfigResponse", () { | 5111 unittest.group("obj-schema-GetDebugConfigResponse", () { |
4683 unittest.test("to-json--from-json", () { | 5112 unittest.test("to-json--from-json", () { |
4684 var o = buildGetDebugConfigResponse(); | 5113 var o = buildGetDebugConfigResponse(); |
4685 var od = new api.GetDebugConfigResponse.fromJson(o.toJson()); | 5114 var od = new api.GetDebugConfigResponse.fromJson(o.toJson()); |
4686 checkGetDebugConfigResponse(od); | 5115 checkGetDebugConfigResponse(od); |
4687 }); | 5116 }); |
4688 }); | 5117 }); |
4689 | 5118 |
4690 | |
4691 unittest.group("obj-schema-GetTemplateResponse", () { | 5119 unittest.group("obj-schema-GetTemplateResponse", () { |
4692 unittest.test("to-json--from-json", () { | 5120 unittest.test("to-json--from-json", () { |
4693 var o = buildGetTemplateResponse(); | 5121 var o = buildGetTemplateResponse(); |
4694 var od = new api.GetTemplateResponse.fromJson(o.toJson()); | 5122 var od = new api.GetTemplateResponse.fromJson(o.toJson()); |
4695 checkGetTemplateResponse(od); | 5123 checkGetTemplateResponse(od); |
4696 }); | 5124 }); |
4697 }); | 5125 }); |
4698 | 5126 |
4699 | |
4700 unittest.group("obj-schema-InstructionInput", () { | 5127 unittest.group("obj-schema-InstructionInput", () { |
4701 unittest.test("to-json--from-json", () { | 5128 unittest.test("to-json--from-json", () { |
4702 var o = buildInstructionInput(); | 5129 var o = buildInstructionInput(); |
4703 var od = new api.InstructionInput.fromJson(o.toJson()); | 5130 var od = new api.InstructionInput.fromJson(o.toJson()); |
4704 checkInstructionInput(od); | 5131 checkInstructionInput(od); |
4705 }); | 5132 }); |
4706 }); | 5133 }); |
4707 | 5134 |
4708 | |
4709 unittest.group("obj-schema-InstructionOutput", () { | 5135 unittest.group("obj-schema-InstructionOutput", () { |
4710 unittest.test("to-json--from-json", () { | 5136 unittest.test("to-json--from-json", () { |
4711 var o = buildInstructionOutput(); | 5137 var o = buildInstructionOutput(); |
4712 var od = new api.InstructionOutput.fromJson(o.toJson()); | 5138 var od = new api.InstructionOutput.fromJson(o.toJson()); |
4713 checkInstructionOutput(od); | 5139 checkInstructionOutput(od); |
4714 }); | 5140 }); |
4715 }); | 5141 }); |
4716 | 5142 |
4717 | |
4718 unittest.group("obj-schema-IntegerList", () { | 5143 unittest.group("obj-schema-IntegerList", () { |
4719 unittest.test("to-json--from-json", () { | 5144 unittest.test("to-json--from-json", () { |
4720 var o = buildIntegerList(); | 5145 var o = buildIntegerList(); |
4721 var od = new api.IntegerList.fromJson(o.toJson()); | 5146 var od = new api.IntegerList.fromJson(o.toJson()); |
4722 checkIntegerList(od); | 5147 checkIntegerList(od); |
4723 }); | 5148 }); |
4724 }); | 5149 }); |
4725 | 5150 |
4726 | |
4727 unittest.group("obj-schema-IntegerMean", () { | 5151 unittest.group("obj-schema-IntegerMean", () { |
4728 unittest.test("to-json--from-json", () { | 5152 unittest.test("to-json--from-json", () { |
4729 var o = buildIntegerMean(); | 5153 var o = buildIntegerMean(); |
4730 var od = new api.IntegerMean.fromJson(o.toJson()); | 5154 var od = new api.IntegerMean.fromJson(o.toJson()); |
4731 checkIntegerMean(od); | 5155 checkIntegerMean(od); |
4732 }); | 5156 }); |
4733 }); | 5157 }); |
4734 | 5158 |
4735 | |
4736 unittest.group("obj-schema-Job", () { | 5159 unittest.group("obj-schema-Job", () { |
4737 unittest.test("to-json--from-json", () { | 5160 unittest.test("to-json--from-json", () { |
4738 var o = buildJob(); | 5161 var o = buildJob(); |
4739 var od = new api.Job.fromJson(o.toJson()); | 5162 var od = new api.Job.fromJson(o.toJson()); |
4740 checkJob(od); | 5163 checkJob(od); |
4741 }); | 5164 }); |
4742 }); | 5165 }); |
4743 | 5166 |
4744 | |
4745 unittest.group("obj-schema-JobExecutionInfo", () { | 5167 unittest.group("obj-schema-JobExecutionInfo", () { |
4746 unittest.test("to-json--from-json", () { | 5168 unittest.test("to-json--from-json", () { |
4747 var o = buildJobExecutionInfo(); | 5169 var o = buildJobExecutionInfo(); |
4748 var od = new api.JobExecutionInfo.fromJson(o.toJson()); | 5170 var od = new api.JobExecutionInfo.fromJson(o.toJson()); |
4749 checkJobExecutionInfo(od); | 5171 checkJobExecutionInfo(od); |
4750 }); | 5172 }); |
4751 }); | 5173 }); |
4752 | 5174 |
4753 | |
4754 unittest.group("obj-schema-JobExecutionStageInfo", () { | 5175 unittest.group("obj-schema-JobExecutionStageInfo", () { |
4755 unittest.test("to-json--from-json", () { | 5176 unittest.test("to-json--from-json", () { |
4756 var o = buildJobExecutionStageInfo(); | 5177 var o = buildJobExecutionStageInfo(); |
4757 var od = new api.JobExecutionStageInfo.fromJson(o.toJson()); | 5178 var od = new api.JobExecutionStageInfo.fromJson(o.toJson()); |
4758 checkJobExecutionStageInfo(od); | 5179 checkJobExecutionStageInfo(od); |
4759 }); | 5180 }); |
4760 }); | 5181 }); |
4761 | 5182 |
4762 | |
4763 unittest.group("obj-schema-JobMessage", () { | 5183 unittest.group("obj-schema-JobMessage", () { |
4764 unittest.test("to-json--from-json", () { | 5184 unittest.test("to-json--from-json", () { |
4765 var o = buildJobMessage(); | 5185 var o = buildJobMessage(); |
4766 var od = new api.JobMessage.fromJson(o.toJson()); | 5186 var od = new api.JobMessage.fromJson(o.toJson()); |
4767 checkJobMessage(od); | 5187 checkJobMessage(od); |
4768 }); | 5188 }); |
4769 }); | 5189 }); |
4770 | 5190 |
4771 | |
4772 unittest.group("obj-schema-JobMetrics", () { | 5191 unittest.group("obj-schema-JobMetrics", () { |
4773 unittest.test("to-json--from-json", () { | 5192 unittest.test("to-json--from-json", () { |
4774 var o = buildJobMetrics(); | 5193 var o = buildJobMetrics(); |
4775 var od = new api.JobMetrics.fromJson(o.toJson()); | 5194 var od = new api.JobMetrics.fromJson(o.toJson()); |
4776 checkJobMetrics(od); | 5195 checkJobMetrics(od); |
4777 }); | 5196 }); |
4778 }); | 5197 }); |
4779 | 5198 |
4780 | |
4781 unittest.group("obj-schema-KeyRangeDataDiskAssignment", () { | 5199 unittest.group("obj-schema-KeyRangeDataDiskAssignment", () { |
4782 unittest.test("to-json--from-json", () { | 5200 unittest.test("to-json--from-json", () { |
4783 var o = buildKeyRangeDataDiskAssignment(); | 5201 var o = buildKeyRangeDataDiskAssignment(); |
4784 var od = new api.KeyRangeDataDiskAssignment.fromJson(o.toJson()); | 5202 var od = new api.KeyRangeDataDiskAssignment.fromJson(o.toJson()); |
4785 checkKeyRangeDataDiskAssignment(od); | 5203 checkKeyRangeDataDiskAssignment(od); |
4786 }); | 5204 }); |
4787 }); | 5205 }); |
4788 | 5206 |
4789 | |
4790 unittest.group("obj-schema-KeyRangeLocation", () { | 5207 unittest.group("obj-schema-KeyRangeLocation", () { |
4791 unittest.test("to-json--from-json", () { | 5208 unittest.test("to-json--from-json", () { |
4792 var o = buildKeyRangeLocation(); | 5209 var o = buildKeyRangeLocation(); |
4793 var od = new api.KeyRangeLocation.fromJson(o.toJson()); | 5210 var od = new api.KeyRangeLocation.fromJson(o.toJson()); |
4794 checkKeyRangeLocation(od); | 5211 checkKeyRangeLocation(od); |
4795 }); | 5212 }); |
4796 }); | 5213 }); |
4797 | 5214 |
4798 | |
4799 unittest.group("obj-schema-LaunchTemplateParameters", () { | 5215 unittest.group("obj-schema-LaunchTemplateParameters", () { |
4800 unittest.test("to-json--from-json", () { | 5216 unittest.test("to-json--from-json", () { |
4801 var o = buildLaunchTemplateParameters(); | 5217 var o = buildLaunchTemplateParameters(); |
4802 var od = new api.LaunchTemplateParameters.fromJson(o.toJson()); | 5218 var od = new api.LaunchTemplateParameters.fromJson(o.toJson()); |
4803 checkLaunchTemplateParameters(od); | 5219 checkLaunchTemplateParameters(od); |
4804 }); | 5220 }); |
4805 }); | 5221 }); |
4806 | 5222 |
4807 | |
4808 unittest.group("obj-schema-LaunchTemplateResponse", () { | 5223 unittest.group("obj-schema-LaunchTemplateResponse", () { |
4809 unittest.test("to-json--from-json", () { | 5224 unittest.test("to-json--from-json", () { |
4810 var o = buildLaunchTemplateResponse(); | 5225 var o = buildLaunchTemplateResponse(); |
4811 var od = new api.LaunchTemplateResponse.fromJson(o.toJson()); | 5226 var od = new api.LaunchTemplateResponse.fromJson(o.toJson()); |
4812 checkLaunchTemplateResponse(od); | 5227 checkLaunchTemplateResponse(od); |
4813 }); | 5228 }); |
4814 }); | 5229 }); |
4815 | 5230 |
4816 | |
4817 unittest.group("obj-schema-LeaseWorkItemRequest", () { | 5231 unittest.group("obj-schema-LeaseWorkItemRequest", () { |
4818 unittest.test("to-json--from-json", () { | 5232 unittest.test("to-json--from-json", () { |
4819 var o = buildLeaseWorkItemRequest(); | 5233 var o = buildLeaseWorkItemRequest(); |
4820 var od = new api.LeaseWorkItemRequest.fromJson(o.toJson()); | 5234 var od = new api.LeaseWorkItemRequest.fromJson(o.toJson()); |
4821 checkLeaseWorkItemRequest(od); | 5235 checkLeaseWorkItemRequest(od); |
4822 }); | 5236 }); |
4823 }); | 5237 }); |
4824 | 5238 |
4825 | |
4826 unittest.group("obj-schema-LeaseWorkItemResponse", () { | 5239 unittest.group("obj-schema-LeaseWorkItemResponse", () { |
4827 unittest.test("to-json--from-json", () { | 5240 unittest.test("to-json--from-json", () { |
4828 var o = buildLeaseWorkItemResponse(); | 5241 var o = buildLeaseWorkItemResponse(); |
4829 var od = new api.LeaseWorkItemResponse.fromJson(o.toJson()); | 5242 var od = new api.LeaseWorkItemResponse.fromJson(o.toJson()); |
4830 checkLeaseWorkItemResponse(od); | 5243 checkLeaseWorkItemResponse(od); |
4831 }); | 5244 }); |
4832 }); | 5245 }); |
4833 | 5246 |
4834 | |
4835 unittest.group("obj-schema-ListJobMessagesResponse", () { | 5247 unittest.group("obj-schema-ListJobMessagesResponse", () { |
4836 unittest.test("to-json--from-json", () { | 5248 unittest.test("to-json--from-json", () { |
4837 var o = buildListJobMessagesResponse(); | 5249 var o = buildListJobMessagesResponse(); |
4838 var od = new api.ListJobMessagesResponse.fromJson(o.toJson()); | 5250 var od = new api.ListJobMessagesResponse.fromJson(o.toJson()); |
4839 checkListJobMessagesResponse(od); | 5251 checkListJobMessagesResponse(od); |
4840 }); | 5252 }); |
4841 }); | 5253 }); |
4842 | 5254 |
4843 | |
4844 unittest.group("obj-schema-ListJobsResponse", () { | 5255 unittest.group("obj-schema-ListJobsResponse", () { |
4845 unittest.test("to-json--from-json", () { | 5256 unittest.test("to-json--from-json", () { |
4846 var o = buildListJobsResponse(); | 5257 var o = buildListJobsResponse(); |
4847 var od = new api.ListJobsResponse.fromJson(o.toJson()); | 5258 var od = new api.ListJobsResponse.fromJson(o.toJson()); |
4848 checkListJobsResponse(od); | 5259 checkListJobsResponse(od); |
4849 }); | 5260 }); |
4850 }); | 5261 }); |
4851 | 5262 |
4852 | |
4853 unittest.group("obj-schema-LogBucket", () { | 5263 unittest.group("obj-schema-LogBucket", () { |
4854 unittest.test("to-json--from-json", () { | 5264 unittest.test("to-json--from-json", () { |
4855 var o = buildLogBucket(); | 5265 var o = buildLogBucket(); |
4856 var od = new api.LogBucket.fromJson(o.toJson()); | 5266 var od = new api.LogBucket.fromJson(o.toJson()); |
4857 checkLogBucket(od); | 5267 checkLogBucket(od); |
4858 }); | 5268 }); |
4859 }); | 5269 }); |
4860 | 5270 |
4861 | |
4862 unittest.group("obj-schema-MapTask", () { | 5271 unittest.group("obj-schema-MapTask", () { |
4863 unittest.test("to-json--from-json", () { | 5272 unittest.test("to-json--from-json", () { |
4864 var o = buildMapTask(); | 5273 var o = buildMapTask(); |
4865 var od = new api.MapTask.fromJson(o.toJson()); | 5274 var od = new api.MapTask.fromJson(o.toJson()); |
4866 checkMapTask(od); | 5275 checkMapTask(od); |
4867 }); | 5276 }); |
4868 }); | 5277 }); |
4869 | 5278 |
4870 | |
4871 unittest.group("obj-schema-MetricShortId", () { | 5279 unittest.group("obj-schema-MetricShortId", () { |
4872 unittest.test("to-json--from-json", () { | 5280 unittest.test("to-json--from-json", () { |
4873 var o = buildMetricShortId(); | 5281 var o = buildMetricShortId(); |
4874 var od = new api.MetricShortId.fromJson(o.toJson()); | 5282 var od = new api.MetricShortId.fromJson(o.toJson()); |
4875 checkMetricShortId(od); | 5283 checkMetricShortId(od); |
4876 }); | 5284 }); |
4877 }); | 5285 }); |
4878 | 5286 |
4879 | |
4880 unittest.group("obj-schema-MetricStructuredName", () { | 5287 unittest.group("obj-schema-MetricStructuredName", () { |
4881 unittest.test("to-json--from-json", () { | 5288 unittest.test("to-json--from-json", () { |
4882 var o = buildMetricStructuredName(); | 5289 var o = buildMetricStructuredName(); |
4883 var od = new api.MetricStructuredName.fromJson(o.toJson()); | 5290 var od = new api.MetricStructuredName.fromJson(o.toJson()); |
4884 checkMetricStructuredName(od); | 5291 checkMetricStructuredName(od); |
4885 }); | 5292 }); |
4886 }); | 5293 }); |
4887 | 5294 |
4888 | |
4889 unittest.group("obj-schema-MetricUpdate", () { | 5295 unittest.group("obj-schema-MetricUpdate", () { |
4890 unittest.test("to-json--from-json", () { | 5296 unittest.test("to-json--from-json", () { |
4891 var o = buildMetricUpdate(); | 5297 var o = buildMetricUpdate(); |
4892 var od = new api.MetricUpdate.fromJson(o.toJson()); | 5298 var od = new api.MetricUpdate.fromJson(o.toJson()); |
4893 checkMetricUpdate(od); | 5299 checkMetricUpdate(od); |
4894 }); | 5300 }); |
4895 }); | 5301 }); |
4896 | 5302 |
4897 | |
4898 unittest.group("obj-schema-MountedDataDisk", () { | 5303 unittest.group("obj-schema-MountedDataDisk", () { |
4899 unittest.test("to-json--from-json", () { | 5304 unittest.test("to-json--from-json", () { |
4900 var o = buildMountedDataDisk(); | 5305 var o = buildMountedDataDisk(); |
4901 var od = new api.MountedDataDisk.fromJson(o.toJson()); | 5306 var od = new api.MountedDataDisk.fromJson(o.toJson()); |
4902 checkMountedDataDisk(od); | 5307 checkMountedDataDisk(od); |
4903 }); | 5308 }); |
4904 }); | 5309 }); |
4905 | 5310 |
4906 | |
4907 unittest.group("obj-schema-MultiOutputInfo", () { | 5311 unittest.group("obj-schema-MultiOutputInfo", () { |
4908 unittest.test("to-json--from-json", () { | 5312 unittest.test("to-json--from-json", () { |
4909 var o = buildMultiOutputInfo(); | 5313 var o = buildMultiOutputInfo(); |
4910 var od = new api.MultiOutputInfo.fromJson(o.toJson()); | 5314 var od = new api.MultiOutputInfo.fromJson(o.toJson()); |
4911 checkMultiOutputInfo(od); | 5315 checkMultiOutputInfo(od); |
4912 }); | 5316 }); |
4913 }); | 5317 }); |
4914 | 5318 |
4915 | |
4916 unittest.group("obj-schema-NameAndKind", () { | 5319 unittest.group("obj-schema-NameAndKind", () { |
4917 unittest.test("to-json--from-json", () { | 5320 unittest.test("to-json--from-json", () { |
4918 var o = buildNameAndKind(); | 5321 var o = buildNameAndKind(); |
4919 var od = new api.NameAndKind.fromJson(o.toJson()); | 5322 var od = new api.NameAndKind.fromJson(o.toJson()); |
4920 checkNameAndKind(od); | 5323 checkNameAndKind(od); |
4921 }); | 5324 }); |
4922 }); | 5325 }); |
4923 | 5326 |
4924 | |
4925 unittest.group("obj-schema-Package", () { | 5327 unittest.group("obj-schema-Package", () { |
4926 unittest.test("to-json--from-json", () { | 5328 unittest.test("to-json--from-json", () { |
4927 var o = buildPackage(); | 5329 var o = buildPackage(); |
4928 var od = new api.Package.fromJson(o.toJson()); | 5330 var od = new api.Package.fromJson(o.toJson()); |
4929 checkPackage(od); | 5331 checkPackage(od); |
4930 }); | 5332 }); |
4931 }); | 5333 }); |
4932 | 5334 |
4933 | |
4934 unittest.group("obj-schema-ParDoInstruction", () { | 5335 unittest.group("obj-schema-ParDoInstruction", () { |
4935 unittest.test("to-json--from-json", () { | 5336 unittest.test("to-json--from-json", () { |
4936 var o = buildParDoInstruction(); | 5337 var o = buildParDoInstruction(); |
4937 var od = new api.ParDoInstruction.fromJson(o.toJson()); | 5338 var od = new api.ParDoInstruction.fromJson(o.toJson()); |
4938 checkParDoInstruction(od); | 5339 checkParDoInstruction(od); |
4939 }); | 5340 }); |
4940 }); | 5341 }); |
4941 | 5342 |
4942 | |
4943 unittest.group("obj-schema-ParallelInstruction", () { | 5343 unittest.group("obj-schema-ParallelInstruction", () { |
4944 unittest.test("to-json--from-json", () { | 5344 unittest.test("to-json--from-json", () { |
4945 var o = buildParallelInstruction(); | 5345 var o = buildParallelInstruction(); |
4946 var od = new api.ParallelInstruction.fromJson(o.toJson()); | 5346 var od = new api.ParallelInstruction.fromJson(o.toJson()); |
4947 checkParallelInstruction(od); | 5347 checkParallelInstruction(od); |
4948 }); | 5348 }); |
4949 }); | 5349 }); |
4950 | 5350 |
4951 | |
4952 unittest.group("obj-schema-Parameter", () { | 5351 unittest.group("obj-schema-Parameter", () { |
4953 unittest.test("to-json--from-json", () { | 5352 unittest.test("to-json--from-json", () { |
4954 var o = buildParameter(); | 5353 var o = buildParameter(); |
4955 var od = new api.Parameter.fromJson(o.toJson()); | 5354 var od = new api.Parameter.fromJson(o.toJson()); |
4956 checkParameter(od); | 5355 checkParameter(od); |
4957 }); | 5356 }); |
4958 }); | 5357 }); |
4959 | 5358 |
4960 | |
4961 unittest.group("obj-schema-ParameterMetadata", () { | 5359 unittest.group("obj-schema-ParameterMetadata", () { |
4962 unittest.test("to-json--from-json", () { | 5360 unittest.test("to-json--from-json", () { |
4963 var o = buildParameterMetadata(); | 5361 var o = buildParameterMetadata(); |
4964 var od = new api.ParameterMetadata.fromJson(o.toJson()); | 5362 var od = new api.ParameterMetadata.fromJson(o.toJson()); |
4965 checkParameterMetadata(od); | 5363 checkParameterMetadata(od); |
4966 }); | 5364 }); |
4967 }); | 5365 }); |
4968 | 5366 |
4969 | |
4970 unittest.group("obj-schema-PartialGroupByKeyInstruction", () { | 5367 unittest.group("obj-schema-PartialGroupByKeyInstruction", () { |
4971 unittest.test("to-json--from-json", () { | 5368 unittest.test("to-json--from-json", () { |
4972 var o = buildPartialGroupByKeyInstruction(); | 5369 var o = buildPartialGroupByKeyInstruction(); |
4973 var od = new api.PartialGroupByKeyInstruction.fromJson(o.toJson()); | 5370 var od = new api.PartialGroupByKeyInstruction.fromJson(o.toJson()); |
4974 checkPartialGroupByKeyInstruction(od); | 5371 checkPartialGroupByKeyInstruction(od); |
4975 }); | 5372 }); |
4976 }); | 5373 }); |
4977 | 5374 |
4978 | |
4979 unittest.group("obj-schema-PipelineDescription", () { | 5375 unittest.group("obj-schema-PipelineDescription", () { |
4980 unittest.test("to-json--from-json", () { | 5376 unittest.test("to-json--from-json", () { |
4981 var o = buildPipelineDescription(); | 5377 var o = buildPipelineDescription(); |
4982 var od = new api.PipelineDescription.fromJson(o.toJson()); | 5378 var od = new api.PipelineDescription.fromJson(o.toJson()); |
4983 checkPipelineDescription(od); | 5379 checkPipelineDescription(od); |
4984 }); | 5380 }); |
4985 }); | 5381 }); |
4986 | 5382 |
4987 | |
4988 unittest.group("obj-schema-Position", () { | 5383 unittest.group("obj-schema-Position", () { |
4989 unittest.test("to-json--from-json", () { | 5384 unittest.test("to-json--from-json", () { |
4990 var o = buildPosition(); | 5385 var o = buildPosition(); |
4991 var od = new api.Position.fromJson(o.toJson()); | 5386 var od = new api.Position.fromJson(o.toJson()); |
4992 checkPosition(od); | 5387 checkPosition(od); |
4993 }); | 5388 }); |
4994 }); | 5389 }); |
4995 | 5390 |
4996 | |
4997 unittest.group("obj-schema-PubsubLocation", () { | 5391 unittest.group("obj-schema-PubsubLocation", () { |
4998 unittest.test("to-json--from-json", () { | 5392 unittest.test("to-json--from-json", () { |
4999 var o = buildPubsubLocation(); | 5393 var o = buildPubsubLocation(); |
5000 var od = new api.PubsubLocation.fromJson(o.toJson()); | 5394 var od = new api.PubsubLocation.fromJson(o.toJson()); |
5001 checkPubsubLocation(od); | 5395 checkPubsubLocation(od); |
5002 }); | 5396 }); |
5003 }); | 5397 }); |
5004 | 5398 |
5005 | |
5006 unittest.group("obj-schema-ReadInstruction", () { | 5399 unittest.group("obj-schema-ReadInstruction", () { |
5007 unittest.test("to-json--from-json", () { | 5400 unittest.test("to-json--from-json", () { |
5008 var o = buildReadInstruction(); | 5401 var o = buildReadInstruction(); |
5009 var od = new api.ReadInstruction.fromJson(o.toJson()); | 5402 var od = new api.ReadInstruction.fromJson(o.toJson()); |
5010 checkReadInstruction(od); | 5403 checkReadInstruction(od); |
5011 }); | 5404 }); |
5012 }); | 5405 }); |
5013 | 5406 |
5014 | |
5015 unittest.group("obj-schema-ReportWorkItemStatusRequest", () { | 5407 unittest.group("obj-schema-ReportWorkItemStatusRequest", () { |
5016 unittest.test("to-json--from-json", () { | 5408 unittest.test("to-json--from-json", () { |
5017 var o = buildReportWorkItemStatusRequest(); | 5409 var o = buildReportWorkItemStatusRequest(); |
5018 var od = new api.ReportWorkItemStatusRequest.fromJson(o.toJson()); | 5410 var od = new api.ReportWorkItemStatusRequest.fromJson(o.toJson()); |
5019 checkReportWorkItemStatusRequest(od); | 5411 checkReportWorkItemStatusRequest(od); |
5020 }); | 5412 }); |
5021 }); | 5413 }); |
5022 | 5414 |
5023 | |
5024 unittest.group("obj-schema-ReportWorkItemStatusResponse", () { | 5415 unittest.group("obj-schema-ReportWorkItemStatusResponse", () { |
5025 unittest.test("to-json--from-json", () { | 5416 unittest.test("to-json--from-json", () { |
5026 var o = buildReportWorkItemStatusResponse(); | 5417 var o = buildReportWorkItemStatusResponse(); |
5027 var od = new api.ReportWorkItemStatusResponse.fromJson(o.toJson()); | 5418 var od = new api.ReportWorkItemStatusResponse.fromJson(o.toJson()); |
5028 checkReportWorkItemStatusResponse(od); | 5419 checkReportWorkItemStatusResponse(od); |
5029 }); | 5420 }); |
5030 }); | 5421 }); |
5031 | 5422 |
5032 | |
5033 unittest.group("obj-schema-ReportedParallelism", () { | 5423 unittest.group("obj-schema-ReportedParallelism", () { |
5034 unittest.test("to-json--from-json", () { | 5424 unittest.test("to-json--from-json", () { |
5035 var o = buildReportedParallelism(); | 5425 var o = buildReportedParallelism(); |
5036 var od = new api.ReportedParallelism.fromJson(o.toJson()); | 5426 var od = new api.ReportedParallelism.fromJson(o.toJson()); |
5037 checkReportedParallelism(od); | 5427 checkReportedParallelism(od); |
5038 }); | 5428 }); |
5039 }); | 5429 }); |
5040 | 5430 |
5041 | |
5042 unittest.group("obj-schema-ResourceUtilizationReport", () { | 5431 unittest.group("obj-schema-ResourceUtilizationReport", () { |
5043 unittest.test("to-json--from-json", () { | 5432 unittest.test("to-json--from-json", () { |
5044 var o = buildResourceUtilizationReport(); | 5433 var o = buildResourceUtilizationReport(); |
5045 var od = new api.ResourceUtilizationReport.fromJson(o.toJson()); | 5434 var od = new api.ResourceUtilizationReport.fromJson(o.toJson()); |
5046 checkResourceUtilizationReport(od); | 5435 checkResourceUtilizationReport(od); |
5047 }); | 5436 }); |
5048 }); | 5437 }); |
5049 | 5438 |
5050 | |
5051 unittest.group("obj-schema-ResourceUtilizationReportResponse", () { | 5439 unittest.group("obj-schema-ResourceUtilizationReportResponse", () { |
5052 unittest.test("to-json--from-json", () { | 5440 unittest.test("to-json--from-json", () { |
5053 var o = buildResourceUtilizationReportResponse(); | 5441 var o = buildResourceUtilizationReportResponse(); |
5054 var od = new api.ResourceUtilizationReportResponse.fromJson(o.toJson()); | 5442 var od = new api.ResourceUtilizationReportResponse.fromJson(o.toJson()); |
5055 checkResourceUtilizationReportResponse(od); | 5443 checkResourceUtilizationReportResponse(od); |
5056 }); | 5444 }); |
5057 }); | 5445 }); |
5058 | 5446 |
5059 | |
5060 unittest.group("obj-schema-RuntimeEnvironment", () { | 5447 unittest.group("obj-schema-RuntimeEnvironment", () { |
5061 unittest.test("to-json--from-json", () { | 5448 unittest.test("to-json--from-json", () { |
5062 var o = buildRuntimeEnvironment(); | 5449 var o = buildRuntimeEnvironment(); |
5063 var od = new api.RuntimeEnvironment.fromJson(o.toJson()); | 5450 var od = new api.RuntimeEnvironment.fromJson(o.toJson()); |
5064 checkRuntimeEnvironment(od); | 5451 checkRuntimeEnvironment(od); |
5065 }); | 5452 }); |
5066 }); | 5453 }); |
5067 | 5454 |
5068 | |
5069 unittest.group("obj-schema-SendDebugCaptureRequest", () { | 5455 unittest.group("obj-schema-SendDebugCaptureRequest", () { |
5070 unittest.test("to-json--from-json", () { | 5456 unittest.test("to-json--from-json", () { |
5071 var o = buildSendDebugCaptureRequest(); | 5457 var o = buildSendDebugCaptureRequest(); |
5072 var od = new api.SendDebugCaptureRequest.fromJson(o.toJson()); | 5458 var od = new api.SendDebugCaptureRequest.fromJson(o.toJson()); |
5073 checkSendDebugCaptureRequest(od); | 5459 checkSendDebugCaptureRequest(od); |
5074 }); | 5460 }); |
5075 }); | 5461 }); |
5076 | 5462 |
5077 | |
5078 unittest.group("obj-schema-SendDebugCaptureResponse", () { | 5463 unittest.group("obj-schema-SendDebugCaptureResponse", () { |
5079 unittest.test("to-json--from-json", () { | 5464 unittest.test("to-json--from-json", () { |
5080 var o = buildSendDebugCaptureResponse(); | 5465 var o = buildSendDebugCaptureResponse(); |
5081 var od = new api.SendDebugCaptureResponse.fromJson(o.toJson()); | 5466 var od = new api.SendDebugCaptureResponse.fromJson(o.toJson()); |
5082 checkSendDebugCaptureResponse(od); | 5467 checkSendDebugCaptureResponse(od); |
5083 }); | 5468 }); |
5084 }); | 5469 }); |
5085 | 5470 |
5086 | |
5087 unittest.group("obj-schema-SendWorkerMessagesRequest", () { | 5471 unittest.group("obj-schema-SendWorkerMessagesRequest", () { |
5088 unittest.test("to-json--from-json", () { | 5472 unittest.test("to-json--from-json", () { |
5089 var o = buildSendWorkerMessagesRequest(); | 5473 var o = buildSendWorkerMessagesRequest(); |
5090 var od = new api.SendWorkerMessagesRequest.fromJson(o.toJson()); | 5474 var od = new api.SendWorkerMessagesRequest.fromJson(o.toJson()); |
5091 checkSendWorkerMessagesRequest(od); | 5475 checkSendWorkerMessagesRequest(od); |
5092 }); | 5476 }); |
5093 }); | 5477 }); |
5094 | 5478 |
5095 | |
5096 unittest.group("obj-schema-SendWorkerMessagesResponse", () { | 5479 unittest.group("obj-schema-SendWorkerMessagesResponse", () { |
5097 unittest.test("to-json--from-json", () { | 5480 unittest.test("to-json--from-json", () { |
5098 var o = buildSendWorkerMessagesResponse(); | 5481 var o = buildSendWorkerMessagesResponse(); |
5099 var od = new api.SendWorkerMessagesResponse.fromJson(o.toJson()); | 5482 var od = new api.SendWorkerMessagesResponse.fromJson(o.toJson()); |
5100 checkSendWorkerMessagesResponse(od); | 5483 checkSendWorkerMessagesResponse(od); |
5101 }); | 5484 }); |
5102 }); | 5485 }); |
5103 | 5486 |
5104 | |
5105 unittest.group("obj-schema-SeqMapTask", () { | 5487 unittest.group("obj-schema-SeqMapTask", () { |
5106 unittest.test("to-json--from-json", () { | 5488 unittest.test("to-json--from-json", () { |
5107 var o = buildSeqMapTask(); | 5489 var o = buildSeqMapTask(); |
5108 var od = new api.SeqMapTask.fromJson(o.toJson()); | 5490 var od = new api.SeqMapTask.fromJson(o.toJson()); |
5109 checkSeqMapTask(od); | 5491 checkSeqMapTask(od); |
5110 }); | 5492 }); |
5111 }); | 5493 }); |
5112 | 5494 |
5113 | |
5114 unittest.group("obj-schema-SeqMapTaskOutputInfo", () { | 5495 unittest.group("obj-schema-SeqMapTaskOutputInfo", () { |
5115 unittest.test("to-json--from-json", () { | 5496 unittest.test("to-json--from-json", () { |
5116 var o = buildSeqMapTaskOutputInfo(); | 5497 var o = buildSeqMapTaskOutputInfo(); |
5117 var od = new api.SeqMapTaskOutputInfo.fromJson(o.toJson()); | 5498 var od = new api.SeqMapTaskOutputInfo.fromJson(o.toJson()); |
5118 checkSeqMapTaskOutputInfo(od); | 5499 checkSeqMapTaskOutputInfo(od); |
5119 }); | 5500 }); |
5120 }); | 5501 }); |
5121 | 5502 |
5122 | |
5123 unittest.group("obj-schema-ShellTask", () { | 5503 unittest.group("obj-schema-ShellTask", () { |
5124 unittest.test("to-json--from-json", () { | 5504 unittest.test("to-json--from-json", () { |
5125 var o = buildShellTask(); | 5505 var o = buildShellTask(); |
5126 var od = new api.ShellTask.fromJson(o.toJson()); | 5506 var od = new api.ShellTask.fromJson(o.toJson()); |
5127 checkShellTask(od); | 5507 checkShellTask(od); |
5128 }); | 5508 }); |
5129 }); | 5509 }); |
5130 | 5510 |
| 5511 unittest.group("obj-schema-SideInputId", () { |
| 5512 unittest.test("to-json--from-json", () { |
| 5513 var o = buildSideInputId(); |
| 5514 var od = new api.SideInputId.fromJson(o.toJson()); |
| 5515 checkSideInputId(od); |
| 5516 }); |
| 5517 }); |
5131 | 5518 |
5132 unittest.group("obj-schema-SideInputInfo", () { | 5519 unittest.group("obj-schema-SideInputInfo", () { |
5133 unittest.test("to-json--from-json", () { | 5520 unittest.test("to-json--from-json", () { |
5134 var o = buildSideInputInfo(); | 5521 var o = buildSideInputInfo(); |
5135 var od = new api.SideInputInfo.fromJson(o.toJson()); | 5522 var od = new api.SideInputInfo.fromJson(o.toJson()); |
5136 checkSideInputInfo(od); | 5523 checkSideInputInfo(od); |
5137 }); | 5524 }); |
5138 }); | 5525 }); |
5139 | 5526 |
5140 | |
5141 unittest.group("obj-schema-Sink", () { | 5527 unittest.group("obj-schema-Sink", () { |
5142 unittest.test("to-json--from-json", () { | 5528 unittest.test("to-json--from-json", () { |
5143 var o = buildSink(); | 5529 var o = buildSink(); |
5144 var od = new api.Sink.fromJson(o.toJson()); | 5530 var od = new api.Sink.fromJson(o.toJson()); |
5145 checkSink(od); | 5531 checkSink(od); |
5146 }); | 5532 }); |
5147 }); | 5533 }); |
5148 | 5534 |
5149 | |
5150 unittest.group("obj-schema-Source", () { | 5535 unittest.group("obj-schema-Source", () { |
5151 unittest.test("to-json--from-json", () { | 5536 unittest.test("to-json--from-json", () { |
5152 var o = buildSource(); | 5537 var o = buildSource(); |
5153 var od = new api.Source.fromJson(o.toJson()); | 5538 var od = new api.Source.fromJson(o.toJson()); |
5154 checkSource(od); | 5539 checkSource(od); |
5155 }); | 5540 }); |
5156 }); | 5541 }); |
5157 | 5542 |
5158 | |
5159 unittest.group("obj-schema-SourceFork", () { | 5543 unittest.group("obj-schema-SourceFork", () { |
5160 unittest.test("to-json--from-json", () { | 5544 unittest.test("to-json--from-json", () { |
5161 var o = buildSourceFork(); | 5545 var o = buildSourceFork(); |
5162 var od = new api.SourceFork.fromJson(o.toJson()); | 5546 var od = new api.SourceFork.fromJson(o.toJson()); |
5163 checkSourceFork(od); | 5547 checkSourceFork(od); |
5164 }); | 5548 }); |
5165 }); | 5549 }); |
5166 | 5550 |
5167 | |
5168 unittest.group("obj-schema-SourceGetMetadataRequest", () { | 5551 unittest.group("obj-schema-SourceGetMetadataRequest", () { |
5169 unittest.test("to-json--from-json", () { | 5552 unittest.test("to-json--from-json", () { |
5170 var o = buildSourceGetMetadataRequest(); | 5553 var o = buildSourceGetMetadataRequest(); |
5171 var od = new api.SourceGetMetadataRequest.fromJson(o.toJson()); | 5554 var od = new api.SourceGetMetadataRequest.fromJson(o.toJson()); |
5172 checkSourceGetMetadataRequest(od); | 5555 checkSourceGetMetadataRequest(od); |
5173 }); | 5556 }); |
5174 }); | 5557 }); |
5175 | 5558 |
5176 | |
5177 unittest.group("obj-schema-SourceGetMetadataResponse", () { | 5559 unittest.group("obj-schema-SourceGetMetadataResponse", () { |
5178 unittest.test("to-json--from-json", () { | 5560 unittest.test("to-json--from-json", () { |
5179 var o = buildSourceGetMetadataResponse(); | 5561 var o = buildSourceGetMetadataResponse(); |
5180 var od = new api.SourceGetMetadataResponse.fromJson(o.toJson()); | 5562 var od = new api.SourceGetMetadataResponse.fromJson(o.toJson()); |
5181 checkSourceGetMetadataResponse(od); | 5563 checkSourceGetMetadataResponse(od); |
5182 }); | 5564 }); |
5183 }); | 5565 }); |
5184 | 5566 |
5185 | |
5186 unittest.group("obj-schema-SourceMetadata", () { | 5567 unittest.group("obj-schema-SourceMetadata", () { |
5187 unittest.test("to-json--from-json", () { | 5568 unittest.test("to-json--from-json", () { |
5188 var o = buildSourceMetadata(); | 5569 var o = buildSourceMetadata(); |
5189 var od = new api.SourceMetadata.fromJson(o.toJson()); | 5570 var od = new api.SourceMetadata.fromJson(o.toJson()); |
5190 checkSourceMetadata(od); | 5571 checkSourceMetadata(od); |
5191 }); | 5572 }); |
5192 }); | 5573 }); |
5193 | 5574 |
5194 | |
5195 unittest.group("obj-schema-SourceOperationRequest", () { | 5575 unittest.group("obj-schema-SourceOperationRequest", () { |
5196 unittest.test("to-json--from-json", () { | 5576 unittest.test("to-json--from-json", () { |
5197 var o = buildSourceOperationRequest(); | 5577 var o = buildSourceOperationRequest(); |
5198 var od = new api.SourceOperationRequest.fromJson(o.toJson()); | 5578 var od = new api.SourceOperationRequest.fromJson(o.toJson()); |
5199 checkSourceOperationRequest(od); | 5579 checkSourceOperationRequest(od); |
5200 }); | 5580 }); |
5201 }); | 5581 }); |
5202 | 5582 |
5203 | |
5204 unittest.group("obj-schema-SourceOperationResponse", () { | 5583 unittest.group("obj-schema-SourceOperationResponse", () { |
5205 unittest.test("to-json--from-json", () { | 5584 unittest.test("to-json--from-json", () { |
5206 var o = buildSourceOperationResponse(); | 5585 var o = buildSourceOperationResponse(); |
5207 var od = new api.SourceOperationResponse.fromJson(o.toJson()); | 5586 var od = new api.SourceOperationResponse.fromJson(o.toJson()); |
5208 checkSourceOperationResponse(od); | 5587 checkSourceOperationResponse(od); |
5209 }); | 5588 }); |
5210 }); | 5589 }); |
5211 | 5590 |
5212 | |
5213 unittest.group("obj-schema-SourceSplitOptions", () { | 5591 unittest.group("obj-schema-SourceSplitOptions", () { |
5214 unittest.test("to-json--from-json", () { | 5592 unittest.test("to-json--from-json", () { |
5215 var o = buildSourceSplitOptions(); | 5593 var o = buildSourceSplitOptions(); |
5216 var od = new api.SourceSplitOptions.fromJson(o.toJson()); | 5594 var od = new api.SourceSplitOptions.fromJson(o.toJson()); |
5217 checkSourceSplitOptions(od); | 5595 checkSourceSplitOptions(od); |
5218 }); | 5596 }); |
5219 }); | 5597 }); |
5220 | 5598 |
5221 | |
5222 unittest.group("obj-schema-SourceSplitRequest", () { | 5599 unittest.group("obj-schema-SourceSplitRequest", () { |
5223 unittest.test("to-json--from-json", () { | 5600 unittest.test("to-json--from-json", () { |
5224 var o = buildSourceSplitRequest(); | 5601 var o = buildSourceSplitRequest(); |
5225 var od = new api.SourceSplitRequest.fromJson(o.toJson()); | 5602 var od = new api.SourceSplitRequest.fromJson(o.toJson()); |
5226 checkSourceSplitRequest(od); | 5603 checkSourceSplitRequest(od); |
5227 }); | 5604 }); |
5228 }); | 5605 }); |
5229 | 5606 |
5230 | |
5231 unittest.group("obj-schema-SourceSplitResponse", () { | 5607 unittest.group("obj-schema-SourceSplitResponse", () { |
5232 unittest.test("to-json--from-json", () { | 5608 unittest.test("to-json--from-json", () { |
5233 var o = buildSourceSplitResponse(); | 5609 var o = buildSourceSplitResponse(); |
5234 var od = new api.SourceSplitResponse.fromJson(o.toJson()); | 5610 var od = new api.SourceSplitResponse.fromJson(o.toJson()); |
5235 checkSourceSplitResponse(od); | 5611 checkSourceSplitResponse(od); |
5236 }); | 5612 }); |
5237 }); | 5613 }); |
5238 | 5614 |
5239 | |
5240 unittest.group("obj-schema-SourceSplitShard", () { | 5615 unittest.group("obj-schema-SourceSplitShard", () { |
5241 unittest.test("to-json--from-json", () { | 5616 unittest.test("to-json--from-json", () { |
5242 var o = buildSourceSplitShard(); | 5617 var o = buildSourceSplitShard(); |
5243 var od = new api.SourceSplitShard.fromJson(o.toJson()); | 5618 var od = new api.SourceSplitShard.fromJson(o.toJson()); |
5244 checkSourceSplitShard(od); | 5619 checkSourceSplitShard(od); |
5245 }); | 5620 }); |
5246 }); | 5621 }); |
5247 | 5622 |
5248 | |
5249 unittest.group("obj-schema-SplitInt64", () { | 5623 unittest.group("obj-schema-SplitInt64", () { |
5250 unittest.test("to-json--from-json", () { | 5624 unittest.test("to-json--from-json", () { |
5251 var o = buildSplitInt64(); | 5625 var o = buildSplitInt64(); |
5252 var od = new api.SplitInt64.fromJson(o.toJson()); | 5626 var od = new api.SplitInt64.fromJson(o.toJson()); |
5253 checkSplitInt64(od); | 5627 checkSplitInt64(od); |
5254 }); | 5628 }); |
5255 }); | 5629 }); |
5256 | 5630 |
5257 | |
5258 unittest.group("obj-schema-StageSource", () { | 5631 unittest.group("obj-schema-StageSource", () { |
5259 unittest.test("to-json--from-json", () { | 5632 unittest.test("to-json--from-json", () { |
5260 var o = buildStageSource(); | 5633 var o = buildStageSource(); |
5261 var od = new api.StageSource.fromJson(o.toJson()); | 5634 var od = new api.StageSource.fromJson(o.toJson()); |
5262 checkStageSource(od); | 5635 checkStageSource(od); |
5263 }); | 5636 }); |
5264 }); | 5637 }); |
5265 | 5638 |
5266 | |
5267 unittest.group("obj-schema-StateFamilyConfig", () { | 5639 unittest.group("obj-schema-StateFamilyConfig", () { |
5268 unittest.test("to-json--from-json", () { | 5640 unittest.test("to-json--from-json", () { |
5269 var o = buildStateFamilyConfig(); | 5641 var o = buildStateFamilyConfig(); |
5270 var od = new api.StateFamilyConfig.fromJson(o.toJson()); | 5642 var od = new api.StateFamilyConfig.fromJson(o.toJson()); |
5271 checkStateFamilyConfig(od); | 5643 checkStateFamilyConfig(od); |
5272 }); | 5644 }); |
5273 }); | 5645 }); |
5274 | 5646 |
5275 | |
5276 unittest.group("obj-schema-Status", () { | 5647 unittest.group("obj-schema-Status", () { |
5277 unittest.test("to-json--from-json", () { | 5648 unittest.test("to-json--from-json", () { |
5278 var o = buildStatus(); | 5649 var o = buildStatus(); |
5279 var od = new api.Status.fromJson(o.toJson()); | 5650 var od = new api.Status.fromJson(o.toJson()); |
5280 checkStatus(od); | 5651 checkStatus(od); |
5281 }); | 5652 }); |
5282 }); | 5653 }); |
5283 | 5654 |
5284 | |
5285 unittest.group("obj-schema-Step", () { | 5655 unittest.group("obj-schema-Step", () { |
5286 unittest.test("to-json--from-json", () { | 5656 unittest.test("to-json--from-json", () { |
5287 var o = buildStep(); | 5657 var o = buildStep(); |
5288 var od = new api.Step.fromJson(o.toJson()); | 5658 var od = new api.Step.fromJson(o.toJson()); |
5289 checkStep(od); | 5659 checkStep(od); |
5290 }); | 5660 }); |
5291 }); | 5661 }); |
5292 | 5662 |
5293 | |
5294 unittest.group("obj-schema-StreamLocation", () { | 5663 unittest.group("obj-schema-StreamLocation", () { |
5295 unittest.test("to-json--from-json", () { | 5664 unittest.test("to-json--from-json", () { |
5296 var o = buildStreamLocation(); | 5665 var o = buildStreamLocation(); |
5297 var od = new api.StreamLocation.fromJson(o.toJson()); | 5666 var od = new api.StreamLocation.fromJson(o.toJson()); |
5298 checkStreamLocation(od); | 5667 checkStreamLocation(od); |
5299 }); | 5668 }); |
5300 }); | 5669 }); |
5301 | 5670 |
5302 | |
5303 unittest.group("obj-schema-StreamingComputationConfig", () { | 5671 unittest.group("obj-schema-StreamingComputationConfig", () { |
5304 unittest.test("to-json--from-json", () { | 5672 unittest.test("to-json--from-json", () { |
5305 var o = buildStreamingComputationConfig(); | 5673 var o = buildStreamingComputationConfig(); |
5306 var od = new api.StreamingComputationConfig.fromJson(o.toJson()); | 5674 var od = new api.StreamingComputationConfig.fromJson(o.toJson()); |
5307 checkStreamingComputationConfig(od); | 5675 checkStreamingComputationConfig(od); |
5308 }); | 5676 }); |
5309 }); | 5677 }); |
5310 | 5678 |
5311 | |
5312 unittest.group("obj-schema-StreamingComputationRanges", () { | 5679 unittest.group("obj-schema-StreamingComputationRanges", () { |
5313 unittest.test("to-json--from-json", () { | 5680 unittest.test("to-json--from-json", () { |
5314 var o = buildStreamingComputationRanges(); | 5681 var o = buildStreamingComputationRanges(); |
5315 var od = new api.StreamingComputationRanges.fromJson(o.toJson()); | 5682 var od = new api.StreamingComputationRanges.fromJson(o.toJson()); |
5316 checkStreamingComputationRanges(od); | 5683 checkStreamingComputationRanges(od); |
5317 }); | 5684 }); |
5318 }); | 5685 }); |
5319 | 5686 |
5320 | |
5321 unittest.group("obj-schema-StreamingComputationTask", () { | 5687 unittest.group("obj-schema-StreamingComputationTask", () { |
5322 unittest.test("to-json--from-json", () { | 5688 unittest.test("to-json--from-json", () { |
5323 var o = buildStreamingComputationTask(); | 5689 var o = buildStreamingComputationTask(); |
5324 var od = new api.StreamingComputationTask.fromJson(o.toJson()); | 5690 var od = new api.StreamingComputationTask.fromJson(o.toJson()); |
5325 checkStreamingComputationTask(od); | 5691 checkStreamingComputationTask(od); |
5326 }); | 5692 }); |
5327 }); | 5693 }); |
5328 | 5694 |
5329 | |
5330 unittest.group("obj-schema-StreamingConfigTask", () { | 5695 unittest.group("obj-schema-StreamingConfigTask", () { |
5331 unittest.test("to-json--from-json", () { | 5696 unittest.test("to-json--from-json", () { |
5332 var o = buildStreamingConfigTask(); | 5697 var o = buildStreamingConfigTask(); |
5333 var od = new api.StreamingConfigTask.fromJson(o.toJson()); | 5698 var od = new api.StreamingConfigTask.fromJson(o.toJson()); |
5334 checkStreamingConfigTask(od); | 5699 checkStreamingConfigTask(od); |
5335 }); | 5700 }); |
5336 }); | 5701 }); |
5337 | 5702 |
5338 | |
5339 unittest.group("obj-schema-StreamingSetupTask", () { | 5703 unittest.group("obj-schema-StreamingSetupTask", () { |
5340 unittest.test("to-json--from-json", () { | 5704 unittest.test("to-json--from-json", () { |
5341 var o = buildStreamingSetupTask(); | 5705 var o = buildStreamingSetupTask(); |
5342 var od = new api.StreamingSetupTask.fromJson(o.toJson()); | 5706 var od = new api.StreamingSetupTask.fromJson(o.toJson()); |
5343 checkStreamingSetupTask(od); | 5707 checkStreamingSetupTask(od); |
5344 }); | 5708 }); |
5345 }); | 5709 }); |
5346 | 5710 |
5347 | |
5348 unittest.group("obj-schema-StreamingSideInputLocation", () { | 5711 unittest.group("obj-schema-StreamingSideInputLocation", () { |
5349 unittest.test("to-json--from-json", () { | 5712 unittest.test("to-json--from-json", () { |
5350 var o = buildStreamingSideInputLocation(); | 5713 var o = buildStreamingSideInputLocation(); |
5351 var od = new api.StreamingSideInputLocation.fromJson(o.toJson()); | 5714 var od = new api.StreamingSideInputLocation.fromJson(o.toJson()); |
5352 checkStreamingSideInputLocation(od); | 5715 checkStreamingSideInputLocation(od); |
5353 }); | 5716 }); |
5354 }); | 5717 }); |
5355 | 5718 |
5356 | |
5357 unittest.group("obj-schema-StreamingStageLocation", () { | 5719 unittest.group("obj-schema-StreamingStageLocation", () { |
5358 unittest.test("to-json--from-json", () { | 5720 unittest.test("to-json--from-json", () { |
5359 var o = buildStreamingStageLocation(); | 5721 var o = buildStreamingStageLocation(); |
5360 var od = new api.StreamingStageLocation.fromJson(o.toJson()); | 5722 var od = new api.StreamingStageLocation.fromJson(o.toJson()); |
5361 checkStreamingStageLocation(od); | 5723 checkStreamingStageLocation(od); |
5362 }); | 5724 }); |
5363 }); | 5725 }); |
5364 | 5726 |
5365 | |
5366 unittest.group("obj-schema-StringList", () { | 5727 unittest.group("obj-schema-StringList", () { |
5367 unittest.test("to-json--from-json", () { | 5728 unittest.test("to-json--from-json", () { |
5368 var o = buildStringList(); | 5729 var o = buildStringList(); |
5369 var od = new api.StringList.fromJson(o.toJson()); | 5730 var od = new api.StringList.fromJson(o.toJson()); |
5370 checkStringList(od); | 5731 checkStringList(od); |
5371 }); | 5732 }); |
5372 }); | 5733 }); |
5373 | 5734 |
5374 | |
5375 unittest.group("obj-schema-StructuredMessage", () { | 5735 unittest.group("obj-schema-StructuredMessage", () { |
5376 unittest.test("to-json--from-json", () { | 5736 unittest.test("to-json--from-json", () { |
5377 var o = buildStructuredMessage(); | 5737 var o = buildStructuredMessage(); |
5378 var od = new api.StructuredMessage.fromJson(o.toJson()); | 5738 var od = new api.StructuredMessage.fromJson(o.toJson()); |
5379 checkStructuredMessage(od); | 5739 checkStructuredMessage(od); |
5380 }); | 5740 }); |
5381 }); | 5741 }); |
5382 | 5742 |
5383 | |
5384 unittest.group("obj-schema-TaskRunnerSettings", () { | 5743 unittest.group("obj-schema-TaskRunnerSettings", () { |
5385 unittest.test("to-json--from-json", () { | 5744 unittest.test("to-json--from-json", () { |
5386 var o = buildTaskRunnerSettings(); | 5745 var o = buildTaskRunnerSettings(); |
5387 var od = new api.TaskRunnerSettings.fromJson(o.toJson()); | 5746 var od = new api.TaskRunnerSettings.fromJson(o.toJson()); |
5388 checkTaskRunnerSettings(od); | 5747 checkTaskRunnerSettings(od); |
5389 }); | 5748 }); |
5390 }); | 5749 }); |
5391 | 5750 |
5392 | |
5393 unittest.group("obj-schema-TemplateMetadata", () { | 5751 unittest.group("obj-schema-TemplateMetadata", () { |
5394 unittest.test("to-json--from-json", () { | 5752 unittest.test("to-json--from-json", () { |
5395 var o = buildTemplateMetadata(); | 5753 var o = buildTemplateMetadata(); |
5396 var od = new api.TemplateMetadata.fromJson(o.toJson()); | 5754 var od = new api.TemplateMetadata.fromJson(o.toJson()); |
5397 checkTemplateMetadata(od); | 5755 checkTemplateMetadata(od); |
5398 }); | 5756 }); |
5399 }); | 5757 }); |
5400 | 5758 |
5401 | |
5402 unittest.group("obj-schema-TopologyConfig", () { | 5759 unittest.group("obj-schema-TopologyConfig", () { |
5403 unittest.test("to-json--from-json", () { | 5760 unittest.test("to-json--from-json", () { |
5404 var o = buildTopologyConfig(); | 5761 var o = buildTopologyConfig(); |
5405 var od = new api.TopologyConfig.fromJson(o.toJson()); | 5762 var od = new api.TopologyConfig.fromJson(o.toJson()); |
5406 checkTopologyConfig(od); | 5763 checkTopologyConfig(od); |
5407 }); | 5764 }); |
5408 }); | 5765 }); |
5409 | 5766 |
5410 | |
5411 unittest.group("obj-schema-TransformSummary", () { | 5767 unittest.group("obj-schema-TransformSummary", () { |
5412 unittest.test("to-json--from-json", () { | 5768 unittest.test("to-json--from-json", () { |
5413 var o = buildTransformSummary(); | 5769 var o = buildTransformSummary(); |
5414 var od = new api.TransformSummary.fromJson(o.toJson()); | 5770 var od = new api.TransformSummary.fromJson(o.toJson()); |
5415 checkTransformSummary(od); | 5771 checkTransformSummary(od); |
5416 }); | 5772 }); |
5417 }); | 5773 }); |
5418 | 5774 |
5419 | |
5420 unittest.group("obj-schema-WorkItem", () { | 5775 unittest.group("obj-schema-WorkItem", () { |
5421 unittest.test("to-json--from-json", () { | 5776 unittest.test("to-json--from-json", () { |
5422 var o = buildWorkItem(); | 5777 var o = buildWorkItem(); |
5423 var od = new api.WorkItem.fromJson(o.toJson()); | 5778 var od = new api.WorkItem.fromJson(o.toJson()); |
5424 checkWorkItem(od); | 5779 checkWorkItem(od); |
5425 }); | 5780 }); |
5426 }); | 5781 }); |
5427 | 5782 |
5428 | |
5429 unittest.group("obj-schema-WorkItemServiceState", () { | 5783 unittest.group("obj-schema-WorkItemServiceState", () { |
5430 unittest.test("to-json--from-json", () { | 5784 unittest.test("to-json--from-json", () { |
5431 var o = buildWorkItemServiceState(); | 5785 var o = buildWorkItemServiceState(); |
5432 var od = new api.WorkItemServiceState.fromJson(o.toJson()); | 5786 var od = new api.WorkItemServiceState.fromJson(o.toJson()); |
5433 checkWorkItemServiceState(od); | 5787 checkWorkItemServiceState(od); |
5434 }); | 5788 }); |
5435 }); | 5789 }); |
5436 | 5790 |
5437 | |
5438 unittest.group("obj-schema-WorkItemStatus", () { | 5791 unittest.group("obj-schema-WorkItemStatus", () { |
5439 unittest.test("to-json--from-json", () { | 5792 unittest.test("to-json--from-json", () { |
5440 var o = buildWorkItemStatus(); | 5793 var o = buildWorkItemStatus(); |
5441 var od = new api.WorkItemStatus.fromJson(o.toJson()); | 5794 var od = new api.WorkItemStatus.fromJson(o.toJson()); |
5442 checkWorkItemStatus(od); | 5795 checkWorkItemStatus(od); |
5443 }); | 5796 }); |
5444 }); | 5797 }); |
5445 | 5798 |
5446 | |
5447 unittest.group("obj-schema-WorkerHealthReport", () { | 5799 unittest.group("obj-schema-WorkerHealthReport", () { |
5448 unittest.test("to-json--from-json", () { | 5800 unittest.test("to-json--from-json", () { |
5449 var o = buildWorkerHealthReport(); | 5801 var o = buildWorkerHealthReport(); |
5450 var od = new api.WorkerHealthReport.fromJson(o.toJson()); | 5802 var od = new api.WorkerHealthReport.fromJson(o.toJson()); |
5451 checkWorkerHealthReport(od); | 5803 checkWorkerHealthReport(od); |
5452 }); | 5804 }); |
5453 }); | 5805 }); |
5454 | 5806 |
5455 | |
5456 unittest.group("obj-schema-WorkerHealthReportResponse", () { | 5807 unittest.group("obj-schema-WorkerHealthReportResponse", () { |
5457 unittest.test("to-json--from-json", () { | 5808 unittest.test("to-json--from-json", () { |
5458 var o = buildWorkerHealthReportResponse(); | 5809 var o = buildWorkerHealthReportResponse(); |
5459 var od = new api.WorkerHealthReportResponse.fromJson(o.toJson()); | 5810 var od = new api.WorkerHealthReportResponse.fromJson(o.toJson()); |
5460 checkWorkerHealthReportResponse(od); | 5811 checkWorkerHealthReportResponse(od); |
5461 }); | 5812 }); |
5462 }); | 5813 }); |
5463 | 5814 |
5464 | |
5465 unittest.group("obj-schema-WorkerMessage", () { | 5815 unittest.group("obj-schema-WorkerMessage", () { |
5466 unittest.test("to-json--from-json", () { | 5816 unittest.test("to-json--from-json", () { |
5467 var o = buildWorkerMessage(); | 5817 var o = buildWorkerMessage(); |
5468 var od = new api.WorkerMessage.fromJson(o.toJson()); | 5818 var od = new api.WorkerMessage.fromJson(o.toJson()); |
5469 checkWorkerMessage(od); | 5819 checkWorkerMessage(od); |
5470 }); | 5820 }); |
5471 }); | 5821 }); |
5472 | 5822 |
5473 | |
5474 unittest.group("obj-schema-WorkerMessageCode", () { | 5823 unittest.group("obj-schema-WorkerMessageCode", () { |
5475 unittest.test("to-json--from-json", () { | 5824 unittest.test("to-json--from-json", () { |
5476 var o = buildWorkerMessageCode(); | 5825 var o = buildWorkerMessageCode(); |
5477 var od = new api.WorkerMessageCode.fromJson(o.toJson()); | 5826 var od = new api.WorkerMessageCode.fromJson(o.toJson()); |
5478 checkWorkerMessageCode(od); | 5827 checkWorkerMessageCode(od); |
5479 }); | 5828 }); |
5480 }); | 5829 }); |
5481 | 5830 |
5482 | |
5483 unittest.group("obj-schema-WorkerMessageResponse", () { | 5831 unittest.group("obj-schema-WorkerMessageResponse", () { |
5484 unittest.test("to-json--from-json", () { | 5832 unittest.test("to-json--from-json", () { |
5485 var o = buildWorkerMessageResponse(); | 5833 var o = buildWorkerMessageResponse(); |
5486 var od = new api.WorkerMessageResponse.fromJson(o.toJson()); | 5834 var od = new api.WorkerMessageResponse.fromJson(o.toJson()); |
5487 checkWorkerMessageResponse(od); | 5835 checkWorkerMessageResponse(od); |
5488 }); | 5836 }); |
5489 }); | 5837 }); |
5490 | 5838 |
5491 | |
5492 unittest.group("obj-schema-WorkerPool", () { | 5839 unittest.group("obj-schema-WorkerPool", () { |
5493 unittest.test("to-json--from-json", () { | 5840 unittest.test("to-json--from-json", () { |
5494 var o = buildWorkerPool(); | 5841 var o = buildWorkerPool(); |
5495 var od = new api.WorkerPool.fromJson(o.toJson()); | 5842 var od = new api.WorkerPool.fromJson(o.toJson()); |
5496 checkWorkerPool(od); | 5843 checkWorkerPool(od); |
5497 }); | 5844 }); |
5498 }); | 5845 }); |
5499 | 5846 |
5500 | |
5501 unittest.group("obj-schema-WorkerSettings", () { | 5847 unittest.group("obj-schema-WorkerSettings", () { |
5502 unittest.test("to-json--from-json", () { | 5848 unittest.test("to-json--from-json", () { |
5503 var o = buildWorkerSettings(); | 5849 var o = buildWorkerSettings(); |
5504 var od = new api.WorkerSettings.fromJson(o.toJson()); | 5850 var od = new api.WorkerSettings.fromJson(o.toJson()); |
5505 checkWorkerSettings(od); | 5851 checkWorkerSettings(od); |
5506 }); | 5852 }); |
5507 }); | 5853 }); |
5508 | 5854 |
| 5855 unittest.group("obj-schema-WorkerShutdownNotice", () { |
| 5856 unittest.test("to-json--from-json", () { |
| 5857 var o = buildWorkerShutdownNotice(); |
| 5858 var od = new api.WorkerShutdownNotice.fromJson(o.toJson()); |
| 5859 checkWorkerShutdownNotice(od); |
| 5860 }); |
| 5861 }); |
| 5862 |
| 5863 unittest.group("obj-schema-WorkerShutdownNoticeResponse", () { |
| 5864 unittest.test("to-json--from-json", () { |
| 5865 var o = buildWorkerShutdownNoticeResponse(); |
| 5866 var od = new api.WorkerShutdownNoticeResponse.fromJson(o.toJson()); |
| 5867 checkWorkerShutdownNoticeResponse(od); |
| 5868 }); |
| 5869 }); |
5509 | 5870 |
5510 unittest.group("obj-schema-WriteInstruction", () { | 5871 unittest.group("obj-schema-WriteInstruction", () { |
5511 unittest.test("to-json--from-json", () { | 5872 unittest.test("to-json--from-json", () { |
5512 var o = buildWriteInstruction(); | 5873 var o = buildWriteInstruction(); |
5513 var od = new api.WriteInstruction.fromJson(o.toJson()); | 5874 var od = new api.WriteInstruction.fromJson(o.toJson()); |
5514 checkWriteInstruction(od); | 5875 checkWriteInstruction(od); |
5515 }); | 5876 }); |
5516 }); | 5877 }); |
5517 | 5878 |
5518 | |
5519 unittest.group("resource-ProjectsResourceApi", () { | 5879 unittest.group("resource-ProjectsResourceApi", () { |
5520 unittest.test("method--workerMessages", () { | 5880 unittest.test("method--workerMessages", () { |
5521 | |
5522 var mock = new HttpServerMock(); | 5881 var mock = new HttpServerMock(); |
5523 api.ProjectsResourceApi res = new api.DataflowApi(mock).projects; | 5882 api.ProjectsResourceApi res = new api.DataflowApi(mock).projects; |
5524 var arg_request = buildSendWorkerMessagesRequest(); | 5883 var arg_request = buildSendWorkerMessagesRequest(); |
5525 var arg_projectId = "foo"; | 5884 var arg_projectId = "foo"; |
5526 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 5885 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5527 var obj = new api.SendWorkerMessagesRequest.fromJson(json); | 5886 var obj = new api.SendWorkerMessagesRequest.fromJson(json); |
5528 checkSendWorkerMessagesRequest(obj); | 5887 checkSendWorkerMessagesRequest(obj); |
5529 | 5888 |
5530 var path = (req.url).path; | 5889 var path = (req.url).path; |
5531 var pathOffset = 0; | 5890 var pathOffset = 0; |
5532 var index; | 5891 var index; |
5533 var subPart; | 5892 var subPart; |
5534 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5893 unittest.expect( |
| 5894 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
5535 pathOffset += 1; | 5895 pathOffset += 1; |
5536 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 5896 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 5897 unittest.equals("v1b3/projects/")); |
5537 pathOffset += 14; | 5898 pathOffset += 14; |
5538 index = path.indexOf("/WorkerMessages", pathOffset); | 5899 index = path.indexOf("/WorkerMessages", pathOffset); |
5539 unittest.expect(index >= 0, unittest.isTrue); | 5900 unittest.expect(index >= 0, unittest.isTrue); |
5540 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 5901 subPart = |
| 5902 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
5541 pathOffset = index; | 5903 pathOffset = index; |
5542 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 5904 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
5543 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/WorkerMessages")); | 5905 unittest.expect(path.substring(pathOffset, pathOffset + 15), |
| 5906 unittest.equals("/WorkerMessages")); |
5544 pathOffset += 15; | 5907 pathOffset += 15; |
5545 | 5908 |
5546 var query = (req.url).query; | 5909 var query = (req.url).query; |
5547 var queryOffset = 0; | 5910 var queryOffset = 0; |
5548 var queryMap = {}; | 5911 var queryMap = {}; |
5549 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5912 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5550 parseBool(n) { | 5913 parseBool(n) { |
5551 if (n == "true") return true; | 5914 if (n == "true") return true; |
5552 if (n == "false") return false; | 5915 if (n == "false") return false; |
5553 if (n == null) return null; | 5916 if (n == null) return null; |
5554 throw new core.ArgumentError("Invalid boolean: $n"); | 5917 throw new core.ArgumentError("Invalid boolean: $n"); |
5555 } | 5918 } |
| 5919 |
5556 if (query.length > 0) { | 5920 if (query.length > 0) { |
5557 for (var part in query.split("&")) { | 5921 for (var part in query.split("&")) { |
5558 var keyvalue = part.split("="); | 5922 var keyvalue = part.split("="); |
5559 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5923 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 5924 core.Uri.decodeQueryComponent(keyvalue[1])); |
5560 } | 5925 } |
5561 } | 5926 } |
5562 | 5927 |
5563 | |
5564 var h = { | 5928 var h = { |
5565 "content-type" : "application/json; charset=utf-8", | 5929 "content-type": "application/json; charset=utf-8", |
5566 }; | 5930 }; |
5567 var resp = convert.JSON.encode(buildSendWorkerMessagesResponse()); | 5931 var resp = convert.JSON.encode(buildSendWorkerMessagesResponse()); |
5568 return new async.Future.value(stringResponse(200, h, resp)); | 5932 return new async.Future.value(stringResponse(200, h, resp)); |
5569 }), true); | 5933 }), true); |
5570 res.workerMessages(arg_request, arg_projectId).then(unittest.expectAsync1(
((api.SendWorkerMessagesResponse response) { | 5934 res.workerMessages(arg_request, arg_projectId).then( |
| 5935 unittest.expectAsync1(((api.SendWorkerMessagesResponse response) { |
5571 checkSendWorkerMessagesResponse(response); | 5936 checkSendWorkerMessagesResponse(response); |
5572 }))); | 5937 }))); |
5573 }); | 5938 }); |
5574 | |
5575 }); | 5939 }); |
5576 | 5940 |
5577 | |
5578 unittest.group("resource-ProjectsJobsResourceApi", () { | 5941 unittest.group("resource-ProjectsJobsResourceApi", () { |
5579 unittest.test("method--aggregated", () { | 5942 unittest.test("method--aggregated", () { |
5580 | |
5581 var mock = new HttpServerMock(); | 5943 var mock = new HttpServerMock(); |
5582 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; | 5944 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; |
5583 var arg_projectId = "foo"; | 5945 var arg_projectId = "foo"; |
| 5946 var arg_view = "foo"; |
5584 var arg_filter = "foo"; | 5947 var arg_filter = "foo"; |
5585 var arg_location = "foo"; | 5948 var arg_location = "foo"; |
5586 var arg_pageToken = "foo"; | 5949 var arg_pageToken = "foo"; |
5587 var arg_pageSize = 42; | 5950 var arg_pageSize = 42; |
5588 var arg_view = "foo"; | |
5589 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 5951 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5590 var path = (req.url).path; | 5952 var path = (req.url).path; |
5591 var pathOffset = 0; | 5953 var pathOffset = 0; |
5592 var index; | 5954 var index; |
5593 var subPart; | 5955 var subPart; |
5594 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5956 unittest.expect( |
| 5957 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
5595 pathOffset += 1; | 5958 pathOffset += 1; |
5596 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 5959 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 5960 unittest.equals("v1b3/projects/")); |
5597 pathOffset += 14; | 5961 pathOffset += 14; |
5598 index = path.indexOf("/jobs:aggregated", pathOffset); | 5962 index = path.indexOf("/jobs:aggregated", pathOffset); |
5599 unittest.expect(index >= 0, unittest.isTrue); | 5963 unittest.expect(index >= 0, unittest.isTrue); |
5600 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 5964 subPart = |
| 5965 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
5601 pathOffset = index; | 5966 pathOffset = index; |
5602 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 5967 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
5603 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/jobs:aggregated")); | 5968 unittest.expect(path.substring(pathOffset, pathOffset + 16), |
| 5969 unittest.equals("/jobs:aggregated")); |
5604 pathOffset += 16; | 5970 pathOffset += 16; |
5605 | 5971 |
5606 var query = (req.url).query; | 5972 var query = (req.url).query; |
5607 var queryOffset = 0; | 5973 var queryOffset = 0; |
5608 var queryMap = {}; | 5974 var queryMap = {}; |
5609 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5975 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5610 parseBool(n) { | 5976 parseBool(n) { |
5611 if (n == "true") return true; | 5977 if (n == "true") return true; |
5612 if (n == "false") return false; | 5978 if (n == "false") return false; |
5613 if (n == null) return null; | 5979 if (n == null) return null; |
5614 throw new core.ArgumentError("Invalid boolean: $n"); | 5980 throw new core.ArgumentError("Invalid boolean: $n"); |
5615 } | 5981 } |
| 5982 |
5616 if (query.length > 0) { | 5983 if (query.length > 0) { |
5617 for (var part in query.split("&")) { | 5984 for (var part in query.split("&")) { |
5618 var keyvalue = part.split("="); | 5985 var keyvalue = part.split("="); |
5619 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5986 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 5987 core.Uri.decodeQueryComponent(keyvalue[1])); |
5620 } | 5988 } |
5621 } | 5989 } |
| 5990 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
5622 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 5991 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
5623 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); | 5992 unittest.expect( |
5624 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 5993 queryMap["location"].first, unittest.equals(arg_location)); |
5625 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 5994 unittest.expect( |
5626 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | 5995 queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
5627 | 5996 unittest.expect(core.int.parse(queryMap["pageSize"].first), |
| 5997 unittest.equals(arg_pageSize)); |
5628 | 5998 |
5629 var h = { | 5999 var h = { |
5630 "content-type" : "application/json; charset=utf-8", | 6000 "content-type": "application/json; charset=utf-8", |
5631 }; | 6001 }; |
5632 var resp = convert.JSON.encode(buildListJobsResponse()); | 6002 var resp = convert.JSON.encode(buildListJobsResponse()); |
5633 return new async.Future.value(stringResponse(200, h, resp)); | 6003 return new async.Future.value(stringResponse(200, h, resp)); |
5634 }), true); | 6004 }), true); |
5635 res.aggregated(arg_projectId, filter: arg_filter, location: arg_location,
pageToken: arg_pageToken, pageSize: arg_pageSize, view: arg_view).then(unittest.
expectAsync1(((api.ListJobsResponse response) { | 6005 res |
| 6006 .aggregated(arg_projectId, |
| 6007 view: arg_view, |
| 6008 filter: arg_filter, |
| 6009 location: arg_location, |
| 6010 pageToken: arg_pageToken, |
| 6011 pageSize: arg_pageSize) |
| 6012 .then(unittest.expectAsync1(((api.ListJobsResponse response) { |
5636 checkListJobsResponse(response); | 6013 checkListJobsResponse(response); |
5637 }))); | 6014 }))); |
5638 }); | 6015 }); |
5639 | 6016 |
5640 unittest.test("method--create", () { | 6017 unittest.test("method--create", () { |
5641 | |
5642 var mock = new HttpServerMock(); | 6018 var mock = new HttpServerMock(); |
5643 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; | 6019 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; |
5644 var arg_request = buildJob(); | 6020 var arg_request = buildJob(); |
5645 var arg_projectId = "foo"; | 6021 var arg_projectId = "foo"; |
5646 var arg_location = "foo"; | 6022 var arg_location = "foo"; |
5647 var arg_replaceJobId = "foo"; | 6023 var arg_replaceJobId = "foo"; |
5648 var arg_view = "foo"; | 6024 var arg_view = "foo"; |
5649 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 6025 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5650 var obj = new api.Job.fromJson(json); | 6026 var obj = new api.Job.fromJson(json); |
5651 checkJob(obj); | 6027 checkJob(obj); |
5652 | 6028 |
5653 var path = (req.url).path; | 6029 var path = (req.url).path; |
5654 var pathOffset = 0; | 6030 var pathOffset = 0; |
5655 var index; | 6031 var index; |
5656 var subPart; | 6032 var subPart; |
5657 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6033 unittest.expect( |
| 6034 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
5658 pathOffset += 1; | 6035 pathOffset += 1; |
5659 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 6036 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 6037 unittest.equals("v1b3/projects/")); |
5660 pathOffset += 14; | 6038 pathOffset += 14; |
5661 index = path.indexOf("/jobs", pathOffset); | 6039 index = path.indexOf("/jobs", pathOffset); |
5662 unittest.expect(index >= 0, unittest.isTrue); | 6040 unittest.expect(index >= 0, unittest.isTrue); |
5663 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 6041 subPart = |
| 6042 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
5664 pathOffset = index; | 6043 pathOffset = index; |
5665 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 6044 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
5666 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("/jobs")); | 6045 unittest.expect(path.substring(pathOffset, pathOffset + 5), |
| 6046 unittest.equals("/jobs")); |
5667 pathOffset += 5; | 6047 pathOffset += 5; |
5668 | 6048 |
5669 var query = (req.url).query; | 6049 var query = (req.url).query; |
5670 var queryOffset = 0; | 6050 var queryOffset = 0; |
5671 var queryMap = {}; | 6051 var queryMap = {}; |
5672 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6052 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5673 parseBool(n) { | 6053 parseBool(n) { |
5674 if (n == "true") return true; | 6054 if (n == "true") return true; |
5675 if (n == "false") return false; | 6055 if (n == "false") return false; |
5676 if (n == null) return null; | 6056 if (n == null) return null; |
5677 throw new core.ArgumentError("Invalid boolean: $n"); | 6057 throw new core.ArgumentError("Invalid boolean: $n"); |
5678 } | 6058 } |
| 6059 |
5679 if (query.length > 0) { | 6060 if (query.length > 0) { |
5680 for (var part in query.split("&")) { | 6061 for (var part in query.split("&")) { |
5681 var keyvalue = part.split("="); | 6062 var keyvalue = part.split("="); |
5682 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6063 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 6064 core.Uri.decodeQueryComponent(keyvalue[1])); |
5683 } | 6065 } |
5684 } | 6066 } |
5685 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); | 6067 unittest.expect( |
5686 unittest.expect(queryMap["replaceJobId"].first, unittest.equals(arg_repl
aceJobId)); | 6068 queryMap["location"].first, unittest.equals(arg_location)); |
| 6069 unittest.expect( |
| 6070 queryMap["replaceJobId"].first, unittest.equals(arg_replaceJobId)); |
5687 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | 6071 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
5688 | 6072 |
5689 | |
5690 var h = { | 6073 var h = { |
5691 "content-type" : "application/json; charset=utf-8", | 6074 "content-type": "application/json; charset=utf-8", |
5692 }; | 6075 }; |
5693 var resp = convert.JSON.encode(buildJob()); | 6076 var resp = convert.JSON.encode(buildJob()); |
5694 return new async.Future.value(stringResponse(200, h, resp)); | 6077 return new async.Future.value(stringResponse(200, h, resp)); |
5695 }), true); | 6078 }), true); |
5696 res.create(arg_request, arg_projectId, location: arg_location, replaceJobI
d: arg_replaceJobId, view: arg_view).then(unittest.expectAsync1(((api.Job respon
se) { | 6079 res |
| 6080 .create(arg_request, arg_projectId, |
| 6081 location: arg_location, |
| 6082 replaceJobId: arg_replaceJobId, |
| 6083 view: arg_view) |
| 6084 .then(unittest.expectAsync1(((api.Job response) { |
5697 checkJob(response); | 6085 checkJob(response); |
5698 }))); | 6086 }))); |
5699 }); | 6087 }); |
5700 | 6088 |
5701 unittest.test("method--get", () { | 6089 unittest.test("method--get", () { |
5702 | |
5703 var mock = new HttpServerMock(); | 6090 var mock = new HttpServerMock(); |
5704 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; | 6091 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; |
5705 var arg_projectId = "foo"; | 6092 var arg_projectId = "foo"; |
5706 var arg_jobId = "foo"; | 6093 var arg_jobId = "foo"; |
5707 var arg_location = "foo"; | 6094 var arg_location = "foo"; |
5708 var arg_view = "foo"; | 6095 var arg_view = "foo"; |
5709 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 6096 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5710 var path = (req.url).path; | 6097 var path = (req.url).path; |
5711 var pathOffset = 0; | 6098 var pathOffset = 0; |
5712 var index; | 6099 var index; |
5713 var subPart; | 6100 var subPart; |
5714 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6101 unittest.expect( |
| 6102 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
5715 pathOffset += 1; | 6103 pathOffset += 1; |
5716 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 6104 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 6105 unittest.equals("v1b3/projects/")); |
5717 pathOffset += 14; | 6106 pathOffset += 14; |
5718 index = path.indexOf("/jobs/", pathOffset); | 6107 index = path.indexOf("/jobs/", pathOffset); |
5719 unittest.expect(index >= 0, unittest.isTrue); | 6108 unittest.expect(index >= 0, unittest.isTrue); |
5720 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 6109 subPart = |
| 6110 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
5721 pathOffset = index; | 6111 pathOffset = index; |
5722 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 6112 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
5723 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/jobs/")); | 6113 unittest.expect(path.substring(pathOffset, pathOffset + 6), |
| 6114 unittest.equals("/jobs/")); |
5724 pathOffset += 6; | 6115 pathOffset += 6; |
5725 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 6116 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
5726 pathOffset = path.length; | 6117 pathOffset = path.length; |
5727 unittest.expect(subPart, unittest.equals("$arg_jobId")); | 6118 unittest.expect(subPart, unittest.equals("$arg_jobId")); |
5728 | 6119 |
5729 var query = (req.url).query; | 6120 var query = (req.url).query; |
5730 var queryOffset = 0; | 6121 var queryOffset = 0; |
5731 var queryMap = {}; | 6122 var queryMap = {}; |
5732 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6123 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5733 parseBool(n) { | 6124 parseBool(n) { |
5734 if (n == "true") return true; | 6125 if (n == "true") return true; |
5735 if (n == "false") return false; | 6126 if (n == "false") return false; |
5736 if (n == null) return null; | 6127 if (n == null) return null; |
5737 throw new core.ArgumentError("Invalid boolean: $n"); | 6128 throw new core.ArgumentError("Invalid boolean: $n"); |
5738 } | 6129 } |
| 6130 |
5739 if (query.length > 0) { | 6131 if (query.length > 0) { |
5740 for (var part in query.split("&")) { | 6132 for (var part in query.split("&")) { |
5741 var keyvalue = part.split("="); | 6133 var keyvalue = part.split("="); |
5742 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6134 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 6135 core.Uri.decodeQueryComponent(keyvalue[1])); |
5743 } | 6136 } |
5744 } | 6137 } |
5745 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); | 6138 unittest.expect( |
| 6139 queryMap["location"].first, unittest.equals(arg_location)); |
5746 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | 6140 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
5747 | 6141 |
5748 | |
5749 var h = { | 6142 var h = { |
5750 "content-type" : "application/json; charset=utf-8", | 6143 "content-type": "application/json; charset=utf-8", |
5751 }; | 6144 }; |
5752 var resp = convert.JSON.encode(buildJob()); | 6145 var resp = convert.JSON.encode(buildJob()); |
5753 return new async.Future.value(stringResponse(200, h, resp)); | 6146 return new async.Future.value(stringResponse(200, h, resp)); |
5754 }), true); | 6147 }), true); |
5755 res.get(arg_projectId, arg_jobId, location: arg_location, view: arg_view).
then(unittest.expectAsync1(((api.Job response) { | 6148 res |
| 6149 .get(arg_projectId, arg_jobId, location: arg_location, view: arg_view) |
| 6150 .then(unittest.expectAsync1(((api.Job response) { |
5756 checkJob(response); | 6151 checkJob(response); |
5757 }))); | 6152 }))); |
5758 }); | 6153 }); |
5759 | 6154 |
5760 unittest.test("method--getMetrics", () { | 6155 unittest.test("method--getMetrics", () { |
5761 | |
5762 var mock = new HttpServerMock(); | 6156 var mock = new HttpServerMock(); |
5763 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; | 6157 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; |
5764 var arg_projectId = "foo"; | 6158 var arg_projectId = "foo"; |
5765 var arg_jobId = "foo"; | 6159 var arg_jobId = "foo"; |
5766 var arg_location = "foo"; | 6160 var arg_location = "foo"; |
5767 var arg_startTime = "foo"; | 6161 var arg_startTime = "foo"; |
5768 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 6162 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5769 var path = (req.url).path; | 6163 var path = (req.url).path; |
5770 var pathOffset = 0; | 6164 var pathOffset = 0; |
5771 var index; | 6165 var index; |
5772 var subPart; | 6166 var subPart; |
5773 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6167 unittest.expect( |
| 6168 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
5774 pathOffset += 1; | 6169 pathOffset += 1; |
5775 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 6170 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 6171 unittest.equals("v1b3/projects/")); |
5776 pathOffset += 14; | 6172 pathOffset += 14; |
5777 index = path.indexOf("/jobs/", pathOffset); | 6173 index = path.indexOf("/jobs/", pathOffset); |
5778 unittest.expect(index >= 0, unittest.isTrue); | 6174 unittest.expect(index >= 0, unittest.isTrue); |
5779 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 6175 subPart = |
| 6176 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
5780 pathOffset = index; | 6177 pathOffset = index; |
5781 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 6178 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
5782 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/jobs/")); | 6179 unittest.expect(path.substring(pathOffset, pathOffset + 6), |
| 6180 unittest.equals("/jobs/")); |
5783 pathOffset += 6; | 6181 pathOffset += 6; |
5784 index = path.indexOf("/metrics", pathOffset); | 6182 index = path.indexOf("/metrics", pathOffset); |
5785 unittest.expect(index >= 0, unittest.isTrue); | 6183 unittest.expect(index >= 0, unittest.isTrue); |
5786 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 6184 subPart = |
| 6185 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
5787 pathOffset = index; | 6186 pathOffset = index; |
5788 unittest.expect(subPart, unittest.equals("$arg_jobId")); | 6187 unittest.expect(subPart, unittest.equals("$arg_jobId")); |
5789 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/metrics")); | 6188 unittest.expect(path.substring(pathOffset, pathOffset + 8), |
| 6189 unittest.equals("/metrics")); |
5790 pathOffset += 8; | 6190 pathOffset += 8; |
5791 | 6191 |
5792 var query = (req.url).query; | 6192 var query = (req.url).query; |
5793 var queryOffset = 0; | 6193 var queryOffset = 0; |
5794 var queryMap = {}; | 6194 var queryMap = {}; |
5795 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6195 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5796 parseBool(n) { | 6196 parseBool(n) { |
5797 if (n == "true") return true; | 6197 if (n == "true") return true; |
5798 if (n == "false") return false; | 6198 if (n == "false") return false; |
5799 if (n == null) return null; | 6199 if (n == null) return null; |
5800 throw new core.ArgumentError("Invalid boolean: $n"); | 6200 throw new core.ArgumentError("Invalid boolean: $n"); |
5801 } | 6201 } |
| 6202 |
5802 if (query.length > 0) { | 6203 if (query.length > 0) { |
5803 for (var part in query.split("&")) { | 6204 for (var part in query.split("&")) { |
5804 var keyvalue = part.split("="); | 6205 var keyvalue = part.split("="); |
5805 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6206 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 6207 core.Uri.decodeQueryComponent(keyvalue[1])); |
5806 } | 6208 } |
5807 } | 6209 } |
5808 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); | 6210 unittest.expect( |
5809 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi
me)); | 6211 queryMap["location"].first, unittest.equals(arg_location)); |
5810 | 6212 unittest.expect( |
| 6213 queryMap["startTime"].first, unittest.equals(arg_startTime)); |
5811 | 6214 |
5812 var h = { | 6215 var h = { |
5813 "content-type" : "application/json; charset=utf-8", | 6216 "content-type": "application/json; charset=utf-8", |
5814 }; | 6217 }; |
5815 var resp = convert.JSON.encode(buildJobMetrics()); | 6218 var resp = convert.JSON.encode(buildJobMetrics()); |
5816 return new async.Future.value(stringResponse(200, h, resp)); | 6219 return new async.Future.value(stringResponse(200, h, resp)); |
5817 }), true); | 6220 }), true); |
5818 res.getMetrics(arg_projectId, arg_jobId, location: arg_location, startTime
: arg_startTime).then(unittest.expectAsync1(((api.JobMetrics response) { | 6221 res |
| 6222 .getMetrics(arg_projectId, arg_jobId, |
| 6223 location: arg_location, startTime: arg_startTime) |
| 6224 .then(unittest.expectAsync1(((api.JobMetrics response) { |
5819 checkJobMetrics(response); | 6225 checkJobMetrics(response); |
5820 }))); | 6226 }))); |
5821 }); | 6227 }); |
5822 | 6228 |
5823 unittest.test("method--list", () { | 6229 unittest.test("method--list", () { |
5824 | |
5825 var mock = new HttpServerMock(); | 6230 var mock = new HttpServerMock(); |
5826 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; | 6231 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; |
5827 var arg_projectId = "foo"; | 6232 var arg_projectId = "foo"; |
5828 var arg_view = "foo"; | |
5829 var arg_filter = "foo"; | 6233 var arg_filter = "foo"; |
5830 var arg_location = "foo"; | 6234 var arg_location = "foo"; |
5831 var arg_pageToken = "foo"; | 6235 var arg_pageToken = "foo"; |
5832 var arg_pageSize = 42; | 6236 var arg_pageSize = 42; |
| 6237 var arg_view = "foo"; |
5833 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 6238 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5834 var path = (req.url).path; | 6239 var path = (req.url).path; |
5835 var pathOffset = 0; | 6240 var pathOffset = 0; |
5836 var index; | 6241 var index; |
5837 var subPart; | 6242 var subPart; |
5838 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6243 unittest.expect( |
| 6244 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
5839 pathOffset += 1; | 6245 pathOffset += 1; |
5840 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 6246 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 6247 unittest.equals("v1b3/projects/")); |
5841 pathOffset += 14; | 6248 pathOffset += 14; |
5842 index = path.indexOf("/jobs", pathOffset); | 6249 index = path.indexOf("/jobs", pathOffset); |
5843 unittest.expect(index >= 0, unittest.isTrue); | 6250 unittest.expect(index >= 0, unittest.isTrue); |
5844 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 6251 subPart = |
| 6252 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
5845 pathOffset = index; | 6253 pathOffset = index; |
5846 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 6254 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
5847 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("/jobs")); | 6255 unittest.expect(path.substring(pathOffset, pathOffset + 5), |
| 6256 unittest.equals("/jobs")); |
5848 pathOffset += 5; | 6257 pathOffset += 5; |
5849 | 6258 |
5850 var query = (req.url).query; | 6259 var query = (req.url).query; |
5851 var queryOffset = 0; | 6260 var queryOffset = 0; |
5852 var queryMap = {}; | 6261 var queryMap = {}; |
5853 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6262 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5854 parseBool(n) { | 6263 parseBool(n) { |
5855 if (n == "true") return true; | 6264 if (n == "true") return true; |
5856 if (n == "false") return false; | 6265 if (n == "false") return false; |
5857 if (n == null) return null; | 6266 if (n == null) return null; |
5858 throw new core.ArgumentError("Invalid boolean: $n"); | 6267 throw new core.ArgumentError("Invalid boolean: $n"); |
5859 } | 6268 } |
| 6269 |
5860 if (query.length > 0) { | 6270 if (query.length > 0) { |
5861 for (var part in query.split("&")) { | 6271 for (var part in query.split("&")) { |
5862 var keyvalue = part.split("="); | 6272 var keyvalue = part.split("="); |
5863 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6273 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 6274 core.Uri.decodeQueryComponent(keyvalue[1])); |
5864 } | 6275 } |
5865 } | 6276 } |
| 6277 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 6278 unittest.expect( |
| 6279 queryMap["location"].first, unittest.equals(arg_location)); |
| 6280 unittest.expect( |
| 6281 queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
| 6282 unittest.expect(core.int.parse(queryMap["pageSize"].first), |
| 6283 unittest.equals(arg_pageSize)); |
5866 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | 6284 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
5867 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | |
5868 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); | |
5869 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
5870 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
5871 | |
5872 | 6285 |
5873 var h = { | 6286 var h = { |
5874 "content-type" : "application/json; charset=utf-8", | 6287 "content-type": "application/json; charset=utf-8", |
5875 }; | 6288 }; |
5876 var resp = convert.JSON.encode(buildListJobsResponse()); | 6289 var resp = convert.JSON.encode(buildListJobsResponse()); |
5877 return new async.Future.value(stringResponse(200, h, resp)); | 6290 return new async.Future.value(stringResponse(200, h, resp)); |
5878 }), true); | 6291 }), true); |
5879 res.list(arg_projectId, view: arg_view, filter: arg_filter, location: arg_
location, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expect
Async1(((api.ListJobsResponse response) { | 6292 res |
| 6293 .list(arg_projectId, |
| 6294 filter: arg_filter, |
| 6295 location: arg_location, |
| 6296 pageToken: arg_pageToken, |
| 6297 pageSize: arg_pageSize, |
| 6298 view: arg_view) |
| 6299 .then(unittest.expectAsync1(((api.ListJobsResponse response) { |
5880 checkListJobsResponse(response); | 6300 checkListJobsResponse(response); |
5881 }))); | 6301 }))); |
5882 }); | 6302 }); |
5883 | 6303 |
5884 unittest.test("method--update", () { | 6304 unittest.test("method--update", () { |
5885 | |
5886 var mock = new HttpServerMock(); | 6305 var mock = new HttpServerMock(); |
5887 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; | 6306 api.ProjectsJobsResourceApi res = new api.DataflowApi(mock).projects.jobs; |
5888 var arg_request = buildJob(); | 6307 var arg_request = buildJob(); |
5889 var arg_projectId = "foo"; | 6308 var arg_projectId = "foo"; |
5890 var arg_jobId = "foo"; | 6309 var arg_jobId = "foo"; |
5891 var arg_location = "foo"; | 6310 var arg_location = "foo"; |
5892 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 6311 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5893 var obj = new api.Job.fromJson(json); | 6312 var obj = new api.Job.fromJson(json); |
5894 checkJob(obj); | 6313 checkJob(obj); |
5895 | 6314 |
5896 var path = (req.url).path; | 6315 var path = (req.url).path; |
5897 var pathOffset = 0; | 6316 var pathOffset = 0; |
5898 var index; | 6317 var index; |
5899 var subPart; | 6318 var subPart; |
5900 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6319 unittest.expect( |
| 6320 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
5901 pathOffset += 1; | 6321 pathOffset += 1; |
5902 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 6322 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 6323 unittest.equals("v1b3/projects/")); |
5903 pathOffset += 14; | 6324 pathOffset += 14; |
5904 index = path.indexOf("/jobs/", pathOffset); | 6325 index = path.indexOf("/jobs/", pathOffset); |
5905 unittest.expect(index >= 0, unittest.isTrue); | 6326 unittest.expect(index >= 0, unittest.isTrue); |
5906 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 6327 subPart = |
| 6328 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
5907 pathOffset = index; | 6329 pathOffset = index; |
5908 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 6330 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
5909 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/jobs/")); | 6331 unittest.expect(path.substring(pathOffset, pathOffset + 6), |
| 6332 unittest.equals("/jobs/")); |
5910 pathOffset += 6; | 6333 pathOffset += 6; |
5911 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 6334 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
5912 pathOffset = path.length; | 6335 pathOffset = path.length; |
5913 unittest.expect(subPart, unittest.equals("$arg_jobId")); | 6336 unittest.expect(subPart, unittest.equals("$arg_jobId")); |
5914 | 6337 |
5915 var query = (req.url).query; | 6338 var query = (req.url).query; |
5916 var queryOffset = 0; | 6339 var queryOffset = 0; |
5917 var queryMap = {}; | 6340 var queryMap = {}; |
5918 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6341 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5919 parseBool(n) { | 6342 parseBool(n) { |
5920 if (n == "true") return true; | 6343 if (n == "true") return true; |
5921 if (n == "false") return false; | 6344 if (n == "false") return false; |
5922 if (n == null) return null; | 6345 if (n == null) return null; |
5923 throw new core.ArgumentError("Invalid boolean: $n"); | 6346 throw new core.ArgumentError("Invalid boolean: $n"); |
5924 } | 6347 } |
| 6348 |
5925 if (query.length > 0) { | 6349 if (query.length > 0) { |
5926 for (var part in query.split("&")) { | 6350 for (var part in query.split("&")) { |
5927 var keyvalue = part.split("="); | 6351 var keyvalue = part.split("="); |
5928 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6352 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 6353 core.Uri.decodeQueryComponent(keyvalue[1])); |
5929 } | 6354 } |
5930 } | 6355 } |
5931 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); | 6356 unittest.expect( |
5932 | 6357 queryMap["location"].first, unittest.equals(arg_location)); |
5933 | 6358 |
5934 var h = { | 6359 var h = { |
5935 "content-type" : "application/json; charset=utf-8", | 6360 "content-type": "application/json; charset=utf-8", |
5936 }; | 6361 }; |
5937 var resp = convert.JSON.encode(buildJob()); | 6362 var resp = convert.JSON.encode(buildJob()); |
5938 return new async.Future.value(stringResponse(200, h, resp)); | 6363 return new async.Future.value(stringResponse(200, h, resp)); |
5939 }), true); | 6364 }), true); |
5940 res.update(arg_request, arg_projectId, arg_jobId, location: arg_location).
then(unittest.expectAsync1(((api.Job response) { | 6365 res |
| 6366 .update(arg_request, arg_projectId, arg_jobId, location: arg_location) |
| 6367 .then(unittest.expectAsync1(((api.Job response) { |
5941 checkJob(response); | 6368 checkJob(response); |
5942 }))); | 6369 }))); |
5943 }); | 6370 }); |
5944 | |
5945 }); | 6371 }); |
5946 | 6372 |
5947 | |
5948 unittest.group("resource-ProjectsJobsDebugResourceApi", () { | 6373 unittest.group("resource-ProjectsJobsDebugResourceApi", () { |
5949 unittest.test("method--getConfig", () { | 6374 unittest.test("method--getConfig", () { |
5950 | |
5951 var mock = new HttpServerMock(); | 6375 var mock = new HttpServerMock(); |
5952 api.ProjectsJobsDebugResourceApi res = new api.DataflowApi(mock).projects.
jobs.debug; | 6376 api.ProjectsJobsDebugResourceApi res = |
| 6377 new api.DataflowApi(mock).projects.jobs.debug; |
5953 var arg_request = buildGetDebugConfigRequest(); | 6378 var arg_request = buildGetDebugConfigRequest(); |
5954 var arg_projectId = "foo"; | 6379 var arg_projectId = "foo"; |
5955 var arg_jobId = "foo"; | 6380 var arg_jobId = "foo"; |
5956 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 6381 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5957 var obj = new api.GetDebugConfigRequest.fromJson(json); | 6382 var obj = new api.GetDebugConfigRequest.fromJson(json); |
5958 checkGetDebugConfigRequest(obj); | 6383 checkGetDebugConfigRequest(obj); |
5959 | 6384 |
5960 var path = (req.url).path; | 6385 var path = (req.url).path; |
5961 var pathOffset = 0; | 6386 var pathOffset = 0; |
5962 var index; | 6387 var index; |
5963 var subPart; | 6388 var subPart; |
5964 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6389 unittest.expect( |
| 6390 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
5965 pathOffset += 1; | 6391 pathOffset += 1; |
5966 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 6392 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 6393 unittest.equals("v1b3/projects/")); |
5967 pathOffset += 14; | 6394 pathOffset += 14; |
5968 index = path.indexOf("/jobs/", pathOffset); | 6395 index = path.indexOf("/jobs/", pathOffset); |
5969 unittest.expect(index >= 0, unittest.isTrue); | 6396 unittest.expect(index >= 0, unittest.isTrue); |
5970 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 6397 subPart = |
| 6398 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
5971 pathOffset = index; | 6399 pathOffset = index; |
5972 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 6400 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
5973 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/jobs/")); | 6401 unittest.expect(path.substring(pathOffset, pathOffset + 6), |
| 6402 unittest.equals("/jobs/")); |
5974 pathOffset += 6; | 6403 pathOffset += 6; |
5975 index = path.indexOf("/debug/getConfig", pathOffset); | 6404 index = path.indexOf("/debug/getConfig", pathOffset); |
5976 unittest.expect(index >= 0, unittest.isTrue); | 6405 unittest.expect(index >= 0, unittest.isTrue); |
5977 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 6406 subPart = |
| 6407 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
5978 pathOffset = index; | 6408 pathOffset = index; |
5979 unittest.expect(subPart, unittest.equals("$arg_jobId")); | 6409 unittest.expect(subPart, unittest.equals("$arg_jobId")); |
5980 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/debug/getConfig")); | 6410 unittest.expect(path.substring(pathOffset, pathOffset + 16), |
| 6411 unittest.equals("/debug/getConfig")); |
5981 pathOffset += 16; | 6412 pathOffset += 16; |
5982 | 6413 |
5983 var query = (req.url).query; | 6414 var query = (req.url).query; |
5984 var queryOffset = 0; | 6415 var queryOffset = 0; |
5985 var queryMap = {}; | 6416 var queryMap = {}; |
5986 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6417 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5987 parseBool(n) { | 6418 parseBool(n) { |
5988 if (n == "true") return true; | 6419 if (n == "true") return true; |
5989 if (n == "false") return false; | 6420 if (n == "false") return false; |
5990 if (n == null) return null; | 6421 if (n == null) return null; |
5991 throw new core.ArgumentError("Invalid boolean: $n"); | 6422 throw new core.ArgumentError("Invalid boolean: $n"); |
5992 } | 6423 } |
| 6424 |
5993 if (query.length > 0) { | 6425 if (query.length > 0) { |
5994 for (var part in query.split("&")) { | 6426 for (var part in query.split("&")) { |
5995 var keyvalue = part.split("="); | 6427 var keyvalue = part.split("="); |
5996 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6428 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 6429 core.Uri.decodeQueryComponent(keyvalue[1])); |
5997 } | 6430 } |
5998 } | 6431 } |
5999 | 6432 |
6000 | |
6001 var h = { | 6433 var h = { |
6002 "content-type" : "application/json; charset=utf-8", | 6434 "content-type": "application/json; charset=utf-8", |
6003 }; | 6435 }; |
6004 var resp = convert.JSON.encode(buildGetDebugConfigResponse()); | 6436 var resp = convert.JSON.encode(buildGetDebugConfigResponse()); |
6005 return new async.Future.value(stringResponse(200, h, resp)); | 6437 return new async.Future.value(stringResponse(200, h, resp)); |
6006 }), true); | 6438 }), true); |
6007 res.getConfig(arg_request, arg_projectId, arg_jobId).then(unittest.expectA
sync1(((api.GetDebugConfigResponse response) { | 6439 res |
| 6440 .getConfig(arg_request, arg_projectId, arg_jobId) |
| 6441 .then(unittest.expectAsync1(((api.GetDebugConfigResponse response) { |
6008 checkGetDebugConfigResponse(response); | 6442 checkGetDebugConfigResponse(response); |
6009 }))); | 6443 }))); |
6010 }); | 6444 }); |
6011 | 6445 |
6012 unittest.test("method--sendCapture", () { | 6446 unittest.test("method--sendCapture", () { |
6013 | |
6014 var mock = new HttpServerMock(); | 6447 var mock = new HttpServerMock(); |
6015 api.ProjectsJobsDebugResourceApi res = new api.DataflowApi(mock).projects.
jobs.debug; | 6448 api.ProjectsJobsDebugResourceApi res = |
| 6449 new api.DataflowApi(mock).projects.jobs.debug; |
6016 var arg_request = buildSendDebugCaptureRequest(); | 6450 var arg_request = buildSendDebugCaptureRequest(); |
6017 var arg_projectId = "foo"; | 6451 var arg_projectId = "foo"; |
6018 var arg_jobId = "foo"; | 6452 var arg_jobId = "foo"; |
6019 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 6453 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6020 var obj = new api.SendDebugCaptureRequest.fromJson(json); | 6454 var obj = new api.SendDebugCaptureRequest.fromJson(json); |
6021 checkSendDebugCaptureRequest(obj); | 6455 checkSendDebugCaptureRequest(obj); |
6022 | 6456 |
6023 var path = (req.url).path; | 6457 var path = (req.url).path; |
6024 var pathOffset = 0; | 6458 var pathOffset = 0; |
6025 var index; | 6459 var index; |
6026 var subPart; | 6460 var subPart; |
6027 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6461 unittest.expect( |
| 6462 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
6028 pathOffset += 1; | 6463 pathOffset += 1; |
6029 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 6464 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 6465 unittest.equals("v1b3/projects/")); |
6030 pathOffset += 14; | 6466 pathOffset += 14; |
6031 index = path.indexOf("/jobs/", pathOffset); | 6467 index = path.indexOf("/jobs/", pathOffset); |
6032 unittest.expect(index >= 0, unittest.isTrue); | 6468 unittest.expect(index >= 0, unittest.isTrue); |
6033 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 6469 subPart = |
| 6470 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6034 pathOffset = index; | 6471 pathOffset = index; |
6035 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 6472 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
6036 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/jobs/")); | 6473 unittest.expect(path.substring(pathOffset, pathOffset + 6), |
| 6474 unittest.equals("/jobs/")); |
6037 pathOffset += 6; | 6475 pathOffset += 6; |
6038 index = path.indexOf("/debug/sendCapture", pathOffset); | 6476 index = path.indexOf("/debug/sendCapture", pathOffset); |
6039 unittest.expect(index >= 0, unittest.isTrue); | 6477 unittest.expect(index >= 0, unittest.isTrue); |
6040 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 6478 subPart = |
| 6479 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6041 pathOffset = index; | 6480 pathOffset = index; |
6042 unittest.expect(subPart, unittest.equals("$arg_jobId")); | 6481 unittest.expect(subPart, unittest.equals("$arg_jobId")); |
6043 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/debug/sendCapture")); | 6482 unittest.expect(path.substring(pathOffset, pathOffset + 18), |
| 6483 unittest.equals("/debug/sendCapture")); |
6044 pathOffset += 18; | 6484 pathOffset += 18; |
6045 | 6485 |
6046 var query = (req.url).query; | 6486 var query = (req.url).query; |
6047 var queryOffset = 0; | 6487 var queryOffset = 0; |
6048 var queryMap = {}; | 6488 var queryMap = {}; |
6049 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6489 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6050 parseBool(n) { | 6490 parseBool(n) { |
6051 if (n == "true") return true; | 6491 if (n == "true") return true; |
6052 if (n == "false") return false; | 6492 if (n == "false") return false; |
6053 if (n == null) return null; | 6493 if (n == null) return null; |
6054 throw new core.ArgumentError("Invalid boolean: $n"); | 6494 throw new core.ArgumentError("Invalid boolean: $n"); |
6055 } | 6495 } |
| 6496 |
6056 if (query.length > 0) { | 6497 if (query.length > 0) { |
6057 for (var part in query.split("&")) { | 6498 for (var part in query.split("&")) { |
6058 var keyvalue = part.split("="); | 6499 var keyvalue = part.split("="); |
6059 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6500 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 6501 core.Uri.decodeQueryComponent(keyvalue[1])); |
6060 } | 6502 } |
6061 } | 6503 } |
6062 | 6504 |
6063 | |
6064 var h = { | 6505 var h = { |
6065 "content-type" : "application/json; charset=utf-8", | 6506 "content-type": "application/json; charset=utf-8", |
6066 }; | 6507 }; |
6067 var resp = convert.JSON.encode(buildSendDebugCaptureResponse()); | 6508 var resp = convert.JSON.encode(buildSendDebugCaptureResponse()); |
6068 return new async.Future.value(stringResponse(200, h, resp)); | 6509 return new async.Future.value(stringResponse(200, h, resp)); |
6069 }), true); | 6510 }), true); |
6070 res.sendCapture(arg_request, arg_projectId, arg_jobId).then(unittest.expec
tAsync1(((api.SendDebugCaptureResponse response) { | 6511 res |
| 6512 .sendCapture(arg_request, arg_projectId, arg_jobId) |
| 6513 .then(unittest.expectAsync1(((api.SendDebugCaptureResponse response) { |
6071 checkSendDebugCaptureResponse(response); | 6514 checkSendDebugCaptureResponse(response); |
6072 }))); | 6515 }))); |
6073 }); | 6516 }); |
6074 | |
6075 }); | 6517 }); |
6076 | 6518 |
6077 | |
6078 unittest.group("resource-ProjectsJobsMessagesResourceApi", () { | 6519 unittest.group("resource-ProjectsJobsMessagesResourceApi", () { |
6079 unittest.test("method--list", () { | 6520 unittest.test("method--list", () { |
6080 | |
6081 var mock = new HttpServerMock(); | 6521 var mock = new HttpServerMock(); |
6082 api.ProjectsJobsMessagesResourceApi res = new api.DataflowApi(mock).projec
ts.jobs.messages; | 6522 api.ProjectsJobsMessagesResourceApi res = |
| 6523 new api.DataflowApi(mock).projects.jobs.messages; |
6083 var arg_projectId = "foo"; | 6524 var arg_projectId = "foo"; |
6084 var arg_jobId = "foo"; | 6525 var arg_jobId = "foo"; |
6085 var arg_location = "foo"; | 6526 var arg_location = "foo"; |
6086 var arg_endTime = "foo"; | 6527 var arg_endTime = "foo"; |
| 6528 var arg_pageToken = "foo"; |
6087 var arg_startTime = "foo"; | 6529 var arg_startTime = "foo"; |
6088 var arg_pageToken = "foo"; | |
6089 var arg_pageSize = 42; | 6530 var arg_pageSize = 42; |
6090 var arg_minimumImportance = "foo"; | 6531 var arg_minimumImportance = "foo"; |
6091 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 6532 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6092 var path = (req.url).path; | 6533 var path = (req.url).path; |
6093 var pathOffset = 0; | 6534 var pathOffset = 0; |
6094 var index; | 6535 var index; |
6095 var subPart; | 6536 var subPart; |
6096 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6537 unittest.expect( |
| 6538 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
6097 pathOffset += 1; | 6539 pathOffset += 1; |
6098 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 6540 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 6541 unittest.equals("v1b3/projects/")); |
6099 pathOffset += 14; | 6542 pathOffset += 14; |
6100 index = path.indexOf("/jobs/", pathOffset); | 6543 index = path.indexOf("/jobs/", pathOffset); |
6101 unittest.expect(index >= 0, unittest.isTrue); | 6544 unittest.expect(index >= 0, unittest.isTrue); |
6102 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 6545 subPart = |
| 6546 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6103 pathOffset = index; | 6547 pathOffset = index; |
6104 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 6548 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
6105 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/jobs/")); | 6549 unittest.expect(path.substring(pathOffset, pathOffset + 6), |
| 6550 unittest.equals("/jobs/")); |
6106 pathOffset += 6; | 6551 pathOffset += 6; |
6107 index = path.indexOf("/messages", pathOffset); | 6552 index = path.indexOf("/messages", pathOffset); |
6108 unittest.expect(index >= 0, unittest.isTrue); | 6553 unittest.expect(index >= 0, unittest.isTrue); |
6109 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 6554 subPart = |
| 6555 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6110 pathOffset = index; | 6556 pathOffset = index; |
6111 unittest.expect(subPart, unittest.equals("$arg_jobId")); | 6557 unittest.expect(subPart, unittest.equals("$arg_jobId")); |
6112 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/messages")); | 6558 unittest.expect(path.substring(pathOffset, pathOffset + 9), |
| 6559 unittest.equals("/messages")); |
6113 pathOffset += 9; | 6560 pathOffset += 9; |
6114 | 6561 |
6115 var query = (req.url).query; | 6562 var query = (req.url).query; |
6116 var queryOffset = 0; | 6563 var queryOffset = 0; |
6117 var queryMap = {}; | 6564 var queryMap = {}; |
6118 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6565 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6119 parseBool(n) { | 6566 parseBool(n) { |
6120 if (n == "true") return true; | 6567 if (n == "true") return true; |
6121 if (n == "false") return false; | 6568 if (n == "false") return false; |
6122 if (n == null) return null; | 6569 if (n == null) return null; |
6123 throw new core.ArgumentError("Invalid boolean: $n"); | 6570 throw new core.ArgumentError("Invalid boolean: $n"); |
6124 } | 6571 } |
| 6572 |
6125 if (query.length > 0) { | 6573 if (query.length > 0) { |
6126 for (var part in query.split("&")) { | 6574 for (var part in query.split("&")) { |
6127 var keyvalue = part.split("="); | 6575 var keyvalue = part.split("="); |
6128 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6576 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 6577 core.Uri.decodeQueryComponent(keyvalue[1])); |
6129 } | 6578 } |
6130 } | 6579 } |
6131 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); | 6580 unittest.expect( |
6132 unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime))
; | 6581 queryMap["location"].first, unittest.equals(arg_location)); |
6133 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi
me)); | 6582 unittest.expect( |
6134 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 6583 queryMap["endTime"].first, unittest.equals(arg_endTime)); |
6135 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 6584 unittest.expect( |
6136 unittest.expect(queryMap["minimumImportance"].first, unittest.equals(arg
_minimumImportance)); | 6585 queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
6137 | 6586 unittest.expect( |
| 6587 queryMap["startTime"].first, unittest.equals(arg_startTime)); |
| 6588 unittest.expect(core.int.parse(queryMap["pageSize"].first), |
| 6589 unittest.equals(arg_pageSize)); |
| 6590 unittest.expect(queryMap["minimumImportance"].first, |
| 6591 unittest.equals(arg_minimumImportance)); |
6138 | 6592 |
6139 var h = { | 6593 var h = { |
6140 "content-type" : "application/json; charset=utf-8", | 6594 "content-type": "application/json; charset=utf-8", |
6141 }; | 6595 }; |
6142 var resp = convert.JSON.encode(buildListJobMessagesResponse()); | 6596 var resp = convert.JSON.encode(buildListJobMessagesResponse()); |
6143 return new async.Future.value(stringResponse(200, h, resp)); | 6597 return new async.Future.value(stringResponse(200, h, resp)); |
6144 }), true); | 6598 }), true); |
6145 res.list(arg_projectId, arg_jobId, location: arg_location, endTime: arg_en
dTime, startTime: arg_startTime, pageToken: arg_pageToken, pageSize: arg_pageSiz
e, minimumImportance: arg_minimumImportance).then(unittest.expectAsync1(((api.Li
stJobMessagesResponse response) { | 6599 res |
| 6600 .list(arg_projectId, arg_jobId, |
| 6601 location: arg_location, |
| 6602 endTime: arg_endTime, |
| 6603 pageToken: arg_pageToken, |
| 6604 startTime: arg_startTime, |
| 6605 pageSize: arg_pageSize, |
| 6606 minimumImportance: arg_minimumImportance) |
| 6607 .then(unittest.expectAsync1(((api.ListJobMessagesResponse response) { |
6146 checkListJobMessagesResponse(response); | 6608 checkListJobMessagesResponse(response); |
6147 }))); | 6609 }))); |
6148 }); | 6610 }); |
6149 | |
6150 }); | 6611 }); |
6151 | 6612 |
6152 | |
6153 unittest.group("resource-ProjectsJobsWorkItemsResourceApi", () { | 6613 unittest.group("resource-ProjectsJobsWorkItemsResourceApi", () { |
6154 unittest.test("method--lease", () { | 6614 unittest.test("method--lease", () { |
6155 | |
6156 var mock = new HttpServerMock(); | 6615 var mock = new HttpServerMock(); |
6157 api.ProjectsJobsWorkItemsResourceApi res = new api.DataflowApi(mock).proje
cts.jobs.workItems; | 6616 api.ProjectsJobsWorkItemsResourceApi res = |
| 6617 new api.DataflowApi(mock).projects.jobs.workItems; |
6158 var arg_request = buildLeaseWorkItemRequest(); | 6618 var arg_request = buildLeaseWorkItemRequest(); |
6159 var arg_projectId = "foo"; | 6619 var arg_projectId = "foo"; |
6160 var arg_jobId = "foo"; | 6620 var arg_jobId = "foo"; |
6161 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 6621 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6162 var obj = new api.LeaseWorkItemRequest.fromJson(json); | 6622 var obj = new api.LeaseWorkItemRequest.fromJson(json); |
6163 checkLeaseWorkItemRequest(obj); | 6623 checkLeaseWorkItemRequest(obj); |
6164 | 6624 |
6165 var path = (req.url).path; | 6625 var path = (req.url).path; |
6166 var pathOffset = 0; | 6626 var pathOffset = 0; |
6167 var index; | 6627 var index; |
6168 var subPart; | 6628 var subPart; |
6169 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6629 unittest.expect( |
| 6630 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
6170 pathOffset += 1; | 6631 pathOffset += 1; |
6171 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 6632 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 6633 unittest.equals("v1b3/projects/")); |
6172 pathOffset += 14; | 6634 pathOffset += 14; |
6173 index = path.indexOf("/jobs/", pathOffset); | 6635 index = path.indexOf("/jobs/", pathOffset); |
6174 unittest.expect(index >= 0, unittest.isTrue); | 6636 unittest.expect(index >= 0, unittest.isTrue); |
6175 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 6637 subPart = |
| 6638 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6176 pathOffset = index; | 6639 pathOffset = index; |
6177 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 6640 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
6178 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/jobs/")); | 6641 unittest.expect(path.substring(pathOffset, pathOffset + 6), |
| 6642 unittest.equals("/jobs/")); |
6179 pathOffset += 6; | 6643 pathOffset += 6; |
6180 index = path.indexOf("/workItems:lease", pathOffset); | 6644 index = path.indexOf("/workItems:lease", pathOffset); |
6181 unittest.expect(index >= 0, unittest.isTrue); | 6645 unittest.expect(index >= 0, unittest.isTrue); |
6182 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 6646 subPart = |
| 6647 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6183 pathOffset = index; | 6648 pathOffset = index; |
6184 unittest.expect(subPart, unittest.equals("$arg_jobId")); | 6649 unittest.expect(subPart, unittest.equals("$arg_jobId")); |
6185 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/workItems:lease")); | 6650 unittest.expect(path.substring(pathOffset, pathOffset + 16), |
| 6651 unittest.equals("/workItems:lease")); |
6186 pathOffset += 16; | 6652 pathOffset += 16; |
6187 | 6653 |
6188 var query = (req.url).query; | 6654 var query = (req.url).query; |
6189 var queryOffset = 0; | 6655 var queryOffset = 0; |
6190 var queryMap = {}; | 6656 var queryMap = {}; |
6191 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6657 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6192 parseBool(n) { | 6658 parseBool(n) { |
6193 if (n == "true") return true; | 6659 if (n == "true") return true; |
6194 if (n == "false") return false; | 6660 if (n == "false") return false; |
6195 if (n == null) return null; | 6661 if (n == null) return null; |
6196 throw new core.ArgumentError("Invalid boolean: $n"); | 6662 throw new core.ArgumentError("Invalid boolean: $n"); |
6197 } | 6663 } |
| 6664 |
6198 if (query.length > 0) { | 6665 if (query.length > 0) { |
6199 for (var part in query.split("&")) { | 6666 for (var part in query.split("&")) { |
6200 var keyvalue = part.split("="); | 6667 var keyvalue = part.split("="); |
6201 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6668 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 6669 core.Uri.decodeQueryComponent(keyvalue[1])); |
6202 } | 6670 } |
6203 } | 6671 } |
6204 | 6672 |
6205 | |
6206 var h = { | 6673 var h = { |
6207 "content-type" : "application/json; charset=utf-8", | 6674 "content-type": "application/json; charset=utf-8", |
6208 }; | 6675 }; |
6209 var resp = convert.JSON.encode(buildLeaseWorkItemResponse()); | 6676 var resp = convert.JSON.encode(buildLeaseWorkItemResponse()); |
6210 return new async.Future.value(stringResponse(200, h, resp)); | 6677 return new async.Future.value(stringResponse(200, h, resp)); |
6211 }), true); | 6678 }), true); |
6212 res.lease(arg_request, arg_projectId, arg_jobId).then(unittest.expectAsync
1(((api.LeaseWorkItemResponse response) { | 6679 res |
| 6680 .lease(arg_request, arg_projectId, arg_jobId) |
| 6681 .then(unittest.expectAsync1(((api.LeaseWorkItemResponse response) { |
6213 checkLeaseWorkItemResponse(response); | 6682 checkLeaseWorkItemResponse(response); |
6214 }))); | 6683 }))); |
6215 }); | 6684 }); |
6216 | 6685 |
6217 unittest.test("method--reportStatus", () { | 6686 unittest.test("method--reportStatus", () { |
6218 | |
6219 var mock = new HttpServerMock(); | 6687 var mock = new HttpServerMock(); |
6220 api.ProjectsJobsWorkItemsResourceApi res = new api.DataflowApi(mock).proje
cts.jobs.workItems; | 6688 api.ProjectsJobsWorkItemsResourceApi res = |
| 6689 new api.DataflowApi(mock).projects.jobs.workItems; |
6221 var arg_request = buildReportWorkItemStatusRequest(); | 6690 var arg_request = buildReportWorkItemStatusRequest(); |
6222 var arg_projectId = "foo"; | 6691 var arg_projectId = "foo"; |
6223 var arg_jobId = "foo"; | 6692 var arg_jobId = "foo"; |
6224 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 6693 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6225 var obj = new api.ReportWorkItemStatusRequest.fromJson(json); | 6694 var obj = new api.ReportWorkItemStatusRequest.fromJson(json); |
6226 checkReportWorkItemStatusRequest(obj); | 6695 checkReportWorkItemStatusRequest(obj); |
6227 | 6696 |
6228 var path = (req.url).path; | 6697 var path = (req.url).path; |
6229 var pathOffset = 0; | 6698 var pathOffset = 0; |
6230 var index; | 6699 var index; |
6231 var subPart; | 6700 var subPart; |
6232 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6701 unittest.expect( |
| 6702 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
6233 pathOffset += 1; | 6703 pathOffset += 1; |
6234 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 6704 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 6705 unittest.equals("v1b3/projects/")); |
6235 pathOffset += 14; | 6706 pathOffset += 14; |
6236 index = path.indexOf("/jobs/", pathOffset); | 6707 index = path.indexOf("/jobs/", pathOffset); |
6237 unittest.expect(index >= 0, unittest.isTrue); | 6708 unittest.expect(index >= 0, unittest.isTrue); |
6238 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 6709 subPart = |
| 6710 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6239 pathOffset = index; | 6711 pathOffset = index; |
6240 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 6712 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
6241 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/jobs/")); | 6713 unittest.expect(path.substring(pathOffset, pathOffset + 6), |
| 6714 unittest.equals("/jobs/")); |
6242 pathOffset += 6; | 6715 pathOffset += 6; |
6243 index = path.indexOf("/workItems:reportStatus", pathOffset); | 6716 index = path.indexOf("/workItems:reportStatus", pathOffset); |
6244 unittest.expect(index >= 0, unittest.isTrue); | 6717 unittest.expect(index >= 0, unittest.isTrue); |
6245 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 6718 subPart = |
| 6719 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6246 pathOffset = index; | 6720 pathOffset = index; |
6247 unittest.expect(subPart, unittest.equals("$arg_jobId")); | 6721 unittest.expect(subPart, unittest.equals("$arg_jobId")); |
6248 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("/workItems:reportStatus")); | 6722 unittest.expect(path.substring(pathOffset, pathOffset + 23), |
| 6723 unittest.equals("/workItems:reportStatus")); |
6249 pathOffset += 23; | 6724 pathOffset += 23; |
6250 | 6725 |
6251 var query = (req.url).query; | 6726 var query = (req.url).query; |
6252 var queryOffset = 0; | 6727 var queryOffset = 0; |
6253 var queryMap = {}; | 6728 var queryMap = {}; |
6254 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6729 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6255 parseBool(n) { | 6730 parseBool(n) { |
6256 if (n == "true") return true; | 6731 if (n == "true") return true; |
6257 if (n == "false") return false; | 6732 if (n == "false") return false; |
6258 if (n == null) return null; | 6733 if (n == null) return null; |
6259 throw new core.ArgumentError("Invalid boolean: $n"); | 6734 throw new core.ArgumentError("Invalid boolean: $n"); |
6260 } | 6735 } |
| 6736 |
6261 if (query.length > 0) { | 6737 if (query.length > 0) { |
6262 for (var part in query.split("&")) { | 6738 for (var part in query.split("&")) { |
6263 var keyvalue = part.split("="); | 6739 var keyvalue = part.split("="); |
6264 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6740 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 6741 core.Uri.decodeQueryComponent(keyvalue[1])); |
6265 } | 6742 } |
6266 } | 6743 } |
6267 | 6744 |
6268 | |
6269 var h = { | 6745 var h = { |
6270 "content-type" : "application/json; charset=utf-8", | 6746 "content-type": "application/json; charset=utf-8", |
6271 }; | 6747 }; |
6272 var resp = convert.JSON.encode(buildReportWorkItemStatusResponse()); | 6748 var resp = convert.JSON.encode(buildReportWorkItemStatusResponse()); |
6273 return new async.Future.value(stringResponse(200, h, resp)); | 6749 return new async.Future.value(stringResponse(200, h, resp)); |
6274 }), true); | 6750 }), true); |
6275 res.reportStatus(arg_request, arg_projectId, arg_jobId).then(unittest.expe
ctAsync1(((api.ReportWorkItemStatusResponse response) { | 6751 res.reportStatus(arg_request, arg_projectId, arg_jobId).then( |
| 6752 unittest.expectAsync1(((api.ReportWorkItemStatusResponse response) { |
6276 checkReportWorkItemStatusResponse(response); | 6753 checkReportWorkItemStatusResponse(response); |
6277 }))); | 6754 }))); |
6278 }); | 6755 }); |
6279 | |
6280 }); | 6756 }); |
6281 | 6757 |
6282 | |
6283 unittest.group("resource-ProjectsLocationsResourceApi", () { | 6758 unittest.group("resource-ProjectsLocationsResourceApi", () { |
6284 unittest.test("method--workerMessages", () { | 6759 unittest.test("method--workerMessages", () { |
6285 | |
6286 var mock = new HttpServerMock(); | 6760 var mock = new HttpServerMock(); |
6287 api.ProjectsLocationsResourceApi res = new api.DataflowApi(mock).projects.
locations; | 6761 api.ProjectsLocationsResourceApi res = |
| 6762 new api.DataflowApi(mock).projects.locations; |
6288 var arg_request = buildSendWorkerMessagesRequest(); | 6763 var arg_request = buildSendWorkerMessagesRequest(); |
6289 var arg_projectId = "foo"; | 6764 var arg_projectId = "foo"; |
6290 var arg_location = "foo"; | 6765 var arg_location = "foo"; |
6291 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 6766 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6292 var obj = new api.SendWorkerMessagesRequest.fromJson(json); | 6767 var obj = new api.SendWorkerMessagesRequest.fromJson(json); |
6293 checkSendWorkerMessagesRequest(obj); | 6768 checkSendWorkerMessagesRequest(obj); |
6294 | 6769 |
6295 var path = (req.url).path; | 6770 var path = (req.url).path; |
6296 var pathOffset = 0; | 6771 var pathOffset = 0; |
6297 var index; | 6772 var index; |
6298 var subPart; | 6773 var subPart; |
6299 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6774 unittest.expect( |
| 6775 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
6300 pathOffset += 1; | 6776 pathOffset += 1; |
6301 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 6777 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 6778 unittest.equals("v1b3/projects/")); |
6302 pathOffset += 14; | 6779 pathOffset += 14; |
6303 index = path.indexOf("/locations/", pathOffset); | 6780 index = path.indexOf("/locations/", pathOffset); |
6304 unittest.expect(index >= 0, unittest.isTrue); | 6781 unittest.expect(index >= 0, unittest.isTrue); |
6305 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 6782 subPart = |
| 6783 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6306 pathOffset = index; | 6784 pathOffset = index; |
6307 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 6785 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
6308 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/locations/")); | 6786 unittest.expect(path.substring(pathOffset, pathOffset + 11), |
| 6787 unittest.equals("/locations/")); |
6309 pathOffset += 11; | 6788 pathOffset += 11; |
6310 index = path.indexOf("/WorkerMessages", pathOffset); | 6789 index = path.indexOf("/WorkerMessages", pathOffset); |
6311 unittest.expect(index >= 0, unittest.isTrue); | 6790 unittest.expect(index >= 0, unittest.isTrue); |
6312 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 6791 subPart = |
| 6792 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6313 pathOffset = index; | 6793 pathOffset = index; |
6314 unittest.expect(subPart, unittest.equals("$arg_location")); | 6794 unittest.expect(subPart, unittest.equals("$arg_location")); |
6315 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/WorkerMessages")); | 6795 unittest.expect(path.substring(pathOffset, pathOffset + 15), |
| 6796 unittest.equals("/WorkerMessages")); |
6316 pathOffset += 15; | 6797 pathOffset += 15; |
6317 | 6798 |
6318 var query = (req.url).query; | 6799 var query = (req.url).query; |
6319 var queryOffset = 0; | 6800 var queryOffset = 0; |
6320 var queryMap = {}; | 6801 var queryMap = {}; |
6321 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6802 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6322 parseBool(n) { | 6803 parseBool(n) { |
6323 if (n == "true") return true; | 6804 if (n == "true") return true; |
6324 if (n == "false") return false; | 6805 if (n == "false") return false; |
6325 if (n == null) return null; | 6806 if (n == null) return null; |
6326 throw new core.ArgumentError("Invalid boolean: $n"); | 6807 throw new core.ArgumentError("Invalid boolean: $n"); |
6327 } | 6808 } |
| 6809 |
6328 if (query.length > 0) { | 6810 if (query.length > 0) { |
6329 for (var part in query.split("&")) { | 6811 for (var part in query.split("&")) { |
6330 var keyvalue = part.split("="); | 6812 var keyvalue = part.split("="); |
6331 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6813 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 6814 core.Uri.decodeQueryComponent(keyvalue[1])); |
6332 } | 6815 } |
6333 } | 6816 } |
6334 | 6817 |
6335 | |
6336 var h = { | 6818 var h = { |
6337 "content-type" : "application/json; charset=utf-8", | 6819 "content-type": "application/json; charset=utf-8", |
6338 }; | 6820 }; |
6339 var resp = convert.JSON.encode(buildSendWorkerMessagesResponse()); | 6821 var resp = convert.JSON.encode(buildSendWorkerMessagesResponse()); |
6340 return new async.Future.value(stringResponse(200, h, resp)); | 6822 return new async.Future.value(stringResponse(200, h, resp)); |
6341 }), true); | 6823 }), true); |
6342 res.workerMessages(arg_request, arg_projectId, arg_location).then(unittest
.expectAsync1(((api.SendWorkerMessagesResponse response) { | 6824 res.workerMessages(arg_request, arg_projectId, arg_location).then( |
| 6825 unittest.expectAsync1(((api.SendWorkerMessagesResponse response) { |
6343 checkSendWorkerMessagesResponse(response); | 6826 checkSendWorkerMessagesResponse(response); |
6344 }))); | 6827 }))); |
6345 }); | 6828 }); |
6346 | |
6347 }); | 6829 }); |
6348 | 6830 |
6349 | |
6350 unittest.group("resource-ProjectsLocationsJobsResourceApi", () { | 6831 unittest.group("resource-ProjectsLocationsJobsResourceApi", () { |
6351 unittest.test("method--create", () { | 6832 unittest.test("method--create", () { |
6352 | |
6353 var mock = new HttpServerMock(); | 6833 var mock = new HttpServerMock(); |
6354 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje
cts.locations.jobs; | 6834 api.ProjectsLocationsJobsResourceApi res = |
| 6835 new api.DataflowApi(mock).projects.locations.jobs; |
6355 var arg_request = buildJob(); | 6836 var arg_request = buildJob(); |
6356 var arg_projectId = "foo"; | 6837 var arg_projectId = "foo"; |
6357 var arg_location = "foo"; | 6838 var arg_location = "foo"; |
6358 var arg_replaceJobId = "foo"; | 6839 var arg_replaceJobId = "foo"; |
6359 var arg_view = "foo"; | 6840 var arg_view = "foo"; |
6360 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 6841 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6361 var obj = new api.Job.fromJson(json); | 6842 var obj = new api.Job.fromJson(json); |
6362 checkJob(obj); | 6843 checkJob(obj); |
6363 | 6844 |
6364 var path = (req.url).path; | 6845 var path = (req.url).path; |
6365 var pathOffset = 0; | 6846 var pathOffset = 0; |
6366 var index; | 6847 var index; |
6367 var subPart; | 6848 var subPart; |
6368 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6849 unittest.expect( |
| 6850 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
6369 pathOffset += 1; | 6851 pathOffset += 1; |
6370 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 6852 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 6853 unittest.equals("v1b3/projects/")); |
6371 pathOffset += 14; | 6854 pathOffset += 14; |
6372 index = path.indexOf("/locations/", pathOffset); | 6855 index = path.indexOf("/locations/", pathOffset); |
6373 unittest.expect(index >= 0, unittest.isTrue); | 6856 unittest.expect(index >= 0, unittest.isTrue); |
6374 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 6857 subPart = |
| 6858 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6375 pathOffset = index; | 6859 pathOffset = index; |
6376 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 6860 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
6377 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/locations/")); | 6861 unittest.expect(path.substring(pathOffset, pathOffset + 11), |
| 6862 unittest.equals("/locations/")); |
6378 pathOffset += 11; | 6863 pathOffset += 11; |
6379 index = path.indexOf("/jobs", pathOffset); | 6864 index = path.indexOf("/jobs", pathOffset); |
6380 unittest.expect(index >= 0, unittest.isTrue); | 6865 unittest.expect(index >= 0, unittest.isTrue); |
6381 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 6866 subPart = |
| 6867 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6382 pathOffset = index; | 6868 pathOffset = index; |
6383 unittest.expect(subPart, unittest.equals("$arg_location")); | 6869 unittest.expect(subPart, unittest.equals("$arg_location")); |
6384 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("/jobs")); | 6870 unittest.expect(path.substring(pathOffset, pathOffset + 5), |
| 6871 unittest.equals("/jobs")); |
6385 pathOffset += 5; | 6872 pathOffset += 5; |
6386 | 6873 |
6387 var query = (req.url).query; | 6874 var query = (req.url).query; |
6388 var queryOffset = 0; | 6875 var queryOffset = 0; |
6389 var queryMap = {}; | 6876 var queryMap = {}; |
6390 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6877 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6391 parseBool(n) { | 6878 parseBool(n) { |
6392 if (n == "true") return true; | 6879 if (n == "true") return true; |
6393 if (n == "false") return false; | 6880 if (n == "false") return false; |
6394 if (n == null) return null; | 6881 if (n == null) return null; |
6395 throw new core.ArgumentError("Invalid boolean: $n"); | 6882 throw new core.ArgumentError("Invalid boolean: $n"); |
6396 } | 6883 } |
| 6884 |
6397 if (query.length > 0) { | 6885 if (query.length > 0) { |
6398 for (var part in query.split("&")) { | 6886 for (var part in query.split("&")) { |
6399 var keyvalue = part.split("="); | 6887 var keyvalue = part.split("="); |
6400 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6888 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 6889 core.Uri.decodeQueryComponent(keyvalue[1])); |
6401 } | 6890 } |
6402 } | 6891 } |
6403 unittest.expect(queryMap["replaceJobId"].first, unittest.equals(arg_repl
aceJobId)); | 6892 unittest.expect( |
| 6893 queryMap["replaceJobId"].first, unittest.equals(arg_replaceJobId)); |
6404 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | 6894 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
6405 | 6895 |
6406 | |
6407 var h = { | 6896 var h = { |
6408 "content-type" : "application/json; charset=utf-8", | 6897 "content-type": "application/json; charset=utf-8", |
6409 }; | 6898 }; |
6410 var resp = convert.JSON.encode(buildJob()); | 6899 var resp = convert.JSON.encode(buildJob()); |
6411 return new async.Future.value(stringResponse(200, h, resp)); | 6900 return new async.Future.value(stringResponse(200, h, resp)); |
6412 }), true); | 6901 }), true); |
6413 res.create(arg_request, arg_projectId, arg_location, replaceJobId: arg_rep
laceJobId, view: arg_view).then(unittest.expectAsync1(((api.Job response) { | 6902 res |
| 6903 .create(arg_request, arg_projectId, arg_location, |
| 6904 replaceJobId: arg_replaceJobId, view: arg_view) |
| 6905 .then(unittest.expectAsync1(((api.Job response) { |
6414 checkJob(response); | 6906 checkJob(response); |
6415 }))); | 6907 }))); |
6416 }); | 6908 }); |
6417 | 6909 |
6418 unittest.test("method--get", () { | 6910 unittest.test("method--get", () { |
6419 | |
6420 var mock = new HttpServerMock(); | 6911 var mock = new HttpServerMock(); |
6421 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje
cts.locations.jobs; | 6912 api.ProjectsLocationsJobsResourceApi res = |
| 6913 new api.DataflowApi(mock).projects.locations.jobs; |
6422 var arg_projectId = "foo"; | 6914 var arg_projectId = "foo"; |
6423 var arg_location = "foo"; | 6915 var arg_location = "foo"; |
6424 var arg_jobId = "foo"; | 6916 var arg_jobId = "foo"; |
6425 var arg_view = "foo"; | 6917 var arg_view = "foo"; |
6426 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 6918 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6427 var path = (req.url).path; | 6919 var path = (req.url).path; |
6428 var pathOffset = 0; | 6920 var pathOffset = 0; |
6429 var index; | 6921 var index; |
6430 var subPart; | 6922 var subPart; |
6431 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6923 unittest.expect( |
| 6924 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
6432 pathOffset += 1; | 6925 pathOffset += 1; |
6433 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 6926 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 6927 unittest.equals("v1b3/projects/")); |
6434 pathOffset += 14; | 6928 pathOffset += 14; |
6435 index = path.indexOf("/locations/", pathOffset); | 6929 index = path.indexOf("/locations/", pathOffset); |
6436 unittest.expect(index >= 0, unittest.isTrue); | 6930 unittest.expect(index >= 0, unittest.isTrue); |
6437 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 6931 subPart = |
| 6932 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6438 pathOffset = index; | 6933 pathOffset = index; |
6439 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 6934 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
6440 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/locations/")); | 6935 unittest.expect(path.substring(pathOffset, pathOffset + 11), |
| 6936 unittest.equals("/locations/")); |
6441 pathOffset += 11; | 6937 pathOffset += 11; |
6442 index = path.indexOf("/jobs/", pathOffset); | 6938 index = path.indexOf("/jobs/", pathOffset); |
6443 unittest.expect(index >= 0, unittest.isTrue); | 6939 unittest.expect(index >= 0, unittest.isTrue); |
6444 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 6940 subPart = |
| 6941 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6445 pathOffset = index; | 6942 pathOffset = index; |
6446 unittest.expect(subPart, unittest.equals("$arg_location")); | 6943 unittest.expect(subPart, unittest.equals("$arg_location")); |
6447 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/jobs/")); | 6944 unittest.expect(path.substring(pathOffset, pathOffset + 6), |
| 6945 unittest.equals("/jobs/")); |
6448 pathOffset += 6; | 6946 pathOffset += 6; |
6449 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 6947 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
6450 pathOffset = path.length; | 6948 pathOffset = path.length; |
6451 unittest.expect(subPart, unittest.equals("$arg_jobId")); | 6949 unittest.expect(subPart, unittest.equals("$arg_jobId")); |
6452 | 6950 |
6453 var query = (req.url).query; | 6951 var query = (req.url).query; |
6454 var queryOffset = 0; | 6952 var queryOffset = 0; |
6455 var queryMap = {}; | 6953 var queryMap = {}; |
6456 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6954 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6457 parseBool(n) { | 6955 parseBool(n) { |
6458 if (n == "true") return true; | 6956 if (n == "true") return true; |
6459 if (n == "false") return false; | 6957 if (n == "false") return false; |
6460 if (n == null) return null; | 6958 if (n == null) return null; |
6461 throw new core.ArgumentError("Invalid boolean: $n"); | 6959 throw new core.ArgumentError("Invalid boolean: $n"); |
6462 } | 6960 } |
| 6961 |
6463 if (query.length > 0) { | 6962 if (query.length > 0) { |
6464 for (var part in query.split("&")) { | 6963 for (var part in query.split("&")) { |
6465 var keyvalue = part.split("="); | 6964 var keyvalue = part.split("="); |
6466 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6965 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 6966 core.Uri.decodeQueryComponent(keyvalue[1])); |
6467 } | 6967 } |
6468 } | 6968 } |
6469 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | 6969 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
6470 | 6970 |
6471 | |
6472 var h = { | 6971 var h = { |
6473 "content-type" : "application/json; charset=utf-8", | 6972 "content-type": "application/json; charset=utf-8", |
6474 }; | 6973 }; |
6475 var resp = convert.JSON.encode(buildJob()); | 6974 var resp = convert.JSON.encode(buildJob()); |
6476 return new async.Future.value(stringResponse(200, h, resp)); | 6975 return new async.Future.value(stringResponse(200, h, resp)); |
6477 }), true); | 6976 }), true); |
6478 res.get(arg_projectId, arg_location, arg_jobId, view: arg_view).then(unitt
est.expectAsync1(((api.Job response) { | 6977 res |
| 6978 .get(arg_projectId, arg_location, arg_jobId, view: arg_view) |
| 6979 .then(unittest.expectAsync1(((api.Job response) { |
6479 checkJob(response); | 6980 checkJob(response); |
6480 }))); | 6981 }))); |
6481 }); | 6982 }); |
6482 | 6983 |
6483 unittest.test("method--getMetrics", () { | 6984 unittest.test("method--getMetrics", () { |
6484 | |
6485 var mock = new HttpServerMock(); | 6985 var mock = new HttpServerMock(); |
6486 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje
cts.locations.jobs; | 6986 api.ProjectsLocationsJobsResourceApi res = |
| 6987 new api.DataflowApi(mock).projects.locations.jobs; |
6487 var arg_projectId = "foo"; | 6988 var arg_projectId = "foo"; |
6488 var arg_location = "foo"; | 6989 var arg_location = "foo"; |
6489 var arg_jobId = "foo"; | 6990 var arg_jobId = "foo"; |
6490 var arg_startTime = "foo"; | 6991 var arg_startTime = "foo"; |
6491 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 6992 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6492 var path = (req.url).path; | 6993 var path = (req.url).path; |
6493 var pathOffset = 0; | 6994 var pathOffset = 0; |
6494 var index; | 6995 var index; |
6495 var subPart; | 6996 var subPart; |
6496 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6997 unittest.expect( |
| 6998 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
6497 pathOffset += 1; | 6999 pathOffset += 1; |
6498 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 7000 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 7001 unittest.equals("v1b3/projects/")); |
6499 pathOffset += 14; | 7002 pathOffset += 14; |
6500 index = path.indexOf("/locations/", pathOffset); | 7003 index = path.indexOf("/locations/", pathOffset); |
6501 unittest.expect(index >= 0, unittest.isTrue); | 7004 unittest.expect(index >= 0, unittest.isTrue); |
6502 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7005 subPart = |
| 7006 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6503 pathOffset = index; | 7007 pathOffset = index; |
6504 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 7008 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
6505 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/locations/")); | 7009 unittest.expect(path.substring(pathOffset, pathOffset + 11), |
| 7010 unittest.equals("/locations/")); |
6506 pathOffset += 11; | 7011 pathOffset += 11; |
6507 index = path.indexOf("/jobs/", pathOffset); | 7012 index = path.indexOf("/jobs/", pathOffset); |
6508 unittest.expect(index >= 0, unittest.isTrue); | 7013 unittest.expect(index >= 0, unittest.isTrue); |
6509 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7014 subPart = |
| 7015 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6510 pathOffset = index; | 7016 pathOffset = index; |
6511 unittest.expect(subPart, unittest.equals("$arg_location")); | 7017 unittest.expect(subPart, unittest.equals("$arg_location")); |
6512 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/jobs/")); | 7018 unittest.expect(path.substring(pathOffset, pathOffset + 6), |
| 7019 unittest.equals("/jobs/")); |
6513 pathOffset += 6; | 7020 pathOffset += 6; |
6514 index = path.indexOf("/metrics", pathOffset); | 7021 index = path.indexOf("/metrics", pathOffset); |
6515 unittest.expect(index >= 0, unittest.isTrue); | 7022 unittest.expect(index >= 0, unittest.isTrue); |
6516 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7023 subPart = |
| 7024 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6517 pathOffset = index; | 7025 pathOffset = index; |
6518 unittest.expect(subPart, unittest.equals("$arg_jobId")); | 7026 unittest.expect(subPart, unittest.equals("$arg_jobId")); |
6519 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("/metrics")); | 7027 unittest.expect(path.substring(pathOffset, pathOffset + 8), |
| 7028 unittest.equals("/metrics")); |
6520 pathOffset += 8; | 7029 pathOffset += 8; |
6521 | 7030 |
6522 var query = (req.url).query; | 7031 var query = (req.url).query; |
6523 var queryOffset = 0; | 7032 var queryOffset = 0; |
6524 var queryMap = {}; | 7033 var queryMap = {}; |
6525 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 7034 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6526 parseBool(n) { | 7035 parseBool(n) { |
6527 if (n == "true") return true; | 7036 if (n == "true") return true; |
6528 if (n == "false") return false; | 7037 if (n == "false") return false; |
6529 if (n == null) return null; | 7038 if (n == null) return null; |
6530 throw new core.ArgumentError("Invalid boolean: $n"); | 7039 throw new core.ArgumentError("Invalid boolean: $n"); |
6531 } | 7040 } |
| 7041 |
6532 if (query.length > 0) { | 7042 if (query.length > 0) { |
6533 for (var part in query.split("&")) { | 7043 for (var part in query.split("&")) { |
6534 var keyvalue = part.split("="); | 7044 var keyvalue = part.split("="); |
6535 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7045 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 7046 core.Uri.decodeQueryComponent(keyvalue[1])); |
6536 } | 7047 } |
6537 } | 7048 } |
6538 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi
me)); | 7049 unittest.expect( |
6539 | 7050 queryMap["startTime"].first, unittest.equals(arg_startTime)); |
6540 | 7051 |
6541 var h = { | 7052 var h = { |
6542 "content-type" : "application/json; charset=utf-8", | 7053 "content-type": "application/json; charset=utf-8", |
6543 }; | 7054 }; |
6544 var resp = convert.JSON.encode(buildJobMetrics()); | 7055 var resp = convert.JSON.encode(buildJobMetrics()); |
6545 return new async.Future.value(stringResponse(200, h, resp)); | 7056 return new async.Future.value(stringResponse(200, h, resp)); |
6546 }), true); | 7057 }), true); |
6547 res.getMetrics(arg_projectId, arg_location, arg_jobId, startTime: arg_star
tTime).then(unittest.expectAsync1(((api.JobMetrics response) { | 7058 res |
| 7059 .getMetrics(arg_projectId, arg_location, arg_jobId, |
| 7060 startTime: arg_startTime) |
| 7061 .then(unittest.expectAsync1(((api.JobMetrics response) { |
6548 checkJobMetrics(response); | 7062 checkJobMetrics(response); |
6549 }))); | 7063 }))); |
6550 }); | 7064 }); |
6551 | 7065 |
6552 unittest.test("method--list", () { | 7066 unittest.test("method--list", () { |
6553 | |
6554 var mock = new HttpServerMock(); | 7067 var mock = new HttpServerMock(); |
6555 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje
cts.locations.jobs; | 7068 api.ProjectsLocationsJobsResourceApi res = |
| 7069 new api.DataflowApi(mock).projects.locations.jobs; |
6556 var arg_projectId = "foo"; | 7070 var arg_projectId = "foo"; |
6557 var arg_location = "foo"; | 7071 var arg_location = "foo"; |
6558 var arg_filter = "foo"; | |
6559 var arg_pageToken = "foo"; | 7072 var arg_pageToken = "foo"; |
6560 var arg_pageSize = 42; | 7073 var arg_pageSize = 42; |
6561 var arg_view = "foo"; | 7074 var arg_view = "foo"; |
| 7075 var arg_filter = "foo"; |
6562 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 7076 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6563 var path = (req.url).path; | 7077 var path = (req.url).path; |
6564 var pathOffset = 0; | 7078 var pathOffset = 0; |
6565 var index; | 7079 var index; |
6566 var subPart; | 7080 var subPart; |
6567 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7081 unittest.expect( |
| 7082 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
6568 pathOffset += 1; | 7083 pathOffset += 1; |
6569 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 7084 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 7085 unittest.equals("v1b3/projects/")); |
6570 pathOffset += 14; | 7086 pathOffset += 14; |
6571 index = path.indexOf("/locations/", pathOffset); | 7087 index = path.indexOf("/locations/", pathOffset); |
6572 unittest.expect(index >= 0, unittest.isTrue); | 7088 unittest.expect(index >= 0, unittest.isTrue); |
6573 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7089 subPart = |
| 7090 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6574 pathOffset = index; | 7091 pathOffset = index; |
6575 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 7092 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
6576 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/locations/")); | 7093 unittest.expect(path.substring(pathOffset, pathOffset + 11), |
| 7094 unittest.equals("/locations/")); |
6577 pathOffset += 11; | 7095 pathOffset += 11; |
6578 index = path.indexOf("/jobs", pathOffset); | 7096 index = path.indexOf("/jobs", pathOffset); |
6579 unittest.expect(index >= 0, unittest.isTrue); | 7097 unittest.expect(index >= 0, unittest.isTrue); |
6580 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7098 subPart = |
| 7099 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6581 pathOffset = index; | 7100 pathOffset = index; |
6582 unittest.expect(subPart, unittest.equals("$arg_location")); | 7101 unittest.expect(subPart, unittest.equals("$arg_location")); |
6583 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("/jobs")); | 7102 unittest.expect(path.substring(pathOffset, pathOffset + 5), |
| 7103 unittest.equals("/jobs")); |
6584 pathOffset += 5; | 7104 pathOffset += 5; |
6585 | 7105 |
6586 var query = (req.url).query; | 7106 var query = (req.url).query; |
6587 var queryOffset = 0; | 7107 var queryOffset = 0; |
6588 var queryMap = {}; | 7108 var queryMap = {}; |
6589 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 7109 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6590 parseBool(n) { | 7110 parseBool(n) { |
6591 if (n == "true") return true; | 7111 if (n == "true") return true; |
6592 if (n == "false") return false; | 7112 if (n == "false") return false; |
6593 if (n == null) return null; | 7113 if (n == null) return null; |
6594 throw new core.ArgumentError("Invalid boolean: $n"); | 7114 throw new core.ArgumentError("Invalid boolean: $n"); |
6595 } | 7115 } |
| 7116 |
6596 if (query.length > 0) { | 7117 if (query.length > 0) { |
6597 for (var part in query.split("&")) { | 7118 for (var part in query.split("&")) { |
6598 var keyvalue = part.split("="); | 7119 var keyvalue = part.split("="); |
6599 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7120 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 7121 core.Uri.decodeQueryComponent(keyvalue[1])); |
6600 } | 7122 } |
6601 } | 7123 } |
| 7124 unittest.expect( |
| 7125 queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
| 7126 unittest.expect(core.int.parse(queryMap["pageSize"].first), |
| 7127 unittest.equals(arg_pageSize)); |
| 7128 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
6602 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 7129 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
6603 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
6604 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
6605 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | |
6606 | |
6607 | 7130 |
6608 var h = { | 7131 var h = { |
6609 "content-type" : "application/json; charset=utf-8", | 7132 "content-type": "application/json; charset=utf-8", |
6610 }; | 7133 }; |
6611 var resp = convert.JSON.encode(buildListJobsResponse()); | 7134 var resp = convert.JSON.encode(buildListJobsResponse()); |
6612 return new async.Future.value(stringResponse(200, h, resp)); | 7135 return new async.Future.value(stringResponse(200, h, resp)); |
6613 }), true); | 7136 }), true); |
6614 res.list(arg_projectId, arg_location, filter: arg_filter, pageToken: arg_p
ageToken, pageSize: arg_pageSize, view: arg_view).then(unittest.expectAsync1(((a
pi.ListJobsResponse response) { | 7137 res |
| 7138 .list(arg_projectId, arg_location, |
| 7139 pageToken: arg_pageToken, |
| 7140 pageSize: arg_pageSize, |
| 7141 view: arg_view, |
| 7142 filter: arg_filter) |
| 7143 .then(unittest.expectAsync1(((api.ListJobsResponse response) { |
6615 checkListJobsResponse(response); | 7144 checkListJobsResponse(response); |
6616 }))); | 7145 }))); |
6617 }); | 7146 }); |
6618 | 7147 |
6619 unittest.test("method--update", () { | 7148 unittest.test("method--update", () { |
6620 | |
6621 var mock = new HttpServerMock(); | 7149 var mock = new HttpServerMock(); |
6622 api.ProjectsLocationsJobsResourceApi res = new api.DataflowApi(mock).proje
cts.locations.jobs; | 7150 api.ProjectsLocationsJobsResourceApi res = |
| 7151 new api.DataflowApi(mock).projects.locations.jobs; |
6623 var arg_request = buildJob(); | 7152 var arg_request = buildJob(); |
6624 var arg_projectId = "foo"; | 7153 var arg_projectId = "foo"; |
6625 var arg_location = "foo"; | 7154 var arg_location = "foo"; |
6626 var arg_jobId = "foo"; | 7155 var arg_jobId = "foo"; |
6627 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 7156 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6628 var obj = new api.Job.fromJson(json); | 7157 var obj = new api.Job.fromJson(json); |
6629 checkJob(obj); | 7158 checkJob(obj); |
6630 | 7159 |
6631 var path = (req.url).path; | 7160 var path = (req.url).path; |
6632 var pathOffset = 0; | 7161 var pathOffset = 0; |
6633 var index; | 7162 var index; |
6634 var subPart; | 7163 var subPart; |
6635 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7164 unittest.expect( |
| 7165 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
6636 pathOffset += 1; | 7166 pathOffset += 1; |
6637 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 7167 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 7168 unittest.equals("v1b3/projects/")); |
6638 pathOffset += 14; | 7169 pathOffset += 14; |
6639 index = path.indexOf("/locations/", pathOffset); | 7170 index = path.indexOf("/locations/", pathOffset); |
6640 unittest.expect(index >= 0, unittest.isTrue); | 7171 unittest.expect(index >= 0, unittest.isTrue); |
6641 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7172 subPart = |
| 7173 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6642 pathOffset = index; | 7174 pathOffset = index; |
6643 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 7175 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
6644 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/locations/")); | 7176 unittest.expect(path.substring(pathOffset, pathOffset + 11), |
| 7177 unittest.equals("/locations/")); |
6645 pathOffset += 11; | 7178 pathOffset += 11; |
6646 index = path.indexOf("/jobs/", pathOffset); | 7179 index = path.indexOf("/jobs/", pathOffset); |
6647 unittest.expect(index >= 0, unittest.isTrue); | 7180 unittest.expect(index >= 0, unittest.isTrue); |
6648 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7181 subPart = |
| 7182 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6649 pathOffset = index; | 7183 pathOffset = index; |
6650 unittest.expect(subPart, unittest.equals("$arg_location")); | 7184 unittest.expect(subPart, unittest.equals("$arg_location")); |
6651 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/jobs/")); | 7185 unittest.expect(path.substring(pathOffset, pathOffset + 6), |
| 7186 unittest.equals("/jobs/")); |
6652 pathOffset += 6; | 7187 pathOffset += 6; |
6653 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 7188 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
6654 pathOffset = path.length; | 7189 pathOffset = path.length; |
6655 unittest.expect(subPart, unittest.equals("$arg_jobId")); | 7190 unittest.expect(subPart, unittest.equals("$arg_jobId")); |
6656 | 7191 |
6657 var query = (req.url).query; | 7192 var query = (req.url).query; |
6658 var queryOffset = 0; | 7193 var queryOffset = 0; |
6659 var queryMap = {}; | 7194 var queryMap = {}; |
6660 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 7195 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6661 parseBool(n) { | 7196 parseBool(n) { |
6662 if (n == "true") return true; | 7197 if (n == "true") return true; |
6663 if (n == "false") return false; | 7198 if (n == "false") return false; |
6664 if (n == null) return null; | 7199 if (n == null) return null; |
6665 throw new core.ArgumentError("Invalid boolean: $n"); | 7200 throw new core.ArgumentError("Invalid boolean: $n"); |
6666 } | 7201 } |
| 7202 |
6667 if (query.length > 0) { | 7203 if (query.length > 0) { |
6668 for (var part in query.split("&")) { | 7204 for (var part in query.split("&")) { |
6669 var keyvalue = part.split("="); | 7205 var keyvalue = part.split("="); |
6670 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7206 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 7207 core.Uri.decodeQueryComponent(keyvalue[1])); |
6671 } | 7208 } |
6672 } | 7209 } |
6673 | 7210 |
6674 | |
6675 var h = { | 7211 var h = { |
6676 "content-type" : "application/json; charset=utf-8", | 7212 "content-type": "application/json; charset=utf-8", |
6677 }; | 7213 }; |
6678 var resp = convert.JSON.encode(buildJob()); | 7214 var resp = convert.JSON.encode(buildJob()); |
6679 return new async.Future.value(stringResponse(200, h, resp)); | 7215 return new async.Future.value(stringResponse(200, h, resp)); |
6680 }), true); | 7216 }), true); |
6681 res.update(arg_request, arg_projectId, arg_location, arg_jobId).then(unitt
est.expectAsync1(((api.Job response) { | 7217 res |
| 7218 .update(arg_request, arg_projectId, arg_location, arg_jobId) |
| 7219 .then(unittest.expectAsync1(((api.Job response) { |
6682 checkJob(response); | 7220 checkJob(response); |
6683 }))); | 7221 }))); |
6684 }); | 7222 }); |
6685 | |
6686 }); | 7223 }); |
6687 | 7224 |
6688 | |
6689 unittest.group("resource-ProjectsLocationsJobsDebugResourceApi", () { | 7225 unittest.group("resource-ProjectsLocationsJobsDebugResourceApi", () { |
6690 unittest.test("method--getConfig", () { | 7226 unittest.test("method--getConfig", () { |
6691 | |
6692 var mock = new HttpServerMock(); | 7227 var mock = new HttpServerMock(); |
6693 api.ProjectsLocationsJobsDebugResourceApi res = new api.DataflowApi(mock).
projects.locations.jobs.debug; | 7228 api.ProjectsLocationsJobsDebugResourceApi res = |
| 7229 new api.DataflowApi(mock).projects.locations.jobs.debug; |
6694 var arg_request = buildGetDebugConfigRequest(); | 7230 var arg_request = buildGetDebugConfigRequest(); |
6695 var arg_projectId = "foo"; | 7231 var arg_projectId = "foo"; |
6696 var arg_location = "foo"; | 7232 var arg_location = "foo"; |
6697 var arg_jobId = "foo"; | 7233 var arg_jobId = "foo"; |
6698 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 7234 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6699 var obj = new api.GetDebugConfigRequest.fromJson(json); | 7235 var obj = new api.GetDebugConfigRequest.fromJson(json); |
6700 checkGetDebugConfigRequest(obj); | 7236 checkGetDebugConfigRequest(obj); |
6701 | 7237 |
6702 var path = (req.url).path; | 7238 var path = (req.url).path; |
6703 var pathOffset = 0; | 7239 var pathOffset = 0; |
6704 var index; | 7240 var index; |
6705 var subPart; | 7241 var subPart; |
6706 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7242 unittest.expect( |
| 7243 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
6707 pathOffset += 1; | 7244 pathOffset += 1; |
6708 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 7245 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 7246 unittest.equals("v1b3/projects/")); |
6709 pathOffset += 14; | 7247 pathOffset += 14; |
6710 index = path.indexOf("/locations/", pathOffset); | 7248 index = path.indexOf("/locations/", pathOffset); |
6711 unittest.expect(index >= 0, unittest.isTrue); | 7249 unittest.expect(index >= 0, unittest.isTrue); |
6712 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7250 subPart = |
| 7251 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6713 pathOffset = index; | 7252 pathOffset = index; |
6714 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 7253 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
6715 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/locations/")); | 7254 unittest.expect(path.substring(pathOffset, pathOffset + 11), |
| 7255 unittest.equals("/locations/")); |
6716 pathOffset += 11; | 7256 pathOffset += 11; |
6717 index = path.indexOf("/jobs/", pathOffset); | 7257 index = path.indexOf("/jobs/", pathOffset); |
6718 unittest.expect(index >= 0, unittest.isTrue); | 7258 unittest.expect(index >= 0, unittest.isTrue); |
6719 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7259 subPart = |
| 7260 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6720 pathOffset = index; | 7261 pathOffset = index; |
6721 unittest.expect(subPart, unittest.equals("$arg_location")); | 7262 unittest.expect(subPart, unittest.equals("$arg_location")); |
6722 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/jobs/")); | 7263 unittest.expect(path.substring(pathOffset, pathOffset + 6), |
| 7264 unittest.equals("/jobs/")); |
6723 pathOffset += 6; | 7265 pathOffset += 6; |
6724 index = path.indexOf("/debug/getConfig", pathOffset); | 7266 index = path.indexOf("/debug/getConfig", pathOffset); |
6725 unittest.expect(index >= 0, unittest.isTrue); | 7267 unittest.expect(index >= 0, unittest.isTrue); |
6726 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7268 subPart = |
| 7269 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6727 pathOffset = index; | 7270 pathOffset = index; |
6728 unittest.expect(subPart, unittest.equals("$arg_jobId")); | 7271 unittest.expect(subPart, unittest.equals("$arg_jobId")); |
6729 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/debug/getConfig")); | 7272 unittest.expect(path.substring(pathOffset, pathOffset + 16), |
| 7273 unittest.equals("/debug/getConfig")); |
6730 pathOffset += 16; | 7274 pathOffset += 16; |
6731 | 7275 |
6732 var query = (req.url).query; | 7276 var query = (req.url).query; |
6733 var queryOffset = 0; | 7277 var queryOffset = 0; |
6734 var queryMap = {}; | 7278 var queryMap = {}; |
6735 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 7279 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6736 parseBool(n) { | 7280 parseBool(n) { |
6737 if (n == "true") return true; | 7281 if (n == "true") return true; |
6738 if (n == "false") return false; | 7282 if (n == "false") return false; |
6739 if (n == null) return null; | 7283 if (n == null) return null; |
6740 throw new core.ArgumentError("Invalid boolean: $n"); | 7284 throw new core.ArgumentError("Invalid boolean: $n"); |
6741 } | 7285 } |
| 7286 |
6742 if (query.length > 0) { | 7287 if (query.length > 0) { |
6743 for (var part in query.split("&")) { | 7288 for (var part in query.split("&")) { |
6744 var keyvalue = part.split("="); | 7289 var keyvalue = part.split("="); |
6745 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7290 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 7291 core.Uri.decodeQueryComponent(keyvalue[1])); |
6746 } | 7292 } |
6747 } | 7293 } |
6748 | 7294 |
6749 | |
6750 var h = { | 7295 var h = { |
6751 "content-type" : "application/json; charset=utf-8", | 7296 "content-type": "application/json; charset=utf-8", |
6752 }; | 7297 }; |
6753 var resp = convert.JSON.encode(buildGetDebugConfigResponse()); | 7298 var resp = convert.JSON.encode(buildGetDebugConfigResponse()); |
6754 return new async.Future.value(stringResponse(200, h, resp)); | 7299 return new async.Future.value(stringResponse(200, h, resp)); |
6755 }), true); | 7300 }), true); |
6756 res.getConfig(arg_request, arg_projectId, arg_location, arg_jobId).then(un
ittest.expectAsync1(((api.GetDebugConfigResponse response) { | 7301 res |
| 7302 .getConfig(arg_request, arg_projectId, arg_location, arg_jobId) |
| 7303 .then(unittest.expectAsync1(((api.GetDebugConfigResponse response) { |
6757 checkGetDebugConfigResponse(response); | 7304 checkGetDebugConfigResponse(response); |
6758 }))); | 7305 }))); |
6759 }); | 7306 }); |
6760 | 7307 |
6761 unittest.test("method--sendCapture", () { | 7308 unittest.test("method--sendCapture", () { |
6762 | |
6763 var mock = new HttpServerMock(); | 7309 var mock = new HttpServerMock(); |
6764 api.ProjectsLocationsJobsDebugResourceApi res = new api.DataflowApi(mock).
projects.locations.jobs.debug; | 7310 api.ProjectsLocationsJobsDebugResourceApi res = |
| 7311 new api.DataflowApi(mock).projects.locations.jobs.debug; |
6765 var arg_request = buildSendDebugCaptureRequest(); | 7312 var arg_request = buildSendDebugCaptureRequest(); |
6766 var arg_projectId = "foo"; | 7313 var arg_projectId = "foo"; |
6767 var arg_location = "foo"; | 7314 var arg_location = "foo"; |
6768 var arg_jobId = "foo"; | 7315 var arg_jobId = "foo"; |
6769 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 7316 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6770 var obj = new api.SendDebugCaptureRequest.fromJson(json); | 7317 var obj = new api.SendDebugCaptureRequest.fromJson(json); |
6771 checkSendDebugCaptureRequest(obj); | 7318 checkSendDebugCaptureRequest(obj); |
6772 | 7319 |
6773 var path = (req.url).path; | 7320 var path = (req.url).path; |
6774 var pathOffset = 0; | 7321 var pathOffset = 0; |
6775 var index; | 7322 var index; |
6776 var subPart; | 7323 var subPart; |
6777 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7324 unittest.expect( |
| 7325 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
6778 pathOffset += 1; | 7326 pathOffset += 1; |
6779 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 7327 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 7328 unittest.equals("v1b3/projects/")); |
6780 pathOffset += 14; | 7329 pathOffset += 14; |
6781 index = path.indexOf("/locations/", pathOffset); | 7330 index = path.indexOf("/locations/", pathOffset); |
6782 unittest.expect(index >= 0, unittest.isTrue); | 7331 unittest.expect(index >= 0, unittest.isTrue); |
6783 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7332 subPart = |
| 7333 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6784 pathOffset = index; | 7334 pathOffset = index; |
6785 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 7335 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
6786 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/locations/")); | 7336 unittest.expect(path.substring(pathOffset, pathOffset + 11), |
| 7337 unittest.equals("/locations/")); |
6787 pathOffset += 11; | 7338 pathOffset += 11; |
6788 index = path.indexOf("/jobs/", pathOffset); | 7339 index = path.indexOf("/jobs/", pathOffset); |
6789 unittest.expect(index >= 0, unittest.isTrue); | 7340 unittest.expect(index >= 0, unittest.isTrue); |
6790 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7341 subPart = |
| 7342 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6791 pathOffset = index; | 7343 pathOffset = index; |
6792 unittest.expect(subPart, unittest.equals("$arg_location")); | 7344 unittest.expect(subPart, unittest.equals("$arg_location")); |
6793 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/jobs/")); | 7345 unittest.expect(path.substring(pathOffset, pathOffset + 6), |
| 7346 unittest.equals("/jobs/")); |
6794 pathOffset += 6; | 7347 pathOffset += 6; |
6795 index = path.indexOf("/debug/sendCapture", pathOffset); | 7348 index = path.indexOf("/debug/sendCapture", pathOffset); |
6796 unittest.expect(index >= 0, unittest.isTrue); | 7349 unittest.expect(index >= 0, unittest.isTrue); |
6797 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7350 subPart = |
| 7351 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6798 pathOffset = index; | 7352 pathOffset = index; |
6799 unittest.expect(subPart, unittest.equals("$arg_jobId")); | 7353 unittest.expect(subPart, unittest.equals("$arg_jobId")); |
6800 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("/debug/sendCapture")); | 7354 unittest.expect(path.substring(pathOffset, pathOffset + 18), |
| 7355 unittest.equals("/debug/sendCapture")); |
6801 pathOffset += 18; | 7356 pathOffset += 18; |
6802 | 7357 |
6803 var query = (req.url).query; | 7358 var query = (req.url).query; |
6804 var queryOffset = 0; | 7359 var queryOffset = 0; |
6805 var queryMap = {}; | 7360 var queryMap = {}; |
6806 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 7361 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6807 parseBool(n) { | 7362 parseBool(n) { |
6808 if (n == "true") return true; | 7363 if (n == "true") return true; |
6809 if (n == "false") return false; | 7364 if (n == "false") return false; |
6810 if (n == null) return null; | 7365 if (n == null) return null; |
6811 throw new core.ArgumentError("Invalid boolean: $n"); | 7366 throw new core.ArgumentError("Invalid boolean: $n"); |
6812 } | 7367 } |
| 7368 |
6813 if (query.length > 0) { | 7369 if (query.length > 0) { |
6814 for (var part in query.split("&")) { | 7370 for (var part in query.split("&")) { |
6815 var keyvalue = part.split("="); | 7371 var keyvalue = part.split("="); |
6816 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7372 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 7373 core.Uri.decodeQueryComponent(keyvalue[1])); |
6817 } | 7374 } |
6818 } | 7375 } |
6819 | 7376 |
6820 | |
6821 var h = { | 7377 var h = { |
6822 "content-type" : "application/json; charset=utf-8", | 7378 "content-type": "application/json; charset=utf-8", |
6823 }; | 7379 }; |
6824 var resp = convert.JSON.encode(buildSendDebugCaptureResponse()); | 7380 var resp = convert.JSON.encode(buildSendDebugCaptureResponse()); |
6825 return new async.Future.value(stringResponse(200, h, resp)); | 7381 return new async.Future.value(stringResponse(200, h, resp)); |
6826 }), true); | 7382 }), true); |
6827 res.sendCapture(arg_request, arg_projectId, arg_location, arg_jobId).then(
unittest.expectAsync1(((api.SendDebugCaptureResponse response) { | 7383 res |
| 7384 .sendCapture(arg_request, arg_projectId, arg_location, arg_jobId) |
| 7385 .then(unittest.expectAsync1(((api.SendDebugCaptureResponse response) { |
6828 checkSendDebugCaptureResponse(response); | 7386 checkSendDebugCaptureResponse(response); |
6829 }))); | 7387 }))); |
6830 }); | 7388 }); |
6831 | |
6832 }); | 7389 }); |
6833 | 7390 |
6834 | |
6835 unittest.group("resource-ProjectsLocationsJobsMessagesResourceApi", () { | 7391 unittest.group("resource-ProjectsLocationsJobsMessagesResourceApi", () { |
6836 unittest.test("method--list", () { | 7392 unittest.test("method--list", () { |
6837 | |
6838 var mock = new HttpServerMock(); | 7393 var mock = new HttpServerMock(); |
6839 api.ProjectsLocationsJobsMessagesResourceApi res = new api.DataflowApi(moc
k).projects.locations.jobs.messages; | 7394 api.ProjectsLocationsJobsMessagesResourceApi res = |
| 7395 new api.DataflowApi(mock).projects.locations.jobs.messages; |
6840 var arg_projectId = "foo"; | 7396 var arg_projectId = "foo"; |
6841 var arg_location = "foo"; | 7397 var arg_location = "foo"; |
6842 var arg_jobId = "foo"; | 7398 var arg_jobId = "foo"; |
6843 var arg_endTime = "foo"; | 7399 var arg_endTime = "foo"; |
| 7400 var arg_pageToken = "foo"; |
6844 var arg_startTime = "foo"; | 7401 var arg_startTime = "foo"; |
6845 var arg_pageToken = "foo"; | |
6846 var arg_pageSize = 42; | 7402 var arg_pageSize = 42; |
6847 var arg_minimumImportance = "foo"; | 7403 var arg_minimumImportance = "foo"; |
6848 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 7404 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6849 var path = (req.url).path; | 7405 var path = (req.url).path; |
6850 var pathOffset = 0; | 7406 var pathOffset = 0; |
6851 var index; | 7407 var index; |
6852 var subPart; | 7408 var subPart; |
6853 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7409 unittest.expect( |
| 7410 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
6854 pathOffset += 1; | 7411 pathOffset += 1; |
6855 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 7412 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 7413 unittest.equals("v1b3/projects/")); |
6856 pathOffset += 14; | 7414 pathOffset += 14; |
6857 index = path.indexOf("/locations/", pathOffset); | 7415 index = path.indexOf("/locations/", pathOffset); |
6858 unittest.expect(index >= 0, unittest.isTrue); | 7416 unittest.expect(index >= 0, unittest.isTrue); |
6859 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7417 subPart = |
| 7418 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6860 pathOffset = index; | 7419 pathOffset = index; |
6861 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 7420 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
6862 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/locations/")); | 7421 unittest.expect(path.substring(pathOffset, pathOffset + 11), |
| 7422 unittest.equals("/locations/")); |
6863 pathOffset += 11; | 7423 pathOffset += 11; |
6864 index = path.indexOf("/jobs/", pathOffset); | 7424 index = path.indexOf("/jobs/", pathOffset); |
6865 unittest.expect(index >= 0, unittest.isTrue); | 7425 unittest.expect(index >= 0, unittest.isTrue); |
6866 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7426 subPart = |
| 7427 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6867 pathOffset = index; | 7428 pathOffset = index; |
6868 unittest.expect(subPart, unittest.equals("$arg_location")); | 7429 unittest.expect(subPart, unittest.equals("$arg_location")); |
6869 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/jobs/")); | 7430 unittest.expect(path.substring(pathOffset, pathOffset + 6), |
| 7431 unittest.equals("/jobs/")); |
6870 pathOffset += 6; | 7432 pathOffset += 6; |
6871 index = path.indexOf("/messages", pathOffset); | 7433 index = path.indexOf("/messages", pathOffset); |
6872 unittest.expect(index >= 0, unittest.isTrue); | 7434 unittest.expect(index >= 0, unittest.isTrue); |
6873 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7435 subPart = |
| 7436 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6874 pathOffset = index; | 7437 pathOffset = index; |
6875 unittest.expect(subPart, unittest.equals("$arg_jobId")); | 7438 unittest.expect(subPart, unittest.equals("$arg_jobId")); |
6876 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/messages")); | 7439 unittest.expect(path.substring(pathOffset, pathOffset + 9), |
| 7440 unittest.equals("/messages")); |
6877 pathOffset += 9; | 7441 pathOffset += 9; |
6878 | 7442 |
6879 var query = (req.url).query; | 7443 var query = (req.url).query; |
6880 var queryOffset = 0; | 7444 var queryOffset = 0; |
6881 var queryMap = {}; | 7445 var queryMap = {}; |
6882 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 7446 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6883 parseBool(n) { | 7447 parseBool(n) { |
6884 if (n == "true") return true; | 7448 if (n == "true") return true; |
6885 if (n == "false") return false; | 7449 if (n == "false") return false; |
6886 if (n == null) return null; | 7450 if (n == null) return null; |
6887 throw new core.ArgumentError("Invalid boolean: $n"); | 7451 throw new core.ArgumentError("Invalid boolean: $n"); |
6888 } | 7452 } |
| 7453 |
6889 if (query.length > 0) { | 7454 if (query.length > 0) { |
6890 for (var part in query.split("&")) { | 7455 for (var part in query.split("&")) { |
6891 var keyvalue = part.split("="); | 7456 var keyvalue = part.split("="); |
6892 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7457 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 7458 core.Uri.decodeQueryComponent(keyvalue[1])); |
6893 } | 7459 } |
6894 } | 7460 } |
6895 unittest.expect(queryMap["endTime"].first, unittest.equals(arg_endTime))
; | 7461 unittest.expect( |
6896 unittest.expect(queryMap["startTime"].first, unittest.equals(arg_startTi
me)); | 7462 queryMap["endTime"].first, unittest.equals(arg_endTime)); |
6897 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 7463 unittest.expect( |
6898 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 7464 queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
6899 unittest.expect(queryMap["minimumImportance"].first, unittest.equals(arg
_minimumImportance)); | 7465 unittest.expect( |
6900 | 7466 queryMap["startTime"].first, unittest.equals(arg_startTime)); |
| 7467 unittest.expect(core.int.parse(queryMap["pageSize"].first), |
| 7468 unittest.equals(arg_pageSize)); |
| 7469 unittest.expect(queryMap["minimumImportance"].first, |
| 7470 unittest.equals(arg_minimumImportance)); |
6901 | 7471 |
6902 var h = { | 7472 var h = { |
6903 "content-type" : "application/json; charset=utf-8", | 7473 "content-type": "application/json; charset=utf-8", |
6904 }; | 7474 }; |
6905 var resp = convert.JSON.encode(buildListJobMessagesResponse()); | 7475 var resp = convert.JSON.encode(buildListJobMessagesResponse()); |
6906 return new async.Future.value(stringResponse(200, h, resp)); | 7476 return new async.Future.value(stringResponse(200, h, resp)); |
6907 }), true); | 7477 }), true); |
6908 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.expectAsync1(((api.ListJobMessa
gesResponse response) { | 7478 res |
| 7479 .list(arg_projectId, arg_location, arg_jobId, |
| 7480 endTime: arg_endTime, |
| 7481 pageToken: arg_pageToken, |
| 7482 startTime: arg_startTime, |
| 7483 pageSize: arg_pageSize, |
| 7484 minimumImportance: arg_minimumImportance) |
| 7485 .then(unittest.expectAsync1(((api.ListJobMessagesResponse response) { |
6909 checkListJobMessagesResponse(response); | 7486 checkListJobMessagesResponse(response); |
6910 }))); | 7487 }))); |
6911 }); | 7488 }); |
6912 | |
6913 }); | 7489 }); |
6914 | 7490 |
6915 | |
6916 unittest.group("resource-ProjectsLocationsJobsWorkItemsResourceApi", () { | 7491 unittest.group("resource-ProjectsLocationsJobsWorkItemsResourceApi", () { |
6917 unittest.test("method--lease", () { | 7492 unittest.test("method--lease", () { |
6918 | |
6919 var mock = new HttpServerMock(); | 7493 var mock = new HttpServerMock(); |
6920 api.ProjectsLocationsJobsWorkItemsResourceApi res = new api.DataflowApi(mo
ck).projects.locations.jobs.workItems; | 7494 api.ProjectsLocationsJobsWorkItemsResourceApi res = |
| 7495 new api.DataflowApi(mock).projects.locations.jobs.workItems; |
6921 var arg_request = buildLeaseWorkItemRequest(); | 7496 var arg_request = buildLeaseWorkItemRequest(); |
6922 var arg_projectId = "foo"; | 7497 var arg_projectId = "foo"; |
6923 var arg_location = "foo"; | 7498 var arg_location = "foo"; |
6924 var arg_jobId = "foo"; | 7499 var arg_jobId = "foo"; |
6925 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 7500 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6926 var obj = new api.LeaseWorkItemRequest.fromJson(json); | 7501 var obj = new api.LeaseWorkItemRequest.fromJson(json); |
6927 checkLeaseWorkItemRequest(obj); | 7502 checkLeaseWorkItemRequest(obj); |
6928 | 7503 |
6929 var path = (req.url).path; | 7504 var path = (req.url).path; |
6930 var pathOffset = 0; | 7505 var pathOffset = 0; |
6931 var index; | 7506 var index; |
6932 var subPart; | 7507 var subPart; |
6933 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7508 unittest.expect( |
| 7509 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
6934 pathOffset += 1; | 7510 pathOffset += 1; |
6935 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 7511 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 7512 unittest.equals("v1b3/projects/")); |
6936 pathOffset += 14; | 7513 pathOffset += 14; |
6937 index = path.indexOf("/locations/", pathOffset); | 7514 index = path.indexOf("/locations/", pathOffset); |
6938 unittest.expect(index >= 0, unittest.isTrue); | 7515 unittest.expect(index >= 0, unittest.isTrue); |
6939 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7516 subPart = |
| 7517 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6940 pathOffset = index; | 7518 pathOffset = index; |
6941 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 7519 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
6942 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/locations/")); | 7520 unittest.expect(path.substring(pathOffset, pathOffset + 11), |
| 7521 unittest.equals("/locations/")); |
6943 pathOffset += 11; | 7522 pathOffset += 11; |
6944 index = path.indexOf("/jobs/", pathOffset); | 7523 index = path.indexOf("/jobs/", pathOffset); |
6945 unittest.expect(index >= 0, unittest.isTrue); | 7524 unittest.expect(index >= 0, unittest.isTrue); |
6946 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7525 subPart = |
| 7526 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6947 pathOffset = index; | 7527 pathOffset = index; |
6948 unittest.expect(subPart, unittest.equals("$arg_location")); | 7528 unittest.expect(subPart, unittest.equals("$arg_location")); |
6949 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/jobs/")); | 7529 unittest.expect(path.substring(pathOffset, pathOffset + 6), |
| 7530 unittest.equals("/jobs/")); |
6950 pathOffset += 6; | 7531 pathOffset += 6; |
6951 index = path.indexOf("/workItems:lease", pathOffset); | 7532 index = path.indexOf("/workItems:lease", pathOffset); |
6952 unittest.expect(index >= 0, unittest.isTrue); | 7533 unittest.expect(index >= 0, unittest.isTrue); |
6953 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7534 subPart = |
| 7535 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6954 pathOffset = index; | 7536 pathOffset = index; |
6955 unittest.expect(subPart, unittest.equals("$arg_jobId")); | 7537 unittest.expect(subPart, unittest.equals("$arg_jobId")); |
6956 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/workItems:lease")); | 7538 unittest.expect(path.substring(pathOffset, pathOffset + 16), |
| 7539 unittest.equals("/workItems:lease")); |
6957 pathOffset += 16; | 7540 pathOffset += 16; |
6958 | 7541 |
6959 var query = (req.url).query; | 7542 var query = (req.url).query; |
6960 var queryOffset = 0; | 7543 var queryOffset = 0; |
6961 var queryMap = {}; | 7544 var queryMap = {}; |
6962 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 7545 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6963 parseBool(n) { | 7546 parseBool(n) { |
6964 if (n == "true") return true; | 7547 if (n == "true") return true; |
6965 if (n == "false") return false; | 7548 if (n == "false") return false; |
6966 if (n == null) return null; | 7549 if (n == null) return null; |
6967 throw new core.ArgumentError("Invalid boolean: $n"); | 7550 throw new core.ArgumentError("Invalid boolean: $n"); |
6968 } | 7551 } |
| 7552 |
6969 if (query.length > 0) { | 7553 if (query.length > 0) { |
6970 for (var part in query.split("&")) { | 7554 for (var part in query.split("&")) { |
6971 var keyvalue = part.split("="); | 7555 var keyvalue = part.split("="); |
6972 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7556 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 7557 core.Uri.decodeQueryComponent(keyvalue[1])); |
6973 } | 7558 } |
6974 } | 7559 } |
6975 | 7560 |
6976 | |
6977 var h = { | 7561 var h = { |
6978 "content-type" : "application/json; charset=utf-8", | 7562 "content-type": "application/json; charset=utf-8", |
6979 }; | 7563 }; |
6980 var resp = convert.JSON.encode(buildLeaseWorkItemResponse()); | 7564 var resp = convert.JSON.encode(buildLeaseWorkItemResponse()); |
6981 return new async.Future.value(stringResponse(200, h, resp)); | 7565 return new async.Future.value(stringResponse(200, h, resp)); |
6982 }), true); | 7566 }), true); |
6983 res.lease(arg_request, arg_projectId, arg_location, arg_jobId).then(unitte
st.expectAsync1(((api.LeaseWorkItemResponse response) { | 7567 res |
| 7568 .lease(arg_request, arg_projectId, arg_location, arg_jobId) |
| 7569 .then(unittest.expectAsync1(((api.LeaseWorkItemResponse response) { |
6984 checkLeaseWorkItemResponse(response); | 7570 checkLeaseWorkItemResponse(response); |
6985 }))); | 7571 }))); |
6986 }); | 7572 }); |
6987 | 7573 |
6988 unittest.test("method--reportStatus", () { | 7574 unittest.test("method--reportStatus", () { |
6989 | |
6990 var mock = new HttpServerMock(); | 7575 var mock = new HttpServerMock(); |
6991 api.ProjectsLocationsJobsWorkItemsResourceApi res = new api.DataflowApi(mo
ck).projects.locations.jobs.workItems; | 7576 api.ProjectsLocationsJobsWorkItemsResourceApi res = |
| 7577 new api.DataflowApi(mock).projects.locations.jobs.workItems; |
6992 var arg_request = buildReportWorkItemStatusRequest(); | 7578 var arg_request = buildReportWorkItemStatusRequest(); |
6993 var arg_projectId = "foo"; | 7579 var arg_projectId = "foo"; |
6994 var arg_location = "foo"; | 7580 var arg_location = "foo"; |
6995 var arg_jobId = "foo"; | 7581 var arg_jobId = "foo"; |
6996 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 7582 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6997 var obj = new api.ReportWorkItemStatusRequest.fromJson(json); | 7583 var obj = new api.ReportWorkItemStatusRequest.fromJson(json); |
6998 checkReportWorkItemStatusRequest(obj); | 7584 checkReportWorkItemStatusRequest(obj); |
6999 | 7585 |
7000 var path = (req.url).path; | 7586 var path = (req.url).path; |
7001 var pathOffset = 0; | 7587 var pathOffset = 0; |
7002 var index; | 7588 var index; |
7003 var subPart; | 7589 var subPart; |
7004 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7590 unittest.expect( |
| 7591 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
7005 pathOffset += 1; | 7592 pathOffset += 1; |
7006 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 7593 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 7594 unittest.equals("v1b3/projects/")); |
7007 pathOffset += 14; | 7595 pathOffset += 14; |
7008 index = path.indexOf("/locations/", pathOffset); | 7596 index = path.indexOf("/locations/", pathOffset); |
7009 unittest.expect(index >= 0, unittest.isTrue); | 7597 unittest.expect(index >= 0, unittest.isTrue); |
7010 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7598 subPart = |
| 7599 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
7011 pathOffset = index; | 7600 pathOffset = index; |
7012 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 7601 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
7013 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/locations/")); | 7602 unittest.expect(path.substring(pathOffset, pathOffset + 11), |
| 7603 unittest.equals("/locations/")); |
7014 pathOffset += 11; | 7604 pathOffset += 11; |
7015 index = path.indexOf("/jobs/", pathOffset); | 7605 index = path.indexOf("/jobs/", pathOffset); |
7016 unittest.expect(index >= 0, unittest.isTrue); | 7606 unittest.expect(index >= 0, unittest.isTrue); |
7017 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7607 subPart = |
| 7608 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
7018 pathOffset = index; | 7609 pathOffset = index; |
7019 unittest.expect(subPart, unittest.equals("$arg_location")); | 7610 unittest.expect(subPart, unittest.equals("$arg_location")); |
7020 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/jobs/")); | 7611 unittest.expect(path.substring(pathOffset, pathOffset + 6), |
| 7612 unittest.equals("/jobs/")); |
7021 pathOffset += 6; | 7613 pathOffset += 6; |
7022 index = path.indexOf("/workItems:reportStatus", pathOffset); | 7614 index = path.indexOf("/workItems:reportStatus", pathOffset); |
7023 unittest.expect(index >= 0, unittest.isTrue); | 7615 unittest.expect(index >= 0, unittest.isTrue); |
7024 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7616 subPart = |
| 7617 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
7025 pathOffset = index; | 7618 pathOffset = index; |
7026 unittest.expect(subPart, unittest.equals("$arg_jobId")); | 7619 unittest.expect(subPart, unittest.equals("$arg_jobId")); |
7027 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("/workItems:reportStatus")); | 7620 unittest.expect(path.substring(pathOffset, pathOffset + 23), |
| 7621 unittest.equals("/workItems:reportStatus")); |
7028 pathOffset += 23; | 7622 pathOffset += 23; |
7029 | 7623 |
7030 var query = (req.url).query; | 7624 var query = (req.url).query; |
7031 var queryOffset = 0; | 7625 var queryOffset = 0; |
7032 var queryMap = {}; | 7626 var queryMap = {}; |
7033 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 7627 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
7034 parseBool(n) { | 7628 parseBool(n) { |
7035 if (n == "true") return true; | 7629 if (n == "true") return true; |
7036 if (n == "false") return false; | 7630 if (n == "false") return false; |
7037 if (n == null) return null; | 7631 if (n == null) return null; |
7038 throw new core.ArgumentError("Invalid boolean: $n"); | 7632 throw new core.ArgumentError("Invalid boolean: $n"); |
7039 } | 7633 } |
| 7634 |
7040 if (query.length > 0) { | 7635 if (query.length > 0) { |
7041 for (var part in query.split("&")) { | 7636 for (var part in query.split("&")) { |
7042 var keyvalue = part.split("="); | 7637 var keyvalue = part.split("="); |
7043 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7638 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 7639 core.Uri.decodeQueryComponent(keyvalue[1])); |
7044 } | 7640 } |
7045 } | 7641 } |
7046 | 7642 |
7047 | |
7048 var h = { | 7643 var h = { |
7049 "content-type" : "application/json; charset=utf-8", | 7644 "content-type": "application/json; charset=utf-8", |
7050 }; | 7645 }; |
7051 var resp = convert.JSON.encode(buildReportWorkItemStatusResponse()); | 7646 var resp = convert.JSON.encode(buildReportWorkItemStatusResponse()); |
7052 return new async.Future.value(stringResponse(200, h, resp)); | 7647 return new async.Future.value(stringResponse(200, h, resp)); |
7053 }), true); | 7648 }), true); |
7054 res.reportStatus(arg_request, arg_projectId, arg_location, arg_jobId).then
(unittest.expectAsync1(((api.ReportWorkItemStatusResponse response) { | 7649 res |
| 7650 .reportStatus(arg_request, arg_projectId, arg_location, arg_jobId) |
| 7651 .then(unittest |
| 7652 .expectAsync1(((api.ReportWorkItemStatusResponse response) { |
7055 checkReportWorkItemStatusResponse(response); | 7653 checkReportWorkItemStatusResponse(response); |
7056 }))); | 7654 }))); |
7057 }); | 7655 }); |
7058 | |
7059 }); | 7656 }); |
7060 | 7657 |
7061 | |
7062 unittest.group("resource-ProjectsLocationsTemplatesResourceApi", () { | 7658 unittest.group("resource-ProjectsLocationsTemplatesResourceApi", () { |
7063 unittest.test("method--create", () { | 7659 unittest.test("method--create", () { |
7064 | |
7065 var mock = new HttpServerMock(); | 7660 var mock = new HttpServerMock(); |
7066 api.ProjectsLocationsTemplatesResourceApi res = new api.DataflowApi(mock).
projects.locations.templates; | 7661 api.ProjectsLocationsTemplatesResourceApi res = |
| 7662 new api.DataflowApi(mock).projects.locations.templates; |
7067 var arg_request = buildCreateJobFromTemplateRequest(); | 7663 var arg_request = buildCreateJobFromTemplateRequest(); |
7068 var arg_projectId = "foo"; | 7664 var arg_projectId = "foo"; |
7069 var arg_location = "foo"; | 7665 var arg_location = "foo"; |
7070 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 7666 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
7071 var obj = new api.CreateJobFromTemplateRequest.fromJson(json); | 7667 var obj = new api.CreateJobFromTemplateRequest.fromJson(json); |
7072 checkCreateJobFromTemplateRequest(obj); | 7668 checkCreateJobFromTemplateRequest(obj); |
7073 | 7669 |
7074 var path = (req.url).path; | 7670 var path = (req.url).path; |
7075 var pathOffset = 0; | 7671 var pathOffset = 0; |
7076 var index; | 7672 var index; |
7077 var subPart; | 7673 var subPart; |
7078 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7674 unittest.expect( |
| 7675 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
7079 pathOffset += 1; | 7676 pathOffset += 1; |
7080 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 7677 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 7678 unittest.equals("v1b3/projects/")); |
7081 pathOffset += 14; | 7679 pathOffset += 14; |
7082 index = path.indexOf("/locations/", pathOffset); | 7680 index = path.indexOf("/locations/", pathOffset); |
7083 unittest.expect(index >= 0, unittest.isTrue); | 7681 unittest.expect(index >= 0, unittest.isTrue); |
7084 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7682 subPart = |
| 7683 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
7085 pathOffset = index; | 7684 pathOffset = index; |
7086 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 7685 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
7087 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/locations/")); | 7686 unittest.expect(path.substring(pathOffset, pathOffset + 11), |
| 7687 unittest.equals("/locations/")); |
7088 pathOffset += 11; | 7688 pathOffset += 11; |
7089 index = path.indexOf("/templates", pathOffset); | 7689 index = path.indexOf("/templates", pathOffset); |
7090 unittest.expect(index >= 0, unittest.isTrue); | 7690 unittest.expect(index >= 0, unittest.isTrue); |
7091 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7691 subPart = |
| 7692 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
7092 pathOffset = index; | 7693 pathOffset = index; |
7093 unittest.expect(subPart, unittest.equals("$arg_location")); | 7694 unittest.expect(subPart, unittest.equals("$arg_location")); |
7094 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/templates")); | 7695 unittest.expect(path.substring(pathOffset, pathOffset + 10), |
| 7696 unittest.equals("/templates")); |
7095 pathOffset += 10; | 7697 pathOffset += 10; |
7096 | 7698 |
7097 var query = (req.url).query; | 7699 var query = (req.url).query; |
7098 var queryOffset = 0; | 7700 var queryOffset = 0; |
7099 var queryMap = {}; | 7701 var queryMap = {}; |
7100 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 7702 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
7101 parseBool(n) { | 7703 parseBool(n) { |
7102 if (n == "true") return true; | 7704 if (n == "true") return true; |
7103 if (n == "false") return false; | 7705 if (n == "false") return false; |
7104 if (n == null) return null; | 7706 if (n == null) return null; |
7105 throw new core.ArgumentError("Invalid boolean: $n"); | 7707 throw new core.ArgumentError("Invalid boolean: $n"); |
7106 } | 7708 } |
| 7709 |
7107 if (query.length > 0) { | 7710 if (query.length > 0) { |
7108 for (var part in query.split("&")) { | 7711 for (var part in query.split("&")) { |
7109 var keyvalue = part.split("="); | 7712 var keyvalue = part.split("="); |
7110 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7713 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 7714 core.Uri.decodeQueryComponent(keyvalue[1])); |
7111 } | 7715 } |
7112 } | 7716 } |
7113 | 7717 |
7114 | |
7115 var h = { | 7718 var h = { |
7116 "content-type" : "application/json; charset=utf-8", | 7719 "content-type": "application/json; charset=utf-8", |
7117 }; | 7720 }; |
7118 var resp = convert.JSON.encode(buildJob()); | 7721 var resp = convert.JSON.encode(buildJob()); |
7119 return new async.Future.value(stringResponse(200, h, resp)); | 7722 return new async.Future.value(stringResponse(200, h, resp)); |
7120 }), true); | 7723 }), true); |
7121 res.create(arg_request, arg_projectId, arg_location).then(unittest.expectA
sync1(((api.Job response) { | 7724 res |
| 7725 .create(arg_request, arg_projectId, arg_location) |
| 7726 .then(unittest.expectAsync1(((api.Job response) { |
7122 checkJob(response); | 7727 checkJob(response); |
7123 }))); | 7728 }))); |
7124 }); | 7729 }); |
7125 | 7730 |
7126 unittest.test("method--get", () { | 7731 unittest.test("method--get", () { |
7127 | |
7128 var mock = new HttpServerMock(); | 7732 var mock = new HttpServerMock(); |
7129 api.ProjectsLocationsTemplatesResourceApi res = new api.DataflowApi(mock).
projects.locations.templates; | 7733 api.ProjectsLocationsTemplatesResourceApi res = |
| 7734 new api.DataflowApi(mock).projects.locations.templates; |
7130 var arg_projectId = "foo"; | 7735 var arg_projectId = "foo"; |
7131 var arg_location = "foo"; | 7736 var arg_location = "foo"; |
7132 var arg_view = "foo"; | 7737 var arg_view = "foo"; |
7133 var arg_gcsPath = "foo"; | 7738 var arg_gcsPath = "foo"; |
7134 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 7739 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
7135 var path = (req.url).path; | 7740 var path = (req.url).path; |
7136 var pathOffset = 0; | 7741 var pathOffset = 0; |
7137 var index; | 7742 var index; |
7138 var subPart; | 7743 var subPart; |
7139 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7744 unittest.expect( |
| 7745 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
7140 pathOffset += 1; | 7746 pathOffset += 1; |
7141 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 7747 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 7748 unittest.equals("v1b3/projects/")); |
7142 pathOffset += 14; | 7749 pathOffset += 14; |
7143 index = path.indexOf("/locations/", pathOffset); | 7750 index = path.indexOf("/locations/", pathOffset); |
7144 unittest.expect(index >= 0, unittest.isTrue); | 7751 unittest.expect(index >= 0, unittest.isTrue); |
7145 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7752 subPart = |
| 7753 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
7146 pathOffset = index; | 7754 pathOffset = index; |
7147 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 7755 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
7148 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/locations/")); | 7756 unittest.expect(path.substring(pathOffset, pathOffset + 11), |
| 7757 unittest.equals("/locations/")); |
7149 pathOffset += 11; | 7758 pathOffset += 11; |
7150 index = path.indexOf("/templates:get", pathOffset); | 7759 index = path.indexOf("/templates:get", pathOffset); |
7151 unittest.expect(index >= 0, unittest.isTrue); | 7760 unittest.expect(index >= 0, unittest.isTrue); |
7152 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7761 subPart = |
| 7762 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
7153 pathOffset = index; | 7763 pathOffset = index; |
7154 unittest.expect(subPart, unittest.equals("$arg_location")); | 7764 unittest.expect(subPart, unittest.equals("$arg_location")); |
7155 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("/templates:get")); | 7765 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 7766 unittest.equals("/templates:get")); |
7156 pathOffset += 14; | 7767 pathOffset += 14; |
7157 | 7768 |
7158 var query = (req.url).query; | 7769 var query = (req.url).query; |
7159 var queryOffset = 0; | 7770 var queryOffset = 0; |
7160 var queryMap = {}; | 7771 var queryMap = {}; |
7161 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 7772 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
7162 parseBool(n) { | 7773 parseBool(n) { |
7163 if (n == "true") return true; | 7774 if (n == "true") return true; |
7164 if (n == "false") return false; | 7775 if (n == "false") return false; |
7165 if (n == null) return null; | 7776 if (n == null) return null; |
7166 throw new core.ArgumentError("Invalid boolean: $n"); | 7777 throw new core.ArgumentError("Invalid boolean: $n"); |
7167 } | 7778 } |
| 7779 |
7168 if (query.length > 0) { | 7780 if (query.length > 0) { |
7169 for (var part in query.split("&")) { | 7781 for (var part in query.split("&")) { |
7170 var keyvalue = part.split("="); | 7782 var keyvalue = part.split("="); |
7171 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7783 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 7784 core.Uri.decodeQueryComponent(keyvalue[1])); |
7172 } | 7785 } |
7173 } | 7786 } |
7174 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | 7787 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
7175 unittest.expect(queryMap["gcsPath"].first, unittest.equals(arg_gcsPath))
; | 7788 unittest.expect( |
7176 | 7789 queryMap["gcsPath"].first, unittest.equals(arg_gcsPath)); |
7177 | 7790 |
7178 var h = { | 7791 var h = { |
7179 "content-type" : "application/json; charset=utf-8", | 7792 "content-type": "application/json; charset=utf-8", |
7180 }; | 7793 }; |
7181 var resp = convert.JSON.encode(buildGetTemplateResponse()); | 7794 var resp = convert.JSON.encode(buildGetTemplateResponse()); |
7182 return new async.Future.value(stringResponse(200, h, resp)); | 7795 return new async.Future.value(stringResponse(200, h, resp)); |
7183 }), true); | 7796 }), true); |
7184 res.get(arg_projectId, arg_location, view: arg_view, gcsPath: arg_gcsPath)
.then(unittest.expectAsync1(((api.GetTemplateResponse response) { | 7797 res |
| 7798 .get(arg_projectId, arg_location, |
| 7799 view: arg_view, gcsPath: arg_gcsPath) |
| 7800 .then(unittest.expectAsync1(((api.GetTemplateResponse response) { |
7185 checkGetTemplateResponse(response); | 7801 checkGetTemplateResponse(response); |
7186 }))); | 7802 }))); |
7187 }); | 7803 }); |
7188 | 7804 |
7189 unittest.test("method--launch", () { | 7805 unittest.test("method--launch", () { |
7190 | |
7191 var mock = new HttpServerMock(); | 7806 var mock = new HttpServerMock(); |
7192 api.ProjectsLocationsTemplatesResourceApi res = new api.DataflowApi(mock).
projects.locations.templates; | 7807 api.ProjectsLocationsTemplatesResourceApi res = |
| 7808 new api.DataflowApi(mock).projects.locations.templates; |
7193 var arg_request = buildLaunchTemplateParameters(); | 7809 var arg_request = buildLaunchTemplateParameters(); |
7194 var arg_projectId = "foo"; | 7810 var arg_projectId = "foo"; |
7195 var arg_location = "foo"; | 7811 var arg_location = "foo"; |
| 7812 var arg_validateOnly = true; |
7196 var arg_gcsPath = "foo"; | 7813 var arg_gcsPath = "foo"; |
7197 var arg_validateOnly = true; | |
7198 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 7814 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
7199 var obj = new api.LaunchTemplateParameters.fromJson(json); | 7815 var obj = new api.LaunchTemplateParameters.fromJson(json); |
7200 checkLaunchTemplateParameters(obj); | 7816 checkLaunchTemplateParameters(obj); |
7201 | 7817 |
7202 var path = (req.url).path; | 7818 var path = (req.url).path; |
7203 var pathOffset = 0; | 7819 var pathOffset = 0; |
7204 var index; | 7820 var index; |
7205 var subPart; | 7821 var subPart; |
7206 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7822 unittest.expect( |
| 7823 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
7207 pathOffset += 1; | 7824 pathOffset += 1; |
7208 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 7825 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 7826 unittest.equals("v1b3/projects/")); |
7209 pathOffset += 14; | 7827 pathOffset += 14; |
7210 index = path.indexOf("/locations/", pathOffset); | 7828 index = path.indexOf("/locations/", pathOffset); |
7211 unittest.expect(index >= 0, unittest.isTrue); | 7829 unittest.expect(index >= 0, unittest.isTrue); |
7212 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7830 subPart = |
| 7831 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
7213 pathOffset = index; | 7832 pathOffset = index; |
7214 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 7833 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
7215 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("/locations/")); | 7834 unittest.expect(path.substring(pathOffset, pathOffset + 11), |
| 7835 unittest.equals("/locations/")); |
7216 pathOffset += 11; | 7836 pathOffset += 11; |
7217 index = path.indexOf("/templates:launch", pathOffset); | 7837 index = path.indexOf("/templates:launch", pathOffset); |
7218 unittest.expect(index >= 0, unittest.isTrue); | 7838 unittest.expect(index >= 0, unittest.isTrue); |
7219 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7839 subPart = |
| 7840 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
7220 pathOffset = index; | 7841 pathOffset = index; |
7221 unittest.expect(subPart, unittest.equals("$arg_location")); | 7842 unittest.expect(subPart, unittest.equals("$arg_location")); |
7222 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/templates:launch")); | 7843 unittest.expect(path.substring(pathOffset, pathOffset + 17), |
| 7844 unittest.equals("/templates:launch")); |
7223 pathOffset += 17; | 7845 pathOffset += 17; |
7224 | 7846 |
7225 var query = (req.url).query; | 7847 var query = (req.url).query; |
7226 var queryOffset = 0; | 7848 var queryOffset = 0; |
7227 var queryMap = {}; | 7849 var queryMap = {}; |
7228 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 7850 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
7229 parseBool(n) { | 7851 parseBool(n) { |
7230 if (n == "true") return true; | 7852 if (n == "true") return true; |
7231 if (n == "false") return false; | 7853 if (n == "false") return false; |
7232 if (n == null) return null; | 7854 if (n == null) return null; |
7233 throw new core.ArgumentError("Invalid boolean: $n"); | 7855 throw new core.ArgumentError("Invalid boolean: $n"); |
7234 } | 7856 } |
| 7857 |
7235 if (query.length > 0) { | 7858 if (query.length > 0) { |
7236 for (var part in query.split("&")) { | 7859 for (var part in query.split("&")) { |
7237 var keyvalue = part.split("="); | 7860 var keyvalue = part.split("="); |
7238 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7861 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 7862 core.Uri.decodeQueryComponent(keyvalue[1])); |
7239 } | 7863 } |
7240 } | 7864 } |
7241 unittest.expect(queryMap["gcsPath"].first, unittest.equals(arg_gcsPath))
; | 7865 unittest.expect(queryMap["validateOnly"].first, |
7242 unittest.expect(queryMap["validateOnly"].first, unittest.equals("$arg_va
lidateOnly")); | 7866 unittest.equals("$arg_validateOnly")); |
7243 | 7867 unittest.expect( |
| 7868 queryMap["gcsPath"].first, unittest.equals(arg_gcsPath)); |
7244 | 7869 |
7245 var h = { | 7870 var h = { |
7246 "content-type" : "application/json; charset=utf-8", | 7871 "content-type": "application/json; charset=utf-8", |
7247 }; | 7872 }; |
7248 var resp = convert.JSON.encode(buildLaunchTemplateResponse()); | 7873 var resp = convert.JSON.encode(buildLaunchTemplateResponse()); |
7249 return new async.Future.value(stringResponse(200, h, resp)); | 7874 return new async.Future.value(stringResponse(200, h, resp)); |
7250 }), true); | 7875 }), true); |
7251 res.launch(arg_request, arg_projectId, arg_location, gcsPath: arg_gcsPath,
validateOnly: arg_validateOnly).then(unittest.expectAsync1(((api.LaunchTemplate
Response response) { | 7876 res |
| 7877 .launch(arg_request, arg_projectId, arg_location, |
| 7878 validateOnly: arg_validateOnly, gcsPath: arg_gcsPath) |
| 7879 .then(unittest.expectAsync1(((api.LaunchTemplateResponse response) { |
7252 checkLaunchTemplateResponse(response); | 7880 checkLaunchTemplateResponse(response); |
7253 }))); | 7881 }))); |
7254 }); | 7882 }); |
7255 | |
7256 }); | 7883 }); |
7257 | 7884 |
7258 | |
7259 unittest.group("resource-ProjectsTemplatesResourceApi", () { | 7885 unittest.group("resource-ProjectsTemplatesResourceApi", () { |
7260 unittest.test("method--create", () { | 7886 unittest.test("method--create", () { |
7261 | |
7262 var mock = new HttpServerMock(); | 7887 var mock = new HttpServerMock(); |
7263 api.ProjectsTemplatesResourceApi res = new api.DataflowApi(mock).projects.
templates; | 7888 api.ProjectsTemplatesResourceApi res = |
| 7889 new api.DataflowApi(mock).projects.templates; |
7264 var arg_request = buildCreateJobFromTemplateRequest(); | 7890 var arg_request = buildCreateJobFromTemplateRequest(); |
7265 var arg_projectId = "foo"; | 7891 var arg_projectId = "foo"; |
7266 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 7892 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
7267 var obj = new api.CreateJobFromTemplateRequest.fromJson(json); | 7893 var obj = new api.CreateJobFromTemplateRequest.fromJson(json); |
7268 checkCreateJobFromTemplateRequest(obj); | 7894 checkCreateJobFromTemplateRequest(obj); |
7269 | 7895 |
7270 var path = (req.url).path; | 7896 var path = (req.url).path; |
7271 var pathOffset = 0; | 7897 var pathOffset = 0; |
7272 var index; | 7898 var index; |
7273 var subPart; | 7899 var subPart; |
7274 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7900 unittest.expect( |
| 7901 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
7275 pathOffset += 1; | 7902 pathOffset += 1; |
7276 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 7903 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 7904 unittest.equals("v1b3/projects/")); |
7277 pathOffset += 14; | 7905 pathOffset += 14; |
7278 index = path.indexOf("/templates", pathOffset); | 7906 index = path.indexOf("/templates", pathOffset); |
7279 unittest.expect(index >= 0, unittest.isTrue); | 7907 unittest.expect(index >= 0, unittest.isTrue); |
7280 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7908 subPart = |
| 7909 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
7281 pathOffset = index; | 7910 pathOffset = index; |
7282 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 7911 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
7283 unittest.expect(path.substring(pathOffset, pathOffset + 10), unittest.eq
uals("/templates")); | 7912 unittest.expect(path.substring(pathOffset, pathOffset + 10), |
| 7913 unittest.equals("/templates")); |
7284 pathOffset += 10; | 7914 pathOffset += 10; |
7285 | 7915 |
7286 var query = (req.url).query; | 7916 var query = (req.url).query; |
7287 var queryOffset = 0; | 7917 var queryOffset = 0; |
7288 var queryMap = {}; | 7918 var queryMap = {}; |
7289 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 7919 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
7290 parseBool(n) { | 7920 parseBool(n) { |
7291 if (n == "true") return true; | 7921 if (n == "true") return true; |
7292 if (n == "false") return false; | 7922 if (n == "false") return false; |
7293 if (n == null) return null; | 7923 if (n == null) return null; |
7294 throw new core.ArgumentError("Invalid boolean: $n"); | 7924 throw new core.ArgumentError("Invalid boolean: $n"); |
7295 } | 7925 } |
| 7926 |
7296 if (query.length > 0) { | 7927 if (query.length > 0) { |
7297 for (var part in query.split("&")) { | 7928 for (var part in query.split("&")) { |
7298 var keyvalue = part.split("="); | 7929 var keyvalue = part.split("="); |
7299 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7930 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 7931 core.Uri.decodeQueryComponent(keyvalue[1])); |
7300 } | 7932 } |
7301 } | 7933 } |
7302 | 7934 |
7303 | |
7304 var h = { | 7935 var h = { |
7305 "content-type" : "application/json; charset=utf-8", | 7936 "content-type": "application/json; charset=utf-8", |
7306 }; | 7937 }; |
7307 var resp = convert.JSON.encode(buildJob()); | 7938 var resp = convert.JSON.encode(buildJob()); |
7308 return new async.Future.value(stringResponse(200, h, resp)); | 7939 return new async.Future.value(stringResponse(200, h, resp)); |
7309 }), true); | 7940 }), true); |
7310 res.create(arg_request, arg_projectId).then(unittest.expectAsync1(((api.Jo
b response) { | 7941 res |
| 7942 .create(arg_request, arg_projectId) |
| 7943 .then(unittest.expectAsync1(((api.Job response) { |
7311 checkJob(response); | 7944 checkJob(response); |
7312 }))); | 7945 }))); |
7313 }); | 7946 }); |
7314 | 7947 |
7315 unittest.test("method--get", () { | 7948 unittest.test("method--get", () { |
7316 | |
7317 var mock = new HttpServerMock(); | 7949 var mock = new HttpServerMock(); |
7318 api.ProjectsTemplatesResourceApi res = new api.DataflowApi(mock).projects.
templates; | 7950 api.ProjectsTemplatesResourceApi res = |
| 7951 new api.DataflowApi(mock).projects.templates; |
7319 var arg_projectId = "foo"; | 7952 var arg_projectId = "foo"; |
7320 var arg_location = "foo"; | |
7321 var arg_view = "foo"; | 7953 var arg_view = "foo"; |
7322 var arg_gcsPath = "foo"; | 7954 var arg_gcsPath = "foo"; |
| 7955 var arg_location = "foo"; |
7323 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 7956 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
7324 var path = (req.url).path; | 7957 var path = (req.url).path; |
7325 var pathOffset = 0; | 7958 var pathOffset = 0; |
7326 var index; | 7959 var index; |
7327 var subPart; | 7960 var subPart; |
7328 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 7961 unittest.expect( |
| 7962 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
7329 pathOffset += 1; | 7963 pathOffset += 1; |
7330 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 7964 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 7965 unittest.equals("v1b3/projects/")); |
7331 pathOffset += 14; | 7966 pathOffset += 14; |
7332 index = path.indexOf("/templates:get", pathOffset); | 7967 index = path.indexOf("/templates:get", pathOffset); |
7333 unittest.expect(index >= 0, unittest.isTrue); | 7968 unittest.expect(index >= 0, unittest.isTrue); |
7334 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 7969 subPart = |
| 7970 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
7335 pathOffset = index; | 7971 pathOffset = index; |
7336 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 7972 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
7337 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("/templates:get")); | 7973 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 7974 unittest.equals("/templates:get")); |
7338 pathOffset += 14; | 7975 pathOffset += 14; |
7339 | 7976 |
7340 var query = (req.url).query; | 7977 var query = (req.url).query; |
7341 var queryOffset = 0; | 7978 var queryOffset = 0; |
7342 var queryMap = {}; | 7979 var queryMap = {}; |
7343 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 7980 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
7344 parseBool(n) { | 7981 parseBool(n) { |
7345 if (n == "true") return true; | 7982 if (n == "true") return true; |
7346 if (n == "false") return false; | 7983 if (n == "false") return false; |
7347 if (n == null) return null; | 7984 if (n == null) return null; |
7348 throw new core.ArgumentError("Invalid boolean: $n"); | 7985 throw new core.ArgumentError("Invalid boolean: $n"); |
7349 } | 7986 } |
| 7987 |
7350 if (query.length > 0) { | 7988 if (query.length > 0) { |
7351 for (var part in query.split("&")) { | 7989 for (var part in query.split("&")) { |
7352 var keyvalue = part.split("="); | 7990 var keyvalue = part.split("="); |
7353 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 7991 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 7992 core.Uri.decodeQueryComponent(keyvalue[1])); |
7354 } | 7993 } |
7355 } | 7994 } |
7356 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); | |
7357 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | 7995 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
7358 unittest.expect(queryMap["gcsPath"].first, unittest.equals(arg_gcsPath))
; | 7996 unittest.expect( |
7359 | 7997 queryMap["gcsPath"].first, unittest.equals(arg_gcsPath)); |
| 7998 unittest.expect( |
| 7999 queryMap["location"].first, unittest.equals(arg_location)); |
7360 | 8000 |
7361 var h = { | 8001 var h = { |
7362 "content-type" : "application/json; charset=utf-8", | 8002 "content-type": "application/json; charset=utf-8", |
7363 }; | 8003 }; |
7364 var resp = convert.JSON.encode(buildGetTemplateResponse()); | 8004 var resp = convert.JSON.encode(buildGetTemplateResponse()); |
7365 return new async.Future.value(stringResponse(200, h, resp)); | 8005 return new async.Future.value(stringResponse(200, h, resp)); |
7366 }), true); | 8006 }), true); |
7367 res.get(arg_projectId, location: arg_location, view: arg_view, gcsPath: ar
g_gcsPath).then(unittest.expectAsync1(((api.GetTemplateResponse response) { | 8007 res |
| 8008 .get(arg_projectId, |
| 8009 view: arg_view, gcsPath: arg_gcsPath, location: arg_location) |
| 8010 .then(unittest.expectAsync1(((api.GetTemplateResponse response) { |
7368 checkGetTemplateResponse(response); | 8011 checkGetTemplateResponse(response); |
7369 }))); | 8012 }))); |
7370 }); | 8013 }); |
7371 | 8014 |
7372 unittest.test("method--launch", () { | 8015 unittest.test("method--launch", () { |
7373 | |
7374 var mock = new HttpServerMock(); | 8016 var mock = new HttpServerMock(); |
7375 api.ProjectsTemplatesResourceApi res = new api.DataflowApi(mock).projects.
templates; | 8017 api.ProjectsTemplatesResourceApi res = |
| 8018 new api.DataflowApi(mock).projects.templates; |
7376 var arg_request = buildLaunchTemplateParameters(); | 8019 var arg_request = buildLaunchTemplateParameters(); |
7377 var arg_projectId = "foo"; | 8020 var arg_projectId = "foo"; |
7378 var arg_location = "foo"; | 8021 var arg_location = "foo"; |
7379 var arg_validateOnly = true; | 8022 var arg_validateOnly = true; |
7380 var arg_gcsPath = "foo"; | 8023 var arg_gcsPath = "foo"; |
7381 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 8024 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
7382 var obj = new api.LaunchTemplateParameters.fromJson(json); | 8025 var obj = new api.LaunchTemplateParameters.fromJson(json); |
7383 checkLaunchTemplateParameters(obj); | 8026 checkLaunchTemplateParameters(obj); |
7384 | 8027 |
7385 var path = (req.url).path; | 8028 var path = (req.url).path; |
7386 var pathOffset = 0; | 8029 var pathOffset = 0; |
7387 var index; | 8030 var index; |
7388 var subPart; | 8031 var subPart; |
7389 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 8032 unittest.expect( |
| 8033 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
7390 pathOffset += 1; | 8034 pathOffset += 1; |
7391 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1b3/projects/")); | 8035 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 8036 unittest.equals("v1b3/projects/")); |
7392 pathOffset += 14; | 8037 pathOffset += 14; |
7393 index = path.indexOf("/templates:launch", pathOffset); | 8038 index = path.indexOf("/templates:launch", pathOffset); |
7394 unittest.expect(index >= 0, unittest.isTrue); | 8039 unittest.expect(index >= 0, unittest.isTrue); |
7395 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 8040 subPart = |
| 8041 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
7396 pathOffset = index; | 8042 pathOffset = index; |
7397 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 8043 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
7398 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/templates:launch")); | 8044 unittest.expect(path.substring(pathOffset, pathOffset + 17), |
| 8045 unittest.equals("/templates:launch")); |
7399 pathOffset += 17; | 8046 pathOffset += 17; |
7400 | 8047 |
7401 var query = (req.url).query; | 8048 var query = (req.url).query; |
7402 var queryOffset = 0; | 8049 var queryOffset = 0; |
7403 var queryMap = {}; | 8050 var queryMap = {}; |
7404 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 8051 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
7405 parseBool(n) { | 8052 parseBool(n) { |
7406 if (n == "true") return true; | 8053 if (n == "true") return true; |
7407 if (n == "false") return false; | 8054 if (n == "false") return false; |
7408 if (n == null) return null; | 8055 if (n == null) return null; |
7409 throw new core.ArgumentError("Invalid boolean: $n"); | 8056 throw new core.ArgumentError("Invalid boolean: $n"); |
7410 } | 8057 } |
| 8058 |
7411 if (query.length > 0) { | 8059 if (query.length > 0) { |
7412 for (var part in query.split("&")) { | 8060 for (var part in query.split("&")) { |
7413 var keyvalue = part.split("="); | 8061 var keyvalue = part.split("="); |
7414 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 8062 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 8063 core.Uri.decodeQueryComponent(keyvalue[1])); |
7415 } | 8064 } |
7416 } | 8065 } |
7417 unittest.expect(queryMap["location"].first, unittest.equals(arg_location
)); | 8066 unittest.expect( |
7418 unittest.expect(queryMap["validateOnly"].first, unittest.equals("$arg_va
lidateOnly")); | 8067 queryMap["location"].first, unittest.equals(arg_location)); |
7419 unittest.expect(queryMap["gcsPath"].first, unittest.equals(arg_gcsPath))
; | 8068 unittest.expect(queryMap["validateOnly"].first, |
7420 | 8069 unittest.equals("$arg_validateOnly")); |
| 8070 unittest.expect( |
| 8071 queryMap["gcsPath"].first, unittest.equals(arg_gcsPath)); |
7421 | 8072 |
7422 var h = { | 8073 var h = { |
7423 "content-type" : "application/json; charset=utf-8", | 8074 "content-type": "application/json; charset=utf-8", |
7424 }; | 8075 }; |
7425 var resp = convert.JSON.encode(buildLaunchTemplateResponse()); | 8076 var resp = convert.JSON.encode(buildLaunchTemplateResponse()); |
7426 return new async.Future.value(stringResponse(200, h, resp)); | 8077 return new async.Future.value(stringResponse(200, h, resp)); |
7427 }), true); | 8078 }), true); |
7428 res.launch(arg_request, arg_projectId, location: arg_location, validateOnl
y: arg_validateOnly, gcsPath: arg_gcsPath).then(unittest.expectAsync1(((api.Laun
chTemplateResponse response) { | 8079 res |
| 8080 .launch(arg_request, arg_projectId, |
| 8081 location: arg_location, |
| 8082 validateOnly: arg_validateOnly, |
| 8083 gcsPath: arg_gcsPath) |
| 8084 .then(unittest.expectAsync1(((api.LaunchTemplateResponse response) { |
7429 checkLaunchTemplateResponse(response); | 8085 checkLaunchTemplateResponse(response); |
7430 }))); | 8086 }))); |
7431 }); | 8087 }); |
7432 | |
7433 }); | 8088 }); |
7434 | |
7435 | |
7436 } | 8089 } |
7437 | |
OLD | NEW |