| OLD | NEW |
| 1 library googleapis.bigquery.v2.test; | 1 library googleapis.bigquery.v2.test; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 unittest.expect(o.domain, unittest.equals('foo')); | 38 unittest.expect(o.domain, unittest.equals('foo')); |
| 39 unittest.expect(o.groupByEmail, unittest.equals('foo')); | 39 unittest.expect(o.groupByEmail, unittest.equals('foo')); |
| 40 unittest.expect(o.role, unittest.equals('foo')); | 40 unittest.expect(o.role, unittest.equals('foo')); |
| 41 unittest.expect(o.specialGroup, unittest.equals('foo')); | 41 unittest.expect(o.specialGroup, unittest.equals('foo')); |
| 42 unittest.expect(o.userByEmail, unittest.equals('foo')); | 42 unittest.expect(o.userByEmail, unittest.equals('foo')); |
| 43 checkTableReference(o.view); | 43 checkTableReference(o.view); |
| 44 } | 44 } |
| 45 buildCounterDatasetAccess--; | 45 buildCounterDatasetAccess--; |
| 46 } | 46 } |
| 47 | 47 |
| 48 buildUnnamed266() { | 48 buildUnnamed1169() { |
| 49 var o = new core.List<api.DatasetAccess>(); | 49 var o = new core.List<api.DatasetAccess>(); |
| 50 o.add(buildDatasetAccess()); | 50 o.add(buildDatasetAccess()); |
| 51 o.add(buildDatasetAccess()); | 51 o.add(buildDatasetAccess()); |
| 52 return o; | 52 return o; |
| 53 } | 53 } |
| 54 | 54 |
| 55 checkUnnamed266(core.List<api.DatasetAccess> o) { | 55 checkUnnamed1169(core.List<api.DatasetAccess> o) { |
| 56 unittest.expect(o, unittest.hasLength(2)); | 56 unittest.expect(o, unittest.hasLength(2)); |
| 57 checkDatasetAccess(o[0]); | 57 checkDatasetAccess(o[0]); |
| 58 checkDatasetAccess(o[1]); | 58 checkDatasetAccess(o[1]); |
| 59 } | 59 } |
| 60 | 60 |
| 61 core.int buildCounterDataset = 0; | 61 core.int buildCounterDataset = 0; |
| 62 buildDataset() { | 62 buildDataset() { |
| 63 var o = new api.Dataset(); | 63 var o = new api.Dataset(); |
| 64 buildCounterDataset++; | 64 buildCounterDataset++; |
| 65 if (buildCounterDataset < 3) { | 65 if (buildCounterDataset < 3) { |
| 66 o.access = buildUnnamed266(); | 66 o.access = buildUnnamed1169(); |
| 67 o.creationTime = "foo"; | 67 o.creationTime = "foo"; |
| 68 o.datasetReference = buildDatasetReference(); | 68 o.datasetReference = buildDatasetReference(); |
| 69 o.description = "foo"; | 69 o.description = "foo"; |
| 70 o.etag = "foo"; | 70 o.etag = "foo"; |
| 71 o.friendlyName = "foo"; | 71 o.friendlyName = "foo"; |
| 72 o.id = "foo"; | 72 o.id = "foo"; |
| 73 o.kind = "foo"; | 73 o.kind = "foo"; |
| 74 o.lastModifiedTime = "foo"; | 74 o.lastModifiedTime = "foo"; |
| 75 o.selfLink = "foo"; | 75 o.selfLink = "foo"; |
| 76 } | 76 } |
| 77 buildCounterDataset--; | 77 buildCounterDataset--; |
| 78 return o; | 78 return o; |
| 79 } | 79 } |
| 80 | 80 |
| 81 checkDataset(api.Dataset o) { | 81 checkDataset(api.Dataset o) { |
| 82 buildCounterDataset++; | 82 buildCounterDataset++; |
| 83 if (buildCounterDataset < 3) { | 83 if (buildCounterDataset < 3) { |
| 84 checkUnnamed266(o.access); | 84 checkUnnamed1169(o.access); |
| 85 unittest.expect(o.creationTime, unittest.equals('foo')); | 85 unittest.expect(o.creationTime, unittest.equals('foo')); |
| 86 checkDatasetReference(o.datasetReference); | 86 checkDatasetReference(o.datasetReference); |
| 87 unittest.expect(o.description, unittest.equals('foo')); | 87 unittest.expect(o.description, unittest.equals('foo')); |
| 88 unittest.expect(o.etag, unittest.equals('foo')); | 88 unittest.expect(o.etag, unittest.equals('foo')); |
| 89 unittest.expect(o.friendlyName, unittest.equals('foo')); | 89 unittest.expect(o.friendlyName, unittest.equals('foo')); |
| 90 unittest.expect(o.id, unittest.equals('foo')); | 90 unittest.expect(o.id, unittest.equals('foo')); |
| 91 unittest.expect(o.kind, unittest.equals('foo')); | 91 unittest.expect(o.kind, unittest.equals('foo')); |
| 92 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); | 92 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); |
| 93 unittest.expect(o.selfLink, unittest.equals('foo')); | 93 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 94 } | 94 } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 113 buildCounterDatasetListDatasets++; | 113 buildCounterDatasetListDatasets++; |
| 114 if (buildCounterDatasetListDatasets < 3) { | 114 if (buildCounterDatasetListDatasets < 3) { |
| 115 checkDatasetReference(o.datasetReference); | 115 checkDatasetReference(o.datasetReference); |
| 116 unittest.expect(o.friendlyName, unittest.equals('foo')); | 116 unittest.expect(o.friendlyName, unittest.equals('foo')); |
| 117 unittest.expect(o.id, unittest.equals('foo')); | 117 unittest.expect(o.id, unittest.equals('foo')); |
| 118 unittest.expect(o.kind, unittest.equals('foo')); | 118 unittest.expect(o.kind, unittest.equals('foo')); |
| 119 } | 119 } |
| 120 buildCounterDatasetListDatasets--; | 120 buildCounterDatasetListDatasets--; |
| 121 } | 121 } |
| 122 | 122 |
| 123 buildUnnamed267() { | 123 buildUnnamed1170() { |
| 124 var o = new core.List<api.DatasetListDatasets>(); | 124 var o = new core.List<api.DatasetListDatasets>(); |
| 125 o.add(buildDatasetListDatasets()); | 125 o.add(buildDatasetListDatasets()); |
| 126 o.add(buildDatasetListDatasets()); | 126 o.add(buildDatasetListDatasets()); |
| 127 return o; | 127 return o; |
| 128 } | 128 } |
| 129 | 129 |
| 130 checkUnnamed267(core.List<api.DatasetListDatasets> o) { | 130 checkUnnamed1170(core.List<api.DatasetListDatasets> o) { |
| 131 unittest.expect(o, unittest.hasLength(2)); | 131 unittest.expect(o, unittest.hasLength(2)); |
| 132 checkDatasetListDatasets(o[0]); | 132 checkDatasetListDatasets(o[0]); |
| 133 checkDatasetListDatasets(o[1]); | 133 checkDatasetListDatasets(o[1]); |
| 134 } | 134 } |
| 135 | 135 |
| 136 core.int buildCounterDatasetList = 0; | 136 core.int buildCounterDatasetList = 0; |
| 137 buildDatasetList() { | 137 buildDatasetList() { |
| 138 var o = new api.DatasetList(); | 138 var o = new api.DatasetList(); |
| 139 buildCounterDatasetList++; | 139 buildCounterDatasetList++; |
| 140 if (buildCounterDatasetList < 3) { | 140 if (buildCounterDatasetList < 3) { |
| 141 o.datasets = buildUnnamed267(); | 141 o.datasets = buildUnnamed1170(); |
| 142 o.etag = "foo"; | 142 o.etag = "foo"; |
| 143 o.kind = "foo"; | 143 o.kind = "foo"; |
| 144 o.nextPageToken = "foo"; | 144 o.nextPageToken = "foo"; |
| 145 } | 145 } |
| 146 buildCounterDatasetList--; | 146 buildCounterDatasetList--; |
| 147 return o; | 147 return o; |
| 148 } | 148 } |
| 149 | 149 |
| 150 checkDatasetList(api.DatasetList o) { | 150 checkDatasetList(api.DatasetList o) { |
| 151 buildCounterDatasetList++; | 151 buildCounterDatasetList++; |
| 152 if (buildCounterDatasetList < 3) { | 152 if (buildCounterDatasetList < 3) { |
| 153 checkUnnamed267(o.datasets); | 153 checkUnnamed1170(o.datasets); |
| 154 unittest.expect(o.etag, unittest.equals('foo')); | 154 unittest.expect(o.etag, unittest.equals('foo')); |
| 155 unittest.expect(o.kind, unittest.equals('foo')); | 155 unittest.expect(o.kind, unittest.equals('foo')); |
| 156 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 156 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 157 } | 157 } |
| 158 buildCounterDatasetList--; | 158 buildCounterDatasetList--; |
| 159 } | 159 } |
| 160 | 160 |
| 161 core.int buildCounterDatasetReference = 0; | 161 core.int buildCounterDatasetReference = 0; |
| 162 buildDatasetReference() { | 162 buildDatasetReference() { |
| 163 var o = new api.DatasetReference(); | 163 var o = new api.DatasetReference(); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 buildCounterErrorProto++; | 197 buildCounterErrorProto++; |
| 198 if (buildCounterErrorProto < 3) { | 198 if (buildCounterErrorProto < 3) { |
| 199 unittest.expect(o.debugInfo, unittest.equals('foo')); | 199 unittest.expect(o.debugInfo, unittest.equals('foo')); |
| 200 unittest.expect(o.location, unittest.equals('foo')); | 200 unittest.expect(o.location, unittest.equals('foo')); |
| 201 unittest.expect(o.message, unittest.equals('foo')); | 201 unittest.expect(o.message, unittest.equals('foo')); |
| 202 unittest.expect(o.reason, unittest.equals('foo')); | 202 unittest.expect(o.reason, unittest.equals('foo')); |
| 203 } | 203 } |
| 204 buildCounterErrorProto--; | 204 buildCounterErrorProto--; |
| 205 } | 205 } |
| 206 | 206 |
| 207 buildUnnamed268() { | 207 buildUnnamed1171() { |
| 208 var o = new core.List<api.TableRow>(); | 208 var o = new core.List<api.TableRow>(); |
| 209 o.add(buildTableRow()); | 209 o.add(buildTableRow()); |
| 210 o.add(buildTableRow()); | 210 o.add(buildTableRow()); |
| 211 return o; | 211 return o; |
| 212 } | 212 } |
| 213 | 213 |
| 214 checkUnnamed268(core.List<api.TableRow> o) { | 214 checkUnnamed1171(core.List<api.TableRow> o) { |
| 215 unittest.expect(o, unittest.hasLength(2)); | 215 unittest.expect(o, unittest.hasLength(2)); |
| 216 checkTableRow(o[0]); | 216 checkTableRow(o[0]); |
| 217 checkTableRow(o[1]); | 217 checkTableRow(o[1]); |
| 218 } | 218 } |
| 219 | 219 |
| 220 core.int buildCounterGetQueryResultsResponse = 0; | 220 core.int buildCounterGetQueryResultsResponse = 0; |
| 221 buildGetQueryResultsResponse() { | 221 buildGetQueryResultsResponse() { |
| 222 var o = new api.GetQueryResultsResponse(); | 222 var o = new api.GetQueryResultsResponse(); |
| 223 buildCounterGetQueryResultsResponse++; | 223 buildCounterGetQueryResultsResponse++; |
| 224 if (buildCounterGetQueryResultsResponse < 3) { | 224 if (buildCounterGetQueryResultsResponse < 3) { |
| 225 o.cacheHit = true; | 225 o.cacheHit = true; |
| 226 o.etag = "foo"; | 226 o.etag = "foo"; |
| 227 o.jobComplete = true; | 227 o.jobComplete = true; |
| 228 o.jobReference = buildJobReference(); | 228 o.jobReference = buildJobReference(); |
| 229 o.kind = "foo"; | 229 o.kind = "foo"; |
| 230 o.pageToken = "foo"; | 230 o.pageToken = "foo"; |
| 231 o.rows = buildUnnamed268(); | 231 o.rows = buildUnnamed1171(); |
| 232 o.schema = buildTableSchema(); | 232 o.schema = buildTableSchema(); |
| 233 o.totalBytesProcessed = "foo"; | 233 o.totalBytesProcessed = "foo"; |
| 234 o.totalRows = "foo"; | 234 o.totalRows = "foo"; |
| 235 } | 235 } |
| 236 buildCounterGetQueryResultsResponse--; | 236 buildCounterGetQueryResultsResponse--; |
| 237 return o; | 237 return o; |
| 238 } | 238 } |
| 239 | 239 |
| 240 checkGetQueryResultsResponse(api.GetQueryResultsResponse o) { | 240 checkGetQueryResultsResponse(api.GetQueryResultsResponse o) { |
| 241 buildCounterGetQueryResultsResponse++; | 241 buildCounterGetQueryResultsResponse++; |
| 242 if (buildCounterGetQueryResultsResponse < 3) { | 242 if (buildCounterGetQueryResultsResponse < 3) { |
| 243 unittest.expect(o.cacheHit, unittest.isTrue); | 243 unittest.expect(o.cacheHit, unittest.isTrue); |
| 244 unittest.expect(o.etag, unittest.equals('foo')); | 244 unittest.expect(o.etag, unittest.equals('foo')); |
| 245 unittest.expect(o.jobComplete, unittest.isTrue); | 245 unittest.expect(o.jobComplete, unittest.isTrue); |
| 246 checkJobReference(o.jobReference); | 246 checkJobReference(o.jobReference); |
| 247 unittest.expect(o.kind, unittest.equals('foo')); | 247 unittest.expect(o.kind, unittest.equals('foo')); |
| 248 unittest.expect(o.pageToken, unittest.equals('foo')); | 248 unittest.expect(o.pageToken, unittest.equals('foo')); |
| 249 checkUnnamed268(o.rows); | 249 checkUnnamed1171(o.rows); |
| 250 checkTableSchema(o.schema); | 250 checkTableSchema(o.schema); |
| 251 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); | 251 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); |
| 252 unittest.expect(o.totalRows, unittest.equals('foo')); | 252 unittest.expect(o.totalRows, unittest.equals('foo')); |
| 253 } | 253 } |
| 254 buildCounterGetQueryResultsResponse--; | 254 buildCounterGetQueryResultsResponse--; |
| 255 } | 255 } |
| 256 | 256 |
| 257 core.int buildCounterJob = 0; | 257 core.int buildCounterJob = 0; |
| 258 buildJob() { | 258 buildJob() { |
| 259 var o = new api.Job(); | 259 var o = new api.Job(); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 checkJobConfigurationTableCopy(o.copy); | 309 checkJobConfigurationTableCopy(o.copy); |
| 310 unittest.expect(o.dryRun, unittest.isTrue); | 310 unittest.expect(o.dryRun, unittest.isTrue); |
| 311 checkJobConfigurationExtract(o.extract); | 311 checkJobConfigurationExtract(o.extract); |
| 312 checkJobConfigurationLink(o.link); | 312 checkJobConfigurationLink(o.link); |
| 313 checkJobConfigurationLoad(o.load); | 313 checkJobConfigurationLoad(o.load); |
| 314 checkJobConfigurationQuery(o.query); | 314 checkJobConfigurationQuery(o.query); |
| 315 } | 315 } |
| 316 buildCounterJobConfiguration--; | 316 buildCounterJobConfiguration--; |
| 317 } | 317 } |
| 318 | 318 |
| 319 buildUnnamed269() { | 319 buildUnnamed1172() { |
| 320 var o = new core.List<core.String>(); | 320 var o = new core.List<core.String>(); |
| 321 o.add("foo"); | 321 o.add("foo"); |
| 322 o.add("foo"); | 322 o.add("foo"); |
| 323 return o; | 323 return o; |
| 324 } | 324 } |
| 325 | 325 |
| 326 checkUnnamed269(core.List<core.String> o) { | 326 checkUnnamed1172(core.List<core.String> o) { |
| 327 unittest.expect(o, unittest.hasLength(2)); | 327 unittest.expect(o, unittest.hasLength(2)); |
| 328 unittest.expect(o[0], unittest.equals('foo')); | 328 unittest.expect(o[0], unittest.equals('foo')); |
| 329 unittest.expect(o[1], unittest.equals('foo')); | 329 unittest.expect(o[1], unittest.equals('foo')); |
| 330 } | 330 } |
| 331 | 331 |
| 332 core.int buildCounterJobConfigurationExtract = 0; | 332 core.int buildCounterJobConfigurationExtract = 0; |
| 333 buildJobConfigurationExtract() { | 333 buildJobConfigurationExtract() { |
| 334 var o = new api.JobConfigurationExtract(); | 334 var o = new api.JobConfigurationExtract(); |
| 335 buildCounterJobConfigurationExtract++; | 335 buildCounterJobConfigurationExtract++; |
| 336 if (buildCounterJobConfigurationExtract < 3) { | 336 if (buildCounterJobConfigurationExtract < 3) { |
| 337 o.compression = "foo"; | 337 o.compression = "foo"; |
| 338 o.destinationFormat = "foo"; | 338 o.destinationFormat = "foo"; |
| 339 o.destinationUri = "foo"; | 339 o.destinationUri = "foo"; |
| 340 o.destinationUris = buildUnnamed269(); | 340 o.destinationUris = buildUnnamed1172(); |
| 341 o.fieldDelimiter = "foo"; | 341 o.fieldDelimiter = "foo"; |
| 342 o.printHeader = true; | 342 o.printHeader = true; |
| 343 o.sourceTable = buildTableReference(); | 343 o.sourceTable = buildTableReference(); |
| 344 } | 344 } |
| 345 buildCounterJobConfigurationExtract--; | 345 buildCounterJobConfigurationExtract--; |
| 346 return o; | 346 return o; |
| 347 } | 347 } |
| 348 | 348 |
| 349 checkJobConfigurationExtract(api.JobConfigurationExtract o) { | 349 checkJobConfigurationExtract(api.JobConfigurationExtract o) { |
| 350 buildCounterJobConfigurationExtract++; | 350 buildCounterJobConfigurationExtract++; |
| 351 if (buildCounterJobConfigurationExtract < 3) { | 351 if (buildCounterJobConfigurationExtract < 3) { |
| 352 unittest.expect(o.compression, unittest.equals('foo')); | 352 unittest.expect(o.compression, unittest.equals('foo')); |
| 353 unittest.expect(o.destinationFormat, unittest.equals('foo')); | 353 unittest.expect(o.destinationFormat, unittest.equals('foo')); |
| 354 unittest.expect(o.destinationUri, unittest.equals('foo')); | 354 unittest.expect(o.destinationUri, unittest.equals('foo')); |
| 355 checkUnnamed269(o.destinationUris); | 355 checkUnnamed1172(o.destinationUris); |
| 356 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); | 356 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); |
| 357 unittest.expect(o.printHeader, unittest.isTrue); | 357 unittest.expect(o.printHeader, unittest.isTrue); |
| 358 checkTableReference(o.sourceTable); | 358 checkTableReference(o.sourceTable); |
| 359 } | 359 } |
| 360 buildCounterJobConfigurationExtract--; | 360 buildCounterJobConfigurationExtract--; |
| 361 } | 361 } |
| 362 | 362 |
| 363 buildUnnamed270() { | 363 buildUnnamed1173() { |
| 364 var o = new core.List<core.String>(); | 364 var o = new core.List<core.String>(); |
| 365 o.add("foo"); | 365 o.add("foo"); |
| 366 o.add("foo"); | 366 o.add("foo"); |
| 367 return o; | 367 return o; |
| 368 } | 368 } |
| 369 | 369 |
| 370 checkUnnamed270(core.List<core.String> o) { | 370 checkUnnamed1173(core.List<core.String> o) { |
| 371 unittest.expect(o, unittest.hasLength(2)); | 371 unittest.expect(o, unittest.hasLength(2)); |
| 372 unittest.expect(o[0], unittest.equals('foo')); | 372 unittest.expect(o[0], unittest.equals('foo')); |
| 373 unittest.expect(o[1], unittest.equals('foo')); | 373 unittest.expect(o[1], unittest.equals('foo')); |
| 374 } | 374 } |
| 375 | 375 |
| 376 core.int buildCounterJobConfigurationLink = 0; | 376 core.int buildCounterJobConfigurationLink = 0; |
| 377 buildJobConfigurationLink() { | 377 buildJobConfigurationLink() { |
| 378 var o = new api.JobConfigurationLink(); | 378 var o = new api.JobConfigurationLink(); |
| 379 buildCounterJobConfigurationLink++; | 379 buildCounterJobConfigurationLink++; |
| 380 if (buildCounterJobConfigurationLink < 3) { | 380 if (buildCounterJobConfigurationLink < 3) { |
| 381 o.createDisposition = "foo"; | 381 o.createDisposition = "foo"; |
| 382 o.destinationTable = buildTableReference(); | 382 o.destinationTable = buildTableReference(); |
| 383 o.sourceUri = buildUnnamed270(); | 383 o.sourceUri = buildUnnamed1173(); |
| 384 o.writeDisposition = "foo"; | 384 o.writeDisposition = "foo"; |
| 385 } | 385 } |
| 386 buildCounterJobConfigurationLink--; | 386 buildCounterJobConfigurationLink--; |
| 387 return o; | 387 return o; |
| 388 } | 388 } |
| 389 | 389 |
| 390 checkJobConfigurationLink(api.JobConfigurationLink o) { | 390 checkJobConfigurationLink(api.JobConfigurationLink o) { |
| 391 buildCounterJobConfigurationLink++; | 391 buildCounterJobConfigurationLink++; |
| 392 if (buildCounterJobConfigurationLink < 3) { | 392 if (buildCounterJobConfigurationLink < 3) { |
| 393 unittest.expect(o.createDisposition, unittest.equals('foo')); | 393 unittest.expect(o.createDisposition, unittest.equals('foo')); |
| 394 checkTableReference(o.destinationTable); | 394 checkTableReference(o.destinationTable); |
| 395 checkUnnamed270(o.sourceUri); | 395 checkUnnamed1173(o.sourceUri); |
| 396 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 396 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
| 397 } | 397 } |
| 398 buildCounterJobConfigurationLink--; | 398 buildCounterJobConfigurationLink--; |
| 399 } | 399 } |
| 400 | 400 |
| 401 buildUnnamed271() { | 401 buildUnnamed1174() { |
| 402 var o = new core.List<core.String>(); | 402 var o = new core.List<core.String>(); |
| 403 o.add("foo"); | 403 o.add("foo"); |
| 404 o.add("foo"); | 404 o.add("foo"); |
| 405 return o; | 405 return o; |
| 406 } | 406 } |
| 407 | 407 |
| 408 checkUnnamed271(core.List<core.String> o) { | 408 checkUnnamed1174(core.List<core.String> o) { |
| 409 unittest.expect(o, unittest.hasLength(2)); | 409 unittest.expect(o, unittest.hasLength(2)); |
| 410 unittest.expect(o[0], unittest.equals('foo')); | 410 unittest.expect(o[0], unittest.equals('foo')); |
| 411 unittest.expect(o[1], unittest.equals('foo')); | 411 unittest.expect(o[1], unittest.equals('foo')); |
| 412 } | 412 } |
| 413 | 413 |
| 414 core.int buildCounterJobConfigurationLoad = 0; | 414 core.int buildCounterJobConfigurationLoad = 0; |
| 415 buildJobConfigurationLoad() { | 415 buildJobConfigurationLoad() { |
| 416 var o = new api.JobConfigurationLoad(); | 416 var o = new api.JobConfigurationLoad(); |
| 417 buildCounterJobConfigurationLoad++; | 417 buildCounterJobConfigurationLoad++; |
| 418 if (buildCounterJobConfigurationLoad < 3) { | 418 if (buildCounterJobConfigurationLoad < 3) { |
| 419 o.allowJaggedRows = true; | 419 o.allowJaggedRows = true; |
| 420 o.allowQuotedNewlines = true; | 420 o.allowQuotedNewlines = true; |
| 421 o.createDisposition = "foo"; | 421 o.createDisposition = "foo"; |
| 422 o.destinationTable = buildTableReference(); | 422 o.destinationTable = buildTableReference(); |
| 423 o.encoding = "foo"; | 423 o.encoding = "foo"; |
| 424 o.fieldDelimiter = "foo"; | 424 o.fieldDelimiter = "foo"; |
| 425 o.ignoreUnknownValues = true; | 425 o.ignoreUnknownValues = true; |
| 426 o.maxBadRecords = 42; | 426 o.maxBadRecords = 42; |
| 427 o.quote = "foo"; | 427 o.quote = "foo"; |
| 428 o.schema = buildTableSchema(); | 428 o.schema = buildTableSchema(); |
| 429 o.schemaInline = "foo"; | 429 o.schemaInline = "foo"; |
| 430 o.schemaInlineFormat = "foo"; | 430 o.schemaInlineFormat = "foo"; |
| 431 o.skipLeadingRows = 42; | 431 o.skipLeadingRows = 42; |
| 432 o.sourceFormat = "foo"; | 432 o.sourceFormat = "foo"; |
| 433 o.sourceUris = buildUnnamed271(); | 433 o.sourceUris = buildUnnamed1174(); |
| 434 o.writeDisposition = "foo"; | 434 o.writeDisposition = "foo"; |
| 435 } | 435 } |
| 436 buildCounterJobConfigurationLoad--; | 436 buildCounterJobConfigurationLoad--; |
| 437 return o; | 437 return o; |
| 438 } | 438 } |
| 439 | 439 |
| 440 checkJobConfigurationLoad(api.JobConfigurationLoad o) { | 440 checkJobConfigurationLoad(api.JobConfigurationLoad o) { |
| 441 buildCounterJobConfigurationLoad++; | 441 buildCounterJobConfigurationLoad++; |
| 442 if (buildCounterJobConfigurationLoad < 3) { | 442 if (buildCounterJobConfigurationLoad < 3) { |
| 443 unittest.expect(o.allowJaggedRows, unittest.isTrue); | 443 unittest.expect(o.allowJaggedRows, unittest.isTrue); |
| 444 unittest.expect(o.allowQuotedNewlines, unittest.isTrue); | 444 unittest.expect(o.allowQuotedNewlines, unittest.isTrue); |
| 445 unittest.expect(o.createDisposition, unittest.equals('foo')); | 445 unittest.expect(o.createDisposition, unittest.equals('foo')); |
| 446 checkTableReference(o.destinationTable); | 446 checkTableReference(o.destinationTable); |
| 447 unittest.expect(o.encoding, unittest.equals('foo')); | 447 unittest.expect(o.encoding, unittest.equals('foo')); |
| 448 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); | 448 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); |
| 449 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); | 449 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); |
| 450 unittest.expect(o.maxBadRecords, unittest.equals(42)); | 450 unittest.expect(o.maxBadRecords, unittest.equals(42)); |
| 451 unittest.expect(o.quote, unittest.equals('foo')); | 451 unittest.expect(o.quote, unittest.equals('foo')); |
| 452 checkTableSchema(o.schema); | 452 checkTableSchema(o.schema); |
| 453 unittest.expect(o.schemaInline, unittest.equals('foo')); | 453 unittest.expect(o.schemaInline, unittest.equals('foo')); |
| 454 unittest.expect(o.schemaInlineFormat, unittest.equals('foo')); | 454 unittest.expect(o.schemaInlineFormat, unittest.equals('foo')); |
| 455 unittest.expect(o.skipLeadingRows, unittest.equals(42)); | 455 unittest.expect(o.skipLeadingRows, unittest.equals(42)); |
| 456 unittest.expect(o.sourceFormat, unittest.equals('foo')); | 456 unittest.expect(o.sourceFormat, unittest.equals('foo')); |
| 457 checkUnnamed271(o.sourceUris); | 457 checkUnnamed1174(o.sourceUris); |
| 458 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 458 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
| 459 } | 459 } |
| 460 buildCounterJobConfigurationLoad--; | 460 buildCounterJobConfigurationLoad--; |
| 461 } | 461 } |
| 462 | 462 |
| 463 core.int buildCounterJobConfigurationQuery = 0; | 463 core.int buildCounterJobConfigurationQuery = 0; |
| 464 buildJobConfigurationQuery() { | 464 buildJobConfigurationQuery() { |
| 465 var o = new api.JobConfigurationQuery(); | 465 var o = new api.JobConfigurationQuery(); |
| 466 buildCounterJobConfigurationQuery++; | 466 buildCounterJobConfigurationQuery++; |
| 467 if (buildCounterJobConfigurationQuery < 3) { | 467 if (buildCounterJobConfigurationQuery < 3) { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 490 unittest.expect(o.flattenResults, unittest.isTrue); | 490 unittest.expect(o.flattenResults, unittest.isTrue); |
| 491 unittest.expect(o.preserveNulls, unittest.isTrue); | 491 unittest.expect(o.preserveNulls, unittest.isTrue); |
| 492 unittest.expect(o.priority, unittest.equals('foo')); | 492 unittest.expect(o.priority, unittest.equals('foo')); |
| 493 unittest.expect(o.query, unittest.equals('foo')); | 493 unittest.expect(o.query, unittest.equals('foo')); |
| 494 unittest.expect(o.useQueryCache, unittest.isTrue); | 494 unittest.expect(o.useQueryCache, unittest.isTrue); |
| 495 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 495 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
| 496 } | 496 } |
| 497 buildCounterJobConfigurationQuery--; | 497 buildCounterJobConfigurationQuery--; |
| 498 } | 498 } |
| 499 | 499 |
| 500 buildUnnamed272() { | 500 buildUnnamed1175() { |
| 501 var o = new core.List<api.TableReference>(); | 501 var o = new core.List<api.TableReference>(); |
| 502 o.add(buildTableReference()); | 502 o.add(buildTableReference()); |
| 503 o.add(buildTableReference()); | 503 o.add(buildTableReference()); |
| 504 return o; | 504 return o; |
| 505 } | 505 } |
| 506 | 506 |
| 507 checkUnnamed272(core.List<api.TableReference> o) { | 507 checkUnnamed1175(core.List<api.TableReference> o) { |
| 508 unittest.expect(o, unittest.hasLength(2)); | 508 unittest.expect(o, unittest.hasLength(2)); |
| 509 checkTableReference(o[0]); | 509 checkTableReference(o[0]); |
| 510 checkTableReference(o[1]); | 510 checkTableReference(o[1]); |
| 511 } | 511 } |
| 512 | 512 |
| 513 core.int buildCounterJobConfigurationTableCopy = 0; | 513 core.int buildCounterJobConfigurationTableCopy = 0; |
| 514 buildJobConfigurationTableCopy() { | 514 buildJobConfigurationTableCopy() { |
| 515 var o = new api.JobConfigurationTableCopy(); | 515 var o = new api.JobConfigurationTableCopy(); |
| 516 buildCounterJobConfigurationTableCopy++; | 516 buildCounterJobConfigurationTableCopy++; |
| 517 if (buildCounterJobConfigurationTableCopy < 3) { | 517 if (buildCounterJobConfigurationTableCopy < 3) { |
| 518 o.createDisposition = "foo"; | 518 o.createDisposition = "foo"; |
| 519 o.destinationTable = buildTableReference(); | 519 o.destinationTable = buildTableReference(); |
| 520 o.sourceTable = buildTableReference(); | 520 o.sourceTable = buildTableReference(); |
| 521 o.sourceTables = buildUnnamed272(); | 521 o.sourceTables = buildUnnamed1175(); |
| 522 o.writeDisposition = "foo"; | 522 o.writeDisposition = "foo"; |
| 523 } | 523 } |
| 524 buildCounterJobConfigurationTableCopy--; | 524 buildCounterJobConfigurationTableCopy--; |
| 525 return o; | 525 return o; |
| 526 } | 526 } |
| 527 | 527 |
| 528 checkJobConfigurationTableCopy(api.JobConfigurationTableCopy o) { | 528 checkJobConfigurationTableCopy(api.JobConfigurationTableCopy o) { |
| 529 buildCounterJobConfigurationTableCopy++; | 529 buildCounterJobConfigurationTableCopy++; |
| 530 if (buildCounterJobConfigurationTableCopy < 3) { | 530 if (buildCounterJobConfigurationTableCopy < 3) { |
| 531 unittest.expect(o.createDisposition, unittest.equals('foo')); | 531 unittest.expect(o.createDisposition, unittest.equals('foo')); |
| 532 checkTableReference(o.destinationTable); | 532 checkTableReference(o.destinationTable); |
| 533 checkTableReference(o.sourceTable); | 533 checkTableReference(o.sourceTable); |
| 534 checkUnnamed272(o.sourceTables); | 534 checkUnnamed1175(o.sourceTables); |
| 535 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 535 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
| 536 } | 536 } |
| 537 buildCounterJobConfigurationTableCopy--; | 537 buildCounterJobConfigurationTableCopy--; |
| 538 } | 538 } |
| 539 | 539 |
| 540 core.int buildCounterJobListJobs = 0; | 540 core.int buildCounterJobListJobs = 0; |
| 541 buildJobListJobs() { | 541 buildJobListJobs() { |
| 542 var o = new api.JobListJobs(); | 542 var o = new api.JobListJobs(); |
| 543 buildCounterJobListJobs++; | 543 buildCounterJobListJobs++; |
| 544 if (buildCounterJobListJobs < 3) { | 544 if (buildCounterJobListJobs < 3) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 565 checkJobReference(o.jobReference); | 565 checkJobReference(o.jobReference); |
| 566 unittest.expect(o.kind, unittest.equals('foo')); | 566 unittest.expect(o.kind, unittest.equals('foo')); |
| 567 unittest.expect(o.state, unittest.equals('foo')); | 567 unittest.expect(o.state, unittest.equals('foo')); |
| 568 checkJobStatistics(o.statistics); | 568 checkJobStatistics(o.statistics); |
| 569 checkJobStatus(o.status); | 569 checkJobStatus(o.status); |
| 570 unittest.expect(o.userEmail, unittest.equals('foo')); | 570 unittest.expect(o.userEmail, unittest.equals('foo')); |
| 571 } | 571 } |
| 572 buildCounterJobListJobs--; | 572 buildCounterJobListJobs--; |
| 573 } | 573 } |
| 574 | 574 |
| 575 buildUnnamed273() { | 575 buildUnnamed1176() { |
| 576 var o = new core.List<api.JobListJobs>(); | 576 var o = new core.List<api.JobListJobs>(); |
| 577 o.add(buildJobListJobs()); | 577 o.add(buildJobListJobs()); |
| 578 o.add(buildJobListJobs()); | 578 o.add(buildJobListJobs()); |
| 579 return o; | 579 return o; |
| 580 } | 580 } |
| 581 | 581 |
| 582 checkUnnamed273(core.List<api.JobListJobs> o) { | 582 checkUnnamed1176(core.List<api.JobListJobs> o) { |
| 583 unittest.expect(o, unittest.hasLength(2)); | 583 unittest.expect(o, unittest.hasLength(2)); |
| 584 checkJobListJobs(o[0]); | 584 checkJobListJobs(o[0]); |
| 585 checkJobListJobs(o[1]); | 585 checkJobListJobs(o[1]); |
| 586 } | 586 } |
| 587 | 587 |
| 588 core.int buildCounterJobList = 0; | 588 core.int buildCounterJobList = 0; |
| 589 buildJobList() { | 589 buildJobList() { |
| 590 var o = new api.JobList(); | 590 var o = new api.JobList(); |
| 591 buildCounterJobList++; | 591 buildCounterJobList++; |
| 592 if (buildCounterJobList < 3) { | 592 if (buildCounterJobList < 3) { |
| 593 o.etag = "foo"; | 593 o.etag = "foo"; |
| 594 o.jobs = buildUnnamed273(); | 594 o.jobs = buildUnnamed1176(); |
| 595 o.kind = "foo"; | 595 o.kind = "foo"; |
| 596 o.nextPageToken = "foo"; | 596 o.nextPageToken = "foo"; |
| 597 o.totalItems = 42; | 597 o.totalItems = 42; |
| 598 } | 598 } |
| 599 buildCounterJobList--; | 599 buildCounterJobList--; |
| 600 return o; | 600 return o; |
| 601 } | 601 } |
| 602 | 602 |
| 603 checkJobList(api.JobList o) { | 603 checkJobList(api.JobList o) { |
| 604 buildCounterJobList++; | 604 buildCounterJobList++; |
| 605 if (buildCounterJobList < 3) { | 605 if (buildCounterJobList < 3) { |
| 606 unittest.expect(o.etag, unittest.equals('foo')); | 606 unittest.expect(o.etag, unittest.equals('foo')); |
| 607 checkUnnamed273(o.jobs); | 607 checkUnnamed1176(o.jobs); |
| 608 unittest.expect(o.kind, unittest.equals('foo')); | 608 unittest.expect(o.kind, unittest.equals('foo')); |
| 609 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 609 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 610 unittest.expect(o.totalItems, unittest.equals(42)); | 610 unittest.expect(o.totalItems, unittest.equals(42)); |
| 611 } | 611 } |
| 612 buildCounterJobList--; | 612 buildCounterJobList--; |
| 613 } | 613 } |
| 614 | 614 |
| 615 core.int buildCounterJobReference = 0; | 615 core.int buildCounterJobReference = 0; |
| 616 buildJobReference() { | 616 buildJobReference() { |
| 617 var o = new api.JobReference(); | 617 var o = new api.JobReference(); |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 buildCounterJobStatistics3++; | 703 buildCounterJobStatistics3++; |
| 704 if (buildCounterJobStatistics3 < 3) { | 704 if (buildCounterJobStatistics3 < 3) { |
| 705 unittest.expect(o.inputFileBytes, unittest.equals('foo')); | 705 unittest.expect(o.inputFileBytes, unittest.equals('foo')); |
| 706 unittest.expect(o.inputFiles, unittest.equals('foo')); | 706 unittest.expect(o.inputFiles, unittest.equals('foo')); |
| 707 unittest.expect(o.outputBytes, unittest.equals('foo')); | 707 unittest.expect(o.outputBytes, unittest.equals('foo')); |
| 708 unittest.expect(o.outputRows, unittest.equals('foo')); | 708 unittest.expect(o.outputRows, unittest.equals('foo')); |
| 709 } | 709 } |
| 710 buildCounterJobStatistics3--; | 710 buildCounterJobStatistics3--; |
| 711 } | 711 } |
| 712 | 712 |
| 713 buildUnnamed274() { | 713 buildUnnamed1177() { |
| 714 var o = new core.List<core.String>(); | 714 var o = new core.List<core.String>(); |
| 715 o.add("foo"); | 715 o.add("foo"); |
| 716 o.add("foo"); | 716 o.add("foo"); |
| 717 return o; | 717 return o; |
| 718 } | 718 } |
| 719 | 719 |
| 720 checkUnnamed274(core.List<core.String> o) { | 720 checkUnnamed1177(core.List<core.String> o) { |
| 721 unittest.expect(o, unittest.hasLength(2)); | 721 unittest.expect(o, unittest.hasLength(2)); |
| 722 unittest.expect(o[0], unittest.equals('foo')); | 722 unittest.expect(o[0], unittest.equals('foo')); |
| 723 unittest.expect(o[1], unittest.equals('foo')); | 723 unittest.expect(o[1], unittest.equals('foo')); |
| 724 } | 724 } |
| 725 | 725 |
| 726 core.int buildCounterJobStatistics4 = 0; | 726 core.int buildCounterJobStatistics4 = 0; |
| 727 buildJobStatistics4() { | 727 buildJobStatistics4() { |
| 728 var o = new api.JobStatistics4(); | 728 var o = new api.JobStatistics4(); |
| 729 buildCounterJobStatistics4++; | 729 buildCounterJobStatistics4++; |
| 730 if (buildCounterJobStatistics4 < 3) { | 730 if (buildCounterJobStatistics4 < 3) { |
| 731 o.destinationUriFileCounts = buildUnnamed274(); | 731 o.destinationUriFileCounts = buildUnnamed1177(); |
| 732 } | 732 } |
| 733 buildCounterJobStatistics4--; | 733 buildCounterJobStatistics4--; |
| 734 return o; | 734 return o; |
| 735 } | 735 } |
| 736 | 736 |
| 737 checkJobStatistics4(api.JobStatistics4 o) { | 737 checkJobStatistics4(api.JobStatistics4 o) { |
| 738 buildCounterJobStatistics4++; | 738 buildCounterJobStatistics4++; |
| 739 if (buildCounterJobStatistics4 < 3) { | 739 if (buildCounterJobStatistics4 < 3) { |
| 740 checkUnnamed274(o.destinationUriFileCounts); | 740 checkUnnamed1177(o.destinationUriFileCounts); |
| 741 } | 741 } |
| 742 buildCounterJobStatistics4--; | 742 buildCounterJobStatistics4--; |
| 743 } | 743 } |
| 744 | 744 |
| 745 buildUnnamed275() { | 745 buildUnnamed1178() { |
| 746 var o = new core.List<api.ErrorProto>(); | 746 var o = new core.List<api.ErrorProto>(); |
| 747 o.add(buildErrorProto()); | 747 o.add(buildErrorProto()); |
| 748 o.add(buildErrorProto()); | 748 o.add(buildErrorProto()); |
| 749 return o; | 749 return o; |
| 750 } | 750 } |
| 751 | 751 |
| 752 checkUnnamed275(core.List<api.ErrorProto> o) { | 752 checkUnnamed1178(core.List<api.ErrorProto> o) { |
| 753 unittest.expect(o, unittest.hasLength(2)); | 753 unittest.expect(o, unittest.hasLength(2)); |
| 754 checkErrorProto(o[0]); | 754 checkErrorProto(o[0]); |
| 755 checkErrorProto(o[1]); | 755 checkErrorProto(o[1]); |
| 756 } | 756 } |
| 757 | 757 |
| 758 core.int buildCounterJobStatus = 0; | 758 core.int buildCounterJobStatus = 0; |
| 759 buildJobStatus() { | 759 buildJobStatus() { |
| 760 var o = new api.JobStatus(); | 760 var o = new api.JobStatus(); |
| 761 buildCounterJobStatus++; | 761 buildCounterJobStatus++; |
| 762 if (buildCounterJobStatus < 3) { | 762 if (buildCounterJobStatus < 3) { |
| 763 o.errorResult = buildErrorProto(); | 763 o.errorResult = buildErrorProto(); |
| 764 o.errors = buildUnnamed275(); | 764 o.errors = buildUnnamed1178(); |
| 765 o.state = "foo"; | 765 o.state = "foo"; |
| 766 } | 766 } |
| 767 buildCounterJobStatus--; | 767 buildCounterJobStatus--; |
| 768 return o; | 768 return o; |
| 769 } | 769 } |
| 770 | 770 |
| 771 checkJobStatus(api.JobStatus o) { | 771 checkJobStatus(api.JobStatus o) { |
| 772 buildCounterJobStatus++; | 772 buildCounterJobStatus++; |
| 773 if (buildCounterJobStatus < 3) { | 773 if (buildCounterJobStatus < 3) { |
| 774 checkErrorProto(o.errorResult); | 774 checkErrorProto(o.errorResult); |
| 775 checkUnnamed275(o.errors); | 775 checkUnnamed1178(o.errors); |
| 776 unittest.expect(o.state, unittest.equals('foo')); | 776 unittest.expect(o.state, unittest.equals('foo')); |
| 777 } | 777 } |
| 778 buildCounterJobStatus--; | 778 buildCounterJobStatus--; |
| 779 } | 779 } |
| 780 | 780 |
| 781 buildJsonObject() { | 781 buildJsonObject() { |
| 782 var o = new api.JsonObject(); | 782 var o = new api.JsonObject(); |
| 783 o["a"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 783 o["a"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 784 o["b"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 784 o["b"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 785 return o; | 785 return o; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 811 if (buildCounterProjectListProjects < 3) { | 811 if (buildCounterProjectListProjects < 3) { |
| 812 unittest.expect(o.friendlyName, unittest.equals('foo')); | 812 unittest.expect(o.friendlyName, unittest.equals('foo')); |
| 813 unittest.expect(o.id, unittest.equals('foo')); | 813 unittest.expect(o.id, unittest.equals('foo')); |
| 814 unittest.expect(o.kind, unittest.equals('foo')); | 814 unittest.expect(o.kind, unittest.equals('foo')); |
| 815 unittest.expect(o.numericId, unittest.equals('foo')); | 815 unittest.expect(o.numericId, unittest.equals('foo')); |
| 816 checkProjectReference(o.projectReference); | 816 checkProjectReference(o.projectReference); |
| 817 } | 817 } |
| 818 buildCounterProjectListProjects--; | 818 buildCounterProjectListProjects--; |
| 819 } | 819 } |
| 820 | 820 |
| 821 buildUnnamed276() { | 821 buildUnnamed1179() { |
| 822 var o = new core.List<api.ProjectListProjects>(); | 822 var o = new core.List<api.ProjectListProjects>(); |
| 823 o.add(buildProjectListProjects()); | 823 o.add(buildProjectListProjects()); |
| 824 o.add(buildProjectListProjects()); | 824 o.add(buildProjectListProjects()); |
| 825 return o; | 825 return o; |
| 826 } | 826 } |
| 827 | 827 |
| 828 checkUnnamed276(core.List<api.ProjectListProjects> o) { | 828 checkUnnamed1179(core.List<api.ProjectListProjects> o) { |
| 829 unittest.expect(o, unittest.hasLength(2)); | 829 unittest.expect(o, unittest.hasLength(2)); |
| 830 checkProjectListProjects(o[0]); | 830 checkProjectListProjects(o[0]); |
| 831 checkProjectListProjects(o[1]); | 831 checkProjectListProjects(o[1]); |
| 832 } | 832 } |
| 833 | 833 |
| 834 core.int buildCounterProjectList = 0; | 834 core.int buildCounterProjectList = 0; |
| 835 buildProjectList() { | 835 buildProjectList() { |
| 836 var o = new api.ProjectList(); | 836 var o = new api.ProjectList(); |
| 837 buildCounterProjectList++; | 837 buildCounterProjectList++; |
| 838 if (buildCounterProjectList < 3) { | 838 if (buildCounterProjectList < 3) { |
| 839 o.etag = "foo"; | 839 o.etag = "foo"; |
| 840 o.kind = "foo"; | 840 o.kind = "foo"; |
| 841 o.nextPageToken = "foo"; | 841 o.nextPageToken = "foo"; |
| 842 o.projects = buildUnnamed276(); | 842 o.projects = buildUnnamed1179(); |
| 843 o.totalItems = 42; | 843 o.totalItems = 42; |
| 844 } | 844 } |
| 845 buildCounterProjectList--; | 845 buildCounterProjectList--; |
| 846 return o; | 846 return o; |
| 847 } | 847 } |
| 848 | 848 |
| 849 checkProjectList(api.ProjectList o) { | 849 checkProjectList(api.ProjectList o) { |
| 850 buildCounterProjectList++; | 850 buildCounterProjectList++; |
| 851 if (buildCounterProjectList < 3) { | 851 if (buildCounterProjectList < 3) { |
| 852 unittest.expect(o.etag, unittest.equals('foo')); | 852 unittest.expect(o.etag, unittest.equals('foo')); |
| 853 unittest.expect(o.kind, unittest.equals('foo')); | 853 unittest.expect(o.kind, unittest.equals('foo')); |
| 854 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 854 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 855 checkUnnamed276(o.projects); | 855 checkUnnamed1179(o.projects); |
| 856 unittest.expect(o.totalItems, unittest.equals(42)); | 856 unittest.expect(o.totalItems, unittest.equals(42)); |
| 857 } | 857 } |
| 858 buildCounterProjectList--; | 858 buildCounterProjectList--; |
| 859 } | 859 } |
| 860 | 860 |
| 861 core.int buildCounterProjectReference = 0; | 861 core.int buildCounterProjectReference = 0; |
| 862 buildProjectReference() { | 862 buildProjectReference() { |
| 863 var o = new api.ProjectReference(); | 863 var o = new api.ProjectReference(); |
| 864 buildCounterProjectReference++; | 864 buildCounterProjectReference++; |
| 865 if (buildCounterProjectReference < 3) { | 865 if (buildCounterProjectReference < 3) { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 903 unittest.expect(o.kind, unittest.equals('foo')); | 903 unittest.expect(o.kind, unittest.equals('foo')); |
| 904 unittest.expect(o.maxResults, unittest.equals(42)); | 904 unittest.expect(o.maxResults, unittest.equals(42)); |
| 905 unittest.expect(o.preserveNulls, unittest.isTrue); | 905 unittest.expect(o.preserveNulls, unittest.isTrue); |
| 906 unittest.expect(o.query, unittest.equals('foo')); | 906 unittest.expect(o.query, unittest.equals('foo')); |
| 907 unittest.expect(o.timeoutMs, unittest.equals(42)); | 907 unittest.expect(o.timeoutMs, unittest.equals(42)); |
| 908 unittest.expect(o.useQueryCache, unittest.isTrue); | 908 unittest.expect(o.useQueryCache, unittest.isTrue); |
| 909 } | 909 } |
| 910 buildCounterQueryRequest--; | 910 buildCounterQueryRequest--; |
| 911 } | 911 } |
| 912 | 912 |
| 913 buildUnnamed277() { | 913 buildUnnamed1180() { |
| 914 var o = new core.List<api.TableRow>(); | 914 var o = new core.List<api.TableRow>(); |
| 915 o.add(buildTableRow()); | 915 o.add(buildTableRow()); |
| 916 o.add(buildTableRow()); | 916 o.add(buildTableRow()); |
| 917 return o; | 917 return o; |
| 918 } | 918 } |
| 919 | 919 |
| 920 checkUnnamed277(core.List<api.TableRow> o) { | 920 checkUnnamed1180(core.List<api.TableRow> o) { |
| 921 unittest.expect(o, unittest.hasLength(2)); | 921 unittest.expect(o, unittest.hasLength(2)); |
| 922 checkTableRow(o[0]); | 922 checkTableRow(o[0]); |
| 923 checkTableRow(o[1]); | 923 checkTableRow(o[1]); |
| 924 } | 924 } |
| 925 | 925 |
| 926 core.int buildCounterQueryResponse = 0; | 926 core.int buildCounterQueryResponse = 0; |
| 927 buildQueryResponse() { | 927 buildQueryResponse() { |
| 928 var o = new api.QueryResponse(); | 928 var o = new api.QueryResponse(); |
| 929 buildCounterQueryResponse++; | 929 buildCounterQueryResponse++; |
| 930 if (buildCounterQueryResponse < 3) { | 930 if (buildCounterQueryResponse < 3) { |
| 931 o.cacheHit = true; | 931 o.cacheHit = true; |
| 932 o.jobComplete = true; | 932 o.jobComplete = true; |
| 933 o.jobReference = buildJobReference(); | 933 o.jobReference = buildJobReference(); |
| 934 o.kind = "foo"; | 934 o.kind = "foo"; |
| 935 o.pageToken = "foo"; | 935 o.pageToken = "foo"; |
| 936 o.rows = buildUnnamed277(); | 936 o.rows = buildUnnamed1180(); |
| 937 o.schema = buildTableSchema(); | 937 o.schema = buildTableSchema(); |
| 938 o.totalBytesProcessed = "foo"; | 938 o.totalBytesProcessed = "foo"; |
| 939 o.totalRows = "foo"; | 939 o.totalRows = "foo"; |
| 940 } | 940 } |
| 941 buildCounterQueryResponse--; | 941 buildCounterQueryResponse--; |
| 942 return o; | 942 return o; |
| 943 } | 943 } |
| 944 | 944 |
| 945 checkQueryResponse(api.QueryResponse o) { | 945 checkQueryResponse(api.QueryResponse o) { |
| 946 buildCounterQueryResponse++; | 946 buildCounterQueryResponse++; |
| 947 if (buildCounterQueryResponse < 3) { | 947 if (buildCounterQueryResponse < 3) { |
| 948 unittest.expect(o.cacheHit, unittest.isTrue); | 948 unittest.expect(o.cacheHit, unittest.isTrue); |
| 949 unittest.expect(o.jobComplete, unittest.isTrue); | 949 unittest.expect(o.jobComplete, unittest.isTrue); |
| 950 checkJobReference(o.jobReference); | 950 checkJobReference(o.jobReference); |
| 951 unittest.expect(o.kind, unittest.equals('foo')); | 951 unittest.expect(o.kind, unittest.equals('foo')); |
| 952 unittest.expect(o.pageToken, unittest.equals('foo')); | 952 unittest.expect(o.pageToken, unittest.equals('foo')); |
| 953 checkUnnamed277(o.rows); | 953 checkUnnamed1180(o.rows); |
| 954 checkTableSchema(o.schema); | 954 checkTableSchema(o.schema); |
| 955 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); | 955 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); |
| 956 unittest.expect(o.totalRows, unittest.equals('foo')); | 956 unittest.expect(o.totalRows, unittest.equals('foo')); |
| 957 } | 957 } |
| 958 buildCounterQueryResponse--; | 958 buildCounterQueryResponse--; |
| 959 } | 959 } |
| 960 | 960 |
| 961 core.int buildCounterTable = 0; | 961 core.int buildCounterTable = 0; |
| 962 buildTable() { | 962 buildTable() { |
| 963 var o = new api.Table(); | 963 var o = new api.Table(); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1038 | 1038 |
| 1039 checkTableDataInsertAllRequestRows(api.TableDataInsertAllRequestRows o) { | 1039 checkTableDataInsertAllRequestRows(api.TableDataInsertAllRequestRows o) { |
| 1040 buildCounterTableDataInsertAllRequestRows++; | 1040 buildCounterTableDataInsertAllRequestRows++; |
| 1041 if (buildCounterTableDataInsertAllRequestRows < 3) { | 1041 if (buildCounterTableDataInsertAllRequestRows < 3) { |
| 1042 unittest.expect(o.insertId, unittest.equals('foo')); | 1042 unittest.expect(o.insertId, unittest.equals('foo')); |
| 1043 checkJsonObject(o.json); | 1043 checkJsonObject(o.json); |
| 1044 } | 1044 } |
| 1045 buildCounterTableDataInsertAllRequestRows--; | 1045 buildCounterTableDataInsertAllRequestRows--; |
| 1046 } | 1046 } |
| 1047 | 1047 |
| 1048 buildUnnamed278() { | 1048 buildUnnamed1181() { |
| 1049 var o = new core.List<api.TableDataInsertAllRequestRows>(); | 1049 var o = new core.List<api.TableDataInsertAllRequestRows>(); |
| 1050 o.add(buildTableDataInsertAllRequestRows()); | 1050 o.add(buildTableDataInsertAllRequestRows()); |
| 1051 o.add(buildTableDataInsertAllRequestRows()); | 1051 o.add(buildTableDataInsertAllRequestRows()); |
| 1052 return o; | 1052 return o; |
| 1053 } | 1053 } |
| 1054 | 1054 |
| 1055 checkUnnamed278(core.List<api.TableDataInsertAllRequestRows> o) { | 1055 checkUnnamed1181(core.List<api.TableDataInsertAllRequestRows> o) { |
| 1056 unittest.expect(o, unittest.hasLength(2)); | 1056 unittest.expect(o, unittest.hasLength(2)); |
| 1057 checkTableDataInsertAllRequestRows(o[0]); | 1057 checkTableDataInsertAllRequestRows(o[0]); |
| 1058 checkTableDataInsertAllRequestRows(o[1]); | 1058 checkTableDataInsertAllRequestRows(o[1]); |
| 1059 } | 1059 } |
| 1060 | 1060 |
| 1061 core.int buildCounterTableDataInsertAllRequest = 0; | 1061 core.int buildCounterTableDataInsertAllRequest = 0; |
| 1062 buildTableDataInsertAllRequest() { | 1062 buildTableDataInsertAllRequest() { |
| 1063 var o = new api.TableDataInsertAllRequest(); | 1063 var o = new api.TableDataInsertAllRequest(); |
| 1064 buildCounterTableDataInsertAllRequest++; | 1064 buildCounterTableDataInsertAllRequest++; |
| 1065 if (buildCounterTableDataInsertAllRequest < 3) { | 1065 if (buildCounterTableDataInsertAllRequest < 3) { |
| 1066 o.kind = "foo"; | 1066 o.kind = "foo"; |
| 1067 o.rows = buildUnnamed278(); | 1067 o.rows = buildUnnamed1181(); |
| 1068 } | 1068 } |
| 1069 buildCounterTableDataInsertAllRequest--; | 1069 buildCounterTableDataInsertAllRequest--; |
| 1070 return o; | 1070 return o; |
| 1071 } | 1071 } |
| 1072 | 1072 |
| 1073 checkTableDataInsertAllRequest(api.TableDataInsertAllRequest o) { | 1073 checkTableDataInsertAllRequest(api.TableDataInsertAllRequest o) { |
| 1074 buildCounterTableDataInsertAllRequest++; | 1074 buildCounterTableDataInsertAllRequest++; |
| 1075 if (buildCounterTableDataInsertAllRequest < 3) { | 1075 if (buildCounterTableDataInsertAllRequest < 3) { |
| 1076 unittest.expect(o.kind, unittest.equals('foo')); | 1076 unittest.expect(o.kind, unittest.equals('foo')); |
| 1077 checkUnnamed278(o.rows); | 1077 checkUnnamed1181(o.rows); |
| 1078 } | 1078 } |
| 1079 buildCounterTableDataInsertAllRequest--; | 1079 buildCounterTableDataInsertAllRequest--; |
| 1080 } | 1080 } |
| 1081 | 1081 |
| 1082 buildUnnamed279() { | 1082 buildUnnamed1182() { |
| 1083 var o = new core.List<api.ErrorProto>(); | 1083 var o = new core.List<api.ErrorProto>(); |
| 1084 o.add(buildErrorProto()); | 1084 o.add(buildErrorProto()); |
| 1085 o.add(buildErrorProto()); | 1085 o.add(buildErrorProto()); |
| 1086 return o; | 1086 return o; |
| 1087 } | 1087 } |
| 1088 | 1088 |
| 1089 checkUnnamed279(core.List<api.ErrorProto> o) { | 1089 checkUnnamed1182(core.List<api.ErrorProto> o) { |
| 1090 unittest.expect(o, unittest.hasLength(2)); | 1090 unittest.expect(o, unittest.hasLength(2)); |
| 1091 checkErrorProto(o[0]); | 1091 checkErrorProto(o[0]); |
| 1092 checkErrorProto(o[1]); | 1092 checkErrorProto(o[1]); |
| 1093 } | 1093 } |
| 1094 | 1094 |
| 1095 core.int buildCounterTableDataInsertAllResponseInsertErrors = 0; | 1095 core.int buildCounterTableDataInsertAllResponseInsertErrors = 0; |
| 1096 buildTableDataInsertAllResponseInsertErrors() { | 1096 buildTableDataInsertAllResponseInsertErrors() { |
| 1097 var o = new api.TableDataInsertAllResponseInsertErrors(); | 1097 var o = new api.TableDataInsertAllResponseInsertErrors(); |
| 1098 buildCounterTableDataInsertAllResponseInsertErrors++; | 1098 buildCounterTableDataInsertAllResponseInsertErrors++; |
| 1099 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { | 1099 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { |
| 1100 o.errors = buildUnnamed279(); | 1100 o.errors = buildUnnamed1182(); |
| 1101 o.index = 42; | 1101 o.index = 42; |
| 1102 } | 1102 } |
| 1103 buildCounterTableDataInsertAllResponseInsertErrors--; | 1103 buildCounterTableDataInsertAllResponseInsertErrors--; |
| 1104 return o; | 1104 return o; |
| 1105 } | 1105 } |
| 1106 | 1106 |
| 1107 checkTableDataInsertAllResponseInsertErrors(api.TableDataInsertAllResponseInsert
Errors o) { | 1107 checkTableDataInsertAllResponseInsertErrors(api.TableDataInsertAllResponseInsert
Errors o) { |
| 1108 buildCounterTableDataInsertAllResponseInsertErrors++; | 1108 buildCounterTableDataInsertAllResponseInsertErrors++; |
| 1109 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { | 1109 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { |
| 1110 checkUnnamed279(o.errors); | 1110 checkUnnamed1182(o.errors); |
| 1111 unittest.expect(o.index, unittest.equals(42)); | 1111 unittest.expect(o.index, unittest.equals(42)); |
| 1112 } | 1112 } |
| 1113 buildCounterTableDataInsertAllResponseInsertErrors--; | 1113 buildCounterTableDataInsertAllResponseInsertErrors--; |
| 1114 } | 1114 } |
| 1115 | 1115 |
| 1116 buildUnnamed280() { | 1116 buildUnnamed1183() { |
| 1117 var o = new core.List<api.TableDataInsertAllResponseInsertErrors>(); | 1117 var o = new core.List<api.TableDataInsertAllResponseInsertErrors>(); |
| 1118 o.add(buildTableDataInsertAllResponseInsertErrors()); | 1118 o.add(buildTableDataInsertAllResponseInsertErrors()); |
| 1119 o.add(buildTableDataInsertAllResponseInsertErrors()); | 1119 o.add(buildTableDataInsertAllResponseInsertErrors()); |
| 1120 return o; | 1120 return o; |
| 1121 } | 1121 } |
| 1122 | 1122 |
| 1123 checkUnnamed280(core.List<api.TableDataInsertAllResponseInsertErrors> o) { | 1123 checkUnnamed1183(core.List<api.TableDataInsertAllResponseInsertErrors> o) { |
| 1124 unittest.expect(o, unittest.hasLength(2)); | 1124 unittest.expect(o, unittest.hasLength(2)); |
| 1125 checkTableDataInsertAllResponseInsertErrors(o[0]); | 1125 checkTableDataInsertAllResponseInsertErrors(o[0]); |
| 1126 checkTableDataInsertAllResponseInsertErrors(o[1]); | 1126 checkTableDataInsertAllResponseInsertErrors(o[1]); |
| 1127 } | 1127 } |
| 1128 | 1128 |
| 1129 core.int buildCounterTableDataInsertAllResponse = 0; | 1129 core.int buildCounterTableDataInsertAllResponse = 0; |
| 1130 buildTableDataInsertAllResponse() { | 1130 buildTableDataInsertAllResponse() { |
| 1131 var o = new api.TableDataInsertAllResponse(); | 1131 var o = new api.TableDataInsertAllResponse(); |
| 1132 buildCounterTableDataInsertAllResponse++; | 1132 buildCounterTableDataInsertAllResponse++; |
| 1133 if (buildCounterTableDataInsertAllResponse < 3) { | 1133 if (buildCounterTableDataInsertAllResponse < 3) { |
| 1134 o.insertErrors = buildUnnamed280(); | 1134 o.insertErrors = buildUnnamed1183(); |
| 1135 o.kind = "foo"; | 1135 o.kind = "foo"; |
| 1136 } | 1136 } |
| 1137 buildCounterTableDataInsertAllResponse--; | 1137 buildCounterTableDataInsertAllResponse--; |
| 1138 return o; | 1138 return o; |
| 1139 } | 1139 } |
| 1140 | 1140 |
| 1141 checkTableDataInsertAllResponse(api.TableDataInsertAllResponse o) { | 1141 checkTableDataInsertAllResponse(api.TableDataInsertAllResponse o) { |
| 1142 buildCounterTableDataInsertAllResponse++; | 1142 buildCounterTableDataInsertAllResponse++; |
| 1143 if (buildCounterTableDataInsertAllResponse < 3) { | 1143 if (buildCounterTableDataInsertAllResponse < 3) { |
| 1144 checkUnnamed280(o.insertErrors); | 1144 checkUnnamed1183(o.insertErrors); |
| 1145 unittest.expect(o.kind, unittest.equals('foo')); | 1145 unittest.expect(o.kind, unittest.equals('foo')); |
| 1146 } | 1146 } |
| 1147 buildCounterTableDataInsertAllResponse--; | 1147 buildCounterTableDataInsertAllResponse--; |
| 1148 } | 1148 } |
| 1149 | 1149 |
| 1150 buildUnnamed281() { | 1150 buildUnnamed1184() { |
| 1151 var o = new core.List<api.TableRow>(); | 1151 var o = new core.List<api.TableRow>(); |
| 1152 o.add(buildTableRow()); | 1152 o.add(buildTableRow()); |
| 1153 o.add(buildTableRow()); | 1153 o.add(buildTableRow()); |
| 1154 return o; | 1154 return o; |
| 1155 } | 1155 } |
| 1156 | 1156 |
| 1157 checkUnnamed281(core.List<api.TableRow> o) { | 1157 checkUnnamed1184(core.List<api.TableRow> o) { |
| 1158 unittest.expect(o, unittest.hasLength(2)); | 1158 unittest.expect(o, unittest.hasLength(2)); |
| 1159 checkTableRow(o[0]); | 1159 checkTableRow(o[0]); |
| 1160 checkTableRow(o[1]); | 1160 checkTableRow(o[1]); |
| 1161 } | 1161 } |
| 1162 | 1162 |
| 1163 core.int buildCounterTableDataList = 0; | 1163 core.int buildCounterTableDataList = 0; |
| 1164 buildTableDataList() { | 1164 buildTableDataList() { |
| 1165 var o = new api.TableDataList(); | 1165 var o = new api.TableDataList(); |
| 1166 buildCounterTableDataList++; | 1166 buildCounterTableDataList++; |
| 1167 if (buildCounterTableDataList < 3) { | 1167 if (buildCounterTableDataList < 3) { |
| 1168 o.etag = "foo"; | 1168 o.etag = "foo"; |
| 1169 o.kind = "foo"; | 1169 o.kind = "foo"; |
| 1170 o.pageToken = "foo"; | 1170 o.pageToken = "foo"; |
| 1171 o.rows = buildUnnamed281(); | 1171 o.rows = buildUnnamed1184(); |
| 1172 o.totalRows = "foo"; | 1172 o.totalRows = "foo"; |
| 1173 } | 1173 } |
| 1174 buildCounterTableDataList--; | 1174 buildCounterTableDataList--; |
| 1175 return o; | 1175 return o; |
| 1176 } | 1176 } |
| 1177 | 1177 |
| 1178 checkTableDataList(api.TableDataList o) { | 1178 checkTableDataList(api.TableDataList o) { |
| 1179 buildCounterTableDataList++; | 1179 buildCounterTableDataList++; |
| 1180 if (buildCounterTableDataList < 3) { | 1180 if (buildCounterTableDataList < 3) { |
| 1181 unittest.expect(o.etag, unittest.equals('foo')); | 1181 unittest.expect(o.etag, unittest.equals('foo')); |
| 1182 unittest.expect(o.kind, unittest.equals('foo')); | 1182 unittest.expect(o.kind, unittest.equals('foo')); |
| 1183 unittest.expect(o.pageToken, unittest.equals('foo')); | 1183 unittest.expect(o.pageToken, unittest.equals('foo')); |
| 1184 checkUnnamed281(o.rows); | 1184 checkUnnamed1184(o.rows); |
| 1185 unittest.expect(o.totalRows, unittest.equals('foo')); | 1185 unittest.expect(o.totalRows, unittest.equals('foo')); |
| 1186 } | 1186 } |
| 1187 buildCounterTableDataList--; | 1187 buildCounterTableDataList--; |
| 1188 } | 1188 } |
| 1189 | 1189 |
| 1190 buildUnnamed282() { | 1190 buildUnnamed1185() { |
| 1191 var o = new core.List<api.TableFieldSchema>(); | 1191 var o = new core.List<api.TableFieldSchema>(); |
| 1192 o.add(buildTableFieldSchema()); | 1192 o.add(buildTableFieldSchema()); |
| 1193 o.add(buildTableFieldSchema()); | 1193 o.add(buildTableFieldSchema()); |
| 1194 return o; | 1194 return o; |
| 1195 } | 1195 } |
| 1196 | 1196 |
| 1197 checkUnnamed282(core.List<api.TableFieldSchema> o) { | 1197 checkUnnamed1185(core.List<api.TableFieldSchema> o) { |
| 1198 unittest.expect(o, unittest.hasLength(2)); | 1198 unittest.expect(o, unittest.hasLength(2)); |
| 1199 checkTableFieldSchema(o[0]); | 1199 checkTableFieldSchema(o[0]); |
| 1200 checkTableFieldSchema(o[1]); | 1200 checkTableFieldSchema(o[1]); |
| 1201 } | 1201 } |
| 1202 | 1202 |
| 1203 core.int buildCounterTableFieldSchema = 0; | 1203 core.int buildCounterTableFieldSchema = 0; |
| 1204 buildTableFieldSchema() { | 1204 buildTableFieldSchema() { |
| 1205 var o = new api.TableFieldSchema(); | 1205 var o = new api.TableFieldSchema(); |
| 1206 buildCounterTableFieldSchema++; | 1206 buildCounterTableFieldSchema++; |
| 1207 if (buildCounterTableFieldSchema < 3) { | 1207 if (buildCounterTableFieldSchema < 3) { |
| 1208 o.description = "foo"; | 1208 o.description = "foo"; |
| 1209 o.fields = buildUnnamed282(); | 1209 o.fields = buildUnnamed1185(); |
| 1210 o.mode = "foo"; | 1210 o.mode = "foo"; |
| 1211 o.name = "foo"; | 1211 o.name = "foo"; |
| 1212 o.type = "foo"; | 1212 o.type = "foo"; |
| 1213 } | 1213 } |
| 1214 buildCounterTableFieldSchema--; | 1214 buildCounterTableFieldSchema--; |
| 1215 return o; | 1215 return o; |
| 1216 } | 1216 } |
| 1217 | 1217 |
| 1218 checkTableFieldSchema(api.TableFieldSchema o) { | 1218 checkTableFieldSchema(api.TableFieldSchema o) { |
| 1219 buildCounterTableFieldSchema++; | 1219 buildCounterTableFieldSchema++; |
| 1220 if (buildCounterTableFieldSchema < 3) { | 1220 if (buildCounterTableFieldSchema < 3) { |
| 1221 unittest.expect(o.description, unittest.equals('foo')); | 1221 unittest.expect(o.description, unittest.equals('foo')); |
| 1222 checkUnnamed282(o.fields); | 1222 checkUnnamed1185(o.fields); |
| 1223 unittest.expect(o.mode, unittest.equals('foo')); | 1223 unittest.expect(o.mode, unittest.equals('foo')); |
| 1224 unittest.expect(o.name, unittest.equals('foo')); | 1224 unittest.expect(o.name, unittest.equals('foo')); |
| 1225 unittest.expect(o.type, unittest.equals('foo')); | 1225 unittest.expect(o.type, unittest.equals('foo')); |
| 1226 } | 1226 } |
| 1227 buildCounterTableFieldSchema--; | 1227 buildCounterTableFieldSchema--; |
| 1228 } | 1228 } |
| 1229 | 1229 |
| 1230 core.int buildCounterTableListTables = 0; | 1230 core.int buildCounterTableListTables = 0; |
| 1231 buildTableListTables() { | 1231 buildTableListTables() { |
| 1232 var o = new api.TableListTables(); | 1232 var o = new api.TableListTables(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1247 if (buildCounterTableListTables < 3) { | 1247 if (buildCounterTableListTables < 3) { |
| 1248 unittest.expect(o.friendlyName, unittest.equals('foo')); | 1248 unittest.expect(o.friendlyName, unittest.equals('foo')); |
| 1249 unittest.expect(o.id, unittest.equals('foo')); | 1249 unittest.expect(o.id, unittest.equals('foo')); |
| 1250 unittest.expect(o.kind, unittest.equals('foo')); | 1250 unittest.expect(o.kind, unittest.equals('foo')); |
| 1251 checkTableReference(o.tableReference); | 1251 checkTableReference(o.tableReference); |
| 1252 unittest.expect(o.type, unittest.equals('foo')); | 1252 unittest.expect(o.type, unittest.equals('foo')); |
| 1253 } | 1253 } |
| 1254 buildCounterTableListTables--; | 1254 buildCounterTableListTables--; |
| 1255 } | 1255 } |
| 1256 | 1256 |
| 1257 buildUnnamed283() { | 1257 buildUnnamed1186() { |
| 1258 var o = new core.List<api.TableListTables>(); | 1258 var o = new core.List<api.TableListTables>(); |
| 1259 o.add(buildTableListTables()); | 1259 o.add(buildTableListTables()); |
| 1260 o.add(buildTableListTables()); | 1260 o.add(buildTableListTables()); |
| 1261 return o; | 1261 return o; |
| 1262 } | 1262 } |
| 1263 | 1263 |
| 1264 checkUnnamed283(core.List<api.TableListTables> o) { | 1264 checkUnnamed1186(core.List<api.TableListTables> o) { |
| 1265 unittest.expect(o, unittest.hasLength(2)); | 1265 unittest.expect(o, unittest.hasLength(2)); |
| 1266 checkTableListTables(o[0]); | 1266 checkTableListTables(o[0]); |
| 1267 checkTableListTables(o[1]); | 1267 checkTableListTables(o[1]); |
| 1268 } | 1268 } |
| 1269 | 1269 |
| 1270 core.int buildCounterTableList = 0; | 1270 core.int buildCounterTableList = 0; |
| 1271 buildTableList() { | 1271 buildTableList() { |
| 1272 var o = new api.TableList(); | 1272 var o = new api.TableList(); |
| 1273 buildCounterTableList++; | 1273 buildCounterTableList++; |
| 1274 if (buildCounterTableList < 3) { | 1274 if (buildCounterTableList < 3) { |
| 1275 o.etag = "foo"; | 1275 o.etag = "foo"; |
| 1276 o.kind = "foo"; | 1276 o.kind = "foo"; |
| 1277 o.nextPageToken = "foo"; | 1277 o.nextPageToken = "foo"; |
| 1278 o.tables = buildUnnamed283(); | 1278 o.tables = buildUnnamed1186(); |
| 1279 o.totalItems = 42; | 1279 o.totalItems = 42; |
| 1280 } | 1280 } |
| 1281 buildCounterTableList--; | 1281 buildCounterTableList--; |
| 1282 return o; | 1282 return o; |
| 1283 } | 1283 } |
| 1284 | 1284 |
| 1285 checkTableList(api.TableList o) { | 1285 checkTableList(api.TableList o) { |
| 1286 buildCounterTableList++; | 1286 buildCounterTableList++; |
| 1287 if (buildCounterTableList < 3) { | 1287 if (buildCounterTableList < 3) { |
| 1288 unittest.expect(o.etag, unittest.equals('foo')); | 1288 unittest.expect(o.etag, unittest.equals('foo')); |
| 1289 unittest.expect(o.kind, unittest.equals('foo')); | 1289 unittest.expect(o.kind, unittest.equals('foo')); |
| 1290 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1290 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1291 checkUnnamed283(o.tables); | 1291 checkUnnamed1186(o.tables); |
| 1292 unittest.expect(o.totalItems, unittest.equals(42)); | 1292 unittest.expect(o.totalItems, unittest.equals(42)); |
| 1293 } | 1293 } |
| 1294 buildCounterTableList--; | 1294 buildCounterTableList--; |
| 1295 } | 1295 } |
| 1296 | 1296 |
| 1297 core.int buildCounterTableReference = 0; | 1297 core.int buildCounterTableReference = 0; |
| 1298 buildTableReference() { | 1298 buildTableReference() { |
| 1299 var o = new api.TableReference(); | 1299 var o = new api.TableReference(); |
| 1300 buildCounterTableReference++; | 1300 buildCounterTableReference++; |
| 1301 if (buildCounterTableReference < 3) { | 1301 if (buildCounterTableReference < 3) { |
| 1302 o.datasetId = "foo"; | 1302 o.datasetId = "foo"; |
| 1303 o.projectId = "foo"; | 1303 o.projectId = "foo"; |
| 1304 o.tableId = "foo"; | 1304 o.tableId = "foo"; |
| 1305 } | 1305 } |
| 1306 buildCounterTableReference--; | 1306 buildCounterTableReference--; |
| 1307 return o; | 1307 return o; |
| 1308 } | 1308 } |
| 1309 | 1309 |
| 1310 checkTableReference(api.TableReference o) { | 1310 checkTableReference(api.TableReference o) { |
| 1311 buildCounterTableReference++; | 1311 buildCounterTableReference++; |
| 1312 if (buildCounterTableReference < 3) { | 1312 if (buildCounterTableReference < 3) { |
| 1313 unittest.expect(o.datasetId, unittest.equals('foo')); | 1313 unittest.expect(o.datasetId, unittest.equals('foo')); |
| 1314 unittest.expect(o.projectId, unittest.equals('foo')); | 1314 unittest.expect(o.projectId, unittest.equals('foo')); |
| 1315 unittest.expect(o.tableId, unittest.equals('foo')); | 1315 unittest.expect(o.tableId, unittest.equals('foo')); |
| 1316 } | 1316 } |
| 1317 buildCounterTableReference--; | 1317 buildCounterTableReference--; |
| 1318 } | 1318 } |
| 1319 | 1319 |
| 1320 buildUnnamed284() { | 1320 buildUnnamed1187() { |
| 1321 var o = new core.List<api.TableCell>(); | 1321 var o = new core.List<api.TableCell>(); |
| 1322 o.add(buildTableCell()); | 1322 o.add(buildTableCell()); |
| 1323 o.add(buildTableCell()); | 1323 o.add(buildTableCell()); |
| 1324 return o; | 1324 return o; |
| 1325 } | 1325 } |
| 1326 | 1326 |
| 1327 checkUnnamed284(core.List<api.TableCell> o) { | 1327 checkUnnamed1187(core.List<api.TableCell> o) { |
| 1328 unittest.expect(o, unittest.hasLength(2)); | 1328 unittest.expect(o, unittest.hasLength(2)); |
| 1329 checkTableCell(o[0]); | 1329 checkTableCell(o[0]); |
| 1330 checkTableCell(o[1]); | 1330 checkTableCell(o[1]); |
| 1331 } | 1331 } |
| 1332 | 1332 |
| 1333 core.int buildCounterTableRow = 0; | 1333 core.int buildCounterTableRow = 0; |
| 1334 buildTableRow() { | 1334 buildTableRow() { |
| 1335 var o = new api.TableRow(); | 1335 var o = new api.TableRow(); |
| 1336 buildCounterTableRow++; | 1336 buildCounterTableRow++; |
| 1337 if (buildCounterTableRow < 3) { | 1337 if (buildCounterTableRow < 3) { |
| 1338 o.f = buildUnnamed284(); | 1338 o.f = buildUnnamed1187(); |
| 1339 } | 1339 } |
| 1340 buildCounterTableRow--; | 1340 buildCounterTableRow--; |
| 1341 return o; | 1341 return o; |
| 1342 } | 1342 } |
| 1343 | 1343 |
| 1344 checkTableRow(api.TableRow o) { | 1344 checkTableRow(api.TableRow o) { |
| 1345 buildCounterTableRow++; | 1345 buildCounterTableRow++; |
| 1346 if (buildCounterTableRow < 3) { | 1346 if (buildCounterTableRow < 3) { |
| 1347 checkUnnamed284(o.f); | 1347 checkUnnamed1187(o.f); |
| 1348 } | 1348 } |
| 1349 buildCounterTableRow--; | 1349 buildCounterTableRow--; |
| 1350 } | 1350 } |
| 1351 | 1351 |
| 1352 buildUnnamed285() { | 1352 buildUnnamed1188() { |
| 1353 var o = new core.List<api.TableFieldSchema>(); | 1353 var o = new core.List<api.TableFieldSchema>(); |
| 1354 o.add(buildTableFieldSchema()); | 1354 o.add(buildTableFieldSchema()); |
| 1355 o.add(buildTableFieldSchema()); | 1355 o.add(buildTableFieldSchema()); |
| 1356 return o; | 1356 return o; |
| 1357 } | 1357 } |
| 1358 | 1358 |
| 1359 checkUnnamed285(core.List<api.TableFieldSchema> o) { | 1359 checkUnnamed1188(core.List<api.TableFieldSchema> o) { |
| 1360 unittest.expect(o, unittest.hasLength(2)); | 1360 unittest.expect(o, unittest.hasLength(2)); |
| 1361 checkTableFieldSchema(o[0]); | 1361 checkTableFieldSchema(o[0]); |
| 1362 checkTableFieldSchema(o[1]); | 1362 checkTableFieldSchema(o[1]); |
| 1363 } | 1363 } |
| 1364 | 1364 |
| 1365 core.int buildCounterTableSchema = 0; | 1365 core.int buildCounterTableSchema = 0; |
| 1366 buildTableSchema() { | 1366 buildTableSchema() { |
| 1367 var o = new api.TableSchema(); | 1367 var o = new api.TableSchema(); |
| 1368 buildCounterTableSchema++; | 1368 buildCounterTableSchema++; |
| 1369 if (buildCounterTableSchema < 3) { | 1369 if (buildCounterTableSchema < 3) { |
| 1370 o.fields = buildUnnamed285(); | 1370 o.fields = buildUnnamed1188(); |
| 1371 } | 1371 } |
| 1372 buildCounterTableSchema--; | 1372 buildCounterTableSchema--; |
| 1373 return o; | 1373 return o; |
| 1374 } | 1374 } |
| 1375 | 1375 |
| 1376 checkTableSchema(api.TableSchema o) { | 1376 checkTableSchema(api.TableSchema o) { |
| 1377 buildCounterTableSchema++; | 1377 buildCounterTableSchema++; |
| 1378 if (buildCounterTableSchema < 3) { | 1378 if (buildCounterTableSchema < 3) { |
| 1379 checkUnnamed285(o.fields); | 1379 checkUnnamed1188(o.fields); |
| 1380 } | 1380 } |
| 1381 buildCounterTableSchema--; | 1381 buildCounterTableSchema--; |
| 1382 } | 1382 } |
| 1383 | 1383 |
| 1384 core.int buildCounterViewDefinition = 0; | 1384 core.int buildCounterViewDefinition = 0; |
| 1385 buildViewDefinition() { | 1385 buildViewDefinition() { |
| 1386 var o = new api.ViewDefinition(); | 1386 var o = new api.ViewDefinition(); |
| 1387 buildCounterViewDefinition++; | 1387 buildCounterViewDefinition++; |
| 1388 if (buildCounterViewDefinition < 3) { | 1388 if (buildCounterViewDefinition < 3) { |
| 1389 o.query = "foo"; | 1389 o.query = "foo"; |
| 1390 } | 1390 } |
| 1391 buildCounterViewDefinition--; | 1391 buildCounterViewDefinition--; |
| 1392 return o; | 1392 return o; |
| 1393 } | 1393 } |
| 1394 | 1394 |
| 1395 checkViewDefinition(api.ViewDefinition o) { | 1395 checkViewDefinition(api.ViewDefinition o) { |
| 1396 buildCounterViewDefinition++; | 1396 buildCounterViewDefinition++; |
| 1397 if (buildCounterViewDefinition < 3) { | 1397 if (buildCounterViewDefinition < 3) { |
| 1398 unittest.expect(o.query, unittest.equals('foo')); | 1398 unittest.expect(o.query, unittest.equals('foo')); |
| 1399 } | 1399 } |
| 1400 buildCounterViewDefinition--; | 1400 buildCounterViewDefinition--; |
| 1401 } | 1401 } |
| 1402 | 1402 |
| 1403 buildUnnamed286() { | 1403 buildUnnamed1189() { |
| 1404 var o = new core.List<core.String>(); | 1404 var o = new core.List<core.String>(); |
| 1405 o.add("foo"); | 1405 o.add("foo"); |
| 1406 o.add("foo"); | 1406 o.add("foo"); |
| 1407 return o; | 1407 return o; |
| 1408 } | 1408 } |
| 1409 | 1409 |
| 1410 checkUnnamed286(core.List<core.String> o) { | 1410 checkUnnamed1189(core.List<core.String> o) { |
| 1411 unittest.expect(o, unittest.hasLength(2)); | 1411 unittest.expect(o, unittest.hasLength(2)); |
| 1412 unittest.expect(o[0], unittest.equals('foo')); | 1412 unittest.expect(o[0], unittest.equals('foo')); |
| 1413 unittest.expect(o[1], unittest.equals('foo')); | 1413 unittest.expect(o[1], unittest.equals('foo')); |
| 1414 } | 1414 } |
| 1415 | 1415 |
| 1416 | 1416 |
| 1417 main() { | 1417 main() { |
| 1418 unittest.group("obj-schema-DatasetAccess", () { | 1418 unittest.group("obj-schema-DatasetAccess", () { |
| 1419 unittest.test("to-json--from-json", () { | 1419 unittest.test("to-json--from-json", () { |
| 1420 var o = buildDatasetAccess(); | 1420 var o = buildDatasetAccess(); |
| (...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2333 | 2333 |
| 2334 unittest.test("method--list", () { | 2334 unittest.test("method--list", () { |
| 2335 | 2335 |
| 2336 var mock = new common_test.HttpServerMock(); | 2336 var mock = new common_test.HttpServerMock(); |
| 2337 api.JobsResourceApi res = new api.BigqueryApi(mock).jobs; | 2337 api.JobsResourceApi res = new api.BigqueryApi(mock).jobs; |
| 2338 var arg_projectId = "foo"; | 2338 var arg_projectId = "foo"; |
| 2339 var arg_allUsers = true; | 2339 var arg_allUsers = true; |
| 2340 var arg_maxResults = 42; | 2340 var arg_maxResults = 42; |
| 2341 var arg_pageToken = "foo"; | 2341 var arg_pageToken = "foo"; |
| 2342 var arg_projection = "foo"; | 2342 var arg_projection = "foo"; |
| 2343 var arg_stateFilter = buildUnnamed286(); | 2343 var arg_stateFilter = buildUnnamed1189(); |
| 2344 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2344 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2345 var path = (req.url).path; | 2345 var path = (req.url).path; |
| 2346 var pathOffset = 0; | 2346 var pathOffset = 0; |
| 2347 var index; | 2347 var index; |
| 2348 var subPart; | 2348 var subPart; |
| 2349 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2349 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2350 pathOffset += 1; | 2350 pathOffset += 1; |
| 2351 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("bigquery/v2/")); | 2351 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("bigquery/v2/")); |
| 2352 pathOffset += 12; | 2352 pathOffset += 12; |
| 2353 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 2353 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
| (...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3054 res.update(arg_request, arg_projectId, arg_datasetId, arg_tableId).then(un
ittest.expectAsync(((api.Table response) { | 3054 res.update(arg_request, arg_projectId, arg_datasetId, arg_tableId).then(un
ittest.expectAsync(((api.Table response) { |
| 3055 checkTable(response); | 3055 checkTable(response); |
| 3056 }))); | 3056 }))); |
| 3057 }); | 3057 }); |
| 3058 | 3058 |
| 3059 }); | 3059 }); |
| 3060 | 3060 |
| 3061 | 3061 |
| 3062 } | 3062 } |
| 3063 | 3063 |
| OLD | NEW |