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 27 matching lines...) Expand all Loading... |
38 unittest.expect(o.domain, unittest.equals('foo')); | 38 unittest.expect(o.domain, unittest.equals('foo')); |
39 unittest.expect(o.groupByEmail, unittest.equals('foo')); | 39 unittest.expect(o.groupByEmail, unittest.equals('foo')); |
40 unittest.expect(o.role, unittest.equals('foo')); | 40 unittest.expect(o.role, unittest.equals('foo')); |
41 unittest.expect(o.specialGroup, unittest.equals('foo')); | 41 unittest.expect(o.specialGroup, unittest.equals('foo')); |
42 unittest.expect(o.userByEmail, unittest.equals('foo')); | 42 unittest.expect(o.userByEmail, unittest.equals('foo')); |
43 checkTableReference(o.view); | 43 checkTableReference(o.view); |
44 } | 44 } |
45 buildCounterDatasetAccess--; | 45 buildCounterDatasetAccess--; |
46 } | 46 } |
47 | 47 |
48 buildUnnamed266() { | 48 buildUnnamed1143() { |
49 var o = new core.List<api.DatasetAccess>(); | 49 var o = new core.List<api.DatasetAccess>(); |
50 o.add(buildDatasetAccess()); | 50 o.add(buildDatasetAccess()); |
51 o.add(buildDatasetAccess()); | 51 o.add(buildDatasetAccess()); |
52 return o; | 52 return o; |
53 } | 53 } |
54 | 54 |
55 checkUnnamed266(core.List<api.DatasetAccess> o) { | 55 checkUnnamed1143(core.List<api.DatasetAccess> o) { |
56 unittest.expect(o, unittest.hasLength(2)); | 56 unittest.expect(o, unittest.hasLength(2)); |
57 checkDatasetAccess(o[0]); | 57 checkDatasetAccess(o[0]); |
58 checkDatasetAccess(o[1]); | 58 checkDatasetAccess(o[1]); |
59 } | 59 } |
60 | 60 |
61 core.int buildCounterDataset = 0; | 61 core.int buildCounterDataset = 0; |
62 buildDataset() { | 62 buildDataset() { |
63 var o = new api.Dataset(); | 63 var o = new api.Dataset(); |
64 buildCounterDataset++; | 64 buildCounterDataset++; |
65 if (buildCounterDataset < 3) { | 65 if (buildCounterDataset < 3) { |
66 o.access = buildUnnamed266(); | 66 o.access = buildUnnamed1143(); |
67 o.creationTime = "foo"; | 67 o.creationTime = "foo"; |
68 o.datasetReference = buildDatasetReference(); | 68 o.datasetReference = buildDatasetReference(); |
69 o.description = "foo"; | 69 o.description = "foo"; |
70 o.etag = "foo"; | 70 o.etag = "foo"; |
71 o.friendlyName = "foo"; | 71 o.friendlyName = "foo"; |
72 o.id = "foo"; | 72 o.id = "foo"; |
73 o.kind = "foo"; | 73 o.kind = "foo"; |
74 o.lastModifiedTime = "foo"; | 74 o.lastModifiedTime = "foo"; |
75 o.selfLink = "foo"; | 75 o.selfLink = "foo"; |
76 } | 76 } |
77 buildCounterDataset--; | 77 buildCounterDataset--; |
78 return o; | 78 return o; |
79 } | 79 } |
80 | 80 |
81 checkDataset(api.Dataset o) { | 81 checkDataset(api.Dataset o) { |
82 buildCounterDataset++; | 82 buildCounterDataset++; |
83 if (buildCounterDataset < 3) { | 83 if (buildCounterDataset < 3) { |
84 checkUnnamed266(o.access); | 84 checkUnnamed1143(o.access); |
85 unittest.expect(o.creationTime, unittest.equals('foo')); | 85 unittest.expect(o.creationTime, unittest.equals('foo')); |
86 checkDatasetReference(o.datasetReference); | 86 checkDatasetReference(o.datasetReference); |
87 unittest.expect(o.description, unittest.equals('foo')); | 87 unittest.expect(o.description, unittest.equals('foo')); |
88 unittest.expect(o.etag, unittest.equals('foo')); | 88 unittest.expect(o.etag, unittest.equals('foo')); |
89 unittest.expect(o.friendlyName, unittest.equals('foo')); | 89 unittest.expect(o.friendlyName, unittest.equals('foo')); |
90 unittest.expect(o.id, unittest.equals('foo')); | 90 unittest.expect(o.id, unittest.equals('foo')); |
91 unittest.expect(o.kind, unittest.equals('foo')); | 91 unittest.expect(o.kind, unittest.equals('foo')); |
92 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); | 92 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); |
93 unittest.expect(o.selfLink, unittest.equals('foo')); | 93 unittest.expect(o.selfLink, unittest.equals('foo')); |
94 } | 94 } |
(...skipping 18 matching lines...) Expand all Loading... |
113 buildCounterDatasetListDatasets++; | 113 buildCounterDatasetListDatasets++; |
114 if (buildCounterDatasetListDatasets < 3) { | 114 if (buildCounterDatasetListDatasets < 3) { |
115 checkDatasetReference(o.datasetReference); | 115 checkDatasetReference(o.datasetReference); |
116 unittest.expect(o.friendlyName, unittest.equals('foo')); | 116 unittest.expect(o.friendlyName, unittest.equals('foo')); |
117 unittest.expect(o.id, unittest.equals('foo')); | 117 unittest.expect(o.id, unittest.equals('foo')); |
118 unittest.expect(o.kind, unittest.equals('foo')); | 118 unittest.expect(o.kind, unittest.equals('foo')); |
119 } | 119 } |
120 buildCounterDatasetListDatasets--; | 120 buildCounterDatasetListDatasets--; |
121 } | 121 } |
122 | 122 |
123 buildUnnamed267() { | 123 buildUnnamed1144() { |
124 var o = new core.List<api.DatasetListDatasets>(); | 124 var o = new core.List<api.DatasetListDatasets>(); |
125 o.add(buildDatasetListDatasets()); | 125 o.add(buildDatasetListDatasets()); |
126 o.add(buildDatasetListDatasets()); | 126 o.add(buildDatasetListDatasets()); |
127 return o; | 127 return o; |
128 } | 128 } |
129 | 129 |
130 checkUnnamed267(core.List<api.DatasetListDatasets> o) { | 130 checkUnnamed1144(core.List<api.DatasetListDatasets> o) { |
131 unittest.expect(o, unittest.hasLength(2)); | 131 unittest.expect(o, unittest.hasLength(2)); |
132 checkDatasetListDatasets(o[0]); | 132 checkDatasetListDatasets(o[0]); |
133 checkDatasetListDatasets(o[1]); | 133 checkDatasetListDatasets(o[1]); |
134 } | 134 } |
135 | 135 |
136 core.int buildCounterDatasetList = 0; | 136 core.int buildCounterDatasetList = 0; |
137 buildDatasetList() { | 137 buildDatasetList() { |
138 var o = new api.DatasetList(); | 138 var o = new api.DatasetList(); |
139 buildCounterDatasetList++; | 139 buildCounterDatasetList++; |
140 if (buildCounterDatasetList < 3) { | 140 if (buildCounterDatasetList < 3) { |
141 o.datasets = buildUnnamed267(); | 141 o.datasets = buildUnnamed1144(); |
142 o.etag = "foo"; | 142 o.etag = "foo"; |
143 o.kind = "foo"; | 143 o.kind = "foo"; |
144 o.nextPageToken = "foo"; | 144 o.nextPageToken = "foo"; |
145 } | 145 } |
146 buildCounterDatasetList--; | 146 buildCounterDatasetList--; |
147 return o; | 147 return o; |
148 } | 148 } |
149 | 149 |
150 checkDatasetList(api.DatasetList o) { | 150 checkDatasetList(api.DatasetList o) { |
151 buildCounterDatasetList++; | 151 buildCounterDatasetList++; |
152 if (buildCounterDatasetList < 3) { | 152 if (buildCounterDatasetList < 3) { |
153 checkUnnamed267(o.datasets); | 153 checkUnnamed1144(o.datasets); |
154 unittest.expect(o.etag, unittest.equals('foo')); | 154 unittest.expect(o.etag, unittest.equals('foo')); |
155 unittest.expect(o.kind, unittest.equals('foo')); | 155 unittest.expect(o.kind, unittest.equals('foo')); |
156 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 156 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
157 } | 157 } |
158 buildCounterDatasetList--; | 158 buildCounterDatasetList--; |
159 } | 159 } |
160 | 160 |
161 core.int buildCounterDatasetReference = 0; | 161 core.int buildCounterDatasetReference = 0; |
162 buildDatasetReference() { | 162 buildDatasetReference() { |
163 var o = new api.DatasetReference(); | 163 var o = new api.DatasetReference(); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 buildCounterErrorProto++; | 197 buildCounterErrorProto++; |
198 if (buildCounterErrorProto < 3) { | 198 if (buildCounterErrorProto < 3) { |
199 unittest.expect(o.debugInfo, unittest.equals('foo')); | 199 unittest.expect(o.debugInfo, unittest.equals('foo')); |
200 unittest.expect(o.location, unittest.equals('foo')); | 200 unittest.expect(o.location, unittest.equals('foo')); |
201 unittest.expect(o.message, unittest.equals('foo')); | 201 unittest.expect(o.message, unittest.equals('foo')); |
202 unittest.expect(o.reason, unittest.equals('foo')); | 202 unittest.expect(o.reason, unittest.equals('foo')); |
203 } | 203 } |
204 buildCounterErrorProto--; | 204 buildCounterErrorProto--; |
205 } | 205 } |
206 | 206 |
207 buildUnnamed268() { | 207 buildUnnamed1145() { |
208 var o = new core.List<api.TableRow>(); | 208 var o = new core.List<api.TableRow>(); |
209 o.add(buildTableRow()); | 209 o.add(buildTableRow()); |
210 o.add(buildTableRow()); | 210 o.add(buildTableRow()); |
211 return o; | 211 return o; |
212 } | 212 } |
213 | 213 |
214 checkUnnamed268(core.List<api.TableRow> o) { | 214 checkUnnamed1145(core.List<api.TableRow> o) { |
215 unittest.expect(o, unittest.hasLength(2)); | 215 unittest.expect(o, unittest.hasLength(2)); |
216 checkTableRow(o[0]); | 216 checkTableRow(o[0]); |
217 checkTableRow(o[1]); | 217 checkTableRow(o[1]); |
218 } | 218 } |
219 | 219 |
220 core.int buildCounterGetQueryResultsResponse = 0; | 220 core.int buildCounterGetQueryResultsResponse = 0; |
221 buildGetQueryResultsResponse() { | 221 buildGetQueryResultsResponse() { |
222 var o = new api.GetQueryResultsResponse(); | 222 var o = new api.GetQueryResultsResponse(); |
223 buildCounterGetQueryResultsResponse++; | 223 buildCounterGetQueryResultsResponse++; |
224 if (buildCounterGetQueryResultsResponse < 3) { | 224 if (buildCounterGetQueryResultsResponse < 3) { |
225 o.cacheHit = true; | 225 o.cacheHit = true; |
226 o.etag = "foo"; | 226 o.etag = "foo"; |
227 o.jobComplete = true; | 227 o.jobComplete = true; |
228 o.jobReference = buildJobReference(); | 228 o.jobReference = buildJobReference(); |
229 o.kind = "foo"; | 229 o.kind = "foo"; |
230 o.pageToken = "foo"; | 230 o.pageToken = "foo"; |
231 o.rows = buildUnnamed268(); | 231 o.rows = buildUnnamed1145(); |
232 o.schema = buildTableSchema(); | 232 o.schema = buildTableSchema(); |
| 233 o.totalBytesProcessed = "foo"; |
233 o.totalRows = "foo"; | 234 o.totalRows = "foo"; |
234 } | 235 } |
235 buildCounterGetQueryResultsResponse--; | 236 buildCounterGetQueryResultsResponse--; |
236 return o; | 237 return o; |
237 } | 238 } |
238 | 239 |
239 checkGetQueryResultsResponse(api.GetQueryResultsResponse o) { | 240 checkGetQueryResultsResponse(api.GetQueryResultsResponse o) { |
240 buildCounterGetQueryResultsResponse++; | 241 buildCounterGetQueryResultsResponse++; |
241 if (buildCounterGetQueryResultsResponse < 3) { | 242 if (buildCounterGetQueryResultsResponse < 3) { |
242 unittest.expect(o.cacheHit, unittest.isTrue); | 243 unittest.expect(o.cacheHit, unittest.isTrue); |
243 unittest.expect(o.etag, unittest.equals('foo')); | 244 unittest.expect(o.etag, unittest.equals('foo')); |
244 unittest.expect(o.jobComplete, unittest.isTrue); | 245 unittest.expect(o.jobComplete, unittest.isTrue); |
245 checkJobReference(o.jobReference); | 246 checkJobReference(o.jobReference); |
246 unittest.expect(o.kind, unittest.equals('foo')); | 247 unittest.expect(o.kind, unittest.equals('foo')); |
247 unittest.expect(o.pageToken, unittest.equals('foo')); | 248 unittest.expect(o.pageToken, unittest.equals('foo')); |
248 checkUnnamed268(o.rows); | 249 checkUnnamed1145(o.rows); |
249 checkTableSchema(o.schema); | 250 checkTableSchema(o.schema); |
| 251 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); |
250 unittest.expect(o.totalRows, unittest.equals('foo')); | 252 unittest.expect(o.totalRows, unittest.equals('foo')); |
251 } | 253 } |
252 buildCounterGetQueryResultsResponse--; | 254 buildCounterGetQueryResultsResponse--; |
253 } | 255 } |
254 | 256 |
255 core.int buildCounterJob = 0; | 257 core.int buildCounterJob = 0; |
256 buildJob() { | 258 buildJob() { |
257 var o = new api.Job(); | 259 var o = new api.Job(); |
258 buildCounterJob++; | 260 buildCounterJob++; |
259 if (buildCounterJob < 3) { | 261 if (buildCounterJob < 3) { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 checkJobConfigurationTableCopy(o.copy); | 309 checkJobConfigurationTableCopy(o.copy); |
308 unittest.expect(o.dryRun, unittest.isTrue); | 310 unittest.expect(o.dryRun, unittest.isTrue); |
309 checkJobConfigurationExtract(o.extract); | 311 checkJobConfigurationExtract(o.extract); |
310 checkJobConfigurationLink(o.link); | 312 checkJobConfigurationLink(o.link); |
311 checkJobConfigurationLoad(o.load); | 313 checkJobConfigurationLoad(o.load); |
312 checkJobConfigurationQuery(o.query); | 314 checkJobConfigurationQuery(o.query); |
313 } | 315 } |
314 buildCounterJobConfiguration--; | 316 buildCounterJobConfiguration--; |
315 } | 317 } |
316 | 318 |
317 buildUnnamed269() { | 319 buildUnnamed1146() { |
318 var o = new core.List<core.String>(); | 320 var o = new core.List<core.String>(); |
319 o.add("foo"); | 321 o.add("foo"); |
320 o.add("foo"); | 322 o.add("foo"); |
321 return o; | 323 return o; |
322 } | 324 } |
323 | 325 |
324 checkUnnamed269(core.List<core.String> o) { | 326 checkUnnamed1146(core.List<core.String> o) { |
325 unittest.expect(o, unittest.hasLength(2)); | 327 unittest.expect(o, unittest.hasLength(2)); |
326 unittest.expect(o[0], unittest.equals('foo')); | 328 unittest.expect(o[0], unittest.equals('foo')); |
327 unittest.expect(o[1], unittest.equals('foo')); | 329 unittest.expect(o[1], unittest.equals('foo')); |
328 } | 330 } |
329 | 331 |
330 core.int buildCounterJobConfigurationExtract = 0; | 332 core.int buildCounterJobConfigurationExtract = 0; |
331 buildJobConfigurationExtract() { | 333 buildJobConfigurationExtract() { |
332 var o = new api.JobConfigurationExtract(); | 334 var o = new api.JobConfigurationExtract(); |
333 buildCounterJobConfigurationExtract++; | 335 buildCounterJobConfigurationExtract++; |
334 if (buildCounterJobConfigurationExtract < 3) { | 336 if (buildCounterJobConfigurationExtract < 3) { |
335 o.compression = "foo"; | 337 o.compression = "foo"; |
336 o.destinationFormat = "foo"; | 338 o.destinationFormat = "foo"; |
337 o.destinationUri = "foo"; | 339 o.destinationUri = "foo"; |
338 o.destinationUris = buildUnnamed269(); | 340 o.destinationUris = buildUnnamed1146(); |
339 o.fieldDelimiter = "foo"; | 341 o.fieldDelimiter = "foo"; |
340 o.printHeader = true; | 342 o.printHeader = true; |
341 o.sourceTable = buildTableReference(); | 343 o.sourceTable = buildTableReference(); |
342 } | 344 } |
343 buildCounterJobConfigurationExtract--; | 345 buildCounterJobConfigurationExtract--; |
344 return o; | 346 return o; |
345 } | 347 } |
346 | 348 |
347 checkJobConfigurationExtract(api.JobConfigurationExtract o) { | 349 checkJobConfigurationExtract(api.JobConfigurationExtract o) { |
348 buildCounterJobConfigurationExtract++; | 350 buildCounterJobConfigurationExtract++; |
349 if (buildCounterJobConfigurationExtract < 3) { | 351 if (buildCounterJobConfigurationExtract < 3) { |
350 unittest.expect(o.compression, unittest.equals('foo')); | 352 unittest.expect(o.compression, unittest.equals('foo')); |
351 unittest.expect(o.destinationFormat, unittest.equals('foo')); | 353 unittest.expect(o.destinationFormat, unittest.equals('foo')); |
352 unittest.expect(o.destinationUri, unittest.equals('foo')); | 354 unittest.expect(o.destinationUri, unittest.equals('foo')); |
353 checkUnnamed269(o.destinationUris); | 355 checkUnnamed1146(o.destinationUris); |
354 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); | 356 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); |
355 unittest.expect(o.printHeader, unittest.isTrue); | 357 unittest.expect(o.printHeader, unittest.isTrue); |
356 checkTableReference(o.sourceTable); | 358 checkTableReference(o.sourceTable); |
357 } | 359 } |
358 buildCounterJobConfigurationExtract--; | 360 buildCounterJobConfigurationExtract--; |
359 } | 361 } |
360 | 362 |
361 buildUnnamed270() { | 363 buildUnnamed1147() { |
362 var o = new core.List<core.String>(); | 364 var o = new core.List<core.String>(); |
363 o.add("foo"); | 365 o.add("foo"); |
364 o.add("foo"); | 366 o.add("foo"); |
365 return o; | 367 return o; |
366 } | 368 } |
367 | 369 |
368 checkUnnamed270(core.List<core.String> o) { | 370 checkUnnamed1147(core.List<core.String> o) { |
369 unittest.expect(o, unittest.hasLength(2)); | 371 unittest.expect(o, unittest.hasLength(2)); |
370 unittest.expect(o[0], unittest.equals('foo')); | 372 unittest.expect(o[0], unittest.equals('foo')); |
371 unittest.expect(o[1], unittest.equals('foo')); | 373 unittest.expect(o[1], unittest.equals('foo')); |
372 } | 374 } |
373 | 375 |
374 core.int buildCounterJobConfigurationLink = 0; | 376 core.int buildCounterJobConfigurationLink = 0; |
375 buildJobConfigurationLink() { | 377 buildJobConfigurationLink() { |
376 var o = new api.JobConfigurationLink(); | 378 var o = new api.JobConfigurationLink(); |
377 buildCounterJobConfigurationLink++; | 379 buildCounterJobConfigurationLink++; |
378 if (buildCounterJobConfigurationLink < 3) { | 380 if (buildCounterJobConfigurationLink < 3) { |
379 o.createDisposition = "foo"; | 381 o.createDisposition = "foo"; |
380 o.destinationTable = buildTableReference(); | 382 o.destinationTable = buildTableReference(); |
381 o.sourceUri = buildUnnamed270(); | 383 o.sourceUri = buildUnnamed1147(); |
382 o.writeDisposition = "foo"; | 384 o.writeDisposition = "foo"; |
383 } | 385 } |
384 buildCounterJobConfigurationLink--; | 386 buildCounterJobConfigurationLink--; |
385 return o; | 387 return o; |
386 } | 388 } |
387 | 389 |
388 checkJobConfigurationLink(api.JobConfigurationLink o) { | 390 checkJobConfigurationLink(api.JobConfigurationLink o) { |
389 buildCounterJobConfigurationLink++; | 391 buildCounterJobConfigurationLink++; |
390 if (buildCounterJobConfigurationLink < 3) { | 392 if (buildCounterJobConfigurationLink < 3) { |
391 unittest.expect(o.createDisposition, unittest.equals('foo')); | 393 unittest.expect(o.createDisposition, unittest.equals('foo')); |
392 checkTableReference(o.destinationTable); | 394 checkTableReference(o.destinationTable); |
393 checkUnnamed270(o.sourceUri); | 395 checkUnnamed1147(o.sourceUri); |
394 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 396 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
395 } | 397 } |
396 buildCounterJobConfigurationLink--; | 398 buildCounterJobConfigurationLink--; |
397 } | 399 } |
398 | 400 |
399 buildUnnamed271() { | 401 buildUnnamed1148() { |
400 var o = new core.List<core.String>(); | 402 var o = new core.List<core.String>(); |
401 o.add("foo"); | 403 o.add("foo"); |
402 o.add("foo"); | 404 o.add("foo"); |
403 return o; | 405 return o; |
404 } | 406 } |
405 | 407 |
406 checkUnnamed271(core.List<core.String> o) { | 408 checkUnnamed1148(core.List<core.String> o) { |
407 unittest.expect(o, unittest.hasLength(2)); | 409 unittest.expect(o, unittest.hasLength(2)); |
408 unittest.expect(o[0], unittest.equals('foo')); | 410 unittest.expect(o[0], unittest.equals('foo')); |
409 unittest.expect(o[1], unittest.equals('foo')); | 411 unittest.expect(o[1], unittest.equals('foo')); |
410 } | 412 } |
411 | 413 |
412 core.int buildCounterJobConfigurationLoad = 0; | 414 core.int buildCounterJobConfigurationLoad = 0; |
413 buildJobConfigurationLoad() { | 415 buildJobConfigurationLoad() { |
414 var o = new api.JobConfigurationLoad(); | 416 var o = new api.JobConfigurationLoad(); |
415 buildCounterJobConfigurationLoad++; | 417 buildCounterJobConfigurationLoad++; |
416 if (buildCounterJobConfigurationLoad < 3) { | 418 if (buildCounterJobConfigurationLoad < 3) { |
417 o.allowJaggedRows = true; | 419 o.allowJaggedRows = true; |
418 o.allowQuotedNewlines = true; | 420 o.allowQuotedNewlines = true; |
419 o.createDisposition = "foo"; | 421 o.createDisposition = "foo"; |
420 o.destinationTable = buildTableReference(); | 422 o.destinationTable = buildTableReference(); |
421 o.encoding = "foo"; | 423 o.encoding = "foo"; |
422 o.fieldDelimiter = "foo"; | 424 o.fieldDelimiter = "foo"; |
423 o.ignoreUnknownValues = true; | 425 o.ignoreUnknownValues = true; |
424 o.maxBadRecords = 42; | 426 o.maxBadRecords = 42; |
425 o.quote = "foo"; | 427 o.quote = "foo"; |
426 o.schema = buildTableSchema(); | 428 o.schema = buildTableSchema(); |
427 o.schemaInline = "foo"; | 429 o.schemaInline = "foo"; |
428 o.schemaInlineFormat = "foo"; | 430 o.schemaInlineFormat = "foo"; |
429 o.skipLeadingRows = 42; | 431 o.skipLeadingRows = 42; |
430 o.sourceFormat = "foo"; | 432 o.sourceFormat = "foo"; |
431 o.sourceUris = buildUnnamed271(); | 433 o.sourceUris = buildUnnamed1148(); |
432 o.writeDisposition = "foo"; | 434 o.writeDisposition = "foo"; |
433 } | 435 } |
434 buildCounterJobConfigurationLoad--; | 436 buildCounterJobConfigurationLoad--; |
435 return o; | 437 return o; |
436 } | 438 } |
437 | 439 |
438 checkJobConfigurationLoad(api.JobConfigurationLoad o) { | 440 checkJobConfigurationLoad(api.JobConfigurationLoad o) { |
439 buildCounterJobConfigurationLoad++; | 441 buildCounterJobConfigurationLoad++; |
440 if (buildCounterJobConfigurationLoad < 3) { | 442 if (buildCounterJobConfigurationLoad < 3) { |
441 unittest.expect(o.allowJaggedRows, unittest.isTrue); | 443 unittest.expect(o.allowJaggedRows, unittest.isTrue); |
442 unittest.expect(o.allowQuotedNewlines, unittest.isTrue); | 444 unittest.expect(o.allowQuotedNewlines, unittest.isTrue); |
443 unittest.expect(o.createDisposition, unittest.equals('foo')); | 445 unittest.expect(o.createDisposition, unittest.equals('foo')); |
444 checkTableReference(o.destinationTable); | 446 checkTableReference(o.destinationTable); |
445 unittest.expect(o.encoding, unittest.equals('foo')); | 447 unittest.expect(o.encoding, unittest.equals('foo')); |
446 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); | 448 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); |
447 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); | 449 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); |
448 unittest.expect(o.maxBadRecords, unittest.equals(42)); | 450 unittest.expect(o.maxBadRecords, unittest.equals(42)); |
449 unittest.expect(o.quote, unittest.equals('foo')); | 451 unittest.expect(o.quote, unittest.equals('foo')); |
450 checkTableSchema(o.schema); | 452 checkTableSchema(o.schema); |
451 unittest.expect(o.schemaInline, unittest.equals('foo')); | 453 unittest.expect(o.schemaInline, unittest.equals('foo')); |
452 unittest.expect(o.schemaInlineFormat, unittest.equals('foo')); | 454 unittest.expect(o.schemaInlineFormat, unittest.equals('foo')); |
453 unittest.expect(o.skipLeadingRows, unittest.equals(42)); | 455 unittest.expect(o.skipLeadingRows, unittest.equals(42)); |
454 unittest.expect(o.sourceFormat, unittest.equals('foo')); | 456 unittest.expect(o.sourceFormat, unittest.equals('foo')); |
455 checkUnnamed271(o.sourceUris); | 457 checkUnnamed1148(o.sourceUris); |
456 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 458 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
457 } | 459 } |
458 buildCounterJobConfigurationLoad--; | 460 buildCounterJobConfigurationLoad--; |
459 } | 461 } |
460 | 462 |
461 core.int buildCounterJobConfigurationQuery = 0; | 463 core.int buildCounterJobConfigurationQuery = 0; |
462 buildJobConfigurationQuery() { | 464 buildJobConfigurationQuery() { |
463 var o = new api.JobConfigurationQuery(); | 465 var o = new api.JobConfigurationQuery(); |
464 buildCounterJobConfigurationQuery++; | 466 buildCounterJobConfigurationQuery++; |
465 if (buildCounterJobConfigurationQuery < 3) { | 467 if (buildCounterJobConfigurationQuery < 3) { |
(...skipping 22 matching lines...) Expand all Loading... |
488 unittest.expect(o.flattenResults, unittest.isTrue); | 490 unittest.expect(o.flattenResults, unittest.isTrue); |
489 unittest.expect(o.preserveNulls, unittest.isTrue); | 491 unittest.expect(o.preserveNulls, unittest.isTrue); |
490 unittest.expect(o.priority, unittest.equals('foo')); | 492 unittest.expect(o.priority, unittest.equals('foo')); |
491 unittest.expect(o.query, unittest.equals('foo')); | 493 unittest.expect(o.query, unittest.equals('foo')); |
492 unittest.expect(o.useQueryCache, unittest.isTrue); | 494 unittest.expect(o.useQueryCache, unittest.isTrue); |
493 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 495 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
494 } | 496 } |
495 buildCounterJobConfigurationQuery--; | 497 buildCounterJobConfigurationQuery--; |
496 } | 498 } |
497 | 499 |
498 buildUnnamed272() { | 500 buildUnnamed1149() { |
499 var o = new core.List<api.TableReference>(); | 501 var o = new core.List<api.TableReference>(); |
500 o.add(buildTableReference()); | 502 o.add(buildTableReference()); |
501 o.add(buildTableReference()); | 503 o.add(buildTableReference()); |
502 return o; | 504 return o; |
503 } | 505 } |
504 | 506 |
505 checkUnnamed272(core.List<api.TableReference> o) { | 507 checkUnnamed1149(core.List<api.TableReference> o) { |
506 unittest.expect(o, unittest.hasLength(2)); | 508 unittest.expect(o, unittest.hasLength(2)); |
507 checkTableReference(o[0]); | 509 checkTableReference(o[0]); |
508 checkTableReference(o[1]); | 510 checkTableReference(o[1]); |
509 } | 511 } |
510 | 512 |
511 core.int buildCounterJobConfigurationTableCopy = 0; | 513 core.int buildCounterJobConfigurationTableCopy = 0; |
512 buildJobConfigurationTableCopy() { | 514 buildJobConfigurationTableCopy() { |
513 var o = new api.JobConfigurationTableCopy(); | 515 var o = new api.JobConfigurationTableCopy(); |
514 buildCounterJobConfigurationTableCopy++; | 516 buildCounterJobConfigurationTableCopy++; |
515 if (buildCounterJobConfigurationTableCopy < 3) { | 517 if (buildCounterJobConfigurationTableCopy < 3) { |
516 o.createDisposition = "foo"; | 518 o.createDisposition = "foo"; |
517 o.destinationTable = buildTableReference(); | 519 o.destinationTable = buildTableReference(); |
518 o.sourceTable = buildTableReference(); | 520 o.sourceTable = buildTableReference(); |
519 o.sourceTables = buildUnnamed272(); | 521 o.sourceTables = buildUnnamed1149(); |
520 o.writeDisposition = "foo"; | 522 o.writeDisposition = "foo"; |
521 } | 523 } |
522 buildCounterJobConfigurationTableCopy--; | 524 buildCounterJobConfigurationTableCopy--; |
523 return o; | 525 return o; |
524 } | 526 } |
525 | 527 |
526 checkJobConfigurationTableCopy(api.JobConfigurationTableCopy o) { | 528 checkJobConfigurationTableCopy(api.JobConfigurationTableCopy o) { |
527 buildCounterJobConfigurationTableCopy++; | 529 buildCounterJobConfigurationTableCopy++; |
528 if (buildCounterJobConfigurationTableCopy < 3) { | 530 if (buildCounterJobConfigurationTableCopy < 3) { |
529 unittest.expect(o.createDisposition, unittest.equals('foo')); | 531 unittest.expect(o.createDisposition, unittest.equals('foo')); |
530 checkTableReference(o.destinationTable); | 532 checkTableReference(o.destinationTable); |
531 checkTableReference(o.sourceTable); | 533 checkTableReference(o.sourceTable); |
532 checkUnnamed272(o.sourceTables); | 534 checkUnnamed1149(o.sourceTables); |
533 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 535 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
534 } | 536 } |
535 buildCounterJobConfigurationTableCopy--; | 537 buildCounterJobConfigurationTableCopy--; |
536 } | 538 } |
537 | 539 |
538 core.int buildCounterJobListJobs = 0; | 540 core.int buildCounterJobListJobs = 0; |
539 buildJobListJobs() { | 541 buildJobListJobs() { |
540 var o = new api.JobListJobs(); | 542 var o = new api.JobListJobs(); |
541 buildCounterJobListJobs++; | 543 buildCounterJobListJobs++; |
542 if (buildCounterJobListJobs < 3) { | 544 if (buildCounterJobListJobs < 3) { |
(...skipping 20 matching lines...) Expand all Loading... |
563 checkJobReference(o.jobReference); | 565 checkJobReference(o.jobReference); |
564 unittest.expect(o.kind, unittest.equals('foo')); | 566 unittest.expect(o.kind, unittest.equals('foo')); |
565 unittest.expect(o.state, unittest.equals('foo')); | 567 unittest.expect(o.state, unittest.equals('foo')); |
566 checkJobStatistics(o.statistics); | 568 checkJobStatistics(o.statistics); |
567 checkJobStatus(o.status); | 569 checkJobStatus(o.status); |
568 unittest.expect(o.userEmail, unittest.equals('foo')); | 570 unittest.expect(o.userEmail, unittest.equals('foo')); |
569 } | 571 } |
570 buildCounterJobListJobs--; | 572 buildCounterJobListJobs--; |
571 } | 573 } |
572 | 574 |
573 buildUnnamed273() { | 575 buildUnnamed1150() { |
574 var o = new core.List<api.JobListJobs>(); | 576 var o = new core.List<api.JobListJobs>(); |
575 o.add(buildJobListJobs()); | 577 o.add(buildJobListJobs()); |
576 o.add(buildJobListJobs()); | 578 o.add(buildJobListJobs()); |
577 return o; | 579 return o; |
578 } | 580 } |
579 | 581 |
580 checkUnnamed273(core.List<api.JobListJobs> o) { | 582 checkUnnamed1150(core.List<api.JobListJobs> o) { |
581 unittest.expect(o, unittest.hasLength(2)); | 583 unittest.expect(o, unittest.hasLength(2)); |
582 checkJobListJobs(o[0]); | 584 checkJobListJobs(o[0]); |
583 checkJobListJobs(o[1]); | 585 checkJobListJobs(o[1]); |
584 } | 586 } |
585 | 587 |
586 core.int buildCounterJobList = 0; | 588 core.int buildCounterJobList = 0; |
587 buildJobList() { | 589 buildJobList() { |
588 var o = new api.JobList(); | 590 var o = new api.JobList(); |
589 buildCounterJobList++; | 591 buildCounterJobList++; |
590 if (buildCounterJobList < 3) { | 592 if (buildCounterJobList < 3) { |
591 o.etag = "foo"; | 593 o.etag = "foo"; |
592 o.jobs = buildUnnamed273(); | 594 o.jobs = buildUnnamed1150(); |
593 o.kind = "foo"; | 595 o.kind = "foo"; |
594 o.nextPageToken = "foo"; | 596 o.nextPageToken = "foo"; |
595 o.totalItems = 42; | 597 o.totalItems = 42; |
596 } | 598 } |
597 buildCounterJobList--; | 599 buildCounterJobList--; |
598 return o; | 600 return o; |
599 } | 601 } |
600 | 602 |
601 checkJobList(api.JobList o) { | 603 checkJobList(api.JobList o) { |
602 buildCounterJobList++; | 604 buildCounterJobList++; |
603 if (buildCounterJobList < 3) { | 605 if (buildCounterJobList < 3) { |
604 unittest.expect(o.etag, unittest.equals('foo')); | 606 unittest.expect(o.etag, unittest.equals('foo')); |
605 checkUnnamed273(o.jobs); | 607 checkUnnamed1150(o.jobs); |
606 unittest.expect(o.kind, unittest.equals('foo')); | 608 unittest.expect(o.kind, unittest.equals('foo')); |
607 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 609 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
608 unittest.expect(o.totalItems, unittest.equals(42)); | 610 unittest.expect(o.totalItems, unittest.equals(42)); |
609 } | 611 } |
610 buildCounterJobList--; | 612 buildCounterJobList--; |
611 } | 613 } |
612 | 614 |
613 core.int buildCounterJobReference = 0; | 615 core.int buildCounterJobReference = 0; |
614 buildJobReference() { | 616 buildJobReference() { |
615 var o = new api.JobReference(); | 617 var o = new api.JobReference(); |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 buildCounterJobStatistics3++; | 701 buildCounterJobStatistics3++; |
700 if (buildCounterJobStatistics3 < 3) { | 702 if (buildCounterJobStatistics3 < 3) { |
701 unittest.expect(o.inputFileBytes, unittest.equals('foo')); | 703 unittest.expect(o.inputFileBytes, unittest.equals('foo')); |
702 unittest.expect(o.inputFiles, unittest.equals('foo')); | 704 unittest.expect(o.inputFiles, unittest.equals('foo')); |
703 unittest.expect(o.outputBytes, unittest.equals('foo')); | 705 unittest.expect(o.outputBytes, unittest.equals('foo')); |
704 unittest.expect(o.outputRows, unittest.equals('foo')); | 706 unittest.expect(o.outputRows, unittest.equals('foo')); |
705 } | 707 } |
706 buildCounterJobStatistics3--; | 708 buildCounterJobStatistics3--; |
707 } | 709 } |
708 | 710 |
709 buildUnnamed274() { | 711 buildUnnamed1151() { |
710 var o = new core.List<api.ErrorProto>(); | 712 var o = new core.List<api.ErrorProto>(); |
711 o.add(buildErrorProto()); | 713 o.add(buildErrorProto()); |
712 o.add(buildErrorProto()); | 714 o.add(buildErrorProto()); |
713 return o; | 715 return o; |
714 } | 716 } |
715 | 717 |
716 checkUnnamed274(core.List<api.ErrorProto> o) { | 718 checkUnnamed1151(core.List<api.ErrorProto> o) { |
717 unittest.expect(o, unittest.hasLength(2)); | 719 unittest.expect(o, unittest.hasLength(2)); |
718 checkErrorProto(o[0]); | 720 checkErrorProto(o[0]); |
719 checkErrorProto(o[1]); | 721 checkErrorProto(o[1]); |
720 } | 722 } |
721 | 723 |
722 core.int buildCounterJobStatus = 0; | 724 core.int buildCounterJobStatus = 0; |
723 buildJobStatus() { | 725 buildJobStatus() { |
724 var o = new api.JobStatus(); | 726 var o = new api.JobStatus(); |
725 buildCounterJobStatus++; | 727 buildCounterJobStatus++; |
726 if (buildCounterJobStatus < 3) { | 728 if (buildCounterJobStatus < 3) { |
727 o.errorResult = buildErrorProto(); | 729 o.errorResult = buildErrorProto(); |
728 o.errors = buildUnnamed274(); | 730 o.errors = buildUnnamed1151(); |
729 o.state = "foo"; | 731 o.state = "foo"; |
730 } | 732 } |
731 buildCounterJobStatus--; | 733 buildCounterJobStatus--; |
732 return o; | 734 return o; |
733 } | 735 } |
734 | 736 |
735 checkJobStatus(api.JobStatus o) { | 737 checkJobStatus(api.JobStatus o) { |
736 buildCounterJobStatus++; | 738 buildCounterJobStatus++; |
737 if (buildCounterJobStatus < 3) { | 739 if (buildCounterJobStatus < 3) { |
738 checkErrorProto(o.errorResult); | 740 checkErrorProto(o.errorResult); |
739 checkUnnamed274(o.errors); | 741 checkUnnamed1151(o.errors); |
740 unittest.expect(o.state, unittest.equals('foo')); | 742 unittest.expect(o.state, unittest.equals('foo')); |
741 } | 743 } |
742 buildCounterJobStatus--; | 744 buildCounterJobStatus--; |
743 } | 745 } |
744 | 746 |
745 buildJsonObject() { | 747 buildJsonObject() { |
746 var o = new api.JsonObject(); | 748 var o = new api.JsonObject(); |
747 o["a"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 749 o["a"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
748 o["b"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 750 o["b"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
749 return o; | 751 return o; |
(...skipping 25 matching lines...) Expand all Loading... |
775 if (buildCounterProjectListProjects < 3) { | 777 if (buildCounterProjectListProjects < 3) { |
776 unittest.expect(o.friendlyName, unittest.equals('foo')); | 778 unittest.expect(o.friendlyName, unittest.equals('foo')); |
777 unittest.expect(o.id, unittest.equals('foo')); | 779 unittest.expect(o.id, unittest.equals('foo')); |
778 unittest.expect(o.kind, unittest.equals('foo')); | 780 unittest.expect(o.kind, unittest.equals('foo')); |
779 unittest.expect(o.numericId, unittest.equals('foo')); | 781 unittest.expect(o.numericId, unittest.equals('foo')); |
780 checkProjectReference(o.projectReference); | 782 checkProjectReference(o.projectReference); |
781 } | 783 } |
782 buildCounterProjectListProjects--; | 784 buildCounterProjectListProjects--; |
783 } | 785 } |
784 | 786 |
785 buildUnnamed275() { | 787 buildUnnamed1152() { |
786 var o = new core.List<api.ProjectListProjects>(); | 788 var o = new core.List<api.ProjectListProjects>(); |
787 o.add(buildProjectListProjects()); | 789 o.add(buildProjectListProjects()); |
788 o.add(buildProjectListProjects()); | 790 o.add(buildProjectListProjects()); |
789 return o; | 791 return o; |
790 } | 792 } |
791 | 793 |
792 checkUnnamed275(core.List<api.ProjectListProjects> o) { | 794 checkUnnamed1152(core.List<api.ProjectListProjects> o) { |
793 unittest.expect(o, unittest.hasLength(2)); | 795 unittest.expect(o, unittest.hasLength(2)); |
794 checkProjectListProjects(o[0]); | 796 checkProjectListProjects(o[0]); |
795 checkProjectListProjects(o[1]); | 797 checkProjectListProjects(o[1]); |
796 } | 798 } |
797 | 799 |
798 core.int buildCounterProjectList = 0; | 800 core.int buildCounterProjectList = 0; |
799 buildProjectList() { | 801 buildProjectList() { |
800 var o = new api.ProjectList(); | 802 var o = new api.ProjectList(); |
801 buildCounterProjectList++; | 803 buildCounterProjectList++; |
802 if (buildCounterProjectList < 3) { | 804 if (buildCounterProjectList < 3) { |
803 o.etag = "foo"; | 805 o.etag = "foo"; |
804 o.kind = "foo"; | 806 o.kind = "foo"; |
805 o.nextPageToken = "foo"; | 807 o.nextPageToken = "foo"; |
806 o.projects = buildUnnamed275(); | 808 o.projects = buildUnnamed1152(); |
807 o.totalItems = 42; | 809 o.totalItems = 42; |
808 } | 810 } |
809 buildCounterProjectList--; | 811 buildCounterProjectList--; |
810 return o; | 812 return o; |
811 } | 813 } |
812 | 814 |
813 checkProjectList(api.ProjectList o) { | 815 checkProjectList(api.ProjectList o) { |
814 buildCounterProjectList++; | 816 buildCounterProjectList++; |
815 if (buildCounterProjectList < 3) { | 817 if (buildCounterProjectList < 3) { |
816 unittest.expect(o.etag, unittest.equals('foo')); | 818 unittest.expect(o.etag, unittest.equals('foo')); |
817 unittest.expect(o.kind, unittest.equals('foo')); | 819 unittest.expect(o.kind, unittest.equals('foo')); |
818 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 820 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
819 checkUnnamed275(o.projects); | 821 checkUnnamed1152(o.projects); |
820 unittest.expect(o.totalItems, unittest.equals(42)); | 822 unittest.expect(o.totalItems, unittest.equals(42)); |
821 } | 823 } |
822 buildCounterProjectList--; | 824 buildCounterProjectList--; |
823 } | 825 } |
824 | 826 |
825 core.int buildCounterProjectReference = 0; | 827 core.int buildCounterProjectReference = 0; |
826 buildProjectReference() { | 828 buildProjectReference() { |
827 var o = new api.ProjectReference(); | 829 var o = new api.ProjectReference(); |
828 buildCounterProjectReference++; | 830 buildCounterProjectReference++; |
829 if (buildCounterProjectReference < 3) { | 831 if (buildCounterProjectReference < 3) { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
867 unittest.expect(o.kind, unittest.equals('foo')); | 869 unittest.expect(o.kind, unittest.equals('foo')); |
868 unittest.expect(o.maxResults, unittest.equals(42)); | 870 unittest.expect(o.maxResults, unittest.equals(42)); |
869 unittest.expect(o.preserveNulls, unittest.isTrue); | 871 unittest.expect(o.preserveNulls, unittest.isTrue); |
870 unittest.expect(o.query, unittest.equals('foo')); | 872 unittest.expect(o.query, unittest.equals('foo')); |
871 unittest.expect(o.timeoutMs, unittest.equals(42)); | 873 unittest.expect(o.timeoutMs, unittest.equals(42)); |
872 unittest.expect(o.useQueryCache, unittest.isTrue); | 874 unittest.expect(o.useQueryCache, unittest.isTrue); |
873 } | 875 } |
874 buildCounterQueryRequest--; | 876 buildCounterQueryRequest--; |
875 } | 877 } |
876 | 878 |
877 buildUnnamed276() { | 879 buildUnnamed1153() { |
878 var o = new core.List<api.TableRow>(); | 880 var o = new core.List<api.TableRow>(); |
879 o.add(buildTableRow()); | 881 o.add(buildTableRow()); |
880 o.add(buildTableRow()); | 882 o.add(buildTableRow()); |
881 return o; | 883 return o; |
882 } | 884 } |
883 | 885 |
884 checkUnnamed276(core.List<api.TableRow> o) { | 886 checkUnnamed1153(core.List<api.TableRow> o) { |
885 unittest.expect(o, unittest.hasLength(2)); | 887 unittest.expect(o, unittest.hasLength(2)); |
886 checkTableRow(o[0]); | 888 checkTableRow(o[0]); |
887 checkTableRow(o[1]); | 889 checkTableRow(o[1]); |
888 } | 890 } |
889 | 891 |
890 core.int buildCounterQueryResponse = 0; | 892 core.int buildCounterQueryResponse = 0; |
891 buildQueryResponse() { | 893 buildQueryResponse() { |
892 var o = new api.QueryResponse(); | 894 var o = new api.QueryResponse(); |
893 buildCounterQueryResponse++; | 895 buildCounterQueryResponse++; |
894 if (buildCounterQueryResponse < 3) { | 896 if (buildCounterQueryResponse < 3) { |
895 o.cacheHit = true; | 897 o.cacheHit = true; |
896 o.jobComplete = true; | 898 o.jobComplete = true; |
897 o.jobReference = buildJobReference(); | 899 o.jobReference = buildJobReference(); |
898 o.kind = "foo"; | 900 o.kind = "foo"; |
899 o.pageToken = "foo"; | 901 o.pageToken = "foo"; |
900 o.rows = buildUnnamed276(); | 902 o.rows = buildUnnamed1153(); |
901 o.schema = buildTableSchema(); | 903 o.schema = buildTableSchema(); |
902 o.totalBytesProcessed = "foo"; | 904 o.totalBytesProcessed = "foo"; |
903 o.totalRows = "foo"; | 905 o.totalRows = "foo"; |
904 } | 906 } |
905 buildCounterQueryResponse--; | 907 buildCounterQueryResponse--; |
906 return o; | 908 return o; |
907 } | 909 } |
908 | 910 |
909 checkQueryResponse(api.QueryResponse o) { | 911 checkQueryResponse(api.QueryResponse o) { |
910 buildCounterQueryResponse++; | 912 buildCounterQueryResponse++; |
911 if (buildCounterQueryResponse < 3) { | 913 if (buildCounterQueryResponse < 3) { |
912 unittest.expect(o.cacheHit, unittest.isTrue); | 914 unittest.expect(o.cacheHit, unittest.isTrue); |
913 unittest.expect(o.jobComplete, unittest.isTrue); | 915 unittest.expect(o.jobComplete, unittest.isTrue); |
914 checkJobReference(o.jobReference); | 916 checkJobReference(o.jobReference); |
915 unittest.expect(o.kind, unittest.equals('foo')); | 917 unittest.expect(o.kind, unittest.equals('foo')); |
916 unittest.expect(o.pageToken, unittest.equals('foo')); | 918 unittest.expect(o.pageToken, unittest.equals('foo')); |
917 checkUnnamed276(o.rows); | 919 checkUnnamed1153(o.rows); |
918 checkTableSchema(o.schema); | 920 checkTableSchema(o.schema); |
919 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); | 921 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); |
920 unittest.expect(o.totalRows, unittest.equals('foo')); | 922 unittest.expect(o.totalRows, unittest.equals('foo')); |
921 } | 923 } |
922 buildCounterQueryResponse--; | 924 buildCounterQueryResponse--; |
923 } | 925 } |
924 | 926 |
925 core.int buildCounterTable = 0; | 927 core.int buildCounterTable = 0; |
926 buildTable() { | 928 buildTable() { |
927 var o = new api.Table(); | 929 var o = new api.Table(); |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1002 | 1004 |
1003 checkTableDataInsertAllRequestRows(api.TableDataInsertAllRequestRows o) { | 1005 checkTableDataInsertAllRequestRows(api.TableDataInsertAllRequestRows o) { |
1004 buildCounterTableDataInsertAllRequestRows++; | 1006 buildCounterTableDataInsertAllRequestRows++; |
1005 if (buildCounterTableDataInsertAllRequestRows < 3) { | 1007 if (buildCounterTableDataInsertAllRequestRows < 3) { |
1006 unittest.expect(o.insertId, unittest.equals('foo')); | 1008 unittest.expect(o.insertId, unittest.equals('foo')); |
1007 checkJsonObject(o.json); | 1009 checkJsonObject(o.json); |
1008 } | 1010 } |
1009 buildCounterTableDataInsertAllRequestRows--; | 1011 buildCounterTableDataInsertAllRequestRows--; |
1010 } | 1012 } |
1011 | 1013 |
1012 buildUnnamed277() { | 1014 buildUnnamed1154() { |
1013 var o = new core.List<api.TableDataInsertAllRequestRows>(); | 1015 var o = new core.List<api.TableDataInsertAllRequestRows>(); |
1014 o.add(buildTableDataInsertAllRequestRows()); | 1016 o.add(buildTableDataInsertAllRequestRows()); |
1015 o.add(buildTableDataInsertAllRequestRows()); | 1017 o.add(buildTableDataInsertAllRequestRows()); |
1016 return o; | 1018 return o; |
1017 } | 1019 } |
1018 | 1020 |
1019 checkUnnamed277(core.List<api.TableDataInsertAllRequestRows> o) { | 1021 checkUnnamed1154(core.List<api.TableDataInsertAllRequestRows> o) { |
1020 unittest.expect(o, unittest.hasLength(2)); | 1022 unittest.expect(o, unittest.hasLength(2)); |
1021 checkTableDataInsertAllRequestRows(o[0]); | 1023 checkTableDataInsertAllRequestRows(o[0]); |
1022 checkTableDataInsertAllRequestRows(o[1]); | 1024 checkTableDataInsertAllRequestRows(o[1]); |
1023 } | 1025 } |
1024 | 1026 |
1025 core.int buildCounterTableDataInsertAllRequest = 0; | 1027 core.int buildCounterTableDataInsertAllRequest = 0; |
1026 buildTableDataInsertAllRequest() { | 1028 buildTableDataInsertAllRequest() { |
1027 var o = new api.TableDataInsertAllRequest(); | 1029 var o = new api.TableDataInsertAllRequest(); |
1028 buildCounterTableDataInsertAllRequest++; | 1030 buildCounterTableDataInsertAllRequest++; |
1029 if (buildCounterTableDataInsertAllRequest < 3) { | 1031 if (buildCounterTableDataInsertAllRequest < 3) { |
1030 o.kind = "foo"; | 1032 o.kind = "foo"; |
1031 o.rows = buildUnnamed277(); | 1033 o.rows = buildUnnamed1154(); |
1032 } | 1034 } |
1033 buildCounterTableDataInsertAllRequest--; | 1035 buildCounterTableDataInsertAllRequest--; |
1034 return o; | 1036 return o; |
1035 } | 1037 } |
1036 | 1038 |
1037 checkTableDataInsertAllRequest(api.TableDataInsertAllRequest o) { | 1039 checkTableDataInsertAllRequest(api.TableDataInsertAllRequest o) { |
1038 buildCounterTableDataInsertAllRequest++; | 1040 buildCounterTableDataInsertAllRequest++; |
1039 if (buildCounterTableDataInsertAllRequest < 3) { | 1041 if (buildCounterTableDataInsertAllRequest < 3) { |
1040 unittest.expect(o.kind, unittest.equals('foo')); | 1042 unittest.expect(o.kind, unittest.equals('foo')); |
1041 checkUnnamed277(o.rows); | 1043 checkUnnamed1154(o.rows); |
1042 } | 1044 } |
1043 buildCounterTableDataInsertAllRequest--; | 1045 buildCounterTableDataInsertAllRequest--; |
1044 } | 1046 } |
1045 | 1047 |
1046 buildUnnamed278() { | 1048 buildUnnamed1155() { |
1047 var o = new core.List<api.ErrorProto>(); | 1049 var o = new core.List<api.ErrorProto>(); |
1048 o.add(buildErrorProto()); | 1050 o.add(buildErrorProto()); |
1049 o.add(buildErrorProto()); | 1051 o.add(buildErrorProto()); |
1050 return o; | 1052 return o; |
1051 } | 1053 } |
1052 | 1054 |
1053 checkUnnamed278(core.List<api.ErrorProto> o) { | 1055 checkUnnamed1155(core.List<api.ErrorProto> o) { |
1054 unittest.expect(o, unittest.hasLength(2)); | 1056 unittest.expect(o, unittest.hasLength(2)); |
1055 checkErrorProto(o[0]); | 1057 checkErrorProto(o[0]); |
1056 checkErrorProto(o[1]); | 1058 checkErrorProto(o[1]); |
1057 } | 1059 } |
1058 | 1060 |
1059 core.int buildCounterTableDataInsertAllResponseInsertErrors = 0; | 1061 core.int buildCounterTableDataInsertAllResponseInsertErrors = 0; |
1060 buildTableDataInsertAllResponseInsertErrors() { | 1062 buildTableDataInsertAllResponseInsertErrors() { |
1061 var o = new api.TableDataInsertAllResponseInsertErrors(); | 1063 var o = new api.TableDataInsertAllResponseInsertErrors(); |
1062 buildCounterTableDataInsertAllResponseInsertErrors++; | 1064 buildCounterTableDataInsertAllResponseInsertErrors++; |
1063 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { | 1065 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { |
1064 o.errors = buildUnnamed278(); | 1066 o.errors = buildUnnamed1155(); |
1065 o.index = 42; | 1067 o.index = 42; |
1066 } | 1068 } |
1067 buildCounterTableDataInsertAllResponseInsertErrors--; | 1069 buildCounterTableDataInsertAllResponseInsertErrors--; |
1068 return o; | 1070 return o; |
1069 } | 1071 } |
1070 | 1072 |
1071 checkTableDataInsertAllResponseInsertErrors(api.TableDataInsertAllResponseInsert
Errors o) { | 1073 checkTableDataInsertAllResponseInsertErrors(api.TableDataInsertAllResponseInsert
Errors o) { |
1072 buildCounterTableDataInsertAllResponseInsertErrors++; | 1074 buildCounterTableDataInsertAllResponseInsertErrors++; |
1073 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { | 1075 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { |
1074 checkUnnamed278(o.errors); | 1076 checkUnnamed1155(o.errors); |
1075 unittest.expect(o.index, unittest.equals(42)); | 1077 unittest.expect(o.index, unittest.equals(42)); |
1076 } | 1078 } |
1077 buildCounterTableDataInsertAllResponseInsertErrors--; | 1079 buildCounterTableDataInsertAllResponseInsertErrors--; |
1078 } | 1080 } |
1079 | 1081 |
1080 buildUnnamed279() { | 1082 buildUnnamed1156() { |
1081 var o = new core.List<api.TableDataInsertAllResponseInsertErrors>(); | 1083 var o = new core.List<api.TableDataInsertAllResponseInsertErrors>(); |
1082 o.add(buildTableDataInsertAllResponseInsertErrors()); | 1084 o.add(buildTableDataInsertAllResponseInsertErrors()); |
1083 o.add(buildTableDataInsertAllResponseInsertErrors()); | 1085 o.add(buildTableDataInsertAllResponseInsertErrors()); |
1084 return o; | 1086 return o; |
1085 } | 1087 } |
1086 | 1088 |
1087 checkUnnamed279(core.List<api.TableDataInsertAllResponseInsertErrors> o) { | 1089 checkUnnamed1156(core.List<api.TableDataInsertAllResponseInsertErrors> o) { |
1088 unittest.expect(o, unittest.hasLength(2)); | 1090 unittest.expect(o, unittest.hasLength(2)); |
1089 checkTableDataInsertAllResponseInsertErrors(o[0]); | 1091 checkTableDataInsertAllResponseInsertErrors(o[0]); |
1090 checkTableDataInsertAllResponseInsertErrors(o[1]); | 1092 checkTableDataInsertAllResponseInsertErrors(o[1]); |
1091 } | 1093 } |
1092 | 1094 |
1093 core.int buildCounterTableDataInsertAllResponse = 0; | 1095 core.int buildCounterTableDataInsertAllResponse = 0; |
1094 buildTableDataInsertAllResponse() { | 1096 buildTableDataInsertAllResponse() { |
1095 var o = new api.TableDataInsertAllResponse(); | 1097 var o = new api.TableDataInsertAllResponse(); |
1096 buildCounterTableDataInsertAllResponse++; | 1098 buildCounterTableDataInsertAllResponse++; |
1097 if (buildCounterTableDataInsertAllResponse < 3) { | 1099 if (buildCounterTableDataInsertAllResponse < 3) { |
1098 o.insertErrors = buildUnnamed279(); | 1100 o.insertErrors = buildUnnamed1156(); |
1099 o.kind = "foo"; | 1101 o.kind = "foo"; |
1100 } | 1102 } |
1101 buildCounterTableDataInsertAllResponse--; | 1103 buildCounterTableDataInsertAllResponse--; |
1102 return o; | 1104 return o; |
1103 } | 1105 } |
1104 | 1106 |
1105 checkTableDataInsertAllResponse(api.TableDataInsertAllResponse o) { | 1107 checkTableDataInsertAllResponse(api.TableDataInsertAllResponse o) { |
1106 buildCounterTableDataInsertAllResponse++; | 1108 buildCounterTableDataInsertAllResponse++; |
1107 if (buildCounterTableDataInsertAllResponse < 3) { | 1109 if (buildCounterTableDataInsertAllResponse < 3) { |
1108 checkUnnamed279(o.insertErrors); | 1110 checkUnnamed1156(o.insertErrors); |
1109 unittest.expect(o.kind, unittest.equals('foo')); | 1111 unittest.expect(o.kind, unittest.equals('foo')); |
1110 } | 1112 } |
1111 buildCounterTableDataInsertAllResponse--; | 1113 buildCounterTableDataInsertAllResponse--; |
1112 } | 1114 } |
1113 | 1115 |
1114 buildUnnamed280() { | 1116 buildUnnamed1157() { |
1115 var o = new core.List<api.TableRow>(); | 1117 var o = new core.List<api.TableRow>(); |
1116 o.add(buildTableRow()); | 1118 o.add(buildTableRow()); |
1117 o.add(buildTableRow()); | 1119 o.add(buildTableRow()); |
1118 return o; | 1120 return o; |
1119 } | 1121 } |
1120 | 1122 |
1121 checkUnnamed280(core.List<api.TableRow> o) { | 1123 checkUnnamed1157(core.List<api.TableRow> o) { |
1122 unittest.expect(o, unittest.hasLength(2)); | 1124 unittest.expect(o, unittest.hasLength(2)); |
1123 checkTableRow(o[0]); | 1125 checkTableRow(o[0]); |
1124 checkTableRow(o[1]); | 1126 checkTableRow(o[1]); |
1125 } | 1127 } |
1126 | 1128 |
1127 core.int buildCounterTableDataList = 0; | 1129 core.int buildCounterTableDataList = 0; |
1128 buildTableDataList() { | 1130 buildTableDataList() { |
1129 var o = new api.TableDataList(); | 1131 var o = new api.TableDataList(); |
1130 buildCounterTableDataList++; | 1132 buildCounterTableDataList++; |
1131 if (buildCounterTableDataList < 3) { | 1133 if (buildCounterTableDataList < 3) { |
1132 o.etag = "foo"; | 1134 o.etag = "foo"; |
1133 o.kind = "foo"; | 1135 o.kind = "foo"; |
1134 o.pageToken = "foo"; | 1136 o.pageToken = "foo"; |
1135 o.rows = buildUnnamed280(); | 1137 o.rows = buildUnnamed1157(); |
1136 o.totalRows = "foo"; | 1138 o.totalRows = "foo"; |
1137 } | 1139 } |
1138 buildCounterTableDataList--; | 1140 buildCounterTableDataList--; |
1139 return o; | 1141 return o; |
1140 } | 1142 } |
1141 | 1143 |
1142 checkTableDataList(api.TableDataList o) { | 1144 checkTableDataList(api.TableDataList o) { |
1143 buildCounterTableDataList++; | 1145 buildCounterTableDataList++; |
1144 if (buildCounterTableDataList < 3) { | 1146 if (buildCounterTableDataList < 3) { |
1145 unittest.expect(o.etag, unittest.equals('foo')); | 1147 unittest.expect(o.etag, unittest.equals('foo')); |
1146 unittest.expect(o.kind, unittest.equals('foo')); | 1148 unittest.expect(o.kind, unittest.equals('foo')); |
1147 unittest.expect(o.pageToken, unittest.equals('foo')); | 1149 unittest.expect(o.pageToken, unittest.equals('foo')); |
1148 checkUnnamed280(o.rows); | 1150 checkUnnamed1157(o.rows); |
1149 unittest.expect(o.totalRows, unittest.equals('foo')); | 1151 unittest.expect(o.totalRows, unittest.equals('foo')); |
1150 } | 1152 } |
1151 buildCounterTableDataList--; | 1153 buildCounterTableDataList--; |
1152 } | 1154 } |
1153 | 1155 |
1154 buildUnnamed281() { | 1156 buildUnnamed1158() { |
1155 var o = new core.List<api.TableFieldSchema>(); | 1157 var o = new core.List<api.TableFieldSchema>(); |
1156 o.add(buildTableFieldSchema()); | 1158 o.add(buildTableFieldSchema()); |
1157 o.add(buildTableFieldSchema()); | 1159 o.add(buildTableFieldSchema()); |
1158 return o; | 1160 return o; |
1159 } | 1161 } |
1160 | 1162 |
1161 checkUnnamed281(core.List<api.TableFieldSchema> o) { | 1163 checkUnnamed1158(core.List<api.TableFieldSchema> o) { |
1162 unittest.expect(o, unittest.hasLength(2)); | 1164 unittest.expect(o, unittest.hasLength(2)); |
1163 checkTableFieldSchema(o[0]); | 1165 checkTableFieldSchema(o[0]); |
1164 checkTableFieldSchema(o[1]); | 1166 checkTableFieldSchema(o[1]); |
1165 } | 1167 } |
1166 | 1168 |
1167 core.int buildCounterTableFieldSchema = 0; | 1169 core.int buildCounterTableFieldSchema = 0; |
1168 buildTableFieldSchema() { | 1170 buildTableFieldSchema() { |
1169 var o = new api.TableFieldSchema(); | 1171 var o = new api.TableFieldSchema(); |
1170 buildCounterTableFieldSchema++; | 1172 buildCounterTableFieldSchema++; |
1171 if (buildCounterTableFieldSchema < 3) { | 1173 if (buildCounterTableFieldSchema < 3) { |
1172 o.description = "foo"; | 1174 o.description = "foo"; |
1173 o.fields = buildUnnamed281(); | 1175 o.fields = buildUnnamed1158(); |
1174 o.mode = "foo"; | 1176 o.mode = "foo"; |
1175 o.name = "foo"; | 1177 o.name = "foo"; |
1176 o.type = "foo"; | 1178 o.type = "foo"; |
1177 } | 1179 } |
1178 buildCounterTableFieldSchema--; | 1180 buildCounterTableFieldSchema--; |
1179 return o; | 1181 return o; |
1180 } | 1182 } |
1181 | 1183 |
1182 checkTableFieldSchema(api.TableFieldSchema o) { | 1184 checkTableFieldSchema(api.TableFieldSchema o) { |
1183 buildCounterTableFieldSchema++; | 1185 buildCounterTableFieldSchema++; |
1184 if (buildCounterTableFieldSchema < 3) { | 1186 if (buildCounterTableFieldSchema < 3) { |
1185 unittest.expect(o.description, unittest.equals('foo')); | 1187 unittest.expect(o.description, unittest.equals('foo')); |
1186 checkUnnamed281(o.fields); | 1188 checkUnnamed1158(o.fields); |
1187 unittest.expect(o.mode, unittest.equals('foo')); | 1189 unittest.expect(o.mode, unittest.equals('foo')); |
1188 unittest.expect(o.name, unittest.equals('foo')); | 1190 unittest.expect(o.name, unittest.equals('foo')); |
1189 unittest.expect(o.type, unittest.equals('foo')); | 1191 unittest.expect(o.type, unittest.equals('foo')); |
1190 } | 1192 } |
1191 buildCounterTableFieldSchema--; | 1193 buildCounterTableFieldSchema--; |
1192 } | 1194 } |
1193 | 1195 |
1194 core.int buildCounterTableListTables = 0; | 1196 core.int buildCounterTableListTables = 0; |
1195 buildTableListTables() { | 1197 buildTableListTables() { |
1196 var o = new api.TableListTables(); | 1198 var o = new api.TableListTables(); |
(...skipping 14 matching lines...) Expand all Loading... |
1211 if (buildCounterTableListTables < 3) { | 1213 if (buildCounterTableListTables < 3) { |
1212 unittest.expect(o.friendlyName, unittest.equals('foo')); | 1214 unittest.expect(o.friendlyName, unittest.equals('foo')); |
1213 unittest.expect(o.id, unittest.equals('foo')); | 1215 unittest.expect(o.id, unittest.equals('foo')); |
1214 unittest.expect(o.kind, unittest.equals('foo')); | 1216 unittest.expect(o.kind, unittest.equals('foo')); |
1215 checkTableReference(o.tableReference); | 1217 checkTableReference(o.tableReference); |
1216 unittest.expect(o.type, unittest.equals('foo')); | 1218 unittest.expect(o.type, unittest.equals('foo')); |
1217 } | 1219 } |
1218 buildCounterTableListTables--; | 1220 buildCounterTableListTables--; |
1219 } | 1221 } |
1220 | 1222 |
1221 buildUnnamed282() { | 1223 buildUnnamed1159() { |
1222 var o = new core.List<api.TableListTables>(); | 1224 var o = new core.List<api.TableListTables>(); |
1223 o.add(buildTableListTables()); | 1225 o.add(buildTableListTables()); |
1224 o.add(buildTableListTables()); | 1226 o.add(buildTableListTables()); |
1225 return o; | 1227 return o; |
1226 } | 1228 } |
1227 | 1229 |
1228 checkUnnamed282(core.List<api.TableListTables> o) { | 1230 checkUnnamed1159(core.List<api.TableListTables> o) { |
1229 unittest.expect(o, unittest.hasLength(2)); | 1231 unittest.expect(o, unittest.hasLength(2)); |
1230 checkTableListTables(o[0]); | 1232 checkTableListTables(o[0]); |
1231 checkTableListTables(o[1]); | 1233 checkTableListTables(o[1]); |
1232 } | 1234 } |
1233 | 1235 |
1234 core.int buildCounterTableList = 0; | 1236 core.int buildCounterTableList = 0; |
1235 buildTableList() { | 1237 buildTableList() { |
1236 var o = new api.TableList(); | 1238 var o = new api.TableList(); |
1237 buildCounterTableList++; | 1239 buildCounterTableList++; |
1238 if (buildCounterTableList < 3) { | 1240 if (buildCounterTableList < 3) { |
1239 o.etag = "foo"; | 1241 o.etag = "foo"; |
1240 o.kind = "foo"; | 1242 o.kind = "foo"; |
1241 o.nextPageToken = "foo"; | 1243 o.nextPageToken = "foo"; |
1242 o.tables = buildUnnamed282(); | 1244 o.tables = buildUnnamed1159(); |
1243 o.totalItems = 42; | 1245 o.totalItems = 42; |
1244 } | 1246 } |
1245 buildCounterTableList--; | 1247 buildCounterTableList--; |
1246 return o; | 1248 return o; |
1247 } | 1249 } |
1248 | 1250 |
1249 checkTableList(api.TableList o) { | 1251 checkTableList(api.TableList o) { |
1250 buildCounterTableList++; | 1252 buildCounterTableList++; |
1251 if (buildCounterTableList < 3) { | 1253 if (buildCounterTableList < 3) { |
1252 unittest.expect(o.etag, unittest.equals('foo')); | 1254 unittest.expect(o.etag, unittest.equals('foo')); |
1253 unittest.expect(o.kind, unittest.equals('foo')); | 1255 unittest.expect(o.kind, unittest.equals('foo')); |
1254 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1256 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1255 checkUnnamed282(o.tables); | 1257 checkUnnamed1159(o.tables); |
1256 unittest.expect(o.totalItems, unittest.equals(42)); | 1258 unittest.expect(o.totalItems, unittest.equals(42)); |
1257 } | 1259 } |
1258 buildCounterTableList--; | 1260 buildCounterTableList--; |
1259 } | 1261 } |
1260 | 1262 |
1261 core.int buildCounterTableReference = 0; | 1263 core.int buildCounterTableReference = 0; |
1262 buildTableReference() { | 1264 buildTableReference() { |
1263 var o = new api.TableReference(); | 1265 var o = new api.TableReference(); |
1264 buildCounterTableReference++; | 1266 buildCounterTableReference++; |
1265 if (buildCounterTableReference < 3) { | 1267 if (buildCounterTableReference < 3) { |
1266 o.datasetId = "foo"; | 1268 o.datasetId = "foo"; |
1267 o.projectId = "foo"; | 1269 o.projectId = "foo"; |
1268 o.tableId = "foo"; | 1270 o.tableId = "foo"; |
1269 } | 1271 } |
1270 buildCounterTableReference--; | 1272 buildCounterTableReference--; |
1271 return o; | 1273 return o; |
1272 } | 1274 } |
1273 | 1275 |
1274 checkTableReference(api.TableReference o) { | 1276 checkTableReference(api.TableReference o) { |
1275 buildCounterTableReference++; | 1277 buildCounterTableReference++; |
1276 if (buildCounterTableReference < 3) { | 1278 if (buildCounterTableReference < 3) { |
1277 unittest.expect(o.datasetId, unittest.equals('foo')); | 1279 unittest.expect(o.datasetId, unittest.equals('foo')); |
1278 unittest.expect(o.projectId, unittest.equals('foo')); | 1280 unittest.expect(o.projectId, unittest.equals('foo')); |
1279 unittest.expect(o.tableId, unittest.equals('foo')); | 1281 unittest.expect(o.tableId, unittest.equals('foo')); |
1280 } | 1282 } |
1281 buildCounterTableReference--; | 1283 buildCounterTableReference--; |
1282 } | 1284 } |
1283 | 1285 |
1284 buildUnnamed283() { | 1286 buildUnnamed1160() { |
1285 var o = new core.List<api.TableCell>(); | 1287 var o = new core.List<api.TableCell>(); |
1286 o.add(buildTableCell()); | 1288 o.add(buildTableCell()); |
1287 o.add(buildTableCell()); | 1289 o.add(buildTableCell()); |
1288 return o; | 1290 return o; |
1289 } | 1291 } |
1290 | 1292 |
1291 checkUnnamed283(core.List<api.TableCell> o) { | 1293 checkUnnamed1160(core.List<api.TableCell> o) { |
1292 unittest.expect(o, unittest.hasLength(2)); | 1294 unittest.expect(o, unittest.hasLength(2)); |
1293 checkTableCell(o[0]); | 1295 checkTableCell(o[0]); |
1294 checkTableCell(o[1]); | 1296 checkTableCell(o[1]); |
1295 } | 1297 } |
1296 | 1298 |
1297 core.int buildCounterTableRow = 0; | 1299 core.int buildCounterTableRow = 0; |
1298 buildTableRow() { | 1300 buildTableRow() { |
1299 var o = new api.TableRow(); | 1301 var o = new api.TableRow(); |
1300 buildCounterTableRow++; | 1302 buildCounterTableRow++; |
1301 if (buildCounterTableRow < 3) { | 1303 if (buildCounterTableRow < 3) { |
1302 o.f = buildUnnamed283(); | 1304 o.f = buildUnnamed1160(); |
1303 } | 1305 } |
1304 buildCounterTableRow--; | 1306 buildCounterTableRow--; |
1305 return o; | 1307 return o; |
1306 } | 1308 } |
1307 | 1309 |
1308 checkTableRow(api.TableRow o) { | 1310 checkTableRow(api.TableRow o) { |
1309 buildCounterTableRow++; | 1311 buildCounterTableRow++; |
1310 if (buildCounterTableRow < 3) { | 1312 if (buildCounterTableRow < 3) { |
1311 checkUnnamed283(o.f); | 1313 checkUnnamed1160(o.f); |
1312 } | 1314 } |
1313 buildCounterTableRow--; | 1315 buildCounterTableRow--; |
1314 } | 1316 } |
1315 | 1317 |
1316 buildUnnamed284() { | 1318 buildUnnamed1161() { |
1317 var o = new core.List<api.TableFieldSchema>(); | 1319 var o = new core.List<api.TableFieldSchema>(); |
1318 o.add(buildTableFieldSchema()); | 1320 o.add(buildTableFieldSchema()); |
1319 o.add(buildTableFieldSchema()); | 1321 o.add(buildTableFieldSchema()); |
1320 return o; | 1322 return o; |
1321 } | 1323 } |
1322 | 1324 |
1323 checkUnnamed284(core.List<api.TableFieldSchema> o) { | 1325 checkUnnamed1161(core.List<api.TableFieldSchema> o) { |
1324 unittest.expect(o, unittest.hasLength(2)); | 1326 unittest.expect(o, unittest.hasLength(2)); |
1325 checkTableFieldSchema(o[0]); | 1327 checkTableFieldSchema(o[0]); |
1326 checkTableFieldSchema(o[1]); | 1328 checkTableFieldSchema(o[1]); |
1327 } | 1329 } |
1328 | 1330 |
1329 core.int buildCounterTableSchema = 0; | 1331 core.int buildCounterTableSchema = 0; |
1330 buildTableSchema() { | 1332 buildTableSchema() { |
1331 var o = new api.TableSchema(); | 1333 var o = new api.TableSchema(); |
1332 buildCounterTableSchema++; | 1334 buildCounterTableSchema++; |
1333 if (buildCounterTableSchema < 3) { | 1335 if (buildCounterTableSchema < 3) { |
1334 o.fields = buildUnnamed284(); | 1336 o.fields = buildUnnamed1161(); |
1335 } | 1337 } |
1336 buildCounterTableSchema--; | 1338 buildCounterTableSchema--; |
1337 return o; | 1339 return o; |
1338 } | 1340 } |
1339 | 1341 |
1340 checkTableSchema(api.TableSchema o) { | 1342 checkTableSchema(api.TableSchema o) { |
1341 buildCounterTableSchema++; | 1343 buildCounterTableSchema++; |
1342 if (buildCounterTableSchema < 3) { | 1344 if (buildCounterTableSchema < 3) { |
1343 checkUnnamed284(o.fields); | 1345 checkUnnamed1161(o.fields); |
1344 } | 1346 } |
1345 buildCounterTableSchema--; | 1347 buildCounterTableSchema--; |
1346 } | 1348 } |
1347 | 1349 |
1348 core.int buildCounterViewDefinition = 0; | 1350 core.int buildCounterViewDefinition = 0; |
1349 buildViewDefinition() { | 1351 buildViewDefinition() { |
1350 var o = new api.ViewDefinition(); | 1352 var o = new api.ViewDefinition(); |
1351 buildCounterViewDefinition++; | 1353 buildCounterViewDefinition++; |
1352 if (buildCounterViewDefinition < 3) { | 1354 if (buildCounterViewDefinition < 3) { |
1353 o.query = "foo"; | 1355 o.query = "foo"; |
1354 } | 1356 } |
1355 buildCounterViewDefinition--; | 1357 buildCounterViewDefinition--; |
1356 return o; | 1358 return o; |
1357 } | 1359 } |
1358 | 1360 |
1359 checkViewDefinition(api.ViewDefinition o) { | 1361 checkViewDefinition(api.ViewDefinition o) { |
1360 buildCounterViewDefinition++; | 1362 buildCounterViewDefinition++; |
1361 if (buildCounterViewDefinition < 3) { | 1363 if (buildCounterViewDefinition < 3) { |
1362 unittest.expect(o.query, unittest.equals('foo')); | 1364 unittest.expect(o.query, unittest.equals('foo')); |
1363 } | 1365 } |
1364 buildCounterViewDefinition--; | 1366 buildCounterViewDefinition--; |
1365 } | 1367 } |
1366 | 1368 |
1367 buildUnnamed285() { | 1369 buildUnnamed1162() { |
1368 var o = new core.List<core.String>(); | 1370 var o = new core.List<core.String>(); |
1369 o.add("foo"); | 1371 o.add("foo"); |
1370 o.add("foo"); | 1372 o.add("foo"); |
1371 return o; | 1373 return o; |
1372 } | 1374 } |
1373 | 1375 |
1374 checkUnnamed285(core.List<core.String> o) { | 1376 checkUnnamed1162(core.List<core.String> o) { |
1375 unittest.expect(o, unittest.hasLength(2)); | 1377 unittest.expect(o, unittest.hasLength(2)); |
1376 unittest.expect(o[0], unittest.equals('foo')); | 1378 unittest.expect(o[0], unittest.equals('foo')); |
1377 unittest.expect(o[1], unittest.equals('foo')); | 1379 unittest.expect(o[1], unittest.equals('foo')); |
1378 } | 1380 } |
1379 | 1381 |
1380 | 1382 |
1381 main() { | 1383 main() { |
1382 unittest.group("obj-schema-DatasetAccess", () { | 1384 unittest.group("obj-schema-DatasetAccess", () { |
1383 unittest.test("to-json--from-json", () { | 1385 unittest.test("to-json--from-json", () { |
1384 var o = buildDatasetAccess(); | 1386 var o = buildDatasetAccess(); |
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2288 | 2290 |
2289 unittest.test("method--list", () { | 2291 unittest.test("method--list", () { |
2290 | 2292 |
2291 var mock = new common_test.HttpServerMock(); | 2293 var mock = new common_test.HttpServerMock(); |
2292 api.JobsResourceApi res = new api.BigqueryApi(mock).jobs; | 2294 api.JobsResourceApi res = new api.BigqueryApi(mock).jobs; |
2293 var arg_projectId = "foo"; | 2295 var arg_projectId = "foo"; |
2294 var arg_allUsers = true; | 2296 var arg_allUsers = true; |
2295 var arg_maxResults = 42; | 2297 var arg_maxResults = 42; |
2296 var arg_pageToken = "foo"; | 2298 var arg_pageToken = "foo"; |
2297 var arg_projection = "foo"; | 2299 var arg_projection = "foo"; |
2298 var arg_stateFilter = buildUnnamed285(); | 2300 var arg_stateFilter = buildUnnamed1162(); |
2299 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2301 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2300 var path = (req.url).path; | 2302 var path = (req.url).path; |
2301 var pathOffset = 0; | 2303 var pathOffset = 0; |
2302 var index; | 2304 var index; |
2303 var subPart; | 2305 var subPart; |
2304 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2306 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2305 pathOffset += 1; | 2307 pathOffset += 1; |
2306 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("bigquery/v2/")); | 2308 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("bigquery/v2/")); |
2307 pathOffset += 12; | 2309 pathOffset += 12; |
2308 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 2310 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3009 res.update(arg_request, arg_projectId, arg_datasetId, arg_tableId).then(un
ittest.expectAsync(((api.Table response) { | 3011 res.update(arg_request, arg_projectId, arg_datasetId, arg_tableId).then(un
ittest.expectAsync(((api.Table response) { |
3010 checkTable(response); | 3012 checkTable(response); |
3011 }))); | 3013 }))); |
3012 }); | 3014 }); |
3013 | 3015 |
3014 }); | 3016 }); |
3015 | 3017 |
3016 | 3018 |
3017 } | 3019 } |
3018 | 3020 |
OLD | NEW |