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; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 } | 44 } |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map headers, core.String body) { |
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
52 } | 52 } |
53 | 53 |
54 buildUnnamed1361() { | 54 buildUnnamed451() { |
55 var o = new core.List<api.Source>(); | 55 var o = new core.List<api.Source>(); |
56 o.add(buildSource()); | 56 o.add(buildSource()); |
57 o.add(buildSource()); | 57 o.add(buildSource()); |
58 return o; | 58 return o; |
59 } | 59 } |
60 | 60 |
61 checkUnnamed1361(core.List<api.Source> o) { | 61 checkUnnamed451(core.List<api.Source> o) { |
62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
63 checkSource(o[0]); | 63 checkSource(o[0]); |
64 checkSource(o[1]); | 64 checkSource(o[1]); |
65 } | 65 } |
66 | 66 |
67 core.int buildCounterAdministrationRegion = 0; | 67 core.int buildCounterAdministrationRegion = 0; |
68 buildAdministrationRegion() { | 68 buildAdministrationRegion() { |
69 var o = new api.AdministrationRegion(); | 69 var o = new api.AdministrationRegion(); |
70 buildCounterAdministrationRegion++; | 70 buildCounterAdministrationRegion++; |
71 if (buildCounterAdministrationRegion < 3) { | 71 if (buildCounterAdministrationRegion < 3) { |
72 o.electionAdministrationBody = buildAdministrativeBody(); | 72 o.electionAdministrationBody = buildAdministrativeBody(); |
73 o.id = "foo"; | 73 o.id = "foo"; |
74 o.localJurisdiction = buildAdministrationRegion(); | 74 o.localJurisdiction = buildAdministrationRegion(); |
75 o.name = "foo"; | 75 o.name = "foo"; |
76 o.sources = buildUnnamed1361(); | 76 o.sources = buildUnnamed451(); |
77 } | 77 } |
78 buildCounterAdministrationRegion--; | 78 buildCounterAdministrationRegion--; |
79 return o; | 79 return o; |
80 } | 80 } |
81 | 81 |
82 checkAdministrationRegion(api.AdministrationRegion o) { | 82 checkAdministrationRegion(api.AdministrationRegion o) { |
83 buildCounterAdministrationRegion++; | 83 buildCounterAdministrationRegion++; |
84 if (buildCounterAdministrationRegion < 3) { | 84 if (buildCounterAdministrationRegion < 3) { |
85 checkAdministrativeBody(o.electionAdministrationBody); | 85 checkAdministrativeBody(o.electionAdministrationBody); |
86 unittest.expect(o.id, unittest.equals('foo')); | 86 unittest.expect(o.id, unittest.equals('foo')); |
87 checkAdministrationRegion(o.localJurisdiction); | 87 checkAdministrationRegion(o.localJurisdiction); |
88 unittest.expect(o.name, unittest.equals('foo')); | 88 unittest.expect(o.name, unittest.equals('foo')); |
89 checkUnnamed1361(o.sources); | 89 checkUnnamed451(o.sources); |
90 } | 90 } |
91 buildCounterAdministrationRegion--; | 91 buildCounterAdministrationRegion--; |
92 } | 92 } |
93 | 93 |
94 buildUnnamed1362() { | 94 buildUnnamed452() { |
95 var o = new core.List<api.ElectionOfficial>(); | 95 var o = new core.List<api.ElectionOfficial>(); |
96 o.add(buildElectionOfficial()); | 96 o.add(buildElectionOfficial()); |
97 o.add(buildElectionOfficial()); | 97 o.add(buildElectionOfficial()); |
98 return o; | 98 return o; |
99 } | 99 } |
100 | 100 |
101 checkUnnamed1362(core.List<api.ElectionOfficial> o) { | 101 checkUnnamed452(core.List<api.ElectionOfficial> o) { |
102 unittest.expect(o, unittest.hasLength(2)); | 102 unittest.expect(o, unittest.hasLength(2)); |
103 checkElectionOfficial(o[0]); | 103 checkElectionOfficial(o[0]); |
104 checkElectionOfficial(o[1]); | 104 checkElectionOfficial(o[1]); |
105 } | 105 } |
106 | 106 |
107 buildUnnamed1363() { | 107 buildUnnamed453() { |
108 var o = new core.List<core.String>(); | 108 var o = new core.List<core.String>(); |
109 o.add("foo"); | 109 o.add("foo"); |
110 o.add("foo"); | 110 o.add("foo"); |
111 return o; | 111 return o; |
112 } | 112 } |
113 | 113 |
114 checkUnnamed1363(core.List<core.String> o) { | 114 checkUnnamed453(core.List<core.String> o) { |
115 unittest.expect(o, unittest.hasLength(2)); | 115 unittest.expect(o, unittest.hasLength(2)); |
116 unittest.expect(o[0], unittest.equals('foo')); | 116 unittest.expect(o[0], unittest.equals('foo')); |
117 unittest.expect(o[1], unittest.equals('foo')); | 117 unittest.expect(o[1], unittest.equals('foo')); |
118 } | 118 } |
119 | 119 |
120 core.int buildCounterAdministrativeBody = 0; | 120 core.int buildCounterAdministrativeBody = 0; |
121 buildAdministrativeBody() { | 121 buildAdministrativeBody() { |
122 var o = new api.AdministrativeBody(); | 122 var o = new api.AdministrativeBody(); |
123 buildCounterAdministrativeBody++; | 123 buildCounterAdministrativeBody++; |
124 if (buildCounterAdministrativeBody < 3) { | 124 if (buildCounterAdministrativeBody < 3) { |
125 o.absenteeVotingInfoUrl = "foo"; | 125 o.absenteeVotingInfoUrl = "foo"; |
126 o.ballotInfoUrl = "foo"; | 126 o.ballotInfoUrl = "foo"; |
127 o.correspondenceAddress = buildSimpleAddressType(); | 127 o.correspondenceAddress = buildSimpleAddressType(); |
128 o.electionInfoUrl = "foo"; | 128 o.electionInfoUrl = "foo"; |
129 o.electionOfficials = buildUnnamed1362(); | 129 o.electionOfficials = buildUnnamed452(); |
130 o.electionRegistrationConfirmationUrl = "foo"; | 130 o.electionRegistrationConfirmationUrl = "foo"; |
131 o.electionRegistrationUrl = "foo"; | 131 o.electionRegistrationUrl = "foo"; |
132 o.electionRulesUrl = "foo"; | 132 o.electionRulesUrl = "foo"; |
133 o.hoursOfOperation = "foo"; | 133 o.hoursOfOperation = "foo"; |
134 o.name = "foo"; | 134 o.name = "foo"; |
135 o.physicalAddress = buildSimpleAddressType(); | 135 o.physicalAddress = buildSimpleAddressType(); |
136 o.voterServices = buildUnnamed1363(); | 136 o.voterServices = buildUnnamed453(); |
137 o.votingLocationFinderUrl = "foo"; | 137 o.votingLocationFinderUrl = "foo"; |
138 } | 138 } |
139 buildCounterAdministrativeBody--; | 139 buildCounterAdministrativeBody--; |
140 return o; | 140 return o; |
141 } | 141 } |
142 | 142 |
143 checkAdministrativeBody(api.AdministrativeBody o) { | 143 checkAdministrativeBody(api.AdministrativeBody o) { |
144 buildCounterAdministrativeBody++; | 144 buildCounterAdministrativeBody++; |
145 if (buildCounterAdministrativeBody < 3) { | 145 if (buildCounterAdministrativeBody < 3) { |
146 unittest.expect(o.absenteeVotingInfoUrl, unittest.equals('foo')); | 146 unittest.expect(o.absenteeVotingInfoUrl, unittest.equals('foo')); |
147 unittest.expect(o.ballotInfoUrl, unittest.equals('foo')); | 147 unittest.expect(o.ballotInfoUrl, unittest.equals('foo')); |
148 checkSimpleAddressType(o.correspondenceAddress); | 148 checkSimpleAddressType(o.correspondenceAddress); |
149 unittest.expect(o.electionInfoUrl, unittest.equals('foo')); | 149 unittest.expect(o.electionInfoUrl, unittest.equals('foo')); |
150 checkUnnamed1362(o.electionOfficials); | 150 checkUnnamed452(o.electionOfficials); |
151 unittest.expect(o.electionRegistrationConfirmationUrl, unittest.equals('foo'
)); | 151 unittest.expect(o.electionRegistrationConfirmationUrl, unittest.equals('foo'
)); |
152 unittest.expect(o.electionRegistrationUrl, unittest.equals('foo')); | 152 unittest.expect(o.electionRegistrationUrl, unittest.equals('foo')); |
153 unittest.expect(o.electionRulesUrl, unittest.equals('foo')); | 153 unittest.expect(o.electionRulesUrl, unittest.equals('foo')); |
154 unittest.expect(o.hoursOfOperation, unittest.equals('foo')); | 154 unittest.expect(o.hoursOfOperation, unittest.equals('foo')); |
155 unittest.expect(o.name, unittest.equals('foo')); | 155 unittest.expect(o.name, unittest.equals('foo')); |
156 checkSimpleAddressType(o.physicalAddress); | 156 checkSimpleAddressType(o.physicalAddress); |
157 checkUnnamed1363(o.voterServices); | 157 checkUnnamed453(o.voterServices); |
158 unittest.expect(o.votingLocationFinderUrl, unittest.equals('foo')); | 158 unittest.expect(o.votingLocationFinderUrl, unittest.equals('foo')); |
159 } | 159 } |
160 buildCounterAdministrativeBody--; | 160 buildCounterAdministrativeBody--; |
161 } | 161 } |
162 | 162 |
163 buildUnnamed1364() { | 163 buildUnnamed454() { |
164 var o = new core.List<api.Channel>(); | 164 var o = new core.List<api.Channel>(); |
165 o.add(buildChannel()); | 165 o.add(buildChannel()); |
166 o.add(buildChannel()); | 166 o.add(buildChannel()); |
167 return o; | 167 return o; |
168 } | 168 } |
169 | 169 |
170 checkUnnamed1364(core.List<api.Channel> o) { | 170 checkUnnamed454(core.List<api.Channel> o) { |
171 unittest.expect(o, unittest.hasLength(2)); | 171 unittest.expect(o, unittest.hasLength(2)); |
172 checkChannel(o[0]); | 172 checkChannel(o[0]); |
173 checkChannel(o[1]); | 173 checkChannel(o[1]); |
174 } | 174 } |
175 | 175 |
176 core.int buildCounterCandidate = 0; | 176 core.int buildCounterCandidate = 0; |
177 buildCandidate() { | 177 buildCandidate() { |
178 var o = new api.Candidate(); | 178 var o = new api.Candidate(); |
179 buildCounterCandidate++; | 179 buildCounterCandidate++; |
180 if (buildCounterCandidate < 3) { | 180 if (buildCounterCandidate < 3) { |
181 o.candidateUrl = "foo"; | 181 o.candidateUrl = "foo"; |
182 o.channels = buildUnnamed1364(); | 182 o.channels = buildUnnamed454(); |
183 o.email = "foo"; | 183 o.email = "foo"; |
184 o.name = "foo"; | 184 o.name = "foo"; |
185 o.orderOnBallot = "foo"; | 185 o.orderOnBallot = "foo"; |
186 o.party = "foo"; | 186 o.party = "foo"; |
187 o.phone = "foo"; | 187 o.phone = "foo"; |
188 o.photoUrl = "foo"; | 188 o.photoUrl = "foo"; |
189 } | 189 } |
190 buildCounterCandidate--; | 190 buildCounterCandidate--; |
191 return o; | 191 return o; |
192 } | 192 } |
193 | 193 |
194 checkCandidate(api.Candidate o) { | 194 checkCandidate(api.Candidate o) { |
195 buildCounterCandidate++; | 195 buildCounterCandidate++; |
196 if (buildCounterCandidate < 3) { | 196 if (buildCounterCandidate < 3) { |
197 unittest.expect(o.candidateUrl, unittest.equals('foo')); | 197 unittest.expect(o.candidateUrl, unittest.equals('foo')); |
198 checkUnnamed1364(o.channels); | 198 checkUnnamed454(o.channels); |
199 unittest.expect(o.email, unittest.equals('foo')); | 199 unittest.expect(o.email, unittest.equals('foo')); |
200 unittest.expect(o.name, unittest.equals('foo')); | 200 unittest.expect(o.name, unittest.equals('foo')); |
201 unittest.expect(o.orderOnBallot, unittest.equals('foo')); | 201 unittest.expect(o.orderOnBallot, unittest.equals('foo')); |
202 unittest.expect(o.party, unittest.equals('foo')); | 202 unittest.expect(o.party, unittest.equals('foo')); |
203 unittest.expect(o.phone, unittest.equals('foo')); | 203 unittest.expect(o.phone, unittest.equals('foo')); |
204 unittest.expect(o.photoUrl, unittest.equals('foo')); | 204 unittest.expect(o.photoUrl, unittest.equals('foo')); |
205 } | 205 } |
206 buildCounterCandidate--; | 206 buildCounterCandidate--; |
207 } | 207 } |
208 | 208 |
(...skipping 11 matching lines...) Expand all Loading... |
220 | 220 |
221 checkChannel(api.Channel o) { | 221 checkChannel(api.Channel o) { |
222 buildCounterChannel++; | 222 buildCounterChannel++; |
223 if (buildCounterChannel < 3) { | 223 if (buildCounterChannel < 3) { |
224 unittest.expect(o.id, unittest.equals('foo')); | 224 unittest.expect(o.id, unittest.equals('foo')); |
225 unittest.expect(o.type, unittest.equals('foo')); | 225 unittest.expect(o.type, unittest.equals('foo')); |
226 } | 226 } |
227 buildCounterChannel--; | 227 buildCounterChannel--; |
228 } | 228 } |
229 | 229 |
230 buildUnnamed1365() { | 230 buildUnnamed455() { |
231 var o = new core.List<api.Candidate>(); | 231 var o = new core.List<api.Candidate>(); |
232 o.add(buildCandidate()); | 232 o.add(buildCandidate()); |
233 o.add(buildCandidate()); | 233 o.add(buildCandidate()); |
234 return o; | 234 return o; |
235 } | 235 } |
236 | 236 |
237 checkUnnamed1365(core.List<api.Candidate> o) { | 237 checkUnnamed455(core.List<api.Candidate> o) { |
238 unittest.expect(o, unittest.hasLength(2)); | 238 unittest.expect(o, unittest.hasLength(2)); |
239 checkCandidate(o[0]); | 239 checkCandidate(o[0]); |
240 checkCandidate(o[1]); | 240 checkCandidate(o[1]); |
241 } | 241 } |
242 | 242 |
243 buildUnnamed1366() { | 243 buildUnnamed456() { |
244 var o = new core.List<core.String>(); | 244 var o = new core.List<core.String>(); |
245 o.add("foo"); | 245 o.add("foo"); |
246 o.add("foo"); | 246 o.add("foo"); |
247 return o; | 247 return o; |
248 } | 248 } |
249 | 249 |
250 checkUnnamed1366(core.List<core.String> o) { | 250 checkUnnamed456(core.List<core.String> o) { |
251 unittest.expect(o, unittest.hasLength(2)); | 251 unittest.expect(o, unittest.hasLength(2)); |
252 unittest.expect(o[0], unittest.equals('foo')); | 252 unittest.expect(o[0], unittest.equals('foo')); |
253 unittest.expect(o[1], unittest.equals('foo')); | 253 unittest.expect(o[1], unittest.equals('foo')); |
254 } | 254 } |
255 | 255 |
256 buildUnnamed1367() { | 256 buildUnnamed457() { |
257 var o = new core.List<core.String>(); | 257 var o = new core.List<core.String>(); |
258 o.add("foo"); | 258 o.add("foo"); |
259 o.add("foo"); | 259 o.add("foo"); |
260 return o; | 260 return o; |
261 } | 261 } |
262 | 262 |
263 checkUnnamed1367(core.List<core.String> o) { | 263 checkUnnamed457(core.List<core.String> o) { |
264 unittest.expect(o, unittest.hasLength(2)); | 264 unittest.expect(o, unittest.hasLength(2)); |
265 unittest.expect(o[0], unittest.equals('foo')); | 265 unittest.expect(o[0], unittest.equals('foo')); |
266 unittest.expect(o[1], unittest.equals('foo')); | 266 unittest.expect(o[1], unittest.equals('foo')); |
267 } | 267 } |
268 | 268 |
269 buildUnnamed1368() { | 269 buildUnnamed458() { |
| 270 var o = new core.List<core.String>(); |
| 271 o.add("foo"); |
| 272 o.add("foo"); |
| 273 return o; |
| 274 } |
| 275 |
| 276 checkUnnamed458(core.List<core.String> o) { |
| 277 unittest.expect(o, unittest.hasLength(2)); |
| 278 unittest.expect(o[0], unittest.equals('foo')); |
| 279 unittest.expect(o[1], unittest.equals('foo')); |
| 280 } |
| 281 |
| 282 buildUnnamed459() { |
270 var o = new core.List<api.Source>(); | 283 var o = new core.List<api.Source>(); |
271 o.add(buildSource()); | 284 o.add(buildSource()); |
272 o.add(buildSource()); | 285 o.add(buildSource()); |
273 return o; | 286 return o; |
274 } | 287 } |
275 | 288 |
276 checkUnnamed1368(core.List<api.Source> o) { | 289 checkUnnamed459(core.List<api.Source> o) { |
277 unittest.expect(o, unittest.hasLength(2)); | 290 unittest.expect(o, unittest.hasLength(2)); |
278 checkSource(o[0]); | 291 checkSource(o[0]); |
279 checkSource(o[1]); | 292 checkSource(o[1]); |
280 } | 293 } |
281 | 294 |
282 core.int buildCounterContest = 0; | 295 core.int buildCounterContest = 0; |
283 buildContest() { | 296 buildContest() { |
284 var o = new api.Contest(); | 297 var o = new api.Contest(); |
285 buildCounterContest++; | 298 buildCounterContest++; |
286 if (buildCounterContest < 3) { | 299 if (buildCounterContest < 3) { |
287 o.ballotPlacement = "foo"; | 300 o.ballotPlacement = "foo"; |
288 o.candidates = buildUnnamed1365(); | 301 o.candidates = buildUnnamed455(); |
289 o.district = buildElectoralDistrict(); | 302 o.district = buildElectoralDistrict(); |
290 o.electorateSpecifications = "foo"; | 303 o.electorateSpecifications = "foo"; |
291 o.id = "foo"; | 304 o.id = "foo"; |
292 o.level = buildUnnamed1366(); | 305 o.level = buildUnnamed456(); |
293 o.numberElected = "foo"; | 306 o.numberElected = "foo"; |
294 o.numberVotingFor = "foo"; | 307 o.numberVotingFor = "foo"; |
295 o.office = "foo"; | 308 o.office = "foo"; |
296 o.primaryParty = "foo"; | 309 o.primaryParty = "foo"; |
| 310 o.referendumBallotResponses = buildUnnamed457(); |
| 311 o.referendumBrief = "foo"; |
| 312 o.referendumConStatement = "foo"; |
| 313 o.referendumEffectOfAbstain = "foo"; |
| 314 o.referendumPassageThreshold = "foo"; |
| 315 o.referendumProStatement = "foo"; |
297 o.referendumSubtitle = "foo"; | 316 o.referendumSubtitle = "foo"; |
| 317 o.referendumText = "foo"; |
298 o.referendumTitle = "foo"; | 318 o.referendumTitle = "foo"; |
299 o.referendumUrl = "foo"; | 319 o.referendumUrl = "foo"; |
300 o.roles = buildUnnamed1367(); | 320 o.roles = buildUnnamed458(); |
301 o.sources = buildUnnamed1368(); | 321 o.sources = buildUnnamed459(); |
302 o.special = "foo"; | 322 o.special = "foo"; |
303 o.type = "foo"; | 323 o.type = "foo"; |
304 } | 324 } |
305 buildCounterContest--; | 325 buildCounterContest--; |
306 return o; | 326 return o; |
307 } | 327 } |
308 | 328 |
309 checkContest(api.Contest o) { | 329 checkContest(api.Contest o) { |
310 buildCounterContest++; | 330 buildCounterContest++; |
311 if (buildCounterContest < 3) { | 331 if (buildCounterContest < 3) { |
312 unittest.expect(o.ballotPlacement, unittest.equals('foo')); | 332 unittest.expect(o.ballotPlacement, unittest.equals('foo')); |
313 checkUnnamed1365(o.candidates); | 333 checkUnnamed455(o.candidates); |
314 checkElectoralDistrict(o.district); | 334 checkElectoralDistrict(o.district); |
315 unittest.expect(o.electorateSpecifications, unittest.equals('foo')); | 335 unittest.expect(o.electorateSpecifications, unittest.equals('foo')); |
316 unittest.expect(o.id, unittest.equals('foo')); | 336 unittest.expect(o.id, unittest.equals('foo')); |
317 checkUnnamed1366(o.level); | 337 checkUnnamed456(o.level); |
318 unittest.expect(o.numberElected, unittest.equals('foo')); | 338 unittest.expect(o.numberElected, unittest.equals('foo')); |
319 unittest.expect(o.numberVotingFor, unittest.equals('foo')); | 339 unittest.expect(o.numberVotingFor, unittest.equals('foo')); |
320 unittest.expect(o.office, unittest.equals('foo')); | 340 unittest.expect(o.office, unittest.equals('foo')); |
321 unittest.expect(o.primaryParty, unittest.equals('foo')); | 341 unittest.expect(o.primaryParty, unittest.equals('foo')); |
| 342 checkUnnamed457(o.referendumBallotResponses); |
| 343 unittest.expect(o.referendumBrief, unittest.equals('foo')); |
| 344 unittest.expect(o.referendumConStatement, unittest.equals('foo')); |
| 345 unittest.expect(o.referendumEffectOfAbstain, unittest.equals('foo')); |
| 346 unittest.expect(o.referendumPassageThreshold, unittest.equals('foo')); |
| 347 unittest.expect(o.referendumProStatement, unittest.equals('foo')); |
322 unittest.expect(o.referendumSubtitle, unittest.equals('foo')); | 348 unittest.expect(o.referendumSubtitle, unittest.equals('foo')); |
| 349 unittest.expect(o.referendumText, unittest.equals('foo')); |
323 unittest.expect(o.referendumTitle, unittest.equals('foo')); | 350 unittest.expect(o.referendumTitle, unittest.equals('foo')); |
324 unittest.expect(o.referendumUrl, unittest.equals('foo')); | 351 unittest.expect(o.referendumUrl, unittest.equals('foo')); |
325 checkUnnamed1367(o.roles); | 352 checkUnnamed458(o.roles); |
326 checkUnnamed1368(o.sources); | 353 checkUnnamed459(o.sources); |
327 unittest.expect(o.special, unittest.equals('foo')); | 354 unittest.expect(o.special, unittest.equals('foo')); |
328 unittest.expect(o.type, unittest.equals('foo')); | 355 unittest.expect(o.type, unittest.equals('foo')); |
329 } | 356 } |
330 buildCounterContest--; | 357 buildCounterContest--; |
331 } | 358 } |
332 | 359 |
333 buildUnnamed1369() { | 360 buildUnnamed460() { |
334 var o = new core.List<api.DivisionSearchResult>(); | 361 var o = new core.List<api.DivisionSearchResult>(); |
335 o.add(buildDivisionSearchResult()); | 362 o.add(buildDivisionSearchResult()); |
336 o.add(buildDivisionSearchResult()); | 363 o.add(buildDivisionSearchResult()); |
337 return o; | 364 return o; |
338 } | 365 } |
339 | 366 |
340 checkUnnamed1369(core.List<api.DivisionSearchResult> o) { | 367 checkUnnamed460(core.List<api.DivisionSearchResult> o) { |
341 unittest.expect(o, unittest.hasLength(2)); | 368 unittest.expect(o, unittest.hasLength(2)); |
342 checkDivisionSearchResult(o[0]); | 369 checkDivisionSearchResult(o[0]); |
343 checkDivisionSearchResult(o[1]); | 370 checkDivisionSearchResult(o[1]); |
344 } | 371 } |
345 | 372 |
346 core.int buildCounterDivisionSearchResponse = 0; | 373 core.int buildCounterDivisionSearchResponse = 0; |
347 buildDivisionSearchResponse() { | 374 buildDivisionSearchResponse() { |
348 var o = new api.DivisionSearchResponse(); | 375 var o = new api.DivisionSearchResponse(); |
349 buildCounterDivisionSearchResponse++; | 376 buildCounterDivisionSearchResponse++; |
350 if (buildCounterDivisionSearchResponse < 3) { | 377 if (buildCounterDivisionSearchResponse < 3) { |
351 o.kind = "foo"; | 378 o.kind = "foo"; |
352 o.results = buildUnnamed1369(); | 379 o.results = buildUnnamed460(); |
353 } | 380 } |
354 buildCounterDivisionSearchResponse--; | 381 buildCounterDivisionSearchResponse--; |
355 return o; | 382 return o; |
356 } | 383 } |
357 | 384 |
358 checkDivisionSearchResponse(api.DivisionSearchResponse o) { | 385 checkDivisionSearchResponse(api.DivisionSearchResponse o) { |
359 buildCounterDivisionSearchResponse++; | 386 buildCounterDivisionSearchResponse++; |
360 if (buildCounterDivisionSearchResponse < 3) { | 387 if (buildCounterDivisionSearchResponse < 3) { |
361 unittest.expect(o.kind, unittest.equals('foo')); | 388 unittest.expect(o.kind, unittest.equals('foo')); |
362 checkUnnamed1369(o.results); | 389 checkUnnamed460(o.results); |
363 } | 390 } |
364 buildCounterDivisionSearchResponse--; | 391 buildCounterDivisionSearchResponse--; |
365 } | 392 } |
366 | 393 |
367 buildUnnamed1370() { | 394 buildUnnamed461() { |
368 var o = new core.List<core.String>(); | 395 var o = new core.List<core.String>(); |
369 o.add("foo"); | 396 o.add("foo"); |
370 o.add("foo"); | 397 o.add("foo"); |
371 return o; | 398 return o; |
372 } | 399 } |
373 | 400 |
374 checkUnnamed1370(core.List<core.String> o) { | 401 checkUnnamed461(core.List<core.String> o) { |
375 unittest.expect(o, unittest.hasLength(2)); | 402 unittest.expect(o, unittest.hasLength(2)); |
376 unittest.expect(o[0], unittest.equals('foo')); | 403 unittest.expect(o[0], unittest.equals('foo')); |
377 unittest.expect(o[1], unittest.equals('foo')); | 404 unittest.expect(o[1], unittest.equals('foo')); |
378 } | 405 } |
379 | 406 |
380 core.int buildCounterDivisionSearchResult = 0; | 407 core.int buildCounterDivisionSearchResult = 0; |
381 buildDivisionSearchResult() { | 408 buildDivisionSearchResult() { |
382 var o = new api.DivisionSearchResult(); | 409 var o = new api.DivisionSearchResult(); |
383 buildCounterDivisionSearchResult++; | 410 buildCounterDivisionSearchResult++; |
384 if (buildCounterDivisionSearchResult < 3) { | 411 if (buildCounterDivisionSearchResult < 3) { |
385 o.aliases = buildUnnamed1370(); | 412 o.aliases = buildUnnamed461(); |
386 o.name = "foo"; | 413 o.name = "foo"; |
387 o.ocdId = "foo"; | 414 o.ocdId = "foo"; |
388 } | 415 } |
389 buildCounterDivisionSearchResult--; | 416 buildCounterDivisionSearchResult--; |
390 return o; | 417 return o; |
391 } | 418 } |
392 | 419 |
393 checkDivisionSearchResult(api.DivisionSearchResult o) { | 420 checkDivisionSearchResult(api.DivisionSearchResult o) { |
394 buildCounterDivisionSearchResult++; | 421 buildCounterDivisionSearchResult++; |
395 if (buildCounterDivisionSearchResult < 3) { | 422 if (buildCounterDivisionSearchResult < 3) { |
396 checkUnnamed1370(o.aliases); | 423 checkUnnamed461(o.aliases); |
397 unittest.expect(o.name, unittest.equals('foo')); | 424 unittest.expect(o.name, unittest.equals('foo')); |
398 unittest.expect(o.ocdId, unittest.equals('foo')); | 425 unittest.expect(o.ocdId, unittest.equals('foo')); |
399 } | 426 } |
400 buildCounterDivisionSearchResult--; | 427 buildCounterDivisionSearchResult--; |
401 } | 428 } |
402 | 429 |
403 core.int buildCounterElection = 0; | 430 core.int buildCounterElection = 0; |
404 buildElection() { | 431 buildElection() { |
405 var o = new api.Election(); | 432 var o = new api.Election(); |
406 buildCounterElection++; | 433 buildCounterElection++; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 if (buildCounterElectionOfficial < 3) { | 470 if (buildCounterElectionOfficial < 3) { |
444 unittest.expect(o.emailAddress, unittest.equals('foo')); | 471 unittest.expect(o.emailAddress, unittest.equals('foo')); |
445 unittest.expect(o.faxNumber, unittest.equals('foo')); | 472 unittest.expect(o.faxNumber, unittest.equals('foo')); |
446 unittest.expect(o.name, unittest.equals('foo')); | 473 unittest.expect(o.name, unittest.equals('foo')); |
447 unittest.expect(o.officePhoneNumber, unittest.equals('foo')); | 474 unittest.expect(o.officePhoneNumber, unittest.equals('foo')); |
448 unittest.expect(o.title, unittest.equals('foo')); | 475 unittest.expect(o.title, unittest.equals('foo')); |
449 } | 476 } |
450 buildCounterElectionOfficial--; | 477 buildCounterElectionOfficial--; |
451 } | 478 } |
452 | 479 |
453 buildUnnamed1371() { | 480 buildUnnamed462() { |
454 var o = new core.List<api.Election>(); | 481 var o = new core.List<api.Election>(); |
455 o.add(buildElection()); | 482 o.add(buildElection()); |
456 o.add(buildElection()); | 483 o.add(buildElection()); |
457 return o; | 484 return o; |
458 } | 485 } |
459 | 486 |
460 checkUnnamed1371(core.List<api.Election> o) { | 487 checkUnnamed462(core.List<api.Election> o) { |
461 unittest.expect(o, unittest.hasLength(2)); | 488 unittest.expect(o, unittest.hasLength(2)); |
462 checkElection(o[0]); | 489 checkElection(o[0]); |
463 checkElection(o[1]); | 490 checkElection(o[1]); |
464 } | 491 } |
465 | 492 |
466 core.int buildCounterElectionsQueryResponse = 0; | 493 core.int buildCounterElectionsQueryResponse = 0; |
467 buildElectionsQueryResponse() { | 494 buildElectionsQueryResponse() { |
468 var o = new api.ElectionsQueryResponse(); | 495 var o = new api.ElectionsQueryResponse(); |
469 buildCounterElectionsQueryResponse++; | 496 buildCounterElectionsQueryResponse++; |
470 if (buildCounterElectionsQueryResponse < 3) { | 497 if (buildCounterElectionsQueryResponse < 3) { |
471 o.elections = buildUnnamed1371(); | 498 o.elections = buildUnnamed462(); |
472 o.kind = "foo"; | 499 o.kind = "foo"; |
473 } | 500 } |
474 buildCounterElectionsQueryResponse--; | 501 buildCounterElectionsQueryResponse--; |
475 return o; | 502 return o; |
476 } | 503 } |
477 | 504 |
478 checkElectionsQueryResponse(api.ElectionsQueryResponse o) { | 505 checkElectionsQueryResponse(api.ElectionsQueryResponse o) { |
479 buildCounterElectionsQueryResponse++; | 506 buildCounterElectionsQueryResponse++; |
480 if (buildCounterElectionsQueryResponse < 3) { | 507 if (buildCounterElectionsQueryResponse < 3) { |
481 checkUnnamed1371(o.elections); | 508 checkUnnamed462(o.elections); |
482 unittest.expect(o.kind, unittest.equals('foo')); | 509 unittest.expect(o.kind, unittest.equals('foo')); |
483 } | 510 } |
484 buildCounterElectionsQueryResponse--; | 511 buildCounterElectionsQueryResponse--; |
485 } | 512 } |
486 | 513 |
487 core.int buildCounterElectoralDistrict = 0; | 514 core.int buildCounterElectoralDistrict = 0; |
488 buildElectoralDistrict() { | 515 buildElectoralDistrict() { |
489 var o = new api.ElectoralDistrict(); | 516 var o = new api.ElectoralDistrict(); |
490 buildCounterElectoralDistrict++; | 517 buildCounterElectoralDistrict++; |
491 if (buildCounterElectoralDistrict < 3) { | 518 if (buildCounterElectoralDistrict < 3) { |
492 o.id = "foo"; | 519 o.id = "foo"; |
493 o.name = "foo"; | 520 o.name = "foo"; |
494 o.scope = "foo"; | 521 o.scope = "foo"; |
495 } | 522 } |
496 buildCounterElectoralDistrict--; | 523 buildCounterElectoralDistrict--; |
497 return o; | 524 return o; |
498 } | 525 } |
499 | 526 |
500 checkElectoralDistrict(api.ElectoralDistrict o) { | 527 checkElectoralDistrict(api.ElectoralDistrict o) { |
501 buildCounterElectoralDistrict++; | 528 buildCounterElectoralDistrict++; |
502 if (buildCounterElectoralDistrict < 3) { | 529 if (buildCounterElectoralDistrict < 3) { |
503 unittest.expect(o.id, unittest.equals('foo')); | 530 unittest.expect(o.id, unittest.equals('foo')); |
504 unittest.expect(o.name, unittest.equals('foo')); | 531 unittest.expect(o.name, unittest.equals('foo')); |
505 unittest.expect(o.scope, unittest.equals('foo')); | 532 unittest.expect(o.scope, unittest.equals('foo')); |
506 } | 533 } |
507 buildCounterElectoralDistrict--; | 534 buildCounterElectoralDistrict--; |
508 } | 535 } |
509 | 536 |
510 buildUnnamed1372() { | 537 buildUnnamed463() { |
511 var o = new core.List<core.String>(); | 538 var o = new core.List<core.String>(); |
512 o.add("foo"); | 539 o.add("foo"); |
513 o.add("foo"); | 540 o.add("foo"); |
514 return o; | 541 return o; |
515 } | 542 } |
516 | 543 |
517 checkUnnamed1372(core.List<core.String> o) { | 544 checkUnnamed463(core.List<core.String> o) { |
518 unittest.expect(o, unittest.hasLength(2)); | 545 unittest.expect(o, unittest.hasLength(2)); |
519 unittest.expect(o[0], unittest.equals('foo')); | 546 unittest.expect(o[0], unittest.equals('foo')); |
520 unittest.expect(o[1], unittest.equals('foo')); | 547 unittest.expect(o[1], unittest.equals('foo')); |
521 } | 548 } |
522 | 549 |
523 buildUnnamed1373() { | 550 buildUnnamed464() { |
524 var o = new core.List<core.int>(); | 551 var o = new core.List<core.int>(); |
525 o.add(42); | 552 o.add(42); |
526 o.add(42); | 553 o.add(42); |
527 return o; | 554 return o; |
528 } | 555 } |
529 | 556 |
530 checkUnnamed1373(core.List<core.int> o) { | 557 checkUnnamed464(core.List<core.int> o) { |
531 unittest.expect(o, unittest.hasLength(2)); | 558 unittest.expect(o, unittest.hasLength(2)); |
532 unittest.expect(o[0], unittest.equals(42)); | 559 unittest.expect(o[0], unittest.equals(42)); |
533 unittest.expect(o[1], unittest.equals(42)); | 560 unittest.expect(o[1], unittest.equals(42)); |
534 } | 561 } |
535 | 562 |
536 core.int buildCounterGeographicDivision = 0; | 563 core.int buildCounterGeographicDivision = 0; |
537 buildGeographicDivision() { | 564 buildGeographicDivision() { |
538 var o = new api.GeographicDivision(); | 565 var o = new api.GeographicDivision(); |
539 buildCounterGeographicDivision++; | 566 buildCounterGeographicDivision++; |
540 if (buildCounterGeographicDivision < 3) { | 567 if (buildCounterGeographicDivision < 3) { |
541 o.alsoKnownAs = buildUnnamed1372(); | 568 o.alsoKnownAs = buildUnnamed463(); |
542 o.name = "foo"; | 569 o.name = "foo"; |
543 o.officeIndices = buildUnnamed1373(); | 570 o.officeIndices = buildUnnamed464(); |
544 } | 571 } |
545 buildCounterGeographicDivision--; | 572 buildCounterGeographicDivision--; |
546 return o; | 573 return o; |
547 } | 574 } |
548 | 575 |
549 checkGeographicDivision(api.GeographicDivision o) { | 576 checkGeographicDivision(api.GeographicDivision o) { |
550 buildCounterGeographicDivision++; | 577 buildCounterGeographicDivision++; |
551 if (buildCounterGeographicDivision < 3) { | 578 if (buildCounterGeographicDivision < 3) { |
552 checkUnnamed1372(o.alsoKnownAs); | 579 checkUnnamed463(o.alsoKnownAs); |
553 unittest.expect(o.name, unittest.equals('foo')); | 580 unittest.expect(o.name, unittest.equals('foo')); |
554 checkUnnamed1373(o.officeIndices); | 581 checkUnnamed464(o.officeIndices); |
555 } | 582 } |
556 buildCounterGeographicDivision--; | 583 buildCounterGeographicDivision--; |
557 } | 584 } |
558 | 585 |
559 buildUnnamed1374() { | 586 buildUnnamed465() { |
560 var o = new core.List<core.String>(); | 587 var o = new core.List<core.String>(); |
561 o.add("foo"); | 588 o.add("foo"); |
562 o.add("foo"); | 589 o.add("foo"); |
563 return o; | 590 return o; |
564 } | 591 } |
565 | 592 |
566 checkUnnamed1374(core.List<core.String> o) { | 593 checkUnnamed465(core.List<core.String> o) { |
567 unittest.expect(o, unittest.hasLength(2)); | 594 unittest.expect(o, unittest.hasLength(2)); |
568 unittest.expect(o[0], unittest.equals('foo')); | 595 unittest.expect(o[0], unittest.equals('foo')); |
569 unittest.expect(o[1], unittest.equals('foo')); | 596 unittest.expect(o[1], unittest.equals('foo')); |
570 } | 597 } |
571 | 598 |
572 buildUnnamed1375() { | 599 buildUnnamed466() { |
573 var o = new core.List<core.int>(); | 600 var o = new core.List<core.int>(); |
574 o.add(42); | 601 o.add(42); |
575 o.add(42); | 602 o.add(42); |
576 return o; | 603 return o; |
577 } | 604 } |
578 | 605 |
579 checkUnnamed1375(core.List<core.int> o) { | 606 checkUnnamed466(core.List<core.int> o) { |
580 unittest.expect(o, unittest.hasLength(2)); | 607 unittest.expect(o, unittest.hasLength(2)); |
581 unittest.expect(o[0], unittest.equals(42)); | 608 unittest.expect(o[0], unittest.equals(42)); |
582 unittest.expect(o[1], unittest.equals(42)); | 609 unittest.expect(o[1], unittest.equals(42)); |
583 } | 610 } |
584 | 611 |
585 buildUnnamed1376() { | 612 buildUnnamed467() { |
586 var o = new core.List<core.String>(); | 613 var o = new core.List<core.String>(); |
587 o.add("foo"); | 614 o.add("foo"); |
588 o.add("foo"); | 615 o.add("foo"); |
589 return o; | 616 return o; |
590 } | 617 } |
591 | 618 |
592 checkUnnamed1376(core.List<core.String> o) { | 619 checkUnnamed467(core.List<core.String> o) { |
593 unittest.expect(o, unittest.hasLength(2)); | 620 unittest.expect(o, unittest.hasLength(2)); |
594 unittest.expect(o[0], unittest.equals('foo')); | 621 unittest.expect(o[0], unittest.equals('foo')); |
595 unittest.expect(o[1], unittest.equals('foo')); | 622 unittest.expect(o[1], unittest.equals('foo')); |
596 } | 623 } |
597 | 624 |
598 buildUnnamed1377() { | 625 buildUnnamed468() { |
599 var o = new core.List<api.Source>(); | 626 var o = new core.List<api.Source>(); |
600 o.add(buildSource()); | 627 o.add(buildSource()); |
601 o.add(buildSource()); | 628 o.add(buildSource()); |
602 return o; | 629 return o; |
603 } | 630 } |
604 | 631 |
605 checkUnnamed1377(core.List<api.Source> o) { | 632 checkUnnamed468(core.List<api.Source> o) { |
606 unittest.expect(o, unittest.hasLength(2)); | 633 unittest.expect(o, unittest.hasLength(2)); |
607 checkSource(o[0]); | 634 checkSource(o[0]); |
608 checkSource(o[1]); | 635 checkSource(o[1]); |
609 } | 636 } |
610 | 637 |
611 core.int buildCounterOffice = 0; | 638 core.int buildCounterOffice = 0; |
612 buildOffice() { | 639 buildOffice() { |
613 var o = new api.Office(); | 640 var o = new api.Office(); |
614 buildCounterOffice++; | 641 buildCounterOffice++; |
615 if (buildCounterOffice < 3) { | 642 if (buildCounterOffice < 3) { |
616 o.divisionId = "foo"; | 643 o.divisionId = "foo"; |
617 o.levels = buildUnnamed1374(); | 644 o.levels = buildUnnamed465(); |
618 o.name = "foo"; | 645 o.name = "foo"; |
619 o.officialIndices = buildUnnamed1375(); | 646 o.officialIndices = buildUnnamed466(); |
620 o.roles = buildUnnamed1376(); | 647 o.roles = buildUnnamed467(); |
621 o.sources = buildUnnamed1377(); | 648 o.sources = buildUnnamed468(); |
622 } | 649 } |
623 buildCounterOffice--; | 650 buildCounterOffice--; |
624 return o; | 651 return o; |
625 } | 652 } |
626 | 653 |
627 checkOffice(api.Office o) { | 654 checkOffice(api.Office o) { |
628 buildCounterOffice++; | 655 buildCounterOffice++; |
629 if (buildCounterOffice < 3) { | 656 if (buildCounterOffice < 3) { |
630 unittest.expect(o.divisionId, unittest.equals('foo')); | 657 unittest.expect(o.divisionId, unittest.equals('foo')); |
631 checkUnnamed1374(o.levels); | 658 checkUnnamed465(o.levels); |
632 unittest.expect(o.name, unittest.equals('foo')); | 659 unittest.expect(o.name, unittest.equals('foo')); |
633 checkUnnamed1375(o.officialIndices); | 660 checkUnnamed466(o.officialIndices); |
634 checkUnnamed1376(o.roles); | 661 checkUnnamed467(o.roles); |
635 checkUnnamed1377(o.sources); | 662 checkUnnamed468(o.sources); |
636 } | 663 } |
637 buildCounterOffice--; | 664 buildCounterOffice--; |
638 } | 665 } |
639 | 666 |
640 buildUnnamed1378() { | 667 buildUnnamed469() { |
641 var o = new core.List<api.SimpleAddressType>(); | 668 var o = new core.List<api.SimpleAddressType>(); |
642 o.add(buildSimpleAddressType()); | 669 o.add(buildSimpleAddressType()); |
643 o.add(buildSimpleAddressType()); | 670 o.add(buildSimpleAddressType()); |
644 return o; | 671 return o; |
645 } | 672 } |
646 | 673 |
647 checkUnnamed1378(core.List<api.SimpleAddressType> o) { | 674 checkUnnamed469(core.List<api.SimpleAddressType> o) { |
648 unittest.expect(o, unittest.hasLength(2)); | 675 unittest.expect(o, unittest.hasLength(2)); |
649 checkSimpleAddressType(o[0]); | 676 checkSimpleAddressType(o[0]); |
650 checkSimpleAddressType(o[1]); | 677 checkSimpleAddressType(o[1]); |
651 } | 678 } |
652 | 679 |
653 buildUnnamed1379() { | 680 buildUnnamed470() { |
654 var o = new core.List<api.Channel>(); | 681 var o = new core.List<api.Channel>(); |
655 o.add(buildChannel()); | 682 o.add(buildChannel()); |
656 o.add(buildChannel()); | 683 o.add(buildChannel()); |
657 return o; | 684 return o; |
658 } | 685 } |
659 | 686 |
660 checkUnnamed1379(core.List<api.Channel> o) { | 687 checkUnnamed470(core.List<api.Channel> o) { |
661 unittest.expect(o, unittest.hasLength(2)); | 688 unittest.expect(o, unittest.hasLength(2)); |
662 checkChannel(o[0]); | 689 checkChannel(o[0]); |
663 checkChannel(o[1]); | 690 checkChannel(o[1]); |
664 } | 691 } |
665 | 692 |
666 buildUnnamed1380() { | 693 buildUnnamed471() { |
667 var o = new core.List<core.String>(); | 694 var o = new core.List<core.String>(); |
668 o.add("foo"); | 695 o.add("foo"); |
669 o.add("foo"); | 696 o.add("foo"); |
670 return o; | 697 return o; |
671 } | 698 } |
672 | 699 |
673 checkUnnamed1380(core.List<core.String> o) { | 700 checkUnnamed471(core.List<core.String> o) { |
674 unittest.expect(o, unittest.hasLength(2)); | 701 unittest.expect(o, unittest.hasLength(2)); |
675 unittest.expect(o[0], unittest.equals('foo')); | 702 unittest.expect(o[0], unittest.equals('foo')); |
676 unittest.expect(o[1], unittest.equals('foo')); | 703 unittest.expect(o[1], unittest.equals('foo')); |
677 } | 704 } |
678 | 705 |
679 buildUnnamed1381() { | 706 buildUnnamed472() { |
680 var o = new core.List<core.String>(); | 707 var o = new core.List<core.String>(); |
681 o.add("foo"); | 708 o.add("foo"); |
682 o.add("foo"); | 709 o.add("foo"); |
683 return o; | 710 return o; |
684 } | 711 } |
685 | 712 |
686 checkUnnamed1381(core.List<core.String> o) { | 713 checkUnnamed472(core.List<core.String> o) { |
687 unittest.expect(o, unittest.hasLength(2)); | 714 unittest.expect(o, unittest.hasLength(2)); |
688 unittest.expect(o[0], unittest.equals('foo')); | 715 unittest.expect(o[0], unittest.equals('foo')); |
689 unittest.expect(o[1], unittest.equals('foo')); | 716 unittest.expect(o[1], unittest.equals('foo')); |
690 } | 717 } |
691 | 718 |
692 buildUnnamed1382() { | 719 buildUnnamed473() { |
693 var o = new core.List<core.String>(); | 720 var o = new core.List<core.String>(); |
694 o.add("foo"); | 721 o.add("foo"); |
695 o.add("foo"); | 722 o.add("foo"); |
696 return o; | 723 return o; |
697 } | 724 } |
698 | 725 |
699 checkUnnamed1382(core.List<core.String> o) { | 726 checkUnnamed473(core.List<core.String> o) { |
700 unittest.expect(o, unittest.hasLength(2)); | 727 unittest.expect(o, unittest.hasLength(2)); |
701 unittest.expect(o[0], unittest.equals('foo')); | 728 unittest.expect(o[0], unittest.equals('foo')); |
702 unittest.expect(o[1], unittest.equals('foo')); | 729 unittest.expect(o[1], unittest.equals('foo')); |
703 } | 730 } |
704 | 731 |
705 core.int buildCounterOfficial = 0; | 732 core.int buildCounterOfficial = 0; |
706 buildOfficial() { | 733 buildOfficial() { |
707 var o = new api.Official(); | 734 var o = new api.Official(); |
708 buildCounterOfficial++; | 735 buildCounterOfficial++; |
709 if (buildCounterOfficial < 3) { | 736 if (buildCounterOfficial < 3) { |
710 o.address = buildUnnamed1378(); | 737 o.address = buildUnnamed469(); |
711 o.channels = buildUnnamed1379(); | 738 o.channels = buildUnnamed470(); |
712 o.emails = buildUnnamed1380(); | 739 o.emails = buildUnnamed471(); |
713 o.name = "foo"; | 740 o.name = "foo"; |
714 o.party = "foo"; | 741 o.party = "foo"; |
715 o.phones = buildUnnamed1381(); | 742 o.phones = buildUnnamed472(); |
716 o.photoUrl = "foo"; | 743 o.photoUrl = "foo"; |
717 o.urls = buildUnnamed1382(); | 744 o.urls = buildUnnamed473(); |
718 } | 745 } |
719 buildCounterOfficial--; | 746 buildCounterOfficial--; |
720 return o; | 747 return o; |
721 } | 748 } |
722 | 749 |
723 checkOfficial(api.Official o) { | 750 checkOfficial(api.Official o) { |
724 buildCounterOfficial++; | 751 buildCounterOfficial++; |
725 if (buildCounterOfficial < 3) { | 752 if (buildCounterOfficial < 3) { |
726 checkUnnamed1378(o.address); | 753 checkUnnamed469(o.address); |
727 checkUnnamed1379(o.channels); | 754 checkUnnamed470(o.channels); |
728 checkUnnamed1380(o.emails); | 755 checkUnnamed471(o.emails); |
729 unittest.expect(o.name, unittest.equals('foo')); | 756 unittest.expect(o.name, unittest.equals('foo')); |
730 unittest.expect(o.party, unittest.equals('foo')); | 757 unittest.expect(o.party, unittest.equals('foo')); |
731 checkUnnamed1381(o.phones); | 758 checkUnnamed472(o.phones); |
732 unittest.expect(o.photoUrl, unittest.equals('foo')); | 759 unittest.expect(o.photoUrl, unittest.equals('foo')); |
733 checkUnnamed1382(o.urls); | 760 checkUnnamed473(o.urls); |
734 } | 761 } |
735 buildCounterOfficial--; | 762 buildCounterOfficial--; |
736 } | 763 } |
737 | 764 |
738 buildUnnamed1383() { | 765 buildUnnamed474() { |
739 var o = new core.List<api.Source>(); | 766 var o = new core.List<api.Source>(); |
740 o.add(buildSource()); | 767 o.add(buildSource()); |
741 o.add(buildSource()); | 768 o.add(buildSource()); |
742 return o; | 769 return o; |
743 } | 770 } |
744 | 771 |
745 checkUnnamed1383(core.List<api.Source> o) { | 772 checkUnnamed474(core.List<api.Source> o) { |
746 unittest.expect(o, unittest.hasLength(2)); | 773 unittest.expect(o, unittest.hasLength(2)); |
747 checkSource(o[0]); | 774 checkSource(o[0]); |
748 checkSource(o[1]); | 775 checkSource(o[1]); |
749 } | 776 } |
750 | 777 |
751 core.int buildCounterPollingLocation = 0; | 778 core.int buildCounterPollingLocation = 0; |
752 buildPollingLocation() { | 779 buildPollingLocation() { |
753 var o = new api.PollingLocation(); | 780 var o = new api.PollingLocation(); |
754 buildCounterPollingLocation++; | 781 buildCounterPollingLocation++; |
755 if (buildCounterPollingLocation < 3) { | 782 if (buildCounterPollingLocation < 3) { |
756 o.address = buildSimpleAddressType(); | 783 o.address = buildSimpleAddressType(); |
757 o.endDate = "foo"; | 784 o.endDate = "foo"; |
758 o.id = "foo"; | 785 o.id = "foo"; |
759 o.name = "foo"; | 786 o.name = "foo"; |
760 o.notes = "foo"; | 787 o.notes = "foo"; |
761 o.pollingHours = "foo"; | 788 o.pollingHours = "foo"; |
762 o.sources = buildUnnamed1383(); | 789 o.sources = buildUnnamed474(); |
763 o.startDate = "foo"; | 790 o.startDate = "foo"; |
764 o.voterServices = "foo"; | 791 o.voterServices = "foo"; |
765 } | 792 } |
766 buildCounterPollingLocation--; | 793 buildCounterPollingLocation--; |
767 return o; | 794 return o; |
768 } | 795 } |
769 | 796 |
770 checkPollingLocation(api.PollingLocation o) { | 797 checkPollingLocation(api.PollingLocation o) { |
771 buildCounterPollingLocation++; | 798 buildCounterPollingLocation++; |
772 if (buildCounterPollingLocation < 3) { | 799 if (buildCounterPollingLocation < 3) { |
773 checkSimpleAddressType(o.address); | 800 checkSimpleAddressType(o.address); |
774 unittest.expect(o.endDate, unittest.equals('foo')); | 801 unittest.expect(o.endDate, unittest.equals('foo')); |
775 unittest.expect(o.id, unittest.equals('foo')); | 802 unittest.expect(o.id, unittest.equals('foo')); |
776 unittest.expect(o.name, unittest.equals('foo')); | 803 unittest.expect(o.name, unittest.equals('foo')); |
777 unittest.expect(o.notes, unittest.equals('foo')); | 804 unittest.expect(o.notes, unittest.equals('foo')); |
778 unittest.expect(o.pollingHours, unittest.equals('foo')); | 805 unittest.expect(o.pollingHours, unittest.equals('foo')); |
779 checkUnnamed1383(o.sources); | 806 checkUnnamed474(o.sources); |
780 unittest.expect(o.startDate, unittest.equals('foo')); | 807 unittest.expect(o.startDate, unittest.equals('foo')); |
781 unittest.expect(o.voterServices, unittest.equals('foo')); | 808 unittest.expect(o.voterServices, unittest.equals('foo')); |
782 } | 809 } |
783 buildCounterPollingLocation--; | 810 buildCounterPollingLocation--; |
784 } | 811 } |
785 | 812 |
786 buildUnnamed1384() { | 813 buildUnnamed475() { |
787 var o = new core.Map<core.String, api.GeographicDivision>(); | 814 var o = new core.Map<core.String, api.GeographicDivision>(); |
788 o["x"] = buildGeographicDivision(); | 815 o["x"] = buildGeographicDivision(); |
789 o["y"] = buildGeographicDivision(); | 816 o["y"] = buildGeographicDivision(); |
790 return o; | 817 return o; |
791 } | 818 } |
792 | 819 |
793 checkUnnamed1384(core.Map<core.String, api.GeographicDivision> o) { | 820 checkUnnamed475(core.Map<core.String, api.GeographicDivision> o) { |
794 unittest.expect(o, unittest.hasLength(2)); | 821 unittest.expect(o, unittest.hasLength(2)); |
795 checkGeographicDivision(o["x"]); | 822 checkGeographicDivision(o["x"]); |
796 checkGeographicDivision(o["y"]); | 823 checkGeographicDivision(o["y"]); |
797 } | 824 } |
798 | 825 |
799 buildUnnamed1385() { | 826 buildUnnamed476() { |
800 var o = new core.List<api.Office>(); | 827 var o = new core.List<api.Office>(); |
801 o.add(buildOffice()); | 828 o.add(buildOffice()); |
802 o.add(buildOffice()); | 829 o.add(buildOffice()); |
803 return o; | 830 return o; |
804 } | 831 } |
805 | 832 |
806 checkUnnamed1385(core.List<api.Office> o) { | 833 checkUnnamed476(core.List<api.Office> o) { |
807 unittest.expect(o, unittest.hasLength(2)); | 834 unittest.expect(o, unittest.hasLength(2)); |
808 checkOffice(o[0]); | 835 checkOffice(o[0]); |
809 checkOffice(o[1]); | 836 checkOffice(o[1]); |
810 } | 837 } |
811 | 838 |
812 buildUnnamed1386() { | 839 buildUnnamed477() { |
813 var o = new core.List<api.Official>(); | 840 var o = new core.List<api.Official>(); |
814 o.add(buildOfficial()); | 841 o.add(buildOfficial()); |
815 o.add(buildOfficial()); | 842 o.add(buildOfficial()); |
816 return o; | 843 return o; |
817 } | 844 } |
818 | 845 |
819 checkUnnamed1386(core.List<api.Official> o) { | 846 checkUnnamed477(core.List<api.Official> o) { |
820 unittest.expect(o, unittest.hasLength(2)); | 847 unittest.expect(o, unittest.hasLength(2)); |
821 checkOfficial(o[0]); | 848 checkOfficial(o[0]); |
822 checkOfficial(o[1]); | 849 checkOfficial(o[1]); |
823 } | 850 } |
824 | 851 |
825 core.int buildCounterRepresentativeInfoData = 0; | 852 core.int buildCounterRepresentativeInfoData = 0; |
826 buildRepresentativeInfoData() { | 853 buildRepresentativeInfoData() { |
827 var o = new api.RepresentativeInfoData(); | 854 var o = new api.RepresentativeInfoData(); |
828 buildCounterRepresentativeInfoData++; | 855 buildCounterRepresentativeInfoData++; |
829 if (buildCounterRepresentativeInfoData < 3) { | 856 if (buildCounterRepresentativeInfoData < 3) { |
830 o.divisions = buildUnnamed1384(); | 857 o.divisions = buildUnnamed475(); |
831 o.offices = buildUnnamed1385(); | 858 o.offices = buildUnnamed476(); |
832 o.officials = buildUnnamed1386(); | 859 o.officials = buildUnnamed477(); |
833 } | 860 } |
834 buildCounterRepresentativeInfoData--; | 861 buildCounterRepresentativeInfoData--; |
835 return o; | 862 return o; |
836 } | 863 } |
837 | 864 |
838 checkRepresentativeInfoData(api.RepresentativeInfoData o) { | 865 checkRepresentativeInfoData(api.RepresentativeInfoData o) { |
839 buildCounterRepresentativeInfoData++; | 866 buildCounterRepresentativeInfoData++; |
840 if (buildCounterRepresentativeInfoData < 3) { | 867 if (buildCounterRepresentativeInfoData < 3) { |
841 checkUnnamed1384(o.divisions); | 868 checkUnnamed475(o.divisions); |
842 checkUnnamed1385(o.offices); | 869 checkUnnamed476(o.offices); |
843 checkUnnamed1386(o.officials); | 870 checkUnnamed477(o.officials); |
844 } | 871 } |
845 buildCounterRepresentativeInfoData--; | 872 buildCounterRepresentativeInfoData--; |
846 } | 873 } |
847 | 874 |
848 buildUnnamed1387() { | 875 buildUnnamed478() { |
849 var o = new core.Map<core.String, api.GeographicDivision>(); | 876 var o = new core.Map<core.String, api.GeographicDivision>(); |
850 o["x"] = buildGeographicDivision(); | 877 o["x"] = buildGeographicDivision(); |
851 o["y"] = buildGeographicDivision(); | 878 o["y"] = buildGeographicDivision(); |
852 return o; | 879 return o; |
853 } | 880 } |
854 | 881 |
855 checkUnnamed1387(core.Map<core.String, api.GeographicDivision> o) { | 882 checkUnnamed478(core.Map<core.String, api.GeographicDivision> o) { |
856 unittest.expect(o, unittest.hasLength(2)); | 883 unittest.expect(o, unittest.hasLength(2)); |
857 checkGeographicDivision(o["x"]); | 884 checkGeographicDivision(o["x"]); |
858 checkGeographicDivision(o["y"]); | 885 checkGeographicDivision(o["y"]); |
859 } | 886 } |
860 | 887 |
861 buildUnnamed1388() { | 888 buildUnnamed479() { |
862 var o = new core.List<api.Office>(); | 889 var o = new core.List<api.Office>(); |
863 o.add(buildOffice()); | 890 o.add(buildOffice()); |
864 o.add(buildOffice()); | 891 o.add(buildOffice()); |
865 return o; | 892 return o; |
866 } | 893 } |
867 | 894 |
868 checkUnnamed1388(core.List<api.Office> o) { | 895 checkUnnamed479(core.List<api.Office> o) { |
869 unittest.expect(o, unittest.hasLength(2)); | 896 unittest.expect(o, unittest.hasLength(2)); |
870 checkOffice(o[0]); | 897 checkOffice(o[0]); |
871 checkOffice(o[1]); | 898 checkOffice(o[1]); |
872 } | 899 } |
873 | 900 |
874 buildUnnamed1389() { | 901 buildUnnamed480() { |
875 var o = new core.List<api.Official>(); | 902 var o = new core.List<api.Official>(); |
876 o.add(buildOfficial()); | 903 o.add(buildOfficial()); |
877 o.add(buildOfficial()); | 904 o.add(buildOfficial()); |
878 return o; | 905 return o; |
879 } | 906 } |
880 | 907 |
881 checkUnnamed1389(core.List<api.Official> o) { | 908 checkUnnamed480(core.List<api.Official> o) { |
882 unittest.expect(o, unittest.hasLength(2)); | 909 unittest.expect(o, unittest.hasLength(2)); |
883 checkOfficial(o[0]); | 910 checkOfficial(o[0]); |
884 checkOfficial(o[1]); | 911 checkOfficial(o[1]); |
885 } | 912 } |
886 | 913 |
887 core.int buildCounterRepresentativeInfoResponse = 0; | 914 core.int buildCounterRepresentativeInfoResponse = 0; |
888 buildRepresentativeInfoResponse() { | 915 buildRepresentativeInfoResponse() { |
889 var o = new api.RepresentativeInfoResponse(); | 916 var o = new api.RepresentativeInfoResponse(); |
890 buildCounterRepresentativeInfoResponse++; | 917 buildCounterRepresentativeInfoResponse++; |
891 if (buildCounterRepresentativeInfoResponse < 3) { | 918 if (buildCounterRepresentativeInfoResponse < 3) { |
892 o.divisions = buildUnnamed1387(); | 919 o.divisions = buildUnnamed478(); |
893 o.kind = "foo"; | 920 o.kind = "foo"; |
894 o.normalizedInput = buildSimpleAddressType(); | 921 o.normalizedInput = buildSimpleAddressType(); |
895 o.offices = buildUnnamed1388(); | 922 o.offices = buildUnnamed479(); |
896 o.officials = buildUnnamed1389(); | 923 o.officials = buildUnnamed480(); |
897 } | 924 } |
898 buildCounterRepresentativeInfoResponse--; | 925 buildCounterRepresentativeInfoResponse--; |
899 return o; | 926 return o; |
900 } | 927 } |
901 | 928 |
902 checkRepresentativeInfoResponse(api.RepresentativeInfoResponse o) { | 929 checkRepresentativeInfoResponse(api.RepresentativeInfoResponse o) { |
903 buildCounterRepresentativeInfoResponse++; | 930 buildCounterRepresentativeInfoResponse++; |
904 if (buildCounterRepresentativeInfoResponse < 3) { | 931 if (buildCounterRepresentativeInfoResponse < 3) { |
905 checkUnnamed1387(o.divisions); | 932 checkUnnamed478(o.divisions); |
906 unittest.expect(o.kind, unittest.equals('foo')); | 933 unittest.expect(o.kind, unittest.equals('foo')); |
907 checkSimpleAddressType(o.normalizedInput); | 934 checkSimpleAddressType(o.normalizedInput); |
908 checkUnnamed1388(o.offices); | 935 checkUnnamed479(o.offices); |
909 checkUnnamed1389(o.officials); | 936 checkUnnamed480(o.officials); |
910 } | 937 } |
911 buildCounterRepresentativeInfoResponse--; | 938 buildCounterRepresentativeInfoResponse--; |
912 } | 939 } |
913 | 940 |
914 core.int buildCounterSimpleAddressType = 0; | 941 core.int buildCounterSimpleAddressType = 0; |
915 buildSimpleAddressType() { | 942 buildSimpleAddressType() { |
916 var o = new api.SimpleAddressType(); | 943 var o = new api.SimpleAddressType(); |
917 buildCounterSimpleAddressType++; | 944 buildCounterSimpleAddressType++; |
918 if (buildCounterSimpleAddressType < 3) { | 945 if (buildCounterSimpleAddressType < 3) { |
919 o.city = "foo"; | 946 o.city = "foo"; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
956 | 983 |
957 checkSource(api.Source o) { | 984 checkSource(api.Source o) { |
958 buildCounterSource++; | 985 buildCounterSource++; |
959 if (buildCounterSource < 3) { | 986 if (buildCounterSource < 3) { |
960 unittest.expect(o.name, unittest.equals('foo')); | 987 unittest.expect(o.name, unittest.equals('foo')); |
961 unittest.expect(o.official, unittest.isTrue); | 988 unittest.expect(o.official, unittest.isTrue); |
962 } | 989 } |
963 buildCounterSource--; | 990 buildCounterSource--; |
964 } | 991 } |
965 | 992 |
966 buildUnnamed1390() { | 993 buildUnnamed481() { |
967 var o = new core.List<api.Contest>(); | 994 var o = new core.List<api.Contest>(); |
968 o.add(buildContest()); | 995 o.add(buildContest()); |
969 o.add(buildContest()); | 996 o.add(buildContest()); |
970 return o; | 997 return o; |
971 } | 998 } |
972 | 999 |
973 checkUnnamed1390(core.List<api.Contest> o) { | 1000 checkUnnamed481(core.List<api.Contest> o) { |
974 unittest.expect(o, unittest.hasLength(2)); | 1001 unittest.expect(o, unittest.hasLength(2)); |
975 checkContest(o[0]); | 1002 checkContest(o[0]); |
976 checkContest(o[1]); | 1003 checkContest(o[1]); |
977 } | 1004 } |
978 | 1005 |
979 buildUnnamed1391() { | 1006 buildUnnamed482() { |
980 var o = new core.List<api.PollingLocation>(); | 1007 var o = new core.List<api.PollingLocation>(); |
981 o.add(buildPollingLocation()); | 1008 o.add(buildPollingLocation()); |
982 o.add(buildPollingLocation()); | 1009 o.add(buildPollingLocation()); |
983 return o; | 1010 return o; |
984 } | 1011 } |
985 | 1012 |
986 checkUnnamed1391(core.List<api.PollingLocation> o) { | 1013 checkUnnamed482(core.List<api.PollingLocation> o) { |
987 unittest.expect(o, unittest.hasLength(2)); | 1014 unittest.expect(o, unittest.hasLength(2)); |
988 checkPollingLocation(o[0]); | 1015 checkPollingLocation(o[0]); |
989 checkPollingLocation(o[1]); | 1016 checkPollingLocation(o[1]); |
990 } | 1017 } |
991 | 1018 |
992 buildUnnamed1392() { | 1019 buildUnnamed483() { |
993 var o = new core.List<api.PollingLocation>(); | 1020 var o = new core.List<api.PollingLocation>(); |
994 o.add(buildPollingLocation()); | 1021 o.add(buildPollingLocation()); |
995 o.add(buildPollingLocation()); | 1022 o.add(buildPollingLocation()); |
996 return o; | 1023 return o; |
997 } | 1024 } |
998 | 1025 |
999 checkUnnamed1392(core.List<api.PollingLocation> o) { | 1026 checkUnnamed483(core.List<api.PollingLocation> o) { |
1000 unittest.expect(o, unittest.hasLength(2)); | 1027 unittest.expect(o, unittest.hasLength(2)); |
1001 checkPollingLocation(o[0]); | 1028 checkPollingLocation(o[0]); |
1002 checkPollingLocation(o[1]); | 1029 checkPollingLocation(o[1]); |
1003 } | 1030 } |
1004 | 1031 |
1005 buildUnnamed1393() { | 1032 buildUnnamed484() { |
1006 var o = new core.List<api.Election>(); | 1033 var o = new core.List<api.Election>(); |
1007 o.add(buildElection()); | 1034 o.add(buildElection()); |
1008 o.add(buildElection()); | 1035 o.add(buildElection()); |
1009 return o; | 1036 return o; |
1010 } | 1037 } |
1011 | 1038 |
1012 checkUnnamed1393(core.List<api.Election> o) { | 1039 checkUnnamed484(core.List<api.Election> o) { |
1013 unittest.expect(o, unittest.hasLength(2)); | 1040 unittest.expect(o, unittest.hasLength(2)); |
1014 checkElection(o[0]); | 1041 checkElection(o[0]); |
1015 checkElection(o[1]); | 1042 checkElection(o[1]); |
1016 } | 1043 } |
1017 | 1044 |
1018 buildUnnamed1394() { | 1045 buildUnnamed485() { |
1019 var o = new core.List<api.PollingLocation>(); | 1046 var o = new core.List<api.PollingLocation>(); |
1020 o.add(buildPollingLocation()); | 1047 o.add(buildPollingLocation()); |
1021 o.add(buildPollingLocation()); | 1048 o.add(buildPollingLocation()); |
1022 return o; | 1049 return o; |
1023 } | 1050 } |
1024 | 1051 |
1025 checkUnnamed1394(core.List<api.PollingLocation> o) { | 1052 checkUnnamed485(core.List<api.PollingLocation> o) { |
1026 unittest.expect(o, unittest.hasLength(2)); | 1053 unittest.expect(o, unittest.hasLength(2)); |
1027 checkPollingLocation(o[0]); | 1054 checkPollingLocation(o[0]); |
1028 checkPollingLocation(o[1]); | 1055 checkPollingLocation(o[1]); |
1029 } | 1056 } |
1030 | 1057 |
1031 buildUnnamed1395() { | 1058 buildUnnamed486() { |
1032 var o = new core.List<api.AdministrationRegion>(); | 1059 var o = new core.List<api.AdministrationRegion>(); |
1033 o.add(buildAdministrationRegion()); | 1060 o.add(buildAdministrationRegion()); |
1034 o.add(buildAdministrationRegion()); | 1061 o.add(buildAdministrationRegion()); |
1035 return o; | 1062 return o; |
1036 } | 1063 } |
1037 | 1064 |
1038 checkUnnamed1395(core.List<api.AdministrationRegion> o) { | 1065 checkUnnamed486(core.List<api.AdministrationRegion> o) { |
1039 unittest.expect(o, unittest.hasLength(2)); | 1066 unittest.expect(o, unittest.hasLength(2)); |
1040 checkAdministrationRegion(o[0]); | 1067 checkAdministrationRegion(o[0]); |
1041 checkAdministrationRegion(o[1]); | 1068 checkAdministrationRegion(o[1]); |
1042 } | 1069 } |
1043 | 1070 |
1044 core.int buildCounterVoterInfoResponse = 0; | 1071 core.int buildCounterVoterInfoResponse = 0; |
1045 buildVoterInfoResponse() { | 1072 buildVoterInfoResponse() { |
1046 var o = new api.VoterInfoResponse(); | 1073 var o = new api.VoterInfoResponse(); |
1047 buildCounterVoterInfoResponse++; | 1074 buildCounterVoterInfoResponse++; |
1048 if (buildCounterVoterInfoResponse < 3) { | 1075 if (buildCounterVoterInfoResponse < 3) { |
1049 o.contests = buildUnnamed1390(); | 1076 o.contests = buildUnnamed481(); |
1050 o.dropOffLocations = buildUnnamed1391(); | 1077 o.dropOffLocations = buildUnnamed482(); |
1051 o.earlyVoteSites = buildUnnamed1392(); | 1078 o.earlyVoteSites = buildUnnamed483(); |
1052 o.election = buildElection(); | 1079 o.election = buildElection(); |
1053 o.kind = "foo"; | 1080 o.kind = "foo"; |
| 1081 o.mailOnly = true; |
1054 o.normalizedInput = buildSimpleAddressType(); | 1082 o.normalizedInput = buildSimpleAddressType(); |
1055 o.otherElections = buildUnnamed1393(); | 1083 o.otherElections = buildUnnamed484(); |
1056 o.pollingLocations = buildUnnamed1394(); | 1084 o.pollingLocations = buildUnnamed485(); |
1057 o.precinctId = "foo"; | 1085 o.precinctId = "foo"; |
1058 o.state = buildUnnamed1395(); | 1086 o.state = buildUnnamed486(); |
1059 } | 1087 } |
1060 buildCounterVoterInfoResponse--; | 1088 buildCounterVoterInfoResponse--; |
1061 return o; | 1089 return o; |
1062 } | 1090 } |
1063 | 1091 |
1064 checkVoterInfoResponse(api.VoterInfoResponse o) { | 1092 checkVoterInfoResponse(api.VoterInfoResponse o) { |
1065 buildCounterVoterInfoResponse++; | 1093 buildCounterVoterInfoResponse++; |
1066 if (buildCounterVoterInfoResponse < 3) { | 1094 if (buildCounterVoterInfoResponse < 3) { |
1067 checkUnnamed1390(o.contests); | 1095 checkUnnamed481(o.contests); |
1068 checkUnnamed1391(o.dropOffLocations); | 1096 checkUnnamed482(o.dropOffLocations); |
1069 checkUnnamed1392(o.earlyVoteSites); | 1097 checkUnnamed483(o.earlyVoteSites); |
1070 checkElection(o.election); | 1098 checkElection(o.election); |
1071 unittest.expect(o.kind, unittest.equals('foo')); | 1099 unittest.expect(o.kind, unittest.equals('foo')); |
| 1100 unittest.expect(o.mailOnly, unittest.isTrue); |
1072 checkSimpleAddressType(o.normalizedInput); | 1101 checkSimpleAddressType(o.normalizedInput); |
1073 checkUnnamed1393(o.otherElections); | 1102 checkUnnamed484(o.otherElections); |
1074 checkUnnamed1394(o.pollingLocations); | 1103 checkUnnamed485(o.pollingLocations); |
1075 unittest.expect(o.precinctId, unittest.equals('foo')); | 1104 unittest.expect(o.precinctId, unittest.equals('foo')); |
1076 checkUnnamed1395(o.state); | 1105 checkUnnamed486(o.state); |
1077 } | 1106 } |
1078 buildCounterVoterInfoResponse--; | 1107 buildCounterVoterInfoResponse--; |
1079 } | 1108 } |
1080 | 1109 |
1081 buildUnnamed1396() { | 1110 buildUnnamed487() { |
1082 var o = new core.List<core.String>(); | 1111 var o = new core.List<core.String>(); |
1083 o.add("foo"); | 1112 o.add("foo"); |
1084 o.add("foo"); | 1113 o.add("foo"); |
1085 return o; | 1114 return o; |
1086 } | 1115 } |
1087 | 1116 |
1088 checkUnnamed1396(core.List<core.String> o) { | 1117 checkUnnamed487(core.List<core.String> o) { |
1089 unittest.expect(o, unittest.hasLength(2)); | 1118 unittest.expect(o, unittest.hasLength(2)); |
1090 unittest.expect(o[0], unittest.equals('foo')); | 1119 unittest.expect(o[0], unittest.equals('foo')); |
1091 unittest.expect(o[1], unittest.equals('foo')); | 1120 unittest.expect(o[1], unittest.equals('foo')); |
1092 } | 1121 } |
1093 | 1122 |
1094 buildUnnamed1397() { | 1123 buildUnnamed488() { |
1095 var o = new core.List<core.String>(); | 1124 var o = new core.List<core.String>(); |
1096 o.add("foo"); | 1125 o.add("foo"); |
1097 o.add("foo"); | 1126 o.add("foo"); |
1098 return o; | 1127 return o; |
1099 } | 1128 } |
1100 | 1129 |
1101 checkUnnamed1397(core.List<core.String> o) { | 1130 checkUnnamed488(core.List<core.String> o) { |
1102 unittest.expect(o, unittest.hasLength(2)); | 1131 unittest.expect(o, unittest.hasLength(2)); |
1103 unittest.expect(o[0], unittest.equals('foo')); | 1132 unittest.expect(o[0], unittest.equals('foo')); |
1104 unittest.expect(o[1], unittest.equals('foo')); | 1133 unittest.expect(o[1], unittest.equals('foo')); |
1105 } | 1134 } |
1106 | 1135 |
1107 buildUnnamed1398() { | 1136 buildUnnamed489() { |
1108 var o = new core.List<core.String>(); | 1137 var o = new core.List<core.String>(); |
1109 o.add("foo"); | 1138 o.add("foo"); |
1110 o.add("foo"); | 1139 o.add("foo"); |
1111 return o; | 1140 return o; |
1112 } | 1141 } |
1113 | 1142 |
1114 checkUnnamed1398(core.List<core.String> o) { | 1143 checkUnnamed489(core.List<core.String> o) { |
1115 unittest.expect(o, unittest.hasLength(2)); | 1144 unittest.expect(o, unittest.hasLength(2)); |
1116 unittest.expect(o[0], unittest.equals('foo')); | 1145 unittest.expect(o[0], unittest.equals('foo')); |
1117 unittest.expect(o[1], unittest.equals('foo')); | 1146 unittest.expect(o[1], unittest.equals('foo')); |
1118 } | 1147 } |
1119 | 1148 |
1120 buildUnnamed1399() { | 1149 buildUnnamed490() { |
1121 var o = new core.List<core.String>(); | 1150 var o = new core.List<core.String>(); |
1122 o.add("foo"); | 1151 o.add("foo"); |
1123 o.add("foo"); | 1152 o.add("foo"); |
1124 return o; | 1153 return o; |
1125 } | 1154 } |
1126 | 1155 |
1127 checkUnnamed1399(core.List<core.String> o) { | 1156 checkUnnamed490(core.List<core.String> o) { |
1128 unittest.expect(o, unittest.hasLength(2)); | 1157 unittest.expect(o, unittest.hasLength(2)); |
1129 unittest.expect(o[0], unittest.equals('foo')); | 1158 unittest.expect(o[0], unittest.equals('foo')); |
1130 unittest.expect(o[1], unittest.equals('foo')); | 1159 unittest.expect(o[1], unittest.equals('foo')); |
1131 } | 1160 } |
1132 | 1161 |
1133 | 1162 |
1134 main() { | 1163 main() { |
1135 unittest.group("obj-schema-AdministrationRegion", () { | 1164 unittest.group("obj-schema-AdministrationRegion", () { |
1136 unittest.test("to-json--from-json", () { | 1165 unittest.test("to-json--from-json", () { |
1137 var o = buildAdministrationRegion(); | 1166 var o = buildAdministrationRegion(); |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1463 }); | 1492 }); |
1464 | 1493 |
1465 | 1494 |
1466 unittest.group("resource-RepresentativesResourceApi", () { | 1495 unittest.group("resource-RepresentativesResourceApi", () { |
1467 unittest.test("method--representativeInfoByAddress", () { | 1496 unittest.test("method--representativeInfoByAddress", () { |
1468 | 1497 |
1469 var mock = new HttpServerMock(); | 1498 var mock = new HttpServerMock(); |
1470 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa
tives; | 1499 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa
tives; |
1471 var arg_address = "foo"; | 1500 var arg_address = "foo"; |
1472 var arg_includeOffices = true; | 1501 var arg_includeOffices = true; |
1473 var arg_levels = buildUnnamed1396(); | 1502 var arg_levels = buildUnnamed487(); |
1474 var arg_roles = buildUnnamed1397(); | 1503 var arg_roles = buildUnnamed488(); |
1475 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1504 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1476 var path = (req.url).path; | 1505 var path = (req.url).path; |
1477 var pathOffset = 0; | 1506 var pathOffset = 0; |
1478 var index; | 1507 var index; |
1479 var subPart; | 1508 var subPart; |
1480 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1509 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1481 pathOffset += 1; | 1510 pathOffset += 1; |
1482 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("civicinfo/v2/")); | 1511 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("civicinfo/v2/")); |
1483 pathOffset += 13; | 1512 pathOffset += 13; |
1484 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("representatives")); | 1513 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("representatives")); |
(...skipping 30 matching lines...) Expand all Loading... |
1515 res.representativeInfoByAddress(address: arg_address, includeOffices: arg_
includeOffices, levels: arg_levels, roles: arg_roles).then(unittest.expectAsync(
((api.RepresentativeInfoResponse response) { | 1544 res.representativeInfoByAddress(address: arg_address, includeOffices: arg_
includeOffices, levels: arg_levels, roles: arg_roles).then(unittest.expectAsync(
((api.RepresentativeInfoResponse response) { |
1516 checkRepresentativeInfoResponse(response); | 1545 checkRepresentativeInfoResponse(response); |
1517 }))); | 1546 }))); |
1518 }); | 1547 }); |
1519 | 1548 |
1520 unittest.test("method--representativeInfoByDivision", () { | 1549 unittest.test("method--representativeInfoByDivision", () { |
1521 | 1550 |
1522 var mock = new HttpServerMock(); | 1551 var mock = new HttpServerMock(); |
1523 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa
tives; | 1552 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa
tives; |
1524 var arg_ocdId = "foo"; | 1553 var arg_ocdId = "foo"; |
1525 var arg_levels = buildUnnamed1398(); | 1554 var arg_levels = buildUnnamed489(); |
1526 var arg_recursive = true; | 1555 var arg_recursive = true; |
1527 var arg_roles = buildUnnamed1399(); | 1556 var arg_roles = buildUnnamed490(); |
1528 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1557 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1529 var path = (req.url).path; | 1558 var path = (req.url).path; |
1530 var pathOffset = 0; | 1559 var pathOffset = 0; |
1531 var index; | 1560 var index; |
1532 var subPart; | 1561 var subPart; |
1533 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1562 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1534 pathOffset += 1; | 1563 pathOffset += 1; |
1535 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("civicinfo/v2/")); | 1564 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("civicinfo/v2/")); |
1536 pathOffset += 13; | 1565 pathOffset += 13; |
1537 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("representatives/")); | 1566 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("representatives/")); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1570 res.representativeInfoByDivision(arg_ocdId, levels: arg_levels, recursive:
arg_recursive, roles: arg_roles).then(unittest.expectAsync(((api.Representative
InfoData response) { | 1599 res.representativeInfoByDivision(arg_ocdId, levels: arg_levels, recursive:
arg_recursive, roles: arg_roles).then(unittest.expectAsync(((api.Representative
InfoData response) { |
1571 checkRepresentativeInfoData(response); | 1600 checkRepresentativeInfoData(response); |
1572 }))); | 1601 }))); |
1573 }); | 1602 }); |
1574 | 1603 |
1575 }); | 1604 }); |
1576 | 1605 |
1577 | 1606 |
1578 } | 1607 } |
1579 | 1608 |
OLD | NEW |