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 buildUnnamed716() { | 48 buildUnnamed1089() { |
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 checkUnnamed716(core.List<api.DatasetAccess> o) { | 55 checkUnnamed1089(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 = buildUnnamed716(); | 66 o.access = buildUnnamed1089(); |
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 checkUnnamed716(o.access); | 84 checkUnnamed1089(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 buildUnnamed717() { | 123 buildUnnamed1090() { |
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 checkUnnamed717(core.List<api.DatasetListDatasets> o) { | 130 checkUnnamed1090(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 = buildUnnamed717(); | 141 o.datasets = buildUnnamed1090(); |
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 checkUnnamed717(o.datasets); | 153 checkUnnamed1090(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 buildUnnamed718() { | 207 buildUnnamed1091() { |
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 checkUnnamed718(core.List<api.TableRow> o) { | 214 checkUnnamed1091(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 = buildUnnamed718(); | 231 o.rows = buildUnnamed1091(); |
232 o.schema = buildTableSchema(); | 232 o.schema = buildTableSchema(); |
233 o.totalRows = "foo"; | 233 o.totalRows = "foo"; |
234 } | 234 } |
235 buildCounterGetQueryResultsResponse--; | 235 buildCounterGetQueryResultsResponse--; |
236 return o; | 236 return o; |
237 } | 237 } |
238 | 238 |
239 checkGetQueryResultsResponse(api.GetQueryResultsResponse o) { | 239 checkGetQueryResultsResponse(api.GetQueryResultsResponse o) { |
240 buildCounterGetQueryResultsResponse++; | 240 buildCounterGetQueryResultsResponse++; |
241 if (buildCounterGetQueryResultsResponse < 3) { | 241 if (buildCounterGetQueryResultsResponse < 3) { |
242 unittest.expect(o.cacheHit, unittest.isTrue); | 242 unittest.expect(o.cacheHit, unittest.isTrue); |
243 unittest.expect(o.etag, unittest.equals('foo')); | 243 unittest.expect(o.etag, unittest.equals('foo')); |
244 unittest.expect(o.jobComplete, unittest.isTrue); | 244 unittest.expect(o.jobComplete, unittest.isTrue); |
245 checkJobReference(o.jobReference); | 245 checkJobReference(o.jobReference); |
246 unittest.expect(o.kind, unittest.equals('foo')); | 246 unittest.expect(o.kind, unittest.equals('foo')); |
247 unittest.expect(o.pageToken, unittest.equals('foo')); | 247 unittest.expect(o.pageToken, unittest.equals('foo')); |
248 checkUnnamed718(o.rows); | 248 checkUnnamed1091(o.rows); |
249 checkTableSchema(o.schema); | 249 checkTableSchema(o.schema); |
250 unittest.expect(o.totalRows, unittest.equals('foo')); | 250 unittest.expect(o.totalRows, unittest.equals('foo')); |
251 } | 251 } |
252 buildCounterGetQueryResultsResponse--; | 252 buildCounterGetQueryResultsResponse--; |
253 } | 253 } |
254 | 254 |
255 core.int buildCounterJob = 0; | 255 core.int buildCounterJob = 0; |
256 buildJob() { | 256 buildJob() { |
257 var o = new api.Job(); | 257 var o = new api.Job(); |
258 buildCounterJob++; | 258 buildCounterJob++; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 checkJobConfigurationTableCopy(o.copy); | 307 checkJobConfigurationTableCopy(o.copy); |
308 unittest.expect(o.dryRun, unittest.isTrue); | 308 unittest.expect(o.dryRun, unittest.isTrue); |
309 checkJobConfigurationExtract(o.extract); | 309 checkJobConfigurationExtract(o.extract); |
310 checkJobConfigurationLink(o.link); | 310 checkJobConfigurationLink(o.link); |
311 checkJobConfigurationLoad(o.load); | 311 checkJobConfigurationLoad(o.load); |
312 checkJobConfigurationQuery(o.query); | 312 checkJobConfigurationQuery(o.query); |
313 } | 313 } |
314 buildCounterJobConfiguration--; | 314 buildCounterJobConfiguration--; |
315 } | 315 } |
316 | 316 |
317 buildUnnamed719() { | 317 buildUnnamed1092() { |
318 var o = new core.List<core.String>(); | 318 var o = new core.List<core.String>(); |
319 o.add("foo"); | 319 o.add("foo"); |
320 o.add("foo"); | 320 o.add("foo"); |
321 return o; | 321 return o; |
322 } | 322 } |
323 | 323 |
324 checkUnnamed719(core.List<core.String> o) { | 324 checkUnnamed1092(core.List<core.String> o) { |
325 unittest.expect(o, unittest.hasLength(2)); | 325 unittest.expect(o, unittest.hasLength(2)); |
326 unittest.expect(o[0], unittest.equals('foo')); | 326 unittest.expect(o[0], unittest.equals('foo')); |
327 unittest.expect(o[1], unittest.equals('foo')); | 327 unittest.expect(o[1], unittest.equals('foo')); |
328 } | 328 } |
329 | 329 |
330 core.int buildCounterJobConfigurationExtract = 0; | 330 core.int buildCounterJobConfigurationExtract = 0; |
331 buildJobConfigurationExtract() { | 331 buildJobConfigurationExtract() { |
332 var o = new api.JobConfigurationExtract(); | 332 var o = new api.JobConfigurationExtract(); |
333 buildCounterJobConfigurationExtract++; | 333 buildCounterJobConfigurationExtract++; |
334 if (buildCounterJobConfigurationExtract < 3) { | 334 if (buildCounterJobConfigurationExtract < 3) { |
335 o.compression = "foo"; | 335 o.compression = "foo"; |
336 o.destinationFormat = "foo"; | 336 o.destinationFormat = "foo"; |
337 o.destinationUri = "foo"; | 337 o.destinationUri = "foo"; |
338 o.destinationUris = buildUnnamed719(); | 338 o.destinationUris = buildUnnamed1092(); |
339 o.fieldDelimiter = "foo"; | 339 o.fieldDelimiter = "foo"; |
340 o.printHeader = true; | 340 o.printHeader = true; |
341 o.sourceTable = buildTableReference(); | 341 o.sourceTable = buildTableReference(); |
342 } | 342 } |
343 buildCounterJobConfigurationExtract--; | 343 buildCounterJobConfigurationExtract--; |
344 return o; | 344 return o; |
345 } | 345 } |
346 | 346 |
347 checkJobConfigurationExtract(api.JobConfigurationExtract o) { | 347 checkJobConfigurationExtract(api.JobConfigurationExtract o) { |
348 buildCounterJobConfigurationExtract++; | 348 buildCounterJobConfigurationExtract++; |
349 if (buildCounterJobConfigurationExtract < 3) { | 349 if (buildCounterJobConfigurationExtract < 3) { |
350 unittest.expect(o.compression, unittest.equals('foo')); | 350 unittest.expect(o.compression, unittest.equals('foo')); |
351 unittest.expect(o.destinationFormat, unittest.equals('foo')); | 351 unittest.expect(o.destinationFormat, unittest.equals('foo')); |
352 unittest.expect(o.destinationUri, unittest.equals('foo')); | 352 unittest.expect(o.destinationUri, unittest.equals('foo')); |
353 checkUnnamed719(o.destinationUris); | 353 checkUnnamed1092(o.destinationUris); |
354 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); | 354 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); |
355 unittest.expect(o.printHeader, unittest.isTrue); | 355 unittest.expect(o.printHeader, unittest.isTrue); |
356 checkTableReference(o.sourceTable); | 356 checkTableReference(o.sourceTable); |
357 } | 357 } |
358 buildCounterJobConfigurationExtract--; | 358 buildCounterJobConfigurationExtract--; |
359 } | 359 } |
360 | 360 |
361 buildUnnamed720() { | 361 buildUnnamed1093() { |
362 var o = new core.List<core.String>(); | 362 var o = new core.List<core.String>(); |
363 o.add("foo"); | 363 o.add("foo"); |
364 o.add("foo"); | 364 o.add("foo"); |
365 return o; | 365 return o; |
366 } | 366 } |
367 | 367 |
368 checkUnnamed720(core.List<core.String> o) { | 368 checkUnnamed1093(core.List<core.String> o) { |
369 unittest.expect(o, unittest.hasLength(2)); | 369 unittest.expect(o, unittest.hasLength(2)); |
370 unittest.expect(o[0], unittest.equals('foo')); | 370 unittest.expect(o[0], unittest.equals('foo')); |
371 unittest.expect(o[1], unittest.equals('foo')); | 371 unittest.expect(o[1], unittest.equals('foo')); |
372 } | 372 } |
373 | 373 |
374 core.int buildCounterJobConfigurationLink = 0; | 374 core.int buildCounterJobConfigurationLink = 0; |
375 buildJobConfigurationLink() { | 375 buildJobConfigurationLink() { |
376 var o = new api.JobConfigurationLink(); | 376 var o = new api.JobConfigurationLink(); |
377 buildCounterJobConfigurationLink++; | 377 buildCounterJobConfigurationLink++; |
378 if (buildCounterJobConfigurationLink < 3) { | 378 if (buildCounterJobConfigurationLink < 3) { |
379 o.createDisposition = "foo"; | 379 o.createDisposition = "foo"; |
380 o.destinationTable = buildTableReference(); | 380 o.destinationTable = buildTableReference(); |
381 o.sourceUri = buildUnnamed720(); | 381 o.sourceUri = buildUnnamed1093(); |
382 o.writeDisposition = "foo"; | 382 o.writeDisposition = "foo"; |
383 } | 383 } |
384 buildCounterJobConfigurationLink--; | 384 buildCounterJobConfigurationLink--; |
385 return o; | 385 return o; |
386 } | 386 } |
387 | 387 |
388 checkJobConfigurationLink(api.JobConfigurationLink o) { | 388 checkJobConfigurationLink(api.JobConfigurationLink o) { |
389 buildCounterJobConfigurationLink++; | 389 buildCounterJobConfigurationLink++; |
390 if (buildCounterJobConfigurationLink < 3) { | 390 if (buildCounterJobConfigurationLink < 3) { |
391 unittest.expect(o.createDisposition, unittest.equals('foo')); | 391 unittest.expect(o.createDisposition, unittest.equals('foo')); |
392 checkTableReference(o.destinationTable); | 392 checkTableReference(o.destinationTable); |
393 checkUnnamed720(o.sourceUri); | 393 checkUnnamed1093(o.sourceUri); |
394 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 394 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
395 } | 395 } |
396 buildCounterJobConfigurationLink--; | 396 buildCounterJobConfigurationLink--; |
397 } | 397 } |
398 | 398 |
399 buildUnnamed721() { | 399 buildUnnamed1094() { |
400 var o = new core.List<core.String>(); | 400 var o = new core.List<core.String>(); |
401 o.add("foo"); | 401 o.add("foo"); |
402 o.add("foo"); | 402 o.add("foo"); |
403 return o; | 403 return o; |
404 } | 404 } |
405 | 405 |
406 checkUnnamed721(core.List<core.String> o) { | 406 checkUnnamed1094(core.List<core.String> o) { |
407 unittest.expect(o, unittest.hasLength(2)); | 407 unittest.expect(o, unittest.hasLength(2)); |
408 unittest.expect(o[0], unittest.equals('foo')); | 408 unittest.expect(o[0], unittest.equals('foo')); |
409 unittest.expect(o[1], unittest.equals('foo')); | 409 unittest.expect(o[1], unittest.equals('foo')); |
410 } | 410 } |
411 | 411 |
412 core.int buildCounterJobConfigurationLoad = 0; | 412 core.int buildCounterJobConfigurationLoad = 0; |
413 buildJobConfigurationLoad() { | 413 buildJobConfigurationLoad() { |
414 var o = new api.JobConfigurationLoad(); | 414 var o = new api.JobConfigurationLoad(); |
415 buildCounterJobConfigurationLoad++; | 415 buildCounterJobConfigurationLoad++; |
416 if (buildCounterJobConfigurationLoad < 3) { | 416 if (buildCounterJobConfigurationLoad < 3) { |
417 o.allowJaggedRows = true; | 417 o.allowJaggedRows = true; |
418 o.allowQuotedNewlines = true; | 418 o.allowQuotedNewlines = true; |
419 o.createDisposition = "foo"; | 419 o.createDisposition = "foo"; |
420 o.destinationTable = buildTableReference(); | 420 o.destinationTable = buildTableReference(); |
421 o.encoding = "foo"; | 421 o.encoding = "foo"; |
422 o.fieldDelimiter = "foo"; | 422 o.fieldDelimiter = "foo"; |
423 o.ignoreUnknownValues = true; | 423 o.ignoreUnknownValues = true; |
424 o.maxBadRecords = 42; | 424 o.maxBadRecords = 42; |
425 o.quote = "foo"; | 425 o.quote = "foo"; |
426 o.schema = buildTableSchema(); | 426 o.schema = buildTableSchema(); |
427 o.schemaInline = "foo"; | 427 o.schemaInline = "foo"; |
428 o.schemaInlineFormat = "foo"; | 428 o.schemaInlineFormat = "foo"; |
429 o.skipLeadingRows = 42; | 429 o.skipLeadingRows = 42; |
430 o.sourceFormat = "foo"; | 430 o.sourceFormat = "foo"; |
431 o.sourceUris = buildUnnamed721(); | 431 o.sourceUris = buildUnnamed1094(); |
432 o.writeDisposition = "foo"; | 432 o.writeDisposition = "foo"; |
433 } | 433 } |
434 buildCounterJobConfigurationLoad--; | 434 buildCounterJobConfigurationLoad--; |
435 return o; | 435 return o; |
436 } | 436 } |
437 | 437 |
438 checkJobConfigurationLoad(api.JobConfigurationLoad o) { | 438 checkJobConfigurationLoad(api.JobConfigurationLoad o) { |
439 buildCounterJobConfigurationLoad++; | 439 buildCounterJobConfigurationLoad++; |
440 if (buildCounterJobConfigurationLoad < 3) { | 440 if (buildCounterJobConfigurationLoad < 3) { |
441 unittest.expect(o.allowJaggedRows, unittest.isTrue); | 441 unittest.expect(o.allowJaggedRows, unittest.isTrue); |
442 unittest.expect(o.allowQuotedNewlines, unittest.isTrue); | 442 unittest.expect(o.allowQuotedNewlines, unittest.isTrue); |
443 unittest.expect(o.createDisposition, unittest.equals('foo')); | 443 unittest.expect(o.createDisposition, unittest.equals('foo')); |
444 checkTableReference(o.destinationTable); | 444 checkTableReference(o.destinationTable); |
445 unittest.expect(o.encoding, unittest.equals('foo')); | 445 unittest.expect(o.encoding, unittest.equals('foo')); |
446 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); | 446 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); |
447 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); | 447 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); |
448 unittest.expect(o.maxBadRecords, unittest.equals(42)); | 448 unittest.expect(o.maxBadRecords, unittest.equals(42)); |
449 unittest.expect(o.quote, unittest.equals('foo')); | 449 unittest.expect(o.quote, unittest.equals('foo')); |
450 checkTableSchema(o.schema); | 450 checkTableSchema(o.schema); |
451 unittest.expect(o.schemaInline, unittest.equals('foo')); | 451 unittest.expect(o.schemaInline, unittest.equals('foo')); |
452 unittest.expect(o.schemaInlineFormat, unittest.equals('foo')); | 452 unittest.expect(o.schemaInlineFormat, unittest.equals('foo')); |
453 unittest.expect(o.skipLeadingRows, unittest.equals(42)); | 453 unittest.expect(o.skipLeadingRows, unittest.equals(42)); |
454 unittest.expect(o.sourceFormat, unittest.equals('foo')); | 454 unittest.expect(o.sourceFormat, unittest.equals('foo')); |
455 checkUnnamed721(o.sourceUris); | 455 checkUnnamed1094(o.sourceUris); |
456 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 456 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
457 } | 457 } |
458 buildCounterJobConfigurationLoad--; | 458 buildCounterJobConfigurationLoad--; |
459 } | 459 } |
460 | 460 |
461 core.int buildCounterJobConfigurationQuery = 0; | 461 core.int buildCounterJobConfigurationQuery = 0; |
462 buildJobConfigurationQuery() { | 462 buildJobConfigurationQuery() { |
463 var o = new api.JobConfigurationQuery(); | 463 var o = new api.JobConfigurationQuery(); |
464 buildCounterJobConfigurationQuery++; | 464 buildCounterJobConfigurationQuery++; |
465 if (buildCounterJobConfigurationQuery < 3) { | 465 if (buildCounterJobConfigurationQuery < 3) { |
(...skipping 22 matching lines...) Expand all Loading... |
488 unittest.expect(o.flattenResults, unittest.isTrue); | 488 unittest.expect(o.flattenResults, unittest.isTrue); |
489 unittest.expect(o.preserveNulls, unittest.isTrue); | 489 unittest.expect(o.preserveNulls, unittest.isTrue); |
490 unittest.expect(o.priority, unittest.equals('foo')); | 490 unittest.expect(o.priority, unittest.equals('foo')); |
491 unittest.expect(o.query, unittest.equals('foo')); | 491 unittest.expect(o.query, unittest.equals('foo')); |
492 unittest.expect(o.useQueryCache, unittest.isTrue); | 492 unittest.expect(o.useQueryCache, unittest.isTrue); |
493 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 493 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
494 } | 494 } |
495 buildCounterJobConfigurationQuery--; | 495 buildCounterJobConfigurationQuery--; |
496 } | 496 } |
497 | 497 |
498 buildUnnamed722() { | 498 buildUnnamed1095() { |
499 var o = new core.List<api.TableReference>(); | 499 var o = new core.List<api.TableReference>(); |
500 o.add(buildTableReference()); | 500 o.add(buildTableReference()); |
501 o.add(buildTableReference()); | 501 o.add(buildTableReference()); |
502 return o; | 502 return o; |
503 } | 503 } |
504 | 504 |
505 checkUnnamed722(core.List<api.TableReference> o) { | 505 checkUnnamed1095(core.List<api.TableReference> o) { |
506 unittest.expect(o, unittest.hasLength(2)); | 506 unittest.expect(o, unittest.hasLength(2)); |
507 checkTableReference(o[0]); | 507 checkTableReference(o[0]); |
508 checkTableReference(o[1]); | 508 checkTableReference(o[1]); |
509 } | 509 } |
510 | 510 |
511 core.int buildCounterJobConfigurationTableCopy = 0; | 511 core.int buildCounterJobConfigurationTableCopy = 0; |
512 buildJobConfigurationTableCopy() { | 512 buildJobConfigurationTableCopy() { |
513 var o = new api.JobConfigurationTableCopy(); | 513 var o = new api.JobConfigurationTableCopy(); |
514 buildCounterJobConfigurationTableCopy++; | 514 buildCounterJobConfigurationTableCopy++; |
515 if (buildCounterJobConfigurationTableCopy < 3) { | 515 if (buildCounterJobConfigurationTableCopy < 3) { |
516 o.createDisposition = "foo"; | 516 o.createDisposition = "foo"; |
517 o.destinationTable = buildTableReference(); | 517 o.destinationTable = buildTableReference(); |
518 o.sourceTable = buildTableReference(); | 518 o.sourceTable = buildTableReference(); |
519 o.sourceTables = buildUnnamed722(); | 519 o.sourceTables = buildUnnamed1095(); |
520 o.writeDisposition = "foo"; | 520 o.writeDisposition = "foo"; |
521 } | 521 } |
522 buildCounterJobConfigurationTableCopy--; | 522 buildCounterJobConfigurationTableCopy--; |
523 return o; | 523 return o; |
524 } | 524 } |
525 | 525 |
526 checkJobConfigurationTableCopy(api.JobConfigurationTableCopy o) { | 526 checkJobConfigurationTableCopy(api.JobConfigurationTableCopy o) { |
527 buildCounterJobConfigurationTableCopy++; | 527 buildCounterJobConfigurationTableCopy++; |
528 if (buildCounterJobConfigurationTableCopy < 3) { | 528 if (buildCounterJobConfigurationTableCopy < 3) { |
529 unittest.expect(o.createDisposition, unittest.equals('foo')); | 529 unittest.expect(o.createDisposition, unittest.equals('foo')); |
530 checkTableReference(o.destinationTable); | 530 checkTableReference(o.destinationTable); |
531 checkTableReference(o.sourceTable); | 531 checkTableReference(o.sourceTable); |
532 checkUnnamed722(o.sourceTables); | 532 checkUnnamed1095(o.sourceTables); |
533 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 533 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
534 } | 534 } |
535 buildCounterJobConfigurationTableCopy--; | 535 buildCounterJobConfigurationTableCopy--; |
536 } | 536 } |
537 | 537 |
538 core.int buildCounterJobListJobs = 0; | 538 core.int buildCounterJobListJobs = 0; |
539 buildJobListJobs() { | 539 buildJobListJobs() { |
540 var o = new api.JobListJobs(); | 540 var o = new api.JobListJobs(); |
541 buildCounterJobListJobs++; | 541 buildCounterJobListJobs++; |
542 if (buildCounterJobListJobs < 3) { | 542 if (buildCounterJobListJobs < 3) { |
(...skipping 20 matching lines...) Expand all Loading... |
563 checkJobReference(o.jobReference); | 563 checkJobReference(o.jobReference); |
564 unittest.expect(o.kind, unittest.equals('foo')); | 564 unittest.expect(o.kind, unittest.equals('foo')); |
565 unittest.expect(o.state, unittest.equals('foo')); | 565 unittest.expect(o.state, unittest.equals('foo')); |
566 checkJobStatistics(o.statistics); | 566 checkJobStatistics(o.statistics); |
567 checkJobStatus(o.status); | 567 checkJobStatus(o.status); |
568 unittest.expect(o.userEmail, unittest.equals('foo')); | 568 unittest.expect(o.userEmail, unittest.equals('foo')); |
569 } | 569 } |
570 buildCounterJobListJobs--; | 570 buildCounterJobListJobs--; |
571 } | 571 } |
572 | 572 |
573 buildUnnamed723() { | 573 buildUnnamed1096() { |
574 var o = new core.List<api.JobListJobs>(); | 574 var o = new core.List<api.JobListJobs>(); |
575 o.add(buildJobListJobs()); | 575 o.add(buildJobListJobs()); |
576 o.add(buildJobListJobs()); | 576 o.add(buildJobListJobs()); |
577 return o; | 577 return o; |
578 } | 578 } |
579 | 579 |
580 checkUnnamed723(core.List<api.JobListJobs> o) { | 580 checkUnnamed1096(core.List<api.JobListJobs> o) { |
581 unittest.expect(o, unittest.hasLength(2)); | 581 unittest.expect(o, unittest.hasLength(2)); |
582 checkJobListJobs(o[0]); | 582 checkJobListJobs(o[0]); |
583 checkJobListJobs(o[1]); | 583 checkJobListJobs(o[1]); |
584 } | 584 } |
585 | 585 |
586 core.int buildCounterJobList = 0; | 586 core.int buildCounterJobList = 0; |
587 buildJobList() { | 587 buildJobList() { |
588 var o = new api.JobList(); | 588 var o = new api.JobList(); |
589 buildCounterJobList++; | 589 buildCounterJobList++; |
590 if (buildCounterJobList < 3) { | 590 if (buildCounterJobList < 3) { |
591 o.etag = "foo"; | 591 o.etag = "foo"; |
592 o.jobs = buildUnnamed723(); | 592 o.jobs = buildUnnamed1096(); |
593 o.kind = "foo"; | 593 o.kind = "foo"; |
594 o.nextPageToken = "foo"; | 594 o.nextPageToken = "foo"; |
595 o.totalItems = 42; | 595 o.totalItems = 42; |
596 } | 596 } |
597 buildCounterJobList--; | 597 buildCounterJobList--; |
598 return o; | 598 return o; |
599 } | 599 } |
600 | 600 |
601 checkJobList(api.JobList o) { | 601 checkJobList(api.JobList o) { |
602 buildCounterJobList++; | 602 buildCounterJobList++; |
603 if (buildCounterJobList < 3) { | 603 if (buildCounterJobList < 3) { |
604 unittest.expect(o.etag, unittest.equals('foo')); | 604 unittest.expect(o.etag, unittest.equals('foo')); |
605 checkUnnamed723(o.jobs); | 605 checkUnnamed1096(o.jobs); |
606 unittest.expect(o.kind, unittest.equals('foo')); | 606 unittest.expect(o.kind, unittest.equals('foo')); |
607 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 607 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
608 unittest.expect(o.totalItems, unittest.equals(42)); | 608 unittest.expect(o.totalItems, unittest.equals(42)); |
609 } | 609 } |
610 buildCounterJobList--; | 610 buildCounterJobList--; |
611 } | 611 } |
612 | 612 |
613 core.int buildCounterJobReference = 0; | 613 core.int buildCounterJobReference = 0; |
614 buildJobReference() { | 614 buildJobReference() { |
615 var o = new api.JobReference(); | 615 var o = new api.JobReference(); |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 buildCounterJobStatistics3++; | 699 buildCounterJobStatistics3++; |
700 if (buildCounterJobStatistics3 < 3) { | 700 if (buildCounterJobStatistics3 < 3) { |
701 unittest.expect(o.inputFileBytes, unittest.equals('foo')); | 701 unittest.expect(o.inputFileBytes, unittest.equals('foo')); |
702 unittest.expect(o.inputFiles, unittest.equals('foo')); | 702 unittest.expect(o.inputFiles, unittest.equals('foo')); |
703 unittest.expect(o.outputBytes, unittest.equals('foo')); | 703 unittest.expect(o.outputBytes, unittest.equals('foo')); |
704 unittest.expect(o.outputRows, unittest.equals('foo')); | 704 unittest.expect(o.outputRows, unittest.equals('foo')); |
705 } | 705 } |
706 buildCounterJobStatistics3--; | 706 buildCounterJobStatistics3--; |
707 } | 707 } |
708 | 708 |
709 buildUnnamed724() { | 709 buildUnnamed1097() { |
710 var o = new core.List<api.ErrorProto>(); | 710 var o = new core.List<api.ErrorProto>(); |
711 o.add(buildErrorProto()); | 711 o.add(buildErrorProto()); |
712 o.add(buildErrorProto()); | 712 o.add(buildErrorProto()); |
713 return o; | 713 return o; |
714 } | 714 } |
715 | 715 |
716 checkUnnamed724(core.List<api.ErrorProto> o) { | 716 checkUnnamed1097(core.List<api.ErrorProto> o) { |
717 unittest.expect(o, unittest.hasLength(2)); | 717 unittest.expect(o, unittest.hasLength(2)); |
718 checkErrorProto(o[0]); | 718 checkErrorProto(o[0]); |
719 checkErrorProto(o[1]); | 719 checkErrorProto(o[1]); |
720 } | 720 } |
721 | 721 |
722 core.int buildCounterJobStatus = 0; | 722 core.int buildCounterJobStatus = 0; |
723 buildJobStatus() { | 723 buildJobStatus() { |
724 var o = new api.JobStatus(); | 724 var o = new api.JobStatus(); |
725 buildCounterJobStatus++; | 725 buildCounterJobStatus++; |
726 if (buildCounterJobStatus < 3) { | 726 if (buildCounterJobStatus < 3) { |
727 o.errorResult = buildErrorProto(); | 727 o.errorResult = buildErrorProto(); |
728 o.errors = buildUnnamed724(); | 728 o.errors = buildUnnamed1097(); |
729 o.state = "foo"; | 729 o.state = "foo"; |
730 } | 730 } |
731 buildCounterJobStatus--; | 731 buildCounterJobStatus--; |
732 return o; | 732 return o; |
733 } | 733 } |
734 | 734 |
735 checkJobStatus(api.JobStatus o) { | 735 checkJobStatus(api.JobStatus o) { |
736 buildCounterJobStatus++; | 736 buildCounterJobStatus++; |
737 if (buildCounterJobStatus < 3) { | 737 if (buildCounterJobStatus < 3) { |
738 checkErrorProto(o.errorResult); | 738 checkErrorProto(o.errorResult); |
739 checkUnnamed724(o.errors); | 739 checkUnnamed1097(o.errors); |
740 unittest.expect(o.state, unittest.equals('foo')); | 740 unittest.expect(o.state, unittest.equals('foo')); |
741 } | 741 } |
742 buildCounterJobStatus--; | 742 buildCounterJobStatus--; |
743 } | 743 } |
744 | 744 |
745 buildJsonObject() { | 745 buildJsonObject() { |
746 var o = new api.JsonObject(); | 746 var o = new api.JsonObject(); |
747 o["a"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 747 o["a"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
748 o["b"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 748 o["b"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
749 return o; | 749 return o; |
(...skipping 25 matching lines...) Expand all Loading... |
775 if (buildCounterProjectListProjects < 3) { | 775 if (buildCounterProjectListProjects < 3) { |
776 unittest.expect(o.friendlyName, unittest.equals('foo')); | 776 unittest.expect(o.friendlyName, unittest.equals('foo')); |
777 unittest.expect(o.id, unittest.equals('foo')); | 777 unittest.expect(o.id, unittest.equals('foo')); |
778 unittest.expect(o.kind, unittest.equals('foo')); | 778 unittest.expect(o.kind, unittest.equals('foo')); |
779 unittest.expect(o.numericId, unittest.equals('foo')); | 779 unittest.expect(o.numericId, unittest.equals('foo')); |
780 checkProjectReference(o.projectReference); | 780 checkProjectReference(o.projectReference); |
781 } | 781 } |
782 buildCounterProjectListProjects--; | 782 buildCounterProjectListProjects--; |
783 } | 783 } |
784 | 784 |
785 buildUnnamed725() { | 785 buildUnnamed1098() { |
786 var o = new core.List<api.ProjectListProjects>(); | 786 var o = new core.List<api.ProjectListProjects>(); |
787 o.add(buildProjectListProjects()); | 787 o.add(buildProjectListProjects()); |
788 o.add(buildProjectListProjects()); | 788 o.add(buildProjectListProjects()); |
789 return o; | 789 return o; |
790 } | 790 } |
791 | 791 |
792 checkUnnamed725(core.List<api.ProjectListProjects> o) { | 792 checkUnnamed1098(core.List<api.ProjectListProjects> o) { |
793 unittest.expect(o, unittest.hasLength(2)); | 793 unittest.expect(o, unittest.hasLength(2)); |
794 checkProjectListProjects(o[0]); | 794 checkProjectListProjects(o[0]); |
795 checkProjectListProjects(o[1]); | 795 checkProjectListProjects(o[1]); |
796 } | 796 } |
797 | 797 |
798 core.int buildCounterProjectList = 0; | 798 core.int buildCounterProjectList = 0; |
799 buildProjectList() { | 799 buildProjectList() { |
800 var o = new api.ProjectList(); | 800 var o = new api.ProjectList(); |
801 buildCounterProjectList++; | 801 buildCounterProjectList++; |
802 if (buildCounterProjectList < 3) { | 802 if (buildCounterProjectList < 3) { |
803 o.etag = "foo"; | 803 o.etag = "foo"; |
804 o.kind = "foo"; | 804 o.kind = "foo"; |
805 o.nextPageToken = "foo"; | 805 o.nextPageToken = "foo"; |
806 o.projects = buildUnnamed725(); | 806 o.projects = buildUnnamed1098(); |
807 o.totalItems = 42; | 807 o.totalItems = 42; |
808 } | 808 } |
809 buildCounterProjectList--; | 809 buildCounterProjectList--; |
810 return o; | 810 return o; |
811 } | 811 } |
812 | 812 |
813 checkProjectList(api.ProjectList o) { | 813 checkProjectList(api.ProjectList o) { |
814 buildCounterProjectList++; | 814 buildCounterProjectList++; |
815 if (buildCounterProjectList < 3) { | 815 if (buildCounterProjectList < 3) { |
816 unittest.expect(o.etag, unittest.equals('foo')); | 816 unittest.expect(o.etag, unittest.equals('foo')); |
817 unittest.expect(o.kind, unittest.equals('foo')); | 817 unittest.expect(o.kind, unittest.equals('foo')); |
818 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 818 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
819 checkUnnamed725(o.projects); | 819 checkUnnamed1098(o.projects); |
820 unittest.expect(o.totalItems, unittest.equals(42)); | 820 unittest.expect(o.totalItems, unittest.equals(42)); |
821 } | 821 } |
822 buildCounterProjectList--; | 822 buildCounterProjectList--; |
823 } | 823 } |
824 | 824 |
825 core.int buildCounterProjectReference = 0; | 825 core.int buildCounterProjectReference = 0; |
826 buildProjectReference() { | 826 buildProjectReference() { |
827 var o = new api.ProjectReference(); | 827 var o = new api.ProjectReference(); |
828 buildCounterProjectReference++; | 828 buildCounterProjectReference++; |
829 if (buildCounterProjectReference < 3) { | 829 if (buildCounterProjectReference < 3) { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
867 unittest.expect(o.kind, unittest.equals('foo')); | 867 unittest.expect(o.kind, unittest.equals('foo')); |
868 unittest.expect(o.maxResults, unittest.equals(42)); | 868 unittest.expect(o.maxResults, unittest.equals(42)); |
869 unittest.expect(o.preserveNulls, unittest.isTrue); | 869 unittest.expect(o.preserveNulls, unittest.isTrue); |
870 unittest.expect(o.query, unittest.equals('foo')); | 870 unittest.expect(o.query, unittest.equals('foo')); |
871 unittest.expect(o.timeoutMs, unittest.equals(42)); | 871 unittest.expect(o.timeoutMs, unittest.equals(42)); |
872 unittest.expect(o.useQueryCache, unittest.isTrue); | 872 unittest.expect(o.useQueryCache, unittest.isTrue); |
873 } | 873 } |
874 buildCounterQueryRequest--; | 874 buildCounterQueryRequest--; |
875 } | 875 } |
876 | 876 |
877 buildUnnamed726() { | 877 buildUnnamed1099() { |
878 var o = new core.List<api.TableRow>(); | 878 var o = new core.List<api.TableRow>(); |
879 o.add(buildTableRow()); | 879 o.add(buildTableRow()); |
880 o.add(buildTableRow()); | 880 o.add(buildTableRow()); |
881 return o; | 881 return o; |
882 } | 882 } |
883 | 883 |
884 checkUnnamed726(core.List<api.TableRow> o) { | 884 checkUnnamed1099(core.List<api.TableRow> o) { |
885 unittest.expect(o, unittest.hasLength(2)); | 885 unittest.expect(o, unittest.hasLength(2)); |
886 checkTableRow(o[0]); | 886 checkTableRow(o[0]); |
887 checkTableRow(o[1]); | 887 checkTableRow(o[1]); |
888 } | 888 } |
889 | 889 |
890 core.int buildCounterQueryResponse = 0; | 890 core.int buildCounterQueryResponse = 0; |
891 buildQueryResponse() { | 891 buildQueryResponse() { |
892 var o = new api.QueryResponse(); | 892 var o = new api.QueryResponse(); |
893 buildCounterQueryResponse++; | 893 buildCounterQueryResponse++; |
894 if (buildCounterQueryResponse < 3) { | 894 if (buildCounterQueryResponse < 3) { |
895 o.cacheHit = true; | 895 o.cacheHit = true; |
896 o.jobComplete = true; | 896 o.jobComplete = true; |
897 o.jobReference = buildJobReference(); | 897 o.jobReference = buildJobReference(); |
898 o.kind = "foo"; | 898 o.kind = "foo"; |
899 o.pageToken = "foo"; | 899 o.pageToken = "foo"; |
900 o.rows = buildUnnamed726(); | 900 o.rows = buildUnnamed1099(); |
901 o.schema = buildTableSchema(); | 901 o.schema = buildTableSchema(); |
902 o.totalBytesProcessed = "foo"; | 902 o.totalBytesProcessed = "foo"; |
903 o.totalRows = "foo"; | 903 o.totalRows = "foo"; |
904 } | 904 } |
905 buildCounterQueryResponse--; | 905 buildCounterQueryResponse--; |
906 return o; | 906 return o; |
907 } | 907 } |
908 | 908 |
909 checkQueryResponse(api.QueryResponse o) { | 909 checkQueryResponse(api.QueryResponse o) { |
910 buildCounterQueryResponse++; | 910 buildCounterQueryResponse++; |
911 if (buildCounterQueryResponse < 3) { | 911 if (buildCounterQueryResponse < 3) { |
912 unittest.expect(o.cacheHit, unittest.isTrue); | 912 unittest.expect(o.cacheHit, unittest.isTrue); |
913 unittest.expect(o.jobComplete, unittest.isTrue); | 913 unittest.expect(o.jobComplete, unittest.isTrue); |
914 checkJobReference(o.jobReference); | 914 checkJobReference(o.jobReference); |
915 unittest.expect(o.kind, unittest.equals('foo')); | 915 unittest.expect(o.kind, unittest.equals('foo')); |
916 unittest.expect(o.pageToken, unittest.equals('foo')); | 916 unittest.expect(o.pageToken, unittest.equals('foo')); |
917 checkUnnamed726(o.rows); | 917 checkUnnamed1099(o.rows); |
918 checkTableSchema(o.schema); | 918 checkTableSchema(o.schema); |
919 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); | 919 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); |
920 unittest.expect(o.totalRows, unittest.equals('foo')); | 920 unittest.expect(o.totalRows, unittest.equals('foo')); |
921 } | 921 } |
922 buildCounterQueryResponse--; | 922 buildCounterQueryResponse--; |
923 } | 923 } |
924 | 924 |
925 core.int buildCounterTable = 0; | 925 core.int buildCounterTable = 0; |
926 buildTable() { | 926 buildTable() { |
927 var o = new api.Table(); | 927 var o = new api.Table(); |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1002 | 1002 |
1003 checkTableDataInsertAllRequestRows(api.TableDataInsertAllRequestRows o) { | 1003 checkTableDataInsertAllRequestRows(api.TableDataInsertAllRequestRows o) { |
1004 buildCounterTableDataInsertAllRequestRows++; | 1004 buildCounterTableDataInsertAllRequestRows++; |
1005 if (buildCounterTableDataInsertAllRequestRows < 3) { | 1005 if (buildCounterTableDataInsertAllRequestRows < 3) { |
1006 unittest.expect(o.insertId, unittest.equals('foo')); | 1006 unittest.expect(o.insertId, unittest.equals('foo')); |
1007 checkJsonObject(o.json); | 1007 checkJsonObject(o.json); |
1008 } | 1008 } |
1009 buildCounterTableDataInsertAllRequestRows--; | 1009 buildCounterTableDataInsertAllRequestRows--; |
1010 } | 1010 } |
1011 | 1011 |
1012 buildUnnamed727() { | 1012 buildUnnamed1100() { |
1013 var o = new core.List<api.TableDataInsertAllRequestRows>(); | 1013 var o = new core.List<api.TableDataInsertAllRequestRows>(); |
1014 o.add(buildTableDataInsertAllRequestRows()); | 1014 o.add(buildTableDataInsertAllRequestRows()); |
1015 o.add(buildTableDataInsertAllRequestRows()); | 1015 o.add(buildTableDataInsertAllRequestRows()); |
1016 return o; | 1016 return o; |
1017 } | 1017 } |
1018 | 1018 |
1019 checkUnnamed727(core.List<api.TableDataInsertAllRequestRows> o) { | 1019 checkUnnamed1100(core.List<api.TableDataInsertAllRequestRows> o) { |
1020 unittest.expect(o, unittest.hasLength(2)); | 1020 unittest.expect(o, unittest.hasLength(2)); |
1021 checkTableDataInsertAllRequestRows(o[0]); | 1021 checkTableDataInsertAllRequestRows(o[0]); |
1022 checkTableDataInsertAllRequestRows(o[1]); | 1022 checkTableDataInsertAllRequestRows(o[1]); |
1023 } | 1023 } |
1024 | 1024 |
1025 core.int buildCounterTableDataInsertAllRequest = 0; | 1025 core.int buildCounterTableDataInsertAllRequest = 0; |
1026 buildTableDataInsertAllRequest() { | 1026 buildTableDataInsertAllRequest() { |
1027 var o = new api.TableDataInsertAllRequest(); | 1027 var o = new api.TableDataInsertAllRequest(); |
1028 buildCounterTableDataInsertAllRequest++; | 1028 buildCounterTableDataInsertAllRequest++; |
1029 if (buildCounterTableDataInsertAllRequest < 3) { | 1029 if (buildCounterTableDataInsertAllRequest < 3) { |
1030 o.kind = "foo"; | 1030 o.kind = "foo"; |
1031 o.rows = buildUnnamed727(); | 1031 o.rows = buildUnnamed1100(); |
1032 } | 1032 } |
1033 buildCounterTableDataInsertAllRequest--; | 1033 buildCounterTableDataInsertAllRequest--; |
1034 return o; | 1034 return o; |
1035 } | 1035 } |
1036 | 1036 |
1037 checkTableDataInsertAllRequest(api.TableDataInsertAllRequest o) { | 1037 checkTableDataInsertAllRequest(api.TableDataInsertAllRequest o) { |
1038 buildCounterTableDataInsertAllRequest++; | 1038 buildCounterTableDataInsertAllRequest++; |
1039 if (buildCounterTableDataInsertAllRequest < 3) { | 1039 if (buildCounterTableDataInsertAllRequest < 3) { |
1040 unittest.expect(o.kind, unittest.equals('foo')); | 1040 unittest.expect(o.kind, unittest.equals('foo')); |
1041 checkUnnamed727(o.rows); | 1041 checkUnnamed1100(o.rows); |
1042 } | 1042 } |
1043 buildCounterTableDataInsertAllRequest--; | 1043 buildCounterTableDataInsertAllRequest--; |
1044 } | 1044 } |
1045 | 1045 |
1046 buildUnnamed728() { | 1046 buildUnnamed1101() { |
1047 var o = new core.List<api.ErrorProto>(); | 1047 var o = new core.List<api.ErrorProto>(); |
1048 o.add(buildErrorProto()); | 1048 o.add(buildErrorProto()); |
1049 o.add(buildErrorProto()); | 1049 o.add(buildErrorProto()); |
1050 return o; | 1050 return o; |
1051 } | 1051 } |
1052 | 1052 |
1053 checkUnnamed728(core.List<api.ErrorProto> o) { | 1053 checkUnnamed1101(core.List<api.ErrorProto> o) { |
1054 unittest.expect(o, unittest.hasLength(2)); | 1054 unittest.expect(o, unittest.hasLength(2)); |
1055 checkErrorProto(o[0]); | 1055 checkErrorProto(o[0]); |
1056 checkErrorProto(o[1]); | 1056 checkErrorProto(o[1]); |
1057 } | 1057 } |
1058 | 1058 |
1059 core.int buildCounterTableDataInsertAllResponseInsertErrors = 0; | 1059 core.int buildCounterTableDataInsertAllResponseInsertErrors = 0; |
1060 buildTableDataInsertAllResponseInsertErrors() { | 1060 buildTableDataInsertAllResponseInsertErrors() { |
1061 var o = new api.TableDataInsertAllResponseInsertErrors(); | 1061 var o = new api.TableDataInsertAllResponseInsertErrors(); |
1062 buildCounterTableDataInsertAllResponseInsertErrors++; | 1062 buildCounterTableDataInsertAllResponseInsertErrors++; |
1063 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { | 1063 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { |
1064 o.errors = buildUnnamed728(); | 1064 o.errors = buildUnnamed1101(); |
1065 o.index = 42; | 1065 o.index = 42; |
1066 } | 1066 } |
1067 buildCounterTableDataInsertAllResponseInsertErrors--; | 1067 buildCounterTableDataInsertAllResponseInsertErrors--; |
1068 return o; | 1068 return o; |
1069 } | 1069 } |
1070 | 1070 |
1071 checkTableDataInsertAllResponseInsertErrors(api.TableDataInsertAllResponseInsert
Errors o) { | 1071 checkTableDataInsertAllResponseInsertErrors(api.TableDataInsertAllResponseInsert
Errors o) { |
1072 buildCounterTableDataInsertAllResponseInsertErrors++; | 1072 buildCounterTableDataInsertAllResponseInsertErrors++; |
1073 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { | 1073 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { |
1074 checkUnnamed728(o.errors); | 1074 checkUnnamed1101(o.errors); |
1075 unittest.expect(o.index, unittest.equals(42)); | 1075 unittest.expect(o.index, unittest.equals(42)); |
1076 } | 1076 } |
1077 buildCounterTableDataInsertAllResponseInsertErrors--; | 1077 buildCounterTableDataInsertAllResponseInsertErrors--; |
1078 } | 1078 } |
1079 | 1079 |
1080 buildUnnamed729() { | 1080 buildUnnamed1102() { |
1081 var o = new core.List<api.TableDataInsertAllResponseInsertErrors>(); | 1081 var o = new core.List<api.TableDataInsertAllResponseInsertErrors>(); |
1082 o.add(buildTableDataInsertAllResponseInsertErrors()); | 1082 o.add(buildTableDataInsertAllResponseInsertErrors()); |
1083 o.add(buildTableDataInsertAllResponseInsertErrors()); | 1083 o.add(buildTableDataInsertAllResponseInsertErrors()); |
1084 return o; | 1084 return o; |
1085 } | 1085 } |
1086 | 1086 |
1087 checkUnnamed729(core.List<api.TableDataInsertAllResponseInsertErrors> o) { | 1087 checkUnnamed1102(core.List<api.TableDataInsertAllResponseInsertErrors> o) { |
1088 unittest.expect(o, unittest.hasLength(2)); | 1088 unittest.expect(o, unittest.hasLength(2)); |
1089 checkTableDataInsertAllResponseInsertErrors(o[0]); | 1089 checkTableDataInsertAllResponseInsertErrors(o[0]); |
1090 checkTableDataInsertAllResponseInsertErrors(o[1]); | 1090 checkTableDataInsertAllResponseInsertErrors(o[1]); |
1091 } | 1091 } |
1092 | 1092 |
1093 core.int buildCounterTableDataInsertAllResponse = 0; | 1093 core.int buildCounterTableDataInsertAllResponse = 0; |
1094 buildTableDataInsertAllResponse() { | 1094 buildTableDataInsertAllResponse() { |
1095 var o = new api.TableDataInsertAllResponse(); | 1095 var o = new api.TableDataInsertAllResponse(); |
1096 buildCounterTableDataInsertAllResponse++; | 1096 buildCounterTableDataInsertAllResponse++; |
1097 if (buildCounterTableDataInsertAllResponse < 3) { | 1097 if (buildCounterTableDataInsertAllResponse < 3) { |
1098 o.insertErrors = buildUnnamed729(); | 1098 o.insertErrors = buildUnnamed1102(); |
1099 o.kind = "foo"; | 1099 o.kind = "foo"; |
1100 } | 1100 } |
1101 buildCounterTableDataInsertAllResponse--; | 1101 buildCounterTableDataInsertAllResponse--; |
1102 return o; | 1102 return o; |
1103 } | 1103 } |
1104 | 1104 |
1105 checkTableDataInsertAllResponse(api.TableDataInsertAllResponse o) { | 1105 checkTableDataInsertAllResponse(api.TableDataInsertAllResponse o) { |
1106 buildCounterTableDataInsertAllResponse++; | 1106 buildCounterTableDataInsertAllResponse++; |
1107 if (buildCounterTableDataInsertAllResponse < 3) { | 1107 if (buildCounterTableDataInsertAllResponse < 3) { |
1108 checkUnnamed729(o.insertErrors); | 1108 checkUnnamed1102(o.insertErrors); |
1109 unittest.expect(o.kind, unittest.equals('foo')); | 1109 unittest.expect(o.kind, unittest.equals('foo')); |
1110 } | 1110 } |
1111 buildCounterTableDataInsertAllResponse--; | 1111 buildCounterTableDataInsertAllResponse--; |
1112 } | 1112 } |
1113 | 1113 |
1114 buildUnnamed730() { | 1114 buildUnnamed1103() { |
1115 var o = new core.List<api.TableRow>(); | 1115 var o = new core.List<api.TableRow>(); |
1116 o.add(buildTableRow()); | 1116 o.add(buildTableRow()); |
1117 o.add(buildTableRow()); | 1117 o.add(buildTableRow()); |
1118 return o; | 1118 return o; |
1119 } | 1119 } |
1120 | 1120 |
1121 checkUnnamed730(core.List<api.TableRow> o) { | 1121 checkUnnamed1103(core.List<api.TableRow> o) { |
1122 unittest.expect(o, unittest.hasLength(2)); | 1122 unittest.expect(o, unittest.hasLength(2)); |
1123 checkTableRow(o[0]); | 1123 checkTableRow(o[0]); |
1124 checkTableRow(o[1]); | 1124 checkTableRow(o[1]); |
1125 } | 1125 } |
1126 | 1126 |
1127 core.int buildCounterTableDataList = 0; | 1127 core.int buildCounterTableDataList = 0; |
1128 buildTableDataList() { | 1128 buildTableDataList() { |
1129 var o = new api.TableDataList(); | 1129 var o = new api.TableDataList(); |
1130 buildCounterTableDataList++; | 1130 buildCounterTableDataList++; |
1131 if (buildCounterTableDataList < 3) { | 1131 if (buildCounterTableDataList < 3) { |
1132 o.etag = "foo"; | 1132 o.etag = "foo"; |
1133 o.kind = "foo"; | 1133 o.kind = "foo"; |
1134 o.pageToken = "foo"; | 1134 o.pageToken = "foo"; |
1135 o.rows = buildUnnamed730(); | 1135 o.rows = buildUnnamed1103(); |
1136 o.totalRows = "foo"; | 1136 o.totalRows = "foo"; |
1137 } | 1137 } |
1138 buildCounterTableDataList--; | 1138 buildCounterTableDataList--; |
1139 return o; | 1139 return o; |
1140 } | 1140 } |
1141 | 1141 |
1142 checkTableDataList(api.TableDataList o) { | 1142 checkTableDataList(api.TableDataList o) { |
1143 buildCounterTableDataList++; | 1143 buildCounterTableDataList++; |
1144 if (buildCounterTableDataList < 3) { | 1144 if (buildCounterTableDataList < 3) { |
1145 unittest.expect(o.etag, unittest.equals('foo')); | 1145 unittest.expect(o.etag, unittest.equals('foo')); |
1146 unittest.expect(o.kind, unittest.equals('foo')); | 1146 unittest.expect(o.kind, unittest.equals('foo')); |
1147 unittest.expect(o.pageToken, unittest.equals('foo')); | 1147 unittest.expect(o.pageToken, unittest.equals('foo')); |
1148 checkUnnamed730(o.rows); | 1148 checkUnnamed1103(o.rows); |
1149 unittest.expect(o.totalRows, unittest.equals('foo')); | 1149 unittest.expect(o.totalRows, unittest.equals('foo')); |
1150 } | 1150 } |
1151 buildCounterTableDataList--; | 1151 buildCounterTableDataList--; |
1152 } | 1152 } |
1153 | 1153 |
1154 buildUnnamed731() { | 1154 buildUnnamed1104() { |
1155 var o = new core.List<api.TableFieldSchema>(); | 1155 var o = new core.List<api.TableFieldSchema>(); |
1156 o.add(buildTableFieldSchema()); | 1156 o.add(buildTableFieldSchema()); |
1157 o.add(buildTableFieldSchema()); | 1157 o.add(buildTableFieldSchema()); |
1158 return o; | 1158 return o; |
1159 } | 1159 } |
1160 | 1160 |
1161 checkUnnamed731(core.List<api.TableFieldSchema> o) { | 1161 checkUnnamed1104(core.List<api.TableFieldSchema> o) { |
1162 unittest.expect(o, unittest.hasLength(2)); | 1162 unittest.expect(o, unittest.hasLength(2)); |
1163 checkTableFieldSchema(o[0]); | 1163 checkTableFieldSchema(o[0]); |
1164 checkTableFieldSchema(o[1]); | 1164 checkTableFieldSchema(o[1]); |
1165 } | 1165 } |
1166 | 1166 |
1167 core.int buildCounterTableFieldSchema = 0; | 1167 core.int buildCounterTableFieldSchema = 0; |
1168 buildTableFieldSchema() { | 1168 buildTableFieldSchema() { |
1169 var o = new api.TableFieldSchema(); | 1169 var o = new api.TableFieldSchema(); |
1170 buildCounterTableFieldSchema++; | 1170 buildCounterTableFieldSchema++; |
1171 if (buildCounterTableFieldSchema < 3) { | 1171 if (buildCounterTableFieldSchema < 3) { |
1172 o.description = "foo"; | 1172 o.description = "foo"; |
1173 o.fields = buildUnnamed731(); | 1173 o.fields = buildUnnamed1104(); |
1174 o.mode = "foo"; | 1174 o.mode = "foo"; |
1175 o.name = "foo"; | 1175 o.name = "foo"; |
1176 o.type = "foo"; | 1176 o.type = "foo"; |
1177 } | 1177 } |
1178 buildCounterTableFieldSchema--; | 1178 buildCounterTableFieldSchema--; |
1179 return o; | 1179 return o; |
1180 } | 1180 } |
1181 | 1181 |
1182 checkTableFieldSchema(api.TableFieldSchema o) { | 1182 checkTableFieldSchema(api.TableFieldSchema o) { |
1183 buildCounterTableFieldSchema++; | 1183 buildCounterTableFieldSchema++; |
1184 if (buildCounterTableFieldSchema < 3) { | 1184 if (buildCounterTableFieldSchema < 3) { |
1185 unittest.expect(o.description, unittest.equals('foo')); | 1185 unittest.expect(o.description, unittest.equals('foo')); |
1186 checkUnnamed731(o.fields); | 1186 checkUnnamed1104(o.fields); |
1187 unittest.expect(o.mode, unittest.equals('foo')); | 1187 unittest.expect(o.mode, unittest.equals('foo')); |
1188 unittest.expect(o.name, unittest.equals('foo')); | 1188 unittest.expect(o.name, unittest.equals('foo')); |
1189 unittest.expect(o.type, unittest.equals('foo')); | 1189 unittest.expect(o.type, unittest.equals('foo')); |
1190 } | 1190 } |
1191 buildCounterTableFieldSchema--; | 1191 buildCounterTableFieldSchema--; |
1192 } | 1192 } |
1193 | 1193 |
1194 core.int buildCounterTableListTables = 0; | 1194 core.int buildCounterTableListTables = 0; |
1195 buildTableListTables() { | 1195 buildTableListTables() { |
1196 var o = new api.TableListTables(); | 1196 var o = new api.TableListTables(); |
(...skipping 14 matching lines...) Expand all Loading... |
1211 if (buildCounterTableListTables < 3) { | 1211 if (buildCounterTableListTables < 3) { |
1212 unittest.expect(o.friendlyName, unittest.equals('foo')); | 1212 unittest.expect(o.friendlyName, unittest.equals('foo')); |
1213 unittest.expect(o.id, unittest.equals('foo')); | 1213 unittest.expect(o.id, unittest.equals('foo')); |
1214 unittest.expect(o.kind, unittest.equals('foo')); | 1214 unittest.expect(o.kind, unittest.equals('foo')); |
1215 checkTableReference(o.tableReference); | 1215 checkTableReference(o.tableReference); |
1216 unittest.expect(o.type, unittest.equals('foo')); | 1216 unittest.expect(o.type, unittest.equals('foo')); |
1217 } | 1217 } |
1218 buildCounterTableListTables--; | 1218 buildCounterTableListTables--; |
1219 } | 1219 } |
1220 | 1220 |
1221 buildUnnamed732() { | 1221 buildUnnamed1105() { |
1222 var o = new core.List<api.TableListTables>(); | 1222 var o = new core.List<api.TableListTables>(); |
1223 o.add(buildTableListTables()); | 1223 o.add(buildTableListTables()); |
1224 o.add(buildTableListTables()); | 1224 o.add(buildTableListTables()); |
1225 return o; | 1225 return o; |
1226 } | 1226 } |
1227 | 1227 |
1228 checkUnnamed732(core.List<api.TableListTables> o) { | 1228 checkUnnamed1105(core.List<api.TableListTables> o) { |
1229 unittest.expect(o, unittest.hasLength(2)); | 1229 unittest.expect(o, unittest.hasLength(2)); |
1230 checkTableListTables(o[0]); | 1230 checkTableListTables(o[0]); |
1231 checkTableListTables(o[1]); | 1231 checkTableListTables(o[1]); |
1232 } | 1232 } |
1233 | 1233 |
1234 core.int buildCounterTableList = 0; | 1234 core.int buildCounterTableList = 0; |
1235 buildTableList() { | 1235 buildTableList() { |
1236 var o = new api.TableList(); | 1236 var o = new api.TableList(); |
1237 buildCounterTableList++; | 1237 buildCounterTableList++; |
1238 if (buildCounterTableList < 3) { | 1238 if (buildCounterTableList < 3) { |
1239 o.etag = "foo"; | 1239 o.etag = "foo"; |
1240 o.kind = "foo"; | 1240 o.kind = "foo"; |
1241 o.nextPageToken = "foo"; | 1241 o.nextPageToken = "foo"; |
1242 o.tables = buildUnnamed732(); | 1242 o.tables = buildUnnamed1105(); |
1243 o.totalItems = 42; | 1243 o.totalItems = 42; |
1244 } | 1244 } |
1245 buildCounterTableList--; | 1245 buildCounterTableList--; |
1246 return o; | 1246 return o; |
1247 } | 1247 } |
1248 | 1248 |
1249 checkTableList(api.TableList o) { | 1249 checkTableList(api.TableList o) { |
1250 buildCounterTableList++; | 1250 buildCounterTableList++; |
1251 if (buildCounterTableList < 3) { | 1251 if (buildCounterTableList < 3) { |
1252 unittest.expect(o.etag, unittest.equals('foo')); | 1252 unittest.expect(o.etag, unittest.equals('foo')); |
1253 unittest.expect(o.kind, unittest.equals('foo')); | 1253 unittest.expect(o.kind, unittest.equals('foo')); |
1254 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1254 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1255 checkUnnamed732(o.tables); | 1255 checkUnnamed1105(o.tables); |
1256 unittest.expect(o.totalItems, unittest.equals(42)); | 1256 unittest.expect(o.totalItems, unittest.equals(42)); |
1257 } | 1257 } |
1258 buildCounterTableList--; | 1258 buildCounterTableList--; |
1259 } | 1259 } |
1260 | 1260 |
1261 core.int buildCounterTableReference = 0; | 1261 core.int buildCounterTableReference = 0; |
1262 buildTableReference() { | 1262 buildTableReference() { |
1263 var o = new api.TableReference(); | 1263 var o = new api.TableReference(); |
1264 buildCounterTableReference++; | 1264 buildCounterTableReference++; |
1265 if (buildCounterTableReference < 3) { | 1265 if (buildCounterTableReference < 3) { |
1266 o.datasetId = "foo"; | 1266 o.datasetId = "foo"; |
1267 o.projectId = "foo"; | 1267 o.projectId = "foo"; |
1268 o.tableId = "foo"; | 1268 o.tableId = "foo"; |
1269 } | 1269 } |
1270 buildCounterTableReference--; | 1270 buildCounterTableReference--; |
1271 return o; | 1271 return o; |
1272 } | 1272 } |
1273 | 1273 |
1274 checkTableReference(api.TableReference o) { | 1274 checkTableReference(api.TableReference o) { |
1275 buildCounterTableReference++; | 1275 buildCounterTableReference++; |
1276 if (buildCounterTableReference < 3) { | 1276 if (buildCounterTableReference < 3) { |
1277 unittest.expect(o.datasetId, unittest.equals('foo')); | 1277 unittest.expect(o.datasetId, unittest.equals('foo')); |
1278 unittest.expect(o.projectId, unittest.equals('foo')); | 1278 unittest.expect(o.projectId, unittest.equals('foo')); |
1279 unittest.expect(o.tableId, unittest.equals('foo')); | 1279 unittest.expect(o.tableId, unittest.equals('foo')); |
1280 } | 1280 } |
1281 buildCounterTableReference--; | 1281 buildCounterTableReference--; |
1282 } | 1282 } |
1283 | 1283 |
1284 buildUnnamed733() { | 1284 buildUnnamed1106() { |
1285 var o = new core.List<api.TableCell>(); | 1285 var o = new core.List<api.TableCell>(); |
1286 o.add(buildTableCell()); | 1286 o.add(buildTableCell()); |
1287 o.add(buildTableCell()); | 1287 o.add(buildTableCell()); |
1288 return o; | 1288 return o; |
1289 } | 1289 } |
1290 | 1290 |
1291 checkUnnamed733(core.List<api.TableCell> o) { | 1291 checkUnnamed1106(core.List<api.TableCell> o) { |
1292 unittest.expect(o, unittest.hasLength(2)); | 1292 unittest.expect(o, unittest.hasLength(2)); |
1293 checkTableCell(o[0]); | 1293 checkTableCell(o[0]); |
1294 checkTableCell(o[1]); | 1294 checkTableCell(o[1]); |
1295 } | 1295 } |
1296 | 1296 |
1297 core.int buildCounterTableRow = 0; | 1297 core.int buildCounterTableRow = 0; |
1298 buildTableRow() { | 1298 buildTableRow() { |
1299 var o = new api.TableRow(); | 1299 var o = new api.TableRow(); |
1300 buildCounterTableRow++; | 1300 buildCounterTableRow++; |
1301 if (buildCounterTableRow < 3) { | 1301 if (buildCounterTableRow < 3) { |
1302 o.f = buildUnnamed733(); | 1302 o.f = buildUnnamed1106(); |
1303 } | 1303 } |
1304 buildCounterTableRow--; | 1304 buildCounterTableRow--; |
1305 return o; | 1305 return o; |
1306 } | 1306 } |
1307 | 1307 |
1308 checkTableRow(api.TableRow o) { | 1308 checkTableRow(api.TableRow o) { |
1309 buildCounterTableRow++; | 1309 buildCounterTableRow++; |
1310 if (buildCounterTableRow < 3) { | 1310 if (buildCounterTableRow < 3) { |
1311 checkUnnamed733(o.f); | 1311 checkUnnamed1106(o.f); |
1312 } | 1312 } |
1313 buildCounterTableRow--; | 1313 buildCounterTableRow--; |
1314 } | 1314 } |
1315 | 1315 |
1316 buildUnnamed734() { | 1316 buildUnnamed1107() { |
1317 var o = new core.List<api.TableFieldSchema>(); | 1317 var o = new core.List<api.TableFieldSchema>(); |
1318 o.add(buildTableFieldSchema()); | 1318 o.add(buildTableFieldSchema()); |
1319 o.add(buildTableFieldSchema()); | 1319 o.add(buildTableFieldSchema()); |
1320 return o; | 1320 return o; |
1321 } | 1321 } |
1322 | 1322 |
1323 checkUnnamed734(core.List<api.TableFieldSchema> o) { | 1323 checkUnnamed1107(core.List<api.TableFieldSchema> o) { |
1324 unittest.expect(o, unittest.hasLength(2)); | 1324 unittest.expect(o, unittest.hasLength(2)); |
1325 checkTableFieldSchema(o[0]); | 1325 checkTableFieldSchema(o[0]); |
1326 checkTableFieldSchema(o[1]); | 1326 checkTableFieldSchema(o[1]); |
1327 } | 1327 } |
1328 | 1328 |
1329 core.int buildCounterTableSchema = 0; | 1329 core.int buildCounterTableSchema = 0; |
1330 buildTableSchema() { | 1330 buildTableSchema() { |
1331 var o = new api.TableSchema(); | 1331 var o = new api.TableSchema(); |
1332 buildCounterTableSchema++; | 1332 buildCounterTableSchema++; |
1333 if (buildCounterTableSchema < 3) { | 1333 if (buildCounterTableSchema < 3) { |
1334 o.fields = buildUnnamed734(); | 1334 o.fields = buildUnnamed1107(); |
1335 } | 1335 } |
1336 buildCounterTableSchema--; | 1336 buildCounterTableSchema--; |
1337 return o; | 1337 return o; |
1338 } | 1338 } |
1339 | 1339 |
1340 checkTableSchema(api.TableSchema o) { | 1340 checkTableSchema(api.TableSchema o) { |
1341 buildCounterTableSchema++; | 1341 buildCounterTableSchema++; |
1342 if (buildCounterTableSchema < 3) { | 1342 if (buildCounterTableSchema < 3) { |
1343 checkUnnamed734(o.fields); | 1343 checkUnnamed1107(o.fields); |
1344 } | 1344 } |
1345 buildCounterTableSchema--; | 1345 buildCounterTableSchema--; |
1346 } | 1346 } |
1347 | 1347 |
1348 core.int buildCounterViewDefinition = 0; | 1348 core.int buildCounterViewDefinition = 0; |
1349 buildViewDefinition() { | 1349 buildViewDefinition() { |
1350 var o = new api.ViewDefinition(); | 1350 var o = new api.ViewDefinition(); |
1351 buildCounterViewDefinition++; | 1351 buildCounterViewDefinition++; |
1352 if (buildCounterViewDefinition < 3) { | 1352 if (buildCounterViewDefinition < 3) { |
1353 o.query = "foo"; | 1353 o.query = "foo"; |
1354 } | 1354 } |
1355 buildCounterViewDefinition--; | 1355 buildCounterViewDefinition--; |
1356 return o; | 1356 return o; |
1357 } | 1357 } |
1358 | 1358 |
1359 checkViewDefinition(api.ViewDefinition o) { | 1359 checkViewDefinition(api.ViewDefinition o) { |
1360 buildCounterViewDefinition++; | 1360 buildCounterViewDefinition++; |
1361 if (buildCounterViewDefinition < 3) { | 1361 if (buildCounterViewDefinition < 3) { |
1362 unittest.expect(o.query, unittest.equals('foo')); | 1362 unittest.expect(o.query, unittest.equals('foo')); |
1363 } | 1363 } |
1364 buildCounterViewDefinition--; | 1364 buildCounterViewDefinition--; |
1365 } | 1365 } |
1366 | 1366 |
1367 buildUnnamed735() { | 1367 buildUnnamed1108() { |
1368 var o = new core.List<core.String>(); | 1368 var o = new core.List<core.String>(); |
1369 o.add("foo"); | 1369 o.add("foo"); |
1370 o.add("foo"); | 1370 o.add("foo"); |
1371 return o; | 1371 return o; |
1372 } | 1372 } |
1373 | 1373 |
1374 checkUnnamed735(core.List<core.String> o) { | 1374 checkUnnamed1108(core.List<core.String> o) { |
1375 unittest.expect(o, unittest.hasLength(2)); | 1375 unittest.expect(o, unittest.hasLength(2)); |
1376 unittest.expect(o[0], unittest.equals('foo')); | 1376 unittest.expect(o[0], unittest.equals('foo')); |
1377 unittest.expect(o[1], unittest.equals('foo')); | 1377 unittest.expect(o[1], unittest.equals('foo')); |
1378 } | 1378 } |
1379 | 1379 |
1380 | 1380 |
1381 main() { | 1381 main() { |
1382 unittest.group("obj-schema-DatasetAccess", () { | 1382 unittest.group("obj-schema-DatasetAccess", () { |
1383 unittest.test("to-json--from-json", () { | 1383 unittest.test("to-json--from-json", () { |
1384 var o = buildDatasetAccess(); | 1384 var o = buildDatasetAccess(); |
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2288 | 2288 |
2289 unittest.test("method--list", () { | 2289 unittest.test("method--list", () { |
2290 | 2290 |
2291 var mock = new common_test.HttpServerMock(); | 2291 var mock = new common_test.HttpServerMock(); |
2292 api.JobsResourceApi res = new api.BigqueryApi(mock).jobs; | 2292 api.JobsResourceApi res = new api.BigqueryApi(mock).jobs; |
2293 var arg_projectId = "foo"; | 2293 var arg_projectId = "foo"; |
2294 var arg_allUsers = true; | 2294 var arg_allUsers = true; |
2295 var arg_maxResults = 42; | 2295 var arg_maxResults = 42; |
2296 var arg_pageToken = "foo"; | 2296 var arg_pageToken = "foo"; |
2297 var arg_projection = "foo"; | 2297 var arg_projection = "foo"; |
2298 var arg_stateFilter = buildUnnamed735(); | 2298 var arg_stateFilter = buildUnnamed1108(); |
2299 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2299 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2300 var path = (req.url).path; | 2300 var path = (req.url).path; |
2301 var pathOffset = 0; | 2301 var pathOffset = 0; |
2302 var index; | 2302 var index; |
2303 var subPart; | 2303 var subPart; |
2304 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2304 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2305 pathOffset += 1; | 2305 pathOffset += 1; |
2306 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("bigquery/v2/")); | 2306 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("bigquery/v2/")); |
2307 pathOffset += 12; | 2307 pathOffset += 12; |
2308 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 2308 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) { | 3009 res.update(arg_request, arg_projectId, arg_datasetId, arg_tableId).then(un
ittest.expectAsync(((api.Table response) { |
3010 checkTable(response); | 3010 checkTable(response); |
3011 }))); | 3011 }))); |
3012 }); | 3012 }); |
3013 | 3013 |
3014 }); | 3014 }); |
3015 | 3015 |
3016 | 3016 |
3017 } | 3017 } |
3018 | 3018 |
OLD | NEW |