| OLD | NEW |
| 1 library googleapis.servicemanagement.v1.test; | 1 library googleapis.servicemanagement.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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 } | 63 } |
| 64 | 64 |
| 65 checkAdvice(api.Advice o) { | 65 checkAdvice(api.Advice o) { |
| 66 buildCounterAdvice++; | 66 buildCounterAdvice++; |
| 67 if (buildCounterAdvice < 3) { | 67 if (buildCounterAdvice < 3) { |
| 68 unittest.expect(o.description, unittest.equals('foo')); | 68 unittest.expect(o.description, unittest.equals('foo')); |
| 69 } | 69 } |
| 70 buildCounterAdvice--; | 70 buildCounterAdvice--; |
| 71 } | 71 } |
| 72 | 72 |
| 73 buildUnnamed1024() { | 73 buildUnnamed1051() { |
| 74 var o = new core.List<api.Method>(); | 74 var o = new core.List<api.Method>(); |
| 75 o.add(buildMethod()); | 75 o.add(buildMethod()); |
| 76 o.add(buildMethod()); | 76 o.add(buildMethod()); |
| 77 return o; | 77 return o; |
| 78 } | 78 } |
| 79 | 79 |
| 80 checkUnnamed1024(core.List<api.Method> o) { | 80 checkUnnamed1051(core.List<api.Method> o) { |
| 81 unittest.expect(o, unittest.hasLength(2)); | 81 unittest.expect(o, unittest.hasLength(2)); |
| 82 checkMethod(o[0]); | 82 checkMethod(o[0]); |
| 83 checkMethod(o[1]); | 83 checkMethod(o[1]); |
| 84 } | 84 } |
| 85 | 85 |
| 86 buildUnnamed1025() { | 86 buildUnnamed1052() { |
| 87 var o = new core.List<api.Mixin>(); | 87 var o = new core.List<api.Mixin>(); |
| 88 o.add(buildMixin()); | 88 o.add(buildMixin()); |
| 89 o.add(buildMixin()); | 89 o.add(buildMixin()); |
| 90 return o; | 90 return o; |
| 91 } | 91 } |
| 92 | 92 |
| 93 checkUnnamed1025(core.List<api.Mixin> o) { | 93 checkUnnamed1052(core.List<api.Mixin> o) { |
| 94 unittest.expect(o, unittest.hasLength(2)); | 94 unittest.expect(o, unittest.hasLength(2)); |
| 95 checkMixin(o[0]); | 95 checkMixin(o[0]); |
| 96 checkMixin(o[1]); | 96 checkMixin(o[1]); |
| 97 } | 97 } |
| 98 | 98 |
| 99 buildUnnamed1026() { | 99 buildUnnamed1053() { |
| 100 var o = new core.List<api.Option>(); | 100 var o = new core.List<api.Option>(); |
| 101 o.add(buildOption()); | 101 o.add(buildOption()); |
| 102 o.add(buildOption()); | 102 o.add(buildOption()); |
| 103 return o; | 103 return o; |
| 104 } | 104 } |
| 105 | 105 |
| 106 checkUnnamed1026(core.List<api.Option> o) { | 106 checkUnnamed1053(core.List<api.Option> o) { |
| 107 unittest.expect(o, unittest.hasLength(2)); | 107 unittest.expect(o, unittest.hasLength(2)); |
| 108 checkOption(o[0]); | 108 checkOption(o[0]); |
| 109 checkOption(o[1]); | 109 checkOption(o[1]); |
| 110 } | 110 } |
| 111 | 111 |
| 112 core.int buildCounterApi = 0; | 112 core.int buildCounterApi = 0; |
| 113 buildApi() { | 113 buildApi() { |
| 114 var o = new api.Api(); | 114 var o = new api.Api(); |
| 115 buildCounterApi++; | 115 buildCounterApi++; |
| 116 if (buildCounterApi < 3) { | 116 if (buildCounterApi < 3) { |
| 117 o.methods = buildUnnamed1024(); | 117 o.methods = buildUnnamed1051(); |
| 118 o.mixins = buildUnnamed1025(); | 118 o.mixins = buildUnnamed1052(); |
| 119 o.name = "foo"; | 119 o.name = "foo"; |
| 120 o.options = buildUnnamed1026(); | 120 o.options = buildUnnamed1053(); |
| 121 o.sourceContext = buildSourceContext(); | 121 o.sourceContext = buildSourceContext(); |
| 122 o.syntax = "foo"; | 122 o.syntax = "foo"; |
| 123 o.version = "foo"; | 123 o.version = "foo"; |
| 124 } | 124 } |
| 125 buildCounterApi--; | 125 buildCounterApi--; |
| 126 return o; | 126 return o; |
| 127 } | 127 } |
| 128 | 128 |
| 129 checkApi(api.Api o) { | 129 checkApi(api.Api o) { |
| 130 buildCounterApi++; | 130 buildCounterApi++; |
| 131 if (buildCounterApi < 3) { | 131 if (buildCounterApi < 3) { |
| 132 checkUnnamed1024(o.methods); | 132 checkUnnamed1051(o.methods); |
| 133 checkUnnamed1025(o.mixins); | 133 checkUnnamed1052(o.mixins); |
| 134 unittest.expect(o.name, unittest.equals('foo')); | 134 unittest.expect(o.name, unittest.equals('foo')); |
| 135 checkUnnamed1026(o.options); | 135 checkUnnamed1053(o.options); |
| 136 checkSourceContext(o.sourceContext); | 136 checkSourceContext(o.sourceContext); |
| 137 unittest.expect(o.syntax, unittest.equals('foo')); | 137 unittest.expect(o.syntax, unittest.equals('foo')); |
| 138 unittest.expect(o.version, unittest.equals('foo')); | 138 unittest.expect(o.version, unittest.equals('foo')); |
| 139 } | 139 } |
| 140 buildCounterApi--; | 140 buildCounterApi--; |
| 141 } | 141 } |
| 142 | 142 |
| 143 buildUnnamed1027() { | 143 buildUnnamed1054() { |
| 144 var o = new core.List<api.AuditLogConfig>(); | 144 var o = new core.List<api.AuditLogConfig>(); |
| 145 o.add(buildAuditLogConfig()); | 145 o.add(buildAuditLogConfig()); |
| 146 o.add(buildAuditLogConfig()); | 146 o.add(buildAuditLogConfig()); |
| 147 return o; | 147 return o; |
| 148 } | 148 } |
| 149 | 149 |
| 150 checkUnnamed1027(core.List<api.AuditLogConfig> o) { | 150 checkUnnamed1054(core.List<api.AuditLogConfig> o) { |
| 151 unittest.expect(o, unittest.hasLength(2)); | 151 unittest.expect(o, unittest.hasLength(2)); |
| 152 checkAuditLogConfig(o[0]); | 152 checkAuditLogConfig(o[0]); |
| 153 checkAuditLogConfig(o[1]); | 153 checkAuditLogConfig(o[1]); |
| 154 } | 154 } |
| 155 | 155 |
| 156 buildUnnamed1028() { | 156 buildUnnamed1055() { |
| 157 var o = new core.List<core.String>(); | 157 var o = new core.List<core.String>(); |
| 158 o.add("foo"); | 158 o.add("foo"); |
| 159 o.add("foo"); | 159 o.add("foo"); |
| 160 return o; | 160 return o; |
| 161 } | 161 } |
| 162 | 162 |
| 163 checkUnnamed1028(core.List<core.String> o) { | 163 checkUnnamed1055(core.List<core.String> o) { |
| 164 unittest.expect(o, unittest.hasLength(2)); | 164 unittest.expect(o, unittest.hasLength(2)); |
| 165 unittest.expect(o[0], unittest.equals('foo')); | 165 unittest.expect(o[0], unittest.equals('foo')); |
| 166 unittest.expect(o[1], unittest.equals('foo')); | 166 unittest.expect(o[1], unittest.equals('foo')); |
| 167 } | 167 } |
| 168 | 168 |
| 169 core.int buildCounterAuditConfig = 0; | 169 core.int buildCounterAuditConfig = 0; |
| 170 buildAuditConfig() { | 170 buildAuditConfig() { |
| 171 var o = new api.AuditConfig(); | 171 var o = new api.AuditConfig(); |
| 172 buildCounterAuditConfig++; | 172 buildCounterAuditConfig++; |
| 173 if (buildCounterAuditConfig < 3) { | 173 if (buildCounterAuditConfig < 3) { |
| 174 o.auditLogConfigs = buildUnnamed1027(); | 174 o.auditLogConfigs = buildUnnamed1054(); |
| 175 o.exemptedMembers = buildUnnamed1028(); | 175 o.exemptedMembers = buildUnnamed1055(); |
| 176 o.service = "foo"; | 176 o.service = "foo"; |
| 177 } | 177 } |
| 178 buildCounterAuditConfig--; | 178 buildCounterAuditConfig--; |
| 179 return o; | 179 return o; |
| 180 } | 180 } |
| 181 | 181 |
| 182 checkAuditConfig(api.AuditConfig o) { | 182 checkAuditConfig(api.AuditConfig o) { |
| 183 buildCounterAuditConfig++; | 183 buildCounterAuditConfig++; |
| 184 if (buildCounterAuditConfig < 3) { | 184 if (buildCounterAuditConfig < 3) { |
| 185 checkUnnamed1027(o.auditLogConfigs); | 185 checkUnnamed1054(o.auditLogConfigs); |
| 186 checkUnnamed1028(o.exemptedMembers); | 186 checkUnnamed1055(o.exemptedMembers); |
| 187 unittest.expect(o.service, unittest.equals('foo')); | 187 unittest.expect(o.service, unittest.equals('foo')); |
| 188 } | 188 } |
| 189 buildCounterAuditConfig--; | 189 buildCounterAuditConfig--; |
| 190 } | 190 } |
| 191 | 191 |
| 192 buildUnnamed1029() { | 192 buildUnnamed1056() { |
| 193 var o = new core.List<core.String>(); | 193 var o = new core.List<core.String>(); |
| 194 o.add("foo"); | 194 o.add("foo"); |
| 195 o.add("foo"); | 195 o.add("foo"); |
| 196 return o; | 196 return o; |
| 197 } | 197 } |
| 198 | 198 |
| 199 checkUnnamed1029(core.List<core.String> o) { | 199 checkUnnamed1056(core.List<core.String> o) { |
| 200 unittest.expect(o, unittest.hasLength(2)); | 200 unittest.expect(o, unittest.hasLength(2)); |
| 201 unittest.expect(o[0], unittest.equals('foo')); | 201 unittest.expect(o[0], unittest.equals('foo')); |
| 202 unittest.expect(o[1], unittest.equals('foo')); | 202 unittest.expect(o[1], unittest.equals('foo')); |
| 203 } | 203 } |
| 204 | 204 |
| 205 core.int buildCounterAuditLogConfig = 0; | 205 core.int buildCounterAuditLogConfig = 0; |
| 206 buildAuditLogConfig() { | 206 buildAuditLogConfig() { |
| 207 var o = new api.AuditLogConfig(); | 207 var o = new api.AuditLogConfig(); |
| 208 buildCounterAuditLogConfig++; | 208 buildCounterAuditLogConfig++; |
| 209 if (buildCounterAuditLogConfig < 3) { | 209 if (buildCounterAuditLogConfig < 3) { |
| 210 o.exemptedMembers = buildUnnamed1029(); | 210 o.exemptedMembers = buildUnnamed1056(); |
| 211 o.logType = "foo"; | 211 o.logType = "foo"; |
| 212 } | 212 } |
| 213 buildCounterAuditLogConfig--; | 213 buildCounterAuditLogConfig--; |
| 214 return o; | 214 return o; |
| 215 } | 215 } |
| 216 | 216 |
| 217 checkAuditLogConfig(api.AuditLogConfig o) { | 217 checkAuditLogConfig(api.AuditLogConfig o) { |
| 218 buildCounterAuditLogConfig++; | 218 buildCounterAuditLogConfig++; |
| 219 if (buildCounterAuditLogConfig < 3) { | 219 if (buildCounterAuditLogConfig < 3) { |
| 220 checkUnnamed1029(o.exemptedMembers); | 220 checkUnnamed1056(o.exemptedMembers); |
| 221 unittest.expect(o.logType, unittest.equals('foo')); | 221 unittest.expect(o.logType, unittest.equals('foo')); |
| 222 } | 222 } |
| 223 buildCounterAuditLogConfig--; | 223 buildCounterAuditLogConfig--; |
| 224 } | 224 } |
| 225 | 225 |
| 226 core.int buildCounterAuthProvider = 0; | 226 core.int buildCounterAuthProvider = 0; |
| 227 buildAuthProvider() { | 227 buildAuthProvider() { |
| 228 var o = new api.AuthProvider(); | 228 var o = new api.AuthProvider(); |
| 229 buildCounterAuthProvider++; | 229 buildCounterAuthProvider++; |
| 230 if (buildCounterAuthProvider < 3) { | 230 if (buildCounterAuthProvider < 3) { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 | 262 |
| 263 checkAuthRequirement(api.AuthRequirement o) { | 263 checkAuthRequirement(api.AuthRequirement o) { |
| 264 buildCounterAuthRequirement++; | 264 buildCounterAuthRequirement++; |
| 265 if (buildCounterAuthRequirement < 3) { | 265 if (buildCounterAuthRequirement < 3) { |
| 266 unittest.expect(o.audiences, unittest.equals('foo')); | 266 unittest.expect(o.audiences, unittest.equals('foo')); |
| 267 unittest.expect(o.providerId, unittest.equals('foo')); | 267 unittest.expect(o.providerId, unittest.equals('foo')); |
| 268 } | 268 } |
| 269 buildCounterAuthRequirement--; | 269 buildCounterAuthRequirement--; |
| 270 } | 270 } |
| 271 | 271 |
| 272 buildUnnamed1030() { | 272 buildUnnamed1057() { |
| 273 var o = new core.List<api.AuthProvider>(); | 273 var o = new core.List<api.AuthProvider>(); |
| 274 o.add(buildAuthProvider()); | 274 o.add(buildAuthProvider()); |
| 275 o.add(buildAuthProvider()); | 275 o.add(buildAuthProvider()); |
| 276 return o; | 276 return o; |
| 277 } | 277 } |
| 278 | 278 |
| 279 checkUnnamed1030(core.List<api.AuthProvider> o) { | 279 checkUnnamed1057(core.List<api.AuthProvider> o) { |
| 280 unittest.expect(o, unittest.hasLength(2)); | 280 unittest.expect(o, unittest.hasLength(2)); |
| 281 checkAuthProvider(o[0]); | 281 checkAuthProvider(o[0]); |
| 282 checkAuthProvider(o[1]); | 282 checkAuthProvider(o[1]); |
| 283 } | 283 } |
| 284 | 284 |
| 285 buildUnnamed1031() { | 285 buildUnnamed1058() { |
| 286 var o = new core.List<api.AuthenticationRule>(); | 286 var o = new core.List<api.AuthenticationRule>(); |
| 287 o.add(buildAuthenticationRule()); | 287 o.add(buildAuthenticationRule()); |
| 288 o.add(buildAuthenticationRule()); | 288 o.add(buildAuthenticationRule()); |
| 289 return o; | 289 return o; |
| 290 } | 290 } |
| 291 | 291 |
| 292 checkUnnamed1031(core.List<api.AuthenticationRule> o) { | 292 checkUnnamed1058(core.List<api.AuthenticationRule> o) { |
| 293 unittest.expect(o, unittest.hasLength(2)); | 293 unittest.expect(o, unittest.hasLength(2)); |
| 294 checkAuthenticationRule(o[0]); | 294 checkAuthenticationRule(o[0]); |
| 295 checkAuthenticationRule(o[1]); | 295 checkAuthenticationRule(o[1]); |
| 296 } | 296 } |
| 297 | 297 |
| 298 core.int buildCounterAuthentication = 0; | 298 core.int buildCounterAuthentication = 0; |
| 299 buildAuthentication() { | 299 buildAuthentication() { |
| 300 var o = new api.Authentication(); | 300 var o = new api.Authentication(); |
| 301 buildCounterAuthentication++; | 301 buildCounterAuthentication++; |
| 302 if (buildCounterAuthentication < 3) { | 302 if (buildCounterAuthentication < 3) { |
| 303 o.providers = buildUnnamed1030(); | 303 o.providers = buildUnnamed1057(); |
| 304 o.rules = buildUnnamed1031(); | 304 o.rules = buildUnnamed1058(); |
| 305 } | 305 } |
| 306 buildCounterAuthentication--; | 306 buildCounterAuthentication--; |
| 307 return o; | 307 return o; |
| 308 } | 308 } |
| 309 | 309 |
| 310 checkAuthentication(api.Authentication o) { | 310 checkAuthentication(api.Authentication o) { |
| 311 buildCounterAuthentication++; | 311 buildCounterAuthentication++; |
| 312 if (buildCounterAuthentication < 3) { | 312 if (buildCounterAuthentication < 3) { |
| 313 checkUnnamed1030(o.providers); | 313 checkUnnamed1057(o.providers); |
| 314 checkUnnamed1031(o.rules); | 314 checkUnnamed1058(o.rules); |
| 315 } | 315 } |
| 316 buildCounterAuthentication--; | 316 buildCounterAuthentication--; |
| 317 } | 317 } |
| 318 | 318 |
| 319 buildUnnamed1032() { | 319 buildUnnamed1059() { |
| 320 var o = new core.List<api.AuthRequirement>(); | 320 var o = new core.List<api.AuthRequirement>(); |
| 321 o.add(buildAuthRequirement()); | 321 o.add(buildAuthRequirement()); |
| 322 o.add(buildAuthRequirement()); | 322 o.add(buildAuthRequirement()); |
| 323 return o; | 323 return o; |
| 324 } | 324 } |
| 325 | 325 |
| 326 checkUnnamed1032(core.List<api.AuthRequirement> o) { | 326 checkUnnamed1059(core.List<api.AuthRequirement> o) { |
| 327 unittest.expect(o, unittest.hasLength(2)); | 327 unittest.expect(o, unittest.hasLength(2)); |
| 328 checkAuthRequirement(o[0]); | 328 checkAuthRequirement(o[0]); |
| 329 checkAuthRequirement(o[1]); | 329 checkAuthRequirement(o[1]); |
| 330 } | 330 } |
| 331 | 331 |
| 332 core.int buildCounterAuthenticationRule = 0; | 332 core.int buildCounterAuthenticationRule = 0; |
| 333 buildAuthenticationRule() { | 333 buildAuthenticationRule() { |
| 334 var o = new api.AuthenticationRule(); | 334 var o = new api.AuthenticationRule(); |
| 335 buildCounterAuthenticationRule++; | 335 buildCounterAuthenticationRule++; |
| 336 if (buildCounterAuthenticationRule < 3) { | 336 if (buildCounterAuthenticationRule < 3) { |
| 337 o.allowWithoutCredential = true; | 337 o.allowWithoutCredential = true; |
| 338 o.oauth = buildOAuthRequirements(); | 338 o.oauth = buildOAuthRequirements(); |
| 339 o.requirements = buildUnnamed1032(); | 339 o.requirements = buildUnnamed1059(); |
| 340 o.selector = "foo"; | 340 o.selector = "foo"; |
| 341 } | 341 } |
| 342 buildCounterAuthenticationRule--; | 342 buildCounterAuthenticationRule--; |
| 343 return o; | 343 return o; |
| 344 } | 344 } |
| 345 | 345 |
| 346 checkAuthenticationRule(api.AuthenticationRule o) { | 346 checkAuthenticationRule(api.AuthenticationRule o) { |
| 347 buildCounterAuthenticationRule++; | 347 buildCounterAuthenticationRule++; |
| 348 if (buildCounterAuthenticationRule < 3) { | 348 if (buildCounterAuthenticationRule < 3) { |
| 349 unittest.expect(o.allowWithoutCredential, unittest.isTrue); | 349 unittest.expect(o.allowWithoutCredential, unittest.isTrue); |
| 350 checkOAuthRequirements(o.oauth); | 350 checkOAuthRequirements(o.oauth); |
| 351 checkUnnamed1032(o.requirements); | 351 checkUnnamed1059(o.requirements); |
| 352 unittest.expect(o.selector, unittest.equals('foo')); | 352 unittest.expect(o.selector, unittest.equals('foo')); |
| 353 } | 353 } |
| 354 buildCounterAuthenticationRule--; | 354 buildCounterAuthenticationRule--; |
| 355 } | 355 } |
| 356 | 356 |
| 357 core.int buildCounterAuthorizationConfig = 0; | 357 core.int buildCounterAuthorizationConfig = 0; |
| 358 buildAuthorizationConfig() { | 358 buildAuthorizationConfig() { |
| 359 var o = new api.AuthorizationConfig(); | 359 var o = new api.AuthorizationConfig(); |
| 360 buildCounterAuthorizationConfig++; | 360 buildCounterAuthorizationConfig++; |
| 361 if (buildCounterAuthorizationConfig < 3) { | 361 if (buildCounterAuthorizationConfig < 3) { |
| 362 o.provider = "foo"; | 362 o.provider = "foo"; |
| 363 } | 363 } |
| 364 buildCounterAuthorizationConfig--; | 364 buildCounterAuthorizationConfig--; |
| 365 return o; | 365 return o; |
| 366 } | 366 } |
| 367 | 367 |
| 368 checkAuthorizationConfig(api.AuthorizationConfig o) { | 368 checkAuthorizationConfig(api.AuthorizationConfig o) { |
| 369 buildCounterAuthorizationConfig++; | 369 buildCounterAuthorizationConfig++; |
| 370 if (buildCounterAuthorizationConfig < 3) { | 370 if (buildCounterAuthorizationConfig < 3) { |
| 371 unittest.expect(o.provider, unittest.equals('foo')); | 371 unittest.expect(o.provider, unittest.equals('foo')); |
| 372 } | 372 } |
| 373 buildCounterAuthorizationConfig--; | 373 buildCounterAuthorizationConfig--; |
| 374 } | 374 } |
| 375 | 375 |
| 376 buildUnnamed1033() { | 376 buildUnnamed1060() { |
| 377 var o = new core.List<api.BackendRule>(); | 377 var o = new core.List<api.BackendRule>(); |
| 378 o.add(buildBackendRule()); | 378 o.add(buildBackendRule()); |
| 379 o.add(buildBackendRule()); | 379 o.add(buildBackendRule()); |
| 380 return o; | 380 return o; |
| 381 } | 381 } |
| 382 | 382 |
| 383 checkUnnamed1033(core.List<api.BackendRule> o) { | 383 checkUnnamed1060(core.List<api.BackendRule> o) { |
| 384 unittest.expect(o, unittest.hasLength(2)); | 384 unittest.expect(o, unittest.hasLength(2)); |
| 385 checkBackendRule(o[0]); | 385 checkBackendRule(o[0]); |
| 386 checkBackendRule(o[1]); | 386 checkBackendRule(o[1]); |
| 387 } | 387 } |
| 388 | 388 |
| 389 core.int buildCounterBackend = 0; | 389 core.int buildCounterBackend = 0; |
| 390 buildBackend() { | 390 buildBackend() { |
| 391 var o = new api.Backend(); | 391 var o = new api.Backend(); |
| 392 buildCounterBackend++; | 392 buildCounterBackend++; |
| 393 if (buildCounterBackend < 3) { | 393 if (buildCounterBackend < 3) { |
| 394 o.rules = buildUnnamed1033(); | 394 o.rules = buildUnnamed1060(); |
| 395 } | 395 } |
| 396 buildCounterBackend--; | 396 buildCounterBackend--; |
| 397 return o; | 397 return o; |
| 398 } | 398 } |
| 399 | 399 |
| 400 checkBackend(api.Backend o) { | 400 checkBackend(api.Backend o) { |
| 401 buildCounterBackend++; | 401 buildCounterBackend++; |
| 402 if (buildCounterBackend < 3) { | 402 if (buildCounterBackend < 3) { |
| 403 checkUnnamed1033(o.rules); | 403 checkUnnamed1060(o.rules); |
| 404 } | 404 } |
| 405 buildCounterBackend--; | 405 buildCounterBackend--; |
| 406 } | 406 } |
| 407 | 407 |
| 408 core.int buildCounterBackendRule = 0; | 408 core.int buildCounterBackendRule = 0; |
| 409 buildBackendRule() { | 409 buildBackendRule() { |
| 410 var o = new api.BackendRule(); | 410 var o = new api.BackendRule(); |
| 411 buildCounterBackendRule++; | 411 buildCounterBackendRule++; |
| 412 if (buildCounterBackendRule < 3) { | 412 if (buildCounterBackendRule < 3) { |
| 413 o.address = "foo"; | 413 o.address = "foo"; |
| 414 o.deadline = 42.0; | 414 o.deadline = 42.0; |
| 415 o.selector = "foo"; | 415 o.selector = "foo"; |
| 416 } | 416 } |
| 417 buildCounterBackendRule--; | 417 buildCounterBackendRule--; |
| 418 return o; | 418 return o; |
| 419 } | 419 } |
| 420 | 420 |
| 421 checkBackendRule(api.BackendRule o) { | 421 checkBackendRule(api.BackendRule o) { |
| 422 buildCounterBackendRule++; | 422 buildCounterBackendRule++; |
| 423 if (buildCounterBackendRule < 3) { | 423 if (buildCounterBackendRule < 3) { |
| 424 unittest.expect(o.address, unittest.equals('foo')); | 424 unittest.expect(o.address, unittest.equals('foo')); |
| 425 unittest.expect(o.deadline, unittest.equals(42.0)); | 425 unittest.expect(o.deadline, unittest.equals(42.0)); |
| 426 unittest.expect(o.selector, unittest.equals('foo')); | 426 unittest.expect(o.selector, unittest.equals('foo')); |
| 427 } | 427 } |
| 428 buildCounterBackendRule--; | 428 buildCounterBackendRule--; |
| 429 } | 429 } |
| 430 | 430 |
| 431 buildUnnamed1034() { | 431 buildUnnamed1061() { |
| 432 var o = new core.List<core.String>(); | 432 var o = new core.List<core.String>(); |
| 433 o.add("foo"); | 433 o.add("foo"); |
| 434 o.add("foo"); | 434 o.add("foo"); |
| 435 return o; | 435 return o; |
| 436 } | 436 } |
| 437 | 437 |
| 438 checkUnnamed1034(core.List<core.String> o) { | 438 checkUnnamed1061(core.List<core.String> o) { |
| 439 unittest.expect(o, unittest.hasLength(2)); | 439 unittest.expect(o, unittest.hasLength(2)); |
| 440 unittest.expect(o[0], unittest.equals('foo')); | 440 unittest.expect(o[0], unittest.equals('foo')); |
| 441 unittest.expect(o[1], unittest.equals('foo')); | 441 unittest.expect(o[1], unittest.equals('foo')); |
| 442 } | 442 } |
| 443 | 443 |
| 444 core.int buildCounterBinding = 0; | 444 core.int buildCounterBinding = 0; |
| 445 buildBinding() { | 445 buildBinding() { |
| 446 var o = new api.Binding(); | 446 var o = new api.Binding(); |
| 447 buildCounterBinding++; | 447 buildCounterBinding++; |
| 448 if (buildCounterBinding < 3) { | 448 if (buildCounterBinding < 3) { |
| 449 o.members = buildUnnamed1034(); | 449 o.members = buildUnnamed1061(); |
| 450 o.role = "foo"; | 450 o.role = "foo"; |
| 451 } | 451 } |
| 452 buildCounterBinding--; | 452 buildCounterBinding--; |
| 453 return o; | 453 return o; |
| 454 } | 454 } |
| 455 | 455 |
| 456 checkBinding(api.Binding o) { | 456 checkBinding(api.Binding o) { |
| 457 buildCounterBinding++; | 457 buildCounterBinding++; |
| 458 if (buildCounterBinding < 3) { | 458 if (buildCounterBinding < 3) { |
| 459 checkUnnamed1034(o.members); | 459 checkUnnamed1061(o.members); |
| 460 unittest.expect(o.role, unittest.equals('foo')); | 460 unittest.expect(o.role, unittest.equals('foo')); |
| 461 } | 461 } |
| 462 buildCounterBinding--; | 462 buildCounterBinding--; |
| 463 } | 463 } |
| 464 | 464 |
| 465 buildUnnamed1035() { | 465 buildUnnamed1062() { |
| 466 var o = new core.List<api.ConfigChange>(); | 466 var o = new core.List<api.ConfigChange>(); |
| 467 o.add(buildConfigChange()); | 467 o.add(buildConfigChange()); |
| 468 o.add(buildConfigChange()); | 468 o.add(buildConfigChange()); |
| 469 return o; | 469 return o; |
| 470 } | 470 } |
| 471 | 471 |
| 472 checkUnnamed1035(core.List<api.ConfigChange> o) { | 472 checkUnnamed1062(core.List<api.ConfigChange> o) { |
| 473 unittest.expect(o, unittest.hasLength(2)); | 473 unittest.expect(o, unittest.hasLength(2)); |
| 474 checkConfigChange(o[0]); | 474 checkConfigChange(o[0]); |
| 475 checkConfigChange(o[1]); | 475 checkConfigChange(o[1]); |
| 476 } | 476 } |
| 477 | 477 |
| 478 core.int buildCounterChangeReport = 0; | 478 core.int buildCounterChangeReport = 0; |
| 479 buildChangeReport() { | 479 buildChangeReport() { |
| 480 var o = new api.ChangeReport(); | 480 var o = new api.ChangeReport(); |
| 481 buildCounterChangeReport++; | 481 buildCounterChangeReport++; |
| 482 if (buildCounterChangeReport < 3) { | 482 if (buildCounterChangeReport < 3) { |
| 483 o.configChanges = buildUnnamed1035(); | 483 o.configChanges = buildUnnamed1062(); |
| 484 } | 484 } |
| 485 buildCounterChangeReport--; | 485 buildCounterChangeReport--; |
| 486 return o; | 486 return o; |
| 487 } | 487 } |
| 488 | 488 |
| 489 checkChangeReport(api.ChangeReport o) { | 489 checkChangeReport(api.ChangeReport o) { |
| 490 buildCounterChangeReport++; | 490 buildCounterChangeReport++; |
| 491 if (buildCounterChangeReport < 3) { | 491 if (buildCounterChangeReport < 3) { |
| 492 checkUnnamed1035(o.configChanges); | 492 checkUnnamed1062(o.configChanges); |
| 493 } | 493 } |
| 494 buildCounterChangeReport--; | 494 buildCounterChangeReport--; |
| 495 } | 495 } |
| 496 | 496 |
| 497 core.int buildCounterCloudAuditOptions = 0; | 497 core.int buildCounterCloudAuditOptions = 0; |
| 498 buildCloudAuditOptions() { | 498 buildCloudAuditOptions() { |
| 499 var o = new api.CloudAuditOptions(); | 499 var o = new api.CloudAuditOptions(); |
| 500 buildCounterCloudAuditOptions++; | 500 buildCounterCloudAuditOptions++; |
| 501 if (buildCounterCloudAuditOptions < 3) { | 501 if (buildCounterCloudAuditOptions < 3) { |
| 502 } | 502 } |
| 503 buildCounterCloudAuditOptions--; | 503 buildCounterCloudAuditOptions--; |
| 504 return o; | 504 return o; |
| 505 } | 505 } |
| 506 | 506 |
| 507 checkCloudAuditOptions(api.CloudAuditOptions o) { | 507 checkCloudAuditOptions(api.CloudAuditOptions o) { |
| 508 buildCounterCloudAuditOptions++; | 508 buildCounterCloudAuditOptions++; |
| 509 if (buildCounterCloudAuditOptions < 3) { | 509 if (buildCounterCloudAuditOptions < 3) { |
| 510 } | 510 } |
| 511 buildCounterCloudAuditOptions--; | 511 buildCounterCloudAuditOptions--; |
| 512 } | 512 } |
| 513 | 513 |
| 514 buildUnnamed1036() { | 514 buildUnnamed1063() { |
| 515 var o = new core.List<core.String>(); | 515 var o = new core.List<core.String>(); |
| 516 o.add("foo"); | 516 o.add("foo"); |
| 517 o.add("foo"); | 517 o.add("foo"); |
| 518 return o; | 518 return o; |
| 519 } | 519 } |
| 520 | 520 |
| 521 checkUnnamed1036(core.List<core.String> o) { | 521 checkUnnamed1063(core.List<core.String> o) { |
| 522 unittest.expect(o, unittest.hasLength(2)); | 522 unittest.expect(o, unittest.hasLength(2)); |
| 523 unittest.expect(o[0], unittest.equals('foo')); | 523 unittest.expect(o[0], unittest.equals('foo')); |
| 524 unittest.expect(o[1], unittest.equals('foo')); | 524 unittest.expect(o[1], unittest.equals('foo')); |
| 525 } | 525 } |
| 526 | 526 |
| 527 core.int buildCounterCondition = 0; | 527 core.int buildCounterCondition = 0; |
| 528 buildCondition() { | 528 buildCondition() { |
| 529 var o = new api.Condition(); | 529 var o = new api.Condition(); |
| 530 buildCounterCondition++; | 530 buildCounterCondition++; |
| 531 if (buildCounterCondition < 3) { | 531 if (buildCounterCondition < 3) { |
| 532 o.iam = "foo"; | 532 o.iam = "foo"; |
| 533 o.op = "foo"; | 533 o.op = "foo"; |
| 534 o.svc = "foo"; | 534 o.svc = "foo"; |
| 535 o.sys = "foo"; | 535 o.sys = "foo"; |
| 536 o.value = "foo"; | 536 o.value = "foo"; |
| 537 o.values = buildUnnamed1036(); | 537 o.values = buildUnnamed1063(); |
| 538 } | 538 } |
| 539 buildCounterCondition--; | 539 buildCounterCondition--; |
| 540 return o; | 540 return o; |
| 541 } | 541 } |
| 542 | 542 |
| 543 checkCondition(api.Condition o) { | 543 checkCondition(api.Condition o) { |
| 544 buildCounterCondition++; | 544 buildCounterCondition++; |
| 545 if (buildCounterCondition < 3) { | 545 if (buildCounterCondition < 3) { |
| 546 unittest.expect(o.iam, unittest.equals('foo')); | 546 unittest.expect(o.iam, unittest.equals('foo')); |
| 547 unittest.expect(o.op, unittest.equals('foo')); | 547 unittest.expect(o.op, unittest.equals('foo')); |
| 548 unittest.expect(o.svc, unittest.equals('foo')); | 548 unittest.expect(o.svc, unittest.equals('foo')); |
| 549 unittest.expect(o.sys, unittest.equals('foo')); | 549 unittest.expect(o.sys, unittest.equals('foo')); |
| 550 unittest.expect(o.value, unittest.equals('foo')); | 550 unittest.expect(o.value, unittest.equals('foo')); |
| 551 checkUnnamed1036(o.values); | 551 checkUnnamed1063(o.values); |
| 552 } | 552 } |
| 553 buildCounterCondition--; | 553 buildCounterCondition--; |
| 554 } | 554 } |
| 555 | 555 |
| 556 buildUnnamed1037() { | 556 buildUnnamed1064() { |
| 557 var o = new core.List<api.Advice>(); | 557 var o = new core.List<api.Advice>(); |
| 558 o.add(buildAdvice()); | 558 o.add(buildAdvice()); |
| 559 o.add(buildAdvice()); | 559 o.add(buildAdvice()); |
| 560 return o; | 560 return o; |
| 561 } | 561 } |
| 562 | 562 |
| 563 checkUnnamed1037(core.List<api.Advice> o) { | 563 checkUnnamed1064(core.List<api.Advice> o) { |
| 564 unittest.expect(o, unittest.hasLength(2)); | 564 unittest.expect(o, unittest.hasLength(2)); |
| 565 checkAdvice(o[0]); | 565 checkAdvice(o[0]); |
| 566 checkAdvice(o[1]); | 566 checkAdvice(o[1]); |
| 567 } | 567 } |
| 568 | 568 |
| 569 core.int buildCounterConfigChange = 0; | 569 core.int buildCounterConfigChange = 0; |
| 570 buildConfigChange() { | 570 buildConfigChange() { |
| 571 var o = new api.ConfigChange(); | 571 var o = new api.ConfigChange(); |
| 572 buildCounterConfigChange++; | 572 buildCounterConfigChange++; |
| 573 if (buildCounterConfigChange < 3) { | 573 if (buildCounterConfigChange < 3) { |
| 574 o.advices = buildUnnamed1037(); | 574 o.advices = buildUnnamed1064(); |
| 575 o.changeType = "foo"; | 575 o.changeType = "foo"; |
| 576 o.element = "foo"; | 576 o.element = "foo"; |
| 577 o.newValue = "foo"; | 577 o.newValue = "foo"; |
| 578 o.oldValue = "foo"; | 578 o.oldValue = "foo"; |
| 579 } | 579 } |
| 580 buildCounterConfigChange--; | 580 buildCounterConfigChange--; |
| 581 return o; | 581 return o; |
| 582 } | 582 } |
| 583 | 583 |
| 584 checkConfigChange(api.ConfigChange o) { | 584 checkConfigChange(api.ConfigChange o) { |
| 585 buildCounterConfigChange++; | 585 buildCounterConfigChange++; |
| 586 if (buildCounterConfigChange < 3) { | 586 if (buildCounterConfigChange < 3) { |
| 587 checkUnnamed1037(o.advices); | 587 checkUnnamed1064(o.advices); |
| 588 unittest.expect(o.changeType, unittest.equals('foo')); | 588 unittest.expect(o.changeType, unittest.equals('foo')); |
| 589 unittest.expect(o.element, unittest.equals('foo')); | 589 unittest.expect(o.element, unittest.equals('foo')); |
| 590 unittest.expect(o.newValue, unittest.equals('foo')); | 590 unittest.expect(o.newValue, unittest.equals('foo')); |
| 591 unittest.expect(o.oldValue, unittest.equals('foo')); | 591 unittest.expect(o.oldValue, unittest.equals('foo')); |
| 592 } | 592 } |
| 593 buildCounterConfigChange--; | 593 buildCounterConfigChange--; |
| 594 } | 594 } |
| 595 | 595 |
| 596 core.int buildCounterConfigFile = 0; | 596 core.int buildCounterConfigFile = 0; |
| 597 buildConfigFile() { | 597 buildConfigFile() { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 628 } | 628 } |
| 629 | 629 |
| 630 checkConfigRef(api.ConfigRef o) { | 630 checkConfigRef(api.ConfigRef o) { |
| 631 buildCounterConfigRef++; | 631 buildCounterConfigRef++; |
| 632 if (buildCounterConfigRef < 3) { | 632 if (buildCounterConfigRef < 3) { |
| 633 unittest.expect(o.name, unittest.equals('foo')); | 633 unittest.expect(o.name, unittest.equals('foo')); |
| 634 } | 634 } |
| 635 buildCounterConfigRef--; | 635 buildCounterConfigRef--; |
| 636 } | 636 } |
| 637 | 637 |
| 638 buildUnnamed1038() { | 638 buildUnnamed1065() { |
| 639 var o = new core.List<api.ConfigFile>(); | 639 var o = new core.List<api.ConfigFile>(); |
| 640 o.add(buildConfigFile()); | 640 o.add(buildConfigFile()); |
| 641 o.add(buildConfigFile()); | 641 o.add(buildConfigFile()); |
| 642 return o; | 642 return o; |
| 643 } | 643 } |
| 644 | 644 |
| 645 checkUnnamed1038(core.List<api.ConfigFile> o) { | 645 checkUnnamed1065(core.List<api.ConfigFile> o) { |
| 646 unittest.expect(o, unittest.hasLength(2)); | 646 unittest.expect(o, unittest.hasLength(2)); |
| 647 checkConfigFile(o[0]); | 647 checkConfigFile(o[0]); |
| 648 checkConfigFile(o[1]); | 648 checkConfigFile(o[1]); |
| 649 } | 649 } |
| 650 | 650 |
| 651 core.int buildCounterConfigSource = 0; | 651 core.int buildCounterConfigSource = 0; |
| 652 buildConfigSource() { | 652 buildConfigSource() { |
| 653 var o = new api.ConfigSource(); | 653 var o = new api.ConfigSource(); |
| 654 buildCounterConfigSource++; | 654 buildCounterConfigSource++; |
| 655 if (buildCounterConfigSource < 3) { | 655 if (buildCounterConfigSource < 3) { |
| 656 o.files = buildUnnamed1038(); | 656 o.files = buildUnnamed1065(); |
| 657 o.id = "foo"; | 657 o.id = "foo"; |
| 658 } | 658 } |
| 659 buildCounterConfigSource--; | 659 buildCounterConfigSource--; |
| 660 return o; | 660 return o; |
| 661 } | 661 } |
| 662 | 662 |
| 663 checkConfigSource(api.ConfigSource o) { | 663 checkConfigSource(api.ConfigSource o) { |
| 664 buildCounterConfigSource++; | 664 buildCounterConfigSource++; |
| 665 if (buildCounterConfigSource < 3) { | 665 if (buildCounterConfigSource < 3) { |
| 666 checkUnnamed1038(o.files); | 666 checkUnnamed1065(o.files); |
| 667 unittest.expect(o.id, unittest.equals('foo')); | 667 unittest.expect(o.id, unittest.equals('foo')); |
| 668 } | 668 } |
| 669 buildCounterConfigSource--; | 669 buildCounterConfigSource--; |
| 670 } | 670 } |
| 671 | 671 |
| 672 buildUnnamed1039() { | 672 buildUnnamed1066() { |
| 673 var o = new core.List<api.ContextRule>(); | 673 var o = new core.List<api.ContextRule>(); |
| 674 o.add(buildContextRule()); | 674 o.add(buildContextRule()); |
| 675 o.add(buildContextRule()); | 675 o.add(buildContextRule()); |
| 676 return o; | 676 return o; |
| 677 } | 677 } |
| 678 | 678 |
| 679 checkUnnamed1039(core.List<api.ContextRule> o) { | 679 checkUnnamed1066(core.List<api.ContextRule> o) { |
| 680 unittest.expect(o, unittest.hasLength(2)); | 680 unittest.expect(o, unittest.hasLength(2)); |
| 681 checkContextRule(o[0]); | 681 checkContextRule(o[0]); |
| 682 checkContextRule(o[1]); | 682 checkContextRule(o[1]); |
| 683 } | 683 } |
| 684 | 684 |
| 685 core.int buildCounterContext = 0; | 685 core.int buildCounterContext = 0; |
| 686 buildContext() { | 686 buildContext() { |
| 687 var o = new api.Context(); | 687 var o = new api.Context(); |
| 688 buildCounterContext++; | 688 buildCounterContext++; |
| 689 if (buildCounterContext < 3) { | 689 if (buildCounterContext < 3) { |
| 690 o.rules = buildUnnamed1039(); | 690 o.rules = buildUnnamed1066(); |
| 691 } | 691 } |
| 692 buildCounterContext--; | 692 buildCounterContext--; |
| 693 return o; | 693 return o; |
| 694 } | 694 } |
| 695 | 695 |
| 696 checkContext(api.Context o) { | 696 checkContext(api.Context o) { |
| 697 buildCounterContext++; | 697 buildCounterContext++; |
| 698 if (buildCounterContext < 3) { | 698 if (buildCounterContext < 3) { |
| 699 checkUnnamed1039(o.rules); | 699 checkUnnamed1066(o.rules); |
| 700 } | 700 } |
| 701 buildCounterContext--; | 701 buildCounterContext--; |
| 702 } | 702 } |
| 703 | 703 |
| 704 buildUnnamed1040() { | 704 buildUnnamed1067() { |
| 705 var o = new core.List<core.String>(); | 705 var o = new core.List<core.String>(); |
| 706 o.add("foo"); | 706 o.add("foo"); |
| 707 o.add("foo"); | 707 o.add("foo"); |
| 708 return o; | 708 return o; |
| 709 } | 709 } |
| 710 | 710 |
| 711 checkUnnamed1040(core.List<core.String> o) { | 711 checkUnnamed1067(core.List<core.String> o) { |
| 712 unittest.expect(o, unittest.hasLength(2)); | 712 unittest.expect(o, unittest.hasLength(2)); |
| 713 unittest.expect(o[0], unittest.equals('foo')); | 713 unittest.expect(o[0], unittest.equals('foo')); |
| 714 unittest.expect(o[1], unittest.equals('foo')); | 714 unittest.expect(o[1], unittest.equals('foo')); |
| 715 } | 715 } |
| 716 | 716 |
| 717 buildUnnamed1041() { | 717 buildUnnamed1068() { |
| 718 var o = new core.List<core.String>(); | 718 var o = new core.List<core.String>(); |
| 719 o.add("foo"); | 719 o.add("foo"); |
| 720 o.add("foo"); | 720 o.add("foo"); |
| 721 return o; | 721 return o; |
| 722 } | 722 } |
| 723 | 723 |
| 724 checkUnnamed1041(core.List<core.String> o) { | 724 checkUnnamed1068(core.List<core.String> o) { |
| 725 unittest.expect(o, unittest.hasLength(2)); | 725 unittest.expect(o, unittest.hasLength(2)); |
| 726 unittest.expect(o[0], unittest.equals('foo')); | 726 unittest.expect(o[0], unittest.equals('foo')); |
| 727 unittest.expect(o[1], unittest.equals('foo')); | 727 unittest.expect(o[1], unittest.equals('foo')); |
| 728 } | 728 } |
| 729 | 729 |
| 730 core.int buildCounterContextRule = 0; | 730 core.int buildCounterContextRule = 0; |
| 731 buildContextRule() { | 731 buildContextRule() { |
| 732 var o = new api.ContextRule(); | 732 var o = new api.ContextRule(); |
| 733 buildCounterContextRule++; | 733 buildCounterContextRule++; |
| 734 if (buildCounterContextRule < 3) { | 734 if (buildCounterContextRule < 3) { |
| 735 o.provided = buildUnnamed1040(); | 735 o.provided = buildUnnamed1067(); |
| 736 o.requested = buildUnnamed1041(); | 736 o.requested = buildUnnamed1068(); |
| 737 o.selector = "foo"; | 737 o.selector = "foo"; |
| 738 } | 738 } |
| 739 buildCounterContextRule--; | 739 buildCounterContextRule--; |
| 740 return o; | 740 return o; |
| 741 } | 741 } |
| 742 | 742 |
| 743 checkContextRule(api.ContextRule o) { | 743 checkContextRule(api.ContextRule o) { |
| 744 buildCounterContextRule++; | 744 buildCounterContextRule++; |
| 745 if (buildCounterContextRule < 3) { | 745 if (buildCounterContextRule < 3) { |
| 746 checkUnnamed1040(o.provided); | 746 checkUnnamed1067(o.provided); |
| 747 checkUnnamed1041(o.requested); | 747 checkUnnamed1068(o.requested); |
| 748 unittest.expect(o.selector, unittest.equals('foo')); | 748 unittest.expect(o.selector, unittest.equals('foo')); |
| 749 } | 749 } |
| 750 buildCounterContextRule--; | 750 buildCounterContextRule--; |
| 751 } | 751 } |
| 752 | 752 |
| 753 core.int buildCounterControl = 0; | 753 core.int buildCounterControl = 0; |
| 754 buildControl() { | 754 buildControl() { |
| 755 var o = new api.Control(); | 755 var o = new api.Control(); |
| 756 buildCounterControl++; | 756 buildCounterControl++; |
| 757 if (buildCounterControl < 3) { | 757 if (buildCounterControl < 3) { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 783 | 783 |
| 784 checkCounterOptions(api.CounterOptions o) { | 784 checkCounterOptions(api.CounterOptions o) { |
| 785 buildCounterCounterOptions++; | 785 buildCounterCounterOptions++; |
| 786 if (buildCounterCounterOptions < 3) { | 786 if (buildCounterCounterOptions < 3) { |
| 787 unittest.expect(o.field, unittest.equals('foo')); | 787 unittest.expect(o.field, unittest.equals('foo')); |
| 788 unittest.expect(o.metric, unittest.equals('foo')); | 788 unittest.expect(o.metric, unittest.equals('foo')); |
| 789 } | 789 } |
| 790 buildCounterCounterOptions--; | 790 buildCounterCounterOptions--; |
| 791 } | 791 } |
| 792 | 792 |
| 793 buildUnnamed1042() { | 793 buildUnnamed1069() { |
| 794 var o = new core.List<api.CustomErrorRule>(); | 794 var o = new core.List<api.CustomErrorRule>(); |
| 795 o.add(buildCustomErrorRule()); | 795 o.add(buildCustomErrorRule()); |
| 796 o.add(buildCustomErrorRule()); | 796 o.add(buildCustomErrorRule()); |
| 797 return o; | 797 return o; |
| 798 } | 798 } |
| 799 | 799 |
| 800 checkUnnamed1042(core.List<api.CustomErrorRule> o) { | 800 checkUnnamed1069(core.List<api.CustomErrorRule> o) { |
| 801 unittest.expect(o, unittest.hasLength(2)); | 801 unittest.expect(o, unittest.hasLength(2)); |
| 802 checkCustomErrorRule(o[0]); | 802 checkCustomErrorRule(o[0]); |
| 803 checkCustomErrorRule(o[1]); | 803 checkCustomErrorRule(o[1]); |
| 804 } | 804 } |
| 805 | 805 |
| 806 buildUnnamed1043() { | 806 buildUnnamed1070() { |
| 807 var o = new core.List<core.String>(); | 807 var o = new core.List<core.String>(); |
| 808 o.add("foo"); | 808 o.add("foo"); |
| 809 o.add("foo"); | 809 o.add("foo"); |
| 810 return o; | 810 return o; |
| 811 } | 811 } |
| 812 | 812 |
| 813 checkUnnamed1043(core.List<core.String> o) { | 813 checkUnnamed1070(core.List<core.String> o) { |
| 814 unittest.expect(o, unittest.hasLength(2)); | 814 unittest.expect(o, unittest.hasLength(2)); |
| 815 unittest.expect(o[0], unittest.equals('foo')); | 815 unittest.expect(o[0], unittest.equals('foo')); |
| 816 unittest.expect(o[1], unittest.equals('foo')); | 816 unittest.expect(o[1], unittest.equals('foo')); |
| 817 } | 817 } |
| 818 | 818 |
| 819 core.int buildCounterCustomError = 0; | 819 core.int buildCounterCustomError = 0; |
| 820 buildCustomError() { | 820 buildCustomError() { |
| 821 var o = new api.CustomError(); | 821 var o = new api.CustomError(); |
| 822 buildCounterCustomError++; | 822 buildCounterCustomError++; |
| 823 if (buildCounterCustomError < 3) { | 823 if (buildCounterCustomError < 3) { |
| 824 o.rules = buildUnnamed1042(); | 824 o.rules = buildUnnamed1069(); |
| 825 o.types = buildUnnamed1043(); | 825 o.types = buildUnnamed1070(); |
| 826 } | 826 } |
| 827 buildCounterCustomError--; | 827 buildCounterCustomError--; |
| 828 return o; | 828 return o; |
| 829 } | 829 } |
| 830 | 830 |
| 831 checkCustomError(api.CustomError o) { | 831 checkCustomError(api.CustomError o) { |
| 832 buildCounterCustomError++; | 832 buildCounterCustomError++; |
| 833 if (buildCounterCustomError < 3) { | 833 if (buildCounterCustomError < 3) { |
| 834 checkUnnamed1042(o.rules); | 834 checkUnnamed1069(o.rules); |
| 835 checkUnnamed1043(o.types); | 835 checkUnnamed1070(o.types); |
| 836 } | 836 } |
| 837 buildCounterCustomError--; | 837 buildCounterCustomError--; |
| 838 } | 838 } |
| 839 | 839 |
| 840 core.int buildCounterCustomErrorRule = 0; | 840 core.int buildCounterCustomErrorRule = 0; |
| 841 buildCustomErrorRule() { | 841 buildCustomErrorRule() { |
| 842 var o = new api.CustomErrorRule(); | 842 var o = new api.CustomErrorRule(); |
| 843 buildCounterCustomErrorRule++; | 843 buildCounterCustomErrorRule++; |
| 844 if (buildCounterCustomErrorRule < 3) { | 844 if (buildCounterCustomErrorRule < 3) { |
| 845 o.isErrorType = true; | 845 o.isErrorType = true; |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 948 } | 948 } |
| 949 | 949 |
| 950 checkDisableServiceRequest(api.DisableServiceRequest o) { | 950 checkDisableServiceRequest(api.DisableServiceRequest o) { |
| 951 buildCounterDisableServiceRequest++; | 951 buildCounterDisableServiceRequest++; |
| 952 if (buildCounterDisableServiceRequest < 3) { | 952 if (buildCounterDisableServiceRequest < 3) { |
| 953 unittest.expect(o.consumerId, unittest.equals('foo')); | 953 unittest.expect(o.consumerId, unittest.equals('foo')); |
| 954 } | 954 } |
| 955 buildCounterDisableServiceRequest--; | 955 buildCounterDisableServiceRequest--; |
| 956 } | 956 } |
| 957 | 957 |
| 958 buildUnnamed1044() { | 958 buildUnnamed1071() { |
| 959 var o = new core.List<api.Page>(); | 959 var o = new core.List<api.Page>(); |
| 960 o.add(buildPage()); | 960 o.add(buildPage()); |
| 961 o.add(buildPage()); | 961 o.add(buildPage()); |
| 962 return o; | 962 return o; |
| 963 } | 963 } |
| 964 | 964 |
| 965 checkUnnamed1044(core.List<api.Page> o) { | 965 checkUnnamed1071(core.List<api.Page> o) { |
| 966 unittest.expect(o, unittest.hasLength(2)); | 966 unittest.expect(o, unittest.hasLength(2)); |
| 967 checkPage(o[0]); | 967 checkPage(o[0]); |
| 968 checkPage(o[1]); | 968 checkPage(o[1]); |
| 969 } | 969 } |
| 970 | 970 |
| 971 buildUnnamed1045() { | 971 buildUnnamed1072() { |
| 972 var o = new core.List<api.DocumentationRule>(); | 972 var o = new core.List<api.DocumentationRule>(); |
| 973 o.add(buildDocumentationRule()); | 973 o.add(buildDocumentationRule()); |
| 974 o.add(buildDocumentationRule()); | 974 o.add(buildDocumentationRule()); |
| 975 return o; | 975 return o; |
| 976 } | 976 } |
| 977 | 977 |
| 978 checkUnnamed1045(core.List<api.DocumentationRule> o) { | 978 checkUnnamed1072(core.List<api.DocumentationRule> o) { |
| 979 unittest.expect(o, unittest.hasLength(2)); | 979 unittest.expect(o, unittest.hasLength(2)); |
| 980 checkDocumentationRule(o[0]); | 980 checkDocumentationRule(o[0]); |
| 981 checkDocumentationRule(o[1]); | 981 checkDocumentationRule(o[1]); |
| 982 } | 982 } |
| 983 | 983 |
| 984 core.int buildCounterDocumentation = 0; | 984 core.int buildCounterDocumentation = 0; |
| 985 buildDocumentation() { | 985 buildDocumentation() { |
| 986 var o = new api.Documentation(); | 986 var o = new api.Documentation(); |
| 987 buildCounterDocumentation++; | 987 buildCounterDocumentation++; |
| 988 if (buildCounterDocumentation < 3) { | 988 if (buildCounterDocumentation < 3) { |
| 989 o.documentationRootUrl = "foo"; | 989 o.documentationRootUrl = "foo"; |
| 990 o.overview = "foo"; | 990 o.overview = "foo"; |
| 991 o.pages = buildUnnamed1044(); | 991 o.pages = buildUnnamed1071(); |
| 992 o.rules = buildUnnamed1045(); | 992 o.rules = buildUnnamed1072(); |
| 993 o.summary = "foo"; | 993 o.summary = "foo"; |
| 994 } | 994 } |
| 995 buildCounterDocumentation--; | 995 buildCounterDocumentation--; |
| 996 return o; | 996 return o; |
| 997 } | 997 } |
| 998 | 998 |
| 999 checkDocumentation(api.Documentation o) { | 999 checkDocumentation(api.Documentation o) { |
| 1000 buildCounterDocumentation++; | 1000 buildCounterDocumentation++; |
| 1001 if (buildCounterDocumentation < 3) { | 1001 if (buildCounterDocumentation < 3) { |
| 1002 unittest.expect(o.documentationRootUrl, unittest.equals('foo')); | 1002 unittest.expect(o.documentationRootUrl, unittest.equals('foo')); |
| 1003 unittest.expect(o.overview, unittest.equals('foo')); | 1003 unittest.expect(o.overview, unittest.equals('foo')); |
| 1004 checkUnnamed1044(o.pages); | 1004 checkUnnamed1071(o.pages); |
| 1005 checkUnnamed1045(o.rules); | 1005 checkUnnamed1072(o.rules); |
| 1006 unittest.expect(o.summary, unittest.equals('foo')); | 1006 unittest.expect(o.summary, unittest.equals('foo')); |
| 1007 } | 1007 } |
| 1008 buildCounterDocumentation--; | 1008 buildCounterDocumentation--; |
| 1009 } | 1009 } |
| 1010 | 1010 |
| 1011 core.int buildCounterDocumentationRule = 0; | 1011 core.int buildCounterDocumentationRule = 0; |
| 1012 buildDocumentationRule() { | 1012 buildDocumentationRule() { |
| 1013 var o = new api.DocumentationRule(); | 1013 var o = new api.DocumentationRule(); |
| 1014 buildCounterDocumentationRule++; | 1014 buildCounterDocumentationRule++; |
| 1015 if (buildCounterDocumentationRule < 3) { | 1015 if (buildCounterDocumentationRule < 3) { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 1043 } | 1043 } |
| 1044 | 1044 |
| 1045 checkEnableServiceRequest(api.EnableServiceRequest o) { | 1045 checkEnableServiceRequest(api.EnableServiceRequest o) { |
| 1046 buildCounterEnableServiceRequest++; | 1046 buildCounterEnableServiceRequest++; |
| 1047 if (buildCounterEnableServiceRequest < 3) { | 1047 if (buildCounterEnableServiceRequest < 3) { |
| 1048 unittest.expect(o.consumerId, unittest.equals('foo')); | 1048 unittest.expect(o.consumerId, unittest.equals('foo')); |
| 1049 } | 1049 } |
| 1050 buildCounterEnableServiceRequest--; | 1050 buildCounterEnableServiceRequest--; |
| 1051 } | 1051 } |
| 1052 | 1052 |
| 1053 buildUnnamed1046() { | 1053 buildUnnamed1073() { |
| 1054 var o = new core.List<core.String>(); | 1054 var o = new core.List<core.String>(); |
| 1055 o.add("foo"); | 1055 o.add("foo"); |
| 1056 o.add("foo"); | 1056 o.add("foo"); |
| 1057 return o; | 1057 return o; |
| 1058 } | 1058 } |
| 1059 | 1059 |
| 1060 checkUnnamed1046(core.List<core.String> o) { | 1060 checkUnnamed1073(core.List<core.String> o) { |
| 1061 unittest.expect(o, unittest.hasLength(2)); | 1061 unittest.expect(o, unittest.hasLength(2)); |
| 1062 unittest.expect(o[0], unittest.equals('foo')); | 1062 unittest.expect(o[0], unittest.equals('foo')); |
| 1063 unittest.expect(o[1], unittest.equals('foo')); | 1063 unittest.expect(o[1], unittest.equals('foo')); |
| 1064 } | 1064 } |
| 1065 | 1065 |
| 1066 buildUnnamed1047() { | 1066 buildUnnamed1074() { |
| 1067 var o = new core.List<core.String>(); | 1067 var o = new core.List<core.String>(); |
| 1068 o.add("foo"); | 1068 o.add("foo"); |
| 1069 o.add("foo"); | 1069 o.add("foo"); |
| 1070 return o; | 1070 return o; |
| 1071 } | 1071 } |
| 1072 | 1072 |
| 1073 checkUnnamed1047(core.List<core.String> o) { | 1073 checkUnnamed1074(core.List<core.String> o) { |
| 1074 unittest.expect(o, unittest.hasLength(2)); | 1074 unittest.expect(o, unittest.hasLength(2)); |
| 1075 unittest.expect(o[0], unittest.equals('foo')); | 1075 unittest.expect(o[0], unittest.equals('foo')); |
| 1076 unittest.expect(o[1], unittest.equals('foo')); | 1076 unittest.expect(o[1], unittest.equals('foo')); |
| 1077 } | 1077 } |
| 1078 | 1078 |
| 1079 buildUnnamed1048() { | 1079 buildUnnamed1075() { |
| 1080 var o = new core.List<core.String>(); | 1080 var o = new core.List<core.String>(); |
| 1081 o.add("foo"); | 1081 o.add("foo"); |
| 1082 o.add("foo"); | 1082 o.add("foo"); |
| 1083 return o; | 1083 return o; |
| 1084 } | 1084 } |
| 1085 | 1085 |
| 1086 checkUnnamed1048(core.List<core.String> o) { | 1086 checkUnnamed1075(core.List<core.String> o) { |
| 1087 unittest.expect(o, unittest.hasLength(2)); | 1087 unittest.expect(o, unittest.hasLength(2)); |
| 1088 unittest.expect(o[0], unittest.equals('foo')); | 1088 unittest.expect(o[0], unittest.equals('foo')); |
| 1089 unittest.expect(o[1], unittest.equals('foo')); | 1089 unittest.expect(o[1], unittest.equals('foo')); |
| 1090 } | 1090 } |
| 1091 | 1091 |
| 1092 core.int buildCounterEndpoint = 0; | 1092 core.int buildCounterEndpoint = 0; |
| 1093 buildEndpoint() { | 1093 buildEndpoint() { |
| 1094 var o = new api.Endpoint(); | 1094 var o = new api.Endpoint(); |
| 1095 buildCounterEndpoint++; | 1095 buildCounterEndpoint++; |
| 1096 if (buildCounterEndpoint < 3) { | 1096 if (buildCounterEndpoint < 3) { |
| 1097 o.aliases = buildUnnamed1046(); | 1097 o.aliases = buildUnnamed1073(); |
| 1098 o.allowCors = true; | 1098 o.allowCors = true; |
| 1099 o.apis = buildUnnamed1047(); | 1099 o.apis = buildUnnamed1074(); |
| 1100 o.features = buildUnnamed1048(); | 1100 o.features = buildUnnamed1075(); |
| 1101 o.name = "foo"; | 1101 o.name = "foo"; |
| 1102 } | 1102 } |
| 1103 buildCounterEndpoint--; | 1103 buildCounterEndpoint--; |
| 1104 return o; | 1104 return o; |
| 1105 } | 1105 } |
| 1106 | 1106 |
| 1107 checkEndpoint(api.Endpoint o) { | 1107 checkEndpoint(api.Endpoint o) { |
| 1108 buildCounterEndpoint++; | 1108 buildCounterEndpoint++; |
| 1109 if (buildCounterEndpoint < 3) { | 1109 if (buildCounterEndpoint < 3) { |
| 1110 checkUnnamed1046(o.aliases); | 1110 checkUnnamed1073(o.aliases); |
| 1111 unittest.expect(o.allowCors, unittest.isTrue); | 1111 unittest.expect(o.allowCors, unittest.isTrue); |
| 1112 checkUnnamed1047(o.apis); | 1112 checkUnnamed1074(o.apis); |
| 1113 checkUnnamed1048(o.features); | 1113 checkUnnamed1075(o.features); |
| 1114 unittest.expect(o.name, unittest.equals('foo')); | 1114 unittest.expect(o.name, unittest.equals('foo')); |
| 1115 } | 1115 } |
| 1116 buildCounterEndpoint--; | 1116 buildCounterEndpoint--; |
| 1117 } | 1117 } |
| 1118 | 1118 |
| 1119 buildUnnamed1049() { | 1119 buildUnnamed1076() { |
| 1120 var o = new core.List<api.EnumValue>(); | 1120 var o = new core.List<api.EnumValue>(); |
| 1121 o.add(buildEnumValue()); | 1121 o.add(buildEnumValue()); |
| 1122 o.add(buildEnumValue()); | 1122 o.add(buildEnumValue()); |
| 1123 return o; | 1123 return o; |
| 1124 } | 1124 } |
| 1125 | 1125 |
| 1126 checkUnnamed1049(core.List<api.EnumValue> o) { | 1126 checkUnnamed1076(core.List<api.EnumValue> o) { |
| 1127 unittest.expect(o, unittest.hasLength(2)); | 1127 unittest.expect(o, unittest.hasLength(2)); |
| 1128 checkEnumValue(o[0]); | 1128 checkEnumValue(o[0]); |
| 1129 checkEnumValue(o[1]); | 1129 checkEnumValue(o[1]); |
| 1130 } | 1130 } |
| 1131 | 1131 |
| 1132 buildUnnamed1050() { | 1132 buildUnnamed1077() { |
| 1133 var o = new core.List<api.Option>(); | 1133 var o = new core.List<api.Option>(); |
| 1134 o.add(buildOption()); | 1134 o.add(buildOption()); |
| 1135 o.add(buildOption()); | 1135 o.add(buildOption()); |
| 1136 return o; | 1136 return o; |
| 1137 } | 1137 } |
| 1138 | 1138 |
| 1139 checkUnnamed1050(core.List<api.Option> o) { | 1139 checkUnnamed1077(core.List<api.Option> o) { |
| 1140 unittest.expect(o, unittest.hasLength(2)); | 1140 unittest.expect(o, unittest.hasLength(2)); |
| 1141 checkOption(o[0]); | 1141 checkOption(o[0]); |
| 1142 checkOption(o[1]); | 1142 checkOption(o[1]); |
| 1143 } | 1143 } |
| 1144 | 1144 |
| 1145 core.int buildCounterEnum = 0; | 1145 core.int buildCounterEnum = 0; |
| 1146 buildEnum() { | 1146 buildEnum() { |
| 1147 var o = new api.Enum(); | 1147 var o = new api.Enum(); |
| 1148 buildCounterEnum++; | 1148 buildCounterEnum++; |
| 1149 if (buildCounterEnum < 3) { | 1149 if (buildCounterEnum < 3) { |
| 1150 o.enumvalue = buildUnnamed1049(); | 1150 o.enumvalue = buildUnnamed1076(); |
| 1151 o.name = "foo"; | 1151 o.name = "foo"; |
| 1152 o.options = buildUnnamed1050(); | 1152 o.options = buildUnnamed1077(); |
| 1153 o.sourceContext = buildSourceContext(); | 1153 o.sourceContext = buildSourceContext(); |
| 1154 o.syntax = "foo"; | 1154 o.syntax = "foo"; |
| 1155 } | 1155 } |
| 1156 buildCounterEnum--; | 1156 buildCounterEnum--; |
| 1157 return o; | 1157 return o; |
| 1158 } | 1158 } |
| 1159 | 1159 |
| 1160 checkEnum(api.Enum o) { | 1160 checkEnum(api.Enum o) { |
| 1161 buildCounterEnum++; | 1161 buildCounterEnum++; |
| 1162 if (buildCounterEnum < 3) { | 1162 if (buildCounterEnum < 3) { |
| 1163 checkUnnamed1049(o.enumvalue); | 1163 checkUnnamed1076(o.enumvalue); |
| 1164 unittest.expect(o.name, unittest.equals('foo')); | 1164 unittest.expect(o.name, unittest.equals('foo')); |
| 1165 checkUnnamed1050(o.options); | 1165 checkUnnamed1077(o.options); |
| 1166 checkSourceContext(o.sourceContext); | 1166 checkSourceContext(o.sourceContext); |
| 1167 unittest.expect(o.syntax, unittest.equals('foo')); | 1167 unittest.expect(o.syntax, unittest.equals('foo')); |
| 1168 } | 1168 } |
| 1169 buildCounterEnum--; | 1169 buildCounterEnum--; |
| 1170 } | 1170 } |
| 1171 | 1171 |
| 1172 buildUnnamed1051() { | 1172 buildUnnamed1078() { |
| 1173 var o = new core.List<api.Option>(); | 1173 var o = new core.List<api.Option>(); |
| 1174 o.add(buildOption()); | 1174 o.add(buildOption()); |
| 1175 o.add(buildOption()); | 1175 o.add(buildOption()); |
| 1176 return o; | 1176 return o; |
| 1177 } | 1177 } |
| 1178 | 1178 |
| 1179 checkUnnamed1051(core.List<api.Option> o) { | 1179 checkUnnamed1078(core.List<api.Option> o) { |
| 1180 unittest.expect(o, unittest.hasLength(2)); | 1180 unittest.expect(o, unittest.hasLength(2)); |
| 1181 checkOption(o[0]); | 1181 checkOption(o[0]); |
| 1182 checkOption(o[1]); | 1182 checkOption(o[1]); |
| 1183 } | 1183 } |
| 1184 | 1184 |
| 1185 core.int buildCounterEnumValue = 0; | 1185 core.int buildCounterEnumValue = 0; |
| 1186 buildEnumValue() { | 1186 buildEnumValue() { |
| 1187 var o = new api.EnumValue(); | 1187 var o = new api.EnumValue(); |
| 1188 buildCounterEnumValue++; | 1188 buildCounterEnumValue++; |
| 1189 if (buildCounterEnumValue < 3) { | 1189 if (buildCounterEnumValue < 3) { |
| 1190 o.name = "foo"; | 1190 o.name = "foo"; |
| 1191 o.number = 42; | 1191 o.number = 42; |
| 1192 o.options = buildUnnamed1051(); | 1192 o.options = buildUnnamed1078(); |
| 1193 } | 1193 } |
| 1194 buildCounterEnumValue--; | 1194 buildCounterEnumValue--; |
| 1195 return o; | 1195 return o; |
| 1196 } | 1196 } |
| 1197 | 1197 |
| 1198 checkEnumValue(api.EnumValue o) { | 1198 checkEnumValue(api.EnumValue o) { |
| 1199 buildCounterEnumValue++; | 1199 buildCounterEnumValue++; |
| 1200 if (buildCounterEnumValue < 3) { | 1200 if (buildCounterEnumValue < 3) { |
| 1201 unittest.expect(o.name, unittest.equals('foo')); | 1201 unittest.expect(o.name, unittest.equals('foo')); |
| 1202 unittest.expect(o.number, unittest.equals(42)); | 1202 unittest.expect(o.number, unittest.equals(42)); |
| 1203 checkUnnamed1051(o.options); | 1203 checkUnnamed1078(o.options); |
| 1204 } | 1204 } |
| 1205 buildCounterEnumValue--; | 1205 buildCounterEnumValue--; |
| 1206 } | 1206 } |
| 1207 | 1207 |
| 1208 core.int buildCounterExperimental = 0; | 1208 core.int buildCounterExperimental = 0; |
| 1209 buildExperimental() { | 1209 buildExperimental() { |
| 1210 var o = new api.Experimental(); | 1210 var o = new api.Experimental(); |
| 1211 buildCounterExperimental++; | 1211 buildCounterExperimental++; |
| 1212 if (buildCounterExperimental < 3) { | 1212 if (buildCounterExperimental < 3) { |
| 1213 o.authorization = buildAuthorizationConfig(); | 1213 o.authorization = buildAuthorizationConfig(); |
| 1214 } | 1214 } |
| 1215 buildCounterExperimental--; | 1215 buildCounterExperimental--; |
| 1216 return o; | 1216 return o; |
| 1217 } | 1217 } |
| 1218 | 1218 |
| 1219 checkExperimental(api.Experimental o) { | 1219 checkExperimental(api.Experimental o) { |
| 1220 buildCounterExperimental++; | 1220 buildCounterExperimental++; |
| 1221 if (buildCounterExperimental < 3) { | 1221 if (buildCounterExperimental < 3) { |
| 1222 checkAuthorizationConfig(o.authorization); | 1222 checkAuthorizationConfig(o.authorization); |
| 1223 } | 1223 } |
| 1224 buildCounterExperimental--; | 1224 buildCounterExperimental--; |
| 1225 } | 1225 } |
| 1226 | 1226 |
| 1227 buildUnnamed1052() { | 1227 buildUnnamed1079() { |
| 1228 var o = new core.List<api.Option>(); | 1228 var o = new core.List<api.Option>(); |
| 1229 o.add(buildOption()); | 1229 o.add(buildOption()); |
| 1230 o.add(buildOption()); | 1230 o.add(buildOption()); |
| 1231 return o; | 1231 return o; |
| 1232 } | 1232 } |
| 1233 | 1233 |
| 1234 checkUnnamed1052(core.List<api.Option> o) { | 1234 checkUnnamed1079(core.List<api.Option> o) { |
| 1235 unittest.expect(o, unittest.hasLength(2)); | 1235 unittest.expect(o, unittest.hasLength(2)); |
| 1236 checkOption(o[0]); | 1236 checkOption(o[0]); |
| 1237 checkOption(o[1]); | 1237 checkOption(o[1]); |
| 1238 } | 1238 } |
| 1239 | 1239 |
| 1240 core.int buildCounterField = 0; | 1240 core.int buildCounterField = 0; |
| 1241 buildField() { | 1241 buildField() { |
| 1242 var o = new api.Field(); | 1242 var o = new api.Field(); |
| 1243 buildCounterField++; | 1243 buildCounterField++; |
| 1244 if (buildCounterField < 3) { | 1244 if (buildCounterField < 3) { |
| 1245 o.cardinality = "foo"; | 1245 o.cardinality = "foo"; |
| 1246 o.defaultValue = "foo"; | 1246 o.defaultValue = "foo"; |
| 1247 o.jsonName = "foo"; | 1247 o.jsonName = "foo"; |
| 1248 o.kind = "foo"; | 1248 o.kind = "foo"; |
| 1249 o.name = "foo"; | 1249 o.name = "foo"; |
| 1250 o.number = 42; | 1250 o.number = 42; |
| 1251 o.oneofIndex = 42; | 1251 o.oneofIndex = 42; |
| 1252 o.options = buildUnnamed1052(); | 1252 o.options = buildUnnamed1079(); |
| 1253 o.packed = true; | 1253 o.packed = true; |
| 1254 o.typeUrl = "foo"; | 1254 o.typeUrl = "foo"; |
| 1255 } | 1255 } |
| 1256 buildCounterField--; | 1256 buildCounterField--; |
| 1257 return o; | 1257 return o; |
| 1258 } | 1258 } |
| 1259 | 1259 |
| 1260 checkField(api.Field o) { | 1260 checkField(api.Field o) { |
| 1261 buildCounterField++; | 1261 buildCounterField++; |
| 1262 if (buildCounterField < 3) { | 1262 if (buildCounterField < 3) { |
| 1263 unittest.expect(o.cardinality, unittest.equals('foo')); | 1263 unittest.expect(o.cardinality, unittest.equals('foo')); |
| 1264 unittest.expect(o.defaultValue, unittest.equals('foo')); | 1264 unittest.expect(o.defaultValue, unittest.equals('foo')); |
| 1265 unittest.expect(o.jsonName, unittest.equals('foo')); | 1265 unittest.expect(o.jsonName, unittest.equals('foo')); |
| 1266 unittest.expect(o.kind, unittest.equals('foo')); | 1266 unittest.expect(o.kind, unittest.equals('foo')); |
| 1267 unittest.expect(o.name, unittest.equals('foo')); | 1267 unittest.expect(o.name, unittest.equals('foo')); |
| 1268 unittest.expect(o.number, unittest.equals(42)); | 1268 unittest.expect(o.number, unittest.equals(42)); |
| 1269 unittest.expect(o.oneofIndex, unittest.equals(42)); | 1269 unittest.expect(o.oneofIndex, unittest.equals(42)); |
| 1270 checkUnnamed1052(o.options); | 1270 checkUnnamed1079(o.options); |
| 1271 unittest.expect(o.packed, unittest.isTrue); | 1271 unittest.expect(o.packed, unittest.isTrue); |
| 1272 unittest.expect(o.typeUrl, unittest.equals('foo')); | 1272 unittest.expect(o.typeUrl, unittest.equals('foo')); |
| 1273 } | 1273 } |
| 1274 buildCounterField--; | 1274 buildCounterField--; |
| 1275 } | 1275 } |
| 1276 | 1276 |
| 1277 buildUnnamed1053() { | 1277 buildUnnamed1080() { |
| 1278 var o = new core.List<core.String>(); |
| 1279 o.add("foo"); |
| 1280 o.add("foo"); |
| 1281 return o; |
| 1282 } |
| 1283 |
| 1284 checkUnnamed1080(core.List<core.String> o) { |
| 1285 unittest.expect(o, unittest.hasLength(2)); |
| 1286 unittest.expect(o[0], unittest.equals('foo')); |
| 1287 unittest.expect(o[1], unittest.equals('foo')); |
| 1288 } |
| 1289 |
| 1290 core.int buildCounterFlowOperationMetadata = 0; |
| 1291 buildFlowOperationMetadata() { |
| 1292 var o = new api.FlowOperationMetadata(); |
| 1293 buildCounterFlowOperationMetadata++; |
| 1294 if (buildCounterFlowOperationMetadata < 3) { |
| 1295 o.cancelState = "foo"; |
| 1296 o.deadline = "foo"; |
| 1297 o.flowName = "foo"; |
| 1298 o.isPersisted = true; |
| 1299 o.resourceNames = buildUnnamed1080(); |
| 1300 o.startTime = "foo"; |
| 1301 } |
| 1302 buildCounterFlowOperationMetadata--; |
| 1303 return o; |
| 1304 } |
| 1305 |
| 1306 checkFlowOperationMetadata(api.FlowOperationMetadata o) { |
| 1307 buildCounterFlowOperationMetadata++; |
| 1308 if (buildCounterFlowOperationMetadata < 3) { |
| 1309 unittest.expect(o.cancelState, unittest.equals('foo')); |
| 1310 unittest.expect(o.deadline, unittest.equals('foo')); |
| 1311 unittest.expect(o.flowName, unittest.equals('foo')); |
| 1312 unittest.expect(o.isPersisted, unittest.isTrue); |
| 1313 checkUnnamed1080(o.resourceNames); |
| 1314 unittest.expect(o.startTime, unittest.equals('foo')); |
| 1315 } |
| 1316 buildCounterFlowOperationMetadata--; |
| 1317 } |
| 1318 |
| 1319 buildUnnamed1081() { |
| 1278 var o = new core.Map<core.String, core.Object>(); | 1320 var o = new core.Map<core.String, core.Object>(); |
| 1279 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1321 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1280 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1322 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1281 return o; | 1323 return o; |
| 1282 } | 1324 } |
| 1283 | 1325 |
| 1284 checkUnnamed1053(core.Map<core.String, core.Object> o) { | 1326 checkUnnamed1081(core.Map<core.String, core.Object> o) { |
| 1285 unittest.expect(o, unittest.hasLength(2)); | 1327 unittest.expect(o, unittest.hasLength(2)); |
| 1286 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')); | 1328 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')); |
| 1287 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')); | 1329 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')); |
| 1288 } | 1330 } |
| 1289 | 1331 |
| 1290 buildUnnamed1054() { | 1332 buildUnnamed1082() { |
| 1291 var o = new core.Map<core.String, core.Object>(); | 1333 var o = new core.Map<core.String, core.Object>(); |
| 1292 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1334 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1293 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1335 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1294 return o; | 1336 return o; |
| 1295 } | 1337 } |
| 1296 | 1338 |
| 1297 checkUnnamed1054(core.Map<core.String, core.Object> o) { | 1339 checkUnnamed1082(core.Map<core.String, core.Object> o) { |
| 1298 unittest.expect(o, unittest.hasLength(2)); | 1340 unittest.expect(o, unittest.hasLength(2)); |
| 1299 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')); | 1341 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')); |
| 1300 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')); | 1342 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')); |
| 1301 } | 1343 } |
| 1302 | 1344 |
| 1303 core.int buildCounterGenerateConfigReportRequest = 0; | 1345 core.int buildCounterGenerateConfigReportRequest = 0; |
| 1304 buildGenerateConfigReportRequest() { | 1346 buildGenerateConfigReportRequest() { |
| 1305 var o = new api.GenerateConfigReportRequest(); | 1347 var o = new api.GenerateConfigReportRequest(); |
| 1306 buildCounterGenerateConfigReportRequest++; | 1348 buildCounterGenerateConfigReportRequest++; |
| 1307 if (buildCounterGenerateConfigReportRequest < 3) { | 1349 if (buildCounterGenerateConfigReportRequest < 3) { |
| 1308 o.newConfig = buildUnnamed1053(); | 1350 o.newConfig = buildUnnamed1081(); |
| 1309 o.oldConfig = buildUnnamed1054(); | 1351 o.oldConfig = buildUnnamed1082(); |
| 1310 } | 1352 } |
| 1311 buildCounterGenerateConfigReportRequest--; | 1353 buildCounterGenerateConfigReportRequest--; |
| 1312 return o; | 1354 return o; |
| 1313 } | 1355 } |
| 1314 | 1356 |
| 1315 checkGenerateConfigReportRequest(api.GenerateConfigReportRequest o) { | 1357 checkGenerateConfigReportRequest(api.GenerateConfigReportRequest o) { |
| 1316 buildCounterGenerateConfigReportRequest++; | 1358 buildCounterGenerateConfigReportRequest++; |
| 1317 if (buildCounterGenerateConfigReportRequest < 3) { | 1359 if (buildCounterGenerateConfigReportRequest < 3) { |
| 1318 checkUnnamed1053(o.newConfig); | 1360 checkUnnamed1081(o.newConfig); |
| 1319 checkUnnamed1054(o.oldConfig); | 1361 checkUnnamed1082(o.oldConfig); |
| 1320 } | 1362 } |
| 1321 buildCounterGenerateConfigReportRequest--; | 1363 buildCounterGenerateConfigReportRequest--; |
| 1322 } | 1364 } |
| 1323 | 1365 |
| 1324 buildUnnamed1055() { | 1366 buildUnnamed1083() { |
| 1325 var o = new core.List<api.ChangeReport>(); | 1367 var o = new core.List<api.ChangeReport>(); |
| 1326 o.add(buildChangeReport()); | 1368 o.add(buildChangeReport()); |
| 1327 o.add(buildChangeReport()); | 1369 o.add(buildChangeReport()); |
| 1328 return o; | 1370 return o; |
| 1329 } | 1371 } |
| 1330 | 1372 |
| 1331 checkUnnamed1055(core.List<api.ChangeReport> o) { | 1373 checkUnnamed1083(core.List<api.ChangeReport> o) { |
| 1332 unittest.expect(o, unittest.hasLength(2)); | 1374 unittest.expect(o, unittest.hasLength(2)); |
| 1333 checkChangeReport(o[0]); | 1375 checkChangeReport(o[0]); |
| 1334 checkChangeReport(o[1]); | 1376 checkChangeReport(o[1]); |
| 1335 } | 1377 } |
| 1336 | 1378 |
| 1337 buildUnnamed1056() { | 1379 buildUnnamed1084() { |
| 1338 var o = new core.List<api.Diagnostic>(); | 1380 var o = new core.List<api.Diagnostic>(); |
| 1339 o.add(buildDiagnostic()); | 1381 o.add(buildDiagnostic()); |
| 1340 o.add(buildDiagnostic()); | 1382 o.add(buildDiagnostic()); |
| 1341 return o; | 1383 return o; |
| 1342 } | 1384 } |
| 1343 | 1385 |
| 1344 checkUnnamed1056(core.List<api.Diagnostic> o) { | 1386 checkUnnamed1084(core.List<api.Diagnostic> o) { |
| 1345 unittest.expect(o, unittest.hasLength(2)); | 1387 unittest.expect(o, unittest.hasLength(2)); |
| 1346 checkDiagnostic(o[0]); | 1388 checkDiagnostic(o[0]); |
| 1347 checkDiagnostic(o[1]); | 1389 checkDiagnostic(o[1]); |
| 1348 } | 1390 } |
| 1349 | 1391 |
| 1350 core.int buildCounterGenerateConfigReportResponse = 0; | 1392 core.int buildCounterGenerateConfigReportResponse = 0; |
| 1351 buildGenerateConfigReportResponse() { | 1393 buildGenerateConfigReportResponse() { |
| 1352 var o = new api.GenerateConfigReportResponse(); | 1394 var o = new api.GenerateConfigReportResponse(); |
| 1353 buildCounterGenerateConfigReportResponse++; | 1395 buildCounterGenerateConfigReportResponse++; |
| 1354 if (buildCounterGenerateConfigReportResponse < 3) { | 1396 if (buildCounterGenerateConfigReportResponse < 3) { |
| 1355 o.changeReports = buildUnnamed1055(); | 1397 o.changeReports = buildUnnamed1083(); |
| 1356 o.diagnostics = buildUnnamed1056(); | 1398 o.diagnostics = buildUnnamed1084(); |
| 1357 o.id = "foo"; | 1399 o.id = "foo"; |
| 1358 o.serviceName = "foo"; | 1400 o.serviceName = "foo"; |
| 1359 } | 1401 } |
| 1360 buildCounterGenerateConfigReportResponse--; | 1402 buildCounterGenerateConfigReportResponse--; |
| 1361 return o; | 1403 return o; |
| 1362 } | 1404 } |
| 1363 | 1405 |
| 1364 checkGenerateConfigReportResponse(api.GenerateConfigReportResponse o) { | 1406 checkGenerateConfigReportResponse(api.GenerateConfigReportResponse o) { |
| 1365 buildCounterGenerateConfigReportResponse++; | 1407 buildCounterGenerateConfigReportResponse++; |
| 1366 if (buildCounterGenerateConfigReportResponse < 3) { | 1408 if (buildCounterGenerateConfigReportResponse < 3) { |
| 1367 checkUnnamed1055(o.changeReports); | 1409 checkUnnamed1083(o.changeReports); |
| 1368 checkUnnamed1056(o.diagnostics); | 1410 checkUnnamed1084(o.diagnostics); |
| 1369 unittest.expect(o.id, unittest.equals('foo')); | 1411 unittest.expect(o.id, unittest.equals('foo')); |
| 1370 unittest.expect(o.serviceName, unittest.equals('foo')); | 1412 unittest.expect(o.serviceName, unittest.equals('foo')); |
| 1371 } | 1413 } |
| 1372 buildCounterGenerateConfigReportResponse--; | 1414 buildCounterGenerateConfigReportResponse--; |
| 1373 } | 1415 } |
| 1374 | 1416 |
| 1375 core.int buildCounterGetIamPolicyRequest = 0; | 1417 core.int buildCounterGetIamPolicyRequest = 0; |
| 1376 buildGetIamPolicyRequest() { | 1418 buildGetIamPolicyRequest() { |
| 1377 var o = new api.GetIamPolicyRequest(); | 1419 var o = new api.GetIamPolicyRequest(); |
| 1378 buildCounterGetIamPolicyRequest++; | 1420 buildCounterGetIamPolicyRequest++; |
| 1379 if (buildCounterGetIamPolicyRequest < 3) { | 1421 if (buildCounterGetIamPolicyRequest < 3) { |
| 1380 } | 1422 } |
| 1381 buildCounterGetIamPolicyRequest--; | 1423 buildCounterGetIamPolicyRequest--; |
| 1382 return o; | 1424 return o; |
| 1383 } | 1425 } |
| 1384 | 1426 |
| 1385 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) { | 1427 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) { |
| 1386 buildCounterGetIamPolicyRequest++; | 1428 buildCounterGetIamPolicyRequest++; |
| 1387 if (buildCounterGetIamPolicyRequest < 3) { | 1429 if (buildCounterGetIamPolicyRequest < 3) { |
| 1388 } | 1430 } |
| 1389 buildCounterGetIamPolicyRequest--; | 1431 buildCounterGetIamPolicyRequest--; |
| 1390 } | 1432 } |
| 1391 | 1433 |
| 1392 buildUnnamed1057() { | 1434 buildUnnamed1085() { |
| 1393 var o = new core.List<api.HttpRule>(); | 1435 var o = new core.List<api.HttpRule>(); |
| 1394 o.add(buildHttpRule()); | 1436 o.add(buildHttpRule()); |
| 1395 o.add(buildHttpRule()); | 1437 o.add(buildHttpRule()); |
| 1396 return o; | 1438 return o; |
| 1397 } | 1439 } |
| 1398 | 1440 |
| 1399 checkUnnamed1057(core.List<api.HttpRule> o) { | 1441 checkUnnamed1085(core.List<api.HttpRule> o) { |
| 1400 unittest.expect(o, unittest.hasLength(2)); | 1442 unittest.expect(o, unittest.hasLength(2)); |
| 1401 checkHttpRule(o[0]); | 1443 checkHttpRule(o[0]); |
| 1402 checkHttpRule(o[1]); | 1444 checkHttpRule(o[1]); |
| 1403 } | 1445 } |
| 1404 | 1446 |
| 1405 core.int buildCounterHttp = 0; | 1447 core.int buildCounterHttp = 0; |
| 1406 buildHttp() { | 1448 buildHttp() { |
| 1407 var o = new api.Http(); | 1449 var o = new api.Http(); |
| 1408 buildCounterHttp++; | 1450 buildCounterHttp++; |
| 1409 if (buildCounterHttp < 3) { | 1451 if (buildCounterHttp < 3) { |
| 1410 o.rules = buildUnnamed1057(); | 1452 o.rules = buildUnnamed1085(); |
| 1411 } | 1453 } |
| 1412 buildCounterHttp--; | 1454 buildCounterHttp--; |
| 1413 return o; | 1455 return o; |
| 1414 } | 1456 } |
| 1415 | 1457 |
| 1416 checkHttp(api.Http o) { | 1458 checkHttp(api.Http o) { |
| 1417 buildCounterHttp++; | 1459 buildCounterHttp++; |
| 1418 if (buildCounterHttp < 3) { | 1460 if (buildCounterHttp < 3) { |
| 1419 checkUnnamed1057(o.rules); | 1461 checkUnnamed1085(o.rules); |
| 1420 } | 1462 } |
| 1421 buildCounterHttp--; | 1463 buildCounterHttp--; |
| 1422 } | 1464 } |
| 1423 | 1465 |
| 1424 buildUnnamed1058() { | 1466 buildUnnamed1086() { |
| 1425 var o = new core.List<api.HttpRule>(); | 1467 var o = new core.List<api.HttpRule>(); |
| 1426 o.add(buildHttpRule()); | 1468 o.add(buildHttpRule()); |
| 1427 o.add(buildHttpRule()); | 1469 o.add(buildHttpRule()); |
| 1428 return o; | 1470 return o; |
| 1429 } | 1471 } |
| 1430 | 1472 |
| 1431 checkUnnamed1058(core.List<api.HttpRule> o) { | 1473 checkUnnamed1086(core.List<api.HttpRule> o) { |
| 1432 unittest.expect(o, unittest.hasLength(2)); | 1474 unittest.expect(o, unittest.hasLength(2)); |
| 1433 checkHttpRule(o[0]); | 1475 checkHttpRule(o[0]); |
| 1434 checkHttpRule(o[1]); | 1476 checkHttpRule(o[1]); |
| 1435 } | 1477 } |
| 1436 | 1478 |
| 1437 core.int buildCounterHttpRule = 0; | 1479 core.int buildCounterHttpRule = 0; |
| 1438 buildHttpRule() { | 1480 buildHttpRule() { |
| 1439 var o = new api.HttpRule(); | 1481 var o = new api.HttpRule(); |
| 1440 buildCounterHttpRule++; | 1482 buildCounterHttpRule++; |
| 1441 if (buildCounterHttpRule < 3) { | 1483 if (buildCounterHttpRule < 3) { |
| 1442 o.additionalBindings = buildUnnamed1058(); | 1484 o.additionalBindings = buildUnnamed1086(); |
| 1443 o.body = "foo"; | 1485 o.body = "foo"; |
| 1444 o.custom = buildCustomHttpPattern(); | 1486 o.custom = buildCustomHttpPattern(); |
| 1445 o.delete = "foo"; | 1487 o.delete = "foo"; |
| 1446 o.get = "foo"; | 1488 o.get = "foo"; |
| 1447 o.mediaDownload = buildMediaDownload(); | 1489 o.mediaDownload = buildMediaDownload(); |
| 1448 o.mediaUpload = buildMediaUpload(); | 1490 o.mediaUpload = buildMediaUpload(); |
| 1449 o.patch = "foo"; | 1491 o.patch = "foo"; |
| 1450 o.post = "foo"; | 1492 o.post = "foo"; |
| 1451 o.put = "foo"; | 1493 o.put = "foo"; |
| 1452 o.responseBody = "foo"; | 1494 o.responseBody = "foo"; |
| 1453 o.selector = "foo"; | 1495 o.selector = "foo"; |
| 1454 } | 1496 } |
| 1455 buildCounterHttpRule--; | 1497 buildCounterHttpRule--; |
| 1456 return o; | 1498 return o; |
| 1457 } | 1499 } |
| 1458 | 1500 |
| 1459 checkHttpRule(api.HttpRule o) { | 1501 checkHttpRule(api.HttpRule o) { |
| 1460 buildCounterHttpRule++; | 1502 buildCounterHttpRule++; |
| 1461 if (buildCounterHttpRule < 3) { | 1503 if (buildCounterHttpRule < 3) { |
| 1462 checkUnnamed1058(o.additionalBindings); | 1504 checkUnnamed1086(o.additionalBindings); |
| 1463 unittest.expect(o.body, unittest.equals('foo')); | 1505 unittest.expect(o.body, unittest.equals('foo')); |
| 1464 checkCustomHttpPattern(o.custom); | 1506 checkCustomHttpPattern(o.custom); |
| 1465 unittest.expect(o.delete, unittest.equals('foo')); | 1507 unittest.expect(o.delete, unittest.equals('foo')); |
| 1466 unittest.expect(o.get, unittest.equals('foo')); | 1508 unittest.expect(o.get, unittest.equals('foo')); |
| 1467 checkMediaDownload(o.mediaDownload); | 1509 checkMediaDownload(o.mediaDownload); |
| 1468 checkMediaUpload(o.mediaUpload); | 1510 checkMediaUpload(o.mediaUpload); |
| 1469 unittest.expect(o.patch, unittest.equals('foo')); | 1511 unittest.expect(o.patch, unittest.equals('foo')); |
| 1470 unittest.expect(o.post, unittest.equals('foo')); | 1512 unittest.expect(o.post, unittest.equals('foo')); |
| 1471 unittest.expect(o.put, unittest.equals('foo')); | 1513 unittest.expect(o.put, unittest.equals('foo')); |
| 1472 unittest.expect(o.responseBody, unittest.equals('foo')); | 1514 unittest.expect(o.responseBody, unittest.equals('foo')); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1491 checkLabelDescriptor(api.LabelDescriptor o) { | 1533 checkLabelDescriptor(api.LabelDescriptor o) { |
| 1492 buildCounterLabelDescriptor++; | 1534 buildCounterLabelDescriptor++; |
| 1493 if (buildCounterLabelDescriptor < 3) { | 1535 if (buildCounterLabelDescriptor < 3) { |
| 1494 unittest.expect(o.description, unittest.equals('foo')); | 1536 unittest.expect(o.description, unittest.equals('foo')); |
| 1495 unittest.expect(o.key, unittest.equals('foo')); | 1537 unittest.expect(o.key, unittest.equals('foo')); |
| 1496 unittest.expect(o.valueType, unittest.equals('foo')); | 1538 unittest.expect(o.valueType, unittest.equals('foo')); |
| 1497 } | 1539 } |
| 1498 buildCounterLabelDescriptor--; | 1540 buildCounterLabelDescriptor--; |
| 1499 } | 1541 } |
| 1500 | 1542 |
| 1501 buildUnnamed1059() { | 1543 buildUnnamed1087() { |
| 1544 var o = new core.List<api.Operation>(); |
| 1545 o.add(buildOperation()); |
| 1546 o.add(buildOperation()); |
| 1547 return o; |
| 1548 } |
| 1549 |
| 1550 checkUnnamed1087(core.List<api.Operation> o) { |
| 1551 unittest.expect(o, unittest.hasLength(2)); |
| 1552 checkOperation(o[0]); |
| 1553 checkOperation(o[1]); |
| 1554 } |
| 1555 |
| 1556 core.int buildCounterListOperationsResponse = 0; |
| 1557 buildListOperationsResponse() { |
| 1558 var o = new api.ListOperationsResponse(); |
| 1559 buildCounterListOperationsResponse++; |
| 1560 if (buildCounterListOperationsResponse < 3) { |
| 1561 o.nextPageToken = "foo"; |
| 1562 o.operations = buildUnnamed1087(); |
| 1563 } |
| 1564 buildCounterListOperationsResponse--; |
| 1565 return o; |
| 1566 } |
| 1567 |
| 1568 checkListOperationsResponse(api.ListOperationsResponse o) { |
| 1569 buildCounterListOperationsResponse++; |
| 1570 if (buildCounterListOperationsResponse < 3) { |
| 1571 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1572 checkUnnamed1087(o.operations); |
| 1573 } |
| 1574 buildCounterListOperationsResponse--; |
| 1575 } |
| 1576 |
| 1577 buildUnnamed1088() { |
| 1502 var o = new core.List<api.Service>(); | 1578 var o = new core.List<api.Service>(); |
| 1503 o.add(buildService()); | 1579 o.add(buildService()); |
| 1504 o.add(buildService()); | 1580 o.add(buildService()); |
| 1505 return o; | 1581 return o; |
| 1506 } | 1582 } |
| 1507 | 1583 |
| 1508 checkUnnamed1059(core.List<api.Service> o) { | 1584 checkUnnamed1088(core.List<api.Service> o) { |
| 1509 unittest.expect(o, unittest.hasLength(2)); | 1585 unittest.expect(o, unittest.hasLength(2)); |
| 1510 checkService(o[0]); | 1586 checkService(o[0]); |
| 1511 checkService(o[1]); | 1587 checkService(o[1]); |
| 1512 } | 1588 } |
| 1513 | 1589 |
| 1514 core.int buildCounterListServiceConfigsResponse = 0; | 1590 core.int buildCounterListServiceConfigsResponse = 0; |
| 1515 buildListServiceConfigsResponse() { | 1591 buildListServiceConfigsResponse() { |
| 1516 var o = new api.ListServiceConfigsResponse(); | 1592 var o = new api.ListServiceConfigsResponse(); |
| 1517 buildCounterListServiceConfigsResponse++; | 1593 buildCounterListServiceConfigsResponse++; |
| 1518 if (buildCounterListServiceConfigsResponse < 3) { | 1594 if (buildCounterListServiceConfigsResponse < 3) { |
| 1519 o.nextPageToken = "foo"; | 1595 o.nextPageToken = "foo"; |
| 1520 o.serviceConfigs = buildUnnamed1059(); | 1596 o.serviceConfigs = buildUnnamed1088(); |
| 1521 } | 1597 } |
| 1522 buildCounterListServiceConfigsResponse--; | 1598 buildCounterListServiceConfigsResponse--; |
| 1523 return o; | 1599 return o; |
| 1524 } | 1600 } |
| 1525 | 1601 |
| 1526 checkListServiceConfigsResponse(api.ListServiceConfigsResponse o) { | 1602 checkListServiceConfigsResponse(api.ListServiceConfigsResponse o) { |
| 1527 buildCounterListServiceConfigsResponse++; | 1603 buildCounterListServiceConfigsResponse++; |
| 1528 if (buildCounterListServiceConfigsResponse < 3) { | 1604 if (buildCounterListServiceConfigsResponse < 3) { |
| 1529 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1605 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1530 checkUnnamed1059(o.serviceConfigs); | 1606 checkUnnamed1088(o.serviceConfigs); |
| 1531 } | 1607 } |
| 1532 buildCounterListServiceConfigsResponse--; | 1608 buildCounterListServiceConfigsResponse--; |
| 1533 } | 1609 } |
| 1534 | 1610 |
| 1535 buildUnnamed1060() { | 1611 buildUnnamed1089() { |
| 1536 var o = new core.List<api.Rollout>(); | 1612 var o = new core.List<api.Rollout>(); |
| 1537 o.add(buildRollout()); | 1613 o.add(buildRollout()); |
| 1538 o.add(buildRollout()); | 1614 o.add(buildRollout()); |
| 1539 return o; | 1615 return o; |
| 1540 } | 1616 } |
| 1541 | 1617 |
| 1542 checkUnnamed1060(core.List<api.Rollout> o) { | 1618 checkUnnamed1089(core.List<api.Rollout> o) { |
| 1543 unittest.expect(o, unittest.hasLength(2)); | 1619 unittest.expect(o, unittest.hasLength(2)); |
| 1544 checkRollout(o[0]); | 1620 checkRollout(o[0]); |
| 1545 checkRollout(o[1]); | 1621 checkRollout(o[1]); |
| 1546 } | 1622 } |
| 1547 | 1623 |
| 1548 core.int buildCounterListServiceRolloutsResponse = 0; | 1624 core.int buildCounterListServiceRolloutsResponse = 0; |
| 1549 buildListServiceRolloutsResponse() { | 1625 buildListServiceRolloutsResponse() { |
| 1550 var o = new api.ListServiceRolloutsResponse(); | 1626 var o = new api.ListServiceRolloutsResponse(); |
| 1551 buildCounterListServiceRolloutsResponse++; | 1627 buildCounterListServiceRolloutsResponse++; |
| 1552 if (buildCounterListServiceRolloutsResponse < 3) { | 1628 if (buildCounterListServiceRolloutsResponse < 3) { |
| 1553 o.nextPageToken = "foo"; | 1629 o.nextPageToken = "foo"; |
| 1554 o.rollouts = buildUnnamed1060(); | 1630 o.rollouts = buildUnnamed1089(); |
| 1555 } | 1631 } |
| 1556 buildCounterListServiceRolloutsResponse--; | 1632 buildCounterListServiceRolloutsResponse--; |
| 1557 return o; | 1633 return o; |
| 1558 } | 1634 } |
| 1559 | 1635 |
| 1560 checkListServiceRolloutsResponse(api.ListServiceRolloutsResponse o) { | 1636 checkListServiceRolloutsResponse(api.ListServiceRolloutsResponse o) { |
| 1561 buildCounterListServiceRolloutsResponse++; | 1637 buildCounterListServiceRolloutsResponse++; |
| 1562 if (buildCounterListServiceRolloutsResponse < 3) { | 1638 if (buildCounterListServiceRolloutsResponse < 3) { |
| 1563 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1639 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1564 checkUnnamed1060(o.rollouts); | 1640 checkUnnamed1089(o.rollouts); |
| 1565 } | 1641 } |
| 1566 buildCounterListServiceRolloutsResponse--; | 1642 buildCounterListServiceRolloutsResponse--; |
| 1567 } | 1643 } |
| 1568 | 1644 |
| 1569 buildUnnamed1061() { | 1645 buildUnnamed1090() { |
| 1570 var o = new core.List<api.ManagedService>(); | 1646 var o = new core.List<api.ManagedService>(); |
| 1571 o.add(buildManagedService()); | 1647 o.add(buildManagedService()); |
| 1572 o.add(buildManagedService()); | 1648 o.add(buildManagedService()); |
| 1573 return o; | 1649 return o; |
| 1574 } | 1650 } |
| 1575 | 1651 |
| 1576 checkUnnamed1061(core.List<api.ManagedService> o) { | 1652 checkUnnamed1090(core.List<api.ManagedService> o) { |
| 1577 unittest.expect(o, unittest.hasLength(2)); | 1653 unittest.expect(o, unittest.hasLength(2)); |
| 1578 checkManagedService(o[0]); | 1654 checkManagedService(o[0]); |
| 1579 checkManagedService(o[1]); | 1655 checkManagedService(o[1]); |
| 1580 } | 1656 } |
| 1581 | 1657 |
| 1582 core.int buildCounterListServicesResponse = 0; | 1658 core.int buildCounterListServicesResponse = 0; |
| 1583 buildListServicesResponse() { | 1659 buildListServicesResponse() { |
| 1584 var o = new api.ListServicesResponse(); | 1660 var o = new api.ListServicesResponse(); |
| 1585 buildCounterListServicesResponse++; | 1661 buildCounterListServicesResponse++; |
| 1586 if (buildCounterListServicesResponse < 3) { | 1662 if (buildCounterListServicesResponse < 3) { |
| 1587 o.nextPageToken = "foo"; | 1663 o.nextPageToken = "foo"; |
| 1588 o.services = buildUnnamed1061(); | 1664 o.services = buildUnnamed1090(); |
| 1589 } | 1665 } |
| 1590 buildCounterListServicesResponse--; | 1666 buildCounterListServicesResponse--; |
| 1591 return o; | 1667 return o; |
| 1592 } | 1668 } |
| 1593 | 1669 |
| 1594 checkListServicesResponse(api.ListServicesResponse o) { | 1670 checkListServicesResponse(api.ListServicesResponse o) { |
| 1595 buildCounterListServicesResponse++; | 1671 buildCounterListServicesResponse++; |
| 1596 if (buildCounterListServicesResponse < 3) { | 1672 if (buildCounterListServicesResponse < 3) { |
| 1597 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1673 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1598 checkUnnamed1061(o.services); | 1674 checkUnnamed1090(o.services); |
| 1599 } | 1675 } |
| 1600 buildCounterListServicesResponse--; | 1676 buildCounterListServicesResponse--; |
| 1601 } | 1677 } |
| 1602 | 1678 |
| 1603 core.int buildCounterLogConfig = 0; | 1679 core.int buildCounterLogConfig = 0; |
| 1604 buildLogConfig() { | 1680 buildLogConfig() { |
| 1605 var o = new api.LogConfig(); | 1681 var o = new api.LogConfig(); |
| 1606 buildCounterLogConfig++; | 1682 buildCounterLogConfig++; |
| 1607 if (buildCounterLogConfig < 3) { | 1683 if (buildCounterLogConfig < 3) { |
| 1608 o.cloudAudit = buildCloudAuditOptions(); | 1684 o.cloudAudit = buildCloudAuditOptions(); |
| 1609 o.counter = buildCounterOptions(); | 1685 o.counter = buildCounterOptions(); |
| 1610 o.dataAccess = buildDataAccessOptions(); | 1686 o.dataAccess = buildDataAccessOptions(); |
| 1611 } | 1687 } |
| 1612 buildCounterLogConfig--; | 1688 buildCounterLogConfig--; |
| 1613 return o; | 1689 return o; |
| 1614 } | 1690 } |
| 1615 | 1691 |
| 1616 checkLogConfig(api.LogConfig o) { | 1692 checkLogConfig(api.LogConfig o) { |
| 1617 buildCounterLogConfig++; | 1693 buildCounterLogConfig++; |
| 1618 if (buildCounterLogConfig < 3) { | 1694 if (buildCounterLogConfig < 3) { |
| 1619 checkCloudAuditOptions(o.cloudAudit); | 1695 checkCloudAuditOptions(o.cloudAudit); |
| 1620 checkCounterOptions(o.counter); | 1696 checkCounterOptions(o.counter); |
| 1621 checkDataAccessOptions(o.dataAccess); | 1697 checkDataAccessOptions(o.dataAccess); |
| 1622 } | 1698 } |
| 1623 buildCounterLogConfig--; | 1699 buildCounterLogConfig--; |
| 1624 } | 1700 } |
| 1625 | 1701 |
| 1626 buildUnnamed1062() { | 1702 buildUnnamed1091() { |
| 1627 var o = new core.List<api.LabelDescriptor>(); | 1703 var o = new core.List<api.LabelDescriptor>(); |
| 1628 o.add(buildLabelDescriptor()); | 1704 o.add(buildLabelDescriptor()); |
| 1629 o.add(buildLabelDescriptor()); | 1705 o.add(buildLabelDescriptor()); |
| 1630 return o; | 1706 return o; |
| 1631 } | 1707 } |
| 1632 | 1708 |
| 1633 checkUnnamed1062(core.List<api.LabelDescriptor> o) { | 1709 checkUnnamed1091(core.List<api.LabelDescriptor> o) { |
| 1634 unittest.expect(o, unittest.hasLength(2)); | 1710 unittest.expect(o, unittest.hasLength(2)); |
| 1635 checkLabelDescriptor(o[0]); | 1711 checkLabelDescriptor(o[0]); |
| 1636 checkLabelDescriptor(o[1]); | 1712 checkLabelDescriptor(o[1]); |
| 1637 } | 1713 } |
| 1638 | 1714 |
| 1639 core.int buildCounterLogDescriptor = 0; | 1715 core.int buildCounterLogDescriptor = 0; |
| 1640 buildLogDescriptor() { | 1716 buildLogDescriptor() { |
| 1641 var o = new api.LogDescriptor(); | 1717 var o = new api.LogDescriptor(); |
| 1642 buildCounterLogDescriptor++; | 1718 buildCounterLogDescriptor++; |
| 1643 if (buildCounterLogDescriptor < 3) { | 1719 if (buildCounterLogDescriptor < 3) { |
| 1644 o.description = "foo"; | 1720 o.description = "foo"; |
| 1645 o.displayName = "foo"; | 1721 o.displayName = "foo"; |
| 1646 o.labels = buildUnnamed1062(); | 1722 o.labels = buildUnnamed1091(); |
| 1647 o.name = "foo"; | 1723 o.name = "foo"; |
| 1648 } | 1724 } |
| 1649 buildCounterLogDescriptor--; | 1725 buildCounterLogDescriptor--; |
| 1650 return o; | 1726 return o; |
| 1651 } | 1727 } |
| 1652 | 1728 |
| 1653 checkLogDescriptor(api.LogDescriptor o) { | 1729 checkLogDescriptor(api.LogDescriptor o) { |
| 1654 buildCounterLogDescriptor++; | 1730 buildCounterLogDescriptor++; |
| 1655 if (buildCounterLogDescriptor < 3) { | 1731 if (buildCounterLogDescriptor < 3) { |
| 1656 unittest.expect(o.description, unittest.equals('foo')); | 1732 unittest.expect(o.description, unittest.equals('foo')); |
| 1657 unittest.expect(o.displayName, unittest.equals('foo')); | 1733 unittest.expect(o.displayName, unittest.equals('foo')); |
| 1658 checkUnnamed1062(o.labels); | 1734 checkUnnamed1091(o.labels); |
| 1659 unittest.expect(o.name, unittest.equals('foo')); | 1735 unittest.expect(o.name, unittest.equals('foo')); |
| 1660 } | 1736 } |
| 1661 buildCounterLogDescriptor--; | 1737 buildCounterLogDescriptor--; |
| 1662 } | 1738 } |
| 1663 | 1739 |
| 1664 buildUnnamed1063() { | 1740 buildUnnamed1092() { |
| 1665 var o = new core.List<api.LoggingDestination>(); | 1741 var o = new core.List<api.LoggingDestination>(); |
| 1666 o.add(buildLoggingDestination()); | 1742 o.add(buildLoggingDestination()); |
| 1667 o.add(buildLoggingDestination()); | 1743 o.add(buildLoggingDestination()); |
| 1668 return o; | 1744 return o; |
| 1669 } | 1745 } |
| 1670 | 1746 |
| 1671 checkUnnamed1063(core.List<api.LoggingDestination> o) { | 1747 checkUnnamed1092(core.List<api.LoggingDestination> o) { |
| 1672 unittest.expect(o, unittest.hasLength(2)); | 1748 unittest.expect(o, unittest.hasLength(2)); |
| 1673 checkLoggingDestination(o[0]); | 1749 checkLoggingDestination(o[0]); |
| 1674 checkLoggingDestination(o[1]); | 1750 checkLoggingDestination(o[1]); |
| 1675 } | 1751 } |
| 1676 | 1752 |
| 1677 buildUnnamed1064() { | 1753 buildUnnamed1093() { |
| 1678 var o = new core.List<api.LoggingDestination>(); | 1754 var o = new core.List<api.LoggingDestination>(); |
| 1679 o.add(buildLoggingDestination()); | 1755 o.add(buildLoggingDestination()); |
| 1680 o.add(buildLoggingDestination()); | 1756 o.add(buildLoggingDestination()); |
| 1681 return o; | 1757 return o; |
| 1682 } | 1758 } |
| 1683 | 1759 |
| 1684 checkUnnamed1064(core.List<api.LoggingDestination> o) { | 1760 checkUnnamed1093(core.List<api.LoggingDestination> o) { |
| 1685 unittest.expect(o, unittest.hasLength(2)); | 1761 unittest.expect(o, unittest.hasLength(2)); |
| 1686 checkLoggingDestination(o[0]); | 1762 checkLoggingDestination(o[0]); |
| 1687 checkLoggingDestination(o[1]); | 1763 checkLoggingDestination(o[1]); |
| 1688 } | 1764 } |
| 1689 | 1765 |
| 1690 core.int buildCounterLogging = 0; | 1766 core.int buildCounterLogging = 0; |
| 1691 buildLogging() { | 1767 buildLogging() { |
| 1692 var o = new api.Logging(); | 1768 var o = new api.Logging(); |
| 1693 buildCounterLogging++; | 1769 buildCounterLogging++; |
| 1694 if (buildCounterLogging < 3) { | 1770 if (buildCounterLogging < 3) { |
| 1695 o.consumerDestinations = buildUnnamed1063(); | 1771 o.consumerDestinations = buildUnnamed1092(); |
| 1696 o.producerDestinations = buildUnnamed1064(); | 1772 o.producerDestinations = buildUnnamed1093(); |
| 1697 } | 1773 } |
| 1698 buildCounterLogging--; | 1774 buildCounterLogging--; |
| 1699 return o; | 1775 return o; |
| 1700 } | 1776 } |
| 1701 | 1777 |
| 1702 checkLogging(api.Logging o) { | 1778 checkLogging(api.Logging o) { |
| 1703 buildCounterLogging++; | 1779 buildCounterLogging++; |
| 1704 if (buildCounterLogging < 3) { | 1780 if (buildCounterLogging < 3) { |
| 1705 checkUnnamed1063(o.consumerDestinations); | 1781 checkUnnamed1092(o.consumerDestinations); |
| 1706 checkUnnamed1064(o.producerDestinations); | 1782 checkUnnamed1093(o.producerDestinations); |
| 1707 } | 1783 } |
| 1708 buildCounterLogging--; | 1784 buildCounterLogging--; |
| 1709 } | 1785 } |
| 1710 | 1786 |
| 1711 buildUnnamed1065() { | 1787 buildUnnamed1094() { |
| 1712 var o = new core.List<core.String>(); | 1788 var o = new core.List<core.String>(); |
| 1713 o.add("foo"); | 1789 o.add("foo"); |
| 1714 o.add("foo"); | 1790 o.add("foo"); |
| 1715 return o; | 1791 return o; |
| 1716 } | 1792 } |
| 1717 | 1793 |
| 1718 checkUnnamed1065(core.List<core.String> o) { | 1794 checkUnnamed1094(core.List<core.String> o) { |
| 1719 unittest.expect(o, unittest.hasLength(2)); | 1795 unittest.expect(o, unittest.hasLength(2)); |
| 1720 unittest.expect(o[0], unittest.equals('foo')); | 1796 unittest.expect(o[0], unittest.equals('foo')); |
| 1721 unittest.expect(o[1], unittest.equals('foo')); | 1797 unittest.expect(o[1], unittest.equals('foo')); |
| 1722 } | 1798 } |
| 1723 | 1799 |
| 1724 core.int buildCounterLoggingDestination = 0; | 1800 core.int buildCounterLoggingDestination = 0; |
| 1725 buildLoggingDestination() { | 1801 buildLoggingDestination() { |
| 1726 var o = new api.LoggingDestination(); | 1802 var o = new api.LoggingDestination(); |
| 1727 buildCounterLoggingDestination++; | 1803 buildCounterLoggingDestination++; |
| 1728 if (buildCounterLoggingDestination < 3) { | 1804 if (buildCounterLoggingDestination < 3) { |
| 1729 o.logs = buildUnnamed1065(); | 1805 o.logs = buildUnnamed1094(); |
| 1730 o.monitoredResource = "foo"; | 1806 o.monitoredResource = "foo"; |
| 1731 } | 1807 } |
| 1732 buildCounterLoggingDestination--; | 1808 buildCounterLoggingDestination--; |
| 1733 return o; | 1809 return o; |
| 1734 } | 1810 } |
| 1735 | 1811 |
| 1736 checkLoggingDestination(api.LoggingDestination o) { | 1812 checkLoggingDestination(api.LoggingDestination o) { |
| 1737 buildCounterLoggingDestination++; | 1813 buildCounterLoggingDestination++; |
| 1738 if (buildCounterLoggingDestination < 3) { | 1814 if (buildCounterLoggingDestination < 3) { |
| 1739 checkUnnamed1065(o.logs); | 1815 checkUnnamed1094(o.logs); |
| 1740 unittest.expect(o.monitoredResource, unittest.equals('foo')); | 1816 unittest.expect(o.monitoredResource, unittest.equals('foo')); |
| 1741 } | 1817 } |
| 1742 buildCounterLoggingDestination--; | 1818 buildCounterLoggingDestination--; |
| 1743 } | 1819 } |
| 1744 | 1820 |
| 1745 core.int buildCounterManagedService = 0; | 1821 core.int buildCounterManagedService = 0; |
| 1746 buildManagedService() { | 1822 buildManagedService() { |
| 1747 var o = new api.ManagedService(); | 1823 var o = new api.ManagedService(); |
| 1748 buildCounterManagedService++; | 1824 buildCounterManagedService++; |
| 1749 if (buildCounterManagedService < 3) { | 1825 if (buildCounterManagedService < 3) { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1798 | 1874 |
| 1799 checkMediaUpload(api.MediaUpload o) { | 1875 checkMediaUpload(api.MediaUpload o) { |
| 1800 buildCounterMediaUpload++; | 1876 buildCounterMediaUpload++; |
| 1801 if (buildCounterMediaUpload < 3) { | 1877 if (buildCounterMediaUpload < 3) { |
| 1802 unittest.expect(o.enabled, unittest.isTrue); | 1878 unittest.expect(o.enabled, unittest.isTrue); |
| 1803 unittest.expect(o.uploadService, unittest.equals('foo')); | 1879 unittest.expect(o.uploadService, unittest.equals('foo')); |
| 1804 } | 1880 } |
| 1805 buildCounterMediaUpload--; | 1881 buildCounterMediaUpload--; |
| 1806 } | 1882 } |
| 1807 | 1883 |
| 1808 buildUnnamed1066() { | 1884 buildUnnamed1095() { |
| 1809 var o = new core.List<api.Option>(); | 1885 var o = new core.List<api.Option>(); |
| 1810 o.add(buildOption()); | 1886 o.add(buildOption()); |
| 1811 o.add(buildOption()); | 1887 o.add(buildOption()); |
| 1812 return o; | 1888 return o; |
| 1813 } | 1889 } |
| 1814 | 1890 |
| 1815 checkUnnamed1066(core.List<api.Option> o) { | 1891 checkUnnamed1095(core.List<api.Option> o) { |
| 1816 unittest.expect(o, unittest.hasLength(2)); | 1892 unittest.expect(o, unittest.hasLength(2)); |
| 1817 checkOption(o[0]); | 1893 checkOption(o[0]); |
| 1818 checkOption(o[1]); | 1894 checkOption(o[1]); |
| 1819 } | 1895 } |
| 1820 | 1896 |
| 1821 core.int buildCounterMethod = 0; | 1897 core.int buildCounterMethod = 0; |
| 1822 buildMethod() { | 1898 buildMethod() { |
| 1823 var o = new api.Method(); | 1899 var o = new api.Method(); |
| 1824 buildCounterMethod++; | 1900 buildCounterMethod++; |
| 1825 if (buildCounterMethod < 3) { | 1901 if (buildCounterMethod < 3) { |
| 1826 o.name = "foo"; | 1902 o.name = "foo"; |
| 1827 o.options = buildUnnamed1066(); | 1903 o.options = buildUnnamed1095(); |
| 1828 o.requestStreaming = true; | 1904 o.requestStreaming = true; |
| 1829 o.requestTypeUrl = "foo"; | 1905 o.requestTypeUrl = "foo"; |
| 1830 o.responseStreaming = true; | 1906 o.responseStreaming = true; |
| 1831 o.responseTypeUrl = "foo"; | 1907 o.responseTypeUrl = "foo"; |
| 1832 o.syntax = "foo"; | 1908 o.syntax = "foo"; |
| 1833 } | 1909 } |
| 1834 buildCounterMethod--; | 1910 buildCounterMethod--; |
| 1835 return o; | 1911 return o; |
| 1836 } | 1912 } |
| 1837 | 1913 |
| 1838 checkMethod(api.Method o) { | 1914 checkMethod(api.Method o) { |
| 1839 buildCounterMethod++; | 1915 buildCounterMethod++; |
| 1840 if (buildCounterMethod < 3) { | 1916 if (buildCounterMethod < 3) { |
| 1841 unittest.expect(o.name, unittest.equals('foo')); | 1917 unittest.expect(o.name, unittest.equals('foo')); |
| 1842 checkUnnamed1066(o.options); | 1918 checkUnnamed1095(o.options); |
| 1843 unittest.expect(o.requestStreaming, unittest.isTrue); | 1919 unittest.expect(o.requestStreaming, unittest.isTrue); |
| 1844 unittest.expect(o.requestTypeUrl, unittest.equals('foo')); | 1920 unittest.expect(o.requestTypeUrl, unittest.equals('foo')); |
| 1845 unittest.expect(o.responseStreaming, unittest.isTrue); | 1921 unittest.expect(o.responseStreaming, unittest.isTrue); |
| 1846 unittest.expect(o.responseTypeUrl, unittest.equals('foo')); | 1922 unittest.expect(o.responseTypeUrl, unittest.equals('foo')); |
| 1847 unittest.expect(o.syntax, unittest.equals('foo')); | 1923 unittest.expect(o.syntax, unittest.equals('foo')); |
| 1848 } | 1924 } |
| 1849 buildCounterMethod--; | 1925 buildCounterMethod--; |
| 1850 } | 1926 } |
| 1851 | 1927 |
| 1852 buildUnnamed1067() { | 1928 buildUnnamed1096() { |
| 1853 var o = new core.List<api.LabelDescriptor>(); | 1929 var o = new core.List<api.LabelDescriptor>(); |
| 1854 o.add(buildLabelDescriptor()); | 1930 o.add(buildLabelDescriptor()); |
| 1855 o.add(buildLabelDescriptor()); | 1931 o.add(buildLabelDescriptor()); |
| 1856 return o; | 1932 return o; |
| 1857 } | 1933 } |
| 1858 | 1934 |
| 1859 checkUnnamed1067(core.List<api.LabelDescriptor> o) { | 1935 checkUnnamed1096(core.List<api.LabelDescriptor> o) { |
| 1860 unittest.expect(o, unittest.hasLength(2)); | 1936 unittest.expect(o, unittest.hasLength(2)); |
| 1861 checkLabelDescriptor(o[0]); | 1937 checkLabelDescriptor(o[0]); |
| 1862 checkLabelDescriptor(o[1]); | 1938 checkLabelDescriptor(o[1]); |
| 1863 } | 1939 } |
| 1864 | 1940 |
| 1865 core.int buildCounterMetricDescriptor = 0; | 1941 core.int buildCounterMetricDescriptor = 0; |
| 1866 buildMetricDescriptor() { | 1942 buildMetricDescriptor() { |
| 1867 var o = new api.MetricDescriptor(); | 1943 var o = new api.MetricDescriptor(); |
| 1868 buildCounterMetricDescriptor++; | 1944 buildCounterMetricDescriptor++; |
| 1869 if (buildCounterMetricDescriptor < 3) { | 1945 if (buildCounterMetricDescriptor < 3) { |
| 1870 o.description = "foo"; | 1946 o.description = "foo"; |
| 1871 o.displayName = "foo"; | 1947 o.displayName = "foo"; |
| 1872 o.labels = buildUnnamed1067(); | 1948 o.labels = buildUnnamed1096(); |
| 1873 o.metricKind = "foo"; | 1949 o.metricKind = "foo"; |
| 1874 o.name = "foo"; | 1950 o.name = "foo"; |
| 1875 o.type = "foo"; | 1951 o.type = "foo"; |
| 1876 o.unit = "foo"; | 1952 o.unit = "foo"; |
| 1877 o.valueType = "foo"; | 1953 o.valueType = "foo"; |
| 1878 } | 1954 } |
| 1879 buildCounterMetricDescriptor--; | 1955 buildCounterMetricDescriptor--; |
| 1880 return o; | 1956 return o; |
| 1881 } | 1957 } |
| 1882 | 1958 |
| 1883 checkMetricDescriptor(api.MetricDescriptor o) { | 1959 checkMetricDescriptor(api.MetricDescriptor o) { |
| 1884 buildCounterMetricDescriptor++; | 1960 buildCounterMetricDescriptor++; |
| 1885 if (buildCounterMetricDescriptor < 3) { | 1961 if (buildCounterMetricDescriptor < 3) { |
| 1886 unittest.expect(o.description, unittest.equals('foo')); | 1962 unittest.expect(o.description, unittest.equals('foo')); |
| 1887 unittest.expect(o.displayName, unittest.equals('foo')); | 1963 unittest.expect(o.displayName, unittest.equals('foo')); |
| 1888 checkUnnamed1067(o.labels); | 1964 checkUnnamed1096(o.labels); |
| 1889 unittest.expect(o.metricKind, unittest.equals('foo')); | 1965 unittest.expect(o.metricKind, unittest.equals('foo')); |
| 1890 unittest.expect(o.name, unittest.equals('foo')); | 1966 unittest.expect(o.name, unittest.equals('foo')); |
| 1891 unittest.expect(o.type, unittest.equals('foo')); | 1967 unittest.expect(o.type, unittest.equals('foo')); |
| 1892 unittest.expect(o.unit, unittest.equals('foo')); | 1968 unittest.expect(o.unit, unittest.equals('foo')); |
| 1893 unittest.expect(o.valueType, unittest.equals('foo')); | 1969 unittest.expect(o.valueType, unittest.equals('foo')); |
| 1894 } | 1970 } |
| 1895 buildCounterMetricDescriptor--; | 1971 buildCounterMetricDescriptor--; |
| 1896 } | 1972 } |
| 1897 | 1973 |
| 1898 core.int buildCounterMixin = 0; | 1974 core.int buildCounterMixin = 0; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1909 | 1985 |
| 1910 checkMixin(api.Mixin o) { | 1986 checkMixin(api.Mixin o) { |
| 1911 buildCounterMixin++; | 1987 buildCounterMixin++; |
| 1912 if (buildCounterMixin < 3) { | 1988 if (buildCounterMixin < 3) { |
| 1913 unittest.expect(o.name, unittest.equals('foo')); | 1989 unittest.expect(o.name, unittest.equals('foo')); |
| 1914 unittest.expect(o.root, unittest.equals('foo')); | 1990 unittest.expect(o.root, unittest.equals('foo')); |
| 1915 } | 1991 } |
| 1916 buildCounterMixin--; | 1992 buildCounterMixin--; |
| 1917 } | 1993 } |
| 1918 | 1994 |
| 1919 buildUnnamed1068() { | 1995 buildUnnamed1097() { |
| 1920 var o = new core.List<api.LabelDescriptor>(); | 1996 var o = new core.List<api.LabelDescriptor>(); |
| 1921 o.add(buildLabelDescriptor()); | 1997 o.add(buildLabelDescriptor()); |
| 1922 o.add(buildLabelDescriptor()); | 1998 o.add(buildLabelDescriptor()); |
| 1923 return o; | 1999 return o; |
| 1924 } | 2000 } |
| 1925 | 2001 |
| 1926 checkUnnamed1068(core.List<api.LabelDescriptor> o) { | 2002 checkUnnamed1097(core.List<api.LabelDescriptor> o) { |
| 1927 unittest.expect(o, unittest.hasLength(2)); | 2003 unittest.expect(o, unittest.hasLength(2)); |
| 1928 checkLabelDescriptor(o[0]); | 2004 checkLabelDescriptor(o[0]); |
| 1929 checkLabelDescriptor(o[1]); | 2005 checkLabelDescriptor(o[1]); |
| 1930 } | 2006 } |
| 1931 | 2007 |
| 1932 core.int buildCounterMonitoredResourceDescriptor = 0; | 2008 core.int buildCounterMonitoredResourceDescriptor = 0; |
| 1933 buildMonitoredResourceDescriptor() { | 2009 buildMonitoredResourceDescriptor() { |
| 1934 var o = new api.MonitoredResourceDescriptor(); | 2010 var o = new api.MonitoredResourceDescriptor(); |
| 1935 buildCounterMonitoredResourceDescriptor++; | 2011 buildCounterMonitoredResourceDescriptor++; |
| 1936 if (buildCounterMonitoredResourceDescriptor < 3) { | 2012 if (buildCounterMonitoredResourceDescriptor < 3) { |
| 1937 o.description = "foo"; | 2013 o.description = "foo"; |
| 1938 o.displayName = "foo"; | 2014 o.displayName = "foo"; |
| 1939 o.labels = buildUnnamed1068(); | 2015 o.labels = buildUnnamed1097(); |
| 1940 o.name = "foo"; | 2016 o.name = "foo"; |
| 1941 o.type = "foo"; | 2017 o.type = "foo"; |
| 1942 } | 2018 } |
| 1943 buildCounterMonitoredResourceDescriptor--; | 2019 buildCounterMonitoredResourceDescriptor--; |
| 1944 return o; | 2020 return o; |
| 1945 } | 2021 } |
| 1946 | 2022 |
| 1947 checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) { | 2023 checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) { |
| 1948 buildCounterMonitoredResourceDescriptor++; | 2024 buildCounterMonitoredResourceDescriptor++; |
| 1949 if (buildCounterMonitoredResourceDescriptor < 3) { | 2025 if (buildCounterMonitoredResourceDescriptor < 3) { |
| 1950 unittest.expect(o.description, unittest.equals('foo')); | 2026 unittest.expect(o.description, unittest.equals('foo')); |
| 1951 unittest.expect(o.displayName, unittest.equals('foo')); | 2027 unittest.expect(o.displayName, unittest.equals('foo')); |
| 1952 checkUnnamed1068(o.labels); | 2028 checkUnnamed1097(o.labels); |
| 1953 unittest.expect(o.name, unittest.equals('foo')); | 2029 unittest.expect(o.name, unittest.equals('foo')); |
| 1954 unittest.expect(o.type, unittest.equals('foo')); | 2030 unittest.expect(o.type, unittest.equals('foo')); |
| 1955 } | 2031 } |
| 1956 buildCounterMonitoredResourceDescriptor--; | 2032 buildCounterMonitoredResourceDescriptor--; |
| 1957 } | 2033 } |
| 1958 | 2034 |
| 1959 buildUnnamed1069() { | 2035 buildUnnamed1098() { |
| 1960 var o = new core.List<api.MonitoringDestination>(); | 2036 var o = new core.List<api.MonitoringDestination>(); |
| 1961 o.add(buildMonitoringDestination()); | 2037 o.add(buildMonitoringDestination()); |
| 1962 o.add(buildMonitoringDestination()); | 2038 o.add(buildMonitoringDestination()); |
| 1963 return o; | 2039 return o; |
| 1964 } | 2040 } |
| 1965 | 2041 |
| 1966 checkUnnamed1069(core.List<api.MonitoringDestination> o) { | 2042 checkUnnamed1098(core.List<api.MonitoringDestination> o) { |
| 1967 unittest.expect(o, unittest.hasLength(2)); | 2043 unittest.expect(o, unittest.hasLength(2)); |
| 1968 checkMonitoringDestination(o[0]); | 2044 checkMonitoringDestination(o[0]); |
| 1969 checkMonitoringDestination(o[1]); | 2045 checkMonitoringDestination(o[1]); |
| 1970 } | 2046 } |
| 1971 | 2047 |
| 1972 buildUnnamed1070() { | 2048 buildUnnamed1099() { |
| 1973 var o = new core.List<api.MonitoringDestination>(); | 2049 var o = new core.List<api.MonitoringDestination>(); |
| 1974 o.add(buildMonitoringDestination()); | 2050 o.add(buildMonitoringDestination()); |
| 1975 o.add(buildMonitoringDestination()); | 2051 o.add(buildMonitoringDestination()); |
| 1976 return o; | 2052 return o; |
| 1977 } | 2053 } |
| 1978 | 2054 |
| 1979 checkUnnamed1070(core.List<api.MonitoringDestination> o) { | 2055 checkUnnamed1099(core.List<api.MonitoringDestination> o) { |
| 1980 unittest.expect(o, unittest.hasLength(2)); | 2056 unittest.expect(o, unittest.hasLength(2)); |
| 1981 checkMonitoringDestination(o[0]); | 2057 checkMonitoringDestination(o[0]); |
| 1982 checkMonitoringDestination(o[1]); | 2058 checkMonitoringDestination(o[1]); |
| 1983 } | 2059 } |
| 1984 | 2060 |
| 1985 core.int buildCounterMonitoring = 0; | 2061 core.int buildCounterMonitoring = 0; |
| 1986 buildMonitoring() { | 2062 buildMonitoring() { |
| 1987 var o = new api.Monitoring(); | 2063 var o = new api.Monitoring(); |
| 1988 buildCounterMonitoring++; | 2064 buildCounterMonitoring++; |
| 1989 if (buildCounterMonitoring < 3) { | 2065 if (buildCounterMonitoring < 3) { |
| 1990 o.consumerDestinations = buildUnnamed1069(); | 2066 o.consumerDestinations = buildUnnamed1098(); |
| 1991 o.producerDestinations = buildUnnamed1070(); | 2067 o.producerDestinations = buildUnnamed1099(); |
| 1992 } | 2068 } |
| 1993 buildCounterMonitoring--; | 2069 buildCounterMonitoring--; |
| 1994 return o; | 2070 return o; |
| 1995 } | 2071 } |
| 1996 | 2072 |
| 1997 checkMonitoring(api.Monitoring o) { | 2073 checkMonitoring(api.Monitoring o) { |
| 1998 buildCounterMonitoring++; | 2074 buildCounterMonitoring++; |
| 1999 if (buildCounterMonitoring < 3) { | 2075 if (buildCounterMonitoring < 3) { |
| 2000 checkUnnamed1069(o.consumerDestinations); | 2076 checkUnnamed1098(o.consumerDestinations); |
| 2001 checkUnnamed1070(o.producerDestinations); | 2077 checkUnnamed1099(o.producerDestinations); |
| 2002 } | 2078 } |
| 2003 buildCounterMonitoring--; | 2079 buildCounterMonitoring--; |
| 2004 } | 2080 } |
| 2005 | 2081 |
| 2006 buildUnnamed1071() { | 2082 buildUnnamed1100() { |
| 2007 var o = new core.List<core.String>(); | 2083 var o = new core.List<core.String>(); |
| 2008 o.add("foo"); | 2084 o.add("foo"); |
| 2009 o.add("foo"); | 2085 o.add("foo"); |
| 2010 return o; | 2086 return o; |
| 2011 } | 2087 } |
| 2012 | 2088 |
| 2013 checkUnnamed1071(core.List<core.String> o) { | 2089 checkUnnamed1100(core.List<core.String> o) { |
| 2014 unittest.expect(o, unittest.hasLength(2)); | 2090 unittest.expect(o, unittest.hasLength(2)); |
| 2015 unittest.expect(o[0], unittest.equals('foo')); | 2091 unittest.expect(o[0], unittest.equals('foo')); |
| 2016 unittest.expect(o[1], unittest.equals('foo')); | 2092 unittest.expect(o[1], unittest.equals('foo')); |
| 2017 } | 2093 } |
| 2018 | 2094 |
| 2019 core.int buildCounterMonitoringDestination = 0; | 2095 core.int buildCounterMonitoringDestination = 0; |
| 2020 buildMonitoringDestination() { | 2096 buildMonitoringDestination() { |
| 2021 var o = new api.MonitoringDestination(); | 2097 var o = new api.MonitoringDestination(); |
| 2022 buildCounterMonitoringDestination++; | 2098 buildCounterMonitoringDestination++; |
| 2023 if (buildCounterMonitoringDestination < 3) { | 2099 if (buildCounterMonitoringDestination < 3) { |
| 2024 o.metrics = buildUnnamed1071(); | 2100 o.metrics = buildUnnamed1100(); |
| 2025 o.monitoredResource = "foo"; | 2101 o.monitoredResource = "foo"; |
| 2026 } | 2102 } |
| 2027 buildCounterMonitoringDestination--; | 2103 buildCounterMonitoringDestination--; |
| 2028 return o; | 2104 return o; |
| 2029 } | 2105 } |
| 2030 | 2106 |
| 2031 checkMonitoringDestination(api.MonitoringDestination o) { | 2107 checkMonitoringDestination(api.MonitoringDestination o) { |
| 2032 buildCounterMonitoringDestination++; | 2108 buildCounterMonitoringDestination++; |
| 2033 if (buildCounterMonitoringDestination < 3) { | 2109 if (buildCounterMonitoringDestination < 3) { |
| 2034 checkUnnamed1071(o.metrics); | 2110 checkUnnamed1100(o.metrics); |
| 2035 unittest.expect(o.monitoredResource, unittest.equals('foo')); | 2111 unittest.expect(o.monitoredResource, unittest.equals('foo')); |
| 2036 } | 2112 } |
| 2037 buildCounterMonitoringDestination--; | 2113 buildCounterMonitoringDestination--; |
| 2038 } | 2114 } |
| 2039 | 2115 |
| 2040 core.int buildCounterOAuthRequirements = 0; | 2116 core.int buildCounterOAuthRequirements = 0; |
| 2041 buildOAuthRequirements() { | 2117 buildOAuthRequirements() { |
| 2042 var o = new api.OAuthRequirements(); | 2118 var o = new api.OAuthRequirements(); |
| 2043 buildCounterOAuthRequirements++; | 2119 buildCounterOAuthRequirements++; |
| 2044 if (buildCounterOAuthRequirements < 3) { | 2120 if (buildCounterOAuthRequirements < 3) { |
| 2045 o.canonicalScopes = "foo"; | 2121 o.canonicalScopes = "foo"; |
| 2046 } | 2122 } |
| 2047 buildCounterOAuthRequirements--; | 2123 buildCounterOAuthRequirements--; |
| 2048 return o; | 2124 return o; |
| 2049 } | 2125 } |
| 2050 | 2126 |
| 2051 checkOAuthRequirements(api.OAuthRequirements o) { | 2127 checkOAuthRequirements(api.OAuthRequirements o) { |
| 2052 buildCounterOAuthRequirements++; | 2128 buildCounterOAuthRequirements++; |
| 2053 if (buildCounterOAuthRequirements < 3) { | 2129 if (buildCounterOAuthRequirements < 3) { |
| 2054 unittest.expect(o.canonicalScopes, unittest.equals('foo')); | 2130 unittest.expect(o.canonicalScopes, unittest.equals('foo')); |
| 2055 } | 2131 } |
| 2056 buildCounterOAuthRequirements--; | 2132 buildCounterOAuthRequirements--; |
| 2057 } | 2133 } |
| 2058 | 2134 |
| 2059 buildUnnamed1072() { | 2135 buildUnnamed1101() { |
| 2060 var o = new core.Map<core.String, core.Object>(); | 2136 var o = new core.Map<core.String, core.Object>(); |
| 2061 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2137 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 2062 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2138 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 2063 return o; | 2139 return o; |
| 2064 } | 2140 } |
| 2065 | 2141 |
| 2066 checkUnnamed1072(core.Map<core.String, core.Object> o) { | 2142 checkUnnamed1101(core.Map<core.String, core.Object> o) { |
| 2067 unittest.expect(o, unittest.hasLength(2)); | 2143 unittest.expect(o, unittest.hasLength(2)); |
| 2068 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')); | 2144 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')); |
| 2069 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')); | 2145 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')); |
| 2070 } | 2146 } |
| 2071 | 2147 |
| 2072 buildUnnamed1073() { | 2148 buildUnnamed1102() { |
| 2073 var o = new core.Map<core.String, core.Object>(); | 2149 var o = new core.Map<core.String, core.Object>(); |
| 2074 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2150 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 2075 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2151 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 2076 return o; | 2152 return o; |
| 2077 } | 2153 } |
| 2078 | 2154 |
| 2079 checkUnnamed1073(core.Map<core.String, core.Object> o) { | 2155 checkUnnamed1102(core.Map<core.String, core.Object> o) { |
| 2080 unittest.expect(o, unittest.hasLength(2)); | 2156 unittest.expect(o, unittest.hasLength(2)); |
| 2081 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')); | 2157 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')); |
| 2082 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')); | 2158 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')); |
| 2083 } | 2159 } |
| 2084 | 2160 |
| 2085 core.int buildCounterOperation = 0; | 2161 core.int buildCounterOperation = 0; |
| 2086 buildOperation() { | 2162 buildOperation() { |
| 2087 var o = new api.Operation(); | 2163 var o = new api.Operation(); |
| 2088 buildCounterOperation++; | 2164 buildCounterOperation++; |
| 2089 if (buildCounterOperation < 3) { | 2165 if (buildCounterOperation < 3) { |
| 2090 o.done = true; | 2166 o.done = true; |
| 2091 o.error = buildStatus(); | 2167 o.error = buildStatus(); |
| 2092 o.metadata = buildUnnamed1072(); | 2168 o.metadata = buildUnnamed1101(); |
| 2093 o.name = "foo"; | 2169 o.name = "foo"; |
| 2094 o.response = buildUnnamed1073(); | 2170 o.response = buildUnnamed1102(); |
| 2095 } | 2171 } |
| 2096 buildCounterOperation--; | 2172 buildCounterOperation--; |
| 2097 return o; | 2173 return o; |
| 2098 } | 2174 } |
| 2099 | 2175 |
| 2100 checkOperation(api.Operation o) { | 2176 checkOperation(api.Operation o) { |
| 2101 buildCounterOperation++; | 2177 buildCounterOperation++; |
| 2102 if (buildCounterOperation < 3) { | 2178 if (buildCounterOperation < 3) { |
| 2103 unittest.expect(o.done, unittest.isTrue); | 2179 unittest.expect(o.done, unittest.isTrue); |
| 2104 checkStatus(o.error); | 2180 checkStatus(o.error); |
| 2105 checkUnnamed1072(o.metadata); | 2181 checkUnnamed1101(o.metadata); |
| 2106 unittest.expect(o.name, unittest.equals('foo')); | 2182 unittest.expect(o.name, unittest.equals('foo')); |
| 2107 checkUnnamed1073(o.response); | 2183 checkUnnamed1102(o.response); |
| 2108 } | 2184 } |
| 2109 buildCounterOperation--; | 2185 buildCounterOperation--; |
| 2110 } | 2186 } |
| 2111 | 2187 |
| 2112 buildUnnamed1074() { | 2188 buildUnnamed1103() { |
| 2113 var o = new core.List<core.String>(); | 2189 var o = new core.List<core.String>(); |
| 2114 o.add("foo"); | 2190 o.add("foo"); |
| 2115 o.add("foo"); | 2191 o.add("foo"); |
| 2116 return o; | 2192 return o; |
| 2117 } | 2193 } |
| 2118 | 2194 |
| 2119 checkUnnamed1074(core.List<core.String> o) { | 2195 checkUnnamed1103(core.List<core.String> o) { |
| 2120 unittest.expect(o, unittest.hasLength(2)); | 2196 unittest.expect(o, unittest.hasLength(2)); |
| 2121 unittest.expect(o[0], unittest.equals('foo')); | 2197 unittest.expect(o[0], unittest.equals('foo')); |
| 2122 unittest.expect(o[1], unittest.equals('foo')); | 2198 unittest.expect(o[1], unittest.equals('foo')); |
| 2123 } | 2199 } |
| 2124 | 2200 |
| 2125 buildUnnamed1075() { | 2201 buildUnnamed1104() { |
| 2126 var o = new core.List<api.Step>(); | 2202 var o = new core.List<api.Step>(); |
| 2127 o.add(buildStep()); | 2203 o.add(buildStep()); |
| 2128 o.add(buildStep()); | 2204 o.add(buildStep()); |
| 2129 return o; | 2205 return o; |
| 2130 } | 2206 } |
| 2131 | 2207 |
| 2132 checkUnnamed1075(core.List<api.Step> o) { | 2208 checkUnnamed1104(core.List<api.Step> o) { |
| 2133 unittest.expect(o, unittest.hasLength(2)); | 2209 unittest.expect(o, unittest.hasLength(2)); |
| 2134 checkStep(o[0]); | 2210 checkStep(o[0]); |
| 2135 checkStep(o[1]); | 2211 checkStep(o[1]); |
| 2136 } | 2212 } |
| 2137 | 2213 |
| 2138 core.int buildCounterOperationMetadata = 0; | 2214 core.int buildCounterOperationMetadata = 0; |
| 2139 buildOperationMetadata() { | 2215 buildOperationMetadata() { |
| 2140 var o = new api.OperationMetadata(); | 2216 var o = new api.OperationMetadata(); |
| 2141 buildCounterOperationMetadata++; | 2217 buildCounterOperationMetadata++; |
| 2142 if (buildCounterOperationMetadata < 3) { | 2218 if (buildCounterOperationMetadata < 3) { |
| 2143 o.progressPercentage = 42; | 2219 o.progressPercentage = 42; |
| 2144 o.resourceNames = buildUnnamed1074(); | 2220 o.resourceNames = buildUnnamed1103(); |
| 2145 o.startTime = "foo"; | 2221 o.startTime = "foo"; |
| 2146 o.steps = buildUnnamed1075(); | 2222 o.steps = buildUnnamed1104(); |
| 2147 } | 2223 } |
| 2148 buildCounterOperationMetadata--; | 2224 buildCounterOperationMetadata--; |
| 2149 return o; | 2225 return o; |
| 2150 } | 2226 } |
| 2151 | 2227 |
| 2152 checkOperationMetadata(api.OperationMetadata o) { | 2228 checkOperationMetadata(api.OperationMetadata o) { |
| 2153 buildCounterOperationMetadata++; | 2229 buildCounterOperationMetadata++; |
| 2154 if (buildCounterOperationMetadata < 3) { | 2230 if (buildCounterOperationMetadata < 3) { |
| 2155 unittest.expect(o.progressPercentage, unittest.equals(42)); | 2231 unittest.expect(o.progressPercentage, unittest.equals(42)); |
| 2156 checkUnnamed1074(o.resourceNames); | 2232 checkUnnamed1103(o.resourceNames); |
| 2157 unittest.expect(o.startTime, unittest.equals('foo')); | 2233 unittest.expect(o.startTime, unittest.equals('foo')); |
| 2158 checkUnnamed1075(o.steps); | 2234 checkUnnamed1104(o.steps); |
| 2159 } | 2235 } |
| 2160 buildCounterOperationMetadata--; | 2236 buildCounterOperationMetadata--; |
| 2161 } | 2237 } |
| 2162 | 2238 |
| 2163 buildUnnamed1076() { | 2239 buildUnnamed1105() { |
| 2164 var o = new core.Map<core.String, core.Object>(); | 2240 var o = new core.Map<core.String, core.Object>(); |
| 2165 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2241 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 2166 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2242 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 2167 return o; | 2243 return o; |
| 2168 } | 2244 } |
| 2169 | 2245 |
| 2170 checkUnnamed1076(core.Map<core.String, core.Object> o) { | 2246 checkUnnamed1105(core.Map<core.String, core.Object> o) { |
| 2171 unittest.expect(o, unittest.hasLength(2)); | 2247 unittest.expect(o, unittest.hasLength(2)); |
| 2172 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')); | 2248 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')); |
| 2173 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')); | 2249 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')); |
| 2174 } | 2250 } |
| 2175 | 2251 |
| 2176 core.int buildCounterOption = 0; | 2252 core.int buildCounterOption = 0; |
| 2177 buildOption() { | 2253 buildOption() { |
| 2178 var o = new api.Option(); | 2254 var o = new api.Option(); |
| 2179 buildCounterOption++; | 2255 buildCounterOption++; |
| 2180 if (buildCounterOption < 3) { | 2256 if (buildCounterOption < 3) { |
| 2181 o.name = "foo"; | 2257 o.name = "foo"; |
| 2182 o.value = buildUnnamed1076(); | 2258 o.value = buildUnnamed1105(); |
| 2183 } | 2259 } |
| 2184 buildCounterOption--; | 2260 buildCounterOption--; |
| 2185 return o; | 2261 return o; |
| 2186 } | 2262 } |
| 2187 | 2263 |
| 2188 checkOption(api.Option o) { | 2264 checkOption(api.Option o) { |
| 2189 buildCounterOption++; | 2265 buildCounterOption++; |
| 2190 if (buildCounterOption < 3) { | 2266 if (buildCounterOption < 3) { |
| 2191 unittest.expect(o.name, unittest.equals('foo')); | 2267 unittest.expect(o.name, unittest.equals('foo')); |
| 2192 checkUnnamed1076(o.value); | 2268 checkUnnamed1105(o.value); |
| 2193 } | 2269 } |
| 2194 buildCounterOption--; | 2270 buildCounterOption--; |
| 2195 } | 2271 } |
| 2196 | 2272 |
| 2197 buildUnnamed1077() { | 2273 buildUnnamed1106() { |
| 2198 var o = new core.List<api.Page>(); | 2274 var o = new core.List<api.Page>(); |
| 2199 o.add(buildPage()); | 2275 o.add(buildPage()); |
| 2200 o.add(buildPage()); | 2276 o.add(buildPage()); |
| 2201 return o; | 2277 return o; |
| 2202 } | 2278 } |
| 2203 | 2279 |
| 2204 checkUnnamed1077(core.List<api.Page> o) { | 2280 checkUnnamed1106(core.List<api.Page> o) { |
| 2205 unittest.expect(o, unittest.hasLength(2)); | 2281 unittest.expect(o, unittest.hasLength(2)); |
| 2206 checkPage(o[0]); | 2282 checkPage(o[0]); |
| 2207 checkPage(o[1]); | 2283 checkPage(o[1]); |
| 2208 } | 2284 } |
| 2209 | 2285 |
| 2210 core.int buildCounterPage = 0; | 2286 core.int buildCounterPage = 0; |
| 2211 buildPage() { | 2287 buildPage() { |
| 2212 var o = new api.Page(); | 2288 var o = new api.Page(); |
| 2213 buildCounterPage++; | 2289 buildCounterPage++; |
| 2214 if (buildCounterPage < 3) { | 2290 if (buildCounterPage < 3) { |
| 2215 o.content = "foo"; | 2291 o.content = "foo"; |
| 2216 o.name = "foo"; | 2292 o.name = "foo"; |
| 2217 o.subpages = buildUnnamed1077(); | 2293 o.subpages = buildUnnamed1106(); |
| 2218 } | 2294 } |
| 2219 buildCounterPage--; | 2295 buildCounterPage--; |
| 2220 return o; | 2296 return o; |
| 2221 } | 2297 } |
| 2222 | 2298 |
| 2223 checkPage(api.Page o) { | 2299 checkPage(api.Page o) { |
| 2224 buildCounterPage++; | 2300 buildCounterPage++; |
| 2225 if (buildCounterPage < 3) { | 2301 if (buildCounterPage < 3) { |
| 2226 unittest.expect(o.content, unittest.equals('foo')); | 2302 unittest.expect(o.content, unittest.equals('foo')); |
| 2227 unittest.expect(o.name, unittest.equals('foo')); | 2303 unittest.expect(o.name, unittest.equals('foo')); |
| 2228 checkUnnamed1077(o.subpages); | 2304 checkUnnamed1106(o.subpages); |
| 2229 } | 2305 } |
| 2230 buildCounterPage--; | 2306 buildCounterPage--; |
| 2231 } | 2307 } |
| 2232 | 2308 |
| 2233 buildUnnamed1078() { | 2309 buildUnnamed1107() { |
| 2234 var o = new core.List<api.AuditConfig>(); | 2310 var o = new core.List<api.AuditConfig>(); |
| 2235 o.add(buildAuditConfig()); | 2311 o.add(buildAuditConfig()); |
| 2236 o.add(buildAuditConfig()); | 2312 o.add(buildAuditConfig()); |
| 2237 return o; | 2313 return o; |
| 2238 } | 2314 } |
| 2239 | 2315 |
| 2240 checkUnnamed1078(core.List<api.AuditConfig> o) { | 2316 checkUnnamed1107(core.List<api.AuditConfig> o) { |
| 2241 unittest.expect(o, unittest.hasLength(2)); | 2317 unittest.expect(o, unittest.hasLength(2)); |
| 2242 checkAuditConfig(o[0]); | 2318 checkAuditConfig(o[0]); |
| 2243 checkAuditConfig(o[1]); | 2319 checkAuditConfig(o[1]); |
| 2244 } | 2320 } |
| 2245 | 2321 |
| 2246 buildUnnamed1079() { | 2322 buildUnnamed1108() { |
| 2247 var o = new core.List<api.Binding>(); | 2323 var o = new core.List<api.Binding>(); |
| 2248 o.add(buildBinding()); | 2324 o.add(buildBinding()); |
| 2249 o.add(buildBinding()); | 2325 o.add(buildBinding()); |
| 2250 return o; | 2326 return o; |
| 2251 } | 2327 } |
| 2252 | 2328 |
| 2253 checkUnnamed1079(core.List<api.Binding> o) { | 2329 checkUnnamed1108(core.List<api.Binding> o) { |
| 2254 unittest.expect(o, unittest.hasLength(2)); | 2330 unittest.expect(o, unittest.hasLength(2)); |
| 2255 checkBinding(o[0]); | 2331 checkBinding(o[0]); |
| 2256 checkBinding(o[1]); | 2332 checkBinding(o[1]); |
| 2257 } | 2333 } |
| 2258 | 2334 |
| 2259 buildUnnamed1080() { | 2335 buildUnnamed1109() { |
| 2260 var o = new core.List<api.Rule>(); | 2336 var o = new core.List<api.Rule>(); |
| 2261 o.add(buildRule()); | 2337 o.add(buildRule()); |
| 2262 o.add(buildRule()); | 2338 o.add(buildRule()); |
| 2263 return o; | 2339 return o; |
| 2264 } | 2340 } |
| 2265 | 2341 |
| 2266 checkUnnamed1080(core.List<api.Rule> o) { | 2342 checkUnnamed1109(core.List<api.Rule> o) { |
| 2267 unittest.expect(o, unittest.hasLength(2)); | 2343 unittest.expect(o, unittest.hasLength(2)); |
| 2268 checkRule(o[0]); | 2344 checkRule(o[0]); |
| 2269 checkRule(o[1]); | 2345 checkRule(o[1]); |
| 2270 } | 2346 } |
| 2271 | 2347 |
| 2272 core.int buildCounterPolicy = 0; | 2348 core.int buildCounterPolicy = 0; |
| 2273 buildPolicy() { | 2349 buildPolicy() { |
| 2274 var o = new api.Policy(); | 2350 var o = new api.Policy(); |
| 2275 buildCounterPolicy++; | 2351 buildCounterPolicy++; |
| 2276 if (buildCounterPolicy < 3) { | 2352 if (buildCounterPolicy < 3) { |
| 2277 o.auditConfigs = buildUnnamed1078(); | 2353 o.auditConfigs = buildUnnamed1107(); |
| 2278 o.bindings = buildUnnamed1079(); | 2354 o.bindings = buildUnnamed1108(); |
| 2279 o.etag = "foo"; | 2355 o.etag = "foo"; |
| 2280 o.iamOwned = true; | 2356 o.iamOwned = true; |
| 2281 o.rules = buildUnnamed1080(); | 2357 o.rules = buildUnnamed1109(); |
| 2282 o.version = 42; | 2358 o.version = 42; |
| 2283 } | 2359 } |
| 2284 buildCounterPolicy--; | 2360 buildCounterPolicy--; |
| 2285 return o; | 2361 return o; |
| 2286 } | 2362 } |
| 2287 | 2363 |
| 2288 checkPolicy(api.Policy o) { | 2364 checkPolicy(api.Policy o) { |
| 2289 buildCounterPolicy++; | 2365 buildCounterPolicy++; |
| 2290 if (buildCounterPolicy < 3) { | 2366 if (buildCounterPolicy < 3) { |
| 2291 checkUnnamed1078(o.auditConfigs); | 2367 checkUnnamed1107(o.auditConfigs); |
| 2292 checkUnnamed1079(o.bindings); | 2368 checkUnnamed1108(o.bindings); |
| 2293 unittest.expect(o.etag, unittest.equals('foo')); | 2369 unittest.expect(o.etag, unittest.equals('foo')); |
| 2294 unittest.expect(o.iamOwned, unittest.isTrue); | 2370 unittest.expect(o.iamOwned, unittest.isTrue); |
| 2295 checkUnnamed1080(o.rules); | 2371 checkUnnamed1109(o.rules); |
| 2296 unittest.expect(o.version, unittest.equals(42)); | 2372 unittest.expect(o.version, unittest.equals(42)); |
| 2297 } | 2373 } |
| 2298 buildCounterPolicy--; | 2374 buildCounterPolicy--; |
| 2299 } | 2375 } |
| 2300 | 2376 |
| 2301 core.int buildCounterRollout = 0; | 2377 core.int buildCounterRollout = 0; |
| 2302 buildRollout() { | 2378 buildRollout() { |
| 2303 var o = new api.Rollout(); | 2379 var o = new api.Rollout(); |
| 2304 buildCounterRollout++; | 2380 buildCounterRollout++; |
| 2305 if (buildCounterRollout < 3) { | 2381 if (buildCounterRollout < 3) { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 2322 unittest.expect(o.createdBy, unittest.equals('foo')); | 2398 unittest.expect(o.createdBy, unittest.equals('foo')); |
| 2323 checkDeleteServiceStrategy(o.deleteServiceStrategy); | 2399 checkDeleteServiceStrategy(o.deleteServiceStrategy); |
| 2324 unittest.expect(o.rolloutId, unittest.equals('foo')); | 2400 unittest.expect(o.rolloutId, unittest.equals('foo')); |
| 2325 unittest.expect(o.serviceName, unittest.equals('foo')); | 2401 unittest.expect(o.serviceName, unittest.equals('foo')); |
| 2326 unittest.expect(o.status, unittest.equals('foo')); | 2402 unittest.expect(o.status, unittest.equals('foo')); |
| 2327 checkTrafficPercentStrategy(o.trafficPercentStrategy); | 2403 checkTrafficPercentStrategy(o.trafficPercentStrategy); |
| 2328 } | 2404 } |
| 2329 buildCounterRollout--; | 2405 buildCounterRollout--; |
| 2330 } | 2406 } |
| 2331 | 2407 |
| 2332 buildUnnamed1081() { | 2408 buildUnnamed1110() { |
| 2333 var o = new core.List<api.Condition>(); | 2409 var o = new core.List<api.Condition>(); |
| 2334 o.add(buildCondition()); | 2410 o.add(buildCondition()); |
| 2335 o.add(buildCondition()); | 2411 o.add(buildCondition()); |
| 2336 return o; | 2412 return o; |
| 2337 } | 2413 } |
| 2338 | 2414 |
| 2339 checkUnnamed1081(core.List<api.Condition> o) { | 2415 checkUnnamed1110(core.List<api.Condition> o) { |
| 2340 unittest.expect(o, unittest.hasLength(2)); | 2416 unittest.expect(o, unittest.hasLength(2)); |
| 2341 checkCondition(o[0]); | 2417 checkCondition(o[0]); |
| 2342 checkCondition(o[1]); | 2418 checkCondition(o[1]); |
| 2343 } | 2419 } |
| 2344 | 2420 |
| 2345 buildUnnamed1082() { | 2421 buildUnnamed1111() { |
| 2346 var o = new core.List<core.String>(); | 2422 var o = new core.List<core.String>(); |
| 2347 o.add("foo"); | 2423 o.add("foo"); |
| 2348 o.add("foo"); | 2424 o.add("foo"); |
| 2349 return o; | 2425 return o; |
| 2350 } | 2426 } |
| 2351 | 2427 |
| 2352 checkUnnamed1082(core.List<core.String> o) { | 2428 checkUnnamed1111(core.List<core.String> o) { |
| 2353 unittest.expect(o, unittest.hasLength(2)); | 2429 unittest.expect(o, unittest.hasLength(2)); |
| 2354 unittest.expect(o[0], unittest.equals('foo')); | 2430 unittest.expect(o[0], unittest.equals('foo')); |
| 2355 unittest.expect(o[1], unittest.equals('foo')); | 2431 unittest.expect(o[1], unittest.equals('foo')); |
| 2356 } | 2432 } |
| 2357 | 2433 |
| 2358 buildUnnamed1083() { | 2434 buildUnnamed1112() { |
| 2359 var o = new core.List<api.LogConfig>(); | 2435 var o = new core.List<api.LogConfig>(); |
| 2360 o.add(buildLogConfig()); | 2436 o.add(buildLogConfig()); |
| 2361 o.add(buildLogConfig()); | 2437 o.add(buildLogConfig()); |
| 2362 return o; | 2438 return o; |
| 2363 } | 2439 } |
| 2364 | 2440 |
| 2365 checkUnnamed1083(core.List<api.LogConfig> o) { | 2441 checkUnnamed1112(core.List<api.LogConfig> o) { |
| 2366 unittest.expect(o, unittest.hasLength(2)); | 2442 unittest.expect(o, unittest.hasLength(2)); |
| 2367 checkLogConfig(o[0]); | 2443 checkLogConfig(o[0]); |
| 2368 checkLogConfig(o[1]); | 2444 checkLogConfig(o[1]); |
| 2369 } | 2445 } |
| 2370 | 2446 |
| 2371 buildUnnamed1084() { | 2447 buildUnnamed1113() { |
| 2372 var o = new core.List<core.String>(); | 2448 var o = new core.List<core.String>(); |
| 2373 o.add("foo"); | 2449 o.add("foo"); |
| 2374 o.add("foo"); | 2450 o.add("foo"); |
| 2375 return o; | 2451 return o; |
| 2376 } | 2452 } |
| 2377 | 2453 |
| 2378 checkUnnamed1084(core.List<core.String> o) { | 2454 checkUnnamed1113(core.List<core.String> o) { |
| 2379 unittest.expect(o, unittest.hasLength(2)); | 2455 unittest.expect(o, unittest.hasLength(2)); |
| 2380 unittest.expect(o[0], unittest.equals('foo')); | 2456 unittest.expect(o[0], unittest.equals('foo')); |
| 2381 unittest.expect(o[1], unittest.equals('foo')); | 2457 unittest.expect(o[1], unittest.equals('foo')); |
| 2382 } | 2458 } |
| 2383 | 2459 |
| 2384 buildUnnamed1085() { | 2460 buildUnnamed1114() { |
| 2385 var o = new core.List<core.String>(); | 2461 var o = new core.List<core.String>(); |
| 2386 o.add("foo"); | 2462 o.add("foo"); |
| 2387 o.add("foo"); | 2463 o.add("foo"); |
| 2388 return o; | 2464 return o; |
| 2389 } | 2465 } |
| 2390 | 2466 |
| 2391 checkUnnamed1085(core.List<core.String> o) { | 2467 checkUnnamed1114(core.List<core.String> o) { |
| 2392 unittest.expect(o, unittest.hasLength(2)); | 2468 unittest.expect(o, unittest.hasLength(2)); |
| 2393 unittest.expect(o[0], unittest.equals('foo')); | 2469 unittest.expect(o[0], unittest.equals('foo')); |
| 2394 unittest.expect(o[1], unittest.equals('foo')); | 2470 unittest.expect(o[1], unittest.equals('foo')); |
| 2395 } | 2471 } |
| 2396 | 2472 |
| 2397 core.int buildCounterRule = 0; | 2473 core.int buildCounterRule = 0; |
| 2398 buildRule() { | 2474 buildRule() { |
| 2399 var o = new api.Rule(); | 2475 var o = new api.Rule(); |
| 2400 buildCounterRule++; | 2476 buildCounterRule++; |
| 2401 if (buildCounterRule < 3) { | 2477 if (buildCounterRule < 3) { |
| 2402 o.action = "foo"; | 2478 o.action = "foo"; |
| 2403 o.conditions = buildUnnamed1081(); | 2479 o.conditions = buildUnnamed1110(); |
| 2404 o.description = "foo"; | 2480 o.description = "foo"; |
| 2405 o.in_ = buildUnnamed1082(); | 2481 o.in_ = buildUnnamed1111(); |
| 2406 o.logConfig = buildUnnamed1083(); | 2482 o.logConfig = buildUnnamed1112(); |
| 2407 o.notIn = buildUnnamed1084(); | 2483 o.notIn = buildUnnamed1113(); |
| 2408 o.permissions = buildUnnamed1085(); | 2484 o.permissions = buildUnnamed1114(); |
| 2409 } | 2485 } |
| 2410 buildCounterRule--; | 2486 buildCounterRule--; |
| 2411 return o; | 2487 return o; |
| 2412 } | 2488 } |
| 2413 | 2489 |
| 2414 checkRule(api.Rule o) { | 2490 checkRule(api.Rule o) { |
| 2415 buildCounterRule++; | 2491 buildCounterRule++; |
| 2416 if (buildCounterRule < 3) { | 2492 if (buildCounterRule < 3) { |
| 2417 unittest.expect(o.action, unittest.equals('foo')); | 2493 unittest.expect(o.action, unittest.equals('foo')); |
| 2418 checkUnnamed1081(o.conditions); | 2494 checkUnnamed1110(o.conditions); |
| 2419 unittest.expect(o.description, unittest.equals('foo')); | 2495 unittest.expect(o.description, unittest.equals('foo')); |
| 2420 checkUnnamed1082(o.in_); | 2496 checkUnnamed1111(o.in_); |
| 2421 checkUnnamed1083(o.logConfig); | 2497 checkUnnamed1112(o.logConfig); |
| 2422 checkUnnamed1084(o.notIn); | 2498 checkUnnamed1113(o.notIn); |
| 2423 checkUnnamed1085(o.permissions); | 2499 checkUnnamed1114(o.permissions); |
| 2424 } | 2500 } |
| 2425 buildCounterRule--; | 2501 buildCounterRule--; |
| 2426 } | 2502 } |
| 2427 | 2503 |
| 2428 buildUnnamed1086() { | 2504 buildUnnamed1115() { |
| 2429 var o = new core.List<api.Api>(); | 2505 var o = new core.List<api.Api>(); |
| 2430 o.add(buildApi()); | 2506 o.add(buildApi()); |
| 2431 o.add(buildApi()); | 2507 o.add(buildApi()); |
| 2432 return o; | 2508 return o; |
| 2433 } | 2509 } |
| 2434 | 2510 |
| 2435 checkUnnamed1086(core.List<api.Api> o) { | 2511 checkUnnamed1115(core.List<api.Api> o) { |
| 2436 unittest.expect(o, unittest.hasLength(2)); | 2512 unittest.expect(o, unittest.hasLength(2)); |
| 2437 checkApi(o[0]); | 2513 checkApi(o[0]); |
| 2438 checkApi(o[1]); | 2514 checkApi(o[1]); |
| 2439 } | 2515 } |
| 2440 | 2516 |
| 2441 buildUnnamed1087() { | 2517 buildUnnamed1116() { |
| 2442 var o = new core.List<api.Endpoint>(); | 2518 var o = new core.List<api.Endpoint>(); |
| 2443 o.add(buildEndpoint()); | 2519 o.add(buildEndpoint()); |
| 2444 o.add(buildEndpoint()); | 2520 o.add(buildEndpoint()); |
| 2445 return o; | 2521 return o; |
| 2446 } | 2522 } |
| 2447 | 2523 |
| 2448 checkUnnamed1087(core.List<api.Endpoint> o) { | 2524 checkUnnamed1116(core.List<api.Endpoint> o) { |
| 2449 unittest.expect(o, unittest.hasLength(2)); | 2525 unittest.expect(o, unittest.hasLength(2)); |
| 2450 checkEndpoint(o[0]); | 2526 checkEndpoint(o[0]); |
| 2451 checkEndpoint(o[1]); | 2527 checkEndpoint(o[1]); |
| 2452 } | 2528 } |
| 2453 | 2529 |
| 2454 buildUnnamed1088() { | 2530 buildUnnamed1117() { |
| 2455 var o = new core.List<api.Enum>(); | 2531 var o = new core.List<api.Enum>(); |
| 2456 o.add(buildEnum()); | 2532 o.add(buildEnum()); |
| 2457 o.add(buildEnum()); | 2533 o.add(buildEnum()); |
| 2458 return o; | 2534 return o; |
| 2459 } | 2535 } |
| 2460 | 2536 |
| 2461 checkUnnamed1088(core.List<api.Enum> o) { | 2537 checkUnnamed1117(core.List<api.Enum> o) { |
| 2462 unittest.expect(o, unittest.hasLength(2)); | 2538 unittest.expect(o, unittest.hasLength(2)); |
| 2463 checkEnum(o[0]); | 2539 checkEnum(o[0]); |
| 2464 checkEnum(o[1]); | 2540 checkEnum(o[1]); |
| 2465 } | 2541 } |
| 2466 | 2542 |
| 2467 buildUnnamed1089() { | 2543 buildUnnamed1118() { |
| 2468 var o = new core.List<api.LogDescriptor>(); | 2544 var o = new core.List<api.LogDescriptor>(); |
| 2469 o.add(buildLogDescriptor()); | 2545 o.add(buildLogDescriptor()); |
| 2470 o.add(buildLogDescriptor()); | 2546 o.add(buildLogDescriptor()); |
| 2471 return o; | 2547 return o; |
| 2472 } | 2548 } |
| 2473 | 2549 |
| 2474 checkUnnamed1089(core.List<api.LogDescriptor> o) { | 2550 checkUnnamed1118(core.List<api.LogDescriptor> o) { |
| 2475 unittest.expect(o, unittest.hasLength(2)); | 2551 unittest.expect(o, unittest.hasLength(2)); |
| 2476 checkLogDescriptor(o[0]); | 2552 checkLogDescriptor(o[0]); |
| 2477 checkLogDescriptor(o[1]); | 2553 checkLogDescriptor(o[1]); |
| 2478 } | 2554 } |
| 2479 | 2555 |
| 2480 buildUnnamed1090() { | 2556 buildUnnamed1119() { |
| 2481 var o = new core.List<api.MetricDescriptor>(); | 2557 var o = new core.List<api.MetricDescriptor>(); |
| 2482 o.add(buildMetricDescriptor()); | 2558 o.add(buildMetricDescriptor()); |
| 2483 o.add(buildMetricDescriptor()); | 2559 o.add(buildMetricDescriptor()); |
| 2484 return o; | 2560 return o; |
| 2485 } | 2561 } |
| 2486 | 2562 |
| 2487 checkUnnamed1090(core.List<api.MetricDescriptor> o) { | 2563 checkUnnamed1119(core.List<api.MetricDescriptor> o) { |
| 2488 unittest.expect(o, unittest.hasLength(2)); | 2564 unittest.expect(o, unittest.hasLength(2)); |
| 2489 checkMetricDescriptor(o[0]); | 2565 checkMetricDescriptor(o[0]); |
| 2490 checkMetricDescriptor(o[1]); | 2566 checkMetricDescriptor(o[1]); |
| 2491 } | 2567 } |
| 2492 | 2568 |
| 2493 buildUnnamed1091() { | 2569 buildUnnamed1120() { |
| 2494 var o = new core.List<api.MonitoredResourceDescriptor>(); | 2570 var o = new core.List<api.MonitoredResourceDescriptor>(); |
| 2495 o.add(buildMonitoredResourceDescriptor()); | 2571 o.add(buildMonitoredResourceDescriptor()); |
| 2496 o.add(buildMonitoredResourceDescriptor()); | 2572 o.add(buildMonitoredResourceDescriptor()); |
| 2497 return o; | 2573 return o; |
| 2498 } | 2574 } |
| 2499 | 2575 |
| 2500 checkUnnamed1091(core.List<api.MonitoredResourceDescriptor> o) { | 2576 checkUnnamed1120(core.List<api.MonitoredResourceDescriptor> o) { |
| 2501 unittest.expect(o, unittest.hasLength(2)); | 2577 unittest.expect(o, unittest.hasLength(2)); |
| 2502 checkMonitoredResourceDescriptor(o[0]); | 2578 checkMonitoredResourceDescriptor(o[0]); |
| 2503 checkMonitoredResourceDescriptor(o[1]); | 2579 checkMonitoredResourceDescriptor(o[1]); |
| 2504 } | 2580 } |
| 2505 | 2581 |
| 2506 buildUnnamed1092() { | 2582 buildUnnamed1121() { |
| 2507 var o = new core.List<api.Type>(); | 2583 var o = new core.List<api.Type>(); |
| 2508 o.add(buildType()); | 2584 o.add(buildType()); |
| 2509 o.add(buildType()); | 2585 o.add(buildType()); |
| 2510 return o; | 2586 return o; |
| 2511 } | 2587 } |
| 2512 | 2588 |
| 2513 checkUnnamed1092(core.List<api.Type> o) { | 2589 checkUnnamed1121(core.List<api.Type> o) { |
| 2514 unittest.expect(o, unittest.hasLength(2)); | 2590 unittest.expect(o, unittest.hasLength(2)); |
| 2515 checkType(o[0]); | 2591 checkType(o[0]); |
| 2516 checkType(o[1]); | 2592 checkType(o[1]); |
| 2517 } | 2593 } |
| 2518 | 2594 |
| 2519 buildUnnamed1093() { | 2595 buildUnnamed1122() { |
| 2520 var o = new core.List<api.Type>(); | 2596 var o = new core.List<api.Type>(); |
| 2521 o.add(buildType()); | 2597 o.add(buildType()); |
| 2522 o.add(buildType()); | 2598 o.add(buildType()); |
| 2523 return o; | 2599 return o; |
| 2524 } | 2600 } |
| 2525 | 2601 |
| 2526 checkUnnamed1093(core.List<api.Type> o) { | 2602 checkUnnamed1122(core.List<api.Type> o) { |
| 2527 unittest.expect(o, unittest.hasLength(2)); | 2603 unittest.expect(o, unittest.hasLength(2)); |
| 2528 checkType(o[0]); | 2604 checkType(o[0]); |
| 2529 checkType(o[1]); | 2605 checkType(o[1]); |
| 2530 } | 2606 } |
| 2531 | 2607 |
| 2532 core.int buildCounterService = 0; | 2608 core.int buildCounterService = 0; |
| 2533 buildService() { | 2609 buildService() { |
| 2534 var o = new api.Service(); | 2610 var o = new api.Service(); |
| 2535 buildCounterService++; | 2611 buildCounterService++; |
| 2536 if (buildCounterService < 3) { | 2612 if (buildCounterService < 3) { |
| 2537 o.apis = buildUnnamed1086(); | 2613 o.apis = buildUnnamed1115(); |
| 2538 o.authentication = buildAuthentication(); | 2614 o.authentication = buildAuthentication(); |
| 2539 o.backend = buildBackend(); | 2615 o.backend = buildBackend(); |
| 2540 o.configVersion = 42; | 2616 o.configVersion = 42; |
| 2541 o.context = buildContext(); | 2617 o.context = buildContext(); |
| 2542 o.control = buildControl(); | 2618 o.control = buildControl(); |
| 2543 o.customError = buildCustomError(); | 2619 o.customError = buildCustomError(); |
| 2544 o.documentation = buildDocumentation(); | 2620 o.documentation = buildDocumentation(); |
| 2545 o.endpoints = buildUnnamed1087(); | 2621 o.endpoints = buildUnnamed1116(); |
| 2546 o.enums = buildUnnamed1088(); | 2622 o.enums = buildUnnamed1117(); |
| 2547 o.experimental = buildExperimental(); | 2623 o.experimental = buildExperimental(); |
| 2548 o.http = buildHttp(); | 2624 o.http = buildHttp(); |
| 2549 o.id = "foo"; | 2625 o.id = "foo"; |
| 2550 o.logging = buildLogging(); | 2626 o.logging = buildLogging(); |
| 2551 o.logs = buildUnnamed1089(); | 2627 o.logs = buildUnnamed1118(); |
| 2552 o.metrics = buildUnnamed1090(); | 2628 o.metrics = buildUnnamed1119(); |
| 2553 o.monitoredResources = buildUnnamed1091(); | 2629 o.monitoredResources = buildUnnamed1120(); |
| 2554 o.monitoring = buildMonitoring(); | 2630 o.monitoring = buildMonitoring(); |
| 2555 o.name = "foo"; | 2631 o.name = "foo"; |
| 2556 o.producerProjectId = "foo"; | 2632 o.producerProjectId = "foo"; |
| 2633 o.sourceInfo = buildSourceInfo(); |
| 2557 o.systemParameters = buildSystemParameters(); | 2634 o.systemParameters = buildSystemParameters(); |
| 2558 o.systemTypes = buildUnnamed1092(); | 2635 o.systemTypes = buildUnnamed1121(); |
| 2559 o.title = "foo"; | 2636 o.title = "foo"; |
| 2560 o.types = buildUnnamed1093(); | 2637 o.types = buildUnnamed1122(); |
| 2561 o.usage = buildUsage(); | 2638 o.usage = buildUsage(); |
| 2562 o.visibility = buildVisibility(); | 2639 o.visibility = buildVisibility(); |
| 2563 } | 2640 } |
| 2564 buildCounterService--; | 2641 buildCounterService--; |
| 2565 return o; | 2642 return o; |
| 2566 } | 2643 } |
| 2567 | 2644 |
| 2568 checkService(api.Service o) { | 2645 checkService(api.Service o) { |
| 2569 buildCounterService++; | 2646 buildCounterService++; |
| 2570 if (buildCounterService < 3) { | 2647 if (buildCounterService < 3) { |
| 2571 checkUnnamed1086(o.apis); | 2648 checkUnnamed1115(o.apis); |
| 2572 checkAuthentication(o.authentication); | 2649 checkAuthentication(o.authentication); |
| 2573 checkBackend(o.backend); | 2650 checkBackend(o.backend); |
| 2574 unittest.expect(o.configVersion, unittest.equals(42)); | 2651 unittest.expect(o.configVersion, unittest.equals(42)); |
| 2575 checkContext(o.context); | 2652 checkContext(o.context); |
| 2576 checkControl(o.control); | 2653 checkControl(o.control); |
| 2577 checkCustomError(o.customError); | 2654 checkCustomError(o.customError); |
| 2578 checkDocumentation(o.documentation); | 2655 checkDocumentation(o.documentation); |
| 2579 checkUnnamed1087(o.endpoints); | 2656 checkUnnamed1116(o.endpoints); |
| 2580 checkUnnamed1088(o.enums); | 2657 checkUnnamed1117(o.enums); |
| 2581 checkExperimental(o.experimental); | 2658 checkExperimental(o.experimental); |
| 2582 checkHttp(o.http); | 2659 checkHttp(o.http); |
| 2583 unittest.expect(o.id, unittest.equals('foo')); | 2660 unittest.expect(o.id, unittest.equals('foo')); |
| 2584 checkLogging(o.logging); | 2661 checkLogging(o.logging); |
| 2585 checkUnnamed1089(o.logs); | 2662 checkUnnamed1118(o.logs); |
| 2586 checkUnnamed1090(o.metrics); | 2663 checkUnnamed1119(o.metrics); |
| 2587 checkUnnamed1091(o.monitoredResources); | 2664 checkUnnamed1120(o.monitoredResources); |
| 2588 checkMonitoring(o.monitoring); | 2665 checkMonitoring(o.monitoring); |
| 2589 unittest.expect(o.name, unittest.equals('foo')); | 2666 unittest.expect(o.name, unittest.equals('foo')); |
| 2590 unittest.expect(o.producerProjectId, unittest.equals('foo')); | 2667 unittest.expect(o.producerProjectId, unittest.equals('foo')); |
| 2668 checkSourceInfo(o.sourceInfo); |
| 2591 checkSystemParameters(o.systemParameters); | 2669 checkSystemParameters(o.systemParameters); |
| 2592 checkUnnamed1092(o.systemTypes); | 2670 checkUnnamed1121(o.systemTypes); |
| 2593 unittest.expect(o.title, unittest.equals('foo')); | 2671 unittest.expect(o.title, unittest.equals('foo')); |
| 2594 checkUnnamed1093(o.types); | 2672 checkUnnamed1122(o.types); |
| 2595 checkUsage(o.usage); | 2673 checkUsage(o.usage); |
| 2596 checkVisibility(o.visibility); | 2674 checkVisibility(o.visibility); |
| 2597 } | 2675 } |
| 2598 buildCounterService--; | 2676 buildCounterService--; |
| 2599 } | 2677 } |
| 2600 | 2678 |
| 2601 core.int buildCounterSetIamPolicyRequest = 0; | 2679 core.int buildCounterSetIamPolicyRequest = 0; |
| 2602 buildSetIamPolicyRequest() { | 2680 buildSetIamPolicyRequest() { |
| 2603 var o = new api.SetIamPolicyRequest(); | 2681 var o = new api.SetIamPolicyRequest(); |
| 2604 buildCounterSetIamPolicyRequest++; | 2682 buildCounterSetIamPolicyRequest++; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 2631 } | 2709 } |
| 2632 | 2710 |
| 2633 checkSourceContext(api.SourceContext o) { | 2711 checkSourceContext(api.SourceContext o) { |
| 2634 buildCounterSourceContext++; | 2712 buildCounterSourceContext++; |
| 2635 if (buildCounterSourceContext < 3) { | 2713 if (buildCounterSourceContext < 3) { |
| 2636 unittest.expect(o.fileName, unittest.equals('foo')); | 2714 unittest.expect(o.fileName, unittest.equals('foo')); |
| 2637 } | 2715 } |
| 2638 buildCounterSourceContext--; | 2716 buildCounterSourceContext--; |
| 2639 } | 2717 } |
| 2640 | 2718 |
| 2641 buildUnnamed1094() { | 2719 buildUnnamed1123() { |
| 2642 var o = new core.Map<core.String, core.Object>(); | 2720 var o = new core.Map<core.String, core.Object>(); |
| 2643 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2721 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 2644 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2722 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 2645 return o; | 2723 return o; |
| 2646 } | 2724 } |
| 2647 | 2725 |
| 2648 checkUnnamed1094(core.Map<core.String, core.Object> o) { | 2726 checkUnnamed1123(core.Map<core.String, core.Object> o) { |
| 2649 unittest.expect(o, unittest.hasLength(2)); | 2727 unittest.expect(o, unittest.hasLength(2)); |
| 2650 var casted11 = (o["x"]) as core.Map; unittest.expect(casted11, unittest.hasLen
gth(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["stri
ng"], unittest.equals('foo')); | 2728 var casted11 = (o["x"]) as core.Map; unittest.expect(casted11, unittest.hasLen
gth(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["stri
ng"], unittest.equals('foo')); |
| 2651 var casted12 = (o["y"]) as core.Map; unittest.expect(casted12, unittest.hasLen
gth(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted12["bool"], unittest.equals(true)); unittest.expect(casted12["stri
ng"], unittest.equals('foo')); | 2729 var casted12 = (o["y"]) as core.Map; unittest.expect(casted12, unittest.hasLen
gth(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted12["bool"], unittest.equals(true)); unittest.expect(casted12["stri
ng"], unittest.equals('foo')); |
| 2652 } | 2730 } |
| 2653 | 2731 |
| 2654 buildUnnamed1095() { | 2732 buildUnnamed1124() { |
| 2655 var o = new core.List<core.Map<core.String, core.Object>>(); | 2733 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 2656 o.add(buildUnnamed1094()); | 2734 o.add(buildUnnamed1123()); |
| 2657 o.add(buildUnnamed1094()); | 2735 o.add(buildUnnamed1123()); |
| 2658 return o; | 2736 return o; |
| 2659 } | 2737 } |
| 2660 | 2738 |
| 2661 checkUnnamed1095(core.List<core.Map<core.String, core.Object>> o) { | 2739 checkUnnamed1124(core.List<core.Map<core.String, core.Object>> o) { |
| 2662 unittest.expect(o, unittest.hasLength(2)); | 2740 unittest.expect(o, unittest.hasLength(2)); |
| 2663 checkUnnamed1094(o[0]); | 2741 checkUnnamed1123(o[0]); |
| 2664 checkUnnamed1094(o[1]); | 2742 checkUnnamed1123(o[1]); |
| 2743 } |
| 2744 |
| 2745 core.int buildCounterSourceInfo = 0; |
| 2746 buildSourceInfo() { |
| 2747 var o = new api.SourceInfo(); |
| 2748 buildCounterSourceInfo++; |
| 2749 if (buildCounterSourceInfo < 3) { |
| 2750 o.sourceFiles = buildUnnamed1124(); |
| 2751 } |
| 2752 buildCounterSourceInfo--; |
| 2753 return o; |
| 2754 } |
| 2755 |
| 2756 checkSourceInfo(api.SourceInfo o) { |
| 2757 buildCounterSourceInfo++; |
| 2758 if (buildCounterSourceInfo < 3) { |
| 2759 checkUnnamed1124(o.sourceFiles); |
| 2760 } |
| 2761 buildCounterSourceInfo--; |
| 2762 } |
| 2763 |
| 2764 buildUnnamed1125() { |
| 2765 var o = new core.Map<core.String, core.Object>(); |
| 2766 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 2767 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 2768 return o; |
| 2769 } |
| 2770 |
| 2771 checkUnnamed1125(core.Map<core.String, core.Object> o) { |
| 2772 unittest.expect(o, unittest.hasLength(2)); |
| 2773 var casted13 = (o["x"]) as core.Map; unittest.expect(casted13, unittest.hasLen
gth(3)); unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted13["bool"], unittest.equals(true)); unittest.expect(casted13["stri
ng"], unittest.equals('foo')); |
| 2774 var casted14 = (o["y"]) as core.Map; unittest.expect(casted14, unittest.hasLen
gth(3)); unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted14["bool"], unittest.equals(true)); unittest.expect(casted14["stri
ng"], unittest.equals('foo')); |
| 2775 } |
| 2776 |
| 2777 buildUnnamed1126() { |
| 2778 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 2779 o.add(buildUnnamed1125()); |
| 2780 o.add(buildUnnamed1125()); |
| 2781 return o; |
| 2782 } |
| 2783 |
| 2784 checkUnnamed1126(core.List<core.Map<core.String, core.Object>> o) { |
| 2785 unittest.expect(o, unittest.hasLength(2)); |
| 2786 checkUnnamed1125(o[0]); |
| 2787 checkUnnamed1125(o[1]); |
| 2665 } | 2788 } |
| 2666 | 2789 |
| 2667 core.int buildCounterStatus = 0; | 2790 core.int buildCounterStatus = 0; |
| 2668 buildStatus() { | 2791 buildStatus() { |
| 2669 var o = new api.Status(); | 2792 var o = new api.Status(); |
| 2670 buildCounterStatus++; | 2793 buildCounterStatus++; |
| 2671 if (buildCounterStatus < 3) { | 2794 if (buildCounterStatus < 3) { |
| 2672 o.code = 42; | 2795 o.code = 42; |
| 2673 o.details = buildUnnamed1095(); | 2796 o.details = buildUnnamed1126(); |
| 2674 o.message = "foo"; | 2797 o.message = "foo"; |
| 2675 } | 2798 } |
| 2676 buildCounterStatus--; | 2799 buildCounterStatus--; |
| 2677 return o; | 2800 return o; |
| 2678 } | 2801 } |
| 2679 | 2802 |
| 2680 checkStatus(api.Status o) { | 2803 checkStatus(api.Status o) { |
| 2681 buildCounterStatus++; | 2804 buildCounterStatus++; |
| 2682 if (buildCounterStatus < 3) { | 2805 if (buildCounterStatus < 3) { |
| 2683 unittest.expect(o.code, unittest.equals(42)); | 2806 unittest.expect(o.code, unittest.equals(42)); |
| 2684 checkUnnamed1095(o.details); | 2807 checkUnnamed1126(o.details); |
| 2685 unittest.expect(o.message, unittest.equals('foo')); | 2808 unittest.expect(o.message, unittest.equals('foo')); |
| 2686 } | 2809 } |
| 2687 buildCounterStatus--; | 2810 buildCounterStatus--; |
| 2688 } | 2811 } |
| 2689 | 2812 |
| 2690 core.int buildCounterStep = 0; | 2813 core.int buildCounterStep = 0; |
| 2691 buildStep() { | 2814 buildStep() { |
| 2692 var o = new api.Step(); | 2815 var o = new api.Step(); |
| 2693 buildCounterStep++; | 2816 buildCounterStep++; |
| 2694 if (buildCounterStep < 3) { | 2817 if (buildCounterStep < 3) { |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2764 checkSystemParameter(api.SystemParameter o) { | 2887 checkSystemParameter(api.SystemParameter o) { |
| 2765 buildCounterSystemParameter++; | 2888 buildCounterSystemParameter++; |
| 2766 if (buildCounterSystemParameter < 3) { | 2889 if (buildCounterSystemParameter < 3) { |
| 2767 unittest.expect(o.httpHeader, unittest.equals('foo')); | 2890 unittest.expect(o.httpHeader, unittest.equals('foo')); |
| 2768 unittest.expect(o.name, unittest.equals('foo')); | 2891 unittest.expect(o.name, unittest.equals('foo')); |
| 2769 unittest.expect(o.urlQueryParameter, unittest.equals('foo')); | 2892 unittest.expect(o.urlQueryParameter, unittest.equals('foo')); |
| 2770 } | 2893 } |
| 2771 buildCounterSystemParameter--; | 2894 buildCounterSystemParameter--; |
| 2772 } | 2895 } |
| 2773 | 2896 |
| 2774 buildUnnamed1096() { | 2897 buildUnnamed1127() { |
| 2775 var o = new core.List<api.SystemParameter>(); | 2898 var o = new core.List<api.SystemParameter>(); |
| 2776 o.add(buildSystemParameter()); | 2899 o.add(buildSystemParameter()); |
| 2777 o.add(buildSystemParameter()); | 2900 o.add(buildSystemParameter()); |
| 2778 return o; | 2901 return o; |
| 2779 } | 2902 } |
| 2780 | 2903 |
| 2781 checkUnnamed1096(core.List<api.SystemParameter> o) { | 2904 checkUnnamed1127(core.List<api.SystemParameter> o) { |
| 2782 unittest.expect(o, unittest.hasLength(2)); | 2905 unittest.expect(o, unittest.hasLength(2)); |
| 2783 checkSystemParameter(o[0]); | 2906 checkSystemParameter(o[0]); |
| 2784 checkSystemParameter(o[1]); | 2907 checkSystemParameter(o[1]); |
| 2785 } | 2908 } |
| 2786 | 2909 |
| 2787 core.int buildCounterSystemParameterRule = 0; | 2910 core.int buildCounterSystemParameterRule = 0; |
| 2788 buildSystemParameterRule() { | 2911 buildSystemParameterRule() { |
| 2789 var o = new api.SystemParameterRule(); | 2912 var o = new api.SystemParameterRule(); |
| 2790 buildCounterSystemParameterRule++; | 2913 buildCounterSystemParameterRule++; |
| 2791 if (buildCounterSystemParameterRule < 3) { | 2914 if (buildCounterSystemParameterRule < 3) { |
| 2792 o.parameters = buildUnnamed1096(); | 2915 o.parameters = buildUnnamed1127(); |
| 2793 o.selector = "foo"; | 2916 o.selector = "foo"; |
| 2794 } | 2917 } |
| 2795 buildCounterSystemParameterRule--; | 2918 buildCounterSystemParameterRule--; |
| 2796 return o; | 2919 return o; |
| 2797 } | 2920 } |
| 2798 | 2921 |
| 2799 checkSystemParameterRule(api.SystemParameterRule o) { | 2922 checkSystemParameterRule(api.SystemParameterRule o) { |
| 2800 buildCounterSystemParameterRule++; | 2923 buildCounterSystemParameterRule++; |
| 2801 if (buildCounterSystemParameterRule < 3) { | 2924 if (buildCounterSystemParameterRule < 3) { |
| 2802 checkUnnamed1096(o.parameters); | 2925 checkUnnamed1127(o.parameters); |
| 2803 unittest.expect(o.selector, unittest.equals('foo')); | 2926 unittest.expect(o.selector, unittest.equals('foo')); |
| 2804 } | 2927 } |
| 2805 buildCounterSystemParameterRule--; | 2928 buildCounterSystemParameterRule--; |
| 2806 } | 2929 } |
| 2807 | 2930 |
| 2808 buildUnnamed1097() { | 2931 buildUnnamed1128() { |
| 2809 var o = new core.List<api.SystemParameterRule>(); | 2932 var o = new core.List<api.SystemParameterRule>(); |
| 2810 o.add(buildSystemParameterRule()); | 2933 o.add(buildSystemParameterRule()); |
| 2811 o.add(buildSystemParameterRule()); | 2934 o.add(buildSystemParameterRule()); |
| 2812 return o; | 2935 return o; |
| 2813 } | 2936 } |
| 2814 | 2937 |
| 2815 checkUnnamed1097(core.List<api.SystemParameterRule> o) { | 2938 checkUnnamed1128(core.List<api.SystemParameterRule> o) { |
| 2816 unittest.expect(o, unittest.hasLength(2)); | 2939 unittest.expect(o, unittest.hasLength(2)); |
| 2817 checkSystemParameterRule(o[0]); | 2940 checkSystemParameterRule(o[0]); |
| 2818 checkSystemParameterRule(o[1]); | 2941 checkSystemParameterRule(o[1]); |
| 2819 } | 2942 } |
| 2820 | 2943 |
| 2821 core.int buildCounterSystemParameters = 0; | 2944 core.int buildCounterSystemParameters = 0; |
| 2822 buildSystemParameters() { | 2945 buildSystemParameters() { |
| 2823 var o = new api.SystemParameters(); | 2946 var o = new api.SystemParameters(); |
| 2824 buildCounterSystemParameters++; | 2947 buildCounterSystemParameters++; |
| 2825 if (buildCounterSystemParameters < 3) { | 2948 if (buildCounterSystemParameters < 3) { |
| 2826 o.rules = buildUnnamed1097(); | 2949 o.rules = buildUnnamed1128(); |
| 2827 } | 2950 } |
| 2828 buildCounterSystemParameters--; | 2951 buildCounterSystemParameters--; |
| 2829 return o; | 2952 return o; |
| 2830 } | 2953 } |
| 2831 | 2954 |
| 2832 checkSystemParameters(api.SystemParameters o) { | 2955 checkSystemParameters(api.SystemParameters o) { |
| 2833 buildCounterSystemParameters++; | 2956 buildCounterSystemParameters++; |
| 2834 if (buildCounterSystemParameters < 3) { | 2957 if (buildCounterSystemParameters < 3) { |
| 2835 checkUnnamed1097(o.rules); | 2958 checkUnnamed1128(o.rules); |
| 2836 } | 2959 } |
| 2837 buildCounterSystemParameters--; | 2960 buildCounterSystemParameters--; |
| 2838 } | 2961 } |
| 2839 | 2962 |
| 2840 buildUnnamed1098() { | 2963 buildUnnamed1129() { |
| 2841 var o = new core.List<core.String>(); | 2964 var o = new core.List<core.String>(); |
| 2842 o.add("foo"); | 2965 o.add("foo"); |
| 2843 o.add("foo"); | 2966 o.add("foo"); |
| 2844 return o; | 2967 return o; |
| 2845 } | 2968 } |
| 2846 | 2969 |
| 2847 checkUnnamed1098(core.List<core.String> o) { | 2970 checkUnnamed1129(core.List<core.String> o) { |
| 2848 unittest.expect(o, unittest.hasLength(2)); | 2971 unittest.expect(o, unittest.hasLength(2)); |
| 2849 unittest.expect(o[0], unittest.equals('foo')); | 2972 unittest.expect(o[0], unittest.equals('foo')); |
| 2850 unittest.expect(o[1], unittest.equals('foo')); | 2973 unittest.expect(o[1], unittest.equals('foo')); |
| 2851 } | 2974 } |
| 2852 | 2975 |
| 2853 core.int buildCounterTestIamPermissionsRequest = 0; | 2976 core.int buildCounterTestIamPermissionsRequest = 0; |
| 2854 buildTestIamPermissionsRequest() { | 2977 buildTestIamPermissionsRequest() { |
| 2855 var o = new api.TestIamPermissionsRequest(); | 2978 var o = new api.TestIamPermissionsRequest(); |
| 2856 buildCounterTestIamPermissionsRequest++; | 2979 buildCounterTestIamPermissionsRequest++; |
| 2857 if (buildCounterTestIamPermissionsRequest < 3) { | 2980 if (buildCounterTestIamPermissionsRequest < 3) { |
| 2858 o.permissions = buildUnnamed1098(); | 2981 o.permissions = buildUnnamed1129(); |
| 2859 } | 2982 } |
| 2860 buildCounterTestIamPermissionsRequest--; | 2983 buildCounterTestIamPermissionsRequest--; |
| 2861 return o; | 2984 return o; |
| 2862 } | 2985 } |
| 2863 | 2986 |
| 2864 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { | 2987 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { |
| 2865 buildCounterTestIamPermissionsRequest++; | 2988 buildCounterTestIamPermissionsRequest++; |
| 2866 if (buildCounterTestIamPermissionsRequest < 3) { | 2989 if (buildCounterTestIamPermissionsRequest < 3) { |
| 2867 checkUnnamed1098(o.permissions); | 2990 checkUnnamed1129(o.permissions); |
| 2868 } | 2991 } |
| 2869 buildCounterTestIamPermissionsRequest--; | 2992 buildCounterTestIamPermissionsRequest--; |
| 2870 } | 2993 } |
| 2871 | 2994 |
| 2872 buildUnnamed1099() { | 2995 buildUnnamed1130() { |
| 2873 var o = new core.List<core.String>(); | 2996 var o = new core.List<core.String>(); |
| 2874 o.add("foo"); | 2997 o.add("foo"); |
| 2875 o.add("foo"); | 2998 o.add("foo"); |
| 2876 return o; | 2999 return o; |
| 2877 } | 3000 } |
| 2878 | 3001 |
| 2879 checkUnnamed1099(core.List<core.String> o) { | 3002 checkUnnamed1130(core.List<core.String> o) { |
| 2880 unittest.expect(o, unittest.hasLength(2)); | 3003 unittest.expect(o, unittest.hasLength(2)); |
| 2881 unittest.expect(o[0], unittest.equals('foo')); | 3004 unittest.expect(o[0], unittest.equals('foo')); |
| 2882 unittest.expect(o[1], unittest.equals('foo')); | 3005 unittest.expect(o[1], unittest.equals('foo')); |
| 2883 } | 3006 } |
| 2884 | 3007 |
| 2885 core.int buildCounterTestIamPermissionsResponse = 0; | 3008 core.int buildCounterTestIamPermissionsResponse = 0; |
| 2886 buildTestIamPermissionsResponse() { | 3009 buildTestIamPermissionsResponse() { |
| 2887 var o = new api.TestIamPermissionsResponse(); | 3010 var o = new api.TestIamPermissionsResponse(); |
| 2888 buildCounterTestIamPermissionsResponse++; | 3011 buildCounterTestIamPermissionsResponse++; |
| 2889 if (buildCounterTestIamPermissionsResponse < 3) { | 3012 if (buildCounterTestIamPermissionsResponse < 3) { |
| 2890 o.permissions = buildUnnamed1099(); | 3013 o.permissions = buildUnnamed1130(); |
| 2891 } | 3014 } |
| 2892 buildCounterTestIamPermissionsResponse--; | 3015 buildCounterTestIamPermissionsResponse--; |
| 2893 return o; | 3016 return o; |
| 2894 } | 3017 } |
| 2895 | 3018 |
| 2896 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { | 3019 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { |
| 2897 buildCounterTestIamPermissionsResponse++; | 3020 buildCounterTestIamPermissionsResponse++; |
| 2898 if (buildCounterTestIamPermissionsResponse < 3) { | 3021 if (buildCounterTestIamPermissionsResponse < 3) { |
| 2899 checkUnnamed1099(o.permissions); | 3022 checkUnnamed1130(o.permissions); |
| 2900 } | 3023 } |
| 2901 buildCounterTestIamPermissionsResponse--; | 3024 buildCounterTestIamPermissionsResponse--; |
| 2902 } | 3025 } |
| 2903 | 3026 |
| 2904 buildUnnamed1100() { | 3027 buildUnnamed1131() { |
| 2905 var o = new core.Map<core.String, core.double>(); | 3028 var o = new core.Map<core.String, core.double>(); |
| 2906 o["x"] = 42.0; | 3029 o["x"] = 42.0; |
| 2907 o["y"] = 42.0; | 3030 o["y"] = 42.0; |
| 2908 return o; | 3031 return o; |
| 2909 } | 3032 } |
| 2910 | 3033 |
| 2911 checkUnnamed1100(core.Map<core.String, core.double> o) { | 3034 checkUnnamed1131(core.Map<core.String, core.double> o) { |
| 2912 unittest.expect(o, unittest.hasLength(2)); | 3035 unittest.expect(o, unittest.hasLength(2)); |
| 2913 unittest.expect(o["x"], unittest.equals(42.0)); | 3036 unittest.expect(o["x"], unittest.equals(42.0)); |
| 2914 unittest.expect(o["y"], unittest.equals(42.0)); | 3037 unittest.expect(o["y"], unittest.equals(42.0)); |
| 2915 } | 3038 } |
| 2916 | 3039 |
| 2917 core.int buildCounterTrafficPercentStrategy = 0; | 3040 core.int buildCounterTrafficPercentStrategy = 0; |
| 2918 buildTrafficPercentStrategy() { | 3041 buildTrafficPercentStrategy() { |
| 2919 var o = new api.TrafficPercentStrategy(); | 3042 var o = new api.TrafficPercentStrategy(); |
| 2920 buildCounterTrafficPercentStrategy++; | 3043 buildCounterTrafficPercentStrategy++; |
| 2921 if (buildCounterTrafficPercentStrategy < 3) { | 3044 if (buildCounterTrafficPercentStrategy < 3) { |
| 2922 o.percentages = buildUnnamed1100(); | 3045 o.percentages = buildUnnamed1131(); |
| 2923 } | 3046 } |
| 2924 buildCounterTrafficPercentStrategy--; | 3047 buildCounterTrafficPercentStrategy--; |
| 2925 return o; | 3048 return o; |
| 2926 } | 3049 } |
| 2927 | 3050 |
| 2928 checkTrafficPercentStrategy(api.TrafficPercentStrategy o) { | 3051 checkTrafficPercentStrategy(api.TrafficPercentStrategy o) { |
| 2929 buildCounterTrafficPercentStrategy++; | 3052 buildCounterTrafficPercentStrategy++; |
| 2930 if (buildCounterTrafficPercentStrategy < 3) { | 3053 if (buildCounterTrafficPercentStrategy < 3) { |
| 2931 checkUnnamed1100(o.percentages); | 3054 checkUnnamed1131(o.percentages); |
| 2932 } | 3055 } |
| 2933 buildCounterTrafficPercentStrategy--; | 3056 buildCounterTrafficPercentStrategy--; |
| 2934 } | 3057 } |
| 2935 | 3058 |
| 2936 buildUnnamed1101() { | 3059 buildUnnamed1132() { |
| 2937 var o = new core.List<api.Field>(); | 3060 var o = new core.List<api.Field>(); |
| 2938 o.add(buildField()); | 3061 o.add(buildField()); |
| 2939 o.add(buildField()); | 3062 o.add(buildField()); |
| 2940 return o; | 3063 return o; |
| 2941 } | 3064 } |
| 2942 | 3065 |
| 2943 checkUnnamed1101(core.List<api.Field> o) { | 3066 checkUnnamed1132(core.List<api.Field> o) { |
| 2944 unittest.expect(o, unittest.hasLength(2)); | 3067 unittest.expect(o, unittest.hasLength(2)); |
| 2945 checkField(o[0]); | 3068 checkField(o[0]); |
| 2946 checkField(o[1]); | 3069 checkField(o[1]); |
| 2947 } | 3070 } |
| 2948 | 3071 |
| 2949 buildUnnamed1102() { | 3072 buildUnnamed1133() { |
| 2950 var o = new core.List<core.String>(); | 3073 var o = new core.List<core.String>(); |
| 2951 o.add("foo"); | 3074 o.add("foo"); |
| 2952 o.add("foo"); | 3075 o.add("foo"); |
| 2953 return o; | 3076 return o; |
| 2954 } | 3077 } |
| 2955 | 3078 |
| 2956 checkUnnamed1102(core.List<core.String> o) { | 3079 checkUnnamed1133(core.List<core.String> o) { |
| 2957 unittest.expect(o, unittest.hasLength(2)); | 3080 unittest.expect(o, unittest.hasLength(2)); |
| 2958 unittest.expect(o[0], unittest.equals('foo')); | 3081 unittest.expect(o[0], unittest.equals('foo')); |
| 2959 unittest.expect(o[1], unittest.equals('foo')); | 3082 unittest.expect(o[1], unittest.equals('foo')); |
| 2960 } | 3083 } |
| 2961 | 3084 |
| 2962 buildUnnamed1103() { | 3085 buildUnnamed1134() { |
| 2963 var o = new core.List<api.Option>(); | 3086 var o = new core.List<api.Option>(); |
| 2964 o.add(buildOption()); | 3087 o.add(buildOption()); |
| 2965 o.add(buildOption()); | 3088 o.add(buildOption()); |
| 2966 return o; | 3089 return o; |
| 2967 } | 3090 } |
| 2968 | 3091 |
| 2969 checkUnnamed1103(core.List<api.Option> o) { | 3092 checkUnnamed1134(core.List<api.Option> o) { |
| 2970 unittest.expect(o, unittest.hasLength(2)); | 3093 unittest.expect(o, unittest.hasLength(2)); |
| 2971 checkOption(o[0]); | 3094 checkOption(o[0]); |
| 2972 checkOption(o[1]); | 3095 checkOption(o[1]); |
| 2973 } | 3096 } |
| 2974 | 3097 |
| 2975 core.int buildCounterType = 0; | 3098 core.int buildCounterType = 0; |
| 2976 buildType() { | 3099 buildType() { |
| 2977 var o = new api.Type(); | 3100 var o = new api.Type(); |
| 2978 buildCounterType++; | 3101 buildCounterType++; |
| 2979 if (buildCounterType < 3) { | 3102 if (buildCounterType < 3) { |
| 2980 o.fields = buildUnnamed1101(); | 3103 o.fields = buildUnnamed1132(); |
| 2981 o.name = "foo"; | 3104 o.name = "foo"; |
| 2982 o.oneofs = buildUnnamed1102(); | 3105 o.oneofs = buildUnnamed1133(); |
| 2983 o.options = buildUnnamed1103(); | 3106 o.options = buildUnnamed1134(); |
| 2984 o.sourceContext = buildSourceContext(); | 3107 o.sourceContext = buildSourceContext(); |
| 2985 o.syntax = "foo"; | 3108 o.syntax = "foo"; |
| 2986 } | 3109 } |
| 2987 buildCounterType--; | 3110 buildCounterType--; |
| 2988 return o; | 3111 return o; |
| 2989 } | 3112 } |
| 2990 | 3113 |
| 2991 checkType(api.Type o) { | 3114 checkType(api.Type o) { |
| 2992 buildCounterType++; | 3115 buildCounterType++; |
| 2993 if (buildCounterType < 3) { | 3116 if (buildCounterType < 3) { |
| 2994 checkUnnamed1101(o.fields); | 3117 checkUnnamed1132(o.fields); |
| 2995 unittest.expect(o.name, unittest.equals('foo')); | 3118 unittest.expect(o.name, unittest.equals('foo')); |
| 2996 checkUnnamed1102(o.oneofs); | 3119 checkUnnamed1133(o.oneofs); |
| 2997 checkUnnamed1103(o.options); | 3120 checkUnnamed1134(o.options); |
| 2998 checkSourceContext(o.sourceContext); | 3121 checkSourceContext(o.sourceContext); |
| 2999 unittest.expect(o.syntax, unittest.equals('foo')); | 3122 unittest.expect(o.syntax, unittest.equals('foo')); |
| 3000 } | 3123 } |
| 3001 buildCounterType--; | 3124 buildCounterType--; |
| 3002 } | 3125 } |
| 3003 | 3126 |
| 3004 core.int buildCounterUndeleteServiceResponse = 0; | 3127 core.int buildCounterUndeleteServiceResponse = 0; |
| 3005 buildUndeleteServiceResponse() { | 3128 buildUndeleteServiceResponse() { |
| 3006 var o = new api.UndeleteServiceResponse(); | 3129 var o = new api.UndeleteServiceResponse(); |
| 3007 buildCounterUndeleteServiceResponse++; | 3130 buildCounterUndeleteServiceResponse++; |
| 3008 if (buildCounterUndeleteServiceResponse < 3) { | 3131 if (buildCounterUndeleteServiceResponse < 3) { |
| 3009 o.service = buildManagedService(); | 3132 o.service = buildManagedService(); |
| 3010 } | 3133 } |
| 3011 buildCounterUndeleteServiceResponse--; | 3134 buildCounterUndeleteServiceResponse--; |
| 3012 return o; | 3135 return o; |
| 3013 } | 3136 } |
| 3014 | 3137 |
| 3015 checkUndeleteServiceResponse(api.UndeleteServiceResponse o) { | 3138 checkUndeleteServiceResponse(api.UndeleteServiceResponse o) { |
| 3016 buildCounterUndeleteServiceResponse++; | 3139 buildCounterUndeleteServiceResponse++; |
| 3017 if (buildCounterUndeleteServiceResponse < 3) { | 3140 if (buildCounterUndeleteServiceResponse < 3) { |
| 3018 checkManagedService(o.service); | 3141 checkManagedService(o.service); |
| 3019 } | 3142 } |
| 3020 buildCounterUndeleteServiceResponse--; | 3143 buildCounterUndeleteServiceResponse--; |
| 3021 } | 3144 } |
| 3022 | 3145 |
| 3023 buildUnnamed1104() { | 3146 buildUnnamed1135() { |
| 3024 var o = new core.List<core.String>(); | 3147 var o = new core.List<core.String>(); |
| 3025 o.add("foo"); | 3148 o.add("foo"); |
| 3026 o.add("foo"); | 3149 o.add("foo"); |
| 3027 return o; | 3150 return o; |
| 3028 } | 3151 } |
| 3029 | 3152 |
| 3030 checkUnnamed1104(core.List<core.String> o) { | 3153 checkUnnamed1135(core.List<core.String> o) { |
| 3031 unittest.expect(o, unittest.hasLength(2)); | 3154 unittest.expect(o, unittest.hasLength(2)); |
| 3032 unittest.expect(o[0], unittest.equals('foo')); | 3155 unittest.expect(o[0], unittest.equals('foo')); |
| 3033 unittest.expect(o[1], unittest.equals('foo')); | 3156 unittest.expect(o[1], unittest.equals('foo')); |
| 3034 } | 3157 } |
| 3035 | 3158 |
| 3036 buildUnnamed1105() { | 3159 buildUnnamed1136() { |
| 3037 var o = new core.List<api.UsageRule>(); | 3160 var o = new core.List<api.UsageRule>(); |
| 3038 o.add(buildUsageRule()); | 3161 o.add(buildUsageRule()); |
| 3039 o.add(buildUsageRule()); | 3162 o.add(buildUsageRule()); |
| 3040 return o; | 3163 return o; |
| 3041 } | 3164 } |
| 3042 | 3165 |
| 3043 checkUnnamed1105(core.List<api.UsageRule> o) { | 3166 checkUnnamed1136(core.List<api.UsageRule> o) { |
| 3044 unittest.expect(o, unittest.hasLength(2)); | 3167 unittest.expect(o, unittest.hasLength(2)); |
| 3045 checkUsageRule(o[0]); | 3168 checkUsageRule(o[0]); |
| 3046 checkUsageRule(o[1]); | 3169 checkUsageRule(o[1]); |
| 3047 } | 3170 } |
| 3048 | 3171 |
| 3049 core.int buildCounterUsage = 0; | 3172 core.int buildCounterUsage = 0; |
| 3050 buildUsage() { | 3173 buildUsage() { |
| 3051 var o = new api.Usage(); | 3174 var o = new api.Usage(); |
| 3052 buildCounterUsage++; | 3175 buildCounterUsage++; |
| 3053 if (buildCounterUsage < 3) { | 3176 if (buildCounterUsage < 3) { |
| 3054 o.producerNotificationChannel = "foo"; | 3177 o.producerNotificationChannel = "foo"; |
| 3055 o.requirements = buildUnnamed1104(); | 3178 o.requirements = buildUnnamed1135(); |
| 3056 o.rules = buildUnnamed1105(); | 3179 o.rules = buildUnnamed1136(); |
| 3057 } | 3180 } |
| 3058 buildCounterUsage--; | 3181 buildCounterUsage--; |
| 3059 return o; | 3182 return o; |
| 3060 } | 3183 } |
| 3061 | 3184 |
| 3062 checkUsage(api.Usage o) { | 3185 checkUsage(api.Usage o) { |
| 3063 buildCounterUsage++; | 3186 buildCounterUsage++; |
| 3064 if (buildCounterUsage < 3) { | 3187 if (buildCounterUsage < 3) { |
| 3065 unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); | 3188 unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); |
| 3066 checkUnnamed1104(o.requirements); | 3189 checkUnnamed1135(o.requirements); |
| 3067 checkUnnamed1105(o.rules); | 3190 checkUnnamed1136(o.rules); |
| 3068 } | 3191 } |
| 3069 buildCounterUsage--; | 3192 buildCounterUsage--; |
| 3070 } | 3193 } |
| 3071 | 3194 |
| 3072 core.int buildCounterUsageRule = 0; | 3195 core.int buildCounterUsageRule = 0; |
| 3073 buildUsageRule() { | 3196 buildUsageRule() { |
| 3074 var o = new api.UsageRule(); | 3197 var o = new api.UsageRule(); |
| 3075 buildCounterUsageRule++; | 3198 buildCounterUsageRule++; |
| 3076 if (buildCounterUsageRule < 3) { | 3199 if (buildCounterUsageRule < 3) { |
| 3077 o.allowUnregisteredCalls = true; | 3200 o.allowUnregisteredCalls = true; |
| 3078 o.selector = "foo"; | 3201 o.selector = "foo"; |
| 3079 } | 3202 } |
| 3080 buildCounterUsageRule--; | 3203 buildCounterUsageRule--; |
| 3081 return o; | 3204 return o; |
| 3082 } | 3205 } |
| 3083 | 3206 |
| 3084 checkUsageRule(api.UsageRule o) { | 3207 checkUsageRule(api.UsageRule o) { |
| 3085 buildCounterUsageRule++; | 3208 buildCounterUsageRule++; |
| 3086 if (buildCounterUsageRule < 3) { | 3209 if (buildCounterUsageRule < 3) { |
| 3087 unittest.expect(o.allowUnregisteredCalls, unittest.isTrue); | 3210 unittest.expect(o.allowUnregisteredCalls, unittest.isTrue); |
| 3088 unittest.expect(o.selector, unittest.equals('foo')); | 3211 unittest.expect(o.selector, unittest.equals('foo')); |
| 3089 } | 3212 } |
| 3090 buildCounterUsageRule--; | 3213 buildCounterUsageRule--; |
| 3091 } | 3214 } |
| 3092 | 3215 |
| 3093 buildUnnamed1106() { | 3216 buildUnnamed1137() { |
| 3094 var o = new core.List<api.VisibilityRule>(); | 3217 var o = new core.List<api.VisibilityRule>(); |
| 3095 o.add(buildVisibilityRule()); | 3218 o.add(buildVisibilityRule()); |
| 3096 o.add(buildVisibilityRule()); | 3219 o.add(buildVisibilityRule()); |
| 3097 return o; | 3220 return o; |
| 3098 } | 3221 } |
| 3099 | 3222 |
| 3100 checkUnnamed1106(core.List<api.VisibilityRule> o) { | 3223 checkUnnamed1137(core.List<api.VisibilityRule> o) { |
| 3101 unittest.expect(o, unittest.hasLength(2)); | 3224 unittest.expect(o, unittest.hasLength(2)); |
| 3102 checkVisibilityRule(o[0]); | 3225 checkVisibilityRule(o[0]); |
| 3103 checkVisibilityRule(o[1]); | 3226 checkVisibilityRule(o[1]); |
| 3104 } | 3227 } |
| 3105 | 3228 |
| 3106 core.int buildCounterVisibility = 0; | 3229 core.int buildCounterVisibility = 0; |
| 3107 buildVisibility() { | 3230 buildVisibility() { |
| 3108 var o = new api.Visibility(); | 3231 var o = new api.Visibility(); |
| 3109 buildCounterVisibility++; | 3232 buildCounterVisibility++; |
| 3110 if (buildCounterVisibility < 3) { | 3233 if (buildCounterVisibility < 3) { |
| 3111 o.rules = buildUnnamed1106(); | 3234 o.rules = buildUnnamed1137(); |
| 3112 } | 3235 } |
| 3113 buildCounterVisibility--; | 3236 buildCounterVisibility--; |
| 3114 return o; | 3237 return o; |
| 3115 } | 3238 } |
| 3116 | 3239 |
| 3117 checkVisibility(api.Visibility o) { | 3240 checkVisibility(api.Visibility o) { |
| 3118 buildCounterVisibility++; | 3241 buildCounterVisibility++; |
| 3119 if (buildCounterVisibility < 3) { | 3242 if (buildCounterVisibility < 3) { |
| 3120 checkUnnamed1106(o.rules); | 3243 checkUnnamed1137(o.rules); |
| 3121 } | 3244 } |
| 3122 buildCounterVisibility--; | 3245 buildCounterVisibility--; |
| 3123 } | 3246 } |
| 3124 | 3247 |
| 3125 core.int buildCounterVisibilityRule = 0; | 3248 core.int buildCounterVisibilityRule = 0; |
| 3126 buildVisibilityRule() { | 3249 buildVisibilityRule() { |
| 3127 var o = new api.VisibilityRule(); | 3250 var o = new api.VisibilityRule(); |
| 3128 buildCounterVisibilityRule++; | 3251 buildCounterVisibilityRule++; |
| 3129 if (buildCounterVisibilityRule < 3) { | 3252 if (buildCounterVisibilityRule < 3) { |
| 3130 o.restriction = "foo"; | 3253 o.restriction = "foo"; |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3480 | 3603 |
| 3481 unittest.group("obj-schema-Field", () { | 3604 unittest.group("obj-schema-Field", () { |
| 3482 unittest.test("to-json--from-json", () { | 3605 unittest.test("to-json--from-json", () { |
| 3483 var o = buildField(); | 3606 var o = buildField(); |
| 3484 var od = new api.Field.fromJson(o.toJson()); | 3607 var od = new api.Field.fromJson(o.toJson()); |
| 3485 checkField(od); | 3608 checkField(od); |
| 3486 }); | 3609 }); |
| 3487 }); | 3610 }); |
| 3488 | 3611 |
| 3489 | 3612 |
| 3613 unittest.group("obj-schema-FlowOperationMetadata", () { |
| 3614 unittest.test("to-json--from-json", () { |
| 3615 var o = buildFlowOperationMetadata(); |
| 3616 var od = new api.FlowOperationMetadata.fromJson(o.toJson()); |
| 3617 checkFlowOperationMetadata(od); |
| 3618 }); |
| 3619 }); |
| 3620 |
| 3621 |
| 3490 unittest.group("obj-schema-GenerateConfigReportRequest", () { | 3622 unittest.group("obj-schema-GenerateConfigReportRequest", () { |
| 3491 unittest.test("to-json--from-json", () { | 3623 unittest.test("to-json--from-json", () { |
| 3492 var o = buildGenerateConfigReportRequest(); | 3624 var o = buildGenerateConfigReportRequest(); |
| 3493 var od = new api.GenerateConfigReportRequest.fromJson(o.toJson()); | 3625 var od = new api.GenerateConfigReportRequest.fromJson(o.toJson()); |
| 3494 checkGenerateConfigReportRequest(od); | 3626 checkGenerateConfigReportRequest(od); |
| 3495 }); | 3627 }); |
| 3496 }); | 3628 }); |
| 3497 | 3629 |
| 3498 | 3630 |
| 3499 unittest.group("obj-schema-GenerateConfigReportResponse", () { | 3631 unittest.group("obj-schema-GenerateConfigReportResponse", () { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3534 | 3666 |
| 3535 unittest.group("obj-schema-LabelDescriptor", () { | 3667 unittest.group("obj-schema-LabelDescriptor", () { |
| 3536 unittest.test("to-json--from-json", () { | 3668 unittest.test("to-json--from-json", () { |
| 3537 var o = buildLabelDescriptor(); | 3669 var o = buildLabelDescriptor(); |
| 3538 var od = new api.LabelDescriptor.fromJson(o.toJson()); | 3670 var od = new api.LabelDescriptor.fromJson(o.toJson()); |
| 3539 checkLabelDescriptor(od); | 3671 checkLabelDescriptor(od); |
| 3540 }); | 3672 }); |
| 3541 }); | 3673 }); |
| 3542 | 3674 |
| 3543 | 3675 |
| 3676 unittest.group("obj-schema-ListOperationsResponse", () { |
| 3677 unittest.test("to-json--from-json", () { |
| 3678 var o = buildListOperationsResponse(); |
| 3679 var od = new api.ListOperationsResponse.fromJson(o.toJson()); |
| 3680 checkListOperationsResponse(od); |
| 3681 }); |
| 3682 }); |
| 3683 |
| 3684 |
| 3544 unittest.group("obj-schema-ListServiceConfigsResponse", () { | 3685 unittest.group("obj-schema-ListServiceConfigsResponse", () { |
| 3545 unittest.test("to-json--from-json", () { | 3686 unittest.test("to-json--from-json", () { |
| 3546 var o = buildListServiceConfigsResponse(); | 3687 var o = buildListServiceConfigsResponse(); |
| 3547 var od = new api.ListServiceConfigsResponse.fromJson(o.toJson()); | 3688 var od = new api.ListServiceConfigsResponse.fromJson(o.toJson()); |
| 3548 checkListServiceConfigsResponse(od); | 3689 checkListServiceConfigsResponse(od); |
| 3549 }); | 3690 }); |
| 3550 }); | 3691 }); |
| 3551 | 3692 |
| 3552 | 3693 |
| 3553 unittest.group("obj-schema-ListServiceRolloutsResponse", () { | 3694 unittest.group("obj-schema-ListServiceRolloutsResponse", () { |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3777 | 3918 |
| 3778 unittest.group("obj-schema-SourceContext", () { | 3919 unittest.group("obj-schema-SourceContext", () { |
| 3779 unittest.test("to-json--from-json", () { | 3920 unittest.test("to-json--from-json", () { |
| 3780 var o = buildSourceContext(); | 3921 var o = buildSourceContext(); |
| 3781 var od = new api.SourceContext.fromJson(o.toJson()); | 3922 var od = new api.SourceContext.fromJson(o.toJson()); |
| 3782 checkSourceContext(od); | 3923 checkSourceContext(od); |
| 3783 }); | 3924 }); |
| 3784 }); | 3925 }); |
| 3785 | 3926 |
| 3786 | 3927 |
| 3928 unittest.group("obj-schema-SourceInfo", () { |
| 3929 unittest.test("to-json--from-json", () { |
| 3930 var o = buildSourceInfo(); |
| 3931 var od = new api.SourceInfo.fromJson(o.toJson()); |
| 3932 checkSourceInfo(od); |
| 3933 }); |
| 3934 }); |
| 3935 |
| 3936 |
| 3787 unittest.group("obj-schema-Status", () { | 3937 unittest.group("obj-schema-Status", () { |
| 3788 unittest.test("to-json--from-json", () { | 3938 unittest.test("to-json--from-json", () { |
| 3789 var o = buildStatus(); | 3939 var o = buildStatus(); |
| 3790 var od = new api.Status.fromJson(o.toJson()); | 3940 var od = new api.Status.fromJson(o.toJson()); |
| 3791 checkStatus(od); | 3941 checkStatus(od); |
| 3792 }); | 3942 }); |
| 3793 }); | 3943 }); |
| 3794 | 3944 |
| 3795 | 3945 |
| 3796 unittest.group("obj-schema-Step", () { | 3946 unittest.group("obj-schema-Step", () { |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3967 "content-type" : "application/json; charset=utf-8", | 4117 "content-type" : "application/json; charset=utf-8", |
| 3968 }; | 4118 }; |
| 3969 var resp = convert.JSON.encode(buildOperation()); | 4119 var resp = convert.JSON.encode(buildOperation()); |
| 3970 return new async.Future.value(stringResponse(200, h, resp)); | 4120 return new async.Future.value(stringResponse(200, h, resp)); |
| 3971 }), true); | 4121 }), true); |
| 3972 res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { | 4122 res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { |
| 3973 checkOperation(response); | 4123 checkOperation(response); |
| 3974 }))); | 4124 }))); |
| 3975 }); | 4125 }); |
| 3976 | 4126 |
| 4127 unittest.test("method--list", () { |
| 4128 |
| 4129 var mock = new HttpServerMock(); |
| 4130 api.OperationsResourceApi res = new api.ServicemanagementApi(mock).operati
ons; |
| 4131 var arg_name = "foo"; |
| 4132 var arg_pageToken = "foo"; |
| 4133 var arg_pageSize = 42; |
| 4134 var arg_filter = "foo"; |
| 4135 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4136 var path = (req.url).path; |
| 4137 var pathOffset = 0; |
| 4138 var index; |
| 4139 var subPart; |
| 4140 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4141 pathOffset += 1; |
| 4142 unittest.expect(path.substring(pathOffset, pathOffset + 13), unittest.eq
uals("v1/operations")); |
| 4143 pathOffset += 13; |
| 4144 |
| 4145 var query = (req.url).query; |
| 4146 var queryOffset = 0; |
| 4147 var queryMap = {}; |
| 4148 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 4149 parseBool(n) { |
| 4150 if (n == "true") return true; |
| 4151 if (n == "false") return false; |
| 4152 if (n == null) return null; |
| 4153 throw new core.ArgumentError("Invalid boolean: $n"); |
| 4154 } |
| 4155 if (query.length > 0) { |
| 4156 for (var part in query.split("&")) { |
| 4157 var keyvalue = part.split("="); |
| 4158 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4159 } |
| 4160 } |
| 4161 unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); |
| 4162 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 4163 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
| 4164 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 4165 |
| 4166 |
| 4167 var h = { |
| 4168 "content-type" : "application/json; charset=utf-8", |
| 4169 }; |
| 4170 var resp = convert.JSON.encode(buildListOperationsResponse()); |
| 4171 return new async.Future.value(stringResponse(200, h, resp)); |
| 4172 }), true); |
| 4173 res.list(name: arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize,
filter: arg_filter).then(unittest.expectAsync(((api.ListOperationsResponse resp
onse) { |
| 4174 checkListOperationsResponse(response); |
| 4175 }))); |
| 4176 }); |
| 4177 |
| 3977 }); | 4178 }); |
| 3978 | 4179 |
| 3979 | 4180 |
| 3980 unittest.group("resource-ServicesResourceApi", () { | 4181 unittest.group("resource-ServicesResourceApi", () { |
| 3981 unittest.test("method--create", () { | 4182 unittest.test("method--create", () { |
| 3982 | 4183 |
| 3983 var mock = new HttpServerMock(); | 4184 var mock = new HttpServerMock(); |
| 3984 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; | 4185 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
| 3985 var arg_request = buildManagedService(); | 4186 var arg_request = buildManagedService(); |
| 3986 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4187 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4274 res.get(arg_serviceName).then(unittest.expectAsync(((api.ManagedService re
sponse) { | 4475 res.get(arg_serviceName).then(unittest.expectAsync(((api.ManagedService re
sponse) { |
| 4275 checkManagedService(response); | 4476 checkManagedService(response); |
| 4276 }))); | 4477 }))); |
| 4277 }); | 4478 }); |
| 4278 | 4479 |
| 4279 unittest.test("method--getConfig", () { | 4480 unittest.test("method--getConfig", () { |
| 4280 | 4481 |
| 4281 var mock = new HttpServerMock(); | 4482 var mock = new HttpServerMock(); |
| 4282 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; | 4483 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
| 4283 var arg_serviceName = "foo"; | 4484 var arg_serviceName = "foo"; |
| 4485 var arg_configId = "foo"; |
| 4284 var arg_view = "foo"; | 4486 var arg_view = "foo"; |
| 4285 var arg_configId = "foo"; | |
| 4286 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4487 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4287 var path = (req.url).path; | 4488 var path = (req.url).path; |
| 4288 var pathOffset = 0; | 4489 var pathOffset = 0; |
| 4289 var index; | 4490 var index; |
| 4290 var subPart; | 4491 var subPart; |
| 4291 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4492 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4292 pathOffset += 1; | 4493 pathOffset += 1; |
| 4293 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); | 4494 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/services/")); |
| 4294 pathOffset += 12; | 4495 pathOffset += 12; |
| 4295 index = path.indexOf("/config", pathOffset); | 4496 index = path.indexOf("/config", pathOffset); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 4309 if (n == "false") return false; | 4510 if (n == "false") return false; |
| 4310 if (n == null) return null; | 4511 if (n == null) return null; |
| 4311 throw new core.ArgumentError("Invalid boolean: $n"); | 4512 throw new core.ArgumentError("Invalid boolean: $n"); |
| 4312 } | 4513 } |
| 4313 if (query.length > 0) { | 4514 if (query.length > 0) { |
| 4314 for (var part in query.split("&")) { | 4515 for (var part in query.split("&")) { |
| 4315 var keyvalue = part.split("="); | 4516 var keyvalue = part.split("="); |
| 4316 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4517 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4317 } | 4518 } |
| 4318 } | 4519 } |
| 4520 unittest.expect(queryMap["configId"].first, unittest.equals(arg_configId
)); |
| 4319 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); | 4521 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); |
| 4320 unittest.expect(queryMap["configId"].first, unittest.equals(arg_configId
)); | |
| 4321 | 4522 |
| 4322 | 4523 |
| 4323 var h = { | 4524 var h = { |
| 4324 "content-type" : "application/json; charset=utf-8", | 4525 "content-type" : "application/json; charset=utf-8", |
| 4325 }; | 4526 }; |
| 4326 var resp = convert.JSON.encode(buildService()); | 4527 var resp = convert.JSON.encode(buildService()); |
| 4327 return new async.Future.value(stringResponse(200, h, resp)); | 4528 return new async.Future.value(stringResponse(200, h, resp)); |
| 4328 }), true); | 4529 }), true); |
| 4329 res.getConfig(arg_serviceName, view: arg_view, configId: arg_configId).the
n(unittest.expectAsync(((api.Service response) { | 4530 res.getConfig(arg_serviceName, configId: arg_configId, view: arg_view).the
n(unittest.expectAsync(((api.Service response) { |
| 4330 checkService(response); | 4531 checkService(response); |
| 4331 }))); | 4532 }))); |
| 4332 }); | 4533 }); |
| 4333 | 4534 |
| 4334 unittest.test("method--getIamPolicy", () { | 4535 unittest.test("method--getIamPolicy", () { |
| 4335 | 4536 |
| 4336 var mock = new HttpServerMock(); | 4537 var mock = new HttpServerMock(); |
| 4337 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; | 4538 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
| 4338 var arg_request = buildGetIamPolicyRequest(); | 4539 var arg_request = buildGetIamPolicyRequest(); |
| 4339 var arg_resource = "foo"; | 4540 var arg_resource = "foo"; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4377 }), true); | 4578 }), true); |
| 4378 res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((ap
i.Policy response) { | 4579 res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((ap
i.Policy response) { |
| 4379 checkPolicy(response); | 4580 checkPolicy(response); |
| 4380 }))); | 4581 }))); |
| 4381 }); | 4582 }); |
| 4382 | 4583 |
| 4383 unittest.test("method--list", () { | 4584 unittest.test("method--list", () { |
| 4384 | 4585 |
| 4385 var mock = new HttpServerMock(); | 4586 var mock = new HttpServerMock(); |
| 4386 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; | 4587 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
| 4588 var arg_producerProjectId = "foo"; |
| 4387 var arg_consumerId = "foo"; | 4589 var arg_consumerId = "foo"; |
| 4388 var arg_pageToken = "foo"; | 4590 var arg_pageToken = "foo"; |
| 4389 var arg_pageSize = 42; | 4591 var arg_pageSize = 42; |
| 4390 var arg_producerProjectId = "foo"; | |
| 4391 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4592 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4392 var path = (req.url).path; | 4593 var path = (req.url).path; |
| 4393 var pathOffset = 0; | 4594 var pathOffset = 0; |
| 4394 var index; | 4595 var index; |
| 4395 var subPart; | 4596 var subPart; |
| 4396 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4597 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4397 pathOffset += 1; | 4598 pathOffset += 1; |
| 4398 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("v1/services")); | 4599 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("v1/services")); |
| 4399 pathOffset += 11; | 4600 pathOffset += 11; |
| 4400 | 4601 |
| 4401 var query = (req.url).query; | 4602 var query = (req.url).query; |
| 4402 var queryOffset = 0; | 4603 var queryOffset = 0; |
| 4403 var queryMap = {}; | 4604 var queryMap = {}; |
| 4404 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4605 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 4405 parseBool(n) { | 4606 parseBool(n) { |
| 4406 if (n == "true") return true; | 4607 if (n == "true") return true; |
| 4407 if (n == "false") return false; | 4608 if (n == "false") return false; |
| 4408 if (n == null) return null; | 4609 if (n == null) return null; |
| 4409 throw new core.ArgumentError("Invalid boolean: $n"); | 4610 throw new core.ArgumentError("Invalid boolean: $n"); |
| 4410 } | 4611 } |
| 4411 if (query.length > 0) { | 4612 if (query.length > 0) { |
| 4412 for (var part in query.split("&")) { | 4613 for (var part in query.split("&")) { |
| 4413 var keyvalue = part.split("="); | 4614 var keyvalue = part.split("="); |
| 4414 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4615 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 4415 } | 4616 } |
| 4416 } | 4617 } |
| 4618 unittest.expect(queryMap["producerProjectId"].first, unittest.equals(arg
_producerProjectId)); |
| 4417 unittest.expect(queryMap["consumerId"].first, unittest.equals(arg_consum
erId)); | 4619 unittest.expect(queryMap["consumerId"].first, unittest.equals(arg_consum
erId)); |
| 4418 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4620 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 4419 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 4621 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
| 4420 unittest.expect(queryMap["producerProjectId"].first, unittest.equals(arg
_producerProjectId)); | |
| 4421 | 4622 |
| 4422 | 4623 |
| 4423 var h = { | 4624 var h = { |
| 4424 "content-type" : "application/json; charset=utf-8", | 4625 "content-type" : "application/json; charset=utf-8", |
| 4425 }; | 4626 }; |
| 4426 var resp = convert.JSON.encode(buildListServicesResponse()); | 4627 var resp = convert.JSON.encode(buildListServicesResponse()); |
| 4427 return new async.Future.value(stringResponse(200, h, resp)); | 4628 return new async.Future.value(stringResponse(200, h, resp)); |
| 4428 }), true); | 4629 }), true); |
| 4429 res.list(consumerId: arg_consumerId, pageToken: arg_pageToken, pageSize: a
rg_pageSize, producerProjectId: arg_producerProjectId).then(unittest.expectAsync
(((api.ListServicesResponse response) { | 4630 res.list(producerProjectId: arg_producerProjectId, consumerId: arg_consume
rId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync
(((api.ListServicesResponse response) { |
| 4430 checkListServicesResponse(response); | 4631 checkListServicesResponse(response); |
| 4431 }))); | 4632 }))); |
| 4432 }); | 4633 }); |
| 4433 | 4634 |
| 4434 unittest.test("method--setIamPolicy", () { | 4635 unittest.test("method--setIamPolicy", () { |
| 4435 | 4636 |
| 4436 var mock = new HttpServerMock(); | 4637 var mock = new HttpServerMock(); |
| 4437 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; | 4638 api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; |
| 4438 var arg_request = buildSetIamPolicyRequest(); | 4639 var arg_request = buildSetIamPolicyRequest(); |
| 4439 var arg_resource = "foo"; | 4640 var arg_resource = "foo"; |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4973 res.list(arg_serviceName, pageSize: arg_pageSize, pageToken: arg_pageToken
).then(unittest.expectAsync(((api.ListServiceRolloutsResponse response) { | 5174 res.list(arg_serviceName, pageSize: arg_pageSize, pageToken: arg_pageToken
).then(unittest.expectAsync(((api.ListServiceRolloutsResponse response) { |
| 4974 checkListServiceRolloutsResponse(response); | 5175 checkListServiceRolloutsResponse(response); |
| 4975 }))); | 5176 }))); |
| 4976 }); | 5177 }); |
| 4977 | 5178 |
| 4978 }); | 5179 }); |
| 4979 | 5180 |
| 4980 | 5181 |
| 4981 } | 5182 } |
| 4982 | 5183 |
| OLD | NEW |