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 buildUnnamed356() { | 303 buildUnnamed358() { |
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 checkUnnamed356(core.List<api.RowData> o) { | 310 checkUnnamed358(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 = buildUnnamed356(); | 322 o.rows = buildUnnamed358(); |
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 checkUnnamed356(o.rows); | 333 checkUnnamed358(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 buildUnnamed357() { | 542 buildUnnamed359() { |
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 checkUnnamed357(core.List<api.BasicChartAxis> o) { | 549 checkUnnamed359(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 buildUnnamed358() { | 555 buildUnnamed360() { |
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 checkUnnamed358(core.List<api.BasicChartDomain> o) { | 562 checkUnnamed360(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 buildUnnamed359() { | 568 buildUnnamed361() { |
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 checkUnnamed359(core.List<api.BasicChartSeries> o) { | 575 checkUnnamed361(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 = buildUnnamed357(); | 586 o.axis = buildUnnamed359(); |
587 o.chartType = "foo"; | 587 o.chartType = "foo"; |
588 o.domains = buildUnnamed358(); | 588 o.domains = buildUnnamed360(); |
589 o.headerCount = 42; | 589 o.headerCount = 42; |
590 o.legendPosition = "foo"; | 590 o.legendPosition = "foo"; |
591 o.series = buildUnnamed359(); | 591 o.series = buildUnnamed361(); |
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 checkUnnamed357(o.axis); | 600 checkUnnamed359(o.axis); |
601 unittest.expect(o.chartType, unittest.equals('foo')); | 601 unittest.expect(o.chartType, unittest.equals('foo')); |
602 checkUnnamed358(o.domains); | 602 checkUnnamed360(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 checkUnnamed359(o.series); | 605 checkUnnamed361(o.series); |
606 } | 606 } |
607 buildCounterBasicChartSpec--; | 607 buildCounterBasicChartSpec--; |
608 } | 608 } |
609 | 609 |
610 buildUnnamed360() { | 610 buildUnnamed362() { |
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 checkUnnamed360(core.Map<core.String, api.FilterCriteria> o) { | 617 checkUnnamed362(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 buildUnnamed361() { | 623 buildUnnamed363() { |
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 checkUnnamed361(core.List<api.SortSpec> o) { | 630 checkUnnamed363(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 = buildUnnamed360(); | 641 o.criteria = buildUnnamed362(); |
642 o.range = buildGridRange(); | 642 o.range = buildGridRange(); |
643 o.sortSpecs = buildUnnamed361(); | 643 o.sortSpecs = buildUnnamed363(); |
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 checkUnnamed360(o.criteria); | 652 checkUnnamed362(o.criteria); |
653 checkGridRange(o.range); | 653 checkGridRange(o.range); |
654 checkUnnamed361(o.sortSpecs); | 654 checkUnnamed363(o.sortSpecs); |
655 } | 655 } |
656 buildCounterBasicFilter--; | 656 buildCounterBasicFilter--; |
657 } | 657 } |
658 | 658 |
659 buildUnnamed362() { | 659 buildUnnamed364() { |
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 checkUnnamed362(core.List<core.String> o) { | 666 checkUnnamed364(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 = buildUnnamed362(); | 677 o.ranges = buildUnnamed364(); |
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 checkUnnamed362(o.ranges); | 686 checkUnnamed364(o.ranges); |
687 } | 687 } |
688 buildCounterBatchClearValuesRequest--; | 688 buildCounterBatchClearValuesRequest--; |
689 } | 689 } |
690 | 690 |
691 buildUnnamed363() { | 691 buildUnnamed365() { |
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 checkUnnamed363(core.List<core.String> o) { | 698 checkUnnamed365(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 = buildUnnamed363(); | 709 o.clearedRanges = buildUnnamed365(); |
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 checkUnnamed363(o.clearedRanges); | 719 checkUnnamed365(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 buildUnnamed364() { | 725 buildUnnamed366() { |
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 checkUnnamed364(core.List<api.ValueRange> o) { | 732 checkUnnamed366(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 = buildUnnamed364(); | 744 o.valueRanges = buildUnnamed366(); |
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 checkUnnamed364(o.valueRanges); | 754 checkUnnamed366(o.valueRanges); |
755 } | 755 } |
756 buildCounterBatchGetValuesResponse--; | 756 buildCounterBatchGetValuesResponse--; |
757 } | 757 } |
758 | 758 |
759 buildUnnamed365() { | 759 buildUnnamed367() { |
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 checkUnnamed365(core.List<api.Request> o) { | 766 checkUnnamed367(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 buildUnnamed366() { | 772 buildUnnamed368() { |
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 checkUnnamed366(core.List<core.String> o) { | 779 checkUnnamed368(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 = buildUnnamed365(); | 791 o.requests = buildUnnamed367(); |
792 o.responseIncludeGridData = true; | 792 o.responseIncludeGridData = true; |
793 o.responseRanges = buildUnnamed366(); | 793 o.responseRanges = buildUnnamed368(); |
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 checkUnnamed365(o.requests); | 803 checkUnnamed367(o.requests); |
804 unittest.expect(o.responseIncludeGridData, unittest.isTrue); | 804 unittest.expect(o.responseIncludeGridData, unittest.isTrue); |
805 checkUnnamed366(o.responseRanges); | 805 checkUnnamed368(o.responseRanges); |
806 } | 806 } |
807 buildCounterBatchUpdateSpreadsheetRequest--; | 807 buildCounterBatchUpdateSpreadsheetRequest--; |
808 } | 808 } |
809 | 809 |
810 buildUnnamed367() { | 810 buildUnnamed369() { |
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 checkUnnamed367(core.List<api.Response> o) { | 817 checkUnnamed369(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 = buildUnnamed367(); | 828 o.replies = buildUnnamed369(); |
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 checkUnnamed367(o.replies); | 839 checkUnnamed369(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 buildUnnamed368() { | 846 buildUnnamed370() { |
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 checkUnnamed368(core.List<api.ValueRange> o) { | 853 checkUnnamed370(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 = buildUnnamed368(); | 864 o.data = buildUnnamed370(); |
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 checkUnnamed368(o.data); | 877 checkUnnamed370(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 buildUnnamed369() { | 886 buildUnnamed371() { |
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 checkUnnamed369(core.List<api.UpdateValuesResponse> o) { | 893 checkUnnamed371(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 = buildUnnamed369(); | 904 o.responses = buildUnnamed371(); |
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 checkUnnamed369(o.responses); | 918 checkUnnamed371(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 buildUnnamed370() { | 928 buildUnnamed372() { |
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 checkUnnamed370(core.List<api.ConditionValue> o) { | 935 checkUnnamed372(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 = buildUnnamed370(); | 947 o.values = buildUnnamed372(); |
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 checkUnnamed370(o.values); | 957 checkUnnamed372(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 buildUnnamed371() { | 1031 buildUnnamed373() { |
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 checkUnnamed371(core.List<api.TextFormatRun> o) { | 1038 checkUnnamed373(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 = buildUnnamed371(); | 1056 o.textFormatRuns = buildUnnamed373(); |
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 checkUnnamed371(o.textFormatRuns); | 1074 checkUnnamed373(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++; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1127 } | 1127 } |
1128 | 1128 |
1129 checkChartData(api.ChartData o) { | 1129 checkChartData(api.ChartData o) { |
1130 buildCounterChartData++; | 1130 buildCounterChartData++; |
1131 if (buildCounterChartData < 3) { | 1131 if (buildCounterChartData < 3) { |
1132 checkChartSourceRange(o.sourceRange); | 1132 checkChartSourceRange(o.sourceRange); |
1133 } | 1133 } |
1134 buildCounterChartData--; | 1134 buildCounterChartData--; |
1135 } | 1135 } |
1136 | 1136 |
1137 buildUnnamed372() { | 1137 buildUnnamed374() { |
1138 var o = new core.List<api.GridRange>(); | 1138 var o = new core.List<api.GridRange>(); |
1139 o.add(buildGridRange()); | 1139 o.add(buildGridRange()); |
1140 o.add(buildGridRange()); | 1140 o.add(buildGridRange()); |
1141 return o; | 1141 return o; |
1142 } | 1142 } |
1143 | 1143 |
1144 checkUnnamed372(core.List<api.GridRange> o) { | 1144 checkUnnamed374(core.List<api.GridRange> o) { |
1145 unittest.expect(o, unittest.hasLength(2)); | 1145 unittest.expect(o, unittest.hasLength(2)); |
1146 checkGridRange(o[0]); | 1146 checkGridRange(o[0]); |
1147 checkGridRange(o[1]); | 1147 checkGridRange(o[1]); |
1148 } | 1148 } |
1149 | 1149 |
1150 core.int buildCounterChartSourceRange = 0; | 1150 core.int buildCounterChartSourceRange = 0; |
1151 buildChartSourceRange() { | 1151 buildChartSourceRange() { |
1152 var o = new api.ChartSourceRange(); | 1152 var o = new api.ChartSourceRange(); |
1153 buildCounterChartSourceRange++; | 1153 buildCounterChartSourceRange++; |
1154 if (buildCounterChartSourceRange < 3) { | 1154 if (buildCounterChartSourceRange < 3) { |
1155 o.sources = buildUnnamed372(); | 1155 o.sources = buildUnnamed374(); |
1156 } | 1156 } |
1157 buildCounterChartSourceRange--; | 1157 buildCounterChartSourceRange--; |
1158 return o; | 1158 return o; |
1159 } | 1159 } |
1160 | 1160 |
1161 checkChartSourceRange(api.ChartSourceRange o) { | 1161 checkChartSourceRange(api.ChartSourceRange o) { |
1162 buildCounterChartSourceRange++; | 1162 buildCounterChartSourceRange++; |
1163 if (buildCounterChartSourceRange < 3) { | 1163 if (buildCounterChartSourceRange < 3) { |
1164 checkUnnamed372(o.sources); | 1164 checkUnnamed374(o.sources); |
1165 } | 1165 } |
1166 buildCounterChartSourceRange--; | 1166 buildCounterChartSourceRange--; |
1167 } | 1167 } |
1168 | 1168 |
1169 core.int buildCounterChartSpec = 0; | 1169 core.int buildCounterChartSpec = 0; |
1170 buildChartSpec() { | 1170 buildChartSpec() { |
1171 var o = new api.ChartSpec(); | 1171 var o = new api.ChartSpec(); |
1172 buildCounterChartSpec++; | 1172 buildCounterChartSpec++; |
1173 if (buildCounterChartSpec < 3) { | 1173 if (buildCounterChartSpec < 3) { |
1174 o.basicChart = buildBasicChartSpec(); | 1174 o.basicChart = buildBasicChartSpec(); |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1287 | 1287 |
1288 checkConditionValue(api.ConditionValue o) { | 1288 checkConditionValue(api.ConditionValue o) { |
1289 buildCounterConditionValue++; | 1289 buildCounterConditionValue++; |
1290 if (buildCounterConditionValue < 3) { | 1290 if (buildCounterConditionValue < 3) { |
1291 unittest.expect(o.relativeDate, unittest.equals('foo')); | 1291 unittest.expect(o.relativeDate, unittest.equals('foo')); |
1292 unittest.expect(o.userEnteredValue, unittest.equals('foo')); | 1292 unittest.expect(o.userEnteredValue, unittest.equals('foo')); |
1293 } | 1293 } |
1294 buildCounterConditionValue--; | 1294 buildCounterConditionValue--; |
1295 } | 1295 } |
1296 | 1296 |
1297 buildUnnamed373() { | 1297 buildUnnamed375() { |
1298 var o = new core.List<api.GridRange>(); | 1298 var o = new core.List<api.GridRange>(); |
1299 o.add(buildGridRange()); | 1299 o.add(buildGridRange()); |
1300 o.add(buildGridRange()); | 1300 o.add(buildGridRange()); |
1301 return o; | 1301 return o; |
1302 } | 1302 } |
1303 | 1303 |
1304 checkUnnamed373(core.List<api.GridRange> o) { | 1304 checkUnnamed375(core.List<api.GridRange> o) { |
1305 unittest.expect(o, unittest.hasLength(2)); | 1305 unittest.expect(o, unittest.hasLength(2)); |
1306 checkGridRange(o[0]); | 1306 checkGridRange(o[0]); |
1307 checkGridRange(o[1]); | 1307 checkGridRange(o[1]); |
1308 } | 1308 } |
1309 | 1309 |
1310 core.int buildCounterConditionalFormatRule = 0; | 1310 core.int buildCounterConditionalFormatRule = 0; |
1311 buildConditionalFormatRule() { | 1311 buildConditionalFormatRule() { |
1312 var o = new api.ConditionalFormatRule(); | 1312 var o = new api.ConditionalFormatRule(); |
1313 buildCounterConditionalFormatRule++; | 1313 buildCounterConditionalFormatRule++; |
1314 if (buildCounterConditionalFormatRule < 3) { | 1314 if (buildCounterConditionalFormatRule < 3) { |
1315 o.booleanRule = buildBooleanRule(); | 1315 o.booleanRule = buildBooleanRule(); |
1316 o.gradientRule = buildGradientRule(); | 1316 o.gradientRule = buildGradientRule(); |
1317 o.ranges = buildUnnamed373(); | 1317 o.ranges = buildUnnamed375(); |
1318 } | 1318 } |
1319 buildCounterConditionalFormatRule--; | 1319 buildCounterConditionalFormatRule--; |
1320 return o; | 1320 return o; |
1321 } | 1321 } |
1322 | 1322 |
1323 checkConditionalFormatRule(api.ConditionalFormatRule o) { | 1323 checkConditionalFormatRule(api.ConditionalFormatRule o) { |
1324 buildCounterConditionalFormatRule++; | 1324 buildCounterConditionalFormatRule++; |
1325 if (buildCounterConditionalFormatRule < 3) { | 1325 if (buildCounterConditionalFormatRule < 3) { |
1326 checkBooleanRule(o.booleanRule); | 1326 checkBooleanRule(o.booleanRule); |
1327 checkGradientRule(o.gradientRule); | 1327 checkGradientRule(o.gradientRule); |
1328 checkUnnamed373(o.ranges); | 1328 checkUnnamed375(o.ranges); |
1329 } | 1329 } |
1330 buildCounterConditionalFormatRule--; | 1330 buildCounterConditionalFormatRule--; |
1331 } | 1331 } |
1332 | 1332 |
1333 core.int buildCounterCopyPasteRequest = 0; | 1333 core.int buildCounterCopyPasteRequest = 0; |
1334 buildCopyPasteRequest() { | 1334 buildCopyPasteRequest() { |
1335 var o = new api.CopyPasteRequest(); | 1335 var o = new api.CopyPasteRequest(); |
1336 buildCounterCopyPasteRequest++; | 1336 buildCounterCopyPasteRequest++; |
1337 if (buildCounterCopyPasteRequest < 3) { | 1337 if (buildCounterCopyPasteRequest < 3) { |
1338 o.destination = buildGridRange(); | 1338 o.destination = buildGridRange(); |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1739 } | 1739 } |
1740 | 1740 |
1741 checkDuplicateSheetResponse(api.DuplicateSheetResponse o) { | 1741 checkDuplicateSheetResponse(api.DuplicateSheetResponse o) { |
1742 buildCounterDuplicateSheetResponse++; | 1742 buildCounterDuplicateSheetResponse++; |
1743 if (buildCounterDuplicateSheetResponse < 3) { | 1743 if (buildCounterDuplicateSheetResponse < 3) { |
1744 checkSheetProperties(o.properties); | 1744 checkSheetProperties(o.properties); |
1745 } | 1745 } |
1746 buildCounterDuplicateSheetResponse--; | 1746 buildCounterDuplicateSheetResponse--; |
1747 } | 1747 } |
1748 | 1748 |
1749 buildUnnamed374() { | 1749 buildUnnamed376() { |
1750 var o = new core.List<core.String>(); | 1750 var o = new core.List<core.String>(); |
1751 o.add("foo"); | 1751 o.add("foo"); |
1752 o.add("foo"); | 1752 o.add("foo"); |
1753 return o; | 1753 return o; |
1754 } | 1754 } |
1755 | 1755 |
1756 checkUnnamed374(core.List<core.String> o) { | 1756 checkUnnamed376(core.List<core.String> o) { |
1757 unittest.expect(o, unittest.hasLength(2)); | 1757 unittest.expect(o, unittest.hasLength(2)); |
1758 unittest.expect(o[0], unittest.equals('foo')); | 1758 unittest.expect(o[0], unittest.equals('foo')); |
1759 unittest.expect(o[1], unittest.equals('foo')); | 1759 unittest.expect(o[1], unittest.equals('foo')); |
1760 } | 1760 } |
1761 | 1761 |
1762 buildUnnamed375() { | 1762 buildUnnamed377() { |
1763 var o = new core.List<core.String>(); | 1763 var o = new core.List<core.String>(); |
1764 o.add("foo"); | 1764 o.add("foo"); |
1765 o.add("foo"); | 1765 o.add("foo"); |
1766 return o; | 1766 return o; |
1767 } | 1767 } |
1768 | 1768 |
1769 checkUnnamed375(core.List<core.String> o) { | 1769 checkUnnamed377(core.List<core.String> o) { |
1770 unittest.expect(o, unittest.hasLength(2)); | 1770 unittest.expect(o, unittest.hasLength(2)); |
1771 unittest.expect(o[0], unittest.equals('foo')); | 1771 unittest.expect(o[0], unittest.equals('foo')); |
1772 unittest.expect(o[1], unittest.equals('foo')); | 1772 unittest.expect(o[1], unittest.equals('foo')); |
1773 } | 1773 } |
1774 | 1774 |
1775 core.int buildCounterEditors = 0; | 1775 core.int buildCounterEditors = 0; |
1776 buildEditors() { | 1776 buildEditors() { |
1777 var o = new api.Editors(); | 1777 var o = new api.Editors(); |
1778 buildCounterEditors++; | 1778 buildCounterEditors++; |
1779 if (buildCounterEditors < 3) { | 1779 if (buildCounterEditors < 3) { |
1780 o.domainUsersCanEdit = true; | 1780 o.domainUsersCanEdit = true; |
1781 o.groups = buildUnnamed374(); | 1781 o.groups = buildUnnamed376(); |
1782 o.users = buildUnnamed375(); | 1782 o.users = buildUnnamed377(); |
1783 } | 1783 } |
1784 buildCounterEditors--; | 1784 buildCounterEditors--; |
1785 return o; | 1785 return o; |
1786 } | 1786 } |
1787 | 1787 |
1788 checkEditors(api.Editors o) { | 1788 checkEditors(api.Editors o) { |
1789 buildCounterEditors++; | 1789 buildCounterEditors++; |
1790 if (buildCounterEditors < 3) { | 1790 if (buildCounterEditors < 3) { |
1791 unittest.expect(o.domainUsersCanEdit, unittest.isTrue); | 1791 unittest.expect(o.domainUsersCanEdit, unittest.isTrue); |
1792 checkUnnamed374(o.groups); | 1792 checkUnnamed376(o.groups); |
1793 checkUnnamed375(o.users); | 1793 checkUnnamed377(o.users); |
1794 } | 1794 } |
1795 buildCounterEditors--; | 1795 buildCounterEditors--; |
1796 } | 1796 } |
1797 | 1797 |
1798 core.int buildCounterEmbeddedChart = 0; | 1798 core.int buildCounterEmbeddedChart = 0; |
1799 buildEmbeddedChart() { | 1799 buildEmbeddedChart() { |
1800 var o = new api.EmbeddedChart(); | 1800 var o = new api.EmbeddedChart(); |
1801 buildCounterEmbeddedChart++; | 1801 buildCounterEmbeddedChart++; |
1802 if (buildCounterEmbeddedChart < 3) { | 1802 if (buildCounterEmbeddedChart < 3) { |
1803 o.chartId = 42; | 1803 o.chartId = 42; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1882 if (buildCounterExtendedValue < 3) { | 1882 if (buildCounterExtendedValue < 3) { |
1883 unittest.expect(o.boolValue, unittest.isTrue); | 1883 unittest.expect(o.boolValue, unittest.isTrue); |
1884 checkErrorValue(o.errorValue); | 1884 checkErrorValue(o.errorValue); |
1885 unittest.expect(o.formulaValue, unittest.equals('foo')); | 1885 unittest.expect(o.formulaValue, unittest.equals('foo')); |
1886 unittest.expect(o.numberValue, unittest.equals(42.0)); | 1886 unittest.expect(o.numberValue, unittest.equals(42.0)); |
1887 unittest.expect(o.stringValue, unittest.equals('foo')); | 1887 unittest.expect(o.stringValue, unittest.equals('foo')); |
1888 } | 1888 } |
1889 buildCounterExtendedValue--; | 1889 buildCounterExtendedValue--; |
1890 } | 1890 } |
1891 | 1891 |
1892 buildUnnamed376() { | 1892 buildUnnamed378() { |
1893 var o = new core.List<core.String>(); | 1893 var o = new core.List<core.String>(); |
1894 o.add("foo"); | 1894 o.add("foo"); |
1895 o.add("foo"); | 1895 o.add("foo"); |
1896 return o; | 1896 return o; |
1897 } | 1897 } |
1898 | 1898 |
1899 checkUnnamed376(core.List<core.String> o) { | 1899 checkUnnamed378(core.List<core.String> o) { |
1900 unittest.expect(o, unittest.hasLength(2)); | 1900 unittest.expect(o, unittest.hasLength(2)); |
1901 unittest.expect(o[0], unittest.equals('foo')); | 1901 unittest.expect(o[0], unittest.equals('foo')); |
1902 unittest.expect(o[1], unittest.equals('foo')); | 1902 unittest.expect(o[1], unittest.equals('foo')); |
1903 } | 1903 } |
1904 | 1904 |
1905 core.int buildCounterFilterCriteria = 0; | 1905 core.int buildCounterFilterCriteria = 0; |
1906 buildFilterCriteria() { | 1906 buildFilterCriteria() { |
1907 var o = new api.FilterCriteria(); | 1907 var o = new api.FilterCriteria(); |
1908 buildCounterFilterCriteria++; | 1908 buildCounterFilterCriteria++; |
1909 if (buildCounterFilterCriteria < 3) { | 1909 if (buildCounterFilterCriteria < 3) { |
1910 o.condition = buildBooleanCondition(); | 1910 o.condition = buildBooleanCondition(); |
1911 o.hiddenValues = buildUnnamed376(); | 1911 o.hiddenValues = buildUnnamed378(); |
1912 } | 1912 } |
1913 buildCounterFilterCriteria--; | 1913 buildCounterFilterCriteria--; |
1914 return o; | 1914 return o; |
1915 } | 1915 } |
1916 | 1916 |
1917 checkFilterCriteria(api.FilterCriteria o) { | 1917 checkFilterCriteria(api.FilterCriteria o) { |
1918 buildCounterFilterCriteria++; | 1918 buildCounterFilterCriteria++; |
1919 if (buildCounterFilterCriteria < 3) { | 1919 if (buildCounterFilterCriteria < 3) { |
1920 checkBooleanCondition(o.condition); | 1920 checkBooleanCondition(o.condition); |
1921 checkUnnamed376(o.hiddenValues); | 1921 checkUnnamed378(o.hiddenValues); |
1922 } | 1922 } |
1923 buildCounterFilterCriteria--; | 1923 buildCounterFilterCriteria--; |
1924 } | 1924 } |
1925 | 1925 |
1926 buildUnnamed377() { | 1926 buildUnnamed379() { |
1927 var o = new core.Map<core.String, api.FilterCriteria>(); | 1927 var o = new core.Map<core.String, api.FilterCriteria>(); |
1928 o["x"] = buildFilterCriteria(); | 1928 o["x"] = buildFilterCriteria(); |
1929 o["y"] = buildFilterCriteria(); | 1929 o["y"] = buildFilterCriteria(); |
1930 return o; | 1930 return o; |
1931 } | 1931 } |
1932 | 1932 |
1933 checkUnnamed377(core.Map<core.String, api.FilterCriteria> o) { | 1933 checkUnnamed379(core.Map<core.String, api.FilterCriteria> o) { |
1934 unittest.expect(o, unittest.hasLength(2)); | 1934 unittest.expect(o, unittest.hasLength(2)); |
1935 checkFilterCriteria(o["x"]); | 1935 checkFilterCriteria(o["x"]); |
1936 checkFilterCriteria(o["y"]); | 1936 checkFilterCriteria(o["y"]); |
1937 } | 1937 } |
1938 | 1938 |
1939 buildUnnamed378() { | 1939 buildUnnamed380() { |
1940 var o = new core.List<api.SortSpec>(); | 1940 var o = new core.List<api.SortSpec>(); |
1941 o.add(buildSortSpec()); | 1941 o.add(buildSortSpec()); |
1942 o.add(buildSortSpec()); | 1942 o.add(buildSortSpec()); |
1943 return o; | 1943 return o; |
1944 } | 1944 } |
1945 | 1945 |
1946 checkUnnamed378(core.List<api.SortSpec> o) { | 1946 checkUnnamed380(core.List<api.SortSpec> o) { |
1947 unittest.expect(o, unittest.hasLength(2)); | 1947 unittest.expect(o, unittest.hasLength(2)); |
1948 checkSortSpec(o[0]); | 1948 checkSortSpec(o[0]); |
1949 checkSortSpec(o[1]); | 1949 checkSortSpec(o[1]); |
1950 } | 1950 } |
1951 | 1951 |
1952 core.int buildCounterFilterView = 0; | 1952 core.int buildCounterFilterView = 0; |
1953 buildFilterView() { | 1953 buildFilterView() { |
1954 var o = new api.FilterView(); | 1954 var o = new api.FilterView(); |
1955 buildCounterFilterView++; | 1955 buildCounterFilterView++; |
1956 if (buildCounterFilterView < 3) { | 1956 if (buildCounterFilterView < 3) { |
1957 o.criteria = buildUnnamed377(); | 1957 o.criteria = buildUnnamed379(); |
1958 o.filterViewId = 42; | 1958 o.filterViewId = 42; |
1959 o.namedRangeId = "foo"; | 1959 o.namedRangeId = "foo"; |
1960 o.range = buildGridRange(); | 1960 o.range = buildGridRange(); |
1961 o.sortSpecs = buildUnnamed378(); | 1961 o.sortSpecs = buildUnnamed380(); |
1962 o.title = "foo"; | 1962 o.title = "foo"; |
1963 } | 1963 } |
1964 buildCounterFilterView--; | 1964 buildCounterFilterView--; |
1965 return o; | 1965 return o; |
1966 } | 1966 } |
1967 | 1967 |
1968 checkFilterView(api.FilterView o) { | 1968 checkFilterView(api.FilterView o) { |
1969 buildCounterFilterView++; | 1969 buildCounterFilterView++; |
1970 if (buildCounterFilterView < 3) { | 1970 if (buildCounterFilterView < 3) { |
1971 checkUnnamed377(o.criteria); | 1971 checkUnnamed379(o.criteria); |
1972 unittest.expect(o.filterViewId, unittest.equals(42)); | 1972 unittest.expect(o.filterViewId, unittest.equals(42)); |
1973 unittest.expect(o.namedRangeId, unittest.equals('foo')); | 1973 unittest.expect(o.namedRangeId, unittest.equals('foo')); |
1974 checkGridRange(o.range); | 1974 checkGridRange(o.range); |
1975 checkUnnamed378(o.sortSpecs); | 1975 checkUnnamed380(o.sortSpecs); |
1976 unittest.expect(o.title, unittest.equals('foo')); | 1976 unittest.expect(o.title, unittest.equals('foo')); |
1977 } | 1977 } |
1978 buildCounterFilterView--; | 1978 buildCounterFilterView--; |
1979 } | 1979 } |
1980 | 1980 |
1981 core.int buildCounterFindReplaceRequest = 0; | 1981 core.int buildCounterFindReplaceRequest = 0; |
1982 buildFindReplaceRequest() { | 1982 buildFindReplaceRequest() { |
1983 var o = new api.FindReplaceRequest(); | 1983 var o = new api.FindReplaceRequest(); |
1984 buildCounterFindReplaceRequest++; | 1984 buildCounterFindReplaceRequest++; |
1985 if (buildCounterFindReplaceRequest < 3) { | 1985 if (buildCounterFindReplaceRequest < 3) { |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2079 checkGridCoordinate(api.GridCoordinate o) { | 2079 checkGridCoordinate(api.GridCoordinate o) { |
2080 buildCounterGridCoordinate++; | 2080 buildCounterGridCoordinate++; |
2081 if (buildCounterGridCoordinate < 3) { | 2081 if (buildCounterGridCoordinate < 3) { |
2082 unittest.expect(o.columnIndex, unittest.equals(42)); | 2082 unittest.expect(o.columnIndex, unittest.equals(42)); |
2083 unittest.expect(o.rowIndex, unittest.equals(42)); | 2083 unittest.expect(o.rowIndex, unittest.equals(42)); |
2084 unittest.expect(o.sheetId, unittest.equals(42)); | 2084 unittest.expect(o.sheetId, unittest.equals(42)); |
2085 } | 2085 } |
2086 buildCounterGridCoordinate--; | 2086 buildCounterGridCoordinate--; |
2087 } | 2087 } |
2088 | 2088 |
2089 buildUnnamed379() { | |
2090 var o = new core.List<api.DimensionProperties>(); | |
2091 o.add(buildDimensionProperties()); | |
2092 o.add(buildDimensionProperties()); | |
2093 return o; | |
2094 } | |
2095 | |
2096 checkUnnamed379(core.List<api.DimensionProperties> o) { | |
2097 unittest.expect(o, unittest.hasLength(2)); | |
2098 checkDimensionProperties(o[0]); | |
2099 checkDimensionProperties(o[1]); | |
2100 } | |
2101 | |
2102 buildUnnamed380() { | |
2103 var o = new core.List<api.RowData>(); | |
2104 o.add(buildRowData()); | |
2105 o.add(buildRowData()); | |
2106 return o; | |
2107 } | |
2108 | |
2109 checkUnnamed380(core.List<api.RowData> o) { | |
2110 unittest.expect(o, unittest.hasLength(2)); | |
2111 checkRowData(o[0]); | |
2112 checkRowData(o[1]); | |
2113 } | |
2114 | |
2115 buildUnnamed381() { | 2089 buildUnnamed381() { |
2116 var o = new core.List<api.DimensionProperties>(); | 2090 var o = new core.List<api.DimensionProperties>(); |
2117 o.add(buildDimensionProperties()); | 2091 o.add(buildDimensionProperties()); |
2118 o.add(buildDimensionProperties()); | 2092 o.add(buildDimensionProperties()); |
2119 return o; | 2093 return o; |
2120 } | 2094 } |
2121 | 2095 |
2122 checkUnnamed381(core.List<api.DimensionProperties> o) { | 2096 checkUnnamed381(core.List<api.DimensionProperties> o) { |
2123 unittest.expect(o, unittest.hasLength(2)); | 2097 unittest.expect(o, unittest.hasLength(2)); |
2124 checkDimensionProperties(o[0]); | 2098 checkDimensionProperties(o[0]); |
2125 checkDimensionProperties(o[1]); | 2099 checkDimensionProperties(o[1]); |
| 2100 } |
| 2101 |
| 2102 buildUnnamed382() { |
| 2103 var o = new core.List<api.RowData>(); |
| 2104 o.add(buildRowData()); |
| 2105 o.add(buildRowData()); |
| 2106 return o; |
| 2107 } |
| 2108 |
| 2109 checkUnnamed382(core.List<api.RowData> o) { |
| 2110 unittest.expect(o, unittest.hasLength(2)); |
| 2111 checkRowData(o[0]); |
| 2112 checkRowData(o[1]); |
| 2113 } |
| 2114 |
| 2115 buildUnnamed383() { |
| 2116 var o = new core.List<api.DimensionProperties>(); |
| 2117 o.add(buildDimensionProperties()); |
| 2118 o.add(buildDimensionProperties()); |
| 2119 return o; |
| 2120 } |
| 2121 |
| 2122 checkUnnamed383(core.List<api.DimensionProperties> o) { |
| 2123 unittest.expect(o, unittest.hasLength(2)); |
| 2124 checkDimensionProperties(o[0]); |
| 2125 checkDimensionProperties(o[1]); |
2126 } | 2126 } |
2127 | 2127 |
2128 core.int buildCounterGridData = 0; | 2128 core.int buildCounterGridData = 0; |
2129 buildGridData() { | 2129 buildGridData() { |
2130 var o = new api.GridData(); | 2130 var o = new api.GridData(); |
2131 buildCounterGridData++; | 2131 buildCounterGridData++; |
2132 if (buildCounterGridData < 3) { | 2132 if (buildCounterGridData < 3) { |
2133 o.columnMetadata = buildUnnamed379(); | 2133 o.columnMetadata = buildUnnamed381(); |
2134 o.rowData = buildUnnamed380(); | 2134 o.rowData = buildUnnamed382(); |
2135 o.rowMetadata = buildUnnamed381(); | 2135 o.rowMetadata = buildUnnamed383(); |
2136 o.startColumn = 42; | 2136 o.startColumn = 42; |
2137 o.startRow = 42; | 2137 o.startRow = 42; |
2138 } | 2138 } |
2139 buildCounterGridData--; | 2139 buildCounterGridData--; |
2140 return o; | 2140 return o; |
2141 } | 2141 } |
2142 | 2142 |
2143 checkGridData(api.GridData o) { | 2143 checkGridData(api.GridData o) { |
2144 buildCounterGridData++; | 2144 buildCounterGridData++; |
2145 if (buildCounterGridData < 3) { | 2145 if (buildCounterGridData < 3) { |
2146 checkUnnamed379(o.columnMetadata); | 2146 checkUnnamed381(o.columnMetadata); |
2147 checkUnnamed380(o.rowData); | 2147 checkUnnamed382(o.rowData); |
2148 checkUnnamed381(o.rowMetadata); | 2148 checkUnnamed383(o.rowMetadata); |
2149 unittest.expect(o.startColumn, unittest.equals(42)); | 2149 unittest.expect(o.startColumn, unittest.equals(42)); |
2150 unittest.expect(o.startRow, unittest.equals(42)); | 2150 unittest.expect(o.startRow, unittest.equals(42)); |
2151 } | 2151 } |
2152 buildCounterGridData--; | 2152 buildCounterGridData--; |
2153 } | 2153 } |
2154 | 2154 |
2155 core.int buildCounterGridProperties = 0; | 2155 core.int buildCounterGridProperties = 0; |
2156 buildGridProperties() { | 2156 buildGridProperties() { |
2157 var o = new api.GridProperties(); | 2157 var o = new api.GridProperties(); |
2158 buildCounterGridProperties++; | 2158 buildCounterGridProperties++; |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2264 checkInterpolationPoint(api.InterpolationPoint o) { | 2264 checkInterpolationPoint(api.InterpolationPoint o) { |
2265 buildCounterInterpolationPoint++; | 2265 buildCounterInterpolationPoint++; |
2266 if (buildCounterInterpolationPoint < 3) { | 2266 if (buildCounterInterpolationPoint < 3) { |
2267 checkColor(o.color); | 2267 checkColor(o.color); |
2268 unittest.expect(o.type, unittest.equals('foo')); | 2268 unittest.expect(o.type, unittest.equals('foo')); |
2269 unittest.expect(o.value, unittest.equals('foo')); | 2269 unittest.expect(o.value, unittest.equals('foo')); |
2270 } | 2270 } |
2271 buildCounterInterpolationPoint--; | 2271 buildCounterInterpolationPoint--; |
2272 } | 2272 } |
2273 | 2273 |
| 2274 core.int buildCounterIterativeCalculationSettings = 0; |
| 2275 buildIterativeCalculationSettings() { |
| 2276 var o = new api.IterativeCalculationSettings(); |
| 2277 buildCounterIterativeCalculationSettings++; |
| 2278 if (buildCounterIterativeCalculationSettings < 3) { |
| 2279 o.convergenceThreshold = 42.0; |
| 2280 o.maxIterations = 42; |
| 2281 } |
| 2282 buildCounterIterativeCalculationSettings--; |
| 2283 return o; |
| 2284 } |
| 2285 |
| 2286 checkIterativeCalculationSettings(api.IterativeCalculationSettings o) { |
| 2287 buildCounterIterativeCalculationSettings++; |
| 2288 if (buildCounterIterativeCalculationSettings < 3) { |
| 2289 unittest.expect(o.convergenceThreshold, unittest.equals(42.0)); |
| 2290 unittest.expect(o.maxIterations, unittest.equals(42)); |
| 2291 } |
| 2292 buildCounterIterativeCalculationSettings--; |
| 2293 } |
| 2294 |
2274 core.int buildCounterMergeCellsRequest = 0; | 2295 core.int buildCounterMergeCellsRequest = 0; |
2275 buildMergeCellsRequest() { | 2296 buildMergeCellsRequest() { |
2276 var o = new api.MergeCellsRequest(); | 2297 var o = new api.MergeCellsRequest(); |
2277 buildCounterMergeCellsRequest++; | 2298 buildCounterMergeCellsRequest++; |
2278 if (buildCounterMergeCellsRequest < 3) { | 2299 if (buildCounterMergeCellsRequest < 3) { |
2279 o.mergeType = "foo"; | 2300 o.mergeType = "foo"; |
2280 o.range = buildGridRange(); | 2301 o.range = buildGridRange(); |
2281 } | 2302 } |
2282 buildCounterMergeCellsRequest--; | 2303 buildCounterMergeCellsRequest--; |
2283 return o; | 2304 return o; |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2456 if (buildCounterPieChartSpec < 3) { | 2477 if (buildCounterPieChartSpec < 3) { |
2457 checkChartData(o.domain); | 2478 checkChartData(o.domain); |
2458 unittest.expect(o.legendPosition, unittest.equals('foo')); | 2479 unittest.expect(o.legendPosition, unittest.equals('foo')); |
2459 unittest.expect(o.pieHole, unittest.equals(42.0)); | 2480 unittest.expect(o.pieHole, unittest.equals(42.0)); |
2460 checkChartData(o.series); | 2481 checkChartData(o.series); |
2461 unittest.expect(o.threeDimensional, unittest.isTrue); | 2482 unittest.expect(o.threeDimensional, unittest.isTrue); |
2462 } | 2483 } |
2463 buildCounterPieChartSpec--; | 2484 buildCounterPieChartSpec--; |
2464 } | 2485 } |
2465 | 2486 |
2466 buildUnnamed382() { | 2487 buildUnnamed384() { |
2467 var o = new core.List<core.String>(); | 2488 var o = new core.List<core.String>(); |
2468 o.add("foo"); | 2489 o.add("foo"); |
2469 o.add("foo"); | 2490 o.add("foo"); |
2470 return o; | 2491 return o; |
2471 } | 2492 } |
2472 | 2493 |
2473 checkUnnamed382(core.List<core.String> o) { | 2494 checkUnnamed384(core.List<core.String> o) { |
2474 unittest.expect(o, unittest.hasLength(2)); | 2495 unittest.expect(o, unittest.hasLength(2)); |
2475 unittest.expect(o[0], unittest.equals('foo')); | 2496 unittest.expect(o[0], unittest.equals('foo')); |
2476 unittest.expect(o[1], unittest.equals('foo')); | 2497 unittest.expect(o[1], unittest.equals('foo')); |
2477 } | 2498 } |
2478 | 2499 |
2479 core.int buildCounterPivotFilterCriteria = 0; | 2500 core.int buildCounterPivotFilterCriteria = 0; |
2480 buildPivotFilterCriteria() { | 2501 buildPivotFilterCriteria() { |
2481 var o = new api.PivotFilterCriteria(); | 2502 var o = new api.PivotFilterCriteria(); |
2482 buildCounterPivotFilterCriteria++; | 2503 buildCounterPivotFilterCriteria++; |
2483 if (buildCounterPivotFilterCriteria < 3) { | 2504 if (buildCounterPivotFilterCriteria < 3) { |
2484 o.visibleValues = buildUnnamed382(); | 2505 o.visibleValues = buildUnnamed384(); |
2485 } | 2506 } |
2486 buildCounterPivotFilterCriteria--; | 2507 buildCounterPivotFilterCriteria--; |
2487 return o; | 2508 return o; |
2488 } | 2509 } |
2489 | 2510 |
2490 checkPivotFilterCriteria(api.PivotFilterCriteria o) { | 2511 checkPivotFilterCriteria(api.PivotFilterCriteria o) { |
2491 buildCounterPivotFilterCriteria++; | 2512 buildCounterPivotFilterCriteria++; |
2492 if (buildCounterPivotFilterCriteria < 3) { | 2513 if (buildCounterPivotFilterCriteria < 3) { |
2493 checkUnnamed382(o.visibleValues); | 2514 checkUnnamed384(o.visibleValues); |
2494 } | 2515 } |
2495 buildCounterPivotFilterCriteria--; | 2516 buildCounterPivotFilterCriteria--; |
2496 } | 2517 } |
2497 | 2518 |
2498 buildUnnamed383() { | 2519 buildUnnamed385() { |
2499 var o = new core.List<api.PivotGroupValueMetadata>(); | 2520 var o = new core.List<api.PivotGroupValueMetadata>(); |
2500 o.add(buildPivotGroupValueMetadata()); | 2521 o.add(buildPivotGroupValueMetadata()); |
2501 o.add(buildPivotGroupValueMetadata()); | 2522 o.add(buildPivotGroupValueMetadata()); |
2502 return o; | 2523 return o; |
2503 } | 2524 } |
2504 | 2525 |
2505 checkUnnamed383(core.List<api.PivotGroupValueMetadata> o) { | 2526 checkUnnamed385(core.List<api.PivotGroupValueMetadata> o) { |
2506 unittest.expect(o, unittest.hasLength(2)); | 2527 unittest.expect(o, unittest.hasLength(2)); |
2507 checkPivotGroupValueMetadata(o[0]); | 2528 checkPivotGroupValueMetadata(o[0]); |
2508 checkPivotGroupValueMetadata(o[1]); | 2529 checkPivotGroupValueMetadata(o[1]); |
2509 } | 2530 } |
2510 | 2531 |
2511 core.int buildCounterPivotGroup = 0; | 2532 core.int buildCounterPivotGroup = 0; |
2512 buildPivotGroup() { | 2533 buildPivotGroup() { |
2513 var o = new api.PivotGroup(); | 2534 var o = new api.PivotGroup(); |
2514 buildCounterPivotGroup++; | 2535 buildCounterPivotGroup++; |
2515 if (buildCounterPivotGroup < 3) { | 2536 if (buildCounterPivotGroup < 3) { |
2516 o.showTotals = true; | 2537 o.showTotals = true; |
2517 o.sortOrder = "foo"; | 2538 o.sortOrder = "foo"; |
2518 o.sourceColumnOffset = 42; | 2539 o.sourceColumnOffset = 42; |
2519 o.valueBucket = buildPivotGroupSortValueBucket(); | 2540 o.valueBucket = buildPivotGroupSortValueBucket(); |
2520 o.valueMetadata = buildUnnamed383(); | 2541 o.valueMetadata = buildUnnamed385(); |
2521 } | 2542 } |
2522 buildCounterPivotGroup--; | 2543 buildCounterPivotGroup--; |
2523 return o; | 2544 return o; |
2524 } | 2545 } |
2525 | 2546 |
2526 checkPivotGroup(api.PivotGroup o) { | 2547 checkPivotGroup(api.PivotGroup o) { |
2527 buildCounterPivotGroup++; | 2548 buildCounterPivotGroup++; |
2528 if (buildCounterPivotGroup < 3) { | 2549 if (buildCounterPivotGroup < 3) { |
2529 unittest.expect(o.showTotals, unittest.isTrue); | 2550 unittest.expect(o.showTotals, unittest.isTrue); |
2530 unittest.expect(o.sortOrder, unittest.equals('foo')); | 2551 unittest.expect(o.sortOrder, unittest.equals('foo')); |
2531 unittest.expect(o.sourceColumnOffset, unittest.equals(42)); | 2552 unittest.expect(o.sourceColumnOffset, unittest.equals(42)); |
2532 checkPivotGroupSortValueBucket(o.valueBucket); | 2553 checkPivotGroupSortValueBucket(o.valueBucket); |
2533 checkUnnamed383(o.valueMetadata); | 2554 checkUnnamed385(o.valueMetadata); |
2534 } | 2555 } |
2535 buildCounterPivotGroup--; | 2556 buildCounterPivotGroup--; |
2536 } | 2557 } |
2537 | 2558 |
2538 buildUnnamed384() { | 2559 buildUnnamed386() { |
2539 var o = new core.List<api.ExtendedValue>(); | 2560 var o = new core.List<api.ExtendedValue>(); |
2540 o.add(buildExtendedValue()); | 2561 o.add(buildExtendedValue()); |
2541 o.add(buildExtendedValue()); | 2562 o.add(buildExtendedValue()); |
2542 return o; | 2563 return o; |
2543 } | 2564 } |
2544 | 2565 |
2545 checkUnnamed384(core.List<api.ExtendedValue> o) { | 2566 checkUnnamed386(core.List<api.ExtendedValue> o) { |
2546 unittest.expect(o, unittest.hasLength(2)); | 2567 unittest.expect(o, unittest.hasLength(2)); |
2547 checkExtendedValue(o[0]); | 2568 checkExtendedValue(o[0]); |
2548 checkExtendedValue(o[1]); | 2569 checkExtendedValue(o[1]); |
2549 } | 2570 } |
2550 | 2571 |
2551 core.int buildCounterPivotGroupSortValueBucket = 0; | 2572 core.int buildCounterPivotGroupSortValueBucket = 0; |
2552 buildPivotGroupSortValueBucket() { | 2573 buildPivotGroupSortValueBucket() { |
2553 var o = new api.PivotGroupSortValueBucket(); | 2574 var o = new api.PivotGroupSortValueBucket(); |
2554 buildCounterPivotGroupSortValueBucket++; | 2575 buildCounterPivotGroupSortValueBucket++; |
2555 if (buildCounterPivotGroupSortValueBucket < 3) { | 2576 if (buildCounterPivotGroupSortValueBucket < 3) { |
2556 o.buckets = buildUnnamed384(); | 2577 o.buckets = buildUnnamed386(); |
2557 o.valuesIndex = 42; | 2578 o.valuesIndex = 42; |
2558 } | 2579 } |
2559 buildCounterPivotGroupSortValueBucket--; | 2580 buildCounterPivotGroupSortValueBucket--; |
2560 return o; | 2581 return o; |
2561 } | 2582 } |
2562 | 2583 |
2563 checkPivotGroupSortValueBucket(api.PivotGroupSortValueBucket o) { | 2584 checkPivotGroupSortValueBucket(api.PivotGroupSortValueBucket o) { |
2564 buildCounterPivotGroupSortValueBucket++; | 2585 buildCounterPivotGroupSortValueBucket++; |
2565 if (buildCounterPivotGroupSortValueBucket < 3) { | 2586 if (buildCounterPivotGroupSortValueBucket < 3) { |
2566 checkUnnamed384(o.buckets); | 2587 checkUnnamed386(o.buckets); |
2567 unittest.expect(o.valuesIndex, unittest.equals(42)); | 2588 unittest.expect(o.valuesIndex, unittest.equals(42)); |
2568 } | 2589 } |
2569 buildCounterPivotGroupSortValueBucket--; | 2590 buildCounterPivotGroupSortValueBucket--; |
2570 } | 2591 } |
2571 | 2592 |
2572 core.int buildCounterPivotGroupValueMetadata = 0; | 2593 core.int buildCounterPivotGroupValueMetadata = 0; |
2573 buildPivotGroupValueMetadata() { | 2594 buildPivotGroupValueMetadata() { |
2574 var o = new api.PivotGroupValueMetadata(); | 2595 var o = new api.PivotGroupValueMetadata(); |
2575 buildCounterPivotGroupValueMetadata++; | 2596 buildCounterPivotGroupValueMetadata++; |
2576 if (buildCounterPivotGroupValueMetadata < 3) { | 2597 if (buildCounterPivotGroupValueMetadata < 3) { |
2577 o.collapsed = true; | 2598 o.collapsed = true; |
2578 o.value = buildExtendedValue(); | 2599 o.value = buildExtendedValue(); |
2579 } | 2600 } |
2580 buildCounterPivotGroupValueMetadata--; | 2601 buildCounterPivotGroupValueMetadata--; |
2581 return o; | 2602 return o; |
2582 } | 2603 } |
2583 | 2604 |
2584 checkPivotGroupValueMetadata(api.PivotGroupValueMetadata o) { | 2605 checkPivotGroupValueMetadata(api.PivotGroupValueMetadata o) { |
2585 buildCounterPivotGroupValueMetadata++; | 2606 buildCounterPivotGroupValueMetadata++; |
2586 if (buildCounterPivotGroupValueMetadata < 3) { | 2607 if (buildCounterPivotGroupValueMetadata < 3) { |
2587 unittest.expect(o.collapsed, unittest.isTrue); | 2608 unittest.expect(o.collapsed, unittest.isTrue); |
2588 checkExtendedValue(o.value); | 2609 checkExtendedValue(o.value); |
2589 } | 2610 } |
2590 buildCounterPivotGroupValueMetadata--; | 2611 buildCounterPivotGroupValueMetadata--; |
2591 } | 2612 } |
2592 | 2613 |
2593 buildUnnamed385() { | |
2594 var o = new core.List<api.PivotGroup>(); | |
2595 o.add(buildPivotGroup()); | |
2596 o.add(buildPivotGroup()); | |
2597 return o; | |
2598 } | |
2599 | |
2600 checkUnnamed385(core.List<api.PivotGroup> o) { | |
2601 unittest.expect(o, unittest.hasLength(2)); | |
2602 checkPivotGroup(o[0]); | |
2603 checkPivotGroup(o[1]); | |
2604 } | |
2605 | |
2606 buildUnnamed386() { | |
2607 var o = new core.Map<core.String, api.PivotFilterCriteria>(); | |
2608 o["x"] = buildPivotFilterCriteria(); | |
2609 o["y"] = buildPivotFilterCriteria(); | |
2610 return o; | |
2611 } | |
2612 | |
2613 checkUnnamed386(core.Map<core.String, api.PivotFilterCriteria> o) { | |
2614 unittest.expect(o, unittest.hasLength(2)); | |
2615 checkPivotFilterCriteria(o["x"]); | |
2616 checkPivotFilterCriteria(o["y"]); | |
2617 } | |
2618 | |
2619 buildUnnamed387() { | 2614 buildUnnamed387() { |
2620 var o = new core.List<api.PivotGroup>(); | 2615 var o = new core.List<api.PivotGroup>(); |
2621 o.add(buildPivotGroup()); | 2616 o.add(buildPivotGroup()); |
2622 o.add(buildPivotGroup()); | 2617 o.add(buildPivotGroup()); |
2623 return o; | 2618 return o; |
2624 } | 2619 } |
2625 | 2620 |
2626 checkUnnamed387(core.List<api.PivotGroup> o) { | 2621 checkUnnamed387(core.List<api.PivotGroup> o) { |
2627 unittest.expect(o, unittest.hasLength(2)); | 2622 unittest.expect(o, unittest.hasLength(2)); |
2628 checkPivotGroup(o[0]); | 2623 checkPivotGroup(o[0]); |
2629 checkPivotGroup(o[1]); | 2624 checkPivotGroup(o[1]); |
2630 } | 2625 } |
2631 | 2626 |
2632 buildUnnamed388() { | 2627 buildUnnamed388() { |
| 2628 var o = new core.Map<core.String, api.PivotFilterCriteria>(); |
| 2629 o["x"] = buildPivotFilterCriteria(); |
| 2630 o["y"] = buildPivotFilterCriteria(); |
| 2631 return o; |
| 2632 } |
| 2633 |
| 2634 checkUnnamed388(core.Map<core.String, api.PivotFilterCriteria> o) { |
| 2635 unittest.expect(o, unittest.hasLength(2)); |
| 2636 checkPivotFilterCriteria(o["x"]); |
| 2637 checkPivotFilterCriteria(o["y"]); |
| 2638 } |
| 2639 |
| 2640 buildUnnamed389() { |
| 2641 var o = new core.List<api.PivotGroup>(); |
| 2642 o.add(buildPivotGroup()); |
| 2643 o.add(buildPivotGroup()); |
| 2644 return o; |
| 2645 } |
| 2646 |
| 2647 checkUnnamed389(core.List<api.PivotGroup> o) { |
| 2648 unittest.expect(o, unittest.hasLength(2)); |
| 2649 checkPivotGroup(o[0]); |
| 2650 checkPivotGroup(o[1]); |
| 2651 } |
| 2652 |
| 2653 buildUnnamed390() { |
2633 var o = new core.List<api.PivotValue>(); | 2654 var o = new core.List<api.PivotValue>(); |
2634 o.add(buildPivotValue()); | 2655 o.add(buildPivotValue()); |
2635 o.add(buildPivotValue()); | 2656 o.add(buildPivotValue()); |
2636 return o; | 2657 return o; |
2637 } | 2658 } |
2638 | 2659 |
2639 checkUnnamed388(core.List<api.PivotValue> o) { | 2660 checkUnnamed390(core.List<api.PivotValue> o) { |
2640 unittest.expect(o, unittest.hasLength(2)); | 2661 unittest.expect(o, unittest.hasLength(2)); |
2641 checkPivotValue(o[0]); | 2662 checkPivotValue(o[0]); |
2642 checkPivotValue(o[1]); | 2663 checkPivotValue(o[1]); |
2643 } | 2664 } |
2644 | 2665 |
2645 core.int buildCounterPivotTable = 0; | 2666 core.int buildCounterPivotTable = 0; |
2646 buildPivotTable() { | 2667 buildPivotTable() { |
2647 var o = new api.PivotTable(); | 2668 var o = new api.PivotTable(); |
2648 buildCounterPivotTable++; | 2669 buildCounterPivotTable++; |
2649 if (buildCounterPivotTable < 3) { | 2670 if (buildCounterPivotTable < 3) { |
2650 o.columns = buildUnnamed385(); | 2671 o.columns = buildUnnamed387(); |
2651 o.criteria = buildUnnamed386(); | 2672 o.criteria = buildUnnamed388(); |
2652 o.rows = buildUnnamed387(); | 2673 o.rows = buildUnnamed389(); |
2653 o.source = buildGridRange(); | 2674 o.source = buildGridRange(); |
2654 o.valueLayout = "foo"; | 2675 o.valueLayout = "foo"; |
2655 o.values = buildUnnamed388(); | 2676 o.values = buildUnnamed390(); |
2656 } | 2677 } |
2657 buildCounterPivotTable--; | 2678 buildCounterPivotTable--; |
2658 return o; | 2679 return o; |
2659 } | 2680 } |
2660 | 2681 |
2661 checkPivotTable(api.PivotTable o) { | 2682 checkPivotTable(api.PivotTable o) { |
2662 buildCounterPivotTable++; | 2683 buildCounterPivotTable++; |
2663 if (buildCounterPivotTable < 3) { | 2684 if (buildCounterPivotTable < 3) { |
2664 checkUnnamed385(o.columns); | 2685 checkUnnamed387(o.columns); |
2665 checkUnnamed386(o.criteria); | 2686 checkUnnamed388(o.criteria); |
2666 checkUnnamed387(o.rows); | 2687 checkUnnamed389(o.rows); |
2667 checkGridRange(o.source); | 2688 checkGridRange(o.source); |
2668 unittest.expect(o.valueLayout, unittest.equals('foo')); | 2689 unittest.expect(o.valueLayout, unittest.equals('foo')); |
2669 checkUnnamed388(o.values); | 2690 checkUnnamed390(o.values); |
2670 } | 2691 } |
2671 buildCounterPivotTable--; | 2692 buildCounterPivotTable--; |
2672 } | 2693 } |
2673 | 2694 |
2674 core.int buildCounterPivotValue = 0; | 2695 core.int buildCounterPivotValue = 0; |
2675 buildPivotValue() { | 2696 buildPivotValue() { |
2676 var o = new api.PivotValue(); | 2697 var o = new api.PivotValue(); |
2677 buildCounterPivotValue++; | 2698 buildCounterPivotValue++; |
2678 if (buildCounterPivotValue < 3) { | 2699 if (buildCounterPivotValue < 3) { |
2679 o.formula = "foo"; | 2700 o.formula = "foo"; |
2680 o.name = "foo"; | 2701 o.name = "foo"; |
2681 o.sourceColumnOffset = 42; | 2702 o.sourceColumnOffset = 42; |
2682 o.summarizeFunction = "foo"; | 2703 o.summarizeFunction = "foo"; |
2683 } | 2704 } |
2684 buildCounterPivotValue--; | 2705 buildCounterPivotValue--; |
2685 return o; | 2706 return o; |
2686 } | 2707 } |
2687 | 2708 |
2688 checkPivotValue(api.PivotValue o) { | 2709 checkPivotValue(api.PivotValue o) { |
2689 buildCounterPivotValue++; | 2710 buildCounterPivotValue++; |
2690 if (buildCounterPivotValue < 3) { | 2711 if (buildCounterPivotValue < 3) { |
2691 unittest.expect(o.formula, unittest.equals('foo')); | 2712 unittest.expect(o.formula, unittest.equals('foo')); |
2692 unittest.expect(o.name, unittest.equals('foo')); | 2713 unittest.expect(o.name, unittest.equals('foo')); |
2693 unittest.expect(o.sourceColumnOffset, unittest.equals(42)); | 2714 unittest.expect(o.sourceColumnOffset, unittest.equals(42)); |
2694 unittest.expect(o.summarizeFunction, unittest.equals('foo')); | 2715 unittest.expect(o.summarizeFunction, unittest.equals('foo')); |
2695 } | 2716 } |
2696 buildCounterPivotValue--; | 2717 buildCounterPivotValue--; |
2697 } | 2718 } |
2698 | 2719 |
2699 buildUnnamed389() { | 2720 buildUnnamed391() { |
2700 var o = new core.List<api.GridRange>(); | 2721 var o = new core.List<api.GridRange>(); |
2701 o.add(buildGridRange()); | 2722 o.add(buildGridRange()); |
2702 o.add(buildGridRange()); | 2723 o.add(buildGridRange()); |
2703 return o; | 2724 return o; |
2704 } | 2725 } |
2705 | 2726 |
2706 checkUnnamed389(core.List<api.GridRange> o) { | 2727 checkUnnamed391(core.List<api.GridRange> o) { |
2707 unittest.expect(o, unittest.hasLength(2)); | 2728 unittest.expect(o, unittest.hasLength(2)); |
2708 checkGridRange(o[0]); | 2729 checkGridRange(o[0]); |
2709 checkGridRange(o[1]); | 2730 checkGridRange(o[1]); |
2710 } | 2731 } |
2711 | 2732 |
2712 core.int buildCounterProtectedRange = 0; | 2733 core.int buildCounterProtectedRange = 0; |
2713 buildProtectedRange() { | 2734 buildProtectedRange() { |
2714 var o = new api.ProtectedRange(); | 2735 var o = new api.ProtectedRange(); |
2715 buildCounterProtectedRange++; | 2736 buildCounterProtectedRange++; |
2716 if (buildCounterProtectedRange < 3) { | 2737 if (buildCounterProtectedRange < 3) { |
2717 o.description = "foo"; | 2738 o.description = "foo"; |
2718 o.editors = buildEditors(); | 2739 o.editors = buildEditors(); |
2719 o.namedRangeId = "foo"; | 2740 o.namedRangeId = "foo"; |
2720 o.protectedRangeId = 42; | 2741 o.protectedRangeId = 42; |
2721 o.range = buildGridRange(); | 2742 o.range = buildGridRange(); |
2722 o.requestingUserCanEdit = true; | 2743 o.requestingUserCanEdit = true; |
2723 o.unprotectedRanges = buildUnnamed389(); | 2744 o.unprotectedRanges = buildUnnamed391(); |
2724 o.warningOnly = true; | 2745 o.warningOnly = true; |
2725 } | 2746 } |
2726 buildCounterProtectedRange--; | 2747 buildCounterProtectedRange--; |
2727 return o; | 2748 return o; |
2728 } | 2749 } |
2729 | 2750 |
2730 checkProtectedRange(api.ProtectedRange o) { | 2751 checkProtectedRange(api.ProtectedRange o) { |
2731 buildCounterProtectedRange++; | 2752 buildCounterProtectedRange++; |
2732 if (buildCounterProtectedRange < 3) { | 2753 if (buildCounterProtectedRange < 3) { |
2733 unittest.expect(o.description, unittest.equals('foo')); | 2754 unittest.expect(o.description, unittest.equals('foo')); |
2734 checkEditors(o.editors); | 2755 checkEditors(o.editors); |
2735 unittest.expect(o.namedRangeId, unittest.equals('foo')); | 2756 unittest.expect(o.namedRangeId, unittest.equals('foo')); |
2736 unittest.expect(o.protectedRangeId, unittest.equals(42)); | 2757 unittest.expect(o.protectedRangeId, unittest.equals(42)); |
2737 checkGridRange(o.range); | 2758 checkGridRange(o.range); |
2738 unittest.expect(o.requestingUserCanEdit, unittest.isTrue); | 2759 unittest.expect(o.requestingUserCanEdit, unittest.isTrue); |
2739 checkUnnamed389(o.unprotectedRanges); | 2760 checkUnnamed391(o.unprotectedRanges); |
2740 unittest.expect(o.warningOnly, unittest.isTrue); | 2761 unittest.expect(o.warningOnly, unittest.isTrue); |
2741 } | 2762 } |
2742 buildCounterProtectedRange--; | 2763 buildCounterProtectedRange--; |
2743 } | 2764 } |
2744 | 2765 |
2745 core.int buildCounterRepeatCellRequest = 0; | 2766 core.int buildCounterRepeatCellRequest = 0; |
2746 buildRepeatCellRequest() { | 2767 buildRepeatCellRequest() { |
2747 var o = new api.RepeatCellRequest(); | 2768 var o = new api.RepeatCellRequest(); |
2748 buildCounterRepeatCellRequest++; | 2769 buildCounterRepeatCellRequest++; |
2749 if (buildCounterRepeatCellRequest < 3) { | 2770 if (buildCounterRepeatCellRequest < 3) { |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2914 checkDeleteConditionalFormatRuleResponse(o.deleteConditionalFormatRule); | 2935 checkDeleteConditionalFormatRuleResponse(o.deleteConditionalFormatRule); |
2915 checkDuplicateFilterViewResponse(o.duplicateFilterView); | 2936 checkDuplicateFilterViewResponse(o.duplicateFilterView); |
2916 checkDuplicateSheetResponse(o.duplicateSheet); | 2937 checkDuplicateSheetResponse(o.duplicateSheet); |
2917 checkFindReplaceResponse(o.findReplace); | 2938 checkFindReplaceResponse(o.findReplace); |
2918 checkUpdateConditionalFormatRuleResponse(o.updateConditionalFormatRule); | 2939 checkUpdateConditionalFormatRuleResponse(o.updateConditionalFormatRule); |
2919 checkUpdateEmbeddedObjectPositionResponse(o.updateEmbeddedObjectPosition); | 2940 checkUpdateEmbeddedObjectPositionResponse(o.updateEmbeddedObjectPosition); |
2920 } | 2941 } |
2921 buildCounterResponse--; | 2942 buildCounterResponse--; |
2922 } | 2943 } |
2923 | 2944 |
2924 buildUnnamed390() { | 2945 buildUnnamed392() { |
2925 var o = new core.List<api.CellData>(); | 2946 var o = new core.List<api.CellData>(); |
2926 o.add(buildCellData()); | 2947 o.add(buildCellData()); |
2927 o.add(buildCellData()); | 2948 o.add(buildCellData()); |
2928 return o; | 2949 return o; |
2929 } | 2950 } |
2930 | 2951 |
2931 checkUnnamed390(core.List<api.CellData> o) { | 2952 checkUnnamed392(core.List<api.CellData> o) { |
2932 unittest.expect(o, unittest.hasLength(2)); | 2953 unittest.expect(o, unittest.hasLength(2)); |
2933 checkCellData(o[0]); | 2954 checkCellData(o[0]); |
2934 checkCellData(o[1]); | 2955 checkCellData(o[1]); |
2935 } | 2956 } |
2936 | 2957 |
2937 core.int buildCounterRowData = 0; | 2958 core.int buildCounterRowData = 0; |
2938 buildRowData() { | 2959 buildRowData() { |
2939 var o = new api.RowData(); | 2960 var o = new api.RowData(); |
2940 buildCounterRowData++; | 2961 buildCounterRowData++; |
2941 if (buildCounterRowData < 3) { | 2962 if (buildCounterRowData < 3) { |
2942 o.values = buildUnnamed390(); | 2963 o.values = buildUnnamed392(); |
2943 } | 2964 } |
2944 buildCounterRowData--; | 2965 buildCounterRowData--; |
2945 return o; | 2966 return o; |
2946 } | 2967 } |
2947 | 2968 |
2948 checkRowData(api.RowData o) { | 2969 checkRowData(api.RowData o) { |
2949 buildCounterRowData++; | 2970 buildCounterRowData++; |
2950 if (buildCounterRowData < 3) { | 2971 if (buildCounterRowData < 3) { |
2951 checkUnnamed390(o.values); | 2972 checkUnnamed392(o.values); |
2952 } | 2973 } |
2953 buildCounterRowData--; | 2974 buildCounterRowData--; |
2954 } | 2975 } |
2955 | 2976 |
2956 core.int buildCounterSetBasicFilterRequest = 0; | 2977 core.int buildCounterSetBasicFilterRequest = 0; |
2957 buildSetBasicFilterRequest() { | 2978 buildSetBasicFilterRequest() { |
2958 var o = new api.SetBasicFilterRequest(); | 2979 var o = new api.SetBasicFilterRequest(); |
2959 buildCounterSetBasicFilterRequest++; | 2980 buildCounterSetBasicFilterRequest++; |
2960 if (buildCounterSetBasicFilterRequest < 3) { | 2981 if (buildCounterSetBasicFilterRequest < 3) { |
2961 o.filter = buildBasicFilter(); | 2982 o.filter = buildBasicFilter(); |
(...skipping 24 matching lines...) Expand all Loading... |
2986 | 3007 |
2987 checkSetDataValidationRequest(api.SetDataValidationRequest o) { | 3008 checkSetDataValidationRequest(api.SetDataValidationRequest o) { |
2988 buildCounterSetDataValidationRequest++; | 3009 buildCounterSetDataValidationRequest++; |
2989 if (buildCounterSetDataValidationRequest < 3) { | 3010 if (buildCounterSetDataValidationRequest < 3) { |
2990 checkGridRange(o.range); | 3011 checkGridRange(o.range); |
2991 checkDataValidationRule(o.rule); | 3012 checkDataValidationRule(o.rule); |
2992 } | 3013 } |
2993 buildCounterSetDataValidationRequest--; | 3014 buildCounterSetDataValidationRequest--; |
2994 } | 3015 } |
2995 | 3016 |
2996 buildUnnamed391() { | 3017 buildUnnamed393() { |
2997 var o = new core.List<api.BandedRange>(); | 3018 var o = new core.List<api.BandedRange>(); |
2998 o.add(buildBandedRange()); | 3019 o.add(buildBandedRange()); |
2999 o.add(buildBandedRange()); | 3020 o.add(buildBandedRange()); |
3000 return o; | 3021 return o; |
3001 } | 3022 } |
3002 | 3023 |
3003 checkUnnamed391(core.List<api.BandedRange> o) { | 3024 checkUnnamed393(core.List<api.BandedRange> o) { |
3004 unittest.expect(o, unittest.hasLength(2)); | 3025 unittest.expect(o, unittest.hasLength(2)); |
3005 checkBandedRange(o[0]); | 3026 checkBandedRange(o[0]); |
3006 checkBandedRange(o[1]); | 3027 checkBandedRange(o[1]); |
3007 } | 3028 } |
3008 | 3029 |
3009 buildUnnamed392() { | 3030 buildUnnamed394() { |
3010 var o = new core.List<api.EmbeddedChart>(); | 3031 var o = new core.List<api.EmbeddedChart>(); |
3011 o.add(buildEmbeddedChart()); | 3032 o.add(buildEmbeddedChart()); |
3012 o.add(buildEmbeddedChart()); | 3033 o.add(buildEmbeddedChart()); |
3013 return o; | 3034 return o; |
3014 } | 3035 } |
3015 | 3036 |
3016 checkUnnamed392(core.List<api.EmbeddedChart> o) { | 3037 checkUnnamed394(core.List<api.EmbeddedChart> o) { |
3017 unittest.expect(o, unittest.hasLength(2)); | 3038 unittest.expect(o, unittest.hasLength(2)); |
3018 checkEmbeddedChart(o[0]); | 3039 checkEmbeddedChart(o[0]); |
3019 checkEmbeddedChart(o[1]); | 3040 checkEmbeddedChart(o[1]); |
3020 } | 3041 } |
3021 | 3042 |
3022 buildUnnamed393() { | 3043 buildUnnamed395() { |
3023 var o = new core.List<api.ConditionalFormatRule>(); | 3044 var o = new core.List<api.ConditionalFormatRule>(); |
3024 o.add(buildConditionalFormatRule()); | 3045 o.add(buildConditionalFormatRule()); |
3025 o.add(buildConditionalFormatRule()); | 3046 o.add(buildConditionalFormatRule()); |
3026 return o; | 3047 return o; |
3027 } | 3048 } |
3028 | 3049 |
3029 checkUnnamed393(core.List<api.ConditionalFormatRule> o) { | 3050 checkUnnamed395(core.List<api.ConditionalFormatRule> o) { |
3030 unittest.expect(o, unittest.hasLength(2)); | 3051 unittest.expect(o, unittest.hasLength(2)); |
3031 checkConditionalFormatRule(o[0]); | 3052 checkConditionalFormatRule(o[0]); |
3032 checkConditionalFormatRule(o[1]); | 3053 checkConditionalFormatRule(o[1]); |
3033 } | 3054 } |
3034 | 3055 |
3035 buildUnnamed394() { | 3056 buildUnnamed396() { |
3036 var o = new core.List<api.GridData>(); | 3057 var o = new core.List<api.GridData>(); |
3037 o.add(buildGridData()); | 3058 o.add(buildGridData()); |
3038 o.add(buildGridData()); | 3059 o.add(buildGridData()); |
3039 return o; | 3060 return o; |
3040 } | 3061 } |
3041 | 3062 |
3042 checkUnnamed394(core.List<api.GridData> o) { | 3063 checkUnnamed396(core.List<api.GridData> o) { |
3043 unittest.expect(o, unittest.hasLength(2)); | 3064 unittest.expect(o, unittest.hasLength(2)); |
3044 checkGridData(o[0]); | 3065 checkGridData(o[0]); |
3045 checkGridData(o[1]); | 3066 checkGridData(o[1]); |
3046 } | 3067 } |
3047 | 3068 |
3048 buildUnnamed395() { | 3069 buildUnnamed397() { |
3049 var o = new core.List<api.FilterView>(); | 3070 var o = new core.List<api.FilterView>(); |
3050 o.add(buildFilterView()); | 3071 o.add(buildFilterView()); |
3051 o.add(buildFilterView()); | 3072 o.add(buildFilterView()); |
3052 return o; | 3073 return o; |
3053 } | 3074 } |
3054 | 3075 |
3055 checkUnnamed395(core.List<api.FilterView> o) { | 3076 checkUnnamed397(core.List<api.FilterView> o) { |
3056 unittest.expect(o, unittest.hasLength(2)); | 3077 unittest.expect(o, unittest.hasLength(2)); |
3057 checkFilterView(o[0]); | 3078 checkFilterView(o[0]); |
3058 checkFilterView(o[1]); | 3079 checkFilterView(o[1]); |
3059 } | 3080 } |
3060 | 3081 |
3061 buildUnnamed396() { | 3082 buildUnnamed398() { |
3062 var o = new core.List<api.GridRange>(); | 3083 var o = new core.List<api.GridRange>(); |
3063 o.add(buildGridRange()); | 3084 o.add(buildGridRange()); |
3064 o.add(buildGridRange()); | 3085 o.add(buildGridRange()); |
3065 return o; | 3086 return o; |
3066 } | 3087 } |
3067 | 3088 |
3068 checkUnnamed396(core.List<api.GridRange> o) { | 3089 checkUnnamed398(core.List<api.GridRange> o) { |
3069 unittest.expect(o, unittest.hasLength(2)); | 3090 unittest.expect(o, unittest.hasLength(2)); |
3070 checkGridRange(o[0]); | 3091 checkGridRange(o[0]); |
3071 checkGridRange(o[1]); | 3092 checkGridRange(o[1]); |
3072 } | 3093 } |
3073 | 3094 |
3074 buildUnnamed397() { | 3095 buildUnnamed399() { |
3075 var o = new core.List<api.ProtectedRange>(); | 3096 var o = new core.List<api.ProtectedRange>(); |
3076 o.add(buildProtectedRange()); | 3097 o.add(buildProtectedRange()); |
3077 o.add(buildProtectedRange()); | 3098 o.add(buildProtectedRange()); |
3078 return o; | 3099 return o; |
3079 } | 3100 } |
3080 | 3101 |
3081 checkUnnamed397(core.List<api.ProtectedRange> o) { | 3102 checkUnnamed399(core.List<api.ProtectedRange> o) { |
3082 unittest.expect(o, unittest.hasLength(2)); | 3103 unittest.expect(o, unittest.hasLength(2)); |
3083 checkProtectedRange(o[0]); | 3104 checkProtectedRange(o[0]); |
3084 checkProtectedRange(o[1]); | 3105 checkProtectedRange(o[1]); |
3085 } | 3106 } |
3086 | 3107 |
3087 core.int buildCounterSheet = 0; | 3108 core.int buildCounterSheet = 0; |
3088 buildSheet() { | 3109 buildSheet() { |
3089 var o = new api.Sheet(); | 3110 var o = new api.Sheet(); |
3090 buildCounterSheet++; | 3111 buildCounterSheet++; |
3091 if (buildCounterSheet < 3) { | 3112 if (buildCounterSheet < 3) { |
3092 o.bandedRanges = buildUnnamed391(); | 3113 o.bandedRanges = buildUnnamed393(); |
3093 o.basicFilter = buildBasicFilter(); | 3114 o.basicFilter = buildBasicFilter(); |
3094 o.charts = buildUnnamed392(); | 3115 o.charts = buildUnnamed394(); |
3095 o.conditionalFormats = buildUnnamed393(); | 3116 o.conditionalFormats = buildUnnamed395(); |
3096 o.data = buildUnnamed394(); | 3117 o.data = buildUnnamed396(); |
3097 o.filterViews = buildUnnamed395(); | 3118 o.filterViews = buildUnnamed397(); |
3098 o.merges = buildUnnamed396(); | 3119 o.merges = buildUnnamed398(); |
3099 o.properties = buildSheetProperties(); | 3120 o.properties = buildSheetProperties(); |
3100 o.protectedRanges = buildUnnamed397(); | 3121 o.protectedRanges = buildUnnamed399(); |
3101 } | 3122 } |
3102 buildCounterSheet--; | 3123 buildCounterSheet--; |
3103 return o; | 3124 return o; |
3104 } | 3125 } |
3105 | 3126 |
3106 checkSheet(api.Sheet o) { | 3127 checkSheet(api.Sheet o) { |
3107 buildCounterSheet++; | 3128 buildCounterSheet++; |
3108 if (buildCounterSheet < 3) { | 3129 if (buildCounterSheet < 3) { |
3109 checkUnnamed391(o.bandedRanges); | 3130 checkUnnamed393(o.bandedRanges); |
3110 checkBasicFilter(o.basicFilter); | 3131 checkBasicFilter(o.basicFilter); |
3111 checkUnnamed392(o.charts); | 3132 checkUnnamed394(o.charts); |
3112 checkUnnamed393(o.conditionalFormats); | 3133 checkUnnamed395(o.conditionalFormats); |
3113 checkUnnamed394(o.data); | 3134 checkUnnamed396(o.data); |
3114 checkUnnamed395(o.filterViews); | 3135 checkUnnamed397(o.filterViews); |
3115 checkUnnamed396(o.merges); | 3136 checkUnnamed398(o.merges); |
3116 checkSheetProperties(o.properties); | 3137 checkSheetProperties(o.properties); |
3117 checkUnnamed397(o.protectedRanges); | 3138 checkUnnamed399(o.protectedRanges); |
3118 } | 3139 } |
3119 buildCounterSheet--; | 3140 buildCounterSheet--; |
3120 } | 3141 } |
3121 | 3142 |
3122 core.int buildCounterSheetProperties = 0; | 3143 core.int buildCounterSheetProperties = 0; |
3123 buildSheetProperties() { | 3144 buildSheetProperties() { |
3124 var o = new api.SheetProperties(); | 3145 var o = new api.SheetProperties(); |
3125 buildCounterSheetProperties++; | 3146 buildCounterSheetProperties++; |
3126 if (buildCounterSheetProperties < 3) { | 3147 if (buildCounterSheetProperties < 3) { |
3127 o.gridProperties = buildGridProperties(); | 3148 o.gridProperties = buildGridProperties(); |
(...skipping 17 matching lines...) Expand all Loading... |
3145 unittest.expect(o.index, unittest.equals(42)); | 3166 unittest.expect(o.index, unittest.equals(42)); |
3146 unittest.expect(o.rightToLeft, unittest.isTrue); | 3167 unittest.expect(o.rightToLeft, unittest.isTrue); |
3147 unittest.expect(o.sheetId, unittest.equals(42)); | 3168 unittest.expect(o.sheetId, unittest.equals(42)); |
3148 unittest.expect(o.sheetType, unittest.equals('foo')); | 3169 unittest.expect(o.sheetType, unittest.equals('foo')); |
3149 checkColor(o.tabColor); | 3170 checkColor(o.tabColor); |
3150 unittest.expect(o.title, unittest.equals('foo')); | 3171 unittest.expect(o.title, unittest.equals('foo')); |
3151 } | 3172 } |
3152 buildCounterSheetProperties--; | 3173 buildCounterSheetProperties--; |
3153 } | 3174 } |
3154 | 3175 |
3155 buildUnnamed398() { | 3176 buildUnnamed400() { |
3156 var o = new core.List<api.SortSpec>(); | 3177 var o = new core.List<api.SortSpec>(); |
3157 o.add(buildSortSpec()); | 3178 o.add(buildSortSpec()); |
3158 o.add(buildSortSpec()); | 3179 o.add(buildSortSpec()); |
3159 return o; | 3180 return o; |
3160 } | 3181 } |
3161 | 3182 |
3162 checkUnnamed398(core.List<api.SortSpec> o) { | 3183 checkUnnamed400(core.List<api.SortSpec> o) { |
3163 unittest.expect(o, unittest.hasLength(2)); | 3184 unittest.expect(o, unittest.hasLength(2)); |
3164 checkSortSpec(o[0]); | 3185 checkSortSpec(o[0]); |
3165 checkSortSpec(o[1]); | 3186 checkSortSpec(o[1]); |
3166 } | 3187 } |
3167 | 3188 |
3168 core.int buildCounterSortRangeRequest = 0; | 3189 core.int buildCounterSortRangeRequest = 0; |
3169 buildSortRangeRequest() { | 3190 buildSortRangeRequest() { |
3170 var o = new api.SortRangeRequest(); | 3191 var o = new api.SortRangeRequest(); |
3171 buildCounterSortRangeRequest++; | 3192 buildCounterSortRangeRequest++; |
3172 if (buildCounterSortRangeRequest < 3) { | 3193 if (buildCounterSortRangeRequest < 3) { |
3173 o.range = buildGridRange(); | 3194 o.range = buildGridRange(); |
3174 o.sortSpecs = buildUnnamed398(); | 3195 o.sortSpecs = buildUnnamed400(); |
3175 } | 3196 } |
3176 buildCounterSortRangeRequest--; | 3197 buildCounterSortRangeRequest--; |
3177 return o; | 3198 return o; |
3178 } | 3199 } |
3179 | 3200 |
3180 checkSortRangeRequest(api.SortRangeRequest o) { | 3201 checkSortRangeRequest(api.SortRangeRequest o) { |
3181 buildCounterSortRangeRequest++; | 3202 buildCounterSortRangeRequest++; |
3182 if (buildCounterSortRangeRequest < 3) { | 3203 if (buildCounterSortRangeRequest < 3) { |
3183 checkGridRange(o.range); | 3204 checkGridRange(o.range); |
3184 checkUnnamed398(o.sortSpecs); | 3205 checkUnnamed400(o.sortSpecs); |
3185 } | 3206 } |
3186 buildCounterSortRangeRequest--; | 3207 buildCounterSortRangeRequest--; |
3187 } | 3208 } |
3188 | 3209 |
3189 core.int buildCounterSortSpec = 0; | 3210 core.int buildCounterSortSpec = 0; |
3190 buildSortSpec() { | 3211 buildSortSpec() { |
3191 var o = new api.SortSpec(); | 3212 var o = new api.SortSpec(); |
3192 buildCounterSortSpec++; | 3213 buildCounterSortSpec++; |
3193 if (buildCounterSortSpec < 3) { | 3214 if (buildCounterSortSpec < 3) { |
3194 o.dimensionIndex = 42; | 3215 o.dimensionIndex = 42; |
(...skipping 28 matching lines...) Expand all Loading... |
3223 checkSourceAndDestination(api.SourceAndDestination o) { | 3244 checkSourceAndDestination(api.SourceAndDestination o) { |
3224 buildCounterSourceAndDestination++; | 3245 buildCounterSourceAndDestination++; |
3225 if (buildCounterSourceAndDestination < 3) { | 3246 if (buildCounterSourceAndDestination < 3) { |
3226 unittest.expect(o.dimension, unittest.equals('foo')); | 3247 unittest.expect(o.dimension, unittest.equals('foo')); |
3227 unittest.expect(o.fillLength, unittest.equals(42)); | 3248 unittest.expect(o.fillLength, unittest.equals(42)); |
3228 checkGridRange(o.source); | 3249 checkGridRange(o.source); |
3229 } | 3250 } |
3230 buildCounterSourceAndDestination--; | 3251 buildCounterSourceAndDestination--; |
3231 } | 3252 } |
3232 | 3253 |
3233 buildUnnamed399() { | 3254 buildUnnamed401() { |
3234 var o = new core.List<api.NamedRange>(); | 3255 var o = new core.List<api.NamedRange>(); |
3235 o.add(buildNamedRange()); | 3256 o.add(buildNamedRange()); |
3236 o.add(buildNamedRange()); | 3257 o.add(buildNamedRange()); |
3237 return o; | 3258 return o; |
3238 } | 3259 } |
3239 | 3260 |
3240 checkUnnamed399(core.List<api.NamedRange> o) { | 3261 checkUnnamed401(core.List<api.NamedRange> o) { |
3241 unittest.expect(o, unittest.hasLength(2)); | 3262 unittest.expect(o, unittest.hasLength(2)); |
3242 checkNamedRange(o[0]); | 3263 checkNamedRange(o[0]); |
3243 checkNamedRange(o[1]); | 3264 checkNamedRange(o[1]); |
3244 } | 3265 } |
3245 | 3266 |
3246 buildUnnamed400() { | 3267 buildUnnamed402() { |
3247 var o = new core.List<api.Sheet>(); | 3268 var o = new core.List<api.Sheet>(); |
3248 o.add(buildSheet()); | 3269 o.add(buildSheet()); |
3249 o.add(buildSheet()); | 3270 o.add(buildSheet()); |
3250 return o; | 3271 return o; |
3251 } | 3272 } |
3252 | 3273 |
3253 checkUnnamed400(core.List<api.Sheet> o) { | 3274 checkUnnamed402(core.List<api.Sheet> o) { |
3254 unittest.expect(o, unittest.hasLength(2)); | 3275 unittest.expect(o, unittest.hasLength(2)); |
3255 checkSheet(o[0]); | 3276 checkSheet(o[0]); |
3256 checkSheet(o[1]); | 3277 checkSheet(o[1]); |
3257 } | 3278 } |
3258 | 3279 |
3259 core.int buildCounterSpreadsheet = 0; | 3280 core.int buildCounterSpreadsheet = 0; |
3260 buildSpreadsheet() { | 3281 buildSpreadsheet() { |
3261 var o = new api.Spreadsheet(); | 3282 var o = new api.Spreadsheet(); |
3262 buildCounterSpreadsheet++; | 3283 buildCounterSpreadsheet++; |
3263 if (buildCounterSpreadsheet < 3) { | 3284 if (buildCounterSpreadsheet < 3) { |
3264 o.namedRanges = buildUnnamed399(); | 3285 o.namedRanges = buildUnnamed401(); |
3265 o.properties = buildSpreadsheetProperties(); | 3286 o.properties = buildSpreadsheetProperties(); |
3266 o.sheets = buildUnnamed400(); | 3287 o.sheets = buildUnnamed402(); |
3267 o.spreadsheetId = "foo"; | 3288 o.spreadsheetId = "foo"; |
3268 o.spreadsheetUrl = "foo"; | 3289 o.spreadsheetUrl = "foo"; |
3269 } | 3290 } |
3270 buildCounterSpreadsheet--; | 3291 buildCounterSpreadsheet--; |
3271 return o; | 3292 return o; |
3272 } | 3293 } |
3273 | 3294 |
3274 checkSpreadsheet(api.Spreadsheet o) { | 3295 checkSpreadsheet(api.Spreadsheet o) { |
3275 buildCounterSpreadsheet++; | 3296 buildCounterSpreadsheet++; |
3276 if (buildCounterSpreadsheet < 3) { | 3297 if (buildCounterSpreadsheet < 3) { |
3277 checkUnnamed399(o.namedRanges); | 3298 checkUnnamed401(o.namedRanges); |
3278 checkSpreadsheetProperties(o.properties); | 3299 checkSpreadsheetProperties(o.properties); |
3279 checkUnnamed400(o.sheets); | 3300 checkUnnamed402(o.sheets); |
3280 unittest.expect(o.spreadsheetId, unittest.equals('foo')); | 3301 unittest.expect(o.spreadsheetId, unittest.equals('foo')); |
3281 unittest.expect(o.spreadsheetUrl, unittest.equals('foo')); | 3302 unittest.expect(o.spreadsheetUrl, unittest.equals('foo')); |
3282 } | 3303 } |
3283 buildCounterSpreadsheet--; | 3304 buildCounterSpreadsheet--; |
3284 } | 3305 } |
3285 | 3306 |
3286 core.int buildCounterSpreadsheetProperties = 0; | 3307 core.int buildCounterSpreadsheetProperties = 0; |
3287 buildSpreadsheetProperties() { | 3308 buildSpreadsheetProperties() { |
3288 var o = new api.SpreadsheetProperties(); | 3309 var o = new api.SpreadsheetProperties(); |
3289 buildCounterSpreadsheetProperties++; | 3310 buildCounterSpreadsheetProperties++; |
3290 if (buildCounterSpreadsheetProperties < 3) { | 3311 if (buildCounterSpreadsheetProperties < 3) { |
3291 o.autoRecalc = "foo"; | 3312 o.autoRecalc = "foo"; |
3292 o.defaultFormat = buildCellFormat(); | 3313 o.defaultFormat = buildCellFormat(); |
| 3314 o.iterativeCalculationSettings = buildIterativeCalculationSettings(); |
3293 o.locale = "foo"; | 3315 o.locale = "foo"; |
3294 o.timeZone = "foo"; | 3316 o.timeZone = "foo"; |
3295 o.title = "foo"; | 3317 o.title = "foo"; |
3296 } | 3318 } |
3297 buildCounterSpreadsheetProperties--; | 3319 buildCounterSpreadsheetProperties--; |
3298 return o; | 3320 return o; |
3299 } | 3321 } |
3300 | 3322 |
3301 checkSpreadsheetProperties(api.SpreadsheetProperties o) { | 3323 checkSpreadsheetProperties(api.SpreadsheetProperties o) { |
3302 buildCounterSpreadsheetProperties++; | 3324 buildCounterSpreadsheetProperties++; |
3303 if (buildCounterSpreadsheetProperties < 3) { | 3325 if (buildCounterSpreadsheetProperties < 3) { |
3304 unittest.expect(o.autoRecalc, unittest.equals('foo')); | 3326 unittest.expect(o.autoRecalc, unittest.equals('foo')); |
3305 checkCellFormat(o.defaultFormat); | 3327 checkCellFormat(o.defaultFormat); |
| 3328 checkIterativeCalculationSettings(o.iterativeCalculationSettings); |
3306 unittest.expect(o.locale, unittest.equals('foo')); | 3329 unittest.expect(o.locale, unittest.equals('foo')); |
3307 unittest.expect(o.timeZone, unittest.equals('foo')); | 3330 unittest.expect(o.timeZone, unittest.equals('foo')); |
3308 unittest.expect(o.title, unittest.equals('foo')); | 3331 unittest.expect(o.title, unittest.equals('foo')); |
3309 } | 3332 } |
3310 buildCounterSpreadsheetProperties--; | 3333 buildCounterSpreadsheetProperties--; |
3311 } | 3334 } |
3312 | 3335 |
3313 core.int buildCounterTextFormat = 0; | 3336 core.int buildCounterTextFormat = 0; |
3314 buildTextFormat() { | 3337 buildTextFormat() { |
3315 var o = new api.TextFormat(); | 3338 var o = new api.TextFormat(); |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3449 checkBorder(o.innerHorizontal); | 3472 checkBorder(o.innerHorizontal); |
3450 checkBorder(o.innerVertical); | 3473 checkBorder(o.innerVertical); |
3451 checkBorder(o.left); | 3474 checkBorder(o.left); |
3452 checkGridRange(o.range); | 3475 checkGridRange(o.range); |
3453 checkBorder(o.right); | 3476 checkBorder(o.right); |
3454 checkBorder(o.top); | 3477 checkBorder(o.top); |
3455 } | 3478 } |
3456 buildCounterUpdateBordersRequest--; | 3479 buildCounterUpdateBordersRequest--; |
3457 } | 3480 } |
3458 | 3481 |
3459 buildUnnamed401() { | 3482 buildUnnamed403() { |
3460 var o = new core.List<api.RowData>(); | 3483 var o = new core.List<api.RowData>(); |
3461 o.add(buildRowData()); | 3484 o.add(buildRowData()); |
3462 o.add(buildRowData()); | 3485 o.add(buildRowData()); |
3463 return o; | 3486 return o; |
3464 } | 3487 } |
3465 | 3488 |
3466 checkUnnamed401(core.List<api.RowData> o) { | 3489 checkUnnamed403(core.List<api.RowData> o) { |
3467 unittest.expect(o, unittest.hasLength(2)); | 3490 unittest.expect(o, unittest.hasLength(2)); |
3468 checkRowData(o[0]); | 3491 checkRowData(o[0]); |
3469 checkRowData(o[1]); | 3492 checkRowData(o[1]); |
3470 } | 3493 } |
3471 | 3494 |
3472 core.int buildCounterUpdateCellsRequest = 0; | 3495 core.int buildCounterUpdateCellsRequest = 0; |
3473 buildUpdateCellsRequest() { | 3496 buildUpdateCellsRequest() { |
3474 var o = new api.UpdateCellsRequest(); | 3497 var o = new api.UpdateCellsRequest(); |
3475 buildCounterUpdateCellsRequest++; | 3498 buildCounterUpdateCellsRequest++; |
3476 if (buildCounterUpdateCellsRequest < 3) { | 3499 if (buildCounterUpdateCellsRequest < 3) { |
3477 o.fields = "foo"; | 3500 o.fields = "foo"; |
3478 o.range = buildGridRange(); | 3501 o.range = buildGridRange(); |
3479 o.rows = buildUnnamed401(); | 3502 o.rows = buildUnnamed403(); |
3480 o.start = buildGridCoordinate(); | 3503 o.start = buildGridCoordinate(); |
3481 } | 3504 } |
3482 buildCounterUpdateCellsRequest--; | 3505 buildCounterUpdateCellsRequest--; |
3483 return o; | 3506 return o; |
3484 } | 3507 } |
3485 | 3508 |
3486 checkUpdateCellsRequest(api.UpdateCellsRequest o) { | 3509 checkUpdateCellsRequest(api.UpdateCellsRequest o) { |
3487 buildCounterUpdateCellsRequest++; | 3510 buildCounterUpdateCellsRequest++; |
3488 if (buildCounterUpdateCellsRequest < 3) { | 3511 if (buildCounterUpdateCellsRequest < 3) { |
3489 unittest.expect(o.fields, unittest.equals('foo')); | 3512 unittest.expect(o.fields, unittest.equals('foo')); |
3490 checkGridRange(o.range); | 3513 checkGridRange(o.range); |
3491 checkUnnamed401(o.rows); | 3514 checkUnnamed403(o.rows); |
3492 checkGridCoordinate(o.start); | 3515 checkGridCoordinate(o.start); |
3493 } | 3516 } |
3494 buildCounterUpdateCellsRequest--; | 3517 buildCounterUpdateCellsRequest--; |
3495 } | 3518 } |
3496 | 3519 |
3497 core.int buildCounterUpdateChartSpecRequest = 0; | 3520 core.int buildCounterUpdateChartSpecRequest = 0; |
3498 buildUpdateChartSpecRequest() { | 3521 buildUpdateChartSpecRequest() { |
3499 var o = new api.UpdateChartSpecRequest(); | 3522 var o = new api.UpdateChartSpecRequest(); |
3500 buildCounterUpdateChartSpecRequest++; | 3523 buildCounterUpdateChartSpecRequest++; |
3501 if (buildCounterUpdateChartSpecRequest < 3) { | 3524 if (buildCounterUpdateChartSpecRequest < 3) { |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3757 unittest.expect(o.spreadsheetId, unittest.equals('foo')); | 3780 unittest.expect(o.spreadsheetId, unittest.equals('foo')); |
3758 unittest.expect(o.updatedCells, unittest.equals(42)); | 3781 unittest.expect(o.updatedCells, unittest.equals(42)); |
3759 unittest.expect(o.updatedColumns, unittest.equals(42)); | 3782 unittest.expect(o.updatedColumns, unittest.equals(42)); |
3760 checkValueRange(o.updatedData); | 3783 checkValueRange(o.updatedData); |
3761 unittest.expect(o.updatedRange, unittest.equals('foo')); | 3784 unittest.expect(o.updatedRange, unittest.equals('foo')); |
3762 unittest.expect(o.updatedRows, unittest.equals(42)); | 3785 unittest.expect(o.updatedRows, unittest.equals(42)); |
3763 } | 3786 } |
3764 buildCounterUpdateValuesResponse--; | 3787 buildCounterUpdateValuesResponse--; |
3765 } | 3788 } |
3766 | 3789 |
3767 buildUnnamed402() { | 3790 buildUnnamed404() { |
3768 var o = new core.List<core.Object>(); | 3791 var o = new core.List<core.Object>(); |
3769 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 3792 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
3770 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 3793 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
3771 return o; | 3794 return o; |
3772 } | 3795 } |
3773 | 3796 |
3774 checkUnnamed402(core.List<core.Object> o) { | 3797 checkUnnamed404(core.List<core.Object> o) { |
3775 unittest.expect(o, unittest.hasLength(2)); | 3798 unittest.expect(o, unittest.hasLength(2)); |
3776 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')); | 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')); |
3777 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')); | 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')); |
3778 } | 3801 } |
3779 | 3802 |
3780 buildUnnamed403() { | 3803 buildUnnamed405() { |
3781 var o = new core.List<core.List<core.Object>>(); | 3804 var o = new core.List<core.List<core.Object>>(); |
3782 o.add(buildUnnamed402()); | 3805 o.add(buildUnnamed404()); |
3783 o.add(buildUnnamed402()); | 3806 o.add(buildUnnamed404()); |
3784 return o; | 3807 return o; |
3785 } | 3808 } |
3786 | 3809 |
3787 checkUnnamed403(core.List<core.List<core.Object>> o) { | 3810 checkUnnamed405(core.List<core.List<core.Object>> o) { |
3788 unittest.expect(o, unittest.hasLength(2)); | 3811 unittest.expect(o, unittest.hasLength(2)); |
3789 checkUnnamed402(o[0]); | 3812 checkUnnamed404(o[0]); |
3790 checkUnnamed402(o[1]); | 3813 checkUnnamed404(o[1]); |
3791 } | 3814 } |
3792 | 3815 |
3793 core.int buildCounterValueRange = 0; | 3816 core.int buildCounterValueRange = 0; |
3794 buildValueRange() { | 3817 buildValueRange() { |
3795 var o = new api.ValueRange(); | 3818 var o = new api.ValueRange(); |
3796 buildCounterValueRange++; | 3819 buildCounterValueRange++; |
3797 if (buildCounterValueRange < 3) { | 3820 if (buildCounterValueRange < 3) { |
3798 o.majorDimension = "foo"; | 3821 o.majorDimension = "foo"; |
3799 o.range = "foo"; | 3822 o.range = "foo"; |
3800 o.values = buildUnnamed403(); | 3823 o.values = buildUnnamed405(); |
3801 } | 3824 } |
3802 buildCounterValueRange--; | 3825 buildCounterValueRange--; |
3803 return o; | 3826 return o; |
3804 } | 3827 } |
3805 | 3828 |
3806 checkValueRange(api.ValueRange o) { | 3829 checkValueRange(api.ValueRange o) { |
3807 buildCounterValueRange++; | 3830 buildCounterValueRange++; |
3808 if (buildCounterValueRange < 3) { | 3831 if (buildCounterValueRange < 3) { |
3809 unittest.expect(o.majorDimension, unittest.equals('foo')); | 3832 unittest.expect(o.majorDimension, unittest.equals('foo')); |
3810 unittest.expect(o.range, unittest.equals('foo')); | 3833 unittest.expect(o.range, unittest.equals('foo')); |
3811 checkUnnamed403(o.values); | 3834 checkUnnamed405(o.values); |
3812 } | 3835 } |
3813 buildCounterValueRange--; | 3836 buildCounterValueRange--; |
3814 } | 3837 } |
3815 | 3838 |
3816 buildUnnamed404() { | 3839 buildUnnamed406() { |
3817 var o = new core.List<core.String>(); | 3840 var o = new core.List<core.String>(); |
3818 o.add("foo"); | 3841 o.add("foo"); |
3819 o.add("foo"); | 3842 o.add("foo"); |
3820 return o; | 3843 return o; |
3821 } | 3844 } |
3822 | 3845 |
3823 checkUnnamed404(core.List<core.String> o) { | 3846 checkUnnamed406(core.List<core.String> o) { |
3824 unittest.expect(o, unittest.hasLength(2)); | 3847 unittest.expect(o, unittest.hasLength(2)); |
3825 unittest.expect(o[0], unittest.equals('foo')); | 3848 unittest.expect(o[0], unittest.equals('foo')); |
3826 unittest.expect(o[1], unittest.equals('foo')); | 3849 unittest.expect(o[1], unittest.equals('foo')); |
3827 } | 3850 } |
3828 | 3851 |
3829 buildUnnamed405() { | 3852 buildUnnamed407() { |
3830 var o = new core.List<core.String>(); | 3853 var o = new core.List<core.String>(); |
3831 o.add("foo"); | 3854 o.add("foo"); |
3832 o.add("foo"); | 3855 o.add("foo"); |
3833 return o; | 3856 return o; |
3834 } | 3857 } |
3835 | 3858 |
3836 checkUnnamed405(core.List<core.String> o) { | 3859 checkUnnamed407(core.List<core.String> o) { |
3837 unittest.expect(o, unittest.hasLength(2)); | 3860 unittest.expect(o, unittest.hasLength(2)); |
3838 unittest.expect(o[0], unittest.equals('foo')); | 3861 unittest.expect(o[0], unittest.equals('foo')); |
3839 unittest.expect(o[1], unittest.equals('foo')); | 3862 unittest.expect(o[1], unittest.equals('foo')); |
3840 } | 3863 } |
3841 | 3864 |
3842 | 3865 |
3843 main() { | 3866 main() { |
3844 unittest.group("obj-schema-AddBandingRequest", () { | 3867 unittest.group("obj-schema-AddBandingRequest", () { |
3845 unittest.test("to-json--from-json", () { | 3868 unittest.test("to-json--from-json", () { |
3846 var o = buildAddBandingRequest(); | 3869 var o = buildAddBandingRequest(); |
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4590 | 4613 |
4591 unittest.group("obj-schema-InterpolationPoint", () { | 4614 unittest.group("obj-schema-InterpolationPoint", () { |
4592 unittest.test("to-json--from-json", () { | 4615 unittest.test("to-json--from-json", () { |
4593 var o = buildInterpolationPoint(); | 4616 var o = buildInterpolationPoint(); |
4594 var od = new api.InterpolationPoint.fromJson(o.toJson()); | 4617 var od = new api.InterpolationPoint.fromJson(o.toJson()); |
4595 checkInterpolationPoint(od); | 4618 checkInterpolationPoint(od); |
4596 }); | 4619 }); |
4597 }); | 4620 }); |
4598 | 4621 |
4599 | 4622 |
| 4623 unittest.group("obj-schema-IterativeCalculationSettings", () { |
| 4624 unittest.test("to-json--from-json", () { |
| 4625 var o = buildIterativeCalculationSettings(); |
| 4626 var od = new api.IterativeCalculationSettings.fromJson(o.toJson()); |
| 4627 checkIterativeCalculationSettings(od); |
| 4628 }); |
| 4629 }); |
| 4630 |
| 4631 |
4600 unittest.group("obj-schema-MergeCellsRequest", () { | 4632 unittest.group("obj-schema-MergeCellsRequest", () { |
4601 unittest.test("to-json--from-json", () { | 4633 unittest.test("to-json--from-json", () { |
4602 var o = buildMergeCellsRequest(); | 4634 var o = buildMergeCellsRequest(); |
4603 var od = new api.MergeCellsRequest.fromJson(o.toJson()); | 4635 var od = new api.MergeCellsRequest.fromJson(o.toJson()); |
4604 checkMergeCellsRequest(od); | 4636 checkMergeCellsRequest(od); |
4605 }); | 4637 }); |
4606 }); | 4638 }); |
4607 | 4639 |
4608 | 4640 |
4609 unittest.group("obj-schema-MoveDimensionRequest", () { | 4641 unittest.group("obj-schema-MoveDimensionRequest", () { |
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5130 res.create(arg_request).then(unittest.expectAsync(((api.Spreadsheet respon
se) { | 5162 res.create(arg_request).then(unittest.expectAsync(((api.Spreadsheet respon
se) { |
5131 checkSpreadsheet(response); | 5163 checkSpreadsheet(response); |
5132 }))); | 5164 }))); |
5133 }); | 5165 }); |
5134 | 5166 |
5135 unittest.test("method--get", () { | 5167 unittest.test("method--get", () { |
5136 | 5168 |
5137 var mock = new HttpServerMock(); | 5169 var mock = new HttpServerMock(); |
5138 api.SpreadsheetsResourceApi res = new api.SheetsApi(mock).spreadsheets; | 5170 api.SpreadsheetsResourceApi res = new api.SheetsApi(mock).spreadsheets; |
5139 var arg_spreadsheetId = "foo"; | 5171 var arg_spreadsheetId = "foo"; |
5140 var arg_ranges = buildUnnamed404(); | 5172 var arg_ranges = buildUnnamed406(); |
5141 var arg_includeGridData = true; | 5173 var arg_includeGridData = true; |
5142 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5174 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5143 var path = (req.url).path; | 5175 var path = (req.url).path; |
5144 var pathOffset = 0; | 5176 var pathOffset = 0; |
5145 var index; | 5177 var index; |
5146 var subPart; | 5178 var subPart; |
5147 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5179 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5148 pathOffset += 1; | 5180 pathOffset += 1; |
5149 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("v4/spreadsheets/")); | 5181 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("v4/spreadsheets/")); |
5150 pathOffset += 16; | 5182 pathOffset += 16; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5254 | 5286 |
5255 | 5287 |
5256 unittest.group("resource-SpreadsheetsValuesResourceApi", () { | 5288 unittest.group("resource-SpreadsheetsValuesResourceApi", () { |
5257 unittest.test("method--append", () { | 5289 unittest.test("method--append", () { |
5258 | 5290 |
5259 var mock = new HttpServerMock(); | 5291 var mock = new HttpServerMock(); |
5260 api.SpreadsheetsValuesResourceApi res = new api.SheetsApi(mock).spreadshee
ts.values; | 5292 api.SpreadsheetsValuesResourceApi res = new api.SheetsApi(mock).spreadshee
ts.values; |
5261 var arg_request = buildValueRange(); | 5293 var arg_request = buildValueRange(); |
5262 var arg_spreadsheetId = "foo"; | 5294 var arg_spreadsheetId = "foo"; |
5263 var arg_range = "foo"; | 5295 var arg_range = "foo"; |
| 5296 var arg_includeValuesInResponse = true; |
5264 var arg_responseValueRenderOption = "foo"; | 5297 var arg_responseValueRenderOption = "foo"; |
| 5298 var arg_insertDataOption = "foo"; |
5265 var arg_valueInputOption = "foo"; | 5299 var arg_valueInputOption = "foo"; |
5266 var arg_responseDateTimeRenderOption = "foo"; | 5300 var arg_responseDateTimeRenderOption = "foo"; |
5267 var arg_includeValuesInResponse = true; | |
5268 var arg_insertDataOption = "foo"; | |
5269 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5301 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5270 var obj = new api.ValueRange.fromJson(json); | 5302 var obj = new api.ValueRange.fromJson(json); |
5271 checkValueRange(obj); | 5303 checkValueRange(obj); |
5272 | 5304 |
5273 var path = (req.url).path; | 5305 var path = (req.url).path; |
5274 var pathOffset = 0; | 5306 var pathOffset = 0; |
5275 var index; | 5307 var index; |
5276 var subPart; | 5308 var subPart; |
5277 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5309 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5278 pathOffset += 1; | 5310 pathOffset += 1; |
(...skipping 23 matching lines...) Expand all Loading... |
5302 if (n == "false") return false; | 5334 if (n == "false") return false; |
5303 if (n == null) return null; | 5335 if (n == null) return null; |
5304 throw new core.ArgumentError("Invalid boolean: $n"); | 5336 throw new core.ArgumentError("Invalid boolean: $n"); |
5305 } | 5337 } |
5306 if (query.length > 0) { | 5338 if (query.length > 0) { |
5307 for (var part in query.split("&")) { | 5339 for (var part in query.split("&")) { |
5308 var keyvalue = part.split("="); | 5340 var keyvalue = part.split("="); |
5309 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5341 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5310 } | 5342 } |
5311 } | 5343 } |
| 5344 unittest.expect(queryMap["includeValuesInResponse"].first, unittest.equa
ls("$arg_includeValuesInResponse")); |
5312 unittest.expect(queryMap["responseValueRenderOption"].first, unittest.eq
uals(arg_responseValueRenderOption)); | 5345 unittest.expect(queryMap["responseValueRenderOption"].first, unittest.eq
uals(arg_responseValueRenderOption)); |
| 5346 unittest.expect(queryMap["insertDataOption"].first, unittest.equals(arg_
insertDataOption)); |
5313 unittest.expect(queryMap["valueInputOption"].first, unittest.equals(arg_
valueInputOption)); | 5347 unittest.expect(queryMap["valueInputOption"].first, unittest.equals(arg_
valueInputOption)); |
5314 unittest.expect(queryMap["responseDateTimeRenderOption"].first, unittest
.equals(arg_responseDateTimeRenderOption)); | 5348 unittest.expect(queryMap["responseDateTimeRenderOption"].first, unittest
.equals(arg_responseDateTimeRenderOption)); |
5315 unittest.expect(queryMap["includeValuesInResponse"].first, unittest.equa
ls("$arg_includeValuesInResponse")); | |
5316 unittest.expect(queryMap["insertDataOption"].first, unittest.equals(arg_
insertDataOption)); | |
5317 | 5349 |
5318 | 5350 |
5319 var h = { | 5351 var h = { |
5320 "content-type" : "application/json; charset=utf-8", | 5352 "content-type" : "application/json; charset=utf-8", |
5321 }; | 5353 }; |
5322 var resp = convert.JSON.encode(buildAppendValuesResponse()); | 5354 var resp = convert.JSON.encode(buildAppendValuesResponse()); |
5323 return new async.Future.value(stringResponse(200, h, resp)); | 5355 return new async.Future.value(stringResponse(200, h, resp)); |
5324 }), true); | 5356 }), true); |
5325 res.append(arg_request, arg_spreadsheetId, arg_range, responseValueRenderO
ption: arg_responseValueRenderOption, valueInputOption: arg_valueInputOption, re
sponseDateTimeRenderOption: arg_responseDateTimeRenderOption, includeValuesInRes
ponse: arg_includeValuesInResponse, insertDataOption: arg_insertDataOption).then
(unittest.expectAsync(((api.AppendValuesResponse response) { | 5357 res.append(arg_request, arg_spreadsheetId, arg_range, includeValuesInRespo
nse: arg_includeValuesInResponse, responseValueRenderOption: arg_responseValueRe
nderOption, insertDataOption: arg_insertDataOption, valueInputOption: arg_valueI
nputOption, responseDateTimeRenderOption: arg_responseDateTimeRenderOption).then
(unittest.expectAsync(((api.AppendValuesResponse response) { |
5326 checkAppendValuesResponse(response); | 5358 checkAppendValuesResponse(response); |
5327 }))); | 5359 }))); |
5328 }); | 5360 }); |
5329 | 5361 |
5330 unittest.test("method--batchClear", () { | 5362 unittest.test("method--batchClear", () { |
5331 | 5363 |
5332 var mock = new HttpServerMock(); | 5364 var mock = new HttpServerMock(); |
5333 api.SpreadsheetsValuesResourceApi res = new api.SheetsApi(mock).spreadshee
ts.values; | 5365 api.SpreadsheetsValuesResourceApi res = new api.SheetsApi(mock).spreadshee
ts.values; |
5334 var arg_request = buildBatchClearValuesRequest(); | 5366 var arg_request = buildBatchClearValuesRequest(); |
5335 var arg_spreadsheetId = "foo"; | 5367 var arg_spreadsheetId = "foo"; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5380 res.batchClear(arg_request, arg_spreadsheetId).then(unittest.expectAsync((
(api.BatchClearValuesResponse response) { | 5412 res.batchClear(arg_request, arg_spreadsheetId).then(unittest.expectAsync((
(api.BatchClearValuesResponse response) { |
5381 checkBatchClearValuesResponse(response); | 5413 checkBatchClearValuesResponse(response); |
5382 }))); | 5414 }))); |
5383 }); | 5415 }); |
5384 | 5416 |
5385 unittest.test("method--batchGet", () { | 5417 unittest.test("method--batchGet", () { |
5386 | 5418 |
5387 var mock = new HttpServerMock(); | 5419 var mock = new HttpServerMock(); |
5388 api.SpreadsheetsValuesResourceApi res = new api.SheetsApi(mock).spreadshee
ts.values; | 5420 api.SpreadsheetsValuesResourceApi res = new api.SheetsApi(mock).spreadshee
ts.values; |
5389 var arg_spreadsheetId = "foo"; | 5421 var arg_spreadsheetId = "foo"; |
5390 var arg_ranges = buildUnnamed405(); | |
5391 var arg_valueRenderOption = "foo"; | 5422 var arg_valueRenderOption = "foo"; |
5392 var arg_dateTimeRenderOption = "foo"; | 5423 var arg_dateTimeRenderOption = "foo"; |
| 5424 var arg_ranges = buildUnnamed407(); |
5393 var arg_majorDimension = "foo"; | 5425 var arg_majorDimension = "foo"; |
5394 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5426 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5395 var path = (req.url).path; | 5427 var path = (req.url).path; |
5396 var pathOffset = 0; | 5428 var pathOffset = 0; |
5397 var index; | 5429 var index; |
5398 var subPart; | 5430 var subPart; |
5399 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5431 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5400 pathOffset += 1; | 5432 pathOffset += 1; |
5401 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("v4/spreadsheets/")); | 5433 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("v4/spreadsheets/")); |
5402 pathOffset += 16; | 5434 pathOffset += 16; |
(...skipping 14 matching lines...) Expand all Loading... |
5417 if (n == "false") return false; | 5449 if (n == "false") return false; |
5418 if (n == null) return null; | 5450 if (n == null) return null; |
5419 throw new core.ArgumentError("Invalid boolean: $n"); | 5451 throw new core.ArgumentError("Invalid boolean: $n"); |
5420 } | 5452 } |
5421 if (query.length > 0) { | 5453 if (query.length > 0) { |
5422 for (var part in query.split("&")) { | 5454 for (var part in query.split("&")) { |
5423 var keyvalue = part.split("="); | 5455 var keyvalue = part.split("="); |
5424 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5456 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5425 } | 5457 } |
5426 } | 5458 } |
5427 unittest.expect(queryMap["ranges"], unittest.equals(arg_ranges)); | |
5428 unittest.expect(queryMap["valueRenderOption"].first, unittest.equals(arg
_valueRenderOption)); | 5459 unittest.expect(queryMap["valueRenderOption"].first, unittest.equals(arg
_valueRenderOption)); |
5429 unittest.expect(queryMap["dateTimeRenderOption"].first, unittest.equals(
arg_dateTimeRenderOption)); | 5460 unittest.expect(queryMap["dateTimeRenderOption"].first, unittest.equals(
arg_dateTimeRenderOption)); |
| 5461 unittest.expect(queryMap["ranges"], unittest.equals(arg_ranges)); |
5430 unittest.expect(queryMap["majorDimension"].first, unittest.equals(arg_ma
jorDimension)); | 5462 unittest.expect(queryMap["majorDimension"].first, unittest.equals(arg_ma
jorDimension)); |
5431 | 5463 |
5432 | 5464 |
5433 var h = { | 5465 var h = { |
5434 "content-type" : "application/json; charset=utf-8", | 5466 "content-type" : "application/json; charset=utf-8", |
5435 }; | 5467 }; |
5436 var resp = convert.JSON.encode(buildBatchGetValuesResponse()); | 5468 var resp = convert.JSON.encode(buildBatchGetValuesResponse()); |
5437 return new async.Future.value(stringResponse(200, h, resp)); | 5469 return new async.Future.value(stringResponse(200, h, resp)); |
5438 }), true); | 5470 }), true); |
5439 res.batchGet(arg_spreadsheetId, ranges: arg_ranges, valueRenderOption: arg
_valueRenderOption, dateTimeRenderOption: arg_dateTimeRenderOption, majorDimensi
on: arg_majorDimension).then(unittest.expectAsync(((api.BatchGetValuesResponse r
esponse) { | 5471 res.batchGet(arg_spreadsheetId, valueRenderOption: arg_valueRenderOption,
dateTimeRenderOption: arg_dateTimeRenderOption, ranges: arg_ranges, majorDimensi
on: arg_majorDimension).then(unittest.expectAsync(((api.BatchGetValuesResponse r
esponse) { |
5440 checkBatchGetValuesResponse(response); | 5472 checkBatchGetValuesResponse(response); |
5441 }))); | 5473 }))); |
5442 }); | 5474 }); |
5443 | 5475 |
5444 unittest.test("method--batchUpdate", () { | 5476 unittest.test("method--batchUpdate", () { |
5445 | 5477 |
5446 var mock = new HttpServerMock(); | 5478 var mock = new HttpServerMock(); |
5447 api.SpreadsheetsValuesResourceApi res = new api.SheetsApi(mock).spreadshee
ts.values; | 5479 api.SpreadsheetsValuesResourceApi res = new api.SheetsApi(mock).spreadshee
ts.values; |
5448 var arg_request = buildBatchUpdateValuesRequest(); | 5480 var arg_request = buildBatchUpdateValuesRequest(); |
5449 var arg_spreadsheetId = "foo"; | 5481 var arg_spreadsheetId = "foo"; |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5620 }))); | 5652 }))); |
5621 }); | 5653 }); |
5622 | 5654 |
5623 unittest.test("method--update", () { | 5655 unittest.test("method--update", () { |
5624 | 5656 |
5625 var mock = new HttpServerMock(); | 5657 var mock = new HttpServerMock(); |
5626 api.SpreadsheetsValuesResourceApi res = new api.SheetsApi(mock).spreadshee
ts.values; | 5658 api.SpreadsheetsValuesResourceApi res = new api.SheetsApi(mock).spreadshee
ts.values; |
5627 var arg_request = buildValueRange(); | 5659 var arg_request = buildValueRange(); |
5628 var arg_spreadsheetId = "foo"; | 5660 var arg_spreadsheetId = "foo"; |
5629 var arg_range = "foo"; | 5661 var arg_range = "foo"; |
5630 var arg_responseValueRenderOption = "foo"; | |
5631 var arg_valueInputOption = "foo"; | 5662 var arg_valueInputOption = "foo"; |
5632 var arg_responseDateTimeRenderOption = "foo"; | 5663 var arg_responseDateTimeRenderOption = "foo"; |
5633 var arg_includeValuesInResponse = true; | 5664 var arg_includeValuesInResponse = true; |
| 5665 var arg_responseValueRenderOption = "foo"; |
5634 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5666 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5635 var obj = new api.ValueRange.fromJson(json); | 5667 var obj = new api.ValueRange.fromJson(json); |
5636 checkValueRange(obj); | 5668 checkValueRange(obj); |
5637 | 5669 |
5638 var path = (req.url).path; | 5670 var path = (req.url).path; |
5639 var pathOffset = 0; | 5671 var pathOffset = 0; |
5640 var index; | 5672 var index; |
5641 var subPart; | 5673 var subPart; |
5642 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5674 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5643 pathOffset += 1; | 5675 pathOffset += 1; |
(...skipping 19 matching lines...) Expand all Loading... |
5663 if (n == "false") return false; | 5695 if (n == "false") return false; |
5664 if (n == null) return null; | 5696 if (n == null) return null; |
5665 throw new core.ArgumentError("Invalid boolean: $n"); | 5697 throw new core.ArgumentError("Invalid boolean: $n"); |
5666 } | 5698 } |
5667 if (query.length > 0) { | 5699 if (query.length > 0) { |
5668 for (var part in query.split("&")) { | 5700 for (var part in query.split("&")) { |
5669 var keyvalue = part.split("="); | 5701 var keyvalue = part.split("="); |
5670 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5702 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5671 } | 5703 } |
5672 } | 5704 } |
5673 unittest.expect(queryMap["responseValueRenderOption"].first, unittest.eq
uals(arg_responseValueRenderOption)); | |
5674 unittest.expect(queryMap["valueInputOption"].first, unittest.equals(arg_
valueInputOption)); | 5705 unittest.expect(queryMap["valueInputOption"].first, unittest.equals(arg_
valueInputOption)); |
5675 unittest.expect(queryMap["responseDateTimeRenderOption"].first, unittest
.equals(arg_responseDateTimeRenderOption)); | 5706 unittest.expect(queryMap["responseDateTimeRenderOption"].first, unittest
.equals(arg_responseDateTimeRenderOption)); |
5676 unittest.expect(queryMap["includeValuesInResponse"].first, unittest.equa
ls("$arg_includeValuesInResponse")); | 5707 unittest.expect(queryMap["includeValuesInResponse"].first, unittest.equa
ls("$arg_includeValuesInResponse")); |
| 5708 unittest.expect(queryMap["responseValueRenderOption"].first, unittest.eq
uals(arg_responseValueRenderOption)); |
5677 | 5709 |
5678 | 5710 |
5679 var h = { | 5711 var h = { |
5680 "content-type" : "application/json; charset=utf-8", | 5712 "content-type" : "application/json; charset=utf-8", |
5681 }; | 5713 }; |
5682 var resp = convert.JSON.encode(buildUpdateValuesResponse()); | 5714 var resp = convert.JSON.encode(buildUpdateValuesResponse()); |
5683 return new async.Future.value(stringResponse(200, h, resp)); | 5715 return new async.Future.value(stringResponse(200, h, resp)); |
5684 }), true); | 5716 }), true); |
5685 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) { | 5717 res.update(arg_request, arg_spreadsheetId, arg_range, valueInputOption: ar
g_valueInputOption, responseDateTimeRenderOption: arg_responseDateTimeRenderOpti
on, includeValuesInResponse: arg_includeValuesInResponse, responseValueRenderOpt
ion: arg_responseValueRenderOption).then(unittest.expectAsync(((api.UpdateValues
Response response) { |
5686 checkUpdateValuesResponse(response); | 5718 checkUpdateValuesResponse(response); |
5687 }))); | 5719 }))); |
5688 }); | 5720 }); |
5689 | 5721 |
5690 }); | 5722 }); |
5691 | 5723 |
5692 | 5724 |
5693 } | 5725 } |
5694 | 5726 |
OLD | NEW |