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

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

Issue 2695743002: Api-roll 45: 2017-02-13 (Closed)
Patch Set: reverted local changes to pubspec file Created 3 years, 10 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.v1beta3.test; 1 library googleapis_beta.datastore.v1beta3.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
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 buildUnnamed3611() { 54 buildUnnamed3703() {
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 checkUnnamed3611(core.List<api.Key> o) { 61 checkUnnamed3703(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 = buildUnnamed3611(); 72 o.keys = buildUnnamed3703();
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 checkUnnamed3611(o.keys); 81 checkUnnamed3703(o.keys);
82 } 82 }
83 buildCounterAllocateIdsRequest--; 83 buildCounterAllocateIdsRequest--;
84 } 84 }
85 85
86 buildUnnamed3612() { 86 buildUnnamed3704() {
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 checkUnnamed3612(core.List<api.Key> o) { 93 checkUnnamed3704(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.keys = buildUnnamed3612(); 104 o.keys = buildUnnamed3704();
105 } 105 }
106 buildCounterAllocateIdsResponse--; 106 buildCounterAllocateIdsResponse--;
107 return o; 107 return o;
108 } 108 }
109 109
110 checkAllocateIdsResponse(api.AllocateIdsResponse o) { 110 checkAllocateIdsResponse(api.AllocateIdsResponse o) {
111 buildCounterAllocateIdsResponse++; 111 buildCounterAllocateIdsResponse++;
112 if (buildCounterAllocateIdsResponse < 3) { 112 if (buildCounterAllocateIdsResponse < 3) {
113 checkUnnamed3612(o.keys); 113 checkUnnamed3704(o.keys);
114 } 114 }
115 buildCounterAllocateIdsResponse--; 115 buildCounterAllocateIdsResponse--;
116 } 116 }
117 117
118 buildUnnamed3613() { 118 buildUnnamed3705() {
119 var o = new core.List<api.Value>(); 119 var o = new core.List<api.Value>();
120 o.add(buildValue()); 120 o.add(buildValue());
121 o.add(buildValue()); 121 o.add(buildValue());
122 return o; 122 return o;
123 } 123 }
124 124
125 checkUnnamed3613(core.List<api.Value> o) { 125 checkUnnamed3705(core.List<api.Value> o) {
126 unittest.expect(o, unittest.hasLength(2)); 126 unittest.expect(o, unittest.hasLength(2));
127 checkValue(o[0]); 127 checkValue(o[0]);
128 checkValue(o[1]); 128 checkValue(o[1]);
129 } 129 }
130 130
131 core.int buildCounterArrayValue = 0; 131 core.int buildCounterArrayValue = 0;
132 buildArrayValue() { 132 buildArrayValue() {
133 var o = new api.ArrayValue(); 133 var o = new api.ArrayValue();
134 buildCounterArrayValue++; 134 buildCounterArrayValue++;
135 if (buildCounterArrayValue < 3) { 135 if (buildCounterArrayValue < 3) {
136 o.values = buildUnnamed3613(); 136 o.values = buildUnnamed3705();
137 } 137 }
138 buildCounterArrayValue--; 138 buildCounterArrayValue--;
139 return o; 139 return o;
140 } 140 }
141 141
142 checkArrayValue(api.ArrayValue o) { 142 checkArrayValue(api.ArrayValue o) {
143 buildCounterArrayValue++; 143 buildCounterArrayValue++;
144 if (buildCounterArrayValue < 3) { 144 if (buildCounterArrayValue < 3) {
145 checkUnnamed3613(o.values); 145 checkUnnamed3705(o.values);
146 } 146 }
147 buildCounterArrayValue--; 147 buildCounterArrayValue--;
148 } 148 }
149 149
150 core.int buildCounterBeginTransactionRequest = 0; 150 core.int buildCounterBeginTransactionRequest = 0;
151 buildBeginTransactionRequest() { 151 buildBeginTransactionRequest() {
152 var o = new api.BeginTransactionRequest(); 152 var o = new api.BeginTransactionRequest();
153 buildCounterBeginTransactionRequest++; 153 buildCounterBeginTransactionRequest++;
154 if (buildCounterBeginTransactionRequest < 3) { 154 if (buildCounterBeginTransactionRequest < 3) {
155 } 155 }
(...skipping 20 matching lines...) Expand all
176 } 176 }
177 177
178 checkBeginTransactionResponse(api.BeginTransactionResponse o) { 178 checkBeginTransactionResponse(api.BeginTransactionResponse o) {
179 buildCounterBeginTransactionResponse++; 179 buildCounterBeginTransactionResponse++;
180 if (buildCounterBeginTransactionResponse < 3) { 180 if (buildCounterBeginTransactionResponse < 3) {
181 unittest.expect(o.transaction, unittest.equals('foo')); 181 unittest.expect(o.transaction, unittest.equals('foo'));
182 } 182 }
183 buildCounterBeginTransactionResponse--; 183 buildCounterBeginTransactionResponse--;
184 } 184 }
185 185
186 buildUnnamed3614() { 186 buildUnnamed3706() {
187 var o = new core.List<api.Mutation>(); 187 var o = new core.List<api.Mutation>();
188 o.add(buildMutation()); 188 o.add(buildMutation());
189 o.add(buildMutation()); 189 o.add(buildMutation());
190 return o; 190 return o;
191 } 191 }
192 192
193 checkUnnamed3614(core.List<api.Mutation> o) { 193 checkUnnamed3706(core.List<api.Mutation> o) {
194 unittest.expect(o, unittest.hasLength(2)); 194 unittest.expect(o, unittest.hasLength(2));
195 checkMutation(o[0]); 195 checkMutation(o[0]);
196 checkMutation(o[1]); 196 checkMutation(o[1]);
197 } 197 }
198 198
199 core.int buildCounterCommitRequest = 0; 199 core.int buildCounterCommitRequest = 0;
200 buildCommitRequest() { 200 buildCommitRequest() {
201 var o = new api.CommitRequest(); 201 var o = new api.CommitRequest();
202 buildCounterCommitRequest++; 202 buildCounterCommitRequest++;
203 if (buildCounterCommitRequest < 3) { 203 if (buildCounterCommitRequest < 3) {
204 o.mode = "foo"; 204 o.mode = "foo";
205 o.mutations = buildUnnamed3614(); 205 o.mutations = buildUnnamed3706();
206 o.transaction = "foo"; 206 o.transaction = "foo";
207 } 207 }
208 buildCounterCommitRequest--; 208 buildCounterCommitRequest--;
209 return o; 209 return o;
210 } 210 }
211 211
212 checkCommitRequest(api.CommitRequest o) { 212 checkCommitRequest(api.CommitRequest o) {
213 buildCounterCommitRequest++; 213 buildCounterCommitRequest++;
214 if (buildCounterCommitRequest < 3) { 214 if (buildCounterCommitRequest < 3) {
215 unittest.expect(o.mode, unittest.equals('foo')); 215 unittest.expect(o.mode, unittest.equals('foo'));
216 checkUnnamed3614(o.mutations); 216 checkUnnamed3706(o.mutations);
217 unittest.expect(o.transaction, unittest.equals('foo')); 217 unittest.expect(o.transaction, unittest.equals('foo'));
218 } 218 }
219 buildCounterCommitRequest--; 219 buildCounterCommitRequest--;
220 } 220 }
221 221
222 buildUnnamed3615() { 222 buildUnnamed3707() {
223 var o = new core.List<api.MutationResult>(); 223 var o = new core.List<api.MutationResult>();
224 o.add(buildMutationResult()); 224 o.add(buildMutationResult());
225 o.add(buildMutationResult()); 225 o.add(buildMutationResult());
226 return o; 226 return o;
227 } 227 }
228 228
229 checkUnnamed3615(core.List<api.MutationResult> o) { 229 checkUnnamed3707(core.List<api.MutationResult> o) {
230 unittest.expect(o, unittest.hasLength(2)); 230 unittest.expect(o, unittest.hasLength(2));
231 checkMutationResult(o[0]); 231 checkMutationResult(o[0]);
232 checkMutationResult(o[1]); 232 checkMutationResult(o[1]);
233 } 233 }
234 234
235 core.int buildCounterCommitResponse = 0; 235 core.int buildCounterCommitResponse = 0;
236 buildCommitResponse() { 236 buildCommitResponse() {
237 var o = new api.CommitResponse(); 237 var o = new api.CommitResponse();
238 buildCounterCommitResponse++; 238 buildCounterCommitResponse++;
239 if (buildCounterCommitResponse < 3) { 239 if (buildCounterCommitResponse < 3) {
240 o.indexUpdates = 42; 240 o.indexUpdates = 42;
241 o.mutationResults = buildUnnamed3615(); 241 o.mutationResults = buildUnnamed3707();
242 } 242 }
243 buildCounterCommitResponse--; 243 buildCounterCommitResponse--;
244 return o; 244 return o;
245 } 245 }
246 246
247 checkCommitResponse(api.CommitResponse o) { 247 checkCommitResponse(api.CommitResponse o) {
248 buildCounterCommitResponse++; 248 buildCounterCommitResponse++;
249 if (buildCounterCommitResponse < 3) { 249 if (buildCounterCommitResponse < 3) {
250 unittest.expect(o.indexUpdates, unittest.equals(42)); 250 unittest.expect(o.indexUpdates, unittest.equals(42));
251 checkUnnamed3615(o.mutationResults); 251 checkUnnamed3707(o.mutationResults);
252 } 252 }
253 buildCounterCommitResponse--; 253 buildCounterCommitResponse--;
254 } 254 }
255 255
256 buildUnnamed3616() { 256 buildUnnamed3708() {
257 var o = new core.List<api.Filter>(); 257 var o = new core.List<api.Filter>();
258 o.add(buildFilter()); 258 o.add(buildFilter());
259 o.add(buildFilter()); 259 o.add(buildFilter());
260 return o; 260 return o;
261 } 261 }
262 262
263 checkUnnamed3616(core.List<api.Filter> o) { 263 checkUnnamed3708(core.List<api.Filter> o) {
264 unittest.expect(o, unittest.hasLength(2)); 264 unittest.expect(o, unittest.hasLength(2));
265 checkFilter(o[0]); 265 checkFilter(o[0]);
266 checkFilter(o[1]); 266 checkFilter(o[1]);
267 } 267 }
268 268
269 core.int buildCounterCompositeFilter = 0; 269 core.int buildCounterCompositeFilter = 0;
270 buildCompositeFilter() { 270 buildCompositeFilter() {
271 var o = new api.CompositeFilter(); 271 var o = new api.CompositeFilter();
272 buildCounterCompositeFilter++; 272 buildCounterCompositeFilter++;
273 if (buildCounterCompositeFilter < 3) { 273 if (buildCounterCompositeFilter < 3) {
274 o.filters = buildUnnamed3616(); 274 o.filters = buildUnnamed3708();
275 o.op = "foo"; 275 o.op = "foo";
276 } 276 }
277 buildCounterCompositeFilter--; 277 buildCounterCompositeFilter--;
278 return o; 278 return o;
279 } 279 }
280 280
281 checkCompositeFilter(api.CompositeFilter o) { 281 checkCompositeFilter(api.CompositeFilter o) {
282 buildCounterCompositeFilter++; 282 buildCounterCompositeFilter++;
283 if (buildCounterCompositeFilter < 3) { 283 if (buildCounterCompositeFilter < 3) {
284 checkUnnamed3616(o.filters); 284 checkUnnamed3708(o.filters);
285 unittest.expect(o.op, unittest.equals('foo')); 285 unittest.expect(o.op, unittest.equals('foo'));
286 } 286 }
287 buildCounterCompositeFilter--; 287 buildCounterCompositeFilter--;
288 } 288 }
289 289
290 buildUnnamed3617() { 290 buildUnnamed3709() {
291 var o = new core.Map<core.String, api.Value>(); 291 var o = new core.Map<core.String, api.Value>();
292 o["x"] = buildValue(); 292 o["x"] = buildValue();
293 o["y"] = buildValue(); 293 o["y"] = buildValue();
294 return o; 294 return o;
295 } 295 }
296 296
297 checkUnnamed3617(core.Map<core.String, api.Value> o) { 297 checkUnnamed3709(core.Map<core.String, api.Value> o) {
298 unittest.expect(o, unittest.hasLength(2)); 298 unittest.expect(o, unittest.hasLength(2));
299 checkValue(o["x"]); 299 checkValue(o["x"]);
300 checkValue(o["y"]); 300 checkValue(o["y"]);
301 } 301 }
302 302
303 core.int buildCounterEntity = 0; 303 core.int buildCounterEntity = 0;
304 buildEntity() { 304 buildEntity() {
305 var o = new api.Entity(); 305 var o = new api.Entity();
306 buildCounterEntity++; 306 buildCounterEntity++;
307 if (buildCounterEntity < 3) { 307 if (buildCounterEntity < 3) {
308 o.key = buildKey(); 308 o.key = buildKey();
309 o.properties = buildUnnamed3617(); 309 o.properties = buildUnnamed3709();
310 } 310 }
311 buildCounterEntity--; 311 buildCounterEntity--;
312 return o; 312 return o;
313 } 313 }
314 314
315 checkEntity(api.Entity o) { 315 checkEntity(api.Entity o) {
316 buildCounterEntity++; 316 buildCounterEntity++;
317 if (buildCounterEntity < 3) { 317 if (buildCounterEntity < 3) {
318 checkKey(o.key); 318 checkKey(o.key);
319 checkUnnamed3617(o.properties); 319 checkUnnamed3709(o.properties);
320 } 320 }
321 buildCounterEntity--; 321 buildCounterEntity--;
322 } 322 }
323 323
324 core.int buildCounterEntityResult = 0; 324 core.int buildCounterEntityResult = 0;
325 buildEntityResult() { 325 buildEntityResult() {
326 var o = new api.EntityResult(); 326 var o = new api.EntityResult();
327 buildCounterEntityResult++; 327 buildCounterEntityResult++;
328 if (buildCounterEntityResult < 3) { 328 if (buildCounterEntityResult < 3) {
329 o.cursor = "foo"; 329 o.cursor = "foo";
(...skipping 28 matching lines...) Expand all
358 358
359 checkFilter(api.Filter o) { 359 checkFilter(api.Filter o) {
360 buildCounterFilter++; 360 buildCounterFilter++;
361 if (buildCounterFilter < 3) { 361 if (buildCounterFilter < 3) {
362 checkCompositeFilter(o.compositeFilter); 362 checkCompositeFilter(o.compositeFilter);
363 checkPropertyFilter(o.propertyFilter); 363 checkPropertyFilter(o.propertyFilter);
364 } 364 }
365 buildCounterFilter--; 365 buildCounterFilter--;
366 } 366 }
367 367
368 buildUnnamed3618() { 368 buildUnnamed3710() {
369 var o = new core.Map<core.String, api.GqlQueryParameter>(); 369 var o = new core.Map<core.String, api.GqlQueryParameter>();
370 o["x"] = buildGqlQueryParameter(); 370 o["x"] = buildGqlQueryParameter();
371 o["y"] = buildGqlQueryParameter(); 371 o["y"] = buildGqlQueryParameter();
372 return o; 372 return o;
373 } 373 }
374 374
375 checkUnnamed3618(core.Map<core.String, api.GqlQueryParameter> o) { 375 checkUnnamed3710(core.Map<core.String, api.GqlQueryParameter> o) {
376 unittest.expect(o, unittest.hasLength(2)); 376 unittest.expect(o, unittest.hasLength(2));
377 checkGqlQueryParameter(o["x"]); 377 checkGqlQueryParameter(o["x"]);
378 checkGqlQueryParameter(o["y"]); 378 checkGqlQueryParameter(o["y"]);
379 } 379 }
380 380
381 buildUnnamed3619() { 381 buildUnnamed3711() {
382 var o = new core.List<api.GqlQueryParameter>(); 382 var o = new core.List<api.GqlQueryParameter>();
383 o.add(buildGqlQueryParameter()); 383 o.add(buildGqlQueryParameter());
384 o.add(buildGqlQueryParameter()); 384 o.add(buildGqlQueryParameter());
385 return o; 385 return o;
386 } 386 }
387 387
388 checkUnnamed3619(core.List<api.GqlQueryParameter> o) { 388 checkUnnamed3711(core.List<api.GqlQueryParameter> o) {
389 unittest.expect(o, unittest.hasLength(2)); 389 unittest.expect(o, unittest.hasLength(2));
390 checkGqlQueryParameter(o[0]); 390 checkGqlQueryParameter(o[0]);
391 checkGqlQueryParameter(o[1]); 391 checkGqlQueryParameter(o[1]);
392 } 392 }
393 393
394 core.int buildCounterGqlQuery = 0; 394 core.int buildCounterGqlQuery = 0;
395 buildGqlQuery() { 395 buildGqlQuery() {
396 var o = new api.GqlQuery(); 396 var o = new api.GqlQuery();
397 buildCounterGqlQuery++; 397 buildCounterGqlQuery++;
398 if (buildCounterGqlQuery < 3) { 398 if (buildCounterGqlQuery < 3) {
399 o.allowLiterals = true; 399 o.allowLiterals = true;
400 o.namedBindings = buildUnnamed3618(); 400 o.namedBindings = buildUnnamed3710();
401 o.positionalBindings = buildUnnamed3619(); 401 o.positionalBindings = buildUnnamed3711();
402 o.queryString = "foo"; 402 o.queryString = "foo";
403 } 403 }
404 buildCounterGqlQuery--; 404 buildCounterGqlQuery--;
405 return o; 405 return o;
406 } 406 }
407 407
408 checkGqlQuery(api.GqlQuery o) { 408 checkGqlQuery(api.GqlQuery o) {
409 buildCounterGqlQuery++; 409 buildCounterGqlQuery++;
410 if (buildCounterGqlQuery < 3) { 410 if (buildCounterGqlQuery < 3) {
411 unittest.expect(o.allowLiterals, unittest.isTrue); 411 unittest.expect(o.allowLiterals, unittest.isTrue);
412 checkUnnamed3618(o.namedBindings); 412 checkUnnamed3710(o.namedBindings);
413 checkUnnamed3619(o.positionalBindings); 413 checkUnnamed3711(o.positionalBindings);
414 unittest.expect(o.queryString, unittest.equals('foo')); 414 unittest.expect(o.queryString, unittest.equals('foo'));
415 } 415 }
416 buildCounterGqlQuery--; 416 buildCounterGqlQuery--;
417 } 417 }
418 418
419 core.int buildCounterGqlQueryParameter = 0; 419 core.int buildCounterGqlQueryParameter = 0;
420 buildGqlQueryParameter() { 420 buildGqlQueryParameter() {
421 var o = new api.GqlQueryParameter(); 421 var o = new api.GqlQueryParameter();
422 buildCounterGqlQueryParameter++; 422 buildCounterGqlQueryParameter++;
423 if (buildCounterGqlQueryParameter < 3) { 423 if (buildCounterGqlQueryParameter < 3) {
424 o.cursor = "foo"; 424 o.cursor = "foo";
425 o.value = buildValue(); 425 o.value = buildValue();
426 } 426 }
427 buildCounterGqlQueryParameter--; 427 buildCounterGqlQueryParameter--;
428 return o; 428 return o;
429 } 429 }
430 430
431 checkGqlQueryParameter(api.GqlQueryParameter o) { 431 checkGqlQueryParameter(api.GqlQueryParameter o) {
432 buildCounterGqlQueryParameter++; 432 buildCounterGqlQueryParameter++;
433 if (buildCounterGqlQueryParameter < 3) { 433 if (buildCounterGqlQueryParameter < 3) {
434 unittest.expect(o.cursor, unittest.equals('foo')); 434 unittest.expect(o.cursor, unittest.equals('foo'));
435 checkValue(o.value); 435 checkValue(o.value);
436 } 436 }
437 buildCounterGqlQueryParameter--; 437 buildCounterGqlQueryParameter--;
438 } 438 }
439 439
440 buildUnnamed3620() { 440 buildUnnamed3712() {
441 var o = new core.List<api.PathElement>(); 441 var o = new core.List<api.PathElement>();
442 o.add(buildPathElement()); 442 o.add(buildPathElement());
443 o.add(buildPathElement()); 443 o.add(buildPathElement());
444 return o; 444 return o;
445 } 445 }
446 446
447 checkUnnamed3620(core.List<api.PathElement> o) { 447 checkUnnamed3712(core.List<api.PathElement> o) {
448 unittest.expect(o, unittest.hasLength(2)); 448 unittest.expect(o, unittest.hasLength(2));
449 checkPathElement(o[0]); 449 checkPathElement(o[0]);
450 checkPathElement(o[1]); 450 checkPathElement(o[1]);
451 } 451 }
452 452
453 core.int buildCounterKey = 0; 453 core.int buildCounterKey = 0;
454 buildKey() { 454 buildKey() {
455 var o = new api.Key(); 455 var o = new api.Key();
456 buildCounterKey++; 456 buildCounterKey++;
457 if (buildCounterKey < 3) { 457 if (buildCounterKey < 3) {
458 o.partitionId = buildPartitionId(); 458 o.partitionId = buildPartitionId();
459 o.path = buildUnnamed3620(); 459 o.path = buildUnnamed3712();
460 } 460 }
461 buildCounterKey--; 461 buildCounterKey--;
462 return o; 462 return o;
463 } 463 }
464 464
465 checkKey(api.Key o) { 465 checkKey(api.Key o) {
466 buildCounterKey++; 466 buildCounterKey++;
467 if (buildCounterKey < 3) { 467 if (buildCounterKey < 3) {
468 checkPartitionId(o.partitionId); 468 checkPartitionId(o.partitionId);
469 checkUnnamed3620(o.path); 469 checkUnnamed3712(o.path);
470 } 470 }
471 buildCounterKey--; 471 buildCounterKey--;
472 } 472 }
473 473
474 core.int buildCounterKindExpression = 0; 474 core.int buildCounterKindExpression = 0;
475 buildKindExpression() { 475 buildKindExpression() {
476 var o = new api.KindExpression(); 476 var o = new api.KindExpression();
477 buildCounterKindExpression++; 477 buildCounterKindExpression++;
478 if (buildCounterKindExpression < 3) { 478 if (buildCounterKindExpression < 3) {
479 o.name = "foo"; 479 o.name = "foo";
(...skipping 24 matching lines...) Expand all
504 504
505 checkLatLng(api.LatLng o) { 505 checkLatLng(api.LatLng o) {
506 buildCounterLatLng++; 506 buildCounterLatLng++;
507 if (buildCounterLatLng < 3) { 507 if (buildCounterLatLng < 3) {
508 unittest.expect(o.latitude, unittest.equals(42.0)); 508 unittest.expect(o.latitude, unittest.equals(42.0));
509 unittest.expect(o.longitude, unittest.equals(42.0)); 509 unittest.expect(o.longitude, unittest.equals(42.0));
510 } 510 }
511 buildCounterLatLng--; 511 buildCounterLatLng--;
512 } 512 }
513 513
514 buildUnnamed3621() { 514 buildUnnamed3713() {
515 var o = new core.List<api.Key>(); 515 var o = new core.List<api.Key>();
516 o.add(buildKey()); 516 o.add(buildKey());
517 o.add(buildKey()); 517 o.add(buildKey());
518 return o; 518 return o;
519 } 519 }
520 520
521 checkUnnamed3621(core.List<api.Key> o) { 521 checkUnnamed3713(core.List<api.Key> o) {
522 unittest.expect(o, unittest.hasLength(2)); 522 unittest.expect(o, unittest.hasLength(2));
523 checkKey(o[0]); 523 checkKey(o[0]);
524 checkKey(o[1]); 524 checkKey(o[1]);
525 } 525 }
526 526
527 core.int buildCounterLookupRequest = 0; 527 core.int buildCounterLookupRequest = 0;
528 buildLookupRequest() { 528 buildLookupRequest() {
529 var o = new api.LookupRequest(); 529 var o = new api.LookupRequest();
530 buildCounterLookupRequest++; 530 buildCounterLookupRequest++;
531 if (buildCounterLookupRequest < 3) { 531 if (buildCounterLookupRequest < 3) {
532 o.keys = buildUnnamed3621(); 532 o.keys = buildUnnamed3713();
533 o.readOptions = buildReadOptions(); 533 o.readOptions = buildReadOptions();
534 } 534 }
535 buildCounterLookupRequest--; 535 buildCounterLookupRequest--;
536 return o; 536 return o;
537 } 537 }
538 538
539 checkLookupRequest(api.LookupRequest o) { 539 checkLookupRequest(api.LookupRequest o) {
540 buildCounterLookupRequest++; 540 buildCounterLookupRequest++;
541 if (buildCounterLookupRequest < 3) { 541 if (buildCounterLookupRequest < 3) {
542 checkUnnamed3621(o.keys); 542 checkUnnamed3713(o.keys);
543 checkReadOptions(o.readOptions); 543 checkReadOptions(o.readOptions);
544 } 544 }
545 buildCounterLookupRequest--; 545 buildCounterLookupRequest--;
546 } 546 }
547 547
548 buildUnnamed3622() { 548 buildUnnamed3714() {
549 var o = new core.List<api.Key>(); 549 var o = new core.List<api.Key>();
550 o.add(buildKey()); 550 o.add(buildKey());
551 o.add(buildKey()); 551 o.add(buildKey());
552 return o; 552 return o;
553 } 553 }
554 554
555 checkUnnamed3622(core.List<api.Key> o) { 555 checkUnnamed3714(core.List<api.Key> o) {
556 unittest.expect(o, unittest.hasLength(2)); 556 unittest.expect(o, unittest.hasLength(2));
557 checkKey(o[0]); 557 checkKey(o[0]);
558 checkKey(o[1]); 558 checkKey(o[1]);
559 } 559 }
560 560
561 buildUnnamed3623() { 561 buildUnnamed3715() {
562 var o = new core.List<api.EntityResult>(); 562 var o = new core.List<api.EntityResult>();
563 o.add(buildEntityResult()); 563 o.add(buildEntityResult());
564 o.add(buildEntityResult()); 564 o.add(buildEntityResult());
565 return o; 565 return o;
566 } 566 }
567 567
568 checkUnnamed3623(core.List<api.EntityResult> o) { 568 checkUnnamed3715(core.List<api.EntityResult> o) {
569 unittest.expect(o, unittest.hasLength(2)); 569 unittest.expect(o, unittest.hasLength(2));
570 checkEntityResult(o[0]); 570 checkEntityResult(o[0]);
571 checkEntityResult(o[1]); 571 checkEntityResult(o[1]);
572 } 572 }
573 573
574 buildUnnamed3624() { 574 buildUnnamed3716() {
575 var o = new core.List<api.EntityResult>(); 575 var o = new core.List<api.EntityResult>();
576 o.add(buildEntityResult()); 576 o.add(buildEntityResult());
577 o.add(buildEntityResult()); 577 o.add(buildEntityResult());
578 return o; 578 return o;
579 } 579 }
580 580
581 checkUnnamed3624(core.List<api.EntityResult> o) { 581 checkUnnamed3716(core.List<api.EntityResult> o) {
582 unittest.expect(o, unittest.hasLength(2)); 582 unittest.expect(o, unittest.hasLength(2));
583 checkEntityResult(o[0]); 583 checkEntityResult(o[0]);
584 checkEntityResult(o[1]); 584 checkEntityResult(o[1]);
585 } 585 }
586 586
587 core.int buildCounterLookupResponse = 0; 587 core.int buildCounterLookupResponse = 0;
588 buildLookupResponse() { 588 buildLookupResponse() {
589 var o = new api.LookupResponse(); 589 var o = new api.LookupResponse();
590 buildCounterLookupResponse++; 590 buildCounterLookupResponse++;
591 if (buildCounterLookupResponse < 3) { 591 if (buildCounterLookupResponse < 3) {
592 o.deferred = buildUnnamed3622(); 592 o.deferred = buildUnnamed3714();
593 o.found = buildUnnamed3623(); 593 o.found = buildUnnamed3715();
594 o.missing = buildUnnamed3624(); 594 o.missing = buildUnnamed3716();
595 } 595 }
596 buildCounterLookupResponse--; 596 buildCounterLookupResponse--;
597 return o; 597 return o;
598 } 598 }
599 599
600 checkLookupResponse(api.LookupResponse o) { 600 checkLookupResponse(api.LookupResponse o) {
601 buildCounterLookupResponse++; 601 buildCounterLookupResponse++;
602 if (buildCounterLookupResponse < 3) { 602 if (buildCounterLookupResponse < 3) {
603 checkUnnamed3622(o.deferred); 603 checkUnnamed3714(o.deferred);
604 checkUnnamed3623(o.found); 604 checkUnnamed3715(o.found);
605 checkUnnamed3624(o.missing); 605 checkUnnamed3716(o.missing);
606 } 606 }
607 buildCounterLookupResponse--; 607 buildCounterLookupResponse--;
608 } 608 }
609 609
610 core.int buildCounterMutation = 0; 610 core.int buildCounterMutation = 0;
611 buildMutation() { 611 buildMutation() {
612 var o = new api.Mutation(); 612 var o = new api.Mutation();
613 buildCounterMutation++; 613 buildCounterMutation++;
614 if (buildCounterMutation < 3) { 614 if (buildCounterMutation < 3) {
615 o.baseVersion = "foo"; 615 o.baseVersion = "foo";
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 } 776 }
777 777
778 checkPropertyReference(api.PropertyReference o) { 778 checkPropertyReference(api.PropertyReference o) {
779 buildCounterPropertyReference++; 779 buildCounterPropertyReference++;
780 if (buildCounterPropertyReference < 3) { 780 if (buildCounterPropertyReference < 3) {
781 unittest.expect(o.name, unittest.equals('foo')); 781 unittest.expect(o.name, unittest.equals('foo'));
782 } 782 }
783 buildCounterPropertyReference--; 783 buildCounterPropertyReference--;
784 } 784 }
785 785
786 buildUnnamed3625() { 786 buildUnnamed3717() {
787 var o = new core.List<api.PropertyReference>(); 787 var o = new core.List<api.PropertyReference>();
788 o.add(buildPropertyReference()); 788 o.add(buildPropertyReference());
789 o.add(buildPropertyReference()); 789 o.add(buildPropertyReference());
790 return o; 790 return o;
791 } 791 }
792 792
793 checkUnnamed3625(core.List<api.PropertyReference> o) { 793 checkUnnamed3717(core.List<api.PropertyReference> o) {
794 unittest.expect(o, unittest.hasLength(2)); 794 unittest.expect(o, unittest.hasLength(2));
795 checkPropertyReference(o[0]); 795 checkPropertyReference(o[0]);
796 checkPropertyReference(o[1]); 796 checkPropertyReference(o[1]);
797 } 797 }
798 798
799 buildUnnamed3626() { 799 buildUnnamed3718() {
800 var o = new core.List<api.KindExpression>(); 800 var o = new core.List<api.KindExpression>();
801 o.add(buildKindExpression()); 801 o.add(buildKindExpression());
802 o.add(buildKindExpression()); 802 o.add(buildKindExpression());
803 return o; 803 return o;
804 } 804 }
805 805
806 checkUnnamed3626(core.List<api.KindExpression> o) { 806 checkUnnamed3718(core.List<api.KindExpression> o) {
807 unittest.expect(o, unittest.hasLength(2)); 807 unittest.expect(o, unittest.hasLength(2));
808 checkKindExpression(o[0]); 808 checkKindExpression(o[0]);
809 checkKindExpression(o[1]); 809 checkKindExpression(o[1]);
810 } 810 }
811 811
812 buildUnnamed3627() { 812 buildUnnamed3719() {
813 var o = new core.List<api.PropertyOrder>(); 813 var o = new core.List<api.PropertyOrder>();
814 o.add(buildPropertyOrder()); 814 o.add(buildPropertyOrder());
815 o.add(buildPropertyOrder()); 815 o.add(buildPropertyOrder());
816 return o; 816 return o;
817 } 817 }
818 818
819 checkUnnamed3627(core.List<api.PropertyOrder> o) { 819 checkUnnamed3719(core.List<api.PropertyOrder> o) {
820 unittest.expect(o, unittest.hasLength(2)); 820 unittest.expect(o, unittest.hasLength(2));
821 checkPropertyOrder(o[0]); 821 checkPropertyOrder(o[0]);
822 checkPropertyOrder(o[1]); 822 checkPropertyOrder(o[1]);
823 } 823 }
824 824
825 buildUnnamed3628() { 825 buildUnnamed3720() {
826 var o = new core.List<api.Projection>(); 826 var o = new core.List<api.Projection>();
827 o.add(buildProjection()); 827 o.add(buildProjection());
828 o.add(buildProjection()); 828 o.add(buildProjection());
829 return o; 829 return o;
830 } 830 }
831 831
832 checkUnnamed3628(core.List<api.Projection> o) { 832 checkUnnamed3720(core.List<api.Projection> o) {
833 unittest.expect(o, unittest.hasLength(2)); 833 unittest.expect(o, unittest.hasLength(2));
834 checkProjection(o[0]); 834 checkProjection(o[0]);
835 checkProjection(o[1]); 835 checkProjection(o[1]);
836 } 836 }
837 837
838 core.int buildCounterQuery = 0; 838 core.int buildCounterQuery = 0;
839 buildQuery() { 839 buildQuery() {
840 var o = new api.Query(); 840 var o = new api.Query();
841 buildCounterQuery++; 841 buildCounterQuery++;
842 if (buildCounterQuery < 3) { 842 if (buildCounterQuery < 3) {
843 o.distinctOn = buildUnnamed3625(); 843 o.distinctOn = buildUnnamed3717();
844 o.endCursor = "foo"; 844 o.endCursor = "foo";
845 o.filter = buildFilter(); 845 o.filter = buildFilter();
846 o.kind = buildUnnamed3626(); 846 o.kind = buildUnnamed3718();
847 o.limit = 42; 847 o.limit = 42;
848 o.offset = 42; 848 o.offset = 42;
849 o.order = buildUnnamed3627(); 849 o.order = buildUnnamed3719();
850 o.projection = buildUnnamed3628(); 850 o.projection = buildUnnamed3720();
851 o.startCursor = "foo"; 851 o.startCursor = "foo";
852 } 852 }
853 buildCounterQuery--; 853 buildCounterQuery--;
854 return o; 854 return o;
855 } 855 }
856 856
857 checkQuery(api.Query o) { 857 checkQuery(api.Query o) {
858 buildCounterQuery++; 858 buildCounterQuery++;
859 if (buildCounterQuery < 3) { 859 if (buildCounterQuery < 3) {
860 checkUnnamed3625(o.distinctOn); 860 checkUnnamed3717(o.distinctOn);
861 unittest.expect(o.endCursor, unittest.equals('foo')); 861 unittest.expect(o.endCursor, unittest.equals('foo'));
862 checkFilter(o.filter); 862 checkFilter(o.filter);
863 checkUnnamed3626(o.kind); 863 checkUnnamed3718(o.kind);
864 unittest.expect(o.limit, unittest.equals(42)); 864 unittest.expect(o.limit, unittest.equals(42));
865 unittest.expect(o.offset, unittest.equals(42)); 865 unittest.expect(o.offset, unittest.equals(42));
866 checkUnnamed3627(o.order); 866 checkUnnamed3719(o.order);
867 checkUnnamed3628(o.projection); 867 checkUnnamed3720(o.projection);
868 unittest.expect(o.startCursor, unittest.equals('foo')); 868 unittest.expect(o.startCursor, unittest.equals('foo'));
869 } 869 }
870 buildCounterQuery--; 870 buildCounterQuery--;
871 } 871 }
872 872
873 buildUnnamed3629() { 873 buildUnnamed3721() {
874 var o = new core.List<api.EntityResult>(); 874 var o = new core.List<api.EntityResult>();
875 o.add(buildEntityResult()); 875 o.add(buildEntityResult());
876 o.add(buildEntityResult()); 876 o.add(buildEntityResult());
877 return o; 877 return o;
878 } 878 }
879 879
880 checkUnnamed3629(core.List<api.EntityResult> o) { 880 checkUnnamed3721(core.List<api.EntityResult> o) {
881 unittest.expect(o, unittest.hasLength(2)); 881 unittest.expect(o, unittest.hasLength(2));
882 checkEntityResult(o[0]); 882 checkEntityResult(o[0]);
883 checkEntityResult(o[1]); 883 checkEntityResult(o[1]);
884 } 884 }
885 885
886 core.int buildCounterQueryResultBatch = 0; 886 core.int buildCounterQueryResultBatch = 0;
887 buildQueryResultBatch() { 887 buildQueryResultBatch() {
888 var o = new api.QueryResultBatch(); 888 var o = new api.QueryResultBatch();
889 buildCounterQueryResultBatch++; 889 buildCounterQueryResultBatch++;
890 if (buildCounterQueryResultBatch < 3) { 890 if (buildCounterQueryResultBatch < 3) {
891 o.endCursor = "foo"; 891 o.endCursor = "foo";
892 o.entityResultType = "foo"; 892 o.entityResultType = "foo";
893 o.entityResults = buildUnnamed3629(); 893 o.entityResults = buildUnnamed3721();
894 o.moreResults = "foo"; 894 o.moreResults = "foo";
895 o.skippedCursor = "foo"; 895 o.skippedCursor = "foo";
896 o.skippedResults = 42; 896 o.skippedResults = 42;
897 o.snapshotVersion = "foo"; 897 o.snapshotVersion = "foo";
898 } 898 }
899 buildCounterQueryResultBatch--; 899 buildCounterQueryResultBatch--;
900 return o; 900 return o;
901 } 901 }
902 902
903 checkQueryResultBatch(api.QueryResultBatch o) { 903 checkQueryResultBatch(api.QueryResultBatch o) {
904 buildCounterQueryResultBatch++; 904 buildCounterQueryResultBatch++;
905 if (buildCounterQueryResultBatch < 3) { 905 if (buildCounterQueryResultBatch < 3) {
906 unittest.expect(o.endCursor, unittest.equals('foo')); 906 unittest.expect(o.endCursor, unittest.equals('foo'));
907 unittest.expect(o.entityResultType, unittest.equals('foo')); 907 unittest.expect(o.entityResultType, unittest.equals('foo'));
908 checkUnnamed3629(o.entityResults); 908 checkUnnamed3721(o.entityResults);
909 unittest.expect(o.moreResults, unittest.equals('foo')); 909 unittest.expect(o.moreResults, unittest.equals('foo'));
910 unittest.expect(o.skippedCursor, unittest.equals('foo')); 910 unittest.expect(o.skippedCursor, unittest.equals('foo'));
911 unittest.expect(o.skippedResults, unittest.equals(42)); 911 unittest.expect(o.skippedResults, unittest.equals(42));
912 unittest.expect(o.snapshotVersion, unittest.equals('foo')); 912 unittest.expect(o.snapshotVersion, unittest.equals('foo'));
913 } 913 }
914 buildCounterQueryResultBatch--; 914 buildCounterQueryResultBatch--;
915 } 915 }
916 916
917 core.int buildCounterReadOptions = 0; 917 core.int buildCounterReadOptions = 0;
918 buildReadOptions() { 918 buildReadOptions() {
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after
1697 res.runQuery(arg_request, arg_projectId).then(unittest.expectAsync(((api.R unQueryResponse response) { 1697 res.runQuery(arg_request, arg_projectId).then(unittest.expectAsync(((api.R unQueryResponse response) {
1698 checkRunQueryResponse(response); 1698 checkRunQueryResponse(response);
1699 }))); 1699 })));
1700 }); 1700 });
1701 1701
1702 }); 1702 });
1703 1703
1704 1704
1705 } 1705 }
1706 1706
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698