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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 unittest.expect(o.encoding, unittest.equals('foo')); | 73 unittest.expect(o.encoding, unittest.equals('foo')); |
74 unittest.expect(o.fieldName, unittest.equals('foo')); | 74 unittest.expect(o.fieldName, unittest.equals('foo')); |
75 unittest.expect(o.onlyReadLatest, unittest.isTrue); | 75 unittest.expect(o.onlyReadLatest, unittest.isTrue); |
76 unittest.expect(o.qualifierEncoded, unittest.equals('foo')); | 76 unittest.expect(o.qualifierEncoded, unittest.equals('foo')); |
77 unittest.expect(o.qualifierString, unittest.equals('foo')); | 77 unittest.expect(o.qualifierString, unittest.equals('foo')); |
78 unittest.expect(o.type, unittest.equals('foo')); | 78 unittest.expect(o.type, unittest.equals('foo')); |
79 } | 79 } |
80 buildCounterBigtableColumn--; | 80 buildCounterBigtableColumn--; |
81 } | 81 } |
82 | 82 |
83 buildUnnamed3372() { | 83 buildUnnamed3185() { |
84 var o = new core.List<api.BigtableColumn>(); | 84 var o = new core.List<api.BigtableColumn>(); |
85 o.add(buildBigtableColumn()); | 85 o.add(buildBigtableColumn()); |
86 o.add(buildBigtableColumn()); | 86 o.add(buildBigtableColumn()); |
87 return o; | 87 return o; |
88 } | 88 } |
89 | 89 |
90 checkUnnamed3372(core.List<api.BigtableColumn> o) { | 90 checkUnnamed3185(core.List<api.BigtableColumn> o) { |
91 unittest.expect(o, unittest.hasLength(2)); | 91 unittest.expect(o, unittest.hasLength(2)); |
92 checkBigtableColumn(o[0]); | 92 checkBigtableColumn(o[0]); |
93 checkBigtableColumn(o[1]); | 93 checkBigtableColumn(o[1]); |
94 } | 94 } |
95 | 95 |
96 core.int buildCounterBigtableColumnFamily = 0; | 96 core.int buildCounterBigtableColumnFamily = 0; |
97 buildBigtableColumnFamily() { | 97 buildBigtableColumnFamily() { |
98 var o = new api.BigtableColumnFamily(); | 98 var o = new api.BigtableColumnFamily(); |
99 buildCounterBigtableColumnFamily++; | 99 buildCounterBigtableColumnFamily++; |
100 if (buildCounterBigtableColumnFamily < 3) { | 100 if (buildCounterBigtableColumnFamily < 3) { |
101 o.columns = buildUnnamed3372(); | 101 o.columns = buildUnnamed3185(); |
102 o.encoding = "foo"; | 102 o.encoding = "foo"; |
103 o.familyId = "foo"; | 103 o.familyId = "foo"; |
104 o.onlyReadLatest = true; | 104 o.onlyReadLatest = true; |
105 o.type = "foo"; | 105 o.type = "foo"; |
106 } | 106 } |
107 buildCounterBigtableColumnFamily--; | 107 buildCounterBigtableColumnFamily--; |
108 return o; | 108 return o; |
109 } | 109 } |
110 | 110 |
111 checkBigtableColumnFamily(api.BigtableColumnFamily o) { | 111 checkBigtableColumnFamily(api.BigtableColumnFamily o) { |
112 buildCounterBigtableColumnFamily++; | 112 buildCounterBigtableColumnFamily++; |
113 if (buildCounterBigtableColumnFamily < 3) { | 113 if (buildCounterBigtableColumnFamily < 3) { |
114 checkUnnamed3372(o.columns); | 114 checkUnnamed3185(o.columns); |
115 unittest.expect(o.encoding, unittest.equals('foo')); | 115 unittest.expect(o.encoding, unittest.equals('foo')); |
116 unittest.expect(o.familyId, unittest.equals('foo')); | 116 unittest.expect(o.familyId, unittest.equals('foo')); |
117 unittest.expect(o.onlyReadLatest, unittest.isTrue); | 117 unittest.expect(o.onlyReadLatest, unittest.isTrue); |
118 unittest.expect(o.type, unittest.equals('foo')); | 118 unittest.expect(o.type, unittest.equals('foo')); |
119 } | 119 } |
120 buildCounterBigtableColumnFamily--; | 120 buildCounterBigtableColumnFamily--; |
121 } | 121 } |
122 | 122 |
123 buildUnnamed3373() { | 123 buildUnnamed3186() { |
124 var o = new core.List<api.BigtableColumnFamily>(); | 124 var o = new core.List<api.BigtableColumnFamily>(); |
125 o.add(buildBigtableColumnFamily()); | 125 o.add(buildBigtableColumnFamily()); |
126 o.add(buildBigtableColumnFamily()); | 126 o.add(buildBigtableColumnFamily()); |
127 return o; | 127 return o; |
128 } | 128 } |
129 | 129 |
130 checkUnnamed3373(core.List<api.BigtableColumnFamily> o) { | 130 checkUnnamed3186(core.List<api.BigtableColumnFamily> o) { |
131 unittest.expect(o, unittest.hasLength(2)); | 131 unittest.expect(o, unittest.hasLength(2)); |
132 checkBigtableColumnFamily(o[0]); | 132 checkBigtableColumnFamily(o[0]); |
133 checkBigtableColumnFamily(o[1]); | 133 checkBigtableColumnFamily(o[1]); |
134 } | 134 } |
135 | 135 |
136 core.int buildCounterBigtableOptions = 0; | 136 core.int buildCounterBigtableOptions = 0; |
137 buildBigtableOptions() { | 137 buildBigtableOptions() { |
138 var o = new api.BigtableOptions(); | 138 var o = new api.BigtableOptions(); |
139 buildCounterBigtableOptions++; | 139 buildCounterBigtableOptions++; |
140 if (buildCounterBigtableOptions < 3) { | 140 if (buildCounterBigtableOptions < 3) { |
141 o.columnFamilies = buildUnnamed3373(); | 141 o.columnFamilies = buildUnnamed3186(); |
142 o.ignoreUnspecifiedColumnFamilies = true; | 142 o.ignoreUnspecifiedColumnFamilies = true; |
143 o.readRowkeyAsString = true; | 143 o.readRowkeyAsString = true; |
144 } | 144 } |
145 buildCounterBigtableOptions--; | 145 buildCounterBigtableOptions--; |
146 return o; | 146 return o; |
147 } | 147 } |
148 | 148 |
149 checkBigtableOptions(api.BigtableOptions o) { | 149 checkBigtableOptions(api.BigtableOptions o) { |
150 buildCounterBigtableOptions++; | 150 buildCounterBigtableOptions++; |
151 if (buildCounterBigtableOptions < 3) { | 151 if (buildCounterBigtableOptions < 3) { |
152 checkUnnamed3373(o.columnFamilies); | 152 checkUnnamed3186(o.columnFamilies); |
153 unittest.expect(o.ignoreUnspecifiedColumnFamilies, unittest.isTrue); | 153 unittest.expect(o.ignoreUnspecifiedColumnFamilies, unittest.isTrue); |
154 unittest.expect(o.readRowkeyAsString, unittest.isTrue); | 154 unittest.expect(o.readRowkeyAsString, unittest.isTrue); |
155 } | 155 } |
156 buildCounterBigtableOptions--; | 156 buildCounterBigtableOptions--; |
157 } | 157 } |
158 | 158 |
159 core.int buildCounterCsvOptions = 0; | 159 core.int buildCounterCsvOptions = 0; |
160 buildCsvOptions() { | 160 buildCsvOptions() { |
161 var o = new api.CsvOptions(); | 161 var o = new api.CsvOptions(); |
162 buildCounterCsvOptions++; | 162 buildCounterCsvOptions++; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 unittest.expect(o.domain, unittest.equals('foo')); | 207 unittest.expect(o.domain, unittest.equals('foo')); |
208 unittest.expect(o.groupByEmail, unittest.equals('foo')); | 208 unittest.expect(o.groupByEmail, unittest.equals('foo')); |
209 unittest.expect(o.role, unittest.equals('foo')); | 209 unittest.expect(o.role, unittest.equals('foo')); |
210 unittest.expect(o.specialGroup, unittest.equals('foo')); | 210 unittest.expect(o.specialGroup, unittest.equals('foo')); |
211 unittest.expect(o.userByEmail, unittest.equals('foo')); | 211 unittest.expect(o.userByEmail, unittest.equals('foo')); |
212 checkTableReference(o.view); | 212 checkTableReference(o.view); |
213 } | 213 } |
214 buildCounterDatasetAccess--; | 214 buildCounterDatasetAccess--; |
215 } | 215 } |
216 | 216 |
217 buildUnnamed3374() { | 217 buildUnnamed3187() { |
218 var o = new core.List<api.DatasetAccess>(); | 218 var o = new core.List<api.DatasetAccess>(); |
219 o.add(buildDatasetAccess()); | 219 o.add(buildDatasetAccess()); |
220 o.add(buildDatasetAccess()); | 220 o.add(buildDatasetAccess()); |
221 return o; | 221 return o; |
222 } | 222 } |
223 | 223 |
224 checkUnnamed3374(core.List<api.DatasetAccess> o) { | 224 checkUnnamed3187(core.List<api.DatasetAccess> o) { |
225 unittest.expect(o, unittest.hasLength(2)); | 225 unittest.expect(o, unittest.hasLength(2)); |
226 checkDatasetAccess(o[0]); | 226 checkDatasetAccess(o[0]); |
227 checkDatasetAccess(o[1]); | 227 checkDatasetAccess(o[1]); |
228 } | 228 } |
229 | 229 |
230 buildUnnamed3375() { | 230 buildUnnamed3188() { |
231 var o = new core.Map<core.String, core.String>(); | 231 var o = new core.Map<core.String, core.String>(); |
232 o["x"] = "foo"; | 232 o["x"] = "foo"; |
233 o["y"] = "foo"; | 233 o["y"] = "foo"; |
234 return o; | 234 return o; |
235 } | 235 } |
236 | 236 |
237 checkUnnamed3375(core.Map<core.String, core.String> o) { | 237 checkUnnamed3188(core.Map<core.String, core.String> o) { |
238 unittest.expect(o, unittest.hasLength(2)); | 238 unittest.expect(o, unittest.hasLength(2)); |
239 unittest.expect(o["x"], unittest.equals('foo')); | 239 unittest.expect(o["x"], unittest.equals('foo')); |
240 unittest.expect(o["y"], unittest.equals('foo')); | 240 unittest.expect(o["y"], unittest.equals('foo')); |
241 } | 241 } |
242 | 242 |
243 core.int buildCounterDataset = 0; | 243 core.int buildCounterDataset = 0; |
244 buildDataset() { | 244 buildDataset() { |
245 var o = new api.Dataset(); | 245 var o = new api.Dataset(); |
246 buildCounterDataset++; | 246 buildCounterDataset++; |
247 if (buildCounterDataset < 3) { | 247 if (buildCounterDataset < 3) { |
248 o.access = buildUnnamed3374(); | 248 o.access = buildUnnamed3187(); |
249 o.creationTime = "foo"; | 249 o.creationTime = "foo"; |
250 o.datasetReference = buildDatasetReference(); | 250 o.datasetReference = buildDatasetReference(); |
251 o.defaultTableExpirationMs = "foo"; | 251 o.defaultTableExpirationMs = "foo"; |
252 o.description = "foo"; | 252 o.description = "foo"; |
253 o.etag = "foo"; | 253 o.etag = "foo"; |
254 o.friendlyName = "foo"; | 254 o.friendlyName = "foo"; |
255 o.id = "foo"; | 255 o.id = "foo"; |
256 o.kind = "foo"; | 256 o.kind = "foo"; |
257 o.labels = buildUnnamed3375(); | 257 o.labels = buildUnnamed3188(); |
258 o.lastModifiedTime = "foo"; | 258 o.lastModifiedTime = "foo"; |
259 o.location = "foo"; | 259 o.location = "foo"; |
260 o.selfLink = "foo"; | 260 o.selfLink = "foo"; |
261 } | 261 } |
262 buildCounterDataset--; | 262 buildCounterDataset--; |
263 return o; | 263 return o; |
264 } | 264 } |
265 | 265 |
266 checkDataset(api.Dataset o) { | 266 checkDataset(api.Dataset o) { |
267 buildCounterDataset++; | 267 buildCounterDataset++; |
268 if (buildCounterDataset < 3) { | 268 if (buildCounterDataset < 3) { |
269 checkUnnamed3374(o.access); | 269 checkUnnamed3187(o.access); |
270 unittest.expect(o.creationTime, unittest.equals('foo')); | 270 unittest.expect(o.creationTime, unittest.equals('foo')); |
271 checkDatasetReference(o.datasetReference); | 271 checkDatasetReference(o.datasetReference); |
272 unittest.expect(o.defaultTableExpirationMs, unittest.equals('foo')); | 272 unittest.expect(o.defaultTableExpirationMs, unittest.equals('foo')); |
273 unittest.expect(o.description, unittest.equals('foo')); | 273 unittest.expect(o.description, unittest.equals('foo')); |
274 unittest.expect(o.etag, unittest.equals('foo')); | 274 unittest.expect(o.etag, unittest.equals('foo')); |
275 unittest.expect(o.friendlyName, unittest.equals('foo')); | 275 unittest.expect(o.friendlyName, unittest.equals('foo')); |
276 unittest.expect(o.id, unittest.equals('foo')); | 276 unittest.expect(o.id, unittest.equals('foo')); |
277 unittest.expect(o.kind, unittest.equals('foo')); | 277 unittest.expect(o.kind, unittest.equals('foo')); |
278 checkUnnamed3375(o.labels); | 278 checkUnnamed3188(o.labels); |
279 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); | 279 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); |
280 unittest.expect(o.location, unittest.equals('foo')); | 280 unittest.expect(o.location, unittest.equals('foo')); |
281 unittest.expect(o.selfLink, unittest.equals('foo')); | 281 unittest.expect(o.selfLink, unittest.equals('foo')); |
282 } | 282 } |
283 buildCounterDataset--; | 283 buildCounterDataset--; |
284 } | 284 } |
285 | 285 |
286 buildUnnamed3376() { | 286 buildUnnamed3189() { |
287 var o = new core.Map<core.String, core.String>(); | 287 var o = new core.Map<core.String, core.String>(); |
288 o["x"] = "foo"; | 288 o["x"] = "foo"; |
289 o["y"] = "foo"; | 289 o["y"] = "foo"; |
290 return o; | 290 return o; |
291 } | 291 } |
292 | 292 |
293 checkUnnamed3376(core.Map<core.String, core.String> o) { | 293 checkUnnamed3189(core.Map<core.String, core.String> o) { |
294 unittest.expect(o, unittest.hasLength(2)); | 294 unittest.expect(o, unittest.hasLength(2)); |
295 unittest.expect(o["x"], unittest.equals('foo')); | 295 unittest.expect(o["x"], unittest.equals('foo')); |
296 unittest.expect(o["y"], unittest.equals('foo')); | 296 unittest.expect(o["y"], unittest.equals('foo')); |
297 } | 297 } |
298 | 298 |
299 core.int buildCounterDatasetListDatasets = 0; | 299 core.int buildCounterDatasetListDatasets = 0; |
300 buildDatasetListDatasets() { | 300 buildDatasetListDatasets() { |
301 var o = new api.DatasetListDatasets(); | 301 var o = new api.DatasetListDatasets(); |
302 buildCounterDatasetListDatasets++; | 302 buildCounterDatasetListDatasets++; |
303 if (buildCounterDatasetListDatasets < 3) { | 303 if (buildCounterDatasetListDatasets < 3) { |
304 o.datasetReference = buildDatasetReference(); | 304 o.datasetReference = buildDatasetReference(); |
305 o.friendlyName = "foo"; | 305 o.friendlyName = "foo"; |
306 o.id = "foo"; | 306 o.id = "foo"; |
307 o.kind = "foo"; | 307 o.kind = "foo"; |
308 o.labels = buildUnnamed3376(); | 308 o.labels = buildUnnamed3189(); |
309 } | 309 } |
310 buildCounterDatasetListDatasets--; | 310 buildCounterDatasetListDatasets--; |
311 return o; | 311 return o; |
312 } | 312 } |
313 | 313 |
314 checkDatasetListDatasets(api.DatasetListDatasets o) { | 314 checkDatasetListDatasets(api.DatasetListDatasets o) { |
315 buildCounterDatasetListDatasets++; | 315 buildCounterDatasetListDatasets++; |
316 if (buildCounterDatasetListDatasets < 3) { | 316 if (buildCounterDatasetListDatasets < 3) { |
317 checkDatasetReference(o.datasetReference); | 317 checkDatasetReference(o.datasetReference); |
318 unittest.expect(o.friendlyName, unittest.equals('foo')); | 318 unittest.expect(o.friendlyName, unittest.equals('foo')); |
319 unittest.expect(o.id, unittest.equals('foo')); | 319 unittest.expect(o.id, unittest.equals('foo')); |
320 unittest.expect(o.kind, unittest.equals('foo')); | 320 unittest.expect(o.kind, unittest.equals('foo')); |
321 checkUnnamed3376(o.labels); | 321 checkUnnamed3189(o.labels); |
322 } | 322 } |
323 buildCounterDatasetListDatasets--; | 323 buildCounterDatasetListDatasets--; |
324 } | 324 } |
325 | 325 |
326 buildUnnamed3377() { | 326 buildUnnamed3190() { |
327 var o = new core.List<api.DatasetListDatasets>(); | 327 var o = new core.List<api.DatasetListDatasets>(); |
328 o.add(buildDatasetListDatasets()); | 328 o.add(buildDatasetListDatasets()); |
329 o.add(buildDatasetListDatasets()); | 329 o.add(buildDatasetListDatasets()); |
330 return o; | 330 return o; |
331 } | 331 } |
332 | 332 |
333 checkUnnamed3377(core.List<api.DatasetListDatasets> o) { | 333 checkUnnamed3190(core.List<api.DatasetListDatasets> o) { |
334 unittest.expect(o, unittest.hasLength(2)); | 334 unittest.expect(o, unittest.hasLength(2)); |
335 checkDatasetListDatasets(o[0]); | 335 checkDatasetListDatasets(o[0]); |
336 checkDatasetListDatasets(o[1]); | 336 checkDatasetListDatasets(o[1]); |
337 } | 337 } |
338 | 338 |
339 core.int buildCounterDatasetList = 0; | 339 core.int buildCounterDatasetList = 0; |
340 buildDatasetList() { | 340 buildDatasetList() { |
341 var o = new api.DatasetList(); | 341 var o = new api.DatasetList(); |
342 buildCounterDatasetList++; | 342 buildCounterDatasetList++; |
343 if (buildCounterDatasetList < 3) { | 343 if (buildCounterDatasetList < 3) { |
344 o.datasets = buildUnnamed3377(); | 344 o.datasets = buildUnnamed3190(); |
345 o.etag = "foo"; | 345 o.etag = "foo"; |
346 o.kind = "foo"; | 346 o.kind = "foo"; |
347 o.nextPageToken = "foo"; | 347 o.nextPageToken = "foo"; |
348 } | 348 } |
349 buildCounterDatasetList--; | 349 buildCounterDatasetList--; |
350 return o; | 350 return o; |
351 } | 351 } |
352 | 352 |
353 checkDatasetList(api.DatasetList o) { | 353 checkDatasetList(api.DatasetList o) { |
354 buildCounterDatasetList++; | 354 buildCounterDatasetList++; |
355 if (buildCounterDatasetList < 3) { | 355 if (buildCounterDatasetList < 3) { |
356 checkUnnamed3377(o.datasets); | 356 checkUnnamed3190(o.datasets); |
357 unittest.expect(o.etag, unittest.equals('foo')); | 357 unittest.expect(o.etag, unittest.equals('foo')); |
358 unittest.expect(o.kind, unittest.equals('foo')); | 358 unittest.expect(o.kind, unittest.equals('foo')); |
359 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 359 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
360 } | 360 } |
361 buildCounterDatasetList--; | 361 buildCounterDatasetList--; |
362 } | 362 } |
363 | 363 |
364 core.int buildCounterDatasetReference = 0; | 364 core.int buildCounterDatasetReference = 0; |
365 buildDatasetReference() { | 365 buildDatasetReference() { |
366 var o = new api.DatasetReference(); | 366 var o = new api.DatasetReference(); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 buildCounterErrorProto++; | 400 buildCounterErrorProto++; |
401 if (buildCounterErrorProto < 3) { | 401 if (buildCounterErrorProto < 3) { |
402 unittest.expect(o.debugInfo, unittest.equals('foo')); | 402 unittest.expect(o.debugInfo, unittest.equals('foo')); |
403 unittest.expect(o.location, unittest.equals('foo')); | 403 unittest.expect(o.location, unittest.equals('foo')); |
404 unittest.expect(o.message, unittest.equals('foo')); | 404 unittest.expect(o.message, unittest.equals('foo')); |
405 unittest.expect(o.reason, unittest.equals('foo')); | 405 unittest.expect(o.reason, unittest.equals('foo')); |
406 } | 406 } |
407 buildCounterErrorProto--; | 407 buildCounterErrorProto--; |
408 } | 408 } |
409 | 409 |
410 buildUnnamed3378() { | 410 buildUnnamed3191() { |
411 var o = new core.List<api.ExplainQueryStep>(); | 411 var o = new core.List<api.ExplainQueryStep>(); |
412 o.add(buildExplainQueryStep()); | 412 o.add(buildExplainQueryStep()); |
413 o.add(buildExplainQueryStep()); | 413 o.add(buildExplainQueryStep()); |
414 return o; | 414 return o; |
415 } | 415 } |
416 | 416 |
417 checkUnnamed3378(core.List<api.ExplainQueryStep> o) { | 417 checkUnnamed3191(core.List<api.ExplainQueryStep> o) { |
418 unittest.expect(o, unittest.hasLength(2)); | 418 unittest.expect(o, unittest.hasLength(2)); |
419 checkExplainQueryStep(o[0]); | 419 checkExplainQueryStep(o[0]); |
420 checkExplainQueryStep(o[1]); | 420 checkExplainQueryStep(o[1]); |
421 } | 421 } |
422 | 422 |
423 core.int buildCounterExplainQueryStage = 0; | 423 core.int buildCounterExplainQueryStage = 0; |
424 buildExplainQueryStage() { | 424 buildExplainQueryStage() { |
425 var o = new api.ExplainQueryStage(); | 425 var o = new api.ExplainQueryStage(); |
426 buildCounterExplainQueryStage++; | 426 buildCounterExplainQueryStage++; |
427 if (buildCounterExplainQueryStage < 3) { | 427 if (buildCounterExplainQueryStage < 3) { |
428 o.computeRatioAvg = 42.0; | 428 o.computeRatioAvg = 42.0; |
429 o.computeRatioMax = 42.0; | 429 o.computeRatioMax = 42.0; |
430 o.id = "foo"; | 430 o.id = "foo"; |
431 o.name = "foo"; | 431 o.name = "foo"; |
432 o.readRatioAvg = 42.0; | 432 o.readRatioAvg = 42.0; |
433 o.readRatioMax = 42.0; | 433 o.readRatioMax = 42.0; |
434 o.recordsRead = "foo"; | 434 o.recordsRead = "foo"; |
435 o.recordsWritten = "foo"; | 435 o.recordsWritten = "foo"; |
436 o.steps = buildUnnamed3378(); | 436 o.steps = buildUnnamed3191(); |
437 o.waitRatioAvg = 42.0; | 437 o.waitRatioAvg = 42.0; |
438 o.waitRatioMax = 42.0; | 438 o.waitRatioMax = 42.0; |
439 o.writeRatioAvg = 42.0; | 439 o.writeRatioAvg = 42.0; |
440 o.writeRatioMax = 42.0; | 440 o.writeRatioMax = 42.0; |
441 } | 441 } |
442 buildCounterExplainQueryStage--; | 442 buildCounterExplainQueryStage--; |
443 return o; | 443 return o; |
444 } | 444 } |
445 | 445 |
446 checkExplainQueryStage(api.ExplainQueryStage o) { | 446 checkExplainQueryStage(api.ExplainQueryStage o) { |
447 buildCounterExplainQueryStage++; | 447 buildCounterExplainQueryStage++; |
448 if (buildCounterExplainQueryStage < 3) { | 448 if (buildCounterExplainQueryStage < 3) { |
449 unittest.expect(o.computeRatioAvg, unittest.equals(42.0)); | 449 unittest.expect(o.computeRatioAvg, unittest.equals(42.0)); |
450 unittest.expect(o.computeRatioMax, unittest.equals(42.0)); | 450 unittest.expect(o.computeRatioMax, unittest.equals(42.0)); |
451 unittest.expect(o.id, unittest.equals('foo')); | 451 unittest.expect(o.id, unittest.equals('foo')); |
452 unittest.expect(o.name, unittest.equals('foo')); | 452 unittest.expect(o.name, unittest.equals('foo')); |
453 unittest.expect(o.readRatioAvg, unittest.equals(42.0)); | 453 unittest.expect(o.readRatioAvg, unittest.equals(42.0)); |
454 unittest.expect(o.readRatioMax, unittest.equals(42.0)); | 454 unittest.expect(o.readRatioMax, unittest.equals(42.0)); |
455 unittest.expect(o.recordsRead, unittest.equals('foo')); | 455 unittest.expect(o.recordsRead, unittest.equals('foo')); |
456 unittest.expect(o.recordsWritten, unittest.equals('foo')); | 456 unittest.expect(o.recordsWritten, unittest.equals('foo')); |
457 checkUnnamed3378(o.steps); | 457 checkUnnamed3191(o.steps); |
458 unittest.expect(o.waitRatioAvg, unittest.equals(42.0)); | 458 unittest.expect(o.waitRatioAvg, unittest.equals(42.0)); |
459 unittest.expect(o.waitRatioMax, unittest.equals(42.0)); | 459 unittest.expect(o.waitRatioMax, unittest.equals(42.0)); |
460 unittest.expect(o.writeRatioAvg, unittest.equals(42.0)); | 460 unittest.expect(o.writeRatioAvg, unittest.equals(42.0)); |
461 unittest.expect(o.writeRatioMax, unittest.equals(42.0)); | 461 unittest.expect(o.writeRatioMax, unittest.equals(42.0)); |
462 } | 462 } |
463 buildCounterExplainQueryStage--; | 463 buildCounterExplainQueryStage--; |
464 } | 464 } |
465 | 465 |
466 buildUnnamed3379() { | 466 buildUnnamed3192() { |
467 var o = new core.List<core.String>(); | 467 var o = new core.List<core.String>(); |
468 o.add("foo"); | 468 o.add("foo"); |
469 o.add("foo"); | 469 o.add("foo"); |
470 return o; | 470 return o; |
471 } | 471 } |
472 | 472 |
473 checkUnnamed3379(core.List<core.String> o) { | 473 checkUnnamed3192(core.List<core.String> o) { |
474 unittest.expect(o, unittest.hasLength(2)); | 474 unittest.expect(o, unittest.hasLength(2)); |
475 unittest.expect(o[0], unittest.equals('foo')); | 475 unittest.expect(o[0], unittest.equals('foo')); |
476 unittest.expect(o[1], unittest.equals('foo')); | 476 unittest.expect(o[1], unittest.equals('foo')); |
477 } | 477 } |
478 | 478 |
479 core.int buildCounterExplainQueryStep = 0; | 479 core.int buildCounterExplainQueryStep = 0; |
480 buildExplainQueryStep() { | 480 buildExplainQueryStep() { |
481 var o = new api.ExplainQueryStep(); | 481 var o = new api.ExplainQueryStep(); |
482 buildCounterExplainQueryStep++; | 482 buildCounterExplainQueryStep++; |
483 if (buildCounterExplainQueryStep < 3) { | 483 if (buildCounterExplainQueryStep < 3) { |
484 o.kind = "foo"; | 484 o.kind = "foo"; |
485 o.substeps = buildUnnamed3379(); | 485 o.substeps = buildUnnamed3192(); |
486 } | 486 } |
487 buildCounterExplainQueryStep--; | 487 buildCounterExplainQueryStep--; |
488 return o; | 488 return o; |
489 } | 489 } |
490 | 490 |
491 checkExplainQueryStep(api.ExplainQueryStep o) { | 491 checkExplainQueryStep(api.ExplainQueryStep o) { |
492 buildCounterExplainQueryStep++; | 492 buildCounterExplainQueryStep++; |
493 if (buildCounterExplainQueryStep < 3) { | 493 if (buildCounterExplainQueryStep < 3) { |
494 unittest.expect(o.kind, unittest.equals('foo')); | 494 unittest.expect(o.kind, unittest.equals('foo')); |
495 checkUnnamed3379(o.substeps); | 495 checkUnnamed3192(o.substeps); |
496 } | 496 } |
497 buildCounterExplainQueryStep--; | 497 buildCounterExplainQueryStep--; |
498 } | 498 } |
499 | 499 |
500 buildUnnamed3380() { | 500 buildUnnamed3193() { |
501 var o = new core.List<core.String>(); | 501 var o = new core.List<core.String>(); |
502 o.add("foo"); | 502 o.add("foo"); |
503 o.add("foo"); | 503 o.add("foo"); |
504 return o; | 504 return o; |
505 } | 505 } |
506 | 506 |
507 checkUnnamed3380(core.List<core.String> o) { | 507 checkUnnamed3193(core.List<core.String> o) { |
508 unittest.expect(o, unittest.hasLength(2)); | 508 unittest.expect(o, unittest.hasLength(2)); |
509 unittest.expect(o[0], unittest.equals('foo')); | 509 unittest.expect(o[0], unittest.equals('foo')); |
510 unittest.expect(o[1], unittest.equals('foo')); | 510 unittest.expect(o[1], unittest.equals('foo')); |
511 } | 511 } |
512 | 512 |
513 core.int buildCounterExternalDataConfiguration = 0; | 513 core.int buildCounterExternalDataConfiguration = 0; |
514 buildExternalDataConfiguration() { | 514 buildExternalDataConfiguration() { |
515 var o = new api.ExternalDataConfiguration(); | 515 var o = new api.ExternalDataConfiguration(); |
516 buildCounterExternalDataConfiguration++; | 516 buildCounterExternalDataConfiguration++; |
517 if (buildCounterExternalDataConfiguration < 3) { | 517 if (buildCounterExternalDataConfiguration < 3) { |
518 o.autodetect = true; | 518 o.autodetect = true; |
519 o.bigtableOptions = buildBigtableOptions(); | 519 o.bigtableOptions = buildBigtableOptions(); |
520 o.compression = "foo"; | 520 o.compression = "foo"; |
521 o.csvOptions = buildCsvOptions(); | 521 o.csvOptions = buildCsvOptions(); |
522 o.googleSheetsOptions = buildGoogleSheetsOptions(); | 522 o.googleSheetsOptions = buildGoogleSheetsOptions(); |
523 o.ignoreUnknownValues = true; | 523 o.ignoreUnknownValues = true; |
524 o.maxBadRecords = 42; | 524 o.maxBadRecords = 42; |
525 o.schema = buildTableSchema(); | 525 o.schema = buildTableSchema(); |
526 o.sourceFormat = "foo"; | 526 o.sourceFormat = "foo"; |
527 o.sourceUris = buildUnnamed3380(); | 527 o.sourceUris = buildUnnamed3193(); |
528 } | 528 } |
529 buildCounterExternalDataConfiguration--; | 529 buildCounterExternalDataConfiguration--; |
530 return o; | 530 return o; |
531 } | 531 } |
532 | 532 |
533 checkExternalDataConfiguration(api.ExternalDataConfiguration o) { | 533 checkExternalDataConfiguration(api.ExternalDataConfiguration o) { |
534 buildCounterExternalDataConfiguration++; | 534 buildCounterExternalDataConfiguration++; |
535 if (buildCounterExternalDataConfiguration < 3) { | 535 if (buildCounterExternalDataConfiguration < 3) { |
536 unittest.expect(o.autodetect, unittest.isTrue); | 536 unittest.expect(o.autodetect, unittest.isTrue); |
537 checkBigtableOptions(o.bigtableOptions); | 537 checkBigtableOptions(o.bigtableOptions); |
538 unittest.expect(o.compression, unittest.equals('foo')); | 538 unittest.expect(o.compression, unittest.equals('foo')); |
539 checkCsvOptions(o.csvOptions); | 539 checkCsvOptions(o.csvOptions); |
540 checkGoogleSheetsOptions(o.googleSheetsOptions); | 540 checkGoogleSheetsOptions(o.googleSheetsOptions); |
541 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); | 541 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); |
542 unittest.expect(o.maxBadRecords, unittest.equals(42)); | 542 unittest.expect(o.maxBadRecords, unittest.equals(42)); |
543 checkTableSchema(o.schema); | 543 checkTableSchema(o.schema); |
544 unittest.expect(o.sourceFormat, unittest.equals('foo')); | 544 unittest.expect(o.sourceFormat, unittest.equals('foo')); |
545 checkUnnamed3380(o.sourceUris); | 545 checkUnnamed3193(o.sourceUris); |
546 } | 546 } |
547 buildCounterExternalDataConfiguration--; | 547 buildCounterExternalDataConfiguration--; |
548 } | 548 } |
549 | 549 |
550 buildUnnamed3381() { | 550 buildUnnamed3194() { |
551 var o = new core.List<api.ErrorProto>(); | 551 var o = new core.List<api.ErrorProto>(); |
552 o.add(buildErrorProto()); | 552 o.add(buildErrorProto()); |
553 o.add(buildErrorProto()); | 553 o.add(buildErrorProto()); |
554 return o; | 554 return o; |
555 } | 555 } |
556 | 556 |
557 checkUnnamed3381(core.List<api.ErrorProto> o) { | 557 checkUnnamed3194(core.List<api.ErrorProto> o) { |
558 unittest.expect(o, unittest.hasLength(2)); | 558 unittest.expect(o, unittest.hasLength(2)); |
559 checkErrorProto(o[0]); | 559 checkErrorProto(o[0]); |
560 checkErrorProto(o[1]); | 560 checkErrorProto(o[1]); |
561 } | 561 } |
562 | 562 |
563 buildUnnamed3382() { | 563 buildUnnamed3195() { |
564 var o = new core.List<api.TableRow>(); | 564 var o = new core.List<api.TableRow>(); |
565 o.add(buildTableRow()); | 565 o.add(buildTableRow()); |
566 o.add(buildTableRow()); | 566 o.add(buildTableRow()); |
567 return o; | 567 return o; |
568 } | 568 } |
569 | 569 |
570 checkUnnamed3382(core.List<api.TableRow> o) { | 570 checkUnnamed3195(core.List<api.TableRow> o) { |
571 unittest.expect(o, unittest.hasLength(2)); | 571 unittest.expect(o, unittest.hasLength(2)); |
572 checkTableRow(o[0]); | 572 checkTableRow(o[0]); |
573 checkTableRow(o[1]); | 573 checkTableRow(o[1]); |
574 } | 574 } |
575 | 575 |
576 core.int buildCounterGetQueryResultsResponse = 0; | 576 core.int buildCounterGetQueryResultsResponse = 0; |
577 buildGetQueryResultsResponse() { | 577 buildGetQueryResultsResponse() { |
578 var o = new api.GetQueryResultsResponse(); | 578 var o = new api.GetQueryResultsResponse(); |
579 buildCounterGetQueryResultsResponse++; | 579 buildCounterGetQueryResultsResponse++; |
580 if (buildCounterGetQueryResultsResponse < 3) { | 580 if (buildCounterGetQueryResultsResponse < 3) { |
581 o.cacheHit = true; | 581 o.cacheHit = true; |
582 o.errors = buildUnnamed3381(); | 582 o.errors = buildUnnamed3194(); |
583 o.etag = "foo"; | 583 o.etag = "foo"; |
584 o.jobComplete = true; | 584 o.jobComplete = true; |
585 o.jobReference = buildJobReference(); | 585 o.jobReference = buildJobReference(); |
586 o.kind = "foo"; | 586 o.kind = "foo"; |
587 o.numDmlAffectedRows = "foo"; | 587 o.numDmlAffectedRows = "foo"; |
588 o.pageToken = "foo"; | 588 o.pageToken = "foo"; |
589 o.rows = buildUnnamed3382(); | 589 o.rows = buildUnnamed3195(); |
590 o.schema = buildTableSchema(); | 590 o.schema = buildTableSchema(); |
591 o.totalBytesProcessed = "foo"; | 591 o.totalBytesProcessed = "foo"; |
592 o.totalRows = "foo"; | 592 o.totalRows = "foo"; |
593 } | 593 } |
594 buildCounterGetQueryResultsResponse--; | 594 buildCounterGetQueryResultsResponse--; |
595 return o; | 595 return o; |
596 } | 596 } |
597 | 597 |
598 checkGetQueryResultsResponse(api.GetQueryResultsResponse o) { | 598 checkGetQueryResultsResponse(api.GetQueryResultsResponse o) { |
599 buildCounterGetQueryResultsResponse++; | 599 buildCounterGetQueryResultsResponse++; |
600 if (buildCounterGetQueryResultsResponse < 3) { | 600 if (buildCounterGetQueryResultsResponse < 3) { |
601 unittest.expect(o.cacheHit, unittest.isTrue); | 601 unittest.expect(o.cacheHit, unittest.isTrue); |
602 checkUnnamed3381(o.errors); | 602 checkUnnamed3194(o.errors); |
603 unittest.expect(o.etag, unittest.equals('foo')); | 603 unittest.expect(o.etag, unittest.equals('foo')); |
604 unittest.expect(o.jobComplete, unittest.isTrue); | 604 unittest.expect(o.jobComplete, unittest.isTrue); |
605 checkJobReference(o.jobReference); | 605 checkJobReference(o.jobReference); |
606 unittest.expect(o.kind, unittest.equals('foo')); | 606 unittest.expect(o.kind, unittest.equals('foo')); |
607 unittest.expect(o.numDmlAffectedRows, unittest.equals('foo')); | 607 unittest.expect(o.numDmlAffectedRows, unittest.equals('foo')); |
608 unittest.expect(o.pageToken, unittest.equals('foo')); | 608 unittest.expect(o.pageToken, unittest.equals('foo')); |
609 checkUnnamed3382(o.rows); | 609 checkUnnamed3195(o.rows); |
610 checkTableSchema(o.schema); | 610 checkTableSchema(o.schema); |
611 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); | 611 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); |
612 unittest.expect(o.totalRows, unittest.equals('foo')); | 612 unittest.expect(o.totalRows, unittest.equals('foo')); |
613 } | 613 } |
614 buildCounterGetQueryResultsResponse--; | 614 buildCounterGetQueryResultsResponse--; |
615 } | 615 } |
616 | 616 |
617 core.int buildCounterGoogleSheetsOptions = 0; | 617 core.int buildCounterGoogleSheetsOptions = 0; |
618 buildGoogleSheetsOptions() { | 618 buildGoogleSheetsOptions() { |
619 var o = new api.GoogleSheetsOptions(); | 619 var o = new api.GoogleSheetsOptions(); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 | 682 |
683 checkJobCancelResponse(api.JobCancelResponse o) { | 683 checkJobCancelResponse(api.JobCancelResponse o) { |
684 buildCounterJobCancelResponse++; | 684 buildCounterJobCancelResponse++; |
685 if (buildCounterJobCancelResponse < 3) { | 685 if (buildCounterJobCancelResponse < 3) { |
686 checkJob(o.job); | 686 checkJob(o.job); |
687 unittest.expect(o.kind, unittest.equals('foo')); | 687 unittest.expect(o.kind, unittest.equals('foo')); |
688 } | 688 } |
689 buildCounterJobCancelResponse--; | 689 buildCounterJobCancelResponse--; |
690 } | 690 } |
691 | 691 |
| 692 buildUnnamed3196() { |
| 693 var o = new core.Map<core.String, core.String>(); |
| 694 o["x"] = "foo"; |
| 695 o["y"] = "foo"; |
| 696 return o; |
| 697 } |
| 698 |
| 699 checkUnnamed3196(core.Map<core.String, core.String> o) { |
| 700 unittest.expect(o, unittest.hasLength(2)); |
| 701 unittest.expect(o["x"], unittest.equals('foo')); |
| 702 unittest.expect(o["y"], unittest.equals('foo')); |
| 703 } |
| 704 |
692 core.int buildCounterJobConfiguration = 0; | 705 core.int buildCounterJobConfiguration = 0; |
693 buildJobConfiguration() { | 706 buildJobConfiguration() { |
694 var o = new api.JobConfiguration(); | 707 var o = new api.JobConfiguration(); |
695 buildCounterJobConfiguration++; | 708 buildCounterJobConfiguration++; |
696 if (buildCounterJobConfiguration < 3) { | 709 if (buildCounterJobConfiguration < 3) { |
697 o.copy = buildJobConfigurationTableCopy(); | 710 o.copy = buildJobConfigurationTableCopy(); |
698 o.dryRun = true; | 711 o.dryRun = true; |
699 o.extract = buildJobConfigurationExtract(); | 712 o.extract = buildJobConfigurationExtract(); |
| 713 o.labels = buildUnnamed3196(); |
700 o.load = buildJobConfigurationLoad(); | 714 o.load = buildJobConfigurationLoad(); |
701 o.query = buildJobConfigurationQuery(); | 715 o.query = buildJobConfigurationQuery(); |
702 } | 716 } |
703 buildCounterJobConfiguration--; | 717 buildCounterJobConfiguration--; |
704 return o; | 718 return o; |
705 } | 719 } |
706 | 720 |
707 checkJobConfiguration(api.JobConfiguration o) { | 721 checkJobConfiguration(api.JobConfiguration o) { |
708 buildCounterJobConfiguration++; | 722 buildCounterJobConfiguration++; |
709 if (buildCounterJobConfiguration < 3) { | 723 if (buildCounterJobConfiguration < 3) { |
710 checkJobConfigurationTableCopy(o.copy); | 724 checkJobConfigurationTableCopy(o.copy); |
711 unittest.expect(o.dryRun, unittest.isTrue); | 725 unittest.expect(o.dryRun, unittest.isTrue); |
712 checkJobConfigurationExtract(o.extract); | 726 checkJobConfigurationExtract(o.extract); |
| 727 checkUnnamed3196(o.labels); |
713 checkJobConfigurationLoad(o.load); | 728 checkJobConfigurationLoad(o.load); |
714 checkJobConfigurationQuery(o.query); | 729 checkJobConfigurationQuery(o.query); |
715 } | 730 } |
716 buildCounterJobConfiguration--; | 731 buildCounterJobConfiguration--; |
717 } | 732 } |
718 | 733 |
719 buildUnnamed3383() { | 734 buildUnnamed3197() { |
720 var o = new core.List<core.String>(); | 735 var o = new core.List<core.String>(); |
721 o.add("foo"); | 736 o.add("foo"); |
722 o.add("foo"); | 737 o.add("foo"); |
723 return o; | 738 return o; |
724 } | 739 } |
725 | 740 |
726 checkUnnamed3383(core.List<core.String> o) { | 741 checkUnnamed3197(core.List<core.String> o) { |
727 unittest.expect(o, unittest.hasLength(2)); | 742 unittest.expect(o, unittest.hasLength(2)); |
728 unittest.expect(o[0], unittest.equals('foo')); | 743 unittest.expect(o[0], unittest.equals('foo')); |
729 unittest.expect(o[1], unittest.equals('foo')); | 744 unittest.expect(o[1], unittest.equals('foo')); |
730 } | 745 } |
731 | 746 |
732 core.int buildCounterJobConfigurationExtract = 0; | 747 core.int buildCounterJobConfigurationExtract = 0; |
733 buildJobConfigurationExtract() { | 748 buildJobConfigurationExtract() { |
734 var o = new api.JobConfigurationExtract(); | 749 var o = new api.JobConfigurationExtract(); |
735 buildCounterJobConfigurationExtract++; | 750 buildCounterJobConfigurationExtract++; |
736 if (buildCounterJobConfigurationExtract < 3) { | 751 if (buildCounterJobConfigurationExtract < 3) { |
737 o.compression = "foo"; | 752 o.compression = "foo"; |
738 o.destinationFormat = "foo"; | 753 o.destinationFormat = "foo"; |
739 o.destinationUri = "foo"; | 754 o.destinationUri = "foo"; |
740 o.destinationUris = buildUnnamed3383(); | 755 o.destinationUris = buildUnnamed3197(); |
741 o.fieldDelimiter = "foo"; | 756 o.fieldDelimiter = "foo"; |
742 o.printHeader = true; | 757 o.printHeader = true; |
743 o.sourceTable = buildTableReference(); | 758 o.sourceTable = buildTableReference(); |
744 } | 759 } |
745 buildCounterJobConfigurationExtract--; | 760 buildCounterJobConfigurationExtract--; |
746 return o; | 761 return o; |
747 } | 762 } |
748 | 763 |
749 checkJobConfigurationExtract(api.JobConfigurationExtract o) { | 764 checkJobConfigurationExtract(api.JobConfigurationExtract o) { |
750 buildCounterJobConfigurationExtract++; | 765 buildCounterJobConfigurationExtract++; |
751 if (buildCounterJobConfigurationExtract < 3) { | 766 if (buildCounterJobConfigurationExtract < 3) { |
752 unittest.expect(o.compression, unittest.equals('foo')); | 767 unittest.expect(o.compression, unittest.equals('foo')); |
753 unittest.expect(o.destinationFormat, unittest.equals('foo')); | 768 unittest.expect(o.destinationFormat, unittest.equals('foo')); |
754 unittest.expect(o.destinationUri, unittest.equals('foo')); | 769 unittest.expect(o.destinationUri, unittest.equals('foo')); |
755 checkUnnamed3383(o.destinationUris); | 770 checkUnnamed3197(o.destinationUris); |
756 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); | 771 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); |
757 unittest.expect(o.printHeader, unittest.isTrue); | 772 unittest.expect(o.printHeader, unittest.isTrue); |
758 checkTableReference(o.sourceTable); | 773 checkTableReference(o.sourceTable); |
759 } | 774 } |
760 buildCounterJobConfigurationExtract--; | 775 buildCounterJobConfigurationExtract--; |
761 } | 776 } |
762 | 777 |
763 buildUnnamed3384() { | 778 buildUnnamed3198() { |
764 var o = new core.List<core.String>(); | 779 var o = new core.List<core.String>(); |
765 o.add("foo"); | 780 o.add("foo"); |
766 o.add("foo"); | 781 o.add("foo"); |
767 return o; | 782 return o; |
768 } | 783 } |
769 | 784 |
770 checkUnnamed3384(core.List<core.String> o) { | 785 checkUnnamed3198(core.List<core.String> o) { |
771 unittest.expect(o, unittest.hasLength(2)); | 786 unittest.expect(o, unittest.hasLength(2)); |
772 unittest.expect(o[0], unittest.equals('foo')); | 787 unittest.expect(o[0], unittest.equals('foo')); |
773 unittest.expect(o[1], unittest.equals('foo')); | 788 unittest.expect(o[1], unittest.equals('foo')); |
774 } | 789 } |
775 | 790 |
776 buildUnnamed3385() { | 791 buildUnnamed3199() { |
777 var o = new core.List<core.String>(); | 792 var o = new core.List<core.String>(); |
778 o.add("foo"); | 793 o.add("foo"); |
779 o.add("foo"); | 794 o.add("foo"); |
780 return o; | 795 return o; |
781 } | 796 } |
782 | 797 |
783 checkUnnamed3385(core.List<core.String> o) { | 798 checkUnnamed3199(core.List<core.String> o) { |
784 unittest.expect(o, unittest.hasLength(2)); | 799 unittest.expect(o, unittest.hasLength(2)); |
785 unittest.expect(o[0], unittest.equals('foo')); | 800 unittest.expect(o[0], unittest.equals('foo')); |
786 unittest.expect(o[1], unittest.equals('foo')); | 801 unittest.expect(o[1], unittest.equals('foo')); |
787 } | 802 } |
788 | 803 |
789 buildUnnamed3386() { | 804 buildUnnamed3200() { |
790 var o = new core.List<core.String>(); | 805 var o = new core.List<core.String>(); |
791 o.add("foo"); | 806 o.add("foo"); |
792 o.add("foo"); | 807 o.add("foo"); |
793 return o; | 808 return o; |
794 } | 809 } |
795 | 810 |
796 checkUnnamed3386(core.List<core.String> o) { | 811 checkUnnamed3200(core.List<core.String> o) { |
797 unittest.expect(o, unittest.hasLength(2)); | 812 unittest.expect(o, unittest.hasLength(2)); |
798 unittest.expect(o[0], unittest.equals('foo')); | 813 unittest.expect(o[0], unittest.equals('foo')); |
799 unittest.expect(o[1], unittest.equals('foo')); | 814 unittest.expect(o[1], unittest.equals('foo')); |
800 } | 815 } |
801 | 816 |
802 core.int buildCounterJobConfigurationLoad = 0; | 817 core.int buildCounterJobConfigurationLoad = 0; |
803 buildJobConfigurationLoad() { | 818 buildJobConfigurationLoad() { |
804 var o = new api.JobConfigurationLoad(); | 819 var o = new api.JobConfigurationLoad(); |
805 buildCounterJobConfigurationLoad++; | 820 buildCounterJobConfigurationLoad++; |
806 if (buildCounterJobConfigurationLoad < 3) { | 821 if (buildCounterJobConfigurationLoad < 3) { |
807 o.allowJaggedRows = true; | 822 o.allowJaggedRows = true; |
808 o.allowQuotedNewlines = true; | 823 o.allowQuotedNewlines = true; |
809 o.autodetect = true; | 824 o.autodetect = true; |
810 o.createDisposition = "foo"; | 825 o.createDisposition = "foo"; |
811 o.destinationTable = buildTableReference(); | 826 o.destinationTable = buildTableReference(); |
812 o.encoding = "foo"; | 827 o.encoding = "foo"; |
813 o.fieldDelimiter = "foo"; | 828 o.fieldDelimiter = "foo"; |
814 o.ignoreUnknownValues = true; | 829 o.ignoreUnknownValues = true; |
815 o.maxBadRecords = 42; | 830 o.maxBadRecords = 42; |
816 o.projectionFields = buildUnnamed3384(); | 831 o.projectionFields = buildUnnamed3198(); |
817 o.quote = "foo"; | 832 o.quote = "foo"; |
818 o.schema = buildTableSchema(); | 833 o.schema = buildTableSchema(); |
819 o.schemaInline = "foo"; | 834 o.schemaInline = "foo"; |
820 o.schemaInlineFormat = "foo"; | 835 o.schemaInlineFormat = "foo"; |
821 o.schemaUpdateOptions = buildUnnamed3385(); | 836 o.schemaUpdateOptions = buildUnnamed3199(); |
822 o.skipLeadingRows = 42; | 837 o.skipLeadingRows = 42; |
823 o.sourceFormat = "foo"; | 838 o.sourceFormat = "foo"; |
824 o.sourceUris = buildUnnamed3386(); | 839 o.sourceUris = buildUnnamed3200(); |
825 o.writeDisposition = "foo"; | 840 o.writeDisposition = "foo"; |
826 } | 841 } |
827 buildCounterJobConfigurationLoad--; | 842 buildCounterJobConfigurationLoad--; |
828 return o; | 843 return o; |
829 } | 844 } |
830 | 845 |
831 checkJobConfigurationLoad(api.JobConfigurationLoad o) { | 846 checkJobConfigurationLoad(api.JobConfigurationLoad o) { |
832 buildCounterJobConfigurationLoad++; | 847 buildCounterJobConfigurationLoad++; |
833 if (buildCounterJobConfigurationLoad < 3) { | 848 if (buildCounterJobConfigurationLoad < 3) { |
834 unittest.expect(o.allowJaggedRows, unittest.isTrue); | 849 unittest.expect(o.allowJaggedRows, unittest.isTrue); |
835 unittest.expect(o.allowQuotedNewlines, unittest.isTrue); | 850 unittest.expect(o.allowQuotedNewlines, unittest.isTrue); |
836 unittest.expect(o.autodetect, unittest.isTrue); | 851 unittest.expect(o.autodetect, unittest.isTrue); |
837 unittest.expect(o.createDisposition, unittest.equals('foo')); | 852 unittest.expect(o.createDisposition, unittest.equals('foo')); |
838 checkTableReference(o.destinationTable); | 853 checkTableReference(o.destinationTable); |
839 unittest.expect(o.encoding, unittest.equals('foo')); | 854 unittest.expect(o.encoding, unittest.equals('foo')); |
840 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); | 855 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); |
841 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); | 856 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); |
842 unittest.expect(o.maxBadRecords, unittest.equals(42)); | 857 unittest.expect(o.maxBadRecords, unittest.equals(42)); |
843 checkUnnamed3384(o.projectionFields); | 858 checkUnnamed3198(o.projectionFields); |
844 unittest.expect(o.quote, unittest.equals('foo')); | 859 unittest.expect(o.quote, unittest.equals('foo')); |
845 checkTableSchema(o.schema); | 860 checkTableSchema(o.schema); |
846 unittest.expect(o.schemaInline, unittest.equals('foo')); | 861 unittest.expect(o.schemaInline, unittest.equals('foo')); |
847 unittest.expect(o.schemaInlineFormat, unittest.equals('foo')); | 862 unittest.expect(o.schemaInlineFormat, unittest.equals('foo')); |
848 checkUnnamed3385(o.schemaUpdateOptions); | 863 checkUnnamed3199(o.schemaUpdateOptions); |
849 unittest.expect(o.skipLeadingRows, unittest.equals(42)); | 864 unittest.expect(o.skipLeadingRows, unittest.equals(42)); |
850 unittest.expect(o.sourceFormat, unittest.equals('foo')); | 865 unittest.expect(o.sourceFormat, unittest.equals('foo')); |
851 checkUnnamed3386(o.sourceUris); | 866 checkUnnamed3200(o.sourceUris); |
852 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 867 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
853 } | 868 } |
854 buildCounterJobConfigurationLoad--; | 869 buildCounterJobConfigurationLoad--; |
855 } | 870 } |
856 | 871 |
857 buildUnnamed3387() { | 872 buildUnnamed3201() { |
858 var o = new core.List<api.QueryParameter>(); | 873 var o = new core.List<api.QueryParameter>(); |
859 o.add(buildQueryParameter()); | 874 o.add(buildQueryParameter()); |
860 o.add(buildQueryParameter()); | 875 o.add(buildQueryParameter()); |
861 return o; | 876 return o; |
862 } | 877 } |
863 | 878 |
864 checkUnnamed3387(core.List<api.QueryParameter> o) { | 879 checkUnnamed3201(core.List<api.QueryParameter> o) { |
865 unittest.expect(o, unittest.hasLength(2)); | 880 unittest.expect(o, unittest.hasLength(2)); |
866 checkQueryParameter(o[0]); | 881 checkQueryParameter(o[0]); |
867 checkQueryParameter(o[1]); | 882 checkQueryParameter(o[1]); |
868 } | 883 } |
869 | 884 |
870 buildUnnamed3388() { | 885 buildUnnamed3202() { |
871 var o = new core.List<core.String>(); | 886 var o = new core.List<core.String>(); |
872 o.add("foo"); | 887 o.add("foo"); |
873 o.add("foo"); | 888 o.add("foo"); |
874 return o; | 889 return o; |
875 } | 890 } |
876 | 891 |
877 checkUnnamed3388(core.List<core.String> o) { | 892 checkUnnamed3202(core.List<core.String> o) { |
878 unittest.expect(o, unittest.hasLength(2)); | 893 unittest.expect(o, unittest.hasLength(2)); |
879 unittest.expect(o[0], unittest.equals('foo')); | 894 unittest.expect(o[0], unittest.equals('foo')); |
880 unittest.expect(o[1], unittest.equals('foo')); | 895 unittest.expect(o[1], unittest.equals('foo')); |
881 } | 896 } |
882 | 897 |
883 buildUnnamed3389() { | 898 buildUnnamed3203() { |
884 var o = new core.Map<core.String, api.ExternalDataConfiguration>(); | 899 var o = new core.Map<core.String, api.ExternalDataConfiguration>(); |
885 o["x"] = buildExternalDataConfiguration(); | 900 o["x"] = buildExternalDataConfiguration(); |
886 o["y"] = buildExternalDataConfiguration(); | 901 o["y"] = buildExternalDataConfiguration(); |
887 return o; | 902 return o; |
888 } | 903 } |
889 | 904 |
890 checkUnnamed3389(core.Map<core.String, api.ExternalDataConfiguration> o) { | 905 checkUnnamed3203(core.Map<core.String, api.ExternalDataConfiguration> o) { |
891 unittest.expect(o, unittest.hasLength(2)); | 906 unittest.expect(o, unittest.hasLength(2)); |
892 checkExternalDataConfiguration(o["x"]); | 907 checkExternalDataConfiguration(o["x"]); |
893 checkExternalDataConfiguration(o["y"]); | 908 checkExternalDataConfiguration(o["y"]); |
894 } | 909 } |
895 | 910 |
896 buildUnnamed3390() { | 911 buildUnnamed3204() { |
897 var o = new core.List<api.UserDefinedFunctionResource>(); | 912 var o = new core.List<api.UserDefinedFunctionResource>(); |
898 o.add(buildUserDefinedFunctionResource()); | 913 o.add(buildUserDefinedFunctionResource()); |
899 o.add(buildUserDefinedFunctionResource()); | 914 o.add(buildUserDefinedFunctionResource()); |
900 return o; | 915 return o; |
901 } | 916 } |
902 | 917 |
903 checkUnnamed3390(core.List<api.UserDefinedFunctionResource> o) { | 918 checkUnnamed3204(core.List<api.UserDefinedFunctionResource> o) { |
904 unittest.expect(o, unittest.hasLength(2)); | 919 unittest.expect(o, unittest.hasLength(2)); |
905 checkUserDefinedFunctionResource(o[0]); | 920 checkUserDefinedFunctionResource(o[0]); |
906 checkUserDefinedFunctionResource(o[1]); | 921 checkUserDefinedFunctionResource(o[1]); |
907 } | 922 } |
908 | 923 |
909 core.int buildCounterJobConfigurationQuery = 0; | 924 core.int buildCounterJobConfigurationQuery = 0; |
910 buildJobConfigurationQuery() { | 925 buildJobConfigurationQuery() { |
911 var o = new api.JobConfigurationQuery(); | 926 var o = new api.JobConfigurationQuery(); |
912 buildCounterJobConfigurationQuery++; | 927 buildCounterJobConfigurationQuery++; |
913 if (buildCounterJobConfigurationQuery < 3) { | 928 if (buildCounterJobConfigurationQuery < 3) { |
914 o.allowLargeResults = true; | 929 o.allowLargeResults = true; |
915 o.createDisposition = "foo"; | 930 o.createDisposition = "foo"; |
916 o.defaultDataset = buildDatasetReference(); | 931 o.defaultDataset = buildDatasetReference(); |
917 o.destinationTable = buildTableReference(); | 932 o.destinationTable = buildTableReference(); |
918 o.flattenResults = true; | 933 o.flattenResults = true; |
919 o.maximumBillingTier = 42; | 934 o.maximumBillingTier = 42; |
920 o.maximumBytesBilled = "foo"; | 935 o.maximumBytesBilled = "foo"; |
921 o.parameterMode = "foo"; | 936 o.parameterMode = "foo"; |
922 o.preserveNulls = true; | 937 o.preserveNulls = true; |
923 o.priority = "foo"; | 938 o.priority = "foo"; |
924 o.query = "foo"; | 939 o.query = "foo"; |
925 o.queryParameters = buildUnnamed3387(); | 940 o.queryParameters = buildUnnamed3201(); |
926 o.schemaUpdateOptions = buildUnnamed3388(); | 941 o.schemaUpdateOptions = buildUnnamed3202(); |
927 o.tableDefinitions = buildUnnamed3389(); | 942 o.tableDefinitions = buildUnnamed3203(); |
928 o.useLegacySql = true; | 943 o.useLegacySql = true; |
929 o.useQueryCache = true; | 944 o.useQueryCache = true; |
930 o.userDefinedFunctionResources = buildUnnamed3390(); | 945 o.userDefinedFunctionResources = buildUnnamed3204(); |
931 o.writeDisposition = "foo"; | 946 o.writeDisposition = "foo"; |
932 } | 947 } |
933 buildCounterJobConfigurationQuery--; | 948 buildCounterJobConfigurationQuery--; |
934 return o; | 949 return o; |
935 } | 950 } |
936 | 951 |
937 checkJobConfigurationQuery(api.JobConfigurationQuery o) { | 952 checkJobConfigurationQuery(api.JobConfigurationQuery o) { |
938 buildCounterJobConfigurationQuery++; | 953 buildCounterJobConfigurationQuery++; |
939 if (buildCounterJobConfigurationQuery < 3) { | 954 if (buildCounterJobConfigurationQuery < 3) { |
940 unittest.expect(o.allowLargeResults, unittest.isTrue); | 955 unittest.expect(o.allowLargeResults, unittest.isTrue); |
941 unittest.expect(o.createDisposition, unittest.equals('foo')); | 956 unittest.expect(o.createDisposition, unittest.equals('foo')); |
942 checkDatasetReference(o.defaultDataset); | 957 checkDatasetReference(o.defaultDataset); |
943 checkTableReference(o.destinationTable); | 958 checkTableReference(o.destinationTable); |
944 unittest.expect(o.flattenResults, unittest.isTrue); | 959 unittest.expect(o.flattenResults, unittest.isTrue); |
945 unittest.expect(o.maximumBillingTier, unittest.equals(42)); | 960 unittest.expect(o.maximumBillingTier, unittest.equals(42)); |
946 unittest.expect(o.maximumBytesBilled, unittest.equals('foo')); | 961 unittest.expect(o.maximumBytesBilled, unittest.equals('foo')); |
947 unittest.expect(o.parameterMode, unittest.equals('foo')); | 962 unittest.expect(o.parameterMode, unittest.equals('foo')); |
948 unittest.expect(o.preserveNulls, unittest.isTrue); | 963 unittest.expect(o.preserveNulls, unittest.isTrue); |
949 unittest.expect(o.priority, unittest.equals('foo')); | 964 unittest.expect(o.priority, unittest.equals('foo')); |
950 unittest.expect(o.query, unittest.equals('foo')); | 965 unittest.expect(o.query, unittest.equals('foo')); |
951 checkUnnamed3387(o.queryParameters); | 966 checkUnnamed3201(o.queryParameters); |
952 checkUnnamed3388(o.schemaUpdateOptions); | 967 checkUnnamed3202(o.schemaUpdateOptions); |
953 checkUnnamed3389(o.tableDefinitions); | 968 checkUnnamed3203(o.tableDefinitions); |
954 unittest.expect(o.useLegacySql, unittest.isTrue); | 969 unittest.expect(o.useLegacySql, unittest.isTrue); |
955 unittest.expect(o.useQueryCache, unittest.isTrue); | 970 unittest.expect(o.useQueryCache, unittest.isTrue); |
956 checkUnnamed3390(o.userDefinedFunctionResources); | 971 checkUnnamed3204(o.userDefinedFunctionResources); |
957 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 972 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
958 } | 973 } |
959 buildCounterJobConfigurationQuery--; | 974 buildCounterJobConfigurationQuery--; |
960 } | 975 } |
961 | 976 |
962 buildUnnamed3391() { | 977 buildUnnamed3205() { |
963 var o = new core.List<api.TableReference>(); | 978 var o = new core.List<api.TableReference>(); |
964 o.add(buildTableReference()); | 979 o.add(buildTableReference()); |
965 o.add(buildTableReference()); | 980 o.add(buildTableReference()); |
966 return o; | 981 return o; |
967 } | 982 } |
968 | 983 |
969 checkUnnamed3391(core.List<api.TableReference> o) { | 984 checkUnnamed3205(core.List<api.TableReference> o) { |
970 unittest.expect(o, unittest.hasLength(2)); | 985 unittest.expect(o, unittest.hasLength(2)); |
971 checkTableReference(o[0]); | 986 checkTableReference(o[0]); |
972 checkTableReference(o[1]); | 987 checkTableReference(o[1]); |
973 } | 988 } |
974 | 989 |
975 core.int buildCounterJobConfigurationTableCopy = 0; | 990 core.int buildCounterJobConfigurationTableCopy = 0; |
976 buildJobConfigurationTableCopy() { | 991 buildJobConfigurationTableCopy() { |
977 var o = new api.JobConfigurationTableCopy(); | 992 var o = new api.JobConfigurationTableCopy(); |
978 buildCounterJobConfigurationTableCopy++; | 993 buildCounterJobConfigurationTableCopy++; |
979 if (buildCounterJobConfigurationTableCopy < 3) { | 994 if (buildCounterJobConfigurationTableCopy < 3) { |
980 o.createDisposition = "foo"; | 995 o.createDisposition = "foo"; |
981 o.destinationTable = buildTableReference(); | 996 o.destinationTable = buildTableReference(); |
982 o.sourceTable = buildTableReference(); | 997 o.sourceTable = buildTableReference(); |
983 o.sourceTables = buildUnnamed3391(); | 998 o.sourceTables = buildUnnamed3205(); |
984 o.writeDisposition = "foo"; | 999 o.writeDisposition = "foo"; |
985 } | 1000 } |
986 buildCounterJobConfigurationTableCopy--; | 1001 buildCounterJobConfigurationTableCopy--; |
987 return o; | 1002 return o; |
988 } | 1003 } |
989 | 1004 |
990 checkJobConfigurationTableCopy(api.JobConfigurationTableCopy o) { | 1005 checkJobConfigurationTableCopy(api.JobConfigurationTableCopy o) { |
991 buildCounterJobConfigurationTableCopy++; | 1006 buildCounterJobConfigurationTableCopy++; |
992 if (buildCounterJobConfigurationTableCopy < 3) { | 1007 if (buildCounterJobConfigurationTableCopy < 3) { |
993 unittest.expect(o.createDisposition, unittest.equals('foo')); | 1008 unittest.expect(o.createDisposition, unittest.equals('foo')); |
994 checkTableReference(o.destinationTable); | 1009 checkTableReference(o.destinationTable); |
995 checkTableReference(o.sourceTable); | 1010 checkTableReference(o.sourceTable); |
996 checkUnnamed3391(o.sourceTables); | 1011 checkUnnamed3205(o.sourceTables); |
997 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 1012 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
998 } | 1013 } |
999 buildCounterJobConfigurationTableCopy--; | 1014 buildCounterJobConfigurationTableCopy--; |
1000 } | 1015 } |
1001 | 1016 |
1002 core.int buildCounterJobListJobs = 0; | 1017 core.int buildCounterJobListJobs = 0; |
1003 buildJobListJobs() { | 1018 buildJobListJobs() { |
1004 var o = new api.JobListJobs(); | 1019 var o = new api.JobListJobs(); |
1005 buildCounterJobListJobs++; | 1020 buildCounterJobListJobs++; |
1006 if (buildCounterJobListJobs < 3) { | 1021 if (buildCounterJobListJobs < 3) { |
(...skipping 20 matching lines...) Expand all Loading... |
1027 checkJobReference(o.jobReference); | 1042 checkJobReference(o.jobReference); |
1028 unittest.expect(o.kind, unittest.equals('foo')); | 1043 unittest.expect(o.kind, unittest.equals('foo')); |
1029 unittest.expect(o.state, unittest.equals('foo')); | 1044 unittest.expect(o.state, unittest.equals('foo')); |
1030 checkJobStatistics(o.statistics); | 1045 checkJobStatistics(o.statistics); |
1031 checkJobStatus(o.status); | 1046 checkJobStatus(o.status); |
1032 unittest.expect(o.userEmail, unittest.equals('foo')); | 1047 unittest.expect(o.userEmail, unittest.equals('foo')); |
1033 } | 1048 } |
1034 buildCounterJobListJobs--; | 1049 buildCounterJobListJobs--; |
1035 } | 1050 } |
1036 | 1051 |
1037 buildUnnamed3392() { | 1052 buildUnnamed3206() { |
1038 var o = new core.List<api.JobListJobs>(); | 1053 var o = new core.List<api.JobListJobs>(); |
1039 o.add(buildJobListJobs()); | 1054 o.add(buildJobListJobs()); |
1040 o.add(buildJobListJobs()); | 1055 o.add(buildJobListJobs()); |
1041 return o; | 1056 return o; |
1042 } | 1057 } |
1043 | 1058 |
1044 checkUnnamed3392(core.List<api.JobListJobs> o) { | 1059 checkUnnamed3206(core.List<api.JobListJobs> o) { |
1045 unittest.expect(o, unittest.hasLength(2)); | 1060 unittest.expect(o, unittest.hasLength(2)); |
1046 checkJobListJobs(o[0]); | 1061 checkJobListJobs(o[0]); |
1047 checkJobListJobs(o[1]); | 1062 checkJobListJobs(o[1]); |
1048 } | 1063 } |
1049 | 1064 |
1050 core.int buildCounterJobList = 0; | 1065 core.int buildCounterJobList = 0; |
1051 buildJobList() { | 1066 buildJobList() { |
1052 var o = new api.JobList(); | 1067 var o = new api.JobList(); |
1053 buildCounterJobList++; | 1068 buildCounterJobList++; |
1054 if (buildCounterJobList < 3) { | 1069 if (buildCounterJobList < 3) { |
1055 o.etag = "foo"; | 1070 o.etag = "foo"; |
1056 o.jobs = buildUnnamed3392(); | 1071 o.jobs = buildUnnamed3206(); |
1057 o.kind = "foo"; | 1072 o.kind = "foo"; |
1058 o.nextPageToken = "foo"; | 1073 o.nextPageToken = "foo"; |
1059 } | 1074 } |
1060 buildCounterJobList--; | 1075 buildCounterJobList--; |
1061 return o; | 1076 return o; |
1062 } | 1077 } |
1063 | 1078 |
1064 checkJobList(api.JobList o) { | 1079 checkJobList(api.JobList o) { |
1065 buildCounterJobList++; | 1080 buildCounterJobList++; |
1066 if (buildCounterJobList < 3) { | 1081 if (buildCounterJobList < 3) { |
1067 unittest.expect(o.etag, unittest.equals('foo')); | 1082 unittest.expect(o.etag, unittest.equals('foo')); |
1068 checkUnnamed3392(o.jobs); | 1083 checkUnnamed3206(o.jobs); |
1069 unittest.expect(o.kind, unittest.equals('foo')); | 1084 unittest.expect(o.kind, unittest.equals('foo')); |
1070 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1085 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1071 } | 1086 } |
1072 buildCounterJobList--; | 1087 buildCounterJobList--; |
1073 } | 1088 } |
1074 | 1089 |
1075 core.int buildCounterJobReference = 0; | 1090 core.int buildCounterJobReference = 0; |
1076 buildJobReference() { | 1091 buildJobReference() { |
1077 var o = new api.JobReference(); | 1092 var o = new api.JobReference(); |
1078 buildCounterJobReference++; | 1093 buildCounterJobReference++; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1117 unittest.expect(o.endTime, unittest.equals('foo')); | 1132 unittest.expect(o.endTime, unittest.equals('foo')); |
1118 checkJobStatistics4(o.extract); | 1133 checkJobStatistics4(o.extract); |
1119 checkJobStatistics3(o.load); | 1134 checkJobStatistics3(o.load); |
1120 checkJobStatistics2(o.query); | 1135 checkJobStatistics2(o.query); |
1121 unittest.expect(o.startTime, unittest.equals('foo')); | 1136 unittest.expect(o.startTime, unittest.equals('foo')); |
1122 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); | 1137 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); |
1123 } | 1138 } |
1124 buildCounterJobStatistics--; | 1139 buildCounterJobStatistics--; |
1125 } | 1140 } |
1126 | 1141 |
1127 buildUnnamed3393() { | 1142 buildUnnamed3207() { |
1128 var o = new core.List<api.ExplainQueryStage>(); | 1143 var o = new core.List<api.ExplainQueryStage>(); |
1129 o.add(buildExplainQueryStage()); | 1144 o.add(buildExplainQueryStage()); |
1130 o.add(buildExplainQueryStage()); | 1145 o.add(buildExplainQueryStage()); |
1131 return o; | 1146 return o; |
1132 } | 1147 } |
1133 | 1148 |
1134 checkUnnamed3393(core.List<api.ExplainQueryStage> o) { | 1149 checkUnnamed3207(core.List<api.ExplainQueryStage> o) { |
1135 unittest.expect(o, unittest.hasLength(2)); | 1150 unittest.expect(o, unittest.hasLength(2)); |
1136 checkExplainQueryStage(o[0]); | 1151 checkExplainQueryStage(o[0]); |
1137 checkExplainQueryStage(o[1]); | 1152 checkExplainQueryStage(o[1]); |
1138 } | 1153 } |
1139 | 1154 |
1140 buildUnnamed3394() { | 1155 buildUnnamed3208() { |
1141 var o = new core.List<api.TableReference>(); | 1156 var o = new core.List<api.TableReference>(); |
1142 o.add(buildTableReference()); | 1157 o.add(buildTableReference()); |
1143 o.add(buildTableReference()); | 1158 o.add(buildTableReference()); |
1144 return o; | 1159 return o; |
1145 } | 1160 } |
1146 | 1161 |
1147 checkUnnamed3394(core.List<api.TableReference> o) { | 1162 checkUnnamed3208(core.List<api.TableReference> o) { |
1148 unittest.expect(o, unittest.hasLength(2)); | 1163 unittest.expect(o, unittest.hasLength(2)); |
1149 checkTableReference(o[0]); | 1164 checkTableReference(o[0]); |
1150 checkTableReference(o[1]); | 1165 checkTableReference(o[1]); |
1151 } | 1166 } |
1152 | 1167 |
1153 buildUnnamed3395() { | 1168 buildUnnamed3209() { |
1154 var o = new core.List<api.QueryParameter>(); | 1169 var o = new core.List<api.QueryParameter>(); |
1155 o.add(buildQueryParameter()); | 1170 o.add(buildQueryParameter()); |
1156 o.add(buildQueryParameter()); | 1171 o.add(buildQueryParameter()); |
1157 return o; | 1172 return o; |
1158 } | 1173 } |
1159 | 1174 |
1160 checkUnnamed3395(core.List<api.QueryParameter> o) { | 1175 checkUnnamed3209(core.List<api.QueryParameter> o) { |
1161 unittest.expect(o, unittest.hasLength(2)); | 1176 unittest.expect(o, unittest.hasLength(2)); |
1162 checkQueryParameter(o[0]); | 1177 checkQueryParameter(o[0]); |
1163 checkQueryParameter(o[1]); | 1178 checkQueryParameter(o[1]); |
1164 } | 1179 } |
1165 | 1180 |
1166 core.int buildCounterJobStatistics2 = 0; | 1181 core.int buildCounterJobStatistics2 = 0; |
1167 buildJobStatistics2() { | 1182 buildJobStatistics2() { |
1168 var o = new api.JobStatistics2(); | 1183 var o = new api.JobStatistics2(); |
1169 buildCounterJobStatistics2++; | 1184 buildCounterJobStatistics2++; |
1170 if (buildCounterJobStatistics2 < 3) { | 1185 if (buildCounterJobStatistics2 < 3) { |
1171 o.billingTier = 42; | 1186 o.billingTier = 42; |
1172 o.cacheHit = true; | 1187 o.cacheHit = true; |
1173 o.numDmlAffectedRows = "foo"; | 1188 o.numDmlAffectedRows = "foo"; |
1174 o.queryPlan = buildUnnamed3393(); | 1189 o.queryPlan = buildUnnamed3207(); |
1175 o.referencedTables = buildUnnamed3394(); | 1190 o.referencedTables = buildUnnamed3208(); |
1176 o.schema = buildTableSchema(); | 1191 o.schema = buildTableSchema(); |
1177 o.totalBytesBilled = "foo"; | 1192 o.totalBytesBilled = "foo"; |
1178 o.totalBytesProcessed = "foo"; | 1193 o.totalBytesProcessed = "foo"; |
1179 o.undeclaredQueryParameters = buildUnnamed3395(); | 1194 o.undeclaredQueryParameters = buildUnnamed3209(); |
1180 } | 1195 } |
1181 buildCounterJobStatistics2--; | 1196 buildCounterJobStatistics2--; |
1182 return o; | 1197 return o; |
1183 } | 1198 } |
1184 | 1199 |
1185 checkJobStatistics2(api.JobStatistics2 o) { | 1200 checkJobStatistics2(api.JobStatistics2 o) { |
1186 buildCounterJobStatistics2++; | 1201 buildCounterJobStatistics2++; |
1187 if (buildCounterJobStatistics2 < 3) { | 1202 if (buildCounterJobStatistics2 < 3) { |
1188 unittest.expect(o.billingTier, unittest.equals(42)); | 1203 unittest.expect(o.billingTier, unittest.equals(42)); |
1189 unittest.expect(o.cacheHit, unittest.isTrue); | 1204 unittest.expect(o.cacheHit, unittest.isTrue); |
1190 unittest.expect(o.numDmlAffectedRows, unittest.equals('foo')); | 1205 unittest.expect(o.numDmlAffectedRows, unittest.equals('foo')); |
1191 checkUnnamed3393(o.queryPlan); | 1206 checkUnnamed3207(o.queryPlan); |
1192 checkUnnamed3394(o.referencedTables); | 1207 checkUnnamed3208(o.referencedTables); |
1193 checkTableSchema(o.schema); | 1208 checkTableSchema(o.schema); |
1194 unittest.expect(o.totalBytesBilled, unittest.equals('foo')); | 1209 unittest.expect(o.totalBytesBilled, unittest.equals('foo')); |
1195 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); | 1210 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); |
1196 checkUnnamed3395(o.undeclaredQueryParameters); | 1211 checkUnnamed3209(o.undeclaredQueryParameters); |
1197 } | 1212 } |
1198 buildCounterJobStatistics2--; | 1213 buildCounterJobStatistics2--; |
1199 } | 1214 } |
1200 | 1215 |
1201 core.int buildCounterJobStatistics3 = 0; | 1216 core.int buildCounterJobStatistics3 = 0; |
1202 buildJobStatistics3() { | 1217 buildJobStatistics3() { |
1203 var o = new api.JobStatistics3(); | 1218 var o = new api.JobStatistics3(); |
1204 buildCounterJobStatistics3++; | 1219 buildCounterJobStatistics3++; |
1205 if (buildCounterJobStatistics3 < 3) { | 1220 if (buildCounterJobStatistics3 < 3) { |
1206 o.inputFileBytes = "foo"; | 1221 o.inputFileBytes = "foo"; |
1207 o.inputFiles = "foo"; | 1222 o.inputFiles = "foo"; |
1208 o.outputBytes = "foo"; | 1223 o.outputBytes = "foo"; |
1209 o.outputRows = "foo"; | 1224 o.outputRows = "foo"; |
1210 } | 1225 } |
1211 buildCounterJobStatistics3--; | 1226 buildCounterJobStatistics3--; |
1212 return o; | 1227 return o; |
1213 } | 1228 } |
1214 | 1229 |
1215 checkJobStatistics3(api.JobStatistics3 o) { | 1230 checkJobStatistics3(api.JobStatistics3 o) { |
1216 buildCounterJobStatistics3++; | 1231 buildCounterJobStatistics3++; |
1217 if (buildCounterJobStatistics3 < 3) { | 1232 if (buildCounterJobStatistics3 < 3) { |
1218 unittest.expect(o.inputFileBytes, unittest.equals('foo')); | 1233 unittest.expect(o.inputFileBytes, unittest.equals('foo')); |
1219 unittest.expect(o.inputFiles, unittest.equals('foo')); | 1234 unittest.expect(o.inputFiles, unittest.equals('foo')); |
1220 unittest.expect(o.outputBytes, unittest.equals('foo')); | 1235 unittest.expect(o.outputBytes, unittest.equals('foo')); |
1221 unittest.expect(o.outputRows, unittest.equals('foo')); | 1236 unittest.expect(o.outputRows, unittest.equals('foo')); |
1222 } | 1237 } |
1223 buildCounterJobStatistics3--; | 1238 buildCounterJobStatistics3--; |
1224 } | 1239 } |
1225 | 1240 |
1226 buildUnnamed3396() { | 1241 buildUnnamed3210() { |
1227 var o = new core.List<core.String>(); | 1242 var o = new core.List<core.String>(); |
1228 o.add("foo"); | 1243 o.add("foo"); |
1229 o.add("foo"); | 1244 o.add("foo"); |
1230 return o; | 1245 return o; |
1231 } | 1246 } |
1232 | 1247 |
1233 checkUnnamed3396(core.List<core.String> o) { | 1248 checkUnnamed3210(core.List<core.String> o) { |
1234 unittest.expect(o, unittest.hasLength(2)); | 1249 unittest.expect(o, unittest.hasLength(2)); |
1235 unittest.expect(o[0], unittest.equals('foo')); | 1250 unittest.expect(o[0], unittest.equals('foo')); |
1236 unittest.expect(o[1], unittest.equals('foo')); | 1251 unittest.expect(o[1], unittest.equals('foo')); |
1237 } | 1252 } |
1238 | 1253 |
1239 core.int buildCounterJobStatistics4 = 0; | 1254 core.int buildCounterJobStatistics4 = 0; |
1240 buildJobStatistics4() { | 1255 buildJobStatistics4() { |
1241 var o = new api.JobStatistics4(); | 1256 var o = new api.JobStatistics4(); |
1242 buildCounterJobStatistics4++; | 1257 buildCounterJobStatistics4++; |
1243 if (buildCounterJobStatistics4 < 3) { | 1258 if (buildCounterJobStatistics4 < 3) { |
1244 o.destinationUriFileCounts = buildUnnamed3396(); | 1259 o.destinationUriFileCounts = buildUnnamed3210(); |
1245 } | 1260 } |
1246 buildCounterJobStatistics4--; | 1261 buildCounterJobStatistics4--; |
1247 return o; | 1262 return o; |
1248 } | 1263 } |
1249 | 1264 |
1250 checkJobStatistics4(api.JobStatistics4 o) { | 1265 checkJobStatistics4(api.JobStatistics4 o) { |
1251 buildCounterJobStatistics4++; | 1266 buildCounterJobStatistics4++; |
1252 if (buildCounterJobStatistics4 < 3) { | 1267 if (buildCounterJobStatistics4 < 3) { |
1253 checkUnnamed3396(o.destinationUriFileCounts); | 1268 checkUnnamed3210(o.destinationUriFileCounts); |
1254 } | 1269 } |
1255 buildCounterJobStatistics4--; | 1270 buildCounterJobStatistics4--; |
1256 } | 1271 } |
1257 | 1272 |
1258 buildUnnamed3397() { | 1273 buildUnnamed3211() { |
1259 var o = new core.List<api.ErrorProto>(); | 1274 var o = new core.List<api.ErrorProto>(); |
1260 o.add(buildErrorProto()); | 1275 o.add(buildErrorProto()); |
1261 o.add(buildErrorProto()); | 1276 o.add(buildErrorProto()); |
1262 return o; | 1277 return o; |
1263 } | 1278 } |
1264 | 1279 |
1265 checkUnnamed3397(core.List<api.ErrorProto> o) { | 1280 checkUnnamed3211(core.List<api.ErrorProto> o) { |
1266 unittest.expect(o, unittest.hasLength(2)); | 1281 unittest.expect(o, unittest.hasLength(2)); |
1267 checkErrorProto(o[0]); | 1282 checkErrorProto(o[0]); |
1268 checkErrorProto(o[1]); | 1283 checkErrorProto(o[1]); |
1269 } | 1284 } |
1270 | 1285 |
1271 core.int buildCounterJobStatus = 0; | 1286 core.int buildCounterJobStatus = 0; |
1272 buildJobStatus() { | 1287 buildJobStatus() { |
1273 var o = new api.JobStatus(); | 1288 var o = new api.JobStatus(); |
1274 buildCounterJobStatus++; | 1289 buildCounterJobStatus++; |
1275 if (buildCounterJobStatus < 3) { | 1290 if (buildCounterJobStatus < 3) { |
1276 o.errorResult = buildErrorProto(); | 1291 o.errorResult = buildErrorProto(); |
1277 o.errors = buildUnnamed3397(); | 1292 o.errors = buildUnnamed3211(); |
1278 o.state = "foo"; | 1293 o.state = "foo"; |
1279 } | 1294 } |
1280 buildCounterJobStatus--; | 1295 buildCounterJobStatus--; |
1281 return o; | 1296 return o; |
1282 } | 1297 } |
1283 | 1298 |
1284 checkJobStatus(api.JobStatus o) { | 1299 checkJobStatus(api.JobStatus o) { |
1285 buildCounterJobStatus++; | 1300 buildCounterJobStatus++; |
1286 if (buildCounterJobStatus < 3) { | 1301 if (buildCounterJobStatus < 3) { |
1287 checkErrorProto(o.errorResult); | 1302 checkErrorProto(o.errorResult); |
1288 checkUnnamed3397(o.errors); | 1303 checkUnnamed3211(o.errors); |
1289 unittest.expect(o.state, unittest.equals('foo')); | 1304 unittest.expect(o.state, unittest.equals('foo')); |
1290 } | 1305 } |
1291 buildCounterJobStatus--; | 1306 buildCounterJobStatus--; |
1292 } | 1307 } |
1293 | 1308 |
1294 buildJsonObject() { | 1309 buildJsonObject() { |
1295 var o = new api.JsonObject(); | 1310 var o = new api.JsonObject(); |
1296 o["a"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1311 o["a"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1297 o["b"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1312 o["b"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1298 return o; | 1313 return o; |
(...skipping 25 matching lines...) Expand all Loading... |
1324 if (buildCounterProjectListProjects < 3) { | 1339 if (buildCounterProjectListProjects < 3) { |
1325 unittest.expect(o.friendlyName, unittest.equals('foo')); | 1340 unittest.expect(o.friendlyName, unittest.equals('foo')); |
1326 unittest.expect(o.id, unittest.equals('foo')); | 1341 unittest.expect(o.id, unittest.equals('foo')); |
1327 unittest.expect(o.kind, unittest.equals('foo')); | 1342 unittest.expect(o.kind, unittest.equals('foo')); |
1328 unittest.expect(o.numericId, unittest.equals('foo')); | 1343 unittest.expect(o.numericId, unittest.equals('foo')); |
1329 checkProjectReference(o.projectReference); | 1344 checkProjectReference(o.projectReference); |
1330 } | 1345 } |
1331 buildCounterProjectListProjects--; | 1346 buildCounterProjectListProjects--; |
1332 } | 1347 } |
1333 | 1348 |
1334 buildUnnamed3398() { | 1349 buildUnnamed3212() { |
1335 var o = new core.List<api.ProjectListProjects>(); | 1350 var o = new core.List<api.ProjectListProjects>(); |
1336 o.add(buildProjectListProjects()); | 1351 o.add(buildProjectListProjects()); |
1337 o.add(buildProjectListProjects()); | 1352 o.add(buildProjectListProjects()); |
1338 return o; | 1353 return o; |
1339 } | 1354 } |
1340 | 1355 |
1341 checkUnnamed3398(core.List<api.ProjectListProjects> o) { | 1356 checkUnnamed3212(core.List<api.ProjectListProjects> o) { |
1342 unittest.expect(o, unittest.hasLength(2)); | 1357 unittest.expect(o, unittest.hasLength(2)); |
1343 checkProjectListProjects(o[0]); | 1358 checkProjectListProjects(o[0]); |
1344 checkProjectListProjects(o[1]); | 1359 checkProjectListProjects(o[1]); |
1345 } | 1360 } |
1346 | 1361 |
1347 core.int buildCounterProjectList = 0; | 1362 core.int buildCounterProjectList = 0; |
1348 buildProjectList() { | 1363 buildProjectList() { |
1349 var o = new api.ProjectList(); | 1364 var o = new api.ProjectList(); |
1350 buildCounterProjectList++; | 1365 buildCounterProjectList++; |
1351 if (buildCounterProjectList < 3) { | 1366 if (buildCounterProjectList < 3) { |
1352 o.etag = "foo"; | 1367 o.etag = "foo"; |
1353 o.kind = "foo"; | 1368 o.kind = "foo"; |
1354 o.nextPageToken = "foo"; | 1369 o.nextPageToken = "foo"; |
1355 o.projects = buildUnnamed3398(); | 1370 o.projects = buildUnnamed3212(); |
1356 o.totalItems = 42; | 1371 o.totalItems = 42; |
1357 } | 1372 } |
1358 buildCounterProjectList--; | 1373 buildCounterProjectList--; |
1359 return o; | 1374 return o; |
1360 } | 1375 } |
1361 | 1376 |
1362 checkProjectList(api.ProjectList o) { | 1377 checkProjectList(api.ProjectList o) { |
1363 buildCounterProjectList++; | 1378 buildCounterProjectList++; |
1364 if (buildCounterProjectList < 3) { | 1379 if (buildCounterProjectList < 3) { |
1365 unittest.expect(o.etag, unittest.equals('foo')); | 1380 unittest.expect(o.etag, unittest.equals('foo')); |
1366 unittest.expect(o.kind, unittest.equals('foo')); | 1381 unittest.expect(o.kind, unittest.equals('foo')); |
1367 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1382 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1368 checkUnnamed3398(o.projects); | 1383 checkUnnamed3212(o.projects); |
1369 unittest.expect(o.totalItems, unittest.equals(42)); | 1384 unittest.expect(o.totalItems, unittest.equals(42)); |
1370 } | 1385 } |
1371 buildCounterProjectList--; | 1386 buildCounterProjectList--; |
1372 } | 1387 } |
1373 | 1388 |
1374 core.int buildCounterProjectReference = 0; | 1389 core.int buildCounterProjectReference = 0; |
1375 buildProjectReference() { | 1390 buildProjectReference() { |
1376 var o = new api.ProjectReference(); | 1391 var o = new api.ProjectReference(); |
1377 buildCounterProjectReference++; | 1392 buildCounterProjectReference++; |
1378 if (buildCounterProjectReference < 3) { | 1393 if (buildCounterProjectReference < 3) { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1429 checkQueryParameterTypeStructTypes(api.QueryParameterTypeStructTypes o) { | 1444 checkQueryParameterTypeStructTypes(api.QueryParameterTypeStructTypes o) { |
1430 buildCounterQueryParameterTypeStructTypes++; | 1445 buildCounterQueryParameterTypeStructTypes++; |
1431 if (buildCounterQueryParameterTypeStructTypes < 3) { | 1446 if (buildCounterQueryParameterTypeStructTypes < 3) { |
1432 unittest.expect(o.description, unittest.equals('foo')); | 1447 unittest.expect(o.description, unittest.equals('foo')); |
1433 unittest.expect(o.name, unittest.equals('foo')); | 1448 unittest.expect(o.name, unittest.equals('foo')); |
1434 checkQueryParameterType(o.type); | 1449 checkQueryParameterType(o.type); |
1435 } | 1450 } |
1436 buildCounterQueryParameterTypeStructTypes--; | 1451 buildCounterQueryParameterTypeStructTypes--; |
1437 } | 1452 } |
1438 | 1453 |
1439 buildUnnamed3399() { | 1454 buildUnnamed3213() { |
1440 var o = new core.List<api.QueryParameterTypeStructTypes>(); | 1455 var o = new core.List<api.QueryParameterTypeStructTypes>(); |
1441 o.add(buildQueryParameterTypeStructTypes()); | 1456 o.add(buildQueryParameterTypeStructTypes()); |
1442 o.add(buildQueryParameterTypeStructTypes()); | 1457 o.add(buildQueryParameterTypeStructTypes()); |
1443 return o; | 1458 return o; |
1444 } | 1459 } |
1445 | 1460 |
1446 checkUnnamed3399(core.List<api.QueryParameterTypeStructTypes> o) { | 1461 checkUnnamed3213(core.List<api.QueryParameterTypeStructTypes> o) { |
1447 unittest.expect(o, unittest.hasLength(2)); | 1462 unittest.expect(o, unittest.hasLength(2)); |
1448 checkQueryParameterTypeStructTypes(o[0]); | 1463 checkQueryParameterTypeStructTypes(o[0]); |
1449 checkQueryParameterTypeStructTypes(o[1]); | 1464 checkQueryParameterTypeStructTypes(o[1]); |
1450 } | 1465 } |
1451 | 1466 |
1452 core.int buildCounterQueryParameterType = 0; | 1467 core.int buildCounterQueryParameterType = 0; |
1453 buildQueryParameterType() { | 1468 buildQueryParameterType() { |
1454 var o = new api.QueryParameterType(); | 1469 var o = new api.QueryParameterType(); |
1455 buildCounterQueryParameterType++; | 1470 buildCounterQueryParameterType++; |
1456 if (buildCounterQueryParameterType < 3) { | 1471 if (buildCounterQueryParameterType < 3) { |
1457 o.arrayType = buildQueryParameterType(); | 1472 o.arrayType = buildQueryParameterType(); |
1458 o.structTypes = buildUnnamed3399(); | 1473 o.structTypes = buildUnnamed3213(); |
1459 o.type = "foo"; | 1474 o.type = "foo"; |
1460 } | 1475 } |
1461 buildCounterQueryParameterType--; | 1476 buildCounterQueryParameterType--; |
1462 return o; | 1477 return o; |
1463 } | 1478 } |
1464 | 1479 |
1465 checkQueryParameterType(api.QueryParameterType o) { | 1480 checkQueryParameterType(api.QueryParameterType o) { |
1466 buildCounterQueryParameterType++; | 1481 buildCounterQueryParameterType++; |
1467 if (buildCounterQueryParameterType < 3) { | 1482 if (buildCounterQueryParameterType < 3) { |
1468 checkQueryParameterType(o.arrayType); | 1483 checkQueryParameterType(o.arrayType); |
1469 checkUnnamed3399(o.structTypes); | 1484 checkUnnamed3213(o.structTypes); |
1470 unittest.expect(o.type, unittest.equals('foo')); | 1485 unittest.expect(o.type, unittest.equals('foo')); |
1471 } | 1486 } |
1472 buildCounterQueryParameterType--; | 1487 buildCounterQueryParameterType--; |
1473 } | 1488 } |
1474 | 1489 |
1475 buildUnnamed3400() { | 1490 buildUnnamed3214() { |
1476 var o = new core.List<api.QueryParameterValue>(); | 1491 var o = new core.List<api.QueryParameterValue>(); |
1477 o.add(buildQueryParameterValue()); | 1492 o.add(buildQueryParameterValue()); |
1478 o.add(buildQueryParameterValue()); | 1493 o.add(buildQueryParameterValue()); |
1479 return o; | 1494 return o; |
1480 } | 1495 } |
1481 | 1496 |
1482 checkUnnamed3400(core.List<api.QueryParameterValue> o) { | 1497 checkUnnamed3214(core.List<api.QueryParameterValue> o) { |
1483 unittest.expect(o, unittest.hasLength(2)); | 1498 unittest.expect(o, unittest.hasLength(2)); |
1484 checkQueryParameterValue(o[0]); | 1499 checkQueryParameterValue(o[0]); |
1485 checkQueryParameterValue(o[1]); | 1500 checkQueryParameterValue(o[1]); |
1486 } | 1501 } |
1487 | 1502 |
1488 buildUnnamed3401() { | 1503 buildUnnamed3215() { |
1489 var o = new core.List<api.QueryParameterValue>(); | 1504 var o = new core.Map<core.String, api.QueryParameterValue>(); |
1490 o.add(buildQueryParameterValue()); | 1505 o["x"] = buildQueryParameterValue(); |
1491 o.add(buildQueryParameterValue()); | 1506 o["y"] = buildQueryParameterValue(); |
1492 return o; | 1507 return o; |
1493 } | 1508 } |
1494 | 1509 |
1495 checkUnnamed3401(core.List<api.QueryParameterValue> o) { | 1510 checkUnnamed3215(core.Map<core.String, api.QueryParameterValue> o) { |
1496 unittest.expect(o, unittest.hasLength(2)); | 1511 unittest.expect(o, unittest.hasLength(2)); |
1497 checkQueryParameterValue(o[0]); | 1512 checkQueryParameterValue(o["x"]); |
1498 checkQueryParameterValue(o[1]); | 1513 checkQueryParameterValue(o["y"]); |
1499 } | 1514 } |
1500 | 1515 |
1501 core.int buildCounterQueryParameterValue = 0; | 1516 core.int buildCounterQueryParameterValue = 0; |
1502 buildQueryParameterValue() { | 1517 buildQueryParameterValue() { |
1503 var o = new api.QueryParameterValue(); | 1518 var o = new api.QueryParameterValue(); |
1504 buildCounterQueryParameterValue++; | 1519 buildCounterQueryParameterValue++; |
1505 if (buildCounterQueryParameterValue < 3) { | 1520 if (buildCounterQueryParameterValue < 3) { |
1506 o.arrayValues = buildUnnamed3400(); | 1521 o.arrayValues = buildUnnamed3214(); |
1507 o.structValues = buildUnnamed3401(); | 1522 o.structValues = buildUnnamed3215(); |
1508 o.value = "foo"; | 1523 o.value = "foo"; |
1509 } | 1524 } |
1510 buildCounterQueryParameterValue--; | 1525 buildCounterQueryParameterValue--; |
1511 return o; | 1526 return o; |
1512 } | 1527 } |
1513 | 1528 |
1514 checkQueryParameterValue(api.QueryParameterValue o) { | 1529 checkQueryParameterValue(api.QueryParameterValue o) { |
1515 buildCounterQueryParameterValue++; | 1530 buildCounterQueryParameterValue++; |
1516 if (buildCounterQueryParameterValue < 3) { | 1531 if (buildCounterQueryParameterValue < 3) { |
1517 checkUnnamed3400(o.arrayValues); | 1532 checkUnnamed3214(o.arrayValues); |
1518 checkUnnamed3401(o.structValues); | 1533 checkUnnamed3215(o.structValues); |
1519 unittest.expect(o.value, unittest.equals('foo')); | 1534 unittest.expect(o.value, unittest.equals('foo')); |
1520 } | 1535 } |
1521 buildCounterQueryParameterValue--; | 1536 buildCounterQueryParameterValue--; |
1522 } | 1537 } |
1523 | 1538 |
1524 buildUnnamed3402() { | 1539 buildUnnamed3216() { |
1525 var o = new core.List<api.QueryParameter>(); | 1540 var o = new core.List<api.QueryParameter>(); |
1526 o.add(buildQueryParameter()); | 1541 o.add(buildQueryParameter()); |
1527 o.add(buildQueryParameter()); | 1542 o.add(buildQueryParameter()); |
1528 return o; | 1543 return o; |
1529 } | 1544 } |
1530 | 1545 |
1531 checkUnnamed3402(core.List<api.QueryParameter> o) { | 1546 checkUnnamed3216(core.List<api.QueryParameter> o) { |
1532 unittest.expect(o, unittest.hasLength(2)); | 1547 unittest.expect(o, unittest.hasLength(2)); |
1533 checkQueryParameter(o[0]); | 1548 checkQueryParameter(o[0]); |
1534 checkQueryParameter(o[1]); | 1549 checkQueryParameter(o[1]); |
1535 } | 1550 } |
1536 | 1551 |
1537 core.int buildCounterQueryRequest = 0; | 1552 core.int buildCounterQueryRequest = 0; |
1538 buildQueryRequest() { | 1553 buildQueryRequest() { |
1539 var o = new api.QueryRequest(); | 1554 var o = new api.QueryRequest(); |
1540 buildCounterQueryRequest++; | 1555 buildCounterQueryRequest++; |
1541 if (buildCounterQueryRequest < 3) { | 1556 if (buildCounterQueryRequest < 3) { |
1542 o.defaultDataset = buildDatasetReference(); | 1557 o.defaultDataset = buildDatasetReference(); |
1543 o.dryRun = true; | 1558 o.dryRun = true; |
1544 o.kind = "foo"; | 1559 o.kind = "foo"; |
1545 o.maxResults = 42; | 1560 o.maxResults = 42; |
1546 o.parameterMode = "foo"; | 1561 o.parameterMode = "foo"; |
1547 o.preserveNulls = true; | 1562 o.preserveNulls = true; |
1548 o.query = "foo"; | 1563 o.query = "foo"; |
1549 o.queryParameters = buildUnnamed3402(); | 1564 o.queryParameters = buildUnnamed3216(); |
1550 o.timeoutMs = 42; | 1565 o.timeoutMs = 42; |
1551 o.useLegacySql = true; | 1566 o.useLegacySql = true; |
1552 o.useQueryCache = true; | 1567 o.useQueryCache = true; |
1553 } | 1568 } |
1554 buildCounterQueryRequest--; | 1569 buildCounterQueryRequest--; |
1555 return o; | 1570 return o; |
1556 } | 1571 } |
1557 | 1572 |
1558 checkQueryRequest(api.QueryRequest o) { | 1573 checkQueryRequest(api.QueryRequest o) { |
1559 buildCounterQueryRequest++; | 1574 buildCounterQueryRequest++; |
1560 if (buildCounterQueryRequest < 3) { | 1575 if (buildCounterQueryRequest < 3) { |
1561 checkDatasetReference(o.defaultDataset); | 1576 checkDatasetReference(o.defaultDataset); |
1562 unittest.expect(o.dryRun, unittest.isTrue); | 1577 unittest.expect(o.dryRun, unittest.isTrue); |
1563 unittest.expect(o.kind, unittest.equals('foo')); | 1578 unittest.expect(o.kind, unittest.equals('foo')); |
1564 unittest.expect(o.maxResults, unittest.equals(42)); | 1579 unittest.expect(o.maxResults, unittest.equals(42)); |
1565 unittest.expect(o.parameterMode, unittest.equals('foo')); | 1580 unittest.expect(o.parameterMode, unittest.equals('foo')); |
1566 unittest.expect(o.preserveNulls, unittest.isTrue); | 1581 unittest.expect(o.preserveNulls, unittest.isTrue); |
1567 unittest.expect(o.query, unittest.equals('foo')); | 1582 unittest.expect(o.query, unittest.equals('foo')); |
1568 checkUnnamed3402(o.queryParameters); | 1583 checkUnnamed3216(o.queryParameters); |
1569 unittest.expect(o.timeoutMs, unittest.equals(42)); | 1584 unittest.expect(o.timeoutMs, unittest.equals(42)); |
1570 unittest.expect(o.useLegacySql, unittest.isTrue); | 1585 unittest.expect(o.useLegacySql, unittest.isTrue); |
1571 unittest.expect(o.useQueryCache, unittest.isTrue); | 1586 unittest.expect(o.useQueryCache, unittest.isTrue); |
1572 } | 1587 } |
1573 buildCounterQueryRequest--; | 1588 buildCounterQueryRequest--; |
1574 } | 1589 } |
1575 | 1590 |
1576 buildUnnamed3403() { | 1591 buildUnnamed3217() { |
1577 var o = new core.List<api.ErrorProto>(); | 1592 var o = new core.List<api.ErrorProto>(); |
1578 o.add(buildErrorProto()); | 1593 o.add(buildErrorProto()); |
1579 o.add(buildErrorProto()); | 1594 o.add(buildErrorProto()); |
1580 return o; | 1595 return o; |
1581 } | 1596 } |
1582 | 1597 |
1583 checkUnnamed3403(core.List<api.ErrorProto> o) { | 1598 checkUnnamed3217(core.List<api.ErrorProto> o) { |
1584 unittest.expect(o, unittest.hasLength(2)); | 1599 unittest.expect(o, unittest.hasLength(2)); |
1585 checkErrorProto(o[0]); | 1600 checkErrorProto(o[0]); |
1586 checkErrorProto(o[1]); | 1601 checkErrorProto(o[1]); |
1587 } | 1602 } |
1588 | 1603 |
1589 buildUnnamed3404() { | 1604 buildUnnamed3218() { |
1590 var o = new core.List<api.TableRow>(); | 1605 var o = new core.List<api.TableRow>(); |
1591 o.add(buildTableRow()); | 1606 o.add(buildTableRow()); |
1592 o.add(buildTableRow()); | 1607 o.add(buildTableRow()); |
1593 return o; | 1608 return o; |
1594 } | 1609 } |
1595 | 1610 |
1596 checkUnnamed3404(core.List<api.TableRow> o) { | 1611 checkUnnamed3218(core.List<api.TableRow> o) { |
1597 unittest.expect(o, unittest.hasLength(2)); | 1612 unittest.expect(o, unittest.hasLength(2)); |
1598 checkTableRow(o[0]); | 1613 checkTableRow(o[0]); |
1599 checkTableRow(o[1]); | 1614 checkTableRow(o[1]); |
1600 } | 1615 } |
1601 | 1616 |
1602 core.int buildCounterQueryResponse = 0; | 1617 core.int buildCounterQueryResponse = 0; |
1603 buildQueryResponse() { | 1618 buildQueryResponse() { |
1604 var o = new api.QueryResponse(); | 1619 var o = new api.QueryResponse(); |
1605 buildCounterQueryResponse++; | 1620 buildCounterQueryResponse++; |
1606 if (buildCounterQueryResponse < 3) { | 1621 if (buildCounterQueryResponse < 3) { |
1607 o.cacheHit = true; | 1622 o.cacheHit = true; |
1608 o.errors = buildUnnamed3403(); | 1623 o.errors = buildUnnamed3217(); |
1609 o.jobComplete = true; | 1624 o.jobComplete = true; |
1610 o.jobReference = buildJobReference(); | 1625 o.jobReference = buildJobReference(); |
1611 o.kind = "foo"; | 1626 o.kind = "foo"; |
1612 o.numDmlAffectedRows = "foo"; | 1627 o.numDmlAffectedRows = "foo"; |
1613 o.pageToken = "foo"; | 1628 o.pageToken = "foo"; |
1614 o.rows = buildUnnamed3404(); | 1629 o.rows = buildUnnamed3218(); |
1615 o.schema = buildTableSchema(); | 1630 o.schema = buildTableSchema(); |
1616 o.totalBytesProcessed = "foo"; | 1631 o.totalBytesProcessed = "foo"; |
1617 o.totalRows = "foo"; | 1632 o.totalRows = "foo"; |
1618 } | 1633 } |
1619 buildCounterQueryResponse--; | 1634 buildCounterQueryResponse--; |
1620 return o; | 1635 return o; |
1621 } | 1636 } |
1622 | 1637 |
1623 checkQueryResponse(api.QueryResponse o) { | 1638 checkQueryResponse(api.QueryResponse o) { |
1624 buildCounterQueryResponse++; | 1639 buildCounterQueryResponse++; |
1625 if (buildCounterQueryResponse < 3) { | 1640 if (buildCounterQueryResponse < 3) { |
1626 unittest.expect(o.cacheHit, unittest.isTrue); | 1641 unittest.expect(o.cacheHit, unittest.isTrue); |
1627 checkUnnamed3403(o.errors); | 1642 checkUnnamed3217(o.errors); |
1628 unittest.expect(o.jobComplete, unittest.isTrue); | 1643 unittest.expect(o.jobComplete, unittest.isTrue); |
1629 checkJobReference(o.jobReference); | 1644 checkJobReference(o.jobReference); |
1630 unittest.expect(o.kind, unittest.equals('foo')); | 1645 unittest.expect(o.kind, unittest.equals('foo')); |
1631 unittest.expect(o.numDmlAffectedRows, unittest.equals('foo')); | 1646 unittest.expect(o.numDmlAffectedRows, unittest.equals('foo')); |
1632 unittest.expect(o.pageToken, unittest.equals('foo')); | 1647 unittest.expect(o.pageToken, unittest.equals('foo')); |
1633 checkUnnamed3404(o.rows); | 1648 checkUnnamed3218(o.rows); |
1634 checkTableSchema(o.schema); | 1649 checkTableSchema(o.schema); |
1635 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); | 1650 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); |
1636 unittest.expect(o.totalRows, unittest.equals('foo')); | 1651 unittest.expect(o.totalRows, unittest.equals('foo')); |
1637 } | 1652 } |
1638 buildCounterQueryResponse--; | 1653 buildCounterQueryResponse--; |
1639 } | 1654 } |
1640 | 1655 |
1641 core.int buildCounterStreamingbuffer = 0; | 1656 core.int buildCounterStreamingbuffer = 0; |
1642 buildStreamingbuffer() { | 1657 buildStreamingbuffer() { |
1643 var o = new api.Streamingbuffer(); | 1658 var o = new api.Streamingbuffer(); |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1751 | 1766 |
1752 checkTableDataInsertAllRequestRows(api.TableDataInsertAllRequestRows o) { | 1767 checkTableDataInsertAllRequestRows(api.TableDataInsertAllRequestRows o) { |
1753 buildCounterTableDataInsertAllRequestRows++; | 1768 buildCounterTableDataInsertAllRequestRows++; |
1754 if (buildCounterTableDataInsertAllRequestRows < 3) { | 1769 if (buildCounterTableDataInsertAllRequestRows < 3) { |
1755 unittest.expect(o.insertId, unittest.equals('foo')); | 1770 unittest.expect(o.insertId, unittest.equals('foo')); |
1756 checkJsonObject(o.json); | 1771 checkJsonObject(o.json); |
1757 } | 1772 } |
1758 buildCounterTableDataInsertAllRequestRows--; | 1773 buildCounterTableDataInsertAllRequestRows--; |
1759 } | 1774 } |
1760 | 1775 |
1761 buildUnnamed3405() { | 1776 buildUnnamed3219() { |
1762 var o = new core.List<api.TableDataInsertAllRequestRows>(); | 1777 var o = new core.List<api.TableDataInsertAllRequestRows>(); |
1763 o.add(buildTableDataInsertAllRequestRows()); | 1778 o.add(buildTableDataInsertAllRequestRows()); |
1764 o.add(buildTableDataInsertAllRequestRows()); | 1779 o.add(buildTableDataInsertAllRequestRows()); |
1765 return o; | 1780 return o; |
1766 } | 1781 } |
1767 | 1782 |
1768 checkUnnamed3405(core.List<api.TableDataInsertAllRequestRows> o) { | 1783 checkUnnamed3219(core.List<api.TableDataInsertAllRequestRows> o) { |
1769 unittest.expect(o, unittest.hasLength(2)); | 1784 unittest.expect(o, unittest.hasLength(2)); |
1770 checkTableDataInsertAllRequestRows(o[0]); | 1785 checkTableDataInsertAllRequestRows(o[0]); |
1771 checkTableDataInsertAllRequestRows(o[1]); | 1786 checkTableDataInsertAllRequestRows(o[1]); |
1772 } | 1787 } |
1773 | 1788 |
1774 core.int buildCounterTableDataInsertAllRequest = 0; | 1789 core.int buildCounterTableDataInsertAllRequest = 0; |
1775 buildTableDataInsertAllRequest() { | 1790 buildTableDataInsertAllRequest() { |
1776 var o = new api.TableDataInsertAllRequest(); | 1791 var o = new api.TableDataInsertAllRequest(); |
1777 buildCounterTableDataInsertAllRequest++; | 1792 buildCounterTableDataInsertAllRequest++; |
1778 if (buildCounterTableDataInsertAllRequest < 3) { | 1793 if (buildCounterTableDataInsertAllRequest < 3) { |
1779 o.ignoreUnknownValues = true; | 1794 o.ignoreUnknownValues = true; |
1780 o.kind = "foo"; | 1795 o.kind = "foo"; |
1781 o.rows = buildUnnamed3405(); | 1796 o.rows = buildUnnamed3219(); |
1782 o.skipInvalidRows = true; | 1797 o.skipInvalidRows = true; |
1783 o.templateSuffix = "foo"; | 1798 o.templateSuffix = "foo"; |
1784 } | 1799 } |
1785 buildCounterTableDataInsertAllRequest--; | 1800 buildCounterTableDataInsertAllRequest--; |
1786 return o; | 1801 return o; |
1787 } | 1802 } |
1788 | 1803 |
1789 checkTableDataInsertAllRequest(api.TableDataInsertAllRequest o) { | 1804 checkTableDataInsertAllRequest(api.TableDataInsertAllRequest o) { |
1790 buildCounterTableDataInsertAllRequest++; | 1805 buildCounterTableDataInsertAllRequest++; |
1791 if (buildCounterTableDataInsertAllRequest < 3) { | 1806 if (buildCounterTableDataInsertAllRequest < 3) { |
1792 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); | 1807 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); |
1793 unittest.expect(o.kind, unittest.equals('foo')); | 1808 unittest.expect(o.kind, unittest.equals('foo')); |
1794 checkUnnamed3405(o.rows); | 1809 checkUnnamed3219(o.rows); |
1795 unittest.expect(o.skipInvalidRows, unittest.isTrue); | 1810 unittest.expect(o.skipInvalidRows, unittest.isTrue); |
1796 unittest.expect(o.templateSuffix, unittest.equals('foo')); | 1811 unittest.expect(o.templateSuffix, unittest.equals('foo')); |
1797 } | 1812 } |
1798 buildCounterTableDataInsertAllRequest--; | 1813 buildCounterTableDataInsertAllRequest--; |
1799 } | 1814 } |
1800 | 1815 |
1801 buildUnnamed3406() { | 1816 buildUnnamed3220() { |
1802 var o = new core.List<api.ErrorProto>(); | 1817 var o = new core.List<api.ErrorProto>(); |
1803 o.add(buildErrorProto()); | 1818 o.add(buildErrorProto()); |
1804 o.add(buildErrorProto()); | 1819 o.add(buildErrorProto()); |
1805 return o; | 1820 return o; |
1806 } | 1821 } |
1807 | 1822 |
1808 checkUnnamed3406(core.List<api.ErrorProto> o) { | 1823 checkUnnamed3220(core.List<api.ErrorProto> o) { |
1809 unittest.expect(o, unittest.hasLength(2)); | 1824 unittest.expect(o, unittest.hasLength(2)); |
1810 checkErrorProto(o[0]); | 1825 checkErrorProto(o[0]); |
1811 checkErrorProto(o[1]); | 1826 checkErrorProto(o[1]); |
1812 } | 1827 } |
1813 | 1828 |
1814 core.int buildCounterTableDataInsertAllResponseInsertErrors = 0; | 1829 core.int buildCounterTableDataInsertAllResponseInsertErrors = 0; |
1815 buildTableDataInsertAllResponseInsertErrors() { | 1830 buildTableDataInsertAllResponseInsertErrors() { |
1816 var o = new api.TableDataInsertAllResponseInsertErrors(); | 1831 var o = new api.TableDataInsertAllResponseInsertErrors(); |
1817 buildCounterTableDataInsertAllResponseInsertErrors++; | 1832 buildCounterTableDataInsertAllResponseInsertErrors++; |
1818 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { | 1833 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { |
1819 o.errors = buildUnnamed3406(); | 1834 o.errors = buildUnnamed3220(); |
1820 o.index = 42; | 1835 o.index = 42; |
1821 } | 1836 } |
1822 buildCounterTableDataInsertAllResponseInsertErrors--; | 1837 buildCounterTableDataInsertAllResponseInsertErrors--; |
1823 return o; | 1838 return o; |
1824 } | 1839 } |
1825 | 1840 |
1826 checkTableDataInsertAllResponseInsertErrors(api.TableDataInsertAllResponseInsert
Errors o) { | 1841 checkTableDataInsertAllResponseInsertErrors(api.TableDataInsertAllResponseInsert
Errors o) { |
1827 buildCounterTableDataInsertAllResponseInsertErrors++; | 1842 buildCounterTableDataInsertAllResponseInsertErrors++; |
1828 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { | 1843 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { |
1829 checkUnnamed3406(o.errors); | 1844 checkUnnamed3220(o.errors); |
1830 unittest.expect(o.index, unittest.equals(42)); | 1845 unittest.expect(o.index, unittest.equals(42)); |
1831 } | 1846 } |
1832 buildCounterTableDataInsertAllResponseInsertErrors--; | 1847 buildCounterTableDataInsertAllResponseInsertErrors--; |
1833 } | 1848 } |
1834 | 1849 |
1835 buildUnnamed3407() { | 1850 buildUnnamed3221() { |
1836 var o = new core.List<api.TableDataInsertAllResponseInsertErrors>(); | 1851 var o = new core.List<api.TableDataInsertAllResponseInsertErrors>(); |
1837 o.add(buildTableDataInsertAllResponseInsertErrors()); | 1852 o.add(buildTableDataInsertAllResponseInsertErrors()); |
1838 o.add(buildTableDataInsertAllResponseInsertErrors()); | 1853 o.add(buildTableDataInsertAllResponseInsertErrors()); |
1839 return o; | 1854 return o; |
1840 } | 1855 } |
1841 | 1856 |
1842 checkUnnamed3407(core.List<api.TableDataInsertAllResponseInsertErrors> o) { | 1857 checkUnnamed3221(core.List<api.TableDataInsertAllResponseInsertErrors> o) { |
1843 unittest.expect(o, unittest.hasLength(2)); | 1858 unittest.expect(o, unittest.hasLength(2)); |
1844 checkTableDataInsertAllResponseInsertErrors(o[0]); | 1859 checkTableDataInsertAllResponseInsertErrors(o[0]); |
1845 checkTableDataInsertAllResponseInsertErrors(o[1]); | 1860 checkTableDataInsertAllResponseInsertErrors(o[1]); |
1846 } | 1861 } |
1847 | 1862 |
1848 core.int buildCounterTableDataInsertAllResponse = 0; | 1863 core.int buildCounterTableDataInsertAllResponse = 0; |
1849 buildTableDataInsertAllResponse() { | 1864 buildTableDataInsertAllResponse() { |
1850 var o = new api.TableDataInsertAllResponse(); | 1865 var o = new api.TableDataInsertAllResponse(); |
1851 buildCounterTableDataInsertAllResponse++; | 1866 buildCounterTableDataInsertAllResponse++; |
1852 if (buildCounterTableDataInsertAllResponse < 3) { | 1867 if (buildCounterTableDataInsertAllResponse < 3) { |
1853 o.insertErrors = buildUnnamed3407(); | 1868 o.insertErrors = buildUnnamed3221(); |
1854 o.kind = "foo"; | 1869 o.kind = "foo"; |
1855 } | 1870 } |
1856 buildCounterTableDataInsertAllResponse--; | 1871 buildCounterTableDataInsertAllResponse--; |
1857 return o; | 1872 return o; |
1858 } | 1873 } |
1859 | 1874 |
1860 checkTableDataInsertAllResponse(api.TableDataInsertAllResponse o) { | 1875 checkTableDataInsertAllResponse(api.TableDataInsertAllResponse o) { |
1861 buildCounterTableDataInsertAllResponse++; | 1876 buildCounterTableDataInsertAllResponse++; |
1862 if (buildCounterTableDataInsertAllResponse < 3) { | 1877 if (buildCounterTableDataInsertAllResponse < 3) { |
1863 checkUnnamed3407(o.insertErrors); | 1878 checkUnnamed3221(o.insertErrors); |
1864 unittest.expect(o.kind, unittest.equals('foo')); | 1879 unittest.expect(o.kind, unittest.equals('foo')); |
1865 } | 1880 } |
1866 buildCounterTableDataInsertAllResponse--; | 1881 buildCounterTableDataInsertAllResponse--; |
1867 } | 1882 } |
1868 | 1883 |
1869 buildUnnamed3408() { | 1884 buildUnnamed3222() { |
1870 var o = new core.List<api.TableRow>(); | 1885 var o = new core.List<api.TableRow>(); |
1871 o.add(buildTableRow()); | 1886 o.add(buildTableRow()); |
1872 o.add(buildTableRow()); | 1887 o.add(buildTableRow()); |
1873 return o; | 1888 return o; |
1874 } | 1889 } |
1875 | 1890 |
1876 checkUnnamed3408(core.List<api.TableRow> o) { | 1891 checkUnnamed3222(core.List<api.TableRow> o) { |
1877 unittest.expect(o, unittest.hasLength(2)); | 1892 unittest.expect(o, unittest.hasLength(2)); |
1878 checkTableRow(o[0]); | 1893 checkTableRow(o[0]); |
1879 checkTableRow(o[1]); | 1894 checkTableRow(o[1]); |
1880 } | 1895 } |
1881 | 1896 |
1882 core.int buildCounterTableDataList = 0; | 1897 core.int buildCounterTableDataList = 0; |
1883 buildTableDataList() { | 1898 buildTableDataList() { |
1884 var o = new api.TableDataList(); | 1899 var o = new api.TableDataList(); |
1885 buildCounterTableDataList++; | 1900 buildCounterTableDataList++; |
1886 if (buildCounterTableDataList < 3) { | 1901 if (buildCounterTableDataList < 3) { |
1887 o.etag = "foo"; | 1902 o.etag = "foo"; |
1888 o.kind = "foo"; | 1903 o.kind = "foo"; |
1889 o.pageToken = "foo"; | 1904 o.pageToken = "foo"; |
1890 o.rows = buildUnnamed3408(); | 1905 o.rows = buildUnnamed3222(); |
1891 o.totalRows = "foo"; | 1906 o.totalRows = "foo"; |
1892 } | 1907 } |
1893 buildCounterTableDataList--; | 1908 buildCounterTableDataList--; |
1894 return o; | 1909 return o; |
1895 } | 1910 } |
1896 | 1911 |
1897 checkTableDataList(api.TableDataList o) { | 1912 checkTableDataList(api.TableDataList o) { |
1898 buildCounterTableDataList++; | 1913 buildCounterTableDataList++; |
1899 if (buildCounterTableDataList < 3) { | 1914 if (buildCounterTableDataList < 3) { |
1900 unittest.expect(o.etag, unittest.equals('foo')); | 1915 unittest.expect(o.etag, unittest.equals('foo')); |
1901 unittest.expect(o.kind, unittest.equals('foo')); | 1916 unittest.expect(o.kind, unittest.equals('foo')); |
1902 unittest.expect(o.pageToken, unittest.equals('foo')); | 1917 unittest.expect(o.pageToken, unittest.equals('foo')); |
1903 checkUnnamed3408(o.rows); | 1918 checkUnnamed3222(o.rows); |
1904 unittest.expect(o.totalRows, unittest.equals('foo')); | 1919 unittest.expect(o.totalRows, unittest.equals('foo')); |
1905 } | 1920 } |
1906 buildCounterTableDataList--; | 1921 buildCounterTableDataList--; |
1907 } | 1922 } |
1908 | 1923 |
1909 buildUnnamed3409() { | 1924 buildUnnamed3223() { |
1910 var o = new core.List<api.TableFieldSchema>(); | 1925 var o = new core.List<api.TableFieldSchema>(); |
1911 o.add(buildTableFieldSchema()); | 1926 o.add(buildTableFieldSchema()); |
1912 o.add(buildTableFieldSchema()); | 1927 o.add(buildTableFieldSchema()); |
1913 return o; | 1928 return o; |
1914 } | 1929 } |
1915 | 1930 |
1916 checkUnnamed3409(core.List<api.TableFieldSchema> o) { | 1931 checkUnnamed3223(core.List<api.TableFieldSchema> o) { |
1917 unittest.expect(o, unittest.hasLength(2)); | 1932 unittest.expect(o, unittest.hasLength(2)); |
1918 checkTableFieldSchema(o[0]); | 1933 checkTableFieldSchema(o[0]); |
1919 checkTableFieldSchema(o[1]); | 1934 checkTableFieldSchema(o[1]); |
1920 } | 1935 } |
1921 | 1936 |
1922 core.int buildCounterTableFieldSchema = 0; | 1937 core.int buildCounterTableFieldSchema = 0; |
1923 buildTableFieldSchema() { | 1938 buildTableFieldSchema() { |
1924 var o = new api.TableFieldSchema(); | 1939 var o = new api.TableFieldSchema(); |
1925 buildCounterTableFieldSchema++; | 1940 buildCounterTableFieldSchema++; |
1926 if (buildCounterTableFieldSchema < 3) { | 1941 if (buildCounterTableFieldSchema < 3) { |
1927 o.description = "foo"; | 1942 o.description = "foo"; |
1928 o.fields = buildUnnamed3409(); | 1943 o.fields = buildUnnamed3223(); |
1929 o.mode = "foo"; | 1944 o.mode = "foo"; |
1930 o.name = "foo"; | 1945 o.name = "foo"; |
1931 o.type = "foo"; | 1946 o.type = "foo"; |
1932 } | 1947 } |
1933 buildCounterTableFieldSchema--; | 1948 buildCounterTableFieldSchema--; |
1934 return o; | 1949 return o; |
1935 } | 1950 } |
1936 | 1951 |
1937 checkTableFieldSchema(api.TableFieldSchema o) { | 1952 checkTableFieldSchema(api.TableFieldSchema o) { |
1938 buildCounterTableFieldSchema++; | 1953 buildCounterTableFieldSchema++; |
1939 if (buildCounterTableFieldSchema < 3) { | 1954 if (buildCounterTableFieldSchema < 3) { |
1940 unittest.expect(o.description, unittest.equals('foo')); | 1955 unittest.expect(o.description, unittest.equals('foo')); |
1941 checkUnnamed3409(o.fields); | 1956 checkUnnamed3223(o.fields); |
1942 unittest.expect(o.mode, unittest.equals('foo')); | 1957 unittest.expect(o.mode, unittest.equals('foo')); |
1943 unittest.expect(o.name, unittest.equals('foo')); | 1958 unittest.expect(o.name, unittest.equals('foo')); |
1944 unittest.expect(o.type, unittest.equals('foo')); | 1959 unittest.expect(o.type, unittest.equals('foo')); |
1945 } | 1960 } |
1946 buildCounterTableFieldSchema--; | 1961 buildCounterTableFieldSchema--; |
1947 } | 1962 } |
1948 | 1963 |
1949 core.int buildCounterTableListTables = 0; | 1964 core.int buildCounterTableListTables = 0; |
1950 buildTableListTables() { | 1965 buildTableListTables() { |
1951 var o = new api.TableListTables(); | 1966 var o = new api.TableListTables(); |
(...skipping 14 matching lines...) Expand all Loading... |
1966 if (buildCounterTableListTables < 3) { | 1981 if (buildCounterTableListTables < 3) { |
1967 unittest.expect(o.friendlyName, unittest.equals('foo')); | 1982 unittest.expect(o.friendlyName, unittest.equals('foo')); |
1968 unittest.expect(o.id, unittest.equals('foo')); | 1983 unittest.expect(o.id, unittest.equals('foo')); |
1969 unittest.expect(o.kind, unittest.equals('foo')); | 1984 unittest.expect(o.kind, unittest.equals('foo')); |
1970 checkTableReference(o.tableReference); | 1985 checkTableReference(o.tableReference); |
1971 unittest.expect(o.type, unittest.equals('foo')); | 1986 unittest.expect(o.type, unittest.equals('foo')); |
1972 } | 1987 } |
1973 buildCounterTableListTables--; | 1988 buildCounterTableListTables--; |
1974 } | 1989 } |
1975 | 1990 |
1976 buildUnnamed3410() { | 1991 buildUnnamed3224() { |
1977 var o = new core.List<api.TableListTables>(); | 1992 var o = new core.List<api.TableListTables>(); |
1978 o.add(buildTableListTables()); | 1993 o.add(buildTableListTables()); |
1979 o.add(buildTableListTables()); | 1994 o.add(buildTableListTables()); |
1980 return o; | 1995 return o; |
1981 } | 1996 } |
1982 | 1997 |
1983 checkUnnamed3410(core.List<api.TableListTables> o) { | 1998 checkUnnamed3224(core.List<api.TableListTables> o) { |
1984 unittest.expect(o, unittest.hasLength(2)); | 1999 unittest.expect(o, unittest.hasLength(2)); |
1985 checkTableListTables(o[0]); | 2000 checkTableListTables(o[0]); |
1986 checkTableListTables(o[1]); | 2001 checkTableListTables(o[1]); |
1987 } | 2002 } |
1988 | 2003 |
1989 core.int buildCounterTableList = 0; | 2004 core.int buildCounterTableList = 0; |
1990 buildTableList() { | 2005 buildTableList() { |
1991 var o = new api.TableList(); | 2006 var o = new api.TableList(); |
1992 buildCounterTableList++; | 2007 buildCounterTableList++; |
1993 if (buildCounterTableList < 3) { | 2008 if (buildCounterTableList < 3) { |
1994 o.etag = "foo"; | 2009 o.etag = "foo"; |
1995 o.kind = "foo"; | 2010 o.kind = "foo"; |
1996 o.nextPageToken = "foo"; | 2011 o.nextPageToken = "foo"; |
1997 o.tables = buildUnnamed3410(); | 2012 o.tables = buildUnnamed3224(); |
1998 o.totalItems = 42; | 2013 o.totalItems = 42; |
1999 } | 2014 } |
2000 buildCounterTableList--; | 2015 buildCounterTableList--; |
2001 return o; | 2016 return o; |
2002 } | 2017 } |
2003 | 2018 |
2004 checkTableList(api.TableList o) { | 2019 checkTableList(api.TableList o) { |
2005 buildCounterTableList++; | 2020 buildCounterTableList++; |
2006 if (buildCounterTableList < 3) { | 2021 if (buildCounterTableList < 3) { |
2007 unittest.expect(o.etag, unittest.equals('foo')); | 2022 unittest.expect(o.etag, unittest.equals('foo')); |
2008 unittest.expect(o.kind, unittest.equals('foo')); | 2023 unittest.expect(o.kind, unittest.equals('foo')); |
2009 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2024 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2010 checkUnnamed3410(o.tables); | 2025 checkUnnamed3224(o.tables); |
2011 unittest.expect(o.totalItems, unittest.equals(42)); | 2026 unittest.expect(o.totalItems, unittest.equals(42)); |
2012 } | 2027 } |
2013 buildCounterTableList--; | 2028 buildCounterTableList--; |
2014 } | 2029 } |
2015 | 2030 |
2016 core.int buildCounterTableReference = 0; | 2031 core.int buildCounterTableReference = 0; |
2017 buildTableReference() { | 2032 buildTableReference() { |
2018 var o = new api.TableReference(); | 2033 var o = new api.TableReference(); |
2019 buildCounterTableReference++; | 2034 buildCounterTableReference++; |
2020 if (buildCounterTableReference < 3) { | 2035 if (buildCounterTableReference < 3) { |
2021 o.datasetId = "foo"; | 2036 o.datasetId = "foo"; |
2022 o.projectId = "foo"; | 2037 o.projectId = "foo"; |
2023 o.tableId = "foo"; | 2038 o.tableId = "foo"; |
2024 } | 2039 } |
2025 buildCounterTableReference--; | 2040 buildCounterTableReference--; |
2026 return o; | 2041 return o; |
2027 } | 2042 } |
2028 | 2043 |
2029 checkTableReference(api.TableReference o) { | 2044 checkTableReference(api.TableReference o) { |
2030 buildCounterTableReference++; | 2045 buildCounterTableReference++; |
2031 if (buildCounterTableReference < 3) { | 2046 if (buildCounterTableReference < 3) { |
2032 unittest.expect(o.datasetId, unittest.equals('foo')); | 2047 unittest.expect(o.datasetId, unittest.equals('foo')); |
2033 unittest.expect(o.projectId, unittest.equals('foo')); | 2048 unittest.expect(o.projectId, unittest.equals('foo')); |
2034 unittest.expect(o.tableId, unittest.equals('foo')); | 2049 unittest.expect(o.tableId, unittest.equals('foo')); |
2035 } | 2050 } |
2036 buildCounterTableReference--; | 2051 buildCounterTableReference--; |
2037 } | 2052 } |
2038 | 2053 |
2039 buildUnnamed3411() { | 2054 buildUnnamed3225() { |
2040 var o = new core.List<api.TableCell>(); | 2055 var o = new core.List<api.TableCell>(); |
2041 o.add(buildTableCell()); | 2056 o.add(buildTableCell()); |
2042 o.add(buildTableCell()); | 2057 o.add(buildTableCell()); |
2043 return o; | 2058 return o; |
2044 } | 2059 } |
2045 | 2060 |
2046 checkUnnamed3411(core.List<api.TableCell> o) { | 2061 checkUnnamed3225(core.List<api.TableCell> o) { |
2047 unittest.expect(o, unittest.hasLength(2)); | 2062 unittest.expect(o, unittest.hasLength(2)); |
2048 checkTableCell(o[0]); | 2063 checkTableCell(o[0]); |
2049 checkTableCell(o[1]); | 2064 checkTableCell(o[1]); |
2050 } | 2065 } |
2051 | 2066 |
2052 core.int buildCounterTableRow = 0; | 2067 core.int buildCounterTableRow = 0; |
2053 buildTableRow() { | 2068 buildTableRow() { |
2054 var o = new api.TableRow(); | 2069 var o = new api.TableRow(); |
2055 buildCounterTableRow++; | 2070 buildCounterTableRow++; |
2056 if (buildCounterTableRow < 3) { | 2071 if (buildCounterTableRow < 3) { |
2057 o.f = buildUnnamed3411(); | 2072 o.f = buildUnnamed3225(); |
2058 } | 2073 } |
2059 buildCounterTableRow--; | 2074 buildCounterTableRow--; |
2060 return o; | 2075 return o; |
2061 } | 2076 } |
2062 | 2077 |
2063 checkTableRow(api.TableRow o) { | 2078 checkTableRow(api.TableRow o) { |
2064 buildCounterTableRow++; | 2079 buildCounterTableRow++; |
2065 if (buildCounterTableRow < 3) { | 2080 if (buildCounterTableRow < 3) { |
2066 checkUnnamed3411(o.f); | 2081 checkUnnamed3225(o.f); |
2067 } | 2082 } |
2068 buildCounterTableRow--; | 2083 buildCounterTableRow--; |
2069 } | 2084 } |
2070 | 2085 |
2071 buildUnnamed3412() { | 2086 buildUnnamed3226() { |
2072 var o = new core.List<api.TableFieldSchema>(); | 2087 var o = new core.List<api.TableFieldSchema>(); |
2073 o.add(buildTableFieldSchema()); | 2088 o.add(buildTableFieldSchema()); |
2074 o.add(buildTableFieldSchema()); | 2089 o.add(buildTableFieldSchema()); |
2075 return o; | 2090 return o; |
2076 } | 2091 } |
2077 | 2092 |
2078 checkUnnamed3412(core.List<api.TableFieldSchema> o) { | 2093 checkUnnamed3226(core.List<api.TableFieldSchema> o) { |
2079 unittest.expect(o, unittest.hasLength(2)); | 2094 unittest.expect(o, unittest.hasLength(2)); |
2080 checkTableFieldSchema(o[0]); | 2095 checkTableFieldSchema(o[0]); |
2081 checkTableFieldSchema(o[1]); | 2096 checkTableFieldSchema(o[1]); |
2082 } | 2097 } |
2083 | 2098 |
2084 core.int buildCounterTableSchema = 0; | 2099 core.int buildCounterTableSchema = 0; |
2085 buildTableSchema() { | 2100 buildTableSchema() { |
2086 var o = new api.TableSchema(); | 2101 var o = new api.TableSchema(); |
2087 buildCounterTableSchema++; | 2102 buildCounterTableSchema++; |
2088 if (buildCounterTableSchema < 3) { | 2103 if (buildCounterTableSchema < 3) { |
2089 o.fields = buildUnnamed3412(); | 2104 o.fields = buildUnnamed3226(); |
2090 } | 2105 } |
2091 buildCounterTableSchema--; | 2106 buildCounterTableSchema--; |
2092 return o; | 2107 return o; |
2093 } | 2108 } |
2094 | 2109 |
2095 checkTableSchema(api.TableSchema o) { | 2110 checkTableSchema(api.TableSchema o) { |
2096 buildCounterTableSchema++; | 2111 buildCounterTableSchema++; |
2097 if (buildCounterTableSchema < 3) { | 2112 if (buildCounterTableSchema < 3) { |
2098 checkUnnamed3412(o.fields); | 2113 checkUnnamed3226(o.fields); |
2099 } | 2114 } |
2100 buildCounterTableSchema--; | 2115 buildCounterTableSchema--; |
2101 } | 2116 } |
2102 | 2117 |
2103 core.int buildCounterTimePartitioning = 0; | 2118 core.int buildCounterTimePartitioning = 0; |
2104 buildTimePartitioning() { | 2119 buildTimePartitioning() { |
2105 var o = new api.TimePartitioning(); | 2120 var o = new api.TimePartitioning(); |
2106 buildCounterTimePartitioning++; | 2121 buildCounterTimePartitioning++; |
2107 if (buildCounterTimePartitioning < 3) { | 2122 if (buildCounterTimePartitioning < 3) { |
2108 o.expirationMs = "foo"; | 2123 o.expirationMs = "foo"; |
(...skipping 26 matching lines...) Expand all Loading... |
2135 | 2150 |
2136 checkUserDefinedFunctionResource(api.UserDefinedFunctionResource o) { | 2151 checkUserDefinedFunctionResource(api.UserDefinedFunctionResource o) { |
2137 buildCounterUserDefinedFunctionResource++; | 2152 buildCounterUserDefinedFunctionResource++; |
2138 if (buildCounterUserDefinedFunctionResource < 3) { | 2153 if (buildCounterUserDefinedFunctionResource < 3) { |
2139 unittest.expect(o.inlineCode, unittest.equals('foo')); | 2154 unittest.expect(o.inlineCode, unittest.equals('foo')); |
2140 unittest.expect(o.resourceUri, unittest.equals('foo')); | 2155 unittest.expect(o.resourceUri, unittest.equals('foo')); |
2141 } | 2156 } |
2142 buildCounterUserDefinedFunctionResource--; | 2157 buildCounterUserDefinedFunctionResource--; |
2143 } | 2158 } |
2144 | 2159 |
2145 buildUnnamed3413() { | 2160 buildUnnamed3227() { |
2146 var o = new core.List<api.UserDefinedFunctionResource>(); | 2161 var o = new core.List<api.UserDefinedFunctionResource>(); |
2147 o.add(buildUserDefinedFunctionResource()); | 2162 o.add(buildUserDefinedFunctionResource()); |
2148 o.add(buildUserDefinedFunctionResource()); | 2163 o.add(buildUserDefinedFunctionResource()); |
2149 return o; | 2164 return o; |
2150 } | 2165 } |
2151 | 2166 |
2152 checkUnnamed3413(core.List<api.UserDefinedFunctionResource> o) { | 2167 checkUnnamed3227(core.List<api.UserDefinedFunctionResource> o) { |
2153 unittest.expect(o, unittest.hasLength(2)); | 2168 unittest.expect(o, unittest.hasLength(2)); |
2154 checkUserDefinedFunctionResource(o[0]); | 2169 checkUserDefinedFunctionResource(o[0]); |
2155 checkUserDefinedFunctionResource(o[1]); | 2170 checkUserDefinedFunctionResource(o[1]); |
2156 } | 2171 } |
2157 | 2172 |
2158 core.int buildCounterViewDefinition = 0; | 2173 core.int buildCounterViewDefinition = 0; |
2159 buildViewDefinition() { | 2174 buildViewDefinition() { |
2160 var o = new api.ViewDefinition(); | 2175 var o = new api.ViewDefinition(); |
2161 buildCounterViewDefinition++; | 2176 buildCounterViewDefinition++; |
2162 if (buildCounterViewDefinition < 3) { | 2177 if (buildCounterViewDefinition < 3) { |
2163 o.query = "foo"; | 2178 o.query = "foo"; |
2164 o.useLegacySql = true; | 2179 o.useLegacySql = true; |
2165 o.userDefinedFunctionResources = buildUnnamed3413(); | 2180 o.userDefinedFunctionResources = buildUnnamed3227(); |
2166 } | 2181 } |
2167 buildCounterViewDefinition--; | 2182 buildCounterViewDefinition--; |
2168 return o; | 2183 return o; |
2169 } | 2184 } |
2170 | 2185 |
2171 checkViewDefinition(api.ViewDefinition o) { | 2186 checkViewDefinition(api.ViewDefinition o) { |
2172 buildCounterViewDefinition++; | 2187 buildCounterViewDefinition++; |
2173 if (buildCounterViewDefinition < 3) { | 2188 if (buildCounterViewDefinition < 3) { |
2174 unittest.expect(o.query, unittest.equals('foo')); | 2189 unittest.expect(o.query, unittest.equals('foo')); |
2175 unittest.expect(o.useLegacySql, unittest.isTrue); | 2190 unittest.expect(o.useLegacySql, unittest.isTrue); |
2176 checkUnnamed3413(o.userDefinedFunctionResources); | 2191 checkUnnamed3227(o.userDefinedFunctionResources); |
2177 } | 2192 } |
2178 buildCounterViewDefinition--; | 2193 buildCounterViewDefinition--; |
2179 } | 2194 } |
2180 | 2195 |
2181 buildUnnamed3414() { | 2196 buildUnnamed3228() { |
2182 var o = new core.List<core.String>(); | 2197 var o = new core.List<core.String>(); |
2183 o.add("foo"); | 2198 o.add("foo"); |
2184 o.add("foo"); | 2199 o.add("foo"); |
2185 return o; | 2200 return o; |
2186 } | 2201 } |
2187 | 2202 |
2188 checkUnnamed3414(core.List<core.String> o) { | 2203 checkUnnamed3228(core.List<core.String> o) { |
2189 unittest.expect(o, unittest.hasLength(2)); | 2204 unittest.expect(o, unittest.hasLength(2)); |
2190 unittest.expect(o[0], unittest.equals('foo')); | 2205 unittest.expect(o[0], unittest.equals('foo')); |
2191 unittest.expect(o[1], unittest.equals('foo')); | 2206 unittest.expect(o[1], unittest.equals('foo')); |
2192 } | 2207 } |
2193 | 2208 |
2194 | 2209 |
2195 main() { | 2210 main() { |
2196 unittest.group("obj-schema-BigtableColumn", () { | 2211 unittest.group("obj-schema-BigtableColumn", () { |
2197 unittest.test("to-json--from-json", () { | 2212 unittest.test("to-json--from-json", () { |
2198 var o = buildBigtableColumn(); | 2213 var o = buildBigtableColumn(); |
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3073 var arg_jobId = "foo"; | 3088 var arg_jobId = "foo"; |
3074 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3089 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3075 var path = (req.url).path; | 3090 var path = (req.url).path; |
3076 var pathOffset = 0; | 3091 var pathOffset = 0; |
3077 var index; | 3092 var index; |
3078 var subPart; | 3093 var subPart; |
3079 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3094 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3080 pathOffset += 1; | 3095 pathOffset += 1; |
3081 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("bigquery/v2/")); | 3096 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("bigquery/v2/")); |
3082 pathOffset += 12; | 3097 pathOffset += 12; |
3083 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("project/")); | 3098 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
3084 pathOffset += 8; | 3099 pathOffset += 9; |
3085 index = path.indexOf("/jobs/", pathOffset); | 3100 index = path.indexOf("/jobs/", pathOffset); |
3086 unittest.expect(index >= 0, unittest.isTrue); | 3101 unittest.expect(index >= 0, unittest.isTrue); |
3087 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3102 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
3088 pathOffset = index; | 3103 pathOffset = index; |
3089 unittest.expect(subPart, unittest.equals("$arg_projectId")); | 3104 unittest.expect(subPart, unittest.equals("$arg_projectId")); |
3090 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/jobs/")); | 3105 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/jobs/")); |
3091 pathOffset += 6; | 3106 pathOffset += 6; |
3092 index = path.indexOf("/cancel", pathOffset); | 3107 index = path.indexOf("/cancel", pathOffset); |
3093 unittest.expect(index >= 0, unittest.isTrue); | 3108 unittest.expect(index >= 0, unittest.isTrue); |
3094 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3109 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3309 | 3324 |
3310 unittest.test("method--list", () { | 3325 unittest.test("method--list", () { |
3311 | 3326 |
3312 var mock = new HttpServerMock(); | 3327 var mock = new HttpServerMock(); |
3313 api.JobsResourceApi res = new api.BigqueryApi(mock).jobs; | 3328 api.JobsResourceApi res = new api.BigqueryApi(mock).jobs; |
3314 var arg_projectId = "foo"; | 3329 var arg_projectId = "foo"; |
3315 var arg_allUsers = true; | 3330 var arg_allUsers = true; |
3316 var arg_maxResults = 42; | 3331 var arg_maxResults = 42; |
3317 var arg_pageToken = "foo"; | 3332 var arg_pageToken = "foo"; |
3318 var arg_projection = "foo"; | 3333 var arg_projection = "foo"; |
3319 var arg_stateFilter = buildUnnamed3414(); | 3334 var arg_stateFilter = buildUnnamed3228(); |
3320 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3335 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3321 var path = (req.url).path; | 3336 var path = (req.url).path; |
3322 var pathOffset = 0; | 3337 var pathOffset = 0; |
3323 var index; | 3338 var index; |
3324 var subPart; | 3339 var subPart; |
3325 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3340 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
3326 pathOffset += 1; | 3341 pathOffset += 1; |
3327 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("bigquery/v2/")); | 3342 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("bigquery/v2/")); |
3328 pathOffset += 12; | 3343 pathOffset += 12; |
3329 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 3344 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4030 res.update(arg_request, arg_projectId, arg_datasetId, arg_tableId).then(un
ittest.expectAsync(((api.Table response) { | 4045 res.update(arg_request, arg_projectId, arg_datasetId, arg_tableId).then(un
ittest.expectAsync(((api.Table response) { |
4031 checkTable(response); | 4046 checkTable(response); |
4032 }))); | 4047 }))); |
4033 }); | 4048 }); |
4034 | 4049 |
4035 }); | 4050 }); |
4036 | 4051 |
4037 | 4052 |
4038 } | 4053 } |
4039 | 4054 |
OLD | NEW |