OLD | NEW |
1 library googleapis.fusiontables.v2.test; | 1 library googleapis.fusiontables.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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 94 |
95 checkColumnBaseColumn(api.ColumnBaseColumn o) { | 95 checkColumnBaseColumn(api.ColumnBaseColumn o) { |
96 buildCounterColumnBaseColumn++; | 96 buildCounterColumnBaseColumn++; |
97 if (buildCounterColumnBaseColumn < 3) { | 97 if (buildCounterColumnBaseColumn < 3) { |
98 unittest.expect(o.columnId, unittest.equals(42)); | 98 unittest.expect(o.columnId, unittest.equals(42)); |
99 unittest.expect(o.tableIndex, unittest.equals(42)); | 99 unittest.expect(o.tableIndex, unittest.equals(42)); |
100 } | 100 } |
101 buildCounterColumnBaseColumn--; | 101 buildCounterColumnBaseColumn--; |
102 } | 102 } |
103 | 103 |
104 buildUnnamed406() { | 104 buildUnnamed408() { |
105 var o = new core.List<core.String>(); | 105 var o = new core.List<core.String>(); |
106 o.add("foo"); | 106 o.add("foo"); |
107 o.add("foo"); | 107 o.add("foo"); |
108 return o; | 108 return o; |
109 } | 109 } |
110 | 110 |
111 checkUnnamed406(core.List<core.String> o) { | 111 checkUnnamed408(core.List<core.String> o) { |
112 unittest.expect(o, unittest.hasLength(2)); | 112 unittest.expect(o, unittest.hasLength(2)); |
113 unittest.expect(o[0], unittest.equals('foo')); | 113 unittest.expect(o[0], unittest.equals('foo')); |
114 unittest.expect(o[1], unittest.equals('foo')); | 114 unittest.expect(o[1], unittest.equals('foo')); |
115 } | 115 } |
116 | 116 |
117 core.int buildCounterColumn = 0; | 117 core.int buildCounterColumn = 0; |
118 buildColumn() { | 118 buildColumn() { |
119 var o = new api.Column(); | 119 var o = new api.Column(); |
120 buildCounterColumn++; | 120 buildCounterColumn++; |
121 if (buildCounterColumn < 3) { | 121 if (buildCounterColumn < 3) { |
122 o.baseColumn = buildColumnBaseColumn(); | 122 o.baseColumn = buildColumnBaseColumn(); |
123 o.columnId = 42; | 123 o.columnId = 42; |
124 o.columnJsonSchema = "foo"; | 124 o.columnJsonSchema = "foo"; |
125 o.columnPropertiesJson = "foo"; | 125 o.columnPropertiesJson = "foo"; |
126 o.description = "foo"; | 126 o.description = "foo"; |
127 o.formatPattern = "foo"; | 127 o.formatPattern = "foo"; |
128 o.graphPredicate = "foo"; | 128 o.graphPredicate = "foo"; |
129 o.kind = "foo"; | 129 o.kind = "foo"; |
130 o.name = "foo"; | 130 o.name = "foo"; |
131 o.type = "foo"; | 131 o.type = "foo"; |
132 o.validValues = buildUnnamed406(); | 132 o.validValues = buildUnnamed408(); |
133 o.validateData = true; | 133 o.validateData = true; |
134 } | 134 } |
135 buildCounterColumn--; | 135 buildCounterColumn--; |
136 return o; | 136 return o; |
137 } | 137 } |
138 | 138 |
139 checkColumn(api.Column o) { | 139 checkColumn(api.Column o) { |
140 buildCounterColumn++; | 140 buildCounterColumn++; |
141 if (buildCounterColumn < 3) { | 141 if (buildCounterColumn < 3) { |
142 checkColumnBaseColumn(o.baseColumn); | 142 checkColumnBaseColumn(o.baseColumn); |
143 unittest.expect(o.columnId, unittest.equals(42)); | 143 unittest.expect(o.columnId, unittest.equals(42)); |
144 unittest.expect(o.columnJsonSchema, unittest.equals('foo')); | 144 unittest.expect(o.columnJsonSchema, unittest.equals('foo')); |
145 unittest.expect(o.columnPropertiesJson, unittest.equals('foo')); | 145 unittest.expect(o.columnPropertiesJson, unittest.equals('foo')); |
146 unittest.expect(o.description, unittest.equals('foo')); | 146 unittest.expect(o.description, unittest.equals('foo')); |
147 unittest.expect(o.formatPattern, unittest.equals('foo')); | 147 unittest.expect(o.formatPattern, unittest.equals('foo')); |
148 unittest.expect(o.graphPredicate, unittest.equals('foo')); | 148 unittest.expect(o.graphPredicate, unittest.equals('foo')); |
149 unittest.expect(o.kind, unittest.equals('foo')); | 149 unittest.expect(o.kind, unittest.equals('foo')); |
150 unittest.expect(o.name, unittest.equals('foo')); | 150 unittest.expect(o.name, unittest.equals('foo')); |
151 unittest.expect(o.type, unittest.equals('foo')); | 151 unittest.expect(o.type, unittest.equals('foo')); |
152 checkUnnamed406(o.validValues); | 152 checkUnnamed408(o.validValues); |
153 unittest.expect(o.validateData, unittest.isTrue); | 153 unittest.expect(o.validateData, unittest.isTrue); |
154 } | 154 } |
155 buildCounterColumn--; | 155 buildCounterColumn--; |
156 } | 156 } |
157 | 157 |
158 buildUnnamed407() { | 158 buildUnnamed409() { |
159 var o = new core.List<api.Column>(); | 159 var o = new core.List<api.Column>(); |
160 o.add(buildColumn()); | 160 o.add(buildColumn()); |
161 o.add(buildColumn()); | 161 o.add(buildColumn()); |
162 return o; | 162 return o; |
163 } | 163 } |
164 | 164 |
165 checkUnnamed407(core.List<api.Column> o) { | 165 checkUnnamed409(core.List<api.Column> o) { |
166 unittest.expect(o, unittest.hasLength(2)); | 166 unittest.expect(o, unittest.hasLength(2)); |
167 checkColumn(o[0]); | 167 checkColumn(o[0]); |
168 checkColumn(o[1]); | 168 checkColumn(o[1]); |
169 } | 169 } |
170 | 170 |
171 core.int buildCounterColumnList = 0; | 171 core.int buildCounterColumnList = 0; |
172 buildColumnList() { | 172 buildColumnList() { |
173 var o = new api.ColumnList(); | 173 var o = new api.ColumnList(); |
174 buildCounterColumnList++; | 174 buildCounterColumnList++; |
175 if (buildCounterColumnList < 3) { | 175 if (buildCounterColumnList < 3) { |
176 o.items = buildUnnamed407(); | 176 o.items = buildUnnamed409(); |
177 o.kind = "foo"; | 177 o.kind = "foo"; |
178 o.nextPageToken = "foo"; | 178 o.nextPageToken = "foo"; |
179 o.totalItems = 42; | 179 o.totalItems = 42; |
180 } | 180 } |
181 buildCounterColumnList--; | 181 buildCounterColumnList--; |
182 return o; | 182 return o; |
183 } | 183 } |
184 | 184 |
185 checkColumnList(api.ColumnList o) { | 185 checkColumnList(api.ColumnList o) { |
186 buildCounterColumnList++; | 186 buildCounterColumnList++; |
187 if (buildCounterColumnList < 3) { | 187 if (buildCounterColumnList < 3) { |
188 checkUnnamed407(o.items); | 188 checkUnnamed409(o.items); |
189 unittest.expect(o.kind, unittest.equals('foo')); | 189 unittest.expect(o.kind, unittest.equals('foo')); |
190 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 190 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
191 unittest.expect(o.totalItems, unittest.equals(42)); | 191 unittest.expect(o.totalItems, unittest.equals(42)); |
192 } | 192 } |
193 buildCounterColumnList--; | 193 buildCounterColumnList--; |
194 } | 194 } |
195 | 195 |
196 buildUnnamed408() { | 196 buildUnnamed410() { |
197 var o = new core.List<core.Object>(); | 197 var o = new core.List<core.Object>(); |
198 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 198 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
199 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 199 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
200 return o; | 200 return o; |
201 } | 201 } |
202 | 202 |
203 checkUnnamed408(core.List<core.Object> o) { | 203 checkUnnamed410(core.List<core.Object> o) { |
204 unittest.expect(o, unittest.hasLength(2)); | 204 unittest.expect(o, unittest.hasLength(2)); |
205 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(
3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u
nittest.equals('foo')); | 205 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(
3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u
nittest.equals('foo')); |
206 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(
3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u
nittest.equals('foo')); | 206 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(
3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u
nittest.equals('foo')); |
207 } | 207 } |
208 | 208 |
209 core.int buildCounterGeometry = 0; | 209 core.int buildCounterGeometry = 0; |
210 buildGeometry() { | 210 buildGeometry() { |
211 var o = new api.Geometry(); | 211 var o = new api.Geometry(); |
212 buildCounterGeometry++; | 212 buildCounterGeometry++; |
213 if (buildCounterGeometry < 3) { | 213 if (buildCounterGeometry < 3) { |
214 o.geometries = buildUnnamed408(); | 214 o.geometries = buildUnnamed410(); |
215 o.geometry = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 215 o.geometry = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
216 o.type = "foo"; | 216 o.type = "foo"; |
217 } | 217 } |
218 buildCounterGeometry--; | 218 buildCounterGeometry--; |
219 return o; | 219 return o; |
220 } | 220 } |
221 | 221 |
222 checkGeometry(api.Geometry o) { | 222 checkGeometry(api.Geometry o) { |
223 buildCounterGeometry++; | 223 buildCounterGeometry++; |
224 if (buildCounterGeometry < 3) { | 224 if (buildCounterGeometry < 3) { |
225 checkUnnamed408(o.geometries); | 225 checkUnnamed410(o.geometries); |
226 var casted3 = (o.geometry) as core.Map; unittest.expect(casted3, unittest.ha
sLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unitt
est.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["str
ing"], unittest.equals('foo')); | 226 var casted3 = (o.geometry) as core.Map; unittest.expect(casted3, unittest.ha
sLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unitt
est.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["str
ing"], unittest.equals('foo')); |
227 unittest.expect(o.type, unittest.equals('foo')); | 227 unittest.expect(o.type, unittest.equals('foo')); |
228 } | 228 } |
229 buildCounterGeometry--; | 229 buildCounterGeometry--; |
230 } | 230 } |
231 | 231 |
232 core.int buildCounterImport = 0; | 232 core.int buildCounterImport = 0; |
233 buildImport() { | 233 buildImport() { |
234 var o = new api.Import(); | 234 var o = new api.Import(); |
235 buildCounterImport++; | 235 buildCounterImport++; |
236 if (buildCounterImport < 3) { | 236 if (buildCounterImport < 3) { |
237 o.kind = "foo"; | 237 o.kind = "foo"; |
238 o.numRowsReceived = "foo"; | 238 o.numRowsReceived = "foo"; |
239 } | 239 } |
240 buildCounterImport--; | 240 buildCounterImport--; |
241 return o; | 241 return o; |
242 } | 242 } |
243 | 243 |
244 checkImport(api.Import o) { | 244 checkImport(api.Import o) { |
245 buildCounterImport++; | 245 buildCounterImport++; |
246 if (buildCounterImport < 3) { | 246 if (buildCounterImport < 3) { |
247 unittest.expect(o.kind, unittest.equals('foo')); | 247 unittest.expect(o.kind, unittest.equals('foo')); |
248 unittest.expect(o.numRowsReceived, unittest.equals('foo')); | 248 unittest.expect(o.numRowsReceived, unittest.equals('foo')); |
249 } | 249 } |
250 buildCounterImport--; | 250 buildCounterImport--; |
251 } | 251 } |
252 | 252 |
253 buildUnnamed409() { | 253 buildUnnamed411() { |
254 var o = new core.List<core.double>(); | 254 var o = new core.List<core.double>(); |
255 o.add(42.0); | 255 o.add(42.0); |
256 o.add(42.0); | 256 o.add(42.0); |
257 return o; | 257 return o; |
258 } | 258 } |
259 | 259 |
260 checkUnnamed409(core.List<core.double> o) { | 260 checkUnnamed411(core.List<core.double> o) { |
261 unittest.expect(o, unittest.hasLength(2)); | 261 unittest.expect(o, unittest.hasLength(2)); |
262 unittest.expect(o[0], unittest.equals(42.0)); | 262 unittest.expect(o[0], unittest.equals(42.0)); |
263 unittest.expect(o[1], unittest.equals(42.0)); | 263 unittest.expect(o[1], unittest.equals(42.0)); |
264 } | 264 } |
265 | 265 |
266 buildUnnamed410() { | 266 buildUnnamed412() { |
267 var o = new core.List<core.List<core.double>>(); | 267 var o = new core.List<core.List<core.double>>(); |
268 o.add(buildUnnamed409()); | 268 o.add(buildUnnamed411()); |
269 o.add(buildUnnamed409()); | 269 o.add(buildUnnamed411()); |
270 return o; | 270 return o; |
271 } | 271 } |
272 | 272 |
273 checkUnnamed410(core.List<core.List<core.double>> o) { | 273 checkUnnamed412(core.List<core.List<core.double>> o) { |
274 unittest.expect(o, unittest.hasLength(2)); | 274 unittest.expect(o, unittest.hasLength(2)); |
275 checkUnnamed409(o[0]); | 275 checkUnnamed411(o[0]); |
276 checkUnnamed409(o[1]); | 276 checkUnnamed411(o[1]); |
277 } | 277 } |
278 | 278 |
279 core.int buildCounterLine = 0; | 279 core.int buildCounterLine = 0; |
280 buildLine() { | 280 buildLine() { |
281 var o = new api.Line(); | 281 var o = new api.Line(); |
282 buildCounterLine++; | 282 buildCounterLine++; |
283 if (buildCounterLine < 3) { | 283 if (buildCounterLine < 3) { |
284 o.coordinates = buildUnnamed410(); | 284 o.coordinates = buildUnnamed412(); |
285 o.type = "foo"; | 285 o.type = "foo"; |
286 } | 286 } |
287 buildCounterLine--; | 287 buildCounterLine--; |
288 return o; | 288 return o; |
289 } | 289 } |
290 | 290 |
291 checkLine(api.Line o) { | 291 checkLine(api.Line o) { |
292 buildCounterLine++; | 292 buildCounterLine++; |
293 if (buildCounterLine < 3) { | 293 if (buildCounterLine < 3) { |
294 checkUnnamed410(o.coordinates); | 294 checkUnnamed412(o.coordinates); |
295 unittest.expect(o.type, unittest.equals('foo')); | 295 unittest.expect(o.type, unittest.equals('foo')); |
296 } | 296 } |
297 buildCounterLine--; | 297 buildCounterLine--; |
298 } | 298 } |
299 | 299 |
300 core.int buildCounterLineStyle = 0; | 300 core.int buildCounterLineStyle = 0; |
301 buildLineStyle() { | 301 buildLineStyle() { |
302 var o = new api.LineStyle(); | 302 var o = new api.LineStyle(); |
303 buildCounterLineStyle++; | 303 buildCounterLineStyle++; |
304 if (buildCounterLineStyle < 3) { | 304 if (buildCounterLineStyle < 3) { |
(...skipping 12 matching lines...) Expand all Loading... |
317 if (buildCounterLineStyle < 3) { | 317 if (buildCounterLineStyle < 3) { |
318 unittest.expect(o.strokeColor, unittest.equals('foo')); | 318 unittest.expect(o.strokeColor, unittest.equals('foo')); |
319 checkStyleFunction(o.strokeColorStyler); | 319 checkStyleFunction(o.strokeColorStyler); |
320 unittest.expect(o.strokeOpacity, unittest.equals(42.0)); | 320 unittest.expect(o.strokeOpacity, unittest.equals(42.0)); |
321 unittest.expect(o.strokeWeight, unittest.equals(42)); | 321 unittest.expect(o.strokeWeight, unittest.equals(42)); |
322 checkStyleFunction(o.strokeWeightStyler); | 322 checkStyleFunction(o.strokeWeightStyler); |
323 } | 323 } |
324 buildCounterLineStyle--; | 324 buildCounterLineStyle--; |
325 } | 325 } |
326 | 326 |
327 buildUnnamed411() { | 327 buildUnnamed413() { |
328 var o = new core.List<core.double>(); | 328 var o = new core.List<core.double>(); |
329 o.add(42.0); | 329 o.add(42.0); |
330 o.add(42.0); | 330 o.add(42.0); |
331 return o; | 331 return o; |
332 } | 332 } |
333 | 333 |
334 checkUnnamed411(core.List<core.double> o) { | 334 checkUnnamed413(core.List<core.double> o) { |
335 unittest.expect(o, unittest.hasLength(2)); | 335 unittest.expect(o, unittest.hasLength(2)); |
336 unittest.expect(o[0], unittest.equals(42.0)); | 336 unittest.expect(o[0], unittest.equals(42.0)); |
337 unittest.expect(o[1], unittest.equals(42.0)); | 337 unittest.expect(o[1], unittest.equals(42.0)); |
338 } | 338 } |
339 | 339 |
340 core.int buildCounterPoint = 0; | 340 core.int buildCounterPoint = 0; |
341 buildPoint() { | 341 buildPoint() { |
342 var o = new api.Point(); | 342 var o = new api.Point(); |
343 buildCounterPoint++; | 343 buildCounterPoint++; |
344 if (buildCounterPoint < 3) { | 344 if (buildCounterPoint < 3) { |
345 o.coordinates = buildUnnamed411(); | 345 o.coordinates = buildUnnamed413(); |
346 o.type = "foo"; | 346 o.type = "foo"; |
347 } | 347 } |
348 buildCounterPoint--; | 348 buildCounterPoint--; |
349 return o; | 349 return o; |
350 } | 350 } |
351 | 351 |
352 checkPoint(api.Point o) { | 352 checkPoint(api.Point o) { |
353 buildCounterPoint++; | 353 buildCounterPoint++; |
354 if (buildCounterPoint < 3) { | 354 if (buildCounterPoint < 3) { |
355 checkUnnamed411(o.coordinates); | 355 checkUnnamed413(o.coordinates); |
356 unittest.expect(o.type, unittest.equals('foo')); | 356 unittest.expect(o.type, unittest.equals('foo')); |
357 } | 357 } |
358 buildCounterPoint--; | 358 buildCounterPoint--; |
359 } | 359 } |
360 | 360 |
361 core.int buildCounterPointStyle = 0; | 361 core.int buildCounterPointStyle = 0; |
362 buildPointStyle() { | 362 buildPointStyle() { |
363 var o = new api.PointStyle(); | 363 var o = new api.PointStyle(); |
364 buildCounterPointStyle++; | 364 buildCounterPointStyle++; |
365 if (buildCounterPointStyle < 3) { | 365 if (buildCounterPointStyle < 3) { |
366 o.iconName = "foo"; | 366 o.iconName = "foo"; |
367 o.iconStyler = buildStyleFunction(); | 367 o.iconStyler = buildStyleFunction(); |
368 } | 368 } |
369 buildCounterPointStyle--; | 369 buildCounterPointStyle--; |
370 return o; | 370 return o; |
371 } | 371 } |
372 | 372 |
373 checkPointStyle(api.PointStyle o) { | 373 checkPointStyle(api.PointStyle o) { |
374 buildCounterPointStyle++; | 374 buildCounterPointStyle++; |
375 if (buildCounterPointStyle < 3) { | 375 if (buildCounterPointStyle < 3) { |
376 unittest.expect(o.iconName, unittest.equals('foo')); | 376 unittest.expect(o.iconName, unittest.equals('foo')); |
377 checkStyleFunction(o.iconStyler); | 377 checkStyleFunction(o.iconStyler); |
378 } | 378 } |
379 buildCounterPointStyle--; | 379 buildCounterPointStyle--; |
380 } | 380 } |
381 | 381 |
382 buildUnnamed412() { | 382 buildUnnamed414() { |
383 var o = new core.List<core.double>(); | 383 var o = new core.List<core.double>(); |
384 o.add(42.0); | 384 o.add(42.0); |
385 o.add(42.0); | 385 o.add(42.0); |
386 return o; | 386 return o; |
387 } | 387 } |
388 | 388 |
389 checkUnnamed412(core.List<core.double> o) { | 389 checkUnnamed414(core.List<core.double> o) { |
390 unittest.expect(o, unittest.hasLength(2)); | 390 unittest.expect(o, unittest.hasLength(2)); |
391 unittest.expect(o[0], unittest.equals(42.0)); | 391 unittest.expect(o[0], unittest.equals(42.0)); |
392 unittest.expect(o[1], unittest.equals(42.0)); | 392 unittest.expect(o[1], unittest.equals(42.0)); |
393 } | 393 } |
394 | 394 |
395 buildUnnamed413() { | 395 buildUnnamed415() { |
396 var o = new core.List<core.List<core.double>>(); | 396 var o = new core.List<core.List<core.double>>(); |
397 o.add(buildUnnamed412()); | 397 o.add(buildUnnamed414()); |
398 o.add(buildUnnamed412()); | 398 o.add(buildUnnamed414()); |
399 return o; | 399 return o; |
400 } | 400 } |
401 | 401 |
402 checkUnnamed413(core.List<core.List<core.double>> o) { | 402 checkUnnamed415(core.List<core.List<core.double>> o) { |
403 unittest.expect(o, unittest.hasLength(2)); | 403 unittest.expect(o, unittest.hasLength(2)); |
404 checkUnnamed412(o[0]); | 404 checkUnnamed414(o[0]); |
405 checkUnnamed412(o[1]); | 405 checkUnnamed414(o[1]); |
406 } | 406 } |
407 | 407 |
408 buildUnnamed414() { | 408 buildUnnamed416() { |
409 var o = new core.List<core.List<core.List<core.double>>>(); | 409 var o = new core.List<core.List<core.List<core.double>>>(); |
410 o.add(buildUnnamed413()); | 410 o.add(buildUnnamed415()); |
411 o.add(buildUnnamed413()); | 411 o.add(buildUnnamed415()); |
412 return o; | 412 return o; |
413 } | 413 } |
414 | 414 |
415 checkUnnamed414(core.List<core.List<core.List<core.double>>> o) { | 415 checkUnnamed416(core.List<core.List<core.List<core.double>>> o) { |
416 unittest.expect(o, unittest.hasLength(2)); | 416 unittest.expect(o, unittest.hasLength(2)); |
417 checkUnnamed413(o[0]); | 417 checkUnnamed415(o[0]); |
418 checkUnnamed413(o[1]); | 418 checkUnnamed415(o[1]); |
419 } | 419 } |
420 | 420 |
421 core.int buildCounterPolygon = 0; | 421 core.int buildCounterPolygon = 0; |
422 buildPolygon() { | 422 buildPolygon() { |
423 var o = new api.Polygon(); | 423 var o = new api.Polygon(); |
424 buildCounterPolygon++; | 424 buildCounterPolygon++; |
425 if (buildCounterPolygon < 3) { | 425 if (buildCounterPolygon < 3) { |
426 o.coordinates = buildUnnamed414(); | 426 o.coordinates = buildUnnamed416(); |
427 o.type = "foo"; | 427 o.type = "foo"; |
428 } | 428 } |
429 buildCounterPolygon--; | 429 buildCounterPolygon--; |
430 return o; | 430 return o; |
431 } | 431 } |
432 | 432 |
433 checkPolygon(api.Polygon o) { | 433 checkPolygon(api.Polygon o) { |
434 buildCounterPolygon++; | 434 buildCounterPolygon++; |
435 if (buildCounterPolygon < 3) { | 435 if (buildCounterPolygon < 3) { |
436 checkUnnamed414(o.coordinates); | 436 checkUnnamed416(o.coordinates); |
437 unittest.expect(o.type, unittest.equals('foo')); | 437 unittest.expect(o.type, unittest.equals('foo')); |
438 } | 438 } |
439 buildCounterPolygon--; | 439 buildCounterPolygon--; |
440 } | 440 } |
441 | 441 |
442 core.int buildCounterPolygonStyle = 0; | 442 core.int buildCounterPolygonStyle = 0; |
443 buildPolygonStyle() { | 443 buildPolygonStyle() { |
444 var o = new api.PolygonStyle(); | 444 var o = new api.PolygonStyle(); |
445 buildCounterPolygonStyle++; | 445 buildCounterPolygonStyle++; |
446 if (buildCounterPolygonStyle < 3) { | 446 if (buildCounterPolygonStyle < 3) { |
(...skipping 18 matching lines...) Expand all Loading... |
465 unittest.expect(o.fillOpacity, unittest.equals(42.0)); | 465 unittest.expect(o.fillOpacity, unittest.equals(42.0)); |
466 unittest.expect(o.strokeColor, unittest.equals('foo')); | 466 unittest.expect(o.strokeColor, unittest.equals('foo')); |
467 checkStyleFunction(o.strokeColorStyler); | 467 checkStyleFunction(o.strokeColorStyler); |
468 unittest.expect(o.strokeOpacity, unittest.equals(42.0)); | 468 unittest.expect(o.strokeOpacity, unittest.equals(42.0)); |
469 unittest.expect(o.strokeWeight, unittest.equals(42)); | 469 unittest.expect(o.strokeWeight, unittest.equals(42)); |
470 checkStyleFunction(o.strokeWeightStyler); | 470 checkStyleFunction(o.strokeWeightStyler); |
471 } | 471 } |
472 buildCounterPolygonStyle--; | 472 buildCounterPolygonStyle--; |
473 } | 473 } |
474 | 474 |
475 buildUnnamed415() { | 475 buildUnnamed417() { |
476 var o = new core.List<core.String>(); | 476 var o = new core.List<core.String>(); |
477 o.add("foo"); | 477 o.add("foo"); |
478 o.add("foo"); | 478 o.add("foo"); |
479 return o; | 479 return o; |
480 } | 480 } |
481 | 481 |
482 checkUnnamed415(core.List<core.String> o) { | 482 checkUnnamed417(core.List<core.String> o) { |
483 unittest.expect(o, unittest.hasLength(2)); | 483 unittest.expect(o, unittest.hasLength(2)); |
484 unittest.expect(o[0], unittest.equals('foo')); | 484 unittest.expect(o[0], unittest.equals('foo')); |
485 unittest.expect(o[1], unittest.equals('foo')); | 485 unittest.expect(o[1], unittest.equals('foo')); |
486 } | 486 } |
487 | 487 |
488 buildUnnamed416() { | 488 buildUnnamed418() { |
489 var o = new core.List<core.Object>(); | 489 var o = new core.List<core.Object>(); |
490 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 490 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
491 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 491 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
492 return o; | 492 return o; |
493 } | 493 } |
494 | 494 |
495 checkUnnamed416(core.List<core.Object> o) { | 495 checkUnnamed418(core.List<core.Object> o) { |
496 unittest.expect(o, unittest.hasLength(2)); | 496 unittest.expect(o, unittest.hasLength(2)); |
497 var casted4 = (o[0]) as core.Map; unittest.expect(casted4, unittest.hasLength(
3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], u
nittest.equals('foo')); | 497 var casted4 = (o[0]) as core.Map; unittest.expect(casted4, unittest.hasLength(
3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], u
nittest.equals('foo')); |
498 var casted5 = (o[1]) as core.Map; unittest.expect(casted5, unittest.hasLength(
3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], u
nittest.equals('foo')); | 498 var casted5 = (o[1]) as core.Map; unittest.expect(casted5, unittest.hasLength(
3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], u
nittest.equals('foo')); |
499 } | 499 } |
500 | 500 |
501 buildUnnamed417() { | 501 buildUnnamed419() { |
502 var o = new core.List<core.List<core.Object>>(); | 502 var o = new core.List<core.List<core.Object>>(); |
503 o.add(buildUnnamed416()); | 503 o.add(buildUnnamed418()); |
504 o.add(buildUnnamed416()); | 504 o.add(buildUnnamed418()); |
505 return o; | 505 return o; |
506 } | 506 } |
507 | 507 |
508 checkUnnamed417(core.List<core.List<core.Object>> o) { | 508 checkUnnamed419(core.List<core.List<core.Object>> o) { |
509 unittest.expect(o, unittest.hasLength(2)); | 509 unittest.expect(o, unittest.hasLength(2)); |
510 checkUnnamed416(o[0]); | 510 checkUnnamed418(o[0]); |
511 checkUnnamed416(o[1]); | 511 checkUnnamed418(o[1]); |
512 } | 512 } |
513 | 513 |
514 core.int buildCounterSqlresponse = 0; | 514 core.int buildCounterSqlresponse = 0; |
515 buildSqlresponse() { | 515 buildSqlresponse() { |
516 var o = new api.Sqlresponse(); | 516 var o = new api.Sqlresponse(); |
517 buildCounterSqlresponse++; | 517 buildCounterSqlresponse++; |
518 if (buildCounterSqlresponse < 3) { | 518 if (buildCounterSqlresponse < 3) { |
519 o.columns = buildUnnamed415(); | 519 o.columns = buildUnnamed417(); |
520 o.kind = "foo"; | 520 o.kind = "foo"; |
521 o.rows = buildUnnamed417(); | 521 o.rows = buildUnnamed419(); |
522 } | 522 } |
523 buildCounterSqlresponse--; | 523 buildCounterSqlresponse--; |
524 return o; | 524 return o; |
525 } | 525 } |
526 | 526 |
527 checkSqlresponse(api.Sqlresponse o) { | 527 checkSqlresponse(api.Sqlresponse o) { |
528 buildCounterSqlresponse++; | 528 buildCounterSqlresponse++; |
529 if (buildCounterSqlresponse < 3) { | 529 if (buildCounterSqlresponse < 3) { |
530 checkUnnamed415(o.columns); | 530 checkUnnamed417(o.columns); |
531 unittest.expect(o.kind, unittest.equals('foo')); | 531 unittest.expect(o.kind, unittest.equals('foo')); |
532 checkUnnamed417(o.rows); | 532 checkUnnamed419(o.rows); |
533 } | 533 } |
534 buildCounterSqlresponse--; | 534 buildCounterSqlresponse--; |
535 } | 535 } |
536 | 536 |
537 buildUnnamed418() { | 537 buildUnnamed420() { |
538 var o = new core.List<api.Bucket>(); | 538 var o = new core.List<api.Bucket>(); |
539 o.add(buildBucket()); | 539 o.add(buildBucket()); |
540 o.add(buildBucket()); | 540 o.add(buildBucket()); |
541 return o; | 541 return o; |
542 } | 542 } |
543 | 543 |
544 checkUnnamed418(core.List<api.Bucket> o) { | 544 checkUnnamed420(core.List<api.Bucket> o) { |
545 unittest.expect(o, unittest.hasLength(2)); | 545 unittest.expect(o, unittest.hasLength(2)); |
546 checkBucket(o[0]); | 546 checkBucket(o[0]); |
547 checkBucket(o[1]); | 547 checkBucket(o[1]); |
548 } | 548 } |
549 | 549 |
550 core.int buildCounterStyleFunctionGradientColors = 0; | 550 core.int buildCounterStyleFunctionGradientColors = 0; |
551 buildStyleFunctionGradientColors() { | 551 buildStyleFunctionGradientColors() { |
552 var o = new api.StyleFunctionGradientColors(); | 552 var o = new api.StyleFunctionGradientColors(); |
553 buildCounterStyleFunctionGradientColors++; | 553 buildCounterStyleFunctionGradientColors++; |
554 if (buildCounterStyleFunctionGradientColors < 3) { | 554 if (buildCounterStyleFunctionGradientColors < 3) { |
555 o.color = "foo"; | 555 o.color = "foo"; |
556 o.opacity = 42.0; | 556 o.opacity = 42.0; |
557 } | 557 } |
558 buildCounterStyleFunctionGradientColors--; | 558 buildCounterStyleFunctionGradientColors--; |
559 return o; | 559 return o; |
560 } | 560 } |
561 | 561 |
562 checkStyleFunctionGradientColors(api.StyleFunctionGradientColors o) { | 562 checkStyleFunctionGradientColors(api.StyleFunctionGradientColors o) { |
563 buildCounterStyleFunctionGradientColors++; | 563 buildCounterStyleFunctionGradientColors++; |
564 if (buildCounterStyleFunctionGradientColors < 3) { | 564 if (buildCounterStyleFunctionGradientColors < 3) { |
565 unittest.expect(o.color, unittest.equals('foo')); | 565 unittest.expect(o.color, unittest.equals('foo')); |
566 unittest.expect(o.opacity, unittest.equals(42.0)); | 566 unittest.expect(o.opacity, unittest.equals(42.0)); |
567 } | 567 } |
568 buildCounterStyleFunctionGradientColors--; | 568 buildCounterStyleFunctionGradientColors--; |
569 } | 569 } |
570 | 570 |
571 buildUnnamed419() { | 571 buildUnnamed421() { |
572 var o = new core.List<api.StyleFunctionGradientColors>(); | 572 var o = new core.List<api.StyleFunctionGradientColors>(); |
573 o.add(buildStyleFunctionGradientColors()); | 573 o.add(buildStyleFunctionGradientColors()); |
574 o.add(buildStyleFunctionGradientColors()); | 574 o.add(buildStyleFunctionGradientColors()); |
575 return o; | 575 return o; |
576 } | 576 } |
577 | 577 |
578 checkUnnamed419(core.List<api.StyleFunctionGradientColors> o) { | 578 checkUnnamed421(core.List<api.StyleFunctionGradientColors> o) { |
579 unittest.expect(o, unittest.hasLength(2)); | 579 unittest.expect(o, unittest.hasLength(2)); |
580 checkStyleFunctionGradientColors(o[0]); | 580 checkStyleFunctionGradientColors(o[0]); |
581 checkStyleFunctionGradientColors(o[1]); | 581 checkStyleFunctionGradientColors(o[1]); |
582 } | 582 } |
583 | 583 |
584 core.int buildCounterStyleFunctionGradient = 0; | 584 core.int buildCounterStyleFunctionGradient = 0; |
585 buildStyleFunctionGradient() { | 585 buildStyleFunctionGradient() { |
586 var o = new api.StyleFunctionGradient(); | 586 var o = new api.StyleFunctionGradient(); |
587 buildCounterStyleFunctionGradient++; | 587 buildCounterStyleFunctionGradient++; |
588 if (buildCounterStyleFunctionGradient < 3) { | 588 if (buildCounterStyleFunctionGradient < 3) { |
589 o.colors = buildUnnamed419(); | 589 o.colors = buildUnnamed421(); |
590 o.max = 42.0; | 590 o.max = 42.0; |
591 o.min = 42.0; | 591 o.min = 42.0; |
592 } | 592 } |
593 buildCounterStyleFunctionGradient--; | 593 buildCounterStyleFunctionGradient--; |
594 return o; | 594 return o; |
595 } | 595 } |
596 | 596 |
597 checkStyleFunctionGradient(api.StyleFunctionGradient o) { | 597 checkStyleFunctionGradient(api.StyleFunctionGradient o) { |
598 buildCounterStyleFunctionGradient++; | 598 buildCounterStyleFunctionGradient++; |
599 if (buildCounterStyleFunctionGradient < 3) { | 599 if (buildCounterStyleFunctionGradient < 3) { |
600 checkUnnamed419(o.colors); | 600 checkUnnamed421(o.colors); |
601 unittest.expect(o.max, unittest.equals(42.0)); | 601 unittest.expect(o.max, unittest.equals(42.0)); |
602 unittest.expect(o.min, unittest.equals(42.0)); | 602 unittest.expect(o.min, unittest.equals(42.0)); |
603 } | 603 } |
604 buildCounterStyleFunctionGradient--; | 604 buildCounterStyleFunctionGradient--; |
605 } | 605 } |
606 | 606 |
607 core.int buildCounterStyleFunction = 0; | 607 core.int buildCounterStyleFunction = 0; |
608 buildStyleFunction() { | 608 buildStyleFunction() { |
609 var o = new api.StyleFunction(); | 609 var o = new api.StyleFunction(); |
610 buildCounterStyleFunction++; | 610 buildCounterStyleFunction++; |
611 if (buildCounterStyleFunction < 3) { | 611 if (buildCounterStyleFunction < 3) { |
612 o.buckets = buildUnnamed418(); | 612 o.buckets = buildUnnamed420(); |
613 o.columnName = "foo"; | 613 o.columnName = "foo"; |
614 o.gradient = buildStyleFunctionGradient(); | 614 o.gradient = buildStyleFunctionGradient(); |
615 o.kind = "foo"; | 615 o.kind = "foo"; |
616 } | 616 } |
617 buildCounterStyleFunction--; | 617 buildCounterStyleFunction--; |
618 return o; | 618 return o; |
619 } | 619 } |
620 | 620 |
621 checkStyleFunction(api.StyleFunction o) { | 621 checkStyleFunction(api.StyleFunction o) { |
622 buildCounterStyleFunction++; | 622 buildCounterStyleFunction++; |
623 if (buildCounterStyleFunction < 3) { | 623 if (buildCounterStyleFunction < 3) { |
624 checkUnnamed418(o.buckets); | 624 checkUnnamed420(o.buckets); |
625 unittest.expect(o.columnName, unittest.equals('foo')); | 625 unittest.expect(o.columnName, unittest.equals('foo')); |
626 checkStyleFunctionGradient(o.gradient); | 626 checkStyleFunctionGradient(o.gradient); |
627 unittest.expect(o.kind, unittest.equals('foo')); | 627 unittest.expect(o.kind, unittest.equals('foo')); |
628 } | 628 } |
629 buildCounterStyleFunction--; | 629 buildCounterStyleFunction--; |
630 } | 630 } |
631 | 631 |
632 core.int buildCounterStyleSetting = 0; | 632 core.int buildCounterStyleSetting = 0; |
633 buildStyleSetting() { | 633 buildStyleSetting() { |
634 var o = new api.StyleSetting(); | 634 var o = new api.StyleSetting(); |
(...skipping 18 matching lines...) Expand all Loading... |
653 checkPointStyle(o.markerOptions); | 653 checkPointStyle(o.markerOptions); |
654 unittest.expect(o.name, unittest.equals('foo')); | 654 unittest.expect(o.name, unittest.equals('foo')); |
655 checkPolygonStyle(o.polygonOptions); | 655 checkPolygonStyle(o.polygonOptions); |
656 checkLineStyle(o.polylineOptions); | 656 checkLineStyle(o.polylineOptions); |
657 unittest.expect(o.styleId, unittest.equals(42)); | 657 unittest.expect(o.styleId, unittest.equals(42)); |
658 unittest.expect(o.tableId, unittest.equals('foo')); | 658 unittest.expect(o.tableId, unittest.equals('foo')); |
659 } | 659 } |
660 buildCounterStyleSetting--; | 660 buildCounterStyleSetting--; |
661 } | 661 } |
662 | 662 |
663 buildUnnamed420() { | 663 buildUnnamed422() { |
664 var o = new core.List<api.StyleSetting>(); | 664 var o = new core.List<api.StyleSetting>(); |
665 o.add(buildStyleSetting()); | 665 o.add(buildStyleSetting()); |
666 o.add(buildStyleSetting()); | 666 o.add(buildStyleSetting()); |
667 return o; | 667 return o; |
668 } | 668 } |
669 | 669 |
670 checkUnnamed420(core.List<api.StyleSetting> o) { | 670 checkUnnamed422(core.List<api.StyleSetting> o) { |
671 unittest.expect(o, unittest.hasLength(2)); | 671 unittest.expect(o, unittest.hasLength(2)); |
672 checkStyleSetting(o[0]); | 672 checkStyleSetting(o[0]); |
673 checkStyleSetting(o[1]); | 673 checkStyleSetting(o[1]); |
674 } | 674 } |
675 | 675 |
676 core.int buildCounterStyleSettingList = 0; | 676 core.int buildCounterStyleSettingList = 0; |
677 buildStyleSettingList() { | 677 buildStyleSettingList() { |
678 var o = new api.StyleSettingList(); | 678 var o = new api.StyleSettingList(); |
679 buildCounterStyleSettingList++; | 679 buildCounterStyleSettingList++; |
680 if (buildCounterStyleSettingList < 3) { | 680 if (buildCounterStyleSettingList < 3) { |
681 o.items = buildUnnamed420(); | 681 o.items = buildUnnamed422(); |
682 o.kind = "foo"; | 682 o.kind = "foo"; |
683 o.nextPageToken = "foo"; | 683 o.nextPageToken = "foo"; |
684 o.totalItems = 42; | 684 o.totalItems = 42; |
685 } | 685 } |
686 buildCounterStyleSettingList--; | 686 buildCounterStyleSettingList--; |
687 return o; | 687 return o; |
688 } | 688 } |
689 | 689 |
690 checkStyleSettingList(api.StyleSettingList o) { | 690 checkStyleSettingList(api.StyleSettingList o) { |
691 buildCounterStyleSettingList++; | 691 buildCounterStyleSettingList++; |
692 if (buildCounterStyleSettingList < 3) { | 692 if (buildCounterStyleSettingList < 3) { |
693 checkUnnamed420(o.items); | 693 checkUnnamed422(o.items); |
694 unittest.expect(o.kind, unittest.equals('foo')); | 694 unittest.expect(o.kind, unittest.equals('foo')); |
695 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 695 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
696 unittest.expect(o.totalItems, unittest.equals(42)); | 696 unittest.expect(o.totalItems, unittest.equals(42)); |
697 } | 697 } |
698 buildCounterStyleSettingList--; | 698 buildCounterStyleSettingList--; |
699 } | 699 } |
700 | 700 |
701 buildUnnamed421() { | 701 buildUnnamed423() { |
702 var o = new core.List<core.String>(); | 702 var o = new core.List<core.String>(); |
703 o.add("foo"); | 703 o.add("foo"); |
704 o.add("foo"); | 704 o.add("foo"); |
705 return o; | 705 return o; |
706 } | 706 } |
707 | 707 |
708 checkUnnamed421(core.List<core.String> o) { | 708 checkUnnamed423(core.List<core.String> o) { |
709 unittest.expect(o, unittest.hasLength(2)); | 709 unittest.expect(o, unittest.hasLength(2)); |
710 unittest.expect(o[0], unittest.equals('foo')); | 710 unittest.expect(o[0], unittest.equals('foo')); |
711 unittest.expect(o[1], unittest.equals('foo')); | 711 unittest.expect(o[1], unittest.equals('foo')); |
712 } | 712 } |
713 | 713 |
714 buildUnnamed422() { | 714 buildUnnamed424() { |
715 var o = new core.List<api.Column>(); | 715 var o = new core.List<api.Column>(); |
716 o.add(buildColumn()); | 716 o.add(buildColumn()); |
717 o.add(buildColumn()); | 717 o.add(buildColumn()); |
718 return o; | 718 return o; |
719 } | 719 } |
720 | 720 |
721 checkUnnamed422(core.List<api.Column> o) { | 721 checkUnnamed424(core.List<api.Column> o) { |
722 unittest.expect(o, unittest.hasLength(2)); | 722 unittest.expect(o, unittest.hasLength(2)); |
723 checkColumn(o[0]); | 723 checkColumn(o[0]); |
724 checkColumn(o[1]); | 724 checkColumn(o[1]); |
725 } | 725 } |
726 | 726 |
727 core.int buildCounterTable = 0; | 727 core.int buildCounterTable = 0; |
728 buildTable() { | 728 buildTable() { |
729 var o = new api.Table(); | 729 var o = new api.Table(); |
730 buildCounterTable++; | 730 buildCounterTable++; |
731 if (buildCounterTable < 3) { | 731 if (buildCounterTable < 3) { |
732 o.attribution = "foo"; | 732 o.attribution = "foo"; |
733 o.attributionLink = "foo"; | 733 o.attributionLink = "foo"; |
734 o.baseTableIds = buildUnnamed421(); | 734 o.baseTableIds = buildUnnamed423(); |
735 o.columnPropertiesJsonSchema = "foo"; | 735 o.columnPropertiesJsonSchema = "foo"; |
736 o.columns = buildUnnamed422(); | 736 o.columns = buildUnnamed424(); |
737 o.description = "foo"; | 737 o.description = "foo"; |
738 o.isExportable = true; | 738 o.isExportable = true; |
739 o.kind = "foo"; | 739 o.kind = "foo"; |
740 o.name = "foo"; | 740 o.name = "foo"; |
741 o.sql = "foo"; | 741 o.sql = "foo"; |
742 o.tableId = "foo"; | 742 o.tableId = "foo"; |
743 o.tablePropertiesJson = "foo"; | 743 o.tablePropertiesJson = "foo"; |
744 o.tablePropertiesJsonSchema = "foo"; | 744 o.tablePropertiesJsonSchema = "foo"; |
745 } | 745 } |
746 buildCounterTable--; | 746 buildCounterTable--; |
747 return o; | 747 return o; |
748 } | 748 } |
749 | 749 |
750 checkTable(api.Table o) { | 750 checkTable(api.Table o) { |
751 buildCounterTable++; | 751 buildCounterTable++; |
752 if (buildCounterTable < 3) { | 752 if (buildCounterTable < 3) { |
753 unittest.expect(o.attribution, unittest.equals('foo')); | 753 unittest.expect(o.attribution, unittest.equals('foo')); |
754 unittest.expect(o.attributionLink, unittest.equals('foo')); | 754 unittest.expect(o.attributionLink, unittest.equals('foo')); |
755 checkUnnamed421(o.baseTableIds); | 755 checkUnnamed423(o.baseTableIds); |
756 unittest.expect(o.columnPropertiesJsonSchema, unittest.equals('foo')); | 756 unittest.expect(o.columnPropertiesJsonSchema, unittest.equals('foo')); |
757 checkUnnamed422(o.columns); | 757 checkUnnamed424(o.columns); |
758 unittest.expect(o.description, unittest.equals('foo')); | 758 unittest.expect(o.description, unittest.equals('foo')); |
759 unittest.expect(o.isExportable, unittest.isTrue); | 759 unittest.expect(o.isExportable, unittest.isTrue); |
760 unittest.expect(o.kind, unittest.equals('foo')); | 760 unittest.expect(o.kind, unittest.equals('foo')); |
761 unittest.expect(o.name, unittest.equals('foo')); | 761 unittest.expect(o.name, unittest.equals('foo')); |
762 unittest.expect(o.sql, unittest.equals('foo')); | 762 unittest.expect(o.sql, unittest.equals('foo')); |
763 unittest.expect(o.tableId, unittest.equals('foo')); | 763 unittest.expect(o.tableId, unittest.equals('foo')); |
764 unittest.expect(o.tablePropertiesJson, unittest.equals('foo')); | 764 unittest.expect(o.tablePropertiesJson, unittest.equals('foo')); |
765 unittest.expect(o.tablePropertiesJsonSchema, unittest.equals('foo')); | 765 unittest.expect(o.tablePropertiesJsonSchema, unittest.equals('foo')); |
766 } | 766 } |
767 buildCounterTable--; | 767 buildCounterTable--; |
768 } | 768 } |
769 | 769 |
770 buildUnnamed423() { | 770 buildUnnamed425() { |
771 var o = new core.List<api.Table>(); | 771 var o = new core.List<api.Table>(); |
772 o.add(buildTable()); | 772 o.add(buildTable()); |
773 o.add(buildTable()); | 773 o.add(buildTable()); |
774 return o; | 774 return o; |
775 } | 775 } |
776 | 776 |
777 checkUnnamed423(core.List<api.Table> o) { | 777 checkUnnamed425(core.List<api.Table> o) { |
778 unittest.expect(o, unittest.hasLength(2)); | 778 unittest.expect(o, unittest.hasLength(2)); |
779 checkTable(o[0]); | 779 checkTable(o[0]); |
780 checkTable(o[1]); | 780 checkTable(o[1]); |
781 } | 781 } |
782 | 782 |
783 core.int buildCounterTableList = 0; | 783 core.int buildCounterTableList = 0; |
784 buildTableList() { | 784 buildTableList() { |
785 var o = new api.TableList(); | 785 var o = new api.TableList(); |
786 buildCounterTableList++; | 786 buildCounterTableList++; |
787 if (buildCounterTableList < 3) { | 787 if (buildCounterTableList < 3) { |
788 o.items = buildUnnamed423(); | 788 o.items = buildUnnamed425(); |
789 o.kind = "foo"; | 789 o.kind = "foo"; |
790 o.nextPageToken = "foo"; | 790 o.nextPageToken = "foo"; |
791 } | 791 } |
792 buildCounterTableList--; | 792 buildCounterTableList--; |
793 return o; | 793 return o; |
794 } | 794 } |
795 | 795 |
796 checkTableList(api.TableList o) { | 796 checkTableList(api.TableList o) { |
797 buildCounterTableList++; | 797 buildCounterTableList++; |
798 if (buildCounterTableList < 3) { | 798 if (buildCounterTableList < 3) { |
799 checkUnnamed423(o.items); | 799 checkUnnamed425(o.items); |
800 unittest.expect(o.kind, unittest.equals('foo')); | 800 unittest.expect(o.kind, unittest.equals('foo')); |
801 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 801 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
802 } | 802 } |
803 buildCounterTableList--; | 803 buildCounterTableList--; |
804 } | 804 } |
805 | 805 |
806 core.int buildCounterTask = 0; | 806 core.int buildCounterTask = 0; |
807 buildTask() { | 807 buildTask() { |
808 var o = new api.Task(); | 808 var o = new api.Task(); |
809 buildCounterTask++; | 809 buildCounterTask++; |
(...skipping 13 matching lines...) Expand all Loading... |
823 if (buildCounterTask < 3) { | 823 if (buildCounterTask < 3) { |
824 unittest.expect(o.kind, unittest.equals('foo')); | 824 unittest.expect(o.kind, unittest.equals('foo')); |
825 unittest.expect(o.progress, unittest.equals('foo')); | 825 unittest.expect(o.progress, unittest.equals('foo')); |
826 unittest.expect(o.started, unittest.isTrue); | 826 unittest.expect(o.started, unittest.isTrue); |
827 unittest.expect(o.taskId, unittest.equals('foo')); | 827 unittest.expect(o.taskId, unittest.equals('foo')); |
828 unittest.expect(o.type, unittest.equals('foo')); | 828 unittest.expect(o.type, unittest.equals('foo')); |
829 } | 829 } |
830 buildCounterTask--; | 830 buildCounterTask--; |
831 } | 831 } |
832 | 832 |
833 buildUnnamed424() { | 833 buildUnnamed426() { |
834 var o = new core.List<api.Task>(); | 834 var o = new core.List<api.Task>(); |
835 o.add(buildTask()); | 835 o.add(buildTask()); |
836 o.add(buildTask()); | 836 o.add(buildTask()); |
837 return o; | 837 return o; |
838 } | 838 } |
839 | 839 |
840 checkUnnamed424(core.List<api.Task> o) { | 840 checkUnnamed426(core.List<api.Task> o) { |
841 unittest.expect(o, unittest.hasLength(2)); | 841 unittest.expect(o, unittest.hasLength(2)); |
842 checkTask(o[0]); | 842 checkTask(o[0]); |
843 checkTask(o[1]); | 843 checkTask(o[1]); |
844 } | 844 } |
845 | 845 |
846 core.int buildCounterTaskList = 0; | 846 core.int buildCounterTaskList = 0; |
847 buildTaskList() { | 847 buildTaskList() { |
848 var o = new api.TaskList(); | 848 var o = new api.TaskList(); |
849 buildCounterTaskList++; | 849 buildCounterTaskList++; |
850 if (buildCounterTaskList < 3) { | 850 if (buildCounterTaskList < 3) { |
851 o.items = buildUnnamed424(); | 851 o.items = buildUnnamed426(); |
852 o.kind = "foo"; | 852 o.kind = "foo"; |
853 o.nextPageToken = "foo"; | 853 o.nextPageToken = "foo"; |
854 o.totalItems = 42; | 854 o.totalItems = 42; |
855 } | 855 } |
856 buildCounterTaskList--; | 856 buildCounterTaskList--; |
857 return o; | 857 return o; |
858 } | 858 } |
859 | 859 |
860 checkTaskList(api.TaskList o) { | 860 checkTaskList(api.TaskList o) { |
861 buildCounterTaskList++; | 861 buildCounterTaskList++; |
862 if (buildCounterTaskList < 3) { | 862 if (buildCounterTaskList < 3) { |
863 checkUnnamed424(o.items); | 863 checkUnnamed426(o.items); |
864 unittest.expect(o.kind, unittest.equals('foo')); | 864 unittest.expect(o.kind, unittest.equals('foo')); |
865 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 865 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
866 unittest.expect(o.totalItems, unittest.equals(42)); | 866 unittest.expect(o.totalItems, unittest.equals(42)); |
867 } | 867 } |
868 buildCounterTaskList--; | 868 buildCounterTaskList--; |
869 } | 869 } |
870 | 870 |
871 buildUnnamed425() { | 871 buildUnnamed427() { |
872 var o = new core.List<core.String>(); | 872 var o = new core.List<core.String>(); |
873 o.add("foo"); | 873 o.add("foo"); |
874 o.add("foo"); | 874 o.add("foo"); |
875 return o; | 875 return o; |
876 } | 876 } |
877 | 877 |
878 checkUnnamed425(core.List<core.String> o) { | 878 checkUnnamed427(core.List<core.String> o) { |
879 unittest.expect(o, unittest.hasLength(2)); | 879 unittest.expect(o, unittest.hasLength(2)); |
880 unittest.expect(o[0], unittest.equals('foo')); | 880 unittest.expect(o[0], unittest.equals('foo')); |
881 unittest.expect(o[1], unittest.equals('foo')); | 881 unittest.expect(o[1], unittest.equals('foo')); |
882 } | 882 } |
883 | 883 |
884 core.int buildCounterTemplate = 0; | 884 core.int buildCounterTemplate = 0; |
885 buildTemplate() { | 885 buildTemplate() { |
886 var o = new api.Template(); | 886 var o = new api.Template(); |
887 buildCounterTemplate++; | 887 buildCounterTemplate++; |
888 if (buildCounterTemplate < 3) { | 888 if (buildCounterTemplate < 3) { |
889 o.automaticColumnNames = buildUnnamed425(); | 889 o.automaticColumnNames = buildUnnamed427(); |
890 o.body = "foo"; | 890 o.body = "foo"; |
891 o.kind = "foo"; | 891 o.kind = "foo"; |
892 o.name = "foo"; | 892 o.name = "foo"; |
893 o.tableId = "foo"; | 893 o.tableId = "foo"; |
894 o.templateId = 42; | 894 o.templateId = 42; |
895 } | 895 } |
896 buildCounterTemplate--; | 896 buildCounterTemplate--; |
897 return o; | 897 return o; |
898 } | 898 } |
899 | 899 |
900 checkTemplate(api.Template o) { | 900 checkTemplate(api.Template o) { |
901 buildCounterTemplate++; | 901 buildCounterTemplate++; |
902 if (buildCounterTemplate < 3) { | 902 if (buildCounterTemplate < 3) { |
903 checkUnnamed425(o.automaticColumnNames); | 903 checkUnnamed427(o.automaticColumnNames); |
904 unittest.expect(o.body, unittest.equals('foo')); | 904 unittest.expect(o.body, unittest.equals('foo')); |
905 unittest.expect(o.kind, unittest.equals('foo')); | 905 unittest.expect(o.kind, unittest.equals('foo')); |
906 unittest.expect(o.name, unittest.equals('foo')); | 906 unittest.expect(o.name, unittest.equals('foo')); |
907 unittest.expect(o.tableId, unittest.equals('foo')); | 907 unittest.expect(o.tableId, unittest.equals('foo')); |
908 unittest.expect(o.templateId, unittest.equals(42)); | 908 unittest.expect(o.templateId, unittest.equals(42)); |
909 } | 909 } |
910 buildCounterTemplate--; | 910 buildCounterTemplate--; |
911 } | 911 } |
912 | 912 |
913 buildUnnamed426() { | 913 buildUnnamed428() { |
914 var o = new core.List<api.Template>(); | 914 var o = new core.List<api.Template>(); |
915 o.add(buildTemplate()); | 915 o.add(buildTemplate()); |
916 o.add(buildTemplate()); | 916 o.add(buildTemplate()); |
917 return o; | 917 return o; |
918 } | 918 } |
919 | 919 |
920 checkUnnamed426(core.List<api.Template> o) { | 920 checkUnnamed428(core.List<api.Template> o) { |
921 unittest.expect(o, unittest.hasLength(2)); | 921 unittest.expect(o, unittest.hasLength(2)); |
922 checkTemplate(o[0]); | 922 checkTemplate(o[0]); |
923 checkTemplate(o[1]); | 923 checkTemplate(o[1]); |
924 } | 924 } |
925 | 925 |
926 core.int buildCounterTemplateList = 0; | 926 core.int buildCounterTemplateList = 0; |
927 buildTemplateList() { | 927 buildTemplateList() { |
928 var o = new api.TemplateList(); | 928 var o = new api.TemplateList(); |
929 buildCounterTemplateList++; | 929 buildCounterTemplateList++; |
930 if (buildCounterTemplateList < 3) { | 930 if (buildCounterTemplateList < 3) { |
931 o.items = buildUnnamed426(); | 931 o.items = buildUnnamed428(); |
932 o.kind = "foo"; | 932 o.kind = "foo"; |
933 o.nextPageToken = "foo"; | 933 o.nextPageToken = "foo"; |
934 o.totalItems = 42; | 934 o.totalItems = 42; |
935 } | 935 } |
936 buildCounterTemplateList--; | 936 buildCounterTemplateList--; |
937 return o; | 937 return o; |
938 } | 938 } |
939 | 939 |
940 checkTemplateList(api.TemplateList o) { | 940 checkTemplateList(api.TemplateList o) { |
941 buildCounterTemplateList++; | 941 buildCounterTemplateList++; |
942 if (buildCounterTemplateList < 3) { | 942 if (buildCounterTemplateList < 3) { |
943 checkUnnamed426(o.items); | 943 checkUnnamed428(o.items); |
944 unittest.expect(o.kind, unittest.equals('foo')); | 944 unittest.expect(o.kind, unittest.equals('foo')); |
945 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 945 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
946 unittest.expect(o.totalItems, unittest.equals(42)); | 946 unittest.expect(o.totalItems, unittest.equals(42)); |
947 } | 947 } |
948 buildCounterTemplateList--; | 948 buildCounterTemplateList--; |
949 } | 949 } |
950 | 950 |
951 | 951 |
952 main() { | 952 main() { |
953 unittest.group("obj-schema-Bucket", () { | 953 unittest.group("obj-schema-Bucket", () { |
(...skipping 2094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3048 res.update(arg_request, arg_tableId, arg_templateId).then(unittest.expectA
sync(((api.Template response) { | 3048 res.update(arg_request, arg_tableId, arg_templateId).then(unittest.expectA
sync(((api.Template response) { |
3049 checkTemplate(response); | 3049 checkTemplate(response); |
3050 }))); | 3050 }))); |
3051 }); | 3051 }); |
3052 | 3052 |
3053 }); | 3053 }); |
3054 | 3054 |
3055 | 3055 |
3056 } | 3056 } |
3057 | 3057 |
OLD | NEW |