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 buildUnnamed572() { | 54 buildUnnamed2427() { |
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 checkUnnamed572(core.List<api.Source> o) { | 61 checkUnnamed2427(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 = buildUnnamed572(); | 76 o.sources = buildUnnamed2427(); |
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 checkUnnamed572(o.sources); | 89 checkUnnamed2427(o.sources); |
90 } | 90 } |
91 buildCounterAdministrationRegion--; | 91 buildCounterAdministrationRegion--; |
92 } | 92 } |
93 | 93 |
94 buildUnnamed573() { | 94 buildUnnamed2428() { |
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 checkUnnamed573(core.List<api.ElectionOfficial> o) { | 101 checkUnnamed2428(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 buildUnnamed574() { | 107 buildUnnamed2429() { |
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 checkUnnamed574(core.List<core.String> o) { | 114 checkUnnamed2429(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 = buildUnnamed573(); | 129 o.electionOfficials = buildUnnamed2428(); |
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 = buildUnnamed574(); | 136 o.voterServices = buildUnnamed2429(); |
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 checkUnnamed573(o.electionOfficials); | 150 checkUnnamed2428(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 checkUnnamed574(o.voterServices); | 157 checkUnnamed2429(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 buildUnnamed575() { | 163 buildUnnamed2430() { |
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 checkUnnamed575(core.List<api.Channel> o) { | 170 checkUnnamed2430(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 = buildUnnamed575(); | 182 o.channels = buildUnnamed2430(); |
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 checkUnnamed575(o.channels); | 198 checkUnnamed2430(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 buildUnnamed576() { | 230 buildUnnamed2431() { |
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 checkUnnamed576(core.List<api.Candidate> o) { | 237 checkUnnamed2431(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 buildUnnamed577() { | 243 buildUnnamed2432() { |
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 checkUnnamed577(core.List<core.String> o) { | 250 checkUnnamed2432(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 buildUnnamed578() { | 256 buildUnnamed2433() { |
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 checkUnnamed578(core.List<core.String> o) { | 263 checkUnnamed2433(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 buildUnnamed579() { | 269 buildUnnamed2434() { |
270 var o = new core.List<core.String>(); | 270 var o = new core.List<core.String>(); |
271 o.add("foo"); | 271 o.add("foo"); |
272 o.add("foo"); | 272 o.add("foo"); |
273 return o; | 273 return o; |
274 } | 274 } |
275 | 275 |
276 checkUnnamed579(core.List<core.String> o) { | 276 checkUnnamed2434(core.List<core.String> o) { |
277 unittest.expect(o, unittest.hasLength(2)); | 277 unittest.expect(o, unittest.hasLength(2)); |
278 unittest.expect(o[0], unittest.equals('foo')); | 278 unittest.expect(o[0], unittest.equals('foo')); |
279 unittest.expect(o[1], unittest.equals('foo')); | 279 unittest.expect(o[1], unittest.equals('foo')); |
280 } | 280 } |
281 | 281 |
282 buildUnnamed580() { | 282 buildUnnamed2435() { |
283 var o = new core.List<api.Source>(); | 283 var o = new core.List<api.Source>(); |
284 o.add(buildSource()); | 284 o.add(buildSource()); |
285 o.add(buildSource()); | 285 o.add(buildSource()); |
286 return o; | 286 return o; |
287 } | 287 } |
288 | 288 |
289 checkUnnamed580(core.List<api.Source> o) { | 289 checkUnnamed2435(core.List<api.Source> o) { |
290 unittest.expect(o, unittest.hasLength(2)); | 290 unittest.expect(o, unittest.hasLength(2)); |
291 checkSource(o[0]); | 291 checkSource(o[0]); |
292 checkSource(o[1]); | 292 checkSource(o[1]); |
293 } | 293 } |
294 | 294 |
295 core.int buildCounterContest = 0; | 295 core.int buildCounterContest = 0; |
296 buildContest() { | 296 buildContest() { |
297 var o = new api.Contest(); | 297 var o = new api.Contest(); |
298 buildCounterContest++; | 298 buildCounterContest++; |
299 if (buildCounterContest < 3) { | 299 if (buildCounterContest < 3) { |
300 o.ballotPlacement = "foo"; | 300 o.ballotPlacement = "foo"; |
301 o.candidates = buildUnnamed576(); | 301 o.candidates = buildUnnamed2431(); |
302 o.district = buildElectoralDistrict(); | 302 o.district = buildElectoralDistrict(); |
303 o.electorateSpecifications = "foo"; | 303 o.electorateSpecifications = "foo"; |
304 o.id = "foo"; | 304 o.id = "foo"; |
305 o.level = buildUnnamed577(); | 305 o.level = buildUnnamed2432(); |
306 o.numberElected = "foo"; | 306 o.numberElected = "foo"; |
307 o.numberVotingFor = "foo"; | 307 o.numberVotingFor = "foo"; |
308 o.office = "foo"; | 308 o.office = "foo"; |
309 o.primaryParty = "foo"; | 309 o.primaryParty = "foo"; |
310 o.referendumBallotResponses = buildUnnamed578(); | 310 o.referendumBallotResponses = buildUnnamed2433(); |
311 o.referendumBrief = "foo"; | 311 o.referendumBrief = "foo"; |
312 o.referendumConStatement = "foo"; | 312 o.referendumConStatement = "foo"; |
313 o.referendumEffectOfAbstain = "foo"; | 313 o.referendumEffectOfAbstain = "foo"; |
314 o.referendumPassageThreshold = "foo"; | 314 o.referendumPassageThreshold = "foo"; |
315 o.referendumProStatement = "foo"; | 315 o.referendumProStatement = "foo"; |
316 o.referendumSubtitle = "foo"; | 316 o.referendumSubtitle = "foo"; |
317 o.referendumText = "foo"; | 317 o.referendumText = "foo"; |
318 o.referendumTitle = "foo"; | 318 o.referendumTitle = "foo"; |
319 o.referendumUrl = "foo"; | 319 o.referendumUrl = "foo"; |
320 o.roles = buildUnnamed579(); | 320 o.roles = buildUnnamed2434(); |
321 o.sources = buildUnnamed580(); | 321 o.sources = buildUnnamed2435(); |
322 o.special = "foo"; | 322 o.special = "foo"; |
323 o.type = "foo"; | 323 o.type = "foo"; |
324 } | 324 } |
325 buildCounterContest--; | 325 buildCounterContest--; |
326 return o; | 326 return o; |
327 } | 327 } |
328 | 328 |
329 checkContest(api.Contest o) { | 329 checkContest(api.Contest o) { |
330 buildCounterContest++; | 330 buildCounterContest++; |
331 if (buildCounterContest < 3) { | 331 if (buildCounterContest < 3) { |
332 unittest.expect(o.ballotPlacement, unittest.equals('foo')); | 332 unittest.expect(o.ballotPlacement, unittest.equals('foo')); |
333 checkUnnamed576(o.candidates); | 333 checkUnnamed2431(o.candidates); |
334 checkElectoralDistrict(o.district); | 334 checkElectoralDistrict(o.district); |
335 unittest.expect(o.electorateSpecifications, unittest.equals('foo')); | 335 unittest.expect(o.electorateSpecifications, unittest.equals('foo')); |
336 unittest.expect(o.id, unittest.equals('foo')); | 336 unittest.expect(o.id, unittest.equals('foo')); |
337 checkUnnamed577(o.level); | 337 checkUnnamed2432(o.level); |
338 unittest.expect(o.numberElected, unittest.equals('foo')); | 338 unittest.expect(o.numberElected, unittest.equals('foo')); |
339 unittest.expect(o.numberVotingFor, unittest.equals('foo')); | 339 unittest.expect(o.numberVotingFor, unittest.equals('foo')); |
340 unittest.expect(o.office, unittest.equals('foo')); | 340 unittest.expect(o.office, unittest.equals('foo')); |
341 unittest.expect(o.primaryParty, unittest.equals('foo')); | 341 unittest.expect(o.primaryParty, unittest.equals('foo')); |
342 checkUnnamed578(o.referendumBallotResponses); | 342 checkUnnamed2433(o.referendumBallotResponses); |
343 unittest.expect(o.referendumBrief, unittest.equals('foo')); | 343 unittest.expect(o.referendumBrief, unittest.equals('foo')); |
344 unittest.expect(o.referendumConStatement, unittest.equals('foo')); | 344 unittest.expect(o.referendumConStatement, unittest.equals('foo')); |
345 unittest.expect(o.referendumEffectOfAbstain, unittest.equals('foo')); | 345 unittest.expect(o.referendumEffectOfAbstain, unittest.equals('foo')); |
346 unittest.expect(o.referendumPassageThreshold, unittest.equals('foo')); | 346 unittest.expect(o.referendumPassageThreshold, unittest.equals('foo')); |
347 unittest.expect(o.referendumProStatement, unittest.equals('foo')); | 347 unittest.expect(o.referendumProStatement, unittest.equals('foo')); |
348 unittest.expect(o.referendumSubtitle, unittest.equals('foo')); | 348 unittest.expect(o.referendumSubtitle, unittest.equals('foo')); |
349 unittest.expect(o.referendumText, unittest.equals('foo')); | 349 unittest.expect(o.referendumText, unittest.equals('foo')); |
350 unittest.expect(o.referendumTitle, unittest.equals('foo')); | 350 unittest.expect(o.referendumTitle, unittest.equals('foo')); |
351 unittest.expect(o.referendumUrl, unittest.equals('foo')); | 351 unittest.expect(o.referendumUrl, unittest.equals('foo')); |
352 checkUnnamed579(o.roles); | 352 checkUnnamed2434(o.roles); |
353 checkUnnamed580(o.sources); | 353 checkUnnamed2435(o.sources); |
354 unittest.expect(o.special, unittest.equals('foo')); | 354 unittest.expect(o.special, unittest.equals('foo')); |
355 unittest.expect(o.type, unittest.equals('foo')); | 355 unittest.expect(o.type, unittest.equals('foo')); |
356 } | 356 } |
357 buildCounterContest--; | 357 buildCounterContest--; |
358 } | 358 } |
359 | 359 |
360 buildUnnamed581() { | 360 buildUnnamed2436() { |
361 var o = new core.List<api.DivisionSearchResult>(); | 361 var o = new core.List<api.DivisionSearchResult>(); |
362 o.add(buildDivisionSearchResult()); | 362 o.add(buildDivisionSearchResult()); |
363 o.add(buildDivisionSearchResult()); | 363 o.add(buildDivisionSearchResult()); |
364 return o; | 364 return o; |
365 } | 365 } |
366 | 366 |
367 checkUnnamed581(core.List<api.DivisionSearchResult> o) { | 367 checkUnnamed2436(core.List<api.DivisionSearchResult> o) { |
368 unittest.expect(o, unittest.hasLength(2)); | 368 unittest.expect(o, unittest.hasLength(2)); |
369 checkDivisionSearchResult(o[0]); | 369 checkDivisionSearchResult(o[0]); |
370 checkDivisionSearchResult(o[1]); | 370 checkDivisionSearchResult(o[1]); |
371 } | 371 } |
372 | 372 |
373 core.int buildCounterDivisionSearchResponse = 0; | 373 core.int buildCounterDivisionSearchResponse = 0; |
374 buildDivisionSearchResponse() { | 374 buildDivisionSearchResponse() { |
375 var o = new api.DivisionSearchResponse(); | 375 var o = new api.DivisionSearchResponse(); |
376 buildCounterDivisionSearchResponse++; | 376 buildCounterDivisionSearchResponse++; |
377 if (buildCounterDivisionSearchResponse < 3) { | 377 if (buildCounterDivisionSearchResponse < 3) { |
378 o.kind = "foo"; | 378 o.kind = "foo"; |
379 o.results = buildUnnamed581(); | 379 o.results = buildUnnamed2436(); |
380 } | 380 } |
381 buildCounterDivisionSearchResponse--; | 381 buildCounterDivisionSearchResponse--; |
382 return o; | 382 return o; |
383 } | 383 } |
384 | 384 |
385 checkDivisionSearchResponse(api.DivisionSearchResponse o) { | 385 checkDivisionSearchResponse(api.DivisionSearchResponse o) { |
386 buildCounterDivisionSearchResponse++; | 386 buildCounterDivisionSearchResponse++; |
387 if (buildCounterDivisionSearchResponse < 3) { | 387 if (buildCounterDivisionSearchResponse < 3) { |
388 unittest.expect(o.kind, unittest.equals('foo')); | 388 unittest.expect(o.kind, unittest.equals('foo')); |
389 checkUnnamed581(o.results); | 389 checkUnnamed2436(o.results); |
390 } | 390 } |
391 buildCounterDivisionSearchResponse--; | 391 buildCounterDivisionSearchResponse--; |
392 } | 392 } |
393 | 393 |
394 buildUnnamed582() { | 394 buildUnnamed2437() { |
395 var o = new core.List<core.String>(); | 395 var o = new core.List<core.String>(); |
396 o.add("foo"); | 396 o.add("foo"); |
397 o.add("foo"); | 397 o.add("foo"); |
398 return o; | 398 return o; |
399 } | 399 } |
400 | 400 |
401 checkUnnamed582(core.List<core.String> o) { | 401 checkUnnamed2437(core.List<core.String> o) { |
402 unittest.expect(o, unittest.hasLength(2)); | 402 unittest.expect(o, unittest.hasLength(2)); |
403 unittest.expect(o[0], unittest.equals('foo')); | 403 unittest.expect(o[0], unittest.equals('foo')); |
404 unittest.expect(o[1], unittest.equals('foo')); | 404 unittest.expect(o[1], unittest.equals('foo')); |
405 } | 405 } |
406 | 406 |
407 core.int buildCounterDivisionSearchResult = 0; | 407 core.int buildCounterDivisionSearchResult = 0; |
408 buildDivisionSearchResult() { | 408 buildDivisionSearchResult() { |
409 var o = new api.DivisionSearchResult(); | 409 var o = new api.DivisionSearchResult(); |
410 buildCounterDivisionSearchResult++; | 410 buildCounterDivisionSearchResult++; |
411 if (buildCounterDivisionSearchResult < 3) { | 411 if (buildCounterDivisionSearchResult < 3) { |
412 o.aliases = buildUnnamed582(); | 412 o.aliases = buildUnnamed2437(); |
413 o.name = "foo"; | 413 o.name = "foo"; |
414 o.ocdId = "foo"; | 414 o.ocdId = "foo"; |
415 } | 415 } |
416 buildCounterDivisionSearchResult--; | 416 buildCounterDivisionSearchResult--; |
417 return o; | 417 return o; |
418 } | 418 } |
419 | 419 |
420 checkDivisionSearchResult(api.DivisionSearchResult o) { | 420 checkDivisionSearchResult(api.DivisionSearchResult o) { |
421 buildCounterDivisionSearchResult++; | 421 buildCounterDivisionSearchResult++; |
422 if (buildCounterDivisionSearchResult < 3) { | 422 if (buildCounterDivisionSearchResult < 3) { |
423 checkUnnamed582(o.aliases); | 423 checkUnnamed2437(o.aliases); |
424 unittest.expect(o.name, unittest.equals('foo')); | 424 unittest.expect(o.name, unittest.equals('foo')); |
425 unittest.expect(o.ocdId, unittest.equals('foo')); | 425 unittest.expect(o.ocdId, unittest.equals('foo')); |
426 } | 426 } |
427 buildCounterDivisionSearchResult--; | 427 buildCounterDivisionSearchResult--; |
428 } | 428 } |
429 | 429 |
430 core.int buildCounterElection = 0; | 430 core.int buildCounterElection = 0; |
431 buildElection() { | 431 buildElection() { |
432 var o = new api.Election(); | 432 var o = new api.Election(); |
433 buildCounterElection++; | 433 buildCounterElection++; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 if (buildCounterElectionOfficial < 3) { | 472 if (buildCounterElectionOfficial < 3) { |
473 unittest.expect(o.emailAddress, unittest.equals('foo')); | 473 unittest.expect(o.emailAddress, unittest.equals('foo')); |
474 unittest.expect(o.faxNumber, unittest.equals('foo')); | 474 unittest.expect(o.faxNumber, unittest.equals('foo')); |
475 unittest.expect(o.name, unittest.equals('foo')); | 475 unittest.expect(o.name, unittest.equals('foo')); |
476 unittest.expect(o.officePhoneNumber, unittest.equals('foo')); | 476 unittest.expect(o.officePhoneNumber, unittest.equals('foo')); |
477 unittest.expect(o.title, unittest.equals('foo')); | 477 unittest.expect(o.title, unittest.equals('foo')); |
478 } | 478 } |
479 buildCounterElectionOfficial--; | 479 buildCounterElectionOfficial--; |
480 } | 480 } |
481 | 481 |
482 buildUnnamed583() { | 482 buildUnnamed2438() { |
483 var o = new core.List<api.Election>(); | 483 var o = new core.List<api.Election>(); |
484 o.add(buildElection()); | 484 o.add(buildElection()); |
485 o.add(buildElection()); | 485 o.add(buildElection()); |
486 return o; | 486 return o; |
487 } | 487 } |
488 | 488 |
489 checkUnnamed583(core.List<api.Election> o) { | 489 checkUnnamed2438(core.List<api.Election> o) { |
490 unittest.expect(o, unittest.hasLength(2)); | 490 unittest.expect(o, unittest.hasLength(2)); |
491 checkElection(o[0]); | 491 checkElection(o[0]); |
492 checkElection(o[1]); | 492 checkElection(o[1]); |
493 } | 493 } |
494 | 494 |
495 core.int buildCounterElectionsQueryResponse = 0; | 495 core.int buildCounterElectionsQueryResponse = 0; |
496 buildElectionsQueryResponse() { | 496 buildElectionsQueryResponse() { |
497 var o = new api.ElectionsQueryResponse(); | 497 var o = new api.ElectionsQueryResponse(); |
498 buildCounterElectionsQueryResponse++; | 498 buildCounterElectionsQueryResponse++; |
499 if (buildCounterElectionsQueryResponse < 3) { | 499 if (buildCounterElectionsQueryResponse < 3) { |
500 o.elections = buildUnnamed583(); | 500 o.elections = buildUnnamed2438(); |
501 o.kind = "foo"; | 501 o.kind = "foo"; |
502 } | 502 } |
503 buildCounterElectionsQueryResponse--; | 503 buildCounterElectionsQueryResponse--; |
504 return o; | 504 return o; |
505 } | 505 } |
506 | 506 |
507 checkElectionsQueryResponse(api.ElectionsQueryResponse o) { | 507 checkElectionsQueryResponse(api.ElectionsQueryResponse o) { |
508 buildCounterElectionsQueryResponse++; | 508 buildCounterElectionsQueryResponse++; |
509 if (buildCounterElectionsQueryResponse < 3) { | 509 if (buildCounterElectionsQueryResponse < 3) { |
510 checkUnnamed583(o.elections); | 510 checkUnnamed2438(o.elections); |
511 unittest.expect(o.kind, unittest.equals('foo')); | 511 unittest.expect(o.kind, unittest.equals('foo')); |
512 } | 512 } |
513 buildCounterElectionsQueryResponse--; | 513 buildCounterElectionsQueryResponse--; |
514 } | 514 } |
515 | 515 |
516 core.int buildCounterElectoralDistrict = 0; | 516 core.int buildCounterElectoralDistrict = 0; |
517 buildElectoralDistrict() { | 517 buildElectoralDistrict() { |
518 var o = new api.ElectoralDistrict(); | 518 var o = new api.ElectoralDistrict(); |
519 buildCounterElectoralDistrict++; | 519 buildCounterElectoralDistrict++; |
520 if (buildCounterElectoralDistrict < 3) { | 520 if (buildCounterElectoralDistrict < 3) { |
521 o.id = "foo"; | 521 o.id = "foo"; |
522 o.name = "foo"; | 522 o.name = "foo"; |
523 o.scope = "foo"; | 523 o.scope = "foo"; |
524 } | 524 } |
525 buildCounterElectoralDistrict--; | 525 buildCounterElectoralDistrict--; |
526 return o; | 526 return o; |
527 } | 527 } |
528 | 528 |
529 checkElectoralDistrict(api.ElectoralDistrict o) { | 529 checkElectoralDistrict(api.ElectoralDistrict o) { |
530 buildCounterElectoralDistrict++; | 530 buildCounterElectoralDistrict++; |
531 if (buildCounterElectoralDistrict < 3) { | 531 if (buildCounterElectoralDistrict < 3) { |
532 unittest.expect(o.id, unittest.equals('foo')); | 532 unittest.expect(o.id, unittest.equals('foo')); |
533 unittest.expect(o.name, unittest.equals('foo')); | 533 unittest.expect(o.name, unittest.equals('foo')); |
534 unittest.expect(o.scope, unittest.equals('foo')); | 534 unittest.expect(o.scope, unittest.equals('foo')); |
535 } | 535 } |
536 buildCounterElectoralDistrict--; | 536 buildCounterElectoralDistrict--; |
537 } | 537 } |
538 | 538 |
539 buildUnnamed584() { | 539 buildUnnamed2439() { |
540 var o = new core.List<core.String>(); | 540 var o = new core.List<core.String>(); |
541 o.add("foo"); | 541 o.add("foo"); |
542 o.add("foo"); | 542 o.add("foo"); |
543 return o; | 543 return o; |
544 } | 544 } |
545 | 545 |
546 checkUnnamed584(core.List<core.String> o) { | 546 checkUnnamed2439(core.List<core.String> o) { |
547 unittest.expect(o, unittest.hasLength(2)); | 547 unittest.expect(o, unittest.hasLength(2)); |
548 unittest.expect(o[0], unittest.equals('foo')); | 548 unittest.expect(o[0], unittest.equals('foo')); |
549 unittest.expect(o[1], unittest.equals('foo')); | 549 unittest.expect(o[1], unittest.equals('foo')); |
550 } | 550 } |
551 | 551 |
552 buildUnnamed585() { | 552 buildUnnamed2440() { |
553 var o = new core.List<core.int>(); | 553 var o = new core.List<core.int>(); |
554 o.add(42); | 554 o.add(42); |
555 o.add(42); | 555 o.add(42); |
556 return o; | 556 return o; |
557 } | 557 } |
558 | 558 |
559 checkUnnamed585(core.List<core.int> o) { | 559 checkUnnamed2440(core.List<core.int> o) { |
560 unittest.expect(o, unittest.hasLength(2)); | 560 unittest.expect(o, unittest.hasLength(2)); |
561 unittest.expect(o[0], unittest.equals(42)); | 561 unittest.expect(o[0], unittest.equals(42)); |
562 unittest.expect(o[1], unittest.equals(42)); | 562 unittest.expect(o[1], unittest.equals(42)); |
563 } | 563 } |
564 | 564 |
565 core.int buildCounterGeographicDivision = 0; | 565 core.int buildCounterGeographicDivision = 0; |
566 buildGeographicDivision() { | 566 buildGeographicDivision() { |
567 var o = new api.GeographicDivision(); | 567 var o = new api.GeographicDivision(); |
568 buildCounterGeographicDivision++; | 568 buildCounterGeographicDivision++; |
569 if (buildCounterGeographicDivision < 3) { | 569 if (buildCounterGeographicDivision < 3) { |
570 o.alsoKnownAs = buildUnnamed584(); | 570 o.alsoKnownAs = buildUnnamed2439(); |
571 o.name = "foo"; | 571 o.name = "foo"; |
572 o.officeIndices = buildUnnamed585(); | 572 o.officeIndices = buildUnnamed2440(); |
573 } | 573 } |
574 buildCounterGeographicDivision--; | 574 buildCounterGeographicDivision--; |
575 return o; | 575 return o; |
576 } | 576 } |
577 | 577 |
578 checkGeographicDivision(api.GeographicDivision o) { | 578 checkGeographicDivision(api.GeographicDivision o) { |
579 buildCounterGeographicDivision++; | 579 buildCounterGeographicDivision++; |
580 if (buildCounterGeographicDivision < 3) { | 580 if (buildCounterGeographicDivision < 3) { |
581 checkUnnamed584(o.alsoKnownAs); | 581 checkUnnamed2439(o.alsoKnownAs); |
582 unittest.expect(o.name, unittest.equals('foo')); | 582 unittest.expect(o.name, unittest.equals('foo')); |
583 checkUnnamed585(o.officeIndices); | 583 checkUnnamed2440(o.officeIndices); |
584 } | 584 } |
585 buildCounterGeographicDivision--; | 585 buildCounterGeographicDivision--; |
586 } | 586 } |
587 | 587 |
588 buildUnnamed586() { | 588 buildUnnamed2441() { |
589 var o = new core.List<core.String>(); | 589 var o = new core.List<core.String>(); |
590 o.add("foo"); | 590 o.add("foo"); |
591 o.add("foo"); | 591 o.add("foo"); |
592 return o; | 592 return o; |
593 } | 593 } |
594 | 594 |
595 checkUnnamed586(core.List<core.String> o) { | 595 checkUnnamed2441(core.List<core.String> o) { |
596 unittest.expect(o, unittest.hasLength(2)); | 596 unittest.expect(o, unittest.hasLength(2)); |
597 unittest.expect(o[0], unittest.equals('foo')); | 597 unittest.expect(o[0], unittest.equals('foo')); |
598 unittest.expect(o[1], unittest.equals('foo')); | 598 unittest.expect(o[1], unittest.equals('foo')); |
599 } | 599 } |
600 | 600 |
601 buildUnnamed587() { | 601 buildUnnamed2442() { |
602 var o = new core.List<core.int>(); | 602 var o = new core.List<core.int>(); |
603 o.add(42); | 603 o.add(42); |
604 o.add(42); | 604 o.add(42); |
605 return o; | 605 return o; |
606 } | 606 } |
607 | 607 |
608 checkUnnamed587(core.List<core.int> o) { | 608 checkUnnamed2442(core.List<core.int> o) { |
609 unittest.expect(o, unittest.hasLength(2)); | 609 unittest.expect(o, unittest.hasLength(2)); |
610 unittest.expect(o[0], unittest.equals(42)); | 610 unittest.expect(o[0], unittest.equals(42)); |
611 unittest.expect(o[1], unittest.equals(42)); | 611 unittest.expect(o[1], unittest.equals(42)); |
612 } | 612 } |
613 | 613 |
614 buildUnnamed588() { | 614 buildUnnamed2443() { |
615 var o = new core.List<core.String>(); | 615 var o = new core.List<core.String>(); |
616 o.add("foo"); | 616 o.add("foo"); |
617 o.add("foo"); | 617 o.add("foo"); |
618 return o; | 618 return o; |
619 } | 619 } |
620 | 620 |
621 checkUnnamed588(core.List<core.String> o) { | 621 checkUnnamed2443(core.List<core.String> o) { |
622 unittest.expect(o, unittest.hasLength(2)); | 622 unittest.expect(o, unittest.hasLength(2)); |
623 unittest.expect(o[0], unittest.equals('foo')); | 623 unittest.expect(o[0], unittest.equals('foo')); |
624 unittest.expect(o[1], unittest.equals('foo')); | 624 unittest.expect(o[1], unittest.equals('foo')); |
625 } | 625 } |
626 | 626 |
627 buildUnnamed589() { | 627 buildUnnamed2444() { |
628 var o = new core.List<api.Source>(); | 628 var o = new core.List<api.Source>(); |
629 o.add(buildSource()); | 629 o.add(buildSource()); |
630 o.add(buildSource()); | 630 o.add(buildSource()); |
631 return o; | 631 return o; |
632 } | 632 } |
633 | 633 |
634 checkUnnamed589(core.List<api.Source> o) { | 634 checkUnnamed2444(core.List<api.Source> o) { |
635 unittest.expect(o, unittest.hasLength(2)); | 635 unittest.expect(o, unittest.hasLength(2)); |
636 checkSource(o[0]); | 636 checkSource(o[0]); |
637 checkSource(o[1]); | 637 checkSource(o[1]); |
638 } | 638 } |
639 | 639 |
640 core.int buildCounterOffice = 0; | 640 core.int buildCounterOffice = 0; |
641 buildOffice() { | 641 buildOffice() { |
642 var o = new api.Office(); | 642 var o = new api.Office(); |
643 buildCounterOffice++; | 643 buildCounterOffice++; |
644 if (buildCounterOffice < 3) { | 644 if (buildCounterOffice < 3) { |
645 o.divisionId = "foo"; | 645 o.divisionId = "foo"; |
646 o.levels = buildUnnamed586(); | 646 o.levels = buildUnnamed2441(); |
647 o.name = "foo"; | 647 o.name = "foo"; |
648 o.officialIndices = buildUnnamed587(); | 648 o.officialIndices = buildUnnamed2442(); |
649 o.roles = buildUnnamed588(); | 649 o.roles = buildUnnamed2443(); |
650 o.sources = buildUnnamed589(); | 650 o.sources = buildUnnamed2444(); |
651 } | 651 } |
652 buildCounterOffice--; | 652 buildCounterOffice--; |
653 return o; | 653 return o; |
654 } | 654 } |
655 | 655 |
656 checkOffice(api.Office o) { | 656 checkOffice(api.Office o) { |
657 buildCounterOffice++; | 657 buildCounterOffice++; |
658 if (buildCounterOffice < 3) { | 658 if (buildCounterOffice < 3) { |
659 unittest.expect(o.divisionId, unittest.equals('foo')); | 659 unittest.expect(o.divisionId, unittest.equals('foo')); |
660 checkUnnamed586(o.levels); | 660 checkUnnamed2441(o.levels); |
661 unittest.expect(o.name, unittest.equals('foo')); | 661 unittest.expect(o.name, unittest.equals('foo')); |
662 checkUnnamed587(o.officialIndices); | 662 checkUnnamed2442(o.officialIndices); |
663 checkUnnamed588(o.roles); | 663 checkUnnamed2443(o.roles); |
664 checkUnnamed589(o.sources); | 664 checkUnnamed2444(o.sources); |
665 } | 665 } |
666 buildCounterOffice--; | 666 buildCounterOffice--; |
667 } | 667 } |
668 | 668 |
669 buildUnnamed590() { | 669 buildUnnamed2445() { |
670 var o = new core.List<api.SimpleAddressType>(); | 670 var o = new core.List<api.SimpleAddressType>(); |
671 o.add(buildSimpleAddressType()); | 671 o.add(buildSimpleAddressType()); |
672 o.add(buildSimpleAddressType()); | 672 o.add(buildSimpleAddressType()); |
673 return o; | 673 return o; |
674 } | 674 } |
675 | 675 |
676 checkUnnamed590(core.List<api.SimpleAddressType> o) { | 676 checkUnnamed2445(core.List<api.SimpleAddressType> o) { |
677 unittest.expect(o, unittest.hasLength(2)); | 677 unittest.expect(o, unittest.hasLength(2)); |
678 checkSimpleAddressType(o[0]); | 678 checkSimpleAddressType(o[0]); |
679 checkSimpleAddressType(o[1]); | 679 checkSimpleAddressType(o[1]); |
680 } | 680 } |
681 | 681 |
682 buildUnnamed591() { | 682 buildUnnamed2446() { |
683 var o = new core.List<api.Channel>(); | 683 var o = new core.List<api.Channel>(); |
684 o.add(buildChannel()); | 684 o.add(buildChannel()); |
685 o.add(buildChannel()); | 685 o.add(buildChannel()); |
686 return o; | 686 return o; |
687 } | 687 } |
688 | 688 |
689 checkUnnamed591(core.List<api.Channel> o) { | 689 checkUnnamed2446(core.List<api.Channel> o) { |
690 unittest.expect(o, unittest.hasLength(2)); | 690 unittest.expect(o, unittest.hasLength(2)); |
691 checkChannel(o[0]); | 691 checkChannel(o[0]); |
692 checkChannel(o[1]); | 692 checkChannel(o[1]); |
693 } | 693 } |
694 | 694 |
695 buildUnnamed592() { | 695 buildUnnamed2447() { |
696 var o = new core.List<core.String>(); | 696 var o = new core.List<core.String>(); |
697 o.add("foo"); | 697 o.add("foo"); |
698 o.add("foo"); | 698 o.add("foo"); |
699 return o; | 699 return o; |
700 } | 700 } |
701 | 701 |
702 checkUnnamed592(core.List<core.String> o) { | 702 checkUnnamed2447(core.List<core.String> o) { |
703 unittest.expect(o, unittest.hasLength(2)); | 703 unittest.expect(o, unittest.hasLength(2)); |
704 unittest.expect(o[0], unittest.equals('foo')); | 704 unittest.expect(o[0], unittest.equals('foo')); |
705 unittest.expect(o[1], unittest.equals('foo')); | 705 unittest.expect(o[1], unittest.equals('foo')); |
706 } | 706 } |
707 | 707 |
708 buildUnnamed593() { | 708 buildUnnamed2448() { |
709 var o = new core.List<core.String>(); | 709 var o = new core.List<core.String>(); |
710 o.add("foo"); | 710 o.add("foo"); |
711 o.add("foo"); | 711 o.add("foo"); |
712 return o; | 712 return o; |
713 } | 713 } |
714 | 714 |
715 checkUnnamed593(core.List<core.String> o) { | 715 checkUnnamed2448(core.List<core.String> o) { |
716 unittest.expect(o, unittest.hasLength(2)); | 716 unittest.expect(o, unittest.hasLength(2)); |
717 unittest.expect(o[0], unittest.equals('foo')); | 717 unittest.expect(o[0], unittest.equals('foo')); |
718 unittest.expect(o[1], unittest.equals('foo')); | 718 unittest.expect(o[1], unittest.equals('foo')); |
719 } | 719 } |
720 | 720 |
721 buildUnnamed594() { | 721 buildUnnamed2449() { |
722 var o = new core.List<core.String>(); | 722 var o = new core.List<core.String>(); |
723 o.add("foo"); | 723 o.add("foo"); |
724 o.add("foo"); | 724 o.add("foo"); |
725 return o; | 725 return o; |
726 } | 726 } |
727 | 727 |
728 checkUnnamed594(core.List<core.String> o) { | 728 checkUnnamed2449(core.List<core.String> o) { |
729 unittest.expect(o, unittest.hasLength(2)); | 729 unittest.expect(o, unittest.hasLength(2)); |
730 unittest.expect(o[0], unittest.equals('foo')); | 730 unittest.expect(o[0], unittest.equals('foo')); |
731 unittest.expect(o[1], unittest.equals('foo')); | 731 unittest.expect(o[1], unittest.equals('foo')); |
732 } | 732 } |
733 | 733 |
734 core.int buildCounterOfficial = 0; | 734 core.int buildCounterOfficial = 0; |
735 buildOfficial() { | 735 buildOfficial() { |
736 var o = new api.Official(); | 736 var o = new api.Official(); |
737 buildCounterOfficial++; | 737 buildCounterOfficial++; |
738 if (buildCounterOfficial < 3) { | 738 if (buildCounterOfficial < 3) { |
739 o.address = buildUnnamed590(); | 739 o.address = buildUnnamed2445(); |
740 o.channels = buildUnnamed591(); | 740 o.channels = buildUnnamed2446(); |
741 o.emails = buildUnnamed592(); | 741 o.emails = buildUnnamed2447(); |
742 o.name = "foo"; | 742 o.name = "foo"; |
743 o.party = "foo"; | 743 o.party = "foo"; |
744 o.phones = buildUnnamed593(); | 744 o.phones = buildUnnamed2448(); |
745 o.photoUrl = "foo"; | 745 o.photoUrl = "foo"; |
746 o.urls = buildUnnamed594(); | 746 o.urls = buildUnnamed2449(); |
747 } | 747 } |
748 buildCounterOfficial--; | 748 buildCounterOfficial--; |
749 return o; | 749 return o; |
750 } | 750 } |
751 | 751 |
752 checkOfficial(api.Official o) { | 752 checkOfficial(api.Official o) { |
753 buildCounterOfficial++; | 753 buildCounterOfficial++; |
754 if (buildCounterOfficial < 3) { | 754 if (buildCounterOfficial < 3) { |
755 checkUnnamed590(o.address); | 755 checkUnnamed2445(o.address); |
756 checkUnnamed591(o.channels); | 756 checkUnnamed2446(o.channels); |
757 checkUnnamed592(o.emails); | 757 checkUnnamed2447(o.emails); |
758 unittest.expect(o.name, unittest.equals('foo')); | 758 unittest.expect(o.name, unittest.equals('foo')); |
759 unittest.expect(o.party, unittest.equals('foo')); | 759 unittest.expect(o.party, unittest.equals('foo')); |
760 checkUnnamed593(o.phones); | 760 checkUnnamed2448(o.phones); |
761 unittest.expect(o.photoUrl, unittest.equals('foo')); | 761 unittest.expect(o.photoUrl, unittest.equals('foo')); |
762 checkUnnamed594(o.urls); | 762 checkUnnamed2449(o.urls); |
763 } | 763 } |
764 buildCounterOfficial--; | 764 buildCounterOfficial--; |
765 } | 765 } |
766 | 766 |
767 buildUnnamed595() { | 767 buildUnnamed2450() { |
768 var o = new core.List<api.Source>(); | 768 var o = new core.List<api.Source>(); |
769 o.add(buildSource()); | 769 o.add(buildSource()); |
770 o.add(buildSource()); | 770 o.add(buildSource()); |
771 return o; | 771 return o; |
772 } | 772 } |
773 | 773 |
774 checkUnnamed595(core.List<api.Source> o) { | 774 checkUnnamed2450(core.List<api.Source> o) { |
775 unittest.expect(o, unittest.hasLength(2)); | 775 unittest.expect(o, unittest.hasLength(2)); |
776 checkSource(o[0]); | 776 checkSource(o[0]); |
777 checkSource(o[1]); | 777 checkSource(o[1]); |
778 } | 778 } |
779 | 779 |
780 core.int buildCounterPollingLocation = 0; | 780 core.int buildCounterPollingLocation = 0; |
781 buildPollingLocation() { | 781 buildPollingLocation() { |
782 var o = new api.PollingLocation(); | 782 var o = new api.PollingLocation(); |
783 buildCounterPollingLocation++; | 783 buildCounterPollingLocation++; |
784 if (buildCounterPollingLocation < 3) { | 784 if (buildCounterPollingLocation < 3) { |
785 o.address = buildSimpleAddressType(); | 785 o.address = buildSimpleAddressType(); |
786 o.endDate = "foo"; | 786 o.endDate = "foo"; |
787 o.id = "foo"; | 787 o.id = "foo"; |
788 o.name = "foo"; | 788 o.name = "foo"; |
789 o.notes = "foo"; | 789 o.notes = "foo"; |
790 o.pollingHours = "foo"; | 790 o.pollingHours = "foo"; |
791 o.sources = buildUnnamed595(); | 791 o.sources = buildUnnamed2450(); |
792 o.startDate = "foo"; | 792 o.startDate = "foo"; |
793 o.voterServices = "foo"; | 793 o.voterServices = "foo"; |
794 } | 794 } |
795 buildCounterPollingLocation--; | 795 buildCounterPollingLocation--; |
796 return o; | 796 return o; |
797 } | 797 } |
798 | 798 |
799 checkPollingLocation(api.PollingLocation o) { | 799 checkPollingLocation(api.PollingLocation o) { |
800 buildCounterPollingLocation++; | 800 buildCounterPollingLocation++; |
801 if (buildCounterPollingLocation < 3) { | 801 if (buildCounterPollingLocation < 3) { |
802 checkSimpleAddressType(o.address); | 802 checkSimpleAddressType(o.address); |
803 unittest.expect(o.endDate, unittest.equals('foo')); | 803 unittest.expect(o.endDate, unittest.equals('foo')); |
804 unittest.expect(o.id, unittest.equals('foo')); | 804 unittest.expect(o.id, unittest.equals('foo')); |
805 unittest.expect(o.name, unittest.equals('foo')); | 805 unittest.expect(o.name, unittest.equals('foo')); |
806 unittest.expect(o.notes, unittest.equals('foo')); | 806 unittest.expect(o.notes, unittest.equals('foo')); |
807 unittest.expect(o.pollingHours, unittest.equals('foo')); | 807 unittest.expect(o.pollingHours, unittest.equals('foo')); |
808 checkUnnamed595(o.sources); | 808 checkUnnamed2450(o.sources); |
809 unittest.expect(o.startDate, unittest.equals('foo')); | 809 unittest.expect(o.startDate, unittest.equals('foo')); |
810 unittest.expect(o.voterServices, unittest.equals('foo')); | 810 unittest.expect(o.voterServices, unittest.equals('foo')); |
811 } | 811 } |
812 buildCounterPollingLocation--; | 812 buildCounterPollingLocation--; |
813 } | 813 } |
814 | 814 |
815 buildUnnamed596() { | 815 buildUnnamed2451() { |
816 var o = new core.Map<core.String, api.GeographicDivision>(); | 816 var o = new core.Map<core.String, api.GeographicDivision>(); |
817 o["x"] = buildGeographicDivision(); | 817 o["x"] = buildGeographicDivision(); |
818 o["y"] = buildGeographicDivision(); | 818 o["y"] = buildGeographicDivision(); |
819 return o; | 819 return o; |
820 } | 820 } |
821 | 821 |
822 checkUnnamed596(core.Map<core.String, api.GeographicDivision> o) { | 822 checkUnnamed2451(core.Map<core.String, api.GeographicDivision> o) { |
823 unittest.expect(o, unittest.hasLength(2)); | 823 unittest.expect(o, unittest.hasLength(2)); |
824 checkGeographicDivision(o["x"]); | 824 checkGeographicDivision(o["x"]); |
825 checkGeographicDivision(o["y"]); | 825 checkGeographicDivision(o["y"]); |
826 } | 826 } |
827 | 827 |
828 buildUnnamed597() { | 828 buildUnnamed2452() { |
829 var o = new core.List<api.Office>(); | 829 var o = new core.List<api.Office>(); |
830 o.add(buildOffice()); | 830 o.add(buildOffice()); |
831 o.add(buildOffice()); | 831 o.add(buildOffice()); |
832 return o; | 832 return o; |
833 } | 833 } |
834 | 834 |
835 checkUnnamed597(core.List<api.Office> o) { | 835 checkUnnamed2452(core.List<api.Office> o) { |
836 unittest.expect(o, unittest.hasLength(2)); | 836 unittest.expect(o, unittest.hasLength(2)); |
837 checkOffice(o[0]); | 837 checkOffice(o[0]); |
838 checkOffice(o[1]); | 838 checkOffice(o[1]); |
839 } | 839 } |
840 | 840 |
841 buildUnnamed598() { | 841 buildUnnamed2453() { |
842 var o = new core.List<api.Official>(); | 842 var o = new core.List<api.Official>(); |
843 o.add(buildOfficial()); | 843 o.add(buildOfficial()); |
844 o.add(buildOfficial()); | 844 o.add(buildOfficial()); |
845 return o; | 845 return o; |
846 } | 846 } |
847 | 847 |
848 checkUnnamed598(core.List<api.Official> o) { | 848 checkUnnamed2453(core.List<api.Official> o) { |
849 unittest.expect(o, unittest.hasLength(2)); | 849 unittest.expect(o, unittest.hasLength(2)); |
850 checkOfficial(o[0]); | 850 checkOfficial(o[0]); |
851 checkOfficial(o[1]); | 851 checkOfficial(o[1]); |
852 } | 852 } |
853 | 853 |
854 core.int buildCounterRepresentativeInfoData = 0; | 854 core.int buildCounterRepresentativeInfoData = 0; |
855 buildRepresentativeInfoData() { | 855 buildRepresentativeInfoData() { |
856 var o = new api.RepresentativeInfoData(); | 856 var o = new api.RepresentativeInfoData(); |
857 buildCounterRepresentativeInfoData++; | 857 buildCounterRepresentativeInfoData++; |
858 if (buildCounterRepresentativeInfoData < 3) { | 858 if (buildCounterRepresentativeInfoData < 3) { |
859 o.divisions = buildUnnamed596(); | 859 o.divisions = buildUnnamed2451(); |
860 o.offices = buildUnnamed597(); | 860 o.offices = buildUnnamed2452(); |
861 o.officials = buildUnnamed598(); | 861 o.officials = buildUnnamed2453(); |
862 } | 862 } |
863 buildCounterRepresentativeInfoData--; | 863 buildCounterRepresentativeInfoData--; |
864 return o; | 864 return o; |
865 } | 865 } |
866 | 866 |
867 checkRepresentativeInfoData(api.RepresentativeInfoData o) { | 867 checkRepresentativeInfoData(api.RepresentativeInfoData o) { |
868 buildCounterRepresentativeInfoData++; | 868 buildCounterRepresentativeInfoData++; |
869 if (buildCounterRepresentativeInfoData < 3) { | 869 if (buildCounterRepresentativeInfoData < 3) { |
870 checkUnnamed596(o.divisions); | 870 checkUnnamed2451(o.divisions); |
871 checkUnnamed597(o.offices); | 871 checkUnnamed2452(o.offices); |
872 checkUnnamed598(o.officials); | 872 checkUnnamed2453(o.officials); |
873 } | 873 } |
874 buildCounterRepresentativeInfoData--; | 874 buildCounterRepresentativeInfoData--; |
875 } | 875 } |
876 | 876 |
877 buildUnnamed599() { | 877 buildUnnamed2454() { |
878 var o = new core.Map<core.String, api.GeographicDivision>(); | 878 var o = new core.Map<core.String, api.GeographicDivision>(); |
879 o["x"] = buildGeographicDivision(); | 879 o["x"] = buildGeographicDivision(); |
880 o["y"] = buildGeographicDivision(); | 880 o["y"] = buildGeographicDivision(); |
881 return o; | 881 return o; |
882 } | 882 } |
883 | 883 |
884 checkUnnamed599(core.Map<core.String, api.GeographicDivision> o) { | 884 checkUnnamed2454(core.Map<core.String, api.GeographicDivision> o) { |
885 unittest.expect(o, unittest.hasLength(2)); | 885 unittest.expect(o, unittest.hasLength(2)); |
886 checkGeographicDivision(o["x"]); | 886 checkGeographicDivision(o["x"]); |
887 checkGeographicDivision(o["y"]); | 887 checkGeographicDivision(o["y"]); |
888 } | 888 } |
889 | 889 |
890 buildUnnamed600() { | 890 buildUnnamed2455() { |
891 var o = new core.List<api.Office>(); | 891 var o = new core.List<api.Office>(); |
892 o.add(buildOffice()); | 892 o.add(buildOffice()); |
893 o.add(buildOffice()); | 893 o.add(buildOffice()); |
894 return o; | 894 return o; |
895 } | 895 } |
896 | 896 |
897 checkUnnamed600(core.List<api.Office> o) { | 897 checkUnnamed2455(core.List<api.Office> o) { |
898 unittest.expect(o, unittest.hasLength(2)); | 898 unittest.expect(o, unittest.hasLength(2)); |
899 checkOffice(o[0]); | 899 checkOffice(o[0]); |
900 checkOffice(o[1]); | 900 checkOffice(o[1]); |
901 } | 901 } |
902 | 902 |
903 buildUnnamed601() { | 903 buildUnnamed2456() { |
904 var o = new core.List<api.Official>(); | 904 var o = new core.List<api.Official>(); |
905 o.add(buildOfficial()); | 905 o.add(buildOfficial()); |
906 o.add(buildOfficial()); | 906 o.add(buildOfficial()); |
907 return o; | 907 return o; |
908 } | 908 } |
909 | 909 |
910 checkUnnamed601(core.List<api.Official> o) { | 910 checkUnnamed2456(core.List<api.Official> o) { |
911 unittest.expect(o, unittest.hasLength(2)); | 911 unittest.expect(o, unittest.hasLength(2)); |
912 checkOfficial(o[0]); | 912 checkOfficial(o[0]); |
913 checkOfficial(o[1]); | 913 checkOfficial(o[1]); |
914 } | 914 } |
915 | 915 |
916 core.int buildCounterRepresentativeInfoResponse = 0; | 916 core.int buildCounterRepresentativeInfoResponse = 0; |
917 buildRepresentativeInfoResponse() { | 917 buildRepresentativeInfoResponse() { |
918 var o = new api.RepresentativeInfoResponse(); | 918 var o = new api.RepresentativeInfoResponse(); |
919 buildCounterRepresentativeInfoResponse++; | 919 buildCounterRepresentativeInfoResponse++; |
920 if (buildCounterRepresentativeInfoResponse < 3) { | 920 if (buildCounterRepresentativeInfoResponse < 3) { |
921 o.divisions = buildUnnamed599(); | 921 o.divisions = buildUnnamed2454(); |
922 o.kind = "foo"; | 922 o.kind = "foo"; |
923 o.normalizedInput = buildSimpleAddressType(); | 923 o.normalizedInput = buildSimpleAddressType(); |
924 o.offices = buildUnnamed600(); | 924 o.offices = buildUnnamed2455(); |
925 o.officials = buildUnnamed601(); | 925 o.officials = buildUnnamed2456(); |
926 } | 926 } |
927 buildCounterRepresentativeInfoResponse--; | 927 buildCounterRepresentativeInfoResponse--; |
928 return o; | 928 return o; |
929 } | 929 } |
930 | 930 |
931 checkRepresentativeInfoResponse(api.RepresentativeInfoResponse o) { | 931 checkRepresentativeInfoResponse(api.RepresentativeInfoResponse o) { |
932 buildCounterRepresentativeInfoResponse++; | 932 buildCounterRepresentativeInfoResponse++; |
933 if (buildCounterRepresentativeInfoResponse < 3) { | 933 if (buildCounterRepresentativeInfoResponse < 3) { |
934 checkUnnamed599(o.divisions); | 934 checkUnnamed2454(o.divisions); |
935 unittest.expect(o.kind, unittest.equals('foo')); | 935 unittest.expect(o.kind, unittest.equals('foo')); |
936 checkSimpleAddressType(o.normalizedInput); | 936 checkSimpleAddressType(o.normalizedInput); |
937 checkUnnamed600(o.offices); | 937 checkUnnamed2455(o.offices); |
938 checkUnnamed601(o.officials); | 938 checkUnnamed2456(o.officials); |
939 } | 939 } |
940 buildCounterRepresentativeInfoResponse--; | 940 buildCounterRepresentativeInfoResponse--; |
941 } | 941 } |
942 | 942 |
943 core.int buildCounterSimpleAddressType = 0; | 943 core.int buildCounterSimpleAddressType = 0; |
944 buildSimpleAddressType() { | 944 buildSimpleAddressType() { |
945 var o = new api.SimpleAddressType(); | 945 var o = new api.SimpleAddressType(); |
946 buildCounterSimpleAddressType++; | 946 buildCounterSimpleAddressType++; |
947 if (buildCounterSimpleAddressType < 3) { | 947 if (buildCounterSimpleAddressType < 3) { |
948 o.city = "foo"; | 948 o.city = "foo"; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
985 | 985 |
986 checkSource(api.Source o) { | 986 checkSource(api.Source o) { |
987 buildCounterSource++; | 987 buildCounterSource++; |
988 if (buildCounterSource < 3) { | 988 if (buildCounterSource < 3) { |
989 unittest.expect(o.name, unittest.equals('foo')); | 989 unittest.expect(o.name, unittest.equals('foo')); |
990 unittest.expect(o.official, unittest.isTrue); | 990 unittest.expect(o.official, unittest.isTrue); |
991 } | 991 } |
992 buildCounterSource--; | 992 buildCounterSource--; |
993 } | 993 } |
994 | 994 |
995 buildUnnamed602() { | 995 buildUnnamed2457() { |
996 var o = new core.List<api.Contest>(); | 996 var o = new core.List<api.Contest>(); |
997 o.add(buildContest()); | 997 o.add(buildContest()); |
998 o.add(buildContest()); | 998 o.add(buildContest()); |
999 return o; | 999 return o; |
1000 } | 1000 } |
1001 | 1001 |
1002 checkUnnamed602(core.List<api.Contest> o) { | 1002 checkUnnamed2457(core.List<api.Contest> o) { |
1003 unittest.expect(o, unittest.hasLength(2)); | 1003 unittest.expect(o, unittest.hasLength(2)); |
1004 checkContest(o[0]); | 1004 checkContest(o[0]); |
1005 checkContest(o[1]); | 1005 checkContest(o[1]); |
1006 } | 1006 } |
1007 | 1007 |
1008 buildUnnamed603() { | 1008 buildUnnamed2458() { |
1009 var o = new core.List<api.PollingLocation>(); | 1009 var o = new core.List<api.PollingLocation>(); |
1010 o.add(buildPollingLocation()); | 1010 o.add(buildPollingLocation()); |
1011 o.add(buildPollingLocation()); | 1011 o.add(buildPollingLocation()); |
1012 return o; | 1012 return o; |
1013 } | 1013 } |
1014 | 1014 |
1015 checkUnnamed603(core.List<api.PollingLocation> o) { | 1015 checkUnnamed2458(core.List<api.PollingLocation> o) { |
1016 unittest.expect(o, unittest.hasLength(2)); | 1016 unittest.expect(o, unittest.hasLength(2)); |
1017 checkPollingLocation(o[0]); | 1017 checkPollingLocation(o[0]); |
1018 checkPollingLocation(o[1]); | 1018 checkPollingLocation(o[1]); |
1019 } | 1019 } |
1020 | 1020 |
1021 buildUnnamed604() { | 1021 buildUnnamed2459() { |
1022 var o = new core.List<api.PollingLocation>(); | 1022 var o = new core.List<api.PollingLocation>(); |
1023 o.add(buildPollingLocation()); | 1023 o.add(buildPollingLocation()); |
1024 o.add(buildPollingLocation()); | 1024 o.add(buildPollingLocation()); |
1025 return o; | 1025 return o; |
1026 } | 1026 } |
1027 | 1027 |
1028 checkUnnamed604(core.List<api.PollingLocation> o) { | 1028 checkUnnamed2459(core.List<api.PollingLocation> o) { |
1029 unittest.expect(o, unittest.hasLength(2)); | 1029 unittest.expect(o, unittest.hasLength(2)); |
1030 checkPollingLocation(o[0]); | 1030 checkPollingLocation(o[0]); |
1031 checkPollingLocation(o[1]); | 1031 checkPollingLocation(o[1]); |
1032 } | 1032 } |
1033 | 1033 |
1034 buildUnnamed605() { | 1034 buildUnnamed2460() { |
1035 var o = new core.List<api.Election>(); | 1035 var o = new core.List<api.Election>(); |
1036 o.add(buildElection()); | 1036 o.add(buildElection()); |
1037 o.add(buildElection()); | 1037 o.add(buildElection()); |
1038 return o; | 1038 return o; |
1039 } | 1039 } |
1040 | 1040 |
1041 checkUnnamed605(core.List<api.Election> o) { | 1041 checkUnnamed2460(core.List<api.Election> o) { |
1042 unittest.expect(o, unittest.hasLength(2)); | 1042 unittest.expect(o, unittest.hasLength(2)); |
1043 checkElection(o[0]); | 1043 checkElection(o[0]); |
1044 checkElection(o[1]); | 1044 checkElection(o[1]); |
1045 } | 1045 } |
1046 | 1046 |
1047 buildUnnamed606() { | 1047 buildUnnamed2461() { |
1048 var o = new core.List<api.PollingLocation>(); | 1048 var o = new core.List<api.PollingLocation>(); |
1049 o.add(buildPollingLocation()); | 1049 o.add(buildPollingLocation()); |
1050 o.add(buildPollingLocation()); | 1050 o.add(buildPollingLocation()); |
1051 return o; | 1051 return o; |
1052 } | 1052 } |
1053 | 1053 |
1054 checkUnnamed606(core.List<api.PollingLocation> o) { | 1054 checkUnnamed2461(core.List<api.PollingLocation> o) { |
1055 unittest.expect(o, unittest.hasLength(2)); | 1055 unittest.expect(o, unittest.hasLength(2)); |
1056 checkPollingLocation(o[0]); | 1056 checkPollingLocation(o[0]); |
1057 checkPollingLocation(o[1]); | 1057 checkPollingLocation(o[1]); |
1058 } | 1058 } |
1059 | 1059 |
1060 buildUnnamed607() { | 1060 buildUnnamed2462() { |
1061 var o = new core.List<api.AdministrationRegion>(); | 1061 var o = new core.List<api.AdministrationRegion>(); |
1062 o.add(buildAdministrationRegion()); | 1062 o.add(buildAdministrationRegion()); |
1063 o.add(buildAdministrationRegion()); | 1063 o.add(buildAdministrationRegion()); |
1064 return o; | 1064 return o; |
1065 } | 1065 } |
1066 | 1066 |
1067 checkUnnamed607(core.List<api.AdministrationRegion> o) { | 1067 checkUnnamed2462(core.List<api.AdministrationRegion> o) { |
1068 unittest.expect(o, unittest.hasLength(2)); | 1068 unittest.expect(o, unittest.hasLength(2)); |
1069 checkAdministrationRegion(o[0]); | 1069 checkAdministrationRegion(o[0]); |
1070 checkAdministrationRegion(o[1]); | 1070 checkAdministrationRegion(o[1]); |
1071 } | 1071 } |
1072 | 1072 |
1073 core.int buildCounterVoterInfoResponse = 0; | 1073 core.int buildCounterVoterInfoResponse = 0; |
1074 buildVoterInfoResponse() { | 1074 buildVoterInfoResponse() { |
1075 var o = new api.VoterInfoResponse(); | 1075 var o = new api.VoterInfoResponse(); |
1076 buildCounterVoterInfoResponse++; | 1076 buildCounterVoterInfoResponse++; |
1077 if (buildCounterVoterInfoResponse < 3) { | 1077 if (buildCounterVoterInfoResponse < 3) { |
1078 o.contests = buildUnnamed602(); | 1078 o.contests = buildUnnamed2457(); |
1079 o.dropOffLocations = buildUnnamed603(); | 1079 o.dropOffLocations = buildUnnamed2458(); |
1080 o.earlyVoteSites = buildUnnamed604(); | 1080 o.earlyVoteSites = buildUnnamed2459(); |
1081 o.election = buildElection(); | 1081 o.election = buildElection(); |
1082 o.kind = "foo"; | 1082 o.kind = "foo"; |
1083 o.mailOnly = true; | 1083 o.mailOnly = true; |
1084 o.normalizedInput = buildSimpleAddressType(); | 1084 o.normalizedInput = buildSimpleAddressType(); |
1085 o.otherElections = buildUnnamed605(); | 1085 o.otherElections = buildUnnamed2460(); |
1086 o.pollingLocations = buildUnnamed606(); | 1086 o.pollingLocations = buildUnnamed2461(); |
1087 o.precinctId = "foo"; | 1087 o.precinctId = "foo"; |
1088 o.state = buildUnnamed607(); | 1088 o.state = buildUnnamed2462(); |
1089 } | 1089 } |
1090 buildCounterVoterInfoResponse--; | 1090 buildCounterVoterInfoResponse--; |
1091 return o; | 1091 return o; |
1092 } | 1092 } |
1093 | 1093 |
1094 checkVoterInfoResponse(api.VoterInfoResponse o) { | 1094 checkVoterInfoResponse(api.VoterInfoResponse o) { |
1095 buildCounterVoterInfoResponse++; | 1095 buildCounterVoterInfoResponse++; |
1096 if (buildCounterVoterInfoResponse < 3) { | 1096 if (buildCounterVoterInfoResponse < 3) { |
1097 checkUnnamed602(o.contests); | 1097 checkUnnamed2457(o.contests); |
1098 checkUnnamed603(o.dropOffLocations); | 1098 checkUnnamed2458(o.dropOffLocations); |
1099 checkUnnamed604(o.earlyVoteSites); | 1099 checkUnnamed2459(o.earlyVoteSites); |
1100 checkElection(o.election); | 1100 checkElection(o.election); |
1101 unittest.expect(o.kind, unittest.equals('foo')); | 1101 unittest.expect(o.kind, unittest.equals('foo')); |
1102 unittest.expect(o.mailOnly, unittest.isTrue); | 1102 unittest.expect(o.mailOnly, unittest.isTrue); |
1103 checkSimpleAddressType(o.normalizedInput); | 1103 checkSimpleAddressType(o.normalizedInput); |
1104 checkUnnamed605(o.otherElections); | 1104 checkUnnamed2460(o.otherElections); |
1105 checkUnnamed606(o.pollingLocations); | 1105 checkUnnamed2461(o.pollingLocations); |
1106 unittest.expect(o.precinctId, unittest.equals('foo')); | 1106 unittest.expect(o.precinctId, unittest.equals('foo')); |
1107 checkUnnamed607(o.state); | 1107 checkUnnamed2462(o.state); |
1108 } | 1108 } |
1109 buildCounterVoterInfoResponse--; | 1109 buildCounterVoterInfoResponse--; |
1110 } | 1110 } |
1111 | 1111 |
1112 buildUnnamed608() { | 1112 buildUnnamed2463() { |
1113 var o = new core.List<core.String>(); | 1113 var o = new core.List<core.String>(); |
1114 o.add("foo"); | 1114 o.add("foo"); |
1115 o.add("foo"); | 1115 o.add("foo"); |
1116 return o; | 1116 return o; |
1117 } | 1117 } |
1118 | 1118 |
1119 checkUnnamed608(core.List<core.String> o) { | 1119 checkUnnamed2463(core.List<core.String> o) { |
1120 unittest.expect(o, unittest.hasLength(2)); | 1120 unittest.expect(o, unittest.hasLength(2)); |
1121 unittest.expect(o[0], unittest.equals('foo')); | 1121 unittest.expect(o[0], unittest.equals('foo')); |
1122 unittest.expect(o[1], unittest.equals('foo')); | 1122 unittest.expect(o[1], unittest.equals('foo')); |
1123 } | 1123 } |
1124 | 1124 |
1125 buildUnnamed609() { | 1125 buildUnnamed2464() { |
1126 var o = new core.List<core.String>(); | 1126 var o = new core.List<core.String>(); |
1127 o.add("foo"); | 1127 o.add("foo"); |
1128 o.add("foo"); | 1128 o.add("foo"); |
1129 return o; | 1129 return o; |
1130 } | 1130 } |
1131 | 1131 |
1132 checkUnnamed609(core.List<core.String> o) { | 1132 checkUnnamed2464(core.List<core.String> o) { |
1133 unittest.expect(o, unittest.hasLength(2)); | 1133 unittest.expect(o, unittest.hasLength(2)); |
1134 unittest.expect(o[0], unittest.equals('foo')); | 1134 unittest.expect(o[0], unittest.equals('foo')); |
1135 unittest.expect(o[1], unittest.equals('foo')); | 1135 unittest.expect(o[1], unittest.equals('foo')); |
1136 } | 1136 } |
1137 | 1137 |
1138 buildUnnamed610() { | 1138 buildUnnamed2465() { |
1139 var o = new core.List<core.String>(); | 1139 var o = new core.List<core.String>(); |
1140 o.add("foo"); | 1140 o.add("foo"); |
1141 o.add("foo"); | 1141 o.add("foo"); |
1142 return o; | 1142 return o; |
1143 } | 1143 } |
1144 | 1144 |
1145 checkUnnamed610(core.List<core.String> o) { | 1145 checkUnnamed2465(core.List<core.String> o) { |
1146 unittest.expect(o, unittest.hasLength(2)); | 1146 unittest.expect(o, unittest.hasLength(2)); |
1147 unittest.expect(o[0], unittest.equals('foo')); | 1147 unittest.expect(o[0], unittest.equals('foo')); |
1148 unittest.expect(o[1], unittest.equals('foo')); | 1148 unittest.expect(o[1], unittest.equals('foo')); |
1149 } | 1149 } |
1150 | 1150 |
1151 buildUnnamed611() { | 1151 buildUnnamed2466() { |
1152 var o = new core.List<core.String>(); | 1152 var o = new core.List<core.String>(); |
1153 o.add("foo"); | 1153 o.add("foo"); |
1154 o.add("foo"); | 1154 o.add("foo"); |
1155 return o; | 1155 return o; |
1156 } | 1156 } |
1157 | 1157 |
1158 checkUnnamed611(core.List<core.String> o) { | 1158 checkUnnamed2466(core.List<core.String> o) { |
1159 unittest.expect(o, unittest.hasLength(2)); | 1159 unittest.expect(o, unittest.hasLength(2)); |
1160 unittest.expect(o[0], unittest.equals('foo')); | 1160 unittest.expect(o[0], unittest.equals('foo')); |
1161 unittest.expect(o[1], unittest.equals('foo')); | 1161 unittest.expect(o[1], unittest.equals('foo')); |
1162 } | 1162 } |
1163 | 1163 |
1164 | 1164 |
1165 main() { | 1165 main() { |
1166 unittest.group("obj-schema-AdministrationRegion", () { | 1166 unittest.group("obj-schema-AdministrationRegion", () { |
1167 unittest.test("to-json--from-json", () { | 1167 unittest.test("to-json--from-json", () { |
1168 var o = buildAdministrationRegion(); | 1168 var o = buildAdministrationRegion(); |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1494 }); | 1494 }); |
1495 | 1495 |
1496 | 1496 |
1497 unittest.group("resource-RepresentativesResourceApi", () { | 1497 unittest.group("resource-RepresentativesResourceApi", () { |
1498 unittest.test("method--representativeInfoByAddress", () { | 1498 unittest.test("method--representativeInfoByAddress", () { |
1499 | 1499 |
1500 var mock = new HttpServerMock(); | 1500 var mock = new HttpServerMock(); |
1501 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa
tives; | 1501 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa
tives; |
1502 var arg_address = "foo"; | 1502 var arg_address = "foo"; |
1503 var arg_includeOffices = true; | 1503 var arg_includeOffices = true; |
1504 var arg_levels = buildUnnamed608(); | 1504 var arg_levels = buildUnnamed2463(); |
1505 var arg_roles = buildUnnamed609(); | 1505 var arg_roles = buildUnnamed2464(); |
1506 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1506 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1507 var path = (req.url).path; | 1507 var path = (req.url).path; |
1508 var pathOffset = 0; | 1508 var pathOffset = 0; |
1509 var index; | 1509 var index; |
1510 var subPart; | 1510 var subPart; |
1511 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1511 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1512 pathOffset += 1; | 1512 pathOffset += 1; |
1513 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("civicinfo/v2/")); | 1513 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("civicinfo/v2/")); |
1514 pathOffset += 13; | 1514 pathOffset += 13; |
1515 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("representatives")); | 1515 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("representatives")); |
(...skipping 30 matching lines...) Expand all Loading... |
1546 res.representativeInfoByAddress(address: arg_address, includeOffices: arg_
includeOffices, levels: arg_levels, roles: arg_roles).then(unittest.expectAsync(
((api.RepresentativeInfoResponse response) { | 1546 res.representativeInfoByAddress(address: arg_address, includeOffices: arg_
includeOffices, levels: arg_levels, roles: arg_roles).then(unittest.expectAsync(
((api.RepresentativeInfoResponse response) { |
1547 checkRepresentativeInfoResponse(response); | 1547 checkRepresentativeInfoResponse(response); |
1548 }))); | 1548 }))); |
1549 }); | 1549 }); |
1550 | 1550 |
1551 unittest.test("method--representativeInfoByDivision", () { | 1551 unittest.test("method--representativeInfoByDivision", () { |
1552 | 1552 |
1553 var mock = new HttpServerMock(); | 1553 var mock = new HttpServerMock(); |
1554 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa
tives; | 1554 api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representa
tives; |
1555 var arg_ocdId = "foo"; | 1555 var arg_ocdId = "foo"; |
1556 var arg_levels = buildUnnamed610(); | 1556 var arg_levels = buildUnnamed2465(); |
1557 var arg_recursive = true; | 1557 var arg_recursive = true; |
1558 var arg_roles = buildUnnamed611(); | 1558 var arg_roles = buildUnnamed2466(); |
1559 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1559 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1560 var path = (req.url).path; | 1560 var path = (req.url).path; |
1561 var pathOffset = 0; | 1561 var pathOffset = 0; |
1562 var index; | 1562 var index; |
1563 var subPart; | 1563 var subPart; |
1564 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1564 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1565 pathOffset += 1; | 1565 pathOffset += 1; |
1566 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("civicinfo/v2/")); | 1566 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("civicinfo/v2/")); |
1567 pathOffset += 13; | 1567 pathOffset += 13; |
1568 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("representatives/")); | 1568 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("representatives/")); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1601 res.representativeInfoByDivision(arg_ocdId, levels: arg_levels, recursive:
arg_recursive, roles: arg_roles).then(unittest.expectAsync(((api.Representative
InfoData response) { | 1601 res.representativeInfoByDivision(arg_ocdId, levels: arg_levels, recursive:
arg_recursive, roles: arg_roles).then(unittest.expectAsync(((api.Representative
InfoData response) { |
1602 checkRepresentativeInfoData(response); | 1602 checkRepresentativeInfoData(response); |
1603 }))); | 1603 }))); |
1604 }); | 1604 }); |
1605 | 1605 |
1606 }); | 1606 }); |
1607 | 1607 |
1608 | 1608 |
1609 } | 1609 } |
1610 | 1610 |
OLD | NEW |