| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 65 |
| 66 checkDirectoryListItemsIcons(api.DirectoryListItemsIcons o) { | 66 checkDirectoryListItemsIcons(api.DirectoryListItemsIcons o) { |
| 67 buildCounterDirectoryListItemsIcons++; | 67 buildCounterDirectoryListItemsIcons++; |
| 68 if (buildCounterDirectoryListItemsIcons < 3) { | 68 if (buildCounterDirectoryListItemsIcons < 3) { |
| 69 unittest.expect(o.x16, unittest.equals('foo')); | 69 unittest.expect(o.x16, unittest.equals('foo')); |
| 70 unittest.expect(o.x32, unittest.equals('foo')); | 70 unittest.expect(o.x32, unittest.equals('foo')); |
| 71 } | 71 } |
| 72 buildCounterDirectoryListItemsIcons--; | 72 buildCounterDirectoryListItemsIcons--; |
| 73 } | 73 } |
| 74 | 74 |
| 75 buildUnnamed1566() { | 75 buildUnnamed495() { |
| 76 var o = new core.List<core.String>(); | 76 var o = new core.List<core.String>(); |
| 77 o.add("foo"); | 77 o.add("foo"); |
| 78 o.add("foo"); | 78 o.add("foo"); |
| 79 return o; | 79 return o; |
| 80 } | 80 } |
| 81 | 81 |
| 82 checkUnnamed1566(core.List<core.String> o) { | 82 checkUnnamed495(core.List<core.String> o) { |
| 83 unittest.expect(o, unittest.hasLength(2)); | 83 unittest.expect(o, unittest.hasLength(2)); |
| 84 unittest.expect(o[0], unittest.equals('foo')); | 84 unittest.expect(o[0], unittest.equals('foo')); |
| 85 unittest.expect(o[1], unittest.equals('foo')); | 85 unittest.expect(o[1], unittest.equals('foo')); |
| 86 } | 86 } |
| 87 | 87 |
| 88 core.int buildCounterDirectoryListItems = 0; | 88 core.int buildCounterDirectoryListItems = 0; |
| 89 buildDirectoryListItems() { | 89 buildDirectoryListItems() { |
| 90 var o = new api.DirectoryListItems(); | 90 var o = new api.DirectoryListItems(); |
| 91 buildCounterDirectoryListItems++; | 91 buildCounterDirectoryListItems++; |
| 92 if (buildCounterDirectoryListItems < 3) { | 92 if (buildCounterDirectoryListItems < 3) { |
| 93 o.description = "foo"; | 93 o.description = "foo"; |
| 94 o.discoveryLink = "foo"; | 94 o.discoveryLink = "foo"; |
| 95 o.discoveryRestUrl = "foo"; | 95 o.discoveryRestUrl = "foo"; |
| 96 o.documentationLink = "foo"; | 96 o.documentationLink = "foo"; |
| 97 o.icons = buildDirectoryListItemsIcons(); | 97 o.icons = buildDirectoryListItemsIcons(); |
| 98 o.id = "foo"; | 98 o.id = "foo"; |
| 99 o.kind = "foo"; | 99 o.kind = "foo"; |
| 100 o.labels = buildUnnamed1566(); | 100 o.labels = buildUnnamed495(); |
| 101 o.name = "foo"; | 101 o.name = "foo"; |
| 102 o.preferred = true; | 102 o.preferred = true; |
| 103 o.title = "foo"; | 103 o.title = "foo"; |
| 104 o.version = "foo"; | 104 o.version = "foo"; |
| 105 } | 105 } |
| 106 buildCounterDirectoryListItems--; | 106 buildCounterDirectoryListItems--; |
| 107 return o; | 107 return o; |
| 108 } | 108 } |
| 109 | 109 |
| 110 checkDirectoryListItems(api.DirectoryListItems o) { | 110 checkDirectoryListItems(api.DirectoryListItems o) { |
| 111 buildCounterDirectoryListItems++; | 111 buildCounterDirectoryListItems++; |
| 112 if (buildCounterDirectoryListItems < 3) { | 112 if (buildCounterDirectoryListItems < 3) { |
| 113 unittest.expect(o.description, unittest.equals('foo')); | 113 unittest.expect(o.description, unittest.equals('foo')); |
| 114 unittest.expect(o.discoveryLink, unittest.equals('foo')); | 114 unittest.expect(o.discoveryLink, unittest.equals('foo')); |
| 115 unittest.expect(o.discoveryRestUrl, unittest.equals('foo')); | 115 unittest.expect(o.discoveryRestUrl, unittest.equals('foo')); |
| 116 unittest.expect(o.documentationLink, unittest.equals('foo')); | 116 unittest.expect(o.documentationLink, unittest.equals('foo')); |
| 117 checkDirectoryListItemsIcons(o.icons); | 117 checkDirectoryListItemsIcons(o.icons); |
| 118 unittest.expect(o.id, unittest.equals('foo')); | 118 unittest.expect(o.id, unittest.equals('foo')); |
| 119 unittest.expect(o.kind, unittest.equals('foo')); | 119 unittest.expect(o.kind, unittest.equals('foo')); |
| 120 checkUnnamed1566(o.labels); | 120 checkUnnamed495(o.labels); |
| 121 unittest.expect(o.name, unittest.equals('foo')); | 121 unittest.expect(o.name, unittest.equals('foo')); |
| 122 unittest.expect(o.preferred, unittest.isTrue); | 122 unittest.expect(o.preferred, unittest.isTrue); |
| 123 unittest.expect(o.title, unittest.equals('foo')); | 123 unittest.expect(o.title, unittest.equals('foo')); |
| 124 unittest.expect(o.version, unittest.equals('foo')); | 124 unittest.expect(o.version, unittest.equals('foo')); |
| 125 } | 125 } |
| 126 buildCounterDirectoryListItems--; | 126 buildCounterDirectoryListItems--; |
| 127 } | 127 } |
| 128 | 128 |
| 129 buildUnnamed1567() { | 129 buildUnnamed496() { |
| 130 var o = new core.List<api.DirectoryListItems>(); | 130 var o = new core.List<api.DirectoryListItems>(); |
| 131 o.add(buildDirectoryListItems()); | 131 o.add(buildDirectoryListItems()); |
| 132 o.add(buildDirectoryListItems()); | 132 o.add(buildDirectoryListItems()); |
| 133 return o; | 133 return o; |
| 134 } | 134 } |
| 135 | 135 |
| 136 checkUnnamed1567(core.List<api.DirectoryListItems> o) { | 136 checkUnnamed496(core.List<api.DirectoryListItems> o) { |
| 137 unittest.expect(o, unittest.hasLength(2)); | 137 unittest.expect(o, unittest.hasLength(2)); |
| 138 checkDirectoryListItems(o[0]); | 138 checkDirectoryListItems(o[0]); |
| 139 checkDirectoryListItems(o[1]); | 139 checkDirectoryListItems(o[1]); |
| 140 } | 140 } |
| 141 | 141 |
| 142 core.int buildCounterDirectoryList = 0; | 142 core.int buildCounterDirectoryList = 0; |
| 143 buildDirectoryList() { | 143 buildDirectoryList() { |
| 144 var o = new api.DirectoryList(); | 144 var o = new api.DirectoryList(); |
| 145 buildCounterDirectoryList++; | 145 buildCounterDirectoryList++; |
| 146 if (buildCounterDirectoryList < 3) { | 146 if (buildCounterDirectoryList < 3) { |
| 147 o.discoveryVersion = "foo"; | 147 o.discoveryVersion = "foo"; |
| 148 o.items = buildUnnamed1567(); | 148 o.items = buildUnnamed496(); |
| 149 o.kind = "foo"; | 149 o.kind = "foo"; |
| 150 } | 150 } |
| 151 buildCounterDirectoryList--; | 151 buildCounterDirectoryList--; |
| 152 return o; | 152 return o; |
| 153 } | 153 } |
| 154 | 154 |
| 155 checkDirectoryList(api.DirectoryList o) { | 155 checkDirectoryList(api.DirectoryList o) { |
| 156 buildCounterDirectoryList++; | 156 buildCounterDirectoryList++; |
| 157 if (buildCounterDirectoryList < 3) { | 157 if (buildCounterDirectoryList < 3) { |
| 158 unittest.expect(o.discoveryVersion, unittest.equals('foo')); | 158 unittest.expect(o.discoveryVersion, unittest.equals('foo')); |
| 159 checkUnnamed1567(o.items); | 159 checkUnnamed496(o.items); |
| 160 unittest.expect(o.kind, unittest.equals('foo')); | 160 unittest.expect(o.kind, unittest.equals('foo')); |
| 161 } | 161 } |
| 162 buildCounterDirectoryList--; | 162 buildCounterDirectoryList--; |
| 163 } | 163 } |
| 164 | 164 |
| 165 buildUnnamed1568() { | 165 buildUnnamed497() { |
| 166 var o = new core.List<core.String>(); | 166 var o = new core.List<core.String>(); |
| 167 o.add("foo"); | 167 o.add("foo"); |
| 168 o.add("foo"); | 168 o.add("foo"); |
| 169 return o; | 169 return o; |
| 170 } | 170 } |
| 171 | 171 |
| 172 checkUnnamed1568(core.List<core.String> o) { | 172 checkUnnamed497(core.List<core.String> o) { |
| 173 unittest.expect(o, unittest.hasLength(2)); | 173 unittest.expect(o, unittest.hasLength(2)); |
| 174 unittest.expect(o[0], unittest.equals('foo')); | 174 unittest.expect(o[0], unittest.equals('foo')); |
| 175 unittest.expect(o[1], unittest.equals('foo')); | 175 unittest.expect(o[1], unittest.equals('foo')); |
| 176 } | 176 } |
| 177 | 177 |
| 178 core.int buildCounterJsonSchemaAnnotations = 0; | 178 core.int buildCounterJsonSchemaAnnotations = 0; |
| 179 buildJsonSchemaAnnotations() { | 179 buildJsonSchemaAnnotations() { |
| 180 var o = new api.JsonSchemaAnnotations(); | 180 var o = new api.JsonSchemaAnnotations(); |
| 181 buildCounterJsonSchemaAnnotations++; | 181 buildCounterJsonSchemaAnnotations++; |
| 182 if (buildCounterJsonSchemaAnnotations < 3) { | 182 if (buildCounterJsonSchemaAnnotations < 3) { |
| 183 o.required = buildUnnamed1568(); | 183 o.required = buildUnnamed497(); |
| 184 } | 184 } |
| 185 buildCounterJsonSchemaAnnotations--; | 185 buildCounterJsonSchemaAnnotations--; |
| 186 return o; | 186 return o; |
| 187 } | 187 } |
| 188 | 188 |
| 189 checkJsonSchemaAnnotations(api.JsonSchemaAnnotations o) { | 189 checkJsonSchemaAnnotations(api.JsonSchemaAnnotations o) { |
| 190 buildCounterJsonSchemaAnnotations++; | 190 buildCounterJsonSchemaAnnotations++; |
| 191 if (buildCounterJsonSchemaAnnotations < 3) { | 191 if (buildCounterJsonSchemaAnnotations < 3) { |
| 192 checkUnnamed1568(o.required); | 192 checkUnnamed497(o.required); |
| 193 } | 193 } |
| 194 buildCounterJsonSchemaAnnotations--; | 194 buildCounterJsonSchemaAnnotations--; |
| 195 } | 195 } |
| 196 | 196 |
| 197 buildUnnamed1569() { | 197 buildUnnamed498() { |
| 198 var o = new core.List<core.String>(); | 198 var o = new core.List<core.String>(); |
| 199 o.add("foo"); | 199 o.add("foo"); |
| 200 o.add("foo"); | 200 o.add("foo"); |
| 201 return o; | 201 return o; |
| 202 } | 202 } |
| 203 | 203 |
| 204 checkUnnamed1569(core.List<core.String> o) { | 204 checkUnnamed498(core.List<core.String> o) { |
| 205 unittest.expect(o, unittest.hasLength(2)); | 205 unittest.expect(o, unittest.hasLength(2)); |
| 206 unittest.expect(o[0], unittest.equals('foo')); | 206 unittest.expect(o[0], unittest.equals('foo')); |
| 207 unittest.expect(o[1], unittest.equals('foo')); | 207 unittest.expect(o[1], unittest.equals('foo')); |
| 208 } | 208 } |
| 209 | 209 |
| 210 buildUnnamed1570() { | 210 buildUnnamed499() { |
| 211 var o = new core.List<core.String>(); | 211 var o = new core.List<core.String>(); |
| 212 o.add("foo"); | 212 o.add("foo"); |
| 213 o.add("foo"); | 213 o.add("foo"); |
| 214 return o; | 214 return o; |
| 215 } | 215 } |
| 216 | 216 |
| 217 checkUnnamed1570(core.List<core.String> o) { | 217 checkUnnamed499(core.List<core.String> o) { |
| 218 unittest.expect(o, unittest.hasLength(2)); | 218 unittest.expect(o, unittest.hasLength(2)); |
| 219 unittest.expect(o[0], unittest.equals('foo')); | 219 unittest.expect(o[0], unittest.equals('foo')); |
| 220 unittest.expect(o[1], unittest.equals('foo')); | 220 unittest.expect(o[1], unittest.equals('foo')); |
| 221 } | 221 } |
| 222 | 222 |
| 223 buildUnnamed1571() { | 223 buildUnnamed500() { |
| 224 var o = new core.Map<core.String, api.JsonSchema>(); | 224 var o = new core.Map<core.String, api.JsonSchema>(); |
| 225 o["x"] = buildJsonSchema(); | 225 o["x"] = buildJsonSchema(); |
| 226 o["y"] = buildJsonSchema(); | 226 o["y"] = buildJsonSchema(); |
| 227 return o; | 227 return o; |
| 228 } | 228 } |
| 229 | 229 |
| 230 checkUnnamed1571(core.Map<core.String, api.JsonSchema> o) { | 230 checkUnnamed500(core.Map<core.String, api.JsonSchema> o) { |
| 231 unittest.expect(o, unittest.hasLength(2)); | 231 unittest.expect(o, unittest.hasLength(2)); |
| 232 checkJsonSchema(o["x"]); | 232 checkJsonSchema(o["x"]); |
| 233 checkJsonSchema(o["y"]); | 233 checkJsonSchema(o["y"]); |
| 234 } | 234 } |
| 235 | 235 |
| 236 core.int buildCounterJsonSchemaVariantMap = 0; | 236 core.int buildCounterJsonSchemaVariantMap = 0; |
| 237 buildJsonSchemaVariantMap() { | 237 buildJsonSchemaVariantMap() { |
| 238 var o = new api.JsonSchemaVariantMap(); | 238 var o = new api.JsonSchemaVariantMap(); |
| 239 buildCounterJsonSchemaVariantMap++; | 239 buildCounterJsonSchemaVariantMap++; |
| 240 if (buildCounterJsonSchemaVariantMap < 3) { | 240 if (buildCounterJsonSchemaVariantMap < 3) { |
| 241 o.P_ref = "foo"; | 241 o.P_ref = "foo"; |
| 242 o.typeValue = "foo"; | 242 o.typeValue = "foo"; |
| 243 } | 243 } |
| 244 buildCounterJsonSchemaVariantMap--; | 244 buildCounterJsonSchemaVariantMap--; |
| 245 return o; | 245 return o; |
| 246 } | 246 } |
| 247 | 247 |
| 248 checkJsonSchemaVariantMap(api.JsonSchemaVariantMap o) { | 248 checkJsonSchemaVariantMap(api.JsonSchemaVariantMap o) { |
| 249 buildCounterJsonSchemaVariantMap++; | 249 buildCounterJsonSchemaVariantMap++; |
| 250 if (buildCounterJsonSchemaVariantMap < 3) { | 250 if (buildCounterJsonSchemaVariantMap < 3) { |
| 251 unittest.expect(o.P_ref, unittest.equals('foo')); | 251 unittest.expect(o.P_ref, unittest.equals('foo')); |
| 252 unittest.expect(o.typeValue, unittest.equals('foo')); | 252 unittest.expect(o.typeValue, unittest.equals('foo')); |
| 253 } | 253 } |
| 254 buildCounterJsonSchemaVariantMap--; | 254 buildCounterJsonSchemaVariantMap--; |
| 255 } | 255 } |
| 256 | 256 |
| 257 buildUnnamed1572() { | 257 buildUnnamed501() { |
| 258 var o = new core.List<api.JsonSchemaVariantMap>(); | 258 var o = new core.List<api.JsonSchemaVariantMap>(); |
| 259 o.add(buildJsonSchemaVariantMap()); | 259 o.add(buildJsonSchemaVariantMap()); |
| 260 o.add(buildJsonSchemaVariantMap()); | 260 o.add(buildJsonSchemaVariantMap()); |
| 261 return o; | 261 return o; |
| 262 } | 262 } |
| 263 | 263 |
| 264 checkUnnamed1572(core.List<api.JsonSchemaVariantMap> o) { | 264 checkUnnamed501(core.List<api.JsonSchemaVariantMap> o) { |
| 265 unittest.expect(o, unittest.hasLength(2)); | 265 unittest.expect(o, unittest.hasLength(2)); |
| 266 checkJsonSchemaVariantMap(o[0]); | 266 checkJsonSchemaVariantMap(o[0]); |
| 267 checkJsonSchemaVariantMap(o[1]); | 267 checkJsonSchemaVariantMap(o[1]); |
| 268 } | 268 } |
| 269 | 269 |
| 270 core.int buildCounterJsonSchemaVariant = 0; | 270 core.int buildCounterJsonSchemaVariant = 0; |
| 271 buildJsonSchemaVariant() { | 271 buildJsonSchemaVariant() { |
| 272 var o = new api.JsonSchemaVariant(); | 272 var o = new api.JsonSchemaVariant(); |
| 273 buildCounterJsonSchemaVariant++; | 273 buildCounterJsonSchemaVariant++; |
| 274 if (buildCounterJsonSchemaVariant < 3) { | 274 if (buildCounterJsonSchemaVariant < 3) { |
| 275 o.discriminant = "foo"; | 275 o.discriminant = "foo"; |
| 276 o.map = buildUnnamed1572(); | 276 o.map = buildUnnamed501(); |
| 277 } | 277 } |
| 278 buildCounterJsonSchemaVariant--; | 278 buildCounterJsonSchemaVariant--; |
| 279 return o; | 279 return o; |
| 280 } | 280 } |
| 281 | 281 |
| 282 checkJsonSchemaVariant(api.JsonSchemaVariant o) { | 282 checkJsonSchemaVariant(api.JsonSchemaVariant o) { |
| 283 buildCounterJsonSchemaVariant++; | 283 buildCounterJsonSchemaVariant++; |
| 284 if (buildCounterJsonSchemaVariant < 3) { | 284 if (buildCounterJsonSchemaVariant < 3) { |
| 285 unittest.expect(o.discriminant, unittest.equals('foo')); | 285 unittest.expect(o.discriminant, unittest.equals('foo')); |
| 286 checkUnnamed1572(o.map); | 286 checkUnnamed501(o.map); |
| 287 } | 287 } |
| 288 buildCounterJsonSchemaVariant--; | 288 buildCounterJsonSchemaVariant--; |
| 289 } | 289 } |
| 290 | 290 |
| 291 core.int buildCounterJsonSchema = 0; | 291 core.int buildCounterJsonSchema = 0; |
| 292 buildJsonSchema() { | 292 buildJsonSchema() { |
| 293 var o = new api.JsonSchema(); | 293 var o = new api.JsonSchema(); |
| 294 buildCounterJsonSchema++; | 294 buildCounterJsonSchema++; |
| 295 if (buildCounterJsonSchema < 3) { | 295 if (buildCounterJsonSchema < 3) { |
| 296 o.P_ref = "foo"; | 296 o.P_ref = "foo"; |
| 297 o.additionalProperties = buildJsonSchema(); | 297 o.additionalProperties = buildJsonSchema(); |
| 298 o.annotations = buildJsonSchemaAnnotations(); | 298 o.annotations = buildJsonSchemaAnnotations(); |
| 299 o.default_ = "foo"; | 299 o.default_ = "foo"; |
| 300 o.description = "foo"; | 300 o.description = "foo"; |
| 301 o.enum_ = buildUnnamed1569(); | 301 o.enum_ = buildUnnamed498(); |
| 302 o.enumDescriptions = buildUnnamed1570(); | 302 o.enumDescriptions = buildUnnamed499(); |
| 303 o.format = "foo"; | 303 o.format = "foo"; |
| 304 o.id = "foo"; | 304 o.id = "foo"; |
| 305 o.items = buildJsonSchema(); | 305 o.items = buildJsonSchema(); |
| 306 o.location = "foo"; | 306 o.location = "foo"; |
| 307 o.maximum = "foo"; | 307 o.maximum = "foo"; |
| 308 o.minimum = "foo"; | 308 o.minimum = "foo"; |
| 309 o.pattern = "foo"; | 309 o.pattern = "foo"; |
| 310 o.properties = buildUnnamed1571(); | 310 o.properties = buildUnnamed500(); |
| 311 o.readOnly = true; | 311 o.readOnly = true; |
| 312 o.repeated = true; | 312 o.repeated = true; |
| 313 o.required = true; | 313 o.required = true; |
| 314 o.type = "foo"; | 314 o.type = "foo"; |
| 315 o.variant = buildJsonSchemaVariant(); | 315 o.variant = buildJsonSchemaVariant(); |
| 316 } | 316 } |
| 317 buildCounterJsonSchema--; | 317 buildCounterJsonSchema--; |
| 318 return o; | 318 return o; |
| 319 } | 319 } |
| 320 | 320 |
| 321 checkJsonSchema(api.JsonSchema o) { | 321 checkJsonSchema(api.JsonSchema o) { |
| 322 buildCounterJsonSchema++; | 322 buildCounterJsonSchema++; |
| 323 if (buildCounterJsonSchema < 3) { | 323 if (buildCounterJsonSchema < 3) { |
| 324 unittest.expect(o.P_ref, unittest.equals('foo')); | 324 unittest.expect(o.P_ref, unittest.equals('foo')); |
| 325 checkJsonSchema(o.additionalProperties); | 325 checkJsonSchema(o.additionalProperties); |
| 326 checkJsonSchemaAnnotations(o.annotations); | 326 checkJsonSchemaAnnotations(o.annotations); |
| 327 unittest.expect(o.default_, unittest.equals('foo')); | 327 unittest.expect(o.default_, unittest.equals('foo')); |
| 328 unittest.expect(o.description, unittest.equals('foo')); | 328 unittest.expect(o.description, unittest.equals('foo')); |
| 329 checkUnnamed1569(o.enum_); | 329 checkUnnamed498(o.enum_); |
| 330 checkUnnamed1570(o.enumDescriptions); | 330 checkUnnamed499(o.enumDescriptions); |
| 331 unittest.expect(o.format, unittest.equals('foo')); | 331 unittest.expect(o.format, unittest.equals('foo')); |
| 332 unittest.expect(o.id, unittest.equals('foo')); | 332 unittest.expect(o.id, unittest.equals('foo')); |
| 333 checkJsonSchema(o.items); | 333 checkJsonSchema(o.items); |
| 334 unittest.expect(o.location, unittest.equals('foo')); | 334 unittest.expect(o.location, unittest.equals('foo')); |
| 335 unittest.expect(o.maximum, unittest.equals('foo')); | 335 unittest.expect(o.maximum, unittest.equals('foo')); |
| 336 unittest.expect(o.minimum, unittest.equals('foo')); | 336 unittest.expect(o.minimum, unittest.equals('foo')); |
| 337 unittest.expect(o.pattern, unittest.equals('foo')); | 337 unittest.expect(o.pattern, unittest.equals('foo')); |
| 338 checkUnnamed1571(o.properties); | 338 checkUnnamed500(o.properties); |
| 339 unittest.expect(o.readOnly, unittest.isTrue); | 339 unittest.expect(o.readOnly, unittest.isTrue); |
| 340 unittest.expect(o.repeated, unittest.isTrue); | 340 unittest.expect(o.repeated, unittest.isTrue); |
| 341 unittest.expect(o.required, unittest.isTrue); | 341 unittest.expect(o.required, unittest.isTrue); |
| 342 unittest.expect(o.type, unittest.equals('foo')); | 342 unittest.expect(o.type, unittest.equals('foo')); |
| 343 checkJsonSchemaVariant(o.variant); | 343 checkJsonSchemaVariant(o.variant); |
| 344 } | 344 } |
| 345 buildCounterJsonSchema--; | 345 buildCounterJsonSchema--; |
| 346 } | 346 } |
| 347 | 347 |
| 348 core.int buildCounterRestDescriptionAuthOauth2ScopesValue = 0; | 348 core.int buildCounterRestDescriptionAuthOauth2ScopesValue = 0; |
| 349 buildRestDescriptionAuthOauth2ScopesValue() { | 349 buildRestDescriptionAuthOauth2ScopesValue() { |
| 350 var o = new api.RestDescriptionAuthOauth2ScopesValue(); | 350 var o = new api.RestDescriptionAuthOauth2ScopesValue(); |
| 351 buildCounterRestDescriptionAuthOauth2ScopesValue++; | 351 buildCounterRestDescriptionAuthOauth2ScopesValue++; |
| 352 if (buildCounterRestDescriptionAuthOauth2ScopesValue < 3) { | 352 if (buildCounterRestDescriptionAuthOauth2ScopesValue < 3) { |
| 353 o.description = "foo"; | 353 o.description = "foo"; |
| 354 } | 354 } |
| 355 buildCounterRestDescriptionAuthOauth2ScopesValue--; | 355 buildCounterRestDescriptionAuthOauth2ScopesValue--; |
| 356 return o; | 356 return o; |
| 357 } | 357 } |
| 358 | 358 |
| 359 checkRestDescriptionAuthOauth2ScopesValue(api.RestDescriptionAuthOauth2ScopesVal
ue o) { | 359 checkRestDescriptionAuthOauth2ScopesValue(api.RestDescriptionAuthOauth2ScopesVal
ue o) { |
| 360 buildCounterRestDescriptionAuthOauth2ScopesValue++; | 360 buildCounterRestDescriptionAuthOauth2ScopesValue++; |
| 361 if (buildCounterRestDescriptionAuthOauth2ScopesValue < 3) { | 361 if (buildCounterRestDescriptionAuthOauth2ScopesValue < 3) { |
| 362 unittest.expect(o.description, unittest.equals('foo')); | 362 unittest.expect(o.description, unittest.equals('foo')); |
| 363 } | 363 } |
| 364 buildCounterRestDescriptionAuthOauth2ScopesValue--; | 364 buildCounterRestDescriptionAuthOauth2ScopesValue--; |
| 365 } | 365 } |
| 366 | 366 |
| 367 buildUnnamed1573() { | 367 buildUnnamed502() { |
| 368 var o = new core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue>(); | 368 var o = new core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue>(); |
| 369 o["x"] = buildRestDescriptionAuthOauth2ScopesValue(); | 369 o["x"] = buildRestDescriptionAuthOauth2ScopesValue(); |
| 370 o["y"] = buildRestDescriptionAuthOauth2ScopesValue(); | 370 o["y"] = buildRestDescriptionAuthOauth2ScopesValue(); |
| 371 return o; | 371 return o; |
| 372 } | 372 } |
| 373 | 373 |
| 374 checkUnnamed1573(core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue>
o) { | 374 checkUnnamed502(core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue>
o) { |
| 375 unittest.expect(o, unittest.hasLength(2)); | 375 unittest.expect(o, unittest.hasLength(2)); |
| 376 checkRestDescriptionAuthOauth2ScopesValue(o["x"]); | 376 checkRestDescriptionAuthOauth2ScopesValue(o["x"]); |
| 377 checkRestDescriptionAuthOauth2ScopesValue(o["y"]); | 377 checkRestDescriptionAuthOauth2ScopesValue(o["y"]); |
| 378 } | 378 } |
| 379 | 379 |
| 380 core.int buildCounterRestDescriptionAuthOauth2 = 0; | 380 core.int buildCounterRestDescriptionAuthOauth2 = 0; |
| 381 buildRestDescriptionAuthOauth2() { | 381 buildRestDescriptionAuthOauth2() { |
| 382 var o = new api.RestDescriptionAuthOauth2(); | 382 var o = new api.RestDescriptionAuthOauth2(); |
| 383 buildCounterRestDescriptionAuthOauth2++; | 383 buildCounterRestDescriptionAuthOauth2++; |
| 384 if (buildCounterRestDescriptionAuthOauth2 < 3) { | 384 if (buildCounterRestDescriptionAuthOauth2 < 3) { |
| 385 o.scopes = buildUnnamed1573(); | 385 o.scopes = buildUnnamed502(); |
| 386 } | 386 } |
| 387 buildCounterRestDescriptionAuthOauth2--; | 387 buildCounterRestDescriptionAuthOauth2--; |
| 388 return o; | 388 return o; |
| 389 } | 389 } |
| 390 | 390 |
| 391 checkRestDescriptionAuthOauth2(api.RestDescriptionAuthOauth2 o) { | 391 checkRestDescriptionAuthOauth2(api.RestDescriptionAuthOauth2 o) { |
| 392 buildCounterRestDescriptionAuthOauth2++; | 392 buildCounterRestDescriptionAuthOauth2++; |
| 393 if (buildCounterRestDescriptionAuthOauth2 < 3) { | 393 if (buildCounterRestDescriptionAuthOauth2 < 3) { |
| 394 checkUnnamed1573(o.scopes); | 394 checkUnnamed502(o.scopes); |
| 395 } | 395 } |
| 396 buildCounterRestDescriptionAuthOauth2--; | 396 buildCounterRestDescriptionAuthOauth2--; |
| 397 } | 397 } |
| 398 | 398 |
| 399 core.int buildCounterRestDescriptionAuth = 0; | 399 core.int buildCounterRestDescriptionAuth = 0; |
| 400 buildRestDescriptionAuth() { | 400 buildRestDescriptionAuth() { |
| 401 var o = new api.RestDescriptionAuth(); | 401 var o = new api.RestDescriptionAuth(); |
| 402 buildCounterRestDescriptionAuth++; | 402 buildCounterRestDescriptionAuth++; |
| 403 if (buildCounterRestDescriptionAuth < 3) { | 403 if (buildCounterRestDescriptionAuth < 3) { |
| 404 o.oauth2 = buildRestDescriptionAuthOauth2(); | 404 o.oauth2 = buildRestDescriptionAuthOauth2(); |
| 405 } | 405 } |
| 406 buildCounterRestDescriptionAuth--; | 406 buildCounterRestDescriptionAuth--; |
| 407 return o; | 407 return o; |
| 408 } | 408 } |
| 409 | 409 |
| 410 checkRestDescriptionAuth(api.RestDescriptionAuth o) { | 410 checkRestDescriptionAuth(api.RestDescriptionAuth o) { |
| 411 buildCounterRestDescriptionAuth++; | 411 buildCounterRestDescriptionAuth++; |
| 412 if (buildCounterRestDescriptionAuth < 3) { | 412 if (buildCounterRestDescriptionAuth < 3) { |
| 413 checkRestDescriptionAuthOauth2(o.oauth2); | 413 checkRestDescriptionAuthOauth2(o.oauth2); |
| 414 } | 414 } |
| 415 buildCounterRestDescriptionAuth--; | 415 buildCounterRestDescriptionAuth--; |
| 416 } | 416 } |
| 417 | 417 |
| 418 buildUnnamed1574() { | 418 buildUnnamed503() { |
| 419 var o = new core.List<core.String>(); | 419 var o = new core.List<core.String>(); |
| 420 o.add("foo"); | 420 o.add("foo"); |
| 421 o.add("foo"); | 421 o.add("foo"); |
| 422 return o; | 422 return o; |
| 423 } | 423 } |
| 424 | 424 |
| 425 checkUnnamed1574(core.List<core.String> o) { | 425 checkUnnamed503(core.List<core.String> o) { |
| 426 unittest.expect(o, unittest.hasLength(2)); | 426 unittest.expect(o, unittest.hasLength(2)); |
| 427 unittest.expect(o[0], unittest.equals('foo')); | 427 unittest.expect(o[0], unittest.equals('foo')); |
| 428 unittest.expect(o[1], unittest.equals('foo')); | 428 unittest.expect(o[1], unittest.equals('foo')); |
| 429 } | 429 } |
| 430 | 430 |
| 431 core.int buildCounterRestDescriptionIcons = 0; | 431 core.int buildCounterRestDescriptionIcons = 0; |
| 432 buildRestDescriptionIcons() { | 432 buildRestDescriptionIcons() { |
| 433 var o = new api.RestDescriptionIcons(); | 433 var o = new api.RestDescriptionIcons(); |
| 434 buildCounterRestDescriptionIcons++; | 434 buildCounterRestDescriptionIcons++; |
| 435 if (buildCounterRestDescriptionIcons < 3) { | 435 if (buildCounterRestDescriptionIcons < 3) { |
| 436 o.x16 = "foo"; | 436 o.x16 = "foo"; |
| 437 o.x32 = "foo"; | 437 o.x32 = "foo"; |
| 438 } | 438 } |
| 439 buildCounterRestDescriptionIcons--; | 439 buildCounterRestDescriptionIcons--; |
| 440 return o; | 440 return o; |
| 441 } | 441 } |
| 442 | 442 |
| 443 checkRestDescriptionIcons(api.RestDescriptionIcons o) { | 443 checkRestDescriptionIcons(api.RestDescriptionIcons o) { |
| 444 buildCounterRestDescriptionIcons++; | 444 buildCounterRestDescriptionIcons++; |
| 445 if (buildCounterRestDescriptionIcons < 3) { | 445 if (buildCounterRestDescriptionIcons < 3) { |
| 446 unittest.expect(o.x16, unittest.equals('foo')); | 446 unittest.expect(o.x16, unittest.equals('foo')); |
| 447 unittest.expect(o.x32, unittest.equals('foo')); | 447 unittest.expect(o.x32, unittest.equals('foo')); |
| 448 } | 448 } |
| 449 buildCounterRestDescriptionIcons--; | 449 buildCounterRestDescriptionIcons--; |
| 450 } | 450 } |
| 451 | 451 |
| 452 buildUnnamed1575() { | 452 buildUnnamed504() { |
| 453 var o = new core.List<core.String>(); | 453 var o = new core.List<core.String>(); |
| 454 o.add("foo"); | 454 o.add("foo"); |
| 455 o.add("foo"); | 455 o.add("foo"); |
| 456 return o; | 456 return o; |
| 457 } | 457 } |
| 458 | 458 |
| 459 checkUnnamed1575(core.List<core.String> o) { | 459 checkUnnamed504(core.List<core.String> o) { |
| 460 unittest.expect(o, unittest.hasLength(2)); | 460 unittest.expect(o, unittest.hasLength(2)); |
| 461 unittest.expect(o[0], unittest.equals('foo')); | 461 unittest.expect(o[0], unittest.equals('foo')); |
| 462 unittest.expect(o[1], unittest.equals('foo')); | 462 unittest.expect(o[1], unittest.equals('foo')); |
| 463 } | 463 } |
| 464 | 464 |
| 465 buildUnnamed1576() { | 465 buildUnnamed505() { |
| 466 var o = new core.Map<core.String, api.RestMethod>(); | 466 var o = new core.Map<core.String, api.RestMethod>(); |
| 467 o["x"] = buildRestMethod(); | 467 o["x"] = buildRestMethod(); |
| 468 o["y"] = buildRestMethod(); | 468 o["y"] = buildRestMethod(); |
| 469 return o; | 469 return o; |
| 470 } | 470 } |
| 471 | 471 |
| 472 checkUnnamed1576(core.Map<core.String, api.RestMethod> o) { | 472 checkUnnamed505(core.Map<core.String, api.RestMethod> o) { |
| 473 unittest.expect(o, unittest.hasLength(2)); | 473 unittest.expect(o, unittest.hasLength(2)); |
| 474 checkRestMethod(o["x"]); | 474 checkRestMethod(o["x"]); |
| 475 checkRestMethod(o["y"]); | 475 checkRestMethod(o["y"]); |
| 476 } | 476 } |
| 477 | 477 |
| 478 buildUnnamed1577() { | 478 buildUnnamed506() { |
| 479 var o = new core.Map<core.String, api.JsonSchema>(); | 479 var o = new core.Map<core.String, api.JsonSchema>(); |
| 480 o["x"] = buildJsonSchema(); | 480 o["x"] = buildJsonSchema(); |
| 481 o["y"] = buildJsonSchema(); | 481 o["y"] = buildJsonSchema(); |
| 482 return o; | 482 return o; |
| 483 } | 483 } |
| 484 | 484 |
| 485 checkUnnamed1577(core.Map<core.String, api.JsonSchema> o) { | 485 checkUnnamed506(core.Map<core.String, api.JsonSchema> o) { |
| 486 unittest.expect(o, unittest.hasLength(2)); | 486 unittest.expect(o, unittest.hasLength(2)); |
| 487 checkJsonSchema(o["x"]); | 487 checkJsonSchema(o["x"]); |
| 488 checkJsonSchema(o["y"]); | 488 checkJsonSchema(o["y"]); |
| 489 } | 489 } |
| 490 | 490 |
| 491 buildUnnamed1578() { | 491 buildUnnamed507() { |
| 492 var o = new core.Map<core.String, api.RestResource>(); | 492 var o = new core.Map<core.String, api.RestResource>(); |
| 493 o["x"] = buildRestResource(); | 493 o["x"] = buildRestResource(); |
| 494 o["y"] = buildRestResource(); | 494 o["y"] = buildRestResource(); |
| 495 return o; | 495 return o; |
| 496 } | 496 } |
| 497 | 497 |
| 498 checkUnnamed1578(core.Map<core.String, api.RestResource> o) { | 498 checkUnnamed507(core.Map<core.String, api.RestResource> o) { |
| 499 unittest.expect(o, unittest.hasLength(2)); | 499 unittest.expect(o, unittest.hasLength(2)); |
| 500 checkRestResource(o["x"]); | 500 checkRestResource(o["x"]); |
| 501 checkRestResource(o["y"]); | 501 checkRestResource(o["y"]); |
| 502 } | 502 } |
| 503 | 503 |
| 504 buildUnnamed1579() { | 504 buildUnnamed508() { |
| 505 var o = new core.Map<core.String, api.JsonSchema>(); | 505 var o = new core.Map<core.String, api.JsonSchema>(); |
| 506 o["x"] = buildJsonSchema(); | 506 o["x"] = buildJsonSchema(); |
| 507 o["y"] = buildJsonSchema(); | 507 o["y"] = buildJsonSchema(); |
| 508 return o; | 508 return o; |
| 509 } | 509 } |
| 510 | 510 |
| 511 checkUnnamed1579(core.Map<core.String, api.JsonSchema> o) { | 511 checkUnnamed508(core.Map<core.String, api.JsonSchema> o) { |
| 512 unittest.expect(o, unittest.hasLength(2)); | 512 unittest.expect(o, unittest.hasLength(2)); |
| 513 checkJsonSchema(o["x"]); | 513 checkJsonSchema(o["x"]); |
| 514 checkJsonSchema(o["y"]); | 514 checkJsonSchema(o["y"]); |
| 515 } | 515 } |
| 516 | 516 |
| 517 core.int buildCounterRestDescription = 0; | 517 core.int buildCounterRestDescription = 0; |
| 518 buildRestDescription() { | 518 buildRestDescription() { |
| 519 var o = new api.RestDescription(); | 519 var o = new api.RestDescription(); |
| 520 buildCounterRestDescription++; | 520 buildCounterRestDescription++; |
| 521 if (buildCounterRestDescription < 3) { | 521 if (buildCounterRestDescription < 3) { |
| 522 o.auth = buildRestDescriptionAuth(); | 522 o.auth = buildRestDescriptionAuth(); |
| 523 o.basePath = "foo"; | 523 o.basePath = "foo"; |
| 524 o.baseUrl = "foo"; | 524 o.baseUrl = "foo"; |
| 525 o.batchPath = "foo"; | 525 o.batchPath = "foo"; |
| 526 o.canonicalName = "foo"; | 526 o.canonicalName = "foo"; |
| 527 o.description = "foo"; | 527 o.description = "foo"; |
| 528 o.discoveryVersion = "foo"; | 528 o.discoveryVersion = "foo"; |
| 529 o.documentationLink = "foo"; | 529 o.documentationLink = "foo"; |
| 530 o.etag = "foo"; | 530 o.etag = "foo"; |
| 531 o.exponentialBackoffDefault = true; | 531 o.exponentialBackoffDefault = true; |
| 532 o.features = buildUnnamed1574(); | 532 o.features = buildUnnamed503(); |
| 533 o.icons = buildRestDescriptionIcons(); | 533 o.icons = buildRestDescriptionIcons(); |
| 534 o.id = "foo"; | 534 o.id = "foo"; |
| 535 o.kind = "foo"; | 535 o.kind = "foo"; |
| 536 o.labels = buildUnnamed1575(); | 536 o.labels = buildUnnamed504(); |
| 537 o.methods = buildUnnamed1576(); | 537 o.methods = buildUnnamed505(); |
| 538 o.name = "foo"; | 538 o.name = "foo"; |
| 539 o.ownerDomain = "foo"; | 539 o.ownerDomain = "foo"; |
| 540 o.ownerName = "foo"; | 540 o.ownerName = "foo"; |
| 541 o.packagePath = "foo"; | 541 o.packagePath = "foo"; |
| 542 o.parameters = buildUnnamed1577(); | 542 o.parameters = buildUnnamed506(); |
| 543 o.protocol = "foo"; | 543 o.protocol = "foo"; |
| 544 o.resources = buildUnnamed1578(); | 544 o.resources = buildUnnamed507(); |
| 545 o.revision = "foo"; | 545 o.revision = "foo"; |
| 546 o.rootUrl = "foo"; | 546 o.rootUrl = "foo"; |
| 547 o.schemas = buildUnnamed1579(); | 547 o.schemas = buildUnnamed508(); |
| 548 o.servicePath = "foo"; | 548 o.servicePath = "foo"; |
| 549 o.title = "foo"; | 549 o.title = "foo"; |
| 550 o.version = "foo"; | 550 o.version = "foo"; |
| 551 } | 551 } |
| 552 buildCounterRestDescription--; | 552 buildCounterRestDescription--; |
| 553 return o; | 553 return o; |
| 554 } | 554 } |
| 555 | 555 |
| 556 checkRestDescription(api.RestDescription o) { | 556 checkRestDescription(api.RestDescription o) { |
| 557 buildCounterRestDescription++; | 557 buildCounterRestDescription++; |
| 558 if (buildCounterRestDescription < 3) { | 558 if (buildCounterRestDescription < 3) { |
| 559 checkRestDescriptionAuth(o.auth); | 559 checkRestDescriptionAuth(o.auth); |
| 560 unittest.expect(o.basePath, unittest.equals('foo')); | 560 unittest.expect(o.basePath, unittest.equals('foo')); |
| 561 unittest.expect(o.baseUrl, unittest.equals('foo')); | 561 unittest.expect(o.baseUrl, unittest.equals('foo')); |
| 562 unittest.expect(o.batchPath, unittest.equals('foo')); | 562 unittest.expect(o.batchPath, unittest.equals('foo')); |
| 563 unittest.expect(o.canonicalName, unittest.equals('foo')); | 563 unittest.expect(o.canonicalName, unittest.equals('foo')); |
| 564 unittest.expect(o.description, unittest.equals('foo')); | 564 unittest.expect(o.description, unittest.equals('foo')); |
| 565 unittest.expect(o.discoveryVersion, unittest.equals('foo')); | 565 unittest.expect(o.discoveryVersion, unittest.equals('foo')); |
| 566 unittest.expect(o.documentationLink, unittest.equals('foo')); | 566 unittest.expect(o.documentationLink, unittest.equals('foo')); |
| 567 unittest.expect(o.etag, unittest.equals('foo')); | 567 unittest.expect(o.etag, unittest.equals('foo')); |
| 568 unittest.expect(o.exponentialBackoffDefault, unittest.isTrue); | 568 unittest.expect(o.exponentialBackoffDefault, unittest.isTrue); |
| 569 checkUnnamed1574(o.features); | 569 checkUnnamed503(o.features); |
| 570 checkRestDescriptionIcons(o.icons); | 570 checkRestDescriptionIcons(o.icons); |
| 571 unittest.expect(o.id, unittest.equals('foo')); | 571 unittest.expect(o.id, unittest.equals('foo')); |
| 572 unittest.expect(o.kind, unittest.equals('foo')); | 572 unittest.expect(o.kind, unittest.equals('foo')); |
| 573 checkUnnamed1575(o.labels); | 573 checkUnnamed504(o.labels); |
| 574 checkUnnamed1576(o.methods); | 574 checkUnnamed505(o.methods); |
| 575 unittest.expect(o.name, unittest.equals('foo')); | 575 unittest.expect(o.name, unittest.equals('foo')); |
| 576 unittest.expect(o.ownerDomain, unittest.equals('foo')); | 576 unittest.expect(o.ownerDomain, unittest.equals('foo')); |
| 577 unittest.expect(o.ownerName, unittest.equals('foo')); | 577 unittest.expect(o.ownerName, unittest.equals('foo')); |
| 578 unittest.expect(o.packagePath, unittest.equals('foo')); | 578 unittest.expect(o.packagePath, unittest.equals('foo')); |
| 579 checkUnnamed1577(o.parameters); | 579 checkUnnamed506(o.parameters); |
| 580 unittest.expect(o.protocol, unittest.equals('foo')); | 580 unittest.expect(o.protocol, unittest.equals('foo')); |
| 581 checkUnnamed1578(o.resources); | 581 checkUnnamed507(o.resources); |
| 582 unittest.expect(o.revision, unittest.equals('foo')); | 582 unittest.expect(o.revision, unittest.equals('foo')); |
| 583 unittest.expect(o.rootUrl, unittest.equals('foo')); | 583 unittest.expect(o.rootUrl, unittest.equals('foo')); |
| 584 checkUnnamed1579(o.schemas); | 584 checkUnnamed508(o.schemas); |
| 585 unittest.expect(o.servicePath, unittest.equals('foo')); | 585 unittest.expect(o.servicePath, unittest.equals('foo')); |
| 586 unittest.expect(o.title, unittest.equals('foo')); | 586 unittest.expect(o.title, unittest.equals('foo')); |
| 587 unittest.expect(o.version, unittest.equals('foo')); | 587 unittest.expect(o.version, unittest.equals('foo')); |
| 588 } | 588 } |
| 589 buildCounterRestDescription--; | 589 buildCounterRestDescription--; |
| 590 } | 590 } |
| 591 | 591 |
| 592 buildUnnamed1580() { | 592 buildUnnamed509() { |
| 593 var o = new core.List<core.String>(); | 593 var o = new core.List<core.String>(); |
| 594 o.add("foo"); | 594 o.add("foo"); |
| 595 o.add("foo"); | 595 o.add("foo"); |
| 596 return o; | 596 return o; |
| 597 } | 597 } |
| 598 | 598 |
| 599 checkUnnamed1580(core.List<core.String> o) { | 599 checkUnnamed509(core.List<core.String> o) { |
| 600 unittest.expect(o, unittest.hasLength(2)); | 600 unittest.expect(o, unittest.hasLength(2)); |
| 601 unittest.expect(o[0], unittest.equals('foo')); | 601 unittest.expect(o[0], unittest.equals('foo')); |
| 602 unittest.expect(o[1], unittest.equals('foo')); | 602 unittest.expect(o[1], unittest.equals('foo')); |
| 603 } | 603 } |
| 604 | 604 |
| 605 core.int buildCounterRestMethodMediaUploadProtocolsResumable = 0; | 605 core.int buildCounterRestMethodMediaUploadProtocolsResumable = 0; |
| 606 buildRestMethodMediaUploadProtocolsResumable() { | 606 buildRestMethodMediaUploadProtocolsResumable() { |
| 607 var o = new api.RestMethodMediaUploadProtocolsResumable(); | 607 var o = new api.RestMethodMediaUploadProtocolsResumable(); |
| 608 buildCounterRestMethodMediaUploadProtocolsResumable++; | 608 buildCounterRestMethodMediaUploadProtocolsResumable++; |
| 609 if (buildCounterRestMethodMediaUploadProtocolsResumable < 3) { | 609 if (buildCounterRestMethodMediaUploadProtocolsResumable < 3) { |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 663 checkRestMethodMediaUploadProtocolsSimple(o.simple); | 663 checkRestMethodMediaUploadProtocolsSimple(o.simple); |
| 664 } | 664 } |
| 665 buildCounterRestMethodMediaUploadProtocols--; | 665 buildCounterRestMethodMediaUploadProtocols--; |
| 666 } | 666 } |
| 667 | 667 |
| 668 core.int buildCounterRestMethodMediaUpload = 0; | 668 core.int buildCounterRestMethodMediaUpload = 0; |
| 669 buildRestMethodMediaUpload() { | 669 buildRestMethodMediaUpload() { |
| 670 var o = new api.RestMethodMediaUpload(); | 670 var o = new api.RestMethodMediaUpload(); |
| 671 buildCounterRestMethodMediaUpload++; | 671 buildCounterRestMethodMediaUpload++; |
| 672 if (buildCounterRestMethodMediaUpload < 3) { | 672 if (buildCounterRestMethodMediaUpload < 3) { |
| 673 o.accept = buildUnnamed1580(); | 673 o.accept = buildUnnamed509(); |
| 674 o.maxSize = "foo"; | 674 o.maxSize = "foo"; |
| 675 o.protocols = buildRestMethodMediaUploadProtocols(); | 675 o.protocols = buildRestMethodMediaUploadProtocols(); |
| 676 } | 676 } |
| 677 buildCounterRestMethodMediaUpload--; | 677 buildCounterRestMethodMediaUpload--; |
| 678 return o; | 678 return o; |
| 679 } | 679 } |
| 680 | 680 |
| 681 checkRestMethodMediaUpload(api.RestMethodMediaUpload o) { | 681 checkRestMethodMediaUpload(api.RestMethodMediaUpload o) { |
| 682 buildCounterRestMethodMediaUpload++; | 682 buildCounterRestMethodMediaUpload++; |
| 683 if (buildCounterRestMethodMediaUpload < 3) { | 683 if (buildCounterRestMethodMediaUpload < 3) { |
| 684 checkUnnamed1580(o.accept); | 684 checkUnnamed509(o.accept); |
| 685 unittest.expect(o.maxSize, unittest.equals('foo')); | 685 unittest.expect(o.maxSize, unittest.equals('foo')); |
| 686 checkRestMethodMediaUploadProtocols(o.protocols); | 686 checkRestMethodMediaUploadProtocols(o.protocols); |
| 687 } | 687 } |
| 688 buildCounterRestMethodMediaUpload--; | 688 buildCounterRestMethodMediaUpload--; |
| 689 } | 689 } |
| 690 | 690 |
| 691 buildUnnamed1581() { | 691 buildUnnamed510() { |
| 692 var o = new core.List<core.String>(); | 692 var o = new core.List<core.String>(); |
| 693 o.add("foo"); | 693 o.add("foo"); |
| 694 o.add("foo"); | 694 o.add("foo"); |
| 695 return o; | 695 return o; |
| 696 } | 696 } |
| 697 | 697 |
| 698 checkUnnamed1581(core.List<core.String> o) { | 698 checkUnnamed510(core.List<core.String> o) { |
| 699 unittest.expect(o, unittest.hasLength(2)); | 699 unittest.expect(o, unittest.hasLength(2)); |
| 700 unittest.expect(o[0], unittest.equals('foo')); | 700 unittest.expect(o[0], unittest.equals('foo')); |
| 701 unittest.expect(o[1], unittest.equals('foo')); | 701 unittest.expect(o[1], unittest.equals('foo')); |
| 702 } | 702 } |
| 703 | 703 |
| 704 buildUnnamed1582() { | 704 buildUnnamed511() { |
| 705 var o = new core.Map<core.String, api.JsonSchema>(); | 705 var o = new core.Map<core.String, api.JsonSchema>(); |
| 706 o["x"] = buildJsonSchema(); | 706 o["x"] = buildJsonSchema(); |
| 707 o["y"] = buildJsonSchema(); | 707 o["y"] = buildJsonSchema(); |
| 708 return o; | 708 return o; |
| 709 } | 709 } |
| 710 | 710 |
| 711 checkUnnamed1582(core.Map<core.String, api.JsonSchema> o) { | 711 checkUnnamed511(core.Map<core.String, api.JsonSchema> o) { |
| 712 unittest.expect(o, unittest.hasLength(2)); | 712 unittest.expect(o, unittest.hasLength(2)); |
| 713 checkJsonSchema(o["x"]); | 713 checkJsonSchema(o["x"]); |
| 714 checkJsonSchema(o["y"]); | 714 checkJsonSchema(o["y"]); |
| 715 } | 715 } |
| 716 | 716 |
| 717 core.int buildCounterRestMethodRequest = 0; | 717 core.int buildCounterRestMethodRequest = 0; |
| 718 buildRestMethodRequest() { | 718 buildRestMethodRequest() { |
| 719 var o = new api.RestMethodRequest(); | 719 var o = new api.RestMethodRequest(); |
| 720 buildCounterRestMethodRequest++; | 720 buildCounterRestMethodRequest++; |
| 721 if (buildCounterRestMethodRequest < 3) { | 721 if (buildCounterRestMethodRequest < 3) { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 747 } | 747 } |
| 748 | 748 |
| 749 checkRestMethodResponse(api.RestMethodResponse o) { | 749 checkRestMethodResponse(api.RestMethodResponse o) { |
| 750 buildCounterRestMethodResponse++; | 750 buildCounterRestMethodResponse++; |
| 751 if (buildCounterRestMethodResponse < 3) { | 751 if (buildCounterRestMethodResponse < 3) { |
| 752 unittest.expect(o.P_ref, unittest.equals('foo')); | 752 unittest.expect(o.P_ref, unittest.equals('foo')); |
| 753 } | 753 } |
| 754 buildCounterRestMethodResponse--; | 754 buildCounterRestMethodResponse--; |
| 755 } | 755 } |
| 756 | 756 |
| 757 buildUnnamed1583() { | 757 buildUnnamed512() { |
| 758 var o = new core.List<core.String>(); | 758 var o = new core.List<core.String>(); |
| 759 o.add("foo"); | 759 o.add("foo"); |
| 760 o.add("foo"); | 760 o.add("foo"); |
| 761 return o; | 761 return o; |
| 762 } | 762 } |
| 763 | 763 |
| 764 checkUnnamed1583(core.List<core.String> o) { | 764 checkUnnamed512(core.List<core.String> o) { |
| 765 unittest.expect(o, unittest.hasLength(2)); | 765 unittest.expect(o, unittest.hasLength(2)); |
| 766 unittest.expect(o[0], unittest.equals('foo')); | 766 unittest.expect(o[0], unittest.equals('foo')); |
| 767 unittest.expect(o[1], unittest.equals('foo')); | 767 unittest.expect(o[1], unittest.equals('foo')); |
| 768 } | 768 } |
| 769 | 769 |
| 770 core.int buildCounterRestMethod = 0; | 770 core.int buildCounterRestMethod = 0; |
| 771 buildRestMethod() { | 771 buildRestMethod() { |
| 772 var o = new api.RestMethod(); | 772 var o = new api.RestMethod(); |
| 773 buildCounterRestMethod++; | 773 buildCounterRestMethod++; |
| 774 if (buildCounterRestMethod < 3) { | 774 if (buildCounterRestMethod < 3) { |
| 775 o.description = "foo"; | 775 o.description = "foo"; |
| 776 o.etagRequired = true; | 776 o.etagRequired = true; |
| 777 o.httpMethod = "foo"; | 777 o.httpMethod = "foo"; |
| 778 o.id = "foo"; | 778 o.id = "foo"; |
| 779 o.mediaUpload = buildRestMethodMediaUpload(); | 779 o.mediaUpload = buildRestMethodMediaUpload(); |
| 780 o.parameterOrder = buildUnnamed1581(); | 780 o.parameterOrder = buildUnnamed510(); |
| 781 o.parameters = buildUnnamed1582(); | 781 o.parameters = buildUnnamed511(); |
| 782 o.path = "foo"; | 782 o.path = "foo"; |
| 783 o.request = buildRestMethodRequest(); | 783 o.request = buildRestMethodRequest(); |
| 784 o.response = buildRestMethodResponse(); | 784 o.response = buildRestMethodResponse(); |
| 785 o.scopes = buildUnnamed1583(); | 785 o.scopes = buildUnnamed512(); |
| 786 o.supportsMediaDownload = true; | 786 o.supportsMediaDownload = true; |
| 787 o.supportsMediaUpload = true; | 787 o.supportsMediaUpload = true; |
| 788 o.supportsSubscription = true; | 788 o.supportsSubscription = true; |
| 789 o.useMediaDownloadService = true; | 789 o.useMediaDownloadService = true; |
| 790 } | 790 } |
| 791 buildCounterRestMethod--; | 791 buildCounterRestMethod--; |
| 792 return o; | 792 return o; |
| 793 } | 793 } |
| 794 | 794 |
| 795 checkRestMethod(api.RestMethod o) { | 795 checkRestMethod(api.RestMethod o) { |
| 796 buildCounterRestMethod++; | 796 buildCounterRestMethod++; |
| 797 if (buildCounterRestMethod < 3) { | 797 if (buildCounterRestMethod < 3) { |
| 798 unittest.expect(o.description, unittest.equals('foo')); | 798 unittest.expect(o.description, unittest.equals('foo')); |
| 799 unittest.expect(o.etagRequired, unittest.isTrue); | 799 unittest.expect(o.etagRequired, unittest.isTrue); |
| 800 unittest.expect(o.httpMethod, unittest.equals('foo')); | 800 unittest.expect(o.httpMethod, unittest.equals('foo')); |
| 801 unittest.expect(o.id, unittest.equals('foo')); | 801 unittest.expect(o.id, unittest.equals('foo')); |
| 802 checkRestMethodMediaUpload(o.mediaUpload); | 802 checkRestMethodMediaUpload(o.mediaUpload); |
| 803 checkUnnamed1581(o.parameterOrder); | 803 checkUnnamed510(o.parameterOrder); |
| 804 checkUnnamed1582(o.parameters); | 804 checkUnnamed511(o.parameters); |
| 805 unittest.expect(o.path, unittest.equals('foo')); | 805 unittest.expect(o.path, unittest.equals('foo')); |
| 806 checkRestMethodRequest(o.request); | 806 checkRestMethodRequest(o.request); |
| 807 checkRestMethodResponse(o.response); | 807 checkRestMethodResponse(o.response); |
| 808 checkUnnamed1583(o.scopes); | 808 checkUnnamed512(o.scopes); |
| 809 unittest.expect(o.supportsMediaDownload, unittest.isTrue); | 809 unittest.expect(o.supportsMediaDownload, unittest.isTrue); |
| 810 unittest.expect(o.supportsMediaUpload, unittest.isTrue); | 810 unittest.expect(o.supportsMediaUpload, unittest.isTrue); |
| 811 unittest.expect(o.supportsSubscription, unittest.isTrue); | 811 unittest.expect(o.supportsSubscription, unittest.isTrue); |
| 812 unittest.expect(o.useMediaDownloadService, unittest.isTrue); | 812 unittest.expect(o.useMediaDownloadService, unittest.isTrue); |
| 813 } | 813 } |
| 814 buildCounterRestMethod--; | 814 buildCounterRestMethod--; |
| 815 } | 815 } |
| 816 | 816 |
| 817 buildUnnamed1584() { | 817 buildUnnamed513() { |
| 818 var o = new core.Map<core.String, api.RestMethod>(); | 818 var o = new core.Map<core.String, api.RestMethod>(); |
| 819 o["x"] = buildRestMethod(); | 819 o["x"] = buildRestMethod(); |
| 820 o["y"] = buildRestMethod(); | 820 o["y"] = buildRestMethod(); |
| 821 return o; | 821 return o; |
| 822 } | 822 } |
| 823 | 823 |
| 824 checkUnnamed1584(core.Map<core.String, api.RestMethod> o) { | 824 checkUnnamed513(core.Map<core.String, api.RestMethod> o) { |
| 825 unittest.expect(o, unittest.hasLength(2)); | 825 unittest.expect(o, unittest.hasLength(2)); |
| 826 checkRestMethod(o["x"]); | 826 checkRestMethod(o["x"]); |
| 827 checkRestMethod(o["y"]); | 827 checkRestMethod(o["y"]); |
| 828 } | 828 } |
| 829 | 829 |
| 830 buildUnnamed1585() { | 830 buildUnnamed514() { |
| 831 var o = new core.Map<core.String, api.RestResource>(); | 831 var o = new core.Map<core.String, api.RestResource>(); |
| 832 o["x"] = buildRestResource(); | 832 o["x"] = buildRestResource(); |
| 833 o["y"] = buildRestResource(); | 833 o["y"] = buildRestResource(); |
| 834 return o; | 834 return o; |
| 835 } | 835 } |
| 836 | 836 |
| 837 checkUnnamed1585(core.Map<core.String, api.RestResource> o) { | 837 checkUnnamed514(core.Map<core.String, api.RestResource> o) { |
| 838 unittest.expect(o, unittest.hasLength(2)); | 838 unittest.expect(o, unittest.hasLength(2)); |
| 839 checkRestResource(o["x"]); | 839 checkRestResource(o["x"]); |
| 840 checkRestResource(o["y"]); | 840 checkRestResource(o["y"]); |
| 841 } | 841 } |
| 842 | 842 |
| 843 core.int buildCounterRestResource = 0; | 843 core.int buildCounterRestResource = 0; |
| 844 buildRestResource() { | 844 buildRestResource() { |
| 845 var o = new api.RestResource(); | 845 var o = new api.RestResource(); |
| 846 buildCounterRestResource++; | 846 buildCounterRestResource++; |
| 847 if (buildCounterRestResource < 3) { | 847 if (buildCounterRestResource < 3) { |
| 848 o.methods = buildUnnamed1584(); | 848 o.methods = buildUnnamed513(); |
| 849 o.resources = buildUnnamed1585(); | 849 o.resources = buildUnnamed514(); |
| 850 } | 850 } |
| 851 buildCounterRestResource--; | 851 buildCounterRestResource--; |
| 852 return o; | 852 return o; |
| 853 } | 853 } |
| 854 | 854 |
| 855 checkRestResource(api.RestResource o) { | 855 checkRestResource(api.RestResource o) { |
| 856 buildCounterRestResource++; | 856 buildCounterRestResource++; |
| 857 if (buildCounterRestResource < 3) { | 857 if (buildCounterRestResource < 3) { |
| 858 checkUnnamed1584(o.methods); | 858 checkUnnamed513(o.methods); |
| 859 checkUnnamed1585(o.resources); | 859 checkUnnamed514(o.resources); |
| 860 } | 860 } |
| 861 buildCounterRestResource--; | 861 buildCounterRestResource--; |
| 862 } | 862 } |
| 863 | 863 |
| 864 | 864 |
| 865 main() { | 865 main() { |
| 866 unittest.group("obj-schema-DirectoryListItemsIcons", () { | 866 unittest.group("obj-schema-DirectoryListItemsIcons", () { |
| 867 unittest.test("to-json--from-json", () { | 867 unittest.test("to-json--from-json", () { |
| 868 var o = buildDirectoryListItemsIcons(); | 868 var o = buildDirectoryListItemsIcons(); |
| 869 var od = new api.DirectoryListItemsIcons.fromJson(o.toJson()); | 869 var od = new api.DirectoryListItemsIcons.fromJson(o.toJson()); |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1152 res.list(name: arg_name, preferred: arg_preferred).then(unittest.expectAsy
nc(((api.DirectoryList response) { | 1152 res.list(name: arg_name, preferred: arg_preferred).then(unittest.expectAsy
nc(((api.DirectoryList response) { |
| 1153 checkDirectoryList(response); | 1153 checkDirectoryList(response); |
| 1154 }))); | 1154 }))); |
| 1155 }); | 1155 }); |
| 1156 | 1156 |
| 1157 }); | 1157 }); |
| 1158 | 1158 |
| 1159 | 1159 |
| 1160 } | 1160 } |
| 1161 | 1161 |
| OLD | NEW |