OLD | NEW |
1 library googleapis.serviceuser.v1.test; | 1 library googleapis.serviceuser.v1.test; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 } | 44 } |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map headers, core.String body) { |
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
52 } | 52 } |
53 | 53 |
54 buildUnnamed1731() { | 54 buildUnnamed1498() { |
55 var o = new core.List<api.Method>(); | 55 var o = new core.List<api.Method>(); |
56 o.add(buildMethod()); | 56 o.add(buildMethod()); |
57 o.add(buildMethod()); | 57 o.add(buildMethod()); |
58 return o; | 58 return o; |
59 } | 59 } |
60 | 60 |
61 checkUnnamed1731(core.List<api.Method> o) { | 61 checkUnnamed1498(core.List<api.Method> o) { |
62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
63 checkMethod(o[0]); | 63 checkMethod(o[0]); |
64 checkMethod(o[1]); | 64 checkMethod(o[1]); |
65 } | 65 } |
66 | 66 |
67 buildUnnamed1732() { | 67 buildUnnamed1499() { |
68 var o = new core.List<api.Mixin>(); | 68 var o = new core.List<api.Mixin>(); |
69 o.add(buildMixin()); | 69 o.add(buildMixin()); |
70 o.add(buildMixin()); | 70 o.add(buildMixin()); |
71 return o; | 71 return o; |
72 } | 72 } |
73 | 73 |
74 checkUnnamed1732(core.List<api.Mixin> o) { | 74 checkUnnamed1499(core.List<api.Mixin> o) { |
75 unittest.expect(o, unittest.hasLength(2)); | 75 unittest.expect(o, unittest.hasLength(2)); |
76 checkMixin(o[0]); | 76 checkMixin(o[0]); |
77 checkMixin(o[1]); | 77 checkMixin(o[1]); |
78 } | 78 } |
79 | 79 |
80 buildUnnamed1733() { | 80 buildUnnamed1500() { |
81 var o = new core.List<api.Option>(); | 81 var o = new core.List<api.Option>(); |
82 o.add(buildOption()); | 82 o.add(buildOption()); |
83 o.add(buildOption()); | 83 o.add(buildOption()); |
84 return o; | 84 return o; |
85 } | 85 } |
86 | 86 |
87 checkUnnamed1733(core.List<api.Option> o) { | 87 checkUnnamed1500(core.List<api.Option> o) { |
88 unittest.expect(o, unittest.hasLength(2)); | 88 unittest.expect(o, unittest.hasLength(2)); |
89 checkOption(o[0]); | 89 checkOption(o[0]); |
90 checkOption(o[1]); | 90 checkOption(o[1]); |
91 } | 91 } |
92 | 92 |
93 core.int buildCounterApi = 0; | 93 core.int buildCounterApi = 0; |
94 buildApi() { | 94 buildApi() { |
95 var o = new api.Api(); | 95 var o = new api.Api(); |
96 buildCounterApi++; | 96 buildCounterApi++; |
97 if (buildCounterApi < 3) { | 97 if (buildCounterApi < 3) { |
98 o.methods = buildUnnamed1731(); | 98 o.methods = buildUnnamed1498(); |
99 o.mixins = buildUnnamed1732(); | 99 o.mixins = buildUnnamed1499(); |
100 o.name = "foo"; | 100 o.name = "foo"; |
101 o.options = buildUnnamed1733(); | 101 o.options = buildUnnamed1500(); |
102 o.sourceContext = buildSourceContext(); | 102 o.sourceContext = buildSourceContext(); |
103 o.syntax = "foo"; | 103 o.syntax = "foo"; |
104 o.version = "foo"; | 104 o.version = "foo"; |
105 } | 105 } |
106 buildCounterApi--; | 106 buildCounterApi--; |
107 return o; | 107 return o; |
108 } | 108 } |
109 | 109 |
110 checkApi(api.Api o) { | 110 checkApi(api.Api o) { |
111 buildCounterApi++; | 111 buildCounterApi++; |
112 if (buildCounterApi < 3) { | 112 if (buildCounterApi < 3) { |
113 checkUnnamed1731(o.methods); | 113 checkUnnamed1498(o.methods); |
114 checkUnnamed1732(o.mixins); | 114 checkUnnamed1499(o.mixins); |
115 unittest.expect(o.name, unittest.equals('foo')); | 115 unittest.expect(o.name, unittest.equals('foo')); |
116 checkUnnamed1733(o.options); | 116 checkUnnamed1500(o.options); |
117 checkSourceContext(o.sourceContext); | 117 checkSourceContext(o.sourceContext); |
118 unittest.expect(o.syntax, unittest.equals('foo')); | 118 unittest.expect(o.syntax, unittest.equals('foo')); |
119 unittest.expect(o.version, unittest.equals('foo')); | 119 unittest.expect(o.version, unittest.equals('foo')); |
120 } | 120 } |
121 buildCounterApi--; | 121 buildCounterApi--; |
122 } | 122 } |
123 | 123 |
124 core.int buildCounterAuthProvider = 0; | 124 core.int buildCounterAuthProvider = 0; |
125 buildAuthProvider() { | 125 buildAuthProvider() { |
126 var o = new api.AuthProvider(); | 126 var o = new api.AuthProvider(); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 160 |
161 checkAuthRequirement(api.AuthRequirement o) { | 161 checkAuthRequirement(api.AuthRequirement o) { |
162 buildCounterAuthRequirement++; | 162 buildCounterAuthRequirement++; |
163 if (buildCounterAuthRequirement < 3) { | 163 if (buildCounterAuthRequirement < 3) { |
164 unittest.expect(o.audiences, unittest.equals('foo')); | 164 unittest.expect(o.audiences, unittest.equals('foo')); |
165 unittest.expect(o.providerId, unittest.equals('foo')); | 165 unittest.expect(o.providerId, unittest.equals('foo')); |
166 } | 166 } |
167 buildCounterAuthRequirement--; | 167 buildCounterAuthRequirement--; |
168 } | 168 } |
169 | 169 |
170 buildUnnamed1734() { | 170 buildUnnamed1501() { |
171 var o = new core.List<api.AuthProvider>(); | 171 var o = new core.List<api.AuthProvider>(); |
172 o.add(buildAuthProvider()); | 172 o.add(buildAuthProvider()); |
173 o.add(buildAuthProvider()); | 173 o.add(buildAuthProvider()); |
174 return o; | 174 return o; |
175 } | 175 } |
176 | 176 |
177 checkUnnamed1734(core.List<api.AuthProvider> o) { | 177 checkUnnamed1501(core.List<api.AuthProvider> o) { |
178 unittest.expect(o, unittest.hasLength(2)); | 178 unittest.expect(o, unittest.hasLength(2)); |
179 checkAuthProvider(o[0]); | 179 checkAuthProvider(o[0]); |
180 checkAuthProvider(o[1]); | 180 checkAuthProvider(o[1]); |
181 } | 181 } |
182 | 182 |
183 buildUnnamed1735() { | 183 buildUnnamed1502() { |
184 var o = new core.List<api.AuthenticationRule>(); | 184 var o = new core.List<api.AuthenticationRule>(); |
185 o.add(buildAuthenticationRule()); | 185 o.add(buildAuthenticationRule()); |
186 o.add(buildAuthenticationRule()); | 186 o.add(buildAuthenticationRule()); |
187 return o; | 187 return o; |
188 } | 188 } |
189 | 189 |
190 checkUnnamed1735(core.List<api.AuthenticationRule> o) { | 190 checkUnnamed1502(core.List<api.AuthenticationRule> o) { |
191 unittest.expect(o, unittest.hasLength(2)); | 191 unittest.expect(o, unittest.hasLength(2)); |
192 checkAuthenticationRule(o[0]); | 192 checkAuthenticationRule(o[0]); |
193 checkAuthenticationRule(o[1]); | 193 checkAuthenticationRule(o[1]); |
194 } | 194 } |
195 | 195 |
196 core.int buildCounterAuthentication = 0; | 196 core.int buildCounterAuthentication = 0; |
197 buildAuthentication() { | 197 buildAuthentication() { |
198 var o = new api.Authentication(); | 198 var o = new api.Authentication(); |
199 buildCounterAuthentication++; | 199 buildCounterAuthentication++; |
200 if (buildCounterAuthentication < 3) { | 200 if (buildCounterAuthentication < 3) { |
201 o.providers = buildUnnamed1734(); | 201 o.providers = buildUnnamed1501(); |
202 o.rules = buildUnnamed1735(); | 202 o.rules = buildUnnamed1502(); |
203 } | 203 } |
204 buildCounterAuthentication--; | 204 buildCounterAuthentication--; |
205 return o; | 205 return o; |
206 } | 206 } |
207 | 207 |
208 checkAuthentication(api.Authentication o) { | 208 checkAuthentication(api.Authentication o) { |
209 buildCounterAuthentication++; | 209 buildCounterAuthentication++; |
210 if (buildCounterAuthentication < 3) { | 210 if (buildCounterAuthentication < 3) { |
211 checkUnnamed1734(o.providers); | 211 checkUnnamed1501(o.providers); |
212 checkUnnamed1735(o.rules); | 212 checkUnnamed1502(o.rules); |
213 } | 213 } |
214 buildCounterAuthentication--; | 214 buildCounterAuthentication--; |
215 } | 215 } |
216 | 216 |
217 buildUnnamed1736() { | 217 buildUnnamed1503() { |
218 var o = new core.List<api.AuthRequirement>(); | 218 var o = new core.List<api.AuthRequirement>(); |
219 o.add(buildAuthRequirement()); | 219 o.add(buildAuthRequirement()); |
220 o.add(buildAuthRequirement()); | 220 o.add(buildAuthRequirement()); |
221 return o; | 221 return o; |
222 } | 222 } |
223 | 223 |
224 checkUnnamed1736(core.List<api.AuthRequirement> o) { | 224 checkUnnamed1503(core.List<api.AuthRequirement> o) { |
225 unittest.expect(o, unittest.hasLength(2)); | 225 unittest.expect(o, unittest.hasLength(2)); |
226 checkAuthRequirement(o[0]); | 226 checkAuthRequirement(o[0]); |
227 checkAuthRequirement(o[1]); | 227 checkAuthRequirement(o[1]); |
228 } | 228 } |
229 | 229 |
230 core.int buildCounterAuthenticationRule = 0; | 230 core.int buildCounterAuthenticationRule = 0; |
231 buildAuthenticationRule() { | 231 buildAuthenticationRule() { |
232 var o = new api.AuthenticationRule(); | 232 var o = new api.AuthenticationRule(); |
233 buildCounterAuthenticationRule++; | 233 buildCounterAuthenticationRule++; |
234 if (buildCounterAuthenticationRule < 3) { | 234 if (buildCounterAuthenticationRule < 3) { |
235 o.allowWithoutCredential = true; | 235 o.allowWithoutCredential = true; |
236 o.oauth = buildOAuthRequirements(); | 236 o.oauth = buildOAuthRequirements(); |
237 o.requirements = buildUnnamed1736(); | 237 o.requirements = buildUnnamed1503(); |
238 o.selector = "foo"; | 238 o.selector = "foo"; |
239 } | 239 } |
240 buildCounterAuthenticationRule--; | 240 buildCounterAuthenticationRule--; |
241 return o; | 241 return o; |
242 } | 242 } |
243 | 243 |
244 checkAuthenticationRule(api.AuthenticationRule o) { | 244 checkAuthenticationRule(api.AuthenticationRule o) { |
245 buildCounterAuthenticationRule++; | 245 buildCounterAuthenticationRule++; |
246 if (buildCounterAuthenticationRule < 3) { | 246 if (buildCounterAuthenticationRule < 3) { |
247 unittest.expect(o.allowWithoutCredential, unittest.isTrue); | 247 unittest.expect(o.allowWithoutCredential, unittest.isTrue); |
248 checkOAuthRequirements(o.oauth); | 248 checkOAuthRequirements(o.oauth); |
249 checkUnnamed1736(o.requirements); | 249 checkUnnamed1503(o.requirements); |
250 unittest.expect(o.selector, unittest.equals('foo')); | 250 unittest.expect(o.selector, unittest.equals('foo')); |
251 } | 251 } |
252 buildCounterAuthenticationRule--; | 252 buildCounterAuthenticationRule--; |
253 } | 253 } |
254 | 254 |
255 buildUnnamed1737() { | 255 core.int buildCounterAuthorizationConfig = 0; |
| 256 buildAuthorizationConfig() { |
| 257 var o = new api.AuthorizationConfig(); |
| 258 buildCounterAuthorizationConfig++; |
| 259 if (buildCounterAuthorizationConfig < 3) { |
| 260 o.provider = "foo"; |
| 261 } |
| 262 buildCounterAuthorizationConfig--; |
| 263 return o; |
| 264 } |
| 265 |
| 266 checkAuthorizationConfig(api.AuthorizationConfig o) { |
| 267 buildCounterAuthorizationConfig++; |
| 268 if (buildCounterAuthorizationConfig < 3) { |
| 269 unittest.expect(o.provider, unittest.equals('foo')); |
| 270 } |
| 271 buildCounterAuthorizationConfig--; |
| 272 } |
| 273 |
| 274 buildUnnamed1504() { |
256 var o = new core.List<api.BackendRule>(); | 275 var o = new core.List<api.BackendRule>(); |
257 o.add(buildBackendRule()); | 276 o.add(buildBackendRule()); |
258 o.add(buildBackendRule()); | 277 o.add(buildBackendRule()); |
259 return o; | 278 return o; |
260 } | 279 } |
261 | 280 |
262 checkUnnamed1737(core.List<api.BackendRule> o) { | 281 checkUnnamed1504(core.List<api.BackendRule> o) { |
263 unittest.expect(o, unittest.hasLength(2)); | 282 unittest.expect(o, unittest.hasLength(2)); |
264 checkBackendRule(o[0]); | 283 checkBackendRule(o[0]); |
265 checkBackendRule(o[1]); | 284 checkBackendRule(o[1]); |
266 } | 285 } |
267 | 286 |
268 core.int buildCounterBackend = 0; | 287 core.int buildCounterBackend = 0; |
269 buildBackend() { | 288 buildBackend() { |
270 var o = new api.Backend(); | 289 var o = new api.Backend(); |
271 buildCounterBackend++; | 290 buildCounterBackend++; |
272 if (buildCounterBackend < 3) { | 291 if (buildCounterBackend < 3) { |
273 o.rules = buildUnnamed1737(); | 292 o.rules = buildUnnamed1504(); |
274 } | 293 } |
275 buildCounterBackend--; | 294 buildCounterBackend--; |
276 return o; | 295 return o; |
277 } | 296 } |
278 | 297 |
279 checkBackend(api.Backend o) { | 298 checkBackend(api.Backend o) { |
280 buildCounterBackend++; | 299 buildCounterBackend++; |
281 if (buildCounterBackend < 3) { | 300 if (buildCounterBackend < 3) { |
282 checkUnnamed1737(o.rules); | 301 checkUnnamed1504(o.rules); |
283 } | 302 } |
284 buildCounterBackend--; | 303 buildCounterBackend--; |
285 } | 304 } |
286 | 305 |
287 core.int buildCounterBackendRule = 0; | 306 core.int buildCounterBackendRule = 0; |
288 buildBackendRule() { | 307 buildBackendRule() { |
289 var o = new api.BackendRule(); | 308 var o = new api.BackendRule(); |
290 buildCounterBackendRule++; | 309 buildCounterBackendRule++; |
291 if (buildCounterBackendRule < 3) { | 310 if (buildCounterBackendRule < 3) { |
292 o.address = "foo"; | 311 o.address = "foo"; |
293 o.deadline = 42.0; | 312 o.deadline = 42.0; |
294 o.selector = "foo"; | 313 o.selector = "foo"; |
295 } | 314 } |
296 buildCounterBackendRule--; | 315 buildCounterBackendRule--; |
297 return o; | 316 return o; |
298 } | 317 } |
299 | 318 |
300 checkBackendRule(api.BackendRule o) { | 319 checkBackendRule(api.BackendRule o) { |
301 buildCounterBackendRule++; | 320 buildCounterBackendRule++; |
302 if (buildCounterBackendRule < 3) { | 321 if (buildCounterBackendRule < 3) { |
303 unittest.expect(o.address, unittest.equals('foo')); | 322 unittest.expect(o.address, unittest.equals('foo')); |
304 unittest.expect(o.deadline, unittest.equals(42.0)); | 323 unittest.expect(o.deadline, unittest.equals(42.0)); |
305 unittest.expect(o.selector, unittest.equals('foo')); | 324 unittest.expect(o.selector, unittest.equals('foo')); |
306 } | 325 } |
307 buildCounterBackendRule--; | 326 buildCounterBackendRule--; |
308 } | 327 } |
309 | 328 |
310 buildUnnamed1738() { | 329 buildUnnamed1505() { |
311 var o = new core.List<api.ContextRule>(); | 330 var o = new core.List<api.ContextRule>(); |
312 o.add(buildContextRule()); | 331 o.add(buildContextRule()); |
313 o.add(buildContextRule()); | 332 o.add(buildContextRule()); |
314 return o; | 333 return o; |
315 } | 334 } |
316 | 335 |
317 checkUnnamed1738(core.List<api.ContextRule> o) { | 336 checkUnnamed1505(core.List<api.ContextRule> o) { |
318 unittest.expect(o, unittest.hasLength(2)); | 337 unittest.expect(o, unittest.hasLength(2)); |
319 checkContextRule(o[0]); | 338 checkContextRule(o[0]); |
320 checkContextRule(o[1]); | 339 checkContextRule(o[1]); |
321 } | 340 } |
322 | 341 |
323 core.int buildCounterContext = 0; | 342 core.int buildCounterContext = 0; |
324 buildContext() { | 343 buildContext() { |
325 var o = new api.Context(); | 344 var o = new api.Context(); |
326 buildCounterContext++; | 345 buildCounterContext++; |
327 if (buildCounterContext < 3) { | 346 if (buildCounterContext < 3) { |
328 o.rules = buildUnnamed1738(); | 347 o.rules = buildUnnamed1505(); |
329 } | 348 } |
330 buildCounterContext--; | 349 buildCounterContext--; |
331 return o; | 350 return o; |
332 } | 351 } |
333 | 352 |
334 checkContext(api.Context o) { | 353 checkContext(api.Context o) { |
335 buildCounterContext++; | 354 buildCounterContext++; |
336 if (buildCounterContext < 3) { | 355 if (buildCounterContext < 3) { |
337 checkUnnamed1738(o.rules); | 356 checkUnnamed1505(o.rules); |
338 } | 357 } |
339 buildCounterContext--; | 358 buildCounterContext--; |
340 } | 359 } |
341 | 360 |
342 buildUnnamed1739() { | 361 buildUnnamed1506() { |
343 var o = new core.List<core.String>(); | 362 var o = new core.List<core.String>(); |
344 o.add("foo"); | 363 o.add("foo"); |
345 o.add("foo"); | 364 o.add("foo"); |
346 return o; | 365 return o; |
347 } | 366 } |
348 | 367 |
349 checkUnnamed1739(core.List<core.String> o) { | 368 checkUnnamed1506(core.List<core.String> o) { |
350 unittest.expect(o, unittest.hasLength(2)); | 369 unittest.expect(o, unittest.hasLength(2)); |
351 unittest.expect(o[0], unittest.equals('foo')); | 370 unittest.expect(o[0], unittest.equals('foo')); |
352 unittest.expect(o[1], unittest.equals('foo')); | 371 unittest.expect(o[1], unittest.equals('foo')); |
353 } | 372 } |
354 | 373 |
355 buildUnnamed1740() { | 374 buildUnnamed1507() { |
356 var o = new core.List<core.String>(); | 375 var o = new core.List<core.String>(); |
357 o.add("foo"); | 376 o.add("foo"); |
358 o.add("foo"); | 377 o.add("foo"); |
359 return o; | 378 return o; |
360 } | 379 } |
361 | 380 |
362 checkUnnamed1740(core.List<core.String> o) { | 381 checkUnnamed1507(core.List<core.String> o) { |
363 unittest.expect(o, unittest.hasLength(2)); | 382 unittest.expect(o, unittest.hasLength(2)); |
364 unittest.expect(o[0], unittest.equals('foo')); | 383 unittest.expect(o[0], unittest.equals('foo')); |
365 unittest.expect(o[1], unittest.equals('foo')); | 384 unittest.expect(o[1], unittest.equals('foo')); |
366 } | 385 } |
367 | 386 |
368 core.int buildCounterContextRule = 0; | 387 core.int buildCounterContextRule = 0; |
369 buildContextRule() { | 388 buildContextRule() { |
370 var o = new api.ContextRule(); | 389 var o = new api.ContextRule(); |
371 buildCounterContextRule++; | 390 buildCounterContextRule++; |
372 if (buildCounterContextRule < 3) { | 391 if (buildCounterContextRule < 3) { |
373 o.provided = buildUnnamed1739(); | 392 o.provided = buildUnnamed1506(); |
374 o.requested = buildUnnamed1740(); | 393 o.requested = buildUnnamed1507(); |
375 o.selector = "foo"; | 394 o.selector = "foo"; |
376 } | 395 } |
377 buildCounterContextRule--; | 396 buildCounterContextRule--; |
378 return o; | 397 return o; |
379 } | 398 } |
380 | 399 |
381 checkContextRule(api.ContextRule o) { | 400 checkContextRule(api.ContextRule o) { |
382 buildCounterContextRule++; | 401 buildCounterContextRule++; |
383 if (buildCounterContextRule < 3) { | 402 if (buildCounterContextRule < 3) { |
384 checkUnnamed1739(o.provided); | 403 checkUnnamed1506(o.provided); |
385 checkUnnamed1740(o.requested); | 404 checkUnnamed1507(o.requested); |
386 unittest.expect(o.selector, unittest.equals('foo')); | 405 unittest.expect(o.selector, unittest.equals('foo')); |
387 } | 406 } |
388 buildCounterContextRule--; | 407 buildCounterContextRule--; |
389 } | 408 } |
390 | 409 |
391 core.int buildCounterControl = 0; | 410 core.int buildCounterControl = 0; |
392 buildControl() { | 411 buildControl() { |
393 var o = new api.Control(); | 412 var o = new api.Control(); |
394 buildCounterControl++; | 413 buildCounterControl++; |
395 if (buildCounterControl < 3) { | 414 if (buildCounterControl < 3) { |
396 o.environment = "foo"; | 415 o.environment = "foo"; |
397 } | 416 } |
398 buildCounterControl--; | 417 buildCounterControl--; |
399 return o; | 418 return o; |
400 } | 419 } |
401 | 420 |
402 checkControl(api.Control o) { | 421 checkControl(api.Control o) { |
403 buildCounterControl++; | 422 buildCounterControl++; |
404 if (buildCounterControl < 3) { | 423 if (buildCounterControl < 3) { |
405 unittest.expect(o.environment, unittest.equals('foo')); | 424 unittest.expect(o.environment, unittest.equals('foo')); |
406 } | 425 } |
407 buildCounterControl--; | 426 buildCounterControl--; |
408 } | 427 } |
409 | 428 |
410 buildUnnamed1741() { | 429 buildUnnamed1508() { |
411 var o = new core.List<api.CustomErrorRule>(); | 430 var o = new core.List<api.CustomErrorRule>(); |
412 o.add(buildCustomErrorRule()); | 431 o.add(buildCustomErrorRule()); |
413 o.add(buildCustomErrorRule()); | 432 o.add(buildCustomErrorRule()); |
414 return o; | 433 return o; |
415 } | 434 } |
416 | 435 |
417 checkUnnamed1741(core.List<api.CustomErrorRule> o) { | 436 checkUnnamed1508(core.List<api.CustomErrorRule> o) { |
418 unittest.expect(o, unittest.hasLength(2)); | 437 unittest.expect(o, unittest.hasLength(2)); |
419 checkCustomErrorRule(o[0]); | 438 checkCustomErrorRule(o[0]); |
420 checkCustomErrorRule(o[1]); | 439 checkCustomErrorRule(o[1]); |
421 } | 440 } |
422 | 441 |
423 buildUnnamed1742() { | 442 buildUnnamed1509() { |
424 var o = new core.List<core.String>(); | 443 var o = new core.List<core.String>(); |
425 o.add("foo"); | 444 o.add("foo"); |
426 o.add("foo"); | 445 o.add("foo"); |
427 return o; | 446 return o; |
428 } | 447 } |
429 | 448 |
430 checkUnnamed1742(core.List<core.String> o) { | 449 checkUnnamed1509(core.List<core.String> o) { |
431 unittest.expect(o, unittest.hasLength(2)); | 450 unittest.expect(o, unittest.hasLength(2)); |
432 unittest.expect(o[0], unittest.equals('foo')); | 451 unittest.expect(o[0], unittest.equals('foo')); |
433 unittest.expect(o[1], unittest.equals('foo')); | 452 unittest.expect(o[1], unittest.equals('foo')); |
434 } | 453 } |
435 | 454 |
436 core.int buildCounterCustomError = 0; | 455 core.int buildCounterCustomError = 0; |
437 buildCustomError() { | 456 buildCustomError() { |
438 var o = new api.CustomError(); | 457 var o = new api.CustomError(); |
439 buildCounterCustomError++; | 458 buildCounterCustomError++; |
440 if (buildCounterCustomError < 3) { | 459 if (buildCounterCustomError < 3) { |
441 o.rules = buildUnnamed1741(); | 460 o.rules = buildUnnamed1508(); |
442 o.types = buildUnnamed1742(); | 461 o.types = buildUnnamed1509(); |
443 } | 462 } |
444 buildCounterCustomError--; | 463 buildCounterCustomError--; |
445 return o; | 464 return o; |
446 } | 465 } |
447 | 466 |
448 checkCustomError(api.CustomError o) { | 467 checkCustomError(api.CustomError o) { |
449 buildCounterCustomError++; | 468 buildCounterCustomError++; |
450 if (buildCounterCustomError < 3) { | 469 if (buildCounterCustomError < 3) { |
451 checkUnnamed1741(o.rules); | 470 checkUnnamed1508(o.rules); |
452 checkUnnamed1742(o.types); | 471 checkUnnamed1509(o.types); |
453 } | 472 } |
454 buildCounterCustomError--; | 473 buildCounterCustomError--; |
455 } | 474 } |
456 | 475 |
457 core.int buildCounterCustomErrorRule = 0; | 476 core.int buildCounterCustomErrorRule = 0; |
458 buildCustomErrorRule() { | 477 buildCustomErrorRule() { |
459 var o = new api.CustomErrorRule(); | 478 var o = new api.CustomErrorRule(); |
460 buildCounterCustomErrorRule++; | 479 buildCounterCustomErrorRule++; |
461 if (buildCounterCustomErrorRule < 3) { | 480 if (buildCounterCustomErrorRule < 3) { |
462 o.isErrorType = true; | 481 o.isErrorType = true; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 return o; | 525 return o; |
507 } | 526 } |
508 | 527 |
509 checkDisableServiceRequest(api.DisableServiceRequest o) { | 528 checkDisableServiceRequest(api.DisableServiceRequest o) { |
510 buildCounterDisableServiceRequest++; | 529 buildCounterDisableServiceRequest++; |
511 if (buildCounterDisableServiceRequest < 3) { | 530 if (buildCounterDisableServiceRequest < 3) { |
512 } | 531 } |
513 buildCounterDisableServiceRequest--; | 532 buildCounterDisableServiceRequest--; |
514 } | 533 } |
515 | 534 |
516 buildUnnamed1743() { | 535 buildUnnamed1510() { |
517 var o = new core.List<api.Page>(); | 536 var o = new core.List<api.Page>(); |
518 o.add(buildPage()); | 537 o.add(buildPage()); |
519 o.add(buildPage()); | 538 o.add(buildPage()); |
520 return o; | 539 return o; |
521 } | 540 } |
522 | 541 |
523 checkUnnamed1743(core.List<api.Page> o) { | 542 checkUnnamed1510(core.List<api.Page> o) { |
524 unittest.expect(o, unittest.hasLength(2)); | 543 unittest.expect(o, unittest.hasLength(2)); |
525 checkPage(o[0]); | 544 checkPage(o[0]); |
526 checkPage(o[1]); | 545 checkPage(o[1]); |
527 } | 546 } |
528 | 547 |
529 buildUnnamed1744() { | 548 buildUnnamed1511() { |
530 var o = new core.List<api.DocumentationRule>(); | 549 var o = new core.List<api.DocumentationRule>(); |
531 o.add(buildDocumentationRule()); | 550 o.add(buildDocumentationRule()); |
532 o.add(buildDocumentationRule()); | 551 o.add(buildDocumentationRule()); |
533 return o; | 552 return o; |
534 } | 553 } |
535 | 554 |
536 checkUnnamed1744(core.List<api.DocumentationRule> o) { | 555 checkUnnamed1511(core.List<api.DocumentationRule> o) { |
537 unittest.expect(o, unittest.hasLength(2)); | 556 unittest.expect(o, unittest.hasLength(2)); |
538 checkDocumentationRule(o[0]); | 557 checkDocumentationRule(o[0]); |
539 checkDocumentationRule(o[1]); | 558 checkDocumentationRule(o[1]); |
540 } | 559 } |
541 | 560 |
542 core.int buildCounterDocumentation = 0; | 561 core.int buildCounterDocumentation = 0; |
543 buildDocumentation() { | 562 buildDocumentation() { |
544 var o = new api.Documentation(); | 563 var o = new api.Documentation(); |
545 buildCounterDocumentation++; | 564 buildCounterDocumentation++; |
546 if (buildCounterDocumentation < 3) { | 565 if (buildCounterDocumentation < 3) { |
547 o.documentationRootUrl = "foo"; | 566 o.documentationRootUrl = "foo"; |
548 o.overview = "foo"; | 567 o.overview = "foo"; |
549 o.pages = buildUnnamed1743(); | 568 o.pages = buildUnnamed1510(); |
550 o.rules = buildUnnamed1744(); | 569 o.rules = buildUnnamed1511(); |
551 o.summary = "foo"; | 570 o.summary = "foo"; |
552 } | 571 } |
553 buildCounterDocumentation--; | 572 buildCounterDocumentation--; |
554 return o; | 573 return o; |
555 } | 574 } |
556 | 575 |
557 checkDocumentation(api.Documentation o) { | 576 checkDocumentation(api.Documentation o) { |
558 buildCounterDocumentation++; | 577 buildCounterDocumentation++; |
559 if (buildCounterDocumentation < 3) { | 578 if (buildCounterDocumentation < 3) { |
560 unittest.expect(o.documentationRootUrl, unittest.equals('foo')); | 579 unittest.expect(o.documentationRootUrl, unittest.equals('foo')); |
561 unittest.expect(o.overview, unittest.equals('foo')); | 580 unittest.expect(o.overview, unittest.equals('foo')); |
562 checkUnnamed1743(o.pages); | 581 checkUnnamed1510(o.pages); |
563 checkUnnamed1744(o.rules); | 582 checkUnnamed1511(o.rules); |
564 unittest.expect(o.summary, unittest.equals('foo')); | 583 unittest.expect(o.summary, unittest.equals('foo')); |
565 } | 584 } |
566 buildCounterDocumentation--; | 585 buildCounterDocumentation--; |
567 } | 586 } |
568 | 587 |
569 core.int buildCounterDocumentationRule = 0; | 588 core.int buildCounterDocumentationRule = 0; |
570 buildDocumentationRule() { | 589 buildDocumentationRule() { |
571 var o = new api.DocumentationRule(); | 590 var o = new api.DocumentationRule(); |
572 buildCounterDocumentationRule++; | 591 buildCounterDocumentationRule++; |
573 if (buildCounterDocumentationRule < 3) { | 592 if (buildCounterDocumentationRule < 3) { |
(...skipping 25 matching lines...) Expand all Loading... |
599 return o; | 618 return o; |
600 } | 619 } |
601 | 620 |
602 checkEnableServiceRequest(api.EnableServiceRequest o) { | 621 checkEnableServiceRequest(api.EnableServiceRequest o) { |
603 buildCounterEnableServiceRequest++; | 622 buildCounterEnableServiceRequest++; |
604 if (buildCounterEnableServiceRequest < 3) { | 623 if (buildCounterEnableServiceRequest < 3) { |
605 } | 624 } |
606 buildCounterEnableServiceRequest--; | 625 buildCounterEnableServiceRequest--; |
607 } | 626 } |
608 | 627 |
609 core.int buildCounterEnabledService = 0; | 628 buildUnnamed1512() { |
610 buildEnabledService() { | |
611 var o = new api.EnabledService(); | |
612 buildCounterEnabledService++; | |
613 if (buildCounterEnabledService < 3) { | |
614 o.service = buildService(); | |
615 } | |
616 buildCounterEnabledService--; | |
617 return o; | |
618 } | |
619 | |
620 checkEnabledService(api.EnabledService o) { | |
621 buildCounterEnabledService++; | |
622 if (buildCounterEnabledService < 3) { | |
623 checkService(o.service); | |
624 } | |
625 buildCounterEnabledService--; | |
626 } | |
627 | |
628 buildUnnamed1745() { | |
629 var o = new core.List<core.String>(); | 629 var o = new core.List<core.String>(); |
630 o.add("foo"); | 630 o.add("foo"); |
631 o.add("foo"); | 631 o.add("foo"); |
632 return o; | 632 return o; |
633 } | 633 } |
634 | 634 |
635 checkUnnamed1745(core.List<core.String> o) { | 635 checkUnnamed1512(core.List<core.String> o) { |
636 unittest.expect(o, unittest.hasLength(2)); | 636 unittest.expect(o, unittest.hasLength(2)); |
637 unittest.expect(o[0], unittest.equals('foo')); | 637 unittest.expect(o[0], unittest.equals('foo')); |
638 unittest.expect(o[1], unittest.equals('foo')); | 638 unittest.expect(o[1], unittest.equals('foo')); |
639 } | 639 } |
640 | 640 |
641 buildUnnamed1746() { | 641 buildUnnamed1513() { |
642 var o = new core.List<core.String>(); | 642 var o = new core.List<core.String>(); |
643 o.add("foo"); | 643 o.add("foo"); |
644 o.add("foo"); | 644 o.add("foo"); |
645 return o; | 645 return o; |
646 } | 646 } |
647 | 647 |
648 checkUnnamed1746(core.List<core.String> o) { | 648 checkUnnamed1513(core.List<core.String> o) { |
649 unittest.expect(o, unittest.hasLength(2)); | 649 unittest.expect(o, unittest.hasLength(2)); |
650 unittest.expect(o[0], unittest.equals('foo')); | 650 unittest.expect(o[0], unittest.equals('foo')); |
651 unittest.expect(o[1], unittest.equals('foo')); | 651 unittest.expect(o[1], unittest.equals('foo')); |
652 } | 652 } |
653 | 653 |
654 buildUnnamed1747() { | 654 buildUnnamed1514() { |
655 var o = new core.List<core.String>(); | 655 var o = new core.List<core.String>(); |
656 o.add("foo"); | 656 o.add("foo"); |
657 o.add("foo"); | 657 o.add("foo"); |
658 return o; | 658 return o; |
659 } | 659 } |
660 | 660 |
661 checkUnnamed1747(core.List<core.String> o) { | 661 checkUnnamed1514(core.List<core.String> o) { |
662 unittest.expect(o, unittest.hasLength(2)); | 662 unittest.expect(o, unittest.hasLength(2)); |
663 unittest.expect(o[0], unittest.equals('foo')); | 663 unittest.expect(o[0], unittest.equals('foo')); |
664 unittest.expect(o[1], unittest.equals('foo')); | 664 unittest.expect(o[1], unittest.equals('foo')); |
665 } | 665 } |
666 | 666 |
667 core.int buildCounterEndpoint = 0; | 667 core.int buildCounterEndpoint = 0; |
668 buildEndpoint() { | 668 buildEndpoint() { |
669 var o = new api.Endpoint(); | 669 var o = new api.Endpoint(); |
670 buildCounterEndpoint++; | 670 buildCounterEndpoint++; |
671 if (buildCounterEndpoint < 3) { | 671 if (buildCounterEndpoint < 3) { |
672 o.aliases = buildUnnamed1745(); | 672 o.aliases = buildUnnamed1512(); |
673 o.allowCors = true; | 673 o.allowCors = true; |
674 o.apis = buildUnnamed1746(); | 674 o.apis = buildUnnamed1513(); |
675 o.features = buildUnnamed1747(); | 675 o.features = buildUnnamed1514(); |
676 o.name = "foo"; | 676 o.name = "foo"; |
677 } | 677 } |
678 buildCounterEndpoint--; | 678 buildCounterEndpoint--; |
679 return o; | 679 return o; |
680 } | 680 } |
681 | 681 |
682 checkEndpoint(api.Endpoint o) { | 682 checkEndpoint(api.Endpoint o) { |
683 buildCounterEndpoint++; | 683 buildCounterEndpoint++; |
684 if (buildCounterEndpoint < 3) { | 684 if (buildCounterEndpoint < 3) { |
685 checkUnnamed1745(o.aliases); | 685 checkUnnamed1512(o.aliases); |
686 unittest.expect(o.allowCors, unittest.isTrue); | 686 unittest.expect(o.allowCors, unittest.isTrue); |
687 checkUnnamed1746(o.apis); | 687 checkUnnamed1513(o.apis); |
688 checkUnnamed1747(o.features); | 688 checkUnnamed1514(o.features); |
689 unittest.expect(o.name, unittest.equals('foo')); | 689 unittest.expect(o.name, unittest.equals('foo')); |
690 } | 690 } |
691 buildCounterEndpoint--; | 691 buildCounterEndpoint--; |
692 } | 692 } |
693 | 693 |
694 buildUnnamed1748() { | 694 buildUnnamed1515() { |
695 var o = new core.List<api.EnumValue>(); | 695 var o = new core.List<api.EnumValue>(); |
696 o.add(buildEnumValue()); | 696 o.add(buildEnumValue()); |
697 o.add(buildEnumValue()); | 697 o.add(buildEnumValue()); |
698 return o; | 698 return o; |
699 } | 699 } |
700 | 700 |
701 checkUnnamed1748(core.List<api.EnumValue> o) { | 701 checkUnnamed1515(core.List<api.EnumValue> o) { |
702 unittest.expect(o, unittest.hasLength(2)); | 702 unittest.expect(o, unittest.hasLength(2)); |
703 checkEnumValue(o[0]); | 703 checkEnumValue(o[0]); |
704 checkEnumValue(o[1]); | 704 checkEnumValue(o[1]); |
705 } | 705 } |
706 | 706 |
707 buildUnnamed1749() { | 707 buildUnnamed1516() { |
708 var o = new core.List<api.Option>(); | 708 var o = new core.List<api.Option>(); |
709 o.add(buildOption()); | 709 o.add(buildOption()); |
710 o.add(buildOption()); | 710 o.add(buildOption()); |
711 return o; | 711 return o; |
712 } | 712 } |
713 | 713 |
714 checkUnnamed1749(core.List<api.Option> o) { | 714 checkUnnamed1516(core.List<api.Option> o) { |
715 unittest.expect(o, unittest.hasLength(2)); | 715 unittest.expect(o, unittest.hasLength(2)); |
716 checkOption(o[0]); | 716 checkOption(o[0]); |
717 checkOption(o[1]); | 717 checkOption(o[1]); |
718 } | 718 } |
719 | 719 |
720 core.int buildCounterEnum = 0; | 720 core.int buildCounterEnum = 0; |
721 buildEnum() { | 721 buildEnum() { |
722 var o = new api.Enum(); | 722 var o = new api.Enum(); |
723 buildCounterEnum++; | 723 buildCounterEnum++; |
724 if (buildCounterEnum < 3) { | 724 if (buildCounterEnum < 3) { |
725 o.enumvalue = buildUnnamed1748(); | 725 o.enumvalue = buildUnnamed1515(); |
726 o.name = "foo"; | 726 o.name = "foo"; |
727 o.options = buildUnnamed1749(); | 727 o.options = buildUnnamed1516(); |
728 o.sourceContext = buildSourceContext(); | 728 o.sourceContext = buildSourceContext(); |
729 o.syntax = "foo"; | 729 o.syntax = "foo"; |
730 } | 730 } |
731 buildCounterEnum--; | 731 buildCounterEnum--; |
732 return o; | 732 return o; |
733 } | 733 } |
734 | 734 |
735 checkEnum(api.Enum o) { | 735 checkEnum(api.Enum o) { |
736 buildCounterEnum++; | 736 buildCounterEnum++; |
737 if (buildCounterEnum < 3) { | 737 if (buildCounterEnum < 3) { |
738 checkUnnamed1748(o.enumvalue); | 738 checkUnnamed1515(o.enumvalue); |
739 unittest.expect(o.name, unittest.equals('foo')); | 739 unittest.expect(o.name, unittest.equals('foo')); |
740 checkUnnamed1749(o.options); | 740 checkUnnamed1516(o.options); |
741 checkSourceContext(o.sourceContext); | 741 checkSourceContext(o.sourceContext); |
742 unittest.expect(o.syntax, unittest.equals('foo')); | 742 unittest.expect(o.syntax, unittest.equals('foo')); |
743 } | 743 } |
744 buildCounterEnum--; | 744 buildCounterEnum--; |
745 } | 745 } |
746 | 746 |
747 buildUnnamed1750() { | 747 buildUnnamed1517() { |
748 var o = new core.List<api.Option>(); | 748 var o = new core.List<api.Option>(); |
749 o.add(buildOption()); | 749 o.add(buildOption()); |
750 o.add(buildOption()); | 750 o.add(buildOption()); |
751 return o; | 751 return o; |
752 } | 752 } |
753 | 753 |
754 checkUnnamed1750(core.List<api.Option> o) { | 754 checkUnnamed1517(core.List<api.Option> o) { |
755 unittest.expect(o, unittest.hasLength(2)); | 755 unittest.expect(o, unittest.hasLength(2)); |
756 checkOption(o[0]); | 756 checkOption(o[0]); |
757 checkOption(o[1]); | 757 checkOption(o[1]); |
758 } | 758 } |
759 | 759 |
760 core.int buildCounterEnumValue = 0; | 760 core.int buildCounterEnumValue = 0; |
761 buildEnumValue() { | 761 buildEnumValue() { |
762 var o = new api.EnumValue(); | 762 var o = new api.EnumValue(); |
763 buildCounterEnumValue++; | 763 buildCounterEnumValue++; |
764 if (buildCounterEnumValue < 3) { | 764 if (buildCounterEnumValue < 3) { |
765 o.name = "foo"; | 765 o.name = "foo"; |
766 o.number = 42; | 766 o.number = 42; |
767 o.options = buildUnnamed1750(); | 767 o.options = buildUnnamed1517(); |
768 } | 768 } |
769 buildCounterEnumValue--; | 769 buildCounterEnumValue--; |
770 return o; | 770 return o; |
771 } | 771 } |
772 | 772 |
773 checkEnumValue(api.EnumValue o) { | 773 checkEnumValue(api.EnumValue o) { |
774 buildCounterEnumValue++; | 774 buildCounterEnumValue++; |
775 if (buildCounterEnumValue < 3) { | 775 if (buildCounterEnumValue < 3) { |
776 unittest.expect(o.name, unittest.equals('foo')); | 776 unittest.expect(o.name, unittest.equals('foo')); |
777 unittest.expect(o.number, unittest.equals(42)); | 777 unittest.expect(o.number, unittest.equals(42)); |
778 checkUnnamed1750(o.options); | 778 checkUnnamed1517(o.options); |
779 } | 779 } |
780 buildCounterEnumValue--; | 780 buildCounterEnumValue--; |
781 } | 781 } |
782 | 782 |
783 buildUnnamed1751() { | 783 core.int buildCounterExperimental = 0; |
| 784 buildExperimental() { |
| 785 var o = new api.Experimental(); |
| 786 buildCounterExperimental++; |
| 787 if (buildCounterExperimental < 3) { |
| 788 o.authorization = buildAuthorizationConfig(); |
| 789 } |
| 790 buildCounterExperimental--; |
| 791 return o; |
| 792 } |
| 793 |
| 794 checkExperimental(api.Experimental o) { |
| 795 buildCounterExperimental++; |
| 796 if (buildCounterExperimental < 3) { |
| 797 checkAuthorizationConfig(o.authorization); |
| 798 } |
| 799 buildCounterExperimental--; |
| 800 } |
| 801 |
| 802 buildUnnamed1518() { |
784 var o = new core.List<api.Option>(); | 803 var o = new core.List<api.Option>(); |
785 o.add(buildOption()); | 804 o.add(buildOption()); |
786 o.add(buildOption()); | 805 o.add(buildOption()); |
787 return o; | 806 return o; |
788 } | 807 } |
789 | 808 |
790 checkUnnamed1751(core.List<api.Option> o) { | 809 checkUnnamed1518(core.List<api.Option> o) { |
791 unittest.expect(o, unittest.hasLength(2)); | 810 unittest.expect(o, unittest.hasLength(2)); |
792 checkOption(o[0]); | 811 checkOption(o[0]); |
793 checkOption(o[1]); | 812 checkOption(o[1]); |
794 } | 813 } |
795 | 814 |
796 core.int buildCounterField = 0; | 815 core.int buildCounterField = 0; |
797 buildField() { | 816 buildField() { |
798 var o = new api.Field(); | 817 var o = new api.Field(); |
799 buildCounterField++; | 818 buildCounterField++; |
800 if (buildCounterField < 3) { | 819 if (buildCounterField < 3) { |
801 o.cardinality = "foo"; | 820 o.cardinality = "foo"; |
802 o.defaultValue = "foo"; | 821 o.defaultValue = "foo"; |
803 o.jsonName = "foo"; | 822 o.jsonName = "foo"; |
804 o.kind = "foo"; | 823 o.kind = "foo"; |
805 o.name = "foo"; | 824 o.name = "foo"; |
806 o.number = 42; | 825 o.number = 42; |
807 o.oneofIndex = 42; | 826 o.oneofIndex = 42; |
808 o.options = buildUnnamed1751(); | 827 o.options = buildUnnamed1518(); |
809 o.packed = true; | 828 o.packed = true; |
810 o.typeUrl = "foo"; | 829 o.typeUrl = "foo"; |
811 } | 830 } |
812 buildCounterField--; | 831 buildCounterField--; |
813 return o; | 832 return o; |
814 } | 833 } |
815 | 834 |
816 checkField(api.Field o) { | 835 checkField(api.Field o) { |
817 buildCounterField++; | 836 buildCounterField++; |
818 if (buildCounterField < 3) { | 837 if (buildCounterField < 3) { |
819 unittest.expect(o.cardinality, unittest.equals('foo')); | 838 unittest.expect(o.cardinality, unittest.equals('foo')); |
820 unittest.expect(o.defaultValue, unittest.equals('foo')); | 839 unittest.expect(o.defaultValue, unittest.equals('foo')); |
821 unittest.expect(o.jsonName, unittest.equals('foo')); | 840 unittest.expect(o.jsonName, unittest.equals('foo')); |
822 unittest.expect(o.kind, unittest.equals('foo')); | 841 unittest.expect(o.kind, unittest.equals('foo')); |
823 unittest.expect(o.name, unittest.equals('foo')); | 842 unittest.expect(o.name, unittest.equals('foo')); |
824 unittest.expect(o.number, unittest.equals(42)); | 843 unittest.expect(o.number, unittest.equals(42)); |
825 unittest.expect(o.oneofIndex, unittest.equals(42)); | 844 unittest.expect(o.oneofIndex, unittest.equals(42)); |
826 checkUnnamed1751(o.options); | 845 checkUnnamed1518(o.options); |
827 unittest.expect(o.packed, unittest.isTrue); | 846 unittest.expect(o.packed, unittest.isTrue); |
828 unittest.expect(o.typeUrl, unittest.equals('foo')); | 847 unittest.expect(o.typeUrl, unittest.equals('foo')); |
829 } | 848 } |
830 buildCounterField--; | 849 buildCounterField--; |
831 } | 850 } |
832 | 851 |
833 buildUnnamed1752() { | 852 buildUnnamed1519() { |
834 var o = new core.List<api.HttpRule>(); | 853 var o = new core.List<api.HttpRule>(); |
835 o.add(buildHttpRule()); | 854 o.add(buildHttpRule()); |
836 o.add(buildHttpRule()); | 855 o.add(buildHttpRule()); |
837 return o; | 856 return o; |
838 } | 857 } |
839 | 858 |
840 checkUnnamed1752(core.List<api.HttpRule> o) { | 859 checkUnnamed1519(core.List<api.HttpRule> o) { |
841 unittest.expect(o, unittest.hasLength(2)); | 860 unittest.expect(o, unittest.hasLength(2)); |
842 checkHttpRule(o[0]); | 861 checkHttpRule(o[0]); |
843 checkHttpRule(o[1]); | 862 checkHttpRule(o[1]); |
844 } | 863 } |
845 | 864 |
846 core.int buildCounterHttp = 0; | 865 core.int buildCounterHttp = 0; |
847 buildHttp() { | 866 buildHttp() { |
848 var o = new api.Http(); | 867 var o = new api.Http(); |
849 buildCounterHttp++; | 868 buildCounterHttp++; |
850 if (buildCounterHttp < 3) { | 869 if (buildCounterHttp < 3) { |
851 o.rules = buildUnnamed1752(); | 870 o.rules = buildUnnamed1519(); |
852 } | 871 } |
853 buildCounterHttp--; | 872 buildCounterHttp--; |
854 return o; | 873 return o; |
855 } | 874 } |
856 | 875 |
857 checkHttp(api.Http o) { | 876 checkHttp(api.Http o) { |
858 buildCounterHttp++; | 877 buildCounterHttp++; |
859 if (buildCounterHttp < 3) { | 878 if (buildCounterHttp < 3) { |
860 checkUnnamed1752(o.rules); | 879 checkUnnamed1519(o.rules); |
861 } | 880 } |
862 buildCounterHttp--; | 881 buildCounterHttp--; |
863 } | 882 } |
864 | 883 |
865 buildUnnamed1753() { | 884 buildUnnamed1520() { |
866 var o = new core.List<api.HttpRule>(); | 885 var o = new core.List<api.HttpRule>(); |
867 o.add(buildHttpRule()); | 886 o.add(buildHttpRule()); |
868 o.add(buildHttpRule()); | 887 o.add(buildHttpRule()); |
869 return o; | 888 return o; |
870 } | 889 } |
871 | 890 |
872 checkUnnamed1753(core.List<api.HttpRule> o) { | 891 checkUnnamed1520(core.List<api.HttpRule> o) { |
873 unittest.expect(o, unittest.hasLength(2)); | 892 unittest.expect(o, unittest.hasLength(2)); |
874 checkHttpRule(o[0]); | 893 checkHttpRule(o[0]); |
875 checkHttpRule(o[1]); | 894 checkHttpRule(o[1]); |
876 } | 895 } |
877 | 896 |
878 core.int buildCounterHttpRule = 0; | 897 core.int buildCounterHttpRule = 0; |
879 buildHttpRule() { | 898 buildHttpRule() { |
880 var o = new api.HttpRule(); | 899 var o = new api.HttpRule(); |
881 buildCounterHttpRule++; | 900 buildCounterHttpRule++; |
882 if (buildCounterHttpRule < 3) { | 901 if (buildCounterHttpRule < 3) { |
883 o.additionalBindings = buildUnnamed1753(); | 902 o.additionalBindings = buildUnnamed1520(); |
884 o.body = "foo"; | 903 o.body = "foo"; |
885 o.custom = buildCustomHttpPattern(); | 904 o.custom = buildCustomHttpPattern(); |
886 o.delete = "foo"; | 905 o.delete = "foo"; |
887 o.get = "foo"; | 906 o.get = "foo"; |
888 o.mediaDownload = buildMediaDownload(); | 907 o.mediaDownload = buildMediaDownload(); |
889 o.mediaUpload = buildMediaUpload(); | 908 o.mediaUpload = buildMediaUpload(); |
890 o.patch = "foo"; | 909 o.patch = "foo"; |
891 o.post = "foo"; | 910 o.post = "foo"; |
892 o.put = "foo"; | 911 o.put = "foo"; |
893 o.responseBody = "foo"; | 912 o.responseBody = "foo"; |
894 o.selector = "foo"; | 913 o.selector = "foo"; |
895 } | 914 } |
896 buildCounterHttpRule--; | 915 buildCounterHttpRule--; |
897 return o; | 916 return o; |
898 } | 917 } |
899 | 918 |
900 checkHttpRule(api.HttpRule o) { | 919 checkHttpRule(api.HttpRule o) { |
901 buildCounterHttpRule++; | 920 buildCounterHttpRule++; |
902 if (buildCounterHttpRule < 3) { | 921 if (buildCounterHttpRule < 3) { |
903 checkUnnamed1753(o.additionalBindings); | 922 checkUnnamed1520(o.additionalBindings); |
904 unittest.expect(o.body, unittest.equals('foo')); | 923 unittest.expect(o.body, unittest.equals('foo')); |
905 checkCustomHttpPattern(o.custom); | 924 checkCustomHttpPattern(o.custom); |
906 unittest.expect(o.delete, unittest.equals('foo')); | 925 unittest.expect(o.delete, unittest.equals('foo')); |
907 unittest.expect(o.get, unittest.equals('foo')); | 926 unittest.expect(o.get, unittest.equals('foo')); |
908 checkMediaDownload(o.mediaDownload); | 927 checkMediaDownload(o.mediaDownload); |
909 checkMediaUpload(o.mediaUpload); | 928 checkMediaUpload(o.mediaUpload); |
910 unittest.expect(o.patch, unittest.equals('foo')); | 929 unittest.expect(o.patch, unittest.equals('foo')); |
911 unittest.expect(o.post, unittest.equals('foo')); | 930 unittest.expect(o.post, unittest.equals('foo')); |
912 unittest.expect(o.put, unittest.equals('foo')); | 931 unittest.expect(o.put, unittest.equals('foo')); |
913 unittest.expect(o.responseBody, unittest.equals('foo')); | 932 unittest.expect(o.responseBody, unittest.equals('foo')); |
(...skipping 18 matching lines...) Expand all Loading... |
932 checkLabelDescriptor(api.LabelDescriptor o) { | 951 checkLabelDescriptor(api.LabelDescriptor o) { |
933 buildCounterLabelDescriptor++; | 952 buildCounterLabelDescriptor++; |
934 if (buildCounterLabelDescriptor < 3) { | 953 if (buildCounterLabelDescriptor < 3) { |
935 unittest.expect(o.description, unittest.equals('foo')); | 954 unittest.expect(o.description, unittest.equals('foo')); |
936 unittest.expect(o.key, unittest.equals('foo')); | 955 unittest.expect(o.key, unittest.equals('foo')); |
937 unittest.expect(o.valueType, unittest.equals('foo')); | 956 unittest.expect(o.valueType, unittest.equals('foo')); |
938 } | 957 } |
939 buildCounterLabelDescriptor--; | 958 buildCounterLabelDescriptor--; |
940 } | 959 } |
941 | 960 |
942 buildUnnamed1754() { | 961 buildUnnamed1521() { |
943 var o = new core.List<api.EnabledService>(); | 962 var o = new core.List<api.PublishedService>(); |
944 o.add(buildEnabledService()); | 963 o.add(buildPublishedService()); |
945 o.add(buildEnabledService()); | 964 o.add(buildPublishedService()); |
946 return o; | 965 return o; |
947 } | 966 } |
948 | 967 |
949 checkUnnamed1754(core.List<api.EnabledService> o) { | 968 checkUnnamed1521(core.List<api.PublishedService> o) { |
950 unittest.expect(o, unittest.hasLength(2)); | 969 unittest.expect(o, unittest.hasLength(2)); |
951 checkEnabledService(o[0]); | 970 checkPublishedService(o[0]); |
952 checkEnabledService(o[1]); | 971 checkPublishedService(o[1]); |
953 } | 972 } |
954 | 973 |
955 core.int buildCounterListEnabledServicesResponse = 0; | 974 core.int buildCounterListEnabledServicesResponse = 0; |
956 buildListEnabledServicesResponse() { | 975 buildListEnabledServicesResponse() { |
957 var o = new api.ListEnabledServicesResponse(); | 976 var o = new api.ListEnabledServicesResponse(); |
958 buildCounterListEnabledServicesResponse++; | 977 buildCounterListEnabledServicesResponse++; |
959 if (buildCounterListEnabledServicesResponse < 3) { | 978 if (buildCounterListEnabledServicesResponse < 3) { |
960 o.nextPageToken = "foo"; | 979 o.nextPageToken = "foo"; |
961 o.services = buildUnnamed1754(); | 980 o.services = buildUnnamed1521(); |
962 } | 981 } |
963 buildCounterListEnabledServicesResponse--; | 982 buildCounterListEnabledServicesResponse--; |
964 return o; | 983 return o; |
965 } | 984 } |
966 | 985 |
967 checkListEnabledServicesResponse(api.ListEnabledServicesResponse o) { | 986 checkListEnabledServicesResponse(api.ListEnabledServicesResponse o) { |
968 buildCounterListEnabledServicesResponse++; | 987 buildCounterListEnabledServicesResponse++; |
969 if (buildCounterListEnabledServicesResponse < 3) { | 988 if (buildCounterListEnabledServicesResponse < 3) { |
970 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 989 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
971 checkUnnamed1754(o.services); | 990 checkUnnamed1521(o.services); |
972 } | 991 } |
973 buildCounterListEnabledServicesResponse--; | 992 buildCounterListEnabledServicesResponse--; |
974 } | 993 } |
975 | 994 |
976 buildUnnamed1755() { | 995 buildUnnamed1522() { |
977 var o = new core.List<api.LabelDescriptor>(); | 996 var o = new core.List<api.LabelDescriptor>(); |
978 o.add(buildLabelDescriptor()); | 997 o.add(buildLabelDescriptor()); |
979 o.add(buildLabelDescriptor()); | 998 o.add(buildLabelDescriptor()); |
980 return o; | 999 return o; |
981 } | 1000 } |
982 | 1001 |
983 checkUnnamed1755(core.List<api.LabelDescriptor> o) { | 1002 checkUnnamed1522(core.List<api.LabelDescriptor> o) { |
984 unittest.expect(o, unittest.hasLength(2)); | 1003 unittest.expect(o, unittest.hasLength(2)); |
985 checkLabelDescriptor(o[0]); | 1004 checkLabelDescriptor(o[0]); |
986 checkLabelDescriptor(o[1]); | 1005 checkLabelDescriptor(o[1]); |
987 } | 1006 } |
988 | 1007 |
989 core.int buildCounterLogDescriptor = 0; | 1008 core.int buildCounterLogDescriptor = 0; |
990 buildLogDescriptor() { | 1009 buildLogDescriptor() { |
991 var o = new api.LogDescriptor(); | 1010 var o = new api.LogDescriptor(); |
992 buildCounterLogDescriptor++; | 1011 buildCounterLogDescriptor++; |
993 if (buildCounterLogDescriptor < 3) { | 1012 if (buildCounterLogDescriptor < 3) { |
994 o.description = "foo"; | 1013 o.description = "foo"; |
995 o.displayName = "foo"; | 1014 o.displayName = "foo"; |
996 o.labels = buildUnnamed1755(); | 1015 o.labels = buildUnnamed1522(); |
997 o.name = "foo"; | 1016 o.name = "foo"; |
998 } | 1017 } |
999 buildCounterLogDescriptor--; | 1018 buildCounterLogDescriptor--; |
1000 return o; | 1019 return o; |
1001 } | 1020 } |
1002 | 1021 |
1003 checkLogDescriptor(api.LogDescriptor o) { | 1022 checkLogDescriptor(api.LogDescriptor o) { |
1004 buildCounterLogDescriptor++; | 1023 buildCounterLogDescriptor++; |
1005 if (buildCounterLogDescriptor < 3) { | 1024 if (buildCounterLogDescriptor < 3) { |
1006 unittest.expect(o.description, unittest.equals('foo')); | 1025 unittest.expect(o.description, unittest.equals('foo')); |
1007 unittest.expect(o.displayName, unittest.equals('foo')); | 1026 unittest.expect(o.displayName, unittest.equals('foo')); |
1008 checkUnnamed1755(o.labels); | 1027 checkUnnamed1522(o.labels); |
1009 unittest.expect(o.name, unittest.equals('foo')); | 1028 unittest.expect(o.name, unittest.equals('foo')); |
1010 } | 1029 } |
1011 buildCounterLogDescriptor--; | 1030 buildCounterLogDescriptor--; |
1012 } | 1031 } |
1013 | 1032 |
1014 buildUnnamed1756() { | 1033 buildUnnamed1523() { |
1015 var o = new core.List<api.LoggingDestination>(); | 1034 var o = new core.List<api.LoggingDestination>(); |
1016 o.add(buildLoggingDestination()); | 1035 o.add(buildLoggingDestination()); |
1017 o.add(buildLoggingDestination()); | 1036 o.add(buildLoggingDestination()); |
1018 return o; | 1037 return o; |
1019 } | 1038 } |
1020 | 1039 |
1021 checkUnnamed1756(core.List<api.LoggingDestination> o) { | 1040 checkUnnamed1523(core.List<api.LoggingDestination> o) { |
1022 unittest.expect(o, unittest.hasLength(2)); | 1041 unittest.expect(o, unittest.hasLength(2)); |
1023 checkLoggingDestination(o[0]); | 1042 checkLoggingDestination(o[0]); |
1024 checkLoggingDestination(o[1]); | 1043 checkLoggingDestination(o[1]); |
1025 } | 1044 } |
1026 | 1045 |
1027 buildUnnamed1757() { | 1046 buildUnnamed1524() { |
1028 var o = new core.List<api.LoggingDestination>(); | 1047 var o = new core.List<api.LoggingDestination>(); |
1029 o.add(buildLoggingDestination()); | 1048 o.add(buildLoggingDestination()); |
1030 o.add(buildLoggingDestination()); | 1049 o.add(buildLoggingDestination()); |
1031 return o; | 1050 return o; |
1032 } | 1051 } |
1033 | 1052 |
1034 checkUnnamed1757(core.List<api.LoggingDestination> o) { | 1053 checkUnnamed1524(core.List<api.LoggingDestination> o) { |
1035 unittest.expect(o, unittest.hasLength(2)); | 1054 unittest.expect(o, unittest.hasLength(2)); |
1036 checkLoggingDestination(o[0]); | 1055 checkLoggingDestination(o[0]); |
1037 checkLoggingDestination(o[1]); | 1056 checkLoggingDestination(o[1]); |
1038 } | 1057 } |
1039 | 1058 |
1040 core.int buildCounterLogging = 0; | 1059 core.int buildCounterLogging = 0; |
1041 buildLogging() { | 1060 buildLogging() { |
1042 var o = new api.Logging(); | 1061 var o = new api.Logging(); |
1043 buildCounterLogging++; | 1062 buildCounterLogging++; |
1044 if (buildCounterLogging < 3) { | 1063 if (buildCounterLogging < 3) { |
1045 o.consumerDestinations = buildUnnamed1756(); | 1064 o.consumerDestinations = buildUnnamed1523(); |
1046 o.producerDestinations = buildUnnamed1757(); | 1065 o.producerDestinations = buildUnnamed1524(); |
1047 } | 1066 } |
1048 buildCounterLogging--; | 1067 buildCounterLogging--; |
1049 return o; | 1068 return o; |
1050 } | 1069 } |
1051 | 1070 |
1052 checkLogging(api.Logging o) { | 1071 checkLogging(api.Logging o) { |
1053 buildCounterLogging++; | 1072 buildCounterLogging++; |
1054 if (buildCounterLogging < 3) { | 1073 if (buildCounterLogging < 3) { |
1055 checkUnnamed1756(o.consumerDestinations); | 1074 checkUnnamed1523(o.consumerDestinations); |
1056 checkUnnamed1757(o.producerDestinations); | 1075 checkUnnamed1524(o.producerDestinations); |
1057 } | 1076 } |
1058 buildCounterLogging--; | 1077 buildCounterLogging--; |
1059 } | 1078 } |
1060 | 1079 |
1061 buildUnnamed1758() { | 1080 buildUnnamed1525() { |
1062 var o = new core.List<core.String>(); | 1081 var o = new core.List<core.String>(); |
1063 o.add("foo"); | 1082 o.add("foo"); |
1064 o.add("foo"); | 1083 o.add("foo"); |
1065 return o; | 1084 return o; |
1066 } | 1085 } |
1067 | 1086 |
1068 checkUnnamed1758(core.List<core.String> o) { | 1087 checkUnnamed1525(core.List<core.String> o) { |
1069 unittest.expect(o, unittest.hasLength(2)); | 1088 unittest.expect(o, unittest.hasLength(2)); |
1070 unittest.expect(o[0], unittest.equals('foo')); | 1089 unittest.expect(o[0], unittest.equals('foo')); |
1071 unittest.expect(o[1], unittest.equals('foo')); | 1090 unittest.expect(o[1], unittest.equals('foo')); |
1072 } | 1091 } |
1073 | 1092 |
1074 core.int buildCounterLoggingDestination = 0; | 1093 core.int buildCounterLoggingDestination = 0; |
1075 buildLoggingDestination() { | 1094 buildLoggingDestination() { |
1076 var o = new api.LoggingDestination(); | 1095 var o = new api.LoggingDestination(); |
1077 buildCounterLoggingDestination++; | 1096 buildCounterLoggingDestination++; |
1078 if (buildCounterLoggingDestination < 3) { | 1097 if (buildCounterLoggingDestination < 3) { |
1079 o.logs = buildUnnamed1758(); | 1098 o.logs = buildUnnamed1525(); |
1080 o.monitoredResource = "foo"; | 1099 o.monitoredResource = "foo"; |
1081 } | 1100 } |
1082 buildCounterLoggingDestination--; | 1101 buildCounterLoggingDestination--; |
1083 return o; | 1102 return o; |
1084 } | 1103 } |
1085 | 1104 |
1086 checkLoggingDestination(api.LoggingDestination o) { | 1105 checkLoggingDestination(api.LoggingDestination o) { |
1087 buildCounterLoggingDestination++; | 1106 buildCounterLoggingDestination++; |
1088 if (buildCounterLoggingDestination < 3) { | 1107 if (buildCounterLoggingDestination < 3) { |
1089 checkUnnamed1758(o.logs); | 1108 checkUnnamed1525(o.logs); |
1090 unittest.expect(o.monitoredResource, unittest.equals('foo')); | 1109 unittest.expect(o.monitoredResource, unittest.equals('foo')); |
1091 } | 1110 } |
1092 buildCounterLoggingDestination--; | 1111 buildCounterLoggingDestination--; |
1093 } | 1112 } |
1094 | 1113 |
1095 core.int buildCounterMediaDownload = 0; | 1114 core.int buildCounterMediaDownload = 0; |
1096 buildMediaDownload() { | 1115 buildMediaDownload() { |
1097 var o = new api.MediaDownload(); | 1116 var o = new api.MediaDownload(); |
1098 buildCounterMediaDownload++; | 1117 buildCounterMediaDownload++; |
1099 if (buildCounterMediaDownload < 3) { | 1118 if (buildCounterMediaDownload < 3) { |
| 1119 o.downloadService = "foo"; |
1100 o.enabled = true; | 1120 o.enabled = true; |
1101 } | 1121 } |
1102 buildCounterMediaDownload--; | 1122 buildCounterMediaDownload--; |
1103 return o; | 1123 return o; |
1104 } | 1124 } |
1105 | 1125 |
1106 checkMediaDownload(api.MediaDownload o) { | 1126 checkMediaDownload(api.MediaDownload o) { |
1107 buildCounterMediaDownload++; | 1127 buildCounterMediaDownload++; |
1108 if (buildCounterMediaDownload < 3) { | 1128 if (buildCounterMediaDownload < 3) { |
| 1129 unittest.expect(o.downloadService, unittest.equals('foo')); |
1109 unittest.expect(o.enabled, unittest.isTrue); | 1130 unittest.expect(o.enabled, unittest.isTrue); |
1110 } | 1131 } |
1111 buildCounterMediaDownload--; | 1132 buildCounterMediaDownload--; |
1112 } | 1133 } |
1113 | 1134 |
1114 core.int buildCounterMediaUpload = 0; | 1135 core.int buildCounterMediaUpload = 0; |
1115 buildMediaUpload() { | 1136 buildMediaUpload() { |
1116 var o = new api.MediaUpload(); | 1137 var o = new api.MediaUpload(); |
1117 buildCounterMediaUpload++; | 1138 buildCounterMediaUpload++; |
1118 if (buildCounterMediaUpload < 3) { | 1139 if (buildCounterMediaUpload < 3) { |
1119 o.enabled = true; | 1140 o.enabled = true; |
| 1141 o.uploadService = "foo"; |
1120 } | 1142 } |
1121 buildCounterMediaUpload--; | 1143 buildCounterMediaUpload--; |
1122 return o; | 1144 return o; |
1123 } | 1145 } |
1124 | 1146 |
1125 checkMediaUpload(api.MediaUpload o) { | 1147 checkMediaUpload(api.MediaUpload o) { |
1126 buildCounterMediaUpload++; | 1148 buildCounterMediaUpload++; |
1127 if (buildCounterMediaUpload < 3) { | 1149 if (buildCounterMediaUpload < 3) { |
1128 unittest.expect(o.enabled, unittest.isTrue); | 1150 unittest.expect(o.enabled, unittest.isTrue); |
| 1151 unittest.expect(o.uploadService, unittest.equals('foo')); |
1129 } | 1152 } |
1130 buildCounterMediaUpload--; | 1153 buildCounterMediaUpload--; |
1131 } | 1154 } |
1132 | 1155 |
1133 buildUnnamed1759() { | 1156 buildUnnamed1526() { |
1134 var o = new core.List<api.Option>(); | 1157 var o = new core.List<api.Option>(); |
1135 o.add(buildOption()); | 1158 o.add(buildOption()); |
1136 o.add(buildOption()); | 1159 o.add(buildOption()); |
1137 return o; | 1160 return o; |
1138 } | 1161 } |
1139 | 1162 |
1140 checkUnnamed1759(core.List<api.Option> o) { | 1163 checkUnnamed1526(core.List<api.Option> o) { |
1141 unittest.expect(o, unittest.hasLength(2)); | 1164 unittest.expect(o, unittest.hasLength(2)); |
1142 checkOption(o[0]); | 1165 checkOption(o[0]); |
1143 checkOption(o[1]); | 1166 checkOption(o[1]); |
1144 } | 1167 } |
1145 | 1168 |
1146 core.int buildCounterMethod = 0; | 1169 core.int buildCounterMethod = 0; |
1147 buildMethod() { | 1170 buildMethod() { |
1148 var o = new api.Method(); | 1171 var o = new api.Method(); |
1149 buildCounterMethod++; | 1172 buildCounterMethod++; |
1150 if (buildCounterMethod < 3) { | 1173 if (buildCounterMethod < 3) { |
1151 o.name = "foo"; | 1174 o.name = "foo"; |
1152 o.options = buildUnnamed1759(); | 1175 o.options = buildUnnamed1526(); |
1153 o.requestStreaming = true; | 1176 o.requestStreaming = true; |
1154 o.requestTypeUrl = "foo"; | 1177 o.requestTypeUrl = "foo"; |
1155 o.responseStreaming = true; | 1178 o.responseStreaming = true; |
1156 o.responseTypeUrl = "foo"; | 1179 o.responseTypeUrl = "foo"; |
1157 o.syntax = "foo"; | 1180 o.syntax = "foo"; |
1158 } | 1181 } |
1159 buildCounterMethod--; | 1182 buildCounterMethod--; |
1160 return o; | 1183 return o; |
1161 } | 1184 } |
1162 | 1185 |
1163 checkMethod(api.Method o) { | 1186 checkMethod(api.Method o) { |
1164 buildCounterMethod++; | 1187 buildCounterMethod++; |
1165 if (buildCounterMethod < 3) { | 1188 if (buildCounterMethod < 3) { |
1166 unittest.expect(o.name, unittest.equals('foo')); | 1189 unittest.expect(o.name, unittest.equals('foo')); |
1167 checkUnnamed1759(o.options); | 1190 checkUnnamed1526(o.options); |
1168 unittest.expect(o.requestStreaming, unittest.isTrue); | 1191 unittest.expect(o.requestStreaming, unittest.isTrue); |
1169 unittest.expect(o.requestTypeUrl, unittest.equals('foo')); | 1192 unittest.expect(o.requestTypeUrl, unittest.equals('foo')); |
1170 unittest.expect(o.responseStreaming, unittest.isTrue); | 1193 unittest.expect(o.responseStreaming, unittest.isTrue); |
1171 unittest.expect(o.responseTypeUrl, unittest.equals('foo')); | 1194 unittest.expect(o.responseTypeUrl, unittest.equals('foo')); |
1172 unittest.expect(o.syntax, unittest.equals('foo')); | 1195 unittest.expect(o.syntax, unittest.equals('foo')); |
1173 } | 1196 } |
1174 buildCounterMethod--; | 1197 buildCounterMethod--; |
1175 } | 1198 } |
1176 | 1199 |
1177 buildUnnamed1760() { | 1200 buildUnnamed1527() { |
1178 var o = new core.List<api.LabelDescriptor>(); | 1201 var o = new core.List<api.LabelDescriptor>(); |
1179 o.add(buildLabelDescriptor()); | 1202 o.add(buildLabelDescriptor()); |
1180 o.add(buildLabelDescriptor()); | 1203 o.add(buildLabelDescriptor()); |
1181 return o; | 1204 return o; |
1182 } | 1205 } |
1183 | 1206 |
1184 checkUnnamed1760(core.List<api.LabelDescriptor> o) { | 1207 checkUnnamed1527(core.List<api.LabelDescriptor> o) { |
1185 unittest.expect(o, unittest.hasLength(2)); | 1208 unittest.expect(o, unittest.hasLength(2)); |
1186 checkLabelDescriptor(o[0]); | 1209 checkLabelDescriptor(o[0]); |
1187 checkLabelDescriptor(o[1]); | 1210 checkLabelDescriptor(o[1]); |
1188 } | 1211 } |
1189 | 1212 |
1190 core.int buildCounterMetricDescriptor = 0; | 1213 core.int buildCounterMetricDescriptor = 0; |
1191 buildMetricDescriptor() { | 1214 buildMetricDescriptor() { |
1192 var o = new api.MetricDescriptor(); | 1215 var o = new api.MetricDescriptor(); |
1193 buildCounterMetricDescriptor++; | 1216 buildCounterMetricDescriptor++; |
1194 if (buildCounterMetricDescriptor < 3) { | 1217 if (buildCounterMetricDescriptor < 3) { |
1195 o.description = "foo"; | 1218 o.description = "foo"; |
1196 o.displayName = "foo"; | 1219 o.displayName = "foo"; |
1197 o.labels = buildUnnamed1760(); | 1220 o.labels = buildUnnamed1527(); |
1198 o.metricKind = "foo"; | 1221 o.metricKind = "foo"; |
1199 o.name = "foo"; | 1222 o.name = "foo"; |
1200 o.type = "foo"; | 1223 o.type = "foo"; |
1201 o.unit = "foo"; | 1224 o.unit = "foo"; |
1202 o.valueType = "foo"; | 1225 o.valueType = "foo"; |
1203 } | 1226 } |
1204 buildCounterMetricDescriptor--; | 1227 buildCounterMetricDescriptor--; |
1205 return o; | 1228 return o; |
1206 } | 1229 } |
1207 | 1230 |
1208 checkMetricDescriptor(api.MetricDescriptor o) { | 1231 checkMetricDescriptor(api.MetricDescriptor o) { |
1209 buildCounterMetricDescriptor++; | 1232 buildCounterMetricDescriptor++; |
1210 if (buildCounterMetricDescriptor < 3) { | 1233 if (buildCounterMetricDescriptor < 3) { |
1211 unittest.expect(o.description, unittest.equals('foo')); | 1234 unittest.expect(o.description, unittest.equals('foo')); |
1212 unittest.expect(o.displayName, unittest.equals('foo')); | 1235 unittest.expect(o.displayName, unittest.equals('foo')); |
1213 checkUnnamed1760(o.labels); | 1236 checkUnnamed1527(o.labels); |
1214 unittest.expect(o.metricKind, unittest.equals('foo')); | 1237 unittest.expect(o.metricKind, unittest.equals('foo')); |
1215 unittest.expect(o.name, unittest.equals('foo')); | 1238 unittest.expect(o.name, unittest.equals('foo')); |
1216 unittest.expect(o.type, unittest.equals('foo')); | 1239 unittest.expect(o.type, unittest.equals('foo')); |
1217 unittest.expect(o.unit, unittest.equals('foo')); | 1240 unittest.expect(o.unit, unittest.equals('foo')); |
1218 unittest.expect(o.valueType, unittest.equals('foo')); | 1241 unittest.expect(o.valueType, unittest.equals('foo')); |
1219 } | 1242 } |
1220 buildCounterMetricDescriptor--; | 1243 buildCounterMetricDescriptor--; |
1221 } | 1244 } |
1222 | 1245 |
1223 core.int buildCounterMixin = 0; | 1246 core.int buildCounterMixin = 0; |
(...skipping 10 matching lines...) Expand all Loading... |
1234 | 1257 |
1235 checkMixin(api.Mixin o) { | 1258 checkMixin(api.Mixin o) { |
1236 buildCounterMixin++; | 1259 buildCounterMixin++; |
1237 if (buildCounterMixin < 3) { | 1260 if (buildCounterMixin < 3) { |
1238 unittest.expect(o.name, unittest.equals('foo')); | 1261 unittest.expect(o.name, unittest.equals('foo')); |
1239 unittest.expect(o.root, unittest.equals('foo')); | 1262 unittest.expect(o.root, unittest.equals('foo')); |
1240 } | 1263 } |
1241 buildCounterMixin--; | 1264 buildCounterMixin--; |
1242 } | 1265 } |
1243 | 1266 |
1244 buildUnnamed1761() { | 1267 buildUnnamed1528() { |
1245 var o = new core.List<api.LabelDescriptor>(); | 1268 var o = new core.List<api.LabelDescriptor>(); |
1246 o.add(buildLabelDescriptor()); | 1269 o.add(buildLabelDescriptor()); |
1247 o.add(buildLabelDescriptor()); | 1270 o.add(buildLabelDescriptor()); |
1248 return o; | 1271 return o; |
1249 } | 1272 } |
1250 | 1273 |
1251 checkUnnamed1761(core.List<api.LabelDescriptor> o) { | 1274 checkUnnamed1528(core.List<api.LabelDescriptor> o) { |
1252 unittest.expect(o, unittest.hasLength(2)); | 1275 unittest.expect(o, unittest.hasLength(2)); |
1253 checkLabelDescriptor(o[0]); | 1276 checkLabelDescriptor(o[0]); |
1254 checkLabelDescriptor(o[1]); | 1277 checkLabelDescriptor(o[1]); |
1255 } | 1278 } |
1256 | 1279 |
1257 core.int buildCounterMonitoredResourceDescriptor = 0; | 1280 core.int buildCounterMonitoredResourceDescriptor = 0; |
1258 buildMonitoredResourceDescriptor() { | 1281 buildMonitoredResourceDescriptor() { |
1259 var o = new api.MonitoredResourceDescriptor(); | 1282 var o = new api.MonitoredResourceDescriptor(); |
1260 buildCounterMonitoredResourceDescriptor++; | 1283 buildCounterMonitoredResourceDescriptor++; |
1261 if (buildCounterMonitoredResourceDescriptor < 3) { | 1284 if (buildCounterMonitoredResourceDescriptor < 3) { |
1262 o.description = "foo"; | 1285 o.description = "foo"; |
1263 o.displayName = "foo"; | 1286 o.displayName = "foo"; |
1264 o.labels = buildUnnamed1761(); | 1287 o.labels = buildUnnamed1528(); |
1265 o.name = "foo"; | 1288 o.name = "foo"; |
1266 o.type = "foo"; | 1289 o.type = "foo"; |
1267 } | 1290 } |
1268 buildCounterMonitoredResourceDescriptor--; | 1291 buildCounterMonitoredResourceDescriptor--; |
1269 return o; | 1292 return o; |
1270 } | 1293 } |
1271 | 1294 |
1272 checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) { | 1295 checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) { |
1273 buildCounterMonitoredResourceDescriptor++; | 1296 buildCounterMonitoredResourceDescriptor++; |
1274 if (buildCounterMonitoredResourceDescriptor < 3) { | 1297 if (buildCounterMonitoredResourceDescriptor < 3) { |
1275 unittest.expect(o.description, unittest.equals('foo')); | 1298 unittest.expect(o.description, unittest.equals('foo')); |
1276 unittest.expect(o.displayName, unittest.equals('foo')); | 1299 unittest.expect(o.displayName, unittest.equals('foo')); |
1277 checkUnnamed1761(o.labels); | 1300 checkUnnamed1528(o.labels); |
1278 unittest.expect(o.name, unittest.equals('foo')); | 1301 unittest.expect(o.name, unittest.equals('foo')); |
1279 unittest.expect(o.type, unittest.equals('foo')); | 1302 unittest.expect(o.type, unittest.equals('foo')); |
1280 } | 1303 } |
1281 buildCounterMonitoredResourceDescriptor--; | 1304 buildCounterMonitoredResourceDescriptor--; |
1282 } | 1305 } |
1283 | 1306 |
1284 buildUnnamed1762() { | 1307 buildUnnamed1529() { |
1285 var o = new core.List<api.MonitoringDestination>(); | 1308 var o = new core.List<api.MonitoringDestination>(); |
1286 o.add(buildMonitoringDestination()); | 1309 o.add(buildMonitoringDestination()); |
1287 o.add(buildMonitoringDestination()); | 1310 o.add(buildMonitoringDestination()); |
1288 return o; | 1311 return o; |
1289 } | 1312 } |
1290 | 1313 |
1291 checkUnnamed1762(core.List<api.MonitoringDestination> o) { | 1314 checkUnnamed1529(core.List<api.MonitoringDestination> o) { |
1292 unittest.expect(o, unittest.hasLength(2)); | 1315 unittest.expect(o, unittest.hasLength(2)); |
1293 checkMonitoringDestination(o[0]); | 1316 checkMonitoringDestination(o[0]); |
1294 checkMonitoringDestination(o[1]); | 1317 checkMonitoringDestination(o[1]); |
1295 } | 1318 } |
1296 | 1319 |
1297 buildUnnamed1763() { | 1320 buildUnnamed1530() { |
1298 var o = new core.List<api.MonitoringDestination>(); | 1321 var o = new core.List<api.MonitoringDestination>(); |
1299 o.add(buildMonitoringDestination()); | 1322 o.add(buildMonitoringDestination()); |
1300 o.add(buildMonitoringDestination()); | 1323 o.add(buildMonitoringDestination()); |
1301 return o; | 1324 return o; |
1302 } | 1325 } |
1303 | 1326 |
1304 checkUnnamed1763(core.List<api.MonitoringDestination> o) { | 1327 checkUnnamed1530(core.List<api.MonitoringDestination> o) { |
1305 unittest.expect(o, unittest.hasLength(2)); | 1328 unittest.expect(o, unittest.hasLength(2)); |
1306 checkMonitoringDestination(o[0]); | 1329 checkMonitoringDestination(o[0]); |
1307 checkMonitoringDestination(o[1]); | 1330 checkMonitoringDestination(o[1]); |
1308 } | 1331 } |
1309 | 1332 |
1310 core.int buildCounterMonitoring = 0; | 1333 core.int buildCounterMonitoring = 0; |
1311 buildMonitoring() { | 1334 buildMonitoring() { |
1312 var o = new api.Monitoring(); | 1335 var o = new api.Monitoring(); |
1313 buildCounterMonitoring++; | 1336 buildCounterMonitoring++; |
1314 if (buildCounterMonitoring < 3) { | 1337 if (buildCounterMonitoring < 3) { |
1315 o.consumerDestinations = buildUnnamed1762(); | 1338 o.consumerDestinations = buildUnnamed1529(); |
1316 o.producerDestinations = buildUnnamed1763(); | 1339 o.producerDestinations = buildUnnamed1530(); |
1317 } | 1340 } |
1318 buildCounterMonitoring--; | 1341 buildCounterMonitoring--; |
1319 return o; | 1342 return o; |
1320 } | 1343 } |
1321 | 1344 |
1322 checkMonitoring(api.Monitoring o) { | 1345 checkMonitoring(api.Monitoring o) { |
1323 buildCounterMonitoring++; | 1346 buildCounterMonitoring++; |
1324 if (buildCounterMonitoring < 3) { | 1347 if (buildCounterMonitoring < 3) { |
1325 checkUnnamed1762(o.consumerDestinations); | 1348 checkUnnamed1529(o.consumerDestinations); |
1326 checkUnnamed1763(o.producerDestinations); | 1349 checkUnnamed1530(o.producerDestinations); |
1327 } | 1350 } |
1328 buildCounterMonitoring--; | 1351 buildCounterMonitoring--; |
1329 } | 1352 } |
1330 | 1353 |
1331 buildUnnamed1764() { | 1354 buildUnnamed1531() { |
1332 var o = new core.List<core.String>(); | 1355 var o = new core.List<core.String>(); |
1333 o.add("foo"); | 1356 o.add("foo"); |
1334 o.add("foo"); | 1357 o.add("foo"); |
1335 return o; | 1358 return o; |
1336 } | 1359 } |
1337 | 1360 |
1338 checkUnnamed1764(core.List<core.String> o) { | 1361 checkUnnamed1531(core.List<core.String> o) { |
1339 unittest.expect(o, unittest.hasLength(2)); | 1362 unittest.expect(o, unittest.hasLength(2)); |
1340 unittest.expect(o[0], unittest.equals('foo')); | 1363 unittest.expect(o[0], unittest.equals('foo')); |
1341 unittest.expect(o[1], unittest.equals('foo')); | 1364 unittest.expect(o[1], unittest.equals('foo')); |
1342 } | 1365 } |
1343 | 1366 |
1344 core.int buildCounterMonitoringDestination = 0; | 1367 core.int buildCounterMonitoringDestination = 0; |
1345 buildMonitoringDestination() { | 1368 buildMonitoringDestination() { |
1346 var o = new api.MonitoringDestination(); | 1369 var o = new api.MonitoringDestination(); |
1347 buildCounterMonitoringDestination++; | 1370 buildCounterMonitoringDestination++; |
1348 if (buildCounterMonitoringDestination < 3) { | 1371 if (buildCounterMonitoringDestination < 3) { |
1349 o.metrics = buildUnnamed1764(); | 1372 o.metrics = buildUnnamed1531(); |
1350 o.monitoredResource = "foo"; | 1373 o.monitoredResource = "foo"; |
1351 } | 1374 } |
1352 buildCounterMonitoringDestination--; | 1375 buildCounterMonitoringDestination--; |
1353 return o; | 1376 return o; |
1354 } | 1377 } |
1355 | 1378 |
1356 checkMonitoringDestination(api.MonitoringDestination o) { | 1379 checkMonitoringDestination(api.MonitoringDestination o) { |
1357 buildCounterMonitoringDestination++; | 1380 buildCounterMonitoringDestination++; |
1358 if (buildCounterMonitoringDestination < 3) { | 1381 if (buildCounterMonitoringDestination < 3) { |
1359 checkUnnamed1764(o.metrics); | 1382 checkUnnamed1531(o.metrics); |
1360 unittest.expect(o.monitoredResource, unittest.equals('foo')); | 1383 unittest.expect(o.monitoredResource, unittest.equals('foo')); |
1361 } | 1384 } |
1362 buildCounterMonitoringDestination--; | 1385 buildCounterMonitoringDestination--; |
1363 } | 1386 } |
1364 | 1387 |
1365 core.int buildCounterOAuthRequirements = 0; | 1388 core.int buildCounterOAuthRequirements = 0; |
1366 buildOAuthRequirements() { | 1389 buildOAuthRequirements() { |
1367 var o = new api.OAuthRequirements(); | 1390 var o = new api.OAuthRequirements(); |
1368 buildCounterOAuthRequirements++; | 1391 buildCounterOAuthRequirements++; |
1369 if (buildCounterOAuthRequirements < 3) { | 1392 if (buildCounterOAuthRequirements < 3) { |
1370 o.canonicalScopes = "foo"; | 1393 o.canonicalScopes = "foo"; |
1371 } | 1394 } |
1372 buildCounterOAuthRequirements--; | 1395 buildCounterOAuthRequirements--; |
1373 return o; | 1396 return o; |
1374 } | 1397 } |
1375 | 1398 |
1376 checkOAuthRequirements(api.OAuthRequirements o) { | 1399 checkOAuthRequirements(api.OAuthRequirements o) { |
1377 buildCounterOAuthRequirements++; | 1400 buildCounterOAuthRequirements++; |
1378 if (buildCounterOAuthRequirements < 3) { | 1401 if (buildCounterOAuthRequirements < 3) { |
1379 unittest.expect(o.canonicalScopes, unittest.equals('foo')); | 1402 unittest.expect(o.canonicalScopes, unittest.equals('foo')); |
1380 } | 1403 } |
1381 buildCounterOAuthRequirements--; | 1404 buildCounterOAuthRequirements--; |
1382 } | 1405 } |
1383 | 1406 |
1384 buildUnnamed1765() { | 1407 buildUnnamed1532() { |
1385 var o = new core.Map<core.String, core.Object>(); | 1408 var o = new core.Map<core.String, core.Object>(); |
1386 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1409 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1387 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1410 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1388 return o; | 1411 return o; |
1389 } | 1412 } |
1390 | 1413 |
1391 checkUnnamed1765(core.Map<core.String, core.Object> o) { | 1414 checkUnnamed1532(core.Map<core.String, core.Object> o) { |
1392 unittest.expect(o, unittest.hasLength(2)); | 1415 unittest.expect(o, unittest.hasLength(2)); |
1393 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')); | 1416 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); |
1394 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')); | 1417 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt
h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"],
unittest.equals('foo')); |
1395 } | 1418 } |
1396 | 1419 |
1397 buildUnnamed1766() { | 1420 buildUnnamed1533() { |
1398 var o = new core.Map<core.String, core.Object>(); | 1421 var o = new core.Map<core.String, core.Object>(); |
1399 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1422 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1400 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1423 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1401 return o; | 1424 return o; |
1402 } | 1425 } |
1403 | 1426 |
1404 checkUnnamed1766(core.Map<core.String, core.Object> o) { | 1427 checkUnnamed1533(core.Map<core.String, core.Object> o) { |
1405 unittest.expect(o, unittest.hasLength(2)); | 1428 unittest.expect(o, unittest.hasLength(2)); |
1406 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')); | 1429 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); |
1407 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')); | 1430 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); |
1408 } | 1431 } |
1409 | 1432 |
1410 core.int buildCounterOperation = 0; | 1433 core.int buildCounterOperation = 0; |
1411 buildOperation() { | 1434 buildOperation() { |
1412 var o = new api.Operation(); | 1435 var o = new api.Operation(); |
1413 buildCounterOperation++; | 1436 buildCounterOperation++; |
1414 if (buildCounterOperation < 3) { | 1437 if (buildCounterOperation < 3) { |
1415 o.done = true; | 1438 o.done = true; |
1416 o.error = buildStatus(); | 1439 o.error = buildStatus(); |
1417 o.metadata = buildUnnamed1765(); | 1440 o.metadata = buildUnnamed1532(); |
1418 o.name = "foo"; | 1441 o.name = "foo"; |
1419 o.response = buildUnnamed1766(); | 1442 o.response = buildUnnamed1533(); |
1420 } | 1443 } |
1421 buildCounterOperation--; | 1444 buildCounterOperation--; |
1422 return o; | 1445 return o; |
1423 } | 1446 } |
1424 | 1447 |
1425 checkOperation(api.Operation o) { | 1448 checkOperation(api.Operation o) { |
1426 buildCounterOperation++; | 1449 buildCounterOperation++; |
1427 if (buildCounterOperation < 3) { | 1450 if (buildCounterOperation < 3) { |
1428 unittest.expect(o.done, unittest.isTrue); | 1451 unittest.expect(o.done, unittest.isTrue); |
1429 checkStatus(o.error); | 1452 checkStatus(o.error); |
1430 checkUnnamed1765(o.metadata); | 1453 checkUnnamed1532(o.metadata); |
1431 unittest.expect(o.name, unittest.equals('foo')); | 1454 unittest.expect(o.name, unittest.equals('foo')); |
1432 checkUnnamed1766(o.response); | 1455 checkUnnamed1533(o.response); |
1433 } | 1456 } |
1434 buildCounterOperation--; | 1457 buildCounterOperation--; |
1435 } | 1458 } |
1436 | 1459 |
1437 buildUnnamed1767() { | 1460 buildUnnamed1534() { |
1438 var o = new core.Map<core.String, core.Object>(); | 1461 var o = new core.Map<core.String, core.Object>(); |
1439 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1462 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1440 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1463 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1441 return o; | 1464 return o; |
1442 } | 1465 } |
1443 | 1466 |
1444 checkUnnamed1767(core.Map<core.String, core.Object> o) { | 1467 checkUnnamed1534(core.Map<core.String, core.Object> o) { |
1445 unittest.expect(o, unittest.hasLength(2)); | 1468 unittest.expect(o, unittest.hasLength(2)); |
1446 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')); | 1469 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')); |
1447 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')); | 1470 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')); |
1448 } | 1471 } |
1449 | 1472 |
1450 core.int buildCounterOption = 0; | 1473 core.int buildCounterOption = 0; |
1451 buildOption() { | 1474 buildOption() { |
1452 var o = new api.Option(); | 1475 var o = new api.Option(); |
1453 buildCounterOption++; | 1476 buildCounterOption++; |
1454 if (buildCounterOption < 3) { | 1477 if (buildCounterOption < 3) { |
1455 o.name = "foo"; | 1478 o.name = "foo"; |
1456 o.value = buildUnnamed1767(); | 1479 o.value = buildUnnamed1534(); |
1457 } | 1480 } |
1458 buildCounterOption--; | 1481 buildCounterOption--; |
1459 return o; | 1482 return o; |
1460 } | 1483 } |
1461 | 1484 |
1462 checkOption(api.Option o) { | 1485 checkOption(api.Option o) { |
1463 buildCounterOption++; | 1486 buildCounterOption++; |
1464 if (buildCounterOption < 3) { | 1487 if (buildCounterOption < 3) { |
1465 unittest.expect(o.name, unittest.equals('foo')); | 1488 unittest.expect(o.name, unittest.equals('foo')); |
1466 checkUnnamed1767(o.value); | 1489 checkUnnamed1534(o.value); |
1467 } | 1490 } |
1468 buildCounterOption--; | 1491 buildCounterOption--; |
1469 } | 1492 } |
1470 | 1493 |
1471 buildUnnamed1768() { | 1494 buildUnnamed1535() { |
1472 var o = new core.List<api.Page>(); | 1495 var o = new core.List<api.Page>(); |
1473 o.add(buildPage()); | 1496 o.add(buildPage()); |
1474 o.add(buildPage()); | 1497 o.add(buildPage()); |
1475 return o; | 1498 return o; |
1476 } | 1499 } |
1477 | 1500 |
1478 checkUnnamed1768(core.List<api.Page> o) { | 1501 checkUnnamed1535(core.List<api.Page> o) { |
1479 unittest.expect(o, unittest.hasLength(2)); | 1502 unittest.expect(o, unittest.hasLength(2)); |
1480 checkPage(o[0]); | 1503 checkPage(o[0]); |
1481 checkPage(o[1]); | 1504 checkPage(o[1]); |
1482 } | 1505 } |
1483 | 1506 |
1484 core.int buildCounterPage = 0; | 1507 core.int buildCounterPage = 0; |
1485 buildPage() { | 1508 buildPage() { |
1486 var o = new api.Page(); | 1509 var o = new api.Page(); |
1487 buildCounterPage++; | 1510 buildCounterPage++; |
1488 if (buildCounterPage < 3) { | 1511 if (buildCounterPage < 3) { |
1489 o.content = "foo"; | 1512 o.content = "foo"; |
1490 o.name = "foo"; | 1513 o.name = "foo"; |
1491 o.subpages = buildUnnamed1768(); | 1514 o.subpages = buildUnnamed1535(); |
1492 } | 1515 } |
1493 buildCounterPage--; | 1516 buildCounterPage--; |
1494 return o; | 1517 return o; |
1495 } | 1518 } |
1496 | 1519 |
1497 checkPage(api.Page o) { | 1520 checkPage(api.Page o) { |
1498 buildCounterPage++; | 1521 buildCounterPage++; |
1499 if (buildCounterPage < 3) { | 1522 if (buildCounterPage < 3) { |
1500 unittest.expect(o.content, unittest.equals('foo')); | 1523 unittest.expect(o.content, unittest.equals('foo')); |
1501 unittest.expect(o.name, unittest.equals('foo')); | 1524 unittest.expect(o.name, unittest.equals('foo')); |
1502 checkUnnamed1768(o.subpages); | 1525 checkUnnamed1535(o.subpages); |
1503 } | 1526 } |
1504 buildCounterPage--; | 1527 buildCounterPage--; |
1505 } | 1528 } |
1506 | 1529 |
1507 buildUnnamed1769() { | 1530 core.int buildCounterPublishedService = 0; |
| 1531 buildPublishedService() { |
| 1532 var o = new api.PublishedService(); |
| 1533 buildCounterPublishedService++; |
| 1534 if (buildCounterPublishedService < 3) { |
| 1535 o.name = "foo"; |
| 1536 o.service = buildService(); |
| 1537 } |
| 1538 buildCounterPublishedService--; |
| 1539 return o; |
| 1540 } |
| 1541 |
| 1542 checkPublishedService(api.PublishedService o) { |
| 1543 buildCounterPublishedService++; |
| 1544 if (buildCounterPublishedService < 3) { |
| 1545 unittest.expect(o.name, unittest.equals('foo')); |
| 1546 checkService(o.service); |
| 1547 } |
| 1548 buildCounterPublishedService--; |
| 1549 } |
| 1550 |
| 1551 buildUnnamed1536() { |
| 1552 var o = new core.List<api.PublishedService>(); |
| 1553 o.add(buildPublishedService()); |
| 1554 o.add(buildPublishedService()); |
| 1555 return o; |
| 1556 } |
| 1557 |
| 1558 checkUnnamed1536(core.List<api.PublishedService> o) { |
| 1559 unittest.expect(o, unittest.hasLength(2)); |
| 1560 checkPublishedService(o[0]); |
| 1561 checkPublishedService(o[1]); |
| 1562 } |
| 1563 |
| 1564 core.int buildCounterSearchServicesResponse = 0; |
| 1565 buildSearchServicesResponse() { |
| 1566 var o = new api.SearchServicesResponse(); |
| 1567 buildCounterSearchServicesResponse++; |
| 1568 if (buildCounterSearchServicesResponse < 3) { |
| 1569 o.nextPageToken = "foo"; |
| 1570 o.services = buildUnnamed1536(); |
| 1571 } |
| 1572 buildCounterSearchServicesResponse--; |
| 1573 return o; |
| 1574 } |
| 1575 |
| 1576 checkSearchServicesResponse(api.SearchServicesResponse o) { |
| 1577 buildCounterSearchServicesResponse++; |
| 1578 if (buildCounterSearchServicesResponse < 3) { |
| 1579 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1580 checkUnnamed1536(o.services); |
| 1581 } |
| 1582 buildCounterSearchServicesResponse--; |
| 1583 } |
| 1584 |
| 1585 buildUnnamed1537() { |
1508 var o = new core.List<api.Api>(); | 1586 var o = new core.List<api.Api>(); |
1509 o.add(buildApi()); | 1587 o.add(buildApi()); |
1510 o.add(buildApi()); | 1588 o.add(buildApi()); |
1511 return o; | 1589 return o; |
1512 } | 1590 } |
1513 | 1591 |
1514 checkUnnamed1769(core.List<api.Api> o) { | 1592 checkUnnamed1537(core.List<api.Api> o) { |
1515 unittest.expect(o, unittest.hasLength(2)); | 1593 unittest.expect(o, unittest.hasLength(2)); |
1516 checkApi(o[0]); | 1594 checkApi(o[0]); |
1517 checkApi(o[1]); | 1595 checkApi(o[1]); |
1518 } | 1596 } |
1519 | 1597 |
1520 buildUnnamed1770() { | 1598 buildUnnamed1538() { |
1521 var o = new core.List<api.Endpoint>(); | 1599 var o = new core.List<api.Endpoint>(); |
1522 o.add(buildEndpoint()); | 1600 o.add(buildEndpoint()); |
1523 o.add(buildEndpoint()); | 1601 o.add(buildEndpoint()); |
1524 return o; | 1602 return o; |
1525 } | 1603 } |
1526 | 1604 |
1527 checkUnnamed1770(core.List<api.Endpoint> o) { | 1605 checkUnnamed1538(core.List<api.Endpoint> o) { |
1528 unittest.expect(o, unittest.hasLength(2)); | 1606 unittest.expect(o, unittest.hasLength(2)); |
1529 checkEndpoint(o[0]); | 1607 checkEndpoint(o[0]); |
1530 checkEndpoint(o[1]); | 1608 checkEndpoint(o[1]); |
1531 } | 1609 } |
1532 | 1610 |
1533 buildUnnamed1771() { | 1611 buildUnnamed1539() { |
1534 var o = new core.List<api.Enum>(); | 1612 var o = new core.List<api.Enum>(); |
1535 o.add(buildEnum()); | 1613 o.add(buildEnum()); |
1536 o.add(buildEnum()); | 1614 o.add(buildEnum()); |
1537 return o; | 1615 return o; |
1538 } | 1616 } |
1539 | 1617 |
1540 checkUnnamed1771(core.List<api.Enum> o) { | 1618 checkUnnamed1539(core.List<api.Enum> o) { |
1541 unittest.expect(o, unittest.hasLength(2)); | 1619 unittest.expect(o, unittest.hasLength(2)); |
1542 checkEnum(o[0]); | 1620 checkEnum(o[0]); |
1543 checkEnum(o[1]); | 1621 checkEnum(o[1]); |
1544 } | 1622 } |
1545 | 1623 |
1546 buildUnnamed1772() { | 1624 buildUnnamed1540() { |
1547 var o = new core.List<api.LogDescriptor>(); | 1625 var o = new core.List<api.LogDescriptor>(); |
1548 o.add(buildLogDescriptor()); | 1626 o.add(buildLogDescriptor()); |
1549 o.add(buildLogDescriptor()); | 1627 o.add(buildLogDescriptor()); |
1550 return o; | 1628 return o; |
1551 } | 1629 } |
1552 | 1630 |
1553 checkUnnamed1772(core.List<api.LogDescriptor> o) { | 1631 checkUnnamed1540(core.List<api.LogDescriptor> o) { |
1554 unittest.expect(o, unittest.hasLength(2)); | 1632 unittest.expect(o, unittest.hasLength(2)); |
1555 checkLogDescriptor(o[0]); | 1633 checkLogDescriptor(o[0]); |
1556 checkLogDescriptor(o[1]); | 1634 checkLogDescriptor(o[1]); |
1557 } | 1635 } |
1558 | 1636 |
1559 buildUnnamed1773() { | 1637 buildUnnamed1541() { |
1560 var o = new core.List<api.MetricDescriptor>(); | 1638 var o = new core.List<api.MetricDescriptor>(); |
1561 o.add(buildMetricDescriptor()); | 1639 o.add(buildMetricDescriptor()); |
1562 o.add(buildMetricDescriptor()); | 1640 o.add(buildMetricDescriptor()); |
1563 return o; | 1641 return o; |
1564 } | 1642 } |
1565 | 1643 |
1566 checkUnnamed1773(core.List<api.MetricDescriptor> o) { | 1644 checkUnnamed1541(core.List<api.MetricDescriptor> o) { |
1567 unittest.expect(o, unittest.hasLength(2)); | 1645 unittest.expect(o, unittest.hasLength(2)); |
1568 checkMetricDescriptor(o[0]); | 1646 checkMetricDescriptor(o[0]); |
1569 checkMetricDescriptor(o[1]); | 1647 checkMetricDescriptor(o[1]); |
1570 } | 1648 } |
1571 | 1649 |
1572 buildUnnamed1774() { | 1650 buildUnnamed1542() { |
1573 var o = new core.List<api.MonitoredResourceDescriptor>(); | 1651 var o = new core.List<api.MonitoredResourceDescriptor>(); |
1574 o.add(buildMonitoredResourceDescriptor()); | 1652 o.add(buildMonitoredResourceDescriptor()); |
1575 o.add(buildMonitoredResourceDescriptor()); | 1653 o.add(buildMonitoredResourceDescriptor()); |
1576 return o; | 1654 return o; |
1577 } | 1655 } |
1578 | 1656 |
1579 checkUnnamed1774(core.List<api.MonitoredResourceDescriptor> o) { | 1657 checkUnnamed1542(core.List<api.MonitoredResourceDescriptor> o) { |
1580 unittest.expect(o, unittest.hasLength(2)); | 1658 unittest.expect(o, unittest.hasLength(2)); |
1581 checkMonitoredResourceDescriptor(o[0]); | 1659 checkMonitoredResourceDescriptor(o[0]); |
1582 checkMonitoredResourceDescriptor(o[1]); | 1660 checkMonitoredResourceDescriptor(o[1]); |
1583 } | 1661 } |
1584 | 1662 |
1585 buildUnnamed1775() { | 1663 buildUnnamed1543() { |
1586 var o = new core.List<api.Type>(); | 1664 var o = new core.List<api.Type>(); |
1587 o.add(buildType()); | 1665 o.add(buildType()); |
1588 o.add(buildType()); | 1666 o.add(buildType()); |
1589 return o; | 1667 return o; |
1590 } | 1668 } |
1591 | 1669 |
1592 checkUnnamed1775(core.List<api.Type> o) { | 1670 checkUnnamed1543(core.List<api.Type> o) { |
1593 unittest.expect(o, unittest.hasLength(2)); | 1671 unittest.expect(o, unittest.hasLength(2)); |
1594 checkType(o[0]); | 1672 checkType(o[0]); |
1595 checkType(o[1]); | 1673 checkType(o[1]); |
1596 } | 1674 } |
1597 | 1675 |
1598 buildUnnamed1776() { | 1676 buildUnnamed1544() { |
1599 var o = new core.List<api.Type>(); | 1677 var o = new core.List<api.Type>(); |
1600 o.add(buildType()); | 1678 o.add(buildType()); |
1601 o.add(buildType()); | 1679 o.add(buildType()); |
1602 return o; | 1680 return o; |
1603 } | 1681 } |
1604 | 1682 |
1605 checkUnnamed1776(core.List<api.Type> o) { | 1683 checkUnnamed1544(core.List<api.Type> o) { |
1606 unittest.expect(o, unittest.hasLength(2)); | 1684 unittest.expect(o, unittest.hasLength(2)); |
1607 checkType(o[0]); | 1685 checkType(o[0]); |
1608 checkType(o[1]); | 1686 checkType(o[1]); |
1609 } | 1687 } |
1610 | 1688 |
1611 core.int buildCounterService = 0; | 1689 core.int buildCounterService = 0; |
1612 buildService() { | 1690 buildService() { |
1613 var o = new api.Service(); | 1691 var o = new api.Service(); |
1614 buildCounterService++; | 1692 buildCounterService++; |
1615 if (buildCounterService < 3) { | 1693 if (buildCounterService < 3) { |
1616 o.apis = buildUnnamed1769(); | 1694 o.apis = buildUnnamed1537(); |
1617 o.authentication = buildAuthentication(); | 1695 o.authentication = buildAuthentication(); |
1618 o.backend = buildBackend(); | 1696 o.backend = buildBackend(); |
1619 o.configVersion = 42; | 1697 o.configVersion = 42; |
1620 o.context = buildContext(); | 1698 o.context = buildContext(); |
1621 o.control = buildControl(); | 1699 o.control = buildControl(); |
1622 o.customError = buildCustomError(); | 1700 o.customError = buildCustomError(); |
1623 o.documentation = buildDocumentation(); | 1701 o.documentation = buildDocumentation(); |
1624 o.endpoints = buildUnnamed1770(); | 1702 o.endpoints = buildUnnamed1538(); |
1625 o.enums = buildUnnamed1771(); | 1703 o.enums = buildUnnamed1539(); |
| 1704 o.experimental = buildExperimental(); |
1626 o.http = buildHttp(); | 1705 o.http = buildHttp(); |
1627 o.id = "foo"; | 1706 o.id = "foo"; |
1628 o.logging = buildLogging(); | 1707 o.logging = buildLogging(); |
1629 o.logs = buildUnnamed1772(); | 1708 o.logs = buildUnnamed1540(); |
1630 o.metrics = buildUnnamed1773(); | 1709 o.metrics = buildUnnamed1541(); |
1631 o.monitoredResources = buildUnnamed1774(); | 1710 o.monitoredResources = buildUnnamed1542(); |
1632 o.monitoring = buildMonitoring(); | 1711 o.monitoring = buildMonitoring(); |
1633 o.name = "foo"; | 1712 o.name = "foo"; |
1634 o.producerProjectId = "foo"; | 1713 o.producerProjectId = "foo"; |
1635 o.systemParameters = buildSystemParameters(); | 1714 o.systemParameters = buildSystemParameters(); |
1636 o.systemTypes = buildUnnamed1775(); | 1715 o.systemTypes = buildUnnamed1543(); |
1637 o.title = "foo"; | 1716 o.title = "foo"; |
1638 o.types = buildUnnamed1776(); | 1717 o.types = buildUnnamed1544(); |
1639 o.usage = buildUsage(); | 1718 o.usage = buildUsage(); |
1640 o.visibility = buildVisibility(); | 1719 o.visibility = buildVisibility(); |
1641 } | 1720 } |
1642 buildCounterService--; | 1721 buildCounterService--; |
1643 return o; | 1722 return o; |
1644 } | 1723 } |
1645 | 1724 |
1646 checkService(api.Service o) { | 1725 checkService(api.Service o) { |
1647 buildCounterService++; | 1726 buildCounterService++; |
1648 if (buildCounterService < 3) { | 1727 if (buildCounterService < 3) { |
1649 checkUnnamed1769(o.apis); | 1728 checkUnnamed1537(o.apis); |
1650 checkAuthentication(o.authentication); | 1729 checkAuthentication(o.authentication); |
1651 checkBackend(o.backend); | 1730 checkBackend(o.backend); |
1652 unittest.expect(o.configVersion, unittest.equals(42)); | 1731 unittest.expect(o.configVersion, unittest.equals(42)); |
1653 checkContext(o.context); | 1732 checkContext(o.context); |
1654 checkControl(o.control); | 1733 checkControl(o.control); |
1655 checkCustomError(o.customError); | 1734 checkCustomError(o.customError); |
1656 checkDocumentation(o.documentation); | 1735 checkDocumentation(o.documentation); |
1657 checkUnnamed1770(o.endpoints); | 1736 checkUnnamed1538(o.endpoints); |
1658 checkUnnamed1771(o.enums); | 1737 checkUnnamed1539(o.enums); |
| 1738 checkExperimental(o.experimental); |
1659 checkHttp(o.http); | 1739 checkHttp(o.http); |
1660 unittest.expect(o.id, unittest.equals('foo')); | 1740 unittest.expect(o.id, unittest.equals('foo')); |
1661 checkLogging(o.logging); | 1741 checkLogging(o.logging); |
1662 checkUnnamed1772(o.logs); | 1742 checkUnnamed1540(o.logs); |
1663 checkUnnamed1773(o.metrics); | 1743 checkUnnamed1541(o.metrics); |
1664 checkUnnamed1774(o.monitoredResources); | 1744 checkUnnamed1542(o.monitoredResources); |
1665 checkMonitoring(o.monitoring); | 1745 checkMonitoring(o.monitoring); |
1666 unittest.expect(o.name, unittest.equals('foo')); | 1746 unittest.expect(o.name, unittest.equals('foo')); |
1667 unittest.expect(o.producerProjectId, unittest.equals('foo')); | 1747 unittest.expect(o.producerProjectId, unittest.equals('foo')); |
1668 checkSystemParameters(o.systemParameters); | 1748 checkSystemParameters(o.systemParameters); |
1669 checkUnnamed1775(o.systemTypes); | 1749 checkUnnamed1543(o.systemTypes); |
1670 unittest.expect(o.title, unittest.equals('foo')); | 1750 unittest.expect(o.title, unittest.equals('foo')); |
1671 checkUnnamed1776(o.types); | 1751 checkUnnamed1544(o.types); |
1672 checkUsage(o.usage); | 1752 checkUsage(o.usage); |
1673 checkVisibility(o.visibility); | 1753 checkVisibility(o.visibility); |
1674 } | 1754 } |
1675 buildCounterService--; | 1755 buildCounterService--; |
1676 } | 1756 } |
1677 | 1757 |
1678 core.int buildCounterSourceContext = 0; | 1758 core.int buildCounterSourceContext = 0; |
1679 buildSourceContext() { | 1759 buildSourceContext() { |
1680 var o = new api.SourceContext(); | 1760 var o = new api.SourceContext(); |
1681 buildCounterSourceContext++; | 1761 buildCounterSourceContext++; |
1682 if (buildCounterSourceContext < 3) { | 1762 if (buildCounterSourceContext < 3) { |
1683 o.fileName = "foo"; | 1763 o.fileName = "foo"; |
1684 } | 1764 } |
1685 buildCounterSourceContext--; | 1765 buildCounterSourceContext--; |
1686 return o; | 1766 return o; |
1687 } | 1767 } |
1688 | 1768 |
1689 checkSourceContext(api.SourceContext o) { | 1769 checkSourceContext(api.SourceContext o) { |
1690 buildCounterSourceContext++; | 1770 buildCounterSourceContext++; |
1691 if (buildCounterSourceContext < 3) { | 1771 if (buildCounterSourceContext < 3) { |
1692 unittest.expect(o.fileName, unittest.equals('foo')); | 1772 unittest.expect(o.fileName, unittest.equals('foo')); |
1693 } | 1773 } |
1694 buildCounterSourceContext--; | 1774 buildCounterSourceContext--; |
1695 } | 1775 } |
1696 | 1776 |
1697 buildUnnamed1777() { | 1777 buildUnnamed1545() { |
1698 var o = new core.Map<core.String, core.Object>(); | 1778 var o = new core.Map<core.String, core.Object>(); |
1699 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1779 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1700 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1780 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1701 return o; | 1781 return o; |
1702 } | 1782 } |
1703 | 1783 |
1704 checkUnnamed1777(core.Map<core.String, core.Object> o) { | 1784 checkUnnamed1545(core.Map<core.String, core.Object> o) { |
1705 unittest.expect(o, unittest.hasLength(2)); | 1785 unittest.expect(o, unittest.hasLength(2)); |
1706 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')); | 1786 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')); |
1707 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')); | 1787 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')); |
1708 } | 1788 } |
1709 | 1789 |
1710 buildUnnamed1778() { | 1790 buildUnnamed1546() { |
1711 var o = new core.List<core.Map<core.String, core.Object>>(); | 1791 var o = new core.List<core.Map<core.String, core.Object>>(); |
1712 o.add(buildUnnamed1777()); | 1792 o.add(buildUnnamed1545()); |
1713 o.add(buildUnnamed1777()); | 1793 o.add(buildUnnamed1545()); |
1714 return o; | 1794 return o; |
1715 } | 1795 } |
1716 | 1796 |
1717 checkUnnamed1778(core.List<core.Map<core.String, core.Object>> o) { | 1797 checkUnnamed1546(core.List<core.Map<core.String, core.Object>> o) { |
1718 unittest.expect(o, unittest.hasLength(2)); | 1798 unittest.expect(o, unittest.hasLength(2)); |
1719 checkUnnamed1777(o[0]); | 1799 checkUnnamed1545(o[0]); |
1720 checkUnnamed1777(o[1]); | 1800 checkUnnamed1545(o[1]); |
1721 } | 1801 } |
1722 | 1802 |
1723 core.int buildCounterStatus = 0; | 1803 core.int buildCounterStatus = 0; |
1724 buildStatus() { | 1804 buildStatus() { |
1725 var o = new api.Status(); | 1805 var o = new api.Status(); |
1726 buildCounterStatus++; | 1806 buildCounterStatus++; |
1727 if (buildCounterStatus < 3) { | 1807 if (buildCounterStatus < 3) { |
1728 o.code = 42; | 1808 o.code = 42; |
1729 o.details = buildUnnamed1778(); | 1809 o.details = buildUnnamed1546(); |
1730 o.message = "foo"; | 1810 o.message = "foo"; |
1731 } | 1811 } |
1732 buildCounterStatus--; | 1812 buildCounterStatus--; |
1733 return o; | 1813 return o; |
1734 } | 1814 } |
1735 | 1815 |
1736 checkStatus(api.Status o) { | 1816 checkStatus(api.Status o) { |
1737 buildCounterStatus++; | 1817 buildCounterStatus++; |
1738 if (buildCounterStatus < 3) { | 1818 if (buildCounterStatus < 3) { |
1739 unittest.expect(o.code, unittest.equals(42)); | 1819 unittest.expect(o.code, unittest.equals(42)); |
1740 checkUnnamed1778(o.details); | 1820 checkUnnamed1546(o.details); |
1741 unittest.expect(o.message, unittest.equals('foo')); | 1821 unittest.expect(o.message, unittest.equals('foo')); |
1742 } | 1822 } |
1743 buildCounterStatus--; | 1823 buildCounterStatus--; |
1744 } | 1824 } |
1745 | 1825 |
1746 core.int buildCounterSystemParameter = 0; | 1826 core.int buildCounterSystemParameter = 0; |
1747 buildSystemParameter() { | 1827 buildSystemParameter() { |
1748 var o = new api.SystemParameter(); | 1828 var o = new api.SystemParameter(); |
1749 buildCounterSystemParameter++; | 1829 buildCounterSystemParameter++; |
1750 if (buildCounterSystemParameter < 3) { | 1830 if (buildCounterSystemParameter < 3) { |
1751 o.httpHeader = "foo"; | 1831 o.httpHeader = "foo"; |
1752 o.name = "foo"; | 1832 o.name = "foo"; |
1753 o.urlQueryParameter = "foo"; | 1833 o.urlQueryParameter = "foo"; |
1754 } | 1834 } |
1755 buildCounterSystemParameter--; | 1835 buildCounterSystemParameter--; |
1756 return o; | 1836 return o; |
1757 } | 1837 } |
1758 | 1838 |
1759 checkSystemParameter(api.SystemParameter o) { | 1839 checkSystemParameter(api.SystemParameter o) { |
1760 buildCounterSystemParameter++; | 1840 buildCounterSystemParameter++; |
1761 if (buildCounterSystemParameter < 3) { | 1841 if (buildCounterSystemParameter < 3) { |
1762 unittest.expect(o.httpHeader, unittest.equals('foo')); | 1842 unittest.expect(o.httpHeader, unittest.equals('foo')); |
1763 unittest.expect(o.name, unittest.equals('foo')); | 1843 unittest.expect(o.name, unittest.equals('foo')); |
1764 unittest.expect(o.urlQueryParameter, unittest.equals('foo')); | 1844 unittest.expect(o.urlQueryParameter, unittest.equals('foo')); |
1765 } | 1845 } |
1766 buildCounterSystemParameter--; | 1846 buildCounterSystemParameter--; |
1767 } | 1847 } |
1768 | 1848 |
1769 buildUnnamed1779() { | 1849 buildUnnamed1547() { |
1770 var o = new core.List<api.SystemParameter>(); | 1850 var o = new core.List<api.SystemParameter>(); |
1771 o.add(buildSystemParameter()); | 1851 o.add(buildSystemParameter()); |
1772 o.add(buildSystemParameter()); | 1852 o.add(buildSystemParameter()); |
1773 return o; | 1853 return o; |
1774 } | 1854 } |
1775 | 1855 |
1776 checkUnnamed1779(core.List<api.SystemParameter> o) { | 1856 checkUnnamed1547(core.List<api.SystemParameter> o) { |
1777 unittest.expect(o, unittest.hasLength(2)); | 1857 unittest.expect(o, unittest.hasLength(2)); |
1778 checkSystemParameter(o[0]); | 1858 checkSystemParameter(o[0]); |
1779 checkSystemParameter(o[1]); | 1859 checkSystemParameter(o[1]); |
1780 } | 1860 } |
1781 | 1861 |
1782 core.int buildCounterSystemParameterRule = 0; | 1862 core.int buildCounterSystemParameterRule = 0; |
1783 buildSystemParameterRule() { | 1863 buildSystemParameterRule() { |
1784 var o = new api.SystemParameterRule(); | 1864 var o = new api.SystemParameterRule(); |
1785 buildCounterSystemParameterRule++; | 1865 buildCounterSystemParameterRule++; |
1786 if (buildCounterSystemParameterRule < 3) { | 1866 if (buildCounterSystemParameterRule < 3) { |
1787 o.parameters = buildUnnamed1779(); | 1867 o.parameters = buildUnnamed1547(); |
1788 o.selector = "foo"; | 1868 o.selector = "foo"; |
1789 } | 1869 } |
1790 buildCounterSystemParameterRule--; | 1870 buildCounterSystemParameterRule--; |
1791 return o; | 1871 return o; |
1792 } | 1872 } |
1793 | 1873 |
1794 checkSystemParameterRule(api.SystemParameterRule o) { | 1874 checkSystemParameterRule(api.SystemParameterRule o) { |
1795 buildCounterSystemParameterRule++; | 1875 buildCounterSystemParameterRule++; |
1796 if (buildCounterSystemParameterRule < 3) { | 1876 if (buildCounterSystemParameterRule < 3) { |
1797 checkUnnamed1779(o.parameters); | 1877 checkUnnamed1547(o.parameters); |
1798 unittest.expect(o.selector, unittest.equals('foo')); | 1878 unittest.expect(o.selector, unittest.equals('foo')); |
1799 } | 1879 } |
1800 buildCounterSystemParameterRule--; | 1880 buildCounterSystemParameterRule--; |
1801 } | 1881 } |
1802 | 1882 |
1803 buildUnnamed1780() { | 1883 buildUnnamed1548() { |
1804 var o = new core.List<api.SystemParameterRule>(); | 1884 var o = new core.List<api.SystemParameterRule>(); |
1805 o.add(buildSystemParameterRule()); | 1885 o.add(buildSystemParameterRule()); |
1806 o.add(buildSystemParameterRule()); | 1886 o.add(buildSystemParameterRule()); |
1807 return o; | 1887 return o; |
1808 } | 1888 } |
1809 | 1889 |
1810 checkUnnamed1780(core.List<api.SystemParameterRule> o) { | 1890 checkUnnamed1548(core.List<api.SystemParameterRule> o) { |
1811 unittest.expect(o, unittest.hasLength(2)); | 1891 unittest.expect(o, unittest.hasLength(2)); |
1812 checkSystemParameterRule(o[0]); | 1892 checkSystemParameterRule(o[0]); |
1813 checkSystemParameterRule(o[1]); | 1893 checkSystemParameterRule(o[1]); |
1814 } | 1894 } |
1815 | 1895 |
1816 core.int buildCounterSystemParameters = 0; | 1896 core.int buildCounterSystemParameters = 0; |
1817 buildSystemParameters() { | 1897 buildSystemParameters() { |
1818 var o = new api.SystemParameters(); | 1898 var o = new api.SystemParameters(); |
1819 buildCounterSystemParameters++; | 1899 buildCounterSystemParameters++; |
1820 if (buildCounterSystemParameters < 3) { | 1900 if (buildCounterSystemParameters < 3) { |
1821 o.rules = buildUnnamed1780(); | 1901 o.rules = buildUnnamed1548(); |
1822 } | 1902 } |
1823 buildCounterSystemParameters--; | 1903 buildCounterSystemParameters--; |
1824 return o; | 1904 return o; |
1825 } | 1905 } |
1826 | 1906 |
1827 checkSystemParameters(api.SystemParameters o) { | 1907 checkSystemParameters(api.SystemParameters o) { |
1828 buildCounterSystemParameters++; | 1908 buildCounterSystemParameters++; |
1829 if (buildCounterSystemParameters < 3) { | 1909 if (buildCounterSystemParameters < 3) { |
1830 checkUnnamed1780(o.rules); | 1910 checkUnnamed1548(o.rules); |
1831 } | 1911 } |
1832 buildCounterSystemParameters--; | 1912 buildCounterSystemParameters--; |
1833 } | 1913 } |
1834 | 1914 |
1835 buildUnnamed1781() { | 1915 buildUnnamed1549() { |
1836 var o = new core.List<api.Field>(); | 1916 var o = new core.List<api.Field>(); |
1837 o.add(buildField()); | 1917 o.add(buildField()); |
1838 o.add(buildField()); | 1918 o.add(buildField()); |
1839 return o; | 1919 return o; |
1840 } | 1920 } |
1841 | 1921 |
1842 checkUnnamed1781(core.List<api.Field> o) { | 1922 checkUnnamed1549(core.List<api.Field> o) { |
1843 unittest.expect(o, unittest.hasLength(2)); | 1923 unittest.expect(o, unittest.hasLength(2)); |
1844 checkField(o[0]); | 1924 checkField(o[0]); |
1845 checkField(o[1]); | 1925 checkField(o[1]); |
1846 } | 1926 } |
1847 | 1927 |
1848 buildUnnamed1782() { | 1928 buildUnnamed1550() { |
1849 var o = new core.List<core.String>(); | 1929 var o = new core.List<core.String>(); |
1850 o.add("foo"); | 1930 o.add("foo"); |
1851 o.add("foo"); | 1931 o.add("foo"); |
1852 return o; | 1932 return o; |
1853 } | 1933 } |
1854 | 1934 |
1855 checkUnnamed1782(core.List<core.String> o) { | 1935 checkUnnamed1550(core.List<core.String> o) { |
1856 unittest.expect(o, unittest.hasLength(2)); | 1936 unittest.expect(o, unittest.hasLength(2)); |
1857 unittest.expect(o[0], unittest.equals('foo')); | 1937 unittest.expect(o[0], unittest.equals('foo')); |
1858 unittest.expect(o[1], unittest.equals('foo')); | 1938 unittest.expect(o[1], unittest.equals('foo')); |
1859 } | 1939 } |
1860 | 1940 |
1861 buildUnnamed1783() { | 1941 buildUnnamed1551() { |
1862 var o = new core.List<api.Option>(); | 1942 var o = new core.List<api.Option>(); |
1863 o.add(buildOption()); | 1943 o.add(buildOption()); |
1864 o.add(buildOption()); | 1944 o.add(buildOption()); |
1865 return o; | 1945 return o; |
1866 } | 1946 } |
1867 | 1947 |
1868 checkUnnamed1783(core.List<api.Option> o) { | 1948 checkUnnamed1551(core.List<api.Option> o) { |
1869 unittest.expect(o, unittest.hasLength(2)); | 1949 unittest.expect(o, unittest.hasLength(2)); |
1870 checkOption(o[0]); | 1950 checkOption(o[0]); |
1871 checkOption(o[1]); | 1951 checkOption(o[1]); |
1872 } | 1952 } |
1873 | 1953 |
1874 core.int buildCounterType = 0; | 1954 core.int buildCounterType = 0; |
1875 buildType() { | 1955 buildType() { |
1876 var o = new api.Type(); | 1956 var o = new api.Type(); |
1877 buildCounterType++; | 1957 buildCounterType++; |
1878 if (buildCounterType < 3) { | 1958 if (buildCounterType < 3) { |
1879 o.fields = buildUnnamed1781(); | 1959 o.fields = buildUnnamed1549(); |
1880 o.name = "foo"; | 1960 o.name = "foo"; |
1881 o.oneofs = buildUnnamed1782(); | 1961 o.oneofs = buildUnnamed1550(); |
1882 o.options = buildUnnamed1783(); | 1962 o.options = buildUnnamed1551(); |
1883 o.sourceContext = buildSourceContext(); | 1963 o.sourceContext = buildSourceContext(); |
1884 o.syntax = "foo"; | 1964 o.syntax = "foo"; |
1885 } | 1965 } |
1886 buildCounterType--; | 1966 buildCounterType--; |
1887 return o; | 1967 return o; |
1888 } | 1968 } |
1889 | 1969 |
1890 checkType(api.Type o) { | 1970 checkType(api.Type o) { |
1891 buildCounterType++; | 1971 buildCounterType++; |
1892 if (buildCounterType < 3) { | 1972 if (buildCounterType < 3) { |
1893 checkUnnamed1781(o.fields); | 1973 checkUnnamed1549(o.fields); |
1894 unittest.expect(o.name, unittest.equals('foo')); | 1974 unittest.expect(o.name, unittest.equals('foo')); |
1895 checkUnnamed1782(o.oneofs); | 1975 checkUnnamed1550(o.oneofs); |
1896 checkUnnamed1783(o.options); | 1976 checkUnnamed1551(o.options); |
1897 checkSourceContext(o.sourceContext); | 1977 checkSourceContext(o.sourceContext); |
1898 unittest.expect(o.syntax, unittest.equals('foo')); | 1978 unittest.expect(o.syntax, unittest.equals('foo')); |
1899 } | 1979 } |
1900 buildCounterType--; | 1980 buildCounterType--; |
1901 } | 1981 } |
1902 | 1982 |
1903 buildUnnamed1784() { | 1983 buildUnnamed1552() { |
1904 var o = new core.List<core.String>(); | 1984 var o = new core.List<core.String>(); |
1905 o.add("foo"); | 1985 o.add("foo"); |
1906 o.add("foo"); | 1986 o.add("foo"); |
1907 return o; | 1987 return o; |
1908 } | 1988 } |
1909 | 1989 |
1910 checkUnnamed1784(core.List<core.String> o) { | 1990 checkUnnamed1552(core.List<core.String> o) { |
1911 unittest.expect(o, unittest.hasLength(2)); | 1991 unittest.expect(o, unittest.hasLength(2)); |
1912 unittest.expect(o[0], unittest.equals('foo')); | 1992 unittest.expect(o[0], unittest.equals('foo')); |
1913 unittest.expect(o[1], unittest.equals('foo')); | 1993 unittest.expect(o[1], unittest.equals('foo')); |
1914 } | 1994 } |
1915 | 1995 |
1916 buildUnnamed1785() { | 1996 buildUnnamed1553() { |
1917 var o = new core.List<api.UsageRule>(); | 1997 var o = new core.List<api.UsageRule>(); |
1918 o.add(buildUsageRule()); | 1998 o.add(buildUsageRule()); |
1919 o.add(buildUsageRule()); | 1999 o.add(buildUsageRule()); |
1920 return o; | 2000 return o; |
1921 } | 2001 } |
1922 | 2002 |
1923 checkUnnamed1785(core.List<api.UsageRule> o) { | 2003 checkUnnamed1553(core.List<api.UsageRule> o) { |
1924 unittest.expect(o, unittest.hasLength(2)); | 2004 unittest.expect(o, unittest.hasLength(2)); |
1925 checkUsageRule(o[0]); | 2005 checkUsageRule(o[0]); |
1926 checkUsageRule(o[1]); | 2006 checkUsageRule(o[1]); |
1927 } | 2007 } |
1928 | 2008 |
1929 core.int buildCounterUsage = 0; | 2009 core.int buildCounterUsage = 0; |
1930 buildUsage() { | 2010 buildUsage() { |
1931 var o = new api.Usage(); | 2011 var o = new api.Usage(); |
1932 buildCounterUsage++; | 2012 buildCounterUsage++; |
1933 if (buildCounterUsage < 3) { | 2013 if (buildCounterUsage < 3) { |
1934 o.producerNotificationChannel = "foo"; | 2014 o.producerNotificationChannel = "foo"; |
1935 o.requirements = buildUnnamed1784(); | 2015 o.requirements = buildUnnamed1552(); |
1936 o.rules = buildUnnamed1785(); | 2016 o.rules = buildUnnamed1553(); |
1937 } | 2017 } |
1938 buildCounterUsage--; | 2018 buildCounterUsage--; |
1939 return o; | 2019 return o; |
1940 } | 2020 } |
1941 | 2021 |
1942 checkUsage(api.Usage o) { | 2022 checkUsage(api.Usage o) { |
1943 buildCounterUsage++; | 2023 buildCounterUsage++; |
1944 if (buildCounterUsage < 3) { | 2024 if (buildCounterUsage < 3) { |
1945 unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); | 2025 unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); |
1946 checkUnnamed1784(o.requirements); | 2026 checkUnnamed1552(o.requirements); |
1947 checkUnnamed1785(o.rules); | 2027 checkUnnamed1553(o.rules); |
1948 } | 2028 } |
1949 buildCounterUsage--; | 2029 buildCounterUsage--; |
1950 } | 2030 } |
1951 | 2031 |
1952 core.int buildCounterUsageRule = 0; | 2032 core.int buildCounterUsageRule = 0; |
1953 buildUsageRule() { | 2033 buildUsageRule() { |
1954 var o = new api.UsageRule(); | 2034 var o = new api.UsageRule(); |
1955 buildCounterUsageRule++; | 2035 buildCounterUsageRule++; |
1956 if (buildCounterUsageRule < 3) { | 2036 if (buildCounterUsageRule < 3) { |
1957 o.allowUnregisteredCalls = true; | 2037 o.allowUnregisteredCalls = true; |
1958 o.selector = "foo"; | 2038 o.selector = "foo"; |
1959 } | 2039 } |
1960 buildCounterUsageRule--; | 2040 buildCounterUsageRule--; |
1961 return o; | 2041 return o; |
1962 } | 2042 } |
1963 | 2043 |
1964 checkUsageRule(api.UsageRule o) { | 2044 checkUsageRule(api.UsageRule o) { |
1965 buildCounterUsageRule++; | 2045 buildCounterUsageRule++; |
1966 if (buildCounterUsageRule < 3) { | 2046 if (buildCounterUsageRule < 3) { |
1967 unittest.expect(o.allowUnregisteredCalls, unittest.isTrue); | 2047 unittest.expect(o.allowUnregisteredCalls, unittest.isTrue); |
1968 unittest.expect(o.selector, unittest.equals('foo')); | 2048 unittest.expect(o.selector, unittest.equals('foo')); |
1969 } | 2049 } |
1970 buildCounterUsageRule--; | 2050 buildCounterUsageRule--; |
1971 } | 2051 } |
1972 | 2052 |
1973 buildUnnamed1786() { | 2053 buildUnnamed1554() { |
1974 var o = new core.List<api.VisibilityRule>(); | 2054 var o = new core.List<api.VisibilityRule>(); |
1975 o.add(buildVisibilityRule()); | 2055 o.add(buildVisibilityRule()); |
1976 o.add(buildVisibilityRule()); | 2056 o.add(buildVisibilityRule()); |
1977 return o; | 2057 return o; |
1978 } | 2058 } |
1979 | 2059 |
1980 checkUnnamed1786(core.List<api.VisibilityRule> o) { | 2060 checkUnnamed1554(core.List<api.VisibilityRule> o) { |
1981 unittest.expect(o, unittest.hasLength(2)); | 2061 unittest.expect(o, unittest.hasLength(2)); |
1982 checkVisibilityRule(o[0]); | 2062 checkVisibilityRule(o[0]); |
1983 checkVisibilityRule(o[1]); | 2063 checkVisibilityRule(o[1]); |
1984 } | 2064 } |
1985 | 2065 |
1986 core.int buildCounterVisibility = 0; | 2066 core.int buildCounterVisibility = 0; |
1987 buildVisibility() { | 2067 buildVisibility() { |
1988 var o = new api.Visibility(); | 2068 var o = new api.Visibility(); |
1989 buildCounterVisibility++; | 2069 buildCounterVisibility++; |
1990 if (buildCounterVisibility < 3) { | 2070 if (buildCounterVisibility < 3) { |
1991 o.rules = buildUnnamed1786(); | 2071 o.rules = buildUnnamed1554(); |
1992 } | 2072 } |
1993 buildCounterVisibility--; | 2073 buildCounterVisibility--; |
1994 return o; | 2074 return o; |
1995 } | 2075 } |
1996 | 2076 |
1997 checkVisibility(api.Visibility o) { | 2077 checkVisibility(api.Visibility o) { |
1998 buildCounterVisibility++; | 2078 buildCounterVisibility++; |
1999 if (buildCounterVisibility < 3) { | 2079 if (buildCounterVisibility < 3) { |
2000 checkUnnamed1786(o.rules); | 2080 checkUnnamed1554(o.rules); |
2001 } | 2081 } |
2002 buildCounterVisibility--; | 2082 buildCounterVisibility--; |
2003 } | 2083 } |
2004 | 2084 |
2005 core.int buildCounterVisibilityRule = 0; | 2085 core.int buildCounterVisibilityRule = 0; |
2006 buildVisibilityRule() { | 2086 buildVisibilityRule() { |
2007 var o = new api.VisibilityRule(); | 2087 var o = new api.VisibilityRule(); |
2008 buildCounterVisibilityRule++; | 2088 buildCounterVisibilityRule++; |
2009 if (buildCounterVisibilityRule < 3) { | 2089 if (buildCounterVisibilityRule < 3) { |
2010 o.restriction = "foo"; | 2090 o.restriction = "foo"; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2063 | 2143 |
2064 unittest.group("obj-schema-AuthenticationRule", () { | 2144 unittest.group("obj-schema-AuthenticationRule", () { |
2065 unittest.test("to-json--from-json", () { | 2145 unittest.test("to-json--from-json", () { |
2066 var o = buildAuthenticationRule(); | 2146 var o = buildAuthenticationRule(); |
2067 var od = new api.AuthenticationRule.fromJson(o.toJson()); | 2147 var od = new api.AuthenticationRule.fromJson(o.toJson()); |
2068 checkAuthenticationRule(od); | 2148 checkAuthenticationRule(od); |
2069 }); | 2149 }); |
2070 }); | 2150 }); |
2071 | 2151 |
2072 | 2152 |
| 2153 unittest.group("obj-schema-AuthorizationConfig", () { |
| 2154 unittest.test("to-json--from-json", () { |
| 2155 var o = buildAuthorizationConfig(); |
| 2156 var od = new api.AuthorizationConfig.fromJson(o.toJson()); |
| 2157 checkAuthorizationConfig(od); |
| 2158 }); |
| 2159 }); |
| 2160 |
| 2161 |
2073 unittest.group("obj-schema-Backend", () { | 2162 unittest.group("obj-schema-Backend", () { |
2074 unittest.test("to-json--from-json", () { | 2163 unittest.test("to-json--from-json", () { |
2075 var o = buildBackend(); | 2164 var o = buildBackend(); |
2076 var od = new api.Backend.fromJson(o.toJson()); | 2165 var od = new api.Backend.fromJson(o.toJson()); |
2077 checkBackend(od); | 2166 checkBackend(od); |
2078 }); | 2167 }); |
2079 }); | 2168 }); |
2080 | 2169 |
2081 | 2170 |
2082 unittest.group("obj-schema-BackendRule", () { | 2171 unittest.group("obj-schema-BackendRule", () { |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2171 | 2260 |
2172 unittest.group("obj-schema-EnableServiceRequest", () { | 2261 unittest.group("obj-schema-EnableServiceRequest", () { |
2173 unittest.test("to-json--from-json", () { | 2262 unittest.test("to-json--from-json", () { |
2174 var o = buildEnableServiceRequest(); | 2263 var o = buildEnableServiceRequest(); |
2175 var od = new api.EnableServiceRequest.fromJson(o.toJson()); | 2264 var od = new api.EnableServiceRequest.fromJson(o.toJson()); |
2176 checkEnableServiceRequest(od); | 2265 checkEnableServiceRequest(od); |
2177 }); | 2266 }); |
2178 }); | 2267 }); |
2179 | 2268 |
2180 | 2269 |
2181 unittest.group("obj-schema-EnabledService", () { | |
2182 unittest.test("to-json--from-json", () { | |
2183 var o = buildEnabledService(); | |
2184 var od = new api.EnabledService.fromJson(o.toJson()); | |
2185 checkEnabledService(od); | |
2186 }); | |
2187 }); | |
2188 | |
2189 | |
2190 unittest.group("obj-schema-Endpoint", () { | 2270 unittest.group("obj-schema-Endpoint", () { |
2191 unittest.test("to-json--from-json", () { | 2271 unittest.test("to-json--from-json", () { |
2192 var o = buildEndpoint(); | 2272 var o = buildEndpoint(); |
2193 var od = new api.Endpoint.fromJson(o.toJson()); | 2273 var od = new api.Endpoint.fromJson(o.toJson()); |
2194 checkEndpoint(od); | 2274 checkEndpoint(od); |
2195 }); | 2275 }); |
2196 }); | 2276 }); |
2197 | 2277 |
2198 | 2278 |
2199 unittest.group("obj-schema-Enum", () { | 2279 unittest.group("obj-schema-Enum", () { |
2200 unittest.test("to-json--from-json", () { | 2280 unittest.test("to-json--from-json", () { |
2201 var o = buildEnum(); | 2281 var o = buildEnum(); |
2202 var od = new api.Enum.fromJson(o.toJson()); | 2282 var od = new api.Enum.fromJson(o.toJson()); |
2203 checkEnum(od); | 2283 checkEnum(od); |
2204 }); | 2284 }); |
2205 }); | 2285 }); |
2206 | 2286 |
2207 | 2287 |
2208 unittest.group("obj-schema-EnumValue", () { | 2288 unittest.group("obj-schema-EnumValue", () { |
2209 unittest.test("to-json--from-json", () { | 2289 unittest.test("to-json--from-json", () { |
2210 var o = buildEnumValue(); | 2290 var o = buildEnumValue(); |
2211 var od = new api.EnumValue.fromJson(o.toJson()); | 2291 var od = new api.EnumValue.fromJson(o.toJson()); |
2212 checkEnumValue(od); | 2292 checkEnumValue(od); |
2213 }); | 2293 }); |
2214 }); | 2294 }); |
2215 | 2295 |
2216 | 2296 |
| 2297 unittest.group("obj-schema-Experimental", () { |
| 2298 unittest.test("to-json--from-json", () { |
| 2299 var o = buildExperimental(); |
| 2300 var od = new api.Experimental.fromJson(o.toJson()); |
| 2301 checkExperimental(od); |
| 2302 }); |
| 2303 }); |
| 2304 |
| 2305 |
2217 unittest.group("obj-schema-Field", () { | 2306 unittest.group("obj-schema-Field", () { |
2218 unittest.test("to-json--from-json", () { | 2307 unittest.test("to-json--from-json", () { |
2219 var o = buildField(); | 2308 var o = buildField(); |
2220 var od = new api.Field.fromJson(o.toJson()); | 2309 var od = new api.Field.fromJson(o.toJson()); |
2221 checkField(od); | 2310 checkField(od); |
2222 }); | 2311 }); |
2223 }); | 2312 }); |
2224 | 2313 |
2225 | 2314 |
2226 unittest.group("obj-schema-Http", () { | 2315 unittest.group("obj-schema-Http", () { |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2387 | 2476 |
2388 unittest.group("obj-schema-Page", () { | 2477 unittest.group("obj-schema-Page", () { |
2389 unittest.test("to-json--from-json", () { | 2478 unittest.test("to-json--from-json", () { |
2390 var o = buildPage(); | 2479 var o = buildPage(); |
2391 var od = new api.Page.fromJson(o.toJson()); | 2480 var od = new api.Page.fromJson(o.toJson()); |
2392 checkPage(od); | 2481 checkPage(od); |
2393 }); | 2482 }); |
2394 }); | 2483 }); |
2395 | 2484 |
2396 | 2485 |
| 2486 unittest.group("obj-schema-PublishedService", () { |
| 2487 unittest.test("to-json--from-json", () { |
| 2488 var o = buildPublishedService(); |
| 2489 var od = new api.PublishedService.fromJson(o.toJson()); |
| 2490 checkPublishedService(od); |
| 2491 }); |
| 2492 }); |
| 2493 |
| 2494 |
| 2495 unittest.group("obj-schema-SearchServicesResponse", () { |
| 2496 unittest.test("to-json--from-json", () { |
| 2497 var o = buildSearchServicesResponse(); |
| 2498 var od = new api.SearchServicesResponse.fromJson(o.toJson()); |
| 2499 checkSearchServicesResponse(od); |
| 2500 }); |
| 2501 }); |
| 2502 |
| 2503 |
2397 unittest.group("obj-schema-Service", () { | 2504 unittest.group("obj-schema-Service", () { |
2398 unittest.test("to-json--from-json", () { | 2505 unittest.test("to-json--from-json", () { |
2399 var o = buildService(); | 2506 var o = buildService(); |
2400 var od = new api.Service.fromJson(o.toJson()); | 2507 var od = new api.Service.fromJson(o.toJson()); |
2401 checkService(od); | 2508 checkService(od); |
2402 }); | 2509 }); |
2403 }); | 2510 }); |
2404 | 2511 |
2405 | 2512 |
2406 unittest.group("obj-schema-SourceContext", () { | 2513 unittest.group("obj-schema-SourceContext", () { |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2590 res.enable(arg_request, arg_name).then(unittest.expectAsync(((api.Operatio
n response) { | 2697 res.enable(arg_request, arg_name).then(unittest.expectAsync(((api.Operatio
n response) { |
2591 checkOperation(response); | 2698 checkOperation(response); |
2592 }))); | 2699 }))); |
2593 }); | 2700 }); |
2594 | 2701 |
2595 unittest.test("method--list", () { | 2702 unittest.test("method--list", () { |
2596 | 2703 |
2597 var mock = new HttpServerMock(); | 2704 var mock = new HttpServerMock(); |
2598 api.ProjectsServicesResourceApi res = new api.ServiceuserApi(mock).project
s.services; | 2705 api.ProjectsServicesResourceApi res = new api.ServiceuserApi(mock).project
s.services; |
2599 var arg_parent = "foo"; | 2706 var arg_parent = "foo"; |
| 2707 var arg_pageToken = "foo"; |
2600 var arg_pageSize = 42; | 2708 var arg_pageSize = 42; |
2601 var arg_pageToken = "foo"; | |
2602 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2709 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2603 var path = (req.url).path; | 2710 var path = (req.url).path; |
2604 var pathOffset = 0; | 2711 var pathOffset = 0; |
2605 var index; | 2712 var index; |
2606 var subPart; | 2713 var subPart; |
2607 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2714 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2608 pathOffset += 1; | 2715 pathOffset += 1; |
2609 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 2716 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
2610 pathOffset += 3; | 2717 pathOffset += 3; |
2611 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 2718 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
2612 | 2719 |
2613 var query = (req.url).query; | 2720 var query = (req.url).query; |
2614 var queryOffset = 0; | 2721 var queryOffset = 0; |
2615 var queryMap = {}; | 2722 var queryMap = {}; |
2616 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2723 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2617 parseBool(n) { | 2724 parseBool(n) { |
2618 if (n == "true") return true; | 2725 if (n == "true") return true; |
2619 if (n == "false") return false; | 2726 if (n == "false") return false; |
2620 if (n == null) return null; | 2727 if (n == null) return null; |
2621 throw new core.ArgumentError("Invalid boolean: $n"); | 2728 throw new core.ArgumentError("Invalid boolean: $n"); |
2622 } | 2729 } |
2623 if (query.length > 0) { | 2730 if (query.length > 0) { |
2624 for (var part in query.split("&")) { | 2731 for (var part in query.split("&")) { |
2625 var keyvalue = part.split("="); | 2732 var keyvalue = part.split("="); |
2626 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2733 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2627 } | 2734 } |
2628 } | 2735 } |
| 2736 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2629 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 2737 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2630 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
2631 | 2738 |
2632 | 2739 |
2633 var h = { | 2740 var h = { |
2634 "content-type" : "application/json; charset=utf-8", | 2741 "content-type" : "application/json; charset=utf-8", |
2635 }; | 2742 }; |
2636 var resp = convert.JSON.encode(buildListEnabledServicesResponse()); | 2743 var resp = convert.JSON.encode(buildListEnabledServicesResponse()); |
2637 return new async.Future.value(stringResponse(200, h, resp)); | 2744 return new async.Future.value(stringResponse(200, h, resp)); |
2638 }), true); | 2745 }), true); |
2639 res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).the
n(unittest.expectAsync(((api.ListEnabledServicesResponse response) { | 2746 res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).the
n(unittest.expectAsync(((api.ListEnabledServicesResponse response) { |
2640 checkListEnabledServicesResponse(response); | 2747 checkListEnabledServicesResponse(response); |
2641 }))); | 2748 }))); |
2642 }); | 2749 }); |
2643 | 2750 |
2644 }); | 2751 }); |
2645 | 2752 |
2646 | 2753 |
| 2754 unittest.group("resource-ServicesResourceApi", () { |
| 2755 unittest.test("method--search", () { |
| 2756 |
| 2757 var mock = new HttpServerMock(); |
| 2758 api.ServicesResourceApi res = new api.ServiceuserApi(mock).services; |
| 2759 var arg_pageToken = "foo"; |
| 2760 var arg_pageSize = 42; |
| 2761 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 2762 var path = (req.url).path; |
| 2763 var pathOffset = 0; |
| 2764 var index; |
| 2765 var subPart; |
| 2766 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 2767 pathOffset += 1; |
| 2768 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("v1/services:search")); |
| 2769 pathOffset += 18; |
| 2770 |
| 2771 var query = (req.url).query; |
| 2772 var queryOffset = 0; |
| 2773 var queryMap = {}; |
| 2774 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
| 2775 parseBool(n) { |
| 2776 if (n == "true") return true; |
| 2777 if (n == "false") return false; |
| 2778 if (n == null) return null; |
| 2779 throw new core.ArgumentError("Invalid boolean: $n"); |
| 2780 } |
| 2781 if (query.length > 0) { |
| 2782 for (var part in query.split("&")) { |
| 2783 var keyvalue = part.split("="); |
| 2784 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 2785 } |
| 2786 } |
| 2787 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 2788 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
| 2789 |
| 2790 |
| 2791 var h = { |
| 2792 "content-type" : "application/json; charset=utf-8", |
| 2793 }; |
| 2794 var resp = convert.JSON.encode(buildSearchServicesResponse()); |
| 2795 return new async.Future.value(stringResponse(200, h, resp)); |
| 2796 }), true); |
| 2797 res.search(pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest
.expectAsync(((api.SearchServicesResponse response) { |
| 2798 checkSearchServicesResponse(response); |
| 2799 }))); |
| 2800 }); |
| 2801 |
| 2802 }); |
| 2803 |
| 2804 |
2647 } | 2805 } |
2648 | 2806 |
OLD | NEW |