OLD | NEW |
1 library googleapis_beta.toolresults.v1beta3.test; | 1 library googleapis_beta.toolresults.v1beta3.test; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 checkBasicPerfSampleSeries(api.BasicPerfSampleSeries o) { | 88 checkBasicPerfSampleSeries(api.BasicPerfSampleSeries o) { |
89 buildCounterBasicPerfSampleSeries++; | 89 buildCounterBasicPerfSampleSeries++; |
90 if (buildCounterBasicPerfSampleSeries < 3) { | 90 if (buildCounterBasicPerfSampleSeries < 3) { |
91 unittest.expect(o.perfMetricType, unittest.equals('foo')); | 91 unittest.expect(o.perfMetricType, unittest.equals('foo')); |
92 unittest.expect(o.perfUnit, unittest.equals('foo')); | 92 unittest.expect(o.perfUnit, unittest.equals('foo')); |
93 unittest.expect(o.sampleSeriesLabel, unittest.equals('foo')); | 93 unittest.expect(o.sampleSeriesLabel, unittest.equals('foo')); |
94 } | 94 } |
95 buildCounterBasicPerfSampleSeries--; | 95 buildCounterBasicPerfSampleSeries--; |
96 } | 96 } |
97 | 97 |
98 buildUnnamed3230() { | 98 buildUnnamed3322() { |
99 var o = new core.List<api.PerfSample>(); | 99 var o = new core.List<api.PerfSample>(); |
100 o.add(buildPerfSample()); | 100 o.add(buildPerfSample()); |
101 o.add(buildPerfSample()); | 101 o.add(buildPerfSample()); |
102 return o; | 102 return o; |
103 } | 103 } |
104 | 104 |
105 checkUnnamed3230(core.List<api.PerfSample> o) { | 105 checkUnnamed3322(core.List<api.PerfSample> o) { |
106 unittest.expect(o, unittest.hasLength(2)); | 106 unittest.expect(o, unittest.hasLength(2)); |
107 checkPerfSample(o[0]); | 107 checkPerfSample(o[0]); |
108 checkPerfSample(o[1]); | 108 checkPerfSample(o[1]); |
109 } | 109 } |
110 | 110 |
111 core.int buildCounterBatchCreatePerfSamplesRequest = 0; | 111 core.int buildCounterBatchCreatePerfSamplesRequest = 0; |
112 buildBatchCreatePerfSamplesRequest() { | 112 buildBatchCreatePerfSamplesRequest() { |
113 var o = new api.BatchCreatePerfSamplesRequest(); | 113 var o = new api.BatchCreatePerfSamplesRequest(); |
114 buildCounterBatchCreatePerfSamplesRequest++; | 114 buildCounterBatchCreatePerfSamplesRequest++; |
115 if (buildCounterBatchCreatePerfSamplesRequest < 3) { | 115 if (buildCounterBatchCreatePerfSamplesRequest < 3) { |
116 o.perfSamples = buildUnnamed3230(); | 116 o.perfSamples = buildUnnamed3322(); |
117 } | 117 } |
118 buildCounterBatchCreatePerfSamplesRequest--; | 118 buildCounterBatchCreatePerfSamplesRequest--; |
119 return o; | 119 return o; |
120 } | 120 } |
121 | 121 |
122 checkBatchCreatePerfSamplesRequest(api.BatchCreatePerfSamplesRequest o) { | 122 checkBatchCreatePerfSamplesRequest(api.BatchCreatePerfSamplesRequest o) { |
123 buildCounterBatchCreatePerfSamplesRequest++; | 123 buildCounterBatchCreatePerfSamplesRequest++; |
124 if (buildCounterBatchCreatePerfSamplesRequest < 3) { | 124 if (buildCounterBatchCreatePerfSamplesRequest < 3) { |
125 checkUnnamed3230(o.perfSamples); | 125 checkUnnamed3322(o.perfSamples); |
126 } | 126 } |
127 buildCounterBatchCreatePerfSamplesRequest--; | 127 buildCounterBatchCreatePerfSamplesRequest--; |
128 } | 128 } |
129 | 129 |
130 buildUnnamed3231() { | 130 buildUnnamed3323() { |
131 var o = new core.List<api.PerfSample>(); | 131 var o = new core.List<api.PerfSample>(); |
132 o.add(buildPerfSample()); | 132 o.add(buildPerfSample()); |
133 o.add(buildPerfSample()); | 133 o.add(buildPerfSample()); |
134 return o; | 134 return o; |
135 } | 135 } |
136 | 136 |
137 checkUnnamed3231(core.List<api.PerfSample> o) { | 137 checkUnnamed3323(core.List<api.PerfSample> o) { |
138 unittest.expect(o, unittest.hasLength(2)); | 138 unittest.expect(o, unittest.hasLength(2)); |
139 checkPerfSample(o[0]); | 139 checkPerfSample(o[0]); |
140 checkPerfSample(o[1]); | 140 checkPerfSample(o[1]); |
141 } | 141 } |
142 | 142 |
143 core.int buildCounterBatchCreatePerfSamplesResponse = 0; | 143 core.int buildCounterBatchCreatePerfSamplesResponse = 0; |
144 buildBatchCreatePerfSamplesResponse() { | 144 buildBatchCreatePerfSamplesResponse() { |
145 var o = new api.BatchCreatePerfSamplesResponse(); | 145 var o = new api.BatchCreatePerfSamplesResponse(); |
146 buildCounterBatchCreatePerfSamplesResponse++; | 146 buildCounterBatchCreatePerfSamplesResponse++; |
147 if (buildCounterBatchCreatePerfSamplesResponse < 3) { | 147 if (buildCounterBatchCreatePerfSamplesResponse < 3) { |
148 o.perfSamples = buildUnnamed3231(); | 148 o.perfSamples = buildUnnamed3323(); |
149 } | 149 } |
150 buildCounterBatchCreatePerfSamplesResponse--; | 150 buildCounterBatchCreatePerfSamplesResponse--; |
151 return o; | 151 return o; |
152 } | 152 } |
153 | 153 |
154 checkBatchCreatePerfSamplesResponse(api.BatchCreatePerfSamplesResponse o) { | 154 checkBatchCreatePerfSamplesResponse(api.BatchCreatePerfSamplesResponse o) { |
155 buildCounterBatchCreatePerfSamplesResponse++; | 155 buildCounterBatchCreatePerfSamplesResponse++; |
156 if (buildCounterBatchCreatePerfSamplesResponse < 3) { | 156 if (buildCounterBatchCreatePerfSamplesResponse < 3) { |
157 checkUnnamed3231(o.perfSamples); | 157 checkUnnamed3323(o.perfSamples); |
158 } | 158 } |
159 buildCounterBatchCreatePerfSamplesResponse--; | 159 buildCounterBatchCreatePerfSamplesResponse--; |
160 } | 160 } |
161 | 161 |
162 core.int buildCounterCPUInfo = 0; | 162 core.int buildCounterCPUInfo = 0; |
163 buildCPUInfo() { | 163 buildCPUInfo() { |
164 var o = new api.CPUInfo(); | 164 var o = new api.CPUInfo(); |
165 buildCounterCPUInfo++; | 165 buildCounterCPUInfo++; |
166 if (buildCounterCPUInfo < 3) { | 166 if (buildCounterCPUInfo < 3) { |
167 o.cpuProcessor = "foo"; | 167 o.cpuProcessor = "foo"; |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 | 340 |
341 checkInconclusiveDetail(api.InconclusiveDetail o) { | 341 checkInconclusiveDetail(api.InconclusiveDetail o) { |
342 buildCounterInconclusiveDetail++; | 342 buildCounterInconclusiveDetail++; |
343 if (buildCounterInconclusiveDetail < 3) { | 343 if (buildCounterInconclusiveDetail < 3) { |
344 unittest.expect(o.abortedByUser, unittest.isTrue); | 344 unittest.expect(o.abortedByUser, unittest.isTrue); |
345 unittest.expect(o.infrastructureFailure, unittest.isTrue); | 345 unittest.expect(o.infrastructureFailure, unittest.isTrue); |
346 } | 346 } |
347 buildCounterInconclusiveDetail--; | 347 buildCounterInconclusiveDetail--; |
348 } | 348 } |
349 | 349 |
350 buildUnnamed3232() { | 350 buildUnnamed3324() { |
351 var o = new core.List<api.Execution>(); | 351 var o = new core.List<api.Execution>(); |
352 o.add(buildExecution()); | 352 o.add(buildExecution()); |
353 o.add(buildExecution()); | 353 o.add(buildExecution()); |
354 return o; | 354 return o; |
355 } | 355 } |
356 | 356 |
357 checkUnnamed3232(core.List<api.Execution> o) { | 357 checkUnnamed3324(core.List<api.Execution> o) { |
358 unittest.expect(o, unittest.hasLength(2)); | 358 unittest.expect(o, unittest.hasLength(2)); |
359 checkExecution(o[0]); | 359 checkExecution(o[0]); |
360 checkExecution(o[1]); | 360 checkExecution(o[1]); |
361 } | 361 } |
362 | 362 |
363 core.int buildCounterListExecutionsResponse = 0; | 363 core.int buildCounterListExecutionsResponse = 0; |
364 buildListExecutionsResponse() { | 364 buildListExecutionsResponse() { |
365 var o = new api.ListExecutionsResponse(); | 365 var o = new api.ListExecutionsResponse(); |
366 buildCounterListExecutionsResponse++; | 366 buildCounterListExecutionsResponse++; |
367 if (buildCounterListExecutionsResponse < 3) { | 367 if (buildCounterListExecutionsResponse < 3) { |
368 o.executions = buildUnnamed3232(); | 368 o.executions = buildUnnamed3324(); |
369 o.nextPageToken = "foo"; | 369 o.nextPageToken = "foo"; |
370 } | 370 } |
371 buildCounterListExecutionsResponse--; | 371 buildCounterListExecutionsResponse--; |
372 return o; | 372 return o; |
373 } | 373 } |
374 | 374 |
375 checkListExecutionsResponse(api.ListExecutionsResponse o) { | 375 checkListExecutionsResponse(api.ListExecutionsResponse o) { |
376 buildCounterListExecutionsResponse++; | 376 buildCounterListExecutionsResponse++; |
377 if (buildCounterListExecutionsResponse < 3) { | 377 if (buildCounterListExecutionsResponse < 3) { |
378 checkUnnamed3232(o.executions); | 378 checkUnnamed3324(o.executions); |
379 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 379 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
380 } | 380 } |
381 buildCounterListExecutionsResponse--; | 381 buildCounterListExecutionsResponse--; |
382 } | 382 } |
383 | 383 |
384 buildUnnamed3233() { | 384 buildUnnamed3325() { |
385 var o = new core.List<api.History>(); | 385 var o = new core.List<api.History>(); |
386 o.add(buildHistory()); | 386 o.add(buildHistory()); |
387 o.add(buildHistory()); | 387 o.add(buildHistory()); |
388 return o; | 388 return o; |
389 } | 389 } |
390 | 390 |
391 checkUnnamed3233(core.List<api.History> o) { | 391 checkUnnamed3325(core.List<api.History> o) { |
392 unittest.expect(o, unittest.hasLength(2)); | 392 unittest.expect(o, unittest.hasLength(2)); |
393 checkHistory(o[0]); | 393 checkHistory(o[0]); |
394 checkHistory(o[1]); | 394 checkHistory(o[1]); |
395 } | 395 } |
396 | 396 |
397 core.int buildCounterListHistoriesResponse = 0; | 397 core.int buildCounterListHistoriesResponse = 0; |
398 buildListHistoriesResponse() { | 398 buildListHistoriesResponse() { |
399 var o = new api.ListHistoriesResponse(); | 399 var o = new api.ListHistoriesResponse(); |
400 buildCounterListHistoriesResponse++; | 400 buildCounterListHistoriesResponse++; |
401 if (buildCounterListHistoriesResponse < 3) { | 401 if (buildCounterListHistoriesResponse < 3) { |
402 o.histories = buildUnnamed3233(); | 402 o.histories = buildUnnamed3325(); |
403 o.nextPageToken = "foo"; | 403 o.nextPageToken = "foo"; |
404 } | 404 } |
405 buildCounterListHistoriesResponse--; | 405 buildCounterListHistoriesResponse--; |
406 return o; | 406 return o; |
407 } | 407 } |
408 | 408 |
409 checkListHistoriesResponse(api.ListHistoriesResponse o) { | 409 checkListHistoriesResponse(api.ListHistoriesResponse o) { |
410 buildCounterListHistoriesResponse++; | 410 buildCounterListHistoriesResponse++; |
411 if (buildCounterListHistoriesResponse < 3) { | 411 if (buildCounterListHistoriesResponse < 3) { |
412 checkUnnamed3233(o.histories); | 412 checkUnnamed3325(o.histories); |
413 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 413 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
414 } | 414 } |
415 buildCounterListHistoriesResponse--; | 415 buildCounterListHistoriesResponse--; |
416 } | 416 } |
417 | 417 |
418 buildUnnamed3234() { | 418 buildUnnamed3326() { |
419 var o = new core.List<api.PerfSampleSeries>(); | 419 var o = new core.List<api.PerfSampleSeries>(); |
420 o.add(buildPerfSampleSeries()); | 420 o.add(buildPerfSampleSeries()); |
421 o.add(buildPerfSampleSeries()); | 421 o.add(buildPerfSampleSeries()); |
422 return o; | 422 return o; |
423 } | 423 } |
424 | 424 |
425 checkUnnamed3234(core.List<api.PerfSampleSeries> o) { | 425 checkUnnamed3326(core.List<api.PerfSampleSeries> o) { |
426 unittest.expect(o, unittest.hasLength(2)); | 426 unittest.expect(o, unittest.hasLength(2)); |
427 checkPerfSampleSeries(o[0]); | 427 checkPerfSampleSeries(o[0]); |
428 checkPerfSampleSeries(o[1]); | 428 checkPerfSampleSeries(o[1]); |
429 } | 429 } |
430 | 430 |
431 core.int buildCounterListPerfSampleSeriesResponse = 0; | 431 core.int buildCounterListPerfSampleSeriesResponse = 0; |
432 buildListPerfSampleSeriesResponse() { | 432 buildListPerfSampleSeriesResponse() { |
433 var o = new api.ListPerfSampleSeriesResponse(); | 433 var o = new api.ListPerfSampleSeriesResponse(); |
434 buildCounterListPerfSampleSeriesResponse++; | 434 buildCounterListPerfSampleSeriesResponse++; |
435 if (buildCounterListPerfSampleSeriesResponse < 3) { | 435 if (buildCounterListPerfSampleSeriesResponse < 3) { |
436 o.perfSampleSeries = buildUnnamed3234(); | 436 o.perfSampleSeries = buildUnnamed3326(); |
437 } | 437 } |
438 buildCounterListPerfSampleSeriesResponse--; | 438 buildCounterListPerfSampleSeriesResponse--; |
439 return o; | 439 return o; |
440 } | 440 } |
441 | 441 |
442 checkListPerfSampleSeriesResponse(api.ListPerfSampleSeriesResponse o) { | 442 checkListPerfSampleSeriesResponse(api.ListPerfSampleSeriesResponse o) { |
443 buildCounterListPerfSampleSeriesResponse++; | 443 buildCounterListPerfSampleSeriesResponse++; |
444 if (buildCounterListPerfSampleSeriesResponse < 3) { | 444 if (buildCounterListPerfSampleSeriesResponse < 3) { |
445 checkUnnamed3234(o.perfSampleSeries); | 445 checkUnnamed3326(o.perfSampleSeries); |
446 } | 446 } |
447 buildCounterListPerfSampleSeriesResponse--; | 447 buildCounterListPerfSampleSeriesResponse--; |
448 } | 448 } |
449 | 449 |
450 buildUnnamed3235() { | 450 buildUnnamed3327() { |
451 var o = new core.List<api.PerfSample>(); | 451 var o = new core.List<api.PerfSample>(); |
452 o.add(buildPerfSample()); | 452 o.add(buildPerfSample()); |
453 o.add(buildPerfSample()); | 453 o.add(buildPerfSample()); |
454 return o; | 454 return o; |
455 } | 455 } |
456 | 456 |
457 checkUnnamed3235(core.List<api.PerfSample> o) { | 457 checkUnnamed3327(core.List<api.PerfSample> o) { |
458 unittest.expect(o, unittest.hasLength(2)); | 458 unittest.expect(o, unittest.hasLength(2)); |
459 checkPerfSample(o[0]); | 459 checkPerfSample(o[0]); |
460 checkPerfSample(o[1]); | 460 checkPerfSample(o[1]); |
461 } | 461 } |
462 | 462 |
463 core.int buildCounterListPerfSamplesResponse = 0; | 463 core.int buildCounterListPerfSamplesResponse = 0; |
464 buildListPerfSamplesResponse() { | 464 buildListPerfSamplesResponse() { |
465 var o = new api.ListPerfSamplesResponse(); | 465 var o = new api.ListPerfSamplesResponse(); |
466 buildCounterListPerfSamplesResponse++; | 466 buildCounterListPerfSamplesResponse++; |
467 if (buildCounterListPerfSamplesResponse < 3) { | 467 if (buildCounterListPerfSamplesResponse < 3) { |
468 o.nextPageToken = "foo"; | 468 o.nextPageToken = "foo"; |
469 o.perfSamples = buildUnnamed3235(); | 469 o.perfSamples = buildUnnamed3327(); |
470 } | 470 } |
471 buildCounterListPerfSamplesResponse--; | 471 buildCounterListPerfSamplesResponse--; |
472 return o; | 472 return o; |
473 } | 473 } |
474 | 474 |
475 checkListPerfSamplesResponse(api.ListPerfSamplesResponse o) { | 475 checkListPerfSamplesResponse(api.ListPerfSamplesResponse o) { |
476 buildCounterListPerfSamplesResponse++; | 476 buildCounterListPerfSamplesResponse++; |
477 if (buildCounterListPerfSamplesResponse < 3) { | 477 if (buildCounterListPerfSamplesResponse < 3) { |
478 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 478 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
479 checkUnnamed3235(o.perfSamples); | 479 checkUnnamed3327(o.perfSamples); |
480 } | 480 } |
481 buildCounterListPerfSamplesResponse--; | 481 buildCounterListPerfSamplesResponse--; |
482 } | 482 } |
483 | 483 |
484 buildUnnamed3236() { | 484 buildUnnamed3328() { |
485 var o = new core.List<api.Image>(); | 485 var o = new core.List<api.Image>(); |
486 o.add(buildImage()); | 486 o.add(buildImage()); |
487 o.add(buildImage()); | 487 o.add(buildImage()); |
488 return o; | 488 return o; |
489 } | 489 } |
490 | 490 |
491 checkUnnamed3236(core.List<api.Image> o) { | 491 checkUnnamed3328(core.List<api.Image> o) { |
492 unittest.expect(o, unittest.hasLength(2)); | 492 unittest.expect(o, unittest.hasLength(2)); |
493 checkImage(o[0]); | 493 checkImage(o[0]); |
494 checkImage(o[1]); | 494 checkImage(o[1]); |
495 } | 495 } |
496 | 496 |
497 core.int buildCounterListStepThumbnailsResponse = 0; | 497 core.int buildCounterListStepThumbnailsResponse = 0; |
498 buildListStepThumbnailsResponse() { | 498 buildListStepThumbnailsResponse() { |
499 var o = new api.ListStepThumbnailsResponse(); | 499 var o = new api.ListStepThumbnailsResponse(); |
500 buildCounterListStepThumbnailsResponse++; | 500 buildCounterListStepThumbnailsResponse++; |
501 if (buildCounterListStepThumbnailsResponse < 3) { | 501 if (buildCounterListStepThumbnailsResponse < 3) { |
502 o.nextPageToken = "foo"; | 502 o.nextPageToken = "foo"; |
503 o.thumbnails = buildUnnamed3236(); | 503 o.thumbnails = buildUnnamed3328(); |
504 } | 504 } |
505 buildCounterListStepThumbnailsResponse--; | 505 buildCounterListStepThumbnailsResponse--; |
506 return o; | 506 return o; |
507 } | 507 } |
508 | 508 |
509 checkListStepThumbnailsResponse(api.ListStepThumbnailsResponse o) { | 509 checkListStepThumbnailsResponse(api.ListStepThumbnailsResponse o) { |
510 buildCounterListStepThumbnailsResponse++; | 510 buildCounterListStepThumbnailsResponse++; |
511 if (buildCounterListStepThumbnailsResponse < 3) { | 511 if (buildCounterListStepThumbnailsResponse < 3) { |
512 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 512 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
513 checkUnnamed3236(o.thumbnails); | 513 checkUnnamed3328(o.thumbnails); |
514 } | 514 } |
515 buildCounterListStepThumbnailsResponse--; | 515 buildCounterListStepThumbnailsResponse--; |
516 } | 516 } |
517 | 517 |
518 buildUnnamed3237() { | 518 buildUnnamed3329() { |
519 var o = new core.List<api.Step>(); | 519 var o = new core.List<api.Step>(); |
520 o.add(buildStep()); | 520 o.add(buildStep()); |
521 o.add(buildStep()); | 521 o.add(buildStep()); |
522 return o; | 522 return o; |
523 } | 523 } |
524 | 524 |
525 checkUnnamed3237(core.List<api.Step> o) { | 525 checkUnnamed3329(core.List<api.Step> o) { |
526 unittest.expect(o, unittest.hasLength(2)); | 526 unittest.expect(o, unittest.hasLength(2)); |
527 checkStep(o[0]); | 527 checkStep(o[0]); |
528 checkStep(o[1]); | 528 checkStep(o[1]); |
529 } | 529 } |
530 | 530 |
531 core.int buildCounterListStepsResponse = 0; | 531 core.int buildCounterListStepsResponse = 0; |
532 buildListStepsResponse() { | 532 buildListStepsResponse() { |
533 var o = new api.ListStepsResponse(); | 533 var o = new api.ListStepsResponse(); |
534 buildCounterListStepsResponse++; | 534 buildCounterListStepsResponse++; |
535 if (buildCounterListStepsResponse < 3) { | 535 if (buildCounterListStepsResponse < 3) { |
536 o.nextPageToken = "foo"; | 536 o.nextPageToken = "foo"; |
537 o.steps = buildUnnamed3237(); | 537 o.steps = buildUnnamed3329(); |
538 } | 538 } |
539 buildCounterListStepsResponse--; | 539 buildCounterListStepsResponse--; |
540 return o; | 540 return o; |
541 } | 541 } |
542 | 542 |
543 checkListStepsResponse(api.ListStepsResponse o) { | 543 checkListStepsResponse(api.ListStepsResponse o) { |
544 buildCounterListStepsResponse++; | 544 buildCounterListStepsResponse++; |
545 if (buildCounterListStepsResponse < 3) { | 545 if (buildCounterListStepsResponse < 3) { |
546 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 546 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
547 checkUnnamed3237(o.steps); | 547 checkUnnamed3329(o.steps); |
548 } | 548 } |
549 buildCounterListStepsResponse--; | 549 buildCounterListStepsResponse--; |
550 } | 550 } |
551 | 551 |
552 core.int buildCounterMemoryInfo = 0; | 552 core.int buildCounterMemoryInfo = 0; |
553 buildMemoryInfo() { | 553 buildMemoryInfo() { |
554 var o = new api.MemoryInfo(); | 554 var o = new api.MemoryInfo(); |
555 buildCounterMemoryInfo++; | 555 buildCounterMemoryInfo++; |
556 if (buildCounterMemoryInfo < 3) { | 556 if (buildCounterMemoryInfo < 3) { |
557 o.memoryCapInKibibyte = "foo"; | 557 o.memoryCapInKibibyte = "foo"; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 | 611 |
612 checkPerfEnvironment(api.PerfEnvironment o) { | 612 checkPerfEnvironment(api.PerfEnvironment o) { |
613 buildCounterPerfEnvironment++; | 613 buildCounterPerfEnvironment++; |
614 if (buildCounterPerfEnvironment < 3) { | 614 if (buildCounterPerfEnvironment < 3) { |
615 checkCPUInfo(o.cpuInfo); | 615 checkCPUInfo(o.cpuInfo); |
616 checkMemoryInfo(o.memoryInfo); | 616 checkMemoryInfo(o.memoryInfo); |
617 } | 617 } |
618 buildCounterPerfEnvironment--; | 618 buildCounterPerfEnvironment--; |
619 } | 619 } |
620 | 620 |
621 buildUnnamed3238() { | 621 buildUnnamed3330() { |
622 var o = new core.List<core.String>(); | 622 var o = new core.List<core.String>(); |
623 o.add("foo"); | 623 o.add("foo"); |
624 o.add("foo"); | 624 o.add("foo"); |
625 return o; | 625 return o; |
626 } | 626 } |
627 | 627 |
628 checkUnnamed3238(core.List<core.String> o) { | 628 checkUnnamed3330(core.List<core.String> o) { |
629 unittest.expect(o, unittest.hasLength(2)); | 629 unittest.expect(o, unittest.hasLength(2)); |
630 unittest.expect(o[0], unittest.equals('foo')); | 630 unittest.expect(o[0], unittest.equals('foo')); |
631 unittest.expect(o[1], unittest.equals('foo')); | 631 unittest.expect(o[1], unittest.equals('foo')); |
632 } | 632 } |
633 | 633 |
634 core.int buildCounterPerfMetricsSummary = 0; | 634 core.int buildCounterPerfMetricsSummary = 0; |
635 buildPerfMetricsSummary() { | 635 buildPerfMetricsSummary() { |
636 var o = new api.PerfMetricsSummary(); | 636 var o = new api.PerfMetricsSummary(); |
637 buildCounterPerfMetricsSummary++; | 637 buildCounterPerfMetricsSummary++; |
638 if (buildCounterPerfMetricsSummary < 3) { | 638 if (buildCounterPerfMetricsSummary < 3) { |
639 o.executionId = "foo"; | 639 o.executionId = "foo"; |
640 o.historyId = "foo"; | 640 o.historyId = "foo"; |
641 o.perfEnvironment = buildPerfEnvironment(); | 641 o.perfEnvironment = buildPerfEnvironment(); |
642 o.perfMetrics = buildUnnamed3238(); | 642 o.perfMetrics = buildUnnamed3330(); |
643 o.projectId = "foo"; | 643 o.projectId = "foo"; |
644 o.stepId = "foo"; | 644 o.stepId = "foo"; |
645 } | 645 } |
646 buildCounterPerfMetricsSummary--; | 646 buildCounterPerfMetricsSummary--; |
647 return o; | 647 return o; |
648 } | 648 } |
649 | 649 |
650 checkPerfMetricsSummary(api.PerfMetricsSummary o) { | 650 checkPerfMetricsSummary(api.PerfMetricsSummary o) { |
651 buildCounterPerfMetricsSummary++; | 651 buildCounterPerfMetricsSummary++; |
652 if (buildCounterPerfMetricsSummary < 3) { | 652 if (buildCounterPerfMetricsSummary < 3) { |
653 unittest.expect(o.executionId, unittest.equals('foo')); | 653 unittest.expect(o.executionId, unittest.equals('foo')); |
654 unittest.expect(o.historyId, unittest.equals('foo')); | 654 unittest.expect(o.historyId, unittest.equals('foo')); |
655 checkPerfEnvironment(o.perfEnvironment); | 655 checkPerfEnvironment(o.perfEnvironment); |
656 checkUnnamed3238(o.perfMetrics); | 656 checkUnnamed3330(o.perfMetrics); |
657 unittest.expect(o.projectId, unittest.equals('foo')); | 657 unittest.expect(o.projectId, unittest.equals('foo')); |
658 unittest.expect(o.stepId, unittest.equals('foo')); | 658 unittest.expect(o.stepId, unittest.equals('foo')); |
659 } | 659 } |
660 buildCounterPerfMetricsSummary--; | 660 buildCounterPerfMetricsSummary--; |
661 } | 661 } |
662 | 662 |
663 core.int buildCounterPerfSample = 0; | 663 core.int buildCounterPerfSample = 0; |
664 buildPerfSample() { | 664 buildPerfSample() { |
665 var o = new api.PerfSample(); | 665 var o = new api.PerfSample(); |
666 buildCounterPerfSample++; | 666 buildCounterPerfSample++; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
724 | 724 |
725 checkProjectSettings(api.ProjectSettings o) { | 725 checkProjectSettings(api.ProjectSettings o) { |
726 buildCounterProjectSettings++; | 726 buildCounterProjectSettings++; |
727 if (buildCounterProjectSettings < 3) { | 727 if (buildCounterProjectSettings < 3) { |
728 unittest.expect(o.defaultBucket, unittest.equals('foo')); | 728 unittest.expect(o.defaultBucket, unittest.equals('foo')); |
729 unittest.expect(o.name, unittest.equals('foo')); | 729 unittest.expect(o.name, unittest.equals('foo')); |
730 } | 730 } |
731 buildCounterProjectSettings--; | 731 buildCounterProjectSettings--; |
732 } | 732 } |
733 | 733 |
734 buildUnnamed3239() { | 734 buildUnnamed3331() { |
735 var o = new core.List<api.FileReference>(); | 735 var o = new core.List<api.FileReference>(); |
736 o.add(buildFileReference()); | 736 o.add(buildFileReference()); |
737 o.add(buildFileReference()); | 737 o.add(buildFileReference()); |
738 return o; | 738 return o; |
739 } | 739 } |
740 | 740 |
741 checkUnnamed3239(core.List<api.FileReference> o) { | 741 checkUnnamed3331(core.List<api.FileReference> o) { |
742 unittest.expect(o, unittest.hasLength(2)); | 742 unittest.expect(o, unittest.hasLength(2)); |
743 checkFileReference(o[0]); | 743 checkFileReference(o[0]); |
744 checkFileReference(o[1]); | 744 checkFileReference(o[1]); |
745 } | 745 } |
746 | 746 |
747 core.int buildCounterPublishXunitXmlFilesRequest = 0; | 747 core.int buildCounterPublishXunitXmlFilesRequest = 0; |
748 buildPublishXunitXmlFilesRequest() { | 748 buildPublishXunitXmlFilesRequest() { |
749 var o = new api.PublishXunitXmlFilesRequest(); | 749 var o = new api.PublishXunitXmlFilesRequest(); |
750 buildCounterPublishXunitXmlFilesRequest++; | 750 buildCounterPublishXunitXmlFilesRequest++; |
751 if (buildCounterPublishXunitXmlFilesRequest < 3) { | 751 if (buildCounterPublishXunitXmlFilesRequest < 3) { |
752 o.xunitXmlFiles = buildUnnamed3239(); | 752 o.xunitXmlFiles = buildUnnamed3331(); |
753 } | 753 } |
754 buildCounterPublishXunitXmlFilesRequest--; | 754 buildCounterPublishXunitXmlFilesRequest--; |
755 return o; | 755 return o; |
756 } | 756 } |
757 | 757 |
758 checkPublishXunitXmlFilesRequest(api.PublishXunitXmlFilesRequest o) { | 758 checkPublishXunitXmlFilesRequest(api.PublishXunitXmlFilesRequest o) { |
759 buildCounterPublishXunitXmlFilesRequest++; | 759 buildCounterPublishXunitXmlFilesRequest++; |
760 if (buildCounterPublishXunitXmlFilesRequest < 3) { | 760 if (buildCounterPublishXunitXmlFilesRequest < 3) { |
761 checkUnnamed3239(o.xunitXmlFiles); | 761 checkUnnamed3331(o.xunitXmlFiles); |
762 } | 762 } |
763 buildCounterPublishXunitXmlFilesRequest--; | 763 buildCounterPublishXunitXmlFilesRequest--; |
764 } | 764 } |
765 | 765 |
766 core.int buildCounterSkippedDetail = 0; | 766 core.int buildCounterSkippedDetail = 0; |
767 buildSkippedDetail() { | 767 buildSkippedDetail() { |
768 var o = new api.SkippedDetail(); | 768 var o = new api.SkippedDetail(); |
769 buildCounterSkippedDetail++; | 769 buildCounterSkippedDetail++; |
770 if (buildCounterSkippedDetail < 3) { | 770 if (buildCounterSkippedDetail < 3) { |
771 o.incompatibleAppVersion = true; | 771 o.incompatibleAppVersion = true; |
(...skipping 26 matching lines...) Expand all Loading... |
798 } | 798 } |
799 | 799 |
800 checkStackTrace(api.StackTrace o) { | 800 checkStackTrace(api.StackTrace o) { |
801 buildCounterStackTrace++; | 801 buildCounterStackTrace++; |
802 if (buildCounterStackTrace < 3) { | 802 if (buildCounterStackTrace < 3) { |
803 unittest.expect(o.exception, unittest.equals('foo')); | 803 unittest.expect(o.exception, unittest.equals('foo')); |
804 } | 804 } |
805 buildCounterStackTrace--; | 805 buildCounterStackTrace--; |
806 } | 806 } |
807 | 807 |
808 buildUnnamed3240() { | 808 buildUnnamed3332() { |
809 var o = new core.List<api.Any>(); | 809 var o = new core.List<api.Any>(); |
810 o.add(buildAny()); | 810 o.add(buildAny()); |
811 o.add(buildAny()); | 811 o.add(buildAny()); |
812 return o; | 812 return o; |
813 } | 813 } |
814 | 814 |
815 checkUnnamed3240(core.List<api.Any> o) { | 815 checkUnnamed3332(core.List<api.Any> o) { |
816 unittest.expect(o, unittest.hasLength(2)); | 816 unittest.expect(o, unittest.hasLength(2)); |
817 checkAny(o[0]); | 817 checkAny(o[0]); |
818 checkAny(o[1]); | 818 checkAny(o[1]); |
819 } | 819 } |
820 | 820 |
821 core.int buildCounterStatus = 0; | 821 core.int buildCounterStatus = 0; |
822 buildStatus() { | 822 buildStatus() { |
823 var o = new api.Status(); | 823 var o = new api.Status(); |
824 buildCounterStatus++; | 824 buildCounterStatus++; |
825 if (buildCounterStatus < 3) { | 825 if (buildCounterStatus < 3) { |
826 o.code = 42; | 826 o.code = 42; |
827 o.details = buildUnnamed3240(); | 827 o.details = buildUnnamed3332(); |
828 o.message = "foo"; | 828 o.message = "foo"; |
829 } | 829 } |
830 buildCounterStatus--; | 830 buildCounterStatus--; |
831 return o; | 831 return o; |
832 } | 832 } |
833 | 833 |
834 checkStatus(api.Status o) { | 834 checkStatus(api.Status o) { |
835 buildCounterStatus++; | 835 buildCounterStatus++; |
836 if (buildCounterStatus < 3) { | 836 if (buildCounterStatus < 3) { |
837 unittest.expect(o.code, unittest.equals(42)); | 837 unittest.expect(o.code, unittest.equals(42)); |
838 checkUnnamed3240(o.details); | 838 checkUnnamed3332(o.details); |
839 unittest.expect(o.message, unittest.equals('foo')); | 839 unittest.expect(o.message, unittest.equals('foo')); |
840 } | 840 } |
841 buildCounterStatus--; | 841 buildCounterStatus--; |
842 } | 842 } |
843 | 843 |
844 buildUnnamed3241() { | 844 buildUnnamed3333() { |
845 var o = new core.List<api.StepDimensionValueEntry>(); | 845 var o = new core.List<api.StepDimensionValueEntry>(); |
846 o.add(buildStepDimensionValueEntry()); | 846 o.add(buildStepDimensionValueEntry()); |
847 o.add(buildStepDimensionValueEntry()); | 847 o.add(buildStepDimensionValueEntry()); |
848 return o; | 848 return o; |
849 } | 849 } |
850 | 850 |
851 checkUnnamed3241(core.List<api.StepDimensionValueEntry> o) { | 851 checkUnnamed3333(core.List<api.StepDimensionValueEntry> o) { |
852 unittest.expect(o, unittest.hasLength(2)); | 852 unittest.expect(o, unittest.hasLength(2)); |
853 checkStepDimensionValueEntry(o[0]); | 853 checkStepDimensionValueEntry(o[0]); |
854 checkStepDimensionValueEntry(o[1]); | 854 checkStepDimensionValueEntry(o[1]); |
855 } | 855 } |
856 | 856 |
857 buildUnnamed3242() { | 857 buildUnnamed3334() { |
858 var o = new core.List<api.StepLabelsEntry>(); | 858 var o = new core.List<api.StepLabelsEntry>(); |
859 o.add(buildStepLabelsEntry()); | 859 o.add(buildStepLabelsEntry()); |
860 o.add(buildStepLabelsEntry()); | 860 o.add(buildStepLabelsEntry()); |
861 return o; | 861 return o; |
862 } | 862 } |
863 | 863 |
864 checkUnnamed3242(core.List<api.StepLabelsEntry> o) { | 864 checkUnnamed3334(core.List<api.StepLabelsEntry> o) { |
865 unittest.expect(o, unittest.hasLength(2)); | 865 unittest.expect(o, unittest.hasLength(2)); |
866 checkStepLabelsEntry(o[0]); | 866 checkStepLabelsEntry(o[0]); |
867 checkStepLabelsEntry(o[1]); | 867 checkStepLabelsEntry(o[1]); |
868 } | 868 } |
869 | 869 |
870 core.int buildCounterStep = 0; | 870 core.int buildCounterStep = 0; |
871 buildStep() { | 871 buildStep() { |
872 var o = new api.Step(); | 872 var o = new api.Step(); |
873 buildCounterStep++; | 873 buildCounterStep++; |
874 if (buildCounterStep < 3) { | 874 if (buildCounterStep < 3) { |
875 o.completionTime = buildTimestamp(); | 875 o.completionTime = buildTimestamp(); |
876 o.creationTime = buildTimestamp(); | 876 o.creationTime = buildTimestamp(); |
877 o.description = "foo"; | 877 o.description = "foo"; |
878 o.deviceUsageDuration = buildDuration(); | 878 o.deviceUsageDuration = buildDuration(); |
879 o.dimensionValue = buildUnnamed3241(); | 879 o.dimensionValue = buildUnnamed3333(); |
880 o.hasImages = true; | 880 o.hasImages = true; |
881 o.labels = buildUnnamed3242(); | 881 o.labels = buildUnnamed3334(); |
882 o.name = "foo"; | 882 o.name = "foo"; |
883 o.outcome = buildOutcome(); | 883 o.outcome = buildOutcome(); |
884 o.runDuration = buildDuration(); | 884 o.runDuration = buildDuration(); |
885 o.state = "foo"; | 885 o.state = "foo"; |
886 o.stepId = "foo"; | 886 o.stepId = "foo"; |
887 o.testExecutionStep = buildTestExecutionStep(); | 887 o.testExecutionStep = buildTestExecutionStep(); |
888 o.toolExecutionStep = buildToolExecutionStep(); | 888 o.toolExecutionStep = buildToolExecutionStep(); |
889 } | 889 } |
890 buildCounterStep--; | 890 buildCounterStep--; |
891 return o; | 891 return o; |
892 } | 892 } |
893 | 893 |
894 checkStep(api.Step o) { | 894 checkStep(api.Step o) { |
895 buildCounterStep++; | 895 buildCounterStep++; |
896 if (buildCounterStep < 3) { | 896 if (buildCounterStep < 3) { |
897 checkTimestamp(o.completionTime); | 897 checkTimestamp(o.completionTime); |
898 checkTimestamp(o.creationTime); | 898 checkTimestamp(o.creationTime); |
899 unittest.expect(o.description, unittest.equals('foo')); | 899 unittest.expect(o.description, unittest.equals('foo')); |
900 checkDuration(o.deviceUsageDuration); | 900 checkDuration(o.deviceUsageDuration); |
901 checkUnnamed3241(o.dimensionValue); | 901 checkUnnamed3333(o.dimensionValue); |
902 unittest.expect(o.hasImages, unittest.isTrue); | 902 unittest.expect(o.hasImages, unittest.isTrue); |
903 checkUnnamed3242(o.labels); | 903 checkUnnamed3334(o.labels); |
904 unittest.expect(o.name, unittest.equals('foo')); | 904 unittest.expect(o.name, unittest.equals('foo')); |
905 checkOutcome(o.outcome); | 905 checkOutcome(o.outcome); |
906 checkDuration(o.runDuration); | 906 checkDuration(o.runDuration); |
907 unittest.expect(o.state, unittest.equals('foo')); | 907 unittest.expect(o.state, unittest.equals('foo')); |
908 unittest.expect(o.stepId, unittest.equals('foo')); | 908 unittest.expect(o.stepId, unittest.equals('foo')); |
909 checkTestExecutionStep(o.testExecutionStep); | 909 checkTestExecutionStep(o.testExecutionStep); |
910 checkToolExecutionStep(o.toolExecutionStep); | 910 checkToolExecutionStep(o.toolExecutionStep); |
911 } | 911 } |
912 buildCounterStep--; | 912 buildCounterStep--; |
913 } | 913 } |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
989 checkTestCaseReference(api.TestCaseReference o) { | 989 checkTestCaseReference(api.TestCaseReference o) { |
990 buildCounterTestCaseReference++; | 990 buildCounterTestCaseReference++; |
991 if (buildCounterTestCaseReference < 3) { | 991 if (buildCounterTestCaseReference < 3) { |
992 unittest.expect(o.className, unittest.equals('foo')); | 992 unittest.expect(o.className, unittest.equals('foo')); |
993 unittest.expect(o.name, unittest.equals('foo')); | 993 unittest.expect(o.name, unittest.equals('foo')); |
994 unittest.expect(o.testSuiteName, unittest.equals('foo')); | 994 unittest.expect(o.testSuiteName, unittest.equals('foo')); |
995 } | 995 } |
996 buildCounterTestCaseReference--; | 996 buildCounterTestCaseReference--; |
997 } | 997 } |
998 | 998 |
999 buildUnnamed3243() { | 999 buildUnnamed3335() { |
1000 var o = new core.List<api.TestIssue>(); | 1000 var o = new core.List<api.TestIssue>(); |
1001 o.add(buildTestIssue()); | 1001 o.add(buildTestIssue()); |
1002 o.add(buildTestIssue()); | 1002 o.add(buildTestIssue()); |
1003 return o; | 1003 return o; |
1004 } | 1004 } |
1005 | 1005 |
1006 checkUnnamed3243(core.List<api.TestIssue> o) { | 1006 checkUnnamed3335(core.List<api.TestIssue> o) { |
1007 unittest.expect(o, unittest.hasLength(2)); | 1007 unittest.expect(o, unittest.hasLength(2)); |
1008 checkTestIssue(o[0]); | 1008 checkTestIssue(o[0]); |
1009 checkTestIssue(o[1]); | 1009 checkTestIssue(o[1]); |
1010 } | 1010 } |
1011 | 1011 |
1012 buildUnnamed3244() { | 1012 buildUnnamed3336() { |
1013 var o = new core.List<api.TestSuiteOverview>(); | 1013 var o = new core.List<api.TestSuiteOverview>(); |
1014 o.add(buildTestSuiteOverview()); | 1014 o.add(buildTestSuiteOverview()); |
1015 o.add(buildTestSuiteOverview()); | 1015 o.add(buildTestSuiteOverview()); |
1016 return o; | 1016 return o; |
1017 } | 1017 } |
1018 | 1018 |
1019 checkUnnamed3244(core.List<api.TestSuiteOverview> o) { | 1019 checkUnnamed3336(core.List<api.TestSuiteOverview> o) { |
1020 unittest.expect(o, unittest.hasLength(2)); | 1020 unittest.expect(o, unittest.hasLength(2)); |
1021 checkTestSuiteOverview(o[0]); | 1021 checkTestSuiteOverview(o[0]); |
1022 checkTestSuiteOverview(o[1]); | 1022 checkTestSuiteOverview(o[1]); |
1023 } | 1023 } |
1024 | 1024 |
1025 core.int buildCounterTestExecutionStep = 0; | 1025 core.int buildCounterTestExecutionStep = 0; |
1026 buildTestExecutionStep() { | 1026 buildTestExecutionStep() { |
1027 var o = new api.TestExecutionStep(); | 1027 var o = new api.TestExecutionStep(); |
1028 buildCounterTestExecutionStep++; | 1028 buildCounterTestExecutionStep++; |
1029 if (buildCounterTestExecutionStep < 3) { | 1029 if (buildCounterTestExecutionStep < 3) { |
1030 o.testIssues = buildUnnamed3243(); | 1030 o.testIssues = buildUnnamed3335(); |
1031 o.testSuiteOverviews = buildUnnamed3244(); | 1031 o.testSuiteOverviews = buildUnnamed3336(); |
1032 o.testTiming = buildTestTiming(); | 1032 o.testTiming = buildTestTiming(); |
1033 o.toolExecution = buildToolExecution(); | 1033 o.toolExecution = buildToolExecution(); |
1034 } | 1034 } |
1035 buildCounterTestExecutionStep--; | 1035 buildCounterTestExecutionStep--; |
1036 return o; | 1036 return o; |
1037 } | 1037 } |
1038 | 1038 |
1039 checkTestExecutionStep(api.TestExecutionStep o) { | 1039 checkTestExecutionStep(api.TestExecutionStep o) { |
1040 buildCounterTestExecutionStep++; | 1040 buildCounterTestExecutionStep++; |
1041 if (buildCounterTestExecutionStep < 3) { | 1041 if (buildCounterTestExecutionStep < 3) { |
1042 checkUnnamed3243(o.testIssues); | 1042 checkUnnamed3335(o.testIssues); |
1043 checkUnnamed3244(o.testSuiteOverviews); | 1043 checkUnnamed3336(o.testSuiteOverviews); |
1044 checkTestTiming(o.testTiming); | 1044 checkTestTiming(o.testTiming); |
1045 checkToolExecution(o.toolExecution); | 1045 checkToolExecution(o.toolExecution); |
1046 } | 1046 } |
1047 buildCounterTestExecutionStep--; | 1047 buildCounterTestExecutionStep--; |
1048 } | 1048 } |
1049 | 1049 |
1050 core.int buildCounterTestIssue = 0; | 1050 core.int buildCounterTestIssue = 0; |
1051 buildTestIssue() { | 1051 buildTestIssue() { |
1052 var o = new api.TestIssue(); | 1052 var o = new api.TestIssue(); |
1053 buildCounterTestIssue++; | 1053 buildCounterTestIssue++; |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1155 | 1155 |
1156 checkTimestamp(api.Timestamp o) { | 1156 checkTimestamp(api.Timestamp o) { |
1157 buildCounterTimestamp++; | 1157 buildCounterTimestamp++; |
1158 if (buildCounterTimestamp < 3) { | 1158 if (buildCounterTimestamp < 3) { |
1159 unittest.expect(o.nanos, unittest.equals(42)); | 1159 unittest.expect(o.nanos, unittest.equals(42)); |
1160 unittest.expect(o.seconds, unittest.equals('foo')); | 1160 unittest.expect(o.seconds, unittest.equals('foo')); |
1161 } | 1161 } |
1162 buildCounterTimestamp--; | 1162 buildCounterTimestamp--; |
1163 } | 1163 } |
1164 | 1164 |
1165 buildUnnamed3245() { | 1165 buildUnnamed3337() { |
1166 var o = new core.List<core.String>(); | 1166 var o = new core.List<core.String>(); |
1167 o.add("foo"); | 1167 o.add("foo"); |
1168 o.add("foo"); | 1168 o.add("foo"); |
1169 return o; | 1169 return o; |
1170 } | 1170 } |
1171 | 1171 |
1172 checkUnnamed3245(core.List<core.String> o) { | 1172 checkUnnamed3337(core.List<core.String> o) { |
1173 unittest.expect(o, unittest.hasLength(2)); | 1173 unittest.expect(o, unittest.hasLength(2)); |
1174 unittest.expect(o[0], unittest.equals('foo')); | 1174 unittest.expect(o[0], unittest.equals('foo')); |
1175 unittest.expect(o[1], unittest.equals('foo')); | 1175 unittest.expect(o[1], unittest.equals('foo')); |
1176 } | 1176 } |
1177 | 1177 |
1178 buildUnnamed3246() { | 1178 buildUnnamed3338() { |
1179 var o = new core.List<api.FileReference>(); | 1179 var o = new core.List<api.FileReference>(); |
1180 o.add(buildFileReference()); | 1180 o.add(buildFileReference()); |
1181 o.add(buildFileReference()); | 1181 o.add(buildFileReference()); |
1182 return o; | 1182 return o; |
1183 } | 1183 } |
1184 | 1184 |
1185 checkUnnamed3246(core.List<api.FileReference> o) { | 1185 checkUnnamed3338(core.List<api.FileReference> o) { |
1186 unittest.expect(o, unittest.hasLength(2)); | 1186 unittest.expect(o, unittest.hasLength(2)); |
1187 checkFileReference(o[0]); | 1187 checkFileReference(o[0]); |
1188 checkFileReference(o[1]); | 1188 checkFileReference(o[1]); |
1189 } | 1189 } |
1190 | 1190 |
1191 buildUnnamed3247() { | 1191 buildUnnamed3339() { |
1192 var o = new core.List<api.ToolOutputReference>(); | 1192 var o = new core.List<api.ToolOutputReference>(); |
1193 o.add(buildToolOutputReference()); | 1193 o.add(buildToolOutputReference()); |
1194 o.add(buildToolOutputReference()); | 1194 o.add(buildToolOutputReference()); |
1195 return o; | 1195 return o; |
1196 } | 1196 } |
1197 | 1197 |
1198 checkUnnamed3247(core.List<api.ToolOutputReference> o) { | 1198 checkUnnamed3339(core.List<api.ToolOutputReference> o) { |
1199 unittest.expect(o, unittest.hasLength(2)); | 1199 unittest.expect(o, unittest.hasLength(2)); |
1200 checkToolOutputReference(o[0]); | 1200 checkToolOutputReference(o[0]); |
1201 checkToolOutputReference(o[1]); | 1201 checkToolOutputReference(o[1]); |
1202 } | 1202 } |
1203 | 1203 |
1204 core.int buildCounterToolExecution = 0; | 1204 core.int buildCounterToolExecution = 0; |
1205 buildToolExecution() { | 1205 buildToolExecution() { |
1206 var o = new api.ToolExecution(); | 1206 var o = new api.ToolExecution(); |
1207 buildCounterToolExecution++; | 1207 buildCounterToolExecution++; |
1208 if (buildCounterToolExecution < 3) { | 1208 if (buildCounterToolExecution < 3) { |
1209 o.commandLineArguments = buildUnnamed3245(); | 1209 o.commandLineArguments = buildUnnamed3337(); |
1210 o.exitCode = buildToolExitCode(); | 1210 o.exitCode = buildToolExitCode(); |
1211 o.toolLogs = buildUnnamed3246(); | 1211 o.toolLogs = buildUnnamed3338(); |
1212 o.toolOutputs = buildUnnamed3247(); | 1212 o.toolOutputs = buildUnnamed3339(); |
1213 } | 1213 } |
1214 buildCounterToolExecution--; | 1214 buildCounterToolExecution--; |
1215 return o; | 1215 return o; |
1216 } | 1216 } |
1217 | 1217 |
1218 checkToolExecution(api.ToolExecution o) { | 1218 checkToolExecution(api.ToolExecution o) { |
1219 buildCounterToolExecution++; | 1219 buildCounterToolExecution++; |
1220 if (buildCounterToolExecution < 3) { | 1220 if (buildCounterToolExecution < 3) { |
1221 checkUnnamed3245(o.commandLineArguments); | 1221 checkUnnamed3337(o.commandLineArguments); |
1222 checkToolExitCode(o.exitCode); | 1222 checkToolExitCode(o.exitCode); |
1223 checkUnnamed3246(o.toolLogs); | 1223 checkUnnamed3338(o.toolLogs); |
1224 checkUnnamed3247(o.toolOutputs); | 1224 checkUnnamed3339(o.toolOutputs); |
1225 } | 1225 } |
1226 buildCounterToolExecution--; | 1226 buildCounterToolExecution--; |
1227 } | 1227 } |
1228 | 1228 |
1229 core.int buildCounterToolExecutionStep = 0; | 1229 core.int buildCounterToolExecutionStep = 0; |
1230 buildToolExecutionStep() { | 1230 buildToolExecutionStep() { |
1231 var o = new api.ToolExecutionStep(); | 1231 var o = new api.ToolExecutionStep(); |
1232 buildCounterToolExecutionStep++; | 1232 buildCounterToolExecutionStep++; |
1233 if (buildCounterToolExecutionStep < 3) { | 1233 if (buildCounterToolExecutionStep < 3) { |
1234 o.toolExecution = buildToolExecution(); | 1234 o.toolExecution = buildToolExecution(); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1280 checkToolOutputReference(api.ToolOutputReference o) { | 1280 checkToolOutputReference(api.ToolOutputReference o) { |
1281 buildCounterToolOutputReference++; | 1281 buildCounterToolOutputReference++; |
1282 if (buildCounterToolOutputReference < 3) { | 1282 if (buildCounterToolOutputReference < 3) { |
1283 checkTimestamp(o.creationTime); | 1283 checkTimestamp(o.creationTime); |
1284 checkFileReference(o.output); | 1284 checkFileReference(o.output); |
1285 checkTestCaseReference(o.testCase); | 1285 checkTestCaseReference(o.testCase); |
1286 } | 1286 } |
1287 buildCounterToolOutputReference--; | 1287 buildCounterToolOutputReference--; |
1288 } | 1288 } |
1289 | 1289 |
1290 buildUnnamed3248() { | 1290 buildUnnamed3340() { |
1291 var o = new core.List<core.String>(); | 1291 var o = new core.List<core.String>(); |
1292 o.add("foo"); | 1292 o.add("foo"); |
1293 o.add("foo"); | 1293 o.add("foo"); |
1294 return o; | 1294 return o; |
1295 } | 1295 } |
1296 | 1296 |
1297 checkUnnamed3248(core.List<core.String> o) { | 1297 checkUnnamed3340(core.List<core.String> o) { |
1298 unittest.expect(o, unittest.hasLength(2)); | 1298 unittest.expect(o, unittest.hasLength(2)); |
1299 unittest.expect(o[0], unittest.equals('foo')); | 1299 unittest.expect(o[0], unittest.equals('foo')); |
1300 unittest.expect(o[1], unittest.equals('foo')); | 1300 unittest.expect(o[1], unittest.equals('foo')); |
1301 } | 1301 } |
1302 | 1302 |
1303 | 1303 |
1304 main() { | 1304 main() { |
1305 unittest.group("obj-schema-Any", () { | 1305 unittest.group("obj-schema-Any", () { |
1306 unittest.test("to-json--from-json", () { | 1306 unittest.test("to-json--from-json", () { |
1307 var o = buildAny(); | 1307 var o = buildAny(); |
(...skipping 1257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2565 }); | 2565 }); |
2566 | 2566 |
2567 unittest.test("method--list", () { | 2567 unittest.test("method--list", () { |
2568 | 2568 |
2569 var mock = new HttpServerMock(); | 2569 var mock = new HttpServerMock(); |
2570 api.ProjectsHistoriesExecutionsStepsPerfSampleSeriesResourceApi res = new
api.ToolresultsApi(mock).projects.histories.executions.steps.perfSampleSeries; | 2570 api.ProjectsHistoriesExecutionsStepsPerfSampleSeriesResourceApi res = new
api.ToolresultsApi(mock).projects.histories.executions.steps.perfSampleSeries; |
2571 var arg_projectId = "foo"; | 2571 var arg_projectId = "foo"; |
2572 var arg_historyId = "foo"; | 2572 var arg_historyId = "foo"; |
2573 var arg_executionId = "foo"; | 2573 var arg_executionId = "foo"; |
2574 var arg_stepId = "foo"; | 2574 var arg_stepId = "foo"; |
2575 var arg_filter = buildUnnamed3248(); | 2575 var arg_filter = buildUnnamed3340(); |
2576 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2576 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2577 var path = (req.url).path; | 2577 var path = (req.url).path; |
2578 var pathOffset = 0; | 2578 var pathOffset = 0; |
2579 var index; | 2579 var index; |
2580 var subPart; | 2580 var subPart; |
2581 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2581 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2582 pathOffset += 1; | 2582 pathOffset += 1; |
2583 | 2583 |
2584 var query = (req.url).query; | 2584 var query = (req.url).query; |
2585 var queryOffset = 0; | 2585 var queryOffset = 0; |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2766 res.list(arg_projectId, arg_historyId, arg_executionId, arg_stepId, pageSi
ze: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.List
StepThumbnailsResponse response) { | 2766 res.list(arg_projectId, arg_historyId, arg_executionId, arg_stepId, pageSi
ze: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.List
StepThumbnailsResponse response) { |
2767 checkListStepThumbnailsResponse(response); | 2767 checkListStepThumbnailsResponse(response); |
2768 }))); | 2768 }))); |
2769 }); | 2769 }); |
2770 | 2770 |
2771 }); | 2771 }); |
2772 | 2772 |
2773 | 2773 |
2774 } | 2774 } |
2775 | 2775 |
OLD | NEW |