| OLD | NEW |
| 1 library googleapis.prediction.v1_6.test; | 1 library googleapis.prediction.v1_6.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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 checkAnalyzeDataDescriptionFeaturesCategoricalValues(api.AnalyzeDataDescriptionF
eaturesCategoricalValues o) { | 31 checkAnalyzeDataDescriptionFeaturesCategoricalValues(api.AnalyzeDataDescriptionF
eaturesCategoricalValues o) { |
| 32 buildCounterAnalyzeDataDescriptionFeaturesCategoricalValues++; | 32 buildCounterAnalyzeDataDescriptionFeaturesCategoricalValues++; |
| 33 if (buildCounterAnalyzeDataDescriptionFeaturesCategoricalValues < 3) { | 33 if (buildCounterAnalyzeDataDescriptionFeaturesCategoricalValues < 3) { |
| 34 unittest.expect(o.count, unittest.equals('foo')); | 34 unittest.expect(o.count, unittest.equals('foo')); |
| 35 unittest.expect(o.value, unittest.equals('foo')); | 35 unittest.expect(o.value, unittest.equals('foo')); |
| 36 } | 36 } |
| 37 buildCounterAnalyzeDataDescriptionFeaturesCategoricalValues--; | 37 buildCounterAnalyzeDataDescriptionFeaturesCategoricalValues--; |
| 38 } | 38 } |
| 39 | 39 |
| 40 buildUnnamed590() { | 40 buildUnnamed799() { |
| 41 var o = new core.List<api.AnalyzeDataDescriptionFeaturesCategoricalValues>(); | 41 var o = new core.List<api.AnalyzeDataDescriptionFeaturesCategoricalValues>(); |
| 42 o.add(buildAnalyzeDataDescriptionFeaturesCategoricalValues()); | 42 o.add(buildAnalyzeDataDescriptionFeaturesCategoricalValues()); |
| 43 o.add(buildAnalyzeDataDescriptionFeaturesCategoricalValues()); | 43 o.add(buildAnalyzeDataDescriptionFeaturesCategoricalValues()); |
| 44 return o; | 44 return o; |
| 45 } | 45 } |
| 46 | 46 |
| 47 checkUnnamed590(core.List<api.AnalyzeDataDescriptionFeaturesCategoricalValues> o
) { | 47 checkUnnamed799(core.List<api.AnalyzeDataDescriptionFeaturesCategoricalValues> o
) { |
| 48 unittest.expect(o, unittest.hasLength(2)); | 48 unittest.expect(o, unittest.hasLength(2)); |
| 49 checkAnalyzeDataDescriptionFeaturesCategoricalValues(o[0]); | 49 checkAnalyzeDataDescriptionFeaturesCategoricalValues(o[0]); |
| 50 checkAnalyzeDataDescriptionFeaturesCategoricalValues(o[1]); | 50 checkAnalyzeDataDescriptionFeaturesCategoricalValues(o[1]); |
| 51 } | 51 } |
| 52 | 52 |
| 53 core.int buildCounterAnalyzeDataDescriptionFeaturesCategorical = 0; | 53 core.int buildCounterAnalyzeDataDescriptionFeaturesCategorical = 0; |
| 54 buildAnalyzeDataDescriptionFeaturesCategorical() { | 54 buildAnalyzeDataDescriptionFeaturesCategorical() { |
| 55 var o = new api.AnalyzeDataDescriptionFeaturesCategorical(); | 55 var o = new api.AnalyzeDataDescriptionFeaturesCategorical(); |
| 56 buildCounterAnalyzeDataDescriptionFeaturesCategorical++; | 56 buildCounterAnalyzeDataDescriptionFeaturesCategorical++; |
| 57 if (buildCounterAnalyzeDataDescriptionFeaturesCategorical < 3) { | 57 if (buildCounterAnalyzeDataDescriptionFeaturesCategorical < 3) { |
| 58 o.count = "foo"; | 58 o.count = "foo"; |
| 59 o.values = buildUnnamed590(); | 59 o.values = buildUnnamed799(); |
| 60 } | 60 } |
| 61 buildCounterAnalyzeDataDescriptionFeaturesCategorical--; | 61 buildCounterAnalyzeDataDescriptionFeaturesCategorical--; |
| 62 return o; | 62 return o; |
| 63 } | 63 } |
| 64 | 64 |
| 65 checkAnalyzeDataDescriptionFeaturesCategorical(api.AnalyzeDataDescriptionFeature
sCategorical o) { | 65 checkAnalyzeDataDescriptionFeaturesCategorical(api.AnalyzeDataDescriptionFeature
sCategorical o) { |
| 66 buildCounterAnalyzeDataDescriptionFeaturesCategorical++; | 66 buildCounterAnalyzeDataDescriptionFeaturesCategorical++; |
| 67 if (buildCounterAnalyzeDataDescriptionFeaturesCategorical < 3) { | 67 if (buildCounterAnalyzeDataDescriptionFeaturesCategorical < 3) { |
| 68 unittest.expect(o.count, unittest.equals('foo')); | 68 unittest.expect(o.count, unittest.equals('foo')); |
| 69 checkUnnamed590(o.values); | 69 checkUnnamed799(o.values); |
| 70 } | 70 } |
| 71 buildCounterAnalyzeDataDescriptionFeaturesCategorical--; | 71 buildCounterAnalyzeDataDescriptionFeaturesCategorical--; |
| 72 } | 72 } |
| 73 | 73 |
| 74 core.int buildCounterAnalyzeDataDescriptionFeaturesNumeric = 0; | 74 core.int buildCounterAnalyzeDataDescriptionFeaturesNumeric = 0; |
| 75 buildAnalyzeDataDescriptionFeaturesNumeric() { | 75 buildAnalyzeDataDescriptionFeaturesNumeric() { |
| 76 var o = new api.AnalyzeDataDescriptionFeaturesNumeric(); | 76 var o = new api.AnalyzeDataDescriptionFeaturesNumeric(); |
| 77 buildCounterAnalyzeDataDescriptionFeaturesNumeric++; | 77 buildCounterAnalyzeDataDescriptionFeaturesNumeric++; |
| 78 if (buildCounterAnalyzeDataDescriptionFeaturesNumeric < 3) { | 78 if (buildCounterAnalyzeDataDescriptionFeaturesNumeric < 3) { |
| 79 o.count = "foo"; | 79 o.count = "foo"; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 buildCounterAnalyzeDataDescriptionFeatures++; | 131 buildCounterAnalyzeDataDescriptionFeatures++; |
| 132 if (buildCounterAnalyzeDataDescriptionFeatures < 3) { | 132 if (buildCounterAnalyzeDataDescriptionFeatures < 3) { |
| 133 checkAnalyzeDataDescriptionFeaturesCategorical(o.categorical); | 133 checkAnalyzeDataDescriptionFeaturesCategorical(o.categorical); |
| 134 unittest.expect(o.index, unittest.equals('foo')); | 134 unittest.expect(o.index, unittest.equals('foo')); |
| 135 checkAnalyzeDataDescriptionFeaturesNumeric(o.numeric); | 135 checkAnalyzeDataDescriptionFeaturesNumeric(o.numeric); |
| 136 checkAnalyzeDataDescriptionFeaturesText(o.text); | 136 checkAnalyzeDataDescriptionFeaturesText(o.text); |
| 137 } | 137 } |
| 138 buildCounterAnalyzeDataDescriptionFeatures--; | 138 buildCounterAnalyzeDataDescriptionFeatures--; |
| 139 } | 139 } |
| 140 | 140 |
| 141 buildUnnamed591() { | 141 buildUnnamed800() { |
| 142 var o = new core.List<api.AnalyzeDataDescriptionFeatures>(); | 142 var o = new core.List<api.AnalyzeDataDescriptionFeatures>(); |
| 143 o.add(buildAnalyzeDataDescriptionFeatures()); | 143 o.add(buildAnalyzeDataDescriptionFeatures()); |
| 144 o.add(buildAnalyzeDataDescriptionFeatures()); | 144 o.add(buildAnalyzeDataDescriptionFeatures()); |
| 145 return o; | 145 return o; |
| 146 } | 146 } |
| 147 | 147 |
| 148 checkUnnamed591(core.List<api.AnalyzeDataDescriptionFeatures> o) { | 148 checkUnnamed800(core.List<api.AnalyzeDataDescriptionFeatures> o) { |
| 149 unittest.expect(o, unittest.hasLength(2)); | 149 unittest.expect(o, unittest.hasLength(2)); |
| 150 checkAnalyzeDataDescriptionFeatures(o[0]); | 150 checkAnalyzeDataDescriptionFeatures(o[0]); |
| 151 checkAnalyzeDataDescriptionFeatures(o[1]); | 151 checkAnalyzeDataDescriptionFeatures(o[1]); |
| 152 } | 152 } |
| 153 | 153 |
| 154 core.int buildCounterAnalyzeDataDescriptionOutputFeatureNumeric = 0; | 154 core.int buildCounterAnalyzeDataDescriptionOutputFeatureNumeric = 0; |
| 155 buildAnalyzeDataDescriptionOutputFeatureNumeric() { | 155 buildAnalyzeDataDescriptionOutputFeatureNumeric() { |
| 156 var o = new api.AnalyzeDataDescriptionOutputFeatureNumeric(); | 156 var o = new api.AnalyzeDataDescriptionOutputFeatureNumeric(); |
| 157 buildCounterAnalyzeDataDescriptionOutputFeatureNumeric++; | 157 buildCounterAnalyzeDataDescriptionOutputFeatureNumeric++; |
| 158 if (buildCounterAnalyzeDataDescriptionOutputFeatureNumeric < 3) { | 158 if (buildCounterAnalyzeDataDescriptionOutputFeatureNumeric < 3) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 188 | 188 |
| 189 checkAnalyzeDataDescriptionOutputFeatureText(api.AnalyzeDataDescriptionOutputFea
tureText o) { | 189 checkAnalyzeDataDescriptionOutputFeatureText(api.AnalyzeDataDescriptionOutputFea
tureText o) { |
| 190 buildCounterAnalyzeDataDescriptionOutputFeatureText++; | 190 buildCounterAnalyzeDataDescriptionOutputFeatureText++; |
| 191 if (buildCounterAnalyzeDataDescriptionOutputFeatureText < 3) { | 191 if (buildCounterAnalyzeDataDescriptionOutputFeatureText < 3) { |
| 192 unittest.expect(o.count, unittest.equals('foo')); | 192 unittest.expect(o.count, unittest.equals('foo')); |
| 193 unittest.expect(o.value, unittest.equals('foo')); | 193 unittest.expect(o.value, unittest.equals('foo')); |
| 194 } | 194 } |
| 195 buildCounterAnalyzeDataDescriptionOutputFeatureText--; | 195 buildCounterAnalyzeDataDescriptionOutputFeatureText--; |
| 196 } | 196 } |
| 197 | 197 |
| 198 buildUnnamed592() { | 198 buildUnnamed801() { |
| 199 var o = new core.List<api.AnalyzeDataDescriptionOutputFeatureText>(); | 199 var o = new core.List<api.AnalyzeDataDescriptionOutputFeatureText>(); |
| 200 o.add(buildAnalyzeDataDescriptionOutputFeatureText()); | 200 o.add(buildAnalyzeDataDescriptionOutputFeatureText()); |
| 201 o.add(buildAnalyzeDataDescriptionOutputFeatureText()); | 201 o.add(buildAnalyzeDataDescriptionOutputFeatureText()); |
| 202 return o; | 202 return o; |
| 203 } | 203 } |
| 204 | 204 |
| 205 checkUnnamed592(core.List<api.AnalyzeDataDescriptionOutputFeatureText> o) { | 205 checkUnnamed801(core.List<api.AnalyzeDataDescriptionOutputFeatureText> o) { |
| 206 unittest.expect(o, unittest.hasLength(2)); | 206 unittest.expect(o, unittest.hasLength(2)); |
| 207 checkAnalyzeDataDescriptionOutputFeatureText(o[0]); | 207 checkAnalyzeDataDescriptionOutputFeatureText(o[0]); |
| 208 checkAnalyzeDataDescriptionOutputFeatureText(o[1]); | 208 checkAnalyzeDataDescriptionOutputFeatureText(o[1]); |
| 209 } | 209 } |
| 210 | 210 |
| 211 core.int buildCounterAnalyzeDataDescriptionOutputFeature = 0; | 211 core.int buildCounterAnalyzeDataDescriptionOutputFeature = 0; |
| 212 buildAnalyzeDataDescriptionOutputFeature() { | 212 buildAnalyzeDataDescriptionOutputFeature() { |
| 213 var o = new api.AnalyzeDataDescriptionOutputFeature(); | 213 var o = new api.AnalyzeDataDescriptionOutputFeature(); |
| 214 buildCounterAnalyzeDataDescriptionOutputFeature++; | 214 buildCounterAnalyzeDataDescriptionOutputFeature++; |
| 215 if (buildCounterAnalyzeDataDescriptionOutputFeature < 3) { | 215 if (buildCounterAnalyzeDataDescriptionOutputFeature < 3) { |
| 216 o.numeric = buildAnalyzeDataDescriptionOutputFeatureNumeric(); | 216 o.numeric = buildAnalyzeDataDescriptionOutputFeatureNumeric(); |
| 217 o.text = buildUnnamed592(); | 217 o.text = buildUnnamed801(); |
| 218 } | 218 } |
| 219 buildCounterAnalyzeDataDescriptionOutputFeature--; | 219 buildCounterAnalyzeDataDescriptionOutputFeature--; |
| 220 return o; | 220 return o; |
| 221 } | 221 } |
| 222 | 222 |
| 223 checkAnalyzeDataDescriptionOutputFeature(api.AnalyzeDataDescriptionOutputFeature
o) { | 223 checkAnalyzeDataDescriptionOutputFeature(api.AnalyzeDataDescriptionOutputFeature
o) { |
| 224 buildCounterAnalyzeDataDescriptionOutputFeature++; | 224 buildCounterAnalyzeDataDescriptionOutputFeature++; |
| 225 if (buildCounterAnalyzeDataDescriptionOutputFeature < 3) { | 225 if (buildCounterAnalyzeDataDescriptionOutputFeature < 3) { |
| 226 checkAnalyzeDataDescriptionOutputFeatureNumeric(o.numeric); | 226 checkAnalyzeDataDescriptionOutputFeatureNumeric(o.numeric); |
| 227 checkUnnamed592(o.text); | 227 checkUnnamed801(o.text); |
| 228 } | 228 } |
| 229 buildCounterAnalyzeDataDescriptionOutputFeature--; | 229 buildCounterAnalyzeDataDescriptionOutputFeature--; |
| 230 } | 230 } |
| 231 | 231 |
| 232 core.int buildCounterAnalyzeDataDescription = 0; | 232 core.int buildCounterAnalyzeDataDescription = 0; |
| 233 buildAnalyzeDataDescription() { | 233 buildAnalyzeDataDescription() { |
| 234 var o = new api.AnalyzeDataDescription(); | 234 var o = new api.AnalyzeDataDescription(); |
| 235 buildCounterAnalyzeDataDescription++; | 235 buildCounterAnalyzeDataDescription++; |
| 236 if (buildCounterAnalyzeDataDescription < 3) { | 236 if (buildCounterAnalyzeDataDescription < 3) { |
| 237 o.features = buildUnnamed591(); | 237 o.features = buildUnnamed800(); |
| 238 o.outputFeature = buildAnalyzeDataDescriptionOutputFeature(); | 238 o.outputFeature = buildAnalyzeDataDescriptionOutputFeature(); |
| 239 } | 239 } |
| 240 buildCounterAnalyzeDataDescription--; | 240 buildCounterAnalyzeDataDescription--; |
| 241 return o; | 241 return o; |
| 242 } | 242 } |
| 243 | 243 |
| 244 checkAnalyzeDataDescription(api.AnalyzeDataDescription o) { | 244 checkAnalyzeDataDescription(api.AnalyzeDataDescription o) { |
| 245 buildCounterAnalyzeDataDescription++; | 245 buildCounterAnalyzeDataDescription++; |
| 246 if (buildCounterAnalyzeDataDescription < 3) { | 246 if (buildCounterAnalyzeDataDescription < 3) { |
| 247 checkUnnamed591(o.features); | 247 checkUnnamed800(o.features); |
| 248 checkAnalyzeDataDescriptionOutputFeature(o.outputFeature); | 248 checkAnalyzeDataDescriptionOutputFeature(o.outputFeature); |
| 249 } | 249 } |
| 250 buildCounterAnalyzeDataDescription--; | 250 buildCounterAnalyzeDataDescription--; |
| 251 } | 251 } |
| 252 | 252 |
| 253 buildUnnamed593() { | 253 buildUnnamed802() { |
| 254 var o = new core.Map<core.String, core.String>(); | 254 var o = new core.Map<core.String, core.String>(); |
| 255 o["x"] = "foo"; | 255 o["x"] = "foo"; |
| 256 o["y"] = "foo"; | 256 o["y"] = "foo"; |
| 257 return o; | 257 return o; |
| 258 } | 258 } |
| 259 | 259 |
| 260 checkUnnamed593(core.Map<core.String, core.String> o) { | 260 checkUnnamed802(core.Map<core.String, core.String> o) { |
| 261 unittest.expect(o, unittest.hasLength(2)); | 261 unittest.expect(o, unittest.hasLength(2)); |
| 262 unittest.expect(o["x"], unittest.equals('foo')); | 262 unittest.expect(o["x"], unittest.equals('foo')); |
| 263 unittest.expect(o["y"], unittest.equals('foo')); | 263 unittest.expect(o["y"], unittest.equals('foo')); |
| 264 } | 264 } |
| 265 | 265 |
| 266 buildUnnamed594() { | 266 buildUnnamed803() { |
| 267 var o = new core.List<core.Map<core.String, core.String>>(); | 267 var o = new core.List<core.Map<core.String, core.String>>(); |
| 268 o.add(buildUnnamed593()); | 268 o.add(buildUnnamed802()); |
| 269 o.add(buildUnnamed593()); | 269 o.add(buildUnnamed802()); |
| 270 return o; | 270 return o; |
| 271 } | 271 } |
| 272 | 272 |
| 273 checkUnnamed594(core.List<core.Map<core.String, core.String>> o) { | 273 checkUnnamed803(core.List<core.Map<core.String, core.String>> o) { |
| 274 unittest.expect(o, unittest.hasLength(2)); | 274 unittest.expect(o, unittest.hasLength(2)); |
| 275 checkUnnamed593(o[0]); | 275 checkUnnamed802(o[0]); |
| 276 checkUnnamed593(o[1]); | 276 checkUnnamed802(o[1]); |
| 277 } | 277 } |
| 278 | 278 |
| 279 buildUnnamed595() { | 279 buildUnnamed804() { |
| 280 var o = new core.Map<core.String, core.String>(); | 280 var o = new core.Map<core.String, core.String>(); |
| 281 o["x"] = "foo"; | 281 o["x"] = "foo"; |
| 282 o["y"] = "foo"; | 282 o["y"] = "foo"; |
| 283 return o; | 283 return o; |
| 284 } | 284 } |
| 285 | 285 |
| 286 checkUnnamed595(core.Map<core.String, core.String> o) { | 286 checkUnnamed804(core.Map<core.String, core.String> o) { |
| 287 unittest.expect(o, unittest.hasLength(2)); | 287 unittest.expect(o, unittest.hasLength(2)); |
| 288 unittest.expect(o["x"], unittest.equals('foo')); | 288 unittest.expect(o["x"], unittest.equals('foo')); |
| 289 unittest.expect(o["y"], unittest.equals('foo')); | 289 unittest.expect(o["y"], unittest.equals('foo')); |
| 290 } | 290 } |
| 291 | 291 |
| 292 buildUnnamed596() { | 292 buildUnnamed805() { |
| 293 var o = new core.Map<core.String, core.Map<core.String, core.String>>(); | 293 var o = new core.Map<core.String, core.Map<core.String, core.String>>(); |
| 294 o["x"] = buildUnnamed595(); | 294 o["x"] = buildUnnamed804(); |
| 295 o["y"] = buildUnnamed595(); | 295 o["y"] = buildUnnamed804(); |
| 296 return o; | 296 return o; |
| 297 } | 297 } |
| 298 | 298 |
| 299 checkUnnamed596(core.Map<core.String, core.Map<core.String, core.String>> o) { | 299 checkUnnamed805(core.Map<core.String, core.Map<core.String, core.String>> o) { |
| 300 unittest.expect(o, unittest.hasLength(2)); | 300 unittest.expect(o, unittest.hasLength(2)); |
| 301 checkUnnamed595(o["x"]); | 301 checkUnnamed804(o["x"]); |
| 302 checkUnnamed595(o["y"]); | 302 checkUnnamed804(o["y"]); |
| 303 } | 303 } |
| 304 | 304 |
| 305 buildUnnamed597() { | 305 buildUnnamed806() { |
| 306 var o = new core.Map<core.String, core.String>(); | 306 var o = new core.Map<core.String, core.String>(); |
| 307 o["x"] = "foo"; | 307 o["x"] = "foo"; |
| 308 o["y"] = "foo"; | 308 o["y"] = "foo"; |
| 309 return o; | 309 return o; |
| 310 } | 310 } |
| 311 | 311 |
| 312 checkUnnamed597(core.Map<core.String, core.String> o) { | 312 checkUnnamed806(core.Map<core.String, core.String> o) { |
| 313 unittest.expect(o, unittest.hasLength(2)); | 313 unittest.expect(o, unittest.hasLength(2)); |
| 314 unittest.expect(o["x"], unittest.equals('foo')); | 314 unittest.expect(o["x"], unittest.equals('foo')); |
| 315 unittest.expect(o["y"], unittest.equals('foo')); | 315 unittest.expect(o["y"], unittest.equals('foo')); |
| 316 } | 316 } |
| 317 | 317 |
| 318 core.int buildCounterAnalyzeModelDescription = 0; | 318 core.int buildCounterAnalyzeModelDescription = 0; |
| 319 buildAnalyzeModelDescription() { | 319 buildAnalyzeModelDescription() { |
| 320 var o = new api.AnalyzeModelDescription(); | 320 var o = new api.AnalyzeModelDescription(); |
| 321 buildCounterAnalyzeModelDescription++; | 321 buildCounterAnalyzeModelDescription++; |
| 322 if (buildCounterAnalyzeModelDescription < 3) { | 322 if (buildCounterAnalyzeModelDescription < 3) { |
| 323 o.confusionMatrix = buildUnnamed596(); | 323 o.confusionMatrix = buildUnnamed805(); |
| 324 o.confusionMatrixRowTotals = buildUnnamed597(); | 324 o.confusionMatrixRowTotals = buildUnnamed806(); |
| 325 o.modelinfo = buildInsert2(); | 325 o.modelinfo = buildInsert2(); |
| 326 } | 326 } |
| 327 buildCounterAnalyzeModelDescription--; | 327 buildCounterAnalyzeModelDescription--; |
| 328 return o; | 328 return o; |
| 329 } | 329 } |
| 330 | 330 |
| 331 checkAnalyzeModelDescription(api.AnalyzeModelDescription o) { | 331 checkAnalyzeModelDescription(api.AnalyzeModelDescription o) { |
| 332 buildCounterAnalyzeModelDescription++; | 332 buildCounterAnalyzeModelDescription++; |
| 333 if (buildCounterAnalyzeModelDescription < 3) { | 333 if (buildCounterAnalyzeModelDescription < 3) { |
| 334 checkUnnamed596(o.confusionMatrix); | 334 checkUnnamed805(o.confusionMatrix); |
| 335 checkUnnamed597(o.confusionMatrixRowTotals); | 335 checkUnnamed806(o.confusionMatrixRowTotals); |
| 336 checkInsert2(o.modelinfo); | 336 checkInsert2(o.modelinfo); |
| 337 } | 337 } |
| 338 buildCounterAnalyzeModelDescription--; | 338 buildCounterAnalyzeModelDescription--; |
| 339 } | 339 } |
| 340 | 340 |
| 341 core.int buildCounterAnalyze = 0; | 341 core.int buildCounterAnalyze = 0; |
| 342 buildAnalyze() { | 342 buildAnalyze() { |
| 343 var o = new api.Analyze(); | 343 var o = new api.Analyze(); |
| 344 buildCounterAnalyze++; | 344 buildCounterAnalyze++; |
| 345 if (buildCounterAnalyze < 3) { | 345 if (buildCounterAnalyze < 3) { |
| 346 o.dataDescription = buildAnalyzeDataDescription(); | 346 o.dataDescription = buildAnalyzeDataDescription(); |
| 347 o.errors = buildUnnamed594(); | 347 o.errors = buildUnnamed803(); |
| 348 o.id = "foo"; | 348 o.id = "foo"; |
| 349 o.kind = "foo"; | 349 o.kind = "foo"; |
| 350 o.modelDescription = buildAnalyzeModelDescription(); | 350 o.modelDescription = buildAnalyzeModelDescription(); |
| 351 o.selfLink = "foo"; | 351 o.selfLink = "foo"; |
| 352 } | 352 } |
| 353 buildCounterAnalyze--; | 353 buildCounterAnalyze--; |
| 354 return o; | 354 return o; |
| 355 } | 355 } |
| 356 | 356 |
| 357 checkAnalyze(api.Analyze o) { | 357 checkAnalyze(api.Analyze o) { |
| 358 buildCounterAnalyze++; | 358 buildCounterAnalyze++; |
| 359 if (buildCounterAnalyze < 3) { | 359 if (buildCounterAnalyze < 3) { |
| 360 checkAnalyzeDataDescription(o.dataDescription); | 360 checkAnalyzeDataDescription(o.dataDescription); |
| 361 checkUnnamed594(o.errors); | 361 checkUnnamed803(o.errors); |
| 362 unittest.expect(o.id, unittest.equals('foo')); | 362 unittest.expect(o.id, unittest.equals('foo')); |
| 363 unittest.expect(o.kind, unittest.equals('foo')); | 363 unittest.expect(o.kind, unittest.equals('foo')); |
| 364 checkAnalyzeModelDescription(o.modelDescription); | 364 checkAnalyzeModelDescription(o.modelDescription); |
| 365 unittest.expect(o.selfLink, unittest.equals('foo')); | 365 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 366 } | 366 } |
| 367 buildCounterAnalyze--; | 367 buildCounterAnalyze--; |
| 368 } | 368 } |
| 369 | 369 |
| 370 buildUnnamed598() { | 370 buildUnnamed807() { |
| 371 var o = new core.List<core.Object>(); | 371 var o = new core.List<core.Object>(); |
| 372 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 372 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 373 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 373 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 374 return o; | 374 return o; |
| 375 } | 375 } |
| 376 | 376 |
| 377 checkUnnamed598(core.List<core.Object> o) { | 377 checkUnnamed807(core.List<core.Object> o) { |
| 378 unittest.expect(o, unittest.hasLength(2)); | 378 unittest.expect(o, unittest.hasLength(2)); |
| 379 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')); | 379 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')); |
| 380 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')); | 380 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')); |
| 381 } | 381 } |
| 382 | 382 |
| 383 core.int buildCounterInputInput = 0; | 383 core.int buildCounterInputInput = 0; |
| 384 buildInputInput() { | 384 buildInputInput() { |
| 385 var o = new api.InputInput(); | 385 var o = new api.InputInput(); |
| 386 buildCounterInputInput++; | 386 buildCounterInputInput++; |
| 387 if (buildCounterInputInput < 3) { | 387 if (buildCounterInputInput < 3) { |
| 388 o.csvInstance = buildUnnamed598(); | 388 o.csvInstance = buildUnnamed807(); |
| 389 } | 389 } |
| 390 buildCounterInputInput--; | 390 buildCounterInputInput--; |
| 391 return o; | 391 return o; |
| 392 } | 392 } |
| 393 | 393 |
| 394 checkInputInput(api.InputInput o) { | 394 checkInputInput(api.InputInput o) { |
| 395 buildCounterInputInput++; | 395 buildCounterInputInput++; |
| 396 if (buildCounterInputInput < 3) { | 396 if (buildCounterInputInput < 3) { |
| 397 checkUnnamed598(o.csvInstance); | 397 checkUnnamed807(o.csvInstance); |
| 398 } | 398 } |
| 399 buildCounterInputInput--; | 399 buildCounterInputInput--; |
| 400 } | 400 } |
| 401 | 401 |
| 402 core.int buildCounterInput = 0; | 402 core.int buildCounterInput = 0; |
| 403 buildInput() { | 403 buildInput() { |
| 404 var o = new api.Input(); | 404 var o = new api.Input(); |
| 405 buildCounterInput++; | 405 buildCounterInput++; |
| 406 if (buildCounterInput < 3) { | 406 if (buildCounterInput < 3) { |
| 407 o.input = buildInputInput(); | 407 o.input = buildInputInput(); |
| 408 } | 408 } |
| 409 buildCounterInput--; | 409 buildCounterInput--; |
| 410 return o; | 410 return o; |
| 411 } | 411 } |
| 412 | 412 |
| 413 checkInput(api.Input o) { | 413 checkInput(api.Input o) { |
| 414 buildCounterInput++; | 414 buildCounterInput++; |
| 415 if (buildCounterInput < 3) { | 415 if (buildCounterInput < 3) { |
| 416 checkInputInput(o.input); | 416 checkInputInput(o.input); |
| 417 } | 417 } |
| 418 buildCounterInput--; | 418 buildCounterInput--; |
| 419 } | 419 } |
| 420 | 420 |
| 421 buildUnnamed599() { | 421 buildUnnamed808() { |
| 422 var o = new core.List<core.Object>(); | 422 var o = new core.List<core.Object>(); |
| 423 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 423 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 424 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 424 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 425 return o; | 425 return o; |
| 426 } | 426 } |
| 427 | 427 |
| 428 checkUnnamed599(core.List<core.Object> o) { | 428 checkUnnamed808(core.List<core.Object> o) { |
| 429 unittest.expect(o, unittest.hasLength(2)); | 429 unittest.expect(o, unittest.hasLength(2)); |
| 430 var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(
3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], u
nittest.equals('foo')); | 430 var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(
3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], u
nittest.equals('foo')); |
| 431 var casted4 = (o[1]) 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')); | 431 var casted4 = (o[1]) 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')); |
| 432 } | 432 } |
| 433 | 433 |
| 434 core.int buildCounterInsertTrainingInstances = 0; | 434 core.int buildCounterInsertTrainingInstances = 0; |
| 435 buildInsertTrainingInstances() { | 435 buildInsertTrainingInstances() { |
| 436 var o = new api.InsertTrainingInstances(); | 436 var o = new api.InsertTrainingInstances(); |
| 437 buildCounterInsertTrainingInstances++; | 437 buildCounterInsertTrainingInstances++; |
| 438 if (buildCounterInsertTrainingInstances < 3) { | 438 if (buildCounterInsertTrainingInstances < 3) { |
| 439 o.csvInstance = buildUnnamed599(); | 439 o.csvInstance = buildUnnamed808(); |
| 440 o.output = "foo"; | 440 o.output = "foo"; |
| 441 } | 441 } |
| 442 buildCounterInsertTrainingInstances--; | 442 buildCounterInsertTrainingInstances--; |
| 443 return o; | 443 return o; |
| 444 } | 444 } |
| 445 | 445 |
| 446 checkInsertTrainingInstances(api.InsertTrainingInstances o) { | 446 checkInsertTrainingInstances(api.InsertTrainingInstances o) { |
| 447 buildCounterInsertTrainingInstances++; | 447 buildCounterInsertTrainingInstances++; |
| 448 if (buildCounterInsertTrainingInstances < 3) { | 448 if (buildCounterInsertTrainingInstances < 3) { |
| 449 checkUnnamed599(o.csvInstance); | 449 checkUnnamed808(o.csvInstance); |
| 450 unittest.expect(o.output, unittest.equals('foo')); | 450 unittest.expect(o.output, unittest.equals('foo')); |
| 451 } | 451 } |
| 452 buildCounterInsertTrainingInstances--; | 452 buildCounterInsertTrainingInstances--; |
| 453 } | 453 } |
| 454 | 454 |
| 455 buildUnnamed600() { | 455 buildUnnamed809() { |
| 456 var o = new core.List<api.InsertTrainingInstances>(); | 456 var o = new core.List<api.InsertTrainingInstances>(); |
| 457 o.add(buildInsertTrainingInstances()); | 457 o.add(buildInsertTrainingInstances()); |
| 458 o.add(buildInsertTrainingInstances()); | 458 o.add(buildInsertTrainingInstances()); |
| 459 return o; | 459 return o; |
| 460 } | 460 } |
| 461 | 461 |
| 462 checkUnnamed600(core.List<api.InsertTrainingInstances> o) { | 462 checkUnnamed809(core.List<api.InsertTrainingInstances> o) { |
| 463 unittest.expect(o, unittest.hasLength(2)); | 463 unittest.expect(o, unittest.hasLength(2)); |
| 464 checkInsertTrainingInstances(o[0]); | 464 checkInsertTrainingInstances(o[0]); |
| 465 checkInsertTrainingInstances(o[1]); | 465 checkInsertTrainingInstances(o[1]); |
| 466 } | 466 } |
| 467 | 467 |
| 468 buildUnnamed601() { | 468 buildUnnamed810() { |
| 469 var o = new core.Map<core.String, core.double>(); | 469 var o = new core.Map<core.String, core.double>(); |
| 470 o["x"] = 42.0; | 470 o["x"] = 42.0; |
| 471 o["y"] = 42.0; | 471 o["y"] = 42.0; |
| 472 return o; | 472 return o; |
| 473 } | 473 } |
| 474 | 474 |
| 475 checkUnnamed601(core.Map<core.String, core.double> o) { | 475 checkUnnamed810(core.Map<core.String, core.double> o) { |
| 476 unittest.expect(o, unittest.hasLength(2)); | 476 unittest.expect(o, unittest.hasLength(2)); |
| 477 unittest.expect(o["x"], unittest.equals(42.0)); | 477 unittest.expect(o["x"], unittest.equals(42.0)); |
| 478 unittest.expect(o["y"], unittest.equals(42.0)); | 478 unittest.expect(o["y"], unittest.equals(42.0)); |
| 479 } | 479 } |
| 480 | 480 |
| 481 buildUnnamed602() { | 481 buildUnnamed811() { |
| 482 var o = new core.List<core.Map<core.String, core.double>>(); | 482 var o = new core.List<core.Map<core.String, core.double>>(); |
| 483 o.add(buildUnnamed601()); | 483 o.add(buildUnnamed810()); |
| 484 o.add(buildUnnamed601()); | 484 o.add(buildUnnamed810()); |
| 485 return o; | 485 return o; |
| 486 } | 486 } |
| 487 | 487 |
| 488 checkUnnamed602(core.List<core.Map<core.String, core.double>> o) { | 488 checkUnnamed811(core.List<core.Map<core.String, core.double>> o) { |
| 489 unittest.expect(o, unittest.hasLength(2)); | 489 unittest.expect(o, unittest.hasLength(2)); |
| 490 checkUnnamed601(o[0]); | 490 checkUnnamed810(o[0]); |
| 491 checkUnnamed601(o[1]); | 491 checkUnnamed810(o[1]); |
| 492 } | 492 } |
| 493 | 493 |
| 494 core.int buildCounterInsert = 0; | 494 core.int buildCounterInsert = 0; |
| 495 buildInsert() { | 495 buildInsert() { |
| 496 var o = new api.Insert(); | 496 var o = new api.Insert(); |
| 497 buildCounterInsert++; | 497 buildCounterInsert++; |
| 498 if (buildCounterInsert < 3) { | 498 if (buildCounterInsert < 3) { |
| 499 o.id = "foo"; | 499 o.id = "foo"; |
| 500 o.modelType = "foo"; | 500 o.modelType = "foo"; |
| 501 o.sourceModel = "foo"; | 501 o.sourceModel = "foo"; |
| 502 o.storageDataLocation = "foo"; | 502 o.storageDataLocation = "foo"; |
| 503 o.storagePMMLLocation = "foo"; | 503 o.storagePMMLLocation = "foo"; |
| 504 o.storagePMMLModelLocation = "foo"; | 504 o.storagePMMLModelLocation = "foo"; |
| 505 o.trainingInstances = buildUnnamed600(); | 505 o.trainingInstances = buildUnnamed809(); |
| 506 o.utility = buildUnnamed602(); | 506 o.utility = buildUnnamed811(); |
| 507 } | 507 } |
| 508 buildCounterInsert--; | 508 buildCounterInsert--; |
| 509 return o; | 509 return o; |
| 510 } | 510 } |
| 511 | 511 |
| 512 checkInsert(api.Insert o) { | 512 checkInsert(api.Insert o) { |
| 513 buildCounterInsert++; | 513 buildCounterInsert++; |
| 514 if (buildCounterInsert < 3) { | 514 if (buildCounterInsert < 3) { |
| 515 unittest.expect(o.id, unittest.equals('foo')); | 515 unittest.expect(o.id, unittest.equals('foo')); |
| 516 unittest.expect(o.modelType, unittest.equals('foo')); | 516 unittest.expect(o.modelType, unittest.equals('foo')); |
| 517 unittest.expect(o.sourceModel, unittest.equals('foo')); | 517 unittest.expect(o.sourceModel, unittest.equals('foo')); |
| 518 unittest.expect(o.storageDataLocation, unittest.equals('foo')); | 518 unittest.expect(o.storageDataLocation, unittest.equals('foo')); |
| 519 unittest.expect(o.storagePMMLLocation, unittest.equals('foo')); | 519 unittest.expect(o.storagePMMLLocation, unittest.equals('foo')); |
| 520 unittest.expect(o.storagePMMLModelLocation, unittest.equals('foo')); | 520 unittest.expect(o.storagePMMLModelLocation, unittest.equals('foo')); |
| 521 checkUnnamed600(o.trainingInstances); | 521 checkUnnamed809(o.trainingInstances); |
| 522 checkUnnamed602(o.utility); | 522 checkUnnamed811(o.utility); |
| 523 } | 523 } |
| 524 buildCounterInsert--; | 524 buildCounterInsert--; |
| 525 } | 525 } |
| 526 | 526 |
| 527 core.int buildCounterInsert2ModelInfo = 0; | 527 core.int buildCounterInsert2ModelInfo = 0; |
| 528 buildInsert2ModelInfo() { | 528 buildInsert2ModelInfo() { |
| 529 var o = new api.Insert2ModelInfo(); | 529 var o = new api.Insert2ModelInfo(); |
| 530 buildCounterInsert2ModelInfo++; | 530 buildCounterInsert2ModelInfo++; |
| 531 if (buildCounterInsert2ModelInfo < 3) { | 531 if (buildCounterInsert2ModelInfo < 3) { |
| 532 o.classWeightedAccuracy = "foo"; | 532 o.classWeightedAccuracy = "foo"; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 unittest.expect(o.selfLink, unittest.equals('foo')); | 585 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 586 unittest.expect(o.storageDataLocation, unittest.equals('foo')); | 586 unittest.expect(o.storageDataLocation, unittest.equals('foo')); |
| 587 unittest.expect(o.storagePMMLLocation, unittest.equals('foo')); | 587 unittest.expect(o.storagePMMLLocation, unittest.equals('foo')); |
| 588 unittest.expect(o.storagePMMLModelLocation, unittest.equals('foo')); | 588 unittest.expect(o.storagePMMLModelLocation, unittest.equals('foo')); |
| 589 unittest.expect(o.trainingComplete, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); | 589 unittest.expect(o.trainingComplete, unittest.equals(core.DateTime.parse("200
2-02-27T14:01:02"))); |
| 590 unittest.expect(o.trainingStatus, unittest.equals('foo')); | 590 unittest.expect(o.trainingStatus, unittest.equals('foo')); |
| 591 } | 591 } |
| 592 buildCounterInsert2--; | 592 buildCounterInsert2--; |
| 593 } | 593 } |
| 594 | 594 |
| 595 buildUnnamed603() { | 595 buildUnnamed812() { |
| 596 var o = new core.List<api.Insert2>(); | 596 var o = new core.List<api.Insert2>(); |
| 597 o.add(buildInsert2()); | 597 o.add(buildInsert2()); |
| 598 o.add(buildInsert2()); | 598 o.add(buildInsert2()); |
| 599 return o; | 599 return o; |
| 600 } | 600 } |
| 601 | 601 |
| 602 checkUnnamed603(core.List<api.Insert2> o) { | 602 checkUnnamed812(core.List<api.Insert2> o) { |
| 603 unittest.expect(o, unittest.hasLength(2)); | 603 unittest.expect(o, unittest.hasLength(2)); |
| 604 checkInsert2(o[0]); | 604 checkInsert2(o[0]); |
| 605 checkInsert2(o[1]); | 605 checkInsert2(o[1]); |
| 606 } | 606 } |
| 607 | 607 |
| 608 core.int buildCounterList = 0; | 608 core.int buildCounterList = 0; |
| 609 buildList() { | 609 buildList() { |
| 610 var o = new api.List(); | 610 var o = new api.List(); |
| 611 buildCounterList++; | 611 buildCounterList++; |
| 612 if (buildCounterList < 3) { | 612 if (buildCounterList < 3) { |
| 613 o.items = buildUnnamed603(); | 613 o.items = buildUnnamed812(); |
| 614 o.kind = "foo"; | 614 o.kind = "foo"; |
| 615 o.nextPageToken = "foo"; | 615 o.nextPageToken = "foo"; |
| 616 o.selfLink = "foo"; | 616 o.selfLink = "foo"; |
| 617 } | 617 } |
| 618 buildCounterList--; | 618 buildCounterList--; |
| 619 return o; | 619 return o; |
| 620 } | 620 } |
| 621 | 621 |
| 622 checkList(api.List o) { | 622 checkList(api.List o) { |
| 623 buildCounterList++; | 623 buildCounterList++; |
| 624 if (buildCounterList < 3) { | 624 if (buildCounterList < 3) { |
| 625 checkUnnamed603(o.items); | 625 checkUnnamed812(o.items); |
| 626 unittest.expect(o.kind, unittest.equals('foo')); | 626 unittest.expect(o.kind, unittest.equals('foo')); |
| 627 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 627 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 628 unittest.expect(o.selfLink, unittest.equals('foo')); | 628 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 629 } | 629 } |
| 630 buildCounterList--; | 630 buildCounterList--; |
| 631 } | 631 } |
| 632 | 632 |
| 633 core.int buildCounterOutputOutputMulti = 0; | 633 core.int buildCounterOutputOutputMulti = 0; |
| 634 buildOutputOutputMulti() { | 634 buildOutputOutputMulti() { |
| 635 var o = new api.OutputOutputMulti(); | 635 var o = new api.OutputOutputMulti(); |
| 636 buildCounterOutputOutputMulti++; | 636 buildCounterOutputOutputMulti++; |
| 637 if (buildCounterOutputOutputMulti < 3) { | 637 if (buildCounterOutputOutputMulti < 3) { |
| 638 o.label = "foo"; | 638 o.label = "foo"; |
| 639 o.score = "foo"; | 639 o.score = "foo"; |
| 640 } | 640 } |
| 641 buildCounterOutputOutputMulti--; | 641 buildCounterOutputOutputMulti--; |
| 642 return o; | 642 return o; |
| 643 } | 643 } |
| 644 | 644 |
| 645 checkOutputOutputMulti(api.OutputOutputMulti o) { | 645 checkOutputOutputMulti(api.OutputOutputMulti o) { |
| 646 buildCounterOutputOutputMulti++; | 646 buildCounterOutputOutputMulti++; |
| 647 if (buildCounterOutputOutputMulti < 3) { | 647 if (buildCounterOutputOutputMulti < 3) { |
| 648 unittest.expect(o.label, unittest.equals('foo')); | 648 unittest.expect(o.label, unittest.equals('foo')); |
| 649 unittest.expect(o.score, unittest.equals('foo')); | 649 unittest.expect(o.score, unittest.equals('foo')); |
| 650 } | 650 } |
| 651 buildCounterOutputOutputMulti--; | 651 buildCounterOutputOutputMulti--; |
| 652 } | 652 } |
| 653 | 653 |
| 654 buildUnnamed604() { | 654 buildUnnamed813() { |
| 655 var o = new core.List<api.OutputOutputMulti>(); | 655 var o = new core.List<api.OutputOutputMulti>(); |
| 656 o.add(buildOutputOutputMulti()); | 656 o.add(buildOutputOutputMulti()); |
| 657 o.add(buildOutputOutputMulti()); | 657 o.add(buildOutputOutputMulti()); |
| 658 return o; | 658 return o; |
| 659 } | 659 } |
| 660 | 660 |
| 661 checkUnnamed604(core.List<api.OutputOutputMulti> o) { | 661 checkUnnamed813(core.List<api.OutputOutputMulti> o) { |
| 662 unittest.expect(o, unittest.hasLength(2)); | 662 unittest.expect(o, unittest.hasLength(2)); |
| 663 checkOutputOutputMulti(o[0]); | 663 checkOutputOutputMulti(o[0]); |
| 664 checkOutputOutputMulti(o[1]); | 664 checkOutputOutputMulti(o[1]); |
| 665 } | 665 } |
| 666 | 666 |
| 667 core.int buildCounterOutput = 0; | 667 core.int buildCounterOutput = 0; |
| 668 buildOutput() { | 668 buildOutput() { |
| 669 var o = new api.Output(); | 669 var o = new api.Output(); |
| 670 buildCounterOutput++; | 670 buildCounterOutput++; |
| 671 if (buildCounterOutput < 3) { | 671 if (buildCounterOutput < 3) { |
| 672 o.id = "foo"; | 672 o.id = "foo"; |
| 673 o.kind = "foo"; | 673 o.kind = "foo"; |
| 674 o.outputLabel = "foo"; | 674 o.outputLabel = "foo"; |
| 675 o.outputMulti = buildUnnamed604(); | 675 o.outputMulti = buildUnnamed813(); |
| 676 o.outputValue = "foo"; | 676 o.outputValue = "foo"; |
| 677 o.selfLink = "foo"; | 677 o.selfLink = "foo"; |
| 678 } | 678 } |
| 679 buildCounterOutput--; | 679 buildCounterOutput--; |
| 680 return o; | 680 return o; |
| 681 } | 681 } |
| 682 | 682 |
| 683 checkOutput(api.Output o) { | 683 checkOutput(api.Output o) { |
| 684 buildCounterOutput++; | 684 buildCounterOutput++; |
| 685 if (buildCounterOutput < 3) { | 685 if (buildCounterOutput < 3) { |
| 686 unittest.expect(o.id, unittest.equals('foo')); | 686 unittest.expect(o.id, unittest.equals('foo')); |
| 687 unittest.expect(o.kind, unittest.equals('foo')); | 687 unittest.expect(o.kind, unittest.equals('foo')); |
| 688 unittest.expect(o.outputLabel, unittest.equals('foo')); | 688 unittest.expect(o.outputLabel, unittest.equals('foo')); |
| 689 checkUnnamed604(o.outputMulti); | 689 checkUnnamed813(o.outputMulti); |
| 690 unittest.expect(o.outputValue, unittest.equals('foo')); | 690 unittest.expect(o.outputValue, unittest.equals('foo')); |
| 691 unittest.expect(o.selfLink, unittest.equals('foo')); | 691 unittest.expect(o.selfLink, unittest.equals('foo')); |
| 692 } | 692 } |
| 693 buildCounterOutput--; | 693 buildCounterOutput--; |
| 694 } | 694 } |
| 695 | 695 |
| 696 buildUnnamed605() { | 696 buildUnnamed814() { |
| 697 var o = new core.List<core.Object>(); | 697 var o = new core.List<core.Object>(); |
| 698 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 698 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 699 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 699 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 700 return o; | 700 return o; |
| 701 } | 701 } |
| 702 | 702 |
| 703 checkUnnamed605(core.List<core.Object> o) { | 703 checkUnnamed814(core.List<core.Object> o) { |
| 704 unittest.expect(o, unittest.hasLength(2)); | 704 unittest.expect(o, unittest.hasLength(2)); |
| 705 var casted5 = (o[0]) 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')); | 705 var casted5 = (o[0]) 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')); |
| 706 var casted6 = (o[1]) as core.Map; unittest.expect(casted6, unittest.hasLength(
3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], u
nittest.equals('foo')); | 706 var casted6 = (o[1]) as core.Map; unittest.expect(casted6, unittest.hasLength(
3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], u
nittest.equals('foo')); |
| 707 } | 707 } |
| 708 | 708 |
| 709 core.int buildCounterUpdate = 0; | 709 core.int buildCounterUpdate = 0; |
| 710 buildUpdate() { | 710 buildUpdate() { |
| 711 var o = new api.Update(); | 711 var o = new api.Update(); |
| 712 buildCounterUpdate++; | 712 buildCounterUpdate++; |
| 713 if (buildCounterUpdate < 3) { | 713 if (buildCounterUpdate < 3) { |
| 714 o.csvInstance = buildUnnamed605(); | 714 o.csvInstance = buildUnnamed814(); |
| 715 o.output = "foo"; | 715 o.output = "foo"; |
| 716 } | 716 } |
| 717 buildCounterUpdate--; | 717 buildCounterUpdate--; |
| 718 return o; | 718 return o; |
| 719 } | 719 } |
| 720 | 720 |
| 721 checkUpdate(api.Update o) { | 721 checkUpdate(api.Update o) { |
| 722 buildCounterUpdate++; | 722 buildCounterUpdate++; |
| 723 if (buildCounterUpdate < 3) { | 723 if (buildCounterUpdate < 3) { |
| 724 checkUnnamed605(o.csvInstance); | 724 checkUnnamed814(o.csvInstance); |
| 725 unittest.expect(o.output, unittest.equals('foo')); | 725 unittest.expect(o.output, unittest.equals('foo')); |
| 726 } | 726 } |
| 727 buildCounterUpdate--; | 727 buildCounterUpdate--; |
| 728 } | 728 } |
| 729 | 729 |
| 730 | 730 |
| 731 main() { | 731 main() { |
| 732 unittest.group("obj-schema-AnalyzeDataDescriptionFeaturesCategoricalValues", (
) { | 732 unittest.group("obj-schema-AnalyzeDataDescriptionFeaturesCategoricalValues", (
) { |
| 733 unittest.test("to-json--from-json", () { | 733 unittest.test("to-json--from-json", () { |
| 734 var o = buildAnalyzeDataDescriptionFeaturesCategoricalValues(); | 734 var o = buildAnalyzeDataDescriptionFeaturesCategoricalValues(); |
| (...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1281 res.update(arg_request, arg_project, arg_id).then(unittest.expectAsync(((a
pi.Insert2 response) { | 1281 res.update(arg_request, arg_project, arg_id).then(unittest.expectAsync(((a
pi.Insert2 response) { |
| 1282 checkInsert2(response); | 1282 checkInsert2(response); |
| 1283 }))); | 1283 }))); |
| 1284 }); | 1284 }); |
| 1285 | 1285 |
| 1286 }); | 1286 }); |
| 1287 | 1287 |
| 1288 | 1288 |
| 1289 } | 1289 } |
| 1290 | 1290 |
| OLD | NEW |