OLD | NEW |
1 library googleapis.datastore.v1.test; | 1 library googleapis.datastore.v1.test; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 } | 44 } |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map headers, core.String body) { |
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
52 } | 52 } |
53 | 53 |
54 buildUnnamed542() { | 54 buildUnnamed549() { |
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 checkUnnamed542(core.List<api.Key> o) { | 61 checkUnnamed549(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 = buildUnnamed542(); | 72 o.keys = buildUnnamed549(); |
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 checkUnnamed542(o.keys); | 81 checkUnnamed549(o.keys); |
82 } | 82 } |
83 buildCounterAllocateIdsRequest--; | 83 buildCounterAllocateIdsRequest--; |
84 } | 84 } |
85 | 85 |
86 buildUnnamed543() { | 86 buildUnnamed550() { |
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 checkUnnamed543(core.List<api.Key> o) { | 93 checkUnnamed550(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 = buildUnnamed543(); | 104 o.keys = buildUnnamed550(); |
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 checkUnnamed543(o.keys); | 113 checkUnnamed550(o.keys); |
114 } | 114 } |
115 buildCounterAllocateIdsResponse--; | 115 buildCounterAllocateIdsResponse--; |
116 } | 116 } |
117 | 117 |
118 buildUnnamed544() { | 118 buildUnnamed551() { |
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 checkUnnamed544(core.List<api.Value> o) { | 125 checkUnnamed551(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 = buildUnnamed544(); | 136 o.values = buildUnnamed551(); |
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 checkUnnamed544(o.values); | 145 checkUnnamed551(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 Loading... |
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 buildUnnamed545() { | 186 buildUnnamed552() { |
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 checkUnnamed545(core.List<api.Mutation> o) { | 193 checkUnnamed552(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 = buildUnnamed545(); | 205 o.mutations = buildUnnamed552(); |
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 checkUnnamed545(o.mutations); | 216 checkUnnamed552(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 buildUnnamed546() { | 222 buildUnnamed553() { |
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 checkUnnamed546(core.List<api.MutationResult> o) { | 229 checkUnnamed553(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 = buildUnnamed546(); | 241 o.mutationResults = buildUnnamed553(); |
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 checkUnnamed546(o.mutationResults); | 251 checkUnnamed553(o.mutationResults); |
252 } | 252 } |
253 buildCounterCommitResponse--; | 253 buildCounterCommitResponse--; |
254 } | 254 } |
255 | 255 |
256 buildUnnamed547() { | 256 buildUnnamed554() { |
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 checkUnnamed547(core.List<api.Filter> o) { | 263 checkUnnamed554(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 = buildUnnamed547(); | 274 o.filters = buildUnnamed554(); |
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 checkUnnamed547(o.filters); | 284 checkUnnamed554(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 buildUnnamed548() { | 290 buildUnnamed555() { |
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 checkUnnamed548(core.Map<core.String, api.Value> o) { | 297 checkUnnamed555(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 = buildUnnamed548(); | 309 o.properties = buildUnnamed555(); |
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 checkUnnamed548(o.properties); | 319 checkUnnamed555(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 Loading... |
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 buildUnnamed549() { | 368 buildUnnamed556() { |
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 checkUnnamed549(core.Map<core.String, api.GqlQueryParameter> o) { | 375 checkUnnamed556(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 buildUnnamed550() { | 381 buildUnnamed557() { |
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 checkUnnamed550(core.List<api.GqlQueryParameter> o) { | 388 checkUnnamed557(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 = buildUnnamed549(); | 400 o.namedBindings = buildUnnamed556(); |
401 o.positionalBindings = buildUnnamed550(); | 401 o.positionalBindings = buildUnnamed557(); |
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 checkUnnamed549(o.namedBindings); | 412 checkUnnamed556(o.namedBindings); |
413 checkUnnamed550(o.positionalBindings); | 413 checkUnnamed557(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 buildUnnamed551() { | 440 buildUnnamed558() { |
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 checkUnnamed551(core.List<api.PathElement> o) { | 447 checkUnnamed558(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 = buildUnnamed551(); | 459 o.path = buildUnnamed558(); |
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 checkUnnamed551(o.path); | 469 checkUnnamed558(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 Loading... |
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 buildUnnamed552() { | 514 buildUnnamed559() { |
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 checkUnnamed552(core.List<api.Key> o) { | 521 checkUnnamed559(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 = buildUnnamed552(); | 532 o.keys = buildUnnamed559(); |
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 checkUnnamed552(o.keys); | 542 checkUnnamed559(o.keys); |
543 checkReadOptions(o.readOptions); | 543 checkReadOptions(o.readOptions); |
544 } | 544 } |
545 buildCounterLookupRequest--; | 545 buildCounterLookupRequest--; |
546 } | 546 } |
547 | 547 |
548 buildUnnamed553() { | 548 buildUnnamed560() { |
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 checkUnnamed553(core.List<api.Key> o) { | 555 checkUnnamed560(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 buildUnnamed554() { | 561 buildUnnamed561() { |
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 checkUnnamed554(core.List<api.EntityResult> o) { | 568 checkUnnamed561(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 buildUnnamed555() { | 574 buildUnnamed562() { |
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 checkUnnamed555(core.List<api.EntityResult> o) { | 581 checkUnnamed562(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 = buildUnnamed553(); | 592 o.deferred = buildUnnamed560(); |
593 o.found = buildUnnamed554(); | 593 o.found = buildUnnamed561(); |
594 o.missing = buildUnnamed555(); | 594 o.missing = buildUnnamed562(); |
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 checkUnnamed553(o.deferred); | 603 checkUnnamed560(o.deferred); |
604 checkUnnamed554(o.found); | 604 checkUnnamed561(o.found); |
605 checkUnnamed555(o.missing); | 605 checkUnnamed562(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 Loading... |
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 buildUnnamed556() { | 786 buildUnnamed563() { |
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 checkUnnamed556(core.List<api.PropertyReference> o) { | 793 checkUnnamed563(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 buildUnnamed557() { | 799 buildUnnamed564() { |
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 checkUnnamed557(core.List<api.KindExpression> o) { | 806 checkUnnamed564(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 buildUnnamed558() { | 812 buildUnnamed565() { |
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 checkUnnamed558(core.List<api.PropertyOrder> o) { | 819 checkUnnamed565(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 buildUnnamed559() { | 825 buildUnnamed566() { |
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 checkUnnamed559(core.List<api.Projection> o) { | 832 checkUnnamed566(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 = buildUnnamed556(); | 843 o.distinctOn = buildUnnamed563(); |
844 o.endCursor = "foo"; | 844 o.endCursor = "foo"; |
845 o.filter = buildFilter(); | 845 o.filter = buildFilter(); |
846 o.kind = buildUnnamed557(); | 846 o.kind = buildUnnamed564(); |
847 o.limit = 42; | 847 o.limit = 42; |
848 o.offset = 42; | 848 o.offset = 42; |
849 o.order = buildUnnamed558(); | 849 o.order = buildUnnamed565(); |
850 o.projection = buildUnnamed559(); | 850 o.projection = buildUnnamed566(); |
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 checkUnnamed556(o.distinctOn); | 860 checkUnnamed563(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 checkUnnamed557(o.kind); | 863 checkUnnamed564(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 checkUnnamed558(o.order); | 866 checkUnnamed565(o.order); |
867 checkUnnamed559(o.projection); | 867 checkUnnamed566(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 buildUnnamed560() { | 873 buildUnnamed567() { |
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 checkUnnamed560(core.List<api.EntityResult> o) { | 880 checkUnnamed567(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 = buildUnnamed560(); | 893 o.entityResults = buildUnnamed567(); |
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 checkUnnamed560(o.entityResults); | 908 checkUnnamed567(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 Loading... |
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 |
OLD | NEW |