OLD | NEW |
1 library googleapis_beta.datastore.v1beta2.test; | 1 library googleapis_beta.datastore.v1beta2.test; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
11 import 'package:googleapis_beta/common/common.dart' as common; | 11 import 'package:googleapis_beta/common/common.dart' as common; |
12 import 'package:googleapis_beta/src/common_internal.dart' as common_internal; | 12 import 'package:googleapis_beta/src/common_internal.dart' as common_internal; |
13 import '../common/common_internal_test.dart' as common_test; | 13 import '../common/common_internal_test.dart' as common_test; |
14 | 14 |
15 import 'package:googleapis_beta/datastore/v1beta2.dart' as api; | 15 import 'package:googleapis_beta/datastore/v1beta2.dart' as api; |
16 | 16 |
17 | 17 |
18 | 18 |
19 buildUnnamed1183() { | 19 buildUnnamed1214() { |
20 var o = new core.List<api.Key>(); | 20 var o = new core.List<api.Key>(); |
21 o.add(buildKey()); | 21 o.add(buildKey()); |
22 o.add(buildKey()); | 22 o.add(buildKey()); |
23 return o; | 23 return o; |
24 } | 24 } |
25 | 25 |
26 checkUnnamed1183(core.List<api.Key> o) { | 26 checkUnnamed1214(core.List<api.Key> o) { |
27 unittest.expect(o, unittest.hasLength(2)); | 27 unittest.expect(o, unittest.hasLength(2)); |
28 checkKey(o[0]); | 28 checkKey(o[0]); |
29 checkKey(o[1]); | 29 checkKey(o[1]); |
30 } | 30 } |
31 | 31 |
32 core.int buildCounterAllocateIdsRequest = 0; | 32 core.int buildCounterAllocateIdsRequest = 0; |
33 buildAllocateIdsRequest() { | 33 buildAllocateIdsRequest() { |
34 var o = new api.AllocateIdsRequest(); | 34 var o = new api.AllocateIdsRequest(); |
35 buildCounterAllocateIdsRequest++; | 35 buildCounterAllocateIdsRequest++; |
36 if (buildCounterAllocateIdsRequest < 3) { | 36 if (buildCounterAllocateIdsRequest < 3) { |
37 o.keys = buildUnnamed1183(); | 37 o.keys = buildUnnamed1214(); |
38 } | 38 } |
39 buildCounterAllocateIdsRequest--; | 39 buildCounterAllocateIdsRequest--; |
40 return o; | 40 return o; |
41 } | 41 } |
42 | 42 |
43 checkAllocateIdsRequest(api.AllocateIdsRequest o) { | 43 checkAllocateIdsRequest(api.AllocateIdsRequest o) { |
44 buildCounterAllocateIdsRequest++; | 44 buildCounterAllocateIdsRequest++; |
45 if (buildCounterAllocateIdsRequest < 3) { | 45 if (buildCounterAllocateIdsRequest < 3) { |
46 checkUnnamed1183(o.keys); | 46 checkUnnamed1214(o.keys); |
47 } | 47 } |
48 buildCounterAllocateIdsRequest--; | 48 buildCounterAllocateIdsRequest--; |
49 } | 49 } |
50 | 50 |
51 buildUnnamed1184() { | 51 buildUnnamed1215() { |
52 var o = new core.List<api.Key>(); | 52 var o = new core.List<api.Key>(); |
53 o.add(buildKey()); | 53 o.add(buildKey()); |
54 o.add(buildKey()); | 54 o.add(buildKey()); |
55 return o; | 55 return o; |
56 } | 56 } |
57 | 57 |
58 checkUnnamed1184(core.List<api.Key> o) { | 58 checkUnnamed1215(core.List<api.Key> o) { |
59 unittest.expect(o, unittest.hasLength(2)); | 59 unittest.expect(o, unittest.hasLength(2)); |
60 checkKey(o[0]); | 60 checkKey(o[0]); |
61 checkKey(o[1]); | 61 checkKey(o[1]); |
62 } | 62 } |
63 | 63 |
64 core.int buildCounterAllocateIdsResponse = 0; | 64 core.int buildCounterAllocateIdsResponse = 0; |
65 buildAllocateIdsResponse() { | 65 buildAllocateIdsResponse() { |
66 var o = new api.AllocateIdsResponse(); | 66 var o = new api.AllocateIdsResponse(); |
67 buildCounterAllocateIdsResponse++; | 67 buildCounterAllocateIdsResponse++; |
68 if (buildCounterAllocateIdsResponse < 3) { | 68 if (buildCounterAllocateIdsResponse < 3) { |
69 o.header = buildResponseHeader(); | 69 o.header = buildResponseHeader(); |
70 o.keys = buildUnnamed1184(); | 70 o.keys = buildUnnamed1215(); |
71 } | 71 } |
72 buildCounterAllocateIdsResponse--; | 72 buildCounterAllocateIdsResponse--; |
73 return o; | 73 return o; |
74 } | 74 } |
75 | 75 |
76 checkAllocateIdsResponse(api.AllocateIdsResponse o) { | 76 checkAllocateIdsResponse(api.AllocateIdsResponse o) { |
77 buildCounterAllocateIdsResponse++; | 77 buildCounterAllocateIdsResponse++; |
78 if (buildCounterAllocateIdsResponse < 3) { | 78 if (buildCounterAllocateIdsResponse < 3) { |
79 checkResponseHeader(o.header); | 79 checkResponseHeader(o.header); |
80 checkUnnamed1184(o.keys); | 80 checkUnnamed1215(o.keys); |
81 } | 81 } |
82 buildCounterAllocateIdsResponse--; | 82 buildCounterAllocateIdsResponse--; |
83 } | 83 } |
84 | 84 |
85 core.int buildCounterBeginTransactionRequest = 0; | 85 core.int buildCounterBeginTransactionRequest = 0; |
86 buildBeginTransactionRequest() { | 86 buildBeginTransactionRequest() { |
87 var o = new api.BeginTransactionRequest(); | 87 var o = new api.BeginTransactionRequest(); |
88 buildCounterBeginTransactionRequest++; | 88 buildCounterBeginTransactionRequest++; |
89 if (buildCounterBeginTransactionRequest < 3) { | 89 if (buildCounterBeginTransactionRequest < 3) { |
90 o.isolationLevel = "foo"; | 90 o.isolationLevel = "foo"; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 161 |
162 checkCommitResponse(api.CommitResponse o) { | 162 checkCommitResponse(api.CommitResponse o) { |
163 buildCounterCommitResponse++; | 163 buildCounterCommitResponse++; |
164 if (buildCounterCommitResponse < 3) { | 164 if (buildCounterCommitResponse < 3) { |
165 checkResponseHeader(o.header); | 165 checkResponseHeader(o.header); |
166 checkMutationResult(o.mutationResult); | 166 checkMutationResult(o.mutationResult); |
167 } | 167 } |
168 buildCounterCommitResponse--; | 168 buildCounterCommitResponse--; |
169 } | 169 } |
170 | 170 |
171 buildUnnamed1185() { | 171 buildUnnamed1216() { |
172 var o = new core.List<api.Filter>(); | 172 var o = new core.List<api.Filter>(); |
173 o.add(buildFilter()); | 173 o.add(buildFilter()); |
174 o.add(buildFilter()); | 174 o.add(buildFilter()); |
175 return o; | 175 return o; |
176 } | 176 } |
177 | 177 |
178 checkUnnamed1185(core.List<api.Filter> o) { | 178 checkUnnamed1216(core.List<api.Filter> o) { |
179 unittest.expect(o, unittest.hasLength(2)); | 179 unittest.expect(o, unittest.hasLength(2)); |
180 checkFilter(o[0]); | 180 checkFilter(o[0]); |
181 checkFilter(o[1]); | 181 checkFilter(o[1]); |
182 } | 182 } |
183 | 183 |
184 core.int buildCounterCompositeFilter = 0; | 184 core.int buildCounterCompositeFilter = 0; |
185 buildCompositeFilter() { | 185 buildCompositeFilter() { |
186 var o = new api.CompositeFilter(); | 186 var o = new api.CompositeFilter(); |
187 buildCounterCompositeFilter++; | 187 buildCounterCompositeFilter++; |
188 if (buildCounterCompositeFilter < 3) { | 188 if (buildCounterCompositeFilter < 3) { |
189 o.filters = buildUnnamed1185(); | 189 o.filters = buildUnnamed1216(); |
190 o.operator = "foo"; | 190 o.operator = "foo"; |
191 } | 191 } |
192 buildCounterCompositeFilter--; | 192 buildCounterCompositeFilter--; |
193 return o; | 193 return o; |
194 } | 194 } |
195 | 195 |
196 checkCompositeFilter(api.CompositeFilter o) { | 196 checkCompositeFilter(api.CompositeFilter o) { |
197 buildCounterCompositeFilter++; | 197 buildCounterCompositeFilter++; |
198 if (buildCounterCompositeFilter < 3) { | 198 if (buildCounterCompositeFilter < 3) { |
199 checkUnnamed1185(o.filters); | 199 checkUnnamed1216(o.filters); |
200 unittest.expect(o.operator, unittest.equals('foo')); | 200 unittest.expect(o.operator, unittest.equals('foo')); |
201 } | 201 } |
202 buildCounterCompositeFilter--; | 202 buildCounterCompositeFilter--; |
203 } | 203 } |
204 | 204 |
205 buildUnnamed1186() { | 205 buildUnnamed1217() { |
206 var o = new core.Map<core.String, api.Property>(); | 206 var o = new core.Map<core.String, api.Property>(); |
207 o["x"] = buildProperty(); | 207 o["x"] = buildProperty(); |
208 o["y"] = buildProperty(); | 208 o["y"] = buildProperty(); |
209 return o; | 209 return o; |
210 } | 210 } |
211 | 211 |
212 checkUnnamed1186(core.Map<core.String, api.Property> o) { | 212 checkUnnamed1217(core.Map<core.String, api.Property> o) { |
213 unittest.expect(o, unittest.hasLength(2)); | 213 unittest.expect(o, unittest.hasLength(2)); |
214 checkProperty(o["x"]); | 214 checkProperty(o["x"]); |
215 checkProperty(o["y"]); | 215 checkProperty(o["y"]); |
216 } | 216 } |
217 | 217 |
218 core.int buildCounterEntity = 0; | 218 core.int buildCounterEntity = 0; |
219 buildEntity() { | 219 buildEntity() { |
220 var o = new api.Entity(); | 220 var o = new api.Entity(); |
221 buildCounterEntity++; | 221 buildCounterEntity++; |
222 if (buildCounterEntity < 3) { | 222 if (buildCounterEntity < 3) { |
223 o.key = buildKey(); | 223 o.key = buildKey(); |
224 o.properties = buildUnnamed1186(); | 224 o.properties = buildUnnamed1217(); |
225 } | 225 } |
226 buildCounterEntity--; | 226 buildCounterEntity--; |
227 return o; | 227 return o; |
228 } | 228 } |
229 | 229 |
230 checkEntity(api.Entity o) { | 230 checkEntity(api.Entity o) { |
231 buildCounterEntity++; | 231 buildCounterEntity++; |
232 if (buildCounterEntity < 3) { | 232 if (buildCounterEntity < 3) { |
233 checkKey(o.key); | 233 checkKey(o.key); |
234 checkUnnamed1186(o.properties); | 234 checkUnnamed1217(o.properties); |
235 } | 235 } |
236 buildCounterEntity--; | 236 buildCounterEntity--; |
237 } | 237 } |
238 | 238 |
239 core.int buildCounterEntityResult = 0; | 239 core.int buildCounterEntityResult = 0; |
240 buildEntityResult() { | 240 buildEntityResult() { |
241 var o = new api.EntityResult(); | 241 var o = new api.EntityResult(); |
242 buildCounterEntityResult++; | 242 buildCounterEntityResult++; |
243 if (buildCounterEntityResult < 3) { | 243 if (buildCounterEntityResult < 3) { |
244 o.entity = buildEntity(); | 244 o.entity = buildEntity(); |
(...skipping 24 matching lines...) Expand all Loading... |
269 | 269 |
270 checkFilter(api.Filter o) { | 270 checkFilter(api.Filter o) { |
271 buildCounterFilter++; | 271 buildCounterFilter++; |
272 if (buildCounterFilter < 3) { | 272 if (buildCounterFilter < 3) { |
273 checkCompositeFilter(o.compositeFilter); | 273 checkCompositeFilter(o.compositeFilter); |
274 checkPropertyFilter(o.propertyFilter); | 274 checkPropertyFilter(o.propertyFilter); |
275 } | 275 } |
276 buildCounterFilter--; | 276 buildCounterFilter--; |
277 } | 277 } |
278 | 278 |
279 buildUnnamed1187() { | 279 buildUnnamed1218() { |
280 var o = new core.List<api.GqlQueryArg>(); | 280 var o = new core.List<api.GqlQueryArg>(); |
281 o.add(buildGqlQueryArg()); | 281 o.add(buildGqlQueryArg()); |
282 o.add(buildGqlQueryArg()); | 282 o.add(buildGqlQueryArg()); |
283 return o; | 283 return o; |
284 } | 284 } |
285 | 285 |
286 checkUnnamed1187(core.List<api.GqlQueryArg> o) { | 286 checkUnnamed1218(core.List<api.GqlQueryArg> o) { |
287 unittest.expect(o, unittest.hasLength(2)); | 287 unittest.expect(o, unittest.hasLength(2)); |
288 checkGqlQueryArg(o[0]); | 288 checkGqlQueryArg(o[0]); |
289 checkGqlQueryArg(o[1]); | 289 checkGqlQueryArg(o[1]); |
290 } | 290 } |
291 | 291 |
292 buildUnnamed1188() { | 292 buildUnnamed1219() { |
293 var o = new core.List<api.GqlQueryArg>(); | 293 var o = new core.List<api.GqlQueryArg>(); |
294 o.add(buildGqlQueryArg()); | 294 o.add(buildGqlQueryArg()); |
295 o.add(buildGqlQueryArg()); | 295 o.add(buildGqlQueryArg()); |
296 return o; | 296 return o; |
297 } | 297 } |
298 | 298 |
299 checkUnnamed1188(core.List<api.GqlQueryArg> o) { | 299 checkUnnamed1219(core.List<api.GqlQueryArg> o) { |
300 unittest.expect(o, unittest.hasLength(2)); | 300 unittest.expect(o, unittest.hasLength(2)); |
301 checkGqlQueryArg(o[0]); | 301 checkGqlQueryArg(o[0]); |
302 checkGqlQueryArg(o[1]); | 302 checkGqlQueryArg(o[1]); |
303 } | 303 } |
304 | 304 |
305 core.int buildCounterGqlQuery = 0; | 305 core.int buildCounterGqlQuery = 0; |
306 buildGqlQuery() { | 306 buildGqlQuery() { |
307 var o = new api.GqlQuery(); | 307 var o = new api.GqlQuery(); |
308 buildCounterGqlQuery++; | 308 buildCounterGqlQuery++; |
309 if (buildCounterGqlQuery < 3) { | 309 if (buildCounterGqlQuery < 3) { |
310 o.allowLiteral = true; | 310 o.allowLiteral = true; |
311 o.nameArgs = buildUnnamed1187(); | 311 o.nameArgs = buildUnnamed1218(); |
312 o.numberArgs = buildUnnamed1188(); | 312 o.numberArgs = buildUnnamed1219(); |
313 o.queryString = "foo"; | 313 o.queryString = "foo"; |
314 } | 314 } |
315 buildCounterGqlQuery--; | 315 buildCounterGqlQuery--; |
316 return o; | 316 return o; |
317 } | 317 } |
318 | 318 |
319 checkGqlQuery(api.GqlQuery o) { | 319 checkGqlQuery(api.GqlQuery o) { |
320 buildCounterGqlQuery++; | 320 buildCounterGqlQuery++; |
321 if (buildCounterGqlQuery < 3) { | 321 if (buildCounterGqlQuery < 3) { |
322 unittest.expect(o.allowLiteral, unittest.isTrue); | 322 unittest.expect(o.allowLiteral, unittest.isTrue); |
323 checkUnnamed1187(o.nameArgs); | 323 checkUnnamed1218(o.nameArgs); |
324 checkUnnamed1188(o.numberArgs); | 324 checkUnnamed1219(o.numberArgs); |
325 unittest.expect(o.queryString, unittest.equals('foo')); | 325 unittest.expect(o.queryString, unittest.equals('foo')); |
326 } | 326 } |
327 buildCounterGqlQuery--; | 327 buildCounterGqlQuery--; |
328 } | 328 } |
329 | 329 |
330 core.int buildCounterGqlQueryArg = 0; | 330 core.int buildCounterGqlQueryArg = 0; |
331 buildGqlQueryArg() { | 331 buildGqlQueryArg() { |
332 var o = new api.GqlQueryArg(); | 332 var o = new api.GqlQueryArg(); |
333 buildCounterGqlQueryArg++; | 333 buildCounterGqlQueryArg++; |
334 if (buildCounterGqlQueryArg < 3) { | 334 if (buildCounterGqlQueryArg < 3) { |
335 o.cursor = "foo"; | 335 o.cursor = "foo"; |
336 o.name = "foo"; | 336 o.name = "foo"; |
337 o.value = buildValue(); | 337 o.value = buildValue(); |
338 } | 338 } |
339 buildCounterGqlQueryArg--; | 339 buildCounterGqlQueryArg--; |
340 return o; | 340 return o; |
341 } | 341 } |
342 | 342 |
343 checkGqlQueryArg(api.GqlQueryArg o) { | 343 checkGqlQueryArg(api.GqlQueryArg o) { |
344 buildCounterGqlQueryArg++; | 344 buildCounterGqlQueryArg++; |
345 if (buildCounterGqlQueryArg < 3) { | 345 if (buildCounterGqlQueryArg < 3) { |
346 unittest.expect(o.cursor, unittest.equals('foo')); | 346 unittest.expect(o.cursor, unittest.equals('foo')); |
347 unittest.expect(o.name, unittest.equals('foo')); | 347 unittest.expect(o.name, unittest.equals('foo')); |
348 checkValue(o.value); | 348 checkValue(o.value); |
349 } | 349 } |
350 buildCounterGqlQueryArg--; | 350 buildCounterGqlQueryArg--; |
351 } | 351 } |
352 | 352 |
353 buildUnnamed1189() { | 353 buildUnnamed1220() { |
354 var o = new core.List<api.KeyPathElement>(); | 354 var o = new core.List<api.KeyPathElement>(); |
355 o.add(buildKeyPathElement()); | 355 o.add(buildKeyPathElement()); |
356 o.add(buildKeyPathElement()); | 356 o.add(buildKeyPathElement()); |
357 return o; | 357 return o; |
358 } | 358 } |
359 | 359 |
360 checkUnnamed1189(core.List<api.KeyPathElement> o) { | 360 checkUnnamed1220(core.List<api.KeyPathElement> o) { |
361 unittest.expect(o, unittest.hasLength(2)); | 361 unittest.expect(o, unittest.hasLength(2)); |
362 checkKeyPathElement(o[0]); | 362 checkKeyPathElement(o[0]); |
363 checkKeyPathElement(o[1]); | 363 checkKeyPathElement(o[1]); |
364 } | 364 } |
365 | 365 |
366 core.int buildCounterKey = 0; | 366 core.int buildCounterKey = 0; |
367 buildKey() { | 367 buildKey() { |
368 var o = new api.Key(); | 368 var o = new api.Key(); |
369 buildCounterKey++; | 369 buildCounterKey++; |
370 if (buildCounterKey < 3) { | 370 if (buildCounterKey < 3) { |
371 o.partitionId = buildPartitionId(); | 371 o.partitionId = buildPartitionId(); |
372 o.path = buildUnnamed1189(); | 372 o.path = buildUnnamed1220(); |
373 } | 373 } |
374 buildCounterKey--; | 374 buildCounterKey--; |
375 return o; | 375 return o; |
376 } | 376 } |
377 | 377 |
378 checkKey(api.Key o) { | 378 checkKey(api.Key o) { |
379 buildCounterKey++; | 379 buildCounterKey++; |
380 if (buildCounterKey < 3) { | 380 if (buildCounterKey < 3) { |
381 checkPartitionId(o.partitionId); | 381 checkPartitionId(o.partitionId); |
382 checkUnnamed1189(o.path); | 382 checkUnnamed1220(o.path); |
383 } | 383 } |
384 buildCounterKey--; | 384 buildCounterKey--; |
385 } | 385 } |
386 | 386 |
387 core.int buildCounterKeyPathElement = 0; | 387 core.int buildCounterKeyPathElement = 0; |
388 buildKeyPathElement() { | 388 buildKeyPathElement() { |
389 var o = new api.KeyPathElement(); | 389 var o = new api.KeyPathElement(); |
390 buildCounterKeyPathElement++; | 390 buildCounterKeyPathElement++; |
391 if (buildCounterKeyPathElement < 3) { | 391 if (buildCounterKeyPathElement < 3) { |
392 o.id = "foo"; | 392 o.id = "foo"; |
(...skipping 26 matching lines...) Expand all Loading... |
419 } | 419 } |
420 | 420 |
421 checkKindExpression(api.KindExpression o) { | 421 checkKindExpression(api.KindExpression o) { |
422 buildCounterKindExpression++; | 422 buildCounterKindExpression++; |
423 if (buildCounterKindExpression < 3) { | 423 if (buildCounterKindExpression < 3) { |
424 unittest.expect(o.name, unittest.equals('foo')); | 424 unittest.expect(o.name, unittest.equals('foo')); |
425 } | 425 } |
426 buildCounterKindExpression--; | 426 buildCounterKindExpression--; |
427 } | 427 } |
428 | 428 |
429 buildUnnamed1190() { | 429 buildUnnamed1221() { |
430 var o = new core.List<api.Key>(); | 430 var o = new core.List<api.Key>(); |
431 o.add(buildKey()); | 431 o.add(buildKey()); |
432 o.add(buildKey()); | 432 o.add(buildKey()); |
433 return o; | 433 return o; |
434 } | 434 } |
435 | 435 |
436 checkUnnamed1190(core.List<api.Key> o) { | 436 checkUnnamed1221(core.List<api.Key> o) { |
437 unittest.expect(o, unittest.hasLength(2)); | 437 unittest.expect(o, unittest.hasLength(2)); |
438 checkKey(o[0]); | 438 checkKey(o[0]); |
439 checkKey(o[1]); | 439 checkKey(o[1]); |
440 } | 440 } |
441 | 441 |
442 core.int buildCounterLookupRequest = 0; | 442 core.int buildCounterLookupRequest = 0; |
443 buildLookupRequest() { | 443 buildLookupRequest() { |
444 var o = new api.LookupRequest(); | 444 var o = new api.LookupRequest(); |
445 buildCounterLookupRequest++; | 445 buildCounterLookupRequest++; |
446 if (buildCounterLookupRequest < 3) { | 446 if (buildCounterLookupRequest < 3) { |
447 o.keys = buildUnnamed1190(); | 447 o.keys = buildUnnamed1221(); |
448 o.readOptions = buildReadOptions(); | 448 o.readOptions = buildReadOptions(); |
449 } | 449 } |
450 buildCounterLookupRequest--; | 450 buildCounterLookupRequest--; |
451 return o; | 451 return o; |
452 } | 452 } |
453 | 453 |
454 checkLookupRequest(api.LookupRequest o) { | 454 checkLookupRequest(api.LookupRequest o) { |
455 buildCounterLookupRequest++; | 455 buildCounterLookupRequest++; |
456 if (buildCounterLookupRequest < 3) { | 456 if (buildCounterLookupRequest < 3) { |
457 checkUnnamed1190(o.keys); | 457 checkUnnamed1221(o.keys); |
458 checkReadOptions(o.readOptions); | 458 checkReadOptions(o.readOptions); |
459 } | 459 } |
460 buildCounterLookupRequest--; | 460 buildCounterLookupRequest--; |
461 } | 461 } |
462 | 462 |
463 buildUnnamed1191() { | 463 buildUnnamed1222() { |
464 var o = new core.List<api.Key>(); | 464 var o = new core.List<api.Key>(); |
465 o.add(buildKey()); | 465 o.add(buildKey()); |
466 o.add(buildKey()); | 466 o.add(buildKey()); |
467 return o; | 467 return o; |
468 } | 468 } |
469 | 469 |
470 checkUnnamed1191(core.List<api.Key> o) { | 470 checkUnnamed1222(core.List<api.Key> o) { |
471 unittest.expect(o, unittest.hasLength(2)); | 471 unittest.expect(o, unittest.hasLength(2)); |
472 checkKey(o[0]); | 472 checkKey(o[0]); |
473 checkKey(o[1]); | 473 checkKey(o[1]); |
474 } | 474 } |
475 | 475 |
476 buildUnnamed1192() { | 476 buildUnnamed1223() { |
477 var o = new core.List<api.EntityResult>(); | 477 var o = new core.List<api.EntityResult>(); |
478 o.add(buildEntityResult()); | 478 o.add(buildEntityResult()); |
479 o.add(buildEntityResult()); | 479 o.add(buildEntityResult()); |
480 return o; | 480 return o; |
481 } | 481 } |
482 | 482 |
483 checkUnnamed1192(core.List<api.EntityResult> o) { | 483 checkUnnamed1223(core.List<api.EntityResult> o) { |
484 unittest.expect(o, unittest.hasLength(2)); | 484 unittest.expect(o, unittest.hasLength(2)); |
485 checkEntityResult(o[0]); | 485 checkEntityResult(o[0]); |
486 checkEntityResult(o[1]); | 486 checkEntityResult(o[1]); |
487 } | 487 } |
488 | 488 |
489 buildUnnamed1193() { | 489 buildUnnamed1224() { |
490 var o = new core.List<api.EntityResult>(); | 490 var o = new core.List<api.EntityResult>(); |
491 o.add(buildEntityResult()); | 491 o.add(buildEntityResult()); |
492 o.add(buildEntityResult()); | 492 o.add(buildEntityResult()); |
493 return o; | 493 return o; |
494 } | 494 } |
495 | 495 |
496 checkUnnamed1193(core.List<api.EntityResult> o) { | 496 checkUnnamed1224(core.List<api.EntityResult> o) { |
497 unittest.expect(o, unittest.hasLength(2)); | 497 unittest.expect(o, unittest.hasLength(2)); |
498 checkEntityResult(o[0]); | 498 checkEntityResult(o[0]); |
499 checkEntityResult(o[1]); | 499 checkEntityResult(o[1]); |
500 } | 500 } |
501 | 501 |
502 core.int buildCounterLookupResponse = 0; | 502 core.int buildCounterLookupResponse = 0; |
503 buildLookupResponse() { | 503 buildLookupResponse() { |
504 var o = new api.LookupResponse(); | 504 var o = new api.LookupResponse(); |
505 buildCounterLookupResponse++; | 505 buildCounterLookupResponse++; |
506 if (buildCounterLookupResponse < 3) { | 506 if (buildCounterLookupResponse < 3) { |
507 o.deferred = buildUnnamed1191(); | 507 o.deferred = buildUnnamed1222(); |
508 o.found = buildUnnamed1192(); | 508 o.found = buildUnnamed1223(); |
509 o.header = buildResponseHeader(); | 509 o.header = buildResponseHeader(); |
510 o.missing = buildUnnamed1193(); | 510 o.missing = buildUnnamed1224(); |
511 } | 511 } |
512 buildCounterLookupResponse--; | 512 buildCounterLookupResponse--; |
513 return o; | 513 return o; |
514 } | 514 } |
515 | 515 |
516 checkLookupResponse(api.LookupResponse o) { | 516 checkLookupResponse(api.LookupResponse o) { |
517 buildCounterLookupResponse++; | 517 buildCounterLookupResponse++; |
518 if (buildCounterLookupResponse < 3) { | 518 if (buildCounterLookupResponse < 3) { |
519 checkUnnamed1191(o.deferred); | 519 checkUnnamed1222(o.deferred); |
520 checkUnnamed1192(o.found); | 520 checkUnnamed1223(o.found); |
521 checkResponseHeader(o.header); | 521 checkResponseHeader(o.header); |
522 checkUnnamed1193(o.missing); | 522 checkUnnamed1224(o.missing); |
523 } | 523 } |
524 buildCounterLookupResponse--; | 524 buildCounterLookupResponse--; |
525 } | 525 } |
526 | 526 |
527 buildUnnamed1194() { | 527 buildUnnamed1225() { |
528 var o = new core.List<api.Key>(); | 528 var o = new core.List<api.Key>(); |
529 o.add(buildKey()); | 529 o.add(buildKey()); |
530 o.add(buildKey()); | 530 o.add(buildKey()); |
531 return o; | 531 return o; |
532 } | 532 } |
533 | 533 |
534 checkUnnamed1194(core.List<api.Key> o) { | 534 checkUnnamed1225(core.List<api.Key> o) { |
535 unittest.expect(o, unittest.hasLength(2)); | 535 unittest.expect(o, unittest.hasLength(2)); |
536 checkKey(o[0]); | 536 checkKey(o[0]); |
537 checkKey(o[1]); | 537 checkKey(o[1]); |
538 } | 538 } |
539 | 539 |
540 buildUnnamed1195() { | 540 buildUnnamed1226() { |
541 var o = new core.List<api.Entity>(); | 541 var o = new core.List<api.Entity>(); |
542 o.add(buildEntity()); | 542 o.add(buildEntity()); |
543 o.add(buildEntity()); | 543 o.add(buildEntity()); |
544 return o; | 544 return o; |
545 } | 545 } |
546 | 546 |
547 checkUnnamed1195(core.List<api.Entity> o) { | 547 checkUnnamed1226(core.List<api.Entity> o) { |
548 unittest.expect(o, unittest.hasLength(2)); | 548 unittest.expect(o, unittest.hasLength(2)); |
549 checkEntity(o[0]); | 549 checkEntity(o[0]); |
550 checkEntity(o[1]); | 550 checkEntity(o[1]); |
551 } | 551 } |
552 | 552 |
553 buildUnnamed1196() { | 553 buildUnnamed1227() { |
554 var o = new core.List<api.Entity>(); | 554 var o = new core.List<api.Entity>(); |
555 o.add(buildEntity()); | 555 o.add(buildEntity()); |
556 o.add(buildEntity()); | 556 o.add(buildEntity()); |
557 return o; | 557 return o; |
558 } | 558 } |
559 | 559 |
560 checkUnnamed1196(core.List<api.Entity> o) { | 560 checkUnnamed1227(core.List<api.Entity> o) { |
561 unittest.expect(o, unittest.hasLength(2)); | 561 unittest.expect(o, unittest.hasLength(2)); |
562 checkEntity(o[0]); | 562 checkEntity(o[0]); |
563 checkEntity(o[1]); | 563 checkEntity(o[1]); |
564 } | 564 } |
565 | 565 |
566 buildUnnamed1197() { | 566 buildUnnamed1228() { |
567 var o = new core.List<api.Entity>(); | 567 var o = new core.List<api.Entity>(); |
568 o.add(buildEntity()); | 568 o.add(buildEntity()); |
569 o.add(buildEntity()); | 569 o.add(buildEntity()); |
570 return o; | 570 return o; |
571 } | 571 } |
572 | 572 |
573 checkUnnamed1197(core.List<api.Entity> o) { | 573 checkUnnamed1228(core.List<api.Entity> o) { |
574 unittest.expect(o, unittest.hasLength(2)); | 574 unittest.expect(o, unittest.hasLength(2)); |
575 checkEntity(o[0]); | 575 checkEntity(o[0]); |
576 checkEntity(o[1]); | 576 checkEntity(o[1]); |
577 } | 577 } |
578 | 578 |
579 buildUnnamed1198() { | 579 buildUnnamed1229() { |
580 var o = new core.List<api.Entity>(); | 580 var o = new core.List<api.Entity>(); |
581 o.add(buildEntity()); | 581 o.add(buildEntity()); |
582 o.add(buildEntity()); | 582 o.add(buildEntity()); |
583 return o; | 583 return o; |
584 } | 584 } |
585 | 585 |
586 checkUnnamed1198(core.List<api.Entity> o) { | 586 checkUnnamed1229(core.List<api.Entity> o) { |
587 unittest.expect(o, unittest.hasLength(2)); | 587 unittest.expect(o, unittest.hasLength(2)); |
588 checkEntity(o[0]); | 588 checkEntity(o[0]); |
589 checkEntity(o[1]); | 589 checkEntity(o[1]); |
590 } | 590 } |
591 | 591 |
592 core.int buildCounterMutation = 0; | 592 core.int buildCounterMutation = 0; |
593 buildMutation() { | 593 buildMutation() { |
594 var o = new api.Mutation(); | 594 var o = new api.Mutation(); |
595 buildCounterMutation++; | 595 buildCounterMutation++; |
596 if (buildCounterMutation < 3) { | 596 if (buildCounterMutation < 3) { |
597 o.delete = buildUnnamed1194(); | 597 o.delete = buildUnnamed1225(); |
598 o.force = true; | 598 o.force = true; |
599 o.insert = buildUnnamed1195(); | 599 o.insert = buildUnnamed1226(); |
600 o.insertAutoId = buildUnnamed1196(); | 600 o.insertAutoId = buildUnnamed1227(); |
601 o.update = buildUnnamed1197(); | 601 o.update = buildUnnamed1228(); |
602 o.upsert = buildUnnamed1198(); | 602 o.upsert = buildUnnamed1229(); |
603 } | 603 } |
604 buildCounterMutation--; | 604 buildCounterMutation--; |
605 return o; | 605 return o; |
606 } | 606 } |
607 | 607 |
608 checkMutation(api.Mutation o) { | 608 checkMutation(api.Mutation o) { |
609 buildCounterMutation++; | 609 buildCounterMutation++; |
610 if (buildCounterMutation < 3) { | 610 if (buildCounterMutation < 3) { |
611 checkUnnamed1194(o.delete); | 611 checkUnnamed1225(o.delete); |
612 unittest.expect(o.force, unittest.isTrue); | 612 unittest.expect(o.force, unittest.isTrue); |
613 checkUnnamed1195(o.insert); | 613 checkUnnamed1226(o.insert); |
614 checkUnnamed1196(o.insertAutoId); | 614 checkUnnamed1227(o.insertAutoId); |
615 checkUnnamed1197(o.update); | 615 checkUnnamed1228(o.update); |
616 checkUnnamed1198(o.upsert); | 616 checkUnnamed1229(o.upsert); |
617 } | 617 } |
618 buildCounterMutation--; | 618 buildCounterMutation--; |
619 } | 619 } |
620 | 620 |
621 buildUnnamed1199() { | 621 buildUnnamed1230() { |
622 var o = new core.List<api.Key>(); | 622 var o = new core.List<api.Key>(); |
623 o.add(buildKey()); | 623 o.add(buildKey()); |
624 o.add(buildKey()); | 624 o.add(buildKey()); |
625 return o; | 625 return o; |
626 } | 626 } |
627 | 627 |
628 checkUnnamed1199(core.List<api.Key> o) { | 628 checkUnnamed1230(core.List<api.Key> o) { |
629 unittest.expect(o, unittest.hasLength(2)); | 629 unittest.expect(o, unittest.hasLength(2)); |
630 checkKey(o[0]); | 630 checkKey(o[0]); |
631 checkKey(o[1]); | 631 checkKey(o[1]); |
632 } | 632 } |
633 | 633 |
634 core.int buildCounterMutationResult = 0; | 634 core.int buildCounterMutationResult = 0; |
635 buildMutationResult() { | 635 buildMutationResult() { |
636 var o = new api.MutationResult(); | 636 var o = new api.MutationResult(); |
637 buildCounterMutationResult++; | 637 buildCounterMutationResult++; |
638 if (buildCounterMutationResult < 3) { | 638 if (buildCounterMutationResult < 3) { |
639 o.indexUpdates = 42; | 639 o.indexUpdates = 42; |
640 o.insertAutoIdKeys = buildUnnamed1199(); | 640 o.insertAutoIdKeys = buildUnnamed1230(); |
641 } | 641 } |
642 buildCounterMutationResult--; | 642 buildCounterMutationResult--; |
643 return o; | 643 return o; |
644 } | 644 } |
645 | 645 |
646 checkMutationResult(api.MutationResult o) { | 646 checkMutationResult(api.MutationResult o) { |
647 buildCounterMutationResult++; | 647 buildCounterMutationResult++; |
648 if (buildCounterMutationResult < 3) { | 648 if (buildCounterMutationResult < 3) { |
649 unittest.expect(o.indexUpdates, unittest.equals(42)); | 649 unittest.expect(o.indexUpdates, unittest.equals(42)); |
650 checkUnnamed1199(o.insertAutoIdKeys); | 650 checkUnnamed1230(o.insertAutoIdKeys); |
651 } | 651 } |
652 buildCounterMutationResult--; | 652 buildCounterMutationResult--; |
653 } | 653 } |
654 | 654 |
655 core.int buildCounterPartitionId = 0; | 655 core.int buildCounterPartitionId = 0; |
656 buildPartitionId() { | 656 buildPartitionId() { |
657 var o = new api.PartitionId(); | 657 var o = new api.PartitionId(); |
658 buildCounterPartitionId++; | 658 buildCounterPartitionId++; |
659 if (buildCounterPartitionId < 3) { | 659 if (buildCounterPartitionId < 3) { |
660 o.datasetId = "foo"; | 660 o.datasetId = "foo"; |
661 o.namespace = "foo"; | 661 o.namespace = "foo"; |
662 } | 662 } |
663 buildCounterPartitionId--; | 663 buildCounterPartitionId--; |
664 return o; | 664 return o; |
665 } | 665 } |
666 | 666 |
667 checkPartitionId(api.PartitionId o) { | 667 checkPartitionId(api.PartitionId o) { |
668 buildCounterPartitionId++; | 668 buildCounterPartitionId++; |
669 if (buildCounterPartitionId < 3) { | 669 if (buildCounterPartitionId < 3) { |
670 unittest.expect(o.datasetId, unittest.equals('foo')); | 670 unittest.expect(o.datasetId, unittest.equals('foo')); |
671 unittest.expect(o.namespace, unittest.equals('foo')); | 671 unittest.expect(o.namespace, unittest.equals('foo')); |
672 } | 672 } |
673 buildCounterPartitionId--; | 673 buildCounterPartitionId--; |
674 } | 674 } |
675 | 675 |
676 buildUnnamed1200() { | 676 buildUnnamed1231() { |
677 var o = new core.List<api.Value>(); | 677 var o = new core.List<api.Value>(); |
678 o.add(buildValue()); | 678 o.add(buildValue()); |
679 o.add(buildValue()); | 679 o.add(buildValue()); |
680 return o; | 680 return o; |
681 } | 681 } |
682 | 682 |
683 checkUnnamed1200(core.List<api.Value> o) { | 683 checkUnnamed1231(core.List<api.Value> o) { |
684 unittest.expect(o, unittest.hasLength(2)); | 684 unittest.expect(o, unittest.hasLength(2)); |
685 checkValue(o[0]); | 685 checkValue(o[0]); |
686 checkValue(o[1]); | 686 checkValue(o[1]); |
687 } | 687 } |
688 | 688 |
689 core.int buildCounterProperty = 0; | 689 core.int buildCounterProperty = 0; |
690 buildProperty() { | 690 buildProperty() { |
691 var o = new api.Property(); | 691 var o = new api.Property(); |
692 buildCounterProperty++; | 692 buildCounterProperty++; |
693 if (buildCounterProperty < 3) { | 693 if (buildCounterProperty < 3) { |
694 o.blobKeyValue = "foo"; | 694 o.blobKeyValue = "foo"; |
695 o.blobValue = "foo"; | 695 o.blobValue = "foo"; |
696 o.booleanValue = true; | 696 o.booleanValue = true; |
697 o.dateTimeValue = core.DateTime.parse("2002-02-27T14:01:02"); | 697 o.dateTimeValue = core.DateTime.parse("2002-02-27T14:01:02"); |
698 o.doubleValue = 42.0; | 698 o.doubleValue = 42.0; |
699 o.entityValue = buildEntity(); | 699 o.entityValue = buildEntity(); |
700 o.indexed = true; | 700 o.indexed = true; |
701 o.integerValue = "foo"; | 701 o.integerValue = "foo"; |
702 o.keyValue = buildKey(); | 702 o.keyValue = buildKey(); |
703 o.listValue = buildUnnamed1200(); | 703 o.listValue = buildUnnamed1231(); |
704 o.meaning = 42; | 704 o.meaning = 42; |
705 o.stringValue = "foo"; | 705 o.stringValue = "foo"; |
706 } | 706 } |
707 buildCounterProperty--; | 707 buildCounterProperty--; |
708 return o; | 708 return o; |
709 } | 709 } |
710 | 710 |
711 checkProperty(api.Property o) { | 711 checkProperty(api.Property o) { |
712 buildCounterProperty++; | 712 buildCounterProperty++; |
713 if (buildCounterProperty < 3) { | 713 if (buildCounterProperty < 3) { |
714 unittest.expect(o.blobKeyValue, unittest.equals('foo')); | 714 unittest.expect(o.blobKeyValue, unittest.equals('foo')); |
715 unittest.expect(o.blobValue, unittest.equals('foo')); | 715 unittest.expect(o.blobValue, unittest.equals('foo')); |
716 unittest.expect(o.booleanValue, unittest.isTrue); | 716 unittest.expect(o.booleanValue, unittest.isTrue); |
717 unittest.expect(o.dateTimeValue, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); | 717 unittest.expect(o.dateTimeValue, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); |
718 unittest.expect(o.doubleValue, unittest.equals(42.0)); | 718 unittest.expect(o.doubleValue, unittest.equals(42.0)); |
719 checkEntity(o.entityValue); | 719 checkEntity(o.entityValue); |
720 unittest.expect(o.indexed, unittest.isTrue); | 720 unittest.expect(o.indexed, unittest.isTrue); |
721 unittest.expect(o.integerValue, unittest.equals('foo')); | 721 unittest.expect(o.integerValue, unittest.equals('foo')); |
722 checkKey(o.keyValue); | 722 checkKey(o.keyValue); |
723 checkUnnamed1200(o.listValue); | 723 checkUnnamed1231(o.listValue); |
724 unittest.expect(o.meaning, unittest.equals(42)); | 724 unittest.expect(o.meaning, unittest.equals(42)); |
725 unittest.expect(o.stringValue, unittest.equals('foo')); | 725 unittest.expect(o.stringValue, unittest.equals('foo')); |
726 } | 726 } |
727 buildCounterProperty--; | 727 buildCounterProperty--; |
728 } | 728 } |
729 | 729 |
730 core.int buildCounterPropertyExpression = 0; | 730 core.int buildCounterPropertyExpression = 0; |
731 buildPropertyExpression() { | 731 buildPropertyExpression() { |
732 var o = new api.PropertyExpression(); | 732 var o = new api.PropertyExpression(); |
733 buildCounterPropertyExpression++; | 733 buildCounterPropertyExpression++; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 } | 804 } |
805 | 805 |
806 checkPropertyReference(api.PropertyReference o) { | 806 checkPropertyReference(api.PropertyReference o) { |
807 buildCounterPropertyReference++; | 807 buildCounterPropertyReference++; |
808 if (buildCounterPropertyReference < 3) { | 808 if (buildCounterPropertyReference < 3) { |
809 unittest.expect(o.name, unittest.equals('foo')); | 809 unittest.expect(o.name, unittest.equals('foo')); |
810 } | 810 } |
811 buildCounterPropertyReference--; | 811 buildCounterPropertyReference--; |
812 } | 812 } |
813 | 813 |
814 buildUnnamed1201() { | 814 buildUnnamed1232() { |
815 var o = new core.List<api.PropertyReference>(); | 815 var o = new core.List<api.PropertyReference>(); |
816 o.add(buildPropertyReference()); | 816 o.add(buildPropertyReference()); |
817 o.add(buildPropertyReference()); | 817 o.add(buildPropertyReference()); |
818 return o; | 818 return o; |
819 } | 819 } |
820 | 820 |
821 checkUnnamed1201(core.List<api.PropertyReference> o) { | 821 checkUnnamed1232(core.List<api.PropertyReference> o) { |
822 unittest.expect(o, unittest.hasLength(2)); | 822 unittest.expect(o, unittest.hasLength(2)); |
823 checkPropertyReference(o[0]); | 823 checkPropertyReference(o[0]); |
824 checkPropertyReference(o[1]); | 824 checkPropertyReference(o[1]); |
825 } | 825 } |
826 | 826 |
827 buildUnnamed1202() { | 827 buildUnnamed1233() { |
828 var o = new core.List<api.KindExpression>(); | 828 var o = new core.List<api.KindExpression>(); |
829 o.add(buildKindExpression()); | 829 o.add(buildKindExpression()); |
830 o.add(buildKindExpression()); | 830 o.add(buildKindExpression()); |
831 return o; | 831 return o; |
832 } | 832 } |
833 | 833 |
834 checkUnnamed1202(core.List<api.KindExpression> o) { | 834 checkUnnamed1233(core.List<api.KindExpression> o) { |
835 unittest.expect(o, unittest.hasLength(2)); | 835 unittest.expect(o, unittest.hasLength(2)); |
836 checkKindExpression(o[0]); | 836 checkKindExpression(o[0]); |
837 checkKindExpression(o[1]); | 837 checkKindExpression(o[1]); |
838 } | 838 } |
839 | 839 |
840 buildUnnamed1203() { | 840 buildUnnamed1234() { |
841 var o = new core.List<api.PropertyOrder>(); | 841 var o = new core.List<api.PropertyOrder>(); |
842 o.add(buildPropertyOrder()); | 842 o.add(buildPropertyOrder()); |
843 o.add(buildPropertyOrder()); | 843 o.add(buildPropertyOrder()); |
844 return o; | 844 return o; |
845 } | 845 } |
846 | 846 |
847 checkUnnamed1203(core.List<api.PropertyOrder> o) { | 847 checkUnnamed1234(core.List<api.PropertyOrder> o) { |
848 unittest.expect(o, unittest.hasLength(2)); | 848 unittest.expect(o, unittest.hasLength(2)); |
849 checkPropertyOrder(o[0]); | 849 checkPropertyOrder(o[0]); |
850 checkPropertyOrder(o[1]); | 850 checkPropertyOrder(o[1]); |
851 } | 851 } |
852 | 852 |
853 buildUnnamed1204() { | 853 buildUnnamed1235() { |
854 var o = new core.List<api.PropertyExpression>(); | 854 var o = new core.List<api.PropertyExpression>(); |
855 o.add(buildPropertyExpression()); | 855 o.add(buildPropertyExpression()); |
856 o.add(buildPropertyExpression()); | 856 o.add(buildPropertyExpression()); |
857 return o; | 857 return o; |
858 } | 858 } |
859 | 859 |
860 checkUnnamed1204(core.List<api.PropertyExpression> o) { | 860 checkUnnamed1235(core.List<api.PropertyExpression> o) { |
861 unittest.expect(o, unittest.hasLength(2)); | 861 unittest.expect(o, unittest.hasLength(2)); |
862 checkPropertyExpression(o[0]); | 862 checkPropertyExpression(o[0]); |
863 checkPropertyExpression(o[1]); | 863 checkPropertyExpression(o[1]); |
864 } | 864 } |
865 | 865 |
866 core.int buildCounterQuery = 0; | 866 core.int buildCounterQuery = 0; |
867 buildQuery() { | 867 buildQuery() { |
868 var o = new api.Query(); | 868 var o = new api.Query(); |
869 buildCounterQuery++; | 869 buildCounterQuery++; |
870 if (buildCounterQuery < 3) { | 870 if (buildCounterQuery < 3) { |
871 o.endCursor = "foo"; | 871 o.endCursor = "foo"; |
872 o.filter = buildFilter(); | 872 o.filter = buildFilter(); |
873 o.groupBy = buildUnnamed1201(); | 873 o.groupBy = buildUnnamed1232(); |
874 o.kinds = buildUnnamed1202(); | 874 o.kinds = buildUnnamed1233(); |
875 o.limit = 42; | 875 o.limit = 42; |
876 o.offset = 42; | 876 o.offset = 42; |
877 o.order = buildUnnamed1203(); | 877 o.order = buildUnnamed1234(); |
878 o.projection = buildUnnamed1204(); | 878 o.projection = buildUnnamed1235(); |
879 o.startCursor = "foo"; | 879 o.startCursor = "foo"; |
880 } | 880 } |
881 buildCounterQuery--; | 881 buildCounterQuery--; |
882 return o; | 882 return o; |
883 } | 883 } |
884 | 884 |
885 checkQuery(api.Query o) { | 885 checkQuery(api.Query o) { |
886 buildCounterQuery++; | 886 buildCounterQuery++; |
887 if (buildCounterQuery < 3) { | 887 if (buildCounterQuery < 3) { |
888 unittest.expect(o.endCursor, unittest.equals('foo')); | 888 unittest.expect(o.endCursor, unittest.equals('foo')); |
889 checkFilter(o.filter); | 889 checkFilter(o.filter); |
890 checkUnnamed1201(o.groupBy); | 890 checkUnnamed1232(o.groupBy); |
891 checkUnnamed1202(o.kinds); | 891 checkUnnamed1233(o.kinds); |
892 unittest.expect(o.limit, unittest.equals(42)); | 892 unittest.expect(o.limit, unittest.equals(42)); |
893 unittest.expect(o.offset, unittest.equals(42)); | 893 unittest.expect(o.offset, unittest.equals(42)); |
894 checkUnnamed1203(o.order); | 894 checkUnnamed1234(o.order); |
895 checkUnnamed1204(o.projection); | 895 checkUnnamed1235(o.projection); |
896 unittest.expect(o.startCursor, unittest.equals('foo')); | 896 unittest.expect(o.startCursor, unittest.equals('foo')); |
897 } | 897 } |
898 buildCounterQuery--; | 898 buildCounterQuery--; |
899 } | 899 } |
900 | 900 |
901 buildUnnamed1205() { | 901 buildUnnamed1236() { |
902 var o = new core.List<api.EntityResult>(); | 902 var o = new core.List<api.EntityResult>(); |
903 o.add(buildEntityResult()); | 903 o.add(buildEntityResult()); |
904 o.add(buildEntityResult()); | 904 o.add(buildEntityResult()); |
905 return o; | 905 return o; |
906 } | 906 } |
907 | 907 |
908 checkUnnamed1205(core.List<api.EntityResult> o) { | 908 checkUnnamed1236(core.List<api.EntityResult> o) { |
909 unittest.expect(o, unittest.hasLength(2)); | 909 unittest.expect(o, unittest.hasLength(2)); |
910 checkEntityResult(o[0]); | 910 checkEntityResult(o[0]); |
911 checkEntityResult(o[1]); | 911 checkEntityResult(o[1]); |
912 } | 912 } |
913 | 913 |
914 core.int buildCounterQueryResultBatch = 0; | 914 core.int buildCounterQueryResultBatch = 0; |
915 buildQueryResultBatch() { | 915 buildQueryResultBatch() { |
916 var o = new api.QueryResultBatch(); | 916 var o = new api.QueryResultBatch(); |
917 buildCounterQueryResultBatch++; | 917 buildCounterQueryResultBatch++; |
918 if (buildCounterQueryResultBatch < 3) { | 918 if (buildCounterQueryResultBatch < 3) { |
919 o.endCursor = "foo"; | 919 o.endCursor = "foo"; |
920 o.entityResultType = "foo"; | 920 o.entityResultType = "foo"; |
921 o.entityResults = buildUnnamed1205(); | 921 o.entityResults = buildUnnamed1236(); |
922 o.moreResults = "foo"; | 922 o.moreResults = "foo"; |
923 o.skippedResults = 42; | 923 o.skippedResults = 42; |
924 } | 924 } |
925 buildCounterQueryResultBatch--; | 925 buildCounterQueryResultBatch--; |
926 return o; | 926 return o; |
927 } | 927 } |
928 | 928 |
929 checkQueryResultBatch(api.QueryResultBatch o) { | 929 checkQueryResultBatch(api.QueryResultBatch o) { |
930 buildCounterQueryResultBatch++; | 930 buildCounterQueryResultBatch++; |
931 if (buildCounterQueryResultBatch < 3) { | 931 if (buildCounterQueryResultBatch < 3) { |
932 unittest.expect(o.endCursor, unittest.equals('foo')); | 932 unittest.expect(o.endCursor, unittest.equals('foo')); |
933 unittest.expect(o.entityResultType, unittest.equals('foo')); | 933 unittest.expect(o.entityResultType, unittest.equals('foo')); |
934 checkUnnamed1205(o.entityResults); | 934 checkUnnamed1236(o.entityResults); |
935 unittest.expect(o.moreResults, unittest.equals('foo')); | 935 unittest.expect(o.moreResults, unittest.equals('foo')); |
936 unittest.expect(o.skippedResults, unittest.equals(42)); | 936 unittest.expect(o.skippedResults, unittest.equals(42)); |
937 } | 937 } |
938 buildCounterQueryResultBatch--; | 938 buildCounterQueryResultBatch--; |
939 } | 939 } |
940 | 940 |
941 core.int buildCounterReadOptions = 0; | 941 core.int buildCounterReadOptions = 0; |
942 buildReadOptions() { | 942 buildReadOptions() { |
943 var o = new api.ReadOptions(); | 943 var o = new api.ReadOptions(); |
944 buildCounterReadOptions++; | 944 buildCounterReadOptions++; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1055 | 1055 |
1056 checkRunQueryResponse(api.RunQueryResponse o) { | 1056 checkRunQueryResponse(api.RunQueryResponse o) { |
1057 buildCounterRunQueryResponse++; | 1057 buildCounterRunQueryResponse++; |
1058 if (buildCounterRunQueryResponse < 3) { | 1058 if (buildCounterRunQueryResponse < 3) { |
1059 checkQueryResultBatch(o.batch); | 1059 checkQueryResultBatch(o.batch); |
1060 checkResponseHeader(o.header); | 1060 checkResponseHeader(o.header); |
1061 } | 1061 } |
1062 buildCounterRunQueryResponse--; | 1062 buildCounterRunQueryResponse--; |
1063 } | 1063 } |
1064 | 1064 |
1065 buildUnnamed1206() { | 1065 buildUnnamed1237() { |
1066 var o = new core.List<api.Value>(); | 1066 var o = new core.List<api.Value>(); |
1067 o.add(buildValue()); | 1067 o.add(buildValue()); |
1068 o.add(buildValue()); | 1068 o.add(buildValue()); |
1069 return o; | 1069 return o; |
1070 } | 1070 } |
1071 | 1071 |
1072 checkUnnamed1206(core.List<api.Value> o) { | 1072 checkUnnamed1237(core.List<api.Value> o) { |
1073 unittest.expect(o, unittest.hasLength(2)); | 1073 unittest.expect(o, unittest.hasLength(2)); |
1074 checkValue(o[0]); | 1074 checkValue(o[0]); |
1075 checkValue(o[1]); | 1075 checkValue(o[1]); |
1076 } | 1076 } |
1077 | 1077 |
1078 core.int buildCounterValue = 0; | 1078 core.int buildCounterValue = 0; |
1079 buildValue() { | 1079 buildValue() { |
1080 var o = new api.Value(); | 1080 var o = new api.Value(); |
1081 buildCounterValue++; | 1081 buildCounterValue++; |
1082 if (buildCounterValue < 3) { | 1082 if (buildCounterValue < 3) { |
1083 o.blobKeyValue = "foo"; | 1083 o.blobKeyValue = "foo"; |
1084 o.blobValue = "foo"; | 1084 o.blobValue = "foo"; |
1085 o.booleanValue = true; | 1085 o.booleanValue = true; |
1086 o.dateTimeValue = core.DateTime.parse("2002-02-27T14:01:02"); | 1086 o.dateTimeValue = core.DateTime.parse("2002-02-27T14:01:02"); |
1087 o.doubleValue = 42.0; | 1087 o.doubleValue = 42.0; |
1088 o.entityValue = buildEntity(); | 1088 o.entityValue = buildEntity(); |
1089 o.indexed = true; | 1089 o.indexed = true; |
1090 o.integerValue = "foo"; | 1090 o.integerValue = "foo"; |
1091 o.keyValue = buildKey(); | 1091 o.keyValue = buildKey(); |
1092 o.listValue = buildUnnamed1206(); | 1092 o.listValue = buildUnnamed1237(); |
1093 o.meaning = 42; | 1093 o.meaning = 42; |
1094 o.stringValue = "foo"; | 1094 o.stringValue = "foo"; |
1095 } | 1095 } |
1096 buildCounterValue--; | 1096 buildCounterValue--; |
1097 return o; | 1097 return o; |
1098 } | 1098 } |
1099 | 1099 |
1100 checkValue(api.Value o) { | 1100 checkValue(api.Value o) { |
1101 buildCounterValue++; | 1101 buildCounterValue++; |
1102 if (buildCounterValue < 3) { | 1102 if (buildCounterValue < 3) { |
1103 unittest.expect(o.blobKeyValue, unittest.equals('foo')); | 1103 unittest.expect(o.blobKeyValue, unittest.equals('foo')); |
1104 unittest.expect(o.blobValue, unittest.equals('foo')); | 1104 unittest.expect(o.blobValue, unittest.equals('foo')); |
1105 unittest.expect(o.booleanValue, unittest.isTrue); | 1105 unittest.expect(o.booleanValue, unittest.isTrue); |
1106 unittest.expect(o.dateTimeValue, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); | 1106 unittest.expect(o.dateTimeValue, unittest.equals(core.DateTime.parse("2002-0
2-27T14:01:02"))); |
1107 unittest.expect(o.doubleValue, unittest.equals(42.0)); | 1107 unittest.expect(o.doubleValue, unittest.equals(42.0)); |
1108 checkEntity(o.entityValue); | 1108 checkEntity(o.entityValue); |
1109 unittest.expect(o.indexed, unittest.isTrue); | 1109 unittest.expect(o.indexed, unittest.isTrue); |
1110 unittest.expect(o.integerValue, unittest.equals('foo')); | 1110 unittest.expect(o.integerValue, unittest.equals('foo')); |
1111 checkKey(o.keyValue); | 1111 checkKey(o.keyValue); |
1112 checkUnnamed1206(o.listValue); | 1112 checkUnnamed1237(o.listValue); |
1113 unittest.expect(o.meaning, unittest.equals(42)); | 1113 unittest.expect(o.meaning, unittest.equals(42)); |
1114 unittest.expect(o.stringValue, unittest.equals('foo')); | 1114 unittest.expect(o.stringValue, unittest.equals('foo')); |
1115 } | 1115 } |
1116 buildCounterValue--; | 1116 buildCounterValue--; |
1117 } | 1117 } |
1118 | 1118 |
1119 | 1119 |
1120 main() { | 1120 main() { |
1121 unittest.group("obj-schema-AllocateIdsRequest", () { | 1121 unittest.group("obj-schema-AllocateIdsRequest", () { |
1122 unittest.test("to-json--from-json", () { | 1122 unittest.test("to-json--from-json", () { |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1432 var arg_request = buildAllocateIdsRequest(); | 1432 var arg_request = buildAllocateIdsRequest(); |
1433 var arg_datasetId = "foo"; | 1433 var arg_datasetId = "foo"; |
1434 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1434 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1435 var obj = new api.AllocateIdsRequest.fromJson(json); | 1435 var obj = new api.AllocateIdsRequest.fromJson(json); |
1436 checkAllocateIdsRequest(obj); | 1436 checkAllocateIdsRequest(obj); |
1437 | 1437 |
1438 var path = (req.url).path; | 1438 var path = (req.url).path; |
1439 var pathOffset = 0; | 1439 var pathOffset = 0; |
1440 var index; | 1440 var index; |
1441 var subPart; | 1441 var subPart; |
1442 unittest.expect(path.substring(pathOffset, pathOffset + 28), unittest.eq
uals("/datastore/v1beta2/datasets/")); | 1442 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1443 pathOffset += 28; | 1443 pathOffset += 1; |
1444 index = path.indexOf("/allocateIds", pathOffset); | |
1445 unittest.expect(index >= 0, unittest.isTrue); | |
1446 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
1447 pathOffset = index; | |
1448 unittest.expect(subPart, unittest.equals("$arg_datasetId")); | |
1449 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("/allocateIds")); | |
1450 pathOffset += 12; | |
1451 | 1444 |
1452 var query = (req.url).query; | 1445 var query = (req.url).query; |
1453 var queryOffset = 0; | 1446 var queryOffset = 0; |
1454 var queryMap = {}; | 1447 var queryMap = {}; |
1455 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1448 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
1456 parseBool(n) { | 1449 parseBool(n) { |
1457 if (n == "true") return true; | 1450 if (n == "true") return true; |
1458 if (n == "false") return false; | 1451 if (n == "false") return false; |
1459 if (n == null) return null; | 1452 if (n == null) return null; |
1460 throw new core.ArgumentError("Invalid boolean: $n"); | 1453 throw new core.ArgumentError("Invalid boolean: $n"); |
(...skipping 24 matching lines...) Expand all Loading... |
1485 var arg_request = buildBeginTransactionRequest(); | 1478 var arg_request = buildBeginTransactionRequest(); |
1486 var arg_datasetId = "foo"; | 1479 var arg_datasetId = "foo"; |
1487 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1480 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1488 var obj = new api.BeginTransactionRequest.fromJson(json); | 1481 var obj = new api.BeginTransactionRequest.fromJson(json); |
1489 checkBeginTransactionRequest(obj); | 1482 checkBeginTransactionRequest(obj); |
1490 | 1483 |
1491 var path = (req.url).path; | 1484 var path = (req.url).path; |
1492 var pathOffset = 0; | 1485 var pathOffset = 0; |
1493 var index; | 1486 var index; |
1494 var subPart; | 1487 var subPart; |
1495 unittest.expect(path.substring(pathOffset, pathOffset + 28), unittest.eq
uals("/datastore/v1beta2/datasets/")); | 1488 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1496 pathOffset += 28; | 1489 pathOffset += 1; |
1497 index = path.indexOf("/beginTransaction", pathOffset); | |
1498 unittest.expect(index >= 0, unittest.isTrue); | |
1499 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
1500 pathOffset = index; | |
1501 unittest.expect(subPart, unittest.equals("$arg_datasetId")); | |
1502 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("/beginTransaction")); | |
1503 pathOffset += 17; | |
1504 | 1490 |
1505 var query = (req.url).query; | 1491 var query = (req.url).query; |
1506 var queryOffset = 0; | 1492 var queryOffset = 0; |
1507 var queryMap = {}; | 1493 var queryMap = {}; |
1508 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1494 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
1509 parseBool(n) { | 1495 parseBool(n) { |
1510 if (n == "true") return true; | 1496 if (n == "true") return true; |
1511 if (n == "false") return false; | 1497 if (n == "false") return false; |
1512 if (n == null) return null; | 1498 if (n == null) return null; |
1513 throw new core.ArgumentError("Invalid boolean: $n"); | 1499 throw new core.ArgumentError("Invalid boolean: $n"); |
(...skipping 24 matching lines...) Expand all Loading... |
1538 var arg_request = buildCommitRequest(); | 1524 var arg_request = buildCommitRequest(); |
1539 var arg_datasetId = "foo"; | 1525 var arg_datasetId = "foo"; |
1540 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1526 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1541 var obj = new api.CommitRequest.fromJson(json); | 1527 var obj = new api.CommitRequest.fromJson(json); |
1542 checkCommitRequest(obj); | 1528 checkCommitRequest(obj); |
1543 | 1529 |
1544 var path = (req.url).path; | 1530 var path = (req.url).path; |
1545 var pathOffset = 0; | 1531 var pathOffset = 0; |
1546 var index; | 1532 var index; |
1547 var subPart; | 1533 var subPart; |
1548 unittest.expect(path.substring(pathOffset, pathOffset + 28), unittest.eq
uals("/datastore/v1beta2/datasets/")); | 1534 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1549 pathOffset += 28; | 1535 pathOffset += 1; |
1550 index = path.indexOf("/commit", pathOffset); | |
1551 unittest.expect(index >= 0, unittest.isTrue); | |
1552 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
1553 pathOffset = index; | |
1554 unittest.expect(subPart, unittest.equals("$arg_datasetId")); | |
1555 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/commit")); | |
1556 pathOffset += 7; | |
1557 | 1536 |
1558 var query = (req.url).query; | 1537 var query = (req.url).query; |
1559 var queryOffset = 0; | 1538 var queryOffset = 0; |
1560 var queryMap = {}; | 1539 var queryMap = {}; |
1561 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1540 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
1562 parseBool(n) { | 1541 parseBool(n) { |
1563 if (n == "true") return true; | 1542 if (n == "true") return true; |
1564 if (n == "false") return false; | 1543 if (n == "false") return false; |
1565 if (n == null) return null; | 1544 if (n == null) return null; |
1566 throw new core.ArgumentError("Invalid boolean: $n"); | 1545 throw new core.ArgumentError("Invalid boolean: $n"); |
(...skipping 24 matching lines...) Expand all Loading... |
1591 var arg_request = buildLookupRequest(); | 1570 var arg_request = buildLookupRequest(); |
1592 var arg_datasetId = "foo"; | 1571 var arg_datasetId = "foo"; |
1593 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1572 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1594 var obj = new api.LookupRequest.fromJson(json); | 1573 var obj = new api.LookupRequest.fromJson(json); |
1595 checkLookupRequest(obj); | 1574 checkLookupRequest(obj); |
1596 | 1575 |
1597 var path = (req.url).path; | 1576 var path = (req.url).path; |
1598 var pathOffset = 0; | 1577 var pathOffset = 0; |
1599 var index; | 1578 var index; |
1600 var subPart; | 1579 var subPart; |
1601 unittest.expect(path.substring(pathOffset, pathOffset + 28), unittest.eq
uals("/datastore/v1beta2/datasets/")); | 1580 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1602 pathOffset += 28; | 1581 pathOffset += 1; |
1603 index = path.indexOf("/lookup", pathOffset); | |
1604 unittest.expect(index >= 0, unittest.isTrue); | |
1605 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
1606 pathOffset = index; | |
1607 unittest.expect(subPart, unittest.equals("$arg_datasetId")); | |
1608 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/lookup")); | |
1609 pathOffset += 7; | |
1610 | 1582 |
1611 var query = (req.url).query; | 1583 var query = (req.url).query; |
1612 var queryOffset = 0; | 1584 var queryOffset = 0; |
1613 var queryMap = {}; | 1585 var queryMap = {}; |
1614 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1586 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
1615 parseBool(n) { | 1587 parseBool(n) { |
1616 if (n == "true") return true; | 1588 if (n == "true") return true; |
1617 if (n == "false") return false; | 1589 if (n == "false") return false; |
1618 if (n == null) return null; | 1590 if (n == null) return null; |
1619 throw new core.ArgumentError("Invalid boolean: $n"); | 1591 throw new core.ArgumentError("Invalid boolean: $n"); |
(...skipping 24 matching lines...) Expand all Loading... |
1644 var arg_request = buildRollbackRequest(); | 1616 var arg_request = buildRollbackRequest(); |
1645 var arg_datasetId = "foo"; | 1617 var arg_datasetId = "foo"; |
1646 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1618 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1647 var obj = new api.RollbackRequest.fromJson(json); | 1619 var obj = new api.RollbackRequest.fromJson(json); |
1648 checkRollbackRequest(obj); | 1620 checkRollbackRequest(obj); |
1649 | 1621 |
1650 var path = (req.url).path; | 1622 var path = (req.url).path; |
1651 var pathOffset = 0; | 1623 var pathOffset = 0; |
1652 var index; | 1624 var index; |
1653 var subPart; | 1625 var subPart; |
1654 unittest.expect(path.substring(pathOffset, pathOffset + 28), unittest.eq
uals("/datastore/v1beta2/datasets/")); | 1626 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1655 pathOffset += 28; | 1627 pathOffset += 1; |
1656 index = path.indexOf("/rollback", pathOffset); | |
1657 unittest.expect(index >= 0, unittest.isTrue); | |
1658 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
1659 pathOffset = index; | |
1660 unittest.expect(subPart, unittest.equals("$arg_datasetId")); | |
1661 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/rollback")); | |
1662 pathOffset += 9; | |
1663 | 1628 |
1664 var query = (req.url).query; | 1629 var query = (req.url).query; |
1665 var queryOffset = 0; | 1630 var queryOffset = 0; |
1666 var queryMap = {}; | 1631 var queryMap = {}; |
1667 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1632 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
1668 parseBool(n) { | 1633 parseBool(n) { |
1669 if (n == "true") return true; | 1634 if (n == "true") return true; |
1670 if (n == "false") return false; | 1635 if (n == "false") return false; |
1671 if (n == null) return null; | 1636 if (n == null) return null; |
1672 throw new core.ArgumentError("Invalid boolean: $n"); | 1637 throw new core.ArgumentError("Invalid boolean: $n"); |
(...skipping 24 matching lines...) Expand all Loading... |
1697 var arg_request = buildRunQueryRequest(); | 1662 var arg_request = buildRunQueryRequest(); |
1698 var arg_datasetId = "foo"; | 1663 var arg_datasetId = "foo"; |
1699 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1664 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1700 var obj = new api.RunQueryRequest.fromJson(json); | 1665 var obj = new api.RunQueryRequest.fromJson(json); |
1701 checkRunQueryRequest(obj); | 1666 checkRunQueryRequest(obj); |
1702 | 1667 |
1703 var path = (req.url).path; | 1668 var path = (req.url).path; |
1704 var pathOffset = 0; | 1669 var pathOffset = 0; |
1705 var index; | 1670 var index; |
1706 var subPart; | 1671 var subPart; |
1707 unittest.expect(path.substring(pathOffset, pathOffset + 28), unittest.eq
uals("/datastore/v1beta2/datasets/")); | 1672 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1708 pathOffset += 28; | 1673 pathOffset += 1; |
1709 index = path.indexOf("/runQuery", pathOffset); | |
1710 unittest.expect(index >= 0, unittest.isTrue); | |
1711 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
1712 pathOffset = index; | |
1713 unittest.expect(subPart, unittest.equals("$arg_datasetId")); | |
1714 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/runQuery")); | |
1715 pathOffset += 9; | |
1716 | 1674 |
1717 var query = (req.url).query; | 1675 var query = (req.url).query; |
1718 var queryOffset = 0; | 1676 var queryOffset = 0; |
1719 var queryMap = {}; | 1677 var queryMap = {}; |
1720 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1678 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
1721 parseBool(n) { | 1679 parseBool(n) { |
1722 if (n == "true") return true; | 1680 if (n == "true") return true; |
1723 if (n == "false") return false; | 1681 if (n == "false") return false; |
1724 if (n == null) return null; | 1682 if (n == null) return null; |
1725 throw new core.ArgumentError("Invalid boolean: $n"); | 1683 throw new core.ArgumentError("Invalid boolean: $n"); |
(...skipping 15 matching lines...) Expand all Loading... |
1741 res.runQuery(arg_request, arg_datasetId).then(unittest.expectAsync(((api.R
unQueryResponse response) { | 1699 res.runQuery(arg_request, arg_datasetId).then(unittest.expectAsync(((api.R
unQueryResponse response) { |
1742 checkRunQueryResponse(response); | 1700 checkRunQueryResponse(response); |
1743 }))); | 1701 }))); |
1744 }); | 1702 }); |
1745 | 1703 |
1746 }); | 1704 }); |
1747 | 1705 |
1748 | 1706 |
1749 } | 1707 } |
1750 | 1708 |
OLD | NEW |