| 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 buildUnnamed485() { | 83 buildUnnamed3372() { |
| 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 checkUnnamed485(core.List<api.BigtableColumn> o) { | 90 checkUnnamed3372(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 = buildUnnamed485(); | 101 o.columns = buildUnnamed3372(); |
| 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 checkUnnamed485(o.columns); | 114 checkUnnamed3372(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 buildUnnamed486() { | 123 buildUnnamed3373() { |
| 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 checkUnnamed486(core.List<api.BigtableColumnFamily> o) { | 130 checkUnnamed3373(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 = buildUnnamed486(); | 141 o.columnFamilies = buildUnnamed3373(); |
| 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 checkUnnamed486(o.columnFamilies); | 152 checkUnnamed3373(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 buildUnnamed487() { | 217 buildUnnamed3374() { |
| 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 checkUnnamed487(core.List<api.DatasetAccess> o) { | 224 checkUnnamed3374(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 buildUnnamed488() { | 230 buildUnnamed3375() { |
| 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 checkUnnamed488(core.Map<core.String, core.String> o) { | 237 checkUnnamed3375(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 = buildUnnamed487(); | 248 o.access = buildUnnamed3374(); |
| 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 = buildUnnamed488(); | 257 o.labels = buildUnnamed3375(); |
| 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 checkUnnamed487(o.access); | 269 checkUnnamed3374(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 checkUnnamed488(o.labels); | 278 checkUnnamed3375(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 buildUnnamed489() { | 286 buildUnnamed3376() { |
| 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 checkUnnamed489(core.Map<core.String, core.String> o) { | 293 checkUnnamed3376(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 = buildUnnamed489(); | 308 o.labels = buildUnnamed3376(); |
| 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 checkUnnamed489(o.labels); | 321 checkUnnamed3376(o.labels); |
| 322 } | 322 } |
| 323 buildCounterDatasetListDatasets--; | 323 buildCounterDatasetListDatasets--; |
| 324 } | 324 } |
| 325 | 325 |
| 326 buildUnnamed490() { | 326 buildUnnamed3377() { |
| 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 checkUnnamed490(core.List<api.DatasetListDatasets> o) { | 333 checkUnnamed3377(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 = buildUnnamed490(); | 344 o.datasets = buildUnnamed3377(); |
| 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 checkUnnamed490(o.datasets); | 356 checkUnnamed3377(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 buildUnnamed491() { | 410 buildUnnamed3378() { |
| 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 checkUnnamed491(core.List<api.ExplainQueryStep> o) { | 417 checkUnnamed3378(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 = buildUnnamed491(); | 436 o.steps = buildUnnamed3378(); |
| 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 checkUnnamed491(o.steps); | 457 checkUnnamed3378(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 buildUnnamed492() { | 466 buildUnnamed3379() { |
| 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 checkUnnamed492(core.List<core.String> o) { | 473 checkUnnamed3379(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 = buildUnnamed492(); | 485 o.substeps = buildUnnamed3379(); |
| 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 checkUnnamed492(o.substeps); | 495 checkUnnamed3379(o.substeps); |
| 496 } | 496 } |
| 497 buildCounterExplainQueryStep--; | 497 buildCounterExplainQueryStep--; |
| 498 } | 498 } |
| 499 | 499 |
| 500 buildUnnamed493() { | 500 buildUnnamed3380() { |
| 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 checkUnnamed493(core.List<core.String> o) { | 507 checkUnnamed3380(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 = buildUnnamed493(); | 527 o.sourceUris = buildUnnamed3380(); |
| 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 checkUnnamed493(o.sourceUris); | 545 checkUnnamed3380(o.sourceUris); |
| 546 } | 546 } |
| 547 buildCounterExternalDataConfiguration--; | 547 buildCounterExternalDataConfiguration--; |
| 548 } | 548 } |
| 549 | 549 |
| 550 buildUnnamed494() { | 550 buildUnnamed3381() { |
| 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 checkUnnamed494(core.List<api.ErrorProto> o) { | 557 checkUnnamed3381(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 buildUnnamed495() { | 563 buildUnnamed3382() { |
| 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 checkUnnamed495(core.List<api.TableRow> o) { | 570 checkUnnamed3382(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 = buildUnnamed494(); | 582 o.errors = buildUnnamed3381(); |
| 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 = buildUnnamed495(); | 589 o.rows = buildUnnamed3382(); |
| 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 checkUnnamed494(o.errors); | 602 checkUnnamed3381(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 checkUnnamed495(o.rows); | 609 checkUnnamed3382(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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 709 if (buildCounterJobConfiguration < 3) { | 709 if (buildCounterJobConfiguration < 3) { |
| 710 checkJobConfigurationTableCopy(o.copy); | 710 checkJobConfigurationTableCopy(o.copy); |
| 711 unittest.expect(o.dryRun, unittest.isTrue); | 711 unittest.expect(o.dryRun, unittest.isTrue); |
| 712 checkJobConfigurationExtract(o.extract); | 712 checkJobConfigurationExtract(o.extract); |
| 713 checkJobConfigurationLoad(o.load); | 713 checkJobConfigurationLoad(o.load); |
| 714 checkJobConfigurationQuery(o.query); | 714 checkJobConfigurationQuery(o.query); |
| 715 } | 715 } |
| 716 buildCounterJobConfiguration--; | 716 buildCounterJobConfiguration--; |
| 717 } | 717 } |
| 718 | 718 |
| 719 buildUnnamed496() { | 719 buildUnnamed3383() { |
| 720 var o = new core.List<core.String>(); | 720 var o = new core.List<core.String>(); |
| 721 o.add("foo"); | 721 o.add("foo"); |
| 722 o.add("foo"); | 722 o.add("foo"); |
| 723 return o; | 723 return o; |
| 724 } | 724 } |
| 725 | 725 |
| 726 checkUnnamed496(core.List<core.String> o) { | 726 checkUnnamed3383(core.List<core.String> o) { |
| 727 unittest.expect(o, unittest.hasLength(2)); | 727 unittest.expect(o, unittest.hasLength(2)); |
| 728 unittest.expect(o[0], unittest.equals('foo')); | 728 unittest.expect(o[0], unittest.equals('foo')); |
| 729 unittest.expect(o[1], unittest.equals('foo')); | 729 unittest.expect(o[1], unittest.equals('foo')); |
| 730 } | 730 } |
| 731 | 731 |
| 732 core.int buildCounterJobConfigurationExtract = 0; | 732 core.int buildCounterJobConfigurationExtract = 0; |
| 733 buildJobConfigurationExtract() { | 733 buildJobConfigurationExtract() { |
| 734 var o = new api.JobConfigurationExtract(); | 734 var o = new api.JobConfigurationExtract(); |
| 735 buildCounterJobConfigurationExtract++; | 735 buildCounterJobConfigurationExtract++; |
| 736 if (buildCounterJobConfigurationExtract < 3) { | 736 if (buildCounterJobConfigurationExtract < 3) { |
| 737 o.compression = "foo"; | 737 o.compression = "foo"; |
| 738 o.destinationFormat = "foo"; | 738 o.destinationFormat = "foo"; |
| 739 o.destinationUri = "foo"; | 739 o.destinationUri = "foo"; |
| 740 o.destinationUris = buildUnnamed496(); | 740 o.destinationUris = buildUnnamed3383(); |
| 741 o.fieldDelimiter = "foo"; | 741 o.fieldDelimiter = "foo"; |
| 742 o.printHeader = true; | 742 o.printHeader = true; |
| 743 o.sourceTable = buildTableReference(); | 743 o.sourceTable = buildTableReference(); |
| 744 } | 744 } |
| 745 buildCounterJobConfigurationExtract--; | 745 buildCounterJobConfigurationExtract--; |
| 746 return o; | 746 return o; |
| 747 } | 747 } |
| 748 | 748 |
| 749 checkJobConfigurationExtract(api.JobConfigurationExtract o) { | 749 checkJobConfigurationExtract(api.JobConfigurationExtract o) { |
| 750 buildCounterJobConfigurationExtract++; | 750 buildCounterJobConfigurationExtract++; |
| 751 if (buildCounterJobConfigurationExtract < 3) { | 751 if (buildCounterJobConfigurationExtract < 3) { |
| 752 unittest.expect(o.compression, unittest.equals('foo')); | 752 unittest.expect(o.compression, unittest.equals('foo')); |
| 753 unittest.expect(o.destinationFormat, unittest.equals('foo')); | 753 unittest.expect(o.destinationFormat, unittest.equals('foo')); |
| 754 unittest.expect(o.destinationUri, unittest.equals('foo')); | 754 unittest.expect(o.destinationUri, unittest.equals('foo')); |
| 755 checkUnnamed496(o.destinationUris); | 755 checkUnnamed3383(o.destinationUris); |
| 756 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); | 756 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); |
| 757 unittest.expect(o.printHeader, unittest.isTrue); | 757 unittest.expect(o.printHeader, unittest.isTrue); |
| 758 checkTableReference(o.sourceTable); | 758 checkTableReference(o.sourceTable); |
| 759 } | 759 } |
| 760 buildCounterJobConfigurationExtract--; | 760 buildCounterJobConfigurationExtract--; |
| 761 } | 761 } |
| 762 | 762 |
| 763 buildUnnamed497() { | 763 buildUnnamed3384() { |
| 764 var o = new core.List<core.String>(); | 764 var o = new core.List<core.String>(); |
| 765 o.add("foo"); | 765 o.add("foo"); |
| 766 o.add("foo"); | 766 o.add("foo"); |
| 767 return o; | 767 return o; |
| 768 } | 768 } |
| 769 | 769 |
| 770 checkUnnamed497(core.List<core.String> o) { | 770 checkUnnamed3384(core.List<core.String> o) { |
| 771 unittest.expect(o, unittest.hasLength(2)); | 771 unittest.expect(o, unittest.hasLength(2)); |
| 772 unittest.expect(o[0], unittest.equals('foo')); | 772 unittest.expect(o[0], unittest.equals('foo')); |
| 773 unittest.expect(o[1], unittest.equals('foo')); | 773 unittest.expect(o[1], unittest.equals('foo')); |
| 774 } | 774 } |
| 775 | 775 |
| 776 buildUnnamed498() { | 776 buildUnnamed3385() { |
| 777 var o = new core.List<core.String>(); | 777 var o = new core.List<core.String>(); |
| 778 o.add("foo"); | 778 o.add("foo"); |
| 779 o.add("foo"); | 779 o.add("foo"); |
| 780 return o; | 780 return o; |
| 781 } | 781 } |
| 782 | 782 |
| 783 checkUnnamed498(core.List<core.String> o) { | 783 checkUnnamed3385(core.List<core.String> o) { |
| 784 unittest.expect(o, unittest.hasLength(2)); | 784 unittest.expect(o, unittest.hasLength(2)); |
| 785 unittest.expect(o[0], unittest.equals('foo')); | 785 unittest.expect(o[0], unittest.equals('foo')); |
| 786 unittest.expect(o[1], unittest.equals('foo')); | 786 unittest.expect(o[1], unittest.equals('foo')); |
| 787 } |
| 788 |
| 789 buildUnnamed3386() { |
| 790 var o = new core.List<core.String>(); |
| 791 o.add("foo"); |
| 792 o.add("foo"); |
| 793 return o; |
| 794 } |
| 795 |
| 796 checkUnnamed3386(core.List<core.String> o) { |
| 797 unittest.expect(o, unittest.hasLength(2)); |
| 798 unittest.expect(o[0], unittest.equals('foo')); |
| 799 unittest.expect(o[1], unittest.equals('foo')); |
| 787 } | 800 } |
| 788 | 801 |
| 789 core.int buildCounterJobConfigurationLoad = 0; | 802 core.int buildCounterJobConfigurationLoad = 0; |
| 790 buildJobConfigurationLoad() { | 803 buildJobConfigurationLoad() { |
| 791 var o = new api.JobConfigurationLoad(); | 804 var o = new api.JobConfigurationLoad(); |
| 792 buildCounterJobConfigurationLoad++; | 805 buildCounterJobConfigurationLoad++; |
| 793 if (buildCounterJobConfigurationLoad < 3) { | 806 if (buildCounterJobConfigurationLoad < 3) { |
| 794 o.allowJaggedRows = true; | 807 o.allowJaggedRows = true; |
| 795 o.allowQuotedNewlines = true; | 808 o.allowQuotedNewlines = true; |
| 796 o.autodetect = true; | 809 o.autodetect = true; |
| 797 o.createDisposition = "foo"; | 810 o.createDisposition = "foo"; |
| 798 o.destinationTable = buildTableReference(); | 811 o.destinationTable = buildTableReference(); |
| 799 o.encoding = "foo"; | 812 o.encoding = "foo"; |
| 800 o.fieldDelimiter = "foo"; | 813 o.fieldDelimiter = "foo"; |
| 801 o.ignoreUnknownValues = true; | 814 o.ignoreUnknownValues = true; |
| 802 o.maxBadRecords = 42; | 815 o.maxBadRecords = 42; |
| 803 o.projectionFields = buildUnnamed497(); | 816 o.projectionFields = buildUnnamed3384(); |
| 804 o.quote = "foo"; | 817 o.quote = "foo"; |
| 805 o.schema = buildTableSchema(); | 818 o.schema = buildTableSchema(); |
| 806 o.schemaInline = "foo"; | 819 o.schemaInline = "foo"; |
| 807 o.schemaInlineFormat = "foo"; | 820 o.schemaInlineFormat = "foo"; |
| 821 o.schemaUpdateOptions = buildUnnamed3385(); |
| 808 o.skipLeadingRows = 42; | 822 o.skipLeadingRows = 42; |
| 809 o.sourceFormat = "foo"; | 823 o.sourceFormat = "foo"; |
| 810 o.sourceUris = buildUnnamed498(); | 824 o.sourceUris = buildUnnamed3386(); |
| 811 o.writeDisposition = "foo"; | 825 o.writeDisposition = "foo"; |
| 812 } | 826 } |
| 813 buildCounterJobConfigurationLoad--; | 827 buildCounterJobConfigurationLoad--; |
| 814 return o; | 828 return o; |
| 815 } | 829 } |
| 816 | 830 |
| 817 checkJobConfigurationLoad(api.JobConfigurationLoad o) { | 831 checkJobConfigurationLoad(api.JobConfigurationLoad o) { |
| 818 buildCounterJobConfigurationLoad++; | 832 buildCounterJobConfigurationLoad++; |
| 819 if (buildCounterJobConfigurationLoad < 3) { | 833 if (buildCounterJobConfigurationLoad < 3) { |
| 820 unittest.expect(o.allowJaggedRows, unittest.isTrue); | 834 unittest.expect(o.allowJaggedRows, unittest.isTrue); |
| 821 unittest.expect(o.allowQuotedNewlines, unittest.isTrue); | 835 unittest.expect(o.allowQuotedNewlines, unittest.isTrue); |
| 822 unittest.expect(o.autodetect, unittest.isTrue); | 836 unittest.expect(o.autodetect, unittest.isTrue); |
| 823 unittest.expect(o.createDisposition, unittest.equals('foo')); | 837 unittest.expect(o.createDisposition, unittest.equals('foo')); |
| 824 checkTableReference(o.destinationTable); | 838 checkTableReference(o.destinationTable); |
| 825 unittest.expect(o.encoding, unittest.equals('foo')); | 839 unittest.expect(o.encoding, unittest.equals('foo')); |
| 826 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); | 840 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); |
| 827 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); | 841 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); |
| 828 unittest.expect(o.maxBadRecords, unittest.equals(42)); | 842 unittest.expect(o.maxBadRecords, unittest.equals(42)); |
| 829 checkUnnamed497(o.projectionFields); | 843 checkUnnamed3384(o.projectionFields); |
| 830 unittest.expect(o.quote, unittest.equals('foo')); | 844 unittest.expect(o.quote, unittest.equals('foo')); |
| 831 checkTableSchema(o.schema); | 845 checkTableSchema(o.schema); |
| 832 unittest.expect(o.schemaInline, unittest.equals('foo')); | 846 unittest.expect(o.schemaInline, unittest.equals('foo')); |
| 833 unittest.expect(o.schemaInlineFormat, unittest.equals('foo')); | 847 unittest.expect(o.schemaInlineFormat, unittest.equals('foo')); |
| 848 checkUnnamed3385(o.schemaUpdateOptions); |
| 834 unittest.expect(o.skipLeadingRows, unittest.equals(42)); | 849 unittest.expect(o.skipLeadingRows, unittest.equals(42)); |
| 835 unittest.expect(o.sourceFormat, unittest.equals('foo')); | 850 unittest.expect(o.sourceFormat, unittest.equals('foo')); |
| 836 checkUnnamed498(o.sourceUris); | 851 checkUnnamed3386(o.sourceUris); |
| 837 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 852 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
| 838 } | 853 } |
| 839 buildCounterJobConfigurationLoad--; | 854 buildCounterJobConfigurationLoad--; |
| 840 } | 855 } |
| 841 | 856 |
| 842 buildUnnamed499() { | 857 buildUnnamed3387() { |
| 858 var o = new core.List<api.QueryParameter>(); |
| 859 o.add(buildQueryParameter()); |
| 860 o.add(buildQueryParameter()); |
| 861 return o; |
| 862 } |
| 863 |
| 864 checkUnnamed3387(core.List<api.QueryParameter> o) { |
| 865 unittest.expect(o, unittest.hasLength(2)); |
| 866 checkQueryParameter(o[0]); |
| 867 checkQueryParameter(o[1]); |
| 868 } |
| 869 |
| 870 buildUnnamed3388() { |
| 871 var o = new core.List<core.String>(); |
| 872 o.add("foo"); |
| 873 o.add("foo"); |
| 874 return o; |
| 875 } |
| 876 |
| 877 checkUnnamed3388(core.List<core.String> o) { |
| 878 unittest.expect(o, unittest.hasLength(2)); |
| 879 unittest.expect(o[0], unittest.equals('foo')); |
| 880 unittest.expect(o[1], unittest.equals('foo')); |
| 881 } |
| 882 |
| 883 buildUnnamed3389() { |
| 843 var o = new core.Map<core.String, api.ExternalDataConfiguration>(); | 884 var o = new core.Map<core.String, api.ExternalDataConfiguration>(); |
| 844 o["x"] = buildExternalDataConfiguration(); | 885 o["x"] = buildExternalDataConfiguration(); |
| 845 o["y"] = buildExternalDataConfiguration(); | 886 o["y"] = buildExternalDataConfiguration(); |
| 846 return o; | 887 return o; |
| 847 } | 888 } |
| 848 | 889 |
| 849 checkUnnamed499(core.Map<core.String, api.ExternalDataConfiguration> o) { | 890 checkUnnamed3389(core.Map<core.String, api.ExternalDataConfiguration> o) { |
| 850 unittest.expect(o, unittest.hasLength(2)); | 891 unittest.expect(o, unittest.hasLength(2)); |
| 851 checkExternalDataConfiguration(o["x"]); | 892 checkExternalDataConfiguration(o["x"]); |
| 852 checkExternalDataConfiguration(o["y"]); | 893 checkExternalDataConfiguration(o["y"]); |
| 853 } | 894 } |
| 854 | 895 |
| 855 buildUnnamed500() { | 896 buildUnnamed3390() { |
| 856 var o = new core.List<api.UserDefinedFunctionResource>(); | 897 var o = new core.List<api.UserDefinedFunctionResource>(); |
| 857 o.add(buildUserDefinedFunctionResource()); | 898 o.add(buildUserDefinedFunctionResource()); |
| 858 o.add(buildUserDefinedFunctionResource()); | 899 o.add(buildUserDefinedFunctionResource()); |
| 859 return o; | 900 return o; |
| 860 } | 901 } |
| 861 | 902 |
| 862 checkUnnamed500(core.List<api.UserDefinedFunctionResource> o) { | 903 checkUnnamed3390(core.List<api.UserDefinedFunctionResource> o) { |
| 863 unittest.expect(o, unittest.hasLength(2)); | 904 unittest.expect(o, unittest.hasLength(2)); |
| 864 checkUserDefinedFunctionResource(o[0]); | 905 checkUserDefinedFunctionResource(o[0]); |
| 865 checkUserDefinedFunctionResource(o[1]); | 906 checkUserDefinedFunctionResource(o[1]); |
| 866 } | 907 } |
| 867 | 908 |
| 868 core.int buildCounterJobConfigurationQuery = 0; | 909 core.int buildCounterJobConfigurationQuery = 0; |
| 869 buildJobConfigurationQuery() { | 910 buildJobConfigurationQuery() { |
| 870 var o = new api.JobConfigurationQuery(); | 911 var o = new api.JobConfigurationQuery(); |
| 871 buildCounterJobConfigurationQuery++; | 912 buildCounterJobConfigurationQuery++; |
| 872 if (buildCounterJobConfigurationQuery < 3) { | 913 if (buildCounterJobConfigurationQuery < 3) { |
| 873 o.allowLargeResults = true; | 914 o.allowLargeResults = true; |
| 874 o.createDisposition = "foo"; | 915 o.createDisposition = "foo"; |
| 875 o.defaultDataset = buildDatasetReference(); | 916 o.defaultDataset = buildDatasetReference(); |
| 876 o.destinationTable = buildTableReference(); | 917 o.destinationTable = buildTableReference(); |
| 877 o.flattenResults = true; | 918 o.flattenResults = true; |
| 878 o.maximumBillingTier = 42; | 919 o.maximumBillingTier = 42; |
| 879 o.maximumBytesBilled = "foo"; | 920 o.maximumBytesBilled = "foo"; |
| 921 o.parameterMode = "foo"; |
| 880 o.preserveNulls = true; | 922 o.preserveNulls = true; |
| 881 o.priority = "foo"; | 923 o.priority = "foo"; |
| 882 o.query = "foo"; | 924 o.query = "foo"; |
| 883 o.tableDefinitions = buildUnnamed499(); | 925 o.queryParameters = buildUnnamed3387(); |
| 926 o.schemaUpdateOptions = buildUnnamed3388(); |
| 927 o.tableDefinitions = buildUnnamed3389(); |
| 884 o.useLegacySql = true; | 928 o.useLegacySql = true; |
| 885 o.useQueryCache = true; | 929 o.useQueryCache = true; |
| 886 o.userDefinedFunctionResources = buildUnnamed500(); | 930 o.userDefinedFunctionResources = buildUnnamed3390(); |
| 887 o.writeDisposition = "foo"; | 931 o.writeDisposition = "foo"; |
| 888 } | 932 } |
| 889 buildCounterJobConfigurationQuery--; | 933 buildCounterJobConfigurationQuery--; |
| 890 return o; | 934 return o; |
| 891 } | 935 } |
| 892 | 936 |
| 893 checkJobConfigurationQuery(api.JobConfigurationQuery o) { | 937 checkJobConfigurationQuery(api.JobConfigurationQuery o) { |
| 894 buildCounterJobConfigurationQuery++; | 938 buildCounterJobConfigurationQuery++; |
| 895 if (buildCounterJobConfigurationQuery < 3) { | 939 if (buildCounterJobConfigurationQuery < 3) { |
| 896 unittest.expect(o.allowLargeResults, unittest.isTrue); | 940 unittest.expect(o.allowLargeResults, unittest.isTrue); |
| 897 unittest.expect(o.createDisposition, unittest.equals('foo')); | 941 unittest.expect(o.createDisposition, unittest.equals('foo')); |
| 898 checkDatasetReference(o.defaultDataset); | 942 checkDatasetReference(o.defaultDataset); |
| 899 checkTableReference(o.destinationTable); | 943 checkTableReference(o.destinationTable); |
| 900 unittest.expect(o.flattenResults, unittest.isTrue); | 944 unittest.expect(o.flattenResults, unittest.isTrue); |
| 901 unittest.expect(o.maximumBillingTier, unittest.equals(42)); | 945 unittest.expect(o.maximumBillingTier, unittest.equals(42)); |
| 902 unittest.expect(o.maximumBytesBilled, unittest.equals('foo')); | 946 unittest.expect(o.maximumBytesBilled, unittest.equals('foo')); |
| 947 unittest.expect(o.parameterMode, unittest.equals('foo')); |
| 903 unittest.expect(o.preserveNulls, unittest.isTrue); | 948 unittest.expect(o.preserveNulls, unittest.isTrue); |
| 904 unittest.expect(o.priority, unittest.equals('foo')); | 949 unittest.expect(o.priority, unittest.equals('foo')); |
| 905 unittest.expect(o.query, unittest.equals('foo')); | 950 unittest.expect(o.query, unittest.equals('foo')); |
| 906 checkUnnamed499(o.tableDefinitions); | 951 checkUnnamed3387(o.queryParameters); |
| 952 checkUnnamed3388(o.schemaUpdateOptions); |
| 953 checkUnnamed3389(o.tableDefinitions); |
| 907 unittest.expect(o.useLegacySql, unittest.isTrue); | 954 unittest.expect(o.useLegacySql, unittest.isTrue); |
| 908 unittest.expect(o.useQueryCache, unittest.isTrue); | 955 unittest.expect(o.useQueryCache, unittest.isTrue); |
| 909 checkUnnamed500(o.userDefinedFunctionResources); | 956 checkUnnamed3390(o.userDefinedFunctionResources); |
| 910 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 957 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
| 911 } | 958 } |
| 912 buildCounterJobConfigurationQuery--; | 959 buildCounterJobConfigurationQuery--; |
| 913 } | 960 } |
| 914 | 961 |
| 915 buildUnnamed501() { | 962 buildUnnamed3391() { |
| 916 var o = new core.List<api.TableReference>(); | 963 var o = new core.List<api.TableReference>(); |
| 917 o.add(buildTableReference()); | 964 o.add(buildTableReference()); |
| 918 o.add(buildTableReference()); | 965 o.add(buildTableReference()); |
| 919 return o; | 966 return o; |
| 920 } | 967 } |
| 921 | 968 |
| 922 checkUnnamed501(core.List<api.TableReference> o) { | 969 checkUnnamed3391(core.List<api.TableReference> o) { |
| 923 unittest.expect(o, unittest.hasLength(2)); | 970 unittest.expect(o, unittest.hasLength(2)); |
| 924 checkTableReference(o[0]); | 971 checkTableReference(o[0]); |
| 925 checkTableReference(o[1]); | 972 checkTableReference(o[1]); |
| 926 } | 973 } |
| 927 | 974 |
| 928 core.int buildCounterJobConfigurationTableCopy = 0; | 975 core.int buildCounterJobConfigurationTableCopy = 0; |
| 929 buildJobConfigurationTableCopy() { | 976 buildJobConfigurationTableCopy() { |
| 930 var o = new api.JobConfigurationTableCopy(); | 977 var o = new api.JobConfigurationTableCopy(); |
| 931 buildCounterJobConfigurationTableCopy++; | 978 buildCounterJobConfigurationTableCopy++; |
| 932 if (buildCounterJobConfigurationTableCopy < 3) { | 979 if (buildCounterJobConfigurationTableCopy < 3) { |
| 933 o.createDisposition = "foo"; | 980 o.createDisposition = "foo"; |
| 934 o.destinationTable = buildTableReference(); | 981 o.destinationTable = buildTableReference(); |
| 935 o.sourceTable = buildTableReference(); | 982 o.sourceTable = buildTableReference(); |
| 936 o.sourceTables = buildUnnamed501(); | 983 o.sourceTables = buildUnnamed3391(); |
| 937 o.writeDisposition = "foo"; | 984 o.writeDisposition = "foo"; |
| 938 } | 985 } |
| 939 buildCounterJobConfigurationTableCopy--; | 986 buildCounterJobConfigurationTableCopy--; |
| 940 return o; | 987 return o; |
| 941 } | 988 } |
| 942 | 989 |
| 943 checkJobConfigurationTableCopy(api.JobConfigurationTableCopy o) { | 990 checkJobConfigurationTableCopy(api.JobConfigurationTableCopy o) { |
| 944 buildCounterJobConfigurationTableCopy++; | 991 buildCounterJobConfigurationTableCopy++; |
| 945 if (buildCounterJobConfigurationTableCopy < 3) { | 992 if (buildCounterJobConfigurationTableCopy < 3) { |
| 946 unittest.expect(o.createDisposition, unittest.equals('foo')); | 993 unittest.expect(o.createDisposition, unittest.equals('foo')); |
| 947 checkTableReference(o.destinationTable); | 994 checkTableReference(o.destinationTable); |
| 948 checkTableReference(o.sourceTable); | 995 checkTableReference(o.sourceTable); |
| 949 checkUnnamed501(o.sourceTables); | 996 checkUnnamed3391(o.sourceTables); |
| 950 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 997 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
| 951 } | 998 } |
| 952 buildCounterJobConfigurationTableCopy--; | 999 buildCounterJobConfigurationTableCopy--; |
| 953 } | 1000 } |
| 954 | 1001 |
| 955 core.int buildCounterJobListJobs = 0; | 1002 core.int buildCounterJobListJobs = 0; |
| 956 buildJobListJobs() { | 1003 buildJobListJobs() { |
| 957 var o = new api.JobListJobs(); | 1004 var o = new api.JobListJobs(); |
| 958 buildCounterJobListJobs++; | 1005 buildCounterJobListJobs++; |
| 959 if (buildCounterJobListJobs < 3) { | 1006 if (buildCounterJobListJobs < 3) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 980 checkJobReference(o.jobReference); | 1027 checkJobReference(o.jobReference); |
| 981 unittest.expect(o.kind, unittest.equals('foo')); | 1028 unittest.expect(o.kind, unittest.equals('foo')); |
| 982 unittest.expect(o.state, unittest.equals('foo')); | 1029 unittest.expect(o.state, unittest.equals('foo')); |
| 983 checkJobStatistics(o.statistics); | 1030 checkJobStatistics(o.statistics); |
| 984 checkJobStatus(o.status); | 1031 checkJobStatus(o.status); |
| 985 unittest.expect(o.userEmail, unittest.equals('foo')); | 1032 unittest.expect(o.userEmail, unittest.equals('foo')); |
| 986 } | 1033 } |
| 987 buildCounterJobListJobs--; | 1034 buildCounterJobListJobs--; |
| 988 } | 1035 } |
| 989 | 1036 |
| 990 buildUnnamed502() { | 1037 buildUnnamed3392() { |
| 991 var o = new core.List<api.JobListJobs>(); | 1038 var o = new core.List<api.JobListJobs>(); |
| 992 o.add(buildJobListJobs()); | 1039 o.add(buildJobListJobs()); |
| 993 o.add(buildJobListJobs()); | 1040 o.add(buildJobListJobs()); |
| 994 return o; | 1041 return o; |
| 995 } | 1042 } |
| 996 | 1043 |
| 997 checkUnnamed502(core.List<api.JobListJobs> o) { | 1044 checkUnnamed3392(core.List<api.JobListJobs> o) { |
| 998 unittest.expect(o, unittest.hasLength(2)); | 1045 unittest.expect(o, unittest.hasLength(2)); |
| 999 checkJobListJobs(o[0]); | 1046 checkJobListJobs(o[0]); |
| 1000 checkJobListJobs(o[1]); | 1047 checkJobListJobs(o[1]); |
| 1001 } | 1048 } |
| 1002 | 1049 |
| 1003 core.int buildCounterJobList = 0; | 1050 core.int buildCounterJobList = 0; |
| 1004 buildJobList() { | 1051 buildJobList() { |
| 1005 var o = new api.JobList(); | 1052 var o = new api.JobList(); |
| 1006 buildCounterJobList++; | 1053 buildCounterJobList++; |
| 1007 if (buildCounterJobList < 3) { | 1054 if (buildCounterJobList < 3) { |
| 1008 o.etag = "foo"; | 1055 o.etag = "foo"; |
| 1009 o.jobs = buildUnnamed502(); | 1056 o.jobs = buildUnnamed3392(); |
| 1010 o.kind = "foo"; | 1057 o.kind = "foo"; |
| 1011 o.nextPageToken = "foo"; | 1058 o.nextPageToken = "foo"; |
| 1012 } | 1059 } |
| 1013 buildCounterJobList--; | 1060 buildCounterJobList--; |
| 1014 return o; | 1061 return o; |
| 1015 } | 1062 } |
| 1016 | 1063 |
| 1017 checkJobList(api.JobList o) { | 1064 checkJobList(api.JobList o) { |
| 1018 buildCounterJobList++; | 1065 buildCounterJobList++; |
| 1019 if (buildCounterJobList < 3) { | 1066 if (buildCounterJobList < 3) { |
| 1020 unittest.expect(o.etag, unittest.equals('foo')); | 1067 unittest.expect(o.etag, unittest.equals('foo')); |
| 1021 checkUnnamed502(o.jobs); | 1068 checkUnnamed3392(o.jobs); |
| 1022 unittest.expect(o.kind, unittest.equals('foo')); | 1069 unittest.expect(o.kind, unittest.equals('foo')); |
| 1023 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1070 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1024 } | 1071 } |
| 1025 buildCounterJobList--; | 1072 buildCounterJobList--; |
| 1026 } | 1073 } |
| 1027 | 1074 |
| 1028 core.int buildCounterJobReference = 0; | 1075 core.int buildCounterJobReference = 0; |
| 1029 buildJobReference() { | 1076 buildJobReference() { |
| 1030 var o = new api.JobReference(); | 1077 var o = new api.JobReference(); |
| 1031 buildCounterJobReference++; | 1078 buildCounterJobReference++; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1070 unittest.expect(o.endTime, unittest.equals('foo')); | 1117 unittest.expect(o.endTime, unittest.equals('foo')); |
| 1071 checkJobStatistics4(o.extract); | 1118 checkJobStatistics4(o.extract); |
| 1072 checkJobStatistics3(o.load); | 1119 checkJobStatistics3(o.load); |
| 1073 checkJobStatistics2(o.query); | 1120 checkJobStatistics2(o.query); |
| 1074 unittest.expect(o.startTime, unittest.equals('foo')); | 1121 unittest.expect(o.startTime, unittest.equals('foo')); |
| 1075 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); | 1122 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); |
| 1076 } | 1123 } |
| 1077 buildCounterJobStatistics--; | 1124 buildCounterJobStatistics--; |
| 1078 } | 1125 } |
| 1079 | 1126 |
| 1080 buildUnnamed503() { | 1127 buildUnnamed3393() { |
| 1081 var o = new core.List<api.ExplainQueryStage>(); | 1128 var o = new core.List<api.ExplainQueryStage>(); |
| 1082 o.add(buildExplainQueryStage()); | 1129 o.add(buildExplainQueryStage()); |
| 1083 o.add(buildExplainQueryStage()); | 1130 o.add(buildExplainQueryStage()); |
| 1084 return o; | 1131 return o; |
| 1085 } | 1132 } |
| 1086 | 1133 |
| 1087 checkUnnamed503(core.List<api.ExplainQueryStage> o) { | 1134 checkUnnamed3393(core.List<api.ExplainQueryStage> o) { |
| 1088 unittest.expect(o, unittest.hasLength(2)); | 1135 unittest.expect(o, unittest.hasLength(2)); |
| 1089 checkExplainQueryStage(o[0]); | 1136 checkExplainQueryStage(o[0]); |
| 1090 checkExplainQueryStage(o[1]); | 1137 checkExplainQueryStage(o[1]); |
| 1091 } | 1138 } |
| 1092 | 1139 |
| 1093 buildUnnamed504() { | 1140 buildUnnamed3394() { |
| 1094 var o = new core.List<api.TableReference>(); | 1141 var o = new core.List<api.TableReference>(); |
| 1095 o.add(buildTableReference()); | 1142 o.add(buildTableReference()); |
| 1096 o.add(buildTableReference()); | 1143 o.add(buildTableReference()); |
| 1097 return o; | 1144 return o; |
| 1098 } | 1145 } |
| 1099 | 1146 |
| 1100 checkUnnamed504(core.List<api.TableReference> o) { | 1147 checkUnnamed3394(core.List<api.TableReference> o) { |
| 1101 unittest.expect(o, unittest.hasLength(2)); | 1148 unittest.expect(o, unittest.hasLength(2)); |
| 1102 checkTableReference(o[0]); | 1149 checkTableReference(o[0]); |
| 1103 checkTableReference(o[1]); | 1150 checkTableReference(o[1]); |
| 1104 } | 1151 } |
| 1105 | 1152 |
| 1153 buildUnnamed3395() { |
| 1154 var o = new core.List<api.QueryParameter>(); |
| 1155 o.add(buildQueryParameter()); |
| 1156 o.add(buildQueryParameter()); |
| 1157 return o; |
| 1158 } |
| 1159 |
| 1160 checkUnnamed3395(core.List<api.QueryParameter> o) { |
| 1161 unittest.expect(o, unittest.hasLength(2)); |
| 1162 checkQueryParameter(o[0]); |
| 1163 checkQueryParameter(o[1]); |
| 1164 } |
| 1165 |
| 1106 core.int buildCounterJobStatistics2 = 0; | 1166 core.int buildCounterJobStatistics2 = 0; |
| 1107 buildJobStatistics2() { | 1167 buildJobStatistics2() { |
| 1108 var o = new api.JobStatistics2(); | 1168 var o = new api.JobStatistics2(); |
| 1109 buildCounterJobStatistics2++; | 1169 buildCounterJobStatistics2++; |
| 1110 if (buildCounterJobStatistics2 < 3) { | 1170 if (buildCounterJobStatistics2 < 3) { |
| 1111 o.billingTier = 42; | 1171 o.billingTier = 42; |
| 1112 o.cacheHit = true; | 1172 o.cacheHit = true; |
| 1113 o.numDmlAffectedRows = "foo"; | 1173 o.numDmlAffectedRows = "foo"; |
| 1114 o.queryPlan = buildUnnamed503(); | 1174 o.queryPlan = buildUnnamed3393(); |
| 1115 o.referencedTables = buildUnnamed504(); | 1175 o.referencedTables = buildUnnamed3394(); |
| 1116 o.schema = buildTableSchema(); | 1176 o.schema = buildTableSchema(); |
| 1117 o.totalBytesBilled = "foo"; | 1177 o.totalBytesBilled = "foo"; |
| 1118 o.totalBytesProcessed = "foo"; | 1178 o.totalBytesProcessed = "foo"; |
| 1179 o.undeclaredQueryParameters = buildUnnamed3395(); |
| 1119 } | 1180 } |
| 1120 buildCounterJobStatistics2--; | 1181 buildCounterJobStatistics2--; |
| 1121 return o; | 1182 return o; |
| 1122 } | 1183 } |
| 1123 | 1184 |
| 1124 checkJobStatistics2(api.JobStatistics2 o) { | 1185 checkJobStatistics2(api.JobStatistics2 o) { |
| 1125 buildCounterJobStatistics2++; | 1186 buildCounterJobStatistics2++; |
| 1126 if (buildCounterJobStatistics2 < 3) { | 1187 if (buildCounterJobStatistics2 < 3) { |
| 1127 unittest.expect(o.billingTier, unittest.equals(42)); | 1188 unittest.expect(o.billingTier, unittest.equals(42)); |
| 1128 unittest.expect(o.cacheHit, unittest.isTrue); | 1189 unittest.expect(o.cacheHit, unittest.isTrue); |
| 1129 unittest.expect(o.numDmlAffectedRows, unittest.equals('foo')); | 1190 unittest.expect(o.numDmlAffectedRows, unittest.equals('foo')); |
| 1130 checkUnnamed503(o.queryPlan); | 1191 checkUnnamed3393(o.queryPlan); |
| 1131 checkUnnamed504(o.referencedTables); | 1192 checkUnnamed3394(o.referencedTables); |
| 1132 checkTableSchema(o.schema); | 1193 checkTableSchema(o.schema); |
| 1133 unittest.expect(o.totalBytesBilled, unittest.equals('foo')); | 1194 unittest.expect(o.totalBytesBilled, unittest.equals('foo')); |
| 1134 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); | 1195 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); |
| 1196 checkUnnamed3395(o.undeclaredQueryParameters); |
| 1135 } | 1197 } |
| 1136 buildCounterJobStatistics2--; | 1198 buildCounterJobStatistics2--; |
| 1137 } | 1199 } |
| 1138 | 1200 |
| 1139 core.int buildCounterJobStatistics3 = 0; | 1201 core.int buildCounterJobStatistics3 = 0; |
| 1140 buildJobStatistics3() { | 1202 buildJobStatistics3() { |
| 1141 var o = new api.JobStatistics3(); | 1203 var o = new api.JobStatistics3(); |
| 1142 buildCounterJobStatistics3++; | 1204 buildCounterJobStatistics3++; |
| 1143 if (buildCounterJobStatistics3 < 3) { | 1205 if (buildCounterJobStatistics3 < 3) { |
| 1144 o.inputFileBytes = "foo"; | 1206 o.inputFileBytes = "foo"; |
| 1145 o.inputFiles = "foo"; | 1207 o.inputFiles = "foo"; |
| 1146 o.outputBytes = "foo"; | 1208 o.outputBytes = "foo"; |
| 1147 o.outputRows = "foo"; | 1209 o.outputRows = "foo"; |
| 1148 } | 1210 } |
| 1149 buildCounterJobStatistics3--; | 1211 buildCounterJobStatistics3--; |
| 1150 return o; | 1212 return o; |
| 1151 } | 1213 } |
| 1152 | 1214 |
| 1153 checkJobStatistics3(api.JobStatistics3 o) { | 1215 checkJobStatistics3(api.JobStatistics3 o) { |
| 1154 buildCounterJobStatistics3++; | 1216 buildCounterJobStatistics3++; |
| 1155 if (buildCounterJobStatistics3 < 3) { | 1217 if (buildCounterJobStatistics3 < 3) { |
| 1156 unittest.expect(o.inputFileBytes, unittest.equals('foo')); | 1218 unittest.expect(o.inputFileBytes, unittest.equals('foo')); |
| 1157 unittest.expect(o.inputFiles, unittest.equals('foo')); | 1219 unittest.expect(o.inputFiles, unittest.equals('foo')); |
| 1158 unittest.expect(o.outputBytes, unittest.equals('foo')); | 1220 unittest.expect(o.outputBytes, unittest.equals('foo')); |
| 1159 unittest.expect(o.outputRows, unittest.equals('foo')); | 1221 unittest.expect(o.outputRows, unittest.equals('foo')); |
| 1160 } | 1222 } |
| 1161 buildCounterJobStatistics3--; | 1223 buildCounterJobStatistics3--; |
| 1162 } | 1224 } |
| 1163 | 1225 |
| 1164 buildUnnamed505() { | 1226 buildUnnamed3396() { |
| 1165 var o = new core.List<core.String>(); | 1227 var o = new core.List<core.String>(); |
| 1166 o.add("foo"); | 1228 o.add("foo"); |
| 1167 o.add("foo"); | 1229 o.add("foo"); |
| 1168 return o; | 1230 return o; |
| 1169 } | 1231 } |
| 1170 | 1232 |
| 1171 checkUnnamed505(core.List<core.String> o) { | 1233 checkUnnamed3396(core.List<core.String> o) { |
| 1172 unittest.expect(o, unittest.hasLength(2)); | 1234 unittest.expect(o, unittest.hasLength(2)); |
| 1173 unittest.expect(o[0], unittest.equals('foo')); | 1235 unittest.expect(o[0], unittest.equals('foo')); |
| 1174 unittest.expect(o[1], unittest.equals('foo')); | 1236 unittest.expect(o[1], unittest.equals('foo')); |
| 1175 } | 1237 } |
| 1176 | 1238 |
| 1177 core.int buildCounterJobStatistics4 = 0; | 1239 core.int buildCounterJobStatistics4 = 0; |
| 1178 buildJobStatistics4() { | 1240 buildJobStatistics4() { |
| 1179 var o = new api.JobStatistics4(); | 1241 var o = new api.JobStatistics4(); |
| 1180 buildCounterJobStatistics4++; | 1242 buildCounterJobStatistics4++; |
| 1181 if (buildCounterJobStatistics4 < 3) { | 1243 if (buildCounterJobStatistics4 < 3) { |
| 1182 o.destinationUriFileCounts = buildUnnamed505(); | 1244 o.destinationUriFileCounts = buildUnnamed3396(); |
| 1183 } | 1245 } |
| 1184 buildCounterJobStatistics4--; | 1246 buildCounterJobStatistics4--; |
| 1185 return o; | 1247 return o; |
| 1186 } | 1248 } |
| 1187 | 1249 |
| 1188 checkJobStatistics4(api.JobStatistics4 o) { | 1250 checkJobStatistics4(api.JobStatistics4 o) { |
| 1189 buildCounterJobStatistics4++; | 1251 buildCounterJobStatistics4++; |
| 1190 if (buildCounterJobStatistics4 < 3) { | 1252 if (buildCounterJobStatistics4 < 3) { |
| 1191 checkUnnamed505(o.destinationUriFileCounts); | 1253 checkUnnamed3396(o.destinationUriFileCounts); |
| 1192 } | 1254 } |
| 1193 buildCounterJobStatistics4--; | 1255 buildCounterJobStatistics4--; |
| 1194 } | 1256 } |
| 1195 | 1257 |
| 1196 buildUnnamed506() { | 1258 buildUnnamed3397() { |
| 1197 var o = new core.List<api.ErrorProto>(); | 1259 var o = new core.List<api.ErrorProto>(); |
| 1198 o.add(buildErrorProto()); | 1260 o.add(buildErrorProto()); |
| 1199 o.add(buildErrorProto()); | 1261 o.add(buildErrorProto()); |
| 1200 return o; | 1262 return o; |
| 1201 } | 1263 } |
| 1202 | 1264 |
| 1203 checkUnnamed506(core.List<api.ErrorProto> o) { | 1265 checkUnnamed3397(core.List<api.ErrorProto> o) { |
| 1204 unittest.expect(o, unittest.hasLength(2)); | 1266 unittest.expect(o, unittest.hasLength(2)); |
| 1205 checkErrorProto(o[0]); | 1267 checkErrorProto(o[0]); |
| 1206 checkErrorProto(o[1]); | 1268 checkErrorProto(o[1]); |
| 1207 } | 1269 } |
| 1208 | 1270 |
| 1209 core.int buildCounterJobStatus = 0; | 1271 core.int buildCounterJobStatus = 0; |
| 1210 buildJobStatus() { | 1272 buildJobStatus() { |
| 1211 var o = new api.JobStatus(); | 1273 var o = new api.JobStatus(); |
| 1212 buildCounterJobStatus++; | 1274 buildCounterJobStatus++; |
| 1213 if (buildCounterJobStatus < 3) { | 1275 if (buildCounterJobStatus < 3) { |
| 1214 o.errorResult = buildErrorProto(); | 1276 o.errorResult = buildErrorProto(); |
| 1215 o.errors = buildUnnamed506(); | 1277 o.errors = buildUnnamed3397(); |
| 1216 o.state = "foo"; | 1278 o.state = "foo"; |
| 1217 } | 1279 } |
| 1218 buildCounterJobStatus--; | 1280 buildCounterJobStatus--; |
| 1219 return o; | 1281 return o; |
| 1220 } | 1282 } |
| 1221 | 1283 |
| 1222 checkJobStatus(api.JobStatus o) { | 1284 checkJobStatus(api.JobStatus o) { |
| 1223 buildCounterJobStatus++; | 1285 buildCounterJobStatus++; |
| 1224 if (buildCounterJobStatus < 3) { | 1286 if (buildCounterJobStatus < 3) { |
| 1225 checkErrorProto(o.errorResult); | 1287 checkErrorProto(o.errorResult); |
| 1226 checkUnnamed506(o.errors); | 1288 checkUnnamed3397(o.errors); |
| 1227 unittest.expect(o.state, unittest.equals('foo')); | 1289 unittest.expect(o.state, unittest.equals('foo')); |
| 1228 } | 1290 } |
| 1229 buildCounterJobStatus--; | 1291 buildCounterJobStatus--; |
| 1230 } | 1292 } |
| 1231 | 1293 |
| 1232 buildJsonObject() { | 1294 buildJsonObject() { |
| 1233 var o = new api.JsonObject(); | 1295 var o = new api.JsonObject(); |
| 1234 o["a"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1296 o["a"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1235 o["b"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1297 o["b"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1236 return o; | 1298 return o; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1262 if (buildCounterProjectListProjects < 3) { | 1324 if (buildCounterProjectListProjects < 3) { |
| 1263 unittest.expect(o.friendlyName, unittest.equals('foo')); | 1325 unittest.expect(o.friendlyName, unittest.equals('foo')); |
| 1264 unittest.expect(o.id, unittest.equals('foo')); | 1326 unittest.expect(o.id, unittest.equals('foo')); |
| 1265 unittest.expect(o.kind, unittest.equals('foo')); | 1327 unittest.expect(o.kind, unittest.equals('foo')); |
| 1266 unittest.expect(o.numericId, unittest.equals('foo')); | 1328 unittest.expect(o.numericId, unittest.equals('foo')); |
| 1267 checkProjectReference(o.projectReference); | 1329 checkProjectReference(o.projectReference); |
| 1268 } | 1330 } |
| 1269 buildCounterProjectListProjects--; | 1331 buildCounterProjectListProjects--; |
| 1270 } | 1332 } |
| 1271 | 1333 |
| 1272 buildUnnamed507() { | 1334 buildUnnamed3398() { |
| 1273 var o = new core.List<api.ProjectListProjects>(); | 1335 var o = new core.List<api.ProjectListProjects>(); |
| 1274 o.add(buildProjectListProjects()); | 1336 o.add(buildProjectListProjects()); |
| 1275 o.add(buildProjectListProjects()); | 1337 o.add(buildProjectListProjects()); |
| 1276 return o; | 1338 return o; |
| 1277 } | 1339 } |
| 1278 | 1340 |
| 1279 checkUnnamed507(core.List<api.ProjectListProjects> o) { | 1341 checkUnnamed3398(core.List<api.ProjectListProjects> o) { |
| 1280 unittest.expect(o, unittest.hasLength(2)); | 1342 unittest.expect(o, unittest.hasLength(2)); |
| 1281 checkProjectListProjects(o[0]); | 1343 checkProjectListProjects(o[0]); |
| 1282 checkProjectListProjects(o[1]); | 1344 checkProjectListProjects(o[1]); |
| 1283 } | 1345 } |
| 1284 | 1346 |
| 1285 core.int buildCounterProjectList = 0; | 1347 core.int buildCounterProjectList = 0; |
| 1286 buildProjectList() { | 1348 buildProjectList() { |
| 1287 var o = new api.ProjectList(); | 1349 var o = new api.ProjectList(); |
| 1288 buildCounterProjectList++; | 1350 buildCounterProjectList++; |
| 1289 if (buildCounterProjectList < 3) { | 1351 if (buildCounterProjectList < 3) { |
| 1290 o.etag = "foo"; | 1352 o.etag = "foo"; |
| 1291 o.kind = "foo"; | 1353 o.kind = "foo"; |
| 1292 o.nextPageToken = "foo"; | 1354 o.nextPageToken = "foo"; |
| 1293 o.projects = buildUnnamed507(); | 1355 o.projects = buildUnnamed3398(); |
| 1294 o.totalItems = 42; | 1356 o.totalItems = 42; |
| 1295 } | 1357 } |
| 1296 buildCounterProjectList--; | 1358 buildCounterProjectList--; |
| 1297 return o; | 1359 return o; |
| 1298 } | 1360 } |
| 1299 | 1361 |
| 1300 checkProjectList(api.ProjectList o) { | 1362 checkProjectList(api.ProjectList o) { |
| 1301 buildCounterProjectList++; | 1363 buildCounterProjectList++; |
| 1302 if (buildCounterProjectList < 3) { | 1364 if (buildCounterProjectList < 3) { |
| 1303 unittest.expect(o.etag, unittest.equals('foo')); | 1365 unittest.expect(o.etag, unittest.equals('foo')); |
| 1304 unittest.expect(o.kind, unittest.equals('foo')); | 1366 unittest.expect(o.kind, unittest.equals('foo')); |
| 1305 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1367 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1306 checkUnnamed507(o.projects); | 1368 checkUnnamed3398(o.projects); |
| 1307 unittest.expect(o.totalItems, unittest.equals(42)); | 1369 unittest.expect(o.totalItems, unittest.equals(42)); |
| 1308 } | 1370 } |
| 1309 buildCounterProjectList--; | 1371 buildCounterProjectList--; |
| 1310 } | 1372 } |
| 1311 | 1373 |
| 1312 core.int buildCounterProjectReference = 0; | 1374 core.int buildCounterProjectReference = 0; |
| 1313 buildProjectReference() { | 1375 buildProjectReference() { |
| 1314 var o = new api.ProjectReference(); | 1376 var o = new api.ProjectReference(); |
| 1315 buildCounterProjectReference++; | 1377 buildCounterProjectReference++; |
| 1316 if (buildCounterProjectReference < 3) { | 1378 if (buildCounterProjectReference < 3) { |
| 1317 o.projectId = "foo"; | 1379 o.projectId = "foo"; |
| 1318 } | 1380 } |
| 1319 buildCounterProjectReference--; | 1381 buildCounterProjectReference--; |
| 1320 return o; | 1382 return o; |
| 1321 } | 1383 } |
| 1322 | 1384 |
| 1323 checkProjectReference(api.ProjectReference o) { | 1385 checkProjectReference(api.ProjectReference o) { |
| 1324 buildCounterProjectReference++; | 1386 buildCounterProjectReference++; |
| 1325 if (buildCounterProjectReference < 3) { | 1387 if (buildCounterProjectReference < 3) { |
| 1326 unittest.expect(o.projectId, unittest.equals('foo')); | 1388 unittest.expect(o.projectId, unittest.equals('foo')); |
| 1327 } | 1389 } |
| 1328 buildCounterProjectReference--; | 1390 buildCounterProjectReference--; |
| 1329 } | 1391 } |
| 1330 | 1392 |
| 1393 core.int buildCounterQueryParameter = 0; |
| 1394 buildQueryParameter() { |
| 1395 var o = new api.QueryParameter(); |
| 1396 buildCounterQueryParameter++; |
| 1397 if (buildCounterQueryParameter < 3) { |
| 1398 o.name = "foo"; |
| 1399 o.parameterType = buildQueryParameterType(); |
| 1400 o.parameterValue = buildQueryParameterValue(); |
| 1401 } |
| 1402 buildCounterQueryParameter--; |
| 1403 return o; |
| 1404 } |
| 1405 |
| 1406 checkQueryParameter(api.QueryParameter o) { |
| 1407 buildCounterQueryParameter++; |
| 1408 if (buildCounterQueryParameter < 3) { |
| 1409 unittest.expect(o.name, unittest.equals('foo')); |
| 1410 checkQueryParameterType(o.parameterType); |
| 1411 checkQueryParameterValue(o.parameterValue); |
| 1412 } |
| 1413 buildCounterQueryParameter--; |
| 1414 } |
| 1415 |
| 1416 core.int buildCounterQueryParameterTypeStructTypes = 0; |
| 1417 buildQueryParameterTypeStructTypes() { |
| 1418 var o = new api.QueryParameterTypeStructTypes(); |
| 1419 buildCounterQueryParameterTypeStructTypes++; |
| 1420 if (buildCounterQueryParameterTypeStructTypes < 3) { |
| 1421 o.description = "foo"; |
| 1422 o.name = "foo"; |
| 1423 o.type = buildQueryParameterType(); |
| 1424 } |
| 1425 buildCounterQueryParameterTypeStructTypes--; |
| 1426 return o; |
| 1427 } |
| 1428 |
| 1429 checkQueryParameterTypeStructTypes(api.QueryParameterTypeStructTypes o) { |
| 1430 buildCounterQueryParameterTypeStructTypes++; |
| 1431 if (buildCounterQueryParameterTypeStructTypes < 3) { |
| 1432 unittest.expect(o.description, unittest.equals('foo')); |
| 1433 unittest.expect(o.name, unittest.equals('foo')); |
| 1434 checkQueryParameterType(o.type); |
| 1435 } |
| 1436 buildCounterQueryParameterTypeStructTypes--; |
| 1437 } |
| 1438 |
| 1439 buildUnnamed3399() { |
| 1440 var o = new core.List<api.QueryParameterTypeStructTypes>(); |
| 1441 o.add(buildQueryParameterTypeStructTypes()); |
| 1442 o.add(buildQueryParameterTypeStructTypes()); |
| 1443 return o; |
| 1444 } |
| 1445 |
| 1446 checkUnnamed3399(core.List<api.QueryParameterTypeStructTypes> o) { |
| 1447 unittest.expect(o, unittest.hasLength(2)); |
| 1448 checkQueryParameterTypeStructTypes(o[0]); |
| 1449 checkQueryParameterTypeStructTypes(o[1]); |
| 1450 } |
| 1451 |
| 1452 core.int buildCounterQueryParameterType = 0; |
| 1453 buildQueryParameterType() { |
| 1454 var o = new api.QueryParameterType(); |
| 1455 buildCounterQueryParameterType++; |
| 1456 if (buildCounterQueryParameterType < 3) { |
| 1457 o.arrayType = buildQueryParameterType(); |
| 1458 o.structTypes = buildUnnamed3399(); |
| 1459 o.type = "foo"; |
| 1460 } |
| 1461 buildCounterQueryParameterType--; |
| 1462 return o; |
| 1463 } |
| 1464 |
| 1465 checkQueryParameterType(api.QueryParameterType o) { |
| 1466 buildCounterQueryParameterType++; |
| 1467 if (buildCounterQueryParameterType < 3) { |
| 1468 checkQueryParameterType(o.arrayType); |
| 1469 checkUnnamed3399(o.structTypes); |
| 1470 unittest.expect(o.type, unittest.equals('foo')); |
| 1471 } |
| 1472 buildCounterQueryParameterType--; |
| 1473 } |
| 1474 |
| 1475 buildUnnamed3400() { |
| 1476 var o = new core.List<api.QueryParameterValue>(); |
| 1477 o.add(buildQueryParameterValue()); |
| 1478 o.add(buildQueryParameterValue()); |
| 1479 return o; |
| 1480 } |
| 1481 |
| 1482 checkUnnamed3400(core.List<api.QueryParameterValue> o) { |
| 1483 unittest.expect(o, unittest.hasLength(2)); |
| 1484 checkQueryParameterValue(o[0]); |
| 1485 checkQueryParameterValue(o[1]); |
| 1486 } |
| 1487 |
| 1488 buildUnnamed3401() { |
| 1489 var o = new core.List<api.QueryParameterValue>(); |
| 1490 o.add(buildQueryParameterValue()); |
| 1491 o.add(buildQueryParameterValue()); |
| 1492 return o; |
| 1493 } |
| 1494 |
| 1495 checkUnnamed3401(core.List<api.QueryParameterValue> o) { |
| 1496 unittest.expect(o, unittest.hasLength(2)); |
| 1497 checkQueryParameterValue(o[0]); |
| 1498 checkQueryParameterValue(o[1]); |
| 1499 } |
| 1500 |
| 1501 core.int buildCounterQueryParameterValue = 0; |
| 1502 buildQueryParameterValue() { |
| 1503 var o = new api.QueryParameterValue(); |
| 1504 buildCounterQueryParameterValue++; |
| 1505 if (buildCounterQueryParameterValue < 3) { |
| 1506 o.arrayValues = buildUnnamed3400(); |
| 1507 o.structValues = buildUnnamed3401(); |
| 1508 o.value = "foo"; |
| 1509 } |
| 1510 buildCounterQueryParameterValue--; |
| 1511 return o; |
| 1512 } |
| 1513 |
| 1514 checkQueryParameterValue(api.QueryParameterValue o) { |
| 1515 buildCounterQueryParameterValue++; |
| 1516 if (buildCounterQueryParameterValue < 3) { |
| 1517 checkUnnamed3400(o.arrayValues); |
| 1518 checkUnnamed3401(o.structValues); |
| 1519 unittest.expect(o.value, unittest.equals('foo')); |
| 1520 } |
| 1521 buildCounterQueryParameterValue--; |
| 1522 } |
| 1523 |
| 1524 buildUnnamed3402() { |
| 1525 var o = new core.List<api.QueryParameter>(); |
| 1526 o.add(buildQueryParameter()); |
| 1527 o.add(buildQueryParameter()); |
| 1528 return o; |
| 1529 } |
| 1530 |
| 1531 checkUnnamed3402(core.List<api.QueryParameter> o) { |
| 1532 unittest.expect(o, unittest.hasLength(2)); |
| 1533 checkQueryParameter(o[0]); |
| 1534 checkQueryParameter(o[1]); |
| 1535 } |
| 1536 |
| 1331 core.int buildCounterQueryRequest = 0; | 1537 core.int buildCounterQueryRequest = 0; |
| 1332 buildQueryRequest() { | 1538 buildQueryRequest() { |
| 1333 var o = new api.QueryRequest(); | 1539 var o = new api.QueryRequest(); |
| 1334 buildCounterQueryRequest++; | 1540 buildCounterQueryRequest++; |
| 1335 if (buildCounterQueryRequest < 3) { | 1541 if (buildCounterQueryRequest < 3) { |
| 1336 o.defaultDataset = buildDatasetReference(); | 1542 o.defaultDataset = buildDatasetReference(); |
| 1337 o.dryRun = true; | 1543 o.dryRun = true; |
| 1338 o.kind = "foo"; | 1544 o.kind = "foo"; |
| 1339 o.maxResults = 42; | 1545 o.maxResults = 42; |
| 1546 o.parameterMode = "foo"; |
| 1340 o.preserveNulls = true; | 1547 o.preserveNulls = true; |
| 1341 o.query = "foo"; | 1548 o.query = "foo"; |
| 1549 o.queryParameters = buildUnnamed3402(); |
| 1342 o.timeoutMs = 42; | 1550 o.timeoutMs = 42; |
| 1343 o.useLegacySql = true; | 1551 o.useLegacySql = true; |
| 1344 o.useQueryCache = true; | 1552 o.useQueryCache = true; |
| 1345 } | 1553 } |
| 1346 buildCounterQueryRequest--; | 1554 buildCounterQueryRequest--; |
| 1347 return o; | 1555 return o; |
| 1348 } | 1556 } |
| 1349 | 1557 |
| 1350 checkQueryRequest(api.QueryRequest o) { | 1558 checkQueryRequest(api.QueryRequest o) { |
| 1351 buildCounterQueryRequest++; | 1559 buildCounterQueryRequest++; |
| 1352 if (buildCounterQueryRequest < 3) { | 1560 if (buildCounterQueryRequest < 3) { |
| 1353 checkDatasetReference(o.defaultDataset); | 1561 checkDatasetReference(o.defaultDataset); |
| 1354 unittest.expect(o.dryRun, unittest.isTrue); | 1562 unittest.expect(o.dryRun, unittest.isTrue); |
| 1355 unittest.expect(o.kind, unittest.equals('foo')); | 1563 unittest.expect(o.kind, unittest.equals('foo')); |
| 1356 unittest.expect(o.maxResults, unittest.equals(42)); | 1564 unittest.expect(o.maxResults, unittest.equals(42)); |
| 1565 unittest.expect(o.parameterMode, unittest.equals('foo')); |
| 1357 unittest.expect(o.preserveNulls, unittest.isTrue); | 1566 unittest.expect(o.preserveNulls, unittest.isTrue); |
| 1358 unittest.expect(o.query, unittest.equals('foo')); | 1567 unittest.expect(o.query, unittest.equals('foo')); |
| 1568 checkUnnamed3402(o.queryParameters); |
| 1359 unittest.expect(o.timeoutMs, unittest.equals(42)); | 1569 unittest.expect(o.timeoutMs, unittest.equals(42)); |
| 1360 unittest.expect(o.useLegacySql, unittest.isTrue); | 1570 unittest.expect(o.useLegacySql, unittest.isTrue); |
| 1361 unittest.expect(o.useQueryCache, unittest.isTrue); | 1571 unittest.expect(o.useQueryCache, unittest.isTrue); |
| 1362 } | 1572 } |
| 1363 buildCounterQueryRequest--; | 1573 buildCounterQueryRequest--; |
| 1364 } | 1574 } |
| 1365 | 1575 |
| 1366 buildUnnamed508() { | 1576 buildUnnamed3403() { |
| 1367 var o = new core.List<api.ErrorProto>(); | 1577 var o = new core.List<api.ErrorProto>(); |
| 1368 o.add(buildErrorProto()); | 1578 o.add(buildErrorProto()); |
| 1369 o.add(buildErrorProto()); | 1579 o.add(buildErrorProto()); |
| 1370 return o; | 1580 return o; |
| 1371 } | 1581 } |
| 1372 | 1582 |
| 1373 checkUnnamed508(core.List<api.ErrorProto> o) { | 1583 checkUnnamed3403(core.List<api.ErrorProto> o) { |
| 1374 unittest.expect(o, unittest.hasLength(2)); | 1584 unittest.expect(o, unittest.hasLength(2)); |
| 1375 checkErrorProto(o[0]); | 1585 checkErrorProto(o[0]); |
| 1376 checkErrorProto(o[1]); | 1586 checkErrorProto(o[1]); |
| 1377 } | 1587 } |
| 1378 | 1588 |
| 1379 buildUnnamed509() { | 1589 buildUnnamed3404() { |
| 1380 var o = new core.List<api.TableRow>(); | 1590 var o = new core.List<api.TableRow>(); |
| 1381 o.add(buildTableRow()); | 1591 o.add(buildTableRow()); |
| 1382 o.add(buildTableRow()); | 1592 o.add(buildTableRow()); |
| 1383 return o; | 1593 return o; |
| 1384 } | 1594 } |
| 1385 | 1595 |
| 1386 checkUnnamed509(core.List<api.TableRow> o) { | 1596 checkUnnamed3404(core.List<api.TableRow> o) { |
| 1387 unittest.expect(o, unittest.hasLength(2)); | 1597 unittest.expect(o, unittest.hasLength(2)); |
| 1388 checkTableRow(o[0]); | 1598 checkTableRow(o[0]); |
| 1389 checkTableRow(o[1]); | 1599 checkTableRow(o[1]); |
| 1390 } | 1600 } |
| 1391 | 1601 |
| 1392 core.int buildCounterQueryResponse = 0; | 1602 core.int buildCounterQueryResponse = 0; |
| 1393 buildQueryResponse() { | 1603 buildQueryResponse() { |
| 1394 var o = new api.QueryResponse(); | 1604 var o = new api.QueryResponse(); |
| 1395 buildCounterQueryResponse++; | 1605 buildCounterQueryResponse++; |
| 1396 if (buildCounterQueryResponse < 3) { | 1606 if (buildCounterQueryResponse < 3) { |
| 1397 o.cacheHit = true; | 1607 o.cacheHit = true; |
| 1398 o.errors = buildUnnamed508(); | 1608 o.errors = buildUnnamed3403(); |
| 1399 o.jobComplete = true; | 1609 o.jobComplete = true; |
| 1400 o.jobReference = buildJobReference(); | 1610 o.jobReference = buildJobReference(); |
| 1401 o.kind = "foo"; | 1611 o.kind = "foo"; |
| 1402 o.numDmlAffectedRows = "foo"; | 1612 o.numDmlAffectedRows = "foo"; |
| 1403 o.pageToken = "foo"; | 1613 o.pageToken = "foo"; |
| 1404 o.rows = buildUnnamed509(); | 1614 o.rows = buildUnnamed3404(); |
| 1405 o.schema = buildTableSchema(); | 1615 o.schema = buildTableSchema(); |
| 1406 o.totalBytesProcessed = "foo"; | 1616 o.totalBytesProcessed = "foo"; |
| 1407 o.totalRows = "foo"; | 1617 o.totalRows = "foo"; |
| 1408 } | 1618 } |
| 1409 buildCounterQueryResponse--; | 1619 buildCounterQueryResponse--; |
| 1410 return o; | 1620 return o; |
| 1411 } | 1621 } |
| 1412 | 1622 |
| 1413 checkQueryResponse(api.QueryResponse o) { | 1623 checkQueryResponse(api.QueryResponse o) { |
| 1414 buildCounterQueryResponse++; | 1624 buildCounterQueryResponse++; |
| 1415 if (buildCounterQueryResponse < 3) { | 1625 if (buildCounterQueryResponse < 3) { |
| 1416 unittest.expect(o.cacheHit, unittest.isTrue); | 1626 unittest.expect(o.cacheHit, unittest.isTrue); |
| 1417 checkUnnamed508(o.errors); | 1627 checkUnnamed3403(o.errors); |
| 1418 unittest.expect(o.jobComplete, unittest.isTrue); | 1628 unittest.expect(o.jobComplete, unittest.isTrue); |
| 1419 checkJobReference(o.jobReference); | 1629 checkJobReference(o.jobReference); |
| 1420 unittest.expect(o.kind, unittest.equals('foo')); | 1630 unittest.expect(o.kind, unittest.equals('foo')); |
| 1421 unittest.expect(o.numDmlAffectedRows, unittest.equals('foo')); | 1631 unittest.expect(o.numDmlAffectedRows, unittest.equals('foo')); |
| 1422 unittest.expect(o.pageToken, unittest.equals('foo')); | 1632 unittest.expect(o.pageToken, unittest.equals('foo')); |
| 1423 checkUnnamed509(o.rows); | 1633 checkUnnamed3404(o.rows); |
| 1424 checkTableSchema(o.schema); | 1634 checkTableSchema(o.schema); |
| 1425 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); | 1635 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); |
| 1426 unittest.expect(o.totalRows, unittest.equals('foo')); | 1636 unittest.expect(o.totalRows, unittest.equals('foo')); |
| 1427 } | 1637 } |
| 1428 buildCounterQueryResponse--; | 1638 buildCounterQueryResponse--; |
| 1429 } | 1639 } |
| 1430 | 1640 |
| 1431 core.int buildCounterStreamingbuffer = 0; | 1641 core.int buildCounterStreamingbuffer = 0; |
| 1432 buildStreamingbuffer() { | 1642 buildStreamingbuffer() { |
| 1433 var o = new api.Streamingbuffer(); | 1643 var o = new api.Streamingbuffer(); |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1541 | 1751 |
| 1542 checkTableDataInsertAllRequestRows(api.TableDataInsertAllRequestRows o) { | 1752 checkTableDataInsertAllRequestRows(api.TableDataInsertAllRequestRows o) { |
| 1543 buildCounterTableDataInsertAllRequestRows++; | 1753 buildCounterTableDataInsertAllRequestRows++; |
| 1544 if (buildCounterTableDataInsertAllRequestRows < 3) { | 1754 if (buildCounterTableDataInsertAllRequestRows < 3) { |
| 1545 unittest.expect(o.insertId, unittest.equals('foo')); | 1755 unittest.expect(o.insertId, unittest.equals('foo')); |
| 1546 checkJsonObject(o.json); | 1756 checkJsonObject(o.json); |
| 1547 } | 1757 } |
| 1548 buildCounterTableDataInsertAllRequestRows--; | 1758 buildCounterTableDataInsertAllRequestRows--; |
| 1549 } | 1759 } |
| 1550 | 1760 |
| 1551 buildUnnamed510() { | 1761 buildUnnamed3405() { |
| 1552 var o = new core.List<api.TableDataInsertAllRequestRows>(); | 1762 var o = new core.List<api.TableDataInsertAllRequestRows>(); |
| 1553 o.add(buildTableDataInsertAllRequestRows()); | 1763 o.add(buildTableDataInsertAllRequestRows()); |
| 1554 o.add(buildTableDataInsertAllRequestRows()); | 1764 o.add(buildTableDataInsertAllRequestRows()); |
| 1555 return o; | 1765 return o; |
| 1556 } | 1766 } |
| 1557 | 1767 |
| 1558 checkUnnamed510(core.List<api.TableDataInsertAllRequestRows> o) { | 1768 checkUnnamed3405(core.List<api.TableDataInsertAllRequestRows> o) { |
| 1559 unittest.expect(o, unittest.hasLength(2)); | 1769 unittest.expect(o, unittest.hasLength(2)); |
| 1560 checkTableDataInsertAllRequestRows(o[0]); | 1770 checkTableDataInsertAllRequestRows(o[0]); |
| 1561 checkTableDataInsertAllRequestRows(o[1]); | 1771 checkTableDataInsertAllRequestRows(o[1]); |
| 1562 } | 1772 } |
| 1563 | 1773 |
| 1564 core.int buildCounterTableDataInsertAllRequest = 0; | 1774 core.int buildCounterTableDataInsertAllRequest = 0; |
| 1565 buildTableDataInsertAllRequest() { | 1775 buildTableDataInsertAllRequest() { |
| 1566 var o = new api.TableDataInsertAllRequest(); | 1776 var o = new api.TableDataInsertAllRequest(); |
| 1567 buildCounterTableDataInsertAllRequest++; | 1777 buildCounterTableDataInsertAllRequest++; |
| 1568 if (buildCounterTableDataInsertAllRequest < 3) { | 1778 if (buildCounterTableDataInsertAllRequest < 3) { |
| 1569 o.ignoreUnknownValues = true; | 1779 o.ignoreUnknownValues = true; |
| 1570 o.kind = "foo"; | 1780 o.kind = "foo"; |
| 1571 o.rows = buildUnnamed510(); | 1781 o.rows = buildUnnamed3405(); |
| 1572 o.skipInvalidRows = true; | 1782 o.skipInvalidRows = true; |
| 1573 o.templateSuffix = "foo"; | 1783 o.templateSuffix = "foo"; |
| 1574 } | 1784 } |
| 1575 buildCounterTableDataInsertAllRequest--; | 1785 buildCounterTableDataInsertAllRequest--; |
| 1576 return o; | 1786 return o; |
| 1577 } | 1787 } |
| 1578 | 1788 |
| 1579 checkTableDataInsertAllRequest(api.TableDataInsertAllRequest o) { | 1789 checkTableDataInsertAllRequest(api.TableDataInsertAllRequest o) { |
| 1580 buildCounterTableDataInsertAllRequest++; | 1790 buildCounterTableDataInsertAllRequest++; |
| 1581 if (buildCounterTableDataInsertAllRequest < 3) { | 1791 if (buildCounterTableDataInsertAllRequest < 3) { |
| 1582 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); | 1792 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); |
| 1583 unittest.expect(o.kind, unittest.equals('foo')); | 1793 unittest.expect(o.kind, unittest.equals('foo')); |
| 1584 checkUnnamed510(o.rows); | 1794 checkUnnamed3405(o.rows); |
| 1585 unittest.expect(o.skipInvalidRows, unittest.isTrue); | 1795 unittest.expect(o.skipInvalidRows, unittest.isTrue); |
| 1586 unittest.expect(o.templateSuffix, unittest.equals('foo')); | 1796 unittest.expect(o.templateSuffix, unittest.equals('foo')); |
| 1587 } | 1797 } |
| 1588 buildCounterTableDataInsertAllRequest--; | 1798 buildCounterTableDataInsertAllRequest--; |
| 1589 } | 1799 } |
| 1590 | 1800 |
| 1591 buildUnnamed511() { | 1801 buildUnnamed3406() { |
| 1592 var o = new core.List<api.ErrorProto>(); | 1802 var o = new core.List<api.ErrorProto>(); |
| 1593 o.add(buildErrorProto()); | 1803 o.add(buildErrorProto()); |
| 1594 o.add(buildErrorProto()); | 1804 o.add(buildErrorProto()); |
| 1595 return o; | 1805 return o; |
| 1596 } | 1806 } |
| 1597 | 1807 |
| 1598 checkUnnamed511(core.List<api.ErrorProto> o) { | 1808 checkUnnamed3406(core.List<api.ErrorProto> o) { |
| 1599 unittest.expect(o, unittest.hasLength(2)); | 1809 unittest.expect(o, unittest.hasLength(2)); |
| 1600 checkErrorProto(o[0]); | 1810 checkErrorProto(o[0]); |
| 1601 checkErrorProto(o[1]); | 1811 checkErrorProto(o[1]); |
| 1602 } | 1812 } |
| 1603 | 1813 |
| 1604 core.int buildCounterTableDataInsertAllResponseInsertErrors = 0; | 1814 core.int buildCounterTableDataInsertAllResponseInsertErrors = 0; |
| 1605 buildTableDataInsertAllResponseInsertErrors() { | 1815 buildTableDataInsertAllResponseInsertErrors() { |
| 1606 var o = new api.TableDataInsertAllResponseInsertErrors(); | 1816 var o = new api.TableDataInsertAllResponseInsertErrors(); |
| 1607 buildCounterTableDataInsertAllResponseInsertErrors++; | 1817 buildCounterTableDataInsertAllResponseInsertErrors++; |
| 1608 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { | 1818 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { |
| 1609 o.errors = buildUnnamed511(); | 1819 o.errors = buildUnnamed3406(); |
| 1610 o.index = 42; | 1820 o.index = 42; |
| 1611 } | 1821 } |
| 1612 buildCounterTableDataInsertAllResponseInsertErrors--; | 1822 buildCounterTableDataInsertAllResponseInsertErrors--; |
| 1613 return o; | 1823 return o; |
| 1614 } | 1824 } |
| 1615 | 1825 |
| 1616 checkTableDataInsertAllResponseInsertErrors(api.TableDataInsertAllResponseInsert
Errors o) { | 1826 checkTableDataInsertAllResponseInsertErrors(api.TableDataInsertAllResponseInsert
Errors o) { |
| 1617 buildCounterTableDataInsertAllResponseInsertErrors++; | 1827 buildCounterTableDataInsertAllResponseInsertErrors++; |
| 1618 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { | 1828 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { |
| 1619 checkUnnamed511(o.errors); | 1829 checkUnnamed3406(o.errors); |
| 1620 unittest.expect(o.index, unittest.equals(42)); | 1830 unittest.expect(o.index, unittest.equals(42)); |
| 1621 } | 1831 } |
| 1622 buildCounterTableDataInsertAllResponseInsertErrors--; | 1832 buildCounterTableDataInsertAllResponseInsertErrors--; |
| 1623 } | 1833 } |
| 1624 | 1834 |
| 1625 buildUnnamed512() { | 1835 buildUnnamed3407() { |
| 1626 var o = new core.List<api.TableDataInsertAllResponseInsertErrors>(); | 1836 var o = new core.List<api.TableDataInsertAllResponseInsertErrors>(); |
| 1627 o.add(buildTableDataInsertAllResponseInsertErrors()); | 1837 o.add(buildTableDataInsertAllResponseInsertErrors()); |
| 1628 o.add(buildTableDataInsertAllResponseInsertErrors()); | 1838 o.add(buildTableDataInsertAllResponseInsertErrors()); |
| 1629 return o; | 1839 return o; |
| 1630 } | 1840 } |
| 1631 | 1841 |
| 1632 checkUnnamed512(core.List<api.TableDataInsertAllResponseInsertErrors> o) { | 1842 checkUnnamed3407(core.List<api.TableDataInsertAllResponseInsertErrors> o) { |
| 1633 unittest.expect(o, unittest.hasLength(2)); | 1843 unittest.expect(o, unittest.hasLength(2)); |
| 1634 checkTableDataInsertAllResponseInsertErrors(o[0]); | 1844 checkTableDataInsertAllResponseInsertErrors(o[0]); |
| 1635 checkTableDataInsertAllResponseInsertErrors(o[1]); | 1845 checkTableDataInsertAllResponseInsertErrors(o[1]); |
| 1636 } | 1846 } |
| 1637 | 1847 |
| 1638 core.int buildCounterTableDataInsertAllResponse = 0; | 1848 core.int buildCounterTableDataInsertAllResponse = 0; |
| 1639 buildTableDataInsertAllResponse() { | 1849 buildTableDataInsertAllResponse() { |
| 1640 var o = new api.TableDataInsertAllResponse(); | 1850 var o = new api.TableDataInsertAllResponse(); |
| 1641 buildCounterTableDataInsertAllResponse++; | 1851 buildCounterTableDataInsertAllResponse++; |
| 1642 if (buildCounterTableDataInsertAllResponse < 3) { | 1852 if (buildCounterTableDataInsertAllResponse < 3) { |
| 1643 o.insertErrors = buildUnnamed512(); | 1853 o.insertErrors = buildUnnamed3407(); |
| 1644 o.kind = "foo"; | 1854 o.kind = "foo"; |
| 1645 } | 1855 } |
| 1646 buildCounterTableDataInsertAllResponse--; | 1856 buildCounterTableDataInsertAllResponse--; |
| 1647 return o; | 1857 return o; |
| 1648 } | 1858 } |
| 1649 | 1859 |
| 1650 checkTableDataInsertAllResponse(api.TableDataInsertAllResponse o) { | 1860 checkTableDataInsertAllResponse(api.TableDataInsertAllResponse o) { |
| 1651 buildCounterTableDataInsertAllResponse++; | 1861 buildCounterTableDataInsertAllResponse++; |
| 1652 if (buildCounterTableDataInsertAllResponse < 3) { | 1862 if (buildCounterTableDataInsertAllResponse < 3) { |
| 1653 checkUnnamed512(o.insertErrors); | 1863 checkUnnamed3407(o.insertErrors); |
| 1654 unittest.expect(o.kind, unittest.equals('foo')); | 1864 unittest.expect(o.kind, unittest.equals('foo')); |
| 1655 } | 1865 } |
| 1656 buildCounterTableDataInsertAllResponse--; | 1866 buildCounterTableDataInsertAllResponse--; |
| 1657 } | 1867 } |
| 1658 | 1868 |
| 1659 buildUnnamed513() { | 1869 buildUnnamed3408() { |
| 1660 var o = new core.List<api.TableRow>(); | 1870 var o = new core.List<api.TableRow>(); |
| 1661 o.add(buildTableRow()); | 1871 o.add(buildTableRow()); |
| 1662 o.add(buildTableRow()); | 1872 o.add(buildTableRow()); |
| 1663 return o; | 1873 return o; |
| 1664 } | 1874 } |
| 1665 | 1875 |
| 1666 checkUnnamed513(core.List<api.TableRow> o) { | 1876 checkUnnamed3408(core.List<api.TableRow> o) { |
| 1667 unittest.expect(o, unittest.hasLength(2)); | 1877 unittest.expect(o, unittest.hasLength(2)); |
| 1668 checkTableRow(o[0]); | 1878 checkTableRow(o[0]); |
| 1669 checkTableRow(o[1]); | 1879 checkTableRow(o[1]); |
| 1670 } | 1880 } |
| 1671 | 1881 |
| 1672 core.int buildCounterTableDataList = 0; | 1882 core.int buildCounterTableDataList = 0; |
| 1673 buildTableDataList() { | 1883 buildTableDataList() { |
| 1674 var o = new api.TableDataList(); | 1884 var o = new api.TableDataList(); |
| 1675 buildCounterTableDataList++; | 1885 buildCounterTableDataList++; |
| 1676 if (buildCounterTableDataList < 3) { | 1886 if (buildCounterTableDataList < 3) { |
| 1677 o.etag = "foo"; | 1887 o.etag = "foo"; |
| 1678 o.kind = "foo"; | 1888 o.kind = "foo"; |
| 1679 o.pageToken = "foo"; | 1889 o.pageToken = "foo"; |
| 1680 o.rows = buildUnnamed513(); | 1890 o.rows = buildUnnamed3408(); |
| 1681 o.totalRows = "foo"; | 1891 o.totalRows = "foo"; |
| 1682 } | 1892 } |
| 1683 buildCounterTableDataList--; | 1893 buildCounterTableDataList--; |
| 1684 return o; | 1894 return o; |
| 1685 } | 1895 } |
| 1686 | 1896 |
| 1687 checkTableDataList(api.TableDataList o) { | 1897 checkTableDataList(api.TableDataList o) { |
| 1688 buildCounterTableDataList++; | 1898 buildCounterTableDataList++; |
| 1689 if (buildCounterTableDataList < 3) { | 1899 if (buildCounterTableDataList < 3) { |
| 1690 unittest.expect(o.etag, unittest.equals('foo')); | 1900 unittest.expect(o.etag, unittest.equals('foo')); |
| 1691 unittest.expect(o.kind, unittest.equals('foo')); | 1901 unittest.expect(o.kind, unittest.equals('foo')); |
| 1692 unittest.expect(o.pageToken, unittest.equals('foo')); | 1902 unittest.expect(o.pageToken, unittest.equals('foo')); |
| 1693 checkUnnamed513(o.rows); | 1903 checkUnnamed3408(o.rows); |
| 1694 unittest.expect(o.totalRows, unittest.equals('foo')); | 1904 unittest.expect(o.totalRows, unittest.equals('foo')); |
| 1695 } | 1905 } |
| 1696 buildCounterTableDataList--; | 1906 buildCounterTableDataList--; |
| 1697 } | 1907 } |
| 1698 | 1908 |
| 1699 buildUnnamed514() { | 1909 buildUnnamed3409() { |
| 1700 var o = new core.List<api.TableFieldSchema>(); | 1910 var o = new core.List<api.TableFieldSchema>(); |
| 1701 o.add(buildTableFieldSchema()); | 1911 o.add(buildTableFieldSchema()); |
| 1702 o.add(buildTableFieldSchema()); | 1912 o.add(buildTableFieldSchema()); |
| 1703 return o; | 1913 return o; |
| 1704 } | 1914 } |
| 1705 | 1915 |
| 1706 checkUnnamed514(core.List<api.TableFieldSchema> o) { | 1916 checkUnnamed3409(core.List<api.TableFieldSchema> o) { |
| 1707 unittest.expect(o, unittest.hasLength(2)); | 1917 unittest.expect(o, unittest.hasLength(2)); |
| 1708 checkTableFieldSchema(o[0]); | 1918 checkTableFieldSchema(o[0]); |
| 1709 checkTableFieldSchema(o[1]); | 1919 checkTableFieldSchema(o[1]); |
| 1710 } | 1920 } |
| 1711 | 1921 |
| 1712 core.int buildCounterTableFieldSchema = 0; | 1922 core.int buildCounterTableFieldSchema = 0; |
| 1713 buildTableFieldSchema() { | 1923 buildTableFieldSchema() { |
| 1714 var o = new api.TableFieldSchema(); | 1924 var o = new api.TableFieldSchema(); |
| 1715 buildCounterTableFieldSchema++; | 1925 buildCounterTableFieldSchema++; |
| 1716 if (buildCounterTableFieldSchema < 3) { | 1926 if (buildCounterTableFieldSchema < 3) { |
| 1717 o.description = "foo"; | 1927 o.description = "foo"; |
| 1718 o.fields = buildUnnamed514(); | 1928 o.fields = buildUnnamed3409(); |
| 1719 o.mode = "foo"; | 1929 o.mode = "foo"; |
| 1720 o.name = "foo"; | 1930 o.name = "foo"; |
| 1721 o.type = "foo"; | 1931 o.type = "foo"; |
| 1722 } | 1932 } |
| 1723 buildCounterTableFieldSchema--; | 1933 buildCounterTableFieldSchema--; |
| 1724 return o; | 1934 return o; |
| 1725 } | 1935 } |
| 1726 | 1936 |
| 1727 checkTableFieldSchema(api.TableFieldSchema o) { | 1937 checkTableFieldSchema(api.TableFieldSchema o) { |
| 1728 buildCounterTableFieldSchema++; | 1938 buildCounterTableFieldSchema++; |
| 1729 if (buildCounterTableFieldSchema < 3) { | 1939 if (buildCounterTableFieldSchema < 3) { |
| 1730 unittest.expect(o.description, unittest.equals('foo')); | 1940 unittest.expect(o.description, unittest.equals('foo')); |
| 1731 checkUnnamed514(o.fields); | 1941 checkUnnamed3409(o.fields); |
| 1732 unittest.expect(o.mode, unittest.equals('foo')); | 1942 unittest.expect(o.mode, unittest.equals('foo')); |
| 1733 unittest.expect(o.name, unittest.equals('foo')); | 1943 unittest.expect(o.name, unittest.equals('foo')); |
| 1734 unittest.expect(o.type, unittest.equals('foo')); | 1944 unittest.expect(o.type, unittest.equals('foo')); |
| 1735 } | 1945 } |
| 1736 buildCounterTableFieldSchema--; | 1946 buildCounterTableFieldSchema--; |
| 1737 } | 1947 } |
| 1738 | 1948 |
| 1739 core.int buildCounterTableListTables = 0; | 1949 core.int buildCounterTableListTables = 0; |
| 1740 buildTableListTables() { | 1950 buildTableListTables() { |
| 1741 var o = new api.TableListTables(); | 1951 var o = new api.TableListTables(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1756 if (buildCounterTableListTables < 3) { | 1966 if (buildCounterTableListTables < 3) { |
| 1757 unittest.expect(o.friendlyName, unittest.equals('foo')); | 1967 unittest.expect(o.friendlyName, unittest.equals('foo')); |
| 1758 unittest.expect(o.id, unittest.equals('foo')); | 1968 unittest.expect(o.id, unittest.equals('foo')); |
| 1759 unittest.expect(o.kind, unittest.equals('foo')); | 1969 unittest.expect(o.kind, unittest.equals('foo')); |
| 1760 checkTableReference(o.tableReference); | 1970 checkTableReference(o.tableReference); |
| 1761 unittest.expect(o.type, unittest.equals('foo')); | 1971 unittest.expect(o.type, unittest.equals('foo')); |
| 1762 } | 1972 } |
| 1763 buildCounterTableListTables--; | 1973 buildCounterTableListTables--; |
| 1764 } | 1974 } |
| 1765 | 1975 |
| 1766 buildUnnamed515() { | 1976 buildUnnamed3410() { |
| 1767 var o = new core.List<api.TableListTables>(); | 1977 var o = new core.List<api.TableListTables>(); |
| 1768 o.add(buildTableListTables()); | 1978 o.add(buildTableListTables()); |
| 1769 o.add(buildTableListTables()); | 1979 o.add(buildTableListTables()); |
| 1770 return o; | 1980 return o; |
| 1771 } | 1981 } |
| 1772 | 1982 |
| 1773 checkUnnamed515(core.List<api.TableListTables> o) { | 1983 checkUnnamed3410(core.List<api.TableListTables> o) { |
| 1774 unittest.expect(o, unittest.hasLength(2)); | 1984 unittest.expect(o, unittest.hasLength(2)); |
| 1775 checkTableListTables(o[0]); | 1985 checkTableListTables(o[0]); |
| 1776 checkTableListTables(o[1]); | 1986 checkTableListTables(o[1]); |
| 1777 } | 1987 } |
| 1778 | 1988 |
| 1779 core.int buildCounterTableList = 0; | 1989 core.int buildCounterTableList = 0; |
| 1780 buildTableList() { | 1990 buildTableList() { |
| 1781 var o = new api.TableList(); | 1991 var o = new api.TableList(); |
| 1782 buildCounterTableList++; | 1992 buildCounterTableList++; |
| 1783 if (buildCounterTableList < 3) { | 1993 if (buildCounterTableList < 3) { |
| 1784 o.etag = "foo"; | 1994 o.etag = "foo"; |
| 1785 o.kind = "foo"; | 1995 o.kind = "foo"; |
| 1786 o.nextPageToken = "foo"; | 1996 o.nextPageToken = "foo"; |
| 1787 o.tables = buildUnnamed515(); | 1997 o.tables = buildUnnamed3410(); |
| 1788 o.totalItems = 42; | 1998 o.totalItems = 42; |
| 1789 } | 1999 } |
| 1790 buildCounterTableList--; | 2000 buildCounterTableList--; |
| 1791 return o; | 2001 return o; |
| 1792 } | 2002 } |
| 1793 | 2003 |
| 1794 checkTableList(api.TableList o) { | 2004 checkTableList(api.TableList o) { |
| 1795 buildCounterTableList++; | 2005 buildCounterTableList++; |
| 1796 if (buildCounterTableList < 3) { | 2006 if (buildCounterTableList < 3) { |
| 1797 unittest.expect(o.etag, unittest.equals('foo')); | 2007 unittest.expect(o.etag, unittest.equals('foo')); |
| 1798 unittest.expect(o.kind, unittest.equals('foo')); | 2008 unittest.expect(o.kind, unittest.equals('foo')); |
| 1799 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2009 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1800 checkUnnamed515(o.tables); | 2010 checkUnnamed3410(o.tables); |
| 1801 unittest.expect(o.totalItems, unittest.equals(42)); | 2011 unittest.expect(o.totalItems, unittest.equals(42)); |
| 1802 } | 2012 } |
| 1803 buildCounterTableList--; | 2013 buildCounterTableList--; |
| 1804 } | 2014 } |
| 1805 | 2015 |
| 1806 core.int buildCounterTableReference = 0; | 2016 core.int buildCounterTableReference = 0; |
| 1807 buildTableReference() { | 2017 buildTableReference() { |
| 1808 var o = new api.TableReference(); | 2018 var o = new api.TableReference(); |
| 1809 buildCounterTableReference++; | 2019 buildCounterTableReference++; |
| 1810 if (buildCounterTableReference < 3) { | 2020 if (buildCounterTableReference < 3) { |
| 1811 o.datasetId = "foo"; | 2021 o.datasetId = "foo"; |
| 1812 o.projectId = "foo"; | 2022 o.projectId = "foo"; |
| 1813 o.tableId = "foo"; | 2023 o.tableId = "foo"; |
| 1814 } | 2024 } |
| 1815 buildCounterTableReference--; | 2025 buildCounterTableReference--; |
| 1816 return o; | 2026 return o; |
| 1817 } | 2027 } |
| 1818 | 2028 |
| 1819 checkTableReference(api.TableReference o) { | 2029 checkTableReference(api.TableReference o) { |
| 1820 buildCounterTableReference++; | 2030 buildCounterTableReference++; |
| 1821 if (buildCounterTableReference < 3) { | 2031 if (buildCounterTableReference < 3) { |
| 1822 unittest.expect(o.datasetId, unittest.equals('foo')); | 2032 unittest.expect(o.datasetId, unittest.equals('foo')); |
| 1823 unittest.expect(o.projectId, unittest.equals('foo')); | 2033 unittest.expect(o.projectId, unittest.equals('foo')); |
| 1824 unittest.expect(o.tableId, unittest.equals('foo')); | 2034 unittest.expect(o.tableId, unittest.equals('foo')); |
| 1825 } | 2035 } |
| 1826 buildCounterTableReference--; | 2036 buildCounterTableReference--; |
| 1827 } | 2037 } |
| 1828 | 2038 |
| 1829 buildUnnamed516() { | 2039 buildUnnamed3411() { |
| 1830 var o = new core.List<api.TableCell>(); | 2040 var o = new core.List<api.TableCell>(); |
| 1831 o.add(buildTableCell()); | 2041 o.add(buildTableCell()); |
| 1832 o.add(buildTableCell()); | 2042 o.add(buildTableCell()); |
| 1833 return o; | 2043 return o; |
| 1834 } | 2044 } |
| 1835 | 2045 |
| 1836 checkUnnamed516(core.List<api.TableCell> o) { | 2046 checkUnnamed3411(core.List<api.TableCell> o) { |
| 1837 unittest.expect(o, unittest.hasLength(2)); | 2047 unittest.expect(o, unittest.hasLength(2)); |
| 1838 checkTableCell(o[0]); | 2048 checkTableCell(o[0]); |
| 1839 checkTableCell(o[1]); | 2049 checkTableCell(o[1]); |
| 1840 } | 2050 } |
| 1841 | 2051 |
| 1842 core.int buildCounterTableRow = 0; | 2052 core.int buildCounterTableRow = 0; |
| 1843 buildTableRow() { | 2053 buildTableRow() { |
| 1844 var o = new api.TableRow(); | 2054 var o = new api.TableRow(); |
| 1845 buildCounterTableRow++; | 2055 buildCounterTableRow++; |
| 1846 if (buildCounterTableRow < 3) { | 2056 if (buildCounterTableRow < 3) { |
| 1847 o.f = buildUnnamed516(); | 2057 o.f = buildUnnamed3411(); |
| 1848 } | 2058 } |
| 1849 buildCounterTableRow--; | 2059 buildCounterTableRow--; |
| 1850 return o; | 2060 return o; |
| 1851 } | 2061 } |
| 1852 | 2062 |
| 1853 checkTableRow(api.TableRow o) { | 2063 checkTableRow(api.TableRow o) { |
| 1854 buildCounterTableRow++; | 2064 buildCounterTableRow++; |
| 1855 if (buildCounterTableRow < 3) { | 2065 if (buildCounterTableRow < 3) { |
| 1856 checkUnnamed516(o.f); | 2066 checkUnnamed3411(o.f); |
| 1857 } | 2067 } |
| 1858 buildCounterTableRow--; | 2068 buildCounterTableRow--; |
| 1859 } | 2069 } |
| 1860 | 2070 |
| 1861 buildUnnamed517() { | 2071 buildUnnamed3412() { |
| 1862 var o = new core.List<api.TableFieldSchema>(); | 2072 var o = new core.List<api.TableFieldSchema>(); |
| 1863 o.add(buildTableFieldSchema()); | 2073 o.add(buildTableFieldSchema()); |
| 1864 o.add(buildTableFieldSchema()); | 2074 o.add(buildTableFieldSchema()); |
| 1865 return o; | 2075 return o; |
| 1866 } | 2076 } |
| 1867 | 2077 |
| 1868 checkUnnamed517(core.List<api.TableFieldSchema> o) { | 2078 checkUnnamed3412(core.List<api.TableFieldSchema> o) { |
| 1869 unittest.expect(o, unittest.hasLength(2)); | 2079 unittest.expect(o, unittest.hasLength(2)); |
| 1870 checkTableFieldSchema(o[0]); | 2080 checkTableFieldSchema(o[0]); |
| 1871 checkTableFieldSchema(o[1]); | 2081 checkTableFieldSchema(o[1]); |
| 1872 } | 2082 } |
| 1873 | 2083 |
| 1874 core.int buildCounterTableSchema = 0; | 2084 core.int buildCounterTableSchema = 0; |
| 1875 buildTableSchema() { | 2085 buildTableSchema() { |
| 1876 var o = new api.TableSchema(); | 2086 var o = new api.TableSchema(); |
| 1877 buildCounterTableSchema++; | 2087 buildCounterTableSchema++; |
| 1878 if (buildCounterTableSchema < 3) { | 2088 if (buildCounterTableSchema < 3) { |
| 1879 o.fields = buildUnnamed517(); | 2089 o.fields = buildUnnamed3412(); |
| 1880 } | 2090 } |
| 1881 buildCounterTableSchema--; | 2091 buildCounterTableSchema--; |
| 1882 return o; | 2092 return o; |
| 1883 } | 2093 } |
| 1884 | 2094 |
| 1885 checkTableSchema(api.TableSchema o) { | 2095 checkTableSchema(api.TableSchema o) { |
| 1886 buildCounterTableSchema++; | 2096 buildCounterTableSchema++; |
| 1887 if (buildCounterTableSchema < 3) { | 2097 if (buildCounterTableSchema < 3) { |
| 1888 checkUnnamed517(o.fields); | 2098 checkUnnamed3412(o.fields); |
| 1889 } | 2099 } |
| 1890 buildCounterTableSchema--; | 2100 buildCounterTableSchema--; |
| 1891 } | 2101 } |
| 1892 | 2102 |
| 1893 core.int buildCounterTimePartitioning = 0; | 2103 core.int buildCounterTimePartitioning = 0; |
| 1894 buildTimePartitioning() { | 2104 buildTimePartitioning() { |
| 1895 var o = new api.TimePartitioning(); | 2105 var o = new api.TimePartitioning(); |
| 1896 buildCounterTimePartitioning++; | 2106 buildCounterTimePartitioning++; |
| 1897 if (buildCounterTimePartitioning < 3) { | 2107 if (buildCounterTimePartitioning < 3) { |
| 1898 o.expirationMs = "foo"; | 2108 o.expirationMs = "foo"; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 1925 | 2135 |
| 1926 checkUserDefinedFunctionResource(api.UserDefinedFunctionResource o) { | 2136 checkUserDefinedFunctionResource(api.UserDefinedFunctionResource o) { |
| 1927 buildCounterUserDefinedFunctionResource++; | 2137 buildCounterUserDefinedFunctionResource++; |
| 1928 if (buildCounterUserDefinedFunctionResource < 3) { | 2138 if (buildCounterUserDefinedFunctionResource < 3) { |
| 1929 unittest.expect(o.inlineCode, unittest.equals('foo')); | 2139 unittest.expect(o.inlineCode, unittest.equals('foo')); |
| 1930 unittest.expect(o.resourceUri, unittest.equals('foo')); | 2140 unittest.expect(o.resourceUri, unittest.equals('foo')); |
| 1931 } | 2141 } |
| 1932 buildCounterUserDefinedFunctionResource--; | 2142 buildCounterUserDefinedFunctionResource--; |
| 1933 } | 2143 } |
| 1934 | 2144 |
| 1935 buildUnnamed518() { | 2145 buildUnnamed3413() { |
| 1936 var o = new core.List<api.UserDefinedFunctionResource>(); | 2146 var o = new core.List<api.UserDefinedFunctionResource>(); |
| 1937 o.add(buildUserDefinedFunctionResource()); | 2147 o.add(buildUserDefinedFunctionResource()); |
| 1938 o.add(buildUserDefinedFunctionResource()); | 2148 o.add(buildUserDefinedFunctionResource()); |
| 1939 return o; | 2149 return o; |
| 1940 } | 2150 } |
| 1941 | 2151 |
| 1942 checkUnnamed518(core.List<api.UserDefinedFunctionResource> o) { | 2152 checkUnnamed3413(core.List<api.UserDefinedFunctionResource> o) { |
| 1943 unittest.expect(o, unittest.hasLength(2)); | 2153 unittest.expect(o, unittest.hasLength(2)); |
| 1944 checkUserDefinedFunctionResource(o[0]); | 2154 checkUserDefinedFunctionResource(o[0]); |
| 1945 checkUserDefinedFunctionResource(o[1]); | 2155 checkUserDefinedFunctionResource(o[1]); |
| 1946 } | 2156 } |
| 1947 | 2157 |
| 1948 core.int buildCounterViewDefinition = 0; | 2158 core.int buildCounterViewDefinition = 0; |
| 1949 buildViewDefinition() { | 2159 buildViewDefinition() { |
| 1950 var o = new api.ViewDefinition(); | 2160 var o = new api.ViewDefinition(); |
| 1951 buildCounterViewDefinition++; | 2161 buildCounterViewDefinition++; |
| 1952 if (buildCounterViewDefinition < 3) { | 2162 if (buildCounterViewDefinition < 3) { |
| 1953 o.query = "foo"; | 2163 o.query = "foo"; |
| 1954 o.useLegacySql = true; | 2164 o.useLegacySql = true; |
| 1955 o.userDefinedFunctionResources = buildUnnamed518(); | 2165 o.userDefinedFunctionResources = buildUnnamed3413(); |
| 1956 } | 2166 } |
| 1957 buildCounterViewDefinition--; | 2167 buildCounterViewDefinition--; |
| 1958 return o; | 2168 return o; |
| 1959 } | 2169 } |
| 1960 | 2170 |
| 1961 checkViewDefinition(api.ViewDefinition o) { | 2171 checkViewDefinition(api.ViewDefinition o) { |
| 1962 buildCounterViewDefinition++; | 2172 buildCounterViewDefinition++; |
| 1963 if (buildCounterViewDefinition < 3) { | 2173 if (buildCounterViewDefinition < 3) { |
| 1964 unittest.expect(o.query, unittest.equals('foo')); | 2174 unittest.expect(o.query, unittest.equals('foo')); |
| 1965 unittest.expect(o.useLegacySql, unittest.isTrue); | 2175 unittest.expect(o.useLegacySql, unittest.isTrue); |
| 1966 checkUnnamed518(o.userDefinedFunctionResources); | 2176 checkUnnamed3413(o.userDefinedFunctionResources); |
| 1967 } | 2177 } |
| 1968 buildCounterViewDefinition--; | 2178 buildCounterViewDefinition--; |
| 1969 } | 2179 } |
| 1970 | 2180 |
| 1971 buildUnnamed519() { | 2181 buildUnnamed3414() { |
| 1972 var o = new core.List<core.String>(); | 2182 var o = new core.List<core.String>(); |
| 1973 o.add("foo"); | 2183 o.add("foo"); |
| 1974 o.add("foo"); | 2184 o.add("foo"); |
| 1975 return o; | 2185 return o; |
| 1976 } | 2186 } |
| 1977 | 2187 |
| 1978 checkUnnamed519(core.List<core.String> o) { | 2188 checkUnnamed3414(core.List<core.String> o) { |
| 1979 unittest.expect(o, unittest.hasLength(2)); | 2189 unittest.expect(o, unittest.hasLength(2)); |
| 1980 unittest.expect(o[0], unittest.equals('foo')); | 2190 unittest.expect(o[0], unittest.equals('foo')); |
| 1981 unittest.expect(o[1], unittest.equals('foo')); | 2191 unittest.expect(o[1], unittest.equals('foo')); |
| 1982 } | 2192 } |
| 1983 | 2193 |
| 1984 | 2194 |
| 1985 main() { | 2195 main() { |
| 1986 unittest.group("obj-schema-BigtableColumn", () { | 2196 unittest.group("obj-schema-BigtableColumn", () { |
| 1987 unittest.test("to-json--from-json", () { | 2197 unittest.test("to-json--from-json", () { |
| 1988 var o = buildBigtableColumn(); | 2198 var o = buildBigtableColumn(); |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2282 | 2492 |
| 2283 unittest.group("obj-schema-ProjectReference", () { | 2493 unittest.group("obj-schema-ProjectReference", () { |
| 2284 unittest.test("to-json--from-json", () { | 2494 unittest.test("to-json--from-json", () { |
| 2285 var o = buildProjectReference(); | 2495 var o = buildProjectReference(); |
| 2286 var od = new api.ProjectReference.fromJson(o.toJson()); | 2496 var od = new api.ProjectReference.fromJson(o.toJson()); |
| 2287 checkProjectReference(od); | 2497 checkProjectReference(od); |
| 2288 }); | 2498 }); |
| 2289 }); | 2499 }); |
| 2290 | 2500 |
| 2291 | 2501 |
| 2502 unittest.group("obj-schema-QueryParameter", () { |
| 2503 unittest.test("to-json--from-json", () { |
| 2504 var o = buildQueryParameter(); |
| 2505 var od = new api.QueryParameter.fromJson(o.toJson()); |
| 2506 checkQueryParameter(od); |
| 2507 }); |
| 2508 }); |
| 2509 |
| 2510 |
| 2511 unittest.group("obj-schema-QueryParameterTypeStructTypes", () { |
| 2512 unittest.test("to-json--from-json", () { |
| 2513 var o = buildQueryParameterTypeStructTypes(); |
| 2514 var od = new api.QueryParameterTypeStructTypes.fromJson(o.toJson()); |
| 2515 checkQueryParameterTypeStructTypes(od); |
| 2516 }); |
| 2517 }); |
| 2518 |
| 2519 |
| 2520 unittest.group("obj-schema-QueryParameterType", () { |
| 2521 unittest.test("to-json--from-json", () { |
| 2522 var o = buildQueryParameterType(); |
| 2523 var od = new api.QueryParameterType.fromJson(o.toJson()); |
| 2524 checkQueryParameterType(od); |
| 2525 }); |
| 2526 }); |
| 2527 |
| 2528 |
| 2529 unittest.group("obj-schema-QueryParameterValue", () { |
| 2530 unittest.test("to-json--from-json", () { |
| 2531 var o = buildQueryParameterValue(); |
| 2532 var od = new api.QueryParameterValue.fromJson(o.toJson()); |
| 2533 checkQueryParameterValue(od); |
| 2534 }); |
| 2535 }); |
| 2536 |
| 2537 |
| 2292 unittest.group("obj-schema-QueryRequest", () { | 2538 unittest.group("obj-schema-QueryRequest", () { |
| 2293 unittest.test("to-json--from-json", () { | 2539 unittest.test("to-json--from-json", () { |
| 2294 var o = buildQueryRequest(); | 2540 var o = buildQueryRequest(); |
| 2295 var od = new api.QueryRequest.fromJson(o.toJson()); | 2541 var od = new api.QueryRequest.fromJson(o.toJson()); |
| 2296 checkQueryRequest(od); | 2542 checkQueryRequest(od); |
| 2297 }); | 2543 }); |
| 2298 }); | 2544 }); |
| 2299 | 2545 |
| 2300 | 2546 |
| 2301 unittest.group("obj-schema-QueryResponse", () { | 2547 unittest.group("obj-schema-QueryResponse", () { |
| (...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3063 | 3309 |
| 3064 unittest.test("method--list", () { | 3310 unittest.test("method--list", () { |
| 3065 | 3311 |
| 3066 var mock = new HttpServerMock(); | 3312 var mock = new HttpServerMock(); |
| 3067 api.JobsResourceApi res = new api.BigqueryApi(mock).jobs; | 3313 api.JobsResourceApi res = new api.BigqueryApi(mock).jobs; |
| 3068 var arg_projectId = "foo"; | 3314 var arg_projectId = "foo"; |
| 3069 var arg_allUsers = true; | 3315 var arg_allUsers = true; |
| 3070 var arg_maxResults = 42; | 3316 var arg_maxResults = 42; |
| 3071 var arg_pageToken = "foo"; | 3317 var arg_pageToken = "foo"; |
| 3072 var arg_projection = "foo"; | 3318 var arg_projection = "foo"; |
| 3073 var arg_stateFilter = buildUnnamed519(); | 3319 var arg_stateFilter = buildUnnamed3414(); |
| 3074 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3320 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3075 var path = (req.url).path; | 3321 var path = (req.url).path; |
| 3076 var pathOffset = 0; | 3322 var pathOffset = 0; |
| 3077 var index; | 3323 var index; |
| 3078 var subPart; | 3324 var subPart; |
| 3079 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3325 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3080 pathOffset += 1; | 3326 pathOffset += 1; |
| 3081 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("bigquery/v2/")); | 3327 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("bigquery/v2/")); |
| 3082 pathOffset += 12; | 3328 pathOffset += 12; |
| 3083 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 3329 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
| (...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3784 res.update(arg_request, arg_projectId, arg_datasetId, arg_tableId).then(un
ittest.expectAsync(((api.Table response) { | 4030 res.update(arg_request, arg_projectId, arg_datasetId, arg_tableId).then(un
ittest.expectAsync(((api.Table response) { |
| 3785 checkTable(response); | 4031 checkTable(response); |
| 3786 }))); | 4032 }))); |
| 3787 }); | 4033 }); |
| 3788 | 4034 |
| 3789 }); | 4035 }); |
| 3790 | 4036 |
| 3791 | 4037 |
| 3792 } | 4038 } |
| 3793 | 4039 |
| OLD | NEW |