| 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 buildUnnamed232() { | 75 buildUnnamed234() { | 
| 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 checkUnnamed232(core.List<core.String> o) { | 82 checkUnnamed234(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 = buildUnnamed232(); | 100     o.labels = buildUnnamed234(); | 
| 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     checkUnnamed232(o.labels); | 120     checkUnnamed234(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 buildUnnamed233() { | 129 buildUnnamed235() { | 
| 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 checkUnnamed233(core.List<api.DirectoryListItems> o) { | 136 checkUnnamed235(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 = buildUnnamed233(); | 148     o.items = buildUnnamed235(); | 
| 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     checkUnnamed233(o.items); | 159     checkUnnamed235(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 buildUnnamed234() { | 165 buildUnnamed236() { | 
| 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 checkUnnamed234(core.List<core.String> o) { | 172 checkUnnamed236(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 = buildUnnamed234(); | 183     o.required = buildUnnamed236(); | 
| 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     checkUnnamed234(o.required); | 192     checkUnnamed236(o.required); | 
| 193   } | 193   } | 
| 194   buildCounterJsonSchemaAnnotations--; | 194   buildCounterJsonSchemaAnnotations--; | 
| 195 } | 195 } | 
| 196 | 196 | 
| 197 buildUnnamed235() { | 197 buildUnnamed237() { | 
| 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 checkUnnamed235(core.List<core.String> o) { | 204 checkUnnamed237(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 buildUnnamed236() { | 210 buildUnnamed238() { | 
| 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 checkUnnamed236(core.List<core.String> o) { | 217 checkUnnamed238(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 buildUnnamed237() { | 223 buildUnnamed239() { | 
| 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 checkUnnamed237(core.Map<core.String, api.JsonSchema> o) { | 230 checkUnnamed239(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 buildUnnamed238() { | 257 buildUnnamed240() { | 
| 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 checkUnnamed238(core.List<api.JsonSchemaVariantMap> o) { | 264 checkUnnamed240(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 = buildUnnamed238(); | 276     o.map = buildUnnamed240(); | 
| 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     checkUnnamed238(o.map); | 286     checkUnnamed240(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_ = buildUnnamed235(); | 301     o.enum_ = buildUnnamed237(); | 
| 302     o.enumDescriptions = buildUnnamed236(); | 302     o.enumDescriptions = buildUnnamed238(); | 
| 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 = buildUnnamed237(); | 310     o.properties = buildUnnamed239(); | 
| 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     checkUnnamed235(o.enum_); | 329     checkUnnamed237(o.enum_); | 
| 330     checkUnnamed236(o.enumDescriptions); | 330     checkUnnamed238(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     checkUnnamed237(o.properties); | 338     checkUnnamed239(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 buildUnnamed239() { | 367 buildUnnamed241() { | 
| 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 checkUnnamed239(core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue> 
      o) { | 374 checkUnnamed241(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 = buildUnnamed239(); | 385     o.scopes = buildUnnamed241(); | 
| 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     checkUnnamed239(o.scopes); | 394     checkUnnamed241(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 buildUnnamed240() { | 418 buildUnnamed242() { | 
| 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 checkUnnamed240(core.List<core.String> o) { | 425 checkUnnamed242(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 buildUnnamed241() { | 452 buildUnnamed243() { | 
| 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 checkUnnamed241(core.List<core.String> o) { | 459 checkUnnamed243(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 buildUnnamed242() { | 465 buildUnnamed244() { | 
| 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 checkUnnamed242(core.Map<core.String, api.RestMethod> o) { | 472 checkUnnamed244(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 buildUnnamed243() { |  | 
| 479   var o = new core.Map<core.String, api.JsonSchema>(); |  | 
| 480   o["x"] = buildJsonSchema(); |  | 
| 481   o["y"] = buildJsonSchema(); |  | 
| 482   return o; |  | 
| 483 } |  | 
| 484 |  | 
| 485 checkUnnamed243(core.Map<core.String, api.JsonSchema> o) { |  | 
| 486   unittest.expect(o, unittest.hasLength(2)); |  | 
| 487   checkJsonSchema(o["x"]); |  | 
| 488   checkJsonSchema(o["y"]); |  | 
| 489 } |  | 
| 490 |  | 
| 491 buildUnnamed244() { |  | 
| 492   var o = new core.Map<core.String, api.RestResource>(); |  | 
| 493   o["x"] = buildRestResource(); |  | 
| 494   o["y"] = buildRestResource(); |  | 
| 495   return o; |  | 
| 496 } |  | 
| 497 |  | 
| 498 checkUnnamed244(core.Map<core.String, api.RestResource> o) { |  | 
| 499   unittest.expect(o, unittest.hasLength(2)); |  | 
| 500   checkRestResource(o["x"]); |  | 
| 501   checkRestResource(o["y"]); |  | 
| 502 } |  | 
| 503 |  | 
| 504 buildUnnamed245() { | 478 buildUnnamed245() { | 
| 505   var o = new core.Map<core.String, api.JsonSchema>(); | 479   var o = new core.Map<core.String, api.JsonSchema>(); | 
| 506   o["x"] = buildJsonSchema(); | 480   o["x"] = buildJsonSchema(); | 
| 507   o["y"] = buildJsonSchema(); | 481   o["y"] = buildJsonSchema(); | 
| 508   return o; | 482   return o; | 
| 509 } | 483 } | 
| 510 | 484 | 
| 511 checkUnnamed245(core.Map<core.String, api.JsonSchema> o) { | 485 checkUnnamed245(core.Map<core.String, api.JsonSchema> o) { | 
| 512   unittest.expect(o, unittest.hasLength(2)); | 486   unittest.expect(o, unittest.hasLength(2)); | 
| 513   checkJsonSchema(o["x"]); | 487   checkJsonSchema(o["x"]); | 
| 514   checkJsonSchema(o["y"]); | 488   checkJsonSchema(o["y"]); | 
|  | 489 } | 
|  | 490 | 
|  | 491 buildUnnamed246() { | 
|  | 492   var o = new core.Map<core.String, api.RestResource>(); | 
|  | 493   o["x"] = buildRestResource(); | 
|  | 494   o["y"] = buildRestResource(); | 
|  | 495   return o; | 
|  | 496 } | 
|  | 497 | 
|  | 498 checkUnnamed246(core.Map<core.String, api.RestResource> o) { | 
|  | 499   unittest.expect(o, unittest.hasLength(2)); | 
|  | 500   checkRestResource(o["x"]); | 
|  | 501   checkRestResource(o["y"]); | 
|  | 502 } | 
|  | 503 | 
|  | 504 buildUnnamed247() { | 
|  | 505   var o = new core.Map<core.String, api.JsonSchema>(); | 
|  | 506   o["x"] = buildJsonSchema(); | 
|  | 507   o["y"] = buildJsonSchema(); | 
|  | 508   return o; | 
|  | 509 } | 
|  | 510 | 
|  | 511 checkUnnamed247(core.Map<core.String, api.JsonSchema> o) { | 
|  | 512   unittest.expect(o, unittest.hasLength(2)); | 
|  | 513   checkJsonSchema(o["x"]); | 
|  | 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 = buildUnnamed240(); | 532     o.features = buildUnnamed242(); | 
| 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 = buildUnnamed241(); | 536     o.labels = buildUnnamed243(); | 
| 537     o.methods = buildUnnamed242(); | 537     o.methods = buildUnnamed244(); | 
| 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 = buildUnnamed243(); | 542     o.parameters = buildUnnamed245(); | 
| 543     o.protocol = "foo"; | 543     o.protocol = "foo"; | 
| 544     o.resources = buildUnnamed244(); | 544     o.resources = buildUnnamed246(); | 
| 545     o.revision = "foo"; | 545     o.revision = "foo"; | 
| 546     o.rootUrl = "foo"; | 546     o.rootUrl = "foo"; | 
| 547     o.schemas = buildUnnamed245(); | 547     o.schemas = buildUnnamed247(); | 
| 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     o.versionModule = true; | 551     o.versionModule = true; | 
| 552   } | 552   } | 
| 553   buildCounterRestDescription--; | 553   buildCounterRestDescription--; | 
| 554   return o; | 554   return o; | 
| 555 } | 555 } | 
| 556 | 556 | 
| 557 checkRestDescription(api.RestDescription o) { | 557 checkRestDescription(api.RestDescription o) { | 
| 558   buildCounterRestDescription++; | 558   buildCounterRestDescription++; | 
| 559   if (buildCounterRestDescription < 3) { | 559   if (buildCounterRestDescription < 3) { | 
| 560     checkRestDescriptionAuth(o.auth); | 560     checkRestDescriptionAuth(o.auth); | 
| 561     unittest.expect(o.basePath, unittest.equals('foo')); | 561     unittest.expect(o.basePath, unittest.equals('foo')); | 
| 562     unittest.expect(o.baseUrl, unittest.equals('foo')); | 562     unittest.expect(o.baseUrl, unittest.equals('foo')); | 
| 563     unittest.expect(o.batchPath, unittest.equals('foo')); | 563     unittest.expect(o.batchPath, unittest.equals('foo')); | 
| 564     unittest.expect(o.canonicalName, unittest.equals('foo')); | 564     unittest.expect(o.canonicalName, unittest.equals('foo')); | 
| 565     unittest.expect(o.description, unittest.equals('foo')); | 565     unittest.expect(o.description, unittest.equals('foo')); | 
| 566     unittest.expect(o.discoveryVersion, unittest.equals('foo')); | 566     unittest.expect(o.discoveryVersion, unittest.equals('foo')); | 
| 567     unittest.expect(o.documentationLink, unittest.equals('foo')); | 567     unittest.expect(o.documentationLink, unittest.equals('foo')); | 
| 568     unittest.expect(o.etag, unittest.equals('foo')); | 568     unittest.expect(o.etag, unittest.equals('foo')); | 
| 569     unittest.expect(o.exponentialBackoffDefault, unittest.isTrue); | 569     unittest.expect(o.exponentialBackoffDefault, unittest.isTrue); | 
| 570     checkUnnamed240(o.features); | 570     checkUnnamed242(o.features); | 
| 571     checkRestDescriptionIcons(o.icons); | 571     checkRestDescriptionIcons(o.icons); | 
| 572     unittest.expect(o.id, unittest.equals('foo')); | 572     unittest.expect(o.id, unittest.equals('foo')); | 
| 573     unittest.expect(o.kind, unittest.equals('foo')); | 573     unittest.expect(o.kind, unittest.equals('foo')); | 
| 574     checkUnnamed241(o.labels); | 574     checkUnnamed243(o.labels); | 
| 575     checkUnnamed242(o.methods); | 575     checkUnnamed244(o.methods); | 
| 576     unittest.expect(o.name, unittest.equals('foo')); | 576     unittest.expect(o.name, unittest.equals('foo')); | 
| 577     unittest.expect(o.ownerDomain, unittest.equals('foo')); | 577     unittest.expect(o.ownerDomain, unittest.equals('foo')); | 
| 578     unittest.expect(o.ownerName, unittest.equals('foo')); | 578     unittest.expect(o.ownerName, unittest.equals('foo')); | 
| 579     unittest.expect(o.packagePath, unittest.equals('foo')); | 579     unittest.expect(o.packagePath, unittest.equals('foo')); | 
| 580     checkUnnamed243(o.parameters); | 580     checkUnnamed245(o.parameters); | 
| 581     unittest.expect(o.protocol, unittest.equals('foo')); | 581     unittest.expect(o.protocol, unittest.equals('foo')); | 
| 582     checkUnnamed244(o.resources); | 582     checkUnnamed246(o.resources); | 
| 583     unittest.expect(o.revision, unittest.equals('foo')); | 583     unittest.expect(o.revision, unittest.equals('foo')); | 
| 584     unittest.expect(o.rootUrl, unittest.equals('foo')); | 584     unittest.expect(o.rootUrl, unittest.equals('foo')); | 
| 585     checkUnnamed245(o.schemas); | 585     checkUnnamed247(o.schemas); | 
| 586     unittest.expect(o.servicePath, unittest.equals('foo')); | 586     unittest.expect(o.servicePath, unittest.equals('foo')); | 
| 587     unittest.expect(o.title, unittest.equals('foo')); | 587     unittest.expect(o.title, unittest.equals('foo')); | 
| 588     unittest.expect(o.version, unittest.equals('foo')); | 588     unittest.expect(o.version, unittest.equals('foo')); | 
| 589     unittest.expect(o.versionModule, unittest.isTrue); | 589     unittest.expect(o.versionModule, unittest.isTrue); | 
| 590   } | 590   } | 
| 591   buildCounterRestDescription--; | 591   buildCounterRestDescription--; | 
| 592 } | 592 } | 
| 593 | 593 | 
| 594 buildUnnamed246() { | 594 buildUnnamed248() { | 
| 595   var o = new core.List<core.String>(); | 595   var o = new core.List<core.String>(); | 
| 596   o.add("foo"); | 596   o.add("foo"); | 
| 597   o.add("foo"); | 597   o.add("foo"); | 
| 598   return o; | 598   return o; | 
| 599 } | 599 } | 
| 600 | 600 | 
| 601 checkUnnamed246(core.List<core.String> o) { | 601 checkUnnamed248(core.List<core.String> o) { | 
| 602   unittest.expect(o, unittest.hasLength(2)); | 602   unittest.expect(o, unittest.hasLength(2)); | 
| 603   unittest.expect(o[0], unittest.equals('foo')); | 603   unittest.expect(o[0], unittest.equals('foo')); | 
| 604   unittest.expect(o[1], unittest.equals('foo')); | 604   unittest.expect(o[1], unittest.equals('foo')); | 
| 605 } | 605 } | 
| 606 | 606 | 
| 607 core.int buildCounterRestMethodMediaUploadProtocolsResumable = 0; | 607 core.int buildCounterRestMethodMediaUploadProtocolsResumable = 0; | 
| 608 buildRestMethodMediaUploadProtocolsResumable() { | 608 buildRestMethodMediaUploadProtocolsResumable() { | 
| 609   var o = new api.RestMethodMediaUploadProtocolsResumable(); | 609   var o = new api.RestMethodMediaUploadProtocolsResumable(); | 
| 610   buildCounterRestMethodMediaUploadProtocolsResumable++; | 610   buildCounterRestMethodMediaUploadProtocolsResumable++; | 
| 611   if (buildCounterRestMethodMediaUploadProtocolsResumable < 3) { | 611   if (buildCounterRestMethodMediaUploadProtocolsResumable < 3) { | 
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 665     checkRestMethodMediaUploadProtocolsSimple(o.simple); | 665     checkRestMethodMediaUploadProtocolsSimple(o.simple); | 
| 666   } | 666   } | 
| 667   buildCounterRestMethodMediaUploadProtocols--; | 667   buildCounterRestMethodMediaUploadProtocols--; | 
| 668 } | 668 } | 
| 669 | 669 | 
| 670 core.int buildCounterRestMethodMediaUpload = 0; | 670 core.int buildCounterRestMethodMediaUpload = 0; | 
| 671 buildRestMethodMediaUpload() { | 671 buildRestMethodMediaUpload() { | 
| 672   var o = new api.RestMethodMediaUpload(); | 672   var o = new api.RestMethodMediaUpload(); | 
| 673   buildCounterRestMethodMediaUpload++; | 673   buildCounterRestMethodMediaUpload++; | 
| 674   if (buildCounterRestMethodMediaUpload < 3) { | 674   if (buildCounterRestMethodMediaUpload < 3) { | 
| 675     o.accept = buildUnnamed246(); | 675     o.accept = buildUnnamed248(); | 
| 676     o.maxSize = "foo"; | 676     o.maxSize = "foo"; | 
| 677     o.protocols = buildRestMethodMediaUploadProtocols(); | 677     o.protocols = buildRestMethodMediaUploadProtocols(); | 
| 678   } | 678   } | 
| 679   buildCounterRestMethodMediaUpload--; | 679   buildCounterRestMethodMediaUpload--; | 
| 680   return o; | 680   return o; | 
| 681 } | 681 } | 
| 682 | 682 | 
| 683 checkRestMethodMediaUpload(api.RestMethodMediaUpload o) { | 683 checkRestMethodMediaUpload(api.RestMethodMediaUpload o) { | 
| 684   buildCounterRestMethodMediaUpload++; | 684   buildCounterRestMethodMediaUpload++; | 
| 685   if (buildCounterRestMethodMediaUpload < 3) { | 685   if (buildCounterRestMethodMediaUpload < 3) { | 
| 686     checkUnnamed246(o.accept); | 686     checkUnnamed248(o.accept); | 
| 687     unittest.expect(o.maxSize, unittest.equals('foo')); | 687     unittest.expect(o.maxSize, unittest.equals('foo')); | 
| 688     checkRestMethodMediaUploadProtocols(o.protocols); | 688     checkRestMethodMediaUploadProtocols(o.protocols); | 
| 689   } | 689   } | 
| 690   buildCounterRestMethodMediaUpload--; | 690   buildCounterRestMethodMediaUpload--; | 
| 691 } | 691 } | 
| 692 | 692 | 
| 693 buildUnnamed247() { | 693 buildUnnamed249() { | 
| 694   var o = new core.List<core.String>(); | 694   var o = new core.List<core.String>(); | 
| 695   o.add("foo"); | 695   o.add("foo"); | 
| 696   o.add("foo"); | 696   o.add("foo"); | 
| 697   return o; | 697   return o; | 
| 698 } | 698 } | 
| 699 | 699 | 
| 700 checkUnnamed247(core.List<core.String> o) { | 700 checkUnnamed249(core.List<core.String> o) { | 
| 701   unittest.expect(o, unittest.hasLength(2)); | 701   unittest.expect(o, unittest.hasLength(2)); | 
| 702   unittest.expect(o[0], unittest.equals('foo')); | 702   unittest.expect(o[0], unittest.equals('foo')); | 
| 703   unittest.expect(o[1], unittest.equals('foo')); | 703   unittest.expect(o[1], unittest.equals('foo')); | 
| 704 } | 704 } | 
| 705 | 705 | 
| 706 buildUnnamed248() { | 706 buildUnnamed250() { | 
| 707   var o = new core.Map<core.String, api.JsonSchema>(); | 707   var o = new core.Map<core.String, api.JsonSchema>(); | 
| 708   o["x"] = buildJsonSchema(); | 708   o["x"] = buildJsonSchema(); | 
| 709   o["y"] = buildJsonSchema(); | 709   o["y"] = buildJsonSchema(); | 
| 710   return o; | 710   return o; | 
| 711 } | 711 } | 
| 712 | 712 | 
| 713 checkUnnamed248(core.Map<core.String, api.JsonSchema> o) { | 713 checkUnnamed250(core.Map<core.String, api.JsonSchema> o) { | 
| 714   unittest.expect(o, unittest.hasLength(2)); | 714   unittest.expect(o, unittest.hasLength(2)); | 
| 715   checkJsonSchema(o["x"]); | 715   checkJsonSchema(o["x"]); | 
| 716   checkJsonSchema(o["y"]); | 716   checkJsonSchema(o["y"]); | 
| 717 } | 717 } | 
| 718 | 718 | 
| 719 core.int buildCounterRestMethodRequest = 0; | 719 core.int buildCounterRestMethodRequest = 0; | 
| 720 buildRestMethodRequest() { | 720 buildRestMethodRequest() { | 
| 721   var o = new api.RestMethodRequest(); | 721   var o = new api.RestMethodRequest(); | 
| 722   buildCounterRestMethodRequest++; | 722   buildCounterRestMethodRequest++; | 
| 723   if (buildCounterRestMethodRequest < 3) { | 723   if (buildCounterRestMethodRequest < 3) { | 
| (...skipping 25 matching lines...) Expand all  Loading... | 
| 749 } | 749 } | 
| 750 | 750 | 
| 751 checkRestMethodResponse(api.RestMethodResponse o) { | 751 checkRestMethodResponse(api.RestMethodResponse o) { | 
| 752   buildCounterRestMethodResponse++; | 752   buildCounterRestMethodResponse++; | 
| 753   if (buildCounterRestMethodResponse < 3) { | 753   if (buildCounterRestMethodResponse < 3) { | 
| 754     unittest.expect(o.P_ref, unittest.equals('foo')); | 754     unittest.expect(o.P_ref, unittest.equals('foo')); | 
| 755   } | 755   } | 
| 756   buildCounterRestMethodResponse--; | 756   buildCounterRestMethodResponse--; | 
| 757 } | 757 } | 
| 758 | 758 | 
| 759 buildUnnamed249() { | 759 buildUnnamed251() { | 
| 760   var o = new core.List<core.String>(); | 760   var o = new core.List<core.String>(); | 
| 761   o.add("foo"); | 761   o.add("foo"); | 
| 762   o.add("foo"); | 762   o.add("foo"); | 
| 763   return o; | 763   return o; | 
| 764 } | 764 } | 
| 765 | 765 | 
| 766 checkUnnamed249(core.List<core.String> o) { | 766 checkUnnamed251(core.List<core.String> o) { | 
| 767   unittest.expect(o, unittest.hasLength(2)); | 767   unittest.expect(o, unittest.hasLength(2)); | 
| 768   unittest.expect(o[0], unittest.equals('foo')); | 768   unittest.expect(o[0], unittest.equals('foo')); | 
| 769   unittest.expect(o[1], unittest.equals('foo')); | 769   unittest.expect(o[1], unittest.equals('foo')); | 
| 770 } | 770 } | 
| 771 | 771 | 
| 772 core.int buildCounterRestMethod = 0; | 772 core.int buildCounterRestMethod = 0; | 
| 773 buildRestMethod() { | 773 buildRestMethod() { | 
| 774   var o = new api.RestMethod(); | 774   var o = new api.RestMethod(); | 
| 775   buildCounterRestMethod++; | 775   buildCounterRestMethod++; | 
| 776   if (buildCounterRestMethod < 3) { | 776   if (buildCounterRestMethod < 3) { | 
| 777     o.description = "foo"; | 777     o.description = "foo"; | 
| 778     o.etagRequired = true; | 778     o.etagRequired = true; | 
| 779     o.httpMethod = "foo"; | 779     o.httpMethod = "foo"; | 
| 780     o.id = "foo"; | 780     o.id = "foo"; | 
| 781     o.mediaUpload = buildRestMethodMediaUpload(); | 781     o.mediaUpload = buildRestMethodMediaUpload(); | 
| 782     o.parameterOrder = buildUnnamed247(); | 782     o.parameterOrder = buildUnnamed249(); | 
| 783     o.parameters = buildUnnamed248(); | 783     o.parameters = buildUnnamed250(); | 
| 784     o.path = "foo"; | 784     o.path = "foo"; | 
| 785     o.request = buildRestMethodRequest(); | 785     o.request = buildRestMethodRequest(); | 
| 786     o.response = buildRestMethodResponse(); | 786     o.response = buildRestMethodResponse(); | 
| 787     o.scopes = buildUnnamed249(); | 787     o.scopes = buildUnnamed251(); | 
| 788     o.supportsMediaDownload = true; | 788     o.supportsMediaDownload = true; | 
| 789     o.supportsMediaUpload = true; | 789     o.supportsMediaUpload = true; | 
| 790     o.supportsSubscription = true; | 790     o.supportsSubscription = true; | 
| 791     o.useMediaDownloadService = true; | 791     o.useMediaDownloadService = true; | 
| 792   } | 792   } | 
| 793   buildCounterRestMethod--; | 793   buildCounterRestMethod--; | 
| 794   return o; | 794   return o; | 
| 795 } | 795 } | 
| 796 | 796 | 
| 797 checkRestMethod(api.RestMethod o) { | 797 checkRestMethod(api.RestMethod o) { | 
| 798   buildCounterRestMethod++; | 798   buildCounterRestMethod++; | 
| 799   if (buildCounterRestMethod < 3) { | 799   if (buildCounterRestMethod < 3) { | 
| 800     unittest.expect(o.description, unittest.equals('foo')); | 800     unittest.expect(o.description, unittest.equals('foo')); | 
| 801     unittest.expect(o.etagRequired, unittest.isTrue); | 801     unittest.expect(o.etagRequired, unittest.isTrue); | 
| 802     unittest.expect(o.httpMethod, unittest.equals('foo')); | 802     unittest.expect(o.httpMethod, unittest.equals('foo')); | 
| 803     unittest.expect(o.id, unittest.equals('foo')); | 803     unittest.expect(o.id, unittest.equals('foo')); | 
| 804     checkRestMethodMediaUpload(o.mediaUpload); | 804     checkRestMethodMediaUpload(o.mediaUpload); | 
| 805     checkUnnamed247(o.parameterOrder); | 805     checkUnnamed249(o.parameterOrder); | 
| 806     checkUnnamed248(o.parameters); | 806     checkUnnamed250(o.parameters); | 
| 807     unittest.expect(o.path, unittest.equals('foo')); | 807     unittest.expect(o.path, unittest.equals('foo')); | 
| 808     checkRestMethodRequest(o.request); | 808     checkRestMethodRequest(o.request); | 
| 809     checkRestMethodResponse(o.response); | 809     checkRestMethodResponse(o.response); | 
| 810     checkUnnamed249(o.scopes); | 810     checkUnnamed251(o.scopes); | 
| 811     unittest.expect(o.supportsMediaDownload, unittest.isTrue); | 811     unittest.expect(o.supportsMediaDownload, unittest.isTrue); | 
| 812     unittest.expect(o.supportsMediaUpload, unittest.isTrue); | 812     unittest.expect(o.supportsMediaUpload, unittest.isTrue); | 
| 813     unittest.expect(o.supportsSubscription, unittest.isTrue); | 813     unittest.expect(o.supportsSubscription, unittest.isTrue); | 
| 814     unittest.expect(o.useMediaDownloadService, unittest.isTrue); | 814     unittest.expect(o.useMediaDownloadService, unittest.isTrue); | 
| 815   } | 815   } | 
| 816   buildCounterRestMethod--; | 816   buildCounterRestMethod--; | 
| 817 } | 817 } | 
| 818 | 818 | 
| 819 buildUnnamed250() { | 819 buildUnnamed252() { | 
| 820   var o = new core.Map<core.String, api.RestMethod>(); | 820   var o = new core.Map<core.String, api.RestMethod>(); | 
| 821   o["x"] = buildRestMethod(); | 821   o["x"] = buildRestMethod(); | 
| 822   o["y"] = buildRestMethod(); | 822   o["y"] = buildRestMethod(); | 
| 823   return o; | 823   return o; | 
| 824 } | 824 } | 
| 825 | 825 | 
| 826 checkUnnamed250(core.Map<core.String, api.RestMethod> o) { | 826 checkUnnamed252(core.Map<core.String, api.RestMethod> o) { | 
| 827   unittest.expect(o, unittest.hasLength(2)); | 827   unittest.expect(o, unittest.hasLength(2)); | 
| 828   checkRestMethod(o["x"]); | 828   checkRestMethod(o["x"]); | 
| 829   checkRestMethod(o["y"]); | 829   checkRestMethod(o["y"]); | 
| 830 } | 830 } | 
| 831 | 831 | 
| 832 buildUnnamed251() { | 832 buildUnnamed253() { | 
| 833   var o = new core.Map<core.String, api.RestResource>(); | 833   var o = new core.Map<core.String, api.RestResource>(); | 
| 834   o["x"] = buildRestResource(); | 834   o["x"] = buildRestResource(); | 
| 835   o["y"] = buildRestResource(); | 835   o["y"] = buildRestResource(); | 
| 836   return o; | 836   return o; | 
| 837 } | 837 } | 
| 838 | 838 | 
| 839 checkUnnamed251(core.Map<core.String, api.RestResource> o) { | 839 checkUnnamed253(core.Map<core.String, api.RestResource> o) { | 
| 840   unittest.expect(o, unittest.hasLength(2)); | 840   unittest.expect(o, unittest.hasLength(2)); | 
| 841   checkRestResource(o["x"]); | 841   checkRestResource(o["x"]); | 
| 842   checkRestResource(o["y"]); | 842   checkRestResource(o["y"]); | 
| 843 } | 843 } | 
| 844 | 844 | 
| 845 core.int buildCounterRestResource = 0; | 845 core.int buildCounterRestResource = 0; | 
| 846 buildRestResource() { | 846 buildRestResource() { | 
| 847   var o = new api.RestResource(); | 847   var o = new api.RestResource(); | 
| 848   buildCounterRestResource++; | 848   buildCounterRestResource++; | 
| 849   if (buildCounterRestResource < 3) { | 849   if (buildCounterRestResource < 3) { | 
| 850     o.methods = buildUnnamed250(); | 850     o.methods = buildUnnamed252(); | 
| 851     o.resources = buildUnnamed251(); | 851     o.resources = buildUnnamed253(); | 
| 852   } | 852   } | 
| 853   buildCounterRestResource--; | 853   buildCounterRestResource--; | 
| 854   return o; | 854   return o; | 
| 855 } | 855 } | 
| 856 | 856 | 
| 857 checkRestResource(api.RestResource o) { | 857 checkRestResource(api.RestResource o) { | 
| 858   buildCounterRestResource++; | 858   buildCounterRestResource++; | 
| 859   if (buildCounterRestResource < 3) { | 859   if (buildCounterRestResource < 3) { | 
| 860     checkUnnamed250(o.methods); | 860     checkUnnamed252(o.methods); | 
| 861     checkUnnamed251(o.resources); | 861     checkUnnamed253(o.resources); | 
| 862   } | 862   } | 
| 863   buildCounterRestResource--; | 863   buildCounterRestResource--; | 
| 864 } | 864 } | 
| 865 | 865 | 
| 866 | 866 | 
| 867 main() { | 867 main() { | 
| 868   unittest.group("obj-schema-DirectoryListItemsIcons", () { | 868   unittest.group("obj-schema-DirectoryListItemsIcons", () { | 
| 869     unittest.test("to-json--from-json", () { | 869     unittest.test("to-json--from-json", () { | 
| 870       var o = buildDirectoryListItemsIcons(); | 870       var o = buildDirectoryListItemsIcons(); | 
| 871       var od = new api.DirectoryListItemsIcons.fromJson(o.toJson()); | 871       var od = new api.DirectoryListItemsIcons.fromJson(o.toJson()); | 
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1154       res.list(name: arg_name, preferred: arg_preferred).then(unittest.expectAsy
      nc(((api.DirectoryList response) { | 1154       res.list(name: arg_name, preferred: arg_preferred).then(unittest.expectAsy
      nc(((api.DirectoryList response) { | 
| 1155         checkDirectoryList(response); | 1155         checkDirectoryList(response); | 
| 1156       }))); | 1156       }))); | 
| 1157     }); | 1157     }); | 
| 1158 | 1158 | 
| 1159   }); | 1159   }); | 
| 1160 | 1160 | 
| 1161 | 1161 | 
| 1162 } | 1162 } | 
| 1163 | 1163 | 
| OLD | NEW | 
|---|