OLD | NEW |
1 library googleapis.bigquery.v2.test; | 1 library googleapis.bigquery.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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 unittest.expect(o.domain, unittest.equals('foo')); | 102 unittest.expect(o.domain, unittest.equals('foo')); |
103 unittest.expect(o.groupByEmail, unittest.equals('foo')); | 103 unittest.expect(o.groupByEmail, unittest.equals('foo')); |
104 unittest.expect(o.role, unittest.equals('foo')); | 104 unittest.expect(o.role, unittest.equals('foo')); |
105 unittest.expect(o.specialGroup, unittest.equals('foo')); | 105 unittest.expect(o.specialGroup, unittest.equals('foo')); |
106 unittest.expect(o.userByEmail, unittest.equals('foo')); | 106 unittest.expect(o.userByEmail, unittest.equals('foo')); |
107 checkTableReference(o.view); | 107 checkTableReference(o.view); |
108 } | 108 } |
109 buildCounterDatasetAccess--; | 109 buildCounterDatasetAccess--; |
110 } | 110 } |
111 | 111 |
112 buildUnnamed337() { | 112 buildUnnamed2248() { |
113 var o = new core.List<api.DatasetAccess>(); | 113 var o = new core.List<api.DatasetAccess>(); |
114 o.add(buildDatasetAccess()); | 114 o.add(buildDatasetAccess()); |
115 o.add(buildDatasetAccess()); | 115 o.add(buildDatasetAccess()); |
116 return o; | 116 return o; |
117 } | 117 } |
118 | 118 |
119 checkUnnamed337(core.List<api.DatasetAccess> o) { | 119 checkUnnamed2248(core.List<api.DatasetAccess> o) { |
120 unittest.expect(o, unittest.hasLength(2)); | 120 unittest.expect(o, unittest.hasLength(2)); |
121 checkDatasetAccess(o[0]); | 121 checkDatasetAccess(o[0]); |
122 checkDatasetAccess(o[1]); | 122 checkDatasetAccess(o[1]); |
123 } | 123 } |
124 | 124 |
125 core.int buildCounterDataset = 0; | 125 core.int buildCounterDataset = 0; |
126 buildDataset() { | 126 buildDataset() { |
127 var o = new api.Dataset(); | 127 var o = new api.Dataset(); |
128 buildCounterDataset++; | 128 buildCounterDataset++; |
129 if (buildCounterDataset < 3) { | 129 if (buildCounterDataset < 3) { |
130 o.access = buildUnnamed337(); | 130 o.access = buildUnnamed2248(); |
131 o.creationTime = "foo"; | 131 o.creationTime = "foo"; |
132 o.datasetReference = buildDatasetReference(); | 132 o.datasetReference = buildDatasetReference(); |
133 o.defaultTableExpirationMs = "foo"; | 133 o.defaultTableExpirationMs = "foo"; |
134 o.description = "foo"; | 134 o.description = "foo"; |
135 o.etag = "foo"; | 135 o.etag = "foo"; |
136 o.friendlyName = "foo"; | 136 o.friendlyName = "foo"; |
137 o.id = "foo"; | 137 o.id = "foo"; |
138 o.kind = "foo"; | 138 o.kind = "foo"; |
139 o.lastModifiedTime = "foo"; | 139 o.lastModifiedTime = "foo"; |
140 o.location = "foo"; | 140 o.location = "foo"; |
141 o.selfLink = "foo"; | 141 o.selfLink = "foo"; |
142 } | 142 } |
143 buildCounterDataset--; | 143 buildCounterDataset--; |
144 return o; | 144 return o; |
145 } | 145 } |
146 | 146 |
147 checkDataset(api.Dataset o) { | 147 checkDataset(api.Dataset o) { |
148 buildCounterDataset++; | 148 buildCounterDataset++; |
149 if (buildCounterDataset < 3) { | 149 if (buildCounterDataset < 3) { |
150 checkUnnamed337(o.access); | 150 checkUnnamed2248(o.access); |
151 unittest.expect(o.creationTime, unittest.equals('foo')); | 151 unittest.expect(o.creationTime, unittest.equals('foo')); |
152 checkDatasetReference(o.datasetReference); | 152 checkDatasetReference(o.datasetReference); |
153 unittest.expect(o.defaultTableExpirationMs, unittest.equals('foo')); | 153 unittest.expect(o.defaultTableExpirationMs, unittest.equals('foo')); |
154 unittest.expect(o.description, unittest.equals('foo')); | 154 unittest.expect(o.description, unittest.equals('foo')); |
155 unittest.expect(o.etag, unittest.equals('foo')); | 155 unittest.expect(o.etag, unittest.equals('foo')); |
156 unittest.expect(o.friendlyName, unittest.equals('foo')); | 156 unittest.expect(o.friendlyName, unittest.equals('foo')); |
157 unittest.expect(o.id, unittest.equals('foo')); | 157 unittest.expect(o.id, unittest.equals('foo')); |
158 unittest.expect(o.kind, unittest.equals('foo')); | 158 unittest.expect(o.kind, unittest.equals('foo')); |
159 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); | 159 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); |
160 unittest.expect(o.location, unittest.equals('foo')); | 160 unittest.expect(o.location, unittest.equals('foo')); |
(...skipping 20 matching lines...) Expand all Loading... |
181 buildCounterDatasetListDatasets++; | 181 buildCounterDatasetListDatasets++; |
182 if (buildCounterDatasetListDatasets < 3) { | 182 if (buildCounterDatasetListDatasets < 3) { |
183 checkDatasetReference(o.datasetReference); | 183 checkDatasetReference(o.datasetReference); |
184 unittest.expect(o.friendlyName, unittest.equals('foo')); | 184 unittest.expect(o.friendlyName, unittest.equals('foo')); |
185 unittest.expect(o.id, unittest.equals('foo')); | 185 unittest.expect(o.id, unittest.equals('foo')); |
186 unittest.expect(o.kind, unittest.equals('foo')); | 186 unittest.expect(o.kind, unittest.equals('foo')); |
187 } | 187 } |
188 buildCounterDatasetListDatasets--; | 188 buildCounterDatasetListDatasets--; |
189 } | 189 } |
190 | 190 |
191 buildUnnamed338() { | 191 buildUnnamed2249() { |
192 var o = new core.List<api.DatasetListDatasets>(); | 192 var o = new core.List<api.DatasetListDatasets>(); |
193 o.add(buildDatasetListDatasets()); | 193 o.add(buildDatasetListDatasets()); |
194 o.add(buildDatasetListDatasets()); | 194 o.add(buildDatasetListDatasets()); |
195 return o; | 195 return o; |
196 } | 196 } |
197 | 197 |
198 checkUnnamed338(core.List<api.DatasetListDatasets> o) { | 198 checkUnnamed2249(core.List<api.DatasetListDatasets> o) { |
199 unittest.expect(o, unittest.hasLength(2)); | 199 unittest.expect(o, unittest.hasLength(2)); |
200 checkDatasetListDatasets(o[0]); | 200 checkDatasetListDatasets(o[0]); |
201 checkDatasetListDatasets(o[1]); | 201 checkDatasetListDatasets(o[1]); |
202 } | 202 } |
203 | 203 |
204 core.int buildCounterDatasetList = 0; | 204 core.int buildCounterDatasetList = 0; |
205 buildDatasetList() { | 205 buildDatasetList() { |
206 var o = new api.DatasetList(); | 206 var o = new api.DatasetList(); |
207 buildCounterDatasetList++; | 207 buildCounterDatasetList++; |
208 if (buildCounterDatasetList < 3) { | 208 if (buildCounterDatasetList < 3) { |
209 o.datasets = buildUnnamed338(); | 209 o.datasets = buildUnnamed2249(); |
210 o.etag = "foo"; | 210 o.etag = "foo"; |
211 o.kind = "foo"; | 211 o.kind = "foo"; |
212 o.nextPageToken = "foo"; | 212 o.nextPageToken = "foo"; |
213 } | 213 } |
214 buildCounterDatasetList--; | 214 buildCounterDatasetList--; |
215 return o; | 215 return o; |
216 } | 216 } |
217 | 217 |
218 checkDatasetList(api.DatasetList o) { | 218 checkDatasetList(api.DatasetList o) { |
219 buildCounterDatasetList++; | 219 buildCounterDatasetList++; |
220 if (buildCounterDatasetList < 3) { | 220 if (buildCounterDatasetList < 3) { |
221 checkUnnamed338(o.datasets); | 221 checkUnnamed2249(o.datasets); |
222 unittest.expect(o.etag, unittest.equals('foo')); | 222 unittest.expect(o.etag, unittest.equals('foo')); |
223 unittest.expect(o.kind, unittest.equals('foo')); | 223 unittest.expect(o.kind, unittest.equals('foo')); |
224 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 224 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
225 } | 225 } |
226 buildCounterDatasetList--; | 226 buildCounterDatasetList--; |
227 } | 227 } |
228 | 228 |
229 core.int buildCounterDatasetReference = 0; | 229 core.int buildCounterDatasetReference = 0; |
230 buildDatasetReference() { | 230 buildDatasetReference() { |
231 var o = new api.DatasetReference(); | 231 var o = new api.DatasetReference(); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 buildCounterErrorProto++; | 265 buildCounterErrorProto++; |
266 if (buildCounterErrorProto < 3) { | 266 if (buildCounterErrorProto < 3) { |
267 unittest.expect(o.debugInfo, unittest.equals('foo')); | 267 unittest.expect(o.debugInfo, unittest.equals('foo')); |
268 unittest.expect(o.location, unittest.equals('foo')); | 268 unittest.expect(o.location, unittest.equals('foo')); |
269 unittest.expect(o.message, unittest.equals('foo')); | 269 unittest.expect(o.message, unittest.equals('foo')); |
270 unittest.expect(o.reason, unittest.equals('foo')); | 270 unittest.expect(o.reason, unittest.equals('foo')); |
271 } | 271 } |
272 buildCounterErrorProto--; | 272 buildCounterErrorProto--; |
273 } | 273 } |
274 | 274 |
275 buildUnnamed339() { | 275 buildUnnamed2250() { |
276 var o = new core.List<core.String>(); | 276 var o = new core.List<core.String>(); |
277 o.add("foo"); | 277 o.add("foo"); |
278 o.add("foo"); | 278 o.add("foo"); |
279 return o; | 279 return o; |
280 } | 280 } |
281 | 281 |
282 checkUnnamed339(core.List<core.String> o) { | 282 checkUnnamed2250(core.List<core.String> o) { |
283 unittest.expect(o, unittest.hasLength(2)); | 283 unittest.expect(o, unittest.hasLength(2)); |
284 unittest.expect(o[0], unittest.equals('foo')); | 284 unittest.expect(o[0], unittest.equals('foo')); |
285 unittest.expect(o[1], unittest.equals('foo')); | 285 unittest.expect(o[1], unittest.equals('foo')); |
286 } | 286 } |
287 | 287 |
288 core.int buildCounterExternalDataConfiguration = 0; | 288 core.int buildCounterExternalDataConfiguration = 0; |
289 buildExternalDataConfiguration() { | 289 buildExternalDataConfiguration() { |
290 var o = new api.ExternalDataConfiguration(); | 290 var o = new api.ExternalDataConfiguration(); |
291 buildCounterExternalDataConfiguration++; | 291 buildCounterExternalDataConfiguration++; |
292 if (buildCounterExternalDataConfiguration < 3) { | 292 if (buildCounterExternalDataConfiguration < 3) { |
293 o.compression = "foo"; | 293 o.compression = "foo"; |
294 o.csvOptions = buildCsvOptions(); | 294 o.csvOptions = buildCsvOptions(); |
295 o.ignoreUnknownValues = true; | 295 o.ignoreUnknownValues = true; |
296 o.maxBadRecords = 42; | 296 o.maxBadRecords = 42; |
297 o.schema = buildTableSchema(); | 297 o.schema = buildTableSchema(); |
298 o.sourceFormat = "foo"; | 298 o.sourceFormat = "foo"; |
299 o.sourceUris = buildUnnamed339(); | 299 o.sourceUris = buildUnnamed2250(); |
300 } | 300 } |
301 buildCounterExternalDataConfiguration--; | 301 buildCounterExternalDataConfiguration--; |
302 return o; | 302 return o; |
303 } | 303 } |
304 | 304 |
305 checkExternalDataConfiguration(api.ExternalDataConfiguration o) { | 305 checkExternalDataConfiguration(api.ExternalDataConfiguration o) { |
306 buildCounterExternalDataConfiguration++; | 306 buildCounterExternalDataConfiguration++; |
307 if (buildCounterExternalDataConfiguration < 3) { | 307 if (buildCounterExternalDataConfiguration < 3) { |
308 unittest.expect(o.compression, unittest.equals('foo')); | 308 unittest.expect(o.compression, unittest.equals('foo')); |
309 checkCsvOptions(o.csvOptions); | 309 checkCsvOptions(o.csvOptions); |
310 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); | 310 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); |
311 unittest.expect(o.maxBadRecords, unittest.equals(42)); | 311 unittest.expect(o.maxBadRecords, unittest.equals(42)); |
312 checkTableSchema(o.schema); | 312 checkTableSchema(o.schema); |
313 unittest.expect(o.sourceFormat, unittest.equals('foo')); | 313 unittest.expect(o.sourceFormat, unittest.equals('foo')); |
314 checkUnnamed339(o.sourceUris); | 314 checkUnnamed2250(o.sourceUris); |
315 } | 315 } |
316 buildCounterExternalDataConfiguration--; | 316 buildCounterExternalDataConfiguration--; |
317 } | 317 } |
318 | 318 |
319 buildUnnamed340() { | 319 buildUnnamed2251() { |
| 320 var o = new core.List<api.ErrorProto>(); |
| 321 o.add(buildErrorProto()); |
| 322 o.add(buildErrorProto()); |
| 323 return o; |
| 324 } |
| 325 |
| 326 checkUnnamed2251(core.List<api.ErrorProto> o) { |
| 327 unittest.expect(o, unittest.hasLength(2)); |
| 328 checkErrorProto(o[0]); |
| 329 checkErrorProto(o[1]); |
| 330 } |
| 331 |
| 332 buildUnnamed2252() { |
320 var o = new core.List<api.TableRow>(); | 333 var o = new core.List<api.TableRow>(); |
321 o.add(buildTableRow()); | 334 o.add(buildTableRow()); |
322 o.add(buildTableRow()); | 335 o.add(buildTableRow()); |
323 return o; | 336 return o; |
324 } | 337 } |
325 | 338 |
326 checkUnnamed340(core.List<api.TableRow> o) { | 339 checkUnnamed2252(core.List<api.TableRow> o) { |
327 unittest.expect(o, unittest.hasLength(2)); | 340 unittest.expect(o, unittest.hasLength(2)); |
328 checkTableRow(o[0]); | 341 checkTableRow(o[0]); |
329 checkTableRow(o[1]); | 342 checkTableRow(o[1]); |
330 } | 343 } |
331 | 344 |
332 core.int buildCounterGetQueryResultsResponse = 0; | 345 core.int buildCounterGetQueryResultsResponse = 0; |
333 buildGetQueryResultsResponse() { | 346 buildGetQueryResultsResponse() { |
334 var o = new api.GetQueryResultsResponse(); | 347 var o = new api.GetQueryResultsResponse(); |
335 buildCounterGetQueryResultsResponse++; | 348 buildCounterGetQueryResultsResponse++; |
336 if (buildCounterGetQueryResultsResponse < 3) { | 349 if (buildCounterGetQueryResultsResponse < 3) { |
337 o.cacheHit = true; | 350 o.cacheHit = true; |
| 351 o.errors = buildUnnamed2251(); |
338 o.etag = "foo"; | 352 o.etag = "foo"; |
339 o.jobComplete = true; | 353 o.jobComplete = true; |
340 o.jobReference = buildJobReference(); | 354 o.jobReference = buildJobReference(); |
341 o.kind = "foo"; | 355 o.kind = "foo"; |
342 o.pageToken = "foo"; | 356 o.pageToken = "foo"; |
343 o.rows = buildUnnamed340(); | 357 o.rows = buildUnnamed2252(); |
344 o.schema = buildTableSchema(); | 358 o.schema = buildTableSchema(); |
345 o.totalBytesProcessed = "foo"; | 359 o.totalBytesProcessed = "foo"; |
346 o.totalRows = "foo"; | 360 o.totalRows = "foo"; |
347 } | 361 } |
348 buildCounterGetQueryResultsResponse--; | 362 buildCounterGetQueryResultsResponse--; |
349 return o; | 363 return o; |
350 } | 364 } |
351 | 365 |
352 checkGetQueryResultsResponse(api.GetQueryResultsResponse o) { | 366 checkGetQueryResultsResponse(api.GetQueryResultsResponse o) { |
353 buildCounterGetQueryResultsResponse++; | 367 buildCounterGetQueryResultsResponse++; |
354 if (buildCounterGetQueryResultsResponse < 3) { | 368 if (buildCounterGetQueryResultsResponse < 3) { |
355 unittest.expect(o.cacheHit, unittest.isTrue); | 369 unittest.expect(o.cacheHit, unittest.isTrue); |
| 370 checkUnnamed2251(o.errors); |
356 unittest.expect(o.etag, unittest.equals('foo')); | 371 unittest.expect(o.etag, unittest.equals('foo')); |
357 unittest.expect(o.jobComplete, unittest.isTrue); | 372 unittest.expect(o.jobComplete, unittest.isTrue); |
358 checkJobReference(o.jobReference); | 373 checkJobReference(o.jobReference); |
359 unittest.expect(o.kind, unittest.equals('foo')); | 374 unittest.expect(o.kind, unittest.equals('foo')); |
360 unittest.expect(o.pageToken, unittest.equals('foo')); | 375 unittest.expect(o.pageToken, unittest.equals('foo')); |
361 checkUnnamed340(o.rows); | 376 checkUnnamed2252(o.rows); |
362 checkTableSchema(o.schema); | 377 checkTableSchema(o.schema); |
363 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); | 378 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); |
364 unittest.expect(o.totalRows, unittest.equals('foo')); | 379 unittest.expect(o.totalRows, unittest.equals('foo')); |
365 } | 380 } |
366 buildCounterGetQueryResultsResponse--; | 381 buildCounterGetQueryResultsResponse--; |
367 } | 382 } |
368 | 383 |
369 core.int buildCounterJob = 0; | 384 core.int buildCounterJob = 0; |
370 buildJob() { | 385 buildJob() { |
371 var o = new api.Job(); | 386 var o = new api.Job(); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 checkJobConfigurationTableCopy(o.copy); | 459 checkJobConfigurationTableCopy(o.copy); |
445 unittest.expect(o.dryRun, unittest.isTrue); | 460 unittest.expect(o.dryRun, unittest.isTrue); |
446 checkJobConfigurationExtract(o.extract); | 461 checkJobConfigurationExtract(o.extract); |
447 checkJobConfigurationLink(o.link); | 462 checkJobConfigurationLink(o.link); |
448 checkJobConfigurationLoad(o.load); | 463 checkJobConfigurationLoad(o.load); |
449 checkJobConfigurationQuery(o.query); | 464 checkJobConfigurationQuery(o.query); |
450 } | 465 } |
451 buildCounterJobConfiguration--; | 466 buildCounterJobConfiguration--; |
452 } | 467 } |
453 | 468 |
454 buildUnnamed341() { | 469 buildUnnamed2253() { |
455 var o = new core.List<core.String>(); | 470 var o = new core.List<core.String>(); |
456 o.add("foo"); | 471 o.add("foo"); |
457 o.add("foo"); | 472 o.add("foo"); |
458 return o; | 473 return o; |
459 } | 474 } |
460 | 475 |
461 checkUnnamed341(core.List<core.String> o) { | 476 checkUnnamed2253(core.List<core.String> o) { |
462 unittest.expect(o, unittest.hasLength(2)); | 477 unittest.expect(o, unittest.hasLength(2)); |
463 unittest.expect(o[0], unittest.equals('foo')); | 478 unittest.expect(o[0], unittest.equals('foo')); |
464 unittest.expect(o[1], unittest.equals('foo')); | 479 unittest.expect(o[1], unittest.equals('foo')); |
465 } | 480 } |
466 | 481 |
467 core.int buildCounterJobConfigurationExtract = 0; | 482 core.int buildCounterJobConfigurationExtract = 0; |
468 buildJobConfigurationExtract() { | 483 buildJobConfigurationExtract() { |
469 var o = new api.JobConfigurationExtract(); | 484 var o = new api.JobConfigurationExtract(); |
470 buildCounterJobConfigurationExtract++; | 485 buildCounterJobConfigurationExtract++; |
471 if (buildCounterJobConfigurationExtract < 3) { | 486 if (buildCounterJobConfigurationExtract < 3) { |
472 o.compression = "foo"; | 487 o.compression = "foo"; |
473 o.destinationFormat = "foo"; | 488 o.destinationFormat = "foo"; |
474 o.destinationUri = "foo"; | 489 o.destinationUri = "foo"; |
475 o.destinationUris = buildUnnamed341(); | 490 o.destinationUris = buildUnnamed2253(); |
476 o.fieldDelimiter = "foo"; | 491 o.fieldDelimiter = "foo"; |
477 o.printHeader = true; | 492 o.printHeader = true; |
478 o.sourceTable = buildTableReference(); | 493 o.sourceTable = buildTableReference(); |
479 } | 494 } |
480 buildCounterJobConfigurationExtract--; | 495 buildCounterJobConfigurationExtract--; |
481 return o; | 496 return o; |
482 } | 497 } |
483 | 498 |
484 checkJobConfigurationExtract(api.JobConfigurationExtract o) { | 499 checkJobConfigurationExtract(api.JobConfigurationExtract o) { |
485 buildCounterJobConfigurationExtract++; | 500 buildCounterJobConfigurationExtract++; |
486 if (buildCounterJobConfigurationExtract < 3) { | 501 if (buildCounterJobConfigurationExtract < 3) { |
487 unittest.expect(o.compression, unittest.equals('foo')); | 502 unittest.expect(o.compression, unittest.equals('foo')); |
488 unittest.expect(o.destinationFormat, unittest.equals('foo')); | 503 unittest.expect(o.destinationFormat, unittest.equals('foo')); |
489 unittest.expect(o.destinationUri, unittest.equals('foo')); | 504 unittest.expect(o.destinationUri, unittest.equals('foo')); |
490 checkUnnamed341(o.destinationUris); | 505 checkUnnamed2253(o.destinationUris); |
491 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); | 506 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); |
492 unittest.expect(o.printHeader, unittest.isTrue); | 507 unittest.expect(o.printHeader, unittest.isTrue); |
493 checkTableReference(o.sourceTable); | 508 checkTableReference(o.sourceTable); |
494 } | 509 } |
495 buildCounterJobConfigurationExtract--; | 510 buildCounterJobConfigurationExtract--; |
496 } | 511 } |
497 | 512 |
498 buildUnnamed342() { | 513 buildUnnamed2254() { |
499 var o = new core.List<core.String>(); | 514 var o = new core.List<core.String>(); |
500 o.add("foo"); | 515 o.add("foo"); |
501 o.add("foo"); | 516 o.add("foo"); |
502 return o; | 517 return o; |
503 } | 518 } |
504 | 519 |
505 checkUnnamed342(core.List<core.String> o) { | 520 checkUnnamed2254(core.List<core.String> o) { |
506 unittest.expect(o, unittest.hasLength(2)); | 521 unittest.expect(o, unittest.hasLength(2)); |
507 unittest.expect(o[0], unittest.equals('foo')); | 522 unittest.expect(o[0], unittest.equals('foo')); |
508 unittest.expect(o[1], unittest.equals('foo')); | 523 unittest.expect(o[1], unittest.equals('foo')); |
509 } | 524 } |
510 | 525 |
511 core.int buildCounterJobConfigurationLink = 0; | 526 core.int buildCounterJobConfigurationLink = 0; |
512 buildJobConfigurationLink() { | 527 buildJobConfigurationLink() { |
513 var o = new api.JobConfigurationLink(); | 528 var o = new api.JobConfigurationLink(); |
514 buildCounterJobConfigurationLink++; | 529 buildCounterJobConfigurationLink++; |
515 if (buildCounterJobConfigurationLink < 3) { | 530 if (buildCounterJobConfigurationLink < 3) { |
516 o.createDisposition = "foo"; | 531 o.createDisposition = "foo"; |
517 o.destinationTable = buildTableReference(); | 532 o.destinationTable = buildTableReference(); |
518 o.sourceUri = buildUnnamed342(); | 533 o.sourceUri = buildUnnamed2254(); |
519 o.writeDisposition = "foo"; | 534 o.writeDisposition = "foo"; |
520 } | 535 } |
521 buildCounterJobConfigurationLink--; | 536 buildCounterJobConfigurationLink--; |
522 return o; | 537 return o; |
523 } | 538 } |
524 | 539 |
525 checkJobConfigurationLink(api.JobConfigurationLink o) { | 540 checkJobConfigurationLink(api.JobConfigurationLink o) { |
526 buildCounterJobConfigurationLink++; | 541 buildCounterJobConfigurationLink++; |
527 if (buildCounterJobConfigurationLink < 3) { | 542 if (buildCounterJobConfigurationLink < 3) { |
528 unittest.expect(o.createDisposition, unittest.equals('foo')); | 543 unittest.expect(o.createDisposition, unittest.equals('foo')); |
529 checkTableReference(o.destinationTable); | 544 checkTableReference(o.destinationTable); |
530 checkUnnamed342(o.sourceUri); | 545 checkUnnamed2254(o.sourceUri); |
531 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 546 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
532 } | 547 } |
533 buildCounterJobConfigurationLink--; | 548 buildCounterJobConfigurationLink--; |
534 } | 549 } |
535 | 550 |
536 buildUnnamed343() { | 551 buildUnnamed2255() { |
537 var o = new core.List<core.String>(); | 552 var o = new core.List<core.String>(); |
538 o.add("foo"); | 553 o.add("foo"); |
539 o.add("foo"); | 554 o.add("foo"); |
540 return o; | 555 return o; |
541 } | 556 } |
542 | 557 |
543 checkUnnamed343(core.List<core.String> o) { | 558 checkUnnamed2255(core.List<core.String> o) { |
544 unittest.expect(o, unittest.hasLength(2)); | 559 unittest.expect(o, unittest.hasLength(2)); |
545 unittest.expect(o[0], unittest.equals('foo')); | 560 unittest.expect(o[0], unittest.equals('foo')); |
546 unittest.expect(o[1], unittest.equals('foo')); | 561 unittest.expect(o[1], unittest.equals('foo')); |
547 } | 562 } |
548 | 563 |
549 buildUnnamed344() { | 564 buildUnnamed2256() { |
550 var o = new core.List<core.String>(); | 565 var o = new core.List<core.String>(); |
551 o.add("foo"); | 566 o.add("foo"); |
552 o.add("foo"); | 567 o.add("foo"); |
553 return o; | 568 return o; |
554 } | 569 } |
555 | 570 |
556 checkUnnamed344(core.List<core.String> o) { | 571 checkUnnamed2256(core.List<core.String> o) { |
557 unittest.expect(o, unittest.hasLength(2)); | 572 unittest.expect(o, unittest.hasLength(2)); |
558 unittest.expect(o[0], unittest.equals('foo')); | 573 unittest.expect(o[0], unittest.equals('foo')); |
559 unittest.expect(o[1], unittest.equals('foo')); | 574 unittest.expect(o[1], unittest.equals('foo')); |
560 } | 575 } |
561 | 576 |
562 core.int buildCounterJobConfigurationLoad = 0; | 577 core.int buildCounterJobConfigurationLoad = 0; |
563 buildJobConfigurationLoad() { | 578 buildJobConfigurationLoad() { |
564 var o = new api.JobConfigurationLoad(); | 579 var o = new api.JobConfigurationLoad(); |
565 buildCounterJobConfigurationLoad++; | 580 buildCounterJobConfigurationLoad++; |
566 if (buildCounterJobConfigurationLoad < 3) { | 581 if (buildCounterJobConfigurationLoad < 3) { |
567 o.allowJaggedRows = true; | 582 o.allowJaggedRows = true; |
568 o.allowQuotedNewlines = true; | 583 o.allowQuotedNewlines = true; |
569 o.createDisposition = "foo"; | 584 o.createDisposition = "foo"; |
570 o.destinationTable = buildTableReference(); | 585 o.destinationTable = buildTableReference(); |
571 o.encoding = "foo"; | 586 o.encoding = "foo"; |
572 o.fieldDelimiter = "foo"; | 587 o.fieldDelimiter = "foo"; |
573 o.ignoreUnknownValues = true; | 588 o.ignoreUnknownValues = true; |
574 o.maxBadRecords = 42; | 589 o.maxBadRecords = 42; |
575 o.projectionFields = buildUnnamed343(); | 590 o.projectionFields = buildUnnamed2255(); |
576 o.quote = "foo"; | 591 o.quote = "foo"; |
577 o.schema = buildTableSchema(); | 592 o.schema = buildTableSchema(); |
578 o.schemaInline = "foo"; | 593 o.schemaInline = "foo"; |
579 o.schemaInlineFormat = "foo"; | 594 o.schemaInlineFormat = "foo"; |
580 o.skipLeadingRows = 42; | 595 o.skipLeadingRows = 42; |
581 o.sourceFormat = "foo"; | 596 o.sourceFormat = "foo"; |
582 o.sourceUris = buildUnnamed344(); | 597 o.sourceUris = buildUnnamed2256(); |
583 o.writeDisposition = "foo"; | 598 o.writeDisposition = "foo"; |
584 } | 599 } |
585 buildCounterJobConfigurationLoad--; | 600 buildCounterJobConfigurationLoad--; |
586 return o; | 601 return o; |
587 } | 602 } |
588 | 603 |
589 checkJobConfigurationLoad(api.JobConfigurationLoad o) { | 604 checkJobConfigurationLoad(api.JobConfigurationLoad o) { |
590 buildCounterJobConfigurationLoad++; | 605 buildCounterJobConfigurationLoad++; |
591 if (buildCounterJobConfigurationLoad < 3) { | 606 if (buildCounterJobConfigurationLoad < 3) { |
592 unittest.expect(o.allowJaggedRows, unittest.isTrue); | 607 unittest.expect(o.allowJaggedRows, unittest.isTrue); |
593 unittest.expect(o.allowQuotedNewlines, unittest.isTrue); | 608 unittest.expect(o.allowQuotedNewlines, unittest.isTrue); |
594 unittest.expect(o.createDisposition, unittest.equals('foo')); | 609 unittest.expect(o.createDisposition, unittest.equals('foo')); |
595 checkTableReference(o.destinationTable); | 610 checkTableReference(o.destinationTable); |
596 unittest.expect(o.encoding, unittest.equals('foo')); | 611 unittest.expect(o.encoding, unittest.equals('foo')); |
597 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); | 612 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); |
598 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); | 613 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); |
599 unittest.expect(o.maxBadRecords, unittest.equals(42)); | 614 unittest.expect(o.maxBadRecords, unittest.equals(42)); |
600 checkUnnamed343(o.projectionFields); | 615 checkUnnamed2255(o.projectionFields); |
601 unittest.expect(o.quote, unittest.equals('foo')); | 616 unittest.expect(o.quote, unittest.equals('foo')); |
602 checkTableSchema(o.schema); | 617 checkTableSchema(o.schema); |
603 unittest.expect(o.schemaInline, unittest.equals('foo')); | 618 unittest.expect(o.schemaInline, unittest.equals('foo')); |
604 unittest.expect(o.schemaInlineFormat, unittest.equals('foo')); | 619 unittest.expect(o.schemaInlineFormat, unittest.equals('foo')); |
605 unittest.expect(o.skipLeadingRows, unittest.equals(42)); | 620 unittest.expect(o.skipLeadingRows, unittest.equals(42)); |
606 unittest.expect(o.sourceFormat, unittest.equals('foo')); | 621 unittest.expect(o.sourceFormat, unittest.equals('foo')); |
607 checkUnnamed344(o.sourceUris); | 622 checkUnnamed2256(o.sourceUris); |
608 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 623 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
609 } | 624 } |
610 buildCounterJobConfigurationLoad--; | 625 buildCounterJobConfigurationLoad--; |
611 } | 626 } |
612 | 627 |
613 buildUnnamed345() { | 628 buildUnnamed2257() { |
614 var o = new core.Map<core.String, api.ExternalDataConfiguration>(); | 629 var o = new core.Map<core.String, api.ExternalDataConfiguration>(); |
615 o["x"] = buildExternalDataConfiguration(); | 630 o["x"] = buildExternalDataConfiguration(); |
616 o["y"] = buildExternalDataConfiguration(); | 631 o["y"] = buildExternalDataConfiguration(); |
617 return o; | 632 return o; |
618 } | 633 } |
619 | 634 |
620 checkUnnamed345(core.Map<core.String, api.ExternalDataConfiguration> o) { | 635 checkUnnamed2257(core.Map<core.String, api.ExternalDataConfiguration> o) { |
621 unittest.expect(o, unittest.hasLength(2)); | 636 unittest.expect(o, unittest.hasLength(2)); |
622 checkExternalDataConfiguration(o["x"]); | 637 checkExternalDataConfiguration(o["x"]); |
623 checkExternalDataConfiguration(o["y"]); | 638 checkExternalDataConfiguration(o["y"]); |
624 } | 639 } |
625 | 640 |
626 buildUnnamed346() { | 641 buildUnnamed2258() { |
627 var o = new core.List<api.UserDefinedFunctionResource>(); | 642 var o = new core.List<api.UserDefinedFunctionResource>(); |
628 o.add(buildUserDefinedFunctionResource()); | 643 o.add(buildUserDefinedFunctionResource()); |
629 o.add(buildUserDefinedFunctionResource()); | 644 o.add(buildUserDefinedFunctionResource()); |
630 return o; | 645 return o; |
631 } | 646 } |
632 | 647 |
633 checkUnnamed346(core.List<api.UserDefinedFunctionResource> o) { | 648 checkUnnamed2258(core.List<api.UserDefinedFunctionResource> o) { |
634 unittest.expect(o, unittest.hasLength(2)); | 649 unittest.expect(o, unittest.hasLength(2)); |
635 checkUserDefinedFunctionResource(o[0]); | 650 checkUserDefinedFunctionResource(o[0]); |
636 checkUserDefinedFunctionResource(o[1]); | 651 checkUserDefinedFunctionResource(o[1]); |
637 } | 652 } |
638 | 653 |
639 core.int buildCounterJobConfigurationQuery = 0; | 654 core.int buildCounterJobConfigurationQuery = 0; |
640 buildJobConfigurationQuery() { | 655 buildJobConfigurationQuery() { |
641 var o = new api.JobConfigurationQuery(); | 656 var o = new api.JobConfigurationQuery(); |
642 buildCounterJobConfigurationQuery++; | 657 buildCounterJobConfigurationQuery++; |
643 if (buildCounterJobConfigurationQuery < 3) { | 658 if (buildCounterJobConfigurationQuery < 3) { |
644 o.allowLargeResults = true; | 659 o.allowLargeResults = true; |
645 o.createDisposition = "foo"; | 660 o.createDisposition = "foo"; |
646 o.defaultDataset = buildDatasetReference(); | 661 o.defaultDataset = buildDatasetReference(); |
647 o.destinationTable = buildTableReference(); | 662 o.destinationTable = buildTableReference(); |
648 o.flattenResults = true; | 663 o.flattenResults = true; |
649 o.preserveNulls = true; | 664 o.preserveNulls = true; |
650 o.priority = "foo"; | 665 o.priority = "foo"; |
651 o.query = "foo"; | 666 o.query = "foo"; |
652 o.tableDefinitions = buildUnnamed345(); | 667 o.tableDefinitions = buildUnnamed2257(); |
653 o.useQueryCache = true; | 668 o.useQueryCache = true; |
654 o.userDefinedFunctionResources = buildUnnamed346(); | 669 o.userDefinedFunctionResources = buildUnnamed2258(); |
655 o.writeDisposition = "foo"; | 670 o.writeDisposition = "foo"; |
656 } | 671 } |
657 buildCounterJobConfigurationQuery--; | 672 buildCounterJobConfigurationQuery--; |
658 return o; | 673 return o; |
659 } | 674 } |
660 | 675 |
661 checkJobConfigurationQuery(api.JobConfigurationQuery o) { | 676 checkJobConfigurationQuery(api.JobConfigurationQuery o) { |
662 buildCounterJobConfigurationQuery++; | 677 buildCounterJobConfigurationQuery++; |
663 if (buildCounterJobConfigurationQuery < 3) { | 678 if (buildCounterJobConfigurationQuery < 3) { |
664 unittest.expect(o.allowLargeResults, unittest.isTrue); | 679 unittest.expect(o.allowLargeResults, unittest.isTrue); |
665 unittest.expect(o.createDisposition, unittest.equals('foo')); | 680 unittest.expect(o.createDisposition, unittest.equals('foo')); |
666 checkDatasetReference(o.defaultDataset); | 681 checkDatasetReference(o.defaultDataset); |
667 checkTableReference(o.destinationTable); | 682 checkTableReference(o.destinationTable); |
668 unittest.expect(o.flattenResults, unittest.isTrue); | 683 unittest.expect(o.flattenResults, unittest.isTrue); |
669 unittest.expect(o.preserveNulls, unittest.isTrue); | 684 unittest.expect(o.preserveNulls, unittest.isTrue); |
670 unittest.expect(o.priority, unittest.equals('foo')); | 685 unittest.expect(o.priority, unittest.equals('foo')); |
671 unittest.expect(o.query, unittest.equals('foo')); | 686 unittest.expect(o.query, unittest.equals('foo')); |
672 checkUnnamed345(o.tableDefinitions); | 687 checkUnnamed2257(o.tableDefinitions); |
673 unittest.expect(o.useQueryCache, unittest.isTrue); | 688 unittest.expect(o.useQueryCache, unittest.isTrue); |
674 checkUnnamed346(o.userDefinedFunctionResources); | 689 checkUnnamed2258(o.userDefinedFunctionResources); |
675 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 690 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
676 } | 691 } |
677 buildCounterJobConfigurationQuery--; | 692 buildCounterJobConfigurationQuery--; |
678 } | 693 } |
679 | 694 |
680 buildUnnamed347() { | 695 buildUnnamed2259() { |
681 var o = new core.List<api.TableReference>(); | 696 var o = new core.List<api.TableReference>(); |
682 o.add(buildTableReference()); | 697 o.add(buildTableReference()); |
683 o.add(buildTableReference()); | 698 o.add(buildTableReference()); |
684 return o; | 699 return o; |
685 } | 700 } |
686 | 701 |
687 checkUnnamed347(core.List<api.TableReference> o) { | 702 checkUnnamed2259(core.List<api.TableReference> o) { |
688 unittest.expect(o, unittest.hasLength(2)); | 703 unittest.expect(o, unittest.hasLength(2)); |
689 checkTableReference(o[0]); | 704 checkTableReference(o[0]); |
690 checkTableReference(o[1]); | 705 checkTableReference(o[1]); |
691 } | 706 } |
692 | 707 |
693 core.int buildCounterJobConfigurationTableCopy = 0; | 708 core.int buildCounterJobConfigurationTableCopy = 0; |
694 buildJobConfigurationTableCopy() { | 709 buildJobConfigurationTableCopy() { |
695 var o = new api.JobConfigurationTableCopy(); | 710 var o = new api.JobConfigurationTableCopy(); |
696 buildCounterJobConfigurationTableCopy++; | 711 buildCounterJobConfigurationTableCopy++; |
697 if (buildCounterJobConfigurationTableCopy < 3) { | 712 if (buildCounterJobConfigurationTableCopy < 3) { |
698 o.createDisposition = "foo"; | 713 o.createDisposition = "foo"; |
699 o.destinationTable = buildTableReference(); | 714 o.destinationTable = buildTableReference(); |
700 o.sourceTable = buildTableReference(); | 715 o.sourceTable = buildTableReference(); |
701 o.sourceTables = buildUnnamed347(); | 716 o.sourceTables = buildUnnamed2259(); |
702 o.writeDisposition = "foo"; | 717 o.writeDisposition = "foo"; |
703 } | 718 } |
704 buildCounterJobConfigurationTableCopy--; | 719 buildCounterJobConfigurationTableCopy--; |
705 return o; | 720 return o; |
706 } | 721 } |
707 | 722 |
708 checkJobConfigurationTableCopy(api.JobConfigurationTableCopy o) { | 723 checkJobConfigurationTableCopy(api.JobConfigurationTableCopy o) { |
709 buildCounterJobConfigurationTableCopy++; | 724 buildCounterJobConfigurationTableCopy++; |
710 if (buildCounterJobConfigurationTableCopy < 3) { | 725 if (buildCounterJobConfigurationTableCopy < 3) { |
711 unittest.expect(o.createDisposition, unittest.equals('foo')); | 726 unittest.expect(o.createDisposition, unittest.equals('foo')); |
712 checkTableReference(o.destinationTable); | 727 checkTableReference(o.destinationTable); |
713 checkTableReference(o.sourceTable); | 728 checkTableReference(o.sourceTable); |
714 checkUnnamed347(o.sourceTables); | 729 checkUnnamed2259(o.sourceTables); |
715 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 730 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
716 } | 731 } |
717 buildCounterJobConfigurationTableCopy--; | 732 buildCounterJobConfigurationTableCopy--; |
718 } | 733 } |
719 | 734 |
720 core.int buildCounterJobListJobs = 0; | 735 core.int buildCounterJobListJobs = 0; |
721 buildJobListJobs() { | 736 buildJobListJobs() { |
722 var o = new api.JobListJobs(); | 737 var o = new api.JobListJobs(); |
723 buildCounterJobListJobs++; | 738 buildCounterJobListJobs++; |
724 if (buildCounterJobListJobs < 3) { | 739 if (buildCounterJobListJobs < 3) { |
(...skipping 20 matching lines...) Expand all Loading... |
745 checkJobReference(o.jobReference); | 760 checkJobReference(o.jobReference); |
746 unittest.expect(o.kind, unittest.equals('foo')); | 761 unittest.expect(o.kind, unittest.equals('foo')); |
747 unittest.expect(o.state, unittest.equals('foo')); | 762 unittest.expect(o.state, unittest.equals('foo')); |
748 checkJobStatistics(o.statistics); | 763 checkJobStatistics(o.statistics); |
749 checkJobStatus(o.status); | 764 checkJobStatus(o.status); |
750 unittest.expect(o.userEmail, unittest.equals('foo')); | 765 unittest.expect(o.userEmail, unittest.equals('foo')); |
751 } | 766 } |
752 buildCounterJobListJobs--; | 767 buildCounterJobListJobs--; |
753 } | 768 } |
754 | 769 |
755 buildUnnamed348() { | 770 buildUnnamed2260() { |
756 var o = new core.List<api.JobListJobs>(); | 771 var o = new core.List<api.JobListJobs>(); |
757 o.add(buildJobListJobs()); | 772 o.add(buildJobListJobs()); |
758 o.add(buildJobListJobs()); | 773 o.add(buildJobListJobs()); |
759 return o; | 774 return o; |
760 } | 775 } |
761 | 776 |
762 checkUnnamed348(core.List<api.JobListJobs> o) { | 777 checkUnnamed2260(core.List<api.JobListJobs> o) { |
763 unittest.expect(o, unittest.hasLength(2)); | 778 unittest.expect(o, unittest.hasLength(2)); |
764 checkJobListJobs(o[0]); | 779 checkJobListJobs(o[0]); |
765 checkJobListJobs(o[1]); | 780 checkJobListJobs(o[1]); |
766 } | 781 } |
767 | 782 |
768 core.int buildCounterJobList = 0; | 783 core.int buildCounterJobList = 0; |
769 buildJobList() { | 784 buildJobList() { |
770 var o = new api.JobList(); | 785 var o = new api.JobList(); |
771 buildCounterJobList++; | 786 buildCounterJobList++; |
772 if (buildCounterJobList < 3) { | 787 if (buildCounterJobList < 3) { |
773 o.etag = "foo"; | 788 o.etag = "foo"; |
774 o.jobs = buildUnnamed348(); | 789 o.jobs = buildUnnamed2260(); |
775 o.kind = "foo"; | 790 o.kind = "foo"; |
776 o.nextPageToken = "foo"; | 791 o.nextPageToken = "foo"; |
777 } | 792 } |
778 buildCounterJobList--; | 793 buildCounterJobList--; |
779 return o; | 794 return o; |
780 } | 795 } |
781 | 796 |
782 checkJobList(api.JobList o) { | 797 checkJobList(api.JobList o) { |
783 buildCounterJobList++; | 798 buildCounterJobList++; |
784 if (buildCounterJobList < 3) { | 799 if (buildCounterJobList < 3) { |
785 unittest.expect(o.etag, unittest.equals('foo')); | 800 unittest.expect(o.etag, unittest.equals('foo')); |
786 checkUnnamed348(o.jobs); | 801 checkUnnamed2260(o.jobs); |
787 unittest.expect(o.kind, unittest.equals('foo')); | 802 unittest.expect(o.kind, unittest.equals('foo')); |
788 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 803 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
789 } | 804 } |
790 buildCounterJobList--; | 805 buildCounterJobList--; |
791 } | 806 } |
792 | 807 |
793 core.int buildCounterJobReference = 0; | 808 core.int buildCounterJobReference = 0; |
794 buildJobReference() { | 809 buildJobReference() { |
795 var o = new api.JobReference(); | 810 var o = new api.JobReference(); |
796 buildCounterJobReference++; | 811 buildCounterJobReference++; |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
881 buildCounterJobStatistics3++; | 896 buildCounterJobStatistics3++; |
882 if (buildCounterJobStatistics3 < 3) { | 897 if (buildCounterJobStatistics3 < 3) { |
883 unittest.expect(o.inputFileBytes, unittest.equals('foo')); | 898 unittest.expect(o.inputFileBytes, unittest.equals('foo')); |
884 unittest.expect(o.inputFiles, unittest.equals('foo')); | 899 unittest.expect(o.inputFiles, unittest.equals('foo')); |
885 unittest.expect(o.outputBytes, unittest.equals('foo')); | 900 unittest.expect(o.outputBytes, unittest.equals('foo')); |
886 unittest.expect(o.outputRows, unittest.equals('foo')); | 901 unittest.expect(o.outputRows, unittest.equals('foo')); |
887 } | 902 } |
888 buildCounterJobStatistics3--; | 903 buildCounterJobStatistics3--; |
889 } | 904 } |
890 | 905 |
891 buildUnnamed349() { | 906 buildUnnamed2261() { |
892 var o = new core.List<core.String>(); | 907 var o = new core.List<core.String>(); |
893 o.add("foo"); | 908 o.add("foo"); |
894 o.add("foo"); | 909 o.add("foo"); |
895 return o; | 910 return o; |
896 } | 911 } |
897 | 912 |
898 checkUnnamed349(core.List<core.String> o) { | 913 checkUnnamed2261(core.List<core.String> o) { |
899 unittest.expect(o, unittest.hasLength(2)); | 914 unittest.expect(o, unittest.hasLength(2)); |
900 unittest.expect(o[0], unittest.equals('foo')); | 915 unittest.expect(o[0], unittest.equals('foo')); |
901 unittest.expect(o[1], unittest.equals('foo')); | 916 unittest.expect(o[1], unittest.equals('foo')); |
902 } | 917 } |
903 | 918 |
904 core.int buildCounterJobStatistics4 = 0; | 919 core.int buildCounterJobStatistics4 = 0; |
905 buildJobStatistics4() { | 920 buildJobStatistics4() { |
906 var o = new api.JobStatistics4(); | 921 var o = new api.JobStatistics4(); |
907 buildCounterJobStatistics4++; | 922 buildCounterJobStatistics4++; |
908 if (buildCounterJobStatistics4 < 3) { | 923 if (buildCounterJobStatistics4 < 3) { |
909 o.destinationUriFileCounts = buildUnnamed349(); | 924 o.destinationUriFileCounts = buildUnnamed2261(); |
910 } | 925 } |
911 buildCounterJobStatistics4--; | 926 buildCounterJobStatistics4--; |
912 return o; | 927 return o; |
913 } | 928 } |
914 | 929 |
915 checkJobStatistics4(api.JobStatistics4 o) { | 930 checkJobStatistics4(api.JobStatistics4 o) { |
916 buildCounterJobStatistics4++; | 931 buildCounterJobStatistics4++; |
917 if (buildCounterJobStatistics4 < 3) { | 932 if (buildCounterJobStatistics4 < 3) { |
918 checkUnnamed349(o.destinationUriFileCounts); | 933 checkUnnamed2261(o.destinationUriFileCounts); |
919 } | 934 } |
920 buildCounterJobStatistics4--; | 935 buildCounterJobStatistics4--; |
921 } | 936 } |
922 | 937 |
923 buildUnnamed350() { | 938 buildUnnamed2262() { |
924 var o = new core.List<api.ErrorProto>(); | 939 var o = new core.List<api.ErrorProto>(); |
925 o.add(buildErrorProto()); | 940 o.add(buildErrorProto()); |
926 o.add(buildErrorProto()); | 941 o.add(buildErrorProto()); |
927 return o; | 942 return o; |
928 } | 943 } |
929 | 944 |
930 checkUnnamed350(core.List<api.ErrorProto> o) { | 945 checkUnnamed2262(core.List<api.ErrorProto> o) { |
931 unittest.expect(o, unittest.hasLength(2)); | 946 unittest.expect(o, unittest.hasLength(2)); |
932 checkErrorProto(o[0]); | 947 checkErrorProto(o[0]); |
933 checkErrorProto(o[1]); | 948 checkErrorProto(o[1]); |
934 } | 949 } |
935 | 950 |
936 core.int buildCounterJobStatus = 0; | 951 core.int buildCounterJobStatus = 0; |
937 buildJobStatus() { | 952 buildJobStatus() { |
938 var o = new api.JobStatus(); | 953 var o = new api.JobStatus(); |
939 buildCounterJobStatus++; | 954 buildCounterJobStatus++; |
940 if (buildCounterJobStatus < 3) { | 955 if (buildCounterJobStatus < 3) { |
941 o.errorResult = buildErrorProto(); | 956 o.errorResult = buildErrorProto(); |
942 o.errors = buildUnnamed350(); | 957 o.errors = buildUnnamed2262(); |
943 o.state = "foo"; | 958 o.state = "foo"; |
944 } | 959 } |
945 buildCounterJobStatus--; | 960 buildCounterJobStatus--; |
946 return o; | 961 return o; |
947 } | 962 } |
948 | 963 |
949 checkJobStatus(api.JobStatus o) { | 964 checkJobStatus(api.JobStatus o) { |
950 buildCounterJobStatus++; | 965 buildCounterJobStatus++; |
951 if (buildCounterJobStatus < 3) { | 966 if (buildCounterJobStatus < 3) { |
952 checkErrorProto(o.errorResult); | 967 checkErrorProto(o.errorResult); |
953 checkUnnamed350(o.errors); | 968 checkUnnamed2262(o.errors); |
954 unittest.expect(o.state, unittest.equals('foo')); | 969 unittest.expect(o.state, unittest.equals('foo')); |
955 } | 970 } |
956 buildCounterJobStatus--; | 971 buildCounterJobStatus--; |
957 } | 972 } |
958 | 973 |
959 buildJsonObject() { | 974 buildJsonObject() { |
960 var o = new api.JsonObject(); | 975 var o = new api.JsonObject(); |
961 o["a"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 976 o["a"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
962 o["b"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 977 o["b"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
963 return o; | 978 return o; |
(...skipping 25 matching lines...) Expand all Loading... |
989 if (buildCounterProjectListProjects < 3) { | 1004 if (buildCounterProjectListProjects < 3) { |
990 unittest.expect(o.friendlyName, unittest.equals('foo')); | 1005 unittest.expect(o.friendlyName, unittest.equals('foo')); |
991 unittest.expect(o.id, unittest.equals('foo')); | 1006 unittest.expect(o.id, unittest.equals('foo')); |
992 unittest.expect(o.kind, unittest.equals('foo')); | 1007 unittest.expect(o.kind, unittest.equals('foo')); |
993 unittest.expect(o.numericId, unittest.equals('foo')); | 1008 unittest.expect(o.numericId, unittest.equals('foo')); |
994 checkProjectReference(o.projectReference); | 1009 checkProjectReference(o.projectReference); |
995 } | 1010 } |
996 buildCounterProjectListProjects--; | 1011 buildCounterProjectListProjects--; |
997 } | 1012 } |
998 | 1013 |
999 buildUnnamed351() { | 1014 buildUnnamed2263() { |
1000 var o = new core.List<api.ProjectListProjects>(); | 1015 var o = new core.List<api.ProjectListProjects>(); |
1001 o.add(buildProjectListProjects()); | 1016 o.add(buildProjectListProjects()); |
1002 o.add(buildProjectListProjects()); | 1017 o.add(buildProjectListProjects()); |
1003 return o; | 1018 return o; |
1004 } | 1019 } |
1005 | 1020 |
1006 checkUnnamed351(core.List<api.ProjectListProjects> o) { | 1021 checkUnnamed2263(core.List<api.ProjectListProjects> o) { |
1007 unittest.expect(o, unittest.hasLength(2)); | 1022 unittest.expect(o, unittest.hasLength(2)); |
1008 checkProjectListProjects(o[0]); | 1023 checkProjectListProjects(o[0]); |
1009 checkProjectListProjects(o[1]); | 1024 checkProjectListProjects(o[1]); |
1010 } | 1025 } |
1011 | 1026 |
1012 core.int buildCounterProjectList = 0; | 1027 core.int buildCounterProjectList = 0; |
1013 buildProjectList() { | 1028 buildProjectList() { |
1014 var o = new api.ProjectList(); | 1029 var o = new api.ProjectList(); |
1015 buildCounterProjectList++; | 1030 buildCounterProjectList++; |
1016 if (buildCounterProjectList < 3) { | 1031 if (buildCounterProjectList < 3) { |
1017 o.etag = "foo"; | 1032 o.etag = "foo"; |
1018 o.kind = "foo"; | 1033 o.kind = "foo"; |
1019 o.nextPageToken = "foo"; | 1034 o.nextPageToken = "foo"; |
1020 o.projects = buildUnnamed351(); | 1035 o.projects = buildUnnamed2263(); |
1021 o.totalItems = 42; | 1036 o.totalItems = 42; |
1022 } | 1037 } |
1023 buildCounterProjectList--; | 1038 buildCounterProjectList--; |
1024 return o; | 1039 return o; |
1025 } | 1040 } |
1026 | 1041 |
1027 checkProjectList(api.ProjectList o) { | 1042 checkProjectList(api.ProjectList o) { |
1028 buildCounterProjectList++; | 1043 buildCounterProjectList++; |
1029 if (buildCounterProjectList < 3) { | 1044 if (buildCounterProjectList < 3) { |
1030 unittest.expect(o.etag, unittest.equals('foo')); | 1045 unittest.expect(o.etag, unittest.equals('foo')); |
1031 unittest.expect(o.kind, unittest.equals('foo')); | 1046 unittest.expect(o.kind, unittest.equals('foo')); |
1032 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1047 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1033 checkUnnamed351(o.projects); | 1048 checkUnnamed2263(o.projects); |
1034 unittest.expect(o.totalItems, unittest.equals(42)); | 1049 unittest.expect(o.totalItems, unittest.equals(42)); |
1035 } | 1050 } |
1036 buildCounterProjectList--; | 1051 buildCounterProjectList--; |
1037 } | 1052 } |
1038 | 1053 |
1039 core.int buildCounterProjectReference = 0; | 1054 core.int buildCounterProjectReference = 0; |
1040 buildProjectReference() { | 1055 buildProjectReference() { |
1041 var o = new api.ProjectReference(); | 1056 var o = new api.ProjectReference(); |
1042 buildCounterProjectReference++; | 1057 buildCounterProjectReference++; |
1043 if (buildCounterProjectReference < 3) { | 1058 if (buildCounterProjectReference < 3) { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1081 unittest.expect(o.kind, unittest.equals('foo')); | 1096 unittest.expect(o.kind, unittest.equals('foo')); |
1082 unittest.expect(o.maxResults, unittest.equals(42)); | 1097 unittest.expect(o.maxResults, unittest.equals(42)); |
1083 unittest.expect(o.preserveNulls, unittest.isTrue); | 1098 unittest.expect(o.preserveNulls, unittest.isTrue); |
1084 unittest.expect(o.query, unittest.equals('foo')); | 1099 unittest.expect(o.query, unittest.equals('foo')); |
1085 unittest.expect(o.timeoutMs, unittest.equals(42)); | 1100 unittest.expect(o.timeoutMs, unittest.equals(42)); |
1086 unittest.expect(o.useQueryCache, unittest.isTrue); | 1101 unittest.expect(o.useQueryCache, unittest.isTrue); |
1087 } | 1102 } |
1088 buildCounterQueryRequest--; | 1103 buildCounterQueryRequest--; |
1089 } | 1104 } |
1090 | 1105 |
1091 buildUnnamed352() { | 1106 buildUnnamed2264() { |
| 1107 var o = new core.List<api.ErrorProto>(); |
| 1108 o.add(buildErrorProto()); |
| 1109 o.add(buildErrorProto()); |
| 1110 return o; |
| 1111 } |
| 1112 |
| 1113 checkUnnamed2264(core.List<api.ErrorProto> o) { |
| 1114 unittest.expect(o, unittest.hasLength(2)); |
| 1115 checkErrorProto(o[0]); |
| 1116 checkErrorProto(o[1]); |
| 1117 } |
| 1118 |
| 1119 buildUnnamed2265() { |
1092 var o = new core.List<api.TableRow>(); | 1120 var o = new core.List<api.TableRow>(); |
1093 o.add(buildTableRow()); | 1121 o.add(buildTableRow()); |
1094 o.add(buildTableRow()); | 1122 o.add(buildTableRow()); |
1095 return o; | 1123 return o; |
1096 } | 1124 } |
1097 | 1125 |
1098 checkUnnamed352(core.List<api.TableRow> o) { | 1126 checkUnnamed2265(core.List<api.TableRow> o) { |
1099 unittest.expect(o, unittest.hasLength(2)); | 1127 unittest.expect(o, unittest.hasLength(2)); |
1100 checkTableRow(o[0]); | 1128 checkTableRow(o[0]); |
1101 checkTableRow(o[1]); | 1129 checkTableRow(o[1]); |
1102 } | 1130 } |
1103 | 1131 |
1104 core.int buildCounterQueryResponse = 0; | 1132 core.int buildCounterQueryResponse = 0; |
1105 buildQueryResponse() { | 1133 buildQueryResponse() { |
1106 var o = new api.QueryResponse(); | 1134 var o = new api.QueryResponse(); |
1107 buildCounterQueryResponse++; | 1135 buildCounterQueryResponse++; |
1108 if (buildCounterQueryResponse < 3) { | 1136 if (buildCounterQueryResponse < 3) { |
1109 o.cacheHit = true; | 1137 o.cacheHit = true; |
| 1138 o.errors = buildUnnamed2264(); |
1110 o.jobComplete = true; | 1139 o.jobComplete = true; |
1111 o.jobReference = buildJobReference(); | 1140 o.jobReference = buildJobReference(); |
1112 o.kind = "foo"; | 1141 o.kind = "foo"; |
1113 o.pageToken = "foo"; | 1142 o.pageToken = "foo"; |
1114 o.rows = buildUnnamed352(); | 1143 o.rows = buildUnnamed2265(); |
1115 o.schema = buildTableSchema(); | 1144 o.schema = buildTableSchema(); |
1116 o.totalBytesProcessed = "foo"; | 1145 o.totalBytesProcessed = "foo"; |
1117 o.totalRows = "foo"; | 1146 o.totalRows = "foo"; |
1118 } | 1147 } |
1119 buildCounterQueryResponse--; | 1148 buildCounterQueryResponse--; |
1120 return o; | 1149 return o; |
1121 } | 1150 } |
1122 | 1151 |
1123 checkQueryResponse(api.QueryResponse o) { | 1152 checkQueryResponse(api.QueryResponse o) { |
1124 buildCounterQueryResponse++; | 1153 buildCounterQueryResponse++; |
1125 if (buildCounterQueryResponse < 3) { | 1154 if (buildCounterQueryResponse < 3) { |
1126 unittest.expect(o.cacheHit, unittest.isTrue); | 1155 unittest.expect(o.cacheHit, unittest.isTrue); |
| 1156 checkUnnamed2264(o.errors); |
1127 unittest.expect(o.jobComplete, unittest.isTrue); | 1157 unittest.expect(o.jobComplete, unittest.isTrue); |
1128 checkJobReference(o.jobReference); | 1158 checkJobReference(o.jobReference); |
1129 unittest.expect(o.kind, unittest.equals('foo')); | 1159 unittest.expect(o.kind, unittest.equals('foo')); |
1130 unittest.expect(o.pageToken, unittest.equals('foo')); | 1160 unittest.expect(o.pageToken, unittest.equals('foo')); |
1131 checkUnnamed352(o.rows); | 1161 checkUnnamed2265(o.rows); |
1132 checkTableSchema(o.schema); | 1162 checkTableSchema(o.schema); |
1133 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); | 1163 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); |
1134 unittest.expect(o.totalRows, unittest.equals('foo')); | 1164 unittest.expect(o.totalRows, unittest.equals('foo')); |
1135 } | 1165 } |
1136 buildCounterQueryResponse--; | 1166 buildCounterQueryResponse--; |
1137 } | 1167 } |
1138 | 1168 |
| 1169 core.int buildCounterStreamingbuffer = 0; |
| 1170 buildStreamingbuffer() { |
| 1171 var o = new api.Streamingbuffer(); |
| 1172 buildCounterStreamingbuffer++; |
| 1173 if (buildCounterStreamingbuffer < 3) { |
| 1174 o.estimatedBytes = "foo"; |
| 1175 o.estimatedRows = "foo"; |
| 1176 o.oldestEntryTime = "foo"; |
| 1177 } |
| 1178 buildCounterStreamingbuffer--; |
| 1179 return o; |
| 1180 } |
| 1181 |
| 1182 checkStreamingbuffer(api.Streamingbuffer o) { |
| 1183 buildCounterStreamingbuffer++; |
| 1184 if (buildCounterStreamingbuffer < 3) { |
| 1185 unittest.expect(o.estimatedBytes, unittest.equals('foo')); |
| 1186 unittest.expect(o.estimatedRows, unittest.equals('foo')); |
| 1187 unittest.expect(o.oldestEntryTime, unittest.equals('foo')); |
| 1188 } |
| 1189 buildCounterStreamingbuffer--; |
| 1190 } |
| 1191 |
1139 core.int buildCounterTable = 0; | 1192 core.int buildCounterTable = 0; |
1140 buildTable() { | 1193 buildTable() { |
1141 var o = new api.Table(); | 1194 var o = new api.Table(); |
1142 buildCounterTable++; | 1195 buildCounterTable++; |
1143 if (buildCounterTable < 3) { | 1196 if (buildCounterTable < 3) { |
1144 o.creationTime = "foo"; | 1197 o.creationTime = "foo"; |
1145 o.description = "foo"; | 1198 o.description = "foo"; |
1146 o.etag = "foo"; | 1199 o.etag = "foo"; |
1147 o.expirationTime = "foo"; | 1200 o.expirationTime = "foo"; |
1148 o.externalDataConfiguration = buildExternalDataConfiguration(); | 1201 o.externalDataConfiguration = buildExternalDataConfiguration(); |
1149 o.friendlyName = "foo"; | 1202 o.friendlyName = "foo"; |
1150 o.id = "foo"; | 1203 o.id = "foo"; |
1151 o.kind = "foo"; | 1204 o.kind = "foo"; |
1152 o.lastModifiedTime = "foo"; | 1205 o.lastModifiedTime = "foo"; |
1153 o.location = "foo"; | 1206 o.location = "foo"; |
1154 o.numBytes = "foo"; | 1207 o.numBytes = "foo"; |
1155 o.numRows = "foo"; | 1208 o.numRows = "foo"; |
1156 o.schema = buildTableSchema(); | 1209 o.schema = buildTableSchema(); |
1157 o.selfLink = "foo"; | 1210 o.selfLink = "foo"; |
| 1211 o.streamingBuffer = buildStreamingbuffer(); |
1158 o.tableReference = buildTableReference(); | 1212 o.tableReference = buildTableReference(); |
1159 o.type = "foo"; | 1213 o.type = "foo"; |
1160 o.view = buildViewDefinition(); | 1214 o.view = buildViewDefinition(); |
1161 } | 1215 } |
1162 buildCounterTable--; | 1216 buildCounterTable--; |
1163 return o; | 1217 return o; |
1164 } | 1218 } |
1165 | 1219 |
1166 checkTable(api.Table o) { | 1220 checkTable(api.Table o) { |
1167 buildCounterTable++; | 1221 buildCounterTable++; |
1168 if (buildCounterTable < 3) { | 1222 if (buildCounterTable < 3) { |
1169 unittest.expect(o.creationTime, unittest.equals('foo')); | 1223 unittest.expect(o.creationTime, unittest.equals('foo')); |
1170 unittest.expect(o.description, unittest.equals('foo')); | 1224 unittest.expect(o.description, unittest.equals('foo')); |
1171 unittest.expect(o.etag, unittest.equals('foo')); | 1225 unittest.expect(o.etag, unittest.equals('foo')); |
1172 unittest.expect(o.expirationTime, unittest.equals('foo')); | 1226 unittest.expect(o.expirationTime, unittest.equals('foo')); |
1173 checkExternalDataConfiguration(o.externalDataConfiguration); | 1227 checkExternalDataConfiguration(o.externalDataConfiguration); |
1174 unittest.expect(o.friendlyName, unittest.equals('foo')); | 1228 unittest.expect(o.friendlyName, unittest.equals('foo')); |
1175 unittest.expect(o.id, unittest.equals('foo')); | 1229 unittest.expect(o.id, unittest.equals('foo')); |
1176 unittest.expect(o.kind, unittest.equals('foo')); | 1230 unittest.expect(o.kind, unittest.equals('foo')); |
1177 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); | 1231 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); |
1178 unittest.expect(o.location, unittest.equals('foo')); | 1232 unittest.expect(o.location, unittest.equals('foo')); |
1179 unittest.expect(o.numBytes, unittest.equals('foo')); | 1233 unittest.expect(o.numBytes, unittest.equals('foo')); |
1180 unittest.expect(o.numRows, unittest.equals('foo')); | 1234 unittest.expect(o.numRows, unittest.equals('foo')); |
1181 checkTableSchema(o.schema); | 1235 checkTableSchema(o.schema); |
1182 unittest.expect(o.selfLink, unittest.equals('foo')); | 1236 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1237 checkStreamingbuffer(o.streamingBuffer); |
1183 checkTableReference(o.tableReference); | 1238 checkTableReference(o.tableReference); |
1184 unittest.expect(o.type, unittest.equals('foo')); | 1239 unittest.expect(o.type, unittest.equals('foo')); |
1185 checkViewDefinition(o.view); | 1240 checkViewDefinition(o.view); |
1186 } | 1241 } |
1187 buildCounterTable--; | 1242 buildCounterTable--; |
1188 } | 1243 } |
1189 | 1244 |
1190 core.int buildCounterTableCell = 0; | 1245 core.int buildCounterTableCell = 0; |
1191 buildTableCell() { | 1246 buildTableCell() { |
1192 var o = new api.TableCell(); | 1247 var o = new api.TableCell(); |
(...skipping 27 matching lines...) Expand all Loading... |
1220 | 1275 |
1221 checkTableDataInsertAllRequestRows(api.TableDataInsertAllRequestRows o) { | 1276 checkTableDataInsertAllRequestRows(api.TableDataInsertAllRequestRows o) { |
1222 buildCounterTableDataInsertAllRequestRows++; | 1277 buildCounterTableDataInsertAllRequestRows++; |
1223 if (buildCounterTableDataInsertAllRequestRows < 3) { | 1278 if (buildCounterTableDataInsertAllRequestRows < 3) { |
1224 unittest.expect(o.insertId, unittest.equals('foo')); | 1279 unittest.expect(o.insertId, unittest.equals('foo')); |
1225 checkJsonObject(o.json); | 1280 checkJsonObject(o.json); |
1226 } | 1281 } |
1227 buildCounterTableDataInsertAllRequestRows--; | 1282 buildCounterTableDataInsertAllRequestRows--; |
1228 } | 1283 } |
1229 | 1284 |
1230 buildUnnamed353() { | 1285 buildUnnamed2266() { |
1231 var o = new core.List<api.TableDataInsertAllRequestRows>(); | 1286 var o = new core.List<api.TableDataInsertAllRequestRows>(); |
1232 o.add(buildTableDataInsertAllRequestRows()); | 1287 o.add(buildTableDataInsertAllRequestRows()); |
1233 o.add(buildTableDataInsertAllRequestRows()); | 1288 o.add(buildTableDataInsertAllRequestRows()); |
1234 return o; | 1289 return o; |
1235 } | 1290 } |
1236 | 1291 |
1237 checkUnnamed353(core.List<api.TableDataInsertAllRequestRows> o) { | 1292 checkUnnamed2266(core.List<api.TableDataInsertAllRequestRows> o) { |
1238 unittest.expect(o, unittest.hasLength(2)); | 1293 unittest.expect(o, unittest.hasLength(2)); |
1239 checkTableDataInsertAllRequestRows(o[0]); | 1294 checkTableDataInsertAllRequestRows(o[0]); |
1240 checkTableDataInsertAllRequestRows(o[1]); | 1295 checkTableDataInsertAllRequestRows(o[1]); |
1241 } | 1296 } |
1242 | 1297 |
1243 core.int buildCounterTableDataInsertAllRequest = 0; | 1298 core.int buildCounterTableDataInsertAllRequest = 0; |
1244 buildTableDataInsertAllRequest() { | 1299 buildTableDataInsertAllRequest() { |
1245 var o = new api.TableDataInsertAllRequest(); | 1300 var o = new api.TableDataInsertAllRequest(); |
1246 buildCounterTableDataInsertAllRequest++; | 1301 buildCounterTableDataInsertAllRequest++; |
1247 if (buildCounterTableDataInsertAllRequest < 3) { | 1302 if (buildCounterTableDataInsertAllRequest < 3) { |
1248 o.ignoreUnknownValues = true; | 1303 o.ignoreUnknownValues = true; |
1249 o.kind = "foo"; | 1304 o.kind = "foo"; |
1250 o.rows = buildUnnamed353(); | 1305 o.rows = buildUnnamed2266(); |
1251 o.skipInvalidRows = true; | 1306 o.skipInvalidRows = true; |
1252 } | 1307 } |
1253 buildCounterTableDataInsertAllRequest--; | 1308 buildCounterTableDataInsertAllRequest--; |
1254 return o; | 1309 return o; |
1255 } | 1310 } |
1256 | 1311 |
1257 checkTableDataInsertAllRequest(api.TableDataInsertAllRequest o) { | 1312 checkTableDataInsertAllRequest(api.TableDataInsertAllRequest o) { |
1258 buildCounterTableDataInsertAllRequest++; | 1313 buildCounterTableDataInsertAllRequest++; |
1259 if (buildCounterTableDataInsertAllRequest < 3) { | 1314 if (buildCounterTableDataInsertAllRequest < 3) { |
1260 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); | 1315 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); |
1261 unittest.expect(o.kind, unittest.equals('foo')); | 1316 unittest.expect(o.kind, unittest.equals('foo')); |
1262 checkUnnamed353(o.rows); | 1317 checkUnnamed2266(o.rows); |
1263 unittest.expect(o.skipInvalidRows, unittest.isTrue); | 1318 unittest.expect(o.skipInvalidRows, unittest.isTrue); |
1264 } | 1319 } |
1265 buildCounterTableDataInsertAllRequest--; | 1320 buildCounterTableDataInsertAllRequest--; |
1266 } | 1321 } |
1267 | 1322 |
1268 buildUnnamed354() { | 1323 buildUnnamed2267() { |
1269 var o = new core.List<api.ErrorProto>(); | 1324 var o = new core.List<api.ErrorProto>(); |
1270 o.add(buildErrorProto()); | 1325 o.add(buildErrorProto()); |
1271 o.add(buildErrorProto()); | 1326 o.add(buildErrorProto()); |
1272 return o; | 1327 return o; |
1273 } | 1328 } |
1274 | 1329 |
1275 checkUnnamed354(core.List<api.ErrorProto> o) { | 1330 checkUnnamed2267(core.List<api.ErrorProto> o) { |
1276 unittest.expect(o, unittest.hasLength(2)); | 1331 unittest.expect(o, unittest.hasLength(2)); |
1277 checkErrorProto(o[0]); | 1332 checkErrorProto(o[0]); |
1278 checkErrorProto(o[1]); | 1333 checkErrorProto(o[1]); |
1279 } | 1334 } |
1280 | 1335 |
1281 core.int buildCounterTableDataInsertAllResponseInsertErrors = 0; | 1336 core.int buildCounterTableDataInsertAllResponseInsertErrors = 0; |
1282 buildTableDataInsertAllResponseInsertErrors() { | 1337 buildTableDataInsertAllResponseInsertErrors() { |
1283 var o = new api.TableDataInsertAllResponseInsertErrors(); | 1338 var o = new api.TableDataInsertAllResponseInsertErrors(); |
1284 buildCounterTableDataInsertAllResponseInsertErrors++; | 1339 buildCounterTableDataInsertAllResponseInsertErrors++; |
1285 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { | 1340 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { |
1286 o.errors = buildUnnamed354(); | 1341 o.errors = buildUnnamed2267(); |
1287 o.index = 42; | 1342 o.index = 42; |
1288 } | 1343 } |
1289 buildCounterTableDataInsertAllResponseInsertErrors--; | 1344 buildCounterTableDataInsertAllResponseInsertErrors--; |
1290 return o; | 1345 return o; |
1291 } | 1346 } |
1292 | 1347 |
1293 checkTableDataInsertAllResponseInsertErrors(api.TableDataInsertAllResponseInsert
Errors o) { | 1348 checkTableDataInsertAllResponseInsertErrors(api.TableDataInsertAllResponseInsert
Errors o) { |
1294 buildCounterTableDataInsertAllResponseInsertErrors++; | 1349 buildCounterTableDataInsertAllResponseInsertErrors++; |
1295 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { | 1350 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { |
1296 checkUnnamed354(o.errors); | 1351 checkUnnamed2267(o.errors); |
1297 unittest.expect(o.index, unittest.equals(42)); | 1352 unittest.expect(o.index, unittest.equals(42)); |
1298 } | 1353 } |
1299 buildCounterTableDataInsertAllResponseInsertErrors--; | 1354 buildCounterTableDataInsertAllResponseInsertErrors--; |
1300 } | 1355 } |
1301 | 1356 |
1302 buildUnnamed355() { | 1357 buildUnnamed2268() { |
1303 var o = new core.List<api.TableDataInsertAllResponseInsertErrors>(); | 1358 var o = new core.List<api.TableDataInsertAllResponseInsertErrors>(); |
1304 o.add(buildTableDataInsertAllResponseInsertErrors()); | 1359 o.add(buildTableDataInsertAllResponseInsertErrors()); |
1305 o.add(buildTableDataInsertAllResponseInsertErrors()); | 1360 o.add(buildTableDataInsertAllResponseInsertErrors()); |
1306 return o; | 1361 return o; |
1307 } | 1362 } |
1308 | 1363 |
1309 checkUnnamed355(core.List<api.TableDataInsertAllResponseInsertErrors> o) { | 1364 checkUnnamed2268(core.List<api.TableDataInsertAllResponseInsertErrors> o) { |
1310 unittest.expect(o, unittest.hasLength(2)); | 1365 unittest.expect(o, unittest.hasLength(2)); |
1311 checkTableDataInsertAllResponseInsertErrors(o[0]); | 1366 checkTableDataInsertAllResponseInsertErrors(o[0]); |
1312 checkTableDataInsertAllResponseInsertErrors(o[1]); | 1367 checkTableDataInsertAllResponseInsertErrors(o[1]); |
1313 } | 1368 } |
1314 | 1369 |
1315 core.int buildCounterTableDataInsertAllResponse = 0; | 1370 core.int buildCounterTableDataInsertAllResponse = 0; |
1316 buildTableDataInsertAllResponse() { | 1371 buildTableDataInsertAllResponse() { |
1317 var o = new api.TableDataInsertAllResponse(); | 1372 var o = new api.TableDataInsertAllResponse(); |
1318 buildCounterTableDataInsertAllResponse++; | 1373 buildCounterTableDataInsertAllResponse++; |
1319 if (buildCounterTableDataInsertAllResponse < 3) { | 1374 if (buildCounterTableDataInsertAllResponse < 3) { |
1320 o.insertErrors = buildUnnamed355(); | 1375 o.insertErrors = buildUnnamed2268(); |
1321 o.kind = "foo"; | 1376 o.kind = "foo"; |
1322 } | 1377 } |
1323 buildCounterTableDataInsertAllResponse--; | 1378 buildCounterTableDataInsertAllResponse--; |
1324 return o; | 1379 return o; |
1325 } | 1380 } |
1326 | 1381 |
1327 checkTableDataInsertAllResponse(api.TableDataInsertAllResponse o) { | 1382 checkTableDataInsertAllResponse(api.TableDataInsertAllResponse o) { |
1328 buildCounterTableDataInsertAllResponse++; | 1383 buildCounterTableDataInsertAllResponse++; |
1329 if (buildCounterTableDataInsertAllResponse < 3) { | 1384 if (buildCounterTableDataInsertAllResponse < 3) { |
1330 checkUnnamed355(o.insertErrors); | 1385 checkUnnamed2268(o.insertErrors); |
1331 unittest.expect(o.kind, unittest.equals('foo')); | 1386 unittest.expect(o.kind, unittest.equals('foo')); |
1332 } | 1387 } |
1333 buildCounterTableDataInsertAllResponse--; | 1388 buildCounterTableDataInsertAllResponse--; |
1334 } | 1389 } |
1335 | 1390 |
1336 buildUnnamed356() { | 1391 buildUnnamed2269() { |
1337 var o = new core.List<api.TableRow>(); | 1392 var o = new core.List<api.TableRow>(); |
1338 o.add(buildTableRow()); | 1393 o.add(buildTableRow()); |
1339 o.add(buildTableRow()); | 1394 o.add(buildTableRow()); |
1340 return o; | 1395 return o; |
1341 } | 1396 } |
1342 | 1397 |
1343 checkUnnamed356(core.List<api.TableRow> o) { | 1398 checkUnnamed2269(core.List<api.TableRow> o) { |
1344 unittest.expect(o, unittest.hasLength(2)); | 1399 unittest.expect(o, unittest.hasLength(2)); |
1345 checkTableRow(o[0]); | 1400 checkTableRow(o[0]); |
1346 checkTableRow(o[1]); | 1401 checkTableRow(o[1]); |
1347 } | 1402 } |
1348 | 1403 |
1349 core.int buildCounterTableDataList = 0; | 1404 core.int buildCounterTableDataList = 0; |
1350 buildTableDataList() { | 1405 buildTableDataList() { |
1351 var o = new api.TableDataList(); | 1406 var o = new api.TableDataList(); |
1352 buildCounterTableDataList++; | 1407 buildCounterTableDataList++; |
1353 if (buildCounterTableDataList < 3) { | 1408 if (buildCounterTableDataList < 3) { |
1354 o.etag = "foo"; | 1409 o.etag = "foo"; |
1355 o.kind = "foo"; | 1410 o.kind = "foo"; |
1356 o.pageToken = "foo"; | 1411 o.pageToken = "foo"; |
1357 o.rows = buildUnnamed356(); | 1412 o.rows = buildUnnamed2269(); |
1358 o.totalRows = "foo"; | 1413 o.totalRows = "foo"; |
1359 } | 1414 } |
1360 buildCounterTableDataList--; | 1415 buildCounterTableDataList--; |
1361 return o; | 1416 return o; |
1362 } | 1417 } |
1363 | 1418 |
1364 checkTableDataList(api.TableDataList o) { | 1419 checkTableDataList(api.TableDataList o) { |
1365 buildCounterTableDataList++; | 1420 buildCounterTableDataList++; |
1366 if (buildCounterTableDataList < 3) { | 1421 if (buildCounterTableDataList < 3) { |
1367 unittest.expect(o.etag, unittest.equals('foo')); | 1422 unittest.expect(o.etag, unittest.equals('foo')); |
1368 unittest.expect(o.kind, unittest.equals('foo')); | 1423 unittest.expect(o.kind, unittest.equals('foo')); |
1369 unittest.expect(o.pageToken, unittest.equals('foo')); | 1424 unittest.expect(o.pageToken, unittest.equals('foo')); |
1370 checkUnnamed356(o.rows); | 1425 checkUnnamed2269(o.rows); |
1371 unittest.expect(o.totalRows, unittest.equals('foo')); | 1426 unittest.expect(o.totalRows, unittest.equals('foo')); |
1372 } | 1427 } |
1373 buildCounterTableDataList--; | 1428 buildCounterTableDataList--; |
1374 } | 1429 } |
1375 | 1430 |
1376 buildUnnamed357() { | 1431 buildUnnamed2270() { |
1377 var o = new core.List<api.TableFieldSchema>(); | 1432 var o = new core.List<api.TableFieldSchema>(); |
1378 o.add(buildTableFieldSchema()); | 1433 o.add(buildTableFieldSchema()); |
1379 o.add(buildTableFieldSchema()); | 1434 o.add(buildTableFieldSchema()); |
1380 return o; | 1435 return o; |
1381 } | 1436 } |
1382 | 1437 |
1383 checkUnnamed357(core.List<api.TableFieldSchema> o) { | 1438 checkUnnamed2270(core.List<api.TableFieldSchema> o) { |
1384 unittest.expect(o, unittest.hasLength(2)); | 1439 unittest.expect(o, unittest.hasLength(2)); |
1385 checkTableFieldSchema(o[0]); | 1440 checkTableFieldSchema(o[0]); |
1386 checkTableFieldSchema(o[1]); | 1441 checkTableFieldSchema(o[1]); |
1387 } | 1442 } |
1388 | 1443 |
1389 core.int buildCounterTableFieldSchema = 0; | 1444 core.int buildCounterTableFieldSchema = 0; |
1390 buildTableFieldSchema() { | 1445 buildTableFieldSchema() { |
1391 var o = new api.TableFieldSchema(); | 1446 var o = new api.TableFieldSchema(); |
1392 buildCounterTableFieldSchema++; | 1447 buildCounterTableFieldSchema++; |
1393 if (buildCounterTableFieldSchema < 3) { | 1448 if (buildCounterTableFieldSchema < 3) { |
1394 o.description = "foo"; | 1449 o.description = "foo"; |
1395 o.fields = buildUnnamed357(); | 1450 o.fields = buildUnnamed2270(); |
1396 o.mode = "foo"; | 1451 o.mode = "foo"; |
1397 o.name = "foo"; | 1452 o.name = "foo"; |
1398 o.type = "foo"; | 1453 o.type = "foo"; |
1399 } | 1454 } |
1400 buildCounterTableFieldSchema--; | 1455 buildCounterTableFieldSchema--; |
1401 return o; | 1456 return o; |
1402 } | 1457 } |
1403 | 1458 |
1404 checkTableFieldSchema(api.TableFieldSchema o) { | 1459 checkTableFieldSchema(api.TableFieldSchema o) { |
1405 buildCounterTableFieldSchema++; | 1460 buildCounterTableFieldSchema++; |
1406 if (buildCounterTableFieldSchema < 3) { | 1461 if (buildCounterTableFieldSchema < 3) { |
1407 unittest.expect(o.description, unittest.equals('foo')); | 1462 unittest.expect(o.description, unittest.equals('foo')); |
1408 checkUnnamed357(o.fields); | 1463 checkUnnamed2270(o.fields); |
1409 unittest.expect(o.mode, unittest.equals('foo')); | 1464 unittest.expect(o.mode, unittest.equals('foo')); |
1410 unittest.expect(o.name, unittest.equals('foo')); | 1465 unittest.expect(o.name, unittest.equals('foo')); |
1411 unittest.expect(o.type, unittest.equals('foo')); | 1466 unittest.expect(o.type, unittest.equals('foo')); |
1412 } | 1467 } |
1413 buildCounterTableFieldSchema--; | 1468 buildCounterTableFieldSchema--; |
1414 } | 1469 } |
1415 | 1470 |
1416 core.int buildCounterTableListTables = 0; | 1471 core.int buildCounterTableListTables = 0; |
1417 buildTableListTables() { | 1472 buildTableListTables() { |
1418 var o = new api.TableListTables(); | 1473 var o = new api.TableListTables(); |
(...skipping 14 matching lines...) Expand all Loading... |
1433 if (buildCounterTableListTables < 3) { | 1488 if (buildCounterTableListTables < 3) { |
1434 unittest.expect(o.friendlyName, unittest.equals('foo')); | 1489 unittest.expect(o.friendlyName, unittest.equals('foo')); |
1435 unittest.expect(o.id, unittest.equals('foo')); | 1490 unittest.expect(o.id, unittest.equals('foo')); |
1436 unittest.expect(o.kind, unittest.equals('foo')); | 1491 unittest.expect(o.kind, unittest.equals('foo')); |
1437 checkTableReference(o.tableReference); | 1492 checkTableReference(o.tableReference); |
1438 unittest.expect(o.type, unittest.equals('foo')); | 1493 unittest.expect(o.type, unittest.equals('foo')); |
1439 } | 1494 } |
1440 buildCounterTableListTables--; | 1495 buildCounterTableListTables--; |
1441 } | 1496 } |
1442 | 1497 |
1443 buildUnnamed358() { | 1498 buildUnnamed2271() { |
1444 var o = new core.List<api.TableListTables>(); | 1499 var o = new core.List<api.TableListTables>(); |
1445 o.add(buildTableListTables()); | 1500 o.add(buildTableListTables()); |
1446 o.add(buildTableListTables()); | 1501 o.add(buildTableListTables()); |
1447 return o; | 1502 return o; |
1448 } | 1503 } |
1449 | 1504 |
1450 checkUnnamed358(core.List<api.TableListTables> o) { | 1505 checkUnnamed2271(core.List<api.TableListTables> o) { |
1451 unittest.expect(o, unittest.hasLength(2)); | 1506 unittest.expect(o, unittest.hasLength(2)); |
1452 checkTableListTables(o[0]); | 1507 checkTableListTables(o[0]); |
1453 checkTableListTables(o[1]); | 1508 checkTableListTables(o[1]); |
1454 } | 1509 } |
1455 | 1510 |
1456 core.int buildCounterTableList = 0; | 1511 core.int buildCounterTableList = 0; |
1457 buildTableList() { | 1512 buildTableList() { |
1458 var o = new api.TableList(); | 1513 var o = new api.TableList(); |
1459 buildCounterTableList++; | 1514 buildCounterTableList++; |
1460 if (buildCounterTableList < 3) { | 1515 if (buildCounterTableList < 3) { |
1461 o.etag = "foo"; | 1516 o.etag = "foo"; |
1462 o.kind = "foo"; | 1517 o.kind = "foo"; |
1463 o.nextPageToken = "foo"; | 1518 o.nextPageToken = "foo"; |
1464 o.tables = buildUnnamed358(); | 1519 o.tables = buildUnnamed2271(); |
1465 o.totalItems = 42; | 1520 o.totalItems = 42; |
1466 } | 1521 } |
1467 buildCounterTableList--; | 1522 buildCounterTableList--; |
1468 return o; | 1523 return o; |
1469 } | 1524 } |
1470 | 1525 |
1471 checkTableList(api.TableList o) { | 1526 checkTableList(api.TableList o) { |
1472 buildCounterTableList++; | 1527 buildCounterTableList++; |
1473 if (buildCounterTableList < 3) { | 1528 if (buildCounterTableList < 3) { |
1474 unittest.expect(o.etag, unittest.equals('foo')); | 1529 unittest.expect(o.etag, unittest.equals('foo')); |
1475 unittest.expect(o.kind, unittest.equals('foo')); | 1530 unittest.expect(o.kind, unittest.equals('foo')); |
1476 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1531 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1477 checkUnnamed358(o.tables); | 1532 checkUnnamed2271(o.tables); |
1478 unittest.expect(o.totalItems, unittest.equals(42)); | 1533 unittest.expect(o.totalItems, unittest.equals(42)); |
1479 } | 1534 } |
1480 buildCounterTableList--; | 1535 buildCounterTableList--; |
1481 } | 1536 } |
1482 | 1537 |
1483 core.int buildCounterTableReference = 0; | 1538 core.int buildCounterTableReference = 0; |
1484 buildTableReference() { | 1539 buildTableReference() { |
1485 var o = new api.TableReference(); | 1540 var o = new api.TableReference(); |
1486 buildCounterTableReference++; | 1541 buildCounterTableReference++; |
1487 if (buildCounterTableReference < 3) { | 1542 if (buildCounterTableReference < 3) { |
1488 o.datasetId = "foo"; | 1543 o.datasetId = "foo"; |
1489 o.projectId = "foo"; | 1544 o.projectId = "foo"; |
1490 o.tableId = "foo"; | 1545 o.tableId = "foo"; |
1491 } | 1546 } |
1492 buildCounterTableReference--; | 1547 buildCounterTableReference--; |
1493 return o; | 1548 return o; |
1494 } | 1549 } |
1495 | 1550 |
1496 checkTableReference(api.TableReference o) { | 1551 checkTableReference(api.TableReference o) { |
1497 buildCounterTableReference++; | 1552 buildCounterTableReference++; |
1498 if (buildCounterTableReference < 3) { | 1553 if (buildCounterTableReference < 3) { |
1499 unittest.expect(o.datasetId, unittest.equals('foo')); | 1554 unittest.expect(o.datasetId, unittest.equals('foo')); |
1500 unittest.expect(o.projectId, unittest.equals('foo')); | 1555 unittest.expect(o.projectId, unittest.equals('foo')); |
1501 unittest.expect(o.tableId, unittest.equals('foo')); | 1556 unittest.expect(o.tableId, unittest.equals('foo')); |
1502 } | 1557 } |
1503 buildCounterTableReference--; | 1558 buildCounterTableReference--; |
1504 } | 1559 } |
1505 | 1560 |
1506 buildUnnamed359() { | 1561 buildUnnamed2272() { |
1507 var o = new core.List<api.TableCell>(); | 1562 var o = new core.List<api.TableCell>(); |
1508 o.add(buildTableCell()); | 1563 o.add(buildTableCell()); |
1509 o.add(buildTableCell()); | 1564 o.add(buildTableCell()); |
1510 return o; | 1565 return o; |
1511 } | 1566 } |
1512 | 1567 |
1513 checkUnnamed359(core.List<api.TableCell> o) { | 1568 checkUnnamed2272(core.List<api.TableCell> o) { |
1514 unittest.expect(o, unittest.hasLength(2)); | 1569 unittest.expect(o, unittest.hasLength(2)); |
1515 checkTableCell(o[0]); | 1570 checkTableCell(o[0]); |
1516 checkTableCell(o[1]); | 1571 checkTableCell(o[1]); |
1517 } | 1572 } |
1518 | 1573 |
1519 core.int buildCounterTableRow = 0; | 1574 core.int buildCounterTableRow = 0; |
1520 buildTableRow() { | 1575 buildTableRow() { |
1521 var o = new api.TableRow(); | 1576 var o = new api.TableRow(); |
1522 buildCounterTableRow++; | 1577 buildCounterTableRow++; |
1523 if (buildCounterTableRow < 3) { | 1578 if (buildCounterTableRow < 3) { |
1524 o.f = buildUnnamed359(); | 1579 o.f = buildUnnamed2272(); |
1525 } | 1580 } |
1526 buildCounterTableRow--; | 1581 buildCounterTableRow--; |
1527 return o; | 1582 return o; |
1528 } | 1583 } |
1529 | 1584 |
1530 checkTableRow(api.TableRow o) { | 1585 checkTableRow(api.TableRow o) { |
1531 buildCounterTableRow++; | 1586 buildCounterTableRow++; |
1532 if (buildCounterTableRow < 3) { | 1587 if (buildCounterTableRow < 3) { |
1533 checkUnnamed359(o.f); | 1588 checkUnnamed2272(o.f); |
1534 } | 1589 } |
1535 buildCounterTableRow--; | 1590 buildCounterTableRow--; |
1536 } | 1591 } |
1537 | 1592 |
1538 buildUnnamed360() { | 1593 buildUnnamed2273() { |
1539 var o = new core.List<api.TableFieldSchema>(); | 1594 var o = new core.List<api.TableFieldSchema>(); |
1540 o.add(buildTableFieldSchema()); | 1595 o.add(buildTableFieldSchema()); |
1541 o.add(buildTableFieldSchema()); | 1596 o.add(buildTableFieldSchema()); |
1542 return o; | 1597 return o; |
1543 } | 1598 } |
1544 | 1599 |
1545 checkUnnamed360(core.List<api.TableFieldSchema> o) { | 1600 checkUnnamed2273(core.List<api.TableFieldSchema> o) { |
1546 unittest.expect(o, unittest.hasLength(2)); | 1601 unittest.expect(o, unittest.hasLength(2)); |
1547 checkTableFieldSchema(o[0]); | 1602 checkTableFieldSchema(o[0]); |
1548 checkTableFieldSchema(o[1]); | 1603 checkTableFieldSchema(o[1]); |
1549 } | 1604 } |
1550 | 1605 |
1551 core.int buildCounterTableSchema = 0; | 1606 core.int buildCounterTableSchema = 0; |
1552 buildTableSchema() { | 1607 buildTableSchema() { |
1553 var o = new api.TableSchema(); | 1608 var o = new api.TableSchema(); |
1554 buildCounterTableSchema++; | 1609 buildCounterTableSchema++; |
1555 if (buildCounterTableSchema < 3) { | 1610 if (buildCounterTableSchema < 3) { |
1556 o.fields = buildUnnamed360(); | 1611 o.fields = buildUnnamed2273(); |
1557 } | 1612 } |
1558 buildCounterTableSchema--; | 1613 buildCounterTableSchema--; |
1559 return o; | 1614 return o; |
1560 } | 1615 } |
1561 | 1616 |
1562 checkTableSchema(api.TableSchema o) { | 1617 checkTableSchema(api.TableSchema o) { |
1563 buildCounterTableSchema++; | 1618 buildCounterTableSchema++; |
1564 if (buildCounterTableSchema < 3) { | 1619 if (buildCounterTableSchema < 3) { |
1565 checkUnnamed360(o.fields); | 1620 checkUnnamed2273(o.fields); |
1566 } | 1621 } |
1567 buildCounterTableSchema--; | 1622 buildCounterTableSchema--; |
1568 } | 1623 } |
1569 | 1624 |
1570 core.int buildCounterUserDefinedFunctionResource = 0; | 1625 core.int buildCounterUserDefinedFunctionResource = 0; |
1571 buildUserDefinedFunctionResource() { | 1626 buildUserDefinedFunctionResource() { |
1572 var o = new api.UserDefinedFunctionResource(); | 1627 var o = new api.UserDefinedFunctionResource(); |
1573 buildCounterUserDefinedFunctionResource++; | 1628 buildCounterUserDefinedFunctionResource++; |
1574 if (buildCounterUserDefinedFunctionResource < 3) { | 1629 if (buildCounterUserDefinedFunctionResource < 3) { |
1575 o.inlineCode = "foo"; | 1630 o.inlineCode = "foo"; |
(...skipping 24 matching lines...) Expand all Loading... |
1600 } | 1655 } |
1601 | 1656 |
1602 checkViewDefinition(api.ViewDefinition o) { | 1657 checkViewDefinition(api.ViewDefinition o) { |
1603 buildCounterViewDefinition++; | 1658 buildCounterViewDefinition++; |
1604 if (buildCounterViewDefinition < 3) { | 1659 if (buildCounterViewDefinition < 3) { |
1605 unittest.expect(o.query, unittest.equals('foo')); | 1660 unittest.expect(o.query, unittest.equals('foo')); |
1606 } | 1661 } |
1607 buildCounterViewDefinition--; | 1662 buildCounterViewDefinition--; |
1608 } | 1663 } |
1609 | 1664 |
1610 buildUnnamed361() { | 1665 buildUnnamed2274() { |
1611 var o = new core.List<core.String>(); | 1666 var o = new core.List<core.String>(); |
1612 o.add("foo"); | 1667 o.add("foo"); |
1613 o.add("foo"); | 1668 o.add("foo"); |
1614 return o; | 1669 return o; |
1615 } | 1670 } |
1616 | 1671 |
1617 checkUnnamed361(core.List<core.String> o) { | 1672 checkUnnamed2274(core.List<core.String> o) { |
1618 unittest.expect(o, unittest.hasLength(2)); | 1673 unittest.expect(o, unittest.hasLength(2)); |
1619 unittest.expect(o[0], unittest.equals('foo')); | 1674 unittest.expect(o[0], unittest.equals('foo')); |
1620 unittest.expect(o[1], unittest.equals('foo')); | 1675 unittest.expect(o[1], unittest.equals('foo')); |
1621 } | 1676 } |
1622 | 1677 |
1623 | 1678 |
1624 main() { | 1679 main() { |
1625 unittest.group("obj-schema-CsvOptions", () { | 1680 unittest.group("obj-schema-CsvOptions", () { |
1626 unittest.test("to-json--from-json", () { | 1681 unittest.test("to-json--from-json", () { |
1627 var o = buildCsvOptions(); | 1682 var o = buildCsvOptions(); |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1894 | 1949 |
1895 unittest.group("obj-schema-QueryResponse", () { | 1950 unittest.group("obj-schema-QueryResponse", () { |
1896 unittest.test("to-json--from-json", () { | 1951 unittest.test("to-json--from-json", () { |
1897 var o = buildQueryResponse(); | 1952 var o = buildQueryResponse(); |
1898 var od = new api.QueryResponse.fromJson(o.toJson()); | 1953 var od = new api.QueryResponse.fromJson(o.toJson()); |
1899 checkQueryResponse(od); | 1954 checkQueryResponse(od); |
1900 }); | 1955 }); |
1901 }); | 1956 }); |
1902 | 1957 |
1903 | 1958 |
| 1959 unittest.group("obj-schema-Streamingbuffer", () { |
| 1960 unittest.test("to-json--from-json", () { |
| 1961 var o = buildStreamingbuffer(); |
| 1962 var od = new api.Streamingbuffer.fromJson(o.toJson()); |
| 1963 checkStreamingbuffer(od); |
| 1964 }); |
| 1965 }); |
| 1966 |
| 1967 |
1904 unittest.group("obj-schema-Table", () { | 1968 unittest.group("obj-schema-Table", () { |
1905 unittest.test("to-json--from-json", () { | 1969 unittest.test("to-json--from-json", () { |
1906 var o = buildTable(); | 1970 var o = buildTable(); |
1907 var od = new api.Table.fromJson(o.toJson()); | 1971 var od = new api.Table.fromJson(o.toJson()); |
1908 checkTable(od); | 1972 checkTable(od); |
1909 }); | 1973 }); |
1910 }); | 1974 }); |
1911 | 1975 |
1912 | 1976 |
1913 unittest.group("obj-schema-TableCell", () { | 1977 unittest.group("obj-schema-TableCell", () { |
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2637 | 2701 |
2638 unittest.test("method--list", () { | 2702 unittest.test("method--list", () { |
2639 | 2703 |
2640 var mock = new HttpServerMock(); | 2704 var mock = new HttpServerMock(); |
2641 api.JobsResourceApi res = new api.BigqueryApi(mock).jobs; | 2705 api.JobsResourceApi res = new api.BigqueryApi(mock).jobs; |
2642 var arg_projectId = "foo"; | 2706 var arg_projectId = "foo"; |
2643 var arg_allUsers = true; | 2707 var arg_allUsers = true; |
2644 var arg_maxResults = 42; | 2708 var arg_maxResults = 42; |
2645 var arg_pageToken = "foo"; | 2709 var arg_pageToken = "foo"; |
2646 var arg_projection = "foo"; | 2710 var arg_projection = "foo"; |
2647 var arg_stateFilter = buildUnnamed361(); | 2711 var arg_stateFilter = buildUnnamed2274(); |
2648 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2712 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2649 var path = (req.url).path; | 2713 var path = (req.url).path; |
2650 var pathOffset = 0; | 2714 var pathOffset = 0; |
2651 var index; | 2715 var index; |
2652 var subPart; | 2716 var subPart; |
2653 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2717 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2654 pathOffset += 1; | 2718 pathOffset += 1; |
2655 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("bigquery/v2/")); | 2719 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("bigquery/v2/")); |
2656 pathOffset += 12; | 2720 pathOffset += 12; |
2657 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 2721 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3358 res.update(arg_request, arg_projectId, arg_datasetId, arg_tableId).then(un
ittest.expectAsync(((api.Table response) { | 3422 res.update(arg_request, arg_projectId, arg_datasetId, arg_tableId).then(un
ittest.expectAsync(((api.Table response) { |
3359 checkTable(response); | 3423 checkTable(response); |
3360 }))); | 3424 }))); |
3361 }); | 3425 }); |
3362 | 3426 |
3363 }); | 3427 }); |
3364 | 3428 |
3365 | 3429 |
3366 } | 3430 } |
3367 | 3431 |
OLD | NEW |