| Index: generated/googleapis/test/civicinfo/v2_test.dart
|
| diff --git a/generated/googleapis/test/civicinfo/v2_test.dart b/generated/googleapis/test/civicinfo/v2_test.dart
|
| index 5ca36d14179da6d2adfe6c653614f4db5f0c6a4d..302b995edc770a208c929a203a0b2af261a33b7a 100644
|
| --- a/generated/googleapis/test/civicinfo/v2_test.dart
|
| +++ b/generated/googleapis/test/civicinfo/v2_test.dart
|
| @@ -51,14 +51,14 @@ http.StreamedResponse stringResponse(
|
| return new http.StreamedResponse(stream, status, headers: headers);
|
| }
|
|
|
| -buildUnnamed2675() {
|
| +buildUnnamed2463() {
|
| var o = new core.List<api.Source>();
|
| o.add(buildSource());
|
| o.add(buildSource());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2675(core.List<api.Source> o) {
|
| +checkUnnamed2463(core.List<api.Source> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSource(o[0]);
|
| checkSource(o[1]);
|
| @@ -73,7 +73,7 @@ buildAdministrationRegion() {
|
| o.id = "foo";
|
| o.localJurisdiction = buildAdministrationRegion();
|
| o.name = "foo";
|
| - o.sources = buildUnnamed2675();
|
| + o.sources = buildUnnamed2463();
|
| }
|
| buildCounterAdministrationRegion--;
|
| return o;
|
| @@ -86,45 +86,45 @@ checkAdministrationRegion(api.AdministrationRegion o) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| checkAdministrationRegion(o.localJurisdiction);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed2675(o.sources);
|
| + checkUnnamed2463(o.sources);
|
| }
|
| buildCounterAdministrationRegion--;
|
| }
|
|
|
| -buildUnnamed2676() {
|
| +buildUnnamed2464() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2676(core.List<core.String> o) {
|
| +checkUnnamed2464(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed2677() {
|
| +buildUnnamed2465() {
|
| var o = new core.List<api.ElectionOfficial>();
|
| o.add(buildElectionOfficial());
|
| o.add(buildElectionOfficial());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2677(core.List<api.ElectionOfficial> o) {
|
| +checkUnnamed2465(core.List<api.ElectionOfficial> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkElectionOfficial(o[0]);
|
| checkElectionOfficial(o[1]);
|
| }
|
|
|
| -buildUnnamed2678() {
|
| +buildUnnamed2466() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2678(core.List<core.String> o) {
|
| +checkUnnamed2466(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -136,18 +136,18 @@ buildAdministrativeBody() {
|
| buildCounterAdministrativeBody++;
|
| if (buildCounterAdministrativeBody < 3) {
|
| o.absenteeVotingInfoUrl = "foo";
|
| - o.addressLines = buildUnnamed2676();
|
| + o.addressLines = buildUnnamed2464();
|
| o.ballotInfoUrl = "foo";
|
| o.correspondenceAddress = buildSimpleAddressType();
|
| o.electionInfoUrl = "foo";
|
| - o.electionOfficials = buildUnnamed2677();
|
| + o.electionOfficials = buildUnnamed2465();
|
| o.electionRegistrationConfirmationUrl = "foo";
|
| o.electionRegistrationUrl = "foo";
|
| o.electionRulesUrl = "foo";
|
| o.hoursOfOperation = "foo";
|
| o.name = "foo";
|
| o.physicalAddress = buildSimpleAddressType();
|
| - o.voterServices = buildUnnamed2678();
|
| + o.voterServices = buildUnnamed2466();
|
| o.votingLocationFinderUrl = "foo";
|
| }
|
| buildCounterAdministrativeBody--;
|
| @@ -158,31 +158,31 @@ checkAdministrativeBody(api.AdministrativeBody o) {
|
| buildCounterAdministrativeBody++;
|
| if (buildCounterAdministrativeBody < 3) {
|
| unittest.expect(o.absenteeVotingInfoUrl, unittest.equals('foo'));
|
| - checkUnnamed2676(o.addressLines);
|
| + checkUnnamed2464(o.addressLines);
|
| unittest.expect(o.ballotInfoUrl, unittest.equals('foo'));
|
| checkSimpleAddressType(o.correspondenceAddress);
|
| unittest.expect(o.electionInfoUrl, unittest.equals('foo'));
|
| - checkUnnamed2677(o.electionOfficials);
|
| + checkUnnamed2465(o.electionOfficials);
|
| unittest.expect(o.electionRegistrationConfirmationUrl, unittest.equals('foo'));
|
| unittest.expect(o.electionRegistrationUrl, unittest.equals('foo'));
|
| unittest.expect(o.electionRulesUrl, unittest.equals('foo'));
|
| unittest.expect(o.hoursOfOperation, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| checkSimpleAddressType(o.physicalAddress);
|
| - checkUnnamed2678(o.voterServices);
|
| + checkUnnamed2466(o.voterServices);
|
| unittest.expect(o.votingLocationFinderUrl, unittest.equals('foo'));
|
| }
|
| buildCounterAdministrativeBody--;
|
| }
|
|
|
| -buildUnnamed2679() {
|
| +buildUnnamed2467() {
|
| var o = new core.List<api.Channel>();
|
| o.add(buildChannel());
|
| o.add(buildChannel());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2679(core.List<api.Channel> o) {
|
| +checkUnnamed2467(core.List<api.Channel> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkChannel(o[0]);
|
| checkChannel(o[1]);
|
| @@ -194,7 +194,7 @@ buildCandidate() {
|
| buildCounterCandidate++;
|
| if (buildCounterCandidate < 3) {
|
| o.candidateUrl = "foo";
|
| - o.channels = buildUnnamed2679();
|
| + o.channels = buildUnnamed2467();
|
| o.email = "foo";
|
| o.name = "foo";
|
| o.orderOnBallot = "foo";
|
| @@ -210,7 +210,7 @@ checkCandidate(api.Candidate o) {
|
| buildCounterCandidate++;
|
| if (buildCounterCandidate < 3) {
|
| unittest.expect(o.candidateUrl, unittest.equals('foo'));
|
| - checkUnnamed2679(o.channels);
|
| + checkUnnamed2467(o.channels);
|
| unittest.expect(o.email, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.orderOnBallot, unittest.equals('foo'));
|
| @@ -242,66 +242,66 @@ checkChannel(api.Channel o) {
|
| buildCounterChannel--;
|
| }
|
|
|
| -buildUnnamed2680() {
|
| +buildUnnamed2468() {
|
| var o = new core.List<api.Candidate>();
|
| o.add(buildCandidate());
|
| o.add(buildCandidate());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2680(core.List<api.Candidate> o) {
|
| +checkUnnamed2468(core.List<api.Candidate> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCandidate(o[0]);
|
| checkCandidate(o[1]);
|
| }
|
|
|
| -buildUnnamed2681() {
|
| +buildUnnamed2469() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2681(core.List<core.String> o) {
|
| +checkUnnamed2469(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed2682() {
|
| +buildUnnamed2470() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2682(core.List<core.String> o) {
|
| +checkUnnamed2470(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed2683() {
|
| +buildUnnamed2471() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2683(core.List<core.String> o) {
|
| +checkUnnamed2471(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed2684() {
|
| +buildUnnamed2472() {
|
| var o = new core.List<api.Source>();
|
| o.add(buildSource());
|
| o.add(buildSource());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2684(core.List<api.Source> o) {
|
| +checkUnnamed2472(core.List<api.Source> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSource(o[0]);
|
| checkSource(o[1]);
|
| @@ -313,16 +313,16 @@ buildContest() {
|
| buildCounterContest++;
|
| if (buildCounterContest < 3) {
|
| o.ballotPlacement = "foo";
|
| - o.candidates = buildUnnamed2680();
|
| + o.candidates = buildUnnamed2468();
|
| o.district = buildElectoralDistrict();
|
| o.electorateSpecifications = "foo";
|
| o.id = "foo";
|
| - o.level = buildUnnamed2681();
|
| + o.level = buildUnnamed2469();
|
| o.numberElected = "foo";
|
| o.numberVotingFor = "foo";
|
| o.office = "foo";
|
| o.primaryParty = "foo";
|
| - o.referendumBallotResponses = buildUnnamed2682();
|
| + o.referendumBallotResponses = buildUnnamed2470();
|
| o.referendumBrief = "foo";
|
| o.referendumConStatement = "foo";
|
| o.referendumEffectOfAbstain = "foo";
|
| @@ -332,8 +332,8 @@ buildContest() {
|
| o.referendumText = "foo";
|
| o.referendumTitle = "foo";
|
| o.referendumUrl = "foo";
|
| - o.roles = buildUnnamed2683();
|
| - o.sources = buildUnnamed2684();
|
| + o.roles = buildUnnamed2471();
|
| + o.sources = buildUnnamed2472();
|
| o.special = "foo";
|
| o.type = "foo";
|
| }
|
| @@ -345,16 +345,16 @@ checkContest(api.Contest o) {
|
| buildCounterContest++;
|
| if (buildCounterContest < 3) {
|
| unittest.expect(o.ballotPlacement, unittest.equals('foo'));
|
| - checkUnnamed2680(o.candidates);
|
| + checkUnnamed2468(o.candidates);
|
| checkElectoralDistrict(o.district);
|
| unittest.expect(o.electorateSpecifications, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2681(o.level);
|
| + checkUnnamed2469(o.level);
|
| unittest.expect(o.numberElected, unittest.equals('foo'));
|
| unittest.expect(o.numberVotingFor, unittest.equals('foo'));
|
| unittest.expect(o.office, unittest.equals('foo'));
|
| unittest.expect(o.primaryParty, unittest.equals('foo'));
|
| - checkUnnamed2682(o.referendumBallotResponses);
|
| + checkUnnamed2470(o.referendumBallotResponses);
|
| unittest.expect(o.referendumBrief, unittest.equals('foo'));
|
| unittest.expect(o.referendumConStatement, unittest.equals('foo'));
|
| unittest.expect(o.referendumEffectOfAbstain, unittest.equals('foo'));
|
| @@ -364,8 +364,8 @@ checkContest(api.Contest o) {
|
| unittest.expect(o.referendumText, unittest.equals('foo'));
|
| unittest.expect(o.referendumTitle, unittest.equals('foo'));
|
| unittest.expect(o.referendumUrl, unittest.equals('foo'));
|
| - checkUnnamed2683(o.roles);
|
| - checkUnnamed2684(o.sources);
|
| + checkUnnamed2471(o.roles);
|
| + checkUnnamed2472(o.sources);
|
| unittest.expect(o.special, unittest.equals('foo'));
|
| unittest.expect(o.type, unittest.equals('foo'));
|
| }
|
| @@ -429,14 +429,14 @@ checkDivisionSearchRequest(api.DivisionSearchRequest o) {
|
| buildCounterDivisionSearchRequest--;
|
| }
|
|
|
| -buildUnnamed2685() {
|
| +buildUnnamed2473() {
|
| var o = new core.List<api.DivisionSearchResult>();
|
| o.add(buildDivisionSearchResult());
|
| o.add(buildDivisionSearchResult());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2685(core.List<api.DivisionSearchResult> o) {
|
| +checkUnnamed2473(core.List<api.DivisionSearchResult> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDivisionSearchResult(o[0]);
|
| checkDivisionSearchResult(o[1]);
|
| @@ -448,7 +448,7 @@ buildDivisionSearchResponse() {
|
| buildCounterDivisionSearchResponse++;
|
| if (buildCounterDivisionSearchResponse < 3) {
|
| o.kind = "foo";
|
| - o.results = buildUnnamed2685();
|
| + o.results = buildUnnamed2473();
|
| }
|
| buildCounterDivisionSearchResponse--;
|
| return o;
|
| @@ -458,19 +458,19 @@ checkDivisionSearchResponse(api.DivisionSearchResponse o) {
|
| buildCounterDivisionSearchResponse++;
|
| if (buildCounterDivisionSearchResponse < 3) {
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| - checkUnnamed2685(o.results);
|
| + checkUnnamed2473(o.results);
|
| }
|
| buildCounterDivisionSearchResponse--;
|
| }
|
|
|
| -buildUnnamed2686() {
|
| +buildUnnamed2474() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2686(core.List<core.String> o) {
|
| +checkUnnamed2474(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -481,7 +481,7 @@ buildDivisionSearchResult() {
|
| var o = new api.DivisionSearchResult();
|
| buildCounterDivisionSearchResult++;
|
| if (buildCounterDivisionSearchResult < 3) {
|
| - o.aliases = buildUnnamed2686();
|
| + o.aliases = buildUnnamed2474();
|
| o.name = "foo";
|
| o.ocdId = "foo";
|
| }
|
| @@ -492,7 +492,7 @@ buildDivisionSearchResult() {
|
| checkDivisionSearchResult(api.DivisionSearchResult o) {
|
| buildCounterDivisionSearchResult++;
|
| if (buildCounterDivisionSearchResult < 3) {
|
| - checkUnnamed2686(o.aliases);
|
| + checkUnnamed2474(o.aliases);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.ocdId, unittest.equals('foo'));
|
| }
|
| @@ -570,14 +570,14 @@ checkElectionsQueryRequest(api.ElectionsQueryRequest o) {
|
| buildCounterElectionsQueryRequest--;
|
| }
|
|
|
| -buildUnnamed2687() {
|
| +buildUnnamed2475() {
|
| var o = new core.List<api.Election>();
|
| o.add(buildElection());
|
| o.add(buildElection());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2687(core.List<api.Election> o) {
|
| +checkUnnamed2475(core.List<api.Election> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkElection(o[0]);
|
| checkElection(o[1]);
|
| @@ -588,7 +588,7 @@ buildElectionsQueryResponse() {
|
| var o = new api.ElectionsQueryResponse();
|
| buildCounterElectionsQueryResponse++;
|
| if (buildCounterElectionsQueryResponse < 3) {
|
| - o.elections = buildUnnamed2687();
|
| + o.elections = buildUnnamed2475();
|
| o.kind = "foo";
|
| }
|
| buildCounterElectionsQueryResponse--;
|
| @@ -598,7 +598,7 @@ buildElectionsQueryResponse() {
|
| checkElectionsQueryResponse(api.ElectionsQueryResponse o) {
|
| buildCounterElectionsQueryResponse++;
|
| if (buildCounterElectionsQueryResponse < 3) {
|
| - checkUnnamed2687(o.elections);
|
| + checkUnnamed2475(o.elections);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| }
|
| buildCounterElectionsQueryResponse--;
|
| @@ -629,27 +629,27 @@ checkElectoralDistrict(api.ElectoralDistrict o) {
|
| buildCounterElectoralDistrict--;
|
| }
|
|
|
| -buildUnnamed2688() {
|
| +buildUnnamed2476() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2688(core.List<core.String> o) {
|
| +checkUnnamed2476(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed2689() {
|
| +buildUnnamed2477() {
|
| var o = new core.List<core.int>();
|
| o.add(42);
|
| o.add(42);
|
| return o;
|
| }
|
|
|
| -checkUnnamed2689(core.List<core.int> o) {
|
| +checkUnnamed2477(core.List<core.int> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals(42));
|
| unittest.expect(o[1], unittest.equals(42));
|
| @@ -660,9 +660,9 @@ buildGeographicDivision() {
|
| var o = new api.GeographicDivision();
|
| buildCounterGeographicDivision++;
|
| if (buildCounterGeographicDivision < 3) {
|
| - o.alsoKnownAs = buildUnnamed2688();
|
| + o.alsoKnownAs = buildUnnamed2476();
|
| o.name = "foo";
|
| - o.officeIndices = buildUnnamed2689();
|
| + o.officeIndices = buildUnnamed2477();
|
| }
|
| buildCounterGeographicDivision--;
|
| return o;
|
| @@ -671,60 +671,60 @@ buildGeographicDivision() {
|
| checkGeographicDivision(api.GeographicDivision o) {
|
| buildCounterGeographicDivision++;
|
| if (buildCounterGeographicDivision < 3) {
|
| - checkUnnamed2688(o.alsoKnownAs);
|
| + checkUnnamed2476(o.alsoKnownAs);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed2689(o.officeIndices);
|
| + checkUnnamed2477(o.officeIndices);
|
| }
|
| buildCounterGeographicDivision--;
|
| }
|
|
|
| -buildUnnamed2690() {
|
| +buildUnnamed2478() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2690(core.List<core.String> o) {
|
| +checkUnnamed2478(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed2691() {
|
| +buildUnnamed2479() {
|
| var o = new core.List<core.int>();
|
| o.add(42);
|
| o.add(42);
|
| return o;
|
| }
|
|
|
| -checkUnnamed2691(core.List<core.int> o) {
|
| +checkUnnamed2479(core.List<core.int> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals(42));
|
| unittest.expect(o[1], unittest.equals(42));
|
| }
|
|
|
| -buildUnnamed2692() {
|
| +buildUnnamed2480() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2692(core.List<core.String> o) {
|
| +checkUnnamed2480(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed2693() {
|
| +buildUnnamed2481() {
|
| var o = new core.List<api.Source>();
|
| o.add(buildSource());
|
| o.add(buildSource());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2693(core.List<api.Source> o) {
|
| +checkUnnamed2481(core.List<api.Source> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSource(o[0]);
|
| checkSource(o[1]);
|
| @@ -736,11 +736,11 @@ buildOffice() {
|
| buildCounterOffice++;
|
| if (buildCounterOffice < 3) {
|
| o.divisionId = "foo";
|
| - o.levels = buildUnnamed2690();
|
| + o.levels = buildUnnamed2478();
|
| o.name = "foo";
|
| - o.officialIndices = buildUnnamed2691();
|
| - o.roles = buildUnnamed2692();
|
| - o.sources = buildUnnamed2693();
|
| + o.officialIndices = buildUnnamed2479();
|
| + o.roles = buildUnnamed2480();
|
| + o.sources = buildUnnamed2481();
|
| }
|
| buildCounterOffice--;
|
| return o;
|
| @@ -750,75 +750,75 @@ checkOffice(api.Office o) {
|
| buildCounterOffice++;
|
| if (buildCounterOffice < 3) {
|
| unittest.expect(o.divisionId, unittest.equals('foo'));
|
| - checkUnnamed2690(o.levels);
|
| + checkUnnamed2478(o.levels);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed2691(o.officialIndices);
|
| - checkUnnamed2692(o.roles);
|
| - checkUnnamed2693(o.sources);
|
| + checkUnnamed2479(o.officialIndices);
|
| + checkUnnamed2480(o.roles);
|
| + checkUnnamed2481(o.sources);
|
| }
|
| buildCounterOffice--;
|
| }
|
|
|
| -buildUnnamed2694() {
|
| +buildUnnamed2482() {
|
| var o = new core.List<api.SimpleAddressType>();
|
| o.add(buildSimpleAddressType());
|
| o.add(buildSimpleAddressType());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2694(core.List<api.SimpleAddressType> o) {
|
| +checkUnnamed2482(core.List<api.SimpleAddressType> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSimpleAddressType(o[0]);
|
| checkSimpleAddressType(o[1]);
|
| }
|
|
|
| -buildUnnamed2695() {
|
| +buildUnnamed2483() {
|
| var o = new core.List<api.Channel>();
|
| o.add(buildChannel());
|
| o.add(buildChannel());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2695(core.List<api.Channel> o) {
|
| +checkUnnamed2483(core.List<api.Channel> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkChannel(o[0]);
|
| checkChannel(o[1]);
|
| }
|
|
|
| -buildUnnamed2696() {
|
| +buildUnnamed2484() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2696(core.List<core.String> o) {
|
| +checkUnnamed2484(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed2697() {
|
| +buildUnnamed2485() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2697(core.List<core.String> o) {
|
| +checkUnnamed2485(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed2698() {
|
| +buildUnnamed2486() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2698(core.List<core.String> o) {
|
| +checkUnnamed2486(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -829,14 +829,14 @@ buildOfficial() {
|
| var o = new api.Official();
|
| buildCounterOfficial++;
|
| if (buildCounterOfficial < 3) {
|
| - o.address = buildUnnamed2694();
|
| - o.channels = buildUnnamed2695();
|
| - o.emails = buildUnnamed2696();
|
| + o.address = buildUnnamed2482();
|
| + o.channels = buildUnnamed2483();
|
| + o.emails = buildUnnamed2484();
|
| o.name = "foo";
|
| o.party = "foo";
|
| - o.phones = buildUnnamed2697();
|
| + o.phones = buildUnnamed2485();
|
| o.photoUrl = "foo";
|
| - o.urls = buildUnnamed2698();
|
| + o.urls = buildUnnamed2486();
|
| }
|
| buildCounterOfficial--;
|
| return o;
|
| @@ -845,26 +845,26 @@ buildOfficial() {
|
| checkOfficial(api.Official o) {
|
| buildCounterOfficial++;
|
| if (buildCounterOfficial < 3) {
|
| - checkUnnamed2694(o.address);
|
| - checkUnnamed2695(o.channels);
|
| - checkUnnamed2696(o.emails);
|
| + checkUnnamed2482(o.address);
|
| + checkUnnamed2483(o.channels);
|
| + checkUnnamed2484(o.emails);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.party, unittest.equals('foo'));
|
| - checkUnnamed2697(o.phones);
|
| + checkUnnamed2485(o.phones);
|
| unittest.expect(o.photoUrl, unittest.equals('foo'));
|
| - checkUnnamed2698(o.urls);
|
| + checkUnnamed2486(o.urls);
|
| }
|
| buildCounterOfficial--;
|
| }
|
|
|
| -buildUnnamed2699() {
|
| +buildUnnamed2487() {
|
| var o = new core.List<api.Source>();
|
| o.add(buildSource());
|
| o.add(buildSource());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2699(core.List<api.Source> o) {
|
| +checkUnnamed2487(core.List<api.Source> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSource(o[0]);
|
| checkSource(o[1]);
|
| @@ -881,7 +881,7 @@ buildPollingLocation() {
|
| o.name = "foo";
|
| o.notes = "foo";
|
| o.pollingHours = "foo";
|
| - o.sources = buildUnnamed2699();
|
| + o.sources = buildUnnamed2487();
|
| o.startDate = "foo";
|
| o.voterServices = "foo";
|
| }
|
| @@ -898,21 +898,21 @@ checkPollingLocation(api.PollingLocation o) {
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.notes, unittest.equals('foo'));
|
| unittest.expect(o.pollingHours, unittest.equals('foo'));
|
| - checkUnnamed2699(o.sources);
|
| + checkUnnamed2487(o.sources);
|
| unittest.expect(o.startDate, unittest.equals('foo'));
|
| unittest.expect(o.voterServices, unittest.equals('foo'));
|
| }
|
| buildCounterPollingLocation--;
|
| }
|
|
|
| -buildUnnamed2700() {
|
| +buildUnnamed2488() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2700(core.List<core.String> o) {
|
| +checkUnnamed2488(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -923,7 +923,7 @@ buildPostalAddress() {
|
| var o = new api.PostalAddress();
|
| buildCounterPostalAddress++;
|
| if (buildCounterPostalAddress < 3) {
|
| - o.addressLines = buildUnnamed2700();
|
| + o.addressLines = buildUnnamed2488();
|
| o.administrativeAreaName = "foo";
|
| o.countryName = "foo";
|
| o.countryNameCode = "foo";
|
| @@ -962,7 +962,7 @@ buildPostalAddress() {
|
| checkPostalAddress(api.PostalAddress o) {
|
| buildCounterPostalAddress++;
|
| if (buildCounterPostalAddress < 3) {
|
| - checkUnnamed2700(o.addressLines);
|
| + checkUnnamed2488(o.addressLines);
|
| unittest.expect(o.administrativeAreaName, unittest.equals('foo'));
|
| unittest.expect(o.countryName, unittest.equals('foo'));
|
| unittest.expect(o.countryNameCode, unittest.equals('foo'));
|
| @@ -997,40 +997,40 @@ checkPostalAddress(api.PostalAddress o) {
|
| buildCounterPostalAddress--;
|
| }
|
|
|
| -buildUnnamed2701() {
|
| +buildUnnamed2489() {
|
| var o = new core.Map<core.String, api.GeographicDivision>();
|
| o["x"] = buildGeographicDivision();
|
| o["y"] = buildGeographicDivision();
|
| return o;
|
| }
|
|
|
| -checkUnnamed2701(core.Map<core.String, api.GeographicDivision> o) {
|
| +checkUnnamed2489(core.Map<core.String, api.GeographicDivision> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGeographicDivision(o["x"]);
|
| checkGeographicDivision(o["y"]);
|
| }
|
|
|
| -buildUnnamed2702() {
|
| +buildUnnamed2490() {
|
| var o = new core.List<api.Office>();
|
| o.add(buildOffice());
|
| o.add(buildOffice());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2702(core.List<api.Office> o) {
|
| +checkUnnamed2490(core.List<api.Office> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOffice(o[0]);
|
| checkOffice(o[1]);
|
| }
|
|
|
| -buildUnnamed2703() {
|
| +buildUnnamed2491() {
|
| var o = new core.List<api.Official>();
|
| o.add(buildOfficial());
|
| o.add(buildOfficial());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2703(core.List<api.Official> o) {
|
| +checkUnnamed2491(core.List<api.Official> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOfficial(o[0]);
|
| checkOfficial(o[1]);
|
| @@ -1041,9 +1041,9 @@ buildRepresentativeInfoData() {
|
| var o = new api.RepresentativeInfoData();
|
| buildCounterRepresentativeInfoData++;
|
| if (buildCounterRepresentativeInfoData < 3) {
|
| - o.divisions = buildUnnamed2701();
|
| - o.offices = buildUnnamed2702();
|
| - o.officials = buildUnnamed2703();
|
| + o.divisions = buildUnnamed2489();
|
| + o.offices = buildUnnamed2490();
|
| + o.officials = buildUnnamed2491();
|
| }
|
| buildCounterRepresentativeInfoData--;
|
| return o;
|
| @@ -1052,9 +1052,9 @@ buildRepresentativeInfoData() {
|
| checkRepresentativeInfoData(api.RepresentativeInfoData o) {
|
| buildCounterRepresentativeInfoData++;
|
| if (buildCounterRepresentativeInfoData < 3) {
|
| - checkUnnamed2701(o.divisions);
|
| - checkUnnamed2702(o.offices);
|
| - checkUnnamed2703(o.officials);
|
| + checkUnnamed2489(o.divisions);
|
| + checkUnnamed2490(o.offices);
|
| + checkUnnamed2491(o.officials);
|
| }
|
| buildCounterRepresentativeInfoData--;
|
| }
|
| @@ -1078,40 +1078,40 @@ checkRepresentativeInfoRequest(api.RepresentativeInfoRequest o) {
|
| buildCounterRepresentativeInfoRequest--;
|
| }
|
|
|
| -buildUnnamed2704() {
|
| +buildUnnamed2492() {
|
| var o = new core.Map<core.String, api.GeographicDivision>();
|
| o["x"] = buildGeographicDivision();
|
| o["y"] = buildGeographicDivision();
|
| return o;
|
| }
|
|
|
| -checkUnnamed2704(core.Map<core.String, api.GeographicDivision> o) {
|
| +checkUnnamed2492(core.Map<core.String, api.GeographicDivision> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkGeographicDivision(o["x"]);
|
| checkGeographicDivision(o["y"]);
|
| }
|
|
|
| -buildUnnamed2705() {
|
| +buildUnnamed2493() {
|
| var o = new core.List<api.Office>();
|
| o.add(buildOffice());
|
| o.add(buildOffice());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2705(core.List<api.Office> o) {
|
| +checkUnnamed2493(core.List<api.Office> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOffice(o[0]);
|
| checkOffice(o[1]);
|
| }
|
|
|
| -buildUnnamed2706() {
|
| +buildUnnamed2494() {
|
| var o = new core.List<api.Official>();
|
| o.add(buildOfficial());
|
| o.add(buildOfficial());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2706(core.List<api.Official> o) {
|
| +checkUnnamed2494(core.List<api.Official> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOfficial(o[0]);
|
| checkOfficial(o[1]);
|
| @@ -1122,11 +1122,11 @@ buildRepresentativeInfoResponse() {
|
| var o = new api.RepresentativeInfoResponse();
|
| buildCounterRepresentativeInfoResponse++;
|
| if (buildCounterRepresentativeInfoResponse < 3) {
|
| - o.divisions = buildUnnamed2704();
|
| + o.divisions = buildUnnamed2492();
|
| o.kind = "foo";
|
| o.normalizedInput = buildSimpleAddressType();
|
| - o.offices = buildUnnamed2705();
|
| - o.officials = buildUnnamed2706();
|
| + o.offices = buildUnnamed2493();
|
| + o.officials = buildUnnamed2494();
|
| }
|
| buildCounterRepresentativeInfoResponse--;
|
| return o;
|
| @@ -1135,11 +1135,11 @@ buildRepresentativeInfoResponse() {
|
| checkRepresentativeInfoResponse(api.RepresentativeInfoResponse o) {
|
| buildCounterRepresentativeInfoResponse++;
|
| if (buildCounterRepresentativeInfoResponse < 3) {
|
| - checkUnnamed2704(o.divisions);
|
| + checkUnnamed2492(o.divisions);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| checkSimpleAddressType(o.normalizedInput);
|
| - checkUnnamed2705(o.offices);
|
| - checkUnnamed2706(o.officials);
|
| + checkUnnamed2493(o.offices);
|
| + checkUnnamed2494(o.officials);
|
| }
|
| buildCounterRepresentativeInfoResponse--;
|
| }
|
| @@ -1217,79 +1217,79 @@ checkVoterInfoRequest(api.VoterInfoRequest o) {
|
| buildCounterVoterInfoRequest--;
|
| }
|
|
|
| -buildUnnamed2707() {
|
| +buildUnnamed2495() {
|
| var o = new core.List<api.Contest>();
|
| o.add(buildContest());
|
| o.add(buildContest());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2707(core.List<api.Contest> o) {
|
| +checkUnnamed2495(core.List<api.Contest> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkContest(o[0]);
|
| checkContest(o[1]);
|
| }
|
|
|
| -buildUnnamed2708() {
|
| +buildUnnamed2496() {
|
| var o = new core.List<api.PollingLocation>();
|
| o.add(buildPollingLocation());
|
| o.add(buildPollingLocation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2708(core.List<api.PollingLocation> o) {
|
| +checkUnnamed2496(core.List<api.PollingLocation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPollingLocation(o[0]);
|
| checkPollingLocation(o[1]);
|
| }
|
|
|
| -buildUnnamed2709() {
|
| +buildUnnamed2497() {
|
| var o = new core.List<api.PollingLocation>();
|
| o.add(buildPollingLocation());
|
| o.add(buildPollingLocation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2709(core.List<api.PollingLocation> o) {
|
| +checkUnnamed2497(core.List<api.PollingLocation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPollingLocation(o[0]);
|
| checkPollingLocation(o[1]);
|
| }
|
|
|
| -buildUnnamed2710() {
|
| +buildUnnamed2498() {
|
| var o = new core.List<api.Election>();
|
| o.add(buildElection());
|
| o.add(buildElection());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2710(core.List<api.Election> o) {
|
| +checkUnnamed2498(core.List<api.Election> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkElection(o[0]);
|
| checkElection(o[1]);
|
| }
|
|
|
| -buildUnnamed2711() {
|
| +buildUnnamed2499() {
|
| var o = new core.List<api.PollingLocation>();
|
| o.add(buildPollingLocation());
|
| o.add(buildPollingLocation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2711(core.List<api.PollingLocation> o) {
|
| +checkUnnamed2499(core.List<api.PollingLocation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPollingLocation(o[0]);
|
| checkPollingLocation(o[1]);
|
| }
|
|
|
| -buildUnnamed2712() {
|
| +buildUnnamed2500() {
|
| var o = new core.List<api.AdministrationRegion>();
|
| o.add(buildAdministrationRegion());
|
| o.add(buildAdministrationRegion());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2712(core.List<api.AdministrationRegion> o) {
|
| +checkUnnamed2500(core.List<api.AdministrationRegion> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAdministrationRegion(o[0]);
|
| checkAdministrationRegion(o[1]);
|
| @@ -1300,17 +1300,17 @@ buildVoterInfoResponse() {
|
| var o = new api.VoterInfoResponse();
|
| buildCounterVoterInfoResponse++;
|
| if (buildCounterVoterInfoResponse < 3) {
|
| - o.contests = buildUnnamed2707();
|
| - o.dropOffLocations = buildUnnamed2708();
|
| - o.earlyVoteSites = buildUnnamed2709();
|
| + o.contests = buildUnnamed2495();
|
| + o.dropOffLocations = buildUnnamed2496();
|
| + o.earlyVoteSites = buildUnnamed2497();
|
| o.election = buildElection();
|
| o.kind = "foo";
|
| o.mailOnly = true;
|
| o.normalizedInput = buildSimpleAddressType();
|
| - o.otherElections = buildUnnamed2710();
|
| - o.pollingLocations = buildUnnamed2711();
|
| + o.otherElections = buildUnnamed2498();
|
| + o.pollingLocations = buildUnnamed2499();
|
| o.precinctId = "foo";
|
| - o.state = buildUnnamed2712();
|
| + o.state = buildUnnamed2500();
|
| }
|
| buildCounterVoterInfoResponse--;
|
| return o;
|
| @@ -1319,17 +1319,17 @@ buildVoterInfoResponse() {
|
| checkVoterInfoResponse(api.VoterInfoResponse o) {
|
| buildCounterVoterInfoResponse++;
|
| if (buildCounterVoterInfoResponse < 3) {
|
| - checkUnnamed2707(o.contests);
|
| - checkUnnamed2708(o.dropOffLocations);
|
| - checkUnnamed2709(o.earlyVoteSites);
|
| + checkUnnamed2495(o.contests);
|
| + checkUnnamed2496(o.dropOffLocations);
|
| + checkUnnamed2497(o.earlyVoteSites);
|
| checkElection(o.election);
|
| unittest.expect(o.kind, unittest.equals('foo'));
|
| unittest.expect(o.mailOnly, unittest.isTrue);
|
| checkSimpleAddressType(o.normalizedInput);
|
| - checkUnnamed2710(o.otherElections);
|
| - checkUnnamed2711(o.pollingLocations);
|
| + checkUnnamed2498(o.otherElections);
|
| + checkUnnamed2499(o.pollingLocations);
|
| unittest.expect(o.precinctId, unittest.equals('foo'));
|
| - checkUnnamed2712(o.state);
|
| + checkUnnamed2500(o.state);
|
| }
|
| buildCounterVoterInfoResponse--;
|
| }
|
| @@ -1359,53 +1359,53 @@ checkVoterInfoSegmentResult(api.VoterInfoSegmentResult o) {
|
| buildCounterVoterInfoSegmentResult--;
|
| }
|
|
|
| -buildUnnamed2713() {
|
| +buildUnnamed2501() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2713(core.List<core.String> o) {
|
| +checkUnnamed2501(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed2714() {
|
| +buildUnnamed2502() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2714(core.List<core.String> o) {
|
| +checkUnnamed2502(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed2715() {
|
| +buildUnnamed2503() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2715(core.List<core.String> o) {
|
| +checkUnnamed2503(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed2716() {
|
| +buildUnnamed2504() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2716(core.List<core.String> o) {
|
| +checkUnnamed2504(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -1838,8 +1838,8 @@ main() {
|
| var arg_request = buildRepresentativeInfoRequest();
|
| var arg_address = "foo";
|
| var arg_includeOffices = true;
|
| - var arg_levels = buildUnnamed2713();
|
| - var arg_roles = buildUnnamed2714();
|
| + var arg_levels = buildUnnamed2501();
|
| + var arg_roles = buildUnnamed2502();
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var obj = new api.RepresentativeInfoRequest.fromJson(json);
|
| checkRepresentativeInfoRequest(obj);
|
| @@ -1894,9 +1894,9 @@ main() {
|
| api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representatives;
|
| var arg_request = buildDivisionRepresentativeInfoRequest();
|
| var arg_ocdId = "foo";
|
| - var arg_levels = buildUnnamed2715();
|
| + var arg_levels = buildUnnamed2503();
|
| var arg_recursive = true;
|
| - var arg_roles = buildUnnamed2716();
|
| + var arg_roles = buildUnnamed2504();
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var obj = new api.DivisionRepresentativeInfoRequest.fromJson(json);
|
| checkDivisionRepresentativeInfoRequest(obj);
|
|
|