Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Side by Side Diff: generated/googleapis_beta/test/datastore/v1beta2_test.dart

Issue 1078053002: Roll of googleapis as of 4/7/2015. (Closed) Base URL: https://github.com/dart-lang/googleapis.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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;
11 import 'package:googleapis_beta/common/common.dart' as common;
12 import 'package:googleapis_beta/src/common_internal.dart' as common_internal;
13 import '../common/common_internal_test.dart' as common_test;
14 11
15 import 'package:googleapis_beta/datastore/v1beta2.dart' as api; 12 import 'package:googleapis_beta/datastore/v1beta2.dart' as api;
16 13
14 class HttpServerMock extends http.BaseClient {
15 core.Function _callback;
16 core.bool _expectJson;
17 17
18 void register(core.Function callback, core.bool expectJson) {
19 _callback = callback;
20 _expectJson = expectJson;
21 }
18 22
19 buildUnnamed1830() { 23 async.Future<http.StreamedResponse> send(http.BaseRequest request) {
24 if (_expectJson) {
25 return request.finalize()
26 .transform(convert.UTF8.decoder)
27 .join('')
28 .then((core.String jsonString) {
29 if (jsonString.isEmpty) {
30 return _callback(request, null);
31 } else {
32 return _callback(request, convert.JSON.decode(jsonString));
33 }
34 });
35 } else {
36 var stream = request.finalize();
37 if (stream == null) {
38 return _callback(request, []);
39 } else {
40 return stream.toBytes().then((data) {
41 return _callback(request, data);
42 });
43 }
44 }
45 }
46 }
47
48 http.StreamedResponse stringResponse(
49 core.int status, core.Map headers, core.String body) {
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
51 return new http.StreamedResponse(stream, status, headers: headers);
52 }
53
54 buildUnnamed1552() {
20 var o = new core.List<api.Key>(); 55 var o = new core.List<api.Key>();
21 o.add(buildKey()); 56 o.add(buildKey());
22 o.add(buildKey()); 57 o.add(buildKey());
23 return o; 58 return o;
24 } 59 }
25 60
26 checkUnnamed1830(core.List<api.Key> o) { 61 checkUnnamed1552(core.List<api.Key> o) {
27 unittest.expect(o, unittest.hasLength(2)); 62 unittest.expect(o, unittest.hasLength(2));
28 checkKey(o[0]); 63 checkKey(o[0]);
29 checkKey(o[1]); 64 checkKey(o[1]);
30 } 65 }
31 66
32 core.int buildCounterAllocateIdsRequest = 0; 67 core.int buildCounterAllocateIdsRequest = 0;
33 buildAllocateIdsRequest() { 68 buildAllocateIdsRequest() {
34 var o = new api.AllocateIdsRequest(); 69 var o = new api.AllocateIdsRequest();
35 buildCounterAllocateIdsRequest++; 70 buildCounterAllocateIdsRequest++;
36 if (buildCounterAllocateIdsRequest < 3) { 71 if (buildCounterAllocateIdsRequest < 3) {
37 o.keys = buildUnnamed1830(); 72 o.keys = buildUnnamed1552();
38 } 73 }
39 buildCounterAllocateIdsRequest--; 74 buildCounterAllocateIdsRequest--;
40 return o; 75 return o;
41 } 76 }
42 77
43 checkAllocateIdsRequest(api.AllocateIdsRequest o) { 78 checkAllocateIdsRequest(api.AllocateIdsRequest o) {
44 buildCounterAllocateIdsRequest++; 79 buildCounterAllocateIdsRequest++;
45 if (buildCounterAllocateIdsRequest < 3) { 80 if (buildCounterAllocateIdsRequest < 3) {
46 checkUnnamed1830(o.keys); 81 checkUnnamed1552(o.keys);
47 } 82 }
48 buildCounterAllocateIdsRequest--; 83 buildCounterAllocateIdsRequest--;
49 } 84 }
50 85
51 buildUnnamed1831() { 86 buildUnnamed1553() {
52 var o = new core.List<api.Key>(); 87 var o = new core.List<api.Key>();
53 o.add(buildKey()); 88 o.add(buildKey());
54 o.add(buildKey()); 89 o.add(buildKey());
55 return o; 90 return o;
56 } 91 }
57 92
58 checkUnnamed1831(core.List<api.Key> o) { 93 checkUnnamed1553(core.List<api.Key> o) {
59 unittest.expect(o, unittest.hasLength(2)); 94 unittest.expect(o, unittest.hasLength(2));
60 checkKey(o[0]); 95 checkKey(o[0]);
61 checkKey(o[1]); 96 checkKey(o[1]);
62 } 97 }
63 98
64 core.int buildCounterAllocateIdsResponse = 0; 99 core.int buildCounterAllocateIdsResponse = 0;
65 buildAllocateIdsResponse() { 100 buildAllocateIdsResponse() {
66 var o = new api.AllocateIdsResponse(); 101 var o = new api.AllocateIdsResponse();
67 buildCounterAllocateIdsResponse++; 102 buildCounterAllocateIdsResponse++;
68 if (buildCounterAllocateIdsResponse < 3) { 103 if (buildCounterAllocateIdsResponse < 3) {
69 o.header = buildResponseHeader(); 104 o.header = buildResponseHeader();
70 o.keys = buildUnnamed1831(); 105 o.keys = buildUnnamed1553();
71 } 106 }
72 buildCounterAllocateIdsResponse--; 107 buildCounterAllocateIdsResponse--;
73 return o; 108 return o;
74 } 109 }
75 110
76 checkAllocateIdsResponse(api.AllocateIdsResponse o) { 111 checkAllocateIdsResponse(api.AllocateIdsResponse o) {
77 buildCounterAllocateIdsResponse++; 112 buildCounterAllocateIdsResponse++;
78 if (buildCounterAllocateIdsResponse < 3) { 113 if (buildCounterAllocateIdsResponse < 3) {
79 checkResponseHeader(o.header); 114 checkResponseHeader(o.header);
80 checkUnnamed1831(o.keys); 115 checkUnnamed1553(o.keys);
81 } 116 }
82 buildCounterAllocateIdsResponse--; 117 buildCounterAllocateIdsResponse--;
83 } 118 }
84 119
85 core.int buildCounterBeginTransactionRequest = 0; 120 core.int buildCounterBeginTransactionRequest = 0;
86 buildBeginTransactionRequest() { 121 buildBeginTransactionRequest() {
87 var o = new api.BeginTransactionRequest(); 122 var o = new api.BeginTransactionRequest();
88 buildCounterBeginTransactionRequest++; 123 buildCounterBeginTransactionRequest++;
89 if (buildCounterBeginTransactionRequest < 3) { 124 if (buildCounterBeginTransactionRequest < 3) {
90 o.isolationLevel = "foo"; 125 o.isolationLevel = "foo";
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 196
162 checkCommitResponse(api.CommitResponse o) { 197 checkCommitResponse(api.CommitResponse o) {
163 buildCounterCommitResponse++; 198 buildCounterCommitResponse++;
164 if (buildCounterCommitResponse < 3) { 199 if (buildCounterCommitResponse < 3) {
165 checkResponseHeader(o.header); 200 checkResponseHeader(o.header);
166 checkMutationResult(o.mutationResult); 201 checkMutationResult(o.mutationResult);
167 } 202 }
168 buildCounterCommitResponse--; 203 buildCounterCommitResponse--;
169 } 204 }
170 205
171 buildUnnamed1832() { 206 buildUnnamed1554() {
172 var o = new core.List<api.Filter>(); 207 var o = new core.List<api.Filter>();
173 o.add(buildFilter()); 208 o.add(buildFilter());
174 o.add(buildFilter()); 209 o.add(buildFilter());
175 return o; 210 return o;
176 } 211 }
177 212
178 checkUnnamed1832(core.List<api.Filter> o) { 213 checkUnnamed1554(core.List<api.Filter> o) {
179 unittest.expect(o, unittest.hasLength(2)); 214 unittest.expect(o, unittest.hasLength(2));
180 checkFilter(o[0]); 215 checkFilter(o[0]);
181 checkFilter(o[1]); 216 checkFilter(o[1]);
182 } 217 }
183 218
184 core.int buildCounterCompositeFilter = 0; 219 core.int buildCounterCompositeFilter = 0;
185 buildCompositeFilter() { 220 buildCompositeFilter() {
186 var o = new api.CompositeFilter(); 221 var o = new api.CompositeFilter();
187 buildCounterCompositeFilter++; 222 buildCounterCompositeFilter++;
188 if (buildCounterCompositeFilter < 3) { 223 if (buildCounterCompositeFilter < 3) {
189 o.filters = buildUnnamed1832(); 224 o.filters = buildUnnamed1554();
190 o.operator = "foo"; 225 o.operator = "foo";
191 } 226 }
192 buildCounterCompositeFilter--; 227 buildCounterCompositeFilter--;
193 return o; 228 return o;
194 } 229 }
195 230
196 checkCompositeFilter(api.CompositeFilter o) { 231 checkCompositeFilter(api.CompositeFilter o) {
197 buildCounterCompositeFilter++; 232 buildCounterCompositeFilter++;
198 if (buildCounterCompositeFilter < 3) { 233 if (buildCounterCompositeFilter < 3) {
199 checkUnnamed1832(o.filters); 234 checkUnnamed1554(o.filters);
200 unittest.expect(o.operator, unittest.equals('foo')); 235 unittest.expect(o.operator, unittest.equals('foo'));
201 } 236 }
202 buildCounterCompositeFilter--; 237 buildCounterCompositeFilter--;
203 } 238 }
204 239
205 buildUnnamed1833() { 240 buildUnnamed1555() {
206 var o = new core.Map<core.String, api.Property>(); 241 var o = new core.Map<core.String, api.Property>();
207 o["x"] = buildProperty(); 242 o["x"] = buildProperty();
208 o["y"] = buildProperty(); 243 o["y"] = buildProperty();
209 return o; 244 return o;
210 } 245 }
211 246
212 checkUnnamed1833(core.Map<core.String, api.Property> o) { 247 checkUnnamed1555(core.Map<core.String, api.Property> o) {
213 unittest.expect(o, unittest.hasLength(2)); 248 unittest.expect(o, unittest.hasLength(2));
214 checkProperty(o["x"]); 249 checkProperty(o["x"]);
215 checkProperty(o["y"]); 250 checkProperty(o["y"]);
216 } 251 }
217 252
218 core.int buildCounterEntity = 0; 253 core.int buildCounterEntity = 0;
219 buildEntity() { 254 buildEntity() {
220 var o = new api.Entity(); 255 var o = new api.Entity();
221 buildCounterEntity++; 256 buildCounterEntity++;
222 if (buildCounterEntity < 3) { 257 if (buildCounterEntity < 3) {
223 o.key = buildKey(); 258 o.key = buildKey();
224 o.properties = buildUnnamed1833(); 259 o.properties = buildUnnamed1555();
225 } 260 }
226 buildCounterEntity--; 261 buildCounterEntity--;
227 return o; 262 return o;
228 } 263 }
229 264
230 checkEntity(api.Entity o) { 265 checkEntity(api.Entity o) {
231 buildCounterEntity++; 266 buildCounterEntity++;
232 if (buildCounterEntity < 3) { 267 if (buildCounterEntity < 3) {
233 checkKey(o.key); 268 checkKey(o.key);
234 checkUnnamed1833(o.properties); 269 checkUnnamed1555(o.properties);
235 } 270 }
236 buildCounterEntity--; 271 buildCounterEntity--;
237 } 272 }
238 273
239 core.int buildCounterEntityResult = 0; 274 core.int buildCounterEntityResult = 0;
240 buildEntityResult() { 275 buildEntityResult() {
241 var o = new api.EntityResult(); 276 var o = new api.EntityResult();
242 buildCounterEntityResult++; 277 buildCounterEntityResult++;
243 if (buildCounterEntityResult < 3) { 278 if (buildCounterEntityResult < 3) {
244 o.entity = buildEntity(); 279 o.entity = buildEntity();
(...skipping 24 matching lines...) Expand all
269 304
270 checkFilter(api.Filter o) { 305 checkFilter(api.Filter o) {
271 buildCounterFilter++; 306 buildCounterFilter++;
272 if (buildCounterFilter < 3) { 307 if (buildCounterFilter < 3) {
273 checkCompositeFilter(o.compositeFilter); 308 checkCompositeFilter(o.compositeFilter);
274 checkPropertyFilter(o.propertyFilter); 309 checkPropertyFilter(o.propertyFilter);
275 } 310 }
276 buildCounterFilter--; 311 buildCounterFilter--;
277 } 312 }
278 313
279 buildUnnamed1834() { 314 buildUnnamed1556() {
280 var o = new core.List<api.GqlQueryArg>(); 315 var o = new core.List<api.GqlQueryArg>();
281 o.add(buildGqlQueryArg()); 316 o.add(buildGqlQueryArg());
282 o.add(buildGqlQueryArg()); 317 o.add(buildGqlQueryArg());
283 return o; 318 return o;
284 } 319 }
285 320
286 checkUnnamed1834(core.List<api.GqlQueryArg> o) { 321 checkUnnamed1556(core.List<api.GqlQueryArg> o) {
287 unittest.expect(o, unittest.hasLength(2)); 322 unittest.expect(o, unittest.hasLength(2));
288 checkGqlQueryArg(o[0]); 323 checkGqlQueryArg(o[0]);
289 checkGqlQueryArg(o[1]); 324 checkGqlQueryArg(o[1]);
290 } 325 }
291 326
292 buildUnnamed1835() { 327 buildUnnamed1557() {
293 var o = new core.List<api.GqlQueryArg>(); 328 var o = new core.List<api.GqlQueryArg>();
294 o.add(buildGqlQueryArg()); 329 o.add(buildGqlQueryArg());
295 o.add(buildGqlQueryArg()); 330 o.add(buildGqlQueryArg());
296 return o; 331 return o;
297 } 332 }
298 333
299 checkUnnamed1835(core.List<api.GqlQueryArg> o) { 334 checkUnnamed1557(core.List<api.GqlQueryArg> o) {
300 unittest.expect(o, unittest.hasLength(2)); 335 unittest.expect(o, unittest.hasLength(2));
301 checkGqlQueryArg(o[0]); 336 checkGqlQueryArg(o[0]);
302 checkGqlQueryArg(o[1]); 337 checkGqlQueryArg(o[1]);
303 } 338 }
304 339
305 core.int buildCounterGqlQuery = 0; 340 core.int buildCounterGqlQuery = 0;
306 buildGqlQuery() { 341 buildGqlQuery() {
307 var o = new api.GqlQuery(); 342 var o = new api.GqlQuery();
308 buildCounterGqlQuery++; 343 buildCounterGqlQuery++;
309 if (buildCounterGqlQuery < 3) { 344 if (buildCounterGqlQuery < 3) {
310 o.allowLiteral = true; 345 o.allowLiteral = true;
311 o.nameArgs = buildUnnamed1834(); 346 o.nameArgs = buildUnnamed1556();
312 o.numberArgs = buildUnnamed1835(); 347 o.numberArgs = buildUnnamed1557();
313 o.queryString = "foo"; 348 o.queryString = "foo";
314 } 349 }
315 buildCounterGqlQuery--; 350 buildCounterGqlQuery--;
316 return o; 351 return o;
317 } 352 }
318 353
319 checkGqlQuery(api.GqlQuery o) { 354 checkGqlQuery(api.GqlQuery o) {
320 buildCounterGqlQuery++; 355 buildCounterGqlQuery++;
321 if (buildCounterGqlQuery < 3) { 356 if (buildCounterGqlQuery < 3) {
322 unittest.expect(o.allowLiteral, unittest.isTrue); 357 unittest.expect(o.allowLiteral, unittest.isTrue);
323 checkUnnamed1834(o.nameArgs); 358 checkUnnamed1556(o.nameArgs);
324 checkUnnamed1835(o.numberArgs); 359 checkUnnamed1557(o.numberArgs);
325 unittest.expect(o.queryString, unittest.equals('foo')); 360 unittest.expect(o.queryString, unittest.equals('foo'));
326 } 361 }
327 buildCounterGqlQuery--; 362 buildCounterGqlQuery--;
328 } 363 }
329 364
330 core.int buildCounterGqlQueryArg = 0; 365 core.int buildCounterGqlQueryArg = 0;
331 buildGqlQueryArg() { 366 buildGqlQueryArg() {
332 var o = new api.GqlQueryArg(); 367 var o = new api.GqlQueryArg();
333 buildCounterGqlQueryArg++; 368 buildCounterGqlQueryArg++;
334 if (buildCounterGqlQueryArg < 3) { 369 if (buildCounterGqlQueryArg < 3) {
335 o.cursor = "foo"; 370 o.cursor = "foo";
336 o.name = "foo"; 371 o.name = "foo";
337 o.value = buildValue(); 372 o.value = buildValue();
338 } 373 }
339 buildCounterGqlQueryArg--; 374 buildCounterGqlQueryArg--;
340 return o; 375 return o;
341 } 376 }
342 377
343 checkGqlQueryArg(api.GqlQueryArg o) { 378 checkGqlQueryArg(api.GqlQueryArg o) {
344 buildCounterGqlQueryArg++; 379 buildCounterGqlQueryArg++;
345 if (buildCounterGqlQueryArg < 3) { 380 if (buildCounterGqlQueryArg < 3) {
346 unittest.expect(o.cursor, unittest.equals('foo')); 381 unittest.expect(o.cursor, unittest.equals('foo'));
347 unittest.expect(o.name, unittest.equals('foo')); 382 unittest.expect(o.name, unittest.equals('foo'));
348 checkValue(o.value); 383 checkValue(o.value);
349 } 384 }
350 buildCounterGqlQueryArg--; 385 buildCounterGqlQueryArg--;
351 } 386 }
352 387
353 buildUnnamed1836() { 388 buildUnnamed1558() {
354 var o = new core.List<api.KeyPathElement>(); 389 var o = new core.List<api.KeyPathElement>();
355 o.add(buildKeyPathElement()); 390 o.add(buildKeyPathElement());
356 o.add(buildKeyPathElement()); 391 o.add(buildKeyPathElement());
357 return o; 392 return o;
358 } 393 }
359 394
360 checkUnnamed1836(core.List<api.KeyPathElement> o) { 395 checkUnnamed1558(core.List<api.KeyPathElement> o) {
361 unittest.expect(o, unittest.hasLength(2)); 396 unittest.expect(o, unittest.hasLength(2));
362 checkKeyPathElement(o[0]); 397 checkKeyPathElement(o[0]);
363 checkKeyPathElement(o[1]); 398 checkKeyPathElement(o[1]);
364 } 399 }
365 400
366 core.int buildCounterKey = 0; 401 core.int buildCounterKey = 0;
367 buildKey() { 402 buildKey() {
368 var o = new api.Key(); 403 var o = new api.Key();
369 buildCounterKey++; 404 buildCounterKey++;
370 if (buildCounterKey < 3) { 405 if (buildCounterKey < 3) {
371 o.partitionId = buildPartitionId(); 406 o.partitionId = buildPartitionId();
372 o.path = buildUnnamed1836(); 407 o.path = buildUnnamed1558();
373 } 408 }
374 buildCounterKey--; 409 buildCounterKey--;
375 return o; 410 return o;
376 } 411 }
377 412
378 checkKey(api.Key o) { 413 checkKey(api.Key o) {
379 buildCounterKey++; 414 buildCounterKey++;
380 if (buildCounterKey < 3) { 415 if (buildCounterKey < 3) {
381 checkPartitionId(o.partitionId); 416 checkPartitionId(o.partitionId);
382 checkUnnamed1836(o.path); 417 checkUnnamed1558(o.path);
383 } 418 }
384 buildCounterKey--; 419 buildCounterKey--;
385 } 420 }
386 421
387 core.int buildCounterKeyPathElement = 0; 422 core.int buildCounterKeyPathElement = 0;
388 buildKeyPathElement() { 423 buildKeyPathElement() {
389 var o = new api.KeyPathElement(); 424 var o = new api.KeyPathElement();
390 buildCounterKeyPathElement++; 425 buildCounterKeyPathElement++;
391 if (buildCounterKeyPathElement < 3) { 426 if (buildCounterKeyPathElement < 3) {
392 o.id = "foo"; 427 o.id = "foo";
(...skipping 26 matching lines...) Expand all
419 } 454 }
420 455
421 checkKindExpression(api.KindExpression o) { 456 checkKindExpression(api.KindExpression o) {
422 buildCounterKindExpression++; 457 buildCounterKindExpression++;
423 if (buildCounterKindExpression < 3) { 458 if (buildCounterKindExpression < 3) {
424 unittest.expect(o.name, unittest.equals('foo')); 459 unittest.expect(o.name, unittest.equals('foo'));
425 } 460 }
426 buildCounterKindExpression--; 461 buildCounterKindExpression--;
427 } 462 }
428 463
429 buildUnnamed1837() { 464 buildUnnamed1559() {
430 var o = new core.List<api.Key>(); 465 var o = new core.List<api.Key>();
431 o.add(buildKey()); 466 o.add(buildKey());
432 o.add(buildKey()); 467 o.add(buildKey());
433 return o; 468 return o;
434 } 469 }
435 470
436 checkUnnamed1837(core.List<api.Key> o) { 471 checkUnnamed1559(core.List<api.Key> o) {
437 unittest.expect(o, unittest.hasLength(2)); 472 unittest.expect(o, unittest.hasLength(2));
438 checkKey(o[0]); 473 checkKey(o[0]);
439 checkKey(o[1]); 474 checkKey(o[1]);
440 } 475 }
441 476
442 core.int buildCounterLookupRequest = 0; 477 core.int buildCounterLookupRequest = 0;
443 buildLookupRequest() { 478 buildLookupRequest() {
444 var o = new api.LookupRequest(); 479 var o = new api.LookupRequest();
445 buildCounterLookupRequest++; 480 buildCounterLookupRequest++;
446 if (buildCounterLookupRequest < 3) { 481 if (buildCounterLookupRequest < 3) {
447 o.keys = buildUnnamed1837(); 482 o.keys = buildUnnamed1559();
448 o.readOptions = buildReadOptions(); 483 o.readOptions = buildReadOptions();
449 } 484 }
450 buildCounterLookupRequest--; 485 buildCounterLookupRequest--;
451 return o; 486 return o;
452 } 487 }
453 488
454 checkLookupRequest(api.LookupRequest o) { 489 checkLookupRequest(api.LookupRequest o) {
455 buildCounterLookupRequest++; 490 buildCounterLookupRequest++;
456 if (buildCounterLookupRequest < 3) { 491 if (buildCounterLookupRequest < 3) {
457 checkUnnamed1837(o.keys); 492 checkUnnamed1559(o.keys);
458 checkReadOptions(o.readOptions); 493 checkReadOptions(o.readOptions);
459 } 494 }
460 buildCounterLookupRequest--; 495 buildCounterLookupRequest--;
461 } 496 }
462 497
463 buildUnnamed1838() { 498 buildUnnamed1560() {
464 var o = new core.List<api.Key>(); 499 var o = new core.List<api.Key>();
465 o.add(buildKey()); 500 o.add(buildKey());
466 o.add(buildKey()); 501 o.add(buildKey());
467 return o; 502 return o;
468 } 503 }
469 504
470 checkUnnamed1838(core.List<api.Key> o) { 505 checkUnnamed1560(core.List<api.Key> o) {
471 unittest.expect(o, unittest.hasLength(2)); 506 unittest.expect(o, unittest.hasLength(2));
472 checkKey(o[0]); 507 checkKey(o[0]);
473 checkKey(o[1]); 508 checkKey(o[1]);
474 } 509 }
475 510
476 buildUnnamed1839() { 511 buildUnnamed1561() {
477 var o = new core.List<api.EntityResult>(); 512 var o = new core.List<api.EntityResult>();
478 o.add(buildEntityResult()); 513 o.add(buildEntityResult());
479 o.add(buildEntityResult()); 514 o.add(buildEntityResult());
480 return o; 515 return o;
481 } 516 }
482 517
483 checkUnnamed1839(core.List<api.EntityResult> o) { 518 checkUnnamed1561(core.List<api.EntityResult> o) {
484 unittest.expect(o, unittest.hasLength(2)); 519 unittest.expect(o, unittest.hasLength(2));
485 checkEntityResult(o[0]); 520 checkEntityResult(o[0]);
486 checkEntityResult(o[1]); 521 checkEntityResult(o[1]);
487 } 522 }
488 523
489 buildUnnamed1840() { 524 buildUnnamed1562() {
490 var o = new core.List<api.EntityResult>(); 525 var o = new core.List<api.EntityResult>();
491 o.add(buildEntityResult()); 526 o.add(buildEntityResult());
492 o.add(buildEntityResult()); 527 o.add(buildEntityResult());
493 return o; 528 return o;
494 } 529 }
495 530
496 checkUnnamed1840(core.List<api.EntityResult> o) { 531 checkUnnamed1562(core.List<api.EntityResult> o) {
497 unittest.expect(o, unittest.hasLength(2)); 532 unittest.expect(o, unittest.hasLength(2));
498 checkEntityResult(o[0]); 533 checkEntityResult(o[0]);
499 checkEntityResult(o[1]); 534 checkEntityResult(o[1]);
500 } 535 }
501 536
502 core.int buildCounterLookupResponse = 0; 537 core.int buildCounterLookupResponse = 0;
503 buildLookupResponse() { 538 buildLookupResponse() {
504 var o = new api.LookupResponse(); 539 var o = new api.LookupResponse();
505 buildCounterLookupResponse++; 540 buildCounterLookupResponse++;
506 if (buildCounterLookupResponse < 3) { 541 if (buildCounterLookupResponse < 3) {
507 o.deferred = buildUnnamed1838(); 542 o.deferred = buildUnnamed1560();
508 o.found = buildUnnamed1839(); 543 o.found = buildUnnamed1561();
509 o.header = buildResponseHeader(); 544 o.header = buildResponseHeader();
510 o.missing = buildUnnamed1840(); 545 o.missing = buildUnnamed1562();
511 } 546 }
512 buildCounterLookupResponse--; 547 buildCounterLookupResponse--;
513 return o; 548 return o;
514 } 549 }
515 550
516 checkLookupResponse(api.LookupResponse o) { 551 checkLookupResponse(api.LookupResponse o) {
517 buildCounterLookupResponse++; 552 buildCounterLookupResponse++;
518 if (buildCounterLookupResponse < 3) { 553 if (buildCounterLookupResponse < 3) {
519 checkUnnamed1838(o.deferred); 554 checkUnnamed1560(o.deferred);
520 checkUnnamed1839(o.found); 555 checkUnnamed1561(o.found);
521 checkResponseHeader(o.header); 556 checkResponseHeader(o.header);
522 checkUnnamed1840(o.missing); 557 checkUnnamed1562(o.missing);
523 } 558 }
524 buildCounterLookupResponse--; 559 buildCounterLookupResponse--;
525 } 560 }
526 561
527 buildUnnamed1841() { 562 buildUnnamed1563() {
528 var o = new core.List<api.Key>(); 563 var o = new core.List<api.Key>();
529 o.add(buildKey()); 564 o.add(buildKey());
530 o.add(buildKey()); 565 o.add(buildKey());
531 return o; 566 return o;
532 } 567 }
533 568
534 checkUnnamed1841(core.List<api.Key> o) { 569 checkUnnamed1563(core.List<api.Key> o) {
535 unittest.expect(o, unittest.hasLength(2)); 570 unittest.expect(o, unittest.hasLength(2));
536 checkKey(o[0]); 571 checkKey(o[0]);
537 checkKey(o[1]); 572 checkKey(o[1]);
538 } 573 }
539 574
540 buildUnnamed1842() { 575 buildUnnamed1564() {
541 var o = new core.List<api.Entity>(); 576 var o = new core.List<api.Entity>();
542 o.add(buildEntity()); 577 o.add(buildEntity());
543 o.add(buildEntity()); 578 o.add(buildEntity());
544 return o; 579 return o;
545 } 580 }
546 581
547 checkUnnamed1842(core.List<api.Entity> o) { 582 checkUnnamed1564(core.List<api.Entity> o) {
548 unittest.expect(o, unittest.hasLength(2)); 583 unittest.expect(o, unittest.hasLength(2));
549 checkEntity(o[0]); 584 checkEntity(o[0]);
550 checkEntity(o[1]); 585 checkEntity(o[1]);
551 } 586 }
552 587
553 buildUnnamed1843() { 588 buildUnnamed1565() {
554 var o = new core.List<api.Entity>(); 589 var o = new core.List<api.Entity>();
555 o.add(buildEntity()); 590 o.add(buildEntity());
556 o.add(buildEntity()); 591 o.add(buildEntity());
557 return o; 592 return o;
558 } 593 }
559 594
560 checkUnnamed1843(core.List<api.Entity> o) { 595 checkUnnamed1565(core.List<api.Entity> o) {
561 unittest.expect(o, unittest.hasLength(2)); 596 unittest.expect(o, unittest.hasLength(2));
562 checkEntity(o[0]); 597 checkEntity(o[0]);
563 checkEntity(o[1]); 598 checkEntity(o[1]);
564 } 599 }
565 600
566 buildUnnamed1844() { 601 buildUnnamed1566() {
567 var o = new core.List<api.Entity>(); 602 var o = new core.List<api.Entity>();
568 o.add(buildEntity()); 603 o.add(buildEntity());
569 o.add(buildEntity()); 604 o.add(buildEntity());
570 return o; 605 return o;
571 } 606 }
572 607
573 checkUnnamed1844(core.List<api.Entity> o) { 608 checkUnnamed1566(core.List<api.Entity> o) {
574 unittest.expect(o, unittest.hasLength(2)); 609 unittest.expect(o, unittest.hasLength(2));
575 checkEntity(o[0]); 610 checkEntity(o[0]);
576 checkEntity(o[1]); 611 checkEntity(o[1]);
577 } 612 }
578 613
579 buildUnnamed1845() { 614 buildUnnamed1567() {
580 var o = new core.List<api.Entity>(); 615 var o = new core.List<api.Entity>();
581 o.add(buildEntity()); 616 o.add(buildEntity());
582 o.add(buildEntity()); 617 o.add(buildEntity());
583 return o; 618 return o;
584 } 619 }
585 620
586 checkUnnamed1845(core.List<api.Entity> o) { 621 checkUnnamed1567(core.List<api.Entity> o) {
587 unittest.expect(o, unittest.hasLength(2)); 622 unittest.expect(o, unittest.hasLength(2));
588 checkEntity(o[0]); 623 checkEntity(o[0]);
589 checkEntity(o[1]); 624 checkEntity(o[1]);
590 } 625 }
591 626
592 core.int buildCounterMutation = 0; 627 core.int buildCounterMutation = 0;
593 buildMutation() { 628 buildMutation() {
594 var o = new api.Mutation(); 629 var o = new api.Mutation();
595 buildCounterMutation++; 630 buildCounterMutation++;
596 if (buildCounterMutation < 3) { 631 if (buildCounterMutation < 3) {
597 o.delete = buildUnnamed1841(); 632 o.delete = buildUnnamed1563();
598 o.force = true; 633 o.force = true;
599 o.insert = buildUnnamed1842(); 634 o.insert = buildUnnamed1564();
600 o.insertAutoId = buildUnnamed1843(); 635 o.insertAutoId = buildUnnamed1565();
601 o.update = buildUnnamed1844(); 636 o.update = buildUnnamed1566();
602 o.upsert = buildUnnamed1845(); 637 o.upsert = buildUnnamed1567();
603 } 638 }
604 buildCounterMutation--; 639 buildCounterMutation--;
605 return o; 640 return o;
606 } 641 }
607 642
608 checkMutation(api.Mutation o) { 643 checkMutation(api.Mutation o) {
609 buildCounterMutation++; 644 buildCounterMutation++;
610 if (buildCounterMutation < 3) { 645 if (buildCounterMutation < 3) {
611 checkUnnamed1841(o.delete); 646 checkUnnamed1563(o.delete);
612 unittest.expect(o.force, unittest.isTrue); 647 unittest.expect(o.force, unittest.isTrue);
613 checkUnnamed1842(o.insert); 648 checkUnnamed1564(o.insert);
614 checkUnnamed1843(o.insertAutoId); 649 checkUnnamed1565(o.insertAutoId);
615 checkUnnamed1844(o.update); 650 checkUnnamed1566(o.update);
616 checkUnnamed1845(o.upsert); 651 checkUnnamed1567(o.upsert);
617 } 652 }
618 buildCounterMutation--; 653 buildCounterMutation--;
619 } 654 }
620 655
621 buildUnnamed1846() { 656 buildUnnamed1568() {
622 var o = new core.List<api.Key>(); 657 var o = new core.List<api.Key>();
623 o.add(buildKey()); 658 o.add(buildKey());
624 o.add(buildKey()); 659 o.add(buildKey());
625 return o; 660 return o;
626 } 661 }
627 662
628 checkUnnamed1846(core.List<api.Key> o) { 663 checkUnnamed1568(core.List<api.Key> o) {
629 unittest.expect(o, unittest.hasLength(2)); 664 unittest.expect(o, unittest.hasLength(2));
630 checkKey(o[0]); 665 checkKey(o[0]);
631 checkKey(o[1]); 666 checkKey(o[1]);
632 } 667 }
633 668
634 core.int buildCounterMutationResult = 0; 669 core.int buildCounterMutationResult = 0;
635 buildMutationResult() { 670 buildMutationResult() {
636 var o = new api.MutationResult(); 671 var o = new api.MutationResult();
637 buildCounterMutationResult++; 672 buildCounterMutationResult++;
638 if (buildCounterMutationResult < 3) { 673 if (buildCounterMutationResult < 3) {
639 o.indexUpdates = 42; 674 o.indexUpdates = 42;
640 o.insertAutoIdKeys = buildUnnamed1846(); 675 o.insertAutoIdKeys = buildUnnamed1568();
641 } 676 }
642 buildCounterMutationResult--; 677 buildCounterMutationResult--;
643 return o; 678 return o;
644 } 679 }
645 680
646 checkMutationResult(api.MutationResult o) { 681 checkMutationResult(api.MutationResult o) {
647 buildCounterMutationResult++; 682 buildCounterMutationResult++;
648 if (buildCounterMutationResult < 3) { 683 if (buildCounterMutationResult < 3) {
649 unittest.expect(o.indexUpdates, unittest.equals(42)); 684 unittest.expect(o.indexUpdates, unittest.equals(42));
650 checkUnnamed1846(o.insertAutoIdKeys); 685 checkUnnamed1568(o.insertAutoIdKeys);
651 } 686 }
652 buildCounterMutationResult--; 687 buildCounterMutationResult--;
653 } 688 }
654 689
655 core.int buildCounterPartitionId = 0; 690 core.int buildCounterPartitionId = 0;
656 buildPartitionId() { 691 buildPartitionId() {
657 var o = new api.PartitionId(); 692 var o = new api.PartitionId();
658 buildCounterPartitionId++; 693 buildCounterPartitionId++;
659 if (buildCounterPartitionId < 3) { 694 if (buildCounterPartitionId < 3) {
660 o.datasetId = "foo"; 695 o.datasetId = "foo";
661 o.namespace = "foo"; 696 o.namespace = "foo";
662 } 697 }
663 buildCounterPartitionId--; 698 buildCounterPartitionId--;
664 return o; 699 return o;
665 } 700 }
666 701
667 checkPartitionId(api.PartitionId o) { 702 checkPartitionId(api.PartitionId o) {
668 buildCounterPartitionId++; 703 buildCounterPartitionId++;
669 if (buildCounterPartitionId < 3) { 704 if (buildCounterPartitionId < 3) {
670 unittest.expect(o.datasetId, unittest.equals('foo')); 705 unittest.expect(o.datasetId, unittest.equals('foo'));
671 unittest.expect(o.namespace, unittest.equals('foo')); 706 unittest.expect(o.namespace, unittest.equals('foo'));
672 } 707 }
673 buildCounterPartitionId--; 708 buildCounterPartitionId--;
674 } 709 }
675 710
676 buildUnnamed1847() { 711 buildUnnamed1569() {
677 var o = new core.List<api.Value>(); 712 var o = new core.List<api.Value>();
678 o.add(buildValue()); 713 o.add(buildValue());
679 o.add(buildValue()); 714 o.add(buildValue());
680 return o; 715 return o;
681 } 716 }
682 717
683 checkUnnamed1847(core.List<api.Value> o) { 718 checkUnnamed1569(core.List<api.Value> o) {
684 unittest.expect(o, unittest.hasLength(2)); 719 unittest.expect(o, unittest.hasLength(2));
685 checkValue(o[0]); 720 checkValue(o[0]);
686 checkValue(o[1]); 721 checkValue(o[1]);
687 } 722 }
688 723
689 core.int buildCounterProperty = 0; 724 core.int buildCounterProperty = 0;
690 buildProperty() { 725 buildProperty() {
691 var o = new api.Property(); 726 var o = new api.Property();
692 buildCounterProperty++; 727 buildCounterProperty++;
693 if (buildCounterProperty < 3) { 728 if (buildCounterProperty < 3) {
694 o.blobKeyValue = "foo"; 729 o.blobKeyValue = "foo";
695 o.blobValue = "foo"; 730 o.blobValue = "foo";
696 o.booleanValue = true; 731 o.booleanValue = true;
697 o.dateTimeValue = core.DateTime.parse("2002-02-27T14:01:02"); 732 o.dateTimeValue = core.DateTime.parse("2002-02-27T14:01:02");
698 o.doubleValue = 42.0; 733 o.doubleValue = 42.0;
699 o.entityValue = buildEntity(); 734 o.entityValue = buildEntity();
700 o.indexed = true; 735 o.indexed = true;
701 o.integerValue = "foo"; 736 o.integerValue = "foo";
702 o.keyValue = buildKey(); 737 o.keyValue = buildKey();
703 o.listValue = buildUnnamed1847(); 738 o.listValue = buildUnnamed1569();
704 o.meaning = 42; 739 o.meaning = 42;
705 o.stringValue = "foo"; 740 o.stringValue = "foo";
706 } 741 }
707 buildCounterProperty--; 742 buildCounterProperty--;
708 return o; 743 return o;
709 } 744 }
710 745
711 checkProperty(api.Property o) { 746 checkProperty(api.Property o) {
712 buildCounterProperty++; 747 buildCounterProperty++;
713 if (buildCounterProperty < 3) { 748 if (buildCounterProperty < 3) {
714 unittest.expect(o.blobKeyValue, unittest.equals('foo')); 749 unittest.expect(o.blobKeyValue, unittest.equals('foo'));
715 unittest.expect(o.blobValue, unittest.equals('foo')); 750 unittest.expect(o.blobValue, unittest.equals('foo'));
716 unittest.expect(o.booleanValue, unittest.isTrue); 751 unittest.expect(o.booleanValue, unittest.isTrue);
717 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")));
718 unittest.expect(o.doubleValue, unittest.equals(42.0)); 753 unittest.expect(o.doubleValue, unittest.equals(42.0));
719 checkEntity(o.entityValue); 754 checkEntity(o.entityValue);
720 unittest.expect(o.indexed, unittest.isTrue); 755 unittest.expect(o.indexed, unittest.isTrue);
721 unittest.expect(o.integerValue, unittest.equals('foo')); 756 unittest.expect(o.integerValue, unittest.equals('foo'));
722 checkKey(o.keyValue); 757 checkKey(o.keyValue);
723 checkUnnamed1847(o.listValue); 758 checkUnnamed1569(o.listValue);
724 unittest.expect(o.meaning, unittest.equals(42)); 759 unittest.expect(o.meaning, unittest.equals(42));
725 unittest.expect(o.stringValue, unittest.equals('foo')); 760 unittest.expect(o.stringValue, unittest.equals('foo'));
726 } 761 }
727 buildCounterProperty--; 762 buildCounterProperty--;
728 } 763 }
729 764
730 core.int buildCounterPropertyExpression = 0; 765 core.int buildCounterPropertyExpression = 0;
731 buildPropertyExpression() { 766 buildPropertyExpression() {
732 var o = new api.PropertyExpression(); 767 var o = new api.PropertyExpression();
733 buildCounterPropertyExpression++; 768 buildCounterPropertyExpression++;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 } 839 }
805 840
806 checkPropertyReference(api.PropertyReference o) { 841 checkPropertyReference(api.PropertyReference o) {
807 buildCounterPropertyReference++; 842 buildCounterPropertyReference++;
808 if (buildCounterPropertyReference < 3) { 843 if (buildCounterPropertyReference < 3) {
809 unittest.expect(o.name, unittest.equals('foo')); 844 unittest.expect(o.name, unittest.equals('foo'));
810 } 845 }
811 buildCounterPropertyReference--; 846 buildCounterPropertyReference--;
812 } 847 }
813 848
814 buildUnnamed1848() { 849 buildUnnamed1570() {
815 var o = new core.List<api.PropertyReference>(); 850 var o = new core.List<api.PropertyReference>();
816 o.add(buildPropertyReference()); 851 o.add(buildPropertyReference());
817 o.add(buildPropertyReference()); 852 o.add(buildPropertyReference());
818 return o; 853 return o;
819 } 854 }
820 855
821 checkUnnamed1848(core.List<api.PropertyReference> o) { 856 checkUnnamed1570(core.List<api.PropertyReference> o) {
822 unittest.expect(o, unittest.hasLength(2)); 857 unittest.expect(o, unittest.hasLength(2));
823 checkPropertyReference(o[0]); 858 checkPropertyReference(o[0]);
824 checkPropertyReference(o[1]); 859 checkPropertyReference(o[1]);
825 } 860 }
826 861
827 buildUnnamed1849() { 862 buildUnnamed1571() {
828 var o = new core.List<api.KindExpression>(); 863 var o = new core.List<api.KindExpression>();
829 o.add(buildKindExpression()); 864 o.add(buildKindExpression());
830 o.add(buildKindExpression()); 865 o.add(buildKindExpression());
831 return o; 866 return o;
832 } 867 }
833 868
834 checkUnnamed1849(core.List<api.KindExpression> o) { 869 checkUnnamed1571(core.List<api.KindExpression> o) {
835 unittest.expect(o, unittest.hasLength(2)); 870 unittest.expect(o, unittest.hasLength(2));
836 checkKindExpression(o[0]); 871 checkKindExpression(o[0]);
837 checkKindExpression(o[1]); 872 checkKindExpression(o[1]);
838 } 873 }
839 874
840 buildUnnamed1850() { 875 buildUnnamed1572() {
841 var o = new core.List<api.PropertyOrder>(); 876 var o = new core.List<api.PropertyOrder>();
842 o.add(buildPropertyOrder()); 877 o.add(buildPropertyOrder());
843 o.add(buildPropertyOrder()); 878 o.add(buildPropertyOrder());
844 return o; 879 return o;
845 } 880 }
846 881
847 checkUnnamed1850(core.List<api.PropertyOrder> o) { 882 checkUnnamed1572(core.List<api.PropertyOrder> o) {
848 unittest.expect(o, unittest.hasLength(2)); 883 unittest.expect(o, unittest.hasLength(2));
849 checkPropertyOrder(o[0]); 884 checkPropertyOrder(o[0]);
850 checkPropertyOrder(o[1]); 885 checkPropertyOrder(o[1]);
851 } 886 }
852 887
853 buildUnnamed1851() { 888 buildUnnamed1573() {
854 var o = new core.List<api.PropertyExpression>(); 889 var o = new core.List<api.PropertyExpression>();
855 o.add(buildPropertyExpression()); 890 o.add(buildPropertyExpression());
856 o.add(buildPropertyExpression()); 891 o.add(buildPropertyExpression());
857 return o; 892 return o;
858 } 893 }
859 894
860 checkUnnamed1851(core.List<api.PropertyExpression> o) { 895 checkUnnamed1573(core.List<api.PropertyExpression> o) {
861 unittest.expect(o, unittest.hasLength(2)); 896 unittest.expect(o, unittest.hasLength(2));
862 checkPropertyExpression(o[0]); 897 checkPropertyExpression(o[0]);
863 checkPropertyExpression(o[1]); 898 checkPropertyExpression(o[1]);
864 } 899 }
865 900
866 core.int buildCounterQuery = 0; 901 core.int buildCounterQuery = 0;
867 buildQuery() { 902 buildQuery() {
868 var o = new api.Query(); 903 var o = new api.Query();
869 buildCounterQuery++; 904 buildCounterQuery++;
870 if (buildCounterQuery < 3) { 905 if (buildCounterQuery < 3) {
871 o.endCursor = "foo"; 906 o.endCursor = "foo";
872 o.filter = buildFilter(); 907 o.filter = buildFilter();
873 o.groupBy = buildUnnamed1848(); 908 o.groupBy = buildUnnamed1570();
874 o.kinds = buildUnnamed1849(); 909 o.kinds = buildUnnamed1571();
875 o.limit = 42; 910 o.limit = 42;
876 o.offset = 42; 911 o.offset = 42;
877 o.order = buildUnnamed1850(); 912 o.order = buildUnnamed1572();
878 o.projection = buildUnnamed1851(); 913 o.projection = buildUnnamed1573();
879 o.startCursor = "foo"; 914 o.startCursor = "foo";
880 } 915 }
881 buildCounterQuery--; 916 buildCounterQuery--;
882 return o; 917 return o;
883 } 918 }
884 919
885 checkQuery(api.Query o) { 920 checkQuery(api.Query o) {
886 buildCounterQuery++; 921 buildCounterQuery++;
887 if (buildCounterQuery < 3) { 922 if (buildCounterQuery < 3) {
888 unittest.expect(o.endCursor, unittest.equals('foo')); 923 unittest.expect(o.endCursor, unittest.equals('foo'));
889 checkFilter(o.filter); 924 checkFilter(o.filter);
890 checkUnnamed1848(o.groupBy); 925 checkUnnamed1570(o.groupBy);
891 checkUnnamed1849(o.kinds); 926 checkUnnamed1571(o.kinds);
892 unittest.expect(o.limit, unittest.equals(42)); 927 unittest.expect(o.limit, unittest.equals(42));
893 unittest.expect(o.offset, unittest.equals(42)); 928 unittest.expect(o.offset, unittest.equals(42));
894 checkUnnamed1850(o.order); 929 checkUnnamed1572(o.order);
895 checkUnnamed1851(o.projection); 930 checkUnnamed1573(o.projection);
896 unittest.expect(o.startCursor, unittest.equals('foo')); 931 unittest.expect(o.startCursor, unittest.equals('foo'));
897 } 932 }
898 buildCounterQuery--; 933 buildCounterQuery--;
899 } 934 }
900 935
901 buildUnnamed1852() { 936 buildUnnamed1574() {
902 var o = new core.List<api.EntityResult>(); 937 var o = new core.List<api.EntityResult>();
903 o.add(buildEntityResult()); 938 o.add(buildEntityResult());
904 o.add(buildEntityResult()); 939 o.add(buildEntityResult());
905 return o; 940 return o;
906 } 941 }
907 942
908 checkUnnamed1852(core.List<api.EntityResult> o) { 943 checkUnnamed1574(core.List<api.EntityResult> o) {
909 unittest.expect(o, unittest.hasLength(2)); 944 unittest.expect(o, unittest.hasLength(2));
910 checkEntityResult(o[0]); 945 checkEntityResult(o[0]);
911 checkEntityResult(o[1]); 946 checkEntityResult(o[1]);
912 } 947 }
913 948
914 core.int buildCounterQueryResultBatch = 0; 949 core.int buildCounterQueryResultBatch = 0;
915 buildQueryResultBatch() { 950 buildQueryResultBatch() {
916 var o = new api.QueryResultBatch(); 951 var o = new api.QueryResultBatch();
917 buildCounterQueryResultBatch++; 952 buildCounterQueryResultBatch++;
918 if (buildCounterQueryResultBatch < 3) { 953 if (buildCounterQueryResultBatch < 3) {
919 o.endCursor = "foo"; 954 o.endCursor = "foo";
920 o.entityResultType = "foo"; 955 o.entityResultType = "foo";
921 o.entityResults = buildUnnamed1852(); 956 o.entityResults = buildUnnamed1574();
922 o.moreResults = "foo"; 957 o.moreResults = "foo";
923 o.skippedResults = 42; 958 o.skippedResults = 42;
924 } 959 }
925 buildCounterQueryResultBatch--; 960 buildCounterQueryResultBatch--;
926 return o; 961 return o;
927 } 962 }
928 963
929 checkQueryResultBatch(api.QueryResultBatch o) { 964 checkQueryResultBatch(api.QueryResultBatch o) {
930 buildCounterQueryResultBatch++; 965 buildCounterQueryResultBatch++;
931 if (buildCounterQueryResultBatch < 3) { 966 if (buildCounterQueryResultBatch < 3) {
932 unittest.expect(o.endCursor, unittest.equals('foo')); 967 unittest.expect(o.endCursor, unittest.equals('foo'));
933 unittest.expect(o.entityResultType, unittest.equals('foo')); 968 unittest.expect(o.entityResultType, unittest.equals('foo'));
934 checkUnnamed1852(o.entityResults); 969 checkUnnamed1574(o.entityResults);
935 unittest.expect(o.moreResults, unittest.equals('foo')); 970 unittest.expect(o.moreResults, unittest.equals('foo'));
936 unittest.expect(o.skippedResults, unittest.equals(42)); 971 unittest.expect(o.skippedResults, unittest.equals(42));
937 } 972 }
938 buildCounterQueryResultBatch--; 973 buildCounterQueryResultBatch--;
939 } 974 }
940 975
941 core.int buildCounterReadOptions = 0; 976 core.int buildCounterReadOptions = 0;
942 buildReadOptions() { 977 buildReadOptions() {
943 var o = new api.ReadOptions(); 978 var o = new api.ReadOptions();
944 buildCounterReadOptions++; 979 buildCounterReadOptions++;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
1055 1090
1056 checkRunQueryResponse(api.RunQueryResponse o) { 1091 checkRunQueryResponse(api.RunQueryResponse o) {
1057 buildCounterRunQueryResponse++; 1092 buildCounterRunQueryResponse++;
1058 if (buildCounterRunQueryResponse < 3) { 1093 if (buildCounterRunQueryResponse < 3) {
1059 checkQueryResultBatch(o.batch); 1094 checkQueryResultBatch(o.batch);
1060 checkResponseHeader(o.header); 1095 checkResponseHeader(o.header);
1061 } 1096 }
1062 buildCounterRunQueryResponse--; 1097 buildCounterRunQueryResponse--;
1063 } 1098 }
1064 1099
1065 buildUnnamed1853() { 1100 buildUnnamed1575() {
1066 var o = new core.List<api.Value>(); 1101 var o = new core.List<api.Value>();
1067 o.add(buildValue()); 1102 o.add(buildValue());
1068 o.add(buildValue()); 1103 o.add(buildValue());
1069 return o; 1104 return o;
1070 } 1105 }
1071 1106
1072 checkUnnamed1853(core.List<api.Value> o) { 1107 checkUnnamed1575(core.List<api.Value> o) {
1073 unittest.expect(o, unittest.hasLength(2)); 1108 unittest.expect(o, unittest.hasLength(2));
1074 checkValue(o[0]); 1109 checkValue(o[0]);
1075 checkValue(o[1]); 1110 checkValue(o[1]);
1076 } 1111 }
1077 1112
1078 core.int buildCounterValue = 0; 1113 core.int buildCounterValue = 0;
1079 buildValue() { 1114 buildValue() {
1080 var o = new api.Value(); 1115 var o = new api.Value();
1081 buildCounterValue++; 1116 buildCounterValue++;
1082 if (buildCounterValue < 3) { 1117 if (buildCounterValue < 3) {
1083 o.blobKeyValue = "foo"; 1118 o.blobKeyValue = "foo";
1084 o.blobValue = "foo"; 1119 o.blobValue = "foo";
1085 o.booleanValue = true; 1120 o.booleanValue = true;
1086 o.dateTimeValue = core.DateTime.parse("2002-02-27T14:01:02"); 1121 o.dateTimeValue = core.DateTime.parse("2002-02-27T14:01:02");
1087 o.doubleValue = 42.0; 1122 o.doubleValue = 42.0;
1088 o.entityValue = buildEntity(); 1123 o.entityValue = buildEntity();
1089 o.indexed = true; 1124 o.indexed = true;
1090 o.integerValue = "foo"; 1125 o.integerValue = "foo";
1091 o.keyValue = buildKey(); 1126 o.keyValue = buildKey();
1092 o.listValue = buildUnnamed1853(); 1127 o.listValue = buildUnnamed1575();
1093 o.meaning = 42; 1128 o.meaning = 42;
1094 o.stringValue = "foo"; 1129 o.stringValue = "foo";
1095 } 1130 }
1096 buildCounterValue--; 1131 buildCounterValue--;
1097 return o; 1132 return o;
1098 } 1133 }
1099 1134
1100 checkValue(api.Value o) { 1135 checkValue(api.Value o) {
1101 buildCounterValue++; 1136 buildCounterValue++;
1102 if (buildCounterValue < 3) { 1137 if (buildCounterValue < 3) {
1103 unittest.expect(o.blobKeyValue, unittest.equals('foo')); 1138 unittest.expect(o.blobKeyValue, unittest.equals('foo'));
1104 unittest.expect(o.blobValue, unittest.equals('foo')); 1139 unittest.expect(o.blobValue, unittest.equals('foo'));
1105 unittest.expect(o.booleanValue, unittest.isTrue); 1140 unittest.expect(o.booleanValue, unittest.isTrue);
1106 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")));
1107 unittest.expect(o.doubleValue, unittest.equals(42.0)); 1142 unittest.expect(o.doubleValue, unittest.equals(42.0));
1108 checkEntity(o.entityValue); 1143 checkEntity(o.entityValue);
1109 unittest.expect(o.indexed, unittest.isTrue); 1144 unittest.expect(o.indexed, unittest.isTrue);
1110 unittest.expect(o.integerValue, unittest.equals('foo')); 1145 unittest.expect(o.integerValue, unittest.equals('foo'));
1111 checkKey(o.keyValue); 1146 checkKey(o.keyValue);
1112 checkUnnamed1853(o.listValue); 1147 checkUnnamed1575(o.listValue);
1113 unittest.expect(o.meaning, unittest.equals(42)); 1148 unittest.expect(o.meaning, unittest.equals(42));
1114 unittest.expect(o.stringValue, unittest.equals('foo')); 1149 unittest.expect(o.stringValue, unittest.equals('foo'));
1115 } 1150 }
1116 buildCounterValue--; 1151 buildCounterValue--;
1117 } 1152 }
1118 1153
1119 1154
1120 main() { 1155 main() {
1121 unittest.group("obj-schema-AllocateIdsRequest", () { 1156 unittest.group("obj-schema-AllocateIdsRequest", () {
1122 unittest.test("to-json--from-json", () { 1157 unittest.test("to-json--from-json", () {
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
1420 var o = buildValue(); 1455 var o = buildValue();
1421 var od = new api.Value.fromJson(o.toJson()); 1456 var od = new api.Value.fromJson(o.toJson());
1422 checkValue(od); 1457 checkValue(od);
1423 }); 1458 });
1424 }); 1459 });
1425 1460
1426 1461
1427 unittest.group("resource-DatasetsResourceApi", () { 1462 unittest.group("resource-DatasetsResourceApi", () {
1428 unittest.test("method--allocateIds", () { 1463 unittest.test("method--allocateIds", () {
1429 1464
1430 var mock = new common_test.HttpServerMock(); 1465 var mock = new HttpServerMock();
1431 api.DatasetsResourceApi res = new api.DatastoreApi(mock).datasets; 1466 api.DatasetsResourceApi res = new api.DatastoreApi(mock).datasets;
1432 var arg_request = buildAllocateIdsRequest(); 1467 var arg_request = buildAllocateIdsRequest();
1433 var arg_datasetId = "foo"; 1468 var arg_datasetId = "foo";
1434 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1469 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1435 var obj = new api.AllocateIdsRequest.fromJson(json); 1470 var obj = new api.AllocateIdsRequest.fromJson(json);
1436 checkAllocateIdsRequest(obj); 1471 checkAllocateIdsRequest(obj);
1437 1472
1438 var path = (req.url).path; 1473 var path = (req.url).path;
1439 var pathOffset = 0; 1474 var pathOffset = 0;
1440 var index; 1475 var index;
(...skipping 16 matching lines...) Expand all
1457 var keyvalue = part.split("="); 1492 var keyvalue = part.split("=");
1458 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1493 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1459 } 1494 }
1460 } 1495 }
1461 1496
1462 1497
1463 var h = { 1498 var h = {
1464 "content-type" : "application/json; charset=utf-8", 1499 "content-type" : "application/json; charset=utf-8",
1465 }; 1500 };
1466 var resp = convert.JSON.encode(buildAllocateIdsResponse()); 1501 var resp = convert.JSON.encode(buildAllocateIdsResponse());
1467 return new async.Future.value(common_test.stringResponse(200, h, resp)); 1502 return new async.Future.value(stringResponse(200, h, resp));
1468 }), true); 1503 }), true);
1469 res.allocateIds(arg_request, arg_datasetId).then(unittest.expectAsync(((ap i.AllocateIdsResponse response) { 1504 res.allocateIds(arg_request, arg_datasetId).then(unittest.expectAsync(((ap i.AllocateIdsResponse response) {
1470 checkAllocateIdsResponse(response); 1505 checkAllocateIdsResponse(response);
1471 }))); 1506 })));
1472 }); 1507 });
1473 1508
1474 unittest.test("method--beginTransaction", () { 1509 unittest.test("method--beginTransaction", () {
1475 1510
1476 var mock = new common_test.HttpServerMock(); 1511 var mock = new HttpServerMock();
1477 api.DatasetsResourceApi res = new api.DatastoreApi(mock).datasets; 1512 api.DatasetsResourceApi res = new api.DatastoreApi(mock).datasets;
1478 var arg_request = buildBeginTransactionRequest(); 1513 var arg_request = buildBeginTransactionRequest();
1479 var arg_datasetId = "foo"; 1514 var arg_datasetId = "foo";
1480 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1515 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1481 var obj = new api.BeginTransactionRequest.fromJson(json); 1516 var obj = new api.BeginTransactionRequest.fromJson(json);
1482 checkBeginTransactionRequest(obj); 1517 checkBeginTransactionRequest(obj);
1483 1518
1484 var path = (req.url).path; 1519 var path = (req.url).path;
1485 var pathOffset = 0; 1520 var pathOffset = 0;
1486 var index; 1521 var index;
(...skipping 16 matching lines...) Expand all
1503 var keyvalue = part.split("="); 1538 var keyvalue = part.split("=");
1504 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1539 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1505 } 1540 }
1506 } 1541 }
1507 1542
1508 1543
1509 var h = { 1544 var h = {
1510 "content-type" : "application/json; charset=utf-8", 1545 "content-type" : "application/json; charset=utf-8",
1511 }; 1546 };
1512 var resp = convert.JSON.encode(buildBeginTransactionResponse()); 1547 var resp = convert.JSON.encode(buildBeginTransactionResponse());
1513 return new async.Future.value(common_test.stringResponse(200, h, resp)); 1548 return new async.Future.value(stringResponse(200, h, resp));
1514 }), true); 1549 }), true);
1515 res.beginTransaction(arg_request, arg_datasetId).then(unittest.expectAsync (((api.BeginTransactionResponse response) { 1550 res.beginTransaction(arg_request, arg_datasetId).then(unittest.expectAsync (((api.BeginTransactionResponse response) {
1516 checkBeginTransactionResponse(response); 1551 checkBeginTransactionResponse(response);
1517 }))); 1552 })));
1518 }); 1553 });
1519 1554
1520 unittest.test("method--commit", () { 1555 unittest.test("method--commit", () {
1521 1556
1522 var mock = new common_test.HttpServerMock(); 1557 var mock = new HttpServerMock();
1523 api.DatasetsResourceApi res = new api.DatastoreApi(mock).datasets; 1558 api.DatasetsResourceApi res = new api.DatastoreApi(mock).datasets;
1524 var arg_request = buildCommitRequest(); 1559 var arg_request = buildCommitRequest();
1525 var arg_datasetId = "foo"; 1560 var arg_datasetId = "foo";
1526 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1561 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1527 var obj = new api.CommitRequest.fromJson(json); 1562 var obj = new api.CommitRequest.fromJson(json);
1528 checkCommitRequest(obj); 1563 checkCommitRequest(obj);
1529 1564
1530 var path = (req.url).path; 1565 var path = (req.url).path;
1531 var pathOffset = 0; 1566 var pathOffset = 0;
1532 var index; 1567 var index;
(...skipping 16 matching lines...) Expand all
1549 var keyvalue = part.split("="); 1584 var keyvalue = part.split("=");
1550 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1585 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1551 } 1586 }
1552 } 1587 }
1553 1588
1554 1589
1555 var h = { 1590 var h = {
1556 "content-type" : "application/json; charset=utf-8", 1591 "content-type" : "application/json; charset=utf-8",
1557 }; 1592 };
1558 var resp = convert.JSON.encode(buildCommitResponse()); 1593 var resp = convert.JSON.encode(buildCommitResponse());
1559 return new async.Future.value(common_test.stringResponse(200, h, resp)); 1594 return new async.Future.value(stringResponse(200, h, resp));
1560 }), true); 1595 }), true);
1561 res.commit(arg_request, arg_datasetId).then(unittest.expectAsync(((api.Com mitResponse response) { 1596 res.commit(arg_request, arg_datasetId).then(unittest.expectAsync(((api.Com mitResponse response) {
1562 checkCommitResponse(response); 1597 checkCommitResponse(response);
1563 }))); 1598 })));
1564 }); 1599 });
1565 1600
1566 unittest.test("method--lookup", () { 1601 unittest.test("method--lookup", () {
1567 1602
1568 var mock = new common_test.HttpServerMock(); 1603 var mock = new HttpServerMock();
1569 api.DatasetsResourceApi res = new api.DatastoreApi(mock).datasets; 1604 api.DatasetsResourceApi res = new api.DatastoreApi(mock).datasets;
1570 var arg_request = buildLookupRequest(); 1605 var arg_request = buildLookupRequest();
1571 var arg_datasetId = "foo"; 1606 var arg_datasetId = "foo";
1572 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1607 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1573 var obj = new api.LookupRequest.fromJson(json); 1608 var obj = new api.LookupRequest.fromJson(json);
1574 checkLookupRequest(obj); 1609 checkLookupRequest(obj);
1575 1610
1576 var path = (req.url).path; 1611 var path = (req.url).path;
1577 var pathOffset = 0; 1612 var pathOffset = 0;
1578 var index; 1613 var index;
(...skipping 16 matching lines...) Expand all
1595 var keyvalue = part.split("="); 1630 var keyvalue = part.split("=");
1596 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1631 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1597 } 1632 }
1598 } 1633 }
1599 1634
1600 1635
1601 var h = { 1636 var h = {
1602 "content-type" : "application/json; charset=utf-8", 1637 "content-type" : "application/json; charset=utf-8",
1603 }; 1638 };
1604 var resp = convert.JSON.encode(buildLookupResponse()); 1639 var resp = convert.JSON.encode(buildLookupResponse());
1605 return new async.Future.value(common_test.stringResponse(200, h, resp)); 1640 return new async.Future.value(stringResponse(200, h, resp));
1606 }), true); 1641 }), true);
1607 res.lookup(arg_request, arg_datasetId).then(unittest.expectAsync(((api.Loo kupResponse response) { 1642 res.lookup(arg_request, arg_datasetId).then(unittest.expectAsync(((api.Loo kupResponse response) {
1608 checkLookupResponse(response); 1643 checkLookupResponse(response);
1609 }))); 1644 })));
1610 }); 1645 });
1611 1646
1612 unittest.test("method--rollback", () { 1647 unittest.test("method--rollback", () {
1613 1648
1614 var mock = new common_test.HttpServerMock(); 1649 var mock = new HttpServerMock();
1615 api.DatasetsResourceApi res = new api.DatastoreApi(mock).datasets; 1650 api.DatasetsResourceApi res = new api.DatastoreApi(mock).datasets;
1616 var arg_request = buildRollbackRequest(); 1651 var arg_request = buildRollbackRequest();
1617 var arg_datasetId = "foo"; 1652 var arg_datasetId = "foo";
1618 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1653 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1619 var obj = new api.RollbackRequest.fromJson(json); 1654 var obj = new api.RollbackRequest.fromJson(json);
1620 checkRollbackRequest(obj); 1655 checkRollbackRequest(obj);
1621 1656
1622 var path = (req.url).path; 1657 var path = (req.url).path;
1623 var pathOffset = 0; 1658 var pathOffset = 0;
1624 var index; 1659 var index;
(...skipping 16 matching lines...) Expand all
1641 var keyvalue = part.split("="); 1676 var keyvalue = part.split("=");
1642 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1677 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1643 } 1678 }
1644 } 1679 }
1645 1680
1646 1681
1647 var h = { 1682 var h = {
1648 "content-type" : "application/json; charset=utf-8", 1683 "content-type" : "application/json; charset=utf-8",
1649 }; 1684 };
1650 var resp = convert.JSON.encode(buildRollbackResponse()); 1685 var resp = convert.JSON.encode(buildRollbackResponse());
1651 return new async.Future.value(common_test.stringResponse(200, h, resp)); 1686 return new async.Future.value(stringResponse(200, h, resp));
1652 }), true); 1687 }), true);
1653 res.rollback(arg_request, arg_datasetId).then(unittest.expectAsync(((api.R ollbackResponse response) { 1688 res.rollback(arg_request, arg_datasetId).then(unittest.expectAsync(((api.R ollbackResponse response) {
1654 checkRollbackResponse(response); 1689 checkRollbackResponse(response);
1655 }))); 1690 })));
1656 }); 1691 });
1657 1692
1658 unittest.test("method--runQuery", () { 1693 unittest.test("method--runQuery", () {
1659 1694
1660 var mock = new common_test.HttpServerMock(); 1695 var mock = new HttpServerMock();
1661 api.DatasetsResourceApi res = new api.DatastoreApi(mock).datasets; 1696 api.DatasetsResourceApi res = new api.DatastoreApi(mock).datasets;
1662 var arg_request = buildRunQueryRequest(); 1697 var arg_request = buildRunQueryRequest();
1663 var arg_datasetId = "foo"; 1698 var arg_datasetId = "foo";
1664 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1699 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1665 var obj = new api.RunQueryRequest.fromJson(json); 1700 var obj = new api.RunQueryRequest.fromJson(json);
1666 checkRunQueryRequest(obj); 1701 checkRunQueryRequest(obj);
1667 1702
1668 var path = (req.url).path; 1703 var path = (req.url).path;
1669 var pathOffset = 0; 1704 var pathOffset = 0;
1670 var index; 1705 var index;
(...skipping 16 matching lines...) Expand all
1687 var keyvalue = part.split("="); 1722 var keyvalue = part.split("=");
1688 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1723 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1689 } 1724 }
1690 } 1725 }
1691 1726
1692 1727
1693 var h = { 1728 var h = {
1694 "content-type" : "application/json; charset=utf-8", 1729 "content-type" : "application/json; charset=utf-8",
1695 }; 1730 };
1696 var resp = convert.JSON.encode(buildRunQueryResponse()); 1731 var resp = convert.JSON.encode(buildRunQueryResponse());
1697 return new async.Future.value(common_test.stringResponse(200, h, resp)); 1732 return new async.Future.value(stringResponse(200, h, resp));
1698 }), true); 1733 }), true);
1699 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) {
1700 checkRunQueryResponse(response); 1735 checkRunQueryResponse(response);
1701 }))); 1736 })));
1702 }); 1737 });
1703 1738
1704 }); 1739 });
1705 1740
1706 1741
1707 } 1742 }
1708 1743
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698