| OLD | NEW |
| 1 library googleapis.fusiontables.v1.test; | 1 library googleapis.fusiontables.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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 unittest.expect(o.columnId, unittest.equals(42)); | 125 unittest.expect(o.columnId, unittest.equals(42)); |
| 126 unittest.expect(o.description, unittest.equals('foo')); | 126 unittest.expect(o.description, unittest.equals('foo')); |
| 127 unittest.expect(o.graphPredicate, unittest.equals('foo')); | 127 unittest.expect(o.graphPredicate, unittest.equals('foo')); |
| 128 unittest.expect(o.kind, unittest.equals('foo')); | 128 unittest.expect(o.kind, unittest.equals('foo')); |
| 129 unittest.expect(o.name, unittest.equals('foo')); | 129 unittest.expect(o.name, unittest.equals('foo')); |
| 130 unittest.expect(o.type, unittest.equals('foo')); | 130 unittest.expect(o.type, unittest.equals('foo')); |
| 131 } | 131 } |
| 132 buildCounterColumn--; | 132 buildCounterColumn--; |
| 133 } | 133 } |
| 134 | 134 |
| 135 buildUnnamed2927() { | 135 buildUnnamed3018() { |
| 136 var o = new core.List<api.Column>(); | 136 var o = new core.List<api.Column>(); |
| 137 o.add(buildColumn()); | 137 o.add(buildColumn()); |
| 138 o.add(buildColumn()); | 138 o.add(buildColumn()); |
| 139 return o; | 139 return o; |
| 140 } | 140 } |
| 141 | 141 |
| 142 checkUnnamed2927(core.List<api.Column> o) { | 142 checkUnnamed3018(core.List<api.Column> o) { |
| 143 unittest.expect(o, unittest.hasLength(2)); | 143 unittest.expect(o, unittest.hasLength(2)); |
| 144 checkColumn(o[0]); | 144 checkColumn(o[0]); |
| 145 checkColumn(o[1]); | 145 checkColumn(o[1]); |
| 146 } | 146 } |
| 147 | 147 |
| 148 core.int buildCounterColumnList = 0; | 148 core.int buildCounterColumnList = 0; |
| 149 buildColumnList() { | 149 buildColumnList() { |
| 150 var o = new api.ColumnList(); | 150 var o = new api.ColumnList(); |
| 151 buildCounterColumnList++; | 151 buildCounterColumnList++; |
| 152 if (buildCounterColumnList < 3) { | 152 if (buildCounterColumnList < 3) { |
| 153 o.items = buildUnnamed2927(); | 153 o.items = buildUnnamed3018(); |
| 154 o.kind = "foo"; | 154 o.kind = "foo"; |
| 155 o.nextPageToken = "foo"; | 155 o.nextPageToken = "foo"; |
| 156 o.totalItems = 42; | 156 o.totalItems = 42; |
| 157 } | 157 } |
| 158 buildCounterColumnList--; | 158 buildCounterColumnList--; |
| 159 return o; | 159 return o; |
| 160 } | 160 } |
| 161 | 161 |
| 162 checkColumnList(api.ColumnList o) { | 162 checkColumnList(api.ColumnList o) { |
| 163 buildCounterColumnList++; | 163 buildCounterColumnList++; |
| 164 if (buildCounterColumnList < 3) { | 164 if (buildCounterColumnList < 3) { |
| 165 checkUnnamed2927(o.items); | 165 checkUnnamed3018(o.items); |
| 166 unittest.expect(o.kind, unittest.equals('foo')); | 166 unittest.expect(o.kind, unittest.equals('foo')); |
| 167 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 167 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 168 unittest.expect(o.totalItems, unittest.equals(42)); | 168 unittest.expect(o.totalItems, unittest.equals(42)); |
| 169 } | 169 } |
| 170 buildCounterColumnList--; | 170 buildCounterColumnList--; |
| 171 } | 171 } |
| 172 | 172 |
| 173 buildUnnamed2928() { | 173 buildUnnamed3019() { |
| 174 var o = new core.List<core.Object>(); | 174 var o = new core.List<core.Object>(); |
| 175 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 175 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 176 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 176 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 177 return o; | 177 return o; |
| 178 } | 178 } |
| 179 | 179 |
| 180 checkUnnamed2928(core.List<core.Object> o) { | 180 checkUnnamed3019(core.List<core.Object> o) { |
| 181 unittest.expect(o, unittest.hasLength(2)); | 181 unittest.expect(o, unittest.hasLength(2)); |
| 182 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')); | 182 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')); |
| 183 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')); | 183 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')); |
| 184 } | 184 } |
| 185 | 185 |
| 186 core.int buildCounterGeometry = 0; | 186 core.int buildCounterGeometry = 0; |
| 187 buildGeometry() { | 187 buildGeometry() { |
| 188 var o = new api.Geometry(); | 188 var o = new api.Geometry(); |
| 189 buildCounterGeometry++; | 189 buildCounterGeometry++; |
| 190 if (buildCounterGeometry < 3) { | 190 if (buildCounterGeometry < 3) { |
| 191 o.geometries = buildUnnamed2928(); | 191 o.geometries = buildUnnamed3019(); |
| 192 o.geometry = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 192 o.geometry = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 193 o.type = "foo"; | 193 o.type = "foo"; |
| 194 } | 194 } |
| 195 buildCounterGeometry--; | 195 buildCounterGeometry--; |
| 196 return o; | 196 return o; |
| 197 } | 197 } |
| 198 | 198 |
| 199 checkGeometry(api.Geometry o) { | 199 checkGeometry(api.Geometry o) { |
| 200 buildCounterGeometry++; | 200 buildCounterGeometry++; |
| 201 if (buildCounterGeometry < 3) { | 201 if (buildCounterGeometry < 3) { |
| 202 checkUnnamed2928(o.geometries); | 202 checkUnnamed3019(o.geometries); |
| 203 var casted3 = (o.geometry) as core.Map; unittest.expect(casted3, unittest.ha
sLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unitt
est.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["str
ing"], unittest.equals('foo')); | 203 var casted3 = (o.geometry) as core.Map; unittest.expect(casted3, unittest.ha
sLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unitt
est.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["str
ing"], unittest.equals('foo')); |
| 204 unittest.expect(o.type, unittest.equals('foo')); | 204 unittest.expect(o.type, unittest.equals('foo')); |
| 205 } | 205 } |
| 206 buildCounterGeometry--; | 206 buildCounterGeometry--; |
| 207 } | 207 } |
| 208 | 208 |
| 209 core.int buildCounterImport = 0; | 209 core.int buildCounterImport = 0; |
| 210 buildImport() { | 210 buildImport() { |
| 211 var o = new api.Import(); | 211 var o = new api.Import(); |
| 212 buildCounterImport++; | 212 buildCounterImport++; |
| 213 if (buildCounterImport < 3) { | 213 if (buildCounterImport < 3) { |
| 214 o.kind = "foo"; | 214 o.kind = "foo"; |
| 215 o.numRowsReceived = "foo"; | 215 o.numRowsReceived = "foo"; |
| 216 } | 216 } |
| 217 buildCounterImport--; | 217 buildCounterImport--; |
| 218 return o; | 218 return o; |
| 219 } | 219 } |
| 220 | 220 |
| 221 checkImport(api.Import o) { | 221 checkImport(api.Import o) { |
| 222 buildCounterImport++; | 222 buildCounterImport++; |
| 223 if (buildCounterImport < 3) { | 223 if (buildCounterImport < 3) { |
| 224 unittest.expect(o.kind, unittest.equals('foo')); | 224 unittest.expect(o.kind, unittest.equals('foo')); |
| 225 unittest.expect(o.numRowsReceived, unittest.equals('foo')); | 225 unittest.expect(o.numRowsReceived, unittest.equals('foo')); |
| 226 } | 226 } |
| 227 buildCounterImport--; | 227 buildCounterImport--; |
| 228 } | 228 } |
| 229 | 229 |
| 230 buildUnnamed2929() { | 230 buildUnnamed3020() { |
| 231 var o = new core.List<core.double>(); | 231 var o = new core.List<core.double>(); |
| 232 o.add(42.0); | 232 o.add(42.0); |
| 233 o.add(42.0); | 233 o.add(42.0); |
| 234 return o; | 234 return o; |
| 235 } | 235 } |
| 236 | 236 |
| 237 checkUnnamed2929(core.List<core.double> o) { | 237 checkUnnamed3020(core.List<core.double> o) { |
| 238 unittest.expect(o, unittest.hasLength(2)); | 238 unittest.expect(o, unittest.hasLength(2)); |
| 239 unittest.expect(o[0], unittest.equals(42.0)); | 239 unittest.expect(o[0], unittest.equals(42.0)); |
| 240 unittest.expect(o[1], unittest.equals(42.0)); | 240 unittest.expect(o[1], unittest.equals(42.0)); |
| 241 } | 241 } |
| 242 | 242 |
| 243 buildUnnamed2930() { | 243 buildUnnamed3021() { |
| 244 var o = new core.List<core.List<core.double>>(); | 244 var o = new core.List<core.List<core.double>>(); |
| 245 o.add(buildUnnamed2929()); | 245 o.add(buildUnnamed3020()); |
| 246 o.add(buildUnnamed2929()); | 246 o.add(buildUnnamed3020()); |
| 247 return o; | 247 return o; |
| 248 } | 248 } |
| 249 | 249 |
| 250 checkUnnamed2930(core.List<core.List<core.double>> o) { | 250 checkUnnamed3021(core.List<core.List<core.double>> o) { |
| 251 unittest.expect(o, unittest.hasLength(2)); | 251 unittest.expect(o, unittest.hasLength(2)); |
| 252 checkUnnamed2929(o[0]); | 252 checkUnnamed3020(o[0]); |
| 253 checkUnnamed2929(o[1]); | 253 checkUnnamed3020(o[1]); |
| 254 } | 254 } |
| 255 | 255 |
| 256 core.int buildCounterLine = 0; | 256 core.int buildCounterLine = 0; |
| 257 buildLine() { | 257 buildLine() { |
| 258 var o = new api.Line(); | 258 var o = new api.Line(); |
| 259 buildCounterLine++; | 259 buildCounterLine++; |
| 260 if (buildCounterLine < 3) { | 260 if (buildCounterLine < 3) { |
| 261 o.coordinates = buildUnnamed2930(); | 261 o.coordinates = buildUnnamed3021(); |
| 262 o.type = "foo"; | 262 o.type = "foo"; |
| 263 } | 263 } |
| 264 buildCounterLine--; | 264 buildCounterLine--; |
| 265 return o; | 265 return o; |
| 266 } | 266 } |
| 267 | 267 |
| 268 checkLine(api.Line o) { | 268 checkLine(api.Line o) { |
| 269 buildCounterLine++; | 269 buildCounterLine++; |
| 270 if (buildCounterLine < 3) { | 270 if (buildCounterLine < 3) { |
| 271 checkUnnamed2930(o.coordinates); | 271 checkUnnamed3021(o.coordinates); |
| 272 unittest.expect(o.type, unittest.equals('foo')); | 272 unittest.expect(o.type, unittest.equals('foo')); |
| 273 } | 273 } |
| 274 buildCounterLine--; | 274 buildCounterLine--; |
| 275 } | 275 } |
| 276 | 276 |
| 277 core.int buildCounterLineStyle = 0; | 277 core.int buildCounterLineStyle = 0; |
| 278 buildLineStyle() { | 278 buildLineStyle() { |
| 279 var o = new api.LineStyle(); | 279 var o = new api.LineStyle(); |
| 280 buildCounterLineStyle++; | 280 buildCounterLineStyle++; |
| 281 if (buildCounterLineStyle < 3) { | 281 if (buildCounterLineStyle < 3) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 294 if (buildCounterLineStyle < 3) { | 294 if (buildCounterLineStyle < 3) { |
| 295 unittest.expect(o.strokeColor, unittest.equals('foo')); | 295 unittest.expect(o.strokeColor, unittest.equals('foo')); |
| 296 checkStyleFunction(o.strokeColorStyler); | 296 checkStyleFunction(o.strokeColorStyler); |
| 297 unittest.expect(o.strokeOpacity, unittest.equals(42.0)); | 297 unittest.expect(o.strokeOpacity, unittest.equals(42.0)); |
| 298 unittest.expect(o.strokeWeight, unittest.equals(42)); | 298 unittest.expect(o.strokeWeight, unittest.equals(42)); |
| 299 checkStyleFunction(o.strokeWeightStyler); | 299 checkStyleFunction(o.strokeWeightStyler); |
| 300 } | 300 } |
| 301 buildCounterLineStyle--; | 301 buildCounterLineStyle--; |
| 302 } | 302 } |
| 303 | 303 |
| 304 buildUnnamed2931() { | 304 buildUnnamed3022() { |
| 305 var o = new core.List<core.double>(); | 305 var o = new core.List<core.double>(); |
| 306 o.add(42.0); | 306 o.add(42.0); |
| 307 o.add(42.0); | 307 o.add(42.0); |
| 308 return o; | 308 return o; |
| 309 } | 309 } |
| 310 | 310 |
| 311 checkUnnamed2931(core.List<core.double> o) { | 311 checkUnnamed3022(core.List<core.double> o) { |
| 312 unittest.expect(o, unittest.hasLength(2)); | 312 unittest.expect(o, unittest.hasLength(2)); |
| 313 unittest.expect(o[0], unittest.equals(42.0)); | 313 unittest.expect(o[0], unittest.equals(42.0)); |
| 314 unittest.expect(o[1], unittest.equals(42.0)); | 314 unittest.expect(o[1], unittest.equals(42.0)); |
| 315 } | 315 } |
| 316 | 316 |
| 317 core.int buildCounterPoint = 0; | 317 core.int buildCounterPoint = 0; |
| 318 buildPoint() { | 318 buildPoint() { |
| 319 var o = new api.Point(); | 319 var o = new api.Point(); |
| 320 buildCounterPoint++; | 320 buildCounterPoint++; |
| 321 if (buildCounterPoint < 3) { | 321 if (buildCounterPoint < 3) { |
| 322 o.coordinates = buildUnnamed2931(); | 322 o.coordinates = buildUnnamed3022(); |
| 323 o.type = "foo"; | 323 o.type = "foo"; |
| 324 } | 324 } |
| 325 buildCounterPoint--; | 325 buildCounterPoint--; |
| 326 return o; | 326 return o; |
| 327 } | 327 } |
| 328 | 328 |
| 329 checkPoint(api.Point o) { | 329 checkPoint(api.Point o) { |
| 330 buildCounterPoint++; | 330 buildCounterPoint++; |
| 331 if (buildCounterPoint < 3) { | 331 if (buildCounterPoint < 3) { |
| 332 checkUnnamed2931(o.coordinates); | 332 checkUnnamed3022(o.coordinates); |
| 333 unittest.expect(o.type, unittest.equals('foo')); | 333 unittest.expect(o.type, unittest.equals('foo')); |
| 334 } | 334 } |
| 335 buildCounterPoint--; | 335 buildCounterPoint--; |
| 336 } | 336 } |
| 337 | 337 |
| 338 core.int buildCounterPointStyle = 0; | 338 core.int buildCounterPointStyle = 0; |
| 339 buildPointStyle() { | 339 buildPointStyle() { |
| 340 var o = new api.PointStyle(); | 340 var o = new api.PointStyle(); |
| 341 buildCounterPointStyle++; | 341 buildCounterPointStyle++; |
| 342 if (buildCounterPointStyle < 3) { | 342 if (buildCounterPointStyle < 3) { |
| 343 o.iconName = "foo"; | 343 o.iconName = "foo"; |
| 344 o.iconStyler = buildStyleFunction(); | 344 o.iconStyler = buildStyleFunction(); |
| 345 } | 345 } |
| 346 buildCounterPointStyle--; | 346 buildCounterPointStyle--; |
| 347 return o; | 347 return o; |
| 348 } | 348 } |
| 349 | 349 |
| 350 checkPointStyle(api.PointStyle o) { | 350 checkPointStyle(api.PointStyle o) { |
| 351 buildCounterPointStyle++; | 351 buildCounterPointStyle++; |
| 352 if (buildCounterPointStyle < 3) { | 352 if (buildCounterPointStyle < 3) { |
| 353 unittest.expect(o.iconName, unittest.equals('foo')); | 353 unittest.expect(o.iconName, unittest.equals('foo')); |
| 354 checkStyleFunction(o.iconStyler); | 354 checkStyleFunction(o.iconStyler); |
| 355 } | 355 } |
| 356 buildCounterPointStyle--; | 356 buildCounterPointStyle--; |
| 357 } | 357 } |
| 358 | 358 |
| 359 buildUnnamed2932() { | 359 buildUnnamed3023() { |
| 360 var o = new core.List<core.double>(); | 360 var o = new core.List<core.double>(); |
| 361 o.add(42.0); | 361 o.add(42.0); |
| 362 o.add(42.0); | 362 o.add(42.0); |
| 363 return o; | 363 return o; |
| 364 } | 364 } |
| 365 | 365 |
| 366 checkUnnamed2932(core.List<core.double> o) { | 366 checkUnnamed3023(core.List<core.double> o) { |
| 367 unittest.expect(o, unittest.hasLength(2)); | 367 unittest.expect(o, unittest.hasLength(2)); |
| 368 unittest.expect(o[0], unittest.equals(42.0)); | 368 unittest.expect(o[0], unittest.equals(42.0)); |
| 369 unittest.expect(o[1], unittest.equals(42.0)); | 369 unittest.expect(o[1], unittest.equals(42.0)); |
| 370 } | 370 } |
| 371 | 371 |
| 372 buildUnnamed2933() { | 372 buildUnnamed3024() { |
| 373 var o = new core.List<core.List<core.double>>(); | 373 var o = new core.List<core.List<core.double>>(); |
| 374 o.add(buildUnnamed2932()); | 374 o.add(buildUnnamed3023()); |
| 375 o.add(buildUnnamed2932()); | 375 o.add(buildUnnamed3023()); |
| 376 return o; | 376 return o; |
| 377 } | 377 } |
| 378 | 378 |
| 379 checkUnnamed2933(core.List<core.List<core.double>> o) { | 379 checkUnnamed3024(core.List<core.List<core.double>> o) { |
| 380 unittest.expect(o, unittest.hasLength(2)); | 380 unittest.expect(o, unittest.hasLength(2)); |
| 381 checkUnnamed2932(o[0]); | 381 checkUnnamed3023(o[0]); |
| 382 checkUnnamed2932(o[1]); | 382 checkUnnamed3023(o[1]); |
| 383 } | 383 } |
| 384 | 384 |
| 385 buildUnnamed2934() { | 385 buildUnnamed3025() { |
| 386 var o = new core.List<core.List<core.List<core.double>>>(); | 386 var o = new core.List<core.List<core.List<core.double>>>(); |
| 387 o.add(buildUnnamed2933()); | 387 o.add(buildUnnamed3024()); |
| 388 o.add(buildUnnamed2933()); | 388 o.add(buildUnnamed3024()); |
| 389 return o; | 389 return o; |
| 390 } | 390 } |
| 391 | 391 |
| 392 checkUnnamed2934(core.List<core.List<core.List<core.double>>> o) { | 392 checkUnnamed3025(core.List<core.List<core.List<core.double>>> o) { |
| 393 unittest.expect(o, unittest.hasLength(2)); | 393 unittest.expect(o, unittest.hasLength(2)); |
| 394 checkUnnamed2933(o[0]); | 394 checkUnnamed3024(o[0]); |
| 395 checkUnnamed2933(o[1]); | 395 checkUnnamed3024(o[1]); |
| 396 } | 396 } |
| 397 | 397 |
| 398 core.int buildCounterPolygon = 0; | 398 core.int buildCounterPolygon = 0; |
| 399 buildPolygon() { | 399 buildPolygon() { |
| 400 var o = new api.Polygon(); | 400 var o = new api.Polygon(); |
| 401 buildCounterPolygon++; | 401 buildCounterPolygon++; |
| 402 if (buildCounterPolygon < 3) { | 402 if (buildCounterPolygon < 3) { |
| 403 o.coordinates = buildUnnamed2934(); | 403 o.coordinates = buildUnnamed3025(); |
| 404 o.type = "foo"; | 404 o.type = "foo"; |
| 405 } | 405 } |
| 406 buildCounterPolygon--; | 406 buildCounterPolygon--; |
| 407 return o; | 407 return o; |
| 408 } | 408 } |
| 409 | 409 |
| 410 checkPolygon(api.Polygon o) { | 410 checkPolygon(api.Polygon o) { |
| 411 buildCounterPolygon++; | 411 buildCounterPolygon++; |
| 412 if (buildCounterPolygon < 3) { | 412 if (buildCounterPolygon < 3) { |
| 413 checkUnnamed2934(o.coordinates); | 413 checkUnnamed3025(o.coordinates); |
| 414 unittest.expect(o.type, unittest.equals('foo')); | 414 unittest.expect(o.type, unittest.equals('foo')); |
| 415 } | 415 } |
| 416 buildCounterPolygon--; | 416 buildCounterPolygon--; |
| 417 } | 417 } |
| 418 | 418 |
| 419 core.int buildCounterPolygonStyle = 0; | 419 core.int buildCounterPolygonStyle = 0; |
| 420 buildPolygonStyle() { | 420 buildPolygonStyle() { |
| 421 var o = new api.PolygonStyle(); | 421 var o = new api.PolygonStyle(); |
| 422 buildCounterPolygonStyle++; | 422 buildCounterPolygonStyle++; |
| 423 if (buildCounterPolygonStyle < 3) { | 423 if (buildCounterPolygonStyle < 3) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 442 unittest.expect(o.fillOpacity, unittest.equals(42.0)); | 442 unittest.expect(o.fillOpacity, unittest.equals(42.0)); |
| 443 unittest.expect(o.strokeColor, unittest.equals('foo')); | 443 unittest.expect(o.strokeColor, unittest.equals('foo')); |
| 444 checkStyleFunction(o.strokeColorStyler); | 444 checkStyleFunction(o.strokeColorStyler); |
| 445 unittest.expect(o.strokeOpacity, unittest.equals(42.0)); | 445 unittest.expect(o.strokeOpacity, unittest.equals(42.0)); |
| 446 unittest.expect(o.strokeWeight, unittest.equals(42)); | 446 unittest.expect(o.strokeWeight, unittest.equals(42)); |
| 447 checkStyleFunction(o.strokeWeightStyler); | 447 checkStyleFunction(o.strokeWeightStyler); |
| 448 } | 448 } |
| 449 buildCounterPolygonStyle--; | 449 buildCounterPolygonStyle--; |
| 450 } | 450 } |
| 451 | 451 |
| 452 buildUnnamed2935() { | 452 buildUnnamed3026() { |
| 453 var o = new core.List<core.String>(); | 453 var o = new core.List<core.String>(); |
| 454 o.add("foo"); | 454 o.add("foo"); |
| 455 o.add("foo"); | 455 o.add("foo"); |
| 456 return o; | 456 return o; |
| 457 } | 457 } |
| 458 | 458 |
| 459 checkUnnamed2935(core.List<core.String> o) { | 459 checkUnnamed3026(core.List<core.String> o) { |
| 460 unittest.expect(o, unittest.hasLength(2)); | 460 unittest.expect(o, unittest.hasLength(2)); |
| 461 unittest.expect(o[0], unittest.equals('foo')); | 461 unittest.expect(o[0], unittest.equals('foo')); |
| 462 unittest.expect(o[1], unittest.equals('foo')); | 462 unittest.expect(o[1], unittest.equals('foo')); |
| 463 } | 463 } |
| 464 | 464 |
| 465 buildUnnamed2936() { | 465 buildUnnamed3027() { |
| 466 var o = new core.List<core.Object>(); | 466 var o = new core.List<core.Object>(); |
| 467 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 467 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 468 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 468 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 469 return o; | 469 return o; |
| 470 } | 470 } |
| 471 | 471 |
| 472 checkUnnamed2936(core.List<core.Object> o) { | 472 checkUnnamed3027(core.List<core.Object> o) { |
| 473 unittest.expect(o, unittest.hasLength(2)); | 473 unittest.expect(o, unittest.hasLength(2)); |
| 474 var casted4 = (o[0]) as core.Map; unittest.expect(casted4, unittest.hasLength(
3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], u
nittest.equals('foo')); | 474 var casted4 = (o[0]) as core.Map; unittest.expect(casted4, unittest.hasLength(
3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], u
nittest.equals('foo')); |
| 475 var casted5 = (o[1]) as core.Map; unittest.expect(casted5, unittest.hasLength(
3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], u
nittest.equals('foo')); | 475 var casted5 = (o[1]) as core.Map; unittest.expect(casted5, unittest.hasLength(
3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], u
nittest.equals('foo')); |
| 476 } | 476 } |
| 477 | 477 |
| 478 buildUnnamed2937() { | 478 buildUnnamed3028() { |
| 479 var o = new core.List<core.List<core.Object>>(); | 479 var o = new core.List<core.List<core.Object>>(); |
| 480 o.add(buildUnnamed2936()); | 480 o.add(buildUnnamed3027()); |
| 481 o.add(buildUnnamed2936()); | 481 o.add(buildUnnamed3027()); |
| 482 return o; | 482 return o; |
| 483 } | 483 } |
| 484 | 484 |
| 485 checkUnnamed2937(core.List<core.List<core.Object>> o) { | 485 checkUnnamed3028(core.List<core.List<core.Object>> o) { |
| 486 unittest.expect(o, unittest.hasLength(2)); | 486 unittest.expect(o, unittest.hasLength(2)); |
| 487 checkUnnamed2936(o[0]); | 487 checkUnnamed3027(o[0]); |
| 488 checkUnnamed2936(o[1]); | 488 checkUnnamed3027(o[1]); |
| 489 } | 489 } |
| 490 | 490 |
| 491 core.int buildCounterSqlresponse = 0; | 491 core.int buildCounterSqlresponse = 0; |
| 492 buildSqlresponse() { | 492 buildSqlresponse() { |
| 493 var o = new api.Sqlresponse(); | 493 var o = new api.Sqlresponse(); |
| 494 buildCounterSqlresponse++; | 494 buildCounterSqlresponse++; |
| 495 if (buildCounterSqlresponse < 3) { | 495 if (buildCounterSqlresponse < 3) { |
| 496 o.columns = buildUnnamed2935(); | 496 o.columns = buildUnnamed3026(); |
| 497 o.kind = "foo"; | 497 o.kind = "foo"; |
| 498 o.rows = buildUnnamed2937(); | 498 o.rows = buildUnnamed3028(); |
| 499 } | 499 } |
| 500 buildCounterSqlresponse--; | 500 buildCounterSqlresponse--; |
| 501 return o; | 501 return o; |
| 502 } | 502 } |
| 503 | 503 |
| 504 checkSqlresponse(api.Sqlresponse o) { | 504 checkSqlresponse(api.Sqlresponse o) { |
| 505 buildCounterSqlresponse++; | 505 buildCounterSqlresponse++; |
| 506 if (buildCounterSqlresponse < 3) { | 506 if (buildCounterSqlresponse < 3) { |
| 507 checkUnnamed2935(o.columns); | 507 checkUnnamed3026(o.columns); |
| 508 unittest.expect(o.kind, unittest.equals('foo')); | 508 unittest.expect(o.kind, unittest.equals('foo')); |
| 509 checkUnnamed2937(o.rows); | 509 checkUnnamed3028(o.rows); |
| 510 } | 510 } |
| 511 buildCounterSqlresponse--; | 511 buildCounterSqlresponse--; |
| 512 } | 512 } |
| 513 | 513 |
| 514 buildUnnamed2938() { | 514 buildUnnamed3029() { |
| 515 var o = new core.List<api.Bucket>(); | 515 var o = new core.List<api.Bucket>(); |
| 516 o.add(buildBucket()); | 516 o.add(buildBucket()); |
| 517 o.add(buildBucket()); | 517 o.add(buildBucket()); |
| 518 return o; | 518 return o; |
| 519 } | 519 } |
| 520 | 520 |
| 521 checkUnnamed2938(core.List<api.Bucket> o) { | 521 checkUnnamed3029(core.List<api.Bucket> o) { |
| 522 unittest.expect(o, unittest.hasLength(2)); | 522 unittest.expect(o, unittest.hasLength(2)); |
| 523 checkBucket(o[0]); | 523 checkBucket(o[0]); |
| 524 checkBucket(o[1]); | 524 checkBucket(o[1]); |
| 525 } | 525 } |
| 526 | 526 |
| 527 core.int buildCounterStyleFunctionGradientColors = 0; | 527 core.int buildCounterStyleFunctionGradientColors = 0; |
| 528 buildStyleFunctionGradientColors() { | 528 buildStyleFunctionGradientColors() { |
| 529 var o = new api.StyleFunctionGradientColors(); | 529 var o = new api.StyleFunctionGradientColors(); |
| 530 buildCounterStyleFunctionGradientColors++; | 530 buildCounterStyleFunctionGradientColors++; |
| 531 if (buildCounterStyleFunctionGradientColors < 3) { | 531 if (buildCounterStyleFunctionGradientColors < 3) { |
| 532 o.color = "foo"; | 532 o.color = "foo"; |
| 533 o.opacity = 42.0; | 533 o.opacity = 42.0; |
| 534 } | 534 } |
| 535 buildCounterStyleFunctionGradientColors--; | 535 buildCounterStyleFunctionGradientColors--; |
| 536 return o; | 536 return o; |
| 537 } | 537 } |
| 538 | 538 |
| 539 checkStyleFunctionGradientColors(api.StyleFunctionGradientColors o) { | 539 checkStyleFunctionGradientColors(api.StyleFunctionGradientColors o) { |
| 540 buildCounterStyleFunctionGradientColors++; | 540 buildCounterStyleFunctionGradientColors++; |
| 541 if (buildCounterStyleFunctionGradientColors < 3) { | 541 if (buildCounterStyleFunctionGradientColors < 3) { |
| 542 unittest.expect(o.color, unittest.equals('foo')); | 542 unittest.expect(o.color, unittest.equals('foo')); |
| 543 unittest.expect(o.opacity, unittest.equals(42.0)); | 543 unittest.expect(o.opacity, unittest.equals(42.0)); |
| 544 } | 544 } |
| 545 buildCounterStyleFunctionGradientColors--; | 545 buildCounterStyleFunctionGradientColors--; |
| 546 } | 546 } |
| 547 | 547 |
| 548 buildUnnamed2939() { | 548 buildUnnamed3030() { |
| 549 var o = new core.List<api.StyleFunctionGradientColors>(); | 549 var o = new core.List<api.StyleFunctionGradientColors>(); |
| 550 o.add(buildStyleFunctionGradientColors()); | 550 o.add(buildStyleFunctionGradientColors()); |
| 551 o.add(buildStyleFunctionGradientColors()); | 551 o.add(buildStyleFunctionGradientColors()); |
| 552 return o; | 552 return o; |
| 553 } | 553 } |
| 554 | 554 |
| 555 checkUnnamed2939(core.List<api.StyleFunctionGradientColors> o) { | 555 checkUnnamed3030(core.List<api.StyleFunctionGradientColors> o) { |
| 556 unittest.expect(o, unittest.hasLength(2)); | 556 unittest.expect(o, unittest.hasLength(2)); |
| 557 checkStyleFunctionGradientColors(o[0]); | 557 checkStyleFunctionGradientColors(o[0]); |
| 558 checkStyleFunctionGradientColors(o[1]); | 558 checkStyleFunctionGradientColors(o[1]); |
| 559 } | 559 } |
| 560 | 560 |
| 561 core.int buildCounterStyleFunctionGradient = 0; | 561 core.int buildCounterStyleFunctionGradient = 0; |
| 562 buildStyleFunctionGradient() { | 562 buildStyleFunctionGradient() { |
| 563 var o = new api.StyleFunctionGradient(); | 563 var o = new api.StyleFunctionGradient(); |
| 564 buildCounterStyleFunctionGradient++; | 564 buildCounterStyleFunctionGradient++; |
| 565 if (buildCounterStyleFunctionGradient < 3) { | 565 if (buildCounterStyleFunctionGradient < 3) { |
| 566 o.colors = buildUnnamed2939(); | 566 o.colors = buildUnnamed3030(); |
| 567 o.max = 42.0; | 567 o.max = 42.0; |
| 568 o.min = 42.0; | 568 o.min = 42.0; |
| 569 } | 569 } |
| 570 buildCounterStyleFunctionGradient--; | 570 buildCounterStyleFunctionGradient--; |
| 571 return o; | 571 return o; |
| 572 } | 572 } |
| 573 | 573 |
| 574 checkStyleFunctionGradient(api.StyleFunctionGradient o) { | 574 checkStyleFunctionGradient(api.StyleFunctionGradient o) { |
| 575 buildCounterStyleFunctionGradient++; | 575 buildCounterStyleFunctionGradient++; |
| 576 if (buildCounterStyleFunctionGradient < 3) { | 576 if (buildCounterStyleFunctionGradient < 3) { |
| 577 checkUnnamed2939(o.colors); | 577 checkUnnamed3030(o.colors); |
| 578 unittest.expect(o.max, unittest.equals(42.0)); | 578 unittest.expect(o.max, unittest.equals(42.0)); |
| 579 unittest.expect(o.min, unittest.equals(42.0)); | 579 unittest.expect(o.min, unittest.equals(42.0)); |
| 580 } | 580 } |
| 581 buildCounterStyleFunctionGradient--; | 581 buildCounterStyleFunctionGradient--; |
| 582 } | 582 } |
| 583 | 583 |
| 584 core.int buildCounterStyleFunction = 0; | 584 core.int buildCounterStyleFunction = 0; |
| 585 buildStyleFunction() { | 585 buildStyleFunction() { |
| 586 var o = new api.StyleFunction(); | 586 var o = new api.StyleFunction(); |
| 587 buildCounterStyleFunction++; | 587 buildCounterStyleFunction++; |
| 588 if (buildCounterStyleFunction < 3) { | 588 if (buildCounterStyleFunction < 3) { |
| 589 o.buckets = buildUnnamed2938(); | 589 o.buckets = buildUnnamed3029(); |
| 590 o.columnName = "foo"; | 590 o.columnName = "foo"; |
| 591 o.gradient = buildStyleFunctionGradient(); | 591 o.gradient = buildStyleFunctionGradient(); |
| 592 o.kind = "foo"; | 592 o.kind = "foo"; |
| 593 } | 593 } |
| 594 buildCounterStyleFunction--; | 594 buildCounterStyleFunction--; |
| 595 return o; | 595 return o; |
| 596 } | 596 } |
| 597 | 597 |
| 598 checkStyleFunction(api.StyleFunction o) { | 598 checkStyleFunction(api.StyleFunction o) { |
| 599 buildCounterStyleFunction++; | 599 buildCounterStyleFunction++; |
| 600 if (buildCounterStyleFunction < 3) { | 600 if (buildCounterStyleFunction < 3) { |
| 601 checkUnnamed2938(o.buckets); | 601 checkUnnamed3029(o.buckets); |
| 602 unittest.expect(o.columnName, unittest.equals('foo')); | 602 unittest.expect(o.columnName, unittest.equals('foo')); |
| 603 checkStyleFunctionGradient(o.gradient); | 603 checkStyleFunctionGradient(o.gradient); |
| 604 unittest.expect(o.kind, unittest.equals('foo')); | 604 unittest.expect(o.kind, unittest.equals('foo')); |
| 605 } | 605 } |
| 606 buildCounterStyleFunction--; | 606 buildCounterStyleFunction--; |
| 607 } | 607 } |
| 608 | 608 |
| 609 core.int buildCounterStyleSetting = 0; | 609 core.int buildCounterStyleSetting = 0; |
| 610 buildStyleSetting() { | 610 buildStyleSetting() { |
| 611 var o = new api.StyleSetting(); | 611 var o = new api.StyleSetting(); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 630 checkPointStyle(o.markerOptions); | 630 checkPointStyle(o.markerOptions); |
| 631 unittest.expect(o.name, unittest.equals('foo')); | 631 unittest.expect(o.name, unittest.equals('foo')); |
| 632 checkPolygonStyle(o.polygonOptions); | 632 checkPolygonStyle(o.polygonOptions); |
| 633 checkLineStyle(o.polylineOptions); | 633 checkLineStyle(o.polylineOptions); |
| 634 unittest.expect(o.styleId, unittest.equals(42)); | 634 unittest.expect(o.styleId, unittest.equals(42)); |
| 635 unittest.expect(o.tableId, unittest.equals('foo')); | 635 unittest.expect(o.tableId, unittest.equals('foo')); |
| 636 } | 636 } |
| 637 buildCounterStyleSetting--; | 637 buildCounterStyleSetting--; |
| 638 } | 638 } |
| 639 | 639 |
| 640 buildUnnamed2940() { | 640 buildUnnamed3031() { |
| 641 var o = new core.List<api.StyleSetting>(); | 641 var o = new core.List<api.StyleSetting>(); |
| 642 o.add(buildStyleSetting()); | 642 o.add(buildStyleSetting()); |
| 643 o.add(buildStyleSetting()); | 643 o.add(buildStyleSetting()); |
| 644 return o; | 644 return o; |
| 645 } | 645 } |
| 646 | 646 |
| 647 checkUnnamed2940(core.List<api.StyleSetting> o) { | 647 checkUnnamed3031(core.List<api.StyleSetting> o) { |
| 648 unittest.expect(o, unittest.hasLength(2)); | 648 unittest.expect(o, unittest.hasLength(2)); |
| 649 checkStyleSetting(o[0]); | 649 checkStyleSetting(o[0]); |
| 650 checkStyleSetting(o[1]); | 650 checkStyleSetting(o[1]); |
| 651 } | 651 } |
| 652 | 652 |
| 653 core.int buildCounterStyleSettingList = 0; | 653 core.int buildCounterStyleSettingList = 0; |
| 654 buildStyleSettingList() { | 654 buildStyleSettingList() { |
| 655 var o = new api.StyleSettingList(); | 655 var o = new api.StyleSettingList(); |
| 656 buildCounterStyleSettingList++; | 656 buildCounterStyleSettingList++; |
| 657 if (buildCounterStyleSettingList < 3) { | 657 if (buildCounterStyleSettingList < 3) { |
| 658 o.items = buildUnnamed2940(); | 658 o.items = buildUnnamed3031(); |
| 659 o.kind = "foo"; | 659 o.kind = "foo"; |
| 660 o.nextPageToken = "foo"; | 660 o.nextPageToken = "foo"; |
| 661 o.totalItems = 42; | 661 o.totalItems = 42; |
| 662 } | 662 } |
| 663 buildCounterStyleSettingList--; | 663 buildCounterStyleSettingList--; |
| 664 return o; | 664 return o; |
| 665 } | 665 } |
| 666 | 666 |
| 667 checkStyleSettingList(api.StyleSettingList o) { | 667 checkStyleSettingList(api.StyleSettingList o) { |
| 668 buildCounterStyleSettingList++; | 668 buildCounterStyleSettingList++; |
| 669 if (buildCounterStyleSettingList < 3) { | 669 if (buildCounterStyleSettingList < 3) { |
| 670 checkUnnamed2940(o.items); | 670 checkUnnamed3031(o.items); |
| 671 unittest.expect(o.kind, unittest.equals('foo')); | 671 unittest.expect(o.kind, unittest.equals('foo')); |
| 672 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 672 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 673 unittest.expect(o.totalItems, unittest.equals(42)); | 673 unittest.expect(o.totalItems, unittest.equals(42)); |
| 674 } | 674 } |
| 675 buildCounterStyleSettingList--; | 675 buildCounterStyleSettingList--; |
| 676 } | 676 } |
| 677 | 677 |
| 678 buildUnnamed2941() { | 678 buildUnnamed3032() { |
| 679 var o = new core.List<core.String>(); | 679 var o = new core.List<core.String>(); |
| 680 o.add("foo"); | 680 o.add("foo"); |
| 681 o.add("foo"); | 681 o.add("foo"); |
| 682 return o; | 682 return o; |
| 683 } | 683 } |
| 684 | 684 |
| 685 checkUnnamed2941(core.List<core.String> o) { | 685 checkUnnamed3032(core.List<core.String> o) { |
| 686 unittest.expect(o, unittest.hasLength(2)); | 686 unittest.expect(o, unittest.hasLength(2)); |
| 687 unittest.expect(o[0], unittest.equals('foo')); | 687 unittest.expect(o[0], unittest.equals('foo')); |
| 688 unittest.expect(o[1], unittest.equals('foo')); | 688 unittest.expect(o[1], unittest.equals('foo')); |
| 689 } | 689 } |
| 690 | 690 |
| 691 buildUnnamed2942() { | 691 buildUnnamed3033() { |
| 692 var o = new core.List<api.Column>(); | 692 var o = new core.List<api.Column>(); |
| 693 o.add(buildColumn()); | 693 o.add(buildColumn()); |
| 694 o.add(buildColumn()); | 694 o.add(buildColumn()); |
| 695 return o; | 695 return o; |
| 696 } | 696 } |
| 697 | 697 |
| 698 checkUnnamed2942(core.List<api.Column> o) { | 698 checkUnnamed3033(core.List<api.Column> o) { |
| 699 unittest.expect(o, unittest.hasLength(2)); | 699 unittest.expect(o, unittest.hasLength(2)); |
| 700 checkColumn(o[0]); | 700 checkColumn(o[0]); |
| 701 checkColumn(o[1]); | 701 checkColumn(o[1]); |
| 702 } | 702 } |
| 703 | 703 |
| 704 core.int buildCounterTable = 0; | 704 core.int buildCounterTable = 0; |
| 705 buildTable() { | 705 buildTable() { |
| 706 var o = new api.Table(); | 706 var o = new api.Table(); |
| 707 buildCounterTable++; | 707 buildCounterTable++; |
| 708 if (buildCounterTable < 3) { | 708 if (buildCounterTable < 3) { |
| 709 o.attribution = "foo"; | 709 o.attribution = "foo"; |
| 710 o.attributionLink = "foo"; | 710 o.attributionLink = "foo"; |
| 711 o.baseTableIds = buildUnnamed2941(); | 711 o.baseTableIds = buildUnnamed3032(); |
| 712 o.columns = buildUnnamed2942(); | 712 o.columns = buildUnnamed3033(); |
| 713 o.description = "foo"; | 713 o.description = "foo"; |
| 714 o.isExportable = true; | 714 o.isExportable = true; |
| 715 o.kind = "foo"; | 715 o.kind = "foo"; |
| 716 o.name = "foo"; | 716 o.name = "foo"; |
| 717 o.sql = "foo"; | 717 o.sql = "foo"; |
| 718 o.tableId = "foo"; | 718 o.tableId = "foo"; |
| 719 } | 719 } |
| 720 buildCounterTable--; | 720 buildCounterTable--; |
| 721 return o; | 721 return o; |
| 722 } | 722 } |
| 723 | 723 |
| 724 checkTable(api.Table o) { | 724 checkTable(api.Table o) { |
| 725 buildCounterTable++; | 725 buildCounterTable++; |
| 726 if (buildCounterTable < 3) { | 726 if (buildCounterTable < 3) { |
| 727 unittest.expect(o.attribution, unittest.equals('foo')); | 727 unittest.expect(o.attribution, unittest.equals('foo')); |
| 728 unittest.expect(o.attributionLink, unittest.equals('foo')); | 728 unittest.expect(o.attributionLink, unittest.equals('foo')); |
| 729 checkUnnamed2941(o.baseTableIds); | 729 checkUnnamed3032(o.baseTableIds); |
| 730 checkUnnamed2942(o.columns); | 730 checkUnnamed3033(o.columns); |
| 731 unittest.expect(o.description, unittest.equals('foo')); | 731 unittest.expect(o.description, unittest.equals('foo')); |
| 732 unittest.expect(o.isExportable, unittest.isTrue); | 732 unittest.expect(o.isExportable, unittest.isTrue); |
| 733 unittest.expect(o.kind, unittest.equals('foo')); | 733 unittest.expect(o.kind, unittest.equals('foo')); |
| 734 unittest.expect(o.name, unittest.equals('foo')); | 734 unittest.expect(o.name, unittest.equals('foo')); |
| 735 unittest.expect(o.sql, unittest.equals('foo')); | 735 unittest.expect(o.sql, unittest.equals('foo')); |
| 736 unittest.expect(o.tableId, unittest.equals('foo')); | 736 unittest.expect(o.tableId, unittest.equals('foo')); |
| 737 } | 737 } |
| 738 buildCounterTable--; | 738 buildCounterTable--; |
| 739 } | 739 } |
| 740 | 740 |
| 741 buildUnnamed2943() { | 741 buildUnnamed3034() { |
| 742 var o = new core.List<api.Table>(); | 742 var o = new core.List<api.Table>(); |
| 743 o.add(buildTable()); | 743 o.add(buildTable()); |
| 744 o.add(buildTable()); | 744 o.add(buildTable()); |
| 745 return o; | 745 return o; |
| 746 } | 746 } |
| 747 | 747 |
| 748 checkUnnamed2943(core.List<api.Table> o) { | 748 checkUnnamed3034(core.List<api.Table> o) { |
| 749 unittest.expect(o, unittest.hasLength(2)); | 749 unittest.expect(o, unittest.hasLength(2)); |
| 750 checkTable(o[0]); | 750 checkTable(o[0]); |
| 751 checkTable(o[1]); | 751 checkTable(o[1]); |
| 752 } | 752 } |
| 753 | 753 |
| 754 core.int buildCounterTableList = 0; | 754 core.int buildCounterTableList = 0; |
| 755 buildTableList() { | 755 buildTableList() { |
| 756 var o = new api.TableList(); | 756 var o = new api.TableList(); |
| 757 buildCounterTableList++; | 757 buildCounterTableList++; |
| 758 if (buildCounterTableList < 3) { | 758 if (buildCounterTableList < 3) { |
| 759 o.items = buildUnnamed2943(); | 759 o.items = buildUnnamed3034(); |
| 760 o.kind = "foo"; | 760 o.kind = "foo"; |
| 761 o.nextPageToken = "foo"; | 761 o.nextPageToken = "foo"; |
| 762 } | 762 } |
| 763 buildCounterTableList--; | 763 buildCounterTableList--; |
| 764 return o; | 764 return o; |
| 765 } | 765 } |
| 766 | 766 |
| 767 checkTableList(api.TableList o) { | 767 checkTableList(api.TableList o) { |
| 768 buildCounterTableList++; | 768 buildCounterTableList++; |
| 769 if (buildCounterTableList < 3) { | 769 if (buildCounterTableList < 3) { |
| 770 checkUnnamed2943(o.items); | 770 checkUnnamed3034(o.items); |
| 771 unittest.expect(o.kind, unittest.equals('foo')); | 771 unittest.expect(o.kind, unittest.equals('foo')); |
| 772 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 772 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 773 } | 773 } |
| 774 buildCounterTableList--; | 774 buildCounterTableList--; |
| 775 } | 775 } |
| 776 | 776 |
| 777 core.int buildCounterTask = 0; | 777 core.int buildCounterTask = 0; |
| 778 buildTask() { | 778 buildTask() { |
| 779 var o = new api.Task(); | 779 var o = new api.Task(); |
| 780 buildCounterTask++; | 780 buildCounterTask++; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 794 if (buildCounterTask < 3) { | 794 if (buildCounterTask < 3) { |
| 795 unittest.expect(o.kind, unittest.equals('foo')); | 795 unittest.expect(o.kind, unittest.equals('foo')); |
| 796 unittest.expect(o.progress, unittest.equals('foo')); | 796 unittest.expect(o.progress, unittest.equals('foo')); |
| 797 unittest.expect(o.started, unittest.isTrue); | 797 unittest.expect(o.started, unittest.isTrue); |
| 798 unittest.expect(o.taskId, unittest.equals('foo')); | 798 unittest.expect(o.taskId, unittest.equals('foo')); |
| 799 unittest.expect(o.type, unittest.equals('foo')); | 799 unittest.expect(o.type, unittest.equals('foo')); |
| 800 } | 800 } |
| 801 buildCounterTask--; | 801 buildCounterTask--; |
| 802 } | 802 } |
| 803 | 803 |
| 804 buildUnnamed2944() { | 804 buildUnnamed3035() { |
| 805 var o = new core.List<api.Task>(); | 805 var o = new core.List<api.Task>(); |
| 806 o.add(buildTask()); | 806 o.add(buildTask()); |
| 807 o.add(buildTask()); | 807 o.add(buildTask()); |
| 808 return o; | 808 return o; |
| 809 } | 809 } |
| 810 | 810 |
| 811 checkUnnamed2944(core.List<api.Task> o) { | 811 checkUnnamed3035(core.List<api.Task> o) { |
| 812 unittest.expect(o, unittest.hasLength(2)); | 812 unittest.expect(o, unittest.hasLength(2)); |
| 813 checkTask(o[0]); | 813 checkTask(o[0]); |
| 814 checkTask(o[1]); | 814 checkTask(o[1]); |
| 815 } | 815 } |
| 816 | 816 |
| 817 core.int buildCounterTaskList = 0; | 817 core.int buildCounterTaskList = 0; |
| 818 buildTaskList() { | 818 buildTaskList() { |
| 819 var o = new api.TaskList(); | 819 var o = new api.TaskList(); |
| 820 buildCounterTaskList++; | 820 buildCounterTaskList++; |
| 821 if (buildCounterTaskList < 3) { | 821 if (buildCounterTaskList < 3) { |
| 822 o.items = buildUnnamed2944(); | 822 o.items = buildUnnamed3035(); |
| 823 o.kind = "foo"; | 823 o.kind = "foo"; |
| 824 o.nextPageToken = "foo"; | 824 o.nextPageToken = "foo"; |
| 825 o.totalItems = 42; | 825 o.totalItems = 42; |
| 826 } | 826 } |
| 827 buildCounterTaskList--; | 827 buildCounterTaskList--; |
| 828 return o; | 828 return o; |
| 829 } | 829 } |
| 830 | 830 |
| 831 checkTaskList(api.TaskList o) { | 831 checkTaskList(api.TaskList o) { |
| 832 buildCounterTaskList++; | 832 buildCounterTaskList++; |
| 833 if (buildCounterTaskList < 3) { | 833 if (buildCounterTaskList < 3) { |
| 834 checkUnnamed2944(o.items); | 834 checkUnnamed3035(o.items); |
| 835 unittest.expect(o.kind, unittest.equals('foo')); | 835 unittest.expect(o.kind, unittest.equals('foo')); |
| 836 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 836 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 837 unittest.expect(o.totalItems, unittest.equals(42)); | 837 unittest.expect(o.totalItems, unittest.equals(42)); |
| 838 } | 838 } |
| 839 buildCounterTaskList--; | 839 buildCounterTaskList--; |
| 840 } | 840 } |
| 841 | 841 |
| 842 buildUnnamed2945() { | 842 buildUnnamed3036() { |
| 843 var o = new core.List<core.String>(); | 843 var o = new core.List<core.String>(); |
| 844 o.add("foo"); | 844 o.add("foo"); |
| 845 o.add("foo"); | 845 o.add("foo"); |
| 846 return o; | 846 return o; |
| 847 } | 847 } |
| 848 | 848 |
| 849 checkUnnamed2945(core.List<core.String> o) { | 849 checkUnnamed3036(core.List<core.String> o) { |
| 850 unittest.expect(o, unittest.hasLength(2)); | 850 unittest.expect(o, unittest.hasLength(2)); |
| 851 unittest.expect(o[0], unittest.equals('foo')); | 851 unittest.expect(o[0], unittest.equals('foo')); |
| 852 unittest.expect(o[1], unittest.equals('foo')); | 852 unittest.expect(o[1], unittest.equals('foo')); |
| 853 } | 853 } |
| 854 | 854 |
| 855 core.int buildCounterTemplate = 0; | 855 core.int buildCounterTemplate = 0; |
| 856 buildTemplate() { | 856 buildTemplate() { |
| 857 var o = new api.Template(); | 857 var o = new api.Template(); |
| 858 buildCounterTemplate++; | 858 buildCounterTemplate++; |
| 859 if (buildCounterTemplate < 3) { | 859 if (buildCounterTemplate < 3) { |
| 860 o.automaticColumnNames = buildUnnamed2945(); | 860 o.automaticColumnNames = buildUnnamed3036(); |
| 861 o.body = "foo"; | 861 o.body = "foo"; |
| 862 o.kind = "foo"; | 862 o.kind = "foo"; |
| 863 o.name = "foo"; | 863 o.name = "foo"; |
| 864 o.tableId = "foo"; | 864 o.tableId = "foo"; |
| 865 o.templateId = 42; | 865 o.templateId = 42; |
| 866 } | 866 } |
| 867 buildCounterTemplate--; | 867 buildCounterTemplate--; |
| 868 return o; | 868 return o; |
| 869 } | 869 } |
| 870 | 870 |
| 871 checkTemplate(api.Template o) { | 871 checkTemplate(api.Template o) { |
| 872 buildCounterTemplate++; | 872 buildCounterTemplate++; |
| 873 if (buildCounterTemplate < 3) { | 873 if (buildCounterTemplate < 3) { |
| 874 checkUnnamed2945(o.automaticColumnNames); | 874 checkUnnamed3036(o.automaticColumnNames); |
| 875 unittest.expect(o.body, unittest.equals('foo')); | 875 unittest.expect(o.body, unittest.equals('foo')); |
| 876 unittest.expect(o.kind, unittest.equals('foo')); | 876 unittest.expect(o.kind, unittest.equals('foo')); |
| 877 unittest.expect(o.name, unittest.equals('foo')); | 877 unittest.expect(o.name, unittest.equals('foo')); |
| 878 unittest.expect(o.tableId, unittest.equals('foo')); | 878 unittest.expect(o.tableId, unittest.equals('foo')); |
| 879 unittest.expect(o.templateId, unittest.equals(42)); | 879 unittest.expect(o.templateId, unittest.equals(42)); |
| 880 } | 880 } |
| 881 buildCounterTemplate--; | 881 buildCounterTemplate--; |
| 882 } | 882 } |
| 883 | 883 |
| 884 buildUnnamed2946() { | 884 buildUnnamed3037() { |
| 885 var o = new core.List<api.Template>(); | 885 var o = new core.List<api.Template>(); |
| 886 o.add(buildTemplate()); | 886 o.add(buildTemplate()); |
| 887 o.add(buildTemplate()); | 887 o.add(buildTemplate()); |
| 888 return o; | 888 return o; |
| 889 } | 889 } |
| 890 | 890 |
| 891 checkUnnamed2946(core.List<api.Template> o) { | 891 checkUnnamed3037(core.List<api.Template> o) { |
| 892 unittest.expect(o, unittest.hasLength(2)); | 892 unittest.expect(o, unittest.hasLength(2)); |
| 893 checkTemplate(o[0]); | 893 checkTemplate(o[0]); |
| 894 checkTemplate(o[1]); | 894 checkTemplate(o[1]); |
| 895 } | 895 } |
| 896 | 896 |
| 897 core.int buildCounterTemplateList = 0; | 897 core.int buildCounterTemplateList = 0; |
| 898 buildTemplateList() { | 898 buildTemplateList() { |
| 899 var o = new api.TemplateList(); | 899 var o = new api.TemplateList(); |
| 900 buildCounterTemplateList++; | 900 buildCounterTemplateList++; |
| 901 if (buildCounterTemplateList < 3) { | 901 if (buildCounterTemplateList < 3) { |
| 902 o.items = buildUnnamed2946(); | 902 o.items = buildUnnamed3037(); |
| 903 o.kind = "foo"; | 903 o.kind = "foo"; |
| 904 o.nextPageToken = "foo"; | 904 o.nextPageToken = "foo"; |
| 905 o.totalItems = 42; | 905 o.totalItems = 42; |
| 906 } | 906 } |
| 907 buildCounterTemplateList--; | 907 buildCounterTemplateList--; |
| 908 return o; | 908 return o; |
| 909 } | 909 } |
| 910 | 910 |
| 911 checkTemplateList(api.TemplateList o) { | 911 checkTemplateList(api.TemplateList o) { |
| 912 buildCounterTemplateList++; | 912 buildCounterTemplateList++; |
| 913 if (buildCounterTemplateList < 3) { | 913 if (buildCounterTemplateList < 3) { |
| 914 checkUnnamed2946(o.items); | 914 checkUnnamed3037(o.items); |
| 915 unittest.expect(o.kind, unittest.equals('foo')); | 915 unittest.expect(o.kind, unittest.equals('foo')); |
| 916 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 916 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 917 unittest.expect(o.totalItems, unittest.equals(42)); | 917 unittest.expect(o.totalItems, unittest.equals(42)); |
| 918 } | 918 } |
| 919 buildCounterTemplateList--; | 919 buildCounterTemplateList--; |
| 920 } | 920 } |
| 921 | 921 |
| 922 | 922 |
| 923 main() { | 923 main() { |
| 924 unittest.group("obj-schema-Bucket", () { | 924 unittest.group("obj-schema-Bucket", () { |
| (...skipping 2029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2954 res.update(arg_request, arg_tableId, arg_templateId).then(unittest.expectA
sync(((api.Template response) { | 2954 res.update(arg_request, arg_tableId, arg_templateId).then(unittest.expectA
sync(((api.Template response) { |
| 2955 checkTemplate(response); | 2955 checkTemplate(response); |
| 2956 }))); | 2956 }))); |
| 2957 }); | 2957 }); |
| 2958 | 2958 |
| 2959 }); | 2959 }); |
| 2960 | 2960 |
| 2961 | 2961 |
| 2962 } | 2962 } |
| 2963 | 2963 |
| OLD | NEW |