OLD | NEW |
1 library googleapis_beta.datastore.v1beta2.test; | 1 library googleapis_beta.datastore.v1beta2.test; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 } | 44 } |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map headers, core.String body) { |
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
52 } | 52 } |
53 | 53 |
54 buildUnnamed3796() { | 54 buildUnnamed3888() { |
55 var o = new core.List<api.Key>(); | 55 var o = new core.List<api.Key>(); |
56 o.add(buildKey()); | 56 o.add(buildKey()); |
57 o.add(buildKey()); | 57 o.add(buildKey()); |
58 return o; | 58 return o; |
59 } | 59 } |
60 | 60 |
61 checkUnnamed3796(core.List<api.Key> o) { | 61 checkUnnamed3888(core.List<api.Key> o) { |
62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
63 checkKey(o[0]); | 63 checkKey(o[0]); |
64 checkKey(o[1]); | 64 checkKey(o[1]); |
65 } | 65 } |
66 | 66 |
67 core.int buildCounterAllocateIdsRequest = 0; | 67 core.int buildCounterAllocateIdsRequest = 0; |
68 buildAllocateIdsRequest() { | 68 buildAllocateIdsRequest() { |
69 var o = new api.AllocateIdsRequest(); | 69 var o = new api.AllocateIdsRequest(); |
70 buildCounterAllocateIdsRequest++; | 70 buildCounterAllocateIdsRequest++; |
71 if (buildCounterAllocateIdsRequest < 3) { | 71 if (buildCounterAllocateIdsRequest < 3) { |
72 o.keys = buildUnnamed3796(); | 72 o.keys = buildUnnamed3888(); |
73 } | 73 } |
74 buildCounterAllocateIdsRequest--; | 74 buildCounterAllocateIdsRequest--; |
75 return o; | 75 return o; |
76 } | 76 } |
77 | 77 |
78 checkAllocateIdsRequest(api.AllocateIdsRequest o) { | 78 checkAllocateIdsRequest(api.AllocateIdsRequest o) { |
79 buildCounterAllocateIdsRequest++; | 79 buildCounterAllocateIdsRequest++; |
80 if (buildCounterAllocateIdsRequest < 3) { | 80 if (buildCounterAllocateIdsRequest < 3) { |
81 checkUnnamed3796(o.keys); | 81 checkUnnamed3888(o.keys); |
82 } | 82 } |
83 buildCounterAllocateIdsRequest--; | 83 buildCounterAllocateIdsRequest--; |
84 } | 84 } |
85 | 85 |
86 buildUnnamed3797() { | 86 buildUnnamed3889() { |
87 var o = new core.List<api.Key>(); | 87 var o = new core.List<api.Key>(); |
88 o.add(buildKey()); | 88 o.add(buildKey()); |
89 o.add(buildKey()); | 89 o.add(buildKey()); |
90 return o; | 90 return o; |
91 } | 91 } |
92 | 92 |
93 checkUnnamed3797(core.List<api.Key> o) { | 93 checkUnnamed3889(core.List<api.Key> o) { |
94 unittest.expect(o, unittest.hasLength(2)); | 94 unittest.expect(o, unittest.hasLength(2)); |
95 checkKey(o[0]); | 95 checkKey(o[0]); |
96 checkKey(o[1]); | 96 checkKey(o[1]); |
97 } | 97 } |
98 | 98 |
99 core.int buildCounterAllocateIdsResponse = 0; | 99 core.int buildCounterAllocateIdsResponse = 0; |
100 buildAllocateIdsResponse() { | 100 buildAllocateIdsResponse() { |
101 var o = new api.AllocateIdsResponse(); | 101 var o = new api.AllocateIdsResponse(); |
102 buildCounterAllocateIdsResponse++; | 102 buildCounterAllocateIdsResponse++; |
103 if (buildCounterAllocateIdsResponse < 3) { | 103 if (buildCounterAllocateIdsResponse < 3) { |
104 o.header = buildResponseHeader(); | 104 o.header = buildResponseHeader(); |
105 o.keys = buildUnnamed3797(); | 105 o.keys = buildUnnamed3889(); |
106 } | 106 } |
107 buildCounterAllocateIdsResponse--; | 107 buildCounterAllocateIdsResponse--; |
108 return o; | 108 return o; |
109 } | 109 } |
110 | 110 |
111 checkAllocateIdsResponse(api.AllocateIdsResponse o) { | 111 checkAllocateIdsResponse(api.AllocateIdsResponse o) { |
112 buildCounterAllocateIdsResponse++; | 112 buildCounterAllocateIdsResponse++; |
113 if (buildCounterAllocateIdsResponse < 3) { | 113 if (buildCounterAllocateIdsResponse < 3) { |
114 checkResponseHeader(o.header); | 114 checkResponseHeader(o.header); |
115 checkUnnamed3797(o.keys); | 115 checkUnnamed3889(o.keys); |
116 } | 116 } |
117 buildCounterAllocateIdsResponse--; | 117 buildCounterAllocateIdsResponse--; |
118 } | 118 } |
119 | 119 |
120 core.int buildCounterBeginTransactionRequest = 0; | 120 core.int buildCounterBeginTransactionRequest = 0; |
121 buildBeginTransactionRequest() { | 121 buildBeginTransactionRequest() { |
122 var o = new api.BeginTransactionRequest(); | 122 var o = new api.BeginTransactionRequest(); |
123 buildCounterBeginTransactionRequest++; | 123 buildCounterBeginTransactionRequest++; |
124 if (buildCounterBeginTransactionRequest < 3) { | 124 if (buildCounterBeginTransactionRequest < 3) { |
125 o.isolationLevel = "foo"; | 125 o.isolationLevel = "foo"; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 | 196 |
197 checkCommitResponse(api.CommitResponse o) { | 197 checkCommitResponse(api.CommitResponse o) { |
198 buildCounterCommitResponse++; | 198 buildCounterCommitResponse++; |
199 if (buildCounterCommitResponse < 3) { | 199 if (buildCounterCommitResponse < 3) { |
200 checkResponseHeader(o.header); | 200 checkResponseHeader(o.header); |
201 checkMutationResult(o.mutationResult); | 201 checkMutationResult(o.mutationResult); |
202 } | 202 } |
203 buildCounterCommitResponse--; | 203 buildCounterCommitResponse--; |
204 } | 204 } |
205 | 205 |
206 buildUnnamed3798() { | 206 buildUnnamed3890() { |
207 var o = new core.List<api.Filter>(); | 207 var o = new core.List<api.Filter>(); |
208 o.add(buildFilter()); | 208 o.add(buildFilter()); |
209 o.add(buildFilter()); | 209 o.add(buildFilter()); |
210 return o; | 210 return o; |
211 } | 211 } |
212 | 212 |
213 checkUnnamed3798(core.List<api.Filter> o) { | 213 checkUnnamed3890(core.List<api.Filter> o) { |
214 unittest.expect(o, unittest.hasLength(2)); | 214 unittest.expect(o, unittest.hasLength(2)); |
215 checkFilter(o[0]); | 215 checkFilter(o[0]); |
216 checkFilter(o[1]); | 216 checkFilter(o[1]); |
217 } | 217 } |
218 | 218 |
219 core.int buildCounterCompositeFilter = 0; | 219 core.int buildCounterCompositeFilter = 0; |
220 buildCompositeFilter() { | 220 buildCompositeFilter() { |
221 var o = new api.CompositeFilter(); | 221 var o = new api.CompositeFilter(); |
222 buildCounterCompositeFilter++; | 222 buildCounterCompositeFilter++; |
223 if (buildCounterCompositeFilter < 3) { | 223 if (buildCounterCompositeFilter < 3) { |
224 o.filters = buildUnnamed3798(); | 224 o.filters = buildUnnamed3890(); |
225 o.operator = "foo"; | 225 o.operator = "foo"; |
226 } | 226 } |
227 buildCounterCompositeFilter--; | 227 buildCounterCompositeFilter--; |
228 return o; | 228 return o; |
229 } | 229 } |
230 | 230 |
231 checkCompositeFilter(api.CompositeFilter o) { | 231 checkCompositeFilter(api.CompositeFilter o) { |
232 buildCounterCompositeFilter++; | 232 buildCounterCompositeFilter++; |
233 if (buildCounterCompositeFilter < 3) { | 233 if (buildCounterCompositeFilter < 3) { |
234 checkUnnamed3798(o.filters); | 234 checkUnnamed3890(o.filters); |
235 unittest.expect(o.operator, unittest.equals('foo')); | 235 unittest.expect(o.operator, unittest.equals('foo')); |
236 } | 236 } |
237 buildCounterCompositeFilter--; | 237 buildCounterCompositeFilter--; |
238 } | 238 } |
239 | 239 |
240 buildUnnamed3799() { | 240 buildUnnamed3891() { |
241 var o = new core.Map<core.String, api.Property>(); | 241 var o = new core.Map<core.String, api.Property>(); |
242 o["x"] = buildProperty(); | 242 o["x"] = buildProperty(); |
243 o["y"] = buildProperty(); | 243 o["y"] = buildProperty(); |
244 return o; | 244 return o; |
245 } | 245 } |
246 | 246 |
247 checkUnnamed3799(core.Map<core.String, api.Property> o) { | 247 checkUnnamed3891(core.Map<core.String, api.Property> o) { |
248 unittest.expect(o, unittest.hasLength(2)); | 248 unittest.expect(o, unittest.hasLength(2)); |
249 checkProperty(o["x"]); | 249 checkProperty(o["x"]); |
250 checkProperty(o["y"]); | 250 checkProperty(o["y"]); |
251 } | 251 } |
252 | 252 |
253 core.int buildCounterEntity = 0; | 253 core.int buildCounterEntity = 0; |
254 buildEntity() { | 254 buildEntity() { |
255 var o = new api.Entity(); | 255 var o = new api.Entity(); |
256 buildCounterEntity++; | 256 buildCounterEntity++; |
257 if (buildCounterEntity < 3) { | 257 if (buildCounterEntity < 3) { |
258 o.key = buildKey(); | 258 o.key = buildKey(); |
259 o.properties = buildUnnamed3799(); | 259 o.properties = buildUnnamed3891(); |
260 } | 260 } |
261 buildCounterEntity--; | 261 buildCounterEntity--; |
262 return o; | 262 return o; |
263 } | 263 } |
264 | 264 |
265 checkEntity(api.Entity o) { | 265 checkEntity(api.Entity o) { |
266 buildCounterEntity++; | 266 buildCounterEntity++; |
267 if (buildCounterEntity < 3) { | 267 if (buildCounterEntity < 3) { |
268 checkKey(o.key); | 268 checkKey(o.key); |
269 checkUnnamed3799(o.properties); | 269 checkUnnamed3891(o.properties); |
270 } | 270 } |
271 buildCounterEntity--; | 271 buildCounterEntity--; |
272 } | 272 } |
273 | 273 |
274 core.int buildCounterEntityResult = 0; | 274 core.int buildCounterEntityResult = 0; |
275 buildEntityResult() { | 275 buildEntityResult() { |
276 var o = new api.EntityResult(); | 276 var o = new api.EntityResult(); |
277 buildCounterEntityResult++; | 277 buildCounterEntityResult++; |
278 if (buildCounterEntityResult < 3) { | 278 if (buildCounterEntityResult < 3) { |
279 o.entity = buildEntity(); | 279 o.entity = buildEntity(); |
(...skipping 24 matching lines...) Expand all Loading... |
304 | 304 |
305 checkFilter(api.Filter o) { | 305 checkFilter(api.Filter o) { |
306 buildCounterFilter++; | 306 buildCounterFilter++; |
307 if (buildCounterFilter < 3) { | 307 if (buildCounterFilter < 3) { |
308 checkCompositeFilter(o.compositeFilter); | 308 checkCompositeFilter(o.compositeFilter); |
309 checkPropertyFilter(o.propertyFilter); | 309 checkPropertyFilter(o.propertyFilter); |
310 } | 310 } |
311 buildCounterFilter--; | 311 buildCounterFilter--; |
312 } | 312 } |
313 | 313 |
314 buildUnnamed3800() { | 314 buildUnnamed3892() { |
315 var o = new core.List<api.GqlQueryArg>(); | 315 var o = new core.List<api.GqlQueryArg>(); |
316 o.add(buildGqlQueryArg()); | 316 o.add(buildGqlQueryArg()); |
317 o.add(buildGqlQueryArg()); | 317 o.add(buildGqlQueryArg()); |
318 return o; | 318 return o; |
319 } | 319 } |
320 | 320 |
321 checkUnnamed3800(core.List<api.GqlQueryArg> o) { | 321 checkUnnamed3892(core.List<api.GqlQueryArg> o) { |
322 unittest.expect(o, unittest.hasLength(2)); | 322 unittest.expect(o, unittest.hasLength(2)); |
323 checkGqlQueryArg(o[0]); | 323 checkGqlQueryArg(o[0]); |
324 checkGqlQueryArg(o[1]); | 324 checkGqlQueryArg(o[1]); |
325 } | 325 } |
326 | 326 |
327 buildUnnamed3801() { | 327 buildUnnamed3893() { |
328 var o = new core.List<api.GqlQueryArg>(); | 328 var o = new core.List<api.GqlQueryArg>(); |
329 o.add(buildGqlQueryArg()); | 329 o.add(buildGqlQueryArg()); |
330 o.add(buildGqlQueryArg()); | 330 o.add(buildGqlQueryArg()); |
331 return o; | 331 return o; |
332 } | 332 } |
333 | 333 |
334 checkUnnamed3801(core.List<api.GqlQueryArg> o) { | 334 checkUnnamed3893(core.List<api.GqlQueryArg> o) { |
335 unittest.expect(o, unittest.hasLength(2)); | 335 unittest.expect(o, unittest.hasLength(2)); |
336 checkGqlQueryArg(o[0]); | 336 checkGqlQueryArg(o[0]); |
337 checkGqlQueryArg(o[1]); | 337 checkGqlQueryArg(o[1]); |
338 } | 338 } |
339 | 339 |
340 core.int buildCounterGqlQuery = 0; | 340 core.int buildCounterGqlQuery = 0; |
341 buildGqlQuery() { | 341 buildGqlQuery() { |
342 var o = new api.GqlQuery(); | 342 var o = new api.GqlQuery(); |
343 buildCounterGqlQuery++; | 343 buildCounterGqlQuery++; |
344 if (buildCounterGqlQuery < 3) { | 344 if (buildCounterGqlQuery < 3) { |
345 o.allowLiteral = true; | 345 o.allowLiteral = true; |
346 o.nameArgs = buildUnnamed3800(); | 346 o.nameArgs = buildUnnamed3892(); |
347 o.numberArgs = buildUnnamed3801(); | 347 o.numberArgs = buildUnnamed3893(); |
348 o.queryString = "foo"; | 348 o.queryString = "foo"; |
349 } | 349 } |
350 buildCounterGqlQuery--; | 350 buildCounterGqlQuery--; |
351 return o; | 351 return o; |
352 } | 352 } |
353 | 353 |
354 checkGqlQuery(api.GqlQuery o) { | 354 checkGqlQuery(api.GqlQuery o) { |
355 buildCounterGqlQuery++; | 355 buildCounterGqlQuery++; |
356 if (buildCounterGqlQuery < 3) { | 356 if (buildCounterGqlQuery < 3) { |
357 unittest.expect(o.allowLiteral, unittest.isTrue); | 357 unittest.expect(o.allowLiteral, unittest.isTrue); |
358 checkUnnamed3800(o.nameArgs); | 358 checkUnnamed3892(o.nameArgs); |
359 checkUnnamed3801(o.numberArgs); | 359 checkUnnamed3893(o.numberArgs); |
360 unittest.expect(o.queryString, unittest.equals('foo')); | 360 unittest.expect(o.queryString, unittest.equals('foo')); |
361 } | 361 } |
362 buildCounterGqlQuery--; | 362 buildCounterGqlQuery--; |
363 } | 363 } |
364 | 364 |
365 core.int buildCounterGqlQueryArg = 0; | 365 core.int buildCounterGqlQueryArg = 0; |
366 buildGqlQueryArg() { | 366 buildGqlQueryArg() { |
367 var o = new api.GqlQueryArg(); | 367 var o = new api.GqlQueryArg(); |
368 buildCounterGqlQueryArg++; | 368 buildCounterGqlQueryArg++; |
369 if (buildCounterGqlQueryArg < 3) { | 369 if (buildCounterGqlQueryArg < 3) { |
370 o.cursor = "foo"; | 370 o.cursor = "foo"; |
371 o.name = "foo"; | 371 o.name = "foo"; |
372 o.value = buildValue(); | 372 o.value = buildValue(); |
373 } | 373 } |
374 buildCounterGqlQueryArg--; | 374 buildCounterGqlQueryArg--; |
375 return o; | 375 return o; |
376 } | 376 } |
377 | 377 |
378 checkGqlQueryArg(api.GqlQueryArg o) { | 378 checkGqlQueryArg(api.GqlQueryArg o) { |
379 buildCounterGqlQueryArg++; | 379 buildCounterGqlQueryArg++; |
380 if (buildCounterGqlQueryArg < 3) { | 380 if (buildCounterGqlQueryArg < 3) { |
381 unittest.expect(o.cursor, unittest.equals('foo')); | 381 unittest.expect(o.cursor, unittest.equals('foo')); |
382 unittest.expect(o.name, unittest.equals('foo')); | 382 unittest.expect(o.name, unittest.equals('foo')); |
383 checkValue(o.value); | 383 checkValue(o.value); |
384 } | 384 } |
385 buildCounterGqlQueryArg--; | 385 buildCounterGqlQueryArg--; |
386 } | 386 } |
387 | 387 |
388 buildUnnamed3802() { | 388 buildUnnamed3894() { |
389 var o = new core.List<api.KeyPathElement>(); | 389 var o = new core.List<api.KeyPathElement>(); |
390 o.add(buildKeyPathElement()); | 390 o.add(buildKeyPathElement()); |
391 o.add(buildKeyPathElement()); | 391 o.add(buildKeyPathElement()); |
392 return o; | 392 return o; |
393 } | 393 } |
394 | 394 |
395 checkUnnamed3802(core.List<api.KeyPathElement> o) { | 395 checkUnnamed3894(core.List<api.KeyPathElement> o) { |
396 unittest.expect(o, unittest.hasLength(2)); | 396 unittest.expect(o, unittest.hasLength(2)); |
397 checkKeyPathElement(o[0]); | 397 checkKeyPathElement(o[0]); |
398 checkKeyPathElement(o[1]); | 398 checkKeyPathElement(o[1]); |
399 } | 399 } |
400 | 400 |
401 core.int buildCounterKey = 0; | 401 core.int buildCounterKey = 0; |
402 buildKey() { | 402 buildKey() { |
403 var o = new api.Key(); | 403 var o = new api.Key(); |
404 buildCounterKey++; | 404 buildCounterKey++; |
405 if (buildCounterKey < 3) { | 405 if (buildCounterKey < 3) { |
406 o.partitionId = buildPartitionId(); | 406 o.partitionId = buildPartitionId(); |
407 o.path = buildUnnamed3802(); | 407 o.path = buildUnnamed3894(); |
408 } | 408 } |
409 buildCounterKey--; | 409 buildCounterKey--; |
410 return o; | 410 return o; |
411 } | 411 } |
412 | 412 |
413 checkKey(api.Key o) { | 413 checkKey(api.Key o) { |
414 buildCounterKey++; | 414 buildCounterKey++; |
415 if (buildCounterKey < 3) { | 415 if (buildCounterKey < 3) { |
416 checkPartitionId(o.partitionId); | 416 checkPartitionId(o.partitionId); |
417 checkUnnamed3802(o.path); | 417 checkUnnamed3894(o.path); |
418 } | 418 } |
419 buildCounterKey--; | 419 buildCounterKey--; |
420 } | 420 } |
421 | 421 |
422 core.int buildCounterKeyPathElement = 0; | 422 core.int buildCounterKeyPathElement = 0; |
423 buildKeyPathElement() { | 423 buildKeyPathElement() { |
424 var o = new api.KeyPathElement(); | 424 var o = new api.KeyPathElement(); |
425 buildCounterKeyPathElement++; | 425 buildCounterKeyPathElement++; |
426 if (buildCounterKeyPathElement < 3) { | 426 if (buildCounterKeyPathElement < 3) { |
427 o.id = "foo"; | 427 o.id = "foo"; |
(...skipping 26 matching lines...) Expand all Loading... |
454 } | 454 } |
455 | 455 |
456 checkKindExpression(api.KindExpression o) { | 456 checkKindExpression(api.KindExpression o) { |
457 buildCounterKindExpression++; | 457 buildCounterKindExpression++; |
458 if (buildCounterKindExpression < 3) { | 458 if (buildCounterKindExpression < 3) { |
459 unittest.expect(o.name, unittest.equals('foo')); | 459 unittest.expect(o.name, unittest.equals('foo')); |
460 } | 460 } |
461 buildCounterKindExpression--; | 461 buildCounterKindExpression--; |
462 } | 462 } |
463 | 463 |
464 buildUnnamed3803() { | 464 buildUnnamed3895() { |
465 var o = new core.List<api.Key>(); | 465 var o = new core.List<api.Key>(); |
466 o.add(buildKey()); | 466 o.add(buildKey()); |
467 o.add(buildKey()); | 467 o.add(buildKey()); |
468 return o; | 468 return o; |
469 } | 469 } |
470 | 470 |
471 checkUnnamed3803(core.List<api.Key> o) { | 471 checkUnnamed3895(core.List<api.Key> o) { |
472 unittest.expect(o, unittest.hasLength(2)); | 472 unittest.expect(o, unittest.hasLength(2)); |
473 checkKey(o[0]); | 473 checkKey(o[0]); |
474 checkKey(o[1]); | 474 checkKey(o[1]); |
475 } | 475 } |
476 | 476 |
477 core.int buildCounterLookupRequest = 0; | 477 core.int buildCounterLookupRequest = 0; |
478 buildLookupRequest() { | 478 buildLookupRequest() { |
479 var o = new api.LookupRequest(); | 479 var o = new api.LookupRequest(); |
480 buildCounterLookupRequest++; | 480 buildCounterLookupRequest++; |
481 if (buildCounterLookupRequest < 3) { | 481 if (buildCounterLookupRequest < 3) { |
482 o.keys = buildUnnamed3803(); | 482 o.keys = buildUnnamed3895(); |
483 o.readOptions = buildReadOptions(); | 483 o.readOptions = buildReadOptions(); |
484 } | 484 } |
485 buildCounterLookupRequest--; | 485 buildCounterLookupRequest--; |
486 return o; | 486 return o; |
487 } | 487 } |
488 | 488 |
489 checkLookupRequest(api.LookupRequest o) { | 489 checkLookupRequest(api.LookupRequest o) { |
490 buildCounterLookupRequest++; | 490 buildCounterLookupRequest++; |
491 if (buildCounterLookupRequest < 3) { | 491 if (buildCounterLookupRequest < 3) { |
492 checkUnnamed3803(o.keys); | 492 checkUnnamed3895(o.keys); |
493 checkReadOptions(o.readOptions); | 493 checkReadOptions(o.readOptions); |
494 } | 494 } |
495 buildCounterLookupRequest--; | 495 buildCounterLookupRequest--; |
496 } | 496 } |
497 | 497 |
498 buildUnnamed3804() { | 498 buildUnnamed3896() { |
499 var o = new core.List<api.Key>(); | 499 var o = new core.List<api.Key>(); |
500 o.add(buildKey()); | 500 o.add(buildKey()); |
501 o.add(buildKey()); | 501 o.add(buildKey()); |
502 return o; | 502 return o; |
503 } | 503 } |
504 | 504 |
505 checkUnnamed3804(core.List<api.Key> o) { | 505 checkUnnamed3896(core.List<api.Key> o) { |
506 unittest.expect(o, unittest.hasLength(2)); | 506 unittest.expect(o, unittest.hasLength(2)); |
507 checkKey(o[0]); | 507 checkKey(o[0]); |
508 checkKey(o[1]); | 508 checkKey(o[1]); |
509 } | 509 } |
510 | 510 |
511 buildUnnamed3805() { | 511 buildUnnamed3897() { |
512 var o = new core.List<api.EntityResult>(); | 512 var o = new core.List<api.EntityResult>(); |
513 o.add(buildEntityResult()); | 513 o.add(buildEntityResult()); |
514 o.add(buildEntityResult()); | 514 o.add(buildEntityResult()); |
515 return o; | 515 return o; |
516 } | 516 } |
517 | 517 |
518 checkUnnamed3805(core.List<api.EntityResult> o) { | 518 checkUnnamed3897(core.List<api.EntityResult> o) { |
519 unittest.expect(o, unittest.hasLength(2)); | 519 unittest.expect(o, unittest.hasLength(2)); |
520 checkEntityResult(o[0]); | 520 checkEntityResult(o[0]); |
521 checkEntityResult(o[1]); | 521 checkEntityResult(o[1]); |
522 } | 522 } |
523 | 523 |
524 buildUnnamed3806() { | 524 buildUnnamed3898() { |
525 var o = new core.List<api.EntityResult>(); | 525 var o = new core.List<api.EntityResult>(); |
526 o.add(buildEntityResult()); | 526 o.add(buildEntityResult()); |
527 o.add(buildEntityResult()); | 527 o.add(buildEntityResult()); |
528 return o; | 528 return o; |
529 } | 529 } |
530 | 530 |
531 checkUnnamed3806(core.List<api.EntityResult> o) { | 531 checkUnnamed3898(core.List<api.EntityResult> o) { |
532 unittest.expect(o, unittest.hasLength(2)); | 532 unittest.expect(o, unittest.hasLength(2)); |
533 checkEntityResult(o[0]); | 533 checkEntityResult(o[0]); |
534 checkEntityResult(o[1]); | 534 checkEntityResult(o[1]); |
535 } | 535 } |
536 | 536 |
537 core.int buildCounterLookupResponse = 0; | 537 core.int buildCounterLookupResponse = 0; |
538 buildLookupResponse() { | 538 buildLookupResponse() { |
539 var o = new api.LookupResponse(); | 539 var o = new api.LookupResponse(); |
540 buildCounterLookupResponse++; | 540 buildCounterLookupResponse++; |
541 if (buildCounterLookupResponse < 3) { | 541 if (buildCounterLookupResponse < 3) { |
542 o.deferred = buildUnnamed3804(); | 542 o.deferred = buildUnnamed3896(); |
543 o.found = buildUnnamed3805(); | 543 o.found = buildUnnamed3897(); |
544 o.header = buildResponseHeader(); | 544 o.header = buildResponseHeader(); |
545 o.missing = buildUnnamed3806(); | 545 o.missing = buildUnnamed3898(); |
546 } | 546 } |
547 buildCounterLookupResponse--; | 547 buildCounterLookupResponse--; |
548 return o; | 548 return o; |
549 } | 549 } |
550 | 550 |
551 checkLookupResponse(api.LookupResponse o) { | 551 checkLookupResponse(api.LookupResponse o) { |
552 buildCounterLookupResponse++; | 552 buildCounterLookupResponse++; |
553 if (buildCounterLookupResponse < 3) { | 553 if (buildCounterLookupResponse < 3) { |
554 checkUnnamed3804(o.deferred); | 554 checkUnnamed3896(o.deferred); |
555 checkUnnamed3805(o.found); | 555 checkUnnamed3897(o.found); |
556 checkResponseHeader(o.header); | 556 checkResponseHeader(o.header); |
557 checkUnnamed3806(o.missing); | 557 checkUnnamed3898(o.missing); |
558 } | 558 } |
559 buildCounterLookupResponse--; | 559 buildCounterLookupResponse--; |
560 } | 560 } |
561 | 561 |
562 buildUnnamed3807() { | 562 buildUnnamed3899() { |
563 var o = new core.List<api.Key>(); | 563 var o = new core.List<api.Key>(); |
564 o.add(buildKey()); | 564 o.add(buildKey()); |
565 o.add(buildKey()); | 565 o.add(buildKey()); |
566 return o; | 566 return o; |
567 } | 567 } |
568 | 568 |
569 checkUnnamed3807(core.List<api.Key> o) { | 569 checkUnnamed3899(core.List<api.Key> o) { |
570 unittest.expect(o, unittest.hasLength(2)); | 570 unittest.expect(o, unittest.hasLength(2)); |
571 checkKey(o[0]); | 571 checkKey(o[0]); |
572 checkKey(o[1]); | 572 checkKey(o[1]); |
573 } | 573 } |
574 | 574 |
575 buildUnnamed3808() { | 575 buildUnnamed3900() { |
576 var o = new core.List<api.Entity>(); | 576 var o = new core.List<api.Entity>(); |
577 o.add(buildEntity()); | 577 o.add(buildEntity()); |
578 o.add(buildEntity()); | 578 o.add(buildEntity()); |
579 return o; | 579 return o; |
580 } | 580 } |
581 | 581 |
582 checkUnnamed3808(core.List<api.Entity> o) { | 582 checkUnnamed3900(core.List<api.Entity> o) { |
583 unittest.expect(o, unittest.hasLength(2)); | 583 unittest.expect(o, unittest.hasLength(2)); |
584 checkEntity(o[0]); | 584 checkEntity(o[0]); |
585 checkEntity(o[1]); | 585 checkEntity(o[1]); |
586 } | 586 } |
587 | 587 |
588 buildUnnamed3809() { | 588 buildUnnamed3901() { |
589 var o = new core.List<api.Entity>(); | 589 var o = new core.List<api.Entity>(); |
590 o.add(buildEntity()); | 590 o.add(buildEntity()); |
591 o.add(buildEntity()); | 591 o.add(buildEntity()); |
592 return o; | 592 return o; |
593 } | 593 } |
594 | 594 |
595 checkUnnamed3809(core.List<api.Entity> o) { | 595 checkUnnamed3901(core.List<api.Entity> o) { |
596 unittest.expect(o, unittest.hasLength(2)); | 596 unittest.expect(o, unittest.hasLength(2)); |
597 checkEntity(o[0]); | 597 checkEntity(o[0]); |
598 checkEntity(o[1]); | 598 checkEntity(o[1]); |
599 } | 599 } |
600 | 600 |
601 buildUnnamed3810() { | 601 buildUnnamed3902() { |
602 var o = new core.List<api.Entity>(); | 602 var o = new core.List<api.Entity>(); |
603 o.add(buildEntity()); | 603 o.add(buildEntity()); |
604 o.add(buildEntity()); | 604 o.add(buildEntity()); |
605 return o; | 605 return o; |
606 } | 606 } |
607 | 607 |
608 checkUnnamed3810(core.List<api.Entity> o) { | 608 checkUnnamed3902(core.List<api.Entity> o) { |
609 unittest.expect(o, unittest.hasLength(2)); | 609 unittest.expect(o, unittest.hasLength(2)); |
610 checkEntity(o[0]); | 610 checkEntity(o[0]); |
611 checkEntity(o[1]); | 611 checkEntity(o[1]); |
612 } | 612 } |
613 | 613 |
614 buildUnnamed3811() { | 614 buildUnnamed3903() { |
615 var o = new core.List<api.Entity>(); | 615 var o = new core.List<api.Entity>(); |
616 o.add(buildEntity()); | 616 o.add(buildEntity()); |
617 o.add(buildEntity()); | 617 o.add(buildEntity()); |
618 return o; | 618 return o; |
619 } | 619 } |
620 | 620 |
621 checkUnnamed3811(core.List<api.Entity> o) { | 621 checkUnnamed3903(core.List<api.Entity> o) { |
622 unittest.expect(o, unittest.hasLength(2)); | 622 unittest.expect(o, unittest.hasLength(2)); |
623 checkEntity(o[0]); | 623 checkEntity(o[0]); |
624 checkEntity(o[1]); | 624 checkEntity(o[1]); |
625 } | 625 } |
626 | 626 |
627 core.int buildCounterMutation = 0; | 627 core.int buildCounterMutation = 0; |
628 buildMutation() { | 628 buildMutation() { |
629 var o = new api.Mutation(); | 629 var o = new api.Mutation(); |
630 buildCounterMutation++; | 630 buildCounterMutation++; |
631 if (buildCounterMutation < 3) { | 631 if (buildCounterMutation < 3) { |
632 o.delete = buildUnnamed3807(); | 632 o.delete = buildUnnamed3899(); |
633 o.force = true; | 633 o.force = true; |
634 o.insert = buildUnnamed3808(); | 634 o.insert = buildUnnamed3900(); |
635 o.insertAutoId = buildUnnamed3809(); | 635 o.insertAutoId = buildUnnamed3901(); |
636 o.update = buildUnnamed3810(); | 636 o.update = buildUnnamed3902(); |
637 o.upsert = buildUnnamed3811(); | 637 o.upsert = buildUnnamed3903(); |
638 } | 638 } |
639 buildCounterMutation--; | 639 buildCounterMutation--; |
640 return o; | 640 return o; |
641 } | 641 } |
642 | 642 |
643 checkMutation(api.Mutation o) { | 643 checkMutation(api.Mutation o) { |
644 buildCounterMutation++; | 644 buildCounterMutation++; |
645 if (buildCounterMutation < 3) { | 645 if (buildCounterMutation < 3) { |
646 checkUnnamed3807(o.delete); | 646 checkUnnamed3899(o.delete); |
647 unittest.expect(o.force, unittest.isTrue); | 647 unittest.expect(o.force, unittest.isTrue); |
648 checkUnnamed3808(o.insert); | 648 checkUnnamed3900(o.insert); |
649 checkUnnamed3809(o.insertAutoId); | 649 checkUnnamed3901(o.insertAutoId); |
650 checkUnnamed3810(o.update); | 650 checkUnnamed3902(o.update); |
651 checkUnnamed3811(o.upsert); | 651 checkUnnamed3903(o.upsert); |
652 } | 652 } |
653 buildCounterMutation--; | 653 buildCounterMutation--; |
654 } | 654 } |
655 | 655 |
656 buildUnnamed3812() { | 656 buildUnnamed3904() { |
657 var o = new core.List<api.Key>(); | 657 var o = new core.List<api.Key>(); |
658 o.add(buildKey()); | 658 o.add(buildKey()); |
659 o.add(buildKey()); | 659 o.add(buildKey()); |
660 return o; | 660 return o; |
661 } | 661 } |
662 | 662 |
663 checkUnnamed3812(core.List<api.Key> o) { | 663 checkUnnamed3904(core.List<api.Key> o) { |
664 unittest.expect(o, unittest.hasLength(2)); | 664 unittest.expect(o, unittest.hasLength(2)); |
665 checkKey(o[0]); | 665 checkKey(o[0]); |
666 checkKey(o[1]); | 666 checkKey(o[1]); |
667 } | 667 } |
668 | 668 |
669 core.int buildCounterMutationResult = 0; | 669 core.int buildCounterMutationResult = 0; |
670 buildMutationResult() { | 670 buildMutationResult() { |
671 var o = new api.MutationResult(); | 671 var o = new api.MutationResult(); |
672 buildCounterMutationResult++; | 672 buildCounterMutationResult++; |
673 if (buildCounterMutationResult < 3) { | 673 if (buildCounterMutationResult < 3) { |
674 o.indexUpdates = 42; | 674 o.indexUpdates = 42; |
675 o.insertAutoIdKeys = buildUnnamed3812(); | 675 o.insertAutoIdKeys = buildUnnamed3904(); |
676 } | 676 } |
677 buildCounterMutationResult--; | 677 buildCounterMutationResult--; |
678 return o; | 678 return o; |
679 } | 679 } |
680 | 680 |
681 checkMutationResult(api.MutationResult o) { | 681 checkMutationResult(api.MutationResult o) { |
682 buildCounterMutationResult++; | 682 buildCounterMutationResult++; |
683 if (buildCounterMutationResult < 3) { | 683 if (buildCounterMutationResult < 3) { |
684 unittest.expect(o.indexUpdates, unittest.equals(42)); | 684 unittest.expect(o.indexUpdates, unittest.equals(42)); |
685 checkUnnamed3812(o.insertAutoIdKeys); | 685 checkUnnamed3904(o.insertAutoIdKeys); |
686 } | 686 } |
687 buildCounterMutationResult--; | 687 buildCounterMutationResult--; |
688 } | 688 } |
689 | 689 |
690 core.int buildCounterPartitionId = 0; | 690 core.int buildCounterPartitionId = 0; |
691 buildPartitionId() { | 691 buildPartitionId() { |
692 var o = new api.PartitionId(); | 692 var o = new api.PartitionId(); |
693 buildCounterPartitionId++; | 693 buildCounterPartitionId++; |
694 if (buildCounterPartitionId < 3) { | 694 if (buildCounterPartitionId < 3) { |
695 o.datasetId = "foo"; | 695 o.datasetId = "foo"; |
696 o.namespace = "foo"; | 696 o.namespace = "foo"; |
697 } | 697 } |
698 buildCounterPartitionId--; | 698 buildCounterPartitionId--; |
699 return o; | 699 return o; |
700 } | 700 } |
701 | 701 |
702 checkPartitionId(api.PartitionId o) { | 702 checkPartitionId(api.PartitionId o) { |
703 buildCounterPartitionId++; | 703 buildCounterPartitionId++; |
704 if (buildCounterPartitionId < 3) { | 704 if (buildCounterPartitionId < 3) { |
705 unittest.expect(o.datasetId, unittest.equals('foo')); | 705 unittest.expect(o.datasetId, unittest.equals('foo')); |
706 unittest.expect(o.namespace, unittest.equals('foo')); | 706 unittest.expect(o.namespace, unittest.equals('foo')); |
707 } | 707 } |
708 buildCounterPartitionId--; | 708 buildCounterPartitionId--; |
709 } | 709 } |
710 | 710 |
711 buildUnnamed3813() { | 711 buildUnnamed3905() { |
712 var o = new core.List<api.Value>(); | 712 var o = new core.List<api.Value>(); |
713 o.add(buildValue()); | 713 o.add(buildValue()); |
714 o.add(buildValue()); | 714 o.add(buildValue()); |
715 return o; | 715 return o; |
716 } | 716 } |
717 | 717 |
718 checkUnnamed3813(core.List<api.Value> o) { | 718 checkUnnamed3905(core.List<api.Value> o) { |
719 unittest.expect(o, unittest.hasLength(2)); | 719 unittest.expect(o, unittest.hasLength(2)); |
720 checkValue(o[0]); | 720 checkValue(o[0]); |
721 checkValue(o[1]); | 721 checkValue(o[1]); |
722 } | 722 } |
723 | 723 |
724 core.int buildCounterProperty = 0; | 724 core.int buildCounterProperty = 0; |
725 buildProperty() { | 725 buildProperty() { |
726 var o = new api.Property(); | 726 var o = new api.Property(); |
727 buildCounterProperty++; | 727 buildCounterProperty++; |
728 if (buildCounterProperty < 3) { | 728 if (buildCounterProperty < 3) { |
729 o.blobKeyValue = "foo"; | 729 o.blobKeyValue = "foo"; |
730 o.blobValue = "foo"; | 730 o.blobValue = "foo"; |
731 o.booleanValue = true; | 731 o.booleanValue = true; |
732 o.dateTimeValue = core.DateTime.parse("2002-02-27T14:01:02"); | 732 o.dateTimeValue = core.DateTime.parse("2002-02-27T14:01:02"); |
733 o.doubleValue = 42.0; | 733 o.doubleValue = 42.0; |
734 o.entityValue = buildEntity(); | 734 o.entityValue = buildEntity(); |
735 o.indexed = true; | 735 o.indexed = true; |
736 o.integerValue = "foo"; | 736 o.integerValue = "foo"; |
737 o.keyValue = buildKey(); | 737 o.keyValue = buildKey(); |
738 o.listValue = buildUnnamed3813(); | 738 o.listValue = buildUnnamed3905(); |
739 o.meaning = 42; | 739 o.meaning = 42; |
740 o.stringValue = "foo"; | 740 o.stringValue = "foo"; |
741 } | 741 } |
742 buildCounterProperty--; | 742 buildCounterProperty--; |
743 return o; | 743 return o; |
744 } | 744 } |
745 | 745 |
746 checkProperty(api.Property o) { | 746 checkProperty(api.Property o) { |
747 buildCounterProperty++; | 747 buildCounterProperty++; |
748 if (buildCounterProperty < 3) { | 748 if (buildCounterProperty < 3) { |
749 unittest.expect(o.blobKeyValue, unittest.equals('foo')); | 749 unittest.expect(o.blobKeyValue, unittest.equals('foo')); |
750 unittest.expect(o.blobValue, unittest.equals('foo')); | 750 unittest.expect(o.blobValue, unittest.equals('foo')); |
751 unittest.expect(o.booleanValue, unittest.isTrue); | 751 unittest.expect(o.booleanValue, unittest.isTrue); |
752 unittest.expect(o.dateTimeValue, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); | 752 unittest.expect(o.dateTimeValue, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); |
753 unittest.expect(o.doubleValue, unittest.equals(42.0)); | 753 unittest.expect(o.doubleValue, unittest.equals(42.0)); |
754 checkEntity(o.entityValue); | 754 checkEntity(o.entityValue); |
755 unittest.expect(o.indexed, unittest.isTrue); | 755 unittest.expect(o.indexed, unittest.isTrue); |
756 unittest.expect(o.integerValue, unittest.equals('foo')); | 756 unittest.expect(o.integerValue, unittest.equals('foo')); |
757 checkKey(o.keyValue); | 757 checkKey(o.keyValue); |
758 checkUnnamed3813(o.listValue); | 758 checkUnnamed3905(o.listValue); |
759 unittest.expect(o.meaning, unittest.equals(42)); | 759 unittest.expect(o.meaning, unittest.equals(42)); |
760 unittest.expect(o.stringValue, unittest.equals('foo')); | 760 unittest.expect(o.stringValue, unittest.equals('foo')); |
761 } | 761 } |
762 buildCounterProperty--; | 762 buildCounterProperty--; |
763 } | 763 } |
764 | 764 |
765 core.int buildCounterPropertyExpression = 0; | 765 core.int buildCounterPropertyExpression = 0; |
766 buildPropertyExpression() { | 766 buildPropertyExpression() { |
767 var o = new api.PropertyExpression(); | 767 var o = new api.PropertyExpression(); |
768 buildCounterPropertyExpression++; | 768 buildCounterPropertyExpression++; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 } | 839 } |
840 | 840 |
841 checkPropertyReference(api.PropertyReference o) { | 841 checkPropertyReference(api.PropertyReference o) { |
842 buildCounterPropertyReference++; | 842 buildCounterPropertyReference++; |
843 if (buildCounterPropertyReference < 3) { | 843 if (buildCounterPropertyReference < 3) { |
844 unittest.expect(o.name, unittest.equals('foo')); | 844 unittest.expect(o.name, unittest.equals('foo')); |
845 } | 845 } |
846 buildCounterPropertyReference--; | 846 buildCounterPropertyReference--; |
847 } | 847 } |
848 | 848 |
849 buildUnnamed3814() { | 849 buildUnnamed3906() { |
850 var o = new core.List<api.PropertyReference>(); | 850 var o = new core.List<api.PropertyReference>(); |
851 o.add(buildPropertyReference()); | 851 o.add(buildPropertyReference()); |
852 o.add(buildPropertyReference()); | 852 o.add(buildPropertyReference()); |
853 return o; | 853 return o; |
854 } | 854 } |
855 | 855 |
856 checkUnnamed3814(core.List<api.PropertyReference> o) { | 856 checkUnnamed3906(core.List<api.PropertyReference> o) { |
857 unittest.expect(o, unittest.hasLength(2)); | 857 unittest.expect(o, unittest.hasLength(2)); |
858 checkPropertyReference(o[0]); | 858 checkPropertyReference(o[0]); |
859 checkPropertyReference(o[1]); | 859 checkPropertyReference(o[1]); |
860 } | 860 } |
861 | 861 |
862 buildUnnamed3815() { | 862 buildUnnamed3907() { |
863 var o = new core.List<api.KindExpression>(); | 863 var o = new core.List<api.KindExpression>(); |
864 o.add(buildKindExpression()); | 864 o.add(buildKindExpression()); |
865 o.add(buildKindExpression()); | 865 o.add(buildKindExpression()); |
866 return o; | 866 return o; |
867 } | 867 } |
868 | 868 |
869 checkUnnamed3815(core.List<api.KindExpression> o) { | 869 checkUnnamed3907(core.List<api.KindExpression> o) { |
870 unittest.expect(o, unittest.hasLength(2)); | 870 unittest.expect(o, unittest.hasLength(2)); |
871 checkKindExpression(o[0]); | 871 checkKindExpression(o[0]); |
872 checkKindExpression(o[1]); | 872 checkKindExpression(o[1]); |
873 } | 873 } |
874 | 874 |
875 buildUnnamed3816() { | 875 buildUnnamed3908() { |
876 var o = new core.List<api.PropertyOrder>(); | 876 var o = new core.List<api.PropertyOrder>(); |
877 o.add(buildPropertyOrder()); | 877 o.add(buildPropertyOrder()); |
878 o.add(buildPropertyOrder()); | 878 o.add(buildPropertyOrder()); |
879 return o; | 879 return o; |
880 } | 880 } |
881 | 881 |
882 checkUnnamed3816(core.List<api.PropertyOrder> o) { | 882 checkUnnamed3908(core.List<api.PropertyOrder> o) { |
883 unittest.expect(o, unittest.hasLength(2)); | 883 unittest.expect(o, unittest.hasLength(2)); |
884 checkPropertyOrder(o[0]); | 884 checkPropertyOrder(o[0]); |
885 checkPropertyOrder(o[1]); | 885 checkPropertyOrder(o[1]); |
886 } | 886 } |
887 | 887 |
888 buildUnnamed3817() { | 888 buildUnnamed3909() { |
889 var o = new core.List<api.PropertyExpression>(); | 889 var o = new core.List<api.PropertyExpression>(); |
890 o.add(buildPropertyExpression()); | 890 o.add(buildPropertyExpression()); |
891 o.add(buildPropertyExpression()); | 891 o.add(buildPropertyExpression()); |
892 return o; | 892 return o; |
893 } | 893 } |
894 | 894 |
895 checkUnnamed3817(core.List<api.PropertyExpression> o) { | 895 checkUnnamed3909(core.List<api.PropertyExpression> o) { |
896 unittest.expect(o, unittest.hasLength(2)); | 896 unittest.expect(o, unittest.hasLength(2)); |
897 checkPropertyExpression(o[0]); | 897 checkPropertyExpression(o[0]); |
898 checkPropertyExpression(o[1]); | 898 checkPropertyExpression(o[1]); |
899 } | 899 } |
900 | 900 |
901 core.int buildCounterQuery = 0; | 901 core.int buildCounterQuery = 0; |
902 buildQuery() { | 902 buildQuery() { |
903 var o = new api.Query(); | 903 var o = new api.Query(); |
904 buildCounterQuery++; | 904 buildCounterQuery++; |
905 if (buildCounterQuery < 3) { | 905 if (buildCounterQuery < 3) { |
906 o.endCursor = "foo"; | 906 o.endCursor = "foo"; |
907 o.filter = buildFilter(); | 907 o.filter = buildFilter(); |
908 o.groupBy = buildUnnamed3814(); | 908 o.groupBy = buildUnnamed3906(); |
909 o.kinds = buildUnnamed3815(); | 909 o.kinds = buildUnnamed3907(); |
910 o.limit = 42; | 910 o.limit = 42; |
911 o.offset = 42; | 911 o.offset = 42; |
912 o.order = buildUnnamed3816(); | 912 o.order = buildUnnamed3908(); |
913 o.projection = buildUnnamed3817(); | 913 o.projection = buildUnnamed3909(); |
914 o.startCursor = "foo"; | 914 o.startCursor = "foo"; |
915 } | 915 } |
916 buildCounterQuery--; | 916 buildCounterQuery--; |
917 return o; | 917 return o; |
918 } | 918 } |
919 | 919 |
920 checkQuery(api.Query o) { | 920 checkQuery(api.Query o) { |
921 buildCounterQuery++; | 921 buildCounterQuery++; |
922 if (buildCounterQuery < 3) { | 922 if (buildCounterQuery < 3) { |
923 unittest.expect(o.endCursor, unittest.equals('foo')); | 923 unittest.expect(o.endCursor, unittest.equals('foo')); |
924 checkFilter(o.filter); | 924 checkFilter(o.filter); |
925 checkUnnamed3814(o.groupBy); | 925 checkUnnamed3906(o.groupBy); |
926 checkUnnamed3815(o.kinds); | 926 checkUnnamed3907(o.kinds); |
927 unittest.expect(o.limit, unittest.equals(42)); | 927 unittest.expect(o.limit, unittest.equals(42)); |
928 unittest.expect(o.offset, unittest.equals(42)); | 928 unittest.expect(o.offset, unittest.equals(42)); |
929 checkUnnamed3816(o.order); | 929 checkUnnamed3908(o.order); |
930 checkUnnamed3817(o.projection); | 930 checkUnnamed3909(o.projection); |
931 unittest.expect(o.startCursor, unittest.equals('foo')); | 931 unittest.expect(o.startCursor, unittest.equals('foo')); |
932 } | 932 } |
933 buildCounterQuery--; | 933 buildCounterQuery--; |
934 } | 934 } |
935 | 935 |
936 buildUnnamed3818() { | 936 buildUnnamed3910() { |
937 var o = new core.List<api.EntityResult>(); | 937 var o = new core.List<api.EntityResult>(); |
938 o.add(buildEntityResult()); | 938 o.add(buildEntityResult()); |
939 o.add(buildEntityResult()); | 939 o.add(buildEntityResult()); |
940 return o; | 940 return o; |
941 } | 941 } |
942 | 942 |
943 checkUnnamed3818(core.List<api.EntityResult> o) { | 943 checkUnnamed3910(core.List<api.EntityResult> o) { |
944 unittest.expect(o, unittest.hasLength(2)); | 944 unittest.expect(o, unittest.hasLength(2)); |
945 checkEntityResult(o[0]); | 945 checkEntityResult(o[0]); |
946 checkEntityResult(o[1]); | 946 checkEntityResult(o[1]); |
947 } | 947 } |
948 | 948 |
949 core.int buildCounterQueryResultBatch = 0; | 949 core.int buildCounterQueryResultBatch = 0; |
950 buildQueryResultBatch() { | 950 buildQueryResultBatch() { |
951 var o = new api.QueryResultBatch(); | 951 var o = new api.QueryResultBatch(); |
952 buildCounterQueryResultBatch++; | 952 buildCounterQueryResultBatch++; |
953 if (buildCounterQueryResultBatch < 3) { | 953 if (buildCounterQueryResultBatch < 3) { |
954 o.endCursor = "foo"; | 954 o.endCursor = "foo"; |
955 o.entityResultType = "foo"; | 955 o.entityResultType = "foo"; |
956 o.entityResults = buildUnnamed3818(); | 956 o.entityResults = buildUnnamed3910(); |
957 o.moreResults = "foo"; | 957 o.moreResults = "foo"; |
958 o.skippedResults = 42; | 958 o.skippedResults = 42; |
959 } | 959 } |
960 buildCounterQueryResultBatch--; | 960 buildCounterQueryResultBatch--; |
961 return o; | 961 return o; |
962 } | 962 } |
963 | 963 |
964 checkQueryResultBatch(api.QueryResultBatch o) { | 964 checkQueryResultBatch(api.QueryResultBatch o) { |
965 buildCounterQueryResultBatch++; | 965 buildCounterQueryResultBatch++; |
966 if (buildCounterQueryResultBatch < 3) { | 966 if (buildCounterQueryResultBatch < 3) { |
967 unittest.expect(o.endCursor, unittest.equals('foo')); | 967 unittest.expect(o.endCursor, unittest.equals('foo')); |
968 unittest.expect(o.entityResultType, unittest.equals('foo')); | 968 unittest.expect(o.entityResultType, unittest.equals('foo')); |
969 checkUnnamed3818(o.entityResults); | 969 checkUnnamed3910(o.entityResults); |
970 unittest.expect(o.moreResults, unittest.equals('foo')); | 970 unittest.expect(o.moreResults, unittest.equals('foo')); |
971 unittest.expect(o.skippedResults, unittest.equals(42)); | 971 unittest.expect(o.skippedResults, unittest.equals(42)); |
972 } | 972 } |
973 buildCounterQueryResultBatch--; | 973 buildCounterQueryResultBatch--; |
974 } | 974 } |
975 | 975 |
976 core.int buildCounterReadOptions = 0; | 976 core.int buildCounterReadOptions = 0; |
977 buildReadOptions() { | 977 buildReadOptions() { |
978 var o = new api.ReadOptions(); | 978 var o = new api.ReadOptions(); |
979 buildCounterReadOptions++; | 979 buildCounterReadOptions++; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1090 | 1090 |
1091 checkRunQueryResponse(api.RunQueryResponse o) { | 1091 checkRunQueryResponse(api.RunQueryResponse o) { |
1092 buildCounterRunQueryResponse++; | 1092 buildCounterRunQueryResponse++; |
1093 if (buildCounterRunQueryResponse < 3) { | 1093 if (buildCounterRunQueryResponse < 3) { |
1094 checkQueryResultBatch(o.batch); | 1094 checkQueryResultBatch(o.batch); |
1095 checkResponseHeader(o.header); | 1095 checkResponseHeader(o.header); |
1096 } | 1096 } |
1097 buildCounterRunQueryResponse--; | 1097 buildCounterRunQueryResponse--; |
1098 } | 1098 } |
1099 | 1099 |
1100 buildUnnamed3819() { | 1100 buildUnnamed3911() { |
1101 var o = new core.List<api.Value>(); | 1101 var o = new core.List<api.Value>(); |
1102 o.add(buildValue()); | 1102 o.add(buildValue()); |
1103 o.add(buildValue()); | 1103 o.add(buildValue()); |
1104 return o; | 1104 return o; |
1105 } | 1105 } |
1106 | 1106 |
1107 checkUnnamed3819(core.List<api.Value> o) { | 1107 checkUnnamed3911(core.List<api.Value> o) { |
1108 unittest.expect(o, unittest.hasLength(2)); | 1108 unittest.expect(o, unittest.hasLength(2)); |
1109 checkValue(o[0]); | 1109 checkValue(o[0]); |
1110 checkValue(o[1]); | 1110 checkValue(o[1]); |
1111 } | 1111 } |
1112 | 1112 |
1113 core.int buildCounterValue = 0; | 1113 core.int buildCounterValue = 0; |
1114 buildValue() { | 1114 buildValue() { |
1115 var o = new api.Value(); | 1115 var o = new api.Value(); |
1116 buildCounterValue++; | 1116 buildCounterValue++; |
1117 if (buildCounterValue < 3) { | 1117 if (buildCounterValue < 3) { |
1118 o.blobKeyValue = "foo"; | 1118 o.blobKeyValue = "foo"; |
1119 o.blobValue = "foo"; | 1119 o.blobValue = "foo"; |
1120 o.booleanValue = true; | 1120 o.booleanValue = true; |
1121 o.dateTimeValue = core.DateTime.parse("2002-02-27T14:01:02"); | 1121 o.dateTimeValue = core.DateTime.parse("2002-02-27T14:01:02"); |
1122 o.doubleValue = 42.0; | 1122 o.doubleValue = 42.0; |
1123 o.entityValue = buildEntity(); | 1123 o.entityValue = buildEntity(); |
1124 o.indexed = true; | 1124 o.indexed = true; |
1125 o.integerValue = "foo"; | 1125 o.integerValue = "foo"; |
1126 o.keyValue = buildKey(); | 1126 o.keyValue = buildKey(); |
1127 o.listValue = buildUnnamed3819(); | 1127 o.listValue = buildUnnamed3911(); |
1128 o.meaning = 42; | 1128 o.meaning = 42; |
1129 o.stringValue = "foo"; | 1129 o.stringValue = "foo"; |
1130 } | 1130 } |
1131 buildCounterValue--; | 1131 buildCounterValue--; |
1132 return o; | 1132 return o; |
1133 } | 1133 } |
1134 | 1134 |
1135 checkValue(api.Value o) { | 1135 checkValue(api.Value o) { |
1136 buildCounterValue++; | 1136 buildCounterValue++; |
1137 if (buildCounterValue < 3) { | 1137 if (buildCounterValue < 3) { |
1138 unittest.expect(o.blobKeyValue, unittest.equals('foo')); | 1138 unittest.expect(o.blobKeyValue, unittest.equals('foo')); |
1139 unittest.expect(o.blobValue, unittest.equals('foo')); | 1139 unittest.expect(o.blobValue, unittest.equals('foo')); |
1140 unittest.expect(o.booleanValue, unittest.isTrue); | 1140 unittest.expect(o.booleanValue, unittest.isTrue); |
1141 unittest.expect(o.dateTimeValue, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); | 1141 unittest.expect(o.dateTimeValue, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); |
1142 unittest.expect(o.doubleValue, unittest.equals(42.0)); | 1142 unittest.expect(o.doubleValue, unittest.equals(42.0)); |
1143 checkEntity(o.entityValue); | 1143 checkEntity(o.entityValue); |
1144 unittest.expect(o.indexed, unittest.isTrue); | 1144 unittest.expect(o.indexed, unittest.isTrue); |
1145 unittest.expect(o.integerValue, unittest.equals('foo')); | 1145 unittest.expect(o.integerValue, unittest.equals('foo')); |
1146 checkKey(o.keyValue); | 1146 checkKey(o.keyValue); |
1147 checkUnnamed3819(o.listValue); | 1147 checkUnnamed3911(o.listValue); |
1148 unittest.expect(o.meaning, unittest.equals(42)); | 1148 unittest.expect(o.meaning, unittest.equals(42)); |
1149 unittest.expect(o.stringValue, unittest.equals('foo')); | 1149 unittest.expect(o.stringValue, unittest.equals('foo')); |
1150 } | 1150 } |
1151 buildCounterValue--; | 1151 buildCounterValue--; |
1152 } | 1152 } |
1153 | 1153 |
1154 | 1154 |
1155 main() { | 1155 main() { |
1156 unittest.group("obj-schema-AllocateIdsRequest", () { | 1156 unittest.group("obj-schema-AllocateIdsRequest", () { |
1157 unittest.test("to-json--from-json", () { | 1157 unittest.test("to-json--from-json", () { |
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1734 res.runQuery(arg_request, arg_datasetId).then(unittest.expectAsync(((api.R
unQueryResponse response) { | 1734 res.runQuery(arg_request, arg_datasetId).then(unittest.expectAsync(((api.R
unQueryResponse response) { |
1735 checkRunQueryResponse(response); | 1735 checkRunQueryResponse(response); |
1736 }))); | 1736 }))); |
1737 }); | 1737 }); |
1738 | 1738 |
1739 }); | 1739 }); |
1740 | 1740 |
1741 | 1741 |
1742 } | 1742 } |
1743 | 1743 |
OLD | NEW |