OLD | NEW |
1 library googleapis.sheets.v4.test; | 1 library googleapis.sheets.v4.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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 } | 293 } |
294 | 294 |
295 checkAddSheetResponse(api.AddSheetResponse o) { | 295 checkAddSheetResponse(api.AddSheetResponse o) { |
296 buildCounterAddSheetResponse++; | 296 buildCounterAddSheetResponse++; |
297 if (buildCounterAddSheetResponse < 3) { | 297 if (buildCounterAddSheetResponse < 3) { |
298 checkSheetProperties(o.properties); | 298 checkSheetProperties(o.properties); |
299 } | 299 } |
300 buildCounterAddSheetResponse--; | 300 buildCounterAddSheetResponse--; |
301 } | 301 } |
302 | 302 |
303 buildUnnamed358() { | 303 buildUnnamed379() { |
304 var o = new core.List<api.RowData>(); | 304 var o = new core.List<api.RowData>(); |
305 o.add(buildRowData()); | 305 o.add(buildRowData()); |
306 o.add(buildRowData()); | 306 o.add(buildRowData()); |
307 return o; | 307 return o; |
308 } | 308 } |
309 | 309 |
310 checkUnnamed358(core.List<api.RowData> o) { | 310 checkUnnamed379(core.List<api.RowData> o) { |
311 unittest.expect(o, unittest.hasLength(2)); | 311 unittest.expect(o, unittest.hasLength(2)); |
312 checkRowData(o[0]); | 312 checkRowData(o[0]); |
313 checkRowData(o[1]); | 313 checkRowData(o[1]); |
314 } | 314 } |
315 | 315 |
316 core.int buildCounterAppendCellsRequest = 0; | 316 core.int buildCounterAppendCellsRequest = 0; |
317 buildAppendCellsRequest() { | 317 buildAppendCellsRequest() { |
318 var o = new api.AppendCellsRequest(); | 318 var o = new api.AppendCellsRequest(); |
319 buildCounterAppendCellsRequest++; | 319 buildCounterAppendCellsRequest++; |
320 if (buildCounterAppendCellsRequest < 3) { | 320 if (buildCounterAppendCellsRequest < 3) { |
321 o.fields = "foo"; | 321 o.fields = "foo"; |
322 o.rows = buildUnnamed358(); | 322 o.rows = buildUnnamed379(); |
323 o.sheetId = 42; | 323 o.sheetId = 42; |
324 } | 324 } |
325 buildCounterAppendCellsRequest--; | 325 buildCounterAppendCellsRequest--; |
326 return o; | 326 return o; |
327 } | 327 } |
328 | 328 |
329 checkAppendCellsRequest(api.AppendCellsRequest o) { | 329 checkAppendCellsRequest(api.AppendCellsRequest o) { |
330 buildCounterAppendCellsRequest++; | 330 buildCounterAppendCellsRequest++; |
331 if (buildCounterAppendCellsRequest < 3) { | 331 if (buildCounterAppendCellsRequest < 3) { |
332 unittest.expect(o.fields, unittest.equals('foo')); | 332 unittest.expect(o.fields, unittest.equals('foo')); |
333 checkUnnamed358(o.rows); | 333 checkUnnamed379(o.rows); |
334 unittest.expect(o.sheetId, unittest.equals(42)); | 334 unittest.expect(o.sheetId, unittest.equals(42)); |
335 } | 335 } |
336 buildCounterAppendCellsRequest--; | 336 buildCounterAppendCellsRequest--; |
337 } | 337 } |
338 | 338 |
339 core.int buildCounterAppendDimensionRequest = 0; | 339 core.int buildCounterAppendDimensionRequest = 0; |
340 buildAppendDimensionRequest() { | 340 buildAppendDimensionRequest() { |
341 var o = new api.AppendDimensionRequest(); | 341 var o = new api.AppendDimensionRequest(); |
342 buildCounterAppendDimensionRequest++; | 342 buildCounterAppendDimensionRequest++; |
343 if (buildCounterAppendDimensionRequest < 3) { | 343 if (buildCounterAppendDimensionRequest < 3) { |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 checkBasicChartSeries(api.BasicChartSeries o) { | 532 checkBasicChartSeries(api.BasicChartSeries o) { |
533 buildCounterBasicChartSeries++; | 533 buildCounterBasicChartSeries++; |
534 if (buildCounterBasicChartSeries < 3) { | 534 if (buildCounterBasicChartSeries < 3) { |
535 checkChartData(o.series); | 535 checkChartData(o.series); |
536 unittest.expect(o.targetAxis, unittest.equals('foo')); | 536 unittest.expect(o.targetAxis, unittest.equals('foo')); |
537 unittest.expect(o.type, unittest.equals('foo')); | 537 unittest.expect(o.type, unittest.equals('foo')); |
538 } | 538 } |
539 buildCounterBasicChartSeries--; | 539 buildCounterBasicChartSeries--; |
540 } | 540 } |
541 | 541 |
542 buildUnnamed359() { | 542 buildUnnamed380() { |
543 var o = new core.List<api.BasicChartAxis>(); | 543 var o = new core.List<api.BasicChartAxis>(); |
544 o.add(buildBasicChartAxis()); | 544 o.add(buildBasicChartAxis()); |
545 o.add(buildBasicChartAxis()); | 545 o.add(buildBasicChartAxis()); |
546 return o; | 546 return o; |
547 } | 547 } |
548 | 548 |
549 checkUnnamed359(core.List<api.BasicChartAxis> o) { | 549 checkUnnamed380(core.List<api.BasicChartAxis> o) { |
550 unittest.expect(o, unittest.hasLength(2)); | 550 unittest.expect(o, unittest.hasLength(2)); |
551 checkBasicChartAxis(o[0]); | 551 checkBasicChartAxis(o[0]); |
552 checkBasicChartAxis(o[1]); | 552 checkBasicChartAxis(o[1]); |
553 } | 553 } |
554 | 554 |
555 buildUnnamed360() { | 555 buildUnnamed381() { |
556 var o = new core.List<api.BasicChartDomain>(); | 556 var o = new core.List<api.BasicChartDomain>(); |
557 o.add(buildBasicChartDomain()); | 557 o.add(buildBasicChartDomain()); |
558 o.add(buildBasicChartDomain()); | 558 o.add(buildBasicChartDomain()); |
559 return o; | 559 return o; |
560 } | 560 } |
561 | 561 |
562 checkUnnamed360(core.List<api.BasicChartDomain> o) { | 562 checkUnnamed381(core.List<api.BasicChartDomain> o) { |
563 unittest.expect(o, unittest.hasLength(2)); | 563 unittest.expect(o, unittest.hasLength(2)); |
564 checkBasicChartDomain(o[0]); | 564 checkBasicChartDomain(o[0]); |
565 checkBasicChartDomain(o[1]); | 565 checkBasicChartDomain(o[1]); |
566 } | 566 } |
567 | 567 |
568 buildUnnamed361() { | 568 buildUnnamed382() { |
569 var o = new core.List<api.BasicChartSeries>(); | 569 var o = new core.List<api.BasicChartSeries>(); |
570 o.add(buildBasicChartSeries()); | 570 o.add(buildBasicChartSeries()); |
571 o.add(buildBasicChartSeries()); | 571 o.add(buildBasicChartSeries()); |
572 return o; | 572 return o; |
573 } | 573 } |
574 | 574 |
575 checkUnnamed361(core.List<api.BasicChartSeries> o) { | 575 checkUnnamed382(core.List<api.BasicChartSeries> o) { |
576 unittest.expect(o, unittest.hasLength(2)); | 576 unittest.expect(o, unittest.hasLength(2)); |
577 checkBasicChartSeries(o[0]); | 577 checkBasicChartSeries(o[0]); |
578 checkBasicChartSeries(o[1]); | 578 checkBasicChartSeries(o[1]); |
579 } | 579 } |
580 | 580 |
581 core.int buildCounterBasicChartSpec = 0; | 581 core.int buildCounterBasicChartSpec = 0; |
582 buildBasicChartSpec() { | 582 buildBasicChartSpec() { |
583 var o = new api.BasicChartSpec(); | 583 var o = new api.BasicChartSpec(); |
584 buildCounterBasicChartSpec++; | 584 buildCounterBasicChartSpec++; |
585 if (buildCounterBasicChartSpec < 3) { | 585 if (buildCounterBasicChartSpec < 3) { |
586 o.axis = buildUnnamed359(); | 586 o.axis = buildUnnamed380(); |
587 o.chartType = "foo"; | 587 o.chartType = "foo"; |
588 o.domains = buildUnnamed360(); | 588 o.domains = buildUnnamed381(); |
589 o.headerCount = 42; | 589 o.headerCount = 42; |
590 o.legendPosition = "foo"; | 590 o.legendPosition = "foo"; |
591 o.series = buildUnnamed361(); | 591 o.series = buildUnnamed382(); |
592 } | 592 } |
593 buildCounterBasicChartSpec--; | 593 buildCounterBasicChartSpec--; |
594 return o; | 594 return o; |
595 } | 595 } |
596 | 596 |
597 checkBasicChartSpec(api.BasicChartSpec o) { | 597 checkBasicChartSpec(api.BasicChartSpec o) { |
598 buildCounterBasicChartSpec++; | 598 buildCounterBasicChartSpec++; |
599 if (buildCounterBasicChartSpec < 3) { | 599 if (buildCounterBasicChartSpec < 3) { |
600 checkUnnamed359(o.axis); | 600 checkUnnamed380(o.axis); |
601 unittest.expect(o.chartType, unittest.equals('foo')); | 601 unittest.expect(o.chartType, unittest.equals('foo')); |
602 checkUnnamed360(o.domains); | 602 checkUnnamed381(o.domains); |
603 unittest.expect(o.headerCount, unittest.equals(42)); | 603 unittest.expect(o.headerCount, unittest.equals(42)); |
604 unittest.expect(o.legendPosition, unittest.equals('foo')); | 604 unittest.expect(o.legendPosition, unittest.equals('foo')); |
605 checkUnnamed361(o.series); | 605 checkUnnamed382(o.series); |
606 } | 606 } |
607 buildCounterBasicChartSpec--; | 607 buildCounterBasicChartSpec--; |
608 } | 608 } |
609 | 609 |
610 buildUnnamed362() { | 610 buildUnnamed383() { |
611 var o = new core.Map<core.String, api.FilterCriteria>(); | 611 var o = new core.Map<core.String, api.FilterCriteria>(); |
612 o["x"] = buildFilterCriteria(); | 612 o["x"] = buildFilterCriteria(); |
613 o["y"] = buildFilterCriteria(); | 613 o["y"] = buildFilterCriteria(); |
614 return o; | 614 return o; |
615 } | 615 } |
616 | 616 |
617 checkUnnamed362(core.Map<core.String, api.FilterCriteria> o) { | 617 checkUnnamed383(core.Map<core.String, api.FilterCriteria> o) { |
618 unittest.expect(o, unittest.hasLength(2)); | 618 unittest.expect(o, unittest.hasLength(2)); |
619 checkFilterCriteria(o["x"]); | 619 checkFilterCriteria(o["x"]); |
620 checkFilterCriteria(o["y"]); | 620 checkFilterCriteria(o["y"]); |
621 } | 621 } |
622 | 622 |
623 buildUnnamed363() { | 623 buildUnnamed384() { |
624 var o = new core.List<api.SortSpec>(); | 624 var o = new core.List<api.SortSpec>(); |
625 o.add(buildSortSpec()); | 625 o.add(buildSortSpec()); |
626 o.add(buildSortSpec()); | 626 o.add(buildSortSpec()); |
627 return o; | 627 return o; |
628 } | 628 } |
629 | 629 |
630 checkUnnamed363(core.List<api.SortSpec> o) { | 630 checkUnnamed384(core.List<api.SortSpec> o) { |
631 unittest.expect(o, unittest.hasLength(2)); | 631 unittest.expect(o, unittest.hasLength(2)); |
632 checkSortSpec(o[0]); | 632 checkSortSpec(o[0]); |
633 checkSortSpec(o[1]); | 633 checkSortSpec(o[1]); |
634 } | 634 } |
635 | 635 |
636 core.int buildCounterBasicFilter = 0; | 636 core.int buildCounterBasicFilter = 0; |
637 buildBasicFilter() { | 637 buildBasicFilter() { |
638 var o = new api.BasicFilter(); | 638 var o = new api.BasicFilter(); |
639 buildCounterBasicFilter++; | 639 buildCounterBasicFilter++; |
640 if (buildCounterBasicFilter < 3) { | 640 if (buildCounterBasicFilter < 3) { |
641 o.criteria = buildUnnamed362(); | 641 o.criteria = buildUnnamed383(); |
642 o.range = buildGridRange(); | 642 o.range = buildGridRange(); |
643 o.sortSpecs = buildUnnamed363(); | 643 o.sortSpecs = buildUnnamed384(); |
644 } | 644 } |
645 buildCounterBasicFilter--; | 645 buildCounterBasicFilter--; |
646 return o; | 646 return o; |
647 } | 647 } |
648 | 648 |
649 checkBasicFilter(api.BasicFilter o) { | 649 checkBasicFilter(api.BasicFilter o) { |
650 buildCounterBasicFilter++; | 650 buildCounterBasicFilter++; |
651 if (buildCounterBasicFilter < 3) { | 651 if (buildCounterBasicFilter < 3) { |
652 checkUnnamed362(o.criteria); | 652 checkUnnamed383(o.criteria); |
653 checkGridRange(o.range); | 653 checkGridRange(o.range); |
654 checkUnnamed363(o.sortSpecs); | 654 checkUnnamed384(o.sortSpecs); |
655 } | 655 } |
656 buildCounterBasicFilter--; | 656 buildCounterBasicFilter--; |
657 } | 657 } |
658 | 658 |
659 buildUnnamed364() { | 659 buildUnnamed385() { |
660 var o = new core.List<core.String>(); | 660 var o = new core.List<core.String>(); |
661 o.add("foo"); | 661 o.add("foo"); |
662 o.add("foo"); | 662 o.add("foo"); |
663 return o; | 663 return o; |
664 } | 664 } |
665 | 665 |
666 checkUnnamed364(core.List<core.String> o) { | 666 checkUnnamed385(core.List<core.String> o) { |
667 unittest.expect(o, unittest.hasLength(2)); | 667 unittest.expect(o, unittest.hasLength(2)); |
668 unittest.expect(o[0], unittest.equals('foo')); | 668 unittest.expect(o[0], unittest.equals('foo')); |
669 unittest.expect(o[1], unittest.equals('foo')); | 669 unittest.expect(o[1], unittest.equals('foo')); |
670 } | 670 } |
671 | 671 |
672 core.int buildCounterBatchClearValuesRequest = 0; | 672 core.int buildCounterBatchClearValuesRequest = 0; |
673 buildBatchClearValuesRequest() { | 673 buildBatchClearValuesRequest() { |
674 var o = new api.BatchClearValuesRequest(); | 674 var o = new api.BatchClearValuesRequest(); |
675 buildCounterBatchClearValuesRequest++; | 675 buildCounterBatchClearValuesRequest++; |
676 if (buildCounterBatchClearValuesRequest < 3) { | 676 if (buildCounterBatchClearValuesRequest < 3) { |
677 o.ranges = buildUnnamed364(); | 677 o.ranges = buildUnnamed385(); |
678 } | 678 } |
679 buildCounterBatchClearValuesRequest--; | 679 buildCounterBatchClearValuesRequest--; |
680 return o; | 680 return o; |
681 } | 681 } |
682 | 682 |
683 checkBatchClearValuesRequest(api.BatchClearValuesRequest o) { | 683 checkBatchClearValuesRequest(api.BatchClearValuesRequest o) { |
684 buildCounterBatchClearValuesRequest++; | 684 buildCounterBatchClearValuesRequest++; |
685 if (buildCounterBatchClearValuesRequest < 3) { | 685 if (buildCounterBatchClearValuesRequest < 3) { |
686 checkUnnamed364(o.ranges); | 686 checkUnnamed385(o.ranges); |
687 } | 687 } |
688 buildCounterBatchClearValuesRequest--; | 688 buildCounterBatchClearValuesRequest--; |
689 } | 689 } |
690 | 690 |
691 buildUnnamed365() { | 691 buildUnnamed386() { |
692 var o = new core.List<core.String>(); | 692 var o = new core.List<core.String>(); |
693 o.add("foo"); | 693 o.add("foo"); |
694 o.add("foo"); | 694 o.add("foo"); |
695 return o; | 695 return o; |
696 } | 696 } |
697 | 697 |
698 checkUnnamed365(core.List<core.String> o) { | 698 checkUnnamed386(core.List<core.String> o) { |
699 unittest.expect(o, unittest.hasLength(2)); | 699 unittest.expect(o, unittest.hasLength(2)); |
700 unittest.expect(o[0], unittest.equals('foo')); | 700 unittest.expect(o[0], unittest.equals('foo')); |
701 unittest.expect(o[1], unittest.equals('foo')); | 701 unittest.expect(o[1], unittest.equals('foo')); |
702 } | 702 } |
703 | 703 |
704 core.int buildCounterBatchClearValuesResponse = 0; | 704 core.int buildCounterBatchClearValuesResponse = 0; |
705 buildBatchClearValuesResponse() { | 705 buildBatchClearValuesResponse() { |
706 var o = new api.BatchClearValuesResponse(); | 706 var o = new api.BatchClearValuesResponse(); |
707 buildCounterBatchClearValuesResponse++; | 707 buildCounterBatchClearValuesResponse++; |
708 if (buildCounterBatchClearValuesResponse < 3) { | 708 if (buildCounterBatchClearValuesResponse < 3) { |
709 o.clearedRanges = buildUnnamed365(); | 709 o.clearedRanges = buildUnnamed386(); |
710 o.spreadsheetId = "foo"; | 710 o.spreadsheetId = "foo"; |
711 } | 711 } |
712 buildCounterBatchClearValuesResponse--; | 712 buildCounterBatchClearValuesResponse--; |
713 return o; | 713 return o; |
714 } | 714 } |
715 | 715 |
716 checkBatchClearValuesResponse(api.BatchClearValuesResponse o) { | 716 checkBatchClearValuesResponse(api.BatchClearValuesResponse o) { |
717 buildCounterBatchClearValuesResponse++; | 717 buildCounterBatchClearValuesResponse++; |
718 if (buildCounterBatchClearValuesResponse < 3) { | 718 if (buildCounterBatchClearValuesResponse < 3) { |
719 checkUnnamed365(o.clearedRanges); | 719 checkUnnamed386(o.clearedRanges); |
720 unittest.expect(o.spreadsheetId, unittest.equals('foo')); | 720 unittest.expect(o.spreadsheetId, unittest.equals('foo')); |
721 } | 721 } |
722 buildCounterBatchClearValuesResponse--; | 722 buildCounterBatchClearValuesResponse--; |
723 } | 723 } |
724 | 724 |
725 buildUnnamed366() { | 725 buildUnnamed387() { |
726 var o = new core.List<api.ValueRange>(); | 726 var o = new core.List<api.ValueRange>(); |
727 o.add(buildValueRange()); | 727 o.add(buildValueRange()); |
728 o.add(buildValueRange()); | 728 o.add(buildValueRange()); |
729 return o; | 729 return o; |
730 } | 730 } |
731 | 731 |
732 checkUnnamed366(core.List<api.ValueRange> o) { | 732 checkUnnamed387(core.List<api.ValueRange> o) { |
733 unittest.expect(o, unittest.hasLength(2)); | 733 unittest.expect(o, unittest.hasLength(2)); |
734 checkValueRange(o[0]); | 734 checkValueRange(o[0]); |
735 checkValueRange(o[1]); | 735 checkValueRange(o[1]); |
736 } | 736 } |
737 | 737 |
738 core.int buildCounterBatchGetValuesResponse = 0; | 738 core.int buildCounterBatchGetValuesResponse = 0; |
739 buildBatchGetValuesResponse() { | 739 buildBatchGetValuesResponse() { |
740 var o = new api.BatchGetValuesResponse(); | 740 var o = new api.BatchGetValuesResponse(); |
741 buildCounterBatchGetValuesResponse++; | 741 buildCounterBatchGetValuesResponse++; |
742 if (buildCounterBatchGetValuesResponse < 3) { | 742 if (buildCounterBatchGetValuesResponse < 3) { |
743 o.spreadsheetId = "foo"; | 743 o.spreadsheetId = "foo"; |
744 o.valueRanges = buildUnnamed366(); | 744 o.valueRanges = buildUnnamed387(); |
745 } | 745 } |
746 buildCounterBatchGetValuesResponse--; | 746 buildCounterBatchGetValuesResponse--; |
747 return o; | 747 return o; |
748 } | 748 } |
749 | 749 |
750 checkBatchGetValuesResponse(api.BatchGetValuesResponse o) { | 750 checkBatchGetValuesResponse(api.BatchGetValuesResponse o) { |
751 buildCounterBatchGetValuesResponse++; | 751 buildCounterBatchGetValuesResponse++; |
752 if (buildCounterBatchGetValuesResponse < 3) { | 752 if (buildCounterBatchGetValuesResponse < 3) { |
753 unittest.expect(o.spreadsheetId, unittest.equals('foo')); | 753 unittest.expect(o.spreadsheetId, unittest.equals('foo')); |
754 checkUnnamed366(o.valueRanges); | 754 checkUnnamed387(o.valueRanges); |
755 } | 755 } |
756 buildCounterBatchGetValuesResponse--; | 756 buildCounterBatchGetValuesResponse--; |
757 } | 757 } |
758 | 758 |
759 buildUnnamed367() { | 759 buildUnnamed388() { |
760 var o = new core.List<api.Request>(); | 760 var o = new core.List<api.Request>(); |
761 o.add(buildRequest()); | 761 o.add(buildRequest()); |
762 o.add(buildRequest()); | 762 o.add(buildRequest()); |
763 return o; | 763 return o; |
764 } | 764 } |
765 | 765 |
766 checkUnnamed367(core.List<api.Request> o) { | 766 checkUnnamed388(core.List<api.Request> o) { |
767 unittest.expect(o, unittest.hasLength(2)); | 767 unittest.expect(o, unittest.hasLength(2)); |
768 checkRequest(o[0]); | 768 checkRequest(o[0]); |
769 checkRequest(o[1]); | 769 checkRequest(o[1]); |
770 } | 770 } |
771 | 771 |
772 buildUnnamed368() { | 772 buildUnnamed389() { |
773 var o = new core.List<core.String>(); | 773 var o = new core.List<core.String>(); |
774 o.add("foo"); | 774 o.add("foo"); |
775 o.add("foo"); | 775 o.add("foo"); |
776 return o; | 776 return o; |
777 } | 777 } |
778 | 778 |
779 checkUnnamed368(core.List<core.String> o) { | 779 checkUnnamed389(core.List<core.String> o) { |
780 unittest.expect(o, unittest.hasLength(2)); | 780 unittest.expect(o, unittest.hasLength(2)); |
781 unittest.expect(o[0], unittest.equals('foo')); | 781 unittest.expect(o[0], unittest.equals('foo')); |
782 unittest.expect(o[1], unittest.equals('foo')); | 782 unittest.expect(o[1], unittest.equals('foo')); |
783 } | 783 } |
784 | 784 |
785 core.int buildCounterBatchUpdateSpreadsheetRequest = 0; | 785 core.int buildCounterBatchUpdateSpreadsheetRequest = 0; |
786 buildBatchUpdateSpreadsheetRequest() { | 786 buildBatchUpdateSpreadsheetRequest() { |
787 var o = new api.BatchUpdateSpreadsheetRequest(); | 787 var o = new api.BatchUpdateSpreadsheetRequest(); |
788 buildCounterBatchUpdateSpreadsheetRequest++; | 788 buildCounterBatchUpdateSpreadsheetRequest++; |
789 if (buildCounterBatchUpdateSpreadsheetRequest < 3) { | 789 if (buildCounterBatchUpdateSpreadsheetRequest < 3) { |
790 o.includeSpreadsheetInResponse = true; | 790 o.includeSpreadsheetInResponse = true; |
791 o.requests = buildUnnamed367(); | 791 o.requests = buildUnnamed388(); |
792 o.responseIncludeGridData = true; | 792 o.responseIncludeGridData = true; |
793 o.responseRanges = buildUnnamed368(); | 793 o.responseRanges = buildUnnamed389(); |
794 } | 794 } |
795 buildCounterBatchUpdateSpreadsheetRequest--; | 795 buildCounterBatchUpdateSpreadsheetRequest--; |
796 return o; | 796 return o; |
797 } | 797 } |
798 | 798 |
799 checkBatchUpdateSpreadsheetRequest(api.BatchUpdateSpreadsheetRequest o) { | 799 checkBatchUpdateSpreadsheetRequest(api.BatchUpdateSpreadsheetRequest o) { |
800 buildCounterBatchUpdateSpreadsheetRequest++; | 800 buildCounterBatchUpdateSpreadsheetRequest++; |
801 if (buildCounterBatchUpdateSpreadsheetRequest < 3) { | 801 if (buildCounterBatchUpdateSpreadsheetRequest < 3) { |
802 unittest.expect(o.includeSpreadsheetInResponse, unittest.isTrue); | 802 unittest.expect(o.includeSpreadsheetInResponse, unittest.isTrue); |
803 checkUnnamed367(o.requests); | 803 checkUnnamed388(o.requests); |
804 unittest.expect(o.responseIncludeGridData, unittest.isTrue); | 804 unittest.expect(o.responseIncludeGridData, unittest.isTrue); |
805 checkUnnamed368(o.responseRanges); | 805 checkUnnamed389(o.responseRanges); |
806 } | 806 } |
807 buildCounterBatchUpdateSpreadsheetRequest--; | 807 buildCounterBatchUpdateSpreadsheetRequest--; |
808 } | 808 } |
809 | 809 |
810 buildUnnamed369() { | 810 buildUnnamed390() { |
811 var o = new core.List<api.Response>(); | 811 var o = new core.List<api.Response>(); |
812 o.add(buildResponse()); | 812 o.add(buildResponse()); |
813 o.add(buildResponse()); | 813 o.add(buildResponse()); |
814 return o; | 814 return o; |
815 } | 815 } |
816 | 816 |
817 checkUnnamed369(core.List<api.Response> o) { | 817 checkUnnamed390(core.List<api.Response> o) { |
818 unittest.expect(o, unittest.hasLength(2)); | 818 unittest.expect(o, unittest.hasLength(2)); |
819 checkResponse(o[0]); | 819 checkResponse(o[0]); |
820 checkResponse(o[1]); | 820 checkResponse(o[1]); |
821 } | 821 } |
822 | 822 |
823 core.int buildCounterBatchUpdateSpreadsheetResponse = 0; | 823 core.int buildCounterBatchUpdateSpreadsheetResponse = 0; |
824 buildBatchUpdateSpreadsheetResponse() { | 824 buildBatchUpdateSpreadsheetResponse() { |
825 var o = new api.BatchUpdateSpreadsheetResponse(); | 825 var o = new api.BatchUpdateSpreadsheetResponse(); |
826 buildCounterBatchUpdateSpreadsheetResponse++; | 826 buildCounterBatchUpdateSpreadsheetResponse++; |
827 if (buildCounterBatchUpdateSpreadsheetResponse < 3) { | 827 if (buildCounterBatchUpdateSpreadsheetResponse < 3) { |
828 o.replies = buildUnnamed369(); | 828 o.replies = buildUnnamed390(); |
829 o.spreadsheetId = "foo"; | 829 o.spreadsheetId = "foo"; |
830 o.updatedSpreadsheet = buildSpreadsheet(); | 830 o.updatedSpreadsheet = buildSpreadsheet(); |
831 } | 831 } |
832 buildCounterBatchUpdateSpreadsheetResponse--; | 832 buildCounterBatchUpdateSpreadsheetResponse--; |
833 return o; | 833 return o; |
834 } | 834 } |
835 | 835 |
836 checkBatchUpdateSpreadsheetResponse(api.BatchUpdateSpreadsheetResponse o) { | 836 checkBatchUpdateSpreadsheetResponse(api.BatchUpdateSpreadsheetResponse o) { |
837 buildCounterBatchUpdateSpreadsheetResponse++; | 837 buildCounterBatchUpdateSpreadsheetResponse++; |
838 if (buildCounterBatchUpdateSpreadsheetResponse < 3) { | 838 if (buildCounterBatchUpdateSpreadsheetResponse < 3) { |
839 checkUnnamed369(o.replies); | 839 checkUnnamed390(o.replies); |
840 unittest.expect(o.spreadsheetId, unittest.equals('foo')); | 840 unittest.expect(o.spreadsheetId, unittest.equals('foo')); |
841 checkSpreadsheet(o.updatedSpreadsheet); | 841 checkSpreadsheet(o.updatedSpreadsheet); |
842 } | 842 } |
843 buildCounterBatchUpdateSpreadsheetResponse--; | 843 buildCounterBatchUpdateSpreadsheetResponse--; |
844 } | 844 } |
845 | 845 |
846 buildUnnamed370() { | 846 buildUnnamed391() { |
847 var o = new core.List<api.ValueRange>(); | 847 var o = new core.List<api.ValueRange>(); |
848 o.add(buildValueRange()); | 848 o.add(buildValueRange()); |
849 o.add(buildValueRange()); | 849 o.add(buildValueRange()); |
850 return o; | 850 return o; |
851 } | 851 } |
852 | 852 |
853 checkUnnamed370(core.List<api.ValueRange> o) { | 853 checkUnnamed391(core.List<api.ValueRange> o) { |
854 unittest.expect(o, unittest.hasLength(2)); | 854 unittest.expect(o, unittest.hasLength(2)); |
855 checkValueRange(o[0]); | 855 checkValueRange(o[0]); |
856 checkValueRange(o[1]); | 856 checkValueRange(o[1]); |
857 } | 857 } |
858 | 858 |
859 core.int buildCounterBatchUpdateValuesRequest = 0; | 859 core.int buildCounterBatchUpdateValuesRequest = 0; |
860 buildBatchUpdateValuesRequest() { | 860 buildBatchUpdateValuesRequest() { |
861 var o = new api.BatchUpdateValuesRequest(); | 861 var o = new api.BatchUpdateValuesRequest(); |
862 buildCounterBatchUpdateValuesRequest++; | 862 buildCounterBatchUpdateValuesRequest++; |
863 if (buildCounterBatchUpdateValuesRequest < 3) { | 863 if (buildCounterBatchUpdateValuesRequest < 3) { |
864 o.data = buildUnnamed370(); | 864 o.data = buildUnnamed391(); |
865 o.includeValuesInResponse = true; | 865 o.includeValuesInResponse = true; |
866 o.responseDateTimeRenderOption = "foo"; | 866 o.responseDateTimeRenderOption = "foo"; |
867 o.responseValueRenderOption = "foo"; | 867 o.responseValueRenderOption = "foo"; |
868 o.valueInputOption = "foo"; | 868 o.valueInputOption = "foo"; |
869 } | 869 } |
870 buildCounterBatchUpdateValuesRequest--; | 870 buildCounterBatchUpdateValuesRequest--; |
871 return o; | 871 return o; |
872 } | 872 } |
873 | 873 |
874 checkBatchUpdateValuesRequest(api.BatchUpdateValuesRequest o) { | 874 checkBatchUpdateValuesRequest(api.BatchUpdateValuesRequest o) { |
875 buildCounterBatchUpdateValuesRequest++; | 875 buildCounterBatchUpdateValuesRequest++; |
876 if (buildCounterBatchUpdateValuesRequest < 3) { | 876 if (buildCounterBatchUpdateValuesRequest < 3) { |
877 checkUnnamed370(o.data); | 877 checkUnnamed391(o.data); |
878 unittest.expect(o.includeValuesInResponse, unittest.isTrue); | 878 unittest.expect(o.includeValuesInResponse, unittest.isTrue); |
879 unittest.expect(o.responseDateTimeRenderOption, unittest.equals('foo')); | 879 unittest.expect(o.responseDateTimeRenderOption, unittest.equals('foo')); |
880 unittest.expect(o.responseValueRenderOption, unittest.equals('foo')); | 880 unittest.expect(o.responseValueRenderOption, unittest.equals('foo')); |
881 unittest.expect(o.valueInputOption, unittest.equals('foo')); | 881 unittest.expect(o.valueInputOption, unittest.equals('foo')); |
882 } | 882 } |
883 buildCounterBatchUpdateValuesRequest--; | 883 buildCounterBatchUpdateValuesRequest--; |
884 } | 884 } |
885 | 885 |
886 buildUnnamed371() { | 886 buildUnnamed392() { |
887 var o = new core.List<api.UpdateValuesResponse>(); | 887 var o = new core.List<api.UpdateValuesResponse>(); |
888 o.add(buildUpdateValuesResponse()); | 888 o.add(buildUpdateValuesResponse()); |
889 o.add(buildUpdateValuesResponse()); | 889 o.add(buildUpdateValuesResponse()); |
890 return o; | 890 return o; |
891 } | 891 } |
892 | 892 |
893 checkUnnamed371(core.List<api.UpdateValuesResponse> o) { | 893 checkUnnamed392(core.List<api.UpdateValuesResponse> o) { |
894 unittest.expect(o, unittest.hasLength(2)); | 894 unittest.expect(o, unittest.hasLength(2)); |
895 checkUpdateValuesResponse(o[0]); | 895 checkUpdateValuesResponse(o[0]); |
896 checkUpdateValuesResponse(o[1]); | 896 checkUpdateValuesResponse(o[1]); |
897 } | 897 } |
898 | 898 |
899 core.int buildCounterBatchUpdateValuesResponse = 0; | 899 core.int buildCounterBatchUpdateValuesResponse = 0; |
900 buildBatchUpdateValuesResponse() { | 900 buildBatchUpdateValuesResponse() { |
901 var o = new api.BatchUpdateValuesResponse(); | 901 var o = new api.BatchUpdateValuesResponse(); |
902 buildCounterBatchUpdateValuesResponse++; | 902 buildCounterBatchUpdateValuesResponse++; |
903 if (buildCounterBatchUpdateValuesResponse < 3) { | 903 if (buildCounterBatchUpdateValuesResponse < 3) { |
904 o.responses = buildUnnamed371(); | 904 o.responses = buildUnnamed392(); |
905 o.spreadsheetId = "foo"; | 905 o.spreadsheetId = "foo"; |
906 o.totalUpdatedCells = 42; | 906 o.totalUpdatedCells = 42; |
907 o.totalUpdatedColumns = 42; | 907 o.totalUpdatedColumns = 42; |
908 o.totalUpdatedRows = 42; | 908 o.totalUpdatedRows = 42; |
909 o.totalUpdatedSheets = 42; | 909 o.totalUpdatedSheets = 42; |
910 } | 910 } |
911 buildCounterBatchUpdateValuesResponse--; | 911 buildCounterBatchUpdateValuesResponse--; |
912 return o; | 912 return o; |
913 } | 913 } |
914 | 914 |
915 checkBatchUpdateValuesResponse(api.BatchUpdateValuesResponse o) { | 915 checkBatchUpdateValuesResponse(api.BatchUpdateValuesResponse o) { |
916 buildCounterBatchUpdateValuesResponse++; | 916 buildCounterBatchUpdateValuesResponse++; |
917 if (buildCounterBatchUpdateValuesResponse < 3) { | 917 if (buildCounterBatchUpdateValuesResponse < 3) { |
918 checkUnnamed371(o.responses); | 918 checkUnnamed392(o.responses); |
919 unittest.expect(o.spreadsheetId, unittest.equals('foo')); | 919 unittest.expect(o.spreadsheetId, unittest.equals('foo')); |
920 unittest.expect(o.totalUpdatedCells, unittest.equals(42)); | 920 unittest.expect(o.totalUpdatedCells, unittest.equals(42)); |
921 unittest.expect(o.totalUpdatedColumns, unittest.equals(42)); | 921 unittest.expect(o.totalUpdatedColumns, unittest.equals(42)); |
922 unittest.expect(o.totalUpdatedRows, unittest.equals(42)); | 922 unittest.expect(o.totalUpdatedRows, unittest.equals(42)); |
923 unittest.expect(o.totalUpdatedSheets, unittest.equals(42)); | 923 unittest.expect(o.totalUpdatedSheets, unittest.equals(42)); |
924 } | 924 } |
925 buildCounterBatchUpdateValuesResponse--; | 925 buildCounterBatchUpdateValuesResponse--; |
926 } | 926 } |
927 | 927 |
928 buildUnnamed372() { | 928 buildUnnamed393() { |
929 var o = new core.List<api.ConditionValue>(); | 929 var o = new core.List<api.ConditionValue>(); |
930 o.add(buildConditionValue()); | 930 o.add(buildConditionValue()); |
931 o.add(buildConditionValue()); | 931 o.add(buildConditionValue()); |
932 return o; | 932 return o; |
933 } | 933 } |
934 | 934 |
935 checkUnnamed372(core.List<api.ConditionValue> o) { | 935 checkUnnamed393(core.List<api.ConditionValue> o) { |
936 unittest.expect(o, unittest.hasLength(2)); | 936 unittest.expect(o, unittest.hasLength(2)); |
937 checkConditionValue(o[0]); | 937 checkConditionValue(o[0]); |
938 checkConditionValue(o[1]); | 938 checkConditionValue(o[1]); |
939 } | 939 } |
940 | 940 |
941 core.int buildCounterBooleanCondition = 0; | 941 core.int buildCounterBooleanCondition = 0; |
942 buildBooleanCondition() { | 942 buildBooleanCondition() { |
943 var o = new api.BooleanCondition(); | 943 var o = new api.BooleanCondition(); |
944 buildCounterBooleanCondition++; | 944 buildCounterBooleanCondition++; |
945 if (buildCounterBooleanCondition < 3) { | 945 if (buildCounterBooleanCondition < 3) { |
946 o.type = "foo"; | 946 o.type = "foo"; |
947 o.values = buildUnnamed372(); | 947 o.values = buildUnnamed393(); |
948 } | 948 } |
949 buildCounterBooleanCondition--; | 949 buildCounterBooleanCondition--; |
950 return o; | 950 return o; |
951 } | 951 } |
952 | 952 |
953 checkBooleanCondition(api.BooleanCondition o) { | 953 checkBooleanCondition(api.BooleanCondition o) { |
954 buildCounterBooleanCondition++; | 954 buildCounterBooleanCondition++; |
955 if (buildCounterBooleanCondition < 3) { | 955 if (buildCounterBooleanCondition < 3) { |
956 unittest.expect(o.type, unittest.equals('foo')); | 956 unittest.expect(o.type, unittest.equals('foo')); |
957 checkUnnamed372(o.values); | 957 checkUnnamed393(o.values); |
958 } | 958 } |
959 buildCounterBooleanCondition--; | 959 buildCounterBooleanCondition--; |
960 } | 960 } |
961 | 961 |
962 core.int buildCounterBooleanRule = 0; | 962 core.int buildCounterBooleanRule = 0; |
963 buildBooleanRule() { | 963 buildBooleanRule() { |
964 var o = new api.BooleanRule(); | 964 var o = new api.BooleanRule(); |
965 buildCounterBooleanRule++; | 965 buildCounterBooleanRule++; |
966 if (buildCounterBooleanRule < 3) { | 966 if (buildCounterBooleanRule < 3) { |
967 o.condition = buildBooleanCondition(); | 967 o.condition = buildBooleanCondition(); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1021 buildCounterBorders++; | 1021 buildCounterBorders++; |
1022 if (buildCounterBorders < 3) { | 1022 if (buildCounterBorders < 3) { |
1023 checkBorder(o.bottom); | 1023 checkBorder(o.bottom); |
1024 checkBorder(o.left); | 1024 checkBorder(o.left); |
1025 checkBorder(o.right); | 1025 checkBorder(o.right); |
1026 checkBorder(o.top); | 1026 checkBorder(o.top); |
1027 } | 1027 } |
1028 buildCounterBorders--; | 1028 buildCounterBorders--; |
1029 } | 1029 } |
1030 | 1030 |
1031 buildUnnamed373() { | 1031 buildUnnamed394() { |
1032 var o = new core.List<api.TextFormatRun>(); | 1032 var o = new core.List<api.TextFormatRun>(); |
1033 o.add(buildTextFormatRun()); | 1033 o.add(buildTextFormatRun()); |
1034 o.add(buildTextFormatRun()); | 1034 o.add(buildTextFormatRun()); |
1035 return o; | 1035 return o; |
1036 } | 1036 } |
1037 | 1037 |
1038 checkUnnamed373(core.List<api.TextFormatRun> o) { | 1038 checkUnnamed394(core.List<api.TextFormatRun> o) { |
1039 unittest.expect(o, unittest.hasLength(2)); | 1039 unittest.expect(o, unittest.hasLength(2)); |
1040 checkTextFormatRun(o[0]); | 1040 checkTextFormatRun(o[0]); |
1041 checkTextFormatRun(o[1]); | 1041 checkTextFormatRun(o[1]); |
1042 } | 1042 } |
1043 | 1043 |
1044 core.int buildCounterCellData = 0; | 1044 core.int buildCounterCellData = 0; |
1045 buildCellData() { | 1045 buildCellData() { |
1046 var o = new api.CellData(); | 1046 var o = new api.CellData(); |
1047 buildCounterCellData++; | 1047 buildCounterCellData++; |
1048 if (buildCounterCellData < 3) { | 1048 if (buildCounterCellData < 3) { |
1049 o.dataValidation = buildDataValidationRule(); | 1049 o.dataValidation = buildDataValidationRule(); |
1050 o.effectiveFormat = buildCellFormat(); | 1050 o.effectiveFormat = buildCellFormat(); |
1051 o.effectiveValue = buildExtendedValue(); | 1051 o.effectiveValue = buildExtendedValue(); |
1052 o.formattedValue = "foo"; | 1052 o.formattedValue = "foo"; |
1053 o.hyperlink = "foo"; | 1053 o.hyperlink = "foo"; |
1054 o.note = "foo"; | 1054 o.note = "foo"; |
1055 o.pivotTable = buildPivotTable(); | 1055 o.pivotTable = buildPivotTable(); |
1056 o.textFormatRuns = buildUnnamed373(); | 1056 o.textFormatRuns = buildUnnamed394(); |
1057 o.userEnteredFormat = buildCellFormat(); | 1057 o.userEnteredFormat = buildCellFormat(); |
1058 o.userEnteredValue = buildExtendedValue(); | 1058 o.userEnteredValue = buildExtendedValue(); |
1059 } | 1059 } |
1060 buildCounterCellData--; | 1060 buildCounterCellData--; |
1061 return o; | 1061 return o; |
1062 } | 1062 } |
1063 | 1063 |
1064 checkCellData(api.CellData o) { | 1064 checkCellData(api.CellData o) { |
1065 buildCounterCellData++; | 1065 buildCounterCellData++; |
1066 if (buildCounterCellData < 3) { | 1066 if (buildCounterCellData < 3) { |
1067 checkDataValidationRule(o.dataValidation); | 1067 checkDataValidationRule(o.dataValidation); |
1068 checkCellFormat(o.effectiveFormat); | 1068 checkCellFormat(o.effectiveFormat); |
1069 checkExtendedValue(o.effectiveValue); | 1069 checkExtendedValue(o.effectiveValue); |
1070 unittest.expect(o.formattedValue, unittest.equals('foo')); | 1070 unittest.expect(o.formattedValue, unittest.equals('foo')); |
1071 unittest.expect(o.hyperlink, unittest.equals('foo')); | 1071 unittest.expect(o.hyperlink, unittest.equals('foo')); |
1072 unittest.expect(o.note, unittest.equals('foo')); | 1072 unittest.expect(o.note, unittest.equals('foo')); |
1073 checkPivotTable(o.pivotTable); | 1073 checkPivotTable(o.pivotTable); |
1074 checkUnnamed373(o.textFormatRuns); | 1074 checkUnnamed394(o.textFormatRuns); |
1075 checkCellFormat(o.userEnteredFormat); | 1075 checkCellFormat(o.userEnteredFormat); |
1076 checkExtendedValue(o.userEnteredValue); | 1076 checkExtendedValue(o.userEnteredValue); |
1077 } | 1077 } |
1078 buildCounterCellData--; | 1078 buildCounterCellData--; |
1079 } | 1079 } |
1080 | 1080 |
1081 core.int buildCounterCellFormat = 0; | 1081 core.int buildCounterCellFormat = 0; |
1082 buildCellFormat() { | 1082 buildCellFormat() { |
1083 var o = new api.CellFormat(); | 1083 var o = new api.CellFormat(); |
1084 buildCounterCellFormat++; | 1084 buildCounterCellFormat++; |
1085 if (buildCounterCellFormat < 3) { | 1085 if (buildCounterCellFormat < 3) { |
1086 o.backgroundColor = buildColor(); | 1086 o.backgroundColor = buildColor(); |
1087 o.borders = buildBorders(); | 1087 o.borders = buildBorders(); |
1088 o.horizontalAlignment = "foo"; | 1088 o.horizontalAlignment = "foo"; |
1089 o.hyperlinkDisplayType = "foo"; | 1089 o.hyperlinkDisplayType = "foo"; |
1090 o.numberFormat = buildNumberFormat(); | 1090 o.numberFormat = buildNumberFormat(); |
1091 o.padding = buildPadding(); | 1091 o.padding = buildPadding(); |
1092 o.textDirection = "foo"; | 1092 o.textDirection = "foo"; |
1093 o.textFormat = buildTextFormat(); | 1093 o.textFormat = buildTextFormat(); |
| 1094 o.textRotation = buildTextRotation(); |
1094 o.verticalAlignment = "foo"; | 1095 o.verticalAlignment = "foo"; |
1095 o.wrapStrategy = "foo"; | 1096 o.wrapStrategy = "foo"; |
1096 } | 1097 } |
1097 buildCounterCellFormat--; | 1098 buildCounterCellFormat--; |
1098 return o; | 1099 return o; |
1099 } | 1100 } |
1100 | 1101 |
1101 checkCellFormat(api.CellFormat o) { | 1102 checkCellFormat(api.CellFormat o) { |
1102 buildCounterCellFormat++; | 1103 buildCounterCellFormat++; |
1103 if (buildCounterCellFormat < 3) { | 1104 if (buildCounterCellFormat < 3) { |
1104 checkColor(o.backgroundColor); | 1105 checkColor(o.backgroundColor); |
1105 checkBorders(o.borders); | 1106 checkBorders(o.borders); |
1106 unittest.expect(o.horizontalAlignment, unittest.equals('foo')); | 1107 unittest.expect(o.horizontalAlignment, unittest.equals('foo')); |
1107 unittest.expect(o.hyperlinkDisplayType, unittest.equals('foo')); | 1108 unittest.expect(o.hyperlinkDisplayType, unittest.equals('foo')); |
1108 checkNumberFormat(o.numberFormat); | 1109 checkNumberFormat(o.numberFormat); |
1109 checkPadding(o.padding); | 1110 checkPadding(o.padding); |
1110 unittest.expect(o.textDirection, unittest.equals('foo')); | 1111 unittest.expect(o.textDirection, unittest.equals('foo')); |
1111 checkTextFormat(o.textFormat); | 1112 checkTextFormat(o.textFormat); |
| 1113 checkTextRotation(o.textRotation); |
1112 unittest.expect(o.verticalAlignment, unittest.equals('foo')); | 1114 unittest.expect(o.verticalAlignment, unittest.equals('foo')); |
1113 unittest.expect(o.wrapStrategy, unittest.equals('foo')); | 1115 unittest.expect(o.wrapStrategy, unittest.equals('foo')); |
1114 } | 1116 } |
1115 buildCounterCellFormat--; | 1117 buildCounterCellFormat--; |
1116 } | 1118 } |
1117 | 1119 |
1118 core.int buildCounterChartData = 0; | 1120 core.int buildCounterChartData = 0; |
1119 buildChartData() { | 1121 buildChartData() { |
1120 var o = new api.ChartData(); | 1122 var o = new api.ChartData(); |
1121 buildCounterChartData++; | 1123 buildCounterChartData++; |
1122 if (buildCounterChartData < 3) { | 1124 if (buildCounterChartData < 3) { |
1123 o.sourceRange = buildChartSourceRange(); | 1125 o.sourceRange = buildChartSourceRange(); |
1124 } | 1126 } |
1125 buildCounterChartData--; | 1127 buildCounterChartData--; |
1126 return o; | 1128 return o; |
1127 } | 1129 } |
1128 | 1130 |
1129 checkChartData(api.ChartData o) { | 1131 checkChartData(api.ChartData o) { |
1130 buildCounterChartData++; | 1132 buildCounterChartData++; |
1131 if (buildCounterChartData < 3) { | 1133 if (buildCounterChartData < 3) { |
1132 checkChartSourceRange(o.sourceRange); | 1134 checkChartSourceRange(o.sourceRange); |
1133 } | 1135 } |
1134 buildCounterChartData--; | 1136 buildCounterChartData--; |
1135 } | 1137 } |
1136 | 1138 |
1137 buildUnnamed374() { | 1139 buildUnnamed395() { |
1138 var o = new core.List<api.GridRange>(); | 1140 var o = new core.List<api.GridRange>(); |
1139 o.add(buildGridRange()); | 1141 o.add(buildGridRange()); |
1140 o.add(buildGridRange()); | 1142 o.add(buildGridRange()); |
1141 return o; | 1143 return o; |
1142 } | 1144 } |
1143 | 1145 |
1144 checkUnnamed374(core.List<api.GridRange> o) { | 1146 checkUnnamed395(core.List<api.GridRange> o) { |
1145 unittest.expect(o, unittest.hasLength(2)); | 1147 unittest.expect(o, unittest.hasLength(2)); |
1146 checkGridRange(o[0]); | 1148 checkGridRange(o[0]); |
1147 checkGridRange(o[1]); | 1149 checkGridRange(o[1]); |
1148 } | 1150 } |
1149 | 1151 |
1150 core.int buildCounterChartSourceRange = 0; | 1152 core.int buildCounterChartSourceRange = 0; |
1151 buildChartSourceRange() { | 1153 buildChartSourceRange() { |
1152 var o = new api.ChartSourceRange(); | 1154 var o = new api.ChartSourceRange(); |
1153 buildCounterChartSourceRange++; | 1155 buildCounterChartSourceRange++; |
1154 if (buildCounterChartSourceRange < 3) { | 1156 if (buildCounterChartSourceRange < 3) { |
1155 o.sources = buildUnnamed374(); | 1157 o.sources = buildUnnamed395(); |
1156 } | 1158 } |
1157 buildCounterChartSourceRange--; | 1159 buildCounterChartSourceRange--; |
1158 return o; | 1160 return o; |
1159 } | 1161 } |
1160 | 1162 |
1161 checkChartSourceRange(api.ChartSourceRange o) { | 1163 checkChartSourceRange(api.ChartSourceRange o) { |
1162 buildCounterChartSourceRange++; | 1164 buildCounterChartSourceRange++; |
1163 if (buildCounterChartSourceRange < 3) { | 1165 if (buildCounterChartSourceRange < 3) { |
1164 checkUnnamed374(o.sources); | 1166 checkUnnamed395(o.sources); |
1165 } | 1167 } |
1166 buildCounterChartSourceRange--; | 1168 buildCounterChartSourceRange--; |
1167 } | 1169 } |
1168 | 1170 |
1169 core.int buildCounterChartSpec = 0; | 1171 core.int buildCounterChartSpec = 0; |
1170 buildChartSpec() { | 1172 buildChartSpec() { |
1171 var o = new api.ChartSpec(); | 1173 var o = new api.ChartSpec(); |
1172 buildCounterChartSpec++; | 1174 buildCounterChartSpec++; |
1173 if (buildCounterChartSpec < 3) { | 1175 if (buildCounterChartSpec < 3) { |
1174 o.basicChart = buildBasicChartSpec(); | 1176 o.basicChart = buildBasicChartSpec(); |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1287 | 1289 |
1288 checkConditionValue(api.ConditionValue o) { | 1290 checkConditionValue(api.ConditionValue o) { |
1289 buildCounterConditionValue++; | 1291 buildCounterConditionValue++; |
1290 if (buildCounterConditionValue < 3) { | 1292 if (buildCounterConditionValue < 3) { |
1291 unittest.expect(o.relativeDate, unittest.equals('foo')); | 1293 unittest.expect(o.relativeDate, unittest.equals('foo')); |
1292 unittest.expect(o.userEnteredValue, unittest.equals('foo')); | 1294 unittest.expect(o.userEnteredValue, unittest.equals('foo')); |
1293 } | 1295 } |
1294 buildCounterConditionValue--; | 1296 buildCounterConditionValue--; |
1295 } | 1297 } |
1296 | 1298 |
1297 buildUnnamed375() { | 1299 buildUnnamed396() { |
1298 var o = new core.List<api.GridRange>(); | 1300 var o = new core.List<api.GridRange>(); |
1299 o.add(buildGridRange()); | 1301 o.add(buildGridRange()); |
1300 o.add(buildGridRange()); | 1302 o.add(buildGridRange()); |
1301 return o; | 1303 return o; |
1302 } | 1304 } |
1303 | 1305 |
1304 checkUnnamed375(core.List<api.GridRange> o) { | 1306 checkUnnamed396(core.List<api.GridRange> o) { |
1305 unittest.expect(o, unittest.hasLength(2)); | 1307 unittest.expect(o, unittest.hasLength(2)); |
1306 checkGridRange(o[0]); | 1308 checkGridRange(o[0]); |
1307 checkGridRange(o[1]); | 1309 checkGridRange(o[1]); |
1308 } | 1310 } |
1309 | 1311 |
1310 core.int buildCounterConditionalFormatRule = 0; | 1312 core.int buildCounterConditionalFormatRule = 0; |
1311 buildConditionalFormatRule() { | 1313 buildConditionalFormatRule() { |
1312 var o = new api.ConditionalFormatRule(); | 1314 var o = new api.ConditionalFormatRule(); |
1313 buildCounterConditionalFormatRule++; | 1315 buildCounterConditionalFormatRule++; |
1314 if (buildCounterConditionalFormatRule < 3) { | 1316 if (buildCounterConditionalFormatRule < 3) { |
1315 o.booleanRule = buildBooleanRule(); | 1317 o.booleanRule = buildBooleanRule(); |
1316 o.gradientRule = buildGradientRule(); | 1318 o.gradientRule = buildGradientRule(); |
1317 o.ranges = buildUnnamed375(); | 1319 o.ranges = buildUnnamed396(); |
1318 } | 1320 } |
1319 buildCounterConditionalFormatRule--; | 1321 buildCounterConditionalFormatRule--; |
1320 return o; | 1322 return o; |
1321 } | 1323 } |
1322 | 1324 |
1323 checkConditionalFormatRule(api.ConditionalFormatRule o) { | 1325 checkConditionalFormatRule(api.ConditionalFormatRule o) { |
1324 buildCounterConditionalFormatRule++; | 1326 buildCounterConditionalFormatRule++; |
1325 if (buildCounterConditionalFormatRule < 3) { | 1327 if (buildCounterConditionalFormatRule < 3) { |
1326 checkBooleanRule(o.booleanRule); | 1328 checkBooleanRule(o.booleanRule); |
1327 checkGradientRule(o.gradientRule); | 1329 checkGradientRule(o.gradientRule); |
1328 checkUnnamed375(o.ranges); | 1330 checkUnnamed396(o.ranges); |
1329 } | 1331 } |
1330 buildCounterConditionalFormatRule--; | 1332 buildCounterConditionalFormatRule--; |
1331 } | 1333 } |
1332 | 1334 |
1333 core.int buildCounterCopyPasteRequest = 0; | 1335 core.int buildCounterCopyPasteRequest = 0; |
1334 buildCopyPasteRequest() { | 1336 buildCopyPasteRequest() { |
1335 var o = new api.CopyPasteRequest(); | 1337 var o = new api.CopyPasteRequest(); |
1336 buildCounterCopyPasteRequest++; | 1338 buildCounterCopyPasteRequest++; |
1337 if (buildCounterCopyPasteRequest < 3) { | 1339 if (buildCounterCopyPasteRequest < 3) { |
1338 o.destination = buildGridRange(); | 1340 o.destination = buildGridRange(); |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1739 } | 1741 } |
1740 | 1742 |
1741 checkDuplicateSheetResponse(api.DuplicateSheetResponse o) { | 1743 checkDuplicateSheetResponse(api.DuplicateSheetResponse o) { |
1742 buildCounterDuplicateSheetResponse++; | 1744 buildCounterDuplicateSheetResponse++; |
1743 if (buildCounterDuplicateSheetResponse < 3) { | 1745 if (buildCounterDuplicateSheetResponse < 3) { |
1744 checkSheetProperties(o.properties); | 1746 checkSheetProperties(o.properties); |
1745 } | 1747 } |
1746 buildCounterDuplicateSheetResponse--; | 1748 buildCounterDuplicateSheetResponse--; |
1747 } | 1749 } |
1748 | 1750 |
1749 buildUnnamed376() { | 1751 buildUnnamed397() { |
1750 var o = new core.List<core.String>(); | 1752 var o = new core.List<core.String>(); |
1751 o.add("foo"); | 1753 o.add("foo"); |
1752 o.add("foo"); | 1754 o.add("foo"); |
1753 return o; | 1755 return o; |
1754 } | 1756 } |
1755 | 1757 |
1756 checkUnnamed376(core.List<core.String> o) { | 1758 checkUnnamed397(core.List<core.String> o) { |
1757 unittest.expect(o, unittest.hasLength(2)); | 1759 unittest.expect(o, unittest.hasLength(2)); |
1758 unittest.expect(o[0], unittest.equals('foo')); | 1760 unittest.expect(o[0], unittest.equals('foo')); |
1759 unittest.expect(o[1], unittest.equals('foo')); | 1761 unittest.expect(o[1], unittest.equals('foo')); |
1760 } | 1762 } |
1761 | 1763 |
1762 buildUnnamed377() { | 1764 buildUnnamed398() { |
1763 var o = new core.List<core.String>(); | 1765 var o = new core.List<core.String>(); |
1764 o.add("foo"); | 1766 o.add("foo"); |
1765 o.add("foo"); | 1767 o.add("foo"); |
1766 return o; | 1768 return o; |
1767 } | 1769 } |
1768 | 1770 |
1769 checkUnnamed377(core.List<core.String> o) { | 1771 checkUnnamed398(core.List<core.String> o) { |
1770 unittest.expect(o, unittest.hasLength(2)); | 1772 unittest.expect(o, unittest.hasLength(2)); |
1771 unittest.expect(o[0], unittest.equals('foo')); | 1773 unittest.expect(o[0], unittest.equals('foo')); |
1772 unittest.expect(o[1], unittest.equals('foo')); | 1774 unittest.expect(o[1], unittest.equals('foo')); |
1773 } | 1775 } |
1774 | 1776 |
1775 core.int buildCounterEditors = 0; | 1777 core.int buildCounterEditors = 0; |
1776 buildEditors() { | 1778 buildEditors() { |
1777 var o = new api.Editors(); | 1779 var o = new api.Editors(); |
1778 buildCounterEditors++; | 1780 buildCounterEditors++; |
1779 if (buildCounterEditors < 3) { | 1781 if (buildCounterEditors < 3) { |
1780 o.domainUsersCanEdit = true; | 1782 o.domainUsersCanEdit = true; |
1781 o.groups = buildUnnamed376(); | 1783 o.groups = buildUnnamed397(); |
1782 o.users = buildUnnamed377(); | 1784 o.users = buildUnnamed398(); |
1783 } | 1785 } |
1784 buildCounterEditors--; | 1786 buildCounterEditors--; |
1785 return o; | 1787 return o; |
1786 } | 1788 } |
1787 | 1789 |
1788 checkEditors(api.Editors o) { | 1790 checkEditors(api.Editors o) { |
1789 buildCounterEditors++; | 1791 buildCounterEditors++; |
1790 if (buildCounterEditors < 3) { | 1792 if (buildCounterEditors < 3) { |
1791 unittest.expect(o.domainUsersCanEdit, unittest.isTrue); | 1793 unittest.expect(o.domainUsersCanEdit, unittest.isTrue); |
1792 checkUnnamed376(o.groups); | 1794 checkUnnamed397(o.groups); |
1793 checkUnnamed377(o.users); | 1795 checkUnnamed398(o.users); |
1794 } | 1796 } |
1795 buildCounterEditors--; | 1797 buildCounterEditors--; |
1796 } | 1798 } |
1797 | 1799 |
1798 core.int buildCounterEmbeddedChart = 0; | 1800 core.int buildCounterEmbeddedChart = 0; |
1799 buildEmbeddedChart() { | 1801 buildEmbeddedChart() { |
1800 var o = new api.EmbeddedChart(); | 1802 var o = new api.EmbeddedChart(); |
1801 buildCounterEmbeddedChart++; | 1803 buildCounterEmbeddedChart++; |
1802 if (buildCounterEmbeddedChart < 3) { | 1804 if (buildCounterEmbeddedChart < 3) { |
1803 o.chartId = 42; | 1805 o.chartId = 42; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1882 if (buildCounterExtendedValue < 3) { | 1884 if (buildCounterExtendedValue < 3) { |
1883 unittest.expect(o.boolValue, unittest.isTrue); | 1885 unittest.expect(o.boolValue, unittest.isTrue); |
1884 checkErrorValue(o.errorValue); | 1886 checkErrorValue(o.errorValue); |
1885 unittest.expect(o.formulaValue, unittest.equals('foo')); | 1887 unittest.expect(o.formulaValue, unittest.equals('foo')); |
1886 unittest.expect(o.numberValue, unittest.equals(42.0)); | 1888 unittest.expect(o.numberValue, unittest.equals(42.0)); |
1887 unittest.expect(o.stringValue, unittest.equals('foo')); | 1889 unittest.expect(o.stringValue, unittest.equals('foo')); |
1888 } | 1890 } |
1889 buildCounterExtendedValue--; | 1891 buildCounterExtendedValue--; |
1890 } | 1892 } |
1891 | 1893 |
1892 buildUnnamed378() { | 1894 buildUnnamed399() { |
1893 var o = new core.List<core.String>(); | 1895 var o = new core.List<core.String>(); |
1894 o.add("foo"); | 1896 o.add("foo"); |
1895 o.add("foo"); | 1897 o.add("foo"); |
1896 return o; | 1898 return o; |
1897 } | 1899 } |
1898 | 1900 |
1899 checkUnnamed378(core.List<core.String> o) { | 1901 checkUnnamed399(core.List<core.String> o) { |
1900 unittest.expect(o, unittest.hasLength(2)); | 1902 unittest.expect(o, unittest.hasLength(2)); |
1901 unittest.expect(o[0], unittest.equals('foo')); | 1903 unittest.expect(o[0], unittest.equals('foo')); |
1902 unittest.expect(o[1], unittest.equals('foo')); | 1904 unittest.expect(o[1], unittest.equals('foo')); |
1903 } | 1905 } |
1904 | 1906 |
1905 core.int buildCounterFilterCriteria = 0; | 1907 core.int buildCounterFilterCriteria = 0; |
1906 buildFilterCriteria() { | 1908 buildFilterCriteria() { |
1907 var o = new api.FilterCriteria(); | 1909 var o = new api.FilterCriteria(); |
1908 buildCounterFilterCriteria++; | 1910 buildCounterFilterCriteria++; |
1909 if (buildCounterFilterCriteria < 3) { | 1911 if (buildCounterFilterCriteria < 3) { |
1910 o.condition = buildBooleanCondition(); | 1912 o.condition = buildBooleanCondition(); |
1911 o.hiddenValues = buildUnnamed378(); | 1913 o.hiddenValues = buildUnnamed399(); |
1912 } | 1914 } |
1913 buildCounterFilterCriteria--; | 1915 buildCounterFilterCriteria--; |
1914 return o; | 1916 return o; |
1915 } | 1917 } |
1916 | 1918 |
1917 checkFilterCriteria(api.FilterCriteria o) { | 1919 checkFilterCriteria(api.FilterCriteria o) { |
1918 buildCounterFilterCriteria++; | 1920 buildCounterFilterCriteria++; |
1919 if (buildCounterFilterCriteria < 3) { | 1921 if (buildCounterFilterCriteria < 3) { |
1920 checkBooleanCondition(o.condition); | 1922 checkBooleanCondition(o.condition); |
1921 checkUnnamed378(o.hiddenValues); | 1923 checkUnnamed399(o.hiddenValues); |
1922 } | 1924 } |
1923 buildCounterFilterCriteria--; | 1925 buildCounterFilterCriteria--; |
1924 } | 1926 } |
1925 | 1927 |
1926 buildUnnamed379() { | 1928 buildUnnamed400() { |
1927 var o = new core.Map<core.String, api.FilterCriteria>(); | 1929 var o = new core.Map<core.String, api.FilterCriteria>(); |
1928 o["x"] = buildFilterCriteria(); | 1930 o["x"] = buildFilterCriteria(); |
1929 o["y"] = buildFilterCriteria(); | 1931 o["y"] = buildFilterCriteria(); |
1930 return o; | 1932 return o; |
1931 } | 1933 } |
1932 | 1934 |
1933 checkUnnamed379(core.Map<core.String, api.FilterCriteria> o) { | 1935 checkUnnamed400(core.Map<core.String, api.FilterCriteria> o) { |
1934 unittest.expect(o, unittest.hasLength(2)); | 1936 unittest.expect(o, unittest.hasLength(2)); |
1935 checkFilterCriteria(o["x"]); | 1937 checkFilterCriteria(o["x"]); |
1936 checkFilterCriteria(o["y"]); | 1938 checkFilterCriteria(o["y"]); |
1937 } | 1939 } |
1938 | 1940 |
1939 buildUnnamed380() { | 1941 buildUnnamed401() { |
1940 var o = new core.List<api.SortSpec>(); | 1942 var o = new core.List<api.SortSpec>(); |
1941 o.add(buildSortSpec()); | 1943 o.add(buildSortSpec()); |
1942 o.add(buildSortSpec()); | 1944 o.add(buildSortSpec()); |
1943 return o; | 1945 return o; |
1944 } | 1946 } |
1945 | 1947 |
1946 checkUnnamed380(core.List<api.SortSpec> o) { | 1948 checkUnnamed401(core.List<api.SortSpec> o) { |
1947 unittest.expect(o, unittest.hasLength(2)); | 1949 unittest.expect(o, unittest.hasLength(2)); |
1948 checkSortSpec(o[0]); | 1950 checkSortSpec(o[0]); |
1949 checkSortSpec(o[1]); | 1951 checkSortSpec(o[1]); |
1950 } | 1952 } |
1951 | 1953 |
1952 core.int buildCounterFilterView = 0; | 1954 core.int buildCounterFilterView = 0; |
1953 buildFilterView() { | 1955 buildFilterView() { |
1954 var o = new api.FilterView(); | 1956 var o = new api.FilterView(); |
1955 buildCounterFilterView++; | 1957 buildCounterFilterView++; |
1956 if (buildCounterFilterView < 3) { | 1958 if (buildCounterFilterView < 3) { |
1957 o.criteria = buildUnnamed379(); | 1959 o.criteria = buildUnnamed400(); |
1958 o.filterViewId = 42; | 1960 o.filterViewId = 42; |
1959 o.namedRangeId = "foo"; | 1961 o.namedRangeId = "foo"; |
1960 o.range = buildGridRange(); | 1962 o.range = buildGridRange(); |
1961 o.sortSpecs = buildUnnamed380(); | 1963 o.sortSpecs = buildUnnamed401(); |
1962 o.title = "foo"; | 1964 o.title = "foo"; |
1963 } | 1965 } |
1964 buildCounterFilterView--; | 1966 buildCounterFilterView--; |
1965 return o; | 1967 return o; |
1966 } | 1968 } |
1967 | 1969 |
1968 checkFilterView(api.FilterView o) { | 1970 checkFilterView(api.FilterView o) { |
1969 buildCounterFilterView++; | 1971 buildCounterFilterView++; |
1970 if (buildCounterFilterView < 3) { | 1972 if (buildCounterFilterView < 3) { |
1971 checkUnnamed379(o.criteria); | 1973 checkUnnamed400(o.criteria); |
1972 unittest.expect(o.filterViewId, unittest.equals(42)); | 1974 unittest.expect(o.filterViewId, unittest.equals(42)); |
1973 unittest.expect(o.namedRangeId, unittest.equals('foo')); | 1975 unittest.expect(o.namedRangeId, unittest.equals('foo')); |
1974 checkGridRange(o.range); | 1976 checkGridRange(o.range); |
1975 checkUnnamed380(o.sortSpecs); | 1977 checkUnnamed401(o.sortSpecs); |
1976 unittest.expect(o.title, unittest.equals('foo')); | 1978 unittest.expect(o.title, unittest.equals('foo')); |
1977 } | 1979 } |
1978 buildCounterFilterView--; | 1980 buildCounterFilterView--; |
1979 } | 1981 } |
1980 | 1982 |
1981 core.int buildCounterFindReplaceRequest = 0; | 1983 core.int buildCounterFindReplaceRequest = 0; |
1982 buildFindReplaceRequest() { | 1984 buildFindReplaceRequest() { |
1983 var o = new api.FindReplaceRequest(); | 1985 var o = new api.FindReplaceRequest(); |
1984 buildCounterFindReplaceRequest++; | 1986 buildCounterFindReplaceRequest++; |
1985 if (buildCounterFindReplaceRequest < 3) { | 1987 if (buildCounterFindReplaceRequest < 3) { |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2079 checkGridCoordinate(api.GridCoordinate o) { | 2081 checkGridCoordinate(api.GridCoordinate o) { |
2080 buildCounterGridCoordinate++; | 2082 buildCounterGridCoordinate++; |
2081 if (buildCounterGridCoordinate < 3) { | 2083 if (buildCounterGridCoordinate < 3) { |
2082 unittest.expect(o.columnIndex, unittest.equals(42)); | 2084 unittest.expect(o.columnIndex, unittest.equals(42)); |
2083 unittest.expect(o.rowIndex, unittest.equals(42)); | 2085 unittest.expect(o.rowIndex, unittest.equals(42)); |
2084 unittest.expect(o.sheetId, unittest.equals(42)); | 2086 unittest.expect(o.sheetId, unittest.equals(42)); |
2085 } | 2087 } |
2086 buildCounterGridCoordinate--; | 2088 buildCounterGridCoordinate--; |
2087 } | 2089 } |
2088 | 2090 |
2089 buildUnnamed381() { | 2091 buildUnnamed402() { |
2090 var o = new core.List<api.DimensionProperties>(); | 2092 var o = new core.List<api.DimensionProperties>(); |
2091 o.add(buildDimensionProperties()); | 2093 o.add(buildDimensionProperties()); |
2092 o.add(buildDimensionProperties()); | 2094 o.add(buildDimensionProperties()); |
2093 return o; | 2095 return o; |
2094 } | 2096 } |
2095 | 2097 |
2096 checkUnnamed381(core.List<api.DimensionProperties> o) { | 2098 checkUnnamed402(core.List<api.DimensionProperties> o) { |
2097 unittest.expect(o, unittest.hasLength(2)); | 2099 unittest.expect(o, unittest.hasLength(2)); |
2098 checkDimensionProperties(o[0]); | 2100 checkDimensionProperties(o[0]); |
2099 checkDimensionProperties(o[1]); | 2101 checkDimensionProperties(o[1]); |
2100 } | 2102 } |
2101 | 2103 |
2102 buildUnnamed382() { | 2104 buildUnnamed403() { |
2103 var o = new core.List<api.RowData>(); | 2105 var o = new core.List<api.RowData>(); |
2104 o.add(buildRowData()); | 2106 o.add(buildRowData()); |
2105 o.add(buildRowData()); | 2107 o.add(buildRowData()); |
2106 return o; | 2108 return o; |
2107 } | 2109 } |
2108 | 2110 |
2109 checkUnnamed382(core.List<api.RowData> o) { | 2111 checkUnnamed403(core.List<api.RowData> o) { |
2110 unittest.expect(o, unittest.hasLength(2)); | 2112 unittest.expect(o, unittest.hasLength(2)); |
2111 checkRowData(o[0]); | 2113 checkRowData(o[0]); |
2112 checkRowData(o[1]); | 2114 checkRowData(o[1]); |
2113 } | 2115 } |
2114 | 2116 |
2115 buildUnnamed383() { | 2117 buildUnnamed404() { |
2116 var o = new core.List<api.DimensionProperties>(); | 2118 var o = new core.List<api.DimensionProperties>(); |
2117 o.add(buildDimensionProperties()); | 2119 o.add(buildDimensionProperties()); |
2118 o.add(buildDimensionProperties()); | 2120 o.add(buildDimensionProperties()); |
2119 return o; | 2121 return o; |
2120 } | 2122 } |
2121 | 2123 |
2122 checkUnnamed383(core.List<api.DimensionProperties> o) { | 2124 checkUnnamed404(core.List<api.DimensionProperties> o) { |
2123 unittest.expect(o, unittest.hasLength(2)); | 2125 unittest.expect(o, unittest.hasLength(2)); |
2124 checkDimensionProperties(o[0]); | 2126 checkDimensionProperties(o[0]); |
2125 checkDimensionProperties(o[1]); | 2127 checkDimensionProperties(o[1]); |
2126 } | 2128 } |
2127 | 2129 |
2128 core.int buildCounterGridData = 0; | 2130 core.int buildCounterGridData = 0; |
2129 buildGridData() { | 2131 buildGridData() { |
2130 var o = new api.GridData(); | 2132 var o = new api.GridData(); |
2131 buildCounterGridData++; | 2133 buildCounterGridData++; |
2132 if (buildCounterGridData < 3) { | 2134 if (buildCounterGridData < 3) { |
2133 o.columnMetadata = buildUnnamed381(); | 2135 o.columnMetadata = buildUnnamed402(); |
2134 o.rowData = buildUnnamed382(); | 2136 o.rowData = buildUnnamed403(); |
2135 o.rowMetadata = buildUnnamed383(); | 2137 o.rowMetadata = buildUnnamed404(); |
2136 o.startColumn = 42; | 2138 o.startColumn = 42; |
2137 o.startRow = 42; | 2139 o.startRow = 42; |
2138 } | 2140 } |
2139 buildCounterGridData--; | 2141 buildCounterGridData--; |
2140 return o; | 2142 return o; |
2141 } | 2143 } |
2142 | 2144 |
2143 checkGridData(api.GridData o) { | 2145 checkGridData(api.GridData o) { |
2144 buildCounterGridData++; | 2146 buildCounterGridData++; |
2145 if (buildCounterGridData < 3) { | 2147 if (buildCounterGridData < 3) { |
2146 checkUnnamed381(o.columnMetadata); | 2148 checkUnnamed402(o.columnMetadata); |
2147 checkUnnamed382(o.rowData); | 2149 checkUnnamed403(o.rowData); |
2148 checkUnnamed383(o.rowMetadata); | 2150 checkUnnamed404(o.rowMetadata); |
2149 unittest.expect(o.startColumn, unittest.equals(42)); | 2151 unittest.expect(o.startColumn, unittest.equals(42)); |
2150 unittest.expect(o.startRow, unittest.equals(42)); | 2152 unittest.expect(o.startRow, unittest.equals(42)); |
2151 } | 2153 } |
2152 buildCounterGridData--; | 2154 buildCounterGridData--; |
2153 } | 2155 } |
2154 | 2156 |
2155 core.int buildCounterGridProperties = 0; | 2157 core.int buildCounterGridProperties = 0; |
2156 buildGridProperties() { | 2158 buildGridProperties() { |
2157 var o = new api.GridProperties(); | 2159 var o = new api.GridProperties(); |
2158 buildCounterGridProperties++; | 2160 buildCounterGridProperties++; |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2477 if (buildCounterPieChartSpec < 3) { | 2479 if (buildCounterPieChartSpec < 3) { |
2478 checkChartData(o.domain); | 2480 checkChartData(o.domain); |
2479 unittest.expect(o.legendPosition, unittest.equals('foo')); | 2481 unittest.expect(o.legendPosition, unittest.equals('foo')); |
2480 unittest.expect(o.pieHole, unittest.equals(42.0)); | 2482 unittest.expect(o.pieHole, unittest.equals(42.0)); |
2481 checkChartData(o.series); | 2483 checkChartData(o.series); |
2482 unittest.expect(o.threeDimensional, unittest.isTrue); | 2484 unittest.expect(o.threeDimensional, unittest.isTrue); |
2483 } | 2485 } |
2484 buildCounterPieChartSpec--; | 2486 buildCounterPieChartSpec--; |
2485 } | 2487 } |
2486 | 2488 |
2487 buildUnnamed384() { | 2489 buildUnnamed405() { |
2488 var o = new core.List<core.String>(); | 2490 var o = new core.List<core.String>(); |
2489 o.add("foo"); | 2491 o.add("foo"); |
2490 o.add("foo"); | 2492 o.add("foo"); |
2491 return o; | 2493 return o; |
2492 } | 2494 } |
2493 | 2495 |
2494 checkUnnamed384(core.List<core.String> o) { | 2496 checkUnnamed405(core.List<core.String> o) { |
2495 unittest.expect(o, unittest.hasLength(2)); | 2497 unittest.expect(o, unittest.hasLength(2)); |
2496 unittest.expect(o[0], unittest.equals('foo')); | 2498 unittest.expect(o[0], unittest.equals('foo')); |
2497 unittest.expect(o[1], unittest.equals('foo')); | 2499 unittest.expect(o[1], unittest.equals('foo')); |
2498 } | 2500 } |
2499 | 2501 |
2500 core.int buildCounterPivotFilterCriteria = 0; | 2502 core.int buildCounterPivotFilterCriteria = 0; |
2501 buildPivotFilterCriteria() { | 2503 buildPivotFilterCriteria() { |
2502 var o = new api.PivotFilterCriteria(); | 2504 var o = new api.PivotFilterCriteria(); |
2503 buildCounterPivotFilterCriteria++; | 2505 buildCounterPivotFilterCriteria++; |
2504 if (buildCounterPivotFilterCriteria < 3) { | 2506 if (buildCounterPivotFilterCriteria < 3) { |
2505 o.visibleValues = buildUnnamed384(); | 2507 o.visibleValues = buildUnnamed405(); |
2506 } | 2508 } |
2507 buildCounterPivotFilterCriteria--; | 2509 buildCounterPivotFilterCriteria--; |
2508 return o; | 2510 return o; |
2509 } | 2511 } |
2510 | 2512 |
2511 checkPivotFilterCriteria(api.PivotFilterCriteria o) { | 2513 checkPivotFilterCriteria(api.PivotFilterCriteria o) { |
2512 buildCounterPivotFilterCriteria++; | 2514 buildCounterPivotFilterCriteria++; |
2513 if (buildCounterPivotFilterCriteria < 3) { | 2515 if (buildCounterPivotFilterCriteria < 3) { |
2514 checkUnnamed384(o.visibleValues); | 2516 checkUnnamed405(o.visibleValues); |
2515 } | 2517 } |
2516 buildCounterPivotFilterCriteria--; | 2518 buildCounterPivotFilterCriteria--; |
2517 } | 2519 } |
2518 | 2520 |
2519 buildUnnamed385() { | 2521 buildUnnamed406() { |
2520 var o = new core.List<api.PivotGroupValueMetadata>(); | 2522 var o = new core.List<api.PivotGroupValueMetadata>(); |
2521 o.add(buildPivotGroupValueMetadata()); | 2523 o.add(buildPivotGroupValueMetadata()); |
2522 o.add(buildPivotGroupValueMetadata()); | 2524 o.add(buildPivotGroupValueMetadata()); |
2523 return o; | 2525 return o; |
2524 } | 2526 } |
2525 | 2527 |
2526 checkUnnamed385(core.List<api.PivotGroupValueMetadata> o) { | 2528 checkUnnamed406(core.List<api.PivotGroupValueMetadata> o) { |
2527 unittest.expect(o, unittest.hasLength(2)); | 2529 unittest.expect(o, unittest.hasLength(2)); |
2528 checkPivotGroupValueMetadata(o[0]); | 2530 checkPivotGroupValueMetadata(o[0]); |
2529 checkPivotGroupValueMetadata(o[1]); | 2531 checkPivotGroupValueMetadata(o[1]); |
2530 } | 2532 } |
2531 | 2533 |
2532 core.int buildCounterPivotGroup = 0; | 2534 core.int buildCounterPivotGroup = 0; |
2533 buildPivotGroup() { | 2535 buildPivotGroup() { |
2534 var o = new api.PivotGroup(); | 2536 var o = new api.PivotGroup(); |
2535 buildCounterPivotGroup++; | 2537 buildCounterPivotGroup++; |
2536 if (buildCounterPivotGroup < 3) { | 2538 if (buildCounterPivotGroup < 3) { |
2537 o.showTotals = true; | 2539 o.showTotals = true; |
2538 o.sortOrder = "foo"; | 2540 o.sortOrder = "foo"; |
2539 o.sourceColumnOffset = 42; | 2541 o.sourceColumnOffset = 42; |
2540 o.valueBucket = buildPivotGroupSortValueBucket(); | 2542 o.valueBucket = buildPivotGroupSortValueBucket(); |
2541 o.valueMetadata = buildUnnamed385(); | 2543 o.valueMetadata = buildUnnamed406(); |
2542 } | 2544 } |
2543 buildCounterPivotGroup--; | 2545 buildCounterPivotGroup--; |
2544 return o; | 2546 return o; |
2545 } | 2547 } |
2546 | 2548 |
2547 checkPivotGroup(api.PivotGroup o) { | 2549 checkPivotGroup(api.PivotGroup o) { |
2548 buildCounterPivotGroup++; | 2550 buildCounterPivotGroup++; |
2549 if (buildCounterPivotGroup < 3) { | 2551 if (buildCounterPivotGroup < 3) { |
2550 unittest.expect(o.showTotals, unittest.isTrue); | 2552 unittest.expect(o.showTotals, unittest.isTrue); |
2551 unittest.expect(o.sortOrder, unittest.equals('foo')); | 2553 unittest.expect(o.sortOrder, unittest.equals('foo')); |
2552 unittest.expect(o.sourceColumnOffset, unittest.equals(42)); | 2554 unittest.expect(o.sourceColumnOffset, unittest.equals(42)); |
2553 checkPivotGroupSortValueBucket(o.valueBucket); | 2555 checkPivotGroupSortValueBucket(o.valueBucket); |
2554 checkUnnamed385(o.valueMetadata); | 2556 checkUnnamed406(o.valueMetadata); |
2555 } | 2557 } |
2556 buildCounterPivotGroup--; | 2558 buildCounterPivotGroup--; |
2557 } | 2559 } |
2558 | 2560 |
2559 buildUnnamed386() { | 2561 buildUnnamed407() { |
2560 var o = new core.List<api.ExtendedValue>(); | 2562 var o = new core.List<api.ExtendedValue>(); |
2561 o.add(buildExtendedValue()); | 2563 o.add(buildExtendedValue()); |
2562 o.add(buildExtendedValue()); | 2564 o.add(buildExtendedValue()); |
2563 return o; | 2565 return o; |
2564 } | 2566 } |
2565 | 2567 |
2566 checkUnnamed386(core.List<api.ExtendedValue> o) { | 2568 checkUnnamed407(core.List<api.ExtendedValue> o) { |
2567 unittest.expect(o, unittest.hasLength(2)); | 2569 unittest.expect(o, unittest.hasLength(2)); |
2568 checkExtendedValue(o[0]); | 2570 checkExtendedValue(o[0]); |
2569 checkExtendedValue(o[1]); | 2571 checkExtendedValue(o[1]); |
2570 } | 2572 } |
2571 | 2573 |
2572 core.int buildCounterPivotGroupSortValueBucket = 0; | 2574 core.int buildCounterPivotGroupSortValueBucket = 0; |
2573 buildPivotGroupSortValueBucket() { | 2575 buildPivotGroupSortValueBucket() { |
2574 var o = new api.PivotGroupSortValueBucket(); | 2576 var o = new api.PivotGroupSortValueBucket(); |
2575 buildCounterPivotGroupSortValueBucket++; | 2577 buildCounterPivotGroupSortValueBucket++; |
2576 if (buildCounterPivotGroupSortValueBucket < 3) { | 2578 if (buildCounterPivotGroupSortValueBucket < 3) { |
2577 o.buckets = buildUnnamed386(); | 2579 o.buckets = buildUnnamed407(); |
2578 o.valuesIndex = 42; | 2580 o.valuesIndex = 42; |
2579 } | 2581 } |
2580 buildCounterPivotGroupSortValueBucket--; | 2582 buildCounterPivotGroupSortValueBucket--; |
2581 return o; | 2583 return o; |
2582 } | 2584 } |
2583 | 2585 |
2584 checkPivotGroupSortValueBucket(api.PivotGroupSortValueBucket o) { | 2586 checkPivotGroupSortValueBucket(api.PivotGroupSortValueBucket o) { |
2585 buildCounterPivotGroupSortValueBucket++; | 2587 buildCounterPivotGroupSortValueBucket++; |
2586 if (buildCounterPivotGroupSortValueBucket < 3) { | 2588 if (buildCounterPivotGroupSortValueBucket < 3) { |
2587 checkUnnamed386(o.buckets); | 2589 checkUnnamed407(o.buckets); |
2588 unittest.expect(o.valuesIndex, unittest.equals(42)); | 2590 unittest.expect(o.valuesIndex, unittest.equals(42)); |
2589 } | 2591 } |
2590 buildCounterPivotGroupSortValueBucket--; | 2592 buildCounterPivotGroupSortValueBucket--; |
2591 } | 2593 } |
2592 | 2594 |
2593 core.int buildCounterPivotGroupValueMetadata = 0; | 2595 core.int buildCounterPivotGroupValueMetadata = 0; |
2594 buildPivotGroupValueMetadata() { | 2596 buildPivotGroupValueMetadata() { |
2595 var o = new api.PivotGroupValueMetadata(); | 2597 var o = new api.PivotGroupValueMetadata(); |
2596 buildCounterPivotGroupValueMetadata++; | 2598 buildCounterPivotGroupValueMetadata++; |
2597 if (buildCounterPivotGroupValueMetadata < 3) { | 2599 if (buildCounterPivotGroupValueMetadata < 3) { |
2598 o.collapsed = true; | 2600 o.collapsed = true; |
2599 o.value = buildExtendedValue(); | 2601 o.value = buildExtendedValue(); |
2600 } | 2602 } |
2601 buildCounterPivotGroupValueMetadata--; | 2603 buildCounterPivotGroupValueMetadata--; |
2602 return o; | 2604 return o; |
2603 } | 2605 } |
2604 | 2606 |
2605 checkPivotGroupValueMetadata(api.PivotGroupValueMetadata o) { | 2607 checkPivotGroupValueMetadata(api.PivotGroupValueMetadata o) { |
2606 buildCounterPivotGroupValueMetadata++; | 2608 buildCounterPivotGroupValueMetadata++; |
2607 if (buildCounterPivotGroupValueMetadata < 3) { | 2609 if (buildCounterPivotGroupValueMetadata < 3) { |
2608 unittest.expect(o.collapsed, unittest.isTrue); | 2610 unittest.expect(o.collapsed, unittest.isTrue); |
2609 checkExtendedValue(o.value); | 2611 checkExtendedValue(o.value); |
2610 } | 2612 } |
2611 buildCounterPivotGroupValueMetadata--; | 2613 buildCounterPivotGroupValueMetadata--; |
2612 } | 2614 } |
2613 | 2615 |
2614 buildUnnamed387() { | 2616 buildUnnamed408() { |
2615 var o = new core.List<api.PivotGroup>(); | 2617 var o = new core.List<api.PivotGroup>(); |
2616 o.add(buildPivotGroup()); | 2618 o.add(buildPivotGroup()); |
2617 o.add(buildPivotGroup()); | 2619 o.add(buildPivotGroup()); |
2618 return o; | 2620 return o; |
2619 } | 2621 } |
2620 | 2622 |
2621 checkUnnamed387(core.List<api.PivotGroup> o) { | 2623 checkUnnamed408(core.List<api.PivotGroup> o) { |
2622 unittest.expect(o, unittest.hasLength(2)); | 2624 unittest.expect(o, unittest.hasLength(2)); |
2623 checkPivotGroup(o[0]); | 2625 checkPivotGroup(o[0]); |
2624 checkPivotGroup(o[1]); | 2626 checkPivotGroup(o[1]); |
2625 } | 2627 } |
2626 | 2628 |
2627 buildUnnamed388() { | 2629 buildUnnamed409() { |
2628 var o = new core.Map<core.String, api.PivotFilterCriteria>(); | 2630 var o = new core.Map<core.String, api.PivotFilterCriteria>(); |
2629 o["x"] = buildPivotFilterCriteria(); | 2631 o["x"] = buildPivotFilterCriteria(); |
2630 o["y"] = buildPivotFilterCriteria(); | 2632 o["y"] = buildPivotFilterCriteria(); |
2631 return o; | 2633 return o; |
2632 } | 2634 } |
2633 | 2635 |
2634 checkUnnamed388(core.Map<core.String, api.PivotFilterCriteria> o) { | 2636 checkUnnamed409(core.Map<core.String, api.PivotFilterCriteria> o) { |
2635 unittest.expect(o, unittest.hasLength(2)); | 2637 unittest.expect(o, unittest.hasLength(2)); |
2636 checkPivotFilterCriteria(o["x"]); | 2638 checkPivotFilterCriteria(o["x"]); |
2637 checkPivotFilterCriteria(o["y"]); | 2639 checkPivotFilterCriteria(o["y"]); |
2638 } | 2640 } |
2639 | 2641 |
2640 buildUnnamed389() { | 2642 buildUnnamed410() { |
2641 var o = new core.List<api.PivotGroup>(); | 2643 var o = new core.List<api.PivotGroup>(); |
2642 o.add(buildPivotGroup()); | 2644 o.add(buildPivotGroup()); |
2643 o.add(buildPivotGroup()); | 2645 o.add(buildPivotGroup()); |
2644 return o; | 2646 return o; |
2645 } | 2647 } |
2646 | 2648 |
2647 checkUnnamed389(core.List<api.PivotGroup> o) { | 2649 checkUnnamed410(core.List<api.PivotGroup> o) { |
2648 unittest.expect(o, unittest.hasLength(2)); | 2650 unittest.expect(o, unittest.hasLength(2)); |
2649 checkPivotGroup(o[0]); | 2651 checkPivotGroup(o[0]); |
2650 checkPivotGroup(o[1]); | 2652 checkPivotGroup(o[1]); |
2651 } | 2653 } |
2652 | 2654 |
2653 buildUnnamed390() { | 2655 buildUnnamed411() { |
2654 var o = new core.List<api.PivotValue>(); | 2656 var o = new core.List<api.PivotValue>(); |
2655 o.add(buildPivotValue()); | 2657 o.add(buildPivotValue()); |
2656 o.add(buildPivotValue()); | 2658 o.add(buildPivotValue()); |
2657 return o; | 2659 return o; |
2658 } | 2660 } |
2659 | 2661 |
2660 checkUnnamed390(core.List<api.PivotValue> o) { | 2662 checkUnnamed411(core.List<api.PivotValue> o) { |
2661 unittest.expect(o, unittest.hasLength(2)); | 2663 unittest.expect(o, unittest.hasLength(2)); |
2662 checkPivotValue(o[0]); | 2664 checkPivotValue(o[0]); |
2663 checkPivotValue(o[1]); | 2665 checkPivotValue(o[1]); |
2664 } | 2666 } |
2665 | 2667 |
2666 core.int buildCounterPivotTable = 0; | 2668 core.int buildCounterPivotTable = 0; |
2667 buildPivotTable() { | 2669 buildPivotTable() { |
2668 var o = new api.PivotTable(); | 2670 var o = new api.PivotTable(); |
2669 buildCounterPivotTable++; | 2671 buildCounterPivotTable++; |
2670 if (buildCounterPivotTable < 3) { | 2672 if (buildCounterPivotTable < 3) { |
2671 o.columns = buildUnnamed387(); | 2673 o.columns = buildUnnamed408(); |
2672 o.criteria = buildUnnamed388(); | 2674 o.criteria = buildUnnamed409(); |
2673 o.rows = buildUnnamed389(); | 2675 o.rows = buildUnnamed410(); |
2674 o.source = buildGridRange(); | 2676 o.source = buildGridRange(); |
2675 o.valueLayout = "foo"; | 2677 o.valueLayout = "foo"; |
2676 o.values = buildUnnamed390(); | 2678 o.values = buildUnnamed411(); |
2677 } | 2679 } |
2678 buildCounterPivotTable--; | 2680 buildCounterPivotTable--; |
2679 return o; | 2681 return o; |
2680 } | 2682 } |
2681 | 2683 |
2682 checkPivotTable(api.PivotTable o) { | 2684 checkPivotTable(api.PivotTable o) { |
2683 buildCounterPivotTable++; | 2685 buildCounterPivotTable++; |
2684 if (buildCounterPivotTable < 3) { | 2686 if (buildCounterPivotTable < 3) { |
2685 checkUnnamed387(o.columns); | 2687 checkUnnamed408(o.columns); |
2686 checkUnnamed388(o.criteria); | 2688 checkUnnamed409(o.criteria); |
2687 checkUnnamed389(o.rows); | 2689 checkUnnamed410(o.rows); |
2688 checkGridRange(o.source); | 2690 checkGridRange(o.source); |
2689 unittest.expect(o.valueLayout, unittest.equals('foo')); | 2691 unittest.expect(o.valueLayout, unittest.equals('foo')); |
2690 checkUnnamed390(o.values); | 2692 checkUnnamed411(o.values); |
2691 } | 2693 } |
2692 buildCounterPivotTable--; | 2694 buildCounterPivotTable--; |
2693 } | 2695 } |
2694 | 2696 |
2695 core.int buildCounterPivotValue = 0; | 2697 core.int buildCounterPivotValue = 0; |
2696 buildPivotValue() { | 2698 buildPivotValue() { |
2697 var o = new api.PivotValue(); | 2699 var o = new api.PivotValue(); |
2698 buildCounterPivotValue++; | 2700 buildCounterPivotValue++; |
2699 if (buildCounterPivotValue < 3) { | 2701 if (buildCounterPivotValue < 3) { |
2700 o.formula = "foo"; | 2702 o.formula = "foo"; |
2701 o.name = "foo"; | 2703 o.name = "foo"; |
2702 o.sourceColumnOffset = 42; | 2704 o.sourceColumnOffset = 42; |
2703 o.summarizeFunction = "foo"; | 2705 o.summarizeFunction = "foo"; |
2704 } | 2706 } |
2705 buildCounterPivotValue--; | 2707 buildCounterPivotValue--; |
2706 return o; | 2708 return o; |
2707 } | 2709 } |
2708 | 2710 |
2709 checkPivotValue(api.PivotValue o) { | 2711 checkPivotValue(api.PivotValue o) { |
2710 buildCounterPivotValue++; | 2712 buildCounterPivotValue++; |
2711 if (buildCounterPivotValue < 3) { | 2713 if (buildCounterPivotValue < 3) { |
2712 unittest.expect(o.formula, unittest.equals('foo')); | 2714 unittest.expect(o.formula, unittest.equals('foo')); |
2713 unittest.expect(o.name, unittest.equals('foo')); | 2715 unittest.expect(o.name, unittest.equals('foo')); |
2714 unittest.expect(o.sourceColumnOffset, unittest.equals(42)); | 2716 unittest.expect(o.sourceColumnOffset, unittest.equals(42)); |
2715 unittest.expect(o.summarizeFunction, unittest.equals('foo')); | 2717 unittest.expect(o.summarizeFunction, unittest.equals('foo')); |
2716 } | 2718 } |
2717 buildCounterPivotValue--; | 2719 buildCounterPivotValue--; |
2718 } | 2720 } |
2719 | 2721 |
2720 buildUnnamed391() { | 2722 buildUnnamed412() { |
2721 var o = new core.List<api.GridRange>(); | 2723 var o = new core.List<api.GridRange>(); |
2722 o.add(buildGridRange()); | 2724 o.add(buildGridRange()); |
2723 o.add(buildGridRange()); | 2725 o.add(buildGridRange()); |
2724 return o; | 2726 return o; |
2725 } | 2727 } |
2726 | 2728 |
2727 checkUnnamed391(core.List<api.GridRange> o) { | 2729 checkUnnamed412(core.List<api.GridRange> o) { |
2728 unittest.expect(o, unittest.hasLength(2)); | 2730 unittest.expect(o, unittest.hasLength(2)); |
2729 checkGridRange(o[0]); | 2731 checkGridRange(o[0]); |
2730 checkGridRange(o[1]); | 2732 checkGridRange(o[1]); |
2731 } | 2733 } |
2732 | 2734 |
2733 core.int buildCounterProtectedRange = 0; | 2735 core.int buildCounterProtectedRange = 0; |
2734 buildProtectedRange() { | 2736 buildProtectedRange() { |
2735 var o = new api.ProtectedRange(); | 2737 var o = new api.ProtectedRange(); |
2736 buildCounterProtectedRange++; | 2738 buildCounterProtectedRange++; |
2737 if (buildCounterProtectedRange < 3) { | 2739 if (buildCounterProtectedRange < 3) { |
2738 o.description = "foo"; | 2740 o.description = "foo"; |
2739 o.editors = buildEditors(); | 2741 o.editors = buildEditors(); |
2740 o.namedRangeId = "foo"; | 2742 o.namedRangeId = "foo"; |
2741 o.protectedRangeId = 42; | 2743 o.protectedRangeId = 42; |
2742 o.range = buildGridRange(); | 2744 o.range = buildGridRange(); |
2743 o.requestingUserCanEdit = true; | 2745 o.requestingUserCanEdit = true; |
2744 o.unprotectedRanges = buildUnnamed391(); | 2746 o.unprotectedRanges = buildUnnamed412(); |
2745 o.warningOnly = true; | 2747 o.warningOnly = true; |
2746 } | 2748 } |
2747 buildCounterProtectedRange--; | 2749 buildCounterProtectedRange--; |
2748 return o; | 2750 return o; |
2749 } | 2751 } |
2750 | 2752 |
2751 checkProtectedRange(api.ProtectedRange o) { | 2753 checkProtectedRange(api.ProtectedRange o) { |
2752 buildCounterProtectedRange++; | 2754 buildCounterProtectedRange++; |
2753 if (buildCounterProtectedRange < 3) { | 2755 if (buildCounterProtectedRange < 3) { |
2754 unittest.expect(o.description, unittest.equals('foo')); | 2756 unittest.expect(o.description, unittest.equals('foo')); |
2755 checkEditors(o.editors); | 2757 checkEditors(o.editors); |
2756 unittest.expect(o.namedRangeId, unittest.equals('foo')); | 2758 unittest.expect(o.namedRangeId, unittest.equals('foo')); |
2757 unittest.expect(o.protectedRangeId, unittest.equals(42)); | 2759 unittest.expect(o.protectedRangeId, unittest.equals(42)); |
2758 checkGridRange(o.range); | 2760 checkGridRange(o.range); |
2759 unittest.expect(o.requestingUserCanEdit, unittest.isTrue); | 2761 unittest.expect(o.requestingUserCanEdit, unittest.isTrue); |
2760 checkUnnamed391(o.unprotectedRanges); | 2762 checkUnnamed412(o.unprotectedRanges); |
2761 unittest.expect(o.warningOnly, unittest.isTrue); | 2763 unittest.expect(o.warningOnly, unittest.isTrue); |
2762 } | 2764 } |
2763 buildCounterProtectedRange--; | 2765 buildCounterProtectedRange--; |
2764 } | 2766 } |
2765 | 2767 |
2766 core.int buildCounterRepeatCellRequest = 0; | 2768 core.int buildCounterRepeatCellRequest = 0; |
2767 buildRepeatCellRequest() { | 2769 buildRepeatCellRequest() { |
2768 var o = new api.RepeatCellRequest(); | 2770 var o = new api.RepeatCellRequest(); |
2769 buildCounterRepeatCellRequest++; | 2771 buildCounterRepeatCellRequest++; |
2770 if (buildCounterRepeatCellRequest < 3) { | 2772 if (buildCounterRepeatCellRequest < 3) { |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2935 checkDeleteConditionalFormatRuleResponse(o.deleteConditionalFormatRule); | 2937 checkDeleteConditionalFormatRuleResponse(o.deleteConditionalFormatRule); |
2936 checkDuplicateFilterViewResponse(o.duplicateFilterView); | 2938 checkDuplicateFilterViewResponse(o.duplicateFilterView); |
2937 checkDuplicateSheetResponse(o.duplicateSheet); | 2939 checkDuplicateSheetResponse(o.duplicateSheet); |
2938 checkFindReplaceResponse(o.findReplace); | 2940 checkFindReplaceResponse(o.findReplace); |
2939 checkUpdateConditionalFormatRuleResponse(o.updateConditionalFormatRule); | 2941 checkUpdateConditionalFormatRuleResponse(o.updateConditionalFormatRule); |
2940 checkUpdateEmbeddedObjectPositionResponse(o.updateEmbeddedObjectPosition); | 2942 checkUpdateEmbeddedObjectPositionResponse(o.updateEmbeddedObjectPosition); |
2941 } | 2943 } |
2942 buildCounterResponse--; | 2944 buildCounterResponse--; |
2943 } | 2945 } |
2944 | 2946 |
2945 buildUnnamed392() { | 2947 buildUnnamed413() { |
2946 var o = new core.List<api.CellData>(); | 2948 var o = new core.List<api.CellData>(); |
2947 o.add(buildCellData()); | 2949 o.add(buildCellData()); |
2948 o.add(buildCellData()); | 2950 o.add(buildCellData()); |
2949 return o; | 2951 return o; |
2950 } | 2952 } |
2951 | 2953 |
2952 checkUnnamed392(core.List<api.CellData> o) { | 2954 checkUnnamed413(core.List<api.CellData> o) { |
2953 unittest.expect(o, unittest.hasLength(2)); | 2955 unittest.expect(o, unittest.hasLength(2)); |
2954 checkCellData(o[0]); | 2956 checkCellData(o[0]); |
2955 checkCellData(o[1]); | 2957 checkCellData(o[1]); |
2956 } | 2958 } |
2957 | 2959 |
2958 core.int buildCounterRowData = 0; | 2960 core.int buildCounterRowData = 0; |
2959 buildRowData() { | 2961 buildRowData() { |
2960 var o = new api.RowData(); | 2962 var o = new api.RowData(); |
2961 buildCounterRowData++; | 2963 buildCounterRowData++; |
2962 if (buildCounterRowData < 3) { | 2964 if (buildCounterRowData < 3) { |
2963 o.values = buildUnnamed392(); | 2965 o.values = buildUnnamed413(); |
2964 } | 2966 } |
2965 buildCounterRowData--; | 2967 buildCounterRowData--; |
2966 return o; | 2968 return o; |
2967 } | 2969 } |
2968 | 2970 |
2969 checkRowData(api.RowData o) { | 2971 checkRowData(api.RowData o) { |
2970 buildCounterRowData++; | 2972 buildCounterRowData++; |
2971 if (buildCounterRowData < 3) { | 2973 if (buildCounterRowData < 3) { |
2972 checkUnnamed392(o.values); | 2974 checkUnnamed413(o.values); |
2973 } | 2975 } |
2974 buildCounterRowData--; | 2976 buildCounterRowData--; |
2975 } | 2977 } |
2976 | 2978 |
2977 core.int buildCounterSetBasicFilterRequest = 0; | 2979 core.int buildCounterSetBasicFilterRequest = 0; |
2978 buildSetBasicFilterRequest() { | 2980 buildSetBasicFilterRequest() { |
2979 var o = new api.SetBasicFilterRequest(); | 2981 var o = new api.SetBasicFilterRequest(); |
2980 buildCounterSetBasicFilterRequest++; | 2982 buildCounterSetBasicFilterRequest++; |
2981 if (buildCounterSetBasicFilterRequest < 3) { | 2983 if (buildCounterSetBasicFilterRequest < 3) { |
2982 o.filter = buildBasicFilter(); | 2984 o.filter = buildBasicFilter(); |
(...skipping 24 matching lines...) Expand all Loading... |
3007 | 3009 |
3008 checkSetDataValidationRequest(api.SetDataValidationRequest o) { | 3010 checkSetDataValidationRequest(api.SetDataValidationRequest o) { |
3009 buildCounterSetDataValidationRequest++; | 3011 buildCounterSetDataValidationRequest++; |
3010 if (buildCounterSetDataValidationRequest < 3) { | 3012 if (buildCounterSetDataValidationRequest < 3) { |
3011 checkGridRange(o.range); | 3013 checkGridRange(o.range); |
3012 checkDataValidationRule(o.rule); | 3014 checkDataValidationRule(o.rule); |
3013 } | 3015 } |
3014 buildCounterSetDataValidationRequest--; | 3016 buildCounterSetDataValidationRequest--; |
3015 } | 3017 } |
3016 | 3018 |
3017 buildUnnamed393() { | 3019 buildUnnamed414() { |
3018 var o = new core.List<api.BandedRange>(); | 3020 var o = new core.List<api.BandedRange>(); |
3019 o.add(buildBandedRange()); | 3021 o.add(buildBandedRange()); |
3020 o.add(buildBandedRange()); | 3022 o.add(buildBandedRange()); |
3021 return o; | 3023 return o; |
3022 } | 3024 } |
3023 | 3025 |
3024 checkUnnamed393(core.List<api.BandedRange> o) { | 3026 checkUnnamed414(core.List<api.BandedRange> o) { |
3025 unittest.expect(o, unittest.hasLength(2)); | 3027 unittest.expect(o, unittest.hasLength(2)); |
3026 checkBandedRange(o[0]); | 3028 checkBandedRange(o[0]); |
3027 checkBandedRange(o[1]); | 3029 checkBandedRange(o[1]); |
3028 } | 3030 } |
3029 | 3031 |
3030 buildUnnamed394() { | 3032 buildUnnamed415() { |
3031 var o = new core.List<api.EmbeddedChart>(); | 3033 var o = new core.List<api.EmbeddedChart>(); |
3032 o.add(buildEmbeddedChart()); | 3034 o.add(buildEmbeddedChart()); |
3033 o.add(buildEmbeddedChart()); | 3035 o.add(buildEmbeddedChart()); |
3034 return o; | 3036 return o; |
3035 } | 3037 } |
3036 | 3038 |
3037 checkUnnamed394(core.List<api.EmbeddedChart> o) { | 3039 checkUnnamed415(core.List<api.EmbeddedChart> o) { |
3038 unittest.expect(o, unittest.hasLength(2)); | 3040 unittest.expect(o, unittest.hasLength(2)); |
3039 checkEmbeddedChart(o[0]); | 3041 checkEmbeddedChart(o[0]); |
3040 checkEmbeddedChart(o[1]); | 3042 checkEmbeddedChart(o[1]); |
3041 } | 3043 } |
3042 | 3044 |
3043 buildUnnamed395() { | 3045 buildUnnamed416() { |
3044 var o = new core.List<api.ConditionalFormatRule>(); | 3046 var o = new core.List<api.ConditionalFormatRule>(); |
3045 o.add(buildConditionalFormatRule()); | 3047 o.add(buildConditionalFormatRule()); |
3046 o.add(buildConditionalFormatRule()); | 3048 o.add(buildConditionalFormatRule()); |
3047 return o; | 3049 return o; |
3048 } | 3050 } |
3049 | 3051 |
3050 checkUnnamed395(core.List<api.ConditionalFormatRule> o) { | 3052 checkUnnamed416(core.List<api.ConditionalFormatRule> o) { |
3051 unittest.expect(o, unittest.hasLength(2)); | 3053 unittest.expect(o, unittest.hasLength(2)); |
3052 checkConditionalFormatRule(o[0]); | 3054 checkConditionalFormatRule(o[0]); |
3053 checkConditionalFormatRule(o[1]); | 3055 checkConditionalFormatRule(o[1]); |
3054 } | 3056 } |
3055 | 3057 |
3056 buildUnnamed396() { | 3058 buildUnnamed417() { |
3057 var o = new core.List<api.GridData>(); | 3059 var o = new core.List<api.GridData>(); |
3058 o.add(buildGridData()); | 3060 o.add(buildGridData()); |
3059 o.add(buildGridData()); | 3061 o.add(buildGridData()); |
3060 return o; | 3062 return o; |
3061 } | 3063 } |
3062 | 3064 |
3063 checkUnnamed396(core.List<api.GridData> o) { | 3065 checkUnnamed417(core.List<api.GridData> o) { |
3064 unittest.expect(o, unittest.hasLength(2)); | 3066 unittest.expect(o, unittest.hasLength(2)); |
3065 checkGridData(o[0]); | 3067 checkGridData(o[0]); |
3066 checkGridData(o[1]); | 3068 checkGridData(o[1]); |
3067 } | 3069 } |
3068 | 3070 |
3069 buildUnnamed397() { | 3071 buildUnnamed418() { |
3070 var o = new core.List<api.FilterView>(); | 3072 var o = new core.List<api.FilterView>(); |
3071 o.add(buildFilterView()); | 3073 o.add(buildFilterView()); |
3072 o.add(buildFilterView()); | 3074 o.add(buildFilterView()); |
3073 return o; | 3075 return o; |
3074 } | 3076 } |
3075 | 3077 |
3076 checkUnnamed397(core.List<api.FilterView> o) { | 3078 checkUnnamed418(core.List<api.FilterView> o) { |
3077 unittest.expect(o, unittest.hasLength(2)); | 3079 unittest.expect(o, unittest.hasLength(2)); |
3078 checkFilterView(o[0]); | 3080 checkFilterView(o[0]); |
3079 checkFilterView(o[1]); | 3081 checkFilterView(o[1]); |
3080 } | 3082 } |
3081 | 3083 |
3082 buildUnnamed398() { | 3084 buildUnnamed419() { |
3083 var o = new core.List<api.GridRange>(); | 3085 var o = new core.List<api.GridRange>(); |
3084 o.add(buildGridRange()); | 3086 o.add(buildGridRange()); |
3085 o.add(buildGridRange()); | 3087 o.add(buildGridRange()); |
3086 return o; | 3088 return o; |
3087 } | 3089 } |
3088 | 3090 |
3089 checkUnnamed398(core.List<api.GridRange> o) { | 3091 checkUnnamed419(core.List<api.GridRange> o) { |
3090 unittest.expect(o, unittest.hasLength(2)); | 3092 unittest.expect(o, unittest.hasLength(2)); |
3091 checkGridRange(o[0]); | 3093 checkGridRange(o[0]); |
3092 checkGridRange(o[1]); | 3094 checkGridRange(o[1]); |
3093 } | 3095 } |
3094 | 3096 |
3095 buildUnnamed399() { | 3097 buildUnnamed420() { |
3096 var o = new core.List<api.ProtectedRange>(); | 3098 var o = new core.List<api.ProtectedRange>(); |
3097 o.add(buildProtectedRange()); | 3099 o.add(buildProtectedRange()); |
3098 o.add(buildProtectedRange()); | 3100 o.add(buildProtectedRange()); |
3099 return o; | 3101 return o; |
3100 } | 3102 } |
3101 | 3103 |
3102 checkUnnamed399(core.List<api.ProtectedRange> o) { | 3104 checkUnnamed420(core.List<api.ProtectedRange> o) { |
3103 unittest.expect(o, unittest.hasLength(2)); | 3105 unittest.expect(o, unittest.hasLength(2)); |
3104 checkProtectedRange(o[0]); | 3106 checkProtectedRange(o[0]); |
3105 checkProtectedRange(o[1]); | 3107 checkProtectedRange(o[1]); |
3106 } | 3108 } |
3107 | 3109 |
3108 core.int buildCounterSheet = 0; | 3110 core.int buildCounterSheet = 0; |
3109 buildSheet() { | 3111 buildSheet() { |
3110 var o = new api.Sheet(); | 3112 var o = new api.Sheet(); |
3111 buildCounterSheet++; | 3113 buildCounterSheet++; |
3112 if (buildCounterSheet < 3) { | 3114 if (buildCounterSheet < 3) { |
3113 o.bandedRanges = buildUnnamed393(); | 3115 o.bandedRanges = buildUnnamed414(); |
3114 o.basicFilter = buildBasicFilter(); | 3116 o.basicFilter = buildBasicFilter(); |
3115 o.charts = buildUnnamed394(); | 3117 o.charts = buildUnnamed415(); |
3116 o.conditionalFormats = buildUnnamed395(); | 3118 o.conditionalFormats = buildUnnamed416(); |
3117 o.data = buildUnnamed396(); | 3119 o.data = buildUnnamed417(); |
3118 o.filterViews = buildUnnamed397(); | 3120 o.filterViews = buildUnnamed418(); |
3119 o.merges = buildUnnamed398(); | 3121 o.merges = buildUnnamed419(); |
3120 o.properties = buildSheetProperties(); | 3122 o.properties = buildSheetProperties(); |
3121 o.protectedRanges = buildUnnamed399(); | 3123 o.protectedRanges = buildUnnamed420(); |
3122 } | 3124 } |
3123 buildCounterSheet--; | 3125 buildCounterSheet--; |
3124 return o; | 3126 return o; |
3125 } | 3127 } |
3126 | 3128 |
3127 checkSheet(api.Sheet o) { | 3129 checkSheet(api.Sheet o) { |
3128 buildCounterSheet++; | 3130 buildCounterSheet++; |
3129 if (buildCounterSheet < 3) { | 3131 if (buildCounterSheet < 3) { |
3130 checkUnnamed393(o.bandedRanges); | 3132 checkUnnamed414(o.bandedRanges); |
3131 checkBasicFilter(o.basicFilter); | 3133 checkBasicFilter(o.basicFilter); |
3132 checkUnnamed394(o.charts); | 3134 checkUnnamed415(o.charts); |
3133 checkUnnamed395(o.conditionalFormats); | 3135 checkUnnamed416(o.conditionalFormats); |
3134 checkUnnamed396(o.data); | 3136 checkUnnamed417(o.data); |
3135 checkUnnamed397(o.filterViews); | 3137 checkUnnamed418(o.filterViews); |
3136 checkUnnamed398(o.merges); | 3138 checkUnnamed419(o.merges); |
3137 checkSheetProperties(o.properties); | 3139 checkSheetProperties(o.properties); |
3138 checkUnnamed399(o.protectedRanges); | 3140 checkUnnamed420(o.protectedRanges); |
3139 } | 3141 } |
3140 buildCounterSheet--; | 3142 buildCounterSheet--; |
3141 } | 3143 } |
3142 | 3144 |
3143 core.int buildCounterSheetProperties = 0; | 3145 core.int buildCounterSheetProperties = 0; |
3144 buildSheetProperties() { | 3146 buildSheetProperties() { |
3145 var o = new api.SheetProperties(); | 3147 var o = new api.SheetProperties(); |
3146 buildCounterSheetProperties++; | 3148 buildCounterSheetProperties++; |
3147 if (buildCounterSheetProperties < 3) { | 3149 if (buildCounterSheetProperties < 3) { |
3148 o.gridProperties = buildGridProperties(); | 3150 o.gridProperties = buildGridProperties(); |
(...skipping 17 matching lines...) Expand all Loading... |
3166 unittest.expect(o.index, unittest.equals(42)); | 3168 unittest.expect(o.index, unittest.equals(42)); |
3167 unittest.expect(o.rightToLeft, unittest.isTrue); | 3169 unittest.expect(o.rightToLeft, unittest.isTrue); |
3168 unittest.expect(o.sheetId, unittest.equals(42)); | 3170 unittest.expect(o.sheetId, unittest.equals(42)); |
3169 unittest.expect(o.sheetType, unittest.equals('foo')); | 3171 unittest.expect(o.sheetType, unittest.equals('foo')); |
3170 checkColor(o.tabColor); | 3172 checkColor(o.tabColor); |
3171 unittest.expect(o.title, unittest.equals('foo')); | 3173 unittest.expect(o.title, unittest.equals('foo')); |
3172 } | 3174 } |
3173 buildCounterSheetProperties--; | 3175 buildCounterSheetProperties--; |
3174 } | 3176 } |
3175 | 3177 |
3176 buildUnnamed400() { | 3178 buildUnnamed421() { |
3177 var o = new core.List<api.SortSpec>(); | 3179 var o = new core.List<api.SortSpec>(); |
3178 o.add(buildSortSpec()); | 3180 o.add(buildSortSpec()); |
3179 o.add(buildSortSpec()); | 3181 o.add(buildSortSpec()); |
3180 return o; | 3182 return o; |
3181 } | 3183 } |
3182 | 3184 |
3183 checkUnnamed400(core.List<api.SortSpec> o) { | 3185 checkUnnamed421(core.List<api.SortSpec> o) { |
3184 unittest.expect(o, unittest.hasLength(2)); | 3186 unittest.expect(o, unittest.hasLength(2)); |
3185 checkSortSpec(o[0]); | 3187 checkSortSpec(o[0]); |
3186 checkSortSpec(o[1]); | 3188 checkSortSpec(o[1]); |
3187 } | 3189 } |
3188 | 3190 |
3189 core.int buildCounterSortRangeRequest = 0; | 3191 core.int buildCounterSortRangeRequest = 0; |
3190 buildSortRangeRequest() { | 3192 buildSortRangeRequest() { |
3191 var o = new api.SortRangeRequest(); | 3193 var o = new api.SortRangeRequest(); |
3192 buildCounterSortRangeRequest++; | 3194 buildCounterSortRangeRequest++; |
3193 if (buildCounterSortRangeRequest < 3) { | 3195 if (buildCounterSortRangeRequest < 3) { |
3194 o.range = buildGridRange(); | 3196 o.range = buildGridRange(); |
3195 o.sortSpecs = buildUnnamed400(); | 3197 o.sortSpecs = buildUnnamed421(); |
3196 } | 3198 } |
3197 buildCounterSortRangeRequest--; | 3199 buildCounterSortRangeRequest--; |
3198 return o; | 3200 return o; |
3199 } | 3201 } |
3200 | 3202 |
3201 checkSortRangeRequest(api.SortRangeRequest o) { | 3203 checkSortRangeRequest(api.SortRangeRequest o) { |
3202 buildCounterSortRangeRequest++; | 3204 buildCounterSortRangeRequest++; |
3203 if (buildCounterSortRangeRequest < 3) { | 3205 if (buildCounterSortRangeRequest < 3) { |
3204 checkGridRange(o.range); | 3206 checkGridRange(o.range); |
3205 checkUnnamed400(o.sortSpecs); | 3207 checkUnnamed421(o.sortSpecs); |
3206 } | 3208 } |
3207 buildCounterSortRangeRequest--; | 3209 buildCounterSortRangeRequest--; |
3208 } | 3210 } |
3209 | 3211 |
3210 core.int buildCounterSortSpec = 0; | 3212 core.int buildCounterSortSpec = 0; |
3211 buildSortSpec() { | 3213 buildSortSpec() { |
3212 var o = new api.SortSpec(); | 3214 var o = new api.SortSpec(); |
3213 buildCounterSortSpec++; | 3215 buildCounterSortSpec++; |
3214 if (buildCounterSortSpec < 3) { | 3216 if (buildCounterSortSpec < 3) { |
3215 o.dimensionIndex = 42; | 3217 o.dimensionIndex = 42; |
(...skipping 28 matching lines...) Expand all Loading... |
3244 checkSourceAndDestination(api.SourceAndDestination o) { | 3246 checkSourceAndDestination(api.SourceAndDestination o) { |
3245 buildCounterSourceAndDestination++; | 3247 buildCounterSourceAndDestination++; |
3246 if (buildCounterSourceAndDestination < 3) { | 3248 if (buildCounterSourceAndDestination < 3) { |
3247 unittest.expect(o.dimension, unittest.equals('foo')); | 3249 unittest.expect(o.dimension, unittest.equals('foo')); |
3248 unittest.expect(o.fillLength, unittest.equals(42)); | 3250 unittest.expect(o.fillLength, unittest.equals(42)); |
3249 checkGridRange(o.source); | 3251 checkGridRange(o.source); |
3250 } | 3252 } |
3251 buildCounterSourceAndDestination--; | 3253 buildCounterSourceAndDestination--; |
3252 } | 3254 } |
3253 | 3255 |
3254 buildUnnamed401() { | 3256 buildUnnamed422() { |
3255 var o = new core.List<api.NamedRange>(); | 3257 var o = new core.List<api.NamedRange>(); |
3256 o.add(buildNamedRange()); | 3258 o.add(buildNamedRange()); |
3257 o.add(buildNamedRange()); | 3259 o.add(buildNamedRange()); |
3258 return o; | 3260 return o; |
3259 } | 3261 } |
3260 | 3262 |
3261 checkUnnamed401(core.List<api.NamedRange> o) { | 3263 checkUnnamed422(core.List<api.NamedRange> o) { |
3262 unittest.expect(o, unittest.hasLength(2)); | 3264 unittest.expect(o, unittest.hasLength(2)); |
3263 checkNamedRange(o[0]); | 3265 checkNamedRange(o[0]); |
3264 checkNamedRange(o[1]); | 3266 checkNamedRange(o[1]); |
3265 } | 3267 } |
3266 | 3268 |
3267 buildUnnamed402() { | 3269 buildUnnamed423() { |
3268 var o = new core.List<api.Sheet>(); | 3270 var o = new core.List<api.Sheet>(); |
3269 o.add(buildSheet()); | 3271 o.add(buildSheet()); |
3270 o.add(buildSheet()); | 3272 o.add(buildSheet()); |
3271 return o; | 3273 return o; |
3272 } | 3274 } |
3273 | 3275 |
3274 checkUnnamed402(core.List<api.Sheet> o) { | 3276 checkUnnamed423(core.List<api.Sheet> o) { |
3275 unittest.expect(o, unittest.hasLength(2)); | 3277 unittest.expect(o, unittest.hasLength(2)); |
3276 checkSheet(o[0]); | 3278 checkSheet(o[0]); |
3277 checkSheet(o[1]); | 3279 checkSheet(o[1]); |
3278 } | 3280 } |
3279 | 3281 |
3280 core.int buildCounterSpreadsheet = 0; | 3282 core.int buildCounterSpreadsheet = 0; |
3281 buildSpreadsheet() { | 3283 buildSpreadsheet() { |
3282 var o = new api.Spreadsheet(); | 3284 var o = new api.Spreadsheet(); |
3283 buildCounterSpreadsheet++; | 3285 buildCounterSpreadsheet++; |
3284 if (buildCounterSpreadsheet < 3) { | 3286 if (buildCounterSpreadsheet < 3) { |
3285 o.namedRanges = buildUnnamed401(); | 3287 o.namedRanges = buildUnnamed422(); |
3286 o.properties = buildSpreadsheetProperties(); | 3288 o.properties = buildSpreadsheetProperties(); |
3287 o.sheets = buildUnnamed402(); | 3289 o.sheets = buildUnnamed423(); |
3288 o.spreadsheetId = "foo"; | 3290 o.spreadsheetId = "foo"; |
3289 o.spreadsheetUrl = "foo"; | 3291 o.spreadsheetUrl = "foo"; |
3290 } | 3292 } |
3291 buildCounterSpreadsheet--; | 3293 buildCounterSpreadsheet--; |
3292 return o; | 3294 return o; |
3293 } | 3295 } |
3294 | 3296 |
3295 checkSpreadsheet(api.Spreadsheet o) { | 3297 checkSpreadsheet(api.Spreadsheet o) { |
3296 buildCounterSpreadsheet++; | 3298 buildCounterSpreadsheet++; |
3297 if (buildCounterSpreadsheet < 3) { | 3299 if (buildCounterSpreadsheet < 3) { |
3298 checkUnnamed401(o.namedRanges); | 3300 checkUnnamed422(o.namedRanges); |
3299 checkSpreadsheetProperties(o.properties); | 3301 checkSpreadsheetProperties(o.properties); |
3300 checkUnnamed402(o.sheets); | 3302 checkUnnamed423(o.sheets); |
3301 unittest.expect(o.spreadsheetId, unittest.equals('foo')); | 3303 unittest.expect(o.spreadsheetId, unittest.equals('foo')); |
3302 unittest.expect(o.spreadsheetUrl, unittest.equals('foo')); | 3304 unittest.expect(o.spreadsheetUrl, unittest.equals('foo')); |
3303 } | 3305 } |
3304 buildCounterSpreadsheet--; | 3306 buildCounterSpreadsheet--; |
3305 } | 3307 } |
3306 | 3308 |
3307 core.int buildCounterSpreadsheetProperties = 0; | 3309 core.int buildCounterSpreadsheetProperties = 0; |
3308 buildSpreadsheetProperties() { | 3310 buildSpreadsheetProperties() { |
3309 var o = new api.SpreadsheetProperties(); | 3311 var o = new api.SpreadsheetProperties(); |
3310 buildCounterSpreadsheetProperties++; | 3312 buildCounterSpreadsheetProperties++; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3378 | 3380 |
3379 checkTextFormatRun(api.TextFormatRun o) { | 3381 checkTextFormatRun(api.TextFormatRun o) { |
3380 buildCounterTextFormatRun++; | 3382 buildCounterTextFormatRun++; |
3381 if (buildCounterTextFormatRun < 3) { | 3383 if (buildCounterTextFormatRun < 3) { |
3382 checkTextFormat(o.format); | 3384 checkTextFormat(o.format); |
3383 unittest.expect(o.startIndex, unittest.equals(42)); | 3385 unittest.expect(o.startIndex, unittest.equals(42)); |
3384 } | 3386 } |
3385 buildCounterTextFormatRun--; | 3387 buildCounterTextFormatRun--; |
3386 } | 3388 } |
3387 | 3389 |
| 3390 core.int buildCounterTextRotation = 0; |
| 3391 buildTextRotation() { |
| 3392 var o = new api.TextRotation(); |
| 3393 buildCounterTextRotation++; |
| 3394 if (buildCounterTextRotation < 3) { |
| 3395 o.angle = 42; |
| 3396 o.vertical = true; |
| 3397 } |
| 3398 buildCounterTextRotation--; |
| 3399 return o; |
| 3400 } |
| 3401 |
| 3402 checkTextRotation(api.TextRotation o) { |
| 3403 buildCounterTextRotation++; |
| 3404 if (buildCounterTextRotation < 3) { |
| 3405 unittest.expect(o.angle, unittest.equals(42)); |
| 3406 unittest.expect(o.vertical, unittest.isTrue); |
| 3407 } |
| 3408 buildCounterTextRotation--; |
| 3409 } |
| 3410 |
3388 core.int buildCounterTextToColumnsRequest = 0; | 3411 core.int buildCounterTextToColumnsRequest = 0; |
3389 buildTextToColumnsRequest() { | 3412 buildTextToColumnsRequest() { |
3390 var o = new api.TextToColumnsRequest(); | 3413 var o = new api.TextToColumnsRequest(); |
3391 buildCounterTextToColumnsRequest++; | 3414 buildCounterTextToColumnsRequest++; |
3392 if (buildCounterTextToColumnsRequest < 3) { | 3415 if (buildCounterTextToColumnsRequest < 3) { |
3393 o.delimiter = "foo"; | 3416 o.delimiter = "foo"; |
3394 o.delimiterType = "foo"; | 3417 o.delimiterType = "foo"; |
3395 o.source = buildGridRange(); | 3418 o.source = buildGridRange(); |
3396 } | 3419 } |
3397 buildCounterTextToColumnsRequest--; | 3420 buildCounterTextToColumnsRequest--; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3472 checkBorder(o.innerHorizontal); | 3495 checkBorder(o.innerHorizontal); |
3473 checkBorder(o.innerVertical); | 3496 checkBorder(o.innerVertical); |
3474 checkBorder(o.left); | 3497 checkBorder(o.left); |
3475 checkGridRange(o.range); | 3498 checkGridRange(o.range); |
3476 checkBorder(o.right); | 3499 checkBorder(o.right); |
3477 checkBorder(o.top); | 3500 checkBorder(o.top); |
3478 } | 3501 } |
3479 buildCounterUpdateBordersRequest--; | 3502 buildCounterUpdateBordersRequest--; |
3480 } | 3503 } |
3481 | 3504 |
3482 buildUnnamed403() { | 3505 buildUnnamed424() { |
3483 var o = new core.List<api.RowData>(); | 3506 var o = new core.List<api.RowData>(); |
3484 o.add(buildRowData()); | 3507 o.add(buildRowData()); |
3485 o.add(buildRowData()); | 3508 o.add(buildRowData()); |
3486 return o; | 3509 return o; |
3487 } | 3510 } |
3488 | 3511 |
3489 checkUnnamed403(core.List<api.RowData> o) { | 3512 checkUnnamed424(core.List<api.RowData> o) { |
3490 unittest.expect(o, unittest.hasLength(2)); | 3513 unittest.expect(o, unittest.hasLength(2)); |
3491 checkRowData(o[0]); | 3514 checkRowData(o[0]); |
3492 checkRowData(o[1]); | 3515 checkRowData(o[1]); |
3493 } | 3516 } |
3494 | 3517 |
3495 core.int buildCounterUpdateCellsRequest = 0; | 3518 core.int buildCounterUpdateCellsRequest = 0; |
3496 buildUpdateCellsRequest() { | 3519 buildUpdateCellsRequest() { |
3497 var o = new api.UpdateCellsRequest(); | 3520 var o = new api.UpdateCellsRequest(); |
3498 buildCounterUpdateCellsRequest++; | 3521 buildCounterUpdateCellsRequest++; |
3499 if (buildCounterUpdateCellsRequest < 3) { | 3522 if (buildCounterUpdateCellsRequest < 3) { |
3500 o.fields = "foo"; | 3523 o.fields = "foo"; |
3501 o.range = buildGridRange(); | 3524 o.range = buildGridRange(); |
3502 o.rows = buildUnnamed403(); | 3525 o.rows = buildUnnamed424(); |
3503 o.start = buildGridCoordinate(); | 3526 o.start = buildGridCoordinate(); |
3504 } | 3527 } |
3505 buildCounterUpdateCellsRequest--; | 3528 buildCounterUpdateCellsRequest--; |
3506 return o; | 3529 return o; |
3507 } | 3530 } |
3508 | 3531 |
3509 checkUpdateCellsRequest(api.UpdateCellsRequest o) { | 3532 checkUpdateCellsRequest(api.UpdateCellsRequest o) { |
3510 buildCounterUpdateCellsRequest++; | 3533 buildCounterUpdateCellsRequest++; |
3511 if (buildCounterUpdateCellsRequest < 3) { | 3534 if (buildCounterUpdateCellsRequest < 3) { |
3512 unittest.expect(o.fields, unittest.equals('foo')); | 3535 unittest.expect(o.fields, unittest.equals('foo')); |
3513 checkGridRange(o.range); | 3536 checkGridRange(o.range); |
3514 checkUnnamed403(o.rows); | 3537 checkUnnamed424(o.rows); |
3515 checkGridCoordinate(o.start); | 3538 checkGridCoordinate(o.start); |
3516 } | 3539 } |
3517 buildCounterUpdateCellsRequest--; | 3540 buildCounterUpdateCellsRequest--; |
3518 } | 3541 } |
3519 | 3542 |
3520 core.int buildCounterUpdateChartSpecRequest = 0; | 3543 core.int buildCounterUpdateChartSpecRequest = 0; |
3521 buildUpdateChartSpecRequest() { | 3544 buildUpdateChartSpecRequest() { |
3522 var o = new api.UpdateChartSpecRequest(); | 3545 var o = new api.UpdateChartSpecRequest(); |
3523 buildCounterUpdateChartSpecRequest++; | 3546 buildCounterUpdateChartSpecRequest++; |
3524 if (buildCounterUpdateChartSpecRequest < 3) { | 3547 if (buildCounterUpdateChartSpecRequest < 3) { |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3780 unittest.expect(o.spreadsheetId, unittest.equals('foo')); | 3803 unittest.expect(o.spreadsheetId, unittest.equals('foo')); |
3781 unittest.expect(o.updatedCells, unittest.equals(42)); | 3804 unittest.expect(o.updatedCells, unittest.equals(42)); |
3782 unittest.expect(o.updatedColumns, unittest.equals(42)); | 3805 unittest.expect(o.updatedColumns, unittest.equals(42)); |
3783 checkValueRange(o.updatedData); | 3806 checkValueRange(o.updatedData); |
3784 unittest.expect(o.updatedRange, unittest.equals('foo')); | 3807 unittest.expect(o.updatedRange, unittest.equals('foo')); |
3785 unittest.expect(o.updatedRows, unittest.equals(42)); | 3808 unittest.expect(o.updatedRows, unittest.equals(42)); |
3786 } | 3809 } |
3787 buildCounterUpdateValuesResponse--; | 3810 buildCounterUpdateValuesResponse--; |
3788 } | 3811 } |
3789 | 3812 |
3790 buildUnnamed404() { | 3813 buildUnnamed425() { |
3791 var o = new core.List<core.Object>(); | 3814 var o = new core.List<core.Object>(); |
3792 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 3815 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
3793 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 3816 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
3794 return o; | 3817 return o; |
3795 } | 3818 } |
3796 | 3819 |
3797 checkUnnamed404(core.List<core.Object> o) { | 3820 checkUnnamed425(core.List<core.Object> o) { |
3798 unittest.expect(o, unittest.hasLength(2)); | 3821 unittest.expect(o, unittest.hasLength(2)); |
3799 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(
3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u
nittest.equals('foo')); | 3822 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(
3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u
nittest.equals('foo')); |
3800 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(
3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u
nittest.equals('foo')); | 3823 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(
3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u
nittest.equals('foo')); |
3801 } | 3824 } |
3802 | 3825 |
3803 buildUnnamed405() { | 3826 buildUnnamed426() { |
3804 var o = new core.List<core.List<core.Object>>(); | 3827 var o = new core.List<core.List<core.Object>>(); |
3805 o.add(buildUnnamed404()); | 3828 o.add(buildUnnamed425()); |
3806 o.add(buildUnnamed404()); | 3829 o.add(buildUnnamed425()); |
3807 return o; | 3830 return o; |
3808 } | 3831 } |
3809 | 3832 |
3810 checkUnnamed405(core.List<core.List<core.Object>> o) { | 3833 checkUnnamed426(core.List<core.List<core.Object>> o) { |
3811 unittest.expect(o, unittest.hasLength(2)); | 3834 unittest.expect(o, unittest.hasLength(2)); |
3812 checkUnnamed404(o[0]); | 3835 checkUnnamed425(o[0]); |
3813 checkUnnamed404(o[1]); | 3836 checkUnnamed425(o[1]); |
3814 } | 3837 } |
3815 | 3838 |
3816 core.int buildCounterValueRange = 0; | 3839 core.int buildCounterValueRange = 0; |
3817 buildValueRange() { | 3840 buildValueRange() { |
3818 var o = new api.ValueRange(); | 3841 var o = new api.ValueRange(); |
3819 buildCounterValueRange++; | 3842 buildCounterValueRange++; |
3820 if (buildCounterValueRange < 3) { | 3843 if (buildCounterValueRange < 3) { |
3821 o.majorDimension = "foo"; | 3844 o.majorDimension = "foo"; |
3822 o.range = "foo"; | 3845 o.range = "foo"; |
3823 o.values = buildUnnamed405(); | 3846 o.values = buildUnnamed426(); |
3824 } | 3847 } |
3825 buildCounterValueRange--; | 3848 buildCounterValueRange--; |
3826 return o; | 3849 return o; |
3827 } | 3850 } |
3828 | 3851 |
3829 checkValueRange(api.ValueRange o) { | 3852 checkValueRange(api.ValueRange o) { |
3830 buildCounterValueRange++; | 3853 buildCounterValueRange++; |
3831 if (buildCounterValueRange < 3) { | 3854 if (buildCounterValueRange < 3) { |
3832 unittest.expect(o.majorDimension, unittest.equals('foo')); | 3855 unittest.expect(o.majorDimension, unittest.equals('foo')); |
3833 unittest.expect(o.range, unittest.equals('foo')); | 3856 unittest.expect(o.range, unittest.equals('foo')); |
3834 checkUnnamed405(o.values); | 3857 checkUnnamed426(o.values); |
3835 } | 3858 } |
3836 buildCounterValueRange--; | 3859 buildCounterValueRange--; |
3837 } | 3860 } |
3838 | 3861 |
3839 buildUnnamed406() { | 3862 buildUnnamed427() { |
3840 var o = new core.List<core.String>(); | 3863 var o = new core.List<core.String>(); |
3841 o.add("foo"); | 3864 o.add("foo"); |
3842 o.add("foo"); | 3865 o.add("foo"); |
3843 return o; | 3866 return o; |
3844 } | 3867 } |
3845 | 3868 |
3846 checkUnnamed406(core.List<core.String> o) { | 3869 checkUnnamed427(core.List<core.String> o) { |
3847 unittest.expect(o, unittest.hasLength(2)); | 3870 unittest.expect(o, unittest.hasLength(2)); |
3848 unittest.expect(o[0], unittest.equals('foo')); | 3871 unittest.expect(o[0], unittest.equals('foo')); |
3849 unittest.expect(o[1], unittest.equals('foo')); | 3872 unittest.expect(o[1], unittest.equals('foo')); |
3850 } | 3873 } |
3851 | 3874 |
3852 buildUnnamed407() { | 3875 buildUnnamed428() { |
3853 var o = new core.List<core.String>(); | 3876 var o = new core.List<core.String>(); |
3854 o.add("foo"); | 3877 o.add("foo"); |
3855 o.add("foo"); | 3878 o.add("foo"); |
3856 return o; | 3879 return o; |
3857 } | 3880 } |
3858 | 3881 |
3859 checkUnnamed407(core.List<core.String> o) { | 3882 checkUnnamed428(core.List<core.String> o) { |
3860 unittest.expect(o, unittest.hasLength(2)); | 3883 unittest.expect(o, unittest.hasLength(2)); |
3861 unittest.expect(o[0], unittest.equals('foo')); | 3884 unittest.expect(o[0], unittest.equals('foo')); |
3862 unittest.expect(o[1], unittest.equals('foo')); | 3885 unittest.expect(o[1], unittest.equals('foo')); |
3863 } | 3886 } |
3864 | 3887 |
3865 | 3888 |
3866 main() { | 3889 main() { |
3867 unittest.group("obj-schema-AddBandingRequest", () { | 3890 unittest.group("obj-schema-AddBandingRequest", () { |
3868 unittest.test("to-json--from-json", () { | 3891 unittest.test("to-json--from-json", () { |
3869 var o = buildAddBandingRequest(); | 3892 var o = buildAddBandingRequest(); |
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4892 | 4915 |
4893 unittest.group("obj-schema-TextFormatRun", () { | 4916 unittest.group("obj-schema-TextFormatRun", () { |
4894 unittest.test("to-json--from-json", () { | 4917 unittest.test("to-json--from-json", () { |
4895 var o = buildTextFormatRun(); | 4918 var o = buildTextFormatRun(); |
4896 var od = new api.TextFormatRun.fromJson(o.toJson()); | 4919 var od = new api.TextFormatRun.fromJson(o.toJson()); |
4897 checkTextFormatRun(od); | 4920 checkTextFormatRun(od); |
4898 }); | 4921 }); |
4899 }); | 4922 }); |
4900 | 4923 |
4901 | 4924 |
| 4925 unittest.group("obj-schema-TextRotation", () { |
| 4926 unittest.test("to-json--from-json", () { |
| 4927 var o = buildTextRotation(); |
| 4928 var od = new api.TextRotation.fromJson(o.toJson()); |
| 4929 checkTextRotation(od); |
| 4930 }); |
| 4931 }); |
| 4932 |
| 4933 |
4902 unittest.group("obj-schema-TextToColumnsRequest", () { | 4934 unittest.group("obj-schema-TextToColumnsRequest", () { |
4903 unittest.test("to-json--from-json", () { | 4935 unittest.test("to-json--from-json", () { |
4904 var o = buildTextToColumnsRequest(); | 4936 var o = buildTextToColumnsRequest(); |
4905 var od = new api.TextToColumnsRequest.fromJson(o.toJson()); | 4937 var od = new api.TextToColumnsRequest.fromJson(o.toJson()); |
4906 checkTextToColumnsRequest(od); | 4938 checkTextToColumnsRequest(od); |
4907 }); | 4939 }); |
4908 }); | 4940 }); |
4909 | 4941 |
4910 | 4942 |
4911 unittest.group("obj-schema-UnmergeCellsRequest", () { | 4943 unittest.group("obj-schema-UnmergeCellsRequest", () { |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5162 res.create(arg_request).then(unittest.expectAsync(((api.Spreadsheet respon
se) { | 5194 res.create(arg_request).then(unittest.expectAsync(((api.Spreadsheet respon
se) { |
5163 checkSpreadsheet(response); | 5195 checkSpreadsheet(response); |
5164 }))); | 5196 }))); |
5165 }); | 5197 }); |
5166 | 5198 |
5167 unittest.test("method--get", () { | 5199 unittest.test("method--get", () { |
5168 | 5200 |
5169 var mock = new HttpServerMock(); | 5201 var mock = new HttpServerMock(); |
5170 api.SpreadsheetsResourceApi res = new api.SheetsApi(mock).spreadsheets; | 5202 api.SpreadsheetsResourceApi res = new api.SheetsApi(mock).spreadsheets; |
5171 var arg_spreadsheetId = "foo"; | 5203 var arg_spreadsheetId = "foo"; |
5172 var arg_ranges = buildUnnamed406(); | 5204 var arg_ranges = buildUnnamed427(); |
5173 var arg_includeGridData = true; | 5205 var arg_includeGridData = true; |
5174 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5206 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5175 var path = (req.url).path; | 5207 var path = (req.url).path; |
5176 var pathOffset = 0; | 5208 var pathOffset = 0; |
5177 var index; | 5209 var index; |
5178 var subPart; | 5210 var subPart; |
5179 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5211 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5180 pathOffset += 1; | 5212 pathOffset += 1; |
5181 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("v4/spreadsheets/")); | 5213 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("v4/spreadsheets/")); |
5182 pathOffset += 16; | 5214 pathOffset += 16; |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5412 res.batchClear(arg_request, arg_spreadsheetId).then(unittest.expectAsync((
(api.BatchClearValuesResponse response) { | 5444 res.batchClear(arg_request, arg_spreadsheetId).then(unittest.expectAsync((
(api.BatchClearValuesResponse response) { |
5413 checkBatchClearValuesResponse(response); | 5445 checkBatchClearValuesResponse(response); |
5414 }))); | 5446 }))); |
5415 }); | 5447 }); |
5416 | 5448 |
5417 unittest.test("method--batchGet", () { | 5449 unittest.test("method--batchGet", () { |
5418 | 5450 |
5419 var mock = new HttpServerMock(); | 5451 var mock = new HttpServerMock(); |
5420 api.SpreadsheetsValuesResourceApi res = new api.SheetsApi(mock).spreadshee
ts.values; | 5452 api.SpreadsheetsValuesResourceApi res = new api.SheetsApi(mock).spreadshee
ts.values; |
5421 var arg_spreadsheetId = "foo"; | 5453 var arg_spreadsheetId = "foo"; |
5422 var arg_ranges = buildUnnamed407(); | |
5423 var arg_majorDimension = "foo"; | |
5424 var arg_valueRenderOption = "foo"; | 5454 var arg_valueRenderOption = "foo"; |
5425 var arg_dateTimeRenderOption = "foo"; | 5455 var arg_dateTimeRenderOption = "foo"; |
| 5456 var arg_ranges = buildUnnamed428(); |
| 5457 var arg_majorDimension = "foo"; |
5426 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5458 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5427 var path = (req.url).path; | 5459 var path = (req.url).path; |
5428 var pathOffset = 0; | 5460 var pathOffset = 0; |
5429 var index; | 5461 var index; |
5430 var subPart; | 5462 var subPart; |
5431 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5463 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5432 pathOffset += 1; | 5464 pathOffset += 1; |
5433 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("v4/spreadsheets/")); | 5465 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("v4/spreadsheets/")); |
5434 pathOffset += 16; | 5466 pathOffset += 16; |
5435 index = path.indexOf("/values:batchGet", pathOffset); | 5467 index = path.indexOf("/values:batchGet", pathOffset); |
(...skipping 13 matching lines...) Expand all Loading... |
5449 if (n == "false") return false; | 5481 if (n == "false") return false; |
5450 if (n == null) return null; | 5482 if (n == null) return null; |
5451 throw new core.ArgumentError("Invalid boolean: $n"); | 5483 throw new core.ArgumentError("Invalid boolean: $n"); |
5452 } | 5484 } |
5453 if (query.length > 0) { | 5485 if (query.length > 0) { |
5454 for (var part in query.split("&")) { | 5486 for (var part in query.split("&")) { |
5455 var keyvalue = part.split("="); | 5487 var keyvalue = part.split("="); |
5456 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5488 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5457 } | 5489 } |
5458 } | 5490 } |
| 5491 unittest.expect(queryMap["valueRenderOption"].first, unittest.equals(arg
_valueRenderOption)); |
| 5492 unittest.expect(queryMap["dateTimeRenderOption"].first, unittest.equals(
arg_dateTimeRenderOption)); |
5459 unittest.expect(queryMap["ranges"], unittest.equals(arg_ranges)); | 5493 unittest.expect(queryMap["ranges"], unittest.equals(arg_ranges)); |
5460 unittest.expect(queryMap["majorDimension"].first, unittest.equals(arg_ma
jorDimension)); | 5494 unittest.expect(queryMap["majorDimension"].first, unittest.equals(arg_ma
jorDimension)); |
5461 unittest.expect(queryMap["valueRenderOption"].first, unittest.equals(arg
_valueRenderOption)); | |
5462 unittest.expect(queryMap["dateTimeRenderOption"].first, unittest.equals(
arg_dateTimeRenderOption)); | |
5463 | 5495 |
5464 | 5496 |
5465 var h = { | 5497 var h = { |
5466 "content-type" : "application/json; charset=utf-8", | 5498 "content-type" : "application/json; charset=utf-8", |
5467 }; | 5499 }; |
5468 var resp = convert.JSON.encode(buildBatchGetValuesResponse()); | 5500 var resp = convert.JSON.encode(buildBatchGetValuesResponse()); |
5469 return new async.Future.value(stringResponse(200, h, resp)); | 5501 return new async.Future.value(stringResponse(200, h, resp)); |
5470 }), true); | 5502 }), true); |
5471 res.batchGet(arg_spreadsheetId, ranges: arg_ranges, majorDimension: arg_ma
jorDimension, valueRenderOption: arg_valueRenderOption, dateTimeRenderOption: ar
g_dateTimeRenderOption).then(unittest.expectAsync(((api.BatchGetValuesResponse r
esponse) { | 5503 res.batchGet(arg_spreadsheetId, valueRenderOption: arg_valueRenderOption,
dateTimeRenderOption: arg_dateTimeRenderOption, ranges: arg_ranges, majorDimensi
on: arg_majorDimension).then(unittest.expectAsync(((api.BatchGetValuesResponse r
esponse) { |
5472 checkBatchGetValuesResponse(response); | 5504 checkBatchGetValuesResponse(response); |
5473 }))); | 5505 }))); |
5474 }); | 5506 }); |
5475 | 5507 |
5476 unittest.test("method--batchUpdate", () { | 5508 unittest.test("method--batchUpdate", () { |
5477 | 5509 |
5478 var mock = new HttpServerMock(); | 5510 var mock = new HttpServerMock(); |
5479 api.SpreadsheetsValuesResourceApi res = new api.SheetsApi(mock).spreadshee
ts.values; | 5511 api.SpreadsheetsValuesResourceApi res = new api.SheetsApi(mock).spreadshee
ts.values; |
5480 var arg_request = buildBatchUpdateValuesRequest(); | 5512 var arg_request = buildBatchUpdateValuesRequest(); |
5481 var arg_spreadsheetId = "foo"; | 5513 var arg_spreadsheetId = "foo"; |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5717 res.update(arg_request, arg_spreadsheetId, arg_range, responseValueRenderO
ption: arg_responseValueRenderOption, valueInputOption: arg_valueInputOption, re
sponseDateTimeRenderOption: arg_responseDateTimeRenderOption, includeValuesInRes
ponse: arg_includeValuesInResponse).then(unittest.expectAsync(((api.UpdateValues
Response response) { | 5749 res.update(arg_request, arg_spreadsheetId, arg_range, responseValueRenderO
ption: arg_responseValueRenderOption, valueInputOption: arg_valueInputOption, re
sponseDateTimeRenderOption: arg_responseDateTimeRenderOption, includeValuesInRes
ponse: arg_includeValuesInResponse).then(unittest.expectAsync(((api.UpdateValues
Response response) { |
5718 checkUpdateValuesResponse(response); | 5750 checkUpdateValuesResponse(response); |
5719 }))); | 5751 }))); |
5720 }); | 5752 }); |
5721 | 5753 |
5722 }); | 5754 }); |
5723 | 5755 |
5724 | 5756 |
5725 } | 5757 } |
5726 | 5758 |
OLD | NEW |