| OLD | NEW |
| 1 library googleapis.serviceuser.v1.test; | 1 library googleapis.serviceuser.v1.test; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 } | 44 } |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 | 47 |
| 48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
| 49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map headers, core.String body) { |
| 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
| 51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
| 52 } | 52 } |
| 53 | 53 |
| 54 buildUnnamed1555() { | 54 buildUnnamed1552() { |
| 55 var o = new core.List<api.Method>(); | 55 var o = new core.List<api.Method>(); |
| 56 o.add(buildMethod()); | 56 o.add(buildMethod()); |
| 57 o.add(buildMethod()); | 57 o.add(buildMethod()); |
| 58 return o; | 58 return o; |
| 59 } | 59 } |
| 60 | 60 |
| 61 checkUnnamed1555(core.List<api.Method> o) { | 61 checkUnnamed1552(core.List<api.Method> o) { |
| 62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
| 63 checkMethod(o[0]); | 63 checkMethod(o[0]); |
| 64 checkMethod(o[1]); | 64 checkMethod(o[1]); |
| 65 } | 65 } |
| 66 | 66 |
| 67 buildUnnamed1556() { | 67 buildUnnamed1553() { |
| 68 var o = new core.List<api.Mixin>(); | 68 var o = new core.List<api.Mixin>(); |
| 69 o.add(buildMixin()); | 69 o.add(buildMixin()); |
| 70 o.add(buildMixin()); | 70 o.add(buildMixin()); |
| 71 return o; | 71 return o; |
| 72 } | 72 } |
| 73 | 73 |
| 74 checkUnnamed1556(core.List<api.Mixin> o) { | 74 checkUnnamed1553(core.List<api.Mixin> o) { |
| 75 unittest.expect(o, unittest.hasLength(2)); | 75 unittest.expect(o, unittest.hasLength(2)); |
| 76 checkMixin(o[0]); | 76 checkMixin(o[0]); |
| 77 checkMixin(o[1]); | 77 checkMixin(o[1]); |
| 78 } | 78 } |
| 79 | 79 |
| 80 buildUnnamed1557() { | 80 buildUnnamed1554() { |
| 81 var o = new core.List<api.Option>(); | 81 var o = new core.List<api.Option>(); |
| 82 o.add(buildOption()); | 82 o.add(buildOption()); |
| 83 o.add(buildOption()); | 83 o.add(buildOption()); |
| 84 return o; | 84 return o; |
| 85 } | 85 } |
| 86 | 86 |
| 87 checkUnnamed1557(core.List<api.Option> o) { | 87 checkUnnamed1554(core.List<api.Option> o) { |
| 88 unittest.expect(o, unittest.hasLength(2)); | 88 unittest.expect(o, unittest.hasLength(2)); |
| 89 checkOption(o[0]); | 89 checkOption(o[0]); |
| 90 checkOption(o[1]); | 90 checkOption(o[1]); |
| 91 } | 91 } |
| 92 | 92 |
| 93 core.int buildCounterApi = 0; | 93 core.int buildCounterApi = 0; |
| 94 buildApi() { | 94 buildApi() { |
| 95 var o = new api.Api(); | 95 var o = new api.Api(); |
| 96 buildCounterApi++; | 96 buildCounterApi++; |
| 97 if (buildCounterApi < 3) { | 97 if (buildCounterApi < 3) { |
| 98 o.methods = buildUnnamed1555(); | 98 o.methods = buildUnnamed1552(); |
| 99 o.mixins = buildUnnamed1556(); | 99 o.mixins = buildUnnamed1553(); |
| 100 o.name = "foo"; | 100 o.name = "foo"; |
| 101 o.options = buildUnnamed1557(); | 101 o.options = buildUnnamed1554(); |
| 102 o.sourceContext = buildSourceContext(); | 102 o.sourceContext = buildSourceContext(); |
| 103 o.syntax = "foo"; | 103 o.syntax = "foo"; |
| 104 o.version = "foo"; | 104 o.version = "foo"; |
| 105 } | 105 } |
| 106 buildCounterApi--; | 106 buildCounterApi--; |
| 107 return o; | 107 return o; |
| 108 } | 108 } |
| 109 | 109 |
| 110 checkApi(api.Api o) { | 110 checkApi(api.Api o) { |
| 111 buildCounterApi++; | 111 buildCounterApi++; |
| 112 if (buildCounterApi < 3) { | 112 if (buildCounterApi < 3) { |
| 113 checkUnnamed1555(o.methods); | 113 checkUnnamed1552(o.methods); |
| 114 checkUnnamed1556(o.mixins); | 114 checkUnnamed1553(o.mixins); |
| 115 unittest.expect(o.name, unittest.equals('foo')); | 115 unittest.expect(o.name, unittest.equals('foo')); |
| 116 checkUnnamed1557(o.options); | 116 checkUnnamed1554(o.options); |
| 117 checkSourceContext(o.sourceContext); | 117 checkSourceContext(o.sourceContext); |
| 118 unittest.expect(o.syntax, unittest.equals('foo')); | 118 unittest.expect(o.syntax, unittest.equals('foo')); |
| 119 unittest.expect(o.version, unittest.equals('foo')); | 119 unittest.expect(o.version, unittest.equals('foo')); |
| 120 } | 120 } |
| 121 buildCounterApi--; | 121 buildCounterApi--; |
| 122 } | 122 } |
| 123 | 123 |
| 124 core.int buildCounterAuthProvider = 0; | 124 core.int buildCounterAuthProvider = 0; |
| 125 buildAuthProvider() { | 125 buildAuthProvider() { |
| 126 var o = new api.AuthProvider(); | 126 var o = new api.AuthProvider(); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 160 |
| 161 checkAuthRequirement(api.AuthRequirement o) { | 161 checkAuthRequirement(api.AuthRequirement o) { |
| 162 buildCounterAuthRequirement++; | 162 buildCounterAuthRequirement++; |
| 163 if (buildCounterAuthRequirement < 3) { | 163 if (buildCounterAuthRequirement < 3) { |
| 164 unittest.expect(o.audiences, unittest.equals('foo')); | 164 unittest.expect(o.audiences, unittest.equals('foo')); |
| 165 unittest.expect(o.providerId, unittest.equals('foo')); | 165 unittest.expect(o.providerId, unittest.equals('foo')); |
| 166 } | 166 } |
| 167 buildCounterAuthRequirement--; | 167 buildCounterAuthRequirement--; |
| 168 } | 168 } |
| 169 | 169 |
| 170 buildUnnamed1558() { | 170 buildUnnamed1555() { |
| 171 var o = new core.List<api.AuthProvider>(); | 171 var o = new core.List<api.AuthProvider>(); |
| 172 o.add(buildAuthProvider()); | 172 o.add(buildAuthProvider()); |
| 173 o.add(buildAuthProvider()); | 173 o.add(buildAuthProvider()); |
| 174 return o; | 174 return o; |
| 175 } | 175 } |
| 176 | 176 |
| 177 checkUnnamed1558(core.List<api.AuthProvider> o) { | 177 checkUnnamed1555(core.List<api.AuthProvider> o) { |
| 178 unittest.expect(o, unittest.hasLength(2)); | 178 unittest.expect(o, unittest.hasLength(2)); |
| 179 checkAuthProvider(o[0]); | 179 checkAuthProvider(o[0]); |
| 180 checkAuthProvider(o[1]); | 180 checkAuthProvider(o[1]); |
| 181 } | 181 } |
| 182 | 182 |
| 183 buildUnnamed1559() { | 183 buildUnnamed1556() { |
| 184 var o = new core.List<api.AuthenticationRule>(); | 184 var o = new core.List<api.AuthenticationRule>(); |
| 185 o.add(buildAuthenticationRule()); | 185 o.add(buildAuthenticationRule()); |
| 186 o.add(buildAuthenticationRule()); | 186 o.add(buildAuthenticationRule()); |
| 187 return o; | 187 return o; |
| 188 } | 188 } |
| 189 | 189 |
| 190 checkUnnamed1559(core.List<api.AuthenticationRule> o) { | 190 checkUnnamed1556(core.List<api.AuthenticationRule> o) { |
| 191 unittest.expect(o, unittest.hasLength(2)); | 191 unittest.expect(o, unittest.hasLength(2)); |
| 192 checkAuthenticationRule(o[0]); | 192 checkAuthenticationRule(o[0]); |
| 193 checkAuthenticationRule(o[1]); | 193 checkAuthenticationRule(o[1]); |
| 194 } | 194 } |
| 195 | 195 |
| 196 core.int buildCounterAuthentication = 0; | 196 core.int buildCounterAuthentication = 0; |
| 197 buildAuthentication() { | 197 buildAuthentication() { |
| 198 var o = new api.Authentication(); | 198 var o = new api.Authentication(); |
| 199 buildCounterAuthentication++; | 199 buildCounterAuthentication++; |
| 200 if (buildCounterAuthentication < 3) { | 200 if (buildCounterAuthentication < 3) { |
| 201 o.providers = buildUnnamed1558(); | 201 o.providers = buildUnnamed1555(); |
| 202 o.rules = buildUnnamed1559(); | 202 o.rules = buildUnnamed1556(); |
| 203 } | 203 } |
| 204 buildCounterAuthentication--; | 204 buildCounterAuthentication--; |
| 205 return o; | 205 return o; |
| 206 } | 206 } |
| 207 | 207 |
| 208 checkAuthentication(api.Authentication o) { | 208 checkAuthentication(api.Authentication o) { |
| 209 buildCounterAuthentication++; | 209 buildCounterAuthentication++; |
| 210 if (buildCounterAuthentication < 3) { | 210 if (buildCounterAuthentication < 3) { |
| 211 checkUnnamed1558(o.providers); | 211 checkUnnamed1555(o.providers); |
| 212 checkUnnamed1559(o.rules); | 212 checkUnnamed1556(o.rules); |
| 213 } | 213 } |
| 214 buildCounterAuthentication--; | 214 buildCounterAuthentication--; |
| 215 } | 215 } |
| 216 | 216 |
| 217 buildUnnamed1560() { | 217 buildUnnamed1557() { |
| 218 var o = new core.List<api.AuthRequirement>(); | 218 var o = new core.List<api.AuthRequirement>(); |
| 219 o.add(buildAuthRequirement()); | 219 o.add(buildAuthRequirement()); |
| 220 o.add(buildAuthRequirement()); | 220 o.add(buildAuthRequirement()); |
| 221 return o; | 221 return o; |
| 222 } | 222 } |
| 223 | 223 |
| 224 checkUnnamed1560(core.List<api.AuthRequirement> o) { | 224 checkUnnamed1557(core.List<api.AuthRequirement> o) { |
| 225 unittest.expect(o, unittest.hasLength(2)); | 225 unittest.expect(o, unittest.hasLength(2)); |
| 226 checkAuthRequirement(o[0]); | 226 checkAuthRequirement(o[0]); |
| 227 checkAuthRequirement(o[1]); | 227 checkAuthRequirement(o[1]); |
| 228 } | 228 } |
| 229 | 229 |
| 230 core.int buildCounterAuthenticationRule = 0; | 230 core.int buildCounterAuthenticationRule = 0; |
| 231 buildAuthenticationRule() { | 231 buildAuthenticationRule() { |
| 232 var o = new api.AuthenticationRule(); | 232 var o = new api.AuthenticationRule(); |
| 233 buildCounterAuthenticationRule++; | 233 buildCounterAuthenticationRule++; |
| 234 if (buildCounterAuthenticationRule < 3) { | 234 if (buildCounterAuthenticationRule < 3) { |
| 235 o.allowWithoutCredential = true; | 235 o.allowWithoutCredential = true; |
| 236 o.oauth = buildOAuthRequirements(); | 236 o.oauth = buildOAuthRequirements(); |
| 237 o.requirements = buildUnnamed1560(); | 237 o.requirements = buildUnnamed1557(); |
| 238 o.selector = "foo"; | 238 o.selector = "foo"; |
| 239 } | 239 } |
| 240 buildCounterAuthenticationRule--; | 240 buildCounterAuthenticationRule--; |
| 241 return o; | 241 return o; |
| 242 } | 242 } |
| 243 | 243 |
| 244 checkAuthenticationRule(api.AuthenticationRule o) { | 244 checkAuthenticationRule(api.AuthenticationRule o) { |
| 245 buildCounterAuthenticationRule++; | 245 buildCounterAuthenticationRule++; |
| 246 if (buildCounterAuthenticationRule < 3) { | 246 if (buildCounterAuthenticationRule < 3) { |
| 247 unittest.expect(o.allowWithoutCredential, unittest.isTrue); | 247 unittest.expect(o.allowWithoutCredential, unittest.isTrue); |
| 248 checkOAuthRequirements(o.oauth); | 248 checkOAuthRequirements(o.oauth); |
| 249 checkUnnamed1560(o.requirements); | 249 checkUnnamed1557(o.requirements); |
| 250 unittest.expect(o.selector, unittest.equals('foo')); | 250 unittest.expect(o.selector, unittest.equals('foo')); |
| 251 } | 251 } |
| 252 buildCounterAuthenticationRule--; | 252 buildCounterAuthenticationRule--; |
| 253 } | 253 } |
| 254 | 254 |
| 255 core.int buildCounterAuthorizationConfig = 0; | 255 core.int buildCounterAuthorizationConfig = 0; |
| 256 buildAuthorizationConfig() { | 256 buildAuthorizationConfig() { |
| 257 var o = new api.AuthorizationConfig(); | 257 var o = new api.AuthorizationConfig(); |
| 258 buildCounterAuthorizationConfig++; | 258 buildCounterAuthorizationConfig++; |
| 259 if (buildCounterAuthorizationConfig < 3) { | 259 if (buildCounterAuthorizationConfig < 3) { |
| 260 o.provider = "foo"; | 260 o.provider = "foo"; |
| 261 } | 261 } |
| 262 buildCounterAuthorizationConfig--; | 262 buildCounterAuthorizationConfig--; |
| 263 return o; | 263 return o; |
| 264 } | 264 } |
| 265 | 265 |
| 266 checkAuthorizationConfig(api.AuthorizationConfig o) { | 266 checkAuthorizationConfig(api.AuthorizationConfig o) { |
| 267 buildCounterAuthorizationConfig++; | 267 buildCounterAuthorizationConfig++; |
| 268 if (buildCounterAuthorizationConfig < 3) { | 268 if (buildCounterAuthorizationConfig < 3) { |
| 269 unittest.expect(o.provider, unittest.equals('foo')); | 269 unittest.expect(o.provider, unittest.equals('foo')); |
| 270 } | 270 } |
| 271 buildCounterAuthorizationConfig--; | 271 buildCounterAuthorizationConfig--; |
| 272 } | 272 } |
| 273 | 273 |
| 274 buildUnnamed1561() { | 274 buildUnnamed1558() { |
| 275 var o = new core.List<api.BackendRule>(); | 275 var o = new core.List<api.BackendRule>(); |
| 276 o.add(buildBackendRule()); | 276 o.add(buildBackendRule()); |
| 277 o.add(buildBackendRule()); | 277 o.add(buildBackendRule()); |
| 278 return o; | 278 return o; |
| 279 } | 279 } |
| 280 | 280 |
| 281 checkUnnamed1561(core.List<api.BackendRule> o) { | 281 checkUnnamed1558(core.List<api.BackendRule> o) { |
| 282 unittest.expect(o, unittest.hasLength(2)); | 282 unittest.expect(o, unittest.hasLength(2)); |
| 283 checkBackendRule(o[0]); | 283 checkBackendRule(o[0]); |
| 284 checkBackendRule(o[1]); | 284 checkBackendRule(o[1]); |
| 285 } | 285 } |
| 286 | 286 |
| 287 core.int buildCounterBackend = 0; | 287 core.int buildCounterBackend = 0; |
| 288 buildBackend() { | 288 buildBackend() { |
| 289 var o = new api.Backend(); | 289 var o = new api.Backend(); |
| 290 buildCounterBackend++; | 290 buildCounterBackend++; |
| 291 if (buildCounterBackend < 3) { | 291 if (buildCounterBackend < 3) { |
| 292 o.rules = buildUnnamed1561(); | 292 o.rules = buildUnnamed1558(); |
| 293 } | 293 } |
| 294 buildCounterBackend--; | 294 buildCounterBackend--; |
| 295 return o; | 295 return o; |
| 296 } | 296 } |
| 297 | 297 |
| 298 checkBackend(api.Backend o) { | 298 checkBackend(api.Backend o) { |
| 299 buildCounterBackend++; | 299 buildCounterBackend++; |
| 300 if (buildCounterBackend < 3) { | 300 if (buildCounterBackend < 3) { |
| 301 checkUnnamed1561(o.rules); | 301 checkUnnamed1558(o.rules); |
| 302 } | 302 } |
| 303 buildCounterBackend--; | 303 buildCounterBackend--; |
| 304 } | 304 } |
| 305 | 305 |
| 306 core.int buildCounterBackendRule = 0; | 306 core.int buildCounterBackendRule = 0; |
| 307 buildBackendRule() { | 307 buildBackendRule() { |
| 308 var o = new api.BackendRule(); | 308 var o = new api.BackendRule(); |
| 309 buildCounterBackendRule++; | 309 buildCounterBackendRule++; |
| 310 if (buildCounterBackendRule < 3) { | 310 if (buildCounterBackendRule < 3) { |
| 311 o.address = "foo"; | 311 o.address = "foo"; |
| 312 o.deadline = 42.0; | 312 o.deadline = 42.0; |
| 313 o.selector = "foo"; | 313 o.selector = "foo"; |
| 314 } | 314 } |
| 315 buildCounterBackendRule--; | 315 buildCounterBackendRule--; |
| 316 return o; | 316 return o; |
| 317 } | 317 } |
| 318 | 318 |
| 319 checkBackendRule(api.BackendRule o) { | 319 checkBackendRule(api.BackendRule o) { |
| 320 buildCounterBackendRule++; | 320 buildCounterBackendRule++; |
| 321 if (buildCounterBackendRule < 3) { | 321 if (buildCounterBackendRule < 3) { |
| 322 unittest.expect(o.address, unittest.equals('foo')); | 322 unittest.expect(o.address, unittest.equals('foo')); |
| 323 unittest.expect(o.deadline, unittest.equals(42.0)); | 323 unittest.expect(o.deadline, unittest.equals(42.0)); |
| 324 unittest.expect(o.selector, unittest.equals('foo')); | 324 unittest.expect(o.selector, unittest.equals('foo')); |
| 325 } | 325 } |
| 326 buildCounterBackendRule--; | 326 buildCounterBackendRule--; |
| 327 } | 327 } |
| 328 | 328 |
| 329 buildUnnamed1562() { | 329 buildUnnamed1559() { |
| 330 var o = new core.List<api.ContextRule>(); | 330 var o = new core.List<api.ContextRule>(); |
| 331 o.add(buildContextRule()); | 331 o.add(buildContextRule()); |
| 332 o.add(buildContextRule()); | 332 o.add(buildContextRule()); |
| 333 return o; | 333 return o; |
| 334 } | 334 } |
| 335 | 335 |
| 336 checkUnnamed1562(core.List<api.ContextRule> o) { | 336 checkUnnamed1559(core.List<api.ContextRule> o) { |
| 337 unittest.expect(o, unittest.hasLength(2)); | 337 unittest.expect(o, unittest.hasLength(2)); |
| 338 checkContextRule(o[0]); | 338 checkContextRule(o[0]); |
| 339 checkContextRule(o[1]); | 339 checkContextRule(o[1]); |
| 340 } | 340 } |
| 341 | 341 |
| 342 core.int buildCounterContext = 0; | 342 core.int buildCounterContext = 0; |
| 343 buildContext() { | 343 buildContext() { |
| 344 var o = new api.Context(); | 344 var o = new api.Context(); |
| 345 buildCounterContext++; | 345 buildCounterContext++; |
| 346 if (buildCounterContext < 3) { | 346 if (buildCounterContext < 3) { |
| 347 o.rules = buildUnnamed1562(); | 347 o.rules = buildUnnamed1559(); |
| 348 } | 348 } |
| 349 buildCounterContext--; | 349 buildCounterContext--; |
| 350 return o; | 350 return o; |
| 351 } | 351 } |
| 352 | 352 |
| 353 checkContext(api.Context o) { | 353 checkContext(api.Context o) { |
| 354 buildCounterContext++; | 354 buildCounterContext++; |
| 355 if (buildCounterContext < 3) { | 355 if (buildCounterContext < 3) { |
| 356 checkUnnamed1562(o.rules); | 356 checkUnnamed1559(o.rules); |
| 357 } | 357 } |
| 358 buildCounterContext--; | 358 buildCounterContext--; |
| 359 } | 359 } |
| 360 | 360 |
| 361 buildUnnamed1563() { | 361 buildUnnamed1560() { |
| 362 var o = new core.List<core.String>(); | 362 var o = new core.List<core.String>(); |
| 363 o.add("foo"); | 363 o.add("foo"); |
| 364 o.add("foo"); | 364 o.add("foo"); |
| 365 return o; | 365 return o; |
| 366 } | 366 } |
| 367 | 367 |
| 368 checkUnnamed1563(core.List<core.String> o) { | 368 checkUnnamed1560(core.List<core.String> o) { |
| 369 unittest.expect(o, unittest.hasLength(2)); | 369 unittest.expect(o, unittest.hasLength(2)); |
| 370 unittest.expect(o[0], unittest.equals('foo')); | 370 unittest.expect(o[0], unittest.equals('foo')); |
| 371 unittest.expect(o[1], unittest.equals('foo')); | 371 unittest.expect(o[1], unittest.equals('foo')); |
| 372 } | 372 } |
| 373 | 373 |
| 374 buildUnnamed1564() { | 374 buildUnnamed1561() { |
| 375 var o = new core.List<core.String>(); | 375 var o = new core.List<core.String>(); |
| 376 o.add("foo"); | 376 o.add("foo"); |
| 377 o.add("foo"); | 377 o.add("foo"); |
| 378 return o; | 378 return o; |
| 379 } | 379 } |
| 380 | 380 |
| 381 checkUnnamed1564(core.List<core.String> o) { | 381 checkUnnamed1561(core.List<core.String> o) { |
| 382 unittest.expect(o, unittest.hasLength(2)); | 382 unittest.expect(o, unittest.hasLength(2)); |
| 383 unittest.expect(o[0], unittest.equals('foo')); | 383 unittest.expect(o[0], unittest.equals('foo')); |
| 384 unittest.expect(o[1], unittest.equals('foo')); | 384 unittest.expect(o[1], unittest.equals('foo')); |
| 385 } | 385 } |
| 386 | 386 |
| 387 core.int buildCounterContextRule = 0; | 387 core.int buildCounterContextRule = 0; |
| 388 buildContextRule() { | 388 buildContextRule() { |
| 389 var o = new api.ContextRule(); | 389 var o = new api.ContextRule(); |
| 390 buildCounterContextRule++; | 390 buildCounterContextRule++; |
| 391 if (buildCounterContextRule < 3) { | 391 if (buildCounterContextRule < 3) { |
| 392 o.provided = buildUnnamed1563(); | 392 o.provided = buildUnnamed1560(); |
| 393 o.requested = buildUnnamed1564(); | 393 o.requested = buildUnnamed1561(); |
| 394 o.selector = "foo"; | 394 o.selector = "foo"; |
| 395 } | 395 } |
| 396 buildCounterContextRule--; | 396 buildCounterContextRule--; |
| 397 return o; | 397 return o; |
| 398 } | 398 } |
| 399 | 399 |
| 400 checkContextRule(api.ContextRule o) { | 400 checkContextRule(api.ContextRule o) { |
| 401 buildCounterContextRule++; | 401 buildCounterContextRule++; |
| 402 if (buildCounterContextRule < 3) { | 402 if (buildCounterContextRule < 3) { |
| 403 checkUnnamed1563(o.provided); | 403 checkUnnamed1560(o.provided); |
| 404 checkUnnamed1564(o.requested); | 404 checkUnnamed1561(o.requested); |
| 405 unittest.expect(o.selector, unittest.equals('foo')); | 405 unittest.expect(o.selector, unittest.equals('foo')); |
| 406 } | 406 } |
| 407 buildCounterContextRule--; | 407 buildCounterContextRule--; |
| 408 } | 408 } |
| 409 | 409 |
| 410 core.int buildCounterControl = 0; | 410 core.int buildCounterControl = 0; |
| 411 buildControl() { | 411 buildControl() { |
| 412 var o = new api.Control(); | 412 var o = new api.Control(); |
| 413 buildCounterControl++; | 413 buildCounterControl++; |
| 414 if (buildCounterControl < 3) { | 414 if (buildCounterControl < 3) { |
| 415 o.environment = "foo"; | 415 o.environment = "foo"; |
| 416 } | 416 } |
| 417 buildCounterControl--; | 417 buildCounterControl--; |
| 418 return o; | 418 return o; |
| 419 } | 419 } |
| 420 | 420 |
| 421 checkControl(api.Control o) { | 421 checkControl(api.Control o) { |
| 422 buildCounterControl++; | 422 buildCounterControl++; |
| 423 if (buildCounterControl < 3) { | 423 if (buildCounterControl < 3) { |
| 424 unittest.expect(o.environment, unittest.equals('foo')); | 424 unittest.expect(o.environment, unittest.equals('foo')); |
| 425 } | 425 } |
| 426 buildCounterControl--; | 426 buildCounterControl--; |
| 427 } | 427 } |
| 428 | 428 |
| 429 buildUnnamed1565() { | 429 buildUnnamed1562() { |
| 430 var o = new core.List<api.CustomErrorRule>(); | 430 var o = new core.List<api.CustomErrorRule>(); |
| 431 o.add(buildCustomErrorRule()); | 431 o.add(buildCustomErrorRule()); |
| 432 o.add(buildCustomErrorRule()); | 432 o.add(buildCustomErrorRule()); |
| 433 return o; | 433 return o; |
| 434 } | 434 } |
| 435 | 435 |
| 436 checkUnnamed1565(core.List<api.CustomErrorRule> o) { | 436 checkUnnamed1562(core.List<api.CustomErrorRule> o) { |
| 437 unittest.expect(o, unittest.hasLength(2)); | 437 unittest.expect(o, unittest.hasLength(2)); |
| 438 checkCustomErrorRule(o[0]); | 438 checkCustomErrorRule(o[0]); |
| 439 checkCustomErrorRule(o[1]); | 439 checkCustomErrorRule(o[1]); |
| 440 } | 440 } |
| 441 | 441 |
| 442 buildUnnamed1566() { | 442 buildUnnamed1563() { |
| 443 var o = new core.List<core.String>(); | 443 var o = new core.List<core.String>(); |
| 444 o.add("foo"); | 444 o.add("foo"); |
| 445 o.add("foo"); | 445 o.add("foo"); |
| 446 return o; | 446 return o; |
| 447 } | 447 } |
| 448 | 448 |
| 449 checkUnnamed1566(core.List<core.String> o) { | 449 checkUnnamed1563(core.List<core.String> o) { |
| 450 unittest.expect(o, unittest.hasLength(2)); | 450 unittest.expect(o, unittest.hasLength(2)); |
| 451 unittest.expect(o[0], unittest.equals('foo')); | 451 unittest.expect(o[0], unittest.equals('foo')); |
| 452 unittest.expect(o[1], unittest.equals('foo')); | 452 unittest.expect(o[1], unittest.equals('foo')); |
| 453 } | 453 } |
| 454 | 454 |
| 455 core.int buildCounterCustomError = 0; | 455 core.int buildCounterCustomError = 0; |
| 456 buildCustomError() { | 456 buildCustomError() { |
| 457 var o = new api.CustomError(); | 457 var o = new api.CustomError(); |
| 458 buildCounterCustomError++; | 458 buildCounterCustomError++; |
| 459 if (buildCounterCustomError < 3) { | 459 if (buildCounterCustomError < 3) { |
| 460 o.rules = buildUnnamed1565(); | 460 o.rules = buildUnnamed1562(); |
| 461 o.types = buildUnnamed1566(); | 461 o.types = buildUnnamed1563(); |
| 462 } | 462 } |
| 463 buildCounterCustomError--; | 463 buildCounterCustomError--; |
| 464 return o; | 464 return o; |
| 465 } | 465 } |
| 466 | 466 |
| 467 checkCustomError(api.CustomError o) { | 467 checkCustomError(api.CustomError o) { |
| 468 buildCounterCustomError++; | 468 buildCounterCustomError++; |
| 469 if (buildCounterCustomError < 3) { | 469 if (buildCounterCustomError < 3) { |
| 470 checkUnnamed1565(o.rules); | 470 checkUnnamed1562(o.rules); |
| 471 checkUnnamed1566(o.types); | 471 checkUnnamed1563(o.types); |
| 472 } | 472 } |
| 473 buildCounterCustomError--; | 473 buildCounterCustomError--; |
| 474 } | 474 } |
| 475 | 475 |
| 476 core.int buildCounterCustomErrorRule = 0; | 476 core.int buildCounterCustomErrorRule = 0; |
| 477 buildCustomErrorRule() { | 477 buildCustomErrorRule() { |
| 478 var o = new api.CustomErrorRule(); | 478 var o = new api.CustomErrorRule(); |
| 479 buildCounterCustomErrorRule++; | 479 buildCounterCustomErrorRule++; |
| 480 if (buildCounterCustomErrorRule < 3) { | 480 if (buildCounterCustomErrorRule < 3) { |
| 481 o.isErrorType = true; | 481 o.isErrorType = true; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 return o; | 525 return o; |
| 526 } | 526 } |
| 527 | 527 |
| 528 checkDisableServiceRequest(api.DisableServiceRequest o) { | 528 checkDisableServiceRequest(api.DisableServiceRequest o) { |
| 529 buildCounterDisableServiceRequest++; | 529 buildCounterDisableServiceRequest++; |
| 530 if (buildCounterDisableServiceRequest < 3) { | 530 if (buildCounterDisableServiceRequest < 3) { |
| 531 } | 531 } |
| 532 buildCounterDisableServiceRequest--; | 532 buildCounterDisableServiceRequest--; |
| 533 } | 533 } |
| 534 | 534 |
| 535 buildUnnamed1567() { | 535 buildUnnamed1564() { |
| 536 var o = new core.List<api.Page>(); | 536 var o = new core.List<api.Page>(); |
| 537 o.add(buildPage()); | 537 o.add(buildPage()); |
| 538 o.add(buildPage()); | 538 o.add(buildPage()); |
| 539 return o; | 539 return o; |
| 540 } | 540 } |
| 541 | 541 |
| 542 checkUnnamed1567(core.List<api.Page> o) { | 542 checkUnnamed1564(core.List<api.Page> o) { |
| 543 unittest.expect(o, unittest.hasLength(2)); | 543 unittest.expect(o, unittest.hasLength(2)); |
| 544 checkPage(o[0]); | 544 checkPage(o[0]); |
| 545 checkPage(o[1]); | 545 checkPage(o[1]); |
| 546 } | 546 } |
| 547 | 547 |
| 548 buildUnnamed1568() { | 548 buildUnnamed1565() { |
| 549 var o = new core.List<api.DocumentationRule>(); | 549 var o = new core.List<api.DocumentationRule>(); |
| 550 o.add(buildDocumentationRule()); | 550 o.add(buildDocumentationRule()); |
| 551 o.add(buildDocumentationRule()); | 551 o.add(buildDocumentationRule()); |
| 552 return o; | 552 return o; |
| 553 } | 553 } |
| 554 | 554 |
| 555 checkUnnamed1568(core.List<api.DocumentationRule> o) { | 555 checkUnnamed1565(core.List<api.DocumentationRule> o) { |
| 556 unittest.expect(o, unittest.hasLength(2)); | 556 unittest.expect(o, unittest.hasLength(2)); |
| 557 checkDocumentationRule(o[0]); | 557 checkDocumentationRule(o[0]); |
| 558 checkDocumentationRule(o[1]); | 558 checkDocumentationRule(o[1]); |
| 559 } | 559 } |
| 560 | 560 |
| 561 core.int buildCounterDocumentation = 0; | 561 core.int buildCounterDocumentation = 0; |
| 562 buildDocumentation() { | 562 buildDocumentation() { |
| 563 var o = new api.Documentation(); | 563 var o = new api.Documentation(); |
| 564 buildCounterDocumentation++; | 564 buildCounterDocumentation++; |
| 565 if (buildCounterDocumentation < 3) { | 565 if (buildCounterDocumentation < 3) { |
| 566 o.documentationRootUrl = "foo"; | 566 o.documentationRootUrl = "foo"; |
| 567 o.overview = "foo"; | 567 o.overview = "foo"; |
| 568 o.pages = buildUnnamed1567(); | 568 o.pages = buildUnnamed1564(); |
| 569 o.rules = buildUnnamed1568(); | 569 o.rules = buildUnnamed1565(); |
| 570 o.summary = "foo"; | 570 o.summary = "foo"; |
| 571 } | 571 } |
| 572 buildCounterDocumentation--; | 572 buildCounterDocumentation--; |
| 573 return o; | 573 return o; |
| 574 } | 574 } |
| 575 | 575 |
| 576 checkDocumentation(api.Documentation o) { | 576 checkDocumentation(api.Documentation o) { |
| 577 buildCounterDocumentation++; | 577 buildCounterDocumentation++; |
| 578 if (buildCounterDocumentation < 3) { | 578 if (buildCounterDocumentation < 3) { |
| 579 unittest.expect(o.documentationRootUrl, unittest.equals('foo')); | 579 unittest.expect(o.documentationRootUrl, unittest.equals('foo')); |
| 580 unittest.expect(o.overview, unittest.equals('foo')); | 580 unittest.expect(o.overview, unittest.equals('foo')); |
| 581 checkUnnamed1567(o.pages); | 581 checkUnnamed1564(o.pages); |
| 582 checkUnnamed1568(o.rules); | 582 checkUnnamed1565(o.rules); |
| 583 unittest.expect(o.summary, unittest.equals('foo')); | 583 unittest.expect(o.summary, unittest.equals('foo')); |
| 584 } | 584 } |
| 585 buildCounterDocumentation--; | 585 buildCounterDocumentation--; |
| 586 } | 586 } |
| 587 | 587 |
| 588 core.int buildCounterDocumentationRule = 0; | 588 core.int buildCounterDocumentationRule = 0; |
| 589 buildDocumentationRule() { | 589 buildDocumentationRule() { |
| 590 var o = new api.DocumentationRule(); | 590 var o = new api.DocumentationRule(); |
| 591 buildCounterDocumentationRule++; | 591 buildCounterDocumentationRule++; |
| 592 if (buildCounterDocumentationRule < 3) { | 592 if (buildCounterDocumentationRule < 3) { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 618 return o; | 618 return o; |
| 619 } | 619 } |
| 620 | 620 |
| 621 checkEnableServiceRequest(api.EnableServiceRequest o) { | 621 checkEnableServiceRequest(api.EnableServiceRequest o) { |
| 622 buildCounterEnableServiceRequest++; | 622 buildCounterEnableServiceRequest++; |
| 623 if (buildCounterEnableServiceRequest < 3) { | 623 if (buildCounterEnableServiceRequest < 3) { |
| 624 } | 624 } |
| 625 buildCounterEnableServiceRequest--; | 625 buildCounterEnableServiceRequest--; |
| 626 } | 626 } |
| 627 | 627 |
| 628 buildUnnamed1569() { | 628 buildUnnamed1566() { |
| 629 var o = new core.List<core.String>(); | 629 var o = new core.List<core.String>(); |
| 630 o.add("foo"); | 630 o.add("foo"); |
| 631 o.add("foo"); | 631 o.add("foo"); |
| 632 return o; | 632 return o; |
| 633 } | 633 } |
| 634 | 634 |
| 635 checkUnnamed1569(core.List<core.String> o) { | 635 checkUnnamed1566(core.List<core.String> o) { |
| 636 unittest.expect(o, unittest.hasLength(2)); | 636 unittest.expect(o, unittest.hasLength(2)); |
| 637 unittest.expect(o[0], unittest.equals('foo')); | 637 unittest.expect(o[0], unittest.equals('foo')); |
| 638 unittest.expect(o[1], unittest.equals('foo')); | 638 unittest.expect(o[1], unittest.equals('foo')); |
| 639 } | 639 } |
| 640 | 640 |
| 641 buildUnnamed1570() { | 641 buildUnnamed1567() { |
| 642 var o = new core.List<core.String>(); | 642 var o = new core.List<core.String>(); |
| 643 o.add("foo"); | 643 o.add("foo"); |
| 644 o.add("foo"); | 644 o.add("foo"); |
| 645 return o; | 645 return o; |
| 646 } | 646 } |
| 647 | 647 |
| 648 checkUnnamed1570(core.List<core.String> o) { | 648 checkUnnamed1567(core.List<core.String> o) { |
| 649 unittest.expect(o, unittest.hasLength(2)); | 649 unittest.expect(o, unittest.hasLength(2)); |
| 650 unittest.expect(o[0], unittest.equals('foo')); | 650 unittest.expect(o[0], unittest.equals('foo')); |
| 651 unittest.expect(o[1], unittest.equals('foo')); | 651 unittest.expect(o[1], unittest.equals('foo')); |
| 652 } | 652 } |
| 653 | 653 |
| 654 buildUnnamed1571() { | 654 buildUnnamed1568() { |
| 655 var o = new core.List<core.String>(); | 655 var o = new core.List<core.String>(); |
| 656 o.add("foo"); | 656 o.add("foo"); |
| 657 o.add("foo"); | 657 o.add("foo"); |
| 658 return o; | 658 return o; |
| 659 } | 659 } |
| 660 | 660 |
| 661 checkUnnamed1571(core.List<core.String> o) { | 661 checkUnnamed1568(core.List<core.String> o) { |
| 662 unittest.expect(o, unittest.hasLength(2)); | 662 unittest.expect(o, unittest.hasLength(2)); |
| 663 unittest.expect(o[0], unittest.equals('foo')); | 663 unittest.expect(o[0], unittest.equals('foo')); |
| 664 unittest.expect(o[1], unittest.equals('foo')); | 664 unittest.expect(o[1], unittest.equals('foo')); |
| 665 } | 665 } |
| 666 | 666 |
| 667 core.int buildCounterEndpoint = 0; | 667 core.int buildCounterEndpoint = 0; |
| 668 buildEndpoint() { | 668 buildEndpoint() { |
| 669 var o = new api.Endpoint(); | 669 var o = new api.Endpoint(); |
| 670 buildCounterEndpoint++; | 670 buildCounterEndpoint++; |
| 671 if (buildCounterEndpoint < 3) { | 671 if (buildCounterEndpoint < 3) { |
| 672 o.aliases = buildUnnamed1569(); | 672 o.aliases = buildUnnamed1566(); |
| 673 o.allowCors = true; | 673 o.allowCors = true; |
| 674 o.apis = buildUnnamed1570(); | 674 o.apis = buildUnnamed1567(); |
| 675 o.features = buildUnnamed1571(); | 675 o.features = buildUnnamed1568(); |
| 676 o.name = "foo"; | 676 o.name = "foo"; |
| 677 o.target = "foo"; |
| 677 } | 678 } |
| 678 buildCounterEndpoint--; | 679 buildCounterEndpoint--; |
| 679 return o; | 680 return o; |
| 680 } | 681 } |
| 681 | 682 |
| 682 checkEndpoint(api.Endpoint o) { | 683 checkEndpoint(api.Endpoint o) { |
| 683 buildCounterEndpoint++; | 684 buildCounterEndpoint++; |
| 684 if (buildCounterEndpoint < 3) { | 685 if (buildCounterEndpoint < 3) { |
| 685 checkUnnamed1569(o.aliases); | 686 checkUnnamed1566(o.aliases); |
| 686 unittest.expect(o.allowCors, unittest.isTrue); | 687 unittest.expect(o.allowCors, unittest.isTrue); |
| 687 checkUnnamed1570(o.apis); | 688 checkUnnamed1567(o.apis); |
| 688 checkUnnamed1571(o.features); | 689 checkUnnamed1568(o.features); |
| 689 unittest.expect(o.name, unittest.equals('foo')); | 690 unittest.expect(o.name, unittest.equals('foo')); |
| 691 unittest.expect(o.target, unittest.equals('foo')); |
| 690 } | 692 } |
| 691 buildCounterEndpoint--; | 693 buildCounterEndpoint--; |
| 692 } | 694 } |
| 693 | 695 |
| 694 buildUnnamed1572() { | 696 buildUnnamed1569() { |
| 695 var o = new core.List<api.EnumValue>(); | 697 var o = new core.List<api.EnumValue>(); |
| 696 o.add(buildEnumValue()); | 698 o.add(buildEnumValue()); |
| 697 o.add(buildEnumValue()); | 699 o.add(buildEnumValue()); |
| 698 return o; | 700 return o; |
| 699 } | 701 } |
| 700 | 702 |
| 701 checkUnnamed1572(core.List<api.EnumValue> o) { | 703 checkUnnamed1569(core.List<api.EnumValue> o) { |
| 702 unittest.expect(o, unittest.hasLength(2)); | 704 unittest.expect(o, unittest.hasLength(2)); |
| 703 checkEnumValue(o[0]); | 705 checkEnumValue(o[0]); |
| 704 checkEnumValue(o[1]); | 706 checkEnumValue(o[1]); |
| 705 } | 707 } |
| 706 | 708 |
| 707 buildUnnamed1573() { | 709 buildUnnamed1570() { |
| 708 var o = new core.List<api.Option>(); | 710 var o = new core.List<api.Option>(); |
| 709 o.add(buildOption()); | 711 o.add(buildOption()); |
| 710 o.add(buildOption()); | 712 o.add(buildOption()); |
| 711 return o; | 713 return o; |
| 712 } | 714 } |
| 713 | 715 |
| 714 checkUnnamed1573(core.List<api.Option> o) { | 716 checkUnnamed1570(core.List<api.Option> o) { |
| 715 unittest.expect(o, unittest.hasLength(2)); | 717 unittest.expect(o, unittest.hasLength(2)); |
| 716 checkOption(o[0]); | 718 checkOption(o[0]); |
| 717 checkOption(o[1]); | 719 checkOption(o[1]); |
| 718 } | 720 } |
| 719 | 721 |
| 720 core.int buildCounterEnum = 0; | 722 core.int buildCounterEnum = 0; |
| 721 buildEnum() { | 723 buildEnum() { |
| 722 var o = new api.Enum(); | 724 var o = new api.Enum(); |
| 723 buildCounterEnum++; | 725 buildCounterEnum++; |
| 724 if (buildCounterEnum < 3) { | 726 if (buildCounterEnum < 3) { |
| 725 o.enumvalue = buildUnnamed1572(); | 727 o.enumvalue = buildUnnamed1569(); |
| 726 o.name = "foo"; | 728 o.name = "foo"; |
| 727 o.options = buildUnnamed1573(); | 729 o.options = buildUnnamed1570(); |
| 728 o.sourceContext = buildSourceContext(); | 730 o.sourceContext = buildSourceContext(); |
| 729 o.syntax = "foo"; | 731 o.syntax = "foo"; |
| 730 } | 732 } |
| 731 buildCounterEnum--; | 733 buildCounterEnum--; |
| 732 return o; | 734 return o; |
| 733 } | 735 } |
| 734 | 736 |
| 735 checkEnum(api.Enum o) { | 737 checkEnum(api.Enum o) { |
| 736 buildCounterEnum++; | 738 buildCounterEnum++; |
| 737 if (buildCounterEnum < 3) { | 739 if (buildCounterEnum < 3) { |
| 738 checkUnnamed1572(o.enumvalue); | 740 checkUnnamed1569(o.enumvalue); |
| 739 unittest.expect(o.name, unittest.equals('foo')); | 741 unittest.expect(o.name, unittest.equals('foo')); |
| 740 checkUnnamed1573(o.options); | 742 checkUnnamed1570(o.options); |
| 741 checkSourceContext(o.sourceContext); | 743 checkSourceContext(o.sourceContext); |
| 742 unittest.expect(o.syntax, unittest.equals('foo')); | 744 unittest.expect(o.syntax, unittest.equals('foo')); |
| 743 } | 745 } |
| 744 buildCounterEnum--; | 746 buildCounterEnum--; |
| 745 } | 747 } |
| 746 | 748 |
| 747 buildUnnamed1574() { | 749 buildUnnamed1571() { |
| 748 var o = new core.List<api.Option>(); | 750 var o = new core.List<api.Option>(); |
| 749 o.add(buildOption()); | 751 o.add(buildOption()); |
| 750 o.add(buildOption()); | 752 o.add(buildOption()); |
| 751 return o; | 753 return o; |
| 752 } | 754 } |
| 753 | 755 |
| 754 checkUnnamed1574(core.List<api.Option> o) { | 756 checkUnnamed1571(core.List<api.Option> o) { |
| 755 unittest.expect(o, unittest.hasLength(2)); | 757 unittest.expect(o, unittest.hasLength(2)); |
| 756 checkOption(o[0]); | 758 checkOption(o[0]); |
| 757 checkOption(o[1]); | 759 checkOption(o[1]); |
| 758 } | 760 } |
| 759 | 761 |
| 760 core.int buildCounterEnumValue = 0; | 762 core.int buildCounterEnumValue = 0; |
| 761 buildEnumValue() { | 763 buildEnumValue() { |
| 762 var o = new api.EnumValue(); | 764 var o = new api.EnumValue(); |
| 763 buildCounterEnumValue++; | 765 buildCounterEnumValue++; |
| 764 if (buildCounterEnumValue < 3) { | 766 if (buildCounterEnumValue < 3) { |
| 765 o.name = "foo"; | 767 o.name = "foo"; |
| 766 o.number = 42; | 768 o.number = 42; |
| 767 o.options = buildUnnamed1574(); | 769 o.options = buildUnnamed1571(); |
| 768 } | 770 } |
| 769 buildCounterEnumValue--; | 771 buildCounterEnumValue--; |
| 770 return o; | 772 return o; |
| 771 } | 773 } |
| 772 | 774 |
| 773 checkEnumValue(api.EnumValue o) { | 775 checkEnumValue(api.EnumValue o) { |
| 774 buildCounterEnumValue++; | 776 buildCounterEnumValue++; |
| 775 if (buildCounterEnumValue < 3) { | 777 if (buildCounterEnumValue < 3) { |
| 776 unittest.expect(o.name, unittest.equals('foo')); | 778 unittest.expect(o.name, unittest.equals('foo')); |
| 777 unittest.expect(o.number, unittest.equals(42)); | 779 unittest.expect(o.number, unittest.equals(42)); |
| 778 checkUnnamed1574(o.options); | 780 checkUnnamed1571(o.options); |
| 779 } | 781 } |
| 780 buildCounterEnumValue--; | 782 buildCounterEnumValue--; |
| 781 } | 783 } |
| 782 | 784 |
| 783 core.int buildCounterExperimental = 0; | 785 core.int buildCounterExperimental = 0; |
| 784 buildExperimental() { | 786 buildExperimental() { |
| 785 var o = new api.Experimental(); | 787 var o = new api.Experimental(); |
| 786 buildCounterExperimental++; | 788 buildCounterExperimental++; |
| 787 if (buildCounterExperimental < 3) { | 789 if (buildCounterExperimental < 3) { |
| 788 o.authorization = buildAuthorizationConfig(); | 790 o.authorization = buildAuthorizationConfig(); |
| 789 } | 791 } |
| 790 buildCounterExperimental--; | 792 buildCounterExperimental--; |
| 791 return o; | 793 return o; |
| 792 } | 794 } |
| 793 | 795 |
| 794 checkExperimental(api.Experimental o) { | 796 checkExperimental(api.Experimental o) { |
| 795 buildCounterExperimental++; | 797 buildCounterExperimental++; |
| 796 if (buildCounterExperimental < 3) { | 798 if (buildCounterExperimental < 3) { |
| 797 checkAuthorizationConfig(o.authorization); | 799 checkAuthorizationConfig(o.authorization); |
| 798 } | 800 } |
| 799 buildCounterExperimental--; | 801 buildCounterExperimental--; |
| 800 } | 802 } |
| 801 | 803 |
| 802 buildUnnamed1575() { | 804 buildUnnamed1572() { |
| 803 var o = new core.List<api.Option>(); | 805 var o = new core.List<api.Option>(); |
| 804 o.add(buildOption()); | 806 o.add(buildOption()); |
| 805 o.add(buildOption()); | 807 o.add(buildOption()); |
| 806 return o; | 808 return o; |
| 807 } | 809 } |
| 808 | 810 |
| 809 checkUnnamed1575(core.List<api.Option> o) { | 811 checkUnnamed1572(core.List<api.Option> o) { |
| 810 unittest.expect(o, unittest.hasLength(2)); | 812 unittest.expect(o, unittest.hasLength(2)); |
| 811 checkOption(o[0]); | 813 checkOption(o[0]); |
| 812 checkOption(o[1]); | 814 checkOption(o[1]); |
| 813 } | 815 } |
| 814 | 816 |
| 815 core.int buildCounterField = 0; | 817 core.int buildCounterField = 0; |
| 816 buildField() { | 818 buildField() { |
| 817 var o = new api.Field(); | 819 var o = new api.Field(); |
| 818 buildCounterField++; | 820 buildCounterField++; |
| 819 if (buildCounterField < 3) { | 821 if (buildCounterField < 3) { |
| 820 o.cardinality = "foo"; | 822 o.cardinality = "foo"; |
| 821 o.defaultValue = "foo"; | 823 o.defaultValue = "foo"; |
| 822 o.jsonName = "foo"; | 824 o.jsonName = "foo"; |
| 823 o.kind = "foo"; | 825 o.kind = "foo"; |
| 824 o.name = "foo"; | 826 o.name = "foo"; |
| 825 o.number = 42; | 827 o.number = 42; |
| 826 o.oneofIndex = 42; | 828 o.oneofIndex = 42; |
| 827 o.options = buildUnnamed1575(); | 829 o.options = buildUnnamed1572(); |
| 828 o.packed = true; | 830 o.packed = true; |
| 829 o.typeUrl = "foo"; | 831 o.typeUrl = "foo"; |
| 830 } | 832 } |
| 831 buildCounterField--; | 833 buildCounterField--; |
| 832 return o; | 834 return o; |
| 833 } | 835 } |
| 834 | 836 |
| 835 checkField(api.Field o) { | 837 checkField(api.Field o) { |
| 836 buildCounterField++; | 838 buildCounterField++; |
| 837 if (buildCounterField < 3) { | 839 if (buildCounterField < 3) { |
| 838 unittest.expect(o.cardinality, unittest.equals('foo')); | 840 unittest.expect(o.cardinality, unittest.equals('foo')); |
| 839 unittest.expect(o.defaultValue, unittest.equals('foo')); | 841 unittest.expect(o.defaultValue, unittest.equals('foo')); |
| 840 unittest.expect(o.jsonName, unittest.equals('foo')); | 842 unittest.expect(o.jsonName, unittest.equals('foo')); |
| 841 unittest.expect(o.kind, unittest.equals('foo')); | 843 unittest.expect(o.kind, unittest.equals('foo')); |
| 842 unittest.expect(o.name, unittest.equals('foo')); | 844 unittest.expect(o.name, unittest.equals('foo')); |
| 843 unittest.expect(o.number, unittest.equals(42)); | 845 unittest.expect(o.number, unittest.equals(42)); |
| 844 unittest.expect(o.oneofIndex, unittest.equals(42)); | 846 unittest.expect(o.oneofIndex, unittest.equals(42)); |
| 845 checkUnnamed1575(o.options); | 847 checkUnnamed1572(o.options); |
| 846 unittest.expect(o.packed, unittest.isTrue); | 848 unittest.expect(o.packed, unittest.isTrue); |
| 847 unittest.expect(o.typeUrl, unittest.equals('foo')); | 849 unittest.expect(o.typeUrl, unittest.equals('foo')); |
| 848 } | 850 } |
| 849 buildCounterField--; | 851 buildCounterField--; |
| 850 } | 852 } |
| 851 | 853 |
| 852 buildUnnamed1576() { | 854 buildUnnamed1573() { |
| 853 var o = new core.List<api.HttpRule>(); | 855 var o = new core.List<api.HttpRule>(); |
| 854 o.add(buildHttpRule()); | 856 o.add(buildHttpRule()); |
| 855 o.add(buildHttpRule()); | 857 o.add(buildHttpRule()); |
| 856 return o; | 858 return o; |
| 857 } | 859 } |
| 858 | 860 |
| 859 checkUnnamed1576(core.List<api.HttpRule> o) { | 861 checkUnnamed1573(core.List<api.HttpRule> o) { |
| 860 unittest.expect(o, unittest.hasLength(2)); | 862 unittest.expect(o, unittest.hasLength(2)); |
| 861 checkHttpRule(o[0]); | 863 checkHttpRule(o[0]); |
| 862 checkHttpRule(o[1]); | 864 checkHttpRule(o[1]); |
| 863 } | 865 } |
| 864 | 866 |
| 865 core.int buildCounterHttp = 0; | 867 core.int buildCounterHttp = 0; |
| 866 buildHttp() { | 868 buildHttp() { |
| 867 var o = new api.Http(); | 869 var o = new api.Http(); |
| 868 buildCounterHttp++; | 870 buildCounterHttp++; |
| 869 if (buildCounterHttp < 3) { | 871 if (buildCounterHttp < 3) { |
| 870 o.rules = buildUnnamed1576(); | 872 o.fullyDecodeReservedExpansion = true; |
| 873 o.rules = buildUnnamed1573(); |
| 871 } | 874 } |
| 872 buildCounterHttp--; | 875 buildCounterHttp--; |
| 873 return o; | 876 return o; |
| 874 } | 877 } |
| 875 | 878 |
| 876 checkHttp(api.Http o) { | 879 checkHttp(api.Http o) { |
| 877 buildCounterHttp++; | 880 buildCounterHttp++; |
| 878 if (buildCounterHttp < 3) { | 881 if (buildCounterHttp < 3) { |
| 879 checkUnnamed1576(o.rules); | 882 unittest.expect(o.fullyDecodeReservedExpansion, unittest.isTrue); |
| 883 checkUnnamed1573(o.rules); |
| 880 } | 884 } |
| 881 buildCounterHttp--; | 885 buildCounterHttp--; |
| 882 } | 886 } |
| 883 | 887 |
| 884 buildUnnamed1577() { | 888 buildUnnamed1574() { |
| 885 var o = new core.List<api.HttpRule>(); | 889 var o = new core.List<api.HttpRule>(); |
| 886 o.add(buildHttpRule()); | 890 o.add(buildHttpRule()); |
| 887 o.add(buildHttpRule()); | 891 o.add(buildHttpRule()); |
| 888 return o; | 892 return o; |
| 889 } | 893 } |
| 890 | 894 |
| 891 checkUnnamed1577(core.List<api.HttpRule> o) { | 895 checkUnnamed1574(core.List<api.HttpRule> o) { |
| 892 unittest.expect(o, unittest.hasLength(2)); | 896 unittest.expect(o, unittest.hasLength(2)); |
| 893 checkHttpRule(o[0]); | 897 checkHttpRule(o[0]); |
| 894 checkHttpRule(o[1]); | 898 checkHttpRule(o[1]); |
| 895 } | 899 } |
| 896 | 900 |
| 897 core.int buildCounterHttpRule = 0; | 901 core.int buildCounterHttpRule = 0; |
| 898 buildHttpRule() { | 902 buildHttpRule() { |
| 899 var o = new api.HttpRule(); | 903 var o = new api.HttpRule(); |
| 900 buildCounterHttpRule++; | 904 buildCounterHttpRule++; |
| 901 if (buildCounterHttpRule < 3) { | 905 if (buildCounterHttpRule < 3) { |
| 902 o.additionalBindings = buildUnnamed1577(); | 906 o.additionalBindings = buildUnnamed1574(); |
| 903 o.body = "foo"; | 907 o.body = "foo"; |
| 904 o.custom = buildCustomHttpPattern(); | 908 o.custom = buildCustomHttpPattern(); |
| 905 o.delete = "foo"; | 909 o.delete = "foo"; |
| 906 o.get = "foo"; | 910 o.get = "foo"; |
| 907 o.mediaDownload = buildMediaDownload(); | 911 o.mediaDownload = buildMediaDownload(); |
| 908 o.mediaUpload = buildMediaUpload(); | 912 o.mediaUpload = buildMediaUpload(); |
| 909 o.patch = "foo"; | 913 o.patch = "foo"; |
| 910 o.post = "foo"; | 914 o.post = "foo"; |
| 911 o.put = "foo"; | 915 o.put = "foo"; |
| 912 o.responseBody = "foo"; | 916 o.responseBody = "foo"; |
| 913 o.selector = "foo"; | 917 o.selector = "foo"; |
| 914 } | 918 } |
| 915 buildCounterHttpRule--; | 919 buildCounterHttpRule--; |
| 916 return o; | 920 return o; |
| 917 } | 921 } |
| 918 | 922 |
| 919 checkHttpRule(api.HttpRule o) { | 923 checkHttpRule(api.HttpRule o) { |
| 920 buildCounterHttpRule++; | 924 buildCounterHttpRule++; |
| 921 if (buildCounterHttpRule < 3) { | 925 if (buildCounterHttpRule < 3) { |
| 922 checkUnnamed1577(o.additionalBindings); | 926 checkUnnamed1574(o.additionalBindings); |
| 923 unittest.expect(o.body, unittest.equals('foo')); | 927 unittest.expect(o.body, unittest.equals('foo')); |
| 924 checkCustomHttpPattern(o.custom); | 928 checkCustomHttpPattern(o.custom); |
| 925 unittest.expect(o.delete, unittest.equals('foo')); | 929 unittest.expect(o.delete, unittest.equals('foo')); |
| 926 unittest.expect(o.get, unittest.equals('foo')); | 930 unittest.expect(o.get, unittest.equals('foo')); |
| 927 checkMediaDownload(o.mediaDownload); | 931 checkMediaDownload(o.mediaDownload); |
| 928 checkMediaUpload(o.mediaUpload); | 932 checkMediaUpload(o.mediaUpload); |
| 929 unittest.expect(o.patch, unittest.equals('foo')); | 933 unittest.expect(o.patch, unittest.equals('foo')); |
| 930 unittest.expect(o.post, unittest.equals('foo')); | 934 unittest.expect(o.post, unittest.equals('foo')); |
| 931 unittest.expect(o.put, unittest.equals('foo')); | 935 unittest.expect(o.put, unittest.equals('foo')); |
| 932 unittest.expect(o.responseBody, unittest.equals('foo')); | 936 unittest.expect(o.responseBody, unittest.equals('foo')); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 951 checkLabelDescriptor(api.LabelDescriptor o) { | 955 checkLabelDescriptor(api.LabelDescriptor o) { |
| 952 buildCounterLabelDescriptor++; | 956 buildCounterLabelDescriptor++; |
| 953 if (buildCounterLabelDescriptor < 3) { | 957 if (buildCounterLabelDescriptor < 3) { |
| 954 unittest.expect(o.description, unittest.equals('foo')); | 958 unittest.expect(o.description, unittest.equals('foo')); |
| 955 unittest.expect(o.key, unittest.equals('foo')); | 959 unittest.expect(o.key, unittest.equals('foo')); |
| 956 unittest.expect(o.valueType, unittest.equals('foo')); | 960 unittest.expect(o.valueType, unittest.equals('foo')); |
| 957 } | 961 } |
| 958 buildCounterLabelDescriptor--; | 962 buildCounterLabelDescriptor--; |
| 959 } | 963 } |
| 960 | 964 |
| 961 buildUnnamed1578() { | 965 buildUnnamed1575() { |
| 962 var o = new core.List<api.PublishedService>(); | 966 var o = new core.List<api.PublishedService>(); |
| 963 o.add(buildPublishedService()); | 967 o.add(buildPublishedService()); |
| 964 o.add(buildPublishedService()); | 968 o.add(buildPublishedService()); |
| 965 return o; | 969 return o; |
| 966 } | 970 } |
| 967 | 971 |
| 968 checkUnnamed1578(core.List<api.PublishedService> o) { | 972 checkUnnamed1575(core.List<api.PublishedService> o) { |
| 969 unittest.expect(o, unittest.hasLength(2)); | 973 unittest.expect(o, unittest.hasLength(2)); |
| 970 checkPublishedService(o[0]); | 974 checkPublishedService(o[0]); |
| 971 checkPublishedService(o[1]); | 975 checkPublishedService(o[1]); |
| 972 } | 976 } |
| 973 | 977 |
| 974 core.int buildCounterListEnabledServicesResponse = 0; | 978 core.int buildCounterListEnabledServicesResponse = 0; |
| 975 buildListEnabledServicesResponse() { | 979 buildListEnabledServicesResponse() { |
| 976 var o = new api.ListEnabledServicesResponse(); | 980 var o = new api.ListEnabledServicesResponse(); |
| 977 buildCounterListEnabledServicesResponse++; | 981 buildCounterListEnabledServicesResponse++; |
| 978 if (buildCounterListEnabledServicesResponse < 3) { | 982 if (buildCounterListEnabledServicesResponse < 3) { |
| 979 o.nextPageToken = "foo"; | 983 o.nextPageToken = "foo"; |
| 980 o.services = buildUnnamed1578(); | 984 o.services = buildUnnamed1575(); |
| 981 } | 985 } |
| 982 buildCounterListEnabledServicesResponse--; | 986 buildCounterListEnabledServicesResponse--; |
| 983 return o; | 987 return o; |
| 984 } | 988 } |
| 985 | 989 |
| 986 checkListEnabledServicesResponse(api.ListEnabledServicesResponse o) { | 990 checkListEnabledServicesResponse(api.ListEnabledServicesResponse o) { |
| 987 buildCounterListEnabledServicesResponse++; | 991 buildCounterListEnabledServicesResponse++; |
| 988 if (buildCounterListEnabledServicesResponse < 3) { | 992 if (buildCounterListEnabledServicesResponse < 3) { |
| 989 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 993 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 990 checkUnnamed1578(o.services); | 994 checkUnnamed1575(o.services); |
| 991 } | 995 } |
| 992 buildCounterListEnabledServicesResponse--; | 996 buildCounterListEnabledServicesResponse--; |
| 993 } | 997 } |
| 994 | 998 |
| 995 buildUnnamed1579() { | 999 buildUnnamed1576() { |
| 996 var o = new core.List<api.LabelDescriptor>(); | 1000 var o = new core.List<api.LabelDescriptor>(); |
| 997 o.add(buildLabelDescriptor()); | 1001 o.add(buildLabelDescriptor()); |
| 998 o.add(buildLabelDescriptor()); | 1002 o.add(buildLabelDescriptor()); |
| 999 return o; | 1003 return o; |
| 1000 } | 1004 } |
| 1001 | 1005 |
| 1002 checkUnnamed1579(core.List<api.LabelDescriptor> o) { | 1006 checkUnnamed1576(core.List<api.LabelDescriptor> o) { |
| 1003 unittest.expect(o, unittest.hasLength(2)); | 1007 unittest.expect(o, unittest.hasLength(2)); |
| 1004 checkLabelDescriptor(o[0]); | 1008 checkLabelDescriptor(o[0]); |
| 1005 checkLabelDescriptor(o[1]); | 1009 checkLabelDescriptor(o[1]); |
| 1006 } | 1010 } |
| 1007 | 1011 |
| 1008 core.int buildCounterLogDescriptor = 0; | 1012 core.int buildCounterLogDescriptor = 0; |
| 1009 buildLogDescriptor() { | 1013 buildLogDescriptor() { |
| 1010 var o = new api.LogDescriptor(); | 1014 var o = new api.LogDescriptor(); |
| 1011 buildCounterLogDescriptor++; | 1015 buildCounterLogDescriptor++; |
| 1012 if (buildCounterLogDescriptor < 3) { | 1016 if (buildCounterLogDescriptor < 3) { |
| 1013 o.description = "foo"; | 1017 o.description = "foo"; |
| 1014 o.displayName = "foo"; | 1018 o.displayName = "foo"; |
| 1015 o.labels = buildUnnamed1579(); | 1019 o.labels = buildUnnamed1576(); |
| 1016 o.name = "foo"; | 1020 o.name = "foo"; |
| 1017 } | 1021 } |
| 1018 buildCounterLogDescriptor--; | 1022 buildCounterLogDescriptor--; |
| 1019 return o; | 1023 return o; |
| 1020 } | 1024 } |
| 1021 | 1025 |
| 1022 checkLogDescriptor(api.LogDescriptor o) { | 1026 checkLogDescriptor(api.LogDescriptor o) { |
| 1023 buildCounterLogDescriptor++; | 1027 buildCounterLogDescriptor++; |
| 1024 if (buildCounterLogDescriptor < 3) { | 1028 if (buildCounterLogDescriptor < 3) { |
| 1025 unittest.expect(o.description, unittest.equals('foo')); | 1029 unittest.expect(o.description, unittest.equals('foo')); |
| 1026 unittest.expect(o.displayName, unittest.equals('foo')); | 1030 unittest.expect(o.displayName, unittest.equals('foo')); |
| 1027 checkUnnamed1579(o.labels); | 1031 checkUnnamed1576(o.labels); |
| 1028 unittest.expect(o.name, unittest.equals('foo')); | 1032 unittest.expect(o.name, unittest.equals('foo')); |
| 1029 } | 1033 } |
| 1030 buildCounterLogDescriptor--; | 1034 buildCounterLogDescriptor--; |
| 1031 } | 1035 } |
| 1032 | 1036 |
| 1033 buildUnnamed1580() { | 1037 buildUnnamed1577() { |
| 1034 var o = new core.List<api.LoggingDestination>(); | 1038 var o = new core.List<api.LoggingDestination>(); |
| 1035 o.add(buildLoggingDestination()); | 1039 o.add(buildLoggingDestination()); |
| 1036 o.add(buildLoggingDestination()); | 1040 o.add(buildLoggingDestination()); |
| 1037 return o; | 1041 return o; |
| 1038 } | 1042 } |
| 1039 | 1043 |
| 1040 checkUnnamed1580(core.List<api.LoggingDestination> o) { | 1044 checkUnnamed1577(core.List<api.LoggingDestination> o) { |
| 1041 unittest.expect(o, unittest.hasLength(2)); | 1045 unittest.expect(o, unittest.hasLength(2)); |
| 1042 checkLoggingDestination(o[0]); | 1046 checkLoggingDestination(o[0]); |
| 1043 checkLoggingDestination(o[1]); | 1047 checkLoggingDestination(o[1]); |
| 1044 } | 1048 } |
| 1045 | 1049 |
| 1046 buildUnnamed1581() { | 1050 buildUnnamed1578() { |
| 1047 var o = new core.List<api.LoggingDestination>(); | 1051 var o = new core.List<api.LoggingDestination>(); |
| 1048 o.add(buildLoggingDestination()); | 1052 o.add(buildLoggingDestination()); |
| 1049 o.add(buildLoggingDestination()); | 1053 o.add(buildLoggingDestination()); |
| 1050 return o; | 1054 return o; |
| 1051 } | 1055 } |
| 1052 | 1056 |
| 1053 checkUnnamed1581(core.List<api.LoggingDestination> o) { | 1057 checkUnnamed1578(core.List<api.LoggingDestination> o) { |
| 1054 unittest.expect(o, unittest.hasLength(2)); | 1058 unittest.expect(o, unittest.hasLength(2)); |
| 1055 checkLoggingDestination(o[0]); | 1059 checkLoggingDestination(o[0]); |
| 1056 checkLoggingDestination(o[1]); | 1060 checkLoggingDestination(o[1]); |
| 1057 } | 1061 } |
| 1058 | 1062 |
| 1059 core.int buildCounterLogging = 0; | 1063 core.int buildCounterLogging = 0; |
| 1060 buildLogging() { | 1064 buildLogging() { |
| 1061 var o = new api.Logging(); | 1065 var o = new api.Logging(); |
| 1062 buildCounterLogging++; | 1066 buildCounterLogging++; |
| 1063 if (buildCounterLogging < 3) { | 1067 if (buildCounterLogging < 3) { |
| 1064 o.consumerDestinations = buildUnnamed1580(); | 1068 o.consumerDestinations = buildUnnamed1577(); |
| 1065 o.producerDestinations = buildUnnamed1581(); | 1069 o.producerDestinations = buildUnnamed1578(); |
| 1066 } | 1070 } |
| 1067 buildCounterLogging--; | 1071 buildCounterLogging--; |
| 1068 return o; | 1072 return o; |
| 1069 } | 1073 } |
| 1070 | 1074 |
| 1071 checkLogging(api.Logging o) { | 1075 checkLogging(api.Logging o) { |
| 1072 buildCounterLogging++; | 1076 buildCounterLogging++; |
| 1073 if (buildCounterLogging < 3) { | 1077 if (buildCounterLogging < 3) { |
| 1074 checkUnnamed1580(o.consumerDestinations); | 1078 checkUnnamed1577(o.consumerDestinations); |
| 1075 checkUnnamed1581(o.producerDestinations); | 1079 checkUnnamed1578(o.producerDestinations); |
| 1076 } | 1080 } |
| 1077 buildCounterLogging--; | 1081 buildCounterLogging--; |
| 1078 } | 1082 } |
| 1079 | 1083 |
| 1080 buildUnnamed1582() { | 1084 buildUnnamed1579() { |
| 1081 var o = new core.List<core.String>(); | 1085 var o = new core.List<core.String>(); |
| 1082 o.add("foo"); | 1086 o.add("foo"); |
| 1083 o.add("foo"); | 1087 o.add("foo"); |
| 1084 return o; | 1088 return o; |
| 1085 } | 1089 } |
| 1086 | 1090 |
| 1087 checkUnnamed1582(core.List<core.String> o) { | 1091 checkUnnamed1579(core.List<core.String> o) { |
| 1088 unittest.expect(o, unittest.hasLength(2)); | 1092 unittest.expect(o, unittest.hasLength(2)); |
| 1089 unittest.expect(o[0], unittest.equals('foo')); | 1093 unittest.expect(o[0], unittest.equals('foo')); |
| 1090 unittest.expect(o[1], unittest.equals('foo')); | 1094 unittest.expect(o[1], unittest.equals('foo')); |
| 1091 } | 1095 } |
| 1092 | 1096 |
| 1093 core.int buildCounterLoggingDestination = 0; | 1097 core.int buildCounterLoggingDestination = 0; |
| 1094 buildLoggingDestination() { | 1098 buildLoggingDestination() { |
| 1095 var o = new api.LoggingDestination(); | 1099 var o = new api.LoggingDestination(); |
| 1096 buildCounterLoggingDestination++; | 1100 buildCounterLoggingDestination++; |
| 1097 if (buildCounterLoggingDestination < 3) { | 1101 if (buildCounterLoggingDestination < 3) { |
| 1098 o.logs = buildUnnamed1582(); | 1102 o.logs = buildUnnamed1579(); |
| 1099 o.monitoredResource = "foo"; | 1103 o.monitoredResource = "foo"; |
| 1100 } | 1104 } |
| 1101 buildCounterLoggingDestination--; | 1105 buildCounterLoggingDestination--; |
| 1102 return o; | 1106 return o; |
| 1103 } | 1107 } |
| 1104 | 1108 |
| 1105 checkLoggingDestination(api.LoggingDestination o) { | 1109 checkLoggingDestination(api.LoggingDestination o) { |
| 1106 buildCounterLoggingDestination++; | 1110 buildCounterLoggingDestination++; |
| 1107 if (buildCounterLoggingDestination < 3) { | 1111 if (buildCounterLoggingDestination < 3) { |
| 1108 checkUnnamed1582(o.logs); | 1112 checkUnnamed1579(o.logs); |
| 1109 unittest.expect(o.monitoredResource, unittest.equals('foo')); | 1113 unittest.expect(o.monitoredResource, unittest.equals('foo')); |
| 1110 } | 1114 } |
| 1111 buildCounterLoggingDestination--; | 1115 buildCounterLoggingDestination--; |
| 1112 } | 1116 } |
| 1113 | 1117 |
| 1114 core.int buildCounterMediaDownload = 0; | 1118 core.int buildCounterMediaDownload = 0; |
| 1115 buildMediaDownload() { | 1119 buildMediaDownload() { |
| 1116 var o = new api.MediaDownload(); | 1120 var o = new api.MediaDownload(); |
| 1117 buildCounterMediaDownload++; | 1121 buildCounterMediaDownload++; |
| 1118 if (buildCounterMediaDownload < 3) { | 1122 if (buildCounterMediaDownload < 3) { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1146 | 1150 |
| 1147 checkMediaUpload(api.MediaUpload o) { | 1151 checkMediaUpload(api.MediaUpload o) { |
| 1148 buildCounterMediaUpload++; | 1152 buildCounterMediaUpload++; |
| 1149 if (buildCounterMediaUpload < 3) { | 1153 if (buildCounterMediaUpload < 3) { |
| 1150 unittest.expect(o.enabled, unittest.isTrue); | 1154 unittest.expect(o.enabled, unittest.isTrue); |
| 1151 unittest.expect(o.uploadService, unittest.equals('foo')); | 1155 unittest.expect(o.uploadService, unittest.equals('foo')); |
| 1152 } | 1156 } |
| 1153 buildCounterMediaUpload--; | 1157 buildCounterMediaUpload--; |
| 1154 } | 1158 } |
| 1155 | 1159 |
| 1156 buildUnnamed1583() { | 1160 buildUnnamed1580() { |
| 1157 var o = new core.List<api.Option>(); | 1161 var o = new core.List<api.Option>(); |
| 1158 o.add(buildOption()); | 1162 o.add(buildOption()); |
| 1159 o.add(buildOption()); | 1163 o.add(buildOption()); |
| 1160 return o; | 1164 return o; |
| 1161 } | 1165 } |
| 1162 | 1166 |
| 1163 checkUnnamed1583(core.List<api.Option> o) { | 1167 checkUnnamed1580(core.List<api.Option> o) { |
| 1164 unittest.expect(o, unittest.hasLength(2)); | 1168 unittest.expect(o, unittest.hasLength(2)); |
| 1165 checkOption(o[0]); | 1169 checkOption(o[0]); |
| 1166 checkOption(o[1]); | 1170 checkOption(o[1]); |
| 1167 } | 1171 } |
| 1168 | 1172 |
| 1169 core.int buildCounterMethod = 0; | 1173 core.int buildCounterMethod = 0; |
| 1170 buildMethod() { | 1174 buildMethod() { |
| 1171 var o = new api.Method(); | 1175 var o = new api.Method(); |
| 1172 buildCounterMethod++; | 1176 buildCounterMethod++; |
| 1173 if (buildCounterMethod < 3) { | 1177 if (buildCounterMethod < 3) { |
| 1174 o.name = "foo"; | 1178 o.name = "foo"; |
| 1175 o.options = buildUnnamed1583(); | 1179 o.options = buildUnnamed1580(); |
| 1176 o.requestStreaming = true; | 1180 o.requestStreaming = true; |
| 1177 o.requestTypeUrl = "foo"; | 1181 o.requestTypeUrl = "foo"; |
| 1178 o.responseStreaming = true; | 1182 o.responseStreaming = true; |
| 1179 o.responseTypeUrl = "foo"; | 1183 o.responseTypeUrl = "foo"; |
| 1180 o.syntax = "foo"; | 1184 o.syntax = "foo"; |
| 1181 } | 1185 } |
| 1182 buildCounterMethod--; | 1186 buildCounterMethod--; |
| 1183 return o; | 1187 return o; |
| 1184 } | 1188 } |
| 1185 | 1189 |
| 1186 checkMethod(api.Method o) { | 1190 checkMethod(api.Method o) { |
| 1187 buildCounterMethod++; | 1191 buildCounterMethod++; |
| 1188 if (buildCounterMethod < 3) { | 1192 if (buildCounterMethod < 3) { |
| 1189 unittest.expect(o.name, unittest.equals('foo')); | 1193 unittest.expect(o.name, unittest.equals('foo')); |
| 1190 checkUnnamed1583(o.options); | 1194 checkUnnamed1580(o.options); |
| 1191 unittest.expect(o.requestStreaming, unittest.isTrue); | 1195 unittest.expect(o.requestStreaming, unittest.isTrue); |
| 1192 unittest.expect(o.requestTypeUrl, unittest.equals('foo')); | 1196 unittest.expect(o.requestTypeUrl, unittest.equals('foo')); |
| 1193 unittest.expect(o.responseStreaming, unittest.isTrue); | 1197 unittest.expect(o.responseStreaming, unittest.isTrue); |
| 1194 unittest.expect(o.responseTypeUrl, unittest.equals('foo')); | 1198 unittest.expect(o.responseTypeUrl, unittest.equals('foo')); |
| 1195 unittest.expect(o.syntax, unittest.equals('foo')); | 1199 unittest.expect(o.syntax, unittest.equals('foo')); |
| 1196 } | 1200 } |
| 1197 buildCounterMethod--; | 1201 buildCounterMethod--; |
| 1198 } | 1202 } |
| 1199 | 1203 |
| 1200 buildUnnamed1584() { | 1204 buildUnnamed1581() { |
| 1201 var o = new core.List<api.LabelDescriptor>(); | 1205 var o = new core.List<api.LabelDescriptor>(); |
| 1202 o.add(buildLabelDescriptor()); | 1206 o.add(buildLabelDescriptor()); |
| 1203 o.add(buildLabelDescriptor()); | 1207 o.add(buildLabelDescriptor()); |
| 1204 return o; | 1208 return o; |
| 1205 } | 1209 } |
| 1206 | 1210 |
| 1207 checkUnnamed1584(core.List<api.LabelDescriptor> o) { | 1211 checkUnnamed1581(core.List<api.LabelDescriptor> o) { |
| 1208 unittest.expect(o, unittest.hasLength(2)); | 1212 unittest.expect(o, unittest.hasLength(2)); |
| 1209 checkLabelDescriptor(o[0]); | 1213 checkLabelDescriptor(o[0]); |
| 1210 checkLabelDescriptor(o[1]); | 1214 checkLabelDescriptor(o[1]); |
| 1211 } | 1215 } |
| 1212 | 1216 |
| 1213 core.int buildCounterMetricDescriptor = 0; | 1217 core.int buildCounterMetricDescriptor = 0; |
| 1214 buildMetricDescriptor() { | 1218 buildMetricDescriptor() { |
| 1215 var o = new api.MetricDescriptor(); | 1219 var o = new api.MetricDescriptor(); |
| 1216 buildCounterMetricDescriptor++; | 1220 buildCounterMetricDescriptor++; |
| 1217 if (buildCounterMetricDescriptor < 3) { | 1221 if (buildCounterMetricDescriptor < 3) { |
| 1218 o.description = "foo"; | 1222 o.description = "foo"; |
| 1219 o.displayName = "foo"; | 1223 o.displayName = "foo"; |
| 1220 o.labels = buildUnnamed1584(); | 1224 o.labels = buildUnnamed1581(); |
| 1221 o.metricKind = "foo"; | 1225 o.metricKind = "foo"; |
| 1222 o.name = "foo"; | 1226 o.name = "foo"; |
| 1223 o.type = "foo"; | 1227 o.type = "foo"; |
| 1224 o.unit = "foo"; | 1228 o.unit = "foo"; |
| 1225 o.valueType = "foo"; | 1229 o.valueType = "foo"; |
| 1226 } | 1230 } |
| 1227 buildCounterMetricDescriptor--; | 1231 buildCounterMetricDescriptor--; |
| 1228 return o; | 1232 return o; |
| 1229 } | 1233 } |
| 1230 | 1234 |
| 1231 checkMetricDescriptor(api.MetricDescriptor o) { | 1235 checkMetricDescriptor(api.MetricDescriptor o) { |
| 1232 buildCounterMetricDescriptor++; | 1236 buildCounterMetricDescriptor++; |
| 1233 if (buildCounterMetricDescriptor < 3) { | 1237 if (buildCounterMetricDescriptor < 3) { |
| 1234 unittest.expect(o.description, unittest.equals('foo')); | 1238 unittest.expect(o.description, unittest.equals('foo')); |
| 1235 unittest.expect(o.displayName, unittest.equals('foo')); | 1239 unittest.expect(o.displayName, unittest.equals('foo')); |
| 1236 checkUnnamed1584(o.labels); | 1240 checkUnnamed1581(o.labels); |
| 1237 unittest.expect(o.metricKind, unittest.equals('foo')); | 1241 unittest.expect(o.metricKind, unittest.equals('foo')); |
| 1238 unittest.expect(o.name, unittest.equals('foo')); | 1242 unittest.expect(o.name, unittest.equals('foo')); |
| 1239 unittest.expect(o.type, unittest.equals('foo')); | 1243 unittest.expect(o.type, unittest.equals('foo')); |
| 1240 unittest.expect(o.unit, unittest.equals('foo')); | 1244 unittest.expect(o.unit, unittest.equals('foo')); |
| 1241 unittest.expect(o.valueType, unittest.equals('foo')); | 1245 unittest.expect(o.valueType, unittest.equals('foo')); |
| 1242 } | 1246 } |
| 1243 buildCounterMetricDescriptor--; | 1247 buildCounterMetricDescriptor--; |
| 1244 } | 1248 } |
| 1245 | 1249 |
| 1250 buildUnnamed1582() { |
| 1251 var o = new core.Map<core.String, core.String>(); |
| 1252 o["x"] = "foo"; |
| 1253 o["y"] = "foo"; |
| 1254 return o; |
| 1255 } |
| 1256 |
| 1257 checkUnnamed1582(core.Map<core.String, core.String> o) { |
| 1258 unittest.expect(o, unittest.hasLength(2)); |
| 1259 unittest.expect(o["x"], unittest.equals('foo')); |
| 1260 unittest.expect(o["y"], unittest.equals('foo')); |
| 1261 } |
| 1262 |
| 1263 core.int buildCounterMetricRule = 0; |
| 1264 buildMetricRule() { |
| 1265 var o = new api.MetricRule(); |
| 1266 buildCounterMetricRule++; |
| 1267 if (buildCounterMetricRule < 3) { |
| 1268 o.metricCosts = buildUnnamed1582(); |
| 1269 o.selector = "foo"; |
| 1270 } |
| 1271 buildCounterMetricRule--; |
| 1272 return o; |
| 1273 } |
| 1274 |
| 1275 checkMetricRule(api.MetricRule o) { |
| 1276 buildCounterMetricRule++; |
| 1277 if (buildCounterMetricRule < 3) { |
| 1278 checkUnnamed1582(o.metricCosts); |
| 1279 unittest.expect(o.selector, unittest.equals('foo')); |
| 1280 } |
| 1281 buildCounterMetricRule--; |
| 1282 } |
| 1283 |
| 1246 core.int buildCounterMixin = 0; | 1284 core.int buildCounterMixin = 0; |
| 1247 buildMixin() { | 1285 buildMixin() { |
| 1248 var o = new api.Mixin(); | 1286 var o = new api.Mixin(); |
| 1249 buildCounterMixin++; | 1287 buildCounterMixin++; |
| 1250 if (buildCounterMixin < 3) { | 1288 if (buildCounterMixin < 3) { |
| 1251 o.name = "foo"; | 1289 o.name = "foo"; |
| 1252 o.root = "foo"; | 1290 o.root = "foo"; |
| 1253 } | 1291 } |
| 1254 buildCounterMixin--; | 1292 buildCounterMixin--; |
| 1255 return o; | 1293 return o; |
| 1256 } | 1294 } |
| 1257 | 1295 |
| 1258 checkMixin(api.Mixin o) { | 1296 checkMixin(api.Mixin o) { |
| 1259 buildCounterMixin++; | 1297 buildCounterMixin++; |
| 1260 if (buildCounterMixin < 3) { | 1298 if (buildCounterMixin < 3) { |
| 1261 unittest.expect(o.name, unittest.equals('foo')); | 1299 unittest.expect(o.name, unittest.equals('foo')); |
| 1262 unittest.expect(o.root, unittest.equals('foo')); | 1300 unittest.expect(o.root, unittest.equals('foo')); |
| 1263 } | 1301 } |
| 1264 buildCounterMixin--; | 1302 buildCounterMixin--; |
| 1265 } | 1303 } |
| 1266 | 1304 |
| 1267 buildUnnamed1585() { | 1305 buildUnnamed1583() { |
| 1268 var o = new core.List<api.LabelDescriptor>(); | 1306 var o = new core.List<api.LabelDescriptor>(); |
| 1269 o.add(buildLabelDescriptor()); | 1307 o.add(buildLabelDescriptor()); |
| 1270 o.add(buildLabelDescriptor()); | 1308 o.add(buildLabelDescriptor()); |
| 1271 return o; | 1309 return o; |
| 1272 } | 1310 } |
| 1273 | 1311 |
| 1274 checkUnnamed1585(core.List<api.LabelDescriptor> o) { | 1312 checkUnnamed1583(core.List<api.LabelDescriptor> o) { |
| 1275 unittest.expect(o, unittest.hasLength(2)); | 1313 unittest.expect(o, unittest.hasLength(2)); |
| 1276 checkLabelDescriptor(o[0]); | 1314 checkLabelDescriptor(o[0]); |
| 1277 checkLabelDescriptor(o[1]); | 1315 checkLabelDescriptor(o[1]); |
| 1278 } | 1316 } |
| 1279 | 1317 |
| 1280 core.int buildCounterMonitoredResourceDescriptor = 0; | 1318 core.int buildCounterMonitoredResourceDescriptor = 0; |
| 1281 buildMonitoredResourceDescriptor() { | 1319 buildMonitoredResourceDescriptor() { |
| 1282 var o = new api.MonitoredResourceDescriptor(); | 1320 var o = new api.MonitoredResourceDescriptor(); |
| 1283 buildCounterMonitoredResourceDescriptor++; | 1321 buildCounterMonitoredResourceDescriptor++; |
| 1284 if (buildCounterMonitoredResourceDescriptor < 3) { | 1322 if (buildCounterMonitoredResourceDescriptor < 3) { |
| 1285 o.description = "foo"; | 1323 o.description = "foo"; |
| 1286 o.displayName = "foo"; | 1324 o.displayName = "foo"; |
| 1287 o.labels = buildUnnamed1585(); | 1325 o.labels = buildUnnamed1583(); |
| 1288 o.name = "foo"; | 1326 o.name = "foo"; |
| 1289 o.type = "foo"; | 1327 o.type = "foo"; |
| 1290 } | 1328 } |
| 1291 buildCounterMonitoredResourceDescriptor--; | 1329 buildCounterMonitoredResourceDescriptor--; |
| 1292 return o; | 1330 return o; |
| 1293 } | 1331 } |
| 1294 | 1332 |
| 1295 checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) { | 1333 checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) { |
| 1296 buildCounterMonitoredResourceDescriptor++; | 1334 buildCounterMonitoredResourceDescriptor++; |
| 1297 if (buildCounterMonitoredResourceDescriptor < 3) { | 1335 if (buildCounterMonitoredResourceDescriptor < 3) { |
| 1298 unittest.expect(o.description, unittest.equals('foo')); | 1336 unittest.expect(o.description, unittest.equals('foo')); |
| 1299 unittest.expect(o.displayName, unittest.equals('foo')); | 1337 unittest.expect(o.displayName, unittest.equals('foo')); |
| 1300 checkUnnamed1585(o.labels); | 1338 checkUnnamed1583(o.labels); |
| 1301 unittest.expect(o.name, unittest.equals('foo')); | 1339 unittest.expect(o.name, unittest.equals('foo')); |
| 1302 unittest.expect(o.type, unittest.equals('foo')); | 1340 unittest.expect(o.type, unittest.equals('foo')); |
| 1303 } | 1341 } |
| 1304 buildCounterMonitoredResourceDescriptor--; | 1342 buildCounterMonitoredResourceDescriptor--; |
| 1305 } | 1343 } |
| 1306 | 1344 |
| 1307 buildUnnamed1586() { | 1345 buildUnnamed1584() { |
| 1308 var o = new core.List<api.MonitoringDestination>(); | 1346 var o = new core.List<api.MonitoringDestination>(); |
| 1309 o.add(buildMonitoringDestination()); | 1347 o.add(buildMonitoringDestination()); |
| 1310 o.add(buildMonitoringDestination()); | 1348 o.add(buildMonitoringDestination()); |
| 1311 return o; | 1349 return o; |
| 1312 } | 1350 } |
| 1313 | 1351 |
| 1314 checkUnnamed1586(core.List<api.MonitoringDestination> o) { | 1352 checkUnnamed1584(core.List<api.MonitoringDestination> o) { |
| 1315 unittest.expect(o, unittest.hasLength(2)); | 1353 unittest.expect(o, unittest.hasLength(2)); |
| 1316 checkMonitoringDestination(o[0]); | 1354 checkMonitoringDestination(o[0]); |
| 1317 checkMonitoringDestination(o[1]); | 1355 checkMonitoringDestination(o[1]); |
| 1318 } | 1356 } |
| 1319 | 1357 |
| 1320 buildUnnamed1587() { | 1358 buildUnnamed1585() { |
| 1321 var o = new core.List<api.MonitoringDestination>(); | 1359 var o = new core.List<api.MonitoringDestination>(); |
| 1322 o.add(buildMonitoringDestination()); | 1360 o.add(buildMonitoringDestination()); |
| 1323 o.add(buildMonitoringDestination()); | 1361 o.add(buildMonitoringDestination()); |
| 1324 return o; | 1362 return o; |
| 1325 } | 1363 } |
| 1326 | 1364 |
| 1327 checkUnnamed1587(core.List<api.MonitoringDestination> o) { | 1365 checkUnnamed1585(core.List<api.MonitoringDestination> o) { |
| 1328 unittest.expect(o, unittest.hasLength(2)); | 1366 unittest.expect(o, unittest.hasLength(2)); |
| 1329 checkMonitoringDestination(o[0]); | 1367 checkMonitoringDestination(o[0]); |
| 1330 checkMonitoringDestination(o[1]); | 1368 checkMonitoringDestination(o[1]); |
| 1331 } | 1369 } |
| 1332 | 1370 |
| 1333 core.int buildCounterMonitoring = 0; | 1371 core.int buildCounterMonitoring = 0; |
| 1334 buildMonitoring() { | 1372 buildMonitoring() { |
| 1335 var o = new api.Monitoring(); | 1373 var o = new api.Monitoring(); |
| 1336 buildCounterMonitoring++; | 1374 buildCounterMonitoring++; |
| 1337 if (buildCounterMonitoring < 3) { | 1375 if (buildCounterMonitoring < 3) { |
| 1338 o.consumerDestinations = buildUnnamed1586(); | 1376 o.consumerDestinations = buildUnnamed1584(); |
| 1339 o.producerDestinations = buildUnnamed1587(); | 1377 o.producerDestinations = buildUnnamed1585(); |
| 1340 } | 1378 } |
| 1341 buildCounterMonitoring--; | 1379 buildCounterMonitoring--; |
| 1342 return o; | 1380 return o; |
| 1343 } | 1381 } |
| 1344 | 1382 |
| 1345 checkMonitoring(api.Monitoring o) { | 1383 checkMonitoring(api.Monitoring o) { |
| 1346 buildCounterMonitoring++; | 1384 buildCounterMonitoring++; |
| 1347 if (buildCounterMonitoring < 3) { | 1385 if (buildCounterMonitoring < 3) { |
| 1348 checkUnnamed1586(o.consumerDestinations); | 1386 checkUnnamed1584(o.consumerDestinations); |
| 1349 checkUnnamed1587(o.producerDestinations); | 1387 checkUnnamed1585(o.producerDestinations); |
| 1350 } | 1388 } |
| 1351 buildCounterMonitoring--; | 1389 buildCounterMonitoring--; |
| 1352 } | 1390 } |
| 1353 | 1391 |
| 1354 buildUnnamed1588() { | 1392 buildUnnamed1586() { |
| 1355 var o = new core.List<core.String>(); | 1393 var o = new core.List<core.String>(); |
| 1356 o.add("foo"); | 1394 o.add("foo"); |
| 1357 o.add("foo"); | 1395 o.add("foo"); |
| 1358 return o; | 1396 return o; |
| 1359 } | 1397 } |
| 1360 | 1398 |
| 1361 checkUnnamed1588(core.List<core.String> o) { | 1399 checkUnnamed1586(core.List<core.String> o) { |
| 1362 unittest.expect(o, unittest.hasLength(2)); | 1400 unittest.expect(o, unittest.hasLength(2)); |
| 1363 unittest.expect(o[0], unittest.equals('foo')); | 1401 unittest.expect(o[0], unittest.equals('foo')); |
| 1364 unittest.expect(o[1], unittest.equals('foo')); | 1402 unittest.expect(o[1], unittest.equals('foo')); |
| 1365 } | 1403 } |
| 1366 | 1404 |
| 1367 core.int buildCounterMonitoringDestination = 0; | 1405 core.int buildCounterMonitoringDestination = 0; |
| 1368 buildMonitoringDestination() { | 1406 buildMonitoringDestination() { |
| 1369 var o = new api.MonitoringDestination(); | 1407 var o = new api.MonitoringDestination(); |
| 1370 buildCounterMonitoringDestination++; | 1408 buildCounterMonitoringDestination++; |
| 1371 if (buildCounterMonitoringDestination < 3) { | 1409 if (buildCounterMonitoringDestination < 3) { |
| 1372 o.metrics = buildUnnamed1588(); | 1410 o.metrics = buildUnnamed1586(); |
| 1373 o.monitoredResource = "foo"; | 1411 o.monitoredResource = "foo"; |
| 1374 } | 1412 } |
| 1375 buildCounterMonitoringDestination--; | 1413 buildCounterMonitoringDestination--; |
| 1376 return o; | 1414 return o; |
| 1377 } | 1415 } |
| 1378 | 1416 |
| 1379 checkMonitoringDestination(api.MonitoringDestination o) { | 1417 checkMonitoringDestination(api.MonitoringDestination o) { |
| 1380 buildCounterMonitoringDestination++; | 1418 buildCounterMonitoringDestination++; |
| 1381 if (buildCounterMonitoringDestination < 3) { | 1419 if (buildCounterMonitoringDestination < 3) { |
| 1382 checkUnnamed1588(o.metrics); | 1420 checkUnnamed1586(o.metrics); |
| 1383 unittest.expect(o.monitoredResource, unittest.equals('foo')); | 1421 unittest.expect(o.monitoredResource, unittest.equals('foo')); |
| 1384 } | 1422 } |
| 1385 buildCounterMonitoringDestination--; | 1423 buildCounterMonitoringDestination--; |
| 1386 } | 1424 } |
| 1387 | 1425 |
| 1388 core.int buildCounterOAuthRequirements = 0; | 1426 core.int buildCounterOAuthRequirements = 0; |
| 1389 buildOAuthRequirements() { | 1427 buildOAuthRequirements() { |
| 1390 var o = new api.OAuthRequirements(); | 1428 var o = new api.OAuthRequirements(); |
| 1391 buildCounterOAuthRequirements++; | 1429 buildCounterOAuthRequirements++; |
| 1392 if (buildCounterOAuthRequirements < 3) { | 1430 if (buildCounterOAuthRequirements < 3) { |
| 1393 o.canonicalScopes = "foo"; | 1431 o.canonicalScopes = "foo"; |
| 1394 } | 1432 } |
| 1395 buildCounterOAuthRequirements--; | 1433 buildCounterOAuthRequirements--; |
| 1396 return o; | 1434 return o; |
| 1397 } | 1435 } |
| 1398 | 1436 |
| 1399 checkOAuthRequirements(api.OAuthRequirements o) { | 1437 checkOAuthRequirements(api.OAuthRequirements o) { |
| 1400 buildCounterOAuthRequirements++; | 1438 buildCounterOAuthRequirements++; |
| 1401 if (buildCounterOAuthRequirements < 3) { | 1439 if (buildCounterOAuthRequirements < 3) { |
| 1402 unittest.expect(o.canonicalScopes, unittest.equals('foo')); | 1440 unittest.expect(o.canonicalScopes, unittest.equals('foo')); |
| 1403 } | 1441 } |
| 1404 buildCounterOAuthRequirements--; | 1442 buildCounterOAuthRequirements--; |
| 1405 } | 1443 } |
| 1406 | 1444 |
| 1407 buildUnnamed1589() { | 1445 buildUnnamed1587() { |
| 1408 var o = new core.Map<core.String, core.Object>(); | 1446 var o = new core.Map<core.String, core.Object>(); |
| 1409 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1447 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1410 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1448 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1411 return o; | 1449 return o; |
| 1412 } | 1450 } |
| 1413 | 1451 |
| 1414 checkUnnamed1589(core.Map<core.String, core.Object> o) { | 1452 checkUnnamed1587(core.Map<core.String, core.Object> o) { |
| 1415 unittest.expect(o, unittest.hasLength(2)); | 1453 unittest.expect(o, unittest.hasLength(2)); |
| 1416 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); | 1454 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); |
| 1417 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); | 1455 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); |
| 1418 } | 1456 } |
| 1419 | 1457 |
| 1420 buildUnnamed1590() { | 1458 buildUnnamed1588() { |
| 1421 var o = new core.Map<core.String, core.Object>(); | 1459 var o = new core.Map<core.String, core.Object>(); |
| 1422 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1460 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1423 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1461 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1424 return o; | 1462 return o; |
| 1425 } | 1463 } |
| 1426 | 1464 |
| 1427 checkUnnamed1590(core.Map<core.String, core.Object> o) { | 1465 checkUnnamed1588(core.Map<core.String, core.Object> o) { |
| 1428 unittest.expect(o, unittest.hasLength(2)); | 1466 unittest.expect(o, unittest.hasLength(2)); |
| 1429 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); | 1467 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); |
| 1430 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); | 1468 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); |
| 1431 } | 1469 } |
| 1432 | 1470 |
| 1433 core.int buildCounterOperation = 0; | 1471 core.int buildCounterOperation = 0; |
| 1434 buildOperation() { | 1472 buildOperation() { |
| 1435 var o = new api.Operation(); | 1473 var o = new api.Operation(); |
| 1436 buildCounterOperation++; | 1474 buildCounterOperation++; |
| 1437 if (buildCounterOperation < 3) { | 1475 if (buildCounterOperation < 3) { |
| 1438 o.done = true; | 1476 o.done = true; |
| 1439 o.error = buildStatus(); | 1477 o.error = buildStatus(); |
| 1440 o.metadata = buildUnnamed1589(); | 1478 o.metadata = buildUnnamed1587(); |
| 1441 o.name = "foo"; | 1479 o.name = "foo"; |
| 1442 o.response = buildUnnamed1590(); | 1480 o.response = buildUnnamed1588(); |
| 1443 } | 1481 } |
| 1444 buildCounterOperation--; | 1482 buildCounterOperation--; |
| 1445 return o; | 1483 return o; |
| 1446 } | 1484 } |
| 1447 | 1485 |
| 1448 checkOperation(api.Operation o) { | 1486 checkOperation(api.Operation o) { |
| 1449 buildCounterOperation++; | 1487 buildCounterOperation++; |
| 1450 if (buildCounterOperation < 3) { | 1488 if (buildCounterOperation < 3) { |
| 1451 unittest.expect(o.done, unittest.isTrue); | 1489 unittest.expect(o.done, unittest.isTrue); |
| 1452 checkStatus(o.error); | 1490 checkStatus(o.error); |
| 1453 checkUnnamed1589(o.metadata); | 1491 checkUnnamed1587(o.metadata); |
| 1454 unittest.expect(o.name, unittest.equals('foo')); | 1492 unittest.expect(o.name, unittest.equals('foo')); |
| 1455 checkUnnamed1590(o.response); | 1493 checkUnnamed1588(o.response); |
| 1456 } | 1494 } |
| 1457 buildCounterOperation--; | 1495 buildCounterOperation--; |
| 1458 } | 1496 } |
| 1459 | 1497 |
| 1460 buildUnnamed1591() { | 1498 buildUnnamed1589() { |
| 1461 var o = new core.List<core.String>(); | 1499 var o = new core.List<core.String>(); |
| 1462 o.add("foo"); | 1500 o.add("foo"); |
| 1463 o.add("foo"); | 1501 o.add("foo"); |
| 1464 return o; | 1502 return o; |
| 1465 } | 1503 } |
| 1466 | 1504 |
| 1467 checkUnnamed1591(core.List<core.String> o) { | 1505 checkUnnamed1589(core.List<core.String> o) { |
| 1468 unittest.expect(o, unittest.hasLength(2)); | 1506 unittest.expect(o, unittest.hasLength(2)); |
| 1469 unittest.expect(o[0], unittest.equals('foo')); | 1507 unittest.expect(o[0], unittest.equals('foo')); |
| 1470 unittest.expect(o[1], unittest.equals('foo')); | 1508 unittest.expect(o[1], unittest.equals('foo')); |
| 1471 } | 1509 } |
| 1472 | 1510 |
| 1473 buildUnnamed1592() { | 1511 buildUnnamed1590() { |
| 1474 var o = new core.List<api.Step>(); | 1512 var o = new core.List<api.Step>(); |
| 1475 o.add(buildStep()); | 1513 o.add(buildStep()); |
| 1476 o.add(buildStep()); | 1514 o.add(buildStep()); |
| 1477 return o; | 1515 return o; |
| 1478 } | 1516 } |
| 1479 | 1517 |
| 1480 checkUnnamed1592(core.List<api.Step> o) { | 1518 checkUnnamed1590(core.List<api.Step> o) { |
| 1481 unittest.expect(o, unittest.hasLength(2)); | 1519 unittest.expect(o, unittest.hasLength(2)); |
| 1482 checkStep(o[0]); | 1520 checkStep(o[0]); |
| 1483 checkStep(o[1]); | 1521 checkStep(o[1]); |
| 1484 } | 1522 } |
| 1485 | 1523 |
| 1486 core.int buildCounterOperationMetadata = 0; | 1524 core.int buildCounterOperationMetadata = 0; |
| 1487 buildOperationMetadata() { | 1525 buildOperationMetadata() { |
| 1488 var o = new api.OperationMetadata(); | 1526 var o = new api.OperationMetadata(); |
| 1489 buildCounterOperationMetadata++; | 1527 buildCounterOperationMetadata++; |
| 1490 if (buildCounterOperationMetadata < 3) { | 1528 if (buildCounterOperationMetadata < 3) { |
| 1491 o.progressPercentage = 42; | 1529 o.progressPercentage = 42; |
| 1492 o.resourceNames = buildUnnamed1591(); | 1530 o.resourceNames = buildUnnamed1589(); |
| 1493 o.startTime = "foo"; | 1531 o.startTime = "foo"; |
| 1494 o.steps = buildUnnamed1592(); | 1532 o.steps = buildUnnamed1590(); |
| 1495 } | 1533 } |
| 1496 buildCounterOperationMetadata--; | 1534 buildCounterOperationMetadata--; |
| 1497 return o; | 1535 return o; |
| 1498 } | 1536 } |
| 1499 | 1537 |
| 1500 checkOperationMetadata(api.OperationMetadata o) { | 1538 checkOperationMetadata(api.OperationMetadata o) { |
| 1501 buildCounterOperationMetadata++; | 1539 buildCounterOperationMetadata++; |
| 1502 if (buildCounterOperationMetadata < 3) { | 1540 if (buildCounterOperationMetadata < 3) { |
| 1503 unittest.expect(o.progressPercentage, unittest.equals(42)); | 1541 unittest.expect(o.progressPercentage, unittest.equals(42)); |
| 1504 checkUnnamed1591(o.resourceNames); | 1542 checkUnnamed1589(o.resourceNames); |
| 1505 unittest.expect(o.startTime, unittest.equals('foo')); | 1543 unittest.expect(o.startTime, unittest.equals('foo')); |
| 1506 checkUnnamed1592(o.steps); | 1544 checkUnnamed1590(o.steps); |
| 1507 } | 1545 } |
| 1508 buildCounterOperationMetadata--; | 1546 buildCounterOperationMetadata--; |
| 1509 } | 1547 } |
| 1510 | 1548 |
| 1511 buildUnnamed1593() { | 1549 buildUnnamed1591() { |
| 1512 var o = new core.Map<core.String, core.Object>(); | 1550 var o = new core.Map<core.String, core.Object>(); |
| 1513 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1551 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1514 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1552 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1515 return o; | 1553 return o; |
| 1516 } | 1554 } |
| 1517 | 1555 |
| 1518 checkUnnamed1593(core.Map<core.String, core.Object> o) { | 1556 checkUnnamed1591(core.Map<core.String, core.Object> o) { |
| 1519 unittest.expect(o, unittest.hasLength(2)); | 1557 unittest.expect(o, unittest.hasLength(2)); |
| 1520 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); | 1558 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); |
| 1521 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); | 1559 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); |
| 1522 } | 1560 } |
| 1523 | 1561 |
| 1524 core.int buildCounterOption = 0; | 1562 core.int buildCounterOption = 0; |
| 1525 buildOption() { | 1563 buildOption() { |
| 1526 var o = new api.Option(); | 1564 var o = new api.Option(); |
| 1527 buildCounterOption++; | 1565 buildCounterOption++; |
| 1528 if (buildCounterOption < 3) { | 1566 if (buildCounterOption < 3) { |
| 1529 o.name = "foo"; | 1567 o.name = "foo"; |
| 1530 o.value = buildUnnamed1593(); | 1568 o.value = buildUnnamed1591(); |
| 1531 } | 1569 } |
| 1532 buildCounterOption--; | 1570 buildCounterOption--; |
| 1533 return o; | 1571 return o; |
| 1534 } | 1572 } |
| 1535 | 1573 |
| 1536 checkOption(api.Option o) { | 1574 checkOption(api.Option o) { |
| 1537 buildCounterOption++; | 1575 buildCounterOption++; |
| 1538 if (buildCounterOption < 3) { | 1576 if (buildCounterOption < 3) { |
| 1539 unittest.expect(o.name, unittest.equals('foo')); | 1577 unittest.expect(o.name, unittest.equals('foo')); |
| 1540 checkUnnamed1593(o.value); | 1578 checkUnnamed1591(o.value); |
| 1541 } | 1579 } |
| 1542 buildCounterOption--; | 1580 buildCounterOption--; |
| 1543 } | 1581 } |
| 1544 | 1582 |
| 1545 buildUnnamed1594() { | 1583 buildUnnamed1592() { |
| 1546 var o = new core.List<api.Page>(); | 1584 var o = new core.List<api.Page>(); |
| 1547 o.add(buildPage()); | 1585 o.add(buildPage()); |
| 1548 o.add(buildPage()); | 1586 o.add(buildPage()); |
| 1549 return o; | 1587 return o; |
| 1550 } | 1588 } |
| 1551 | 1589 |
| 1552 checkUnnamed1594(core.List<api.Page> o) { | 1590 checkUnnamed1592(core.List<api.Page> o) { |
| 1553 unittest.expect(o, unittest.hasLength(2)); | 1591 unittest.expect(o, unittest.hasLength(2)); |
| 1554 checkPage(o[0]); | 1592 checkPage(o[0]); |
| 1555 checkPage(o[1]); | 1593 checkPage(o[1]); |
| 1556 } | 1594 } |
| 1557 | 1595 |
| 1558 core.int buildCounterPage = 0; | 1596 core.int buildCounterPage = 0; |
| 1559 buildPage() { | 1597 buildPage() { |
| 1560 var o = new api.Page(); | 1598 var o = new api.Page(); |
| 1561 buildCounterPage++; | 1599 buildCounterPage++; |
| 1562 if (buildCounterPage < 3) { | 1600 if (buildCounterPage < 3) { |
| 1563 o.content = "foo"; | 1601 o.content = "foo"; |
| 1564 o.name = "foo"; | 1602 o.name = "foo"; |
| 1565 o.subpages = buildUnnamed1594(); | 1603 o.subpages = buildUnnamed1592(); |
| 1566 } | 1604 } |
| 1567 buildCounterPage--; | 1605 buildCounterPage--; |
| 1568 return o; | 1606 return o; |
| 1569 } | 1607 } |
| 1570 | 1608 |
| 1571 checkPage(api.Page o) { | 1609 checkPage(api.Page o) { |
| 1572 buildCounterPage++; | 1610 buildCounterPage++; |
| 1573 if (buildCounterPage < 3) { | 1611 if (buildCounterPage < 3) { |
| 1574 unittest.expect(o.content, unittest.equals('foo')); | 1612 unittest.expect(o.content, unittest.equals('foo')); |
| 1575 unittest.expect(o.name, unittest.equals('foo')); | 1613 unittest.expect(o.name, unittest.equals('foo')); |
| 1576 checkUnnamed1594(o.subpages); | 1614 checkUnnamed1592(o.subpages); |
| 1577 } | 1615 } |
| 1578 buildCounterPage--; | 1616 buildCounterPage--; |
| 1579 } | 1617 } |
| 1580 | 1618 |
| 1581 core.int buildCounterPublishedService = 0; | 1619 core.int buildCounterPublishedService = 0; |
| 1582 buildPublishedService() { | 1620 buildPublishedService() { |
| 1583 var o = new api.PublishedService(); | 1621 var o = new api.PublishedService(); |
| 1584 buildCounterPublishedService++; | 1622 buildCounterPublishedService++; |
| 1585 if (buildCounterPublishedService < 3) { | 1623 if (buildCounterPublishedService < 3) { |
| 1586 o.name = "foo"; | 1624 o.name = "foo"; |
| 1587 o.service = buildService(); | 1625 o.service = buildService(); |
| 1588 } | 1626 } |
| 1589 buildCounterPublishedService--; | 1627 buildCounterPublishedService--; |
| 1590 return o; | 1628 return o; |
| 1591 } | 1629 } |
| 1592 | 1630 |
| 1593 checkPublishedService(api.PublishedService o) { | 1631 checkPublishedService(api.PublishedService o) { |
| 1594 buildCounterPublishedService++; | 1632 buildCounterPublishedService++; |
| 1595 if (buildCounterPublishedService < 3) { | 1633 if (buildCounterPublishedService < 3) { |
| 1596 unittest.expect(o.name, unittest.equals('foo')); | 1634 unittest.expect(o.name, unittest.equals('foo')); |
| 1597 checkService(o.service); | 1635 checkService(o.service); |
| 1598 } | 1636 } |
| 1599 buildCounterPublishedService--; | 1637 buildCounterPublishedService--; |
| 1600 } | 1638 } |
| 1601 | 1639 |
| 1640 buildUnnamed1593() { |
| 1641 var o = new core.List<api.QuotaLimit>(); |
| 1642 o.add(buildQuotaLimit()); |
| 1643 o.add(buildQuotaLimit()); |
| 1644 return o; |
| 1645 } |
| 1646 |
| 1647 checkUnnamed1593(core.List<api.QuotaLimit> o) { |
| 1648 unittest.expect(o, unittest.hasLength(2)); |
| 1649 checkQuotaLimit(o[0]); |
| 1650 checkQuotaLimit(o[1]); |
| 1651 } |
| 1652 |
| 1653 buildUnnamed1594() { |
| 1654 var o = new core.List<api.MetricRule>(); |
| 1655 o.add(buildMetricRule()); |
| 1656 o.add(buildMetricRule()); |
| 1657 return o; |
| 1658 } |
| 1659 |
| 1660 checkUnnamed1594(core.List<api.MetricRule> o) { |
| 1661 unittest.expect(o, unittest.hasLength(2)); |
| 1662 checkMetricRule(o[0]); |
| 1663 checkMetricRule(o[1]); |
| 1664 } |
| 1665 |
| 1666 core.int buildCounterQuota = 0; |
| 1667 buildQuota() { |
| 1668 var o = new api.Quota(); |
| 1669 buildCounterQuota++; |
| 1670 if (buildCounterQuota < 3) { |
| 1671 o.limits = buildUnnamed1593(); |
| 1672 o.metricRules = buildUnnamed1594(); |
| 1673 } |
| 1674 buildCounterQuota--; |
| 1675 return o; |
| 1676 } |
| 1677 |
| 1678 checkQuota(api.Quota o) { |
| 1679 buildCounterQuota++; |
| 1680 if (buildCounterQuota < 3) { |
| 1681 checkUnnamed1593(o.limits); |
| 1682 checkUnnamed1594(o.metricRules); |
| 1683 } |
| 1684 buildCounterQuota--; |
| 1685 } |
| 1686 |
| 1602 buildUnnamed1595() { | 1687 buildUnnamed1595() { |
| 1688 var o = new core.Map<core.String, core.String>(); |
| 1689 o["x"] = "foo"; |
| 1690 o["y"] = "foo"; |
| 1691 return o; |
| 1692 } |
| 1693 |
| 1694 checkUnnamed1595(core.Map<core.String, core.String> o) { |
| 1695 unittest.expect(o, unittest.hasLength(2)); |
| 1696 unittest.expect(o["x"], unittest.equals('foo')); |
| 1697 unittest.expect(o["y"], unittest.equals('foo')); |
| 1698 } |
| 1699 |
| 1700 core.int buildCounterQuotaLimit = 0; |
| 1701 buildQuotaLimit() { |
| 1702 var o = new api.QuotaLimit(); |
| 1703 buildCounterQuotaLimit++; |
| 1704 if (buildCounterQuotaLimit < 3) { |
| 1705 o.defaultLimit = "foo"; |
| 1706 o.description = "foo"; |
| 1707 o.displayName = "foo"; |
| 1708 o.duration = "foo"; |
| 1709 o.freeTier = "foo"; |
| 1710 o.maxLimit = "foo"; |
| 1711 o.metric = "foo"; |
| 1712 o.name = "foo"; |
| 1713 o.unit = "foo"; |
| 1714 o.values = buildUnnamed1595(); |
| 1715 } |
| 1716 buildCounterQuotaLimit--; |
| 1717 return o; |
| 1718 } |
| 1719 |
| 1720 checkQuotaLimit(api.QuotaLimit o) { |
| 1721 buildCounterQuotaLimit++; |
| 1722 if (buildCounterQuotaLimit < 3) { |
| 1723 unittest.expect(o.defaultLimit, unittest.equals('foo')); |
| 1724 unittest.expect(o.description, unittest.equals('foo')); |
| 1725 unittest.expect(o.displayName, unittest.equals('foo')); |
| 1726 unittest.expect(o.duration, unittest.equals('foo')); |
| 1727 unittest.expect(o.freeTier, unittest.equals('foo')); |
| 1728 unittest.expect(o.maxLimit, unittest.equals('foo')); |
| 1729 unittest.expect(o.metric, unittest.equals('foo')); |
| 1730 unittest.expect(o.name, unittest.equals('foo')); |
| 1731 unittest.expect(o.unit, unittest.equals('foo')); |
| 1732 checkUnnamed1595(o.values); |
| 1733 } |
| 1734 buildCounterQuotaLimit--; |
| 1735 } |
| 1736 |
| 1737 buildUnnamed1596() { |
| 1603 var o = new core.List<api.PublishedService>(); | 1738 var o = new core.List<api.PublishedService>(); |
| 1604 o.add(buildPublishedService()); | 1739 o.add(buildPublishedService()); |
| 1605 o.add(buildPublishedService()); | 1740 o.add(buildPublishedService()); |
| 1606 return o; | 1741 return o; |
| 1607 } | 1742 } |
| 1608 | 1743 |
| 1609 checkUnnamed1595(core.List<api.PublishedService> o) { | 1744 checkUnnamed1596(core.List<api.PublishedService> o) { |
| 1610 unittest.expect(o, unittest.hasLength(2)); | 1745 unittest.expect(o, unittest.hasLength(2)); |
| 1611 checkPublishedService(o[0]); | 1746 checkPublishedService(o[0]); |
| 1612 checkPublishedService(o[1]); | 1747 checkPublishedService(o[1]); |
| 1613 } | 1748 } |
| 1614 | 1749 |
| 1615 core.int buildCounterSearchServicesResponse = 0; | 1750 core.int buildCounterSearchServicesResponse = 0; |
| 1616 buildSearchServicesResponse() { | 1751 buildSearchServicesResponse() { |
| 1617 var o = new api.SearchServicesResponse(); | 1752 var o = new api.SearchServicesResponse(); |
| 1618 buildCounterSearchServicesResponse++; | 1753 buildCounterSearchServicesResponse++; |
| 1619 if (buildCounterSearchServicesResponse < 3) { | 1754 if (buildCounterSearchServicesResponse < 3) { |
| 1620 o.nextPageToken = "foo"; | 1755 o.nextPageToken = "foo"; |
| 1621 o.services = buildUnnamed1595(); | 1756 o.services = buildUnnamed1596(); |
| 1622 } | 1757 } |
| 1623 buildCounterSearchServicesResponse--; | 1758 buildCounterSearchServicesResponse--; |
| 1624 return o; | 1759 return o; |
| 1625 } | 1760 } |
| 1626 | 1761 |
| 1627 checkSearchServicesResponse(api.SearchServicesResponse o) { | 1762 checkSearchServicesResponse(api.SearchServicesResponse o) { |
| 1628 buildCounterSearchServicesResponse++; | 1763 buildCounterSearchServicesResponse++; |
| 1629 if (buildCounterSearchServicesResponse < 3) { | 1764 if (buildCounterSearchServicesResponse < 3) { |
| 1630 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1765 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1631 checkUnnamed1595(o.services); | 1766 checkUnnamed1596(o.services); |
| 1632 } | 1767 } |
| 1633 buildCounterSearchServicesResponse--; | 1768 buildCounterSearchServicesResponse--; |
| 1634 } | 1769 } |
| 1635 | 1770 |
| 1636 buildUnnamed1596() { | 1771 buildUnnamed1597() { |
| 1637 var o = new core.List<api.Api>(); | 1772 var o = new core.List<api.Api>(); |
| 1638 o.add(buildApi()); | 1773 o.add(buildApi()); |
| 1639 o.add(buildApi()); | 1774 o.add(buildApi()); |
| 1640 return o; | 1775 return o; |
| 1641 } | 1776 } |
| 1642 | 1777 |
| 1643 checkUnnamed1596(core.List<api.Api> o) { | 1778 checkUnnamed1597(core.List<api.Api> o) { |
| 1644 unittest.expect(o, unittest.hasLength(2)); | 1779 unittest.expect(o, unittest.hasLength(2)); |
| 1645 checkApi(o[0]); | 1780 checkApi(o[0]); |
| 1646 checkApi(o[1]); | 1781 checkApi(o[1]); |
| 1647 } | 1782 } |
| 1648 | 1783 |
| 1649 buildUnnamed1597() { | 1784 buildUnnamed1598() { |
| 1650 var o = new core.List<api.Endpoint>(); | 1785 var o = new core.List<api.Endpoint>(); |
| 1651 o.add(buildEndpoint()); | 1786 o.add(buildEndpoint()); |
| 1652 o.add(buildEndpoint()); | 1787 o.add(buildEndpoint()); |
| 1653 return o; | 1788 return o; |
| 1654 } | 1789 } |
| 1655 | 1790 |
| 1656 checkUnnamed1597(core.List<api.Endpoint> o) { | 1791 checkUnnamed1598(core.List<api.Endpoint> o) { |
| 1657 unittest.expect(o, unittest.hasLength(2)); | 1792 unittest.expect(o, unittest.hasLength(2)); |
| 1658 checkEndpoint(o[0]); | 1793 checkEndpoint(o[0]); |
| 1659 checkEndpoint(o[1]); | 1794 checkEndpoint(o[1]); |
| 1660 } | 1795 } |
| 1661 | 1796 |
| 1662 buildUnnamed1598() { | 1797 buildUnnamed1599() { |
| 1663 var o = new core.List<api.Enum>(); | 1798 var o = new core.List<api.Enum>(); |
| 1664 o.add(buildEnum()); | 1799 o.add(buildEnum()); |
| 1665 o.add(buildEnum()); | 1800 o.add(buildEnum()); |
| 1666 return o; | 1801 return o; |
| 1667 } | 1802 } |
| 1668 | 1803 |
| 1669 checkUnnamed1598(core.List<api.Enum> o) { | 1804 checkUnnamed1599(core.List<api.Enum> o) { |
| 1670 unittest.expect(o, unittest.hasLength(2)); | 1805 unittest.expect(o, unittest.hasLength(2)); |
| 1671 checkEnum(o[0]); | 1806 checkEnum(o[0]); |
| 1672 checkEnum(o[1]); | 1807 checkEnum(o[1]); |
| 1673 } | 1808 } |
| 1674 | 1809 |
| 1675 buildUnnamed1599() { | 1810 buildUnnamed1600() { |
| 1676 var o = new core.List<api.LogDescriptor>(); | 1811 var o = new core.List<api.LogDescriptor>(); |
| 1677 o.add(buildLogDescriptor()); | 1812 o.add(buildLogDescriptor()); |
| 1678 o.add(buildLogDescriptor()); | 1813 o.add(buildLogDescriptor()); |
| 1679 return o; | 1814 return o; |
| 1680 } | 1815 } |
| 1681 | 1816 |
| 1682 checkUnnamed1599(core.List<api.LogDescriptor> o) { | 1817 checkUnnamed1600(core.List<api.LogDescriptor> o) { |
| 1683 unittest.expect(o, unittest.hasLength(2)); | 1818 unittest.expect(o, unittest.hasLength(2)); |
| 1684 checkLogDescriptor(o[0]); | 1819 checkLogDescriptor(o[0]); |
| 1685 checkLogDescriptor(o[1]); | 1820 checkLogDescriptor(o[1]); |
| 1686 } | 1821 } |
| 1687 | 1822 |
| 1688 buildUnnamed1600() { | 1823 buildUnnamed1601() { |
| 1689 var o = new core.List<api.MetricDescriptor>(); | 1824 var o = new core.List<api.MetricDescriptor>(); |
| 1690 o.add(buildMetricDescriptor()); | 1825 o.add(buildMetricDescriptor()); |
| 1691 o.add(buildMetricDescriptor()); | 1826 o.add(buildMetricDescriptor()); |
| 1692 return o; | 1827 return o; |
| 1693 } | 1828 } |
| 1694 | 1829 |
| 1695 checkUnnamed1600(core.List<api.MetricDescriptor> o) { | 1830 checkUnnamed1601(core.List<api.MetricDescriptor> o) { |
| 1696 unittest.expect(o, unittest.hasLength(2)); | 1831 unittest.expect(o, unittest.hasLength(2)); |
| 1697 checkMetricDescriptor(o[0]); | 1832 checkMetricDescriptor(o[0]); |
| 1698 checkMetricDescriptor(o[1]); | 1833 checkMetricDescriptor(o[1]); |
| 1699 } | 1834 } |
| 1700 | 1835 |
| 1701 buildUnnamed1601() { | 1836 buildUnnamed1602() { |
| 1702 var o = new core.List<api.MonitoredResourceDescriptor>(); | 1837 var o = new core.List<api.MonitoredResourceDescriptor>(); |
| 1703 o.add(buildMonitoredResourceDescriptor()); | 1838 o.add(buildMonitoredResourceDescriptor()); |
| 1704 o.add(buildMonitoredResourceDescriptor()); | 1839 o.add(buildMonitoredResourceDescriptor()); |
| 1705 return o; | 1840 return o; |
| 1706 } | 1841 } |
| 1707 | 1842 |
| 1708 checkUnnamed1601(core.List<api.MonitoredResourceDescriptor> o) { | 1843 checkUnnamed1602(core.List<api.MonitoredResourceDescriptor> o) { |
| 1709 unittest.expect(o, unittest.hasLength(2)); | 1844 unittest.expect(o, unittest.hasLength(2)); |
| 1710 checkMonitoredResourceDescriptor(o[0]); | 1845 checkMonitoredResourceDescriptor(o[0]); |
| 1711 checkMonitoredResourceDescriptor(o[1]); | 1846 checkMonitoredResourceDescriptor(o[1]); |
| 1712 } | 1847 } |
| 1713 | 1848 |
| 1714 buildUnnamed1602() { | |
| 1715 var o = new core.List<api.Type>(); | |
| 1716 o.add(buildType()); | |
| 1717 o.add(buildType()); | |
| 1718 return o; | |
| 1719 } | |
| 1720 | |
| 1721 checkUnnamed1602(core.List<api.Type> o) { | |
| 1722 unittest.expect(o, unittest.hasLength(2)); | |
| 1723 checkType(o[0]); | |
| 1724 checkType(o[1]); | |
| 1725 } | |
| 1726 | |
| 1727 buildUnnamed1603() { | 1849 buildUnnamed1603() { |
| 1728 var o = new core.List<api.Type>(); | 1850 var o = new core.List<api.Type>(); |
| 1729 o.add(buildType()); | 1851 o.add(buildType()); |
| 1730 o.add(buildType()); | 1852 o.add(buildType()); |
| 1731 return o; | 1853 return o; |
| 1732 } | 1854 } |
| 1733 | 1855 |
| 1734 checkUnnamed1603(core.List<api.Type> o) { | 1856 checkUnnamed1603(core.List<api.Type> o) { |
| 1735 unittest.expect(o, unittest.hasLength(2)); | 1857 unittest.expect(o, unittest.hasLength(2)); |
| 1736 checkType(o[0]); | 1858 checkType(o[0]); |
| 1737 checkType(o[1]); | 1859 checkType(o[1]); |
| 1860 } |
| 1861 |
| 1862 buildUnnamed1604() { |
| 1863 var o = new core.List<api.Type>(); |
| 1864 o.add(buildType()); |
| 1865 o.add(buildType()); |
| 1866 return o; |
| 1867 } |
| 1868 |
| 1869 checkUnnamed1604(core.List<api.Type> o) { |
| 1870 unittest.expect(o, unittest.hasLength(2)); |
| 1871 checkType(o[0]); |
| 1872 checkType(o[1]); |
| 1738 } | 1873 } |
| 1739 | 1874 |
| 1740 core.int buildCounterService = 0; | 1875 core.int buildCounterService = 0; |
| 1741 buildService() { | 1876 buildService() { |
| 1742 var o = new api.Service(); | 1877 var o = new api.Service(); |
| 1743 buildCounterService++; | 1878 buildCounterService++; |
| 1744 if (buildCounterService < 3) { | 1879 if (buildCounterService < 3) { |
| 1745 o.apis = buildUnnamed1596(); | 1880 o.apis = buildUnnamed1597(); |
| 1746 o.authentication = buildAuthentication(); | 1881 o.authentication = buildAuthentication(); |
| 1747 o.backend = buildBackend(); | 1882 o.backend = buildBackend(); |
| 1748 o.configVersion = 42; | 1883 o.configVersion = 42; |
| 1749 o.context = buildContext(); | 1884 o.context = buildContext(); |
| 1750 o.control = buildControl(); | 1885 o.control = buildControl(); |
| 1751 o.customError = buildCustomError(); | 1886 o.customError = buildCustomError(); |
| 1752 o.documentation = buildDocumentation(); | 1887 o.documentation = buildDocumentation(); |
| 1753 o.endpoints = buildUnnamed1597(); | 1888 o.endpoints = buildUnnamed1598(); |
| 1754 o.enums = buildUnnamed1598(); | 1889 o.enums = buildUnnamed1599(); |
| 1755 o.experimental = buildExperimental(); | 1890 o.experimental = buildExperimental(); |
| 1756 o.http = buildHttp(); | 1891 o.http = buildHttp(); |
| 1757 o.id = "foo"; | 1892 o.id = "foo"; |
| 1758 o.logging = buildLogging(); | 1893 o.logging = buildLogging(); |
| 1759 o.logs = buildUnnamed1599(); | 1894 o.logs = buildUnnamed1600(); |
| 1760 o.metrics = buildUnnamed1600(); | 1895 o.metrics = buildUnnamed1601(); |
| 1761 o.monitoredResources = buildUnnamed1601(); | 1896 o.monitoredResources = buildUnnamed1602(); |
| 1762 o.monitoring = buildMonitoring(); | 1897 o.monitoring = buildMonitoring(); |
| 1763 o.name = "foo"; | 1898 o.name = "foo"; |
| 1764 o.producerProjectId = "foo"; | 1899 o.producerProjectId = "foo"; |
| 1900 o.quota = buildQuota(); |
| 1765 o.sourceInfo = buildSourceInfo(); | 1901 o.sourceInfo = buildSourceInfo(); |
| 1766 o.systemParameters = buildSystemParameters(); | 1902 o.systemParameters = buildSystemParameters(); |
| 1767 o.systemTypes = buildUnnamed1602(); | 1903 o.systemTypes = buildUnnamed1603(); |
| 1768 o.title = "foo"; | 1904 o.title = "foo"; |
| 1769 o.types = buildUnnamed1603(); | 1905 o.types = buildUnnamed1604(); |
| 1770 o.usage = buildUsage(); | 1906 o.usage = buildUsage(); |
| 1771 o.visibility = buildVisibility(); | 1907 o.visibility = buildVisibility(); |
| 1772 } | 1908 } |
| 1773 buildCounterService--; | 1909 buildCounterService--; |
| 1774 return o; | 1910 return o; |
| 1775 } | 1911 } |
| 1776 | 1912 |
| 1777 checkService(api.Service o) { | 1913 checkService(api.Service o) { |
| 1778 buildCounterService++; | 1914 buildCounterService++; |
| 1779 if (buildCounterService < 3) { | 1915 if (buildCounterService < 3) { |
| 1780 checkUnnamed1596(o.apis); | 1916 checkUnnamed1597(o.apis); |
| 1781 checkAuthentication(o.authentication); | 1917 checkAuthentication(o.authentication); |
| 1782 checkBackend(o.backend); | 1918 checkBackend(o.backend); |
| 1783 unittest.expect(o.configVersion, unittest.equals(42)); | 1919 unittest.expect(o.configVersion, unittest.equals(42)); |
| 1784 checkContext(o.context); | 1920 checkContext(o.context); |
| 1785 checkControl(o.control); | 1921 checkControl(o.control); |
| 1786 checkCustomError(o.customError); | 1922 checkCustomError(o.customError); |
| 1787 checkDocumentation(o.documentation); | 1923 checkDocumentation(o.documentation); |
| 1788 checkUnnamed1597(o.endpoints); | 1924 checkUnnamed1598(o.endpoints); |
| 1789 checkUnnamed1598(o.enums); | 1925 checkUnnamed1599(o.enums); |
| 1790 checkExperimental(o.experimental); | 1926 checkExperimental(o.experimental); |
| 1791 checkHttp(o.http); | 1927 checkHttp(o.http); |
| 1792 unittest.expect(o.id, unittest.equals('foo')); | 1928 unittest.expect(o.id, unittest.equals('foo')); |
| 1793 checkLogging(o.logging); | 1929 checkLogging(o.logging); |
| 1794 checkUnnamed1599(o.logs); | 1930 checkUnnamed1600(o.logs); |
| 1795 checkUnnamed1600(o.metrics); | 1931 checkUnnamed1601(o.metrics); |
| 1796 checkUnnamed1601(o.monitoredResources); | 1932 checkUnnamed1602(o.monitoredResources); |
| 1797 checkMonitoring(o.monitoring); | 1933 checkMonitoring(o.monitoring); |
| 1798 unittest.expect(o.name, unittest.equals('foo')); | 1934 unittest.expect(o.name, unittest.equals('foo')); |
| 1799 unittest.expect(o.producerProjectId, unittest.equals('foo')); | 1935 unittest.expect(o.producerProjectId, unittest.equals('foo')); |
| 1936 checkQuota(o.quota); |
| 1800 checkSourceInfo(o.sourceInfo); | 1937 checkSourceInfo(o.sourceInfo); |
| 1801 checkSystemParameters(o.systemParameters); | 1938 checkSystemParameters(o.systemParameters); |
| 1802 checkUnnamed1602(o.systemTypes); | 1939 checkUnnamed1603(o.systemTypes); |
| 1803 unittest.expect(o.title, unittest.equals('foo')); | 1940 unittest.expect(o.title, unittest.equals('foo')); |
| 1804 checkUnnamed1603(o.types); | 1941 checkUnnamed1604(o.types); |
| 1805 checkUsage(o.usage); | 1942 checkUsage(o.usage); |
| 1806 checkVisibility(o.visibility); | 1943 checkVisibility(o.visibility); |
| 1807 } | 1944 } |
| 1808 buildCounterService--; | 1945 buildCounterService--; |
| 1809 } | 1946 } |
| 1810 | 1947 |
| 1811 core.int buildCounterSourceContext = 0; | 1948 core.int buildCounterSourceContext = 0; |
| 1812 buildSourceContext() { | 1949 buildSourceContext() { |
| 1813 var o = new api.SourceContext(); | 1950 var o = new api.SourceContext(); |
| 1814 buildCounterSourceContext++; | 1951 buildCounterSourceContext++; |
| 1815 if (buildCounterSourceContext < 3) { | 1952 if (buildCounterSourceContext < 3) { |
| 1816 o.fileName = "foo"; | 1953 o.fileName = "foo"; |
| 1817 } | 1954 } |
| 1818 buildCounterSourceContext--; | 1955 buildCounterSourceContext--; |
| 1819 return o; | 1956 return o; |
| 1820 } | 1957 } |
| 1821 | 1958 |
| 1822 checkSourceContext(api.SourceContext o) { | 1959 checkSourceContext(api.SourceContext o) { |
| 1823 buildCounterSourceContext++; | 1960 buildCounterSourceContext++; |
| 1824 if (buildCounterSourceContext < 3) { | 1961 if (buildCounterSourceContext < 3) { |
| 1825 unittest.expect(o.fileName, unittest.equals('foo')); | 1962 unittest.expect(o.fileName, unittest.equals('foo')); |
| 1826 } | 1963 } |
| 1827 buildCounterSourceContext--; | 1964 buildCounterSourceContext--; |
| 1828 } | 1965 } |
| 1829 | 1966 |
| 1830 buildUnnamed1604() { | 1967 buildUnnamed1605() { |
| 1831 var o = new core.Map<core.String, core.Object>(); | 1968 var o = new core.Map<core.String, core.Object>(); |
| 1832 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1969 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1833 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1970 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1834 return o; | 1971 return o; |
| 1835 } | 1972 } |
| 1836 | 1973 |
| 1837 checkUnnamed1604(core.Map<core.String, core.Object> o) { | 1974 checkUnnamed1605(core.Map<core.String, core.Object> o) { |
| 1838 unittest.expect(o, unittest.hasLength(2)); | 1975 unittest.expect(o, unittest.hasLength(2)); |
| 1839 var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLengt
h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"],
unittest.equals('foo')); | 1976 var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLengt
h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"],
unittest.equals('foo')); |
| 1840 var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLengt
h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"],
unittest.equals('foo')); | 1977 var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLengt
h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"],
unittest.equals('foo')); |
| 1841 } | 1978 } |
| 1842 | 1979 |
| 1843 buildUnnamed1605() { | 1980 buildUnnamed1606() { |
| 1844 var o = new core.List<core.Map<core.String, core.Object>>(); | 1981 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 1845 o.add(buildUnnamed1604()); | 1982 o.add(buildUnnamed1605()); |
| 1846 o.add(buildUnnamed1604()); | 1983 o.add(buildUnnamed1605()); |
| 1847 return o; | 1984 return o; |
| 1848 } | 1985 } |
| 1849 | 1986 |
| 1850 checkUnnamed1605(core.List<core.Map<core.String, core.Object>> o) { | 1987 checkUnnamed1606(core.List<core.Map<core.String, core.Object>> o) { |
| 1851 unittest.expect(o, unittest.hasLength(2)); | 1988 unittest.expect(o, unittest.hasLength(2)); |
| 1852 checkUnnamed1604(o[0]); | 1989 checkUnnamed1605(o[0]); |
| 1853 checkUnnamed1604(o[1]); | 1990 checkUnnamed1605(o[1]); |
| 1854 } | 1991 } |
| 1855 | 1992 |
| 1856 core.int buildCounterSourceInfo = 0; | 1993 core.int buildCounterSourceInfo = 0; |
| 1857 buildSourceInfo() { | 1994 buildSourceInfo() { |
| 1858 var o = new api.SourceInfo(); | 1995 var o = new api.SourceInfo(); |
| 1859 buildCounterSourceInfo++; | 1996 buildCounterSourceInfo++; |
| 1860 if (buildCounterSourceInfo < 3) { | 1997 if (buildCounterSourceInfo < 3) { |
| 1861 o.sourceFiles = buildUnnamed1605(); | 1998 o.sourceFiles = buildUnnamed1606(); |
| 1862 } | 1999 } |
| 1863 buildCounterSourceInfo--; | 2000 buildCounterSourceInfo--; |
| 1864 return o; | 2001 return o; |
| 1865 } | 2002 } |
| 1866 | 2003 |
| 1867 checkSourceInfo(api.SourceInfo o) { | 2004 checkSourceInfo(api.SourceInfo o) { |
| 1868 buildCounterSourceInfo++; | 2005 buildCounterSourceInfo++; |
| 1869 if (buildCounterSourceInfo < 3) { | 2006 if (buildCounterSourceInfo < 3) { |
| 1870 checkUnnamed1605(o.sourceFiles); | 2007 checkUnnamed1606(o.sourceFiles); |
| 1871 } | 2008 } |
| 1872 buildCounterSourceInfo--; | 2009 buildCounterSourceInfo--; |
| 1873 } | 2010 } |
| 1874 | 2011 |
| 1875 buildUnnamed1606() { | 2012 buildUnnamed1607() { |
| 1876 var o = new core.Map<core.String, core.Object>(); | 2013 var o = new core.Map<core.String, core.Object>(); |
| 1877 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2014 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1878 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2015 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1879 return o; | 2016 return o; |
| 1880 } | 2017 } |
| 1881 | 2018 |
| 1882 checkUnnamed1606(core.Map<core.String, core.Object> o) { | 2019 checkUnnamed1607(core.Map<core.String, core.Object> o) { |
| 1883 unittest.expect(o, unittest.hasLength(2)); | 2020 unittest.expect(o, unittest.hasLength(2)); |
| 1884 var casted9 = (o["x"]) as core.Map; unittest.expect(casted9, unittest.hasLengt
h(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"],
unittest.equals('foo')); | 2021 var casted9 = (o["x"]) as core.Map; unittest.expect(casted9, unittest.hasLengt
h(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"],
unittest.equals('foo')); |
| 1885 var casted10 = (o["y"]) as core.Map; unittest.expect(casted10, unittest.hasLen
gth(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["stri
ng"], unittest.equals('foo')); | 2022 var casted10 = (o["y"]) as core.Map; unittest.expect(casted10, unittest.hasLen
gth(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["stri
ng"], unittest.equals('foo')); |
| 1886 } | 2023 } |
| 1887 | 2024 |
| 1888 buildUnnamed1607() { | 2025 buildUnnamed1608() { |
| 1889 var o = new core.List<core.Map<core.String, core.Object>>(); | 2026 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 1890 o.add(buildUnnamed1606()); | 2027 o.add(buildUnnamed1607()); |
| 1891 o.add(buildUnnamed1606()); | 2028 o.add(buildUnnamed1607()); |
| 1892 return o; | 2029 return o; |
| 1893 } | 2030 } |
| 1894 | 2031 |
| 1895 checkUnnamed1607(core.List<core.Map<core.String, core.Object>> o) { | 2032 checkUnnamed1608(core.List<core.Map<core.String, core.Object>> o) { |
| 1896 unittest.expect(o, unittest.hasLength(2)); | 2033 unittest.expect(o, unittest.hasLength(2)); |
| 1897 checkUnnamed1606(o[0]); | 2034 checkUnnamed1607(o[0]); |
| 1898 checkUnnamed1606(o[1]); | 2035 checkUnnamed1607(o[1]); |
| 1899 } | 2036 } |
| 1900 | 2037 |
| 1901 core.int buildCounterStatus = 0; | 2038 core.int buildCounterStatus = 0; |
| 1902 buildStatus() { | 2039 buildStatus() { |
| 1903 var o = new api.Status(); | 2040 var o = new api.Status(); |
| 1904 buildCounterStatus++; | 2041 buildCounterStatus++; |
| 1905 if (buildCounterStatus < 3) { | 2042 if (buildCounterStatus < 3) { |
| 1906 o.code = 42; | 2043 o.code = 42; |
| 1907 o.details = buildUnnamed1607(); | 2044 o.details = buildUnnamed1608(); |
| 1908 o.message = "foo"; | 2045 o.message = "foo"; |
| 1909 } | 2046 } |
| 1910 buildCounterStatus--; | 2047 buildCounterStatus--; |
| 1911 return o; | 2048 return o; |
| 1912 } | 2049 } |
| 1913 | 2050 |
| 1914 checkStatus(api.Status o) { | 2051 checkStatus(api.Status o) { |
| 1915 buildCounterStatus++; | 2052 buildCounterStatus++; |
| 1916 if (buildCounterStatus < 3) { | 2053 if (buildCounterStatus < 3) { |
| 1917 unittest.expect(o.code, unittest.equals(42)); | 2054 unittest.expect(o.code, unittest.equals(42)); |
| 1918 checkUnnamed1607(o.details); | 2055 checkUnnamed1608(o.details); |
| 1919 unittest.expect(o.message, unittest.equals('foo')); | 2056 unittest.expect(o.message, unittest.equals('foo')); |
| 1920 } | 2057 } |
| 1921 buildCounterStatus--; | 2058 buildCounterStatus--; |
| 1922 } | 2059 } |
| 1923 | 2060 |
| 1924 core.int buildCounterStep = 0; | 2061 core.int buildCounterStep = 0; |
| 1925 buildStep() { | 2062 buildStep() { |
| 1926 var o = new api.Step(); | 2063 var o = new api.Step(); |
| 1927 buildCounterStep++; | 2064 buildCounterStep++; |
| 1928 if (buildCounterStep < 3) { | 2065 if (buildCounterStep < 3) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 1958 checkSystemParameter(api.SystemParameter o) { | 2095 checkSystemParameter(api.SystemParameter o) { |
| 1959 buildCounterSystemParameter++; | 2096 buildCounterSystemParameter++; |
| 1960 if (buildCounterSystemParameter < 3) { | 2097 if (buildCounterSystemParameter < 3) { |
| 1961 unittest.expect(o.httpHeader, unittest.equals('foo')); | 2098 unittest.expect(o.httpHeader, unittest.equals('foo')); |
| 1962 unittest.expect(o.name, unittest.equals('foo')); | 2099 unittest.expect(o.name, unittest.equals('foo')); |
| 1963 unittest.expect(o.urlQueryParameter, unittest.equals('foo')); | 2100 unittest.expect(o.urlQueryParameter, unittest.equals('foo')); |
| 1964 } | 2101 } |
| 1965 buildCounterSystemParameter--; | 2102 buildCounterSystemParameter--; |
| 1966 } | 2103 } |
| 1967 | 2104 |
| 1968 buildUnnamed1608() { | 2105 buildUnnamed1609() { |
| 1969 var o = new core.List<api.SystemParameter>(); | 2106 var o = new core.List<api.SystemParameter>(); |
| 1970 o.add(buildSystemParameter()); | 2107 o.add(buildSystemParameter()); |
| 1971 o.add(buildSystemParameter()); | 2108 o.add(buildSystemParameter()); |
| 1972 return o; | 2109 return o; |
| 1973 } | 2110 } |
| 1974 | 2111 |
| 1975 checkUnnamed1608(core.List<api.SystemParameter> o) { | 2112 checkUnnamed1609(core.List<api.SystemParameter> o) { |
| 1976 unittest.expect(o, unittest.hasLength(2)); | 2113 unittest.expect(o, unittest.hasLength(2)); |
| 1977 checkSystemParameter(o[0]); | 2114 checkSystemParameter(o[0]); |
| 1978 checkSystemParameter(o[1]); | 2115 checkSystemParameter(o[1]); |
| 1979 } | 2116 } |
| 1980 | 2117 |
| 1981 core.int buildCounterSystemParameterRule = 0; | 2118 core.int buildCounterSystemParameterRule = 0; |
| 1982 buildSystemParameterRule() { | 2119 buildSystemParameterRule() { |
| 1983 var o = new api.SystemParameterRule(); | 2120 var o = new api.SystemParameterRule(); |
| 1984 buildCounterSystemParameterRule++; | 2121 buildCounterSystemParameterRule++; |
| 1985 if (buildCounterSystemParameterRule < 3) { | 2122 if (buildCounterSystemParameterRule < 3) { |
| 1986 o.parameters = buildUnnamed1608(); | 2123 o.parameters = buildUnnamed1609(); |
| 1987 o.selector = "foo"; | 2124 o.selector = "foo"; |
| 1988 } | 2125 } |
| 1989 buildCounterSystemParameterRule--; | 2126 buildCounterSystemParameterRule--; |
| 1990 return o; | 2127 return o; |
| 1991 } | 2128 } |
| 1992 | 2129 |
| 1993 checkSystemParameterRule(api.SystemParameterRule o) { | 2130 checkSystemParameterRule(api.SystemParameterRule o) { |
| 1994 buildCounterSystemParameterRule++; | 2131 buildCounterSystemParameterRule++; |
| 1995 if (buildCounterSystemParameterRule < 3) { | 2132 if (buildCounterSystemParameterRule < 3) { |
| 1996 checkUnnamed1608(o.parameters); | 2133 checkUnnamed1609(o.parameters); |
| 1997 unittest.expect(o.selector, unittest.equals('foo')); | 2134 unittest.expect(o.selector, unittest.equals('foo')); |
| 1998 } | 2135 } |
| 1999 buildCounterSystemParameterRule--; | 2136 buildCounterSystemParameterRule--; |
| 2000 } | 2137 } |
| 2001 | 2138 |
| 2002 buildUnnamed1609() { | 2139 buildUnnamed1610() { |
| 2003 var o = new core.List<api.SystemParameterRule>(); | 2140 var o = new core.List<api.SystemParameterRule>(); |
| 2004 o.add(buildSystemParameterRule()); | 2141 o.add(buildSystemParameterRule()); |
| 2005 o.add(buildSystemParameterRule()); | 2142 o.add(buildSystemParameterRule()); |
| 2006 return o; | 2143 return o; |
| 2007 } | 2144 } |
| 2008 | 2145 |
| 2009 checkUnnamed1609(core.List<api.SystemParameterRule> o) { | 2146 checkUnnamed1610(core.List<api.SystemParameterRule> o) { |
| 2010 unittest.expect(o, unittest.hasLength(2)); | 2147 unittest.expect(o, unittest.hasLength(2)); |
| 2011 checkSystemParameterRule(o[0]); | 2148 checkSystemParameterRule(o[0]); |
| 2012 checkSystemParameterRule(o[1]); | 2149 checkSystemParameterRule(o[1]); |
| 2013 } | 2150 } |
| 2014 | 2151 |
| 2015 core.int buildCounterSystemParameters = 0; | 2152 core.int buildCounterSystemParameters = 0; |
| 2016 buildSystemParameters() { | 2153 buildSystemParameters() { |
| 2017 var o = new api.SystemParameters(); | 2154 var o = new api.SystemParameters(); |
| 2018 buildCounterSystemParameters++; | 2155 buildCounterSystemParameters++; |
| 2019 if (buildCounterSystemParameters < 3) { | 2156 if (buildCounterSystemParameters < 3) { |
| 2020 o.rules = buildUnnamed1609(); | 2157 o.rules = buildUnnamed1610(); |
| 2021 } | 2158 } |
| 2022 buildCounterSystemParameters--; | 2159 buildCounterSystemParameters--; |
| 2023 return o; | 2160 return o; |
| 2024 } | 2161 } |
| 2025 | 2162 |
| 2026 checkSystemParameters(api.SystemParameters o) { | 2163 checkSystemParameters(api.SystemParameters o) { |
| 2027 buildCounterSystemParameters++; | 2164 buildCounterSystemParameters++; |
| 2028 if (buildCounterSystemParameters < 3) { | 2165 if (buildCounterSystemParameters < 3) { |
| 2029 checkUnnamed1609(o.rules); | 2166 checkUnnamed1610(o.rules); |
| 2030 } | 2167 } |
| 2031 buildCounterSystemParameters--; | 2168 buildCounterSystemParameters--; |
| 2032 } | 2169 } |
| 2033 | 2170 |
| 2034 buildUnnamed1610() { | 2171 buildUnnamed1611() { |
| 2035 var o = new core.List<api.Field>(); | 2172 var o = new core.List<api.Field>(); |
| 2036 o.add(buildField()); | 2173 o.add(buildField()); |
| 2037 o.add(buildField()); | 2174 o.add(buildField()); |
| 2038 return o; | 2175 return o; |
| 2039 } | 2176 } |
| 2040 | 2177 |
| 2041 checkUnnamed1610(core.List<api.Field> o) { | 2178 checkUnnamed1611(core.List<api.Field> o) { |
| 2042 unittest.expect(o, unittest.hasLength(2)); | 2179 unittest.expect(o, unittest.hasLength(2)); |
| 2043 checkField(o[0]); | 2180 checkField(o[0]); |
| 2044 checkField(o[1]); | 2181 checkField(o[1]); |
| 2045 } | 2182 } |
| 2046 | 2183 |
| 2047 buildUnnamed1611() { | 2184 buildUnnamed1612() { |
| 2048 var o = new core.List<core.String>(); | 2185 var o = new core.List<core.String>(); |
| 2049 o.add("foo"); | 2186 o.add("foo"); |
| 2050 o.add("foo"); | 2187 o.add("foo"); |
| 2051 return o; | 2188 return o; |
| 2052 } | 2189 } |
| 2053 | 2190 |
| 2054 checkUnnamed1611(core.List<core.String> o) { | 2191 checkUnnamed1612(core.List<core.String> o) { |
| 2055 unittest.expect(o, unittest.hasLength(2)); | 2192 unittest.expect(o, unittest.hasLength(2)); |
| 2056 unittest.expect(o[0], unittest.equals('foo')); | 2193 unittest.expect(o[0], unittest.equals('foo')); |
| 2057 unittest.expect(o[1], unittest.equals('foo')); | 2194 unittest.expect(o[1], unittest.equals('foo')); |
| 2058 } | 2195 } |
| 2059 | 2196 |
| 2060 buildUnnamed1612() { | 2197 buildUnnamed1613() { |
| 2061 var o = new core.List<api.Option>(); | 2198 var o = new core.List<api.Option>(); |
| 2062 o.add(buildOption()); | 2199 o.add(buildOption()); |
| 2063 o.add(buildOption()); | 2200 o.add(buildOption()); |
| 2064 return o; | 2201 return o; |
| 2065 } | 2202 } |
| 2066 | 2203 |
| 2067 checkUnnamed1612(core.List<api.Option> o) { | 2204 checkUnnamed1613(core.List<api.Option> o) { |
| 2068 unittest.expect(o, unittest.hasLength(2)); | 2205 unittest.expect(o, unittest.hasLength(2)); |
| 2069 checkOption(o[0]); | 2206 checkOption(o[0]); |
| 2070 checkOption(o[1]); | 2207 checkOption(o[1]); |
| 2071 } | 2208 } |
| 2072 | 2209 |
| 2073 core.int buildCounterType = 0; | 2210 core.int buildCounterType = 0; |
| 2074 buildType() { | 2211 buildType() { |
| 2075 var o = new api.Type(); | 2212 var o = new api.Type(); |
| 2076 buildCounterType++; | 2213 buildCounterType++; |
| 2077 if (buildCounterType < 3) { | 2214 if (buildCounterType < 3) { |
| 2078 o.fields = buildUnnamed1610(); | 2215 o.fields = buildUnnamed1611(); |
| 2079 o.name = "foo"; | 2216 o.name = "foo"; |
| 2080 o.oneofs = buildUnnamed1611(); | 2217 o.oneofs = buildUnnamed1612(); |
| 2081 o.options = buildUnnamed1612(); | 2218 o.options = buildUnnamed1613(); |
| 2082 o.sourceContext = buildSourceContext(); | 2219 o.sourceContext = buildSourceContext(); |
| 2083 o.syntax = "foo"; | 2220 o.syntax = "foo"; |
| 2084 } | 2221 } |
| 2085 buildCounterType--; | 2222 buildCounterType--; |
| 2086 return o; | 2223 return o; |
| 2087 } | 2224 } |
| 2088 | 2225 |
| 2089 checkType(api.Type o) { | 2226 checkType(api.Type o) { |
| 2090 buildCounterType++; | 2227 buildCounterType++; |
| 2091 if (buildCounterType < 3) { | 2228 if (buildCounterType < 3) { |
| 2092 checkUnnamed1610(o.fields); | 2229 checkUnnamed1611(o.fields); |
| 2093 unittest.expect(o.name, unittest.equals('foo')); | 2230 unittest.expect(o.name, unittest.equals('foo')); |
| 2094 checkUnnamed1611(o.oneofs); | 2231 checkUnnamed1612(o.oneofs); |
| 2095 checkUnnamed1612(o.options); | 2232 checkUnnamed1613(o.options); |
| 2096 checkSourceContext(o.sourceContext); | 2233 checkSourceContext(o.sourceContext); |
| 2097 unittest.expect(o.syntax, unittest.equals('foo')); | 2234 unittest.expect(o.syntax, unittest.equals('foo')); |
| 2098 } | 2235 } |
| 2099 buildCounterType--; | 2236 buildCounterType--; |
| 2100 } | 2237 } |
| 2101 | 2238 |
| 2102 buildUnnamed1613() { | 2239 buildUnnamed1614() { |
| 2103 var o = new core.List<core.String>(); | 2240 var o = new core.List<core.String>(); |
| 2104 o.add("foo"); | 2241 o.add("foo"); |
| 2105 o.add("foo"); | 2242 o.add("foo"); |
| 2106 return o; | 2243 return o; |
| 2107 } | 2244 } |
| 2108 | 2245 |
| 2109 checkUnnamed1613(core.List<core.String> o) { | 2246 checkUnnamed1614(core.List<core.String> o) { |
| 2110 unittest.expect(o, unittest.hasLength(2)); | 2247 unittest.expect(o, unittest.hasLength(2)); |
| 2111 unittest.expect(o[0], unittest.equals('foo')); | 2248 unittest.expect(o[0], unittest.equals('foo')); |
| 2112 unittest.expect(o[1], unittest.equals('foo')); | 2249 unittest.expect(o[1], unittest.equals('foo')); |
| 2113 } | 2250 } |
| 2114 | 2251 |
| 2115 buildUnnamed1614() { | 2252 buildUnnamed1615() { |
| 2116 var o = new core.List<api.UsageRule>(); | 2253 var o = new core.List<api.UsageRule>(); |
| 2117 o.add(buildUsageRule()); | 2254 o.add(buildUsageRule()); |
| 2118 o.add(buildUsageRule()); | 2255 o.add(buildUsageRule()); |
| 2119 return o; | 2256 return o; |
| 2120 } | 2257 } |
| 2121 | 2258 |
| 2122 checkUnnamed1614(core.List<api.UsageRule> o) { | 2259 checkUnnamed1615(core.List<api.UsageRule> o) { |
| 2123 unittest.expect(o, unittest.hasLength(2)); | 2260 unittest.expect(o, unittest.hasLength(2)); |
| 2124 checkUsageRule(o[0]); | 2261 checkUsageRule(o[0]); |
| 2125 checkUsageRule(o[1]); | 2262 checkUsageRule(o[1]); |
| 2126 } | 2263 } |
| 2127 | 2264 |
| 2128 core.int buildCounterUsage = 0; | 2265 core.int buildCounterUsage = 0; |
| 2129 buildUsage() { | 2266 buildUsage() { |
| 2130 var o = new api.Usage(); | 2267 var o = new api.Usage(); |
| 2131 buildCounterUsage++; | 2268 buildCounterUsage++; |
| 2132 if (buildCounterUsage < 3) { | 2269 if (buildCounterUsage < 3) { |
| 2133 o.producerNotificationChannel = "foo"; | 2270 o.producerNotificationChannel = "foo"; |
| 2134 o.requirements = buildUnnamed1613(); | 2271 o.requirements = buildUnnamed1614(); |
| 2135 o.rules = buildUnnamed1614(); | 2272 o.rules = buildUnnamed1615(); |
| 2136 } | 2273 } |
| 2137 buildCounterUsage--; | 2274 buildCounterUsage--; |
| 2138 return o; | 2275 return o; |
| 2139 } | 2276 } |
| 2140 | 2277 |
| 2141 checkUsage(api.Usage o) { | 2278 checkUsage(api.Usage o) { |
| 2142 buildCounterUsage++; | 2279 buildCounterUsage++; |
| 2143 if (buildCounterUsage < 3) { | 2280 if (buildCounterUsage < 3) { |
| 2144 unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); | 2281 unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); |
| 2145 checkUnnamed1613(o.requirements); | 2282 checkUnnamed1614(o.requirements); |
| 2146 checkUnnamed1614(o.rules); | 2283 checkUnnamed1615(o.rules); |
| 2147 } | 2284 } |
| 2148 buildCounterUsage--; | 2285 buildCounterUsage--; |
| 2149 } | 2286 } |
| 2150 | 2287 |
| 2151 core.int buildCounterUsageRule = 0; | 2288 core.int buildCounterUsageRule = 0; |
| 2152 buildUsageRule() { | 2289 buildUsageRule() { |
| 2153 var o = new api.UsageRule(); | 2290 var o = new api.UsageRule(); |
| 2154 buildCounterUsageRule++; | 2291 buildCounterUsageRule++; |
| 2155 if (buildCounterUsageRule < 3) { | 2292 if (buildCounterUsageRule < 3) { |
| 2156 o.allowUnregisteredCalls = true; | 2293 o.allowUnregisteredCalls = true; |
| 2157 o.selector = "foo"; | 2294 o.selector = "foo"; |
| 2158 } | 2295 } |
| 2159 buildCounterUsageRule--; | 2296 buildCounterUsageRule--; |
| 2160 return o; | 2297 return o; |
| 2161 } | 2298 } |
| 2162 | 2299 |
| 2163 checkUsageRule(api.UsageRule o) { | 2300 checkUsageRule(api.UsageRule o) { |
| 2164 buildCounterUsageRule++; | 2301 buildCounterUsageRule++; |
| 2165 if (buildCounterUsageRule < 3) { | 2302 if (buildCounterUsageRule < 3) { |
| 2166 unittest.expect(o.allowUnregisteredCalls, unittest.isTrue); | 2303 unittest.expect(o.allowUnregisteredCalls, unittest.isTrue); |
| 2167 unittest.expect(o.selector, unittest.equals('foo')); | 2304 unittest.expect(o.selector, unittest.equals('foo')); |
| 2168 } | 2305 } |
| 2169 buildCounterUsageRule--; | 2306 buildCounterUsageRule--; |
| 2170 } | 2307 } |
| 2171 | 2308 |
| 2172 buildUnnamed1615() { | 2309 buildUnnamed1616() { |
| 2173 var o = new core.List<api.VisibilityRule>(); | 2310 var o = new core.List<api.VisibilityRule>(); |
| 2174 o.add(buildVisibilityRule()); | 2311 o.add(buildVisibilityRule()); |
| 2175 o.add(buildVisibilityRule()); | 2312 o.add(buildVisibilityRule()); |
| 2176 return o; | 2313 return o; |
| 2177 } | 2314 } |
| 2178 | 2315 |
| 2179 checkUnnamed1615(core.List<api.VisibilityRule> o) { | 2316 checkUnnamed1616(core.List<api.VisibilityRule> o) { |
| 2180 unittest.expect(o, unittest.hasLength(2)); | 2317 unittest.expect(o, unittest.hasLength(2)); |
| 2181 checkVisibilityRule(o[0]); | 2318 checkVisibilityRule(o[0]); |
| 2182 checkVisibilityRule(o[1]); | 2319 checkVisibilityRule(o[1]); |
| 2183 } | 2320 } |
| 2184 | 2321 |
| 2185 core.int buildCounterVisibility = 0; | 2322 core.int buildCounterVisibility = 0; |
| 2186 buildVisibility() { | 2323 buildVisibility() { |
| 2187 var o = new api.Visibility(); | 2324 var o = new api.Visibility(); |
| 2188 buildCounterVisibility++; | 2325 buildCounterVisibility++; |
| 2189 if (buildCounterVisibility < 3) { | 2326 if (buildCounterVisibility < 3) { |
| 2190 o.rules = buildUnnamed1615(); | 2327 o.rules = buildUnnamed1616(); |
| 2191 } | 2328 } |
| 2192 buildCounterVisibility--; | 2329 buildCounterVisibility--; |
| 2193 return o; | 2330 return o; |
| 2194 } | 2331 } |
| 2195 | 2332 |
| 2196 checkVisibility(api.Visibility o) { | 2333 checkVisibility(api.Visibility o) { |
| 2197 buildCounterVisibility++; | 2334 buildCounterVisibility++; |
| 2198 if (buildCounterVisibility < 3) { | 2335 if (buildCounterVisibility < 3) { |
| 2199 checkUnnamed1615(o.rules); | 2336 checkUnnamed1616(o.rules); |
| 2200 } | 2337 } |
| 2201 buildCounterVisibility--; | 2338 buildCounterVisibility--; |
| 2202 } | 2339 } |
| 2203 | 2340 |
| 2204 core.int buildCounterVisibilityRule = 0; | 2341 core.int buildCounterVisibilityRule = 0; |
| 2205 buildVisibilityRule() { | 2342 buildVisibilityRule() { |
| 2206 var o = new api.VisibilityRule(); | 2343 var o = new api.VisibilityRule(); |
| 2207 buildCounterVisibilityRule++; | 2344 buildCounterVisibilityRule++; |
| 2208 if (buildCounterVisibilityRule < 3) { | 2345 if (buildCounterVisibilityRule < 3) { |
| 2209 o.restriction = "foo"; | 2346 o.restriction = "foo"; |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2523 | 2660 |
| 2524 unittest.group("obj-schema-MetricDescriptor", () { | 2661 unittest.group("obj-schema-MetricDescriptor", () { |
| 2525 unittest.test("to-json--from-json", () { | 2662 unittest.test("to-json--from-json", () { |
| 2526 var o = buildMetricDescriptor(); | 2663 var o = buildMetricDescriptor(); |
| 2527 var od = new api.MetricDescriptor.fromJson(o.toJson()); | 2664 var od = new api.MetricDescriptor.fromJson(o.toJson()); |
| 2528 checkMetricDescriptor(od); | 2665 checkMetricDescriptor(od); |
| 2529 }); | 2666 }); |
| 2530 }); | 2667 }); |
| 2531 | 2668 |
| 2532 | 2669 |
| 2670 unittest.group("obj-schema-MetricRule", () { |
| 2671 unittest.test("to-json--from-json", () { |
| 2672 var o = buildMetricRule(); |
| 2673 var od = new api.MetricRule.fromJson(o.toJson()); |
| 2674 checkMetricRule(od); |
| 2675 }); |
| 2676 }); |
| 2677 |
| 2678 |
| 2533 unittest.group("obj-schema-Mixin", () { | 2679 unittest.group("obj-schema-Mixin", () { |
| 2534 unittest.test("to-json--from-json", () { | 2680 unittest.test("to-json--from-json", () { |
| 2535 var o = buildMixin(); | 2681 var o = buildMixin(); |
| 2536 var od = new api.Mixin.fromJson(o.toJson()); | 2682 var od = new api.Mixin.fromJson(o.toJson()); |
| 2537 checkMixin(od); | 2683 checkMixin(od); |
| 2538 }); | 2684 }); |
| 2539 }); | 2685 }); |
| 2540 | 2686 |
| 2541 | 2687 |
| 2542 unittest.group("obj-schema-MonitoredResourceDescriptor", () { | 2688 unittest.group("obj-schema-MonitoredResourceDescriptor", () { |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2613 | 2759 |
| 2614 unittest.group("obj-schema-PublishedService", () { | 2760 unittest.group("obj-schema-PublishedService", () { |
| 2615 unittest.test("to-json--from-json", () { | 2761 unittest.test("to-json--from-json", () { |
| 2616 var o = buildPublishedService(); | 2762 var o = buildPublishedService(); |
| 2617 var od = new api.PublishedService.fromJson(o.toJson()); | 2763 var od = new api.PublishedService.fromJson(o.toJson()); |
| 2618 checkPublishedService(od); | 2764 checkPublishedService(od); |
| 2619 }); | 2765 }); |
| 2620 }); | 2766 }); |
| 2621 | 2767 |
| 2622 | 2768 |
| 2769 unittest.group("obj-schema-Quota", () { |
| 2770 unittest.test("to-json--from-json", () { |
| 2771 var o = buildQuota(); |
| 2772 var od = new api.Quota.fromJson(o.toJson()); |
| 2773 checkQuota(od); |
| 2774 }); |
| 2775 }); |
| 2776 |
| 2777 |
| 2778 unittest.group("obj-schema-QuotaLimit", () { |
| 2779 unittest.test("to-json--from-json", () { |
| 2780 var o = buildQuotaLimit(); |
| 2781 var od = new api.QuotaLimit.fromJson(o.toJson()); |
| 2782 checkQuotaLimit(od); |
| 2783 }); |
| 2784 }); |
| 2785 |
| 2786 |
| 2623 unittest.group("obj-schema-SearchServicesResponse", () { | 2787 unittest.group("obj-schema-SearchServicesResponse", () { |
| 2624 unittest.test("to-json--from-json", () { | 2788 unittest.test("to-json--from-json", () { |
| 2625 var o = buildSearchServicesResponse(); | 2789 var o = buildSearchServicesResponse(); |
| 2626 var od = new api.SearchServicesResponse.fromJson(o.toJson()); | 2790 var od = new api.SearchServicesResponse.fromJson(o.toJson()); |
| 2627 checkSearchServicesResponse(od); | 2791 checkSearchServicesResponse(od); |
| 2628 }); | 2792 }); |
| 2629 }); | 2793 }); |
| 2630 | 2794 |
| 2631 | 2795 |
| 2632 unittest.group("obj-schema-Service", () { | 2796 unittest.group("obj-schema-Service", () { |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2943 res.search(pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest
.expectAsync(((api.SearchServicesResponse response) { | 3107 res.search(pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest
.expectAsync(((api.SearchServicesResponse response) { |
| 2944 checkSearchServicesResponse(response); | 3108 checkSearchServicesResponse(response); |
| 2945 }))); | 3109 }))); |
| 2946 }); | 3110 }); |
| 2947 | 3111 |
| 2948 }); | 3112 }); |
| 2949 | 3113 |
| 2950 | 3114 |
| 2951 } | 3115 } |
| 2952 | 3116 |
| OLD | NEW |