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:test/test.dart' as unittest; | 10 import 'package:test/test.dart' as unittest; |
(...skipping 33 matching lines...) Loading... |
44 } | 44 } |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
49 core.int status, core.Map<core.String, core.String> headers, core.String bod
y) { | 49 core.int status, core.Map<core.String, core.String> headers, core.String bod
y) { |
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 buildUnnamed1759() { | 54 buildUnnamed1776() { |
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 checkUnnamed1759(core.List<api.Method> o) { | 61 checkUnnamed1776(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 buildUnnamed1760() { | 67 buildUnnamed1777() { |
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 checkUnnamed1760(core.List<api.Mixin> o) { | 74 checkUnnamed1777(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 buildUnnamed1761() { | 80 buildUnnamed1778() { |
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 checkUnnamed1761(core.List<api.Option> o) { | 87 checkUnnamed1778(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 = buildUnnamed1759(); | 98 o.methods = buildUnnamed1776(); |
99 o.mixins = buildUnnamed1760(); | 99 o.mixins = buildUnnamed1777(); |
100 o.name = "foo"; | 100 o.name = "foo"; |
101 o.options = buildUnnamed1761(); | 101 o.options = buildUnnamed1778(); |
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 checkUnnamed1759(o.methods); | 113 checkUnnamed1776(o.methods); |
114 checkUnnamed1760(o.mixins); | 114 checkUnnamed1777(o.mixins); |
115 unittest.expect(o.name, unittest.equals('foo')); | 115 unittest.expect(o.name, unittest.equals('foo')); |
116 checkUnnamed1761(o.options); | 116 checkUnnamed1778(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(); |
127 buildCounterAuthProvider++; | 127 buildCounterAuthProvider++; |
128 if (buildCounterAuthProvider < 3) { | 128 if (buildCounterAuthProvider < 3) { |
129 o.audiences = "foo"; | 129 o.audiences = "foo"; |
| 130 o.authorizationUrl = "foo"; |
130 o.id = "foo"; | 131 o.id = "foo"; |
131 o.issuer = "foo"; | 132 o.issuer = "foo"; |
132 o.jwksUri = "foo"; | 133 o.jwksUri = "foo"; |
133 } | 134 } |
134 buildCounterAuthProvider--; | 135 buildCounterAuthProvider--; |
135 return o; | 136 return o; |
136 } | 137 } |
137 | 138 |
138 checkAuthProvider(api.AuthProvider o) { | 139 checkAuthProvider(api.AuthProvider o) { |
139 buildCounterAuthProvider++; | 140 buildCounterAuthProvider++; |
140 if (buildCounterAuthProvider < 3) { | 141 if (buildCounterAuthProvider < 3) { |
141 unittest.expect(o.audiences, unittest.equals('foo')); | 142 unittest.expect(o.audiences, unittest.equals('foo')); |
| 143 unittest.expect(o.authorizationUrl, unittest.equals('foo')); |
142 unittest.expect(o.id, unittest.equals('foo')); | 144 unittest.expect(o.id, unittest.equals('foo')); |
143 unittest.expect(o.issuer, unittest.equals('foo')); | 145 unittest.expect(o.issuer, unittest.equals('foo')); |
144 unittest.expect(o.jwksUri, unittest.equals('foo')); | 146 unittest.expect(o.jwksUri, unittest.equals('foo')); |
145 } | 147 } |
146 buildCounterAuthProvider--; | 148 buildCounterAuthProvider--; |
147 } | 149 } |
148 | 150 |
149 core.int buildCounterAuthRequirement = 0; | 151 core.int buildCounterAuthRequirement = 0; |
150 buildAuthRequirement() { | 152 buildAuthRequirement() { |
151 var o = new api.AuthRequirement(); | 153 var o = new api.AuthRequirement(); |
152 buildCounterAuthRequirement++; | 154 buildCounterAuthRequirement++; |
153 if (buildCounterAuthRequirement < 3) { | 155 if (buildCounterAuthRequirement < 3) { |
154 o.audiences = "foo"; | 156 o.audiences = "foo"; |
155 o.providerId = "foo"; | 157 o.providerId = "foo"; |
156 } | 158 } |
157 buildCounterAuthRequirement--; | 159 buildCounterAuthRequirement--; |
158 return o; | 160 return o; |
159 } | 161 } |
160 | 162 |
161 checkAuthRequirement(api.AuthRequirement o) { | 163 checkAuthRequirement(api.AuthRequirement o) { |
162 buildCounterAuthRequirement++; | 164 buildCounterAuthRequirement++; |
163 if (buildCounterAuthRequirement < 3) { | 165 if (buildCounterAuthRequirement < 3) { |
164 unittest.expect(o.audiences, unittest.equals('foo')); | 166 unittest.expect(o.audiences, unittest.equals('foo')); |
165 unittest.expect(o.providerId, unittest.equals('foo')); | 167 unittest.expect(o.providerId, unittest.equals('foo')); |
166 } | 168 } |
167 buildCounterAuthRequirement--; | 169 buildCounterAuthRequirement--; |
168 } | 170 } |
169 | 171 |
170 buildUnnamed1762() { | 172 buildUnnamed1779() { |
171 var o = new core.List<api.AuthProvider>(); | 173 var o = new core.List<api.AuthProvider>(); |
172 o.add(buildAuthProvider()); | 174 o.add(buildAuthProvider()); |
173 o.add(buildAuthProvider()); | 175 o.add(buildAuthProvider()); |
174 return o; | 176 return o; |
175 } | 177 } |
176 | 178 |
177 checkUnnamed1762(core.List<api.AuthProvider> o) { | 179 checkUnnamed1779(core.List<api.AuthProvider> o) { |
178 unittest.expect(o, unittest.hasLength(2)); | 180 unittest.expect(o, unittest.hasLength(2)); |
179 checkAuthProvider(o[0]); | 181 checkAuthProvider(o[0]); |
180 checkAuthProvider(o[1]); | 182 checkAuthProvider(o[1]); |
181 } | 183 } |
182 | 184 |
183 buildUnnamed1763() { | 185 buildUnnamed1780() { |
184 var o = new core.List<api.AuthenticationRule>(); | 186 var o = new core.List<api.AuthenticationRule>(); |
185 o.add(buildAuthenticationRule()); | 187 o.add(buildAuthenticationRule()); |
186 o.add(buildAuthenticationRule()); | 188 o.add(buildAuthenticationRule()); |
187 return o; | 189 return o; |
188 } | 190 } |
189 | 191 |
190 checkUnnamed1763(core.List<api.AuthenticationRule> o) { | 192 checkUnnamed1780(core.List<api.AuthenticationRule> o) { |
191 unittest.expect(o, unittest.hasLength(2)); | 193 unittest.expect(o, unittest.hasLength(2)); |
192 checkAuthenticationRule(o[0]); | 194 checkAuthenticationRule(o[0]); |
193 checkAuthenticationRule(o[1]); | 195 checkAuthenticationRule(o[1]); |
194 } | 196 } |
195 | 197 |
196 core.int buildCounterAuthentication = 0; | 198 core.int buildCounterAuthentication = 0; |
197 buildAuthentication() { | 199 buildAuthentication() { |
198 var o = new api.Authentication(); | 200 var o = new api.Authentication(); |
199 buildCounterAuthentication++; | 201 buildCounterAuthentication++; |
200 if (buildCounterAuthentication < 3) { | 202 if (buildCounterAuthentication < 3) { |
201 o.providers = buildUnnamed1762(); | 203 o.providers = buildUnnamed1779(); |
202 o.rules = buildUnnamed1763(); | 204 o.rules = buildUnnamed1780(); |
203 } | 205 } |
204 buildCounterAuthentication--; | 206 buildCounterAuthentication--; |
205 return o; | 207 return o; |
206 } | 208 } |
207 | 209 |
208 checkAuthentication(api.Authentication o) { | 210 checkAuthentication(api.Authentication o) { |
209 buildCounterAuthentication++; | 211 buildCounterAuthentication++; |
210 if (buildCounterAuthentication < 3) { | 212 if (buildCounterAuthentication < 3) { |
211 checkUnnamed1762(o.providers); | 213 checkUnnamed1779(o.providers); |
212 checkUnnamed1763(o.rules); | 214 checkUnnamed1780(o.rules); |
213 } | 215 } |
214 buildCounterAuthentication--; | 216 buildCounterAuthentication--; |
215 } | 217 } |
216 | 218 |
217 buildUnnamed1764() { | 219 buildUnnamed1781() { |
218 var o = new core.List<api.AuthRequirement>(); | 220 var o = new core.List<api.AuthRequirement>(); |
219 o.add(buildAuthRequirement()); | 221 o.add(buildAuthRequirement()); |
220 o.add(buildAuthRequirement()); | 222 o.add(buildAuthRequirement()); |
221 return o; | 223 return o; |
222 } | 224 } |
223 | 225 |
224 checkUnnamed1764(core.List<api.AuthRequirement> o) { | 226 checkUnnamed1781(core.List<api.AuthRequirement> o) { |
225 unittest.expect(o, unittest.hasLength(2)); | 227 unittest.expect(o, unittest.hasLength(2)); |
226 checkAuthRequirement(o[0]); | 228 checkAuthRequirement(o[0]); |
227 checkAuthRequirement(o[1]); | 229 checkAuthRequirement(o[1]); |
228 } | 230 } |
229 | 231 |
230 core.int buildCounterAuthenticationRule = 0; | 232 core.int buildCounterAuthenticationRule = 0; |
231 buildAuthenticationRule() { | 233 buildAuthenticationRule() { |
232 var o = new api.AuthenticationRule(); | 234 var o = new api.AuthenticationRule(); |
233 buildCounterAuthenticationRule++; | 235 buildCounterAuthenticationRule++; |
234 if (buildCounterAuthenticationRule < 3) { | 236 if (buildCounterAuthenticationRule < 3) { |
235 o.allowWithoutCredential = true; | 237 o.allowWithoutCredential = true; |
236 o.customAuth = buildCustomAuthRequirements(); | 238 o.customAuth = buildCustomAuthRequirements(); |
237 o.oauth = buildOAuthRequirements(); | 239 o.oauth = buildOAuthRequirements(); |
238 o.requirements = buildUnnamed1764(); | 240 o.requirements = buildUnnamed1781(); |
239 o.selector = "foo"; | 241 o.selector = "foo"; |
240 } | 242 } |
241 buildCounterAuthenticationRule--; | 243 buildCounterAuthenticationRule--; |
242 return o; | 244 return o; |
243 } | 245 } |
244 | 246 |
245 checkAuthenticationRule(api.AuthenticationRule o) { | 247 checkAuthenticationRule(api.AuthenticationRule o) { |
246 buildCounterAuthenticationRule++; | 248 buildCounterAuthenticationRule++; |
247 if (buildCounterAuthenticationRule < 3) { | 249 if (buildCounterAuthenticationRule < 3) { |
248 unittest.expect(o.allowWithoutCredential, unittest.isTrue); | 250 unittest.expect(o.allowWithoutCredential, unittest.isTrue); |
249 checkCustomAuthRequirements(o.customAuth); | 251 checkCustomAuthRequirements(o.customAuth); |
250 checkOAuthRequirements(o.oauth); | 252 checkOAuthRequirements(o.oauth); |
251 checkUnnamed1764(o.requirements); | 253 checkUnnamed1781(o.requirements); |
252 unittest.expect(o.selector, unittest.equals('foo')); | 254 unittest.expect(o.selector, unittest.equals('foo')); |
253 } | 255 } |
254 buildCounterAuthenticationRule--; | 256 buildCounterAuthenticationRule--; |
255 } | 257 } |
256 | 258 |
257 core.int buildCounterAuthorizationConfig = 0; | 259 core.int buildCounterAuthorizationConfig = 0; |
258 buildAuthorizationConfig() { | 260 buildAuthorizationConfig() { |
259 var o = new api.AuthorizationConfig(); | 261 var o = new api.AuthorizationConfig(); |
260 buildCounterAuthorizationConfig++; | 262 buildCounterAuthorizationConfig++; |
261 if (buildCounterAuthorizationConfig < 3) { | 263 if (buildCounterAuthorizationConfig < 3) { |
262 o.provider = "foo"; | 264 o.provider = "foo"; |
263 } | 265 } |
264 buildCounterAuthorizationConfig--; | 266 buildCounterAuthorizationConfig--; |
265 return o; | 267 return o; |
266 } | 268 } |
267 | 269 |
268 checkAuthorizationConfig(api.AuthorizationConfig o) { | 270 checkAuthorizationConfig(api.AuthorizationConfig o) { |
269 buildCounterAuthorizationConfig++; | 271 buildCounterAuthorizationConfig++; |
270 if (buildCounterAuthorizationConfig < 3) { | 272 if (buildCounterAuthorizationConfig < 3) { |
271 unittest.expect(o.provider, unittest.equals('foo')); | 273 unittest.expect(o.provider, unittest.equals('foo')); |
272 } | 274 } |
273 buildCounterAuthorizationConfig--; | 275 buildCounterAuthorizationConfig--; |
274 } | 276 } |
275 | 277 |
276 buildUnnamed1765() { | 278 core.int buildCounterAuthorizationRule = 0; |
| 279 buildAuthorizationRule() { |
| 280 var o = new api.AuthorizationRule(); |
| 281 buildCounterAuthorizationRule++; |
| 282 if (buildCounterAuthorizationRule < 3) { |
| 283 o.permissions = "foo"; |
| 284 o.selector = "foo"; |
| 285 } |
| 286 buildCounterAuthorizationRule--; |
| 287 return o; |
| 288 } |
| 289 |
| 290 checkAuthorizationRule(api.AuthorizationRule o) { |
| 291 buildCounterAuthorizationRule++; |
| 292 if (buildCounterAuthorizationRule < 3) { |
| 293 unittest.expect(o.permissions, unittest.equals('foo')); |
| 294 unittest.expect(o.selector, unittest.equals('foo')); |
| 295 } |
| 296 buildCounterAuthorizationRule--; |
| 297 } |
| 298 |
| 299 buildUnnamed1782() { |
277 var o = new core.List<api.BackendRule>(); | 300 var o = new core.List<api.BackendRule>(); |
278 o.add(buildBackendRule()); | 301 o.add(buildBackendRule()); |
279 o.add(buildBackendRule()); | 302 o.add(buildBackendRule()); |
280 return o; | 303 return o; |
281 } | 304 } |
282 | 305 |
283 checkUnnamed1765(core.List<api.BackendRule> o) { | 306 checkUnnamed1782(core.List<api.BackendRule> o) { |
284 unittest.expect(o, unittest.hasLength(2)); | 307 unittest.expect(o, unittest.hasLength(2)); |
285 checkBackendRule(o[0]); | 308 checkBackendRule(o[0]); |
286 checkBackendRule(o[1]); | 309 checkBackendRule(o[1]); |
287 } | 310 } |
288 | 311 |
289 core.int buildCounterBackend = 0; | 312 core.int buildCounterBackend = 0; |
290 buildBackend() { | 313 buildBackend() { |
291 var o = new api.Backend(); | 314 var o = new api.Backend(); |
292 buildCounterBackend++; | 315 buildCounterBackend++; |
293 if (buildCounterBackend < 3) { | 316 if (buildCounterBackend < 3) { |
294 o.rules = buildUnnamed1765(); | 317 o.rules = buildUnnamed1782(); |
295 } | 318 } |
296 buildCounterBackend--; | 319 buildCounterBackend--; |
297 return o; | 320 return o; |
298 } | 321 } |
299 | 322 |
300 checkBackend(api.Backend o) { | 323 checkBackend(api.Backend o) { |
301 buildCounterBackend++; | 324 buildCounterBackend++; |
302 if (buildCounterBackend < 3) { | 325 if (buildCounterBackend < 3) { |
303 checkUnnamed1765(o.rules); | 326 checkUnnamed1782(o.rules); |
304 } | 327 } |
305 buildCounterBackend--; | 328 buildCounterBackend--; |
306 } | 329 } |
307 | 330 |
308 core.int buildCounterBackendRule = 0; | 331 core.int buildCounterBackendRule = 0; |
309 buildBackendRule() { | 332 buildBackendRule() { |
310 var o = new api.BackendRule(); | 333 var o = new api.BackendRule(); |
311 buildCounterBackendRule++; | 334 buildCounterBackendRule++; |
312 if (buildCounterBackendRule < 3) { | 335 if (buildCounterBackendRule < 3) { |
313 o.address = "foo"; | 336 o.address = "foo"; |
314 o.deadline = 42.0; | 337 o.deadline = 42.0; |
315 o.minDeadline = 42.0; | 338 o.minDeadline = 42.0; |
316 o.selector = "foo"; | 339 o.selector = "foo"; |
317 } | 340 } |
318 buildCounterBackendRule--; | 341 buildCounterBackendRule--; |
319 return o; | 342 return o; |
320 } | 343 } |
321 | 344 |
322 checkBackendRule(api.BackendRule o) { | 345 checkBackendRule(api.BackendRule o) { |
323 buildCounterBackendRule++; | 346 buildCounterBackendRule++; |
324 if (buildCounterBackendRule < 3) { | 347 if (buildCounterBackendRule < 3) { |
325 unittest.expect(o.address, unittest.equals('foo')); | 348 unittest.expect(o.address, unittest.equals('foo')); |
326 unittest.expect(o.deadline, unittest.equals(42.0)); | 349 unittest.expect(o.deadline, unittest.equals(42.0)); |
327 unittest.expect(o.minDeadline, unittest.equals(42.0)); | 350 unittest.expect(o.minDeadline, unittest.equals(42.0)); |
328 unittest.expect(o.selector, unittest.equals('foo')); | 351 unittest.expect(o.selector, unittest.equals('foo')); |
329 } | 352 } |
330 buildCounterBackendRule--; | 353 buildCounterBackendRule--; |
331 } | 354 } |
332 | 355 |
333 buildUnnamed1766() { | 356 buildUnnamed1783() { |
334 var o = new core.List<api.ContextRule>(); | 357 var o = new core.List<api.ContextRule>(); |
335 o.add(buildContextRule()); | 358 o.add(buildContextRule()); |
336 o.add(buildContextRule()); | 359 o.add(buildContextRule()); |
337 return o; | 360 return o; |
338 } | 361 } |
339 | 362 |
340 checkUnnamed1766(core.List<api.ContextRule> o) { | 363 checkUnnamed1783(core.List<api.ContextRule> o) { |
341 unittest.expect(o, unittest.hasLength(2)); | 364 unittest.expect(o, unittest.hasLength(2)); |
342 checkContextRule(o[0]); | 365 checkContextRule(o[0]); |
343 checkContextRule(o[1]); | 366 checkContextRule(o[1]); |
344 } | 367 } |
345 | 368 |
346 core.int buildCounterContext = 0; | 369 core.int buildCounterContext = 0; |
347 buildContext() { | 370 buildContext() { |
348 var o = new api.Context(); | 371 var o = new api.Context(); |
349 buildCounterContext++; | 372 buildCounterContext++; |
350 if (buildCounterContext < 3) { | 373 if (buildCounterContext < 3) { |
351 o.rules = buildUnnamed1766(); | 374 o.rules = buildUnnamed1783(); |
352 } | 375 } |
353 buildCounterContext--; | 376 buildCounterContext--; |
354 return o; | 377 return o; |
355 } | 378 } |
356 | 379 |
357 checkContext(api.Context o) { | 380 checkContext(api.Context o) { |
358 buildCounterContext++; | 381 buildCounterContext++; |
359 if (buildCounterContext < 3) { | 382 if (buildCounterContext < 3) { |
360 checkUnnamed1766(o.rules); | 383 checkUnnamed1783(o.rules); |
361 } | 384 } |
362 buildCounterContext--; | 385 buildCounterContext--; |
363 } | 386 } |
364 | 387 |
365 buildUnnamed1767() { | 388 buildUnnamed1784() { |
366 var o = new core.List<core.String>(); | 389 var o = new core.List<core.String>(); |
367 o.add("foo"); | 390 o.add("foo"); |
368 o.add("foo"); | 391 o.add("foo"); |
369 return o; | 392 return o; |
370 } | 393 } |
371 | 394 |
372 checkUnnamed1767(core.List<core.String> o) { | 395 checkUnnamed1784(core.List<core.String> o) { |
373 unittest.expect(o, unittest.hasLength(2)); | 396 unittest.expect(o, unittest.hasLength(2)); |
374 unittest.expect(o[0], unittest.equals('foo')); | 397 unittest.expect(o[0], unittest.equals('foo')); |
375 unittest.expect(o[1], unittest.equals('foo')); | 398 unittest.expect(o[1], unittest.equals('foo')); |
376 } | 399 } |
377 | 400 |
378 buildUnnamed1768() { | 401 buildUnnamed1785() { |
379 var o = new core.List<core.String>(); | 402 var o = new core.List<core.String>(); |
380 o.add("foo"); | 403 o.add("foo"); |
381 o.add("foo"); | 404 o.add("foo"); |
382 return o; | 405 return o; |
383 } | 406 } |
384 | 407 |
385 checkUnnamed1768(core.List<core.String> o) { | 408 checkUnnamed1785(core.List<core.String> o) { |
386 unittest.expect(o, unittest.hasLength(2)); | 409 unittest.expect(o, unittest.hasLength(2)); |
387 unittest.expect(o[0], unittest.equals('foo')); | 410 unittest.expect(o[0], unittest.equals('foo')); |
388 unittest.expect(o[1], unittest.equals('foo')); | 411 unittest.expect(o[1], unittest.equals('foo')); |
389 } | 412 } |
390 | 413 |
391 core.int buildCounterContextRule = 0; | 414 core.int buildCounterContextRule = 0; |
392 buildContextRule() { | 415 buildContextRule() { |
393 var o = new api.ContextRule(); | 416 var o = new api.ContextRule(); |
394 buildCounterContextRule++; | 417 buildCounterContextRule++; |
395 if (buildCounterContextRule < 3) { | 418 if (buildCounterContextRule < 3) { |
396 o.provided = buildUnnamed1767(); | 419 o.provided = buildUnnamed1784(); |
397 o.requested = buildUnnamed1768(); | 420 o.requested = buildUnnamed1785(); |
398 o.selector = "foo"; | 421 o.selector = "foo"; |
399 } | 422 } |
400 buildCounterContextRule--; | 423 buildCounterContextRule--; |
401 return o; | 424 return o; |
402 } | 425 } |
403 | 426 |
404 checkContextRule(api.ContextRule o) { | 427 checkContextRule(api.ContextRule o) { |
405 buildCounterContextRule++; | 428 buildCounterContextRule++; |
406 if (buildCounterContextRule < 3) { | 429 if (buildCounterContextRule < 3) { |
407 checkUnnamed1767(o.provided); | 430 checkUnnamed1784(o.provided); |
408 checkUnnamed1768(o.requested); | 431 checkUnnamed1785(o.requested); |
409 unittest.expect(o.selector, unittest.equals('foo')); | 432 unittest.expect(o.selector, unittest.equals('foo')); |
410 } | 433 } |
411 buildCounterContextRule--; | 434 buildCounterContextRule--; |
412 } | 435 } |
413 | 436 |
414 core.int buildCounterControl = 0; | 437 core.int buildCounterControl = 0; |
415 buildControl() { | 438 buildControl() { |
416 var o = new api.Control(); | 439 var o = new api.Control(); |
417 buildCounterControl++; | 440 buildCounterControl++; |
418 if (buildCounterControl < 3) { | 441 if (buildCounterControl < 3) { |
(...skipping 23 matching lines...) Loading... |
442 } | 465 } |
443 | 466 |
444 checkCustomAuthRequirements(api.CustomAuthRequirements o) { | 467 checkCustomAuthRequirements(api.CustomAuthRequirements o) { |
445 buildCounterCustomAuthRequirements++; | 468 buildCounterCustomAuthRequirements++; |
446 if (buildCounterCustomAuthRequirements < 3) { | 469 if (buildCounterCustomAuthRequirements < 3) { |
447 unittest.expect(o.provider, unittest.equals('foo')); | 470 unittest.expect(o.provider, unittest.equals('foo')); |
448 } | 471 } |
449 buildCounterCustomAuthRequirements--; | 472 buildCounterCustomAuthRequirements--; |
450 } | 473 } |
451 | 474 |
452 buildUnnamed1769() { | 475 buildUnnamed1786() { |
453 var o = new core.List<api.CustomErrorRule>(); | 476 var o = new core.List<api.CustomErrorRule>(); |
454 o.add(buildCustomErrorRule()); | 477 o.add(buildCustomErrorRule()); |
455 o.add(buildCustomErrorRule()); | 478 o.add(buildCustomErrorRule()); |
456 return o; | 479 return o; |
457 } | 480 } |
458 | 481 |
459 checkUnnamed1769(core.List<api.CustomErrorRule> o) { | 482 checkUnnamed1786(core.List<api.CustomErrorRule> o) { |
460 unittest.expect(o, unittest.hasLength(2)); | 483 unittest.expect(o, unittest.hasLength(2)); |
461 checkCustomErrorRule(o[0]); | 484 checkCustomErrorRule(o[0]); |
462 checkCustomErrorRule(o[1]); | 485 checkCustomErrorRule(o[1]); |
463 } | 486 } |
464 | 487 |
465 buildUnnamed1770() { | 488 buildUnnamed1787() { |
466 var o = new core.List<core.String>(); | 489 var o = new core.List<core.String>(); |
467 o.add("foo"); | 490 o.add("foo"); |
468 o.add("foo"); | 491 o.add("foo"); |
469 return o; | 492 return o; |
470 } | 493 } |
471 | 494 |
472 checkUnnamed1770(core.List<core.String> o) { | 495 checkUnnamed1787(core.List<core.String> o) { |
473 unittest.expect(o, unittest.hasLength(2)); | 496 unittest.expect(o, unittest.hasLength(2)); |
474 unittest.expect(o[0], unittest.equals('foo')); | 497 unittest.expect(o[0], unittest.equals('foo')); |
475 unittest.expect(o[1], unittest.equals('foo')); | 498 unittest.expect(o[1], unittest.equals('foo')); |
476 } | 499 } |
477 | 500 |
478 core.int buildCounterCustomError = 0; | 501 core.int buildCounterCustomError = 0; |
479 buildCustomError() { | 502 buildCustomError() { |
480 var o = new api.CustomError(); | 503 var o = new api.CustomError(); |
481 buildCounterCustomError++; | 504 buildCounterCustomError++; |
482 if (buildCounterCustomError < 3) { | 505 if (buildCounterCustomError < 3) { |
483 o.rules = buildUnnamed1769(); | 506 o.rules = buildUnnamed1786(); |
484 o.types = buildUnnamed1770(); | 507 o.types = buildUnnamed1787(); |
485 } | 508 } |
486 buildCounterCustomError--; | 509 buildCounterCustomError--; |
487 return o; | 510 return o; |
488 } | 511 } |
489 | 512 |
490 checkCustomError(api.CustomError o) { | 513 checkCustomError(api.CustomError o) { |
491 buildCounterCustomError++; | 514 buildCounterCustomError++; |
492 if (buildCounterCustomError < 3) { | 515 if (buildCounterCustomError < 3) { |
493 checkUnnamed1769(o.rules); | 516 checkUnnamed1786(o.rules); |
494 checkUnnamed1770(o.types); | 517 checkUnnamed1787(o.types); |
495 } | 518 } |
496 buildCounterCustomError--; | 519 buildCounterCustomError--; |
497 } | 520 } |
498 | 521 |
499 core.int buildCounterCustomErrorRule = 0; | 522 core.int buildCounterCustomErrorRule = 0; |
500 buildCustomErrorRule() { | 523 buildCustomErrorRule() { |
501 var o = new api.CustomErrorRule(); | 524 var o = new api.CustomErrorRule(); |
502 buildCounterCustomErrorRule++; | 525 buildCounterCustomErrorRule++; |
503 if (buildCounterCustomErrorRule < 3) { | 526 if (buildCounterCustomErrorRule < 3) { |
504 o.isErrorType = true; | 527 o.isErrorType = true; |
(...skipping 43 matching lines...) Loading... |
548 return o; | 571 return o; |
549 } | 572 } |
550 | 573 |
551 checkDisableServiceRequest(api.DisableServiceRequest o) { | 574 checkDisableServiceRequest(api.DisableServiceRequest o) { |
552 buildCounterDisableServiceRequest++; | 575 buildCounterDisableServiceRequest++; |
553 if (buildCounterDisableServiceRequest < 3) { | 576 if (buildCounterDisableServiceRequest < 3) { |
554 } | 577 } |
555 buildCounterDisableServiceRequest--; | 578 buildCounterDisableServiceRequest--; |
556 } | 579 } |
557 | 580 |
558 buildUnnamed1771() { | 581 buildUnnamed1788() { |
559 var o = new core.List<api.Page>(); | 582 var o = new core.List<api.Page>(); |
560 o.add(buildPage()); | 583 o.add(buildPage()); |
561 o.add(buildPage()); | 584 o.add(buildPage()); |
562 return o; | 585 return o; |
563 } | 586 } |
564 | 587 |
565 checkUnnamed1771(core.List<api.Page> o) { | 588 checkUnnamed1788(core.List<api.Page> o) { |
566 unittest.expect(o, unittest.hasLength(2)); | 589 unittest.expect(o, unittest.hasLength(2)); |
567 checkPage(o[0]); | 590 checkPage(o[0]); |
568 checkPage(o[1]); | 591 checkPage(o[1]); |
569 } | 592 } |
570 | 593 |
571 buildUnnamed1772() { | 594 buildUnnamed1789() { |
572 var o = new core.List<api.DocumentationRule>(); | 595 var o = new core.List<api.DocumentationRule>(); |
573 o.add(buildDocumentationRule()); | 596 o.add(buildDocumentationRule()); |
574 o.add(buildDocumentationRule()); | 597 o.add(buildDocumentationRule()); |
575 return o; | 598 return o; |
576 } | 599 } |
577 | 600 |
578 checkUnnamed1772(core.List<api.DocumentationRule> o) { | 601 checkUnnamed1789(core.List<api.DocumentationRule> o) { |
579 unittest.expect(o, unittest.hasLength(2)); | 602 unittest.expect(o, unittest.hasLength(2)); |
580 checkDocumentationRule(o[0]); | 603 checkDocumentationRule(o[0]); |
581 checkDocumentationRule(o[1]); | 604 checkDocumentationRule(o[1]); |
582 } | 605 } |
583 | 606 |
584 core.int buildCounterDocumentation = 0; | 607 core.int buildCounterDocumentation = 0; |
585 buildDocumentation() { | 608 buildDocumentation() { |
586 var o = new api.Documentation(); | 609 var o = new api.Documentation(); |
587 buildCounterDocumentation++; | 610 buildCounterDocumentation++; |
588 if (buildCounterDocumentation < 3) { | 611 if (buildCounterDocumentation < 3) { |
589 o.documentationRootUrl = "foo"; | 612 o.documentationRootUrl = "foo"; |
590 o.overview = "foo"; | 613 o.overview = "foo"; |
591 o.pages = buildUnnamed1771(); | 614 o.pages = buildUnnamed1788(); |
592 o.rules = buildUnnamed1772(); | 615 o.rules = buildUnnamed1789(); |
593 o.summary = "foo"; | 616 o.summary = "foo"; |
594 } | 617 } |
595 buildCounterDocumentation--; | 618 buildCounterDocumentation--; |
596 return o; | 619 return o; |
597 } | 620 } |
598 | 621 |
599 checkDocumentation(api.Documentation o) { | 622 checkDocumentation(api.Documentation o) { |
600 buildCounterDocumentation++; | 623 buildCounterDocumentation++; |
601 if (buildCounterDocumentation < 3) { | 624 if (buildCounterDocumentation < 3) { |
602 unittest.expect(o.documentationRootUrl, unittest.equals('foo')); | 625 unittest.expect(o.documentationRootUrl, unittest.equals('foo')); |
603 unittest.expect(o.overview, unittest.equals('foo')); | 626 unittest.expect(o.overview, unittest.equals('foo')); |
604 checkUnnamed1771(o.pages); | 627 checkUnnamed1788(o.pages); |
605 checkUnnamed1772(o.rules); | 628 checkUnnamed1789(o.rules); |
606 unittest.expect(o.summary, unittest.equals('foo')); | 629 unittest.expect(o.summary, unittest.equals('foo')); |
607 } | 630 } |
608 buildCounterDocumentation--; | 631 buildCounterDocumentation--; |
609 } | 632 } |
610 | 633 |
611 core.int buildCounterDocumentationRule = 0; | 634 core.int buildCounterDocumentationRule = 0; |
612 buildDocumentationRule() { | 635 buildDocumentationRule() { |
613 var o = new api.DocumentationRule(); | 636 var o = new api.DocumentationRule(); |
614 buildCounterDocumentationRule++; | 637 buildCounterDocumentationRule++; |
615 if (buildCounterDocumentationRule < 3) { | 638 if (buildCounterDocumentationRule < 3) { |
(...skipping 25 matching lines...) Loading... |
641 return o; | 664 return o; |
642 } | 665 } |
643 | 666 |
644 checkEnableServiceRequest(api.EnableServiceRequest o) { | 667 checkEnableServiceRequest(api.EnableServiceRequest o) { |
645 buildCounterEnableServiceRequest++; | 668 buildCounterEnableServiceRequest++; |
646 if (buildCounterEnableServiceRequest < 3) { | 669 if (buildCounterEnableServiceRequest < 3) { |
647 } | 670 } |
648 buildCounterEnableServiceRequest--; | 671 buildCounterEnableServiceRequest--; |
649 } | 672 } |
650 | 673 |
651 buildUnnamed1773() { | 674 buildUnnamed1790() { |
652 var o = new core.List<core.String>(); | 675 var o = new core.List<core.String>(); |
653 o.add("foo"); | 676 o.add("foo"); |
654 o.add("foo"); | 677 o.add("foo"); |
655 return o; | 678 return o; |
656 } | 679 } |
657 | 680 |
658 checkUnnamed1773(core.List<core.String> o) { | 681 checkUnnamed1790(core.List<core.String> o) { |
659 unittest.expect(o, unittest.hasLength(2)); | 682 unittest.expect(o, unittest.hasLength(2)); |
660 unittest.expect(o[0], unittest.equals('foo')); | 683 unittest.expect(o[0], unittest.equals('foo')); |
661 unittest.expect(o[1], unittest.equals('foo')); | 684 unittest.expect(o[1], unittest.equals('foo')); |
662 } | 685 } |
663 | 686 |
664 buildUnnamed1774() { | 687 buildUnnamed1791() { |
665 var o = new core.List<core.String>(); | 688 var o = new core.List<core.String>(); |
666 o.add("foo"); | 689 o.add("foo"); |
667 o.add("foo"); | 690 o.add("foo"); |
668 return o; | 691 return o; |
669 } | 692 } |
670 | 693 |
671 checkUnnamed1774(core.List<core.String> o) { | 694 checkUnnamed1791(core.List<core.String> o) { |
672 unittest.expect(o, unittest.hasLength(2)); | 695 unittest.expect(o, unittest.hasLength(2)); |
673 unittest.expect(o[0], unittest.equals('foo')); | 696 unittest.expect(o[0], unittest.equals('foo')); |
674 unittest.expect(o[1], unittest.equals('foo')); | 697 unittest.expect(o[1], unittest.equals('foo')); |
675 } | 698 } |
676 | 699 |
677 buildUnnamed1775() { | 700 buildUnnamed1792() { |
678 var o = new core.List<core.String>(); | 701 var o = new core.List<core.String>(); |
679 o.add("foo"); | 702 o.add("foo"); |
680 o.add("foo"); | 703 o.add("foo"); |
681 return o; | 704 return o; |
682 } | 705 } |
683 | 706 |
684 checkUnnamed1775(core.List<core.String> o) { | 707 checkUnnamed1792(core.List<core.String> o) { |
685 unittest.expect(o, unittest.hasLength(2)); | 708 unittest.expect(o, unittest.hasLength(2)); |
686 unittest.expect(o[0], unittest.equals('foo')); | 709 unittest.expect(o[0], unittest.equals('foo')); |
687 unittest.expect(o[1], unittest.equals('foo')); | 710 unittest.expect(o[1], unittest.equals('foo')); |
688 } | 711 } |
689 | 712 |
690 core.int buildCounterEndpoint = 0; | 713 core.int buildCounterEndpoint = 0; |
691 buildEndpoint() { | 714 buildEndpoint() { |
692 var o = new api.Endpoint(); | 715 var o = new api.Endpoint(); |
693 buildCounterEndpoint++; | 716 buildCounterEndpoint++; |
694 if (buildCounterEndpoint < 3) { | 717 if (buildCounterEndpoint < 3) { |
695 o.aliases = buildUnnamed1773(); | 718 o.aliases = buildUnnamed1790(); |
696 o.allowCors = true; | 719 o.allowCors = true; |
697 o.apis = buildUnnamed1774(); | 720 o.apis = buildUnnamed1791(); |
698 o.features = buildUnnamed1775(); | 721 o.features = buildUnnamed1792(); |
699 o.name = "foo"; | 722 o.name = "foo"; |
700 o.target = "foo"; | 723 o.target = "foo"; |
701 } | 724 } |
702 buildCounterEndpoint--; | 725 buildCounterEndpoint--; |
703 return o; | 726 return o; |
704 } | 727 } |
705 | 728 |
706 checkEndpoint(api.Endpoint o) { | 729 checkEndpoint(api.Endpoint o) { |
707 buildCounterEndpoint++; | 730 buildCounterEndpoint++; |
708 if (buildCounterEndpoint < 3) { | 731 if (buildCounterEndpoint < 3) { |
709 checkUnnamed1773(o.aliases); | 732 checkUnnamed1790(o.aliases); |
710 unittest.expect(o.allowCors, unittest.isTrue); | 733 unittest.expect(o.allowCors, unittest.isTrue); |
711 checkUnnamed1774(o.apis); | 734 checkUnnamed1791(o.apis); |
712 checkUnnamed1775(o.features); | 735 checkUnnamed1792(o.features); |
713 unittest.expect(o.name, unittest.equals('foo')); | 736 unittest.expect(o.name, unittest.equals('foo')); |
714 unittest.expect(o.target, unittest.equals('foo')); | 737 unittest.expect(o.target, unittest.equals('foo')); |
715 } | 738 } |
716 buildCounterEndpoint--; | 739 buildCounterEndpoint--; |
717 } | 740 } |
718 | 741 |
719 buildUnnamed1776() { | 742 buildUnnamed1793() { |
720 var o = new core.List<api.EnumValue>(); | 743 var o = new core.List<api.EnumValue>(); |
721 o.add(buildEnumValue()); | 744 o.add(buildEnumValue()); |
722 o.add(buildEnumValue()); | 745 o.add(buildEnumValue()); |
723 return o; | 746 return o; |
724 } | 747 } |
725 | 748 |
726 checkUnnamed1776(core.List<api.EnumValue> o) { | 749 checkUnnamed1793(core.List<api.EnumValue> o) { |
727 unittest.expect(o, unittest.hasLength(2)); | 750 unittest.expect(o, unittest.hasLength(2)); |
728 checkEnumValue(o[0]); | 751 checkEnumValue(o[0]); |
729 checkEnumValue(o[1]); | 752 checkEnumValue(o[1]); |
730 } | 753 } |
731 | 754 |
732 buildUnnamed1777() { | 755 buildUnnamed1794() { |
733 var o = new core.List<api.Option>(); | 756 var o = new core.List<api.Option>(); |
734 o.add(buildOption()); | 757 o.add(buildOption()); |
735 o.add(buildOption()); | 758 o.add(buildOption()); |
736 return o; | 759 return o; |
737 } | 760 } |
738 | 761 |
739 checkUnnamed1777(core.List<api.Option> o) { | 762 checkUnnamed1794(core.List<api.Option> o) { |
740 unittest.expect(o, unittest.hasLength(2)); | 763 unittest.expect(o, unittest.hasLength(2)); |
741 checkOption(o[0]); | 764 checkOption(o[0]); |
742 checkOption(o[1]); | 765 checkOption(o[1]); |
743 } | 766 } |
744 | 767 |
745 core.int buildCounterEnum = 0; | 768 core.int buildCounterEnum = 0; |
746 buildEnum() { | 769 buildEnum() { |
747 var o = new api.Enum(); | 770 var o = new api.Enum(); |
748 buildCounterEnum++; | 771 buildCounterEnum++; |
749 if (buildCounterEnum < 3) { | 772 if (buildCounterEnum < 3) { |
750 o.enumvalue = buildUnnamed1776(); | 773 o.enumvalue = buildUnnamed1793(); |
751 o.name = "foo"; | 774 o.name = "foo"; |
752 o.options = buildUnnamed1777(); | 775 o.options = buildUnnamed1794(); |
753 o.sourceContext = buildSourceContext(); | 776 o.sourceContext = buildSourceContext(); |
754 o.syntax = "foo"; | 777 o.syntax = "foo"; |
755 } | 778 } |
756 buildCounterEnum--; | 779 buildCounterEnum--; |
757 return o; | 780 return o; |
758 } | 781 } |
759 | 782 |
760 checkEnum(api.Enum o) { | 783 checkEnum(api.Enum o) { |
761 buildCounterEnum++; | 784 buildCounterEnum++; |
762 if (buildCounterEnum < 3) { | 785 if (buildCounterEnum < 3) { |
763 checkUnnamed1776(o.enumvalue); | 786 checkUnnamed1793(o.enumvalue); |
764 unittest.expect(o.name, unittest.equals('foo')); | 787 unittest.expect(o.name, unittest.equals('foo')); |
765 checkUnnamed1777(o.options); | 788 checkUnnamed1794(o.options); |
766 checkSourceContext(o.sourceContext); | 789 checkSourceContext(o.sourceContext); |
767 unittest.expect(o.syntax, unittest.equals('foo')); | 790 unittest.expect(o.syntax, unittest.equals('foo')); |
768 } | 791 } |
769 buildCounterEnum--; | 792 buildCounterEnum--; |
770 } | 793 } |
771 | 794 |
772 buildUnnamed1778() { | 795 buildUnnamed1795() { |
773 var o = new core.List<api.Option>(); | 796 var o = new core.List<api.Option>(); |
774 o.add(buildOption()); | 797 o.add(buildOption()); |
775 o.add(buildOption()); | 798 o.add(buildOption()); |
776 return o; | 799 return o; |
777 } | 800 } |
778 | 801 |
779 checkUnnamed1778(core.List<api.Option> o) { | 802 checkUnnamed1795(core.List<api.Option> o) { |
780 unittest.expect(o, unittest.hasLength(2)); | 803 unittest.expect(o, unittest.hasLength(2)); |
781 checkOption(o[0]); | 804 checkOption(o[0]); |
782 checkOption(o[1]); | 805 checkOption(o[1]); |
783 } | 806 } |
784 | 807 |
785 core.int buildCounterEnumValue = 0; | 808 core.int buildCounterEnumValue = 0; |
786 buildEnumValue() { | 809 buildEnumValue() { |
787 var o = new api.EnumValue(); | 810 var o = new api.EnumValue(); |
788 buildCounterEnumValue++; | 811 buildCounterEnumValue++; |
789 if (buildCounterEnumValue < 3) { | 812 if (buildCounterEnumValue < 3) { |
790 o.name = "foo"; | 813 o.name = "foo"; |
791 o.number = 42; | 814 o.number = 42; |
792 o.options = buildUnnamed1778(); | 815 o.options = buildUnnamed1795(); |
793 } | 816 } |
794 buildCounterEnumValue--; | 817 buildCounterEnumValue--; |
795 return o; | 818 return o; |
796 } | 819 } |
797 | 820 |
798 checkEnumValue(api.EnumValue o) { | 821 checkEnumValue(api.EnumValue o) { |
799 buildCounterEnumValue++; | 822 buildCounterEnumValue++; |
800 if (buildCounterEnumValue < 3) { | 823 if (buildCounterEnumValue < 3) { |
801 unittest.expect(o.name, unittest.equals('foo')); | 824 unittest.expect(o.name, unittest.equals('foo')); |
802 unittest.expect(o.number, unittest.equals(42)); | 825 unittest.expect(o.number, unittest.equals(42)); |
803 checkUnnamed1778(o.options); | 826 checkUnnamed1795(o.options); |
804 } | 827 } |
805 buildCounterEnumValue--; | 828 buildCounterEnumValue--; |
806 } | 829 } |
807 | 830 |
808 core.int buildCounterExperimental = 0; | 831 core.int buildCounterExperimental = 0; |
809 buildExperimental() { | 832 buildExperimental() { |
810 var o = new api.Experimental(); | 833 var o = new api.Experimental(); |
811 buildCounterExperimental++; | 834 buildCounterExperimental++; |
812 if (buildCounterExperimental < 3) { | 835 if (buildCounterExperimental < 3) { |
813 o.authorization = buildAuthorizationConfig(); | 836 o.authorization = buildAuthorizationConfig(); |
814 } | 837 } |
815 buildCounterExperimental--; | 838 buildCounterExperimental--; |
816 return o; | 839 return o; |
817 } | 840 } |
818 | 841 |
819 checkExperimental(api.Experimental o) { | 842 checkExperimental(api.Experimental o) { |
820 buildCounterExperimental++; | 843 buildCounterExperimental++; |
821 if (buildCounterExperimental < 3) { | 844 if (buildCounterExperimental < 3) { |
822 checkAuthorizationConfig(o.authorization); | 845 checkAuthorizationConfig(o.authorization); |
823 } | 846 } |
824 buildCounterExperimental--; | 847 buildCounterExperimental--; |
825 } | 848 } |
826 | 849 |
827 buildUnnamed1779() { | 850 buildUnnamed1796() { |
828 var o = new core.List<api.Option>(); | 851 var o = new core.List<api.Option>(); |
829 o.add(buildOption()); | 852 o.add(buildOption()); |
830 o.add(buildOption()); | 853 o.add(buildOption()); |
831 return o; | 854 return o; |
832 } | 855 } |
833 | 856 |
834 checkUnnamed1779(core.List<api.Option> o) { | 857 checkUnnamed1796(core.List<api.Option> o) { |
835 unittest.expect(o, unittest.hasLength(2)); | 858 unittest.expect(o, unittest.hasLength(2)); |
836 checkOption(o[0]); | 859 checkOption(o[0]); |
837 checkOption(o[1]); | 860 checkOption(o[1]); |
838 } | 861 } |
839 | 862 |
840 core.int buildCounterField = 0; | 863 core.int buildCounterField = 0; |
841 buildField() { | 864 buildField() { |
842 var o = new api.Field(); | 865 var o = new api.Field(); |
843 buildCounterField++; | 866 buildCounterField++; |
844 if (buildCounterField < 3) { | 867 if (buildCounterField < 3) { |
845 o.cardinality = "foo"; | 868 o.cardinality = "foo"; |
846 o.defaultValue = "foo"; | 869 o.defaultValue = "foo"; |
847 o.jsonName = "foo"; | 870 o.jsonName = "foo"; |
848 o.kind = "foo"; | 871 o.kind = "foo"; |
849 o.name = "foo"; | 872 o.name = "foo"; |
850 o.number = 42; | 873 o.number = 42; |
851 o.oneofIndex = 42; | 874 o.oneofIndex = 42; |
852 o.options = buildUnnamed1779(); | 875 o.options = buildUnnamed1796(); |
853 o.packed = true; | 876 o.packed = true; |
854 o.typeUrl = "foo"; | 877 o.typeUrl = "foo"; |
855 } | 878 } |
856 buildCounterField--; | 879 buildCounterField--; |
857 return o; | 880 return o; |
858 } | 881 } |
859 | 882 |
860 checkField(api.Field o) { | 883 checkField(api.Field o) { |
861 buildCounterField++; | 884 buildCounterField++; |
862 if (buildCounterField < 3) { | 885 if (buildCounterField < 3) { |
863 unittest.expect(o.cardinality, unittest.equals('foo')); | 886 unittest.expect(o.cardinality, unittest.equals('foo')); |
864 unittest.expect(o.defaultValue, unittest.equals('foo')); | 887 unittest.expect(o.defaultValue, unittest.equals('foo')); |
865 unittest.expect(o.jsonName, unittest.equals('foo')); | 888 unittest.expect(o.jsonName, unittest.equals('foo')); |
866 unittest.expect(o.kind, unittest.equals('foo')); | 889 unittest.expect(o.kind, unittest.equals('foo')); |
867 unittest.expect(o.name, unittest.equals('foo')); | 890 unittest.expect(o.name, unittest.equals('foo')); |
868 unittest.expect(o.number, unittest.equals(42)); | 891 unittest.expect(o.number, unittest.equals(42)); |
869 unittest.expect(o.oneofIndex, unittest.equals(42)); | 892 unittest.expect(o.oneofIndex, unittest.equals(42)); |
870 checkUnnamed1779(o.options); | 893 checkUnnamed1796(o.options); |
871 unittest.expect(o.packed, unittest.isTrue); | 894 unittest.expect(o.packed, unittest.isTrue); |
872 unittest.expect(o.typeUrl, unittest.equals('foo')); | 895 unittest.expect(o.typeUrl, unittest.equals('foo')); |
873 } | 896 } |
874 buildCounterField--; | 897 buildCounterField--; |
875 } | 898 } |
876 | 899 |
877 buildUnnamed1780() { | 900 buildUnnamed1797() { |
878 var o = new core.List<api.HttpRule>(); | 901 var o = new core.List<api.HttpRule>(); |
879 o.add(buildHttpRule()); | 902 o.add(buildHttpRule()); |
880 o.add(buildHttpRule()); | 903 o.add(buildHttpRule()); |
881 return o; | 904 return o; |
882 } | 905 } |
883 | 906 |
884 checkUnnamed1780(core.List<api.HttpRule> o) { | 907 checkUnnamed1797(core.List<api.HttpRule> o) { |
885 unittest.expect(o, unittest.hasLength(2)); | 908 unittest.expect(o, unittest.hasLength(2)); |
886 checkHttpRule(o[0]); | 909 checkHttpRule(o[0]); |
887 checkHttpRule(o[1]); | 910 checkHttpRule(o[1]); |
888 } | 911 } |
889 | 912 |
890 core.int buildCounterHttp = 0; | 913 core.int buildCounterHttp = 0; |
891 buildHttp() { | 914 buildHttp() { |
892 var o = new api.Http(); | 915 var o = new api.Http(); |
893 buildCounterHttp++; | 916 buildCounterHttp++; |
894 if (buildCounterHttp < 3) { | 917 if (buildCounterHttp < 3) { |
895 o.fullyDecodeReservedExpansion = true; | 918 o.fullyDecodeReservedExpansion = true; |
896 o.rules = buildUnnamed1780(); | 919 o.rules = buildUnnamed1797(); |
897 } | 920 } |
898 buildCounterHttp--; | 921 buildCounterHttp--; |
899 return o; | 922 return o; |
900 } | 923 } |
901 | 924 |
902 checkHttp(api.Http o) { | 925 checkHttp(api.Http o) { |
903 buildCounterHttp++; | 926 buildCounterHttp++; |
904 if (buildCounterHttp < 3) { | 927 if (buildCounterHttp < 3) { |
905 unittest.expect(o.fullyDecodeReservedExpansion, unittest.isTrue); | 928 unittest.expect(o.fullyDecodeReservedExpansion, unittest.isTrue); |
906 checkUnnamed1780(o.rules); | 929 checkUnnamed1797(o.rules); |
907 } | 930 } |
908 buildCounterHttp--; | 931 buildCounterHttp--; |
909 } | 932 } |
910 | 933 |
911 buildUnnamed1781() { | 934 buildUnnamed1798() { |
912 var o = new core.List<api.HttpRule>(); | 935 var o = new core.List<api.HttpRule>(); |
913 o.add(buildHttpRule()); | 936 o.add(buildHttpRule()); |
914 o.add(buildHttpRule()); | 937 o.add(buildHttpRule()); |
915 return o; | 938 return o; |
916 } | 939 } |
917 | 940 |
918 checkUnnamed1781(core.List<api.HttpRule> o) { | 941 checkUnnamed1798(core.List<api.HttpRule> o) { |
919 unittest.expect(o, unittest.hasLength(2)); | 942 unittest.expect(o, unittest.hasLength(2)); |
920 checkHttpRule(o[0]); | 943 checkHttpRule(o[0]); |
921 checkHttpRule(o[1]); | 944 checkHttpRule(o[1]); |
922 } | 945 } |
923 | 946 |
| 947 buildUnnamed1799() { |
| 948 var o = new core.List<api.AuthorizationRule>(); |
| 949 o.add(buildAuthorizationRule()); |
| 950 o.add(buildAuthorizationRule()); |
| 951 return o; |
| 952 } |
| 953 |
| 954 checkUnnamed1799(core.List<api.AuthorizationRule> o) { |
| 955 unittest.expect(o, unittest.hasLength(2)); |
| 956 checkAuthorizationRule(o[0]); |
| 957 checkAuthorizationRule(o[1]); |
| 958 } |
| 959 |
924 core.int buildCounterHttpRule = 0; | 960 core.int buildCounterHttpRule = 0; |
925 buildHttpRule() { | 961 buildHttpRule() { |
926 var o = new api.HttpRule(); | 962 var o = new api.HttpRule(); |
927 buildCounterHttpRule++; | 963 buildCounterHttpRule++; |
928 if (buildCounterHttpRule < 3) { | 964 if (buildCounterHttpRule < 3) { |
929 o.additionalBindings = buildUnnamed1781(); | 965 o.additionalBindings = buildUnnamed1798(); |
| 966 o.authorizations = buildUnnamed1799(); |
930 o.body = "foo"; | 967 o.body = "foo"; |
931 o.custom = buildCustomHttpPattern(); | 968 o.custom = buildCustomHttpPattern(); |
932 o.delete = "foo"; | 969 o.delete = "foo"; |
933 o.get = "foo"; | 970 o.get = "foo"; |
934 o.mediaDownload = buildMediaDownload(); | 971 o.mediaDownload = buildMediaDownload(); |
935 o.mediaUpload = buildMediaUpload(); | 972 o.mediaUpload = buildMediaUpload(); |
936 o.patch = "foo"; | 973 o.patch = "foo"; |
937 o.post = "foo"; | 974 o.post = "foo"; |
938 o.put = "foo"; | 975 o.put = "foo"; |
939 o.responseBody = "foo"; | 976 o.responseBody = "foo"; |
940 o.restCollection = "foo"; | 977 o.restCollection = "foo"; |
941 o.restMethodName = "foo"; | 978 o.restMethodName = "foo"; |
942 o.selector = "foo"; | 979 o.selector = "foo"; |
943 } | 980 } |
944 buildCounterHttpRule--; | 981 buildCounterHttpRule--; |
945 return o; | 982 return o; |
946 } | 983 } |
947 | 984 |
948 checkHttpRule(api.HttpRule o) { | 985 checkHttpRule(api.HttpRule o) { |
949 buildCounterHttpRule++; | 986 buildCounterHttpRule++; |
950 if (buildCounterHttpRule < 3) { | 987 if (buildCounterHttpRule < 3) { |
951 checkUnnamed1781(o.additionalBindings); | 988 checkUnnamed1798(o.additionalBindings); |
| 989 checkUnnamed1799(o.authorizations); |
952 unittest.expect(o.body, unittest.equals('foo')); | 990 unittest.expect(o.body, unittest.equals('foo')); |
953 checkCustomHttpPattern(o.custom); | 991 checkCustomHttpPattern(o.custom); |
954 unittest.expect(o.delete, unittest.equals('foo')); | 992 unittest.expect(o.delete, unittest.equals('foo')); |
955 unittest.expect(o.get, unittest.equals('foo')); | 993 unittest.expect(o.get, unittest.equals('foo')); |
956 checkMediaDownload(o.mediaDownload); | 994 checkMediaDownload(o.mediaDownload); |
957 checkMediaUpload(o.mediaUpload); | 995 checkMediaUpload(o.mediaUpload); |
958 unittest.expect(o.patch, unittest.equals('foo')); | 996 unittest.expect(o.patch, unittest.equals('foo')); |
959 unittest.expect(o.post, unittest.equals('foo')); | 997 unittest.expect(o.post, unittest.equals('foo')); |
960 unittest.expect(o.put, unittest.equals('foo')); | 998 unittest.expect(o.put, unittest.equals('foo')); |
961 unittest.expect(o.responseBody, unittest.equals('foo')); | 999 unittest.expect(o.responseBody, unittest.equals('foo')); |
(...skipping 20 matching lines...) Loading... |
982 checkLabelDescriptor(api.LabelDescriptor o) { | 1020 checkLabelDescriptor(api.LabelDescriptor o) { |
983 buildCounterLabelDescriptor++; | 1021 buildCounterLabelDescriptor++; |
984 if (buildCounterLabelDescriptor < 3) { | 1022 if (buildCounterLabelDescriptor < 3) { |
985 unittest.expect(o.description, unittest.equals('foo')); | 1023 unittest.expect(o.description, unittest.equals('foo')); |
986 unittest.expect(o.key, unittest.equals('foo')); | 1024 unittest.expect(o.key, unittest.equals('foo')); |
987 unittest.expect(o.valueType, unittest.equals('foo')); | 1025 unittest.expect(o.valueType, unittest.equals('foo')); |
988 } | 1026 } |
989 buildCounterLabelDescriptor--; | 1027 buildCounterLabelDescriptor--; |
990 } | 1028 } |
991 | 1029 |
992 buildUnnamed1782() { | 1030 buildUnnamed1800() { |
993 var o = new core.List<api.PublishedService>(); | 1031 var o = new core.List<api.PublishedService>(); |
994 o.add(buildPublishedService()); | 1032 o.add(buildPublishedService()); |
995 o.add(buildPublishedService()); | 1033 o.add(buildPublishedService()); |
996 return o; | 1034 return o; |
997 } | 1035 } |
998 | 1036 |
999 checkUnnamed1782(core.List<api.PublishedService> o) { | 1037 checkUnnamed1800(core.List<api.PublishedService> o) { |
1000 unittest.expect(o, unittest.hasLength(2)); | 1038 unittest.expect(o, unittest.hasLength(2)); |
1001 checkPublishedService(o[0]); | 1039 checkPublishedService(o[0]); |
1002 checkPublishedService(o[1]); | 1040 checkPublishedService(o[1]); |
1003 } | 1041 } |
1004 | 1042 |
1005 core.int buildCounterListEnabledServicesResponse = 0; | 1043 core.int buildCounterListEnabledServicesResponse = 0; |
1006 buildListEnabledServicesResponse() { | 1044 buildListEnabledServicesResponse() { |
1007 var o = new api.ListEnabledServicesResponse(); | 1045 var o = new api.ListEnabledServicesResponse(); |
1008 buildCounterListEnabledServicesResponse++; | 1046 buildCounterListEnabledServicesResponse++; |
1009 if (buildCounterListEnabledServicesResponse < 3) { | 1047 if (buildCounterListEnabledServicesResponse < 3) { |
1010 o.nextPageToken = "foo"; | 1048 o.nextPageToken = "foo"; |
1011 o.services = buildUnnamed1782(); | 1049 o.services = buildUnnamed1800(); |
1012 } | 1050 } |
1013 buildCounterListEnabledServicesResponse--; | 1051 buildCounterListEnabledServicesResponse--; |
1014 return o; | 1052 return o; |
1015 } | 1053 } |
1016 | 1054 |
1017 checkListEnabledServicesResponse(api.ListEnabledServicesResponse o) { | 1055 checkListEnabledServicesResponse(api.ListEnabledServicesResponse o) { |
1018 buildCounterListEnabledServicesResponse++; | 1056 buildCounterListEnabledServicesResponse++; |
1019 if (buildCounterListEnabledServicesResponse < 3) { | 1057 if (buildCounterListEnabledServicesResponse < 3) { |
1020 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1058 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1021 checkUnnamed1782(o.services); | 1059 checkUnnamed1800(o.services); |
1022 } | 1060 } |
1023 buildCounterListEnabledServicesResponse--; | 1061 buildCounterListEnabledServicesResponse--; |
1024 } | 1062 } |
1025 | 1063 |
1026 buildUnnamed1783() { | 1064 buildUnnamed1801() { |
1027 var o = new core.List<api.LabelDescriptor>(); | 1065 var o = new core.List<api.LabelDescriptor>(); |
1028 o.add(buildLabelDescriptor()); | 1066 o.add(buildLabelDescriptor()); |
1029 o.add(buildLabelDescriptor()); | 1067 o.add(buildLabelDescriptor()); |
1030 return o; | 1068 return o; |
1031 } | 1069 } |
1032 | 1070 |
1033 checkUnnamed1783(core.List<api.LabelDescriptor> o) { | 1071 checkUnnamed1801(core.List<api.LabelDescriptor> o) { |
1034 unittest.expect(o, unittest.hasLength(2)); | 1072 unittest.expect(o, unittest.hasLength(2)); |
1035 checkLabelDescriptor(o[0]); | 1073 checkLabelDescriptor(o[0]); |
1036 checkLabelDescriptor(o[1]); | 1074 checkLabelDescriptor(o[1]); |
1037 } | 1075 } |
1038 | 1076 |
1039 core.int buildCounterLogDescriptor = 0; | 1077 core.int buildCounterLogDescriptor = 0; |
1040 buildLogDescriptor() { | 1078 buildLogDescriptor() { |
1041 var o = new api.LogDescriptor(); | 1079 var o = new api.LogDescriptor(); |
1042 buildCounterLogDescriptor++; | 1080 buildCounterLogDescriptor++; |
1043 if (buildCounterLogDescriptor < 3) { | 1081 if (buildCounterLogDescriptor < 3) { |
1044 o.description = "foo"; | 1082 o.description = "foo"; |
1045 o.displayName = "foo"; | 1083 o.displayName = "foo"; |
1046 o.labels = buildUnnamed1783(); | 1084 o.labels = buildUnnamed1801(); |
1047 o.name = "foo"; | 1085 o.name = "foo"; |
1048 } | 1086 } |
1049 buildCounterLogDescriptor--; | 1087 buildCounterLogDescriptor--; |
1050 return o; | 1088 return o; |
1051 } | 1089 } |
1052 | 1090 |
1053 checkLogDescriptor(api.LogDescriptor o) { | 1091 checkLogDescriptor(api.LogDescriptor o) { |
1054 buildCounterLogDescriptor++; | 1092 buildCounterLogDescriptor++; |
1055 if (buildCounterLogDescriptor < 3) { | 1093 if (buildCounterLogDescriptor < 3) { |
1056 unittest.expect(o.description, unittest.equals('foo')); | 1094 unittest.expect(o.description, unittest.equals('foo')); |
1057 unittest.expect(o.displayName, unittest.equals('foo')); | 1095 unittest.expect(o.displayName, unittest.equals('foo')); |
1058 checkUnnamed1783(o.labels); | 1096 checkUnnamed1801(o.labels); |
1059 unittest.expect(o.name, unittest.equals('foo')); | 1097 unittest.expect(o.name, unittest.equals('foo')); |
1060 } | 1098 } |
1061 buildCounterLogDescriptor--; | 1099 buildCounterLogDescriptor--; |
1062 } | 1100 } |
1063 | 1101 |
1064 buildUnnamed1784() { | 1102 buildUnnamed1802() { |
1065 var o = new core.List<api.LoggingDestination>(); | 1103 var o = new core.List<api.LoggingDestination>(); |
1066 o.add(buildLoggingDestination()); | 1104 o.add(buildLoggingDestination()); |
1067 o.add(buildLoggingDestination()); | 1105 o.add(buildLoggingDestination()); |
1068 return o; | 1106 return o; |
1069 } | 1107 } |
1070 | 1108 |
1071 checkUnnamed1784(core.List<api.LoggingDestination> o) { | 1109 checkUnnamed1802(core.List<api.LoggingDestination> o) { |
1072 unittest.expect(o, unittest.hasLength(2)); | 1110 unittest.expect(o, unittest.hasLength(2)); |
1073 checkLoggingDestination(o[0]); | 1111 checkLoggingDestination(o[0]); |
1074 checkLoggingDestination(o[1]); | 1112 checkLoggingDestination(o[1]); |
1075 } | 1113 } |
1076 | 1114 |
1077 buildUnnamed1785() { | 1115 buildUnnamed1803() { |
1078 var o = new core.List<api.LoggingDestination>(); | 1116 var o = new core.List<api.LoggingDestination>(); |
1079 o.add(buildLoggingDestination()); | 1117 o.add(buildLoggingDestination()); |
1080 o.add(buildLoggingDestination()); | 1118 o.add(buildLoggingDestination()); |
1081 return o; | 1119 return o; |
1082 } | 1120 } |
1083 | 1121 |
1084 checkUnnamed1785(core.List<api.LoggingDestination> o) { | 1122 checkUnnamed1803(core.List<api.LoggingDestination> o) { |
1085 unittest.expect(o, unittest.hasLength(2)); | 1123 unittest.expect(o, unittest.hasLength(2)); |
1086 checkLoggingDestination(o[0]); | 1124 checkLoggingDestination(o[0]); |
1087 checkLoggingDestination(o[1]); | 1125 checkLoggingDestination(o[1]); |
1088 } | 1126 } |
1089 | 1127 |
1090 core.int buildCounterLogging = 0; | 1128 core.int buildCounterLogging = 0; |
1091 buildLogging() { | 1129 buildLogging() { |
1092 var o = new api.Logging(); | 1130 var o = new api.Logging(); |
1093 buildCounterLogging++; | 1131 buildCounterLogging++; |
1094 if (buildCounterLogging < 3) { | 1132 if (buildCounterLogging < 3) { |
1095 o.consumerDestinations = buildUnnamed1784(); | 1133 o.consumerDestinations = buildUnnamed1802(); |
1096 o.producerDestinations = buildUnnamed1785(); | 1134 o.producerDestinations = buildUnnamed1803(); |
1097 } | 1135 } |
1098 buildCounterLogging--; | 1136 buildCounterLogging--; |
1099 return o; | 1137 return o; |
1100 } | 1138 } |
1101 | 1139 |
1102 checkLogging(api.Logging o) { | 1140 checkLogging(api.Logging o) { |
1103 buildCounterLogging++; | 1141 buildCounterLogging++; |
1104 if (buildCounterLogging < 3) { | 1142 if (buildCounterLogging < 3) { |
1105 checkUnnamed1784(o.consumerDestinations); | 1143 checkUnnamed1802(o.consumerDestinations); |
1106 checkUnnamed1785(o.producerDestinations); | 1144 checkUnnamed1803(o.producerDestinations); |
1107 } | 1145 } |
1108 buildCounterLogging--; | 1146 buildCounterLogging--; |
1109 } | 1147 } |
1110 | 1148 |
1111 buildUnnamed1786() { | 1149 buildUnnamed1804() { |
1112 var o = new core.List<core.String>(); | 1150 var o = new core.List<core.String>(); |
1113 o.add("foo"); | 1151 o.add("foo"); |
1114 o.add("foo"); | 1152 o.add("foo"); |
1115 return o; | 1153 return o; |
1116 } | 1154 } |
1117 | 1155 |
1118 checkUnnamed1786(core.List<core.String> o) { | 1156 checkUnnamed1804(core.List<core.String> o) { |
1119 unittest.expect(o, unittest.hasLength(2)); | 1157 unittest.expect(o, unittest.hasLength(2)); |
1120 unittest.expect(o[0], unittest.equals('foo')); | 1158 unittest.expect(o[0], unittest.equals('foo')); |
1121 unittest.expect(o[1], unittest.equals('foo')); | 1159 unittest.expect(o[1], unittest.equals('foo')); |
1122 } | 1160 } |
1123 | 1161 |
1124 core.int buildCounterLoggingDestination = 0; | 1162 core.int buildCounterLoggingDestination = 0; |
1125 buildLoggingDestination() { | 1163 buildLoggingDestination() { |
1126 var o = new api.LoggingDestination(); | 1164 var o = new api.LoggingDestination(); |
1127 buildCounterLoggingDestination++; | 1165 buildCounterLoggingDestination++; |
1128 if (buildCounterLoggingDestination < 3) { | 1166 if (buildCounterLoggingDestination < 3) { |
1129 o.logs = buildUnnamed1786(); | 1167 o.logs = buildUnnamed1804(); |
1130 o.monitoredResource = "foo"; | 1168 o.monitoredResource = "foo"; |
1131 } | 1169 } |
1132 buildCounterLoggingDestination--; | 1170 buildCounterLoggingDestination--; |
1133 return o; | 1171 return o; |
1134 } | 1172 } |
1135 | 1173 |
1136 checkLoggingDestination(api.LoggingDestination o) { | 1174 checkLoggingDestination(api.LoggingDestination o) { |
1137 buildCounterLoggingDestination++; | 1175 buildCounterLoggingDestination++; |
1138 if (buildCounterLoggingDestination < 3) { | 1176 if (buildCounterLoggingDestination < 3) { |
1139 checkUnnamed1786(o.logs); | 1177 checkUnnamed1804(o.logs); |
1140 unittest.expect(o.monitoredResource, unittest.equals('foo')); | 1178 unittest.expect(o.monitoredResource, unittest.equals('foo')); |
1141 } | 1179 } |
1142 buildCounterLoggingDestination--; | 1180 buildCounterLoggingDestination--; |
1143 } | 1181 } |
1144 | 1182 |
1145 core.int buildCounterMediaDownload = 0; | 1183 core.int buildCounterMediaDownload = 0; |
1146 buildMediaDownload() { | 1184 buildMediaDownload() { |
1147 var o = new api.MediaDownload(); | 1185 var o = new api.MediaDownload(); |
1148 buildCounterMediaDownload++; | 1186 buildCounterMediaDownload++; |
1149 if (buildCounterMediaDownload < 3) { | 1187 if (buildCounterMediaDownload < 3) { |
(...skipping 14 matching lines...) Loading... |
1164 unittest.expect(o.completeNotification, unittest.isTrue); | 1202 unittest.expect(o.completeNotification, unittest.isTrue); |
1165 unittest.expect(o.downloadService, unittest.equals('foo')); | 1203 unittest.expect(o.downloadService, unittest.equals('foo')); |
1166 unittest.expect(o.dropzone, unittest.equals('foo')); | 1204 unittest.expect(o.dropzone, unittest.equals('foo')); |
1167 unittest.expect(o.enabled, unittest.isTrue); | 1205 unittest.expect(o.enabled, unittest.isTrue); |
1168 unittest.expect(o.maxDirectDownloadSize, unittest.equals('foo')); | 1206 unittest.expect(o.maxDirectDownloadSize, unittest.equals('foo')); |
1169 unittest.expect(o.useDirectDownload, unittest.isTrue); | 1207 unittest.expect(o.useDirectDownload, unittest.isTrue); |
1170 } | 1208 } |
1171 buildCounterMediaDownload--; | 1209 buildCounterMediaDownload--; |
1172 } | 1210 } |
1173 | 1211 |
1174 buildUnnamed1787() { | 1212 buildUnnamed1805() { |
1175 var o = new core.List<core.String>(); | 1213 var o = new core.List<core.String>(); |
1176 o.add("foo"); | 1214 o.add("foo"); |
1177 o.add("foo"); | 1215 o.add("foo"); |
1178 return o; | 1216 return o; |
1179 } | 1217 } |
1180 | 1218 |
1181 checkUnnamed1787(core.List<core.String> o) { | 1219 checkUnnamed1805(core.List<core.String> o) { |
1182 unittest.expect(o, unittest.hasLength(2)); | 1220 unittest.expect(o, unittest.hasLength(2)); |
1183 unittest.expect(o[0], unittest.equals('foo')); | 1221 unittest.expect(o[0], unittest.equals('foo')); |
1184 unittest.expect(o[1], unittest.equals('foo')); | 1222 unittest.expect(o[1], unittest.equals('foo')); |
1185 } | 1223 } |
1186 | 1224 |
1187 core.int buildCounterMediaUpload = 0; | 1225 core.int buildCounterMediaUpload = 0; |
1188 buildMediaUpload() { | 1226 buildMediaUpload() { |
1189 var o = new api.MediaUpload(); | 1227 var o = new api.MediaUpload(); |
1190 buildCounterMediaUpload++; | 1228 buildCounterMediaUpload++; |
1191 if (buildCounterMediaUpload < 3) { | 1229 if (buildCounterMediaUpload < 3) { |
1192 o.completeNotification = true; | 1230 o.completeNotification = true; |
1193 o.dropzone = "foo"; | 1231 o.dropzone = "foo"; |
1194 o.enabled = true; | 1232 o.enabled = true; |
1195 o.maxSize = "foo"; | 1233 o.maxSize = "foo"; |
1196 o.mimeTypes = buildUnnamed1787(); | 1234 o.mimeTypes = buildUnnamed1805(); |
1197 o.progressNotification = true; | 1235 o.progressNotification = true; |
1198 o.startNotification = true; | 1236 o.startNotification = true; |
1199 o.uploadService = "foo"; | 1237 o.uploadService = "foo"; |
1200 } | 1238 } |
1201 buildCounterMediaUpload--; | 1239 buildCounterMediaUpload--; |
1202 return o; | 1240 return o; |
1203 } | 1241 } |
1204 | 1242 |
1205 checkMediaUpload(api.MediaUpload o) { | 1243 checkMediaUpload(api.MediaUpload o) { |
1206 buildCounterMediaUpload++; | 1244 buildCounterMediaUpload++; |
1207 if (buildCounterMediaUpload < 3) { | 1245 if (buildCounterMediaUpload < 3) { |
1208 unittest.expect(o.completeNotification, unittest.isTrue); | 1246 unittest.expect(o.completeNotification, unittest.isTrue); |
1209 unittest.expect(o.dropzone, unittest.equals('foo')); | 1247 unittest.expect(o.dropzone, unittest.equals('foo')); |
1210 unittest.expect(o.enabled, unittest.isTrue); | 1248 unittest.expect(o.enabled, unittest.isTrue); |
1211 unittest.expect(o.maxSize, unittest.equals('foo')); | 1249 unittest.expect(o.maxSize, unittest.equals('foo')); |
1212 checkUnnamed1787(o.mimeTypes); | 1250 checkUnnamed1805(o.mimeTypes); |
1213 unittest.expect(o.progressNotification, unittest.isTrue); | 1251 unittest.expect(o.progressNotification, unittest.isTrue); |
1214 unittest.expect(o.startNotification, unittest.isTrue); | 1252 unittest.expect(o.startNotification, unittest.isTrue); |
1215 unittest.expect(o.uploadService, unittest.equals('foo')); | 1253 unittest.expect(o.uploadService, unittest.equals('foo')); |
1216 } | 1254 } |
1217 buildCounterMediaUpload--; | 1255 buildCounterMediaUpload--; |
1218 } | 1256 } |
1219 | 1257 |
1220 buildUnnamed1788() { | 1258 buildUnnamed1806() { |
1221 var o = new core.List<api.Option>(); | 1259 var o = new core.List<api.Option>(); |
1222 o.add(buildOption()); | 1260 o.add(buildOption()); |
1223 o.add(buildOption()); | 1261 o.add(buildOption()); |
1224 return o; | 1262 return o; |
1225 } | 1263 } |
1226 | 1264 |
1227 checkUnnamed1788(core.List<api.Option> o) { | 1265 checkUnnamed1806(core.List<api.Option> o) { |
1228 unittest.expect(o, unittest.hasLength(2)); | 1266 unittest.expect(o, unittest.hasLength(2)); |
1229 checkOption(o[0]); | 1267 checkOption(o[0]); |
1230 checkOption(o[1]); | 1268 checkOption(o[1]); |
1231 } | 1269 } |
1232 | 1270 |
1233 core.int buildCounterMethod = 0; | 1271 core.int buildCounterMethod = 0; |
1234 buildMethod() { | 1272 buildMethod() { |
1235 var o = new api.Method(); | 1273 var o = new api.Method(); |
1236 buildCounterMethod++; | 1274 buildCounterMethod++; |
1237 if (buildCounterMethod < 3) { | 1275 if (buildCounterMethod < 3) { |
1238 o.name = "foo"; | 1276 o.name = "foo"; |
1239 o.options = buildUnnamed1788(); | 1277 o.options = buildUnnamed1806(); |
1240 o.requestStreaming = true; | 1278 o.requestStreaming = true; |
1241 o.requestTypeUrl = "foo"; | 1279 o.requestTypeUrl = "foo"; |
1242 o.responseStreaming = true; | 1280 o.responseStreaming = true; |
1243 o.responseTypeUrl = "foo"; | 1281 o.responseTypeUrl = "foo"; |
1244 o.syntax = "foo"; | 1282 o.syntax = "foo"; |
1245 } | 1283 } |
1246 buildCounterMethod--; | 1284 buildCounterMethod--; |
1247 return o; | 1285 return o; |
1248 } | 1286 } |
1249 | 1287 |
1250 checkMethod(api.Method o) { | 1288 checkMethod(api.Method o) { |
1251 buildCounterMethod++; | 1289 buildCounterMethod++; |
1252 if (buildCounterMethod < 3) { | 1290 if (buildCounterMethod < 3) { |
1253 unittest.expect(o.name, unittest.equals('foo')); | 1291 unittest.expect(o.name, unittest.equals('foo')); |
1254 checkUnnamed1788(o.options); | 1292 checkUnnamed1806(o.options); |
1255 unittest.expect(o.requestStreaming, unittest.isTrue); | 1293 unittest.expect(o.requestStreaming, unittest.isTrue); |
1256 unittest.expect(o.requestTypeUrl, unittest.equals('foo')); | 1294 unittest.expect(o.requestTypeUrl, unittest.equals('foo')); |
1257 unittest.expect(o.responseStreaming, unittest.isTrue); | 1295 unittest.expect(o.responseStreaming, unittest.isTrue); |
1258 unittest.expect(o.responseTypeUrl, unittest.equals('foo')); | 1296 unittest.expect(o.responseTypeUrl, unittest.equals('foo')); |
1259 unittest.expect(o.syntax, unittest.equals('foo')); | 1297 unittest.expect(o.syntax, unittest.equals('foo')); |
1260 } | 1298 } |
1261 buildCounterMethod--; | 1299 buildCounterMethod--; |
1262 } | 1300 } |
1263 | 1301 |
1264 buildUnnamed1789() { | 1302 buildUnnamed1807() { |
1265 var o = new core.List<api.LabelDescriptor>(); | 1303 var o = new core.List<api.LabelDescriptor>(); |
1266 o.add(buildLabelDescriptor()); | 1304 o.add(buildLabelDescriptor()); |
1267 o.add(buildLabelDescriptor()); | 1305 o.add(buildLabelDescriptor()); |
1268 return o; | 1306 return o; |
1269 } | 1307 } |
1270 | 1308 |
1271 checkUnnamed1789(core.List<api.LabelDescriptor> o) { | 1309 checkUnnamed1807(core.List<api.LabelDescriptor> o) { |
1272 unittest.expect(o, unittest.hasLength(2)); | 1310 unittest.expect(o, unittest.hasLength(2)); |
1273 checkLabelDescriptor(o[0]); | 1311 checkLabelDescriptor(o[0]); |
1274 checkLabelDescriptor(o[1]); | 1312 checkLabelDescriptor(o[1]); |
1275 } | 1313 } |
1276 | 1314 |
1277 core.int buildCounterMetricDescriptor = 0; | 1315 core.int buildCounterMetricDescriptor = 0; |
1278 buildMetricDescriptor() { | 1316 buildMetricDescriptor() { |
1279 var o = new api.MetricDescriptor(); | 1317 var o = new api.MetricDescriptor(); |
1280 buildCounterMetricDescriptor++; | 1318 buildCounterMetricDescriptor++; |
1281 if (buildCounterMetricDescriptor < 3) { | 1319 if (buildCounterMetricDescriptor < 3) { |
1282 o.description = "foo"; | 1320 o.description = "foo"; |
1283 o.displayName = "foo"; | 1321 o.displayName = "foo"; |
1284 o.labels = buildUnnamed1789(); | 1322 o.labels = buildUnnamed1807(); |
1285 o.metricKind = "foo"; | 1323 o.metricKind = "foo"; |
1286 o.name = "foo"; | 1324 o.name = "foo"; |
1287 o.type = "foo"; | 1325 o.type = "foo"; |
1288 o.unit = "foo"; | 1326 o.unit = "foo"; |
1289 o.valueType = "foo"; | 1327 o.valueType = "foo"; |
1290 } | 1328 } |
1291 buildCounterMetricDescriptor--; | 1329 buildCounterMetricDescriptor--; |
1292 return o; | 1330 return o; |
1293 } | 1331 } |
1294 | 1332 |
1295 checkMetricDescriptor(api.MetricDescriptor o) { | 1333 checkMetricDescriptor(api.MetricDescriptor o) { |
1296 buildCounterMetricDescriptor++; | 1334 buildCounterMetricDescriptor++; |
1297 if (buildCounterMetricDescriptor < 3) { | 1335 if (buildCounterMetricDescriptor < 3) { |
1298 unittest.expect(o.description, unittest.equals('foo')); | 1336 unittest.expect(o.description, unittest.equals('foo')); |
1299 unittest.expect(o.displayName, unittest.equals('foo')); | 1337 unittest.expect(o.displayName, unittest.equals('foo')); |
1300 checkUnnamed1789(o.labels); | 1338 checkUnnamed1807(o.labels); |
1301 unittest.expect(o.metricKind, unittest.equals('foo')); | 1339 unittest.expect(o.metricKind, unittest.equals('foo')); |
1302 unittest.expect(o.name, unittest.equals('foo')); | 1340 unittest.expect(o.name, unittest.equals('foo')); |
1303 unittest.expect(o.type, unittest.equals('foo')); | 1341 unittest.expect(o.type, unittest.equals('foo')); |
1304 unittest.expect(o.unit, unittest.equals('foo')); | 1342 unittest.expect(o.unit, unittest.equals('foo')); |
1305 unittest.expect(o.valueType, unittest.equals('foo')); | 1343 unittest.expect(o.valueType, unittest.equals('foo')); |
1306 } | 1344 } |
1307 buildCounterMetricDescriptor--; | 1345 buildCounterMetricDescriptor--; |
1308 } | 1346 } |
1309 | 1347 |
1310 buildUnnamed1790() { | 1348 buildUnnamed1808() { |
1311 var o = new core.Map<core.String, core.String>(); | 1349 var o = new core.Map<core.String, core.String>(); |
1312 o["x"] = "foo"; | 1350 o["x"] = "foo"; |
1313 o["y"] = "foo"; | 1351 o["y"] = "foo"; |
1314 return o; | 1352 return o; |
1315 } | 1353 } |
1316 | 1354 |
1317 checkUnnamed1790(core.Map<core.String, core.String> o) { | 1355 checkUnnamed1808(core.Map<core.String, core.String> o) { |
1318 unittest.expect(o, unittest.hasLength(2)); | 1356 unittest.expect(o, unittest.hasLength(2)); |
1319 unittest.expect(o["x"], unittest.equals('foo')); | 1357 unittest.expect(o["x"], unittest.equals('foo')); |
1320 unittest.expect(o["y"], unittest.equals('foo')); | 1358 unittest.expect(o["y"], unittest.equals('foo')); |
1321 } | 1359 } |
1322 | 1360 |
1323 core.int buildCounterMetricRule = 0; | 1361 core.int buildCounterMetricRule = 0; |
1324 buildMetricRule() { | 1362 buildMetricRule() { |
1325 var o = new api.MetricRule(); | 1363 var o = new api.MetricRule(); |
1326 buildCounterMetricRule++; | 1364 buildCounterMetricRule++; |
1327 if (buildCounterMetricRule < 3) { | 1365 if (buildCounterMetricRule < 3) { |
1328 o.metricCosts = buildUnnamed1790(); | 1366 o.metricCosts = buildUnnamed1808(); |
1329 o.selector = "foo"; | 1367 o.selector = "foo"; |
1330 } | 1368 } |
1331 buildCounterMetricRule--; | 1369 buildCounterMetricRule--; |
1332 return o; | 1370 return o; |
1333 } | 1371 } |
1334 | 1372 |
1335 checkMetricRule(api.MetricRule o) { | 1373 checkMetricRule(api.MetricRule o) { |
1336 buildCounterMetricRule++; | 1374 buildCounterMetricRule++; |
1337 if (buildCounterMetricRule < 3) { | 1375 if (buildCounterMetricRule < 3) { |
1338 checkUnnamed1790(o.metricCosts); | 1376 checkUnnamed1808(o.metricCosts); |
1339 unittest.expect(o.selector, unittest.equals('foo')); | 1377 unittest.expect(o.selector, unittest.equals('foo')); |
1340 } | 1378 } |
1341 buildCounterMetricRule--; | 1379 buildCounterMetricRule--; |
1342 } | 1380 } |
1343 | 1381 |
1344 core.int buildCounterMixin = 0; | 1382 core.int buildCounterMixin = 0; |
1345 buildMixin() { | 1383 buildMixin() { |
1346 var o = new api.Mixin(); | 1384 var o = new api.Mixin(); |
1347 buildCounterMixin++; | 1385 buildCounterMixin++; |
1348 if (buildCounterMixin < 3) { | 1386 if (buildCounterMixin < 3) { |
1349 o.name = "foo"; | 1387 o.name = "foo"; |
1350 o.root = "foo"; | 1388 o.root = "foo"; |
1351 } | 1389 } |
1352 buildCounterMixin--; | 1390 buildCounterMixin--; |
1353 return o; | 1391 return o; |
1354 } | 1392 } |
1355 | 1393 |
1356 checkMixin(api.Mixin o) { | 1394 checkMixin(api.Mixin o) { |
1357 buildCounterMixin++; | 1395 buildCounterMixin++; |
1358 if (buildCounterMixin < 3) { | 1396 if (buildCounterMixin < 3) { |
1359 unittest.expect(o.name, unittest.equals('foo')); | 1397 unittest.expect(o.name, unittest.equals('foo')); |
1360 unittest.expect(o.root, unittest.equals('foo')); | 1398 unittest.expect(o.root, unittest.equals('foo')); |
1361 } | 1399 } |
1362 buildCounterMixin--; | 1400 buildCounterMixin--; |
1363 } | 1401 } |
1364 | 1402 |
1365 buildUnnamed1791() { | 1403 buildUnnamed1809() { |
1366 var o = new core.List<api.LabelDescriptor>(); | 1404 var o = new core.List<api.LabelDescriptor>(); |
1367 o.add(buildLabelDescriptor()); | 1405 o.add(buildLabelDescriptor()); |
1368 o.add(buildLabelDescriptor()); | 1406 o.add(buildLabelDescriptor()); |
1369 return o; | 1407 return o; |
1370 } | 1408 } |
1371 | 1409 |
1372 checkUnnamed1791(core.List<api.LabelDescriptor> o) { | 1410 checkUnnamed1809(core.List<api.LabelDescriptor> o) { |
1373 unittest.expect(o, unittest.hasLength(2)); | 1411 unittest.expect(o, unittest.hasLength(2)); |
1374 checkLabelDescriptor(o[0]); | 1412 checkLabelDescriptor(o[0]); |
1375 checkLabelDescriptor(o[1]); | 1413 checkLabelDescriptor(o[1]); |
1376 } | 1414 } |
1377 | 1415 |
1378 core.int buildCounterMonitoredResourceDescriptor = 0; | 1416 core.int buildCounterMonitoredResourceDescriptor = 0; |
1379 buildMonitoredResourceDescriptor() { | 1417 buildMonitoredResourceDescriptor() { |
1380 var o = new api.MonitoredResourceDescriptor(); | 1418 var o = new api.MonitoredResourceDescriptor(); |
1381 buildCounterMonitoredResourceDescriptor++; | 1419 buildCounterMonitoredResourceDescriptor++; |
1382 if (buildCounterMonitoredResourceDescriptor < 3) { | 1420 if (buildCounterMonitoredResourceDescriptor < 3) { |
1383 o.description = "foo"; | 1421 o.description = "foo"; |
1384 o.displayName = "foo"; | 1422 o.displayName = "foo"; |
1385 o.labels = buildUnnamed1791(); | 1423 o.labels = buildUnnamed1809(); |
1386 o.name = "foo"; | 1424 o.name = "foo"; |
1387 o.type = "foo"; | 1425 o.type = "foo"; |
1388 } | 1426 } |
1389 buildCounterMonitoredResourceDescriptor--; | 1427 buildCounterMonitoredResourceDescriptor--; |
1390 return o; | 1428 return o; |
1391 } | 1429 } |
1392 | 1430 |
1393 checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) { | 1431 checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) { |
1394 buildCounterMonitoredResourceDescriptor++; | 1432 buildCounterMonitoredResourceDescriptor++; |
1395 if (buildCounterMonitoredResourceDescriptor < 3) { | 1433 if (buildCounterMonitoredResourceDescriptor < 3) { |
1396 unittest.expect(o.description, unittest.equals('foo')); | 1434 unittest.expect(o.description, unittest.equals('foo')); |
1397 unittest.expect(o.displayName, unittest.equals('foo')); | 1435 unittest.expect(o.displayName, unittest.equals('foo')); |
1398 checkUnnamed1791(o.labels); | 1436 checkUnnamed1809(o.labels); |
1399 unittest.expect(o.name, unittest.equals('foo')); | 1437 unittest.expect(o.name, unittest.equals('foo')); |
1400 unittest.expect(o.type, unittest.equals('foo')); | 1438 unittest.expect(o.type, unittest.equals('foo')); |
1401 } | 1439 } |
1402 buildCounterMonitoredResourceDescriptor--; | 1440 buildCounterMonitoredResourceDescriptor--; |
1403 } | 1441 } |
1404 | 1442 |
1405 buildUnnamed1792() { | 1443 buildUnnamed1810() { |
1406 var o = new core.List<api.MonitoringDestination>(); | 1444 var o = new core.List<api.MonitoringDestination>(); |
1407 o.add(buildMonitoringDestination()); | 1445 o.add(buildMonitoringDestination()); |
1408 o.add(buildMonitoringDestination()); | 1446 o.add(buildMonitoringDestination()); |
1409 return o; | 1447 return o; |
1410 } | 1448 } |
1411 | 1449 |
1412 checkUnnamed1792(core.List<api.MonitoringDestination> o) { | 1450 checkUnnamed1810(core.List<api.MonitoringDestination> o) { |
1413 unittest.expect(o, unittest.hasLength(2)); | 1451 unittest.expect(o, unittest.hasLength(2)); |
1414 checkMonitoringDestination(o[0]); | 1452 checkMonitoringDestination(o[0]); |
1415 checkMonitoringDestination(o[1]); | 1453 checkMonitoringDestination(o[1]); |
1416 } | 1454 } |
1417 | 1455 |
1418 buildUnnamed1793() { | 1456 buildUnnamed1811() { |
1419 var o = new core.List<api.MonitoringDestination>(); | 1457 var o = new core.List<api.MonitoringDestination>(); |
1420 o.add(buildMonitoringDestination()); | 1458 o.add(buildMonitoringDestination()); |
1421 o.add(buildMonitoringDestination()); | 1459 o.add(buildMonitoringDestination()); |
1422 return o; | 1460 return o; |
1423 } | 1461 } |
1424 | 1462 |
1425 checkUnnamed1793(core.List<api.MonitoringDestination> o) { | 1463 checkUnnamed1811(core.List<api.MonitoringDestination> o) { |
1426 unittest.expect(o, unittest.hasLength(2)); | 1464 unittest.expect(o, unittest.hasLength(2)); |
1427 checkMonitoringDestination(o[0]); | 1465 checkMonitoringDestination(o[0]); |
1428 checkMonitoringDestination(o[1]); | 1466 checkMonitoringDestination(o[1]); |
1429 } | 1467 } |
1430 | 1468 |
1431 core.int buildCounterMonitoring = 0; | 1469 core.int buildCounterMonitoring = 0; |
1432 buildMonitoring() { | 1470 buildMonitoring() { |
1433 var o = new api.Monitoring(); | 1471 var o = new api.Monitoring(); |
1434 buildCounterMonitoring++; | 1472 buildCounterMonitoring++; |
1435 if (buildCounterMonitoring < 3) { | 1473 if (buildCounterMonitoring < 3) { |
1436 o.consumerDestinations = buildUnnamed1792(); | 1474 o.consumerDestinations = buildUnnamed1810(); |
1437 o.producerDestinations = buildUnnamed1793(); | 1475 o.producerDestinations = buildUnnamed1811(); |
1438 } | 1476 } |
1439 buildCounterMonitoring--; | 1477 buildCounterMonitoring--; |
1440 return o; | 1478 return o; |
1441 } | 1479 } |
1442 | 1480 |
1443 checkMonitoring(api.Monitoring o) { | 1481 checkMonitoring(api.Monitoring o) { |
1444 buildCounterMonitoring++; | 1482 buildCounterMonitoring++; |
1445 if (buildCounterMonitoring < 3) { | 1483 if (buildCounterMonitoring < 3) { |
1446 checkUnnamed1792(o.consumerDestinations); | 1484 checkUnnamed1810(o.consumerDestinations); |
1447 checkUnnamed1793(o.producerDestinations); | 1485 checkUnnamed1811(o.producerDestinations); |
1448 } | 1486 } |
1449 buildCounterMonitoring--; | 1487 buildCounterMonitoring--; |
1450 } | 1488 } |
1451 | 1489 |
1452 buildUnnamed1794() { | 1490 buildUnnamed1812() { |
1453 var o = new core.List<core.String>(); | 1491 var o = new core.List<core.String>(); |
1454 o.add("foo"); | 1492 o.add("foo"); |
1455 o.add("foo"); | 1493 o.add("foo"); |
1456 return o; | 1494 return o; |
1457 } | 1495 } |
1458 | 1496 |
1459 checkUnnamed1794(core.List<core.String> o) { | 1497 checkUnnamed1812(core.List<core.String> o) { |
1460 unittest.expect(o, unittest.hasLength(2)); | 1498 unittest.expect(o, unittest.hasLength(2)); |
1461 unittest.expect(o[0], unittest.equals('foo')); | 1499 unittest.expect(o[0], unittest.equals('foo')); |
1462 unittest.expect(o[1], unittest.equals('foo')); | 1500 unittest.expect(o[1], unittest.equals('foo')); |
1463 } | 1501 } |
1464 | 1502 |
1465 core.int buildCounterMonitoringDestination = 0; | 1503 core.int buildCounterMonitoringDestination = 0; |
1466 buildMonitoringDestination() { | 1504 buildMonitoringDestination() { |
1467 var o = new api.MonitoringDestination(); | 1505 var o = new api.MonitoringDestination(); |
1468 buildCounterMonitoringDestination++; | 1506 buildCounterMonitoringDestination++; |
1469 if (buildCounterMonitoringDestination < 3) { | 1507 if (buildCounterMonitoringDestination < 3) { |
1470 o.metrics = buildUnnamed1794(); | 1508 o.metrics = buildUnnamed1812(); |
1471 o.monitoredResource = "foo"; | 1509 o.monitoredResource = "foo"; |
1472 } | 1510 } |
1473 buildCounterMonitoringDestination--; | 1511 buildCounterMonitoringDestination--; |
1474 return o; | 1512 return o; |
1475 } | 1513 } |
1476 | 1514 |
1477 checkMonitoringDestination(api.MonitoringDestination o) { | 1515 checkMonitoringDestination(api.MonitoringDestination o) { |
1478 buildCounterMonitoringDestination++; | 1516 buildCounterMonitoringDestination++; |
1479 if (buildCounterMonitoringDestination < 3) { | 1517 if (buildCounterMonitoringDestination < 3) { |
1480 checkUnnamed1794(o.metrics); | 1518 checkUnnamed1812(o.metrics); |
1481 unittest.expect(o.monitoredResource, unittest.equals('foo')); | 1519 unittest.expect(o.monitoredResource, unittest.equals('foo')); |
1482 } | 1520 } |
1483 buildCounterMonitoringDestination--; | 1521 buildCounterMonitoringDestination--; |
1484 } | 1522 } |
1485 | 1523 |
1486 core.int buildCounterOAuthRequirements = 0; | 1524 core.int buildCounterOAuthRequirements = 0; |
1487 buildOAuthRequirements() { | 1525 buildOAuthRequirements() { |
1488 var o = new api.OAuthRequirements(); | 1526 var o = new api.OAuthRequirements(); |
1489 buildCounterOAuthRequirements++; | 1527 buildCounterOAuthRequirements++; |
1490 if (buildCounterOAuthRequirements < 3) { | 1528 if (buildCounterOAuthRequirements < 3) { |
1491 o.canonicalScopes = "foo"; | 1529 o.canonicalScopes = "foo"; |
1492 } | 1530 } |
1493 buildCounterOAuthRequirements--; | 1531 buildCounterOAuthRequirements--; |
1494 return o; | 1532 return o; |
1495 } | 1533 } |
1496 | 1534 |
1497 checkOAuthRequirements(api.OAuthRequirements o) { | 1535 checkOAuthRequirements(api.OAuthRequirements o) { |
1498 buildCounterOAuthRequirements++; | 1536 buildCounterOAuthRequirements++; |
1499 if (buildCounterOAuthRequirements < 3) { | 1537 if (buildCounterOAuthRequirements < 3) { |
1500 unittest.expect(o.canonicalScopes, unittest.equals('foo')); | 1538 unittest.expect(o.canonicalScopes, unittest.equals('foo')); |
1501 } | 1539 } |
1502 buildCounterOAuthRequirements--; | 1540 buildCounterOAuthRequirements--; |
1503 } | 1541 } |
1504 | 1542 |
1505 buildUnnamed1795() { | 1543 buildUnnamed1813() { |
1506 var o = new core.Map<core.String, core.Object>(); | 1544 var o = new core.Map<core.String, core.Object>(); |
1507 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1545 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1508 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1546 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1509 return o; | 1547 return o; |
1510 } | 1548 } |
1511 | 1549 |
1512 checkUnnamed1795(core.Map<core.String, core.Object> o) { | 1550 checkUnnamed1813(core.Map<core.String, core.Object> o) { |
1513 unittest.expect(o, unittest.hasLength(2)); | 1551 unittest.expect(o, unittest.hasLength(2)); |
1514 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')); | 1552 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')); |
1515 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')); | 1553 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')); |
1516 } | 1554 } |
1517 | 1555 |
1518 buildUnnamed1796() { | 1556 buildUnnamed1814() { |
1519 var o = new core.Map<core.String, core.Object>(); | 1557 var o = new core.Map<core.String, core.Object>(); |
1520 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1558 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1521 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1559 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1522 return o; | 1560 return o; |
1523 } | 1561 } |
1524 | 1562 |
1525 checkUnnamed1796(core.Map<core.String, core.Object> o) { | 1563 checkUnnamed1814(core.Map<core.String, core.Object> o) { |
1526 unittest.expect(o, unittest.hasLength(2)); | 1564 unittest.expect(o, unittest.hasLength(2)); |
1527 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')); | 1565 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')); |
1528 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')); | 1566 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')); |
1529 } | 1567 } |
1530 | 1568 |
1531 core.int buildCounterOperation = 0; | 1569 core.int buildCounterOperation = 0; |
1532 buildOperation() { | 1570 buildOperation() { |
1533 var o = new api.Operation(); | 1571 var o = new api.Operation(); |
1534 buildCounterOperation++; | 1572 buildCounterOperation++; |
1535 if (buildCounterOperation < 3) { | 1573 if (buildCounterOperation < 3) { |
1536 o.done = true; | 1574 o.done = true; |
1537 o.error = buildStatus(); | 1575 o.error = buildStatus(); |
1538 o.metadata = buildUnnamed1795(); | 1576 o.metadata = buildUnnamed1813(); |
1539 o.name = "foo"; | 1577 o.name = "foo"; |
1540 o.response = buildUnnamed1796(); | 1578 o.response = buildUnnamed1814(); |
1541 } | 1579 } |
1542 buildCounterOperation--; | 1580 buildCounterOperation--; |
1543 return o; | 1581 return o; |
1544 } | 1582 } |
1545 | 1583 |
1546 checkOperation(api.Operation o) { | 1584 checkOperation(api.Operation o) { |
1547 buildCounterOperation++; | 1585 buildCounterOperation++; |
1548 if (buildCounterOperation < 3) { | 1586 if (buildCounterOperation < 3) { |
1549 unittest.expect(o.done, unittest.isTrue); | 1587 unittest.expect(o.done, unittest.isTrue); |
1550 checkStatus(o.error); | 1588 checkStatus(o.error); |
1551 checkUnnamed1795(o.metadata); | 1589 checkUnnamed1813(o.metadata); |
1552 unittest.expect(o.name, unittest.equals('foo')); | 1590 unittest.expect(o.name, unittest.equals('foo')); |
1553 checkUnnamed1796(o.response); | 1591 checkUnnamed1814(o.response); |
1554 } | 1592 } |
1555 buildCounterOperation--; | 1593 buildCounterOperation--; |
1556 } | 1594 } |
1557 | 1595 |
1558 buildUnnamed1797() { | 1596 buildUnnamed1815() { |
1559 var o = new core.List<core.String>(); | 1597 var o = new core.List<core.String>(); |
1560 o.add("foo"); | 1598 o.add("foo"); |
1561 o.add("foo"); | 1599 o.add("foo"); |
1562 return o; | 1600 return o; |
1563 } | 1601 } |
1564 | 1602 |
1565 checkUnnamed1797(core.List<core.String> o) { | 1603 checkUnnamed1815(core.List<core.String> o) { |
1566 unittest.expect(o, unittest.hasLength(2)); | 1604 unittest.expect(o, unittest.hasLength(2)); |
1567 unittest.expect(o[0], unittest.equals('foo')); | 1605 unittest.expect(o[0], unittest.equals('foo')); |
1568 unittest.expect(o[1], unittest.equals('foo')); | 1606 unittest.expect(o[1], unittest.equals('foo')); |
1569 } | 1607 } |
1570 | 1608 |
1571 buildUnnamed1798() { | 1609 buildUnnamed1816() { |
1572 var o = new core.List<api.Step>(); | 1610 var o = new core.List<api.Step>(); |
1573 o.add(buildStep()); | 1611 o.add(buildStep()); |
1574 o.add(buildStep()); | 1612 o.add(buildStep()); |
1575 return o; | 1613 return o; |
1576 } | 1614 } |
1577 | 1615 |
1578 checkUnnamed1798(core.List<api.Step> o) { | 1616 checkUnnamed1816(core.List<api.Step> o) { |
1579 unittest.expect(o, unittest.hasLength(2)); | 1617 unittest.expect(o, unittest.hasLength(2)); |
1580 checkStep(o[0]); | 1618 checkStep(o[0]); |
1581 checkStep(o[1]); | 1619 checkStep(o[1]); |
1582 } | 1620 } |
1583 | 1621 |
1584 core.int buildCounterOperationMetadata = 0; | 1622 core.int buildCounterOperationMetadata = 0; |
1585 buildOperationMetadata() { | 1623 buildOperationMetadata() { |
1586 var o = new api.OperationMetadata(); | 1624 var o = new api.OperationMetadata(); |
1587 buildCounterOperationMetadata++; | 1625 buildCounterOperationMetadata++; |
1588 if (buildCounterOperationMetadata < 3) { | 1626 if (buildCounterOperationMetadata < 3) { |
1589 o.progressPercentage = 42; | 1627 o.progressPercentage = 42; |
1590 o.resourceNames = buildUnnamed1797(); | 1628 o.resourceNames = buildUnnamed1815(); |
1591 o.startTime = "foo"; | 1629 o.startTime = "foo"; |
1592 o.steps = buildUnnamed1798(); | 1630 o.steps = buildUnnamed1816(); |
1593 } | 1631 } |
1594 buildCounterOperationMetadata--; | 1632 buildCounterOperationMetadata--; |
1595 return o; | 1633 return o; |
1596 } | 1634 } |
1597 | 1635 |
1598 checkOperationMetadata(api.OperationMetadata o) { | 1636 checkOperationMetadata(api.OperationMetadata o) { |
1599 buildCounterOperationMetadata++; | 1637 buildCounterOperationMetadata++; |
1600 if (buildCounterOperationMetadata < 3) { | 1638 if (buildCounterOperationMetadata < 3) { |
1601 unittest.expect(o.progressPercentage, unittest.equals(42)); | 1639 unittest.expect(o.progressPercentage, unittest.equals(42)); |
1602 checkUnnamed1797(o.resourceNames); | 1640 checkUnnamed1815(o.resourceNames); |
1603 unittest.expect(o.startTime, unittest.equals('foo')); | 1641 unittest.expect(o.startTime, unittest.equals('foo')); |
1604 checkUnnamed1798(o.steps); | 1642 checkUnnamed1816(o.steps); |
1605 } | 1643 } |
1606 buildCounterOperationMetadata--; | 1644 buildCounterOperationMetadata--; |
1607 } | 1645 } |
1608 | 1646 |
1609 buildUnnamed1799() { | 1647 buildUnnamed1817() { |
1610 var o = new core.Map<core.String, core.Object>(); | 1648 var o = new core.Map<core.String, core.Object>(); |
1611 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1649 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1612 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1650 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1613 return o; | 1651 return o; |
1614 } | 1652 } |
1615 | 1653 |
1616 checkUnnamed1799(core.Map<core.String, core.Object> o) { | 1654 checkUnnamed1817(core.Map<core.String, core.Object> o) { |
1617 unittest.expect(o, unittest.hasLength(2)); | 1655 unittest.expect(o, unittest.hasLength(2)); |
1618 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')); | 1656 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')); |
1619 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')); | 1657 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')); |
1620 } | 1658 } |
1621 | 1659 |
1622 core.int buildCounterOption = 0; | 1660 core.int buildCounterOption = 0; |
1623 buildOption() { | 1661 buildOption() { |
1624 var o = new api.Option(); | 1662 var o = new api.Option(); |
1625 buildCounterOption++; | 1663 buildCounterOption++; |
1626 if (buildCounterOption < 3) { | 1664 if (buildCounterOption < 3) { |
1627 o.name = "foo"; | 1665 o.name = "foo"; |
1628 o.value = buildUnnamed1799(); | 1666 o.value = buildUnnamed1817(); |
1629 } | 1667 } |
1630 buildCounterOption--; | 1668 buildCounterOption--; |
1631 return o; | 1669 return o; |
1632 } | 1670 } |
1633 | 1671 |
1634 checkOption(api.Option o) { | 1672 checkOption(api.Option o) { |
1635 buildCounterOption++; | 1673 buildCounterOption++; |
1636 if (buildCounterOption < 3) { | 1674 if (buildCounterOption < 3) { |
1637 unittest.expect(o.name, unittest.equals('foo')); | 1675 unittest.expect(o.name, unittest.equals('foo')); |
1638 checkUnnamed1799(o.value); | 1676 checkUnnamed1817(o.value); |
1639 } | 1677 } |
1640 buildCounterOption--; | 1678 buildCounterOption--; |
1641 } | 1679 } |
1642 | 1680 |
1643 buildUnnamed1800() { | 1681 buildUnnamed1818() { |
1644 var o = new core.List<api.Page>(); | 1682 var o = new core.List<api.Page>(); |
1645 o.add(buildPage()); | 1683 o.add(buildPage()); |
1646 o.add(buildPage()); | 1684 o.add(buildPage()); |
1647 return o; | 1685 return o; |
1648 } | 1686 } |
1649 | 1687 |
1650 checkUnnamed1800(core.List<api.Page> o) { | 1688 checkUnnamed1818(core.List<api.Page> o) { |
1651 unittest.expect(o, unittest.hasLength(2)); | 1689 unittest.expect(o, unittest.hasLength(2)); |
1652 checkPage(o[0]); | 1690 checkPage(o[0]); |
1653 checkPage(o[1]); | 1691 checkPage(o[1]); |
1654 } | 1692 } |
1655 | 1693 |
1656 core.int buildCounterPage = 0; | 1694 core.int buildCounterPage = 0; |
1657 buildPage() { | 1695 buildPage() { |
1658 var o = new api.Page(); | 1696 var o = new api.Page(); |
1659 buildCounterPage++; | 1697 buildCounterPage++; |
1660 if (buildCounterPage < 3) { | 1698 if (buildCounterPage < 3) { |
1661 o.content = "foo"; | 1699 o.content = "foo"; |
1662 o.name = "foo"; | 1700 o.name = "foo"; |
1663 o.subpages = buildUnnamed1800(); | 1701 o.subpages = buildUnnamed1818(); |
1664 } | 1702 } |
1665 buildCounterPage--; | 1703 buildCounterPage--; |
1666 return o; | 1704 return o; |
1667 } | 1705 } |
1668 | 1706 |
1669 checkPage(api.Page o) { | 1707 checkPage(api.Page o) { |
1670 buildCounterPage++; | 1708 buildCounterPage++; |
1671 if (buildCounterPage < 3) { | 1709 if (buildCounterPage < 3) { |
1672 unittest.expect(o.content, unittest.equals('foo')); | 1710 unittest.expect(o.content, unittest.equals('foo')); |
1673 unittest.expect(o.name, unittest.equals('foo')); | 1711 unittest.expect(o.name, unittest.equals('foo')); |
1674 checkUnnamed1800(o.subpages); | 1712 checkUnnamed1818(o.subpages); |
1675 } | 1713 } |
1676 buildCounterPage--; | 1714 buildCounterPage--; |
1677 } | 1715 } |
1678 | 1716 |
1679 core.int buildCounterPublishedService = 0; | 1717 core.int buildCounterPublishedService = 0; |
1680 buildPublishedService() { | 1718 buildPublishedService() { |
1681 var o = new api.PublishedService(); | 1719 var o = new api.PublishedService(); |
1682 buildCounterPublishedService++; | 1720 buildCounterPublishedService++; |
1683 if (buildCounterPublishedService < 3) { | 1721 if (buildCounterPublishedService < 3) { |
1684 o.name = "foo"; | 1722 o.name = "foo"; |
1685 o.service = buildService(); | 1723 o.service = buildService(); |
1686 } | 1724 } |
1687 buildCounterPublishedService--; | 1725 buildCounterPublishedService--; |
1688 return o; | 1726 return o; |
1689 } | 1727 } |
1690 | 1728 |
1691 checkPublishedService(api.PublishedService o) { | 1729 checkPublishedService(api.PublishedService o) { |
1692 buildCounterPublishedService++; | 1730 buildCounterPublishedService++; |
1693 if (buildCounterPublishedService < 3) { | 1731 if (buildCounterPublishedService < 3) { |
1694 unittest.expect(o.name, unittest.equals('foo')); | 1732 unittest.expect(o.name, unittest.equals('foo')); |
1695 checkService(o.service); | 1733 checkService(o.service); |
1696 } | 1734 } |
1697 buildCounterPublishedService--; | 1735 buildCounterPublishedService--; |
1698 } | 1736 } |
1699 | 1737 |
1700 buildUnnamed1801() { | 1738 buildUnnamed1819() { |
1701 var o = new core.List<api.QuotaLimit>(); | 1739 var o = new core.List<api.QuotaLimit>(); |
1702 o.add(buildQuotaLimit()); | 1740 o.add(buildQuotaLimit()); |
1703 o.add(buildQuotaLimit()); | 1741 o.add(buildQuotaLimit()); |
1704 return o; | 1742 return o; |
1705 } | 1743 } |
1706 | 1744 |
1707 checkUnnamed1801(core.List<api.QuotaLimit> o) { | 1745 checkUnnamed1819(core.List<api.QuotaLimit> o) { |
1708 unittest.expect(o, unittest.hasLength(2)); | 1746 unittest.expect(o, unittest.hasLength(2)); |
1709 checkQuotaLimit(o[0]); | 1747 checkQuotaLimit(o[0]); |
1710 checkQuotaLimit(o[1]); | 1748 checkQuotaLimit(o[1]); |
1711 } | 1749 } |
1712 | 1750 |
1713 buildUnnamed1802() { | 1751 buildUnnamed1820() { |
1714 var o = new core.List<api.MetricRule>(); | 1752 var o = new core.List<api.MetricRule>(); |
1715 o.add(buildMetricRule()); | 1753 o.add(buildMetricRule()); |
1716 o.add(buildMetricRule()); | 1754 o.add(buildMetricRule()); |
1717 return o; | 1755 return o; |
1718 } | 1756 } |
1719 | 1757 |
1720 checkUnnamed1802(core.List<api.MetricRule> o) { | 1758 checkUnnamed1820(core.List<api.MetricRule> o) { |
1721 unittest.expect(o, unittest.hasLength(2)); | 1759 unittest.expect(o, unittest.hasLength(2)); |
1722 checkMetricRule(o[0]); | 1760 checkMetricRule(o[0]); |
1723 checkMetricRule(o[1]); | 1761 checkMetricRule(o[1]); |
1724 } | 1762 } |
1725 | 1763 |
1726 core.int buildCounterQuota = 0; | 1764 core.int buildCounterQuota = 0; |
1727 buildQuota() { | 1765 buildQuota() { |
1728 var o = new api.Quota(); | 1766 var o = new api.Quota(); |
1729 buildCounterQuota++; | 1767 buildCounterQuota++; |
1730 if (buildCounterQuota < 3) { | 1768 if (buildCounterQuota < 3) { |
1731 o.limits = buildUnnamed1801(); | 1769 o.limits = buildUnnamed1819(); |
1732 o.metricRules = buildUnnamed1802(); | 1770 o.metricRules = buildUnnamed1820(); |
1733 } | 1771 } |
1734 buildCounterQuota--; | 1772 buildCounterQuota--; |
1735 return o; | 1773 return o; |
1736 } | 1774 } |
1737 | 1775 |
1738 checkQuota(api.Quota o) { | 1776 checkQuota(api.Quota o) { |
1739 buildCounterQuota++; | 1777 buildCounterQuota++; |
1740 if (buildCounterQuota < 3) { | 1778 if (buildCounterQuota < 3) { |
1741 checkUnnamed1801(o.limits); | 1779 checkUnnamed1819(o.limits); |
1742 checkUnnamed1802(o.metricRules); | 1780 checkUnnamed1820(o.metricRules); |
1743 } | 1781 } |
1744 buildCounterQuota--; | 1782 buildCounterQuota--; |
1745 } | 1783 } |
1746 | 1784 |
1747 buildUnnamed1803() { | 1785 buildUnnamed1821() { |
1748 var o = new core.Map<core.String, core.String>(); | 1786 var o = new core.Map<core.String, core.String>(); |
1749 o["x"] = "foo"; | 1787 o["x"] = "foo"; |
1750 o["y"] = "foo"; | 1788 o["y"] = "foo"; |
1751 return o; | 1789 return o; |
1752 } | 1790 } |
1753 | 1791 |
1754 checkUnnamed1803(core.Map<core.String, core.String> o) { | 1792 checkUnnamed1821(core.Map<core.String, core.String> o) { |
1755 unittest.expect(o, unittest.hasLength(2)); | 1793 unittest.expect(o, unittest.hasLength(2)); |
1756 unittest.expect(o["x"], unittest.equals('foo')); | 1794 unittest.expect(o["x"], unittest.equals('foo')); |
1757 unittest.expect(o["y"], unittest.equals('foo')); | 1795 unittest.expect(o["y"], unittest.equals('foo')); |
1758 } | 1796 } |
1759 | 1797 |
1760 core.int buildCounterQuotaLimit = 0; | 1798 core.int buildCounterQuotaLimit = 0; |
1761 buildQuotaLimit() { | 1799 buildQuotaLimit() { |
1762 var o = new api.QuotaLimit(); | 1800 var o = new api.QuotaLimit(); |
1763 buildCounterQuotaLimit++; | 1801 buildCounterQuotaLimit++; |
1764 if (buildCounterQuotaLimit < 3) { | 1802 if (buildCounterQuotaLimit < 3) { |
1765 o.defaultLimit = "foo"; | 1803 o.defaultLimit = "foo"; |
1766 o.description = "foo"; | 1804 o.description = "foo"; |
1767 o.displayName = "foo"; | 1805 o.displayName = "foo"; |
1768 o.duration = "foo"; | 1806 o.duration = "foo"; |
1769 o.freeTier = "foo"; | 1807 o.freeTier = "foo"; |
1770 o.maxLimit = "foo"; | 1808 o.maxLimit = "foo"; |
1771 o.metric = "foo"; | 1809 o.metric = "foo"; |
1772 o.name = "foo"; | 1810 o.name = "foo"; |
1773 o.unit = "foo"; | 1811 o.unit = "foo"; |
1774 o.values = buildUnnamed1803(); | 1812 o.values = buildUnnamed1821(); |
1775 } | 1813 } |
1776 buildCounterQuotaLimit--; | 1814 buildCounterQuotaLimit--; |
1777 return o; | 1815 return o; |
1778 } | 1816 } |
1779 | 1817 |
1780 checkQuotaLimit(api.QuotaLimit o) { | 1818 checkQuotaLimit(api.QuotaLimit o) { |
1781 buildCounterQuotaLimit++; | 1819 buildCounterQuotaLimit++; |
1782 if (buildCounterQuotaLimit < 3) { | 1820 if (buildCounterQuotaLimit < 3) { |
1783 unittest.expect(o.defaultLimit, unittest.equals('foo')); | 1821 unittest.expect(o.defaultLimit, unittest.equals('foo')); |
1784 unittest.expect(o.description, unittest.equals('foo')); | 1822 unittest.expect(o.description, unittest.equals('foo')); |
1785 unittest.expect(o.displayName, unittest.equals('foo')); | 1823 unittest.expect(o.displayName, unittest.equals('foo')); |
1786 unittest.expect(o.duration, unittest.equals('foo')); | 1824 unittest.expect(o.duration, unittest.equals('foo')); |
1787 unittest.expect(o.freeTier, unittest.equals('foo')); | 1825 unittest.expect(o.freeTier, unittest.equals('foo')); |
1788 unittest.expect(o.maxLimit, unittest.equals('foo')); | 1826 unittest.expect(o.maxLimit, unittest.equals('foo')); |
1789 unittest.expect(o.metric, unittest.equals('foo')); | 1827 unittest.expect(o.metric, unittest.equals('foo')); |
1790 unittest.expect(o.name, unittest.equals('foo')); | 1828 unittest.expect(o.name, unittest.equals('foo')); |
1791 unittest.expect(o.unit, unittest.equals('foo')); | 1829 unittest.expect(o.unit, unittest.equals('foo')); |
1792 checkUnnamed1803(o.values); | 1830 checkUnnamed1821(o.values); |
1793 } | 1831 } |
1794 buildCounterQuotaLimit--; | 1832 buildCounterQuotaLimit--; |
1795 } | 1833 } |
1796 | 1834 |
1797 buildUnnamed1804() { | 1835 buildUnnamed1822() { |
1798 var o = new core.List<api.PublishedService>(); | 1836 var o = new core.List<api.PublishedService>(); |
1799 o.add(buildPublishedService()); | 1837 o.add(buildPublishedService()); |
1800 o.add(buildPublishedService()); | 1838 o.add(buildPublishedService()); |
1801 return o; | 1839 return o; |
1802 } | 1840 } |
1803 | 1841 |
1804 checkUnnamed1804(core.List<api.PublishedService> o) { | 1842 checkUnnamed1822(core.List<api.PublishedService> o) { |
1805 unittest.expect(o, unittest.hasLength(2)); | 1843 unittest.expect(o, unittest.hasLength(2)); |
1806 checkPublishedService(o[0]); | 1844 checkPublishedService(o[0]); |
1807 checkPublishedService(o[1]); | 1845 checkPublishedService(o[1]); |
1808 } | 1846 } |
1809 | 1847 |
1810 core.int buildCounterSearchServicesResponse = 0; | 1848 core.int buildCounterSearchServicesResponse = 0; |
1811 buildSearchServicesResponse() { | 1849 buildSearchServicesResponse() { |
1812 var o = new api.SearchServicesResponse(); | 1850 var o = new api.SearchServicesResponse(); |
1813 buildCounterSearchServicesResponse++; | 1851 buildCounterSearchServicesResponse++; |
1814 if (buildCounterSearchServicesResponse < 3) { | 1852 if (buildCounterSearchServicesResponse < 3) { |
1815 o.nextPageToken = "foo"; | 1853 o.nextPageToken = "foo"; |
1816 o.services = buildUnnamed1804(); | 1854 o.services = buildUnnamed1822(); |
1817 } | 1855 } |
1818 buildCounterSearchServicesResponse--; | 1856 buildCounterSearchServicesResponse--; |
1819 return o; | 1857 return o; |
1820 } | 1858 } |
1821 | 1859 |
1822 checkSearchServicesResponse(api.SearchServicesResponse o) { | 1860 checkSearchServicesResponse(api.SearchServicesResponse o) { |
1823 buildCounterSearchServicesResponse++; | 1861 buildCounterSearchServicesResponse++; |
1824 if (buildCounterSearchServicesResponse < 3) { | 1862 if (buildCounterSearchServicesResponse < 3) { |
1825 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1863 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1826 checkUnnamed1804(o.services); | 1864 checkUnnamed1822(o.services); |
1827 } | 1865 } |
1828 buildCounterSearchServicesResponse--; | 1866 buildCounterSearchServicesResponse--; |
1829 } | 1867 } |
1830 | 1868 |
1831 buildUnnamed1805() { | 1869 buildUnnamed1823() { |
1832 var o = new core.List<api.Api>(); | 1870 var o = new core.List<api.Api>(); |
1833 o.add(buildApi()); | 1871 o.add(buildApi()); |
1834 o.add(buildApi()); | 1872 o.add(buildApi()); |
1835 return o; | 1873 return o; |
1836 } | 1874 } |
1837 | 1875 |
1838 checkUnnamed1805(core.List<api.Api> o) { | 1876 checkUnnamed1823(core.List<api.Api> o) { |
1839 unittest.expect(o, unittest.hasLength(2)); | 1877 unittest.expect(o, unittest.hasLength(2)); |
1840 checkApi(o[0]); | 1878 checkApi(o[0]); |
1841 checkApi(o[1]); | 1879 checkApi(o[1]); |
1842 } | 1880 } |
1843 | 1881 |
1844 buildUnnamed1806() { | 1882 buildUnnamed1824() { |
1845 var o = new core.List<api.Endpoint>(); | 1883 var o = new core.List<api.Endpoint>(); |
1846 o.add(buildEndpoint()); | 1884 o.add(buildEndpoint()); |
1847 o.add(buildEndpoint()); | 1885 o.add(buildEndpoint()); |
1848 return o; | 1886 return o; |
1849 } | 1887 } |
1850 | 1888 |
1851 checkUnnamed1806(core.List<api.Endpoint> o) { | 1889 checkUnnamed1824(core.List<api.Endpoint> o) { |
1852 unittest.expect(o, unittest.hasLength(2)); | 1890 unittest.expect(o, unittest.hasLength(2)); |
1853 checkEndpoint(o[0]); | 1891 checkEndpoint(o[0]); |
1854 checkEndpoint(o[1]); | 1892 checkEndpoint(o[1]); |
1855 } | 1893 } |
1856 | 1894 |
1857 buildUnnamed1807() { | 1895 buildUnnamed1825() { |
1858 var o = new core.List<api.Enum>(); | 1896 var o = new core.List<api.Enum>(); |
1859 o.add(buildEnum()); | 1897 o.add(buildEnum()); |
1860 o.add(buildEnum()); | 1898 o.add(buildEnum()); |
1861 return o; | 1899 return o; |
1862 } | 1900 } |
1863 | 1901 |
1864 checkUnnamed1807(core.List<api.Enum> o) { | 1902 checkUnnamed1825(core.List<api.Enum> o) { |
1865 unittest.expect(o, unittest.hasLength(2)); | 1903 unittest.expect(o, unittest.hasLength(2)); |
1866 checkEnum(o[0]); | 1904 checkEnum(o[0]); |
1867 checkEnum(o[1]); | 1905 checkEnum(o[1]); |
1868 } | 1906 } |
1869 | 1907 |
1870 buildUnnamed1808() { | 1908 buildUnnamed1826() { |
1871 var o = new core.List<api.LogDescriptor>(); | 1909 var o = new core.List<api.LogDescriptor>(); |
1872 o.add(buildLogDescriptor()); | 1910 o.add(buildLogDescriptor()); |
1873 o.add(buildLogDescriptor()); | 1911 o.add(buildLogDescriptor()); |
1874 return o; | 1912 return o; |
1875 } | 1913 } |
1876 | 1914 |
1877 checkUnnamed1808(core.List<api.LogDescriptor> o) { | 1915 checkUnnamed1826(core.List<api.LogDescriptor> o) { |
1878 unittest.expect(o, unittest.hasLength(2)); | 1916 unittest.expect(o, unittest.hasLength(2)); |
1879 checkLogDescriptor(o[0]); | 1917 checkLogDescriptor(o[0]); |
1880 checkLogDescriptor(o[1]); | 1918 checkLogDescriptor(o[1]); |
1881 } | 1919 } |
1882 | 1920 |
1883 buildUnnamed1809() { | 1921 buildUnnamed1827() { |
1884 var o = new core.List<api.MetricDescriptor>(); | 1922 var o = new core.List<api.MetricDescriptor>(); |
1885 o.add(buildMetricDescriptor()); | 1923 o.add(buildMetricDescriptor()); |
1886 o.add(buildMetricDescriptor()); | 1924 o.add(buildMetricDescriptor()); |
1887 return o; | 1925 return o; |
1888 } | 1926 } |
1889 | 1927 |
1890 checkUnnamed1809(core.List<api.MetricDescriptor> o) { | 1928 checkUnnamed1827(core.List<api.MetricDescriptor> o) { |
1891 unittest.expect(o, unittest.hasLength(2)); | 1929 unittest.expect(o, unittest.hasLength(2)); |
1892 checkMetricDescriptor(o[0]); | 1930 checkMetricDescriptor(o[0]); |
1893 checkMetricDescriptor(o[1]); | 1931 checkMetricDescriptor(o[1]); |
1894 } | 1932 } |
1895 | 1933 |
1896 buildUnnamed1810() { | 1934 buildUnnamed1828() { |
1897 var o = new core.List<api.MonitoredResourceDescriptor>(); | 1935 var o = new core.List<api.MonitoredResourceDescriptor>(); |
1898 o.add(buildMonitoredResourceDescriptor()); | 1936 o.add(buildMonitoredResourceDescriptor()); |
1899 o.add(buildMonitoredResourceDescriptor()); | 1937 o.add(buildMonitoredResourceDescriptor()); |
1900 return o; | 1938 return o; |
1901 } | 1939 } |
1902 | 1940 |
1903 checkUnnamed1810(core.List<api.MonitoredResourceDescriptor> o) { | 1941 checkUnnamed1828(core.List<api.MonitoredResourceDescriptor> o) { |
1904 unittest.expect(o, unittest.hasLength(2)); | 1942 unittest.expect(o, unittest.hasLength(2)); |
1905 checkMonitoredResourceDescriptor(o[0]); | 1943 checkMonitoredResourceDescriptor(o[0]); |
1906 checkMonitoredResourceDescriptor(o[1]); | 1944 checkMonitoredResourceDescriptor(o[1]); |
1907 } | 1945 } |
1908 | 1946 |
1909 buildUnnamed1811() { | 1947 buildUnnamed1829() { |
1910 var o = new core.List<api.Type>(); | 1948 var o = new core.List<api.Type>(); |
1911 o.add(buildType()); | 1949 o.add(buildType()); |
1912 o.add(buildType()); | 1950 o.add(buildType()); |
1913 return o; | 1951 return o; |
1914 } | 1952 } |
1915 | 1953 |
1916 checkUnnamed1811(core.List<api.Type> o) { | 1954 checkUnnamed1829(core.List<api.Type> o) { |
1917 unittest.expect(o, unittest.hasLength(2)); | 1955 unittest.expect(o, unittest.hasLength(2)); |
1918 checkType(o[0]); | 1956 checkType(o[0]); |
1919 checkType(o[1]); | 1957 checkType(o[1]); |
1920 } | 1958 } |
1921 | 1959 |
1922 buildUnnamed1812() { | 1960 buildUnnamed1830() { |
1923 var o = new core.List<api.Type>(); | 1961 var o = new core.List<api.Type>(); |
1924 o.add(buildType()); | 1962 o.add(buildType()); |
1925 o.add(buildType()); | 1963 o.add(buildType()); |
1926 return o; | 1964 return o; |
1927 } | 1965 } |
1928 | 1966 |
1929 checkUnnamed1812(core.List<api.Type> o) { | 1967 checkUnnamed1830(core.List<api.Type> o) { |
1930 unittest.expect(o, unittest.hasLength(2)); | 1968 unittest.expect(o, unittest.hasLength(2)); |
1931 checkType(o[0]); | 1969 checkType(o[0]); |
1932 checkType(o[1]); | 1970 checkType(o[1]); |
1933 } | 1971 } |
1934 | 1972 |
1935 core.int buildCounterService = 0; | 1973 core.int buildCounterService = 0; |
1936 buildService() { | 1974 buildService() { |
1937 var o = new api.Service(); | 1975 var o = new api.Service(); |
1938 buildCounterService++; | 1976 buildCounterService++; |
1939 if (buildCounterService < 3) { | 1977 if (buildCounterService < 3) { |
1940 o.apis = buildUnnamed1805(); | 1978 o.apis = buildUnnamed1823(); |
1941 o.authentication = buildAuthentication(); | 1979 o.authentication = buildAuthentication(); |
1942 o.backend = buildBackend(); | 1980 o.backend = buildBackend(); |
1943 o.configVersion = 42; | 1981 o.configVersion = 42; |
1944 o.context = buildContext(); | 1982 o.context = buildContext(); |
1945 o.control = buildControl(); | 1983 o.control = buildControl(); |
1946 o.customError = buildCustomError(); | 1984 o.customError = buildCustomError(); |
1947 o.documentation = buildDocumentation(); | 1985 o.documentation = buildDocumentation(); |
1948 o.endpoints = buildUnnamed1806(); | 1986 o.endpoints = buildUnnamed1824(); |
1949 o.enums = buildUnnamed1807(); | 1987 o.enums = buildUnnamed1825(); |
1950 o.experimental = buildExperimental(); | 1988 o.experimental = buildExperimental(); |
1951 o.http = buildHttp(); | 1989 o.http = buildHttp(); |
1952 o.id = "foo"; | 1990 o.id = "foo"; |
1953 o.logging = buildLogging(); | 1991 o.logging = buildLogging(); |
1954 o.logs = buildUnnamed1808(); | 1992 o.logs = buildUnnamed1826(); |
1955 o.metrics = buildUnnamed1809(); | 1993 o.metrics = buildUnnamed1827(); |
1956 o.monitoredResources = buildUnnamed1810(); | 1994 o.monitoredResources = buildUnnamed1828(); |
1957 o.monitoring = buildMonitoring(); | 1995 o.monitoring = buildMonitoring(); |
1958 o.name = "foo"; | 1996 o.name = "foo"; |
1959 o.producerProjectId = "foo"; | 1997 o.producerProjectId = "foo"; |
1960 o.quota = buildQuota(); | 1998 o.quota = buildQuota(); |
1961 o.sourceInfo = buildSourceInfo(); | 1999 o.sourceInfo = buildSourceInfo(); |
1962 o.systemParameters = buildSystemParameters(); | 2000 o.systemParameters = buildSystemParameters(); |
1963 o.systemTypes = buildUnnamed1811(); | 2001 o.systemTypes = buildUnnamed1829(); |
1964 o.title = "foo"; | 2002 o.title = "foo"; |
1965 o.types = buildUnnamed1812(); | 2003 o.types = buildUnnamed1830(); |
1966 o.usage = buildUsage(); | 2004 o.usage = buildUsage(); |
1967 o.visibility = buildVisibility(); | 2005 o.visibility = buildVisibility(); |
1968 } | 2006 } |
1969 buildCounterService--; | 2007 buildCounterService--; |
1970 return o; | 2008 return o; |
1971 } | 2009 } |
1972 | 2010 |
1973 checkService(api.Service o) { | 2011 checkService(api.Service o) { |
1974 buildCounterService++; | 2012 buildCounterService++; |
1975 if (buildCounterService < 3) { | 2013 if (buildCounterService < 3) { |
1976 checkUnnamed1805(o.apis); | 2014 checkUnnamed1823(o.apis); |
1977 checkAuthentication(o.authentication); | 2015 checkAuthentication(o.authentication); |
1978 checkBackend(o.backend); | 2016 checkBackend(o.backend); |
1979 unittest.expect(o.configVersion, unittest.equals(42)); | 2017 unittest.expect(o.configVersion, unittest.equals(42)); |
1980 checkContext(o.context); | 2018 checkContext(o.context); |
1981 checkControl(o.control); | 2019 checkControl(o.control); |
1982 checkCustomError(o.customError); | 2020 checkCustomError(o.customError); |
1983 checkDocumentation(o.documentation); | 2021 checkDocumentation(o.documentation); |
1984 checkUnnamed1806(o.endpoints); | 2022 checkUnnamed1824(o.endpoints); |
1985 checkUnnamed1807(o.enums); | 2023 checkUnnamed1825(o.enums); |
1986 checkExperimental(o.experimental); | 2024 checkExperimental(o.experimental); |
1987 checkHttp(o.http); | 2025 checkHttp(o.http); |
1988 unittest.expect(o.id, unittest.equals('foo')); | 2026 unittest.expect(o.id, unittest.equals('foo')); |
1989 checkLogging(o.logging); | 2027 checkLogging(o.logging); |
1990 checkUnnamed1808(o.logs); | 2028 checkUnnamed1826(o.logs); |
1991 checkUnnamed1809(o.metrics); | 2029 checkUnnamed1827(o.metrics); |
1992 checkUnnamed1810(o.monitoredResources); | 2030 checkUnnamed1828(o.monitoredResources); |
1993 checkMonitoring(o.monitoring); | 2031 checkMonitoring(o.monitoring); |
1994 unittest.expect(o.name, unittest.equals('foo')); | 2032 unittest.expect(o.name, unittest.equals('foo')); |
1995 unittest.expect(o.producerProjectId, unittest.equals('foo')); | 2033 unittest.expect(o.producerProjectId, unittest.equals('foo')); |
1996 checkQuota(o.quota); | 2034 checkQuota(o.quota); |
1997 checkSourceInfo(o.sourceInfo); | 2035 checkSourceInfo(o.sourceInfo); |
1998 checkSystemParameters(o.systemParameters); | 2036 checkSystemParameters(o.systemParameters); |
1999 checkUnnamed1811(o.systemTypes); | 2037 checkUnnamed1829(o.systemTypes); |
2000 unittest.expect(o.title, unittest.equals('foo')); | 2038 unittest.expect(o.title, unittest.equals('foo')); |
2001 checkUnnamed1812(o.types); | 2039 checkUnnamed1830(o.types); |
2002 checkUsage(o.usage); | 2040 checkUsage(o.usage); |
2003 checkVisibility(o.visibility); | 2041 checkVisibility(o.visibility); |
2004 } | 2042 } |
2005 buildCounterService--; | 2043 buildCounterService--; |
2006 } | 2044 } |
2007 | 2045 |
2008 core.int buildCounterSourceContext = 0; | 2046 core.int buildCounterSourceContext = 0; |
2009 buildSourceContext() { | 2047 buildSourceContext() { |
2010 var o = new api.SourceContext(); | 2048 var o = new api.SourceContext(); |
2011 buildCounterSourceContext++; | 2049 buildCounterSourceContext++; |
2012 if (buildCounterSourceContext < 3) { | 2050 if (buildCounterSourceContext < 3) { |
2013 o.fileName = "foo"; | 2051 o.fileName = "foo"; |
2014 } | 2052 } |
2015 buildCounterSourceContext--; | 2053 buildCounterSourceContext--; |
2016 return o; | 2054 return o; |
2017 } | 2055 } |
2018 | 2056 |
2019 checkSourceContext(api.SourceContext o) { | 2057 checkSourceContext(api.SourceContext o) { |
2020 buildCounterSourceContext++; | 2058 buildCounterSourceContext++; |
2021 if (buildCounterSourceContext < 3) { | 2059 if (buildCounterSourceContext < 3) { |
2022 unittest.expect(o.fileName, unittest.equals('foo')); | 2060 unittest.expect(o.fileName, unittest.equals('foo')); |
2023 } | 2061 } |
2024 buildCounterSourceContext--; | 2062 buildCounterSourceContext--; |
2025 } | 2063 } |
2026 | 2064 |
2027 buildUnnamed1813() { | 2065 buildUnnamed1831() { |
2028 var o = new core.Map<core.String, core.Object>(); | 2066 var o = new core.Map<core.String, core.Object>(); |
2029 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2067 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2030 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2068 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2031 return o; | 2069 return o; |
2032 } | 2070 } |
2033 | 2071 |
2034 checkUnnamed1813(core.Map<core.String, core.Object> o) { | 2072 checkUnnamed1831(core.Map<core.String, core.Object> o) { |
2035 unittest.expect(o, unittest.hasLength(2)); | 2073 unittest.expect(o, unittest.hasLength(2)); |
2036 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')); | 2074 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')); |
2037 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')); | 2075 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')); |
2038 } | 2076 } |
2039 | 2077 |
2040 buildUnnamed1814() { | 2078 buildUnnamed1832() { |
2041 var o = new core.List<core.Map<core.String, core.Object>>(); | 2079 var o = new core.List<core.Map<core.String, core.Object>>(); |
2042 o.add(buildUnnamed1813()); | 2080 o.add(buildUnnamed1831()); |
2043 o.add(buildUnnamed1813()); | 2081 o.add(buildUnnamed1831()); |
2044 return o; | 2082 return o; |
2045 } | 2083 } |
2046 | 2084 |
2047 checkUnnamed1814(core.List<core.Map<core.String, core.Object>> o) { | 2085 checkUnnamed1832(core.List<core.Map<core.String, core.Object>> o) { |
2048 unittest.expect(o, unittest.hasLength(2)); | 2086 unittest.expect(o, unittest.hasLength(2)); |
2049 checkUnnamed1813(o[0]); | 2087 checkUnnamed1831(o[0]); |
2050 checkUnnamed1813(o[1]); | 2088 checkUnnamed1831(o[1]); |
2051 } | 2089 } |
2052 | 2090 |
2053 core.int buildCounterSourceInfo = 0; | 2091 core.int buildCounterSourceInfo = 0; |
2054 buildSourceInfo() { | 2092 buildSourceInfo() { |
2055 var o = new api.SourceInfo(); | 2093 var o = new api.SourceInfo(); |
2056 buildCounterSourceInfo++; | 2094 buildCounterSourceInfo++; |
2057 if (buildCounterSourceInfo < 3) { | 2095 if (buildCounterSourceInfo < 3) { |
2058 o.sourceFiles = buildUnnamed1814(); | 2096 o.sourceFiles = buildUnnamed1832(); |
2059 } | 2097 } |
2060 buildCounterSourceInfo--; | 2098 buildCounterSourceInfo--; |
2061 return o; | 2099 return o; |
2062 } | 2100 } |
2063 | 2101 |
2064 checkSourceInfo(api.SourceInfo o) { | 2102 checkSourceInfo(api.SourceInfo o) { |
2065 buildCounterSourceInfo++; | 2103 buildCounterSourceInfo++; |
2066 if (buildCounterSourceInfo < 3) { | 2104 if (buildCounterSourceInfo < 3) { |
2067 checkUnnamed1814(o.sourceFiles); | 2105 checkUnnamed1832(o.sourceFiles); |
2068 } | 2106 } |
2069 buildCounterSourceInfo--; | 2107 buildCounterSourceInfo--; |
2070 } | 2108 } |
2071 | 2109 |
2072 buildUnnamed1815() { | 2110 buildUnnamed1833() { |
2073 var o = new core.Map<core.String, core.Object>(); | 2111 var o = new core.Map<core.String, core.Object>(); |
2074 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2112 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2075 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2113 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2076 return o; | 2114 return o; |
2077 } | 2115 } |
2078 | 2116 |
2079 checkUnnamed1815(core.Map<core.String, core.Object> o) { | 2117 checkUnnamed1833(core.Map<core.String, core.Object> o) { |
2080 unittest.expect(o, unittest.hasLength(2)); | 2118 unittest.expect(o, unittest.hasLength(2)); |
2081 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')); | 2119 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')); |
2082 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')); | 2120 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')); |
2083 } | 2121 } |
2084 | 2122 |
2085 buildUnnamed1816() { | 2123 buildUnnamed1834() { |
2086 var o = new core.List<core.Map<core.String, core.Object>>(); | 2124 var o = new core.List<core.Map<core.String, core.Object>>(); |
2087 o.add(buildUnnamed1815()); | 2125 o.add(buildUnnamed1833()); |
2088 o.add(buildUnnamed1815()); | 2126 o.add(buildUnnamed1833()); |
2089 return o; | 2127 return o; |
2090 } | 2128 } |
2091 | 2129 |
2092 checkUnnamed1816(core.List<core.Map<core.String, core.Object>> o) { | 2130 checkUnnamed1834(core.List<core.Map<core.String, core.Object>> o) { |
2093 unittest.expect(o, unittest.hasLength(2)); | 2131 unittest.expect(o, unittest.hasLength(2)); |
2094 checkUnnamed1815(o[0]); | 2132 checkUnnamed1833(o[0]); |
2095 checkUnnamed1815(o[1]); | 2133 checkUnnamed1833(o[1]); |
2096 } | 2134 } |
2097 | 2135 |
2098 core.int buildCounterStatus = 0; | 2136 core.int buildCounterStatus = 0; |
2099 buildStatus() { | 2137 buildStatus() { |
2100 var o = new api.Status(); | 2138 var o = new api.Status(); |
2101 buildCounterStatus++; | 2139 buildCounterStatus++; |
2102 if (buildCounterStatus < 3) { | 2140 if (buildCounterStatus < 3) { |
2103 o.code = 42; | 2141 o.code = 42; |
2104 o.details = buildUnnamed1816(); | 2142 o.details = buildUnnamed1834(); |
2105 o.message = "foo"; | 2143 o.message = "foo"; |
2106 } | 2144 } |
2107 buildCounterStatus--; | 2145 buildCounterStatus--; |
2108 return o; | 2146 return o; |
2109 } | 2147 } |
2110 | 2148 |
2111 checkStatus(api.Status o) { | 2149 checkStatus(api.Status o) { |
2112 buildCounterStatus++; | 2150 buildCounterStatus++; |
2113 if (buildCounterStatus < 3) { | 2151 if (buildCounterStatus < 3) { |
2114 unittest.expect(o.code, unittest.equals(42)); | 2152 unittest.expect(o.code, unittest.equals(42)); |
2115 checkUnnamed1816(o.details); | 2153 checkUnnamed1834(o.details); |
2116 unittest.expect(o.message, unittest.equals('foo')); | 2154 unittest.expect(o.message, unittest.equals('foo')); |
2117 } | 2155 } |
2118 buildCounterStatus--; | 2156 buildCounterStatus--; |
2119 } | 2157 } |
2120 | 2158 |
2121 core.int buildCounterStep = 0; | 2159 core.int buildCounterStep = 0; |
2122 buildStep() { | 2160 buildStep() { |
2123 var o = new api.Step(); | 2161 var o = new api.Step(); |
2124 buildCounterStep++; | 2162 buildCounterStep++; |
2125 if (buildCounterStep < 3) { | 2163 if (buildCounterStep < 3) { |
(...skipping 29 matching lines...) Loading... |
2155 checkSystemParameter(api.SystemParameter o) { | 2193 checkSystemParameter(api.SystemParameter o) { |
2156 buildCounterSystemParameter++; | 2194 buildCounterSystemParameter++; |
2157 if (buildCounterSystemParameter < 3) { | 2195 if (buildCounterSystemParameter < 3) { |
2158 unittest.expect(o.httpHeader, unittest.equals('foo')); | 2196 unittest.expect(o.httpHeader, unittest.equals('foo')); |
2159 unittest.expect(o.name, unittest.equals('foo')); | 2197 unittest.expect(o.name, unittest.equals('foo')); |
2160 unittest.expect(o.urlQueryParameter, unittest.equals('foo')); | 2198 unittest.expect(o.urlQueryParameter, unittest.equals('foo')); |
2161 } | 2199 } |
2162 buildCounterSystemParameter--; | 2200 buildCounterSystemParameter--; |
2163 } | 2201 } |
2164 | 2202 |
2165 buildUnnamed1817() { | 2203 buildUnnamed1835() { |
2166 var o = new core.List<api.SystemParameter>(); | 2204 var o = new core.List<api.SystemParameter>(); |
2167 o.add(buildSystemParameter()); | 2205 o.add(buildSystemParameter()); |
2168 o.add(buildSystemParameter()); | 2206 o.add(buildSystemParameter()); |
2169 return o; | 2207 return o; |
2170 } | 2208 } |
2171 | 2209 |
2172 checkUnnamed1817(core.List<api.SystemParameter> o) { | 2210 checkUnnamed1835(core.List<api.SystemParameter> o) { |
2173 unittest.expect(o, unittest.hasLength(2)); | 2211 unittest.expect(o, unittest.hasLength(2)); |
2174 checkSystemParameter(o[0]); | 2212 checkSystemParameter(o[0]); |
2175 checkSystemParameter(o[1]); | 2213 checkSystemParameter(o[1]); |
2176 } | 2214 } |
2177 | 2215 |
2178 core.int buildCounterSystemParameterRule = 0; | 2216 core.int buildCounterSystemParameterRule = 0; |
2179 buildSystemParameterRule() { | 2217 buildSystemParameterRule() { |
2180 var o = new api.SystemParameterRule(); | 2218 var o = new api.SystemParameterRule(); |
2181 buildCounterSystemParameterRule++; | 2219 buildCounterSystemParameterRule++; |
2182 if (buildCounterSystemParameterRule < 3) { | 2220 if (buildCounterSystemParameterRule < 3) { |
2183 o.parameters = buildUnnamed1817(); | 2221 o.parameters = buildUnnamed1835(); |
2184 o.selector = "foo"; | 2222 o.selector = "foo"; |
2185 } | 2223 } |
2186 buildCounterSystemParameterRule--; | 2224 buildCounterSystemParameterRule--; |
2187 return o; | 2225 return o; |
2188 } | 2226 } |
2189 | 2227 |
2190 checkSystemParameterRule(api.SystemParameterRule o) { | 2228 checkSystemParameterRule(api.SystemParameterRule o) { |
2191 buildCounterSystemParameterRule++; | 2229 buildCounterSystemParameterRule++; |
2192 if (buildCounterSystemParameterRule < 3) { | 2230 if (buildCounterSystemParameterRule < 3) { |
2193 checkUnnamed1817(o.parameters); | 2231 checkUnnamed1835(o.parameters); |
2194 unittest.expect(o.selector, unittest.equals('foo')); | 2232 unittest.expect(o.selector, unittest.equals('foo')); |
2195 } | 2233 } |
2196 buildCounterSystemParameterRule--; | 2234 buildCounterSystemParameterRule--; |
2197 } | 2235 } |
2198 | 2236 |
2199 buildUnnamed1818() { | 2237 buildUnnamed1836() { |
2200 var o = new core.List<api.SystemParameterRule>(); | 2238 var o = new core.List<api.SystemParameterRule>(); |
2201 o.add(buildSystemParameterRule()); | 2239 o.add(buildSystemParameterRule()); |
2202 o.add(buildSystemParameterRule()); | 2240 o.add(buildSystemParameterRule()); |
2203 return o; | 2241 return o; |
2204 } | 2242 } |
2205 | 2243 |
2206 checkUnnamed1818(core.List<api.SystemParameterRule> o) { | 2244 checkUnnamed1836(core.List<api.SystemParameterRule> o) { |
2207 unittest.expect(o, unittest.hasLength(2)); | 2245 unittest.expect(o, unittest.hasLength(2)); |
2208 checkSystemParameterRule(o[0]); | 2246 checkSystemParameterRule(o[0]); |
2209 checkSystemParameterRule(o[1]); | 2247 checkSystemParameterRule(o[1]); |
2210 } | 2248 } |
2211 | 2249 |
2212 core.int buildCounterSystemParameters = 0; | 2250 core.int buildCounterSystemParameters = 0; |
2213 buildSystemParameters() { | 2251 buildSystemParameters() { |
2214 var o = new api.SystemParameters(); | 2252 var o = new api.SystemParameters(); |
2215 buildCounterSystemParameters++; | 2253 buildCounterSystemParameters++; |
2216 if (buildCounterSystemParameters < 3) { | 2254 if (buildCounterSystemParameters < 3) { |
2217 o.rules = buildUnnamed1818(); | 2255 o.rules = buildUnnamed1836(); |
2218 } | 2256 } |
2219 buildCounterSystemParameters--; | 2257 buildCounterSystemParameters--; |
2220 return o; | 2258 return o; |
2221 } | 2259 } |
2222 | 2260 |
2223 checkSystemParameters(api.SystemParameters o) { | 2261 checkSystemParameters(api.SystemParameters o) { |
2224 buildCounterSystemParameters++; | 2262 buildCounterSystemParameters++; |
2225 if (buildCounterSystemParameters < 3) { | 2263 if (buildCounterSystemParameters < 3) { |
2226 checkUnnamed1818(o.rules); | 2264 checkUnnamed1836(o.rules); |
2227 } | 2265 } |
2228 buildCounterSystemParameters--; | 2266 buildCounterSystemParameters--; |
2229 } | 2267 } |
2230 | 2268 |
2231 buildUnnamed1819() { | 2269 buildUnnamed1837() { |
2232 var o = new core.List<api.Field>(); | 2270 var o = new core.List<api.Field>(); |
2233 o.add(buildField()); | 2271 o.add(buildField()); |
2234 o.add(buildField()); | 2272 o.add(buildField()); |
2235 return o; | 2273 return o; |
2236 } | 2274 } |
2237 | 2275 |
2238 checkUnnamed1819(core.List<api.Field> o) { | 2276 checkUnnamed1837(core.List<api.Field> o) { |
2239 unittest.expect(o, unittest.hasLength(2)); | 2277 unittest.expect(o, unittest.hasLength(2)); |
2240 checkField(o[0]); | 2278 checkField(o[0]); |
2241 checkField(o[1]); | 2279 checkField(o[1]); |
2242 } | 2280 } |
2243 | 2281 |
2244 buildUnnamed1820() { | 2282 buildUnnamed1838() { |
2245 var o = new core.List<core.String>(); | 2283 var o = new core.List<core.String>(); |
2246 o.add("foo"); | 2284 o.add("foo"); |
2247 o.add("foo"); | 2285 o.add("foo"); |
2248 return o; | 2286 return o; |
2249 } | 2287 } |
2250 | 2288 |
2251 checkUnnamed1820(core.List<core.String> o) { | 2289 checkUnnamed1838(core.List<core.String> o) { |
2252 unittest.expect(o, unittest.hasLength(2)); | 2290 unittest.expect(o, unittest.hasLength(2)); |
2253 unittest.expect(o[0], unittest.equals('foo')); | 2291 unittest.expect(o[0], unittest.equals('foo')); |
2254 unittest.expect(o[1], unittest.equals('foo')); | 2292 unittest.expect(o[1], unittest.equals('foo')); |
2255 } | 2293 } |
2256 | 2294 |
2257 buildUnnamed1821() { | 2295 buildUnnamed1839() { |
2258 var o = new core.List<api.Option>(); | 2296 var o = new core.List<api.Option>(); |
2259 o.add(buildOption()); | 2297 o.add(buildOption()); |
2260 o.add(buildOption()); | 2298 o.add(buildOption()); |
2261 return o; | 2299 return o; |
2262 } | 2300 } |
2263 | 2301 |
2264 checkUnnamed1821(core.List<api.Option> o) { | 2302 checkUnnamed1839(core.List<api.Option> o) { |
2265 unittest.expect(o, unittest.hasLength(2)); | 2303 unittest.expect(o, unittest.hasLength(2)); |
2266 checkOption(o[0]); | 2304 checkOption(o[0]); |
2267 checkOption(o[1]); | 2305 checkOption(o[1]); |
2268 } | 2306 } |
2269 | 2307 |
2270 core.int buildCounterType = 0; | 2308 core.int buildCounterType = 0; |
2271 buildType() { | 2309 buildType() { |
2272 var o = new api.Type(); | 2310 var o = new api.Type(); |
2273 buildCounterType++; | 2311 buildCounterType++; |
2274 if (buildCounterType < 3) { | 2312 if (buildCounterType < 3) { |
2275 o.fields = buildUnnamed1819(); | 2313 o.fields = buildUnnamed1837(); |
2276 o.name = "foo"; | 2314 o.name = "foo"; |
2277 o.oneofs = buildUnnamed1820(); | 2315 o.oneofs = buildUnnamed1838(); |
2278 o.options = buildUnnamed1821(); | 2316 o.options = buildUnnamed1839(); |
2279 o.sourceContext = buildSourceContext(); | 2317 o.sourceContext = buildSourceContext(); |
2280 o.syntax = "foo"; | 2318 o.syntax = "foo"; |
2281 } | 2319 } |
2282 buildCounterType--; | 2320 buildCounterType--; |
2283 return o; | 2321 return o; |
2284 } | 2322 } |
2285 | 2323 |
2286 checkType(api.Type o) { | 2324 checkType(api.Type o) { |
2287 buildCounterType++; | 2325 buildCounterType++; |
2288 if (buildCounterType < 3) { | 2326 if (buildCounterType < 3) { |
2289 checkUnnamed1819(o.fields); | 2327 checkUnnamed1837(o.fields); |
2290 unittest.expect(o.name, unittest.equals('foo')); | 2328 unittest.expect(o.name, unittest.equals('foo')); |
2291 checkUnnamed1820(o.oneofs); | 2329 checkUnnamed1838(o.oneofs); |
2292 checkUnnamed1821(o.options); | 2330 checkUnnamed1839(o.options); |
2293 checkSourceContext(o.sourceContext); | 2331 checkSourceContext(o.sourceContext); |
2294 unittest.expect(o.syntax, unittest.equals('foo')); | 2332 unittest.expect(o.syntax, unittest.equals('foo')); |
2295 } | 2333 } |
2296 buildCounterType--; | 2334 buildCounterType--; |
2297 } | 2335 } |
2298 | 2336 |
2299 buildUnnamed1822() { | 2337 buildUnnamed1840() { |
2300 var o = new core.List<core.String>(); | 2338 var o = new core.List<core.String>(); |
2301 o.add("foo"); | 2339 o.add("foo"); |
2302 o.add("foo"); | 2340 o.add("foo"); |
2303 return o; | 2341 return o; |
2304 } | 2342 } |
2305 | 2343 |
2306 checkUnnamed1822(core.List<core.String> o) { | 2344 checkUnnamed1840(core.List<core.String> o) { |
2307 unittest.expect(o, unittest.hasLength(2)); | 2345 unittest.expect(o, unittest.hasLength(2)); |
2308 unittest.expect(o[0], unittest.equals('foo')); | 2346 unittest.expect(o[0], unittest.equals('foo')); |
2309 unittest.expect(o[1], unittest.equals('foo')); | 2347 unittest.expect(o[1], unittest.equals('foo')); |
2310 } | 2348 } |
2311 | 2349 |
2312 buildUnnamed1823() { | 2350 buildUnnamed1841() { |
2313 var o = new core.List<api.UsageRule>(); | 2351 var o = new core.List<api.UsageRule>(); |
2314 o.add(buildUsageRule()); | 2352 o.add(buildUsageRule()); |
2315 o.add(buildUsageRule()); | 2353 o.add(buildUsageRule()); |
2316 return o; | 2354 return o; |
2317 } | 2355 } |
2318 | 2356 |
2319 checkUnnamed1823(core.List<api.UsageRule> o) { | 2357 checkUnnamed1841(core.List<api.UsageRule> o) { |
2320 unittest.expect(o, unittest.hasLength(2)); | 2358 unittest.expect(o, unittest.hasLength(2)); |
2321 checkUsageRule(o[0]); | 2359 checkUsageRule(o[0]); |
2322 checkUsageRule(o[1]); | 2360 checkUsageRule(o[1]); |
2323 } | 2361 } |
2324 | 2362 |
2325 core.int buildCounterUsage = 0; | 2363 core.int buildCounterUsage = 0; |
2326 buildUsage() { | 2364 buildUsage() { |
2327 var o = new api.Usage(); | 2365 var o = new api.Usage(); |
2328 buildCounterUsage++; | 2366 buildCounterUsage++; |
2329 if (buildCounterUsage < 3) { | 2367 if (buildCounterUsage < 3) { |
2330 o.producerNotificationChannel = "foo"; | 2368 o.producerNotificationChannel = "foo"; |
2331 o.requirements = buildUnnamed1822(); | 2369 o.requirements = buildUnnamed1840(); |
2332 o.rules = buildUnnamed1823(); | 2370 o.rules = buildUnnamed1841(); |
2333 } | 2371 } |
2334 buildCounterUsage--; | 2372 buildCounterUsage--; |
2335 return o; | 2373 return o; |
2336 } | 2374 } |
2337 | 2375 |
2338 checkUsage(api.Usage o) { | 2376 checkUsage(api.Usage o) { |
2339 buildCounterUsage++; | 2377 buildCounterUsage++; |
2340 if (buildCounterUsage < 3) { | 2378 if (buildCounterUsage < 3) { |
2341 unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); | 2379 unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); |
2342 checkUnnamed1822(o.requirements); | 2380 checkUnnamed1840(o.requirements); |
2343 checkUnnamed1823(o.rules); | 2381 checkUnnamed1841(o.rules); |
2344 } | 2382 } |
2345 buildCounterUsage--; | 2383 buildCounterUsage--; |
2346 } | 2384 } |
2347 | 2385 |
2348 core.int buildCounterUsageRule = 0; | 2386 core.int buildCounterUsageRule = 0; |
2349 buildUsageRule() { | 2387 buildUsageRule() { |
2350 var o = new api.UsageRule(); | 2388 var o = new api.UsageRule(); |
2351 buildCounterUsageRule++; | 2389 buildCounterUsageRule++; |
2352 if (buildCounterUsageRule < 3) { | 2390 if (buildCounterUsageRule < 3) { |
2353 o.allowUnregisteredCalls = true; | 2391 o.allowUnregisteredCalls = true; |
2354 o.selector = "foo"; | 2392 o.selector = "foo"; |
2355 o.skipServiceControl = true; | 2393 o.skipServiceControl = true; |
2356 } | 2394 } |
2357 buildCounterUsageRule--; | 2395 buildCounterUsageRule--; |
2358 return o; | 2396 return o; |
2359 } | 2397 } |
2360 | 2398 |
2361 checkUsageRule(api.UsageRule o) { | 2399 checkUsageRule(api.UsageRule o) { |
2362 buildCounterUsageRule++; | 2400 buildCounterUsageRule++; |
2363 if (buildCounterUsageRule < 3) { | 2401 if (buildCounterUsageRule < 3) { |
2364 unittest.expect(o.allowUnregisteredCalls, unittest.isTrue); | 2402 unittest.expect(o.allowUnregisteredCalls, unittest.isTrue); |
2365 unittest.expect(o.selector, unittest.equals('foo')); | 2403 unittest.expect(o.selector, unittest.equals('foo')); |
2366 unittest.expect(o.skipServiceControl, unittest.isTrue); | 2404 unittest.expect(o.skipServiceControl, unittest.isTrue); |
2367 } | 2405 } |
2368 buildCounterUsageRule--; | 2406 buildCounterUsageRule--; |
2369 } | 2407 } |
2370 | 2408 |
2371 buildUnnamed1824() { | 2409 buildUnnamed1842() { |
2372 var o = new core.List<api.VisibilityRule>(); | 2410 var o = new core.List<api.VisibilityRule>(); |
2373 o.add(buildVisibilityRule()); | 2411 o.add(buildVisibilityRule()); |
2374 o.add(buildVisibilityRule()); | 2412 o.add(buildVisibilityRule()); |
2375 return o; | 2413 return o; |
2376 } | 2414 } |
2377 | 2415 |
2378 checkUnnamed1824(core.List<api.VisibilityRule> o) { | 2416 checkUnnamed1842(core.List<api.VisibilityRule> o) { |
2379 unittest.expect(o, unittest.hasLength(2)); | 2417 unittest.expect(o, unittest.hasLength(2)); |
2380 checkVisibilityRule(o[0]); | 2418 checkVisibilityRule(o[0]); |
2381 checkVisibilityRule(o[1]); | 2419 checkVisibilityRule(o[1]); |
2382 } | 2420 } |
2383 | 2421 |
2384 core.int buildCounterVisibility = 0; | 2422 core.int buildCounterVisibility = 0; |
2385 buildVisibility() { | 2423 buildVisibility() { |
2386 var o = new api.Visibility(); | 2424 var o = new api.Visibility(); |
2387 buildCounterVisibility++; | 2425 buildCounterVisibility++; |
2388 if (buildCounterVisibility < 3) { | 2426 if (buildCounterVisibility < 3) { |
2389 o.rules = buildUnnamed1824(); | 2427 o.rules = buildUnnamed1842(); |
2390 } | 2428 } |
2391 buildCounterVisibility--; | 2429 buildCounterVisibility--; |
2392 return o; | 2430 return o; |
2393 } | 2431 } |
2394 | 2432 |
2395 checkVisibility(api.Visibility o) { | 2433 checkVisibility(api.Visibility o) { |
2396 buildCounterVisibility++; | 2434 buildCounterVisibility++; |
2397 if (buildCounterVisibility < 3) { | 2435 if (buildCounterVisibility < 3) { |
2398 checkUnnamed1824(o.rules); | 2436 checkUnnamed1842(o.rules); |
2399 } | 2437 } |
2400 buildCounterVisibility--; | 2438 buildCounterVisibility--; |
2401 } | 2439 } |
2402 | 2440 |
2403 core.int buildCounterVisibilityRule = 0; | 2441 core.int buildCounterVisibilityRule = 0; |
2404 buildVisibilityRule() { | 2442 buildVisibilityRule() { |
2405 var o = new api.VisibilityRule(); | 2443 var o = new api.VisibilityRule(); |
2406 buildCounterVisibilityRule++; | 2444 buildCounterVisibilityRule++; |
2407 if (buildCounterVisibilityRule < 3) { | 2445 if (buildCounterVisibilityRule < 3) { |
2408 o.restriction = "foo"; | 2446 o.restriction = "foo"; |
(...skipping 61 matching lines...) Loading... |
2470 | 2508 |
2471 unittest.group("obj-schema-AuthorizationConfig", () { | 2509 unittest.group("obj-schema-AuthorizationConfig", () { |
2472 unittest.test("to-json--from-json", () { | 2510 unittest.test("to-json--from-json", () { |
2473 var o = buildAuthorizationConfig(); | 2511 var o = buildAuthorizationConfig(); |
2474 var od = new api.AuthorizationConfig.fromJson(o.toJson()); | 2512 var od = new api.AuthorizationConfig.fromJson(o.toJson()); |
2475 checkAuthorizationConfig(od); | 2513 checkAuthorizationConfig(od); |
2476 }); | 2514 }); |
2477 }); | 2515 }); |
2478 | 2516 |
2479 | 2517 |
| 2518 unittest.group("obj-schema-AuthorizationRule", () { |
| 2519 unittest.test("to-json--from-json", () { |
| 2520 var o = buildAuthorizationRule(); |
| 2521 var od = new api.AuthorizationRule.fromJson(o.toJson()); |
| 2522 checkAuthorizationRule(od); |
| 2523 }); |
| 2524 }); |
| 2525 |
| 2526 |
2480 unittest.group("obj-schema-Backend", () { | 2527 unittest.group("obj-schema-Backend", () { |
2481 unittest.test("to-json--from-json", () { | 2528 unittest.test("to-json--from-json", () { |
2482 var o = buildBackend(); | 2529 var o = buildBackend(); |
2483 var od = new api.Backend.fromJson(o.toJson()); | 2530 var od = new api.Backend.fromJson(o.toJson()); |
2484 checkBackend(od); | 2531 checkBackend(od); |
2485 }); | 2532 }); |
2486 }); | 2533 }); |
2487 | 2534 |
2488 | 2535 |
2489 unittest.group("obj-schema-BackendRule", () { | 2536 unittest.group("obj-schema-BackendRule", () { |
(...skipping 688 matching lines...) Loading... |
3178 res.search(pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest
.expectAsync1(((api.SearchServicesResponse response) { | 3225 res.search(pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest
.expectAsync1(((api.SearchServicesResponse response) { |
3179 checkSearchServicesResponse(response); | 3226 checkSearchServicesResponse(response); |
3180 }))); | 3227 }))); |
3181 }); | 3228 }); |
3182 | 3229 |
3183 }); | 3230 }); |
3184 | 3231 |
3185 | 3232 |
3186 } | 3233 } |
3187 | 3234 |
OLD | NEW |