| OLD | NEW |
| 1 library googleapis.people.v1.test; | 1 library googleapis.people.v1.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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 checkGender(api.Gender o) { | 355 checkGender(api.Gender o) { |
| 356 buildCounterGender++; | 356 buildCounterGender++; |
| 357 if (buildCounterGender < 3) { | 357 if (buildCounterGender < 3) { |
| 358 unittest.expect(o.formattedValue, unittest.equals('foo')); | 358 unittest.expect(o.formattedValue, unittest.equals('foo')); |
| 359 checkFieldMetadata(o.metadata); | 359 checkFieldMetadata(o.metadata); |
| 360 unittest.expect(o.value, unittest.equals('foo')); | 360 unittest.expect(o.value, unittest.equals('foo')); |
| 361 } | 361 } |
| 362 buildCounterGender--; | 362 buildCounterGender--; |
| 363 } | 363 } |
| 364 | 364 |
| 365 buildUnnamed1247() { | 365 buildUnnamed1300() { |
| 366 var o = new core.List<api.PersonResponse>(); | 366 var o = new core.List<api.PersonResponse>(); |
| 367 o.add(buildPersonResponse()); | 367 o.add(buildPersonResponse()); |
| 368 o.add(buildPersonResponse()); | 368 o.add(buildPersonResponse()); |
| 369 return o; | 369 return o; |
| 370 } | 370 } |
| 371 | 371 |
| 372 checkUnnamed1247(core.List<api.PersonResponse> o) { | 372 checkUnnamed1300(core.List<api.PersonResponse> o) { |
| 373 unittest.expect(o, unittest.hasLength(2)); | 373 unittest.expect(o, unittest.hasLength(2)); |
| 374 checkPersonResponse(o[0]); | 374 checkPersonResponse(o[0]); |
| 375 checkPersonResponse(o[1]); | 375 checkPersonResponse(o[1]); |
| 376 } | 376 } |
| 377 | 377 |
| 378 core.int buildCounterGetPeopleResponse = 0; | 378 core.int buildCounterGetPeopleResponse = 0; |
| 379 buildGetPeopleResponse() { | 379 buildGetPeopleResponse() { |
| 380 var o = new api.GetPeopleResponse(); | 380 var o = new api.GetPeopleResponse(); |
| 381 buildCounterGetPeopleResponse++; | 381 buildCounterGetPeopleResponse++; |
| 382 if (buildCounterGetPeopleResponse < 3) { | 382 if (buildCounterGetPeopleResponse < 3) { |
| 383 o.responses = buildUnnamed1247(); | 383 o.responses = buildUnnamed1300(); |
| 384 } | 384 } |
| 385 buildCounterGetPeopleResponse--; | 385 buildCounterGetPeopleResponse--; |
| 386 return o; | 386 return o; |
| 387 } | 387 } |
| 388 | 388 |
| 389 checkGetPeopleResponse(api.GetPeopleResponse o) { | 389 checkGetPeopleResponse(api.GetPeopleResponse o) { |
| 390 buildCounterGetPeopleResponse++; | 390 buildCounterGetPeopleResponse++; |
| 391 if (buildCounterGetPeopleResponse < 3) { | 391 if (buildCounterGetPeopleResponse < 3) { |
| 392 checkUnnamed1247(o.responses); | 392 checkUnnamed1300(o.responses); |
| 393 } | 393 } |
| 394 buildCounterGetPeopleResponse--; | 394 buildCounterGetPeopleResponse--; |
| 395 } | 395 } |
| 396 | 396 |
| 397 core.int buildCounterImClient = 0; | 397 core.int buildCounterImClient = 0; |
| 398 buildImClient() { | 398 buildImClient() { |
| 399 var o = new api.ImClient(); | 399 var o = new api.ImClient(); |
| 400 buildCounterImClient++; | 400 buildCounterImClient++; |
| 401 if (buildCounterImClient < 3) { | 401 if (buildCounterImClient < 3) { |
| 402 o.formattedProtocol = "foo"; | 402 o.formattedProtocol = "foo"; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 | 437 |
| 438 checkInterest(api.Interest o) { | 438 checkInterest(api.Interest o) { |
| 439 buildCounterInterest++; | 439 buildCounterInterest++; |
| 440 if (buildCounterInterest < 3) { | 440 if (buildCounterInterest < 3) { |
| 441 checkFieldMetadata(o.metadata); | 441 checkFieldMetadata(o.metadata); |
| 442 unittest.expect(o.value, unittest.equals('foo')); | 442 unittest.expect(o.value, unittest.equals('foo')); |
| 443 } | 443 } |
| 444 buildCounterInterest--; | 444 buildCounterInterest--; |
| 445 } | 445 } |
| 446 | 446 |
| 447 buildUnnamed1248() { | 447 buildUnnamed1301() { |
| 448 var o = new core.List<api.Person>(); | 448 var o = new core.List<api.Person>(); |
| 449 o.add(buildPerson()); | 449 o.add(buildPerson()); |
| 450 o.add(buildPerson()); | 450 o.add(buildPerson()); |
| 451 return o; | 451 return o; |
| 452 } | 452 } |
| 453 | 453 |
| 454 checkUnnamed1248(core.List<api.Person> o) { | 454 checkUnnamed1301(core.List<api.Person> o) { |
| 455 unittest.expect(o, unittest.hasLength(2)); | 455 unittest.expect(o, unittest.hasLength(2)); |
| 456 checkPerson(o[0]); | 456 checkPerson(o[0]); |
| 457 checkPerson(o[1]); | 457 checkPerson(o[1]); |
| 458 } | 458 } |
| 459 | 459 |
| 460 core.int buildCounterListConnectionsResponse = 0; | 460 core.int buildCounterListConnectionsResponse = 0; |
| 461 buildListConnectionsResponse() { | 461 buildListConnectionsResponse() { |
| 462 var o = new api.ListConnectionsResponse(); | 462 var o = new api.ListConnectionsResponse(); |
| 463 buildCounterListConnectionsResponse++; | 463 buildCounterListConnectionsResponse++; |
| 464 if (buildCounterListConnectionsResponse < 3) { | 464 if (buildCounterListConnectionsResponse < 3) { |
| 465 o.connections = buildUnnamed1248(); | 465 o.connections = buildUnnamed1301(); |
| 466 o.nextPageToken = "foo"; | 466 o.nextPageToken = "foo"; |
| 467 o.nextSyncToken = "foo"; | 467 o.nextSyncToken = "foo"; |
| 468 o.totalPeople = 42; |
| 468 } | 469 } |
| 469 buildCounterListConnectionsResponse--; | 470 buildCounterListConnectionsResponse--; |
| 470 return o; | 471 return o; |
| 471 } | 472 } |
| 472 | 473 |
| 473 checkListConnectionsResponse(api.ListConnectionsResponse o) { | 474 checkListConnectionsResponse(api.ListConnectionsResponse o) { |
| 474 buildCounterListConnectionsResponse++; | 475 buildCounterListConnectionsResponse++; |
| 475 if (buildCounterListConnectionsResponse < 3) { | 476 if (buildCounterListConnectionsResponse < 3) { |
| 476 checkUnnamed1248(o.connections); | 477 checkUnnamed1301(o.connections); |
| 477 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 478 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 478 unittest.expect(o.nextSyncToken, unittest.equals('foo')); | 479 unittest.expect(o.nextSyncToken, unittest.equals('foo')); |
| 480 unittest.expect(o.totalPeople, unittest.equals(42)); |
| 479 } | 481 } |
| 480 buildCounterListConnectionsResponse--; | 482 buildCounterListConnectionsResponse--; |
| 481 } | 483 } |
| 482 | 484 |
| 483 core.int buildCounterLocale = 0; | 485 core.int buildCounterLocale = 0; |
| 484 buildLocale() { | 486 buildLocale() { |
| 485 var o = new api.Locale(); | 487 var o = new api.Locale(); |
| 486 buildCounterLocale++; | 488 buildCounterLocale++; |
| 487 if (buildCounterLocale < 3) { | 489 if (buildCounterLocale < 3) { |
| 488 o.metadata = buildFieldMetadata(); | 490 o.metadata = buildFieldMetadata(); |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 unittest.expect(o.name, unittest.equals('foo')); | 653 unittest.expect(o.name, unittest.equals('foo')); |
| 652 unittest.expect(o.phoneticName, unittest.equals('foo')); | 654 unittest.expect(o.phoneticName, unittest.equals('foo')); |
| 653 checkDate(o.startDate); | 655 checkDate(o.startDate); |
| 654 unittest.expect(o.symbol, unittest.equals('foo')); | 656 unittest.expect(o.symbol, unittest.equals('foo')); |
| 655 unittest.expect(o.title, unittest.equals('foo')); | 657 unittest.expect(o.title, unittest.equals('foo')); |
| 656 unittest.expect(o.type, unittest.equals('foo')); | 658 unittest.expect(o.type, unittest.equals('foo')); |
| 657 } | 659 } |
| 658 buildCounterOrganization--; | 660 buildCounterOrganization--; |
| 659 } | 661 } |
| 660 | 662 |
| 661 buildUnnamed1249() { | 663 buildUnnamed1302() { |
| 662 var o = new core.List<api.Address>(); | 664 var o = new core.List<api.Address>(); |
| 663 o.add(buildAddress()); | 665 o.add(buildAddress()); |
| 664 o.add(buildAddress()); | 666 o.add(buildAddress()); |
| 665 return o; | 667 return o; |
| 666 } | 668 } |
| 667 | 669 |
| 668 checkUnnamed1249(core.List<api.Address> o) { | 670 checkUnnamed1302(core.List<api.Address> o) { |
| 669 unittest.expect(o, unittest.hasLength(2)); | 671 unittest.expect(o, unittest.hasLength(2)); |
| 670 checkAddress(o[0]); | 672 checkAddress(o[0]); |
| 671 checkAddress(o[1]); | 673 checkAddress(o[1]); |
| 672 } | 674 } |
| 673 | 675 |
| 674 buildUnnamed1250() { | 676 buildUnnamed1303() { |
| 675 var o = new core.List<api.AgeRangeType>(); | 677 var o = new core.List<api.AgeRangeType>(); |
| 676 o.add(buildAgeRangeType()); | 678 o.add(buildAgeRangeType()); |
| 677 o.add(buildAgeRangeType()); | 679 o.add(buildAgeRangeType()); |
| 678 return o; | 680 return o; |
| 679 } | 681 } |
| 680 | 682 |
| 681 checkUnnamed1250(core.List<api.AgeRangeType> o) { | 683 checkUnnamed1303(core.List<api.AgeRangeType> o) { |
| 682 unittest.expect(o, unittest.hasLength(2)); | 684 unittest.expect(o, unittest.hasLength(2)); |
| 683 checkAgeRangeType(o[0]); | 685 checkAgeRangeType(o[0]); |
| 684 checkAgeRangeType(o[1]); | 686 checkAgeRangeType(o[1]); |
| 685 } | 687 } |
| 686 | 688 |
| 687 buildUnnamed1251() { | 689 buildUnnamed1304() { |
| 688 var o = new core.List<api.Biography>(); | 690 var o = new core.List<api.Biography>(); |
| 689 o.add(buildBiography()); | 691 o.add(buildBiography()); |
| 690 o.add(buildBiography()); | 692 o.add(buildBiography()); |
| 691 return o; | 693 return o; |
| 692 } | 694 } |
| 693 | 695 |
| 694 checkUnnamed1251(core.List<api.Biography> o) { | 696 checkUnnamed1304(core.List<api.Biography> o) { |
| 695 unittest.expect(o, unittest.hasLength(2)); | 697 unittest.expect(o, unittest.hasLength(2)); |
| 696 checkBiography(o[0]); | 698 checkBiography(o[0]); |
| 697 checkBiography(o[1]); | 699 checkBiography(o[1]); |
| 698 } | 700 } |
| 699 | 701 |
| 700 buildUnnamed1252() { | 702 buildUnnamed1305() { |
| 701 var o = new core.List<api.Birthday>(); | 703 var o = new core.List<api.Birthday>(); |
| 702 o.add(buildBirthday()); | 704 o.add(buildBirthday()); |
| 703 o.add(buildBirthday()); | 705 o.add(buildBirthday()); |
| 704 return o; | 706 return o; |
| 705 } | 707 } |
| 706 | 708 |
| 707 checkUnnamed1252(core.List<api.Birthday> o) { | 709 checkUnnamed1305(core.List<api.Birthday> o) { |
| 708 unittest.expect(o, unittest.hasLength(2)); | 710 unittest.expect(o, unittest.hasLength(2)); |
| 709 checkBirthday(o[0]); | 711 checkBirthday(o[0]); |
| 710 checkBirthday(o[1]); | 712 checkBirthday(o[1]); |
| 711 } | 713 } |
| 712 | 714 |
| 713 buildUnnamed1253() { | 715 buildUnnamed1306() { |
| 714 var o = new core.List<api.BraggingRights>(); | 716 var o = new core.List<api.BraggingRights>(); |
| 715 o.add(buildBraggingRights()); | 717 o.add(buildBraggingRights()); |
| 716 o.add(buildBraggingRights()); | 718 o.add(buildBraggingRights()); |
| 717 return o; | 719 return o; |
| 718 } | 720 } |
| 719 | 721 |
| 720 checkUnnamed1253(core.List<api.BraggingRights> o) { | 722 checkUnnamed1306(core.List<api.BraggingRights> o) { |
| 721 unittest.expect(o, unittest.hasLength(2)); | 723 unittest.expect(o, unittest.hasLength(2)); |
| 722 checkBraggingRights(o[0]); | 724 checkBraggingRights(o[0]); |
| 723 checkBraggingRights(o[1]); | 725 checkBraggingRights(o[1]); |
| 724 } | 726 } |
| 725 | 727 |
| 726 buildUnnamed1254() { | 728 buildUnnamed1307() { |
| 727 var o = new core.List<api.CoverPhoto>(); | 729 var o = new core.List<api.CoverPhoto>(); |
| 728 o.add(buildCoverPhoto()); | 730 o.add(buildCoverPhoto()); |
| 729 o.add(buildCoverPhoto()); | 731 o.add(buildCoverPhoto()); |
| 730 return o; | 732 return o; |
| 731 } | 733 } |
| 732 | 734 |
| 733 checkUnnamed1254(core.List<api.CoverPhoto> o) { | 735 checkUnnamed1307(core.List<api.CoverPhoto> o) { |
| 734 unittest.expect(o, unittest.hasLength(2)); | 736 unittest.expect(o, unittest.hasLength(2)); |
| 735 checkCoverPhoto(o[0]); | 737 checkCoverPhoto(o[0]); |
| 736 checkCoverPhoto(o[1]); | 738 checkCoverPhoto(o[1]); |
| 737 } | 739 } |
| 738 | 740 |
| 739 buildUnnamed1255() { | 741 buildUnnamed1308() { |
| 740 var o = new core.List<api.EmailAddress>(); | 742 var o = new core.List<api.EmailAddress>(); |
| 741 o.add(buildEmailAddress()); | 743 o.add(buildEmailAddress()); |
| 742 o.add(buildEmailAddress()); | 744 o.add(buildEmailAddress()); |
| 743 return o; | 745 return o; |
| 744 } | 746 } |
| 745 | 747 |
| 746 checkUnnamed1255(core.List<api.EmailAddress> o) { | 748 checkUnnamed1308(core.List<api.EmailAddress> o) { |
| 747 unittest.expect(o, unittest.hasLength(2)); | 749 unittest.expect(o, unittest.hasLength(2)); |
| 748 checkEmailAddress(o[0]); | 750 checkEmailAddress(o[0]); |
| 749 checkEmailAddress(o[1]); | 751 checkEmailAddress(o[1]); |
| 750 } | 752 } |
| 751 | 753 |
| 752 buildUnnamed1256() { | 754 buildUnnamed1309() { |
| 753 var o = new core.List<api.Event>(); | 755 var o = new core.List<api.Event>(); |
| 754 o.add(buildEvent()); | 756 o.add(buildEvent()); |
| 755 o.add(buildEvent()); | 757 o.add(buildEvent()); |
| 756 return o; | 758 return o; |
| 757 } | 759 } |
| 758 | 760 |
| 759 checkUnnamed1256(core.List<api.Event> o) { | 761 checkUnnamed1309(core.List<api.Event> o) { |
| 760 unittest.expect(o, unittest.hasLength(2)); | 762 unittest.expect(o, unittest.hasLength(2)); |
| 761 checkEvent(o[0]); | 763 checkEvent(o[0]); |
| 762 checkEvent(o[1]); | 764 checkEvent(o[1]); |
| 763 } | 765 } |
| 764 | 766 |
| 765 buildUnnamed1257() { | 767 buildUnnamed1310() { |
| 766 var o = new core.List<api.Gender>(); | 768 var o = new core.List<api.Gender>(); |
| 767 o.add(buildGender()); | 769 o.add(buildGender()); |
| 768 o.add(buildGender()); | 770 o.add(buildGender()); |
| 769 return o; | 771 return o; |
| 770 } | 772 } |
| 771 | 773 |
| 772 checkUnnamed1257(core.List<api.Gender> o) { | 774 checkUnnamed1310(core.List<api.Gender> o) { |
| 773 unittest.expect(o, unittest.hasLength(2)); | 775 unittest.expect(o, unittest.hasLength(2)); |
| 774 checkGender(o[0]); | 776 checkGender(o[0]); |
| 775 checkGender(o[1]); | 777 checkGender(o[1]); |
| 776 } | 778 } |
| 777 | 779 |
| 778 buildUnnamed1258() { | 780 buildUnnamed1311() { |
| 779 var o = new core.List<api.ImClient>(); | 781 var o = new core.List<api.ImClient>(); |
| 780 o.add(buildImClient()); | 782 o.add(buildImClient()); |
| 781 o.add(buildImClient()); | 783 o.add(buildImClient()); |
| 782 return o; | 784 return o; |
| 783 } | 785 } |
| 784 | 786 |
| 785 checkUnnamed1258(core.List<api.ImClient> o) { | 787 checkUnnamed1311(core.List<api.ImClient> o) { |
| 786 unittest.expect(o, unittest.hasLength(2)); | 788 unittest.expect(o, unittest.hasLength(2)); |
| 787 checkImClient(o[0]); | 789 checkImClient(o[0]); |
| 788 checkImClient(o[1]); | 790 checkImClient(o[1]); |
| 789 } | 791 } |
| 790 | 792 |
| 791 buildUnnamed1259() { | 793 buildUnnamed1312() { |
| 792 var o = new core.List<api.Interest>(); | 794 var o = new core.List<api.Interest>(); |
| 793 o.add(buildInterest()); | 795 o.add(buildInterest()); |
| 794 o.add(buildInterest()); | 796 o.add(buildInterest()); |
| 795 return o; | 797 return o; |
| 796 } | 798 } |
| 797 | 799 |
| 798 checkUnnamed1259(core.List<api.Interest> o) { | 800 checkUnnamed1312(core.List<api.Interest> o) { |
| 799 unittest.expect(o, unittest.hasLength(2)); | 801 unittest.expect(o, unittest.hasLength(2)); |
| 800 checkInterest(o[0]); | 802 checkInterest(o[0]); |
| 801 checkInterest(o[1]); | 803 checkInterest(o[1]); |
| 802 } | 804 } |
| 803 | 805 |
| 804 buildUnnamed1260() { | 806 buildUnnamed1313() { |
| 805 var o = new core.List<api.Locale>(); | 807 var o = new core.List<api.Locale>(); |
| 806 o.add(buildLocale()); | 808 o.add(buildLocale()); |
| 807 o.add(buildLocale()); | 809 o.add(buildLocale()); |
| 808 return o; | 810 return o; |
| 809 } | 811 } |
| 810 | 812 |
| 811 checkUnnamed1260(core.List<api.Locale> o) { | 813 checkUnnamed1313(core.List<api.Locale> o) { |
| 812 unittest.expect(o, unittest.hasLength(2)); | 814 unittest.expect(o, unittest.hasLength(2)); |
| 813 checkLocale(o[0]); | 815 checkLocale(o[0]); |
| 814 checkLocale(o[1]); | 816 checkLocale(o[1]); |
| 815 } | 817 } |
| 816 | 818 |
| 817 buildUnnamed1261() { | 819 buildUnnamed1314() { |
| 818 var o = new core.List<api.Membership>(); | 820 var o = new core.List<api.Membership>(); |
| 819 o.add(buildMembership()); | 821 o.add(buildMembership()); |
| 820 o.add(buildMembership()); | 822 o.add(buildMembership()); |
| 821 return o; | 823 return o; |
| 822 } | 824 } |
| 823 | 825 |
| 824 checkUnnamed1261(core.List<api.Membership> o) { | 826 checkUnnamed1314(core.List<api.Membership> o) { |
| 825 unittest.expect(o, unittest.hasLength(2)); | 827 unittest.expect(o, unittest.hasLength(2)); |
| 826 checkMembership(o[0]); | 828 checkMembership(o[0]); |
| 827 checkMembership(o[1]); | 829 checkMembership(o[1]); |
| 828 } | 830 } |
| 829 | 831 |
| 830 buildUnnamed1262() { | 832 buildUnnamed1315() { |
| 831 var o = new core.List<api.Name>(); | 833 var o = new core.List<api.Name>(); |
| 832 o.add(buildName()); | 834 o.add(buildName()); |
| 833 o.add(buildName()); | 835 o.add(buildName()); |
| 834 return o; | 836 return o; |
| 835 } | 837 } |
| 836 | 838 |
| 837 checkUnnamed1262(core.List<api.Name> o) { | 839 checkUnnamed1315(core.List<api.Name> o) { |
| 838 unittest.expect(o, unittest.hasLength(2)); | 840 unittest.expect(o, unittest.hasLength(2)); |
| 839 checkName(o[0]); | 841 checkName(o[0]); |
| 840 checkName(o[1]); | 842 checkName(o[1]); |
| 841 } | 843 } |
| 842 | 844 |
| 843 buildUnnamed1263() { | 845 buildUnnamed1316() { |
| 844 var o = new core.List<api.Nickname>(); | 846 var o = new core.List<api.Nickname>(); |
| 845 o.add(buildNickname()); | 847 o.add(buildNickname()); |
| 846 o.add(buildNickname()); | 848 o.add(buildNickname()); |
| 847 return o; | 849 return o; |
| 848 } | 850 } |
| 849 | 851 |
| 850 checkUnnamed1263(core.List<api.Nickname> o) { | 852 checkUnnamed1316(core.List<api.Nickname> o) { |
| 851 unittest.expect(o, unittest.hasLength(2)); | 853 unittest.expect(o, unittest.hasLength(2)); |
| 852 checkNickname(o[0]); | 854 checkNickname(o[0]); |
| 853 checkNickname(o[1]); | 855 checkNickname(o[1]); |
| 854 } | 856 } |
| 855 | 857 |
| 856 buildUnnamed1264() { | 858 buildUnnamed1317() { |
| 857 var o = new core.List<api.Occupation>(); | 859 var o = new core.List<api.Occupation>(); |
| 858 o.add(buildOccupation()); | 860 o.add(buildOccupation()); |
| 859 o.add(buildOccupation()); | 861 o.add(buildOccupation()); |
| 860 return o; | 862 return o; |
| 861 } | 863 } |
| 862 | 864 |
| 863 checkUnnamed1264(core.List<api.Occupation> o) { | 865 checkUnnamed1317(core.List<api.Occupation> o) { |
| 864 unittest.expect(o, unittest.hasLength(2)); | 866 unittest.expect(o, unittest.hasLength(2)); |
| 865 checkOccupation(o[0]); | 867 checkOccupation(o[0]); |
| 866 checkOccupation(o[1]); | 868 checkOccupation(o[1]); |
| 867 } | 869 } |
| 868 | 870 |
| 869 buildUnnamed1265() { | 871 buildUnnamed1318() { |
| 870 var o = new core.List<api.Organization>(); | 872 var o = new core.List<api.Organization>(); |
| 871 o.add(buildOrganization()); | 873 o.add(buildOrganization()); |
| 872 o.add(buildOrganization()); | 874 o.add(buildOrganization()); |
| 873 return o; | 875 return o; |
| 874 } | 876 } |
| 875 | 877 |
| 876 checkUnnamed1265(core.List<api.Organization> o) { | 878 checkUnnamed1318(core.List<api.Organization> o) { |
| 877 unittest.expect(o, unittest.hasLength(2)); | 879 unittest.expect(o, unittest.hasLength(2)); |
| 878 checkOrganization(o[0]); | 880 checkOrganization(o[0]); |
| 879 checkOrganization(o[1]); | 881 checkOrganization(o[1]); |
| 880 } | 882 } |
| 881 | 883 |
| 882 buildUnnamed1266() { | 884 buildUnnamed1319() { |
| 883 var o = new core.List<api.PhoneNumber>(); | 885 var o = new core.List<api.PhoneNumber>(); |
| 884 o.add(buildPhoneNumber()); | 886 o.add(buildPhoneNumber()); |
| 885 o.add(buildPhoneNumber()); | 887 o.add(buildPhoneNumber()); |
| 886 return o; | 888 return o; |
| 887 } | 889 } |
| 888 | 890 |
| 889 checkUnnamed1266(core.List<api.PhoneNumber> o) { | 891 checkUnnamed1319(core.List<api.PhoneNumber> o) { |
| 890 unittest.expect(o, unittest.hasLength(2)); | 892 unittest.expect(o, unittest.hasLength(2)); |
| 891 checkPhoneNumber(o[0]); | 893 checkPhoneNumber(o[0]); |
| 892 checkPhoneNumber(o[1]); | 894 checkPhoneNumber(o[1]); |
| 893 } | 895 } |
| 894 | 896 |
| 895 buildUnnamed1267() { | 897 buildUnnamed1320() { |
| 896 var o = new core.List<api.Photo>(); | 898 var o = new core.List<api.Photo>(); |
| 897 o.add(buildPhoto()); | 899 o.add(buildPhoto()); |
| 898 o.add(buildPhoto()); | 900 o.add(buildPhoto()); |
| 899 return o; | 901 return o; |
| 900 } | 902 } |
| 901 | 903 |
| 902 checkUnnamed1267(core.List<api.Photo> o) { | 904 checkUnnamed1320(core.List<api.Photo> o) { |
| 903 unittest.expect(o, unittest.hasLength(2)); | 905 unittest.expect(o, unittest.hasLength(2)); |
| 904 checkPhoto(o[0]); | 906 checkPhoto(o[0]); |
| 905 checkPhoto(o[1]); | 907 checkPhoto(o[1]); |
| 906 } | 908 } |
| 907 | 909 |
| 908 buildUnnamed1268() { | 910 buildUnnamed1321() { |
| 909 var o = new core.List<api.Relation>(); | 911 var o = new core.List<api.Relation>(); |
| 910 o.add(buildRelation()); | 912 o.add(buildRelation()); |
| 911 o.add(buildRelation()); | 913 o.add(buildRelation()); |
| 912 return o; | 914 return o; |
| 913 } | 915 } |
| 914 | 916 |
| 915 checkUnnamed1268(core.List<api.Relation> o) { | 917 checkUnnamed1321(core.List<api.Relation> o) { |
| 916 unittest.expect(o, unittest.hasLength(2)); | 918 unittest.expect(o, unittest.hasLength(2)); |
| 917 checkRelation(o[0]); | 919 checkRelation(o[0]); |
| 918 checkRelation(o[1]); | 920 checkRelation(o[1]); |
| 919 } | 921 } |
| 920 | 922 |
| 921 buildUnnamed1269() { | 923 buildUnnamed1322() { |
| 922 var o = new core.List<api.RelationshipInterest>(); | 924 var o = new core.List<api.RelationshipInterest>(); |
| 923 o.add(buildRelationshipInterest()); | 925 o.add(buildRelationshipInterest()); |
| 924 o.add(buildRelationshipInterest()); | 926 o.add(buildRelationshipInterest()); |
| 925 return o; | 927 return o; |
| 926 } | 928 } |
| 927 | 929 |
| 928 checkUnnamed1269(core.List<api.RelationshipInterest> o) { | 930 checkUnnamed1322(core.List<api.RelationshipInterest> o) { |
| 929 unittest.expect(o, unittest.hasLength(2)); | 931 unittest.expect(o, unittest.hasLength(2)); |
| 930 checkRelationshipInterest(o[0]); | 932 checkRelationshipInterest(o[0]); |
| 931 checkRelationshipInterest(o[1]); | 933 checkRelationshipInterest(o[1]); |
| 932 } | 934 } |
| 933 | 935 |
| 934 buildUnnamed1270() { | 936 buildUnnamed1323() { |
| 935 var o = new core.List<api.RelationshipStatus>(); | 937 var o = new core.List<api.RelationshipStatus>(); |
| 936 o.add(buildRelationshipStatus()); | 938 o.add(buildRelationshipStatus()); |
| 937 o.add(buildRelationshipStatus()); | 939 o.add(buildRelationshipStatus()); |
| 938 return o; | 940 return o; |
| 939 } | 941 } |
| 940 | 942 |
| 941 checkUnnamed1270(core.List<api.RelationshipStatus> o) { | 943 checkUnnamed1323(core.List<api.RelationshipStatus> o) { |
| 942 unittest.expect(o, unittest.hasLength(2)); | 944 unittest.expect(o, unittest.hasLength(2)); |
| 943 checkRelationshipStatus(o[0]); | 945 checkRelationshipStatus(o[0]); |
| 944 checkRelationshipStatus(o[1]); | 946 checkRelationshipStatus(o[1]); |
| 945 } | 947 } |
| 946 | 948 |
| 947 buildUnnamed1271() { | 949 buildUnnamed1324() { |
| 948 var o = new core.List<api.Residence>(); | 950 var o = new core.List<api.Residence>(); |
| 949 o.add(buildResidence()); | 951 o.add(buildResidence()); |
| 950 o.add(buildResidence()); | 952 o.add(buildResidence()); |
| 951 return o; | 953 return o; |
| 952 } | 954 } |
| 953 | 955 |
| 954 checkUnnamed1271(core.List<api.Residence> o) { | 956 checkUnnamed1324(core.List<api.Residence> o) { |
| 955 unittest.expect(o, unittest.hasLength(2)); | 957 unittest.expect(o, unittest.hasLength(2)); |
| 956 checkResidence(o[0]); | 958 checkResidence(o[0]); |
| 957 checkResidence(o[1]); | 959 checkResidence(o[1]); |
| 958 } | 960 } |
| 959 | 961 |
| 960 buildUnnamed1272() { | 962 buildUnnamed1325() { |
| 961 var o = new core.List<api.Skill>(); | 963 var o = new core.List<api.Skill>(); |
| 962 o.add(buildSkill()); | 964 o.add(buildSkill()); |
| 963 o.add(buildSkill()); | 965 o.add(buildSkill()); |
| 964 return o; | 966 return o; |
| 965 } | 967 } |
| 966 | 968 |
| 967 checkUnnamed1272(core.List<api.Skill> o) { | 969 checkUnnamed1325(core.List<api.Skill> o) { |
| 968 unittest.expect(o, unittest.hasLength(2)); | 970 unittest.expect(o, unittest.hasLength(2)); |
| 969 checkSkill(o[0]); | 971 checkSkill(o[0]); |
| 970 checkSkill(o[1]); | 972 checkSkill(o[1]); |
| 971 } | 973 } |
| 972 | 974 |
| 973 buildUnnamed1273() { | 975 buildUnnamed1326() { |
| 974 var o = new core.List<api.Tagline>(); | 976 var o = new core.List<api.Tagline>(); |
| 975 o.add(buildTagline()); | 977 o.add(buildTagline()); |
| 976 o.add(buildTagline()); | 978 o.add(buildTagline()); |
| 977 return o; | 979 return o; |
| 978 } | 980 } |
| 979 | 981 |
| 980 checkUnnamed1273(core.List<api.Tagline> o) { | 982 checkUnnamed1326(core.List<api.Tagline> o) { |
| 981 unittest.expect(o, unittest.hasLength(2)); | 983 unittest.expect(o, unittest.hasLength(2)); |
| 982 checkTagline(o[0]); | 984 checkTagline(o[0]); |
| 983 checkTagline(o[1]); | 985 checkTagline(o[1]); |
| 984 } | 986 } |
| 985 | 987 |
| 986 buildUnnamed1274() { | 988 buildUnnamed1327() { |
| 987 var o = new core.List<api.Url>(); | 989 var o = new core.List<api.Url>(); |
| 988 o.add(buildUrl()); | 990 o.add(buildUrl()); |
| 989 o.add(buildUrl()); | 991 o.add(buildUrl()); |
| 990 return o; | 992 return o; |
| 991 } | 993 } |
| 992 | 994 |
| 993 checkUnnamed1274(core.List<api.Url> o) { | 995 checkUnnamed1327(core.List<api.Url> o) { |
| 994 unittest.expect(o, unittest.hasLength(2)); | 996 unittest.expect(o, unittest.hasLength(2)); |
| 995 checkUrl(o[0]); | 997 checkUrl(o[0]); |
| 996 checkUrl(o[1]); | 998 checkUrl(o[1]); |
| 997 } | 999 } |
| 998 | 1000 |
| 999 core.int buildCounterPerson = 0; | 1001 core.int buildCounterPerson = 0; |
| 1000 buildPerson() { | 1002 buildPerson() { |
| 1001 var o = new api.Person(); | 1003 var o = new api.Person(); |
| 1002 buildCounterPerson++; | 1004 buildCounterPerson++; |
| 1003 if (buildCounterPerson < 3) { | 1005 if (buildCounterPerson < 3) { |
| 1004 o.addresses = buildUnnamed1249(); | 1006 o.addresses = buildUnnamed1302(); |
| 1005 o.ageRange = "foo"; | 1007 o.ageRange = "foo"; |
| 1006 o.ageRanges = buildUnnamed1250(); | 1008 o.ageRanges = buildUnnamed1303(); |
| 1007 o.biographies = buildUnnamed1251(); | 1009 o.biographies = buildUnnamed1304(); |
| 1008 o.birthdays = buildUnnamed1252(); | 1010 o.birthdays = buildUnnamed1305(); |
| 1009 o.braggingRights = buildUnnamed1253(); | 1011 o.braggingRights = buildUnnamed1306(); |
| 1010 o.coverPhotos = buildUnnamed1254(); | 1012 o.coverPhotos = buildUnnamed1307(); |
| 1011 o.emailAddresses = buildUnnamed1255(); | 1013 o.emailAddresses = buildUnnamed1308(); |
| 1012 o.etag = "foo"; | 1014 o.etag = "foo"; |
| 1013 o.events = buildUnnamed1256(); | 1015 o.events = buildUnnamed1309(); |
| 1014 o.genders = buildUnnamed1257(); | 1016 o.genders = buildUnnamed1310(); |
| 1015 o.imClients = buildUnnamed1258(); | 1017 o.imClients = buildUnnamed1311(); |
| 1016 o.interests = buildUnnamed1259(); | 1018 o.interests = buildUnnamed1312(); |
| 1017 o.locales = buildUnnamed1260(); | 1019 o.locales = buildUnnamed1313(); |
| 1018 o.memberships = buildUnnamed1261(); | 1020 o.memberships = buildUnnamed1314(); |
| 1019 o.metadata = buildPersonMetadata(); | 1021 o.metadata = buildPersonMetadata(); |
| 1020 o.names = buildUnnamed1262(); | 1022 o.names = buildUnnamed1315(); |
| 1021 o.nicknames = buildUnnamed1263(); | 1023 o.nicknames = buildUnnamed1316(); |
| 1022 o.occupations = buildUnnamed1264(); | 1024 o.occupations = buildUnnamed1317(); |
| 1023 o.organizations = buildUnnamed1265(); | 1025 o.organizations = buildUnnamed1318(); |
| 1024 o.phoneNumbers = buildUnnamed1266(); | 1026 o.phoneNumbers = buildUnnamed1319(); |
| 1025 o.photos = buildUnnamed1267(); | 1027 o.photos = buildUnnamed1320(); |
| 1026 o.relations = buildUnnamed1268(); | 1028 o.relations = buildUnnamed1321(); |
| 1027 o.relationshipInterests = buildUnnamed1269(); | 1029 o.relationshipInterests = buildUnnamed1322(); |
| 1028 o.relationshipStatuses = buildUnnamed1270(); | 1030 o.relationshipStatuses = buildUnnamed1323(); |
| 1029 o.residences = buildUnnamed1271(); | 1031 o.residences = buildUnnamed1324(); |
| 1030 o.resourceName = "foo"; | 1032 o.resourceName = "foo"; |
| 1031 o.skills = buildUnnamed1272(); | 1033 o.skills = buildUnnamed1325(); |
| 1032 o.taglines = buildUnnamed1273(); | 1034 o.taglines = buildUnnamed1326(); |
| 1033 o.urls = buildUnnamed1274(); | 1035 o.urls = buildUnnamed1327(); |
| 1034 } | 1036 } |
| 1035 buildCounterPerson--; | 1037 buildCounterPerson--; |
| 1036 return o; | 1038 return o; |
| 1037 } | 1039 } |
| 1038 | 1040 |
| 1039 checkPerson(api.Person o) { | 1041 checkPerson(api.Person o) { |
| 1040 buildCounterPerson++; | 1042 buildCounterPerson++; |
| 1041 if (buildCounterPerson < 3) { | 1043 if (buildCounterPerson < 3) { |
| 1042 checkUnnamed1249(o.addresses); | 1044 checkUnnamed1302(o.addresses); |
| 1043 unittest.expect(o.ageRange, unittest.equals('foo')); | 1045 unittest.expect(o.ageRange, unittest.equals('foo')); |
| 1044 checkUnnamed1250(o.ageRanges); | 1046 checkUnnamed1303(o.ageRanges); |
| 1045 checkUnnamed1251(o.biographies); | 1047 checkUnnamed1304(o.biographies); |
| 1046 checkUnnamed1252(o.birthdays); | 1048 checkUnnamed1305(o.birthdays); |
| 1047 checkUnnamed1253(o.braggingRights); | 1049 checkUnnamed1306(o.braggingRights); |
| 1048 checkUnnamed1254(o.coverPhotos); | 1050 checkUnnamed1307(o.coverPhotos); |
| 1049 checkUnnamed1255(o.emailAddresses); | 1051 checkUnnamed1308(o.emailAddresses); |
| 1050 unittest.expect(o.etag, unittest.equals('foo')); | 1052 unittest.expect(o.etag, unittest.equals('foo')); |
| 1051 checkUnnamed1256(o.events); | 1053 checkUnnamed1309(o.events); |
| 1052 checkUnnamed1257(o.genders); | 1054 checkUnnamed1310(o.genders); |
| 1053 checkUnnamed1258(o.imClients); | 1055 checkUnnamed1311(o.imClients); |
| 1054 checkUnnamed1259(o.interests); | 1056 checkUnnamed1312(o.interests); |
| 1055 checkUnnamed1260(o.locales); | 1057 checkUnnamed1313(o.locales); |
| 1056 checkUnnamed1261(o.memberships); | 1058 checkUnnamed1314(o.memberships); |
| 1057 checkPersonMetadata(o.metadata); | 1059 checkPersonMetadata(o.metadata); |
| 1058 checkUnnamed1262(o.names); | 1060 checkUnnamed1315(o.names); |
| 1059 checkUnnamed1263(o.nicknames); | 1061 checkUnnamed1316(o.nicknames); |
| 1060 checkUnnamed1264(o.occupations); | 1062 checkUnnamed1317(o.occupations); |
| 1061 checkUnnamed1265(o.organizations); | 1063 checkUnnamed1318(o.organizations); |
| 1062 checkUnnamed1266(o.phoneNumbers); | 1064 checkUnnamed1319(o.phoneNumbers); |
| 1063 checkUnnamed1267(o.photos); | 1065 checkUnnamed1320(o.photos); |
| 1064 checkUnnamed1268(o.relations); | 1066 checkUnnamed1321(o.relations); |
| 1065 checkUnnamed1269(o.relationshipInterests); | 1067 checkUnnamed1322(o.relationshipInterests); |
| 1066 checkUnnamed1270(o.relationshipStatuses); | 1068 checkUnnamed1323(o.relationshipStatuses); |
| 1067 checkUnnamed1271(o.residences); | 1069 checkUnnamed1324(o.residences); |
| 1068 unittest.expect(o.resourceName, unittest.equals('foo')); | 1070 unittest.expect(o.resourceName, unittest.equals('foo')); |
| 1069 checkUnnamed1272(o.skills); | 1071 checkUnnamed1325(o.skills); |
| 1070 checkUnnamed1273(o.taglines); | 1072 checkUnnamed1326(o.taglines); |
| 1071 checkUnnamed1274(o.urls); | 1073 checkUnnamed1327(o.urls); |
| 1072 } | 1074 } |
| 1073 buildCounterPerson--; | 1075 buildCounterPerson--; |
| 1074 } | 1076 } |
| 1075 | 1077 |
| 1076 buildUnnamed1275() { | 1078 buildUnnamed1328() { |
| 1077 var o = new core.List<core.String>(); | 1079 var o = new core.List<core.String>(); |
| 1078 o.add("foo"); | 1080 o.add("foo"); |
| 1079 o.add("foo"); | 1081 o.add("foo"); |
| 1080 return o; | 1082 return o; |
| 1081 } | 1083 } |
| 1082 | 1084 |
| 1083 checkUnnamed1275(core.List<core.String> o) { | 1085 checkUnnamed1328(core.List<core.String> o) { |
| 1084 unittest.expect(o, unittest.hasLength(2)); | 1086 unittest.expect(o, unittest.hasLength(2)); |
| 1085 unittest.expect(o[0], unittest.equals('foo')); | 1087 unittest.expect(o[0], unittest.equals('foo')); |
| 1086 unittest.expect(o[1], unittest.equals('foo')); | 1088 unittest.expect(o[1], unittest.equals('foo')); |
| 1087 } | 1089 } |
| 1088 | 1090 |
| 1089 buildUnnamed1276() { | 1091 buildUnnamed1329() { |
| 1090 var o = new core.List<core.String>(); | 1092 var o = new core.List<core.String>(); |
| 1091 o.add("foo"); | 1093 o.add("foo"); |
| 1092 o.add("foo"); | 1094 o.add("foo"); |
| 1093 return o; | 1095 return o; |
| 1094 } | 1096 } |
| 1095 | 1097 |
| 1096 checkUnnamed1276(core.List<core.String> o) { | 1098 checkUnnamed1329(core.List<core.String> o) { |
| 1097 unittest.expect(o, unittest.hasLength(2)); | 1099 unittest.expect(o, unittest.hasLength(2)); |
| 1098 unittest.expect(o[0], unittest.equals('foo')); | 1100 unittest.expect(o[0], unittest.equals('foo')); |
| 1099 unittest.expect(o[1], unittest.equals('foo')); | 1101 unittest.expect(o[1], unittest.equals('foo')); |
| 1100 } | 1102 } |
| 1101 | 1103 |
| 1102 buildUnnamed1277() { | 1104 buildUnnamed1330() { |
| 1103 var o = new core.List<api.Source>(); | 1105 var o = new core.List<api.Source>(); |
| 1104 o.add(buildSource()); | 1106 o.add(buildSource()); |
| 1105 o.add(buildSource()); | 1107 o.add(buildSource()); |
| 1106 return o; | 1108 return o; |
| 1107 } | 1109 } |
| 1108 | 1110 |
| 1109 checkUnnamed1277(core.List<api.Source> o) { | 1111 checkUnnamed1330(core.List<api.Source> o) { |
| 1110 unittest.expect(o, unittest.hasLength(2)); | 1112 unittest.expect(o, unittest.hasLength(2)); |
| 1111 checkSource(o[0]); | 1113 checkSource(o[0]); |
| 1112 checkSource(o[1]); | 1114 checkSource(o[1]); |
| 1113 } | 1115 } |
| 1114 | 1116 |
| 1115 core.int buildCounterPersonMetadata = 0; | 1117 core.int buildCounterPersonMetadata = 0; |
| 1116 buildPersonMetadata() { | 1118 buildPersonMetadata() { |
| 1117 var o = new api.PersonMetadata(); | 1119 var o = new api.PersonMetadata(); |
| 1118 buildCounterPersonMetadata++; | 1120 buildCounterPersonMetadata++; |
| 1119 if (buildCounterPersonMetadata < 3) { | 1121 if (buildCounterPersonMetadata < 3) { |
| 1120 o.deleted = true; | 1122 o.deleted = true; |
| 1121 o.linkedPeopleResourceNames = buildUnnamed1275(); | 1123 o.linkedPeopleResourceNames = buildUnnamed1328(); |
| 1122 o.objectType = "foo"; | 1124 o.objectType = "foo"; |
| 1123 o.previousResourceNames = buildUnnamed1276(); | 1125 o.previousResourceNames = buildUnnamed1329(); |
| 1124 o.sources = buildUnnamed1277(); | 1126 o.sources = buildUnnamed1330(); |
| 1125 } | 1127 } |
| 1126 buildCounterPersonMetadata--; | 1128 buildCounterPersonMetadata--; |
| 1127 return o; | 1129 return o; |
| 1128 } | 1130 } |
| 1129 | 1131 |
| 1130 checkPersonMetadata(api.PersonMetadata o) { | 1132 checkPersonMetadata(api.PersonMetadata o) { |
| 1131 buildCounterPersonMetadata++; | 1133 buildCounterPersonMetadata++; |
| 1132 if (buildCounterPersonMetadata < 3) { | 1134 if (buildCounterPersonMetadata < 3) { |
| 1133 unittest.expect(o.deleted, unittest.isTrue); | 1135 unittest.expect(o.deleted, unittest.isTrue); |
| 1134 checkUnnamed1275(o.linkedPeopleResourceNames); | 1136 checkUnnamed1328(o.linkedPeopleResourceNames); |
| 1135 unittest.expect(o.objectType, unittest.equals('foo')); | 1137 unittest.expect(o.objectType, unittest.equals('foo')); |
| 1136 checkUnnamed1276(o.previousResourceNames); | 1138 checkUnnamed1329(o.previousResourceNames); |
| 1137 checkUnnamed1277(o.sources); | 1139 checkUnnamed1330(o.sources); |
| 1138 } | 1140 } |
| 1139 buildCounterPersonMetadata--; | 1141 buildCounterPersonMetadata--; |
| 1140 } | 1142 } |
| 1141 | 1143 |
| 1142 core.int buildCounterPersonResponse = 0; | 1144 core.int buildCounterPersonResponse = 0; |
| 1143 buildPersonResponse() { | 1145 buildPersonResponse() { |
| 1144 var o = new api.PersonResponse(); | 1146 var o = new api.PersonResponse(); |
| 1145 buildCounterPersonResponse++; | 1147 buildCounterPersonResponse++; |
| 1146 if (buildCounterPersonResponse < 3) { | 1148 if (buildCounterPersonResponse < 3) { |
| 1147 o.httpStatusCode = 42; | 1149 o.httpStatusCode = 42; |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1408 buildCounterUrl++; | 1410 buildCounterUrl++; |
| 1409 if (buildCounterUrl < 3) { | 1411 if (buildCounterUrl < 3) { |
| 1410 unittest.expect(o.formattedType, unittest.equals('foo')); | 1412 unittest.expect(o.formattedType, unittest.equals('foo')); |
| 1411 checkFieldMetadata(o.metadata); | 1413 checkFieldMetadata(o.metadata); |
| 1412 unittest.expect(o.type, unittest.equals('foo')); | 1414 unittest.expect(o.type, unittest.equals('foo')); |
| 1413 unittest.expect(o.value, unittest.equals('foo')); | 1415 unittest.expect(o.value, unittest.equals('foo')); |
| 1414 } | 1416 } |
| 1415 buildCounterUrl--; | 1417 buildCounterUrl--; |
| 1416 } | 1418 } |
| 1417 | 1419 |
| 1418 buildUnnamed1278() { | 1420 buildUnnamed1331() { |
| 1419 var o = new core.List<core.String>(); | 1421 var o = new core.List<core.String>(); |
| 1420 o.add("foo"); | 1422 o.add("foo"); |
| 1421 o.add("foo"); | 1423 o.add("foo"); |
| 1422 return o; | 1424 return o; |
| 1423 } | 1425 } |
| 1424 | 1426 |
| 1425 checkUnnamed1278(core.List<core.String> o) { | 1427 checkUnnamed1331(core.List<core.String> o) { |
| 1426 unittest.expect(o, unittest.hasLength(2)); | 1428 unittest.expect(o, unittest.hasLength(2)); |
| 1427 unittest.expect(o[0], unittest.equals('foo')); | 1429 unittest.expect(o[0], unittest.equals('foo')); |
| 1428 unittest.expect(o[1], unittest.equals('foo')); | 1430 unittest.expect(o[1], unittest.equals('foo')); |
| 1429 } | 1431 } |
| 1430 | 1432 |
| 1431 | 1433 |
| 1432 main() { | 1434 main() { |
| 1433 unittest.group("obj-schema-Address", () { | 1435 unittest.group("obj-schema-Address", () { |
| 1434 unittest.test("to-json--from-json", () { | 1436 unittest.test("to-json--from-json", () { |
| 1435 var o = buildAddress(); | 1437 var o = buildAddress(); |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1809 res.get(arg_resourceName, requestMask_includeField: arg_requestMask_includ
eField).then(unittest.expectAsync(((api.Person response) { | 1811 res.get(arg_resourceName, requestMask_includeField: arg_requestMask_includ
eField).then(unittest.expectAsync(((api.Person response) { |
| 1810 checkPerson(response); | 1812 checkPerson(response); |
| 1811 }))); | 1813 }))); |
| 1812 }); | 1814 }); |
| 1813 | 1815 |
| 1814 unittest.test("method--getBatchGet", () { | 1816 unittest.test("method--getBatchGet", () { |
| 1815 | 1817 |
| 1816 var mock = new HttpServerMock(); | 1818 var mock = new HttpServerMock(); |
| 1817 api.PeopleResourceApi res = new api.PeopleApi(mock).people; | 1819 api.PeopleResourceApi res = new api.PeopleApi(mock).people; |
| 1818 var arg_requestMask_includeField = "foo"; | 1820 var arg_requestMask_includeField = "foo"; |
| 1819 var arg_resourceNames = buildUnnamed1278(); | 1821 var arg_resourceNames = buildUnnamed1331(); |
| 1820 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1822 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1821 var path = (req.url).path; | 1823 var path = (req.url).path; |
| 1822 var pathOffset = 0; | 1824 var pathOffset = 0; |
| 1823 var index; | 1825 var index; |
| 1824 var subPart; | 1826 var subPart; |
| 1825 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1827 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1826 pathOffset += 1; | 1828 pathOffset += 1; |
| 1827 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("v1/people:batchGet")); | 1829 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("v1/people:batchGet")); |
| 1828 pathOffset += 18; | 1830 pathOffset += 18; |
| 1829 | 1831 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 1860 | 1862 |
| 1861 }); | 1863 }); |
| 1862 | 1864 |
| 1863 | 1865 |
| 1864 unittest.group("resource-PeopleConnectionsResourceApi", () { | 1866 unittest.group("resource-PeopleConnectionsResourceApi", () { |
| 1865 unittest.test("method--list", () { | 1867 unittest.test("method--list", () { |
| 1866 | 1868 |
| 1867 var mock = new HttpServerMock(); | 1869 var mock = new HttpServerMock(); |
| 1868 api.PeopleConnectionsResourceApi res = new api.PeopleApi(mock).people.conn
ections; | 1870 api.PeopleConnectionsResourceApi res = new api.PeopleApi(mock).people.conn
ections; |
| 1869 var arg_resourceName = "foo"; | 1871 var arg_resourceName = "foo"; |
| 1870 var arg_requestSyncToken = true; | |
| 1871 var arg_pageToken = "foo"; | 1872 var arg_pageToken = "foo"; |
| 1872 var arg_requestMask_includeField = "foo"; | 1873 var arg_requestMask_includeField = "foo"; |
| 1873 var arg_pageSize = 42; | 1874 var arg_pageSize = 42; |
| 1874 var arg_syncToken = "foo"; | 1875 var arg_syncToken = "foo"; |
| 1875 var arg_sortOrder = "foo"; | 1876 var arg_sortOrder = "foo"; |
| 1877 var arg_requestSyncToken = true; |
| 1876 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1878 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1877 var path = (req.url).path; | 1879 var path = (req.url).path; |
| 1878 var pathOffset = 0; | 1880 var pathOffset = 0; |
| 1879 var index; | 1881 var index; |
| 1880 var subPart; | 1882 var subPart; |
| 1881 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1883 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1882 pathOffset += 1; | 1884 pathOffset += 1; |
| 1883 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 1885 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| 1884 pathOffset += 3; | 1886 pathOffset += 3; |
| 1885 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 1887 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 1886 | 1888 |
| 1887 var query = (req.url).query; | 1889 var query = (req.url).query; |
| 1888 var queryOffset = 0; | 1890 var queryOffset = 0; |
| 1889 var queryMap = {}; | 1891 var queryMap = {}; |
| 1890 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1892 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 1891 parseBool(n) { | 1893 parseBool(n) { |
| 1892 if (n == "true") return true; | 1894 if (n == "true") return true; |
| 1893 if (n == "false") return false; | 1895 if (n == "false") return false; |
| 1894 if (n == null) return null; | 1896 if (n == null) return null; |
| 1895 throw new core.ArgumentError("Invalid boolean: $n"); | 1897 throw new core.ArgumentError("Invalid boolean: $n"); |
| 1896 } | 1898 } |
| 1897 if (query.length > 0) { | 1899 if (query.length > 0) { |
| 1898 for (var part in query.split("&")) { | 1900 for (var part in query.split("&")) { |
| 1899 var keyvalue = part.split("="); | 1901 var keyvalue = part.split("="); |
| 1900 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 1902 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 1901 } | 1903 } |
| 1902 } | 1904 } |
| 1903 unittest.expect(queryMap["requestSyncToken"].first, unittest.equals("$ar
g_requestSyncToken")); | |
| 1904 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 1905 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 1905 unittest.expect(queryMap["requestMask.includeField"].first, unittest.equ
als(arg_requestMask_includeField)); | 1906 unittest.expect(queryMap["requestMask.includeField"].first, unittest.equ
als(arg_requestMask_includeField)); |
| 1906 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 1907 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
| 1907 unittest.expect(queryMap["syncToken"].first, unittest.equals(arg_syncTok
en)); | 1908 unittest.expect(queryMap["syncToken"].first, unittest.equals(arg_syncTok
en)); |
| 1908 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); | 1909 unittest.expect(queryMap["sortOrder"].first, unittest.equals(arg_sortOrd
er)); |
| 1910 unittest.expect(queryMap["requestSyncToken"].first, unittest.equals("$ar
g_requestSyncToken")); |
| 1909 | 1911 |
| 1910 | 1912 |
| 1911 var h = { | 1913 var h = { |
| 1912 "content-type" : "application/json; charset=utf-8", | 1914 "content-type" : "application/json; charset=utf-8", |
| 1913 }; | 1915 }; |
| 1914 var resp = convert.JSON.encode(buildListConnectionsResponse()); | 1916 var resp = convert.JSON.encode(buildListConnectionsResponse()); |
| 1915 return new async.Future.value(stringResponse(200, h, resp)); | 1917 return new async.Future.value(stringResponse(200, h, resp)); |
| 1916 }), true); | 1918 }), true); |
| 1917 res.list(arg_resourceName, requestSyncToken: arg_requestSyncToken, pageTok
en: arg_pageToken, requestMask_includeField: arg_requestMask_includeField, pageS
ize: arg_pageSize, syncToken: arg_syncToken, sortOrder: arg_sortOrder).then(unit
test.expectAsync(((api.ListConnectionsResponse response) { | 1919 res.list(arg_resourceName, pageToken: arg_pageToken, requestMask_includeFi
eld: arg_requestMask_includeField, pageSize: arg_pageSize, syncToken: arg_syncTo
ken, sortOrder: arg_sortOrder, requestSyncToken: arg_requestSyncToken).then(unit
test.expectAsync(((api.ListConnectionsResponse response) { |
| 1918 checkListConnectionsResponse(response); | 1920 checkListConnectionsResponse(response); |
| 1919 }))); | 1921 }))); |
| 1920 }); | 1922 }); |
| 1921 | 1923 |
| 1922 }); | 1924 }); |
| 1923 | 1925 |
| 1924 | 1926 |
| 1925 } | 1927 } |
| 1926 | 1928 |
| OLD | NEW |