| OLD | NEW |
| 1 library googleapis.discovery.v1.test; | 1 library googleapis.discovery.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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 checkDirectoryListItemsIcons(api.DirectoryListItemsIcons o) { | 31 checkDirectoryListItemsIcons(api.DirectoryListItemsIcons o) { |
| 32 buildCounterDirectoryListItemsIcons++; | 32 buildCounterDirectoryListItemsIcons++; |
| 33 if (buildCounterDirectoryListItemsIcons < 3) { | 33 if (buildCounterDirectoryListItemsIcons < 3) { |
| 34 unittest.expect(o.x16, unittest.equals('foo')); | 34 unittest.expect(o.x16, unittest.equals('foo')); |
| 35 unittest.expect(o.x32, unittest.equals('foo')); | 35 unittest.expect(o.x32, unittest.equals('foo')); |
| 36 } | 36 } |
| 37 buildCounterDirectoryListItemsIcons--; | 37 buildCounterDirectoryListItemsIcons--; |
| 38 } | 38 } |
| 39 | 39 |
| 40 buildUnnamed570() { | 40 buildUnnamed275() { |
| 41 var o = new core.List<core.String>(); | 41 var o = new core.List<core.String>(); |
| 42 o.add("foo"); | 42 o.add("foo"); |
| 43 o.add("foo"); | 43 o.add("foo"); |
| 44 return o; | 44 return o; |
| 45 } | 45 } |
| 46 | 46 |
| 47 checkUnnamed570(core.List<core.String> o) { | 47 checkUnnamed275(core.List<core.String> o) { |
| 48 unittest.expect(o, unittest.hasLength(2)); | 48 unittest.expect(o, unittest.hasLength(2)); |
| 49 unittest.expect(o[0], unittest.equals('foo')); | 49 unittest.expect(o[0], unittest.equals('foo')); |
| 50 unittest.expect(o[1], unittest.equals('foo')); | 50 unittest.expect(o[1], unittest.equals('foo')); |
| 51 } | 51 } |
| 52 | 52 |
| 53 core.int buildCounterDirectoryListItems = 0; | 53 core.int buildCounterDirectoryListItems = 0; |
| 54 buildDirectoryListItems() { | 54 buildDirectoryListItems() { |
| 55 var o = new api.DirectoryListItems(); | 55 var o = new api.DirectoryListItems(); |
| 56 buildCounterDirectoryListItems++; | 56 buildCounterDirectoryListItems++; |
| 57 if (buildCounterDirectoryListItems < 3) { | 57 if (buildCounterDirectoryListItems < 3) { |
| 58 o.description = "foo"; | 58 o.description = "foo"; |
| 59 o.discoveryLink = "foo"; | 59 o.discoveryLink = "foo"; |
| 60 o.discoveryRestUrl = "foo"; | 60 o.discoveryRestUrl = "foo"; |
| 61 o.documentationLink = "foo"; | 61 o.documentationLink = "foo"; |
| 62 o.icons = buildDirectoryListItemsIcons(); | 62 o.icons = buildDirectoryListItemsIcons(); |
| 63 o.id = "foo"; | 63 o.id = "foo"; |
| 64 o.kind = "foo"; | 64 o.kind = "foo"; |
| 65 o.labels = buildUnnamed570(); | 65 o.labels = buildUnnamed275(); |
| 66 o.name = "foo"; | 66 o.name = "foo"; |
| 67 o.preferred = true; | 67 o.preferred = true; |
| 68 o.title = "foo"; | 68 o.title = "foo"; |
| 69 o.version = "foo"; | 69 o.version = "foo"; |
| 70 } | 70 } |
| 71 buildCounterDirectoryListItems--; | 71 buildCounterDirectoryListItems--; |
| 72 return o; | 72 return o; |
| 73 } | 73 } |
| 74 | 74 |
| 75 checkDirectoryListItems(api.DirectoryListItems o) { | 75 checkDirectoryListItems(api.DirectoryListItems o) { |
| 76 buildCounterDirectoryListItems++; | 76 buildCounterDirectoryListItems++; |
| 77 if (buildCounterDirectoryListItems < 3) { | 77 if (buildCounterDirectoryListItems < 3) { |
| 78 unittest.expect(o.description, unittest.equals('foo')); | 78 unittest.expect(o.description, unittest.equals('foo')); |
| 79 unittest.expect(o.discoveryLink, unittest.equals('foo')); | 79 unittest.expect(o.discoveryLink, unittest.equals('foo')); |
| 80 unittest.expect(o.discoveryRestUrl, unittest.equals('foo')); | 80 unittest.expect(o.discoveryRestUrl, unittest.equals('foo')); |
| 81 unittest.expect(o.documentationLink, unittest.equals('foo')); | 81 unittest.expect(o.documentationLink, unittest.equals('foo')); |
| 82 checkDirectoryListItemsIcons(o.icons); | 82 checkDirectoryListItemsIcons(o.icons); |
| 83 unittest.expect(o.id, unittest.equals('foo')); | 83 unittest.expect(o.id, unittest.equals('foo')); |
| 84 unittest.expect(o.kind, unittest.equals('foo')); | 84 unittest.expect(o.kind, unittest.equals('foo')); |
| 85 checkUnnamed570(o.labels); | 85 checkUnnamed275(o.labels); |
| 86 unittest.expect(o.name, unittest.equals('foo')); | 86 unittest.expect(o.name, unittest.equals('foo')); |
| 87 unittest.expect(o.preferred, unittest.isTrue); | 87 unittest.expect(o.preferred, unittest.isTrue); |
| 88 unittest.expect(o.title, unittest.equals('foo')); | 88 unittest.expect(o.title, unittest.equals('foo')); |
| 89 unittest.expect(o.version, unittest.equals('foo')); | 89 unittest.expect(o.version, unittest.equals('foo')); |
| 90 } | 90 } |
| 91 buildCounterDirectoryListItems--; | 91 buildCounterDirectoryListItems--; |
| 92 } | 92 } |
| 93 | 93 |
| 94 buildUnnamed571() { | 94 buildUnnamed276() { |
| 95 var o = new core.List<api.DirectoryListItems>(); | 95 var o = new core.List<api.DirectoryListItems>(); |
| 96 o.add(buildDirectoryListItems()); | 96 o.add(buildDirectoryListItems()); |
| 97 o.add(buildDirectoryListItems()); | 97 o.add(buildDirectoryListItems()); |
| 98 return o; | 98 return o; |
| 99 } | 99 } |
| 100 | 100 |
| 101 checkUnnamed571(core.List<api.DirectoryListItems> o) { | 101 checkUnnamed276(core.List<api.DirectoryListItems> o) { |
| 102 unittest.expect(o, unittest.hasLength(2)); | 102 unittest.expect(o, unittest.hasLength(2)); |
| 103 checkDirectoryListItems(o[0]); | 103 checkDirectoryListItems(o[0]); |
| 104 checkDirectoryListItems(o[1]); | 104 checkDirectoryListItems(o[1]); |
| 105 } | 105 } |
| 106 | 106 |
| 107 core.int buildCounterDirectoryList = 0; | 107 core.int buildCounterDirectoryList = 0; |
| 108 buildDirectoryList() { | 108 buildDirectoryList() { |
| 109 var o = new api.DirectoryList(); | 109 var o = new api.DirectoryList(); |
| 110 buildCounterDirectoryList++; | 110 buildCounterDirectoryList++; |
| 111 if (buildCounterDirectoryList < 3) { | 111 if (buildCounterDirectoryList < 3) { |
| 112 o.discoveryVersion = "foo"; | 112 o.discoveryVersion = "foo"; |
| 113 o.items = buildUnnamed571(); | 113 o.items = buildUnnamed276(); |
| 114 o.kind = "foo"; | 114 o.kind = "foo"; |
| 115 } | 115 } |
| 116 buildCounterDirectoryList--; | 116 buildCounterDirectoryList--; |
| 117 return o; | 117 return o; |
| 118 } | 118 } |
| 119 | 119 |
| 120 checkDirectoryList(api.DirectoryList o) { | 120 checkDirectoryList(api.DirectoryList o) { |
| 121 buildCounterDirectoryList++; | 121 buildCounterDirectoryList++; |
| 122 if (buildCounterDirectoryList < 3) { | 122 if (buildCounterDirectoryList < 3) { |
| 123 unittest.expect(o.discoveryVersion, unittest.equals('foo')); | 123 unittest.expect(o.discoveryVersion, unittest.equals('foo')); |
| 124 checkUnnamed571(o.items); | 124 checkUnnamed276(o.items); |
| 125 unittest.expect(o.kind, unittest.equals('foo')); | 125 unittest.expect(o.kind, unittest.equals('foo')); |
| 126 } | 126 } |
| 127 buildCounterDirectoryList--; | 127 buildCounterDirectoryList--; |
| 128 } | 128 } |
| 129 | 129 |
| 130 buildUnnamed572() { | 130 buildUnnamed277() { |
| 131 var o = new core.List<core.String>(); | 131 var o = new core.List<core.String>(); |
| 132 o.add("foo"); | 132 o.add("foo"); |
| 133 o.add("foo"); | 133 o.add("foo"); |
| 134 return o; | 134 return o; |
| 135 } | 135 } |
| 136 | 136 |
| 137 checkUnnamed572(core.List<core.String> o) { | 137 checkUnnamed277(core.List<core.String> o) { |
| 138 unittest.expect(o, unittest.hasLength(2)); | 138 unittest.expect(o, unittest.hasLength(2)); |
| 139 unittest.expect(o[0], unittest.equals('foo')); | 139 unittest.expect(o[0], unittest.equals('foo')); |
| 140 unittest.expect(o[1], unittest.equals('foo')); | 140 unittest.expect(o[1], unittest.equals('foo')); |
| 141 } | 141 } |
| 142 | 142 |
| 143 core.int buildCounterJsonSchemaAnnotations = 0; | 143 core.int buildCounterJsonSchemaAnnotations = 0; |
| 144 buildJsonSchemaAnnotations() { | 144 buildJsonSchemaAnnotations() { |
| 145 var o = new api.JsonSchemaAnnotations(); | 145 var o = new api.JsonSchemaAnnotations(); |
| 146 buildCounterJsonSchemaAnnotations++; | 146 buildCounterJsonSchemaAnnotations++; |
| 147 if (buildCounterJsonSchemaAnnotations < 3) { | 147 if (buildCounterJsonSchemaAnnotations < 3) { |
| 148 o.required = buildUnnamed572(); | 148 o.required = buildUnnamed277(); |
| 149 } | 149 } |
| 150 buildCounterJsonSchemaAnnotations--; | 150 buildCounterJsonSchemaAnnotations--; |
| 151 return o; | 151 return o; |
| 152 } | 152 } |
| 153 | 153 |
| 154 checkJsonSchemaAnnotations(api.JsonSchemaAnnotations o) { | 154 checkJsonSchemaAnnotations(api.JsonSchemaAnnotations o) { |
| 155 buildCounterJsonSchemaAnnotations++; | 155 buildCounterJsonSchemaAnnotations++; |
| 156 if (buildCounterJsonSchemaAnnotations < 3) { | 156 if (buildCounterJsonSchemaAnnotations < 3) { |
| 157 checkUnnamed572(o.required); | 157 checkUnnamed277(o.required); |
| 158 } | 158 } |
| 159 buildCounterJsonSchemaAnnotations--; | 159 buildCounterJsonSchemaAnnotations--; |
| 160 } | 160 } |
| 161 | 161 |
| 162 buildUnnamed573() { | 162 buildUnnamed278() { |
| 163 var o = new core.List<core.String>(); | 163 var o = new core.List<core.String>(); |
| 164 o.add("foo"); | 164 o.add("foo"); |
| 165 o.add("foo"); | 165 o.add("foo"); |
| 166 return o; | 166 return o; |
| 167 } | 167 } |
| 168 | 168 |
| 169 checkUnnamed573(core.List<core.String> o) { | 169 checkUnnamed278(core.List<core.String> o) { |
| 170 unittest.expect(o, unittest.hasLength(2)); | 170 unittest.expect(o, unittest.hasLength(2)); |
| 171 unittest.expect(o[0], unittest.equals('foo')); | 171 unittest.expect(o[0], unittest.equals('foo')); |
| 172 unittest.expect(o[1], unittest.equals('foo')); | 172 unittest.expect(o[1], unittest.equals('foo')); |
| 173 } | 173 } |
| 174 | 174 |
| 175 buildUnnamed574() { | 175 buildUnnamed279() { |
| 176 var o = new core.List<core.String>(); | 176 var o = new core.List<core.String>(); |
| 177 o.add("foo"); | 177 o.add("foo"); |
| 178 o.add("foo"); | 178 o.add("foo"); |
| 179 return o; | 179 return o; |
| 180 } | 180 } |
| 181 | 181 |
| 182 checkUnnamed574(core.List<core.String> o) { | 182 checkUnnamed279(core.List<core.String> o) { |
| 183 unittest.expect(o, unittest.hasLength(2)); | 183 unittest.expect(o, unittest.hasLength(2)); |
| 184 unittest.expect(o[0], unittest.equals('foo')); | 184 unittest.expect(o[0], unittest.equals('foo')); |
| 185 unittest.expect(o[1], unittest.equals('foo')); | 185 unittest.expect(o[1], unittest.equals('foo')); |
| 186 } | 186 } |
| 187 | 187 |
| 188 buildUnnamed575() { | 188 buildUnnamed280() { |
| 189 var o = new core.Map<core.String, api.JsonSchema>(); | 189 var o = new core.Map<core.String, api.JsonSchema>(); |
| 190 o["x"] = buildJsonSchema(); | 190 o["x"] = buildJsonSchema(); |
| 191 o["y"] = buildJsonSchema(); | 191 o["y"] = buildJsonSchema(); |
| 192 return o; | 192 return o; |
| 193 } | 193 } |
| 194 | 194 |
| 195 checkUnnamed575(core.Map<core.String, api.JsonSchema> o) { | 195 checkUnnamed280(core.Map<core.String, api.JsonSchema> o) { |
| 196 unittest.expect(o, unittest.hasLength(2)); | 196 unittest.expect(o, unittest.hasLength(2)); |
| 197 checkJsonSchema(o["x"]); | 197 checkJsonSchema(o["x"]); |
| 198 checkJsonSchema(o["y"]); | 198 checkJsonSchema(o["y"]); |
| 199 } | 199 } |
| 200 | 200 |
| 201 core.int buildCounterJsonSchemaVariantMap = 0; | 201 core.int buildCounterJsonSchemaVariantMap = 0; |
| 202 buildJsonSchemaVariantMap() { | 202 buildJsonSchemaVariantMap() { |
| 203 var o = new api.JsonSchemaVariantMap(); | 203 var o = new api.JsonSchemaVariantMap(); |
| 204 buildCounterJsonSchemaVariantMap++; | 204 buildCounterJsonSchemaVariantMap++; |
| 205 if (buildCounterJsonSchemaVariantMap < 3) { | 205 if (buildCounterJsonSchemaVariantMap < 3) { |
| 206 o.P_ref = "foo"; | 206 o.P_ref = "foo"; |
| 207 o.typeValue = "foo"; | 207 o.typeValue = "foo"; |
| 208 } | 208 } |
| 209 buildCounterJsonSchemaVariantMap--; | 209 buildCounterJsonSchemaVariantMap--; |
| 210 return o; | 210 return o; |
| 211 } | 211 } |
| 212 | 212 |
| 213 checkJsonSchemaVariantMap(api.JsonSchemaVariantMap o) { | 213 checkJsonSchemaVariantMap(api.JsonSchemaVariantMap o) { |
| 214 buildCounterJsonSchemaVariantMap++; | 214 buildCounterJsonSchemaVariantMap++; |
| 215 if (buildCounterJsonSchemaVariantMap < 3) { | 215 if (buildCounterJsonSchemaVariantMap < 3) { |
| 216 unittest.expect(o.P_ref, unittest.equals('foo')); | 216 unittest.expect(o.P_ref, unittest.equals('foo')); |
| 217 unittest.expect(o.typeValue, unittest.equals('foo')); | 217 unittest.expect(o.typeValue, unittest.equals('foo')); |
| 218 } | 218 } |
| 219 buildCounterJsonSchemaVariantMap--; | 219 buildCounterJsonSchemaVariantMap--; |
| 220 } | 220 } |
| 221 | 221 |
| 222 buildUnnamed576() { | 222 buildUnnamed281() { |
| 223 var o = new core.List<api.JsonSchemaVariantMap>(); | 223 var o = new core.List<api.JsonSchemaVariantMap>(); |
| 224 o.add(buildJsonSchemaVariantMap()); | 224 o.add(buildJsonSchemaVariantMap()); |
| 225 o.add(buildJsonSchemaVariantMap()); | 225 o.add(buildJsonSchemaVariantMap()); |
| 226 return o; | 226 return o; |
| 227 } | 227 } |
| 228 | 228 |
| 229 checkUnnamed576(core.List<api.JsonSchemaVariantMap> o) { | 229 checkUnnamed281(core.List<api.JsonSchemaVariantMap> o) { |
| 230 unittest.expect(o, unittest.hasLength(2)); | 230 unittest.expect(o, unittest.hasLength(2)); |
| 231 checkJsonSchemaVariantMap(o[0]); | 231 checkJsonSchemaVariantMap(o[0]); |
| 232 checkJsonSchemaVariantMap(o[1]); | 232 checkJsonSchemaVariantMap(o[1]); |
| 233 } | 233 } |
| 234 | 234 |
| 235 core.int buildCounterJsonSchemaVariant = 0; | 235 core.int buildCounterJsonSchemaVariant = 0; |
| 236 buildJsonSchemaVariant() { | 236 buildJsonSchemaVariant() { |
| 237 var o = new api.JsonSchemaVariant(); | 237 var o = new api.JsonSchemaVariant(); |
| 238 buildCounterJsonSchemaVariant++; | 238 buildCounterJsonSchemaVariant++; |
| 239 if (buildCounterJsonSchemaVariant < 3) { | 239 if (buildCounterJsonSchemaVariant < 3) { |
| 240 o.discriminant = "foo"; | 240 o.discriminant = "foo"; |
| 241 o.map = buildUnnamed576(); | 241 o.map = buildUnnamed281(); |
| 242 } | 242 } |
| 243 buildCounterJsonSchemaVariant--; | 243 buildCounterJsonSchemaVariant--; |
| 244 return o; | 244 return o; |
| 245 } | 245 } |
| 246 | 246 |
| 247 checkJsonSchemaVariant(api.JsonSchemaVariant o) { | 247 checkJsonSchemaVariant(api.JsonSchemaVariant o) { |
| 248 buildCounterJsonSchemaVariant++; | 248 buildCounterJsonSchemaVariant++; |
| 249 if (buildCounterJsonSchemaVariant < 3) { | 249 if (buildCounterJsonSchemaVariant < 3) { |
| 250 unittest.expect(o.discriminant, unittest.equals('foo')); | 250 unittest.expect(o.discriminant, unittest.equals('foo')); |
| 251 checkUnnamed576(o.map); | 251 checkUnnamed281(o.map); |
| 252 } | 252 } |
| 253 buildCounterJsonSchemaVariant--; | 253 buildCounterJsonSchemaVariant--; |
| 254 } | 254 } |
| 255 | 255 |
| 256 core.int buildCounterJsonSchema = 0; | 256 core.int buildCounterJsonSchema = 0; |
| 257 buildJsonSchema() { | 257 buildJsonSchema() { |
| 258 var o = new api.JsonSchema(); | 258 var o = new api.JsonSchema(); |
| 259 buildCounterJsonSchema++; | 259 buildCounterJsonSchema++; |
| 260 if (buildCounterJsonSchema < 3) { | 260 if (buildCounterJsonSchema < 3) { |
| 261 o.P_ref = "foo"; | 261 o.P_ref = "foo"; |
| 262 o.additionalProperties = buildJsonSchema(); | 262 o.additionalProperties = buildJsonSchema(); |
| 263 o.annotations = buildJsonSchemaAnnotations(); | 263 o.annotations = buildJsonSchemaAnnotations(); |
| 264 o.default_ = "foo"; | 264 o.default_ = "foo"; |
| 265 o.description = "foo"; | 265 o.description = "foo"; |
| 266 o.enum_ = buildUnnamed573(); | 266 o.enum_ = buildUnnamed278(); |
| 267 o.enumDescriptions = buildUnnamed574(); | 267 o.enumDescriptions = buildUnnamed279(); |
| 268 o.format = "foo"; | 268 o.format = "foo"; |
| 269 o.id = "foo"; | 269 o.id = "foo"; |
| 270 o.items = buildJsonSchema(); | 270 o.items = buildJsonSchema(); |
| 271 o.location = "foo"; | 271 o.location = "foo"; |
| 272 o.maximum = "foo"; | 272 o.maximum = "foo"; |
| 273 o.minimum = "foo"; | 273 o.minimum = "foo"; |
| 274 o.pattern = "foo"; | 274 o.pattern = "foo"; |
| 275 o.properties = buildUnnamed575(); | 275 o.properties = buildUnnamed280(); |
| 276 o.readOnly = true; | 276 o.readOnly = true; |
| 277 o.repeated = true; | 277 o.repeated = true; |
| 278 o.required = true; | 278 o.required = true; |
| 279 o.type = "foo"; | 279 o.type = "foo"; |
| 280 o.variant = buildJsonSchemaVariant(); | 280 o.variant = buildJsonSchemaVariant(); |
| 281 } | 281 } |
| 282 buildCounterJsonSchema--; | 282 buildCounterJsonSchema--; |
| 283 return o; | 283 return o; |
| 284 } | 284 } |
| 285 | 285 |
| 286 checkJsonSchema(api.JsonSchema o) { | 286 checkJsonSchema(api.JsonSchema o) { |
| 287 buildCounterJsonSchema++; | 287 buildCounterJsonSchema++; |
| 288 if (buildCounterJsonSchema < 3) { | 288 if (buildCounterJsonSchema < 3) { |
| 289 unittest.expect(o.P_ref, unittest.equals('foo')); | 289 unittest.expect(o.P_ref, unittest.equals('foo')); |
| 290 checkJsonSchema(o.additionalProperties); | 290 checkJsonSchema(o.additionalProperties); |
| 291 checkJsonSchemaAnnotations(o.annotations); | 291 checkJsonSchemaAnnotations(o.annotations); |
| 292 unittest.expect(o.default_, unittest.equals('foo')); | 292 unittest.expect(o.default_, unittest.equals('foo')); |
| 293 unittest.expect(o.description, unittest.equals('foo')); | 293 unittest.expect(o.description, unittest.equals('foo')); |
| 294 checkUnnamed573(o.enum_); | 294 checkUnnamed278(o.enum_); |
| 295 checkUnnamed574(o.enumDescriptions); | 295 checkUnnamed279(o.enumDescriptions); |
| 296 unittest.expect(o.format, unittest.equals('foo')); | 296 unittest.expect(o.format, unittest.equals('foo')); |
| 297 unittest.expect(o.id, unittest.equals('foo')); | 297 unittest.expect(o.id, unittest.equals('foo')); |
| 298 checkJsonSchema(o.items); | 298 checkJsonSchema(o.items); |
| 299 unittest.expect(o.location, unittest.equals('foo')); | 299 unittest.expect(o.location, unittest.equals('foo')); |
| 300 unittest.expect(o.maximum, unittest.equals('foo')); | 300 unittest.expect(o.maximum, unittest.equals('foo')); |
| 301 unittest.expect(o.minimum, unittest.equals('foo')); | 301 unittest.expect(o.minimum, unittest.equals('foo')); |
| 302 unittest.expect(o.pattern, unittest.equals('foo')); | 302 unittest.expect(o.pattern, unittest.equals('foo')); |
| 303 checkUnnamed575(o.properties); | 303 checkUnnamed280(o.properties); |
| 304 unittest.expect(o.readOnly, unittest.isTrue); | 304 unittest.expect(o.readOnly, unittest.isTrue); |
| 305 unittest.expect(o.repeated, unittest.isTrue); | 305 unittest.expect(o.repeated, unittest.isTrue); |
| 306 unittest.expect(o.required, unittest.isTrue); | 306 unittest.expect(o.required, unittest.isTrue); |
| 307 unittest.expect(o.type, unittest.equals('foo')); | 307 unittest.expect(o.type, unittest.equals('foo')); |
| 308 checkJsonSchemaVariant(o.variant); | 308 checkJsonSchemaVariant(o.variant); |
| 309 } | 309 } |
| 310 buildCounterJsonSchema--; | 310 buildCounterJsonSchema--; |
| 311 } | 311 } |
| 312 | 312 |
| 313 core.int buildCounterRestDescriptionAuthOauth2ScopesValue = 0; | 313 core.int buildCounterRestDescriptionAuthOauth2ScopesValue = 0; |
| 314 buildRestDescriptionAuthOauth2ScopesValue() { | 314 buildRestDescriptionAuthOauth2ScopesValue() { |
| 315 var o = new api.RestDescriptionAuthOauth2ScopesValue(); | 315 var o = new api.RestDescriptionAuthOauth2ScopesValue(); |
| 316 buildCounterRestDescriptionAuthOauth2ScopesValue++; | 316 buildCounterRestDescriptionAuthOauth2ScopesValue++; |
| 317 if (buildCounterRestDescriptionAuthOauth2ScopesValue < 3) { | 317 if (buildCounterRestDescriptionAuthOauth2ScopesValue < 3) { |
| 318 o.description = "foo"; | 318 o.description = "foo"; |
| 319 } | 319 } |
| 320 buildCounterRestDescriptionAuthOauth2ScopesValue--; | 320 buildCounterRestDescriptionAuthOauth2ScopesValue--; |
| 321 return o; | 321 return o; |
| 322 } | 322 } |
| 323 | 323 |
| 324 checkRestDescriptionAuthOauth2ScopesValue(api.RestDescriptionAuthOauth2ScopesVal
ue o) { | 324 checkRestDescriptionAuthOauth2ScopesValue(api.RestDescriptionAuthOauth2ScopesVal
ue o) { |
| 325 buildCounterRestDescriptionAuthOauth2ScopesValue++; | 325 buildCounterRestDescriptionAuthOauth2ScopesValue++; |
| 326 if (buildCounterRestDescriptionAuthOauth2ScopesValue < 3) { | 326 if (buildCounterRestDescriptionAuthOauth2ScopesValue < 3) { |
| 327 unittest.expect(o.description, unittest.equals('foo')); | 327 unittest.expect(o.description, unittest.equals('foo')); |
| 328 } | 328 } |
| 329 buildCounterRestDescriptionAuthOauth2ScopesValue--; | 329 buildCounterRestDescriptionAuthOauth2ScopesValue--; |
| 330 } | 330 } |
| 331 | 331 |
| 332 buildUnnamed577() { | 332 buildUnnamed282() { |
| 333 var o = new core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue>(); | 333 var o = new core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue>(); |
| 334 o["x"] = buildRestDescriptionAuthOauth2ScopesValue(); | 334 o["x"] = buildRestDescriptionAuthOauth2ScopesValue(); |
| 335 o["y"] = buildRestDescriptionAuthOauth2ScopesValue(); | 335 o["y"] = buildRestDescriptionAuthOauth2ScopesValue(); |
| 336 return o; | 336 return o; |
| 337 } | 337 } |
| 338 | 338 |
| 339 checkUnnamed577(core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue>
o) { | 339 checkUnnamed282(core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue>
o) { |
| 340 unittest.expect(o, unittest.hasLength(2)); | 340 unittest.expect(o, unittest.hasLength(2)); |
| 341 checkRestDescriptionAuthOauth2ScopesValue(o["x"]); | 341 checkRestDescriptionAuthOauth2ScopesValue(o["x"]); |
| 342 checkRestDescriptionAuthOauth2ScopesValue(o["y"]); | 342 checkRestDescriptionAuthOauth2ScopesValue(o["y"]); |
| 343 } | 343 } |
| 344 | 344 |
| 345 core.int buildCounterRestDescriptionAuthOauth2 = 0; | 345 core.int buildCounterRestDescriptionAuthOauth2 = 0; |
| 346 buildRestDescriptionAuthOauth2() { | 346 buildRestDescriptionAuthOauth2() { |
| 347 var o = new api.RestDescriptionAuthOauth2(); | 347 var o = new api.RestDescriptionAuthOauth2(); |
| 348 buildCounterRestDescriptionAuthOauth2++; | 348 buildCounterRestDescriptionAuthOauth2++; |
| 349 if (buildCounterRestDescriptionAuthOauth2 < 3) { | 349 if (buildCounterRestDescriptionAuthOauth2 < 3) { |
| 350 o.scopes = buildUnnamed577(); | 350 o.scopes = buildUnnamed282(); |
| 351 } | 351 } |
| 352 buildCounterRestDescriptionAuthOauth2--; | 352 buildCounterRestDescriptionAuthOauth2--; |
| 353 return o; | 353 return o; |
| 354 } | 354 } |
| 355 | 355 |
| 356 checkRestDescriptionAuthOauth2(api.RestDescriptionAuthOauth2 o) { | 356 checkRestDescriptionAuthOauth2(api.RestDescriptionAuthOauth2 o) { |
| 357 buildCounterRestDescriptionAuthOauth2++; | 357 buildCounterRestDescriptionAuthOauth2++; |
| 358 if (buildCounterRestDescriptionAuthOauth2 < 3) { | 358 if (buildCounterRestDescriptionAuthOauth2 < 3) { |
| 359 checkUnnamed577(o.scopes); | 359 checkUnnamed282(o.scopes); |
| 360 } | 360 } |
| 361 buildCounterRestDescriptionAuthOauth2--; | 361 buildCounterRestDescriptionAuthOauth2--; |
| 362 } | 362 } |
| 363 | 363 |
| 364 core.int buildCounterRestDescriptionAuth = 0; | 364 core.int buildCounterRestDescriptionAuth = 0; |
| 365 buildRestDescriptionAuth() { | 365 buildRestDescriptionAuth() { |
| 366 var o = new api.RestDescriptionAuth(); | 366 var o = new api.RestDescriptionAuth(); |
| 367 buildCounterRestDescriptionAuth++; | 367 buildCounterRestDescriptionAuth++; |
| 368 if (buildCounterRestDescriptionAuth < 3) { | 368 if (buildCounterRestDescriptionAuth < 3) { |
| 369 o.oauth2 = buildRestDescriptionAuthOauth2(); | 369 o.oauth2 = buildRestDescriptionAuthOauth2(); |
| 370 } | 370 } |
| 371 buildCounterRestDescriptionAuth--; | 371 buildCounterRestDescriptionAuth--; |
| 372 return o; | 372 return o; |
| 373 } | 373 } |
| 374 | 374 |
| 375 checkRestDescriptionAuth(api.RestDescriptionAuth o) { | 375 checkRestDescriptionAuth(api.RestDescriptionAuth o) { |
| 376 buildCounterRestDescriptionAuth++; | 376 buildCounterRestDescriptionAuth++; |
| 377 if (buildCounterRestDescriptionAuth < 3) { | 377 if (buildCounterRestDescriptionAuth < 3) { |
| 378 checkRestDescriptionAuthOauth2(o.oauth2); | 378 checkRestDescriptionAuthOauth2(o.oauth2); |
| 379 } | 379 } |
| 380 buildCounterRestDescriptionAuth--; | 380 buildCounterRestDescriptionAuth--; |
| 381 } | 381 } |
| 382 | 382 |
| 383 buildUnnamed578() { | 383 buildUnnamed283() { |
| 384 var o = new core.List<core.String>(); | 384 var o = new core.List<core.String>(); |
| 385 o.add("foo"); | 385 o.add("foo"); |
| 386 o.add("foo"); | 386 o.add("foo"); |
| 387 return o; | 387 return o; |
| 388 } | 388 } |
| 389 | 389 |
| 390 checkUnnamed578(core.List<core.String> o) { | 390 checkUnnamed283(core.List<core.String> o) { |
| 391 unittest.expect(o, unittest.hasLength(2)); | 391 unittest.expect(o, unittest.hasLength(2)); |
| 392 unittest.expect(o[0], unittest.equals('foo')); | 392 unittest.expect(o[0], unittest.equals('foo')); |
| 393 unittest.expect(o[1], unittest.equals('foo')); | 393 unittest.expect(o[1], unittest.equals('foo')); |
| 394 } | 394 } |
| 395 | 395 |
| 396 core.int buildCounterRestDescriptionIcons = 0; | 396 core.int buildCounterRestDescriptionIcons = 0; |
| 397 buildRestDescriptionIcons() { | 397 buildRestDescriptionIcons() { |
| 398 var o = new api.RestDescriptionIcons(); | 398 var o = new api.RestDescriptionIcons(); |
| 399 buildCounterRestDescriptionIcons++; | 399 buildCounterRestDescriptionIcons++; |
| 400 if (buildCounterRestDescriptionIcons < 3) { | 400 if (buildCounterRestDescriptionIcons < 3) { |
| 401 o.x16 = "foo"; | 401 o.x16 = "foo"; |
| 402 o.x32 = "foo"; | 402 o.x32 = "foo"; |
| 403 } | 403 } |
| 404 buildCounterRestDescriptionIcons--; | 404 buildCounterRestDescriptionIcons--; |
| 405 return o; | 405 return o; |
| 406 } | 406 } |
| 407 | 407 |
| 408 checkRestDescriptionIcons(api.RestDescriptionIcons o) { | 408 checkRestDescriptionIcons(api.RestDescriptionIcons o) { |
| 409 buildCounterRestDescriptionIcons++; | 409 buildCounterRestDescriptionIcons++; |
| 410 if (buildCounterRestDescriptionIcons < 3) { | 410 if (buildCounterRestDescriptionIcons < 3) { |
| 411 unittest.expect(o.x16, unittest.equals('foo')); | 411 unittest.expect(o.x16, unittest.equals('foo')); |
| 412 unittest.expect(o.x32, unittest.equals('foo')); | 412 unittest.expect(o.x32, unittest.equals('foo')); |
| 413 } | 413 } |
| 414 buildCounterRestDescriptionIcons--; | 414 buildCounterRestDescriptionIcons--; |
| 415 } | 415 } |
| 416 | 416 |
| 417 buildUnnamed579() { | 417 buildUnnamed284() { |
| 418 var o = new core.List<core.String>(); | 418 var o = new core.List<core.String>(); |
| 419 o.add("foo"); | 419 o.add("foo"); |
| 420 o.add("foo"); | 420 o.add("foo"); |
| 421 return o; | 421 return o; |
| 422 } | 422 } |
| 423 | 423 |
| 424 checkUnnamed579(core.List<core.String> o) { | 424 checkUnnamed284(core.List<core.String> o) { |
| 425 unittest.expect(o, unittest.hasLength(2)); | 425 unittest.expect(o, unittest.hasLength(2)); |
| 426 unittest.expect(o[0], unittest.equals('foo')); | 426 unittest.expect(o[0], unittest.equals('foo')); |
| 427 unittest.expect(o[1], unittest.equals('foo')); | 427 unittest.expect(o[1], unittest.equals('foo')); |
| 428 } | 428 } |
| 429 | 429 |
| 430 buildUnnamed580() { | 430 buildUnnamed285() { |
| 431 var o = new core.Map<core.String, api.RestMethod>(); | 431 var o = new core.Map<core.String, api.RestMethod>(); |
| 432 o["x"] = buildRestMethod(); | 432 o["x"] = buildRestMethod(); |
| 433 o["y"] = buildRestMethod(); | 433 o["y"] = buildRestMethod(); |
| 434 return o; | 434 return o; |
| 435 } | 435 } |
| 436 | 436 |
| 437 checkUnnamed580(core.Map<core.String, api.RestMethod> o) { | 437 checkUnnamed285(core.Map<core.String, api.RestMethod> o) { |
| 438 unittest.expect(o, unittest.hasLength(2)); | 438 unittest.expect(o, unittest.hasLength(2)); |
| 439 checkRestMethod(o["x"]); | 439 checkRestMethod(o["x"]); |
| 440 checkRestMethod(o["y"]); | 440 checkRestMethod(o["y"]); |
| 441 } | 441 } |
| 442 | 442 |
| 443 buildUnnamed581() { | 443 buildUnnamed286() { |
| 444 var o = new core.Map<core.String, api.JsonSchema>(); | 444 var o = new core.Map<core.String, api.JsonSchema>(); |
| 445 o["x"] = buildJsonSchema(); | 445 o["x"] = buildJsonSchema(); |
| 446 o["y"] = buildJsonSchema(); | 446 o["y"] = buildJsonSchema(); |
| 447 return o; | 447 return o; |
| 448 } | 448 } |
| 449 | 449 |
| 450 checkUnnamed581(core.Map<core.String, api.JsonSchema> o) { | 450 checkUnnamed286(core.Map<core.String, api.JsonSchema> o) { |
| 451 unittest.expect(o, unittest.hasLength(2)); | 451 unittest.expect(o, unittest.hasLength(2)); |
| 452 checkJsonSchema(o["x"]); | 452 checkJsonSchema(o["x"]); |
| 453 checkJsonSchema(o["y"]); | 453 checkJsonSchema(o["y"]); |
| 454 } | 454 } |
| 455 | 455 |
| 456 buildUnnamed582() { | 456 buildUnnamed287() { |
| 457 var o = new core.Map<core.String, api.RestResource>(); | 457 var o = new core.Map<core.String, api.RestResource>(); |
| 458 o["x"] = buildRestResource(); | 458 o["x"] = buildRestResource(); |
| 459 o["y"] = buildRestResource(); | 459 o["y"] = buildRestResource(); |
| 460 return o; | 460 return o; |
| 461 } | 461 } |
| 462 | 462 |
| 463 checkUnnamed582(core.Map<core.String, api.RestResource> o) { | 463 checkUnnamed287(core.Map<core.String, api.RestResource> o) { |
| 464 unittest.expect(o, unittest.hasLength(2)); | 464 unittest.expect(o, unittest.hasLength(2)); |
| 465 checkRestResource(o["x"]); | 465 checkRestResource(o["x"]); |
| 466 checkRestResource(o["y"]); | 466 checkRestResource(o["y"]); |
| 467 } | 467 } |
| 468 | 468 |
| 469 buildUnnamed583() { | 469 buildUnnamed288() { |
| 470 var o = new core.Map<core.String, api.JsonSchema>(); | 470 var o = new core.Map<core.String, api.JsonSchema>(); |
| 471 o["x"] = buildJsonSchema(); | 471 o["x"] = buildJsonSchema(); |
| 472 o["y"] = buildJsonSchema(); | 472 o["y"] = buildJsonSchema(); |
| 473 return o; | 473 return o; |
| 474 } | 474 } |
| 475 | 475 |
| 476 checkUnnamed583(core.Map<core.String, api.JsonSchema> o) { | 476 checkUnnamed288(core.Map<core.String, api.JsonSchema> o) { |
| 477 unittest.expect(o, unittest.hasLength(2)); | 477 unittest.expect(o, unittest.hasLength(2)); |
| 478 checkJsonSchema(o["x"]); | 478 checkJsonSchema(o["x"]); |
| 479 checkJsonSchema(o["y"]); | 479 checkJsonSchema(o["y"]); |
| 480 } | 480 } |
| 481 | 481 |
| 482 core.int buildCounterRestDescription = 0; | 482 core.int buildCounterRestDescription = 0; |
| 483 buildRestDescription() { | 483 buildRestDescription() { |
| 484 var o = new api.RestDescription(); | 484 var o = new api.RestDescription(); |
| 485 buildCounterRestDescription++; | 485 buildCounterRestDescription++; |
| 486 if (buildCounterRestDescription < 3) { | 486 if (buildCounterRestDescription < 3) { |
| 487 o.auth = buildRestDescriptionAuth(); | 487 o.auth = buildRestDescriptionAuth(); |
| 488 o.basePath = "foo"; | 488 o.basePath = "foo"; |
| 489 o.baseUrl = "foo"; | 489 o.baseUrl = "foo"; |
| 490 o.batchPath = "foo"; | 490 o.batchPath = "foo"; |
| 491 o.canonicalName = "foo"; | 491 o.canonicalName = "foo"; |
| 492 o.description = "foo"; | 492 o.description = "foo"; |
| 493 o.discoveryVersion = "foo"; | 493 o.discoveryVersion = "foo"; |
| 494 o.documentationLink = "foo"; | 494 o.documentationLink = "foo"; |
| 495 o.etag = "foo"; | 495 o.etag = "foo"; |
| 496 o.features = buildUnnamed578(); | 496 o.features = buildUnnamed283(); |
| 497 o.icons = buildRestDescriptionIcons(); | 497 o.icons = buildRestDescriptionIcons(); |
| 498 o.id = "foo"; | 498 o.id = "foo"; |
| 499 o.kind = "foo"; | 499 o.kind = "foo"; |
| 500 o.labels = buildUnnamed579(); | 500 o.labels = buildUnnamed284(); |
| 501 o.methods = buildUnnamed580(); | 501 o.methods = buildUnnamed285(); |
| 502 o.name = "foo"; | 502 o.name = "foo"; |
| 503 o.ownerDomain = "foo"; | 503 o.ownerDomain = "foo"; |
| 504 o.ownerName = "foo"; | 504 o.ownerName = "foo"; |
| 505 o.packagePath = "foo"; | 505 o.packagePath = "foo"; |
| 506 o.parameters = buildUnnamed581(); | 506 o.parameters = buildUnnamed286(); |
| 507 o.protocol = "foo"; | 507 o.protocol = "foo"; |
| 508 o.resources = buildUnnamed582(); | 508 o.resources = buildUnnamed287(); |
| 509 o.revision = "foo"; | 509 o.revision = "foo"; |
| 510 o.rootUrl = "foo"; | 510 o.rootUrl = "foo"; |
| 511 o.schemas = buildUnnamed583(); | 511 o.schemas = buildUnnamed288(); |
| 512 o.servicePath = "foo"; | 512 o.servicePath = "foo"; |
| 513 o.title = "foo"; | 513 o.title = "foo"; |
| 514 o.version = "foo"; | 514 o.version = "foo"; |
| 515 } | 515 } |
| 516 buildCounterRestDescription--; | 516 buildCounterRestDescription--; |
| 517 return o; | 517 return o; |
| 518 } | 518 } |
| 519 | 519 |
| 520 checkRestDescription(api.RestDescription o) { | 520 checkRestDescription(api.RestDescription o) { |
| 521 buildCounterRestDescription++; | 521 buildCounterRestDescription++; |
| 522 if (buildCounterRestDescription < 3) { | 522 if (buildCounterRestDescription < 3) { |
| 523 checkRestDescriptionAuth(o.auth); | 523 checkRestDescriptionAuth(o.auth); |
| 524 unittest.expect(o.basePath, unittest.equals('foo')); | 524 unittest.expect(o.basePath, unittest.equals('foo')); |
| 525 unittest.expect(o.baseUrl, unittest.equals('foo')); | 525 unittest.expect(o.baseUrl, unittest.equals('foo')); |
| 526 unittest.expect(o.batchPath, unittest.equals('foo')); | 526 unittest.expect(o.batchPath, unittest.equals('foo')); |
| 527 unittest.expect(o.canonicalName, unittest.equals('foo')); | 527 unittest.expect(o.canonicalName, unittest.equals('foo')); |
| 528 unittest.expect(o.description, unittest.equals('foo')); | 528 unittest.expect(o.description, unittest.equals('foo')); |
| 529 unittest.expect(o.discoveryVersion, unittest.equals('foo')); | 529 unittest.expect(o.discoveryVersion, unittest.equals('foo')); |
| 530 unittest.expect(o.documentationLink, unittest.equals('foo')); | 530 unittest.expect(o.documentationLink, unittest.equals('foo')); |
| 531 unittest.expect(o.etag, unittest.equals('foo')); | 531 unittest.expect(o.etag, unittest.equals('foo')); |
| 532 checkUnnamed578(o.features); | 532 checkUnnamed283(o.features); |
| 533 checkRestDescriptionIcons(o.icons); | 533 checkRestDescriptionIcons(o.icons); |
| 534 unittest.expect(o.id, unittest.equals('foo')); | 534 unittest.expect(o.id, unittest.equals('foo')); |
| 535 unittest.expect(o.kind, unittest.equals('foo')); | 535 unittest.expect(o.kind, unittest.equals('foo')); |
| 536 checkUnnamed579(o.labels); | 536 checkUnnamed284(o.labels); |
| 537 checkUnnamed580(o.methods); | 537 checkUnnamed285(o.methods); |
| 538 unittest.expect(o.name, unittest.equals('foo')); | 538 unittest.expect(o.name, unittest.equals('foo')); |
| 539 unittest.expect(o.ownerDomain, unittest.equals('foo')); | 539 unittest.expect(o.ownerDomain, unittest.equals('foo')); |
| 540 unittest.expect(o.ownerName, unittest.equals('foo')); | 540 unittest.expect(o.ownerName, unittest.equals('foo')); |
| 541 unittest.expect(o.packagePath, unittest.equals('foo')); | 541 unittest.expect(o.packagePath, unittest.equals('foo')); |
| 542 checkUnnamed581(o.parameters); | 542 checkUnnamed286(o.parameters); |
| 543 unittest.expect(o.protocol, unittest.equals('foo')); | 543 unittest.expect(o.protocol, unittest.equals('foo')); |
| 544 checkUnnamed582(o.resources); | 544 checkUnnamed287(o.resources); |
| 545 unittest.expect(o.revision, unittest.equals('foo')); | 545 unittest.expect(o.revision, unittest.equals('foo')); |
| 546 unittest.expect(o.rootUrl, unittest.equals('foo')); | 546 unittest.expect(o.rootUrl, unittest.equals('foo')); |
| 547 checkUnnamed583(o.schemas); | 547 checkUnnamed288(o.schemas); |
| 548 unittest.expect(o.servicePath, unittest.equals('foo')); | 548 unittest.expect(o.servicePath, unittest.equals('foo')); |
| 549 unittest.expect(o.title, unittest.equals('foo')); | 549 unittest.expect(o.title, unittest.equals('foo')); |
| 550 unittest.expect(o.version, unittest.equals('foo')); | 550 unittest.expect(o.version, unittest.equals('foo')); |
| 551 } | 551 } |
| 552 buildCounterRestDescription--; | 552 buildCounterRestDescription--; |
| 553 } | 553 } |
| 554 | 554 |
| 555 buildUnnamed584() { | 555 buildUnnamed289() { |
| 556 var o = new core.List<core.String>(); | 556 var o = new core.List<core.String>(); |
| 557 o.add("foo"); | 557 o.add("foo"); |
| 558 o.add("foo"); | 558 o.add("foo"); |
| 559 return o; | 559 return o; |
| 560 } | 560 } |
| 561 | 561 |
| 562 checkUnnamed584(core.List<core.String> o) { | 562 checkUnnamed289(core.List<core.String> o) { |
| 563 unittest.expect(o, unittest.hasLength(2)); | 563 unittest.expect(o, unittest.hasLength(2)); |
| 564 unittest.expect(o[0], unittest.equals('foo')); | 564 unittest.expect(o[0], unittest.equals('foo')); |
| 565 unittest.expect(o[1], unittest.equals('foo')); | 565 unittest.expect(o[1], unittest.equals('foo')); |
| 566 } | 566 } |
| 567 | 567 |
| 568 core.int buildCounterRestMethodMediaUploadProtocolsResumable = 0; | 568 core.int buildCounterRestMethodMediaUploadProtocolsResumable = 0; |
| 569 buildRestMethodMediaUploadProtocolsResumable() { | 569 buildRestMethodMediaUploadProtocolsResumable() { |
| 570 var o = new api.RestMethodMediaUploadProtocolsResumable(); | 570 var o = new api.RestMethodMediaUploadProtocolsResumable(); |
| 571 buildCounterRestMethodMediaUploadProtocolsResumable++; | 571 buildCounterRestMethodMediaUploadProtocolsResumable++; |
| 572 if (buildCounterRestMethodMediaUploadProtocolsResumable < 3) { | 572 if (buildCounterRestMethodMediaUploadProtocolsResumable < 3) { |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 626 checkRestMethodMediaUploadProtocolsSimple(o.simple); | 626 checkRestMethodMediaUploadProtocolsSimple(o.simple); |
| 627 } | 627 } |
| 628 buildCounterRestMethodMediaUploadProtocols--; | 628 buildCounterRestMethodMediaUploadProtocols--; |
| 629 } | 629 } |
| 630 | 630 |
| 631 core.int buildCounterRestMethodMediaUpload = 0; | 631 core.int buildCounterRestMethodMediaUpload = 0; |
| 632 buildRestMethodMediaUpload() { | 632 buildRestMethodMediaUpload() { |
| 633 var o = new api.RestMethodMediaUpload(); | 633 var o = new api.RestMethodMediaUpload(); |
| 634 buildCounterRestMethodMediaUpload++; | 634 buildCounterRestMethodMediaUpload++; |
| 635 if (buildCounterRestMethodMediaUpload < 3) { | 635 if (buildCounterRestMethodMediaUpload < 3) { |
| 636 o.accept = buildUnnamed584(); | 636 o.accept = buildUnnamed289(); |
| 637 o.maxSize = "foo"; | 637 o.maxSize = "foo"; |
| 638 o.protocols = buildRestMethodMediaUploadProtocols(); | 638 o.protocols = buildRestMethodMediaUploadProtocols(); |
| 639 } | 639 } |
| 640 buildCounterRestMethodMediaUpload--; | 640 buildCounterRestMethodMediaUpload--; |
| 641 return o; | 641 return o; |
| 642 } | 642 } |
| 643 | 643 |
| 644 checkRestMethodMediaUpload(api.RestMethodMediaUpload o) { | 644 checkRestMethodMediaUpload(api.RestMethodMediaUpload o) { |
| 645 buildCounterRestMethodMediaUpload++; | 645 buildCounterRestMethodMediaUpload++; |
| 646 if (buildCounterRestMethodMediaUpload < 3) { | 646 if (buildCounterRestMethodMediaUpload < 3) { |
| 647 checkUnnamed584(o.accept); | 647 checkUnnamed289(o.accept); |
| 648 unittest.expect(o.maxSize, unittest.equals('foo')); | 648 unittest.expect(o.maxSize, unittest.equals('foo')); |
| 649 checkRestMethodMediaUploadProtocols(o.protocols); | 649 checkRestMethodMediaUploadProtocols(o.protocols); |
| 650 } | 650 } |
| 651 buildCounterRestMethodMediaUpload--; | 651 buildCounterRestMethodMediaUpload--; |
| 652 } | 652 } |
| 653 | 653 |
| 654 buildUnnamed585() { | 654 buildUnnamed290() { |
| 655 var o = new core.List<core.String>(); | 655 var o = new core.List<core.String>(); |
| 656 o.add("foo"); | 656 o.add("foo"); |
| 657 o.add("foo"); | 657 o.add("foo"); |
| 658 return o; | 658 return o; |
| 659 } | 659 } |
| 660 | 660 |
| 661 checkUnnamed585(core.List<core.String> o) { | 661 checkUnnamed290(core.List<core.String> o) { |
| 662 unittest.expect(o, unittest.hasLength(2)); | 662 unittest.expect(o, unittest.hasLength(2)); |
| 663 unittest.expect(o[0], unittest.equals('foo')); | 663 unittest.expect(o[0], unittest.equals('foo')); |
| 664 unittest.expect(o[1], unittest.equals('foo')); | 664 unittest.expect(o[1], unittest.equals('foo')); |
| 665 } | 665 } |
| 666 | 666 |
| 667 buildUnnamed586() { | 667 buildUnnamed291() { |
| 668 var o = new core.Map<core.String, api.JsonSchema>(); | 668 var o = new core.Map<core.String, api.JsonSchema>(); |
| 669 o["x"] = buildJsonSchema(); | 669 o["x"] = buildJsonSchema(); |
| 670 o["y"] = buildJsonSchema(); | 670 o["y"] = buildJsonSchema(); |
| 671 return o; | 671 return o; |
| 672 } | 672 } |
| 673 | 673 |
| 674 checkUnnamed586(core.Map<core.String, api.JsonSchema> o) { | 674 checkUnnamed291(core.Map<core.String, api.JsonSchema> o) { |
| 675 unittest.expect(o, unittest.hasLength(2)); | 675 unittest.expect(o, unittest.hasLength(2)); |
| 676 checkJsonSchema(o["x"]); | 676 checkJsonSchema(o["x"]); |
| 677 checkJsonSchema(o["y"]); | 677 checkJsonSchema(o["y"]); |
| 678 } | 678 } |
| 679 | 679 |
| 680 core.int buildCounterRestMethodRequest = 0; | 680 core.int buildCounterRestMethodRequest = 0; |
| 681 buildRestMethodRequest() { | 681 buildRestMethodRequest() { |
| 682 var o = new api.RestMethodRequest(); | 682 var o = new api.RestMethodRequest(); |
| 683 buildCounterRestMethodRequest++; | 683 buildCounterRestMethodRequest++; |
| 684 if (buildCounterRestMethodRequest < 3) { | 684 if (buildCounterRestMethodRequest < 3) { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 710 } | 710 } |
| 711 | 711 |
| 712 checkRestMethodResponse(api.RestMethodResponse o) { | 712 checkRestMethodResponse(api.RestMethodResponse o) { |
| 713 buildCounterRestMethodResponse++; | 713 buildCounterRestMethodResponse++; |
| 714 if (buildCounterRestMethodResponse < 3) { | 714 if (buildCounterRestMethodResponse < 3) { |
| 715 unittest.expect(o.P_ref, unittest.equals('foo')); | 715 unittest.expect(o.P_ref, unittest.equals('foo')); |
| 716 } | 716 } |
| 717 buildCounterRestMethodResponse--; | 717 buildCounterRestMethodResponse--; |
| 718 } | 718 } |
| 719 | 719 |
| 720 buildUnnamed587() { | 720 buildUnnamed292() { |
| 721 var o = new core.List<core.String>(); | 721 var o = new core.List<core.String>(); |
| 722 o.add("foo"); | 722 o.add("foo"); |
| 723 o.add("foo"); | 723 o.add("foo"); |
| 724 return o; | 724 return o; |
| 725 } | 725 } |
| 726 | 726 |
| 727 checkUnnamed587(core.List<core.String> o) { | 727 checkUnnamed292(core.List<core.String> o) { |
| 728 unittest.expect(o, unittest.hasLength(2)); | 728 unittest.expect(o, unittest.hasLength(2)); |
| 729 unittest.expect(o[0], unittest.equals('foo')); | 729 unittest.expect(o[0], unittest.equals('foo')); |
| 730 unittest.expect(o[1], unittest.equals('foo')); | 730 unittest.expect(o[1], unittest.equals('foo')); |
| 731 } | 731 } |
| 732 | 732 |
| 733 core.int buildCounterRestMethod = 0; | 733 core.int buildCounterRestMethod = 0; |
| 734 buildRestMethod() { | 734 buildRestMethod() { |
| 735 var o = new api.RestMethod(); | 735 var o = new api.RestMethod(); |
| 736 buildCounterRestMethod++; | 736 buildCounterRestMethod++; |
| 737 if (buildCounterRestMethod < 3) { | 737 if (buildCounterRestMethod < 3) { |
| 738 o.description = "foo"; | 738 o.description = "foo"; |
| 739 o.etagRequired = true; | 739 o.etagRequired = true; |
| 740 o.httpMethod = "foo"; | 740 o.httpMethod = "foo"; |
| 741 o.id = "foo"; | 741 o.id = "foo"; |
| 742 o.mediaUpload = buildRestMethodMediaUpload(); | 742 o.mediaUpload = buildRestMethodMediaUpload(); |
| 743 o.parameterOrder = buildUnnamed585(); | 743 o.parameterOrder = buildUnnamed290(); |
| 744 o.parameters = buildUnnamed586(); | 744 o.parameters = buildUnnamed291(); |
| 745 o.path = "foo"; | 745 o.path = "foo"; |
| 746 o.request = buildRestMethodRequest(); | 746 o.request = buildRestMethodRequest(); |
| 747 o.response = buildRestMethodResponse(); | 747 o.response = buildRestMethodResponse(); |
| 748 o.scopes = buildUnnamed587(); | 748 o.scopes = buildUnnamed292(); |
| 749 o.supportsMediaDownload = true; | 749 o.supportsMediaDownload = true; |
| 750 o.supportsMediaUpload = true; | 750 o.supportsMediaUpload = true; |
| 751 o.supportsSubscription = true; | 751 o.supportsSubscription = true; |
| 752 } | 752 } |
| 753 buildCounterRestMethod--; | 753 buildCounterRestMethod--; |
| 754 return o; | 754 return o; |
| 755 } | 755 } |
| 756 | 756 |
| 757 checkRestMethod(api.RestMethod o) { | 757 checkRestMethod(api.RestMethod o) { |
| 758 buildCounterRestMethod++; | 758 buildCounterRestMethod++; |
| 759 if (buildCounterRestMethod < 3) { | 759 if (buildCounterRestMethod < 3) { |
| 760 unittest.expect(o.description, unittest.equals('foo')); | 760 unittest.expect(o.description, unittest.equals('foo')); |
| 761 unittest.expect(o.etagRequired, unittest.isTrue); | 761 unittest.expect(o.etagRequired, unittest.isTrue); |
| 762 unittest.expect(o.httpMethod, unittest.equals('foo')); | 762 unittest.expect(o.httpMethod, unittest.equals('foo')); |
| 763 unittest.expect(o.id, unittest.equals('foo')); | 763 unittest.expect(o.id, unittest.equals('foo')); |
| 764 checkRestMethodMediaUpload(o.mediaUpload); | 764 checkRestMethodMediaUpload(o.mediaUpload); |
| 765 checkUnnamed585(o.parameterOrder); | 765 checkUnnamed290(o.parameterOrder); |
| 766 checkUnnamed586(o.parameters); | 766 checkUnnamed291(o.parameters); |
| 767 unittest.expect(o.path, unittest.equals('foo')); | 767 unittest.expect(o.path, unittest.equals('foo')); |
| 768 checkRestMethodRequest(o.request); | 768 checkRestMethodRequest(o.request); |
| 769 checkRestMethodResponse(o.response); | 769 checkRestMethodResponse(o.response); |
| 770 checkUnnamed587(o.scopes); | 770 checkUnnamed292(o.scopes); |
| 771 unittest.expect(o.supportsMediaDownload, unittest.isTrue); | 771 unittest.expect(o.supportsMediaDownload, unittest.isTrue); |
| 772 unittest.expect(o.supportsMediaUpload, unittest.isTrue); | 772 unittest.expect(o.supportsMediaUpload, unittest.isTrue); |
| 773 unittest.expect(o.supportsSubscription, unittest.isTrue); | 773 unittest.expect(o.supportsSubscription, unittest.isTrue); |
| 774 } | 774 } |
| 775 buildCounterRestMethod--; | 775 buildCounterRestMethod--; |
| 776 } | 776 } |
| 777 | 777 |
| 778 buildUnnamed588() { | 778 buildUnnamed293() { |
| 779 var o = new core.Map<core.String, api.RestMethod>(); | 779 var o = new core.Map<core.String, api.RestMethod>(); |
| 780 o["x"] = buildRestMethod(); | 780 o["x"] = buildRestMethod(); |
| 781 o["y"] = buildRestMethod(); | 781 o["y"] = buildRestMethod(); |
| 782 return o; | 782 return o; |
| 783 } | 783 } |
| 784 | 784 |
| 785 checkUnnamed588(core.Map<core.String, api.RestMethod> o) { | 785 checkUnnamed293(core.Map<core.String, api.RestMethod> o) { |
| 786 unittest.expect(o, unittest.hasLength(2)); | 786 unittest.expect(o, unittest.hasLength(2)); |
| 787 checkRestMethod(o["x"]); | 787 checkRestMethod(o["x"]); |
| 788 checkRestMethod(o["y"]); | 788 checkRestMethod(o["y"]); |
| 789 } | 789 } |
| 790 | 790 |
| 791 buildUnnamed589() { | 791 buildUnnamed294() { |
| 792 var o = new core.Map<core.String, api.RestResource>(); | 792 var o = new core.Map<core.String, api.RestResource>(); |
| 793 o["x"] = buildRestResource(); | 793 o["x"] = buildRestResource(); |
| 794 o["y"] = buildRestResource(); | 794 o["y"] = buildRestResource(); |
| 795 return o; | 795 return o; |
| 796 } | 796 } |
| 797 | 797 |
| 798 checkUnnamed589(core.Map<core.String, api.RestResource> o) { | 798 checkUnnamed294(core.Map<core.String, api.RestResource> o) { |
| 799 unittest.expect(o, unittest.hasLength(2)); | 799 unittest.expect(o, unittest.hasLength(2)); |
| 800 checkRestResource(o["x"]); | 800 checkRestResource(o["x"]); |
| 801 checkRestResource(o["y"]); | 801 checkRestResource(o["y"]); |
| 802 } | 802 } |
| 803 | 803 |
| 804 core.int buildCounterRestResource = 0; | 804 core.int buildCounterRestResource = 0; |
| 805 buildRestResource() { | 805 buildRestResource() { |
| 806 var o = new api.RestResource(); | 806 var o = new api.RestResource(); |
| 807 buildCounterRestResource++; | 807 buildCounterRestResource++; |
| 808 if (buildCounterRestResource < 3) { | 808 if (buildCounterRestResource < 3) { |
| 809 o.methods = buildUnnamed588(); | 809 o.methods = buildUnnamed293(); |
| 810 o.resources = buildUnnamed589(); | 810 o.resources = buildUnnamed294(); |
| 811 } | 811 } |
| 812 buildCounterRestResource--; | 812 buildCounterRestResource--; |
| 813 return o; | 813 return o; |
| 814 } | 814 } |
| 815 | 815 |
| 816 checkRestResource(api.RestResource o) { | 816 checkRestResource(api.RestResource o) { |
| 817 buildCounterRestResource++; | 817 buildCounterRestResource++; |
| 818 if (buildCounterRestResource < 3) { | 818 if (buildCounterRestResource < 3) { |
| 819 checkUnnamed588(o.methods); | 819 checkUnnamed293(o.methods); |
| 820 checkUnnamed589(o.resources); | 820 checkUnnamed294(o.resources); |
| 821 } | 821 } |
| 822 buildCounterRestResource--; | 822 buildCounterRestResource--; |
| 823 } | 823 } |
| 824 | 824 |
| 825 | 825 |
| 826 main() { | 826 main() { |
| 827 unittest.group("obj-schema-DirectoryListItemsIcons", () { | 827 unittest.group("obj-schema-DirectoryListItemsIcons", () { |
| 828 unittest.test("to-json--from-json", () { | 828 unittest.test("to-json--from-json", () { |
| 829 var o = buildDirectoryListItemsIcons(); | 829 var o = buildDirectoryListItemsIcons(); |
| 830 var od = new api.DirectoryListItemsIcons.fromJson(o.toJson()); | 830 var od = new api.DirectoryListItemsIcons.fromJson(o.toJson()); |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1113 res.list(name: arg_name, preferred: arg_preferred).then(unittest.expectAsy
nc(((api.DirectoryList response) { | 1113 res.list(name: arg_name, preferred: arg_preferred).then(unittest.expectAsy
nc(((api.DirectoryList response) { |
| 1114 checkDirectoryList(response); | 1114 checkDirectoryList(response); |
| 1115 }))); | 1115 }))); |
| 1116 }); | 1116 }); |
| 1117 | 1117 |
| 1118 }); | 1118 }); |
| 1119 | 1119 |
| 1120 | 1120 |
| 1121 } | 1121 } |
| 1122 | 1122 |
| OLD | NEW |