OLD | NEW |
1 library googleapis_beta.genomics.v1beta2.test; | 1 library googleapis.genomics.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; |
11 | 11 |
12 import 'package:googleapis_beta/genomics/v1beta2.dart' as api; | 12 import 'package:googleapis/genomics/v1.dart' as api; |
13 | 13 |
14 class HttpServerMock extends http.BaseClient { | 14 class HttpServerMock extends http.BaseClient { |
15 core.Function _callback; | 15 core.Function _callback; |
16 core.bool _expectJson; | 16 core.bool _expectJson; |
17 | 17 |
18 void register(core.Function callback, core.bool expectJson) { | 18 void register(core.Function callback, core.bool expectJson) { |
19 _callback = callback; | 19 _callback = callback; |
20 _expectJson = expectJson; | 20 _expectJson = expectJson; |
21 } | 21 } |
22 | 22 |
(...skipping 21 matching lines...) Expand all 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 buildUnnamed1500() { | 54 buildUnnamed1774() { |
| 55 var o = new core.List<core.Object>(); |
| 56 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 57 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 58 return o; |
| 59 } |
| 60 |
| 61 checkUnnamed1774(core.List<core.Object> o) { |
| 62 unittest.expect(o, unittest.hasLength(2)); |
| 63 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(
3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u
nittest.equals('foo')); |
| 64 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(
3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u
nittest.equals('foo')); |
| 65 } |
| 66 |
| 67 buildUnnamed1775() { |
| 68 var o = new core.Map<core.String, core.List<core.Object>>(); |
| 69 o["x"] = buildUnnamed1774(); |
| 70 o["y"] = buildUnnamed1774(); |
| 71 return o; |
| 72 } |
| 73 |
| 74 checkUnnamed1775(core.Map<core.String, core.List<core.Object>> o) { |
| 75 unittest.expect(o, unittest.hasLength(2)); |
| 76 checkUnnamed1774(o["x"]); |
| 77 checkUnnamed1774(o["y"]); |
| 78 } |
| 79 |
| 80 buildUnnamed1776() { |
55 var o = new core.List<core.String>(); | 81 var o = new core.List<core.String>(); |
56 o.add("foo"); | 82 o.add("foo"); |
57 o.add("foo"); | 83 o.add("foo"); |
58 return o; | 84 return o; |
59 } | 85 } |
60 | 86 |
61 checkUnnamed1500(core.List<core.String> o) { | 87 checkUnnamed1776(core.List<core.String> o) { |
62 unittest.expect(o, unittest.hasLength(2)); | |
63 unittest.expect(o[0], unittest.equals('foo')); | |
64 unittest.expect(o[1], unittest.equals('foo')); | |
65 } | |
66 | |
67 core.int buildCounterAlignReadGroupSetsRequest = 0; | |
68 buildAlignReadGroupSetsRequest() { | |
69 var o = new api.AlignReadGroupSetsRequest(); | |
70 buildCounterAlignReadGroupSetsRequest++; | |
71 if (buildCounterAlignReadGroupSetsRequest < 3) { | |
72 o.bamSourceUris = buildUnnamed1500(); | |
73 o.datasetId = "foo"; | |
74 o.interleavedFastqSource = buildInterleavedFastqSource(); | |
75 o.pairedFastqSource = buildPairedFastqSource(); | |
76 o.readGroupSetId = "foo"; | |
77 } | |
78 buildCounterAlignReadGroupSetsRequest--; | |
79 return o; | |
80 } | |
81 | |
82 checkAlignReadGroupSetsRequest(api.AlignReadGroupSetsRequest o) { | |
83 buildCounterAlignReadGroupSetsRequest++; | |
84 if (buildCounterAlignReadGroupSetsRequest < 3) { | |
85 checkUnnamed1500(o.bamSourceUris); | |
86 unittest.expect(o.datasetId, unittest.equals('foo')); | |
87 checkInterleavedFastqSource(o.interleavedFastqSource); | |
88 checkPairedFastqSource(o.pairedFastqSource); | |
89 unittest.expect(o.readGroupSetId, unittest.equals('foo')); | |
90 } | |
91 buildCounterAlignReadGroupSetsRequest--; | |
92 } | |
93 | |
94 core.int buildCounterAlignReadGroupSetsResponse = 0; | |
95 buildAlignReadGroupSetsResponse() { | |
96 var o = new api.AlignReadGroupSetsResponse(); | |
97 buildCounterAlignReadGroupSetsResponse++; | |
98 if (buildCounterAlignReadGroupSetsResponse < 3) { | |
99 o.jobId = "foo"; | |
100 } | |
101 buildCounterAlignReadGroupSetsResponse--; | |
102 return o; | |
103 } | |
104 | |
105 checkAlignReadGroupSetsResponse(api.AlignReadGroupSetsResponse o) { | |
106 buildCounterAlignReadGroupSetsResponse++; | |
107 if (buildCounterAlignReadGroupSetsResponse < 3) { | |
108 unittest.expect(o.jobId, unittest.equals('foo')); | |
109 } | |
110 buildCounterAlignReadGroupSetsResponse--; | |
111 } | |
112 | |
113 buildUnnamed1501() { | |
114 var o = new core.List<core.String>(); | |
115 o.add("foo"); | |
116 o.add("foo"); | |
117 return o; | |
118 } | |
119 | |
120 checkUnnamed1501(core.List<core.String> o) { | |
121 unittest.expect(o, unittest.hasLength(2)); | |
122 unittest.expect(o[0], unittest.equals('foo')); | |
123 unittest.expect(o[1], unittest.equals('foo')); | |
124 } | |
125 | |
126 buildUnnamed1502() { | |
127 var o = new core.Map<core.String, core.List<core.String>>(); | |
128 o["x"] = buildUnnamed1501(); | |
129 o["y"] = buildUnnamed1501(); | |
130 return o; | |
131 } | |
132 | |
133 checkUnnamed1502(core.Map<core.String, core.List<core.String>> o) { | |
134 unittest.expect(o, unittest.hasLength(2)); | |
135 checkUnnamed1501(o["x"]); | |
136 checkUnnamed1501(o["y"]); | |
137 } | |
138 | |
139 core.int buildCounterAnnotation = 0; | |
140 buildAnnotation() { | |
141 var o = new api.Annotation(); | |
142 buildCounterAnnotation++; | |
143 if (buildCounterAnnotation < 3) { | |
144 o.annotationSetId = "foo"; | |
145 o.id = "foo"; | |
146 o.info = buildUnnamed1502(); | |
147 o.name = "foo"; | |
148 o.position = buildRangePosition(); | |
149 o.transcript = buildTranscript(); | |
150 o.type = "foo"; | |
151 o.variant = buildVariantAnnotation(); | |
152 } | |
153 buildCounterAnnotation--; | |
154 return o; | |
155 } | |
156 | |
157 checkAnnotation(api.Annotation o) { | |
158 buildCounterAnnotation++; | |
159 if (buildCounterAnnotation < 3) { | |
160 unittest.expect(o.annotationSetId, unittest.equals('foo')); | |
161 unittest.expect(o.id, unittest.equals('foo')); | |
162 checkUnnamed1502(o.info); | |
163 unittest.expect(o.name, unittest.equals('foo')); | |
164 checkRangePosition(o.position); | |
165 checkTranscript(o.transcript); | |
166 unittest.expect(o.type, unittest.equals('foo')); | |
167 checkVariantAnnotation(o.variant); | |
168 } | |
169 buildCounterAnnotation--; | |
170 } | |
171 | |
172 buildUnnamed1503() { | |
173 var o = new core.List<core.String>(); | |
174 o.add("foo"); | |
175 o.add("foo"); | |
176 return o; | |
177 } | |
178 | |
179 checkUnnamed1503(core.List<core.String> o) { | |
180 unittest.expect(o, unittest.hasLength(2)); | |
181 unittest.expect(o[0], unittest.equals('foo')); | |
182 unittest.expect(o[1], unittest.equals('foo')); | |
183 } | |
184 | |
185 buildUnnamed1504() { | |
186 var o = new core.Map<core.String, core.List<core.String>>(); | |
187 o["x"] = buildUnnamed1503(); | |
188 o["y"] = buildUnnamed1503(); | |
189 return o; | |
190 } | |
191 | |
192 checkUnnamed1504(core.Map<core.String, core.List<core.String>> o) { | |
193 unittest.expect(o, unittest.hasLength(2)); | |
194 checkUnnamed1503(o["x"]); | |
195 checkUnnamed1503(o["y"]); | |
196 } | |
197 | |
198 core.int buildCounterAnnotationSet = 0; | |
199 buildAnnotationSet() { | |
200 var o = new api.AnnotationSet(); | |
201 buildCounterAnnotationSet++; | |
202 if (buildCounterAnnotationSet < 3) { | |
203 o.datasetId = "foo"; | |
204 o.id = "foo"; | |
205 o.info = buildUnnamed1504(); | |
206 o.name = "foo"; | |
207 o.referenceSetId = "foo"; | |
208 o.sourceUri = "foo"; | |
209 o.type = "foo"; | |
210 } | |
211 buildCounterAnnotationSet--; | |
212 return o; | |
213 } | |
214 | |
215 checkAnnotationSet(api.AnnotationSet o) { | |
216 buildCounterAnnotationSet++; | |
217 if (buildCounterAnnotationSet < 3) { | |
218 unittest.expect(o.datasetId, unittest.equals('foo')); | |
219 unittest.expect(o.id, unittest.equals('foo')); | |
220 checkUnnamed1504(o.info); | |
221 unittest.expect(o.name, unittest.equals('foo')); | |
222 unittest.expect(o.referenceSetId, unittest.equals('foo')); | |
223 unittest.expect(o.sourceUri, unittest.equals('foo')); | |
224 unittest.expect(o.type, unittest.equals('foo')); | |
225 } | |
226 buildCounterAnnotationSet--; | |
227 } | |
228 | |
229 buildUnnamed1505() { | |
230 var o = new core.List<api.BatchAnnotationsResponseEntry>(); | |
231 o.add(buildBatchAnnotationsResponseEntry()); | |
232 o.add(buildBatchAnnotationsResponseEntry()); | |
233 return o; | |
234 } | |
235 | |
236 checkUnnamed1505(core.List<api.BatchAnnotationsResponseEntry> o) { | |
237 unittest.expect(o, unittest.hasLength(2)); | |
238 checkBatchAnnotationsResponseEntry(o[0]); | |
239 checkBatchAnnotationsResponseEntry(o[1]); | |
240 } | |
241 | |
242 core.int buildCounterBatchAnnotationsResponse = 0; | |
243 buildBatchAnnotationsResponse() { | |
244 var o = new api.BatchAnnotationsResponse(); | |
245 buildCounterBatchAnnotationsResponse++; | |
246 if (buildCounterBatchAnnotationsResponse < 3) { | |
247 o.entries = buildUnnamed1505(); | |
248 } | |
249 buildCounterBatchAnnotationsResponse--; | |
250 return o; | |
251 } | |
252 | |
253 checkBatchAnnotationsResponse(api.BatchAnnotationsResponse o) { | |
254 buildCounterBatchAnnotationsResponse++; | |
255 if (buildCounterBatchAnnotationsResponse < 3) { | |
256 checkUnnamed1505(o.entries); | |
257 } | |
258 buildCounterBatchAnnotationsResponse--; | |
259 } | |
260 | |
261 core.int buildCounterBatchAnnotationsResponseEntry = 0; | |
262 buildBatchAnnotationsResponseEntry() { | |
263 var o = new api.BatchAnnotationsResponseEntry(); | |
264 buildCounterBatchAnnotationsResponseEntry++; | |
265 if (buildCounterBatchAnnotationsResponseEntry < 3) { | |
266 o.annotation = buildAnnotation(); | |
267 o.status = buildBatchAnnotationsResponseEntryStatus(); | |
268 } | |
269 buildCounterBatchAnnotationsResponseEntry--; | |
270 return o; | |
271 } | |
272 | |
273 checkBatchAnnotationsResponseEntry(api.BatchAnnotationsResponseEntry o) { | |
274 buildCounterBatchAnnotationsResponseEntry++; | |
275 if (buildCounterBatchAnnotationsResponseEntry < 3) { | |
276 checkAnnotation(o.annotation); | |
277 checkBatchAnnotationsResponseEntryStatus(o.status); | |
278 } | |
279 buildCounterBatchAnnotationsResponseEntry--; | |
280 } | |
281 | |
282 core.int buildCounterBatchAnnotationsResponseEntryStatus = 0; | |
283 buildBatchAnnotationsResponseEntryStatus() { | |
284 var o = new api.BatchAnnotationsResponseEntryStatus(); | |
285 buildCounterBatchAnnotationsResponseEntryStatus++; | |
286 if (buildCounterBatchAnnotationsResponseEntryStatus < 3) { | |
287 o.code = 42; | |
288 o.message = "foo"; | |
289 } | |
290 buildCounterBatchAnnotationsResponseEntryStatus--; | |
291 return o; | |
292 } | |
293 | |
294 checkBatchAnnotationsResponseEntryStatus(api.BatchAnnotationsResponseEntryStatus
o) { | |
295 buildCounterBatchAnnotationsResponseEntryStatus++; | |
296 if (buildCounterBatchAnnotationsResponseEntryStatus < 3) { | |
297 unittest.expect(o.code, unittest.equals(42)); | |
298 unittest.expect(o.message, unittest.equals('foo')); | |
299 } | |
300 buildCounterBatchAnnotationsResponseEntryStatus--; | |
301 } | |
302 | |
303 buildUnnamed1506() { | |
304 var o = new core.List<api.Annotation>(); | |
305 o.add(buildAnnotation()); | |
306 o.add(buildAnnotation()); | |
307 return o; | |
308 } | |
309 | |
310 checkUnnamed1506(core.List<api.Annotation> o) { | |
311 unittest.expect(o, unittest.hasLength(2)); | |
312 checkAnnotation(o[0]); | |
313 checkAnnotation(o[1]); | |
314 } | |
315 | |
316 core.int buildCounterBatchCreateAnnotationsRequest = 0; | |
317 buildBatchCreateAnnotationsRequest() { | |
318 var o = new api.BatchCreateAnnotationsRequest(); | |
319 buildCounterBatchCreateAnnotationsRequest++; | |
320 if (buildCounterBatchCreateAnnotationsRequest < 3) { | |
321 o.annotations = buildUnnamed1506(); | |
322 } | |
323 buildCounterBatchCreateAnnotationsRequest--; | |
324 return o; | |
325 } | |
326 | |
327 checkBatchCreateAnnotationsRequest(api.BatchCreateAnnotationsRequest o) { | |
328 buildCounterBatchCreateAnnotationsRequest++; | |
329 if (buildCounterBatchCreateAnnotationsRequest < 3) { | |
330 checkUnnamed1506(o.annotations); | |
331 } | |
332 buildCounterBatchCreateAnnotationsRequest--; | |
333 } | |
334 | |
335 buildUnnamed1507() { | |
336 var o = new core.List<core.int>(); | |
337 o.add(42); | |
338 o.add(42); | |
339 return o; | |
340 } | |
341 | |
342 checkUnnamed1507(core.List<core.int> o) { | |
343 unittest.expect(o, unittest.hasLength(2)); | |
344 unittest.expect(o[0], unittest.equals(42)); | |
345 unittest.expect(o[1], unittest.equals(42)); | |
346 } | |
347 | |
348 buildUnnamed1508() { | |
349 var o = new core.List<core.double>(); | |
350 o.add(42.0); | |
351 o.add(42.0); | |
352 return o; | |
353 } | |
354 | |
355 checkUnnamed1508(core.List<core.double> o) { | |
356 unittest.expect(o, unittest.hasLength(2)); | |
357 unittest.expect(o[0], unittest.equals(42.0)); | |
358 unittest.expect(o[1], unittest.equals(42.0)); | |
359 } | |
360 | |
361 buildUnnamed1509() { | |
362 var o = new core.List<core.String>(); | |
363 o.add("foo"); | |
364 o.add("foo"); | |
365 return o; | |
366 } | |
367 | |
368 checkUnnamed1509(core.List<core.String> o) { | |
369 unittest.expect(o, unittest.hasLength(2)); | |
370 unittest.expect(o[0], unittest.equals('foo')); | |
371 unittest.expect(o[1], unittest.equals('foo')); | |
372 } | |
373 | |
374 buildUnnamed1510() { | |
375 var o = new core.Map<core.String, core.List<core.String>>(); | |
376 o["x"] = buildUnnamed1509(); | |
377 o["y"] = buildUnnamed1509(); | |
378 return o; | |
379 } | |
380 | |
381 checkUnnamed1510(core.Map<core.String, core.List<core.String>> o) { | |
382 unittest.expect(o, unittest.hasLength(2)); | |
383 checkUnnamed1509(o["x"]); | |
384 checkUnnamed1509(o["y"]); | |
385 } | |
386 | |
387 core.int buildCounterCall = 0; | |
388 buildCall() { | |
389 var o = new api.Call(); | |
390 buildCounterCall++; | |
391 if (buildCounterCall < 3) { | |
392 o.callSetId = "foo"; | |
393 o.callSetName = "foo"; | |
394 o.genotype = buildUnnamed1507(); | |
395 o.genotypeLikelihood = buildUnnamed1508(); | |
396 o.info = buildUnnamed1510(); | |
397 o.phaseset = "foo"; | |
398 } | |
399 buildCounterCall--; | |
400 return o; | |
401 } | |
402 | |
403 checkCall(api.Call o) { | |
404 buildCounterCall++; | |
405 if (buildCounterCall < 3) { | |
406 unittest.expect(o.callSetId, unittest.equals('foo')); | |
407 unittest.expect(o.callSetName, unittest.equals('foo')); | |
408 checkUnnamed1507(o.genotype); | |
409 checkUnnamed1508(o.genotypeLikelihood); | |
410 checkUnnamed1510(o.info); | |
411 unittest.expect(o.phaseset, unittest.equals('foo')); | |
412 } | |
413 buildCounterCall--; | |
414 } | |
415 | |
416 buildUnnamed1511() { | |
417 var o = new core.List<core.String>(); | |
418 o.add("foo"); | |
419 o.add("foo"); | |
420 return o; | |
421 } | |
422 | |
423 checkUnnamed1511(core.List<core.String> o) { | |
424 unittest.expect(o, unittest.hasLength(2)); | |
425 unittest.expect(o[0], unittest.equals('foo')); | |
426 unittest.expect(o[1], unittest.equals('foo')); | |
427 } | |
428 | |
429 core.int buildCounterCallReadGroupSetsRequest = 0; | |
430 buildCallReadGroupSetsRequest() { | |
431 var o = new api.CallReadGroupSetsRequest(); | |
432 buildCounterCallReadGroupSetsRequest++; | |
433 if (buildCounterCallReadGroupSetsRequest < 3) { | |
434 o.datasetId = "foo"; | |
435 o.readGroupSetId = "foo"; | |
436 o.sourceUris = buildUnnamed1511(); | |
437 } | |
438 buildCounterCallReadGroupSetsRequest--; | |
439 return o; | |
440 } | |
441 | |
442 checkCallReadGroupSetsRequest(api.CallReadGroupSetsRequest o) { | |
443 buildCounterCallReadGroupSetsRequest++; | |
444 if (buildCounterCallReadGroupSetsRequest < 3) { | |
445 unittest.expect(o.datasetId, unittest.equals('foo')); | |
446 unittest.expect(o.readGroupSetId, unittest.equals('foo')); | |
447 checkUnnamed1511(o.sourceUris); | |
448 } | |
449 buildCounterCallReadGroupSetsRequest--; | |
450 } | |
451 | |
452 core.int buildCounterCallReadGroupSetsResponse = 0; | |
453 buildCallReadGroupSetsResponse() { | |
454 var o = new api.CallReadGroupSetsResponse(); | |
455 buildCounterCallReadGroupSetsResponse++; | |
456 if (buildCounterCallReadGroupSetsResponse < 3) { | |
457 o.jobId = "foo"; | |
458 } | |
459 buildCounterCallReadGroupSetsResponse--; | |
460 return o; | |
461 } | |
462 | |
463 checkCallReadGroupSetsResponse(api.CallReadGroupSetsResponse o) { | |
464 buildCounterCallReadGroupSetsResponse++; | |
465 if (buildCounterCallReadGroupSetsResponse < 3) { | |
466 unittest.expect(o.jobId, unittest.equals('foo')); | |
467 } | |
468 buildCounterCallReadGroupSetsResponse--; | |
469 } | |
470 | |
471 buildUnnamed1512() { | |
472 var o = new core.List<core.String>(); | |
473 o.add("foo"); | |
474 o.add("foo"); | |
475 return o; | |
476 } | |
477 | |
478 checkUnnamed1512(core.List<core.String> o) { | |
479 unittest.expect(o, unittest.hasLength(2)); | |
480 unittest.expect(o[0], unittest.equals('foo')); | |
481 unittest.expect(o[1], unittest.equals('foo')); | |
482 } | |
483 | |
484 buildUnnamed1513() { | |
485 var o = new core.Map<core.String, core.List<core.String>>(); | |
486 o["x"] = buildUnnamed1512(); | |
487 o["y"] = buildUnnamed1512(); | |
488 return o; | |
489 } | |
490 | |
491 checkUnnamed1513(core.Map<core.String, core.List<core.String>> o) { | |
492 unittest.expect(o, unittest.hasLength(2)); | |
493 checkUnnamed1512(o["x"]); | |
494 checkUnnamed1512(o["y"]); | |
495 } | |
496 | |
497 buildUnnamed1514() { | |
498 var o = new core.List<core.String>(); | |
499 o.add("foo"); | |
500 o.add("foo"); | |
501 return o; | |
502 } | |
503 | |
504 checkUnnamed1514(core.List<core.String> o) { | |
505 unittest.expect(o, unittest.hasLength(2)); | 88 unittest.expect(o, unittest.hasLength(2)); |
506 unittest.expect(o[0], unittest.equals('foo')); | 89 unittest.expect(o[0], unittest.equals('foo')); |
507 unittest.expect(o[1], unittest.equals('foo')); | 90 unittest.expect(o[1], unittest.equals('foo')); |
508 } | 91 } |
509 | 92 |
510 core.int buildCounterCallSet = 0; | 93 core.int buildCounterCallSet = 0; |
511 buildCallSet() { | 94 buildCallSet() { |
512 var o = new api.CallSet(); | 95 var o = new api.CallSet(); |
513 buildCounterCallSet++; | 96 buildCounterCallSet++; |
514 if (buildCounterCallSet < 3) { | 97 if (buildCounterCallSet < 3) { |
515 o.created = "foo"; | 98 o.created = "foo"; |
516 o.id = "foo"; | 99 o.id = "foo"; |
517 o.info = buildUnnamed1513(); | 100 o.info = buildUnnamed1775(); |
518 o.name = "foo"; | 101 o.name = "foo"; |
519 o.sampleId = "foo"; | 102 o.sampleId = "foo"; |
520 o.variantSetIds = buildUnnamed1514(); | 103 o.variantSetIds = buildUnnamed1776(); |
521 } | 104 } |
522 buildCounterCallSet--; | 105 buildCounterCallSet--; |
523 return o; | 106 return o; |
524 } | 107 } |
525 | 108 |
526 checkCallSet(api.CallSet o) { | 109 checkCallSet(api.CallSet o) { |
527 buildCounterCallSet++; | 110 buildCounterCallSet++; |
528 if (buildCounterCallSet < 3) { | 111 if (buildCounterCallSet < 3) { |
529 unittest.expect(o.created, unittest.equals('foo')); | 112 unittest.expect(o.created, unittest.equals('foo')); |
530 unittest.expect(o.id, unittest.equals('foo')); | 113 unittest.expect(o.id, unittest.equals('foo')); |
531 checkUnnamed1513(o.info); | 114 checkUnnamed1775(o.info); |
532 unittest.expect(o.name, unittest.equals('foo')); | 115 unittest.expect(o.name, unittest.equals('foo')); |
533 unittest.expect(o.sampleId, unittest.equals('foo')); | 116 unittest.expect(o.sampleId, unittest.equals('foo')); |
534 checkUnnamed1514(o.variantSetIds); | 117 checkUnnamed1776(o.variantSetIds); |
535 } | 118 } |
536 buildCounterCallSet--; | 119 buildCounterCallSet--; |
537 } | 120 } |
538 | 121 |
| 122 core.int buildCounterCancelOperationRequest = 0; |
| 123 buildCancelOperationRequest() { |
| 124 var o = new api.CancelOperationRequest(); |
| 125 buildCounterCancelOperationRequest++; |
| 126 if (buildCounterCancelOperationRequest < 3) { |
| 127 } |
| 128 buildCounterCancelOperationRequest--; |
| 129 return o; |
| 130 } |
| 131 |
| 132 checkCancelOperationRequest(api.CancelOperationRequest o) { |
| 133 buildCounterCancelOperationRequest++; |
| 134 if (buildCounterCancelOperationRequest < 3) { |
| 135 } |
| 136 buildCounterCancelOperationRequest--; |
| 137 } |
| 138 |
539 core.int buildCounterCigarUnit = 0; | 139 core.int buildCounterCigarUnit = 0; |
540 buildCigarUnit() { | 140 buildCigarUnit() { |
541 var o = new api.CigarUnit(); | 141 var o = new api.CigarUnit(); |
542 buildCounterCigarUnit++; | 142 buildCounterCigarUnit++; |
543 if (buildCounterCigarUnit < 3) { | 143 if (buildCounterCigarUnit < 3) { |
544 o.operation = "foo"; | 144 o.operation = "foo"; |
545 o.operationLength = "foo"; | 145 o.operationLength = "foo"; |
546 o.referenceSequence = "foo"; | 146 o.referenceSequence = "foo"; |
547 } | 147 } |
548 buildCounterCigarUnit--; | 148 buildCounterCigarUnit--; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 buildCounterCoverageBucket--; | 180 buildCounterCoverageBucket--; |
581 } | 181 } |
582 | 182 |
583 core.int buildCounterDataset = 0; | 183 core.int buildCounterDataset = 0; |
584 buildDataset() { | 184 buildDataset() { |
585 var o = new api.Dataset(); | 185 var o = new api.Dataset(); |
586 buildCounterDataset++; | 186 buildCounterDataset++; |
587 if (buildCounterDataset < 3) { | 187 if (buildCounterDataset < 3) { |
588 o.createTime = "foo"; | 188 o.createTime = "foo"; |
589 o.id = "foo"; | 189 o.id = "foo"; |
590 o.isPublic = true; | |
591 o.name = "foo"; | 190 o.name = "foo"; |
592 o.projectNumber = "foo"; | 191 o.projectId = "foo"; |
593 } | 192 } |
594 buildCounterDataset--; | 193 buildCounterDataset--; |
595 return o; | 194 return o; |
596 } | 195 } |
597 | 196 |
598 checkDataset(api.Dataset o) { | 197 checkDataset(api.Dataset o) { |
599 buildCounterDataset++; | 198 buildCounterDataset++; |
600 if (buildCounterDataset < 3) { | 199 if (buildCounterDataset < 3) { |
601 unittest.expect(o.createTime, unittest.equals('foo')); | 200 unittest.expect(o.createTime, unittest.equals('foo')); |
602 unittest.expect(o.id, unittest.equals('foo')); | 201 unittest.expect(o.id, unittest.equals('foo')); |
603 unittest.expect(o.isPublic, unittest.isTrue); | |
604 unittest.expect(o.name, unittest.equals('foo')); | 202 unittest.expect(o.name, unittest.equals('foo')); |
605 unittest.expect(o.projectNumber, unittest.equals('foo')); | 203 unittest.expect(o.projectId, unittest.equals('foo')); |
606 } | 204 } |
607 buildCounterDataset--; | 205 buildCounterDataset--; |
608 } | 206 } |
609 | 207 |
610 buildUnnamed1515() { | 208 core.int buildCounterEmpty = 0; |
| 209 buildEmpty() { |
| 210 var o = new api.Empty(); |
| 211 buildCounterEmpty++; |
| 212 if (buildCounterEmpty < 3) { |
| 213 } |
| 214 buildCounterEmpty--; |
| 215 return o; |
| 216 } |
| 217 |
| 218 checkEmpty(api.Empty o) { |
| 219 buildCounterEmpty++; |
| 220 if (buildCounterEmpty < 3) { |
| 221 } |
| 222 buildCounterEmpty--; |
| 223 } |
| 224 |
| 225 core.int buildCounterExperiment = 0; |
| 226 buildExperiment() { |
| 227 var o = new api.Experiment(); |
| 228 buildCounterExperiment++; |
| 229 if (buildCounterExperiment < 3) { |
| 230 o.instrumentModel = "foo"; |
| 231 o.libraryId = "foo"; |
| 232 o.platformUnit = "foo"; |
| 233 o.sequencingCenter = "foo"; |
| 234 } |
| 235 buildCounterExperiment--; |
| 236 return o; |
| 237 } |
| 238 |
| 239 checkExperiment(api.Experiment o) { |
| 240 buildCounterExperiment++; |
| 241 if (buildCounterExperiment < 3) { |
| 242 unittest.expect(o.instrumentModel, unittest.equals('foo')); |
| 243 unittest.expect(o.libraryId, unittest.equals('foo')); |
| 244 unittest.expect(o.platformUnit, unittest.equals('foo')); |
| 245 unittest.expect(o.sequencingCenter, unittest.equals('foo')); |
| 246 } |
| 247 buildCounterExperiment--; |
| 248 } |
| 249 |
| 250 buildUnnamed1777() { |
611 var o = new core.List<core.String>(); | 251 var o = new core.List<core.String>(); |
612 o.add("foo"); | 252 o.add("foo"); |
613 o.add("foo"); | 253 o.add("foo"); |
614 return o; | 254 return o; |
615 } | 255 } |
616 | 256 |
617 checkUnnamed1515(core.List<core.String> o) { | 257 checkUnnamed1777(core.List<core.String> o) { |
618 unittest.expect(o, unittest.hasLength(2)); | 258 unittest.expect(o, unittest.hasLength(2)); |
619 unittest.expect(o[0], unittest.equals('foo')); | 259 unittest.expect(o[0], unittest.equals('foo')); |
620 unittest.expect(o[1], unittest.equals('foo')); | 260 unittest.expect(o[1], unittest.equals('foo')); |
621 } | 261 } |
622 | 262 |
623 buildUnnamed1516() { | 263 core.int buildCounterExportReadGroupSetRequest = 0; |
| 264 buildExportReadGroupSetRequest() { |
| 265 var o = new api.ExportReadGroupSetRequest(); |
| 266 buildCounterExportReadGroupSetRequest++; |
| 267 if (buildCounterExportReadGroupSetRequest < 3) { |
| 268 o.exportUri = "foo"; |
| 269 o.projectId = "foo"; |
| 270 o.referenceNames = buildUnnamed1777(); |
| 271 } |
| 272 buildCounterExportReadGroupSetRequest--; |
| 273 return o; |
| 274 } |
| 275 |
| 276 checkExportReadGroupSetRequest(api.ExportReadGroupSetRequest o) { |
| 277 buildCounterExportReadGroupSetRequest++; |
| 278 if (buildCounterExportReadGroupSetRequest < 3) { |
| 279 unittest.expect(o.exportUri, unittest.equals('foo')); |
| 280 unittest.expect(o.projectId, unittest.equals('foo')); |
| 281 checkUnnamed1777(o.referenceNames); |
| 282 } |
| 283 buildCounterExportReadGroupSetRequest--; |
| 284 } |
| 285 |
| 286 buildUnnamed1778() { |
624 var o = new core.List<core.String>(); | 287 var o = new core.List<core.String>(); |
625 o.add("foo"); | 288 o.add("foo"); |
626 o.add("foo"); | 289 o.add("foo"); |
627 return o; | 290 return o; |
628 } | 291 } |
629 | 292 |
630 checkUnnamed1516(core.List<core.String> o) { | 293 checkUnnamed1778(core.List<core.String> o) { |
631 unittest.expect(o, unittest.hasLength(2)); | |
632 unittest.expect(o[0], unittest.equals('foo')); | |
633 unittest.expect(o[1], unittest.equals('foo')); | |
634 } | |
635 | |
636 core.int buildCounterExperimentalCreateJobRequest = 0; | |
637 buildExperimentalCreateJobRequest() { | |
638 var o = new api.ExperimentalCreateJobRequest(); | |
639 buildCounterExperimentalCreateJobRequest++; | |
640 if (buildCounterExperimentalCreateJobRequest < 3) { | |
641 o.align = true; | |
642 o.callVariants = true; | |
643 o.gcsOutputPath = "foo"; | |
644 o.pairedSourceUris = buildUnnamed1515(); | |
645 o.projectNumber = "foo"; | |
646 o.sourceUris = buildUnnamed1516(); | |
647 } | |
648 buildCounterExperimentalCreateJobRequest--; | |
649 return o; | |
650 } | |
651 | |
652 checkExperimentalCreateJobRequest(api.ExperimentalCreateJobRequest o) { | |
653 buildCounterExperimentalCreateJobRequest++; | |
654 if (buildCounterExperimentalCreateJobRequest < 3) { | |
655 unittest.expect(o.align, unittest.isTrue); | |
656 unittest.expect(o.callVariants, unittest.isTrue); | |
657 unittest.expect(o.gcsOutputPath, unittest.equals('foo')); | |
658 checkUnnamed1515(o.pairedSourceUris); | |
659 unittest.expect(o.projectNumber, unittest.equals('foo')); | |
660 checkUnnamed1516(o.sourceUris); | |
661 } | |
662 buildCounterExperimentalCreateJobRequest--; | |
663 } | |
664 | |
665 core.int buildCounterExperimentalCreateJobResponse = 0; | |
666 buildExperimentalCreateJobResponse() { | |
667 var o = new api.ExperimentalCreateJobResponse(); | |
668 buildCounterExperimentalCreateJobResponse++; | |
669 if (buildCounterExperimentalCreateJobResponse < 3) { | |
670 o.jobId = "foo"; | |
671 } | |
672 buildCounterExperimentalCreateJobResponse--; | |
673 return o; | |
674 } | |
675 | |
676 checkExperimentalCreateJobResponse(api.ExperimentalCreateJobResponse o) { | |
677 buildCounterExperimentalCreateJobResponse++; | |
678 if (buildCounterExperimentalCreateJobResponse < 3) { | |
679 unittest.expect(o.jobId, unittest.equals('foo')); | |
680 } | |
681 buildCounterExperimentalCreateJobResponse--; | |
682 } | |
683 | |
684 buildUnnamed1517() { | |
685 var o = new core.List<core.String>(); | |
686 o.add("foo"); | |
687 o.add("foo"); | |
688 return o; | |
689 } | |
690 | |
691 checkUnnamed1517(core.List<core.String> o) { | |
692 unittest.expect(o, unittest.hasLength(2)); | |
693 unittest.expect(o[0], unittest.equals('foo')); | |
694 unittest.expect(o[1], unittest.equals('foo')); | |
695 } | |
696 | |
697 buildUnnamed1518() { | |
698 var o = new core.List<core.String>(); | |
699 o.add("foo"); | |
700 o.add("foo"); | |
701 return o; | |
702 } | |
703 | |
704 checkUnnamed1518(core.List<core.String> o) { | |
705 unittest.expect(o, unittest.hasLength(2)); | |
706 unittest.expect(o[0], unittest.equals('foo')); | |
707 unittest.expect(o[1], unittest.equals('foo')); | |
708 } | |
709 | |
710 core.int buildCounterExportReadGroupSetsRequest = 0; | |
711 buildExportReadGroupSetsRequest() { | |
712 var o = new api.ExportReadGroupSetsRequest(); | |
713 buildCounterExportReadGroupSetsRequest++; | |
714 if (buildCounterExportReadGroupSetsRequest < 3) { | |
715 o.exportUri = "foo"; | |
716 o.projectNumber = "foo"; | |
717 o.readGroupSetIds = buildUnnamed1517(); | |
718 o.referenceNames = buildUnnamed1518(); | |
719 } | |
720 buildCounterExportReadGroupSetsRequest--; | |
721 return o; | |
722 } | |
723 | |
724 checkExportReadGroupSetsRequest(api.ExportReadGroupSetsRequest o) { | |
725 buildCounterExportReadGroupSetsRequest++; | |
726 if (buildCounterExportReadGroupSetsRequest < 3) { | |
727 unittest.expect(o.exportUri, unittest.equals('foo')); | |
728 unittest.expect(o.projectNumber, unittest.equals('foo')); | |
729 checkUnnamed1517(o.readGroupSetIds); | |
730 checkUnnamed1518(o.referenceNames); | |
731 } | |
732 buildCounterExportReadGroupSetsRequest--; | |
733 } | |
734 | |
735 core.int buildCounterExportReadGroupSetsResponse = 0; | |
736 buildExportReadGroupSetsResponse() { | |
737 var o = new api.ExportReadGroupSetsResponse(); | |
738 buildCounterExportReadGroupSetsResponse++; | |
739 if (buildCounterExportReadGroupSetsResponse < 3) { | |
740 o.jobId = "foo"; | |
741 } | |
742 buildCounterExportReadGroupSetsResponse--; | |
743 return o; | |
744 } | |
745 | |
746 checkExportReadGroupSetsResponse(api.ExportReadGroupSetsResponse o) { | |
747 buildCounterExportReadGroupSetsResponse++; | |
748 if (buildCounterExportReadGroupSetsResponse < 3) { | |
749 unittest.expect(o.jobId, unittest.equals('foo')); | |
750 } | |
751 buildCounterExportReadGroupSetsResponse--; | |
752 } | |
753 | |
754 buildUnnamed1519() { | |
755 var o = new core.List<core.String>(); | |
756 o.add("foo"); | |
757 o.add("foo"); | |
758 return o; | |
759 } | |
760 | |
761 checkUnnamed1519(core.List<core.String> o) { | |
762 unittest.expect(o, unittest.hasLength(2)); | 294 unittest.expect(o, unittest.hasLength(2)); |
763 unittest.expect(o[0], unittest.equals('foo')); | 295 unittest.expect(o[0], unittest.equals('foo')); |
764 unittest.expect(o[1], unittest.equals('foo')); | 296 unittest.expect(o[1], unittest.equals('foo')); |
765 } | 297 } |
766 | 298 |
767 core.int buildCounterExportVariantSetRequest = 0; | 299 core.int buildCounterExportVariantSetRequest = 0; |
768 buildExportVariantSetRequest() { | 300 buildExportVariantSetRequest() { |
769 var o = new api.ExportVariantSetRequest(); | 301 var o = new api.ExportVariantSetRequest(); |
770 buildCounterExportVariantSetRequest++; | 302 buildCounterExportVariantSetRequest++; |
771 if (buildCounterExportVariantSetRequest < 3) { | 303 if (buildCounterExportVariantSetRequest < 3) { |
772 o.bigqueryDataset = "foo"; | 304 o.bigqueryDataset = "foo"; |
773 o.bigqueryTable = "foo"; | 305 o.bigqueryTable = "foo"; |
774 o.callSetIds = buildUnnamed1519(); | 306 o.callSetIds = buildUnnamed1778(); |
775 o.format = "foo"; | 307 o.format = "foo"; |
776 o.projectNumber = "foo"; | 308 o.projectId = "foo"; |
777 } | 309 } |
778 buildCounterExportVariantSetRequest--; | 310 buildCounterExportVariantSetRequest--; |
779 return o; | 311 return o; |
780 } | 312 } |
781 | 313 |
782 checkExportVariantSetRequest(api.ExportVariantSetRequest o) { | 314 checkExportVariantSetRequest(api.ExportVariantSetRequest o) { |
783 buildCounterExportVariantSetRequest++; | 315 buildCounterExportVariantSetRequest++; |
784 if (buildCounterExportVariantSetRequest < 3) { | 316 if (buildCounterExportVariantSetRequest < 3) { |
785 unittest.expect(o.bigqueryDataset, unittest.equals('foo')); | 317 unittest.expect(o.bigqueryDataset, unittest.equals('foo')); |
786 unittest.expect(o.bigqueryTable, unittest.equals('foo')); | 318 unittest.expect(o.bigqueryTable, unittest.equals('foo')); |
787 checkUnnamed1519(o.callSetIds); | 319 checkUnnamed1778(o.callSetIds); |
788 unittest.expect(o.format, unittest.equals('foo')); | 320 unittest.expect(o.format, unittest.equals('foo')); |
789 unittest.expect(o.projectNumber, unittest.equals('foo')); | 321 unittest.expect(o.projectId, unittest.equals('foo')); |
790 } | 322 } |
791 buildCounterExportVariantSetRequest--; | 323 buildCounterExportVariantSetRequest--; |
792 } | 324 } |
793 | 325 |
794 core.int buildCounterExportVariantSetResponse = 0; | 326 buildUnnamed1779() { |
795 buildExportVariantSetResponse() { | |
796 var o = new api.ExportVariantSetResponse(); | |
797 buildCounterExportVariantSetResponse++; | |
798 if (buildCounterExportVariantSetResponse < 3) { | |
799 o.jobId = "foo"; | |
800 } | |
801 buildCounterExportVariantSetResponse--; | |
802 return o; | |
803 } | |
804 | |
805 checkExportVariantSetResponse(api.ExportVariantSetResponse o) { | |
806 buildCounterExportVariantSetResponse++; | |
807 if (buildCounterExportVariantSetResponse < 3) { | |
808 unittest.expect(o.jobId, unittest.equals('foo')); | |
809 } | |
810 buildCounterExportVariantSetResponse--; | |
811 } | |
812 | |
813 core.int buildCounterExternalId = 0; | |
814 buildExternalId() { | |
815 var o = new api.ExternalId(); | |
816 buildCounterExternalId++; | |
817 if (buildCounterExternalId < 3) { | |
818 o.id = "foo"; | |
819 o.sourceName = "foo"; | |
820 } | |
821 buildCounterExternalId--; | |
822 return o; | |
823 } | |
824 | |
825 checkExternalId(api.ExternalId o) { | |
826 buildCounterExternalId++; | |
827 if (buildCounterExternalId < 3) { | |
828 unittest.expect(o.id, unittest.equals('foo')); | |
829 unittest.expect(o.sourceName, unittest.equals('foo')); | |
830 } | |
831 buildCounterExternalId--; | |
832 } | |
833 | |
834 core.int buildCounterFastqMetadata = 0; | |
835 buildFastqMetadata() { | |
836 var o = new api.FastqMetadata(); | |
837 buildCounterFastqMetadata++; | |
838 if (buildCounterFastqMetadata < 3) { | |
839 o.libraryName = "foo"; | |
840 o.platformName = "foo"; | |
841 o.platformUnit = "foo"; | |
842 o.readGroupName = "foo"; | |
843 o.sampleName = "foo"; | |
844 } | |
845 buildCounterFastqMetadata--; | |
846 return o; | |
847 } | |
848 | |
849 checkFastqMetadata(api.FastqMetadata o) { | |
850 buildCounterFastqMetadata++; | |
851 if (buildCounterFastqMetadata < 3) { | |
852 unittest.expect(o.libraryName, unittest.equals('foo')); | |
853 unittest.expect(o.platformName, unittest.equals('foo')); | |
854 unittest.expect(o.platformUnit, unittest.equals('foo')); | |
855 unittest.expect(o.readGroupName, unittest.equals('foo')); | |
856 unittest.expect(o.sampleName, unittest.equals('foo')); | |
857 } | |
858 buildCounterFastqMetadata--; | |
859 } | |
860 | |
861 buildUnnamed1520() { | |
862 var o = new core.List<core.String>(); | 327 var o = new core.List<core.String>(); |
863 o.add("foo"); | 328 o.add("foo"); |
864 o.add("foo"); | 329 o.add("foo"); |
865 return o; | 330 return o; |
866 } | 331 } |
867 | 332 |
868 checkUnnamed1520(core.List<core.String> o) { | 333 checkUnnamed1779(core.List<core.String> o) { |
869 unittest.expect(o, unittest.hasLength(2)); | 334 unittest.expect(o, unittest.hasLength(2)); |
870 unittest.expect(o[0], unittest.equals('foo')); | 335 unittest.expect(o[0], unittest.equals('foo')); |
871 unittest.expect(o[1], unittest.equals('foo')); | 336 unittest.expect(o[1], unittest.equals('foo')); |
872 } | 337 } |
873 | 338 |
874 core.int buildCounterImportReadGroupSetsRequest = 0; | 339 core.int buildCounterImportReadGroupSetsRequest = 0; |
875 buildImportReadGroupSetsRequest() { | 340 buildImportReadGroupSetsRequest() { |
876 var o = new api.ImportReadGroupSetsRequest(); | 341 var o = new api.ImportReadGroupSetsRequest(); |
877 buildCounterImportReadGroupSetsRequest++; | 342 buildCounterImportReadGroupSetsRequest++; |
878 if (buildCounterImportReadGroupSetsRequest < 3) { | 343 if (buildCounterImportReadGroupSetsRequest < 3) { |
879 o.datasetId = "foo"; | 344 o.datasetId = "foo"; |
880 o.partitionStrategy = "foo"; | 345 o.partitionStrategy = "foo"; |
881 o.referenceSetId = "foo"; | 346 o.referenceSetId = "foo"; |
882 o.sourceUris = buildUnnamed1520(); | 347 o.sourceUris = buildUnnamed1779(); |
883 } | 348 } |
884 buildCounterImportReadGroupSetsRequest--; | 349 buildCounterImportReadGroupSetsRequest--; |
885 return o; | 350 return o; |
886 } | 351 } |
887 | 352 |
888 checkImportReadGroupSetsRequest(api.ImportReadGroupSetsRequest o) { | 353 checkImportReadGroupSetsRequest(api.ImportReadGroupSetsRequest o) { |
889 buildCounterImportReadGroupSetsRequest++; | 354 buildCounterImportReadGroupSetsRequest++; |
890 if (buildCounterImportReadGroupSetsRequest < 3) { | 355 if (buildCounterImportReadGroupSetsRequest < 3) { |
891 unittest.expect(o.datasetId, unittest.equals('foo')); | 356 unittest.expect(o.datasetId, unittest.equals('foo')); |
892 unittest.expect(o.partitionStrategy, unittest.equals('foo')); | 357 unittest.expect(o.partitionStrategy, unittest.equals('foo')); |
893 unittest.expect(o.referenceSetId, unittest.equals('foo')); | 358 unittest.expect(o.referenceSetId, unittest.equals('foo')); |
894 checkUnnamed1520(o.sourceUris); | 359 checkUnnamed1779(o.sourceUris); |
895 } | 360 } |
896 buildCounterImportReadGroupSetsRequest--; | 361 buildCounterImportReadGroupSetsRequest--; |
897 } | 362 } |
898 | 363 |
| 364 buildUnnamed1780() { |
| 365 var o = new core.List<core.String>(); |
| 366 o.add("foo"); |
| 367 o.add("foo"); |
| 368 return o; |
| 369 } |
| 370 |
| 371 checkUnnamed1780(core.List<core.String> o) { |
| 372 unittest.expect(o, unittest.hasLength(2)); |
| 373 unittest.expect(o[0], unittest.equals('foo')); |
| 374 unittest.expect(o[1], unittest.equals('foo')); |
| 375 } |
| 376 |
899 core.int buildCounterImportReadGroupSetsResponse = 0; | 377 core.int buildCounterImportReadGroupSetsResponse = 0; |
900 buildImportReadGroupSetsResponse() { | 378 buildImportReadGroupSetsResponse() { |
901 var o = new api.ImportReadGroupSetsResponse(); | 379 var o = new api.ImportReadGroupSetsResponse(); |
902 buildCounterImportReadGroupSetsResponse++; | 380 buildCounterImportReadGroupSetsResponse++; |
903 if (buildCounterImportReadGroupSetsResponse < 3) { | 381 if (buildCounterImportReadGroupSetsResponse < 3) { |
904 o.jobId = "foo"; | 382 o.readGroupSetIds = buildUnnamed1780(); |
905 } | 383 } |
906 buildCounterImportReadGroupSetsResponse--; | 384 buildCounterImportReadGroupSetsResponse--; |
907 return o; | 385 return o; |
908 } | 386 } |
909 | 387 |
910 checkImportReadGroupSetsResponse(api.ImportReadGroupSetsResponse o) { | 388 checkImportReadGroupSetsResponse(api.ImportReadGroupSetsResponse o) { |
911 buildCounterImportReadGroupSetsResponse++; | 389 buildCounterImportReadGroupSetsResponse++; |
912 if (buildCounterImportReadGroupSetsResponse < 3) { | 390 if (buildCounterImportReadGroupSetsResponse < 3) { |
913 unittest.expect(o.jobId, unittest.equals('foo')); | 391 checkUnnamed1780(o.readGroupSetIds); |
914 } | 392 } |
915 buildCounterImportReadGroupSetsResponse--; | 393 buildCounterImportReadGroupSetsResponse--; |
916 } | 394 } |
917 | 395 |
918 buildUnnamed1521() { | 396 buildUnnamed1781() { |
919 var o = new core.List<core.String>(); | 397 var o = new core.List<core.String>(); |
920 o.add("foo"); | 398 o.add("foo"); |
921 o.add("foo"); | 399 o.add("foo"); |
922 return o; | 400 return o; |
923 } | 401 } |
924 | 402 |
925 checkUnnamed1521(core.List<core.String> o) { | 403 checkUnnamed1781(core.List<core.String> o) { |
926 unittest.expect(o, unittest.hasLength(2)); | 404 unittest.expect(o, unittest.hasLength(2)); |
927 unittest.expect(o[0], unittest.equals('foo')); | 405 unittest.expect(o[0], unittest.equals('foo')); |
928 unittest.expect(o[1], unittest.equals('foo')); | 406 unittest.expect(o[1], unittest.equals('foo')); |
929 } | 407 } |
930 | 408 |
931 core.int buildCounterImportVariantsRequest = 0; | 409 core.int buildCounterImportVariantsRequest = 0; |
932 buildImportVariantsRequest() { | 410 buildImportVariantsRequest() { |
933 var o = new api.ImportVariantsRequest(); | 411 var o = new api.ImportVariantsRequest(); |
934 buildCounterImportVariantsRequest++; | 412 buildCounterImportVariantsRequest++; |
935 if (buildCounterImportVariantsRequest < 3) { | 413 if (buildCounterImportVariantsRequest < 3) { |
936 o.format = "foo"; | 414 o.format = "foo"; |
937 o.normalizeReferenceNames = true; | 415 o.normalizeReferenceNames = true; |
938 o.sourceUris = buildUnnamed1521(); | 416 o.sourceUris = buildUnnamed1781(); |
| 417 o.variantSetId = "foo"; |
939 } | 418 } |
940 buildCounterImportVariantsRequest--; | 419 buildCounterImportVariantsRequest--; |
941 return o; | 420 return o; |
942 } | 421 } |
943 | 422 |
944 checkImportVariantsRequest(api.ImportVariantsRequest o) { | 423 checkImportVariantsRequest(api.ImportVariantsRequest o) { |
945 buildCounterImportVariantsRequest++; | 424 buildCounterImportVariantsRequest++; |
946 if (buildCounterImportVariantsRequest < 3) { | 425 if (buildCounterImportVariantsRequest < 3) { |
947 unittest.expect(o.format, unittest.equals('foo')); | 426 unittest.expect(o.format, unittest.equals('foo')); |
948 unittest.expect(o.normalizeReferenceNames, unittest.isTrue); | 427 unittest.expect(o.normalizeReferenceNames, unittest.isTrue); |
949 checkUnnamed1521(o.sourceUris); | 428 checkUnnamed1781(o.sourceUris); |
| 429 unittest.expect(o.variantSetId, unittest.equals('foo')); |
950 } | 430 } |
951 buildCounterImportVariantsRequest--; | 431 buildCounterImportVariantsRequest--; |
952 } | 432 } |
953 | 433 |
| 434 buildUnnamed1782() { |
| 435 var o = new core.List<core.String>(); |
| 436 o.add("foo"); |
| 437 o.add("foo"); |
| 438 return o; |
| 439 } |
| 440 |
| 441 checkUnnamed1782(core.List<core.String> o) { |
| 442 unittest.expect(o, unittest.hasLength(2)); |
| 443 unittest.expect(o[0], unittest.equals('foo')); |
| 444 unittest.expect(o[1], unittest.equals('foo')); |
| 445 } |
| 446 |
954 core.int buildCounterImportVariantsResponse = 0; | 447 core.int buildCounterImportVariantsResponse = 0; |
955 buildImportVariantsResponse() { | 448 buildImportVariantsResponse() { |
956 var o = new api.ImportVariantsResponse(); | 449 var o = new api.ImportVariantsResponse(); |
957 buildCounterImportVariantsResponse++; | 450 buildCounterImportVariantsResponse++; |
958 if (buildCounterImportVariantsResponse < 3) { | 451 if (buildCounterImportVariantsResponse < 3) { |
959 o.jobId = "foo"; | 452 o.callSetIds = buildUnnamed1782(); |
960 } | 453 } |
961 buildCounterImportVariantsResponse--; | 454 buildCounterImportVariantsResponse--; |
962 return o; | 455 return o; |
963 } | 456 } |
964 | 457 |
965 checkImportVariantsResponse(api.ImportVariantsResponse o) { | 458 checkImportVariantsResponse(api.ImportVariantsResponse o) { |
966 buildCounterImportVariantsResponse++; | 459 buildCounterImportVariantsResponse++; |
967 if (buildCounterImportVariantsResponse < 3) { | 460 if (buildCounterImportVariantsResponse < 3) { |
968 unittest.expect(o.jobId, unittest.equals('foo')); | 461 checkUnnamed1782(o.callSetIds); |
969 } | 462 } |
970 buildCounterImportVariantsResponse--; | 463 buildCounterImportVariantsResponse--; |
971 } | 464 } |
972 | 465 |
973 core.int buildCounterInt32Value = 0; | 466 buildUnnamed1783() { |
974 buildInt32Value() { | |
975 var o = new api.Int32Value(); | |
976 buildCounterInt32Value++; | |
977 if (buildCounterInt32Value < 3) { | |
978 o.value = 42; | |
979 } | |
980 buildCounterInt32Value--; | |
981 return o; | |
982 } | |
983 | |
984 checkInt32Value(api.Int32Value o) { | |
985 buildCounterInt32Value++; | |
986 if (buildCounterInt32Value < 3) { | |
987 unittest.expect(o.value, unittest.equals(42)); | |
988 } | |
989 buildCounterInt32Value--; | |
990 } | |
991 | |
992 buildUnnamed1522() { | |
993 var o = new core.List<core.String>(); | |
994 o.add("foo"); | |
995 o.add("foo"); | |
996 return o; | |
997 } | |
998 | |
999 checkUnnamed1522(core.List<core.String> o) { | |
1000 unittest.expect(o, unittest.hasLength(2)); | |
1001 unittest.expect(o[0], unittest.equals('foo')); | |
1002 unittest.expect(o[1], unittest.equals('foo')); | |
1003 } | |
1004 | |
1005 core.int buildCounterInterleavedFastqSource = 0; | |
1006 buildInterleavedFastqSource() { | |
1007 var o = new api.InterleavedFastqSource(); | |
1008 buildCounterInterleavedFastqSource++; | |
1009 if (buildCounterInterleavedFastqSource < 3) { | |
1010 o.metadata = buildFastqMetadata(); | |
1011 o.sourceUris = buildUnnamed1522(); | |
1012 } | |
1013 buildCounterInterleavedFastqSource--; | |
1014 return o; | |
1015 } | |
1016 | |
1017 checkInterleavedFastqSource(api.InterleavedFastqSource o) { | |
1018 buildCounterInterleavedFastqSource++; | |
1019 if (buildCounterInterleavedFastqSource < 3) { | |
1020 checkFastqMetadata(o.metadata); | |
1021 checkUnnamed1522(o.sourceUris); | |
1022 } | |
1023 buildCounterInterleavedFastqSource--; | |
1024 } | |
1025 | |
1026 buildUnnamed1523() { | |
1027 var o = new core.List<core.String>(); | |
1028 o.add("foo"); | |
1029 o.add("foo"); | |
1030 return o; | |
1031 } | |
1032 | |
1033 checkUnnamed1523(core.List<core.String> o) { | |
1034 unittest.expect(o, unittest.hasLength(2)); | |
1035 unittest.expect(o[0], unittest.equals('foo')); | |
1036 unittest.expect(o[1], unittest.equals('foo')); | |
1037 } | |
1038 | |
1039 buildUnnamed1524() { | |
1040 var o = new core.List<core.String>(); | |
1041 o.add("foo"); | |
1042 o.add("foo"); | |
1043 return o; | |
1044 } | |
1045 | |
1046 checkUnnamed1524(core.List<core.String> o) { | |
1047 unittest.expect(o, unittest.hasLength(2)); | |
1048 unittest.expect(o[0], unittest.equals('foo')); | |
1049 unittest.expect(o[1], unittest.equals('foo')); | |
1050 } | |
1051 | |
1052 buildUnnamed1525() { | |
1053 var o = new core.List<core.String>(); | |
1054 o.add("foo"); | |
1055 o.add("foo"); | |
1056 return o; | |
1057 } | |
1058 | |
1059 checkUnnamed1525(core.List<core.String> o) { | |
1060 unittest.expect(o, unittest.hasLength(2)); | |
1061 unittest.expect(o[0], unittest.equals('foo')); | |
1062 unittest.expect(o[1], unittest.equals('foo')); | |
1063 } | |
1064 | |
1065 core.int buildCounterJob = 0; | |
1066 buildJob() { | |
1067 var o = new api.Job(); | |
1068 buildCounterJob++; | |
1069 if (buildCounterJob < 3) { | |
1070 o.created = "foo"; | |
1071 o.detailedStatus = "foo"; | |
1072 o.errors = buildUnnamed1523(); | |
1073 o.id = "foo"; | |
1074 o.importedIds = buildUnnamed1524(); | |
1075 o.projectNumber = "foo"; | |
1076 o.request = buildJobRequest(); | |
1077 o.status = "foo"; | |
1078 o.warnings = buildUnnamed1525(); | |
1079 } | |
1080 buildCounterJob--; | |
1081 return o; | |
1082 } | |
1083 | |
1084 checkJob(api.Job o) { | |
1085 buildCounterJob++; | |
1086 if (buildCounterJob < 3) { | |
1087 unittest.expect(o.created, unittest.equals('foo')); | |
1088 unittest.expect(o.detailedStatus, unittest.equals('foo')); | |
1089 checkUnnamed1523(o.errors); | |
1090 unittest.expect(o.id, unittest.equals('foo')); | |
1091 checkUnnamed1524(o.importedIds); | |
1092 unittest.expect(o.projectNumber, unittest.equals('foo')); | |
1093 checkJobRequest(o.request); | |
1094 unittest.expect(o.status, unittest.equals('foo')); | |
1095 checkUnnamed1525(o.warnings); | |
1096 } | |
1097 buildCounterJob--; | |
1098 } | |
1099 | |
1100 buildUnnamed1526() { | |
1101 var o = new core.List<core.String>(); | |
1102 o.add("foo"); | |
1103 o.add("foo"); | |
1104 return o; | |
1105 } | |
1106 | |
1107 checkUnnamed1526(core.List<core.String> o) { | |
1108 unittest.expect(o, unittest.hasLength(2)); | |
1109 unittest.expect(o[0], unittest.equals('foo')); | |
1110 unittest.expect(o[1], unittest.equals('foo')); | |
1111 } | |
1112 | |
1113 buildUnnamed1527() { | |
1114 var o = new core.List<core.String>(); | |
1115 o.add("foo"); | |
1116 o.add("foo"); | |
1117 return o; | |
1118 } | |
1119 | |
1120 checkUnnamed1527(core.List<core.String> o) { | |
1121 unittest.expect(o, unittest.hasLength(2)); | |
1122 unittest.expect(o[0], unittest.equals('foo')); | |
1123 unittest.expect(o[1], unittest.equals('foo')); | |
1124 } | |
1125 | |
1126 core.int buildCounterJobRequest = 0; | |
1127 buildJobRequest() { | |
1128 var o = new api.JobRequest(); | |
1129 buildCounterJobRequest++; | |
1130 if (buildCounterJobRequest < 3) { | |
1131 o.destination = buildUnnamed1526(); | |
1132 o.source = buildUnnamed1527(); | |
1133 o.type = "foo"; | |
1134 } | |
1135 buildCounterJobRequest--; | |
1136 return o; | |
1137 } | |
1138 | |
1139 checkJobRequest(api.JobRequest o) { | |
1140 buildCounterJobRequest++; | |
1141 if (buildCounterJobRequest < 3) { | |
1142 checkUnnamed1526(o.destination); | |
1143 checkUnnamed1527(o.source); | |
1144 unittest.expect(o.type, unittest.equals('foo')); | |
1145 } | |
1146 buildCounterJobRequest--; | |
1147 } | |
1148 | |
1149 buildUnnamed1528() { | |
1150 var o = new core.List<core.String>(); | |
1151 o.add("foo"); | |
1152 o.add("foo"); | |
1153 return o; | |
1154 } | |
1155 | |
1156 checkUnnamed1528(core.List<core.String> o) { | |
1157 unittest.expect(o, unittest.hasLength(2)); | |
1158 unittest.expect(o[0], unittest.equals('foo')); | |
1159 unittest.expect(o[1], unittest.equals('foo')); | |
1160 } | |
1161 | |
1162 core.int buildCounterKeyValue = 0; | |
1163 buildKeyValue() { | |
1164 var o = new api.KeyValue(); | |
1165 buildCounterKeyValue++; | |
1166 if (buildCounterKeyValue < 3) { | |
1167 o.key = "foo"; | |
1168 o.value = buildUnnamed1528(); | |
1169 } | |
1170 buildCounterKeyValue--; | |
1171 return o; | |
1172 } | |
1173 | |
1174 checkKeyValue(api.KeyValue o) { | |
1175 buildCounterKeyValue++; | |
1176 if (buildCounterKeyValue < 3) { | |
1177 unittest.expect(o.key, unittest.equals('foo')); | |
1178 checkUnnamed1528(o.value); | |
1179 } | |
1180 buildCounterKeyValue--; | |
1181 } | |
1182 | |
1183 buildUnnamed1529() { | |
1184 var o = new core.List<api.CigarUnit>(); | 467 var o = new core.List<api.CigarUnit>(); |
1185 o.add(buildCigarUnit()); | 468 o.add(buildCigarUnit()); |
1186 o.add(buildCigarUnit()); | 469 o.add(buildCigarUnit()); |
1187 return o; | 470 return o; |
1188 } | 471 } |
1189 | 472 |
1190 checkUnnamed1529(core.List<api.CigarUnit> o) { | 473 checkUnnamed1783(core.List<api.CigarUnit> o) { |
1191 unittest.expect(o, unittest.hasLength(2)); | 474 unittest.expect(o, unittest.hasLength(2)); |
1192 checkCigarUnit(o[0]); | 475 checkCigarUnit(o[0]); |
1193 checkCigarUnit(o[1]); | 476 checkCigarUnit(o[1]); |
1194 } | 477 } |
1195 | 478 |
1196 core.int buildCounterLinearAlignment = 0; | 479 core.int buildCounterLinearAlignment = 0; |
1197 buildLinearAlignment() { | 480 buildLinearAlignment() { |
1198 var o = new api.LinearAlignment(); | 481 var o = new api.LinearAlignment(); |
1199 buildCounterLinearAlignment++; | 482 buildCounterLinearAlignment++; |
1200 if (buildCounterLinearAlignment < 3) { | 483 if (buildCounterLinearAlignment < 3) { |
1201 o.cigar = buildUnnamed1529(); | 484 o.cigar = buildUnnamed1783(); |
1202 o.mappingQuality = 42; | 485 o.mappingQuality = 42; |
1203 o.position = buildPosition(); | 486 o.position = buildPosition(); |
1204 } | 487 } |
1205 buildCounterLinearAlignment--; | 488 buildCounterLinearAlignment--; |
1206 return o; | 489 return o; |
1207 } | 490 } |
1208 | 491 |
1209 checkLinearAlignment(api.LinearAlignment o) { | 492 checkLinearAlignment(api.LinearAlignment o) { |
1210 buildCounterLinearAlignment++; | 493 buildCounterLinearAlignment++; |
1211 if (buildCounterLinearAlignment < 3) { | 494 if (buildCounterLinearAlignment < 3) { |
1212 checkUnnamed1529(o.cigar); | 495 checkUnnamed1783(o.cigar); |
1213 unittest.expect(o.mappingQuality, unittest.equals(42)); | 496 unittest.expect(o.mappingQuality, unittest.equals(42)); |
1214 checkPosition(o.position); | 497 checkPosition(o.position); |
1215 } | 498 } |
1216 buildCounterLinearAlignment--; | 499 buildCounterLinearAlignment--; |
1217 } | 500 } |
1218 | 501 |
1219 core.int buildCounterListBasesResponse = 0; | 502 core.int buildCounterListBasesResponse = 0; |
1220 buildListBasesResponse() { | 503 buildListBasesResponse() { |
1221 var o = new api.ListBasesResponse(); | 504 var o = new api.ListBasesResponse(); |
1222 buildCounterListBasesResponse++; | 505 buildCounterListBasesResponse++; |
1223 if (buildCounterListBasesResponse < 3) { | 506 if (buildCounterListBasesResponse < 3) { |
1224 o.nextPageToken = "foo"; | 507 o.nextPageToken = "foo"; |
1225 o.offset = "foo"; | 508 o.offset = "foo"; |
1226 o.sequence = "foo"; | 509 o.sequence = "foo"; |
1227 } | 510 } |
1228 buildCounterListBasesResponse--; | 511 buildCounterListBasesResponse--; |
1229 return o; | 512 return o; |
1230 } | 513 } |
1231 | 514 |
1232 checkListBasesResponse(api.ListBasesResponse o) { | 515 checkListBasesResponse(api.ListBasesResponse o) { |
1233 buildCounterListBasesResponse++; | 516 buildCounterListBasesResponse++; |
1234 if (buildCounterListBasesResponse < 3) { | 517 if (buildCounterListBasesResponse < 3) { |
1235 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 518 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1236 unittest.expect(o.offset, unittest.equals('foo')); | 519 unittest.expect(o.offset, unittest.equals('foo')); |
1237 unittest.expect(o.sequence, unittest.equals('foo')); | 520 unittest.expect(o.sequence, unittest.equals('foo')); |
1238 } | 521 } |
1239 buildCounterListBasesResponse--; | 522 buildCounterListBasesResponse--; |
1240 } | 523 } |
1241 | 524 |
1242 buildUnnamed1530() { | 525 buildUnnamed1784() { |
1243 var o = new core.List<api.CoverageBucket>(); | 526 var o = new core.List<api.CoverageBucket>(); |
1244 o.add(buildCoverageBucket()); | 527 o.add(buildCoverageBucket()); |
1245 o.add(buildCoverageBucket()); | 528 o.add(buildCoverageBucket()); |
1246 return o; | 529 return o; |
1247 } | 530 } |
1248 | 531 |
1249 checkUnnamed1530(core.List<api.CoverageBucket> o) { | 532 checkUnnamed1784(core.List<api.CoverageBucket> o) { |
1250 unittest.expect(o, unittest.hasLength(2)); | 533 unittest.expect(o, unittest.hasLength(2)); |
1251 checkCoverageBucket(o[0]); | 534 checkCoverageBucket(o[0]); |
1252 checkCoverageBucket(o[1]); | 535 checkCoverageBucket(o[1]); |
1253 } | 536 } |
1254 | 537 |
1255 core.int buildCounterListCoverageBucketsResponse = 0; | 538 core.int buildCounterListCoverageBucketsResponse = 0; |
1256 buildListCoverageBucketsResponse() { | 539 buildListCoverageBucketsResponse() { |
1257 var o = new api.ListCoverageBucketsResponse(); | 540 var o = new api.ListCoverageBucketsResponse(); |
1258 buildCounterListCoverageBucketsResponse++; | 541 buildCounterListCoverageBucketsResponse++; |
1259 if (buildCounterListCoverageBucketsResponse < 3) { | 542 if (buildCounterListCoverageBucketsResponse < 3) { |
1260 o.bucketWidth = "foo"; | 543 o.bucketWidth = "foo"; |
1261 o.coverageBuckets = buildUnnamed1530(); | 544 o.coverageBuckets = buildUnnamed1784(); |
1262 o.nextPageToken = "foo"; | 545 o.nextPageToken = "foo"; |
1263 } | 546 } |
1264 buildCounterListCoverageBucketsResponse--; | 547 buildCounterListCoverageBucketsResponse--; |
1265 return o; | 548 return o; |
1266 } | 549 } |
1267 | 550 |
1268 checkListCoverageBucketsResponse(api.ListCoverageBucketsResponse o) { | 551 checkListCoverageBucketsResponse(api.ListCoverageBucketsResponse o) { |
1269 buildCounterListCoverageBucketsResponse++; | 552 buildCounterListCoverageBucketsResponse++; |
1270 if (buildCounterListCoverageBucketsResponse < 3) { | 553 if (buildCounterListCoverageBucketsResponse < 3) { |
1271 unittest.expect(o.bucketWidth, unittest.equals('foo')); | 554 unittest.expect(o.bucketWidth, unittest.equals('foo')); |
1272 checkUnnamed1530(o.coverageBuckets); | 555 checkUnnamed1784(o.coverageBuckets); |
1273 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 556 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1274 } | 557 } |
1275 buildCounterListCoverageBucketsResponse--; | 558 buildCounterListCoverageBucketsResponse--; |
1276 } | 559 } |
1277 | 560 |
1278 buildUnnamed1531() { | 561 buildUnnamed1785() { |
1279 var o = new core.List<api.Dataset>(); | 562 var o = new core.List<api.Dataset>(); |
1280 o.add(buildDataset()); | 563 o.add(buildDataset()); |
1281 o.add(buildDataset()); | 564 o.add(buildDataset()); |
1282 return o; | 565 return o; |
1283 } | 566 } |
1284 | 567 |
1285 checkUnnamed1531(core.List<api.Dataset> o) { | 568 checkUnnamed1785(core.List<api.Dataset> o) { |
1286 unittest.expect(o, unittest.hasLength(2)); | 569 unittest.expect(o, unittest.hasLength(2)); |
1287 checkDataset(o[0]); | 570 checkDataset(o[0]); |
1288 checkDataset(o[1]); | 571 checkDataset(o[1]); |
1289 } | 572 } |
1290 | 573 |
1291 core.int buildCounterListDatasetsResponse = 0; | 574 core.int buildCounterListDatasetsResponse = 0; |
1292 buildListDatasetsResponse() { | 575 buildListDatasetsResponse() { |
1293 var o = new api.ListDatasetsResponse(); | 576 var o = new api.ListDatasetsResponse(); |
1294 buildCounterListDatasetsResponse++; | 577 buildCounterListDatasetsResponse++; |
1295 if (buildCounterListDatasetsResponse < 3) { | 578 if (buildCounterListDatasetsResponse < 3) { |
1296 o.datasets = buildUnnamed1531(); | 579 o.datasets = buildUnnamed1785(); |
1297 o.nextPageToken = "foo"; | 580 o.nextPageToken = "foo"; |
1298 } | 581 } |
1299 buildCounterListDatasetsResponse--; | 582 buildCounterListDatasetsResponse--; |
1300 return o; | 583 return o; |
1301 } | 584 } |
1302 | 585 |
1303 checkListDatasetsResponse(api.ListDatasetsResponse o) { | 586 checkListDatasetsResponse(api.ListDatasetsResponse o) { |
1304 buildCounterListDatasetsResponse++; | 587 buildCounterListDatasetsResponse++; |
1305 if (buildCounterListDatasetsResponse < 3) { | 588 if (buildCounterListDatasetsResponse < 3) { |
1306 checkUnnamed1531(o.datasets); | 589 checkUnnamed1785(o.datasets); |
1307 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 590 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1308 } | 591 } |
1309 buildCounterListDatasetsResponse--; | 592 buildCounterListDatasetsResponse--; |
1310 } | 593 } |
1311 | 594 |
1312 buildUnnamed1532() { | 595 buildUnnamed1786() { |
1313 var o = new core.List<api.Variant>(); | 596 var o = new core.List<api.Operation>(); |
1314 o.add(buildVariant()); | 597 o.add(buildOperation()); |
1315 o.add(buildVariant()); | 598 o.add(buildOperation()); |
1316 return o; | 599 return o; |
1317 } | 600 } |
1318 | 601 |
1319 checkUnnamed1532(core.List<api.Variant> o) { | 602 checkUnnamed1786(core.List<api.Operation> o) { |
1320 unittest.expect(o, unittest.hasLength(2)); | 603 unittest.expect(o, unittest.hasLength(2)); |
1321 checkVariant(o[0]); | 604 checkOperation(o[0]); |
1322 checkVariant(o[1]); | 605 checkOperation(o[1]); |
1323 } | 606 } |
1324 | 607 |
1325 core.int buildCounterMergeVariantsRequest = 0; | 608 core.int buildCounterListOperationsResponse = 0; |
1326 buildMergeVariantsRequest() { | 609 buildListOperationsResponse() { |
1327 var o = new api.MergeVariantsRequest(); | 610 var o = new api.ListOperationsResponse(); |
1328 buildCounterMergeVariantsRequest++; | 611 buildCounterListOperationsResponse++; |
1329 if (buildCounterMergeVariantsRequest < 3) { | 612 if (buildCounterListOperationsResponse < 3) { |
1330 o.variants = buildUnnamed1532(); | 613 o.nextPageToken = "foo"; |
1331 } | 614 o.operations = buildUnnamed1786(); |
1332 buildCounterMergeVariantsRequest--; | 615 } |
1333 return o; | 616 buildCounterListOperationsResponse--; |
1334 } | 617 return o; |
1335 | 618 } |
1336 checkMergeVariantsRequest(api.MergeVariantsRequest o) { | 619 |
1337 buildCounterMergeVariantsRequest++; | 620 checkListOperationsResponse(api.ListOperationsResponse o) { |
1338 if (buildCounterMergeVariantsRequest < 3) { | 621 buildCounterListOperationsResponse++; |
1339 checkUnnamed1532(o.variants); | 622 if (buildCounterListOperationsResponse < 3) { |
1340 } | 623 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1341 buildCounterMergeVariantsRequest--; | 624 checkUnnamed1786(o.operations); |
1342 } | 625 } |
1343 | 626 buildCounterListOperationsResponse--; |
1344 buildUnnamed1533() { | 627 } |
1345 var o = new core.List<core.String>(); | 628 |
1346 o.add("foo"); | 629 buildUnnamed1787() { |
1347 o.add("foo"); | 630 var o = new core.Map<core.String, core.Object>(); |
1348 return o; | 631 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1349 } | 632 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1350 | 633 return o; |
1351 checkUnnamed1533(core.List<core.String> o) { | 634 } |
1352 unittest.expect(o, unittest.hasLength(2)); | 635 |
1353 unittest.expect(o[0], unittest.equals('foo')); | 636 checkUnnamed1787(core.Map<core.String, core.Object> o) { |
1354 unittest.expect(o[1], unittest.equals('foo')); | 637 unittest.expect(o, unittest.hasLength(2)); |
1355 } | 638 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); |
1356 | 639 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); |
1357 buildUnnamed1534() { | 640 } |
1358 var o = new core.Map<core.String, core.List<core.String>>(); | 641 |
1359 o["x"] = buildUnnamed1533(); | 642 buildUnnamed1788() { |
1360 o["y"] = buildUnnamed1533(); | 643 var o = new core.Map<core.String, core.Object>(); |
1361 return o; | 644 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1362 } | 645 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1363 | 646 return o; |
1364 checkUnnamed1534(core.Map<core.String, core.List<core.String>> o) { | 647 } |
1365 unittest.expect(o, unittest.hasLength(2)); | 648 |
1366 checkUnnamed1533(o["x"]); | 649 checkUnnamed1788(core.Map<core.String, core.Object> o) { |
1367 checkUnnamed1533(o["y"]); | 650 unittest.expect(o, unittest.hasLength(2)); |
1368 } | 651 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); |
1369 | 652 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); |
1370 core.int buildCounterMetadata = 0; | 653 } |
1371 buildMetadata() { | 654 |
1372 var o = new api.Metadata(); | 655 core.int buildCounterOperation = 0; |
1373 buildCounterMetadata++; | 656 buildOperation() { |
1374 if (buildCounterMetadata < 3) { | 657 var o = new api.Operation(); |
| 658 buildCounterOperation++; |
| 659 if (buildCounterOperation < 3) { |
| 660 o.done = true; |
| 661 o.error = buildStatus(); |
| 662 o.metadata = buildUnnamed1787(); |
| 663 o.name = "foo"; |
| 664 o.response = buildUnnamed1788(); |
| 665 } |
| 666 buildCounterOperation--; |
| 667 return o; |
| 668 } |
| 669 |
| 670 checkOperation(api.Operation o) { |
| 671 buildCounterOperation++; |
| 672 if (buildCounterOperation < 3) { |
| 673 unittest.expect(o.done, unittest.isTrue); |
| 674 checkStatus(o.error); |
| 675 checkUnnamed1787(o.metadata); |
| 676 unittest.expect(o.name, unittest.equals('foo')); |
| 677 checkUnnamed1788(o.response); |
| 678 } |
| 679 buildCounterOperation--; |
| 680 } |
| 681 |
| 682 core.int buildCounterOperationEvent = 0; |
| 683 buildOperationEvent() { |
| 684 var o = new api.OperationEvent(); |
| 685 buildCounterOperationEvent++; |
| 686 if (buildCounterOperationEvent < 3) { |
1375 o.description = "foo"; | 687 o.description = "foo"; |
1376 o.id = "foo"; | 688 } |
1377 o.info = buildUnnamed1534(); | 689 buildCounterOperationEvent--; |
1378 o.key = "foo"; | 690 return o; |
1379 o.number = "foo"; | 691 } |
1380 o.type = "foo"; | 692 |
1381 o.value = "foo"; | 693 checkOperationEvent(api.OperationEvent o) { |
1382 } | 694 buildCounterOperationEvent++; |
1383 buildCounterMetadata--; | 695 if (buildCounterOperationEvent < 3) { |
1384 return o; | |
1385 } | |
1386 | |
1387 checkMetadata(api.Metadata o) { | |
1388 buildCounterMetadata++; | |
1389 if (buildCounterMetadata < 3) { | |
1390 unittest.expect(o.description, unittest.equals('foo')); | 696 unittest.expect(o.description, unittest.equals('foo')); |
1391 unittest.expect(o.id, unittest.equals('foo')); | 697 } |
1392 checkUnnamed1534(o.info); | 698 buildCounterOperationEvent--; |
1393 unittest.expect(o.key, unittest.equals('foo')); | 699 } |
1394 unittest.expect(o.number, unittest.equals('foo')); | 700 |
1395 unittest.expect(o.type, unittest.equals('foo')); | 701 buildUnnamed1789() { |
1396 unittest.expect(o.value, unittest.equals('foo')); | 702 var o = new core.List<api.OperationEvent>(); |
1397 } | 703 o.add(buildOperationEvent()); |
1398 buildCounterMetadata--; | 704 o.add(buildOperationEvent()); |
1399 } | 705 return o; |
1400 | 706 } |
1401 buildUnnamed1535() { | 707 |
1402 var o = new core.List<core.String>(); | 708 checkUnnamed1789(core.List<api.OperationEvent> o) { |
1403 o.add("foo"); | 709 unittest.expect(o, unittest.hasLength(2)); |
1404 o.add("foo"); | 710 checkOperationEvent(o[0]); |
1405 return o; | 711 checkOperationEvent(o[1]); |
1406 } | 712 } |
1407 | 713 |
1408 checkUnnamed1535(core.List<core.String> o) { | 714 buildUnnamed1790() { |
1409 unittest.expect(o, unittest.hasLength(2)); | 715 var o = new core.Map<core.String, core.Object>(); |
1410 unittest.expect(o[0], unittest.equals('foo')); | 716 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1411 unittest.expect(o[1], unittest.equals('foo')); | 717 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1412 } | 718 return o; |
1413 | 719 } |
1414 buildUnnamed1536() { | 720 |
1415 var o = new core.List<core.String>(); | 721 checkUnnamed1790(core.Map<core.String, core.Object> o) { |
1416 o.add("foo"); | 722 unittest.expect(o, unittest.hasLength(2)); |
1417 o.add("foo"); | 723 var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLengt
h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"],
unittest.equals('foo')); |
1418 return o; | 724 var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLengt
h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"],
unittest.equals('foo')); |
1419 } | 725 } |
1420 | 726 |
1421 checkUnnamed1536(core.List<core.String> o) { | 727 core.int buildCounterOperationMetadata = 0; |
1422 unittest.expect(o, unittest.hasLength(2)); | 728 buildOperationMetadata() { |
1423 unittest.expect(o[0], unittest.equals('foo')); | 729 var o = new api.OperationMetadata(); |
1424 unittest.expect(o[1], unittest.equals('foo')); | 730 buildCounterOperationMetadata++; |
1425 } | 731 if (buildCounterOperationMetadata < 3) { |
1426 | 732 o.createTime = "foo"; |
1427 core.int buildCounterPairedFastqSource = 0; | 733 o.events = buildUnnamed1789(); |
1428 buildPairedFastqSource() { | 734 o.projectId = "foo"; |
1429 var o = new api.PairedFastqSource(); | 735 o.request = buildUnnamed1790(); |
1430 buildCounterPairedFastqSource++; | 736 } |
1431 if (buildCounterPairedFastqSource < 3) { | 737 buildCounterOperationMetadata--; |
1432 o.firstSourceUris = buildUnnamed1535(); | 738 return o; |
1433 o.metadata = buildFastqMetadata(); | 739 } |
1434 o.secondSourceUris = buildUnnamed1536(); | 740 |
1435 } | 741 checkOperationMetadata(api.OperationMetadata o) { |
1436 buildCounterPairedFastqSource--; | 742 buildCounterOperationMetadata++; |
1437 return o; | 743 if (buildCounterOperationMetadata < 3) { |
1438 } | 744 unittest.expect(o.createTime, unittest.equals('foo')); |
1439 | 745 checkUnnamed1789(o.events); |
1440 checkPairedFastqSource(api.PairedFastqSource o) { | 746 unittest.expect(o.projectId, unittest.equals('foo')); |
1441 buildCounterPairedFastqSource++; | 747 checkUnnamed1790(o.request); |
1442 if (buildCounterPairedFastqSource < 3) { | 748 } |
1443 checkUnnamed1535(o.firstSourceUris); | 749 buildCounterOperationMetadata--; |
1444 checkFastqMetadata(o.metadata); | |
1445 checkUnnamed1536(o.secondSourceUris); | |
1446 } | |
1447 buildCounterPairedFastqSource--; | |
1448 } | 750 } |
1449 | 751 |
1450 core.int buildCounterPosition = 0; | 752 core.int buildCounterPosition = 0; |
1451 buildPosition() { | 753 buildPosition() { |
1452 var o = new api.Position(); | 754 var o = new api.Position(); |
1453 buildCounterPosition++; | 755 buildCounterPosition++; |
1454 if (buildCounterPosition < 3) { | 756 if (buildCounterPosition < 3) { |
1455 o.position = "foo"; | 757 o.position = "foo"; |
1456 o.referenceName = "foo"; | 758 o.referenceName = "foo"; |
1457 o.reverseStrand = true; | 759 o.reverseStrand = true; |
1458 } | 760 } |
1459 buildCounterPosition--; | 761 buildCounterPosition--; |
1460 return o; | 762 return o; |
1461 } | 763 } |
1462 | 764 |
1463 checkPosition(api.Position o) { | 765 checkPosition(api.Position o) { |
1464 buildCounterPosition++; | 766 buildCounterPosition++; |
1465 if (buildCounterPosition < 3) { | 767 if (buildCounterPosition < 3) { |
1466 unittest.expect(o.position, unittest.equals('foo')); | 768 unittest.expect(o.position, unittest.equals('foo')); |
1467 unittest.expect(o.referenceName, unittest.equals('foo')); | 769 unittest.expect(o.referenceName, unittest.equals('foo')); |
1468 unittest.expect(o.reverseStrand, unittest.isTrue); | 770 unittest.expect(o.reverseStrand, unittest.isTrue); |
1469 } | 771 } |
1470 buildCounterPosition--; | 772 buildCounterPosition--; |
1471 } | 773 } |
1472 | 774 |
1473 core.int buildCounterQueryRange = 0; | 775 core.int buildCounterProgram = 0; |
1474 buildQueryRange() { | 776 buildProgram() { |
1475 var o = new api.QueryRange(); | 777 var o = new api.Program(); |
1476 buildCounterQueryRange++; | 778 buildCounterProgram++; |
1477 if (buildCounterQueryRange < 3) { | 779 if (buildCounterProgram < 3) { |
1478 o.end = "foo"; | 780 o.commandLine = "foo"; |
1479 o.referenceId = "foo"; | 781 o.id = "foo"; |
1480 o.referenceName = "foo"; | 782 o.name = "foo"; |
1481 o.start = "foo"; | 783 o.prevProgramId = "foo"; |
1482 } | 784 o.version = "foo"; |
1483 buildCounterQueryRange--; | 785 } |
1484 return o; | 786 buildCounterProgram--; |
1485 } | 787 return o; |
1486 | 788 } |
1487 checkQueryRange(api.QueryRange o) { | 789 |
1488 buildCounterQueryRange++; | 790 checkProgram(api.Program o) { |
1489 if (buildCounterQueryRange < 3) { | 791 buildCounterProgram++; |
1490 unittest.expect(o.end, unittest.equals('foo')); | 792 if (buildCounterProgram < 3) { |
1491 unittest.expect(o.referenceId, unittest.equals('foo')); | 793 unittest.expect(o.commandLine, unittest.equals('foo')); |
1492 unittest.expect(o.referenceName, unittest.equals('foo')); | 794 unittest.expect(o.id, unittest.equals('foo')); |
1493 unittest.expect(o.start, unittest.equals('foo')); | 795 unittest.expect(o.name, unittest.equals('foo')); |
1494 } | 796 unittest.expect(o.prevProgramId, unittest.equals('foo')); |
1495 buildCounterQueryRange--; | 797 unittest.expect(o.version, unittest.equals('foo')); |
| 798 } |
| 799 buildCounterProgram--; |
1496 } | 800 } |
1497 | 801 |
1498 core.int buildCounterRange = 0; | 802 core.int buildCounterRange = 0; |
1499 buildRange() { | 803 buildRange() { |
1500 var o = new api.Range(); | 804 var o = new api.Range(); |
1501 buildCounterRange++; | 805 buildCounterRange++; |
1502 if (buildCounterRange < 3) { | 806 if (buildCounterRange < 3) { |
1503 o.end = "foo"; | 807 o.end = "foo"; |
1504 o.referenceName = "foo"; | 808 o.referenceName = "foo"; |
1505 o.start = "foo"; | 809 o.start = "foo"; |
1506 } | 810 } |
1507 buildCounterRange--; | 811 buildCounterRange--; |
1508 return o; | 812 return o; |
1509 } | 813 } |
1510 | 814 |
1511 checkRange(api.Range o) { | 815 checkRange(api.Range o) { |
1512 buildCounterRange++; | 816 buildCounterRange++; |
1513 if (buildCounterRange < 3) { | 817 if (buildCounterRange < 3) { |
1514 unittest.expect(o.end, unittest.equals('foo')); | 818 unittest.expect(o.end, unittest.equals('foo')); |
1515 unittest.expect(o.referenceName, unittest.equals('foo')); | 819 unittest.expect(o.referenceName, unittest.equals('foo')); |
1516 unittest.expect(o.start, unittest.equals('foo')); | 820 unittest.expect(o.start, unittest.equals('foo')); |
1517 } | 821 } |
1518 buildCounterRange--; | 822 buildCounterRange--; |
1519 } | 823 } |
1520 | 824 |
1521 core.int buildCounterRangePosition = 0; | 825 buildUnnamed1791() { |
1522 buildRangePosition() { | |
1523 var o = new api.RangePosition(); | |
1524 buildCounterRangePosition++; | |
1525 if (buildCounterRangePosition < 3) { | |
1526 o.end = "foo"; | |
1527 o.referenceId = "foo"; | |
1528 o.referenceName = "foo"; | |
1529 o.reverseStrand = true; | |
1530 o.start = "foo"; | |
1531 } | |
1532 buildCounterRangePosition--; | |
1533 return o; | |
1534 } | |
1535 | |
1536 checkRangePosition(api.RangePosition o) { | |
1537 buildCounterRangePosition++; | |
1538 if (buildCounterRangePosition < 3) { | |
1539 unittest.expect(o.end, unittest.equals('foo')); | |
1540 unittest.expect(o.referenceId, unittest.equals('foo')); | |
1541 unittest.expect(o.referenceName, unittest.equals('foo')); | |
1542 unittest.expect(o.reverseStrand, unittest.isTrue); | |
1543 unittest.expect(o.start, unittest.equals('foo')); | |
1544 } | |
1545 buildCounterRangePosition--; | |
1546 } | |
1547 | |
1548 buildUnnamed1537() { | |
1549 var o = new core.List<core.int>(); | 826 var o = new core.List<core.int>(); |
1550 o.add(42); | 827 o.add(42); |
1551 o.add(42); | 828 o.add(42); |
1552 return o; | 829 return o; |
1553 } | 830 } |
1554 | 831 |
1555 checkUnnamed1537(core.List<core.int> o) { | 832 checkUnnamed1791(core.List<core.int> o) { |
1556 unittest.expect(o, unittest.hasLength(2)); | 833 unittest.expect(o, unittest.hasLength(2)); |
1557 unittest.expect(o[0], unittest.equals(42)); | 834 unittest.expect(o[0], unittest.equals(42)); |
1558 unittest.expect(o[1], unittest.equals(42)); | 835 unittest.expect(o[1], unittest.equals(42)); |
1559 } | 836 } |
1560 | 837 |
1561 buildUnnamed1538() { | 838 buildUnnamed1792() { |
1562 var o = new core.List<core.String>(); | 839 var o = new core.List<core.Object>(); |
1563 o.add("foo"); | 840 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
1564 o.add("foo"); | 841 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
1565 return o; | 842 return o; |
1566 } | 843 } |
1567 | 844 |
1568 checkUnnamed1538(core.List<core.String> o) { | 845 checkUnnamed1792(core.List<core.Object> o) { |
1569 unittest.expect(o, unittest.hasLength(2)); | 846 unittest.expect(o, unittest.hasLength(2)); |
1570 unittest.expect(o[0], unittest.equals('foo')); | 847 var casted9 = (o[0]) as core.Map; unittest.expect(casted9, unittest.hasLength(
3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"], u
nittest.equals('foo')); |
1571 unittest.expect(o[1], unittest.equals('foo')); | 848 var casted10 = (o[1]) as core.Map; unittest.expect(casted10, unittest.hasLengt
h(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest.e
xpect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["string
"], unittest.equals('foo')); |
1572 } | 849 } |
1573 | 850 |
1574 buildUnnamed1539() { | 851 buildUnnamed1793() { |
1575 var o = new core.Map<core.String, core.List<core.String>>(); | 852 var o = new core.Map<core.String, core.List<core.Object>>(); |
1576 o["x"] = buildUnnamed1538(); | 853 o["x"] = buildUnnamed1792(); |
1577 o["y"] = buildUnnamed1538(); | 854 o["y"] = buildUnnamed1792(); |
1578 return o; | 855 return o; |
1579 } | 856 } |
1580 | 857 |
1581 checkUnnamed1539(core.Map<core.String, core.List<core.String>> o) { | 858 checkUnnamed1793(core.Map<core.String, core.List<core.Object>> o) { |
1582 unittest.expect(o, unittest.hasLength(2)); | 859 unittest.expect(o, unittest.hasLength(2)); |
1583 checkUnnamed1538(o["x"]); | 860 checkUnnamed1792(o["x"]); |
1584 checkUnnamed1538(o["y"]); | 861 checkUnnamed1792(o["y"]); |
1585 } | 862 } |
1586 | 863 |
1587 core.int buildCounterRead = 0; | 864 core.int buildCounterRead = 0; |
1588 buildRead() { | 865 buildRead() { |
1589 var o = new api.Read(); | 866 var o = new api.Read(); |
1590 buildCounterRead++; | 867 buildCounterRead++; |
1591 if (buildCounterRead < 3) { | 868 if (buildCounterRead < 3) { |
1592 o.alignedQuality = buildUnnamed1537(); | 869 o.alignedQuality = buildUnnamed1791(); |
1593 o.alignedSequence = "foo"; | 870 o.alignedSequence = "foo"; |
1594 o.alignment = buildLinearAlignment(); | 871 o.alignment = buildLinearAlignment(); |
1595 o.duplicateFragment = true; | 872 o.duplicateFragment = true; |
1596 o.failedVendorQualityChecks = true; | 873 o.failedVendorQualityChecks = true; |
1597 o.fragmentLength = 42; | 874 o.fragmentLength = 42; |
1598 o.fragmentName = "foo"; | 875 o.fragmentName = "foo"; |
1599 o.id = "foo"; | 876 o.id = "foo"; |
1600 o.info = buildUnnamed1539(); | 877 o.info = buildUnnamed1793(); |
1601 o.nextMatePosition = buildPosition(); | 878 o.nextMatePosition = buildPosition(); |
1602 o.numberReads = 42; | 879 o.numberReads = 42; |
1603 o.properPlacement = true; | 880 o.properPlacement = true; |
1604 o.readGroupId = "foo"; | 881 o.readGroupId = "foo"; |
1605 o.readGroupSetId = "foo"; | 882 o.readGroupSetId = "foo"; |
1606 o.readNumber = 42; | 883 o.readNumber = 42; |
1607 o.secondaryAlignment = true; | 884 o.secondaryAlignment = true; |
1608 o.supplementaryAlignment = true; | 885 o.supplementaryAlignment = true; |
1609 } | 886 } |
1610 buildCounterRead--; | 887 buildCounterRead--; |
1611 return o; | 888 return o; |
1612 } | 889 } |
1613 | 890 |
1614 checkRead(api.Read o) { | 891 checkRead(api.Read o) { |
1615 buildCounterRead++; | 892 buildCounterRead++; |
1616 if (buildCounterRead < 3) { | 893 if (buildCounterRead < 3) { |
1617 checkUnnamed1537(o.alignedQuality); | 894 checkUnnamed1791(o.alignedQuality); |
1618 unittest.expect(o.alignedSequence, unittest.equals('foo')); | 895 unittest.expect(o.alignedSequence, unittest.equals('foo')); |
1619 checkLinearAlignment(o.alignment); | 896 checkLinearAlignment(o.alignment); |
1620 unittest.expect(o.duplicateFragment, unittest.isTrue); | 897 unittest.expect(o.duplicateFragment, unittest.isTrue); |
1621 unittest.expect(o.failedVendorQualityChecks, unittest.isTrue); | 898 unittest.expect(o.failedVendorQualityChecks, unittest.isTrue); |
1622 unittest.expect(o.fragmentLength, unittest.equals(42)); | 899 unittest.expect(o.fragmentLength, unittest.equals(42)); |
1623 unittest.expect(o.fragmentName, unittest.equals('foo')); | 900 unittest.expect(o.fragmentName, unittest.equals('foo')); |
1624 unittest.expect(o.id, unittest.equals('foo')); | 901 unittest.expect(o.id, unittest.equals('foo')); |
1625 checkUnnamed1539(o.info); | 902 checkUnnamed1793(o.info); |
1626 checkPosition(o.nextMatePosition); | 903 checkPosition(o.nextMatePosition); |
1627 unittest.expect(o.numberReads, unittest.equals(42)); | 904 unittest.expect(o.numberReads, unittest.equals(42)); |
1628 unittest.expect(o.properPlacement, unittest.isTrue); | 905 unittest.expect(o.properPlacement, unittest.isTrue); |
1629 unittest.expect(o.readGroupId, unittest.equals('foo')); | 906 unittest.expect(o.readGroupId, unittest.equals('foo')); |
1630 unittest.expect(o.readGroupSetId, unittest.equals('foo')); | 907 unittest.expect(o.readGroupSetId, unittest.equals('foo')); |
1631 unittest.expect(o.readNumber, unittest.equals(42)); | 908 unittest.expect(o.readNumber, unittest.equals(42)); |
1632 unittest.expect(o.secondaryAlignment, unittest.isTrue); | 909 unittest.expect(o.secondaryAlignment, unittest.isTrue); |
1633 unittest.expect(o.supplementaryAlignment, unittest.isTrue); | 910 unittest.expect(o.supplementaryAlignment, unittest.isTrue); |
1634 } | 911 } |
1635 buildCounterRead--; | 912 buildCounterRead--; |
1636 } | 913 } |
1637 | 914 |
1638 buildUnnamed1540() { | 915 buildUnnamed1794() { |
1639 var o = new core.List<core.String>(); | 916 var o = new core.List<core.Object>(); |
1640 o.add("foo"); | 917 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
1641 o.add("foo"); | 918 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
1642 return o; | 919 return o; |
1643 } | 920 } |
1644 | 921 |
1645 checkUnnamed1540(core.List<core.String> o) { | 922 checkUnnamed1794(core.List<core.Object> o) { |
1646 unittest.expect(o, unittest.hasLength(2)); | 923 unittest.expect(o, unittest.hasLength(2)); |
1647 unittest.expect(o[0], unittest.equals('foo')); | 924 var casted11 = (o[0]) as core.Map; unittest.expect(casted11, unittest.hasLengt
h(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest.e
xpect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["string
"], unittest.equals('foo')); |
1648 unittest.expect(o[1], unittest.equals('foo')); | 925 var casted12 = (o[1]) as core.Map; unittest.expect(casted12, unittest.hasLengt
h(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); unittest.e
xpect(casted12["bool"], unittest.equals(true)); unittest.expect(casted12["string
"], unittest.equals('foo')); |
1649 } | 926 } |
1650 | 927 |
1651 buildUnnamed1541() { | 928 buildUnnamed1795() { |
1652 var o = new core.Map<core.String, core.List<core.String>>(); | 929 var o = new core.Map<core.String, core.List<core.Object>>(); |
1653 o["x"] = buildUnnamed1540(); | 930 o["x"] = buildUnnamed1794(); |
1654 o["y"] = buildUnnamed1540(); | 931 o["y"] = buildUnnamed1794(); |
1655 return o; | 932 return o; |
1656 } | 933 } |
1657 | 934 |
1658 checkUnnamed1541(core.Map<core.String, core.List<core.String>> o) { | 935 checkUnnamed1795(core.Map<core.String, core.List<core.Object>> o) { |
1659 unittest.expect(o, unittest.hasLength(2)); | 936 unittest.expect(o, unittest.hasLength(2)); |
1660 checkUnnamed1540(o["x"]); | 937 checkUnnamed1794(o["x"]); |
1661 checkUnnamed1540(o["y"]); | 938 checkUnnamed1794(o["y"]); |
1662 } | 939 } |
1663 | 940 |
1664 buildUnnamed1542() { | 941 buildUnnamed1796() { |
1665 var o = new core.List<api.ReadGroupProgram>(); | 942 var o = new core.List<api.Program>(); |
1666 o.add(buildReadGroupProgram()); | 943 o.add(buildProgram()); |
1667 o.add(buildReadGroupProgram()); | 944 o.add(buildProgram()); |
1668 return o; | 945 return o; |
1669 } | 946 } |
1670 | 947 |
1671 checkUnnamed1542(core.List<api.ReadGroupProgram> o) { | 948 checkUnnamed1796(core.List<api.Program> o) { |
1672 unittest.expect(o, unittest.hasLength(2)); | 949 unittest.expect(o, unittest.hasLength(2)); |
1673 checkReadGroupProgram(o[0]); | 950 checkProgram(o[0]); |
1674 checkReadGroupProgram(o[1]); | 951 checkProgram(o[1]); |
1675 } | 952 } |
1676 | 953 |
1677 core.int buildCounterReadGroup = 0; | 954 core.int buildCounterReadGroup = 0; |
1678 buildReadGroup() { | 955 buildReadGroup() { |
1679 var o = new api.ReadGroup(); | 956 var o = new api.ReadGroup(); |
1680 buildCounterReadGroup++; | 957 buildCounterReadGroup++; |
1681 if (buildCounterReadGroup < 3) { | 958 if (buildCounterReadGroup < 3) { |
1682 o.datasetId = "foo"; | 959 o.datasetId = "foo"; |
1683 o.description = "foo"; | 960 o.description = "foo"; |
1684 o.experiment = buildReadGroupExperiment(); | 961 o.experiment = buildExperiment(); |
1685 o.id = "foo"; | 962 o.id = "foo"; |
1686 o.info = buildUnnamed1541(); | 963 o.info = buildUnnamed1795(); |
1687 o.name = "foo"; | 964 o.name = "foo"; |
1688 o.predictedInsertSize = 42; | 965 o.predictedInsertSize = 42; |
1689 o.programs = buildUnnamed1542(); | 966 o.programs = buildUnnamed1796(); |
1690 o.referenceSetId = "foo"; | 967 o.referenceSetId = "foo"; |
1691 o.sampleId = "foo"; | 968 o.sampleId = "foo"; |
1692 } | 969 } |
1693 buildCounterReadGroup--; | 970 buildCounterReadGroup--; |
1694 return o; | 971 return o; |
1695 } | 972 } |
1696 | 973 |
1697 checkReadGroup(api.ReadGroup o) { | 974 checkReadGroup(api.ReadGroup o) { |
1698 buildCounterReadGroup++; | 975 buildCounterReadGroup++; |
1699 if (buildCounterReadGroup < 3) { | 976 if (buildCounterReadGroup < 3) { |
1700 unittest.expect(o.datasetId, unittest.equals('foo')); | 977 unittest.expect(o.datasetId, unittest.equals('foo')); |
1701 unittest.expect(o.description, unittest.equals('foo')); | 978 unittest.expect(o.description, unittest.equals('foo')); |
1702 checkReadGroupExperiment(o.experiment); | 979 checkExperiment(o.experiment); |
1703 unittest.expect(o.id, unittest.equals('foo')); | 980 unittest.expect(o.id, unittest.equals('foo')); |
1704 checkUnnamed1541(o.info); | 981 checkUnnamed1795(o.info); |
1705 unittest.expect(o.name, unittest.equals('foo')); | 982 unittest.expect(o.name, unittest.equals('foo')); |
1706 unittest.expect(o.predictedInsertSize, unittest.equals(42)); | 983 unittest.expect(o.predictedInsertSize, unittest.equals(42)); |
1707 checkUnnamed1542(o.programs); | 984 checkUnnamed1796(o.programs); |
1708 unittest.expect(o.referenceSetId, unittest.equals('foo')); | 985 unittest.expect(o.referenceSetId, unittest.equals('foo')); |
1709 unittest.expect(o.sampleId, unittest.equals('foo')); | 986 unittest.expect(o.sampleId, unittest.equals('foo')); |
1710 } | 987 } |
1711 buildCounterReadGroup--; | 988 buildCounterReadGroup--; |
1712 } | 989 } |
1713 | 990 |
1714 core.int buildCounterReadGroupExperiment = 0; | 991 buildUnnamed1797() { |
1715 buildReadGroupExperiment() { | 992 var o = new core.List<core.Object>(); |
1716 var o = new api.ReadGroupExperiment(); | 993 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
1717 buildCounterReadGroupExperiment++; | 994 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
1718 if (buildCounterReadGroupExperiment < 3) { | 995 return o; |
1719 o.instrumentModel = "foo"; | 996 } |
1720 o.libraryId = "foo"; | 997 |
1721 o.platformUnit = "foo"; | 998 checkUnnamed1797(core.List<core.Object> o) { |
1722 o.sequencingCenter = "foo"; | 999 unittest.expect(o, unittest.hasLength(2)); |
1723 } | 1000 var casted13 = (o[0]) as core.Map; unittest.expect(casted13, unittest.hasLengt
h(3)); unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); unittest.e
xpect(casted13["bool"], unittest.equals(true)); unittest.expect(casted13["string
"], unittest.equals('foo')); |
1724 buildCounterReadGroupExperiment--; | 1001 var casted14 = (o[1]) as core.Map; unittest.expect(casted14, unittest.hasLengt
h(3)); unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); unittest.e
xpect(casted14["bool"], unittest.equals(true)); unittest.expect(casted14["string
"], unittest.equals('foo')); |
1725 return o; | 1002 } |
1726 } | 1003 |
1727 | 1004 buildUnnamed1798() { |
1728 checkReadGroupExperiment(api.ReadGroupExperiment o) { | 1005 var o = new core.Map<core.String, core.List<core.Object>>(); |
1729 buildCounterReadGroupExperiment++; | 1006 o["x"] = buildUnnamed1797(); |
1730 if (buildCounterReadGroupExperiment < 3) { | 1007 o["y"] = buildUnnamed1797(); |
1731 unittest.expect(o.instrumentModel, unittest.equals('foo')); | 1008 return o; |
1732 unittest.expect(o.libraryId, unittest.equals('foo')); | 1009 } |
1733 unittest.expect(o.platformUnit, unittest.equals('foo')); | 1010 |
1734 unittest.expect(o.sequencingCenter, unittest.equals('foo')); | 1011 checkUnnamed1798(core.Map<core.String, core.List<core.Object>> o) { |
1735 } | 1012 unittest.expect(o, unittest.hasLength(2)); |
1736 buildCounterReadGroupExperiment--; | 1013 checkUnnamed1797(o["x"]); |
1737 } | 1014 checkUnnamed1797(o["y"]); |
1738 | 1015 } |
1739 core.int buildCounterReadGroupProgram = 0; | 1016 |
1740 buildReadGroupProgram() { | 1017 buildUnnamed1799() { |
1741 var o = new api.ReadGroupProgram(); | |
1742 buildCounterReadGroupProgram++; | |
1743 if (buildCounterReadGroupProgram < 3) { | |
1744 o.commandLine = "foo"; | |
1745 o.id = "foo"; | |
1746 o.name = "foo"; | |
1747 o.prevProgramId = "foo"; | |
1748 o.version = "foo"; | |
1749 } | |
1750 buildCounterReadGroupProgram--; | |
1751 return o; | |
1752 } | |
1753 | |
1754 checkReadGroupProgram(api.ReadGroupProgram o) { | |
1755 buildCounterReadGroupProgram++; | |
1756 if (buildCounterReadGroupProgram < 3) { | |
1757 unittest.expect(o.commandLine, unittest.equals('foo')); | |
1758 unittest.expect(o.id, unittest.equals('foo')); | |
1759 unittest.expect(o.name, unittest.equals('foo')); | |
1760 unittest.expect(o.prevProgramId, unittest.equals('foo')); | |
1761 unittest.expect(o.version, unittest.equals('foo')); | |
1762 } | |
1763 buildCounterReadGroupProgram--; | |
1764 } | |
1765 | |
1766 buildUnnamed1543() { | |
1767 var o = new core.List<core.String>(); | |
1768 o.add("foo"); | |
1769 o.add("foo"); | |
1770 return o; | |
1771 } | |
1772 | |
1773 checkUnnamed1543(core.List<core.String> o) { | |
1774 unittest.expect(o, unittest.hasLength(2)); | |
1775 unittest.expect(o[0], unittest.equals('foo')); | |
1776 unittest.expect(o[1], unittest.equals('foo')); | |
1777 } | |
1778 | |
1779 buildUnnamed1544() { | |
1780 var o = new core.Map<core.String, core.List<core.String>>(); | |
1781 o["x"] = buildUnnamed1543(); | |
1782 o["y"] = buildUnnamed1543(); | |
1783 return o; | |
1784 } | |
1785 | |
1786 checkUnnamed1544(core.Map<core.String, core.List<core.String>> o) { | |
1787 unittest.expect(o, unittest.hasLength(2)); | |
1788 checkUnnamed1543(o["x"]); | |
1789 checkUnnamed1543(o["y"]); | |
1790 } | |
1791 | |
1792 buildUnnamed1545() { | |
1793 var o = new core.List<api.ReadGroup>(); | 1018 var o = new core.List<api.ReadGroup>(); |
1794 o.add(buildReadGroup()); | 1019 o.add(buildReadGroup()); |
1795 o.add(buildReadGroup()); | 1020 o.add(buildReadGroup()); |
1796 return o; | 1021 return o; |
1797 } | 1022 } |
1798 | 1023 |
1799 checkUnnamed1545(core.List<api.ReadGroup> o) { | 1024 checkUnnamed1799(core.List<api.ReadGroup> o) { |
1800 unittest.expect(o, unittest.hasLength(2)); | 1025 unittest.expect(o, unittest.hasLength(2)); |
1801 checkReadGroup(o[0]); | 1026 checkReadGroup(o[0]); |
1802 checkReadGroup(o[1]); | 1027 checkReadGroup(o[1]); |
1803 } | 1028 } |
1804 | 1029 |
1805 core.int buildCounterReadGroupSet = 0; | 1030 core.int buildCounterReadGroupSet = 0; |
1806 buildReadGroupSet() { | 1031 buildReadGroupSet() { |
1807 var o = new api.ReadGroupSet(); | 1032 var o = new api.ReadGroupSet(); |
1808 buildCounterReadGroupSet++; | 1033 buildCounterReadGroupSet++; |
1809 if (buildCounterReadGroupSet < 3) { | 1034 if (buildCounterReadGroupSet < 3) { |
1810 o.datasetId = "foo"; | 1035 o.datasetId = "foo"; |
1811 o.filename = "foo"; | 1036 o.filename = "foo"; |
1812 o.id = "foo"; | 1037 o.id = "foo"; |
1813 o.info = buildUnnamed1544(); | 1038 o.info = buildUnnamed1798(); |
1814 o.name = "foo"; | 1039 o.name = "foo"; |
1815 o.readGroups = buildUnnamed1545(); | 1040 o.readGroups = buildUnnamed1799(); |
1816 o.referenceSetId = "foo"; | 1041 o.referenceSetId = "foo"; |
1817 } | 1042 } |
1818 buildCounterReadGroupSet--; | 1043 buildCounterReadGroupSet--; |
1819 return o; | 1044 return o; |
1820 } | 1045 } |
1821 | 1046 |
1822 checkReadGroupSet(api.ReadGroupSet o) { | 1047 checkReadGroupSet(api.ReadGroupSet o) { |
1823 buildCounterReadGroupSet++; | 1048 buildCounterReadGroupSet++; |
1824 if (buildCounterReadGroupSet < 3) { | 1049 if (buildCounterReadGroupSet < 3) { |
1825 unittest.expect(o.datasetId, unittest.equals('foo')); | 1050 unittest.expect(o.datasetId, unittest.equals('foo')); |
1826 unittest.expect(o.filename, unittest.equals('foo')); | 1051 unittest.expect(o.filename, unittest.equals('foo')); |
1827 unittest.expect(o.id, unittest.equals('foo')); | 1052 unittest.expect(o.id, unittest.equals('foo')); |
1828 checkUnnamed1544(o.info); | 1053 checkUnnamed1798(o.info); |
1829 unittest.expect(o.name, unittest.equals('foo')); | 1054 unittest.expect(o.name, unittest.equals('foo')); |
1830 checkUnnamed1545(o.readGroups); | 1055 checkUnnamed1799(o.readGroups); |
1831 unittest.expect(o.referenceSetId, unittest.equals('foo')); | 1056 unittest.expect(o.referenceSetId, unittest.equals('foo')); |
1832 } | 1057 } |
1833 buildCounterReadGroupSet--; | 1058 buildCounterReadGroupSet--; |
1834 } | 1059 } |
1835 | 1060 |
1836 buildUnnamed1546() { | 1061 buildUnnamed1800() { |
1837 var o = new core.List<core.String>(); | 1062 var o = new core.List<core.String>(); |
1838 o.add("foo"); | 1063 o.add("foo"); |
1839 o.add("foo"); | 1064 o.add("foo"); |
1840 return o; | 1065 return o; |
1841 } | 1066 } |
1842 | 1067 |
1843 checkUnnamed1546(core.List<core.String> o) { | 1068 checkUnnamed1800(core.List<core.String> o) { |
1844 unittest.expect(o, unittest.hasLength(2)); | 1069 unittest.expect(o, unittest.hasLength(2)); |
1845 unittest.expect(o[0], unittest.equals('foo')); | 1070 unittest.expect(o[0], unittest.equals('foo')); |
1846 unittest.expect(o[1], unittest.equals('foo')); | 1071 unittest.expect(o[1], unittest.equals('foo')); |
1847 } | 1072 } |
1848 | 1073 |
1849 core.int buildCounterReference = 0; | 1074 core.int buildCounterReference = 0; |
1850 buildReference() { | 1075 buildReference() { |
1851 var o = new api.Reference(); | 1076 var o = new api.Reference(); |
1852 buildCounterReference++; | 1077 buildCounterReference++; |
1853 if (buildCounterReference < 3) { | 1078 if (buildCounterReference < 3) { |
1854 o.id = "foo"; | 1079 o.id = "foo"; |
1855 o.length = "foo"; | 1080 o.length = "foo"; |
1856 o.md5checksum = "foo"; | 1081 o.md5checksum = "foo"; |
1857 o.name = "foo"; | 1082 o.name = "foo"; |
1858 o.ncbiTaxonId = 42; | 1083 o.ncbiTaxonId = 42; |
1859 o.sourceAccessions = buildUnnamed1546(); | 1084 o.sourceAccessions = buildUnnamed1800(); |
1860 o.sourceURI = "foo"; | 1085 o.sourceUri = "foo"; |
1861 } | 1086 } |
1862 buildCounterReference--; | 1087 buildCounterReference--; |
1863 return o; | 1088 return o; |
1864 } | 1089 } |
1865 | 1090 |
1866 checkReference(api.Reference o) { | 1091 checkReference(api.Reference o) { |
1867 buildCounterReference++; | 1092 buildCounterReference++; |
1868 if (buildCounterReference < 3) { | 1093 if (buildCounterReference < 3) { |
1869 unittest.expect(o.id, unittest.equals('foo')); | 1094 unittest.expect(o.id, unittest.equals('foo')); |
1870 unittest.expect(o.length, unittest.equals('foo')); | 1095 unittest.expect(o.length, unittest.equals('foo')); |
1871 unittest.expect(o.md5checksum, unittest.equals('foo')); | 1096 unittest.expect(o.md5checksum, unittest.equals('foo')); |
1872 unittest.expect(o.name, unittest.equals('foo')); | 1097 unittest.expect(o.name, unittest.equals('foo')); |
1873 unittest.expect(o.ncbiTaxonId, unittest.equals(42)); | 1098 unittest.expect(o.ncbiTaxonId, unittest.equals(42)); |
1874 checkUnnamed1546(o.sourceAccessions); | 1099 checkUnnamed1800(o.sourceAccessions); |
1875 unittest.expect(o.sourceURI, unittest.equals('foo')); | 1100 unittest.expect(o.sourceUri, unittest.equals('foo')); |
1876 } | 1101 } |
1877 buildCounterReference--; | 1102 buildCounterReference--; |
1878 } | 1103 } |
1879 | 1104 |
1880 core.int buildCounterReferenceBound = 0; | 1105 core.int buildCounterReferenceBound = 0; |
1881 buildReferenceBound() { | 1106 buildReferenceBound() { |
1882 var o = new api.ReferenceBound(); | 1107 var o = new api.ReferenceBound(); |
1883 buildCounterReferenceBound++; | 1108 buildCounterReferenceBound++; |
1884 if (buildCounterReferenceBound < 3) { | 1109 if (buildCounterReferenceBound < 3) { |
1885 o.referenceName = "foo"; | 1110 o.referenceName = "foo"; |
1886 o.upperBound = "foo"; | 1111 o.upperBound = "foo"; |
1887 } | 1112 } |
1888 buildCounterReferenceBound--; | 1113 buildCounterReferenceBound--; |
1889 return o; | 1114 return o; |
1890 } | 1115 } |
1891 | 1116 |
1892 checkReferenceBound(api.ReferenceBound o) { | 1117 checkReferenceBound(api.ReferenceBound o) { |
1893 buildCounterReferenceBound++; | 1118 buildCounterReferenceBound++; |
1894 if (buildCounterReferenceBound < 3) { | 1119 if (buildCounterReferenceBound < 3) { |
1895 unittest.expect(o.referenceName, unittest.equals('foo')); | 1120 unittest.expect(o.referenceName, unittest.equals('foo')); |
1896 unittest.expect(o.upperBound, unittest.equals('foo')); | 1121 unittest.expect(o.upperBound, unittest.equals('foo')); |
1897 } | 1122 } |
1898 buildCounterReferenceBound--; | 1123 buildCounterReferenceBound--; |
1899 } | 1124 } |
1900 | 1125 |
1901 buildUnnamed1547() { | 1126 buildUnnamed1801() { |
1902 var o = new core.List<core.String>(); | 1127 var o = new core.List<core.String>(); |
1903 o.add("foo"); | 1128 o.add("foo"); |
1904 o.add("foo"); | 1129 o.add("foo"); |
1905 return o; | 1130 return o; |
1906 } | 1131 } |
1907 | 1132 |
1908 checkUnnamed1547(core.List<core.String> o) { | 1133 checkUnnamed1801(core.List<core.String> o) { |
1909 unittest.expect(o, unittest.hasLength(2)); | 1134 unittest.expect(o, unittest.hasLength(2)); |
1910 unittest.expect(o[0], unittest.equals('foo')); | 1135 unittest.expect(o[0], unittest.equals('foo')); |
1911 unittest.expect(o[1], unittest.equals('foo')); | 1136 unittest.expect(o[1], unittest.equals('foo')); |
1912 } | 1137 } |
1913 | 1138 |
1914 buildUnnamed1548() { | 1139 buildUnnamed1802() { |
1915 var o = new core.List<core.String>(); | 1140 var o = new core.List<core.String>(); |
1916 o.add("foo"); | 1141 o.add("foo"); |
1917 o.add("foo"); | 1142 o.add("foo"); |
1918 return o; | 1143 return o; |
1919 } | 1144 } |
1920 | 1145 |
1921 checkUnnamed1548(core.List<core.String> o) { | 1146 checkUnnamed1802(core.List<core.String> o) { |
1922 unittest.expect(o, unittest.hasLength(2)); | 1147 unittest.expect(o, unittest.hasLength(2)); |
1923 unittest.expect(o[0], unittest.equals('foo')); | 1148 unittest.expect(o[0], unittest.equals('foo')); |
1924 unittest.expect(o[1], unittest.equals('foo')); | 1149 unittest.expect(o[1], unittest.equals('foo')); |
1925 } | 1150 } |
1926 | 1151 |
1927 core.int buildCounterReferenceSet = 0; | 1152 core.int buildCounterReferenceSet = 0; |
1928 buildReferenceSet() { | 1153 buildReferenceSet() { |
1929 var o = new api.ReferenceSet(); | 1154 var o = new api.ReferenceSet(); |
1930 buildCounterReferenceSet++; | 1155 buildCounterReferenceSet++; |
1931 if (buildCounterReferenceSet < 3) { | 1156 if (buildCounterReferenceSet < 3) { |
1932 o.assemblyId = "foo"; | 1157 o.assemblyId = "foo"; |
1933 o.description = "foo"; | 1158 o.description = "foo"; |
1934 o.id = "foo"; | 1159 o.id = "foo"; |
1935 o.md5checksum = "foo"; | 1160 o.md5checksum = "foo"; |
1936 o.ncbiTaxonId = 42; | 1161 o.ncbiTaxonId = 42; |
1937 o.referenceIds = buildUnnamed1547(); | 1162 o.referenceIds = buildUnnamed1801(); |
1938 o.sourceAccessions = buildUnnamed1548(); | 1163 o.sourceAccessions = buildUnnamed1802(); |
1939 o.sourceURI = "foo"; | 1164 o.sourceUri = "foo"; |
1940 } | 1165 } |
1941 buildCounterReferenceSet--; | 1166 buildCounterReferenceSet--; |
1942 return o; | 1167 return o; |
1943 } | 1168 } |
1944 | 1169 |
1945 checkReferenceSet(api.ReferenceSet o) { | 1170 checkReferenceSet(api.ReferenceSet o) { |
1946 buildCounterReferenceSet++; | 1171 buildCounterReferenceSet++; |
1947 if (buildCounterReferenceSet < 3) { | 1172 if (buildCounterReferenceSet < 3) { |
1948 unittest.expect(o.assemblyId, unittest.equals('foo')); | 1173 unittest.expect(o.assemblyId, unittest.equals('foo')); |
1949 unittest.expect(o.description, unittest.equals('foo')); | 1174 unittest.expect(o.description, unittest.equals('foo')); |
1950 unittest.expect(o.id, unittest.equals('foo')); | 1175 unittest.expect(o.id, unittest.equals('foo')); |
1951 unittest.expect(o.md5checksum, unittest.equals('foo')); | 1176 unittest.expect(o.md5checksum, unittest.equals('foo')); |
1952 unittest.expect(o.ncbiTaxonId, unittest.equals(42)); | 1177 unittest.expect(o.ncbiTaxonId, unittest.equals(42)); |
1953 checkUnnamed1547(o.referenceIds); | 1178 checkUnnamed1801(o.referenceIds); |
1954 checkUnnamed1548(o.sourceAccessions); | 1179 checkUnnamed1802(o.sourceAccessions); |
1955 unittest.expect(o.sourceURI, unittest.equals('foo')); | 1180 unittest.expect(o.sourceUri, unittest.equals('foo')); |
1956 } | 1181 } |
1957 buildCounterReferenceSet--; | 1182 buildCounterReferenceSet--; |
1958 } | 1183 } |
1959 | 1184 |
1960 buildUnnamed1549() { | 1185 buildUnnamed1803() { |
1961 var o = new core.List<core.String>(); | 1186 var o = new core.List<core.String>(); |
1962 o.add("foo"); | 1187 o.add("foo"); |
1963 o.add("foo"); | 1188 o.add("foo"); |
1964 return o; | 1189 return o; |
1965 } | 1190 } |
1966 | 1191 |
1967 checkUnnamed1549(core.List<core.String> o) { | 1192 checkUnnamed1803(core.List<core.String> o) { |
1968 unittest.expect(o, unittest.hasLength(2)); | |
1969 unittest.expect(o[0], unittest.equals('foo')); | |
1970 unittest.expect(o[1], unittest.equals('foo')); | |
1971 } | |
1972 | |
1973 buildUnnamed1550() { | |
1974 var o = new core.List<core.String>(); | |
1975 o.add("foo"); | |
1976 o.add("foo"); | |
1977 return o; | |
1978 } | |
1979 | |
1980 checkUnnamed1550(core.List<core.String> o) { | |
1981 unittest.expect(o, unittest.hasLength(2)); | |
1982 unittest.expect(o[0], unittest.equals('foo')); | |
1983 unittest.expect(o[1], unittest.equals('foo')); | |
1984 } | |
1985 | |
1986 core.int buildCounterSearchAnnotationSetsRequest = 0; | |
1987 buildSearchAnnotationSetsRequest() { | |
1988 var o = new api.SearchAnnotationSetsRequest(); | |
1989 buildCounterSearchAnnotationSetsRequest++; | |
1990 if (buildCounterSearchAnnotationSetsRequest < 3) { | |
1991 o.datasetIds = buildUnnamed1549(); | |
1992 o.name = "foo"; | |
1993 o.pageSize = 42; | |
1994 o.pageToken = "foo"; | |
1995 o.referenceSetId = "foo"; | |
1996 o.types = buildUnnamed1550(); | |
1997 } | |
1998 buildCounterSearchAnnotationSetsRequest--; | |
1999 return o; | |
2000 } | |
2001 | |
2002 checkSearchAnnotationSetsRequest(api.SearchAnnotationSetsRequest o) { | |
2003 buildCounterSearchAnnotationSetsRequest++; | |
2004 if (buildCounterSearchAnnotationSetsRequest < 3) { | |
2005 checkUnnamed1549(o.datasetIds); | |
2006 unittest.expect(o.name, unittest.equals('foo')); | |
2007 unittest.expect(o.pageSize, unittest.equals(42)); | |
2008 unittest.expect(o.pageToken, unittest.equals('foo')); | |
2009 unittest.expect(o.referenceSetId, unittest.equals('foo')); | |
2010 checkUnnamed1550(o.types); | |
2011 } | |
2012 buildCounterSearchAnnotationSetsRequest--; | |
2013 } | |
2014 | |
2015 buildUnnamed1551() { | |
2016 var o = new core.List<api.AnnotationSet>(); | |
2017 o.add(buildAnnotationSet()); | |
2018 o.add(buildAnnotationSet()); | |
2019 return o; | |
2020 } | |
2021 | |
2022 checkUnnamed1551(core.List<api.AnnotationSet> o) { | |
2023 unittest.expect(o, unittest.hasLength(2)); | |
2024 checkAnnotationSet(o[0]); | |
2025 checkAnnotationSet(o[1]); | |
2026 } | |
2027 | |
2028 core.int buildCounterSearchAnnotationSetsResponse = 0; | |
2029 buildSearchAnnotationSetsResponse() { | |
2030 var o = new api.SearchAnnotationSetsResponse(); | |
2031 buildCounterSearchAnnotationSetsResponse++; | |
2032 if (buildCounterSearchAnnotationSetsResponse < 3) { | |
2033 o.annotationSets = buildUnnamed1551(); | |
2034 o.nextPageToken = "foo"; | |
2035 } | |
2036 buildCounterSearchAnnotationSetsResponse--; | |
2037 return o; | |
2038 } | |
2039 | |
2040 checkSearchAnnotationSetsResponse(api.SearchAnnotationSetsResponse o) { | |
2041 buildCounterSearchAnnotationSetsResponse++; | |
2042 if (buildCounterSearchAnnotationSetsResponse < 3) { | |
2043 checkUnnamed1551(o.annotationSets); | |
2044 unittest.expect(o.nextPageToken, unittest.equals('foo')); | |
2045 } | |
2046 buildCounterSearchAnnotationSetsResponse--; | |
2047 } | |
2048 | |
2049 buildUnnamed1552() { | |
2050 var o = new core.List<core.String>(); | |
2051 o.add("foo"); | |
2052 o.add("foo"); | |
2053 return o; | |
2054 } | |
2055 | |
2056 checkUnnamed1552(core.List<core.String> o) { | |
2057 unittest.expect(o, unittest.hasLength(2)); | |
2058 unittest.expect(o[0], unittest.equals('foo')); | |
2059 unittest.expect(o[1], unittest.equals('foo')); | |
2060 } | |
2061 | |
2062 core.int buildCounterSearchAnnotationsRequest = 0; | |
2063 buildSearchAnnotationsRequest() { | |
2064 var o = new api.SearchAnnotationsRequest(); | |
2065 buildCounterSearchAnnotationsRequest++; | |
2066 if (buildCounterSearchAnnotationsRequest < 3) { | |
2067 o.annotationSetIds = buildUnnamed1552(); | |
2068 o.pageSize = 42; | |
2069 o.pageToken = "foo"; | |
2070 o.range = buildQueryRange(); | |
2071 } | |
2072 buildCounterSearchAnnotationsRequest--; | |
2073 return o; | |
2074 } | |
2075 | |
2076 checkSearchAnnotationsRequest(api.SearchAnnotationsRequest o) { | |
2077 buildCounterSearchAnnotationsRequest++; | |
2078 if (buildCounterSearchAnnotationsRequest < 3) { | |
2079 checkUnnamed1552(o.annotationSetIds); | |
2080 unittest.expect(o.pageSize, unittest.equals(42)); | |
2081 unittest.expect(o.pageToken, unittest.equals('foo')); | |
2082 checkQueryRange(o.range); | |
2083 } | |
2084 buildCounterSearchAnnotationsRequest--; | |
2085 } | |
2086 | |
2087 buildUnnamed1553() { | |
2088 var o = new core.List<api.Annotation>(); | |
2089 o.add(buildAnnotation()); | |
2090 o.add(buildAnnotation()); | |
2091 return o; | |
2092 } | |
2093 | |
2094 checkUnnamed1553(core.List<api.Annotation> o) { | |
2095 unittest.expect(o, unittest.hasLength(2)); | |
2096 checkAnnotation(o[0]); | |
2097 checkAnnotation(o[1]); | |
2098 } | |
2099 | |
2100 core.int buildCounterSearchAnnotationsResponse = 0; | |
2101 buildSearchAnnotationsResponse() { | |
2102 var o = new api.SearchAnnotationsResponse(); | |
2103 buildCounterSearchAnnotationsResponse++; | |
2104 if (buildCounterSearchAnnotationsResponse < 3) { | |
2105 o.annotations = buildUnnamed1553(); | |
2106 o.nextPageToken = "foo"; | |
2107 } | |
2108 buildCounterSearchAnnotationsResponse--; | |
2109 return o; | |
2110 } | |
2111 | |
2112 checkSearchAnnotationsResponse(api.SearchAnnotationsResponse o) { | |
2113 buildCounterSearchAnnotationsResponse++; | |
2114 if (buildCounterSearchAnnotationsResponse < 3) { | |
2115 checkUnnamed1553(o.annotations); | |
2116 unittest.expect(o.nextPageToken, unittest.equals('foo')); | |
2117 } | |
2118 buildCounterSearchAnnotationsResponse--; | |
2119 } | |
2120 | |
2121 buildUnnamed1554() { | |
2122 var o = new core.List<core.String>(); | |
2123 o.add("foo"); | |
2124 o.add("foo"); | |
2125 return o; | |
2126 } | |
2127 | |
2128 checkUnnamed1554(core.List<core.String> o) { | |
2129 unittest.expect(o, unittest.hasLength(2)); | 1193 unittest.expect(o, unittest.hasLength(2)); |
2130 unittest.expect(o[0], unittest.equals('foo')); | 1194 unittest.expect(o[0], unittest.equals('foo')); |
2131 unittest.expect(o[1], unittest.equals('foo')); | 1195 unittest.expect(o[1], unittest.equals('foo')); |
2132 } | 1196 } |
2133 | 1197 |
2134 core.int buildCounterSearchCallSetsRequest = 0; | 1198 core.int buildCounterSearchCallSetsRequest = 0; |
2135 buildSearchCallSetsRequest() { | 1199 buildSearchCallSetsRequest() { |
2136 var o = new api.SearchCallSetsRequest(); | 1200 var o = new api.SearchCallSetsRequest(); |
2137 buildCounterSearchCallSetsRequest++; | 1201 buildCounterSearchCallSetsRequest++; |
2138 if (buildCounterSearchCallSetsRequest < 3) { | 1202 if (buildCounterSearchCallSetsRequest < 3) { |
2139 o.name = "foo"; | 1203 o.name = "foo"; |
2140 o.pageSize = 42; | 1204 o.pageSize = 42; |
2141 o.pageToken = "foo"; | 1205 o.pageToken = "foo"; |
2142 o.variantSetIds = buildUnnamed1554(); | 1206 o.variantSetIds = buildUnnamed1803(); |
2143 } | 1207 } |
2144 buildCounterSearchCallSetsRequest--; | 1208 buildCounterSearchCallSetsRequest--; |
2145 return o; | 1209 return o; |
2146 } | 1210 } |
2147 | 1211 |
2148 checkSearchCallSetsRequest(api.SearchCallSetsRequest o) { | 1212 checkSearchCallSetsRequest(api.SearchCallSetsRequest o) { |
2149 buildCounterSearchCallSetsRequest++; | 1213 buildCounterSearchCallSetsRequest++; |
2150 if (buildCounterSearchCallSetsRequest < 3) { | 1214 if (buildCounterSearchCallSetsRequest < 3) { |
2151 unittest.expect(o.name, unittest.equals('foo')); | 1215 unittest.expect(o.name, unittest.equals('foo')); |
2152 unittest.expect(o.pageSize, unittest.equals(42)); | 1216 unittest.expect(o.pageSize, unittest.equals(42)); |
2153 unittest.expect(o.pageToken, unittest.equals('foo')); | 1217 unittest.expect(o.pageToken, unittest.equals('foo')); |
2154 checkUnnamed1554(o.variantSetIds); | 1218 checkUnnamed1803(o.variantSetIds); |
2155 } | 1219 } |
2156 buildCounterSearchCallSetsRequest--; | 1220 buildCounterSearchCallSetsRequest--; |
2157 } | 1221 } |
2158 | 1222 |
2159 buildUnnamed1555() { | 1223 buildUnnamed1804() { |
2160 var o = new core.List<api.CallSet>(); | 1224 var o = new core.List<api.CallSet>(); |
2161 o.add(buildCallSet()); | 1225 o.add(buildCallSet()); |
2162 o.add(buildCallSet()); | 1226 o.add(buildCallSet()); |
2163 return o; | 1227 return o; |
2164 } | 1228 } |
2165 | 1229 |
2166 checkUnnamed1555(core.List<api.CallSet> o) { | 1230 checkUnnamed1804(core.List<api.CallSet> o) { |
2167 unittest.expect(o, unittest.hasLength(2)); | 1231 unittest.expect(o, unittest.hasLength(2)); |
2168 checkCallSet(o[0]); | 1232 checkCallSet(o[0]); |
2169 checkCallSet(o[1]); | 1233 checkCallSet(o[1]); |
2170 } | 1234 } |
2171 | 1235 |
2172 core.int buildCounterSearchCallSetsResponse = 0; | 1236 core.int buildCounterSearchCallSetsResponse = 0; |
2173 buildSearchCallSetsResponse() { | 1237 buildSearchCallSetsResponse() { |
2174 var o = new api.SearchCallSetsResponse(); | 1238 var o = new api.SearchCallSetsResponse(); |
2175 buildCounterSearchCallSetsResponse++; | 1239 buildCounterSearchCallSetsResponse++; |
2176 if (buildCounterSearchCallSetsResponse < 3) { | 1240 if (buildCounterSearchCallSetsResponse < 3) { |
2177 o.callSets = buildUnnamed1555(); | 1241 o.callSets = buildUnnamed1804(); |
2178 o.nextPageToken = "foo"; | 1242 o.nextPageToken = "foo"; |
2179 } | 1243 } |
2180 buildCounterSearchCallSetsResponse--; | 1244 buildCounterSearchCallSetsResponse--; |
2181 return o; | 1245 return o; |
2182 } | 1246 } |
2183 | 1247 |
2184 checkSearchCallSetsResponse(api.SearchCallSetsResponse o) { | 1248 checkSearchCallSetsResponse(api.SearchCallSetsResponse o) { |
2185 buildCounterSearchCallSetsResponse++; | 1249 buildCounterSearchCallSetsResponse++; |
2186 if (buildCounterSearchCallSetsResponse < 3) { | 1250 if (buildCounterSearchCallSetsResponse < 3) { |
2187 checkUnnamed1555(o.callSets); | 1251 checkUnnamed1804(o.callSets); |
2188 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1252 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2189 } | 1253 } |
2190 buildCounterSearchCallSetsResponse--; | 1254 buildCounterSearchCallSetsResponse--; |
2191 } | 1255 } |
2192 | 1256 |
2193 buildUnnamed1556() { | 1257 buildUnnamed1805() { |
2194 var o = new core.List<core.String>(); | 1258 var o = new core.List<core.String>(); |
2195 o.add("foo"); | 1259 o.add("foo"); |
2196 o.add("foo"); | 1260 o.add("foo"); |
2197 return o; | 1261 return o; |
2198 } | 1262 } |
2199 | 1263 |
2200 checkUnnamed1556(core.List<core.String> o) { | 1264 checkUnnamed1805(core.List<core.String> o) { |
2201 unittest.expect(o, unittest.hasLength(2)); | |
2202 unittest.expect(o[0], unittest.equals('foo')); | |
2203 unittest.expect(o[1], unittest.equals('foo')); | |
2204 } | |
2205 | |
2206 core.int buildCounterSearchJobsRequest = 0; | |
2207 buildSearchJobsRequest() { | |
2208 var o = new api.SearchJobsRequest(); | |
2209 buildCounterSearchJobsRequest++; | |
2210 if (buildCounterSearchJobsRequest < 3) { | |
2211 o.createdAfter = "foo"; | |
2212 o.createdBefore = "foo"; | |
2213 o.pageSize = 42; | |
2214 o.pageToken = "foo"; | |
2215 o.projectNumber = "foo"; | |
2216 o.status = buildUnnamed1556(); | |
2217 } | |
2218 buildCounterSearchJobsRequest--; | |
2219 return o; | |
2220 } | |
2221 | |
2222 checkSearchJobsRequest(api.SearchJobsRequest o) { | |
2223 buildCounterSearchJobsRequest++; | |
2224 if (buildCounterSearchJobsRequest < 3) { | |
2225 unittest.expect(o.createdAfter, unittest.equals('foo')); | |
2226 unittest.expect(o.createdBefore, unittest.equals('foo')); | |
2227 unittest.expect(o.pageSize, unittest.equals(42)); | |
2228 unittest.expect(o.pageToken, unittest.equals('foo')); | |
2229 unittest.expect(o.projectNumber, unittest.equals('foo')); | |
2230 checkUnnamed1556(o.status); | |
2231 } | |
2232 buildCounterSearchJobsRequest--; | |
2233 } | |
2234 | |
2235 buildUnnamed1557() { | |
2236 var o = new core.List<api.Job>(); | |
2237 o.add(buildJob()); | |
2238 o.add(buildJob()); | |
2239 return o; | |
2240 } | |
2241 | |
2242 checkUnnamed1557(core.List<api.Job> o) { | |
2243 unittest.expect(o, unittest.hasLength(2)); | |
2244 checkJob(o[0]); | |
2245 checkJob(o[1]); | |
2246 } | |
2247 | |
2248 core.int buildCounterSearchJobsResponse = 0; | |
2249 buildSearchJobsResponse() { | |
2250 var o = new api.SearchJobsResponse(); | |
2251 buildCounterSearchJobsResponse++; | |
2252 if (buildCounterSearchJobsResponse < 3) { | |
2253 o.jobs = buildUnnamed1557(); | |
2254 o.nextPageToken = "foo"; | |
2255 } | |
2256 buildCounterSearchJobsResponse--; | |
2257 return o; | |
2258 } | |
2259 | |
2260 checkSearchJobsResponse(api.SearchJobsResponse o) { | |
2261 buildCounterSearchJobsResponse++; | |
2262 if (buildCounterSearchJobsResponse < 3) { | |
2263 checkUnnamed1557(o.jobs); | |
2264 unittest.expect(o.nextPageToken, unittest.equals('foo')); | |
2265 } | |
2266 buildCounterSearchJobsResponse--; | |
2267 } | |
2268 | |
2269 buildUnnamed1558() { | |
2270 var o = new core.List<core.String>(); | |
2271 o.add("foo"); | |
2272 o.add("foo"); | |
2273 return o; | |
2274 } | |
2275 | |
2276 checkUnnamed1558(core.List<core.String> o) { | |
2277 unittest.expect(o, unittest.hasLength(2)); | 1265 unittest.expect(o, unittest.hasLength(2)); |
2278 unittest.expect(o[0], unittest.equals('foo')); | 1266 unittest.expect(o[0], unittest.equals('foo')); |
2279 unittest.expect(o[1], unittest.equals('foo')); | 1267 unittest.expect(o[1], unittest.equals('foo')); |
2280 } | 1268 } |
2281 | 1269 |
2282 core.int buildCounterSearchReadGroupSetsRequest = 0; | 1270 core.int buildCounterSearchReadGroupSetsRequest = 0; |
2283 buildSearchReadGroupSetsRequest() { | 1271 buildSearchReadGroupSetsRequest() { |
2284 var o = new api.SearchReadGroupSetsRequest(); | 1272 var o = new api.SearchReadGroupSetsRequest(); |
2285 buildCounterSearchReadGroupSetsRequest++; | 1273 buildCounterSearchReadGroupSetsRequest++; |
2286 if (buildCounterSearchReadGroupSetsRequest < 3) { | 1274 if (buildCounterSearchReadGroupSetsRequest < 3) { |
2287 o.datasetIds = buildUnnamed1558(); | 1275 o.datasetIds = buildUnnamed1805(); |
2288 o.name = "foo"; | 1276 o.name = "foo"; |
2289 o.pageSize = 42; | 1277 o.pageSize = 42; |
2290 o.pageToken = "foo"; | 1278 o.pageToken = "foo"; |
2291 } | 1279 } |
2292 buildCounterSearchReadGroupSetsRequest--; | 1280 buildCounterSearchReadGroupSetsRequest--; |
2293 return o; | 1281 return o; |
2294 } | 1282 } |
2295 | 1283 |
2296 checkSearchReadGroupSetsRequest(api.SearchReadGroupSetsRequest o) { | 1284 checkSearchReadGroupSetsRequest(api.SearchReadGroupSetsRequest o) { |
2297 buildCounterSearchReadGroupSetsRequest++; | 1285 buildCounterSearchReadGroupSetsRequest++; |
2298 if (buildCounterSearchReadGroupSetsRequest < 3) { | 1286 if (buildCounterSearchReadGroupSetsRequest < 3) { |
2299 checkUnnamed1558(o.datasetIds); | 1287 checkUnnamed1805(o.datasetIds); |
2300 unittest.expect(o.name, unittest.equals('foo')); | 1288 unittest.expect(o.name, unittest.equals('foo')); |
2301 unittest.expect(o.pageSize, unittest.equals(42)); | 1289 unittest.expect(o.pageSize, unittest.equals(42)); |
2302 unittest.expect(o.pageToken, unittest.equals('foo')); | 1290 unittest.expect(o.pageToken, unittest.equals('foo')); |
2303 } | 1291 } |
2304 buildCounterSearchReadGroupSetsRequest--; | 1292 buildCounterSearchReadGroupSetsRequest--; |
2305 } | 1293 } |
2306 | 1294 |
2307 buildUnnamed1559() { | 1295 buildUnnamed1806() { |
2308 var o = new core.List<api.ReadGroupSet>(); | 1296 var o = new core.List<api.ReadGroupSet>(); |
2309 o.add(buildReadGroupSet()); | 1297 o.add(buildReadGroupSet()); |
2310 o.add(buildReadGroupSet()); | 1298 o.add(buildReadGroupSet()); |
2311 return o; | 1299 return o; |
2312 } | 1300 } |
2313 | 1301 |
2314 checkUnnamed1559(core.List<api.ReadGroupSet> o) { | 1302 checkUnnamed1806(core.List<api.ReadGroupSet> o) { |
2315 unittest.expect(o, unittest.hasLength(2)); | 1303 unittest.expect(o, unittest.hasLength(2)); |
2316 checkReadGroupSet(o[0]); | 1304 checkReadGroupSet(o[0]); |
2317 checkReadGroupSet(o[1]); | 1305 checkReadGroupSet(o[1]); |
2318 } | 1306 } |
2319 | 1307 |
2320 core.int buildCounterSearchReadGroupSetsResponse = 0; | 1308 core.int buildCounterSearchReadGroupSetsResponse = 0; |
2321 buildSearchReadGroupSetsResponse() { | 1309 buildSearchReadGroupSetsResponse() { |
2322 var o = new api.SearchReadGroupSetsResponse(); | 1310 var o = new api.SearchReadGroupSetsResponse(); |
2323 buildCounterSearchReadGroupSetsResponse++; | 1311 buildCounterSearchReadGroupSetsResponse++; |
2324 if (buildCounterSearchReadGroupSetsResponse < 3) { | 1312 if (buildCounterSearchReadGroupSetsResponse < 3) { |
2325 o.nextPageToken = "foo"; | 1313 o.nextPageToken = "foo"; |
2326 o.readGroupSets = buildUnnamed1559(); | 1314 o.readGroupSets = buildUnnamed1806(); |
2327 } | 1315 } |
2328 buildCounterSearchReadGroupSetsResponse--; | 1316 buildCounterSearchReadGroupSetsResponse--; |
2329 return o; | 1317 return o; |
2330 } | 1318 } |
2331 | 1319 |
2332 checkSearchReadGroupSetsResponse(api.SearchReadGroupSetsResponse o) { | 1320 checkSearchReadGroupSetsResponse(api.SearchReadGroupSetsResponse o) { |
2333 buildCounterSearchReadGroupSetsResponse++; | 1321 buildCounterSearchReadGroupSetsResponse++; |
2334 if (buildCounterSearchReadGroupSetsResponse < 3) { | 1322 if (buildCounterSearchReadGroupSetsResponse < 3) { |
2335 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1323 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2336 checkUnnamed1559(o.readGroupSets); | 1324 checkUnnamed1806(o.readGroupSets); |
2337 } | 1325 } |
2338 buildCounterSearchReadGroupSetsResponse--; | 1326 buildCounterSearchReadGroupSetsResponse--; |
2339 } | 1327 } |
2340 | 1328 |
2341 buildUnnamed1560() { | 1329 buildUnnamed1807() { |
2342 var o = new core.List<core.String>(); | 1330 var o = new core.List<core.String>(); |
2343 o.add("foo"); | 1331 o.add("foo"); |
2344 o.add("foo"); | 1332 o.add("foo"); |
2345 return o; | 1333 return o; |
2346 } | 1334 } |
2347 | 1335 |
2348 checkUnnamed1560(core.List<core.String> o) { | 1336 checkUnnamed1807(core.List<core.String> o) { |
2349 unittest.expect(o, unittest.hasLength(2)); | 1337 unittest.expect(o, unittest.hasLength(2)); |
2350 unittest.expect(o[0], unittest.equals('foo')); | 1338 unittest.expect(o[0], unittest.equals('foo')); |
2351 unittest.expect(o[1], unittest.equals('foo')); | 1339 unittest.expect(o[1], unittest.equals('foo')); |
2352 } | 1340 } |
2353 | 1341 |
2354 buildUnnamed1561() { | 1342 buildUnnamed1808() { |
2355 var o = new core.List<core.String>(); | 1343 var o = new core.List<core.String>(); |
2356 o.add("foo"); | 1344 o.add("foo"); |
2357 o.add("foo"); | 1345 o.add("foo"); |
2358 return o; | 1346 return o; |
2359 } | 1347 } |
2360 | 1348 |
2361 checkUnnamed1561(core.List<core.String> o) { | 1349 checkUnnamed1808(core.List<core.String> o) { |
2362 unittest.expect(o, unittest.hasLength(2)); | 1350 unittest.expect(o, unittest.hasLength(2)); |
2363 unittest.expect(o[0], unittest.equals('foo')); | 1351 unittest.expect(o[0], unittest.equals('foo')); |
2364 unittest.expect(o[1], unittest.equals('foo')); | 1352 unittest.expect(o[1], unittest.equals('foo')); |
2365 } | 1353 } |
2366 | 1354 |
2367 core.int buildCounterSearchReadsRequest = 0; | 1355 core.int buildCounterSearchReadsRequest = 0; |
2368 buildSearchReadsRequest() { | 1356 buildSearchReadsRequest() { |
2369 var o = new api.SearchReadsRequest(); | 1357 var o = new api.SearchReadsRequest(); |
2370 buildCounterSearchReadsRequest++; | 1358 buildCounterSearchReadsRequest++; |
2371 if (buildCounterSearchReadsRequest < 3) { | 1359 if (buildCounterSearchReadsRequest < 3) { |
2372 o.end = "foo"; | 1360 o.end = "foo"; |
2373 o.pageSize = 42; | 1361 o.pageSize = 42; |
2374 o.pageToken = "foo"; | 1362 o.pageToken = "foo"; |
2375 o.readGroupIds = buildUnnamed1560(); | 1363 o.readGroupIds = buildUnnamed1807(); |
2376 o.readGroupSetIds = buildUnnamed1561(); | 1364 o.readGroupSetIds = buildUnnamed1808(); |
2377 o.referenceName = "foo"; | 1365 o.referenceName = "foo"; |
2378 o.start = "foo"; | 1366 o.start = "foo"; |
2379 } | 1367 } |
2380 buildCounterSearchReadsRequest--; | 1368 buildCounterSearchReadsRequest--; |
2381 return o; | 1369 return o; |
2382 } | 1370 } |
2383 | 1371 |
2384 checkSearchReadsRequest(api.SearchReadsRequest o) { | 1372 checkSearchReadsRequest(api.SearchReadsRequest o) { |
2385 buildCounterSearchReadsRequest++; | 1373 buildCounterSearchReadsRequest++; |
2386 if (buildCounterSearchReadsRequest < 3) { | 1374 if (buildCounterSearchReadsRequest < 3) { |
2387 unittest.expect(o.end, unittest.equals('foo')); | 1375 unittest.expect(o.end, unittest.equals('foo')); |
2388 unittest.expect(o.pageSize, unittest.equals(42)); | 1376 unittest.expect(o.pageSize, unittest.equals(42)); |
2389 unittest.expect(o.pageToken, unittest.equals('foo')); | 1377 unittest.expect(o.pageToken, unittest.equals('foo')); |
2390 checkUnnamed1560(o.readGroupIds); | 1378 checkUnnamed1807(o.readGroupIds); |
2391 checkUnnamed1561(o.readGroupSetIds); | 1379 checkUnnamed1808(o.readGroupSetIds); |
2392 unittest.expect(o.referenceName, unittest.equals('foo')); | 1380 unittest.expect(o.referenceName, unittest.equals('foo')); |
2393 unittest.expect(o.start, unittest.equals('foo')); | 1381 unittest.expect(o.start, unittest.equals('foo')); |
2394 } | 1382 } |
2395 buildCounterSearchReadsRequest--; | 1383 buildCounterSearchReadsRequest--; |
2396 } | 1384 } |
2397 | 1385 |
2398 buildUnnamed1562() { | 1386 buildUnnamed1809() { |
2399 var o = new core.List<api.Read>(); | 1387 var o = new core.List<api.Read>(); |
2400 o.add(buildRead()); | 1388 o.add(buildRead()); |
2401 o.add(buildRead()); | 1389 o.add(buildRead()); |
2402 return o; | 1390 return o; |
2403 } | 1391 } |
2404 | 1392 |
2405 checkUnnamed1562(core.List<api.Read> o) { | 1393 checkUnnamed1809(core.List<api.Read> o) { |
2406 unittest.expect(o, unittest.hasLength(2)); | 1394 unittest.expect(o, unittest.hasLength(2)); |
2407 checkRead(o[0]); | 1395 checkRead(o[0]); |
2408 checkRead(o[1]); | 1396 checkRead(o[1]); |
2409 } | 1397 } |
2410 | 1398 |
2411 core.int buildCounterSearchReadsResponse = 0; | 1399 core.int buildCounterSearchReadsResponse = 0; |
2412 buildSearchReadsResponse() { | 1400 buildSearchReadsResponse() { |
2413 var o = new api.SearchReadsResponse(); | 1401 var o = new api.SearchReadsResponse(); |
2414 buildCounterSearchReadsResponse++; | 1402 buildCounterSearchReadsResponse++; |
2415 if (buildCounterSearchReadsResponse < 3) { | 1403 if (buildCounterSearchReadsResponse < 3) { |
2416 o.alignments = buildUnnamed1562(); | 1404 o.alignments = buildUnnamed1809(); |
2417 o.nextPageToken = "foo"; | 1405 o.nextPageToken = "foo"; |
2418 } | 1406 } |
2419 buildCounterSearchReadsResponse--; | 1407 buildCounterSearchReadsResponse--; |
2420 return o; | 1408 return o; |
2421 } | 1409 } |
2422 | 1410 |
2423 checkSearchReadsResponse(api.SearchReadsResponse o) { | 1411 checkSearchReadsResponse(api.SearchReadsResponse o) { |
2424 buildCounterSearchReadsResponse++; | 1412 buildCounterSearchReadsResponse++; |
2425 if (buildCounterSearchReadsResponse < 3) { | 1413 if (buildCounterSearchReadsResponse < 3) { |
2426 checkUnnamed1562(o.alignments); | 1414 checkUnnamed1809(o.alignments); |
2427 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1415 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2428 } | 1416 } |
2429 buildCounterSearchReadsResponse--; | 1417 buildCounterSearchReadsResponse--; |
2430 } | 1418 } |
2431 | 1419 |
2432 buildUnnamed1563() { | 1420 buildUnnamed1810() { |
2433 var o = new core.List<core.String>(); | 1421 var o = new core.List<core.String>(); |
2434 o.add("foo"); | 1422 o.add("foo"); |
2435 o.add("foo"); | 1423 o.add("foo"); |
2436 return o; | 1424 return o; |
2437 } | 1425 } |
2438 | 1426 |
2439 checkUnnamed1563(core.List<core.String> o) { | 1427 checkUnnamed1810(core.List<core.String> o) { |
2440 unittest.expect(o, unittest.hasLength(2)); | 1428 unittest.expect(o, unittest.hasLength(2)); |
2441 unittest.expect(o[0], unittest.equals('foo')); | 1429 unittest.expect(o[0], unittest.equals('foo')); |
2442 unittest.expect(o[1], unittest.equals('foo')); | 1430 unittest.expect(o[1], unittest.equals('foo')); |
2443 } | 1431 } |
2444 | 1432 |
2445 buildUnnamed1564() { | 1433 buildUnnamed1811() { |
2446 var o = new core.List<core.String>(); | 1434 var o = new core.List<core.String>(); |
2447 o.add("foo"); | 1435 o.add("foo"); |
2448 o.add("foo"); | 1436 o.add("foo"); |
2449 return o; | 1437 return o; |
2450 } | 1438 } |
2451 | 1439 |
2452 checkUnnamed1564(core.List<core.String> o) { | 1440 checkUnnamed1811(core.List<core.String> o) { |
2453 unittest.expect(o, unittest.hasLength(2)); | 1441 unittest.expect(o, unittest.hasLength(2)); |
2454 unittest.expect(o[0], unittest.equals('foo')); | 1442 unittest.expect(o[0], unittest.equals('foo')); |
2455 unittest.expect(o[1], unittest.equals('foo')); | 1443 unittest.expect(o[1], unittest.equals('foo')); |
2456 } | 1444 } |
2457 | 1445 |
2458 core.int buildCounterSearchReferenceSetsRequest = 0; | 1446 core.int buildCounterSearchReferenceSetsRequest = 0; |
2459 buildSearchReferenceSetsRequest() { | 1447 buildSearchReferenceSetsRequest() { |
2460 var o = new api.SearchReferenceSetsRequest(); | 1448 var o = new api.SearchReferenceSetsRequest(); |
2461 buildCounterSearchReferenceSetsRequest++; | 1449 buildCounterSearchReferenceSetsRequest++; |
2462 if (buildCounterSearchReferenceSetsRequest < 3) { | 1450 if (buildCounterSearchReferenceSetsRequest < 3) { |
2463 o.accessions = buildUnnamed1563(); | 1451 o.accessions = buildUnnamed1810(); |
2464 o.assemblyId = "foo"; | 1452 o.assemblyId = "foo"; |
2465 o.md5checksums = buildUnnamed1564(); | 1453 o.md5checksums = buildUnnamed1811(); |
2466 o.pageSize = 42; | 1454 o.pageSize = 42; |
2467 o.pageToken = "foo"; | 1455 o.pageToken = "foo"; |
2468 } | 1456 } |
2469 buildCounterSearchReferenceSetsRequest--; | 1457 buildCounterSearchReferenceSetsRequest--; |
2470 return o; | 1458 return o; |
2471 } | 1459 } |
2472 | 1460 |
2473 checkSearchReferenceSetsRequest(api.SearchReferenceSetsRequest o) { | 1461 checkSearchReferenceSetsRequest(api.SearchReferenceSetsRequest o) { |
2474 buildCounterSearchReferenceSetsRequest++; | 1462 buildCounterSearchReferenceSetsRequest++; |
2475 if (buildCounterSearchReferenceSetsRequest < 3) { | 1463 if (buildCounterSearchReferenceSetsRequest < 3) { |
2476 checkUnnamed1563(o.accessions); | 1464 checkUnnamed1810(o.accessions); |
2477 unittest.expect(o.assemblyId, unittest.equals('foo')); | 1465 unittest.expect(o.assemblyId, unittest.equals('foo')); |
2478 checkUnnamed1564(o.md5checksums); | 1466 checkUnnamed1811(o.md5checksums); |
2479 unittest.expect(o.pageSize, unittest.equals(42)); | 1467 unittest.expect(o.pageSize, unittest.equals(42)); |
2480 unittest.expect(o.pageToken, unittest.equals('foo')); | 1468 unittest.expect(o.pageToken, unittest.equals('foo')); |
2481 } | 1469 } |
2482 buildCounterSearchReferenceSetsRequest--; | 1470 buildCounterSearchReferenceSetsRequest--; |
2483 } | 1471 } |
2484 | 1472 |
2485 buildUnnamed1565() { | 1473 buildUnnamed1812() { |
2486 var o = new core.List<api.ReferenceSet>(); | 1474 var o = new core.List<api.ReferenceSet>(); |
2487 o.add(buildReferenceSet()); | 1475 o.add(buildReferenceSet()); |
2488 o.add(buildReferenceSet()); | 1476 o.add(buildReferenceSet()); |
2489 return o; | 1477 return o; |
2490 } | 1478 } |
2491 | 1479 |
2492 checkUnnamed1565(core.List<api.ReferenceSet> o) { | 1480 checkUnnamed1812(core.List<api.ReferenceSet> o) { |
2493 unittest.expect(o, unittest.hasLength(2)); | 1481 unittest.expect(o, unittest.hasLength(2)); |
2494 checkReferenceSet(o[0]); | 1482 checkReferenceSet(o[0]); |
2495 checkReferenceSet(o[1]); | 1483 checkReferenceSet(o[1]); |
2496 } | 1484 } |
2497 | 1485 |
2498 core.int buildCounterSearchReferenceSetsResponse = 0; | 1486 core.int buildCounterSearchReferenceSetsResponse = 0; |
2499 buildSearchReferenceSetsResponse() { | 1487 buildSearchReferenceSetsResponse() { |
2500 var o = new api.SearchReferenceSetsResponse(); | 1488 var o = new api.SearchReferenceSetsResponse(); |
2501 buildCounterSearchReferenceSetsResponse++; | 1489 buildCounterSearchReferenceSetsResponse++; |
2502 if (buildCounterSearchReferenceSetsResponse < 3) { | 1490 if (buildCounterSearchReferenceSetsResponse < 3) { |
2503 o.nextPageToken = "foo"; | 1491 o.nextPageToken = "foo"; |
2504 o.referenceSets = buildUnnamed1565(); | 1492 o.referenceSets = buildUnnamed1812(); |
2505 } | 1493 } |
2506 buildCounterSearchReferenceSetsResponse--; | 1494 buildCounterSearchReferenceSetsResponse--; |
2507 return o; | 1495 return o; |
2508 } | 1496 } |
2509 | 1497 |
2510 checkSearchReferenceSetsResponse(api.SearchReferenceSetsResponse o) { | 1498 checkSearchReferenceSetsResponse(api.SearchReferenceSetsResponse o) { |
2511 buildCounterSearchReferenceSetsResponse++; | 1499 buildCounterSearchReferenceSetsResponse++; |
2512 if (buildCounterSearchReferenceSetsResponse < 3) { | 1500 if (buildCounterSearchReferenceSetsResponse < 3) { |
2513 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1501 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2514 checkUnnamed1565(o.referenceSets); | 1502 checkUnnamed1812(o.referenceSets); |
2515 } | 1503 } |
2516 buildCounterSearchReferenceSetsResponse--; | 1504 buildCounterSearchReferenceSetsResponse--; |
2517 } | 1505 } |
2518 | 1506 |
2519 buildUnnamed1566() { | 1507 buildUnnamed1813() { |
2520 var o = new core.List<core.String>(); | 1508 var o = new core.List<core.String>(); |
2521 o.add("foo"); | 1509 o.add("foo"); |
2522 o.add("foo"); | 1510 o.add("foo"); |
2523 return o; | 1511 return o; |
2524 } | 1512 } |
2525 | 1513 |
2526 checkUnnamed1566(core.List<core.String> o) { | 1514 checkUnnamed1813(core.List<core.String> o) { |
2527 unittest.expect(o, unittest.hasLength(2)); | 1515 unittest.expect(o, unittest.hasLength(2)); |
2528 unittest.expect(o[0], unittest.equals('foo')); | 1516 unittest.expect(o[0], unittest.equals('foo')); |
2529 unittest.expect(o[1], unittest.equals('foo')); | 1517 unittest.expect(o[1], unittest.equals('foo')); |
2530 } | 1518 } |
2531 | 1519 |
2532 buildUnnamed1567() { | 1520 buildUnnamed1814() { |
2533 var o = new core.List<core.String>(); | 1521 var o = new core.List<core.String>(); |
2534 o.add("foo"); | 1522 o.add("foo"); |
2535 o.add("foo"); | 1523 o.add("foo"); |
2536 return o; | 1524 return o; |
2537 } | 1525 } |
2538 | 1526 |
2539 checkUnnamed1567(core.List<core.String> o) { | 1527 checkUnnamed1814(core.List<core.String> o) { |
2540 unittest.expect(o, unittest.hasLength(2)); | 1528 unittest.expect(o, unittest.hasLength(2)); |
2541 unittest.expect(o[0], unittest.equals('foo')); | 1529 unittest.expect(o[0], unittest.equals('foo')); |
2542 unittest.expect(o[1], unittest.equals('foo')); | 1530 unittest.expect(o[1], unittest.equals('foo')); |
2543 } | 1531 } |
2544 | 1532 |
2545 core.int buildCounterSearchReferencesRequest = 0; | 1533 core.int buildCounterSearchReferencesRequest = 0; |
2546 buildSearchReferencesRequest() { | 1534 buildSearchReferencesRequest() { |
2547 var o = new api.SearchReferencesRequest(); | 1535 var o = new api.SearchReferencesRequest(); |
2548 buildCounterSearchReferencesRequest++; | 1536 buildCounterSearchReferencesRequest++; |
2549 if (buildCounterSearchReferencesRequest < 3) { | 1537 if (buildCounterSearchReferencesRequest < 3) { |
2550 o.accessions = buildUnnamed1566(); | 1538 o.accessions = buildUnnamed1813(); |
2551 o.md5checksums = buildUnnamed1567(); | 1539 o.md5checksums = buildUnnamed1814(); |
2552 o.pageSize = 42; | 1540 o.pageSize = 42; |
2553 o.pageToken = "foo"; | 1541 o.pageToken = "foo"; |
2554 o.referenceSetId = "foo"; | 1542 o.referenceSetId = "foo"; |
2555 } | 1543 } |
2556 buildCounterSearchReferencesRequest--; | 1544 buildCounterSearchReferencesRequest--; |
2557 return o; | 1545 return o; |
2558 } | 1546 } |
2559 | 1547 |
2560 checkSearchReferencesRequest(api.SearchReferencesRequest o) { | 1548 checkSearchReferencesRequest(api.SearchReferencesRequest o) { |
2561 buildCounterSearchReferencesRequest++; | 1549 buildCounterSearchReferencesRequest++; |
2562 if (buildCounterSearchReferencesRequest < 3) { | 1550 if (buildCounterSearchReferencesRequest < 3) { |
2563 checkUnnamed1566(o.accessions); | 1551 checkUnnamed1813(o.accessions); |
2564 checkUnnamed1567(o.md5checksums); | 1552 checkUnnamed1814(o.md5checksums); |
2565 unittest.expect(o.pageSize, unittest.equals(42)); | 1553 unittest.expect(o.pageSize, unittest.equals(42)); |
2566 unittest.expect(o.pageToken, unittest.equals('foo')); | 1554 unittest.expect(o.pageToken, unittest.equals('foo')); |
2567 unittest.expect(o.referenceSetId, unittest.equals('foo')); | 1555 unittest.expect(o.referenceSetId, unittest.equals('foo')); |
2568 } | 1556 } |
2569 buildCounterSearchReferencesRequest--; | 1557 buildCounterSearchReferencesRequest--; |
2570 } | 1558 } |
2571 | 1559 |
2572 buildUnnamed1568() { | 1560 buildUnnamed1815() { |
2573 var o = new core.List<api.Reference>(); | 1561 var o = new core.List<api.Reference>(); |
2574 o.add(buildReference()); | 1562 o.add(buildReference()); |
2575 o.add(buildReference()); | 1563 o.add(buildReference()); |
2576 return o; | 1564 return o; |
2577 } | 1565 } |
2578 | 1566 |
2579 checkUnnamed1568(core.List<api.Reference> o) { | 1567 checkUnnamed1815(core.List<api.Reference> o) { |
2580 unittest.expect(o, unittest.hasLength(2)); | 1568 unittest.expect(o, unittest.hasLength(2)); |
2581 checkReference(o[0]); | 1569 checkReference(o[0]); |
2582 checkReference(o[1]); | 1570 checkReference(o[1]); |
2583 } | 1571 } |
2584 | 1572 |
2585 core.int buildCounterSearchReferencesResponse = 0; | 1573 core.int buildCounterSearchReferencesResponse = 0; |
2586 buildSearchReferencesResponse() { | 1574 buildSearchReferencesResponse() { |
2587 var o = new api.SearchReferencesResponse(); | 1575 var o = new api.SearchReferencesResponse(); |
2588 buildCounterSearchReferencesResponse++; | 1576 buildCounterSearchReferencesResponse++; |
2589 if (buildCounterSearchReferencesResponse < 3) { | 1577 if (buildCounterSearchReferencesResponse < 3) { |
2590 o.nextPageToken = "foo"; | 1578 o.nextPageToken = "foo"; |
2591 o.references = buildUnnamed1568(); | 1579 o.references = buildUnnamed1815(); |
2592 } | 1580 } |
2593 buildCounterSearchReferencesResponse--; | 1581 buildCounterSearchReferencesResponse--; |
2594 return o; | 1582 return o; |
2595 } | 1583 } |
2596 | 1584 |
2597 checkSearchReferencesResponse(api.SearchReferencesResponse o) { | 1585 checkSearchReferencesResponse(api.SearchReferencesResponse o) { |
2598 buildCounterSearchReferencesResponse++; | 1586 buildCounterSearchReferencesResponse++; |
2599 if (buildCounterSearchReferencesResponse < 3) { | 1587 if (buildCounterSearchReferencesResponse < 3) { |
2600 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1588 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2601 checkUnnamed1568(o.references); | 1589 checkUnnamed1815(o.references); |
2602 } | 1590 } |
2603 buildCounterSearchReferencesResponse--; | 1591 buildCounterSearchReferencesResponse--; |
2604 } | 1592 } |
2605 | 1593 |
2606 buildUnnamed1569() { | 1594 buildUnnamed1816() { |
2607 var o = new core.List<core.String>(); | 1595 var o = new core.List<core.String>(); |
2608 o.add("foo"); | 1596 o.add("foo"); |
2609 o.add("foo"); | 1597 o.add("foo"); |
2610 return o; | 1598 return o; |
2611 } | 1599 } |
2612 | 1600 |
2613 checkUnnamed1569(core.List<core.String> o) { | 1601 checkUnnamed1816(core.List<core.String> o) { |
2614 unittest.expect(o, unittest.hasLength(2)); | 1602 unittest.expect(o, unittest.hasLength(2)); |
2615 unittest.expect(o[0], unittest.equals('foo')); | 1603 unittest.expect(o[0], unittest.equals('foo')); |
2616 unittest.expect(o[1], unittest.equals('foo')); | 1604 unittest.expect(o[1], unittest.equals('foo')); |
2617 } | 1605 } |
2618 | 1606 |
2619 core.int buildCounterSearchVariantSetsRequest = 0; | 1607 core.int buildCounterSearchVariantSetsRequest = 0; |
2620 buildSearchVariantSetsRequest() { | 1608 buildSearchVariantSetsRequest() { |
2621 var o = new api.SearchVariantSetsRequest(); | 1609 var o = new api.SearchVariantSetsRequest(); |
2622 buildCounterSearchVariantSetsRequest++; | 1610 buildCounterSearchVariantSetsRequest++; |
2623 if (buildCounterSearchVariantSetsRequest < 3) { | 1611 if (buildCounterSearchVariantSetsRequest < 3) { |
2624 o.datasetIds = buildUnnamed1569(); | 1612 o.datasetIds = buildUnnamed1816(); |
2625 o.pageSize = 42; | 1613 o.pageSize = 42; |
2626 o.pageToken = "foo"; | 1614 o.pageToken = "foo"; |
2627 } | 1615 } |
2628 buildCounterSearchVariantSetsRequest--; | 1616 buildCounterSearchVariantSetsRequest--; |
2629 return o; | 1617 return o; |
2630 } | 1618 } |
2631 | 1619 |
2632 checkSearchVariantSetsRequest(api.SearchVariantSetsRequest o) { | 1620 checkSearchVariantSetsRequest(api.SearchVariantSetsRequest o) { |
2633 buildCounterSearchVariantSetsRequest++; | 1621 buildCounterSearchVariantSetsRequest++; |
2634 if (buildCounterSearchVariantSetsRequest < 3) { | 1622 if (buildCounterSearchVariantSetsRequest < 3) { |
2635 checkUnnamed1569(o.datasetIds); | 1623 checkUnnamed1816(o.datasetIds); |
2636 unittest.expect(o.pageSize, unittest.equals(42)); | 1624 unittest.expect(o.pageSize, unittest.equals(42)); |
2637 unittest.expect(o.pageToken, unittest.equals('foo')); | 1625 unittest.expect(o.pageToken, unittest.equals('foo')); |
2638 } | 1626 } |
2639 buildCounterSearchVariantSetsRequest--; | 1627 buildCounterSearchVariantSetsRequest--; |
2640 } | 1628 } |
2641 | 1629 |
2642 buildUnnamed1570() { | 1630 buildUnnamed1817() { |
2643 var o = new core.List<api.VariantSet>(); | 1631 var o = new core.List<api.VariantSet>(); |
2644 o.add(buildVariantSet()); | 1632 o.add(buildVariantSet()); |
2645 o.add(buildVariantSet()); | 1633 o.add(buildVariantSet()); |
2646 return o; | 1634 return o; |
2647 } | 1635 } |
2648 | 1636 |
2649 checkUnnamed1570(core.List<api.VariantSet> o) { | 1637 checkUnnamed1817(core.List<api.VariantSet> o) { |
2650 unittest.expect(o, unittest.hasLength(2)); | 1638 unittest.expect(o, unittest.hasLength(2)); |
2651 checkVariantSet(o[0]); | 1639 checkVariantSet(o[0]); |
2652 checkVariantSet(o[1]); | 1640 checkVariantSet(o[1]); |
2653 } | 1641 } |
2654 | 1642 |
2655 core.int buildCounterSearchVariantSetsResponse = 0; | 1643 core.int buildCounterSearchVariantSetsResponse = 0; |
2656 buildSearchVariantSetsResponse() { | 1644 buildSearchVariantSetsResponse() { |
2657 var o = new api.SearchVariantSetsResponse(); | 1645 var o = new api.SearchVariantSetsResponse(); |
2658 buildCounterSearchVariantSetsResponse++; | 1646 buildCounterSearchVariantSetsResponse++; |
2659 if (buildCounterSearchVariantSetsResponse < 3) { | 1647 if (buildCounterSearchVariantSetsResponse < 3) { |
2660 o.nextPageToken = "foo"; | 1648 o.nextPageToken = "foo"; |
2661 o.variantSets = buildUnnamed1570(); | 1649 o.variantSets = buildUnnamed1817(); |
2662 } | 1650 } |
2663 buildCounterSearchVariantSetsResponse--; | 1651 buildCounterSearchVariantSetsResponse--; |
2664 return o; | 1652 return o; |
2665 } | 1653 } |
2666 | 1654 |
2667 checkSearchVariantSetsResponse(api.SearchVariantSetsResponse o) { | 1655 checkSearchVariantSetsResponse(api.SearchVariantSetsResponse o) { |
2668 buildCounterSearchVariantSetsResponse++; | 1656 buildCounterSearchVariantSetsResponse++; |
2669 if (buildCounterSearchVariantSetsResponse < 3) { | 1657 if (buildCounterSearchVariantSetsResponse < 3) { |
2670 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1658 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2671 checkUnnamed1570(o.variantSets); | 1659 checkUnnamed1817(o.variantSets); |
2672 } | 1660 } |
2673 buildCounterSearchVariantSetsResponse--; | 1661 buildCounterSearchVariantSetsResponse--; |
2674 } | 1662 } |
2675 | 1663 |
2676 buildUnnamed1571() { | 1664 buildUnnamed1818() { |
2677 var o = new core.List<core.String>(); | 1665 var o = new core.List<core.String>(); |
2678 o.add("foo"); | 1666 o.add("foo"); |
2679 o.add("foo"); | 1667 o.add("foo"); |
2680 return o; | 1668 return o; |
2681 } | 1669 } |
2682 | 1670 |
2683 checkUnnamed1571(core.List<core.String> o) { | 1671 checkUnnamed1818(core.List<core.String> o) { |
2684 unittest.expect(o, unittest.hasLength(2)); | 1672 unittest.expect(o, unittest.hasLength(2)); |
2685 unittest.expect(o[0], unittest.equals('foo')); | 1673 unittest.expect(o[0], unittest.equals('foo')); |
2686 unittest.expect(o[1], unittest.equals('foo')); | 1674 unittest.expect(o[1], unittest.equals('foo')); |
2687 } | 1675 } |
2688 | 1676 |
2689 buildUnnamed1572() { | 1677 buildUnnamed1819() { |
2690 var o = new core.List<core.String>(); | 1678 var o = new core.List<core.String>(); |
2691 o.add("foo"); | 1679 o.add("foo"); |
2692 o.add("foo"); | 1680 o.add("foo"); |
2693 return o; | 1681 return o; |
2694 } | 1682 } |
2695 | 1683 |
2696 checkUnnamed1572(core.List<core.String> o) { | 1684 checkUnnamed1819(core.List<core.String> o) { |
2697 unittest.expect(o, unittest.hasLength(2)); | 1685 unittest.expect(o, unittest.hasLength(2)); |
2698 unittest.expect(o[0], unittest.equals('foo')); | 1686 unittest.expect(o[0], unittest.equals('foo')); |
2699 unittest.expect(o[1], unittest.equals('foo')); | 1687 unittest.expect(o[1], unittest.equals('foo')); |
2700 } | 1688 } |
2701 | 1689 |
2702 core.int buildCounterSearchVariantsRequest = 0; | 1690 core.int buildCounterSearchVariantsRequest = 0; |
2703 buildSearchVariantsRequest() { | 1691 buildSearchVariantsRequest() { |
2704 var o = new api.SearchVariantsRequest(); | 1692 var o = new api.SearchVariantsRequest(); |
2705 buildCounterSearchVariantsRequest++; | 1693 buildCounterSearchVariantsRequest++; |
2706 if (buildCounterSearchVariantsRequest < 3) { | 1694 if (buildCounterSearchVariantsRequest < 3) { |
2707 o.callSetIds = buildUnnamed1571(); | 1695 o.callSetIds = buildUnnamed1818(); |
2708 o.end = "foo"; | 1696 o.end = "foo"; |
2709 o.maxCalls = 42; | 1697 o.maxCalls = 42; |
2710 o.pageSize = 42; | 1698 o.pageSize = 42; |
2711 o.pageToken = "foo"; | 1699 o.pageToken = "foo"; |
2712 o.referenceName = "foo"; | 1700 o.referenceName = "foo"; |
2713 o.start = "foo"; | 1701 o.start = "foo"; |
2714 o.variantName = "foo"; | 1702 o.variantName = "foo"; |
2715 o.variantSetIds = buildUnnamed1572(); | 1703 o.variantSetIds = buildUnnamed1819(); |
2716 } | 1704 } |
2717 buildCounterSearchVariantsRequest--; | 1705 buildCounterSearchVariantsRequest--; |
2718 return o; | 1706 return o; |
2719 } | 1707 } |
2720 | 1708 |
2721 checkSearchVariantsRequest(api.SearchVariantsRequest o) { | 1709 checkSearchVariantsRequest(api.SearchVariantsRequest o) { |
2722 buildCounterSearchVariantsRequest++; | 1710 buildCounterSearchVariantsRequest++; |
2723 if (buildCounterSearchVariantsRequest < 3) { | 1711 if (buildCounterSearchVariantsRequest < 3) { |
2724 checkUnnamed1571(o.callSetIds); | 1712 checkUnnamed1818(o.callSetIds); |
2725 unittest.expect(o.end, unittest.equals('foo')); | 1713 unittest.expect(o.end, unittest.equals('foo')); |
2726 unittest.expect(o.maxCalls, unittest.equals(42)); | 1714 unittest.expect(o.maxCalls, unittest.equals(42)); |
2727 unittest.expect(o.pageSize, unittest.equals(42)); | 1715 unittest.expect(o.pageSize, unittest.equals(42)); |
2728 unittest.expect(o.pageToken, unittest.equals('foo')); | 1716 unittest.expect(o.pageToken, unittest.equals('foo')); |
2729 unittest.expect(o.referenceName, unittest.equals('foo')); | 1717 unittest.expect(o.referenceName, unittest.equals('foo')); |
2730 unittest.expect(o.start, unittest.equals('foo')); | 1718 unittest.expect(o.start, unittest.equals('foo')); |
2731 unittest.expect(o.variantName, unittest.equals('foo')); | 1719 unittest.expect(o.variantName, unittest.equals('foo')); |
2732 checkUnnamed1572(o.variantSetIds); | 1720 checkUnnamed1819(o.variantSetIds); |
2733 } | 1721 } |
2734 buildCounterSearchVariantsRequest--; | 1722 buildCounterSearchVariantsRequest--; |
2735 } | 1723 } |
2736 | 1724 |
2737 buildUnnamed1573() { | 1725 buildUnnamed1820() { |
2738 var o = new core.List<api.Variant>(); | 1726 var o = new core.List<api.Variant>(); |
2739 o.add(buildVariant()); | 1727 o.add(buildVariant()); |
2740 o.add(buildVariant()); | 1728 o.add(buildVariant()); |
2741 return o; | 1729 return o; |
2742 } | 1730 } |
2743 | 1731 |
2744 checkUnnamed1573(core.List<api.Variant> o) { | 1732 checkUnnamed1820(core.List<api.Variant> o) { |
2745 unittest.expect(o, unittest.hasLength(2)); | 1733 unittest.expect(o, unittest.hasLength(2)); |
2746 checkVariant(o[0]); | 1734 checkVariant(o[0]); |
2747 checkVariant(o[1]); | 1735 checkVariant(o[1]); |
2748 } | 1736 } |
2749 | 1737 |
2750 core.int buildCounterSearchVariantsResponse = 0; | 1738 core.int buildCounterSearchVariantsResponse = 0; |
2751 buildSearchVariantsResponse() { | 1739 buildSearchVariantsResponse() { |
2752 var o = new api.SearchVariantsResponse(); | 1740 var o = new api.SearchVariantsResponse(); |
2753 buildCounterSearchVariantsResponse++; | 1741 buildCounterSearchVariantsResponse++; |
2754 if (buildCounterSearchVariantsResponse < 3) { | 1742 if (buildCounterSearchVariantsResponse < 3) { |
2755 o.nextPageToken = "foo"; | 1743 o.nextPageToken = "foo"; |
2756 o.variants = buildUnnamed1573(); | 1744 o.variants = buildUnnamed1820(); |
2757 } | 1745 } |
2758 buildCounterSearchVariantsResponse--; | 1746 buildCounterSearchVariantsResponse--; |
2759 return o; | 1747 return o; |
2760 } | 1748 } |
2761 | 1749 |
2762 checkSearchVariantsResponse(api.SearchVariantsResponse o) { | 1750 checkSearchVariantsResponse(api.SearchVariantsResponse o) { |
2763 buildCounterSearchVariantsResponse++; | 1751 buildCounterSearchVariantsResponse++; |
2764 if (buildCounterSearchVariantsResponse < 3) { | 1752 if (buildCounterSearchVariantsResponse < 3) { |
2765 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1753 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2766 checkUnnamed1573(o.variants); | 1754 checkUnnamed1820(o.variants); |
2767 } | 1755 } |
2768 buildCounterSearchVariantsResponse--; | 1756 buildCounterSearchVariantsResponse--; |
2769 } | 1757 } |
2770 | 1758 |
2771 buildUnnamed1574() { | 1759 buildUnnamed1821() { |
2772 var o = new core.List<api.TranscriptExon>(); | 1760 var o = new core.Map<core.String, core.Object>(); |
2773 o.add(buildTranscriptExon()); | 1761 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2774 o.add(buildTranscriptExon()); | 1762 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
2775 return o; | 1763 return o; |
2776 } | 1764 } |
2777 | 1765 |
2778 checkUnnamed1574(core.List<api.TranscriptExon> o) { | 1766 checkUnnamed1821(core.Map<core.String, core.Object> o) { |
2779 unittest.expect(o, unittest.hasLength(2)); | 1767 unittest.expect(o, unittest.hasLength(2)); |
2780 checkTranscriptExon(o[0]); | 1768 var casted15 = (o["x"]) as core.Map; unittest.expect(casted15, unittest.hasLen
gth(3)); unittest.expect(casted15["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted15["bool"], unittest.equals(true)); unittest.expect(casted15["stri
ng"], unittest.equals('foo')); |
2781 checkTranscriptExon(o[1]); | 1769 var casted16 = (o["y"]) as core.Map; unittest.expect(casted16, unittest.hasLen
gth(3)); unittest.expect(casted16["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted16["bool"], unittest.equals(true)); unittest.expect(casted16["stri
ng"], unittest.equals('foo')); |
2782 } | 1770 } |
2783 | 1771 |
2784 core.int buildCounterTranscript = 0; | 1772 buildUnnamed1822() { |
2785 buildTranscript() { | 1773 var o = new core.List<core.Map<core.String, core.Object>>(); |
2786 var o = new api.Transcript(); | 1774 o.add(buildUnnamed1821()); |
2787 buildCounterTranscript++; | 1775 o.add(buildUnnamed1821()); |
2788 if (buildCounterTranscript < 3) { | 1776 return o; |
2789 o.codingSequence = buildTranscriptCodingSequence(); | 1777 } |
2790 o.exons = buildUnnamed1574(); | 1778 |
2791 o.geneId = "foo"; | 1779 checkUnnamed1822(core.List<core.Map<core.String, core.Object>> o) { |
2792 } | 1780 unittest.expect(o, unittest.hasLength(2)); |
2793 buildCounterTranscript--; | 1781 checkUnnamed1821(o[0]); |
2794 return o; | 1782 checkUnnamed1821(o[1]); |
2795 } | 1783 } |
2796 | 1784 |
2797 checkTranscript(api.Transcript o) { | 1785 core.int buildCounterStatus = 0; |
2798 buildCounterTranscript++; | 1786 buildStatus() { |
2799 if (buildCounterTranscript < 3) { | 1787 var o = new api.Status(); |
2800 checkTranscriptCodingSequence(o.codingSequence); | 1788 buildCounterStatus++; |
2801 checkUnnamed1574(o.exons); | 1789 if (buildCounterStatus < 3) { |
2802 unittest.expect(o.geneId, unittest.equals('foo')); | 1790 o.code = 42; |
2803 } | 1791 o.details = buildUnnamed1822(); |
2804 buildCounterTranscript--; | 1792 o.message = "foo"; |
2805 } | 1793 } |
2806 | 1794 buildCounterStatus--; |
2807 core.int buildCounterTranscriptCodingSequence = 0; | 1795 return o; |
2808 buildTranscriptCodingSequence() { | 1796 } |
2809 var o = new api.TranscriptCodingSequence(); | 1797 |
2810 buildCounterTranscriptCodingSequence++; | 1798 checkStatus(api.Status o) { |
2811 if (buildCounterTranscriptCodingSequence < 3) { | 1799 buildCounterStatus++; |
2812 o.end = "foo"; | 1800 if (buildCounterStatus < 3) { |
2813 o.start = "foo"; | 1801 unittest.expect(o.code, unittest.equals(42)); |
2814 } | 1802 checkUnnamed1822(o.details); |
2815 buildCounterTranscriptCodingSequence--; | 1803 unittest.expect(o.message, unittest.equals('foo')); |
2816 return o; | 1804 } |
2817 } | 1805 buildCounterStatus--; |
2818 | 1806 } |
2819 checkTranscriptCodingSequence(api.TranscriptCodingSequence o) { | 1807 |
2820 buildCounterTranscriptCodingSequence++; | 1808 core.int buildCounterUndeleteDatasetRequest = 0; |
2821 if (buildCounterTranscriptCodingSequence < 3) { | 1809 buildUndeleteDatasetRequest() { |
2822 unittest.expect(o.end, unittest.equals('foo')); | 1810 var o = new api.UndeleteDatasetRequest(); |
2823 unittest.expect(o.start, unittest.equals('foo')); | 1811 buildCounterUndeleteDatasetRequest++; |
2824 } | 1812 if (buildCounterUndeleteDatasetRequest < 3) { |
2825 buildCounterTranscriptCodingSequence--; | 1813 } |
2826 } | 1814 buildCounterUndeleteDatasetRequest--; |
2827 | 1815 return o; |
2828 core.int buildCounterTranscriptExon = 0; | 1816 } |
2829 buildTranscriptExon() { | 1817 |
2830 var o = new api.TranscriptExon(); | 1818 checkUndeleteDatasetRequest(api.UndeleteDatasetRequest o) { |
2831 buildCounterTranscriptExon++; | 1819 buildCounterUndeleteDatasetRequest++; |
2832 if (buildCounterTranscriptExon < 3) { | 1820 if (buildCounterUndeleteDatasetRequest < 3) { |
2833 o.end = "foo"; | 1821 } |
2834 o.frame = buildInt32Value(); | 1822 buildCounterUndeleteDatasetRequest--; |
2835 o.start = "foo"; | 1823 } |
2836 } | 1824 |
2837 buildCounterTranscriptExon--; | 1825 buildUnnamed1823() { |
2838 return o; | |
2839 } | |
2840 | |
2841 checkTranscriptExon(api.TranscriptExon o) { | |
2842 buildCounterTranscriptExon++; | |
2843 if (buildCounterTranscriptExon < 3) { | |
2844 unittest.expect(o.end, unittest.equals('foo')); | |
2845 checkInt32Value(o.frame); | |
2846 unittest.expect(o.start, unittest.equals('foo')); | |
2847 } | |
2848 buildCounterTranscriptExon--; | |
2849 } | |
2850 | |
2851 buildUnnamed1575() { | |
2852 var o = new core.List<core.String>(); | 1826 var o = new core.List<core.String>(); |
2853 o.add("foo"); | 1827 o.add("foo"); |
2854 o.add("foo"); | 1828 o.add("foo"); |
2855 return o; | 1829 return o; |
2856 } | 1830 } |
2857 | 1831 |
2858 checkUnnamed1575(core.List<core.String> o) { | 1832 checkUnnamed1823(core.List<core.String> o) { |
2859 unittest.expect(o, unittest.hasLength(2)); | 1833 unittest.expect(o, unittest.hasLength(2)); |
2860 unittest.expect(o[0], unittest.equals('foo')); | 1834 unittest.expect(o[0], unittest.equals('foo')); |
2861 unittest.expect(o[1], unittest.equals('foo')); | 1835 unittest.expect(o[1], unittest.equals('foo')); |
2862 } | 1836 } |
2863 | 1837 |
2864 buildUnnamed1576() { | 1838 buildUnnamed1824() { |
2865 var o = new core.List<api.Call>(); | 1839 var o = new core.List<api.VariantCall>(); |
2866 o.add(buildCall()); | 1840 o.add(buildVariantCall()); |
2867 o.add(buildCall()); | 1841 o.add(buildVariantCall()); |
2868 return o; | 1842 return o; |
2869 } | 1843 } |
2870 | 1844 |
2871 checkUnnamed1576(core.List<api.Call> o) { | 1845 checkUnnamed1824(core.List<api.VariantCall> o) { |
2872 unittest.expect(o, unittest.hasLength(2)); | 1846 unittest.expect(o, unittest.hasLength(2)); |
2873 checkCall(o[0]); | 1847 checkVariantCall(o[0]); |
2874 checkCall(o[1]); | 1848 checkVariantCall(o[1]); |
2875 } | 1849 } |
2876 | 1850 |
2877 buildUnnamed1577() { | 1851 buildUnnamed1825() { |
2878 var o = new core.List<core.String>(); | 1852 var o = new core.List<core.String>(); |
2879 o.add("foo"); | 1853 o.add("foo"); |
2880 o.add("foo"); | 1854 o.add("foo"); |
2881 return o; | 1855 return o; |
2882 } | 1856 } |
2883 | 1857 |
2884 checkUnnamed1577(core.List<core.String> o) { | 1858 checkUnnamed1825(core.List<core.String> o) { |
2885 unittest.expect(o, unittest.hasLength(2)); | 1859 unittest.expect(o, unittest.hasLength(2)); |
2886 unittest.expect(o[0], unittest.equals('foo')); | 1860 unittest.expect(o[0], unittest.equals('foo')); |
2887 unittest.expect(o[1], unittest.equals('foo')); | 1861 unittest.expect(o[1], unittest.equals('foo')); |
2888 } | 1862 } |
2889 | 1863 |
2890 buildUnnamed1578() { | 1864 buildUnnamed1826() { |
| 1865 var o = new core.List<core.Object>(); |
| 1866 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 1867 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 1868 return o; |
| 1869 } |
| 1870 |
| 1871 checkUnnamed1826(core.List<core.Object> o) { |
| 1872 unittest.expect(o, unittest.hasLength(2)); |
| 1873 var casted17 = (o[0]) as core.Map; unittest.expect(casted17, unittest.hasLengt
h(3)); unittest.expect(casted17["list"], unittest.equals([1, 2, 3])); unittest.e
xpect(casted17["bool"], unittest.equals(true)); unittest.expect(casted17["string
"], unittest.equals('foo')); |
| 1874 var casted18 = (o[1]) as core.Map; unittest.expect(casted18, unittest.hasLengt
h(3)); unittest.expect(casted18["list"], unittest.equals([1, 2, 3])); unittest.e
xpect(casted18["bool"], unittest.equals(true)); unittest.expect(casted18["string
"], unittest.equals('foo')); |
| 1875 } |
| 1876 |
| 1877 buildUnnamed1827() { |
| 1878 var o = new core.Map<core.String, core.List<core.Object>>(); |
| 1879 o["x"] = buildUnnamed1826(); |
| 1880 o["y"] = buildUnnamed1826(); |
| 1881 return o; |
| 1882 } |
| 1883 |
| 1884 checkUnnamed1827(core.Map<core.String, core.List<core.Object>> o) { |
| 1885 unittest.expect(o, unittest.hasLength(2)); |
| 1886 checkUnnamed1826(o["x"]); |
| 1887 checkUnnamed1826(o["y"]); |
| 1888 } |
| 1889 |
| 1890 buildUnnamed1828() { |
2891 var o = new core.List<core.String>(); | 1891 var o = new core.List<core.String>(); |
2892 o.add("foo"); | 1892 o.add("foo"); |
2893 o.add("foo"); | 1893 o.add("foo"); |
2894 return o; | 1894 return o; |
2895 } | 1895 } |
2896 | 1896 |
2897 checkUnnamed1578(core.List<core.String> o) { | 1897 checkUnnamed1828(core.List<core.String> o) { |
2898 unittest.expect(o, unittest.hasLength(2)); | |
2899 unittest.expect(o[0], unittest.equals('foo')); | |
2900 unittest.expect(o[1], unittest.equals('foo')); | |
2901 } | |
2902 | |
2903 buildUnnamed1579() { | |
2904 var o = new core.Map<core.String, core.List<core.String>>(); | |
2905 o["x"] = buildUnnamed1578(); | |
2906 o["y"] = buildUnnamed1578(); | |
2907 return o; | |
2908 } | |
2909 | |
2910 checkUnnamed1579(core.Map<core.String, core.List<core.String>> o) { | |
2911 unittest.expect(o, unittest.hasLength(2)); | |
2912 checkUnnamed1578(o["x"]); | |
2913 checkUnnamed1578(o["y"]); | |
2914 } | |
2915 | |
2916 buildUnnamed1580() { | |
2917 var o = new core.List<core.String>(); | |
2918 o.add("foo"); | |
2919 o.add("foo"); | |
2920 return o; | |
2921 } | |
2922 | |
2923 checkUnnamed1580(core.List<core.String> o) { | |
2924 unittest.expect(o, unittest.hasLength(2)); | 1898 unittest.expect(o, unittest.hasLength(2)); |
2925 unittest.expect(o[0], unittest.equals('foo')); | 1899 unittest.expect(o[0], unittest.equals('foo')); |
2926 unittest.expect(o[1], unittest.equals('foo')); | 1900 unittest.expect(o[1], unittest.equals('foo')); |
2927 } | 1901 } |
2928 | 1902 |
2929 core.int buildCounterVariant = 0; | 1903 core.int buildCounterVariant = 0; |
2930 buildVariant() { | 1904 buildVariant() { |
2931 var o = new api.Variant(); | 1905 var o = new api.Variant(); |
2932 buildCounterVariant++; | 1906 buildCounterVariant++; |
2933 if (buildCounterVariant < 3) { | 1907 if (buildCounterVariant < 3) { |
2934 o.alternateBases = buildUnnamed1575(); | 1908 o.alternateBases = buildUnnamed1823(); |
2935 o.calls = buildUnnamed1576(); | 1909 o.calls = buildUnnamed1824(); |
2936 o.created = "foo"; | 1910 o.created = "foo"; |
2937 o.end = "foo"; | 1911 o.end = "foo"; |
2938 o.filter = buildUnnamed1577(); | 1912 o.filter = buildUnnamed1825(); |
2939 o.id = "foo"; | 1913 o.id = "foo"; |
2940 o.info = buildUnnamed1579(); | 1914 o.info = buildUnnamed1827(); |
2941 o.names = buildUnnamed1580(); | 1915 o.names = buildUnnamed1828(); |
2942 o.quality = 42.0; | 1916 o.quality = 42.0; |
2943 o.referenceBases = "foo"; | 1917 o.referenceBases = "foo"; |
2944 o.referenceName = "foo"; | 1918 o.referenceName = "foo"; |
2945 o.start = "foo"; | 1919 o.start = "foo"; |
2946 o.variantSetId = "foo"; | 1920 o.variantSetId = "foo"; |
2947 } | 1921 } |
2948 buildCounterVariant--; | 1922 buildCounterVariant--; |
2949 return o; | 1923 return o; |
2950 } | 1924 } |
2951 | 1925 |
2952 checkVariant(api.Variant o) { | 1926 checkVariant(api.Variant o) { |
2953 buildCounterVariant++; | 1927 buildCounterVariant++; |
2954 if (buildCounterVariant < 3) { | 1928 if (buildCounterVariant < 3) { |
2955 checkUnnamed1575(o.alternateBases); | 1929 checkUnnamed1823(o.alternateBases); |
2956 checkUnnamed1576(o.calls); | 1930 checkUnnamed1824(o.calls); |
2957 unittest.expect(o.created, unittest.equals('foo')); | 1931 unittest.expect(o.created, unittest.equals('foo')); |
2958 unittest.expect(o.end, unittest.equals('foo')); | 1932 unittest.expect(o.end, unittest.equals('foo')); |
2959 checkUnnamed1577(o.filter); | 1933 checkUnnamed1825(o.filter); |
2960 unittest.expect(o.id, unittest.equals('foo')); | 1934 unittest.expect(o.id, unittest.equals('foo')); |
2961 checkUnnamed1579(o.info); | 1935 checkUnnamed1827(o.info); |
2962 checkUnnamed1580(o.names); | 1936 checkUnnamed1828(o.names); |
2963 unittest.expect(o.quality, unittest.equals(42.0)); | 1937 unittest.expect(o.quality, unittest.equals(42.0)); |
2964 unittest.expect(o.referenceBases, unittest.equals('foo')); | 1938 unittest.expect(o.referenceBases, unittest.equals('foo')); |
2965 unittest.expect(o.referenceName, unittest.equals('foo')); | 1939 unittest.expect(o.referenceName, unittest.equals('foo')); |
2966 unittest.expect(o.start, unittest.equals('foo')); | 1940 unittest.expect(o.start, unittest.equals('foo')); |
2967 unittest.expect(o.variantSetId, unittest.equals('foo')); | 1941 unittest.expect(o.variantSetId, unittest.equals('foo')); |
2968 } | 1942 } |
2969 buildCounterVariant--; | 1943 buildCounterVariant--; |
2970 } | 1944 } |
2971 | 1945 |
2972 buildUnnamed1581() { | 1946 buildUnnamed1829() { |
2973 var o = new core.List<api.VariantAnnotationCondition>(); | 1947 var o = new core.List<core.int>(); |
2974 o.add(buildVariantAnnotationCondition()); | 1948 o.add(42); |
2975 o.add(buildVariantAnnotationCondition()); | 1949 o.add(42); |
2976 return o; | 1950 return o; |
2977 } | 1951 } |
2978 | 1952 |
2979 checkUnnamed1581(core.List<api.VariantAnnotationCondition> o) { | 1953 checkUnnamed1829(core.List<core.int> o) { |
2980 unittest.expect(o, unittest.hasLength(2)); | 1954 unittest.expect(o, unittest.hasLength(2)); |
2981 checkVariantAnnotationCondition(o[0]); | 1955 unittest.expect(o[0], unittest.equals(42)); |
2982 checkVariantAnnotationCondition(o[1]); | 1956 unittest.expect(o[1], unittest.equals(42)); |
2983 } | 1957 } |
2984 | 1958 |
2985 buildUnnamed1582() { | 1959 buildUnnamed1830() { |
2986 var o = new core.List<core.String>(); | 1960 var o = new core.List<core.double>(); |
2987 o.add("foo"); | 1961 o.add(42.0); |
2988 o.add("foo"); | 1962 o.add(42.0); |
2989 return o; | 1963 return o; |
2990 } | 1964 } |
2991 | 1965 |
2992 checkUnnamed1582(core.List<core.String> o) { | 1966 checkUnnamed1830(core.List<core.double> o) { |
2993 unittest.expect(o, unittest.hasLength(2)); | 1967 unittest.expect(o, unittest.hasLength(2)); |
2994 unittest.expect(o[0], unittest.equals('foo')); | 1968 unittest.expect(o[0], unittest.equals(42.0)); |
2995 unittest.expect(o[1], unittest.equals('foo')); | 1969 unittest.expect(o[1], unittest.equals(42.0)); |
2996 } | 1970 } |
2997 | 1971 |
2998 core.int buildCounterVariantAnnotation = 0; | 1972 buildUnnamed1831() { |
2999 buildVariantAnnotation() { | 1973 var o = new core.List<core.Object>(); |
3000 var o = new api.VariantAnnotation(); | 1974 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
3001 buildCounterVariantAnnotation++; | 1975 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
3002 if (buildCounterVariantAnnotation < 3) { | 1976 return o; |
3003 o.alternateBases = "foo"; | 1977 } |
3004 o.clinicalSignificance = "foo"; | 1978 |
3005 o.conditions = buildUnnamed1581(); | 1979 checkUnnamed1831(core.List<core.Object> o) { |
3006 o.effect = "foo"; | 1980 unittest.expect(o, unittest.hasLength(2)); |
3007 o.geneId = "foo"; | 1981 var casted19 = (o[0]) as core.Map; unittest.expect(casted19, unittest.hasLengt
h(3)); unittest.expect(casted19["list"], unittest.equals([1, 2, 3])); unittest.e
xpect(casted19["bool"], unittest.equals(true)); unittest.expect(casted19["string
"], unittest.equals('foo')); |
3008 o.transcriptIds = buildUnnamed1582(); | 1982 var casted20 = (o[1]) as core.Map; unittest.expect(casted20, unittest.hasLengt
h(3)); unittest.expect(casted20["list"], unittest.equals([1, 2, 3])); unittest.e
xpect(casted20["bool"], unittest.equals(true)); unittest.expect(casted20["string
"], unittest.equals('foo')); |
3009 o.type = "foo"; | 1983 } |
3010 } | 1984 |
3011 buildCounterVariantAnnotation--; | 1985 buildUnnamed1832() { |
3012 return o; | 1986 var o = new core.Map<core.String, core.List<core.Object>>(); |
3013 } | 1987 o["x"] = buildUnnamed1831(); |
3014 | 1988 o["y"] = buildUnnamed1831(); |
3015 checkVariantAnnotation(api.VariantAnnotation o) { | 1989 return o; |
3016 buildCounterVariantAnnotation++; | 1990 } |
3017 if (buildCounterVariantAnnotation < 3) { | 1991 |
3018 unittest.expect(o.alternateBases, unittest.equals('foo')); | 1992 checkUnnamed1832(core.Map<core.String, core.List<core.Object>> o) { |
3019 unittest.expect(o.clinicalSignificance, unittest.equals('foo')); | 1993 unittest.expect(o, unittest.hasLength(2)); |
3020 checkUnnamed1581(o.conditions); | 1994 checkUnnamed1831(o["x"]); |
3021 unittest.expect(o.effect, unittest.equals('foo')); | 1995 checkUnnamed1831(o["y"]); |
3022 unittest.expect(o.geneId, unittest.equals('foo')); | 1996 } |
3023 checkUnnamed1582(o.transcriptIds); | 1997 |
3024 unittest.expect(o.type, unittest.equals('foo')); | 1998 core.int buildCounterVariantCall = 0; |
3025 } | 1999 buildVariantCall() { |
3026 buildCounterVariantAnnotation--; | 2000 var o = new api.VariantCall(); |
3027 } | 2001 buildCounterVariantCall++; |
3028 | 2002 if (buildCounterVariantCall < 3) { |
3029 buildUnnamed1583() { | 2003 o.callSetId = "foo"; |
3030 var o = new core.List<api.ExternalId>(); | 2004 o.callSetName = "foo"; |
3031 o.add(buildExternalId()); | 2005 o.genotype = buildUnnamed1829(); |
3032 o.add(buildExternalId()); | 2006 o.genotypeLikelihood = buildUnnamed1830(); |
3033 return o; | 2007 o.info = buildUnnamed1832(); |
3034 } | 2008 o.phaseset = "foo"; |
3035 | 2009 } |
3036 checkUnnamed1583(core.List<api.ExternalId> o) { | 2010 buildCounterVariantCall--; |
3037 unittest.expect(o, unittest.hasLength(2)); | 2011 return o; |
3038 checkExternalId(o[0]); | 2012 } |
3039 checkExternalId(o[1]); | 2013 |
3040 } | 2014 checkVariantCall(api.VariantCall o) { |
3041 | 2015 buildCounterVariantCall++; |
3042 buildUnnamed1584() { | 2016 if (buildCounterVariantCall < 3) { |
3043 var o = new core.List<core.String>(); | 2017 unittest.expect(o.callSetId, unittest.equals('foo')); |
3044 o.add("foo"); | 2018 unittest.expect(o.callSetName, unittest.equals('foo')); |
3045 o.add("foo"); | 2019 checkUnnamed1829(o.genotype); |
3046 return o; | 2020 checkUnnamed1830(o.genotypeLikelihood); |
3047 } | 2021 checkUnnamed1832(o.info); |
3048 | 2022 unittest.expect(o.phaseset, unittest.equals('foo')); |
3049 checkUnnamed1584(core.List<core.String> o) { | 2023 } |
3050 unittest.expect(o, unittest.hasLength(2)); | 2024 buildCounterVariantCall--; |
3051 unittest.expect(o[0], unittest.equals('foo')); | 2025 } |
3052 unittest.expect(o[1], unittest.equals('foo')); | 2026 |
3053 } | 2027 buildUnnamed1833() { |
3054 | 2028 var o = new core.List<api.VariantSetMetadata>(); |
3055 core.int buildCounterVariantAnnotationCondition = 0; | 2029 o.add(buildVariantSetMetadata()); |
3056 buildVariantAnnotationCondition() { | 2030 o.add(buildVariantSetMetadata()); |
3057 var o = new api.VariantAnnotationCondition(); | 2031 return o; |
3058 buildCounterVariantAnnotationCondition++; | 2032 } |
3059 if (buildCounterVariantAnnotationCondition < 3) { | 2033 |
3060 o.conceptId = "foo"; | 2034 checkUnnamed1833(core.List<api.VariantSetMetadata> o) { |
3061 o.externalIds = buildUnnamed1583(); | 2035 unittest.expect(o, unittest.hasLength(2)); |
3062 o.names = buildUnnamed1584(); | 2036 checkVariantSetMetadata(o[0]); |
3063 o.omimId = "foo"; | 2037 checkVariantSetMetadata(o[1]); |
3064 } | 2038 } |
3065 buildCounterVariantAnnotationCondition--; | 2039 |
3066 return o; | 2040 buildUnnamed1834() { |
3067 } | |
3068 | |
3069 checkVariantAnnotationCondition(api.VariantAnnotationCondition o) { | |
3070 buildCounterVariantAnnotationCondition++; | |
3071 if (buildCounterVariantAnnotationCondition < 3) { | |
3072 unittest.expect(o.conceptId, unittest.equals('foo')); | |
3073 checkUnnamed1583(o.externalIds); | |
3074 checkUnnamed1584(o.names); | |
3075 unittest.expect(o.omimId, unittest.equals('foo')); | |
3076 } | |
3077 buildCounterVariantAnnotationCondition--; | |
3078 } | |
3079 | |
3080 buildUnnamed1585() { | |
3081 var o = new core.List<api.Metadata>(); | |
3082 o.add(buildMetadata()); | |
3083 o.add(buildMetadata()); | |
3084 return o; | |
3085 } | |
3086 | |
3087 checkUnnamed1585(core.List<api.Metadata> o) { | |
3088 unittest.expect(o, unittest.hasLength(2)); | |
3089 checkMetadata(o[0]); | |
3090 checkMetadata(o[1]); | |
3091 } | |
3092 | |
3093 buildUnnamed1586() { | |
3094 var o = new core.List<api.ReferenceBound>(); | 2041 var o = new core.List<api.ReferenceBound>(); |
3095 o.add(buildReferenceBound()); | 2042 o.add(buildReferenceBound()); |
3096 o.add(buildReferenceBound()); | 2043 o.add(buildReferenceBound()); |
3097 return o; | 2044 return o; |
3098 } | 2045 } |
3099 | 2046 |
3100 checkUnnamed1586(core.List<api.ReferenceBound> o) { | 2047 checkUnnamed1834(core.List<api.ReferenceBound> o) { |
3101 unittest.expect(o, unittest.hasLength(2)); | 2048 unittest.expect(o, unittest.hasLength(2)); |
3102 checkReferenceBound(o[0]); | 2049 checkReferenceBound(o[0]); |
3103 checkReferenceBound(o[1]); | 2050 checkReferenceBound(o[1]); |
3104 } | 2051 } |
3105 | 2052 |
3106 core.int buildCounterVariantSet = 0; | 2053 core.int buildCounterVariantSet = 0; |
3107 buildVariantSet() { | 2054 buildVariantSet() { |
3108 var o = new api.VariantSet(); | 2055 var o = new api.VariantSet(); |
3109 buildCounterVariantSet++; | 2056 buildCounterVariantSet++; |
3110 if (buildCounterVariantSet < 3) { | 2057 if (buildCounterVariantSet < 3) { |
3111 o.datasetId = "foo"; | 2058 o.datasetId = "foo"; |
3112 o.id = "foo"; | 2059 o.id = "foo"; |
3113 o.metadata = buildUnnamed1585(); | 2060 o.metadata = buildUnnamed1833(); |
3114 o.referenceBounds = buildUnnamed1586(); | 2061 o.referenceBounds = buildUnnamed1834(); |
3115 } | 2062 } |
3116 buildCounterVariantSet--; | 2063 buildCounterVariantSet--; |
3117 return o; | 2064 return o; |
3118 } | 2065 } |
3119 | 2066 |
3120 checkVariantSet(api.VariantSet o) { | 2067 checkVariantSet(api.VariantSet o) { |
3121 buildCounterVariantSet++; | 2068 buildCounterVariantSet++; |
3122 if (buildCounterVariantSet < 3) { | 2069 if (buildCounterVariantSet < 3) { |
3123 unittest.expect(o.datasetId, unittest.equals('foo')); | 2070 unittest.expect(o.datasetId, unittest.equals('foo')); |
3124 unittest.expect(o.id, unittest.equals('foo')); | 2071 unittest.expect(o.id, unittest.equals('foo')); |
3125 checkUnnamed1585(o.metadata); | 2072 checkUnnamed1833(o.metadata); |
3126 checkUnnamed1586(o.referenceBounds); | 2073 checkUnnamed1834(o.referenceBounds); |
3127 } | 2074 } |
3128 buildCounterVariantSet--; | 2075 buildCounterVariantSet--; |
3129 } | 2076 } |
3130 | 2077 |
| 2078 buildUnnamed1835() { |
| 2079 var o = new core.List<core.Object>(); |
| 2080 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 2081 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 2082 return o; |
| 2083 } |
| 2084 |
| 2085 checkUnnamed1835(core.List<core.Object> o) { |
| 2086 unittest.expect(o, unittest.hasLength(2)); |
| 2087 var casted21 = (o[0]) as core.Map; unittest.expect(casted21, unittest.hasLengt
h(3)); unittest.expect(casted21["list"], unittest.equals([1, 2, 3])); unittest.e
xpect(casted21["bool"], unittest.equals(true)); unittest.expect(casted21["string
"], unittest.equals('foo')); |
| 2088 var casted22 = (o[1]) as core.Map; unittest.expect(casted22, unittest.hasLengt
h(3)); unittest.expect(casted22["list"], unittest.equals([1, 2, 3])); unittest.e
xpect(casted22["bool"], unittest.equals(true)); unittest.expect(casted22["string
"], unittest.equals('foo')); |
| 2089 } |
| 2090 |
| 2091 buildUnnamed1836() { |
| 2092 var o = new core.Map<core.String, core.List<core.Object>>(); |
| 2093 o["x"] = buildUnnamed1835(); |
| 2094 o["y"] = buildUnnamed1835(); |
| 2095 return o; |
| 2096 } |
| 2097 |
| 2098 checkUnnamed1836(core.Map<core.String, core.List<core.Object>> o) { |
| 2099 unittest.expect(o, unittest.hasLength(2)); |
| 2100 checkUnnamed1835(o["x"]); |
| 2101 checkUnnamed1835(o["y"]); |
| 2102 } |
| 2103 |
| 2104 core.int buildCounterVariantSetMetadata = 0; |
| 2105 buildVariantSetMetadata() { |
| 2106 var o = new api.VariantSetMetadata(); |
| 2107 buildCounterVariantSetMetadata++; |
| 2108 if (buildCounterVariantSetMetadata < 3) { |
| 2109 o.description = "foo"; |
| 2110 o.id = "foo"; |
| 2111 o.info = buildUnnamed1836(); |
| 2112 o.key = "foo"; |
| 2113 o.number = "foo"; |
| 2114 o.type = "foo"; |
| 2115 o.value = "foo"; |
| 2116 } |
| 2117 buildCounterVariantSetMetadata--; |
| 2118 return o; |
| 2119 } |
| 2120 |
| 2121 checkVariantSetMetadata(api.VariantSetMetadata o) { |
| 2122 buildCounterVariantSetMetadata++; |
| 2123 if (buildCounterVariantSetMetadata < 3) { |
| 2124 unittest.expect(o.description, unittest.equals('foo')); |
| 2125 unittest.expect(o.id, unittest.equals('foo')); |
| 2126 checkUnnamed1836(o.info); |
| 2127 unittest.expect(o.key, unittest.equals('foo')); |
| 2128 unittest.expect(o.number, unittest.equals('foo')); |
| 2129 unittest.expect(o.type, unittest.equals('foo')); |
| 2130 unittest.expect(o.value, unittest.equals('foo')); |
| 2131 } |
| 2132 buildCounterVariantSetMetadata--; |
| 2133 } |
| 2134 |
3131 | 2135 |
3132 main() { | 2136 main() { |
3133 unittest.group("obj-schema-AlignReadGroupSetsRequest", () { | |
3134 unittest.test("to-json--from-json", () { | |
3135 var o = buildAlignReadGroupSetsRequest(); | |
3136 var od = new api.AlignReadGroupSetsRequest.fromJson(o.toJson()); | |
3137 checkAlignReadGroupSetsRequest(od); | |
3138 }); | |
3139 }); | |
3140 | |
3141 | |
3142 unittest.group("obj-schema-AlignReadGroupSetsResponse", () { | |
3143 unittest.test("to-json--from-json", () { | |
3144 var o = buildAlignReadGroupSetsResponse(); | |
3145 var od = new api.AlignReadGroupSetsResponse.fromJson(o.toJson()); | |
3146 checkAlignReadGroupSetsResponse(od); | |
3147 }); | |
3148 }); | |
3149 | |
3150 | |
3151 unittest.group("obj-schema-Annotation", () { | |
3152 unittest.test("to-json--from-json", () { | |
3153 var o = buildAnnotation(); | |
3154 var od = new api.Annotation.fromJson(o.toJson()); | |
3155 checkAnnotation(od); | |
3156 }); | |
3157 }); | |
3158 | |
3159 | |
3160 unittest.group("obj-schema-AnnotationSet", () { | |
3161 unittest.test("to-json--from-json", () { | |
3162 var o = buildAnnotationSet(); | |
3163 var od = new api.AnnotationSet.fromJson(o.toJson()); | |
3164 checkAnnotationSet(od); | |
3165 }); | |
3166 }); | |
3167 | |
3168 | |
3169 unittest.group("obj-schema-BatchAnnotationsResponse", () { | |
3170 unittest.test("to-json--from-json", () { | |
3171 var o = buildBatchAnnotationsResponse(); | |
3172 var od = new api.BatchAnnotationsResponse.fromJson(o.toJson()); | |
3173 checkBatchAnnotationsResponse(od); | |
3174 }); | |
3175 }); | |
3176 | |
3177 | |
3178 unittest.group("obj-schema-BatchAnnotationsResponseEntry", () { | |
3179 unittest.test("to-json--from-json", () { | |
3180 var o = buildBatchAnnotationsResponseEntry(); | |
3181 var od = new api.BatchAnnotationsResponseEntry.fromJson(o.toJson()); | |
3182 checkBatchAnnotationsResponseEntry(od); | |
3183 }); | |
3184 }); | |
3185 | |
3186 | |
3187 unittest.group("obj-schema-BatchAnnotationsResponseEntryStatus", () { | |
3188 unittest.test("to-json--from-json", () { | |
3189 var o = buildBatchAnnotationsResponseEntryStatus(); | |
3190 var od = new api.BatchAnnotationsResponseEntryStatus.fromJson(o.toJson()); | |
3191 checkBatchAnnotationsResponseEntryStatus(od); | |
3192 }); | |
3193 }); | |
3194 | |
3195 | |
3196 unittest.group("obj-schema-BatchCreateAnnotationsRequest", () { | |
3197 unittest.test("to-json--from-json", () { | |
3198 var o = buildBatchCreateAnnotationsRequest(); | |
3199 var od = new api.BatchCreateAnnotationsRequest.fromJson(o.toJson()); | |
3200 checkBatchCreateAnnotationsRequest(od); | |
3201 }); | |
3202 }); | |
3203 | |
3204 | |
3205 unittest.group("obj-schema-Call", () { | |
3206 unittest.test("to-json--from-json", () { | |
3207 var o = buildCall(); | |
3208 var od = new api.Call.fromJson(o.toJson()); | |
3209 checkCall(od); | |
3210 }); | |
3211 }); | |
3212 | |
3213 | |
3214 unittest.group("obj-schema-CallReadGroupSetsRequest", () { | |
3215 unittest.test("to-json--from-json", () { | |
3216 var o = buildCallReadGroupSetsRequest(); | |
3217 var od = new api.CallReadGroupSetsRequest.fromJson(o.toJson()); | |
3218 checkCallReadGroupSetsRequest(od); | |
3219 }); | |
3220 }); | |
3221 | |
3222 | |
3223 unittest.group("obj-schema-CallReadGroupSetsResponse", () { | |
3224 unittest.test("to-json--from-json", () { | |
3225 var o = buildCallReadGroupSetsResponse(); | |
3226 var od = new api.CallReadGroupSetsResponse.fromJson(o.toJson()); | |
3227 checkCallReadGroupSetsResponse(od); | |
3228 }); | |
3229 }); | |
3230 | |
3231 | |
3232 unittest.group("obj-schema-CallSet", () { | 2137 unittest.group("obj-schema-CallSet", () { |
3233 unittest.test("to-json--from-json", () { | 2138 unittest.test("to-json--from-json", () { |
3234 var o = buildCallSet(); | 2139 var o = buildCallSet(); |
3235 var od = new api.CallSet.fromJson(o.toJson()); | 2140 var od = new api.CallSet.fromJson(o.toJson()); |
3236 checkCallSet(od); | 2141 checkCallSet(od); |
3237 }); | 2142 }); |
3238 }); | 2143 }); |
3239 | 2144 |
3240 | 2145 |
| 2146 unittest.group("obj-schema-CancelOperationRequest", () { |
| 2147 unittest.test("to-json--from-json", () { |
| 2148 var o = buildCancelOperationRequest(); |
| 2149 var od = new api.CancelOperationRequest.fromJson(o.toJson()); |
| 2150 checkCancelOperationRequest(od); |
| 2151 }); |
| 2152 }); |
| 2153 |
| 2154 |
3241 unittest.group("obj-schema-CigarUnit", () { | 2155 unittest.group("obj-schema-CigarUnit", () { |
3242 unittest.test("to-json--from-json", () { | 2156 unittest.test("to-json--from-json", () { |
3243 var o = buildCigarUnit(); | 2157 var o = buildCigarUnit(); |
3244 var od = new api.CigarUnit.fromJson(o.toJson()); | 2158 var od = new api.CigarUnit.fromJson(o.toJson()); |
3245 checkCigarUnit(od); | 2159 checkCigarUnit(od); |
3246 }); | 2160 }); |
3247 }); | 2161 }); |
3248 | 2162 |
3249 | 2163 |
3250 unittest.group("obj-schema-CoverageBucket", () { | 2164 unittest.group("obj-schema-CoverageBucket", () { |
3251 unittest.test("to-json--from-json", () { | 2165 unittest.test("to-json--from-json", () { |
3252 var o = buildCoverageBucket(); | 2166 var o = buildCoverageBucket(); |
3253 var od = new api.CoverageBucket.fromJson(o.toJson()); | 2167 var od = new api.CoverageBucket.fromJson(o.toJson()); |
3254 checkCoverageBucket(od); | 2168 checkCoverageBucket(od); |
3255 }); | 2169 }); |
3256 }); | 2170 }); |
3257 | 2171 |
3258 | 2172 |
3259 unittest.group("obj-schema-Dataset", () { | 2173 unittest.group("obj-schema-Dataset", () { |
3260 unittest.test("to-json--from-json", () { | 2174 unittest.test("to-json--from-json", () { |
3261 var o = buildDataset(); | 2175 var o = buildDataset(); |
3262 var od = new api.Dataset.fromJson(o.toJson()); | 2176 var od = new api.Dataset.fromJson(o.toJson()); |
3263 checkDataset(od); | 2177 checkDataset(od); |
3264 }); | 2178 }); |
3265 }); | 2179 }); |
3266 | 2180 |
3267 | 2181 |
3268 unittest.group("obj-schema-ExperimentalCreateJobRequest", () { | 2182 unittest.group("obj-schema-Empty", () { |
3269 unittest.test("to-json--from-json", () { | 2183 unittest.test("to-json--from-json", () { |
3270 var o = buildExperimentalCreateJobRequest(); | 2184 var o = buildEmpty(); |
3271 var od = new api.ExperimentalCreateJobRequest.fromJson(o.toJson()); | 2185 var od = new api.Empty.fromJson(o.toJson()); |
3272 checkExperimentalCreateJobRequest(od); | 2186 checkEmpty(od); |
3273 }); | 2187 }); |
3274 }); | 2188 }); |
3275 | 2189 |
3276 | 2190 |
3277 unittest.group("obj-schema-ExperimentalCreateJobResponse", () { | 2191 unittest.group("obj-schema-Experiment", () { |
3278 unittest.test("to-json--from-json", () { | 2192 unittest.test("to-json--from-json", () { |
3279 var o = buildExperimentalCreateJobResponse(); | 2193 var o = buildExperiment(); |
3280 var od = new api.ExperimentalCreateJobResponse.fromJson(o.toJson()); | 2194 var od = new api.Experiment.fromJson(o.toJson()); |
3281 checkExperimentalCreateJobResponse(od); | 2195 checkExperiment(od); |
3282 }); | 2196 }); |
3283 }); | 2197 }); |
3284 | 2198 |
3285 | 2199 |
3286 unittest.group("obj-schema-ExportReadGroupSetsRequest", () { | 2200 unittest.group("obj-schema-ExportReadGroupSetRequest", () { |
3287 unittest.test("to-json--from-json", () { | 2201 unittest.test("to-json--from-json", () { |
3288 var o = buildExportReadGroupSetsRequest(); | 2202 var o = buildExportReadGroupSetRequest(); |
3289 var od = new api.ExportReadGroupSetsRequest.fromJson(o.toJson()); | 2203 var od = new api.ExportReadGroupSetRequest.fromJson(o.toJson()); |
3290 checkExportReadGroupSetsRequest(od); | 2204 checkExportReadGroupSetRequest(od); |
3291 }); | |
3292 }); | |
3293 | |
3294 | |
3295 unittest.group("obj-schema-ExportReadGroupSetsResponse", () { | |
3296 unittest.test("to-json--from-json", () { | |
3297 var o = buildExportReadGroupSetsResponse(); | |
3298 var od = new api.ExportReadGroupSetsResponse.fromJson(o.toJson()); | |
3299 checkExportReadGroupSetsResponse(od); | |
3300 }); | 2205 }); |
3301 }); | 2206 }); |
3302 | 2207 |
3303 | 2208 |
3304 unittest.group("obj-schema-ExportVariantSetRequest", () { | 2209 unittest.group("obj-schema-ExportVariantSetRequest", () { |
3305 unittest.test("to-json--from-json", () { | 2210 unittest.test("to-json--from-json", () { |
3306 var o = buildExportVariantSetRequest(); | 2211 var o = buildExportVariantSetRequest(); |
3307 var od = new api.ExportVariantSetRequest.fromJson(o.toJson()); | 2212 var od = new api.ExportVariantSetRequest.fromJson(o.toJson()); |
3308 checkExportVariantSetRequest(od); | 2213 checkExportVariantSetRequest(od); |
3309 }); | 2214 }); |
3310 }); | 2215 }); |
3311 | 2216 |
3312 | 2217 |
3313 unittest.group("obj-schema-ExportVariantSetResponse", () { | |
3314 unittest.test("to-json--from-json", () { | |
3315 var o = buildExportVariantSetResponse(); | |
3316 var od = new api.ExportVariantSetResponse.fromJson(o.toJson()); | |
3317 checkExportVariantSetResponse(od); | |
3318 }); | |
3319 }); | |
3320 | |
3321 | |
3322 unittest.group("obj-schema-ExternalId", () { | |
3323 unittest.test("to-json--from-json", () { | |
3324 var o = buildExternalId(); | |
3325 var od = new api.ExternalId.fromJson(o.toJson()); | |
3326 checkExternalId(od); | |
3327 }); | |
3328 }); | |
3329 | |
3330 | |
3331 unittest.group("obj-schema-FastqMetadata", () { | |
3332 unittest.test("to-json--from-json", () { | |
3333 var o = buildFastqMetadata(); | |
3334 var od = new api.FastqMetadata.fromJson(o.toJson()); | |
3335 checkFastqMetadata(od); | |
3336 }); | |
3337 }); | |
3338 | |
3339 | |
3340 unittest.group("obj-schema-ImportReadGroupSetsRequest", () { | 2218 unittest.group("obj-schema-ImportReadGroupSetsRequest", () { |
3341 unittest.test("to-json--from-json", () { | 2219 unittest.test("to-json--from-json", () { |
3342 var o = buildImportReadGroupSetsRequest(); | 2220 var o = buildImportReadGroupSetsRequest(); |
3343 var od = new api.ImportReadGroupSetsRequest.fromJson(o.toJson()); | 2221 var od = new api.ImportReadGroupSetsRequest.fromJson(o.toJson()); |
3344 checkImportReadGroupSetsRequest(od); | 2222 checkImportReadGroupSetsRequest(od); |
3345 }); | 2223 }); |
3346 }); | 2224 }); |
3347 | 2225 |
3348 | 2226 |
3349 unittest.group("obj-schema-ImportReadGroupSetsResponse", () { | 2227 unittest.group("obj-schema-ImportReadGroupSetsResponse", () { |
(...skipping 16 matching lines...) Expand all Loading... |
3366 | 2244 |
3367 unittest.group("obj-schema-ImportVariantsResponse", () { | 2245 unittest.group("obj-schema-ImportVariantsResponse", () { |
3368 unittest.test("to-json--from-json", () { | 2246 unittest.test("to-json--from-json", () { |
3369 var o = buildImportVariantsResponse(); | 2247 var o = buildImportVariantsResponse(); |
3370 var od = new api.ImportVariantsResponse.fromJson(o.toJson()); | 2248 var od = new api.ImportVariantsResponse.fromJson(o.toJson()); |
3371 checkImportVariantsResponse(od); | 2249 checkImportVariantsResponse(od); |
3372 }); | 2250 }); |
3373 }); | 2251 }); |
3374 | 2252 |
3375 | 2253 |
3376 unittest.group("obj-schema-Int32Value", () { | |
3377 unittest.test("to-json--from-json", () { | |
3378 var o = buildInt32Value(); | |
3379 var od = new api.Int32Value.fromJson(o.toJson()); | |
3380 checkInt32Value(od); | |
3381 }); | |
3382 }); | |
3383 | |
3384 | |
3385 unittest.group("obj-schema-InterleavedFastqSource", () { | |
3386 unittest.test("to-json--from-json", () { | |
3387 var o = buildInterleavedFastqSource(); | |
3388 var od = new api.InterleavedFastqSource.fromJson(o.toJson()); | |
3389 checkInterleavedFastqSource(od); | |
3390 }); | |
3391 }); | |
3392 | |
3393 | |
3394 unittest.group("obj-schema-Job", () { | |
3395 unittest.test("to-json--from-json", () { | |
3396 var o = buildJob(); | |
3397 var od = new api.Job.fromJson(o.toJson()); | |
3398 checkJob(od); | |
3399 }); | |
3400 }); | |
3401 | |
3402 | |
3403 unittest.group("obj-schema-JobRequest", () { | |
3404 unittest.test("to-json--from-json", () { | |
3405 var o = buildJobRequest(); | |
3406 var od = new api.JobRequest.fromJson(o.toJson()); | |
3407 checkJobRequest(od); | |
3408 }); | |
3409 }); | |
3410 | |
3411 | |
3412 unittest.group("obj-schema-KeyValue", () { | |
3413 unittest.test("to-json--from-json", () { | |
3414 var o = buildKeyValue(); | |
3415 var od = new api.KeyValue.fromJson(o.toJson()); | |
3416 checkKeyValue(od); | |
3417 }); | |
3418 }); | |
3419 | |
3420 | |
3421 unittest.group("obj-schema-LinearAlignment", () { | 2254 unittest.group("obj-schema-LinearAlignment", () { |
3422 unittest.test("to-json--from-json", () { | 2255 unittest.test("to-json--from-json", () { |
3423 var o = buildLinearAlignment(); | 2256 var o = buildLinearAlignment(); |
3424 var od = new api.LinearAlignment.fromJson(o.toJson()); | 2257 var od = new api.LinearAlignment.fromJson(o.toJson()); |
3425 checkLinearAlignment(od); | 2258 checkLinearAlignment(od); |
3426 }); | 2259 }); |
3427 }); | 2260 }); |
3428 | 2261 |
3429 | 2262 |
3430 unittest.group("obj-schema-ListBasesResponse", () { | 2263 unittest.group("obj-schema-ListBasesResponse", () { |
(...skipping 16 matching lines...) Expand all Loading... |
3447 | 2280 |
3448 unittest.group("obj-schema-ListDatasetsResponse", () { | 2281 unittest.group("obj-schema-ListDatasetsResponse", () { |
3449 unittest.test("to-json--from-json", () { | 2282 unittest.test("to-json--from-json", () { |
3450 var o = buildListDatasetsResponse(); | 2283 var o = buildListDatasetsResponse(); |
3451 var od = new api.ListDatasetsResponse.fromJson(o.toJson()); | 2284 var od = new api.ListDatasetsResponse.fromJson(o.toJson()); |
3452 checkListDatasetsResponse(od); | 2285 checkListDatasetsResponse(od); |
3453 }); | 2286 }); |
3454 }); | 2287 }); |
3455 | 2288 |
3456 | 2289 |
3457 unittest.group("obj-schema-MergeVariantsRequest", () { | 2290 unittest.group("obj-schema-ListOperationsResponse", () { |
3458 unittest.test("to-json--from-json", () { | 2291 unittest.test("to-json--from-json", () { |
3459 var o = buildMergeVariantsRequest(); | 2292 var o = buildListOperationsResponse(); |
3460 var od = new api.MergeVariantsRequest.fromJson(o.toJson()); | 2293 var od = new api.ListOperationsResponse.fromJson(o.toJson()); |
3461 checkMergeVariantsRequest(od); | 2294 checkListOperationsResponse(od); |
3462 }); | 2295 }); |
3463 }); | 2296 }); |
3464 | 2297 |
3465 | 2298 |
3466 unittest.group("obj-schema-Metadata", () { | 2299 unittest.group("obj-schema-Operation", () { |
3467 unittest.test("to-json--from-json", () { | 2300 unittest.test("to-json--from-json", () { |
3468 var o = buildMetadata(); | 2301 var o = buildOperation(); |
3469 var od = new api.Metadata.fromJson(o.toJson()); | 2302 var od = new api.Operation.fromJson(o.toJson()); |
3470 checkMetadata(od); | 2303 checkOperation(od); |
3471 }); | 2304 }); |
3472 }); | 2305 }); |
3473 | 2306 |
3474 | 2307 |
3475 unittest.group("obj-schema-PairedFastqSource", () { | 2308 unittest.group("obj-schema-OperationEvent", () { |
3476 unittest.test("to-json--from-json", () { | 2309 unittest.test("to-json--from-json", () { |
3477 var o = buildPairedFastqSource(); | 2310 var o = buildOperationEvent(); |
3478 var od = new api.PairedFastqSource.fromJson(o.toJson()); | 2311 var od = new api.OperationEvent.fromJson(o.toJson()); |
3479 checkPairedFastqSource(od); | 2312 checkOperationEvent(od); |
| 2313 }); |
| 2314 }); |
| 2315 |
| 2316 |
| 2317 unittest.group("obj-schema-OperationMetadata", () { |
| 2318 unittest.test("to-json--from-json", () { |
| 2319 var o = buildOperationMetadata(); |
| 2320 var od = new api.OperationMetadata.fromJson(o.toJson()); |
| 2321 checkOperationMetadata(od); |
3480 }); | 2322 }); |
3481 }); | 2323 }); |
3482 | 2324 |
3483 | 2325 |
3484 unittest.group("obj-schema-Position", () { | 2326 unittest.group("obj-schema-Position", () { |
3485 unittest.test("to-json--from-json", () { | 2327 unittest.test("to-json--from-json", () { |
3486 var o = buildPosition(); | 2328 var o = buildPosition(); |
3487 var od = new api.Position.fromJson(o.toJson()); | 2329 var od = new api.Position.fromJson(o.toJson()); |
3488 checkPosition(od); | 2330 checkPosition(od); |
3489 }); | 2331 }); |
3490 }); | 2332 }); |
3491 | 2333 |
3492 | 2334 |
3493 unittest.group("obj-schema-QueryRange", () { | 2335 unittest.group("obj-schema-Program", () { |
3494 unittest.test("to-json--from-json", () { | 2336 unittest.test("to-json--from-json", () { |
3495 var o = buildQueryRange(); | 2337 var o = buildProgram(); |
3496 var od = new api.QueryRange.fromJson(o.toJson()); | 2338 var od = new api.Program.fromJson(o.toJson()); |
3497 checkQueryRange(od); | 2339 checkProgram(od); |
3498 }); | 2340 }); |
3499 }); | 2341 }); |
3500 | 2342 |
3501 | 2343 |
3502 unittest.group("obj-schema-Range", () { | 2344 unittest.group("obj-schema-Range", () { |
3503 unittest.test("to-json--from-json", () { | 2345 unittest.test("to-json--from-json", () { |
3504 var o = buildRange(); | 2346 var o = buildRange(); |
3505 var od = new api.Range.fromJson(o.toJson()); | 2347 var od = new api.Range.fromJson(o.toJson()); |
3506 checkRange(od); | 2348 checkRange(od); |
3507 }); | 2349 }); |
3508 }); | 2350 }); |
3509 | 2351 |
3510 | 2352 |
3511 unittest.group("obj-schema-RangePosition", () { | |
3512 unittest.test("to-json--from-json", () { | |
3513 var o = buildRangePosition(); | |
3514 var od = new api.RangePosition.fromJson(o.toJson()); | |
3515 checkRangePosition(od); | |
3516 }); | |
3517 }); | |
3518 | |
3519 | |
3520 unittest.group("obj-schema-Read", () { | 2353 unittest.group("obj-schema-Read", () { |
3521 unittest.test("to-json--from-json", () { | 2354 unittest.test("to-json--from-json", () { |
3522 var o = buildRead(); | 2355 var o = buildRead(); |
3523 var od = new api.Read.fromJson(o.toJson()); | 2356 var od = new api.Read.fromJson(o.toJson()); |
3524 checkRead(od); | 2357 checkRead(od); |
3525 }); | 2358 }); |
3526 }); | 2359 }); |
3527 | 2360 |
3528 | 2361 |
3529 unittest.group("obj-schema-ReadGroup", () { | 2362 unittest.group("obj-schema-ReadGroup", () { |
3530 unittest.test("to-json--from-json", () { | 2363 unittest.test("to-json--from-json", () { |
3531 var o = buildReadGroup(); | 2364 var o = buildReadGroup(); |
3532 var od = new api.ReadGroup.fromJson(o.toJson()); | 2365 var od = new api.ReadGroup.fromJson(o.toJson()); |
3533 checkReadGroup(od); | 2366 checkReadGroup(od); |
3534 }); | 2367 }); |
3535 }); | 2368 }); |
3536 | 2369 |
3537 | 2370 |
3538 unittest.group("obj-schema-ReadGroupExperiment", () { | |
3539 unittest.test("to-json--from-json", () { | |
3540 var o = buildReadGroupExperiment(); | |
3541 var od = new api.ReadGroupExperiment.fromJson(o.toJson()); | |
3542 checkReadGroupExperiment(od); | |
3543 }); | |
3544 }); | |
3545 | |
3546 | |
3547 unittest.group("obj-schema-ReadGroupProgram", () { | |
3548 unittest.test("to-json--from-json", () { | |
3549 var o = buildReadGroupProgram(); | |
3550 var od = new api.ReadGroupProgram.fromJson(o.toJson()); | |
3551 checkReadGroupProgram(od); | |
3552 }); | |
3553 }); | |
3554 | |
3555 | |
3556 unittest.group("obj-schema-ReadGroupSet", () { | 2371 unittest.group("obj-schema-ReadGroupSet", () { |
3557 unittest.test("to-json--from-json", () { | 2372 unittest.test("to-json--from-json", () { |
3558 var o = buildReadGroupSet(); | 2373 var o = buildReadGroupSet(); |
3559 var od = new api.ReadGroupSet.fromJson(o.toJson()); | 2374 var od = new api.ReadGroupSet.fromJson(o.toJson()); |
3560 checkReadGroupSet(od); | 2375 checkReadGroupSet(od); |
3561 }); | 2376 }); |
3562 }); | 2377 }); |
3563 | 2378 |
3564 | 2379 |
3565 unittest.group("obj-schema-Reference", () { | 2380 unittest.group("obj-schema-Reference", () { |
(...skipping 16 matching lines...) Expand all Loading... |
3582 | 2397 |
3583 unittest.group("obj-schema-ReferenceSet", () { | 2398 unittest.group("obj-schema-ReferenceSet", () { |
3584 unittest.test("to-json--from-json", () { | 2399 unittest.test("to-json--from-json", () { |
3585 var o = buildReferenceSet(); | 2400 var o = buildReferenceSet(); |
3586 var od = new api.ReferenceSet.fromJson(o.toJson()); | 2401 var od = new api.ReferenceSet.fromJson(o.toJson()); |
3587 checkReferenceSet(od); | 2402 checkReferenceSet(od); |
3588 }); | 2403 }); |
3589 }); | 2404 }); |
3590 | 2405 |
3591 | 2406 |
3592 unittest.group("obj-schema-SearchAnnotationSetsRequest", () { | |
3593 unittest.test("to-json--from-json", () { | |
3594 var o = buildSearchAnnotationSetsRequest(); | |
3595 var od = new api.SearchAnnotationSetsRequest.fromJson(o.toJson()); | |
3596 checkSearchAnnotationSetsRequest(od); | |
3597 }); | |
3598 }); | |
3599 | |
3600 | |
3601 unittest.group("obj-schema-SearchAnnotationSetsResponse", () { | |
3602 unittest.test("to-json--from-json", () { | |
3603 var o = buildSearchAnnotationSetsResponse(); | |
3604 var od = new api.SearchAnnotationSetsResponse.fromJson(o.toJson()); | |
3605 checkSearchAnnotationSetsResponse(od); | |
3606 }); | |
3607 }); | |
3608 | |
3609 | |
3610 unittest.group("obj-schema-SearchAnnotationsRequest", () { | |
3611 unittest.test("to-json--from-json", () { | |
3612 var o = buildSearchAnnotationsRequest(); | |
3613 var od = new api.SearchAnnotationsRequest.fromJson(o.toJson()); | |
3614 checkSearchAnnotationsRequest(od); | |
3615 }); | |
3616 }); | |
3617 | |
3618 | |
3619 unittest.group("obj-schema-SearchAnnotationsResponse", () { | |
3620 unittest.test("to-json--from-json", () { | |
3621 var o = buildSearchAnnotationsResponse(); | |
3622 var od = new api.SearchAnnotationsResponse.fromJson(o.toJson()); | |
3623 checkSearchAnnotationsResponse(od); | |
3624 }); | |
3625 }); | |
3626 | |
3627 | |
3628 unittest.group("obj-schema-SearchCallSetsRequest", () { | 2407 unittest.group("obj-schema-SearchCallSetsRequest", () { |
3629 unittest.test("to-json--from-json", () { | 2408 unittest.test("to-json--from-json", () { |
3630 var o = buildSearchCallSetsRequest(); | 2409 var o = buildSearchCallSetsRequest(); |
3631 var od = new api.SearchCallSetsRequest.fromJson(o.toJson()); | 2410 var od = new api.SearchCallSetsRequest.fromJson(o.toJson()); |
3632 checkSearchCallSetsRequest(od); | 2411 checkSearchCallSetsRequest(od); |
3633 }); | 2412 }); |
3634 }); | 2413 }); |
3635 | 2414 |
3636 | 2415 |
3637 unittest.group("obj-schema-SearchCallSetsResponse", () { | 2416 unittest.group("obj-schema-SearchCallSetsResponse", () { |
3638 unittest.test("to-json--from-json", () { | 2417 unittest.test("to-json--from-json", () { |
3639 var o = buildSearchCallSetsResponse(); | 2418 var o = buildSearchCallSetsResponse(); |
3640 var od = new api.SearchCallSetsResponse.fromJson(o.toJson()); | 2419 var od = new api.SearchCallSetsResponse.fromJson(o.toJson()); |
3641 checkSearchCallSetsResponse(od); | 2420 checkSearchCallSetsResponse(od); |
3642 }); | 2421 }); |
3643 }); | 2422 }); |
3644 | 2423 |
3645 | 2424 |
3646 unittest.group("obj-schema-SearchJobsRequest", () { | |
3647 unittest.test("to-json--from-json", () { | |
3648 var o = buildSearchJobsRequest(); | |
3649 var od = new api.SearchJobsRequest.fromJson(o.toJson()); | |
3650 checkSearchJobsRequest(od); | |
3651 }); | |
3652 }); | |
3653 | |
3654 | |
3655 unittest.group("obj-schema-SearchJobsResponse", () { | |
3656 unittest.test("to-json--from-json", () { | |
3657 var o = buildSearchJobsResponse(); | |
3658 var od = new api.SearchJobsResponse.fromJson(o.toJson()); | |
3659 checkSearchJobsResponse(od); | |
3660 }); | |
3661 }); | |
3662 | |
3663 | |
3664 unittest.group("obj-schema-SearchReadGroupSetsRequest", () { | 2425 unittest.group("obj-schema-SearchReadGroupSetsRequest", () { |
3665 unittest.test("to-json--from-json", () { | 2426 unittest.test("to-json--from-json", () { |
3666 var o = buildSearchReadGroupSetsRequest(); | 2427 var o = buildSearchReadGroupSetsRequest(); |
3667 var od = new api.SearchReadGroupSetsRequest.fromJson(o.toJson()); | 2428 var od = new api.SearchReadGroupSetsRequest.fromJson(o.toJson()); |
3668 checkSearchReadGroupSetsRequest(od); | 2429 checkSearchReadGroupSetsRequest(od); |
3669 }); | 2430 }); |
3670 }); | 2431 }); |
3671 | 2432 |
3672 | 2433 |
3673 unittest.group("obj-schema-SearchReadGroupSetsResponse", () { | 2434 unittest.group("obj-schema-SearchReadGroupSetsResponse", () { |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3762 | 2523 |
3763 unittest.group("obj-schema-SearchVariantsResponse", () { | 2524 unittest.group("obj-schema-SearchVariantsResponse", () { |
3764 unittest.test("to-json--from-json", () { | 2525 unittest.test("to-json--from-json", () { |
3765 var o = buildSearchVariantsResponse(); | 2526 var o = buildSearchVariantsResponse(); |
3766 var od = new api.SearchVariantsResponse.fromJson(o.toJson()); | 2527 var od = new api.SearchVariantsResponse.fromJson(o.toJson()); |
3767 checkSearchVariantsResponse(od); | 2528 checkSearchVariantsResponse(od); |
3768 }); | 2529 }); |
3769 }); | 2530 }); |
3770 | 2531 |
3771 | 2532 |
3772 unittest.group("obj-schema-Transcript", () { | 2533 unittest.group("obj-schema-Status", () { |
3773 unittest.test("to-json--from-json", () { | 2534 unittest.test("to-json--from-json", () { |
3774 var o = buildTranscript(); | 2535 var o = buildStatus(); |
3775 var od = new api.Transcript.fromJson(o.toJson()); | 2536 var od = new api.Status.fromJson(o.toJson()); |
3776 checkTranscript(od); | 2537 checkStatus(od); |
3777 }); | 2538 }); |
3778 }); | 2539 }); |
3779 | 2540 |
3780 | 2541 |
3781 unittest.group("obj-schema-TranscriptCodingSequence", () { | 2542 unittest.group("obj-schema-UndeleteDatasetRequest", () { |
3782 unittest.test("to-json--from-json", () { | 2543 unittest.test("to-json--from-json", () { |
3783 var o = buildTranscriptCodingSequence(); | 2544 var o = buildUndeleteDatasetRequest(); |
3784 var od = new api.TranscriptCodingSequence.fromJson(o.toJson()); | 2545 var od = new api.UndeleteDatasetRequest.fromJson(o.toJson()); |
3785 checkTranscriptCodingSequence(od); | 2546 checkUndeleteDatasetRequest(od); |
3786 }); | |
3787 }); | |
3788 | |
3789 | |
3790 unittest.group("obj-schema-TranscriptExon", () { | |
3791 unittest.test("to-json--from-json", () { | |
3792 var o = buildTranscriptExon(); | |
3793 var od = new api.TranscriptExon.fromJson(o.toJson()); | |
3794 checkTranscriptExon(od); | |
3795 }); | 2547 }); |
3796 }); | 2548 }); |
3797 | 2549 |
3798 | 2550 |
3799 unittest.group("obj-schema-Variant", () { | 2551 unittest.group("obj-schema-Variant", () { |
3800 unittest.test("to-json--from-json", () { | 2552 unittest.test("to-json--from-json", () { |
3801 var o = buildVariant(); | 2553 var o = buildVariant(); |
3802 var od = new api.Variant.fromJson(o.toJson()); | 2554 var od = new api.Variant.fromJson(o.toJson()); |
3803 checkVariant(od); | 2555 checkVariant(od); |
3804 }); | 2556 }); |
3805 }); | 2557 }); |
3806 | 2558 |
3807 | 2559 |
3808 unittest.group("obj-schema-VariantAnnotation", () { | 2560 unittest.group("obj-schema-VariantCall", () { |
3809 unittest.test("to-json--from-json", () { | 2561 unittest.test("to-json--from-json", () { |
3810 var o = buildVariantAnnotation(); | 2562 var o = buildVariantCall(); |
3811 var od = new api.VariantAnnotation.fromJson(o.toJson()); | 2563 var od = new api.VariantCall.fromJson(o.toJson()); |
3812 checkVariantAnnotation(od); | 2564 checkVariantCall(od); |
3813 }); | |
3814 }); | |
3815 | |
3816 | |
3817 unittest.group("obj-schema-VariantAnnotationCondition", () { | |
3818 unittest.test("to-json--from-json", () { | |
3819 var o = buildVariantAnnotationCondition(); | |
3820 var od = new api.VariantAnnotationCondition.fromJson(o.toJson()); | |
3821 checkVariantAnnotationCondition(od); | |
3822 }); | 2565 }); |
3823 }); | 2566 }); |
3824 | 2567 |
3825 | 2568 |
3826 unittest.group("obj-schema-VariantSet", () { | 2569 unittest.group("obj-schema-VariantSet", () { |
3827 unittest.test("to-json--from-json", () { | 2570 unittest.test("to-json--from-json", () { |
3828 var o = buildVariantSet(); | 2571 var o = buildVariantSet(); |
3829 var od = new api.VariantSet.fromJson(o.toJson()); | 2572 var od = new api.VariantSet.fromJson(o.toJson()); |
3830 checkVariantSet(od); | 2573 checkVariantSet(od); |
3831 }); | 2574 }); |
3832 }); | 2575 }); |
3833 | 2576 |
3834 | 2577 |
3835 unittest.group("resource-AnnotationSetsResourceApi", () { | 2578 unittest.group("obj-schema-VariantSetMetadata", () { |
3836 unittest.test("method--create", () { | 2579 unittest.test("to-json--from-json", () { |
3837 | 2580 var o = buildVariantSetMetadata(); |
3838 var mock = new HttpServerMock(); | 2581 var od = new api.VariantSetMetadata.fromJson(o.toJson()); |
3839 api.AnnotationSetsResourceApi res = new api.GenomicsApi(mock).annotationSe
ts; | 2582 checkVariantSetMetadata(od); |
3840 var arg_request = buildAnnotationSet(); | 2583 }); |
3841 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2584 }); |
3842 var obj = new api.AnnotationSet.fromJson(json); | 2585 |
3843 checkAnnotationSet(obj); | 2586 |
3844 | |
3845 var path = (req.url).path; | |
3846 var pathOffset = 0; | |
3847 var index; | |
3848 var subPart; | |
3849 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
3850 pathOffset += 1; | |
3851 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | |
3852 pathOffset += 17; | |
3853 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("annotationSets")); | |
3854 pathOffset += 14; | |
3855 | |
3856 var query = (req.url).query; | |
3857 var queryOffset = 0; | |
3858 var queryMap = {}; | |
3859 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
3860 parseBool(n) { | |
3861 if (n == "true") return true; | |
3862 if (n == "false") return false; | |
3863 if (n == null) return null; | |
3864 throw new core.ArgumentError("Invalid boolean: $n"); | |
3865 } | |
3866 if (query.length > 0) { | |
3867 for (var part in query.split("&")) { | |
3868 var keyvalue = part.split("="); | |
3869 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
3870 } | |
3871 } | |
3872 | |
3873 | |
3874 var h = { | |
3875 "content-type" : "application/json; charset=utf-8", | |
3876 }; | |
3877 var resp = convert.JSON.encode(buildAnnotationSet()); | |
3878 return new async.Future.value(stringResponse(200, h, resp)); | |
3879 }), true); | |
3880 res.create(arg_request).then(unittest.expectAsync(((api.AnnotationSet resp
onse) { | |
3881 checkAnnotationSet(response); | |
3882 }))); | |
3883 }); | |
3884 | |
3885 unittest.test("method--delete", () { | |
3886 | |
3887 var mock = new HttpServerMock(); | |
3888 api.AnnotationSetsResourceApi res = new api.GenomicsApi(mock).annotationSe
ts; | |
3889 var arg_annotationSetId = "foo"; | |
3890 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
3891 var path = (req.url).path; | |
3892 var pathOffset = 0; | |
3893 var index; | |
3894 var subPart; | |
3895 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
3896 pathOffset += 1; | |
3897 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | |
3898 pathOffset += 17; | |
3899 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("annotationSets/")); | |
3900 pathOffset += 15; | |
3901 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
3902 pathOffset = path.length; | |
3903 unittest.expect(subPart, unittest.equals("$arg_annotationSetId")); | |
3904 | |
3905 var query = (req.url).query; | |
3906 var queryOffset = 0; | |
3907 var queryMap = {}; | |
3908 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
3909 parseBool(n) { | |
3910 if (n == "true") return true; | |
3911 if (n == "false") return false; | |
3912 if (n == null) return null; | |
3913 throw new core.ArgumentError("Invalid boolean: $n"); | |
3914 } | |
3915 if (query.length > 0) { | |
3916 for (var part in query.split("&")) { | |
3917 var keyvalue = part.split("="); | |
3918 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
3919 } | |
3920 } | |
3921 | |
3922 | |
3923 var h = { | |
3924 "content-type" : "application/json; charset=utf-8", | |
3925 }; | |
3926 var resp = ""; | |
3927 return new async.Future.value(stringResponse(200, h, resp)); | |
3928 }), true); | |
3929 res.delete(arg_annotationSetId).then(unittest.expectAsync((_) {})); | |
3930 }); | |
3931 | |
3932 unittest.test("method--get", () { | |
3933 | |
3934 var mock = new HttpServerMock(); | |
3935 api.AnnotationSetsResourceApi res = new api.GenomicsApi(mock).annotationSe
ts; | |
3936 var arg_annotationSetId = "foo"; | |
3937 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
3938 var path = (req.url).path; | |
3939 var pathOffset = 0; | |
3940 var index; | |
3941 var subPart; | |
3942 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
3943 pathOffset += 1; | |
3944 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | |
3945 pathOffset += 17; | |
3946 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("annotationSets/")); | |
3947 pathOffset += 15; | |
3948 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
3949 pathOffset = path.length; | |
3950 unittest.expect(subPart, unittest.equals("$arg_annotationSetId")); | |
3951 | |
3952 var query = (req.url).query; | |
3953 var queryOffset = 0; | |
3954 var queryMap = {}; | |
3955 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
3956 parseBool(n) { | |
3957 if (n == "true") return true; | |
3958 if (n == "false") return false; | |
3959 if (n == null) return null; | |
3960 throw new core.ArgumentError("Invalid boolean: $n"); | |
3961 } | |
3962 if (query.length > 0) { | |
3963 for (var part in query.split("&")) { | |
3964 var keyvalue = part.split("="); | |
3965 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
3966 } | |
3967 } | |
3968 | |
3969 | |
3970 var h = { | |
3971 "content-type" : "application/json; charset=utf-8", | |
3972 }; | |
3973 var resp = convert.JSON.encode(buildAnnotationSet()); | |
3974 return new async.Future.value(stringResponse(200, h, resp)); | |
3975 }), true); | |
3976 res.get(arg_annotationSetId).then(unittest.expectAsync(((api.AnnotationSet
response) { | |
3977 checkAnnotationSet(response); | |
3978 }))); | |
3979 }); | |
3980 | |
3981 unittest.test("method--patch", () { | |
3982 | |
3983 var mock = new HttpServerMock(); | |
3984 api.AnnotationSetsResourceApi res = new api.GenomicsApi(mock).annotationSe
ts; | |
3985 var arg_request = buildAnnotationSet(); | |
3986 var arg_annotationSetId = "foo"; | |
3987 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
3988 var obj = new api.AnnotationSet.fromJson(json); | |
3989 checkAnnotationSet(obj); | |
3990 | |
3991 var path = (req.url).path; | |
3992 var pathOffset = 0; | |
3993 var index; | |
3994 var subPart; | |
3995 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
3996 pathOffset += 1; | |
3997 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | |
3998 pathOffset += 17; | |
3999 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("annotationSets/")); | |
4000 pathOffset += 15; | |
4001 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
4002 pathOffset = path.length; | |
4003 unittest.expect(subPart, unittest.equals("$arg_annotationSetId")); | |
4004 | |
4005 var query = (req.url).query; | |
4006 var queryOffset = 0; | |
4007 var queryMap = {}; | |
4008 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
4009 parseBool(n) { | |
4010 if (n == "true") return true; | |
4011 if (n == "false") return false; | |
4012 if (n == null) return null; | |
4013 throw new core.ArgumentError("Invalid boolean: $n"); | |
4014 } | |
4015 if (query.length > 0) { | |
4016 for (var part in query.split("&")) { | |
4017 var keyvalue = part.split("="); | |
4018 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
4019 } | |
4020 } | |
4021 | |
4022 | |
4023 var h = { | |
4024 "content-type" : "application/json; charset=utf-8", | |
4025 }; | |
4026 var resp = convert.JSON.encode(buildAnnotationSet()); | |
4027 return new async.Future.value(stringResponse(200, h, resp)); | |
4028 }), true); | |
4029 res.patch(arg_request, arg_annotationSetId).then(unittest.expectAsync(((ap
i.AnnotationSet response) { | |
4030 checkAnnotationSet(response); | |
4031 }))); | |
4032 }); | |
4033 | |
4034 unittest.test("method--search", () { | |
4035 | |
4036 var mock = new HttpServerMock(); | |
4037 api.AnnotationSetsResourceApi res = new api.GenomicsApi(mock).annotationSe
ts; | |
4038 var arg_request = buildSearchAnnotationSetsRequest(); | |
4039 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
4040 var obj = new api.SearchAnnotationSetsRequest.fromJson(json); | |
4041 checkSearchAnnotationSetsRequest(obj); | |
4042 | |
4043 var path = (req.url).path; | |
4044 var pathOffset = 0; | |
4045 var index; | |
4046 var subPart; | |
4047 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
4048 pathOffset += 1; | |
4049 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | |
4050 pathOffset += 17; | |
4051 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("annotationSets/search")); | |
4052 pathOffset += 21; | |
4053 | |
4054 var query = (req.url).query; | |
4055 var queryOffset = 0; | |
4056 var queryMap = {}; | |
4057 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
4058 parseBool(n) { | |
4059 if (n == "true") return true; | |
4060 if (n == "false") return false; | |
4061 if (n == null) return null; | |
4062 throw new core.ArgumentError("Invalid boolean: $n"); | |
4063 } | |
4064 if (query.length > 0) { | |
4065 for (var part in query.split("&")) { | |
4066 var keyvalue = part.split("="); | |
4067 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
4068 } | |
4069 } | |
4070 | |
4071 | |
4072 var h = { | |
4073 "content-type" : "application/json; charset=utf-8", | |
4074 }; | |
4075 var resp = convert.JSON.encode(buildSearchAnnotationSetsResponse()); | |
4076 return new async.Future.value(stringResponse(200, h, resp)); | |
4077 }), true); | |
4078 res.search(arg_request).then(unittest.expectAsync(((api.SearchAnnotationSe
tsResponse response) { | |
4079 checkSearchAnnotationSetsResponse(response); | |
4080 }))); | |
4081 }); | |
4082 | |
4083 unittest.test("method--update", () { | |
4084 | |
4085 var mock = new HttpServerMock(); | |
4086 api.AnnotationSetsResourceApi res = new api.GenomicsApi(mock).annotationSe
ts; | |
4087 var arg_request = buildAnnotationSet(); | |
4088 var arg_annotationSetId = "foo"; | |
4089 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
4090 var obj = new api.AnnotationSet.fromJson(json); | |
4091 checkAnnotationSet(obj); | |
4092 | |
4093 var path = (req.url).path; | |
4094 var pathOffset = 0; | |
4095 var index; | |
4096 var subPart; | |
4097 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
4098 pathOffset += 1; | |
4099 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | |
4100 pathOffset += 17; | |
4101 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("annotationSets/")); | |
4102 pathOffset += 15; | |
4103 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
4104 pathOffset = path.length; | |
4105 unittest.expect(subPart, unittest.equals("$arg_annotationSetId")); | |
4106 | |
4107 var query = (req.url).query; | |
4108 var queryOffset = 0; | |
4109 var queryMap = {}; | |
4110 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
4111 parseBool(n) { | |
4112 if (n == "true") return true; | |
4113 if (n == "false") return false; | |
4114 if (n == null) return null; | |
4115 throw new core.ArgumentError("Invalid boolean: $n"); | |
4116 } | |
4117 if (query.length > 0) { | |
4118 for (var part in query.split("&")) { | |
4119 var keyvalue = part.split("="); | |
4120 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
4121 } | |
4122 } | |
4123 | |
4124 | |
4125 var h = { | |
4126 "content-type" : "application/json; charset=utf-8", | |
4127 }; | |
4128 var resp = convert.JSON.encode(buildAnnotationSet()); | |
4129 return new async.Future.value(stringResponse(200, h, resp)); | |
4130 }), true); | |
4131 res.update(arg_request, arg_annotationSetId).then(unittest.expectAsync(((a
pi.AnnotationSet response) { | |
4132 checkAnnotationSet(response); | |
4133 }))); | |
4134 }); | |
4135 | |
4136 }); | |
4137 | |
4138 | |
4139 unittest.group("resource-AnnotationsResourceApi", () { | |
4140 unittest.test("method--batchCreate", () { | |
4141 | |
4142 var mock = new HttpServerMock(); | |
4143 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; | |
4144 var arg_request = buildBatchCreateAnnotationsRequest(); | |
4145 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
4146 var obj = new api.BatchCreateAnnotationsRequest.fromJson(json); | |
4147 checkBatchCreateAnnotationsRequest(obj); | |
4148 | |
4149 var path = (req.url).path; | |
4150 var pathOffset = 0; | |
4151 var index; | |
4152 var subPart; | |
4153 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
4154 pathOffset += 1; | |
4155 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | |
4156 pathOffset += 17; | |
4157 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("annotations:batchCreate")); | |
4158 pathOffset += 23; | |
4159 | |
4160 var query = (req.url).query; | |
4161 var queryOffset = 0; | |
4162 var queryMap = {}; | |
4163 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
4164 parseBool(n) { | |
4165 if (n == "true") return true; | |
4166 if (n == "false") return false; | |
4167 if (n == null) return null; | |
4168 throw new core.ArgumentError("Invalid boolean: $n"); | |
4169 } | |
4170 if (query.length > 0) { | |
4171 for (var part in query.split("&")) { | |
4172 var keyvalue = part.split("="); | |
4173 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
4174 } | |
4175 } | |
4176 | |
4177 | |
4178 var h = { | |
4179 "content-type" : "application/json; charset=utf-8", | |
4180 }; | |
4181 var resp = convert.JSON.encode(buildBatchAnnotationsResponse()); | |
4182 return new async.Future.value(stringResponse(200, h, resp)); | |
4183 }), true); | |
4184 res.batchCreate(arg_request).then(unittest.expectAsync(((api.BatchAnnotati
onsResponse response) { | |
4185 checkBatchAnnotationsResponse(response); | |
4186 }))); | |
4187 }); | |
4188 | |
4189 unittest.test("method--create", () { | |
4190 | |
4191 var mock = new HttpServerMock(); | |
4192 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; | |
4193 var arg_request = buildAnnotation(); | |
4194 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
4195 var obj = new api.Annotation.fromJson(json); | |
4196 checkAnnotation(obj); | |
4197 | |
4198 var path = (req.url).path; | |
4199 var pathOffset = 0; | |
4200 var index; | |
4201 var subPart; | |
4202 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
4203 pathOffset += 1; | |
4204 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | |
4205 pathOffset += 17; | |
4206 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("annotations")); | |
4207 pathOffset += 11; | |
4208 | |
4209 var query = (req.url).query; | |
4210 var queryOffset = 0; | |
4211 var queryMap = {}; | |
4212 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
4213 parseBool(n) { | |
4214 if (n == "true") return true; | |
4215 if (n == "false") return false; | |
4216 if (n == null) return null; | |
4217 throw new core.ArgumentError("Invalid boolean: $n"); | |
4218 } | |
4219 if (query.length > 0) { | |
4220 for (var part in query.split("&")) { | |
4221 var keyvalue = part.split("="); | |
4222 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
4223 } | |
4224 } | |
4225 | |
4226 | |
4227 var h = { | |
4228 "content-type" : "application/json; charset=utf-8", | |
4229 }; | |
4230 var resp = convert.JSON.encode(buildAnnotation()); | |
4231 return new async.Future.value(stringResponse(200, h, resp)); | |
4232 }), true); | |
4233 res.create(arg_request).then(unittest.expectAsync(((api.Annotation respons
e) { | |
4234 checkAnnotation(response); | |
4235 }))); | |
4236 }); | |
4237 | |
4238 unittest.test("method--delete", () { | |
4239 | |
4240 var mock = new HttpServerMock(); | |
4241 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; | |
4242 var arg_annotationId = "foo"; | |
4243 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
4244 var path = (req.url).path; | |
4245 var pathOffset = 0; | |
4246 var index; | |
4247 var subPart; | |
4248 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
4249 pathOffset += 1; | |
4250 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | |
4251 pathOffset += 17; | |
4252 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("annotations/")); | |
4253 pathOffset += 12; | |
4254 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
4255 pathOffset = path.length; | |
4256 unittest.expect(subPart, unittest.equals("$arg_annotationId")); | |
4257 | |
4258 var query = (req.url).query; | |
4259 var queryOffset = 0; | |
4260 var queryMap = {}; | |
4261 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
4262 parseBool(n) { | |
4263 if (n == "true") return true; | |
4264 if (n == "false") return false; | |
4265 if (n == null) return null; | |
4266 throw new core.ArgumentError("Invalid boolean: $n"); | |
4267 } | |
4268 if (query.length > 0) { | |
4269 for (var part in query.split("&")) { | |
4270 var keyvalue = part.split("="); | |
4271 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
4272 } | |
4273 } | |
4274 | |
4275 | |
4276 var h = { | |
4277 "content-type" : "application/json; charset=utf-8", | |
4278 }; | |
4279 var resp = ""; | |
4280 return new async.Future.value(stringResponse(200, h, resp)); | |
4281 }), true); | |
4282 res.delete(arg_annotationId).then(unittest.expectAsync((_) {})); | |
4283 }); | |
4284 | |
4285 unittest.test("method--get", () { | |
4286 | |
4287 var mock = new HttpServerMock(); | |
4288 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; | |
4289 var arg_annotationId = "foo"; | |
4290 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
4291 var path = (req.url).path; | |
4292 var pathOffset = 0; | |
4293 var index; | |
4294 var subPart; | |
4295 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
4296 pathOffset += 1; | |
4297 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | |
4298 pathOffset += 17; | |
4299 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("annotations/")); | |
4300 pathOffset += 12; | |
4301 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
4302 pathOffset = path.length; | |
4303 unittest.expect(subPart, unittest.equals("$arg_annotationId")); | |
4304 | |
4305 var query = (req.url).query; | |
4306 var queryOffset = 0; | |
4307 var queryMap = {}; | |
4308 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
4309 parseBool(n) { | |
4310 if (n == "true") return true; | |
4311 if (n == "false") return false; | |
4312 if (n == null) return null; | |
4313 throw new core.ArgumentError("Invalid boolean: $n"); | |
4314 } | |
4315 if (query.length > 0) { | |
4316 for (var part in query.split("&")) { | |
4317 var keyvalue = part.split("="); | |
4318 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
4319 } | |
4320 } | |
4321 | |
4322 | |
4323 var h = { | |
4324 "content-type" : "application/json; charset=utf-8", | |
4325 }; | |
4326 var resp = convert.JSON.encode(buildAnnotation()); | |
4327 return new async.Future.value(stringResponse(200, h, resp)); | |
4328 }), true); | |
4329 res.get(arg_annotationId).then(unittest.expectAsync(((api.Annotation respo
nse) { | |
4330 checkAnnotation(response); | |
4331 }))); | |
4332 }); | |
4333 | |
4334 unittest.test("method--patch", () { | |
4335 | |
4336 var mock = new HttpServerMock(); | |
4337 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; | |
4338 var arg_request = buildAnnotation(); | |
4339 var arg_annotationId = "foo"; | |
4340 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
4341 var obj = new api.Annotation.fromJson(json); | |
4342 checkAnnotation(obj); | |
4343 | |
4344 var path = (req.url).path; | |
4345 var pathOffset = 0; | |
4346 var index; | |
4347 var subPart; | |
4348 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
4349 pathOffset += 1; | |
4350 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | |
4351 pathOffset += 17; | |
4352 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("annotations/")); | |
4353 pathOffset += 12; | |
4354 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
4355 pathOffset = path.length; | |
4356 unittest.expect(subPart, unittest.equals("$arg_annotationId")); | |
4357 | |
4358 var query = (req.url).query; | |
4359 var queryOffset = 0; | |
4360 var queryMap = {}; | |
4361 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
4362 parseBool(n) { | |
4363 if (n == "true") return true; | |
4364 if (n == "false") return false; | |
4365 if (n == null) return null; | |
4366 throw new core.ArgumentError("Invalid boolean: $n"); | |
4367 } | |
4368 if (query.length > 0) { | |
4369 for (var part in query.split("&")) { | |
4370 var keyvalue = part.split("="); | |
4371 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
4372 } | |
4373 } | |
4374 | |
4375 | |
4376 var h = { | |
4377 "content-type" : "application/json; charset=utf-8", | |
4378 }; | |
4379 var resp = convert.JSON.encode(buildAnnotation()); | |
4380 return new async.Future.value(stringResponse(200, h, resp)); | |
4381 }), true); | |
4382 res.patch(arg_request, arg_annotationId).then(unittest.expectAsync(((api.A
nnotation response) { | |
4383 checkAnnotation(response); | |
4384 }))); | |
4385 }); | |
4386 | |
4387 unittest.test("method--search", () { | |
4388 | |
4389 var mock = new HttpServerMock(); | |
4390 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; | |
4391 var arg_request = buildSearchAnnotationsRequest(); | |
4392 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
4393 var obj = new api.SearchAnnotationsRequest.fromJson(json); | |
4394 checkSearchAnnotationsRequest(obj); | |
4395 | |
4396 var path = (req.url).path; | |
4397 var pathOffset = 0; | |
4398 var index; | |
4399 var subPart; | |
4400 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
4401 pathOffset += 1; | |
4402 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | |
4403 pathOffset += 17; | |
4404 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("annotations/search")); | |
4405 pathOffset += 18; | |
4406 | |
4407 var query = (req.url).query; | |
4408 var queryOffset = 0; | |
4409 var queryMap = {}; | |
4410 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
4411 parseBool(n) { | |
4412 if (n == "true") return true; | |
4413 if (n == "false") return false; | |
4414 if (n == null) return null; | |
4415 throw new core.ArgumentError("Invalid boolean: $n"); | |
4416 } | |
4417 if (query.length > 0) { | |
4418 for (var part in query.split("&")) { | |
4419 var keyvalue = part.split("="); | |
4420 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
4421 } | |
4422 } | |
4423 | |
4424 | |
4425 var h = { | |
4426 "content-type" : "application/json; charset=utf-8", | |
4427 }; | |
4428 var resp = convert.JSON.encode(buildSearchAnnotationsResponse()); | |
4429 return new async.Future.value(stringResponse(200, h, resp)); | |
4430 }), true); | |
4431 res.search(arg_request).then(unittest.expectAsync(((api.SearchAnnotationsR
esponse response) { | |
4432 checkSearchAnnotationsResponse(response); | |
4433 }))); | |
4434 }); | |
4435 | |
4436 unittest.test("method--update", () { | |
4437 | |
4438 var mock = new HttpServerMock(); | |
4439 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; | |
4440 var arg_request = buildAnnotation(); | |
4441 var arg_annotationId = "foo"; | |
4442 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
4443 var obj = new api.Annotation.fromJson(json); | |
4444 checkAnnotation(obj); | |
4445 | |
4446 var path = (req.url).path; | |
4447 var pathOffset = 0; | |
4448 var index; | |
4449 var subPart; | |
4450 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
4451 pathOffset += 1; | |
4452 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | |
4453 pathOffset += 17; | |
4454 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("annotations/")); | |
4455 pathOffset += 12; | |
4456 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
4457 pathOffset = path.length; | |
4458 unittest.expect(subPart, unittest.equals("$arg_annotationId")); | |
4459 | |
4460 var query = (req.url).query; | |
4461 var queryOffset = 0; | |
4462 var queryMap = {}; | |
4463 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
4464 parseBool(n) { | |
4465 if (n == "true") return true; | |
4466 if (n == "false") return false; | |
4467 if (n == null) return null; | |
4468 throw new core.ArgumentError("Invalid boolean: $n"); | |
4469 } | |
4470 if (query.length > 0) { | |
4471 for (var part in query.split("&")) { | |
4472 var keyvalue = part.split("="); | |
4473 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
4474 } | |
4475 } | |
4476 | |
4477 | |
4478 var h = { | |
4479 "content-type" : "application/json; charset=utf-8", | |
4480 }; | |
4481 var resp = convert.JSON.encode(buildAnnotation()); | |
4482 return new async.Future.value(stringResponse(200, h, resp)); | |
4483 }), true); | |
4484 res.update(arg_request, arg_annotationId).then(unittest.expectAsync(((api.
Annotation response) { | |
4485 checkAnnotation(response); | |
4486 }))); | |
4487 }); | |
4488 | |
4489 }); | |
4490 | |
4491 | |
4492 unittest.group("resource-CallsetsResourceApi", () { | 2587 unittest.group("resource-CallsetsResourceApi", () { |
4493 unittest.test("method--create", () { | 2588 unittest.test("method--create", () { |
4494 | 2589 |
4495 var mock = new HttpServerMock(); | 2590 var mock = new HttpServerMock(); |
4496 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; | 2591 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; |
4497 var arg_request = buildCallSet(); | 2592 var arg_request = buildCallSet(); |
4498 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2593 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4499 var obj = new api.CallSet.fromJson(json); | 2594 var obj = new api.CallSet.fromJson(json); |
4500 checkCallSet(obj); | 2595 checkCallSet(obj); |
4501 | 2596 |
4502 var path = (req.url).path; | 2597 var path = (req.url).path; |
4503 var pathOffset = 0; | 2598 var pathOffset = 0; |
4504 var index; | 2599 var index; |
4505 var subPart; | 2600 var subPart; |
4506 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2601 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4507 pathOffset += 1; | 2602 pathOffset += 1; |
4508 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 2603 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("v1/callsets")); |
4509 pathOffset += 17; | 2604 pathOffset += 11; |
4510 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("callsets")); | |
4511 pathOffset += 8; | |
4512 | 2605 |
4513 var query = (req.url).query; | 2606 var query = (req.url).query; |
4514 var queryOffset = 0; | 2607 var queryOffset = 0; |
4515 var queryMap = {}; | 2608 var queryMap = {}; |
4516 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2609 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4517 parseBool(n) { | 2610 parseBool(n) { |
4518 if (n == "true") return true; | 2611 if (n == "true") return true; |
4519 if (n == "false") return false; | 2612 if (n == "false") return false; |
4520 if (n == null) return null; | 2613 if (n == null) return null; |
4521 throw new core.ArgumentError("Invalid boolean: $n"); | 2614 throw new core.ArgumentError("Invalid boolean: $n"); |
(...skipping 22 matching lines...) Expand all Loading... |
4544 var mock = new HttpServerMock(); | 2637 var mock = new HttpServerMock(); |
4545 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; | 2638 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; |
4546 var arg_callSetId = "foo"; | 2639 var arg_callSetId = "foo"; |
4547 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2640 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4548 var path = (req.url).path; | 2641 var path = (req.url).path; |
4549 var pathOffset = 0; | 2642 var pathOffset = 0; |
4550 var index; | 2643 var index; |
4551 var subPart; | 2644 var subPart; |
4552 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2645 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4553 pathOffset += 1; | 2646 pathOffset += 1; |
4554 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 2647 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/callsets/")); |
4555 pathOffset += 17; | 2648 pathOffset += 12; |
4556 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("callsets/")); | |
4557 pathOffset += 9; | |
4558 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2649 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
4559 pathOffset = path.length; | 2650 pathOffset = path.length; |
4560 unittest.expect(subPart, unittest.equals("$arg_callSetId")); | 2651 unittest.expect(subPart, unittest.equals("$arg_callSetId")); |
4561 | 2652 |
4562 var query = (req.url).query; | 2653 var query = (req.url).query; |
4563 var queryOffset = 0; | 2654 var queryOffset = 0; |
4564 var queryMap = {}; | 2655 var queryMap = {}; |
4565 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2656 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4566 parseBool(n) { | 2657 parseBool(n) { |
4567 if (n == "true") return true; | 2658 if (n == "true") return true; |
4568 if (n == "false") return false; | 2659 if (n == "false") return false; |
4569 if (n == null) return null; | 2660 if (n == null) return null; |
4570 throw new core.ArgumentError("Invalid boolean: $n"); | 2661 throw new core.ArgumentError("Invalid boolean: $n"); |
4571 } | 2662 } |
4572 if (query.length > 0) { | 2663 if (query.length > 0) { |
4573 for (var part in query.split("&")) { | 2664 for (var part in query.split("&")) { |
4574 var keyvalue = part.split("="); | 2665 var keyvalue = part.split("="); |
4575 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2666 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4576 } | 2667 } |
4577 } | 2668 } |
4578 | 2669 |
4579 | 2670 |
4580 var h = { | 2671 var h = { |
4581 "content-type" : "application/json; charset=utf-8", | 2672 "content-type" : "application/json; charset=utf-8", |
4582 }; | 2673 }; |
4583 var resp = ""; | 2674 var resp = convert.JSON.encode(buildEmpty()); |
4584 return new async.Future.value(stringResponse(200, h, resp)); | 2675 return new async.Future.value(stringResponse(200, h, resp)); |
4585 }), true); | 2676 }), true); |
4586 res.delete(arg_callSetId).then(unittest.expectAsync((_) {})); | 2677 res.delete(arg_callSetId).then(unittest.expectAsync(((api.Empty response)
{ |
| 2678 checkEmpty(response); |
| 2679 }))); |
4587 }); | 2680 }); |
4588 | 2681 |
4589 unittest.test("method--get", () { | 2682 unittest.test("method--get", () { |
4590 | 2683 |
4591 var mock = new HttpServerMock(); | 2684 var mock = new HttpServerMock(); |
4592 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; | 2685 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; |
4593 var arg_callSetId = "foo"; | 2686 var arg_callSetId = "foo"; |
4594 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2687 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4595 var path = (req.url).path; | 2688 var path = (req.url).path; |
4596 var pathOffset = 0; | 2689 var pathOffset = 0; |
4597 var index; | 2690 var index; |
4598 var subPart; | 2691 var subPart; |
4599 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2692 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4600 pathOffset += 1; | 2693 pathOffset += 1; |
4601 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 2694 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/callsets/")); |
4602 pathOffset += 17; | 2695 pathOffset += 12; |
4603 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("callsets/")); | |
4604 pathOffset += 9; | |
4605 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2696 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
4606 pathOffset = path.length; | 2697 pathOffset = path.length; |
4607 unittest.expect(subPart, unittest.equals("$arg_callSetId")); | 2698 unittest.expect(subPart, unittest.equals("$arg_callSetId")); |
4608 | 2699 |
4609 var query = (req.url).query; | 2700 var query = (req.url).query; |
4610 var queryOffset = 0; | 2701 var queryOffset = 0; |
4611 var queryMap = {}; | 2702 var queryMap = {}; |
4612 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2703 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4613 parseBool(n) { | 2704 parseBool(n) { |
4614 if (n == "true") return true; | 2705 if (n == "true") return true; |
(...skipping 19 matching lines...) Expand all Loading... |
4634 checkCallSet(response); | 2725 checkCallSet(response); |
4635 }))); | 2726 }))); |
4636 }); | 2727 }); |
4637 | 2728 |
4638 unittest.test("method--patch", () { | 2729 unittest.test("method--patch", () { |
4639 | 2730 |
4640 var mock = new HttpServerMock(); | 2731 var mock = new HttpServerMock(); |
4641 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; | 2732 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; |
4642 var arg_request = buildCallSet(); | 2733 var arg_request = buildCallSet(); |
4643 var arg_callSetId = "foo"; | 2734 var arg_callSetId = "foo"; |
| 2735 var arg_updateMask = "foo"; |
4644 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2736 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4645 var obj = new api.CallSet.fromJson(json); | 2737 var obj = new api.CallSet.fromJson(json); |
4646 checkCallSet(obj); | 2738 checkCallSet(obj); |
4647 | 2739 |
4648 var path = (req.url).path; | 2740 var path = (req.url).path; |
4649 var pathOffset = 0; | 2741 var pathOffset = 0; |
4650 var index; | 2742 var index; |
4651 var subPart; | 2743 var subPart; |
4652 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2744 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4653 pathOffset += 1; | 2745 pathOffset += 1; |
4654 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 2746 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/callsets/")); |
4655 pathOffset += 17; | 2747 pathOffset += 12; |
4656 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("callsets/")); | |
4657 pathOffset += 9; | |
4658 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2748 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
4659 pathOffset = path.length; | 2749 pathOffset = path.length; |
4660 unittest.expect(subPart, unittest.equals("$arg_callSetId")); | 2750 unittest.expect(subPart, unittest.equals("$arg_callSetId")); |
4661 | 2751 |
4662 var query = (req.url).query; | 2752 var query = (req.url).query; |
4663 var queryOffset = 0; | 2753 var queryOffset = 0; |
4664 var queryMap = {}; | 2754 var queryMap = {}; |
4665 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2755 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4666 parseBool(n) { | 2756 parseBool(n) { |
4667 if (n == "true") return true; | 2757 if (n == "true") return true; |
4668 if (n == "false") return false; | 2758 if (n == "false") return false; |
4669 if (n == null) return null; | 2759 if (n == null) return null; |
4670 throw new core.ArgumentError("Invalid boolean: $n"); | 2760 throw new core.ArgumentError("Invalid boolean: $n"); |
4671 } | 2761 } |
4672 if (query.length > 0) { | 2762 if (query.length > 0) { |
4673 for (var part in query.split("&")) { | 2763 for (var part in query.split("&")) { |
4674 var keyvalue = part.split("="); | 2764 var keyvalue = part.split("="); |
4675 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2765 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4676 } | 2766 } |
4677 } | 2767 } |
| 2768 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); |
4678 | 2769 |
4679 | 2770 |
4680 var h = { | 2771 var h = { |
4681 "content-type" : "application/json; charset=utf-8", | 2772 "content-type" : "application/json; charset=utf-8", |
4682 }; | 2773 }; |
4683 var resp = convert.JSON.encode(buildCallSet()); | 2774 var resp = convert.JSON.encode(buildCallSet()); |
4684 return new async.Future.value(stringResponse(200, h, resp)); | 2775 return new async.Future.value(stringResponse(200, h, resp)); |
4685 }), true); | 2776 }), true); |
4686 res.patch(arg_request, arg_callSetId).then(unittest.expectAsync(((api.Call
Set response) { | 2777 res.patch(arg_request, arg_callSetId, updateMask: arg_updateMask).then(uni
ttest.expectAsync(((api.CallSet response) { |
4687 checkCallSet(response); | 2778 checkCallSet(response); |
4688 }))); | 2779 }))); |
4689 }); | 2780 }); |
4690 | 2781 |
4691 unittest.test("method--search", () { | 2782 unittest.test("method--search", () { |
4692 | 2783 |
4693 var mock = new HttpServerMock(); | 2784 var mock = new HttpServerMock(); |
4694 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; | 2785 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; |
4695 var arg_request = buildSearchCallSetsRequest(); | 2786 var arg_request = buildSearchCallSetsRequest(); |
4696 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2787 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4697 var obj = new api.SearchCallSetsRequest.fromJson(json); | 2788 var obj = new api.SearchCallSetsRequest.fromJson(json); |
4698 checkSearchCallSetsRequest(obj); | 2789 checkSearchCallSetsRequest(obj); |
4699 | 2790 |
4700 var path = (req.url).path; | 2791 var path = (req.url).path; |
4701 var pathOffset = 0; | 2792 var pathOffset = 0; |
4702 var index; | 2793 var index; |
4703 var subPart; | 2794 var subPart; |
4704 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2795 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4705 pathOffset += 1; | 2796 pathOffset += 1; |
4706 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 2797 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("v1/callsets/search")); |
4707 pathOffset += 17; | 2798 pathOffset += 18; |
4708 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("callsets/search")); | |
4709 pathOffset += 15; | |
4710 | 2799 |
4711 var query = (req.url).query; | 2800 var query = (req.url).query; |
4712 var queryOffset = 0; | 2801 var queryOffset = 0; |
4713 var queryMap = {}; | 2802 var queryMap = {}; |
4714 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2803 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4715 parseBool(n) { | 2804 parseBool(n) { |
4716 if (n == "true") return true; | 2805 if (n == "true") return true; |
4717 if (n == "false") return false; | 2806 if (n == "false") return false; |
4718 if (n == null) return null; | 2807 if (n == null) return null; |
4719 throw new core.ArgumentError("Invalid boolean: $n"); | 2808 throw new core.ArgumentError("Invalid boolean: $n"); |
(...skipping 10 matching lines...) Expand all Loading... |
4730 "content-type" : "application/json; charset=utf-8", | 2819 "content-type" : "application/json; charset=utf-8", |
4731 }; | 2820 }; |
4732 var resp = convert.JSON.encode(buildSearchCallSetsResponse()); | 2821 var resp = convert.JSON.encode(buildSearchCallSetsResponse()); |
4733 return new async.Future.value(stringResponse(200, h, resp)); | 2822 return new async.Future.value(stringResponse(200, h, resp)); |
4734 }), true); | 2823 }), true); |
4735 res.search(arg_request).then(unittest.expectAsync(((api.SearchCallSetsResp
onse response) { | 2824 res.search(arg_request).then(unittest.expectAsync(((api.SearchCallSetsResp
onse response) { |
4736 checkSearchCallSetsResponse(response); | 2825 checkSearchCallSetsResponse(response); |
4737 }))); | 2826 }))); |
4738 }); | 2827 }); |
4739 | 2828 |
4740 unittest.test("method--update", () { | |
4741 | |
4742 var mock = new HttpServerMock(); | |
4743 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; | |
4744 var arg_request = buildCallSet(); | |
4745 var arg_callSetId = "foo"; | |
4746 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
4747 var obj = new api.CallSet.fromJson(json); | |
4748 checkCallSet(obj); | |
4749 | |
4750 var path = (req.url).path; | |
4751 var pathOffset = 0; | |
4752 var index; | |
4753 var subPart; | |
4754 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
4755 pathOffset += 1; | |
4756 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | |
4757 pathOffset += 17; | |
4758 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("callsets/")); | |
4759 pathOffset += 9; | |
4760 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
4761 pathOffset = path.length; | |
4762 unittest.expect(subPart, unittest.equals("$arg_callSetId")); | |
4763 | |
4764 var query = (req.url).query; | |
4765 var queryOffset = 0; | |
4766 var queryMap = {}; | |
4767 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
4768 parseBool(n) { | |
4769 if (n == "true") return true; | |
4770 if (n == "false") return false; | |
4771 if (n == null) return null; | |
4772 throw new core.ArgumentError("Invalid boolean: $n"); | |
4773 } | |
4774 if (query.length > 0) { | |
4775 for (var part in query.split("&")) { | |
4776 var keyvalue = part.split("="); | |
4777 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
4778 } | |
4779 } | |
4780 | |
4781 | |
4782 var h = { | |
4783 "content-type" : "application/json; charset=utf-8", | |
4784 }; | |
4785 var resp = convert.JSON.encode(buildCallSet()); | |
4786 return new async.Future.value(stringResponse(200, h, resp)); | |
4787 }), true); | |
4788 res.update(arg_request, arg_callSetId).then(unittest.expectAsync(((api.Cal
lSet response) { | |
4789 checkCallSet(response); | |
4790 }))); | |
4791 }); | |
4792 | |
4793 }); | 2829 }); |
4794 | 2830 |
4795 | 2831 |
4796 unittest.group("resource-DatasetsResourceApi", () { | 2832 unittest.group("resource-DatasetsResourceApi", () { |
4797 unittest.test("method--create", () { | 2833 unittest.test("method--create", () { |
4798 | 2834 |
4799 var mock = new HttpServerMock(); | 2835 var mock = new HttpServerMock(); |
4800 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; | 2836 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; |
4801 var arg_request = buildDataset(); | 2837 var arg_request = buildDataset(); |
4802 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2838 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4803 var obj = new api.Dataset.fromJson(json); | 2839 var obj = new api.Dataset.fromJson(json); |
4804 checkDataset(obj); | 2840 checkDataset(obj); |
4805 | 2841 |
4806 var path = (req.url).path; | 2842 var path = (req.url).path; |
4807 var pathOffset = 0; | 2843 var pathOffset = 0; |
4808 var index; | 2844 var index; |
4809 var subPart; | 2845 var subPart; |
4810 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2846 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4811 pathOffset += 1; | 2847 pathOffset += 1; |
4812 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 2848 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("v1/datasets")); |
4813 pathOffset += 17; | 2849 pathOffset += 11; |
4814 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("datasets")); | |
4815 pathOffset += 8; | |
4816 | 2850 |
4817 var query = (req.url).query; | 2851 var query = (req.url).query; |
4818 var queryOffset = 0; | 2852 var queryOffset = 0; |
4819 var queryMap = {}; | 2853 var queryMap = {}; |
4820 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2854 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4821 parseBool(n) { | 2855 parseBool(n) { |
4822 if (n == "true") return true; | 2856 if (n == "true") return true; |
4823 if (n == "false") return false; | 2857 if (n == "false") return false; |
4824 if (n == null) return null; | 2858 if (n == null) return null; |
4825 throw new core.ArgumentError("Invalid boolean: $n"); | 2859 throw new core.ArgumentError("Invalid boolean: $n"); |
(...skipping 22 matching lines...) Expand all Loading... |
4848 var mock = new HttpServerMock(); | 2882 var mock = new HttpServerMock(); |
4849 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; | 2883 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; |
4850 var arg_datasetId = "foo"; | 2884 var arg_datasetId = "foo"; |
4851 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2885 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4852 var path = (req.url).path; | 2886 var path = (req.url).path; |
4853 var pathOffset = 0; | 2887 var pathOffset = 0; |
4854 var index; | 2888 var index; |
4855 var subPart; | 2889 var subPart; |
4856 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2890 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4857 pathOffset += 1; | 2891 pathOffset += 1; |
4858 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 2892 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/datasets/")); |
4859 pathOffset += 17; | 2893 pathOffset += 12; |
4860 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("datasets/")); | |
4861 pathOffset += 9; | |
4862 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2894 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
4863 pathOffset = path.length; | 2895 pathOffset = path.length; |
4864 unittest.expect(subPart, unittest.equals("$arg_datasetId")); | 2896 unittest.expect(subPart, unittest.equals("$arg_datasetId")); |
4865 | 2897 |
4866 var query = (req.url).query; | 2898 var query = (req.url).query; |
4867 var queryOffset = 0; | 2899 var queryOffset = 0; |
4868 var queryMap = {}; | 2900 var queryMap = {}; |
4869 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2901 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4870 parseBool(n) { | 2902 parseBool(n) { |
4871 if (n == "true") return true; | 2903 if (n == "true") return true; |
4872 if (n == "false") return false; | 2904 if (n == "false") return false; |
4873 if (n == null) return null; | 2905 if (n == null) return null; |
4874 throw new core.ArgumentError("Invalid boolean: $n"); | 2906 throw new core.ArgumentError("Invalid boolean: $n"); |
4875 } | 2907 } |
4876 if (query.length > 0) { | 2908 if (query.length > 0) { |
4877 for (var part in query.split("&")) { | 2909 for (var part in query.split("&")) { |
4878 var keyvalue = part.split("="); | 2910 var keyvalue = part.split("="); |
4879 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2911 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4880 } | 2912 } |
4881 } | 2913 } |
4882 | 2914 |
4883 | 2915 |
4884 var h = { | 2916 var h = { |
4885 "content-type" : "application/json; charset=utf-8", | 2917 "content-type" : "application/json; charset=utf-8", |
4886 }; | 2918 }; |
4887 var resp = ""; | 2919 var resp = convert.JSON.encode(buildEmpty()); |
4888 return new async.Future.value(stringResponse(200, h, resp)); | 2920 return new async.Future.value(stringResponse(200, h, resp)); |
4889 }), true); | 2921 }), true); |
4890 res.delete(arg_datasetId).then(unittest.expectAsync((_) {})); | 2922 res.delete(arg_datasetId).then(unittest.expectAsync(((api.Empty response)
{ |
| 2923 checkEmpty(response); |
| 2924 }))); |
4891 }); | 2925 }); |
4892 | 2926 |
4893 unittest.test("method--get", () { | 2927 unittest.test("method--get", () { |
4894 | 2928 |
4895 var mock = new HttpServerMock(); | 2929 var mock = new HttpServerMock(); |
4896 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; | 2930 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; |
4897 var arg_datasetId = "foo"; | 2931 var arg_datasetId = "foo"; |
4898 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2932 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4899 var path = (req.url).path; | 2933 var path = (req.url).path; |
4900 var pathOffset = 0; | 2934 var pathOffset = 0; |
4901 var index; | 2935 var index; |
4902 var subPart; | 2936 var subPart; |
4903 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2937 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4904 pathOffset += 1; | 2938 pathOffset += 1; |
4905 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 2939 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/datasets/")); |
4906 pathOffset += 17; | 2940 pathOffset += 12; |
4907 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("datasets/")); | |
4908 pathOffset += 9; | |
4909 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 2941 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
4910 pathOffset = path.length; | 2942 pathOffset = path.length; |
4911 unittest.expect(subPart, unittest.equals("$arg_datasetId")); | 2943 unittest.expect(subPart, unittest.equals("$arg_datasetId")); |
4912 | 2944 |
4913 var query = (req.url).query; | 2945 var query = (req.url).query; |
4914 var queryOffset = 0; | 2946 var queryOffset = 0; |
4915 var queryMap = {}; | 2947 var queryMap = {}; |
4916 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2948 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4917 parseBool(n) { | 2949 parseBool(n) { |
4918 if (n == "true") return true; | 2950 if (n == "true") return true; |
(...skipping 17 matching lines...) Expand all Loading... |
4936 }), true); | 2968 }), true); |
4937 res.get(arg_datasetId).then(unittest.expectAsync(((api.Dataset response) { | 2969 res.get(arg_datasetId).then(unittest.expectAsync(((api.Dataset response) { |
4938 checkDataset(response); | 2970 checkDataset(response); |
4939 }))); | 2971 }))); |
4940 }); | 2972 }); |
4941 | 2973 |
4942 unittest.test("method--list", () { | 2974 unittest.test("method--list", () { |
4943 | 2975 |
4944 var mock = new HttpServerMock(); | 2976 var mock = new HttpServerMock(); |
4945 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; | 2977 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; |
| 2978 var arg_projectId = "foo"; |
4946 var arg_pageSize = 42; | 2979 var arg_pageSize = 42; |
4947 var arg_pageToken = "foo"; | 2980 var arg_pageToken = "foo"; |
4948 var arg_projectNumber = "foo"; | |
4949 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2981 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
4950 var path = (req.url).path; | 2982 var path = (req.url).path; |
4951 var pathOffset = 0; | 2983 var pathOffset = 0; |
4952 var index; | 2984 var index; |
4953 var subPart; | 2985 var subPart; |
4954 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2986 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
4955 pathOffset += 1; | 2987 pathOffset += 1; |
4956 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 2988 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("v1/datasets")); |
4957 pathOffset += 17; | 2989 pathOffset += 11; |
4958 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("datasets")); | |
4959 pathOffset += 8; | |
4960 | 2990 |
4961 var query = (req.url).query; | 2991 var query = (req.url).query; |
4962 var queryOffset = 0; | 2992 var queryOffset = 0; |
4963 var queryMap = {}; | 2993 var queryMap = {}; |
4964 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2994 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4965 parseBool(n) { | 2995 parseBool(n) { |
4966 if (n == "true") return true; | 2996 if (n == "true") return true; |
4967 if (n == "false") return false; | 2997 if (n == "false") return false; |
4968 if (n == null) return null; | 2998 if (n == null) return null; |
4969 throw new core.ArgumentError("Invalid boolean: $n"); | 2999 throw new core.ArgumentError("Invalid boolean: $n"); |
4970 } | 3000 } |
4971 if (query.length > 0) { | 3001 if (query.length > 0) { |
4972 for (var part in query.split("&")) { | 3002 for (var part in query.split("&")) { |
4973 var keyvalue = part.split("="); | 3003 var keyvalue = part.split("="); |
4974 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3004 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
4975 } | 3005 } |
4976 } | 3006 } |
| 3007 unittest.expect(queryMap["projectId"].first, unittest.equals(arg_project
Id)); |
4977 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 3008 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
4978 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 3009 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
4979 unittest.expect(queryMap["projectNumber"].first, unittest.equals(arg_pro
jectNumber)); | |
4980 | 3010 |
4981 | 3011 |
4982 var h = { | 3012 var h = { |
4983 "content-type" : "application/json; charset=utf-8", | 3013 "content-type" : "application/json; charset=utf-8", |
4984 }; | 3014 }; |
4985 var resp = convert.JSON.encode(buildListDatasetsResponse()); | 3015 var resp = convert.JSON.encode(buildListDatasetsResponse()); |
4986 return new async.Future.value(stringResponse(200, h, resp)); | 3016 return new async.Future.value(stringResponse(200, h, resp)); |
4987 }), true); | 3017 }), true); |
4988 res.list(pageSize: arg_pageSize, pageToken: arg_pageToken, projectNumber:
arg_projectNumber).then(unittest.expectAsync(((api.ListDatasetsResponse response
) { | 3018 res.list(projectId: arg_projectId, pageSize: arg_pageSize, pageToken: arg_
pageToken).then(unittest.expectAsync(((api.ListDatasetsResponse response) { |
4989 checkListDatasetsResponse(response); | 3019 checkListDatasetsResponse(response); |
4990 }))); | 3020 }))); |
4991 }); | 3021 }); |
4992 | 3022 |
4993 unittest.test("method--patch", () { | 3023 unittest.test("method--patch", () { |
4994 | 3024 |
4995 var mock = new HttpServerMock(); | 3025 var mock = new HttpServerMock(); |
4996 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; | 3026 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; |
4997 var arg_request = buildDataset(); | 3027 var arg_request = buildDataset(); |
4998 var arg_datasetId = "foo"; | 3028 var arg_datasetId = "foo"; |
| 3029 var arg_updateMask = "foo"; |
4999 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3030 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5000 var obj = new api.Dataset.fromJson(json); | 3031 var obj = new api.Dataset.fromJson(json); |
5001 checkDataset(obj); | 3032 checkDataset(obj); |
5002 | 3033 |
5003 var path = (req.url).path; | 3034 var path = (req.url).path; |
5004 var pathOffset = 0; | 3035 var pathOffset = 0; |
5005 var index; | 3036 var index; |
5006 var subPart; | 3037 var subPart; |
5007 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3038 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5008 pathOffset += 1; | 3039 pathOffset += 1; |
5009 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 3040 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/datasets/")); |
5010 pathOffset += 17; | 3041 pathOffset += 12; |
5011 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("datasets/")); | |
5012 pathOffset += 9; | |
5013 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 3042 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
5014 pathOffset = path.length; | 3043 pathOffset = path.length; |
5015 unittest.expect(subPart, unittest.equals("$arg_datasetId")); | 3044 unittest.expect(subPart, unittest.equals("$arg_datasetId")); |
5016 | 3045 |
5017 var query = (req.url).query; | 3046 var query = (req.url).query; |
5018 var queryOffset = 0; | 3047 var queryOffset = 0; |
5019 var queryMap = {}; | 3048 var queryMap = {}; |
5020 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3049 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5021 parseBool(n) { | 3050 parseBool(n) { |
5022 if (n == "true") return true; | 3051 if (n == "true") return true; |
5023 if (n == "false") return false; | 3052 if (n == "false") return false; |
5024 if (n == null) return null; | 3053 if (n == null) return null; |
5025 throw new core.ArgumentError("Invalid boolean: $n"); | 3054 throw new core.ArgumentError("Invalid boolean: $n"); |
5026 } | 3055 } |
5027 if (query.length > 0) { | 3056 if (query.length > 0) { |
5028 for (var part in query.split("&")) { | 3057 for (var part in query.split("&")) { |
5029 var keyvalue = part.split("="); | 3058 var keyvalue = part.split("="); |
5030 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3059 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5031 } | 3060 } |
5032 } | 3061 } |
| 3062 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); |
5033 | 3063 |
5034 | 3064 |
5035 var h = { | 3065 var h = { |
5036 "content-type" : "application/json; charset=utf-8", | 3066 "content-type" : "application/json; charset=utf-8", |
5037 }; | 3067 }; |
5038 var resp = convert.JSON.encode(buildDataset()); | 3068 var resp = convert.JSON.encode(buildDataset()); |
5039 return new async.Future.value(stringResponse(200, h, resp)); | 3069 return new async.Future.value(stringResponse(200, h, resp)); |
5040 }), true); | 3070 }), true); |
5041 res.patch(arg_request, arg_datasetId).then(unittest.expectAsync(((api.Data
set response) { | 3071 res.patch(arg_request, arg_datasetId, updateMask: arg_updateMask).then(uni
ttest.expectAsync(((api.Dataset response) { |
5042 checkDataset(response); | 3072 checkDataset(response); |
5043 }))); | 3073 }))); |
5044 }); | 3074 }); |
5045 | 3075 |
5046 unittest.test("method--undelete", () { | 3076 unittest.test("method--undelete", () { |
5047 | 3077 |
5048 var mock = new HttpServerMock(); | 3078 var mock = new HttpServerMock(); |
5049 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; | 3079 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; |
| 3080 var arg_request = buildUndeleteDatasetRequest(); |
5050 var arg_datasetId = "foo"; | 3081 var arg_datasetId = "foo"; |
5051 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3082 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5052 var path = (req.url).path; | 3083 var obj = new api.UndeleteDatasetRequest.fromJson(json); |
5053 var pathOffset = 0; | 3084 checkUndeleteDatasetRequest(obj); |
5054 var index; | |
5055 var subPart; | |
5056 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
5057 pathOffset += 1; | |
5058 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | |
5059 pathOffset += 17; | |
5060 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("datasets/")); | |
5061 pathOffset += 9; | |
5062 index = path.indexOf("/undelete", pathOffset); | |
5063 unittest.expect(index >= 0, unittest.isTrue); | |
5064 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
5065 pathOffset = index; | |
5066 unittest.expect(subPart, unittest.equals("$arg_datasetId")); | |
5067 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("/undelete")); | |
5068 pathOffset += 9; | |
5069 | |
5070 var query = (req.url).query; | |
5071 var queryOffset = 0; | |
5072 var queryMap = {}; | |
5073 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
5074 parseBool(n) { | |
5075 if (n == "true") return true; | |
5076 if (n == "false") return false; | |
5077 if (n == null) return null; | |
5078 throw new core.ArgumentError("Invalid boolean: $n"); | |
5079 } | |
5080 if (query.length > 0) { | |
5081 for (var part in query.split("&")) { | |
5082 var keyvalue = part.split("="); | |
5083 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
5084 } | |
5085 } | |
5086 | |
5087 | |
5088 var h = { | |
5089 "content-type" : "application/json; charset=utf-8", | |
5090 }; | |
5091 var resp = convert.JSON.encode(buildDataset()); | |
5092 return new async.Future.value(stringResponse(200, h, resp)); | |
5093 }), true); | |
5094 res.undelete(arg_datasetId).then(unittest.expectAsync(((api.Dataset respon
se) { | |
5095 checkDataset(response); | |
5096 }))); | |
5097 }); | |
5098 | |
5099 unittest.test("method--update", () { | |
5100 | |
5101 var mock = new HttpServerMock(); | |
5102 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; | |
5103 var arg_request = buildDataset(); | |
5104 var arg_datasetId = "foo"; | |
5105 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
5106 var obj = new api.Dataset.fromJson(json); | |
5107 checkDataset(obj); | |
5108 | 3085 |
5109 var path = (req.url).path; | 3086 var path = (req.url).path; |
5110 var pathOffset = 0; | 3087 var pathOffset = 0; |
5111 var index; | 3088 var index; |
5112 var subPart; | 3089 var subPart; |
5113 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3090 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5114 pathOffset += 1; | 3091 pathOffset += 1; |
5115 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 3092 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/datasets/")); |
5116 pathOffset += 17; | 3093 pathOffset += 12; |
5117 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("datasets/")); | 3094 index = path.indexOf(":undelete", pathOffset); |
| 3095 unittest.expect(index >= 0, unittest.isTrue); |
| 3096 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3097 pathOffset = index; |
| 3098 unittest.expect(subPart, unittest.equals("$arg_datasetId")); |
| 3099 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als(":undelete")); |
5118 pathOffset += 9; | 3100 pathOffset += 9; |
5119 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
5120 pathOffset = path.length; | |
5121 unittest.expect(subPart, unittest.equals("$arg_datasetId")); | |
5122 | 3101 |
5123 var query = (req.url).query; | 3102 var query = (req.url).query; |
5124 var queryOffset = 0; | 3103 var queryOffset = 0; |
5125 var queryMap = {}; | 3104 var queryMap = {}; |
5126 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3105 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5127 parseBool(n) { | 3106 parseBool(n) { |
5128 if (n == "true") return true; | 3107 if (n == "true") return true; |
5129 if (n == "false") return false; | 3108 if (n == "false") return false; |
5130 if (n == null) return null; | 3109 if (n == null) return null; |
5131 throw new core.ArgumentError("Invalid boolean: $n"); | 3110 throw new core.ArgumentError("Invalid boolean: $n"); |
5132 } | 3111 } |
5133 if (query.length > 0) { | 3112 if (query.length > 0) { |
5134 for (var part in query.split("&")) { | 3113 for (var part in query.split("&")) { |
5135 var keyvalue = part.split("="); | 3114 var keyvalue = part.split("="); |
5136 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3115 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5137 } | 3116 } |
5138 } | 3117 } |
5139 | 3118 |
5140 | 3119 |
5141 var h = { | 3120 var h = { |
5142 "content-type" : "application/json; charset=utf-8", | 3121 "content-type" : "application/json; charset=utf-8", |
5143 }; | 3122 }; |
5144 var resp = convert.JSON.encode(buildDataset()); | 3123 var resp = convert.JSON.encode(buildDataset()); |
5145 return new async.Future.value(stringResponse(200, h, resp)); | 3124 return new async.Future.value(stringResponse(200, h, resp)); |
5146 }), true); | 3125 }), true); |
5147 res.update(arg_request, arg_datasetId).then(unittest.expectAsync(((api.Dat
aset response) { | 3126 res.undelete(arg_request, arg_datasetId).then(unittest.expectAsync(((api.D
ataset response) { |
5148 checkDataset(response); | 3127 checkDataset(response); |
5149 }))); | 3128 }))); |
5150 }); | 3129 }); |
5151 | 3130 |
5152 }); | 3131 }); |
5153 | 3132 |
5154 | 3133 |
5155 unittest.group("resource-ExperimentalJobsResourceApi", () { | 3134 unittest.group("resource-OperationsResourceApi", () { |
5156 unittest.test("method--create", () { | 3135 unittest.test("method--cancel", () { |
5157 | 3136 |
5158 var mock = new HttpServerMock(); | 3137 var mock = new HttpServerMock(); |
5159 api.ExperimentalJobsResourceApi res = new api.GenomicsApi(mock).experiment
al.jobs; | 3138 api.OperationsResourceApi res = new api.GenomicsApi(mock).operations; |
5160 var arg_request = buildExperimentalCreateJobRequest(); | 3139 var arg_request = buildCancelOperationRequest(); |
| 3140 var arg_name = "foo"; |
5161 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3141 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5162 var obj = new api.ExperimentalCreateJobRequest.fromJson(json); | 3142 var obj = new api.CancelOperationRequest.fromJson(json); |
5163 checkExperimentalCreateJobRequest(obj); | 3143 checkCancelOperationRequest(obj); |
5164 | 3144 |
5165 var path = (req.url).path; | 3145 var path = (req.url).path; |
5166 var pathOffset = 0; | 3146 var pathOffset = 0; |
5167 var index; | 3147 var index; |
5168 var subPart; | 3148 var subPart; |
5169 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3149 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5170 pathOffset += 1; | 3150 pathOffset += 1; |
5171 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 3151 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
5172 pathOffset += 17; | 3152 pathOffset += 3; |
5173 unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.eq
uals("experimental/jobs/create")); | 3153 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
5174 pathOffset += 24; | |
5175 | 3154 |
5176 var query = (req.url).query; | 3155 var query = (req.url).query; |
5177 var queryOffset = 0; | 3156 var queryOffset = 0; |
5178 var queryMap = {}; | 3157 var queryMap = {}; |
5179 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3158 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5180 parseBool(n) { | 3159 parseBool(n) { |
5181 if (n == "true") return true; | 3160 if (n == "true") return true; |
5182 if (n == "false") return false; | 3161 if (n == "false") return false; |
5183 if (n == null) return null; | 3162 if (n == null) return null; |
5184 throw new core.ArgumentError("Invalid boolean: $n"); | 3163 throw new core.ArgumentError("Invalid boolean: $n"); |
5185 } | 3164 } |
5186 if (query.length > 0) { | 3165 if (query.length > 0) { |
5187 for (var part in query.split("&")) { | 3166 for (var part in query.split("&")) { |
5188 var keyvalue = part.split("="); | 3167 var keyvalue = part.split("="); |
5189 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3168 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5190 } | 3169 } |
5191 } | 3170 } |
5192 | 3171 |
5193 | 3172 |
5194 var h = { | 3173 var h = { |
5195 "content-type" : "application/json; charset=utf-8", | 3174 "content-type" : "application/json; charset=utf-8", |
5196 }; | 3175 }; |
5197 var resp = convert.JSON.encode(buildExperimentalCreateJobResponse()); | 3176 var resp = convert.JSON.encode(buildEmpty()); |
5198 return new async.Future.value(stringResponse(200, h, resp)); | 3177 return new async.Future.value(stringResponse(200, h, resp)); |
5199 }), true); | 3178 }), true); |
5200 res.create(arg_request).then(unittest.expectAsync(((api.ExperimentalCreate
JobResponse response) { | 3179 res.cancel(arg_request, arg_name).then(unittest.expectAsync(((api.Empty re
sponse) { |
5201 checkExperimentalCreateJobResponse(response); | 3180 checkEmpty(response); |
5202 }))); | 3181 }))); |
5203 }); | 3182 }); |
5204 | 3183 |
5205 }); | 3184 unittest.test("method--delete", () { |
5206 | |
5207 | |
5208 unittest.group("resource-JobsResourceApi", () { | |
5209 unittest.test("method--cancel", () { | |
5210 | 3185 |
5211 var mock = new HttpServerMock(); | 3186 var mock = new HttpServerMock(); |
5212 api.JobsResourceApi res = new api.GenomicsApi(mock).jobs; | 3187 api.OperationsResourceApi res = new api.GenomicsApi(mock).operations; |
5213 var arg_jobId = "foo"; | 3188 var arg_name = "foo"; |
5214 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3189 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5215 var path = (req.url).path; | 3190 var path = (req.url).path; |
5216 var pathOffset = 0; | 3191 var pathOffset = 0; |
5217 var index; | 3192 var index; |
5218 var subPart; | 3193 var subPart; |
5219 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3194 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5220 pathOffset += 1; | 3195 pathOffset += 1; |
5221 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 3196 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
5222 pathOffset += 17; | 3197 pathOffset += 3; |
5223 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("jobs/")); | 3198 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
5224 pathOffset += 5; | |
5225 index = path.indexOf("/cancel", pathOffset); | |
5226 unittest.expect(index >= 0, unittest.isTrue); | |
5227 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
5228 pathOffset = index; | |
5229 unittest.expect(subPart, unittest.equals("$arg_jobId")); | |
5230 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/cancel")); | |
5231 pathOffset += 7; | |
5232 | 3199 |
5233 var query = (req.url).query; | 3200 var query = (req.url).query; |
5234 var queryOffset = 0; | 3201 var queryOffset = 0; |
5235 var queryMap = {}; | 3202 var queryMap = {}; |
5236 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3203 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5237 parseBool(n) { | 3204 parseBool(n) { |
5238 if (n == "true") return true; | 3205 if (n == "true") return true; |
5239 if (n == "false") return false; | 3206 if (n == "false") return false; |
5240 if (n == null) return null; | 3207 if (n == null) return null; |
5241 throw new core.ArgumentError("Invalid boolean: $n"); | 3208 throw new core.ArgumentError("Invalid boolean: $n"); |
5242 } | 3209 } |
5243 if (query.length > 0) { | 3210 if (query.length > 0) { |
5244 for (var part in query.split("&")) { | 3211 for (var part in query.split("&")) { |
5245 var keyvalue = part.split("="); | 3212 var keyvalue = part.split("="); |
5246 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3213 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5247 } | 3214 } |
5248 } | 3215 } |
5249 | 3216 |
5250 | 3217 |
5251 var h = { | 3218 var h = { |
5252 "content-type" : "application/json; charset=utf-8", | 3219 "content-type" : "application/json; charset=utf-8", |
5253 }; | 3220 }; |
5254 var resp = ""; | 3221 var resp = convert.JSON.encode(buildEmpty()); |
5255 return new async.Future.value(stringResponse(200, h, resp)); | 3222 return new async.Future.value(stringResponse(200, h, resp)); |
5256 }), true); | 3223 }), true); |
5257 res.cancel(arg_jobId).then(unittest.expectAsync((_) {})); | 3224 res.delete(arg_name).then(unittest.expectAsync(((api.Empty response) { |
| 3225 checkEmpty(response); |
| 3226 }))); |
5258 }); | 3227 }); |
5259 | 3228 |
5260 unittest.test("method--get", () { | 3229 unittest.test("method--get", () { |
5261 | 3230 |
5262 var mock = new HttpServerMock(); | 3231 var mock = new HttpServerMock(); |
5263 api.JobsResourceApi res = new api.GenomicsApi(mock).jobs; | 3232 api.OperationsResourceApi res = new api.GenomicsApi(mock).operations; |
5264 var arg_jobId = "foo"; | 3233 var arg_name = "foo"; |
5265 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3234 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5266 var path = (req.url).path; | 3235 var path = (req.url).path; |
5267 var pathOffset = 0; | 3236 var pathOffset = 0; |
5268 var index; | 3237 var index; |
5269 var subPart; | 3238 var subPart; |
5270 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3239 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5271 pathOffset += 1; | 3240 pathOffset += 1; |
5272 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 3241 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
5273 pathOffset += 17; | 3242 pathOffset += 3; |
5274 unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equ
als("jobs/")); | 3243 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
5275 pathOffset += 5; | |
5276 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
5277 pathOffset = path.length; | |
5278 unittest.expect(subPart, unittest.equals("$arg_jobId")); | |
5279 | 3244 |
5280 var query = (req.url).query; | 3245 var query = (req.url).query; |
5281 var queryOffset = 0; | 3246 var queryOffset = 0; |
5282 var queryMap = {}; | 3247 var queryMap = {}; |
5283 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3248 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5284 parseBool(n) { | 3249 parseBool(n) { |
5285 if (n == "true") return true; | 3250 if (n == "true") return true; |
5286 if (n == "false") return false; | 3251 if (n == "false") return false; |
5287 if (n == null) return null; | 3252 if (n == null) return null; |
5288 throw new core.ArgumentError("Invalid boolean: $n"); | 3253 throw new core.ArgumentError("Invalid boolean: $n"); |
5289 } | 3254 } |
5290 if (query.length > 0) { | 3255 if (query.length > 0) { |
5291 for (var part in query.split("&")) { | 3256 for (var part in query.split("&")) { |
5292 var keyvalue = part.split("="); | 3257 var keyvalue = part.split("="); |
5293 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3258 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5294 } | 3259 } |
5295 } | 3260 } |
5296 | 3261 |
5297 | 3262 |
5298 var h = { | 3263 var h = { |
5299 "content-type" : "application/json; charset=utf-8", | 3264 "content-type" : "application/json; charset=utf-8", |
5300 }; | 3265 }; |
5301 var resp = convert.JSON.encode(buildJob()); | 3266 var resp = convert.JSON.encode(buildOperation()); |
5302 return new async.Future.value(stringResponse(200, h, resp)); | 3267 return new async.Future.value(stringResponse(200, h, resp)); |
5303 }), true); | 3268 }), true); |
5304 res.get(arg_jobId).then(unittest.expectAsync(((api.Job response) { | 3269 res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { |
5305 checkJob(response); | 3270 checkOperation(response); |
5306 }))); | 3271 }))); |
5307 }); | 3272 }); |
5308 | 3273 |
5309 unittest.test("method--search", () { | 3274 unittest.test("method--list", () { |
5310 | 3275 |
5311 var mock = new HttpServerMock(); | 3276 var mock = new HttpServerMock(); |
5312 api.JobsResourceApi res = new api.GenomicsApi(mock).jobs; | 3277 api.OperationsResourceApi res = new api.GenomicsApi(mock).operations; |
5313 var arg_request = buildSearchJobsRequest(); | 3278 var arg_name = "foo"; |
| 3279 var arg_filter = "foo"; |
| 3280 var arg_pageSize = 42; |
| 3281 var arg_pageToken = "foo"; |
5314 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3282 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5315 var obj = new api.SearchJobsRequest.fromJson(json); | |
5316 checkSearchJobsRequest(obj); | |
5317 | |
5318 var path = (req.url).path; | 3283 var path = (req.url).path; |
5319 var pathOffset = 0; | 3284 var pathOffset = 0; |
5320 var index; | 3285 var index; |
5321 var subPart; | 3286 var subPart; |
5322 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3287 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5323 pathOffset += 1; | 3288 pathOffset += 1; |
5324 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 3289 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
5325 pathOffset += 17; | 3290 pathOffset += 3; |
5326 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("jobs/search")); | 3291 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
5327 pathOffset += 11; | |
5328 | 3292 |
5329 var query = (req.url).query; | 3293 var query = (req.url).query; |
5330 var queryOffset = 0; | 3294 var queryOffset = 0; |
5331 var queryMap = {}; | 3295 var queryMap = {}; |
5332 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3296 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5333 parseBool(n) { | 3297 parseBool(n) { |
5334 if (n == "true") return true; | 3298 if (n == "true") return true; |
5335 if (n == "false") return false; | 3299 if (n == "false") return false; |
5336 if (n == null) return null; | 3300 if (n == null) return null; |
5337 throw new core.ArgumentError("Invalid boolean: $n"); | 3301 throw new core.ArgumentError("Invalid boolean: $n"); |
5338 } | 3302 } |
5339 if (query.length > 0) { | 3303 if (query.length > 0) { |
5340 for (var part in query.split("&")) { | 3304 for (var part in query.split("&")) { |
5341 var keyvalue = part.split("="); | 3305 var keyvalue = part.split("="); |
5342 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3306 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5343 } | 3307 } |
5344 } | 3308 } |
| 3309 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
| 3310 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
| 3311 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
5345 | 3312 |
5346 | 3313 |
5347 var h = { | 3314 var h = { |
5348 "content-type" : "application/json; charset=utf-8", | 3315 "content-type" : "application/json; charset=utf-8", |
5349 }; | 3316 }; |
5350 var resp = convert.JSON.encode(buildSearchJobsResponse()); | 3317 var resp = convert.JSON.encode(buildListOperationsResponse()); |
5351 return new async.Future.value(stringResponse(200, h, resp)); | 3318 return new async.Future.value(stringResponse(200, h, resp)); |
5352 }), true); | 3319 }), true); |
5353 res.search(arg_request).then(unittest.expectAsync(((api.SearchJobsResponse
response) { | 3320 res.list(arg_name, filter: arg_filter, pageSize: arg_pageSize, pageToken:
arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response)
{ |
5354 checkSearchJobsResponse(response); | 3321 checkListOperationsResponse(response); |
5355 }))); | 3322 }))); |
5356 }); | 3323 }); |
5357 | 3324 |
5358 }); | 3325 }); |
5359 | 3326 |
5360 | 3327 |
5361 unittest.group("resource-ReadgroupsetsResourceApi", () { | 3328 unittest.group("resource-ReadgroupsetsResourceApi", () { |
5362 unittest.test("method--align", () { | |
5363 | |
5364 var mock = new HttpServerMock(); | |
5365 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; | |
5366 var arg_request = buildAlignReadGroupSetsRequest(); | |
5367 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
5368 var obj = new api.AlignReadGroupSetsRequest.fromJson(json); | |
5369 checkAlignReadGroupSetsRequest(obj); | |
5370 | |
5371 var path = (req.url).path; | |
5372 var pathOffset = 0; | |
5373 var index; | |
5374 var subPart; | |
5375 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
5376 pathOffset += 1; | |
5377 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | |
5378 pathOffset += 17; | |
5379 unittest.expect(path.substring(pathOffset, pathOffset + 19), unittest.eq
uals("readgroupsets/align")); | |
5380 pathOffset += 19; | |
5381 | |
5382 var query = (req.url).query; | |
5383 var queryOffset = 0; | |
5384 var queryMap = {}; | |
5385 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
5386 parseBool(n) { | |
5387 if (n == "true") return true; | |
5388 if (n == "false") return false; | |
5389 if (n == null) return null; | |
5390 throw new core.ArgumentError("Invalid boolean: $n"); | |
5391 } | |
5392 if (query.length > 0) { | |
5393 for (var part in query.split("&")) { | |
5394 var keyvalue = part.split("="); | |
5395 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
5396 } | |
5397 } | |
5398 | |
5399 | |
5400 var h = { | |
5401 "content-type" : "application/json; charset=utf-8", | |
5402 }; | |
5403 var resp = convert.JSON.encode(buildAlignReadGroupSetsResponse()); | |
5404 return new async.Future.value(stringResponse(200, h, resp)); | |
5405 }), true); | |
5406 res.align(arg_request).then(unittest.expectAsync(((api.AlignReadGroupSetsR
esponse response) { | |
5407 checkAlignReadGroupSetsResponse(response); | |
5408 }))); | |
5409 }); | |
5410 | |
5411 unittest.test("method--call", () { | |
5412 | |
5413 var mock = new HttpServerMock(); | |
5414 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; | |
5415 var arg_request = buildCallReadGroupSetsRequest(); | |
5416 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
5417 var obj = new api.CallReadGroupSetsRequest.fromJson(json); | |
5418 checkCallReadGroupSetsRequest(obj); | |
5419 | |
5420 var path = (req.url).path; | |
5421 var pathOffset = 0; | |
5422 var index; | |
5423 var subPart; | |
5424 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
5425 pathOffset += 1; | |
5426 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | |
5427 pathOffset += 17; | |
5428 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("readgroupsets/call")); | |
5429 pathOffset += 18; | |
5430 | |
5431 var query = (req.url).query; | |
5432 var queryOffset = 0; | |
5433 var queryMap = {}; | |
5434 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
5435 parseBool(n) { | |
5436 if (n == "true") return true; | |
5437 if (n == "false") return false; | |
5438 if (n == null) return null; | |
5439 throw new core.ArgumentError("Invalid boolean: $n"); | |
5440 } | |
5441 if (query.length > 0) { | |
5442 for (var part in query.split("&")) { | |
5443 var keyvalue = part.split("="); | |
5444 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
5445 } | |
5446 } | |
5447 | |
5448 | |
5449 var h = { | |
5450 "content-type" : "application/json; charset=utf-8", | |
5451 }; | |
5452 var resp = convert.JSON.encode(buildCallReadGroupSetsResponse()); | |
5453 return new async.Future.value(stringResponse(200, h, resp)); | |
5454 }), true); | |
5455 res.call(arg_request).then(unittest.expectAsync(((api.CallReadGroupSetsRes
ponse response) { | |
5456 checkCallReadGroupSetsResponse(response); | |
5457 }))); | |
5458 }); | |
5459 | |
5460 unittest.test("method--delete", () { | 3329 unittest.test("method--delete", () { |
5461 | 3330 |
5462 var mock = new HttpServerMock(); | 3331 var mock = new HttpServerMock(); |
5463 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; | 3332 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; |
5464 var arg_readGroupSetId = "foo"; | 3333 var arg_readGroupSetId = "foo"; |
5465 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3334 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5466 var path = (req.url).path; | 3335 var path = (req.url).path; |
5467 var pathOffset = 0; | 3336 var pathOffset = 0; |
5468 var index; | 3337 var index; |
5469 var subPart; | 3338 var subPart; |
5470 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3339 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5471 pathOffset += 1; | 3340 pathOffset += 1; |
5472 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 3341 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/readgroupsets/")); |
5473 pathOffset += 17; | 3342 pathOffset += 17; |
5474 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("readgroupsets/")); | |
5475 pathOffset += 14; | |
5476 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 3343 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
5477 pathOffset = path.length; | 3344 pathOffset = path.length; |
5478 unittest.expect(subPart, unittest.equals("$arg_readGroupSetId")); | 3345 unittest.expect(subPart, unittest.equals("$arg_readGroupSetId")); |
5479 | 3346 |
5480 var query = (req.url).query; | 3347 var query = (req.url).query; |
5481 var queryOffset = 0; | 3348 var queryOffset = 0; |
5482 var queryMap = {}; | 3349 var queryMap = {}; |
5483 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3350 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5484 parseBool(n) { | 3351 parseBool(n) { |
5485 if (n == "true") return true; | 3352 if (n == "true") return true; |
5486 if (n == "false") return false; | 3353 if (n == "false") return false; |
5487 if (n == null) return null; | 3354 if (n == null) return null; |
5488 throw new core.ArgumentError("Invalid boolean: $n"); | 3355 throw new core.ArgumentError("Invalid boolean: $n"); |
5489 } | 3356 } |
5490 if (query.length > 0) { | 3357 if (query.length > 0) { |
5491 for (var part in query.split("&")) { | 3358 for (var part in query.split("&")) { |
5492 var keyvalue = part.split("="); | 3359 var keyvalue = part.split("="); |
5493 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3360 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5494 } | 3361 } |
5495 } | 3362 } |
5496 | 3363 |
5497 | 3364 |
5498 var h = { | 3365 var h = { |
5499 "content-type" : "application/json; charset=utf-8", | 3366 "content-type" : "application/json; charset=utf-8", |
5500 }; | 3367 }; |
5501 var resp = ""; | 3368 var resp = convert.JSON.encode(buildEmpty()); |
5502 return new async.Future.value(stringResponse(200, h, resp)); | 3369 return new async.Future.value(stringResponse(200, h, resp)); |
5503 }), true); | 3370 }), true); |
5504 res.delete(arg_readGroupSetId).then(unittest.expectAsync((_) {})); | 3371 res.delete(arg_readGroupSetId).then(unittest.expectAsync(((api.Empty respo
nse) { |
| 3372 checkEmpty(response); |
| 3373 }))); |
5505 }); | 3374 }); |
5506 | 3375 |
5507 unittest.test("method--export", () { | 3376 unittest.test("method--export", () { |
5508 | 3377 |
5509 var mock = new HttpServerMock(); | 3378 var mock = new HttpServerMock(); |
5510 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; | 3379 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; |
5511 var arg_request = buildExportReadGroupSetsRequest(); | 3380 var arg_request = buildExportReadGroupSetRequest(); |
| 3381 var arg_readGroupSetId = "foo"; |
5512 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3382 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5513 var obj = new api.ExportReadGroupSetsRequest.fromJson(json); | 3383 var obj = new api.ExportReadGroupSetRequest.fromJson(json); |
5514 checkExportReadGroupSetsRequest(obj); | 3384 checkExportReadGroupSetRequest(obj); |
5515 | 3385 |
5516 var path = (req.url).path; | 3386 var path = (req.url).path; |
5517 var pathOffset = 0; | 3387 var pathOffset = 0; |
5518 var index; | 3388 var index; |
5519 var subPart; | 3389 var subPart; |
5520 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3390 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5521 pathOffset += 1; | 3391 pathOffset += 1; |
5522 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 3392 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/readgroupsets/")); |
5523 pathOffset += 17; | 3393 pathOffset += 17; |
5524 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("readgroupsets/export")); | 3394 index = path.indexOf(":export", pathOffset); |
5525 pathOffset += 20; | 3395 unittest.expect(index >= 0, unittest.isTrue); |
| 3396 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
| 3397 pathOffset = index; |
| 3398 unittest.expect(subPart, unittest.equals("$arg_readGroupSetId")); |
| 3399 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als(":export")); |
| 3400 pathOffset += 7; |
5526 | 3401 |
5527 var query = (req.url).query; | 3402 var query = (req.url).query; |
5528 var queryOffset = 0; | 3403 var queryOffset = 0; |
5529 var queryMap = {}; | 3404 var queryMap = {}; |
5530 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3405 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5531 parseBool(n) { | 3406 parseBool(n) { |
5532 if (n == "true") return true; | 3407 if (n == "true") return true; |
5533 if (n == "false") return false; | 3408 if (n == "false") return false; |
5534 if (n == null) return null; | 3409 if (n == null) return null; |
5535 throw new core.ArgumentError("Invalid boolean: $n"); | 3410 throw new core.ArgumentError("Invalid boolean: $n"); |
5536 } | 3411 } |
5537 if (query.length > 0) { | 3412 if (query.length > 0) { |
5538 for (var part in query.split("&")) { | 3413 for (var part in query.split("&")) { |
5539 var keyvalue = part.split("="); | 3414 var keyvalue = part.split("="); |
5540 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3415 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5541 } | 3416 } |
5542 } | 3417 } |
5543 | 3418 |
5544 | 3419 |
5545 var h = { | 3420 var h = { |
5546 "content-type" : "application/json; charset=utf-8", | 3421 "content-type" : "application/json; charset=utf-8", |
5547 }; | 3422 }; |
5548 var resp = convert.JSON.encode(buildExportReadGroupSetsResponse()); | 3423 var resp = convert.JSON.encode(buildOperation()); |
5549 return new async.Future.value(stringResponse(200, h, resp)); | 3424 return new async.Future.value(stringResponse(200, h, resp)); |
5550 }), true); | 3425 }), true); |
5551 res.export(arg_request).then(unittest.expectAsync(((api.ExportReadGroupSet
sResponse response) { | 3426 res.export(arg_request, arg_readGroupSetId).then(unittest.expectAsync(((ap
i.Operation response) { |
5552 checkExportReadGroupSetsResponse(response); | 3427 checkOperation(response); |
5553 }))); | 3428 }))); |
5554 }); | 3429 }); |
5555 | 3430 |
5556 unittest.test("method--get", () { | 3431 unittest.test("method--get", () { |
5557 | 3432 |
5558 var mock = new HttpServerMock(); | 3433 var mock = new HttpServerMock(); |
5559 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; | 3434 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; |
5560 var arg_readGroupSetId = "foo"; | 3435 var arg_readGroupSetId = "foo"; |
5561 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3436 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5562 var path = (req.url).path; | 3437 var path = (req.url).path; |
5563 var pathOffset = 0; | 3438 var pathOffset = 0; |
5564 var index; | 3439 var index; |
5565 var subPart; | 3440 var subPart; |
5566 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3441 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5567 pathOffset += 1; | 3442 pathOffset += 1; |
5568 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 3443 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/readgroupsets/")); |
5569 pathOffset += 17; | 3444 pathOffset += 17; |
5570 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("readgroupsets/")); | |
5571 pathOffset += 14; | |
5572 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 3445 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
5573 pathOffset = path.length; | 3446 pathOffset = path.length; |
5574 unittest.expect(subPart, unittest.equals("$arg_readGroupSetId")); | 3447 unittest.expect(subPart, unittest.equals("$arg_readGroupSetId")); |
5575 | 3448 |
5576 var query = (req.url).query; | 3449 var query = (req.url).query; |
5577 var queryOffset = 0; | 3450 var queryOffset = 0; |
5578 var queryMap = {}; | 3451 var queryMap = {}; |
5579 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3452 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5580 parseBool(n) { | 3453 parseBool(n) { |
5581 if (n == "true") return true; | 3454 if (n == "true") return true; |
(...skipping 28 matching lines...) Expand all Loading... |
5610 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3483 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5611 var obj = new api.ImportReadGroupSetsRequest.fromJson(json); | 3484 var obj = new api.ImportReadGroupSetsRequest.fromJson(json); |
5612 checkImportReadGroupSetsRequest(obj); | 3485 checkImportReadGroupSetsRequest(obj); |
5613 | 3486 |
5614 var path = (req.url).path; | 3487 var path = (req.url).path; |
5615 var pathOffset = 0; | 3488 var pathOffset = 0; |
5616 var index; | 3489 var index; |
5617 var subPart; | 3490 var subPart; |
5618 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3491 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5619 pathOffset += 1; | 3492 pathOffset += 1; |
5620 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 3493 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("v1/readgroupsets:import")); |
5621 pathOffset += 17; | 3494 pathOffset += 23; |
5622 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("readgroupsets/import")); | |
5623 pathOffset += 20; | |
5624 | 3495 |
5625 var query = (req.url).query; | 3496 var query = (req.url).query; |
5626 var queryOffset = 0; | 3497 var queryOffset = 0; |
5627 var queryMap = {}; | 3498 var queryMap = {}; |
5628 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3499 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5629 parseBool(n) { | 3500 parseBool(n) { |
5630 if (n == "true") return true; | 3501 if (n == "true") return true; |
5631 if (n == "false") return false; | 3502 if (n == "false") return false; |
5632 if (n == null) return null; | 3503 if (n == null) return null; |
5633 throw new core.ArgumentError("Invalid boolean: $n"); | 3504 throw new core.ArgumentError("Invalid boolean: $n"); |
5634 } | 3505 } |
5635 if (query.length > 0) { | 3506 if (query.length > 0) { |
5636 for (var part in query.split("&")) { | 3507 for (var part in query.split("&")) { |
5637 var keyvalue = part.split("="); | 3508 var keyvalue = part.split("="); |
5638 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3509 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5639 } | 3510 } |
5640 } | 3511 } |
5641 | 3512 |
5642 | 3513 |
5643 var h = { | 3514 var h = { |
5644 "content-type" : "application/json; charset=utf-8", | 3515 "content-type" : "application/json; charset=utf-8", |
5645 }; | 3516 }; |
5646 var resp = convert.JSON.encode(buildImportReadGroupSetsResponse()); | 3517 var resp = convert.JSON.encode(buildOperation()); |
5647 return new async.Future.value(stringResponse(200, h, resp)); | 3518 return new async.Future.value(stringResponse(200, h, resp)); |
5648 }), true); | 3519 }), true); |
5649 res.import(arg_request).then(unittest.expectAsync(((api.ImportReadGroupSet
sResponse response) { | 3520 res.import(arg_request).then(unittest.expectAsync(((api.Operation response
) { |
5650 checkImportReadGroupSetsResponse(response); | 3521 checkOperation(response); |
5651 }))); | 3522 }))); |
5652 }); | 3523 }); |
5653 | 3524 |
5654 unittest.test("method--patch", () { | 3525 unittest.test("method--patch", () { |
5655 | 3526 |
5656 var mock = new HttpServerMock(); | 3527 var mock = new HttpServerMock(); |
5657 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; | 3528 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; |
5658 var arg_request = buildReadGroupSet(); | 3529 var arg_request = buildReadGroupSet(); |
5659 var arg_readGroupSetId = "foo"; | 3530 var arg_readGroupSetId = "foo"; |
| 3531 var arg_updateMask = "foo"; |
5660 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3532 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5661 var obj = new api.ReadGroupSet.fromJson(json); | 3533 var obj = new api.ReadGroupSet.fromJson(json); |
5662 checkReadGroupSet(obj); | 3534 checkReadGroupSet(obj); |
5663 | 3535 |
5664 var path = (req.url).path; | 3536 var path = (req.url).path; |
5665 var pathOffset = 0; | 3537 var pathOffset = 0; |
5666 var index; | 3538 var index; |
5667 var subPart; | 3539 var subPart; |
5668 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3540 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5669 pathOffset += 1; | 3541 pathOffset += 1; |
5670 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 3542 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/readgroupsets/")); |
5671 pathOffset += 17; | 3543 pathOffset += 17; |
5672 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("readgroupsets/")); | |
5673 pathOffset += 14; | |
5674 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 3544 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
5675 pathOffset = path.length; | 3545 pathOffset = path.length; |
5676 unittest.expect(subPart, unittest.equals("$arg_readGroupSetId")); | 3546 unittest.expect(subPart, unittest.equals("$arg_readGroupSetId")); |
5677 | 3547 |
5678 var query = (req.url).query; | 3548 var query = (req.url).query; |
5679 var queryOffset = 0; | 3549 var queryOffset = 0; |
5680 var queryMap = {}; | 3550 var queryMap = {}; |
5681 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3551 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5682 parseBool(n) { | 3552 parseBool(n) { |
5683 if (n == "true") return true; | 3553 if (n == "true") return true; |
5684 if (n == "false") return false; | 3554 if (n == "false") return false; |
5685 if (n == null) return null; | 3555 if (n == null) return null; |
5686 throw new core.ArgumentError("Invalid boolean: $n"); | 3556 throw new core.ArgumentError("Invalid boolean: $n"); |
5687 } | 3557 } |
5688 if (query.length > 0) { | 3558 if (query.length > 0) { |
5689 for (var part in query.split("&")) { | 3559 for (var part in query.split("&")) { |
5690 var keyvalue = part.split("="); | 3560 var keyvalue = part.split("="); |
5691 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3561 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5692 } | 3562 } |
5693 } | 3563 } |
| 3564 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); |
5694 | 3565 |
5695 | 3566 |
5696 var h = { | 3567 var h = { |
5697 "content-type" : "application/json; charset=utf-8", | 3568 "content-type" : "application/json; charset=utf-8", |
5698 }; | 3569 }; |
5699 var resp = convert.JSON.encode(buildReadGroupSet()); | 3570 var resp = convert.JSON.encode(buildReadGroupSet()); |
5700 return new async.Future.value(stringResponse(200, h, resp)); | 3571 return new async.Future.value(stringResponse(200, h, resp)); |
5701 }), true); | 3572 }), true); |
5702 res.patch(arg_request, arg_readGroupSetId).then(unittest.expectAsync(((api
.ReadGroupSet response) { | 3573 res.patch(arg_request, arg_readGroupSetId, updateMask: arg_updateMask).the
n(unittest.expectAsync(((api.ReadGroupSet response) { |
5703 checkReadGroupSet(response); | 3574 checkReadGroupSet(response); |
5704 }))); | 3575 }))); |
5705 }); | 3576 }); |
5706 | 3577 |
5707 unittest.test("method--search", () { | 3578 unittest.test("method--search", () { |
5708 | 3579 |
5709 var mock = new HttpServerMock(); | 3580 var mock = new HttpServerMock(); |
5710 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; | 3581 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; |
5711 var arg_request = buildSearchReadGroupSetsRequest(); | 3582 var arg_request = buildSearchReadGroupSetsRequest(); |
5712 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3583 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5713 var obj = new api.SearchReadGroupSetsRequest.fromJson(json); | 3584 var obj = new api.SearchReadGroupSetsRequest.fromJson(json); |
5714 checkSearchReadGroupSetsRequest(obj); | 3585 checkSearchReadGroupSetsRequest(obj); |
5715 | 3586 |
5716 var path = (req.url).path; | 3587 var path = (req.url).path; |
5717 var pathOffset = 0; | 3588 var pathOffset = 0; |
5718 var index; | 3589 var index; |
5719 var subPart; | 3590 var subPart; |
5720 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3591 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5721 pathOffset += 1; | 3592 pathOffset += 1; |
5722 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 3593 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("v1/readgroupsets/search")); |
5723 pathOffset += 17; | 3594 pathOffset += 23; |
5724 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("readgroupsets/search")); | |
5725 pathOffset += 20; | |
5726 | 3595 |
5727 var query = (req.url).query; | 3596 var query = (req.url).query; |
5728 var queryOffset = 0; | 3597 var queryOffset = 0; |
5729 var queryMap = {}; | 3598 var queryMap = {}; |
5730 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3599 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5731 parseBool(n) { | 3600 parseBool(n) { |
5732 if (n == "true") return true; | 3601 if (n == "true") return true; |
5733 if (n == "false") return false; | 3602 if (n == "false") return false; |
5734 if (n == null) return null; | 3603 if (n == null) return null; |
5735 throw new core.ArgumentError("Invalid boolean: $n"); | 3604 throw new core.ArgumentError("Invalid boolean: $n"); |
(...skipping 10 matching lines...) Expand all Loading... |
5746 "content-type" : "application/json; charset=utf-8", | 3615 "content-type" : "application/json; charset=utf-8", |
5747 }; | 3616 }; |
5748 var resp = convert.JSON.encode(buildSearchReadGroupSetsResponse()); | 3617 var resp = convert.JSON.encode(buildSearchReadGroupSetsResponse()); |
5749 return new async.Future.value(stringResponse(200, h, resp)); | 3618 return new async.Future.value(stringResponse(200, h, resp)); |
5750 }), true); | 3619 }), true); |
5751 res.search(arg_request).then(unittest.expectAsync(((api.SearchReadGroupSet
sResponse response) { | 3620 res.search(arg_request).then(unittest.expectAsync(((api.SearchReadGroupSet
sResponse response) { |
5752 checkSearchReadGroupSetsResponse(response); | 3621 checkSearchReadGroupSetsResponse(response); |
5753 }))); | 3622 }))); |
5754 }); | 3623 }); |
5755 | 3624 |
5756 unittest.test("method--update", () { | |
5757 | |
5758 var mock = new HttpServerMock(); | |
5759 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; | |
5760 var arg_request = buildReadGroupSet(); | |
5761 var arg_readGroupSetId = "foo"; | |
5762 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
5763 var obj = new api.ReadGroupSet.fromJson(json); | |
5764 checkReadGroupSet(obj); | |
5765 | |
5766 var path = (req.url).path; | |
5767 var pathOffset = 0; | |
5768 var index; | |
5769 var subPart; | |
5770 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
5771 pathOffset += 1; | |
5772 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | |
5773 pathOffset += 17; | |
5774 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("readgroupsets/")); | |
5775 pathOffset += 14; | |
5776 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
5777 pathOffset = path.length; | |
5778 unittest.expect(subPart, unittest.equals("$arg_readGroupSetId")); | |
5779 | |
5780 var query = (req.url).query; | |
5781 var queryOffset = 0; | |
5782 var queryMap = {}; | |
5783 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
5784 parseBool(n) { | |
5785 if (n == "true") return true; | |
5786 if (n == "false") return false; | |
5787 if (n == null) return null; | |
5788 throw new core.ArgumentError("Invalid boolean: $n"); | |
5789 } | |
5790 if (query.length > 0) { | |
5791 for (var part in query.split("&")) { | |
5792 var keyvalue = part.split("="); | |
5793 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
5794 } | |
5795 } | |
5796 | |
5797 | |
5798 var h = { | |
5799 "content-type" : "application/json; charset=utf-8", | |
5800 }; | |
5801 var resp = convert.JSON.encode(buildReadGroupSet()); | |
5802 return new async.Future.value(stringResponse(200, h, resp)); | |
5803 }), true); | |
5804 res.update(arg_request, arg_readGroupSetId).then(unittest.expectAsync(((ap
i.ReadGroupSet response) { | |
5805 checkReadGroupSet(response); | |
5806 }))); | |
5807 }); | |
5808 | |
5809 }); | 3625 }); |
5810 | 3626 |
5811 | 3627 |
5812 unittest.group("resource-ReadgroupsetsCoveragebucketsResourceApi", () { | 3628 unittest.group("resource-ReadgroupsetsCoveragebucketsResourceApi", () { |
5813 unittest.test("method--list", () { | 3629 unittest.test("method--list", () { |
5814 | 3630 |
5815 var mock = new HttpServerMock(); | 3631 var mock = new HttpServerMock(); |
5816 api.ReadgroupsetsCoveragebucketsResourceApi res = new api.GenomicsApi(mock
).readgroupsets.coveragebuckets; | 3632 api.ReadgroupsetsCoveragebucketsResourceApi res = new api.GenomicsApi(mock
).readgroupsets.coveragebuckets; |
5817 var arg_readGroupSetId = "foo"; | 3633 var arg_readGroupSetId = "foo"; |
| 3634 var arg_referenceName = "foo"; |
| 3635 var arg_start = "foo"; |
| 3636 var arg_end = "foo"; |
| 3637 var arg_targetBucketWidth = "foo"; |
| 3638 var arg_pageToken = "foo"; |
5818 var arg_pageSize = 42; | 3639 var arg_pageSize = 42; |
5819 var arg_pageToken = "foo"; | |
5820 var arg_range_end = "foo"; | |
5821 var arg_range_referenceName = "foo"; | |
5822 var arg_range_start = "foo"; | |
5823 var arg_targetBucketWidth = "foo"; | |
5824 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3640 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5825 var path = (req.url).path; | 3641 var path = (req.url).path; |
5826 var pathOffset = 0; | 3642 var pathOffset = 0; |
5827 var index; | 3643 var index; |
5828 var subPart; | 3644 var subPart; |
5829 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3645 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5830 pathOffset += 1; | 3646 pathOffset += 1; |
5831 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 3647 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/readgroupsets/")); |
5832 pathOffset += 17; | 3648 pathOffset += 17; |
5833 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("readgroupsets/")); | |
5834 pathOffset += 14; | |
5835 index = path.indexOf("/coveragebuckets", pathOffset); | 3649 index = path.indexOf("/coveragebuckets", pathOffset); |
5836 unittest.expect(index >= 0, unittest.isTrue); | 3650 unittest.expect(index >= 0, unittest.isTrue); |
5837 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3651 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
5838 pathOffset = index; | 3652 pathOffset = index; |
5839 unittest.expect(subPart, unittest.equals("$arg_readGroupSetId")); | 3653 unittest.expect(subPart, unittest.equals("$arg_readGroupSetId")); |
5840 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/coveragebuckets")); | 3654 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/coveragebuckets")); |
5841 pathOffset += 16; | 3655 pathOffset += 16; |
5842 | 3656 |
5843 var query = (req.url).query; | 3657 var query = (req.url).query; |
5844 var queryOffset = 0; | 3658 var queryOffset = 0; |
5845 var queryMap = {}; | 3659 var queryMap = {}; |
5846 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3660 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5847 parseBool(n) { | 3661 parseBool(n) { |
5848 if (n == "true") return true; | 3662 if (n == "true") return true; |
5849 if (n == "false") return false; | 3663 if (n == "false") return false; |
5850 if (n == null) return null; | 3664 if (n == null) return null; |
5851 throw new core.ArgumentError("Invalid boolean: $n"); | 3665 throw new core.ArgumentError("Invalid boolean: $n"); |
5852 } | 3666 } |
5853 if (query.length > 0) { | 3667 if (query.length > 0) { |
5854 for (var part in query.split("&")) { | 3668 for (var part in query.split("&")) { |
5855 var keyvalue = part.split("="); | 3669 var keyvalue = part.split("="); |
5856 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3670 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
5857 } | 3671 } |
5858 } | 3672 } |
| 3673 unittest.expect(queryMap["referenceName"].first, unittest.equals(arg_ref
erenceName)); |
| 3674 unittest.expect(queryMap["start"].first, unittest.equals(arg_start)); |
| 3675 unittest.expect(queryMap["end"].first, unittest.equals(arg_end)); |
| 3676 unittest.expect(queryMap["targetBucketWidth"].first, unittest.equals(arg
_targetBucketWidth)); |
| 3677 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
5859 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 3678 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
5860 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
5861 unittest.expect(queryMap["range.end"].first, unittest.equals(arg_range_e
nd)); | |
5862 unittest.expect(queryMap["range.referenceName"].first, unittest.equals(a
rg_range_referenceName)); | |
5863 unittest.expect(queryMap["range.start"].first, unittest.equals(arg_range
_start)); | |
5864 unittest.expect(queryMap["targetBucketWidth"].first, unittest.equals(arg
_targetBucketWidth)); | |
5865 | 3679 |
5866 | 3680 |
5867 var h = { | 3681 var h = { |
5868 "content-type" : "application/json; charset=utf-8", | 3682 "content-type" : "application/json; charset=utf-8", |
5869 }; | 3683 }; |
5870 var resp = convert.JSON.encode(buildListCoverageBucketsResponse()); | 3684 var resp = convert.JSON.encode(buildListCoverageBucketsResponse()); |
5871 return new async.Future.value(stringResponse(200, h, resp)); | 3685 return new async.Future.value(stringResponse(200, h, resp)); |
5872 }), true); | 3686 }), true); |
5873 res.list(arg_readGroupSetId, pageSize: arg_pageSize, pageToken: arg_pageTo
ken, range_end: arg_range_end, range_referenceName: arg_range_referenceName, ran
ge_start: arg_range_start, targetBucketWidth: arg_targetBucketWidth).then(unitte
st.expectAsync(((api.ListCoverageBucketsResponse response) { | 3687 res.list(arg_readGroupSetId, referenceName: arg_referenceName, start: arg_
start, end: arg_end, targetBucketWidth: arg_targetBucketWidth, pageToken: arg_pa
geToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListCoverageBuc
ketsResponse response) { |
5874 checkListCoverageBucketsResponse(response); | 3688 checkListCoverageBucketsResponse(response); |
5875 }))); | 3689 }))); |
5876 }); | 3690 }); |
5877 | 3691 |
5878 }); | 3692 }); |
5879 | 3693 |
5880 | 3694 |
5881 unittest.group("resource-ReadsResourceApi", () { | 3695 unittest.group("resource-ReadsResourceApi", () { |
5882 unittest.test("method--search", () { | 3696 unittest.test("method--search", () { |
5883 | 3697 |
5884 var mock = new HttpServerMock(); | 3698 var mock = new HttpServerMock(); |
5885 api.ReadsResourceApi res = new api.GenomicsApi(mock).reads; | 3699 api.ReadsResourceApi res = new api.GenomicsApi(mock).reads; |
5886 var arg_request = buildSearchReadsRequest(); | 3700 var arg_request = buildSearchReadsRequest(); |
5887 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3701 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5888 var obj = new api.SearchReadsRequest.fromJson(json); | 3702 var obj = new api.SearchReadsRequest.fromJson(json); |
5889 checkSearchReadsRequest(obj); | 3703 checkSearchReadsRequest(obj); |
5890 | 3704 |
5891 var path = (req.url).path; | 3705 var path = (req.url).path; |
5892 var pathOffset = 0; | 3706 var pathOffset = 0; |
5893 var index; | 3707 var index; |
5894 var subPart; | 3708 var subPart; |
5895 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3709 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5896 pathOffset += 1; | 3710 pathOffset += 1; |
5897 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 3711 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("v1/reads/search")); |
5898 pathOffset += 17; | 3712 pathOffset += 15; |
5899 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("reads/search")); | |
5900 pathOffset += 12; | |
5901 | 3713 |
5902 var query = (req.url).query; | 3714 var query = (req.url).query; |
5903 var queryOffset = 0; | 3715 var queryOffset = 0; |
5904 var queryMap = {}; | 3716 var queryMap = {}; |
5905 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3717 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5906 parseBool(n) { | 3718 parseBool(n) { |
5907 if (n == "true") return true; | 3719 if (n == "true") return true; |
5908 if (n == "false") return false; | 3720 if (n == "false") return false; |
5909 if (n == null) return null; | 3721 if (n == null) return null; |
5910 throw new core.ArgumentError("Invalid boolean: $n"); | 3722 throw new core.ArgumentError("Invalid boolean: $n"); |
(...skipping 26 matching lines...) Expand all Loading... |
5937 var mock = new HttpServerMock(); | 3749 var mock = new HttpServerMock(); |
5938 api.ReferencesResourceApi res = new api.GenomicsApi(mock).references; | 3750 api.ReferencesResourceApi res = new api.GenomicsApi(mock).references; |
5939 var arg_referenceId = "foo"; | 3751 var arg_referenceId = "foo"; |
5940 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3752 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5941 var path = (req.url).path; | 3753 var path = (req.url).path; |
5942 var pathOffset = 0; | 3754 var pathOffset = 0; |
5943 var index; | 3755 var index; |
5944 var subPart; | 3756 var subPart; |
5945 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3757 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5946 pathOffset += 1; | 3758 pathOffset += 1; |
5947 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 3759 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1/references/")); |
5948 pathOffset += 17; | 3760 pathOffset += 14; |
5949 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("references/")); | |
5950 pathOffset += 11; | |
5951 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 3761 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
5952 pathOffset = path.length; | 3762 pathOffset = path.length; |
5953 unittest.expect(subPart, unittest.equals("$arg_referenceId")); | 3763 unittest.expect(subPart, unittest.equals("$arg_referenceId")); |
5954 | 3764 |
5955 var query = (req.url).query; | 3765 var query = (req.url).query; |
5956 var queryOffset = 0; | 3766 var queryOffset = 0; |
5957 var queryMap = {}; | 3767 var queryMap = {}; |
5958 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3768 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5959 parseBool(n) { | 3769 parseBool(n) { |
5960 if (n == "true") return true; | 3770 if (n == "true") return true; |
(...skipping 28 matching lines...) Expand all Loading... |
5989 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3799 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
5990 var obj = new api.SearchReferencesRequest.fromJson(json); | 3800 var obj = new api.SearchReferencesRequest.fromJson(json); |
5991 checkSearchReferencesRequest(obj); | 3801 checkSearchReferencesRequest(obj); |
5992 | 3802 |
5993 var path = (req.url).path; | 3803 var path = (req.url).path; |
5994 var pathOffset = 0; | 3804 var pathOffset = 0; |
5995 var index; | 3805 var index; |
5996 var subPart; | 3806 var subPart; |
5997 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3807 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
5998 pathOffset += 1; | 3808 pathOffset += 1; |
5999 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 3809 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("v1/references/search")); |
6000 pathOffset += 17; | 3810 pathOffset += 20; |
6001 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("references/search")); | |
6002 pathOffset += 17; | |
6003 | 3811 |
6004 var query = (req.url).query; | 3812 var query = (req.url).query; |
6005 var queryOffset = 0; | 3813 var queryOffset = 0; |
6006 var queryMap = {}; | 3814 var queryMap = {}; |
6007 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3815 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6008 parseBool(n) { | 3816 parseBool(n) { |
6009 if (n == "true") return true; | 3817 if (n == "true") return true; |
6010 if (n == "false") return false; | 3818 if (n == "false") return false; |
6011 if (n == null) return null; | 3819 if (n == null) return null; |
6012 throw new core.ArgumentError("Invalid boolean: $n"); | 3820 throw new core.ArgumentError("Invalid boolean: $n"); |
(...skipping 19 matching lines...) Expand all Loading... |
6032 | 3840 |
6033 }); | 3841 }); |
6034 | 3842 |
6035 | 3843 |
6036 unittest.group("resource-ReferencesBasesResourceApi", () { | 3844 unittest.group("resource-ReferencesBasesResourceApi", () { |
6037 unittest.test("method--list", () { | 3845 unittest.test("method--list", () { |
6038 | 3846 |
6039 var mock = new HttpServerMock(); | 3847 var mock = new HttpServerMock(); |
6040 api.ReferencesBasesResourceApi res = new api.GenomicsApi(mock).references.
bases; | 3848 api.ReferencesBasesResourceApi res = new api.GenomicsApi(mock).references.
bases; |
6041 var arg_referenceId = "foo"; | 3849 var arg_referenceId = "foo"; |
| 3850 var arg_start = "foo"; |
6042 var arg_end = "foo"; | 3851 var arg_end = "foo"; |
| 3852 var arg_pageToken = "foo"; |
6043 var arg_pageSize = 42; | 3853 var arg_pageSize = 42; |
6044 var arg_pageToken = "foo"; | |
6045 var arg_start = "foo"; | |
6046 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3854 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6047 var path = (req.url).path; | 3855 var path = (req.url).path; |
6048 var pathOffset = 0; | 3856 var pathOffset = 0; |
6049 var index; | 3857 var index; |
6050 var subPart; | 3858 var subPart; |
6051 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3859 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6052 pathOffset += 1; | 3860 pathOffset += 1; |
6053 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 3861 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1/references/")); |
6054 pathOffset += 17; | 3862 pathOffset += 14; |
6055 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("references/")); | |
6056 pathOffset += 11; | |
6057 index = path.indexOf("/bases", pathOffset); | 3863 index = path.indexOf("/bases", pathOffset); |
6058 unittest.expect(index >= 0, unittest.isTrue); | 3864 unittest.expect(index >= 0, unittest.isTrue); |
6059 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 3865 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
6060 pathOffset = index; | 3866 pathOffset = index; |
6061 unittest.expect(subPart, unittest.equals("$arg_referenceId")); | 3867 unittest.expect(subPart, unittest.equals("$arg_referenceId")); |
6062 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/bases")); | 3868 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/bases")); |
6063 pathOffset += 6; | 3869 pathOffset += 6; |
6064 | 3870 |
6065 var query = (req.url).query; | 3871 var query = (req.url).query; |
6066 var queryOffset = 0; | 3872 var queryOffset = 0; |
6067 var queryMap = {}; | 3873 var queryMap = {}; |
6068 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3874 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6069 parseBool(n) { | 3875 parseBool(n) { |
6070 if (n == "true") return true; | 3876 if (n == "true") return true; |
6071 if (n == "false") return false; | 3877 if (n == "false") return false; |
6072 if (n == null) return null; | 3878 if (n == null) return null; |
6073 throw new core.ArgumentError("Invalid boolean: $n"); | 3879 throw new core.ArgumentError("Invalid boolean: $n"); |
6074 } | 3880 } |
6075 if (query.length > 0) { | 3881 if (query.length > 0) { |
6076 for (var part in query.split("&")) { | 3882 for (var part in query.split("&")) { |
6077 var keyvalue = part.split("="); | 3883 var keyvalue = part.split("="); |
6078 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3884 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
6079 } | 3885 } |
6080 } | 3886 } |
| 3887 unittest.expect(queryMap["start"].first, unittest.equals(arg_start)); |
6081 unittest.expect(queryMap["end"].first, unittest.equals(arg_end)); | 3888 unittest.expect(queryMap["end"].first, unittest.equals(arg_end)); |
| 3889 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
6082 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 3890 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
6083 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
6084 unittest.expect(queryMap["start"].first, unittest.equals(arg_start)); | |
6085 | 3891 |
6086 | 3892 |
6087 var h = { | 3893 var h = { |
6088 "content-type" : "application/json; charset=utf-8", | 3894 "content-type" : "application/json; charset=utf-8", |
6089 }; | 3895 }; |
6090 var resp = convert.JSON.encode(buildListBasesResponse()); | 3896 var resp = convert.JSON.encode(buildListBasesResponse()); |
6091 return new async.Future.value(stringResponse(200, h, resp)); | 3897 return new async.Future.value(stringResponse(200, h, resp)); |
6092 }), true); | 3898 }), true); |
6093 res.list(arg_referenceId, end: arg_end, pageSize: arg_pageSize, pageToken:
arg_pageToken, start: arg_start).then(unittest.expectAsync(((api.ListBasesRespo
nse response) { | 3899 res.list(arg_referenceId, start: arg_start, end: arg_end, pageToken: arg_p
ageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListBasesRespo
nse response) { |
6094 checkListBasesResponse(response); | 3900 checkListBasesResponse(response); |
6095 }))); | 3901 }))); |
6096 }); | 3902 }); |
6097 | 3903 |
6098 }); | 3904 }); |
6099 | 3905 |
6100 | 3906 |
6101 unittest.group("resource-ReferencesetsResourceApi", () { | 3907 unittest.group("resource-ReferencesetsResourceApi", () { |
6102 unittest.test("method--get", () { | 3908 unittest.test("method--get", () { |
6103 | 3909 |
6104 var mock = new HttpServerMock(); | 3910 var mock = new HttpServerMock(); |
6105 api.ReferencesetsResourceApi res = new api.GenomicsApi(mock).referencesets
; | 3911 api.ReferencesetsResourceApi res = new api.GenomicsApi(mock).referencesets
; |
6106 var arg_referenceSetId = "foo"; | 3912 var arg_referenceSetId = "foo"; |
6107 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3913 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6108 var path = (req.url).path; | 3914 var path = (req.url).path; |
6109 var pathOffset = 0; | 3915 var pathOffset = 0; |
6110 var index; | 3916 var index; |
6111 var subPart; | 3917 var subPart; |
6112 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3918 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6113 pathOffset += 1; | 3919 pathOffset += 1; |
6114 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 3920 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/referencesets/")); |
6115 pathOffset += 17; | 3921 pathOffset += 17; |
6116 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("referencesets/")); | |
6117 pathOffset += 14; | |
6118 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 3922 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
6119 pathOffset = path.length; | 3923 pathOffset = path.length; |
6120 unittest.expect(subPart, unittest.equals("$arg_referenceSetId")); | 3924 unittest.expect(subPart, unittest.equals("$arg_referenceSetId")); |
6121 | 3925 |
6122 var query = (req.url).query; | 3926 var query = (req.url).query; |
6123 var queryOffset = 0; | 3927 var queryOffset = 0; |
6124 var queryMap = {}; | 3928 var queryMap = {}; |
6125 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3929 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6126 parseBool(n) { | 3930 parseBool(n) { |
6127 if (n == "true") return true; | 3931 if (n == "true") return true; |
(...skipping 28 matching lines...) Expand all Loading... |
6156 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3960 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6157 var obj = new api.SearchReferenceSetsRequest.fromJson(json); | 3961 var obj = new api.SearchReferenceSetsRequest.fromJson(json); |
6158 checkSearchReferenceSetsRequest(obj); | 3962 checkSearchReferenceSetsRequest(obj); |
6159 | 3963 |
6160 var path = (req.url).path; | 3964 var path = (req.url).path; |
6161 var pathOffset = 0; | 3965 var pathOffset = 0; |
6162 var index; | 3966 var index; |
6163 var subPart; | 3967 var subPart; |
6164 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3968 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6165 pathOffset += 1; | 3969 pathOffset += 1; |
6166 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 3970 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("v1/referencesets/search")); |
6167 pathOffset += 17; | 3971 pathOffset += 23; |
6168 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("referencesets/search")); | |
6169 pathOffset += 20; | |
6170 | 3972 |
6171 var query = (req.url).query; | 3973 var query = (req.url).query; |
6172 var queryOffset = 0; | 3974 var queryOffset = 0; |
6173 var queryMap = {}; | 3975 var queryMap = {}; |
6174 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3976 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6175 parseBool(n) { | 3977 parseBool(n) { |
6176 if (n == "true") return true; | 3978 if (n == "true") return true; |
6177 if (n == "false") return false; | 3979 if (n == "false") return false; |
6178 if (n == null) return null; | 3980 if (n == null) return null; |
6179 throw new core.ArgumentError("Invalid boolean: $n"); | 3981 throw new core.ArgumentError("Invalid boolean: $n"); |
(...skipping 29 matching lines...) Expand all Loading... |
6209 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4011 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6210 var obj = new api.Variant.fromJson(json); | 4012 var obj = new api.Variant.fromJson(json); |
6211 checkVariant(obj); | 4013 checkVariant(obj); |
6212 | 4014 |
6213 var path = (req.url).path; | 4015 var path = (req.url).path; |
6214 var pathOffset = 0; | 4016 var pathOffset = 0; |
6215 var index; | 4017 var index; |
6216 var subPart; | 4018 var subPart; |
6217 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4019 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6218 pathOffset += 1; | 4020 pathOffset += 1; |
6219 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 4021 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("v1/variants")); |
6220 pathOffset += 17; | 4022 pathOffset += 11; |
6221 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("variants")); | |
6222 pathOffset += 8; | |
6223 | 4023 |
6224 var query = (req.url).query; | 4024 var query = (req.url).query; |
6225 var queryOffset = 0; | 4025 var queryOffset = 0; |
6226 var queryMap = {}; | 4026 var queryMap = {}; |
6227 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4027 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6228 parseBool(n) { | 4028 parseBool(n) { |
6229 if (n == "true") return true; | 4029 if (n == "true") return true; |
6230 if (n == "false") return false; | 4030 if (n == "false") return false; |
6231 if (n == null) return null; | 4031 if (n == null) return null; |
6232 throw new core.ArgumentError("Invalid boolean: $n"); | 4032 throw new core.ArgumentError("Invalid boolean: $n"); |
(...skipping 22 matching lines...) Expand all Loading... |
6255 var mock = new HttpServerMock(); | 4055 var mock = new HttpServerMock(); |
6256 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; | 4056 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; |
6257 var arg_variantId = "foo"; | 4057 var arg_variantId = "foo"; |
6258 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4058 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6259 var path = (req.url).path; | 4059 var path = (req.url).path; |
6260 var pathOffset = 0; | 4060 var pathOffset = 0; |
6261 var index; | 4061 var index; |
6262 var subPart; | 4062 var subPart; |
6263 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4063 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6264 pathOffset += 1; | 4064 pathOffset += 1; |
6265 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 4065 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/variants/")); |
6266 pathOffset += 17; | 4066 pathOffset += 12; |
6267 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("variants/")); | |
6268 pathOffset += 9; | |
6269 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4067 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
6270 pathOffset = path.length; | 4068 pathOffset = path.length; |
6271 unittest.expect(subPart, unittest.equals("$arg_variantId")); | 4069 unittest.expect(subPart, unittest.equals("$arg_variantId")); |
6272 | 4070 |
6273 var query = (req.url).query; | 4071 var query = (req.url).query; |
6274 var queryOffset = 0; | 4072 var queryOffset = 0; |
6275 var queryMap = {}; | 4073 var queryMap = {}; |
6276 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4074 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6277 parseBool(n) { | 4075 parseBool(n) { |
6278 if (n == "true") return true; | 4076 if (n == "true") return true; |
6279 if (n == "false") return false; | 4077 if (n == "false") return false; |
6280 if (n == null) return null; | 4078 if (n == null) return null; |
6281 throw new core.ArgumentError("Invalid boolean: $n"); | 4079 throw new core.ArgumentError("Invalid boolean: $n"); |
6282 } | 4080 } |
6283 if (query.length > 0) { | 4081 if (query.length > 0) { |
6284 for (var part in query.split("&")) { | 4082 for (var part in query.split("&")) { |
6285 var keyvalue = part.split("="); | 4083 var keyvalue = part.split("="); |
6286 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4084 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
6287 } | 4085 } |
6288 } | 4086 } |
6289 | 4087 |
6290 | 4088 |
6291 var h = { | 4089 var h = { |
6292 "content-type" : "application/json; charset=utf-8", | 4090 "content-type" : "application/json; charset=utf-8", |
6293 }; | 4091 }; |
6294 var resp = ""; | 4092 var resp = convert.JSON.encode(buildEmpty()); |
6295 return new async.Future.value(stringResponse(200, h, resp)); | 4093 return new async.Future.value(stringResponse(200, h, resp)); |
6296 }), true); | 4094 }), true); |
6297 res.delete(arg_variantId).then(unittest.expectAsync((_) {})); | 4095 res.delete(arg_variantId).then(unittest.expectAsync(((api.Empty response)
{ |
| 4096 checkEmpty(response); |
| 4097 }))); |
6298 }); | 4098 }); |
6299 | 4099 |
6300 unittest.test("method--get", () { | 4100 unittest.test("method--get", () { |
6301 | 4101 |
6302 var mock = new HttpServerMock(); | 4102 var mock = new HttpServerMock(); |
6303 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; | 4103 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; |
6304 var arg_variantId = "foo"; | 4104 var arg_variantId = "foo"; |
6305 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4105 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6306 var path = (req.url).path; | 4106 var path = (req.url).path; |
6307 var pathOffset = 0; | 4107 var pathOffset = 0; |
6308 var index; | 4108 var index; |
6309 var subPart; | 4109 var subPart; |
6310 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4110 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6311 pathOffset += 1; | 4111 pathOffset += 1; |
6312 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 4112 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/variants/")); |
6313 pathOffset += 17; | 4113 pathOffset += 12; |
6314 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("variants/")); | |
6315 pathOffset += 9; | |
6316 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4114 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
6317 pathOffset = path.length; | 4115 pathOffset = path.length; |
6318 unittest.expect(subPart, unittest.equals("$arg_variantId")); | 4116 unittest.expect(subPart, unittest.equals("$arg_variantId")); |
6319 | 4117 |
6320 var query = (req.url).query; | 4118 var query = (req.url).query; |
6321 var queryOffset = 0; | 4119 var queryOffset = 0; |
6322 var queryMap = {}; | 4120 var queryMap = {}; |
6323 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4121 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6324 parseBool(n) { | 4122 parseBool(n) { |
6325 if (n == "true") return true; | 4123 if (n == "true") return true; |
(...skipping 13 matching lines...) Expand all Loading... |
6339 "content-type" : "application/json; charset=utf-8", | 4137 "content-type" : "application/json; charset=utf-8", |
6340 }; | 4138 }; |
6341 var resp = convert.JSON.encode(buildVariant()); | 4139 var resp = convert.JSON.encode(buildVariant()); |
6342 return new async.Future.value(stringResponse(200, h, resp)); | 4140 return new async.Future.value(stringResponse(200, h, resp)); |
6343 }), true); | 4141 }), true); |
6344 res.get(arg_variantId).then(unittest.expectAsync(((api.Variant response) { | 4142 res.get(arg_variantId).then(unittest.expectAsync(((api.Variant response) { |
6345 checkVariant(response); | 4143 checkVariant(response); |
6346 }))); | 4144 }))); |
6347 }); | 4145 }); |
6348 | 4146 |
6349 unittest.test("method--search", () { | 4147 unittest.test("method--import", () { |
6350 | 4148 |
6351 var mock = new HttpServerMock(); | 4149 var mock = new HttpServerMock(); |
6352 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; | 4150 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; |
6353 var arg_request = buildSearchVariantsRequest(); | 4151 var arg_request = buildImportVariantsRequest(); |
6354 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4152 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6355 var obj = new api.SearchVariantsRequest.fromJson(json); | 4153 var obj = new api.ImportVariantsRequest.fromJson(json); |
6356 checkSearchVariantsRequest(obj); | 4154 checkImportVariantsRequest(obj); |
6357 | 4155 |
6358 var path = (req.url).path; | 4156 var path = (req.url).path; |
6359 var pathOffset = 0; | 4157 var pathOffset = 0; |
6360 var index; | 4158 var index; |
6361 var subPart; | 4159 var subPart; |
6362 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4160 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6363 pathOffset += 1; | 4161 pathOffset += 1; |
6364 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 4162 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("v1/variants:import")); |
6365 pathOffset += 17; | 4163 pathOffset += 18; |
6366 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("variants/search")); | |
6367 pathOffset += 15; | |
6368 | 4164 |
6369 var query = (req.url).query; | 4165 var query = (req.url).query; |
6370 var queryOffset = 0; | 4166 var queryOffset = 0; |
6371 var queryMap = {}; | 4167 var queryMap = {}; |
6372 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4168 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6373 parseBool(n) { | 4169 parseBool(n) { |
6374 if (n == "true") return true; | 4170 if (n == "true") return true; |
6375 if (n == "false") return false; | 4171 if (n == "false") return false; |
6376 if (n == null) return null; | 4172 if (n == null) return null; |
6377 throw new core.ArgumentError("Invalid boolean: $n"); | 4173 throw new core.ArgumentError("Invalid boolean: $n"); |
6378 } | 4174 } |
6379 if (query.length > 0) { | 4175 if (query.length > 0) { |
6380 for (var part in query.split("&")) { | 4176 for (var part in query.split("&")) { |
6381 var keyvalue = part.split("="); | 4177 var keyvalue = part.split("="); |
6382 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4178 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
6383 } | 4179 } |
6384 } | 4180 } |
6385 | 4181 |
6386 | 4182 |
6387 var h = { | 4183 var h = { |
6388 "content-type" : "application/json; charset=utf-8", | 4184 "content-type" : "application/json; charset=utf-8", |
6389 }; | 4185 }; |
6390 var resp = convert.JSON.encode(buildSearchVariantsResponse()); | 4186 var resp = convert.JSON.encode(buildOperation()); |
6391 return new async.Future.value(stringResponse(200, h, resp)); | 4187 return new async.Future.value(stringResponse(200, h, resp)); |
6392 }), true); | 4188 }), true); |
6393 res.search(arg_request).then(unittest.expectAsync(((api.SearchVariantsResp
onse response) { | 4189 res.import(arg_request).then(unittest.expectAsync(((api.Operation response
) { |
6394 checkSearchVariantsResponse(response); | 4190 checkOperation(response); |
6395 }))); | 4191 }))); |
6396 }); | 4192 }); |
6397 | 4193 |
6398 unittest.test("method--update", () { | 4194 unittest.test("method--patch", () { |
6399 | 4195 |
6400 var mock = new HttpServerMock(); | 4196 var mock = new HttpServerMock(); |
6401 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; | 4197 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; |
6402 var arg_request = buildVariant(); | 4198 var arg_request = buildVariant(); |
6403 var arg_variantId = "foo"; | 4199 var arg_variantId = "foo"; |
| 4200 var arg_updateMask = "foo"; |
6404 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4201 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6405 var obj = new api.Variant.fromJson(json); | 4202 var obj = new api.Variant.fromJson(json); |
6406 checkVariant(obj); | 4203 checkVariant(obj); |
6407 | 4204 |
6408 var path = (req.url).path; | 4205 var path = (req.url).path; |
6409 var pathOffset = 0; | 4206 var pathOffset = 0; |
6410 var index; | 4207 var index; |
6411 var subPart; | 4208 var subPart; |
6412 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4209 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6413 pathOffset += 1; | 4210 pathOffset += 1; |
6414 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 4211 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/variants/")); |
6415 pathOffset += 17; | 4212 pathOffset += 12; |
6416 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als("variants/")); | |
6417 pathOffset += 9; | |
6418 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4213 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
6419 pathOffset = path.length; | 4214 pathOffset = path.length; |
6420 unittest.expect(subPart, unittest.equals("$arg_variantId")); | 4215 unittest.expect(subPart, unittest.equals("$arg_variantId")); |
6421 | 4216 |
6422 var query = (req.url).query; | 4217 var query = (req.url).query; |
6423 var queryOffset = 0; | 4218 var queryOffset = 0; |
6424 var queryMap = {}; | 4219 var queryMap = {}; |
6425 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4220 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6426 parseBool(n) { | 4221 parseBool(n) { |
6427 if (n == "true") return true; | 4222 if (n == "true") return true; |
6428 if (n == "false") return false; | 4223 if (n == "false") return false; |
6429 if (n == null) return null; | 4224 if (n == null) return null; |
6430 throw new core.ArgumentError("Invalid boolean: $n"); | 4225 throw new core.ArgumentError("Invalid boolean: $n"); |
6431 } | 4226 } |
6432 if (query.length > 0) { | 4227 if (query.length > 0) { |
6433 for (var part in query.split("&")) { | 4228 for (var part in query.split("&")) { |
6434 var keyvalue = part.split("="); | 4229 var keyvalue = part.split("="); |
6435 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4230 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
6436 } | 4231 } |
6437 } | 4232 } |
| 4233 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); |
6438 | 4234 |
6439 | 4235 |
6440 var h = { | 4236 var h = { |
6441 "content-type" : "application/json; charset=utf-8", | 4237 "content-type" : "application/json; charset=utf-8", |
6442 }; | 4238 }; |
6443 var resp = convert.JSON.encode(buildVariant()); | 4239 var resp = convert.JSON.encode(buildVariant()); |
6444 return new async.Future.value(stringResponse(200, h, resp)); | 4240 return new async.Future.value(stringResponse(200, h, resp)); |
6445 }), true); | 4241 }), true); |
6446 res.update(arg_request, arg_variantId).then(unittest.expectAsync(((api.Var
iant response) { | 4242 res.patch(arg_request, arg_variantId, updateMask: arg_updateMask).then(uni
ttest.expectAsync(((api.Variant response) { |
6447 checkVariant(response); | 4243 checkVariant(response); |
6448 }))); | 4244 }))); |
6449 }); | 4245 }); |
6450 | 4246 |
6451 }); | 4247 unittest.test("method--search", () { |
6452 | |
6453 | |
6454 unittest.group("resource-VariantsetsResourceApi", () { | |
6455 unittest.test("method--delete", () { | |
6456 | 4248 |
6457 var mock = new HttpServerMock(); | 4249 var mock = new HttpServerMock(); |
6458 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; | 4250 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; |
6459 var arg_variantSetId = "foo"; | 4251 var arg_request = buildSearchVariantsRequest(); |
6460 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4252 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 4253 var obj = new api.SearchVariantsRequest.fromJson(json); |
| 4254 checkSearchVariantsRequest(obj); |
| 4255 |
6461 var path = (req.url).path; | 4256 var path = (req.url).path; |
6462 var pathOffset = 0; | 4257 var pathOffset = 0; |
6463 var index; | 4258 var index; |
6464 var subPart; | 4259 var subPart; |
6465 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4260 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6466 pathOffset += 1; | 4261 pathOffset += 1; |
6467 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 4262 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("v1/variants/search")); |
6468 pathOffset += 17; | 4263 pathOffset += 18; |
6469 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("variantsets/")); | |
6470 pathOffset += 12; | |
6471 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
6472 pathOffset = path.length; | |
6473 unittest.expect(subPart, unittest.equals("$arg_variantSetId")); | |
6474 | 4264 |
6475 var query = (req.url).query; | 4265 var query = (req.url).query; |
6476 var queryOffset = 0; | 4266 var queryOffset = 0; |
6477 var queryMap = {}; | 4267 var queryMap = {}; |
6478 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4268 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6479 parseBool(n) { | 4269 parseBool(n) { |
6480 if (n == "true") return true; | 4270 if (n == "true") return true; |
6481 if (n == "false") return false; | 4271 if (n == "false") return false; |
6482 if (n == null) return null; | 4272 if (n == null) return null; |
6483 throw new core.ArgumentError("Invalid boolean: $n"); | 4273 throw new core.ArgumentError("Invalid boolean: $n"); |
6484 } | 4274 } |
6485 if (query.length > 0) { | 4275 if (query.length > 0) { |
6486 for (var part in query.split("&")) { | 4276 for (var part in query.split("&")) { |
6487 var keyvalue = part.split("="); | 4277 var keyvalue = part.split("="); |
6488 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4278 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
6489 } | 4279 } |
6490 } | 4280 } |
6491 | 4281 |
6492 | 4282 |
6493 var h = { | 4283 var h = { |
6494 "content-type" : "application/json; charset=utf-8", | 4284 "content-type" : "application/json; charset=utf-8", |
6495 }; | 4285 }; |
6496 var resp = ""; | 4286 var resp = convert.JSON.encode(buildSearchVariantsResponse()); |
6497 return new async.Future.value(stringResponse(200, h, resp)); | 4287 return new async.Future.value(stringResponse(200, h, resp)); |
6498 }), true); | 4288 }), true); |
6499 res.delete(arg_variantSetId).then(unittest.expectAsync((_) {})); | 4289 res.search(arg_request).then(unittest.expectAsync(((api.SearchVariantsResp
onse response) { |
| 4290 checkSearchVariantsResponse(response); |
| 4291 }))); |
6500 }); | 4292 }); |
6501 | 4293 |
6502 unittest.test("method--export", () { | 4294 }); |
| 4295 |
| 4296 |
| 4297 unittest.group("resource-VariantsetsResourceApi", () { |
| 4298 unittest.test("method--create", () { |
6503 | 4299 |
6504 var mock = new HttpServerMock(); | 4300 var mock = new HttpServerMock(); |
6505 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; | 4301 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; |
6506 var arg_request = buildExportVariantSetRequest(); | 4302 var arg_request = buildVariantSet(); |
6507 var arg_variantSetId = "foo"; | |
6508 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4303 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6509 var obj = new api.ExportVariantSetRequest.fromJson(json); | 4304 var obj = new api.VariantSet.fromJson(json); |
6510 checkExportVariantSetRequest(obj); | 4305 checkVariantSet(obj); |
6511 | 4306 |
6512 var path = (req.url).path; | 4307 var path = (req.url).path; |
6513 var pathOffset = 0; | 4308 var pathOffset = 0; |
6514 var index; | 4309 var index; |
6515 var subPart; | 4310 var subPart; |
6516 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4311 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6517 pathOffset += 1; | 4312 pathOffset += 1; |
6518 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 4313 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1/variantsets")); |
6519 pathOffset += 17; | 4314 pathOffset += 14; |
6520 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("variantsets/")); | |
6521 pathOffset += 12; | |
6522 index = path.indexOf("/export", pathOffset); | |
6523 unittest.expect(index >= 0, unittest.isTrue); | |
6524 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
6525 pathOffset = index; | |
6526 unittest.expect(subPart, unittest.equals("$arg_variantSetId")); | |
6527 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als("/export")); | |
6528 pathOffset += 7; | |
6529 | 4315 |
6530 var query = (req.url).query; | 4316 var query = (req.url).query; |
6531 var queryOffset = 0; | 4317 var queryOffset = 0; |
6532 var queryMap = {}; | 4318 var queryMap = {}; |
6533 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4319 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6534 parseBool(n) { | 4320 parseBool(n) { |
6535 if (n == "true") return true; | 4321 if (n == "true") return true; |
6536 if (n == "false") return false; | 4322 if (n == "false") return false; |
6537 if (n == null) return null; | 4323 if (n == null) return null; |
6538 throw new core.ArgumentError("Invalid boolean: $n"); | 4324 throw new core.ArgumentError("Invalid boolean: $n"); |
6539 } | 4325 } |
6540 if (query.length > 0) { | 4326 if (query.length > 0) { |
6541 for (var part in query.split("&")) { | 4327 for (var part in query.split("&")) { |
6542 var keyvalue = part.split("="); | 4328 var keyvalue = part.split("="); |
6543 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4329 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
6544 } | 4330 } |
6545 } | 4331 } |
6546 | 4332 |
6547 | 4333 |
6548 var h = { | 4334 var h = { |
6549 "content-type" : "application/json; charset=utf-8", | 4335 "content-type" : "application/json; charset=utf-8", |
6550 }; | 4336 }; |
6551 var resp = convert.JSON.encode(buildExportVariantSetResponse()); | 4337 var resp = convert.JSON.encode(buildVariantSet()); |
6552 return new async.Future.value(stringResponse(200, h, resp)); | 4338 return new async.Future.value(stringResponse(200, h, resp)); |
6553 }), true); | 4339 }), true); |
6554 res.export(arg_request, arg_variantSetId).then(unittest.expectAsync(((api.
ExportVariantSetResponse response) { | 4340 res.create(arg_request).then(unittest.expectAsync(((api.VariantSet respons
e) { |
6555 checkExportVariantSetResponse(response); | 4341 checkVariantSet(response); |
6556 }))); | 4342 }))); |
6557 }); | 4343 }); |
6558 | 4344 |
6559 unittest.test("method--get", () { | 4345 unittest.test("method--delete", () { |
6560 | 4346 |
6561 var mock = new HttpServerMock(); | 4347 var mock = new HttpServerMock(); |
6562 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; | 4348 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; |
6563 var arg_variantSetId = "foo"; | 4349 var arg_variantSetId = "foo"; |
6564 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4350 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6565 var path = (req.url).path; | 4351 var path = (req.url).path; |
6566 var pathOffset = 0; | 4352 var pathOffset = 0; |
6567 var index; | 4353 var index; |
6568 var subPart; | 4354 var subPart; |
6569 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4355 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6570 pathOffset += 1; | 4356 pathOffset += 1; |
6571 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 4357 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("v1/variantsets/")); |
6572 pathOffset += 17; | 4358 pathOffset += 15; |
6573 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("variantsets/")); | |
6574 pathOffset += 12; | |
6575 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4359 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
6576 pathOffset = path.length; | 4360 pathOffset = path.length; |
6577 unittest.expect(subPart, unittest.equals("$arg_variantSetId")); | 4361 unittest.expect(subPart, unittest.equals("$arg_variantSetId")); |
6578 | 4362 |
6579 var query = (req.url).query; | 4363 var query = (req.url).query; |
6580 var queryOffset = 0; | 4364 var queryOffset = 0; |
6581 var queryMap = {}; | 4365 var queryMap = {}; |
6582 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4366 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6583 parseBool(n) { | 4367 parseBool(n) { |
6584 if (n == "true") return true; | 4368 if (n == "true") return true; |
6585 if (n == "false") return false; | 4369 if (n == "false") return false; |
6586 if (n == null) return null; | 4370 if (n == null) return null; |
6587 throw new core.ArgumentError("Invalid boolean: $n"); | 4371 throw new core.ArgumentError("Invalid boolean: $n"); |
6588 } | 4372 } |
6589 if (query.length > 0) { | 4373 if (query.length > 0) { |
6590 for (var part in query.split("&")) { | 4374 for (var part in query.split("&")) { |
6591 var keyvalue = part.split("="); | 4375 var keyvalue = part.split("="); |
6592 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4376 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
6593 } | 4377 } |
6594 } | 4378 } |
6595 | 4379 |
6596 | 4380 |
6597 var h = { | 4381 var h = { |
6598 "content-type" : "application/json; charset=utf-8", | 4382 "content-type" : "application/json; charset=utf-8", |
6599 }; | 4383 }; |
6600 var resp = convert.JSON.encode(buildVariantSet()); | 4384 var resp = convert.JSON.encode(buildEmpty()); |
6601 return new async.Future.value(stringResponse(200, h, resp)); | 4385 return new async.Future.value(stringResponse(200, h, resp)); |
6602 }), true); | 4386 }), true); |
6603 res.get(arg_variantSetId).then(unittest.expectAsync(((api.VariantSet respo
nse) { | 4387 res.delete(arg_variantSetId).then(unittest.expectAsync(((api.Empty respons
e) { |
6604 checkVariantSet(response); | 4388 checkEmpty(response); |
6605 }))); | 4389 }))); |
6606 }); | 4390 }); |
6607 | 4391 |
6608 unittest.test("method--importVariants", () { | 4392 unittest.test("method--export", () { |
6609 | 4393 |
6610 var mock = new HttpServerMock(); | 4394 var mock = new HttpServerMock(); |
6611 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; | 4395 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; |
6612 var arg_request = buildImportVariantsRequest(); | 4396 var arg_request = buildExportVariantSetRequest(); |
6613 var arg_variantSetId = "foo"; | 4397 var arg_variantSetId = "foo"; |
6614 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4398 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6615 var obj = new api.ImportVariantsRequest.fromJson(json); | 4399 var obj = new api.ExportVariantSetRequest.fromJson(json); |
6616 checkImportVariantsRequest(obj); | 4400 checkExportVariantSetRequest(obj); |
6617 | 4401 |
6618 var path = (req.url).path; | 4402 var path = (req.url).path; |
6619 var pathOffset = 0; | 4403 var pathOffset = 0; |
6620 var index; | 4404 var index; |
6621 var subPart; | 4405 var subPart; |
6622 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4406 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6623 pathOffset += 1; | 4407 pathOffset += 1; |
6624 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 4408 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("v1/variantsets/")); |
6625 pathOffset += 17; | 4409 pathOffset += 15; |
6626 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("variantsets/")); | 4410 index = path.indexOf(":export", pathOffset); |
6627 pathOffset += 12; | |
6628 index = path.indexOf("/importVariants", pathOffset); | |
6629 unittest.expect(index >= 0, unittest.isTrue); | 4411 unittest.expect(index >= 0, unittest.isTrue); |
6630 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 4412 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); |
6631 pathOffset = index; | 4413 pathOffset = index; |
6632 unittest.expect(subPart, unittest.equals("$arg_variantSetId")); | 4414 unittest.expect(subPart, unittest.equals("$arg_variantSetId")); |
6633 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("/importVariants")); | 4415 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als(":export")); |
6634 pathOffset += 15; | 4416 pathOffset += 7; |
6635 | 4417 |
6636 var query = (req.url).query; | 4418 var query = (req.url).query; |
6637 var queryOffset = 0; | 4419 var queryOffset = 0; |
6638 var queryMap = {}; | 4420 var queryMap = {}; |
6639 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4421 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6640 parseBool(n) { | 4422 parseBool(n) { |
6641 if (n == "true") return true; | 4423 if (n == "true") return true; |
6642 if (n == "false") return false; | 4424 if (n == "false") return false; |
6643 if (n == null) return null; | 4425 if (n == null) return null; |
6644 throw new core.ArgumentError("Invalid boolean: $n"); | 4426 throw new core.ArgumentError("Invalid boolean: $n"); |
6645 } | 4427 } |
6646 if (query.length > 0) { | 4428 if (query.length > 0) { |
6647 for (var part in query.split("&")) { | 4429 for (var part in query.split("&")) { |
6648 var keyvalue = part.split("="); | 4430 var keyvalue = part.split("="); |
6649 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4431 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
6650 } | 4432 } |
6651 } | 4433 } |
6652 | 4434 |
6653 | 4435 |
6654 var h = { | 4436 var h = { |
6655 "content-type" : "application/json; charset=utf-8", | 4437 "content-type" : "application/json; charset=utf-8", |
6656 }; | 4438 }; |
6657 var resp = convert.JSON.encode(buildImportVariantsResponse()); | 4439 var resp = convert.JSON.encode(buildOperation()); |
6658 return new async.Future.value(stringResponse(200, h, resp)); | 4440 return new async.Future.value(stringResponse(200, h, resp)); |
6659 }), true); | 4441 }), true); |
6660 res.importVariants(arg_request, arg_variantSetId).then(unittest.expectAsyn
c(((api.ImportVariantsResponse response) { | 4442 res.export(arg_request, arg_variantSetId).then(unittest.expectAsync(((api.
Operation response) { |
6661 checkImportVariantsResponse(response); | 4443 checkOperation(response); |
6662 }))); | 4444 }))); |
6663 }); | 4445 }); |
6664 | 4446 |
6665 unittest.test("method--mergeVariants", () { | 4447 unittest.test("method--get", () { |
6666 | 4448 |
6667 var mock = new HttpServerMock(); | 4449 var mock = new HttpServerMock(); |
6668 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; | 4450 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; |
6669 var arg_request = buildMergeVariantsRequest(); | |
6670 var arg_variantSetId = "foo"; | 4451 var arg_variantSetId = "foo"; |
6671 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4452 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6672 var obj = new api.MergeVariantsRequest.fromJson(json); | |
6673 checkMergeVariantsRequest(obj); | |
6674 | |
6675 var path = (req.url).path; | 4453 var path = (req.url).path; |
6676 var pathOffset = 0; | 4454 var pathOffset = 0; |
6677 var index; | 4455 var index; |
6678 var subPart; | 4456 var subPart; |
6679 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4457 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6680 pathOffset += 1; | 4458 pathOffset += 1; |
6681 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 4459 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("v1/variantsets/")); |
6682 pathOffset += 17; | 4460 pathOffset += 15; |
6683 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("variantsets/")); | 4461 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
6684 pathOffset += 12; | 4462 pathOffset = path.length; |
6685 index = path.indexOf("/mergeVariants", pathOffset); | |
6686 unittest.expect(index >= 0, unittest.isTrue); | |
6687 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | |
6688 pathOffset = index; | |
6689 unittest.expect(subPart, unittest.equals("$arg_variantSetId")); | 4463 unittest.expect(subPart, unittest.equals("$arg_variantSetId")); |
6690 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("/mergeVariants")); | |
6691 pathOffset += 14; | |
6692 | 4464 |
6693 var query = (req.url).query; | 4465 var query = (req.url).query; |
6694 var queryOffset = 0; | 4466 var queryOffset = 0; |
6695 var queryMap = {}; | 4467 var queryMap = {}; |
6696 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4468 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6697 parseBool(n) { | 4469 parseBool(n) { |
6698 if (n == "true") return true; | 4470 if (n == "true") return true; |
6699 if (n == "false") return false; | 4471 if (n == "false") return false; |
6700 if (n == null) return null; | 4472 if (n == null) return null; |
6701 throw new core.ArgumentError("Invalid boolean: $n"); | 4473 throw new core.ArgumentError("Invalid boolean: $n"); |
6702 } | 4474 } |
6703 if (query.length > 0) { | 4475 if (query.length > 0) { |
6704 for (var part in query.split("&")) { | 4476 for (var part in query.split("&")) { |
6705 var keyvalue = part.split("="); | 4477 var keyvalue = part.split("="); |
6706 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4478 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
6707 } | 4479 } |
6708 } | 4480 } |
6709 | 4481 |
6710 | 4482 |
6711 var h = { | 4483 var h = { |
6712 "content-type" : "application/json; charset=utf-8", | 4484 "content-type" : "application/json; charset=utf-8", |
6713 }; | 4485 }; |
6714 var resp = ""; | 4486 var resp = convert.JSON.encode(buildVariantSet()); |
6715 return new async.Future.value(stringResponse(200, h, resp)); | 4487 return new async.Future.value(stringResponse(200, h, resp)); |
6716 }), true); | 4488 }), true); |
6717 res.mergeVariants(arg_request, arg_variantSetId).then(unittest.expectAsync
((_) {})); | 4489 res.get(arg_variantSetId).then(unittest.expectAsync(((api.VariantSet respo
nse) { |
| 4490 checkVariantSet(response); |
| 4491 }))); |
6718 }); | 4492 }); |
6719 | 4493 |
6720 unittest.test("method--patch", () { | 4494 unittest.test("method--patch", () { |
6721 | 4495 |
6722 var mock = new HttpServerMock(); | 4496 var mock = new HttpServerMock(); |
6723 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; | 4497 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; |
6724 var arg_request = buildVariantSet(); | 4498 var arg_request = buildVariantSet(); |
6725 var arg_variantSetId = "foo"; | 4499 var arg_variantSetId = "foo"; |
| 4500 var arg_updateMask = "foo"; |
6726 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4501 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6727 var obj = new api.VariantSet.fromJson(json); | 4502 var obj = new api.VariantSet.fromJson(json); |
6728 checkVariantSet(obj); | 4503 checkVariantSet(obj); |
6729 | 4504 |
6730 var path = (req.url).path; | 4505 var path = (req.url).path; |
6731 var pathOffset = 0; | 4506 var pathOffset = 0; |
6732 var index; | 4507 var index; |
6733 var subPart; | 4508 var subPart; |
6734 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4509 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6735 pathOffset += 1; | 4510 pathOffset += 1; |
6736 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 4511 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("v1/variantsets/")); |
6737 pathOffset += 17; | 4512 pathOffset += 15; |
6738 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("variantsets/")); | |
6739 pathOffset += 12; | |
6740 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4513 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
6741 pathOffset = path.length; | 4514 pathOffset = path.length; |
6742 unittest.expect(subPart, unittest.equals("$arg_variantSetId")); | 4515 unittest.expect(subPart, unittest.equals("$arg_variantSetId")); |
6743 | 4516 |
6744 var query = (req.url).query; | 4517 var query = (req.url).query; |
6745 var queryOffset = 0; | 4518 var queryOffset = 0; |
6746 var queryMap = {}; | 4519 var queryMap = {}; |
6747 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4520 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6748 parseBool(n) { | 4521 parseBool(n) { |
6749 if (n == "true") return true; | 4522 if (n == "true") return true; |
6750 if (n == "false") return false; | 4523 if (n == "false") return false; |
6751 if (n == null) return null; | 4524 if (n == null) return null; |
6752 throw new core.ArgumentError("Invalid boolean: $n"); | 4525 throw new core.ArgumentError("Invalid boolean: $n"); |
6753 } | 4526 } |
6754 if (query.length > 0) { | 4527 if (query.length > 0) { |
6755 for (var part in query.split("&")) { | 4528 for (var part in query.split("&")) { |
6756 var keyvalue = part.split("="); | 4529 var keyvalue = part.split("="); |
6757 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4530 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
6758 } | 4531 } |
6759 } | 4532 } |
| 4533 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); |
6760 | 4534 |
6761 | 4535 |
6762 var h = { | 4536 var h = { |
6763 "content-type" : "application/json; charset=utf-8", | 4537 "content-type" : "application/json; charset=utf-8", |
6764 }; | 4538 }; |
6765 var resp = convert.JSON.encode(buildVariantSet()); | 4539 var resp = convert.JSON.encode(buildVariantSet()); |
6766 return new async.Future.value(stringResponse(200, h, resp)); | 4540 return new async.Future.value(stringResponse(200, h, resp)); |
6767 }), true); | 4541 }), true); |
6768 res.patch(arg_request, arg_variantSetId).then(unittest.expectAsync(((api.V
ariantSet response) { | 4542 res.patch(arg_request, arg_variantSetId, updateMask: arg_updateMask).then(
unittest.expectAsync(((api.VariantSet response) { |
6769 checkVariantSet(response); | 4543 checkVariantSet(response); |
6770 }))); | 4544 }))); |
6771 }); | 4545 }); |
6772 | 4546 |
6773 unittest.test("method--search", () { | 4547 unittest.test("method--search", () { |
6774 | 4548 |
6775 var mock = new HttpServerMock(); | 4549 var mock = new HttpServerMock(); |
6776 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; | 4550 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; |
6777 var arg_request = buildSearchVariantSetsRequest(); | 4551 var arg_request = buildSearchVariantSetsRequest(); |
6778 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4552 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
6779 var obj = new api.SearchVariantSetsRequest.fromJson(json); | 4553 var obj = new api.SearchVariantSetsRequest.fromJson(json); |
6780 checkSearchVariantSetsRequest(obj); | 4554 checkSearchVariantSetsRequest(obj); |
6781 | 4555 |
6782 var path = (req.url).path; | 4556 var path = (req.url).path; |
6783 var pathOffset = 0; | 4557 var pathOffset = 0; |
6784 var index; | 4558 var index; |
6785 var subPart; | 4559 var subPart; |
6786 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4560 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
6787 pathOffset += 1; | 4561 pathOffset += 1; |
6788 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | 4562 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("v1/variantsets/search")); |
6789 pathOffset += 17; | 4563 pathOffset += 21; |
6790 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("variantsets/search")); | |
6791 pathOffset += 18; | |
6792 | 4564 |
6793 var query = (req.url).query; | 4565 var query = (req.url).query; |
6794 var queryOffset = 0; | 4566 var queryOffset = 0; |
6795 var queryMap = {}; | 4567 var queryMap = {}; |
6796 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4568 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6797 parseBool(n) { | 4569 parseBool(n) { |
6798 if (n == "true") return true; | 4570 if (n == "true") return true; |
6799 if (n == "false") return false; | 4571 if (n == "false") return false; |
6800 if (n == null) return null; | 4572 if (n == null) return null; |
6801 throw new core.ArgumentError("Invalid boolean: $n"); | 4573 throw new core.ArgumentError("Invalid boolean: $n"); |
(...skipping 10 matching lines...) Expand all Loading... |
6812 "content-type" : "application/json; charset=utf-8", | 4584 "content-type" : "application/json; charset=utf-8", |
6813 }; | 4585 }; |
6814 var resp = convert.JSON.encode(buildSearchVariantSetsResponse()); | 4586 var resp = convert.JSON.encode(buildSearchVariantSetsResponse()); |
6815 return new async.Future.value(stringResponse(200, h, resp)); | 4587 return new async.Future.value(stringResponse(200, h, resp)); |
6816 }), true); | 4588 }), true); |
6817 res.search(arg_request).then(unittest.expectAsync(((api.SearchVariantSetsR
esponse response) { | 4589 res.search(arg_request).then(unittest.expectAsync(((api.SearchVariantSetsR
esponse response) { |
6818 checkSearchVariantSetsResponse(response); | 4590 checkSearchVariantSetsResponse(response); |
6819 }))); | 4591 }))); |
6820 }); | 4592 }); |
6821 | 4593 |
6822 unittest.test("method--update", () { | |
6823 | |
6824 var mock = new HttpServerMock(); | |
6825 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; | |
6826 var arg_request = buildVariantSet(); | |
6827 var arg_variantSetId = "foo"; | |
6828 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
6829 var obj = new api.VariantSet.fromJson(json); | |
6830 checkVariantSet(obj); | |
6831 | |
6832 var path = (req.url).path; | |
6833 var pathOffset = 0; | |
6834 var index; | |
6835 var subPart; | |
6836 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
6837 pathOffset += 1; | |
6838 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("genomics/v1beta2/")); | |
6839 pathOffset += 17; | |
6840 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("variantsets/")); | |
6841 pathOffset += 12; | |
6842 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | |
6843 pathOffset = path.length; | |
6844 unittest.expect(subPart, unittest.equals("$arg_variantSetId")); | |
6845 | |
6846 var query = (req.url).query; | |
6847 var queryOffset = 0; | |
6848 var queryMap = {}; | |
6849 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
6850 parseBool(n) { | |
6851 if (n == "true") return true; | |
6852 if (n == "false") return false; | |
6853 if (n == null) return null; | |
6854 throw new core.ArgumentError("Invalid boolean: $n"); | |
6855 } | |
6856 if (query.length > 0) { | |
6857 for (var part in query.split("&")) { | |
6858 var keyvalue = part.split("="); | |
6859 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
6860 } | |
6861 } | |
6862 | |
6863 | |
6864 var h = { | |
6865 "content-type" : "application/json; charset=utf-8", | |
6866 }; | |
6867 var resp = convert.JSON.encode(buildVariantSet()); | |
6868 return new async.Future.value(stringResponse(200, h, resp)); | |
6869 }), true); | |
6870 res.update(arg_request, arg_variantSetId).then(unittest.expectAsync(((api.
VariantSet response) { | |
6871 checkVariantSet(response); | |
6872 }))); | |
6873 }); | |
6874 | |
6875 }); | 4594 }); |
6876 | 4595 |
6877 | 4596 |
6878 } | 4597 } |
6879 | 4598 |
OLD | NEW |