| OLD | NEW |
| 1 library googleapis.youtubeAnalytics.v1.test; | 1 library googleapis.youtubeAnalytics.v1.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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 checkBatchReportOutputs(api.BatchReportOutputs o) { | 67 checkBatchReportOutputs(api.BatchReportOutputs o) { |
| 68 buildCounterBatchReportOutputs++; | 68 buildCounterBatchReportOutputs++; |
| 69 if (buildCounterBatchReportOutputs < 3) { | 69 if (buildCounterBatchReportOutputs < 3) { |
| 70 unittest.expect(o.downloadUrl, unittest.equals('foo')); | 70 unittest.expect(o.downloadUrl, unittest.equals('foo')); |
| 71 unittest.expect(o.format, unittest.equals('foo')); | 71 unittest.expect(o.format, unittest.equals('foo')); |
| 72 unittest.expect(o.type, unittest.equals('foo')); | 72 unittest.expect(o.type, unittest.equals('foo')); |
| 73 } | 73 } |
| 74 buildCounterBatchReportOutputs--; | 74 buildCounterBatchReportOutputs--; |
| 75 } | 75 } |
| 76 | 76 |
| 77 buildUnnamed162() { | 77 buildUnnamed2249() { |
| 78 var o = new core.List<api.BatchReportOutputs>(); | 78 var o = new core.List<api.BatchReportOutputs>(); |
| 79 o.add(buildBatchReportOutputs()); | 79 o.add(buildBatchReportOutputs()); |
| 80 o.add(buildBatchReportOutputs()); | 80 o.add(buildBatchReportOutputs()); |
| 81 return o; | 81 return o; |
| 82 } | 82 } |
| 83 | 83 |
| 84 checkUnnamed162(core.List<api.BatchReportOutputs> o) { | 84 checkUnnamed2249(core.List<api.BatchReportOutputs> o) { |
| 85 unittest.expect(o, unittest.hasLength(2)); | 85 unittest.expect(o, unittest.hasLength(2)); |
| 86 checkBatchReportOutputs(o[0]); | 86 checkBatchReportOutputs(o[0]); |
| 87 checkBatchReportOutputs(o[1]); | 87 checkBatchReportOutputs(o[1]); |
| 88 } | 88 } |
| 89 | 89 |
| 90 core.int buildCounterBatchReportTimeSpan = 0; | 90 core.int buildCounterBatchReportTimeSpan = 0; |
| 91 buildBatchReportTimeSpan() { | 91 buildBatchReportTimeSpan() { |
| 92 var o = new api.BatchReportTimeSpan(); | 92 var o = new api.BatchReportTimeSpan(); |
| 93 buildCounterBatchReportTimeSpan++; | 93 buildCounterBatchReportTimeSpan++; |
| 94 if (buildCounterBatchReportTimeSpan < 3) { | 94 if (buildCounterBatchReportTimeSpan < 3) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 108 buildCounterBatchReportTimeSpan--; | 108 buildCounterBatchReportTimeSpan--; |
| 109 } | 109 } |
| 110 | 110 |
| 111 core.int buildCounterBatchReport = 0; | 111 core.int buildCounterBatchReport = 0; |
| 112 buildBatchReport() { | 112 buildBatchReport() { |
| 113 var o = new api.BatchReport(); | 113 var o = new api.BatchReport(); |
| 114 buildCounterBatchReport++; | 114 buildCounterBatchReport++; |
| 115 if (buildCounterBatchReport < 3) { | 115 if (buildCounterBatchReport < 3) { |
| 116 o.id = "foo"; | 116 o.id = "foo"; |
| 117 o.kind = "foo"; | 117 o.kind = "foo"; |
| 118 o.outputs = buildUnnamed162(); | 118 o.outputs = buildUnnamed2249(); |
| 119 o.reportId = "foo"; | 119 o.reportId = "foo"; |
| 120 o.timeSpan = buildBatchReportTimeSpan(); | 120 o.timeSpan = buildBatchReportTimeSpan(); |
| 121 o.timeUpdated = core.DateTime.parse("2002-02-27T14:01:02"); | 121 o.timeUpdated = core.DateTime.parse("2002-02-27T14:01:02"); |
| 122 } | 122 } |
| 123 buildCounterBatchReport--; | 123 buildCounterBatchReport--; |
| 124 return o; | 124 return o; |
| 125 } | 125 } |
| 126 | 126 |
| 127 checkBatchReport(api.BatchReport o) { | 127 checkBatchReport(api.BatchReport o) { |
| 128 buildCounterBatchReport++; | 128 buildCounterBatchReport++; |
| 129 if (buildCounterBatchReport < 3) { | 129 if (buildCounterBatchReport < 3) { |
| 130 unittest.expect(o.id, unittest.equals('foo')); | 130 unittest.expect(o.id, unittest.equals('foo')); |
| 131 unittest.expect(o.kind, unittest.equals('foo')); | 131 unittest.expect(o.kind, unittest.equals('foo')); |
| 132 checkUnnamed162(o.outputs); | 132 checkUnnamed2249(o.outputs); |
| 133 unittest.expect(o.reportId, unittest.equals('foo')); | 133 unittest.expect(o.reportId, unittest.equals('foo')); |
| 134 checkBatchReportTimeSpan(o.timeSpan); | 134 checkBatchReportTimeSpan(o.timeSpan); |
| 135 unittest.expect(o.timeUpdated, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); | 135 unittest.expect(o.timeUpdated, unittest.equals(core.DateTime.parse("2002-02-
27T14:01:02"))); |
| 136 } | 136 } |
| 137 buildCounterBatchReport--; | 137 buildCounterBatchReport--; |
| 138 } | 138 } |
| 139 | 139 |
| 140 core.int buildCounterBatchReportDefinition = 0; | 140 core.int buildCounterBatchReportDefinition = 0; |
| 141 buildBatchReportDefinition() { | 141 buildBatchReportDefinition() { |
| 142 var o = new api.BatchReportDefinition(); | 142 var o = new api.BatchReportDefinition(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 157 if (buildCounterBatchReportDefinition < 3) { | 157 if (buildCounterBatchReportDefinition < 3) { |
| 158 unittest.expect(o.id, unittest.equals('foo')); | 158 unittest.expect(o.id, unittest.equals('foo')); |
| 159 unittest.expect(o.kind, unittest.equals('foo')); | 159 unittest.expect(o.kind, unittest.equals('foo')); |
| 160 unittest.expect(o.name, unittest.equals('foo')); | 160 unittest.expect(o.name, unittest.equals('foo')); |
| 161 unittest.expect(o.status, unittest.equals('foo')); | 161 unittest.expect(o.status, unittest.equals('foo')); |
| 162 unittest.expect(o.type, unittest.equals('foo')); | 162 unittest.expect(o.type, unittest.equals('foo')); |
| 163 } | 163 } |
| 164 buildCounterBatchReportDefinition--; | 164 buildCounterBatchReportDefinition--; |
| 165 } | 165 } |
| 166 | 166 |
| 167 buildUnnamed163() { | 167 buildUnnamed2250() { |
| 168 var o = new core.List<api.BatchReportDefinition>(); | 168 var o = new core.List<api.BatchReportDefinition>(); |
| 169 o.add(buildBatchReportDefinition()); | 169 o.add(buildBatchReportDefinition()); |
| 170 o.add(buildBatchReportDefinition()); | 170 o.add(buildBatchReportDefinition()); |
| 171 return o; | 171 return o; |
| 172 } | 172 } |
| 173 | 173 |
| 174 checkUnnamed163(core.List<api.BatchReportDefinition> o) { | 174 checkUnnamed2250(core.List<api.BatchReportDefinition> o) { |
| 175 unittest.expect(o, unittest.hasLength(2)); | 175 unittest.expect(o, unittest.hasLength(2)); |
| 176 checkBatchReportDefinition(o[0]); | 176 checkBatchReportDefinition(o[0]); |
| 177 checkBatchReportDefinition(o[1]); | 177 checkBatchReportDefinition(o[1]); |
| 178 } | 178 } |
| 179 | 179 |
| 180 core.int buildCounterBatchReportDefinitionList = 0; | 180 core.int buildCounterBatchReportDefinitionList = 0; |
| 181 buildBatchReportDefinitionList() { | 181 buildBatchReportDefinitionList() { |
| 182 var o = new api.BatchReportDefinitionList(); | 182 var o = new api.BatchReportDefinitionList(); |
| 183 buildCounterBatchReportDefinitionList++; | 183 buildCounterBatchReportDefinitionList++; |
| 184 if (buildCounterBatchReportDefinitionList < 3) { | 184 if (buildCounterBatchReportDefinitionList < 3) { |
| 185 o.items = buildUnnamed163(); | 185 o.items = buildUnnamed2250(); |
| 186 o.kind = "foo"; | 186 o.kind = "foo"; |
| 187 } | 187 } |
| 188 buildCounterBatchReportDefinitionList--; | 188 buildCounterBatchReportDefinitionList--; |
| 189 return o; | 189 return o; |
| 190 } | 190 } |
| 191 | 191 |
| 192 checkBatchReportDefinitionList(api.BatchReportDefinitionList o) { | 192 checkBatchReportDefinitionList(api.BatchReportDefinitionList o) { |
| 193 buildCounterBatchReportDefinitionList++; | 193 buildCounterBatchReportDefinitionList++; |
| 194 if (buildCounterBatchReportDefinitionList < 3) { | 194 if (buildCounterBatchReportDefinitionList < 3) { |
| 195 checkUnnamed163(o.items); | 195 checkUnnamed2250(o.items); |
| 196 unittest.expect(o.kind, unittest.equals('foo')); | 196 unittest.expect(o.kind, unittest.equals('foo')); |
| 197 } | 197 } |
| 198 buildCounterBatchReportDefinitionList--; | 198 buildCounterBatchReportDefinitionList--; |
| 199 } | 199 } |
| 200 | 200 |
| 201 buildUnnamed164() { | 201 buildUnnamed2251() { |
| 202 var o = new core.List<api.BatchReport>(); | 202 var o = new core.List<api.BatchReport>(); |
| 203 o.add(buildBatchReport()); | 203 o.add(buildBatchReport()); |
| 204 o.add(buildBatchReport()); | 204 o.add(buildBatchReport()); |
| 205 return o; | 205 return o; |
| 206 } | 206 } |
| 207 | 207 |
| 208 checkUnnamed164(core.List<api.BatchReport> o) { | 208 checkUnnamed2251(core.List<api.BatchReport> o) { |
| 209 unittest.expect(o, unittest.hasLength(2)); | 209 unittest.expect(o, unittest.hasLength(2)); |
| 210 checkBatchReport(o[0]); | 210 checkBatchReport(o[0]); |
| 211 checkBatchReport(o[1]); | 211 checkBatchReport(o[1]); |
| 212 } | 212 } |
| 213 | 213 |
| 214 core.int buildCounterBatchReportList = 0; | 214 core.int buildCounterBatchReportList = 0; |
| 215 buildBatchReportList() { | 215 buildBatchReportList() { |
| 216 var o = new api.BatchReportList(); | 216 var o = new api.BatchReportList(); |
| 217 buildCounterBatchReportList++; | 217 buildCounterBatchReportList++; |
| 218 if (buildCounterBatchReportList < 3) { | 218 if (buildCounterBatchReportList < 3) { |
| 219 o.items = buildUnnamed164(); | 219 o.items = buildUnnamed2251(); |
| 220 o.kind = "foo"; | 220 o.kind = "foo"; |
| 221 } | 221 } |
| 222 buildCounterBatchReportList--; | 222 buildCounterBatchReportList--; |
| 223 return o; | 223 return o; |
| 224 } | 224 } |
| 225 | 225 |
| 226 checkBatchReportList(api.BatchReportList o) { | 226 checkBatchReportList(api.BatchReportList o) { |
| 227 buildCounterBatchReportList++; | 227 buildCounterBatchReportList++; |
| 228 if (buildCounterBatchReportList < 3) { | 228 if (buildCounterBatchReportList < 3) { |
| 229 checkUnnamed164(o.items); | 229 checkUnnamed2251(o.items); |
| 230 unittest.expect(o.kind, unittest.equals('foo')); | 230 unittest.expect(o.kind, unittest.equals('foo')); |
| 231 } | 231 } |
| 232 buildCounterBatchReportList--; | 232 buildCounterBatchReportList--; |
| 233 } | 233 } |
| 234 | 234 |
| 235 core.int buildCounterGroupContentDetails = 0; | 235 core.int buildCounterGroupContentDetails = 0; |
| 236 buildGroupContentDetails() { | 236 buildGroupContentDetails() { |
| 237 var o = new api.GroupContentDetails(); | 237 var o = new api.GroupContentDetails(); |
| 238 buildCounterGroupContentDetails++; | 238 buildCounterGroupContentDetails++; |
| 239 if (buildCounterGroupContentDetails < 3) { | 239 if (buildCounterGroupContentDetails < 3) { |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 if (buildCounterGroupItem < 3) { | 342 if (buildCounterGroupItem < 3) { |
| 343 unittest.expect(o.etag, unittest.equals('foo')); | 343 unittest.expect(o.etag, unittest.equals('foo')); |
| 344 unittest.expect(o.groupId, unittest.equals('foo')); | 344 unittest.expect(o.groupId, unittest.equals('foo')); |
| 345 unittest.expect(o.id, unittest.equals('foo')); | 345 unittest.expect(o.id, unittest.equals('foo')); |
| 346 unittest.expect(o.kind, unittest.equals('foo')); | 346 unittest.expect(o.kind, unittest.equals('foo')); |
| 347 checkGroupItemResource(o.resource); | 347 checkGroupItemResource(o.resource); |
| 348 } | 348 } |
| 349 buildCounterGroupItem--; | 349 buildCounterGroupItem--; |
| 350 } | 350 } |
| 351 | 351 |
| 352 buildUnnamed165() { | 352 buildUnnamed2252() { |
| 353 var o = new core.List<api.GroupItem>(); | 353 var o = new core.List<api.GroupItem>(); |
| 354 o.add(buildGroupItem()); | 354 o.add(buildGroupItem()); |
| 355 o.add(buildGroupItem()); | 355 o.add(buildGroupItem()); |
| 356 return o; | 356 return o; |
| 357 } | 357 } |
| 358 | 358 |
| 359 checkUnnamed165(core.List<api.GroupItem> o) { | 359 checkUnnamed2252(core.List<api.GroupItem> o) { |
| 360 unittest.expect(o, unittest.hasLength(2)); | 360 unittest.expect(o, unittest.hasLength(2)); |
| 361 checkGroupItem(o[0]); | 361 checkGroupItem(o[0]); |
| 362 checkGroupItem(o[1]); | 362 checkGroupItem(o[1]); |
| 363 } | 363 } |
| 364 | 364 |
| 365 core.int buildCounterGroupItemListResponse = 0; | 365 core.int buildCounterGroupItemListResponse = 0; |
| 366 buildGroupItemListResponse() { | 366 buildGroupItemListResponse() { |
| 367 var o = new api.GroupItemListResponse(); | 367 var o = new api.GroupItemListResponse(); |
| 368 buildCounterGroupItemListResponse++; | 368 buildCounterGroupItemListResponse++; |
| 369 if (buildCounterGroupItemListResponse < 3) { | 369 if (buildCounterGroupItemListResponse < 3) { |
| 370 o.etag = "foo"; | 370 o.etag = "foo"; |
| 371 o.items = buildUnnamed165(); | 371 o.items = buildUnnamed2252(); |
| 372 o.kind = "foo"; | 372 o.kind = "foo"; |
| 373 } | 373 } |
| 374 buildCounterGroupItemListResponse--; | 374 buildCounterGroupItemListResponse--; |
| 375 return o; | 375 return o; |
| 376 } | 376 } |
| 377 | 377 |
| 378 checkGroupItemListResponse(api.GroupItemListResponse o) { | 378 checkGroupItemListResponse(api.GroupItemListResponse o) { |
| 379 buildCounterGroupItemListResponse++; | 379 buildCounterGroupItemListResponse++; |
| 380 if (buildCounterGroupItemListResponse < 3) { | 380 if (buildCounterGroupItemListResponse < 3) { |
| 381 unittest.expect(o.etag, unittest.equals('foo')); | 381 unittest.expect(o.etag, unittest.equals('foo')); |
| 382 checkUnnamed165(o.items); | 382 checkUnnamed2252(o.items); |
| 383 unittest.expect(o.kind, unittest.equals('foo')); | 383 unittest.expect(o.kind, unittest.equals('foo')); |
| 384 } | 384 } |
| 385 buildCounterGroupItemListResponse--; | 385 buildCounterGroupItemListResponse--; |
| 386 } | 386 } |
| 387 | 387 |
| 388 buildUnnamed166() { | 388 buildUnnamed2253() { |
| 389 var o = new core.List<api.Group>(); | 389 var o = new core.List<api.Group>(); |
| 390 o.add(buildGroup()); | 390 o.add(buildGroup()); |
| 391 o.add(buildGroup()); | 391 o.add(buildGroup()); |
| 392 return o; | 392 return o; |
| 393 } | 393 } |
| 394 | 394 |
| 395 checkUnnamed166(core.List<api.Group> o) { | 395 checkUnnamed2253(core.List<api.Group> o) { |
| 396 unittest.expect(o, unittest.hasLength(2)); | 396 unittest.expect(o, unittest.hasLength(2)); |
| 397 checkGroup(o[0]); | 397 checkGroup(o[0]); |
| 398 checkGroup(o[1]); | 398 checkGroup(o[1]); |
| 399 } | 399 } |
| 400 | 400 |
| 401 core.int buildCounterGroupListResponse = 0; | 401 core.int buildCounterGroupListResponse = 0; |
| 402 buildGroupListResponse() { | 402 buildGroupListResponse() { |
| 403 var o = new api.GroupListResponse(); | 403 var o = new api.GroupListResponse(); |
| 404 buildCounterGroupListResponse++; | 404 buildCounterGroupListResponse++; |
| 405 if (buildCounterGroupListResponse < 3) { | 405 if (buildCounterGroupListResponse < 3) { |
| 406 o.etag = "foo"; | 406 o.etag = "foo"; |
| 407 o.items = buildUnnamed166(); | 407 o.items = buildUnnamed2253(); |
| 408 o.kind = "foo"; | 408 o.kind = "foo"; |
| 409 } | 409 } |
| 410 buildCounterGroupListResponse--; | 410 buildCounterGroupListResponse--; |
| 411 return o; | 411 return o; |
| 412 } | 412 } |
| 413 | 413 |
| 414 checkGroupListResponse(api.GroupListResponse o) { | 414 checkGroupListResponse(api.GroupListResponse o) { |
| 415 buildCounterGroupListResponse++; | 415 buildCounterGroupListResponse++; |
| 416 if (buildCounterGroupListResponse < 3) { | 416 if (buildCounterGroupListResponse < 3) { |
| 417 unittest.expect(o.etag, unittest.equals('foo')); | 417 unittest.expect(o.etag, unittest.equals('foo')); |
| 418 checkUnnamed166(o.items); | 418 checkUnnamed2253(o.items); |
| 419 unittest.expect(o.kind, unittest.equals('foo')); | 419 unittest.expect(o.kind, unittest.equals('foo')); |
| 420 } | 420 } |
| 421 buildCounterGroupListResponse--; | 421 buildCounterGroupListResponse--; |
| 422 } | 422 } |
| 423 | 423 |
| 424 core.int buildCounterResultTableColumnHeaders = 0; | 424 core.int buildCounterResultTableColumnHeaders = 0; |
| 425 buildResultTableColumnHeaders() { | 425 buildResultTableColumnHeaders() { |
| 426 var o = new api.ResultTableColumnHeaders(); | 426 var o = new api.ResultTableColumnHeaders(); |
| 427 buildCounterResultTableColumnHeaders++; | 427 buildCounterResultTableColumnHeaders++; |
| 428 if (buildCounterResultTableColumnHeaders < 3) { | 428 if (buildCounterResultTableColumnHeaders < 3) { |
| 429 o.columnType = "foo"; | 429 o.columnType = "foo"; |
| 430 o.dataType = "foo"; | 430 o.dataType = "foo"; |
| 431 o.name = "foo"; | 431 o.name = "foo"; |
| 432 } | 432 } |
| 433 buildCounterResultTableColumnHeaders--; | 433 buildCounterResultTableColumnHeaders--; |
| 434 return o; | 434 return o; |
| 435 } | 435 } |
| 436 | 436 |
| 437 checkResultTableColumnHeaders(api.ResultTableColumnHeaders o) { | 437 checkResultTableColumnHeaders(api.ResultTableColumnHeaders o) { |
| 438 buildCounterResultTableColumnHeaders++; | 438 buildCounterResultTableColumnHeaders++; |
| 439 if (buildCounterResultTableColumnHeaders < 3) { | 439 if (buildCounterResultTableColumnHeaders < 3) { |
| 440 unittest.expect(o.columnType, unittest.equals('foo')); | 440 unittest.expect(o.columnType, unittest.equals('foo')); |
| 441 unittest.expect(o.dataType, unittest.equals('foo')); | 441 unittest.expect(o.dataType, unittest.equals('foo')); |
| 442 unittest.expect(o.name, unittest.equals('foo')); | 442 unittest.expect(o.name, unittest.equals('foo')); |
| 443 } | 443 } |
| 444 buildCounterResultTableColumnHeaders--; | 444 buildCounterResultTableColumnHeaders--; |
| 445 } | 445 } |
| 446 | 446 |
| 447 buildUnnamed167() { | 447 buildUnnamed2254() { |
| 448 var o = new core.List<api.ResultTableColumnHeaders>(); | 448 var o = new core.List<api.ResultTableColumnHeaders>(); |
| 449 o.add(buildResultTableColumnHeaders()); | 449 o.add(buildResultTableColumnHeaders()); |
| 450 o.add(buildResultTableColumnHeaders()); | 450 o.add(buildResultTableColumnHeaders()); |
| 451 return o; | 451 return o; |
| 452 } | 452 } |
| 453 | 453 |
| 454 checkUnnamed167(core.List<api.ResultTableColumnHeaders> o) { | 454 checkUnnamed2254(core.List<api.ResultTableColumnHeaders> o) { |
| 455 unittest.expect(o, unittest.hasLength(2)); | 455 unittest.expect(o, unittest.hasLength(2)); |
| 456 checkResultTableColumnHeaders(o[0]); | 456 checkResultTableColumnHeaders(o[0]); |
| 457 checkResultTableColumnHeaders(o[1]); | 457 checkResultTableColumnHeaders(o[1]); |
| 458 } | 458 } |
| 459 | 459 |
| 460 buildUnnamed168() { | 460 buildUnnamed2255() { |
| 461 var o = new core.List<core.Object>(); | 461 var o = new core.List<core.Object>(); |
| 462 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 462 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 463 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 463 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 464 return o; | 464 return o; |
| 465 } | 465 } |
| 466 | 466 |
| 467 checkUnnamed168(core.List<core.Object> o) { | 467 checkUnnamed2255(core.List<core.Object> o) { |
| 468 unittest.expect(o, unittest.hasLength(2)); | 468 unittest.expect(o, unittest.hasLength(2)); |
| 469 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(
3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u
nittest.equals('foo')); | 469 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(
3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u
nittest.equals('foo')); |
| 470 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(
3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u
nittest.equals('foo')); | 470 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(
3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u
nittest.equals('foo')); |
| 471 } | 471 } |
| 472 | 472 |
| 473 buildUnnamed169() { | 473 buildUnnamed2256() { |
| 474 var o = new core.List<core.List<core.Object>>(); | 474 var o = new core.List<core.List<core.Object>>(); |
| 475 o.add(buildUnnamed168()); | 475 o.add(buildUnnamed2255()); |
| 476 o.add(buildUnnamed168()); | 476 o.add(buildUnnamed2255()); |
| 477 return o; | 477 return o; |
| 478 } | 478 } |
| 479 | 479 |
| 480 checkUnnamed169(core.List<core.List<core.Object>> o) { | 480 checkUnnamed2256(core.List<core.List<core.Object>> o) { |
| 481 unittest.expect(o, unittest.hasLength(2)); | 481 unittest.expect(o, unittest.hasLength(2)); |
| 482 checkUnnamed168(o[0]); | 482 checkUnnamed2255(o[0]); |
| 483 checkUnnamed168(o[1]); | 483 checkUnnamed2255(o[1]); |
| 484 } | 484 } |
| 485 | 485 |
| 486 core.int buildCounterResultTable = 0; | 486 core.int buildCounterResultTable = 0; |
| 487 buildResultTable() { | 487 buildResultTable() { |
| 488 var o = new api.ResultTable(); | 488 var o = new api.ResultTable(); |
| 489 buildCounterResultTable++; | 489 buildCounterResultTable++; |
| 490 if (buildCounterResultTable < 3) { | 490 if (buildCounterResultTable < 3) { |
| 491 o.columnHeaders = buildUnnamed167(); | 491 o.columnHeaders = buildUnnamed2254(); |
| 492 o.kind = "foo"; | 492 o.kind = "foo"; |
| 493 o.rows = buildUnnamed169(); | 493 o.rows = buildUnnamed2256(); |
| 494 } | 494 } |
| 495 buildCounterResultTable--; | 495 buildCounterResultTable--; |
| 496 return o; | 496 return o; |
| 497 } | 497 } |
| 498 | 498 |
| 499 checkResultTable(api.ResultTable o) { | 499 checkResultTable(api.ResultTable o) { |
| 500 buildCounterResultTable++; | 500 buildCounterResultTable++; |
| 501 if (buildCounterResultTable < 3) { | 501 if (buildCounterResultTable < 3) { |
| 502 checkUnnamed167(o.columnHeaders); | 502 checkUnnamed2254(o.columnHeaders); |
| 503 unittest.expect(o.kind, unittest.equals('foo')); | 503 unittest.expect(o.kind, unittest.equals('foo')); |
| 504 checkUnnamed169(o.rows); | 504 checkUnnamed2256(o.rows); |
| 505 } | 505 } |
| 506 buildCounterResultTable--; | 506 buildCounterResultTable--; |
| 507 } | 507 } |
| 508 | 508 |
| 509 | 509 |
| 510 main() { | 510 main() { |
| 511 unittest.group("obj-schema-BatchReportOutputs", () { | 511 unittest.group("obj-schema-BatchReportOutputs", () { |
| 512 unittest.test("to-json--from-json", () { | 512 unittest.test("to-json--from-json", () { |
| 513 var o = buildBatchReportOutputs(); | 513 var o = buildBatchReportOutputs(); |
| 514 var od = new api.BatchReportOutputs.fromJson(o.toJson()); | 514 var od = new api.BatchReportOutputs.fromJson(o.toJson()); |
| (...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1166 res.query(arg_ids, arg_start_date, arg_end_date, arg_metrics, currency: ar
g_currency, dimensions: arg_dimensions, filters: arg_filters, max_results: arg_m
ax_results, sort: arg_sort, start_index: arg_start_index).then(unittest.expectAs
ync(((api.ResultTable response) { | 1166 res.query(arg_ids, arg_start_date, arg_end_date, arg_metrics, currency: ar
g_currency, dimensions: arg_dimensions, filters: arg_filters, max_results: arg_m
ax_results, sort: arg_sort, start_index: arg_start_index).then(unittest.expectAs
ync(((api.ResultTable response) { |
| 1167 checkResultTable(response); | 1167 checkResultTable(response); |
| 1168 }))); | 1168 }))); |
| 1169 }); | 1169 }); |
| 1170 | 1170 |
| 1171 }); | 1171 }); |
| 1172 | 1172 |
| 1173 | 1173 |
| 1174 } | 1174 } |
| 1175 | 1175 |
| OLD | NEW |