| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 unittest.expect(o.columnId, unittest.equals(42)); | 90 unittest.expect(o.columnId, unittest.equals(42)); |
| 91 unittest.expect(o.description, unittest.equals('foo')); | 91 unittest.expect(o.description, unittest.equals('foo')); |
| 92 unittest.expect(o.graphPredicate, unittest.equals('foo')); | 92 unittest.expect(o.graphPredicate, unittest.equals('foo')); |
| 93 unittest.expect(o.kind, unittest.equals('foo')); | 93 unittest.expect(o.kind, unittest.equals('foo')); |
| 94 unittest.expect(o.name, unittest.equals('foo')); | 94 unittest.expect(o.name, unittest.equals('foo')); |
| 95 unittest.expect(o.type, unittest.equals('foo')); | 95 unittest.expect(o.type, unittest.equals('foo')); |
| 96 } | 96 } |
| 97 buildCounterColumn--; | 97 buildCounterColumn--; |
| 98 } | 98 } |
| 99 | 99 |
| 100 buildUnnamed1120() { | 100 buildUnnamed778() { |
| 101 var o = new core.List<api.Column>(); | 101 var o = new core.List<api.Column>(); |
| 102 o.add(buildColumn()); | 102 o.add(buildColumn()); |
| 103 o.add(buildColumn()); | 103 o.add(buildColumn()); |
| 104 return o; | 104 return o; |
| 105 } | 105 } |
| 106 | 106 |
| 107 checkUnnamed1120(core.List<api.Column> o) { | 107 checkUnnamed778(core.List<api.Column> o) { |
| 108 unittest.expect(o, unittest.hasLength(2)); | 108 unittest.expect(o, unittest.hasLength(2)); |
| 109 checkColumn(o[0]); | 109 checkColumn(o[0]); |
| 110 checkColumn(o[1]); | 110 checkColumn(o[1]); |
| 111 } | 111 } |
| 112 | 112 |
| 113 core.int buildCounterColumnList = 0; | 113 core.int buildCounterColumnList = 0; |
| 114 buildColumnList() { | 114 buildColumnList() { |
| 115 var o = new api.ColumnList(); | 115 var o = new api.ColumnList(); |
| 116 buildCounterColumnList++; | 116 buildCounterColumnList++; |
| 117 if (buildCounterColumnList < 3) { | 117 if (buildCounterColumnList < 3) { |
| 118 o.items = buildUnnamed1120(); | 118 o.items = buildUnnamed778(); |
| 119 o.kind = "foo"; | 119 o.kind = "foo"; |
| 120 o.nextPageToken = "foo"; | 120 o.nextPageToken = "foo"; |
| 121 o.totalItems = 42; | 121 o.totalItems = 42; |
| 122 } | 122 } |
| 123 buildCounterColumnList--; | 123 buildCounterColumnList--; |
| 124 return o; | 124 return o; |
| 125 } | 125 } |
| 126 | 126 |
| 127 checkColumnList(api.ColumnList o) { | 127 checkColumnList(api.ColumnList o) { |
| 128 buildCounterColumnList++; | 128 buildCounterColumnList++; |
| 129 if (buildCounterColumnList < 3) { | 129 if (buildCounterColumnList < 3) { |
| 130 checkUnnamed1120(o.items); | 130 checkUnnamed778(o.items); |
| 131 unittest.expect(o.kind, unittest.equals('foo')); | 131 unittest.expect(o.kind, unittest.equals('foo')); |
| 132 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 132 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 133 unittest.expect(o.totalItems, unittest.equals(42)); | 133 unittest.expect(o.totalItems, unittest.equals(42)); |
| 134 } | 134 } |
| 135 buildCounterColumnList--; | 135 buildCounterColumnList--; |
| 136 } | 136 } |
| 137 | 137 |
| 138 buildUnnamed1121() { | 138 buildUnnamed779() { |
| 139 var o = new core.List<core.Object>(); | 139 var o = new core.List<core.Object>(); |
| 140 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 140 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 141 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 141 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 142 return o; | 142 return o; |
| 143 } | 143 } |
| 144 | 144 |
| 145 checkUnnamed1121(core.List<core.Object> o) { | 145 checkUnnamed779(core.List<core.Object> o) { |
| 146 unittest.expect(o, unittest.hasLength(2)); | 146 unittest.expect(o, unittest.hasLength(2)); |
| 147 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')); | 147 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')); |
| 148 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')); | 148 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')); |
| 149 } | 149 } |
| 150 | 150 |
| 151 core.int buildCounterGeometry = 0; | 151 core.int buildCounterGeometry = 0; |
| 152 buildGeometry() { | 152 buildGeometry() { |
| 153 var o = new api.Geometry(); | 153 var o = new api.Geometry(); |
| 154 buildCounterGeometry++; | 154 buildCounterGeometry++; |
| 155 if (buildCounterGeometry < 3) { | 155 if (buildCounterGeometry < 3) { |
| 156 o.geometries = buildUnnamed1121(); | 156 o.geometries = buildUnnamed779(); |
| 157 o.geometry = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 157 o.geometry = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 158 o.type = "foo"; | 158 o.type = "foo"; |
| 159 } | 159 } |
| 160 buildCounterGeometry--; | 160 buildCounterGeometry--; |
| 161 return o; | 161 return o; |
| 162 } | 162 } |
| 163 | 163 |
| 164 checkGeometry(api.Geometry o) { | 164 checkGeometry(api.Geometry o) { |
| 165 buildCounterGeometry++; | 165 buildCounterGeometry++; |
| 166 if (buildCounterGeometry < 3) { | 166 if (buildCounterGeometry < 3) { |
| 167 checkUnnamed1121(o.geometries); | 167 checkUnnamed779(o.geometries); |
| 168 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')); | 168 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')); |
| 169 unittest.expect(o.type, unittest.equals('foo')); | 169 unittest.expect(o.type, unittest.equals('foo')); |
| 170 } | 170 } |
| 171 buildCounterGeometry--; | 171 buildCounterGeometry--; |
| 172 } | 172 } |
| 173 | 173 |
| 174 core.int buildCounterImport = 0; | 174 core.int buildCounterImport = 0; |
| 175 buildImport() { | 175 buildImport() { |
| 176 var o = new api.Import(); | 176 var o = new api.Import(); |
| 177 buildCounterImport++; | 177 buildCounterImport++; |
| 178 if (buildCounterImport < 3) { | 178 if (buildCounterImport < 3) { |
| 179 o.kind = "foo"; | 179 o.kind = "foo"; |
| 180 o.numRowsReceived = "foo"; | 180 o.numRowsReceived = "foo"; |
| 181 } | 181 } |
| 182 buildCounterImport--; | 182 buildCounterImport--; |
| 183 return o; | 183 return o; |
| 184 } | 184 } |
| 185 | 185 |
| 186 checkImport(api.Import o) { | 186 checkImport(api.Import o) { |
| 187 buildCounterImport++; | 187 buildCounterImport++; |
| 188 if (buildCounterImport < 3) { | 188 if (buildCounterImport < 3) { |
| 189 unittest.expect(o.kind, unittest.equals('foo')); | 189 unittest.expect(o.kind, unittest.equals('foo')); |
| 190 unittest.expect(o.numRowsReceived, unittest.equals('foo')); | 190 unittest.expect(o.numRowsReceived, unittest.equals('foo')); |
| 191 } | 191 } |
| 192 buildCounterImport--; | 192 buildCounterImport--; |
| 193 } | 193 } |
| 194 | 194 |
| 195 buildUnnamed1122() { | 195 buildUnnamed780() { |
| 196 var o = new core.List<core.double>(); | 196 var o = new core.List<core.double>(); |
| 197 o.add(42.0); | 197 o.add(42.0); |
| 198 o.add(42.0); | 198 o.add(42.0); |
| 199 return o; | 199 return o; |
| 200 } | 200 } |
| 201 | 201 |
| 202 checkUnnamed1122(core.List<core.double> o) { | 202 checkUnnamed780(core.List<core.double> o) { |
| 203 unittest.expect(o, unittest.hasLength(2)); | 203 unittest.expect(o, unittest.hasLength(2)); |
| 204 unittest.expect(o[0], unittest.equals(42.0)); | 204 unittest.expect(o[0], unittest.equals(42.0)); |
| 205 unittest.expect(o[1], unittest.equals(42.0)); | 205 unittest.expect(o[1], unittest.equals(42.0)); |
| 206 } | 206 } |
| 207 | 207 |
| 208 buildUnnamed1123() { | 208 buildUnnamed781() { |
| 209 var o = new core.List<core.List<core.double>>(); | 209 var o = new core.List<core.List<core.double>>(); |
| 210 o.add(buildUnnamed1122()); | 210 o.add(buildUnnamed780()); |
| 211 o.add(buildUnnamed1122()); | 211 o.add(buildUnnamed780()); |
| 212 return o; | 212 return o; |
| 213 } | 213 } |
| 214 | 214 |
| 215 checkUnnamed1123(core.List<core.List<core.double>> o) { | 215 checkUnnamed781(core.List<core.List<core.double>> o) { |
| 216 unittest.expect(o, unittest.hasLength(2)); | 216 unittest.expect(o, unittest.hasLength(2)); |
| 217 checkUnnamed1122(o[0]); | 217 checkUnnamed780(o[0]); |
| 218 checkUnnamed1122(o[1]); | 218 checkUnnamed780(o[1]); |
| 219 } | 219 } |
| 220 | 220 |
| 221 core.int buildCounterLine = 0; | 221 core.int buildCounterLine = 0; |
| 222 buildLine() { | 222 buildLine() { |
| 223 var o = new api.Line(); | 223 var o = new api.Line(); |
| 224 buildCounterLine++; | 224 buildCounterLine++; |
| 225 if (buildCounterLine < 3) { | 225 if (buildCounterLine < 3) { |
| 226 o.coordinates = buildUnnamed1123(); | 226 o.coordinates = buildUnnamed781(); |
| 227 o.type = "foo"; | 227 o.type = "foo"; |
| 228 } | 228 } |
| 229 buildCounterLine--; | 229 buildCounterLine--; |
| 230 return o; | 230 return o; |
| 231 } | 231 } |
| 232 | 232 |
| 233 checkLine(api.Line o) { | 233 checkLine(api.Line o) { |
| 234 buildCounterLine++; | 234 buildCounterLine++; |
| 235 if (buildCounterLine < 3) { | 235 if (buildCounterLine < 3) { |
| 236 checkUnnamed1123(o.coordinates); | 236 checkUnnamed781(o.coordinates); |
| 237 unittest.expect(o.type, unittest.equals('foo')); | 237 unittest.expect(o.type, unittest.equals('foo')); |
| 238 } | 238 } |
| 239 buildCounterLine--; | 239 buildCounterLine--; |
| 240 } | 240 } |
| 241 | 241 |
| 242 core.int buildCounterLineStyle = 0; | 242 core.int buildCounterLineStyle = 0; |
| 243 buildLineStyle() { | 243 buildLineStyle() { |
| 244 var o = new api.LineStyle(); | 244 var o = new api.LineStyle(); |
| 245 buildCounterLineStyle++; | 245 buildCounterLineStyle++; |
| 246 if (buildCounterLineStyle < 3) { | 246 if (buildCounterLineStyle < 3) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 259 if (buildCounterLineStyle < 3) { | 259 if (buildCounterLineStyle < 3) { |
| 260 unittest.expect(o.strokeColor, unittest.equals('foo')); | 260 unittest.expect(o.strokeColor, unittest.equals('foo')); |
| 261 checkStyleFunction(o.strokeColorStyler); | 261 checkStyleFunction(o.strokeColorStyler); |
| 262 unittest.expect(o.strokeOpacity, unittest.equals(42.0)); | 262 unittest.expect(o.strokeOpacity, unittest.equals(42.0)); |
| 263 unittest.expect(o.strokeWeight, unittest.equals(42)); | 263 unittest.expect(o.strokeWeight, unittest.equals(42)); |
| 264 checkStyleFunction(o.strokeWeightStyler); | 264 checkStyleFunction(o.strokeWeightStyler); |
| 265 } | 265 } |
| 266 buildCounterLineStyle--; | 266 buildCounterLineStyle--; |
| 267 } | 267 } |
| 268 | 268 |
| 269 buildUnnamed1124() { | 269 buildUnnamed782() { |
| 270 var o = new core.List<core.double>(); | 270 var o = new core.List<core.double>(); |
| 271 o.add(42.0); | 271 o.add(42.0); |
| 272 o.add(42.0); | 272 o.add(42.0); |
| 273 return o; | 273 return o; |
| 274 } | 274 } |
| 275 | 275 |
| 276 checkUnnamed1124(core.List<core.double> o) { | 276 checkUnnamed782(core.List<core.double> o) { |
| 277 unittest.expect(o, unittest.hasLength(2)); | 277 unittest.expect(o, unittest.hasLength(2)); |
| 278 unittest.expect(o[0], unittest.equals(42.0)); | 278 unittest.expect(o[0], unittest.equals(42.0)); |
| 279 unittest.expect(o[1], unittest.equals(42.0)); | 279 unittest.expect(o[1], unittest.equals(42.0)); |
| 280 } | 280 } |
| 281 | 281 |
| 282 core.int buildCounterPoint = 0; | 282 core.int buildCounterPoint = 0; |
| 283 buildPoint() { | 283 buildPoint() { |
| 284 var o = new api.Point(); | 284 var o = new api.Point(); |
| 285 buildCounterPoint++; | 285 buildCounterPoint++; |
| 286 if (buildCounterPoint < 3) { | 286 if (buildCounterPoint < 3) { |
| 287 o.coordinates = buildUnnamed1124(); | 287 o.coordinates = buildUnnamed782(); |
| 288 o.type = "foo"; | 288 o.type = "foo"; |
| 289 } | 289 } |
| 290 buildCounterPoint--; | 290 buildCounterPoint--; |
| 291 return o; | 291 return o; |
| 292 } | 292 } |
| 293 | 293 |
| 294 checkPoint(api.Point o) { | 294 checkPoint(api.Point o) { |
| 295 buildCounterPoint++; | 295 buildCounterPoint++; |
| 296 if (buildCounterPoint < 3) { | 296 if (buildCounterPoint < 3) { |
| 297 checkUnnamed1124(o.coordinates); | 297 checkUnnamed782(o.coordinates); |
| 298 unittest.expect(o.type, unittest.equals('foo')); | 298 unittest.expect(o.type, unittest.equals('foo')); |
| 299 } | 299 } |
| 300 buildCounterPoint--; | 300 buildCounterPoint--; |
| 301 } | 301 } |
| 302 | 302 |
| 303 core.int buildCounterPointStyle = 0; | 303 core.int buildCounterPointStyle = 0; |
| 304 buildPointStyle() { | 304 buildPointStyle() { |
| 305 var o = new api.PointStyle(); | 305 var o = new api.PointStyle(); |
| 306 buildCounterPointStyle++; | 306 buildCounterPointStyle++; |
| 307 if (buildCounterPointStyle < 3) { | 307 if (buildCounterPointStyle < 3) { |
| 308 o.iconName = "foo"; | 308 o.iconName = "foo"; |
| 309 o.iconStyler = buildStyleFunction(); | 309 o.iconStyler = buildStyleFunction(); |
| 310 } | 310 } |
| 311 buildCounterPointStyle--; | 311 buildCounterPointStyle--; |
| 312 return o; | 312 return o; |
| 313 } | 313 } |
| 314 | 314 |
| 315 checkPointStyle(api.PointStyle o) { | 315 checkPointStyle(api.PointStyle o) { |
| 316 buildCounterPointStyle++; | 316 buildCounterPointStyle++; |
| 317 if (buildCounterPointStyle < 3) { | 317 if (buildCounterPointStyle < 3) { |
| 318 unittest.expect(o.iconName, unittest.equals('foo')); | 318 unittest.expect(o.iconName, unittest.equals('foo')); |
| 319 checkStyleFunction(o.iconStyler); | 319 checkStyleFunction(o.iconStyler); |
| 320 } | 320 } |
| 321 buildCounterPointStyle--; | 321 buildCounterPointStyle--; |
| 322 } | 322 } |
| 323 | 323 |
| 324 buildUnnamed1125() { | 324 buildUnnamed783() { |
| 325 var o = new core.List<core.double>(); | 325 var o = new core.List<core.double>(); |
| 326 o.add(42.0); | 326 o.add(42.0); |
| 327 o.add(42.0); | 327 o.add(42.0); |
| 328 return o; | 328 return o; |
| 329 } | 329 } |
| 330 | 330 |
| 331 checkUnnamed1125(core.List<core.double> o) { | 331 checkUnnamed783(core.List<core.double> o) { |
| 332 unittest.expect(o, unittest.hasLength(2)); | 332 unittest.expect(o, unittest.hasLength(2)); |
| 333 unittest.expect(o[0], unittest.equals(42.0)); | 333 unittest.expect(o[0], unittest.equals(42.0)); |
| 334 unittest.expect(o[1], unittest.equals(42.0)); | 334 unittest.expect(o[1], unittest.equals(42.0)); |
| 335 } | 335 } |
| 336 | 336 |
| 337 buildUnnamed1126() { | 337 buildUnnamed784() { |
| 338 var o = new core.List<core.List<core.double>>(); | 338 var o = new core.List<core.List<core.double>>(); |
| 339 o.add(buildUnnamed1125()); | 339 o.add(buildUnnamed783()); |
| 340 o.add(buildUnnamed1125()); | 340 o.add(buildUnnamed783()); |
| 341 return o; | 341 return o; |
| 342 } | 342 } |
| 343 | 343 |
| 344 checkUnnamed1126(core.List<core.List<core.double>> o) { | 344 checkUnnamed784(core.List<core.List<core.double>> o) { |
| 345 unittest.expect(o, unittest.hasLength(2)); | 345 unittest.expect(o, unittest.hasLength(2)); |
| 346 checkUnnamed1125(o[0]); | 346 checkUnnamed783(o[0]); |
| 347 checkUnnamed1125(o[1]); | 347 checkUnnamed783(o[1]); |
| 348 } | 348 } |
| 349 | 349 |
| 350 buildUnnamed1127() { | 350 buildUnnamed785() { |
| 351 var o = new core.List<core.List<core.List<core.double>>>(); | 351 var o = new core.List<core.List<core.List<core.double>>>(); |
| 352 o.add(buildUnnamed1126()); | 352 o.add(buildUnnamed784()); |
| 353 o.add(buildUnnamed1126()); | 353 o.add(buildUnnamed784()); |
| 354 return o; | 354 return o; |
| 355 } | 355 } |
| 356 | 356 |
| 357 checkUnnamed1127(core.List<core.List<core.List<core.double>>> o) { | 357 checkUnnamed785(core.List<core.List<core.List<core.double>>> o) { |
| 358 unittest.expect(o, unittest.hasLength(2)); | 358 unittest.expect(o, unittest.hasLength(2)); |
| 359 checkUnnamed1126(o[0]); | 359 checkUnnamed784(o[0]); |
| 360 checkUnnamed1126(o[1]); | 360 checkUnnamed784(o[1]); |
| 361 } | 361 } |
| 362 | 362 |
| 363 core.int buildCounterPolygon = 0; | 363 core.int buildCounterPolygon = 0; |
| 364 buildPolygon() { | 364 buildPolygon() { |
| 365 var o = new api.Polygon(); | 365 var o = new api.Polygon(); |
| 366 buildCounterPolygon++; | 366 buildCounterPolygon++; |
| 367 if (buildCounterPolygon < 3) { | 367 if (buildCounterPolygon < 3) { |
| 368 o.coordinates = buildUnnamed1127(); | 368 o.coordinates = buildUnnamed785(); |
| 369 o.type = "foo"; | 369 o.type = "foo"; |
| 370 } | 370 } |
| 371 buildCounterPolygon--; | 371 buildCounterPolygon--; |
| 372 return o; | 372 return o; |
| 373 } | 373 } |
| 374 | 374 |
| 375 checkPolygon(api.Polygon o) { | 375 checkPolygon(api.Polygon o) { |
| 376 buildCounterPolygon++; | 376 buildCounterPolygon++; |
| 377 if (buildCounterPolygon < 3) { | 377 if (buildCounterPolygon < 3) { |
| 378 checkUnnamed1127(o.coordinates); | 378 checkUnnamed785(o.coordinates); |
| 379 unittest.expect(o.type, unittest.equals('foo')); | 379 unittest.expect(o.type, unittest.equals('foo')); |
| 380 } | 380 } |
| 381 buildCounterPolygon--; | 381 buildCounterPolygon--; |
| 382 } | 382 } |
| 383 | 383 |
| 384 core.int buildCounterPolygonStyle = 0; | 384 core.int buildCounterPolygonStyle = 0; |
| 385 buildPolygonStyle() { | 385 buildPolygonStyle() { |
| 386 var o = new api.PolygonStyle(); | 386 var o = new api.PolygonStyle(); |
| 387 buildCounterPolygonStyle++; | 387 buildCounterPolygonStyle++; |
| 388 if (buildCounterPolygonStyle < 3) { | 388 if (buildCounterPolygonStyle < 3) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 407 unittest.expect(o.fillOpacity, unittest.equals(42.0)); | 407 unittest.expect(o.fillOpacity, unittest.equals(42.0)); |
| 408 unittest.expect(o.strokeColor, unittest.equals('foo')); | 408 unittest.expect(o.strokeColor, unittest.equals('foo')); |
| 409 checkStyleFunction(o.strokeColorStyler); | 409 checkStyleFunction(o.strokeColorStyler); |
| 410 unittest.expect(o.strokeOpacity, unittest.equals(42.0)); | 410 unittest.expect(o.strokeOpacity, unittest.equals(42.0)); |
| 411 unittest.expect(o.strokeWeight, unittest.equals(42)); | 411 unittest.expect(o.strokeWeight, unittest.equals(42)); |
| 412 checkStyleFunction(o.strokeWeightStyler); | 412 checkStyleFunction(o.strokeWeightStyler); |
| 413 } | 413 } |
| 414 buildCounterPolygonStyle--; | 414 buildCounterPolygonStyle--; |
| 415 } | 415 } |
| 416 | 416 |
| 417 buildUnnamed1128() { | 417 buildUnnamed786() { |
| 418 var o = new core.List<core.String>(); | 418 var o = new core.List<core.String>(); |
| 419 o.add("foo"); | 419 o.add("foo"); |
| 420 o.add("foo"); | 420 o.add("foo"); |
| 421 return o; | 421 return o; |
| 422 } | 422 } |
| 423 | 423 |
| 424 checkUnnamed1128(core.List<core.String> o) { | 424 checkUnnamed786(core.List<core.String> o) { |
| 425 unittest.expect(o, unittest.hasLength(2)); | 425 unittest.expect(o, unittest.hasLength(2)); |
| 426 unittest.expect(o[0], unittest.equals('foo')); | 426 unittest.expect(o[0], unittest.equals('foo')); |
| 427 unittest.expect(o[1], unittest.equals('foo')); | 427 unittest.expect(o[1], unittest.equals('foo')); |
| 428 } | 428 } |
| 429 | 429 |
| 430 buildUnnamed1129() { | 430 buildUnnamed787() { |
| 431 var o = new core.List<core.Object>(); | 431 var o = new core.List<core.Object>(); |
| 432 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 432 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 433 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 433 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 434 return o; | 434 return o; |
| 435 } | 435 } |
| 436 | 436 |
| 437 checkUnnamed1129(core.List<core.Object> o) { | 437 checkUnnamed787(core.List<core.Object> o) { |
| 438 unittest.expect(o, unittest.hasLength(2)); | 438 unittest.expect(o, unittest.hasLength(2)); |
| 439 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')); | 439 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')); |
| 440 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')); | 440 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')); |
| 441 } | 441 } |
| 442 | 442 |
| 443 buildUnnamed1130() { | 443 buildUnnamed788() { |
| 444 var o = new core.List<core.List<core.Object>>(); | 444 var o = new core.List<core.List<core.Object>>(); |
| 445 o.add(buildUnnamed1129()); | 445 o.add(buildUnnamed787()); |
| 446 o.add(buildUnnamed1129()); | 446 o.add(buildUnnamed787()); |
| 447 return o; | 447 return o; |
| 448 } | 448 } |
| 449 | 449 |
| 450 checkUnnamed1130(core.List<core.List<core.Object>> o) { | 450 checkUnnamed788(core.List<core.List<core.Object>> o) { |
| 451 unittest.expect(o, unittest.hasLength(2)); | 451 unittest.expect(o, unittest.hasLength(2)); |
| 452 checkUnnamed1129(o[0]); | 452 checkUnnamed787(o[0]); |
| 453 checkUnnamed1129(o[1]); | 453 checkUnnamed787(o[1]); |
| 454 } | 454 } |
| 455 | 455 |
| 456 core.int buildCounterSqlresponse = 0; | 456 core.int buildCounterSqlresponse = 0; |
| 457 buildSqlresponse() { | 457 buildSqlresponse() { |
| 458 var o = new api.Sqlresponse(); | 458 var o = new api.Sqlresponse(); |
| 459 buildCounterSqlresponse++; | 459 buildCounterSqlresponse++; |
| 460 if (buildCounterSqlresponse < 3) { | 460 if (buildCounterSqlresponse < 3) { |
| 461 o.columns = buildUnnamed1128(); | 461 o.columns = buildUnnamed786(); |
| 462 o.kind = "foo"; | 462 o.kind = "foo"; |
| 463 o.rows = buildUnnamed1130(); | 463 o.rows = buildUnnamed788(); |
| 464 } | 464 } |
| 465 buildCounterSqlresponse--; | 465 buildCounterSqlresponse--; |
| 466 return o; | 466 return o; |
| 467 } | 467 } |
| 468 | 468 |
| 469 checkSqlresponse(api.Sqlresponse o) { | 469 checkSqlresponse(api.Sqlresponse o) { |
| 470 buildCounterSqlresponse++; | 470 buildCounterSqlresponse++; |
| 471 if (buildCounterSqlresponse < 3) { | 471 if (buildCounterSqlresponse < 3) { |
| 472 checkUnnamed1128(o.columns); | 472 checkUnnamed786(o.columns); |
| 473 unittest.expect(o.kind, unittest.equals('foo')); | 473 unittest.expect(o.kind, unittest.equals('foo')); |
| 474 checkUnnamed1130(o.rows); | 474 checkUnnamed788(o.rows); |
| 475 } | 475 } |
| 476 buildCounterSqlresponse--; | 476 buildCounterSqlresponse--; |
| 477 } | 477 } |
| 478 | 478 |
| 479 buildUnnamed1131() { | 479 buildUnnamed789() { |
| 480 var o = new core.List<api.Bucket>(); | 480 var o = new core.List<api.Bucket>(); |
| 481 o.add(buildBucket()); | 481 o.add(buildBucket()); |
| 482 o.add(buildBucket()); | 482 o.add(buildBucket()); |
| 483 return o; | 483 return o; |
| 484 } | 484 } |
| 485 | 485 |
| 486 checkUnnamed1131(core.List<api.Bucket> o) { | 486 checkUnnamed789(core.List<api.Bucket> o) { |
| 487 unittest.expect(o, unittest.hasLength(2)); | 487 unittest.expect(o, unittest.hasLength(2)); |
| 488 checkBucket(o[0]); | 488 checkBucket(o[0]); |
| 489 checkBucket(o[1]); | 489 checkBucket(o[1]); |
| 490 } | 490 } |
| 491 | 491 |
| 492 core.int buildCounterStyleFunctionGradientColors = 0; | 492 core.int buildCounterStyleFunctionGradientColors = 0; |
| 493 buildStyleFunctionGradientColors() { | 493 buildStyleFunctionGradientColors() { |
| 494 var o = new api.StyleFunctionGradientColors(); | 494 var o = new api.StyleFunctionGradientColors(); |
| 495 buildCounterStyleFunctionGradientColors++; | 495 buildCounterStyleFunctionGradientColors++; |
| 496 if (buildCounterStyleFunctionGradientColors < 3) { | 496 if (buildCounterStyleFunctionGradientColors < 3) { |
| 497 o.color = "foo"; | 497 o.color = "foo"; |
| 498 o.opacity = 42.0; | 498 o.opacity = 42.0; |
| 499 } | 499 } |
| 500 buildCounterStyleFunctionGradientColors--; | 500 buildCounterStyleFunctionGradientColors--; |
| 501 return o; | 501 return o; |
| 502 } | 502 } |
| 503 | 503 |
| 504 checkStyleFunctionGradientColors(api.StyleFunctionGradientColors o) { | 504 checkStyleFunctionGradientColors(api.StyleFunctionGradientColors o) { |
| 505 buildCounterStyleFunctionGradientColors++; | 505 buildCounterStyleFunctionGradientColors++; |
| 506 if (buildCounterStyleFunctionGradientColors < 3) { | 506 if (buildCounterStyleFunctionGradientColors < 3) { |
| 507 unittest.expect(o.color, unittest.equals('foo')); | 507 unittest.expect(o.color, unittest.equals('foo')); |
| 508 unittest.expect(o.opacity, unittest.equals(42.0)); | 508 unittest.expect(o.opacity, unittest.equals(42.0)); |
| 509 } | 509 } |
| 510 buildCounterStyleFunctionGradientColors--; | 510 buildCounterStyleFunctionGradientColors--; |
| 511 } | 511 } |
| 512 | 512 |
| 513 buildUnnamed1132() { | 513 buildUnnamed790() { |
| 514 var o = new core.List<api.StyleFunctionGradientColors>(); | 514 var o = new core.List<api.StyleFunctionGradientColors>(); |
| 515 o.add(buildStyleFunctionGradientColors()); | 515 o.add(buildStyleFunctionGradientColors()); |
| 516 o.add(buildStyleFunctionGradientColors()); | 516 o.add(buildStyleFunctionGradientColors()); |
| 517 return o; | 517 return o; |
| 518 } | 518 } |
| 519 | 519 |
| 520 checkUnnamed1132(core.List<api.StyleFunctionGradientColors> o) { | 520 checkUnnamed790(core.List<api.StyleFunctionGradientColors> o) { |
| 521 unittest.expect(o, unittest.hasLength(2)); | 521 unittest.expect(o, unittest.hasLength(2)); |
| 522 checkStyleFunctionGradientColors(o[0]); | 522 checkStyleFunctionGradientColors(o[0]); |
| 523 checkStyleFunctionGradientColors(o[1]); | 523 checkStyleFunctionGradientColors(o[1]); |
| 524 } | 524 } |
| 525 | 525 |
| 526 core.int buildCounterStyleFunctionGradient = 0; | 526 core.int buildCounterStyleFunctionGradient = 0; |
| 527 buildStyleFunctionGradient() { | 527 buildStyleFunctionGradient() { |
| 528 var o = new api.StyleFunctionGradient(); | 528 var o = new api.StyleFunctionGradient(); |
| 529 buildCounterStyleFunctionGradient++; | 529 buildCounterStyleFunctionGradient++; |
| 530 if (buildCounterStyleFunctionGradient < 3) { | 530 if (buildCounterStyleFunctionGradient < 3) { |
| 531 o.colors = buildUnnamed1132(); | 531 o.colors = buildUnnamed790(); |
| 532 o.max = 42.0; | 532 o.max = 42.0; |
| 533 o.min = 42.0; | 533 o.min = 42.0; |
| 534 } | 534 } |
| 535 buildCounterStyleFunctionGradient--; | 535 buildCounterStyleFunctionGradient--; |
| 536 return o; | 536 return o; |
| 537 } | 537 } |
| 538 | 538 |
| 539 checkStyleFunctionGradient(api.StyleFunctionGradient o) { | 539 checkStyleFunctionGradient(api.StyleFunctionGradient o) { |
| 540 buildCounterStyleFunctionGradient++; | 540 buildCounterStyleFunctionGradient++; |
| 541 if (buildCounterStyleFunctionGradient < 3) { | 541 if (buildCounterStyleFunctionGradient < 3) { |
| 542 checkUnnamed1132(o.colors); | 542 checkUnnamed790(o.colors); |
| 543 unittest.expect(o.max, unittest.equals(42.0)); | 543 unittest.expect(o.max, unittest.equals(42.0)); |
| 544 unittest.expect(o.min, unittest.equals(42.0)); | 544 unittest.expect(o.min, unittest.equals(42.0)); |
| 545 } | 545 } |
| 546 buildCounterStyleFunctionGradient--; | 546 buildCounterStyleFunctionGradient--; |
| 547 } | 547 } |
| 548 | 548 |
| 549 core.int buildCounterStyleFunction = 0; | 549 core.int buildCounterStyleFunction = 0; |
| 550 buildStyleFunction() { | 550 buildStyleFunction() { |
| 551 var o = new api.StyleFunction(); | 551 var o = new api.StyleFunction(); |
| 552 buildCounterStyleFunction++; | 552 buildCounterStyleFunction++; |
| 553 if (buildCounterStyleFunction < 3) { | 553 if (buildCounterStyleFunction < 3) { |
| 554 o.buckets = buildUnnamed1131(); | 554 o.buckets = buildUnnamed789(); |
| 555 o.columnName = "foo"; | 555 o.columnName = "foo"; |
| 556 o.gradient = buildStyleFunctionGradient(); | 556 o.gradient = buildStyleFunctionGradient(); |
| 557 o.kind = "foo"; | 557 o.kind = "foo"; |
| 558 } | 558 } |
| 559 buildCounterStyleFunction--; | 559 buildCounterStyleFunction--; |
| 560 return o; | 560 return o; |
| 561 } | 561 } |
| 562 | 562 |
| 563 checkStyleFunction(api.StyleFunction o) { | 563 checkStyleFunction(api.StyleFunction o) { |
| 564 buildCounterStyleFunction++; | 564 buildCounterStyleFunction++; |
| 565 if (buildCounterStyleFunction < 3) { | 565 if (buildCounterStyleFunction < 3) { |
| 566 checkUnnamed1131(o.buckets); | 566 checkUnnamed789(o.buckets); |
| 567 unittest.expect(o.columnName, unittest.equals('foo')); | 567 unittest.expect(o.columnName, unittest.equals('foo')); |
| 568 checkStyleFunctionGradient(o.gradient); | 568 checkStyleFunctionGradient(o.gradient); |
| 569 unittest.expect(o.kind, unittest.equals('foo')); | 569 unittest.expect(o.kind, unittest.equals('foo')); |
| 570 } | 570 } |
| 571 buildCounterStyleFunction--; | 571 buildCounterStyleFunction--; |
| 572 } | 572 } |
| 573 | 573 |
| 574 core.int buildCounterStyleSetting = 0; | 574 core.int buildCounterStyleSetting = 0; |
| 575 buildStyleSetting() { | 575 buildStyleSetting() { |
| 576 var o = new api.StyleSetting(); | 576 var o = new api.StyleSetting(); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 595 checkPointStyle(o.markerOptions); | 595 checkPointStyle(o.markerOptions); |
| 596 unittest.expect(o.name, unittest.equals('foo')); | 596 unittest.expect(o.name, unittest.equals('foo')); |
| 597 checkPolygonStyle(o.polygonOptions); | 597 checkPolygonStyle(o.polygonOptions); |
| 598 checkLineStyle(o.polylineOptions); | 598 checkLineStyle(o.polylineOptions); |
| 599 unittest.expect(o.styleId, unittest.equals(42)); | 599 unittest.expect(o.styleId, unittest.equals(42)); |
| 600 unittest.expect(o.tableId, unittest.equals('foo')); | 600 unittest.expect(o.tableId, unittest.equals('foo')); |
| 601 } | 601 } |
| 602 buildCounterStyleSetting--; | 602 buildCounterStyleSetting--; |
| 603 } | 603 } |
| 604 | 604 |
| 605 buildUnnamed1133() { | 605 buildUnnamed791() { |
| 606 var o = new core.List<api.StyleSetting>(); | 606 var o = new core.List<api.StyleSetting>(); |
| 607 o.add(buildStyleSetting()); | 607 o.add(buildStyleSetting()); |
| 608 o.add(buildStyleSetting()); | 608 o.add(buildStyleSetting()); |
| 609 return o; | 609 return o; |
| 610 } | 610 } |
| 611 | 611 |
| 612 checkUnnamed1133(core.List<api.StyleSetting> o) { | 612 checkUnnamed791(core.List<api.StyleSetting> o) { |
| 613 unittest.expect(o, unittest.hasLength(2)); | 613 unittest.expect(o, unittest.hasLength(2)); |
| 614 checkStyleSetting(o[0]); | 614 checkStyleSetting(o[0]); |
| 615 checkStyleSetting(o[1]); | 615 checkStyleSetting(o[1]); |
| 616 } | 616 } |
| 617 | 617 |
| 618 core.int buildCounterStyleSettingList = 0; | 618 core.int buildCounterStyleSettingList = 0; |
| 619 buildStyleSettingList() { | 619 buildStyleSettingList() { |
| 620 var o = new api.StyleSettingList(); | 620 var o = new api.StyleSettingList(); |
| 621 buildCounterStyleSettingList++; | 621 buildCounterStyleSettingList++; |
| 622 if (buildCounterStyleSettingList < 3) { | 622 if (buildCounterStyleSettingList < 3) { |
| 623 o.items = buildUnnamed1133(); | 623 o.items = buildUnnamed791(); |
| 624 o.kind = "foo"; | 624 o.kind = "foo"; |
| 625 o.nextPageToken = "foo"; | 625 o.nextPageToken = "foo"; |
| 626 o.totalItems = 42; | 626 o.totalItems = 42; |
| 627 } | 627 } |
| 628 buildCounterStyleSettingList--; | 628 buildCounterStyleSettingList--; |
| 629 return o; | 629 return o; |
| 630 } | 630 } |
| 631 | 631 |
| 632 checkStyleSettingList(api.StyleSettingList o) { | 632 checkStyleSettingList(api.StyleSettingList o) { |
| 633 buildCounterStyleSettingList++; | 633 buildCounterStyleSettingList++; |
| 634 if (buildCounterStyleSettingList < 3) { | 634 if (buildCounterStyleSettingList < 3) { |
| 635 checkUnnamed1133(o.items); | 635 checkUnnamed791(o.items); |
| 636 unittest.expect(o.kind, unittest.equals('foo')); | 636 unittest.expect(o.kind, unittest.equals('foo')); |
| 637 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 637 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 638 unittest.expect(o.totalItems, unittest.equals(42)); | 638 unittest.expect(o.totalItems, unittest.equals(42)); |
| 639 } | 639 } |
| 640 buildCounterStyleSettingList--; | 640 buildCounterStyleSettingList--; |
| 641 } | 641 } |
| 642 | 642 |
| 643 buildUnnamed1134() { | 643 buildUnnamed792() { |
| 644 var o = new core.List<core.String>(); | 644 var o = new core.List<core.String>(); |
| 645 o.add("foo"); | 645 o.add("foo"); |
| 646 o.add("foo"); | 646 o.add("foo"); |
| 647 return o; | 647 return o; |
| 648 } | 648 } |
| 649 | 649 |
| 650 checkUnnamed1134(core.List<core.String> o) { | 650 checkUnnamed792(core.List<core.String> o) { |
| 651 unittest.expect(o, unittest.hasLength(2)); | 651 unittest.expect(o, unittest.hasLength(2)); |
| 652 unittest.expect(o[0], unittest.equals('foo')); | 652 unittest.expect(o[0], unittest.equals('foo')); |
| 653 unittest.expect(o[1], unittest.equals('foo')); | 653 unittest.expect(o[1], unittest.equals('foo')); |
| 654 } | 654 } |
| 655 | 655 |
| 656 buildUnnamed1135() { | 656 buildUnnamed793() { |
| 657 var o = new core.List<api.Column>(); | 657 var o = new core.List<api.Column>(); |
| 658 o.add(buildColumn()); | 658 o.add(buildColumn()); |
| 659 o.add(buildColumn()); | 659 o.add(buildColumn()); |
| 660 return o; | 660 return o; |
| 661 } | 661 } |
| 662 | 662 |
| 663 checkUnnamed1135(core.List<api.Column> o) { | 663 checkUnnamed793(core.List<api.Column> o) { |
| 664 unittest.expect(o, unittest.hasLength(2)); | 664 unittest.expect(o, unittest.hasLength(2)); |
| 665 checkColumn(o[0]); | 665 checkColumn(o[0]); |
| 666 checkColumn(o[1]); | 666 checkColumn(o[1]); |
| 667 } | 667 } |
| 668 | 668 |
| 669 core.int buildCounterTable = 0; | 669 core.int buildCounterTable = 0; |
| 670 buildTable() { | 670 buildTable() { |
| 671 var o = new api.Table(); | 671 var o = new api.Table(); |
| 672 buildCounterTable++; | 672 buildCounterTable++; |
| 673 if (buildCounterTable < 3) { | 673 if (buildCounterTable < 3) { |
| 674 o.attribution = "foo"; | 674 o.attribution = "foo"; |
| 675 o.attributionLink = "foo"; | 675 o.attributionLink = "foo"; |
| 676 o.baseTableIds = buildUnnamed1134(); | 676 o.baseTableIds = buildUnnamed792(); |
| 677 o.columns = buildUnnamed1135(); | 677 o.columns = buildUnnamed793(); |
| 678 o.description = "foo"; | 678 o.description = "foo"; |
| 679 o.isExportable = true; | 679 o.isExportable = true; |
| 680 o.kind = "foo"; | 680 o.kind = "foo"; |
| 681 o.name = "foo"; | 681 o.name = "foo"; |
| 682 o.sql = "foo"; | 682 o.sql = "foo"; |
| 683 o.tableId = "foo"; | 683 o.tableId = "foo"; |
| 684 } | 684 } |
| 685 buildCounterTable--; | 685 buildCounterTable--; |
| 686 return o; | 686 return o; |
| 687 } | 687 } |
| 688 | 688 |
| 689 checkTable(api.Table o) { | 689 checkTable(api.Table o) { |
| 690 buildCounterTable++; | 690 buildCounterTable++; |
| 691 if (buildCounterTable < 3) { | 691 if (buildCounterTable < 3) { |
| 692 unittest.expect(o.attribution, unittest.equals('foo')); | 692 unittest.expect(o.attribution, unittest.equals('foo')); |
| 693 unittest.expect(o.attributionLink, unittest.equals('foo')); | 693 unittest.expect(o.attributionLink, unittest.equals('foo')); |
| 694 checkUnnamed1134(o.baseTableIds); | 694 checkUnnamed792(o.baseTableIds); |
| 695 checkUnnamed1135(o.columns); | 695 checkUnnamed793(o.columns); |
| 696 unittest.expect(o.description, unittest.equals('foo')); | 696 unittest.expect(o.description, unittest.equals('foo')); |
| 697 unittest.expect(o.isExportable, unittest.isTrue); | 697 unittest.expect(o.isExportable, unittest.isTrue); |
| 698 unittest.expect(o.kind, unittest.equals('foo')); | 698 unittest.expect(o.kind, unittest.equals('foo')); |
| 699 unittest.expect(o.name, unittest.equals('foo')); | 699 unittest.expect(o.name, unittest.equals('foo')); |
| 700 unittest.expect(o.sql, unittest.equals('foo')); | 700 unittest.expect(o.sql, unittest.equals('foo')); |
| 701 unittest.expect(o.tableId, unittest.equals('foo')); | 701 unittest.expect(o.tableId, unittest.equals('foo')); |
| 702 } | 702 } |
| 703 buildCounterTable--; | 703 buildCounterTable--; |
| 704 } | 704 } |
| 705 | 705 |
| 706 buildUnnamed1136() { | 706 buildUnnamed794() { |
| 707 var o = new core.List<api.Table>(); | 707 var o = new core.List<api.Table>(); |
| 708 o.add(buildTable()); | 708 o.add(buildTable()); |
| 709 o.add(buildTable()); | 709 o.add(buildTable()); |
| 710 return o; | 710 return o; |
| 711 } | 711 } |
| 712 | 712 |
| 713 checkUnnamed1136(core.List<api.Table> o) { | 713 checkUnnamed794(core.List<api.Table> o) { |
| 714 unittest.expect(o, unittest.hasLength(2)); | 714 unittest.expect(o, unittest.hasLength(2)); |
| 715 checkTable(o[0]); | 715 checkTable(o[0]); |
| 716 checkTable(o[1]); | 716 checkTable(o[1]); |
| 717 } | 717 } |
| 718 | 718 |
| 719 core.int buildCounterTableList = 0; | 719 core.int buildCounterTableList = 0; |
| 720 buildTableList() { | 720 buildTableList() { |
| 721 var o = new api.TableList(); | 721 var o = new api.TableList(); |
| 722 buildCounterTableList++; | 722 buildCounterTableList++; |
| 723 if (buildCounterTableList < 3) { | 723 if (buildCounterTableList < 3) { |
| 724 o.items = buildUnnamed1136(); | 724 o.items = buildUnnamed794(); |
| 725 o.kind = "foo"; | 725 o.kind = "foo"; |
| 726 o.nextPageToken = "foo"; | 726 o.nextPageToken = "foo"; |
| 727 } | 727 } |
| 728 buildCounterTableList--; | 728 buildCounterTableList--; |
| 729 return o; | 729 return o; |
| 730 } | 730 } |
| 731 | 731 |
| 732 checkTableList(api.TableList o) { | 732 checkTableList(api.TableList o) { |
| 733 buildCounterTableList++; | 733 buildCounterTableList++; |
| 734 if (buildCounterTableList < 3) { | 734 if (buildCounterTableList < 3) { |
| 735 checkUnnamed1136(o.items); | 735 checkUnnamed794(o.items); |
| 736 unittest.expect(o.kind, unittest.equals('foo')); | 736 unittest.expect(o.kind, unittest.equals('foo')); |
| 737 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 737 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 738 } | 738 } |
| 739 buildCounterTableList--; | 739 buildCounterTableList--; |
| 740 } | 740 } |
| 741 | 741 |
| 742 core.int buildCounterTask = 0; | 742 core.int buildCounterTask = 0; |
| 743 buildTask() { | 743 buildTask() { |
| 744 var o = new api.Task(); | 744 var o = new api.Task(); |
| 745 buildCounterTask++; | 745 buildCounterTask++; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 759 if (buildCounterTask < 3) { | 759 if (buildCounterTask < 3) { |
| 760 unittest.expect(o.kind, unittest.equals('foo')); | 760 unittest.expect(o.kind, unittest.equals('foo')); |
| 761 unittest.expect(o.progress, unittest.equals('foo')); | 761 unittest.expect(o.progress, unittest.equals('foo')); |
| 762 unittest.expect(o.started, unittest.isTrue); | 762 unittest.expect(o.started, unittest.isTrue); |
| 763 unittest.expect(o.taskId, unittest.equals('foo')); | 763 unittest.expect(o.taskId, unittest.equals('foo')); |
| 764 unittest.expect(o.type, unittest.equals('foo')); | 764 unittest.expect(o.type, unittest.equals('foo')); |
| 765 } | 765 } |
| 766 buildCounterTask--; | 766 buildCounterTask--; |
| 767 } | 767 } |
| 768 | 768 |
| 769 buildUnnamed1137() { | 769 buildUnnamed795() { |
| 770 var o = new core.List<api.Task>(); | 770 var o = new core.List<api.Task>(); |
| 771 o.add(buildTask()); | 771 o.add(buildTask()); |
| 772 o.add(buildTask()); | 772 o.add(buildTask()); |
| 773 return o; | 773 return o; |
| 774 } | 774 } |
| 775 | 775 |
| 776 checkUnnamed1137(core.List<api.Task> o) { | 776 checkUnnamed795(core.List<api.Task> o) { |
| 777 unittest.expect(o, unittest.hasLength(2)); | 777 unittest.expect(o, unittest.hasLength(2)); |
| 778 checkTask(o[0]); | 778 checkTask(o[0]); |
| 779 checkTask(o[1]); | 779 checkTask(o[1]); |
| 780 } | 780 } |
| 781 | 781 |
| 782 core.int buildCounterTaskList = 0; | 782 core.int buildCounterTaskList = 0; |
| 783 buildTaskList() { | 783 buildTaskList() { |
| 784 var o = new api.TaskList(); | 784 var o = new api.TaskList(); |
| 785 buildCounterTaskList++; | 785 buildCounterTaskList++; |
| 786 if (buildCounterTaskList < 3) { | 786 if (buildCounterTaskList < 3) { |
| 787 o.items = buildUnnamed1137(); | 787 o.items = buildUnnamed795(); |
| 788 o.kind = "foo"; | 788 o.kind = "foo"; |
| 789 o.nextPageToken = "foo"; | 789 o.nextPageToken = "foo"; |
| 790 o.totalItems = 42; | 790 o.totalItems = 42; |
| 791 } | 791 } |
| 792 buildCounterTaskList--; | 792 buildCounterTaskList--; |
| 793 return o; | 793 return o; |
| 794 } | 794 } |
| 795 | 795 |
| 796 checkTaskList(api.TaskList o) { | 796 checkTaskList(api.TaskList o) { |
| 797 buildCounterTaskList++; | 797 buildCounterTaskList++; |
| 798 if (buildCounterTaskList < 3) { | 798 if (buildCounterTaskList < 3) { |
| 799 checkUnnamed1137(o.items); | 799 checkUnnamed795(o.items); |
| 800 unittest.expect(o.kind, unittest.equals('foo')); | 800 unittest.expect(o.kind, unittest.equals('foo')); |
| 801 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 801 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 802 unittest.expect(o.totalItems, unittest.equals(42)); | 802 unittest.expect(o.totalItems, unittest.equals(42)); |
| 803 } | 803 } |
| 804 buildCounterTaskList--; | 804 buildCounterTaskList--; |
| 805 } | 805 } |
| 806 | 806 |
| 807 buildUnnamed1138() { | 807 buildUnnamed796() { |
| 808 var o = new core.List<core.String>(); | 808 var o = new core.List<core.String>(); |
| 809 o.add("foo"); | 809 o.add("foo"); |
| 810 o.add("foo"); | 810 o.add("foo"); |
| 811 return o; | 811 return o; |
| 812 } | 812 } |
| 813 | 813 |
| 814 checkUnnamed1138(core.List<core.String> o) { | 814 checkUnnamed796(core.List<core.String> o) { |
| 815 unittest.expect(o, unittest.hasLength(2)); | 815 unittest.expect(o, unittest.hasLength(2)); |
| 816 unittest.expect(o[0], unittest.equals('foo')); | 816 unittest.expect(o[0], unittest.equals('foo')); |
| 817 unittest.expect(o[1], unittest.equals('foo')); | 817 unittest.expect(o[1], unittest.equals('foo')); |
| 818 } | 818 } |
| 819 | 819 |
| 820 core.int buildCounterTemplate = 0; | 820 core.int buildCounterTemplate = 0; |
| 821 buildTemplate() { | 821 buildTemplate() { |
| 822 var o = new api.Template(); | 822 var o = new api.Template(); |
| 823 buildCounterTemplate++; | 823 buildCounterTemplate++; |
| 824 if (buildCounterTemplate < 3) { | 824 if (buildCounterTemplate < 3) { |
| 825 o.automaticColumnNames = buildUnnamed1138(); | 825 o.automaticColumnNames = buildUnnamed796(); |
| 826 o.body = "foo"; | 826 o.body = "foo"; |
| 827 o.kind = "foo"; | 827 o.kind = "foo"; |
| 828 o.name = "foo"; | 828 o.name = "foo"; |
| 829 o.tableId = "foo"; | 829 o.tableId = "foo"; |
| 830 o.templateId = 42; | 830 o.templateId = 42; |
| 831 } | 831 } |
| 832 buildCounterTemplate--; | 832 buildCounterTemplate--; |
| 833 return o; | 833 return o; |
| 834 } | 834 } |
| 835 | 835 |
| 836 checkTemplate(api.Template o) { | 836 checkTemplate(api.Template o) { |
| 837 buildCounterTemplate++; | 837 buildCounterTemplate++; |
| 838 if (buildCounterTemplate < 3) { | 838 if (buildCounterTemplate < 3) { |
| 839 checkUnnamed1138(o.automaticColumnNames); | 839 checkUnnamed796(o.automaticColumnNames); |
| 840 unittest.expect(o.body, unittest.equals('foo')); | 840 unittest.expect(o.body, unittest.equals('foo')); |
| 841 unittest.expect(o.kind, unittest.equals('foo')); | 841 unittest.expect(o.kind, unittest.equals('foo')); |
| 842 unittest.expect(o.name, unittest.equals('foo')); | 842 unittest.expect(o.name, unittest.equals('foo')); |
| 843 unittest.expect(o.tableId, unittest.equals('foo')); | 843 unittest.expect(o.tableId, unittest.equals('foo')); |
| 844 unittest.expect(o.templateId, unittest.equals(42)); | 844 unittest.expect(o.templateId, unittest.equals(42)); |
| 845 } | 845 } |
| 846 buildCounterTemplate--; | 846 buildCounterTemplate--; |
| 847 } | 847 } |
| 848 | 848 |
| 849 buildUnnamed1139() { | 849 buildUnnamed797() { |
| 850 var o = new core.List<api.Template>(); | 850 var o = new core.List<api.Template>(); |
| 851 o.add(buildTemplate()); | 851 o.add(buildTemplate()); |
| 852 o.add(buildTemplate()); | 852 o.add(buildTemplate()); |
| 853 return o; | 853 return o; |
| 854 } | 854 } |
| 855 | 855 |
| 856 checkUnnamed1139(core.List<api.Template> o) { | 856 checkUnnamed797(core.List<api.Template> o) { |
| 857 unittest.expect(o, unittest.hasLength(2)); | 857 unittest.expect(o, unittest.hasLength(2)); |
| 858 checkTemplate(o[0]); | 858 checkTemplate(o[0]); |
| 859 checkTemplate(o[1]); | 859 checkTemplate(o[1]); |
| 860 } | 860 } |
| 861 | 861 |
| 862 core.int buildCounterTemplateList = 0; | 862 core.int buildCounterTemplateList = 0; |
| 863 buildTemplateList() { | 863 buildTemplateList() { |
| 864 var o = new api.TemplateList(); | 864 var o = new api.TemplateList(); |
| 865 buildCounterTemplateList++; | 865 buildCounterTemplateList++; |
| 866 if (buildCounterTemplateList < 3) { | 866 if (buildCounterTemplateList < 3) { |
| 867 o.items = buildUnnamed1139(); | 867 o.items = buildUnnamed797(); |
| 868 o.kind = "foo"; | 868 o.kind = "foo"; |
| 869 o.nextPageToken = "foo"; | 869 o.nextPageToken = "foo"; |
| 870 o.totalItems = 42; | 870 o.totalItems = 42; |
| 871 } | 871 } |
| 872 buildCounterTemplateList--; | 872 buildCounterTemplateList--; |
| 873 return o; | 873 return o; |
| 874 } | 874 } |
| 875 | 875 |
| 876 checkTemplateList(api.TemplateList o) { | 876 checkTemplateList(api.TemplateList o) { |
| 877 buildCounterTemplateList++; | 877 buildCounterTemplateList++; |
| 878 if (buildCounterTemplateList < 3) { | 878 if (buildCounterTemplateList < 3) { |
| 879 checkUnnamed1139(o.items); | 879 checkUnnamed797(o.items); |
| 880 unittest.expect(o.kind, unittest.equals('foo')); | 880 unittest.expect(o.kind, unittest.equals('foo')); |
| 881 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 881 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 882 unittest.expect(o.totalItems, unittest.equals(42)); | 882 unittest.expect(o.totalItems, unittest.equals(42)); |
| 883 } | 883 } |
| 884 buildCounterTemplateList--; | 884 buildCounterTemplateList--; |
| 885 } | 885 } |
| 886 | 886 |
| 887 | 887 |
| 888 main() { | 888 main() { |
| 889 unittest.group("obj-schema-Bucket", () { | 889 unittest.group("obj-schema-Bucket", () { |
| (...skipping 2029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2919 res.update(arg_request, arg_tableId, arg_templateId).then(unittest.expectA
sync(((api.Template response) { | 2919 res.update(arg_request, arg_tableId, arg_templateId).then(unittest.expectA
sync(((api.Template response) { |
| 2920 checkTemplate(response); | 2920 checkTemplate(response); |
| 2921 }))); | 2921 }))); |
| 2922 }); | 2922 }); |
| 2923 | 2923 |
| 2924 }); | 2924 }); |
| 2925 | 2925 |
| 2926 | 2926 |
| 2927 } | 2927 } |
| 2928 | 2928 |
| OLD | NEW |