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 buildUnnamed1498() { | 54 buildUnnamed1555() { |
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 checkUnnamed1498(core.List<api.Method> o) { | 61 checkUnnamed1555(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 buildUnnamed1499() { | 67 buildUnnamed1556() { |
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 checkUnnamed1499(core.List<api.Mixin> o) { | 74 checkUnnamed1556(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 buildUnnamed1500() { | 80 buildUnnamed1557() { |
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 checkUnnamed1500(core.List<api.Option> o) { | 87 checkUnnamed1557(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 = buildUnnamed1498(); | 98 o.methods = buildUnnamed1555(); |
99 o.mixins = buildUnnamed1499(); | 99 o.mixins = buildUnnamed1556(); |
100 o.name = "foo"; | 100 o.name = "foo"; |
101 o.options = buildUnnamed1500(); | 101 o.options = buildUnnamed1557(); |
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 checkUnnamed1498(o.methods); | 113 checkUnnamed1555(o.methods); |
114 checkUnnamed1499(o.mixins); | 114 checkUnnamed1556(o.mixins); |
115 unittest.expect(o.name, unittest.equals('foo')); | 115 unittest.expect(o.name, unittest.equals('foo')); |
116 checkUnnamed1500(o.options); | 116 checkUnnamed1557(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 buildUnnamed1501() { | 170 buildUnnamed1558() { |
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 checkUnnamed1501(core.List<api.AuthProvider> o) { | 177 checkUnnamed1558(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 buildUnnamed1502() { | 183 buildUnnamed1559() { |
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 checkUnnamed1502(core.List<api.AuthenticationRule> o) { | 190 checkUnnamed1559(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 = buildUnnamed1501(); | 201 o.providers = buildUnnamed1558(); |
202 o.rules = buildUnnamed1502(); | 202 o.rules = buildUnnamed1559(); |
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 checkUnnamed1501(o.providers); | 211 checkUnnamed1558(o.providers); |
212 checkUnnamed1502(o.rules); | 212 checkUnnamed1559(o.rules); |
213 } | 213 } |
214 buildCounterAuthentication--; | 214 buildCounterAuthentication--; |
215 } | 215 } |
216 | 216 |
217 buildUnnamed1503() { | 217 buildUnnamed1560() { |
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 checkUnnamed1503(core.List<api.AuthRequirement> o) { | 224 checkUnnamed1560(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 = buildUnnamed1503(); | 237 o.requirements = buildUnnamed1560(); |
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 checkUnnamed1503(o.requirements); | 249 checkUnnamed1560(o.requirements); |
250 unittest.expect(o.selector, unittest.equals('foo')); | 250 unittest.expect(o.selector, unittest.equals('foo')); |
251 } | 251 } |
252 buildCounterAuthenticationRule--; | 252 buildCounterAuthenticationRule--; |
253 } | 253 } |
254 | 254 |
255 core.int buildCounterAuthorizationConfig = 0; | 255 core.int buildCounterAuthorizationConfig = 0; |
256 buildAuthorizationConfig() { | 256 buildAuthorizationConfig() { |
257 var o = new api.AuthorizationConfig(); | 257 var o = new api.AuthorizationConfig(); |
258 buildCounterAuthorizationConfig++; | 258 buildCounterAuthorizationConfig++; |
259 if (buildCounterAuthorizationConfig < 3) { | 259 if (buildCounterAuthorizationConfig < 3) { |
260 o.provider = "foo"; | 260 o.provider = "foo"; |
261 } | 261 } |
262 buildCounterAuthorizationConfig--; | 262 buildCounterAuthorizationConfig--; |
263 return o; | 263 return o; |
264 } | 264 } |
265 | 265 |
266 checkAuthorizationConfig(api.AuthorizationConfig o) { | 266 checkAuthorizationConfig(api.AuthorizationConfig o) { |
267 buildCounterAuthorizationConfig++; | 267 buildCounterAuthorizationConfig++; |
268 if (buildCounterAuthorizationConfig < 3) { | 268 if (buildCounterAuthorizationConfig < 3) { |
269 unittest.expect(o.provider, unittest.equals('foo')); | 269 unittest.expect(o.provider, unittest.equals('foo')); |
270 } | 270 } |
271 buildCounterAuthorizationConfig--; | 271 buildCounterAuthorizationConfig--; |
272 } | 272 } |
273 | 273 |
274 buildUnnamed1504() { | 274 buildUnnamed1561() { |
275 var o = new core.List<api.BackendRule>(); | 275 var o = new core.List<api.BackendRule>(); |
276 o.add(buildBackendRule()); | 276 o.add(buildBackendRule()); |
277 o.add(buildBackendRule()); | 277 o.add(buildBackendRule()); |
278 return o; | 278 return o; |
279 } | 279 } |
280 | 280 |
281 checkUnnamed1504(core.List<api.BackendRule> o) { | 281 checkUnnamed1561(core.List<api.BackendRule> o) { |
282 unittest.expect(o, unittest.hasLength(2)); | 282 unittest.expect(o, unittest.hasLength(2)); |
283 checkBackendRule(o[0]); | 283 checkBackendRule(o[0]); |
284 checkBackendRule(o[1]); | 284 checkBackendRule(o[1]); |
285 } | 285 } |
286 | 286 |
287 core.int buildCounterBackend = 0; | 287 core.int buildCounterBackend = 0; |
288 buildBackend() { | 288 buildBackend() { |
289 var o = new api.Backend(); | 289 var o = new api.Backend(); |
290 buildCounterBackend++; | 290 buildCounterBackend++; |
291 if (buildCounterBackend < 3) { | 291 if (buildCounterBackend < 3) { |
292 o.rules = buildUnnamed1504(); | 292 o.rules = buildUnnamed1561(); |
293 } | 293 } |
294 buildCounterBackend--; | 294 buildCounterBackend--; |
295 return o; | 295 return o; |
296 } | 296 } |
297 | 297 |
298 checkBackend(api.Backend o) { | 298 checkBackend(api.Backend o) { |
299 buildCounterBackend++; | 299 buildCounterBackend++; |
300 if (buildCounterBackend < 3) { | 300 if (buildCounterBackend < 3) { |
301 checkUnnamed1504(o.rules); | 301 checkUnnamed1561(o.rules); |
302 } | 302 } |
303 buildCounterBackend--; | 303 buildCounterBackend--; |
304 } | 304 } |
305 | 305 |
306 core.int buildCounterBackendRule = 0; | 306 core.int buildCounterBackendRule = 0; |
307 buildBackendRule() { | 307 buildBackendRule() { |
308 var o = new api.BackendRule(); | 308 var o = new api.BackendRule(); |
309 buildCounterBackendRule++; | 309 buildCounterBackendRule++; |
310 if (buildCounterBackendRule < 3) { | 310 if (buildCounterBackendRule < 3) { |
311 o.address = "foo"; | 311 o.address = "foo"; |
312 o.deadline = 42.0; | 312 o.deadline = 42.0; |
313 o.selector = "foo"; | 313 o.selector = "foo"; |
314 } | 314 } |
315 buildCounterBackendRule--; | 315 buildCounterBackendRule--; |
316 return o; | 316 return o; |
317 } | 317 } |
318 | 318 |
319 checkBackendRule(api.BackendRule o) { | 319 checkBackendRule(api.BackendRule o) { |
320 buildCounterBackendRule++; | 320 buildCounterBackendRule++; |
321 if (buildCounterBackendRule < 3) { | 321 if (buildCounterBackendRule < 3) { |
322 unittest.expect(o.address, unittest.equals('foo')); | 322 unittest.expect(o.address, unittest.equals('foo')); |
323 unittest.expect(o.deadline, unittest.equals(42.0)); | 323 unittest.expect(o.deadline, unittest.equals(42.0)); |
324 unittest.expect(o.selector, unittest.equals('foo')); | 324 unittest.expect(o.selector, unittest.equals('foo')); |
325 } | 325 } |
326 buildCounterBackendRule--; | 326 buildCounterBackendRule--; |
327 } | 327 } |
328 | 328 |
329 buildUnnamed1505() { | 329 buildUnnamed1562() { |
330 var o = new core.List<api.ContextRule>(); | 330 var o = new core.List<api.ContextRule>(); |
331 o.add(buildContextRule()); | 331 o.add(buildContextRule()); |
332 o.add(buildContextRule()); | 332 o.add(buildContextRule()); |
333 return o; | 333 return o; |
334 } | 334 } |
335 | 335 |
336 checkUnnamed1505(core.List<api.ContextRule> o) { | 336 checkUnnamed1562(core.List<api.ContextRule> o) { |
337 unittest.expect(o, unittest.hasLength(2)); | 337 unittest.expect(o, unittest.hasLength(2)); |
338 checkContextRule(o[0]); | 338 checkContextRule(o[0]); |
339 checkContextRule(o[1]); | 339 checkContextRule(o[1]); |
340 } | 340 } |
341 | 341 |
342 core.int buildCounterContext = 0; | 342 core.int buildCounterContext = 0; |
343 buildContext() { | 343 buildContext() { |
344 var o = new api.Context(); | 344 var o = new api.Context(); |
345 buildCounterContext++; | 345 buildCounterContext++; |
346 if (buildCounterContext < 3) { | 346 if (buildCounterContext < 3) { |
347 o.rules = buildUnnamed1505(); | 347 o.rules = buildUnnamed1562(); |
348 } | 348 } |
349 buildCounterContext--; | 349 buildCounterContext--; |
350 return o; | 350 return o; |
351 } | 351 } |
352 | 352 |
353 checkContext(api.Context o) { | 353 checkContext(api.Context o) { |
354 buildCounterContext++; | 354 buildCounterContext++; |
355 if (buildCounterContext < 3) { | 355 if (buildCounterContext < 3) { |
356 checkUnnamed1505(o.rules); | 356 checkUnnamed1562(o.rules); |
357 } | 357 } |
358 buildCounterContext--; | 358 buildCounterContext--; |
359 } | 359 } |
360 | 360 |
361 buildUnnamed1506() { | 361 buildUnnamed1563() { |
362 var o = new core.List<core.String>(); | 362 var o = new core.List<core.String>(); |
363 o.add("foo"); | 363 o.add("foo"); |
364 o.add("foo"); | 364 o.add("foo"); |
365 return o; | 365 return o; |
366 } | 366 } |
367 | 367 |
368 checkUnnamed1506(core.List<core.String> o) { | 368 checkUnnamed1563(core.List<core.String> o) { |
369 unittest.expect(o, unittest.hasLength(2)); | 369 unittest.expect(o, unittest.hasLength(2)); |
370 unittest.expect(o[0], unittest.equals('foo')); | 370 unittest.expect(o[0], unittest.equals('foo')); |
371 unittest.expect(o[1], unittest.equals('foo')); | 371 unittest.expect(o[1], unittest.equals('foo')); |
372 } | 372 } |
373 | 373 |
374 buildUnnamed1507() { | 374 buildUnnamed1564() { |
375 var o = new core.List<core.String>(); | 375 var o = new core.List<core.String>(); |
376 o.add("foo"); | 376 o.add("foo"); |
377 o.add("foo"); | 377 o.add("foo"); |
378 return o; | 378 return o; |
379 } | 379 } |
380 | 380 |
381 checkUnnamed1507(core.List<core.String> o) { | 381 checkUnnamed1564(core.List<core.String> o) { |
382 unittest.expect(o, unittest.hasLength(2)); | 382 unittest.expect(o, unittest.hasLength(2)); |
383 unittest.expect(o[0], unittest.equals('foo')); | 383 unittest.expect(o[0], unittest.equals('foo')); |
384 unittest.expect(o[1], unittest.equals('foo')); | 384 unittest.expect(o[1], unittest.equals('foo')); |
385 } | 385 } |
386 | 386 |
387 core.int buildCounterContextRule = 0; | 387 core.int buildCounterContextRule = 0; |
388 buildContextRule() { | 388 buildContextRule() { |
389 var o = new api.ContextRule(); | 389 var o = new api.ContextRule(); |
390 buildCounterContextRule++; | 390 buildCounterContextRule++; |
391 if (buildCounterContextRule < 3) { | 391 if (buildCounterContextRule < 3) { |
392 o.provided = buildUnnamed1506(); | 392 o.provided = buildUnnamed1563(); |
393 o.requested = buildUnnamed1507(); | 393 o.requested = buildUnnamed1564(); |
394 o.selector = "foo"; | 394 o.selector = "foo"; |
395 } | 395 } |
396 buildCounterContextRule--; | 396 buildCounterContextRule--; |
397 return o; | 397 return o; |
398 } | 398 } |
399 | 399 |
400 checkContextRule(api.ContextRule o) { | 400 checkContextRule(api.ContextRule o) { |
401 buildCounterContextRule++; | 401 buildCounterContextRule++; |
402 if (buildCounterContextRule < 3) { | 402 if (buildCounterContextRule < 3) { |
403 checkUnnamed1506(o.provided); | 403 checkUnnamed1563(o.provided); |
404 checkUnnamed1507(o.requested); | 404 checkUnnamed1564(o.requested); |
405 unittest.expect(o.selector, unittest.equals('foo')); | 405 unittest.expect(o.selector, unittest.equals('foo')); |
406 } | 406 } |
407 buildCounterContextRule--; | 407 buildCounterContextRule--; |
408 } | 408 } |
409 | 409 |
410 core.int buildCounterControl = 0; | 410 core.int buildCounterControl = 0; |
411 buildControl() { | 411 buildControl() { |
412 var o = new api.Control(); | 412 var o = new api.Control(); |
413 buildCounterControl++; | 413 buildCounterControl++; |
414 if (buildCounterControl < 3) { | 414 if (buildCounterControl < 3) { |
415 o.environment = "foo"; | 415 o.environment = "foo"; |
416 } | 416 } |
417 buildCounterControl--; | 417 buildCounterControl--; |
418 return o; | 418 return o; |
419 } | 419 } |
420 | 420 |
421 checkControl(api.Control o) { | 421 checkControl(api.Control o) { |
422 buildCounterControl++; | 422 buildCounterControl++; |
423 if (buildCounterControl < 3) { | 423 if (buildCounterControl < 3) { |
424 unittest.expect(o.environment, unittest.equals('foo')); | 424 unittest.expect(o.environment, unittest.equals('foo')); |
425 } | 425 } |
426 buildCounterControl--; | 426 buildCounterControl--; |
427 } | 427 } |
428 | 428 |
429 buildUnnamed1508() { | 429 buildUnnamed1565() { |
430 var o = new core.List<api.CustomErrorRule>(); | 430 var o = new core.List<api.CustomErrorRule>(); |
431 o.add(buildCustomErrorRule()); | 431 o.add(buildCustomErrorRule()); |
432 o.add(buildCustomErrorRule()); | 432 o.add(buildCustomErrorRule()); |
433 return o; | 433 return o; |
434 } | 434 } |
435 | 435 |
436 checkUnnamed1508(core.List<api.CustomErrorRule> o) { | 436 checkUnnamed1565(core.List<api.CustomErrorRule> o) { |
437 unittest.expect(o, unittest.hasLength(2)); | 437 unittest.expect(o, unittest.hasLength(2)); |
438 checkCustomErrorRule(o[0]); | 438 checkCustomErrorRule(o[0]); |
439 checkCustomErrorRule(o[1]); | 439 checkCustomErrorRule(o[1]); |
440 } | 440 } |
441 | 441 |
442 buildUnnamed1509() { | 442 buildUnnamed1566() { |
443 var o = new core.List<core.String>(); | 443 var o = new core.List<core.String>(); |
444 o.add("foo"); | 444 o.add("foo"); |
445 o.add("foo"); | 445 o.add("foo"); |
446 return o; | 446 return o; |
447 } | 447 } |
448 | 448 |
449 checkUnnamed1509(core.List<core.String> o) { | 449 checkUnnamed1566(core.List<core.String> o) { |
450 unittest.expect(o, unittest.hasLength(2)); | 450 unittest.expect(o, unittest.hasLength(2)); |
451 unittest.expect(o[0], unittest.equals('foo')); | 451 unittest.expect(o[0], unittest.equals('foo')); |
452 unittest.expect(o[1], unittest.equals('foo')); | 452 unittest.expect(o[1], unittest.equals('foo')); |
453 } | 453 } |
454 | 454 |
455 core.int buildCounterCustomError = 0; | 455 core.int buildCounterCustomError = 0; |
456 buildCustomError() { | 456 buildCustomError() { |
457 var o = new api.CustomError(); | 457 var o = new api.CustomError(); |
458 buildCounterCustomError++; | 458 buildCounterCustomError++; |
459 if (buildCounterCustomError < 3) { | 459 if (buildCounterCustomError < 3) { |
460 o.rules = buildUnnamed1508(); | 460 o.rules = buildUnnamed1565(); |
461 o.types = buildUnnamed1509(); | 461 o.types = buildUnnamed1566(); |
462 } | 462 } |
463 buildCounterCustomError--; | 463 buildCounterCustomError--; |
464 return o; | 464 return o; |
465 } | 465 } |
466 | 466 |
467 checkCustomError(api.CustomError o) { | 467 checkCustomError(api.CustomError o) { |
468 buildCounterCustomError++; | 468 buildCounterCustomError++; |
469 if (buildCounterCustomError < 3) { | 469 if (buildCounterCustomError < 3) { |
470 checkUnnamed1508(o.rules); | 470 checkUnnamed1565(o.rules); |
471 checkUnnamed1509(o.types); | 471 checkUnnamed1566(o.types); |
472 } | 472 } |
473 buildCounterCustomError--; | 473 buildCounterCustomError--; |
474 } | 474 } |
475 | 475 |
476 core.int buildCounterCustomErrorRule = 0; | 476 core.int buildCounterCustomErrorRule = 0; |
477 buildCustomErrorRule() { | 477 buildCustomErrorRule() { |
478 var o = new api.CustomErrorRule(); | 478 var o = new api.CustomErrorRule(); |
479 buildCounterCustomErrorRule++; | 479 buildCounterCustomErrorRule++; |
480 if (buildCounterCustomErrorRule < 3) { | 480 if (buildCounterCustomErrorRule < 3) { |
481 o.isErrorType = true; | 481 o.isErrorType = true; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 return o; | 525 return o; |
526 } | 526 } |
527 | 527 |
528 checkDisableServiceRequest(api.DisableServiceRequest o) { | 528 checkDisableServiceRequest(api.DisableServiceRequest o) { |
529 buildCounterDisableServiceRequest++; | 529 buildCounterDisableServiceRequest++; |
530 if (buildCounterDisableServiceRequest < 3) { | 530 if (buildCounterDisableServiceRequest < 3) { |
531 } | 531 } |
532 buildCounterDisableServiceRequest--; | 532 buildCounterDisableServiceRequest--; |
533 } | 533 } |
534 | 534 |
535 buildUnnamed1510() { | 535 buildUnnamed1567() { |
536 var o = new core.List<api.Page>(); | 536 var o = new core.List<api.Page>(); |
537 o.add(buildPage()); | 537 o.add(buildPage()); |
538 o.add(buildPage()); | 538 o.add(buildPage()); |
539 return o; | 539 return o; |
540 } | 540 } |
541 | 541 |
542 checkUnnamed1510(core.List<api.Page> o) { | 542 checkUnnamed1567(core.List<api.Page> o) { |
543 unittest.expect(o, unittest.hasLength(2)); | 543 unittest.expect(o, unittest.hasLength(2)); |
544 checkPage(o[0]); | 544 checkPage(o[0]); |
545 checkPage(o[1]); | 545 checkPage(o[1]); |
546 } | 546 } |
547 | 547 |
548 buildUnnamed1511() { | 548 buildUnnamed1568() { |
549 var o = new core.List<api.DocumentationRule>(); | 549 var o = new core.List<api.DocumentationRule>(); |
550 o.add(buildDocumentationRule()); | 550 o.add(buildDocumentationRule()); |
551 o.add(buildDocumentationRule()); | 551 o.add(buildDocumentationRule()); |
552 return o; | 552 return o; |
553 } | 553 } |
554 | 554 |
555 checkUnnamed1511(core.List<api.DocumentationRule> o) { | 555 checkUnnamed1568(core.List<api.DocumentationRule> o) { |
556 unittest.expect(o, unittest.hasLength(2)); | 556 unittest.expect(o, unittest.hasLength(2)); |
557 checkDocumentationRule(o[0]); | 557 checkDocumentationRule(o[0]); |
558 checkDocumentationRule(o[1]); | 558 checkDocumentationRule(o[1]); |
559 } | 559 } |
560 | 560 |
561 core.int buildCounterDocumentation = 0; | 561 core.int buildCounterDocumentation = 0; |
562 buildDocumentation() { | 562 buildDocumentation() { |
563 var o = new api.Documentation(); | 563 var o = new api.Documentation(); |
564 buildCounterDocumentation++; | 564 buildCounterDocumentation++; |
565 if (buildCounterDocumentation < 3) { | 565 if (buildCounterDocumentation < 3) { |
566 o.documentationRootUrl = "foo"; | 566 o.documentationRootUrl = "foo"; |
567 o.overview = "foo"; | 567 o.overview = "foo"; |
568 o.pages = buildUnnamed1510(); | 568 o.pages = buildUnnamed1567(); |
569 o.rules = buildUnnamed1511(); | 569 o.rules = buildUnnamed1568(); |
570 o.summary = "foo"; | 570 o.summary = "foo"; |
571 } | 571 } |
572 buildCounterDocumentation--; | 572 buildCounterDocumentation--; |
573 return o; | 573 return o; |
574 } | 574 } |
575 | 575 |
576 checkDocumentation(api.Documentation o) { | 576 checkDocumentation(api.Documentation o) { |
577 buildCounterDocumentation++; | 577 buildCounterDocumentation++; |
578 if (buildCounterDocumentation < 3) { | 578 if (buildCounterDocumentation < 3) { |
579 unittest.expect(o.documentationRootUrl, unittest.equals('foo')); | 579 unittest.expect(o.documentationRootUrl, unittest.equals('foo')); |
580 unittest.expect(o.overview, unittest.equals('foo')); | 580 unittest.expect(o.overview, unittest.equals('foo')); |
581 checkUnnamed1510(o.pages); | 581 checkUnnamed1567(o.pages); |
582 checkUnnamed1511(o.rules); | 582 checkUnnamed1568(o.rules); |
583 unittest.expect(o.summary, unittest.equals('foo')); | 583 unittest.expect(o.summary, unittest.equals('foo')); |
584 } | 584 } |
585 buildCounterDocumentation--; | 585 buildCounterDocumentation--; |
586 } | 586 } |
587 | 587 |
588 core.int buildCounterDocumentationRule = 0; | 588 core.int buildCounterDocumentationRule = 0; |
589 buildDocumentationRule() { | 589 buildDocumentationRule() { |
590 var o = new api.DocumentationRule(); | 590 var o = new api.DocumentationRule(); |
591 buildCounterDocumentationRule++; | 591 buildCounterDocumentationRule++; |
592 if (buildCounterDocumentationRule < 3) { | 592 if (buildCounterDocumentationRule < 3) { |
(...skipping 25 matching lines...) Expand all Loading... |
618 return o; | 618 return o; |
619 } | 619 } |
620 | 620 |
621 checkEnableServiceRequest(api.EnableServiceRequest o) { | 621 checkEnableServiceRequest(api.EnableServiceRequest o) { |
622 buildCounterEnableServiceRequest++; | 622 buildCounterEnableServiceRequest++; |
623 if (buildCounterEnableServiceRequest < 3) { | 623 if (buildCounterEnableServiceRequest < 3) { |
624 } | 624 } |
625 buildCounterEnableServiceRequest--; | 625 buildCounterEnableServiceRequest--; |
626 } | 626 } |
627 | 627 |
628 buildUnnamed1512() { | 628 buildUnnamed1569() { |
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 checkUnnamed1512(core.List<core.String> o) { | 635 checkUnnamed1569(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 buildUnnamed1513() { | 641 buildUnnamed1570() { |
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 checkUnnamed1513(core.List<core.String> o) { | 648 checkUnnamed1570(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 buildUnnamed1514() { | 654 buildUnnamed1571() { |
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 checkUnnamed1514(core.List<core.String> o) { | 661 checkUnnamed1571(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 = buildUnnamed1512(); | 672 o.aliases = buildUnnamed1569(); |
673 o.allowCors = true; | 673 o.allowCors = true; |
674 o.apis = buildUnnamed1513(); | 674 o.apis = buildUnnamed1570(); |
675 o.features = buildUnnamed1514(); | 675 o.features = buildUnnamed1571(); |
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 checkUnnamed1512(o.aliases); | 685 checkUnnamed1569(o.aliases); |
686 unittest.expect(o.allowCors, unittest.isTrue); | 686 unittest.expect(o.allowCors, unittest.isTrue); |
687 checkUnnamed1513(o.apis); | 687 checkUnnamed1570(o.apis); |
688 checkUnnamed1514(o.features); | 688 checkUnnamed1571(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 buildUnnamed1515() { | 694 buildUnnamed1572() { |
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 checkUnnamed1515(core.List<api.EnumValue> o) { | 701 checkUnnamed1572(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 buildUnnamed1516() { | 707 buildUnnamed1573() { |
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 checkUnnamed1516(core.List<api.Option> o) { | 714 checkUnnamed1573(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 = buildUnnamed1515(); | 725 o.enumvalue = buildUnnamed1572(); |
726 o.name = "foo"; | 726 o.name = "foo"; |
727 o.options = buildUnnamed1516(); | 727 o.options = buildUnnamed1573(); |
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 checkUnnamed1515(o.enumvalue); | 738 checkUnnamed1572(o.enumvalue); |
739 unittest.expect(o.name, unittest.equals('foo')); | 739 unittest.expect(o.name, unittest.equals('foo')); |
740 checkUnnamed1516(o.options); | 740 checkUnnamed1573(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 buildUnnamed1517() { | 747 buildUnnamed1574() { |
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 checkUnnamed1517(core.List<api.Option> o) { | 754 checkUnnamed1574(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 = buildUnnamed1517(); | 767 o.options = buildUnnamed1574(); |
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 checkUnnamed1517(o.options); | 778 checkUnnamed1574(o.options); |
779 } | 779 } |
780 buildCounterEnumValue--; | 780 buildCounterEnumValue--; |
781 } | 781 } |
782 | 782 |
783 core.int buildCounterExperimental = 0; | 783 core.int buildCounterExperimental = 0; |
784 buildExperimental() { | 784 buildExperimental() { |
785 var o = new api.Experimental(); | 785 var o = new api.Experimental(); |
786 buildCounterExperimental++; | 786 buildCounterExperimental++; |
787 if (buildCounterExperimental < 3) { | 787 if (buildCounterExperimental < 3) { |
788 o.authorization = buildAuthorizationConfig(); | 788 o.authorization = buildAuthorizationConfig(); |
789 } | 789 } |
790 buildCounterExperimental--; | 790 buildCounterExperimental--; |
791 return o; | 791 return o; |
792 } | 792 } |
793 | 793 |
794 checkExperimental(api.Experimental o) { | 794 checkExperimental(api.Experimental o) { |
795 buildCounterExperimental++; | 795 buildCounterExperimental++; |
796 if (buildCounterExperimental < 3) { | 796 if (buildCounterExperimental < 3) { |
797 checkAuthorizationConfig(o.authorization); | 797 checkAuthorizationConfig(o.authorization); |
798 } | 798 } |
799 buildCounterExperimental--; | 799 buildCounterExperimental--; |
800 } | 800 } |
801 | 801 |
802 buildUnnamed1518() { | 802 buildUnnamed1575() { |
803 var o = new core.List<api.Option>(); | 803 var o = new core.List<api.Option>(); |
804 o.add(buildOption()); | 804 o.add(buildOption()); |
805 o.add(buildOption()); | 805 o.add(buildOption()); |
806 return o; | 806 return o; |
807 } | 807 } |
808 | 808 |
809 checkUnnamed1518(core.List<api.Option> o) { | 809 checkUnnamed1575(core.List<api.Option> o) { |
810 unittest.expect(o, unittest.hasLength(2)); | 810 unittest.expect(o, unittest.hasLength(2)); |
811 checkOption(o[0]); | 811 checkOption(o[0]); |
812 checkOption(o[1]); | 812 checkOption(o[1]); |
813 } | 813 } |
814 | 814 |
815 core.int buildCounterField = 0; | 815 core.int buildCounterField = 0; |
816 buildField() { | 816 buildField() { |
817 var o = new api.Field(); | 817 var o = new api.Field(); |
818 buildCounterField++; | 818 buildCounterField++; |
819 if (buildCounterField < 3) { | 819 if (buildCounterField < 3) { |
820 o.cardinality = "foo"; | 820 o.cardinality = "foo"; |
821 o.defaultValue = "foo"; | 821 o.defaultValue = "foo"; |
822 o.jsonName = "foo"; | 822 o.jsonName = "foo"; |
823 o.kind = "foo"; | 823 o.kind = "foo"; |
824 o.name = "foo"; | 824 o.name = "foo"; |
825 o.number = 42; | 825 o.number = 42; |
826 o.oneofIndex = 42; | 826 o.oneofIndex = 42; |
827 o.options = buildUnnamed1518(); | 827 o.options = buildUnnamed1575(); |
828 o.packed = true; | 828 o.packed = true; |
829 o.typeUrl = "foo"; | 829 o.typeUrl = "foo"; |
830 } | 830 } |
831 buildCounterField--; | 831 buildCounterField--; |
832 return o; | 832 return o; |
833 } | 833 } |
834 | 834 |
835 checkField(api.Field o) { | 835 checkField(api.Field o) { |
836 buildCounterField++; | 836 buildCounterField++; |
837 if (buildCounterField < 3) { | 837 if (buildCounterField < 3) { |
838 unittest.expect(o.cardinality, unittest.equals('foo')); | 838 unittest.expect(o.cardinality, unittest.equals('foo')); |
839 unittest.expect(o.defaultValue, unittest.equals('foo')); | 839 unittest.expect(o.defaultValue, unittest.equals('foo')); |
840 unittest.expect(o.jsonName, unittest.equals('foo')); | 840 unittest.expect(o.jsonName, unittest.equals('foo')); |
841 unittest.expect(o.kind, unittest.equals('foo')); | 841 unittest.expect(o.kind, unittest.equals('foo')); |
842 unittest.expect(o.name, unittest.equals('foo')); | 842 unittest.expect(o.name, unittest.equals('foo')); |
843 unittest.expect(o.number, unittest.equals(42)); | 843 unittest.expect(o.number, unittest.equals(42)); |
844 unittest.expect(o.oneofIndex, unittest.equals(42)); | 844 unittest.expect(o.oneofIndex, unittest.equals(42)); |
845 checkUnnamed1518(o.options); | 845 checkUnnamed1575(o.options); |
846 unittest.expect(o.packed, unittest.isTrue); | 846 unittest.expect(o.packed, unittest.isTrue); |
847 unittest.expect(o.typeUrl, unittest.equals('foo')); | 847 unittest.expect(o.typeUrl, unittest.equals('foo')); |
848 } | 848 } |
849 buildCounterField--; | 849 buildCounterField--; |
850 } | 850 } |
851 | 851 |
852 buildUnnamed1519() { | 852 buildUnnamed1576() { |
853 var o = new core.List<api.HttpRule>(); | 853 var o = new core.List<api.HttpRule>(); |
854 o.add(buildHttpRule()); | 854 o.add(buildHttpRule()); |
855 o.add(buildHttpRule()); | 855 o.add(buildHttpRule()); |
856 return o; | 856 return o; |
857 } | 857 } |
858 | 858 |
859 checkUnnamed1519(core.List<api.HttpRule> o) { | 859 checkUnnamed1576(core.List<api.HttpRule> o) { |
860 unittest.expect(o, unittest.hasLength(2)); | 860 unittest.expect(o, unittest.hasLength(2)); |
861 checkHttpRule(o[0]); | 861 checkHttpRule(o[0]); |
862 checkHttpRule(o[1]); | 862 checkHttpRule(o[1]); |
863 } | 863 } |
864 | 864 |
865 core.int buildCounterHttp = 0; | 865 core.int buildCounterHttp = 0; |
866 buildHttp() { | 866 buildHttp() { |
867 var o = new api.Http(); | 867 var o = new api.Http(); |
868 buildCounterHttp++; | 868 buildCounterHttp++; |
869 if (buildCounterHttp < 3) { | 869 if (buildCounterHttp < 3) { |
870 o.rules = buildUnnamed1519(); | 870 o.rules = buildUnnamed1576(); |
871 } | 871 } |
872 buildCounterHttp--; | 872 buildCounterHttp--; |
873 return o; | 873 return o; |
874 } | 874 } |
875 | 875 |
876 checkHttp(api.Http o) { | 876 checkHttp(api.Http o) { |
877 buildCounterHttp++; | 877 buildCounterHttp++; |
878 if (buildCounterHttp < 3) { | 878 if (buildCounterHttp < 3) { |
879 checkUnnamed1519(o.rules); | 879 checkUnnamed1576(o.rules); |
880 } | 880 } |
881 buildCounterHttp--; | 881 buildCounterHttp--; |
882 } | 882 } |
883 | 883 |
884 buildUnnamed1520() { | 884 buildUnnamed1577() { |
885 var o = new core.List<api.HttpRule>(); | 885 var o = new core.List<api.HttpRule>(); |
886 o.add(buildHttpRule()); | 886 o.add(buildHttpRule()); |
887 o.add(buildHttpRule()); | 887 o.add(buildHttpRule()); |
888 return o; | 888 return o; |
889 } | 889 } |
890 | 890 |
891 checkUnnamed1520(core.List<api.HttpRule> o) { | 891 checkUnnamed1577(core.List<api.HttpRule> o) { |
892 unittest.expect(o, unittest.hasLength(2)); | 892 unittest.expect(o, unittest.hasLength(2)); |
893 checkHttpRule(o[0]); | 893 checkHttpRule(o[0]); |
894 checkHttpRule(o[1]); | 894 checkHttpRule(o[1]); |
895 } | 895 } |
896 | 896 |
897 core.int buildCounterHttpRule = 0; | 897 core.int buildCounterHttpRule = 0; |
898 buildHttpRule() { | 898 buildHttpRule() { |
899 var o = new api.HttpRule(); | 899 var o = new api.HttpRule(); |
900 buildCounterHttpRule++; | 900 buildCounterHttpRule++; |
901 if (buildCounterHttpRule < 3) { | 901 if (buildCounterHttpRule < 3) { |
902 o.additionalBindings = buildUnnamed1520(); | 902 o.additionalBindings = buildUnnamed1577(); |
903 o.body = "foo"; | 903 o.body = "foo"; |
904 o.custom = buildCustomHttpPattern(); | 904 o.custom = buildCustomHttpPattern(); |
905 o.delete = "foo"; | 905 o.delete = "foo"; |
906 o.get = "foo"; | 906 o.get = "foo"; |
907 o.mediaDownload = buildMediaDownload(); | 907 o.mediaDownload = buildMediaDownload(); |
908 o.mediaUpload = buildMediaUpload(); | 908 o.mediaUpload = buildMediaUpload(); |
909 o.patch = "foo"; | 909 o.patch = "foo"; |
910 o.post = "foo"; | 910 o.post = "foo"; |
911 o.put = "foo"; | 911 o.put = "foo"; |
912 o.responseBody = "foo"; | 912 o.responseBody = "foo"; |
913 o.selector = "foo"; | 913 o.selector = "foo"; |
914 } | 914 } |
915 buildCounterHttpRule--; | 915 buildCounterHttpRule--; |
916 return o; | 916 return o; |
917 } | 917 } |
918 | 918 |
919 checkHttpRule(api.HttpRule o) { | 919 checkHttpRule(api.HttpRule o) { |
920 buildCounterHttpRule++; | 920 buildCounterHttpRule++; |
921 if (buildCounterHttpRule < 3) { | 921 if (buildCounterHttpRule < 3) { |
922 checkUnnamed1520(o.additionalBindings); | 922 checkUnnamed1577(o.additionalBindings); |
923 unittest.expect(o.body, unittest.equals('foo')); | 923 unittest.expect(o.body, unittest.equals('foo')); |
924 checkCustomHttpPattern(o.custom); | 924 checkCustomHttpPattern(o.custom); |
925 unittest.expect(o.delete, unittest.equals('foo')); | 925 unittest.expect(o.delete, unittest.equals('foo')); |
926 unittest.expect(o.get, unittest.equals('foo')); | 926 unittest.expect(o.get, unittest.equals('foo')); |
927 checkMediaDownload(o.mediaDownload); | 927 checkMediaDownload(o.mediaDownload); |
928 checkMediaUpload(o.mediaUpload); | 928 checkMediaUpload(o.mediaUpload); |
929 unittest.expect(o.patch, unittest.equals('foo')); | 929 unittest.expect(o.patch, unittest.equals('foo')); |
930 unittest.expect(o.post, unittest.equals('foo')); | 930 unittest.expect(o.post, unittest.equals('foo')); |
931 unittest.expect(o.put, unittest.equals('foo')); | 931 unittest.expect(o.put, unittest.equals('foo')); |
932 unittest.expect(o.responseBody, unittest.equals('foo')); | 932 unittest.expect(o.responseBody, unittest.equals('foo')); |
(...skipping 18 matching lines...) Expand all Loading... |
951 checkLabelDescriptor(api.LabelDescriptor o) { | 951 checkLabelDescriptor(api.LabelDescriptor o) { |
952 buildCounterLabelDescriptor++; | 952 buildCounterLabelDescriptor++; |
953 if (buildCounterLabelDescriptor < 3) { | 953 if (buildCounterLabelDescriptor < 3) { |
954 unittest.expect(o.description, unittest.equals('foo')); | 954 unittest.expect(o.description, unittest.equals('foo')); |
955 unittest.expect(o.key, unittest.equals('foo')); | 955 unittest.expect(o.key, unittest.equals('foo')); |
956 unittest.expect(o.valueType, unittest.equals('foo')); | 956 unittest.expect(o.valueType, unittest.equals('foo')); |
957 } | 957 } |
958 buildCounterLabelDescriptor--; | 958 buildCounterLabelDescriptor--; |
959 } | 959 } |
960 | 960 |
961 buildUnnamed1521() { | 961 buildUnnamed1578() { |
962 var o = new core.List<api.PublishedService>(); | 962 var o = new core.List<api.PublishedService>(); |
963 o.add(buildPublishedService()); | 963 o.add(buildPublishedService()); |
964 o.add(buildPublishedService()); | 964 o.add(buildPublishedService()); |
965 return o; | 965 return o; |
966 } | 966 } |
967 | 967 |
968 checkUnnamed1521(core.List<api.PublishedService> o) { | 968 checkUnnamed1578(core.List<api.PublishedService> o) { |
969 unittest.expect(o, unittest.hasLength(2)); | 969 unittest.expect(o, unittest.hasLength(2)); |
970 checkPublishedService(o[0]); | 970 checkPublishedService(o[0]); |
971 checkPublishedService(o[1]); | 971 checkPublishedService(o[1]); |
972 } | 972 } |
973 | 973 |
974 core.int buildCounterListEnabledServicesResponse = 0; | 974 core.int buildCounterListEnabledServicesResponse = 0; |
975 buildListEnabledServicesResponse() { | 975 buildListEnabledServicesResponse() { |
976 var o = new api.ListEnabledServicesResponse(); | 976 var o = new api.ListEnabledServicesResponse(); |
977 buildCounterListEnabledServicesResponse++; | 977 buildCounterListEnabledServicesResponse++; |
978 if (buildCounterListEnabledServicesResponse < 3) { | 978 if (buildCounterListEnabledServicesResponse < 3) { |
979 o.nextPageToken = "foo"; | 979 o.nextPageToken = "foo"; |
980 o.services = buildUnnamed1521(); | 980 o.services = buildUnnamed1578(); |
981 } | 981 } |
982 buildCounterListEnabledServicesResponse--; | 982 buildCounterListEnabledServicesResponse--; |
983 return o; | 983 return o; |
984 } | 984 } |
985 | 985 |
986 checkListEnabledServicesResponse(api.ListEnabledServicesResponse o) { | 986 checkListEnabledServicesResponse(api.ListEnabledServicesResponse o) { |
987 buildCounterListEnabledServicesResponse++; | 987 buildCounterListEnabledServicesResponse++; |
988 if (buildCounterListEnabledServicesResponse < 3) { | 988 if (buildCounterListEnabledServicesResponse < 3) { |
989 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 989 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
990 checkUnnamed1521(o.services); | 990 checkUnnamed1578(o.services); |
991 } | 991 } |
992 buildCounterListEnabledServicesResponse--; | 992 buildCounterListEnabledServicesResponse--; |
993 } | 993 } |
994 | 994 |
995 buildUnnamed1522() { | 995 buildUnnamed1579() { |
996 var o = new core.List<api.LabelDescriptor>(); | 996 var o = new core.List<api.LabelDescriptor>(); |
997 o.add(buildLabelDescriptor()); | 997 o.add(buildLabelDescriptor()); |
998 o.add(buildLabelDescriptor()); | 998 o.add(buildLabelDescriptor()); |
999 return o; | 999 return o; |
1000 } | 1000 } |
1001 | 1001 |
1002 checkUnnamed1522(core.List<api.LabelDescriptor> o) { | 1002 checkUnnamed1579(core.List<api.LabelDescriptor> o) { |
1003 unittest.expect(o, unittest.hasLength(2)); | 1003 unittest.expect(o, unittest.hasLength(2)); |
1004 checkLabelDescriptor(o[0]); | 1004 checkLabelDescriptor(o[0]); |
1005 checkLabelDescriptor(o[1]); | 1005 checkLabelDescriptor(o[1]); |
1006 } | 1006 } |
1007 | 1007 |
1008 core.int buildCounterLogDescriptor = 0; | 1008 core.int buildCounterLogDescriptor = 0; |
1009 buildLogDescriptor() { | 1009 buildLogDescriptor() { |
1010 var o = new api.LogDescriptor(); | 1010 var o = new api.LogDescriptor(); |
1011 buildCounterLogDescriptor++; | 1011 buildCounterLogDescriptor++; |
1012 if (buildCounterLogDescriptor < 3) { | 1012 if (buildCounterLogDescriptor < 3) { |
1013 o.description = "foo"; | 1013 o.description = "foo"; |
1014 o.displayName = "foo"; | 1014 o.displayName = "foo"; |
1015 o.labels = buildUnnamed1522(); | 1015 o.labels = buildUnnamed1579(); |
1016 o.name = "foo"; | 1016 o.name = "foo"; |
1017 } | 1017 } |
1018 buildCounterLogDescriptor--; | 1018 buildCounterLogDescriptor--; |
1019 return o; | 1019 return o; |
1020 } | 1020 } |
1021 | 1021 |
1022 checkLogDescriptor(api.LogDescriptor o) { | 1022 checkLogDescriptor(api.LogDescriptor o) { |
1023 buildCounterLogDescriptor++; | 1023 buildCounterLogDescriptor++; |
1024 if (buildCounterLogDescriptor < 3) { | 1024 if (buildCounterLogDescriptor < 3) { |
1025 unittest.expect(o.description, unittest.equals('foo')); | 1025 unittest.expect(o.description, unittest.equals('foo')); |
1026 unittest.expect(o.displayName, unittest.equals('foo')); | 1026 unittest.expect(o.displayName, unittest.equals('foo')); |
1027 checkUnnamed1522(o.labels); | 1027 checkUnnamed1579(o.labels); |
1028 unittest.expect(o.name, unittest.equals('foo')); | 1028 unittest.expect(o.name, unittest.equals('foo')); |
1029 } | 1029 } |
1030 buildCounterLogDescriptor--; | 1030 buildCounterLogDescriptor--; |
1031 } | 1031 } |
1032 | 1032 |
1033 buildUnnamed1523() { | 1033 buildUnnamed1580() { |
1034 var o = new core.List<api.LoggingDestination>(); | 1034 var o = new core.List<api.LoggingDestination>(); |
1035 o.add(buildLoggingDestination()); | 1035 o.add(buildLoggingDestination()); |
1036 o.add(buildLoggingDestination()); | 1036 o.add(buildLoggingDestination()); |
1037 return o; | 1037 return o; |
1038 } | 1038 } |
1039 | 1039 |
1040 checkUnnamed1523(core.List<api.LoggingDestination> o) { | 1040 checkUnnamed1580(core.List<api.LoggingDestination> o) { |
1041 unittest.expect(o, unittest.hasLength(2)); | 1041 unittest.expect(o, unittest.hasLength(2)); |
1042 checkLoggingDestination(o[0]); | 1042 checkLoggingDestination(o[0]); |
1043 checkLoggingDestination(o[1]); | 1043 checkLoggingDestination(o[1]); |
1044 } | 1044 } |
1045 | 1045 |
1046 buildUnnamed1524() { | 1046 buildUnnamed1581() { |
1047 var o = new core.List<api.LoggingDestination>(); | 1047 var o = new core.List<api.LoggingDestination>(); |
1048 o.add(buildLoggingDestination()); | 1048 o.add(buildLoggingDestination()); |
1049 o.add(buildLoggingDestination()); | 1049 o.add(buildLoggingDestination()); |
1050 return o; | 1050 return o; |
1051 } | 1051 } |
1052 | 1052 |
1053 checkUnnamed1524(core.List<api.LoggingDestination> o) { | 1053 checkUnnamed1581(core.List<api.LoggingDestination> o) { |
1054 unittest.expect(o, unittest.hasLength(2)); | 1054 unittest.expect(o, unittest.hasLength(2)); |
1055 checkLoggingDestination(o[0]); | 1055 checkLoggingDestination(o[0]); |
1056 checkLoggingDestination(o[1]); | 1056 checkLoggingDestination(o[1]); |
1057 } | 1057 } |
1058 | 1058 |
1059 core.int buildCounterLogging = 0; | 1059 core.int buildCounterLogging = 0; |
1060 buildLogging() { | 1060 buildLogging() { |
1061 var o = new api.Logging(); | 1061 var o = new api.Logging(); |
1062 buildCounterLogging++; | 1062 buildCounterLogging++; |
1063 if (buildCounterLogging < 3) { | 1063 if (buildCounterLogging < 3) { |
1064 o.consumerDestinations = buildUnnamed1523(); | 1064 o.consumerDestinations = buildUnnamed1580(); |
1065 o.producerDestinations = buildUnnamed1524(); | 1065 o.producerDestinations = buildUnnamed1581(); |
1066 } | 1066 } |
1067 buildCounterLogging--; | 1067 buildCounterLogging--; |
1068 return o; | 1068 return o; |
1069 } | 1069 } |
1070 | 1070 |
1071 checkLogging(api.Logging o) { | 1071 checkLogging(api.Logging o) { |
1072 buildCounterLogging++; | 1072 buildCounterLogging++; |
1073 if (buildCounterLogging < 3) { | 1073 if (buildCounterLogging < 3) { |
1074 checkUnnamed1523(o.consumerDestinations); | 1074 checkUnnamed1580(o.consumerDestinations); |
1075 checkUnnamed1524(o.producerDestinations); | 1075 checkUnnamed1581(o.producerDestinations); |
1076 } | 1076 } |
1077 buildCounterLogging--; | 1077 buildCounterLogging--; |
1078 } | 1078 } |
1079 | 1079 |
1080 buildUnnamed1525() { | 1080 buildUnnamed1582() { |
1081 var o = new core.List<core.String>(); | 1081 var o = new core.List<core.String>(); |
1082 o.add("foo"); | 1082 o.add("foo"); |
1083 o.add("foo"); | 1083 o.add("foo"); |
1084 return o; | 1084 return o; |
1085 } | 1085 } |
1086 | 1086 |
1087 checkUnnamed1525(core.List<core.String> o) { | 1087 checkUnnamed1582(core.List<core.String> o) { |
1088 unittest.expect(o, unittest.hasLength(2)); | 1088 unittest.expect(o, unittest.hasLength(2)); |
1089 unittest.expect(o[0], unittest.equals('foo')); | 1089 unittest.expect(o[0], unittest.equals('foo')); |
1090 unittest.expect(o[1], unittest.equals('foo')); | 1090 unittest.expect(o[1], unittest.equals('foo')); |
1091 } | 1091 } |
1092 | 1092 |
1093 core.int buildCounterLoggingDestination = 0; | 1093 core.int buildCounterLoggingDestination = 0; |
1094 buildLoggingDestination() { | 1094 buildLoggingDestination() { |
1095 var o = new api.LoggingDestination(); | 1095 var o = new api.LoggingDestination(); |
1096 buildCounterLoggingDestination++; | 1096 buildCounterLoggingDestination++; |
1097 if (buildCounterLoggingDestination < 3) { | 1097 if (buildCounterLoggingDestination < 3) { |
1098 o.logs = buildUnnamed1525(); | 1098 o.logs = buildUnnamed1582(); |
1099 o.monitoredResource = "foo"; | 1099 o.monitoredResource = "foo"; |
1100 } | 1100 } |
1101 buildCounterLoggingDestination--; | 1101 buildCounterLoggingDestination--; |
1102 return o; | 1102 return o; |
1103 } | 1103 } |
1104 | 1104 |
1105 checkLoggingDestination(api.LoggingDestination o) { | 1105 checkLoggingDestination(api.LoggingDestination o) { |
1106 buildCounterLoggingDestination++; | 1106 buildCounterLoggingDestination++; |
1107 if (buildCounterLoggingDestination < 3) { | 1107 if (buildCounterLoggingDestination < 3) { |
1108 checkUnnamed1525(o.logs); | 1108 checkUnnamed1582(o.logs); |
1109 unittest.expect(o.monitoredResource, unittest.equals('foo')); | 1109 unittest.expect(o.monitoredResource, unittest.equals('foo')); |
1110 } | 1110 } |
1111 buildCounterLoggingDestination--; | 1111 buildCounterLoggingDestination--; |
1112 } | 1112 } |
1113 | 1113 |
1114 core.int buildCounterMediaDownload = 0; | 1114 core.int buildCounterMediaDownload = 0; |
1115 buildMediaDownload() { | 1115 buildMediaDownload() { |
1116 var o = new api.MediaDownload(); | 1116 var o = new api.MediaDownload(); |
1117 buildCounterMediaDownload++; | 1117 buildCounterMediaDownload++; |
1118 if (buildCounterMediaDownload < 3) { | 1118 if (buildCounterMediaDownload < 3) { |
(...skipping 27 matching lines...) Expand all Loading... |
1146 | 1146 |
1147 checkMediaUpload(api.MediaUpload o) { | 1147 checkMediaUpload(api.MediaUpload o) { |
1148 buildCounterMediaUpload++; | 1148 buildCounterMediaUpload++; |
1149 if (buildCounterMediaUpload < 3) { | 1149 if (buildCounterMediaUpload < 3) { |
1150 unittest.expect(o.enabled, unittest.isTrue); | 1150 unittest.expect(o.enabled, unittest.isTrue); |
1151 unittest.expect(o.uploadService, unittest.equals('foo')); | 1151 unittest.expect(o.uploadService, unittest.equals('foo')); |
1152 } | 1152 } |
1153 buildCounterMediaUpload--; | 1153 buildCounterMediaUpload--; |
1154 } | 1154 } |
1155 | 1155 |
1156 buildUnnamed1526() { | 1156 buildUnnamed1583() { |
1157 var o = new core.List<api.Option>(); | 1157 var o = new core.List<api.Option>(); |
1158 o.add(buildOption()); | 1158 o.add(buildOption()); |
1159 o.add(buildOption()); | 1159 o.add(buildOption()); |
1160 return o; | 1160 return o; |
1161 } | 1161 } |
1162 | 1162 |
1163 checkUnnamed1526(core.List<api.Option> o) { | 1163 checkUnnamed1583(core.List<api.Option> o) { |
1164 unittest.expect(o, unittest.hasLength(2)); | 1164 unittest.expect(o, unittest.hasLength(2)); |
1165 checkOption(o[0]); | 1165 checkOption(o[0]); |
1166 checkOption(o[1]); | 1166 checkOption(o[1]); |
1167 } | 1167 } |
1168 | 1168 |
1169 core.int buildCounterMethod = 0; | 1169 core.int buildCounterMethod = 0; |
1170 buildMethod() { | 1170 buildMethod() { |
1171 var o = new api.Method(); | 1171 var o = new api.Method(); |
1172 buildCounterMethod++; | 1172 buildCounterMethod++; |
1173 if (buildCounterMethod < 3) { | 1173 if (buildCounterMethod < 3) { |
1174 o.name = "foo"; | 1174 o.name = "foo"; |
1175 o.options = buildUnnamed1526(); | 1175 o.options = buildUnnamed1583(); |
1176 o.requestStreaming = true; | 1176 o.requestStreaming = true; |
1177 o.requestTypeUrl = "foo"; | 1177 o.requestTypeUrl = "foo"; |
1178 o.responseStreaming = true; | 1178 o.responseStreaming = true; |
1179 o.responseTypeUrl = "foo"; | 1179 o.responseTypeUrl = "foo"; |
1180 o.syntax = "foo"; | 1180 o.syntax = "foo"; |
1181 } | 1181 } |
1182 buildCounterMethod--; | 1182 buildCounterMethod--; |
1183 return o; | 1183 return o; |
1184 } | 1184 } |
1185 | 1185 |
1186 checkMethod(api.Method o) { | 1186 checkMethod(api.Method o) { |
1187 buildCounterMethod++; | 1187 buildCounterMethod++; |
1188 if (buildCounterMethod < 3) { | 1188 if (buildCounterMethod < 3) { |
1189 unittest.expect(o.name, unittest.equals('foo')); | 1189 unittest.expect(o.name, unittest.equals('foo')); |
1190 checkUnnamed1526(o.options); | 1190 checkUnnamed1583(o.options); |
1191 unittest.expect(o.requestStreaming, unittest.isTrue); | 1191 unittest.expect(o.requestStreaming, unittest.isTrue); |
1192 unittest.expect(o.requestTypeUrl, unittest.equals('foo')); | 1192 unittest.expect(o.requestTypeUrl, unittest.equals('foo')); |
1193 unittest.expect(o.responseStreaming, unittest.isTrue); | 1193 unittest.expect(o.responseStreaming, unittest.isTrue); |
1194 unittest.expect(o.responseTypeUrl, unittest.equals('foo')); | 1194 unittest.expect(o.responseTypeUrl, unittest.equals('foo')); |
1195 unittest.expect(o.syntax, unittest.equals('foo')); | 1195 unittest.expect(o.syntax, unittest.equals('foo')); |
1196 } | 1196 } |
1197 buildCounterMethod--; | 1197 buildCounterMethod--; |
1198 } | 1198 } |
1199 | 1199 |
1200 buildUnnamed1527() { | 1200 buildUnnamed1584() { |
1201 var o = new core.List<api.LabelDescriptor>(); | 1201 var o = new core.List<api.LabelDescriptor>(); |
1202 o.add(buildLabelDescriptor()); | 1202 o.add(buildLabelDescriptor()); |
1203 o.add(buildLabelDescriptor()); | 1203 o.add(buildLabelDescriptor()); |
1204 return o; | 1204 return o; |
1205 } | 1205 } |
1206 | 1206 |
1207 checkUnnamed1527(core.List<api.LabelDescriptor> o) { | 1207 checkUnnamed1584(core.List<api.LabelDescriptor> o) { |
1208 unittest.expect(o, unittest.hasLength(2)); | 1208 unittest.expect(o, unittest.hasLength(2)); |
1209 checkLabelDescriptor(o[0]); | 1209 checkLabelDescriptor(o[0]); |
1210 checkLabelDescriptor(o[1]); | 1210 checkLabelDescriptor(o[1]); |
1211 } | 1211 } |
1212 | 1212 |
1213 core.int buildCounterMetricDescriptor = 0; | 1213 core.int buildCounterMetricDescriptor = 0; |
1214 buildMetricDescriptor() { | 1214 buildMetricDescriptor() { |
1215 var o = new api.MetricDescriptor(); | 1215 var o = new api.MetricDescriptor(); |
1216 buildCounterMetricDescriptor++; | 1216 buildCounterMetricDescriptor++; |
1217 if (buildCounterMetricDescriptor < 3) { | 1217 if (buildCounterMetricDescriptor < 3) { |
1218 o.description = "foo"; | 1218 o.description = "foo"; |
1219 o.displayName = "foo"; | 1219 o.displayName = "foo"; |
1220 o.labels = buildUnnamed1527(); | 1220 o.labels = buildUnnamed1584(); |
1221 o.metricKind = "foo"; | 1221 o.metricKind = "foo"; |
1222 o.name = "foo"; | 1222 o.name = "foo"; |
1223 o.type = "foo"; | 1223 o.type = "foo"; |
1224 o.unit = "foo"; | 1224 o.unit = "foo"; |
1225 o.valueType = "foo"; | 1225 o.valueType = "foo"; |
1226 } | 1226 } |
1227 buildCounterMetricDescriptor--; | 1227 buildCounterMetricDescriptor--; |
1228 return o; | 1228 return o; |
1229 } | 1229 } |
1230 | 1230 |
1231 checkMetricDescriptor(api.MetricDescriptor o) { | 1231 checkMetricDescriptor(api.MetricDescriptor o) { |
1232 buildCounterMetricDescriptor++; | 1232 buildCounterMetricDescriptor++; |
1233 if (buildCounterMetricDescriptor < 3) { | 1233 if (buildCounterMetricDescriptor < 3) { |
1234 unittest.expect(o.description, unittest.equals('foo')); | 1234 unittest.expect(o.description, unittest.equals('foo')); |
1235 unittest.expect(o.displayName, unittest.equals('foo')); | 1235 unittest.expect(o.displayName, unittest.equals('foo')); |
1236 checkUnnamed1527(o.labels); | 1236 checkUnnamed1584(o.labels); |
1237 unittest.expect(o.metricKind, unittest.equals('foo')); | 1237 unittest.expect(o.metricKind, unittest.equals('foo')); |
1238 unittest.expect(o.name, unittest.equals('foo')); | 1238 unittest.expect(o.name, unittest.equals('foo')); |
1239 unittest.expect(o.type, unittest.equals('foo')); | 1239 unittest.expect(o.type, unittest.equals('foo')); |
1240 unittest.expect(o.unit, unittest.equals('foo')); | 1240 unittest.expect(o.unit, unittest.equals('foo')); |
1241 unittest.expect(o.valueType, unittest.equals('foo')); | 1241 unittest.expect(o.valueType, unittest.equals('foo')); |
1242 } | 1242 } |
1243 buildCounterMetricDescriptor--; | 1243 buildCounterMetricDescriptor--; |
1244 } | 1244 } |
1245 | 1245 |
1246 core.int buildCounterMixin = 0; | 1246 core.int buildCounterMixin = 0; |
(...skipping 10 matching lines...) Expand all Loading... |
1257 | 1257 |
1258 checkMixin(api.Mixin o) { | 1258 checkMixin(api.Mixin o) { |
1259 buildCounterMixin++; | 1259 buildCounterMixin++; |
1260 if (buildCounterMixin < 3) { | 1260 if (buildCounterMixin < 3) { |
1261 unittest.expect(o.name, unittest.equals('foo')); | 1261 unittest.expect(o.name, unittest.equals('foo')); |
1262 unittest.expect(o.root, unittest.equals('foo')); | 1262 unittest.expect(o.root, unittest.equals('foo')); |
1263 } | 1263 } |
1264 buildCounterMixin--; | 1264 buildCounterMixin--; |
1265 } | 1265 } |
1266 | 1266 |
1267 buildUnnamed1528() { | 1267 buildUnnamed1585() { |
1268 var o = new core.List<api.LabelDescriptor>(); | 1268 var o = new core.List<api.LabelDescriptor>(); |
1269 o.add(buildLabelDescriptor()); | 1269 o.add(buildLabelDescriptor()); |
1270 o.add(buildLabelDescriptor()); | 1270 o.add(buildLabelDescriptor()); |
1271 return o; | 1271 return o; |
1272 } | 1272 } |
1273 | 1273 |
1274 checkUnnamed1528(core.List<api.LabelDescriptor> o) { | 1274 checkUnnamed1585(core.List<api.LabelDescriptor> o) { |
1275 unittest.expect(o, unittest.hasLength(2)); | 1275 unittest.expect(o, unittest.hasLength(2)); |
1276 checkLabelDescriptor(o[0]); | 1276 checkLabelDescriptor(o[0]); |
1277 checkLabelDescriptor(o[1]); | 1277 checkLabelDescriptor(o[1]); |
1278 } | 1278 } |
1279 | 1279 |
1280 core.int buildCounterMonitoredResourceDescriptor = 0; | 1280 core.int buildCounterMonitoredResourceDescriptor = 0; |
1281 buildMonitoredResourceDescriptor() { | 1281 buildMonitoredResourceDescriptor() { |
1282 var o = new api.MonitoredResourceDescriptor(); | 1282 var o = new api.MonitoredResourceDescriptor(); |
1283 buildCounterMonitoredResourceDescriptor++; | 1283 buildCounterMonitoredResourceDescriptor++; |
1284 if (buildCounterMonitoredResourceDescriptor < 3) { | 1284 if (buildCounterMonitoredResourceDescriptor < 3) { |
1285 o.description = "foo"; | 1285 o.description = "foo"; |
1286 o.displayName = "foo"; | 1286 o.displayName = "foo"; |
1287 o.labels = buildUnnamed1528(); | 1287 o.labels = buildUnnamed1585(); |
1288 o.name = "foo"; | 1288 o.name = "foo"; |
1289 o.type = "foo"; | 1289 o.type = "foo"; |
1290 } | 1290 } |
1291 buildCounterMonitoredResourceDescriptor--; | 1291 buildCounterMonitoredResourceDescriptor--; |
1292 return o; | 1292 return o; |
1293 } | 1293 } |
1294 | 1294 |
1295 checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) { | 1295 checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) { |
1296 buildCounterMonitoredResourceDescriptor++; | 1296 buildCounterMonitoredResourceDescriptor++; |
1297 if (buildCounterMonitoredResourceDescriptor < 3) { | 1297 if (buildCounterMonitoredResourceDescriptor < 3) { |
1298 unittest.expect(o.description, unittest.equals('foo')); | 1298 unittest.expect(o.description, unittest.equals('foo')); |
1299 unittest.expect(o.displayName, unittest.equals('foo')); | 1299 unittest.expect(o.displayName, unittest.equals('foo')); |
1300 checkUnnamed1528(o.labels); | 1300 checkUnnamed1585(o.labels); |
1301 unittest.expect(o.name, unittest.equals('foo')); | 1301 unittest.expect(o.name, unittest.equals('foo')); |
1302 unittest.expect(o.type, unittest.equals('foo')); | 1302 unittest.expect(o.type, unittest.equals('foo')); |
1303 } | 1303 } |
1304 buildCounterMonitoredResourceDescriptor--; | 1304 buildCounterMonitoredResourceDescriptor--; |
1305 } | 1305 } |
1306 | 1306 |
1307 buildUnnamed1529() { | 1307 buildUnnamed1586() { |
1308 var o = new core.List<api.MonitoringDestination>(); | 1308 var o = new core.List<api.MonitoringDestination>(); |
1309 o.add(buildMonitoringDestination()); | 1309 o.add(buildMonitoringDestination()); |
1310 o.add(buildMonitoringDestination()); | 1310 o.add(buildMonitoringDestination()); |
1311 return o; | 1311 return o; |
1312 } | 1312 } |
1313 | 1313 |
1314 checkUnnamed1529(core.List<api.MonitoringDestination> o) { | 1314 checkUnnamed1586(core.List<api.MonitoringDestination> o) { |
1315 unittest.expect(o, unittest.hasLength(2)); | 1315 unittest.expect(o, unittest.hasLength(2)); |
1316 checkMonitoringDestination(o[0]); | 1316 checkMonitoringDestination(o[0]); |
1317 checkMonitoringDestination(o[1]); | 1317 checkMonitoringDestination(o[1]); |
1318 } | 1318 } |
1319 | 1319 |
1320 buildUnnamed1530() { | 1320 buildUnnamed1587() { |
1321 var o = new core.List<api.MonitoringDestination>(); | 1321 var o = new core.List<api.MonitoringDestination>(); |
1322 o.add(buildMonitoringDestination()); | 1322 o.add(buildMonitoringDestination()); |
1323 o.add(buildMonitoringDestination()); | 1323 o.add(buildMonitoringDestination()); |
1324 return o; | 1324 return o; |
1325 } | 1325 } |
1326 | 1326 |
1327 checkUnnamed1530(core.List<api.MonitoringDestination> o) { | 1327 checkUnnamed1587(core.List<api.MonitoringDestination> o) { |
1328 unittest.expect(o, unittest.hasLength(2)); | 1328 unittest.expect(o, unittest.hasLength(2)); |
1329 checkMonitoringDestination(o[0]); | 1329 checkMonitoringDestination(o[0]); |
1330 checkMonitoringDestination(o[1]); | 1330 checkMonitoringDestination(o[1]); |
1331 } | 1331 } |
1332 | 1332 |
1333 core.int buildCounterMonitoring = 0; | 1333 core.int buildCounterMonitoring = 0; |
1334 buildMonitoring() { | 1334 buildMonitoring() { |
1335 var o = new api.Monitoring(); | 1335 var o = new api.Monitoring(); |
1336 buildCounterMonitoring++; | 1336 buildCounterMonitoring++; |
1337 if (buildCounterMonitoring < 3) { | 1337 if (buildCounterMonitoring < 3) { |
1338 o.consumerDestinations = buildUnnamed1529(); | 1338 o.consumerDestinations = buildUnnamed1586(); |
1339 o.producerDestinations = buildUnnamed1530(); | 1339 o.producerDestinations = buildUnnamed1587(); |
1340 } | 1340 } |
1341 buildCounterMonitoring--; | 1341 buildCounterMonitoring--; |
1342 return o; | 1342 return o; |
1343 } | 1343 } |
1344 | 1344 |
1345 checkMonitoring(api.Monitoring o) { | 1345 checkMonitoring(api.Monitoring o) { |
1346 buildCounterMonitoring++; | 1346 buildCounterMonitoring++; |
1347 if (buildCounterMonitoring < 3) { | 1347 if (buildCounterMonitoring < 3) { |
1348 checkUnnamed1529(o.consumerDestinations); | 1348 checkUnnamed1586(o.consumerDestinations); |
1349 checkUnnamed1530(o.producerDestinations); | 1349 checkUnnamed1587(o.producerDestinations); |
1350 } | 1350 } |
1351 buildCounterMonitoring--; | 1351 buildCounterMonitoring--; |
1352 } | 1352 } |
1353 | 1353 |
1354 buildUnnamed1531() { | 1354 buildUnnamed1588() { |
1355 var o = new core.List<core.String>(); | 1355 var o = new core.List<core.String>(); |
1356 o.add("foo"); | 1356 o.add("foo"); |
1357 o.add("foo"); | 1357 o.add("foo"); |
1358 return o; | 1358 return o; |
1359 } | 1359 } |
1360 | 1360 |
1361 checkUnnamed1531(core.List<core.String> o) { | 1361 checkUnnamed1588(core.List<core.String> o) { |
1362 unittest.expect(o, unittest.hasLength(2)); | 1362 unittest.expect(o, unittest.hasLength(2)); |
1363 unittest.expect(o[0], unittest.equals('foo')); | 1363 unittest.expect(o[0], unittest.equals('foo')); |
1364 unittest.expect(o[1], unittest.equals('foo')); | 1364 unittest.expect(o[1], unittest.equals('foo')); |
1365 } | 1365 } |
1366 | 1366 |
1367 core.int buildCounterMonitoringDestination = 0; | 1367 core.int buildCounterMonitoringDestination = 0; |
1368 buildMonitoringDestination() { | 1368 buildMonitoringDestination() { |
1369 var o = new api.MonitoringDestination(); | 1369 var o = new api.MonitoringDestination(); |
1370 buildCounterMonitoringDestination++; | 1370 buildCounterMonitoringDestination++; |
1371 if (buildCounterMonitoringDestination < 3) { | 1371 if (buildCounterMonitoringDestination < 3) { |
1372 o.metrics = buildUnnamed1531(); | 1372 o.metrics = buildUnnamed1588(); |
1373 o.monitoredResource = "foo"; | 1373 o.monitoredResource = "foo"; |
1374 } | 1374 } |
1375 buildCounterMonitoringDestination--; | 1375 buildCounterMonitoringDestination--; |
1376 return o; | 1376 return o; |
1377 } | 1377 } |
1378 | 1378 |
1379 checkMonitoringDestination(api.MonitoringDestination o) { | 1379 checkMonitoringDestination(api.MonitoringDestination o) { |
1380 buildCounterMonitoringDestination++; | 1380 buildCounterMonitoringDestination++; |
1381 if (buildCounterMonitoringDestination < 3) { | 1381 if (buildCounterMonitoringDestination < 3) { |
1382 checkUnnamed1531(o.metrics); | 1382 checkUnnamed1588(o.metrics); |
1383 unittest.expect(o.monitoredResource, unittest.equals('foo')); | 1383 unittest.expect(o.monitoredResource, unittest.equals('foo')); |
1384 } | 1384 } |
1385 buildCounterMonitoringDestination--; | 1385 buildCounterMonitoringDestination--; |
1386 } | 1386 } |
1387 | 1387 |
1388 core.int buildCounterOAuthRequirements = 0; | 1388 core.int buildCounterOAuthRequirements = 0; |
1389 buildOAuthRequirements() { | 1389 buildOAuthRequirements() { |
1390 var o = new api.OAuthRequirements(); | 1390 var o = new api.OAuthRequirements(); |
1391 buildCounterOAuthRequirements++; | 1391 buildCounterOAuthRequirements++; |
1392 if (buildCounterOAuthRequirements < 3) { | 1392 if (buildCounterOAuthRequirements < 3) { |
1393 o.canonicalScopes = "foo"; | 1393 o.canonicalScopes = "foo"; |
1394 } | 1394 } |
1395 buildCounterOAuthRequirements--; | 1395 buildCounterOAuthRequirements--; |
1396 return o; | 1396 return o; |
1397 } | 1397 } |
1398 | 1398 |
1399 checkOAuthRequirements(api.OAuthRequirements o) { | 1399 checkOAuthRequirements(api.OAuthRequirements o) { |
1400 buildCounterOAuthRequirements++; | 1400 buildCounterOAuthRequirements++; |
1401 if (buildCounterOAuthRequirements < 3) { | 1401 if (buildCounterOAuthRequirements < 3) { |
1402 unittest.expect(o.canonicalScopes, unittest.equals('foo')); | 1402 unittest.expect(o.canonicalScopes, unittest.equals('foo')); |
1403 } | 1403 } |
1404 buildCounterOAuthRequirements--; | 1404 buildCounterOAuthRequirements--; |
1405 } | 1405 } |
1406 | 1406 |
1407 buildUnnamed1532() { | 1407 buildUnnamed1589() { |
1408 var o = new core.Map<core.String, core.Object>(); | 1408 var o = new core.Map<core.String, core.Object>(); |
1409 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1409 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1410 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1410 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1411 return o; | 1411 return o; |
1412 } | 1412 } |
1413 | 1413 |
1414 checkUnnamed1532(core.Map<core.String, core.Object> o) { | 1414 checkUnnamed1589(core.Map<core.String, core.Object> o) { |
1415 unittest.expect(o, unittest.hasLength(2)); | 1415 unittest.expect(o, unittest.hasLength(2)); |
1416 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt
h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"],
unittest.equals('foo')); | 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')); |
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')); | 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')); |
1418 } | 1418 } |
1419 | 1419 |
1420 buildUnnamed1533() { | 1420 buildUnnamed1590() { |
1421 var o = new core.Map<core.String, core.Object>(); | 1421 var o = new core.Map<core.String, core.Object>(); |
1422 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1422 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1423 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1423 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1424 return o; | 1424 return o; |
1425 } | 1425 } |
1426 | 1426 |
1427 checkUnnamed1533(core.Map<core.String, core.Object> o) { | 1427 checkUnnamed1590(core.Map<core.String, core.Object> o) { |
1428 unittest.expect(o, unittest.hasLength(2)); | 1428 unittest.expect(o, unittest.hasLength(2)); |
1429 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); | 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')); |
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')); | 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')); |
1431 } | 1431 } |
1432 | 1432 |
1433 core.int buildCounterOperation = 0; | 1433 core.int buildCounterOperation = 0; |
1434 buildOperation() { | 1434 buildOperation() { |
1435 var o = new api.Operation(); | 1435 var o = new api.Operation(); |
1436 buildCounterOperation++; | 1436 buildCounterOperation++; |
1437 if (buildCounterOperation < 3) { | 1437 if (buildCounterOperation < 3) { |
1438 o.done = true; | 1438 o.done = true; |
1439 o.error = buildStatus(); | 1439 o.error = buildStatus(); |
1440 o.metadata = buildUnnamed1532(); | 1440 o.metadata = buildUnnamed1589(); |
1441 o.name = "foo"; | 1441 o.name = "foo"; |
1442 o.response = buildUnnamed1533(); | 1442 o.response = buildUnnamed1590(); |
1443 } | 1443 } |
1444 buildCounterOperation--; | 1444 buildCounterOperation--; |
1445 return o; | 1445 return o; |
1446 } | 1446 } |
1447 | 1447 |
1448 checkOperation(api.Operation o) { | 1448 checkOperation(api.Operation o) { |
1449 buildCounterOperation++; | 1449 buildCounterOperation++; |
1450 if (buildCounterOperation < 3) { | 1450 if (buildCounterOperation < 3) { |
1451 unittest.expect(o.done, unittest.isTrue); | 1451 unittest.expect(o.done, unittest.isTrue); |
1452 checkStatus(o.error); | 1452 checkStatus(o.error); |
1453 checkUnnamed1532(o.metadata); | 1453 checkUnnamed1589(o.metadata); |
1454 unittest.expect(o.name, unittest.equals('foo')); | 1454 unittest.expect(o.name, unittest.equals('foo')); |
1455 checkUnnamed1533(o.response); | 1455 checkUnnamed1590(o.response); |
1456 } | 1456 } |
1457 buildCounterOperation--; | 1457 buildCounterOperation--; |
1458 } | 1458 } |
1459 | 1459 |
1460 buildUnnamed1534() { | 1460 buildUnnamed1591() { |
| 1461 var o = new core.List<core.String>(); |
| 1462 o.add("foo"); |
| 1463 o.add("foo"); |
| 1464 return o; |
| 1465 } |
| 1466 |
| 1467 checkUnnamed1591(core.List<core.String> o) { |
| 1468 unittest.expect(o, unittest.hasLength(2)); |
| 1469 unittest.expect(o[0], unittest.equals('foo')); |
| 1470 unittest.expect(o[1], unittest.equals('foo')); |
| 1471 } |
| 1472 |
| 1473 buildUnnamed1592() { |
| 1474 var o = new core.List<api.Step>(); |
| 1475 o.add(buildStep()); |
| 1476 o.add(buildStep()); |
| 1477 return o; |
| 1478 } |
| 1479 |
| 1480 checkUnnamed1592(core.List<api.Step> o) { |
| 1481 unittest.expect(o, unittest.hasLength(2)); |
| 1482 checkStep(o[0]); |
| 1483 checkStep(o[1]); |
| 1484 } |
| 1485 |
| 1486 core.int buildCounterOperationMetadata = 0; |
| 1487 buildOperationMetadata() { |
| 1488 var o = new api.OperationMetadata(); |
| 1489 buildCounterOperationMetadata++; |
| 1490 if (buildCounterOperationMetadata < 3) { |
| 1491 o.progressPercentage = 42; |
| 1492 o.resourceNames = buildUnnamed1591(); |
| 1493 o.startTime = "foo"; |
| 1494 o.steps = buildUnnamed1592(); |
| 1495 } |
| 1496 buildCounterOperationMetadata--; |
| 1497 return o; |
| 1498 } |
| 1499 |
| 1500 checkOperationMetadata(api.OperationMetadata o) { |
| 1501 buildCounterOperationMetadata++; |
| 1502 if (buildCounterOperationMetadata < 3) { |
| 1503 unittest.expect(o.progressPercentage, unittest.equals(42)); |
| 1504 checkUnnamed1591(o.resourceNames); |
| 1505 unittest.expect(o.startTime, unittest.equals('foo')); |
| 1506 checkUnnamed1592(o.steps); |
| 1507 } |
| 1508 buildCounterOperationMetadata--; |
| 1509 } |
| 1510 |
| 1511 buildUnnamed1593() { |
1461 var o = new core.Map<core.String, core.Object>(); | 1512 var o = new core.Map<core.String, core.Object>(); |
1462 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1513 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1463 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1514 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1464 return o; | 1515 return o; |
1465 } | 1516 } |
1466 | 1517 |
1467 checkUnnamed1534(core.Map<core.String, core.Object> o) { | 1518 checkUnnamed1593(core.Map<core.String, core.Object> o) { |
1468 unittest.expect(o, unittest.hasLength(2)); | 1519 unittest.expect(o, unittest.hasLength(2)); |
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')); | 1520 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); |
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')); | 1521 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); |
1471 } | 1522 } |
1472 | 1523 |
1473 core.int buildCounterOption = 0; | 1524 core.int buildCounterOption = 0; |
1474 buildOption() { | 1525 buildOption() { |
1475 var o = new api.Option(); | 1526 var o = new api.Option(); |
1476 buildCounterOption++; | 1527 buildCounterOption++; |
1477 if (buildCounterOption < 3) { | 1528 if (buildCounterOption < 3) { |
1478 o.name = "foo"; | 1529 o.name = "foo"; |
1479 o.value = buildUnnamed1534(); | 1530 o.value = buildUnnamed1593(); |
1480 } | 1531 } |
1481 buildCounterOption--; | 1532 buildCounterOption--; |
1482 return o; | 1533 return o; |
1483 } | 1534 } |
1484 | 1535 |
1485 checkOption(api.Option o) { | 1536 checkOption(api.Option o) { |
1486 buildCounterOption++; | 1537 buildCounterOption++; |
1487 if (buildCounterOption < 3) { | 1538 if (buildCounterOption < 3) { |
1488 unittest.expect(o.name, unittest.equals('foo')); | 1539 unittest.expect(o.name, unittest.equals('foo')); |
1489 checkUnnamed1534(o.value); | 1540 checkUnnamed1593(o.value); |
1490 } | 1541 } |
1491 buildCounterOption--; | 1542 buildCounterOption--; |
1492 } | 1543 } |
1493 | 1544 |
1494 buildUnnamed1535() { | 1545 buildUnnamed1594() { |
1495 var o = new core.List<api.Page>(); | 1546 var o = new core.List<api.Page>(); |
1496 o.add(buildPage()); | 1547 o.add(buildPage()); |
1497 o.add(buildPage()); | 1548 o.add(buildPage()); |
1498 return o; | 1549 return o; |
1499 } | 1550 } |
1500 | 1551 |
1501 checkUnnamed1535(core.List<api.Page> o) { | 1552 checkUnnamed1594(core.List<api.Page> o) { |
1502 unittest.expect(o, unittest.hasLength(2)); | 1553 unittest.expect(o, unittest.hasLength(2)); |
1503 checkPage(o[0]); | 1554 checkPage(o[0]); |
1504 checkPage(o[1]); | 1555 checkPage(o[1]); |
1505 } | 1556 } |
1506 | 1557 |
1507 core.int buildCounterPage = 0; | 1558 core.int buildCounterPage = 0; |
1508 buildPage() { | 1559 buildPage() { |
1509 var o = new api.Page(); | 1560 var o = new api.Page(); |
1510 buildCounterPage++; | 1561 buildCounterPage++; |
1511 if (buildCounterPage < 3) { | 1562 if (buildCounterPage < 3) { |
1512 o.content = "foo"; | 1563 o.content = "foo"; |
1513 o.name = "foo"; | 1564 o.name = "foo"; |
1514 o.subpages = buildUnnamed1535(); | 1565 o.subpages = buildUnnamed1594(); |
1515 } | 1566 } |
1516 buildCounterPage--; | 1567 buildCounterPage--; |
1517 return o; | 1568 return o; |
1518 } | 1569 } |
1519 | 1570 |
1520 checkPage(api.Page o) { | 1571 checkPage(api.Page o) { |
1521 buildCounterPage++; | 1572 buildCounterPage++; |
1522 if (buildCounterPage < 3) { | 1573 if (buildCounterPage < 3) { |
1523 unittest.expect(o.content, unittest.equals('foo')); | 1574 unittest.expect(o.content, unittest.equals('foo')); |
1524 unittest.expect(o.name, unittest.equals('foo')); | 1575 unittest.expect(o.name, unittest.equals('foo')); |
1525 checkUnnamed1535(o.subpages); | 1576 checkUnnamed1594(o.subpages); |
1526 } | 1577 } |
1527 buildCounterPage--; | 1578 buildCounterPage--; |
1528 } | 1579 } |
1529 | 1580 |
1530 core.int buildCounterPublishedService = 0; | 1581 core.int buildCounterPublishedService = 0; |
1531 buildPublishedService() { | 1582 buildPublishedService() { |
1532 var o = new api.PublishedService(); | 1583 var o = new api.PublishedService(); |
1533 buildCounterPublishedService++; | 1584 buildCounterPublishedService++; |
1534 if (buildCounterPublishedService < 3) { | 1585 if (buildCounterPublishedService < 3) { |
1535 o.name = "foo"; | 1586 o.name = "foo"; |
1536 o.service = buildService(); | 1587 o.service = buildService(); |
1537 } | 1588 } |
1538 buildCounterPublishedService--; | 1589 buildCounterPublishedService--; |
1539 return o; | 1590 return o; |
1540 } | 1591 } |
1541 | 1592 |
1542 checkPublishedService(api.PublishedService o) { | 1593 checkPublishedService(api.PublishedService o) { |
1543 buildCounterPublishedService++; | 1594 buildCounterPublishedService++; |
1544 if (buildCounterPublishedService < 3) { | 1595 if (buildCounterPublishedService < 3) { |
1545 unittest.expect(o.name, unittest.equals('foo')); | 1596 unittest.expect(o.name, unittest.equals('foo')); |
1546 checkService(o.service); | 1597 checkService(o.service); |
1547 } | 1598 } |
1548 buildCounterPublishedService--; | 1599 buildCounterPublishedService--; |
1549 } | 1600 } |
1550 | 1601 |
1551 buildUnnamed1536() { | 1602 buildUnnamed1595() { |
1552 var o = new core.List<api.PublishedService>(); | 1603 var o = new core.List<api.PublishedService>(); |
1553 o.add(buildPublishedService()); | 1604 o.add(buildPublishedService()); |
1554 o.add(buildPublishedService()); | 1605 o.add(buildPublishedService()); |
1555 return o; | 1606 return o; |
1556 } | 1607 } |
1557 | 1608 |
1558 checkUnnamed1536(core.List<api.PublishedService> o) { | 1609 checkUnnamed1595(core.List<api.PublishedService> o) { |
1559 unittest.expect(o, unittest.hasLength(2)); | 1610 unittest.expect(o, unittest.hasLength(2)); |
1560 checkPublishedService(o[0]); | 1611 checkPublishedService(o[0]); |
1561 checkPublishedService(o[1]); | 1612 checkPublishedService(o[1]); |
1562 } | 1613 } |
1563 | 1614 |
1564 core.int buildCounterSearchServicesResponse = 0; | 1615 core.int buildCounterSearchServicesResponse = 0; |
1565 buildSearchServicesResponse() { | 1616 buildSearchServicesResponse() { |
1566 var o = new api.SearchServicesResponse(); | 1617 var o = new api.SearchServicesResponse(); |
1567 buildCounterSearchServicesResponse++; | 1618 buildCounterSearchServicesResponse++; |
1568 if (buildCounterSearchServicesResponse < 3) { | 1619 if (buildCounterSearchServicesResponse < 3) { |
1569 o.nextPageToken = "foo"; | 1620 o.nextPageToken = "foo"; |
1570 o.services = buildUnnamed1536(); | 1621 o.services = buildUnnamed1595(); |
1571 } | 1622 } |
1572 buildCounterSearchServicesResponse--; | 1623 buildCounterSearchServicesResponse--; |
1573 return o; | 1624 return o; |
1574 } | 1625 } |
1575 | 1626 |
1576 checkSearchServicesResponse(api.SearchServicesResponse o) { | 1627 checkSearchServicesResponse(api.SearchServicesResponse o) { |
1577 buildCounterSearchServicesResponse++; | 1628 buildCounterSearchServicesResponse++; |
1578 if (buildCounterSearchServicesResponse < 3) { | 1629 if (buildCounterSearchServicesResponse < 3) { |
1579 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1630 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1580 checkUnnamed1536(o.services); | 1631 checkUnnamed1595(o.services); |
1581 } | 1632 } |
1582 buildCounterSearchServicesResponse--; | 1633 buildCounterSearchServicesResponse--; |
1583 } | 1634 } |
1584 | 1635 |
1585 buildUnnamed1537() { | 1636 buildUnnamed1596() { |
1586 var o = new core.List<api.Api>(); | 1637 var o = new core.List<api.Api>(); |
1587 o.add(buildApi()); | 1638 o.add(buildApi()); |
1588 o.add(buildApi()); | 1639 o.add(buildApi()); |
1589 return o; | 1640 return o; |
1590 } | 1641 } |
1591 | 1642 |
1592 checkUnnamed1537(core.List<api.Api> o) { | 1643 checkUnnamed1596(core.List<api.Api> o) { |
1593 unittest.expect(o, unittest.hasLength(2)); | 1644 unittest.expect(o, unittest.hasLength(2)); |
1594 checkApi(o[0]); | 1645 checkApi(o[0]); |
1595 checkApi(o[1]); | 1646 checkApi(o[1]); |
1596 } | 1647 } |
1597 | 1648 |
1598 buildUnnamed1538() { | 1649 buildUnnamed1597() { |
1599 var o = new core.List<api.Endpoint>(); | 1650 var o = new core.List<api.Endpoint>(); |
1600 o.add(buildEndpoint()); | 1651 o.add(buildEndpoint()); |
1601 o.add(buildEndpoint()); | 1652 o.add(buildEndpoint()); |
1602 return o; | 1653 return o; |
1603 } | 1654 } |
1604 | 1655 |
1605 checkUnnamed1538(core.List<api.Endpoint> o) { | 1656 checkUnnamed1597(core.List<api.Endpoint> o) { |
1606 unittest.expect(o, unittest.hasLength(2)); | 1657 unittest.expect(o, unittest.hasLength(2)); |
1607 checkEndpoint(o[0]); | 1658 checkEndpoint(o[0]); |
1608 checkEndpoint(o[1]); | 1659 checkEndpoint(o[1]); |
1609 } | 1660 } |
1610 | 1661 |
1611 buildUnnamed1539() { | 1662 buildUnnamed1598() { |
1612 var o = new core.List<api.Enum>(); | 1663 var o = new core.List<api.Enum>(); |
1613 o.add(buildEnum()); | 1664 o.add(buildEnum()); |
1614 o.add(buildEnum()); | 1665 o.add(buildEnum()); |
1615 return o; | 1666 return o; |
1616 } | 1667 } |
1617 | 1668 |
1618 checkUnnamed1539(core.List<api.Enum> o) { | 1669 checkUnnamed1598(core.List<api.Enum> o) { |
1619 unittest.expect(o, unittest.hasLength(2)); | 1670 unittest.expect(o, unittest.hasLength(2)); |
1620 checkEnum(o[0]); | 1671 checkEnum(o[0]); |
1621 checkEnum(o[1]); | 1672 checkEnum(o[1]); |
1622 } | 1673 } |
1623 | 1674 |
1624 buildUnnamed1540() { | 1675 buildUnnamed1599() { |
1625 var o = new core.List<api.LogDescriptor>(); | 1676 var o = new core.List<api.LogDescriptor>(); |
1626 o.add(buildLogDescriptor()); | 1677 o.add(buildLogDescriptor()); |
1627 o.add(buildLogDescriptor()); | 1678 o.add(buildLogDescriptor()); |
1628 return o; | 1679 return o; |
1629 } | 1680 } |
1630 | 1681 |
1631 checkUnnamed1540(core.List<api.LogDescriptor> o) { | 1682 checkUnnamed1599(core.List<api.LogDescriptor> o) { |
1632 unittest.expect(o, unittest.hasLength(2)); | 1683 unittest.expect(o, unittest.hasLength(2)); |
1633 checkLogDescriptor(o[0]); | 1684 checkLogDescriptor(o[0]); |
1634 checkLogDescriptor(o[1]); | 1685 checkLogDescriptor(o[1]); |
1635 } | 1686 } |
1636 | 1687 |
1637 buildUnnamed1541() { | 1688 buildUnnamed1600() { |
1638 var o = new core.List<api.MetricDescriptor>(); | 1689 var o = new core.List<api.MetricDescriptor>(); |
1639 o.add(buildMetricDescriptor()); | 1690 o.add(buildMetricDescriptor()); |
1640 o.add(buildMetricDescriptor()); | 1691 o.add(buildMetricDescriptor()); |
1641 return o; | 1692 return o; |
1642 } | 1693 } |
1643 | 1694 |
1644 checkUnnamed1541(core.List<api.MetricDescriptor> o) { | 1695 checkUnnamed1600(core.List<api.MetricDescriptor> o) { |
1645 unittest.expect(o, unittest.hasLength(2)); | 1696 unittest.expect(o, unittest.hasLength(2)); |
1646 checkMetricDescriptor(o[0]); | 1697 checkMetricDescriptor(o[0]); |
1647 checkMetricDescriptor(o[1]); | 1698 checkMetricDescriptor(o[1]); |
1648 } | 1699 } |
1649 | 1700 |
1650 buildUnnamed1542() { | 1701 buildUnnamed1601() { |
1651 var o = new core.List<api.MonitoredResourceDescriptor>(); | 1702 var o = new core.List<api.MonitoredResourceDescriptor>(); |
1652 o.add(buildMonitoredResourceDescriptor()); | 1703 o.add(buildMonitoredResourceDescriptor()); |
1653 o.add(buildMonitoredResourceDescriptor()); | 1704 o.add(buildMonitoredResourceDescriptor()); |
1654 return o; | 1705 return o; |
1655 } | 1706 } |
1656 | 1707 |
1657 checkUnnamed1542(core.List<api.MonitoredResourceDescriptor> o) { | 1708 checkUnnamed1601(core.List<api.MonitoredResourceDescriptor> o) { |
1658 unittest.expect(o, unittest.hasLength(2)); | 1709 unittest.expect(o, unittest.hasLength(2)); |
1659 checkMonitoredResourceDescriptor(o[0]); | 1710 checkMonitoredResourceDescriptor(o[0]); |
1660 checkMonitoredResourceDescriptor(o[1]); | 1711 checkMonitoredResourceDescriptor(o[1]); |
1661 } | 1712 } |
1662 | 1713 |
1663 buildUnnamed1543() { | 1714 buildUnnamed1602() { |
1664 var o = new core.List<api.Type>(); | 1715 var o = new core.List<api.Type>(); |
1665 o.add(buildType()); | 1716 o.add(buildType()); |
1666 o.add(buildType()); | 1717 o.add(buildType()); |
1667 return o; | 1718 return o; |
1668 } | 1719 } |
1669 | 1720 |
1670 checkUnnamed1543(core.List<api.Type> o) { | 1721 checkUnnamed1602(core.List<api.Type> o) { |
1671 unittest.expect(o, unittest.hasLength(2)); | 1722 unittest.expect(o, unittest.hasLength(2)); |
1672 checkType(o[0]); | 1723 checkType(o[0]); |
1673 checkType(o[1]); | 1724 checkType(o[1]); |
1674 } | 1725 } |
1675 | 1726 |
1676 buildUnnamed1544() { | 1727 buildUnnamed1603() { |
1677 var o = new core.List<api.Type>(); | 1728 var o = new core.List<api.Type>(); |
1678 o.add(buildType()); | 1729 o.add(buildType()); |
1679 o.add(buildType()); | 1730 o.add(buildType()); |
1680 return o; | 1731 return o; |
1681 } | 1732 } |
1682 | 1733 |
1683 checkUnnamed1544(core.List<api.Type> o) { | 1734 checkUnnamed1603(core.List<api.Type> o) { |
1684 unittest.expect(o, unittest.hasLength(2)); | 1735 unittest.expect(o, unittest.hasLength(2)); |
1685 checkType(o[0]); | 1736 checkType(o[0]); |
1686 checkType(o[1]); | 1737 checkType(o[1]); |
1687 } | 1738 } |
1688 | 1739 |
1689 core.int buildCounterService = 0; | 1740 core.int buildCounterService = 0; |
1690 buildService() { | 1741 buildService() { |
1691 var o = new api.Service(); | 1742 var o = new api.Service(); |
1692 buildCounterService++; | 1743 buildCounterService++; |
1693 if (buildCounterService < 3) { | 1744 if (buildCounterService < 3) { |
1694 o.apis = buildUnnamed1537(); | 1745 o.apis = buildUnnamed1596(); |
1695 o.authentication = buildAuthentication(); | 1746 o.authentication = buildAuthentication(); |
1696 o.backend = buildBackend(); | 1747 o.backend = buildBackend(); |
1697 o.configVersion = 42; | 1748 o.configVersion = 42; |
1698 o.context = buildContext(); | 1749 o.context = buildContext(); |
1699 o.control = buildControl(); | 1750 o.control = buildControl(); |
1700 o.customError = buildCustomError(); | 1751 o.customError = buildCustomError(); |
1701 o.documentation = buildDocumentation(); | 1752 o.documentation = buildDocumentation(); |
1702 o.endpoints = buildUnnamed1538(); | 1753 o.endpoints = buildUnnamed1597(); |
1703 o.enums = buildUnnamed1539(); | 1754 o.enums = buildUnnamed1598(); |
1704 o.experimental = buildExperimental(); | 1755 o.experimental = buildExperimental(); |
1705 o.http = buildHttp(); | 1756 o.http = buildHttp(); |
1706 o.id = "foo"; | 1757 o.id = "foo"; |
1707 o.logging = buildLogging(); | 1758 o.logging = buildLogging(); |
1708 o.logs = buildUnnamed1540(); | 1759 o.logs = buildUnnamed1599(); |
1709 o.metrics = buildUnnamed1541(); | 1760 o.metrics = buildUnnamed1600(); |
1710 o.monitoredResources = buildUnnamed1542(); | 1761 o.monitoredResources = buildUnnamed1601(); |
1711 o.monitoring = buildMonitoring(); | 1762 o.monitoring = buildMonitoring(); |
1712 o.name = "foo"; | 1763 o.name = "foo"; |
1713 o.producerProjectId = "foo"; | 1764 o.producerProjectId = "foo"; |
| 1765 o.sourceInfo = buildSourceInfo(); |
1714 o.systemParameters = buildSystemParameters(); | 1766 o.systemParameters = buildSystemParameters(); |
1715 o.systemTypes = buildUnnamed1543(); | 1767 o.systemTypes = buildUnnamed1602(); |
1716 o.title = "foo"; | 1768 o.title = "foo"; |
1717 o.types = buildUnnamed1544(); | 1769 o.types = buildUnnamed1603(); |
1718 o.usage = buildUsage(); | 1770 o.usage = buildUsage(); |
1719 o.visibility = buildVisibility(); | 1771 o.visibility = buildVisibility(); |
1720 } | 1772 } |
1721 buildCounterService--; | 1773 buildCounterService--; |
1722 return o; | 1774 return o; |
1723 } | 1775 } |
1724 | 1776 |
1725 checkService(api.Service o) { | 1777 checkService(api.Service o) { |
1726 buildCounterService++; | 1778 buildCounterService++; |
1727 if (buildCounterService < 3) { | 1779 if (buildCounterService < 3) { |
1728 checkUnnamed1537(o.apis); | 1780 checkUnnamed1596(o.apis); |
1729 checkAuthentication(o.authentication); | 1781 checkAuthentication(o.authentication); |
1730 checkBackend(o.backend); | 1782 checkBackend(o.backend); |
1731 unittest.expect(o.configVersion, unittest.equals(42)); | 1783 unittest.expect(o.configVersion, unittest.equals(42)); |
1732 checkContext(o.context); | 1784 checkContext(o.context); |
1733 checkControl(o.control); | 1785 checkControl(o.control); |
1734 checkCustomError(o.customError); | 1786 checkCustomError(o.customError); |
1735 checkDocumentation(o.documentation); | 1787 checkDocumentation(o.documentation); |
1736 checkUnnamed1538(o.endpoints); | 1788 checkUnnamed1597(o.endpoints); |
1737 checkUnnamed1539(o.enums); | 1789 checkUnnamed1598(o.enums); |
1738 checkExperimental(o.experimental); | 1790 checkExperimental(o.experimental); |
1739 checkHttp(o.http); | 1791 checkHttp(o.http); |
1740 unittest.expect(o.id, unittest.equals('foo')); | 1792 unittest.expect(o.id, unittest.equals('foo')); |
1741 checkLogging(o.logging); | 1793 checkLogging(o.logging); |
1742 checkUnnamed1540(o.logs); | 1794 checkUnnamed1599(o.logs); |
1743 checkUnnamed1541(o.metrics); | 1795 checkUnnamed1600(o.metrics); |
1744 checkUnnamed1542(o.monitoredResources); | 1796 checkUnnamed1601(o.monitoredResources); |
1745 checkMonitoring(o.monitoring); | 1797 checkMonitoring(o.monitoring); |
1746 unittest.expect(o.name, unittest.equals('foo')); | 1798 unittest.expect(o.name, unittest.equals('foo')); |
1747 unittest.expect(o.producerProjectId, unittest.equals('foo')); | 1799 unittest.expect(o.producerProjectId, unittest.equals('foo')); |
| 1800 checkSourceInfo(o.sourceInfo); |
1748 checkSystemParameters(o.systemParameters); | 1801 checkSystemParameters(o.systemParameters); |
1749 checkUnnamed1543(o.systemTypes); | 1802 checkUnnamed1602(o.systemTypes); |
1750 unittest.expect(o.title, unittest.equals('foo')); | 1803 unittest.expect(o.title, unittest.equals('foo')); |
1751 checkUnnamed1544(o.types); | 1804 checkUnnamed1603(o.types); |
1752 checkUsage(o.usage); | 1805 checkUsage(o.usage); |
1753 checkVisibility(o.visibility); | 1806 checkVisibility(o.visibility); |
1754 } | 1807 } |
1755 buildCounterService--; | 1808 buildCounterService--; |
1756 } | 1809 } |
1757 | 1810 |
1758 core.int buildCounterSourceContext = 0; | 1811 core.int buildCounterSourceContext = 0; |
1759 buildSourceContext() { | 1812 buildSourceContext() { |
1760 var o = new api.SourceContext(); | 1813 var o = new api.SourceContext(); |
1761 buildCounterSourceContext++; | 1814 buildCounterSourceContext++; |
1762 if (buildCounterSourceContext < 3) { | 1815 if (buildCounterSourceContext < 3) { |
1763 o.fileName = "foo"; | 1816 o.fileName = "foo"; |
1764 } | 1817 } |
1765 buildCounterSourceContext--; | 1818 buildCounterSourceContext--; |
1766 return o; | 1819 return o; |
1767 } | 1820 } |
1768 | 1821 |
1769 checkSourceContext(api.SourceContext o) { | 1822 checkSourceContext(api.SourceContext o) { |
1770 buildCounterSourceContext++; | 1823 buildCounterSourceContext++; |
1771 if (buildCounterSourceContext < 3) { | 1824 if (buildCounterSourceContext < 3) { |
1772 unittest.expect(o.fileName, unittest.equals('foo')); | 1825 unittest.expect(o.fileName, unittest.equals('foo')); |
1773 } | 1826 } |
1774 buildCounterSourceContext--; | 1827 buildCounterSourceContext--; |
1775 } | 1828 } |
1776 | 1829 |
1777 buildUnnamed1545() { | 1830 buildUnnamed1604() { |
1778 var o = new core.Map<core.String, core.Object>(); | 1831 var o = new core.Map<core.String, core.Object>(); |
1779 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1832 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1780 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1833 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1781 return o; | 1834 return o; |
1782 } | 1835 } |
1783 | 1836 |
1784 checkUnnamed1545(core.Map<core.String, core.Object> o) { | 1837 checkUnnamed1604(core.Map<core.String, core.Object> o) { |
1785 unittest.expect(o, unittest.hasLength(2)); | 1838 unittest.expect(o, unittest.hasLength(2)); |
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')); | 1839 var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLengt
h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"],
unittest.equals('foo')); |
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')); | 1840 var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLengt
h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"],
unittest.equals('foo')); |
1788 } | 1841 } |
1789 | 1842 |
1790 buildUnnamed1546() { | 1843 buildUnnamed1605() { |
1791 var o = new core.List<core.Map<core.String, core.Object>>(); | 1844 var o = new core.List<core.Map<core.String, core.Object>>(); |
1792 o.add(buildUnnamed1545()); | 1845 o.add(buildUnnamed1604()); |
1793 o.add(buildUnnamed1545()); | 1846 o.add(buildUnnamed1604()); |
1794 return o; | 1847 return o; |
1795 } | 1848 } |
1796 | 1849 |
1797 checkUnnamed1546(core.List<core.Map<core.String, core.Object>> o) { | 1850 checkUnnamed1605(core.List<core.Map<core.String, core.Object>> o) { |
1798 unittest.expect(o, unittest.hasLength(2)); | 1851 unittest.expect(o, unittest.hasLength(2)); |
1799 checkUnnamed1545(o[0]); | 1852 checkUnnamed1604(o[0]); |
1800 checkUnnamed1545(o[1]); | 1853 checkUnnamed1604(o[1]); |
| 1854 } |
| 1855 |
| 1856 core.int buildCounterSourceInfo = 0; |
| 1857 buildSourceInfo() { |
| 1858 var o = new api.SourceInfo(); |
| 1859 buildCounterSourceInfo++; |
| 1860 if (buildCounterSourceInfo < 3) { |
| 1861 o.sourceFiles = buildUnnamed1605(); |
| 1862 } |
| 1863 buildCounterSourceInfo--; |
| 1864 return o; |
| 1865 } |
| 1866 |
| 1867 checkSourceInfo(api.SourceInfo o) { |
| 1868 buildCounterSourceInfo++; |
| 1869 if (buildCounterSourceInfo < 3) { |
| 1870 checkUnnamed1605(o.sourceFiles); |
| 1871 } |
| 1872 buildCounterSourceInfo--; |
| 1873 } |
| 1874 |
| 1875 buildUnnamed1606() { |
| 1876 var o = new core.Map<core.String, core.Object>(); |
| 1877 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1878 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1879 return o; |
| 1880 } |
| 1881 |
| 1882 checkUnnamed1606(core.Map<core.String, core.Object> o) { |
| 1883 unittest.expect(o, unittest.hasLength(2)); |
| 1884 var casted9 = (o["x"]) as core.Map; unittest.expect(casted9, unittest.hasLengt
h(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"],
unittest.equals('foo')); |
| 1885 var casted10 = (o["y"]) as core.Map; unittest.expect(casted10, unittest.hasLen
gth(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["stri
ng"], unittest.equals('foo')); |
| 1886 } |
| 1887 |
| 1888 buildUnnamed1607() { |
| 1889 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 1890 o.add(buildUnnamed1606()); |
| 1891 o.add(buildUnnamed1606()); |
| 1892 return o; |
| 1893 } |
| 1894 |
| 1895 checkUnnamed1607(core.List<core.Map<core.String, core.Object>> o) { |
| 1896 unittest.expect(o, unittest.hasLength(2)); |
| 1897 checkUnnamed1606(o[0]); |
| 1898 checkUnnamed1606(o[1]); |
1801 } | 1899 } |
1802 | 1900 |
1803 core.int buildCounterStatus = 0; | 1901 core.int buildCounterStatus = 0; |
1804 buildStatus() { | 1902 buildStatus() { |
1805 var o = new api.Status(); | 1903 var o = new api.Status(); |
1806 buildCounterStatus++; | 1904 buildCounterStatus++; |
1807 if (buildCounterStatus < 3) { | 1905 if (buildCounterStatus < 3) { |
1808 o.code = 42; | 1906 o.code = 42; |
1809 o.details = buildUnnamed1546(); | 1907 o.details = buildUnnamed1607(); |
1810 o.message = "foo"; | 1908 o.message = "foo"; |
1811 } | 1909 } |
1812 buildCounterStatus--; | 1910 buildCounterStatus--; |
1813 return o; | 1911 return o; |
1814 } | 1912 } |
1815 | 1913 |
1816 checkStatus(api.Status o) { | 1914 checkStatus(api.Status o) { |
1817 buildCounterStatus++; | 1915 buildCounterStatus++; |
1818 if (buildCounterStatus < 3) { | 1916 if (buildCounterStatus < 3) { |
1819 unittest.expect(o.code, unittest.equals(42)); | 1917 unittest.expect(o.code, unittest.equals(42)); |
1820 checkUnnamed1546(o.details); | 1918 checkUnnamed1607(o.details); |
1821 unittest.expect(o.message, unittest.equals('foo')); | 1919 unittest.expect(o.message, unittest.equals('foo')); |
1822 } | 1920 } |
1823 buildCounterStatus--; | 1921 buildCounterStatus--; |
1824 } | 1922 } |
1825 | 1923 |
| 1924 core.int buildCounterStep = 0; |
| 1925 buildStep() { |
| 1926 var o = new api.Step(); |
| 1927 buildCounterStep++; |
| 1928 if (buildCounterStep < 3) { |
| 1929 o.description = "foo"; |
| 1930 o.status = "foo"; |
| 1931 } |
| 1932 buildCounterStep--; |
| 1933 return o; |
| 1934 } |
| 1935 |
| 1936 checkStep(api.Step o) { |
| 1937 buildCounterStep++; |
| 1938 if (buildCounterStep < 3) { |
| 1939 unittest.expect(o.description, unittest.equals('foo')); |
| 1940 unittest.expect(o.status, unittest.equals('foo')); |
| 1941 } |
| 1942 buildCounterStep--; |
| 1943 } |
| 1944 |
1826 core.int buildCounterSystemParameter = 0; | 1945 core.int buildCounterSystemParameter = 0; |
1827 buildSystemParameter() { | 1946 buildSystemParameter() { |
1828 var o = new api.SystemParameter(); | 1947 var o = new api.SystemParameter(); |
1829 buildCounterSystemParameter++; | 1948 buildCounterSystemParameter++; |
1830 if (buildCounterSystemParameter < 3) { | 1949 if (buildCounterSystemParameter < 3) { |
1831 o.httpHeader = "foo"; | 1950 o.httpHeader = "foo"; |
1832 o.name = "foo"; | 1951 o.name = "foo"; |
1833 o.urlQueryParameter = "foo"; | 1952 o.urlQueryParameter = "foo"; |
1834 } | 1953 } |
1835 buildCounterSystemParameter--; | 1954 buildCounterSystemParameter--; |
1836 return o; | 1955 return o; |
1837 } | 1956 } |
1838 | 1957 |
1839 checkSystemParameter(api.SystemParameter o) { | 1958 checkSystemParameter(api.SystemParameter o) { |
1840 buildCounterSystemParameter++; | 1959 buildCounterSystemParameter++; |
1841 if (buildCounterSystemParameter < 3) { | 1960 if (buildCounterSystemParameter < 3) { |
1842 unittest.expect(o.httpHeader, unittest.equals('foo')); | 1961 unittest.expect(o.httpHeader, unittest.equals('foo')); |
1843 unittest.expect(o.name, unittest.equals('foo')); | 1962 unittest.expect(o.name, unittest.equals('foo')); |
1844 unittest.expect(o.urlQueryParameter, unittest.equals('foo')); | 1963 unittest.expect(o.urlQueryParameter, unittest.equals('foo')); |
1845 } | 1964 } |
1846 buildCounterSystemParameter--; | 1965 buildCounterSystemParameter--; |
1847 } | 1966 } |
1848 | 1967 |
1849 buildUnnamed1547() { | 1968 buildUnnamed1608() { |
1850 var o = new core.List<api.SystemParameter>(); | 1969 var o = new core.List<api.SystemParameter>(); |
1851 o.add(buildSystemParameter()); | 1970 o.add(buildSystemParameter()); |
1852 o.add(buildSystemParameter()); | 1971 o.add(buildSystemParameter()); |
1853 return o; | 1972 return o; |
1854 } | 1973 } |
1855 | 1974 |
1856 checkUnnamed1547(core.List<api.SystemParameter> o) { | 1975 checkUnnamed1608(core.List<api.SystemParameter> o) { |
1857 unittest.expect(o, unittest.hasLength(2)); | 1976 unittest.expect(o, unittest.hasLength(2)); |
1858 checkSystemParameter(o[0]); | 1977 checkSystemParameter(o[0]); |
1859 checkSystemParameter(o[1]); | 1978 checkSystemParameter(o[1]); |
1860 } | 1979 } |
1861 | 1980 |
1862 core.int buildCounterSystemParameterRule = 0; | 1981 core.int buildCounterSystemParameterRule = 0; |
1863 buildSystemParameterRule() { | 1982 buildSystemParameterRule() { |
1864 var o = new api.SystemParameterRule(); | 1983 var o = new api.SystemParameterRule(); |
1865 buildCounterSystemParameterRule++; | 1984 buildCounterSystemParameterRule++; |
1866 if (buildCounterSystemParameterRule < 3) { | 1985 if (buildCounterSystemParameterRule < 3) { |
1867 o.parameters = buildUnnamed1547(); | 1986 o.parameters = buildUnnamed1608(); |
1868 o.selector = "foo"; | 1987 o.selector = "foo"; |
1869 } | 1988 } |
1870 buildCounterSystemParameterRule--; | 1989 buildCounterSystemParameterRule--; |
1871 return o; | 1990 return o; |
1872 } | 1991 } |
1873 | 1992 |
1874 checkSystemParameterRule(api.SystemParameterRule o) { | 1993 checkSystemParameterRule(api.SystemParameterRule o) { |
1875 buildCounterSystemParameterRule++; | 1994 buildCounterSystemParameterRule++; |
1876 if (buildCounterSystemParameterRule < 3) { | 1995 if (buildCounterSystemParameterRule < 3) { |
1877 checkUnnamed1547(o.parameters); | 1996 checkUnnamed1608(o.parameters); |
1878 unittest.expect(o.selector, unittest.equals('foo')); | 1997 unittest.expect(o.selector, unittest.equals('foo')); |
1879 } | 1998 } |
1880 buildCounterSystemParameterRule--; | 1999 buildCounterSystemParameterRule--; |
1881 } | 2000 } |
1882 | 2001 |
1883 buildUnnamed1548() { | 2002 buildUnnamed1609() { |
1884 var o = new core.List<api.SystemParameterRule>(); | 2003 var o = new core.List<api.SystemParameterRule>(); |
1885 o.add(buildSystemParameterRule()); | 2004 o.add(buildSystemParameterRule()); |
1886 o.add(buildSystemParameterRule()); | 2005 o.add(buildSystemParameterRule()); |
1887 return o; | 2006 return o; |
1888 } | 2007 } |
1889 | 2008 |
1890 checkUnnamed1548(core.List<api.SystemParameterRule> o) { | 2009 checkUnnamed1609(core.List<api.SystemParameterRule> o) { |
1891 unittest.expect(o, unittest.hasLength(2)); | 2010 unittest.expect(o, unittest.hasLength(2)); |
1892 checkSystemParameterRule(o[0]); | 2011 checkSystemParameterRule(o[0]); |
1893 checkSystemParameterRule(o[1]); | 2012 checkSystemParameterRule(o[1]); |
1894 } | 2013 } |
1895 | 2014 |
1896 core.int buildCounterSystemParameters = 0; | 2015 core.int buildCounterSystemParameters = 0; |
1897 buildSystemParameters() { | 2016 buildSystemParameters() { |
1898 var o = new api.SystemParameters(); | 2017 var o = new api.SystemParameters(); |
1899 buildCounterSystemParameters++; | 2018 buildCounterSystemParameters++; |
1900 if (buildCounterSystemParameters < 3) { | 2019 if (buildCounterSystemParameters < 3) { |
1901 o.rules = buildUnnamed1548(); | 2020 o.rules = buildUnnamed1609(); |
1902 } | 2021 } |
1903 buildCounterSystemParameters--; | 2022 buildCounterSystemParameters--; |
1904 return o; | 2023 return o; |
1905 } | 2024 } |
1906 | 2025 |
1907 checkSystemParameters(api.SystemParameters o) { | 2026 checkSystemParameters(api.SystemParameters o) { |
1908 buildCounterSystemParameters++; | 2027 buildCounterSystemParameters++; |
1909 if (buildCounterSystemParameters < 3) { | 2028 if (buildCounterSystemParameters < 3) { |
1910 checkUnnamed1548(o.rules); | 2029 checkUnnamed1609(o.rules); |
1911 } | 2030 } |
1912 buildCounterSystemParameters--; | 2031 buildCounterSystemParameters--; |
1913 } | 2032 } |
1914 | 2033 |
1915 buildUnnamed1549() { | 2034 buildUnnamed1610() { |
1916 var o = new core.List<api.Field>(); | 2035 var o = new core.List<api.Field>(); |
1917 o.add(buildField()); | 2036 o.add(buildField()); |
1918 o.add(buildField()); | 2037 o.add(buildField()); |
1919 return o; | 2038 return o; |
1920 } | 2039 } |
1921 | 2040 |
1922 checkUnnamed1549(core.List<api.Field> o) { | 2041 checkUnnamed1610(core.List<api.Field> o) { |
1923 unittest.expect(o, unittest.hasLength(2)); | 2042 unittest.expect(o, unittest.hasLength(2)); |
1924 checkField(o[0]); | 2043 checkField(o[0]); |
1925 checkField(o[1]); | 2044 checkField(o[1]); |
1926 } | 2045 } |
1927 | 2046 |
1928 buildUnnamed1550() { | 2047 buildUnnamed1611() { |
1929 var o = new core.List<core.String>(); | 2048 var o = new core.List<core.String>(); |
1930 o.add("foo"); | 2049 o.add("foo"); |
1931 o.add("foo"); | 2050 o.add("foo"); |
1932 return o; | 2051 return o; |
1933 } | 2052 } |
1934 | 2053 |
1935 checkUnnamed1550(core.List<core.String> o) { | 2054 checkUnnamed1611(core.List<core.String> o) { |
1936 unittest.expect(o, unittest.hasLength(2)); | 2055 unittest.expect(o, unittest.hasLength(2)); |
1937 unittest.expect(o[0], unittest.equals('foo')); | 2056 unittest.expect(o[0], unittest.equals('foo')); |
1938 unittest.expect(o[1], unittest.equals('foo')); | 2057 unittest.expect(o[1], unittest.equals('foo')); |
1939 } | 2058 } |
1940 | 2059 |
1941 buildUnnamed1551() { | 2060 buildUnnamed1612() { |
1942 var o = new core.List<api.Option>(); | 2061 var o = new core.List<api.Option>(); |
1943 o.add(buildOption()); | 2062 o.add(buildOption()); |
1944 o.add(buildOption()); | 2063 o.add(buildOption()); |
1945 return o; | 2064 return o; |
1946 } | 2065 } |
1947 | 2066 |
1948 checkUnnamed1551(core.List<api.Option> o) { | 2067 checkUnnamed1612(core.List<api.Option> o) { |
1949 unittest.expect(o, unittest.hasLength(2)); | 2068 unittest.expect(o, unittest.hasLength(2)); |
1950 checkOption(o[0]); | 2069 checkOption(o[0]); |
1951 checkOption(o[1]); | 2070 checkOption(o[1]); |
1952 } | 2071 } |
1953 | 2072 |
1954 core.int buildCounterType = 0; | 2073 core.int buildCounterType = 0; |
1955 buildType() { | 2074 buildType() { |
1956 var o = new api.Type(); | 2075 var o = new api.Type(); |
1957 buildCounterType++; | 2076 buildCounterType++; |
1958 if (buildCounterType < 3) { | 2077 if (buildCounterType < 3) { |
1959 o.fields = buildUnnamed1549(); | 2078 o.fields = buildUnnamed1610(); |
1960 o.name = "foo"; | 2079 o.name = "foo"; |
1961 o.oneofs = buildUnnamed1550(); | 2080 o.oneofs = buildUnnamed1611(); |
1962 o.options = buildUnnamed1551(); | 2081 o.options = buildUnnamed1612(); |
1963 o.sourceContext = buildSourceContext(); | 2082 o.sourceContext = buildSourceContext(); |
1964 o.syntax = "foo"; | 2083 o.syntax = "foo"; |
1965 } | 2084 } |
1966 buildCounterType--; | 2085 buildCounterType--; |
1967 return o; | 2086 return o; |
1968 } | 2087 } |
1969 | 2088 |
1970 checkType(api.Type o) { | 2089 checkType(api.Type o) { |
1971 buildCounterType++; | 2090 buildCounterType++; |
1972 if (buildCounterType < 3) { | 2091 if (buildCounterType < 3) { |
1973 checkUnnamed1549(o.fields); | 2092 checkUnnamed1610(o.fields); |
1974 unittest.expect(o.name, unittest.equals('foo')); | 2093 unittest.expect(o.name, unittest.equals('foo')); |
1975 checkUnnamed1550(o.oneofs); | 2094 checkUnnamed1611(o.oneofs); |
1976 checkUnnamed1551(o.options); | 2095 checkUnnamed1612(o.options); |
1977 checkSourceContext(o.sourceContext); | 2096 checkSourceContext(o.sourceContext); |
1978 unittest.expect(o.syntax, unittest.equals('foo')); | 2097 unittest.expect(o.syntax, unittest.equals('foo')); |
1979 } | 2098 } |
1980 buildCounterType--; | 2099 buildCounterType--; |
1981 } | 2100 } |
1982 | 2101 |
1983 buildUnnamed1552() { | 2102 buildUnnamed1613() { |
1984 var o = new core.List<core.String>(); | 2103 var o = new core.List<core.String>(); |
1985 o.add("foo"); | 2104 o.add("foo"); |
1986 o.add("foo"); | 2105 o.add("foo"); |
1987 return o; | 2106 return o; |
1988 } | 2107 } |
1989 | 2108 |
1990 checkUnnamed1552(core.List<core.String> o) { | 2109 checkUnnamed1613(core.List<core.String> o) { |
1991 unittest.expect(o, unittest.hasLength(2)); | 2110 unittest.expect(o, unittest.hasLength(2)); |
1992 unittest.expect(o[0], unittest.equals('foo')); | 2111 unittest.expect(o[0], unittest.equals('foo')); |
1993 unittest.expect(o[1], unittest.equals('foo')); | 2112 unittest.expect(o[1], unittest.equals('foo')); |
1994 } | 2113 } |
1995 | 2114 |
1996 buildUnnamed1553() { | 2115 buildUnnamed1614() { |
1997 var o = new core.List<api.UsageRule>(); | 2116 var o = new core.List<api.UsageRule>(); |
1998 o.add(buildUsageRule()); | 2117 o.add(buildUsageRule()); |
1999 o.add(buildUsageRule()); | 2118 o.add(buildUsageRule()); |
2000 return o; | 2119 return o; |
2001 } | 2120 } |
2002 | 2121 |
2003 checkUnnamed1553(core.List<api.UsageRule> o) { | 2122 checkUnnamed1614(core.List<api.UsageRule> o) { |
2004 unittest.expect(o, unittest.hasLength(2)); | 2123 unittest.expect(o, unittest.hasLength(2)); |
2005 checkUsageRule(o[0]); | 2124 checkUsageRule(o[0]); |
2006 checkUsageRule(o[1]); | 2125 checkUsageRule(o[1]); |
2007 } | 2126 } |
2008 | 2127 |
2009 core.int buildCounterUsage = 0; | 2128 core.int buildCounterUsage = 0; |
2010 buildUsage() { | 2129 buildUsage() { |
2011 var o = new api.Usage(); | 2130 var o = new api.Usage(); |
2012 buildCounterUsage++; | 2131 buildCounterUsage++; |
2013 if (buildCounterUsage < 3) { | 2132 if (buildCounterUsage < 3) { |
2014 o.producerNotificationChannel = "foo"; | 2133 o.producerNotificationChannel = "foo"; |
2015 o.requirements = buildUnnamed1552(); | 2134 o.requirements = buildUnnamed1613(); |
2016 o.rules = buildUnnamed1553(); | 2135 o.rules = buildUnnamed1614(); |
2017 } | 2136 } |
2018 buildCounterUsage--; | 2137 buildCounterUsage--; |
2019 return o; | 2138 return o; |
2020 } | 2139 } |
2021 | 2140 |
2022 checkUsage(api.Usage o) { | 2141 checkUsage(api.Usage o) { |
2023 buildCounterUsage++; | 2142 buildCounterUsage++; |
2024 if (buildCounterUsage < 3) { | 2143 if (buildCounterUsage < 3) { |
2025 unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); | 2144 unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); |
2026 checkUnnamed1552(o.requirements); | 2145 checkUnnamed1613(o.requirements); |
2027 checkUnnamed1553(o.rules); | 2146 checkUnnamed1614(o.rules); |
2028 } | 2147 } |
2029 buildCounterUsage--; | 2148 buildCounterUsage--; |
2030 } | 2149 } |
2031 | 2150 |
2032 core.int buildCounterUsageRule = 0; | 2151 core.int buildCounterUsageRule = 0; |
2033 buildUsageRule() { | 2152 buildUsageRule() { |
2034 var o = new api.UsageRule(); | 2153 var o = new api.UsageRule(); |
2035 buildCounterUsageRule++; | 2154 buildCounterUsageRule++; |
2036 if (buildCounterUsageRule < 3) { | 2155 if (buildCounterUsageRule < 3) { |
2037 o.allowUnregisteredCalls = true; | 2156 o.allowUnregisteredCalls = true; |
2038 o.selector = "foo"; | 2157 o.selector = "foo"; |
2039 } | 2158 } |
2040 buildCounterUsageRule--; | 2159 buildCounterUsageRule--; |
2041 return o; | 2160 return o; |
2042 } | 2161 } |
2043 | 2162 |
2044 checkUsageRule(api.UsageRule o) { | 2163 checkUsageRule(api.UsageRule o) { |
2045 buildCounterUsageRule++; | 2164 buildCounterUsageRule++; |
2046 if (buildCounterUsageRule < 3) { | 2165 if (buildCounterUsageRule < 3) { |
2047 unittest.expect(o.allowUnregisteredCalls, unittest.isTrue); | 2166 unittest.expect(o.allowUnregisteredCalls, unittest.isTrue); |
2048 unittest.expect(o.selector, unittest.equals('foo')); | 2167 unittest.expect(o.selector, unittest.equals('foo')); |
2049 } | 2168 } |
2050 buildCounterUsageRule--; | 2169 buildCounterUsageRule--; |
2051 } | 2170 } |
2052 | 2171 |
2053 buildUnnamed1554() { | 2172 buildUnnamed1615() { |
2054 var o = new core.List<api.VisibilityRule>(); | 2173 var o = new core.List<api.VisibilityRule>(); |
2055 o.add(buildVisibilityRule()); | 2174 o.add(buildVisibilityRule()); |
2056 o.add(buildVisibilityRule()); | 2175 o.add(buildVisibilityRule()); |
2057 return o; | 2176 return o; |
2058 } | 2177 } |
2059 | 2178 |
2060 checkUnnamed1554(core.List<api.VisibilityRule> o) { | 2179 checkUnnamed1615(core.List<api.VisibilityRule> o) { |
2061 unittest.expect(o, unittest.hasLength(2)); | 2180 unittest.expect(o, unittest.hasLength(2)); |
2062 checkVisibilityRule(o[0]); | 2181 checkVisibilityRule(o[0]); |
2063 checkVisibilityRule(o[1]); | 2182 checkVisibilityRule(o[1]); |
2064 } | 2183 } |
2065 | 2184 |
2066 core.int buildCounterVisibility = 0; | 2185 core.int buildCounterVisibility = 0; |
2067 buildVisibility() { | 2186 buildVisibility() { |
2068 var o = new api.Visibility(); | 2187 var o = new api.Visibility(); |
2069 buildCounterVisibility++; | 2188 buildCounterVisibility++; |
2070 if (buildCounterVisibility < 3) { | 2189 if (buildCounterVisibility < 3) { |
2071 o.rules = buildUnnamed1554(); | 2190 o.rules = buildUnnamed1615(); |
2072 } | 2191 } |
2073 buildCounterVisibility--; | 2192 buildCounterVisibility--; |
2074 return o; | 2193 return o; |
2075 } | 2194 } |
2076 | 2195 |
2077 checkVisibility(api.Visibility o) { | 2196 checkVisibility(api.Visibility o) { |
2078 buildCounterVisibility++; | 2197 buildCounterVisibility++; |
2079 if (buildCounterVisibility < 3) { | 2198 if (buildCounterVisibility < 3) { |
2080 checkUnnamed1554(o.rules); | 2199 checkUnnamed1615(o.rules); |
2081 } | 2200 } |
2082 buildCounterVisibility--; | 2201 buildCounterVisibility--; |
2083 } | 2202 } |
2084 | 2203 |
2085 core.int buildCounterVisibilityRule = 0; | 2204 core.int buildCounterVisibilityRule = 0; |
2086 buildVisibilityRule() { | 2205 buildVisibilityRule() { |
2087 var o = new api.VisibilityRule(); | 2206 var o = new api.VisibilityRule(); |
2088 buildCounterVisibilityRule++; | 2207 buildCounterVisibilityRule++; |
2089 if (buildCounterVisibilityRule < 3) { | 2208 if (buildCounterVisibilityRule < 3) { |
2090 o.restriction = "foo"; | 2209 o.restriction = "foo"; |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2458 | 2577 |
2459 unittest.group("obj-schema-Operation", () { | 2578 unittest.group("obj-schema-Operation", () { |
2460 unittest.test("to-json--from-json", () { | 2579 unittest.test("to-json--from-json", () { |
2461 var o = buildOperation(); | 2580 var o = buildOperation(); |
2462 var od = new api.Operation.fromJson(o.toJson()); | 2581 var od = new api.Operation.fromJson(o.toJson()); |
2463 checkOperation(od); | 2582 checkOperation(od); |
2464 }); | 2583 }); |
2465 }); | 2584 }); |
2466 | 2585 |
2467 | 2586 |
| 2587 unittest.group("obj-schema-OperationMetadata", () { |
| 2588 unittest.test("to-json--from-json", () { |
| 2589 var o = buildOperationMetadata(); |
| 2590 var od = new api.OperationMetadata.fromJson(o.toJson()); |
| 2591 checkOperationMetadata(od); |
| 2592 }); |
| 2593 }); |
| 2594 |
| 2595 |
2468 unittest.group("obj-schema-Option", () { | 2596 unittest.group("obj-schema-Option", () { |
2469 unittest.test("to-json--from-json", () { | 2597 unittest.test("to-json--from-json", () { |
2470 var o = buildOption(); | 2598 var o = buildOption(); |
2471 var od = new api.Option.fromJson(o.toJson()); | 2599 var od = new api.Option.fromJson(o.toJson()); |
2472 checkOption(od); | 2600 checkOption(od); |
2473 }); | 2601 }); |
2474 }); | 2602 }); |
2475 | 2603 |
2476 | 2604 |
2477 unittest.group("obj-schema-Page", () { | 2605 unittest.group("obj-schema-Page", () { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2512 | 2640 |
2513 unittest.group("obj-schema-SourceContext", () { | 2641 unittest.group("obj-schema-SourceContext", () { |
2514 unittest.test("to-json--from-json", () { | 2642 unittest.test("to-json--from-json", () { |
2515 var o = buildSourceContext(); | 2643 var o = buildSourceContext(); |
2516 var od = new api.SourceContext.fromJson(o.toJson()); | 2644 var od = new api.SourceContext.fromJson(o.toJson()); |
2517 checkSourceContext(od); | 2645 checkSourceContext(od); |
2518 }); | 2646 }); |
2519 }); | 2647 }); |
2520 | 2648 |
2521 | 2649 |
| 2650 unittest.group("obj-schema-SourceInfo", () { |
| 2651 unittest.test("to-json--from-json", () { |
| 2652 var o = buildSourceInfo(); |
| 2653 var od = new api.SourceInfo.fromJson(o.toJson()); |
| 2654 checkSourceInfo(od); |
| 2655 }); |
| 2656 }); |
| 2657 |
| 2658 |
2522 unittest.group("obj-schema-Status", () { | 2659 unittest.group("obj-schema-Status", () { |
2523 unittest.test("to-json--from-json", () { | 2660 unittest.test("to-json--from-json", () { |
2524 var o = buildStatus(); | 2661 var o = buildStatus(); |
2525 var od = new api.Status.fromJson(o.toJson()); | 2662 var od = new api.Status.fromJson(o.toJson()); |
2526 checkStatus(od); | 2663 checkStatus(od); |
2527 }); | 2664 }); |
2528 }); | 2665 }); |
2529 | 2666 |
2530 | 2667 |
| 2668 unittest.group("obj-schema-Step", () { |
| 2669 unittest.test("to-json--from-json", () { |
| 2670 var o = buildStep(); |
| 2671 var od = new api.Step.fromJson(o.toJson()); |
| 2672 checkStep(od); |
| 2673 }); |
| 2674 }); |
| 2675 |
| 2676 |
2531 unittest.group("obj-schema-SystemParameter", () { | 2677 unittest.group("obj-schema-SystemParameter", () { |
2532 unittest.test("to-json--from-json", () { | 2678 unittest.test("to-json--from-json", () { |
2533 var o = buildSystemParameter(); | 2679 var o = buildSystemParameter(); |
2534 var od = new api.SystemParameter.fromJson(o.toJson()); | 2680 var od = new api.SystemParameter.fromJson(o.toJson()); |
2535 checkSystemParameter(od); | 2681 checkSystemParameter(od); |
2536 }); | 2682 }); |
2537 }); | 2683 }); |
2538 | 2684 |
2539 | 2685 |
2540 unittest.group("obj-schema-SystemParameterRule", () { | 2686 unittest.group("obj-schema-SystemParameterRule", () { |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2797 res.search(pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest
.expectAsync(((api.SearchServicesResponse response) { | 2943 res.search(pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest
.expectAsync(((api.SearchServicesResponse response) { |
2798 checkSearchServicesResponse(response); | 2944 checkSearchServicesResponse(response); |
2799 }))); | 2945 }))); |
2800 }); | 2946 }); |
2801 | 2947 |
2802 }); | 2948 }); |
2803 | 2949 |
2804 | 2950 |
2805 } | 2951 } |
2806 | 2952 |
OLD | NEW |