| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 } | 44 } |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 | 47 |
| 48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
| 49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map headers, core.String body) { |
| 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
| 51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
| 52 } | 52 } |
| 53 | 53 |
| 54 core.int buildCounterBigtableColumn = 0; |
| 55 buildBigtableColumn() { |
| 56 var o = new api.BigtableColumn(); |
| 57 buildCounterBigtableColumn++; |
| 58 if (buildCounterBigtableColumn < 3) { |
| 59 o.encoding = "foo"; |
| 60 o.fieldName = "foo"; |
| 61 o.onlyReadLatest = true; |
| 62 o.qualifierEncoded = "foo"; |
| 63 o.qualifierString = "foo"; |
| 64 o.type = "foo"; |
| 65 } |
| 66 buildCounterBigtableColumn--; |
| 67 return o; |
| 68 } |
| 69 |
| 70 checkBigtableColumn(api.BigtableColumn o) { |
| 71 buildCounterBigtableColumn++; |
| 72 if (buildCounterBigtableColumn < 3) { |
| 73 unittest.expect(o.encoding, unittest.equals('foo')); |
| 74 unittest.expect(o.fieldName, unittest.equals('foo')); |
| 75 unittest.expect(o.onlyReadLatest, unittest.isTrue); |
| 76 unittest.expect(o.qualifierEncoded, unittest.equals('foo')); |
| 77 unittest.expect(o.qualifierString, unittest.equals('foo')); |
| 78 unittest.expect(o.type, unittest.equals('foo')); |
| 79 } |
| 80 buildCounterBigtableColumn--; |
| 81 } |
| 82 |
| 83 buildUnnamed2973() { |
| 84 var o = new core.List<api.BigtableColumn>(); |
| 85 o.add(buildBigtableColumn()); |
| 86 o.add(buildBigtableColumn()); |
| 87 return o; |
| 88 } |
| 89 |
| 90 checkUnnamed2973(core.List<api.BigtableColumn> o) { |
| 91 unittest.expect(o, unittest.hasLength(2)); |
| 92 checkBigtableColumn(o[0]); |
| 93 checkBigtableColumn(o[1]); |
| 94 } |
| 95 |
| 96 core.int buildCounterBigtableColumnFamily = 0; |
| 97 buildBigtableColumnFamily() { |
| 98 var o = new api.BigtableColumnFamily(); |
| 99 buildCounterBigtableColumnFamily++; |
| 100 if (buildCounterBigtableColumnFamily < 3) { |
| 101 o.columns = buildUnnamed2973(); |
| 102 o.encoding = "foo"; |
| 103 o.familyId = "foo"; |
| 104 o.onlyReadLatest = true; |
| 105 o.type = "foo"; |
| 106 } |
| 107 buildCounterBigtableColumnFamily--; |
| 108 return o; |
| 109 } |
| 110 |
| 111 checkBigtableColumnFamily(api.BigtableColumnFamily o) { |
| 112 buildCounterBigtableColumnFamily++; |
| 113 if (buildCounterBigtableColumnFamily < 3) { |
| 114 checkUnnamed2973(o.columns); |
| 115 unittest.expect(o.encoding, unittest.equals('foo')); |
| 116 unittest.expect(o.familyId, unittest.equals('foo')); |
| 117 unittest.expect(o.onlyReadLatest, unittest.isTrue); |
| 118 unittest.expect(o.type, unittest.equals('foo')); |
| 119 } |
| 120 buildCounterBigtableColumnFamily--; |
| 121 } |
| 122 |
| 123 buildUnnamed2974() { |
| 124 var o = new core.List<api.BigtableColumnFamily>(); |
| 125 o.add(buildBigtableColumnFamily()); |
| 126 o.add(buildBigtableColumnFamily()); |
| 127 return o; |
| 128 } |
| 129 |
| 130 checkUnnamed2974(core.List<api.BigtableColumnFamily> o) { |
| 131 unittest.expect(o, unittest.hasLength(2)); |
| 132 checkBigtableColumnFamily(o[0]); |
| 133 checkBigtableColumnFamily(o[1]); |
| 134 } |
| 135 |
| 136 core.int buildCounterBigtableOptions = 0; |
| 137 buildBigtableOptions() { |
| 138 var o = new api.BigtableOptions(); |
| 139 buildCounterBigtableOptions++; |
| 140 if (buildCounterBigtableOptions < 3) { |
| 141 o.columnFamilies = buildUnnamed2974(); |
| 142 o.ignoreUnspecifiedColumnFamilies = true; |
| 143 } |
| 144 buildCounterBigtableOptions--; |
| 145 return o; |
| 146 } |
| 147 |
| 148 checkBigtableOptions(api.BigtableOptions o) { |
| 149 buildCounterBigtableOptions++; |
| 150 if (buildCounterBigtableOptions < 3) { |
| 151 checkUnnamed2974(o.columnFamilies); |
| 152 unittest.expect(o.ignoreUnspecifiedColumnFamilies, unittest.isTrue); |
| 153 } |
| 154 buildCounterBigtableOptions--; |
| 155 } |
| 156 |
| 54 core.int buildCounterCsvOptions = 0; | 157 core.int buildCounterCsvOptions = 0; |
| 55 buildCsvOptions() { | 158 buildCsvOptions() { |
| 56 var o = new api.CsvOptions(); | 159 var o = new api.CsvOptions(); |
| 57 buildCounterCsvOptions++; | 160 buildCounterCsvOptions++; |
| 58 if (buildCounterCsvOptions < 3) { | 161 if (buildCounterCsvOptions < 3) { |
| 59 o.allowJaggedRows = true; | 162 o.allowJaggedRows = true; |
| 60 o.allowQuotedNewlines = true; | 163 o.allowQuotedNewlines = true; |
| 61 o.encoding = "foo"; | 164 o.encoding = "foo"; |
| 62 o.fieldDelimiter = "foo"; | 165 o.fieldDelimiter = "foo"; |
| 63 o.quote = "foo"; | 166 o.quote = "foo"; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 unittest.expect(o.domain, unittest.equals('foo')); | 205 unittest.expect(o.domain, unittest.equals('foo')); |
| 103 unittest.expect(o.groupByEmail, unittest.equals('foo')); | 206 unittest.expect(o.groupByEmail, unittest.equals('foo')); |
| 104 unittest.expect(o.role, unittest.equals('foo')); | 207 unittest.expect(o.role, unittest.equals('foo')); |
| 105 unittest.expect(o.specialGroup, unittest.equals('foo')); | 208 unittest.expect(o.specialGroup, unittest.equals('foo')); |
| 106 unittest.expect(o.userByEmail, unittest.equals('foo')); | 209 unittest.expect(o.userByEmail, unittest.equals('foo')); |
| 107 checkTableReference(o.view); | 210 checkTableReference(o.view); |
| 108 } | 211 } |
| 109 buildCounterDatasetAccess--; | 212 buildCounterDatasetAccess--; |
| 110 } | 213 } |
| 111 | 214 |
| 112 buildUnnamed2651() { | 215 buildUnnamed2975() { |
| 113 var o = new core.List<api.DatasetAccess>(); | 216 var o = new core.List<api.DatasetAccess>(); |
| 114 o.add(buildDatasetAccess()); | 217 o.add(buildDatasetAccess()); |
| 115 o.add(buildDatasetAccess()); | 218 o.add(buildDatasetAccess()); |
| 116 return o; | 219 return o; |
| 117 } | 220 } |
| 118 | 221 |
| 119 checkUnnamed2651(core.List<api.DatasetAccess> o) { | 222 checkUnnamed2975(core.List<api.DatasetAccess> o) { |
| 120 unittest.expect(o, unittest.hasLength(2)); | 223 unittest.expect(o, unittest.hasLength(2)); |
| 121 checkDatasetAccess(o[0]); | 224 checkDatasetAccess(o[0]); |
| 122 checkDatasetAccess(o[1]); | 225 checkDatasetAccess(o[1]); |
| 123 } | 226 } |
| 124 | 227 |
| 125 core.int buildCounterDataset = 0; | 228 core.int buildCounterDataset = 0; |
| 126 buildDataset() { | 229 buildDataset() { |
| 127 var o = new api.Dataset(); | 230 var o = new api.Dataset(); |
| 128 buildCounterDataset++; | 231 buildCounterDataset++; |
| 129 if (buildCounterDataset < 3) { | 232 if (buildCounterDataset < 3) { |
| 130 o.access = buildUnnamed2651(); | 233 o.access = buildUnnamed2975(); |
| 131 o.creationTime = "foo"; | 234 o.creationTime = "foo"; |
| 132 o.datasetReference = buildDatasetReference(); | 235 o.datasetReference = buildDatasetReference(); |
| 133 o.defaultTableExpirationMs = "foo"; | 236 o.defaultTableExpirationMs = "foo"; |
| 134 o.description = "foo"; | 237 o.description = "foo"; |
| 135 o.etag = "foo"; | 238 o.etag = "foo"; |
| 136 o.friendlyName = "foo"; | 239 o.friendlyName = "foo"; |
| 137 o.id = "foo"; | 240 o.id = "foo"; |
| 138 o.kind = "foo"; | 241 o.kind = "foo"; |
| 139 o.lastModifiedTime = "foo"; | 242 o.lastModifiedTime = "foo"; |
| 140 o.location = "foo"; | 243 o.location = "foo"; |
| 141 o.selfLink = "foo"; | 244 o.selfLink = "foo"; |
| 142 } | 245 } |
| 143 buildCounterDataset--; | 246 buildCounterDataset--; |
| 144 return o; | 247 return o; |
| 145 } | 248 } |
| 146 | 249 |
| 147 checkDataset(api.Dataset o) { | 250 checkDataset(api.Dataset o) { |
| 148 buildCounterDataset++; | 251 buildCounterDataset++; |
| 149 if (buildCounterDataset < 3) { | 252 if (buildCounterDataset < 3) { |
| 150 checkUnnamed2651(o.access); | 253 checkUnnamed2975(o.access); |
| 151 unittest.expect(o.creationTime, unittest.equals('foo')); | 254 unittest.expect(o.creationTime, unittest.equals('foo')); |
| 152 checkDatasetReference(o.datasetReference); | 255 checkDatasetReference(o.datasetReference); |
| 153 unittest.expect(o.defaultTableExpirationMs, unittest.equals('foo')); | 256 unittest.expect(o.defaultTableExpirationMs, unittest.equals('foo')); |
| 154 unittest.expect(o.description, unittest.equals('foo')); | 257 unittest.expect(o.description, unittest.equals('foo')); |
| 155 unittest.expect(o.etag, unittest.equals('foo')); | 258 unittest.expect(o.etag, unittest.equals('foo')); |
| 156 unittest.expect(o.friendlyName, unittest.equals('foo')); | 259 unittest.expect(o.friendlyName, unittest.equals('foo')); |
| 157 unittest.expect(o.id, unittest.equals('foo')); | 260 unittest.expect(o.id, unittest.equals('foo')); |
| 158 unittest.expect(o.kind, unittest.equals('foo')); | 261 unittest.expect(o.kind, unittest.equals('foo')); |
| 159 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); | 262 unittest.expect(o.lastModifiedTime, unittest.equals('foo')); |
| 160 unittest.expect(o.location, unittest.equals('foo')); | 263 unittest.expect(o.location, unittest.equals('foo')); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 181 buildCounterDatasetListDatasets++; | 284 buildCounterDatasetListDatasets++; |
| 182 if (buildCounterDatasetListDatasets < 3) { | 285 if (buildCounterDatasetListDatasets < 3) { |
| 183 checkDatasetReference(o.datasetReference); | 286 checkDatasetReference(o.datasetReference); |
| 184 unittest.expect(o.friendlyName, unittest.equals('foo')); | 287 unittest.expect(o.friendlyName, unittest.equals('foo')); |
| 185 unittest.expect(o.id, unittest.equals('foo')); | 288 unittest.expect(o.id, unittest.equals('foo')); |
| 186 unittest.expect(o.kind, unittest.equals('foo')); | 289 unittest.expect(o.kind, unittest.equals('foo')); |
| 187 } | 290 } |
| 188 buildCounterDatasetListDatasets--; | 291 buildCounterDatasetListDatasets--; |
| 189 } | 292 } |
| 190 | 293 |
| 191 buildUnnamed2652() { | 294 buildUnnamed2976() { |
| 192 var o = new core.List<api.DatasetListDatasets>(); | 295 var o = new core.List<api.DatasetListDatasets>(); |
| 193 o.add(buildDatasetListDatasets()); | 296 o.add(buildDatasetListDatasets()); |
| 194 o.add(buildDatasetListDatasets()); | 297 o.add(buildDatasetListDatasets()); |
| 195 return o; | 298 return o; |
| 196 } | 299 } |
| 197 | 300 |
| 198 checkUnnamed2652(core.List<api.DatasetListDatasets> o) { | 301 checkUnnamed2976(core.List<api.DatasetListDatasets> o) { |
| 199 unittest.expect(o, unittest.hasLength(2)); | 302 unittest.expect(o, unittest.hasLength(2)); |
| 200 checkDatasetListDatasets(o[0]); | 303 checkDatasetListDatasets(o[0]); |
| 201 checkDatasetListDatasets(o[1]); | 304 checkDatasetListDatasets(o[1]); |
| 202 } | 305 } |
| 203 | 306 |
| 204 core.int buildCounterDatasetList = 0; | 307 core.int buildCounterDatasetList = 0; |
| 205 buildDatasetList() { | 308 buildDatasetList() { |
| 206 var o = new api.DatasetList(); | 309 var o = new api.DatasetList(); |
| 207 buildCounterDatasetList++; | 310 buildCounterDatasetList++; |
| 208 if (buildCounterDatasetList < 3) { | 311 if (buildCounterDatasetList < 3) { |
| 209 o.datasets = buildUnnamed2652(); | 312 o.datasets = buildUnnamed2976(); |
| 210 o.etag = "foo"; | 313 o.etag = "foo"; |
| 211 o.kind = "foo"; | 314 o.kind = "foo"; |
| 212 o.nextPageToken = "foo"; | 315 o.nextPageToken = "foo"; |
| 213 } | 316 } |
| 214 buildCounterDatasetList--; | 317 buildCounterDatasetList--; |
| 215 return o; | 318 return o; |
| 216 } | 319 } |
| 217 | 320 |
| 218 checkDatasetList(api.DatasetList o) { | 321 checkDatasetList(api.DatasetList o) { |
| 219 buildCounterDatasetList++; | 322 buildCounterDatasetList++; |
| 220 if (buildCounterDatasetList < 3) { | 323 if (buildCounterDatasetList < 3) { |
| 221 checkUnnamed2652(o.datasets); | 324 checkUnnamed2976(o.datasets); |
| 222 unittest.expect(o.etag, unittest.equals('foo')); | 325 unittest.expect(o.etag, unittest.equals('foo')); |
| 223 unittest.expect(o.kind, unittest.equals('foo')); | 326 unittest.expect(o.kind, unittest.equals('foo')); |
| 224 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 327 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 225 } | 328 } |
| 226 buildCounterDatasetList--; | 329 buildCounterDatasetList--; |
| 227 } | 330 } |
| 228 | 331 |
| 229 core.int buildCounterDatasetReference = 0; | 332 core.int buildCounterDatasetReference = 0; |
| 230 buildDatasetReference() { | 333 buildDatasetReference() { |
| 231 var o = new api.DatasetReference(); | 334 var o = new api.DatasetReference(); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 buildCounterErrorProto++; | 368 buildCounterErrorProto++; |
| 266 if (buildCounterErrorProto < 3) { | 369 if (buildCounterErrorProto < 3) { |
| 267 unittest.expect(o.debugInfo, unittest.equals('foo')); | 370 unittest.expect(o.debugInfo, unittest.equals('foo')); |
| 268 unittest.expect(o.location, unittest.equals('foo')); | 371 unittest.expect(o.location, unittest.equals('foo')); |
| 269 unittest.expect(o.message, unittest.equals('foo')); | 372 unittest.expect(o.message, unittest.equals('foo')); |
| 270 unittest.expect(o.reason, unittest.equals('foo')); | 373 unittest.expect(o.reason, unittest.equals('foo')); |
| 271 } | 374 } |
| 272 buildCounterErrorProto--; | 375 buildCounterErrorProto--; |
| 273 } | 376 } |
| 274 | 377 |
| 275 buildUnnamed2653() { | 378 buildUnnamed2977() { |
| 276 var o = new core.List<api.ExplainQueryStep>(); | 379 var o = new core.List<api.ExplainQueryStep>(); |
| 277 o.add(buildExplainQueryStep()); | 380 o.add(buildExplainQueryStep()); |
| 278 o.add(buildExplainQueryStep()); | 381 o.add(buildExplainQueryStep()); |
| 279 return o; | 382 return o; |
| 280 } | 383 } |
| 281 | 384 |
| 282 checkUnnamed2653(core.List<api.ExplainQueryStep> o) { | 385 checkUnnamed2977(core.List<api.ExplainQueryStep> o) { |
| 283 unittest.expect(o, unittest.hasLength(2)); | 386 unittest.expect(o, unittest.hasLength(2)); |
| 284 checkExplainQueryStep(o[0]); | 387 checkExplainQueryStep(o[0]); |
| 285 checkExplainQueryStep(o[1]); | 388 checkExplainQueryStep(o[1]); |
| 286 } | 389 } |
| 287 | 390 |
| 288 core.int buildCounterExplainQueryStage = 0; | 391 core.int buildCounterExplainQueryStage = 0; |
| 289 buildExplainQueryStage() { | 392 buildExplainQueryStage() { |
| 290 var o = new api.ExplainQueryStage(); | 393 var o = new api.ExplainQueryStage(); |
| 291 buildCounterExplainQueryStage++; | 394 buildCounterExplainQueryStage++; |
| 292 if (buildCounterExplainQueryStage < 3) { | 395 if (buildCounterExplainQueryStage < 3) { |
| 293 o.computeRatioAvg = 42.0; | 396 o.computeRatioAvg = 42.0; |
| 294 o.computeRatioMax = 42.0; | 397 o.computeRatioMax = 42.0; |
| 295 o.id = "foo"; | 398 o.id = "foo"; |
| 296 o.name = "foo"; | 399 o.name = "foo"; |
| 297 o.readRatioAvg = 42.0; | 400 o.readRatioAvg = 42.0; |
| 298 o.readRatioMax = 42.0; | 401 o.readRatioMax = 42.0; |
| 299 o.recordsRead = "foo"; | 402 o.recordsRead = "foo"; |
| 300 o.recordsWritten = "foo"; | 403 o.recordsWritten = "foo"; |
| 301 o.steps = buildUnnamed2653(); | 404 o.steps = buildUnnamed2977(); |
| 302 o.waitRatioAvg = 42.0; | 405 o.waitRatioAvg = 42.0; |
| 303 o.waitRatioMax = 42.0; | 406 o.waitRatioMax = 42.0; |
| 304 o.writeRatioAvg = 42.0; | 407 o.writeRatioAvg = 42.0; |
| 305 o.writeRatioMax = 42.0; | 408 o.writeRatioMax = 42.0; |
| 306 } | 409 } |
| 307 buildCounterExplainQueryStage--; | 410 buildCounterExplainQueryStage--; |
| 308 return o; | 411 return o; |
| 309 } | 412 } |
| 310 | 413 |
| 311 checkExplainQueryStage(api.ExplainQueryStage o) { | 414 checkExplainQueryStage(api.ExplainQueryStage o) { |
| 312 buildCounterExplainQueryStage++; | 415 buildCounterExplainQueryStage++; |
| 313 if (buildCounterExplainQueryStage < 3) { | 416 if (buildCounterExplainQueryStage < 3) { |
| 314 unittest.expect(o.computeRatioAvg, unittest.equals(42.0)); | 417 unittest.expect(o.computeRatioAvg, unittest.equals(42.0)); |
| 315 unittest.expect(o.computeRatioMax, unittest.equals(42.0)); | 418 unittest.expect(o.computeRatioMax, unittest.equals(42.0)); |
| 316 unittest.expect(o.id, unittest.equals('foo')); | 419 unittest.expect(o.id, unittest.equals('foo')); |
| 317 unittest.expect(o.name, unittest.equals('foo')); | 420 unittest.expect(o.name, unittest.equals('foo')); |
| 318 unittest.expect(o.readRatioAvg, unittest.equals(42.0)); | 421 unittest.expect(o.readRatioAvg, unittest.equals(42.0)); |
| 319 unittest.expect(o.readRatioMax, unittest.equals(42.0)); | 422 unittest.expect(o.readRatioMax, unittest.equals(42.0)); |
| 320 unittest.expect(o.recordsRead, unittest.equals('foo')); | 423 unittest.expect(o.recordsRead, unittest.equals('foo')); |
| 321 unittest.expect(o.recordsWritten, unittest.equals('foo')); | 424 unittest.expect(o.recordsWritten, unittest.equals('foo')); |
| 322 checkUnnamed2653(o.steps); | 425 checkUnnamed2977(o.steps); |
| 323 unittest.expect(o.waitRatioAvg, unittest.equals(42.0)); | 426 unittest.expect(o.waitRatioAvg, unittest.equals(42.0)); |
| 324 unittest.expect(o.waitRatioMax, unittest.equals(42.0)); | 427 unittest.expect(o.waitRatioMax, unittest.equals(42.0)); |
| 325 unittest.expect(o.writeRatioAvg, unittest.equals(42.0)); | 428 unittest.expect(o.writeRatioAvg, unittest.equals(42.0)); |
| 326 unittest.expect(o.writeRatioMax, unittest.equals(42.0)); | 429 unittest.expect(o.writeRatioMax, unittest.equals(42.0)); |
| 327 } | 430 } |
| 328 buildCounterExplainQueryStage--; | 431 buildCounterExplainQueryStage--; |
| 329 } | 432 } |
| 330 | 433 |
| 331 buildUnnamed2654() { | 434 buildUnnamed2978() { |
| 332 var o = new core.List<core.String>(); | 435 var o = new core.List<core.String>(); |
| 333 o.add("foo"); | 436 o.add("foo"); |
| 334 o.add("foo"); | 437 o.add("foo"); |
| 335 return o; | 438 return o; |
| 336 } | 439 } |
| 337 | 440 |
| 338 checkUnnamed2654(core.List<core.String> o) { | 441 checkUnnamed2978(core.List<core.String> o) { |
| 339 unittest.expect(o, unittest.hasLength(2)); | 442 unittest.expect(o, unittest.hasLength(2)); |
| 340 unittest.expect(o[0], unittest.equals('foo')); | 443 unittest.expect(o[0], unittest.equals('foo')); |
| 341 unittest.expect(o[1], unittest.equals('foo')); | 444 unittest.expect(o[1], unittest.equals('foo')); |
| 342 } | 445 } |
| 343 | 446 |
| 344 core.int buildCounterExplainQueryStep = 0; | 447 core.int buildCounterExplainQueryStep = 0; |
| 345 buildExplainQueryStep() { | 448 buildExplainQueryStep() { |
| 346 var o = new api.ExplainQueryStep(); | 449 var o = new api.ExplainQueryStep(); |
| 347 buildCounterExplainQueryStep++; | 450 buildCounterExplainQueryStep++; |
| 348 if (buildCounterExplainQueryStep < 3) { | 451 if (buildCounterExplainQueryStep < 3) { |
| 349 o.kind = "foo"; | 452 o.kind = "foo"; |
| 350 o.substeps = buildUnnamed2654(); | 453 o.substeps = buildUnnamed2978(); |
| 351 } | 454 } |
| 352 buildCounterExplainQueryStep--; | 455 buildCounterExplainQueryStep--; |
| 353 return o; | 456 return o; |
| 354 } | 457 } |
| 355 | 458 |
| 356 checkExplainQueryStep(api.ExplainQueryStep o) { | 459 checkExplainQueryStep(api.ExplainQueryStep o) { |
| 357 buildCounterExplainQueryStep++; | 460 buildCounterExplainQueryStep++; |
| 358 if (buildCounterExplainQueryStep < 3) { | 461 if (buildCounterExplainQueryStep < 3) { |
| 359 unittest.expect(o.kind, unittest.equals('foo')); | 462 unittest.expect(o.kind, unittest.equals('foo')); |
| 360 checkUnnamed2654(o.substeps); | 463 checkUnnamed2978(o.substeps); |
| 361 } | 464 } |
| 362 buildCounterExplainQueryStep--; | 465 buildCounterExplainQueryStep--; |
| 363 } | 466 } |
| 364 | 467 |
| 365 buildUnnamed2655() { | 468 buildUnnamed2979() { |
| 366 var o = new core.List<core.String>(); | 469 var o = new core.List<core.String>(); |
| 367 o.add("foo"); | 470 o.add("foo"); |
| 368 o.add("foo"); | 471 o.add("foo"); |
| 369 return o; | 472 return o; |
| 370 } | 473 } |
| 371 | 474 |
| 372 checkUnnamed2655(core.List<core.String> o) { | 475 checkUnnamed2979(core.List<core.String> o) { |
| 373 unittest.expect(o, unittest.hasLength(2)); | 476 unittest.expect(o, unittest.hasLength(2)); |
| 374 unittest.expect(o[0], unittest.equals('foo')); | 477 unittest.expect(o[0], unittest.equals('foo')); |
| 375 unittest.expect(o[1], unittest.equals('foo')); | 478 unittest.expect(o[1], unittest.equals('foo')); |
| 376 } | 479 } |
| 377 | 480 |
| 378 core.int buildCounterExternalDataConfiguration = 0; | 481 core.int buildCounterExternalDataConfiguration = 0; |
| 379 buildExternalDataConfiguration() { | 482 buildExternalDataConfiguration() { |
| 380 var o = new api.ExternalDataConfiguration(); | 483 var o = new api.ExternalDataConfiguration(); |
| 381 buildCounterExternalDataConfiguration++; | 484 buildCounterExternalDataConfiguration++; |
| 382 if (buildCounterExternalDataConfiguration < 3) { | 485 if (buildCounterExternalDataConfiguration < 3) { |
| 486 o.autodetect = true; |
| 487 o.bigtableOptions = buildBigtableOptions(); |
| 383 o.compression = "foo"; | 488 o.compression = "foo"; |
| 384 o.csvOptions = buildCsvOptions(); | 489 o.csvOptions = buildCsvOptions(); |
| 385 o.ignoreUnknownValues = true; | 490 o.ignoreUnknownValues = true; |
| 386 o.maxBadRecords = 42; | 491 o.maxBadRecords = 42; |
| 387 o.schema = buildTableSchema(); | 492 o.schema = buildTableSchema(); |
| 388 o.sourceFormat = "foo"; | 493 o.sourceFormat = "foo"; |
| 389 o.sourceUris = buildUnnamed2655(); | 494 o.sourceUris = buildUnnamed2979(); |
| 390 } | 495 } |
| 391 buildCounterExternalDataConfiguration--; | 496 buildCounterExternalDataConfiguration--; |
| 392 return o; | 497 return o; |
| 393 } | 498 } |
| 394 | 499 |
| 395 checkExternalDataConfiguration(api.ExternalDataConfiguration o) { | 500 checkExternalDataConfiguration(api.ExternalDataConfiguration o) { |
| 396 buildCounterExternalDataConfiguration++; | 501 buildCounterExternalDataConfiguration++; |
| 397 if (buildCounterExternalDataConfiguration < 3) { | 502 if (buildCounterExternalDataConfiguration < 3) { |
| 503 unittest.expect(o.autodetect, unittest.isTrue); |
| 504 checkBigtableOptions(o.bigtableOptions); |
| 398 unittest.expect(o.compression, unittest.equals('foo')); | 505 unittest.expect(o.compression, unittest.equals('foo')); |
| 399 checkCsvOptions(o.csvOptions); | 506 checkCsvOptions(o.csvOptions); |
| 400 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); | 507 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); |
| 401 unittest.expect(o.maxBadRecords, unittest.equals(42)); | 508 unittest.expect(o.maxBadRecords, unittest.equals(42)); |
| 402 checkTableSchema(o.schema); | 509 checkTableSchema(o.schema); |
| 403 unittest.expect(o.sourceFormat, unittest.equals('foo')); | 510 unittest.expect(o.sourceFormat, unittest.equals('foo')); |
| 404 checkUnnamed2655(o.sourceUris); | 511 checkUnnamed2979(o.sourceUris); |
| 405 } | 512 } |
| 406 buildCounterExternalDataConfiguration--; | 513 buildCounterExternalDataConfiguration--; |
| 407 } | 514 } |
| 408 | 515 |
| 409 buildUnnamed2656() { | 516 buildUnnamed2980() { |
| 410 var o = new core.List<api.ErrorProto>(); | 517 var o = new core.List<api.ErrorProto>(); |
| 411 o.add(buildErrorProto()); | 518 o.add(buildErrorProto()); |
| 412 o.add(buildErrorProto()); | 519 o.add(buildErrorProto()); |
| 413 return o; | 520 return o; |
| 414 } | 521 } |
| 415 | 522 |
| 416 checkUnnamed2656(core.List<api.ErrorProto> o) { | 523 checkUnnamed2980(core.List<api.ErrorProto> o) { |
| 417 unittest.expect(o, unittest.hasLength(2)); | 524 unittest.expect(o, unittest.hasLength(2)); |
| 418 checkErrorProto(o[0]); | 525 checkErrorProto(o[0]); |
| 419 checkErrorProto(o[1]); | 526 checkErrorProto(o[1]); |
| 420 } | 527 } |
| 421 | 528 |
| 422 buildUnnamed2657() { | 529 buildUnnamed2981() { |
| 423 var o = new core.List<api.TableRow>(); | 530 var o = new core.List<api.TableRow>(); |
| 424 o.add(buildTableRow()); | 531 o.add(buildTableRow()); |
| 425 o.add(buildTableRow()); | 532 o.add(buildTableRow()); |
| 426 return o; | 533 return o; |
| 427 } | 534 } |
| 428 | 535 |
| 429 checkUnnamed2657(core.List<api.TableRow> o) { | 536 checkUnnamed2981(core.List<api.TableRow> o) { |
| 430 unittest.expect(o, unittest.hasLength(2)); | 537 unittest.expect(o, unittest.hasLength(2)); |
| 431 checkTableRow(o[0]); | 538 checkTableRow(o[0]); |
| 432 checkTableRow(o[1]); | 539 checkTableRow(o[1]); |
| 433 } | 540 } |
| 434 | 541 |
| 435 core.int buildCounterGetQueryResultsResponse = 0; | 542 core.int buildCounterGetQueryResultsResponse = 0; |
| 436 buildGetQueryResultsResponse() { | 543 buildGetQueryResultsResponse() { |
| 437 var o = new api.GetQueryResultsResponse(); | 544 var o = new api.GetQueryResultsResponse(); |
| 438 buildCounterGetQueryResultsResponse++; | 545 buildCounterGetQueryResultsResponse++; |
| 439 if (buildCounterGetQueryResultsResponse < 3) { | 546 if (buildCounterGetQueryResultsResponse < 3) { |
| 440 o.cacheHit = true; | 547 o.cacheHit = true; |
| 441 o.errors = buildUnnamed2656(); | 548 o.errors = buildUnnamed2980(); |
| 442 o.etag = "foo"; | 549 o.etag = "foo"; |
| 443 o.jobComplete = true; | 550 o.jobComplete = true; |
| 444 o.jobReference = buildJobReference(); | 551 o.jobReference = buildJobReference(); |
| 445 o.kind = "foo"; | 552 o.kind = "foo"; |
| 446 o.pageToken = "foo"; | 553 o.pageToken = "foo"; |
| 447 o.rows = buildUnnamed2657(); | 554 o.rows = buildUnnamed2981(); |
| 448 o.schema = buildTableSchema(); | 555 o.schema = buildTableSchema(); |
| 449 o.totalBytesProcessed = "foo"; | 556 o.totalBytesProcessed = "foo"; |
| 450 o.totalRows = "foo"; | 557 o.totalRows = "foo"; |
| 451 } | 558 } |
| 452 buildCounterGetQueryResultsResponse--; | 559 buildCounterGetQueryResultsResponse--; |
| 453 return o; | 560 return o; |
| 454 } | 561 } |
| 455 | 562 |
| 456 checkGetQueryResultsResponse(api.GetQueryResultsResponse o) { | 563 checkGetQueryResultsResponse(api.GetQueryResultsResponse o) { |
| 457 buildCounterGetQueryResultsResponse++; | 564 buildCounterGetQueryResultsResponse++; |
| 458 if (buildCounterGetQueryResultsResponse < 3) { | 565 if (buildCounterGetQueryResultsResponse < 3) { |
| 459 unittest.expect(o.cacheHit, unittest.isTrue); | 566 unittest.expect(o.cacheHit, unittest.isTrue); |
| 460 checkUnnamed2656(o.errors); | 567 checkUnnamed2980(o.errors); |
| 461 unittest.expect(o.etag, unittest.equals('foo')); | 568 unittest.expect(o.etag, unittest.equals('foo')); |
| 462 unittest.expect(o.jobComplete, unittest.isTrue); | 569 unittest.expect(o.jobComplete, unittest.isTrue); |
| 463 checkJobReference(o.jobReference); | 570 checkJobReference(o.jobReference); |
| 464 unittest.expect(o.kind, unittest.equals('foo')); | 571 unittest.expect(o.kind, unittest.equals('foo')); |
| 465 unittest.expect(o.pageToken, unittest.equals('foo')); | 572 unittest.expect(o.pageToken, unittest.equals('foo')); |
| 466 checkUnnamed2657(o.rows); | 573 checkUnnamed2981(o.rows); |
| 467 checkTableSchema(o.schema); | 574 checkTableSchema(o.schema); |
| 468 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); | 575 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); |
| 469 unittest.expect(o.totalRows, unittest.equals('foo')); | 576 unittest.expect(o.totalRows, unittest.equals('foo')); |
| 470 } | 577 } |
| 471 buildCounterGetQueryResultsResponse--; | 578 buildCounterGetQueryResultsResponse--; |
| 472 } | 579 } |
| 473 | 580 |
| 474 core.int buildCounterJob = 0; | 581 core.int buildCounterJob = 0; |
| 475 buildJob() { | 582 buildJob() { |
| 476 var o = new api.Job(); | 583 var o = new api.Job(); |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 if (buildCounterJobConfiguration < 3) { | 654 if (buildCounterJobConfiguration < 3) { |
| 548 checkJobConfigurationTableCopy(o.copy); | 655 checkJobConfigurationTableCopy(o.copy); |
| 549 unittest.expect(o.dryRun, unittest.isTrue); | 656 unittest.expect(o.dryRun, unittest.isTrue); |
| 550 checkJobConfigurationExtract(o.extract); | 657 checkJobConfigurationExtract(o.extract); |
| 551 checkJobConfigurationLoad(o.load); | 658 checkJobConfigurationLoad(o.load); |
| 552 checkJobConfigurationQuery(o.query); | 659 checkJobConfigurationQuery(o.query); |
| 553 } | 660 } |
| 554 buildCounterJobConfiguration--; | 661 buildCounterJobConfiguration--; |
| 555 } | 662 } |
| 556 | 663 |
| 557 buildUnnamed2658() { | 664 buildUnnamed2982() { |
| 558 var o = new core.List<core.String>(); | 665 var o = new core.List<core.String>(); |
| 559 o.add("foo"); | 666 o.add("foo"); |
| 560 o.add("foo"); | 667 o.add("foo"); |
| 561 return o; | 668 return o; |
| 562 } | 669 } |
| 563 | 670 |
| 564 checkUnnamed2658(core.List<core.String> o) { | 671 checkUnnamed2982(core.List<core.String> o) { |
| 565 unittest.expect(o, unittest.hasLength(2)); | 672 unittest.expect(o, unittest.hasLength(2)); |
| 566 unittest.expect(o[0], unittest.equals('foo')); | 673 unittest.expect(o[0], unittest.equals('foo')); |
| 567 unittest.expect(o[1], unittest.equals('foo')); | 674 unittest.expect(o[1], unittest.equals('foo')); |
| 568 } | 675 } |
| 569 | 676 |
| 570 core.int buildCounterJobConfigurationExtract = 0; | 677 core.int buildCounterJobConfigurationExtract = 0; |
| 571 buildJobConfigurationExtract() { | 678 buildJobConfigurationExtract() { |
| 572 var o = new api.JobConfigurationExtract(); | 679 var o = new api.JobConfigurationExtract(); |
| 573 buildCounterJobConfigurationExtract++; | 680 buildCounterJobConfigurationExtract++; |
| 574 if (buildCounterJobConfigurationExtract < 3) { | 681 if (buildCounterJobConfigurationExtract < 3) { |
| 575 o.compression = "foo"; | 682 o.compression = "foo"; |
| 576 o.destinationFormat = "foo"; | 683 o.destinationFormat = "foo"; |
| 577 o.destinationUri = "foo"; | 684 o.destinationUri = "foo"; |
| 578 o.destinationUris = buildUnnamed2658(); | 685 o.destinationUris = buildUnnamed2982(); |
| 579 o.fieldDelimiter = "foo"; | 686 o.fieldDelimiter = "foo"; |
| 580 o.printHeader = true; | 687 o.printHeader = true; |
| 581 o.sourceTable = buildTableReference(); | 688 o.sourceTable = buildTableReference(); |
| 582 } | 689 } |
| 583 buildCounterJobConfigurationExtract--; | 690 buildCounterJobConfigurationExtract--; |
| 584 return o; | 691 return o; |
| 585 } | 692 } |
| 586 | 693 |
| 587 checkJobConfigurationExtract(api.JobConfigurationExtract o) { | 694 checkJobConfigurationExtract(api.JobConfigurationExtract o) { |
| 588 buildCounterJobConfigurationExtract++; | 695 buildCounterJobConfigurationExtract++; |
| 589 if (buildCounterJobConfigurationExtract < 3) { | 696 if (buildCounterJobConfigurationExtract < 3) { |
| 590 unittest.expect(o.compression, unittest.equals('foo')); | 697 unittest.expect(o.compression, unittest.equals('foo')); |
| 591 unittest.expect(o.destinationFormat, unittest.equals('foo')); | 698 unittest.expect(o.destinationFormat, unittest.equals('foo')); |
| 592 unittest.expect(o.destinationUri, unittest.equals('foo')); | 699 unittest.expect(o.destinationUri, unittest.equals('foo')); |
| 593 checkUnnamed2658(o.destinationUris); | 700 checkUnnamed2982(o.destinationUris); |
| 594 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); | 701 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); |
| 595 unittest.expect(o.printHeader, unittest.isTrue); | 702 unittest.expect(o.printHeader, unittest.isTrue); |
| 596 checkTableReference(o.sourceTable); | 703 checkTableReference(o.sourceTable); |
| 597 } | 704 } |
| 598 buildCounterJobConfigurationExtract--; | 705 buildCounterJobConfigurationExtract--; |
| 599 } | 706 } |
| 600 | 707 |
| 601 buildUnnamed2659() { | 708 buildUnnamed2983() { |
| 602 var o = new core.List<core.String>(); | 709 var o = new core.List<core.String>(); |
| 603 o.add("foo"); | 710 o.add("foo"); |
| 604 o.add("foo"); | 711 o.add("foo"); |
| 605 return o; | 712 return o; |
| 606 } | 713 } |
| 607 | 714 |
| 608 checkUnnamed2659(core.List<core.String> o) { | 715 checkUnnamed2983(core.List<core.String> o) { |
| 609 unittest.expect(o, unittest.hasLength(2)); | 716 unittest.expect(o, unittest.hasLength(2)); |
| 610 unittest.expect(o[0], unittest.equals('foo')); | 717 unittest.expect(o[0], unittest.equals('foo')); |
| 611 unittest.expect(o[1], unittest.equals('foo')); | 718 unittest.expect(o[1], unittest.equals('foo')); |
| 612 } | 719 } |
| 613 | 720 |
| 614 buildUnnamed2660() { | 721 buildUnnamed2984() { |
| 615 var o = new core.List<core.String>(); | 722 var o = new core.List<core.String>(); |
| 616 o.add("foo"); | 723 o.add("foo"); |
| 617 o.add("foo"); | 724 o.add("foo"); |
| 618 return o; | 725 return o; |
| 619 } | 726 } |
| 620 | 727 |
| 621 checkUnnamed2660(core.List<core.String> o) { | 728 checkUnnamed2984(core.List<core.String> o) { |
| 622 unittest.expect(o, unittest.hasLength(2)); | 729 unittest.expect(o, unittest.hasLength(2)); |
| 623 unittest.expect(o[0], unittest.equals('foo')); | 730 unittest.expect(o[0], unittest.equals('foo')); |
| 624 unittest.expect(o[1], unittest.equals('foo')); | 731 unittest.expect(o[1], unittest.equals('foo')); |
| 625 } | 732 } |
| 626 | 733 |
| 627 core.int buildCounterJobConfigurationLoad = 0; | 734 core.int buildCounterJobConfigurationLoad = 0; |
| 628 buildJobConfigurationLoad() { | 735 buildJobConfigurationLoad() { |
| 629 var o = new api.JobConfigurationLoad(); | 736 var o = new api.JobConfigurationLoad(); |
| 630 buildCounterJobConfigurationLoad++; | 737 buildCounterJobConfigurationLoad++; |
| 631 if (buildCounterJobConfigurationLoad < 3) { | 738 if (buildCounterJobConfigurationLoad < 3) { |
| 632 o.allowJaggedRows = true; | 739 o.allowJaggedRows = true; |
| 633 o.allowQuotedNewlines = true; | 740 o.allowQuotedNewlines = true; |
| 634 o.createDisposition = "foo"; | 741 o.createDisposition = "foo"; |
| 635 o.destinationTable = buildTableReference(); | 742 o.destinationTable = buildTableReference(); |
| 636 o.encoding = "foo"; | 743 o.encoding = "foo"; |
| 637 o.fieldDelimiter = "foo"; | 744 o.fieldDelimiter = "foo"; |
| 638 o.ignoreUnknownValues = true; | 745 o.ignoreUnknownValues = true; |
| 639 o.maxBadRecords = 42; | 746 o.maxBadRecords = 42; |
| 640 o.projectionFields = buildUnnamed2659(); | 747 o.projectionFields = buildUnnamed2983(); |
| 641 o.quote = "foo"; | 748 o.quote = "foo"; |
| 642 o.schema = buildTableSchema(); | 749 o.schema = buildTableSchema(); |
| 643 o.schemaInline = "foo"; | 750 o.schemaInline = "foo"; |
| 644 o.schemaInlineFormat = "foo"; | 751 o.schemaInlineFormat = "foo"; |
| 645 o.skipLeadingRows = 42; | 752 o.skipLeadingRows = 42; |
| 646 o.sourceFormat = "foo"; | 753 o.sourceFormat = "foo"; |
| 647 o.sourceUris = buildUnnamed2660(); | 754 o.sourceUris = buildUnnamed2984(); |
| 648 o.writeDisposition = "foo"; | 755 o.writeDisposition = "foo"; |
| 649 } | 756 } |
| 650 buildCounterJobConfigurationLoad--; | 757 buildCounterJobConfigurationLoad--; |
| 651 return o; | 758 return o; |
| 652 } | 759 } |
| 653 | 760 |
| 654 checkJobConfigurationLoad(api.JobConfigurationLoad o) { | 761 checkJobConfigurationLoad(api.JobConfigurationLoad o) { |
| 655 buildCounterJobConfigurationLoad++; | 762 buildCounterJobConfigurationLoad++; |
| 656 if (buildCounterJobConfigurationLoad < 3) { | 763 if (buildCounterJobConfigurationLoad < 3) { |
| 657 unittest.expect(o.allowJaggedRows, unittest.isTrue); | 764 unittest.expect(o.allowJaggedRows, unittest.isTrue); |
| 658 unittest.expect(o.allowQuotedNewlines, unittest.isTrue); | 765 unittest.expect(o.allowQuotedNewlines, unittest.isTrue); |
| 659 unittest.expect(o.createDisposition, unittest.equals('foo')); | 766 unittest.expect(o.createDisposition, unittest.equals('foo')); |
| 660 checkTableReference(o.destinationTable); | 767 checkTableReference(o.destinationTable); |
| 661 unittest.expect(o.encoding, unittest.equals('foo')); | 768 unittest.expect(o.encoding, unittest.equals('foo')); |
| 662 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); | 769 unittest.expect(o.fieldDelimiter, unittest.equals('foo')); |
| 663 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); | 770 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); |
| 664 unittest.expect(o.maxBadRecords, unittest.equals(42)); | 771 unittest.expect(o.maxBadRecords, unittest.equals(42)); |
| 665 checkUnnamed2659(o.projectionFields); | 772 checkUnnamed2983(o.projectionFields); |
| 666 unittest.expect(o.quote, unittest.equals('foo')); | 773 unittest.expect(o.quote, unittest.equals('foo')); |
| 667 checkTableSchema(o.schema); | 774 checkTableSchema(o.schema); |
| 668 unittest.expect(o.schemaInline, unittest.equals('foo')); | 775 unittest.expect(o.schemaInline, unittest.equals('foo')); |
| 669 unittest.expect(o.schemaInlineFormat, unittest.equals('foo')); | 776 unittest.expect(o.schemaInlineFormat, unittest.equals('foo')); |
| 670 unittest.expect(o.skipLeadingRows, unittest.equals(42)); | 777 unittest.expect(o.skipLeadingRows, unittest.equals(42)); |
| 671 unittest.expect(o.sourceFormat, unittest.equals('foo')); | 778 unittest.expect(o.sourceFormat, unittest.equals('foo')); |
| 672 checkUnnamed2660(o.sourceUris); | 779 checkUnnamed2984(o.sourceUris); |
| 673 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 780 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
| 674 } | 781 } |
| 675 buildCounterJobConfigurationLoad--; | 782 buildCounterJobConfigurationLoad--; |
| 676 } | 783 } |
| 677 | 784 |
| 678 buildUnnamed2661() { | 785 buildUnnamed2985() { |
| 679 var o = new core.Map<core.String, api.ExternalDataConfiguration>(); | 786 var o = new core.Map<core.String, api.ExternalDataConfiguration>(); |
| 680 o["x"] = buildExternalDataConfiguration(); | 787 o["x"] = buildExternalDataConfiguration(); |
| 681 o["y"] = buildExternalDataConfiguration(); | 788 o["y"] = buildExternalDataConfiguration(); |
| 682 return o; | 789 return o; |
| 683 } | 790 } |
| 684 | 791 |
| 685 checkUnnamed2661(core.Map<core.String, api.ExternalDataConfiguration> o) { | 792 checkUnnamed2985(core.Map<core.String, api.ExternalDataConfiguration> o) { |
| 686 unittest.expect(o, unittest.hasLength(2)); | 793 unittest.expect(o, unittest.hasLength(2)); |
| 687 checkExternalDataConfiguration(o["x"]); | 794 checkExternalDataConfiguration(o["x"]); |
| 688 checkExternalDataConfiguration(o["y"]); | 795 checkExternalDataConfiguration(o["y"]); |
| 689 } | 796 } |
| 690 | 797 |
| 691 buildUnnamed2662() { | 798 buildUnnamed2986() { |
| 692 var o = new core.List<api.UserDefinedFunctionResource>(); | 799 var o = new core.List<api.UserDefinedFunctionResource>(); |
| 693 o.add(buildUserDefinedFunctionResource()); | 800 o.add(buildUserDefinedFunctionResource()); |
| 694 o.add(buildUserDefinedFunctionResource()); | 801 o.add(buildUserDefinedFunctionResource()); |
| 695 return o; | 802 return o; |
| 696 } | 803 } |
| 697 | 804 |
| 698 checkUnnamed2662(core.List<api.UserDefinedFunctionResource> o) { | 805 checkUnnamed2986(core.List<api.UserDefinedFunctionResource> o) { |
| 699 unittest.expect(o, unittest.hasLength(2)); | 806 unittest.expect(o, unittest.hasLength(2)); |
| 700 checkUserDefinedFunctionResource(o[0]); | 807 checkUserDefinedFunctionResource(o[0]); |
| 701 checkUserDefinedFunctionResource(o[1]); | 808 checkUserDefinedFunctionResource(o[1]); |
| 702 } | 809 } |
| 703 | 810 |
| 704 core.int buildCounterJobConfigurationQuery = 0; | 811 core.int buildCounterJobConfigurationQuery = 0; |
| 705 buildJobConfigurationQuery() { | 812 buildJobConfigurationQuery() { |
| 706 var o = new api.JobConfigurationQuery(); | 813 var o = new api.JobConfigurationQuery(); |
| 707 buildCounterJobConfigurationQuery++; | 814 buildCounterJobConfigurationQuery++; |
| 708 if (buildCounterJobConfigurationQuery < 3) { | 815 if (buildCounterJobConfigurationQuery < 3) { |
| 709 o.allowLargeResults = true; | 816 o.allowLargeResults = true; |
| 710 o.createDisposition = "foo"; | 817 o.createDisposition = "foo"; |
| 711 o.defaultDataset = buildDatasetReference(); | 818 o.defaultDataset = buildDatasetReference(); |
| 712 o.destinationTable = buildTableReference(); | 819 o.destinationTable = buildTableReference(); |
| 713 o.flattenResults = true; | 820 o.flattenResults = true; |
| 714 o.maximumBillingTier = 42; | 821 o.maximumBillingTier = 42; |
| 715 o.preserveNulls = true; | 822 o.preserveNulls = true; |
| 716 o.priority = "foo"; | 823 o.priority = "foo"; |
| 717 o.query = "foo"; | 824 o.query = "foo"; |
| 718 o.tableDefinitions = buildUnnamed2661(); | 825 o.tableDefinitions = buildUnnamed2985(); |
| 826 o.useLegacySql = true; |
| 719 o.useQueryCache = true; | 827 o.useQueryCache = true; |
| 720 o.userDefinedFunctionResources = buildUnnamed2662(); | 828 o.userDefinedFunctionResources = buildUnnamed2986(); |
| 721 o.writeDisposition = "foo"; | 829 o.writeDisposition = "foo"; |
| 722 } | 830 } |
| 723 buildCounterJobConfigurationQuery--; | 831 buildCounterJobConfigurationQuery--; |
| 724 return o; | 832 return o; |
| 725 } | 833 } |
| 726 | 834 |
| 727 checkJobConfigurationQuery(api.JobConfigurationQuery o) { | 835 checkJobConfigurationQuery(api.JobConfigurationQuery o) { |
| 728 buildCounterJobConfigurationQuery++; | 836 buildCounterJobConfigurationQuery++; |
| 729 if (buildCounterJobConfigurationQuery < 3) { | 837 if (buildCounterJobConfigurationQuery < 3) { |
| 730 unittest.expect(o.allowLargeResults, unittest.isTrue); | 838 unittest.expect(o.allowLargeResults, unittest.isTrue); |
| 731 unittest.expect(o.createDisposition, unittest.equals('foo')); | 839 unittest.expect(o.createDisposition, unittest.equals('foo')); |
| 732 checkDatasetReference(o.defaultDataset); | 840 checkDatasetReference(o.defaultDataset); |
| 733 checkTableReference(o.destinationTable); | 841 checkTableReference(o.destinationTable); |
| 734 unittest.expect(o.flattenResults, unittest.isTrue); | 842 unittest.expect(o.flattenResults, unittest.isTrue); |
| 735 unittest.expect(o.maximumBillingTier, unittest.equals(42)); | 843 unittest.expect(o.maximumBillingTier, unittest.equals(42)); |
| 736 unittest.expect(o.preserveNulls, unittest.isTrue); | 844 unittest.expect(o.preserveNulls, unittest.isTrue); |
| 737 unittest.expect(o.priority, unittest.equals('foo')); | 845 unittest.expect(o.priority, unittest.equals('foo')); |
| 738 unittest.expect(o.query, unittest.equals('foo')); | 846 unittest.expect(o.query, unittest.equals('foo')); |
| 739 checkUnnamed2661(o.tableDefinitions); | 847 checkUnnamed2985(o.tableDefinitions); |
| 848 unittest.expect(o.useLegacySql, unittest.isTrue); |
| 740 unittest.expect(o.useQueryCache, unittest.isTrue); | 849 unittest.expect(o.useQueryCache, unittest.isTrue); |
| 741 checkUnnamed2662(o.userDefinedFunctionResources); | 850 checkUnnamed2986(o.userDefinedFunctionResources); |
| 742 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 851 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
| 743 } | 852 } |
| 744 buildCounterJobConfigurationQuery--; | 853 buildCounterJobConfigurationQuery--; |
| 745 } | 854 } |
| 746 | 855 |
| 747 buildUnnamed2663() { | 856 buildUnnamed2987() { |
| 748 var o = new core.List<api.TableReference>(); | 857 var o = new core.List<api.TableReference>(); |
| 749 o.add(buildTableReference()); | 858 o.add(buildTableReference()); |
| 750 o.add(buildTableReference()); | 859 o.add(buildTableReference()); |
| 751 return o; | 860 return o; |
| 752 } | 861 } |
| 753 | 862 |
| 754 checkUnnamed2663(core.List<api.TableReference> o) { | 863 checkUnnamed2987(core.List<api.TableReference> o) { |
| 755 unittest.expect(o, unittest.hasLength(2)); | 864 unittest.expect(o, unittest.hasLength(2)); |
| 756 checkTableReference(o[0]); | 865 checkTableReference(o[0]); |
| 757 checkTableReference(o[1]); | 866 checkTableReference(o[1]); |
| 758 } | 867 } |
| 759 | 868 |
| 760 core.int buildCounterJobConfigurationTableCopy = 0; | 869 core.int buildCounterJobConfigurationTableCopy = 0; |
| 761 buildJobConfigurationTableCopy() { | 870 buildJobConfigurationTableCopy() { |
| 762 var o = new api.JobConfigurationTableCopy(); | 871 var o = new api.JobConfigurationTableCopy(); |
| 763 buildCounterJobConfigurationTableCopy++; | 872 buildCounterJobConfigurationTableCopy++; |
| 764 if (buildCounterJobConfigurationTableCopy < 3) { | 873 if (buildCounterJobConfigurationTableCopy < 3) { |
| 765 o.createDisposition = "foo"; | 874 o.createDisposition = "foo"; |
| 766 o.destinationTable = buildTableReference(); | 875 o.destinationTable = buildTableReference(); |
| 767 o.sourceTable = buildTableReference(); | 876 o.sourceTable = buildTableReference(); |
| 768 o.sourceTables = buildUnnamed2663(); | 877 o.sourceTables = buildUnnamed2987(); |
| 769 o.writeDisposition = "foo"; | 878 o.writeDisposition = "foo"; |
| 770 } | 879 } |
| 771 buildCounterJobConfigurationTableCopy--; | 880 buildCounterJobConfigurationTableCopy--; |
| 772 return o; | 881 return o; |
| 773 } | 882 } |
| 774 | 883 |
| 775 checkJobConfigurationTableCopy(api.JobConfigurationTableCopy o) { | 884 checkJobConfigurationTableCopy(api.JobConfigurationTableCopy o) { |
| 776 buildCounterJobConfigurationTableCopy++; | 885 buildCounterJobConfigurationTableCopy++; |
| 777 if (buildCounterJobConfigurationTableCopy < 3) { | 886 if (buildCounterJobConfigurationTableCopy < 3) { |
| 778 unittest.expect(o.createDisposition, unittest.equals('foo')); | 887 unittest.expect(o.createDisposition, unittest.equals('foo')); |
| 779 checkTableReference(o.destinationTable); | 888 checkTableReference(o.destinationTable); |
| 780 checkTableReference(o.sourceTable); | 889 checkTableReference(o.sourceTable); |
| 781 checkUnnamed2663(o.sourceTables); | 890 checkUnnamed2987(o.sourceTables); |
| 782 unittest.expect(o.writeDisposition, unittest.equals('foo')); | 891 unittest.expect(o.writeDisposition, unittest.equals('foo')); |
| 783 } | 892 } |
| 784 buildCounterJobConfigurationTableCopy--; | 893 buildCounterJobConfigurationTableCopy--; |
| 785 } | 894 } |
| 786 | 895 |
| 787 core.int buildCounterJobListJobs = 0; | 896 core.int buildCounterJobListJobs = 0; |
| 788 buildJobListJobs() { | 897 buildJobListJobs() { |
| 789 var o = new api.JobListJobs(); | 898 var o = new api.JobListJobs(); |
| 790 buildCounterJobListJobs++; | 899 buildCounterJobListJobs++; |
| 791 if (buildCounterJobListJobs < 3) { | 900 if (buildCounterJobListJobs < 3) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 812 checkJobReference(o.jobReference); | 921 checkJobReference(o.jobReference); |
| 813 unittest.expect(o.kind, unittest.equals('foo')); | 922 unittest.expect(o.kind, unittest.equals('foo')); |
| 814 unittest.expect(o.state, unittest.equals('foo')); | 923 unittest.expect(o.state, unittest.equals('foo')); |
| 815 checkJobStatistics(o.statistics); | 924 checkJobStatistics(o.statistics); |
| 816 checkJobStatus(o.status); | 925 checkJobStatus(o.status); |
| 817 unittest.expect(o.userEmail, unittest.equals('foo')); | 926 unittest.expect(o.userEmail, unittest.equals('foo')); |
| 818 } | 927 } |
| 819 buildCounterJobListJobs--; | 928 buildCounterJobListJobs--; |
| 820 } | 929 } |
| 821 | 930 |
| 822 buildUnnamed2664() { | 931 buildUnnamed2988() { |
| 823 var o = new core.List<api.JobListJobs>(); | 932 var o = new core.List<api.JobListJobs>(); |
| 824 o.add(buildJobListJobs()); | 933 o.add(buildJobListJobs()); |
| 825 o.add(buildJobListJobs()); | 934 o.add(buildJobListJobs()); |
| 826 return o; | 935 return o; |
| 827 } | 936 } |
| 828 | 937 |
| 829 checkUnnamed2664(core.List<api.JobListJobs> o) { | 938 checkUnnamed2988(core.List<api.JobListJobs> o) { |
| 830 unittest.expect(o, unittest.hasLength(2)); | 939 unittest.expect(o, unittest.hasLength(2)); |
| 831 checkJobListJobs(o[0]); | 940 checkJobListJobs(o[0]); |
| 832 checkJobListJobs(o[1]); | 941 checkJobListJobs(o[1]); |
| 833 } | 942 } |
| 834 | 943 |
| 835 core.int buildCounterJobList = 0; | 944 core.int buildCounterJobList = 0; |
| 836 buildJobList() { | 945 buildJobList() { |
| 837 var o = new api.JobList(); | 946 var o = new api.JobList(); |
| 838 buildCounterJobList++; | 947 buildCounterJobList++; |
| 839 if (buildCounterJobList < 3) { | 948 if (buildCounterJobList < 3) { |
| 840 o.etag = "foo"; | 949 o.etag = "foo"; |
| 841 o.jobs = buildUnnamed2664(); | 950 o.jobs = buildUnnamed2988(); |
| 842 o.kind = "foo"; | 951 o.kind = "foo"; |
| 843 o.nextPageToken = "foo"; | 952 o.nextPageToken = "foo"; |
| 844 } | 953 } |
| 845 buildCounterJobList--; | 954 buildCounterJobList--; |
| 846 return o; | 955 return o; |
| 847 } | 956 } |
| 848 | 957 |
| 849 checkJobList(api.JobList o) { | 958 checkJobList(api.JobList o) { |
| 850 buildCounterJobList++; | 959 buildCounterJobList++; |
| 851 if (buildCounterJobList < 3) { | 960 if (buildCounterJobList < 3) { |
| 852 unittest.expect(o.etag, unittest.equals('foo')); | 961 unittest.expect(o.etag, unittest.equals('foo')); |
| 853 checkUnnamed2664(o.jobs); | 962 checkUnnamed2988(o.jobs); |
| 854 unittest.expect(o.kind, unittest.equals('foo')); | 963 unittest.expect(o.kind, unittest.equals('foo')); |
| 855 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 964 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 856 } | 965 } |
| 857 buildCounterJobList--; | 966 buildCounterJobList--; |
| 858 } | 967 } |
| 859 | 968 |
| 860 core.int buildCounterJobReference = 0; | 969 core.int buildCounterJobReference = 0; |
| 861 buildJobReference() { | 970 buildJobReference() { |
| 862 var o = new api.JobReference(); | 971 var o = new api.JobReference(); |
| 863 buildCounterJobReference++; | 972 buildCounterJobReference++; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 902 unittest.expect(o.endTime, unittest.equals('foo')); | 1011 unittest.expect(o.endTime, unittest.equals('foo')); |
| 903 checkJobStatistics4(o.extract); | 1012 checkJobStatistics4(o.extract); |
| 904 checkJobStatistics3(o.load); | 1013 checkJobStatistics3(o.load); |
| 905 checkJobStatistics2(o.query); | 1014 checkJobStatistics2(o.query); |
| 906 unittest.expect(o.startTime, unittest.equals('foo')); | 1015 unittest.expect(o.startTime, unittest.equals('foo')); |
| 907 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); | 1016 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); |
| 908 } | 1017 } |
| 909 buildCounterJobStatistics--; | 1018 buildCounterJobStatistics--; |
| 910 } | 1019 } |
| 911 | 1020 |
| 912 buildUnnamed2665() { | 1021 buildUnnamed2989() { |
| 913 var o = new core.List<api.ExplainQueryStage>(); | 1022 var o = new core.List<api.ExplainQueryStage>(); |
| 914 o.add(buildExplainQueryStage()); | 1023 o.add(buildExplainQueryStage()); |
| 915 o.add(buildExplainQueryStage()); | 1024 o.add(buildExplainQueryStage()); |
| 916 return o; | 1025 return o; |
| 917 } | 1026 } |
| 918 | 1027 |
| 919 checkUnnamed2665(core.List<api.ExplainQueryStage> o) { | 1028 checkUnnamed2989(core.List<api.ExplainQueryStage> o) { |
| 920 unittest.expect(o, unittest.hasLength(2)); | 1029 unittest.expect(o, unittest.hasLength(2)); |
| 921 checkExplainQueryStage(o[0]); | 1030 checkExplainQueryStage(o[0]); |
| 922 checkExplainQueryStage(o[1]); | 1031 checkExplainQueryStage(o[1]); |
| 923 } | 1032 } |
| 924 | 1033 |
| 1034 buildUnnamed2990() { |
| 1035 var o = new core.List<api.TableReference>(); |
| 1036 o.add(buildTableReference()); |
| 1037 o.add(buildTableReference()); |
| 1038 return o; |
| 1039 } |
| 1040 |
| 1041 checkUnnamed2990(core.List<api.TableReference> o) { |
| 1042 unittest.expect(o, unittest.hasLength(2)); |
| 1043 checkTableReference(o[0]); |
| 1044 checkTableReference(o[1]); |
| 1045 } |
| 1046 |
| 925 core.int buildCounterJobStatistics2 = 0; | 1047 core.int buildCounterJobStatistics2 = 0; |
| 926 buildJobStatistics2() { | 1048 buildJobStatistics2() { |
| 927 var o = new api.JobStatistics2(); | 1049 var o = new api.JobStatistics2(); |
| 928 buildCounterJobStatistics2++; | 1050 buildCounterJobStatistics2++; |
| 929 if (buildCounterJobStatistics2 < 3) { | 1051 if (buildCounterJobStatistics2 < 3) { |
| 930 o.billingTier = 42; | 1052 o.billingTier = 42; |
| 931 o.cacheHit = true; | 1053 o.cacheHit = true; |
| 932 o.queryPlan = buildUnnamed2665(); | 1054 o.queryPlan = buildUnnamed2989(); |
| 1055 o.referencedTables = buildUnnamed2990(); |
| 933 o.totalBytesBilled = "foo"; | 1056 o.totalBytesBilled = "foo"; |
| 934 o.totalBytesProcessed = "foo"; | 1057 o.totalBytesProcessed = "foo"; |
| 935 } | 1058 } |
| 936 buildCounterJobStatistics2--; | 1059 buildCounterJobStatistics2--; |
| 937 return o; | 1060 return o; |
| 938 } | 1061 } |
| 939 | 1062 |
| 940 checkJobStatistics2(api.JobStatistics2 o) { | 1063 checkJobStatistics2(api.JobStatistics2 o) { |
| 941 buildCounterJobStatistics2++; | 1064 buildCounterJobStatistics2++; |
| 942 if (buildCounterJobStatistics2 < 3) { | 1065 if (buildCounterJobStatistics2 < 3) { |
| 943 unittest.expect(o.billingTier, unittest.equals(42)); | 1066 unittest.expect(o.billingTier, unittest.equals(42)); |
| 944 unittest.expect(o.cacheHit, unittest.isTrue); | 1067 unittest.expect(o.cacheHit, unittest.isTrue); |
| 945 checkUnnamed2665(o.queryPlan); | 1068 checkUnnamed2989(o.queryPlan); |
| 1069 checkUnnamed2990(o.referencedTables); |
| 946 unittest.expect(o.totalBytesBilled, unittest.equals('foo')); | 1070 unittest.expect(o.totalBytesBilled, unittest.equals('foo')); |
| 947 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); | 1071 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); |
| 948 } | 1072 } |
| 949 buildCounterJobStatistics2--; | 1073 buildCounterJobStatistics2--; |
| 950 } | 1074 } |
| 951 | 1075 |
| 952 core.int buildCounterJobStatistics3 = 0; | 1076 core.int buildCounterJobStatistics3 = 0; |
| 953 buildJobStatistics3() { | 1077 buildJobStatistics3() { |
| 954 var o = new api.JobStatistics3(); | 1078 var o = new api.JobStatistics3(); |
| 955 buildCounterJobStatistics3++; | 1079 buildCounterJobStatistics3++; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 967 buildCounterJobStatistics3++; | 1091 buildCounterJobStatistics3++; |
| 968 if (buildCounterJobStatistics3 < 3) { | 1092 if (buildCounterJobStatistics3 < 3) { |
| 969 unittest.expect(o.inputFileBytes, unittest.equals('foo')); | 1093 unittest.expect(o.inputFileBytes, unittest.equals('foo')); |
| 970 unittest.expect(o.inputFiles, unittest.equals('foo')); | 1094 unittest.expect(o.inputFiles, unittest.equals('foo')); |
| 971 unittest.expect(o.outputBytes, unittest.equals('foo')); | 1095 unittest.expect(o.outputBytes, unittest.equals('foo')); |
| 972 unittest.expect(o.outputRows, unittest.equals('foo')); | 1096 unittest.expect(o.outputRows, unittest.equals('foo')); |
| 973 } | 1097 } |
| 974 buildCounterJobStatistics3--; | 1098 buildCounterJobStatistics3--; |
| 975 } | 1099 } |
| 976 | 1100 |
| 977 buildUnnamed2666() { | 1101 buildUnnamed2991() { |
| 978 var o = new core.List<core.String>(); | 1102 var o = new core.List<core.String>(); |
| 979 o.add("foo"); | 1103 o.add("foo"); |
| 980 o.add("foo"); | 1104 o.add("foo"); |
| 981 return o; | 1105 return o; |
| 982 } | 1106 } |
| 983 | 1107 |
| 984 checkUnnamed2666(core.List<core.String> o) { | 1108 checkUnnamed2991(core.List<core.String> o) { |
| 985 unittest.expect(o, unittest.hasLength(2)); | 1109 unittest.expect(o, unittest.hasLength(2)); |
| 986 unittest.expect(o[0], unittest.equals('foo')); | 1110 unittest.expect(o[0], unittest.equals('foo')); |
| 987 unittest.expect(o[1], unittest.equals('foo')); | 1111 unittest.expect(o[1], unittest.equals('foo')); |
| 988 } | 1112 } |
| 989 | 1113 |
| 990 core.int buildCounterJobStatistics4 = 0; | 1114 core.int buildCounterJobStatistics4 = 0; |
| 991 buildJobStatistics4() { | 1115 buildJobStatistics4() { |
| 992 var o = new api.JobStatistics4(); | 1116 var o = new api.JobStatistics4(); |
| 993 buildCounterJobStatistics4++; | 1117 buildCounterJobStatistics4++; |
| 994 if (buildCounterJobStatistics4 < 3) { | 1118 if (buildCounterJobStatistics4 < 3) { |
| 995 o.destinationUriFileCounts = buildUnnamed2666(); | 1119 o.destinationUriFileCounts = buildUnnamed2991(); |
| 996 } | 1120 } |
| 997 buildCounterJobStatistics4--; | 1121 buildCounterJobStatistics4--; |
| 998 return o; | 1122 return o; |
| 999 } | 1123 } |
| 1000 | 1124 |
| 1001 checkJobStatistics4(api.JobStatistics4 o) { | 1125 checkJobStatistics4(api.JobStatistics4 o) { |
| 1002 buildCounterJobStatistics4++; | 1126 buildCounterJobStatistics4++; |
| 1003 if (buildCounterJobStatistics4 < 3) { | 1127 if (buildCounterJobStatistics4 < 3) { |
| 1004 checkUnnamed2666(o.destinationUriFileCounts); | 1128 checkUnnamed2991(o.destinationUriFileCounts); |
| 1005 } | 1129 } |
| 1006 buildCounterJobStatistics4--; | 1130 buildCounterJobStatistics4--; |
| 1007 } | 1131 } |
| 1008 | 1132 |
| 1009 buildUnnamed2667() { | 1133 buildUnnamed2992() { |
| 1010 var o = new core.List<api.ErrorProto>(); | 1134 var o = new core.List<api.ErrorProto>(); |
| 1011 o.add(buildErrorProto()); | 1135 o.add(buildErrorProto()); |
| 1012 o.add(buildErrorProto()); | 1136 o.add(buildErrorProto()); |
| 1013 return o; | 1137 return o; |
| 1014 } | 1138 } |
| 1015 | 1139 |
| 1016 checkUnnamed2667(core.List<api.ErrorProto> o) { | 1140 checkUnnamed2992(core.List<api.ErrorProto> o) { |
| 1017 unittest.expect(o, unittest.hasLength(2)); | 1141 unittest.expect(o, unittest.hasLength(2)); |
| 1018 checkErrorProto(o[0]); | 1142 checkErrorProto(o[0]); |
| 1019 checkErrorProto(o[1]); | 1143 checkErrorProto(o[1]); |
| 1020 } | 1144 } |
| 1021 | 1145 |
| 1022 core.int buildCounterJobStatus = 0; | 1146 core.int buildCounterJobStatus = 0; |
| 1023 buildJobStatus() { | 1147 buildJobStatus() { |
| 1024 var o = new api.JobStatus(); | 1148 var o = new api.JobStatus(); |
| 1025 buildCounterJobStatus++; | 1149 buildCounterJobStatus++; |
| 1026 if (buildCounterJobStatus < 3) { | 1150 if (buildCounterJobStatus < 3) { |
| 1027 o.errorResult = buildErrorProto(); | 1151 o.errorResult = buildErrorProto(); |
| 1028 o.errors = buildUnnamed2667(); | 1152 o.errors = buildUnnamed2992(); |
| 1029 o.state = "foo"; | 1153 o.state = "foo"; |
| 1030 } | 1154 } |
| 1031 buildCounterJobStatus--; | 1155 buildCounterJobStatus--; |
| 1032 return o; | 1156 return o; |
| 1033 } | 1157 } |
| 1034 | 1158 |
| 1035 checkJobStatus(api.JobStatus o) { | 1159 checkJobStatus(api.JobStatus o) { |
| 1036 buildCounterJobStatus++; | 1160 buildCounterJobStatus++; |
| 1037 if (buildCounterJobStatus < 3) { | 1161 if (buildCounterJobStatus < 3) { |
| 1038 checkErrorProto(o.errorResult); | 1162 checkErrorProto(o.errorResult); |
| 1039 checkUnnamed2667(o.errors); | 1163 checkUnnamed2992(o.errors); |
| 1040 unittest.expect(o.state, unittest.equals('foo')); | 1164 unittest.expect(o.state, unittest.equals('foo')); |
| 1041 } | 1165 } |
| 1042 buildCounterJobStatus--; | 1166 buildCounterJobStatus--; |
| 1043 } | 1167 } |
| 1044 | 1168 |
| 1045 buildJsonObject() { | 1169 buildJsonObject() { |
| 1046 var o = new api.JsonObject(); | 1170 var o = new api.JsonObject(); |
| 1047 o["a"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1171 o["a"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1048 o["b"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1172 o["b"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1049 return o; | 1173 return o; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1075 if (buildCounterProjectListProjects < 3) { | 1199 if (buildCounterProjectListProjects < 3) { |
| 1076 unittest.expect(o.friendlyName, unittest.equals('foo')); | 1200 unittest.expect(o.friendlyName, unittest.equals('foo')); |
| 1077 unittest.expect(o.id, unittest.equals('foo')); | 1201 unittest.expect(o.id, unittest.equals('foo')); |
| 1078 unittest.expect(o.kind, unittest.equals('foo')); | 1202 unittest.expect(o.kind, unittest.equals('foo')); |
| 1079 unittest.expect(o.numericId, unittest.equals('foo')); | 1203 unittest.expect(o.numericId, unittest.equals('foo')); |
| 1080 checkProjectReference(o.projectReference); | 1204 checkProjectReference(o.projectReference); |
| 1081 } | 1205 } |
| 1082 buildCounterProjectListProjects--; | 1206 buildCounterProjectListProjects--; |
| 1083 } | 1207 } |
| 1084 | 1208 |
| 1085 buildUnnamed2668() { | 1209 buildUnnamed2993() { |
| 1086 var o = new core.List<api.ProjectListProjects>(); | 1210 var o = new core.List<api.ProjectListProjects>(); |
| 1087 o.add(buildProjectListProjects()); | 1211 o.add(buildProjectListProjects()); |
| 1088 o.add(buildProjectListProjects()); | 1212 o.add(buildProjectListProjects()); |
| 1089 return o; | 1213 return o; |
| 1090 } | 1214 } |
| 1091 | 1215 |
| 1092 checkUnnamed2668(core.List<api.ProjectListProjects> o) { | 1216 checkUnnamed2993(core.List<api.ProjectListProjects> o) { |
| 1093 unittest.expect(o, unittest.hasLength(2)); | 1217 unittest.expect(o, unittest.hasLength(2)); |
| 1094 checkProjectListProjects(o[0]); | 1218 checkProjectListProjects(o[0]); |
| 1095 checkProjectListProjects(o[1]); | 1219 checkProjectListProjects(o[1]); |
| 1096 } | 1220 } |
| 1097 | 1221 |
| 1098 core.int buildCounterProjectList = 0; | 1222 core.int buildCounterProjectList = 0; |
| 1099 buildProjectList() { | 1223 buildProjectList() { |
| 1100 var o = new api.ProjectList(); | 1224 var o = new api.ProjectList(); |
| 1101 buildCounterProjectList++; | 1225 buildCounterProjectList++; |
| 1102 if (buildCounterProjectList < 3) { | 1226 if (buildCounterProjectList < 3) { |
| 1103 o.etag = "foo"; | 1227 o.etag = "foo"; |
| 1104 o.kind = "foo"; | 1228 o.kind = "foo"; |
| 1105 o.nextPageToken = "foo"; | 1229 o.nextPageToken = "foo"; |
| 1106 o.projects = buildUnnamed2668(); | 1230 o.projects = buildUnnamed2993(); |
| 1107 o.totalItems = 42; | 1231 o.totalItems = 42; |
| 1108 } | 1232 } |
| 1109 buildCounterProjectList--; | 1233 buildCounterProjectList--; |
| 1110 return o; | 1234 return o; |
| 1111 } | 1235 } |
| 1112 | 1236 |
| 1113 checkProjectList(api.ProjectList o) { | 1237 checkProjectList(api.ProjectList o) { |
| 1114 buildCounterProjectList++; | 1238 buildCounterProjectList++; |
| 1115 if (buildCounterProjectList < 3) { | 1239 if (buildCounterProjectList < 3) { |
| 1116 unittest.expect(o.etag, unittest.equals('foo')); | 1240 unittest.expect(o.etag, unittest.equals('foo')); |
| 1117 unittest.expect(o.kind, unittest.equals('foo')); | 1241 unittest.expect(o.kind, unittest.equals('foo')); |
| 1118 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1242 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1119 checkUnnamed2668(o.projects); | 1243 checkUnnamed2993(o.projects); |
| 1120 unittest.expect(o.totalItems, unittest.equals(42)); | 1244 unittest.expect(o.totalItems, unittest.equals(42)); |
| 1121 } | 1245 } |
| 1122 buildCounterProjectList--; | 1246 buildCounterProjectList--; |
| 1123 } | 1247 } |
| 1124 | 1248 |
| 1125 core.int buildCounterProjectReference = 0; | 1249 core.int buildCounterProjectReference = 0; |
| 1126 buildProjectReference() { | 1250 buildProjectReference() { |
| 1127 var o = new api.ProjectReference(); | 1251 var o = new api.ProjectReference(); |
| 1128 buildCounterProjectReference++; | 1252 buildCounterProjectReference++; |
| 1129 if (buildCounterProjectReference < 3) { | 1253 if (buildCounterProjectReference < 3) { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1146 var o = new api.QueryRequest(); | 1270 var o = new api.QueryRequest(); |
| 1147 buildCounterQueryRequest++; | 1271 buildCounterQueryRequest++; |
| 1148 if (buildCounterQueryRequest < 3) { | 1272 if (buildCounterQueryRequest < 3) { |
| 1149 o.defaultDataset = buildDatasetReference(); | 1273 o.defaultDataset = buildDatasetReference(); |
| 1150 o.dryRun = true; | 1274 o.dryRun = true; |
| 1151 o.kind = "foo"; | 1275 o.kind = "foo"; |
| 1152 o.maxResults = 42; | 1276 o.maxResults = 42; |
| 1153 o.preserveNulls = true; | 1277 o.preserveNulls = true; |
| 1154 o.query = "foo"; | 1278 o.query = "foo"; |
| 1155 o.timeoutMs = 42; | 1279 o.timeoutMs = 42; |
| 1280 o.useLegacySql = true; |
| 1156 o.useQueryCache = true; | 1281 o.useQueryCache = true; |
| 1157 } | 1282 } |
| 1158 buildCounterQueryRequest--; | 1283 buildCounterQueryRequest--; |
| 1159 return o; | 1284 return o; |
| 1160 } | 1285 } |
| 1161 | 1286 |
| 1162 checkQueryRequest(api.QueryRequest o) { | 1287 checkQueryRequest(api.QueryRequest o) { |
| 1163 buildCounterQueryRequest++; | 1288 buildCounterQueryRequest++; |
| 1164 if (buildCounterQueryRequest < 3) { | 1289 if (buildCounterQueryRequest < 3) { |
| 1165 checkDatasetReference(o.defaultDataset); | 1290 checkDatasetReference(o.defaultDataset); |
| 1166 unittest.expect(o.dryRun, unittest.isTrue); | 1291 unittest.expect(o.dryRun, unittest.isTrue); |
| 1167 unittest.expect(o.kind, unittest.equals('foo')); | 1292 unittest.expect(o.kind, unittest.equals('foo')); |
| 1168 unittest.expect(o.maxResults, unittest.equals(42)); | 1293 unittest.expect(o.maxResults, unittest.equals(42)); |
| 1169 unittest.expect(o.preserveNulls, unittest.isTrue); | 1294 unittest.expect(o.preserveNulls, unittest.isTrue); |
| 1170 unittest.expect(o.query, unittest.equals('foo')); | 1295 unittest.expect(o.query, unittest.equals('foo')); |
| 1171 unittest.expect(o.timeoutMs, unittest.equals(42)); | 1296 unittest.expect(o.timeoutMs, unittest.equals(42)); |
| 1297 unittest.expect(o.useLegacySql, unittest.isTrue); |
| 1172 unittest.expect(o.useQueryCache, unittest.isTrue); | 1298 unittest.expect(o.useQueryCache, unittest.isTrue); |
| 1173 } | 1299 } |
| 1174 buildCounterQueryRequest--; | 1300 buildCounterQueryRequest--; |
| 1175 } | 1301 } |
| 1176 | 1302 |
| 1177 buildUnnamed2669() { | 1303 buildUnnamed2994() { |
| 1178 var o = new core.List<api.ErrorProto>(); | 1304 var o = new core.List<api.ErrorProto>(); |
| 1179 o.add(buildErrorProto()); | 1305 o.add(buildErrorProto()); |
| 1180 o.add(buildErrorProto()); | 1306 o.add(buildErrorProto()); |
| 1181 return o; | 1307 return o; |
| 1182 } | 1308 } |
| 1183 | 1309 |
| 1184 checkUnnamed2669(core.List<api.ErrorProto> o) { | 1310 checkUnnamed2994(core.List<api.ErrorProto> o) { |
| 1185 unittest.expect(o, unittest.hasLength(2)); | 1311 unittest.expect(o, unittest.hasLength(2)); |
| 1186 checkErrorProto(o[0]); | 1312 checkErrorProto(o[0]); |
| 1187 checkErrorProto(o[1]); | 1313 checkErrorProto(o[1]); |
| 1188 } | 1314 } |
| 1189 | 1315 |
| 1190 buildUnnamed2670() { | 1316 buildUnnamed2995() { |
| 1191 var o = new core.List<api.TableRow>(); | 1317 var o = new core.List<api.TableRow>(); |
| 1192 o.add(buildTableRow()); | 1318 o.add(buildTableRow()); |
| 1193 o.add(buildTableRow()); | 1319 o.add(buildTableRow()); |
| 1194 return o; | 1320 return o; |
| 1195 } | 1321 } |
| 1196 | 1322 |
| 1197 checkUnnamed2670(core.List<api.TableRow> o) { | 1323 checkUnnamed2995(core.List<api.TableRow> o) { |
| 1198 unittest.expect(o, unittest.hasLength(2)); | 1324 unittest.expect(o, unittest.hasLength(2)); |
| 1199 checkTableRow(o[0]); | 1325 checkTableRow(o[0]); |
| 1200 checkTableRow(o[1]); | 1326 checkTableRow(o[1]); |
| 1201 } | 1327 } |
| 1202 | 1328 |
| 1203 core.int buildCounterQueryResponse = 0; | 1329 core.int buildCounterQueryResponse = 0; |
| 1204 buildQueryResponse() { | 1330 buildQueryResponse() { |
| 1205 var o = new api.QueryResponse(); | 1331 var o = new api.QueryResponse(); |
| 1206 buildCounterQueryResponse++; | 1332 buildCounterQueryResponse++; |
| 1207 if (buildCounterQueryResponse < 3) { | 1333 if (buildCounterQueryResponse < 3) { |
| 1208 o.cacheHit = true; | 1334 o.cacheHit = true; |
| 1209 o.errors = buildUnnamed2669(); | 1335 o.errors = buildUnnamed2994(); |
| 1210 o.jobComplete = true; | 1336 o.jobComplete = true; |
| 1211 o.jobReference = buildJobReference(); | 1337 o.jobReference = buildJobReference(); |
| 1212 o.kind = "foo"; | 1338 o.kind = "foo"; |
| 1213 o.pageToken = "foo"; | 1339 o.pageToken = "foo"; |
| 1214 o.rows = buildUnnamed2670(); | 1340 o.rows = buildUnnamed2995(); |
| 1215 o.schema = buildTableSchema(); | 1341 o.schema = buildTableSchema(); |
| 1216 o.totalBytesProcessed = "foo"; | 1342 o.totalBytesProcessed = "foo"; |
| 1217 o.totalRows = "foo"; | 1343 o.totalRows = "foo"; |
| 1218 } | 1344 } |
| 1219 buildCounterQueryResponse--; | 1345 buildCounterQueryResponse--; |
| 1220 return o; | 1346 return o; |
| 1221 } | 1347 } |
| 1222 | 1348 |
| 1223 checkQueryResponse(api.QueryResponse o) { | 1349 checkQueryResponse(api.QueryResponse o) { |
| 1224 buildCounterQueryResponse++; | 1350 buildCounterQueryResponse++; |
| 1225 if (buildCounterQueryResponse < 3) { | 1351 if (buildCounterQueryResponse < 3) { |
| 1226 unittest.expect(o.cacheHit, unittest.isTrue); | 1352 unittest.expect(o.cacheHit, unittest.isTrue); |
| 1227 checkUnnamed2669(o.errors); | 1353 checkUnnamed2994(o.errors); |
| 1228 unittest.expect(o.jobComplete, unittest.isTrue); | 1354 unittest.expect(o.jobComplete, unittest.isTrue); |
| 1229 checkJobReference(o.jobReference); | 1355 checkJobReference(o.jobReference); |
| 1230 unittest.expect(o.kind, unittest.equals('foo')); | 1356 unittest.expect(o.kind, unittest.equals('foo')); |
| 1231 unittest.expect(o.pageToken, unittest.equals('foo')); | 1357 unittest.expect(o.pageToken, unittest.equals('foo')); |
| 1232 checkUnnamed2670(o.rows); | 1358 checkUnnamed2995(o.rows); |
| 1233 checkTableSchema(o.schema); | 1359 checkTableSchema(o.schema); |
| 1234 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); | 1360 unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); |
| 1235 unittest.expect(o.totalRows, unittest.equals('foo')); | 1361 unittest.expect(o.totalRows, unittest.equals('foo')); |
| 1236 } | 1362 } |
| 1237 buildCounterQueryResponse--; | 1363 buildCounterQueryResponse--; |
| 1238 } | 1364 } |
| 1239 | 1365 |
| 1240 core.int buildCounterStreamingbuffer = 0; | 1366 core.int buildCounterStreamingbuffer = 0; |
| 1241 buildStreamingbuffer() { | 1367 buildStreamingbuffer() { |
| 1242 var o = new api.Streamingbuffer(); | 1368 var o = new api.Streamingbuffer(); |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1346 | 1472 |
| 1347 checkTableDataInsertAllRequestRows(api.TableDataInsertAllRequestRows o) { | 1473 checkTableDataInsertAllRequestRows(api.TableDataInsertAllRequestRows o) { |
| 1348 buildCounterTableDataInsertAllRequestRows++; | 1474 buildCounterTableDataInsertAllRequestRows++; |
| 1349 if (buildCounterTableDataInsertAllRequestRows < 3) { | 1475 if (buildCounterTableDataInsertAllRequestRows < 3) { |
| 1350 unittest.expect(o.insertId, unittest.equals('foo')); | 1476 unittest.expect(o.insertId, unittest.equals('foo')); |
| 1351 checkJsonObject(o.json); | 1477 checkJsonObject(o.json); |
| 1352 } | 1478 } |
| 1353 buildCounterTableDataInsertAllRequestRows--; | 1479 buildCounterTableDataInsertAllRequestRows--; |
| 1354 } | 1480 } |
| 1355 | 1481 |
| 1356 buildUnnamed2671() { | 1482 buildUnnamed2996() { |
| 1357 var o = new core.List<api.TableDataInsertAllRequestRows>(); | 1483 var o = new core.List<api.TableDataInsertAllRequestRows>(); |
| 1358 o.add(buildTableDataInsertAllRequestRows()); | 1484 o.add(buildTableDataInsertAllRequestRows()); |
| 1359 o.add(buildTableDataInsertAllRequestRows()); | 1485 o.add(buildTableDataInsertAllRequestRows()); |
| 1360 return o; | 1486 return o; |
| 1361 } | 1487 } |
| 1362 | 1488 |
| 1363 checkUnnamed2671(core.List<api.TableDataInsertAllRequestRows> o) { | 1489 checkUnnamed2996(core.List<api.TableDataInsertAllRequestRows> o) { |
| 1364 unittest.expect(o, unittest.hasLength(2)); | 1490 unittest.expect(o, unittest.hasLength(2)); |
| 1365 checkTableDataInsertAllRequestRows(o[0]); | 1491 checkTableDataInsertAllRequestRows(o[0]); |
| 1366 checkTableDataInsertAllRequestRows(o[1]); | 1492 checkTableDataInsertAllRequestRows(o[1]); |
| 1367 } | 1493 } |
| 1368 | 1494 |
| 1369 core.int buildCounterTableDataInsertAllRequest = 0; | 1495 core.int buildCounterTableDataInsertAllRequest = 0; |
| 1370 buildTableDataInsertAllRequest() { | 1496 buildTableDataInsertAllRequest() { |
| 1371 var o = new api.TableDataInsertAllRequest(); | 1497 var o = new api.TableDataInsertAllRequest(); |
| 1372 buildCounterTableDataInsertAllRequest++; | 1498 buildCounterTableDataInsertAllRequest++; |
| 1373 if (buildCounterTableDataInsertAllRequest < 3) { | 1499 if (buildCounterTableDataInsertAllRequest < 3) { |
| 1374 o.ignoreUnknownValues = true; | 1500 o.ignoreUnknownValues = true; |
| 1375 o.kind = "foo"; | 1501 o.kind = "foo"; |
| 1376 o.rows = buildUnnamed2671(); | 1502 o.rows = buildUnnamed2996(); |
| 1377 o.skipInvalidRows = true; | 1503 o.skipInvalidRows = true; |
| 1378 o.templateSuffix = "foo"; | 1504 o.templateSuffix = "foo"; |
| 1379 } | 1505 } |
| 1380 buildCounterTableDataInsertAllRequest--; | 1506 buildCounterTableDataInsertAllRequest--; |
| 1381 return o; | 1507 return o; |
| 1382 } | 1508 } |
| 1383 | 1509 |
| 1384 checkTableDataInsertAllRequest(api.TableDataInsertAllRequest o) { | 1510 checkTableDataInsertAllRequest(api.TableDataInsertAllRequest o) { |
| 1385 buildCounterTableDataInsertAllRequest++; | 1511 buildCounterTableDataInsertAllRequest++; |
| 1386 if (buildCounterTableDataInsertAllRequest < 3) { | 1512 if (buildCounterTableDataInsertAllRequest < 3) { |
| 1387 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); | 1513 unittest.expect(o.ignoreUnknownValues, unittest.isTrue); |
| 1388 unittest.expect(o.kind, unittest.equals('foo')); | 1514 unittest.expect(o.kind, unittest.equals('foo')); |
| 1389 checkUnnamed2671(o.rows); | 1515 checkUnnamed2996(o.rows); |
| 1390 unittest.expect(o.skipInvalidRows, unittest.isTrue); | 1516 unittest.expect(o.skipInvalidRows, unittest.isTrue); |
| 1391 unittest.expect(o.templateSuffix, unittest.equals('foo')); | 1517 unittest.expect(o.templateSuffix, unittest.equals('foo')); |
| 1392 } | 1518 } |
| 1393 buildCounterTableDataInsertAllRequest--; | 1519 buildCounterTableDataInsertAllRequest--; |
| 1394 } | 1520 } |
| 1395 | 1521 |
| 1396 buildUnnamed2672() { | 1522 buildUnnamed2997() { |
| 1397 var o = new core.List<api.ErrorProto>(); | 1523 var o = new core.List<api.ErrorProto>(); |
| 1398 o.add(buildErrorProto()); | 1524 o.add(buildErrorProto()); |
| 1399 o.add(buildErrorProto()); | 1525 o.add(buildErrorProto()); |
| 1400 return o; | 1526 return o; |
| 1401 } | 1527 } |
| 1402 | 1528 |
| 1403 checkUnnamed2672(core.List<api.ErrorProto> o) { | 1529 checkUnnamed2997(core.List<api.ErrorProto> o) { |
| 1404 unittest.expect(o, unittest.hasLength(2)); | 1530 unittest.expect(o, unittest.hasLength(2)); |
| 1405 checkErrorProto(o[0]); | 1531 checkErrorProto(o[0]); |
| 1406 checkErrorProto(o[1]); | 1532 checkErrorProto(o[1]); |
| 1407 } | 1533 } |
| 1408 | 1534 |
| 1409 core.int buildCounterTableDataInsertAllResponseInsertErrors = 0; | 1535 core.int buildCounterTableDataInsertAllResponseInsertErrors = 0; |
| 1410 buildTableDataInsertAllResponseInsertErrors() { | 1536 buildTableDataInsertAllResponseInsertErrors() { |
| 1411 var o = new api.TableDataInsertAllResponseInsertErrors(); | 1537 var o = new api.TableDataInsertAllResponseInsertErrors(); |
| 1412 buildCounterTableDataInsertAllResponseInsertErrors++; | 1538 buildCounterTableDataInsertAllResponseInsertErrors++; |
| 1413 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { | 1539 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { |
| 1414 o.errors = buildUnnamed2672(); | 1540 o.errors = buildUnnamed2997(); |
| 1415 o.index = 42; | 1541 o.index = 42; |
| 1416 } | 1542 } |
| 1417 buildCounterTableDataInsertAllResponseInsertErrors--; | 1543 buildCounterTableDataInsertAllResponseInsertErrors--; |
| 1418 return o; | 1544 return o; |
| 1419 } | 1545 } |
| 1420 | 1546 |
| 1421 checkTableDataInsertAllResponseInsertErrors(api.TableDataInsertAllResponseInsert
Errors o) { | 1547 checkTableDataInsertAllResponseInsertErrors(api.TableDataInsertAllResponseInsert
Errors o) { |
| 1422 buildCounterTableDataInsertAllResponseInsertErrors++; | 1548 buildCounterTableDataInsertAllResponseInsertErrors++; |
| 1423 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { | 1549 if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { |
| 1424 checkUnnamed2672(o.errors); | 1550 checkUnnamed2997(o.errors); |
| 1425 unittest.expect(o.index, unittest.equals(42)); | 1551 unittest.expect(o.index, unittest.equals(42)); |
| 1426 } | 1552 } |
| 1427 buildCounterTableDataInsertAllResponseInsertErrors--; | 1553 buildCounterTableDataInsertAllResponseInsertErrors--; |
| 1428 } | 1554 } |
| 1429 | 1555 |
| 1430 buildUnnamed2673() { | 1556 buildUnnamed2998() { |
| 1431 var o = new core.List<api.TableDataInsertAllResponseInsertErrors>(); | 1557 var o = new core.List<api.TableDataInsertAllResponseInsertErrors>(); |
| 1432 o.add(buildTableDataInsertAllResponseInsertErrors()); | 1558 o.add(buildTableDataInsertAllResponseInsertErrors()); |
| 1433 o.add(buildTableDataInsertAllResponseInsertErrors()); | 1559 o.add(buildTableDataInsertAllResponseInsertErrors()); |
| 1434 return o; | 1560 return o; |
| 1435 } | 1561 } |
| 1436 | 1562 |
| 1437 checkUnnamed2673(core.List<api.TableDataInsertAllResponseInsertErrors> o) { | 1563 checkUnnamed2998(core.List<api.TableDataInsertAllResponseInsertErrors> o) { |
| 1438 unittest.expect(o, unittest.hasLength(2)); | 1564 unittest.expect(o, unittest.hasLength(2)); |
| 1439 checkTableDataInsertAllResponseInsertErrors(o[0]); | 1565 checkTableDataInsertAllResponseInsertErrors(o[0]); |
| 1440 checkTableDataInsertAllResponseInsertErrors(o[1]); | 1566 checkTableDataInsertAllResponseInsertErrors(o[1]); |
| 1441 } | 1567 } |
| 1442 | 1568 |
| 1443 core.int buildCounterTableDataInsertAllResponse = 0; | 1569 core.int buildCounterTableDataInsertAllResponse = 0; |
| 1444 buildTableDataInsertAllResponse() { | 1570 buildTableDataInsertAllResponse() { |
| 1445 var o = new api.TableDataInsertAllResponse(); | 1571 var o = new api.TableDataInsertAllResponse(); |
| 1446 buildCounterTableDataInsertAllResponse++; | 1572 buildCounterTableDataInsertAllResponse++; |
| 1447 if (buildCounterTableDataInsertAllResponse < 3) { | 1573 if (buildCounterTableDataInsertAllResponse < 3) { |
| 1448 o.insertErrors = buildUnnamed2673(); | 1574 o.insertErrors = buildUnnamed2998(); |
| 1449 o.kind = "foo"; | 1575 o.kind = "foo"; |
| 1450 } | 1576 } |
| 1451 buildCounterTableDataInsertAllResponse--; | 1577 buildCounterTableDataInsertAllResponse--; |
| 1452 return o; | 1578 return o; |
| 1453 } | 1579 } |
| 1454 | 1580 |
| 1455 checkTableDataInsertAllResponse(api.TableDataInsertAllResponse o) { | 1581 checkTableDataInsertAllResponse(api.TableDataInsertAllResponse o) { |
| 1456 buildCounterTableDataInsertAllResponse++; | 1582 buildCounterTableDataInsertAllResponse++; |
| 1457 if (buildCounterTableDataInsertAllResponse < 3) { | 1583 if (buildCounterTableDataInsertAllResponse < 3) { |
| 1458 checkUnnamed2673(o.insertErrors); | 1584 checkUnnamed2998(o.insertErrors); |
| 1459 unittest.expect(o.kind, unittest.equals('foo')); | 1585 unittest.expect(o.kind, unittest.equals('foo')); |
| 1460 } | 1586 } |
| 1461 buildCounterTableDataInsertAllResponse--; | 1587 buildCounterTableDataInsertAllResponse--; |
| 1462 } | 1588 } |
| 1463 | 1589 |
| 1464 buildUnnamed2674() { | 1590 buildUnnamed2999() { |
| 1465 var o = new core.List<api.TableRow>(); | 1591 var o = new core.List<api.TableRow>(); |
| 1466 o.add(buildTableRow()); | 1592 o.add(buildTableRow()); |
| 1467 o.add(buildTableRow()); | 1593 o.add(buildTableRow()); |
| 1468 return o; | 1594 return o; |
| 1469 } | 1595 } |
| 1470 | 1596 |
| 1471 checkUnnamed2674(core.List<api.TableRow> o) { | 1597 checkUnnamed2999(core.List<api.TableRow> o) { |
| 1472 unittest.expect(o, unittest.hasLength(2)); | 1598 unittest.expect(o, unittest.hasLength(2)); |
| 1473 checkTableRow(o[0]); | 1599 checkTableRow(o[0]); |
| 1474 checkTableRow(o[1]); | 1600 checkTableRow(o[1]); |
| 1475 } | 1601 } |
| 1476 | 1602 |
| 1477 core.int buildCounterTableDataList = 0; | 1603 core.int buildCounterTableDataList = 0; |
| 1478 buildTableDataList() { | 1604 buildTableDataList() { |
| 1479 var o = new api.TableDataList(); | 1605 var o = new api.TableDataList(); |
| 1480 buildCounterTableDataList++; | 1606 buildCounterTableDataList++; |
| 1481 if (buildCounterTableDataList < 3) { | 1607 if (buildCounterTableDataList < 3) { |
| 1482 o.etag = "foo"; | 1608 o.etag = "foo"; |
| 1483 o.kind = "foo"; | 1609 o.kind = "foo"; |
| 1484 o.pageToken = "foo"; | 1610 o.pageToken = "foo"; |
| 1485 o.rows = buildUnnamed2674(); | 1611 o.rows = buildUnnamed2999(); |
| 1486 o.totalRows = "foo"; | 1612 o.totalRows = "foo"; |
| 1487 } | 1613 } |
| 1488 buildCounterTableDataList--; | 1614 buildCounterTableDataList--; |
| 1489 return o; | 1615 return o; |
| 1490 } | 1616 } |
| 1491 | 1617 |
| 1492 checkTableDataList(api.TableDataList o) { | 1618 checkTableDataList(api.TableDataList o) { |
| 1493 buildCounterTableDataList++; | 1619 buildCounterTableDataList++; |
| 1494 if (buildCounterTableDataList < 3) { | 1620 if (buildCounterTableDataList < 3) { |
| 1495 unittest.expect(o.etag, unittest.equals('foo')); | 1621 unittest.expect(o.etag, unittest.equals('foo')); |
| 1496 unittest.expect(o.kind, unittest.equals('foo')); | 1622 unittest.expect(o.kind, unittest.equals('foo')); |
| 1497 unittest.expect(o.pageToken, unittest.equals('foo')); | 1623 unittest.expect(o.pageToken, unittest.equals('foo')); |
| 1498 checkUnnamed2674(o.rows); | 1624 checkUnnamed2999(o.rows); |
| 1499 unittest.expect(o.totalRows, unittest.equals('foo')); | 1625 unittest.expect(o.totalRows, unittest.equals('foo')); |
| 1500 } | 1626 } |
| 1501 buildCounterTableDataList--; | 1627 buildCounterTableDataList--; |
| 1502 } | 1628 } |
| 1503 | 1629 |
| 1504 buildUnnamed2675() { | 1630 buildUnnamed3000() { |
| 1505 var o = new core.List<api.TableFieldSchema>(); | 1631 var o = new core.List<api.TableFieldSchema>(); |
| 1506 o.add(buildTableFieldSchema()); | 1632 o.add(buildTableFieldSchema()); |
| 1507 o.add(buildTableFieldSchema()); | 1633 o.add(buildTableFieldSchema()); |
| 1508 return o; | 1634 return o; |
| 1509 } | 1635 } |
| 1510 | 1636 |
| 1511 checkUnnamed2675(core.List<api.TableFieldSchema> o) { | 1637 checkUnnamed3000(core.List<api.TableFieldSchema> o) { |
| 1512 unittest.expect(o, unittest.hasLength(2)); | 1638 unittest.expect(o, unittest.hasLength(2)); |
| 1513 checkTableFieldSchema(o[0]); | 1639 checkTableFieldSchema(o[0]); |
| 1514 checkTableFieldSchema(o[1]); | 1640 checkTableFieldSchema(o[1]); |
| 1515 } | 1641 } |
| 1516 | 1642 |
| 1517 core.int buildCounterTableFieldSchema = 0; | 1643 core.int buildCounterTableFieldSchema = 0; |
| 1518 buildTableFieldSchema() { | 1644 buildTableFieldSchema() { |
| 1519 var o = new api.TableFieldSchema(); | 1645 var o = new api.TableFieldSchema(); |
| 1520 buildCounterTableFieldSchema++; | 1646 buildCounterTableFieldSchema++; |
| 1521 if (buildCounterTableFieldSchema < 3) { | 1647 if (buildCounterTableFieldSchema < 3) { |
| 1522 o.description = "foo"; | 1648 o.description = "foo"; |
| 1523 o.fields = buildUnnamed2675(); | 1649 o.fields = buildUnnamed3000(); |
| 1524 o.mode = "foo"; | 1650 o.mode = "foo"; |
| 1525 o.name = "foo"; | 1651 o.name = "foo"; |
| 1526 o.type = "foo"; | 1652 o.type = "foo"; |
| 1527 } | 1653 } |
| 1528 buildCounterTableFieldSchema--; | 1654 buildCounterTableFieldSchema--; |
| 1529 return o; | 1655 return o; |
| 1530 } | 1656 } |
| 1531 | 1657 |
| 1532 checkTableFieldSchema(api.TableFieldSchema o) { | 1658 checkTableFieldSchema(api.TableFieldSchema o) { |
| 1533 buildCounterTableFieldSchema++; | 1659 buildCounterTableFieldSchema++; |
| 1534 if (buildCounterTableFieldSchema < 3) { | 1660 if (buildCounterTableFieldSchema < 3) { |
| 1535 unittest.expect(o.description, unittest.equals('foo')); | 1661 unittest.expect(o.description, unittest.equals('foo')); |
| 1536 checkUnnamed2675(o.fields); | 1662 checkUnnamed3000(o.fields); |
| 1537 unittest.expect(o.mode, unittest.equals('foo')); | 1663 unittest.expect(o.mode, unittest.equals('foo')); |
| 1538 unittest.expect(o.name, unittest.equals('foo')); | 1664 unittest.expect(o.name, unittest.equals('foo')); |
| 1539 unittest.expect(o.type, unittest.equals('foo')); | 1665 unittest.expect(o.type, unittest.equals('foo')); |
| 1540 } | 1666 } |
| 1541 buildCounterTableFieldSchema--; | 1667 buildCounterTableFieldSchema--; |
| 1542 } | 1668 } |
| 1543 | 1669 |
| 1544 core.int buildCounterTableListTables = 0; | 1670 core.int buildCounterTableListTables = 0; |
| 1545 buildTableListTables() { | 1671 buildTableListTables() { |
| 1546 var o = new api.TableListTables(); | 1672 var o = new api.TableListTables(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 1561 if (buildCounterTableListTables < 3) { | 1687 if (buildCounterTableListTables < 3) { |
| 1562 unittest.expect(o.friendlyName, unittest.equals('foo')); | 1688 unittest.expect(o.friendlyName, unittest.equals('foo')); |
| 1563 unittest.expect(o.id, unittest.equals('foo')); | 1689 unittest.expect(o.id, unittest.equals('foo')); |
| 1564 unittest.expect(o.kind, unittest.equals('foo')); | 1690 unittest.expect(o.kind, unittest.equals('foo')); |
| 1565 checkTableReference(o.tableReference); | 1691 checkTableReference(o.tableReference); |
| 1566 unittest.expect(o.type, unittest.equals('foo')); | 1692 unittest.expect(o.type, unittest.equals('foo')); |
| 1567 } | 1693 } |
| 1568 buildCounterTableListTables--; | 1694 buildCounterTableListTables--; |
| 1569 } | 1695 } |
| 1570 | 1696 |
| 1571 buildUnnamed2676() { | 1697 buildUnnamed3001() { |
| 1572 var o = new core.List<api.TableListTables>(); | 1698 var o = new core.List<api.TableListTables>(); |
| 1573 o.add(buildTableListTables()); | 1699 o.add(buildTableListTables()); |
| 1574 o.add(buildTableListTables()); | 1700 o.add(buildTableListTables()); |
| 1575 return o; | 1701 return o; |
| 1576 } | 1702 } |
| 1577 | 1703 |
| 1578 checkUnnamed2676(core.List<api.TableListTables> o) { | 1704 checkUnnamed3001(core.List<api.TableListTables> o) { |
| 1579 unittest.expect(o, unittest.hasLength(2)); | 1705 unittest.expect(o, unittest.hasLength(2)); |
| 1580 checkTableListTables(o[0]); | 1706 checkTableListTables(o[0]); |
| 1581 checkTableListTables(o[1]); | 1707 checkTableListTables(o[1]); |
| 1582 } | 1708 } |
| 1583 | 1709 |
| 1584 core.int buildCounterTableList = 0; | 1710 core.int buildCounterTableList = 0; |
| 1585 buildTableList() { | 1711 buildTableList() { |
| 1586 var o = new api.TableList(); | 1712 var o = new api.TableList(); |
| 1587 buildCounterTableList++; | 1713 buildCounterTableList++; |
| 1588 if (buildCounterTableList < 3) { | 1714 if (buildCounterTableList < 3) { |
| 1589 o.etag = "foo"; | 1715 o.etag = "foo"; |
| 1590 o.kind = "foo"; | 1716 o.kind = "foo"; |
| 1591 o.nextPageToken = "foo"; | 1717 o.nextPageToken = "foo"; |
| 1592 o.tables = buildUnnamed2676(); | 1718 o.tables = buildUnnamed3001(); |
| 1593 o.totalItems = 42; | 1719 o.totalItems = 42; |
| 1594 } | 1720 } |
| 1595 buildCounterTableList--; | 1721 buildCounterTableList--; |
| 1596 return o; | 1722 return o; |
| 1597 } | 1723 } |
| 1598 | 1724 |
| 1599 checkTableList(api.TableList o) { | 1725 checkTableList(api.TableList o) { |
| 1600 buildCounterTableList++; | 1726 buildCounterTableList++; |
| 1601 if (buildCounterTableList < 3) { | 1727 if (buildCounterTableList < 3) { |
| 1602 unittest.expect(o.etag, unittest.equals('foo')); | 1728 unittest.expect(o.etag, unittest.equals('foo')); |
| 1603 unittest.expect(o.kind, unittest.equals('foo')); | 1729 unittest.expect(o.kind, unittest.equals('foo')); |
| 1604 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1730 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1605 checkUnnamed2676(o.tables); | 1731 checkUnnamed3001(o.tables); |
| 1606 unittest.expect(o.totalItems, unittest.equals(42)); | 1732 unittest.expect(o.totalItems, unittest.equals(42)); |
| 1607 } | 1733 } |
| 1608 buildCounterTableList--; | 1734 buildCounterTableList--; |
| 1609 } | 1735 } |
| 1610 | 1736 |
| 1611 core.int buildCounterTableReference = 0; | 1737 core.int buildCounterTableReference = 0; |
| 1612 buildTableReference() { | 1738 buildTableReference() { |
| 1613 var o = new api.TableReference(); | 1739 var o = new api.TableReference(); |
| 1614 buildCounterTableReference++; | 1740 buildCounterTableReference++; |
| 1615 if (buildCounterTableReference < 3) { | 1741 if (buildCounterTableReference < 3) { |
| 1616 o.datasetId = "foo"; | 1742 o.datasetId = "foo"; |
| 1617 o.projectId = "foo"; | 1743 o.projectId = "foo"; |
| 1618 o.tableId = "foo"; | 1744 o.tableId = "foo"; |
| 1619 } | 1745 } |
| 1620 buildCounterTableReference--; | 1746 buildCounterTableReference--; |
| 1621 return o; | 1747 return o; |
| 1622 } | 1748 } |
| 1623 | 1749 |
| 1624 checkTableReference(api.TableReference o) { | 1750 checkTableReference(api.TableReference o) { |
| 1625 buildCounterTableReference++; | 1751 buildCounterTableReference++; |
| 1626 if (buildCounterTableReference < 3) { | 1752 if (buildCounterTableReference < 3) { |
| 1627 unittest.expect(o.datasetId, unittest.equals('foo')); | 1753 unittest.expect(o.datasetId, unittest.equals('foo')); |
| 1628 unittest.expect(o.projectId, unittest.equals('foo')); | 1754 unittest.expect(o.projectId, unittest.equals('foo')); |
| 1629 unittest.expect(o.tableId, unittest.equals('foo')); | 1755 unittest.expect(o.tableId, unittest.equals('foo')); |
| 1630 } | 1756 } |
| 1631 buildCounterTableReference--; | 1757 buildCounterTableReference--; |
| 1632 } | 1758 } |
| 1633 | 1759 |
| 1634 buildUnnamed2677() { | 1760 buildUnnamed3002() { |
| 1635 var o = new core.List<api.TableCell>(); | 1761 var o = new core.List<api.TableCell>(); |
| 1636 o.add(buildTableCell()); | 1762 o.add(buildTableCell()); |
| 1637 o.add(buildTableCell()); | 1763 o.add(buildTableCell()); |
| 1638 return o; | 1764 return o; |
| 1639 } | 1765 } |
| 1640 | 1766 |
| 1641 checkUnnamed2677(core.List<api.TableCell> o) { | 1767 checkUnnamed3002(core.List<api.TableCell> o) { |
| 1642 unittest.expect(o, unittest.hasLength(2)); | 1768 unittest.expect(o, unittest.hasLength(2)); |
| 1643 checkTableCell(o[0]); | 1769 checkTableCell(o[0]); |
| 1644 checkTableCell(o[1]); | 1770 checkTableCell(o[1]); |
| 1645 } | 1771 } |
| 1646 | 1772 |
| 1647 core.int buildCounterTableRow = 0; | 1773 core.int buildCounterTableRow = 0; |
| 1648 buildTableRow() { | 1774 buildTableRow() { |
| 1649 var o = new api.TableRow(); | 1775 var o = new api.TableRow(); |
| 1650 buildCounterTableRow++; | 1776 buildCounterTableRow++; |
| 1651 if (buildCounterTableRow < 3) { | 1777 if (buildCounterTableRow < 3) { |
| 1652 o.f = buildUnnamed2677(); | 1778 o.f = buildUnnamed3002(); |
| 1653 } | 1779 } |
| 1654 buildCounterTableRow--; | 1780 buildCounterTableRow--; |
| 1655 return o; | 1781 return o; |
| 1656 } | 1782 } |
| 1657 | 1783 |
| 1658 checkTableRow(api.TableRow o) { | 1784 checkTableRow(api.TableRow o) { |
| 1659 buildCounterTableRow++; | 1785 buildCounterTableRow++; |
| 1660 if (buildCounterTableRow < 3) { | 1786 if (buildCounterTableRow < 3) { |
| 1661 checkUnnamed2677(o.f); | 1787 checkUnnamed3002(o.f); |
| 1662 } | 1788 } |
| 1663 buildCounterTableRow--; | 1789 buildCounterTableRow--; |
| 1664 } | 1790 } |
| 1665 | 1791 |
| 1666 buildUnnamed2678() { | 1792 buildUnnamed3003() { |
| 1667 var o = new core.List<api.TableFieldSchema>(); | 1793 var o = new core.List<api.TableFieldSchema>(); |
| 1668 o.add(buildTableFieldSchema()); | 1794 o.add(buildTableFieldSchema()); |
| 1669 o.add(buildTableFieldSchema()); | 1795 o.add(buildTableFieldSchema()); |
| 1670 return o; | 1796 return o; |
| 1671 } | 1797 } |
| 1672 | 1798 |
| 1673 checkUnnamed2678(core.List<api.TableFieldSchema> o) { | 1799 checkUnnamed3003(core.List<api.TableFieldSchema> o) { |
| 1674 unittest.expect(o, unittest.hasLength(2)); | 1800 unittest.expect(o, unittest.hasLength(2)); |
| 1675 checkTableFieldSchema(o[0]); | 1801 checkTableFieldSchema(o[0]); |
| 1676 checkTableFieldSchema(o[1]); | 1802 checkTableFieldSchema(o[1]); |
| 1677 } | 1803 } |
| 1678 | 1804 |
| 1679 core.int buildCounterTableSchema = 0; | 1805 core.int buildCounterTableSchema = 0; |
| 1680 buildTableSchema() { | 1806 buildTableSchema() { |
| 1681 var o = new api.TableSchema(); | 1807 var o = new api.TableSchema(); |
| 1682 buildCounterTableSchema++; | 1808 buildCounterTableSchema++; |
| 1683 if (buildCounterTableSchema < 3) { | 1809 if (buildCounterTableSchema < 3) { |
| 1684 o.fields = buildUnnamed2678(); | 1810 o.fields = buildUnnamed3003(); |
| 1685 } | 1811 } |
| 1686 buildCounterTableSchema--; | 1812 buildCounterTableSchema--; |
| 1687 return o; | 1813 return o; |
| 1688 } | 1814 } |
| 1689 | 1815 |
| 1690 checkTableSchema(api.TableSchema o) { | 1816 checkTableSchema(api.TableSchema o) { |
| 1691 buildCounterTableSchema++; | 1817 buildCounterTableSchema++; |
| 1692 if (buildCounterTableSchema < 3) { | 1818 if (buildCounterTableSchema < 3) { |
| 1693 checkUnnamed2678(o.fields); | 1819 checkUnnamed3003(o.fields); |
| 1694 } | 1820 } |
| 1695 buildCounterTableSchema--; | 1821 buildCounterTableSchema--; |
| 1696 } | 1822 } |
| 1697 | 1823 |
| 1698 core.int buildCounterUserDefinedFunctionResource = 0; | 1824 core.int buildCounterUserDefinedFunctionResource = 0; |
| 1699 buildUserDefinedFunctionResource() { | 1825 buildUserDefinedFunctionResource() { |
| 1700 var o = new api.UserDefinedFunctionResource(); | 1826 var o = new api.UserDefinedFunctionResource(); |
| 1701 buildCounterUserDefinedFunctionResource++; | 1827 buildCounterUserDefinedFunctionResource++; |
| 1702 if (buildCounterUserDefinedFunctionResource < 3) { | 1828 if (buildCounterUserDefinedFunctionResource < 3) { |
| 1703 o.inlineCode = "foo"; | 1829 o.inlineCode = "foo"; |
| 1704 o.resourceUri = "foo"; | 1830 o.resourceUri = "foo"; |
| 1705 } | 1831 } |
| 1706 buildCounterUserDefinedFunctionResource--; | 1832 buildCounterUserDefinedFunctionResource--; |
| 1707 return o; | 1833 return o; |
| 1708 } | 1834 } |
| 1709 | 1835 |
| 1710 checkUserDefinedFunctionResource(api.UserDefinedFunctionResource o) { | 1836 checkUserDefinedFunctionResource(api.UserDefinedFunctionResource o) { |
| 1711 buildCounterUserDefinedFunctionResource++; | 1837 buildCounterUserDefinedFunctionResource++; |
| 1712 if (buildCounterUserDefinedFunctionResource < 3) { | 1838 if (buildCounterUserDefinedFunctionResource < 3) { |
| 1713 unittest.expect(o.inlineCode, unittest.equals('foo')); | 1839 unittest.expect(o.inlineCode, unittest.equals('foo')); |
| 1714 unittest.expect(o.resourceUri, unittest.equals('foo')); | 1840 unittest.expect(o.resourceUri, unittest.equals('foo')); |
| 1715 } | 1841 } |
| 1716 buildCounterUserDefinedFunctionResource--; | 1842 buildCounterUserDefinedFunctionResource--; |
| 1717 } | 1843 } |
| 1718 | 1844 |
| 1719 buildUnnamed2679() { | 1845 buildUnnamed3004() { |
| 1720 var o = new core.List<api.UserDefinedFunctionResource>(); | 1846 var o = new core.List<api.UserDefinedFunctionResource>(); |
| 1721 o.add(buildUserDefinedFunctionResource()); | 1847 o.add(buildUserDefinedFunctionResource()); |
| 1722 o.add(buildUserDefinedFunctionResource()); | 1848 o.add(buildUserDefinedFunctionResource()); |
| 1723 return o; | 1849 return o; |
| 1724 } | 1850 } |
| 1725 | 1851 |
| 1726 checkUnnamed2679(core.List<api.UserDefinedFunctionResource> o) { | 1852 checkUnnamed3004(core.List<api.UserDefinedFunctionResource> o) { |
| 1727 unittest.expect(o, unittest.hasLength(2)); | 1853 unittest.expect(o, unittest.hasLength(2)); |
| 1728 checkUserDefinedFunctionResource(o[0]); | 1854 checkUserDefinedFunctionResource(o[0]); |
| 1729 checkUserDefinedFunctionResource(o[1]); | 1855 checkUserDefinedFunctionResource(o[1]); |
| 1730 } | 1856 } |
| 1731 | 1857 |
| 1732 core.int buildCounterViewDefinition = 0; | 1858 core.int buildCounterViewDefinition = 0; |
| 1733 buildViewDefinition() { | 1859 buildViewDefinition() { |
| 1734 var o = new api.ViewDefinition(); | 1860 var o = new api.ViewDefinition(); |
| 1735 buildCounterViewDefinition++; | 1861 buildCounterViewDefinition++; |
| 1736 if (buildCounterViewDefinition < 3) { | 1862 if (buildCounterViewDefinition < 3) { |
| 1737 o.query = "foo"; | 1863 o.query = "foo"; |
| 1738 o.userDefinedFunctionResources = buildUnnamed2679(); | 1864 o.userDefinedFunctionResources = buildUnnamed3004(); |
| 1739 } | 1865 } |
| 1740 buildCounterViewDefinition--; | 1866 buildCounterViewDefinition--; |
| 1741 return o; | 1867 return o; |
| 1742 } | 1868 } |
| 1743 | 1869 |
| 1744 checkViewDefinition(api.ViewDefinition o) { | 1870 checkViewDefinition(api.ViewDefinition o) { |
| 1745 buildCounterViewDefinition++; | 1871 buildCounterViewDefinition++; |
| 1746 if (buildCounterViewDefinition < 3) { | 1872 if (buildCounterViewDefinition < 3) { |
| 1747 unittest.expect(o.query, unittest.equals('foo')); | 1873 unittest.expect(o.query, unittest.equals('foo')); |
| 1748 checkUnnamed2679(o.userDefinedFunctionResources); | 1874 checkUnnamed3004(o.userDefinedFunctionResources); |
| 1749 } | 1875 } |
| 1750 buildCounterViewDefinition--; | 1876 buildCounterViewDefinition--; |
| 1751 } | 1877 } |
| 1752 | 1878 |
| 1753 buildUnnamed2680() { | 1879 buildUnnamed3005() { |
| 1754 var o = new core.List<core.String>(); | 1880 var o = new core.List<core.String>(); |
| 1755 o.add("foo"); | 1881 o.add("foo"); |
| 1756 o.add("foo"); | 1882 o.add("foo"); |
| 1757 return o; | 1883 return o; |
| 1758 } | 1884 } |
| 1759 | 1885 |
| 1760 checkUnnamed2680(core.List<core.String> o) { | 1886 checkUnnamed3005(core.List<core.String> o) { |
| 1761 unittest.expect(o, unittest.hasLength(2)); | 1887 unittest.expect(o, unittest.hasLength(2)); |
| 1762 unittest.expect(o[0], unittest.equals('foo')); | 1888 unittest.expect(o[0], unittest.equals('foo')); |
| 1763 unittest.expect(o[1], unittest.equals('foo')); | 1889 unittest.expect(o[1], unittest.equals('foo')); |
| 1764 } | 1890 } |
| 1765 | 1891 |
| 1766 | 1892 |
| 1767 main() { | 1893 main() { |
| 1894 unittest.group("obj-schema-BigtableColumn", () { |
| 1895 unittest.test("to-json--from-json", () { |
| 1896 var o = buildBigtableColumn(); |
| 1897 var od = new api.BigtableColumn.fromJson(o.toJson()); |
| 1898 checkBigtableColumn(od); |
| 1899 }); |
| 1900 }); |
| 1901 |
| 1902 |
| 1903 unittest.group("obj-schema-BigtableColumnFamily", () { |
| 1904 unittest.test("to-json--from-json", () { |
| 1905 var o = buildBigtableColumnFamily(); |
| 1906 var od = new api.BigtableColumnFamily.fromJson(o.toJson()); |
| 1907 checkBigtableColumnFamily(od); |
| 1908 }); |
| 1909 }); |
| 1910 |
| 1911 |
| 1912 unittest.group("obj-schema-BigtableOptions", () { |
| 1913 unittest.test("to-json--from-json", () { |
| 1914 var o = buildBigtableOptions(); |
| 1915 var od = new api.BigtableOptions.fromJson(o.toJson()); |
| 1916 checkBigtableOptions(od); |
| 1917 }); |
| 1918 }); |
| 1919 |
| 1920 |
| 1768 unittest.group("obj-schema-CsvOptions", () { | 1921 unittest.group("obj-schema-CsvOptions", () { |
| 1769 unittest.test("to-json--from-json", () { | 1922 unittest.test("to-json--from-json", () { |
| 1770 var o = buildCsvOptions(); | 1923 var o = buildCsvOptions(); |
| 1771 var od = new api.CsvOptions.fromJson(o.toJson()); | 1924 var od = new api.CsvOptions.fromJson(o.toJson()); |
| 1772 checkCsvOptions(od); | 1925 checkCsvOptions(od); |
| 1773 }); | 1926 }); |
| 1774 }); | 1927 }); |
| 1775 | 1928 |
| 1776 | 1929 |
| 1777 unittest.group("obj-schema-DatasetAccess", () { | 1930 unittest.group("obj-schema-DatasetAccess", () { |
| (...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2798 | 2951 |
| 2799 unittest.test("method--list", () { | 2952 unittest.test("method--list", () { |
| 2800 | 2953 |
| 2801 var mock = new HttpServerMock(); | 2954 var mock = new HttpServerMock(); |
| 2802 api.JobsResourceApi res = new api.BigqueryApi(mock).jobs; | 2955 api.JobsResourceApi res = new api.BigqueryApi(mock).jobs; |
| 2803 var arg_projectId = "foo"; | 2956 var arg_projectId = "foo"; |
| 2804 var arg_allUsers = true; | 2957 var arg_allUsers = true; |
| 2805 var arg_maxResults = 42; | 2958 var arg_maxResults = 42; |
| 2806 var arg_pageToken = "foo"; | 2959 var arg_pageToken = "foo"; |
| 2807 var arg_projection = "foo"; | 2960 var arg_projection = "foo"; |
| 2808 var arg_stateFilter = buildUnnamed2680(); | 2961 var arg_stateFilter = buildUnnamed3005(); |
| 2809 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2962 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2810 var path = (req.url).path; | 2963 var path = (req.url).path; |
| 2811 var pathOffset = 0; | 2964 var pathOffset = 0; |
| 2812 var index; | 2965 var index; |
| 2813 var subPart; | 2966 var subPart; |
| 2814 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2967 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2815 pathOffset += 1; | 2968 pathOffset += 1; |
| 2816 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("bigquery/v2/")); | 2969 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("bigquery/v2/")); |
| 2817 pathOffset += 12; | 2970 pathOffset += 12; |
| 2818 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); | 2971 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("projects/")); |
| (...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3519 res.update(arg_request, arg_projectId, arg_datasetId, arg_tableId).then(un
ittest.expectAsync(((api.Table response) { | 3672 res.update(arg_request, arg_projectId, arg_datasetId, arg_tableId).then(un
ittest.expectAsync(((api.Table response) { |
| 3520 checkTable(response); | 3673 checkTable(response); |
| 3521 }))); | 3674 }))); |
| 3522 }); | 3675 }); |
| 3523 | 3676 |
| 3524 }); | 3677 }); |
| 3525 | 3678 |
| 3526 | 3679 |
| 3527 } | 3680 } |
| 3528 | 3681 |
| OLD | NEW |