| 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 buildUnnamed2889() { | 83 buildUnnamed2995() { |
| 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 checkUnnamed2889(core.List<api.BigtableColumn> o) { | 90 checkUnnamed2995(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 = buildUnnamed2889(); | 101 o.columns = buildUnnamed2995(); |
| 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 checkUnnamed2889(o.columns); | 114 checkUnnamed2995(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 buildUnnamed2890() { | 123 buildUnnamed2996() { |
| 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 checkUnnamed2890(core.List<api.BigtableColumnFamily> o) { | 130 checkUnnamed2996(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 = buildUnnamed2890(); | 141 o.columnFamilies = buildUnnamed2996(); |
| 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 checkUnnamed2890(o.columnFamilies); | 152 checkUnnamed2996(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 buildUnnamed2891() { | 217 buildUnnamed2997() { |
| 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 checkUnnamed2891(core.List<api.DatasetAccess> o) { | 224 checkUnnamed2997(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 buildUnnamed2892() { | 230 buildUnnamed2998() { |
| 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 checkUnnamed2892(core.Map<core.String, core.String> o) { | 237 checkUnnamed2998(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 = buildUnnamed2891(); | 248 o.access = buildUnnamed2997(); |
| 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 = buildUnnamed2892(); | 257 o.labels = buildUnnamed2998(); |
| 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 checkUnnamed2891(o.access); | 269 checkUnnamed2997(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 checkUnnamed2892(o.labels); | 278 checkUnnamed2998(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 buildUnnamed2893() { | 286 buildUnnamed2999() { |
| 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 checkUnnamed2893(core.Map<core.String, core.String> o) { | 293 checkUnnamed2999(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 = buildUnnamed2893(); | 308 o.labels = buildUnnamed2999(); |
| 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 checkUnnamed2893(o.labels); | 321 checkUnnamed2999(o.labels); |
| 322 } | 322 } |
| 323 buildCounterDatasetListDatasets--; | 323 buildCounterDatasetListDatasets--; |
| 324 } | 324 } |
| 325 | 325 |
| 326 buildUnnamed2894() { | 326 buildUnnamed3000() { |
| 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 checkUnnamed2894(core.List<api.DatasetListDatasets> o) { | 333 checkUnnamed3000(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 = buildUnnamed2894(); | 344 o.datasets = buildUnnamed3000(); |
| 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 checkUnnamed2894(o.datasets); | 356 checkUnnamed3000(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 buildUnnamed2895() { | 410 buildUnnamed3001() { |
| 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 checkUnnamed2895(core.List<api.ExplainQueryStep> o) { | 417 checkUnnamed3001(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.status = "foo"; | 436 o.status = "foo"; |
| 437 o.steps = buildUnnamed2895(); | 437 o.steps = buildUnnamed3001(); |
| 438 o.waitRatioAvg = 42.0; | 438 o.waitRatioAvg = 42.0; |
| 439 o.waitRatioMax = 42.0; | 439 o.waitRatioMax = 42.0; |
| 440 o.writeRatioAvg = 42.0; | 440 o.writeRatioAvg = 42.0; |
| 441 o.writeRatioMax = 42.0; | 441 o.writeRatioMax = 42.0; |
| 442 } | 442 } |
| 443 buildCounterExplainQueryStage--; | 443 buildCounterExplainQueryStage--; |
| 444 return o; | 444 return o; |
| 445 } | 445 } |
| 446 | 446 |
| 447 checkExplainQueryStage(api.ExplainQueryStage o) { | 447 checkExplainQueryStage(api.ExplainQueryStage o) { |
| 448 buildCounterExplainQueryStage++; | 448 buildCounterExplainQueryStage++; |
| 449 if (buildCounterExplainQueryStage < 3) { | 449 if (buildCounterExplainQueryStage < 3) { |
| 450 unittest.expect(o.computeRatioAvg, unittest.equals(42.0)); | 450 unittest.expect(o.computeRatioAvg, unittest.equals(42.0)); |
| 451 unittest.expect(o.computeRatioMax, unittest.equals(42.0)); | 451 unittest.expect(o.computeRatioMax, unittest.equals(42.0)); |
| 452 unittest.expect(o.id, unittest.equals('foo')); | 452 unittest.expect(o.id, unittest.equals('foo')); |
| 453 unittest.expect(o.name, unittest.equals('foo')); | 453 unittest.expect(o.name, unittest.equals('foo')); |
| 454 unittest.expect(o.readRatioAvg, unittest.equals(42.0)); | 454 unittest.expect(o.readRatioAvg, unittest.equals(42.0)); |
| 455 unittest.expect(o.readRatioMax, unittest.equals(42.0)); | 455 unittest.expect(o.readRatioMax, unittest.equals(42.0)); |
| 456 unittest.expect(o.recordsRead, unittest.equals('foo')); | 456 unittest.expect(o.recordsRead, unittest.equals('foo')); |
| 457 unittest.expect(o.recordsWritten, unittest.equals('foo')); | 457 unittest.expect(o.recordsWritten, unittest.equals('foo')); |
| 458 unittest.expect(o.status, unittest.equals('foo')); | 458 unittest.expect(o.status, unittest.equals('foo')); |
| 459 checkUnnamed2895(o.steps); | 459 checkUnnamed3001(o.steps); |
| 460 unittest.expect(o.waitRatioAvg, unittest.equals(42.0)); | 460 unittest.expect(o.waitRatioAvg, unittest.equals(42.0)); |
| 461 unittest.expect(o.waitRatioMax, unittest.equals(42.0)); | 461 unittest.expect(o.waitRatioMax, unittest.equals(42.0)); |
| 462 unittest.expect(o.writeRatioAvg, unittest.equals(42.0)); | 462 unittest.expect(o.writeRatioAvg, unittest.equals(42.0)); |
| 463 unittest.expect(o.writeRatioMax, unittest.equals(42.0)); | 463 unittest.expect(o.writeRatioMax, unittest.equals(42.0)); |
| 464 } | 464 } |
| 465 buildCounterExplainQueryStage--; | 465 buildCounterExplainQueryStage--; |
| 466 } | 466 } |
| 467 | 467 |
| 468 buildUnnamed2896() { | 468 buildUnnamed3002() { |
| 469 var o = new core.List<core.String>(); | 469 var o = new core.List<core.String>(); |
| 470 o.add("foo"); | 470 o.add("foo"); |
| 471 o.add("foo"); | 471 o.add("foo"); |
| 472 return o; | 472 return o; |
| 473 } | 473 } |
| 474 | 474 |
| 475 checkUnnamed2896(core.List<core.String> o) { | 475 checkUnnamed3002(core.List<core.String> o) { |
| 476 unittest.expect(o, unittest.hasLength(2)); | 476 unittest.expect(o, unittest.hasLength(2)); |
| 477 unittest.expect(o[0], unittest.equals('foo')); | 477 unittest.expect(o[0], unittest.equals('foo')); |
| 478 unittest.expect(o[1], unittest.equals('foo')); | 478 unittest.expect(o[1], unittest.equals('foo')); |
| 479 } | 479 } |
| 480 | 480 |
| 481 core.int buildCounterExplainQueryStep = 0; | 481 core.int buildCounterExplainQueryStep = 0; |
| 482 buildExplainQueryStep() { | 482 buildExplainQueryStep() { |
| 483 var o = new api.ExplainQueryStep(); | 483 var o = new api.ExplainQueryStep(); |
| 484 buildCounterExplainQueryStep++; | 484 buildCounterExplainQueryStep++; |
| 485 if (buildCounterExplainQueryStep < 3) { | 485 if (buildCounterExplainQueryStep < 3) { |
| 486 o.kind = "foo"; | 486 o.kind = "foo"; |
| 487 o.substeps = buildUnnamed2896(); | 487 o.substeps = buildUnnamed3002(); |
| 488 } | 488 } |
| 489 buildCounterExplainQueryStep--; | 489 buildCounterExplainQueryStep--; |
| 490 return o; | 490 return o; |
| 491 } | 491 } |
| 492 | 492 |
| 493 checkExplainQueryStep(api.ExplainQueryStep o) { | 493 checkExplainQueryStep(api.ExplainQueryStep o) { |
| 494 buildCounterExplainQueryStep++; | 494 buildCounterExplainQueryStep++; |
| 495 if (buildCounterExplainQueryStep < 3) { | 495 if (buildCounterExplainQueryStep < 3) { |
| 496 unittest.expect(o.kind, unittest.equals('foo')); | 496 unittest.expect(o.kind, unittest.equals('foo')); |
| 497 checkUnnamed2896(o.substeps); | 497 checkUnnamed3002(o.substeps); |
| 498 } | 498 } |
| 499 buildCounterExplainQueryStep--; | 499 buildCounterExplainQueryStep--; |
| 500 } | 500 } |
| 501 | 501 |
| 502 buildUnnamed2897() { | 502 buildUnnamed3003() { |
| 503 var o = new core.List<core.String>(); | 503 var o = new core.List<core.String>(); |
| 504 o.add("foo"); | 504 o.add("foo"); |
| 505 o.add("foo"); | 505 o.add("foo"); |
| 506 return o; | 506 return o; |
| 507 } | 507 } |
| 508 | 508 |
| 509 checkUnnamed2897(core.List<core.String> o) { | 509 checkUnnamed3003(core.List<core.String> o) { |
| 510 unittest.expect(o, unittest.hasLength(2)); | 510 unittest.expect(o, unittest.hasLength(2)); |
| 511 unittest.expect(o[0], unittest.equals('foo')); | 511 unittest.expect(o[0], unittest.equals('foo')); |
| 512 unittest.expect(o[1], unittest.equals('foo')); | 512 unittest.expect(o[1], unittest.equals('foo')); |
| 513 } | 513 } |
| 514 | 514 |
| 515 core.int buildCounterExternalDataConfiguration = 0; | 515 core.int buildCounterExternalDataConfiguration = 0; |
| 516 buildExternalDataConfiguration() { | 516 buildExternalDataConfiguration() { |
| 517 var o = new api.ExternalDataConfiguration(); | 517 var o = new api.ExternalDataConfiguration(); |
| 518 buildCounterExternalDataConfiguration++; | 518 buildCounterExternalDataConfiguration++; |
| 519 if (buildCounterExternalDataConfiguration < 3) { | 519 if (buildCounterExternalDataConfiguration < 3) { |
| 520 o.autodetect = true; | 520 o.autodetect = true; |
| 521 o.bigtableOptions = buildBigtableOptions(); | 521 o.bigtableOptions = buildBigtableOptions(); |
| 522 o.compression = "foo"; | 522 o.compression = "foo"; |
| 523 o.csvOptions = buildCsvOptions(); | 523 o.csvOptions = buildCsvOptions(); |
| 524 o.googleSheetsOptions = buildGoogleSheetsOptions(); | 524 o.googleSheetsOptions = buildGoogleSheetsOptions(); |
| 525 o.ignoreUnknownValues = true; | 525 o.ignoreUnknownValues = true; |
| 526 o.maxBadRecords = 42; | 526 o.maxBadRecords = 42; |
| 527 o.schema = buildTableSchema(); | 527 o.schema = buildTableSchema(); |
| 528 o.sourceFormat = "foo"; | 528 o.sourceFormat = "foo"; |
| 529 o.sourceUris = buildUnnamed2897(); | 529 o.sourceUris = buildUnnamed3003(); |
| 530 } | 530 } |
| 531 buildCounterExternalDataConfiguration--; | 531 buildCounterExternalDataConfiguration--; |
| 532 return o; | 532 return o; |
| 533 } | 533 } |
| 534 | 534 |
| 535 checkExternalDataConfiguration(api.ExternalDataConfiguration o) { | 535 checkExternalDataConfiguration(api.ExternalDataConfiguration o) { |
| 536 buildCounterExternalDataConfiguration++; | 536 buildCounterExternalDataConfiguration++; |
| 537 if (buildCounterExternalDataConfiguration < 3) { | 537 if (buildCounterExternalDataConfiguration < 3) { |
| 538 unittest.expect(o.autodetect, unittest.isTrue); | 538 unittest.expect(o.autodetect, unittest.isTrue); |
| 539 checkBigtableOptions(o.bigtableOptions); | 539 checkBigtableOptions(o.bigtableOptions); |
| 540 unittest.expect(o.compression, unittest.equals('foo')); | 540 unittest.expect(o.compression, unittest.equals('foo')); |
| 541 checkCsvOptions(o.csvOptions); | 541 checkCsvOptions(o.csvOptions); |
| 542 checkGoogleSheetsOptions(o.googleSheetsOptions); | 542 checkGoogleSheetsOptions(o.googleSheetsOptions); |
| 543 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); | 543 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); |
| 544 unittest.expect(o.maxBadRecords, unittest.equals(42)); | 544 unittest.expect(o.maxBadRecords, unittest.equals(42)); |
| 545 checkTableSchema(o.schema); | 545 checkTableSchema(o.schema); |
| 546 unittest.expect(o.sourceFormat, unittest.equals('foo')); | 546 unittest.expect(o.sourceFormat, unittest.equals('foo')); |
| 547 checkUnnamed2897(o.sourceUris); | 547 checkUnnamed3003(o.sourceUris); |
| 548 } | 548 } |
| 549 buildCounterExternalDataConfiguration--; | 549 buildCounterExternalDataConfiguration--; |
| 550 } | 550 } |
| 551 | 551 |
| 552 buildUnnamed2898() { | 552 buildUnnamed3004() { |
| 553 var o = new core.List<api.ErrorProto>(); | 553 var o = new core.List<api.ErrorProto>(); |
| 554 o.add(buildErrorProto()); | 554 o.add(buildErrorProto()); |
| 555 o.add(buildErrorProto()); | 555 o.add(buildErrorProto()); |
| 556 return o; | 556 return o; |
| 557 } | 557 } |
| 558 | 558 |
| 559 checkUnnamed2898(core.List<api.ErrorProto> o) { | 559 checkUnnamed3004(core.List<api.ErrorProto> o) { |
| 560 unittest.expect(o, unittest.hasLength(2)); | 560 unittest.expect(o, unittest.hasLength(2)); |
| 561 checkErrorProto(o[0]); | 561 checkErrorProto(o[0]); |
| 562 checkErrorProto(o[1]); | 562 checkErrorProto(o[1]); |
| 563 } | 563 } |
| 564 | 564 |
| 565 buildUnnamed2899() { | 565 buildUnnamed3005() { |
| 566 var o = new core.List<api.TableRow>(); | 566 var o = new core.List<api.TableRow>(); |
| 567 o.add(buildTableRow()); | 567 o.add(buildTableRow()); |
| 568 o.add(buildTableRow()); | 568 o.add(buildTableRow()); |
| 569 return o; | 569 return o; |
| 570 } | 570 } |
| 571 | 571 |
| 572 checkUnnamed2899(core.List<api.TableRow> o) { | 572 checkUnnamed3005(core.List<api.TableRow> o) { |
| 573 unittest.expect(o, unittest.hasLength(2)); | 573 unittest.expect(o, unittest.hasLength(2)); |
| 574 checkTableRow(o[0]); | 574 checkTableRow(o[0]); |
| 575 checkTableRow(o[1]); | 575 checkTableRow(o[1]); |
| 576 } | 576 } |
| 577 | 577 |
| 578 core.int buildCounterGetQueryResultsResponse = 0; | 578 core.int buildCounterGetQueryResultsResponse = 0; |
| 579 buildGetQueryResultsResponse() { | 579 buildGetQueryResultsResponse() { |
| 580 var o = new api.GetQueryResultsResponse(); | 580 var o = new api.GetQueryResultsResponse(); |
| 581 buildCounterGetQueryResultsResponse++; | 581 buildCounterGetQueryResultsResponse++; |
| 582 if (buildCounterGetQueryResultsResponse < 3) { | 582 if (buildCounterGetQueryResultsResponse < 3) { |
| 583 o.cacheHit = true; | 583 o.cacheHit = true; |
| 584 o.errors = buildUnnamed2898(); | 584 o.errors = buildUnnamed3004(); |
| 585 o.etag = "foo"; | 585 o.etag = "foo"; |
| 586 o.jobComplete = true; | 586 o.jobComplete = true; |
| 587 o.jobReference = buildJobReference(); | 587 o.jobReference = buildJobReference(); |
| 588 o.kind = "foo"; | 588 o.kind = "foo"; |
| 589 o.numDmlAffectedRows = "foo"; | 589 o.numDmlAffectedRows = "foo"; |
| 590 o.pageToken = "foo"; | 590 o.pageToken = "foo"; |
| 591 o.rows = buildUnnamed2899(); | 591 o.rows = buildUnnamed3005(); |
| 592 o.schema = buildTableSchema(); | 592 o.schema = buildTableSchema(); |
| 593 o.totalBytesProcessed = "foo"; | 593 o.totalBytesProcessed = "foo"; |
| 594 o.totalRows = "foo"; | 594 o.totalRows = "foo"; |
| 595 } | 595 } |
| 596 buildCounterGetQueryResultsResponse--; | 596 buildCounterGetQueryResultsResponse--; |
| 597 return o; | 597 return o; |
| 598 } | 598 } |
| 599 | 599 |
| 600 checkGetQueryResultsResponse(api.GetQueryResultsResponse o) { | 600 checkGetQueryResultsResponse(api.GetQueryResultsResponse o) { |
| 601 buildCounterGetQueryResultsResponse++; | 601 buildCounterGetQueryResultsResponse++; |
| 602 if (buildCounterGetQueryResultsResponse < 3) { | 602 if (buildCounterGetQueryResultsResponse < 3) { |
| 603 unittest.expect(o.cacheHit, unittest.isTrue); | 603 unittest.expect(o.cacheHit, unittest.isTrue); |
| 604 checkUnnamed2898(o.errors); | 604 checkUnnamed3004(o.errors); |
| 605 unittest.expect(o.etag, unittest.equals('foo')); | 605 unittest.expect(o.etag, unittest.equals('foo')); |
| 606 unittest.expect(o.jobComplete, unittest.isTrue); | 606 unittest.expect(o.jobComplete, unittest.isTrue); |
| 607 checkJobReference(o.jobReference); | 607 checkJobReference(o.jobReference); |
| 608 unittest.expect(o.kind, unittest.equals('foo')); | 608 unittest.expect(o.kind, unittest.equals('foo')); |
| 609 unittest.expect(o.numDmlAffectedRows, unittest.equals('foo')); | 609 unittest.expect(o.numDmlAffectedRows, unittest.equals('foo')); |
| 610 unittest.expect(o.pageToken, unittest.equals('foo')); | 610 unittest.expect(o.pageToken, unittest.equals('foo')); |
| 611 checkUnnamed2899(o.rows); | 611 checkUnnamed3005(o.rows); |
| 612 checkTableSchema(o.schema); | 612 checkTableSchema(o.schema); |
| 613 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); | 613 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); |
| 614 unittest.expect(o.totalRows, unittest.equals('foo')); | 614 unittest.expect(o.totalRows, unittest.equals('foo')); |
| 615 } | 615 } |
| 616 buildCounterGetQueryResultsResponse--; | 616 buildCounterGetQueryResultsResponse--; |
| 617 } | 617 } |
| 618 | 618 |
| 619 core.int buildCounterGoogleSheetsOptions = 0; | 619 core.int buildCounterGoogleSheetsOptions = 0; |
| 620 buildGoogleSheetsOptions() { | 620 buildGoogleSheetsOptions() { |
| 621 var o = new api.GoogleSheetsOptions(); | 621 var o = new api.GoogleSheetsOptions(); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 | 684 |
| 685 checkJobCancelResponse(api.JobCancelResponse o) { | 685 checkJobCancelResponse(api.JobCancelResponse o) { |
| 686 buildCounterJobCancelResponse++; | 686 buildCounterJobCancelResponse++; |
| 687 if (buildCounterJobCancelResponse < 3) { | 687 if (buildCounterJobCancelResponse < 3) { |
| 688 checkJob(o.job); | 688 checkJob(o.job); |
| 689 unittest.expect(o.kind, unittest.equals('foo')); | 689 unittest.expect(o.kind, unittest.equals('foo')); |
| 690 } | 690 } |
| 691 buildCounterJobCancelResponse--; | 691 buildCounterJobCancelResponse--; |
| 692 } | 692 } |
| 693 | 693 |
| 694 buildUnnamed2900() { | 694 buildUnnamed3006() { |
| 695 var o = new core.Map<core.String, core.String>(); | 695 var o = new core.Map<core.String, core.String>(); |
| 696 o["x"] = "foo"; | 696 o["x"] = "foo"; |
| 697 o["y"] = "foo"; | 697 o["y"] = "foo"; |
| 698 return o; | 698 return o; |
| 699 } | 699 } |
| 700 | 700 |
| 701 checkUnnamed2900(core.Map<core.String, core.String> o) { | 701 checkUnnamed3006(core.Map<core.String, core.String> o) { |
| 702 unittest.expect(o, unittest.hasLength(2)); | 702 unittest.expect(o, unittest.hasLength(2)); |
| 703 unittest.expect(o["x"], unittest.equals('foo')); | 703 unittest.expect(o["x"], unittest.equals('foo')); |
| 704 unittest.expect(o["y"], unittest.equals('foo')); | 704 unittest.expect(o["y"], unittest.equals('foo')); |
| 705 } | 705 } |
| 706 | 706 |
| 707 core.int buildCounterJobConfiguration = 0; | 707 core.int buildCounterJobConfiguration = 0; |
| 708 buildJobConfiguration() { | 708 buildJobConfiguration() { |
| 709 var o = new api.JobConfiguration(); | 709 var o = new api.JobConfiguration(); |
| 710 buildCounterJobConfiguration++; | 710 buildCounterJobConfiguration++; |
| 711 if (buildCounterJobConfiguration < 3) { | 711 if (buildCounterJobConfiguration < 3) { |
| 712 o.copy = buildJobConfigurationTableCopy(); | 712 o.copy = buildJobConfigurationTableCopy(); |
| 713 o.dryRun = true; | 713 o.dryRun = true; |
| 714 o.extract = buildJobConfigurationExtract(); | 714 o.extract = buildJobConfigurationExtract(); |
| 715 o.labels = buildUnnamed2900(); | 715 o.labels = buildUnnamed3006(); |
| 716 o.load = buildJobConfigurationLoad(); | 716 o.load = buildJobConfigurationLoad(); |
| 717 o.query = buildJobConfigurationQuery(); | 717 o.query = buildJobConfigurationQuery(); |
| 718 } | 718 } |
| 719 buildCounterJobConfiguration--; | 719 buildCounterJobConfiguration--; |
| 720 return o; | 720 return o; |
| 721 } | 721 } |
| 722 | 722 |
| 723 checkJobConfiguration(api.JobConfiguration o) { | 723 checkJobConfiguration(api.JobConfiguration o) { |
| 724 buildCounterJobConfiguration++; | 724 buildCounterJobConfiguration++; |
| 725 if (buildCounterJobConfiguration < 3) { | 725 if (buildCounterJobConfiguration < 3) { |
| 726 checkJobConfigurationTableCopy(o.copy); | 726 checkJobConfigurationTableCopy(o.copy); |
| 727 unittest.expect(o.dryRun, unittest.isTrue); | 727 unittest.expect(o.dryRun, unittest.isTrue); |
| 728 checkJobConfigurationExtract(o.extract); | 728 checkJobConfigurationExtract(o.extract); |
| 729 checkUnnamed2900(o.labels); | 729 checkUnnamed3006(o.labels); |
| 730 checkJobConfigurationLoad(o.load); | 730 checkJobConfigurationLoad(o.load); |
| 731 checkJobConfigurationQuery(o.query); | 731 checkJobConfigurationQuery(o.query); |
| 732 } | 732 } |
| 733 buildCounterJobConfiguration--; | 733 buildCounterJobConfiguration--; |
| 734 } | 734 } |
| 735 | 735 |
| 736 buildUnnamed2901() { | 736 buildUnnamed3007() { |
| 737 var o = new core.List<core.String>(); | 737 var o = new core.List<core.String>(); |
| 738 o.add("foo"); | 738 o.add("foo"); |
| 739 o.add("foo"); | 739 o.add("foo"); |
| 740 return o; | 740 return o; |
| 741 } | 741 } |
| 742 | 742 |
| 743 checkUnnamed2901(core.List<core.String> o) { | 743 checkUnnamed3007(core.List<core.String> o) { |
| 744 unittest.expect(o, unittest.hasLength(2)); | 744 unittest.expect(o, unittest.hasLength(2)); |
| 745 unittest.expect(o[0], unittest.equals('foo')); | 745 unittest.expect(o[0], unittest.equals('foo')); |
| 746 unittest.expect(o[1], unittest.equals('foo')); | 746 unittest.expect(o[1], unittest.equals('foo')); |
| 747 } | 747 } |
| 748 | 748 |
| 749 core.int buildCounterJobConfigurationExtract = 0; | 749 core.int buildCounterJobConfigurationExtract = 0; |
| 750 buildJobConfigurationExtract() { | 750 buildJobConfigurationExtract() { |
| 751 var o = new api.JobConfigurationExtract(); | 751 var o = new api.JobConfigurationExtract(); |
| 752 buildCounterJobConfigurationExtract++; | 752 buildCounterJobConfigurationExtract++; |
| 753 if (buildCounterJobConfigurationExtract < 3) { | 753 if (buildCounterJobConfigurationExtract < 3) { |
| 754 o.compression = "foo"; | 754 o.compression = "foo"; |
| 755 o.destinationFormat = "foo"; | 755 o.destinationFormat = "foo"; |
| 756 o.destinationUri = "foo"; | 756 o.destinationUri = "foo"; |
| 757 o.destinationUris = buildUnnamed2901(); | 757 o.destinationUris = buildUnnamed3007(); |
| 758 o.fieldDelimiter = "foo"; | 758 o.fieldDelimiter = "foo"; |
| 759 o.printHeader = true; | 759 o.printHeader = true; |
| 760 o.sourceTable = buildTableReference(); | 760 o.sourceTable = buildTableReference(); |
| 761 } | 761 } |
| 762 buildCounterJobConfigurationExtract--; | 762 buildCounterJobConfigurationExtract--; |
| 763 return o; | 763 return o; |
| 764 } | 764 } |
| 765 | 765 |
| 766 checkJobConfigurationExtract(api.JobConfigurationExtract o) { | 766 checkJobConfigurationExtract(api.JobConfigurationExtract o) { |
| 767 buildCounterJobConfigurationExtract++; | 767 buildCounterJobConfigurationExtract++; |
| 768 if (buildCounterJobConfigurationExtract < 3) { | 768 if (buildCounterJobConfigurationExtract < 3) { |
| 769 unittest.expect(o.compression, unittest.equals('foo')); | 769 unittest.expect(o.compression, unittest.equals('foo')); |
| 770 unittest.expect(o.destinationFormat, unittest.equals('foo')); | 770 unittest.expect(o.destinationFormat, unittest.equals('foo')); |
| 771 unittest.expect(o.destinationUri, unittest.equals('foo')); | 771 unittest.expect(o.destinationUri, unittest.equals('foo')); |
| 772 checkUnnamed2901(o.destinationUris); | 772 checkUnnamed3007(o.destinationUris); |
| 773 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); | 773 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); |
| 774 unittest.expect(o.printHeader, unittest.isTrue); | 774 unittest.expect(o.printHeader, unittest.isTrue); |
| 775 checkTableReference(o.sourceTable); | 775 checkTableReference(o.sourceTable); |
| 776 } | 776 } |
| 777 buildCounterJobConfigurationExtract--; | 777 buildCounterJobConfigurationExtract--; |
| 778 } | 778 } |
| 779 | 779 |
| 780 buildUnnamed2902() { | 780 buildUnnamed3008() { |
| 781 var o = new core.List<core.String>(); | 781 var o = new core.List<core.String>(); |
| 782 o.add("foo"); | 782 o.add("foo"); |
| 783 o.add("foo"); | 783 o.add("foo"); |
| 784 return o; | 784 return o; |
| 785 } | 785 } |
| 786 | 786 |
| 787 checkUnnamed2902(core.List<core.String> o) { | 787 checkUnnamed3008(core.List<core.String> o) { |
| 788 unittest.expect(o, unittest.hasLength(2)); | 788 unittest.expect(o, unittest.hasLength(2)); |
| 789 unittest.expect(o[0], unittest.equals('foo')); | 789 unittest.expect(o[0], unittest.equals('foo')); |
| 790 unittest.expect(o[1], unittest.equals('foo')); | 790 unittest.expect(o[1], unittest.equals('foo')); |
| 791 } | 791 } |
| 792 | 792 |
| 793 buildUnnamed2903() { | 793 buildUnnamed3009() { |
| 794 var o = new core.List<core.String>(); | 794 var o = new core.List<core.String>(); |
| 795 o.add("foo"); | 795 o.add("foo"); |
| 796 o.add("foo"); | 796 o.add("foo"); |
| 797 return o; | 797 return o; |
| 798 } | 798 } |
| 799 | 799 |
| 800 checkUnnamed2903(core.List<core.String> o) { | 800 checkUnnamed3009(core.List<core.String> o) { |
| 801 unittest.expect(o, unittest.hasLength(2)); | 801 unittest.expect(o, unittest.hasLength(2)); |
| 802 unittest.expect(o[0], unittest.equals('foo')); | 802 unittest.expect(o[0], unittest.equals('foo')); |
| 803 unittest.expect(o[1], unittest.equals('foo')); | 803 unittest.expect(o[1], unittest.equals('foo')); |
| 804 } | 804 } |
| 805 | 805 |
| 806 buildUnnamed2904() { | 806 buildUnnamed3010() { |
| 807 var o = new core.List<core.String>(); | 807 var o = new core.List<core.String>(); |
| 808 o.add("foo"); | 808 o.add("foo"); |
| 809 o.add("foo"); | 809 o.add("foo"); |
| 810 return o; | 810 return o; |
| 811 } | 811 } |
| 812 | 812 |
| 813 checkUnnamed2904(core.List<core.String> o) { | 813 checkUnnamed3010(core.List<core.String> o) { |
| 814 unittest.expect(o, unittest.hasLength(2)); | 814 unittest.expect(o, unittest.hasLength(2)); |
| 815 unittest.expect(o[0], unittest.equals('foo')); | 815 unittest.expect(o[0], unittest.equals('foo')); |
| 816 unittest.expect(o[1], unittest.equals('foo')); | 816 unittest.expect(o[1], unittest.equals('foo')); |
| 817 } | 817 } |
| 818 | 818 |
| 819 core.int buildCounterJobConfigurationLoad = 0; | 819 core.int buildCounterJobConfigurationLoad = 0; |
| 820 buildJobConfigurationLoad() { | 820 buildJobConfigurationLoad() { |
| 821 var o = new api.JobConfigurationLoad(); | 821 var o = new api.JobConfigurationLoad(); |
| 822 buildCounterJobConfigurationLoad++; | 822 buildCounterJobConfigurationLoad++; |
| 823 if (buildCounterJobConfigurationLoad < 3) { | 823 if (buildCounterJobConfigurationLoad < 3) { |
| 824 o.allowJaggedRows = true; | 824 o.allowJaggedRows = true; |
| 825 o.allowQuotedNewlines = true; | 825 o.allowQuotedNewlines = true; |
| 826 o.autodetect = true; | 826 o.autodetect = true; |
| 827 o.createDisposition = "foo"; | 827 o.createDisposition = "foo"; |
| 828 o.destinationTable = buildTableReference(); | 828 o.destinationTable = buildTableReference(); |
| 829 o.encoding = "foo"; | 829 o.encoding = "foo"; |
| 830 o.fieldDelimiter = "foo"; | 830 o.fieldDelimiter = "foo"; |
| 831 o.ignoreUnknownValues = true; | 831 o.ignoreUnknownValues = true; |
| 832 o.maxBadRecords = 42; | 832 o.maxBadRecords = 42; |
| 833 o.nullMarker = "foo"; | 833 o.nullMarker = "foo"; |
| 834 o.projectionFields = buildUnnamed2902(); | 834 o.projectionFields = buildUnnamed3008(); |
| 835 o.quote = "foo"; | 835 o.quote = "foo"; |
| 836 o.schema = buildTableSchema(); | 836 o.schema = buildTableSchema(); |
| 837 o.schemaInline = "foo"; | 837 o.schemaInline = "foo"; |
| 838 o.schemaInlineFormat = "foo"; | 838 o.schemaInlineFormat = "foo"; |
| 839 o.schemaUpdateOptions = buildUnnamed2903(); | 839 o.schemaUpdateOptions = buildUnnamed3009(); |
| 840 o.skipLeadingRows = 42; | 840 o.skipLeadingRows = 42; |
| 841 o.sourceFormat = "foo"; | 841 o.sourceFormat = "foo"; |
| 842 o.sourceUris = buildUnnamed2904(); | 842 o.sourceUris = buildUnnamed3010(); |
| 843 o.writeDisposition = "foo"; | 843 o.writeDisposition = "foo"; |
| 844 } | 844 } |
| 845 buildCounterJobConfigurationLoad--; | 845 buildCounterJobConfigurationLoad--; |
| 846 return o; | 846 return o; |
| 847 } | 847 } |
| 848 | 848 |
| 849 checkJobConfigurationLoad(api.JobConfigurationLoad o) { | 849 checkJobConfigurationLoad(api.JobConfigurationLoad o) { |
| 850 buildCounterJobConfigurationLoad++; | 850 buildCounterJobConfigurationLoad++; |
| 851 if (buildCounterJobConfigurationLoad < 3) { | 851 if (buildCounterJobConfigurationLoad < 3) { |
| 852 unittest.expect(o.allowJaggedRows, unittest.isTrue); | 852 unittest.expect(o.allowJaggedRows, unittest.isTrue); |
| 853 unittest.expect(o.allowQuotedNewlines, unittest.isTrue); | 853 unittest.expect(o.allowQuotedNewlines, unittest.isTrue); |
| 854 unittest.expect(o.autodetect, unittest.isTrue); | 854 unittest.expect(o.autodetect, unittest.isTrue); |
| 855 unittest.expect(o.createDisposition, unittest.equals('foo')); | 855 unittest.expect(o.createDisposition, unittest.equals('foo')); |
| 856 checkTableReference(o.destinationTable); | 856 checkTableReference(o.destinationTable); |
| 857 unittest.expect(o.encoding, unittest.equals('foo')); | 857 unittest.expect(o.encoding, unittest.equals('foo')); |
| 858 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); | 858 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); |
| 859 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); | 859 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); |
| 860 unittest.expect(o.maxBadRecords, unittest.equals(42)); | 860 unittest.expect(o.maxBadRecords, unittest.equals(42)); |
| 861 unittest.expect(o.nullMarker, unittest.equals('foo')); | 861 unittest.expect(o.nullMarker, unittest.equals('foo')); |
| 862 checkUnnamed2902(o.projectionFields); | 862 checkUnnamed3008(o.projectionFields); |
| 863 unittest.expect(o.quote, unittest.equals('foo')); | 863 unittest.expect(o.quote, unittest.equals('foo')); |
| 864 checkTableSchema(o.schema); | 864 checkTableSchema(o.schema); |
| 865 unittest.expect(o.schemaInline, unittest.equals('foo')); | 865 unittest.expect(o.schemaInline, unittest.equals('foo')); |
| 866 unittest.expect(o.schemaInlineFormat, unittest.equals('foo')); | 866 unittest.expect(o.schemaInlineFormat, unittest.equals('foo')); |
| 867 checkUnnamed2903(o.schemaUpdateOptions); | 867 checkUnnamed3009(o.schemaUpdateOptions); |
| 868 unittest.expect(o.skipLeadingRows, unittest.equals(42)); | 868 unittest.expect(o.skipLeadingRows, unittest.equals(42)); |
| 869 unittest.expect(o.sourceFormat, unittest.equals('foo')); | 869 unittest.expect(o.sourceFormat, unittest.equals('foo')); |
| 870 checkUnnamed2904(o.sourceUris); | 870 checkUnnamed3010(o.sourceUris); |
| 871 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 871 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
| 872 } | 872 } |
| 873 buildCounterJobConfigurationLoad--; | 873 buildCounterJobConfigurationLoad--; |
| 874 } | 874 } |
| 875 | 875 |
| 876 buildUnnamed2905() { | 876 buildUnnamed3011() { |
| 877 var o = new core.List<api.QueryParameter>(); | 877 var o = new core.List<api.QueryParameter>(); |
| 878 o.add(buildQueryParameter()); | 878 o.add(buildQueryParameter()); |
| 879 o.add(buildQueryParameter()); | 879 o.add(buildQueryParameter()); |
| 880 return o; | 880 return o; |
| 881 } | 881 } |
| 882 | 882 |
| 883 checkUnnamed2905(core.List<api.QueryParameter> o) { | 883 checkUnnamed3011(core.List<api.QueryParameter> o) { |
| 884 unittest.expect(o, unittest.hasLength(2)); | 884 unittest.expect(o, unittest.hasLength(2)); |
| 885 checkQueryParameter(o[0]); | 885 checkQueryParameter(o[0]); |
| 886 checkQueryParameter(o[1]); | 886 checkQueryParameter(o[1]); |
| 887 } | 887 } |
| 888 | 888 |
| 889 buildUnnamed2906() { | 889 buildUnnamed3012() { |
| 890 var o = new core.List<core.String>(); | 890 var o = new core.List<core.String>(); |
| 891 o.add("foo"); | 891 o.add("foo"); |
| 892 o.add("foo"); | 892 o.add("foo"); |
| 893 return o; | 893 return o; |
| 894 } | 894 } |
| 895 | 895 |
| 896 checkUnnamed2906(core.List<core.String> o) { | 896 checkUnnamed3012(core.List<core.String> o) { |
| 897 unittest.expect(o, unittest.hasLength(2)); | 897 unittest.expect(o, unittest.hasLength(2)); |
| 898 unittest.expect(o[0], unittest.equals('foo')); | 898 unittest.expect(o[0], unittest.equals('foo')); |
| 899 unittest.expect(o[1], unittest.equals('foo')); | 899 unittest.expect(o[1], unittest.equals('foo')); |
| 900 } | 900 } |
| 901 | 901 |
| 902 buildUnnamed2907() { | 902 buildUnnamed3013() { |
| 903 var o = new core.Map<core.String, api.ExternalDataConfiguration>(); | 903 var o = new core.Map<core.String, api.ExternalDataConfiguration>(); |
| 904 o["x"] = buildExternalDataConfiguration(); | 904 o["x"] = buildExternalDataConfiguration(); |
| 905 o["y"] = buildExternalDataConfiguration(); | 905 o["y"] = buildExternalDataConfiguration(); |
| 906 return o; | 906 return o; |
| 907 } | 907 } |
| 908 | 908 |
| 909 checkUnnamed2907(core.Map<core.String, api.ExternalDataConfiguration> o) { | 909 checkUnnamed3013(core.Map<core.String, api.ExternalDataConfiguration> o) { |
| 910 unittest.expect(o, unittest.hasLength(2)); | 910 unittest.expect(o, unittest.hasLength(2)); |
| 911 checkExternalDataConfiguration(o["x"]); | 911 checkExternalDataConfiguration(o["x"]); |
| 912 checkExternalDataConfiguration(o["y"]); | 912 checkExternalDataConfiguration(o["y"]); |
| 913 } | 913 } |
| 914 | 914 |
| 915 buildUnnamed2908() { | 915 buildUnnamed3014() { |
| 916 var o = new core.List<api.UserDefinedFunctionResource>(); | 916 var o = new core.List<api.UserDefinedFunctionResource>(); |
| 917 o.add(buildUserDefinedFunctionResource()); | 917 o.add(buildUserDefinedFunctionResource()); |
| 918 o.add(buildUserDefinedFunctionResource()); | 918 o.add(buildUserDefinedFunctionResource()); |
| 919 return o; | 919 return o; |
| 920 } | 920 } |
| 921 | 921 |
| 922 checkUnnamed2908(core.List<api.UserDefinedFunctionResource> o) { | 922 checkUnnamed3014(core.List<api.UserDefinedFunctionResource> o) { |
| 923 unittest.expect(o, unittest.hasLength(2)); | 923 unittest.expect(o, unittest.hasLength(2)); |
| 924 checkUserDefinedFunctionResource(o[0]); | 924 checkUserDefinedFunctionResource(o[0]); |
| 925 checkUserDefinedFunctionResource(o[1]); | 925 checkUserDefinedFunctionResource(o[1]); |
| 926 } | 926 } |
| 927 | 927 |
| 928 core.int buildCounterJobConfigurationQuery = 0; | 928 core.int buildCounterJobConfigurationQuery = 0; |
| 929 buildJobConfigurationQuery() { | 929 buildJobConfigurationQuery() { |
| 930 var o = new api.JobConfigurationQuery(); | 930 var o = new api.JobConfigurationQuery(); |
| 931 buildCounterJobConfigurationQuery++; | 931 buildCounterJobConfigurationQuery++; |
| 932 if (buildCounterJobConfigurationQuery < 3) { | 932 if (buildCounterJobConfigurationQuery < 3) { |
| 933 o.allowLargeResults = true; | 933 o.allowLargeResults = true; |
| 934 o.createDisposition = "foo"; | 934 o.createDisposition = "foo"; |
| 935 o.defaultDataset = buildDatasetReference(); | 935 o.defaultDataset = buildDatasetReference(); |
| 936 o.destinationTable = buildTableReference(); | 936 o.destinationTable = buildTableReference(); |
| 937 o.flattenResults = true; | 937 o.flattenResults = true; |
| 938 o.maximumBillingTier = 42; | 938 o.maximumBillingTier = 42; |
| 939 o.maximumBytesBilled = "foo"; | 939 o.maximumBytesBilled = "foo"; |
| 940 o.parameterMode = "foo"; | 940 o.parameterMode = "foo"; |
| 941 o.preserveNulls = true; | 941 o.preserveNulls = true; |
| 942 o.priority = "foo"; | 942 o.priority = "foo"; |
| 943 o.query = "foo"; | 943 o.query = "foo"; |
| 944 o.queryParameters = buildUnnamed2905(); | 944 o.queryParameters = buildUnnamed3011(); |
| 945 o.schemaUpdateOptions = buildUnnamed2906(); | 945 o.schemaUpdateOptions = buildUnnamed3012(); |
| 946 o.tableDefinitions = buildUnnamed2907(); | 946 o.tableDefinitions = buildUnnamed3013(); |
| 947 o.useLegacySql = true; | 947 o.useLegacySql = true; |
| 948 o.useQueryCache = true; | 948 o.useQueryCache = true; |
| 949 o.userDefinedFunctionResources = buildUnnamed2908(); | 949 o.userDefinedFunctionResources = buildUnnamed3014(); |
| 950 o.writeDisposition = "foo"; | 950 o.writeDisposition = "foo"; |
| 951 } | 951 } |
| 952 buildCounterJobConfigurationQuery--; | 952 buildCounterJobConfigurationQuery--; |
| 953 return o; | 953 return o; |
| 954 } | 954 } |
| 955 | 955 |
| 956 checkJobConfigurationQuery(api.JobConfigurationQuery o) { | 956 checkJobConfigurationQuery(api.JobConfigurationQuery o) { |
| 957 buildCounterJobConfigurationQuery++; | 957 buildCounterJobConfigurationQuery++; |
| 958 if (buildCounterJobConfigurationQuery < 3) { | 958 if (buildCounterJobConfigurationQuery < 3) { |
| 959 unittest.expect(o.allowLargeResults, unittest.isTrue); | 959 unittest.expect(o.allowLargeResults, unittest.isTrue); |
| 960 unittest.expect(o.createDisposition, unittest.equals('foo')); | 960 unittest.expect(o.createDisposition, unittest.equals('foo')); |
| 961 checkDatasetReference(o.defaultDataset); | 961 checkDatasetReference(o.defaultDataset); |
| 962 checkTableReference(o.destinationTable); | 962 checkTableReference(o.destinationTable); |
| 963 unittest.expect(o.flattenResults, unittest.isTrue); | 963 unittest.expect(o.flattenResults, unittest.isTrue); |
| 964 unittest.expect(o.maximumBillingTier, unittest.equals(42)); | 964 unittest.expect(o.maximumBillingTier, unittest.equals(42)); |
| 965 unittest.expect(o.maximumBytesBilled, unittest.equals('foo')); | 965 unittest.expect(o.maximumBytesBilled, unittest.equals('foo')); |
| 966 unittest.expect(o.parameterMode, unittest.equals('foo')); | 966 unittest.expect(o.parameterMode, unittest.equals('foo')); |
| 967 unittest.expect(o.preserveNulls, unittest.isTrue); | 967 unittest.expect(o.preserveNulls, unittest.isTrue); |
| 968 unittest.expect(o.priority, unittest.equals('foo')); | 968 unittest.expect(o.priority, unittest.equals('foo')); |
| 969 unittest.expect(o.query, unittest.equals('foo')); | 969 unittest.expect(o.query, unittest.equals('foo')); |
| 970 checkUnnamed2905(o.queryParameters); | 970 checkUnnamed3011(o.queryParameters); |
| 971 checkUnnamed2906(o.schemaUpdateOptions); | 971 checkUnnamed3012(o.schemaUpdateOptions); |
| 972 checkUnnamed2907(o.tableDefinitions); | 972 checkUnnamed3013(o.tableDefinitions); |
| 973 unittest.expect(o.useLegacySql, unittest.isTrue); | 973 unittest.expect(o.useLegacySql, unittest.isTrue); |
| 974 unittest.expect(o.useQueryCache, unittest.isTrue); | 974 unittest.expect(o.useQueryCache, unittest.isTrue); |
| 975 checkUnnamed2908(o.userDefinedFunctionResources); | 975 checkUnnamed3014(o.userDefinedFunctionResources); |
| 976 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 976 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
| 977 } | 977 } |
| 978 buildCounterJobConfigurationQuery--; | 978 buildCounterJobConfigurationQuery--; |
| 979 } | 979 } |
| 980 | 980 |
| 981 buildUnnamed2909() { | 981 buildUnnamed3015() { |
| 982 var o = new core.List<api.TableReference>(); | 982 var o = new core.List<api.TableReference>(); |
| 983 o.add(buildTableReference()); | 983 o.add(buildTableReference()); |
| 984 o.add(buildTableReference()); | 984 o.add(buildTableReference()); |
| 985 return o; | 985 return o; |
| 986 } | 986 } |
| 987 | 987 |
| 988 checkUnnamed2909(core.List<api.TableReference> o) { | 988 checkUnnamed3015(core.List<api.TableReference> o) { |
| 989 unittest.expect(o, unittest.hasLength(2)); | 989 unittest.expect(o, unittest.hasLength(2)); |
| 990 checkTableReference(o[0]); | 990 checkTableReference(o[0]); |
| 991 checkTableReference(o[1]); | 991 checkTableReference(o[1]); |
| 992 } | 992 } |
| 993 | 993 |
| 994 core.int buildCounterJobConfigurationTableCopy = 0; | 994 core.int buildCounterJobConfigurationTableCopy = 0; |
| 995 buildJobConfigurationTableCopy() { | 995 buildJobConfigurationTableCopy() { |
| 996 var o = new api.JobConfigurationTableCopy(); | 996 var o = new api.JobConfigurationTableCopy(); |
| 997 buildCounterJobConfigurationTableCopy++; | 997 buildCounterJobConfigurationTableCopy++; |
| 998 if (buildCounterJobConfigurationTableCopy < 3) { | 998 if (buildCounterJobConfigurationTableCopy < 3) { |
| 999 o.createDisposition = "foo"; | 999 o.createDisposition = "foo"; |
| 1000 o.destinationTable = buildTableReference(); | 1000 o.destinationTable = buildTableReference(); |
| 1001 o.sourceTable = buildTableReference(); | 1001 o.sourceTable = buildTableReference(); |
| 1002 o.sourceTables = buildUnnamed2909(); | 1002 o.sourceTables = buildUnnamed3015(); |
| 1003 o.writeDisposition = "foo"; | 1003 o.writeDisposition = "foo"; |
| 1004 } | 1004 } |
| 1005 buildCounterJobConfigurationTableCopy--; | 1005 buildCounterJobConfigurationTableCopy--; |
| 1006 return o; | 1006 return o; |
| 1007 } | 1007 } |
| 1008 | 1008 |
| 1009 checkJobConfigurationTableCopy(api.JobConfigurationTableCopy o) { | 1009 checkJobConfigurationTableCopy(api.JobConfigurationTableCopy o) { |
| 1010 buildCounterJobConfigurationTableCopy++; | 1010 buildCounterJobConfigurationTableCopy++; |
| 1011 if (buildCounterJobConfigurationTableCopy < 3) { | 1011 if (buildCounterJobConfigurationTableCopy < 3) { |
| 1012 unittest.expect(o.createDisposition, unittest.equals('foo')); | 1012 unittest.expect(o.createDisposition, unittest.equals('foo')); |
| 1013 checkTableReference(o.destinationTable); | 1013 checkTableReference(o.destinationTable); |
| 1014 checkTableReference(o.sourceTable); | 1014 checkTableReference(o.sourceTable); |
| 1015 checkUnnamed2909(o.sourceTables); | 1015 checkUnnamed3015(o.sourceTables); |
| 1016 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 1016 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
| 1017 } | 1017 } |
| 1018 buildCounterJobConfigurationTableCopy--; | 1018 buildCounterJobConfigurationTableCopy--; |
| 1019 } | 1019 } |
| 1020 | 1020 |
| 1021 core.int buildCounterJobListJobs = 0; | 1021 core.int buildCounterJobListJobs = 0; |
| 1022 buildJobListJobs() { | 1022 buildJobListJobs() { |
| 1023 var o = new api.JobListJobs(); | 1023 var o = new api.JobListJobs(); |
| 1024 buildCounterJobListJobs++; | 1024 buildCounterJobListJobs++; |
| 1025 if (buildCounterJobListJobs < 3) { | 1025 if (buildCounterJobListJobs < 3) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 1046 checkJobReference(o.jobReference); | 1046 checkJobReference(o.jobReference); |
| 1047 unittest.expect(o.kind, unittest.equals('foo')); | 1047 unittest.expect(o.kind, unittest.equals('foo')); |
| 1048 unittest.expect(o.state, unittest.equals('foo')); | 1048 unittest.expect(o.state, unittest.equals('foo')); |
| 1049 checkJobStatistics(o.statistics); | 1049 checkJobStatistics(o.statistics); |
| 1050 checkJobStatus(o.status); | 1050 checkJobStatus(o.status); |
| 1051 unittest.expect(o.userEmail, unittest.equals('foo')); | 1051 unittest.expect(o.userEmail, unittest.equals('foo')); |
| 1052 } | 1052 } |
| 1053 buildCounterJobListJobs--; | 1053 buildCounterJobListJobs--; |
| 1054 } | 1054 } |
| 1055 | 1055 |
| 1056 buildUnnamed2910() { | 1056 buildUnnamed3016() { |
| 1057 var o = new core.List<api.JobListJobs>(); | 1057 var o = new core.List<api.JobListJobs>(); |
| 1058 o.add(buildJobListJobs()); | 1058 o.add(buildJobListJobs()); |
| 1059 o.add(buildJobListJobs()); | 1059 o.add(buildJobListJobs()); |
| 1060 return o; | 1060 return o; |
| 1061 } | 1061 } |
| 1062 | 1062 |
| 1063 checkUnnamed2910(core.List<api.JobListJobs> o) { | 1063 checkUnnamed3016(core.List<api.JobListJobs> o) { |
| 1064 unittest.expect(o, unittest.hasLength(2)); | 1064 unittest.expect(o, unittest.hasLength(2)); |
| 1065 checkJobListJobs(o[0]); | 1065 checkJobListJobs(o[0]); |
| 1066 checkJobListJobs(o[1]); | 1066 checkJobListJobs(o[1]); |
| 1067 } | 1067 } |
| 1068 | 1068 |
| 1069 core.int buildCounterJobList = 0; | 1069 core.int buildCounterJobList = 0; |
| 1070 buildJobList() { | 1070 buildJobList() { |
| 1071 var o = new api.JobList(); | 1071 var o = new api.JobList(); |
| 1072 buildCounterJobList++; | 1072 buildCounterJobList++; |
| 1073 if (buildCounterJobList < 3) { | 1073 if (buildCounterJobList < 3) { |
| 1074 o.etag = "foo"; | 1074 o.etag = "foo"; |
| 1075 o.jobs = buildUnnamed2910(); | 1075 o.jobs = buildUnnamed3016(); |
| 1076 o.kind = "foo"; | 1076 o.kind = "foo"; |
| 1077 o.nextPageToken = "foo"; | 1077 o.nextPageToken = "foo"; |
| 1078 } | 1078 } |
| 1079 buildCounterJobList--; | 1079 buildCounterJobList--; |
| 1080 return o; | 1080 return o; |
| 1081 } | 1081 } |
| 1082 | 1082 |
| 1083 checkJobList(api.JobList o) { | 1083 checkJobList(api.JobList o) { |
| 1084 buildCounterJobList++; | 1084 buildCounterJobList++; |
| 1085 if (buildCounterJobList < 3) { | 1085 if (buildCounterJobList < 3) { |
| 1086 unittest.expect(o.etag, unittest.equals('foo')); | 1086 unittest.expect(o.etag, unittest.equals('foo')); |
| 1087 checkUnnamed2910(o.jobs); | 1087 checkUnnamed3016(o.jobs); |
| 1088 unittest.expect(o.kind, unittest.equals('foo')); | 1088 unittest.expect(o.kind, unittest.equals('foo')); |
| 1089 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1089 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1090 } | 1090 } |
| 1091 buildCounterJobList--; | 1091 buildCounterJobList--; |
| 1092 } | 1092 } |
| 1093 | 1093 |
| 1094 core.int buildCounterJobReference = 0; | 1094 core.int buildCounterJobReference = 0; |
| 1095 buildJobReference() { | 1095 buildJobReference() { |
| 1096 var o = new api.JobReference(); | 1096 var o = new api.JobReference(); |
| 1097 buildCounterJobReference++; | 1097 buildCounterJobReference++; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1136 unittest.expect(o.endTime, unittest.equals('foo')); | 1136 unittest.expect(o.endTime, unittest.equals('foo')); |
| 1137 checkJobStatistics4(o.extract); | 1137 checkJobStatistics4(o.extract); |
| 1138 checkJobStatistics3(o.load); | 1138 checkJobStatistics3(o.load); |
| 1139 checkJobStatistics2(o.query); | 1139 checkJobStatistics2(o.query); |
| 1140 unittest.expect(o.startTime, unittest.equals('foo')); | 1140 unittest.expect(o.startTime, unittest.equals('foo')); |
| 1141 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); | 1141 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); |
| 1142 } | 1142 } |
| 1143 buildCounterJobStatistics--; | 1143 buildCounterJobStatistics--; |
| 1144 } | 1144 } |
| 1145 | 1145 |
| 1146 buildUnnamed2911() { | 1146 buildUnnamed3017() { |
| 1147 var o = new core.List<api.ExplainQueryStage>(); | 1147 var o = new core.List<api.ExplainQueryStage>(); |
| 1148 o.add(buildExplainQueryStage()); | 1148 o.add(buildExplainQueryStage()); |
| 1149 o.add(buildExplainQueryStage()); | 1149 o.add(buildExplainQueryStage()); |
| 1150 return o; | 1150 return o; |
| 1151 } | 1151 } |
| 1152 | 1152 |
| 1153 checkUnnamed2911(core.List<api.ExplainQueryStage> o) { | 1153 checkUnnamed3017(core.List<api.ExplainQueryStage> o) { |
| 1154 unittest.expect(o, unittest.hasLength(2)); | 1154 unittest.expect(o, unittest.hasLength(2)); |
| 1155 checkExplainQueryStage(o[0]); | 1155 checkExplainQueryStage(o[0]); |
| 1156 checkExplainQueryStage(o[1]); | 1156 checkExplainQueryStage(o[1]); |
| 1157 } | 1157 } |
| 1158 | 1158 |
| 1159 buildUnnamed2912() { | 1159 buildUnnamed3018() { |
| 1160 var o = new core.List<api.TableReference>(); | 1160 var o = new core.List<api.TableReference>(); |
| 1161 o.add(buildTableReference()); | 1161 o.add(buildTableReference()); |
| 1162 o.add(buildTableReference()); | 1162 o.add(buildTableReference()); |
| 1163 return o; | 1163 return o; |
| 1164 } | 1164 } |
| 1165 | 1165 |
| 1166 checkUnnamed2912(core.List<api.TableReference> o) { | 1166 checkUnnamed3018(core.List<api.TableReference> o) { |
| 1167 unittest.expect(o, unittest.hasLength(2)); | 1167 unittest.expect(o, unittest.hasLength(2)); |
| 1168 checkTableReference(o[0]); | 1168 checkTableReference(o[0]); |
| 1169 checkTableReference(o[1]); | 1169 checkTableReference(o[1]); |
| 1170 } | 1170 } |
| 1171 | 1171 |
| 1172 buildUnnamed2913() { | 1172 buildUnnamed3019() { |
| 1173 var o = new core.List<api.QueryParameter>(); | 1173 var o = new core.List<api.QueryParameter>(); |
| 1174 o.add(buildQueryParameter()); | 1174 o.add(buildQueryParameter()); |
| 1175 o.add(buildQueryParameter()); | 1175 o.add(buildQueryParameter()); |
| 1176 return o; | 1176 return o; |
| 1177 } | 1177 } |
| 1178 | 1178 |
| 1179 checkUnnamed2913(core.List<api.QueryParameter> o) { | 1179 checkUnnamed3019(core.List<api.QueryParameter> o) { |
| 1180 unittest.expect(o, unittest.hasLength(2)); | 1180 unittest.expect(o, unittest.hasLength(2)); |
| 1181 checkQueryParameter(o[0]); | 1181 checkQueryParameter(o[0]); |
| 1182 checkQueryParameter(o[1]); | 1182 checkQueryParameter(o[1]); |
| 1183 } | 1183 } |
| 1184 | 1184 |
| 1185 core.int buildCounterJobStatistics2 = 0; | 1185 core.int buildCounterJobStatistics2 = 0; |
| 1186 buildJobStatistics2() { | 1186 buildJobStatistics2() { |
| 1187 var o = new api.JobStatistics2(); | 1187 var o = new api.JobStatistics2(); |
| 1188 buildCounterJobStatistics2++; | 1188 buildCounterJobStatistics2++; |
| 1189 if (buildCounterJobStatistics2 < 3) { | 1189 if (buildCounterJobStatistics2 < 3) { |
| 1190 o.billingTier = 42; | 1190 o.billingTier = 42; |
| 1191 o.cacheHit = true; | 1191 o.cacheHit = true; |
| 1192 o.numDmlAffectedRows = "foo"; | 1192 o.numDmlAffectedRows = "foo"; |
| 1193 o.queryPlan = buildUnnamed2911(); | 1193 o.queryPlan = buildUnnamed3017(); |
| 1194 o.referencedTables = buildUnnamed2912(); | 1194 o.referencedTables = buildUnnamed3018(); |
| 1195 o.schema = buildTableSchema(); | 1195 o.schema = buildTableSchema(); |
| 1196 o.statementType = "foo"; | 1196 o.statementType = "foo"; |
| 1197 o.totalBytesBilled = "foo"; | 1197 o.totalBytesBilled = "foo"; |
| 1198 o.totalBytesProcessed = "foo"; | 1198 o.totalBytesProcessed = "foo"; |
| 1199 o.undeclaredQueryParameters = buildUnnamed2913(); | 1199 o.undeclaredQueryParameters = buildUnnamed3019(); |
| 1200 } | 1200 } |
| 1201 buildCounterJobStatistics2--; | 1201 buildCounterJobStatistics2--; |
| 1202 return o; | 1202 return o; |
| 1203 } | 1203 } |
| 1204 | 1204 |
| 1205 checkJobStatistics2(api.JobStatistics2 o) { | 1205 checkJobStatistics2(api.JobStatistics2 o) { |
| 1206 buildCounterJobStatistics2++; | 1206 buildCounterJobStatistics2++; |
| 1207 if (buildCounterJobStatistics2 < 3) { | 1207 if (buildCounterJobStatistics2 < 3) { |
| 1208 unittest.expect(o.billingTier, unittest.equals(42)); | 1208 unittest.expect(o.billingTier, unittest.equals(42)); |
| 1209 unittest.expect(o.cacheHit, unittest.isTrue); | 1209 unittest.expect(o.cacheHit, unittest.isTrue); |
| 1210 unittest.expect(o.numDmlAffectedRows, unittest.equals('foo')); | 1210 unittest.expect(o.numDmlAffectedRows, unittest.equals('foo')); |
| 1211 checkUnnamed2911(o.queryPlan); | 1211 checkUnnamed3017(o.queryPlan); |
| 1212 checkUnnamed2912(o.referencedTables); | 1212 checkUnnamed3018(o.referencedTables); |
| 1213 checkTableSchema(o.schema); | 1213 checkTableSchema(o.schema); |
| 1214 unittest.expect(o.statementType, unittest.equals('foo')); | 1214 unittest.expect(o.statementType, unittest.equals('foo')); |
| 1215 unittest.expect(o.totalBytesBilled, unittest.equals('foo')); | 1215 unittest.expect(o.totalBytesBilled, unittest.equals('foo')); |
| 1216 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); | 1216 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); |
| 1217 checkUnnamed2913(o.undeclaredQueryParameters); | 1217 checkUnnamed3019(o.undeclaredQueryParameters); |
| 1218 } | 1218 } |
| 1219 buildCounterJobStatistics2--; | 1219 buildCounterJobStatistics2--; |
| 1220 } | 1220 } |
| 1221 | 1221 |
| 1222 core.int buildCounterJobStatistics3 = 0; | 1222 core.int buildCounterJobStatistics3 = 0; |
| 1223 buildJobStatistics3() { | 1223 buildJobStatistics3() { |
| 1224 var o = new api.JobStatistics3(); | 1224 var o = new api.JobStatistics3(); |
| 1225 buildCounterJobStatistics3++; | 1225 buildCounterJobStatistics3++; |
| 1226 if (buildCounterJobStatistics3 < 3) { | 1226 if (buildCounterJobStatistics3 < 3) { |
| 1227 o.inputFileBytes = "foo"; | 1227 o.inputFileBytes = "foo"; |
| 1228 o.inputFiles = "foo"; | 1228 o.inputFiles = "foo"; |
| 1229 o.outputBytes = "foo"; | 1229 o.outputBytes = "foo"; |
| 1230 o.outputRows = "foo"; | 1230 o.outputRows = "foo"; |
| 1231 } | 1231 } |
| 1232 buildCounterJobStatistics3--; | 1232 buildCounterJobStatistics3--; |
| 1233 return o; | 1233 return o; |
| 1234 } | 1234 } |
| 1235 | 1235 |
| 1236 checkJobStatistics3(api.JobStatistics3 o) { | 1236 checkJobStatistics3(api.JobStatistics3 o) { |
| 1237 buildCounterJobStatistics3++; | 1237 buildCounterJobStatistics3++; |
| 1238 if (buildCounterJobStatistics3 < 3) { | 1238 if (buildCounterJobStatistics3 < 3) { |
| 1239 unittest.expect(o.inputFileBytes, unittest.equals('foo')); | 1239 unittest.expect(o.inputFileBytes, unittest.equals('foo')); |
| 1240 unittest.expect(o.inputFiles, unittest.equals('foo')); | 1240 unittest.expect(o.inputFiles, unittest.equals('foo')); |
| 1241 unittest.expect(o.outputBytes, unittest.equals('foo')); | 1241 unittest.expect(o.outputBytes, unittest.equals('foo')); |
| 1242 unittest.expect(o.outputRows, unittest.equals('foo')); | 1242 unittest.expect(o.outputRows, unittest.equals('foo')); |
| 1243 } | 1243 } |
| 1244 buildCounterJobStatistics3--; | 1244 buildCounterJobStatistics3--; |
| 1245 } | 1245 } |
| 1246 | 1246 |
| 1247 buildUnnamed2914() { | 1247 buildUnnamed3020() { |
| 1248 var o = new core.List<core.String>(); | 1248 var o = new core.List<core.String>(); |
| 1249 o.add("foo"); | 1249 o.add("foo"); |
| 1250 o.add("foo"); | 1250 o.add("foo"); |
| 1251 return o; | 1251 return o; |
| 1252 } | 1252 } |
| 1253 | 1253 |
| 1254 checkUnnamed2914(core.List<core.String> o) { | 1254 checkUnnamed3020(core.List<core.String> o) { |
| 1255 unittest.expect(o, unittest.hasLength(2)); | 1255 unittest.expect(o, unittest.hasLength(2)); |
| 1256 unittest.expect(o[0], unittest.equals('foo')); | 1256 unittest.expect(o[0], unittest.equals('foo')); |
| 1257 unittest.expect(o[1], unittest.equals('foo')); | 1257 unittest.expect(o[1], unittest.equals('foo')); |
| 1258 } | 1258 } |
| 1259 | 1259 |
| 1260 core.int buildCounterJobStatistics4 = 0; | 1260 core.int buildCounterJobStatistics4 = 0; |
| 1261 buildJobStatistics4() { | 1261 buildJobStatistics4() { |
| 1262 var o = new api.JobStatistics4(); | 1262 var o = new api.JobStatistics4(); |
| 1263 buildCounterJobStatistics4++; | 1263 buildCounterJobStatistics4++; |
| 1264 if (buildCounterJobStatistics4 < 3) { | 1264 if (buildCounterJobStatistics4 < 3) { |
| 1265 o.destinationUriFileCounts = buildUnnamed2914(); | 1265 o.destinationUriFileCounts = buildUnnamed3020(); |
| 1266 } | 1266 } |
| 1267 buildCounterJobStatistics4--; | 1267 buildCounterJobStatistics4--; |
| 1268 return o; | 1268 return o; |
| 1269 } | 1269 } |
| 1270 | 1270 |
| 1271 checkJobStatistics4(api.JobStatistics4 o) { | 1271 checkJobStatistics4(api.JobStatistics4 o) { |
| 1272 buildCounterJobStatistics4++; | 1272 buildCounterJobStatistics4++; |
| 1273 if (buildCounterJobStatistics4 < 3) { | 1273 if (buildCounterJobStatistics4 < 3) { |
| 1274 checkUnnamed2914(o.destinationUriFileCounts); | 1274 checkUnnamed3020(o.destinationUriFileCounts); |
| 1275 } | 1275 } |
| 1276 buildCounterJobStatistics4--; | 1276 buildCounterJobStatistics4--; |
| 1277 } | 1277 } |
| 1278 | 1278 |
| 1279 buildUnnamed2915() { | 1279 buildUnnamed3021() { |
| 1280 var o = new core.List<api.ErrorProto>(); | 1280 var o = new core.List<api.ErrorProto>(); |
| 1281 o.add(buildErrorProto()); | 1281 o.add(buildErrorProto()); |
| 1282 o.add(buildErrorProto()); | 1282 o.add(buildErrorProto()); |
| 1283 return o; | 1283 return o; |
| 1284 } | 1284 } |
| 1285 | 1285 |
| 1286 checkUnnamed2915(core.List<api.ErrorProto> o) { | 1286 checkUnnamed3021(core.List<api.ErrorProto> o) { |
| 1287 unittest.expect(o, unittest.hasLength(2)); | 1287 unittest.expect(o, unittest.hasLength(2)); |
| 1288 checkErrorProto(o[0]); | 1288 checkErrorProto(o[0]); |
| 1289 checkErrorProto(o[1]); | 1289 checkErrorProto(o[1]); |
| 1290 } | 1290 } |
| 1291 | 1291 |
| 1292 core.int buildCounterJobStatus = 0; | 1292 core.int buildCounterJobStatus = 0; |
| 1293 buildJobStatus() { | 1293 buildJobStatus() { |
| 1294 var o = new api.JobStatus(); | 1294 var o = new api.JobStatus(); |
| 1295 buildCounterJobStatus++; | 1295 buildCounterJobStatus++; |
| 1296 if (buildCounterJobStatus < 3) { | 1296 if (buildCounterJobStatus < 3) { |
| 1297 o.errorResult = buildErrorProto(); | 1297 o.errorResult = buildErrorProto(); |
| 1298 o.errors = buildUnnamed2915(); | 1298 o.errors = buildUnnamed3021(); |
| 1299 o.state = "foo"; | 1299 o.state = "foo"; |
| 1300 } | 1300 } |
| 1301 buildCounterJobStatus--; | 1301 buildCounterJobStatus--; |
| 1302 return o; | 1302 return o; |
| 1303 } | 1303 } |
| 1304 | 1304 |
| 1305 checkJobStatus(api.JobStatus o) { | 1305 checkJobStatus(api.JobStatus o) { |
| 1306 buildCounterJobStatus++; | 1306 buildCounterJobStatus++; |
| 1307 if (buildCounterJobStatus < 3) { | 1307 if (buildCounterJobStatus < 3) { |
| 1308 checkErrorProto(o.errorResult); | 1308 checkErrorProto(o.errorResult); |
| 1309 checkUnnamed2915(o.errors); | 1309 checkUnnamed3021(o.errors); |
| 1310 unittest.expect(o.state, unittest.equals('foo')); | 1310 unittest.expect(o.state, unittest.equals('foo')); |
| 1311 } | 1311 } |
| 1312 buildCounterJobStatus--; | 1312 buildCounterJobStatus--; |
| 1313 } | 1313 } |
| 1314 | 1314 |
| 1315 buildJsonObject() { | 1315 buildJsonObject() { |
| 1316 var o = new api.JsonObject(); | 1316 var o = new api.JsonObject(); |
| 1317 o["a"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1317 o["a"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1318 o["b"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1318 o["b"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1319 return o; | 1319 return o; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1345 if (buildCounterProjectListProjects < 3) { | 1345 if (buildCounterProjectListProjects < 3) { |
| 1346 unittest.expect(o.friendlyName, unittest.equals('foo')); | 1346 unittest.expect(o.friendlyName, unittest.equals('foo')); |
| 1347 unittest.expect(o.id, unittest.equals('foo')); | 1347 unittest.expect(o.id, unittest.equals('foo')); |
| 1348 unittest.expect(o.kind, unittest.equals('foo')); | 1348 unittest.expect(o.kind, unittest.equals('foo')); |
| 1349 unittest.expect(o.numericId, unittest.equals('foo')); | 1349 unittest.expect(o.numericId, unittest.equals('foo')); |
| 1350 checkProjectReference(o.projectReference); | 1350 checkProjectReference(o.projectReference); |
| 1351 } | 1351 } |
| 1352 buildCounterProjectListProjects--; | 1352 buildCounterProjectListProjects--; |
| 1353 } | 1353 } |
| 1354 | 1354 |
| 1355 buildUnnamed2916() { | 1355 buildUnnamed3022() { |
| 1356 var o = new core.List<api.ProjectListProjects>(); | 1356 var o = new core.List<api.ProjectListProjects>(); |
| 1357 o.add(buildProjectListProjects()); | 1357 o.add(buildProjectListProjects()); |
| 1358 o.add(buildProjectListProjects()); | 1358 o.add(buildProjectListProjects()); |
| 1359 return o; | 1359 return o; |
| 1360 } | 1360 } |
| 1361 | 1361 |
| 1362 checkUnnamed2916(core.List<api.ProjectListProjects> o) { | 1362 checkUnnamed3022(core.List<api.ProjectListProjects> o) { |
| 1363 unittest.expect(o, unittest.hasLength(2)); | 1363 unittest.expect(o, unittest.hasLength(2)); |
| 1364 checkProjectListProjects(o[0]); | 1364 checkProjectListProjects(o[0]); |
| 1365 checkProjectListProjects(o[1]); | 1365 checkProjectListProjects(o[1]); |
| 1366 } | 1366 } |
| 1367 | 1367 |
| 1368 core.int buildCounterProjectList = 0; | 1368 core.int buildCounterProjectList = 0; |
| 1369 buildProjectList() { | 1369 buildProjectList() { |
| 1370 var o = new api.ProjectList(); | 1370 var o = new api.ProjectList(); |
| 1371 buildCounterProjectList++; | 1371 buildCounterProjectList++; |
| 1372 if (buildCounterProjectList < 3) { | 1372 if (buildCounterProjectList < 3) { |
| 1373 o.etag = "foo"; | 1373 o.etag = "foo"; |
| 1374 o.kind = "foo"; | 1374 o.kind = "foo"; |
| 1375 o.nextPageToken = "foo"; | 1375 o.nextPageToken = "foo"; |
| 1376 o.projects = buildUnnamed2916(); | 1376 o.projects = buildUnnamed3022(); |
| 1377 o.totalItems = 42; | 1377 o.totalItems = 42; |
| 1378 } | 1378 } |
| 1379 buildCounterProjectList--; | 1379 buildCounterProjectList--; |
| 1380 return o; | 1380 return o; |
| 1381 } | 1381 } |
| 1382 | 1382 |
| 1383 checkProjectList(api.ProjectList o) { | 1383 checkProjectList(api.ProjectList o) { |
| 1384 buildCounterProjectList++; | 1384 buildCounterProjectList++; |
| 1385 if (buildCounterProjectList < 3) { | 1385 if (buildCounterProjectList < 3) { |
| 1386 unittest.expect(o.etag, unittest.equals('foo')); | 1386 unittest.expect(o.etag, unittest.equals('foo')); |
| 1387 unittest.expect(o.kind, unittest.equals('foo')); | 1387 unittest.expect(o.kind, unittest.equals('foo')); |
| 1388 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1388 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1389 checkUnnamed2916(o.projects); | 1389 checkUnnamed3022(o.projects); |
| 1390 unittest.expect(o.totalItems, unittest.equals(42)); | 1390 unittest.expect(o.totalItems, unittest.equals(42)); |
| 1391 } | 1391 } |
| 1392 buildCounterProjectList--; | 1392 buildCounterProjectList--; |
| 1393 } | 1393 } |
| 1394 | 1394 |
| 1395 core.int buildCounterProjectReference = 0; | 1395 core.int buildCounterProjectReference = 0; |
| 1396 buildProjectReference() { | 1396 buildProjectReference() { |
| 1397 var o = new api.ProjectReference(); | 1397 var o = new api.ProjectReference(); |
| 1398 buildCounterProjectReference++; | 1398 buildCounterProjectReference++; |
| 1399 if (buildCounterProjectReference < 3) { | 1399 if (buildCounterProjectReference < 3) { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1450 checkQueryParameterTypeStructTypes(api.QueryParameterTypeStructTypes o) { | 1450 checkQueryParameterTypeStructTypes(api.QueryParameterTypeStructTypes o) { |
| 1451 buildCounterQueryParameterTypeStructTypes++; | 1451 buildCounterQueryParameterTypeStructTypes++; |
| 1452 if (buildCounterQueryParameterTypeStructTypes < 3) { | 1452 if (buildCounterQueryParameterTypeStructTypes < 3) { |
| 1453 unittest.expect(o.description, unittest.equals('foo')); | 1453 unittest.expect(o.description, unittest.equals('foo')); |
| 1454 unittest.expect(o.name, unittest.equals('foo')); | 1454 unittest.expect(o.name, unittest.equals('foo')); |
| 1455 checkQueryParameterType(o.type); | 1455 checkQueryParameterType(o.type); |
| 1456 } | 1456 } |
| 1457 buildCounterQueryParameterTypeStructTypes--; | 1457 buildCounterQueryParameterTypeStructTypes--; |
| 1458 } | 1458 } |
| 1459 | 1459 |
| 1460 buildUnnamed2917() { | 1460 buildUnnamed3023() { |
| 1461 var o = new core.List<api.QueryParameterTypeStructTypes>(); | 1461 var o = new core.List<api.QueryParameterTypeStructTypes>(); |
| 1462 o.add(buildQueryParameterTypeStructTypes()); | 1462 o.add(buildQueryParameterTypeStructTypes()); |
| 1463 o.add(buildQueryParameterTypeStructTypes()); | 1463 o.add(buildQueryParameterTypeStructTypes()); |
| 1464 return o; | 1464 return o; |
| 1465 } | 1465 } |
| 1466 | 1466 |
| 1467 checkUnnamed2917(core.List<api.QueryParameterTypeStructTypes> o) { | 1467 checkUnnamed3023(core.List<api.QueryParameterTypeStructTypes> o) { |
| 1468 unittest.expect(o, unittest.hasLength(2)); | 1468 unittest.expect(o, unittest.hasLength(2)); |
| 1469 checkQueryParameterTypeStructTypes(o[0]); | 1469 checkQueryParameterTypeStructTypes(o[0]); |
| 1470 checkQueryParameterTypeStructTypes(o[1]); | 1470 checkQueryParameterTypeStructTypes(o[1]); |
| 1471 } | 1471 } |
| 1472 | 1472 |
| 1473 core.int buildCounterQueryParameterType = 0; | 1473 core.int buildCounterQueryParameterType = 0; |
| 1474 buildQueryParameterType() { | 1474 buildQueryParameterType() { |
| 1475 var o = new api.QueryParameterType(); | 1475 var o = new api.QueryParameterType(); |
| 1476 buildCounterQueryParameterType++; | 1476 buildCounterQueryParameterType++; |
| 1477 if (buildCounterQueryParameterType < 3) { | 1477 if (buildCounterQueryParameterType < 3) { |
| 1478 o.arrayType = buildQueryParameterType(); | 1478 o.arrayType = buildQueryParameterType(); |
| 1479 o.structTypes = buildUnnamed2917(); | 1479 o.structTypes = buildUnnamed3023(); |
| 1480 o.type = "foo"; | 1480 o.type = "foo"; |
| 1481 } | 1481 } |
| 1482 buildCounterQueryParameterType--; | 1482 buildCounterQueryParameterType--; |
| 1483 return o; | 1483 return o; |
| 1484 } | 1484 } |
| 1485 | 1485 |
| 1486 checkQueryParameterType(api.QueryParameterType o) { | 1486 checkQueryParameterType(api.QueryParameterType o) { |
| 1487 buildCounterQueryParameterType++; | 1487 buildCounterQueryParameterType++; |
| 1488 if (buildCounterQueryParameterType < 3) { | 1488 if (buildCounterQueryParameterType < 3) { |
| 1489 checkQueryParameterType(o.arrayType); | 1489 checkQueryParameterType(o.arrayType); |
| 1490 checkUnnamed2917(o.structTypes); | 1490 checkUnnamed3023(o.structTypes); |
| 1491 unittest.expect(o.type, unittest.equals('foo')); | 1491 unittest.expect(o.type, unittest.equals('foo')); |
| 1492 } | 1492 } |
| 1493 buildCounterQueryParameterType--; | 1493 buildCounterQueryParameterType--; |
| 1494 } | 1494 } |
| 1495 | 1495 |
| 1496 buildUnnamed2918() { | 1496 buildUnnamed3024() { |
| 1497 var o = new core.List<api.QueryParameterValue>(); | 1497 var o = new core.List<api.QueryParameterValue>(); |
| 1498 o.add(buildQueryParameterValue()); | 1498 o.add(buildQueryParameterValue()); |
| 1499 o.add(buildQueryParameterValue()); | 1499 o.add(buildQueryParameterValue()); |
| 1500 return o; | 1500 return o; |
| 1501 } | 1501 } |
| 1502 | 1502 |
| 1503 checkUnnamed2918(core.List<api.QueryParameterValue> o) { | 1503 checkUnnamed3024(core.List<api.QueryParameterValue> o) { |
| 1504 unittest.expect(o, unittest.hasLength(2)); | 1504 unittest.expect(o, unittest.hasLength(2)); |
| 1505 checkQueryParameterValue(o[0]); | 1505 checkQueryParameterValue(o[0]); |
| 1506 checkQueryParameterValue(o[1]); | 1506 checkQueryParameterValue(o[1]); |
| 1507 } | 1507 } |
| 1508 | 1508 |
| 1509 buildUnnamed2919() { | 1509 buildUnnamed3025() { |
| 1510 var o = new core.Map<core.String, api.QueryParameterValue>(); | 1510 var o = new core.Map<core.String, api.QueryParameterValue>(); |
| 1511 o["x"] = buildQueryParameterValue(); | 1511 o["x"] = buildQueryParameterValue(); |
| 1512 o["y"] = buildQueryParameterValue(); | 1512 o["y"] = buildQueryParameterValue(); |
| 1513 return o; | 1513 return o; |
| 1514 } | 1514 } |
| 1515 | 1515 |
| 1516 checkUnnamed2919(core.Map<core.String, api.QueryParameterValue> o) { | 1516 checkUnnamed3025(core.Map<core.String, api.QueryParameterValue> o) { |
| 1517 unittest.expect(o, unittest.hasLength(2)); | 1517 unittest.expect(o, unittest.hasLength(2)); |
| 1518 checkQueryParameterValue(o["x"]); | 1518 checkQueryParameterValue(o["x"]); |
| 1519 checkQueryParameterValue(o["y"]); | 1519 checkQueryParameterValue(o["y"]); |
| 1520 } | 1520 } |
| 1521 | 1521 |
| 1522 core.int buildCounterQueryParameterValue = 0; | 1522 core.int buildCounterQueryParameterValue = 0; |
| 1523 buildQueryParameterValue() { | 1523 buildQueryParameterValue() { |
| 1524 var o = new api.QueryParameterValue(); | 1524 var o = new api.QueryParameterValue(); |
| 1525 buildCounterQueryParameterValue++; | 1525 buildCounterQueryParameterValue++; |
| 1526 if (buildCounterQueryParameterValue < 3) { | 1526 if (buildCounterQueryParameterValue < 3) { |
| 1527 o.arrayValues = buildUnnamed2918(); | 1527 o.arrayValues = buildUnnamed3024(); |
| 1528 o.structValues = buildUnnamed2919(); | 1528 o.structValues = buildUnnamed3025(); |
| 1529 o.value = "foo"; | 1529 o.value = "foo"; |
| 1530 } | 1530 } |
| 1531 buildCounterQueryParameterValue--; | 1531 buildCounterQueryParameterValue--; |
| 1532 return o; | 1532 return o; |
| 1533 } | 1533 } |
| 1534 | 1534 |
| 1535 checkQueryParameterValue(api.QueryParameterValue o) { | 1535 checkQueryParameterValue(api.QueryParameterValue o) { |
| 1536 buildCounterQueryParameterValue++; | 1536 buildCounterQueryParameterValue++; |
| 1537 if (buildCounterQueryParameterValue < 3) { | 1537 if (buildCounterQueryParameterValue < 3) { |
| 1538 checkUnnamed2918(o.arrayValues); | 1538 checkUnnamed3024(o.arrayValues); |
| 1539 checkUnnamed2919(o.structValues); | 1539 checkUnnamed3025(o.structValues); |
| 1540 unittest.expect(o.value, unittest.equals('foo')); | 1540 unittest.expect(o.value, unittest.equals('foo')); |
| 1541 } | 1541 } |
| 1542 buildCounterQueryParameterValue--; | 1542 buildCounterQueryParameterValue--; |
| 1543 } | 1543 } |
| 1544 | 1544 |
| 1545 buildUnnamed2920() { | 1545 buildUnnamed3026() { |
| 1546 var o = new core.List<api.QueryParameter>(); | 1546 var o = new core.List<api.QueryParameter>(); |
| 1547 o.add(buildQueryParameter()); | 1547 o.add(buildQueryParameter()); |
| 1548 o.add(buildQueryParameter()); | 1548 o.add(buildQueryParameter()); |
| 1549 return o; | 1549 return o; |
| 1550 } | 1550 } |
| 1551 | 1551 |
| 1552 checkUnnamed2920(core.List<api.QueryParameter> o) { | 1552 checkUnnamed3026(core.List<api.QueryParameter> o) { |
| 1553 unittest.expect(o, unittest.hasLength(2)); | 1553 unittest.expect(o, unittest.hasLength(2)); |
| 1554 checkQueryParameter(o[0]); | 1554 checkQueryParameter(o[0]); |
| 1555 checkQueryParameter(o[1]); | 1555 checkQueryParameter(o[1]); |
| 1556 } | 1556 } |
| 1557 | 1557 |
| 1558 core.int buildCounterQueryRequest = 0; | 1558 core.int buildCounterQueryRequest = 0; |
| 1559 buildQueryRequest() { | 1559 buildQueryRequest() { |
| 1560 var o = new api.QueryRequest(); | 1560 var o = new api.QueryRequest(); |
| 1561 buildCounterQueryRequest++; | 1561 buildCounterQueryRequest++; |
| 1562 if (buildCounterQueryRequest < 3) { | 1562 if (buildCounterQueryRequest < 3) { |
| 1563 o.defaultDataset = buildDatasetReference(); | 1563 o.defaultDataset = buildDatasetReference(); |
| 1564 o.dryRun = true; | 1564 o.dryRun = true; |
| 1565 o.kind = "foo"; | 1565 o.kind = "foo"; |
| 1566 o.maxResults = 42; | 1566 o.maxResults = 42; |
| 1567 o.parameterMode = "foo"; | 1567 o.parameterMode = "foo"; |
| 1568 o.preserveNulls = true; | 1568 o.preserveNulls = true; |
| 1569 o.query = "foo"; | 1569 o.query = "foo"; |
| 1570 o.queryParameters = buildUnnamed2920(); | 1570 o.queryParameters = buildUnnamed3026(); |
| 1571 o.timeoutMs = 42; | 1571 o.timeoutMs = 42; |
| 1572 o.useLegacySql = true; | 1572 o.useLegacySql = true; |
| 1573 o.useQueryCache = true; | 1573 o.useQueryCache = true; |
| 1574 } | 1574 } |
| 1575 buildCounterQueryRequest--; | 1575 buildCounterQueryRequest--; |
| 1576 return o; | 1576 return o; |
| 1577 } | 1577 } |
| 1578 | 1578 |
| 1579 checkQueryRequest(api.QueryRequest o) { | 1579 checkQueryRequest(api.QueryRequest o) { |
| 1580 buildCounterQueryRequest++; | 1580 buildCounterQueryRequest++; |
| 1581 if (buildCounterQueryRequest < 3) { | 1581 if (buildCounterQueryRequest < 3) { |
| 1582 checkDatasetReference(o.defaultDataset); | 1582 checkDatasetReference(o.defaultDataset); |
| 1583 unittest.expect(o.dryRun, unittest.isTrue); | 1583 unittest.expect(o.dryRun, unittest.isTrue); |
| 1584 unittest.expect(o.kind, unittest.equals('foo')); | 1584 unittest.expect(o.kind, unittest.equals('foo')); |
| 1585 unittest.expect(o.maxResults, unittest.equals(42)); | 1585 unittest.expect(o.maxResults, unittest.equals(42)); |
| 1586 unittest.expect(o.parameterMode, unittest.equals('foo')); | 1586 unittest.expect(o.parameterMode, unittest.equals('foo')); |
| 1587 unittest.expect(o.preserveNulls, unittest.isTrue); | 1587 unittest.expect(o.preserveNulls, unittest.isTrue); |
| 1588 unittest.expect(o.query, unittest.equals('foo')); | 1588 unittest.expect(o.query, unittest.equals('foo')); |
| 1589 checkUnnamed2920(o.queryParameters); | 1589 checkUnnamed3026(o.queryParameters); |
| 1590 unittest.expect(o.timeoutMs, unittest.equals(42)); | 1590 unittest.expect(o.timeoutMs, unittest.equals(42)); |
| 1591 unittest.expect(o.useLegacySql, unittest.isTrue); | 1591 unittest.expect(o.useLegacySql, unittest.isTrue); |
| 1592 unittest.expect(o.useQueryCache, unittest.isTrue); | 1592 unittest.expect(o.useQueryCache, unittest.isTrue); |
| 1593 } | 1593 } |
| 1594 buildCounterQueryRequest--; | 1594 buildCounterQueryRequest--; |
| 1595 } | 1595 } |
| 1596 | 1596 |
| 1597 buildUnnamed2921() { | 1597 buildUnnamed3027() { |
| 1598 var o = new core.List<api.ErrorProto>(); | 1598 var o = new core.List<api.ErrorProto>(); |
| 1599 o.add(buildErrorProto()); | 1599 o.add(buildErrorProto()); |
| 1600 o.add(buildErrorProto()); | 1600 o.add(buildErrorProto()); |
| 1601 return o; | 1601 return o; |
| 1602 } | 1602 } |
| 1603 | 1603 |
| 1604 checkUnnamed2921(core.List<api.ErrorProto> o) { | 1604 checkUnnamed3027(core.List<api.ErrorProto> o) { |
| 1605 unittest.expect(o, unittest.hasLength(2)); | 1605 unittest.expect(o, unittest.hasLength(2)); |
| 1606 checkErrorProto(o[0]); | 1606 checkErrorProto(o[0]); |
| 1607 checkErrorProto(o[1]); | 1607 checkErrorProto(o[1]); |
| 1608 } | 1608 } |
| 1609 | 1609 |
| 1610 buildUnnamed2922() { | 1610 buildUnnamed3028() { |
| 1611 var o = new core.List<api.TableRow>(); | 1611 var o = new core.List<api.TableRow>(); |
| 1612 o.add(buildTableRow()); | 1612 o.add(buildTableRow()); |
| 1613 o.add(buildTableRow()); | 1613 o.add(buildTableRow()); |
| 1614 return o; | 1614 return o; |
| 1615 } | 1615 } |
| 1616 | 1616 |
| 1617 checkUnnamed2922(core.List<api.TableRow> o) { | 1617 checkUnnamed3028(core.List<api.TableRow> o) { |
| 1618 unittest.expect(o, unittest.hasLength(2)); | 1618 unittest.expect(o, unittest.hasLength(2)); |
| 1619 checkTableRow(o[0]); | 1619 checkTableRow(o[0]); |
| 1620 checkTableRow(o[1]); | 1620 checkTableRow(o[1]); |
| 1621 } | 1621 } |
| 1622 | 1622 |
| 1623 core.int buildCounterQueryResponse = 0; | 1623 core.int buildCounterQueryResponse = 0; |
| 1624 buildQueryResponse() { | 1624 buildQueryResponse() { |
| 1625 var o = new api.QueryResponse(); | 1625 var o = new api.QueryResponse(); |
| 1626 buildCounterQueryResponse++; | 1626 buildCounterQueryResponse++; |
| 1627 if (buildCounterQueryResponse < 3) { | 1627 if (buildCounterQueryResponse < 3) { |
| 1628 o.cacheHit = true; | 1628 o.cacheHit = true; |
| 1629 o.errors = buildUnnamed2921(); | 1629 o.errors = buildUnnamed3027(); |
| 1630 o.jobComplete = true; | 1630 o.jobComplete = true; |
| 1631 o.jobReference = buildJobReference(); | 1631 o.jobReference = buildJobReference(); |
| 1632 o.kind = "foo"; | 1632 o.kind = "foo"; |
| 1633 o.numDmlAffectedRows = "foo"; | 1633 o.numDmlAffectedRows = "foo"; |
| 1634 o.pageToken = "foo"; | 1634 o.pageToken = "foo"; |
| 1635 o.rows = buildUnnamed2922(); | 1635 o.rows = buildUnnamed3028(); |
| 1636 o.schema = buildTableSchema(); | 1636 o.schema = buildTableSchema(); |
| 1637 o.totalBytesProcessed = "foo"; | 1637 o.totalBytesProcessed = "foo"; |
| 1638 o.totalRows = "foo"; | 1638 o.totalRows = "foo"; |
| 1639 } | 1639 } |
| 1640 buildCounterQueryResponse--; | 1640 buildCounterQueryResponse--; |
| 1641 return o; | 1641 return o; |
| 1642 } | 1642 } |
| 1643 | 1643 |
| 1644 checkQueryResponse(api.QueryResponse o) { | 1644 checkQueryResponse(api.QueryResponse o) { |
| 1645 buildCounterQueryResponse++; | 1645 buildCounterQueryResponse++; |
| 1646 if (buildCounterQueryResponse < 3) { | 1646 if (buildCounterQueryResponse < 3) { |
| 1647 unittest.expect(o.cacheHit, unittest.isTrue); | 1647 unittest.expect(o.cacheHit, unittest.isTrue); |
| 1648 checkUnnamed2921(o.errors); | 1648 checkUnnamed3027(o.errors); |
| 1649 unittest.expect(o.jobComplete, unittest.isTrue); | 1649 unittest.expect(o.jobComplete, unittest.isTrue); |
| 1650 checkJobReference(o.jobReference); | 1650 checkJobReference(o.jobReference); |
| 1651 unittest.expect(o.kind, unittest.equals('foo')); | 1651 unittest.expect(o.kind, unittest.equals('foo')); |
| 1652 unittest.expect(o.numDmlAffectedRows, unittest.equals('foo')); | 1652 unittest.expect(o.numDmlAffectedRows, unittest.equals('foo')); |
| 1653 unittest.expect(o.pageToken, unittest.equals('foo')); | 1653 unittest.expect(o.pageToken, unittest.equals('foo')); |
| 1654 checkUnnamed2922(o.rows); | 1654 checkUnnamed3028(o.rows); |
| 1655 checkTableSchema(o.schema); | 1655 checkTableSchema(o.schema); |
| 1656 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); | 1656 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); |
| 1657 unittest.expect(o.totalRows, unittest.equals('foo')); | 1657 unittest.expect(o.totalRows, unittest.equals('foo')); |
| 1658 } | 1658 } |
| 1659 buildCounterQueryResponse--; | 1659 buildCounterQueryResponse--; |
| 1660 } | 1660 } |
| 1661 | 1661 |
| 1662 core.int buildCounterStreamingbuffer = 0; | 1662 core.int buildCounterStreamingbuffer = 0; |
| 1663 buildStreamingbuffer() { | 1663 buildStreamingbuffer() { |
| 1664 var o = new api.Streamingbuffer(); | 1664 var o = new api.Streamingbuffer(); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1675 checkStreamingbuffer(api.Streamingbuffer o) { | 1675 checkStreamingbuffer(api.Streamingbuffer o) { |
| 1676 buildCounterStreamingbuffer++; | 1676 buildCounterStreamingbuffer++; |
| 1677 if (buildCounterStreamingbuffer < 3) { | 1677 if (buildCounterStreamingbuffer < 3) { |
| 1678 unittest.expect(o.estimatedBytes, unittest.equals('foo')); | 1678 unittest.expect(o.estimatedBytes, unittest.equals('foo')); |
| 1679 unittest.expect(o.estimatedRows, unittest.equals('foo')); | 1679 unittest.expect(o.estimatedRows, unittest.equals('foo')); |
| 1680 unittest.expect(o.oldestEntryTime, unittest.equals('foo')); | 1680 unittest.expect(o.oldestEntryTime, unittest.equals('foo')); |
| 1681 } | 1681 } |
| 1682 buildCounterStreamingbuffer--; | 1682 buildCounterStreamingbuffer--; |
| 1683 } | 1683 } |
| 1684 | 1684 |
| 1685 buildUnnamed2923() { | 1685 buildUnnamed3029() { |
| 1686 var o = new core.Map<core.String, core.String>(); | 1686 var o = new core.Map<core.String, core.String>(); |
| 1687 o["x"] = "foo"; | 1687 o["x"] = "foo"; |
| 1688 o["y"] = "foo"; | 1688 o["y"] = "foo"; |
| 1689 return o; | 1689 return o; |
| 1690 } | 1690 } |
| 1691 | 1691 |
| 1692 checkUnnamed2923(core.Map<core.String, core.String> o) { | 1692 checkUnnamed3029(core.Map<core.String, core.String> o) { |
| 1693 unittest.expect(o, unittest.hasLength(2)); | 1693 unittest.expect(o, unittest.hasLength(2)); |
| 1694 unittest.expect(o["x"], unittest.equals('foo')); | 1694 unittest.expect(o["x"], unittest.equals('foo')); |
| 1695 unittest.expect(o["y"], unittest.equals('foo')); | 1695 unittest.expect(o["y"], unittest.equals('foo')); |
| 1696 } | 1696 } |
| 1697 | 1697 |
| 1698 core.int buildCounterTable = 0; | 1698 core.int buildCounterTable = 0; |
| 1699 buildTable() { | 1699 buildTable() { |
| 1700 var o = new api.Table(); | 1700 var o = new api.Table(); |
| 1701 buildCounterTable++; | 1701 buildCounterTable++; |
| 1702 if (buildCounterTable < 3) { | 1702 if (buildCounterTable < 3) { |
| 1703 o.creationTime = "foo"; | 1703 o.creationTime = "foo"; |
| 1704 o.description = "foo"; | 1704 o.description = "foo"; |
| 1705 o.etag = "foo"; | 1705 o.etag = "foo"; |
| 1706 o.expirationTime = "foo"; | 1706 o.expirationTime = "foo"; |
| 1707 o.externalDataConfiguration = buildExternalDataConfiguration(); | 1707 o.externalDataConfiguration = buildExternalDataConfiguration(); |
| 1708 o.friendlyName = "foo"; | 1708 o.friendlyName = "foo"; |
| 1709 o.id = "foo"; | 1709 o.id = "foo"; |
| 1710 o.kind = "foo"; | 1710 o.kind = "foo"; |
| 1711 o.labels = buildUnnamed2923(); | 1711 o.labels = buildUnnamed3029(); |
| 1712 o.lastModifiedTime = "foo"; | 1712 o.lastModifiedTime = "foo"; |
| 1713 o.location = "foo"; | 1713 o.location = "foo"; |
| 1714 o.numBytes = "foo"; | 1714 o.numBytes = "foo"; |
| 1715 o.numLongTermBytes = "foo"; | 1715 o.numLongTermBytes = "foo"; |
| 1716 o.numRows = "foo"; | 1716 o.numRows = "foo"; |
| 1717 o.schema = buildTableSchema(); | 1717 o.schema = buildTableSchema(); |
| 1718 o.selfLink = "foo"; | 1718 o.selfLink = "foo"; |
| 1719 o.streamingBuffer = buildStreamingbuffer(); | 1719 o.streamingBuffer = buildStreamingbuffer(); |
| 1720 o.tableReference = buildTableReference(); | 1720 o.tableReference = buildTableReference(); |
| 1721 o.timePartitioning = buildTimePartitioning(); | 1721 o.timePartitioning = buildTimePartitioning(); |
| 1722 o.type = "foo"; | 1722 o.type = "foo"; |
| 1723 o.view = buildViewDefinition(); | 1723 o.view = buildViewDefinition(); |
| 1724 } | 1724 } |
| 1725 buildCounterTable--; | 1725 buildCounterTable--; |
| 1726 return o; | 1726 return o; |
| 1727 } | 1727 } |
| 1728 | 1728 |
| 1729 checkTable(api.Table o) { | 1729 checkTable(api.Table o) { |
| 1730 buildCounterTable++; | 1730 buildCounterTable++; |
| 1731 if (buildCounterTable < 3) { | 1731 if (buildCounterTable < 3) { |
| 1732 unittest.expect(o.creationTime, unittest.equals('foo')); | 1732 unittest.expect(o.creationTime, unittest.equals('foo')); |
| 1733 unittest.expect(o.description, unittest.equals('foo')); | 1733 unittest.expect(o.description, unittest.equals('foo')); |
| 1734 unittest.expect(o.etag, unittest.equals('foo')); | 1734 unittest.expect(o.etag, unittest.equals('foo')); |
| 1735 unittest.expect(o.expirationTime, unittest.equals('foo')); | 1735 unittest.expect(o.expirationTime, unittest.equals('foo')); |
| 1736 checkExternalDataConfiguration(o.externalDataConfiguration); | 1736 checkExternalDataConfiguration(o.externalDataConfiguration); |
| 1737 unittest.expect(o.friendlyName, unittest.equals('foo')); | 1737 unittest.expect(o.friendlyName, unittest.equals('foo')); |
| 1738 unittest.expect(o.id, unittest.equals('foo')); | 1738 unittest.expect(o.id, unittest.equals('foo')); |
| 1739 unittest.expect(o.kind, unittest.equals('foo')); | 1739 unittest.expect(o.kind, unittest.equals('foo')); |
| 1740 checkUnnamed2923(o.labels); | 1740 checkUnnamed3029(o.labels); |
| 1741 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); | 1741 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); |
| 1742 unittest.expect(o.location, unittest.equals('foo')); | 1742 unittest.expect(o.location, unittest.equals('foo')); |
| 1743 unittest.expect(o.numBytes, unittest.equals('foo')); | 1743 unittest.expect(o.numBytes, unittest.equals('foo')); |
| 1744 unittest.expect(o.numLongTermBytes, unittest.equals('foo')); | 1744 unittest.expect(o.numLongTermBytes, unittest.equals('foo')); |
| 1745 unittest.expect(o.numRows, unittest.equals('foo')); | 1745 unittest.expect(o.numRows, unittest.equals('foo')); |
| 1746 checkTableSchema(o.schema); | 1746 checkTableSchema(o.schema); |
| 1747 unittest.expect(o.selfLink, unittest.equals('foo')); | 1747 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1748 checkStreamingbuffer(o.streamingBuffer); | 1748 checkStreamingbuffer(o.streamingBuffer); |
| 1749 checkTableReference(o.tableReference); | 1749 checkTableReference(o.tableReference); |
| 1750 checkTimePartitioning(o.timePartitioning); | 1750 checkTimePartitioning(o.timePartitioning); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1787 | 1787 |
| 1788 checkTableDataInsertAllRequestRows(api.TableDataInsertAllRequestRows o) { | 1788 checkTableDataInsertAllRequestRows(api.TableDataInsertAllRequestRows o) { |
| 1789 buildCounterTableDataInsertAllRequestRows++; | 1789 buildCounterTableDataInsertAllRequestRows++; |
| 1790 if (buildCounterTableDataInsertAllRequestRows < 3) { | 1790 if (buildCounterTableDataInsertAllRequestRows < 3) { |
| 1791 unittest.expect(o.insertId, unittest.equals('foo')); | 1791 unittest.expect(o.insertId, unittest.equals('foo')); |
| 1792 checkJsonObject(o.json); | 1792 checkJsonObject(o.json); |
| 1793 } | 1793 } |
| 1794 buildCounterTableDataInsertAllRequestRows--; | 1794 buildCounterTableDataInsertAllRequestRows--; |
| 1795 } | 1795 } |
| 1796 | 1796 |
| 1797 buildUnnamed2924() { | 1797 buildUnnamed3030() { |
| 1798 var o = new core.List<api.TableDataInsertAllRequestRows>(); | 1798 var o = new core.List<api.TableDataInsertAllRequestRows>(); |
| 1799 o.add(buildTableDataInsertAllRequestRows()); | 1799 o.add(buildTableDataInsertAllRequestRows()); |
| 1800 o.add(buildTableDataInsertAllRequestRows()); | 1800 o.add(buildTableDataInsertAllRequestRows()); |
| 1801 return o; | 1801 return o; |
| 1802 } | 1802 } |
| 1803 | 1803 |
| 1804 checkUnnamed2924(core.List<api.TableDataInsertAllRequestRows> o) { | 1804 checkUnnamed3030(core.List<api.TableDataInsertAllRequestRows> o) { |
| 1805 unittest.expect(o, unittest.hasLength(2)); | 1805 unittest.expect(o, unittest.hasLength(2)); |
| 1806 checkTableDataInsertAllRequestRows(o[0]); | 1806 checkTableDataInsertAllRequestRows(o[0]); |
| 1807 checkTableDataInsertAllRequestRows(o[1]); | 1807 checkTableDataInsertAllRequestRows(o[1]); |
| 1808 } | 1808 } |
| 1809 | 1809 |
| 1810 core.int buildCounterTableDataInsertAllRequest = 0; | 1810 core.int buildCounterTableDataInsertAllRequest = 0; |
| 1811 buildTableDataInsertAllRequest() { | 1811 buildTableDataInsertAllRequest() { |
| 1812 var o = new api.TableDataInsertAllRequest(); | 1812 var o = new api.TableDataInsertAllRequest(); |
| 1813 buildCounterTableDataInsertAllRequest++; | 1813 buildCounterTableDataInsertAllRequest++; |
| 1814 if (buildCounterTableDataInsertAllRequest < 3) { | 1814 if (buildCounterTableDataInsertAllRequest < 3) { |
| 1815 o.ignoreUnknownValues = true; | 1815 o.ignoreUnknownValues = true; |
| 1816 o.kind = "foo"; | 1816 o.kind = "foo"; |
| 1817 o.rows = buildUnnamed2924(); | 1817 o.rows = buildUnnamed3030(); |
| 1818 o.skipInvalidRows = true; | 1818 o.skipInvalidRows = true; |
| 1819 o.templateSuffix = "foo"; | 1819 o.templateSuffix = "foo"; |
| 1820 } | 1820 } |
| 1821 buildCounterTableDataInsertAllRequest--; | 1821 buildCounterTableDataInsertAllRequest--; |
| 1822 return o; | 1822 return o; |
| 1823 } | 1823 } |
| 1824 | 1824 |
| 1825 checkTableDataInsertAllRequest(api.TableDataInsertAllRequest o) { | 1825 checkTableDataInsertAllRequest(api.TableDataInsertAllRequest o) { |
| 1826 buildCounterTableDataInsertAllRequest++; | 1826 buildCounterTableDataInsertAllRequest++; |
| 1827 if (buildCounterTableDataInsertAllRequest < 3) { | 1827 if (buildCounterTableDataInsertAllRequest < 3) { |
| 1828 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); | 1828 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); |
| 1829 unittest.expect(o.kind, unittest.equals('foo')); | 1829 unittest.expect(o.kind, unittest.equals('foo')); |
| 1830 checkUnnamed2924(o.rows); | 1830 checkUnnamed3030(o.rows); |
| 1831 unittest.expect(o.skipInvalidRows, unittest.isTrue); | 1831 unittest.expect(o.skipInvalidRows, unittest.isTrue); |
| 1832 unittest.expect(o.templateSuffix, unittest.equals('foo')); | 1832 unittest.expect(o.templateSuffix, unittest.equals('foo')); |
| 1833 } | 1833 } |
| 1834 buildCounterTableDataInsertAllRequest--; | 1834 buildCounterTableDataInsertAllRequest--; |
| 1835 } | 1835 } |
| 1836 | 1836 |
| 1837 buildUnnamed2925() { | 1837 buildUnnamed3031() { |
| 1838 var o = new core.List<api.ErrorProto>(); | 1838 var o = new core.List<api.ErrorProto>(); |
| 1839 o.add(buildErrorProto()); | 1839 o.add(buildErrorProto()); |
| 1840 o.add(buildErrorProto()); | 1840 o.add(buildErrorProto()); |
| 1841 return o; | 1841 return o; |
| 1842 } | 1842 } |
| 1843 | 1843 |
| 1844 checkUnnamed2925(core.List<api.ErrorProto> o) { | 1844 checkUnnamed3031(core.List<api.ErrorProto> o) { |
| 1845 unittest.expect(o, unittest.hasLength(2)); | 1845 unittest.expect(o, unittest.hasLength(2)); |
| 1846 checkErrorProto(o[0]); | 1846 checkErrorProto(o[0]); |
| 1847 checkErrorProto(o[1]); | 1847 checkErrorProto(o[1]); |
| 1848 } | 1848 } |
| 1849 | 1849 |
| 1850 core.int buildCounterTableDataInsertAllResponseInsertErrors = 0; | 1850 core.int buildCounterTableDataInsertAllResponseInsertErrors = 0; |
| 1851 buildTableDataInsertAllResponseInsertErrors() { | 1851 buildTableDataInsertAllResponseInsertErrors() { |
| 1852 var o = new api.TableDataInsertAllResponseInsertErrors(); | 1852 var o = new api.TableDataInsertAllResponseInsertErrors(); |
| 1853 buildCounterTableDataInsertAllResponseInsertErrors++; | 1853 buildCounterTableDataInsertAllResponseInsertErrors++; |
| 1854 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { | 1854 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { |
| 1855 o.errors = buildUnnamed2925(); | 1855 o.errors = buildUnnamed3031(); |
| 1856 o.index = 42; | 1856 o.index = 42; |
| 1857 } | 1857 } |
| 1858 buildCounterTableDataInsertAllResponseInsertErrors--; | 1858 buildCounterTableDataInsertAllResponseInsertErrors--; |
| 1859 return o; | 1859 return o; |
| 1860 } | 1860 } |
| 1861 | 1861 |
| 1862 checkTableDataInsertAllResponseInsertErrors(api.TableDataInsertAllResponseInsert
Errors o) { | 1862 checkTableDataInsertAllResponseInsertErrors(api.TableDataInsertAllResponseInsert
Errors o) { |
| 1863 buildCounterTableDataInsertAllResponseInsertErrors++; | 1863 buildCounterTableDataInsertAllResponseInsertErrors++; |
| 1864 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { | 1864 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { |
| 1865 checkUnnamed2925(o.errors); | 1865 checkUnnamed3031(o.errors); |
| 1866 unittest.expect(o.index, unittest.equals(42)); | 1866 unittest.expect(o.index, unittest.equals(42)); |
| 1867 } | 1867 } |
| 1868 buildCounterTableDataInsertAllResponseInsertErrors--; | 1868 buildCounterTableDataInsertAllResponseInsertErrors--; |
| 1869 } | 1869 } |
| 1870 | 1870 |
| 1871 buildUnnamed2926() { | 1871 buildUnnamed3032() { |
| 1872 var o = new core.List<api.TableDataInsertAllResponseInsertErrors>(); | 1872 var o = new core.List<api.TableDataInsertAllResponseInsertErrors>(); |
| 1873 o.add(buildTableDataInsertAllResponseInsertErrors()); | 1873 o.add(buildTableDataInsertAllResponseInsertErrors()); |
| 1874 o.add(buildTableDataInsertAllResponseInsertErrors()); | 1874 o.add(buildTableDataInsertAllResponseInsertErrors()); |
| 1875 return o; | 1875 return o; |
| 1876 } | 1876 } |
| 1877 | 1877 |
| 1878 checkUnnamed2926(core.List<api.TableDataInsertAllResponseInsertErrors> o) { | 1878 checkUnnamed3032(core.List<api.TableDataInsertAllResponseInsertErrors> o) { |
| 1879 unittest.expect(o, unittest.hasLength(2)); | 1879 unittest.expect(o, unittest.hasLength(2)); |
| 1880 checkTableDataInsertAllResponseInsertErrors(o[0]); | 1880 checkTableDataInsertAllResponseInsertErrors(o[0]); |
| 1881 checkTableDataInsertAllResponseInsertErrors(o[1]); | 1881 checkTableDataInsertAllResponseInsertErrors(o[1]); |
| 1882 } | 1882 } |
| 1883 | 1883 |
| 1884 core.int buildCounterTableDataInsertAllResponse = 0; | 1884 core.int buildCounterTableDataInsertAllResponse = 0; |
| 1885 buildTableDataInsertAllResponse() { | 1885 buildTableDataInsertAllResponse() { |
| 1886 var o = new api.TableDataInsertAllResponse(); | 1886 var o = new api.TableDataInsertAllResponse(); |
| 1887 buildCounterTableDataInsertAllResponse++; | 1887 buildCounterTableDataInsertAllResponse++; |
| 1888 if (buildCounterTableDataInsertAllResponse < 3) { | 1888 if (buildCounterTableDataInsertAllResponse < 3) { |
| 1889 o.insertErrors = buildUnnamed2926(); | 1889 o.insertErrors = buildUnnamed3032(); |
| 1890 o.kind = "foo"; | 1890 o.kind = "foo"; |
| 1891 } | 1891 } |
| 1892 buildCounterTableDataInsertAllResponse--; | 1892 buildCounterTableDataInsertAllResponse--; |
| 1893 return o; | 1893 return o; |
| 1894 } | 1894 } |
| 1895 | 1895 |
| 1896 checkTableDataInsertAllResponse(api.TableDataInsertAllResponse o) { | 1896 checkTableDataInsertAllResponse(api.TableDataInsertAllResponse o) { |
| 1897 buildCounterTableDataInsertAllResponse++; | 1897 buildCounterTableDataInsertAllResponse++; |
| 1898 if (buildCounterTableDataInsertAllResponse < 3) { | 1898 if (buildCounterTableDataInsertAllResponse < 3) { |
| 1899 checkUnnamed2926(o.insertErrors); | 1899 checkUnnamed3032(o.insertErrors); |
| 1900 unittest.expect(o.kind, unittest.equals('foo')); | 1900 unittest.expect(o.kind, unittest.equals('foo')); |
| 1901 } | 1901 } |
| 1902 buildCounterTableDataInsertAllResponse--; | 1902 buildCounterTableDataInsertAllResponse--; |
| 1903 } | 1903 } |
| 1904 | 1904 |
| 1905 buildUnnamed2927() { | 1905 buildUnnamed3033() { |
| 1906 var o = new core.List<api.TableRow>(); | 1906 var o = new core.List<api.TableRow>(); |
| 1907 o.add(buildTableRow()); | 1907 o.add(buildTableRow()); |
| 1908 o.add(buildTableRow()); | 1908 o.add(buildTableRow()); |
| 1909 return o; | 1909 return o; |
| 1910 } | 1910 } |
| 1911 | 1911 |
| 1912 checkUnnamed2927(core.List<api.TableRow> o) { | 1912 checkUnnamed3033(core.List<api.TableRow> o) { |
| 1913 unittest.expect(o, unittest.hasLength(2)); | 1913 unittest.expect(o, unittest.hasLength(2)); |
| 1914 checkTableRow(o[0]); | 1914 checkTableRow(o[0]); |
| 1915 checkTableRow(o[1]); | 1915 checkTableRow(o[1]); |
| 1916 } | 1916 } |
| 1917 | 1917 |
| 1918 core.int buildCounterTableDataList = 0; | 1918 core.int buildCounterTableDataList = 0; |
| 1919 buildTableDataList() { | 1919 buildTableDataList() { |
| 1920 var o = new api.TableDataList(); | 1920 var o = new api.TableDataList(); |
| 1921 buildCounterTableDataList++; | 1921 buildCounterTableDataList++; |
| 1922 if (buildCounterTableDataList < 3) { | 1922 if (buildCounterTableDataList < 3) { |
| 1923 o.etag = "foo"; | 1923 o.etag = "foo"; |
| 1924 o.kind = "foo"; | 1924 o.kind = "foo"; |
| 1925 o.pageToken = "foo"; | 1925 o.pageToken = "foo"; |
| 1926 o.rows = buildUnnamed2927(); | 1926 o.rows = buildUnnamed3033(); |
| 1927 o.totalRows = "foo"; | 1927 o.totalRows = "foo"; |
| 1928 } | 1928 } |
| 1929 buildCounterTableDataList--; | 1929 buildCounterTableDataList--; |
| 1930 return o; | 1930 return o; |
| 1931 } | 1931 } |
| 1932 | 1932 |
| 1933 checkTableDataList(api.TableDataList o) { | 1933 checkTableDataList(api.TableDataList o) { |
| 1934 buildCounterTableDataList++; | 1934 buildCounterTableDataList++; |
| 1935 if (buildCounterTableDataList < 3) { | 1935 if (buildCounterTableDataList < 3) { |
| 1936 unittest.expect(o.etag, unittest.equals('foo')); | 1936 unittest.expect(o.etag, unittest.equals('foo')); |
| 1937 unittest.expect(o.kind, unittest.equals('foo')); | 1937 unittest.expect(o.kind, unittest.equals('foo')); |
| 1938 unittest.expect(o.pageToken, unittest.equals('foo')); | 1938 unittest.expect(o.pageToken, unittest.equals('foo')); |
| 1939 checkUnnamed2927(o.rows); | 1939 checkUnnamed3033(o.rows); |
| 1940 unittest.expect(o.totalRows, unittest.equals('foo')); | 1940 unittest.expect(o.totalRows, unittest.equals('foo')); |
| 1941 } | 1941 } |
| 1942 buildCounterTableDataList--; | 1942 buildCounterTableDataList--; |
| 1943 } | 1943 } |
| 1944 | 1944 |
| 1945 buildUnnamed2928() { | 1945 buildUnnamed3034() { |
| 1946 var o = new core.List<api.TableFieldSchema>(); | 1946 var o = new core.List<api.TableFieldSchema>(); |
| 1947 o.add(buildTableFieldSchema()); | 1947 o.add(buildTableFieldSchema()); |
| 1948 o.add(buildTableFieldSchema()); | 1948 o.add(buildTableFieldSchema()); |
| 1949 return o; | 1949 return o; |
| 1950 } | 1950 } |
| 1951 | 1951 |
| 1952 checkUnnamed2928(core.List<api.TableFieldSchema> o) { | 1952 checkUnnamed3034(core.List<api.TableFieldSchema> o) { |
| 1953 unittest.expect(o, unittest.hasLength(2)); | 1953 unittest.expect(o, unittest.hasLength(2)); |
| 1954 checkTableFieldSchema(o[0]); | 1954 checkTableFieldSchema(o[0]); |
| 1955 checkTableFieldSchema(o[1]); | 1955 checkTableFieldSchema(o[1]); |
| 1956 } | 1956 } |
| 1957 | 1957 |
| 1958 core.int buildCounterTableFieldSchema = 0; | 1958 core.int buildCounterTableFieldSchema = 0; |
| 1959 buildTableFieldSchema() { | 1959 buildTableFieldSchema() { |
| 1960 var o = new api.TableFieldSchema(); | 1960 var o = new api.TableFieldSchema(); |
| 1961 buildCounterTableFieldSchema++; | 1961 buildCounterTableFieldSchema++; |
| 1962 if (buildCounterTableFieldSchema < 3) { | 1962 if (buildCounterTableFieldSchema < 3) { |
| 1963 o.description = "foo"; | 1963 o.description = "foo"; |
| 1964 o.fields = buildUnnamed2928(); | 1964 o.fields = buildUnnamed3034(); |
| 1965 o.mode = "foo"; | 1965 o.mode = "foo"; |
| 1966 o.name = "foo"; | 1966 o.name = "foo"; |
| 1967 o.type = "foo"; | 1967 o.type = "foo"; |
| 1968 } | 1968 } |
| 1969 buildCounterTableFieldSchema--; | 1969 buildCounterTableFieldSchema--; |
| 1970 return o; | 1970 return o; |
| 1971 } | 1971 } |
| 1972 | 1972 |
| 1973 checkTableFieldSchema(api.TableFieldSchema o) { | 1973 checkTableFieldSchema(api.TableFieldSchema o) { |
| 1974 buildCounterTableFieldSchema++; | 1974 buildCounterTableFieldSchema++; |
| 1975 if (buildCounterTableFieldSchema < 3) { | 1975 if (buildCounterTableFieldSchema < 3) { |
| 1976 unittest.expect(o.description, unittest.equals('foo')); | 1976 unittest.expect(o.description, unittest.equals('foo')); |
| 1977 checkUnnamed2928(o.fields); | 1977 checkUnnamed3034(o.fields); |
| 1978 unittest.expect(o.mode, unittest.equals('foo')); | 1978 unittest.expect(o.mode, unittest.equals('foo')); |
| 1979 unittest.expect(o.name, unittest.equals('foo')); | 1979 unittest.expect(o.name, unittest.equals('foo')); |
| 1980 unittest.expect(o.type, unittest.equals('foo')); | 1980 unittest.expect(o.type, unittest.equals('foo')); |
| 1981 } | 1981 } |
| 1982 buildCounterTableFieldSchema--; | 1982 buildCounterTableFieldSchema--; |
| 1983 } | 1983 } |
| 1984 | 1984 |
| 1985 buildUnnamed2929() { | 1985 buildUnnamed3035() { |
| 1986 var o = new core.Map<core.String, core.String>(); | 1986 var o = new core.Map<core.String, core.String>(); |
| 1987 o["x"] = "foo"; | 1987 o["x"] = "foo"; |
| 1988 o["y"] = "foo"; | 1988 o["y"] = "foo"; |
| 1989 return o; | 1989 return o; |
| 1990 } | 1990 } |
| 1991 | 1991 |
| 1992 checkUnnamed2929(core.Map<core.String, core.String> o) { | 1992 checkUnnamed3035(core.Map<core.String, core.String> o) { |
| 1993 unittest.expect(o, unittest.hasLength(2)); | 1993 unittest.expect(o, unittest.hasLength(2)); |
| 1994 unittest.expect(o["x"], unittest.equals('foo')); | 1994 unittest.expect(o["x"], unittest.equals('foo')); |
| 1995 unittest.expect(o["y"], unittest.equals('foo')); | 1995 unittest.expect(o["y"], unittest.equals('foo')); |
| 1996 } | 1996 } |
| 1997 | 1997 |
| 1998 core.int buildCounterTableListTablesView = 0; | 1998 core.int buildCounterTableListTablesView = 0; |
| 1999 buildTableListTablesView() { | 1999 buildTableListTablesView() { |
| 2000 var o = new api.TableListTablesView(); | 2000 var o = new api.TableListTablesView(); |
| 2001 buildCounterTableListTablesView++; | 2001 buildCounterTableListTablesView++; |
| 2002 if (buildCounterTableListTablesView < 3) { | 2002 if (buildCounterTableListTablesView < 3) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 2015 } | 2015 } |
| 2016 | 2016 |
| 2017 core.int buildCounterTableListTables = 0; | 2017 core.int buildCounterTableListTables = 0; |
| 2018 buildTableListTables() { | 2018 buildTableListTables() { |
| 2019 var o = new api.TableListTables(); | 2019 var o = new api.TableListTables(); |
| 2020 buildCounterTableListTables++; | 2020 buildCounterTableListTables++; |
| 2021 if (buildCounterTableListTables < 3) { | 2021 if (buildCounterTableListTables < 3) { |
| 2022 o.friendlyName = "foo"; | 2022 o.friendlyName = "foo"; |
| 2023 o.id = "foo"; | 2023 o.id = "foo"; |
| 2024 o.kind = "foo"; | 2024 o.kind = "foo"; |
| 2025 o.labels = buildUnnamed2929(); | 2025 o.labels = buildUnnamed3035(); |
| 2026 o.tableReference = buildTableReference(); | 2026 o.tableReference = buildTableReference(); |
| 2027 o.type = "foo"; | 2027 o.type = "foo"; |
| 2028 o.view = buildTableListTablesView(); | 2028 o.view = buildTableListTablesView(); |
| 2029 } | 2029 } |
| 2030 buildCounterTableListTables--; | 2030 buildCounterTableListTables--; |
| 2031 return o; | 2031 return o; |
| 2032 } | 2032 } |
| 2033 | 2033 |
| 2034 checkTableListTables(api.TableListTables o) { | 2034 checkTableListTables(api.TableListTables o) { |
| 2035 buildCounterTableListTables++; | 2035 buildCounterTableListTables++; |
| 2036 if (buildCounterTableListTables < 3) { | 2036 if (buildCounterTableListTables < 3) { |
| 2037 unittest.expect(o.friendlyName, unittest.equals('foo')); | 2037 unittest.expect(o.friendlyName, unittest.equals('foo')); |
| 2038 unittest.expect(o.id, unittest.equals('foo')); | 2038 unittest.expect(o.id, unittest.equals('foo')); |
| 2039 unittest.expect(o.kind, unittest.equals('foo')); | 2039 unittest.expect(o.kind, unittest.equals('foo')); |
| 2040 checkUnnamed2929(o.labels); | 2040 checkUnnamed3035(o.labels); |
| 2041 checkTableReference(o.tableReference); | 2041 checkTableReference(o.tableReference); |
| 2042 unittest.expect(o.type, unittest.equals('foo')); | 2042 unittest.expect(o.type, unittest.equals('foo')); |
| 2043 checkTableListTablesView(o.view); | 2043 checkTableListTablesView(o.view); |
| 2044 } | 2044 } |
| 2045 buildCounterTableListTables--; | 2045 buildCounterTableListTables--; |
| 2046 } | 2046 } |
| 2047 | 2047 |
| 2048 buildUnnamed2930() { | 2048 buildUnnamed3036() { |
| 2049 var o = new core.List<api.TableListTables>(); | 2049 var o = new core.List<api.TableListTables>(); |
| 2050 o.add(buildTableListTables()); | 2050 o.add(buildTableListTables()); |
| 2051 o.add(buildTableListTables()); | 2051 o.add(buildTableListTables()); |
| 2052 return o; | 2052 return o; |
| 2053 } | 2053 } |
| 2054 | 2054 |
| 2055 checkUnnamed2930(core.List<api.TableListTables> o) { | 2055 checkUnnamed3036(core.List<api.TableListTables> o) { |
| 2056 unittest.expect(o, unittest.hasLength(2)); | 2056 unittest.expect(o, unittest.hasLength(2)); |
| 2057 checkTableListTables(o[0]); | 2057 checkTableListTables(o[0]); |
| 2058 checkTableListTables(o[1]); | 2058 checkTableListTables(o[1]); |
| 2059 } | 2059 } |
| 2060 | 2060 |
| 2061 core.int buildCounterTableList = 0; | 2061 core.int buildCounterTableList = 0; |
| 2062 buildTableList() { | 2062 buildTableList() { |
| 2063 var o = new api.TableList(); | 2063 var o = new api.TableList(); |
| 2064 buildCounterTableList++; | 2064 buildCounterTableList++; |
| 2065 if (buildCounterTableList < 3) { | 2065 if (buildCounterTableList < 3) { |
| 2066 o.etag = "foo"; | 2066 o.etag = "foo"; |
| 2067 o.kind = "foo"; | 2067 o.kind = "foo"; |
| 2068 o.nextPageToken = "foo"; | 2068 o.nextPageToken = "foo"; |
| 2069 o.tables = buildUnnamed2930(); | 2069 o.tables = buildUnnamed3036(); |
| 2070 o.totalItems = 42; | 2070 o.totalItems = 42; |
| 2071 } | 2071 } |
| 2072 buildCounterTableList--; | 2072 buildCounterTableList--; |
| 2073 return o; | 2073 return o; |
| 2074 } | 2074 } |
| 2075 | 2075 |
| 2076 checkTableList(api.TableList o) { | 2076 checkTableList(api.TableList o) { |
| 2077 buildCounterTableList++; | 2077 buildCounterTableList++; |
| 2078 if (buildCounterTableList < 3) { | 2078 if (buildCounterTableList < 3) { |
| 2079 unittest.expect(o.etag, unittest.equals('foo')); | 2079 unittest.expect(o.etag, unittest.equals('foo')); |
| 2080 unittest.expect(o.kind, unittest.equals('foo')); | 2080 unittest.expect(o.kind, unittest.equals('foo')); |
| 2081 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2081 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2082 checkUnnamed2930(o.tables); | 2082 checkUnnamed3036(o.tables); |
| 2083 unittest.expect(o.totalItems, unittest.equals(42)); | 2083 unittest.expect(o.totalItems, unittest.equals(42)); |
| 2084 } | 2084 } |
| 2085 buildCounterTableList--; | 2085 buildCounterTableList--; |
| 2086 } | 2086 } |
| 2087 | 2087 |
| 2088 core.int buildCounterTableReference = 0; | 2088 core.int buildCounterTableReference = 0; |
| 2089 buildTableReference() { | 2089 buildTableReference() { |
| 2090 var o = new api.TableReference(); | 2090 var o = new api.TableReference(); |
| 2091 buildCounterTableReference++; | 2091 buildCounterTableReference++; |
| 2092 if (buildCounterTableReference < 3) { | 2092 if (buildCounterTableReference < 3) { |
| 2093 o.datasetId = "foo"; | 2093 o.datasetId = "foo"; |
| 2094 o.projectId = "foo"; | 2094 o.projectId = "foo"; |
| 2095 o.tableId = "foo"; | 2095 o.tableId = "foo"; |
| 2096 } | 2096 } |
| 2097 buildCounterTableReference--; | 2097 buildCounterTableReference--; |
| 2098 return o; | 2098 return o; |
| 2099 } | 2099 } |
| 2100 | 2100 |
| 2101 checkTableReference(api.TableReference o) { | 2101 checkTableReference(api.TableReference o) { |
| 2102 buildCounterTableReference++; | 2102 buildCounterTableReference++; |
| 2103 if (buildCounterTableReference < 3) { | 2103 if (buildCounterTableReference < 3) { |
| 2104 unittest.expect(o.datasetId, unittest.equals('foo')); | 2104 unittest.expect(o.datasetId, unittest.equals('foo')); |
| 2105 unittest.expect(o.projectId, unittest.equals('foo')); | 2105 unittest.expect(o.projectId, unittest.equals('foo')); |
| 2106 unittest.expect(o.tableId, unittest.equals('foo')); | 2106 unittest.expect(o.tableId, unittest.equals('foo')); |
| 2107 } | 2107 } |
| 2108 buildCounterTableReference--; | 2108 buildCounterTableReference--; |
| 2109 } | 2109 } |
| 2110 | 2110 |
| 2111 buildUnnamed2931() { | 2111 buildUnnamed3037() { |
| 2112 var o = new core.List<api.TableCell>(); | 2112 var o = new core.List<api.TableCell>(); |
| 2113 o.add(buildTableCell()); | 2113 o.add(buildTableCell()); |
| 2114 o.add(buildTableCell()); | 2114 o.add(buildTableCell()); |
| 2115 return o; | 2115 return o; |
| 2116 } | 2116 } |
| 2117 | 2117 |
| 2118 checkUnnamed2931(core.List<api.TableCell> o) { | 2118 checkUnnamed3037(core.List<api.TableCell> o) { |
| 2119 unittest.expect(o, unittest.hasLength(2)); | 2119 unittest.expect(o, unittest.hasLength(2)); |
| 2120 checkTableCell(o[0]); | 2120 checkTableCell(o[0]); |
| 2121 checkTableCell(o[1]); | 2121 checkTableCell(o[1]); |
| 2122 } | 2122 } |
| 2123 | 2123 |
| 2124 core.int buildCounterTableRow = 0; | 2124 core.int buildCounterTableRow = 0; |
| 2125 buildTableRow() { | 2125 buildTableRow() { |
| 2126 var o = new api.TableRow(); | 2126 var o = new api.TableRow(); |
| 2127 buildCounterTableRow++; | 2127 buildCounterTableRow++; |
| 2128 if (buildCounterTableRow < 3) { | 2128 if (buildCounterTableRow < 3) { |
| 2129 o.f = buildUnnamed2931(); | 2129 o.f = buildUnnamed3037(); |
| 2130 } | 2130 } |
| 2131 buildCounterTableRow--; | 2131 buildCounterTableRow--; |
| 2132 return o; | 2132 return o; |
| 2133 } | 2133 } |
| 2134 | 2134 |
| 2135 checkTableRow(api.TableRow o) { | 2135 checkTableRow(api.TableRow o) { |
| 2136 buildCounterTableRow++; | 2136 buildCounterTableRow++; |
| 2137 if (buildCounterTableRow < 3) { | 2137 if (buildCounterTableRow < 3) { |
| 2138 checkUnnamed2931(o.f); | 2138 checkUnnamed3037(o.f); |
| 2139 } | 2139 } |
| 2140 buildCounterTableRow--; | 2140 buildCounterTableRow--; |
| 2141 } | 2141 } |
| 2142 | 2142 |
| 2143 buildUnnamed2932() { | 2143 buildUnnamed3038() { |
| 2144 var o = new core.List<api.TableFieldSchema>(); | 2144 var o = new core.List<api.TableFieldSchema>(); |
| 2145 o.add(buildTableFieldSchema()); | 2145 o.add(buildTableFieldSchema()); |
| 2146 o.add(buildTableFieldSchema()); | 2146 o.add(buildTableFieldSchema()); |
| 2147 return o; | 2147 return o; |
| 2148 } | 2148 } |
| 2149 | 2149 |
| 2150 checkUnnamed2932(core.List<api.TableFieldSchema> o) { | 2150 checkUnnamed3038(core.List<api.TableFieldSchema> o) { |
| 2151 unittest.expect(o, unittest.hasLength(2)); | 2151 unittest.expect(o, unittest.hasLength(2)); |
| 2152 checkTableFieldSchema(o[0]); | 2152 checkTableFieldSchema(o[0]); |
| 2153 checkTableFieldSchema(o[1]); | 2153 checkTableFieldSchema(o[1]); |
| 2154 } | 2154 } |
| 2155 | 2155 |
| 2156 core.int buildCounterTableSchema = 0; | 2156 core.int buildCounterTableSchema = 0; |
| 2157 buildTableSchema() { | 2157 buildTableSchema() { |
| 2158 var o = new api.TableSchema(); | 2158 var o = new api.TableSchema(); |
| 2159 buildCounterTableSchema++; | 2159 buildCounterTableSchema++; |
| 2160 if (buildCounterTableSchema < 3) { | 2160 if (buildCounterTableSchema < 3) { |
| 2161 o.fields = buildUnnamed2932(); | 2161 o.fields = buildUnnamed3038(); |
| 2162 } | 2162 } |
| 2163 buildCounterTableSchema--; | 2163 buildCounterTableSchema--; |
| 2164 return o; | 2164 return o; |
| 2165 } | 2165 } |
| 2166 | 2166 |
| 2167 checkTableSchema(api.TableSchema o) { | 2167 checkTableSchema(api.TableSchema o) { |
| 2168 buildCounterTableSchema++; | 2168 buildCounterTableSchema++; |
| 2169 if (buildCounterTableSchema < 3) { | 2169 if (buildCounterTableSchema < 3) { |
| 2170 checkUnnamed2932(o.fields); | 2170 checkUnnamed3038(o.fields); |
| 2171 } | 2171 } |
| 2172 buildCounterTableSchema--; | 2172 buildCounterTableSchema--; |
| 2173 } | 2173 } |
| 2174 | 2174 |
| 2175 core.int buildCounterTimePartitioning = 0; | 2175 core.int buildCounterTimePartitioning = 0; |
| 2176 buildTimePartitioning() { | 2176 buildTimePartitioning() { |
| 2177 var o = new api.TimePartitioning(); | 2177 var o = new api.TimePartitioning(); |
| 2178 buildCounterTimePartitioning++; | 2178 buildCounterTimePartitioning++; |
| 2179 if (buildCounterTimePartitioning < 3) { | 2179 if (buildCounterTimePartitioning < 3) { |
| 2180 o.expirationMs = "foo"; | 2180 o.expirationMs = "foo"; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 2207 | 2207 |
| 2208 checkUserDefinedFunctionResource(api.UserDefinedFunctionResource o) { | 2208 checkUserDefinedFunctionResource(api.UserDefinedFunctionResource o) { |
| 2209 buildCounterUserDefinedFunctionResource++; | 2209 buildCounterUserDefinedFunctionResource++; |
| 2210 if (buildCounterUserDefinedFunctionResource < 3) { | 2210 if (buildCounterUserDefinedFunctionResource < 3) { |
| 2211 unittest.expect(o.inlineCode, unittest.equals('foo')); | 2211 unittest.expect(o.inlineCode, unittest.equals('foo')); |
| 2212 unittest.expect(o.resourceUri, unittest.equals('foo')); | 2212 unittest.expect(o.resourceUri, unittest.equals('foo')); |
| 2213 } | 2213 } |
| 2214 buildCounterUserDefinedFunctionResource--; | 2214 buildCounterUserDefinedFunctionResource--; |
| 2215 } | 2215 } |
| 2216 | 2216 |
| 2217 buildUnnamed2933() { | 2217 buildUnnamed3039() { |
| 2218 var o = new core.List<api.UserDefinedFunctionResource>(); | 2218 var o = new core.List<api.UserDefinedFunctionResource>(); |
| 2219 o.add(buildUserDefinedFunctionResource()); | 2219 o.add(buildUserDefinedFunctionResource()); |
| 2220 o.add(buildUserDefinedFunctionResource()); | 2220 o.add(buildUserDefinedFunctionResource()); |
| 2221 return o; | 2221 return o; |
| 2222 } | 2222 } |
| 2223 | 2223 |
| 2224 checkUnnamed2933(core.List<api.UserDefinedFunctionResource> o) { | 2224 checkUnnamed3039(core.List<api.UserDefinedFunctionResource> o) { |
| 2225 unittest.expect(o, unittest.hasLength(2)); | 2225 unittest.expect(o, unittest.hasLength(2)); |
| 2226 checkUserDefinedFunctionResource(o[0]); | 2226 checkUserDefinedFunctionResource(o[0]); |
| 2227 checkUserDefinedFunctionResource(o[1]); | 2227 checkUserDefinedFunctionResource(o[1]); |
| 2228 } | 2228 } |
| 2229 | 2229 |
| 2230 core.int buildCounterViewDefinition = 0; | 2230 core.int buildCounterViewDefinition = 0; |
| 2231 buildViewDefinition() { | 2231 buildViewDefinition() { |
| 2232 var o = new api.ViewDefinition(); | 2232 var o = new api.ViewDefinition(); |
| 2233 buildCounterViewDefinition++; | 2233 buildCounterViewDefinition++; |
| 2234 if (buildCounterViewDefinition < 3) { | 2234 if (buildCounterViewDefinition < 3) { |
| 2235 o.query = "foo"; | 2235 o.query = "foo"; |
| 2236 o.useLegacySql = true; | 2236 o.useLegacySql = true; |
| 2237 o.userDefinedFunctionResources = buildUnnamed2933(); | 2237 o.userDefinedFunctionResources = buildUnnamed3039(); |
| 2238 } | 2238 } |
| 2239 buildCounterViewDefinition--; | 2239 buildCounterViewDefinition--; |
| 2240 return o; | 2240 return o; |
| 2241 } | 2241 } |
| 2242 | 2242 |
| 2243 checkViewDefinition(api.ViewDefinition o) { | 2243 checkViewDefinition(api.ViewDefinition o) { |
| 2244 buildCounterViewDefinition++; | 2244 buildCounterViewDefinition++; |
| 2245 if (buildCounterViewDefinition < 3) { | 2245 if (buildCounterViewDefinition < 3) { |
| 2246 unittest.expect(o.query, unittest.equals('foo')); | 2246 unittest.expect(o.query, unittest.equals('foo')); |
| 2247 unittest.expect(o.useLegacySql, unittest.isTrue); | 2247 unittest.expect(o.useLegacySql, unittest.isTrue); |
| 2248 checkUnnamed2933(o.userDefinedFunctionResources); | 2248 checkUnnamed3039(o.userDefinedFunctionResources); |
| 2249 } | 2249 } |
| 2250 buildCounterViewDefinition--; | 2250 buildCounterViewDefinition--; |
| 2251 } | 2251 } |
| 2252 | 2252 |
| 2253 buildUnnamed2934() { | 2253 buildUnnamed3040() { |
| 2254 var o = new core.List<core.String>(); | 2254 var o = new core.List<core.String>(); |
| 2255 o.add("foo"); | 2255 o.add("foo"); |
| 2256 o.add("foo"); | 2256 o.add("foo"); |
| 2257 return o; | 2257 return o; |
| 2258 } | 2258 } |
| 2259 | 2259 |
| 2260 checkUnnamed2934(core.List<core.String> o) { | 2260 checkUnnamed3040(core.List<core.String> o) { |
| 2261 unittest.expect(o, unittest.hasLength(2)); | 2261 unittest.expect(o, unittest.hasLength(2)); |
| 2262 unittest.expect(o[0], unittest.equals('foo')); | 2262 unittest.expect(o[0], unittest.equals('foo')); |
| 2263 unittest.expect(o[1], unittest.equals('foo')); | 2263 unittest.expect(o[1], unittest.equals('foo')); |
| 2264 } | 2264 } |
| 2265 | 2265 |
| 2266 | 2266 |
| 2267 main() { | 2267 main() { |
| 2268 unittest.group("obj-schema-BigtableColumn", () { | 2268 unittest.group("obj-schema-BigtableColumn", () { |
| 2269 unittest.test("to-json--from-json", () { | 2269 unittest.test("to-json--from-json", () { |
| 2270 var o = buildBigtableColumn(); | 2270 var o = buildBigtableColumn(); |
| (...skipping 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3390 | 3390 |
| 3391 unittest.test("method--list", () { | 3391 unittest.test("method--list", () { |
| 3392 | 3392 |
| 3393 var mock = new HttpServerMock(); | 3393 var mock = new HttpServerMock(); |
| 3394 api.JobsResourceApi res = new api.BigqueryApi(mock).jobs; | 3394 api.JobsResourceApi res = new api.BigqueryApi(mock).jobs; |
| 3395 var arg_projectId = "foo"; | 3395 var arg_projectId = "foo"; |
| 3396 var arg_allUsers = true; | 3396 var arg_allUsers = true; |
| 3397 var arg_maxResults = 42; | 3397 var arg_maxResults = 42; |
| 3398 var arg_pageToken = "foo"; | 3398 var arg_pageToken = "foo"; |
| 3399 var arg_projection = "foo"; | 3399 var arg_projection = "foo"; |
| 3400 var arg_stateFilter = buildUnnamed2934(); | 3400 var arg_stateFilter = buildUnnamed3040(); |
| 3401 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3401 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3402 var path = (req.url).path; | 3402 var path = (req.url).path; |
| 3403 var pathOffset = 0; | 3403 var pathOffset = 0; |
| 3404 var index; | 3404 var index; |
| 3405 var subPart; | 3405 var subPart; |
| 3406 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3406 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3407 pathOffset += 1; | 3407 pathOffset += 1; |
| 3408 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("bigquery/v2/")); | 3408 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("bigquery/v2/")); |
| 3409 pathOffset += 12; | 3409 pathOffset += 12; |
| 3410 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 3410 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3640 | 3640 |
| 3641 unittest.test("method--list", () { | 3641 unittest.test("method--list", () { |
| 3642 | 3642 |
| 3643 var mock = new HttpServerMock(); | 3643 var mock = new HttpServerMock(); |
| 3644 api.TabledataResourceApi res = new api.BigqueryApi(mock).tabledata; | 3644 api.TabledataResourceApi res = new api.BigqueryApi(mock).tabledata; |
| 3645 var arg_projectId = "foo"; | 3645 var arg_projectId = "foo"; |
| 3646 var arg_datasetId = "foo"; | 3646 var arg_datasetId = "foo"; |
| 3647 var arg_tableId = "foo"; | 3647 var arg_tableId = "foo"; |
| 3648 var arg_maxResults = 42; | 3648 var arg_maxResults = 42; |
| 3649 var arg_pageToken = "foo"; | 3649 var arg_pageToken = "foo"; |
| 3650 var arg_selectedFields = "foo"; |
| 3650 var arg_startIndex = "foo"; | 3651 var arg_startIndex = "foo"; |
| 3651 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3652 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3652 var path = (req.url).path; | 3653 var path = (req.url).path; |
| 3653 var pathOffset = 0; | 3654 var pathOffset = 0; |
| 3654 var index; | 3655 var index; |
| 3655 var subPart; | 3656 var subPart; |
| 3656 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3657 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3657 pathOffset += 1; | 3658 pathOffset += 1; |
| 3658 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("bigquery/v2/")); | 3659 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("bigquery/v2/")); |
| 3659 pathOffset += 12; | 3660 pathOffset += 12; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3692 throw new core.ArgumentError("Invalid boolean: $n"); | 3693 throw new core.ArgumentError("Invalid boolean: $n"); |
| 3693 } | 3694 } |
| 3694 if (query.length > 0) { | 3695 if (query.length > 0) { |
| 3695 for (var part in query.split("&")) { | 3696 for (var part in query.split("&")) { |
| 3696 var keyvalue = part.split("="); | 3697 var keyvalue = part.split("="); |
| 3697 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3698 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 3698 } | 3699 } |
| 3699 } | 3700 } |
| 3700 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); | 3701 unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.e
quals(arg_maxResults)); |
| 3701 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 3702 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 3703 unittest.expect(queryMap["selectedFields"].first, unittest.equals(arg_se
lectedFields)); |
| 3702 unittest.expect(queryMap["startIndex"].first, unittest.equals(arg_startI
ndex)); | 3704 unittest.expect(queryMap["startIndex"].first, unittest.equals(arg_startI
ndex)); |
| 3703 | 3705 |
| 3704 | 3706 |
| 3705 var h = { | 3707 var h = { |
| 3706 "content-type" : "application/json; charset=utf-8", | 3708 "content-type" : "application/json; charset=utf-8", |
| 3707 }; | 3709 }; |
| 3708 var resp = convert.JSON.encode(buildTableDataList()); | 3710 var resp = convert.JSON.encode(buildTableDataList()); |
| 3709 return new async.Future.value(stringResponse(200, h, resp)); | 3711 return new async.Future.value(stringResponse(200, h, resp)); |
| 3710 }), true); | 3712 }), true); |
| 3711 res.list(arg_projectId, arg_datasetId, arg_tableId, maxResults: arg_maxRes
ults, pageToken: arg_pageToken, startIndex: arg_startIndex).then(unittest.expect
Async(((api.TableDataList response) { | 3713 res.list(arg_projectId, arg_datasetId, arg_tableId, maxResults: arg_maxRes
ults, pageToken: arg_pageToken, selectedFields: arg_selectedFields, startIndex:
arg_startIndex).then(unittest.expectAsync(((api.TableDataList response) { |
| 3712 checkTableDataList(response); | 3714 checkTableDataList(response); |
| 3713 }))); | 3715 }))); |
| 3714 }); | 3716 }); |
| 3715 | 3717 |
| 3716 }); | 3718 }); |
| 3717 | 3719 |
| 3718 | 3720 |
| 3719 unittest.group("resource-TablesResourceApi", () { | 3721 unittest.group("resource-TablesResourceApi", () { |
| 3720 unittest.test("method--delete", () { | 3722 unittest.test("method--delete", () { |
| 3721 | 3723 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3780 res.delete(arg_projectId, arg_datasetId, arg_tableId).then(unittest.expect
Async((_) {})); | 3782 res.delete(arg_projectId, arg_datasetId, arg_tableId).then(unittest.expect
Async((_) {})); |
| 3781 }); | 3783 }); |
| 3782 | 3784 |
| 3783 unittest.test("method--get", () { | 3785 unittest.test("method--get", () { |
| 3784 | 3786 |
| 3785 var mock = new HttpServerMock(); | 3787 var mock = new HttpServerMock(); |
| 3786 api.TablesResourceApi res = new api.BigqueryApi(mock).tables; | 3788 api.TablesResourceApi res = new api.BigqueryApi(mock).tables; |
| 3787 var arg_projectId = "foo"; | 3789 var arg_projectId = "foo"; |
| 3788 var arg_datasetId = "foo"; | 3790 var arg_datasetId = "foo"; |
| 3789 var arg_tableId = "foo"; | 3791 var arg_tableId = "foo"; |
| 3792 var arg_selectedFields = "foo"; |
| 3790 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3793 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 3791 var path = (req.url).path; | 3794 var path = (req.url).path; |
| 3792 var pathOffset = 0; | 3795 var pathOffset = 0; |
| 3793 var index; | 3796 var index; |
| 3794 var subPart; | 3797 var subPart; |
| 3795 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3798 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3796 pathOffset += 1; | 3799 pathOffset += 1; |
| 3797 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("bigquery/v2/")); | 3800 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("bigquery/v2/")); |
| 3798 pathOffset += 12; | 3801 pathOffset += 12; |
| 3799 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 3802 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 3825 if (n == "false") return false; | 3828 if (n == "false") return false; |
| 3826 if (n == null) return null; | 3829 if (n == null) return null; |
| 3827 throw new core.ArgumentError("Invalid boolean: $n"); | 3830 throw new core.ArgumentError("Invalid boolean: $n"); |
| 3828 } | 3831 } |
| 3829 if (query.length > 0) { | 3832 if (query.length > 0) { |
| 3830 for (var part in query.split("&")) { | 3833 for (var part in query.split("&")) { |
| 3831 var keyvalue = part.split("="); | 3834 var keyvalue = part.split("="); |
| 3832 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3835 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 3833 } | 3836 } |
| 3834 } | 3837 } |
| 3838 unittest.expect(queryMap["selectedFields"].first, unittest.equals(arg_se
lectedFields)); |
| 3835 | 3839 |
| 3836 | 3840 |
| 3837 var h = { | 3841 var h = { |
| 3838 "content-type" : "application/json; charset=utf-8", | 3842 "content-type" : "application/json; charset=utf-8", |
| 3839 }; | 3843 }; |
| 3840 var resp = convert.JSON.encode(buildTable()); | 3844 var resp = convert.JSON.encode(buildTable()); |
| 3841 return new async.Future.value(stringResponse(200, h, resp)); | 3845 return new async.Future.value(stringResponse(200, h, resp)); |
| 3842 }), true); | 3846 }), true); |
| 3843 res.get(arg_projectId, arg_datasetId, arg_tableId).then(unittest.expectAsy
nc(((api.Table response) { | 3847 res.get(arg_projectId, arg_datasetId, arg_tableId, selectedFields: arg_sel
ectedFields).then(unittest.expectAsync(((api.Table response) { |
| 3844 checkTable(response); | 3848 checkTable(response); |
| 3845 }))); | 3849 }))); |
| 3846 }); | 3850 }); |
| 3847 | 3851 |
| 3848 unittest.test("method--insert", () { | 3852 unittest.test("method--insert", () { |
| 3849 | 3853 |
| 3850 var mock = new HttpServerMock(); | 3854 var mock = new HttpServerMock(); |
| 3851 api.TablesResourceApi res = new api.BigqueryApi(mock).tables; | 3855 api.TablesResourceApi res = new api.BigqueryApi(mock).tables; |
| 3852 var arg_request = buildTable(); | 3856 var arg_request = buildTable(); |
| 3853 var arg_projectId = "foo"; | 3857 var arg_projectId = "foo"; |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4111 res.update(arg_request, arg_projectId, arg_datasetId, arg_tableId).then(un
ittest.expectAsync(((api.Table response) { | 4115 res.update(arg_request, arg_projectId, arg_datasetId, arg_tableId).then(un
ittest.expectAsync(((api.Table response) { |
| 4112 checkTable(response); | 4116 checkTable(response); |
| 4113 }))); | 4117 }))); |
| 4114 }); | 4118 }); |
| 4115 | 4119 |
| 4116 }); | 4120 }); |
| 4117 | 4121 |
| 4118 | 4122 |
| 4119 } | 4123 } |
| 4120 | 4124 |
| OLD | NEW |