| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 unittest.expect(o.domain, unittest.equals('foo')); | 102 unittest.expect(o.domain, unittest.equals('foo')); |
| 103 unittest.expect(o.groupByEmail, unittest.equals('foo')); | 103 unittest.expect(o.groupByEmail, unittest.equals('foo')); |
| 104 unittest.expect(o.role, unittest.equals('foo')); | 104 unittest.expect(o.role, unittest.equals('foo')); |
| 105 unittest.expect(o.specialGroup, unittest.equals('foo')); | 105 unittest.expect(o.specialGroup, unittest.equals('foo')); |
| 106 unittest.expect(o.userByEmail, unittest.equals('foo')); | 106 unittest.expect(o.userByEmail, unittest.equals('foo')); |
| 107 checkTableReference(o.view); | 107 checkTableReference(o.view); |
| 108 } | 108 } |
| 109 buildCounterDatasetAccess--; | 109 buildCounterDatasetAccess--; |
| 110 } | 110 } |
| 111 | 111 |
| 112 buildUnnamed1476() { | 112 buildUnnamed337() { |
| 113 var o = new core.List<api.DatasetAccess>(); | 113 var o = new core.List<api.DatasetAccess>(); |
| 114 o.add(buildDatasetAccess()); | 114 o.add(buildDatasetAccess()); |
| 115 o.add(buildDatasetAccess()); | 115 o.add(buildDatasetAccess()); |
| 116 return o; | 116 return o; |
| 117 } | 117 } |
| 118 | 118 |
| 119 checkUnnamed1476(core.List<api.DatasetAccess> o) { | 119 checkUnnamed337(core.List<api.DatasetAccess> o) { |
| 120 unittest.expect(o, unittest.hasLength(2)); | 120 unittest.expect(o, unittest.hasLength(2)); |
| 121 checkDatasetAccess(o[0]); | 121 checkDatasetAccess(o[0]); |
| 122 checkDatasetAccess(o[1]); | 122 checkDatasetAccess(o[1]); |
| 123 } | 123 } |
| 124 | 124 |
| 125 core.int buildCounterDataset = 0; | 125 core.int buildCounterDataset = 0; |
| 126 buildDataset() { | 126 buildDataset() { |
| 127 var o = new api.Dataset(); | 127 var o = new api.Dataset(); |
| 128 buildCounterDataset++; | 128 buildCounterDataset++; |
| 129 if (buildCounterDataset < 3) { | 129 if (buildCounterDataset < 3) { |
| 130 o.access = buildUnnamed1476(); | 130 o.access = buildUnnamed337(); |
| 131 o.creationTime = "foo"; | 131 o.creationTime = "foo"; |
| 132 o.datasetReference = buildDatasetReference(); | 132 o.datasetReference = buildDatasetReference(); |
| 133 o.defaultTableExpirationMs = "foo"; | 133 o.defaultTableExpirationMs = "foo"; |
| 134 o.description = "foo"; | 134 o.description = "foo"; |
| 135 o.etag = "foo"; | 135 o.etag = "foo"; |
| 136 o.friendlyName = "foo"; | 136 o.friendlyName = "foo"; |
| 137 o.id = "foo"; | 137 o.id = "foo"; |
| 138 o.kind = "foo"; | 138 o.kind = "foo"; |
| 139 o.lastModifiedTime = "foo"; | 139 o.lastModifiedTime = "foo"; |
| 140 o.location = "foo"; | 140 o.location = "foo"; |
| 141 o.selfLink = "foo"; | 141 o.selfLink = "foo"; |
| 142 } | 142 } |
| 143 buildCounterDataset--; | 143 buildCounterDataset--; |
| 144 return o; | 144 return o; |
| 145 } | 145 } |
| 146 | 146 |
| 147 checkDataset(api.Dataset o) { | 147 checkDataset(api.Dataset o) { |
| 148 buildCounterDataset++; | 148 buildCounterDataset++; |
| 149 if (buildCounterDataset < 3) { | 149 if (buildCounterDataset < 3) { |
| 150 checkUnnamed1476(o.access); | 150 checkUnnamed337(o.access); |
| 151 unittest.expect(o.creationTime, unittest.equals('foo')); | 151 unittest.expect(o.creationTime, unittest.equals('foo')); |
| 152 checkDatasetReference(o.datasetReference); | 152 checkDatasetReference(o.datasetReference); |
| 153 unittest.expect(o.defaultTableExpirationMs, unittest.equals('foo')); | 153 unittest.expect(o.defaultTableExpirationMs, unittest.equals('foo')); |
| 154 unittest.expect(o.description, unittest.equals('foo')); | 154 unittest.expect(o.description, unittest.equals('foo')); |
| 155 unittest.expect(o.etag, unittest.equals('foo')); | 155 unittest.expect(o.etag, unittest.equals('foo')); |
| 156 unittest.expect(o.friendlyName, unittest.equals('foo')); | 156 unittest.expect(o.friendlyName, unittest.equals('foo')); |
| 157 unittest.expect(o.id, unittest.equals('foo')); | 157 unittest.expect(o.id, unittest.equals('foo')); |
| 158 unittest.expect(o.kind, unittest.equals('foo')); | 158 unittest.expect(o.kind, unittest.equals('foo')); |
| 159 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); | 159 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); |
| 160 unittest.expect(o.location, unittest.equals('foo')); | 160 unittest.expect(o.location, unittest.equals('foo')); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 181 buildCounterDatasetListDatasets++; | 181 buildCounterDatasetListDatasets++; |
| 182 if (buildCounterDatasetListDatasets < 3) { | 182 if (buildCounterDatasetListDatasets < 3) { |
| 183 checkDatasetReference(o.datasetReference); | 183 checkDatasetReference(o.datasetReference); |
| 184 unittest.expect(o.friendlyName, unittest.equals('foo')); | 184 unittest.expect(o.friendlyName, unittest.equals('foo')); |
| 185 unittest.expect(o.id, unittest.equals('foo')); | 185 unittest.expect(o.id, unittest.equals('foo')); |
| 186 unittest.expect(o.kind, unittest.equals('foo')); | 186 unittest.expect(o.kind, unittest.equals('foo')); |
| 187 } | 187 } |
| 188 buildCounterDatasetListDatasets--; | 188 buildCounterDatasetListDatasets--; |
| 189 } | 189 } |
| 190 | 190 |
| 191 buildUnnamed1477() { | 191 buildUnnamed338() { |
| 192 var o = new core.List<api.DatasetListDatasets>(); | 192 var o = new core.List<api.DatasetListDatasets>(); |
| 193 o.add(buildDatasetListDatasets()); | 193 o.add(buildDatasetListDatasets()); |
| 194 o.add(buildDatasetListDatasets()); | 194 o.add(buildDatasetListDatasets()); |
| 195 return o; | 195 return o; |
| 196 } | 196 } |
| 197 | 197 |
| 198 checkUnnamed1477(core.List<api.DatasetListDatasets> o) { | 198 checkUnnamed338(core.List<api.DatasetListDatasets> o) { |
| 199 unittest.expect(o, unittest.hasLength(2)); | 199 unittest.expect(o, unittest.hasLength(2)); |
| 200 checkDatasetListDatasets(o[0]); | 200 checkDatasetListDatasets(o[0]); |
| 201 checkDatasetListDatasets(o[1]); | 201 checkDatasetListDatasets(o[1]); |
| 202 } | 202 } |
| 203 | 203 |
| 204 core.int buildCounterDatasetList = 0; | 204 core.int buildCounterDatasetList = 0; |
| 205 buildDatasetList() { | 205 buildDatasetList() { |
| 206 var o = new api.DatasetList(); | 206 var o = new api.DatasetList(); |
| 207 buildCounterDatasetList++; | 207 buildCounterDatasetList++; |
| 208 if (buildCounterDatasetList < 3) { | 208 if (buildCounterDatasetList < 3) { |
| 209 o.datasets = buildUnnamed1477(); | 209 o.datasets = buildUnnamed338(); |
| 210 o.etag = "foo"; | 210 o.etag = "foo"; |
| 211 o.kind = "foo"; | 211 o.kind = "foo"; |
| 212 o.nextPageToken = "foo"; | 212 o.nextPageToken = "foo"; |
| 213 } | 213 } |
| 214 buildCounterDatasetList--; | 214 buildCounterDatasetList--; |
| 215 return o; | 215 return o; |
| 216 } | 216 } |
| 217 | 217 |
| 218 checkDatasetList(api.DatasetList o) { | 218 checkDatasetList(api.DatasetList o) { |
| 219 buildCounterDatasetList++; | 219 buildCounterDatasetList++; |
| 220 if (buildCounterDatasetList < 3) { | 220 if (buildCounterDatasetList < 3) { |
| 221 checkUnnamed1477(o.datasets); | 221 checkUnnamed338(o.datasets); |
| 222 unittest.expect(o.etag, unittest.equals('foo')); | 222 unittest.expect(o.etag, unittest.equals('foo')); |
| 223 unittest.expect(o.kind, unittest.equals('foo')); | 223 unittest.expect(o.kind, unittest.equals('foo')); |
| 224 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 224 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 225 } | 225 } |
| 226 buildCounterDatasetList--; | 226 buildCounterDatasetList--; |
| 227 } | 227 } |
| 228 | 228 |
| 229 core.int buildCounterDatasetReference = 0; | 229 core.int buildCounterDatasetReference = 0; |
| 230 buildDatasetReference() { | 230 buildDatasetReference() { |
| 231 var o = new api.DatasetReference(); | 231 var o = new api.DatasetReference(); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 buildCounterErrorProto++; | 265 buildCounterErrorProto++; |
| 266 if (buildCounterErrorProto < 3) { | 266 if (buildCounterErrorProto < 3) { |
| 267 unittest.expect(o.debugInfo, unittest.equals('foo')); | 267 unittest.expect(o.debugInfo, unittest.equals('foo')); |
| 268 unittest.expect(o.location, unittest.equals('foo')); | 268 unittest.expect(o.location, unittest.equals('foo')); |
| 269 unittest.expect(o.message, unittest.equals('foo')); | 269 unittest.expect(o.message, unittest.equals('foo')); |
| 270 unittest.expect(o.reason, unittest.equals('foo')); | 270 unittest.expect(o.reason, unittest.equals('foo')); |
| 271 } | 271 } |
| 272 buildCounterErrorProto--; | 272 buildCounterErrorProto--; |
| 273 } | 273 } |
| 274 | 274 |
| 275 buildUnnamed1478() { | 275 buildUnnamed339() { |
| 276 var o = new core.List<core.String>(); | 276 var o = new core.List<core.String>(); |
| 277 o.add("foo"); | 277 o.add("foo"); |
| 278 o.add("foo"); | 278 o.add("foo"); |
| 279 return o; | 279 return o; |
| 280 } | 280 } |
| 281 | 281 |
| 282 checkUnnamed1478(core.List<core.String> o) { | 282 checkUnnamed339(core.List<core.String> o) { |
| 283 unittest.expect(o, unittest.hasLength(2)); | 283 unittest.expect(o, unittest.hasLength(2)); |
| 284 unittest.expect(o[0], unittest.equals('foo')); | 284 unittest.expect(o[0], unittest.equals('foo')); |
| 285 unittest.expect(o[1], unittest.equals('foo')); | 285 unittest.expect(o[1], unittest.equals('foo')); |
| 286 } | 286 } |
| 287 | 287 |
| 288 core.int buildCounterExternalDataConfiguration = 0; | 288 core.int buildCounterExternalDataConfiguration = 0; |
| 289 buildExternalDataConfiguration() { | 289 buildExternalDataConfiguration() { |
| 290 var o = new api.ExternalDataConfiguration(); | 290 var o = new api.ExternalDataConfiguration(); |
| 291 buildCounterExternalDataConfiguration++; | 291 buildCounterExternalDataConfiguration++; |
| 292 if (buildCounterExternalDataConfiguration < 3) { | 292 if (buildCounterExternalDataConfiguration < 3) { |
| 293 o.compression = "foo"; | 293 o.compression = "foo"; |
| 294 o.csvOptions = buildCsvOptions(); | 294 o.csvOptions = buildCsvOptions(); |
| 295 o.ignoreUnknownValues = true; | 295 o.ignoreUnknownValues = true; |
| 296 o.maxBadRecords = 42; | 296 o.maxBadRecords = 42; |
| 297 o.schema = buildTableSchema(); | 297 o.schema = buildTableSchema(); |
| 298 o.sourceFormat = "foo"; | 298 o.sourceFormat = "foo"; |
| 299 o.sourceUris = buildUnnamed1478(); | 299 o.sourceUris = buildUnnamed339(); |
| 300 } | 300 } |
| 301 buildCounterExternalDataConfiguration--; | 301 buildCounterExternalDataConfiguration--; |
| 302 return o; | 302 return o; |
| 303 } | 303 } |
| 304 | 304 |
| 305 checkExternalDataConfiguration(api.ExternalDataConfiguration o) { | 305 checkExternalDataConfiguration(api.ExternalDataConfiguration o) { |
| 306 buildCounterExternalDataConfiguration++; | 306 buildCounterExternalDataConfiguration++; |
| 307 if (buildCounterExternalDataConfiguration < 3) { | 307 if (buildCounterExternalDataConfiguration < 3) { |
| 308 unittest.expect(o.compression, unittest.equals('foo')); | 308 unittest.expect(o.compression, unittest.equals('foo')); |
| 309 checkCsvOptions(o.csvOptions); | 309 checkCsvOptions(o.csvOptions); |
| 310 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); | 310 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); |
| 311 unittest.expect(o.maxBadRecords, unittest.equals(42)); | 311 unittest.expect(o.maxBadRecords, unittest.equals(42)); |
| 312 checkTableSchema(o.schema); | 312 checkTableSchema(o.schema); |
| 313 unittest.expect(o.sourceFormat, unittest.equals('foo')); | 313 unittest.expect(o.sourceFormat, unittest.equals('foo')); |
| 314 checkUnnamed1478(o.sourceUris); | 314 checkUnnamed339(o.sourceUris); |
| 315 } | 315 } |
| 316 buildCounterExternalDataConfiguration--; | 316 buildCounterExternalDataConfiguration--; |
| 317 } | 317 } |
| 318 | 318 |
| 319 buildUnnamed1479() { | 319 buildUnnamed340() { |
| 320 var o = new core.List<api.TableRow>(); | 320 var o = new core.List<api.TableRow>(); |
| 321 o.add(buildTableRow()); | 321 o.add(buildTableRow()); |
| 322 o.add(buildTableRow()); | 322 o.add(buildTableRow()); |
| 323 return o; | 323 return o; |
| 324 } | 324 } |
| 325 | 325 |
| 326 checkUnnamed1479(core.List<api.TableRow> o) { | 326 checkUnnamed340(core.List<api.TableRow> o) { |
| 327 unittest.expect(o, unittest.hasLength(2)); | 327 unittest.expect(o, unittest.hasLength(2)); |
| 328 checkTableRow(o[0]); | 328 checkTableRow(o[0]); |
| 329 checkTableRow(o[1]); | 329 checkTableRow(o[1]); |
| 330 } | 330 } |
| 331 | 331 |
| 332 core.int buildCounterGetQueryResultsResponse = 0; | 332 core.int buildCounterGetQueryResultsResponse = 0; |
| 333 buildGetQueryResultsResponse() { | 333 buildGetQueryResultsResponse() { |
| 334 var o = new api.GetQueryResultsResponse(); | 334 var o = new api.GetQueryResultsResponse(); |
| 335 buildCounterGetQueryResultsResponse++; | 335 buildCounterGetQueryResultsResponse++; |
| 336 if (buildCounterGetQueryResultsResponse < 3) { | 336 if (buildCounterGetQueryResultsResponse < 3) { |
| 337 o.cacheHit = true; | 337 o.cacheHit = true; |
| 338 o.etag = "foo"; | 338 o.etag = "foo"; |
| 339 o.jobComplete = true; | 339 o.jobComplete = true; |
| 340 o.jobReference = buildJobReference(); | 340 o.jobReference = buildJobReference(); |
| 341 o.kind = "foo"; | 341 o.kind = "foo"; |
| 342 o.pageToken = "foo"; | 342 o.pageToken = "foo"; |
| 343 o.rows = buildUnnamed1479(); | 343 o.rows = buildUnnamed340(); |
| 344 o.schema = buildTableSchema(); | 344 o.schema = buildTableSchema(); |
| 345 o.totalBytesProcessed = "foo"; | 345 o.totalBytesProcessed = "foo"; |
| 346 o.totalRows = "foo"; | 346 o.totalRows = "foo"; |
| 347 } | 347 } |
| 348 buildCounterGetQueryResultsResponse--; | 348 buildCounterGetQueryResultsResponse--; |
| 349 return o; | 349 return o; |
| 350 } | 350 } |
| 351 | 351 |
| 352 checkGetQueryResultsResponse(api.GetQueryResultsResponse o) { | 352 checkGetQueryResultsResponse(api.GetQueryResultsResponse o) { |
| 353 buildCounterGetQueryResultsResponse++; | 353 buildCounterGetQueryResultsResponse++; |
| 354 if (buildCounterGetQueryResultsResponse < 3) { | 354 if (buildCounterGetQueryResultsResponse < 3) { |
| 355 unittest.expect(o.cacheHit, unittest.isTrue); | 355 unittest.expect(o.cacheHit, unittest.isTrue); |
| 356 unittest.expect(o.etag, unittest.equals('foo')); | 356 unittest.expect(o.etag, unittest.equals('foo')); |
| 357 unittest.expect(o.jobComplete, unittest.isTrue); | 357 unittest.expect(o.jobComplete, unittest.isTrue); |
| 358 checkJobReference(o.jobReference); | 358 checkJobReference(o.jobReference); |
| 359 unittest.expect(o.kind, unittest.equals('foo')); | 359 unittest.expect(o.kind, unittest.equals('foo')); |
| 360 unittest.expect(o.pageToken, unittest.equals('foo')); | 360 unittest.expect(o.pageToken, unittest.equals('foo')); |
| 361 checkUnnamed1479(o.rows); | 361 checkUnnamed340(o.rows); |
| 362 checkTableSchema(o.schema); | 362 checkTableSchema(o.schema); |
| 363 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); | 363 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); |
| 364 unittest.expect(o.totalRows, unittest.equals('foo')); | 364 unittest.expect(o.totalRows, unittest.equals('foo')); |
| 365 } | 365 } |
| 366 buildCounterGetQueryResultsResponse--; | 366 buildCounterGetQueryResultsResponse--; |
| 367 } | 367 } |
| 368 | 368 |
| 369 core.int buildCounterJob = 0; | 369 core.int buildCounterJob = 0; |
| 370 buildJob() { | 370 buildJob() { |
| 371 var o = new api.Job(); | 371 var o = new api.Job(); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 checkJobConfigurationTableCopy(o.copy); | 444 checkJobConfigurationTableCopy(o.copy); |
| 445 unittest.expect(o.dryRun, unittest.isTrue); | 445 unittest.expect(o.dryRun, unittest.isTrue); |
| 446 checkJobConfigurationExtract(o.extract); | 446 checkJobConfigurationExtract(o.extract); |
| 447 checkJobConfigurationLink(o.link); | 447 checkJobConfigurationLink(o.link); |
| 448 checkJobConfigurationLoad(o.load); | 448 checkJobConfigurationLoad(o.load); |
| 449 checkJobConfigurationQuery(o.query); | 449 checkJobConfigurationQuery(o.query); |
| 450 } | 450 } |
| 451 buildCounterJobConfiguration--; | 451 buildCounterJobConfiguration--; |
| 452 } | 452 } |
| 453 | 453 |
| 454 buildUnnamed1480() { | 454 buildUnnamed341() { |
| 455 var o = new core.List<core.String>(); | 455 var o = new core.List<core.String>(); |
| 456 o.add("foo"); | 456 o.add("foo"); |
| 457 o.add("foo"); | 457 o.add("foo"); |
| 458 return o; | 458 return o; |
| 459 } | 459 } |
| 460 | 460 |
| 461 checkUnnamed1480(core.List<core.String> o) { | 461 checkUnnamed341(core.List<core.String> o) { |
| 462 unittest.expect(o, unittest.hasLength(2)); | 462 unittest.expect(o, unittest.hasLength(2)); |
| 463 unittest.expect(o[0], unittest.equals('foo')); | 463 unittest.expect(o[0], unittest.equals('foo')); |
| 464 unittest.expect(o[1], unittest.equals('foo')); | 464 unittest.expect(o[1], unittest.equals('foo')); |
| 465 } | 465 } |
| 466 | 466 |
| 467 core.int buildCounterJobConfigurationExtract = 0; | 467 core.int buildCounterJobConfigurationExtract = 0; |
| 468 buildJobConfigurationExtract() { | 468 buildJobConfigurationExtract() { |
| 469 var o = new api.JobConfigurationExtract(); | 469 var o = new api.JobConfigurationExtract(); |
| 470 buildCounterJobConfigurationExtract++; | 470 buildCounterJobConfigurationExtract++; |
| 471 if (buildCounterJobConfigurationExtract < 3) { | 471 if (buildCounterJobConfigurationExtract < 3) { |
| 472 o.compression = "foo"; | 472 o.compression = "foo"; |
| 473 o.destinationFormat = "foo"; | 473 o.destinationFormat = "foo"; |
| 474 o.destinationUri = "foo"; | 474 o.destinationUri = "foo"; |
| 475 o.destinationUris = buildUnnamed1480(); | 475 o.destinationUris = buildUnnamed341(); |
| 476 o.fieldDelimiter = "foo"; | 476 o.fieldDelimiter = "foo"; |
| 477 o.printHeader = true; | 477 o.printHeader = true; |
| 478 o.sourceTable = buildTableReference(); | 478 o.sourceTable = buildTableReference(); |
| 479 } | 479 } |
| 480 buildCounterJobConfigurationExtract--; | 480 buildCounterJobConfigurationExtract--; |
| 481 return o; | 481 return o; |
| 482 } | 482 } |
| 483 | 483 |
| 484 checkJobConfigurationExtract(api.JobConfigurationExtract o) { | 484 checkJobConfigurationExtract(api.JobConfigurationExtract o) { |
| 485 buildCounterJobConfigurationExtract++; | 485 buildCounterJobConfigurationExtract++; |
| 486 if (buildCounterJobConfigurationExtract < 3) { | 486 if (buildCounterJobConfigurationExtract < 3) { |
| 487 unittest.expect(o.compression, unittest.equals('foo')); | 487 unittest.expect(o.compression, unittest.equals('foo')); |
| 488 unittest.expect(o.destinationFormat, unittest.equals('foo')); | 488 unittest.expect(o.destinationFormat, unittest.equals('foo')); |
| 489 unittest.expect(o.destinationUri, unittest.equals('foo')); | 489 unittest.expect(o.destinationUri, unittest.equals('foo')); |
| 490 checkUnnamed1480(o.destinationUris); | 490 checkUnnamed341(o.destinationUris); |
| 491 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); | 491 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); |
| 492 unittest.expect(o.printHeader, unittest.isTrue); | 492 unittest.expect(o.printHeader, unittest.isTrue); |
| 493 checkTableReference(o.sourceTable); | 493 checkTableReference(o.sourceTable); |
| 494 } | 494 } |
| 495 buildCounterJobConfigurationExtract--; | 495 buildCounterJobConfigurationExtract--; |
| 496 } | 496 } |
| 497 | 497 |
| 498 buildUnnamed1481() { | 498 buildUnnamed342() { |
| 499 var o = new core.List<core.String>(); | 499 var o = new core.List<core.String>(); |
| 500 o.add("foo"); | 500 o.add("foo"); |
| 501 o.add("foo"); | 501 o.add("foo"); |
| 502 return o; | 502 return o; |
| 503 } | 503 } |
| 504 | 504 |
| 505 checkUnnamed1481(core.List<core.String> o) { | 505 checkUnnamed342(core.List<core.String> o) { |
| 506 unittest.expect(o, unittest.hasLength(2)); | 506 unittest.expect(o, unittest.hasLength(2)); |
| 507 unittest.expect(o[0], unittest.equals('foo')); | 507 unittest.expect(o[0], unittest.equals('foo')); |
| 508 unittest.expect(o[1], unittest.equals('foo')); | 508 unittest.expect(o[1], unittest.equals('foo')); |
| 509 } | 509 } |
| 510 | 510 |
| 511 core.int buildCounterJobConfigurationLink = 0; | 511 core.int buildCounterJobConfigurationLink = 0; |
| 512 buildJobConfigurationLink() { | 512 buildJobConfigurationLink() { |
| 513 var o = new api.JobConfigurationLink(); | 513 var o = new api.JobConfigurationLink(); |
| 514 buildCounterJobConfigurationLink++; | 514 buildCounterJobConfigurationLink++; |
| 515 if (buildCounterJobConfigurationLink < 3) { | 515 if (buildCounterJobConfigurationLink < 3) { |
| 516 o.createDisposition = "foo"; | 516 o.createDisposition = "foo"; |
| 517 o.destinationTable = buildTableReference(); | 517 o.destinationTable = buildTableReference(); |
| 518 o.sourceUri = buildUnnamed1481(); | 518 o.sourceUri = buildUnnamed342(); |
| 519 o.writeDisposition = "foo"; | 519 o.writeDisposition = "foo"; |
| 520 } | 520 } |
| 521 buildCounterJobConfigurationLink--; | 521 buildCounterJobConfigurationLink--; |
| 522 return o; | 522 return o; |
| 523 } | 523 } |
| 524 | 524 |
| 525 checkJobConfigurationLink(api.JobConfigurationLink o) { | 525 checkJobConfigurationLink(api.JobConfigurationLink o) { |
| 526 buildCounterJobConfigurationLink++; | 526 buildCounterJobConfigurationLink++; |
| 527 if (buildCounterJobConfigurationLink < 3) { | 527 if (buildCounterJobConfigurationLink < 3) { |
| 528 unittest.expect(o.createDisposition, unittest.equals('foo')); | 528 unittest.expect(o.createDisposition, unittest.equals('foo')); |
| 529 checkTableReference(o.destinationTable); | 529 checkTableReference(o.destinationTable); |
| 530 checkUnnamed1481(o.sourceUri); | 530 checkUnnamed342(o.sourceUri); |
| 531 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 531 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
| 532 } | 532 } |
| 533 buildCounterJobConfigurationLink--; | 533 buildCounterJobConfigurationLink--; |
| 534 } | 534 } |
| 535 | 535 |
| 536 buildUnnamed1482() { | 536 buildUnnamed343() { |
| 537 var o = new core.List<core.String>(); | 537 var o = new core.List<core.String>(); |
| 538 o.add("foo"); | 538 o.add("foo"); |
| 539 o.add("foo"); | 539 o.add("foo"); |
| 540 return o; | 540 return o; |
| 541 } | 541 } |
| 542 | 542 |
| 543 checkUnnamed1482(core.List<core.String> o) { | 543 checkUnnamed343(core.List<core.String> o) { |
| 544 unittest.expect(o, unittest.hasLength(2)); | 544 unittest.expect(o, unittest.hasLength(2)); |
| 545 unittest.expect(o[0], unittest.equals('foo')); | 545 unittest.expect(o[0], unittest.equals('foo')); |
| 546 unittest.expect(o[1], unittest.equals('foo')); | 546 unittest.expect(o[1], unittest.equals('foo')); |
| 547 } | 547 } |
| 548 | 548 |
| 549 buildUnnamed1483() { | 549 buildUnnamed344() { |
| 550 var o = new core.List<core.String>(); | 550 var o = new core.List<core.String>(); |
| 551 o.add("foo"); | 551 o.add("foo"); |
| 552 o.add("foo"); | 552 o.add("foo"); |
| 553 return o; | 553 return o; |
| 554 } | 554 } |
| 555 | 555 |
| 556 checkUnnamed1483(core.List<core.String> o) { | 556 checkUnnamed344(core.List<core.String> o) { |
| 557 unittest.expect(o, unittest.hasLength(2)); | 557 unittest.expect(o, unittest.hasLength(2)); |
| 558 unittest.expect(o[0], unittest.equals('foo')); | 558 unittest.expect(o[0], unittest.equals('foo')); |
| 559 unittest.expect(o[1], unittest.equals('foo')); | 559 unittest.expect(o[1], unittest.equals('foo')); |
| 560 } | 560 } |
| 561 | 561 |
| 562 core.int buildCounterJobConfigurationLoad = 0; | 562 core.int buildCounterJobConfigurationLoad = 0; |
| 563 buildJobConfigurationLoad() { | 563 buildJobConfigurationLoad() { |
| 564 var o = new api.JobConfigurationLoad(); | 564 var o = new api.JobConfigurationLoad(); |
| 565 buildCounterJobConfigurationLoad++; | 565 buildCounterJobConfigurationLoad++; |
| 566 if (buildCounterJobConfigurationLoad < 3) { | 566 if (buildCounterJobConfigurationLoad < 3) { |
| 567 o.allowJaggedRows = true; | 567 o.allowJaggedRows = true; |
| 568 o.allowQuotedNewlines = true; | 568 o.allowQuotedNewlines = true; |
| 569 o.createDisposition = "foo"; | 569 o.createDisposition = "foo"; |
| 570 o.destinationTable = buildTableReference(); | 570 o.destinationTable = buildTableReference(); |
| 571 o.encoding = "foo"; | 571 o.encoding = "foo"; |
| 572 o.fieldDelimiter = "foo"; | 572 o.fieldDelimiter = "foo"; |
| 573 o.ignoreUnknownValues = true; | 573 o.ignoreUnknownValues = true; |
| 574 o.maxBadRecords = 42; | 574 o.maxBadRecords = 42; |
| 575 o.projectionFields = buildUnnamed1482(); | 575 o.projectionFields = buildUnnamed343(); |
| 576 o.quote = "foo"; | 576 o.quote = "foo"; |
| 577 o.schema = buildTableSchema(); | 577 o.schema = buildTableSchema(); |
| 578 o.schemaInline = "foo"; | 578 o.schemaInline = "foo"; |
| 579 o.schemaInlineFormat = "foo"; | 579 o.schemaInlineFormat = "foo"; |
| 580 o.skipLeadingRows = 42; | 580 o.skipLeadingRows = 42; |
| 581 o.sourceFormat = "foo"; | 581 o.sourceFormat = "foo"; |
| 582 o.sourceUris = buildUnnamed1483(); | 582 o.sourceUris = buildUnnamed344(); |
| 583 o.writeDisposition = "foo"; | 583 o.writeDisposition = "foo"; |
| 584 } | 584 } |
| 585 buildCounterJobConfigurationLoad--; | 585 buildCounterJobConfigurationLoad--; |
| 586 return o; | 586 return o; |
| 587 } | 587 } |
| 588 | 588 |
| 589 checkJobConfigurationLoad(api.JobConfigurationLoad o) { | 589 checkJobConfigurationLoad(api.JobConfigurationLoad o) { |
| 590 buildCounterJobConfigurationLoad++; | 590 buildCounterJobConfigurationLoad++; |
| 591 if (buildCounterJobConfigurationLoad < 3) { | 591 if (buildCounterJobConfigurationLoad < 3) { |
| 592 unittest.expect(o.allowJaggedRows, unittest.isTrue); | 592 unittest.expect(o.allowJaggedRows, unittest.isTrue); |
| 593 unittest.expect(o.allowQuotedNewlines, unittest.isTrue); | 593 unittest.expect(o.allowQuotedNewlines, unittest.isTrue); |
| 594 unittest.expect(o.createDisposition, unittest.equals('foo')); | 594 unittest.expect(o.createDisposition, unittest.equals('foo')); |
| 595 checkTableReference(o.destinationTable); | 595 checkTableReference(o.destinationTable); |
| 596 unittest.expect(o.encoding, unittest.equals('foo')); | 596 unittest.expect(o.encoding, unittest.equals('foo')); |
| 597 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); | 597 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); |
| 598 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); | 598 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); |
| 599 unittest.expect(o.maxBadRecords, unittest.equals(42)); | 599 unittest.expect(o.maxBadRecords, unittest.equals(42)); |
| 600 checkUnnamed1482(o.projectionFields); | 600 checkUnnamed343(o.projectionFields); |
| 601 unittest.expect(o.quote, unittest.equals('foo')); | 601 unittest.expect(o.quote, unittest.equals('foo')); |
| 602 checkTableSchema(o.schema); | 602 checkTableSchema(o.schema); |
| 603 unittest.expect(o.schemaInline, unittest.equals('foo')); | 603 unittest.expect(o.schemaInline, unittest.equals('foo')); |
| 604 unittest.expect(o.schemaInlineFormat, unittest.equals('foo')); | 604 unittest.expect(o.schemaInlineFormat, unittest.equals('foo')); |
| 605 unittest.expect(o.skipLeadingRows, unittest.equals(42)); | 605 unittest.expect(o.skipLeadingRows, unittest.equals(42)); |
| 606 unittest.expect(o.sourceFormat, unittest.equals('foo')); | 606 unittest.expect(o.sourceFormat, unittest.equals('foo')); |
| 607 checkUnnamed1483(o.sourceUris); | 607 checkUnnamed344(o.sourceUris); |
| 608 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 608 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
| 609 } | 609 } |
| 610 buildCounterJobConfigurationLoad--; | 610 buildCounterJobConfigurationLoad--; |
| 611 } | 611 } |
| 612 | 612 |
| 613 buildUnnamed1484() { | 613 buildUnnamed345() { |
| 614 var o = new core.Map<core.String, api.ExternalDataConfiguration>(); | 614 var o = new core.Map<core.String, api.ExternalDataConfiguration>(); |
| 615 o["x"] = buildExternalDataConfiguration(); | 615 o["x"] = buildExternalDataConfiguration(); |
| 616 o["y"] = buildExternalDataConfiguration(); | 616 o["y"] = buildExternalDataConfiguration(); |
| 617 return o; | 617 return o; |
| 618 } | 618 } |
| 619 | 619 |
| 620 checkUnnamed1484(core.Map<core.String, api.ExternalDataConfiguration> o) { | 620 checkUnnamed345(core.Map<core.String, api.ExternalDataConfiguration> o) { |
| 621 unittest.expect(o, unittest.hasLength(2)); | 621 unittest.expect(o, unittest.hasLength(2)); |
| 622 checkExternalDataConfiguration(o["x"]); | 622 checkExternalDataConfiguration(o["x"]); |
| 623 checkExternalDataConfiguration(o["y"]); | 623 checkExternalDataConfiguration(o["y"]); |
| 624 } | 624 } |
| 625 | 625 |
| 626 buildUnnamed346() { |
| 627 var o = new core.List<api.UserDefinedFunctionResource>(); |
| 628 o.add(buildUserDefinedFunctionResource()); |
| 629 o.add(buildUserDefinedFunctionResource()); |
| 630 return o; |
| 631 } |
| 632 |
| 633 checkUnnamed346(core.List<api.UserDefinedFunctionResource> o) { |
| 634 unittest.expect(o, unittest.hasLength(2)); |
| 635 checkUserDefinedFunctionResource(o[0]); |
| 636 checkUserDefinedFunctionResource(o[1]); |
| 637 } |
| 638 |
| 626 core.int buildCounterJobConfigurationQuery = 0; | 639 core.int buildCounterJobConfigurationQuery = 0; |
| 627 buildJobConfigurationQuery() { | 640 buildJobConfigurationQuery() { |
| 628 var o = new api.JobConfigurationQuery(); | 641 var o = new api.JobConfigurationQuery(); |
| 629 buildCounterJobConfigurationQuery++; | 642 buildCounterJobConfigurationQuery++; |
| 630 if (buildCounterJobConfigurationQuery < 3) { | 643 if (buildCounterJobConfigurationQuery < 3) { |
| 631 o.allowLargeResults = true; | 644 o.allowLargeResults = true; |
| 632 o.createDisposition = "foo"; | 645 o.createDisposition = "foo"; |
| 633 o.defaultDataset = buildDatasetReference(); | 646 o.defaultDataset = buildDatasetReference(); |
| 634 o.destinationTable = buildTableReference(); | 647 o.destinationTable = buildTableReference(); |
| 635 o.flattenResults = true; | 648 o.flattenResults = true; |
| 636 o.preserveNulls = true; | 649 o.preserveNulls = true; |
| 637 o.priority = "foo"; | 650 o.priority = "foo"; |
| 638 o.query = "foo"; | 651 o.query = "foo"; |
| 639 o.tableDefinitions = buildUnnamed1484(); | 652 o.tableDefinitions = buildUnnamed345(); |
| 640 o.useQueryCache = true; | 653 o.useQueryCache = true; |
| 654 o.userDefinedFunctionResources = buildUnnamed346(); |
| 641 o.writeDisposition = "foo"; | 655 o.writeDisposition = "foo"; |
| 642 } | 656 } |
| 643 buildCounterJobConfigurationQuery--; | 657 buildCounterJobConfigurationQuery--; |
| 644 return o; | 658 return o; |
| 645 } | 659 } |
| 646 | 660 |
| 647 checkJobConfigurationQuery(api.JobConfigurationQuery o) { | 661 checkJobConfigurationQuery(api.JobConfigurationQuery o) { |
| 648 buildCounterJobConfigurationQuery++; | 662 buildCounterJobConfigurationQuery++; |
| 649 if (buildCounterJobConfigurationQuery < 3) { | 663 if (buildCounterJobConfigurationQuery < 3) { |
| 650 unittest.expect(o.allowLargeResults, unittest.isTrue); | 664 unittest.expect(o.allowLargeResults, unittest.isTrue); |
| 651 unittest.expect(o.createDisposition, unittest.equals('foo')); | 665 unittest.expect(o.createDisposition, unittest.equals('foo')); |
| 652 checkDatasetReference(o.defaultDataset); | 666 checkDatasetReference(o.defaultDataset); |
| 653 checkTableReference(o.destinationTable); | 667 checkTableReference(o.destinationTable); |
| 654 unittest.expect(o.flattenResults, unittest.isTrue); | 668 unittest.expect(o.flattenResults, unittest.isTrue); |
| 655 unittest.expect(o.preserveNulls, unittest.isTrue); | 669 unittest.expect(o.preserveNulls, unittest.isTrue); |
| 656 unittest.expect(o.priority, unittest.equals('foo')); | 670 unittest.expect(o.priority, unittest.equals('foo')); |
| 657 unittest.expect(o.query, unittest.equals('foo')); | 671 unittest.expect(o.query, unittest.equals('foo')); |
| 658 checkUnnamed1484(o.tableDefinitions); | 672 checkUnnamed345(o.tableDefinitions); |
| 659 unittest.expect(o.useQueryCache, unittest.isTrue); | 673 unittest.expect(o.useQueryCache, unittest.isTrue); |
| 674 checkUnnamed346(o.userDefinedFunctionResources); |
| 660 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 675 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
| 661 } | 676 } |
| 662 buildCounterJobConfigurationQuery--; | 677 buildCounterJobConfigurationQuery--; |
| 663 } | 678 } |
| 664 | 679 |
| 665 buildUnnamed1485() { | 680 buildUnnamed347() { |
| 666 var o = new core.List<api.TableReference>(); | 681 var o = new core.List<api.TableReference>(); |
| 667 o.add(buildTableReference()); | 682 o.add(buildTableReference()); |
| 668 o.add(buildTableReference()); | 683 o.add(buildTableReference()); |
| 669 return o; | 684 return o; |
| 670 } | 685 } |
| 671 | 686 |
| 672 checkUnnamed1485(core.List<api.TableReference> o) { | 687 checkUnnamed347(core.List<api.TableReference> o) { |
| 673 unittest.expect(o, unittest.hasLength(2)); | 688 unittest.expect(o, unittest.hasLength(2)); |
| 674 checkTableReference(o[0]); | 689 checkTableReference(o[0]); |
| 675 checkTableReference(o[1]); | 690 checkTableReference(o[1]); |
| 676 } | 691 } |
| 677 | 692 |
| 678 core.int buildCounterJobConfigurationTableCopy = 0; | 693 core.int buildCounterJobConfigurationTableCopy = 0; |
| 679 buildJobConfigurationTableCopy() { | 694 buildJobConfigurationTableCopy() { |
| 680 var o = new api.JobConfigurationTableCopy(); | 695 var o = new api.JobConfigurationTableCopy(); |
| 681 buildCounterJobConfigurationTableCopy++; | 696 buildCounterJobConfigurationTableCopy++; |
| 682 if (buildCounterJobConfigurationTableCopy < 3) { | 697 if (buildCounterJobConfigurationTableCopy < 3) { |
| 683 o.createDisposition = "foo"; | 698 o.createDisposition = "foo"; |
| 684 o.destinationTable = buildTableReference(); | 699 o.destinationTable = buildTableReference(); |
| 685 o.sourceTable = buildTableReference(); | 700 o.sourceTable = buildTableReference(); |
| 686 o.sourceTables = buildUnnamed1485(); | 701 o.sourceTables = buildUnnamed347(); |
| 687 o.writeDisposition = "foo"; | 702 o.writeDisposition = "foo"; |
| 688 } | 703 } |
| 689 buildCounterJobConfigurationTableCopy--; | 704 buildCounterJobConfigurationTableCopy--; |
| 690 return o; | 705 return o; |
| 691 } | 706 } |
| 692 | 707 |
| 693 checkJobConfigurationTableCopy(api.JobConfigurationTableCopy o) { | 708 checkJobConfigurationTableCopy(api.JobConfigurationTableCopy o) { |
| 694 buildCounterJobConfigurationTableCopy++; | 709 buildCounterJobConfigurationTableCopy++; |
| 695 if (buildCounterJobConfigurationTableCopy < 3) { | 710 if (buildCounterJobConfigurationTableCopy < 3) { |
| 696 unittest.expect(o.createDisposition, unittest.equals('foo')); | 711 unittest.expect(o.createDisposition, unittest.equals('foo')); |
| 697 checkTableReference(o.destinationTable); | 712 checkTableReference(o.destinationTable); |
| 698 checkTableReference(o.sourceTable); | 713 checkTableReference(o.sourceTable); |
| 699 checkUnnamed1485(o.sourceTables); | 714 checkUnnamed347(o.sourceTables); |
| 700 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 715 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
| 701 } | 716 } |
| 702 buildCounterJobConfigurationTableCopy--; | 717 buildCounterJobConfigurationTableCopy--; |
| 703 } | 718 } |
| 704 | 719 |
| 705 core.int buildCounterJobListJobs = 0; | 720 core.int buildCounterJobListJobs = 0; |
| 706 buildJobListJobs() { | 721 buildJobListJobs() { |
| 707 var o = new api.JobListJobs(); | 722 var o = new api.JobListJobs(); |
| 708 buildCounterJobListJobs++; | 723 buildCounterJobListJobs++; |
| 709 if (buildCounterJobListJobs < 3) { | 724 if (buildCounterJobListJobs < 3) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 730 checkJobReference(o.jobReference); | 745 checkJobReference(o.jobReference); |
| 731 unittest.expect(o.kind, unittest.equals('foo')); | 746 unittest.expect(o.kind, unittest.equals('foo')); |
| 732 unittest.expect(o.state, unittest.equals('foo')); | 747 unittest.expect(o.state, unittest.equals('foo')); |
| 733 checkJobStatistics(o.statistics); | 748 checkJobStatistics(o.statistics); |
| 734 checkJobStatus(o.status); | 749 checkJobStatus(o.status); |
| 735 unittest.expect(o.userEmail, unittest.equals('foo')); | 750 unittest.expect(o.userEmail, unittest.equals('foo')); |
| 736 } | 751 } |
| 737 buildCounterJobListJobs--; | 752 buildCounterJobListJobs--; |
| 738 } | 753 } |
| 739 | 754 |
| 740 buildUnnamed1486() { | 755 buildUnnamed348() { |
| 741 var o = new core.List<api.JobListJobs>(); | 756 var o = new core.List<api.JobListJobs>(); |
| 742 o.add(buildJobListJobs()); | 757 o.add(buildJobListJobs()); |
| 743 o.add(buildJobListJobs()); | 758 o.add(buildJobListJobs()); |
| 744 return o; | 759 return o; |
| 745 } | 760 } |
| 746 | 761 |
| 747 checkUnnamed1486(core.List<api.JobListJobs> o) { | 762 checkUnnamed348(core.List<api.JobListJobs> o) { |
| 748 unittest.expect(o, unittest.hasLength(2)); | 763 unittest.expect(o, unittest.hasLength(2)); |
| 749 checkJobListJobs(o[0]); | 764 checkJobListJobs(o[0]); |
| 750 checkJobListJobs(o[1]); | 765 checkJobListJobs(o[1]); |
| 751 } | 766 } |
| 752 | 767 |
| 753 core.int buildCounterJobList = 0; | 768 core.int buildCounterJobList = 0; |
| 754 buildJobList() { | 769 buildJobList() { |
| 755 var o = new api.JobList(); | 770 var o = new api.JobList(); |
| 756 buildCounterJobList++; | 771 buildCounterJobList++; |
| 757 if (buildCounterJobList < 3) { | 772 if (buildCounterJobList < 3) { |
| 758 o.etag = "foo"; | 773 o.etag = "foo"; |
| 759 o.jobs = buildUnnamed1486(); | 774 o.jobs = buildUnnamed348(); |
| 760 o.kind = "foo"; | 775 o.kind = "foo"; |
| 761 o.nextPageToken = "foo"; | 776 o.nextPageToken = "foo"; |
| 762 } | 777 } |
| 763 buildCounterJobList--; | 778 buildCounterJobList--; |
| 764 return o; | 779 return o; |
| 765 } | 780 } |
| 766 | 781 |
| 767 checkJobList(api.JobList o) { | 782 checkJobList(api.JobList o) { |
| 768 buildCounterJobList++; | 783 buildCounterJobList++; |
| 769 if (buildCounterJobList < 3) { | 784 if (buildCounterJobList < 3) { |
| 770 unittest.expect(o.etag, unittest.equals('foo')); | 785 unittest.expect(o.etag, unittest.equals('foo')); |
| 771 checkUnnamed1486(o.jobs); | 786 checkUnnamed348(o.jobs); |
| 772 unittest.expect(o.kind, unittest.equals('foo')); | 787 unittest.expect(o.kind, unittest.equals('foo')); |
| 773 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 788 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 774 } | 789 } |
| 775 buildCounterJobList--; | 790 buildCounterJobList--; |
| 776 } | 791 } |
| 777 | 792 |
| 778 core.int buildCounterJobReference = 0; | 793 core.int buildCounterJobReference = 0; |
| 779 buildJobReference() { | 794 buildJobReference() { |
| 780 var o = new api.JobReference(); | 795 var o = new api.JobReference(); |
| 781 buildCounterJobReference++; | 796 buildCounterJobReference++; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 866 buildCounterJobStatistics3++; | 881 buildCounterJobStatistics3++; |
| 867 if (buildCounterJobStatistics3 < 3) { | 882 if (buildCounterJobStatistics3 < 3) { |
| 868 unittest.expect(o.inputFileBytes, unittest.equals('foo')); | 883 unittest.expect(o.inputFileBytes, unittest.equals('foo')); |
| 869 unittest.expect(o.inputFiles, unittest.equals('foo')); | 884 unittest.expect(o.inputFiles, unittest.equals('foo')); |
| 870 unittest.expect(o.outputBytes, unittest.equals('foo')); | 885 unittest.expect(o.outputBytes, unittest.equals('foo')); |
| 871 unittest.expect(o.outputRows, unittest.equals('foo')); | 886 unittest.expect(o.outputRows, unittest.equals('foo')); |
| 872 } | 887 } |
| 873 buildCounterJobStatistics3--; | 888 buildCounterJobStatistics3--; |
| 874 } | 889 } |
| 875 | 890 |
| 876 buildUnnamed1487() { | 891 buildUnnamed349() { |
| 877 var o = new core.List<core.String>(); | 892 var o = new core.List<core.String>(); |
| 878 o.add("foo"); | 893 o.add("foo"); |
| 879 o.add("foo"); | 894 o.add("foo"); |
| 880 return o; | 895 return o; |
| 881 } | 896 } |
| 882 | 897 |
| 883 checkUnnamed1487(core.List<core.String> o) { | 898 checkUnnamed349(core.List<core.String> o) { |
| 884 unittest.expect(o, unittest.hasLength(2)); | 899 unittest.expect(o, unittest.hasLength(2)); |
| 885 unittest.expect(o[0], unittest.equals('foo')); | 900 unittest.expect(o[0], unittest.equals('foo')); |
| 886 unittest.expect(o[1], unittest.equals('foo')); | 901 unittest.expect(o[1], unittest.equals('foo')); |
| 887 } | 902 } |
| 888 | 903 |
| 889 core.int buildCounterJobStatistics4 = 0; | 904 core.int buildCounterJobStatistics4 = 0; |
| 890 buildJobStatistics4() { | 905 buildJobStatistics4() { |
| 891 var o = new api.JobStatistics4(); | 906 var o = new api.JobStatistics4(); |
| 892 buildCounterJobStatistics4++; | 907 buildCounterJobStatistics4++; |
| 893 if (buildCounterJobStatistics4 < 3) { | 908 if (buildCounterJobStatistics4 < 3) { |
| 894 o.destinationUriFileCounts = buildUnnamed1487(); | 909 o.destinationUriFileCounts = buildUnnamed349(); |
| 895 } | 910 } |
| 896 buildCounterJobStatistics4--; | 911 buildCounterJobStatistics4--; |
| 897 return o; | 912 return o; |
| 898 } | 913 } |
| 899 | 914 |
| 900 checkJobStatistics4(api.JobStatistics4 o) { | 915 checkJobStatistics4(api.JobStatistics4 o) { |
| 901 buildCounterJobStatistics4++; | 916 buildCounterJobStatistics4++; |
| 902 if (buildCounterJobStatistics4 < 3) { | 917 if (buildCounterJobStatistics4 < 3) { |
| 903 checkUnnamed1487(o.destinationUriFileCounts); | 918 checkUnnamed349(o.destinationUriFileCounts); |
| 904 } | 919 } |
| 905 buildCounterJobStatistics4--; | 920 buildCounterJobStatistics4--; |
| 906 } | 921 } |
| 907 | 922 |
| 908 buildUnnamed1488() { | 923 buildUnnamed350() { |
| 909 var o = new core.List<api.ErrorProto>(); | 924 var o = new core.List<api.ErrorProto>(); |
| 910 o.add(buildErrorProto()); | 925 o.add(buildErrorProto()); |
| 911 o.add(buildErrorProto()); | 926 o.add(buildErrorProto()); |
| 912 return o; | 927 return o; |
| 913 } | 928 } |
| 914 | 929 |
| 915 checkUnnamed1488(core.List<api.ErrorProto> o) { | 930 checkUnnamed350(core.List<api.ErrorProto> o) { |
| 916 unittest.expect(o, unittest.hasLength(2)); | 931 unittest.expect(o, unittest.hasLength(2)); |
| 917 checkErrorProto(o[0]); | 932 checkErrorProto(o[0]); |
| 918 checkErrorProto(o[1]); | 933 checkErrorProto(o[1]); |
| 919 } | 934 } |
| 920 | 935 |
| 921 core.int buildCounterJobStatus = 0; | 936 core.int buildCounterJobStatus = 0; |
| 922 buildJobStatus() { | 937 buildJobStatus() { |
| 923 var o = new api.JobStatus(); | 938 var o = new api.JobStatus(); |
| 924 buildCounterJobStatus++; | 939 buildCounterJobStatus++; |
| 925 if (buildCounterJobStatus < 3) { | 940 if (buildCounterJobStatus < 3) { |
| 926 o.errorResult = buildErrorProto(); | 941 o.errorResult = buildErrorProto(); |
| 927 o.errors = buildUnnamed1488(); | 942 o.errors = buildUnnamed350(); |
| 928 o.state = "foo"; | 943 o.state = "foo"; |
| 929 } | 944 } |
| 930 buildCounterJobStatus--; | 945 buildCounterJobStatus--; |
| 931 return o; | 946 return o; |
| 932 } | 947 } |
| 933 | 948 |
| 934 checkJobStatus(api.JobStatus o) { | 949 checkJobStatus(api.JobStatus o) { |
| 935 buildCounterJobStatus++; | 950 buildCounterJobStatus++; |
| 936 if (buildCounterJobStatus < 3) { | 951 if (buildCounterJobStatus < 3) { |
| 937 checkErrorProto(o.errorResult); | 952 checkErrorProto(o.errorResult); |
| 938 checkUnnamed1488(o.errors); | 953 checkUnnamed350(o.errors); |
| 939 unittest.expect(o.state, unittest.equals('foo')); | 954 unittest.expect(o.state, unittest.equals('foo')); |
| 940 } | 955 } |
| 941 buildCounterJobStatus--; | 956 buildCounterJobStatus--; |
| 942 } | 957 } |
| 943 | 958 |
| 944 buildJsonObject() { | 959 buildJsonObject() { |
| 945 var o = new api.JsonObject(); | 960 var o = new api.JsonObject(); |
| 946 o["a"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 961 o["a"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 947 o["b"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 962 o["b"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 948 return o; | 963 return o; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 974 if (buildCounterProjectListProjects < 3) { | 989 if (buildCounterProjectListProjects < 3) { |
| 975 unittest.expect(o.friendlyName, unittest.equals('foo')); | 990 unittest.expect(o.friendlyName, unittest.equals('foo')); |
| 976 unittest.expect(o.id, unittest.equals('foo')); | 991 unittest.expect(o.id, unittest.equals('foo')); |
| 977 unittest.expect(o.kind, unittest.equals('foo')); | 992 unittest.expect(o.kind, unittest.equals('foo')); |
| 978 unittest.expect(o.numericId, unittest.equals('foo')); | 993 unittest.expect(o.numericId, unittest.equals('foo')); |
| 979 checkProjectReference(o.projectReference); | 994 checkProjectReference(o.projectReference); |
| 980 } | 995 } |
| 981 buildCounterProjectListProjects--; | 996 buildCounterProjectListProjects--; |
| 982 } | 997 } |
| 983 | 998 |
| 984 buildUnnamed1489() { | 999 buildUnnamed351() { |
| 985 var o = new core.List<api.ProjectListProjects>(); | 1000 var o = new core.List<api.ProjectListProjects>(); |
| 986 o.add(buildProjectListProjects()); | 1001 o.add(buildProjectListProjects()); |
| 987 o.add(buildProjectListProjects()); | 1002 o.add(buildProjectListProjects()); |
| 988 return o; | 1003 return o; |
| 989 } | 1004 } |
| 990 | 1005 |
| 991 checkUnnamed1489(core.List<api.ProjectListProjects> o) { | 1006 checkUnnamed351(core.List<api.ProjectListProjects> o) { |
| 992 unittest.expect(o, unittest.hasLength(2)); | 1007 unittest.expect(o, unittest.hasLength(2)); |
| 993 checkProjectListProjects(o[0]); | 1008 checkProjectListProjects(o[0]); |
| 994 checkProjectListProjects(o[1]); | 1009 checkProjectListProjects(o[1]); |
| 995 } | 1010 } |
| 996 | 1011 |
| 997 core.int buildCounterProjectList = 0; | 1012 core.int buildCounterProjectList = 0; |
| 998 buildProjectList() { | 1013 buildProjectList() { |
| 999 var o = new api.ProjectList(); | 1014 var o = new api.ProjectList(); |
| 1000 buildCounterProjectList++; | 1015 buildCounterProjectList++; |
| 1001 if (buildCounterProjectList < 3) { | 1016 if (buildCounterProjectList < 3) { |
| 1002 o.etag = "foo"; | 1017 o.etag = "foo"; |
| 1003 o.kind = "foo"; | 1018 o.kind = "foo"; |
| 1004 o.nextPageToken = "foo"; | 1019 o.nextPageToken = "foo"; |
| 1005 o.projects = buildUnnamed1489(); | 1020 o.projects = buildUnnamed351(); |
| 1006 o.totalItems = 42; | 1021 o.totalItems = 42; |
| 1007 } | 1022 } |
| 1008 buildCounterProjectList--; | 1023 buildCounterProjectList--; |
| 1009 return o; | 1024 return o; |
| 1010 } | 1025 } |
| 1011 | 1026 |
| 1012 checkProjectList(api.ProjectList o) { | 1027 checkProjectList(api.ProjectList o) { |
| 1013 buildCounterProjectList++; | 1028 buildCounterProjectList++; |
| 1014 if (buildCounterProjectList < 3) { | 1029 if (buildCounterProjectList < 3) { |
| 1015 unittest.expect(o.etag, unittest.equals('foo')); | 1030 unittest.expect(o.etag, unittest.equals('foo')); |
| 1016 unittest.expect(o.kind, unittest.equals('foo')); | 1031 unittest.expect(o.kind, unittest.equals('foo')); |
| 1017 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1032 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1018 checkUnnamed1489(o.projects); | 1033 checkUnnamed351(o.projects); |
| 1019 unittest.expect(o.totalItems, unittest.equals(42)); | 1034 unittest.expect(o.totalItems, unittest.equals(42)); |
| 1020 } | 1035 } |
| 1021 buildCounterProjectList--; | 1036 buildCounterProjectList--; |
| 1022 } | 1037 } |
| 1023 | 1038 |
| 1024 core.int buildCounterProjectReference = 0; | 1039 core.int buildCounterProjectReference = 0; |
| 1025 buildProjectReference() { | 1040 buildProjectReference() { |
| 1026 var o = new api.ProjectReference(); | 1041 var o = new api.ProjectReference(); |
| 1027 buildCounterProjectReference++; | 1042 buildCounterProjectReference++; |
| 1028 if (buildCounterProjectReference < 3) { | 1043 if (buildCounterProjectReference < 3) { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1066 unittest.expect(o.kind, unittest.equals('foo')); | 1081 unittest.expect(o.kind, unittest.equals('foo')); |
| 1067 unittest.expect(o.maxResults, unittest.equals(42)); | 1082 unittest.expect(o.maxResults, unittest.equals(42)); |
| 1068 unittest.expect(o.preserveNulls, unittest.isTrue); | 1083 unittest.expect(o.preserveNulls, unittest.isTrue); |
| 1069 unittest.expect(o.query, unittest.equals('foo')); | 1084 unittest.expect(o.query, unittest.equals('foo')); |
| 1070 unittest.expect(o.timeoutMs, unittest.equals(42)); | 1085 unittest.expect(o.timeoutMs, unittest.equals(42)); |
| 1071 unittest.expect(o.useQueryCache, unittest.isTrue); | 1086 unittest.expect(o.useQueryCache, unittest.isTrue); |
| 1072 } | 1087 } |
| 1073 buildCounterQueryRequest--; | 1088 buildCounterQueryRequest--; |
| 1074 } | 1089 } |
| 1075 | 1090 |
| 1076 buildUnnamed1490() { | 1091 buildUnnamed352() { |
| 1077 var o = new core.List<api.TableRow>(); | 1092 var o = new core.List<api.TableRow>(); |
| 1078 o.add(buildTableRow()); | 1093 o.add(buildTableRow()); |
| 1079 o.add(buildTableRow()); | 1094 o.add(buildTableRow()); |
| 1080 return o; | 1095 return o; |
| 1081 } | 1096 } |
| 1082 | 1097 |
| 1083 checkUnnamed1490(core.List<api.TableRow> o) { | 1098 checkUnnamed352(core.List<api.TableRow> o) { |
| 1084 unittest.expect(o, unittest.hasLength(2)); | 1099 unittest.expect(o, unittest.hasLength(2)); |
| 1085 checkTableRow(o[0]); | 1100 checkTableRow(o[0]); |
| 1086 checkTableRow(o[1]); | 1101 checkTableRow(o[1]); |
| 1087 } | 1102 } |
| 1088 | 1103 |
| 1089 core.int buildCounterQueryResponse = 0; | 1104 core.int buildCounterQueryResponse = 0; |
| 1090 buildQueryResponse() { | 1105 buildQueryResponse() { |
| 1091 var o = new api.QueryResponse(); | 1106 var o = new api.QueryResponse(); |
| 1092 buildCounterQueryResponse++; | 1107 buildCounterQueryResponse++; |
| 1093 if (buildCounterQueryResponse < 3) { | 1108 if (buildCounterQueryResponse < 3) { |
| 1094 o.cacheHit = true; | 1109 o.cacheHit = true; |
| 1095 o.jobComplete = true; | 1110 o.jobComplete = true; |
| 1096 o.jobReference = buildJobReference(); | 1111 o.jobReference = buildJobReference(); |
| 1097 o.kind = "foo"; | 1112 o.kind = "foo"; |
| 1098 o.pageToken = "foo"; | 1113 o.pageToken = "foo"; |
| 1099 o.rows = buildUnnamed1490(); | 1114 o.rows = buildUnnamed352(); |
| 1100 o.schema = buildTableSchema(); | 1115 o.schema = buildTableSchema(); |
| 1101 o.totalBytesProcessed = "foo"; | 1116 o.totalBytesProcessed = "foo"; |
| 1102 o.totalRows = "foo"; | 1117 o.totalRows = "foo"; |
| 1103 } | 1118 } |
| 1104 buildCounterQueryResponse--; | 1119 buildCounterQueryResponse--; |
| 1105 return o; | 1120 return o; |
| 1106 } | 1121 } |
| 1107 | 1122 |
| 1108 checkQueryResponse(api.QueryResponse o) { | 1123 checkQueryResponse(api.QueryResponse o) { |
| 1109 buildCounterQueryResponse++; | 1124 buildCounterQueryResponse++; |
| 1110 if (buildCounterQueryResponse < 3) { | 1125 if (buildCounterQueryResponse < 3) { |
| 1111 unittest.expect(o.cacheHit, unittest.isTrue); | 1126 unittest.expect(o.cacheHit, unittest.isTrue); |
| 1112 unittest.expect(o.jobComplete, unittest.isTrue); | 1127 unittest.expect(o.jobComplete, unittest.isTrue); |
| 1113 checkJobReference(o.jobReference); | 1128 checkJobReference(o.jobReference); |
| 1114 unittest.expect(o.kind, unittest.equals('foo')); | 1129 unittest.expect(o.kind, unittest.equals('foo')); |
| 1115 unittest.expect(o.pageToken, unittest.equals('foo')); | 1130 unittest.expect(o.pageToken, unittest.equals('foo')); |
| 1116 checkUnnamed1490(o.rows); | 1131 checkUnnamed352(o.rows); |
| 1117 checkTableSchema(o.schema); | 1132 checkTableSchema(o.schema); |
| 1118 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); | 1133 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); |
| 1119 unittest.expect(o.totalRows, unittest.equals('foo')); | 1134 unittest.expect(o.totalRows, unittest.equals('foo')); |
| 1120 } | 1135 } |
| 1121 buildCounterQueryResponse--; | 1136 buildCounterQueryResponse--; |
| 1122 } | 1137 } |
| 1123 | 1138 |
| 1124 core.int buildCounterTable = 0; | 1139 core.int buildCounterTable = 0; |
| 1125 buildTable() { | 1140 buildTable() { |
| 1126 var o = new api.Table(); | 1141 var o = new api.Table(); |
| 1127 buildCounterTable++; | 1142 buildCounterTable++; |
| 1128 if (buildCounterTable < 3) { | 1143 if (buildCounterTable < 3) { |
| 1129 o.creationTime = "foo"; | 1144 o.creationTime = "foo"; |
| 1130 o.description = "foo"; | 1145 o.description = "foo"; |
| 1131 o.etag = "foo"; | 1146 o.etag = "foo"; |
| 1132 o.expirationTime = "foo"; | 1147 o.expirationTime = "foo"; |
| 1148 o.externalDataConfiguration = buildExternalDataConfiguration(); |
| 1133 o.friendlyName = "foo"; | 1149 o.friendlyName = "foo"; |
| 1134 o.id = "foo"; | 1150 o.id = "foo"; |
| 1135 o.kind = "foo"; | 1151 o.kind = "foo"; |
| 1136 o.lastModifiedTime = "foo"; | 1152 o.lastModifiedTime = "foo"; |
| 1137 o.location = "foo"; | 1153 o.location = "foo"; |
| 1138 o.numBytes = "foo"; | 1154 o.numBytes = "foo"; |
| 1139 o.numRows = "foo"; | 1155 o.numRows = "foo"; |
| 1140 o.schema = buildTableSchema(); | 1156 o.schema = buildTableSchema(); |
| 1141 o.selfLink = "foo"; | 1157 o.selfLink = "foo"; |
| 1142 o.tableReference = buildTableReference(); | 1158 o.tableReference = buildTableReference(); |
| 1143 o.type = "foo"; | 1159 o.type = "foo"; |
| 1144 o.view = buildViewDefinition(); | 1160 o.view = buildViewDefinition(); |
| 1145 } | 1161 } |
| 1146 buildCounterTable--; | 1162 buildCounterTable--; |
| 1147 return o; | 1163 return o; |
| 1148 } | 1164 } |
| 1149 | 1165 |
| 1150 checkTable(api.Table o) { | 1166 checkTable(api.Table o) { |
| 1151 buildCounterTable++; | 1167 buildCounterTable++; |
| 1152 if (buildCounterTable < 3) { | 1168 if (buildCounterTable < 3) { |
| 1153 unittest.expect(o.creationTime, unittest.equals('foo')); | 1169 unittest.expect(o.creationTime, unittest.equals('foo')); |
| 1154 unittest.expect(o.description, unittest.equals('foo')); | 1170 unittest.expect(o.description, unittest.equals('foo')); |
| 1155 unittest.expect(o.etag, unittest.equals('foo')); | 1171 unittest.expect(o.etag, unittest.equals('foo')); |
| 1156 unittest.expect(o.expirationTime, unittest.equals('foo')); | 1172 unittest.expect(o.expirationTime, unittest.equals('foo')); |
| 1173 checkExternalDataConfiguration(o.externalDataConfiguration); |
| 1157 unittest.expect(o.friendlyName, unittest.equals('foo')); | 1174 unittest.expect(o.friendlyName, unittest.equals('foo')); |
| 1158 unittest.expect(o.id, unittest.equals('foo')); | 1175 unittest.expect(o.id, unittest.equals('foo')); |
| 1159 unittest.expect(o.kind, unittest.equals('foo')); | 1176 unittest.expect(o.kind, unittest.equals('foo')); |
| 1160 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); | 1177 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); |
| 1161 unittest.expect(o.location, unittest.equals('foo')); | 1178 unittest.expect(o.location, unittest.equals('foo')); |
| 1162 unittest.expect(o.numBytes, unittest.equals('foo')); | 1179 unittest.expect(o.numBytes, unittest.equals('foo')); |
| 1163 unittest.expect(o.numRows, unittest.equals('foo')); | 1180 unittest.expect(o.numRows, unittest.equals('foo')); |
| 1164 checkTableSchema(o.schema); | 1181 checkTableSchema(o.schema); |
| 1165 unittest.expect(o.selfLink, unittest.equals('foo')); | 1182 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 1166 checkTableReference(o.tableReference); | 1183 checkTableReference(o.tableReference); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1203 | 1220 |
| 1204 checkTableDataInsertAllRequestRows(api.TableDataInsertAllRequestRows o) { | 1221 checkTableDataInsertAllRequestRows(api.TableDataInsertAllRequestRows o) { |
| 1205 buildCounterTableDataInsertAllRequestRows++; | 1222 buildCounterTableDataInsertAllRequestRows++; |
| 1206 if (buildCounterTableDataInsertAllRequestRows < 3) { | 1223 if (buildCounterTableDataInsertAllRequestRows < 3) { |
| 1207 unittest.expect(o.insertId, unittest.equals('foo')); | 1224 unittest.expect(o.insertId, unittest.equals('foo')); |
| 1208 checkJsonObject(o.json); | 1225 checkJsonObject(o.json); |
| 1209 } | 1226 } |
| 1210 buildCounterTableDataInsertAllRequestRows--; | 1227 buildCounterTableDataInsertAllRequestRows--; |
| 1211 } | 1228 } |
| 1212 | 1229 |
| 1213 buildUnnamed1491() { | 1230 buildUnnamed353() { |
| 1214 var o = new core.List<api.TableDataInsertAllRequestRows>(); | 1231 var o = new core.List<api.TableDataInsertAllRequestRows>(); |
| 1215 o.add(buildTableDataInsertAllRequestRows()); | 1232 o.add(buildTableDataInsertAllRequestRows()); |
| 1216 o.add(buildTableDataInsertAllRequestRows()); | 1233 o.add(buildTableDataInsertAllRequestRows()); |
| 1217 return o; | 1234 return o; |
| 1218 } | 1235 } |
| 1219 | 1236 |
| 1220 checkUnnamed1491(core.List<api.TableDataInsertAllRequestRows> o) { | 1237 checkUnnamed353(core.List<api.TableDataInsertAllRequestRows> o) { |
| 1221 unittest.expect(o, unittest.hasLength(2)); | 1238 unittest.expect(o, unittest.hasLength(2)); |
| 1222 checkTableDataInsertAllRequestRows(o[0]); | 1239 checkTableDataInsertAllRequestRows(o[0]); |
| 1223 checkTableDataInsertAllRequestRows(o[1]); | 1240 checkTableDataInsertAllRequestRows(o[1]); |
| 1224 } | 1241 } |
| 1225 | 1242 |
| 1226 core.int buildCounterTableDataInsertAllRequest = 0; | 1243 core.int buildCounterTableDataInsertAllRequest = 0; |
| 1227 buildTableDataInsertAllRequest() { | 1244 buildTableDataInsertAllRequest() { |
| 1228 var o = new api.TableDataInsertAllRequest(); | 1245 var o = new api.TableDataInsertAllRequest(); |
| 1229 buildCounterTableDataInsertAllRequest++; | 1246 buildCounterTableDataInsertAllRequest++; |
| 1230 if (buildCounterTableDataInsertAllRequest < 3) { | 1247 if (buildCounterTableDataInsertAllRequest < 3) { |
| 1231 o.ignoreUnknownValues = true; | 1248 o.ignoreUnknownValues = true; |
| 1232 o.kind = "foo"; | 1249 o.kind = "foo"; |
| 1233 o.rows = buildUnnamed1491(); | 1250 o.rows = buildUnnamed353(); |
| 1234 o.skipInvalidRows = true; | 1251 o.skipInvalidRows = true; |
| 1235 } | 1252 } |
| 1236 buildCounterTableDataInsertAllRequest--; | 1253 buildCounterTableDataInsertAllRequest--; |
| 1237 return o; | 1254 return o; |
| 1238 } | 1255 } |
| 1239 | 1256 |
| 1240 checkTableDataInsertAllRequest(api.TableDataInsertAllRequest o) { | 1257 checkTableDataInsertAllRequest(api.TableDataInsertAllRequest o) { |
| 1241 buildCounterTableDataInsertAllRequest++; | 1258 buildCounterTableDataInsertAllRequest++; |
| 1242 if (buildCounterTableDataInsertAllRequest < 3) { | 1259 if (buildCounterTableDataInsertAllRequest < 3) { |
| 1243 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); | 1260 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); |
| 1244 unittest.expect(o.kind, unittest.equals('foo')); | 1261 unittest.expect(o.kind, unittest.equals('foo')); |
| 1245 checkUnnamed1491(o.rows); | 1262 checkUnnamed353(o.rows); |
| 1246 unittest.expect(o.skipInvalidRows, unittest.isTrue); | 1263 unittest.expect(o.skipInvalidRows, unittest.isTrue); |
| 1247 } | 1264 } |
| 1248 buildCounterTableDataInsertAllRequest--; | 1265 buildCounterTableDataInsertAllRequest--; |
| 1249 } | 1266 } |
| 1250 | 1267 |
| 1251 buildUnnamed1492() { | 1268 buildUnnamed354() { |
| 1252 var o = new core.List<api.ErrorProto>(); | 1269 var o = new core.List<api.ErrorProto>(); |
| 1253 o.add(buildErrorProto()); | 1270 o.add(buildErrorProto()); |
| 1254 o.add(buildErrorProto()); | 1271 o.add(buildErrorProto()); |
| 1255 return o; | 1272 return o; |
| 1256 } | 1273 } |
| 1257 | 1274 |
| 1258 checkUnnamed1492(core.List<api.ErrorProto> o) { | 1275 checkUnnamed354(core.List<api.ErrorProto> o) { |
| 1259 unittest.expect(o, unittest.hasLength(2)); | 1276 unittest.expect(o, unittest.hasLength(2)); |
| 1260 checkErrorProto(o[0]); | 1277 checkErrorProto(o[0]); |
| 1261 checkErrorProto(o[1]); | 1278 checkErrorProto(o[1]); |
| 1262 } | 1279 } |
| 1263 | 1280 |
| 1264 core.int buildCounterTableDataInsertAllResponseInsertErrors = 0; | 1281 core.int buildCounterTableDataInsertAllResponseInsertErrors = 0; |
| 1265 buildTableDataInsertAllResponseInsertErrors() { | 1282 buildTableDataInsertAllResponseInsertErrors() { |
| 1266 var o = new api.TableDataInsertAllResponseInsertErrors(); | 1283 var o = new api.TableDataInsertAllResponseInsertErrors(); |
| 1267 buildCounterTableDataInsertAllResponseInsertErrors++; | 1284 buildCounterTableDataInsertAllResponseInsertErrors++; |
| 1268 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { | 1285 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { |
| 1269 o.errors = buildUnnamed1492(); | 1286 o.errors = buildUnnamed354(); |
| 1270 o.index = 42; | 1287 o.index = 42; |
| 1271 } | 1288 } |
| 1272 buildCounterTableDataInsertAllResponseInsertErrors--; | 1289 buildCounterTableDataInsertAllResponseInsertErrors--; |
| 1273 return o; | 1290 return o; |
| 1274 } | 1291 } |
| 1275 | 1292 |
| 1276 checkTableDataInsertAllResponseInsertErrors(api.TableDataInsertAllResponseInsert
Errors o) { | 1293 checkTableDataInsertAllResponseInsertErrors(api.TableDataInsertAllResponseInsert
Errors o) { |
| 1277 buildCounterTableDataInsertAllResponseInsertErrors++; | 1294 buildCounterTableDataInsertAllResponseInsertErrors++; |
| 1278 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { | 1295 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { |
| 1279 checkUnnamed1492(o.errors); | 1296 checkUnnamed354(o.errors); |
| 1280 unittest.expect(o.index, unittest.equals(42)); | 1297 unittest.expect(o.index, unittest.equals(42)); |
| 1281 } | 1298 } |
| 1282 buildCounterTableDataInsertAllResponseInsertErrors--; | 1299 buildCounterTableDataInsertAllResponseInsertErrors--; |
| 1283 } | 1300 } |
| 1284 | 1301 |
| 1285 buildUnnamed1493() { | 1302 buildUnnamed355() { |
| 1286 var o = new core.List<api.TableDataInsertAllResponseInsertErrors>(); | 1303 var o = new core.List<api.TableDataInsertAllResponseInsertErrors>(); |
| 1287 o.add(buildTableDataInsertAllResponseInsertErrors()); | 1304 o.add(buildTableDataInsertAllResponseInsertErrors()); |
| 1288 o.add(buildTableDataInsertAllResponseInsertErrors()); | 1305 o.add(buildTableDataInsertAllResponseInsertErrors()); |
| 1289 return o; | 1306 return o; |
| 1290 } | 1307 } |
| 1291 | 1308 |
| 1292 checkUnnamed1493(core.List<api.TableDataInsertAllResponseInsertErrors> o) { | 1309 checkUnnamed355(core.List<api.TableDataInsertAllResponseInsertErrors> o) { |
| 1293 unittest.expect(o, unittest.hasLength(2)); | 1310 unittest.expect(o, unittest.hasLength(2)); |
| 1294 checkTableDataInsertAllResponseInsertErrors(o[0]); | 1311 checkTableDataInsertAllResponseInsertErrors(o[0]); |
| 1295 checkTableDataInsertAllResponseInsertErrors(o[1]); | 1312 checkTableDataInsertAllResponseInsertErrors(o[1]); |
| 1296 } | 1313 } |
| 1297 | 1314 |
| 1298 core.int buildCounterTableDataInsertAllResponse = 0; | 1315 core.int buildCounterTableDataInsertAllResponse = 0; |
| 1299 buildTableDataInsertAllResponse() { | 1316 buildTableDataInsertAllResponse() { |
| 1300 var o = new api.TableDataInsertAllResponse(); | 1317 var o = new api.TableDataInsertAllResponse(); |
| 1301 buildCounterTableDataInsertAllResponse++; | 1318 buildCounterTableDataInsertAllResponse++; |
| 1302 if (buildCounterTableDataInsertAllResponse < 3) { | 1319 if (buildCounterTableDataInsertAllResponse < 3) { |
| 1303 o.insertErrors = buildUnnamed1493(); | 1320 o.insertErrors = buildUnnamed355(); |
| 1304 o.kind = "foo"; | 1321 o.kind = "foo"; |
| 1305 } | 1322 } |
| 1306 buildCounterTableDataInsertAllResponse--; | 1323 buildCounterTableDataInsertAllResponse--; |
| 1307 return o; | 1324 return o; |
| 1308 } | 1325 } |
| 1309 | 1326 |
| 1310 checkTableDataInsertAllResponse(api.TableDataInsertAllResponse o) { | 1327 checkTableDataInsertAllResponse(api.TableDataInsertAllResponse o) { |
| 1311 buildCounterTableDataInsertAllResponse++; | 1328 buildCounterTableDataInsertAllResponse++; |
| 1312 if (buildCounterTableDataInsertAllResponse < 3) { | 1329 if (buildCounterTableDataInsertAllResponse < 3) { |
| 1313 checkUnnamed1493(o.insertErrors); | 1330 checkUnnamed355(o.insertErrors); |
| 1314 unittest.expect(o.kind, unittest.equals('foo')); | 1331 unittest.expect(o.kind, unittest.equals('foo')); |
| 1315 } | 1332 } |
| 1316 buildCounterTableDataInsertAllResponse--; | 1333 buildCounterTableDataInsertAllResponse--; |
| 1317 } | 1334 } |
| 1318 | 1335 |
| 1319 buildUnnamed1494() { | 1336 buildUnnamed356() { |
| 1320 var o = new core.List<api.TableRow>(); | 1337 var o = new core.List<api.TableRow>(); |
| 1321 o.add(buildTableRow()); | 1338 o.add(buildTableRow()); |
| 1322 o.add(buildTableRow()); | 1339 o.add(buildTableRow()); |
| 1323 return o; | 1340 return o; |
| 1324 } | 1341 } |
| 1325 | 1342 |
| 1326 checkUnnamed1494(core.List<api.TableRow> o) { | 1343 checkUnnamed356(core.List<api.TableRow> o) { |
| 1327 unittest.expect(o, unittest.hasLength(2)); | 1344 unittest.expect(o, unittest.hasLength(2)); |
| 1328 checkTableRow(o[0]); | 1345 checkTableRow(o[0]); |
| 1329 checkTableRow(o[1]); | 1346 checkTableRow(o[1]); |
| 1330 } | 1347 } |
| 1331 | 1348 |
| 1332 core.int buildCounterTableDataList = 0; | 1349 core.int buildCounterTableDataList = 0; |
| 1333 buildTableDataList() { | 1350 buildTableDataList() { |
| 1334 var o = new api.TableDataList(); | 1351 var o = new api.TableDataList(); |
| 1335 buildCounterTableDataList++; | 1352 buildCounterTableDataList++; |
| 1336 if (buildCounterTableDataList < 3) { | 1353 if (buildCounterTableDataList < 3) { |
| 1337 o.etag = "foo"; | 1354 o.etag = "foo"; |
| 1338 o.kind = "foo"; | 1355 o.kind = "foo"; |
| 1339 o.pageToken = "foo"; | 1356 o.pageToken = "foo"; |
| 1340 o.rows = buildUnnamed1494(); | 1357 o.rows = buildUnnamed356(); |
| 1341 o.totalRows = "foo"; | 1358 o.totalRows = "foo"; |
| 1342 } | 1359 } |
| 1343 buildCounterTableDataList--; | 1360 buildCounterTableDataList--; |
| 1344 return o; | 1361 return o; |
| 1345 } | 1362 } |
| 1346 | 1363 |
| 1347 checkTableDataList(api.TableDataList o) { | 1364 checkTableDataList(api.TableDataList o) { |
| 1348 buildCounterTableDataList++; | 1365 buildCounterTableDataList++; |
| 1349 if (buildCounterTableDataList < 3) { | 1366 if (buildCounterTableDataList < 3) { |
| 1350 unittest.expect(o.etag, unittest.equals('foo')); | 1367 unittest.expect(o.etag, unittest.equals('foo')); |
| 1351 unittest.expect(o.kind, unittest.equals('foo')); | 1368 unittest.expect(o.kind, unittest.equals('foo')); |
| 1352 unittest.expect(o.pageToken, unittest.equals('foo')); | 1369 unittest.expect(o.pageToken, unittest.equals('foo')); |
| 1353 checkUnnamed1494(o.rows); | 1370 checkUnnamed356(o.rows); |
| 1354 unittest.expect(o.totalRows, unittest.equals('foo')); | 1371 unittest.expect(o.totalRows, unittest.equals('foo')); |
| 1355 } | 1372 } |
| 1356 buildCounterTableDataList--; | 1373 buildCounterTableDataList--; |
| 1357 } | 1374 } |
| 1358 | 1375 |
| 1359 buildUnnamed1495() { | 1376 buildUnnamed357() { |
| 1360 var o = new core.List<api.TableFieldSchema>(); | 1377 var o = new core.List<api.TableFieldSchema>(); |
| 1361 o.add(buildTableFieldSchema()); | 1378 o.add(buildTableFieldSchema()); |
| 1362 o.add(buildTableFieldSchema()); | 1379 o.add(buildTableFieldSchema()); |
| 1363 return o; | 1380 return o; |
| 1364 } | 1381 } |
| 1365 | 1382 |
| 1366 checkUnnamed1495(core.List<api.TableFieldSchema> o) { | 1383 checkUnnamed357(core.List<api.TableFieldSchema> o) { |
| 1367 unittest.expect(o, unittest.hasLength(2)); | 1384 unittest.expect(o, unittest.hasLength(2)); |
| 1368 checkTableFieldSchema(o[0]); | 1385 checkTableFieldSchema(o[0]); |
| 1369 checkTableFieldSchema(o[1]); | 1386 checkTableFieldSchema(o[1]); |
| 1370 } | 1387 } |
| 1371 | 1388 |
| 1372 core.int buildCounterTableFieldSchema = 0; | 1389 core.int buildCounterTableFieldSchema = 0; |
| 1373 buildTableFieldSchema() { | 1390 buildTableFieldSchema() { |
| 1374 var o = new api.TableFieldSchema(); | 1391 var o = new api.TableFieldSchema(); |
| 1375 buildCounterTableFieldSchema++; | 1392 buildCounterTableFieldSchema++; |
| 1376 if (buildCounterTableFieldSchema < 3) { | 1393 if (buildCounterTableFieldSchema < 3) { |
| 1377 o.description = "foo"; | 1394 o.description = "foo"; |
| 1378 o.fields = buildUnnamed1495(); | 1395 o.fields = buildUnnamed357(); |
| 1379 o.mode = "foo"; | 1396 o.mode = "foo"; |
| 1380 o.name = "foo"; | 1397 o.name = "foo"; |
| 1381 o.type = "foo"; | 1398 o.type = "foo"; |
| 1382 } | 1399 } |
| 1383 buildCounterTableFieldSchema--; | 1400 buildCounterTableFieldSchema--; |
| 1384 return o; | 1401 return o; |
| 1385 } | 1402 } |
| 1386 | 1403 |
| 1387 checkTableFieldSchema(api.TableFieldSchema o) { | 1404 checkTableFieldSchema(api.TableFieldSchema o) { |
| 1388 buildCounterTableFieldSchema++; | 1405 buildCounterTableFieldSchema++; |
| 1389 if (buildCounterTableFieldSchema < 3) { | 1406 if (buildCounterTableFieldSchema < 3) { |
| 1390 unittest.expect(o.description, unittest.equals('foo')); | 1407 unittest.expect(o.description, unittest.equals('foo')); |
| 1391 checkUnnamed1495(o.fields); | 1408 checkUnnamed357(o.fields); |
| 1392 unittest.expect(o.mode, unittest.equals('foo')); | 1409 unittest.expect(o.mode, unittest.equals('foo')); |
| 1393 unittest.expect(o.name, unittest.equals('foo')); | 1410 unittest.expect(o.name, unittest.equals('foo')); |
| 1394 unittest.expect(o.type, unittest.equals('foo')); | 1411 unittest.expect(o.type, unittest.equals('foo')); |
| 1395 } | 1412 } |
| 1396 buildCounterTableFieldSchema--; | 1413 buildCounterTableFieldSchema--; |
| 1397 } | 1414 } |
| 1398 | 1415 |
| 1399 core.int buildCounterTableListTables = 0; | 1416 core.int buildCounterTableListTables = 0; |
| 1400 buildTableListTables() { | 1417 buildTableListTables() { |
| 1401 var o = new api.TableListTables(); | 1418 var o = new api.TableListTables(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1416 if (buildCounterTableListTables < 3) { | 1433 if (buildCounterTableListTables < 3) { |
| 1417 unittest.expect(o.friendlyName, unittest.equals('foo')); | 1434 unittest.expect(o.friendlyName, unittest.equals('foo')); |
| 1418 unittest.expect(o.id, unittest.equals('foo')); | 1435 unittest.expect(o.id, unittest.equals('foo')); |
| 1419 unittest.expect(o.kind, unittest.equals('foo')); | 1436 unittest.expect(o.kind, unittest.equals('foo')); |
| 1420 checkTableReference(o.tableReference); | 1437 checkTableReference(o.tableReference); |
| 1421 unittest.expect(o.type, unittest.equals('foo')); | 1438 unittest.expect(o.type, unittest.equals('foo')); |
| 1422 } | 1439 } |
| 1423 buildCounterTableListTables--; | 1440 buildCounterTableListTables--; |
| 1424 } | 1441 } |
| 1425 | 1442 |
| 1426 buildUnnamed1496() { | 1443 buildUnnamed358() { |
| 1427 var o = new core.List<api.TableListTables>(); | 1444 var o = new core.List<api.TableListTables>(); |
| 1428 o.add(buildTableListTables()); | 1445 o.add(buildTableListTables()); |
| 1429 o.add(buildTableListTables()); | 1446 o.add(buildTableListTables()); |
| 1430 return o; | 1447 return o; |
| 1431 } | 1448 } |
| 1432 | 1449 |
| 1433 checkUnnamed1496(core.List<api.TableListTables> o) { | 1450 checkUnnamed358(core.List<api.TableListTables> o) { |
| 1434 unittest.expect(o, unittest.hasLength(2)); | 1451 unittest.expect(o, unittest.hasLength(2)); |
| 1435 checkTableListTables(o[0]); | 1452 checkTableListTables(o[0]); |
| 1436 checkTableListTables(o[1]); | 1453 checkTableListTables(o[1]); |
| 1437 } | 1454 } |
| 1438 | 1455 |
| 1439 core.int buildCounterTableList = 0; | 1456 core.int buildCounterTableList = 0; |
| 1440 buildTableList() { | 1457 buildTableList() { |
| 1441 var o = new api.TableList(); | 1458 var o = new api.TableList(); |
| 1442 buildCounterTableList++; | 1459 buildCounterTableList++; |
| 1443 if (buildCounterTableList < 3) { | 1460 if (buildCounterTableList < 3) { |
| 1444 o.etag = "foo"; | 1461 o.etag = "foo"; |
| 1445 o.kind = "foo"; | 1462 o.kind = "foo"; |
| 1446 o.nextPageToken = "foo"; | 1463 o.nextPageToken = "foo"; |
| 1447 o.tables = buildUnnamed1496(); | 1464 o.tables = buildUnnamed358(); |
| 1448 o.totalItems = 42; | 1465 o.totalItems = 42; |
| 1449 } | 1466 } |
| 1450 buildCounterTableList--; | 1467 buildCounterTableList--; |
| 1451 return o; | 1468 return o; |
| 1452 } | 1469 } |
| 1453 | 1470 |
| 1454 checkTableList(api.TableList o) { | 1471 checkTableList(api.TableList o) { |
| 1455 buildCounterTableList++; | 1472 buildCounterTableList++; |
| 1456 if (buildCounterTableList < 3) { | 1473 if (buildCounterTableList < 3) { |
| 1457 unittest.expect(o.etag, unittest.equals('foo')); | 1474 unittest.expect(o.etag, unittest.equals('foo')); |
| 1458 unittest.expect(o.kind, unittest.equals('foo')); | 1475 unittest.expect(o.kind, unittest.equals('foo')); |
| 1459 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1476 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1460 checkUnnamed1496(o.tables); | 1477 checkUnnamed358(o.tables); |
| 1461 unittest.expect(o.totalItems, unittest.equals(42)); | 1478 unittest.expect(o.totalItems, unittest.equals(42)); |
| 1462 } | 1479 } |
| 1463 buildCounterTableList--; | 1480 buildCounterTableList--; |
| 1464 } | 1481 } |
| 1465 | 1482 |
| 1466 core.int buildCounterTableReference = 0; | 1483 core.int buildCounterTableReference = 0; |
| 1467 buildTableReference() { | 1484 buildTableReference() { |
| 1468 var o = new api.TableReference(); | 1485 var o = new api.TableReference(); |
| 1469 buildCounterTableReference++; | 1486 buildCounterTableReference++; |
| 1470 if (buildCounterTableReference < 3) { | 1487 if (buildCounterTableReference < 3) { |
| 1471 o.datasetId = "foo"; | 1488 o.datasetId = "foo"; |
| 1472 o.projectId = "foo"; | 1489 o.projectId = "foo"; |
| 1473 o.tableId = "foo"; | 1490 o.tableId = "foo"; |
| 1474 } | 1491 } |
| 1475 buildCounterTableReference--; | 1492 buildCounterTableReference--; |
| 1476 return o; | 1493 return o; |
| 1477 } | 1494 } |
| 1478 | 1495 |
| 1479 checkTableReference(api.TableReference o) { | 1496 checkTableReference(api.TableReference o) { |
| 1480 buildCounterTableReference++; | 1497 buildCounterTableReference++; |
| 1481 if (buildCounterTableReference < 3) { | 1498 if (buildCounterTableReference < 3) { |
| 1482 unittest.expect(o.datasetId, unittest.equals('foo')); | 1499 unittest.expect(o.datasetId, unittest.equals('foo')); |
| 1483 unittest.expect(o.projectId, unittest.equals('foo')); | 1500 unittest.expect(o.projectId, unittest.equals('foo')); |
| 1484 unittest.expect(o.tableId, unittest.equals('foo')); | 1501 unittest.expect(o.tableId, unittest.equals('foo')); |
| 1485 } | 1502 } |
| 1486 buildCounterTableReference--; | 1503 buildCounterTableReference--; |
| 1487 } | 1504 } |
| 1488 | 1505 |
| 1489 buildUnnamed1497() { | 1506 buildUnnamed359() { |
| 1490 var o = new core.List<api.TableCell>(); | 1507 var o = new core.List<api.TableCell>(); |
| 1491 o.add(buildTableCell()); | 1508 o.add(buildTableCell()); |
| 1492 o.add(buildTableCell()); | 1509 o.add(buildTableCell()); |
| 1493 return o; | 1510 return o; |
| 1494 } | 1511 } |
| 1495 | 1512 |
| 1496 checkUnnamed1497(core.List<api.TableCell> o) { | 1513 checkUnnamed359(core.List<api.TableCell> o) { |
| 1497 unittest.expect(o, unittest.hasLength(2)); | 1514 unittest.expect(o, unittest.hasLength(2)); |
| 1498 checkTableCell(o[0]); | 1515 checkTableCell(o[0]); |
| 1499 checkTableCell(o[1]); | 1516 checkTableCell(o[1]); |
| 1500 } | 1517 } |
| 1501 | 1518 |
| 1502 core.int buildCounterTableRow = 0; | 1519 core.int buildCounterTableRow = 0; |
| 1503 buildTableRow() { | 1520 buildTableRow() { |
| 1504 var o = new api.TableRow(); | 1521 var o = new api.TableRow(); |
| 1505 buildCounterTableRow++; | 1522 buildCounterTableRow++; |
| 1506 if (buildCounterTableRow < 3) { | 1523 if (buildCounterTableRow < 3) { |
| 1507 o.f = buildUnnamed1497(); | 1524 o.f = buildUnnamed359(); |
| 1508 } | 1525 } |
| 1509 buildCounterTableRow--; | 1526 buildCounterTableRow--; |
| 1510 return o; | 1527 return o; |
| 1511 } | 1528 } |
| 1512 | 1529 |
| 1513 checkTableRow(api.TableRow o) { | 1530 checkTableRow(api.TableRow o) { |
| 1514 buildCounterTableRow++; | 1531 buildCounterTableRow++; |
| 1515 if (buildCounterTableRow < 3) { | 1532 if (buildCounterTableRow < 3) { |
| 1516 checkUnnamed1497(o.f); | 1533 checkUnnamed359(o.f); |
| 1517 } | 1534 } |
| 1518 buildCounterTableRow--; | 1535 buildCounterTableRow--; |
| 1519 } | 1536 } |
| 1520 | 1537 |
| 1521 buildUnnamed1498() { | 1538 buildUnnamed360() { |
| 1522 var o = new core.List<api.TableFieldSchema>(); | 1539 var o = new core.List<api.TableFieldSchema>(); |
| 1523 o.add(buildTableFieldSchema()); | 1540 o.add(buildTableFieldSchema()); |
| 1524 o.add(buildTableFieldSchema()); | 1541 o.add(buildTableFieldSchema()); |
| 1525 return o; | 1542 return o; |
| 1526 } | 1543 } |
| 1527 | 1544 |
| 1528 checkUnnamed1498(core.List<api.TableFieldSchema> o) { | 1545 checkUnnamed360(core.List<api.TableFieldSchema> o) { |
| 1529 unittest.expect(o, unittest.hasLength(2)); | 1546 unittest.expect(o, unittest.hasLength(2)); |
| 1530 checkTableFieldSchema(o[0]); | 1547 checkTableFieldSchema(o[0]); |
| 1531 checkTableFieldSchema(o[1]); | 1548 checkTableFieldSchema(o[1]); |
| 1532 } | 1549 } |
| 1533 | 1550 |
| 1534 core.int buildCounterTableSchema = 0; | 1551 core.int buildCounterTableSchema = 0; |
| 1535 buildTableSchema() { | 1552 buildTableSchema() { |
| 1536 var o = new api.TableSchema(); | 1553 var o = new api.TableSchema(); |
| 1537 buildCounterTableSchema++; | 1554 buildCounterTableSchema++; |
| 1538 if (buildCounterTableSchema < 3) { | 1555 if (buildCounterTableSchema < 3) { |
| 1539 o.fields = buildUnnamed1498(); | 1556 o.fields = buildUnnamed360(); |
| 1540 } | 1557 } |
| 1541 buildCounterTableSchema--; | 1558 buildCounterTableSchema--; |
| 1542 return o; | 1559 return o; |
| 1543 } | 1560 } |
| 1544 | 1561 |
| 1545 checkTableSchema(api.TableSchema o) { | 1562 checkTableSchema(api.TableSchema o) { |
| 1546 buildCounterTableSchema++; | 1563 buildCounterTableSchema++; |
| 1547 if (buildCounterTableSchema < 3) { | 1564 if (buildCounterTableSchema < 3) { |
| 1548 checkUnnamed1498(o.fields); | 1565 checkUnnamed360(o.fields); |
| 1549 } | 1566 } |
| 1550 buildCounterTableSchema--; | 1567 buildCounterTableSchema--; |
| 1551 } | 1568 } |
| 1552 | 1569 |
| 1570 core.int buildCounterUserDefinedFunctionResource = 0; |
| 1571 buildUserDefinedFunctionResource() { |
| 1572 var o = new api.UserDefinedFunctionResource(); |
| 1573 buildCounterUserDefinedFunctionResource++; |
| 1574 if (buildCounterUserDefinedFunctionResource < 3) { |
| 1575 o.inlineCode = "foo"; |
| 1576 o.resourceUri = "foo"; |
| 1577 } |
| 1578 buildCounterUserDefinedFunctionResource--; |
| 1579 return o; |
| 1580 } |
| 1581 |
| 1582 checkUserDefinedFunctionResource(api.UserDefinedFunctionResource o) { |
| 1583 buildCounterUserDefinedFunctionResource++; |
| 1584 if (buildCounterUserDefinedFunctionResource < 3) { |
| 1585 unittest.expect(o.inlineCode, unittest.equals('foo')); |
| 1586 unittest.expect(o.resourceUri, unittest.equals('foo')); |
| 1587 } |
| 1588 buildCounterUserDefinedFunctionResource--; |
| 1589 } |
| 1590 |
| 1553 core.int buildCounterViewDefinition = 0; | 1591 core.int buildCounterViewDefinition = 0; |
| 1554 buildViewDefinition() { | 1592 buildViewDefinition() { |
| 1555 var o = new api.ViewDefinition(); | 1593 var o = new api.ViewDefinition(); |
| 1556 buildCounterViewDefinition++; | 1594 buildCounterViewDefinition++; |
| 1557 if (buildCounterViewDefinition < 3) { | 1595 if (buildCounterViewDefinition < 3) { |
| 1558 o.query = "foo"; | 1596 o.query = "foo"; |
| 1559 } | 1597 } |
| 1560 buildCounterViewDefinition--; | 1598 buildCounterViewDefinition--; |
| 1561 return o; | 1599 return o; |
| 1562 } | 1600 } |
| 1563 | 1601 |
| 1564 checkViewDefinition(api.ViewDefinition o) { | 1602 checkViewDefinition(api.ViewDefinition o) { |
| 1565 buildCounterViewDefinition++; | 1603 buildCounterViewDefinition++; |
| 1566 if (buildCounterViewDefinition < 3) { | 1604 if (buildCounterViewDefinition < 3) { |
| 1567 unittest.expect(o.query, unittest.equals('foo')); | 1605 unittest.expect(o.query, unittest.equals('foo')); |
| 1568 } | 1606 } |
| 1569 buildCounterViewDefinition--; | 1607 buildCounterViewDefinition--; |
| 1570 } | 1608 } |
| 1571 | 1609 |
| 1572 buildUnnamed1499() { | 1610 buildUnnamed361() { |
| 1573 var o = new core.List<core.String>(); | 1611 var o = new core.List<core.String>(); |
| 1574 o.add("foo"); | 1612 o.add("foo"); |
| 1575 o.add("foo"); | 1613 o.add("foo"); |
| 1576 return o; | 1614 return o; |
| 1577 } | 1615 } |
| 1578 | 1616 |
| 1579 checkUnnamed1499(core.List<core.String> o) { | 1617 checkUnnamed361(core.List<core.String> o) { |
| 1580 unittest.expect(o, unittest.hasLength(2)); | 1618 unittest.expect(o, unittest.hasLength(2)); |
| 1581 unittest.expect(o[0], unittest.equals('foo')); | 1619 unittest.expect(o[0], unittest.equals('foo')); |
| 1582 unittest.expect(o[1], unittest.equals('foo')); | 1620 unittest.expect(o[1], unittest.equals('foo')); |
| 1583 } | 1621 } |
| 1584 | 1622 |
| 1585 | 1623 |
| 1586 main() { | 1624 main() { |
| 1587 unittest.group("obj-schema-CsvOptions", () { | 1625 unittest.group("obj-schema-CsvOptions", () { |
| 1588 unittest.test("to-json--from-json", () { | 1626 unittest.test("to-json--from-json", () { |
| 1589 var o = buildCsvOptions(); | 1627 var o = buildCsvOptions(); |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1973 | 2011 |
| 1974 unittest.group("obj-schema-TableSchema", () { | 2012 unittest.group("obj-schema-TableSchema", () { |
| 1975 unittest.test("to-json--from-json", () { | 2013 unittest.test("to-json--from-json", () { |
| 1976 var o = buildTableSchema(); | 2014 var o = buildTableSchema(); |
| 1977 var od = new api.TableSchema.fromJson(o.toJson()); | 2015 var od = new api.TableSchema.fromJson(o.toJson()); |
| 1978 checkTableSchema(od); | 2016 checkTableSchema(od); |
| 1979 }); | 2017 }); |
| 1980 }); | 2018 }); |
| 1981 | 2019 |
| 1982 | 2020 |
| 2021 unittest.group("obj-schema-UserDefinedFunctionResource", () { |
| 2022 unittest.test("to-json--from-json", () { |
| 2023 var o = buildUserDefinedFunctionResource(); |
| 2024 var od = new api.UserDefinedFunctionResource.fromJson(o.toJson()); |
| 2025 checkUserDefinedFunctionResource(od); |
| 2026 }); |
| 2027 }); |
| 2028 |
| 2029 |
| 1983 unittest.group("obj-schema-ViewDefinition", () { | 2030 unittest.group("obj-schema-ViewDefinition", () { |
| 1984 unittest.test("to-json--from-json", () { | 2031 unittest.test("to-json--from-json", () { |
| 1985 var o = buildViewDefinition(); | 2032 var o = buildViewDefinition(); |
| 1986 var od = new api.ViewDefinition.fromJson(o.toJson()); | 2033 var od = new api.ViewDefinition.fromJson(o.toJson()); |
| 1987 checkViewDefinition(od); | 2034 checkViewDefinition(od); |
| 1988 }); | 2035 }); |
| 1989 }); | 2036 }); |
| 1990 | 2037 |
| 1991 | 2038 |
| 1992 unittest.group("resource-DatasetsResourceApi", () { | 2039 unittest.group("resource-DatasetsResourceApi", () { |
| (...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2590 | 2637 |
| 2591 unittest.test("method--list", () { | 2638 unittest.test("method--list", () { |
| 2592 | 2639 |
| 2593 var mock = new HttpServerMock(); | 2640 var mock = new HttpServerMock(); |
| 2594 api.JobsResourceApi res = new api.BigqueryApi(mock).jobs; | 2641 api.JobsResourceApi res = new api.BigqueryApi(mock).jobs; |
| 2595 var arg_projectId = "foo"; | 2642 var arg_projectId = "foo"; |
| 2596 var arg_allUsers = true; | 2643 var arg_allUsers = true; |
| 2597 var arg_maxResults = 42; | 2644 var arg_maxResults = 42; |
| 2598 var arg_pageToken = "foo"; | 2645 var arg_pageToken = "foo"; |
| 2599 var arg_projection = "foo"; | 2646 var arg_projection = "foo"; |
| 2600 var arg_stateFilter = buildUnnamed1499(); | 2647 var arg_stateFilter = buildUnnamed361(); |
| 2601 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2648 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2602 var path = (req.url).path; | 2649 var path = (req.url).path; |
| 2603 var pathOffset = 0; | 2650 var pathOffset = 0; |
| 2604 var index; | 2651 var index; |
| 2605 var subPart; | 2652 var subPart; |
| 2606 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2653 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2607 pathOffset += 1; | 2654 pathOffset += 1; |
| 2608 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("bigquery/v2/")); | 2655 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("bigquery/v2/")); |
| 2609 pathOffset += 12; | 2656 pathOffset += 12; |
| 2610 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 2657 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
| (...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3311 res.update(arg_request, arg_projectId, arg_datasetId, arg_tableId).then(un
ittest.expectAsync(((api.Table response) { | 3358 res.update(arg_request, arg_projectId, arg_datasetId, arg_tableId).then(un
ittest.expectAsync(((api.Table response) { |
| 3312 checkTable(response); | 3359 checkTable(response); |
| 3313 }))); | 3360 }))); |
| 3314 }); | 3361 }); |
| 3315 | 3362 |
| 3316 }); | 3363 }); |
| 3317 | 3364 |
| 3318 | 3365 |
| 3319 } | 3366 } |
| 3320 | 3367 |
| OLD | NEW |