| OLD | NEW |
| 1 library googleapis.civicinfo.v2.test; | 1 library googleapis.civicinfo.v2.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; |
| 11 import 'package:googleapis/common/common.dart' as common; | 11 import 'package:googleapis/common/common.dart' as common; |
| 12 import 'package:googleapis/src/common_internal.dart' as common_internal; | 12 import 'package:googleapis/src/common_internal.dart' as common_internal; |
| 13 import '../common/common_internal_test.dart' as common_test; | 13 import '../common/common_internal_test.dart' as common_test; |
| 14 | 14 |
| 15 import 'package:googleapis/civicinfo/v2.dart' as api; | 15 import 'package:googleapis/civicinfo/v2.dart' as api; |
| 16 | 16 |
| 17 | 17 |
| 18 | 18 |
| 19 buildUnnamed1034() { | 19 buildUnnamed426() { |
| 20 var o = new core.List<api.Source>(); | 20 var o = new core.List<api.Source>(); |
| 21 o.add(buildSource()); | 21 o.add(buildSource()); |
| 22 o.add(buildSource()); | 22 o.add(buildSource()); |
| 23 return o; | 23 return o; |
| 24 } | 24 } |
| 25 | 25 |
| 26 checkUnnamed1034(core.List<api.Source> o) { | 26 checkUnnamed426(core.List<api.Source> o) { |
| 27 unittest.expect(o, unittest.hasLength(2)); | 27 unittest.expect(o, unittest.hasLength(2)); |
| 28 checkSource(o[0]); | 28 checkSource(o[0]); |
| 29 checkSource(o[1]); | 29 checkSource(o[1]); |
| 30 } | 30 } |
| 31 | 31 |
| 32 core.int buildCounterAdministrationRegion = 0; | 32 core.int buildCounterAdministrationRegion = 0; |
| 33 buildAdministrationRegion() { | 33 buildAdministrationRegion() { |
| 34 var o = new api.AdministrationRegion(); | 34 var o = new api.AdministrationRegion(); |
| 35 buildCounterAdministrationRegion++; | 35 buildCounterAdministrationRegion++; |
| 36 if (buildCounterAdministrationRegion < 3) { | 36 if (buildCounterAdministrationRegion < 3) { |
| 37 o.electionAdministrationBody = buildAdministrativeBody(); | 37 o.electionAdministrationBody = buildAdministrativeBody(); |
| 38 o.id = "foo"; | 38 o.id = "foo"; |
| 39 o.localJurisdiction = buildAdministrationRegion(); | 39 o.localJurisdiction = buildAdministrationRegion(); |
| 40 o.name = "foo"; | 40 o.name = "foo"; |
| 41 o.sources = buildUnnamed1034(); | 41 o.sources = buildUnnamed426(); |
| 42 } | 42 } |
| 43 buildCounterAdministrationRegion--; | 43 buildCounterAdministrationRegion--; |
| 44 return o; | 44 return o; |
| 45 } | 45 } |
| 46 | 46 |
| 47 checkAdministrationRegion(api.AdministrationRegion o) { | 47 checkAdministrationRegion(api.AdministrationRegion o) { |
| 48 buildCounterAdministrationRegion++; | 48 buildCounterAdministrationRegion++; |
| 49 if (buildCounterAdministrationRegion < 3) { | 49 if (buildCounterAdministrationRegion < 3) { |
| 50 checkAdministrativeBody(o.electionAdministrationBody); | 50 checkAdministrativeBody(o.electionAdministrationBody); |
| 51 unittest.expect(o.id, unittest.equals('foo')); | 51 unittest.expect(o.id, unittest.equals('foo')); |
| 52 checkAdministrationRegion(o.localJurisdiction); | 52 checkAdministrationRegion(o.localJurisdiction); |
| 53 unittest.expect(o.name, unittest.equals('foo')); | 53 unittest.expect(o.name, unittest.equals('foo')); |
| 54 checkUnnamed1034(o.sources); | 54 checkUnnamed426(o.sources); |
| 55 } | 55 } |
| 56 buildCounterAdministrationRegion--; | 56 buildCounterAdministrationRegion--; |
| 57 } | 57 } |
| 58 | 58 |
| 59 buildUnnamed1035() { | 59 buildUnnamed427() { |
| 60 var o = new core.List<api.ElectionOfficial>(); | 60 var o = new core.List<api.ElectionOfficial>(); |
| 61 o.add(buildElectionOfficial()); | 61 o.add(buildElectionOfficial()); |
| 62 o.add(buildElectionOfficial()); | 62 o.add(buildElectionOfficial()); |
| 63 return o; | 63 return o; |
| 64 } | 64 } |
| 65 | 65 |
| 66 checkUnnamed1035(core.List<api.ElectionOfficial> o) { | 66 checkUnnamed427(core.List<api.ElectionOfficial> o) { |
| 67 unittest.expect(o, unittest.hasLength(2)); | 67 unittest.expect(o, unittest.hasLength(2)); |
| 68 checkElectionOfficial(o[0]); | 68 checkElectionOfficial(o[0]); |
| 69 checkElectionOfficial(o[1]); | 69 checkElectionOfficial(o[1]); |
| 70 } | 70 } |
| 71 | 71 |
| 72 buildUnnamed1036() { | 72 buildUnnamed428() { |
| 73 var o = new core.List<core.String>(); | 73 var o = new core.List<core.String>(); |
| 74 o.add("foo"); | 74 o.add("foo"); |
| 75 o.add("foo"); | 75 o.add("foo"); |
| 76 return o; | 76 return o; |
| 77 } | 77 } |
| 78 | 78 |
| 79 checkUnnamed1036(core.List<core.String> o) { | 79 checkUnnamed428(core.List<core.String> o) { |
| 80 unittest.expect(o, unittest.hasLength(2)); | 80 unittest.expect(o, unittest.hasLength(2)); |
| 81 unittest.expect(o[0], unittest.equals('foo')); | 81 unittest.expect(o[0], unittest.equals('foo')); |
| 82 unittest.expect(o[1], unittest.equals('foo')); | 82 unittest.expect(o[1], unittest.equals('foo')); |
| 83 } | 83 } |
| 84 | 84 |
| 85 core.int buildCounterAdministrativeBody = 0; | 85 core.int buildCounterAdministrativeBody = 0; |
| 86 buildAdministrativeBody() { | 86 buildAdministrativeBody() { |
| 87 var o = new api.AdministrativeBody(); | 87 var o = new api.AdministrativeBody(); |
| 88 buildCounterAdministrativeBody++; | 88 buildCounterAdministrativeBody++; |
| 89 if (buildCounterAdministrativeBody < 3) { | 89 if (buildCounterAdministrativeBody < 3) { |
| 90 o.absenteeVotingInfoUrl = "foo"; | 90 o.absenteeVotingInfoUrl = "foo"; |
| 91 o.ballotInfoUrl = "foo"; | 91 o.ballotInfoUrl = "foo"; |
| 92 o.correspondenceAddress = buildSimpleAddressType(); | 92 o.correspondenceAddress = buildSimpleAddressType(); |
| 93 o.electionInfoUrl = "foo"; | 93 o.electionInfoUrl = "foo"; |
| 94 o.electionOfficials = buildUnnamed1035(); | 94 o.electionOfficials = buildUnnamed427(); |
| 95 o.electionRegistrationConfirmationUrl = "foo"; | 95 o.electionRegistrationConfirmationUrl = "foo"; |
| 96 o.electionRegistrationUrl = "foo"; | 96 o.electionRegistrationUrl = "foo"; |
| 97 o.electionRulesUrl = "foo"; | 97 o.electionRulesUrl = "foo"; |
| 98 o.hoursOfOperation = "foo"; | 98 o.hoursOfOperation = "foo"; |
| 99 o.name = "foo"; | 99 o.name = "foo"; |
| 100 o.physicalAddress = buildSimpleAddressType(); | 100 o.physicalAddress = buildSimpleAddressType(); |
| 101 o.voterServices = buildUnnamed1036(); | 101 o.voterServices = buildUnnamed428(); |
| 102 o.votingLocationFinderUrl = "foo"; | 102 o.votingLocationFinderUrl = "foo"; |
| 103 } | 103 } |
| 104 buildCounterAdministrativeBody--; | 104 buildCounterAdministrativeBody--; |
| 105 return o; | 105 return o; |
| 106 } | 106 } |
| 107 | 107 |
| 108 checkAdministrativeBody(api.AdministrativeBody o) { | 108 checkAdministrativeBody(api.AdministrativeBody o) { |
| 109 buildCounterAdministrativeBody++; | 109 buildCounterAdministrativeBody++; |
| 110 if (buildCounterAdministrativeBody < 3) { | 110 if (buildCounterAdministrativeBody < 3) { |
| 111 unittest.expect(o.absenteeVotingInfoUrl, unittest.equals('foo')); | 111 unittest.expect(o.absenteeVotingInfoUrl, unittest.equals('foo')); |
| 112 unittest.expect(o.ballotInfoUrl, unittest.equals('foo')); | 112 unittest.expect(o.ballotInfoUrl, unittest.equals('foo')); |
| 113 checkSimpleAddressType(o.correspondenceAddress); | 113 checkSimpleAddressType(o.correspondenceAddress); |
| 114 unittest.expect(o.electionInfoUrl, unittest.equals('foo')); | 114 unittest.expect(o.electionInfoUrl, unittest.equals('foo')); |
| 115 checkUnnamed1035(o.electionOfficials); | 115 checkUnnamed427(o.electionOfficials); |
| 116 unittest.expect(o.electionRegistrationConfirmationUrl, unittest.equals('foo'
)); | 116 unittest.expect(o.electionRegistrationConfirmationUrl, unittest.equals('foo'
)); |
| 117 unittest.expect(o.electionRegistrationUrl, unittest.equals('foo')); | 117 unittest.expect(o.electionRegistrationUrl, unittest.equals('foo')); |
| 118 unittest.expect(o.electionRulesUrl, unittest.equals('foo')); | 118 unittest.expect(o.electionRulesUrl, unittest.equals('foo')); |
| 119 unittest.expect(o.hoursOfOperation, unittest.equals('foo')); | 119 unittest.expect(o.hoursOfOperation, unittest.equals('foo')); |
| 120 unittest.expect(o.name, unittest.equals('foo')); | 120 unittest.expect(o.name, unittest.equals('foo')); |
| 121 checkSimpleAddressType(o.physicalAddress); | 121 checkSimpleAddressType(o.physicalAddress); |
| 122 checkUnnamed1036(o.voterServices); | 122 checkUnnamed428(o.voterServices); |
| 123 unittest.expect(o.votingLocationFinderUrl, unittest.equals('foo')); | 123 unittest.expect(o.votingLocationFinderUrl, unittest.equals('foo')); |
| 124 } | 124 } |
| 125 buildCounterAdministrativeBody--; | 125 buildCounterAdministrativeBody--; |
| 126 } | 126 } |
| 127 | 127 |
| 128 buildUnnamed1037() { | 128 buildUnnamed429() { |
| 129 var o = new core.List<api.Channel>(); | 129 var o = new core.List<api.Channel>(); |
| 130 o.add(buildChannel()); | 130 o.add(buildChannel()); |
| 131 o.add(buildChannel()); | 131 o.add(buildChannel()); |
| 132 return o; | 132 return o; |
| 133 } | 133 } |
| 134 | 134 |
| 135 checkUnnamed1037(core.List<api.Channel> o) { | 135 checkUnnamed429(core.List<api.Channel> o) { |
| 136 unittest.expect(o, unittest.hasLength(2)); | 136 unittest.expect(o, unittest.hasLength(2)); |
| 137 checkChannel(o[0]); | 137 checkChannel(o[0]); |
| 138 checkChannel(o[1]); | 138 checkChannel(o[1]); |
| 139 } | 139 } |
| 140 | 140 |
| 141 core.int buildCounterCandidate = 0; | 141 core.int buildCounterCandidate = 0; |
| 142 buildCandidate() { | 142 buildCandidate() { |
| 143 var o = new api.Candidate(); | 143 var o = new api.Candidate(); |
| 144 buildCounterCandidate++; | 144 buildCounterCandidate++; |
| 145 if (buildCounterCandidate < 3) { | 145 if (buildCounterCandidate < 3) { |
| 146 o.candidateUrl = "foo"; | 146 o.candidateUrl = "foo"; |
| 147 o.channels = buildUnnamed1037(); | 147 o.channels = buildUnnamed429(); |
| 148 o.email = "foo"; | 148 o.email = "foo"; |
| 149 o.name = "foo"; | 149 o.name = "foo"; |
| 150 o.orderOnBallot = "foo"; | 150 o.orderOnBallot = "foo"; |
| 151 o.party = "foo"; | 151 o.party = "foo"; |
| 152 o.phone = "foo"; | 152 o.phone = "foo"; |
| 153 o.photoUrl = "foo"; | 153 o.photoUrl = "foo"; |
| 154 } | 154 } |
| 155 buildCounterCandidate--; | 155 buildCounterCandidate--; |
| 156 return o; | 156 return o; |
| 157 } | 157 } |
| 158 | 158 |
| 159 checkCandidate(api.Candidate o) { | 159 checkCandidate(api.Candidate o) { |
| 160 buildCounterCandidate++; | 160 buildCounterCandidate++; |
| 161 if (buildCounterCandidate < 3) { | 161 if (buildCounterCandidate < 3) { |
| 162 unittest.expect(o.candidateUrl, unittest.equals('foo')); | 162 unittest.expect(o.candidateUrl, unittest.equals('foo')); |
| 163 checkUnnamed1037(o.channels); | 163 checkUnnamed429(o.channels); |
| 164 unittest.expect(o.email, unittest.equals('foo')); | 164 unittest.expect(o.email, unittest.equals('foo')); |
| 165 unittest.expect(o.name, unittest.equals('foo')); | 165 unittest.expect(o.name, unittest.equals('foo')); |
| 166 unittest.expect(o.orderOnBallot, unittest.equals('foo')); | 166 unittest.expect(o.orderOnBallot, unittest.equals('foo')); |
| 167 unittest.expect(o.party, unittest.equals('foo')); | 167 unittest.expect(o.party, unittest.equals('foo')); |
| 168 unittest.expect(o.phone, unittest.equals('foo')); | 168 unittest.expect(o.phone, unittest.equals('foo')); |
| 169 unittest.expect(o.photoUrl, unittest.equals('foo')); | 169 unittest.expect(o.photoUrl, unittest.equals('foo')); |
| 170 } | 170 } |
| 171 buildCounterCandidate--; | 171 buildCounterCandidate--; |
| 172 } | 172 } |
| 173 | 173 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 185 | 185 |
| 186 checkChannel(api.Channel o) { | 186 checkChannel(api.Channel o) { |
| 187 buildCounterChannel++; | 187 buildCounterChannel++; |
| 188 if (buildCounterChannel < 3) { | 188 if (buildCounterChannel < 3) { |
| 189 unittest.expect(o.id, unittest.equals('foo')); | 189 unittest.expect(o.id, unittest.equals('foo')); |
| 190 unittest.expect(o.type, unittest.equals('foo')); | 190 unittest.expect(o.type, unittest.equals('foo')); |
| 191 } | 191 } |
| 192 buildCounterChannel--; | 192 buildCounterChannel--; |
| 193 } | 193 } |
| 194 | 194 |
| 195 buildUnnamed1038() { | 195 buildUnnamed430() { |
| 196 var o = new core.List<api.Candidate>(); | 196 var o = new core.List<api.Candidate>(); |
| 197 o.add(buildCandidate()); | 197 o.add(buildCandidate()); |
| 198 o.add(buildCandidate()); | 198 o.add(buildCandidate()); |
| 199 return o; | 199 return o; |
| 200 } | 200 } |
| 201 | 201 |
| 202 checkUnnamed1038(core.List<api.Candidate> o) { | 202 checkUnnamed430(core.List<api.Candidate> o) { |
| 203 unittest.expect(o, unittest.hasLength(2)); | 203 unittest.expect(o, unittest.hasLength(2)); |
| 204 checkCandidate(o[0]); | 204 checkCandidate(o[0]); |
| 205 checkCandidate(o[1]); | 205 checkCandidate(o[1]); |
| 206 } | 206 } |
| 207 | 207 |
| 208 buildUnnamed1039() { | 208 buildUnnamed431() { |
| 209 var o = new core.List<core.String>(); | 209 var o = new core.List<core.String>(); |
| 210 o.add("foo"); | 210 o.add("foo"); |
| 211 o.add("foo"); | 211 o.add("foo"); |
| 212 return o; | 212 return o; |
| 213 } | 213 } |
| 214 | 214 |
| 215 checkUnnamed1039(core.List<core.String> o) { | 215 checkUnnamed431(core.List<core.String> o) { |
| 216 unittest.expect(o, unittest.hasLength(2)); | 216 unittest.expect(o, unittest.hasLength(2)); |
| 217 unittest.expect(o[0], unittest.equals('foo')); | 217 unittest.expect(o[0], unittest.equals('foo')); |
| 218 unittest.expect(o[1], unittest.equals('foo')); | 218 unittest.expect(o[1], unittest.equals('foo')); |
| 219 } | 219 } |
| 220 | 220 |
| 221 buildUnnamed1040() { | 221 buildUnnamed432() { |
| 222 var o = new core.List<core.String>(); | 222 var o = new core.List<core.String>(); |
| 223 o.add("foo"); | 223 o.add("foo"); |
| 224 o.add("foo"); | 224 o.add("foo"); |
| 225 return o; | 225 return o; |
| 226 } | 226 } |
| 227 | 227 |
| 228 checkUnnamed1040(core.List<core.String> o) { | 228 checkUnnamed432(core.List<core.String> o) { |
| 229 unittest.expect(o, unittest.hasLength(2)); | 229 unittest.expect(o, unittest.hasLength(2)); |
| 230 unittest.expect(o[0], unittest.equals('foo')); | 230 unittest.expect(o[0], unittest.equals('foo')); |
| 231 unittest.expect(o[1], unittest.equals('foo')); | 231 unittest.expect(o[1], unittest.equals('foo')); |
| 232 } | 232 } |
| 233 | 233 |
| 234 buildUnnamed1041() { | 234 buildUnnamed433() { |
| 235 var o = new core.List<api.Source>(); | 235 var o = new core.List<api.Source>(); |
| 236 o.add(buildSource()); | 236 o.add(buildSource()); |
| 237 o.add(buildSource()); | 237 o.add(buildSource()); |
| 238 return o; | 238 return o; |
| 239 } | 239 } |
| 240 | 240 |
| 241 checkUnnamed1041(core.List<api.Source> o) { | 241 checkUnnamed433(core.List<api.Source> o) { |
| 242 unittest.expect(o, unittest.hasLength(2)); | 242 unittest.expect(o, unittest.hasLength(2)); |
| 243 checkSource(o[0]); | 243 checkSource(o[0]); |
| 244 checkSource(o[1]); | 244 checkSource(o[1]); |
| 245 } | 245 } |
| 246 | 246 |
| 247 core.int buildCounterContest = 0; | 247 core.int buildCounterContest = 0; |
| 248 buildContest() { | 248 buildContest() { |
| 249 var o = new api.Contest(); | 249 var o = new api.Contest(); |
| 250 buildCounterContest++; | 250 buildCounterContest++; |
| 251 if (buildCounterContest < 3) { | 251 if (buildCounterContest < 3) { |
| 252 o.ballotPlacement = "foo"; | 252 o.ballotPlacement = "foo"; |
| 253 o.candidates = buildUnnamed1038(); | 253 o.candidates = buildUnnamed430(); |
| 254 o.district = buildElectoralDistrict(); | 254 o.district = buildElectoralDistrict(); |
| 255 o.electorateSpecifications = "foo"; | 255 o.electorateSpecifications = "foo"; |
| 256 o.id = "foo"; | 256 o.id = "foo"; |
| 257 o.level = buildUnnamed1039(); | 257 o.level = buildUnnamed431(); |
| 258 o.numberElected = "foo"; | 258 o.numberElected = "foo"; |
| 259 o.numberVotingFor = "foo"; | 259 o.numberVotingFor = "foo"; |
| 260 o.office = "foo"; | 260 o.office = "foo"; |
| 261 o.primaryParty = "foo"; | 261 o.primaryParty = "foo"; |
| 262 o.referendumSubtitle = "foo"; | 262 o.referendumSubtitle = "foo"; |
| 263 o.referendumTitle = "foo"; | 263 o.referendumTitle = "foo"; |
| 264 o.referendumUrl = "foo"; | 264 o.referendumUrl = "foo"; |
| 265 o.roles = buildUnnamed1040(); | 265 o.roles = buildUnnamed432(); |
| 266 o.sources = buildUnnamed1041(); | 266 o.sources = buildUnnamed433(); |
| 267 o.special = "foo"; | 267 o.special = "foo"; |
| 268 o.type = "foo"; | 268 o.type = "foo"; |
| 269 } | 269 } |
| 270 buildCounterContest--; | 270 buildCounterContest--; |
| 271 return o; | 271 return o; |
| 272 } | 272 } |
| 273 | 273 |
| 274 checkContest(api.Contest o) { | 274 checkContest(api.Contest o) { |
| 275 buildCounterContest++; | 275 buildCounterContest++; |
| 276 if (buildCounterContest < 3) { | 276 if (buildCounterContest < 3) { |
| 277 unittest.expect(o.ballotPlacement, unittest.equals('foo')); | 277 unittest.expect(o.ballotPlacement, unittest.equals('foo')); |
| 278 checkUnnamed1038(o.candidates); | 278 checkUnnamed430(o.candidates); |
| 279 checkElectoralDistrict(o.district); | 279 checkElectoralDistrict(o.district); |
| 280 unittest.expect(o.electorateSpecifications, unittest.equals('foo')); | 280 unittest.expect(o.electorateSpecifications, unittest.equals('foo')); |
| 281 unittest.expect(o.id, unittest.equals('foo')); | 281 unittest.expect(o.id, unittest.equals('foo')); |
| 282 checkUnnamed1039(o.level); | 282 checkUnnamed431(o.level); |
| 283 unittest.expect(o.numberElected, unittest.equals('foo')); | 283 unittest.expect(o.numberElected, unittest.equals('foo')); |
| 284 unittest.expect(o.numberVotingFor, unittest.equals('foo')); | 284 unittest.expect(o.numberVotingFor, unittest.equals('foo')); |
| 285 unittest.expect(o.office, unittest.equals('foo')); | 285 unittest.expect(o.office, unittest.equals('foo')); |
| 286 unittest.expect(o.primaryParty, unittest.equals('foo')); | 286 unittest.expect(o.primaryParty, unittest.equals('foo')); |
| 287 unittest.expect(o.referendumSubtitle, unittest.equals('foo')); | 287 unittest.expect(o.referendumSubtitle, unittest.equals('foo')); |
| 288 unittest.expect(o.referendumTitle, unittest.equals('foo')); | 288 unittest.expect(o.referendumTitle, unittest.equals('foo')); |
| 289 unittest.expect(o.referendumUrl, unittest.equals('foo')); | 289 unittest.expect(o.referendumUrl, unittest.equals('foo')); |
| 290 checkUnnamed1040(o.roles); | 290 checkUnnamed432(o.roles); |
| 291 checkUnnamed1041(o.sources); | 291 checkUnnamed433(o.sources); |
| 292 unittest.expect(o.special, unittest.equals('foo')); | 292 unittest.expect(o.special, unittest.equals('foo')); |
| 293 unittest.expect(o.type, unittest.equals('foo')); | 293 unittest.expect(o.type, unittest.equals('foo')); |
| 294 } | 294 } |
| 295 buildCounterContest--; | 295 buildCounterContest--; |
| 296 } | 296 } |
| 297 | 297 |
| 298 buildUnnamed1042() { | 298 buildUnnamed434() { |
| 299 var o = new core.List<api.DivisionSearchResult>(); | 299 var o = new core.List<api.DivisionSearchResult>(); |
| 300 o.add(buildDivisionSearchResult()); | 300 o.add(buildDivisionSearchResult()); |
| 301 o.add(buildDivisionSearchResult()); | 301 o.add(buildDivisionSearchResult()); |
| 302 return o; | 302 return o; |
| 303 } | 303 } |
| 304 | 304 |
| 305 checkUnnamed1042(core.List<api.DivisionSearchResult> o) { | 305 checkUnnamed434(core.List<api.DivisionSearchResult> o) { |
| 306 unittest.expect(o, unittest.hasLength(2)); | 306 unittest.expect(o, unittest.hasLength(2)); |
| 307 checkDivisionSearchResult(o[0]); | 307 checkDivisionSearchResult(o[0]); |
| 308 checkDivisionSearchResult(o[1]); | 308 checkDivisionSearchResult(o[1]); |
| 309 } | 309 } |
| 310 | 310 |
| 311 core.int buildCounterDivisionSearchResponse = 0; | 311 core.int buildCounterDivisionSearchResponse = 0; |
| 312 buildDivisionSearchResponse() { | 312 buildDivisionSearchResponse() { |
| 313 var o = new api.DivisionSearchResponse(); | 313 var o = new api.DivisionSearchResponse(); |
| 314 buildCounterDivisionSearchResponse++; | 314 buildCounterDivisionSearchResponse++; |
| 315 if (buildCounterDivisionSearchResponse < 3) { | 315 if (buildCounterDivisionSearchResponse < 3) { |
| 316 o.kind = "foo"; | 316 o.kind = "foo"; |
| 317 o.results = buildUnnamed1042(); | 317 o.results = buildUnnamed434(); |
| 318 } | 318 } |
| 319 buildCounterDivisionSearchResponse--; | 319 buildCounterDivisionSearchResponse--; |
| 320 return o; | 320 return o; |
| 321 } | 321 } |
| 322 | 322 |
| 323 checkDivisionSearchResponse(api.DivisionSearchResponse o) { | 323 checkDivisionSearchResponse(api.DivisionSearchResponse o) { |
| 324 buildCounterDivisionSearchResponse++; | 324 buildCounterDivisionSearchResponse++; |
| 325 if (buildCounterDivisionSearchResponse < 3) { | 325 if (buildCounterDivisionSearchResponse < 3) { |
| 326 unittest.expect(o.kind, unittest.equals('foo')); | 326 unittest.expect(o.kind, unittest.equals('foo')); |
| 327 checkUnnamed1042(o.results); | 327 checkUnnamed434(o.results); |
| 328 } | 328 } |
| 329 buildCounterDivisionSearchResponse--; | 329 buildCounterDivisionSearchResponse--; |
| 330 } | 330 } |
| 331 | 331 |
| 332 buildUnnamed1043() { | 332 buildUnnamed435() { |
| 333 var o = new core.List<core.String>(); | 333 var o = new core.List<core.String>(); |
| 334 o.add("foo"); | 334 o.add("foo"); |
| 335 o.add("foo"); | 335 o.add("foo"); |
| 336 return o; | 336 return o; |
| 337 } | 337 } |
| 338 | 338 |
| 339 checkUnnamed1043(core.List<core.String> o) { | 339 checkUnnamed435(core.List<core.String> o) { |
| 340 unittest.expect(o, unittest.hasLength(2)); | 340 unittest.expect(o, unittest.hasLength(2)); |
| 341 unittest.expect(o[0], unittest.equals('foo')); | 341 unittest.expect(o[0], unittest.equals('foo')); |
| 342 unittest.expect(o[1], unittest.equals('foo')); | 342 unittest.expect(o[1], unittest.equals('foo')); |
| 343 } | 343 } |
| 344 | 344 |
| 345 core.int buildCounterDivisionSearchResult = 0; | 345 core.int buildCounterDivisionSearchResult = 0; |
| 346 buildDivisionSearchResult() { | 346 buildDivisionSearchResult() { |
| 347 var o = new api.DivisionSearchResult(); | 347 var o = new api.DivisionSearchResult(); |
| 348 buildCounterDivisionSearchResult++; | 348 buildCounterDivisionSearchResult++; |
| 349 if (buildCounterDivisionSearchResult < 3) { | 349 if (buildCounterDivisionSearchResult < 3) { |
| 350 o.aliases = buildUnnamed1043(); | 350 o.aliases = buildUnnamed435(); |
| 351 o.name = "foo"; | 351 o.name = "foo"; |
| 352 o.ocdId = "foo"; | 352 o.ocdId = "foo"; |
| 353 } | 353 } |
| 354 buildCounterDivisionSearchResult--; | 354 buildCounterDivisionSearchResult--; |
| 355 return o; | 355 return o; |
| 356 } | 356 } |
| 357 | 357 |
| 358 checkDivisionSearchResult(api.DivisionSearchResult o) { | 358 checkDivisionSearchResult(api.DivisionSearchResult o) { |
| 359 buildCounterDivisionSearchResult++; | 359 buildCounterDivisionSearchResult++; |
| 360 if (buildCounterDivisionSearchResult < 3) { | 360 if (buildCounterDivisionSearchResult < 3) { |
| 361 checkUnnamed1043(o.aliases); | 361 checkUnnamed435(o.aliases); |
| 362 unittest.expect(o.name, unittest.equals('foo')); | 362 unittest.expect(o.name, unittest.equals('foo')); |
| 363 unittest.expect(o.ocdId, unittest.equals('foo')); | 363 unittest.expect(o.ocdId, unittest.equals('foo')); |
| 364 } | 364 } |
| 365 buildCounterDivisionSearchResult--; | 365 buildCounterDivisionSearchResult--; |
| 366 } | 366 } |
| 367 | 367 |
| 368 core.int buildCounterElection = 0; | 368 core.int buildCounterElection = 0; |
| 369 buildElection() { | 369 buildElection() { |
| 370 var o = new api.Election(); | 370 var o = new api.Election(); |
| 371 buildCounterElection++; | 371 buildCounterElection++; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 if (buildCounterElectionOfficial < 3) { | 408 if (buildCounterElectionOfficial < 3) { |
| 409 unittest.expect(o.emailAddress, unittest.equals('foo')); | 409 unittest.expect(o.emailAddress, unittest.equals('foo')); |
| 410 unittest.expect(o.faxNumber, unittest.equals('foo')); | 410 unittest.expect(o.faxNumber, unittest.equals('foo')); |
| 411 unittest.expect(o.name, unittest.equals('foo')); | 411 unittest.expect(o.name, unittest.equals('foo')); |
| 412 unittest.expect(o.officePhoneNumber, unittest.equals('foo')); | 412 unittest.expect(o.officePhoneNumber, unittest.equals('foo')); |
| 413 unittest.expect(o.title, unittest.equals('foo')); | 413 unittest.expect(o.title, unittest.equals('foo')); |
| 414 } | 414 } |
| 415 buildCounterElectionOfficial--; | 415 buildCounterElectionOfficial--; |
| 416 } | 416 } |
| 417 | 417 |
| 418 buildUnnamed1044() { | 418 buildUnnamed436() { |
| 419 var o = new core.List<api.Election>(); | 419 var o = new core.List<api.Election>(); |
| 420 o.add(buildElection()); | 420 o.add(buildElection()); |
| 421 o.add(buildElection()); | 421 o.add(buildElection()); |
| 422 return o; | 422 return o; |
| 423 } | 423 } |
| 424 | 424 |
| 425 checkUnnamed1044(core.List<api.Election> o) { | 425 checkUnnamed436(core.List<api.Election> o) { |
| 426 unittest.expect(o, unittest.hasLength(2)); | 426 unittest.expect(o, unittest.hasLength(2)); |
| 427 checkElection(o[0]); | 427 checkElection(o[0]); |
| 428 checkElection(o[1]); | 428 checkElection(o[1]); |
| 429 } | 429 } |
| 430 | 430 |
| 431 core.int buildCounterElectionsQueryResponse = 0; | 431 core.int buildCounterElectionsQueryResponse = 0; |
| 432 buildElectionsQueryResponse() { | 432 buildElectionsQueryResponse() { |
| 433 var o = new api.ElectionsQueryResponse(); | 433 var o = new api.ElectionsQueryResponse(); |
| 434 buildCounterElectionsQueryResponse++; | 434 buildCounterElectionsQueryResponse++; |
| 435 if (buildCounterElectionsQueryResponse < 3) { | 435 if (buildCounterElectionsQueryResponse < 3) { |
| 436 o.elections = buildUnnamed1044(); | 436 o.elections = buildUnnamed436(); |
| 437 o.kind = "foo"; | 437 o.kind = "foo"; |
| 438 } | 438 } |
| 439 buildCounterElectionsQueryResponse--; | 439 buildCounterElectionsQueryResponse--; |
| 440 return o; | 440 return o; |
| 441 } | 441 } |
| 442 | 442 |
| 443 checkElectionsQueryResponse(api.ElectionsQueryResponse o) { | 443 checkElectionsQueryResponse(api.ElectionsQueryResponse o) { |
| 444 buildCounterElectionsQueryResponse++; | 444 buildCounterElectionsQueryResponse++; |
| 445 if (buildCounterElectionsQueryResponse < 3) { | 445 if (buildCounterElectionsQueryResponse < 3) { |
| 446 checkUnnamed1044(o.elections); | 446 checkUnnamed436(o.elections); |
| 447 unittest.expect(o.kind, unittest.equals('foo')); | 447 unittest.expect(o.kind, unittest.equals('foo')); |
| 448 } | 448 } |
| 449 buildCounterElectionsQueryResponse--; | 449 buildCounterElectionsQueryResponse--; |
| 450 } | 450 } |
| 451 | 451 |
| 452 core.int buildCounterElectoralDistrict = 0; | 452 core.int buildCounterElectoralDistrict = 0; |
| 453 buildElectoralDistrict() { | 453 buildElectoralDistrict() { |
| 454 var o = new api.ElectoralDistrict(); | 454 var o = new api.ElectoralDistrict(); |
| 455 buildCounterElectoralDistrict++; | 455 buildCounterElectoralDistrict++; |
| 456 if (buildCounterElectoralDistrict < 3) { | 456 if (buildCounterElectoralDistrict < 3) { |
| 457 o.id = "foo"; | 457 o.id = "foo"; |
| 458 o.name = "foo"; | 458 o.name = "foo"; |
| 459 o.scope = "foo"; | 459 o.scope = "foo"; |
| 460 } | 460 } |
| 461 buildCounterElectoralDistrict--; | 461 buildCounterElectoralDistrict--; |
| 462 return o; | 462 return o; |
| 463 } | 463 } |
| 464 | 464 |
| 465 checkElectoralDistrict(api.ElectoralDistrict o) { | 465 checkElectoralDistrict(api.ElectoralDistrict o) { |
| 466 buildCounterElectoralDistrict++; | 466 buildCounterElectoralDistrict++; |
| 467 if (buildCounterElectoralDistrict < 3) { | 467 if (buildCounterElectoralDistrict < 3) { |
| 468 unittest.expect(o.id, unittest.equals('foo')); | 468 unittest.expect(o.id, unittest.equals('foo')); |
| 469 unittest.expect(o.name, unittest.equals('foo')); | 469 unittest.expect(o.name, unittest.equals('foo')); |
| 470 unittest.expect(o.scope, unittest.equals('foo')); | 470 unittest.expect(o.scope, unittest.equals('foo')); |
| 471 } | 471 } |
| 472 buildCounterElectoralDistrict--; | 472 buildCounterElectoralDistrict--; |
| 473 } | 473 } |
| 474 | 474 |
| 475 buildUnnamed1045() { | 475 buildUnnamed437() { |
| 476 var o = new core.List<core.String>(); | 476 var o = new core.List<core.String>(); |
| 477 o.add("foo"); | 477 o.add("foo"); |
| 478 o.add("foo"); | 478 o.add("foo"); |
| 479 return o; | 479 return o; |
| 480 } | 480 } |
| 481 | 481 |
| 482 checkUnnamed1045(core.List<core.String> o) { | 482 checkUnnamed437(core.List<core.String> o) { |
| 483 unittest.expect(o, unittest.hasLength(2)); | 483 unittest.expect(o, unittest.hasLength(2)); |
| 484 unittest.expect(o[0], unittest.equals('foo')); | 484 unittest.expect(o[0], unittest.equals('foo')); |
| 485 unittest.expect(o[1], unittest.equals('foo')); | 485 unittest.expect(o[1], unittest.equals('foo')); |
| 486 } | 486 } |
| 487 | 487 |
| 488 buildUnnamed1046() { | 488 buildUnnamed438() { |
| 489 var o = new core.List<core.int>(); | 489 var o = new core.List<core.int>(); |
| 490 o.add(42); | 490 o.add(42); |
| 491 o.add(42); | 491 o.add(42); |
| 492 return o; | 492 return o; |
| 493 } | 493 } |
| 494 | 494 |
| 495 checkUnnamed1046(core.List<core.int> o) { | 495 checkUnnamed438(core.List<core.int> o) { |
| 496 unittest.expect(o, unittest.hasLength(2)); | 496 unittest.expect(o, unittest.hasLength(2)); |
| 497 unittest.expect(o[0], unittest.equals(42)); | 497 unittest.expect(o[0], unittest.equals(42)); |
| 498 unittest.expect(o[1], unittest.equals(42)); | 498 unittest.expect(o[1], unittest.equals(42)); |
| 499 } | 499 } |
| 500 | 500 |
| 501 core.int buildCounterGeographicDivision = 0; | 501 core.int buildCounterGeographicDivision = 0; |
| 502 buildGeographicDivision() { | 502 buildGeographicDivision() { |
| 503 var o = new api.GeographicDivision(); | 503 var o = new api.GeographicDivision(); |
| 504 buildCounterGeographicDivision++; | 504 buildCounterGeographicDivision++; |
| 505 if (buildCounterGeographicDivision < 3) { | 505 if (buildCounterGeographicDivision < 3) { |
| 506 o.alsoKnownAs = buildUnnamed1045(); | 506 o.alsoKnownAs = buildUnnamed437(); |
| 507 o.name = "foo"; | 507 o.name = "foo"; |
| 508 o.officeIndices = buildUnnamed1046(); | 508 o.officeIndices = buildUnnamed438(); |
| 509 } | 509 } |
| 510 buildCounterGeographicDivision--; | 510 buildCounterGeographicDivision--; |
| 511 return o; | 511 return o; |
| 512 } | 512 } |
| 513 | 513 |
| 514 checkGeographicDivision(api.GeographicDivision o) { | 514 checkGeographicDivision(api.GeographicDivision o) { |
| 515 buildCounterGeographicDivision++; | 515 buildCounterGeographicDivision++; |
| 516 if (buildCounterGeographicDivision < 3) { | 516 if (buildCounterGeographicDivision < 3) { |
| 517 checkUnnamed1045(o.alsoKnownAs); | 517 checkUnnamed437(o.alsoKnownAs); |
| 518 unittest.expect(o.name, unittest.equals('foo')); | 518 unittest.expect(o.name, unittest.equals('foo')); |
| 519 checkUnnamed1046(o.officeIndices); | 519 checkUnnamed438(o.officeIndices); |
| 520 } | 520 } |
| 521 buildCounterGeographicDivision--; | 521 buildCounterGeographicDivision--; |
| 522 } | 522 } |
| 523 | 523 |
| 524 buildUnnamed1047() { | 524 buildUnnamed439() { |
| 525 var o = new core.List<core.String>(); | 525 var o = new core.List<core.String>(); |
| 526 o.add("foo"); | 526 o.add("foo"); |
| 527 o.add("foo"); | 527 o.add("foo"); |
| 528 return o; | 528 return o; |
| 529 } | 529 } |
| 530 | 530 |
| 531 checkUnnamed1047(core.List<core.String> o) { | 531 checkUnnamed439(core.List<core.String> o) { |
| 532 unittest.expect(o, unittest.hasLength(2)); | 532 unittest.expect(o, unittest.hasLength(2)); |
| 533 unittest.expect(o[0], unittest.equals('foo')); | 533 unittest.expect(o[0], unittest.equals('foo')); |
| 534 unittest.expect(o[1], unittest.equals('foo')); | 534 unittest.expect(o[1], unittest.equals('foo')); |
| 535 } | 535 } |
| 536 | 536 |
| 537 buildUnnamed1048() { | 537 buildUnnamed440() { |
| 538 var o = new core.List<core.int>(); | 538 var o = new core.List<core.int>(); |
| 539 o.add(42); | 539 o.add(42); |
| 540 o.add(42); | 540 o.add(42); |
| 541 return o; | 541 return o; |
| 542 } | 542 } |
| 543 | 543 |
| 544 checkUnnamed1048(core.List<core.int> o) { | 544 checkUnnamed440(core.List<core.int> o) { |
| 545 unittest.expect(o, unittest.hasLength(2)); | 545 unittest.expect(o, unittest.hasLength(2)); |
| 546 unittest.expect(o[0], unittest.equals(42)); | 546 unittest.expect(o[0], unittest.equals(42)); |
| 547 unittest.expect(o[1], unittest.equals(42)); | 547 unittest.expect(o[1], unittest.equals(42)); |
| 548 } | 548 } |
| 549 | 549 |
| 550 buildUnnamed1049() { | 550 buildUnnamed441() { |
| 551 var o = new core.List<core.String>(); | 551 var o = new core.List<core.String>(); |
| 552 o.add("foo"); | 552 o.add("foo"); |
| 553 o.add("foo"); | 553 o.add("foo"); |
| 554 return o; | 554 return o; |
| 555 } | 555 } |
| 556 | 556 |
| 557 checkUnnamed1049(core.List<core.String> o) { | 557 checkUnnamed441(core.List<core.String> o) { |
| 558 unittest.expect(o, unittest.hasLength(2)); | 558 unittest.expect(o, unittest.hasLength(2)); |
| 559 unittest.expect(o[0], unittest.equals('foo')); | 559 unittest.expect(o[0], unittest.equals('foo')); |
| 560 unittest.expect(o[1], unittest.equals('foo')); | 560 unittest.expect(o[1], unittest.equals('foo')); |
| 561 } | 561 } |
| 562 | 562 |
| 563 buildUnnamed1050() { | 563 buildUnnamed442() { |
| 564 var o = new core.List<api.Source>(); | 564 var o = new core.List<api.Source>(); |
| 565 o.add(buildSource()); | 565 o.add(buildSource()); |
| 566 o.add(buildSource()); | 566 o.add(buildSource()); |
| 567 return o; | 567 return o; |
| 568 } | 568 } |
| 569 | 569 |
| 570 checkUnnamed1050(core.List<api.Source> o) { | 570 checkUnnamed442(core.List<api.Source> o) { |
| 571 unittest.expect(o, unittest.hasLength(2)); | 571 unittest.expect(o, unittest.hasLength(2)); |
| 572 checkSource(o[0]); | 572 checkSource(o[0]); |
| 573 checkSource(o[1]); | 573 checkSource(o[1]); |
| 574 } | 574 } |
| 575 | 575 |
| 576 core.int buildCounterOffice = 0; | 576 core.int buildCounterOffice = 0; |
| 577 buildOffice() { | 577 buildOffice() { |
| 578 var o = new api.Office(); | 578 var o = new api.Office(); |
| 579 buildCounterOffice++; | 579 buildCounterOffice++; |
| 580 if (buildCounterOffice < 3) { | 580 if (buildCounterOffice < 3) { |
| 581 o.divisionId = "foo"; | 581 o.divisionId = "foo"; |
| 582 o.levels = buildUnnamed1047(); | 582 o.levels = buildUnnamed439(); |
| 583 o.name = "foo"; | 583 o.name = "foo"; |
| 584 o.officialIndices = buildUnnamed1048(); | 584 o.officialIndices = buildUnnamed440(); |
| 585 o.roles = buildUnnamed1049(); | 585 o.roles = buildUnnamed441(); |
| 586 o.sources = buildUnnamed1050(); | 586 o.sources = buildUnnamed442(); |
| 587 } | 587 } |
| 588 buildCounterOffice--; | 588 buildCounterOffice--; |
| 589 return o; | 589 return o; |
| 590 } | 590 } |
| 591 | 591 |
| 592 checkOffice(api.Office o) { | 592 checkOffice(api.Office o) { |
| 593 buildCounterOffice++; | 593 buildCounterOffice++; |
| 594 if (buildCounterOffice < 3) { | 594 if (buildCounterOffice < 3) { |
| 595 unittest.expect(o.divisionId, unittest.equals('foo')); | 595 unittest.expect(o.divisionId, unittest.equals('foo')); |
| 596 checkUnnamed1047(o.levels); | 596 checkUnnamed439(o.levels); |
| 597 unittest.expect(o.name, unittest.equals('foo')); | 597 unittest.expect(o.name, unittest.equals('foo')); |
| 598 checkUnnamed1048(o.officialIndices); | 598 checkUnnamed440(o.officialIndices); |
| 599 checkUnnamed1049(o.roles); | 599 checkUnnamed441(o.roles); |
| 600 checkUnnamed1050(o.sources); | 600 checkUnnamed442(o.sources); |
| 601 } | 601 } |
| 602 buildCounterOffice--; | 602 buildCounterOffice--; |
| 603 } | 603 } |
| 604 | 604 |
| 605 buildUnnamed1051() { | 605 buildUnnamed443() { |
| 606 var o = new core.List<api.SimpleAddressType>(); | 606 var o = new core.List<api.SimpleAddressType>(); |
| 607 o.add(buildSimpleAddressType()); | 607 o.add(buildSimpleAddressType()); |
| 608 o.add(buildSimpleAddressType()); | 608 o.add(buildSimpleAddressType()); |
| 609 return o; | 609 return o; |
| 610 } | 610 } |
| 611 | 611 |
| 612 checkUnnamed1051(core.List<api.SimpleAddressType> o) { | 612 checkUnnamed443(core.List<api.SimpleAddressType> o) { |
| 613 unittest.expect(o, unittest.hasLength(2)); | 613 unittest.expect(o, unittest.hasLength(2)); |
| 614 checkSimpleAddressType(o[0]); | 614 checkSimpleAddressType(o[0]); |
| 615 checkSimpleAddressType(o[1]); | 615 checkSimpleAddressType(o[1]); |
| 616 } | 616 } |
| 617 | 617 |
| 618 buildUnnamed1052() { | 618 buildUnnamed444() { |
| 619 var o = new core.List<api.Channel>(); | 619 var o = new core.List<api.Channel>(); |
| 620 o.add(buildChannel()); | 620 o.add(buildChannel()); |
| 621 o.add(buildChannel()); | 621 o.add(buildChannel()); |
| 622 return o; | 622 return o; |
| 623 } | 623 } |
| 624 | 624 |
| 625 checkUnnamed1052(core.List<api.Channel> o) { | 625 checkUnnamed444(core.List<api.Channel> o) { |
| 626 unittest.expect(o, unittest.hasLength(2)); | 626 unittest.expect(o, unittest.hasLength(2)); |
| 627 checkChannel(o[0]); | 627 checkChannel(o[0]); |
| 628 checkChannel(o[1]); | 628 checkChannel(o[1]); |
| 629 } | 629 } |
| 630 | 630 |
| 631 buildUnnamed1053() { | 631 buildUnnamed445() { |
| 632 var o = new core.List<core.String>(); | 632 var o = new core.List<core.String>(); |
| 633 o.add("foo"); | 633 o.add("foo"); |
| 634 o.add("foo"); | 634 o.add("foo"); |
| 635 return o; | 635 return o; |
| 636 } | 636 } |
| 637 | 637 |
| 638 checkUnnamed1053(core.List<core.String> o) { | 638 checkUnnamed445(core.List<core.String> o) { |
| 639 unittest.expect(o, unittest.hasLength(2)); | 639 unittest.expect(o, unittest.hasLength(2)); |
| 640 unittest.expect(o[0], unittest.equals('foo')); | 640 unittest.expect(o[0], unittest.equals('foo')); |
| 641 unittest.expect(o[1], unittest.equals('foo')); | 641 unittest.expect(o[1], unittest.equals('foo')); |
| 642 } | 642 } |
| 643 | 643 |
| 644 buildUnnamed1054() { | 644 buildUnnamed446() { |
| 645 var o = new core.List<core.String>(); | 645 var o = new core.List<core.String>(); |
| 646 o.add("foo"); | 646 o.add("foo"); |
| 647 o.add("foo"); | 647 o.add("foo"); |
| 648 return o; | 648 return o; |
| 649 } | 649 } |
| 650 | 650 |
| 651 checkUnnamed1054(core.List<core.String> o) { | 651 checkUnnamed446(core.List<core.String> o) { |
| 652 unittest.expect(o, unittest.hasLength(2)); | 652 unittest.expect(o, unittest.hasLength(2)); |
| 653 unittest.expect(o[0], unittest.equals('foo')); | 653 unittest.expect(o[0], unittest.equals('foo')); |
| 654 unittest.expect(o[1], unittest.equals('foo')); | 654 unittest.expect(o[1], unittest.equals('foo')); |
| 655 } | 655 } |
| 656 | 656 |
| 657 buildUnnamed1055() { | 657 buildUnnamed447() { |
| 658 var o = new core.List<core.String>(); | 658 var o = new core.List<core.String>(); |
| 659 o.add("foo"); | 659 o.add("foo"); |
| 660 o.add("foo"); | 660 o.add("foo"); |
| 661 return o; | 661 return o; |
| 662 } | 662 } |
| 663 | 663 |
| 664 checkUnnamed1055(core.List<core.String> o) { | 664 checkUnnamed447(core.List<core.String> o) { |
| 665 unittest.expect(o, unittest.hasLength(2)); | 665 unittest.expect(o, unittest.hasLength(2)); |
| 666 unittest.expect(o[0], unittest.equals('foo')); | 666 unittest.expect(o[0], unittest.equals('foo')); |
| 667 unittest.expect(o[1], unittest.equals('foo')); | 667 unittest.expect(o[1], unittest.equals('foo')); |
| 668 } | 668 } |
| 669 | 669 |
| 670 core.int buildCounterOfficial = 0; | 670 core.int buildCounterOfficial = 0; |
| 671 buildOfficial() { | 671 buildOfficial() { |
| 672 var o = new api.Official(); | 672 var o = new api.Official(); |
| 673 buildCounterOfficial++; | 673 buildCounterOfficial++; |
| 674 if (buildCounterOfficial < 3) { | 674 if (buildCounterOfficial < 3) { |
| 675 o.address = buildUnnamed1051(); | 675 o.address = buildUnnamed443(); |
| 676 o.channels = buildUnnamed1052(); | 676 o.channels = buildUnnamed444(); |
| 677 o.emails = buildUnnamed1053(); | 677 o.emails = buildUnnamed445(); |
| 678 o.name = "foo"; | 678 o.name = "foo"; |
| 679 o.party = "foo"; | 679 o.party = "foo"; |
| 680 o.phones = buildUnnamed1054(); | 680 o.phones = buildUnnamed446(); |
| 681 o.photoUrl = "foo"; | 681 o.photoUrl = "foo"; |
| 682 o.urls = buildUnnamed1055(); | 682 o.urls = buildUnnamed447(); |
| 683 } | 683 } |
| 684 buildCounterOfficial--; | 684 buildCounterOfficial--; |
| 685 return o; | 685 return o; |
| 686 } | 686 } |
| 687 | 687 |
| 688 checkOfficial(api.Official o) { | 688 checkOfficial(api.Official o) { |
| 689 buildCounterOfficial++; | 689 buildCounterOfficial++; |
| 690 if (buildCounterOfficial < 3) { | 690 if (buildCounterOfficial < 3) { |
| 691 checkUnnamed1051(o.address); | 691 checkUnnamed443(o.address); |
| 692 checkUnnamed1052(o.channels); | 692 checkUnnamed444(o.channels); |
| 693 checkUnnamed1053(o.emails); | 693 checkUnnamed445(o.emails); |
| 694 unittest.expect(o.name, unittest.equals('foo')); | 694 unittest.expect(o.name, unittest.equals('foo')); |
| 695 unittest.expect(o.party, unittest.equals('foo')); | 695 unittest.expect(o.party, unittest.equals('foo')); |
| 696 checkUnnamed1054(o.phones); | 696 checkUnnamed446(o.phones); |
| 697 unittest.expect(o.photoUrl, unittest.equals('foo')); | 697 unittest.expect(o.photoUrl, unittest.equals('foo')); |
| 698 checkUnnamed1055(o.urls); | 698 checkUnnamed447(o.urls); |
| 699 } | 699 } |
| 700 buildCounterOfficial--; | 700 buildCounterOfficial--; |
| 701 } | 701 } |
| 702 | 702 |
| 703 buildUnnamed1056() { | 703 buildUnnamed448() { |
| 704 var o = new core.List<api.Source>(); | 704 var o = new core.List<api.Source>(); |
| 705 o.add(buildSource()); | 705 o.add(buildSource()); |
| 706 o.add(buildSource()); | 706 o.add(buildSource()); |
| 707 return o; | 707 return o; |
| 708 } | 708 } |
| 709 | 709 |
| 710 checkUnnamed1056(core.List<api.Source> o) { | 710 checkUnnamed448(core.List<api.Source> o) { |
| 711 unittest.expect(o, unittest.hasLength(2)); | 711 unittest.expect(o, unittest.hasLength(2)); |
| 712 checkSource(o[0]); | 712 checkSource(o[0]); |
| 713 checkSource(o[1]); | 713 checkSource(o[1]); |
| 714 } | 714 } |
| 715 | 715 |
| 716 core.int buildCounterPollingLocation = 0; | 716 core.int buildCounterPollingLocation = 0; |
| 717 buildPollingLocation() { | 717 buildPollingLocation() { |
| 718 var o = new api.PollingLocation(); | 718 var o = new api.PollingLocation(); |
| 719 buildCounterPollingLocation++; | 719 buildCounterPollingLocation++; |
| 720 if (buildCounterPollingLocation < 3) { | 720 if (buildCounterPollingLocation < 3) { |
| 721 o.address = buildSimpleAddressType(); | 721 o.address = buildSimpleAddressType(); |
| 722 o.endDate = "foo"; | 722 o.endDate = "foo"; |
| 723 o.id = "foo"; | 723 o.id = "foo"; |
| 724 o.name = "foo"; | 724 o.name = "foo"; |
| 725 o.notes = "foo"; | 725 o.notes = "foo"; |
| 726 o.pollingHours = "foo"; | 726 o.pollingHours = "foo"; |
| 727 o.sources = buildUnnamed1056(); | 727 o.sources = buildUnnamed448(); |
| 728 o.startDate = "foo"; | 728 o.startDate = "foo"; |
| 729 o.voterServices = "foo"; | 729 o.voterServices = "foo"; |
| 730 } | 730 } |
| 731 buildCounterPollingLocation--; | 731 buildCounterPollingLocation--; |
| 732 return o; | 732 return o; |
| 733 } | 733 } |
| 734 | 734 |
| 735 checkPollingLocation(api.PollingLocation o) { | 735 checkPollingLocation(api.PollingLocation o) { |
| 736 buildCounterPollingLocation++; | 736 buildCounterPollingLocation++; |
| 737 if (buildCounterPollingLocation < 3) { | 737 if (buildCounterPollingLocation < 3) { |
| 738 checkSimpleAddressType(o.address); | 738 checkSimpleAddressType(o.address); |
| 739 unittest.expect(o.endDate, unittest.equals('foo')); | 739 unittest.expect(o.endDate, unittest.equals('foo')); |
| 740 unittest.expect(o.id, unittest.equals('foo')); | 740 unittest.expect(o.id, unittest.equals('foo')); |
| 741 unittest.expect(o.name, unittest.equals('foo')); | 741 unittest.expect(o.name, unittest.equals('foo')); |
| 742 unittest.expect(o.notes, unittest.equals('foo')); | 742 unittest.expect(o.notes, unittest.equals('foo')); |
| 743 unittest.expect(o.pollingHours, unittest.equals('foo')); | 743 unittest.expect(o.pollingHours, unittest.equals('foo')); |
| 744 checkUnnamed1056(o.sources); | 744 checkUnnamed448(o.sources); |
| 745 unittest.expect(o.startDate, unittest.equals('foo')); | 745 unittest.expect(o.startDate, unittest.equals('foo')); |
| 746 unittest.expect(o.voterServices, unittest.equals('foo')); | 746 unittest.expect(o.voterServices, unittest.equals('foo')); |
| 747 } | 747 } |
| 748 buildCounterPollingLocation--; | 748 buildCounterPollingLocation--; |
| 749 } | 749 } |
| 750 | 750 |
| 751 buildUnnamed1057() { | 751 buildUnnamed449() { |
| 752 var o = new core.Map<core.String, api.GeographicDivision>(); | 752 var o = new core.Map<core.String, api.GeographicDivision>(); |
| 753 o["x"] = buildGeographicDivision(); | 753 o["x"] = buildGeographicDivision(); |
| 754 o["y"] = buildGeographicDivision(); | 754 o["y"] = buildGeographicDivision(); |
| 755 return o; | 755 return o; |
| 756 } | 756 } |
| 757 | 757 |
| 758 checkUnnamed1057(core.Map<core.String, api.GeographicDivision> o) { | 758 checkUnnamed449(core.Map<core.String, api.GeographicDivision> o) { |
| 759 unittest.expect(o, unittest.hasLength(2)); | 759 unittest.expect(o, unittest.hasLength(2)); |
| 760 checkGeographicDivision(o["x"]); | 760 checkGeographicDivision(o["x"]); |
| 761 checkGeographicDivision(o["y"]); | 761 checkGeographicDivision(o["y"]); |
| 762 } | 762 } |
| 763 | 763 |
| 764 buildUnnamed1058() { | 764 buildUnnamed450() { |
| 765 var o = new core.List<api.Office>(); | 765 var o = new core.List<api.Office>(); |
| 766 o.add(buildOffice()); | 766 o.add(buildOffice()); |
| 767 o.add(buildOffice()); | 767 o.add(buildOffice()); |
| 768 return o; | 768 return o; |
| 769 } | 769 } |
| 770 | 770 |
| 771 checkUnnamed1058(core.List<api.Office> o) { | 771 checkUnnamed450(core.List<api.Office> o) { |
| 772 unittest.expect(o, unittest.hasLength(2)); | 772 unittest.expect(o, unittest.hasLength(2)); |
| 773 checkOffice(o[0]); | 773 checkOffice(o[0]); |
| 774 checkOffice(o[1]); | 774 checkOffice(o[1]); |
| 775 } | 775 } |
| 776 | 776 |
| 777 buildUnnamed1059() { | 777 buildUnnamed451() { |
| 778 var o = new core.List<api.Official>(); | 778 var o = new core.List<api.Official>(); |
| 779 o.add(buildOfficial()); | 779 o.add(buildOfficial()); |
| 780 o.add(buildOfficial()); | 780 o.add(buildOfficial()); |
| 781 return o; | 781 return o; |
| 782 } | 782 } |
| 783 | 783 |
| 784 checkUnnamed1059(core.List<api.Official> o) { | 784 checkUnnamed451(core.List<api.Official> o) { |
| 785 unittest.expect(o, unittest.hasLength(2)); | 785 unittest.expect(o, unittest.hasLength(2)); |
| 786 checkOfficial(o[0]); | 786 checkOfficial(o[0]); |
| 787 checkOfficial(o[1]); | 787 checkOfficial(o[1]); |
| 788 } | 788 } |
| 789 | 789 |
| 790 core.int buildCounterRepresentativeInfoData = 0; | 790 core.int buildCounterRepresentativeInfoData = 0; |
| 791 buildRepresentativeInfoData() { | 791 buildRepresentativeInfoData() { |
| 792 var o = new api.RepresentativeInfoData(); | 792 var o = new api.RepresentativeInfoData(); |
| 793 buildCounterRepresentativeInfoData++; | 793 buildCounterRepresentativeInfoData++; |
| 794 if (buildCounterRepresentativeInfoData < 3) { | 794 if (buildCounterRepresentativeInfoData < 3) { |
| 795 o.divisions = buildUnnamed1057(); | 795 o.divisions = buildUnnamed449(); |
| 796 o.offices = buildUnnamed1058(); | 796 o.offices = buildUnnamed450(); |
| 797 o.officials = buildUnnamed1059(); | 797 o.officials = buildUnnamed451(); |
| 798 } | 798 } |
| 799 buildCounterRepresentativeInfoData--; | 799 buildCounterRepresentativeInfoData--; |
| 800 return o; | 800 return o; |
| 801 } | 801 } |
| 802 | 802 |
| 803 checkRepresentativeInfoData(api.RepresentativeInfoData o) { | 803 checkRepresentativeInfoData(api.RepresentativeInfoData o) { |
| 804 buildCounterRepresentativeInfoData++; | 804 buildCounterRepresentativeInfoData++; |
| 805 if (buildCounterRepresentativeInfoData < 3) { | 805 if (buildCounterRepresentativeInfoData < 3) { |
| 806 checkUnnamed1057(o.divisions); | 806 checkUnnamed449(o.divisions); |
| 807 checkUnnamed1058(o.offices); | 807 checkUnnamed450(o.offices); |
| 808 checkUnnamed1059(o.officials); | 808 checkUnnamed451(o.officials); |
| 809 } | 809 } |
| 810 buildCounterRepresentativeInfoData--; | 810 buildCounterRepresentativeInfoData--; |
| 811 } | 811 } |
| 812 | 812 |
| 813 buildUnnamed1060() { | 813 buildUnnamed452() { |
| 814 var o = new core.Map<core.String, api.GeographicDivision>(); | 814 var o = new core.Map<core.String, api.GeographicDivision>(); |
| 815 o["x"] = buildGeographicDivision(); | 815 o["x"] = buildGeographicDivision(); |
| 816 o["y"] = buildGeographicDivision(); | 816 o["y"] = buildGeographicDivision(); |
| 817 return o; | 817 return o; |
| 818 } | 818 } |
| 819 | 819 |
| 820 checkUnnamed1060(core.Map<core.String, api.GeographicDivision> o) { | 820 checkUnnamed452(core.Map<core.String, api.GeographicDivision> o) { |
| 821 unittest.expect(o, unittest.hasLength(2)); | 821 unittest.expect(o, unittest.hasLength(2)); |
| 822 checkGeographicDivision(o["x"]); | 822 checkGeographicDivision(o["x"]); |
| 823 checkGeographicDivision(o["y"]); | 823 checkGeographicDivision(o["y"]); |
| 824 } | 824 } |
| 825 | 825 |
| 826 buildUnnamed1061() { | 826 buildUnnamed453() { |
| 827 var o = new core.List<api.Office>(); | 827 var o = new core.List<api.Office>(); |
| 828 o.add(buildOffice()); | 828 o.add(buildOffice()); |
| 829 o.add(buildOffice()); | 829 o.add(buildOffice()); |
| 830 return o; | 830 return o; |
| 831 } | 831 } |
| 832 | 832 |
| 833 checkUnnamed1061(core.List<api.Office> o) { | 833 checkUnnamed453(core.List<api.Office> o) { |
| 834 unittest.expect(o, unittest.hasLength(2)); | 834 unittest.expect(o, unittest.hasLength(2)); |
| 835 checkOffice(o[0]); | 835 checkOffice(o[0]); |
| 836 checkOffice(o[1]); | 836 checkOffice(o[1]); |
| 837 } | 837 } |
| 838 | 838 |
| 839 buildUnnamed1062() { | 839 buildUnnamed454() { |
| 840 var o = new core.List<api.Official>(); | 840 var o = new core.List<api.Official>(); |
| 841 o.add(buildOfficial()); | 841 o.add(buildOfficial()); |
| 842 o.add(buildOfficial()); | 842 o.add(buildOfficial()); |
| 843 return o; | 843 return o; |
| 844 } | 844 } |
| 845 | 845 |
| 846 checkUnnamed1062(core.List<api.Official> o) { | 846 checkUnnamed454(core.List<api.Official> o) { |
| 847 unittest.expect(o, unittest.hasLength(2)); | 847 unittest.expect(o, unittest.hasLength(2)); |
| 848 checkOfficial(o[0]); | 848 checkOfficial(o[0]); |
| 849 checkOfficial(o[1]); | 849 checkOfficial(o[1]); |
| 850 } | 850 } |
| 851 | 851 |
| 852 core.int buildCounterRepresentativeInfoResponse = 0; | 852 core.int buildCounterRepresentativeInfoResponse = 0; |
| 853 buildRepresentativeInfoResponse() { | 853 buildRepresentativeInfoResponse() { |
| 854 var o = new api.RepresentativeInfoResponse(); | 854 var o = new api.RepresentativeInfoResponse(); |
| 855 buildCounterRepresentativeInfoResponse++; | 855 buildCounterRepresentativeInfoResponse++; |
| 856 if (buildCounterRepresentativeInfoResponse < 3) { | 856 if (buildCounterRepresentativeInfoResponse < 3) { |
| 857 o.divisions = buildUnnamed1060(); | 857 o.divisions = buildUnnamed452(); |
| 858 o.kind = "foo"; | 858 o.kind = "foo"; |
| 859 o.normalizedInput = buildSimpleAddressType(); | 859 o.normalizedInput = buildSimpleAddressType(); |
| 860 o.offices = buildUnnamed1061(); | 860 o.offices = buildUnnamed453(); |
| 861 o.officials = buildUnnamed1062(); | 861 o.officials = buildUnnamed454(); |
| 862 } | 862 } |
| 863 buildCounterRepresentativeInfoResponse--; | 863 buildCounterRepresentativeInfoResponse--; |
| 864 return o; | 864 return o; |
| 865 } | 865 } |
| 866 | 866 |
| 867 checkRepresentativeInfoResponse(api.RepresentativeInfoResponse o) { | 867 checkRepresentativeInfoResponse(api.RepresentativeInfoResponse o) { |
| 868 buildCounterRepresentativeInfoResponse++; | 868 buildCounterRepresentativeInfoResponse++; |
| 869 if (buildCounterRepresentativeInfoResponse < 3) { | 869 if (buildCounterRepresentativeInfoResponse < 3) { |
| 870 checkUnnamed1060(o.divisions); | 870 checkUnnamed452(o.divisions); |
| 871 unittest.expect(o.kind, unittest.equals('foo')); | 871 unittest.expect(o.kind, unittest.equals('foo')); |
| 872 checkSimpleAddressType(o.normalizedInput); | 872 checkSimpleAddressType(o.normalizedInput); |
| 873 checkUnnamed1061(o.offices); | 873 checkUnnamed453(o.offices); |
| 874 checkUnnamed1062(o.officials); | 874 checkUnnamed454(o.officials); |
| 875 } | 875 } |
| 876 buildCounterRepresentativeInfoResponse--; | 876 buildCounterRepresentativeInfoResponse--; |
| 877 } | 877 } |
| 878 | 878 |
| 879 core.int buildCounterSimpleAddressType = 0; | 879 core.int buildCounterSimpleAddressType = 0; |
| 880 buildSimpleAddressType() { | 880 buildSimpleAddressType() { |
| 881 var o = new api.SimpleAddressType(); | 881 var o = new api.SimpleAddressType(); |
| 882 buildCounterSimpleAddressType++; | 882 buildCounterSimpleAddressType++; |
| 883 if (buildCounterSimpleAddressType < 3) { | 883 if (buildCounterSimpleAddressType < 3) { |
| 884 o.city = "foo"; | 884 o.city = "foo"; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 921 | 921 |
| 922 checkSource(api.Source o) { | 922 checkSource(api.Source o) { |
| 923 buildCounterSource++; | 923 buildCounterSource++; |
| 924 if (buildCounterSource < 3) { | 924 if (buildCounterSource < 3) { |
| 925 unittest.expect(o.name, unittest.equals('foo')); | 925 unittest.expect(o.name, unittest.equals('foo')); |
| 926 unittest.expect(o.official, unittest.isTrue); | 926 unittest.expect(o.official, unittest.isTrue); |
| 927 } | 927 } |
| 928 buildCounterSource--; | 928 buildCounterSource--; |
| 929 } | 929 } |
| 930 | 930 |
| 931 buildUnnamed1063() { | 931 buildUnnamed455() { |
| 932 var o = new core.List<api.Contest>(); | 932 var o = new core.List<api.Contest>(); |
| 933 o.add(buildContest()); | 933 o.add(buildContest()); |
| 934 o.add(buildContest()); | 934 o.add(buildContest()); |
| 935 return o; | 935 return o; |
| 936 } | 936 } |
| 937 | 937 |
| 938 checkUnnamed1063(core.List<api.Contest> o) { | 938 checkUnnamed455(core.List<api.Contest> o) { |
| 939 unittest.expect(o, unittest.hasLength(2)); | 939 unittest.expect(o, unittest.hasLength(2)); |
| 940 checkContest(o[0]); | 940 checkContest(o[0]); |
| 941 checkContest(o[1]); | 941 checkContest(o[1]); |
| 942 } | 942 } |
| 943 | 943 |
| 944 buildUnnamed1064() { | 944 buildUnnamed456() { |
| 945 var o = new core.List<api.PollingLocation>(); | 945 var o = new core.List<api.PollingLocation>(); |
| 946 o.add(buildPollingLocation()); | 946 o.add(buildPollingLocation()); |
| 947 o.add(buildPollingLocation()); | 947 o.add(buildPollingLocation()); |
| 948 return o; | 948 return o; |
| 949 } | 949 } |
| 950 | 950 |
| 951 checkUnnamed1064(core.List<api.PollingLocation> o) { | 951 checkUnnamed456(core.List<api.PollingLocation> o) { |
| 952 unittest.expect(o, unittest.hasLength(2)); | 952 unittest.expect(o, unittest.hasLength(2)); |
| 953 checkPollingLocation(o[0]); | 953 checkPollingLocation(o[0]); |
| 954 checkPollingLocation(o[1]); | 954 checkPollingLocation(o[1]); |
| 955 } | 955 } |
| 956 | 956 |
| 957 buildUnnamed1065() { | 957 buildUnnamed457() { |
| 958 var o = new core.List<api.PollingLocation>(); | 958 var o = new core.List<api.PollingLocation>(); |
| 959 o.add(buildPollingLocation()); | 959 o.add(buildPollingLocation()); |
| 960 o.add(buildPollingLocation()); | 960 o.add(buildPollingLocation()); |
| 961 return o; | 961 return o; |
| 962 } | 962 } |
| 963 | 963 |
| 964 checkUnnamed1065(core.List<api.PollingLocation> o) { | 964 checkUnnamed457(core.List<api.PollingLocation> o) { |
| 965 unittest.expect(o, unittest.hasLength(2)); | 965 unittest.expect(o, unittest.hasLength(2)); |
| 966 checkPollingLocation(o[0]); | 966 checkPollingLocation(o[0]); |
| 967 checkPollingLocation(o[1]); | 967 checkPollingLocation(o[1]); |
| 968 } | 968 } |
| 969 | 969 |
| 970 buildUnnamed1066() { | 970 buildUnnamed458() { |
| 971 var o = new core.List<api.Election>(); | 971 var o = new core.List<api.Election>(); |
| 972 o.add(buildElection()); | 972 o.add(buildElection()); |
| 973 o.add(buildElection()); | 973 o.add(buildElection()); |
| 974 return o; | 974 return o; |
| 975 } | 975 } |
| 976 | 976 |
| 977 checkUnnamed1066(core.List<api.Election> o) { | 977 checkUnnamed458(core.List<api.Election> o) { |
| 978 unittest.expect(o, unittest.hasLength(2)); | 978 unittest.expect(o, unittest.hasLength(2)); |
| 979 checkElection(o[0]); | 979 checkElection(o[0]); |
| 980 checkElection(o[1]); | 980 checkElection(o[1]); |
| 981 } | 981 } |
| 982 | 982 |
| 983 buildUnnamed1067() { | 983 buildUnnamed459() { |
| 984 var o = new core.List<api.PollingLocation>(); | 984 var o = new core.List<api.PollingLocation>(); |
| 985 o.add(buildPollingLocation()); | 985 o.add(buildPollingLocation()); |
| 986 o.add(buildPollingLocation()); | 986 o.add(buildPollingLocation()); |
| 987 return o; | 987 return o; |
| 988 } | 988 } |
| 989 | 989 |
| 990 checkUnnamed1067(core.List<api.PollingLocation> o) { | 990 checkUnnamed459(core.List<api.PollingLocation> o) { |
| 991 unittest.expect(o, unittest.hasLength(2)); | 991 unittest.expect(o, unittest.hasLength(2)); |
| 992 checkPollingLocation(o[0]); | 992 checkPollingLocation(o[0]); |
| 993 checkPollingLocation(o[1]); | 993 checkPollingLocation(o[1]); |
| 994 } | 994 } |
| 995 | 995 |
| 996 buildUnnamed1068() { | 996 buildUnnamed460() { |
| 997 var o = new core.List<api.AdministrationRegion>(); | 997 var o = new core.List<api.AdministrationRegion>(); |
| 998 o.add(buildAdministrationRegion()); | 998 o.add(buildAdministrationRegion()); |
| 999 o.add(buildAdministrationRegion()); | 999 o.add(buildAdministrationRegion()); |
| 1000 return o; | 1000 return o; |
| 1001 } | 1001 } |
| 1002 | 1002 |
| 1003 checkUnnamed1068(core.List<api.AdministrationRegion> o) { | 1003 checkUnnamed460(core.List<api.AdministrationRegion> o) { |
| 1004 unittest.expect(o, unittest.hasLength(2)); | 1004 unittest.expect(o, unittest.hasLength(2)); |
| 1005 checkAdministrationRegion(o[0]); | 1005 checkAdministrationRegion(o[0]); |
| 1006 checkAdministrationRegion(o[1]); | 1006 checkAdministrationRegion(o[1]); |
| 1007 } | 1007 } |
| 1008 | 1008 |
| 1009 core.int buildCounterVoterInfoResponse = 0; | 1009 core.int buildCounterVoterInfoResponse = 0; |
| 1010 buildVoterInfoResponse() { | 1010 buildVoterInfoResponse() { |
| 1011 var o = new api.VoterInfoResponse(); | 1011 var o = new api.VoterInfoResponse(); |
| 1012 buildCounterVoterInfoResponse++; | 1012 buildCounterVoterInfoResponse++; |
| 1013 if (buildCounterVoterInfoResponse < 3) { | 1013 if (buildCounterVoterInfoResponse < 3) { |
| 1014 o.contests = buildUnnamed1063(); | 1014 o.contests = buildUnnamed455(); |
| 1015 o.dropOffLocations = buildUnnamed1064(); | 1015 o.dropOffLocations = buildUnnamed456(); |
| 1016 o.earlyVoteSites = buildUnnamed1065(); | 1016 o.earlyVoteSites = buildUnnamed457(); |
| 1017 o.election = buildElection(); | 1017 o.election = buildElection(); |
| 1018 o.kind = "foo"; | 1018 o.kind = "foo"; |
| 1019 o.normalizedInput = buildSimpleAddressType(); | 1019 o.normalizedInput = buildSimpleAddressType(); |
| 1020 o.otherElections = buildUnnamed1066(); | 1020 o.otherElections = buildUnnamed458(); |
| 1021 o.pollingLocations = buildUnnamed1067(); | 1021 o.pollingLocations = buildUnnamed459(); |
| 1022 o.precinctId = "foo"; | 1022 o.precinctId = "foo"; |
| 1023 o.state = buildUnnamed1068(); | 1023 o.state = buildUnnamed460(); |
| 1024 } | 1024 } |
| 1025 buildCounterVoterInfoResponse--; | 1025 buildCounterVoterInfoResponse--; |
| 1026 return o; | 1026 return o; |
| 1027 } | 1027 } |
| 1028 | 1028 |
| 1029 checkVoterInfoResponse(api.VoterInfoResponse o) { | 1029 checkVoterInfoResponse(api.VoterInfoResponse o) { |
| 1030 buildCounterVoterInfoResponse++; | 1030 buildCounterVoterInfoResponse++; |
| 1031 if (buildCounterVoterInfoResponse < 3) { | 1031 if (buildCounterVoterInfoResponse < 3) { |
| 1032 checkUnnamed1063(o.contests); | 1032 checkUnnamed455(o.contests); |
| 1033 checkUnnamed1064(o.dropOffLocations); | 1033 checkUnnamed456(o.dropOffLocations); |
| 1034 checkUnnamed1065(o.earlyVoteSites); | 1034 checkUnnamed457(o.earlyVoteSites); |
| 1035 checkElection(o.election); | 1035 checkElection(o.election); |
| 1036 unittest.expect(o.kind, unittest.equals('foo')); | 1036 unittest.expect(o.kind, unittest.equals('foo')); |
| 1037 checkSimpleAddressType(o.normalizedInput); | 1037 checkSimpleAddressType(o.normalizedInput); |
| 1038 checkUnnamed1066(o.otherElections); | 1038 checkUnnamed458(o.otherElections); |
| 1039 checkUnnamed1067(o.pollingLocations); | 1039 checkUnnamed459(o.pollingLocations); |
| 1040 unittest.expect(o.precinctId, unittest.equals('foo')); | 1040 unittest.expect(o.precinctId, unittest.equals('foo')); |
| 1041 checkUnnamed1068(o.state); | 1041 checkUnnamed460(o.state); |
| 1042 } | 1042 } |
| 1043 buildCounterVoterInfoResponse--; | 1043 buildCounterVoterInfoResponse--; |
| 1044 } | 1044 } |
| 1045 | 1045 |
| 1046 buildUnnamed1069() { | 1046 buildUnnamed461() { |
| 1047 var o = new core.List<core.String>(); | 1047 var o = new core.List<core.String>(); |
| 1048 o.add("foo"); | 1048 o.add("foo"); |
| 1049 o.add("foo"); | 1049 o.add("foo"); |
| 1050 return o; | 1050 return o; |
| 1051 } | 1051 } |
| 1052 | 1052 |
| 1053 checkUnnamed1069(core.List<core.String> o) { | 1053 checkUnnamed461(core.List<core.String> o) { |
| 1054 unittest.expect(o, unittest.hasLength(2)); | 1054 unittest.expect(o, unittest.hasLength(2)); |
| 1055 unittest.expect(o[0], unittest.equals('foo')); | 1055 unittest.expect(o[0], unittest.equals('foo')); |
| 1056 unittest.expect(o[1], unittest.equals('foo')); | 1056 unittest.expect(o[1], unittest.equals('foo')); |
| 1057 } | 1057 } |
| 1058 | 1058 |
| 1059 buildUnnamed1070() { | 1059 buildUnnamed462() { |
| 1060 var o = new core.List<core.String>(); | 1060 var o = new core.List<core.String>(); |
| 1061 o.add("foo"); | 1061 o.add("foo"); |
| 1062 o.add("foo"); | 1062 o.add("foo"); |
| 1063 return o; | 1063 return o; |
| 1064 } | 1064 } |
| 1065 | 1065 |
| 1066 checkUnnamed1070(core.List<core.String> o) { | 1066 checkUnnamed462(core.List<core.String> o) { |
| 1067 unittest.expect(o, unittest.hasLength(2)); | 1067 unittest.expect(o, unittest.hasLength(2)); |
| 1068 unittest.expect(o[0], unittest.equals('foo')); | 1068 unittest.expect(o[0], unittest.equals('foo')); |
| 1069 unittest.expect(o[1], unittest.equals('foo')); | 1069 unittest.expect(o[1], unittest.equals('foo')); |
| 1070 } | 1070 } |
| 1071 | 1071 |
| 1072 buildUnnamed1071() { | 1072 buildUnnamed463() { |
| 1073 var o = new core.List<core.String>(); | 1073 var o = new core.List<core.String>(); |
| 1074 o.add("foo"); | 1074 o.add("foo"); |
| 1075 o.add("foo"); | 1075 o.add("foo"); |
| 1076 return o; | 1076 return o; |
| 1077 } | 1077 } |
| 1078 | 1078 |
| 1079 checkUnnamed1071(core.List<core.String> o) { | 1079 checkUnnamed463(core.List<core.String> o) { |
| 1080 unittest.expect(o, unittest.hasLength(2)); | 1080 unittest.expect(o, unittest.hasLength(2)); |
| 1081 unittest.expect(o[0], unittest.equals('foo')); | 1081 unittest.expect(o[0], unittest.equals('foo')); |
| 1082 unittest.expect(o[1], unittest.equals('foo')); | 1082 unittest.expect(o[1], unittest.equals('foo')); |
| 1083 } | 1083 } |
| 1084 | 1084 |
| 1085 buildUnnamed1072() { | 1085 buildUnnamed464() { |
| 1086 var o = new core.List<core.String>(); | 1086 var o = new core.List<core.String>(); |
| 1087 o.add("foo"); | 1087 o.add("foo"); |
| 1088 o.add("foo"); | 1088 o.add("foo"); |
| 1089 return o; | 1089 return o; |
| 1090 } | 1090 } |
| 1091 | 1091 |
| 1092 checkUnnamed1072(core.List<core.String> o) { | 1092 checkUnnamed464(core.List<core.String> o) { |
| 1093 unittest.expect(o, unittest.hasLength(2)); | 1093 unittest.expect(o, unittest.hasLength(2)); |
| 1094 unittest.expect(o[0], unittest.equals('foo')); | 1094 unittest.expect(o[0], unittest.equals('foo')); |
| 1095 unittest.expect(o[1], unittest.equals('foo')); | 1095 unittest.expect(o[1], unittest.equals('foo')); |
| 1096 } | 1096 } |
| 1097 | 1097 |
| 1098 | 1098 |
| 1099 main() { | 1099 main() { |
| 1100 unittest.group("obj-schema-AdministrationRegion", () { | 1100 unittest.group("obj-schema-AdministrationRegion", () { |
| 1101 unittest.test("to-json--from-json", () { | 1101 unittest.test("to-json--from-json", () { |
| 1102 var o = buildAdministrationRegion(); | 1102 var o = buildAdministrationRegion(); |
| (...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1428 }); | 1428 }); |
| 1429 | 1429 |
| 1430 | 1430 |
| 1431 unittest.group("resource-RepresentativesResourceApi", () { | 1431 unittest.group("resource-RepresentativesResourceApi", () { |
| 1432 unittest.test("method--representativeInfoByAddress", () { | 1432 unittest.test("method--representativeInfoByAddress", () { |
| 1433 | 1433 |
| 1434 var mock = new common_test.HttpServerMock(); | 1434 var mock = new common_test.HttpServerMock(); |
| 1435 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa
tives; | 1435 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa
tives; |
| 1436 var arg_address = "foo"; | 1436 var arg_address = "foo"; |
| 1437 var arg_includeOffices = true; | 1437 var arg_includeOffices = true; |
| 1438 var arg_levels = buildUnnamed1069(); | 1438 var arg_levels = buildUnnamed461(); |
| 1439 var arg_roles = buildUnnamed1070(); | 1439 var arg_roles = buildUnnamed462(); |
| 1440 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1440 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1441 var path = (req.url).path; | 1441 var path = (req.url).path; |
| 1442 var pathOffset = 0; | 1442 var pathOffset = 0; |
| 1443 var index; | 1443 var index; |
| 1444 var subPart; | 1444 var subPart; |
| 1445 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1445 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1446 pathOffset += 1; | 1446 pathOffset += 1; |
| 1447 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("civicinfo/v2/")); | 1447 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("civicinfo/v2/")); |
| 1448 pathOffset += 13; | 1448 pathOffset += 13; |
| 1449 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("representatives")); | 1449 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("representatives")); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 1480 res.representativeInfoByAddress(address: arg_address, includeOffices: arg_
includeOffices, levels: arg_levels, roles: arg_roles).then(unittest.expectAsync(
((api.RepresentativeInfoResponse response) { | 1480 res.representativeInfoByAddress(address: arg_address, includeOffices: arg_
includeOffices, levels: arg_levels, roles: arg_roles).then(unittest.expectAsync(
((api.RepresentativeInfoResponse response) { |
| 1481 checkRepresentativeInfoResponse(response); | 1481 checkRepresentativeInfoResponse(response); |
| 1482 }))); | 1482 }))); |
| 1483 }); | 1483 }); |
| 1484 | 1484 |
| 1485 unittest.test("method--representativeInfoByDivision", () { | 1485 unittest.test("method--representativeInfoByDivision", () { |
| 1486 | 1486 |
| 1487 var mock = new common_test.HttpServerMock(); | 1487 var mock = new common_test.HttpServerMock(); |
| 1488 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa
tives; | 1488 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa
tives; |
| 1489 var arg_ocdId = "foo"; | 1489 var arg_ocdId = "foo"; |
| 1490 var arg_levels = buildUnnamed1071(); | 1490 var arg_levels = buildUnnamed463(); |
| 1491 var arg_recursive = true; | 1491 var arg_recursive = true; |
| 1492 var arg_roles = buildUnnamed1072(); | 1492 var arg_roles = buildUnnamed464(); |
| 1493 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1493 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1494 var path = (req.url).path; | 1494 var path = (req.url).path; |
| 1495 var pathOffset = 0; | 1495 var pathOffset = 0; |
| 1496 var index; | 1496 var index; |
| 1497 var subPart; | 1497 var subPart; |
| 1498 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1498 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1499 pathOffset += 1; | 1499 pathOffset += 1; |
| 1500 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("civicinfo/v2/")); | 1500 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("civicinfo/v2/")); |
| 1501 pathOffset += 13; | 1501 pathOffset += 13; |
| 1502 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("representatives/")); | 1502 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("representatives/")); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1535 res.representativeInfoByDivision(arg_ocdId, levels: arg_levels, recursive:
arg_recursive, roles: arg_roles).then(unittest.expectAsync(((api.Representative
InfoData response) { | 1535 res.representativeInfoByDivision(arg_ocdId, levels: arg_levels, recursive:
arg_recursive, roles: arg_roles).then(unittest.expectAsync(((api.Representative
InfoData response) { |
| 1536 checkRepresentativeInfoData(response); | 1536 checkRepresentativeInfoData(response); |
| 1537 }))); | 1537 }))); |
| 1538 }); | 1538 }); |
| 1539 | 1539 |
| 1540 }); | 1540 }); |
| 1541 | 1541 |
| 1542 | 1542 |
| 1543 } | 1543 } |
| 1544 | 1544 |
| OLD | NEW |