| OLD | NEW |
| 1 library googleapis.vision.v1.test; | 1 library googleapis.vision.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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 } | 44 } |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 | 47 |
| 48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
| 49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map headers, core.String body) { |
| 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
| 51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
| 52 } | 52 } |
| 53 | 53 |
| 54 buildUnnamed1177() { | 54 buildUnnamed1208() { |
| 55 var o = new core.List<api.Feature>(); | 55 var o = new core.List<api.Feature>(); |
| 56 o.add(buildFeature()); | 56 o.add(buildFeature()); |
| 57 o.add(buildFeature()); | 57 o.add(buildFeature()); |
| 58 return o; | 58 return o; |
| 59 } | 59 } |
| 60 | 60 |
| 61 checkUnnamed1177(core.List<api.Feature> o) { | 61 checkUnnamed1208(core.List<api.Feature> o) { |
| 62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
| 63 checkFeature(o[0]); | 63 checkFeature(o[0]); |
| 64 checkFeature(o[1]); | 64 checkFeature(o[1]); |
| 65 } | 65 } |
| 66 | 66 |
| 67 core.int buildCounterAnnotateImageRequest = 0; | 67 core.int buildCounterAnnotateImageRequest = 0; |
| 68 buildAnnotateImageRequest() { | 68 buildAnnotateImageRequest() { |
| 69 var o = new api.AnnotateImageRequest(); | 69 var o = new api.AnnotateImageRequest(); |
| 70 buildCounterAnnotateImageRequest++; | 70 buildCounterAnnotateImageRequest++; |
| 71 if (buildCounterAnnotateImageRequest < 3) { | 71 if (buildCounterAnnotateImageRequest < 3) { |
| 72 o.features = buildUnnamed1177(); | 72 o.features = buildUnnamed1208(); |
| 73 o.image = buildImage(); | 73 o.image = buildImage(); |
| 74 o.imageContext = buildImageContext(); | 74 o.imageContext = buildImageContext(); |
| 75 } | 75 } |
| 76 buildCounterAnnotateImageRequest--; | 76 buildCounterAnnotateImageRequest--; |
| 77 return o; | 77 return o; |
| 78 } | 78 } |
| 79 | 79 |
| 80 checkAnnotateImageRequest(api.AnnotateImageRequest o) { | 80 checkAnnotateImageRequest(api.AnnotateImageRequest o) { |
| 81 buildCounterAnnotateImageRequest++; | 81 buildCounterAnnotateImageRequest++; |
| 82 if (buildCounterAnnotateImageRequest < 3) { | 82 if (buildCounterAnnotateImageRequest < 3) { |
| 83 checkUnnamed1177(o.features); | 83 checkUnnamed1208(o.features); |
| 84 checkImage(o.image); | 84 checkImage(o.image); |
| 85 checkImageContext(o.imageContext); | 85 checkImageContext(o.imageContext); |
| 86 } | 86 } |
| 87 buildCounterAnnotateImageRequest--; | 87 buildCounterAnnotateImageRequest--; |
| 88 } | 88 } |
| 89 | 89 |
| 90 buildUnnamed1178() { | 90 buildUnnamed1209() { |
| 91 var o = new core.List<api.FaceAnnotation>(); | 91 var o = new core.List<api.FaceAnnotation>(); |
| 92 o.add(buildFaceAnnotation()); | 92 o.add(buildFaceAnnotation()); |
| 93 o.add(buildFaceAnnotation()); | 93 o.add(buildFaceAnnotation()); |
| 94 return o; | 94 return o; |
| 95 } | 95 } |
| 96 | 96 |
| 97 checkUnnamed1178(core.List<api.FaceAnnotation> o) { | 97 checkUnnamed1209(core.List<api.FaceAnnotation> o) { |
| 98 unittest.expect(o, unittest.hasLength(2)); | 98 unittest.expect(o, unittest.hasLength(2)); |
| 99 checkFaceAnnotation(o[0]); | 99 checkFaceAnnotation(o[0]); |
| 100 checkFaceAnnotation(o[1]); | 100 checkFaceAnnotation(o[1]); |
| 101 } | 101 } |
| 102 | 102 |
| 103 buildUnnamed1179() { | 103 buildUnnamed1210() { |
| 104 var o = new core.List<api.EntityAnnotation>(); | 104 var o = new core.List<api.EntityAnnotation>(); |
| 105 o.add(buildEntityAnnotation()); | 105 o.add(buildEntityAnnotation()); |
| 106 o.add(buildEntityAnnotation()); | 106 o.add(buildEntityAnnotation()); |
| 107 return o; | 107 return o; |
| 108 } | 108 } |
| 109 | 109 |
| 110 checkUnnamed1179(core.List<api.EntityAnnotation> o) { | 110 checkUnnamed1210(core.List<api.EntityAnnotation> o) { |
| 111 unittest.expect(o, unittest.hasLength(2)); | 111 unittest.expect(o, unittest.hasLength(2)); |
| 112 checkEntityAnnotation(o[0]); | 112 checkEntityAnnotation(o[0]); |
| 113 checkEntityAnnotation(o[1]); | 113 checkEntityAnnotation(o[1]); |
| 114 } | 114 } |
| 115 | 115 |
| 116 buildUnnamed1180() { | 116 buildUnnamed1211() { |
| 117 var o = new core.List<api.EntityAnnotation>(); | 117 var o = new core.List<api.EntityAnnotation>(); |
| 118 o.add(buildEntityAnnotation()); | 118 o.add(buildEntityAnnotation()); |
| 119 o.add(buildEntityAnnotation()); | 119 o.add(buildEntityAnnotation()); |
| 120 return o; | 120 return o; |
| 121 } | 121 } |
| 122 | 122 |
| 123 checkUnnamed1180(core.List<api.EntityAnnotation> o) { | 123 checkUnnamed1211(core.List<api.EntityAnnotation> o) { |
| 124 unittest.expect(o, unittest.hasLength(2)); | 124 unittest.expect(o, unittest.hasLength(2)); |
| 125 checkEntityAnnotation(o[0]); | 125 checkEntityAnnotation(o[0]); |
| 126 checkEntityAnnotation(o[1]); | 126 checkEntityAnnotation(o[1]); |
| 127 } | 127 } |
| 128 | 128 |
| 129 buildUnnamed1181() { | 129 buildUnnamed1212() { |
| 130 var o = new core.List<api.EntityAnnotation>(); | 130 var o = new core.List<api.EntityAnnotation>(); |
| 131 o.add(buildEntityAnnotation()); | 131 o.add(buildEntityAnnotation()); |
| 132 o.add(buildEntityAnnotation()); | 132 o.add(buildEntityAnnotation()); |
| 133 return o; | 133 return o; |
| 134 } | 134 } |
| 135 | 135 |
| 136 checkUnnamed1181(core.List<api.EntityAnnotation> o) { | 136 checkUnnamed1212(core.List<api.EntityAnnotation> o) { |
| 137 unittest.expect(o, unittest.hasLength(2)); | 137 unittest.expect(o, unittest.hasLength(2)); |
| 138 checkEntityAnnotation(o[0]); | 138 checkEntityAnnotation(o[0]); |
| 139 checkEntityAnnotation(o[1]); | 139 checkEntityAnnotation(o[1]); |
| 140 } | 140 } |
| 141 | 141 |
| 142 buildUnnamed1182() { | 142 buildUnnamed1213() { |
| 143 var o = new core.List<api.EntityAnnotation>(); | 143 var o = new core.List<api.EntityAnnotation>(); |
| 144 o.add(buildEntityAnnotation()); | 144 o.add(buildEntityAnnotation()); |
| 145 o.add(buildEntityAnnotation()); | 145 o.add(buildEntityAnnotation()); |
| 146 return o; | 146 return o; |
| 147 } | 147 } |
| 148 | 148 |
| 149 checkUnnamed1182(core.List<api.EntityAnnotation> o) { | 149 checkUnnamed1213(core.List<api.EntityAnnotation> o) { |
| 150 unittest.expect(o, unittest.hasLength(2)); | 150 unittest.expect(o, unittest.hasLength(2)); |
| 151 checkEntityAnnotation(o[0]); | 151 checkEntityAnnotation(o[0]); |
| 152 checkEntityAnnotation(o[1]); | 152 checkEntityAnnotation(o[1]); |
| 153 } | 153 } |
| 154 | 154 |
| 155 core.int buildCounterAnnotateImageResponse = 0; | 155 core.int buildCounterAnnotateImageResponse = 0; |
| 156 buildAnnotateImageResponse() { | 156 buildAnnotateImageResponse() { |
| 157 var o = new api.AnnotateImageResponse(); | 157 var o = new api.AnnotateImageResponse(); |
| 158 buildCounterAnnotateImageResponse++; | 158 buildCounterAnnotateImageResponse++; |
| 159 if (buildCounterAnnotateImageResponse < 3) { | 159 if (buildCounterAnnotateImageResponse < 3) { |
| 160 o.cropHintsAnnotation = buildCropHintsAnnotation(); | 160 o.cropHintsAnnotation = buildCropHintsAnnotation(); |
| 161 o.error = buildStatus(); | 161 o.error = buildStatus(); |
| 162 o.faceAnnotations = buildUnnamed1178(); | 162 o.faceAnnotations = buildUnnamed1209(); |
| 163 o.fullTextAnnotation = buildTextAnnotation(); | 163 o.fullTextAnnotation = buildTextAnnotation(); |
| 164 o.imagePropertiesAnnotation = buildImageProperties(); | 164 o.imagePropertiesAnnotation = buildImageProperties(); |
| 165 o.labelAnnotations = buildUnnamed1179(); | 165 o.labelAnnotations = buildUnnamed1210(); |
| 166 o.landmarkAnnotations = buildUnnamed1180(); | 166 o.landmarkAnnotations = buildUnnamed1211(); |
| 167 o.logoAnnotations = buildUnnamed1181(); | 167 o.logoAnnotations = buildUnnamed1212(); |
| 168 o.safeSearchAnnotation = buildSafeSearchAnnotation(); | 168 o.safeSearchAnnotation = buildSafeSearchAnnotation(); |
| 169 o.textAnnotations = buildUnnamed1182(); | 169 o.textAnnotations = buildUnnamed1213(); |
| 170 o.webDetection = buildWebDetection(); | 170 o.webDetection = buildWebDetection(); |
| 171 } | 171 } |
| 172 buildCounterAnnotateImageResponse--; | 172 buildCounterAnnotateImageResponse--; |
| 173 return o; | 173 return o; |
| 174 } | 174 } |
| 175 | 175 |
| 176 checkAnnotateImageResponse(api.AnnotateImageResponse o) { | 176 checkAnnotateImageResponse(api.AnnotateImageResponse o) { |
| 177 buildCounterAnnotateImageResponse++; | 177 buildCounterAnnotateImageResponse++; |
| 178 if (buildCounterAnnotateImageResponse < 3) { | 178 if (buildCounterAnnotateImageResponse < 3) { |
| 179 checkCropHintsAnnotation(o.cropHintsAnnotation); | 179 checkCropHintsAnnotation(o.cropHintsAnnotation); |
| 180 checkStatus(o.error); | 180 checkStatus(o.error); |
| 181 checkUnnamed1178(o.faceAnnotations); | 181 checkUnnamed1209(o.faceAnnotations); |
| 182 checkTextAnnotation(o.fullTextAnnotation); | 182 checkTextAnnotation(o.fullTextAnnotation); |
| 183 checkImageProperties(o.imagePropertiesAnnotation); | 183 checkImageProperties(o.imagePropertiesAnnotation); |
| 184 checkUnnamed1179(o.labelAnnotations); | 184 checkUnnamed1210(o.labelAnnotations); |
| 185 checkUnnamed1180(o.landmarkAnnotations); | 185 checkUnnamed1211(o.landmarkAnnotations); |
| 186 checkUnnamed1181(o.logoAnnotations); | 186 checkUnnamed1212(o.logoAnnotations); |
| 187 checkSafeSearchAnnotation(o.safeSearchAnnotation); | 187 checkSafeSearchAnnotation(o.safeSearchAnnotation); |
| 188 checkUnnamed1182(o.textAnnotations); | 188 checkUnnamed1213(o.textAnnotations); |
| 189 checkWebDetection(o.webDetection); | 189 checkWebDetection(o.webDetection); |
| 190 } | 190 } |
| 191 buildCounterAnnotateImageResponse--; | 191 buildCounterAnnotateImageResponse--; |
| 192 } | 192 } |
| 193 | 193 |
| 194 buildUnnamed1183() { | 194 buildUnnamed1214() { |
| 195 var o = new core.List<api.AnnotateImageRequest>(); | 195 var o = new core.List<api.AnnotateImageRequest>(); |
| 196 o.add(buildAnnotateImageRequest()); | 196 o.add(buildAnnotateImageRequest()); |
| 197 o.add(buildAnnotateImageRequest()); | 197 o.add(buildAnnotateImageRequest()); |
| 198 return o; | 198 return o; |
| 199 } | 199 } |
| 200 | 200 |
| 201 checkUnnamed1183(core.List<api.AnnotateImageRequest> o) { | 201 checkUnnamed1214(core.List<api.AnnotateImageRequest> o) { |
| 202 unittest.expect(o, unittest.hasLength(2)); | 202 unittest.expect(o, unittest.hasLength(2)); |
| 203 checkAnnotateImageRequest(o[0]); | 203 checkAnnotateImageRequest(o[0]); |
| 204 checkAnnotateImageRequest(o[1]); | 204 checkAnnotateImageRequest(o[1]); |
| 205 } | 205 } |
| 206 | 206 |
| 207 core.int buildCounterBatchAnnotateImagesRequest = 0; | 207 core.int buildCounterBatchAnnotateImagesRequest = 0; |
| 208 buildBatchAnnotateImagesRequest() { | 208 buildBatchAnnotateImagesRequest() { |
| 209 var o = new api.BatchAnnotateImagesRequest(); | 209 var o = new api.BatchAnnotateImagesRequest(); |
| 210 buildCounterBatchAnnotateImagesRequest++; | 210 buildCounterBatchAnnotateImagesRequest++; |
| 211 if (buildCounterBatchAnnotateImagesRequest < 3) { | 211 if (buildCounterBatchAnnotateImagesRequest < 3) { |
| 212 o.requests = buildUnnamed1183(); | 212 o.requests = buildUnnamed1214(); |
| 213 } | 213 } |
| 214 buildCounterBatchAnnotateImagesRequest--; | 214 buildCounterBatchAnnotateImagesRequest--; |
| 215 return o; | 215 return o; |
| 216 } | 216 } |
| 217 | 217 |
| 218 checkBatchAnnotateImagesRequest(api.BatchAnnotateImagesRequest o) { | 218 checkBatchAnnotateImagesRequest(api.BatchAnnotateImagesRequest o) { |
| 219 buildCounterBatchAnnotateImagesRequest++; | 219 buildCounterBatchAnnotateImagesRequest++; |
| 220 if (buildCounterBatchAnnotateImagesRequest < 3) { | 220 if (buildCounterBatchAnnotateImagesRequest < 3) { |
| 221 checkUnnamed1183(o.requests); | 221 checkUnnamed1214(o.requests); |
| 222 } | 222 } |
| 223 buildCounterBatchAnnotateImagesRequest--; | 223 buildCounterBatchAnnotateImagesRequest--; |
| 224 } | 224 } |
| 225 | 225 |
| 226 buildUnnamed1184() { | 226 buildUnnamed1215() { |
| 227 var o = new core.List<api.AnnotateImageResponse>(); | 227 var o = new core.List<api.AnnotateImageResponse>(); |
| 228 o.add(buildAnnotateImageResponse()); | 228 o.add(buildAnnotateImageResponse()); |
| 229 o.add(buildAnnotateImageResponse()); | 229 o.add(buildAnnotateImageResponse()); |
| 230 return o; | 230 return o; |
| 231 } | 231 } |
| 232 | 232 |
| 233 checkUnnamed1184(core.List<api.AnnotateImageResponse> o) { | 233 checkUnnamed1215(core.List<api.AnnotateImageResponse> o) { |
| 234 unittest.expect(o, unittest.hasLength(2)); | 234 unittest.expect(o, unittest.hasLength(2)); |
| 235 checkAnnotateImageResponse(o[0]); | 235 checkAnnotateImageResponse(o[0]); |
| 236 checkAnnotateImageResponse(o[1]); | 236 checkAnnotateImageResponse(o[1]); |
| 237 } | 237 } |
| 238 | 238 |
| 239 core.int buildCounterBatchAnnotateImagesResponse = 0; | 239 core.int buildCounterBatchAnnotateImagesResponse = 0; |
| 240 buildBatchAnnotateImagesResponse() { | 240 buildBatchAnnotateImagesResponse() { |
| 241 var o = new api.BatchAnnotateImagesResponse(); | 241 var o = new api.BatchAnnotateImagesResponse(); |
| 242 buildCounterBatchAnnotateImagesResponse++; | 242 buildCounterBatchAnnotateImagesResponse++; |
| 243 if (buildCounterBatchAnnotateImagesResponse < 3) { | 243 if (buildCounterBatchAnnotateImagesResponse < 3) { |
| 244 o.responses = buildUnnamed1184(); | 244 o.responses = buildUnnamed1215(); |
| 245 } | 245 } |
| 246 buildCounterBatchAnnotateImagesResponse--; | 246 buildCounterBatchAnnotateImagesResponse--; |
| 247 return o; | 247 return o; |
| 248 } | 248 } |
| 249 | 249 |
| 250 checkBatchAnnotateImagesResponse(api.BatchAnnotateImagesResponse o) { | 250 checkBatchAnnotateImagesResponse(api.BatchAnnotateImagesResponse o) { |
| 251 buildCounterBatchAnnotateImagesResponse++; | 251 buildCounterBatchAnnotateImagesResponse++; |
| 252 if (buildCounterBatchAnnotateImagesResponse < 3) { | 252 if (buildCounterBatchAnnotateImagesResponse < 3) { |
| 253 checkUnnamed1184(o.responses); | 253 checkUnnamed1215(o.responses); |
| 254 } | 254 } |
| 255 buildCounterBatchAnnotateImagesResponse--; | 255 buildCounterBatchAnnotateImagesResponse--; |
| 256 } | 256 } |
| 257 | 257 |
| 258 buildUnnamed1185() { | 258 buildUnnamed1216() { |
| 259 var o = new core.List<api.Paragraph>(); | 259 var o = new core.List<api.Paragraph>(); |
| 260 o.add(buildParagraph()); | 260 o.add(buildParagraph()); |
| 261 o.add(buildParagraph()); | 261 o.add(buildParagraph()); |
| 262 return o; | 262 return o; |
| 263 } | 263 } |
| 264 | 264 |
| 265 checkUnnamed1185(core.List<api.Paragraph> o) { | 265 checkUnnamed1216(core.List<api.Paragraph> o) { |
| 266 unittest.expect(o, unittest.hasLength(2)); | 266 unittest.expect(o, unittest.hasLength(2)); |
| 267 checkParagraph(o[0]); | 267 checkParagraph(o[0]); |
| 268 checkParagraph(o[1]); | 268 checkParagraph(o[1]); |
| 269 } | 269 } |
| 270 | 270 |
| 271 core.int buildCounterBlock = 0; | 271 core.int buildCounterBlock = 0; |
| 272 buildBlock() { | 272 buildBlock() { |
| 273 var o = new api.Block(); | 273 var o = new api.Block(); |
| 274 buildCounterBlock++; | 274 buildCounterBlock++; |
| 275 if (buildCounterBlock < 3) { | 275 if (buildCounterBlock < 3) { |
| 276 o.blockType = "foo"; | 276 o.blockType = "foo"; |
| 277 o.boundingBox = buildBoundingPoly(); | 277 o.boundingBox = buildBoundingPoly(); |
| 278 o.paragraphs = buildUnnamed1185(); | 278 o.paragraphs = buildUnnamed1216(); |
| 279 o.property = buildTextProperty(); | 279 o.property = buildTextProperty(); |
| 280 } | 280 } |
| 281 buildCounterBlock--; | 281 buildCounterBlock--; |
| 282 return o; | 282 return o; |
| 283 } | 283 } |
| 284 | 284 |
| 285 checkBlock(api.Block o) { | 285 checkBlock(api.Block o) { |
| 286 buildCounterBlock++; | 286 buildCounterBlock++; |
| 287 if (buildCounterBlock < 3) { | 287 if (buildCounterBlock < 3) { |
| 288 unittest.expect(o.blockType, unittest.equals('foo')); | 288 unittest.expect(o.blockType, unittest.equals('foo')); |
| 289 checkBoundingPoly(o.boundingBox); | 289 checkBoundingPoly(o.boundingBox); |
| 290 checkUnnamed1185(o.paragraphs); | 290 checkUnnamed1216(o.paragraphs); |
| 291 checkTextProperty(o.property); | 291 checkTextProperty(o.property); |
| 292 } | 292 } |
| 293 buildCounterBlock--; | 293 buildCounterBlock--; |
| 294 } | 294 } |
| 295 | 295 |
| 296 buildUnnamed1186() { | 296 buildUnnamed1217() { |
| 297 var o = new core.List<api.Vertex>(); | 297 var o = new core.List<api.Vertex>(); |
| 298 o.add(buildVertex()); | 298 o.add(buildVertex()); |
| 299 o.add(buildVertex()); | 299 o.add(buildVertex()); |
| 300 return o; | 300 return o; |
| 301 } | 301 } |
| 302 | 302 |
| 303 checkUnnamed1186(core.List<api.Vertex> o) { | 303 checkUnnamed1217(core.List<api.Vertex> o) { |
| 304 unittest.expect(o, unittest.hasLength(2)); | 304 unittest.expect(o, unittest.hasLength(2)); |
| 305 checkVertex(o[0]); | 305 checkVertex(o[0]); |
| 306 checkVertex(o[1]); | 306 checkVertex(o[1]); |
| 307 } | 307 } |
| 308 | 308 |
| 309 core.int buildCounterBoundingPoly = 0; | 309 core.int buildCounterBoundingPoly = 0; |
| 310 buildBoundingPoly() { | 310 buildBoundingPoly() { |
| 311 var o = new api.BoundingPoly(); | 311 var o = new api.BoundingPoly(); |
| 312 buildCounterBoundingPoly++; | 312 buildCounterBoundingPoly++; |
| 313 if (buildCounterBoundingPoly < 3) { | 313 if (buildCounterBoundingPoly < 3) { |
| 314 o.vertices = buildUnnamed1186(); | 314 o.vertices = buildUnnamed1217(); |
| 315 } | 315 } |
| 316 buildCounterBoundingPoly--; | 316 buildCounterBoundingPoly--; |
| 317 return o; | 317 return o; |
| 318 } | 318 } |
| 319 | 319 |
| 320 checkBoundingPoly(api.BoundingPoly o) { | 320 checkBoundingPoly(api.BoundingPoly o) { |
| 321 buildCounterBoundingPoly++; | 321 buildCounterBoundingPoly++; |
| 322 if (buildCounterBoundingPoly < 3) { | 322 if (buildCounterBoundingPoly < 3) { |
| 323 checkUnnamed1186(o.vertices); | 323 checkUnnamed1217(o.vertices); |
| 324 } | 324 } |
| 325 buildCounterBoundingPoly--; | 325 buildCounterBoundingPoly--; |
| 326 } | 326 } |
| 327 | 327 |
| 328 core.int buildCounterColor = 0; | 328 core.int buildCounterColor = 0; |
| 329 buildColor() { | 329 buildColor() { |
| 330 var o = new api.Color(); | 330 var o = new api.Color(); |
| 331 buildCounterColor++; | 331 buildCounterColor++; |
| 332 if (buildCounterColor < 3) { | 332 if (buildCounterColor < 3) { |
| 333 o.alpha = 42.0; | 333 o.alpha = 42.0; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 checkCropHint(api.CropHint o) { | 389 checkCropHint(api.CropHint o) { |
| 390 buildCounterCropHint++; | 390 buildCounterCropHint++; |
| 391 if (buildCounterCropHint < 3) { | 391 if (buildCounterCropHint < 3) { |
| 392 checkBoundingPoly(o.boundingPoly); | 392 checkBoundingPoly(o.boundingPoly); |
| 393 unittest.expect(o.confidence, unittest.equals(42.0)); | 393 unittest.expect(o.confidence, unittest.equals(42.0)); |
| 394 unittest.expect(o.importanceFraction, unittest.equals(42.0)); | 394 unittest.expect(o.importanceFraction, unittest.equals(42.0)); |
| 395 } | 395 } |
| 396 buildCounterCropHint--; | 396 buildCounterCropHint--; |
| 397 } | 397 } |
| 398 | 398 |
| 399 buildUnnamed1187() { | 399 buildUnnamed1218() { |
| 400 var o = new core.List<api.CropHint>(); | 400 var o = new core.List<api.CropHint>(); |
| 401 o.add(buildCropHint()); | 401 o.add(buildCropHint()); |
| 402 o.add(buildCropHint()); | 402 o.add(buildCropHint()); |
| 403 return o; | 403 return o; |
| 404 } | 404 } |
| 405 | 405 |
| 406 checkUnnamed1187(core.List<api.CropHint> o) { | 406 checkUnnamed1218(core.List<api.CropHint> o) { |
| 407 unittest.expect(o, unittest.hasLength(2)); | 407 unittest.expect(o, unittest.hasLength(2)); |
| 408 checkCropHint(o[0]); | 408 checkCropHint(o[0]); |
| 409 checkCropHint(o[1]); | 409 checkCropHint(o[1]); |
| 410 } | 410 } |
| 411 | 411 |
| 412 core.int buildCounterCropHintsAnnotation = 0; | 412 core.int buildCounterCropHintsAnnotation = 0; |
| 413 buildCropHintsAnnotation() { | 413 buildCropHintsAnnotation() { |
| 414 var o = new api.CropHintsAnnotation(); | 414 var o = new api.CropHintsAnnotation(); |
| 415 buildCounterCropHintsAnnotation++; | 415 buildCounterCropHintsAnnotation++; |
| 416 if (buildCounterCropHintsAnnotation < 3) { | 416 if (buildCounterCropHintsAnnotation < 3) { |
| 417 o.cropHints = buildUnnamed1187(); | 417 o.cropHints = buildUnnamed1218(); |
| 418 } | 418 } |
| 419 buildCounterCropHintsAnnotation--; | 419 buildCounterCropHintsAnnotation--; |
| 420 return o; | 420 return o; |
| 421 } | 421 } |
| 422 | 422 |
| 423 checkCropHintsAnnotation(api.CropHintsAnnotation o) { | 423 checkCropHintsAnnotation(api.CropHintsAnnotation o) { |
| 424 buildCounterCropHintsAnnotation++; | 424 buildCounterCropHintsAnnotation++; |
| 425 if (buildCounterCropHintsAnnotation < 3) { | 425 if (buildCounterCropHintsAnnotation < 3) { |
| 426 checkUnnamed1187(o.cropHints); | 426 checkUnnamed1218(o.cropHints); |
| 427 } | 427 } |
| 428 buildCounterCropHintsAnnotation--; | 428 buildCounterCropHintsAnnotation--; |
| 429 } | 429 } |
| 430 | 430 |
| 431 buildUnnamed1188() { | 431 buildUnnamed1219() { |
| 432 var o = new core.List<core.double>(); | 432 var o = new core.List<core.double>(); |
| 433 o.add(42.0); | 433 o.add(42.0); |
| 434 o.add(42.0); | 434 o.add(42.0); |
| 435 return o; | 435 return o; |
| 436 } | 436 } |
| 437 | 437 |
| 438 checkUnnamed1188(core.List<core.double> o) { | 438 checkUnnamed1219(core.List<core.double> o) { |
| 439 unittest.expect(o, unittest.hasLength(2)); | 439 unittest.expect(o, unittest.hasLength(2)); |
| 440 unittest.expect(o[0], unittest.equals(42.0)); | 440 unittest.expect(o[0], unittest.equals(42.0)); |
| 441 unittest.expect(o[1], unittest.equals(42.0)); | 441 unittest.expect(o[1], unittest.equals(42.0)); |
| 442 } | 442 } |
| 443 | 443 |
| 444 core.int buildCounterCropHintsParams = 0; | 444 core.int buildCounterCropHintsParams = 0; |
| 445 buildCropHintsParams() { | 445 buildCropHintsParams() { |
| 446 var o = new api.CropHintsParams(); | 446 var o = new api.CropHintsParams(); |
| 447 buildCounterCropHintsParams++; | 447 buildCounterCropHintsParams++; |
| 448 if (buildCounterCropHintsParams < 3) { | 448 if (buildCounterCropHintsParams < 3) { |
| 449 o.aspectRatios = buildUnnamed1188(); | 449 o.aspectRatios = buildUnnamed1219(); |
| 450 } | 450 } |
| 451 buildCounterCropHintsParams--; | 451 buildCounterCropHintsParams--; |
| 452 return o; | 452 return o; |
| 453 } | 453 } |
| 454 | 454 |
| 455 checkCropHintsParams(api.CropHintsParams o) { | 455 checkCropHintsParams(api.CropHintsParams o) { |
| 456 buildCounterCropHintsParams++; | 456 buildCounterCropHintsParams++; |
| 457 if (buildCounterCropHintsParams < 3) { | 457 if (buildCounterCropHintsParams < 3) { |
| 458 checkUnnamed1188(o.aspectRatios); | 458 checkUnnamed1219(o.aspectRatios); |
| 459 } | 459 } |
| 460 buildCounterCropHintsParams--; | 460 buildCounterCropHintsParams--; |
| 461 } | 461 } |
| 462 | 462 |
| 463 core.int buildCounterDetectedBreak = 0; | 463 core.int buildCounterDetectedBreak = 0; |
| 464 buildDetectedBreak() { | 464 buildDetectedBreak() { |
| 465 var o = new api.DetectedBreak(); | 465 var o = new api.DetectedBreak(); |
| 466 buildCounterDetectedBreak++; | 466 buildCounterDetectedBreak++; |
| 467 if (buildCounterDetectedBreak < 3) { | 467 if (buildCounterDetectedBreak < 3) { |
| 468 o.isPrefix = true; | 468 o.isPrefix = true; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 495 | 495 |
| 496 checkDetectedLanguage(api.DetectedLanguage o) { | 496 checkDetectedLanguage(api.DetectedLanguage o) { |
| 497 buildCounterDetectedLanguage++; | 497 buildCounterDetectedLanguage++; |
| 498 if (buildCounterDetectedLanguage < 3) { | 498 if (buildCounterDetectedLanguage < 3) { |
| 499 unittest.expect(o.confidence, unittest.equals(42.0)); | 499 unittest.expect(o.confidence, unittest.equals(42.0)); |
| 500 unittest.expect(o.languageCode, unittest.equals('foo')); | 500 unittest.expect(o.languageCode, unittest.equals('foo')); |
| 501 } | 501 } |
| 502 buildCounterDetectedLanguage--; | 502 buildCounterDetectedLanguage--; |
| 503 } | 503 } |
| 504 | 504 |
| 505 buildUnnamed1189() { | 505 buildUnnamed1220() { |
| 506 var o = new core.List<api.ColorInfo>(); | 506 var o = new core.List<api.ColorInfo>(); |
| 507 o.add(buildColorInfo()); | 507 o.add(buildColorInfo()); |
| 508 o.add(buildColorInfo()); | 508 o.add(buildColorInfo()); |
| 509 return o; | 509 return o; |
| 510 } | 510 } |
| 511 | 511 |
| 512 checkUnnamed1189(core.List<api.ColorInfo> o) { | 512 checkUnnamed1220(core.List<api.ColorInfo> o) { |
| 513 unittest.expect(o, unittest.hasLength(2)); | 513 unittest.expect(o, unittest.hasLength(2)); |
| 514 checkColorInfo(o[0]); | 514 checkColorInfo(o[0]); |
| 515 checkColorInfo(o[1]); | 515 checkColorInfo(o[1]); |
| 516 } | 516 } |
| 517 | 517 |
| 518 core.int buildCounterDominantColorsAnnotation = 0; | 518 core.int buildCounterDominantColorsAnnotation = 0; |
| 519 buildDominantColorsAnnotation() { | 519 buildDominantColorsAnnotation() { |
| 520 var o = new api.DominantColorsAnnotation(); | 520 var o = new api.DominantColorsAnnotation(); |
| 521 buildCounterDominantColorsAnnotation++; | 521 buildCounterDominantColorsAnnotation++; |
| 522 if (buildCounterDominantColorsAnnotation < 3) { | 522 if (buildCounterDominantColorsAnnotation < 3) { |
| 523 o.colors = buildUnnamed1189(); | 523 o.colors = buildUnnamed1220(); |
| 524 } | 524 } |
| 525 buildCounterDominantColorsAnnotation--; | 525 buildCounterDominantColorsAnnotation--; |
| 526 return o; | 526 return o; |
| 527 } | 527 } |
| 528 | 528 |
| 529 checkDominantColorsAnnotation(api.DominantColorsAnnotation o) { | 529 checkDominantColorsAnnotation(api.DominantColorsAnnotation o) { |
| 530 buildCounterDominantColorsAnnotation++; | 530 buildCounterDominantColorsAnnotation++; |
| 531 if (buildCounterDominantColorsAnnotation < 3) { | 531 if (buildCounterDominantColorsAnnotation < 3) { |
| 532 checkUnnamed1189(o.colors); | 532 checkUnnamed1220(o.colors); |
| 533 } | 533 } |
| 534 buildCounterDominantColorsAnnotation--; | 534 buildCounterDominantColorsAnnotation--; |
| 535 } | 535 } |
| 536 | 536 |
| 537 buildUnnamed1190() { | 537 buildUnnamed1221() { |
| 538 var o = new core.List<api.LocationInfo>(); | 538 var o = new core.List<api.LocationInfo>(); |
| 539 o.add(buildLocationInfo()); | 539 o.add(buildLocationInfo()); |
| 540 o.add(buildLocationInfo()); | 540 o.add(buildLocationInfo()); |
| 541 return o; | 541 return o; |
| 542 } | 542 } |
| 543 | 543 |
| 544 checkUnnamed1190(core.List<api.LocationInfo> o) { | 544 checkUnnamed1221(core.List<api.LocationInfo> o) { |
| 545 unittest.expect(o, unittest.hasLength(2)); | 545 unittest.expect(o, unittest.hasLength(2)); |
| 546 checkLocationInfo(o[0]); | 546 checkLocationInfo(o[0]); |
| 547 checkLocationInfo(o[1]); | 547 checkLocationInfo(o[1]); |
| 548 } | 548 } |
| 549 | 549 |
| 550 buildUnnamed1191() { | 550 buildUnnamed1222() { |
| 551 var o = new core.List<api.Property>(); | 551 var o = new core.List<api.Property>(); |
| 552 o.add(buildProperty()); | 552 o.add(buildProperty()); |
| 553 o.add(buildProperty()); | 553 o.add(buildProperty()); |
| 554 return o; | 554 return o; |
| 555 } | 555 } |
| 556 | 556 |
| 557 checkUnnamed1191(core.List<api.Property> o) { | 557 checkUnnamed1222(core.List<api.Property> o) { |
| 558 unittest.expect(o, unittest.hasLength(2)); | 558 unittest.expect(o, unittest.hasLength(2)); |
| 559 checkProperty(o[0]); | 559 checkProperty(o[0]); |
| 560 checkProperty(o[1]); | 560 checkProperty(o[1]); |
| 561 } | 561 } |
| 562 | 562 |
| 563 core.int buildCounterEntityAnnotation = 0; | 563 core.int buildCounterEntityAnnotation = 0; |
| 564 buildEntityAnnotation() { | 564 buildEntityAnnotation() { |
| 565 var o = new api.EntityAnnotation(); | 565 var o = new api.EntityAnnotation(); |
| 566 buildCounterEntityAnnotation++; | 566 buildCounterEntityAnnotation++; |
| 567 if (buildCounterEntityAnnotation < 3) { | 567 if (buildCounterEntityAnnotation < 3) { |
| 568 o.boundingPoly = buildBoundingPoly(); | 568 o.boundingPoly = buildBoundingPoly(); |
| 569 o.confidence = 42.0; | 569 o.confidence = 42.0; |
| 570 o.description = "foo"; | 570 o.description = "foo"; |
| 571 o.locale = "foo"; | 571 o.locale = "foo"; |
| 572 o.locations = buildUnnamed1190(); | 572 o.locations = buildUnnamed1221(); |
| 573 o.mid = "foo"; | 573 o.mid = "foo"; |
| 574 o.properties = buildUnnamed1191(); | 574 o.properties = buildUnnamed1222(); |
| 575 o.score = 42.0; | 575 o.score = 42.0; |
| 576 o.topicality = 42.0; | 576 o.topicality = 42.0; |
| 577 } | 577 } |
| 578 buildCounterEntityAnnotation--; | 578 buildCounterEntityAnnotation--; |
| 579 return o; | 579 return o; |
| 580 } | 580 } |
| 581 | 581 |
| 582 checkEntityAnnotation(api.EntityAnnotation o) { | 582 checkEntityAnnotation(api.EntityAnnotation o) { |
| 583 buildCounterEntityAnnotation++; | 583 buildCounterEntityAnnotation++; |
| 584 if (buildCounterEntityAnnotation < 3) { | 584 if (buildCounterEntityAnnotation < 3) { |
| 585 checkBoundingPoly(o.boundingPoly); | 585 checkBoundingPoly(o.boundingPoly); |
| 586 unittest.expect(o.confidence, unittest.equals(42.0)); | 586 unittest.expect(o.confidence, unittest.equals(42.0)); |
| 587 unittest.expect(o.description, unittest.equals('foo')); | 587 unittest.expect(o.description, unittest.equals('foo')); |
| 588 unittest.expect(o.locale, unittest.equals('foo')); | 588 unittest.expect(o.locale, unittest.equals('foo')); |
| 589 checkUnnamed1190(o.locations); | 589 checkUnnamed1221(o.locations); |
| 590 unittest.expect(o.mid, unittest.equals('foo')); | 590 unittest.expect(o.mid, unittest.equals('foo')); |
| 591 checkUnnamed1191(o.properties); | 591 checkUnnamed1222(o.properties); |
| 592 unittest.expect(o.score, unittest.equals(42.0)); | 592 unittest.expect(o.score, unittest.equals(42.0)); |
| 593 unittest.expect(o.topicality, unittest.equals(42.0)); | 593 unittest.expect(o.topicality, unittest.equals(42.0)); |
| 594 } | 594 } |
| 595 buildCounterEntityAnnotation--; | 595 buildCounterEntityAnnotation--; |
| 596 } | 596 } |
| 597 | 597 |
| 598 buildUnnamed1192() { | 598 buildUnnamed1223() { |
| 599 var o = new core.List<api.Landmark>(); | 599 var o = new core.List<api.Landmark>(); |
| 600 o.add(buildLandmark()); | 600 o.add(buildLandmark()); |
| 601 o.add(buildLandmark()); | 601 o.add(buildLandmark()); |
| 602 return o; | 602 return o; |
| 603 } | 603 } |
| 604 | 604 |
| 605 checkUnnamed1192(core.List<api.Landmark> o) { | 605 checkUnnamed1223(core.List<api.Landmark> o) { |
| 606 unittest.expect(o, unittest.hasLength(2)); | 606 unittest.expect(o, unittest.hasLength(2)); |
| 607 checkLandmark(o[0]); | 607 checkLandmark(o[0]); |
| 608 checkLandmark(o[1]); | 608 checkLandmark(o[1]); |
| 609 } | 609 } |
| 610 | 610 |
| 611 core.int buildCounterFaceAnnotation = 0; | 611 core.int buildCounterFaceAnnotation = 0; |
| 612 buildFaceAnnotation() { | 612 buildFaceAnnotation() { |
| 613 var o = new api.FaceAnnotation(); | 613 var o = new api.FaceAnnotation(); |
| 614 buildCounterFaceAnnotation++; | 614 buildCounterFaceAnnotation++; |
| 615 if (buildCounterFaceAnnotation < 3) { | 615 if (buildCounterFaceAnnotation < 3) { |
| 616 o.angerLikelihood = "foo"; | 616 o.angerLikelihood = "foo"; |
| 617 o.blurredLikelihood = "foo"; | 617 o.blurredLikelihood = "foo"; |
| 618 o.boundingPoly = buildBoundingPoly(); | 618 o.boundingPoly = buildBoundingPoly(); |
| 619 o.detectionConfidence = 42.0; | 619 o.detectionConfidence = 42.0; |
| 620 o.fdBoundingPoly = buildBoundingPoly(); | 620 o.fdBoundingPoly = buildBoundingPoly(); |
| 621 o.headwearLikelihood = "foo"; | 621 o.headwearLikelihood = "foo"; |
| 622 o.joyLikelihood = "foo"; | 622 o.joyLikelihood = "foo"; |
| 623 o.landmarkingConfidence = 42.0; | 623 o.landmarkingConfidence = 42.0; |
| 624 o.landmarks = buildUnnamed1192(); | 624 o.landmarks = buildUnnamed1223(); |
| 625 o.panAngle = 42.0; | 625 o.panAngle = 42.0; |
| 626 o.rollAngle = 42.0; | 626 o.rollAngle = 42.0; |
| 627 o.sorrowLikelihood = "foo"; | 627 o.sorrowLikelihood = "foo"; |
| 628 o.surpriseLikelihood = "foo"; | 628 o.surpriseLikelihood = "foo"; |
| 629 o.tiltAngle = 42.0; | 629 o.tiltAngle = 42.0; |
| 630 o.underExposedLikelihood = "foo"; | 630 o.underExposedLikelihood = "foo"; |
| 631 } | 631 } |
| 632 buildCounterFaceAnnotation--; | 632 buildCounterFaceAnnotation--; |
| 633 return o; | 633 return o; |
| 634 } | 634 } |
| 635 | 635 |
| 636 checkFaceAnnotation(api.FaceAnnotation o) { | 636 checkFaceAnnotation(api.FaceAnnotation o) { |
| 637 buildCounterFaceAnnotation++; | 637 buildCounterFaceAnnotation++; |
| 638 if (buildCounterFaceAnnotation < 3) { | 638 if (buildCounterFaceAnnotation < 3) { |
| 639 unittest.expect(o.angerLikelihood, unittest.equals('foo')); | 639 unittest.expect(o.angerLikelihood, unittest.equals('foo')); |
| 640 unittest.expect(o.blurredLikelihood, unittest.equals('foo')); | 640 unittest.expect(o.blurredLikelihood, unittest.equals('foo')); |
| 641 checkBoundingPoly(o.boundingPoly); | 641 checkBoundingPoly(o.boundingPoly); |
| 642 unittest.expect(o.detectionConfidence, unittest.equals(42.0)); | 642 unittest.expect(o.detectionConfidence, unittest.equals(42.0)); |
| 643 checkBoundingPoly(o.fdBoundingPoly); | 643 checkBoundingPoly(o.fdBoundingPoly); |
| 644 unittest.expect(o.headwearLikelihood, unittest.equals('foo')); | 644 unittest.expect(o.headwearLikelihood, unittest.equals('foo')); |
| 645 unittest.expect(o.joyLikelihood, unittest.equals('foo')); | 645 unittest.expect(o.joyLikelihood, unittest.equals('foo')); |
| 646 unittest.expect(o.landmarkingConfidence, unittest.equals(42.0)); | 646 unittest.expect(o.landmarkingConfidence, unittest.equals(42.0)); |
| 647 checkUnnamed1192(o.landmarks); | 647 checkUnnamed1223(o.landmarks); |
| 648 unittest.expect(o.panAngle, unittest.equals(42.0)); | 648 unittest.expect(o.panAngle, unittest.equals(42.0)); |
| 649 unittest.expect(o.rollAngle, unittest.equals(42.0)); | 649 unittest.expect(o.rollAngle, unittest.equals(42.0)); |
| 650 unittest.expect(o.sorrowLikelihood, unittest.equals('foo')); | 650 unittest.expect(o.sorrowLikelihood, unittest.equals('foo')); |
| 651 unittest.expect(o.surpriseLikelihood, unittest.equals('foo')); | 651 unittest.expect(o.surpriseLikelihood, unittest.equals('foo')); |
| 652 unittest.expect(o.tiltAngle, unittest.equals(42.0)); | 652 unittest.expect(o.tiltAngle, unittest.equals(42.0)); |
| 653 unittest.expect(o.underExposedLikelihood, unittest.equals('foo')); | 653 unittest.expect(o.underExposedLikelihood, unittest.equals('foo')); |
| 654 } | 654 } |
| 655 buildCounterFaceAnnotation--; | 655 buildCounterFaceAnnotation--; |
| 656 } | 656 } |
| 657 | 657 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 690 | 690 |
| 691 checkImage(api.Image o) { | 691 checkImage(api.Image o) { |
| 692 buildCounterImage++; | 692 buildCounterImage++; |
| 693 if (buildCounterImage < 3) { | 693 if (buildCounterImage < 3) { |
| 694 unittest.expect(o.content, unittest.equals('foo')); | 694 unittest.expect(o.content, unittest.equals('foo')); |
| 695 checkImageSource(o.source); | 695 checkImageSource(o.source); |
| 696 } | 696 } |
| 697 buildCounterImage--; | 697 buildCounterImage--; |
| 698 } | 698 } |
| 699 | 699 |
| 700 buildUnnamed1193() { | 700 buildUnnamed1224() { |
| 701 var o = new core.List<core.String>(); | 701 var o = new core.List<core.String>(); |
| 702 o.add("foo"); | 702 o.add("foo"); |
| 703 o.add("foo"); | 703 o.add("foo"); |
| 704 return o; | 704 return o; |
| 705 } | 705 } |
| 706 | 706 |
| 707 checkUnnamed1193(core.List<core.String> o) { | 707 checkUnnamed1224(core.List<core.String> o) { |
| 708 unittest.expect(o, unittest.hasLength(2)); | 708 unittest.expect(o, unittest.hasLength(2)); |
| 709 unittest.expect(o[0], unittest.equals('foo')); | 709 unittest.expect(o[0], unittest.equals('foo')); |
| 710 unittest.expect(o[1], unittest.equals('foo')); | 710 unittest.expect(o[1], unittest.equals('foo')); |
| 711 } | 711 } |
| 712 | 712 |
| 713 core.int buildCounterImageContext = 0; | 713 core.int buildCounterImageContext = 0; |
| 714 buildImageContext() { | 714 buildImageContext() { |
| 715 var o = new api.ImageContext(); | 715 var o = new api.ImageContext(); |
| 716 buildCounterImageContext++; | 716 buildCounterImageContext++; |
| 717 if (buildCounterImageContext < 3) { | 717 if (buildCounterImageContext < 3) { |
| 718 o.cropHintsParams = buildCropHintsParams(); | 718 o.cropHintsParams = buildCropHintsParams(); |
| 719 o.languageHints = buildUnnamed1193(); | 719 o.languageHints = buildUnnamed1224(); |
| 720 o.latLongRect = buildLatLongRect(); | 720 o.latLongRect = buildLatLongRect(); |
| 721 } | 721 } |
| 722 buildCounterImageContext--; | 722 buildCounterImageContext--; |
| 723 return o; | 723 return o; |
| 724 } | 724 } |
| 725 | 725 |
| 726 checkImageContext(api.ImageContext o) { | 726 checkImageContext(api.ImageContext o) { |
| 727 buildCounterImageContext++; | 727 buildCounterImageContext++; |
| 728 if (buildCounterImageContext < 3) { | 728 if (buildCounterImageContext < 3) { |
| 729 checkCropHintsParams(o.cropHintsParams); | 729 checkCropHintsParams(o.cropHintsParams); |
| 730 checkUnnamed1193(o.languageHints); | 730 checkUnnamed1224(o.languageHints); |
| 731 checkLatLongRect(o.latLongRect); | 731 checkLatLongRect(o.latLongRect); |
| 732 } | 732 } |
| 733 buildCounterImageContext--; | 733 buildCounterImageContext--; |
| 734 } | 734 } |
| 735 | 735 |
| 736 core.int buildCounterImageProperties = 0; | 736 core.int buildCounterImageProperties = 0; |
| 737 buildImageProperties() { | 737 buildImageProperties() { |
| 738 var o = new api.ImageProperties(); | 738 var o = new api.ImageProperties(); |
| 739 buildCounterImageProperties++; | 739 buildCounterImageProperties++; |
| 740 if (buildCounterImageProperties < 3) { | 740 if (buildCounterImageProperties < 3) { |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 848 } | 848 } |
| 849 | 849 |
| 850 checkLocationInfo(api.LocationInfo o) { | 850 checkLocationInfo(api.LocationInfo o) { |
| 851 buildCounterLocationInfo++; | 851 buildCounterLocationInfo++; |
| 852 if (buildCounterLocationInfo < 3) { | 852 if (buildCounterLocationInfo < 3) { |
| 853 checkLatLng(o.latLng); | 853 checkLatLng(o.latLng); |
| 854 } | 854 } |
| 855 buildCounterLocationInfo--; | 855 buildCounterLocationInfo--; |
| 856 } | 856 } |
| 857 | 857 |
| 858 buildUnnamed1194() { | 858 buildUnnamed1225() { |
| 859 var o = new core.List<api.Block>(); | 859 var o = new core.List<api.Block>(); |
| 860 o.add(buildBlock()); | 860 o.add(buildBlock()); |
| 861 o.add(buildBlock()); | 861 o.add(buildBlock()); |
| 862 return o; | 862 return o; |
| 863 } | 863 } |
| 864 | 864 |
| 865 checkUnnamed1194(core.List<api.Block> o) { | 865 checkUnnamed1225(core.List<api.Block> o) { |
| 866 unittest.expect(o, unittest.hasLength(2)); | 866 unittest.expect(o, unittest.hasLength(2)); |
| 867 checkBlock(o[0]); | 867 checkBlock(o[0]); |
| 868 checkBlock(o[1]); | 868 checkBlock(o[1]); |
| 869 } | 869 } |
| 870 | 870 |
| 871 core.int buildCounterPage = 0; | 871 core.int buildCounterPage = 0; |
| 872 buildPage() { | 872 buildPage() { |
| 873 var o = new api.Page(); | 873 var o = new api.Page(); |
| 874 buildCounterPage++; | 874 buildCounterPage++; |
| 875 if (buildCounterPage < 3) { | 875 if (buildCounterPage < 3) { |
| 876 o.blocks = buildUnnamed1194(); | 876 o.blocks = buildUnnamed1225(); |
| 877 o.height = 42; | 877 o.height = 42; |
| 878 o.property = buildTextProperty(); | 878 o.property = buildTextProperty(); |
| 879 o.width = 42; | 879 o.width = 42; |
| 880 } | 880 } |
| 881 buildCounterPage--; | 881 buildCounterPage--; |
| 882 return o; | 882 return o; |
| 883 } | 883 } |
| 884 | 884 |
| 885 checkPage(api.Page o) { | 885 checkPage(api.Page o) { |
| 886 buildCounterPage++; | 886 buildCounterPage++; |
| 887 if (buildCounterPage < 3) { | 887 if (buildCounterPage < 3) { |
| 888 checkUnnamed1194(o.blocks); | 888 checkUnnamed1225(o.blocks); |
| 889 unittest.expect(o.height, unittest.equals(42)); | 889 unittest.expect(o.height, unittest.equals(42)); |
| 890 checkTextProperty(o.property); | 890 checkTextProperty(o.property); |
| 891 unittest.expect(o.width, unittest.equals(42)); | 891 unittest.expect(o.width, unittest.equals(42)); |
| 892 } | 892 } |
| 893 buildCounterPage--; | 893 buildCounterPage--; |
| 894 } | 894 } |
| 895 | 895 |
| 896 buildUnnamed1195() { | 896 buildUnnamed1226() { |
| 897 var o = new core.List<api.Word>(); | 897 var o = new core.List<api.Word>(); |
| 898 o.add(buildWord()); | 898 o.add(buildWord()); |
| 899 o.add(buildWord()); | 899 o.add(buildWord()); |
| 900 return o; | 900 return o; |
| 901 } | 901 } |
| 902 | 902 |
| 903 checkUnnamed1195(core.List<api.Word> o) { | 903 checkUnnamed1226(core.List<api.Word> o) { |
| 904 unittest.expect(o, unittest.hasLength(2)); | 904 unittest.expect(o, unittest.hasLength(2)); |
| 905 checkWord(o[0]); | 905 checkWord(o[0]); |
| 906 checkWord(o[1]); | 906 checkWord(o[1]); |
| 907 } | 907 } |
| 908 | 908 |
| 909 core.int buildCounterParagraph = 0; | 909 core.int buildCounterParagraph = 0; |
| 910 buildParagraph() { | 910 buildParagraph() { |
| 911 var o = new api.Paragraph(); | 911 var o = new api.Paragraph(); |
| 912 buildCounterParagraph++; | 912 buildCounterParagraph++; |
| 913 if (buildCounterParagraph < 3) { | 913 if (buildCounterParagraph < 3) { |
| 914 o.boundingBox = buildBoundingPoly(); | 914 o.boundingBox = buildBoundingPoly(); |
| 915 o.property = buildTextProperty(); | 915 o.property = buildTextProperty(); |
| 916 o.words = buildUnnamed1195(); | 916 o.words = buildUnnamed1226(); |
| 917 } | 917 } |
| 918 buildCounterParagraph--; | 918 buildCounterParagraph--; |
| 919 return o; | 919 return o; |
| 920 } | 920 } |
| 921 | 921 |
| 922 checkParagraph(api.Paragraph o) { | 922 checkParagraph(api.Paragraph o) { |
| 923 buildCounterParagraph++; | 923 buildCounterParagraph++; |
| 924 if (buildCounterParagraph < 3) { | 924 if (buildCounterParagraph < 3) { |
| 925 checkBoundingPoly(o.boundingBox); | 925 checkBoundingPoly(o.boundingBox); |
| 926 checkTextProperty(o.property); | 926 checkTextProperty(o.property); |
| 927 checkUnnamed1195(o.words); | 927 checkUnnamed1226(o.words); |
| 928 } | 928 } |
| 929 buildCounterParagraph--; | 929 buildCounterParagraph--; |
| 930 } | 930 } |
| 931 | 931 |
| 932 core.int buildCounterPosition = 0; | 932 core.int buildCounterPosition = 0; |
| 933 buildPosition() { | 933 buildPosition() { |
| 934 var o = new api.Position(); | 934 var o = new api.Position(); |
| 935 buildCounterPosition++; | 935 buildCounterPosition++; |
| 936 if (buildCounterPosition < 3) { | 936 if (buildCounterPosition < 3) { |
| 937 o.x = 42.0; | 937 o.x = 42.0; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 993 buildCounterSafeSearchAnnotation++; | 993 buildCounterSafeSearchAnnotation++; |
| 994 if (buildCounterSafeSearchAnnotation < 3) { | 994 if (buildCounterSafeSearchAnnotation < 3) { |
| 995 unittest.expect(o.adult, unittest.equals('foo')); | 995 unittest.expect(o.adult, unittest.equals('foo')); |
| 996 unittest.expect(o.medical, unittest.equals('foo')); | 996 unittest.expect(o.medical, unittest.equals('foo')); |
| 997 unittest.expect(o.spoof, unittest.equals('foo')); | 997 unittest.expect(o.spoof, unittest.equals('foo')); |
| 998 unittest.expect(o.violence, unittest.equals('foo')); | 998 unittest.expect(o.violence, unittest.equals('foo')); |
| 999 } | 999 } |
| 1000 buildCounterSafeSearchAnnotation--; | 1000 buildCounterSafeSearchAnnotation--; |
| 1001 } | 1001 } |
| 1002 | 1002 |
| 1003 buildUnnamed1196() { | 1003 buildUnnamed1227() { |
| 1004 var o = new core.Map<core.String, core.Object>(); | 1004 var o = new core.Map<core.String, core.Object>(); |
| 1005 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1005 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1006 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1006 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1007 return o; | 1007 return o; |
| 1008 } | 1008 } |
| 1009 | 1009 |
| 1010 checkUnnamed1196(core.Map<core.String, core.Object> o) { | 1010 checkUnnamed1227(core.Map<core.String, core.Object> o) { |
| 1011 unittest.expect(o, unittest.hasLength(2)); | 1011 unittest.expect(o, unittest.hasLength(2)); |
| 1012 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); | 1012 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); |
| 1013 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); | 1013 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); |
| 1014 } | 1014 } |
| 1015 | 1015 |
| 1016 buildUnnamed1197() { | 1016 buildUnnamed1228() { |
| 1017 var o = new core.List<core.Map<core.String, core.Object>>(); | 1017 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 1018 o.add(buildUnnamed1196()); | 1018 o.add(buildUnnamed1227()); |
| 1019 o.add(buildUnnamed1196()); | 1019 o.add(buildUnnamed1227()); |
| 1020 return o; | 1020 return o; |
| 1021 } | 1021 } |
| 1022 | 1022 |
| 1023 checkUnnamed1197(core.List<core.Map<core.String, core.Object>> o) { | 1023 checkUnnamed1228(core.List<core.Map<core.String, core.Object>> o) { |
| 1024 unittest.expect(o, unittest.hasLength(2)); | 1024 unittest.expect(o, unittest.hasLength(2)); |
| 1025 checkUnnamed1196(o[0]); | 1025 checkUnnamed1227(o[0]); |
| 1026 checkUnnamed1196(o[1]); | 1026 checkUnnamed1227(o[1]); |
| 1027 } | 1027 } |
| 1028 | 1028 |
| 1029 core.int buildCounterStatus = 0; | 1029 core.int buildCounterStatus = 0; |
| 1030 buildStatus() { | 1030 buildStatus() { |
| 1031 var o = new api.Status(); | 1031 var o = new api.Status(); |
| 1032 buildCounterStatus++; | 1032 buildCounterStatus++; |
| 1033 if (buildCounterStatus < 3) { | 1033 if (buildCounterStatus < 3) { |
| 1034 o.code = 42; | 1034 o.code = 42; |
| 1035 o.details = buildUnnamed1197(); | 1035 o.details = buildUnnamed1228(); |
| 1036 o.message = "foo"; | 1036 o.message = "foo"; |
| 1037 } | 1037 } |
| 1038 buildCounterStatus--; | 1038 buildCounterStatus--; |
| 1039 return o; | 1039 return o; |
| 1040 } | 1040 } |
| 1041 | 1041 |
| 1042 checkStatus(api.Status o) { | 1042 checkStatus(api.Status o) { |
| 1043 buildCounterStatus++; | 1043 buildCounterStatus++; |
| 1044 if (buildCounterStatus < 3) { | 1044 if (buildCounterStatus < 3) { |
| 1045 unittest.expect(o.code, unittest.equals(42)); | 1045 unittest.expect(o.code, unittest.equals(42)); |
| 1046 checkUnnamed1197(o.details); | 1046 checkUnnamed1228(o.details); |
| 1047 unittest.expect(o.message, unittest.equals('foo')); | 1047 unittest.expect(o.message, unittest.equals('foo')); |
| 1048 } | 1048 } |
| 1049 buildCounterStatus--; | 1049 buildCounterStatus--; |
| 1050 } | 1050 } |
| 1051 | 1051 |
| 1052 core.int buildCounterSymbol = 0; | 1052 core.int buildCounterSymbol = 0; |
| 1053 buildSymbol() { | 1053 buildSymbol() { |
| 1054 var o = new api.Symbol(); | 1054 var o = new api.Symbol(); |
| 1055 buildCounterSymbol++; | 1055 buildCounterSymbol++; |
| 1056 if (buildCounterSymbol < 3) { | 1056 if (buildCounterSymbol < 3) { |
| 1057 o.boundingBox = buildBoundingPoly(); | 1057 o.boundingBox = buildBoundingPoly(); |
| 1058 o.property = buildTextProperty(); | 1058 o.property = buildTextProperty(); |
| 1059 o.text = "foo"; | 1059 o.text = "foo"; |
| 1060 } | 1060 } |
| 1061 buildCounterSymbol--; | 1061 buildCounterSymbol--; |
| 1062 return o; | 1062 return o; |
| 1063 } | 1063 } |
| 1064 | 1064 |
| 1065 checkSymbol(api.Symbol o) { | 1065 checkSymbol(api.Symbol o) { |
| 1066 buildCounterSymbol++; | 1066 buildCounterSymbol++; |
| 1067 if (buildCounterSymbol < 3) { | 1067 if (buildCounterSymbol < 3) { |
| 1068 checkBoundingPoly(o.boundingBox); | 1068 checkBoundingPoly(o.boundingBox); |
| 1069 checkTextProperty(o.property); | 1069 checkTextProperty(o.property); |
| 1070 unittest.expect(o.text, unittest.equals('foo')); | 1070 unittest.expect(o.text, unittest.equals('foo')); |
| 1071 } | 1071 } |
| 1072 buildCounterSymbol--; | 1072 buildCounterSymbol--; |
| 1073 } | 1073 } |
| 1074 | 1074 |
| 1075 buildUnnamed1198() { | 1075 buildUnnamed1229() { |
| 1076 var o = new core.List<api.Page>(); | 1076 var o = new core.List<api.Page>(); |
| 1077 o.add(buildPage()); | 1077 o.add(buildPage()); |
| 1078 o.add(buildPage()); | 1078 o.add(buildPage()); |
| 1079 return o; | 1079 return o; |
| 1080 } | 1080 } |
| 1081 | 1081 |
| 1082 checkUnnamed1198(core.List<api.Page> o) { | 1082 checkUnnamed1229(core.List<api.Page> o) { |
| 1083 unittest.expect(o, unittest.hasLength(2)); | 1083 unittest.expect(o, unittest.hasLength(2)); |
| 1084 checkPage(o[0]); | 1084 checkPage(o[0]); |
| 1085 checkPage(o[1]); | 1085 checkPage(o[1]); |
| 1086 } | 1086 } |
| 1087 | 1087 |
| 1088 core.int buildCounterTextAnnotation = 0; | 1088 core.int buildCounterTextAnnotation = 0; |
| 1089 buildTextAnnotation() { | 1089 buildTextAnnotation() { |
| 1090 var o = new api.TextAnnotation(); | 1090 var o = new api.TextAnnotation(); |
| 1091 buildCounterTextAnnotation++; | 1091 buildCounterTextAnnotation++; |
| 1092 if (buildCounterTextAnnotation < 3) { | 1092 if (buildCounterTextAnnotation < 3) { |
| 1093 o.pages = buildUnnamed1198(); | 1093 o.pages = buildUnnamed1229(); |
| 1094 o.text = "foo"; | 1094 o.text = "foo"; |
| 1095 } | 1095 } |
| 1096 buildCounterTextAnnotation--; | 1096 buildCounterTextAnnotation--; |
| 1097 return o; | 1097 return o; |
| 1098 } | 1098 } |
| 1099 | 1099 |
| 1100 checkTextAnnotation(api.TextAnnotation o) { | 1100 checkTextAnnotation(api.TextAnnotation o) { |
| 1101 buildCounterTextAnnotation++; | 1101 buildCounterTextAnnotation++; |
| 1102 if (buildCounterTextAnnotation < 3) { | 1102 if (buildCounterTextAnnotation < 3) { |
| 1103 checkUnnamed1198(o.pages); | 1103 checkUnnamed1229(o.pages); |
| 1104 unittest.expect(o.text, unittest.equals('foo')); | 1104 unittest.expect(o.text, unittest.equals('foo')); |
| 1105 } | 1105 } |
| 1106 buildCounterTextAnnotation--; | 1106 buildCounterTextAnnotation--; |
| 1107 } | 1107 } |
| 1108 | 1108 |
| 1109 buildUnnamed1199() { | 1109 buildUnnamed1230() { |
| 1110 var o = new core.List<api.DetectedLanguage>(); | 1110 var o = new core.List<api.DetectedLanguage>(); |
| 1111 o.add(buildDetectedLanguage()); | 1111 o.add(buildDetectedLanguage()); |
| 1112 o.add(buildDetectedLanguage()); | 1112 o.add(buildDetectedLanguage()); |
| 1113 return o; | 1113 return o; |
| 1114 } | 1114 } |
| 1115 | 1115 |
| 1116 checkUnnamed1199(core.List<api.DetectedLanguage> o) { | 1116 checkUnnamed1230(core.List<api.DetectedLanguage> o) { |
| 1117 unittest.expect(o, unittest.hasLength(2)); | 1117 unittest.expect(o, unittest.hasLength(2)); |
| 1118 checkDetectedLanguage(o[0]); | 1118 checkDetectedLanguage(o[0]); |
| 1119 checkDetectedLanguage(o[1]); | 1119 checkDetectedLanguage(o[1]); |
| 1120 } | 1120 } |
| 1121 | 1121 |
| 1122 core.int buildCounterTextProperty = 0; | 1122 core.int buildCounterTextProperty = 0; |
| 1123 buildTextProperty() { | 1123 buildTextProperty() { |
| 1124 var o = new api.TextProperty(); | 1124 var o = new api.TextProperty(); |
| 1125 buildCounterTextProperty++; | 1125 buildCounterTextProperty++; |
| 1126 if (buildCounterTextProperty < 3) { | 1126 if (buildCounterTextProperty < 3) { |
| 1127 o.detectedBreak = buildDetectedBreak(); | 1127 o.detectedBreak = buildDetectedBreak(); |
| 1128 o.detectedLanguages = buildUnnamed1199(); | 1128 o.detectedLanguages = buildUnnamed1230(); |
| 1129 } | 1129 } |
| 1130 buildCounterTextProperty--; | 1130 buildCounterTextProperty--; |
| 1131 return o; | 1131 return o; |
| 1132 } | 1132 } |
| 1133 | 1133 |
| 1134 checkTextProperty(api.TextProperty o) { | 1134 checkTextProperty(api.TextProperty o) { |
| 1135 buildCounterTextProperty++; | 1135 buildCounterTextProperty++; |
| 1136 if (buildCounterTextProperty < 3) { | 1136 if (buildCounterTextProperty < 3) { |
| 1137 checkDetectedBreak(o.detectedBreak); | 1137 checkDetectedBreak(o.detectedBreak); |
| 1138 checkUnnamed1199(o.detectedLanguages); | 1138 checkUnnamed1230(o.detectedLanguages); |
| 1139 } | 1139 } |
| 1140 buildCounterTextProperty--; | 1140 buildCounterTextProperty--; |
| 1141 } | 1141 } |
| 1142 | 1142 |
| 1143 core.int buildCounterVertex = 0; | 1143 core.int buildCounterVertex = 0; |
| 1144 buildVertex() { | 1144 buildVertex() { |
| 1145 var o = new api.Vertex(); | 1145 var o = new api.Vertex(); |
| 1146 buildCounterVertex++; | 1146 buildCounterVertex++; |
| 1147 if (buildCounterVertex < 3) { | 1147 if (buildCounterVertex < 3) { |
| 1148 o.x = 42; | 1148 o.x = 42; |
| 1149 o.y = 42; | 1149 o.y = 42; |
| 1150 } | 1150 } |
| 1151 buildCounterVertex--; | 1151 buildCounterVertex--; |
| 1152 return o; | 1152 return o; |
| 1153 } | 1153 } |
| 1154 | 1154 |
| 1155 checkVertex(api.Vertex o) { | 1155 checkVertex(api.Vertex o) { |
| 1156 buildCounterVertex++; | 1156 buildCounterVertex++; |
| 1157 if (buildCounterVertex < 3) { | 1157 if (buildCounterVertex < 3) { |
| 1158 unittest.expect(o.x, unittest.equals(42)); | 1158 unittest.expect(o.x, unittest.equals(42)); |
| 1159 unittest.expect(o.y, unittest.equals(42)); | 1159 unittest.expect(o.y, unittest.equals(42)); |
| 1160 } | 1160 } |
| 1161 buildCounterVertex--; | 1161 buildCounterVertex--; |
| 1162 } | 1162 } |
| 1163 | 1163 |
| 1164 buildUnnamed1200() { | 1164 buildUnnamed1231() { |
| 1165 var o = new core.List<api.WebImage>(); | 1165 var o = new core.List<api.WebImage>(); |
| 1166 o.add(buildWebImage()); | 1166 o.add(buildWebImage()); |
| 1167 o.add(buildWebImage()); | 1167 o.add(buildWebImage()); |
| 1168 return o; | 1168 return o; |
| 1169 } | 1169 } |
| 1170 | 1170 |
| 1171 checkUnnamed1200(core.List<api.WebImage> o) { | 1171 checkUnnamed1231(core.List<api.WebImage> o) { |
| 1172 unittest.expect(o, unittest.hasLength(2)); | 1172 unittest.expect(o, unittest.hasLength(2)); |
| 1173 checkWebImage(o[0]); | 1173 checkWebImage(o[0]); |
| 1174 checkWebImage(o[1]); | 1174 checkWebImage(o[1]); |
| 1175 } | 1175 } |
| 1176 | 1176 |
| 1177 buildUnnamed1201() { | 1177 buildUnnamed1232() { |
| 1178 var o = new core.List<api.WebPage>(); | 1178 var o = new core.List<api.WebPage>(); |
| 1179 o.add(buildWebPage()); | 1179 o.add(buildWebPage()); |
| 1180 o.add(buildWebPage()); | 1180 o.add(buildWebPage()); |
| 1181 return o; | 1181 return o; |
| 1182 } | 1182 } |
| 1183 | 1183 |
| 1184 checkUnnamed1201(core.List<api.WebPage> o) { | 1184 checkUnnamed1232(core.List<api.WebPage> o) { |
| 1185 unittest.expect(o, unittest.hasLength(2)); | 1185 unittest.expect(o, unittest.hasLength(2)); |
| 1186 checkWebPage(o[0]); | 1186 checkWebPage(o[0]); |
| 1187 checkWebPage(o[1]); | 1187 checkWebPage(o[1]); |
| 1188 } | 1188 } |
| 1189 | 1189 |
| 1190 buildUnnamed1202() { | 1190 buildUnnamed1233() { |
| 1191 var o = new core.List<api.WebImage>(); | 1191 var o = new core.List<api.WebImage>(); |
| 1192 o.add(buildWebImage()); | 1192 o.add(buildWebImage()); |
| 1193 o.add(buildWebImage()); | 1193 o.add(buildWebImage()); |
| 1194 return o; | 1194 return o; |
| 1195 } | 1195 } |
| 1196 | 1196 |
| 1197 checkUnnamed1202(core.List<api.WebImage> o) { | 1197 checkUnnamed1233(core.List<api.WebImage> o) { |
| 1198 unittest.expect(o, unittest.hasLength(2)); | 1198 unittest.expect(o, unittest.hasLength(2)); |
| 1199 checkWebImage(o[0]); | 1199 checkWebImage(o[0]); |
| 1200 checkWebImage(o[1]); | 1200 checkWebImage(o[1]); |
| 1201 } | 1201 } |
| 1202 | 1202 |
| 1203 buildUnnamed1203() { | 1203 buildUnnamed1234() { |
| 1204 var o = new core.List<api.WebImage>(); |
| 1205 o.add(buildWebImage()); |
| 1206 o.add(buildWebImage()); |
| 1207 return o; |
| 1208 } |
| 1209 |
| 1210 checkUnnamed1234(core.List<api.WebImage> o) { |
| 1211 unittest.expect(o, unittest.hasLength(2)); |
| 1212 checkWebImage(o[0]); |
| 1213 checkWebImage(o[1]); |
| 1214 } |
| 1215 |
| 1216 buildUnnamed1235() { |
| 1204 var o = new core.List<api.WebEntity>(); | 1217 var o = new core.List<api.WebEntity>(); |
| 1205 o.add(buildWebEntity()); | 1218 o.add(buildWebEntity()); |
| 1206 o.add(buildWebEntity()); | 1219 o.add(buildWebEntity()); |
| 1207 return o; | 1220 return o; |
| 1208 } | 1221 } |
| 1209 | 1222 |
| 1210 checkUnnamed1203(core.List<api.WebEntity> o) { | 1223 checkUnnamed1235(core.List<api.WebEntity> o) { |
| 1211 unittest.expect(o, unittest.hasLength(2)); | 1224 unittest.expect(o, unittest.hasLength(2)); |
| 1212 checkWebEntity(o[0]); | 1225 checkWebEntity(o[0]); |
| 1213 checkWebEntity(o[1]); | 1226 checkWebEntity(o[1]); |
| 1214 } | 1227 } |
| 1215 | 1228 |
| 1216 core.int buildCounterWebDetection = 0; | 1229 core.int buildCounterWebDetection = 0; |
| 1217 buildWebDetection() { | 1230 buildWebDetection() { |
| 1218 var o = new api.WebDetection(); | 1231 var o = new api.WebDetection(); |
| 1219 buildCounterWebDetection++; | 1232 buildCounterWebDetection++; |
| 1220 if (buildCounterWebDetection < 3) { | 1233 if (buildCounterWebDetection < 3) { |
| 1221 o.fullMatchingImages = buildUnnamed1200(); | 1234 o.fullMatchingImages = buildUnnamed1231(); |
| 1222 o.pagesWithMatchingImages = buildUnnamed1201(); | 1235 o.pagesWithMatchingImages = buildUnnamed1232(); |
| 1223 o.partialMatchingImages = buildUnnamed1202(); | 1236 o.partialMatchingImages = buildUnnamed1233(); |
| 1224 o.webEntities = buildUnnamed1203(); | 1237 o.visuallySimilarImages = buildUnnamed1234(); |
| 1238 o.webEntities = buildUnnamed1235(); |
| 1225 } | 1239 } |
| 1226 buildCounterWebDetection--; | 1240 buildCounterWebDetection--; |
| 1227 return o; | 1241 return o; |
| 1228 } | 1242 } |
| 1229 | 1243 |
| 1230 checkWebDetection(api.WebDetection o) { | 1244 checkWebDetection(api.WebDetection o) { |
| 1231 buildCounterWebDetection++; | 1245 buildCounterWebDetection++; |
| 1232 if (buildCounterWebDetection < 3) { | 1246 if (buildCounterWebDetection < 3) { |
| 1233 checkUnnamed1200(o.fullMatchingImages); | 1247 checkUnnamed1231(o.fullMatchingImages); |
| 1234 checkUnnamed1201(o.pagesWithMatchingImages); | 1248 checkUnnamed1232(o.pagesWithMatchingImages); |
| 1235 checkUnnamed1202(o.partialMatchingImages); | 1249 checkUnnamed1233(o.partialMatchingImages); |
| 1236 checkUnnamed1203(o.webEntities); | 1250 checkUnnamed1234(o.visuallySimilarImages); |
| 1251 checkUnnamed1235(o.webEntities); |
| 1237 } | 1252 } |
| 1238 buildCounterWebDetection--; | 1253 buildCounterWebDetection--; |
| 1239 } | 1254 } |
| 1240 | 1255 |
| 1241 core.int buildCounterWebEntity = 0; | 1256 core.int buildCounterWebEntity = 0; |
| 1242 buildWebEntity() { | 1257 buildWebEntity() { |
| 1243 var o = new api.WebEntity(); | 1258 var o = new api.WebEntity(); |
| 1244 buildCounterWebEntity++; | 1259 buildCounterWebEntity++; |
| 1245 if (buildCounterWebEntity < 3) { | 1260 if (buildCounterWebEntity < 3) { |
| 1246 o.description = "foo"; | 1261 o.description = "foo"; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1296 | 1311 |
| 1297 checkWebPage(api.WebPage o) { | 1312 checkWebPage(api.WebPage o) { |
| 1298 buildCounterWebPage++; | 1313 buildCounterWebPage++; |
| 1299 if (buildCounterWebPage < 3) { | 1314 if (buildCounterWebPage < 3) { |
| 1300 unittest.expect(o.score, unittest.equals(42.0)); | 1315 unittest.expect(o.score, unittest.equals(42.0)); |
| 1301 unittest.expect(o.url, unittest.equals('foo')); | 1316 unittest.expect(o.url, unittest.equals('foo')); |
| 1302 } | 1317 } |
| 1303 buildCounterWebPage--; | 1318 buildCounterWebPage--; |
| 1304 } | 1319 } |
| 1305 | 1320 |
| 1306 buildUnnamed1204() { | 1321 buildUnnamed1236() { |
| 1307 var o = new core.List<api.Symbol>(); | 1322 var o = new core.List<api.Symbol>(); |
| 1308 o.add(buildSymbol()); | 1323 o.add(buildSymbol()); |
| 1309 o.add(buildSymbol()); | 1324 o.add(buildSymbol()); |
| 1310 return o; | 1325 return o; |
| 1311 } | 1326 } |
| 1312 | 1327 |
| 1313 checkUnnamed1204(core.List<api.Symbol> o) { | 1328 checkUnnamed1236(core.List<api.Symbol> o) { |
| 1314 unittest.expect(o, unittest.hasLength(2)); | 1329 unittest.expect(o, unittest.hasLength(2)); |
| 1315 checkSymbol(o[0]); | 1330 checkSymbol(o[0]); |
| 1316 checkSymbol(o[1]); | 1331 checkSymbol(o[1]); |
| 1317 } | 1332 } |
| 1318 | 1333 |
| 1319 core.int buildCounterWord = 0; | 1334 core.int buildCounterWord = 0; |
| 1320 buildWord() { | 1335 buildWord() { |
| 1321 var o = new api.Word(); | 1336 var o = new api.Word(); |
| 1322 buildCounterWord++; | 1337 buildCounterWord++; |
| 1323 if (buildCounterWord < 3) { | 1338 if (buildCounterWord < 3) { |
| 1324 o.boundingBox = buildBoundingPoly(); | 1339 o.boundingBox = buildBoundingPoly(); |
| 1325 o.property = buildTextProperty(); | 1340 o.property = buildTextProperty(); |
| 1326 o.symbols = buildUnnamed1204(); | 1341 o.symbols = buildUnnamed1236(); |
| 1327 } | 1342 } |
| 1328 buildCounterWord--; | 1343 buildCounterWord--; |
| 1329 return o; | 1344 return o; |
| 1330 } | 1345 } |
| 1331 | 1346 |
| 1332 checkWord(api.Word o) { | 1347 checkWord(api.Word o) { |
| 1333 buildCounterWord++; | 1348 buildCounterWord++; |
| 1334 if (buildCounterWord < 3) { | 1349 if (buildCounterWord < 3) { |
| 1335 checkBoundingPoly(o.boundingBox); | 1350 checkBoundingPoly(o.boundingBox); |
| 1336 checkTextProperty(o.property); | 1351 checkTextProperty(o.property); |
| 1337 checkUnnamed1204(o.symbols); | 1352 checkUnnamed1236(o.symbols); |
| 1338 } | 1353 } |
| 1339 buildCounterWord--; | 1354 buildCounterWord--; |
| 1340 } | 1355 } |
| 1341 | 1356 |
| 1342 | 1357 |
| 1343 main() { | 1358 main() { |
| 1344 unittest.group("obj-schema-AnnotateImageRequest", () { | 1359 unittest.group("obj-schema-AnnotateImageRequest", () { |
| 1345 unittest.test("to-json--from-json", () { | 1360 unittest.test("to-json--from-json", () { |
| 1346 var o = buildAnnotateImageRequest(); | 1361 var o = buildAnnotateImageRequest(); |
| 1347 var od = new api.AnnotateImageRequest.fromJson(o.toJson()); | 1362 var od = new api.AnnotateImageRequest.fromJson(o.toJson()); |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1747 res.annotate(arg_request).then(unittest.expectAsync(((api.BatchAnnotateIma
gesResponse response) { | 1762 res.annotate(arg_request).then(unittest.expectAsync(((api.BatchAnnotateIma
gesResponse response) { |
| 1748 checkBatchAnnotateImagesResponse(response); | 1763 checkBatchAnnotateImagesResponse(response); |
| 1749 }))); | 1764 }))); |
| 1750 }); | 1765 }); |
| 1751 | 1766 |
| 1752 }); | 1767 }); |
| 1753 | 1768 |
| 1754 | 1769 |
| 1755 } | 1770 } |
| 1756 | 1771 |
| OLD | NEW |