OLD | NEW |
1 library googleapis.genomics.v1.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; | |
5 import "dart:async" as async; | 4 import "dart:async" as async; |
6 import "dart:convert" as convert; | 5 import "dart:convert" as convert; |
7 | 6 |
8 import 'package:http/http.dart' as http; | 7 import 'package:http/http.dart' as http; |
9 import 'package:http/testing.dart' as http_testing; | |
10 import 'package:test/test.dart' as unittest; | 8 import 'package:test/test.dart' as unittest; |
11 | 9 |
12 import 'package:googleapis/genomics/v1.dart' as api; | 10 import 'package:googleapis/genomics/v1.dart' as api; |
13 | 11 |
14 class HttpServerMock extends http.BaseClient { | 12 class HttpServerMock extends http.BaseClient { |
15 core.Function _callback; | 13 core.Function _callback; |
16 core.bool _expectJson; | 14 core.bool _expectJson; |
17 | 15 |
18 void register(core.Function callback, core.bool expectJson) { | 16 void register(core.Function callback, core.bool expectJson) { |
19 _callback = callback; | 17 _callback = callback; |
20 _expectJson = expectJson; | 18 _expectJson = expectJson; |
21 } | 19 } |
22 | 20 |
23 async.Future<http.StreamedResponse> send(http.BaseRequest request) { | 21 async.Future<http.StreamedResponse> send(http.BaseRequest request) { |
24 if (_expectJson) { | 22 if (_expectJson) { |
25 return request.finalize() | 23 return request |
| 24 .finalize() |
26 .transform(convert.UTF8.decoder) | 25 .transform(convert.UTF8.decoder) |
27 .join('') | 26 .join('') |
28 .then((core.String jsonString) { | 27 .then((core.String jsonString) { |
29 if (jsonString.isEmpty) { | 28 if (jsonString.isEmpty) { |
30 return _callback(request, null); | 29 return _callback(request, null); |
31 } else { | 30 } else { |
32 return _callback(request, convert.JSON.decode(jsonString)); | 31 return _callback(request, convert.JSON.decode(jsonString)); |
33 } | 32 } |
34 }); | 33 }); |
35 } else { | 34 } else { |
36 var stream = request.finalize(); | 35 var stream = request.finalize(); |
37 if (stream == null) { | 36 if (stream == null) { |
38 return _callback(request, []); | 37 return _callback(request, []); |
39 } else { | 38 } else { |
40 return stream.toBytes().then((data) { | 39 return stream.toBytes().then((data) { |
41 return _callback(request, data); | 40 return _callback(request, data); |
42 }); | 41 }); |
43 } | 42 } |
44 } | 43 } |
45 } | 44 } |
46 } | 45 } |
47 | 46 |
48 http.StreamedResponse stringResponse( | 47 http.StreamedResponse stringResponse(core.int status, |
49 core.int status, core.Map<core.String, core.String> headers, core.String bod
y) { | 48 core.Map<core.String, core.String> headers, core.String body) { |
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 49 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
51 return new http.StreamedResponse(stream, status, headers: headers); | 50 return new http.StreamedResponse(stream, status, headers: headers); |
52 } | 51 } |
53 | 52 |
54 buildUnnamed2549() { | 53 buildUnnamed2536() { |
55 var o = new core.List<core.Object>(); | 54 var o = new core.List<core.Object>(); |
56 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 55 o.add({ |
57 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 56 'list': [1, 2, 3], |
| 57 'bool': true, |
| 58 'string': 'foo' |
| 59 }); |
| 60 o.add({ |
| 61 'list': [1, 2, 3], |
| 62 'bool': true, |
| 63 'string': 'foo' |
| 64 }); |
58 return o; | 65 return o; |
59 } | 66 } |
60 | 67 |
61 checkUnnamed2549(core.List<core.Object> o) { | 68 checkUnnamed2536(core.List<core.Object> o) { |
62 unittest.expect(o, unittest.hasLength(2)); | 69 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')); | 70 var casted1 = (o[0]) as core.Map; |
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')); | 71 unittest.expect(casted1, unittest.hasLength(3)); |
| 72 unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); |
| 73 unittest.expect(casted1["bool"], unittest.equals(true)); |
| 74 unittest.expect(casted1["string"], unittest.equals('foo')); |
| 75 var casted2 = (o[1]) as core.Map; |
| 76 unittest.expect(casted2, unittest.hasLength(3)); |
| 77 unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); |
| 78 unittest.expect(casted2["bool"], unittest.equals(true)); |
| 79 unittest.expect(casted2["string"], unittest.equals('foo')); |
65 } | 80 } |
66 | 81 |
67 buildUnnamed2550() { | 82 buildUnnamed2537() { |
68 var o = new core.Map<core.String, core.List<core.Object>>(); | 83 var o = new core.Map<core.String, core.List<core.Object>>(); |
69 o["x"] = buildUnnamed2549(); | 84 o["x"] = buildUnnamed2536(); |
70 o["y"] = buildUnnamed2549(); | 85 o["y"] = buildUnnamed2536(); |
71 return o; | 86 return o; |
72 } | 87 } |
73 | 88 |
74 checkUnnamed2550(core.Map<core.String, core.List<core.Object>> o) { | 89 checkUnnamed2537(core.Map<core.String, core.List<core.Object>> o) { |
75 unittest.expect(o, unittest.hasLength(2)); | 90 unittest.expect(o, unittest.hasLength(2)); |
76 checkUnnamed2549(o["x"]); | 91 checkUnnamed2536(o["x"]); |
77 checkUnnamed2549(o["y"]); | 92 checkUnnamed2536(o["y"]); |
78 } | 93 } |
79 | 94 |
80 core.int buildCounterAnnotation = 0; | 95 core.int buildCounterAnnotation = 0; |
81 buildAnnotation() { | 96 buildAnnotation() { |
82 var o = new api.Annotation(); | 97 var o = new api.Annotation(); |
83 buildCounterAnnotation++; | 98 buildCounterAnnotation++; |
84 if (buildCounterAnnotation < 3) { | 99 if (buildCounterAnnotation < 3) { |
85 o.annotationSetId = "foo"; | 100 o.annotationSetId = "foo"; |
86 o.end = "foo"; | 101 o.end = "foo"; |
87 o.id = "foo"; | 102 o.id = "foo"; |
88 o.info = buildUnnamed2550(); | 103 o.info = buildUnnamed2537(); |
89 o.name = "foo"; | 104 o.name = "foo"; |
90 o.referenceId = "foo"; | 105 o.referenceId = "foo"; |
91 o.referenceName = "foo"; | 106 o.referenceName = "foo"; |
92 o.reverseStrand = true; | 107 o.reverseStrand = true; |
93 o.start = "foo"; | 108 o.start = "foo"; |
94 o.transcript = buildTranscript(); | 109 o.transcript = buildTranscript(); |
95 o.type = "foo"; | 110 o.type = "foo"; |
96 o.variant = buildVariantAnnotation(); | 111 o.variant = buildVariantAnnotation(); |
97 } | 112 } |
98 buildCounterAnnotation--; | 113 buildCounterAnnotation--; |
99 return o; | 114 return o; |
100 } | 115 } |
101 | 116 |
102 checkAnnotation(api.Annotation o) { | 117 checkAnnotation(api.Annotation o) { |
103 buildCounterAnnotation++; | 118 buildCounterAnnotation++; |
104 if (buildCounterAnnotation < 3) { | 119 if (buildCounterAnnotation < 3) { |
105 unittest.expect(o.annotationSetId, unittest.equals('foo')); | 120 unittest.expect(o.annotationSetId, unittest.equals('foo')); |
106 unittest.expect(o.end, unittest.equals('foo')); | 121 unittest.expect(o.end, unittest.equals('foo')); |
107 unittest.expect(o.id, unittest.equals('foo')); | 122 unittest.expect(o.id, unittest.equals('foo')); |
108 checkUnnamed2550(o.info); | 123 checkUnnamed2537(o.info); |
109 unittest.expect(o.name, unittest.equals('foo')); | 124 unittest.expect(o.name, unittest.equals('foo')); |
110 unittest.expect(o.referenceId, unittest.equals('foo')); | 125 unittest.expect(o.referenceId, unittest.equals('foo')); |
111 unittest.expect(o.referenceName, unittest.equals('foo')); | 126 unittest.expect(o.referenceName, unittest.equals('foo')); |
112 unittest.expect(o.reverseStrand, unittest.isTrue); | 127 unittest.expect(o.reverseStrand, unittest.isTrue); |
113 unittest.expect(o.start, unittest.equals('foo')); | 128 unittest.expect(o.start, unittest.equals('foo')); |
114 checkTranscript(o.transcript); | 129 checkTranscript(o.transcript); |
115 unittest.expect(o.type, unittest.equals('foo')); | 130 unittest.expect(o.type, unittest.equals('foo')); |
116 checkVariantAnnotation(o.variant); | 131 checkVariantAnnotation(o.variant); |
117 } | 132 } |
118 buildCounterAnnotation--; | 133 buildCounterAnnotation--; |
119 } | 134 } |
120 | 135 |
121 buildUnnamed2551() { | 136 buildUnnamed2538() { |
122 var o = new core.List<core.Object>(); | 137 var o = new core.List<core.Object>(); |
123 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 138 o.add({ |
124 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 139 'list': [1, 2, 3], |
| 140 'bool': true, |
| 141 'string': 'foo' |
| 142 }); |
| 143 o.add({ |
| 144 'list': [1, 2, 3], |
| 145 'bool': true, |
| 146 'string': 'foo' |
| 147 }); |
125 return o; | 148 return o; |
126 } | 149 } |
127 | 150 |
128 checkUnnamed2551(core.List<core.Object> o) { | 151 checkUnnamed2538(core.List<core.Object> o) { |
129 unittest.expect(o, unittest.hasLength(2)); | 152 unittest.expect(o, unittest.hasLength(2)); |
130 var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(
3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], u
nittest.equals('foo')); | 153 var casted3 = (o[0]) as core.Map; |
131 var casted4 = (o[1]) as core.Map; unittest.expect(casted4, unittest.hasLength(
3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], u
nittest.equals('foo')); | 154 unittest.expect(casted3, unittest.hasLength(3)); |
| 155 unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); |
| 156 unittest.expect(casted3["bool"], unittest.equals(true)); |
| 157 unittest.expect(casted3["string"], unittest.equals('foo')); |
| 158 var casted4 = (o[1]) as core.Map; |
| 159 unittest.expect(casted4, unittest.hasLength(3)); |
| 160 unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); |
| 161 unittest.expect(casted4["bool"], unittest.equals(true)); |
| 162 unittest.expect(casted4["string"], unittest.equals('foo')); |
132 } | 163 } |
133 | 164 |
134 buildUnnamed2552() { | 165 buildUnnamed2539() { |
135 var o = new core.Map<core.String, core.List<core.Object>>(); | 166 var o = new core.Map<core.String, core.List<core.Object>>(); |
136 o["x"] = buildUnnamed2551(); | 167 o["x"] = buildUnnamed2538(); |
137 o["y"] = buildUnnamed2551(); | 168 o["y"] = buildUnnamed2538(); |
138 return o; | 169 return o; |
139 } | 170 } |
140 | 171 |
141 checkUnnamed2552(core.Map<core.String, core.List<core.Object>> o) { | 172 checkUnnamed2539(core.Map<core.String, core.List<core.Object>> o) { |
142 unittest.expect(o, unittest.hasLength(2)); | 173 unittest.expect(o, unittest.hasLength(2)); |
143 checkUnnamed2551(o["x"]); | 174 checkUnnamed2538(o["x"]); |
144 checkUnnamed2551(o["y"]); | 175 checkUnnamed2538(o["y"]); |
145 } | 176 } |
146 | 177 |
147 core.int buildCounterAnnotationSet = 0; | 178 core.int buildCounterAnnotationSet = 0; |
148 buildAnnotationSet() { | 179 buildAnnotationSet() { |
149 var o = new api.AnnotationSet(); | 180 var o = new api.AnnotationSet(); |
150 buildCounterAnnotationSet++; | 181 buildCounterAnnotationSet++; |
151 if (buildCounterAnnotationSet < 3) { | 182 if (buildCounterAnnotationSet < 3) { |
152 o.datasetId = "foo"; | 183 o.datasetId = "foo"; |
153 o.id = "foo"; | 184 o.id = "foo"; |
154 o.info = buildUnnamed2552(); | 185 o.info = buildUnnamed2539(); |
155 o.name = "foo"; | 186 o.name = "foo"; |
156 o.referenceSetId = "foo"; | 187 o.referenceSetId = "foo"; |
157 o.sourceUri = "foo"; | 188 o.sourceUri = "foo"; |
158 o.type = "foo"; | 189 o.type = "foo"; |
159 } | 190 } |
160 buildCounterAnnotationSet--; | 191 buildCounterAnnotationSet--; |
161 return o; | 192 return o; |
162 } | 193 } |
163 | 194 |
164 checkAnnotationSet(api.AnnotationSet o) { | 195 checkAnnotationSet(api.AnnotationSet o) { |
165 buildCounterAnnotationSet++; | 196 buildCounterAnnotationSet++; |
166 if (buildCounterAnnotationSet < 3) { | 197 if (buildCounterAnnotationSet < 3) { |
167 unittest.expect(o.datasetId, unittest.equals('foo')); | 198 unittest.expect(o.datasetId, unittest.equals('foo')); |
168 unittest.expect(o.id, unittest.equals('foo')); | 199 unittest.expect(o.id, unittest.equals('foo')); |
169 checkUnnamed2552(o.info); | 200 checkUnnamed2539(o.info); |
170 unittest.expect(o.name, unittest.equals('foo')); | 201 unittest.expect(o.name, unittest.equals('foo')); |
171 unittest.expect(o.referenceSetId, unittest.equals('foo')); | 202 unittest.expect(o.referenceSetId, unittest.equals('foo')); |
172 unittest.expect(o.sourceUri, unittest.equals('foo')); | 203 unittest.expect(o.sourceUri, unittest.equals('foo')); |
173 unittest.expect(o.type, unittest.equals('foo')); | 204 unittest.expect(o.type, unittest.equals('foo')); |
174 } | 205 } |
175 buildCounterAnnotationSet--; | 206 buildCounterAnnotationSet--; |
176 } | 207 } |
177 | 208 |
178 buildUnnamed2553() { | 209 buildUnnamed2540() { |
179 var o = new core.List<api.Annotation>(); | 210 var o = new core.List<api.Annotation>(); |
180 o.add(buildAnnotation()); | 211 o.add(buildAnnotation()); |
181 o.add(buildAnnotation()); | 212 o.add(buildAnnotation()); |
182 return o; | 213 return o; |
183 } | 214 } |
184 | 215 |
185 checkUnnamed2553(core.List<api.Annotation> o) { | 216 checkUnnamed2540(core.List<api.Annotation> o) { |
186 unittest.expect(o, unittest.hasLength(2)); | 217 unittest.expect(o, unittest.hasLength(2)); |
187 checkAnnotation(o[0]); | 218 checkAnnotation(o[0]); |
188 checkAnnotation(o[1]); | 219 checkAnnotation(o[1]); |
189 } | 220 } |
190 | 221 |
191 core.int buildCounterBatchCreateAnnotationsRequest = 0; | 222 core.int buildCounterBatchCreateAnnotationsRequest = 0; |
192 buildBatchCreateAnnotationsRequest() { | 223 buildBatchCreateAnnotationsRequest() { |
193 var o = new api.BatchCreateAnnotationsRequest(); | 224 var o = new api.BatchCreateAnnotationsRequest(); |
194 buildCounterBatchCreateAnnotationsRequest++; | 225 buildCounterBatchCreateAnnotationsRequest++; |
195 if (buildCounterBatchCreateAnnotationsRequest < 3) { | 226 if (buildCounterBatchCreateAnnotationsRequest < 3) { |
196 o.annotations = buildUnnamed2553(); | 227 o.annotations = buildUnnamed2540(); |
197 o.requestId = "foo"; | 228 o.requestId = "foo"; |
198 } | 229 } |
199 buildCounterBatchCreateAnnotationsRequest--; | 230 buildCounterBatchCreateAnnotationsRequest--; |
200 return o; | 231 return o; |
201 } | 232 } |
202 | 233 |
203 checkBatchCreateAnnotationsRequest(api.BatchCreateAnnotationsRequest o) { | 234 checkBatchCreateAnnotationsRequest(api.BatchCreateAnnotationsRequest o) { |
204 buildCounterBatchCreateAnnotationsRequest++; | 235 buildCounterBatchCreateAnnotationsRequest++; |
205 if (buildCounterBatchCreateAnnotationsRequest < 3) { | 236 if (buildCounterBatchCreateAnnotationsRequest < 3) { |
206 checkUnnamed2553(o.annotations); | 237 checkUnnamed2540(o.annotations); |
207 unittest.expect(o.requestId, unittest.equals('foo')); | 238 unittest.expect(o.requestId, unittest.equals('foo')); |
208 } | 239 } |
209 buildCounterBatchCreateAnnotationsRequest--; | 240 buildCounterBatchCreateAnnotationsRequest--; |
210 } | 241 } |
211 | 242 |
212 buildUnnamed2554() { | 243 buildUnnamed2541() { |
213 var o = new core.List<api.Entry>(); | 244 var o = new core.List<api.Entry>(); |
214 o.add(buildEntry()); | 245 o.add(buildEntry()); |
215 o.add(buildEntry()); | 246 o.add(buildEntry()); |
216 return o; | 247 return o; |
217 } | 248 } |
218 | 249 |
219 checkUnnamed2554(core.List<api.Entry> o) { | 250 checkUnnamed2541(core.List<api.Entry> o) { |
220 unittest.expect(o, unittest.hasLength(2)); | 251 unittest.expect(o, unittest.hasLength(2)); |
221 checkEntry(o[0]); | 252 checkEntry(o[0]); |
222 checkEntry(o[1]); | 253 checkEntry(o[1]); |
223 } | 254 } |
224 | 255 |
225 core.int buildCounterBatchCreateAnnotationsResponse = 0; | 256 core.int buildCounterBatchCreateAnnotationsResponse = 0; |
226 buildBatchCreateAnnotationsResponse() { | 257 buildBatchCreateAnnotationsResponse() { |
227 var o = new api.BatchCreateAnnotationsResponse(); | 258 var o = new api.BatchCreateAnnotationsResponse(); |
228 buildCounterBatchCreateAnnotationsResponse++; | 259 buildCounterBatchCreateAnnotationsResponse++; |
229 if (buildCounterBatchCreateAnnotationsResponse < 3) { | 260 if (buildCounterBatchCreateAnnotationsResponse < 3) { |
230 o.entries = buildUnnamed2554(); | 261 o.entries = buildUnnamed2541(); |
231 } | 262 } |
232 buildCounterBatchCreateAnnotationsResponse--; | 263 buildCounterBatchCreateAnnotationsResponse--; |
233 return o; | 264 return o; |
234 } | 265 } |
235 | 266 |
236 checkBatchCreateAnnotationsResponse(api.BatchCreateAnnotationsResponse o) { | 267 checkBatchCreateAnnotationsResponse(api.BatchCreateAnnotationsResponse o) { |
237 buildCounterBatchCreateAnnotationsResponse++; | 268 buildCounterBatchCreateAnnotationsResponse++; |
238 if (buildCounterBatchCreateAnnotationsResponse < 3) { | 269 if (buildCounterBatchCreateAnnotationsResponse < 3) { |
239 checkUnnamed2554(o.entries); | 270 checkUnnamed2541(o.entries); |
240 } | 271 } |
241 buildCounterBatchCreateAnnotationsResponse--; | 272 buildCounterBatchCreateAnnotationsResponse--; |
242 } | 273 } |
243 | 274 |
244 buildUnnamed2555() { | 275 buildUnnamed2542() { |
245 var o = new core.List<core.String>(); | 276 var o = new core.List<core.String>(); |
246 o.add("foo"); | 277 o.add("foo"); |
247 o.add("foo"); | 278 o.add("foo"); |
248 return o; | 279 return o; |
249 } | 280 } |
250 | 281 |
251 checkUnnamed2555(core.List<core.String> o) { | 282 checkUnnamed2542(core.List<core.String> o) { |
252 unittest.expect(o, unittest.hasLength(2)); | 283 unittest.expect(o, unittest.hasLength(2)); |
253 unittest.expect(o[0], unittest.equals('foo')); | 284 unittest.expect(o[0], unittest.equals('foo')); |
254 unittest.expect(o[1], unittest.equals('foo')); | 285 unittest.expect(o[1], unittest.equals('foo')); |
255 } | 286 } |
256 | 287 |
257 core.int buildCounterBinding = 0; | 288 core.int buildCounterBinding = 0; |
258 buildBinding() { | 289 buildBinding() { |
259 var o = new api.Binding(); | 290 var o = new api.Binding(); |
260 buildCounterBinding++; | 291 buildCounterBinding++; |
261 if (buildCounterBinding < 3) { | 292 if (buildCounterBinding < 3) { |
262 o.members = buildUnnamed2555(); | 293 o.members = buildUnnamed2542(); |
263 o.role = "foo"; | 294 o.role = "foo"; |
264 } | 295 } |
265 buildCounterBinding--; | 296 buildCounterBinding--; |
266 return o; | 297 return o; |
267 } | 298 } |
268 | 299 |
269 checkBinding(api.Binding o) { | 300 checkBinding(api.Binding o) { |
270 buildCounterBinding++; | 301 buildCounterBinding++; |
271 if (buildCounterBinding < 3) { | 302 if (buildCounterBinding < 3) { |
272 checkUnnamed2555(o.members); | 303 checkUnnamed2542(o.members); |
273 unittest.expect(o.role, unittest.equals('foo')); | 304 unittest.expect(o.role, unittest.equals('foo')); |
274 } | 305 } |
275 buildCounterBinding--; | 306 buildCounterBinding--; |
276 } | 307 } |
277 | 308 |
278 buildUnnamed2556() { | 309 buildUnnamed2543() { |
279 var o = new core.List<core.Object>(); | 310 var o = new core.List<core.Object>(); |
280 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 311 o.add({ |
281 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 312 'list': [1, 2, 3], |
| 313 'bool': true, |
| 314 'string': 'foo' |
| 315 }); |
| 316 o.add({ |
| 317 'list': [1, 2, 3], |
| 318 'bool': true, |
| 319 'string': 'foo' |
| 320 }); |
282 return o; | 321 return o; |
283 } | 322 } |
284 | 323 |
285 checkUnnamed2556(core.List<core.Object> o) { | 324 checkUnnamed2543(core.List<core.Object> o) { |
286 unittest.expect(o, unittest.hasLength(2)); | 325 unittest.expect(o, unittest.hasLength(2)); |
287 var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(
3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], u
nittest.equals('foo')); | 326 var casted5 = (o[0]) as core.Map; |
288 var casted6 = (o[1]) as core.Map; unittest.expect(casted6, unittest.hasLength(
3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], u
nittest.equals('foo')); | 327 unittest.expect(casted5, unittest.hasLength(3)); |
| 328 unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); |
| 329 unittest.expect(casted5["bool"], unittest.equals(true)); |
| 330 unittest.expect(casted5["string"], unittest.equals('foo')); |
| 331 var casted6 = (o[1]) as core.Map; |
| 332 unittest.expect(casted6, unittest.hasLength(3)); |
| 333 unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); |
| 334 unittest.expect(casted6["bool"], unittest.equals(true)); |
| 335 unittest.expect(casted6["string"], unittest.equals('foo')); |
289 } | 336 } |
290 | 337 |
291 buildUnnamed2557() { | 338 buildUnnamed2544() { |
292 var o = new core.Map<core.String, core.List<core.Object>>(); | 339 var o = new core.Map<core.String, core.List<core.Object>>(); |
293 o["x"] = buildUnnamed2556(); | 340 o["x"] = buildUnnamed2543(); |
294 o["y"] = buildUnnamed2556(); | 341 o["y"] = buildUnnamed2543(); |
295 return o; | 342 return o; |
296 } | 343 } |
297 | 344 |
298 checkUnnamed2557(core.Map<core.String, core.List<core.Object>> o) { | 345 checkUnnamed2544(core.Map<core.String, core.List<core.Object>> o) { |
299 unittest.expect(o, unittest.hasLength(2)); | 346 unittest.expect(o, unittest.hasLength(2)); |
300 checkUnnamed2556(o["x"]); | 347 checkUnnamed2543(o["x"]); |
301 checkUnnamed2556(o["y"]); | 348 checkUnnamed2543(o["y"]); |
302 } | 349 } |
303 | 350 |
304 buildUnnamed2558() { | 351 buildUnnamed2545() { |
305 var o = new core.List<core.String>(); | 352 var o = new core.List<core.String>(); |
306 o.add("foo"); | 353 o.add("foo"); |
307 o.add("foo"); | 354 o.add("foo"); |
308 return o; | 355 return o; |
309 } | 356 } |
310 | 357 |
311 checkUnnamed2558(core.List<core.String> o) { | 358 checkUnnamed2545(core.List<core.String> o) { |
312 unittest.expect(o, unittest.hasLength(2)); | 359 unittest.expect(o, unittest.hasLength(2)); |
313 unittest.expect(o[0], unittest.equals('foo')); | 360 unittest.expect(o[0], unittest.equals('foo')); |
314 unittest.expect(o[1], unittest.equals('foo')); | 361 unittest.expect(o[1], unittest.equals('foo')); |
315 } | 362 } |
316 | 363 |
317 core.int buildCounterCallSet = 0; | 364 core.int buildCounterCallSet = 0; |
318 buildCallSet() { | 365 buildCallSet() { |
319 var o = new api.CallSet(); | 366 var o = new api.CallSet(); |
320 buildCounterCallSet++; | 367 buildCounterCallSet++; |
321 if (buildCounterCallSet < 3) { | 368 if (buildCounterCallSet < 3) { |
322 o.created = "foo"; | 369 o.created = "foo"; |
323 o.id = "foo"; | 370 o.id = "foo"; |
324 o.info = buildUnnamed2557(); | 371 o.info = buildUnnamed2544(); |
325 o.name = "foo"; | 372 o.name = "foo"; |
326 o.sampleId = "foo"; | 373 o.sampleId = "foo"; |
327 o.variantSetIds = buildUnnamed2558(); | 374 o.variantSetIds = buildUnnamed2545(); |
328 } | 375 } |
329 buildCounterCallSet--; | 376 buildCounterCallSet--; |
330 return o; | 377 return o; |
331 } | 378 } |
332 | 379 |
333 checkCallSet(api.CallSet o) { | 380 checkCallSet(api.CallSet o) { |
334 buildCounterCallSet++; | 381 buildCounterCallSet++; |
335 if (buildCounterCallSet < 3) { | 382 if (buildCounterCallSet < 3) { |
336 unittest.expect(o.created, unittest.equals('foo')); | 383 unittest.expect(o.created, unittest.equals('foo')); |
337 unittest.expect(o.id, unittest.equals('foo')); | 384 unittest.expect(o.id, unittest.equals('foo')); |
338 checkUnnamed2557(o.info); | 385 checkUnnamed2544(o.info); |
339 unittest.expect(o.name, unittest.equals('foo')); | 386 unittest.expect(o.name, unittest.equals('foo')); |
340 unittest.expect(o.sampleId, unittest.equals('foo')); | 387 unittest.expect(o.sampleId, unittest.equals('foo')); |
341 checkUnnamed2558(o.variantSetIds); | 388 checkUnnamed2545(o.variantSetIds); |
342 } | 389 } |
343 buildCounterCallSet--; | 390 buildCounterCallSet--; |
344 } | 391 } |
345 | 392 |
346 core.int buildCounterCancelOperationRequest = 0; | 393 core.int buildCounterCancelOperationRequest = 0; |
347 buildCancelOperationRequest() { | 394 buildCancelOperationRequest() { |
348 var o = new api.CancelOperationRequest(); | 395 var o = new api.CancelOperationRequest(); |
349 buildCounterCancelOperationRequest++; | 396 buildCounterCancelOperationRequest++; |
350 if (buildCounterCancelOperationRequest < 3) { | 397 if (buildCounterCancelOperationRequest < 3) {} |
351 } | |
352 buildCounterCancelOperationRequest--; | 398 buildCounterCancelOperationRequest--; |
353 return o; | 399 return o; |
354 } | 400 } |
355 | 401 |
356 checkCancelOperationRequest(api.CancelOperationRequest o) { | 402 checkCancelOperationRequest(api.CancelOperationRequest o) { |
357 buildCounterCancelOperationRequest++; | 403 buildCounterCancelOperationRequest++; |
358 if (buildCounterCancelOperationRequest < 3) { | 404 if (buildCounterCancelOperationRequest < 3) {} |
359 } | |
360 buildCounterCancelOperationRequest--; | 405 buildCounterCancelOperationRequest--; |
361 } | 406 } |
362 | 407 |
363 core.int buildCounterCigarUnit = 0; | 408 core.int buildCounterCigarUnit = 0; |
364 buildCigarUnit() { | 409 buildCigarUnit() { |
365 var o = new api.CigarUnit(); | 410 var o = new api.CigarUnit(); |
366 buildCounterCigarUnit++; | 411 buildCounterCigarUnit++; |
367 if (buildCounterCigarUnit < 3) { | 412 if (buildCounterCigarUnit < 3) { |
368 o.operation = "foo"; | 413 o.operation = "foo"; |
369 o.operationLength = "foo"; | 414 o.operationLength = "foo"; |
370 o.referenceSequence = "foo"; | 415 o.referenceSequence = "foo"; |
371 } | 416 } |
372 buildCounterCigarUnit--; | 417 buildCounterCigarUnit--; |
373 return o; | 418 return o; |
374 } | 419 } |
375 | 420 |
376 checkCigarUnit(api.CigarUnit o) { | 421 checkCigarUnit(api.CigarUnit o) { |
377 buildCounterCigarUnit++; | 422 buildCounterCigarUnit++; |
378 if (buildCounterCigarUnit < 3) { | 423 if (buildCounterCigarUnit < 3) { |
379 unittest.expect(o.operation, unittest.equals('foo')); | 424 unittest.expect(o.operation, unittest.equals('foo')); |
380 unittest.expect(o.operationLength, unittest.equals('foo')); | 425 unittest.expect(o.operationLength, unittest.equals('foo')); |
381 unittest.expect(o.referenceSequence, unittest.equals('foo')); | 426 unittest.expect(o.referenceSequence, unittest.equals('foo')); |
382 } | 427 } |
383 buildCounterCigarUnit--; | 428 buildCounterCigarUnit--; |
384 } | 429 } |
385 | 430 |
386 buildUnnamed2559() { | 431 buildUnnamed2546() { |
387 var o = new core.List<api.ExternalId>(); | 432 var o = new core.List<api.ExternalId>(); |
388 o.add(buildExternalId()); | 433 o.add(buildExternalId()); |
389 o.add(buildExternalId()); | 434 o.add(buildExternalId()); |
390 return o; | 435 return o; |
391 } | 436 } |
392 | 437 |
393 checkUnnamed2559(core.List<api.ExternalId> o) { | 438 checkUnnamed2546(core.List<api.ExternalId> o) { |
394 unittest.expect(o, unittest.hasLength(2)); | 439 unittest.expect(o, unittest.hasLength(2)); |
395 checkExternalId(o[0]); | 440 checkExternalId(o[0]); |
396 checkExternalId(o[1]); | 441 checkExternalId(o[1]); |
397 } | 442 } |
398 | 443 |
399 buildUnnamed2560() { | 444 buildUnnamed2547() { |
400 var o = new core.List<core.String>(); | 445 var o = new core.List<core.String>(); |
401 o.add("foo"); | 446 o.add("foo"); |
402 o.add("foo"); | 447 o.add("foo"); |
403 return o; | 448 return o; |
404 } | 449 } |
405 | 450 |
406 checkUnnamed2560(core.List<core.String> o) { | 451 checkUnnamed2547(core.List<core.String> o) { |
407 unittest.expect(o, unittest.hasLength(2)); | 452 unittest.expect(o, unittest.hasLength(2)); |
408 unittest.expect(o[0], unittest.equals('foo')); | 453 unittest.expect(o[0], unittest.equals('foo')); |
409 unittest.expect(o[1], unittest.equals('foo')); | 454 unittest.expect(o[1], unittest.equals('foo')); |
410 } | 455 } |
411 | 456 |
412 core.int buildCounterClinicalCondition = 0; | 457 core.int buildCounterClinicalCondition = 0; |
413 buildClinicalCondition() { | 458 buildClinicalCondition() { |
414 var o = new api.ClinicalCondition(); | 459 var o = new api.ClinicalCondition(); |
415 buildCounterClinicalCondition++; | 460 buildCounterClinicalCondition++; |
416 if (buildCounterClinicalCondition < 3) { | 461 if (buildCounterClinicalCondition < 3) { |
417 o.conceptId = "foo"; | 462 o.conceptId = "foo"; |
418 o.externalIds = buildUnnamed2559(); | 463 o.externalIds = buildUnnamed2546(); |
419 o.names = buildUnnamed2560(); | 464 o.names = buildUnnamed2547(); |
420 o.omimId = "foo"; | 465 o.omimId = "foo"; |
421 } | 466 } |
422 buildCounterClinicalCondition--; | 467 buildCounterClinicalCondition--; |
423 return o; | 468 return o; |
424 } | 469 } |
425 | 470 |
426 checkClinicalCondition(api.ClinicalCondition o) { | 471 checkClinicalCondition(api.ClinicalCondition o) { |
427 buildCounterClinicalCondition++; | 472 buildCounterClinicalCondition++; |
428 if (buildCounterClinicalCondition < 3) { | 473 if (buildCounterClinicalCondition < 3) { |
429 unittest.expect(o.conceptId, unittest.equals('foo')); | 474 unittest.expect(o.conceptId, unittest.equals('foo')); |
430 checkUnnamed2559(o.externalIds); | 475 checkUnnamed2546(o.externalIds); |
431 checkUnnamed2560(o.names); | 476 checkUnnamed2547(o.names); |
432 unittest.expect(o.omimId, unittest.equals('foo')); | 477 unittest.expect(o.omimId, unittest.equals('foo')); |
433 } | 478 } |
434 buildCounterClinicalCondition--; | 479 buildCounterClinicalCondition--; |
435 } | 480 } |
436 | 481 |
437 core.int buildCounterCodingSequence = 0; | 482 core.int buildCounterCodingSequence = 0; |
438 buildCodingSequence() { | 483 buildCodingSequence() { |
439 var o = new api.CodingSequence(); | 484 var o = new api.CodingSequence(); |
440 buildCounterCodingSequence++; | 485 buildCounterCodingSequence++; |
441 if (buildCounterCodingSequence < 3) { | 486 if (buildCounterCodingSequence < 3) { |
442 o.end = "foo"; | 487 o.end = "foo"; |
443 o.start = "foo"; | 488 o.start = "foo"; |
444 } | 489 } |
445 buildCounterCodingSequence--; | 490 buildCounterCodingSequence--; |
446 return o; | 491 return o; |
447 } | 492 } |
448 | 493 |
449 checkCodingSequence(api.CodingSequence o) { | 494 checkCodingSequence(api.CodingSequence o) { |
450 buildCounterCodingSequence++; | 495 buildCounterCodingSequence++; |
451 if (buildCounterCodingSequence < 3) { | 496 if (buildCounterCodingSequence < 3) { |
452 unittest.expect(o.end, unittest.equals('foo')); | 497 unittest.expect(o.end, unittest.equals('foo')); |
453 unittest.expect(o.start, unittest.equals('foo')); | 498 unittest.expect(o.start, unittest.equals('foo')); |
454 } | 499 } |
455 buildCounterCodingSequence--; | 500 buildCounterCodingSequence--; |
456 } | 501 } |
457 | 502 |
458 buildUnnamed2561() { | 503 buildUnnamed2548() { |
459 var o = new core.List<core.String>(); | 504 var o = new core.List<core.String>(); |
460 o.add("foo"); | 505 o.add("foo"); |
461 o.add("foo"); | 506 o.add("foo"); |
462 return o; | 507 return o; |
463 } | 508 } |
464 | 509 |
465 checkUnnamed2561(core.List<core.String> o) { | 510 checkUnnamed2548(core.List<core.String> o) { |
466 unittest.expect(o, unittest.hasLength(2)); | 511 unittest.expect(o, unittest.hasLength(2)); |
467 unittest.expect(o[0], unittest.equals('foo')); | 512 unittest.expect(o[0], unittest.equals('foo')); |
468 unittest.expect(o[1], unittest.equals('foo')); | 513 unittest.expect(o[1], unittest.equals('foo')); |
469 } | 514 } |
470 | 515 |
471 core.int buildCounterComputeEngine = 0; | 516 core.int buildCounterComputeEngine = 0; |
472 buildComputeEngine() { | 517 buildComputeEngine() { |
473 var o = new api.ComputeEngine(); | 518 var o = new api.ComputeEngine(); |
474 buildCounterComputeEngine++; | 519 buildCounterComputeEngine++; |
475 if (buildCounterComputeEngine < 3) { | 520 if (buildCounterComputeEngine < 3) { |
476 o.diskNames = buildUnnamed2561(); | 521 o.diskNames = buildUnnamed2548(); |
477 o.instanceName = "foo"; | 522 o.instanceName = "foo"; |
478 o.machineType = "foo"; | 523 o.machineType = "foo"; |
479 o.zone = "foo"; | 524 o.zone = "foo"; |
480 } | 525 } |
481 buildCounterComputeEngine--; | 526 buildCounterComputeEngine--; |
482 return o; | 527 return o; |
483 } | 528 } |
484 | 529 |
485 checkComputeEngine(api.ComputeEngine o) { | 530 checkComputeEngine(api.ComputeEngine o) { |
486 buildCounterComputeEngine++; | 531 buildCounterComputeEngine++; |
487 if (buildCounterComputeEngine < 3) { | 532 if (buildCounterComputeEngine < 3) { |
488 checkUnnamed2561(o.diskNames); | 533 checkUnnamed2548(o.diskNames); |
489 unittest.expect(o.instanceName, unittest.equals('foo')); | 534 unittest.expect(o.instanceName, unittest.equals('foo')); |
490 unittest.expect(o.machineType, unittest.equals('foo')); | 535 unittest.expect(o.machineType, unittest.equals('foo')); |
491 unittest.expect(o.zone, unittest.equals('foo')); | 536 unittest.expect(o.zone, unittest.equals('foo')); |
492 } | 537 } |
493 buildCounterComputeEngine--; | 538 buildCounterComputeEngine--; |
494 } | 539 } |
495 | 540 |
496 core.int buildCounterCoverageBucket = 0; | 541 core.int buildCounterCoverageBucket = 0; |
497 buildCoverageBucket() { | 542 buildCoverageBucket() { |
498 var o = new api.CoverageBucket(); | 543 var o = new api.CoverageBucket(); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
536 unittest.expect(o.name, unittest.equals('foo')); | 581 unittest.expect(o.name, unittest.equals('foo')); |
537 unittest.expect(o.projectId, unittest.equals('foo')); | 582 unittest.expect(o.projectId, unittest.equals('foo')); |
538 } | 583 } |
539 buildCounterDataset--; | 584 buildCounterDataset--; |
540 } | 585 } |
541 | 586 |
542 core.int buildCounterEmpty = 0; | 587 core.int buildCounterEmpty = 0; |
543 buildEmpty() { | 588 buildEmpty() { |
544 var o = new api.Empty(); | 589 var o = new api.Empty(); |
545 buildCounterEmpty++; | 590 buildCounterEmpty++; |
546 if (buildCounterEmpty < 3) { | 591 if (buildCounterEmpty < 3) {} |
547 } | |
548 buildCounterEmpty--; | 592 buildCounterEmpty--; |
549 return o; | 593 return o; |
550 } | 594 } |
551 | 595 |
552 checkEmpty(api.Empty o) { | 596 checkEmpty(api.Empty o) { |
553 buildCounterEmpty++; | 597 buildCounterEmpty++; |
554 if (buildCounterEmpty < 3) { | 598 if (buildCounterEmpty < 3) {} |
555 } | |
556 buildCounterEmpty--; | 599 buildCounterEmpty--; |
557 } | 600 } |
558 | 601 |
559 core.int buildCounterEntry = 0; | 602 core.int buildCounterEntry = 0; |
560 buildEntry() { | 603 buildEntry() { |
561 var o = new api.Entry(); | 604 var o = new api.Entry(); |
562 buildCounterEntry++; | 605 buildCounterEntry++; |
563 if (buildCounterEntry < 3) { | 606 if (buildCounterEntry < 3) { |
564 o.annotation = buildAnnotation(); | 607 o.annotation = buildAnnotation(); |
565 o.status = buildStatus(); | 608 o.status = buildStatus(); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
618 buildCounterExperiment++; | 661 buildCounterExperiment++; |
619 if (buildCounterExperiment < 3) { | 662 if (buildCounterExperiment < 3) { |
620 unittest.expect(o.instrumentModel, unittest.equals('foo')); | 663 unittest.expect(o.instrumentModel, unittest.equals('foo')); |
621 unittest.expect(o.libraryId, unittest.equals('foo')); | 664 unittest.expect(o.libraryId, unittest.equals('foo')); |
622 unittest.expect(o.platformUnit, unittest.equals('foo')); | 665 unittest.expect(o.platformUnit, unittest.equals('foo')); |
623 unittest.expect(o.sequencingCenter, unittest.equals('foo')); | 666 unittest.expect(o.sequencingCenter, unittest.equals('foo')); |
624 } | 667 } |
625 buildCounterExperiment--; | 668 buildCounterExperiment--; |
626 } | 669 } |
627 | 670 |
628 buildUnnamed2562() { | 671 buildUnnamed2549() { |
629 var o = new core.List<core.String>(); | 672 var o = new core.List<core.String>(); |
630 o.add("foo"); | 673 o.add("foo"); |
631 o.add("foo"); | 674 o.add("foo"); |
632 return o; | 675 return o; |
633 } | 676 } |
634 | 677 |
635 checkUnnamed2562(core.List<core.String> o) { | 678 checkUnnamed2549(core.List<core.String> o) { |
636 unittest.expect(o, unittest.hasLength(2)); | 679 unittest.expect(o, unittest.hasLength(2)); |
637 unittest.expect(o[0], unittest.equals('foo')); | 680 unittest.expect(o[0], unittest.equals('foo')); |
638 unittest.expect(o[1], unittest.equals('foo')); | 681 unittest.expect(o[1], unittest.equals('foo')); |
639 } | 682 } |
640 | 683 |
641 core.int buildCounterExportReadGroupSetRequest = 0; | 684 core.int buildCounterExportReadGroupSetRequest = 0; |
642 buildExportReadGroupSetRequest() { | 685 buildExportReadGroupSetRequest() { |
643 var o = new api.ExportReadGroupSetRequest(); | 686 var o = new api.ExportReadGroupSetRequest(); |
644 buildCounterExportReadGroupSetRequest++; | 687 buildCounterExportReadGroupSetRequest++; |
645 if (buildCounterExportReadGroupSetRequest < 3) { | 688 if (buildCounterExportReadGroupSetRequest < 3) { |
646 o.exportUri = "foo"; | 689 o.exportUri = "foo"; |
647 o.projectId = "foo"; | 690 o.projectId = "foo"; |
648 o.referenceNames = buildUnnamed2562(); | 691 o.referenceNames = buildUnnamed2549(); |
649 } | 692 } |
650 buildCounterExportReadGroupSetRequest--; | 693 buildCounterExportReadGroupSetRequest--; |
651 return o; | 694 return o; |
652 } | 695 } |
653 | 696 |
654 checkExportReadGroupSetRequest(api.ExportReadGroupSetRequest o) { | 697 checkExportReadGroupSetRequest(api.ExportReadGroupSetRequest o) { |
655 buildCounterExportReadGroupSetRequest++; | 698 buildCounterExportReadGroupSetRequest++; |
656 if (buildCounterExportReadGroupSetRequest < 3) { | 699 if (buildCounterExportReadGroupSetRequest < 3) { |
657 unittest.expect(o.exportUri, unittest.equals('foo')); | 700 unittest.expect(o.exportUri, unittest.equals('foo')); |
658 unittest.expect(o.projectId, unittest.equals('foo')); | 701 unittest.expect(o.projectId, unittest.equals('foo')); |
659 checkUnnamed2562(o.referenceNames); | 702 checkUnnamed2549(o.referenceNames); |
660 } | 703 } |
661 buildCounterExportReadGroupSetRequest--; | 704 buildCounterExportReadGroupSetRequest--; |
662 } | 705 } |
663 | 706 |
664 buildUnnamed2563() { | 707 buildUnnamed2550() { |
665 var o = new core.List<core.String>(); | 708 var o = new core.List<core.String>(); |
666 o.add("foo"); | 709 o.add("foo"); |
667 o.add("foo"); | 710 o.add("foo"); |
668 return o; | 711 return o; |
669 } | 712 } |
670 | 713 |
671 checkUnnamed2563(core.List<core.String> o) { | 714 checkUnnamed2550(core.List<core.String> o) { |
672 unittest.expect(o, unittest.hasLength(2)); | 715 unittest.expect(o, unittest.hasLength(2)); |
673 unittest.expect(o[0], unittest.equals('foo')); | 716 unittest.expect(o[0], unittest.equals('foo')); |
674 unittest.expect(o[1], unittest.equals('foo')); | 717 unittest.expect(o[1], unittest.equals('foo')); |
675 } | 718 } |
676 | 719 |
677 core.int buildCounterExportVariantSetRequest = 0; | 720 core.int buildCounterExportVariantSetRequest = 0; |
678 buildExportVariantSetRequest() { | 721 buildExportVariantSetRequest() { |
679 var o = new api.ExportVariantSetRequest(); | 722 var o = new api.ExportVariantSetRequest(); |
680 buildCounterExportVariantSetRequest++; | 723 buildCounterExportVariantSetRequest++; |
681 if (buildCounterExportVariantSetRequest < 3) { | 724 if (buildCounterExportVariantSetRequest < 3) { |
682 o.bigqueryDataset = "foo"; | 725 o.bigqueryDataset = "foo"; |
683 o.bigqueryTable = "foo"; | 726 o.bigqueryTable = "foo"; |
684 o.callSetIds = buildUnnamed2563(); | 727 o.callSetIds = buildUnnamed2550(); |
685 o.format = "foo"; | 728 o.format = "foo"; |
686 o.projectId = "foo"; | 729 o.projectId = "foo"; |
687 } | 730 } |
688 buildCounterExportVariantSetRequest--; | 731 buildCounterExportVariantSetRequest--; |
689 return o; | 732 return o; |
690 } | 733 } |
691 | 734 |
692 checkExportVariantSetRequest(api.ExportVariantSetRequest o) { | 735 checkExportVariantSetRequest(api.ExportVariantSetRequest o) { |
693 buildCounterExportVariantSetRequest++; | 736 buildCounterExportVariantSetRequest++; |
694 if (buildCounterExportVariantSetRequest < 3) { | 737 if (buildCounterExportVariantSetRequest < 3) { |
695 unittest.expect(o.bigqueryDataset, unittest.equals('foo')); | 738 unittest.expect(o.bigqueryDataset, unittest.equals('foo')); |
696 unittest.expect(o.bigqueryTable, unittest.equals('foo')); | 739 unittest.expect(o.bigqueryTable, unittest.equals('foo')); |
697 checkUnnamed2563(o.callSetIds); | 740 checkUnnamed2550(o.callSetIds); |
698 unittest.expect(o.format, unittest.equals('foo')); | 741 unittest.expect(o.format, unittest.equals('foo')); |
699 unittest.expect(o.projectId, unittest.equals('foo')); | 742 unittest.expect(o.projectId, unittest.equals('foo')); |
700 } | 743 } |
701 buildCounterExportVariantSetRequest--; | 744 buildCounterExportVariantSetRequest--; |
702 } | 745 } |
703 | 746 |
704 core.int buildCounterExternalId = 0; | 747 core.int buildCounterExternalId = 0; |
705 buildExternalId() { | 748 buildExternalId() { |
706 var o = new api.ExternalId(); | 749 var o = new api.ExternalId(); |
707 buildCounterExternalId++; | 750 buildCounterExternalId++; |
(...skipping 11 matching lines...) Expand all Loading... |
719 unittest.expect(o.id, unittest.equals('foo')); | 762 unittest.expect(o.id, unittest.equals('foo')); |
720 unittest.expect(o.sourceName, unittest.equals('foo')); | 763 unittest.expect(o.sourceName, unittest.equals('foo')); |
721 } | 764 } |
722 buildCounterExternalId--; | 765 buildCounterExternalId--; |
723 } | 766 } |
724 | 767 |
725 core.int buildCounterGetIamPolicyRequest = 0; | 768 core.int buildCounterGetIamPolicyRequest = 0; |
726 buildGetIamPolicyRequest() { | 769 buildGetIamPolicyRequest() { |
727 var o = new api.GetIamPolicyRequest(); | 770 var o = new api.GetIamPolicyRequest(); |
728 buildCounterGetIamPolicyRequest++; | 771 buildCounterGetIamPolicyRequest++; |
729 if (buildCounterGetIamPolicyRequest < 3) { | 772 if (buildCounterGetIamPolicyRequest < 3) {} |
730 } | |
731 buildCounterGetIamPolicyRequest--; | 773 buildCounterGetIamPolicyRequest--; |
732 return o; | 774 return o; |
733 } | 775 } |
734 | 776 |
735 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) { | 777 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) { |
736 buildCounterGetIamPolicyRequest++; | 778 buildCounterGetIamPolicyRequest++; |
737 if (buildCounterGetIamPolicyRequest < 3) { | 779 if (buildCounterGetIamPolicyRequest < 3) {} |
738 } | |
739 buildCounterGetIamPolicyRequest--; | 780 buildCounterGetIamPolicyRequest--; |
740 } | 781 } |
741 | 782 |
742 buildUnnamed2564() { | 783 buildUnnamed2551() { |
743 var o = new core.List<core.String>(); | 784 var o = new core.List<core.String>(); |
744 o.add("foo"); | 785 o.add("foo"); |
745 o.add("foo"); | 786 o.add("foo"); |
746 return o; | 787 return o; |
747 } | 788 } |
748 | 789 |
749 checkUnnamed2564(core.List<core.String> o) { | 790 checkUnnamed2551(core.List<core.String> o) { |
750 unittest.expect(o, unittest.hasLength(2)); | 791 unittest.expect(o, unittest.hasLength(2)); |
751 unittest.expect(o[0], unittest.equals('foo')); | 792 unittest.expect(o[0], unittest.equals('foo')); |
752 unittest.expect(o[1], unittest.equals('foo')); | 793 unittest.expect(o[1], unittest.equals('foo')); |
753 } | 794 } |
754 | 795 |
755 core.int buildCounterImportReadGroupSetsRequest = 0; | 796 core.int buildCounterImportReadGroupSetsRequest = 0; |
756 buildImportReadGroupSetsRequest() { | 797 buildImportReadGroupSetsRequest() { |
757 var o = new api.ImportReadGroupSetsRequest(); | 798 var o = new api.ImportReadGroupSetsRequest(); |
758 buildCounterImportReadGroupSetsRequest++; | 799 buildCounterImportReadGroupSetsRequest++; |
759 if (buildCounterImportReadGroupSetsRequest < 3) { | 800 if (buildCounterImportReadGroupSetsRequest < 3) { |
760 o.datasetId = "foo"; | 801 o.datasetId = "foo"; |
761 o.partitionStrategy = "foo"; | 802 o.partitionStrategy = "foo"; |
762 o.referenceSetId = "foo"; | 803 o.referenceSetId = "foo"; |
763 o.sourceUris = buildUnnamed2564(); | 804 o.sourceUris = buildUnnamed2551(); |
764 } | 805 } |
765 buildCounterImportReadGroupSetsRequest--; | 806 buildCounterImportReadGroupSetsRequest--; |
766 return o; | 807 return o; |
767 } | 808 } |
768 | 809 |
769 checkImportReadGroupSetsRequest(api.ImportReadGroupSetsRequest o) { | 810 checkImportReadGroupSetsRequest(api.ImportReadGroupSetsRequest o) { |
770 buildCounterImportReadGroupSetsRequest++; | 811 buildCounterImportReadGroupSetsRequest++; |
771 if (buildCounterImportReadGroupSetsRequest < 3) { | 812 if (buildCounterImportReadGroupSetsRequest < 3) { |
772 unittest.expect(o.datasetId, unittest.equals('foo')); | 813 unittest.expect(o.datasetId, unittest.equals('foo')); |
773 unittest.expect(o.partitionStrategy, unittest.equals('foo')); | 814 unittest.expect(o.partitionStrategy, unittest.equals('foo')); |
774 unittest.expect(o.referenceSetId, unittest.equals('foo')); | 815 unittest.expect(o.referenceSetId, unittest.equals('foo')); |
775 checkUnnamed2564(o.sourceUris); | 816 checkUnnamed2551(o.sourceUris); |
776 } | 817 } |
777 buildCounterImportReadGroupSetsRequest--; | 818 buildCounterImportReadGroupSetsRequest--; |
778 } | 819 } |
779 | 820 |
780 buildUnnamed2565() { | 821 buildUnnamed2552() { |
781 var o = new core.List<core.String>(); | 822 var o = new core.List<core.String>(); |
782 o.add("foo"); | 823 o.add("foo"); |
783 o.add("foo"); | 824 o.add("foo"); |
784 return o; | 825 return o; |
785 } | 826 } |
786 | 827 |
787 checkUnnamed2565(core.List<core.String> o) { | 828 checkUnnamed2552(core.List<core.String> o) { |
788 unittest.expect(o, unittest.hasLength(2)); | 829 unittest.expect(o, unittest.hasLength(2)); |
789 unittest.expect(o[0], unittest.equals('foo')); | 830 unittest.expect(o[0], unittest.equals('foo')); |
790 unittest.expect(o[1], unittest.equals('foo')); | 831 unittest.expect(o[1], unittest.equals('foo')); |
791 } | 832 } |
792 | 833 |
793 core.int buildCounterImportReadGroupSetsResponse = 0; | 834 core.int buildCounterImportReadGroupSetsResponse = 0; |
794 buildImportReadGroupSetsResponse() { | 835 buildImportReadGroupSetsResponse() { |
795 var o = new api.ImportReadGroupSetsResponse(); | 836 var o = new api.ImportReadGroupSetsResponse(); |
796 buildCounterImportReadGroupSetsResponse++; | 837 buildCounterImportReadGroupSetsResponse++; |
797 if (buildCounterImportReadGroupSetsResponse < 3) { | 838 if (buildCounterImportReadGroupSetsResponse < 3) { |
798 o.readGroupSetIds = buildUnnamed2565(); | 839 o.readGroupSetIds = buildUnnamed2552(); |
799 } | 840 } |
800 buildCounterImportReadGroupSetsResponse--; | 841 buildCounterImportReadGroupSetsResponse--; |
801 return o; | 842 return o; |
802 } | 843 } |
803 | 844 |
804 checkImportReadGroupSetsResponse(api.ImportReadGroupSetsResponse o) { | 845 checkImportReadGroupSetsResponse(api.ImportReadGroupSetsResponse o) { |
805 buildCounterImportReadGroupSetsResponse++; | 846 buildCounterImportReadGroupSetsResponse++; |
806 if (buildCounterImportReadGroupSetsResponse < 3) { | 847 if (buildCounterImportReadGroupSetsResponse < 3) { |
807 checkUnnamed2565(o.readGroupSetIds); | 848 checkUnnamed2552(o.readGroupSetIds); |
808 } | 849 } |
809 buildCounterImportReadGroupSetsResponse--; | 850 buildCounterImportReadGroupSetsResponse--; |
810 } | 851 } |
811 | 852 |
812 buildUnnamed2566() { | 853 buildUnnamed2553() { |
813 var o = new core.Map<core.String, core.String>(); | 854 var o = new core.Map<core.String, core.String>(); |
814 o["x"] = "foo"; | 855 o["x"] = "foo"; |
815 o["y"] = "foo"; | 856 o["y"] = "foo"; |
816 return o; | 857 return o; |
817 } | 858 } |
818 | 859 |
819 checkUnnamed2566(core.Map<core.String, core.String> o) { | 860 checkUnnamed2553(core.Map<core.String, core.String> o) { |
820 unittest.expect(o, unittest.hasLength(2)); | 861 unittest.expect(o, unittest.hasLength(2)); |
821 unittest.expect(o["x"], unittest.equals('foo')); | 862 unittest.expect(o["x"], unittest.equals('foo')); |
822 unittest.expect(o["y"], unittest.equals('foo')); | 863 unittest.expect(o["y"], unittest.equals('foo')); |
823 } | 864 } |
824 | 865 |
825 buildUnnamed2567() { | 866 buildUnnamed2554() { |
826 var o = new core.List<core.String>(); | 867 var o = new core.List<core.String>(); |
827 o.add("foo"); | 868 o.add("foo"); |
828 o.add("foo"); | 869 o.add("foo"); |
829 return o; | 870 return o; |
830 } | 871 } |
831 | 872 |
832 checkUnnamed2567(core.List<core.String> o) { | 873 checkUnnamed2554(core.List<core.String> o) { |
833 unittest.expect(o, unittest.hasLength(2)); | 874 unittest.expect(o, unittest.hasLength(2)); |
834 unittest.expect(o[0], unittest.equals('foo')); | 875 unittest.expect(o[0], unittest.equals('foo')); |
835 unittest.expect(o[1], unittest.equals('foo')); | 876 unittest.expect(o[1], unittest.equals('foo')); |
836 } | 877 } |
837 | 878 |
838 core.int buildCounterImportVariantsRequest = 0; | 879 core.int buildCounterImportVariantsRequest = 0; |
839 buildImportVariantsRequest() { | 880 buildImportVariantsRequest() { |
840 var o = new api.ImportVariantsRequest(); | 881 var o = new api.ImportVariantsRequest(); |
841 buildCounterImportVariantsRequest++; | 882 buildCounterImportVariantsRequest++; |
842 if (buildCounterImportVariantsRequest < 3) { | 883 if (buildCounterImportVariantsRequest < 3) { |
843 o.format = "foo"; | 884 o.format = "foo"; |
844 o.infoMergeConfig = buildUnnamed2566(); | 885 o.infoMergeConfig = buildUnnamed2553(); |
845 o.normalizeReferenceNames = true; | 886 o.normalizeReferenceNames = true; |
846 o.sourceUris = buildUnnamed2567(); | 887 o.sourceUris = buildUnnamed2554(); |
847 o.variantSetId = "foo"; | 888 o.variantSetId = "foo"; |
848 } | 889 } |
849 buildCounterImportVariantsRequest--; | 890 buildCounterImportVariantsRequest--; |
850 return o; | 891 return o; |
851 } | 892 } |
852 | 893 |
853 checkImportVariantsRequest(api.ImportVariantsRequest o) { | 894 checkImportVariantsRequest(api.ImportVariantsRequest o) { |
854 buildCounterImportVariantsRequest++; | 895 buildCounterImportVariantsRequest++; |
855 if (buildCounterImportVariantsRequest < 3) { | 896 if (buildCounterImportVariantsRequest < 3) { |
856 unittest.expect(o.format, unittest.equals('foo')); | 897 unittest.expect(o.format, unittest.equals('foo')); |
857 checkUnnamed2566(o.infoMergeConfig); | 898 checkUnnamed2553(o.infoMergeConfig); |
858 unittest.expect(o.normalizeReferenceNames, unittest.isTrue); | 899 unittest.expect(o.normalizeReferenceNames, unittest.isTrue); |
859 checkUnnamed2567(o.sourceUris); | 900 checkUnnamed2554(o.sourceUris); |
860 unittest.expect(o.variantSetId, unittest.equals('foo')); | 901 unittest.expect(o.variantSetId, unittest.equals('foo')); |
861 } | 902 } |
862 buildCounterImportVariantsRequest--; | 903 buildCounterImportVariantsRequest--; |
863 } | 904 } |
864 | 905 |
865 buildUnnamed2568() { | 906 buildUnnamed2555() { |
866 var o = new core.List<core.String>(); | 907 var o = new core.List<core.String>(); |
867 o.add("foo"); | 908 o.add("foo"); |
868 o.add("foo"); | 909 o.add("foo"); |
869 return o; | 910 return o; |
870 } | 911 } |
871 | 912 |
872 checkUnnamed2568(core.List<core.String> o) { | 913 checkUnnamed2555(core.List<core.String> o) { |
873 unittest.expect(o, unittest.hasLength(2)); | 914 unittest.expect(o, unittest.hasLength(2)); |
874 unittest.expect(o[0], unittest.equals('foo')); | 915 unittest.expect(o[0], unittest.equals('foo')); |
875 unittest.expect(o[1], unittest.equals('foo')); | 916 unittest.expect(o[1], unittest.equals('foo')); |
876 } | 917 } |
877 | 918 |
878 core.int buildCounterImportVariantsResponse = 0; | 919 core.int buildCounterImportVariantsResponse = 0; |
879 buildImportVariantsResponse() { | 920 buildImportVariantsResponse() { |
880 var o = new api.ImportVariantsResponse(); | 921 var o = new api.ImportVariantsResponse(); |
881 buildCounterImportVariantsResponse++; | 922 buildCounterImportVariantsResponse++; |
882 if (buildCounterImportVariantsResponse < 3) { | 923 if (buildCounterImportVariantsResponse < 3) { |
883 o.callSetIds = buildUnnamed2568(); | 924 o.callSetIds = buildUnnamed2555(); |
884 } | 925 } |
885 buildCounterImportVariantsResponse--; | 926 buildCounterImportVariantsResponse--; |
886 return o; | 927 return o; |
887 } | 928 } |
888 | 929 |
889 checkImportVariantsResponse(api.ImportVariantsResponse o) { | 930 checkImportVariantsResponse(api.ImportVariantsResponse o) { |
890 buildCounterImportVariantsResponse++; | 931 buildCounterImportVariantsResponse++; |
891 if (buildCounterImportVariantsResponse < 3) { | 932 if (buildCounterImportVariantsResponse < 3) { |
892 checkUnnamed2568(o.callSetIds); | 933 checkUnnamed2555(o.callSetIds); |
893 } | 934 } |
894 buildCounterImportVariantsResponse--; | 935 buildCounterImportVariantsResponse--; |
895 } | 936 } |
896 | 937 |
897 buildUnnamed2569() { | 938 buildUnnamed2556() { |
898 var o = new core.List<api.CigarUnit>(); | 939 var o = new core.List<api.CigarUnit>(); |
899 o.add(buildCigarUnit()); | 940 o.add(buildCigarUnit()); |
900 o.add(buildCigarUnit()); | 941 o.add(buildCigarUnit()); |
901 return o; | 942 return o; |
902 } | 943 } |
903 | 944 |
904 checkUnnamed2569(core.List<api.CigarUnit> o) { | 945 checkUnnamed2556(core.List<api.CigarUnit> o) { |
905 unittest.expect(o, unittest.hasLength(2)); | 946 unittest.expect(o, unittest.hasLength(2)); |
906 checkCigarUnit(o[0]); | 947 checkCigarUnit(o[0]); |
907 checkCigarUnit(o[1]); | 948 checkCigarUnit(o[1]); |
908 } | 949 } |
909 | 950 |
910 core.int buildCounterLinearAlignment = 0; | 951 core.int buildCounterLinearAlignment = 0; |
911 buildLinearAlignment() { | 952 buildLinearAlignment() { |
912 var o = new api.LinearAlignment(); | 953 var o = new api.LinearAlignment(); |
913 buildCounterLinearAlignment++; | 954 buildCounterLinearAlignment++; |
914 if (buildCounterLinearAlignment < 3) { | 955 if (buildCounterLinearAlignment < 3) { |
915 o.cigar = buildUnnamed2569(); | 956 o.cigar = buildUnnamed2556(); |
916 o.mappingQuality = 42; | 957 o.mappingQuality = 42; |
917 o.position = buildPosition(); | 958 o.position = buildPosition(); |
918 } | 959 } |
919 buildCounterLinearAlignment--; | 960 buildCounterLinearAlignment--; |
920 return o; | 961 return o; |
921 } | 962 } |
922 | 963 |
923 checkLinearAlignment(api.LinearAlignment o) { | 964 checkLinearAlignment(api.LinearAlignment o) { |
924 buildCounterLinearAlignment++; | 965 buildCounterLinearAlignment++; |
925 if (buildCounterLinearAlignment < 3) { | 966 if (buildCounterLinearAlignment < 3) { |
926 checkUnnamed2569(o.cigar); | 967 checkUnnamed2556(o.cigar); |
927 unittest.expect(o.mappingQuality, unittest.equals(42)); | 968 unittest.expect(o.mappingQuality, unittest.equals(42)); |
928 checkPosition(o.position); | 969 checkPosition(o.position); |
929 } | 970 } |
930 buildCounterLinearAlignment--; | 971 buildCounterLinearAlignment--; |
931 } | 972 } |
932 | 973 |
933 core.int buildCounterListBasesResponse = 0; | 974 core.int buildCounterListBasesResponse = 0; |
934 buildListBasesResponse() { | 975 buildListBasesResponse() { |
935 var o = new api.ListBasesResponse(); | 976 var o = new api.ListBasesResponse(); |
936 buildCounterListBasesResponse++; | 977 buildCounterListBasesResponse++; |
937 if (buildCounterListBasesResponse < 3) { | 978 if (buildCounterListBasesResponse < 3) { |
938 o.nextPageToken = "foo"; | 979 o.nextPageToken = "foo"; |
939 o.offset = "foo"; | 980 o.offset = "foo"; |
940 o.sequence = "foo"; | 981 o.sequence = "foo"; |
941 } | 982 } |
942 buildCounterListBasesResponse--; | 983 buildCounterListBasesResponse--; |
943 return o; | 984 return o; |
944 } | 985 } |
945 | 986 |
946 checkListBasesResponse(api.ListBasesResponse o) { | 987 checkListBasesResponse(api.ListBasesResponse o) { |
947 buildCounterListBasesResponse++; | 988 buildCounterListBasesResponse++; |
948 if (buildCounterListBasesResponse < 3) { | 989 if (buildCounterListBasesResponse < 3) { |
949 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 990 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
950 unittest.expect(o.offset, unittest.equals('foo')); | 991 unittest.expect(o.offset, unittest.equals('foo')); |
951 unittest.expect(o.sequence, unittest.equals('foo')); | 992 unittest.expect(o.sequence, unittest.equals('foo')); |
952 } | 993 } |
953 buildCounterListBasesResponse--; | 994 buildCounterListBasesResponse--; |
954 } | 995 } |
955 | 996 |
956 buildUnnamed2570() { | 997 buildUnnamed2557() { |
957 var o = new core.List<api.CoverageBucket>(); | 998 var o = new core.List<api.CoverageBucket>(); |
958 o.add(buildCoverageBucket()); | 999 o.add(buildCoverageBucket()); |
959 o.add(buildCoverageBucket()); | 1000 o.add(buildCoverageBucket()); |
960 return o; | 1001 return o; |
961 } | 1002 } |
962 | 1003 |
963 checkUnnamed2570(core.List<api.CoverageBucket> o) { | 1004 checkUnnamed2557(core.List<api.CoverageBucket> o) { |
964 unittest.expect(o, unittest.hasLength(2)); | 1005 unittest.expect(o, unittest.hasLength(2)); |
965 checkCoverageBucket(o[0]); | 1006 checkCoverageBucket(o[0]); |
966 checkCoverageBucket(o[1]); | 1007 checkCoverageBucket(o[1]); |
967 } | 1008 } |
968 | 1009 |
969 core.int buildCounterListCoverageBucketsResponse = 0; | 1010 core.int buildCounterListCoverageBucketsResponse = 0; |
970 buildListCoverageBucketsResponse() { | 1011 buildListCoverageBucketsResponse() { |
971 var o = new api.ListCoverageBucketsResponse(); | 1012 var o = new api.ListCoverageBucketsResponse(); |
972 buildCounterListCoverageBucketsResponse++; | 1013 buildCounterListCoverageBucketsResponse++; |
973 if (buildCounterListCoverageBucketsResponse < 3) { | 1014 if (buildCounterListCoverageBucketsResponse < 3) { |
974 o.bucketWidth = "foo"; | 1015 o.bucketWidth = "foo"; |
975 o.coverageBuckets = buildUnnamed2570(); | 1016 o.coverageBuckets = buildUnnamed2557(); |
976 o.nextPageToken = "foo"; | 1017 o.nextPageToken = "foo"; |
977 } | 1018 } |
978 buildCounterListCoverageBucketsResponse--; | 1019 buildCounterListCoverageBucketsResponse--; |
979 return o; | 1020 return o; |
980 } | 1021 } |
981 | 1022 |
982 checkListCoverageBucketsResponse(api.ListCoverageBucketsResponse o) { | 1023 checkListCoverageBucketsResponse(api.ListCoverageBucketsResponse o) { |
983 buildCounterListCoverageBucketsResponse++; | 1024 buildCounterListCoverageBucketsResponse++; |
984 if (buildCounterListCoverageBucketsResponse < 3) { | 1025 if (buildCounterListCoverageBucketsResponse < 3) { |
985 unittest.expect(o.bucketWidth, unittest.equals('foo')); | 1026 unittest.expect(o.bucketWidth, unittest.equals('foo')); |
986 checkUnnamed2570(o.coverageBuckets); | 1027 checkUnnamed2557(o.coverageBuckets); |
987 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1028 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
988 } | 1029 } |
989 buildCounterListCoverageBucketsResponse--; | 1030 buildCounterListCoverageBucketsResponse--; |
990 } | 1031 } |
991 | 1032 |
992 buildUnnamed2571() { | 1033 buildUnnamed2558() { |
993 var o = new core.List<api.Dataset>(); | 1034 var o = new core.List<api.Dataset>(); |
994 o.add(buildDataset()); | 1035 o.add(buildDataset()); |
995 o.add(buildDataset()); | 1036 o.add(buildDataset()); |
996 return o; | 1037 return o; |
997 } | 1038 } |
998 | 1039 |
999 checkUnnamed2571(core.List<api.Dataset> o) { | 1040 checkUnnamed2558(core.List<api.Dataset> o) { |
1000 unittest.expect(o, unittest.hasLength(2)); | 1041 unittest.expect(o, unittest.hasLength(2)); |
1001 checkDataset(o[0]); | 1042 checkDataset(o[0]); |
1002 checkDataset(o[1]); | 1043 checkDataset(o[1]); |
1003 } | 1044 } |
1004 | 1045 |
1005 core.int buildCounterListDatasetsResponse = 0; | 1046 core.int buildCounterListDatasetsResponse = 0; |
1006 buildListDatasetsResponse() { | 1047 buildListDatasetsResponse() { |
1007 var o = new api.ListDatasetsResponse(); | 1048 var o = new api.ListDatasetsResponse(); |
1008 buildCounterListDatasetsResponse++; | 1049 buildCounterListDatasetsResponse++; |
1009 if (buildCounterListDatasetsResponse < 3) { | 1050 if (buildCounterListDatasetsResponse < 3) { |
1010 o.datasets = buildUnnamed2571(); | 1051 o.datasets = buildUnnamed2558(); |
1011 o.nextPageToken = "foo"; | 1052 o.nextPageToken = "foo"; |
1012 } | 1053 } |
1013 buildCounterListDatasetsResponse--; | 1054 buildCounterListDatasetsResponse--; |
1014 return o; | 1055 return o; |
1015 } | 1056 } |
1016 | 1057 |
1017 checkListDatasetsResponse(api.ListDatasetsResponse o) { | 1058 checkListDatasetsResponse(api.ListDatasetsResponse o) { |
1018 buildCounterListDatasetsResponse++; | 1059 buildCounterListDatasetsResponse++; |
1019 if (buildCounterListDatasetsResponse < 3) { | 1060 if (buildCounterListDatasetsResponse < 3) { |
1020 checkUnnamed2571(o.datasets); | 1061 checkUnnamed2558(o.datasets); |
1021 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1062 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1022 } | 1063 } |
1023 buildCounterListDatasetsResponse--; | 1064 buildCounterListDatasetsResponse--; |
1024 } | 1065 } |
1025 | 1066 |
1026 buildUnnamed2572() { | 1067 buildUnnamed2559() { |
1027 var o = new core.List<api.Operation>(); | 1068 var o = new core.List<api.Operation>(); |
1028 o.add(buildOperation()); | 1069 o.add(buildOperation()); |
1029 o.add(buildOperation()); | 1070 o.add(buildOperation()); |
1030 return o; | 1071 return o; |
1031 } | 1072 } |
1032 | 1073 |
1033 checkUnnamed2572(core.List<api.Operation> o) { | 1074 checkUnnamed2559(core.List<api.Operation> o) { |
1034 unittest.expect(o, unittest.hasLength(2)); | 1075 unittest.expect(o, unittest.hasLength(2)); |
1035 checkOperation(o[0]); | 1076 checkOperation(o[0]); |
1036 checkOperation(o[1]); | 1077 checkOperation(o[1]); |
1037 } | 1078 } |
1038 | 1079 |
1039 core.int buildCounterListOperationsResponse = 0; | 1080 core.int buildCounterListOperationsResponse = 0; |
1040 buildListOperationsResponse() { | 1081 buildListOperationsResponse() { |
1041 var o = new api.ListOperationsResponse(); | 1082 var o = new api.ListOperationsResponse(); |
1042 buildCounterListOperationsResponse++; | 1083 buildCounterListOperationsResponse++; |
1043 if (buildCounterListOperationsResponse < 3) { | 1084 if (buildCounterListOperationsResponse < 3) { |
1044 o.nextPageToken = "foo"; | 1085 o.nextPageToken = "foo"; |
1045 o.operations = buildUnnamed2572(); | 1086 o.operations = buildUnnamed2559(); |
1046 } | 1087 } |
1047 buildCounterListOperationsResponse--; | 1088 buildCounterListOperationsResponse--; |
1048 return o; | 1089 return o; |
1049 } | 1090 } |
1050 | 1091 |
1051 checkListOperationsResponse(api.ListOperationsResponse o) { | 1092 checkListOperationsResponse(api.ListOperationsResponse o) { |
1052 buildCounterListOperationsResponse++; | 1093 buildCounterListOperationsResponse++; |
1053 if (buildCounterListOperationsResponse < 3) { | 1094 if (buildCounterListOperationsResponse < 3) { |
1054 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1095 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1055 checkUnnamed2572(o.operations); | 1096 checkUnnamed2559(o.operations); |
1056 } | 1097 } |
1057 buildCounterListOperationsResponse--; | 1098 buildCounterListOperationsResponse--; |
1058 } | 1099 } |
1059 | 1100 |
1060 buildUnnamed2573() { | 1101 buildUnnamed2560() { |
1061 var o = new core.Map<core.String, core.String>(); | 1102 var o = new core.Map<core.String, core.String>(); |
1062 o["x"] = "foo"; | 1103 o["x"] = "foo"; |
1063 o["y"] = "foo"; | 1104 o["y"] = "foo"; |
1064 return o; | 1105 return o; |
1065 } | 1106 } |
1066 | 1107 |
1067 checkUnnamed2573(core.Map<core.String, core.String> o) { | 1108 checkUnnamed2560(core.Map<core.String, core.String> o) { |
1068 unittest.expect(o, unittest.hasLength(2)); | 1109 unittest.expect(o, unittest.hasLength(2)); |
1069 unittest.expect(o["x"], unittest.equals('foo')); | 1110 unittest.expect(o["x"], unittest.equals('foo')); |
1070 unittest.expect(o["y"], unittest.equals('foo')); | 1111 unittest.expect(o["y"], unittest.equals('foo')); |
1071 } | 1112 } |
1072 | 1113 |
1073 buildUnnamed2574() { | 1114 buildUnnamed2561() { |
1074 var o = new core.List<api.Variant>(); | 1115 var o = new core.List<api.Variant>(); |
1075 o.add(buildVariant()); | 1116 o.add(buildVariant()); |
1076 o.add(buildVariant()); | 1117 o.add(buildVariant()); |
1077 return o; | 1118 return o; |
1078 } | 1119 } |
1079 | 1120 |
1080 checkUnnamed2574(core.List<api.Variant> o) { | 1121 checkUnnamed2561(core.List<api.Variant> o) { |
1081 unittest.expect(o, unittest.hasLength(2)); | 1122 unittest.expect(o, unittest.hasLength(2)); |
1082 checkVariant(o[0]); | 1123 checkVariant(o[0]); |
1083 checkVariant(o[1]); | 1124 checkVariant(o[1]); |
1084 } | 1125 } |
1085 | 1126 |
1086 core.int buildCounterMergeVariantsRequest = 0; | 1127 core.int buildCounterMergeVariantsRequest = 0; |
1087 buildMergeVariantsRequest() { | 1128 buildMergeVariantsRequest() { |
1088 var o = new api.MergeVariantsRequest(); | 1129 var o = new api.MergeVariantsRequest(); |
1089 buildCounterMergeVariantsRequest++; | 1130 buildCounterMergeVariantsRequest++; |
1090 if (buildCounterMergeVariantsRequest < 3) { | 1131 if (buildCounterMergeVariantsRequest < 3) { |
1091 o.infoMergeConfig = buildUnnamed2573(); | 1132 o.infoMergeConfig = buildUnnamed2560(); |
1092 o.variantSetId = "foo"; | 1133 o.variantSetId = "foo"; |
1093 o.variants = buildUnnamed2574(); | 1134 o.variants = buildUnnamed2561(); |
1094 } | 1135 } |
1095 buildCounterMergeVariantsRequest--; | 1136 buildCounterMergeVariantsRequest--; |
1096 return o; | 1137 return o; |
1097 } | 1138 } |
1098 | 1139 |
1099 checkMergeVariantsRequest(api.MergeVariantsRequest o) { | 1140 checkMergeVariantsRequest(api.MergeVariantsRequest o) { |
1100 buildCounterMergeVariantsRequest++; | 1141 buildCounterMergeVariantsRequest++; |
1101 if (buildCounterMergeVariantsRequest < 3) { | 1142 if (buildCounterMergeVariantsRequest < 3) { |
1102 checkUnnamed2573(o.infoMergeConfig); | 1143 checkUnnamed2560(o.infoMergeConfig); |
1103 unittest.expect(o.variantSetId, unittest.equals('foo')); | 1144 unittest.expect(o.variantSetId, unittest.equals('foo')); |
1104 checkUnnamed2574(o.variants); | 1145 checkUnnamed2561(o.variants); |
1105 } | 1146 } |
1106 buildCounterMergeVariantsRequest--; | 1147 buildCounterMergeVariantsRequest--; |
1107 } | 1148 } |
1108 | 1149 |
1109 buildUnnamed2575() { | 1150 buildUnnamed2562() { |
1110 var o = new core.Map<core.String, core.Object>(); | 1151 var o = new core.Map<core.String, core.Object>(); |
1111 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1152 o["x"] = { |
1112 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1153 'list': [1, 2, 3], |
| 1154 'bool': true, |
| 1155 'string': 'foo' |
| 1156 }; |
| 1157 o["y"] = { |
| 1158 'list': [1, 2, 3], |
| 1159 'bool': true, |
| 1160 'string': 'foo' |
| 1161 }; |
1113 return o; | 1162 return o; |
1114 } | 1163 } |
1115 | 1164 |
1116 checkUnnamed2575(core.Map<core.String, core.Object> o) { | 1165 checkUnnamed2562(core.Map<core.String, core.Object> o) { |
1117 unittest.expect(o, unittest.hasLength(2)); | 1166 unittest.expect(o, unittest.hasLength(2)); |
1118 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')); | 1167 var casted7 = (o["x"]) as core.Map; |
1119 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')); | 1168 unittest.expect(casted7, unittest.hasLength(3)); |
| 1169 unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); |
| 1170 unittest.expect(casted7["bool"], unittest.equals(true)); |
| 1171 unittest.expect(casted7["string"], unittest.equals('foo')); |
| 1172 var casted8 = (o["y"]) as core.Map; |
| 1173 unittest.expect(casted8, unittest.hasLength(3)); |
| 1174 unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); |
| 1175 unittest.expect(casted8["bool"], unittest.equals(true)); |
| 1176 unittest.expect(casted8["string"], unittest.equals('foo')); |
1120 } | 1177 } |
1121 | 1178 |
1122 buildUnnamed2576() { | 1179 buildUnnamed2563() { |
1123 var o = new core.Map<core.String, core.Object>(); | 1180 var o = new core.Map<core.String, core.Object>(); |
1124 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1181 o["x"] = { |
1125 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1182 'list': [1, 2, 3], |
| 1183 'bool': true, |
| 1184 'string': 'foo' |
| 1185 }; |
| 1186 o["y"] = { |
| 1187 'list': [1, 2, 3], |
| 1188 'bool': true, |
| 1189 'string': 'foo' |
| 1190 }; |
1126 return o; | 1191 return o; |
1127 } | 1192 } |
1128 | 1193 |
1129 checkUnnamed2576(core.Map<core.String, core.Object> o) { | 1194 checkUnnamed2563(core.Map<core.String, core.Object> o) { |
1130 unittest.expect(o, unittest.hasLength(2)); | 1195 unittest.expect(o, unittest.hasLength(2)); |
1131 var casted9 = (o["x"]) as core.Map; unittest.expect(casted9, unittest.hasLengt
h(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"],
unittest.equals('foo')); | 1196 var casted9 = (o["x"]) as core.Map; |
1132 var casted10 = (o["y"]) as core.Map; unittest.expect(casted10, unittest.hasLen
gth(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["stri
ng"], unittest.equals('foo')); | 1197 unittest.expect(casted9, unittest.hasLength(3)); |
| 1198 unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); |
| 1199 unittest.expect(casted9["bool"], unittest.equals(true)); |
| 1200 unittest.expect(casted9["string"], unittest.equals('foo')); |
| 1201 var casted10 = (o["y"]) as core.Map; |
| 1202 unittest.expect(casted10, unittest.hasLength(3)); |
| 1203 unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); |
| 1204 unittest.expect(casted10["bool"], unittest.equals(true)); |
| 1205 unittest.expect(casted10["string"], unittest.equals('foo')); |
1133 } | 1206 } |
1134 | 1207 |
1135 core.int buildCounterOperation = 0; | 1208 core.int buildCounterOperation = 0; |
1136 buildOperation() { | 1209 buildOperation() { |
1137 var o = new api.Operation(); | 1210 var o = new api.Operation(); |
1138 buildCounterOperation++; | 1211 buildCounterOperation++; |
1139 if (buildCounterOperation < 3) { | 1212 if (buildCounterOperation < 3) { |
1140 o.done = true; | 1213 o.done = true; |
1141 o.error = buildStatus(); | 1214 o.error = buildStatus(); |
1142 o.metadata = buildUnnamed2575(); | 1215 o.metadata = buildUnnamed2562(); |
1143 o.name = "foo"; | 1216 o.name = "foo"; |
1144 o.response = buildUnnamed2576(); | 1217 o.response = buildUnnamed2563(); |
1145 } | 1218 } |
1146 buildCounterOperation--; | 1219 buildCounterOperation--; |
1147 return o; | 1220 return o; |
1148 } | 1221 } |
1149 | 1222 |
1150 checkOperation(api.Operation o) { | 1223 checkOperation(api.Operation o) { |
1151 buildCounterOperation++; | 1224 buildCounterOperation++; |
1152 if (buildCounterOperation < 3) { | 1225 if (buildCounterOperation < 3) { |
1153 unittest.expect(o.done, unittest.isTrue); | 1226 unittest.expect(o.done, unittest.isTrue); |
1154 checkStatus(o.error); | 1227 checkStatus(o.error); |
1155 checkUnnamed2575(o.metadata); | 1228 checkUnnamed2562(o.metadata); |
1156 unittest.expect(o.name, unittest.equals('foo')); | 1229 unittest.expect(o.name, unittest.equals('foo')); |
1157 checkUnnamed2576(o.response); | 1230 checkUnnamed2563(o.response); |
1158 } | 1231 } |
1159 buildCounterOperation--; | 1232 buildCounterOperation--; |
1160 } | 1233 } |
1161 | 1234 |
1162 core.int buildCounterOperationEvent = 0; | 1235 core.int buildCounterOperationEvent = 0; |
1163 buildOperationEvent() { | 1236 buildOperationEvent() { |
1164 var o = new api.OperationEvent(); | 1237 var o = new api.OperationEvent(); |
1165 buildCounterOperationEvent++; | 1238 buildCounterOperationEvent++; |
1166 if (buildCounterOperationEvent < 3) { | 1239 if (buildCounterOperationEvent < 3) { |
1167 o.description = "foo"; | 1240 o.description = "foo"; |
1168 o.endTime = "foo"; | 1241 o.endTime = "foo"; |
1169 o.startTime = "foo"; | 1242 o.startTime = "foo"; |
1170 } | 1243 } |
1171 buildCounterOperationEvent--; | 1244 buildCounterOperationEvent--; |
1172 return o; | 1245 return o; |
1173 } | 1246 } |
1174 | 1247 |
1175 checkOperationEvent(api.OperationEvent o) { | 1248 checkOperationEvent(api.OperationEvent o) { |
1176 buildCounterOperationEvent++; | 1249 buildCounterOperationEvent++; |
1177 if (buildCounterOperationEvent < 3) { | 1250 if (buildCounterOperationEvent < 3) { |
1178 unittest.expect(o.description, unittest.equals('foo')); | 1251 unittest.expect(o.description, unittest.equals('foo')); |
1179 unittest.expect(o.endTime, unittest.equals('foo')); | 1252 unittest.expect(o.endTime, unittest.equals('foo')); |
1180 unittest.expect(o.startTime, unittest.equals('foo')); | 1253 unittest.expect(o.startTime, unittest.equals('foo')); |
1181 } | 1254 } |
1182 buildCounterOperationEvent--; | 1255 buildCounterOperationEvent--; |
1183 } | 1256 } |
1184 | 1257 |
1185 buildUnnamed2577() { | 1258 buildUnnamed2564() { |
1186 var o = new core.List<api.OperationEvent>(); | 1259 var o = new core.List<api.OperationEvent>(); |
1187 o.add(buildOperationEvent()); | 1260 o.add(buildOperationEvent()); |
1188 o.add(buildOperationEvent()); | 1261 o.add(buildOperationEvent()); |
1189 return o; | 1262 return o; |
1190 } | 1263 } |
1191 | 1264 |
1192 checkUnnamed2577(core.List<api.OperationEvent> o) { | 1265 checkUnnamed2564(core.List<api.OperationEvent> o) { |
1193 unittest.expect(o, unittest.hasLength(2)); | 1266 unittest.expect(o, unittest.hasLength(2)); |
1194 checkOperationEvent(o[0]); | 1267 checkOperationEvent(o[0]); |
1195 checkOperationEvent(o[1]); | 1268 checkOperationEvent(o[1]); |
1196 } | 1269 } |
1197 | 1270 |
1198 buildUnnamed2578() { | 1271 buildUnnamed2565() { |
1199 var o = new core.Map<core.String, core.String>(); | 1272 var o = new core.Map<core.String, core.String>(); |
1200 o["x"] = "foo"; | 1273 o["x"] = "foo"; |
1201 o["y"] = "foo"; | 1274 o["y"] = "foo"; |
1202 return o; | 1275 return o; |
1203 } | 1276 } |
1204 | 1277 |
1205 checkUnnamed2578(core.Map<core.String, core.String> o) { | 1278 checkUnnamed2565(core.Map<core.String, core.String> o) { |
1206 unittest.expect(o, unittest.hasLength(2)); | 1279 unittest.expect(o, unittest.hasLength(2)); |
1207 unittest.expect(o["x"], unittest.equals('foo')); | 1280 unittest.expect(o["x"], unittest.equals('foo')); |
1208 unittest.expect(o["y"], unittest.equals('foo')); | 1281 unittest.expect(o["y"], unittest.equals('foo')); |
1209 } | 1282 } |
1210 | 1283 |
1211 buildUnnamed2579() { | 1284 buildUnnamed2566() { |
1212 var o = new core.Map<core.String, core.Object>(); | 1285 var o = new core.Map<core.String, core.Object>(); |
1213 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1286 o["x"] = { |
1214 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1287 'list': [1, 2, 3], |
| 1288 'bool': true, |
| 1289 'string': 'foo' |
| 1290 }; |
| 1291 o["y"] = { |
| 1292 'list': [1, 2, 3], |
| 1293 'bool': true, |
| 1294 'string': 'foo' |
| 1295 }; |
1215 return o; | 1296 return o; |
1216 } | 1297 } |
1217 | 1298 |
1218 checkUnnamed2579(core.Map<core.String, core.Object> o) { | 1299 checkUnnamed2566(core.Map<core.String, core.Object> o) { |
1219 unittest.expect(o, unittest.hasLength(2)); | 1300 unittest.expect(o, unittest.hasLength(2)); |
1220 var casted11 = (o["x"]) as core.Map; unittest.expect(casted11, unittest.hasLen
gth(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["stri
ng"], unittest.equals('foo')); | 1301 var casted11 = (o["x"]) as core.Map; |
1221 var casted12 = (o["y"]) as core.Map; unittest.expect(casted12, unittest.hasLen
gth(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted12["bool"], unittest.equals(true)); unittest.expect(casted12["stri
ng"], unittest.equals('foo')); | 1302 unittest.expect(casted11, unittest.hasLength(3)); |
| 1303 unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); |
| 1304 unittest.expect(casted11["bool"], unittest.equals(true)); |
| 1305 unittest.expect(casted11["string"], unittest.equals('foo')); |
| 1306 var casted12 = (o["y"]) as core.Map; |
| 1307 unittest.expect(casted12, unittest.hasLength(3)); |
| 1308 unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); |
| 1309 unittest.expect(casted12["bool"], unittest.equals(true)); |
| 1310 unittest.expect(casted12["string"], unittest.equals('foo')); |
1222 } | 1311 } |
1223 | 1312 |
1224 buildUnnamed2580() { | 1313 buildUnnamed2567() { |
1225 var o = new core.Map<core.String, core.Object>(); | 1314 var o = new core.Map<core.String, core.Object>(); |
1226 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1315 o["x"] = { |
1227 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1316 'list': [1, 2, 3], |
| 1317 'bool': true, |
| 1318 'string': 'foo' |
| 1319 }; |
| 1320 o["y"] = { |
| 1321 'list': [1, 2, 3], |
| 1322 'bool': true, |
| 1323 'string': 'foo' |
| 1324 }; |
1228 return o; | 1325 return o; |
1229 } | 1326 } |
1230 | 1327 |
1231 checkUnnamed2580(core.Map<core.String, core.Object> o) { | 1328 checkUnnamed2567(core.Map<core.String, core.Object> o) { |
1232 unittest.expect(o, unittest.hasLength(2)); | 1329 unittest.expect(o, unittest.hasLength(2)); |
1233 var casted13 = (o["x"]) as core.Map; unittest.expect(casted13, unittest.hasLen
gth(3)); unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted13["bool"], unittest.equals(true)); unittest.expect(casted13["stri
ng"], unittest.equals('foo')); | 1330 var casted13 = (o["x"]) as core.Map; |
1234 var casted14 = (o["y"]) as core.Map; unittest.expect(casted14, unittest.hasLen
gth(3)); unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted14["bool"], unittest.equals(true)); unittest.expect(casted14["stri
ng"], unittest.equals('foo')); | 1331 unittest.expect(casted13, unittest.hasLength(3)); |
| 1332 unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); |
| 1333 unittest.expect(casted13["bool"], unittest.equals(true)); |
| 1334 unittest.expect(casted13["string"], unittest.equals('foo')); |
| 1335 var casted14 = (o["y"]) as core.Map; |
| 1336 unittest.expect(casted14, unittest.hasLength(3)); |
| 1337 unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); |
| 1338 unittest.expect(casted14["bool"], unittest.equals(true)); |
| 1339 unittest.expect(casted14["string"], unittest.equals('foo')); |
1235 } | 1340 } |
1236 | 1341 |
1237 core.int buildCounterOperationMetadata = 0; | 1342 core.int buildCounterOperationMetadata = 0; |
1238 buildOperationMetadata() { | 1343 buildOperationMetadata() { |
1239 var o = new api.OperationMetadata(); | 1344 var o = new api.OperationMetadata(); |
1240 buildCounterOperationMetadata++; | 1345 buildCounterOperationMetadata++; |
1241 if (buildCounterOperationMetadata < 3) { | 1346 if (buildCounterOperationMetadata < 3) { |
1242 o.clientId = "foo"; | 1347 o.clientId = "foo"; |
1243 o.createTime = "foo"; | 1348 o.createTime = "foo"; |
1244 o.endTime = "foo"; | 1349 o.endTime = "foo"; |
1245 o.events = buildUnnamed2577(); | 1350 o.events = buildUnnamed2564(); |
1246 o.labels = buildUnnamed2578(); | 1351 o.labels = buildUnnamed2565(); |
1247 o.projectId = "foo"; | 1352 o.projectId = "foo"; |
1248 o.request = buildUnnamed2579(); | 1353 o.request = buildUnnamed2566(); |
1249 o.runtimeMetadata = buildUnnamed2580(); | 1354 o.runtimeMetadata = buildUnnamed2567(); |
1250 o.startTime = "foo"; | 1355 o.startTime = "foo"; |
1251 } | 1356 } |
1252 buildCounterOperationMetadata--; | 1357 buildCounterOperationMetadata--; |
1253 return o; | 1358 return o; |
1254 } | 1359 } |
1255 | 1360 |
1256 checkOperationMetadata(api.OperationMetadata o) { | 1361 checkOperationMetadata(api.OperationMetadata o) { |
1257 buildCounterOperationMetadata++; | 1362 buildCounterOperationMetadata++; |
1258 if (buildCounterOperationMetadata < 3) { | 1363 if (buildCounterOperationMetadata < 3) { |
1259 unittest.expect(o.clientId, unittest.equals('foo')); | 1364 unittest.expect(o.clientId, unittest.equals('foo')); |
1260 unittest.expect(o.createTime, unittest.equals('foo')); | 1365 unittest.expect(o.createTime, unittest.equals('foo')); |
1261 unittest.expect(o.endTime, unittest.equals('foo')); | 1366 unittest.expect(o.endTime, unittest.equals('foo')); |
1262 checkUnnamed2577(o.events); | 1367 checkUnnamed2564(o.events); |
1263 checkUnnamed2578(o.labels); | 1368 checkUnnamed2565(o.labels); |
1264 unittest.expect(o.projectId, unittest.equals('foo')); | 1369 unittest.expect(o.projectId, unittest.equals('foo')); |
1265 checkUnnamed2579(o.request); | 1370 checkUnnamed2566(o.request); |
1266 checkUnnamed2580(o.runtimeMetadata); | 1371 checkUnnamed2567(o.runtimeMetadata); |
1267 unittest.expect(o.startTime, unittest.equals('foo')); | 1372 unittest.expect(o.startTime, unittest.equals('foo')); |
1268 } | 1373 } |
1269 buildCounterOperationMetadata--; | 1374 buildCounterOperationMetadata--; |
1270 } | 1375 } |
1271 | 1376 |
1272 buildUnnamed2581() { | 1377 buildUnnamed2568() { |
1273 var o = new core.List<api.Binding>(); | 1378 var o = new core.List<api.Binding>(); |
1274 o.add(buildBinding()); | 1379 o.add(buildBinding()); |
1275 o.add(buildBinding()); | 1380 o.add(buildBinding()); |
1276 return o; | 1381 return o; |
1277 } | 1382 } |
1278 | 1383 |
1279 checkUnnamed2581(core.List<api.Binding> o) { | 1384 checkUnnamed2568(core.List<api.Binding> o) { |
1280 unittest.expect(o, unittest.hasLength(2)); | 1385 unittest.expect(o, unittest.hasLength(2)); |
1281 checkBinding(o[0]); | 1386 checkBinding(o[0]); |
1282 checkBinding(o[1]); | 1387 checkBinding(o[1]); |
1283 } | 1388 } |
1284 | 1389 |
1285 core.int buildCounterPolicy = 0; | 1390 core.int buildCounterPolicy = 0; |
1286 buildPolicy() { | 1391 buildPolicy() { |
1287 var o = new api.Policy(); | 1392 var o = new api.Policy(); |
1288 buildCounterPolicy++; | 1393 buildCounterPolicy++; |
1289 if (buildCounterPolicy < 3) { | 1394 if (buildCounterPolicy < 3) { |
1290 o.bindings = buildUnnamed2581(); | 1395 o.bindings = buildUnnamed2568(); |
1291 o.etag = "foo"; | 1396 o.etag = "foo"; |
1292 o.version = 42; | 1397 o.version = 42; |
1293 } | 1398 } |
1294 buildCounterPolicy--; | 1399 buildCounterPolicy--; |
1295 return o; | 1400 return o; |
1296 } | 1401 } |
1297 | 1402 |
1298 checkPolicy(api.Policy o) { | 1403 checkPolicy(api.Policy o) { |
1299 buildCounterPolicy++; | 1404 buildCounterPolicy++; |
1300 if (buildCounterPolicy < 3) { | 1405 if (buildCounterPolicy < 3) { |
1301 checkUnnamed2581(o.bindings); | 1406 checkUnnamed2568(o.bindings); |
1302 unittest.expect(o.etag, unittest.equals('foo')); | 1407 unittest.expect(o.etag, unittest.equals('foo')); |
1303 unittest.expect(o.version, unittest.equals(42)); | 1408 unittest.expect(o.version, unittest.equals(42)); |
1304 } | 1409 } |
1305 buildCounterPolicy--; | 1410 buildCounterPolicy--; |
1306 } | 1411 } |
1307 | 1412 |
1308 core.int buildCounterPosition = 0; | 1413 core.int buildCounterPosition = 0; |
1309 buildPosition() { | 1414 buildPosition() { |
1310 var o = new api.Position(); | 1415 var o = new api.Position(); |
1311 buildCounterPosition++; | 1416 buildCounterPosition++; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1371 checkRange(api.Range o) { | 1476 checkRange(api.Range o) { |
1372 buildCounterRange++; | 1477 buildCounterRange++; |
1373 if (buildCounterRange < 3) { | 1478 if (buildCounterRange < 3) { |
1374 unittest.expect(o.end, unittest.equals('foo')); | 1479 unittest.expect(o.end, unittest.equals('foo')); |
1375 unittest.expect(o.referenceName, unittest.equals('foo')); | 1480 unittest.expect(o.referenceName, unittest.equals('foo')); |
1376 unittest.expect(o.start, unittest.equals('foo')); | 1481 unittest.expect(o.start, unittest.equals('foo')); |
1377 } | 1482 } |
1378 buildCounterRange--; | 1483 buildCounterRange--; |
1379 } | 1484 } |
1380 | 1485 |
1381 buildUnnamed2582() { | 1486 buildUnnamed2569() { |
1382 var o = new core.List<core.int>(); | 1487 var o = new core.List<core.int>(); |
1383 o.add(42); | 1488 o.add(42); |
1384 o.add(42); | 1489 o.add(42); |
1385 return o; | 1490 return o; |
1386 } | 1491 } |
1387 | 1492 |
1388 checkUnnamed2582(core.List<core.int> o) { | 1493 checkUnnamed2569(core.List<core.int> o) { |
1389 unittest.expect(o, unittest.hasLength(2)); | 1494 unittest.expect(o, unittest.hasLength(2)); |
1390 unittest.expect(o[0], unittest.equals(42)); | 1495 unittest.expect(o[0], unittest.equals(42)); |
1391 unittest.expect(o[1], unittest.equals(42)); | 1496 unittest.expect(o[1], unittest.equals(42)); |
1392 } | 1497 } |
1393 | 1498 |
1394 buildUnnamed2583() { | 1499 buildUnnamed2570() { |
1395 var o = new core.List<core.Object>(); | 1500 var o = new core.List<core.Object>(); |
1396 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 1501 o.add({ |
1397 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 1502 'list': [1, 2, 3], |
| 1503 'bool': true, |
| 1504 'string': 'foo' |
| 1505 }); |
| 1506 o.add({ |
| 1507 'list': [1, 2, 3], |
| 1508 'bool': true, |
| 1509 'string': 'foo' |
| 1510 }); |
1398 return o; | 1511 return o; |
1399 } | 1512 } |
1400 | 1513 |
1401 checkUnnamed2583(core.List<core.Object> o) { | 1514 checkUnnamed2570(core.List<core.Object> o) { |
1402 unittest.expect(o, unittest.hasLength(2)); | 1515 unittest.expect(o, unittest.hasLength(2)); |
1403 var casted15 = (o[0]) as core.Map; unittest.expect(casted15, unittest.hasLengt
h(3)); unittest.expect(casted15["list"], unittest.equals([1, 2, 3])); unittest.e
xpect(casted15["bool"], unittest.equals(true)); unittest.expect(casted15["string
"], unittest.equals('foo')); | 1516 var casted15 = (o[0]) as core.Map; |
1404 var casted16 = (o[1]) as core.Map; unittest.expect(casted16, unittest.hasLengt
h(3)); unittest.expect(casted16["list"], unittest.equals([1, 2, 3])); unittest.e
xpect(casted16["bool"], unittest.equals(true)); unittest.expect(casted16["string
"], unittest.equals('foo')); | 1517 unittest.expect(casted15, unittest.hasLength(3)); |
| 1518 unittest.expect(casted15["list"], unittest.equals([1, 2, 3])); |
| 1519 unittest.expect(casted15["bool"], unittest.equals(true)); |
| 1520 unittest.expect(casted15["string"], unittest.equals('foo')); |
| 1521 var casted16 = (o[1]) as core.Map; |
| 1522 unittest.expect(casted16, unittest.hasLength(3)); |
| 1523 unittest.expect(casted16["list"], unittest.equals([1, 2, 3])); |
| 1524 unittest.expect(casted16["bool"], unittest.equals(true)); |
| 1525 unittest.expect(casted16["string"], unittest.equals('foo')); |
1405 } | 1526 } |
1406 | 1527 |
1407 buildUnnamed2584() { | 1528 buildUnnamed2571() { |
1408 var o = new core.Map<core.String, core.List<core.Object>>(); | 1529 var o = new core.Map<core.String, core.List<core.Object>>(); |
1409 o["x"] = buildUnnamed2583(); | 1530 o["x"] = buildUnnamed2570(); |
1410 o["y"] = buildUnnamed2583(); | 1531 o["y"] = buildUnnamed2570(); |
1411 return o; | 1532 return o; |
1412 } | 1533 } |
1413 | 1534 |
1414 checkUnnamed2584(core.Map<core.String, core.List<core.Object>> o) { | 1535 checkUnnamed2571(core.Map<core.String, core.List<core.Object>> o) { |
1415 unittest.expect(o, unittest.hasLength(2)); | 1536 unittest.expect(o, unittest.hasLength(2)); |
1416 checkUnnamed2583(o["x"]); | 1537 checkUnnamed2570(o["x"]); |
1417 checkUnnamed2583(o["y"]); | 1538 checkUnnamed2570(o["y"]); |
1418 } | 1539 } |
1419 | 1540 |
1420 core.int buildCounterRead = 0; | 1541 core.int buildCounterRead = 0; |
1421 buildRead() { | 1542 buildRead() { |
1422 var o = new api.Read(); | 1543 var o = new api.Read(); |
1423 buildCounterRead++; | 1544 buildCounterRead++; |
1424 if (buildCounterRead < 3) { | 1545 if (buildCounterRead < 3) { |
1425 o.alignedQuality = buildUnnamed2582(); | 1546 o.alignedQuality = buildUnnamed2569(); |
1426 o.alignedSequence = "foo"; | 1547 o.alignedSequence = "foo"; |
1427 o.alignment = buildLinearAlignment(); | 1548 o.alignment = buildLinearAlignment(); |
1428 o.duplicateFragment = true; | 1549 o.duplicateFragment = true; |
1429 o.failedVendorQualityChecks = true; | 1550 o.failedVendorQualityChecks = true; |
1430 o.fragmentLength = 42; | 1551 o.fragmentLength = 42; |
1431 o.fragmentName = "foo"; | 1552 o.fragmentName = "foo"; |
1432 o.id = "foo"; | 1553 o.id = "foo"; |
1433 o.info = buildUnnamed2584(); | 1554 o.info = buildUnnamed2571(); |
1434 o.nextMatePosition = buildPosition(); | 1555 o.nextMatePosition = buildPosition(); |
1435 o.numberReads = 42; | 1556 o.numberReads = 42; |
1436 o.properPlacement = true; | 1557 o.properPlacement = true; |
1437 o.readGroupId = "foo"; | 1558 o.readGroupId = "foo"; |
1438 o.readGroupSetId = "foo"; | 1559 o.readGroupSetId = "foo"; |
1439 o.readNumber = 42; | 1560 o.readNumber = 42; |
1440 o.secondaryAlignment = true; | 1561 o.secondaryAlignment = true; |
1441 o.supplementaryAlignment = true; | 1562 o.supplementaryAlignment = true; |
1442 } | 1563 } |
1443 buildCounterRead--; | 1564 buildCounterRead--; |
1444 return o; | 1565 return o; |
1445 } | 1566 } |
1446 | 1567 |
1447 checkRead(api.Read o) { | 1568 checkRead(api.Read o) { |
1448 buildCounterRead++; | 1569 buildCounterRead++; |
1449 if (buildCounterRead < 3) { | 1570 if (buildCounterRead < 3) { |
1450 checkUnnamed2582(o.alignedQuality); | 1571 checkUnnamed2569(o.alignedQuality); |
1451 unittest.expect(o.alignedSequence, unittest.equals('foo')); | 1572 unittest.expect(o.alignedSequence, unittest.equals('foo')); |
1452 checkLinearAlignment(o.alignment); | 1573 checkLinearAlignment(o.alignment); |
1453 unittest.expect(o.duplicateFragment, unittest.isTrue); | 1574 unittest.expect(o.duplicateFragment, unittest.isTrue); |
1454 unittest.expect(o.failedVendorQualityChecks, unittest.isTrue); | 1575 unittest.expect(o.failedVendorQualityChecks, unittest.isTrue); |
1455 unittest.expect(o.fragmentLength, unittest.equals(42)); | 1576 unittest.expect(o.fragmentLength, unittest.equals(42)); |
1456 unittest.expect(o.fragmentName, unittest.equals('foo')); | 1577 unittest.expect(o.fragmentName, unittest.equals('foo')); |
1457 unittest.expect(o.id, unittest.equals('foo')); | 1578 unittest.expect(o.id, unittest.equals('foo')); |
1458 checkUnnamed2584(o.info); | 1579 checkUnnamed2571(o.info); |
1459 checkPosition(o.nextMatePosition); | 1580 checkPosition(o.nextMatePosition); |
1460 unittest.expect(o.numberReads, unittest.equals(42)); | 1581 unittest.expect(o.numberReads, unittest.equals(42)); |
1461 unittest.expect(o.properPlacement, unittest.isTrue); | 1582 unittest.expect(o.properPlacement, unittest.isTrue); |
1462 unittest.expect(o.readGroupId, unittest.equals('foo')); | 1583 unittest.expect(o.readGroupId, unittest.equals('foo')); |
1463 unittest.expect(o.readGroupSetId, unittest.equals('foo')); | 1584 unittest.expect(o.readGroupSetId, unittest.equals('foo')); |
1464 unittest.expect(o.readNumber, unittest.equals(42)); | 1585 unittest.expect(o.readNumber, unittest.equals(42)); |
1465 unittest.expect(o.secondaryAlignment, unittest.isTrue); | 1586 unittest.expect(o.secondaryAlignment, unittest.isTrue); |
1466 unittest.expect(o.supplementaryAlignment, unittest.isTrue); | 1587 unittest.expect(o.supplementaryAlignment, unittest.isTrue); |
1467 } | 1588 } |
1468 buildCounterRead--; | 1589 buildCounterRead--; |
1469 } | 1590 } |
1470 | 1591 |
1471 buildUnnamed2585() { | 1592 buildUnnamed2572() { |
1472 var o = new core.List<core.Object>(); | 1593 var o = new core.List<core.Object>(); |
1473 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 1594 o.add({ |
1474 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 1595 'list': [1, 2, 3], |
| 1596 'bool': true, |
| 1597 'string': 'foo' |
| 1598 }); |
| 1599 o.add({ |
| 1600 'list': [1, 2, 3], |
| 1601 'bool': true, |
| 1602 'string': 'foo' |
| 1603 }); |
1475 return o; | 1604 return o; |
1476 } | 1605 } |
1477 | 1606 |
1478 checkUnnamed2585(core.List<core.Object> o) { | 1607 checkUnnamed2572(core.List<core.Object> o) { |
1479 unittest.expect(o, unittest.hasLength(2)); | 1608 unittest.expect(o, unittest.hasLength(2)); |
1480 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')); | 1609 var casted17 = (o[0]) as core.Map; |
1481 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')); | 1610 unittest.expect(casted17, unittest.hasLength(3)); |
| 1611 unittest.expect(casted17["list"], unittest.equals([1, 2, 3])); |
| 1612 unittest.expect(casted17["bool"], unittest.equals(true)); |
| 1613 unittest.expect(casted17["string"], unittest.equals('foo')); |
| 1614 var casted18 = (o[1]) as core.Map; |
| 1615 unittest.expect(casted18, unittest.hasLength(3)); |
| 1616 unittest.expect(casted18["list"], unittest.equals([1, 2, 3])); |
| 1617 unittest.expect(casted18["bool"], unittest.equals(true)); |
| 1618 unittest.expect(casted18["string"], unittest.equals('foo')); |
1482 } | 1619 } |
1483 | 1620 |
1484 buildUnnamed2586() { | 1621 buildUnnamed2573() { |
1485 var o = new core.Map<core.String, core.List<core.Object>>(); | 1622 var o = new core.Map<core.String, core.List<core.Object>>(); |
1486 o["x"] = buildUnnamed2585(); | 1623 o["x"] = buildUnnamed2572(); |
1487 o["y"] = buildUnnamed2585(); | 1624 o["y"] = buildUnnamed2572(); |
1488 return o; | 1625 return o; |
1489 } | 1626 } |
1490 | 1627 |
1491 checkUnnamed2586(core.Map<core.String, core.List<core.Object>> o) { | 1628 checkUnnamed2573(core.Map<core.String, core.List<core.Object>> o) { |
1492 unittest.expect(o, unittest.hasLength(2)); | 1629 unittest.expect(o, unittest.hasLength(2)); |
1493 checkUnnamed2585(o["x"]); | 1630 checkUnnamed2572(o["x"]); |
1494 checkUnnamed2585(o["y"]); | 1631 checkUnnamed2572(o["y"]); |
1495 } | 1632 } |
1496 | 1633 |
1497 buildUnnamed2587() { | 1634 buildUnnamed2574() { |
1498 var o = new core.List<api.Program>(); | 1635 var o = new core.List<api.Program>(); |
1499 o.add(buildProgram()); | 1636 o.add(buildProgram()); |
1500 o.add(buildProgram()); | 1637 o.add(buildProgram()); |
1501 return o; | 1638 return o; |
1502 } | 1639 } |
1503 | 1640 |
1504 checkUnnamed2587(core.List<api.Program> o) { | 1641 checkUnnamed2574(core.List<api.Program> o) { |
1505 unittest.expect(o, unittest.hasLength(2)); | 1642 unittest.expect(o, unittest.hasLength(2)); |
1506 checkProgram(o[0]); | 1643 checkProgram(o[0]); |
1507 checkProgram(o[1]); | 1644 checkProgram(o[1]); |
1508 } | 1645 } |
1509 | 1646 |
1510 core.int buildCounterReadGroup = 0; | 1647 core.int buildCounterReadGroup = 0; |
1511 buildReadGroup() { | 1648 buildReadGroup() { |
1512 var o = new api.ReadGroup(); | 1649 var o = new api.ReadGroup(); |
1513 buildCounterReadGroup++; | 1650 buildCounterReadGroup++; |
1514 if (buildCounterReadGroup < 3) { | 1651 if (buildCounterReadGroup < 3) { |
1515 o.datasetId = "foo"; | 1652 o.datasetId = "foo"; |
1516 o.description = "foo"; | 1653 o.description = "foo"; |
1517 o.experiment = buildExperiment(); | 1654 o.experiment = buildExperiment(); |
1518 o.id = "foo"; | 1655 o.id = "foo"; |
1519 o.info = buildUnnamed2586(); | 1656 o.info = buildUnnamed2573(); |
1520 o.name = "foo"; | 1657 o.name = "foo"; |
1521 o.predictedInsertSize = 42; | 1658 o.predictedInsertSize = 42; |
1522 o.programs = buildUnnamed2587(); | 1659 o.programs = buildUnnamed2574(); |
1523 o.referenceSetId = "foo"; | 1660 o.referenceSetId = "foo"; |
1524 o.sampleId = "foo"; | 1661 o.sampleId = "foo"; |
1525 } | 1662 } |
1526 buildCounterReadGroup--; | 1663 buildCounterReadGroup--; |
1527 return o; | 1664 return o; |
1528 } | 1665 } |
1529 | 1666 |
1530 checkReadGroup(api.ReadGroup o) { | 1667 checkReadGroup(api.ReadGroup o) { |
1531 buildCounterReadGroup++; | 1668 buildCounterReadGroup++; |
1532 if (buildCounterReadGroup < 3) { | 1669 if (buildCounterReadGroup < 3) { |
1533 unittest.expect(o.datasetId, unittest.equals('foo')); | 1670 unittest.expect(o.datasetId, unittest.equals('foo')); |
1534 unittest.expect(o.description, unittest.equals('foo')); | 1671 unittest.expect(o.description, unittest.equals('foo')); |
1535 checkExperiment(o.experiment); | 1672 checkExperiment(o.experiment); |
1536 unittest.expect(o.id, unittest.equals('foo')); | 1673 unittest.expect(o.id, unittest.equals('foo')); |
1537 checkUnnamed2586(o.info); | 1674 checkUnnamed2573(o.info); |
1538 unittest.expect(o.name, unittest.equals('foo')); | 1675 unittest.expect(o.name, unittest.equals('foo')); |
1539 unittest.expect(o.predictedInsertSize, unittest.equals(42)); | 1676 unittest.expect(o.predictedInsertSize, unittest.equals(42)); |
1540 checkUnnamed2587(o.programs); | 1677 checkUnnamed2574(o.programs); |
1541 unittest.expect(o.referenceSetId, unittest.equals('foo')); | 1678 unittest.expect(o.referenceSetId, unittest.equals('foo')); |
1542 unittest.expect(o.sampleId, unittest.equals('foo')); | 1679 unittest.expect(o.sampleId, unittest.equals('foo')); |
1543 } | 1680 } |
1544 buildCounterReadGroup--; | 1681 buildCounterReadGroup--; |
1545 } | 1682 } |
1546 | 1683 |
1547 buildUnnamed2588() { | 1684 buildUnnamed2575() { |
1548 var o = new core.List<core.Object>(); | 1685 var o = new core.List<core.Object>(); |
1549 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 1686 o.add({ |
1550 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 1687 'list': [1, 2, 3], |
| 1688 'bool': true, |
| 1689 'string': 'foo' |
| 1690 }); |
| 1691 o.add({ |
| 1692 'list': [1, 2, 3], |
| 1693 'bool': true, |
| 1694 'string': 'foo' |
| 1695 }); |
1551 return o; | 1696 return o; |
1552 } | 1697 } |
1553 | 1698 |
1554 checkUnnamed2588(core.List<core.Object> o) { | 1699 checkUnnamed2575(core.List<core.Object> o) { |
1555 unittest.expect(o, unittest.hasLength(2)); | 1700 unittest.expect(o, unittest.hasLength(2)); |
1556 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')); | 1701 var casted19 = (o[0]) as core.Map; |
1557 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')); | 1702 unittest.expect(casted19, unittest.hasLength(3)); |
| 1703 unittest.expect(casted19["list"], unittest.equals([1, 2, 3])); |
| 1704 unittest.expect(casted19["bool"], unittest.equals(true)); |
| 1705 unittest.expect(casted19["string"], unittest.equals('foo')); |
| 1706 var casted20 = (o[1]) as core.Map; |
| 1707 unittest.expect(casted20, unittest.hasLength(3)); |
| 1708 unittest.expect(casted20["list"], unittest.equals([1, 2, 3])); |
| 1709 unittest.expect(casted20["bool"], unittest.equals(true)); |
| 1710 unittest.expect(casted20["string"], unittest.equals('foo')); |
1558 } | 1711 } |
1559 | 1712 |
1560 buildUnnamed2589() { | 1713 buildUnnamed2576() { |
1561 var o = new core.Map<core.String, core.List<core.Object>>(); | 1714 var o = new core.Map<core.String, core.List<core.Object>>(); |
1562 o["x"] = buildUnnamed2588(); | 1715 o["x"] = buildUnnamed2575(); |
1563 o["y"] = buildUnnamed2588(); | 1716 o["y"] = buildUnnamed2575(); |
1564 return o; | 1717 return o; |
1565 } | 1718 } |
1566 | 1719 |
1567 checkUnnamed2589(core.Map<core.String, core.List<core.Object>> o) { | 1720 checkUnnamed2576(core.Map<core.String, core.List<core.Object>> o) { |
1568 unittest.expect(o, unittest.hasLength(2)); | 1721 unittest.expect(o, unittest.hasLength(2)); |
1569 checkUnnamed2588(o["x"]); | 1722 checkUnnamed2575(o["x"]); |
1570 checkUnnamed2588(o["y"]); | 1723 checkUnnamed2575(o["y"]); |
1571 } | 1724 } |
1572 | 1725 |
1573 buildUnnamed2590() { | 1726 buildUnnamed2577() { |
1574 var o = new core.List<api.ReadGroup>(); | 1727 var o = new core.List<api.ReadGroup>(); |
1575 o.add(buildReadGroup()); | 1728 o.add(buildReadGroup()); |
1576 o.add(buildReadGroup()); | 1729 o.add(buildReadGroup()); |
1577 return o; | 1730 return o; |
1578 } | 1731 } |
1579 | 1732 |
1580 checkUnnamed2590(core.List<api.ReadGroup> o) { | 1733 checkUnnamed2577(core.List<api.ReadGroup> o) { |
1581 unittest.expect(o, unittest.hasLength(2)); | 1734 unittest.expect(o, unittest.hasLength(2)); |
1582 checkReadGroup(o[0]); | 1735 checkReadGroup(o[0]); |
1583 checkReadGroup(o[1]); | 1736 checkReadGroup(o[1]); |
1584 } | 1737 } |
1585 | 1738 |
1586 core.int buildCounterReadGroupSet = 0; | 1739 core.int buildCounterReadGroupSet = 0; |
1587 buildReadGroupSet() { | 1740 buildReadGroupSet() { |
1588 var o = new api.ReadGroupSet(); | 1741 var o = new api.ReadGroupSet(); |
1589 buildCounterReadGroupSet++; | 1742 buildCounterReadGroupSet++; |
1590 if (buildCounterReadGroupSet < 3) { | 1743 if (buildCounterReadGroupSet < 3) { |
1591 o.datasetId = "foo"; | 1744 o.datasetId = "foo"; |
1592 o.filename = "foo"; | 1745 o.filename = "foo"; |
1593 o.id = "foo"; | 1746 o.id = "foo"; |
1594 o.info = buildUnnamed2589(); | 1747 o.info = buildUnnamed2576(); |
1595 o.name = "foo"; | 1748 o.name = "foo"; |
1596 o.readGroups = buildUnnamed2590(); | 1749 o.readGroups = buildUnnamed2577(); |
1597 o.referenceSetId = "foo"; | 1750 o.referenceSetId = "foo"; |
1598 } | 1751 } |
1599 buildCounterReadGroupSet--; | 1752 buildCounterReadGroupSet--; |
1600 return o; | 1753 return o; |
1601 } | 1754 } |
1602 | 1755 |
1603 checkReadGroupSet(api.ReadGroupSet o) { | 1756 checkReadGroupSet(api.ReadGroupSet o) { |
1604 buildCounterReadGroupSet++; | 1757 buildCounterReadGroupSet++; |
1605 if (buildCounterReadGroupSet < 3) { | 1758 if (buildCounterReadGroupSet < 3) { |
1606 unittest.expect(o.datasetId, unittest.equals('foo')); | 1759 unittest.expect(o.datasetId, unittest.equals('foo')); |
1607 unittest.expect(o.filename, unittest.equals('foo')); | 1760 unittest.expect(o.filename, unittest.equals('foo')); |
1608 unittest.expect(o.id, unittest.equals('foo')); | 1761 unittest.expect(o.id, unittest.equals('foo')); |
1609 checkUnnamed2589(o.info); | 1762 checkUnnamed2576(o.info); |
1610 unittest.expect(o.name, unittest.equals('foo')); | 1763 unittest.expect(o.name, unittest.equals('foo')); |
1611 checkUnnamed2590(o.readGroups); | 1764 checkUnnamed2577(o.readGroups); |
1612 unittest.expect(o.referenceSetId, unittest.equals('foo')); | 1765 unittest.expect(o.referenceSetId, unittest.equals('foo')); |
1613 } | 1766 } |
1614 buildCounterReadGroupSet--; | 1767 buildCounterReadGroupSet--; |
1615 } | 1768 } |
1616 | 1769 |
1617 buildUnnamed2591() { | 1770 buildUnnamed2578() { |
1618 var o = new core.List<core.String>(); | 1771 var o = new core.List<core.String>(); |
1619 o.add("foo"); | 1772 o.add("foo"); |
1620 o.add("foo"); | 1773 o.add("foo"); |
1621 return o; | 1774 return o; |
1622 } | 1775 } |
1623 | 1776 |
1624 checkUnnamed2591(core.List<core.String> o) { | 1777 checkUnnamed2578(core.List<core.String> o) { |
1625 unittest.expect(o, unittest.hasLength(2)); | 1778 unittest.expect(o, unittest.hasLength(2)); |
1626 unittest.expect(o[0], unittest.equals('foo')); | 1779 unittest.expect(o[0], unittest.equals('foo')); |
1627 unittest.expect(o[1], unittest.equals('foo')); | 1780 unittest.expect(o[1], unittest.equals('foo')); |
1628 } | 1781 } |
1629 | 1782 |
1630 core.int buildCounterReference = 0; | 1783 core.int buildCounterReference = 0; |
1631 buildReference() { | 1784 buildReference() { |
1632 var o = new api.Reference(); | 1785 var o = new api.Reference(); |
1633 buildCounterReference++; | 1786 buildCounterReference++; |
1634 if (buildCounterReference < 3) { | 1787 if (buildCounterReference < 3) { |
1635 o.id = "foo"; | 1788 o.id = "foo"; |
1636 o.length = "foo"; | 1789 o.length = "foo"; |
1637 o.md5checksum = "foo"; | 1790 o.md5checksum = "foo"; |
1638 o.name = "foo"; | 1791 o.name = "foo"; |
1639 o.ncbiTaxonId = 42; | 1792 o.ncbiTaxonId = 42; |
1640 o.sourceAccessions = buildUnnamed2591(); | 1793 o.sourceAccessions = buildUnnamed2578(); |
1641 o.sourceUri = "foo"; | 1794 o.sourceUri = "foo"; |
1642 } | 1795 } |
1643 buildCounterReference--; | 1796 buildCounterReference--; |
1644 return o; | 1797 return o; |
1645 } | 1798 } |
1646 | 1799 |
1647 checkReference(api.Reference o) { | 1800 checkReference(api.Reference o) { |
1648 buildCounterReference++; | 1801 buildCounterReference++; |
1649 if (buildCounterReference < 3) { | 1802 if (buildCounterReference < 3) { |
1650 unittest.expect(o.id, unittest.equals('foo')); | 1803 unittest.expect(o.id, unittest.equals('foo')); |
1651 unittest.expect(o.length, unittest.equals('foo')); | 1804 unittest.expect(o.length, unittest.equals('foo')); |
1652 unittest.expect(o.md5checksum, unittest.equals('foo')); | 1805 unittest.expect(o.md5checksum, unittest.equals('foo')); |
1653 unittest.expect(o.name, unittest.equals('foo')); | 1806 unittest.expect(o.name, unittest.equals('foo')); |
1654 unittest.expect(o.ncbiTaxonId, unittest.equals(42)); | 1807 unittest.expect(o.ncbiTaxonId, unittest.equals(42)); |
1655 checkUnnamed2591(o.sourceAccessions); | 1808 checkUnnamed2578(o.sourceAccessions); |
1656 unittest.expect(o.sourceUri, unittest.equals('foo')); | 1809 unittest.expect(o.sourceUri, unittest.equals('foo')); |
1657 } | 1810 } |
1658 buildCounterReference--; | 1811 buildCounterReference--; |
1659 } | 1812 } |
1660 | 1813 |
1661 core.int buildCounterReferenceBound = 0; | 1814 core.int buildCounterReferenceBound = 0; |
1662 buildReferenceBound() { | 1815 buildReferenceBound() { |
1663 var o = new api.ReferenceBound(); | 1816 var o = new api.ReferenceBound(); |
1664 buildCounterReferenceBound++; | 1817 buildCounterReferenceBound++; |
1665 if (buildCounterReferenceBound < 3) { | 1818 if (buildCounterReferenceBound < 3) { |
1666 o.referenceName = "foo"; | 1819 o.referenceName = "foo"; |
1667 o.upperBound = "foo"; | 1820 o.upperBound = "foo"; |
1668 } | 1821 } |
1669 buildCounterReferenceBound--; | 1822 buildCounterReferenceBound--; |
1670 return o; | 1823 return o; |
1671 } | 1824 } |
1672 | 1825 |
1673 checkReferenceBound(api.ReferenceBound o) { | 1826 checkReferenceBound(api.ReferenceBound o) { |
1674 buildCounterReferenceBound++; | 1827 buildCounterReferenceBound++; |
1675 if (buildCounterReferenceBound < 3) { | 1828 if (buildCounterReferenceBound < 3) { |
1676 unittest.expect(o.referenceName, unittest.equals('foo')); | 1829 unittest.expect(o.referenceName, unittest.equals('foo')); |
1677 unittest.expect(o.upperBound, unittest.equals('foo')); | 1830 unittest.expect(o.upperBound, unittest.equals('foo')); |
1678 } | 1831 } |
1679 buildCounterReferenceBound--; | 1832 buildCounterReferenceBound--; |
1680 } | 1833 } |
1681 | 1834 |
1682 buildUnnamed2592() { | 1835 buildUnnamed2579() { |
1683 var o = new core.List<core.String>(); | 1836 var o = new core.List<core.String>(); |
1684 o.add("foo"); | 1837 o.add("foo"); |
1685 o.add("foo"); | 1838 o.add("foo"); |
1686 return o; | 1839 return o; |
1687 } | 1840 } |
1688 | 1841 |
1689 checkUnnamed2592(core.List<core.String> o) { | 1842 checkUnnamed2579(core.List<core.String> o) { |
1690 unittest.expect(o, unittest.hasLength(2)); | 1843 unittest.expect(o, unittest.hasLength(2)); |
1691 unittest.expect(o[0], unittest.equals('foo')); | 1844 unittest.expect(o[0], unittest.equals('foo')); |
1692 unittest.expect(o[1], unittest.equals('foo')); | 1845 unittest.expect(o[1], unittest.equals('foo')); |
1693 } | 1846 } |
1694 | 1847 |
1695 buildUnnamed2593() { | 1848 buildUnnamed2580() { |
1696 var o = new core.List<core.String>(); | 1849 var o = new core.List<core.String>(); |
1697 o.add("foo"); | 1850 o.add("foo"); |
1698 o.add("foo"); | 1851 o.add("foo"); |
1699 return o; | 1852 return o; |
1700 } | 1853 } |
1701 | 1854 |
1702 checkUnnamed2593(core.List<core.String> o) { | 1855 checkUnnamed2580(core.List<core.String> o) { |
1703 unittest.expect(o, unittest.hasLength(2)); | 1856 unittest.expect(o, unittest.hasLength(2)); |
1704 unittest.expect(o[0], unittest.equals('foo')); | 1857 unittest.expect(o[0], unittest.equals('foo')); |
1705 unittest.expect(o[1], unittest.equals('foo')); | 1858 unittest.expect(o[1], unittest.equals('foo')); |
1706 } | 1859 } |
1707 | 1860 |
1708 core.int buildCounterReferenceSet = 0; | 1861 core.int buildCounterReferenceSet = 0; |
1709 buildReferenceSet() { | 1862 buildReferenceSet() { |
1710 var o = new api.ReferenceSet(); | 1863 var o = new api.ReferenceSet(); |
1711 buildCounterReferenceSet++; | 1864 buildCounterReferenceSet++; |
1712 if (buildCounterReferenceSet < 3) { | 1865 if (buildCounterReferenceSet < 3) { |
1713 o.assemblyId = "foo"; | 1866 o.assemblyId = "foo"; |
1714 o.description = "foo"; | 1867 o.description = "foo"; |
1715 o.id = "foo"; | 1868 o.id = "foo"; |
1716 o.md5checksum = "foo"; | 1869 o.md5checksum = "foo"; |
1717 o.ncbiTaxonId = 42; | 1870 o.ncbiTaxonId = 42; |
1718 o.referenceIds = buildUnnamed2592(); | 1871 o.referenceIds = buildUnnamed2579(); |
1719 o.sourceAccessions = buildUnnamed2593(); | 1872 o.sourceAccessions = buildUnnamed2580(); |
1720 o.sourceUri = "foo"; | 1873 o.sourceUri = "foo"; |
1721 } | 1874 } |
1722 buildCounterReferenceSet--; | 1875 buildCounterReferenceSet--; |
1723 return o; | 1876 return o; |
1724 } | 1877 } |
1725 | 1878 |
1726 checkReferenceSet(api.ReferenceSet o) { | 1879 checkReferenceSet(api.ReferenceSet o) { |
1727 buildCounterReferenceSet++; | 1880 buildCounterReferenceSet++; |
1728 if (buildCounterReferenceSet < 3) { | 1881 if (buildCounterReferenceSet < 3) { |
1729 unittest.expect(o.assemblyId, unittest.equals('foo')); | 1882 unittest.expect(o.assemblyId, unittest.equals('foo')); |
1730 unittest.expect(o.description, unittest.equals('foo')); | 1883 unittest.expect(o.description, unittest.equals('foo')); |
1731 unittest.expect(o.id, unittest.equals('foo')); | 1884 unittest.expect(o.id, unittest.equals('foo')); |
1732 unittest.expect(o.md5checksum, unittest.equals('foo')); | 1885 unittest.expect(o.md5checksum, unittest.equals('foo')); |
1733 unittest.expect(o.ncbiTaxonId, unittest.equals(42)); | 1886 unittest.expect(o.ncbiTaxonId, unittest.equals(42)); |
1734 checkUnnamed2592(o.referenceIds); | 1887 checkUnnamed2579(o.referenceIds); |
1735 checkUnnamed2593(o.sourceAccessions); | 1888 checkUnnamed2580(o.sourceAccessions); |
1736 unittest.expect(o.sourceUri, unittest.equals('foo')); | 1889 unittest.expect(o.sourceUri, unittest.equals('foo')); |
1737 } | 1890 } |
1738 buildCounterReferenceSet--; | 1891 buildCounterReferenceSet--; |
1739 } | 1892 } |
1740 | 1893 |
1741 core.int buildCounterRuntimeMetadata = 0; | 1894 core.int buildCounterRuntimeMetadata = 0; |
1742 buildRuntimeMetadata() { | 1895 buildRuntimeMetadata() { |
1743 var o = new api.RuntimeMetadata(); | 1896 var o = new api.RuntimeMetadata(); |
1744 buildCounterRuntimeMetadata++; | 1897 buildCounterRuntimeMetadata++; |
1745 if (buildCounterRuntimeMetadata < 3) { | 1898 if (buildCounterRuntimeMetadata < 3) { |
1746 o.computeEngine = buildComputeEngine(); | 1899 o.computeEngine = buildComputeEngine(); |
1747 } | 1900 } |
1748 buildCounterRuntimeMetadata--; | 1901 buildCounterRuntimeMetadata--; |
1749 return o; | 1902 return o; |
1750 } | 1903 } |
1751 | 1904 |
1752 checkRuntimeMetadata(api.RuntimeMetadata o) { | 1905 checkRuntimeMetadata(api.RuntimeMetadata o) { |
1753 buildCounterRuntimeMetadata++; | 1906 buildCounterRuntimeMetadata++; |
1754 if (buildCounterRuntimeMetadata < 3) { | 1907 if (buildCounterRuntimeMetadata < 3) { |
1755 checkComputeEngine(o.computeEngine); | 1908 checkComputeEngine(o.computeEngine); |
1756 } | 1909 } |
1757 buildCounterRuntimeMetadata--; | 1910 buildCounterRuntimeMetadata--; |
1758 } | 1911 } |
1759 | 1912 |
1760 buildUnnamed2594() { | 1913 buildUnnamed2581() { |
1761 var o = new core.List<core.String>(); | 1914 var o = new core.List<core.String>(); |
1762 o.add("foo"); | 1915 o.add("foo"); |
1763 o.add("foo"); | 1916 o.add("foo"); |
1764 return o; | 1917 return o; |
1765 } | 1918 } |
1766 | 1919 |
1767 checkUnnamed2594(core.List<core.String> o) { | 1920 checkUnnamed2581(core.List<core.String> o) { |
1768 unittest.expect(o, unittest.hasLength(2)); | 1921 unittest.expect(o, unittest.hasLength(2)); |
1769 unittest.expect(o[0], unittest.equals('foo')); | 1922 unittest.expect(o[0], unittest.equals('foo')); |
1770 unittest.expect(o[1], unittest.equals('foo')); | 1923 unittest.expect(o[1], unittest.equals('foo')); |
1771 } | 1924 } |
1772 | 1925 |
1773 buildUnnamed2595() { | 1926 buildUnnamed2582() { |
1774 var o = new core.List<core.String>(); | 1927 var o = new core.List<core.String>(); |
1775 o.add("foo"); | 1928 o.add("foo"); |
1776 o.add("foo"); | 1929 o.add("foo"); |
1777 return o; | 1930 return o; |
1778 } | 1931 } |
1779 | 1932 |
1780 checkUnnamed2595(core.List<core.String> o) { | 1933 checkUnnamed2582(core.List<core.String> o) { |
1781 unittest.expect(o, unittest.hasLength(2)); | 1934 unittest.expect(o, unittest.hasLength(2)); |
1782 unittest.expect(o[0], unittest.equals('foo')); | 1935 unittest.expect(o[0], unittest.equals('foo')); |
1783 unittest.expect(o[1], unittest.equals('foo')); | 1936 unittest.expect(o[1], unittest.equals('foo')); |
1784 } | 1937 } |
1785 | 1938 |
1786 core.int buildCounterSearchAnnotationSetsRequest = 0; | 1939 core.int buildCounterSearchAnnotationSetsRequest = 0; |
1787 buildSearchAnnotationSetsRequest() { | 1940 buildSearchAnnotationSetsRequest() { |
1788 var o = new api.SearchAnnotationSetsRequest(); | 1941 var o = new api.SearchAnnotationSetsRequest(); |
1789 buildCounterSearchAnnotationSetsRequest++; | 1942 buildCounterSearchAnnotationSetsRequest++; |
1790 if (buildCounterSearchAnnotationSetsRequest < 3) { | 1943 if (buildCounterSearchAnnotationSetsRequest < 3) { |
1791 o.datasetIds = buildUnnamed2594(); | 1944 o.datasetIds = buildUnnamed2581(); |
1792 o.name = "foo"; | 1945 o.name = "foo"; |
1793 o.pageSize = 42; | 1946 o.pageSize = 42; |
1794 o.pageToken = "foo"; | 1947 o.pageToken = "foo"; |
1795 o.referenceSetId = "foo"; | 1948 o.referenceSetId = "foo"; |
1796 o.types = buildUnnamed2595(); | 1949 o.types = buildUnnamed2582(); |
1797 } | 1950 } |
1798 buildCounterSearchAnnotationSetsRequest--; | 1951 buildCounterSearchAnnotationSetsRequest--; |
1799 return o; | 1952 return o; |
1800 } | 1953 } |
1801 | 1954 |
1802 checkSearchAnnotationSetsRequest(api.SearchAnnotationSetsRequest o) { | 1955 checkSearchAnnotationSetsRequest(api.SearchAnnotationSetsRequest o) { |
1803 buildCounterSearchAnnotationSetsRequest++; | 1956 buildCounterSearchAnnotationSetsRequest++; |
1804 if (buildCounterSearchAnnotationSetsRequest < 3) { | 1957 if (buildCounterSearchAnnotationSetsRequest < 3) { |
1805 checkUnnamed2594(o.datasetIds); | 1958 checkUnnamed2581(o.datasetIds); |
1806 unittest.expect(o.name, unittest.equals('foo')); | 1959 unittest.expect(o.name, unittest.equals('foo')); |
1807 unittest.expect(o.pageSize, unittest.equals(42)); | 1960 unittest.expect(o.pageSize, unittest.equals(42)); |
1808 unittest.expect(o.pageToken, unittest.equals('foo')); | 1961 unittest.expect(o.pageToken, unittest.equals('foo')); |
1809 unittest.expect(o.referenceSetId, unittest.equals('foo')); | 1962 unittest.expect(o.referenceSetId, unittest.equals('foo')); |
1810 checkUnnamed2595(o.types); | 1963 checkUnnamed2582(o.types); |
1811 } | 1964 } |
1812 buildCounterSearchAnnotationSetsRequest--; | 1965 buildCounterSearchAnnotationSetsRequest--; |
1813 } | 1966 } |
1814 | 1967 |
1815 buildUnnamed2596() { | 1968 buildUnnamed2583() { |
1816 var o = new core.List<api.AnnotationSet>(); | 1969 var o = new core.List<api.AnnotationSet>(); |
1817 o.add(buildAnnotationSet()); | 1970 o.add(buildAnnotationSet()); |
1818 o.add(buildAnnotationSet()); | 1971 o.add(buildAnnotationSet()); |
1819 return o; | 1972 return o; |
1820 } | 1973 } |
1821 | 1974 |
1822 checkUnnamed2596(core.List<api.AnnotationSet> o) { | 1975 checkUnnamed2583(core.List<api.AnnotationSet> o) { |
1823 unittest.expect(o, unittest.hasLength(2)); | 1976 unittest.expect(o, unittest.hasLength(2)); |
1824 checkAnnotationSet(o[0]); | 1977 checkAnnotationSet(o[0]); |
1825 checkAnnotationSet(o[1]); | 1978 checkAnnotationSet(o[1]); |
1826 } | 1979 } |
1827 | 1980 |
1828 core.int buildCounterSearchAnnotationSetsResponse = 0; | 1981 core.int buildCounterSearchAnnotationSetsResponse = 0; |
1829 buildSearchAnnotationSetsResponse() { | 1982 buildSearchAnnotationSetsResponse() { |
1830 var o = new api.SearchAnnotationSetsResponse(); | 1983 var o = new api.SearchAnnotationSetsResponse(); |
1831 buildCounterSearchAnnotationSetsResponse++; | 1984 buildCounterSearchAnnotationSetsResponse++; |
1832 if (buildCounterSearchAnnotationSetsResponse < 3) { | 1985 if (buildCounterSearchAnnotationSetsResponse < 3) { |
1833 o.annotationSets = buildUnnamed2596(); | 1986 o.annotationSets = buildUnnamed2583(); |
1834 o.nextPageToken = "foo"; | 1987 o.nextPageToken = "foo"; |
1835 } | 1988 } |
1836 buildCounterSearchAnnotationSetsResponse--; | 1989 buildCounterSearchAnnotationSetsResponse--; |
1837 return o; | 1990 return o; |
1838 } | 1991 } |
1839 | 1992 |
1840 checkSearchAnnotationSetsResponse(api.SearchAnnotationSetsResponse o) { | 1993 checkSearchAnnotationSetsResponse(api.SearchAnnotationSetsResponse o) { |
1841 buildCounterSearchAnnotationSetsResponse++; | 1994 buildCounterSearchAnnotationSetsResponse++; |
1842 if (buildCounterSearchAnnotationSetsResponse < 3) { | 1995 if (buildCounterSearchAnnotationSetsResponse < 3) { |
1843 checkUnnamed2596(o.annotationSets); | 1996 checkUnnamed2583(o.annotationSets); |
1844 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1997 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1845 } | 1998 } |
1846 buildCounterSearchAnnotationSetsResponse--; | 1999 buildCounterSearchAnnotationSetsResponse--; |
1847 } | 2000 } |
1848 | 2001 |
1849 buildUnnamed2597() { | 2002 buildUnnamed2584() { |
1850 var o = new core.List<core.String>(); | 2003 var o = new core.List<core.String>(); |
1851 o.add("foo"); | 2004 o.add("foo"); |
1852 o.add("foo"); | 2005 o.add("foo"); |
1853 return o; | 2006 return o; |
1854 } | 2007 } |
1855 | 2008 |
1856 checkUnnamed2597(core.List<core.String> o) { | 2009 checkUnnamed2584(core.List<core.String> o) { |
1857 unittest.expect(o, unittest.hasLength(2)); | 2010 unittest.expect(o, unittest.hasLength(2)); |
1858 unittest.expect(o[0], unittest.equals('foo')); | 2011 unittest.expect(o[0], unittest.equals('foo')); |
1859 unittest.expect(o[1], unittest.equals('foo')); | 2012 unittest.expect(o[1], unittest.equals('foo')); |
1860 } | 2013 } |
1861 | 2014 |
1862 core.int buildCounterSearchAnnotationsRequest = 0; | 2015 core.int buildCounterSearchAnnotationsRequest = 0; |
1863 buildSearchAnnotationsRequest() { | 2016 buildSearchAnnotationsRequest() { |
1864 var o = new api.SearchAnnotationsRequest(); | 2017 var o = new api.SearchAnnotationsRequest(); |
1865 buildCounterSearchAnnotationsRequest++; | 2018 buildCounterSearchAnnotationsRequest++; |
1866 if (buildCounterSearchAnnotationsRequest < 3) { | 2019 if (buildCounterSearchAnnotationsRequest < 3) { |
1867 o.annotationSetIds = buildUnnamed2597(); | 2020 o.annotationSetIds = buildUnnamed2584(); |
1868 o.end = "foo"; | 2021 o.end = "foo"; |
1869 o.pageSize = 42; | 2022 o.pageSize = 42; |
1870 o.pageToken = "foo"; | 2023 o.pageToken = "foo"; |
1871 o.referenceId = "foo"; | 2024 o.referenceId = "foo"; |
1872 o.referenceName = "foo"; | 2025 o.referenceName = "foo"; |
1873 o.start = "foo"; | 2026 o.start = "foo"; |
1874 } | 2027 } |
1875 buildCounterSearchAnnotationsRequest--; | 2028 buildCounterSearchAnnotationsRequest--; |
1876 return o; | 2029 return o; |
1877 } | 2030 } |
1878 | 2031 |
1879 checkSearchAnnotationsRequest(api.SearchAnnotationsRequest o) { | 2032 checkSearchAnnotationsRequest(api.SearchAnnotationsRequest o) { |
1880 buildCounterSearchAnnotationsRequest++; | 2033 buildCounterSearchAnnotationsRequest++; |
1881 if (buildCounterSearchAnnotationsRequest < 3) { | 2034 if (buildCounterSearchAnnotationsRequest < 3) { |
1882 checkUnnamed2597(o.annotationSetIds); | 2035 checkUnnamed2584(o.annotationSetIds); |
1883 unittest.expect(o.end, unittest.equals('foo')); | 2036 unittest.expect(o.end, unittest.equals('foo')); |
1884 unittest.expect(o.pageSize, unittest.equals(42)); | 2037 unittest.expect(o.pageSize, unittest.equals(42)); |
1885 unittest.expect(o.pageToken, unittest.equals('foo')); | 2038 unittest.expect(o.pageToken, unittest.equals('foo')); |
1886 unittest.expect(o.referenceId, unittest.equals('foo')); | 2039 unittest.expect(o.referenceId, unittest.equals('foo')); |
1887 unittest.expect(o.referenceName, unittest.equals('foo')); | 2040 unittest.expect(o.referenceName, unittest.equals('foo')); |
1888 unittest.expect(o.start, unittest.equals('foo')); | 2041 unittest.expect(o.start, unittest.equals('foo')); |
1889 } | 2042 } |
1890 buildCounterSearchAnnotationsRequest--; | 2043 buildCounterSearchAnnotationsRequest--; |
1891 } | 2044 } |
1892 | 2045 |
1893 buildUnnamed2598() { | 2046 buildUnnamed2585() { |
1894 var o = new core.List<api.Annotation>(); | 2047 var o = new core.List<api.Annotation>(); |
1895 o.add(buildAnnotation()); | 2048 o.add(buildAnnotation()); |
1896 o.add(buildAnnotation()); | 2049 o.add(buildAnnotation()); |
1897 return o; | 2050 return o; |
1898 } | 2051 } |
1899 | 2052 |
1900 checkUnnamed2598(core.List<api.Annotation> o) { | 2053 checkUnnamed2585(core.List<api.Annotation> o) { |
1901 unittest.expect(o, unittest.hasLength(2)); | 2054 unittest.expect(o, unittest.hasLength(2)); |
1902 checkAnnotation(o[0]); | 2055 checkAnnotation(o[0]); |
1903 checkAnnotation(o[1]); | 2056 checkAnnotation(o[1]); |
1904 } | 2057 } |
1905 | 2058 |
1906 core.int buildCounterSearchAnnotationsResponse = 0; | 2059 core.int buildCounterSearchAnnotationsResponse = 0; |
1907 buildSearchAnnotationsResponse() { | 2060 buildSearchAnnotationsResponse() { |
1908 var o = new api.SearchAnnotationsResponse(); | 2061 var o = new api.SearchAnnotationsResponse(); |
1909 buildCounterSearchAnnotationsResponse++; | 2062 buildCounterSearchAnnotationsResponse++; |
1910 if (buildCounterSearchAnnotationsResponse < 3) { | 2063 if (buildCounterSearchAnnotationsResponse < 3) { |
1911 o.annotations = buildUnnamed2598(); | 2064 o.annotations = buildUnnamed2585(); |
1912 o.nextPageToken = "foo"; | 2065 o.nextPageToken = "foo"; |
1913 } | 2066 } |
1914 buildCounterSearchAnnotationsResponse--; | 2067 buildCounterSearchAnnotationsResponse--; |
1915 return o; | 2068 return o; |
1916 } | 2069 } |
1917 | 2070 |
1918 checkSearchAnnotationsResponse(api.SearchAnnotationsResponse o) { | 2071 checkSearchAnnotationsResponse(api.SearchAnnotationsResponse o) { |
1919 buildCounterSearchAnnotationsResponse++; | 2072 buildCounterSearchAnnotationsResponse++; |
1920 if (buildCounterSearchAnnotationsResponse < 3) { | 2073 if (buildCounterSearchAnnotationsResponse < 3) { |
1921 checkUnnamed2598(o.annotations); | 2074 checkUnnamed2585(o.annotations); |
1922 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2075 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1923 } | 2076 } |
1924 buildCounterSearchAnnotationsResponse--; | 2077 buildCounterSearchAnnotationsResponse--; |
1925 } | 2078 } |
1926 | 2079 |
1927 buildUnnamed2599() { | 2080 buildUnnamed2586() { |
1928 var o = new core.List<core.String>(); | 2081 var o = new core.List<core.String>(); |
1929 o.add("foo"); | 2082 o.add("foo"); |
1930 o.add("foo"); | 2083 o.add("foo"); |
1931 return o; | 2084 return o; |
1932 } | 2085 } |
1933 | 2086 |
1934 checkUnnamed2599(core.List<core.String> o) { | 2087 checkUnnamed2586(core.List<core.String> o) { |
1935 unittest.expect(o, unittest.hasLength(2)); | 2088 unittest.expect(o, unittest.hasLength(2)); |
1936 unittest.expect(o[0], unittest.equals('foo')); | 2089 unittest.expect(o[0], unittest.equals('foo')); |
1937 unittest.expect(o[1], unittest.equals('foo')); | 2090 unittest.expect(o[1], unittest.equals('foo')); |
1938 } | 2091 } |
1939 | 2092 |
1940 core.int buildCounterSearchCallSetsRequest = 0; | 2093 core.int buildCounterSearchCallSetsRequest = 0; |
1941 buildSearchCallSetsRequest() { | 2094 buildSearchCallSetsRequest() { |
1942 var o = new api.SearchCallSetsRequest(); | 2095 var o = new api.SearchCallSetsRequest(); |
1943 buildCounterSearchCallSetsRequest++; | 2096 buildCounterSearchCallSetsRequest++; |
1944 if (buildCounterSearchCallSetsRequest < 3) { | 2097 if (buildCounterSearchCallSetsRequest < 3) { |
1945 o.name = "foo"; | 2098 o.name = "foo"; |
1946 o.pageSize = 42; | 2099 o.pageSize = 42; |
1947 o.pageToken = "foo"; | 2100 o.pageToken = "foo"; |
1948 o.variantSetIds = buildUnnamed2599(); | 2101 o.variantSetIds = buildUnnamed2586(); |
1949 } | 2102 } |
1950 buildCounterSearchCallSetsRequest--; | 2103 buildCounterSearchCallSetsRequest--; |
1951 return o; | 2104 return o; |
1952 } | 2105 } |
1953 | 2106 |
1954 checkSearchCallSetsRequest(api.SearchCallSetsRequest o) { | 2107 checkSearchCallSetsRequest(api.SearchCallSetsRequest o) { |
1955 buildCounterSearchCallSetsRequest++; | 2108 buildCounterSearchCallSetsRequest++; |
1956 if (buildCounterSearchCallSetsRequest < 3) { | 2109 if (buildCounterSearchCallSetsRequest < 3) { |
1957 unittest.expect(o.name, unittest.equals('foo')); | 2110 unittest.expect(o.name, unittest.equals('foo')); |
1958 unittest.expect(o.pageSize, unittest.equals(42)); | 2111 unittest.expect(o.pageSize, unittest.equals(42)); |
1959 unittest.expect(o.pageToken, unittest.equals('foo')); | 2112 unittest.expect(o.pageToken, unittest.equals('foo')); |
1960 checkUnnamed2599(o.variantSetIds); | 2113 checkUnnamed2586(o.variantSetIds); |
1961 } | 2114 } |
1962 buildCounterSearchCallSetsRequest--; | 2115 buildCounterSearchCallSetsRequest--; |
1963 } | 2116 } |
1964 | 2117 |
1965 buildUnnamed2600() { | 2118 buildUnnamed2587() { |
1966 var o = new core.List<api.CallSet>(); | 2119 var o = new core.List<api.CallSet>(); |
1967 o.add(buildCallSet()); | 2120 o.add(buildCallSet()); |
1968 o.add(buildCallSet()); | 2121 o.add(buildCallSet()); |
1969 return o; | 2122 return o; |
1970 } | 2123 } |
1971 | 2124 |
1972 checkUnnamed2600(core.List<api.CallSet> o) { | 2125 checkUnnamed2587(core.List<api.CallSet> o) { |
1973 unittest.expect(o, unittest.hasLength(2)); | 2126 unittest.expect(o, unittest.hasLength(2)); |
1974 checkCallSet(o[0]); | 2127 checkCallSet(o[0]); |
1975 checkCallSet(o[1]); | 2128 checkCallSet(o[1]); |
1976 } | 2129 } |
1977 | 2130 |
1978 core.int buildCounterSearchCallSetsResponse = 0; | 2131 core.int buildCounterSearchCallSetsResponse = 0; |
1979 buildSearchCallSetsResponse() { | 2132 buildSearchCallSetsResponse() { |
1980 var o = new api.SearchCallSetsResponse(); | 2133 var o = new api.SearchCallSetsResponse(); |
1981 buildCounterSearchCallSetsResponse++; | 2134 buildCounterSearchCallSetsResponse++; |
1982 if (buildCounterSearchCallSetsResponse < 3) { | 2135 if (buildCounterSearchCallSetsResponse < 3) { |
1983 o.callSets = buildUnnamed2600(); | 2136 o.callSets = buildUnnamed2587(); |
1984 o.nextPageToken = "foo"; | 2137 o.nextPageToken = "foo"; |
1985 } | 2138 } |
1986 buildCounterSearchCallSetsResponse--; | 2139 buildCounterSearchCallSetsResponse--; |
1987 return o; | 2140 return o; |
1988 } | 2141 } |
1989 | 2142 |
1990 checkSearchCallSetsResponse(api.SearchCallSetsResponse o) { | 2143 checkSearchCallSetsResponse(api.SearchCallSetsResponse o) { |
1991 buildCounterSearchCallSetsResponse++; | 2144 buildCounterSearchCallSetsResponse++; |
1992 if (buildCounterSearchCallSetsResponse < 3) { | 2145 if (buildCounterSearchCallSetsResponse < 3) { |
1993 checkUnnamed2600(o.callSets); | 2146 checkUnnamed2587(o.callSets); |
1994 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2147 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1995 } | 2148 } |
1996 buildCounterSearchCallSetsResponse--; | 2149 buildCounterSearchCallSetsResponse--; |
1997 } | 2150 } |
1998 | 2151 |
1999 buildUnnamed2601() { | 2152 buildUnnamed2588() { |
2000 var o = new core.List<core.String>(); | 2153 var o = new core.List<core.String>(); |
2001 o.add("foo"); | 2154 o.add("foo"); |
2002 o.add("foo"); | 2155 o.add("foo"); |
2003 return o; | 2156 return o; |
2004 } | 2157 } |
2005 | 2158 |
2006 checkUnnamed2601(core.List<core.String> o) { | 2159 checkUnnamed2588(core.List<core.String> o) { |
2007 unittest.expect(o, unittest.hasLength(2)); | 2160 unittest.expect(o, unittest.hasLength(2)); |
2008 unittest.expect(o[0], unittest.equals('foo')); | 2161 unittest.expect(o[0], unittest.equals('foo')); |
2009 unittest.expect(o[1], unittest.equals('foo')); | 2162 unittest.expect(o[1], unittest.equals('foo')); |
2010 } | 2163 } |
2011 | 2164 |
2012 core.int buildCounterSearchReadGroupSetsRequest = 0; | 2165 core.int buildCounterSearchReadGroupSetsRequest = 0; |
2013 buildSearchReadGroupSetsRequest() { | 2166 buildSearchReadGroupSetsRequest() { |
2014 var o = new api.SearchReadGroupSetsRequest(); | 2167 var o = new api.SearchReadGroupSetsRequest(); |
2015 buildCounterSearchReadGroupSetsRequest++; | 2168 buildCounterSearchReadGroupSetsRequest++; |
2016 if (buildCounterSearchReadGroupSetsRequest < 3) { | 2169 if (buildCounterSearchReadGroupSetsRequest < 3) { |
2017 o.datasetIds = buildUnnamed2601(); | 2170 o.datasetIds = buildUnnamed2588(); |
2018 o.name = "foo"; | 2171 o.name = "foo"; |
2019 o.pageSize = 42; | 2172 o.pageSize = 42; |
2020 o.pageToken = "foo"; | 2173 o.pageToken = "foo"; |
2021 } | 2174 } |
2022 buildCounterSearchReadGroupSetsRequest--; | 2175 buildCounterSearchReadGroupSetsRequest--; |
2023 return o; | 2176 return o; |
2024 } | 2177 } |
2025 | 2178 |
2026 checkSearchReadGroupSetsRequest(api.SearchReadGroupSetsRequest o) { | 2179 checkSearchReadGroupSetsRequest(api.SearchReadGroupSetsRequest o) { |
2027 buildCounterSearchReadGroupSetsRequest++; | 2180 buildCounterSearchReadGroupSetsRequest++; |
2028 if (buildCounterSearchReadGroupSetsRequest < 3) { | 2181 if (buildCounterSearchReadGroupSetsRequest < 3) { |
2029 checkUnnamed2601(o.datasetIds); | 2182 checkUnnamed2588(o.datasetIds); |
2030 unittest.expect(o.name, unittest.equals('foo')); | 2183 unittest.expect(o.name, unittest.equals('foo')); |
2031 unittest.expect(o.pageSize, unittest.equals(42)); | 2184 unittest.expect(o.pageSize, unittest.equals(42)); |
2032 unittest.expect(o.pageToken, unittest.equals('foo')); | 2185 unittest.expect(o.pageToken, unittest.equals('foo')); |
2033 } | 2186 } |
2034 buildCounterSearchReadGroupSetsRequest--; | 2187 buildCounterSearchReadGroupSetsRequest--; |
2035 } | 2188 } |
2036 | 2189 |
2037 buildUnnamed2602() { | 2190 buildUnnamed2589() { |
2038 var o = new core.List<api.ReadGroupSet>(); | 2191 var o = new core.List<api.ReadGroupSet>(); |
2039 o.add(buildReadGroupSet()); | 2192 o.add(buildReadGroupSet()); |
2040 o.add(buildReadGroupSet()); | 2193 o.add(buildReadGroupSet()); |
2041 return o; | 2194 return o; |
2042 } | 2195 } |
2043 | 2196 |
2044 checkUnnamed2602(core.List<api.ReadGroupSet> o) { | 2197 checkUnnamed2589(core.List<api.ReadGroupSet> o) { |
2045 unittest.expect(o, unittest.hasLength(2)); | 2198 unittest.expect(o, unittest.hasLength(2)); |
2046 checkReadGroupSet(o[0]); | 2199 checkReadGroupSet(o[0]); |
2047 checkReadGroupSet(o[1]); | 2200 checkReadGroupSet(o[1]); |
2048 } | 2201 } |
2049 | 2202 |
2050 core.int buildCounterSearchReadGroupSetsResponse = 0; | 2203 core.int buildCounterSearchReadGroupSetsResponse = 0; |
2051 buildSearchReadGroupSetsResponse() { | 2204 buildSearchReadGroupSetsResponse() { |
2052 var o = new api.SearchReadGroupSetsResponse(); | 2205 var o = new api.SearchReadGroupSetsResponse(); |
2053 buildCounterSearchReadGroupSetsResponse++; | 2206 buildCounterSearchReadGroupSetsResponse++; |
2054 if (buildCounterSearchReadGroupSetsResponse < 3) { | 2207 if (buildCounterSearchReadGroupSetsResponse < 3) { |
2055 o.nextPageToken = "foo"; | 2208 o.nextPageToken = "foo"; |
2056 o.readGroupSets = buildUnnamed2602(); | 2209 o.readGroupSets = buildUnnamed2589(); |
2057 } | 2210 } |
2058 buildCounterSearchReadGroupSetsResponse--; | 2211 buildCounterSearchReadGroupSetsResponse--; |
2059 return o; | 2212 return o; |
2060 } | 2213 } |
2061 | 2214 |
2062 checkSearchReadGroupSetsResponse(api.SearchReadGroupSetsResponse o) { | 2215 checkSearchReadGroupSetsResponse(api.SearchReadGroupSetsResponse o) { |
2063 buildCounterSearchReadGroupSetsResponse++; | 2216 buildCounterSearchReadGroupSetsResponse++; |
2064 if (buildCounterSearchReadGroupSetsResponse < 3) { | 2217 if (buildCounterSearchReadGroupSetsResponse < 3) { |
2065 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2218 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2066 checkUnnamed2602(o.readGroupSets); | 2219 checkUnnamed2589(o.readGroupSets); |
2067 } | 2220 } |
2068 buildCounterSearchReadGroupSetsResponse--; | 2221 buildCounterSearchReadGroupSetsResponse--; |
2069 } | 2222 } |
2070 | 2223 |
2071 buildUnnamed2603() { | 2224 buildUnnamed2590() { |
2072 var o = new core.List<core.String>(); | 2225 var o = new core.List<core.String>(); |
2073 o.add("foo"); | 2226 o.add("foo"); |
2074 o.add("foo"); | 2227 o.add("foo"); |
2075 return o; | 2228 return o; |
2076 } | 2229 } |
2077 | 2230 |
2078 checkUnnamed2603(core.List<core.String> o) { | 2231 checkUnnamed2590(core.List<core.String> o) { |
2079 unittest.expect(o, unittest.hasLength(2)); | 2232 unittest.expect(o, unittest.hasLength(2)); |
2080 unittest.expect(o[0], unittest.equals('foo')); | 2233 unittest.expect(o[0], unittest.equals('foo')); |
2081 unittest.expect(o[1], unittest.equals('foo')); | 2234 unittest.expect(o[1], unittest.equals('foo')); |
2082 } | 2235 } |
2083 | 2236 |
2084 buildUnnamed2604() { | 2237 buildUnnamed2591() { |
2085 var o = new core.List<core.String>(); | 2238 var o = new core.List<core.String>(); |
2086 o.add("foo"); | 2239 o.add("foo"); |
2087 o.add("foo"); | 2240 o.add("foo"); |
2088 return o; | 2241 return o; |
2089 } | 2242 } |
2090 | 2243 |
2091 checkUnnamed2604(core.List<core.String> o) { | 2244 checkUnnamed2591(core.List<core.String> o) { |
2092 unittest.expect(o, unittest.hasLength(2)); | 2245 unittest.expect(o, unittest.hasLength(2)); |
2093 unittest.expect(o[0], unittest.equals('foo')); | 2246 unittest.expect(o[0], unittest.equals('foo')); |
2094 unittest.expect(o[1], unittest.equals('foo')); | 2247 unittest.expect(o[1], unittest.equals('foo')); |
2095 } | 2248 } |
2096 | 2249 |
2097 core.int buildCounterSearchReadsRequest = 0; | 2250 core.int buildCounterSearchReadsRequest = 0; |
2098 buildSearchReadsRequest() { | 2251 buildSearchReadsRequest() { |
2099 var o = new api.SearchReadsRequest(); | 2252 var o = new api.SearchReadsRequest(); |
2100 buildCounterSearchReadsRequest++; | 2253 buildCounterSearchReadsRequest++; |
2101 if (buildCounterSearchReadsRequest < 3) { | 2254 if (buildCounterSearchReadsRequest < 3) { |
2102 o.end = "foo"; | 2255 o.end = "foo"; |
2103 o.pageSize = 42; | 2256 o.pageSize = 42; |
2104 o.pageToken = "foo"; | 2257 o.pageToken = "foo"; |
2105 o.readGroupIds = buildUnnamed2603(); | 2258 o.readGroupIds = buildUnnamed2590(); |
2106 o.readGroupSetIds = buildUnnamed2604(); | 2259 o.readGroupSetIds = buildUnnamed2591(); |
2107 o.referenceName = "foo"; | 2260 o.referenceName = "foo"; |
2108 o.start = "foo"; | 2261 o.start = "foo"; |
2109 } | 2262 } |
2110 buildCounterSearchReadsRequest--; | 2263 buildCounterSearchReadsRequest--; |
2111 return o; | 2264 return o; |
2112 } | 2265 } |
2113 | 2266 |
2114 checkSearchReadsRequest(api.SearchReadsRequest o) { | 2267 checkSearchReadsRequest(api.SearchReadsRequest o) { |
2115 buildCounterSearchReadsRequest++; | 2268 buildCounterSearchReadsRequest++; |
2116 if (buildCounterSearchReadsRequest < 3) { | 2269 if (buildCounterSearchReadsRequest < 3) { |
2117 unittest.expect(o.end, unittest.equals('foo')); | 2270 unittest.expect(o.end, unittest.equals('foo')); |
2118 unittest.expect(o.pageSize, unittest.equals(42)); | 2271 unittest.expect(o.pageSize, unittest.equals(42)); |
2119 unittest.expect(o.pageToken, unittest.equals('foo')); | 2272 unittest.expect(o.pageToken, unittest.equals('foo')); |
2120 checkUnnamed2603(o.readGroupIds); | 2273 checkUnnamed2590(o.readGroupIds); |
2121 checkUnnamed2604(o.readGroupSetIds); | 2274 checkUnnamed2591(o.readGroupSetIds); |
2122 unittest.expect(o.referenceName, unittest.equals('foo')); | 2275 unittest.expect(o.referenceName, unittest.equals('foo')); |
2123 unittest.expect(o.start, unittest.equals('foo')); | 2276 unittest.expect(o.start, unittest.equals('foo')); |
2124 } | 2277 } |
2125 buildCounterSearchReadsRequest--; | 2278 buildCounterSearchReadsRequest--; |
2126 } | 2279 } |
2127 | 2280 |
2128 buildUnnamed2605() { | 2281 buildUnnamed2592() { |
2129 var o = new core.List<api.Read>(); | 2282 var o = new core.List<api.Read>(); |
2130 o.add(buildRead()); | 2283 o.add(buildRead()); |
2131 o.add(buildRead()); | 2284 o.add(buildRead()); |
2132 return o; | 2285 return o; |
2133 } | 2286 } |
2134 | 2287 |
2135 checkUnnamed2605(core.List<api.Read> o) { | 2288 checkUnnamed2592(core.List<api.Read> o) { |
2136 unittest.expect(o, unittest.hasLength(2)); | 2289 unittest.expect(o, unittest.hasLength(2)); |
2137 checkRead(o[0]); | 2290 checkRead(o[0]); |
2138 checkRead(o[1]); | 2291 checkRead(o[1]); |
2139 } | 2292 } |
2140 | 2293 |
2141 core.int buildCounterSearchReadsResponse = 0; | 2294 core.int buildCounterSearchReadsResponse = 0; |
2142 buildSearchReadsResponse() { | 2295 buildSearchReadsResponse() { |
2143 var o = new api.SearchReadsResponse(); | 2296 var o = new api.SearchReadsResponse(); |
2144 buildCounterSearchReadsResponse++; | 2297 buildCounterSearchReadsResponse++; |
2145 if (buildCounterSearchReadsResponse < 3) { | 2298 if (buildCounterSearchReadsResponse < 3) { |
2146 o.alignments = buildUnnamed2605(); | 2299 o.alignments = buildUnnamed2592(); |
2147 o.nextPageToken = "foo"; | 2300 o.nextPageToken = "foo"; |
2148 } | 2301 } |
2149 buildCounterSearchReadsResponse--; | 2302 buildCounterSearchReadsResponse--; |
2150 return o; | 2303 return o; |
2151 } | 2304 } |
2152 | 2305 |
2153 checkSearchReadsResponse(api.SearchReadsResponse o) { | 2306 checkSearchReadsResponse(api.SearchReadsResponse o) { |
2154 buildCounterSearchReadsResponse++; | 2307 buildCounterSearchReadsResponse++; |
2155 if (buildCounterSearchReadsResponse < 3) { | 2308 if (buildCounterSearchReadsResponse < 3) { |
2156 checkUnnamed2605(o.alignments); | 2309 checkUnnamed2592(o.alignments); |
2157 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2310 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2158 } | 2311 } |
2159 buildCounterSearchReadsResponse--; | 2312 buildCounterSearchReadsResponse--; |
2160 } | 2313 } |
2161 | 2314 |
2162 buildUnnamed2606() { | 2315 buildUnnamed2593() { |
2163 var o = new core.List<core.String>(); | 2316 var o = new core.List<core.String>(); |
2164 o.add("foo"); | 2317 o.add("foo"); |
2165 o.add("foo"); | 2318 o.add("foo"); |
2166 return o; | 2319 return o; |
2167 } | 2320 } |
2168 | 2321 |
2169 checkUnnamed2606(core.List<core.String> o) { | 2322 checkUnnamed2593(core.List<core.String> o) { |
2170 unittest.expect(o, unittest.hasLength(2)); | 2323 unittest.expect(o, unittest.hasLength(2)); |
2171 unittest.expect(o[0], unittest.equals('foo')); | 2324 unittest.expect(o[0], unittest.equals('foo')); |
2172 unittest.expect(o[1], unittest.equals('foo')); | 2325 unittest.expect(o[1], unittest.equals('foo')); |
2173 } | 2326 } |
2174 | 2327 |
2175 buildUnnamed2607() { | 2328 buildUnnamed2594() { |
2176 var o = new core.List<core.String>(); | 2329 var o = new core.List<core.String>(); |
2177 o.add("foo"); | 2330 o.add("foo"); |
2178 o.add("foo"); | 2331 o.add("foo"); |
2179 return o; | 2332 return o; |
2180 } | 2333 } |
2181 | 2334 |
2182 checkUnnamed2607(core.List<core.String> o) { | 2335 checkUnnamed2594(core.List<core.String> o) { |
2183 unittest.expect(o, unittest.hasLength(2)); | 2336 unittest.expect(o, unittest.hasLength(2)); |
2184 unittest.expect(o[0], unittest.equals('foo')); | 2337 unittest.expect(o[0], unittest.equals('foo')); |
2185 unittest.expect(o[1], unittest.equals('foo')); | 2338 unittest.expect(o[1], unittest.equals('foo')); |
2186 } | 2339 } |
2187 | 2340 |
2188 core.int buildCounterSearchReferenceSetsRequest = 0; | 2341 core.int buildCounterSearchReferenceSetsRequest = 0; |
2189 buildSearchReferenceSetsRequest() { | 2342 buildSearchReferenceSetsRequest() { |
2190 var o = new api.SearchReferenceSetsRequest(); | 2343 var o = new api.SearchReferenceSetsRequest(); |
2191 buildCounterSearchReferenceSetsRequest++; | 2344 buildCounterSearchReferenceSetsRequest++; |
2192 if (buildCounterSearchReferenceSetsRequest < 3) { | 2345 if (buildCounterSearchReferenceSetsRequest < 3) { |
2193 o.accessions = buildUnnamed2606(); | 2346 o.accessions = buildUnnamed2593(); |
2194 o.assemblyId = "foo"; | 2347 o.assemblyId = "foo"; |
2195 o.md5checksums = buildUnnamed2607(); | 2348 o.md5checksums = buildUnnamed2594(); |
2196 o.pageSize = 42; | 2349 o.pageSize = 42; |
2197 o.pageToken = "foo"; | 2350 o.pageToken = "foo"; |
2198 } | 2351 } |
2199 buildCounterSearchReferenceSetsRequest--; | 2352 buildCounterSearchReferenceSetsRequest--; |
2200 return o; | 2353 return o; |
2201 } | 2354 } |
2202 | 2355 |
2203 checkSearchReferenceSetsRequest(api.SearchReferenceSetsRequest o) { | 2356 checkSearchReferenceSetsRequest(api.SearchReferenceSetsRequest o) { |
2204 buildCounterSearchReferenceSetsRequest++; | 2357 buildCounterSearchReferenceSetsRequest++; |
2205 if (buildCounterSearchReferenceSetsRequest < 3) { | 2358 if (buildCounterSearchReferenceSetsRequest < 3) { |
2206 checkUnnamed2606(o.accessions); | 2359 checkUnnamed2593(o.accessions); |
2207 unittest.expect(o.assemblyId, unittest.equals('foo')); | 2360 unittest.expect(o.assemblyId, unittest.equals('foo')); |
2208 checkUnnamed2607(o.md5checksums); | 2361 checkUnnamed2594(o.md5checksums); |
2209 unittest.expect(o.pageSize, unittest.equals(42)); | 2362 unittest.expect(o.pageSize, unittest.equals(42)); |
2210 unittest.expect(o.pageToken, unittest.equals('foo')); | 2363 unittest.expect(o.pageToken, unittest.equals('foo')); |
2211 } | 2364 } |
2212 buildCounterSearchReferenceSetsRequest--; | 2365 buildCounterSearchReferenceSetsRequest--; |
2213 } | 2366 } |
2214 | 2367 |
2215 buildUnnamed2608() { | 2368 buildUnnamed2595() { |
2216 var o = new core.List<api.ReferenceSet>(); | 2369 var o = new core.List<api.ReferenceSet>(); |
2217 o.add(buildReferenceSet()); | 2370 o.add(buildReferenceSet()); |
2218 o.add(buildReferenceSet()); | 2371 o.add(buildReferenceSet()); |
2219 return o; | 2372 return o; |
2220 } | 2373 } |
2221 | 2374 |
2222 checkUnnamed2608(core.List<api.ReferenceSet> o) { | 2375 checkUnnamed2595(core.List<api.ReferenceSet> o) { |
2223 unittest.expect(o, unittest.hasLength(2)); | 2376 unittest.expect(o, unittest.hasLength(2)); |
2224 checkReferenceSet(o[0]); | 2377 checkReferenceSet(o[0]); |
2225 checkReferenceSet(o[1]); | 2378 checkReferenceSet(o[1]); |
2226 } | 2379 } |
2227 | 2380 |
2228 core.int buildCounterSearchReferenceSetsResponse = 0; | 2381 core.int buildCounterSearchReferenceSetsResponse = 0; |
2229 buildSearchReferenceSetsResponse() { | 2382 buildSearchReferenceSetsResponse() { |
2230 var o = new api.SearchReferenceSetsResponse(); | 2383 var o = new api.SearchReferenceSetsResponse(); |
2231 buildCounterSearchReferenceSetsResponse++; | 2384 buildCounterSearchReferenceSetsResponse++; |
2232 if (buildCounterSearchReferenceSetsResponse < 3) { | 2385 if (buildCounterSearchReferenceSetsResponse < 3) { |
2233 o.nextPageToken = "foo"; | 2386 o.nextPageToken = "foo"; |
2234 o.referenceSets = buildUnnamed2608(); | 2387 o.referenceSets = buildUnnamed2595(); |
2235 } | 2388 } |
2236 buildCounterSearchReferenceSetsResponse--; | 2389 buildCounterSearchReferenceSetsResponse--; |
2237 return o; | 2390 return o; |
2238 } | 2391 } |
2239 | 2392 |
2240 checkSearchReferenceSetsResponse(api.SearchReferenceSetsResponse o) { | 2393 checkSearchReferenceSetsResponse(api.SearchReferenceSetsResponse o) { |
2241 buildCounterSearchReferenceSetsResponse++; | 2394 buildCounterSearchReferenceSetsResponse++; |
2242 if (buildCounterSearchReferenceSetsResponse < 3) { | 2395 if (buildCounterSearchReferenceSetsResponse < 3) { |
2243 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2396 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2244 checkUnnamed2608(o.referenceSets); | 2397 checkUnnamed2595(o.referenceSets); |
2245 } | 2398 } |
2246 buildCounterSearchReferenceSetsResponse--; | 2399 buildCounterSearchReferenceSetsResponse--; |
2247 } | 2400 } |
2248 | 2401 |
2249 buildUnnamed2609() { | 2402 buildUnnamed2596() { |
2250 var o = new core.List<core.String>(); | 2403 var o = new core.List<core.String>(); |
2251 o.add("foo"); | 2404 o.add("foo"); |
2252 o.add("foo"); | 2405 o.add("foo"); |
2253 return o; | 2406 return o; |
2254 } | 2407 } |
2255 | 2408 |
2256 checkUnnamed2609(core.List<core.String> o) { | 2409 checkUnnamed2596(core.List<core.String> o) { |
2257 unittest.expect(o, unittest.hasLength(2)); | 2410 unittest.expect(o, unittest.hasLength(2)); |
2258 unittest.expect(o[0], unittest.equals('foo')); | 2411 unittest.expect(o[0], unittest.equals('foo')); |
2259 unittest.expect(o[1], unittest.equals('foo')); | 2412 unittest.expect(o[1], unittest.equals('foo')); |
2260 } | 2413 } |
2261 | 2414 |
2262 buildUnnamed2610() { | 2415 buildUnnamed2597() { |
2263 var o = new core.List<core.String>(); | 2416 var o = new core.List<core.String>(); |
2264 o.add("foo"); | 2417 o.add("foo"); |
2265 o.add("foo"); | 2418 o.add("foo"); |
2266 return o; | 2419 return o; |
2267 } | 2420 } |
2268 | 2421 |
2269 checkUnnamed2610(core.List<core.String> o) { | 2422 checkUnnamed2597(core.List<core.String> o) { |
2270 unittest.expect(o, unittest.hasLength(2)); | 2423 unittest.expect(o, unittest.hasLength(2)); |
2271 unittest.expect(o[0], unittest.equals('foo')); | 2424 unittest.expect(o[0], unittest.equals('foo')); |
2272 unittest.expect(o[1], unittest.equals('foo')); | 2425 unittest.expect(o[1], unittest.equals('foo')); |
2273 } | 2426 } |
2274 | 2427 |
2275 core.int buildCounterSearchReferencesRequest = 0; | 2428 core.int buildCounterSearchReferencesRequest = 0; |
2276 buildSearchReferencesRequest() { | 2429 buildSearchReferencesRequest() { |
2277 var o = new api.SearchReferencesRequest(); | 2430 var o = new api.SearchReferencesRequest(); |
2278 buildCounterSearchReferencesRequest++; | 2431 buildCounterSearchReferencesRequest++; |
2279 if (buildCounterSearchReferencesRequest < 3) { | 2432 if (buildCounterSearchReferencesRequest < 3) { |
2280 o.accessions = buildUnnamed2609(); | 2433 o.accessions = buildUnnamed2596(); |
2281 o.md5checksums = buildUnnamed2610(); | 2434 o.md5checksums = buildUnnamed2597(); |
2282 o.pageSize = 42; | 2435 o.pageSize = 42; |
2283 o.pageToken = "foo"; | 2436 o.pageToken = "foo"; |
2284 o.referenceSetId = "foo"; | 2437 o.referenceSetId = "foo"; |
2285 } | 2438 } |
2286 buildCounterSearchReferencesRequest--; | 2439 buildCounterSearchReferencesRequest--; |
2287 return o; | 2440 return o; |
2288 } | 2441 } |
2289 | 2442 |
2290 checkSearchReferencesRequest(api.SearchReferencesRequest o) { | 2443 checkSearchReferencesRequest(api.SearchReferencesRequest o) { |
2291 buildCounterSearchReferencesRequest++; | 2444 buildCounterSearchReferencesRequest++; |
2292 if (buildCounterSearchReferencesRequest < 3) { | 2445 if (buildCounterSearchReferencesRequest < 3) { |
2293 checkUnnamed2609(o.accessions); | 2446 checkUnnamed2596(o.accessions); |
2294 checkUnnamed2610(o.md5checksums); | 2447 checkUnnamed2597(o.md5checksums); |
2295 unittest.expect(o.pageSize, unittest.equals(42)); | 2448 unittest.expect(o.pageSize, unittest.equals(42)); |
2296 unittest.expect(o.pageToken, unittest.equals('foo')); | 2449 unittest.expect(o.pageToken, unittest.equals('foo')); |
2297 unittest.expect(o.referenceSetId, unittest.equals('foo')); | 2450 unittest.expect(o.referenceSetId, unittest.equals('foo')); |
2298 } | 2451 } |
2299 buildCounterSearchReferencesRequest--; | 2452 buildCounterSearchReferencesRequest--; |
2300 } | 2453 } |
2301 | 2454 |
2302 buildUnnamed2611() { | 2455 buildUnnamed2598() { |
2303 var o = new core.List<api.Reference>(); | 2456 var o = new core.List<api.Reference>(); |
2304 o.add(buildReference()); | 2457 o.add(buildReference()); |
2305 o.add(buildReference()); | 2458 o.add(buildReference()); |
2306 return o; | 2459 return o; |
2307 } | 2460 } |
2308 | 2461 |
2309 checkUnnamed2611(core.List<api.Reference> o) { | 2462 checkUnnamed2598(core.List<api.Reference> o) { |
2310 unittest.expect(o, unittest.hasLength(2)); | 2463 unittest.expect(o, unittest.hasLength(2)); |
2311 checkReference(o[0]); | 2464 checkReference(o[0]); |
2312 checkReference(o[1]); | 2465 checkReference(o[1]); |
2313 } | 2466 } |
2314 | 2467 |
2315 core.int buildCounterSearchReferencesResponse = 0; | 2468 core.int buildCounterSearchReferencesResponse = 0; |
2316 buildSearchReferencesResponse() { | 2469 buildSearchReferencesResponse() { |
2317 var o = new api.SearchReferencesResponse(); | 2470 var o = new api.SearchReferencesResponse(); |
2318 buildCounterSearchReferencesResponse++; | 2471 buildCounterSearchReferencesResponse++; |
2319 if (buildCounterSearchReferencesResponse < 3) { | 2472 if (buildCounterSearchReferencesResponse < 3) { |
2320 o.nextPageToken = "foo"; | 2473 o.nextPageToken = "foo"; |
2321 o.references = buildUnnamed2611(); | 2474 o.references = buildUnnamed2598(); |
2322 } | 2475 } |
2323 buildCounterSearchReferencesResponse--; | 2476 buildCounterSearchReferencesResponse--; |
2324 return o; | 2477 return o; |
2325 } | 2478 } |
2326 | 2479 |
2327 checkSearchReferencesResponse(api.SearchReferencesResponse o) { | 2480 checkSearchReferencesResponse(api.SearchReferencesResponse o) { |
2328 buildCounterSearchReferencesResponse++; | 2481 buildCounterSearchReferencesResponse++; |
2329 if (buildCounterSearchReferencesResponse < 3) { | 2482 if (buildCounterSearchReferencesResponse < 3) { |
2330 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2483 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2331 checkUnnamed2611(o.references); | 2484 checkUnnamed2598(o.references); |
2332 } | 2485 } |
2333 buildCounterSearchReferencesResponse--; | 2486 buildCounterSearchReferencesResponse--; |
2334 } | 2487 } |
2335 | 2488 |
2336 buildUnnamed2612() { | 2489 buildUnnamed2599() { |
2337 var o = new core.List<core.String>(); | 2490 var o = new core.List<core.String>(); |
2338 o.add("foo"); | 2491 o.add("foo"); |
2339 o.add("foo"); | 2492 o.add("foo"); |
2340 return o; | 2493 return o; |
2341 } | 2494 } |
2342 | 2495 |
2343 checkUnnamed2612(core.List<core.String> o) { | 2496 checkUnnamed2599(core.List<core.String> o) { |
2344 unittest.expect(o, unittest.hasLength(2)); | 2497 unittest.expect(o, unittest.hasLength(2)); |
2345 unittest.expect(o[0], unittest.equals('foo')); | 2498 unittest.expect(o[0], unittest.equals('foo')); |
2346 unittest.expect(o[1], unittest.equals('foo')); | 2499 unittest.expect(o[1], unittest.equals('foo')); |
2347 } | 2500 } |
2348 | 2501 |
2349 core.int buildCounterSearchVariantSetsRequest = 0; | 2502 core.int buildCounterSearchVariantSetsRequest = 0; |
2350 buildSearchVariantSetsRequest() { | 2503 buildSearchVariantSetsRequest() { |
2351 var o = new api.SearchVariantSetsRequest(); | 2504 var o = new api.SearchVariantSetsRequest(); |
2352 buildCounterSearchVariantSetsRequest++; | 2505 buildCounterSearchVariantSetsRequest++; |
2353 if (buildCounterSearchVariantSetsRequest < 3) { | 2506 if (buildCounterSearchVariantSetsRequest < 3) { |
2354 o.datasetIds = buildUnnamed2612(); | 2507 o.datasetIds = buildUnnamed2599(); |
2355 o.pageSize = 42; | 2508 o.pageSize = 42; |
2356 o.pageToken = "foo"; | 2509 o.pageToken = "foo"; |
2357 } | 2510 } |
2358 buildCounterSearchVariantSetsRequest--; | 2511 buildCounterSearchVariantSetsRequest--; |
2359 return o; | 2512 return o; |
2360 } | 2513 } |
2361 | 2514 |
2362 checkSearchVariantSetsRequest(api.SearchVariantSetsRequest o) { | 2515 checkSearchVariantSetsRequest(api.SearchVariantSetsRequest o) { |
2363 buildCounterSearchVariantSetsRequest++; | 2516 buildCounterSearchVariantSetsRequest++; |
2364 if (buildCounterSearchVariantSetsRequest < 3) { | 2517 if (buildCounterSearchVariantSetsRequest < 3) { |
2365 checkUnnamed2612(o.datasetIds); | 2518 checkUnnamed2599(o.datasetIds); |
2366 unittest.expect(o.pageSize, unittest.equals(42)); | 2519 unittest.expect(o.pageSize, unittest.equals(42)); |
2367 unittest.expect(o.pageToken, unittest.equals('foo')); | 2520 unittest.expect(o.pageToken, unittest.equals('foo')); |
2368 } | 2521 } |
2369 buildCounterSearchVariantSetsRequest--; | 2522 buildCounterSearchVariantSetsRequest--; |
2370 } | 2523 } |
2371 | 2524 |
2372 buildUnnamed2613() { | 2525 buildUnnamed2600() { |
2373 var o = new core.List<api.VariantSet>(); | 2526 var o = new core.List<api.VariantSet>(); |
2374 o.add(buildVariantSet()); | 2527 o.add(buildVariantSet()); |
2375 o.add(buildVariantSet()); | 2528 o.add(buildVariantSet()); |
2376 return o; | 2529 return o; |
2377 } | 2530 } |
2378 | 2531 |
2379 checkUnnamed2613(core.List<api.VariantSet> o) { | 2532 checkUnnamed2600(core.List<api.VariantSet> o) { |
2380 unittest.expect(o, unittest.hasLength(2)); | 2533 unittest.expect(o, unittest.hasLength(2)); |
2381 checkVariantSet(o[0]); | 2534 checkVariantSet(o[0]); |
2382 checkVariantSet(o[1]); | 2535 checkVariantSet(o[1]); |
2383 } | 2536 } |
2384 | 2537 |
2385 core.int buildCounterSearchVariantSetsResponse = 0; | 2538 core.int buildCounterSearchVariantSetsResponse = 0; |
2386 buildSearchVariantSetsResponse() { | 2539 buildSearchVariantSetsResponse() { |
2387 var o = new api.SearchVariantSetsResponse(); | 2540 var o = new api.SearchVariantSetsResponse(); |
2388 buildCounterSearchVariantSetsResponse++; | 2541 buildCounterSearchVariantSetsResponse++; |
2389 if (buildCounterSearchVariantSetsResponse < 3) { | 2542 if (buildCounterSearchVariantSetsResponse < 3) { |
2390 o.nextPageToken = "foo"; | 2543 o.nextPageToken = "foo"; |
2391 o.variantSets = buildUnnamed2613(); | 2544 o.variantSets = buildUnnamed2600(); |
2392 } | 2545 } |
2393 buildCounterSearchVariantSetsResponse--; | 2546 buildCounterSearchVariantSetsResponse--; |
2394 return o; | 2547 return o; |
2395 } | 2548 } |
2396 | 2549 |
2397 checkSearchVariantSetsResponse(api.SearchVariantSetsResponse o) { | 2550 checkSearchVariantSetsResponse(api.SearchVariantSetsResponse o) { |
2398 buildCounterSearchVariantSetsResponse++; | 2551 buildCounterSearchVariantSetsResponse++; |
2399 if (buildCounterSearchVariantSetsResponse < 3) { | 2552 if (buildCounterSearchVariantSetsResponse < 3) { |
2400 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2553 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2401 checkUnnamed2613(o.variantSets); | 2554 checkUnnamed2600(o.variantSets); |
2402 } | 2555 } |
2403 buildCounterSearchVariantSetsResponse--; | 2556 buildCounterSearchVariantSetsResponse--; |
2404 } | 2557 } |
2405 | 2558 |
2406 buildUnnamed2614() { | 2559 buildUnnamed2601() { |
2407 var o = new core.List<core.String>(); | 2560 var o = new core.List<core.String>(); |
2408 o.add("foo"); | 2561 o.add("foo"); |
2409 o.add("foo"); | 2562 o.add("foo"); |
2410 return o; | 2563 return o; |
2411 } | 2564 } |
2412 | 2565 |
2413 checkUnnamed2614(core.List<core.String> o) { | 2566 checkUnnamed2601(core.List<core.String> o) { |
2414 unittest.expect(o, unittest.hasLength(2)); | 2567 unittest.expect(o, unittest.hasLength(2)); |
2415 unittest.expect(o[0], unittest.equals('foo')); | 2568 unittest.expect(o[0], unittest.equals('foo')); |
2416 unittest.expect(o[1], unittest.equals('foo')); | 2569 unittest.expect(o[1], unittest.equals('foo')); |
2417 } | 2570 } |
2418 | 2571 |
2419 buildUnnamed2615() { | 2572 buildUnnamed2602() { |
2420 var o = new core.List<core.String>(); | 2573 var o = new core.List<core.String>(); |
2421 o.add("foo"); | 2574 o.add("foo"); |
2422 o.add("foo"); | 2575 o.add("foo"); |
2423 return o; | 2576 return o; |
2424 } | 2577 } |
2425 | 2578 |
2426 checkUnnamed2615(core.List<core.String> o) { | 2579 checkUnnamed2602(core.List<core.String> o) { |
2427 unittest.expect(o, unittest.hasLength(2)); | 2580 unittest.expect(o, unittest.hasLength(2)); |
2428 unittest.expect(o[0], unittest.equals('foo')); | 2581 unittest.expect(o[0], unittest.equals('foo')); |
2429 unittest.expect(o[1], unittest.equals('foo')); | 2582 unittest.expect(o[1], unittest.equals('foo')); |
2430 } | 2583 } |
2431 | 2584 |
2432 core.int buildCounterSearchVariantsRequest = 0; | 2585 core.int buildCounterSearchVariantsRequest = 0; |
2433 buildSearchVariantsRequest() { | 2586 buildSearchVariantsRequest() { |
2434 var o = new api.SearchVariantsRequest(); | 2587 var o = new api.SearchVariantsRequest(); |
2435 buildCounterSearchVariantsRequest++; | 2588 buildCounterSearchVariantsRequest++; |
2436 if (buildCounterSearchVariantsRequest < 3) { | 2589 if (buildCounterSearchVariantsRequest < 3) { |
2437 o.callSetIds = buildUnnamed2614(); | 2590 o.callSetIds = buildUnnamed2601(); |
2438 o.end = "foo"; | 2591 o.end = "foo"; |
2439 o.maxCalls = 42; | 2592 o.maxCalls = 42; |
2440 o.pageSize = 42; | 2593 o.pageSize = 42; |
2441 o.pageToken = "foo"; | 2594 o.pageToken = "foo"; |
2442 o.referenceName = "foo"; | 2595 o.referenceName = "foo"; |
2443 o.start = "foo"; | 2596 o.start = "foo"; |
2444 o.variantName = "foo"; | 2597 o.variantName = "foo"; |
2445 o.variantSetIds = buildUnnamed2615(); | 2598 o.variantSetIds = buildUnnamed2602(); |
2446 } | 2599 } |
2447 buildCounterSearchVariantsRequest--; | 2600 buildCounterSearchVariantsRequest--; |
2448 return o; | 2601 return o; |
2449 } | 2602 } |
2450 | 2603 |
2451 checkSearchVariantsRequest(api.SearchVariantsRequest o) { | 2604 checkSearchVariantsRequest(api.SearchVariantsRequest o) { |
2452 buildCounterSearchVariantsRequest++; | 2605 buildCounterSearchVariantsRequest++; |
2453 if (buildCounterSearchVariantsRequest < 3) { | 2606 if (buildCounterSearchVariantsRequest < 3) { |
2454 checkUnnamed2614(o.callSetIds); | 2607 checkUnnamed2601(o.callSetIds); |
2455 unittest.expect(o.end, unittest.equals('foo')); | 2608 unittest.expect(o.end, unittest.equals('foo')); |
2456 unittest.expect(o.maxCalls, unittest.equals(42)); | 2609 unittest.expect(o.maxCalls, unittest.equals(42)); |
2457 unittest.expect(o.pageSize, unittest.equals(42)); | 2610 unittest.expect(o.pageSize, unittest.equals(42)); |
2458 unittest.expect(o.pageToken, unittest.equals('foo')); | 2611 unittest.expect(o.pageToken, unittest.equals('foo')); |
2459 unittest.expect(o.referenceName, unittest.equals('foo')); | 2612 unittest.expect(o.referenceName, unittest.equals('foo')); |
2460 unittest.expect(o.start, unittest.equals('foo')); | 2613 unittest.expect(o.start, unittest.equals('foo')); |
2461 unittest.expect(o.variantName, unittest.equals('foo')); | 2614 unittest.expect(o.variantName, unittest.equals('foo')); |
2462 checkUnnamed2615(o.variantSetIds); | 2615 checkUnnamed2602(o.variantSetIds); |
2463 } | 2616 } |
2464 buildCounterSearchVariantsRequest--; | 2617 buildCounterSearchVariantsRequest--; |
2465 } | 2618 } |
2466 | 2619 |
2467 buildUnnamed2616() { | 2620 buildUnnamed2603() { |
2468 var o = new core.List<api.Variant>(); | 2621 var o = new core.List<api.Variant>(); |
2469 o.add(buildVariant()); | 2622 o.add(buildVariant()); |
2470 o.add(buildVariant()); | 2623 o.add(buildVariant()); |
2471 return o; | 2624 return o; |
2472 } | 2625 } |
2473 | 2626 |
2474 checkUnnamed2616(core.List<api.Variant> o) { | 2627 checkUnnamed2603(core.List<api.Variant> o) { |
2475 unittest.expect(o, unittest.hasLength(2)); | 2628 unittest.expect(o, unittest.hasLength(2)); |
2476 checkVariant(o[0]); | 2629 checkVariant(o[0]); |
2477 checkVariant(o[1]); | 2630 checkVariant(o[1]); |
2478 } | 2631 } |
2479 | 2632 |
2480 core.int buildCounterSearchVariantsResponse = 0; | 2633 core.int buildCounterSearchVariantsResponse = 0; |
2481 buildSearchVariantsResponse() { | 2634 buildSearchVariantsResponse() { |
2482 var o = new api.SearchVariantsResponse(); | 2635 var o = new api.SearchVariantsResponse(); |
2483 buildCounterSearchVariantsResponse++; | 2636 buildCounterSearchVariantsResponse++; |
2484 if (buildCounterSearchVariantsResponse < 3) { | 2637 if (buildCounterSearchVariantsResponse < 3) { |
2485 o.nextPageToken = "foo"; | 2638 o.nextPageToken = "foo"; |
2486 o.variants = buildUnnamed2616(); | 2639 o.variants = buildUnnamed2603(); |
2487 } | 2640 } |
2488 buildCounterSearchVariantsResponse--; | 2641 buildCounterSearchVariantsResponse--; |
2489 return o; | 2642 return o; |
2490 } | 2643 } |
2491 | 2644 |
2492 checkSearchVariantsResponse(api.SearchVariantsResponse o) { | 2645 checkSearchVariantsResponse(api.SearchVariantsResponse o) { |
2493 buildCounterSearchVariantsResponse++; | 2646 buildCounterSearchVariantsResponse++; |
2494 if (buildCounterSearchVariantsResponse < 3) { | 2647 if (buildCounterSearchVariantsResponse < 3) { |
2495 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2648 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
2496 checkUnnamed2616(o.variants); | 2649 checkUnnamed2603(o.variants); |
2497 } | 2650 } |
2498 buildCounterSearchVariantsResponse--; | 2651 buildCounterSearchVariantsResponse--; |
2499 } | 2652 } |
2500 | 2653 |
2501 core.int buildCounterSetIamPolicyRequest = 0; | 2654 core.int buildCounterSetIamPolicyRequest = 0; |
2502 buildSetIamPolicyRequest() { | 2655 buildSetIamPolicyRequest() { |
2503 var o = new api.SetIamPolicyRequest(); | 2656 var o = new api.SetIamPolicyRequest(); |
2504 buildCounterSetIamPolicyRequest++; | 2657 buildCounterSetIamPolicyRequest++; |
2505 if (buildCounterSetIamPolicyRequest < 3) { | 2658 if (buildCounterSetIamPolicyRequest < 3) { |
2506 o.policy = buildPolicy(); | 2659 o.policy = buildPolicy(); |
2507 } | 2660 } |
2508 buildCounterSetIamPolicyRequest--; | 2661 buildCounterSetIamPolicyRequest--; |
2509 return o; | 2662 return o; |
2510 } | 2663 } |
2511 | 2664 |
2512 checkSetIamPolicyRequest(api.SetIamPolicyRequest o) { | 2665 checkSetIamPolicyRequest(api.SetIamPolicyRequest o) { |
2513 buildCounterSetIamPolicyRequest++; | 2666 buildCounterSetIamPolicyRequest++; |
2514 if (buildCounterSetIamPolicyRequest < 3) { | 2667 if (buildCounterSetIamPolicyRequest < 3) { |
2515 checkPolicy(o.policy); | 2668 checkPolicy(o.policy); |
2516 } | 2669 } |
2517 buildCounterSetIamPolicyRequest--; | 2670 buildCounterSetIamPolicyRequest--; |
2518 } | 2671 } |
2519 | 2672 |
2520 buildUnnamed2617() { | 2673 buildUnnamed2604() { |
2521 var o = new core.Map<core.String, core.Object>(); | 2674 var o = new core.Map<core.String, core.Object>(); |
2522 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2675 o["x"] = { |
2523 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2676 'list': [1, 2, 3], |
| 2677 'bool': true, |
| 2678 'string': 'foo' |
| 2679 }; |
| 2680 o["y"] = { |
| 2681 'list': [1, 2, 3], |
| 2682 'bool': true, |
| 2683 'string': 'foo' |
| 2684 }; |
2524 return o; | 2685 return o; |
2525 } | 2686 } |
2526 | 2687 |
2527 checkUnnamed2617(core.Map<core.String, core.Object> o) { | 2688 checkUnnamed2604(core.Map<core.String, core.Object> o) { |
2528 unittest.expect(o, unittest.hasLength(2)); | 2689 unittest.expect(o, unittest.hasLength(2)); |
2529 var casted21 = (o["x"]) as core.Map; unittest.expect(casted21, unittest.hasLen
gth(3)); unittest.expect(casted21["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted21["bool"], unittest.equals(true)); unittest.expect(casted21["stri
ng"], unittest.equals('foo')); | 2690 var casted21 = (o["x"]) as core.Map; |
2530 var casted22 = (o["y"]) as core.Map; unittest.expect(casted22, unittest.hasLen
gth(3)); unittest.expect(casted22["list"], unittest.equals([1, 2, 3])); unittest
.expect(casted22["bool"], unittest.equals(true)); unittest.expect(casted22["stri
ng"], unittest.equals('foo')); | 2691 unittest.expect(casted21, unittest.hasLength(3)); |
| 2692 unittest.expect(casted21["list"], unittest.equals([1, 2, 3])); |
| 2693 unittest.expect(casted21["bool"], unittest.equals(true)); |
| 2694 unittest.expect(casted21["string"], unittest.equals('foo')); |
| 2695 var casted22 = (o["y"]) as core.Map; |
| 2696 unittest.expect(casted22, unittest.hasLength(3)); |
| 2697 unittest.expect(casted22["list"], unittest.equals([1, 2, 3])); |
| 2698 unittest.expect(casted22["bool"], unittest.equals(true)); |
| 2699 unittest.expect(casted22["string"], unittest.equals('foo')); |
2531 } | 2700 } |
2532 | 2701 |
2533 buildUnnamed2618() { | 2702 buildUnnamed2605() { |
2534 var o = new core.List<core.Map<core.String, core.Object>>(); | 2703 var o = new core.List<core.Map<core.String, core.Object>>(); |
2535 o.add(buildUnnamed2617()); | 2704 o.add(buildUnnamed2604()); |
2536 o.add(buildUnnamed2617()); | 2705 o.add(buildUnnamed2604()); |
2537 return o; | 2706 return o; |
2538 } | 2707 } |
2539 | 2708 |
2540 checkUnnamed2618(core.List<core.Map<core.String, core.Object>> o) { | 2709 checkUnnamed2605(core.List<core.Map<core.String, core.Object>> o) { |
2541 unittest.expect(o, unittest.hasLength(2)); | 2710 unittest.expect(o, unittest.hasLength(2)); |
2542 checkUnnamed2617(o[0]); | 2711 checkUnnamed2604(o[0]); |
2543 checkUnnamed2617(o[1]); | 2712 checkUnnamed2604(o[1]); |
2544 } | 2713 } |
2545 | 2714 |
2546 core.int buildCounterStatus = 0; | 2715 core.int buildCounterStatus = 0; |
2547 buildStatus() { | 2716 buildStatus() { |
2548 var o = new api.Status(); | 2717 var o = new api.Status(); |
2549 buildCounterStatus++; | 2718 buildCounterStatus++; |
2550 if (buildCounterStatus < 3) { | 2719 if (buildCounterStatus < 3) { |
2551 o.code = 42; | 2720 o.code = 42; |
2552 o.details = buildUnnamed2618(); | 2721 o.details = buildUnnamed2605(); |
2553 o.message = "foo"; | 2722 o.message = "foo"; |
2554 } | 2723 } |
2555 buildCounterStatus--; | 2724 buildCounterStatus--; |
2556 return o; | 2725 return o; |
2557 } | 2726 } |
2558 | 2727 |
2559 checkStatus(api.Status o) { | 2728 checkStatus(api.Status o) { |
2560 buildCounterStatus++; | 2729 buildCounterStatus++; |
2561 if (buildCounterStatus < 3) { | 2730 if (buildCounterStatus < 3) { |
2562 unittest.expect(o.code, unittest.equals(42)); | 2731 unittest.expect(o.code, unittest.equals(42)); |
2563 checkUnnamed2618(o.details); | 2732 checkUnnamed2605(o.details); |
2564 unittest.expect(o.message, unittest.equals('foo')); | 2733 unittest.expect(o.message, unittest.equals('foo')); |
2565 } | 2734 } |
2566 buildCounterStatus--; | 2735 buildCounterStatus--; |
2567 } | 2736 } |
2568 | 2737 |
2569 buildUnnamed2619() { | 2738 buildUnnamed2606() { |
2570 var o = new core.List<core.String>(); | 2739 var o = new core.List<core.String>(); |
2571 o.add("foo"); | 2740 o.add("foo"); |
2572 o.add("foo"); | 2741 o.add("foo"); |
2573 return o; | 2742 return o; |
2574 } | 2743 } |
2575 | 2744 |
2576 checkUnnamed2619(core.List<core.String> o) { | 2745 checkUnnamed2606(core.List<core.String> o) { |
2577 unittest.expect(o, unittest.hasLength(2)); | 2746 unittest.expect(o, unittest.hasLength(2)); |
2578 unittest.expect(o[0], unittest.equals('foo')); | 2747 unittest.expect(o[0], unittest.equals('foo')); |
2579 unittest.expect(o[1], unittest.equals('foo')); | 2748 unittest.expect(o[1], unittest.equals('foo')); |
2580 } | 2749 } |
2581 | 2750 |
2582 core.int buildCounterTestIamPermissionsRequest = 0; | 2751 core.int buildCounterTestIamPermissionsRequest = 0; |
2583 buildTestIamPermissionsRequest() { | 2752 buildTestIamPermissionsRequest() { |
2584 var o = new api.TestIamPermissionsRequest(); | 2753 var o = new api.TestIamPermissionsRequest(); |
2585 buildCounterTestIamPermissionsRequest++; | 2754 buildCounterTestIamPermissionsRequest++; |
2586 if (buildCounterTestIamPermissionsRequest < 3) { | 2755 if (buildCounterTestIamPermissionsRequest < 3) { |
2587 o.permissions = buildUnnamed2619(); | 2756 o.permissions = buildUnnamed2606(); |
2588 } | 2757 } |
2589 buildCounterTestIamPermissionsRequest--; | 2758 buildCounterTestIamPermissionsRequest--; |
2590 return o; | 2759 return o; |
2591 } | 2760 } |
2592 | 2761 |
2593 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { | 2762 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { |
2594 buildCounterTestIamPermissionsRequest++; | 2763 buildCounterTestIamPermissionsRequest++; |
2595 if (buildCounterTestIamPermissionsRequest < 3) { | 2764 if (buildCounterTestIamPermissionsRequest < 3) { |
2596 checkUnnamed2619(o.permissions); | 2765 checkUnnamed2606(o.permissions); |
2597 } | 2766 } |
2598 buildCounterTestIamPermissionsRequest--; | 2767 buildCounterTestIamPermissionsRequest--; |
2599 } | 2768 } |
2600 | 2769 |
2601 buildUnnamed2620() { | 2770 buildUnnamed2607() { |
2602 var o = new core.List<core.String>(); | 2771 var o = new core.List<core.String>(); |
2603 o.add("foo"); | 2772 o.add("foo"); |
2604 o.add("foo"); | 2773 o.add("foo"); |
2605 return o; | 2774 return o; |
2606 } | 2775 } |
2607 | 2776 |
2608 checkUnnamed2620(core.List<core.String> o) { | 2777 checkUnnamed2607(core.List<core.String> o) { |
2609 unittest.expect(o, unittest.hasLength(2)); | 2778 unittest.expect(o, unittest.hasLength(2)); |
2610 unittest.expect(o[0], unittest.equals('foo')); | 2779 unittest.expect(o[0], unittest.equals('foo')); |
2611 unittest.expect(o[1], unittest.equals('foo')); | 2780 unittest.expect(o[1], unittest.equals('foo')); |
2612 } | 2781 } |
2613 | 2782 |
2614 core.int buildCounterTestIamPermissionsResponse = 0; | 2783 core.int buildCounterTestIamPermissionsResponse = 0; |
2615 buildTestIamPermissionsResponse() { | 2784 buildTestIamPermissionsResponse() { |
2616 var o = new api.TestIamPermissionsResponse(); | 2785 var o = new api.TestIamPermissionsResponse(); |
2617 buildCounterTestIamPermissionsResponse++; | 2786 buildCounterTestIamPermissionsResponse++; |
2618 if (buildCounterTestIamPermissionsResponse < 3) { | 2787 if (buildCounterTestIamPermissionsResponse < 3) { |
2619 o.permissions = buildUnnamed2620(); | 2788 o.permissions = buildUnnamed2607(); |
2620 } | 2789 } |
2621 buildCounterTestIamPermissionsResponse--; | 2790 buildCounterTestIamPermissionsResponse--; |
2622 return o; | 2791 return o; |
2623 } | 2792 } |
2624 | 2793 |
2625 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { | 2794 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { |
2626 buildCounterTestIamPermissionsResponse++; | 2795 buildCounterTestIamPermissionsResponse++; |
2627 if (buildCounterTestIamPermissionsResponse < 3) { | 2796 if (buildCounterTestIamPermissionsResponse < 3) { |
2628 checkUnnamed2620(o.permissions); | 2797 checkUnnamed2607(o.permissions); |
2629 } | 2798 } |
2630 buildCounterTestIamPermissionsResponse--; | 2799 buildCounterTestIamPermissionsResponse--; |
2631 } | 2800 } |
2632 | 2801 |
2633 buildUnnamed2621() { | 2802 buildUnnamed2608() { |
2634 var o = new core.List<api.Exon>(); | 2803 var o = new core.List<api.Exon>(); |
2635 o.add(buildExon()); | 2804 o.add(buildExon()); |
2636 o.add(buildExon()); | 2805 o.add(buildExon()); |
2637 return o; | 2806 return o; |
2638 } | 2807 } |
2639 | 2808 |
2640 checkUnnamed2621(core.List<api.Exon> o) { | 2809 checkUnnamed2608(core.List<api.Exon> o) { |
2641 unittest.expect(o, unittest.hasLength(2)); | 2810 unittest.expect(o, unittest.hasLength(2)); |
2642 checkExon(o[0]); | 2811 checkExon(o[0]); |
2643 checkExon(o[1]); | 2812 checkExon(o[1]); |
2644 } | 2813 } |
2645 | 2814 |
2646 core.int buildCounterTranscript = 0; | 2815 core.int buildCounterTranscript = 0; |
2647 buildTranscript() { | 2816 buildTranscript() { |
2648 var o = new api.Transcript(); | 2817 var o = new api.Transcript(); |
2649 buildCounterTranscript++; | 2818 buildCounterTranscript++; |
2650 if (buildCounterTranscript < 3) { | 2819 if (buildCounterTranscript < 3) { |
2651 o.codingSequence = buildCodingSequence(); | 2820 o.codingSequence = buildCodingSequence(); |
2652 o.exons = buildUnnamed2621(); | 2821 o.exons = buildUnnamed2608(); |
2653 o.geneId = "foo"; | 2822 o.geneId = "foo"; |
2654 } | 2823 } |
2655 buildCounterTranscript--; | 2824 buildCounterTranscript--; |
2656 return o; | 2825 return o; |
2657 } | 2826 } |
2658 | 2827 |
2659 checkTranscript(api.Transcript o) { | 2828 checkTranscript(api.Transcript o) { |
2660 buildCounterTranscript++; | 2829 buildCounterTranscript++; |
2661 if (buildCounterTranscript < 3) { | 2830 if (buildCounterTranscript < 3) { |
2662 checkCodingSequence(o.codingSequence); | 2831 checkCodingSequence(o.codingSequence); |
2663 checkUnnamed2621(o.exons); | 2832 checkUnnamed2608(o.exons); |
2664 unittest.expect(o.geneId, unittest.equals('foo')); | 2833 unittest.expect(o.geneId, unittest.equals('foo')); |
2665 } | 2834 } |
2666 buildCounterTranscript--; | 2835 buildCounterTranscript--; |
2667 } | 2836 } |
2668 | 2837 |
2669 core.int buildCounterUndeleteDatasetRequest = 0; | 2838 core.int buildCounterUndeleteDatasetRequest = 0; |
2670 buildUndeleteDatasetRequest() { | 2839 buildUndeleteDatasetRequest() { |
2671 var o = new api.UndeleteDatasetRequest(); | 2840 var o = new api.UndeleteDatasetRequest(); |
2672 buildCounterUndeleteDatasetRequest++; | 2841 buildCounterUndeleteDatasetRequest++; |
2673 if (buildCounterUndeleteDatasetRequest < 3) { | 2842 if (buildCounterUndeleteDatasetRequest < 3) {} |
2674 } | |
2675 buildCounterUndeleteDatasetRequest--; | 2843 buildCounterUndeleteDatasetRequest--; |
2676 return o; | 2844 return o; |
2677 } | 2845 } |
2678 | 2846 |
2679 checkUndeleteDatasetRequest(api.UndeleteDatasetRequest o) { | 2847 checkUndeleteDatasetRequest(api.UndeleteDatasetRequest o) { |
2680 buildCounterUndeleteDatasetRequest++; | 2848 buildCounterUndeleteDatasetRequest++; |
2681 if (buildCounterUndeleteDatasetRequest < 3) { | 2849 if (buildCounterUndeleteDatasetRequest < 3) {} |
2682 } | |
2683 buildCounterUndeleteDatasetRequest--; | 2850 buildCounterUndeleteDatasetRequest--; |
2684 } | 2851 } |
2685 | 2852 |
2686 buildUnnamed2622() { | 2853 buildUnnamed2609() { |
2687 var o = new core.List<core.String>(); | 2854 var o = new core.List<core.String>(); |
2688 o.add("foo"); | 2855 o.add("foo"); |
2689 o.add("foo"); | 2856 o.add("foo"); |
2690 return o; | 2857 return o; |
2691 } | 2858 } |
2692 | 2859 |
2693 checkUnnamed2622(core.List<core.String> o) { | 2860 checkUnnamed2609(core.List<core.String> o) { |
2694 unittest.expect(o, unittest.hasLength(2)); | 2861 unittest.expect(o, unittest.hasLength(2)); |
2695 unittest.expect(o[0], unittest.equals('foo')); | 2862 unittest.expect(o[0], unittest.equals('foo')); |
2696 unittest.expect(o[1], unittest.equals('foo')); | 2863 unittest.expect(o[1], unittest.equals('foo')); |
2697 } | 2864 } |
2698 | 2865 |
2699 buildUnnamed2623() { | 2866 buildUnnamed2610() { |
2700 var o = new core.List<api.VariantCall>(); | 2867 var o = new core.List<api.VariantCall>(); |
2701 o.add(buildVariantCall()); | 2868 o.add(buildVariantCall()); |
2702 o.add(buildVariantCall()); | 2869 o.add(buildVariantCall()); |
2703 return o; | 2870 return o; |
2704 } | 2871 } |
2705 | 2872 |
2706 checkUnnamed2623(core.List<api.VariantCall> o) { | 2873 checkUnnamed2610(core.List<api.VariantCall> o) { |
2707 unittest.expect(o, unittest.hasLength(2)); | 2874 unittest.expect(o, unittest.hasLength(2)); |
2708 checkVariantCall(o[0]); | 2875 checkVariantCall(o[0]); |
2709 checkVariantCall(o[1]); | 2876 checkVariantCall(o[1]); |
2710 } | 2877 } |
2711 | 2878 |
2712 buildUnnamed2624() { | 2879 buildUnnamed2611() { |
2713 var o = new core.List<core.String>(); | 2880 var o = new core.List<core.String>(); |
2714 o.add("foo"); | 2881 o.add("foo"); |
2715 o.add("foo"); | 2882 o.add("foo"); |
2716 return o; | 2883 return o; |
2717 } | 2884 } |
2718 | 2885 |
2719 checkUnnamed2624(core.List<core.String> o) { | 2886 checkUnnamed2611(core.List<core.String> o) { |
2720 unittest.expect(o, unittest.hasLength(2)); | 2887 unittest.expect(o, unittest.hasLength(2)); |
2721 unittest.expect(o[0], unittest.equals('foo')); | 2888 unittest.expect(o[0], unittest.equals('foo')); |
2722 unittest.expect(o[1], unittest.equals('foo')); | 2889 unittest.expect(o[1], unittest.equals('foo')); |
2723 } | 2890 } |
2724 | 2891 |
2725 buildUnnamed2625() { | 2892 buildUnnamed2612() { |
2726 var o = new core.List<core.Object>(); | 2893 var o = new core.List<core.Object>(); |
2727 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 2894 o.add({ |
2728 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 2895 'list': [1, 2, 3], |
| 2896 'bool': true, |
| 2897 'string': 'foo' |
| 2898 }); |
| 2899 o.add({ |
| 2900 'list': [1, 2, 3], |
| 2901 'bool': true, |
| 2902 'string': 'foo' |
| 2903 }); |
2729 return o; | 2904 return o; |
2730 } | 2905 } |
2731 | 2906 |
2732 checkUnnamed2625(core.List<core.Object> o) { | 2907 checkUnnamed2612(core.List<core.Object> o) { |
2733 unittest.expect(o, unittest.hasLength(2)); | 2908 unittest.expect(o, unittest.hasLength(2)); |
2734 var casted23 = (o[0]) as core.Map; unittest.expect(casted23, unittest.hasLengt
h(3)); unittest.expect(casted23["list"], unittest.equals([1, 2, 3])); unittest.e
xpect(casted23["bool"], unittest.equals(true)); unittest.expect(casted23["string
"], unittest.equals('foo')); | 2909 var casted23 = (o[0]) as core.Map; |
2735 var casted24 = (o[1]) as core.Map; unittest.expect(casted24, unittest.hasLengt
h(3)); unittest.expect(casted24["list"], unittest.equals([1, 2, 3])); unittest.e
xpect(casted24["bool"], unittest.equals(true)); unittest.expect(casted24["string
"], unittest.equals('foo')); | 2910 unittest.expect(casted23, unittest.hasLength(3)); |
| 2911 unittest.expect(casted23["list"], unittest.equals([1, 2, 3])); |
| 2912 unittest.expect(casted23["bool"], unittest.equals(true)); |
| 2913 unittest.expect(casted23["string"], unittest.equals('foo')); |
| 2914 var casted24 = (o[1]) as core.Map; |
| 2915 unittest.expect(casted24, unittest.hasLength(3)); |
| 2916 unittest.expect(casted24["list"], unittest.equals([1, 2, 3])); |
| 2917 unittest.expect(casted24["bool"], unittest.equals(true)); |
| 2918 unittest.expect(casted24["string"], unittest.equals('foo')); |
2736 } | 2919 } |
2737 | 2920 |
2738 buildUnnamed2626() { | 2921 buildUnnamed2613() { |
2739 var o = new core.Map<core.String, core.List<core.Object>>(); | 2922 var o = new core.Map<core.String, core.List<core.Object>>(); |
2740 o["x"] = buildUnnamed2625(); | 2923 o["x"] = buildUnnamed2612(); |
2741 o["y"] = buildUnnamed2625(); | 2924 o["y"] = buildUnnamed2612(); |
2742 return o; | 2925 return o; |
2743 } | 2926 } |
2744 | 2927 |
2745 checkUnnamed2626(core.Map<core.String, core.List<core.Object>> o) { | 2928 checkUnnamed2613(core.Map<core.String, core.List<core.Object>> o) { |
2746 unittest.expect(o, unittest.hasLength(2)); | 2929 unittest.expect(o, unittest.hasLength(2)); |
2747 checkUnnamed2625(o["x"]); | 2930 checkUnnamed2612(o["x"]); |
2748 checkUnnamed2625(o["y"]); | 2931 checkUnnamed2612(o["y"]); |
2749 } | 2932 } |
2750 | 2933 |
2751 buildUnnamed2627() { | 2934 buildUnnamed2614() { |
2752 var o = new core.List<core.String>(); | 2935 var o = new core.List<core.String>(); |
2753 o.add("foo"); | 2936 o.add("foo"); |
2754 o.add("foo"); | 2937 o.add("foo"); |
2755 return o; | 2938 return o; |
2756 } | 2939 } |
2757 | 2940 |
2758 checkUnnamed2627(core.List<core.String> o) { | 2941 checkUnnamed2614(core.List<core.String> o) { |
2759 unittest.expect(o, unittest.hasLength(2)); | 2942 unittest.expect(o, unittest.hasLength(2)); |
2760 unittest.expect(o[0], unittest.equals('foo')); | 2943 unittest.expect(o[0], unittest.equals('foo')); |
2761 unittest.expect(o[1], unittest.equals('foo')); | 2944 unittest.expect(o[1], unittest.equals('foo')); |
2762 } | 2945 } |
2763 | 2946 |
2764 core.int buildCounterVariant = 0; | 2947 core.int buildCounterVariant = 0; |
2765 buildVariant() { | 2948 buildVariant() { |
2766 var o = new api.Variant(); | 2949 var o = new api.Variant(); |
2767 buildCounterVariant++; | 2950 buildCounterVariant++; |
2768 if (buildCounterVariant < 3) { | 2951 if (buildCounterVariant < 3) { |
2769 o.alternateBases = buildUnnamed2622(); | 2952 o.alternateBases = buildUnnamed2609(); |
2770 o.calls = buildUnnamed2623(); | 2953 o.calls = buildUnnamed2610(); |
2771 o.created = "foo"; | 2954 o.created = "foo"; |
2772 o.end = "foo"; | 2955 o.end = "foo"; |
2773 o.filter = buildUnnamed2624(); | 2956 o.filter = buildUnnamed2611(); |
2774 o.id = "foo"; | 2957 o.id = "foo"; |
2775 o.info = buildUnnamed2626(); | 2958 o.info = buildUnnamed2613(); |
2776 o.names = buildUnnamed2627(); | 2959 o.names = buildUnnamed2614(); |
2777 o.quality = 42.0; | 2960 o.quality = 42.0; |
2778 o.referenceBases = "foo"; | 2961 o.referenceBases = "foo"; |
2779 o.referenceName = "foo"; | 2962 o.referenceName = "foo"; |
2780 o.start = "foo"; | 2963 o.start = "foo"; |
2781 o.variantSetId = "foo"; | 2964 o.variantSetId = "foo"; |
2782 } | 2965 } |
2783 buildCounterVariant--; | 2966 buildCounterVariant--; |
2784 return o; | 2967 return o; |
2785 } | 2968 } |
2786 | 2969 |
2787 checkVariant(api.Variant o) { | 2970 checkVariant(api.Variant o) { |
2788 buildCounterVariant++; | 2971 buildCounterVariant++; |
2789 if (buildCounterVariant < 3) { | 2972 if (buildCounterVariant < 3) { |
2790 checkUnnamed2622(o.alternateBases); | 2973 checkUnnamed2609(o.alternateBases); |
2791 checkUnnamed2623(o.calls); | 2974 checkUnnamed2610(o.calls); |
2792 unittest.expect(o.created, unittest.equals('foo')); | 2975 unittest.expect(o.created, unittest.equals('foo')); |
2793 unittest.expect(o.end, unittest.equals('foo')); | 2976 unittest.expect(o.end, unittest.equals('foo')); |
2794 checkUnnamed2624(o.filter); | 2977 checkUnnamed2611(o.filter); |
2795 unittest.expect(o.id, unittest.equals('foo')); | 2978 unittest.expect(o.id, unittest.equals('foo')); |
2796 checkUnnamed2626(o.info); | 2979 checkUnnamed2613(o.info); |
2797 checkUnnamed2627(o.names); | 2980 checkUnnamed2614(o.names); |
2798 unittest.expect(o.quality, unittest.equals(42.0)); | 2981 unittest.expect(o.quality, unittest.equals(42.0)); |
2799 unittest.expect(o.referenceBases, unittest.equals('foo')); | 2982 unittest.expect(o.referenceBases, unittest.equals('foo')); |
2800 unittest.expect(o.referenceName, unittest.equals('foo')); | 2983 unittest.expect(o.referenceName, unittest.equals('foo')); |
2801 unittest.expect(o.start, unittest.equals('foo')); | 2984 unittest.expect(o.start, unittest.equals('foo')); |
2802 unittest.expect(o.variantSetId, unittest.equals('foo')); | 2985 unittest.expect(o.variantSetId, unittest.equals('foo')); |
2803 } | 2986 } |
2804 buildCounterVariant--; | 2987 buildCounterVariant--; |
2805 } | 2988 } |
2806 | 2989 |
2807 buildUnnamed2628() { | 2990 buildUnnamed2615() { |
2808 var o = new core.List<api.ClinicalCondition>(); | 2991 var o = new core.List<api.ClinicalCondition>(); |
2809 o.add(buildClinicalCondition()); | 2992 o.add(buildClinicalCondition()); |
2810 o.add(buildClinicalCondition()); | 2993 o.add(buildClinicalCondition()); |
2811 return o; | 2994 return o; |
2812 } | 2995 } |
2813 | 2996 |
2814 checkUnnamed2628(core.List<api.ClinicalCondition> o) { | 2997 checkUnnamed2615(core.List<api.ClinicalCondition> o) { |
2815 unittest.expect(o, unittest.hasLength(2)); | 2998 unittest.expect(o, unittest.hasLength(2)); |
2816 checkClinicalCondition(o[0]); | 2999 checkClinicalCondition(o[0]); |
2817 checkClinicalCondition(o[1]); | 3000 checkClinicalCondition(o[1]); |
2818 } | 3001 } |
2819 | 3002 |
2820 buildUnnamed2629() { | 3003 buildUnnamed2616() { |
2821 var o = new core.List<core.String>(); | 3004 var o = new core.List<core.String>(); |
2822 o.add("foo"); | 3005 o.add("foo"); |
2823 o.add("foo"); | 3006 o.add("foo"); |
2824 return o; | 3007 return o; |
2825 } | 3008 } |
2826 | 3009 |
2827 checkUnnamed2629(core.List<core.String> o) { | 3010 checkUnnamed2616(core.List<core.String> o) { |
2828 unittest.expect(o, unittest.hasLength(2)); | 3011 unittest.expect(o, unittest.hasLength(2)); |
2829 unittest.expect(o[0], unittest.equals('foo')); | 3012 unittest.expect(o[0], unittest.equals('foo')); |
2830 unittest.expect(o[1], unittest.equals('foo')); | 3013 unittest.expect(o[1], unittest.equals('foo')); |
2831 } | 3014 } |
2832 | 3015 |
2833 core.int buildCounterVariantAnnotation = 0; | 3016 core.int buildCounterVariantAnnotation = 0; |
2834 buildVariantAnnotation() { | 3017 buildVariantAnnotation() { |
2835 var o = new api.VariantAnnotation(); | 3018 var o = new api.VariantAnnotation(); |
2836 buildCounterVariantAnnotation++; | 3019 buildCounterVariantAnnotation++; |
2837 if (buildCounterVariantAnnotation < 3) { | 3020 if (buildCounterVariantAnnotation < 3) { |
2838 o.alternateBases = "foo"; | 3021 o.alternateBases = "foo"; |
2839 o.clinicalSignificance = "foo"; | 3022 o.clinicalSignificance = "foo"; |
2840 o.conditions = buildUnnamed2628(); | 3023 o.conditions = buildUnnamed2615(); |
2841 o.effect = "foo"; | 3024 o.effect = "foo"; |
2842 o.geneId = "foo"; | 3025 o.geneId = "foo"; |
2843 o.transcriptIds = buildUnnamed2629(); | 3026 o.transcriptIds = buildUnnamed2616(); |
2844 o.type = "foo"; | 3027 o.type = "foo"; |
2845 } | 3028 } |
2846 buildCounterVariantAnnotation--; | 3029 buildCounterVariantAnnotation--; |
2847 return o; | 3030 return o; |
2848 } | 3031 } |
2849 | 3032 |
2850 checkVariantAnnotation(api.VariantAnnotation o) { | 3033 checkVariantAnnotation(api.VariantAnnotation o) { |
2851 buildCounterVariantAnnotation++; | 3034 buildCounterVariantAnnotation++; |
2852 if (buildCounterVariantAnnotation < 3) { | 3035 if (buildCounterVariantAnnotation < 3) { |
2853 unittest.expect(o.alternateBases, unittest.equals('foo')); | 3036 unittest.expect(o.alternateBases, unittest.equals('foo')); |
2854 unittest.expect(o.clinicalSignificance, unittest.equals('foo')); | 3037 unittest.expect(o.clinicalSignificance, unittest.equals('foo')); |
2855 checkUnnamed2628(o.conditions); | 3038 checkUnnamed2615(o.conditions); |
2856 unittest.expect(o.effect, unittest.equals('foo')); | 3039 unittest.expect(o.effect, unittest.equals('foo')); |
2857 unittest.expect(o.geneId, unittest.equals('foo')); | 3040 unittest.expect(o.geneId, unittest.equals('foo')); |
2858 checkUnnamed2629(o.transcriptIds); | 3041 checkUnnamed2616(o.transcriptIds); |
2859 unittest.expect(o.type, unittest.equals('foo')); | 3042 unittest.expect(o.type, unittest.equals('foo')); |
2860 } | 3043 } |
2861 buildCounterVariantAnnotation--; | 3044 buildCounterVariantAnnotation--; |
2862 } | 3045 } |
2863 | 3046 |
2864 buildUnnamed2630() { | 3047 buildUnnamed2617() { |
2865 var o = new core.List<core.int>(); | 3048 var o = new core.List<core.int>(); |
2866 o.add(42); | 3049 o.add(42); |
2867 o.add(42); | 3050 o.add(42); |
2868 return o; | 3051 return o; |
2869 } | 3052 } |
2870 | 3053 |
2871 checkUnnamed2630(core.List<core.int> o) { | 3054 checkUnnamed2617(core.List<core.int> o) { |
2872 unittest.expect(o, unittest.hasLength(2)); | 3055 unittest.expect(o, unittest.hasLength(2)); |
2873 unittest.expect(o[0], unittest.equals(42)); | 3056 unittest.expect(o[0], unittest.equals(42)); |
2874 unittest.expect(o[1], unittest.equals(42)); | 3057 unittest.expect(o[1], unittest.equals(42)); |
2875 } | 3058 } |
2876 | 3059 |
2877 buildUnnamed2631() { | 3060 buildUnnamed2618() { |
2878 var o = new core.List<core.double>(); | 3061 var o = new core.List<core.double>(); |
2879 o.add(42.0); | 3062 o.add(42.0); |
2880 o.add(42.0); | 3063 o.add(42.0); |
2881 return o; | 3064 return o; |
2882 } | 3065 } |
2883 | 3066 |
2884 checkUnnamed2631(core.List<core.double> o) { | 3067 checkUnnamed2618(core.List<core.double> o) { |
2885 unittest.expect(o, unittest.hasLength(2)); | 3068 unittest.expect(o, unittest.hasLength(2)); |
2886 unittest.expect(o[0], unittest.equals(42.0)); | 3069 unittest.expect(o[0], unittest.equals(42.0)); |
2887 unittest.expect(o[1], unittest.equals(42.0)); | 3070 unittest.expect(o[1], unittest.equals(42.0)); |
2888 } | 3071 } |
2889 | 3072 |
2890 buildUnnamed2632() { | 3073 buildUnnamed2619() { |
2891 var o = new core.List<core.Object>(); | 3074 var o = new core.List<core.Object>(); |
2892 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 3075 o.add({ |
2893 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 3076 'list': [1, 2, 3], |
| 3077 'bool': true, |
| 3078 'string': 'foo' |
| 3079 }); |
| 3080 o.add({ |
| 3081 'list': [1, 2, 3], |
| 3082 'bool': true, |
| 3083 'string': 'foo' |
| 3084 }); |
2894 return o; | 3085 return o; |
2895 } | 3086 } |
2896 | 3087 |
2897 checkUnnamed2632(core.List<core.Object> o) { | 3088 checkUnnamed2619(core.List<core.Object> o) { |
2898 unittest.expect(o, unittest.hasLength(2)); | 3089 unittest.expect(o, unittest.hasLength(2)); |
2899 var casted25 = (o[0]) as core.Map; unittest.expect(casted25, unittest.hasLengt
h(3)); unittest.expect(casted25["list"], unittest.equals([1, 2, 3])); unittest.e
xpect(casted25["bool"], unittest.equals(true)); unittest.expect(casted25["string
"], unittest.equals('foo')); | 3090 var casted25 = (o[0]) as core.Map; |
2900 var casted26 = (o[1]) as core.Map; unittest.expect(casted26, unittest.hasLengt
h(3)); unittest.expect(casted26["list"], unittest.equals([1, 2, 3])); unittest.e
xpect(casted26["bool"], unittest.equals(true)); unittest.expect(casted26["string
"], unittest.equals('foo')); | 3091 unittest.expect(casted25, unittest.hasLength(3)); |
| 3092 unittest.expect(casted25["list"], unittest.equals([1, 2, 3])); |
| 3093 unittest.expect(casted25["bool"], unittest.equals(true)); |
| 3094 unittest.expect(casted25["string"], unittest.equals('foo')); |
| 3095 var casted26 = (o[1]) as core.Map; |
| 3096 unittest.expect(casted26, unittest.hasLength(3)); |
| 3097 unittest.expect(casted26["list"], unittest.equals([1, 2, 3])); |
| 3098 unittest.expect(casted26["bool"], unittest.equals(true)); |
| 3099 unittest.expect(casted26["string"], unittest.equals('foo')); |
2901 } | 3100 } |
2902 | 3101 |
2903 buildUnnamed2633() { | 3102 buildUnnamed2620() { |
2904 var o = new core.Map<core.String, core.List<core.Object>>(); | 3103 var o = new core.Map<core.String, core.List<core.Object>>(); |
2905 o["x"] = buildUnnamed2632(); | 3104 o["x"] = buildUnnamed2619(); |
2906 o["y"] = buildUnnamed2632(); | 3105 o["y"] = buildUnnamed2619(); |
2907 return o; | 3106 return o; |
2908 } | 3107 } |
2909 | 3108 |
2910 checkUnnamed2633(core.Map<core.String, core.List<core.Object>> o) { | 3109 checkUnnamed2620(core.Map<core.String, core.List<core.Object>> o) { |
2911 unittest.expect(o, unittest.hasLength(2)); | 3110 unittest.expect(o, unittest.hasLength(2)); |
2912 checkUnnamed2632(o["x"]); | 3111 checkUnnamed2619(o["x"]); |
2913 checkUnnamed2632(o["y"]); | 3112 checkUnnamed2619(o["y"]); |
2914 } | 3113 } |
2915 | 3114 |
2916 core.int buildCounterVariantCall = 0; | 3115 core.int buildCounterVariantCall = 0; |
2917 buildVariantCall() { | 3116 buildVariantCall() { |
2918 var o = new api.VariantCall(); | 3117 var o = new api.VariantCall(); |
2919 buildCounterVariantCall++; | 3118 buildCounterVariantCall++; |
2920 if (buildCounterVariantCall < 3) { | 3119 if (buildCounterVariantCall < 3) { |
2921 o.callSetId = "foo"; | 3120 o.callSetId = "foo"; |
2922 o.callSetName = "foo"; | 3121 o.callSetName = "foo"; |
2923 o.genotype = buildUnnamed2630(); | 3122 o.genotype = buildUnnamed2617(); |
2924 o.genotypeLikelihood = buildUnnamed2631(); | 3123 o.genotypeLikelihood = buildUnnamed2618(); |
2925 o.info = buildUnnamed2633(); | 3124 o.info = buildUnnamed2620(); |
2926 o.phaseset = "foo"; | 3125 o.phaseset = "foo"; |
2927 } | 3126 } |
2928 buildCounterVariantCall--; | 3127 buildCounterVariantCall--; |
2929 return o; | 3128 return o; |
2930 } | 3129 } |
2931 | 3130 |
2932 checkVariantCall(api.VariantCall o) { | 3131 checkVariantCall(api.VariantCall o) { |
2933 buildCounterVariantCall++; | 3132 buildCounterVariantCall++; |
2934 if (buildCounterVariantCall < 3) { | 3133 if (buildCounterVariantCall < 3) { |
2935 unittest.expect(o.callSetId, unittest.equals('foo')); | 3134 unittest.expect(o.callSetId, unittest.equals('foo')); |
2936 unittest.expect(o.callSetName, unittest.equals('foo')); | 3135 unittest.expect(o.callSetName, unittest.equals('foo')); |
2937 checkUnnamed2630(o.genotype); | 3136 checkUnnamed2617(o.genotype); |
2938 checkUnnamed2631(o.genotypeLikelihood); | 3137 checkUnnamed2618(o.genotypeLikelihood); |
2939 checkUnnamed2633(o.info); | 3138 checkUnnamed2620(o.info); |
2940 unittest.expect(o.phaseset, unittest.equals('foo')); | 3139 unittest.expect(o.phaseset, unittest.equals('foo')); |
2941 } | 3140 } |
2942 buildCounterVariantCall--; | 3141 buildCounterVariantCall--; |
2943 } | 3142 } |
2944 | 3143 |
2945 buildUnnamed2634() { | 3144 buildUnnamed2621() { |
2946 var o = new core.List<api.VariantSetMetadata>(); | 3145 var o = new core.List<api.VariantSetMetadata>(); |
2947 o.add(buildVariantSetMetadata()); | 3146 o.add(buildVariantSetMetadata()); |
2948 o.add(buildVariantSetMetadata()); | 3147 o.add(buildVariantSetMetadata()); |
2949 return o; | 3148 return o; |
2950 } | 3149 } |
2951 | 3150 |
2952 checkUnnamed2634(core.List<api.VariantSetMetadata> o) { | 3151 checkUnnamed2621(core.List<api.VariantSetMetadata> o) { |
2953 unittest.expect(o, unittest.hasLength(2)); | 3152 unittest.expect(o, unittest.hasLength(2)); |
2954 checkVariantSetMetadata(o[0]); | 3153 checkVariantSetMetadata(o[0]); |
2955 checkVariantSetMetadata(o[1]); | 3154 checkVariantSetMetadata(o[1]); |
2956 } | 3155 } |
2957 | 3156 |
2958 buildUnnamed2635() { | 3157 buildUnnamed2622() { |
2959 var o = new core.List<api.ReferenceBound>(); | 3158 var o = new core.List<api.ReferenceBound>(); |
2960 o.add(buildReferenceBound()); | 3159 o.add(buildReferenceBound()); |
2961 o.add(buildReferenceBound()); | 3160 o.add(buildReferenceBound()); |
2962 return o; | 3161 return o; |
2963 } | 3162 } |
2964 | 3163 |
2965 checkUnnamed2635(core.List<api.ReferenceBound> o) { | 3164 checkUnnamed2622(core.List<api.ReferenceBound> o) { |
2966 unittest.expect(o, unittest.hasLength(2)); | 3165 unittest.expect(o, unittest.hasLength(2)); |
2967 checkReferenceBound(o[0]); | 3166 checkReferenceBound(o[0]); |
2968 checkReferenceBound(o[1]); | 3167 checkReferenceBound(o[1]); |
2969 } | 3168 } |
2970 | 3169 |
2971 core.int buildCounterVariantSet = 0; | 3170 core.int buildCounterVariantSet = 0; |
2972 buildVariantSet() { | 3171 buildVariantSet() { |
2973 var o = new api.VariantSet(); | 3172 var o = new api.VariantSet(); |
2974 buildCounterVariantSet++; | 3173 buildCounterVariantSet++; |
2975 if (buildCounterVariantSet < 3) { | 3174 if (buildCounterVariantSet < 3) { |
2976 o.datasetId = "foo"; | 3175 o.datasetId = "foo"; |
2977 o.description = "foo"; | 3176 o.description = "foo"; |
2978 o.id = "foo"; | 3177 o.id = "foo"; |
2979 o.metadata = buildUnnamed2634(); | 3178 o.metadata = buildUnnamed2621(); |
2980 o.name = "foo"; | 3179 o.name = "foo"; |
2981 o.referenceBounds = buildUnnamed2635(); | 3180 o.referenceBounds = buildUnnamed2622(); |
2982 o.referenceSetId = "foo"; | 3181 o.referenceSetId = "foo"; |
2983 } | 3182 } |
2984 buildCounterVariantSet--; | 3183 buildCounterVariantSet--; |
2985 return o; | 3184 return o; |
2986 } | 3185 } |
2987 | 3186 |
2988 checkVariantSet(api.VariantSet o) { | 3187 checkVariantSet(api.VariantSet o) { |
2989 buildCounterVariantSet++; | 3188 buildCounterVariantSet++; |
2990 if (buildCounterVariantSet < 3) { | 3189 if (buildCounterVariantSet < 3) { |
2991 unittest.expect(o.datasetId, unittest.equals('foo')); | 3190 unittest.expect(o.datasetId, unittest.equals('foo')); |
2992 unittest.expect(o.description, unittest.equals('foo')); | 3191 unittest.expect(o.description, unittest.equals('foo')); |
2993 unittest.expect(o.id, unittest.equals('foo')); | 3192 unittest.expect(o.id, unittest.equals('foo')); |
2994 checkUnnamed2634(o.metadata); | 3193 checkUnnamed2621(o.metadata); |
2995 unittest.expect(o.name, unittest.equals('foo')); | 3194 unittest.expect(o.name, unittest.equals('foo')); |
2996 checkUnnamed2635(o.referenceBounds); | 3195 checkUnnamed2622(o.referenceBounds); |
2997 unittest.expect(o.referenceSetId, unittest.equals('foo')); | 3196 unittest.expect(o.referenceSetId, unittest.equals('foo')); |
2998 } | 3197 } |
2999 buildCounterVariantSet--; | 3198 buildCounterVariantSet--; |
3000 } | 3199 } |
3001 | 3200 |
3002 buildUnnamed2636() { | 3201 buildUnnamed2623() { |
3003 var o = new core.List<core.Object>(); | 3202 var o = new core.List<core.Object>(); |
3004 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 3203 o.add({ |
3005 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 3204 'list': [1, 2, 3], |
| 3205 'bool': true, |
| 3206 'string': 'foo' |
| 3207 }); |
| 3208 o.add({ |
| 3209 'list': [1, 2, 3], |
| 3210 'bool': true, |
| 3211 'string': 'foo' |
| 3212 }); |
3006 return o; | 3213 return o; |
3007 } | 3214 } |
3008 | 3215 |
3009 checkUnnamed2636(core.List<core.Object> o) { | 3216 checkUnnamed2623(core.List<core.Object> o) { |
3010 unittest.expect(o, unittest.hasLength(2)); | 3217 unittest.expect(o, unittest.hasLength(2)); |
3011 var casted27 = (o[0]) as core.Map; unittest.expect(casted27, unittest.hasLengt
h(3)); unittest.expect(casted27["list"], unittest.equals([1, 2, 3])); unittest.e
xpect(casted27["bool"], unittest.equals(true)); unittest.expect(casted27["string
"], unittest.equals('foo')); | 3218 var casted27 = (o[0]) as core.Map; |
3012 var casted28 = (o[1]) as core.Map; unittest.expect(casted28, unittest.hasLengt
h(3)); unittest.expect(casted28["list"], unittest.equals([1, 2, 3])); unittest.e
xpect(casted28["bool"], unittest.equals(true)); unittest.expect(casted28["string
"], unittest.equals('foo')); | 3219 unittest.expect(casted27, unittest.hasLength(3)); |
| 3220 unittest.expect(casted27["list"], unittest.equals([1, 2, 3])); |
| 3221 unittest.expect(casted27["bool"], unittest.equals(true)); |
| 3222 unittest.expect(casted27["string"], unittest.equals('foo')); |
| 3223 var casted28 = (o[1]) as core.Map; |
| 3224 unittest.expect(casted28, unittest.hasLength(3)); |
| 3225 unittest.expect(casted28["list"], unittest.equals([1, 2, 3])); |
| 3226 unittest.expect(casted28["bool"], unittest.equals(true)); |
| 3227 unittest.expect(casted28["string"], unittest.equals('foo')); |
3013 } | 3228 } |
3014 | 3229 |
3015 buildUnnamed2637() { | 3230 buildUnnamed2624() { |
3016 var o = new core.Map<core.String, core.List<core.Object>>(); | 3231 var o = new core.Map<core.String, core.List<core.Object>>(); |
3017 o["x"] = buildUnnamed2636(); | 3232 o["x"] = buildUnnamed2623(); |
3018 o["y"] = buildUnnamed2636(); | 3233 o["y"] = buildUnnamed2623(); |
3019 return o; | 3234 return o; |
3020 } | 3235 } |
3021 | 3236 |
3022 checkUnnamed2637(core.Map<core.String, core.List<core.Object>> o) { | 3237 checkUnnamed2624(core.Map<core.String, core.List<core.Object>> o) { |
3023 unittest.expect(o, unittest.hasLength(2)); | 3238 unittest.expect(o, unittest.hasLength(2)); |
3024 checkUnnamed2636(o["x"]); | 3239 checkUnnamed2623(o["x"]); |
3025 checkUnnamed2636(o["y"]); | 3240 checkUnnamed2623(o["y"]); |
3026 } | 3241 } |
3027 | 3242 |
3028 core.int buildCounterVariantSetMetadata = 0; | 3243 core.int buildCounterVariantSetMetadata = 0; |
3029 buildVariantSetMetadata() { | 3244 buildVariantSetMetadata() { |
3030 var o = new api.VariantSetMetadata(); | 3245 var o = new api.VariantSetMetadata(); |
3031 buildCounterVariantSetMetadata++; | 3246 buildCounterVariantSetMetadata++; |
3032 if (buildCounterVariantSetMetadata < 3) { | 3247 if (buildCounterVariantSetMetadata < 3) { |
3033 o.description = "foo"; | 3248 o.description = "foo"; |
3034 o.id = "foo"; | 3249 o.id = "foo"; |
3035 o.info = buildUnnamed2637(); | 3250 o.info = buildUnnamed2624(); |
3036 o.key = "foo"; | 3251 o.key = "foo"; |
3037 o.number = "foo"; | 3252 o.number = "foo"; |
3038 o.type = "foo"; | 3253 o.type = "foo"; |
3039 o.value = "foo"; | 3254 o.value = "foo"; |
3040 } | 3255 } |
3041 buildCounterVariantSetMetadata--; | 3256 buildCounterVariantSetMetadata--; |
3042 return o; | 3257 return o; |
3043 } | 3258 } |
3044 | 3259 |
3045 checkVariantSetMetadata(api.VariantSetMetadata o) { | 3260 checkVariantSetMetadata(api.VariantSetMetadata o) { |
3046 buildCounterVariantSetMetadata++; | 3261 buildCounterVariantSetMetadata++; |
3047 if (buildCounterVariantSetMetadata < 3) { | 3262 if (buildCounterVariantSetMetadata < 3) { |
3048 unittest.expect(o.description, unittest.equals('foo')); | 3263 unittest.expect(o.description, unittest.equals('foo')); |
3049 unittest.expect(o.id, unittest.equals('foo')); | 3264 unittest.expect(o.id, unittest.equals('foo')); |
3050 checkUnnamed2637(o.info); | 3265 checkUnnamed2624(o.info); |
3051 unittest.expect(o.key, unittest.equals('foo')); | 3266 unittest.expect(o.key, unittest.equals('foo')); |
3052 unittest.expect(o.number, unittest.equals('foo')); | 3267 unittest.expect(o.number, unittest.equals('foo')); |
3053 unittest.expect(o.type, unittest.equals('foo')); | 3268 unittest.expect(o.type, unittest.equals('foo')); |
3054 unittest.expect(o.value, unittest.equals('foo')); | 3269 unittest.expect(o.value, unittest.equals('foo')); |
3055 } | 3270 } |
3056 buildCounterVariantSetMetadata--; | 3271 buildCounterVariantSetMetadata--; |
3057 } | 3272 } |
3058 | 3273 |
3059 | |
3060 main() { | 3274 main() { |
3061 unittest.group("obj-schema-Annotation", () { | 3275 unittest.group("obj-schema-Annotation", () { |
3062 unittest.test("to-json--from-json", () { | 3276 unittest.test("to-json--from-json", () { |
3063 var o = buildAnnotation(); | 3277 var o = buildAnnotation(); |
3064 var od = new api.Annotation.fromJson(o.toJson()); | 3278 var od = new api.Annotation.fromJson(o.toJson()); |
3065 checkAnnotation(od); | 3279 checkAnnotation(od); |
3066 }); | 3280 }); |
3067 }); | 3281 }); |
3068 | 3282 |
3069 | |
3070 unittest.group("obj-schema-AnnotationSet", () { | 3283 unittest.group("obj-schema-AnnotationSet", () { |
3071 unittest.test("to-json--from-json", () { | 3284 unittest.test("to-json--from-json", () { |
3072 var o = buildAnnotationSet(); | 3285 var o = buildAnnotationSet(); |
3073 var od = new api.AnnotationSet.fromJson(o.toJson()); | 3286 var od = new api.AnnotationSet.fromJson(o.toJson()); |
3074 checkAnnotationSet(od); | 3287 checkAnnotationSet(od); |
3075 }); | 3288 }); |
3076 }); | 3289 }); |
3077 | 3290 |
3078 | |
3079 unittest.group("obj-schema-BatchCreateAnnotationsRequest", () { | 3291 unittest.group("obj-schema-BatchCreateAnnotationsRequest", () { |
3080 unittest.test("to-json--from-json", () { | 3292 unittest.test("to-json--from-json", () { |
3081 var o = buildBatchCreateAnnotationsRequest(); | 3293 var o = buildBatchCreateAnnotationsRequest(); |
3082 var od = new api.BatchCreateAnnotationsRequest.fromJson(o.toJson()); | 3294 var od = new api.BatchCreateAnnotationsRequest.fromJson(o.toJson()); |
3083 checkBatchCreateAnnotationsRequest(od); | 3295 checkBatchCreateAnnotationsRequest(od); |
3084 }); | 3296 }); |
3085 }); | 3297 }); |
3086 | 3298 |
3087 | |
3088 unittest.group("obj-schema-BatchCreateAnnotationsResponse", () { | 3299 unittest.group("obj-schema-BatchCreateAnnotationsResponse", () { |
3089 unittest.test("to-json--from-json", () { | 3300 unittest.test("to-json--from-json", () { |
3090 var o = buildBatchCreateAnnotationsResponse(); | 3301 var o = buildBatchCreateAnnotationsResponse(); |
3091 var od = new api.BatchCreateAnnotationsResponse.fromJson(o.toJson()); | 3302 var od = new api.BatchCreateAnnotationsResponse.fromJson(o.toJson()); |
3092 checkBatchCreateAnnotationsResponse(od); | 3303 checkBatchCreateAnnotationsResponse(od); |
3093 }); | 3304 }); |
3094 }); | 3305 }); |
3095 | 3306 |
3096 | |
3097 unittest.group("obj-schema-Binding", () { | 3307 unittest.group("obj-schema-Binding", () { |
3098 unittest.test("to-json--from-json", () { | 3308 unittest.test("to-json--from-json", () { |
3099 var o = buildBinding(); | 3309 var o = buildBinding(); |
3100 var od = new api.Binding.fromJson(o.toJson()); | 3310 var od = new api.Binding.fromJson(o.toJson()); |
3101 checkBinding(od); | 3311 checkBinding(od); |
3102 }); | 3312 }); |
3103 }); | 3313 }); |
3104 | 3314 |
3105 | |
3106 unittest.group("obj-schema-CallSet", () { | 3315 unittest.group("obj-schema-CallSet", () { |
3107 unittest.test("to-json--from-json", () { | 3316 unittest.test("to-json--from-json", () { |
3108 var o = buildCallSet(); | 3317 var o = buildCallSet(); |
3109 var od = new api.CallSet.fromJson(o.toJson()); | 3318 var od = new api.CallSet.fromJson(o.toJson()); |
3110 checkCallSet(od); | 3319 checkCallSet(od); |
3111 }); | 3320 }); |
3112 }); | 3321 }); |
3113 | 3322 |
3114 | |
3115 unittest.group("obj-schema-CancelOperationRequest", () { | 3323 unittest.group("obj-schema-CancelOperationRequest", () { |
3116 unittest.test("to-json--from-json", () { | 3324 unittest.test("to-json--from-json", () { |
3117 var o = buildCancelOperationRequest(); | 3325 var o = buildCancelOperationRequest(); |
3118 var od = new api.CancelOperationRequest.fromJson(o.toJson()); | 3326 var od = new api.CancelOperationRequest.fromJson(o.toJson()); |
3119 checkCancelOperationRequest(od); | 3327 checkCancelOperationRequest(od); |
3120 }); | 3328 }); |
3121 }); | 3329 }); |
3122 | 3330 |
3123 | |
3124 unittest.group("obj-schema-CigarUnit", () { | 3331 unittest.group("obj-schema-CigarUnit", () { |
3125 unittest.test("to-json--from-json", () { | 3332 unittest.test("to-json--from-json", () { |
3126 var o = buildCigarUnit(); | 3333 var o = buildCigarUnit(); |
3127 var od = new api.CigarUnit.fromJson(o.toJson()); | 3334 var od = new api.CigarUnit.fromJson(o.toJson()); |
3128 checkCigarUnit(od); | 3335 checkCigarUnit(od); |
3129 }); | 3336 }); |
3130 }); | 3337 }); |
3131 | 3338 |
3132 | |
3133 unittest.group("obj-schema-ClinicalCondition", () { | 3339 unittest.group("obj-schema-ClinicalCondition", () { |
3134 unittest.test("to-json--from-json", () { | 3340 unittest.test("to-json--from-json", () { |
3135 var o = buildClinicalCondition(); | 3341 var o = buildClinicalCondition(); |
3136 var od = new api.ClinicalCondition.fromJson(o.toJson()); | 3342 var od = new api.ClinicalCondition.fromJson(o.toJson()); |
3137 checkClinicalCondition(od); | 3343 checkClinicalCondition(od); |
3138 }); | 3344 }); |
3139 }); | 3345 }); |
3140 | 3346 |
3141 | |
3142 unittest.group("obj-schema-CodingSequence", () { | 3347 unittest.group("obj-schema-CodingSequence", () { |
3143 unittest.test("to-json--from-json", () { | 3348 unittest.test("to-json--from-json", () { |
3144 var o = buildCodingSequence(); | 3349 var o = buildCodingSequence(); |
3145 var od = new api.CodingSequence.fromJson(o.toJson()); | 3350 var od = new api.CodingSequence.fromJson(o.toJson()); |
3146 checkCodingSequence(od); | 3351 checkCodingSequence(od); |
3147 }); | 3352 }); |
3148 }); | 3353 }); |
3149 | 3354 |
3150 | |
3151 unittest.group("obj-schema-ComputeEngine", () { | 3355 unittest.group("obj-schema-ComputeEngine", () { |
3152 unittest.test("to-json--from-json", () { | 3356 unittest.test("to-json--from-json", () { |
3153 var o = buildComputeEngine(); | 3357 var o = buildComputeEngine(); |
3154 var od = new api.ComputeEngine.fromJson(o.toJson()); | 3358 var od = new api.ComputeEngine.fromJson(o.toJson()); |
3155 checkComputeEngine(od); | 3359 checkComputeEngine(od); |
3156 }); | 3360 }); |
3157 }); | 3361 }); |
3158 | 3362 |
3159 | |
3160 unittest.group("obj-schema-CoverageBucket", () { | 3363 unittest.group("obj-schema-CoverageBucket", () { |
3161 unittest.test("to-json--from-json", () { | 3364 unittest.test("to-json--from-json", () { |
3162 var o = buildCoverageBucket(); | 3365 var o = buildCoverageBucket(); |
3163 var od = new api.CoverageBucket.fromJson(o.toJson()); | 3366 var od = new api.CoverageBucket.fromJson(o.toJson()); |
3164 checkCoverageBucket(od); | 3367 checkCoverageBucket(od); |
3165 }); | 3368 }); |
3166 }); | 3369 }); |
3167 | 3370 |
3168 | |
3169 unittest.group("obj-schema-Dataset", () { | 3371 unittest.group("obj-schema-Dataset", () { |
3170 unittest.test("to-json--from-json", () { | 3372 unittest.test("to-json--from-json", () { |
3171 var o = buildDataset(); | 3373 var o = buildDataset(); |
3172 var od = new api.Dataset.fromJson(o.toJson()); | 3374 var od = new api.Dataset.fromJson(o.toJson()); |
3173 checkDataset(od); | 3375 checkDataset(od); |
3174 }); | 3376 }); |
3175 }); | 3377 }); |
3176 | 3378 |
3177 | |
3178 unittest.group("obj-schema-Empty", () { | 3379 unittest.group("obj-schema-Empty", () { |
3179 unittest.test("to-json--from-json", () { | 3380 unittest.test("to-json--from-json", () { |
3180 var o = buildEmpty(); | 3381 var o = buildEmpty(); |
3181 var od = new api.Empty.fromJson(o.toJson()); | 3382 var od = new api.Empty.fromJson(o.toJson()); |
3182 checkEmpty(od); | 3383 checkEmpty(od); |
3183 }); | 3384 }); |
3184 }); | 3385 }); |
3185 | 3386 |
3186 | |
3187 unittest.group("obj-schema-Entry", () { | 3387 unittest.group("obj-schema-Entry", () { |
3188 unittest.test("to-json--from-json", () { | 3388 unittest.test("to-json--from-json", () { |
3189 var o = buildEntry(); | 3389 var o = buildEntry(); |
3190 var od = new api.Entry.fromJson(o.toJson()); | 3390 var od = new api.Entry.fromJson(o.toJson()); |
3191 checkEntry(od); | 3391 checkEntry(od); |
3192 }); | 3392 }); |
3193 }); | 3393 }); |
3194 | 3394 |
3195 | |
3196 unittest.group("obj-schema-Exon", () { | 3395 unittest.group("obj-schema-Exon", () { |
3197 unittest.test("to-json--from-json", () { | 3396 unittest.test("to-json--from-json", () { |
3198 var o = buildExon(); | 3397 var o = buildExon(); |
3199 var od = new api.Exon.fromJson(o.toJson()); | 3398 var od = new api.Exon.fromJson(o.toJson()); |
3200 checkExon(od); | 3399 checkExon(od); |
3201 }); | 3400 }); |
3202 }); | 3401 }); |
3203 | 3402 |
3204 | |
3205 unittest.group("obj-schema-Experiment", () { | 3403 unittest.group("obj-schema-Experiment", () { |
3206 unittest.test("to-json--from-json", () { | 3404 unittest.test("to-json--from-json", () { |
3207 var o = buildExperiment(); | 3405 var o = buildExperiment(); |
3208 var od = new api.Experiment.fromJson(o.toJson()); | 3406 var od = new api.Experiment.fromJson(o.toJson()); |
3209 checkExperiment(od); | 3407 checkExperiment(od); |
3210 }); | 3408 }); |
3211 }); | 3409 }); |
3212 | 3410 |
3213 | |
3214 unittest.group("obj-schema-ExportReadGroupSetRequest", () { | 3411 unittest.group("obj-schema-ExportReadGroupSetRequest", () { |
3215 unittest.test("to-json--from-json", () { | 3412 unittest.test("to-json--from-json", () { |
3216 var o = buildExportReadGroupSetRequest(); | 3413 var o = buildExportReadGroupSetRequest(); |
3217 var od = new api.ExportReadGroupSetRequest.fromJson(o.toJson()); | 3414 var od = new api.ExportReadGroupSetRequest.fromJson(o.toJson()); |
3218 checkExportReadGroupSetRequest(od); | 3415 checkExportReadGroupSetRequest(od); |
3219 }); | 3416 }); |
3220 }); | 3417 }); |
3221 | 3418 |
3222 | |
3223 unittest.group("obj-schema-ExportVariantSetRequest", () { | 3419 unittest.group("obj-schema-ExportVariantSetRequest", () { |
3224 unittest.test("to-json--from-json", () { | 3420 unittest.test("to-json--from-json", () { |
3225 var o = buildExportVariantSetRequest(); | 3421 var o = buildExportVariantSetRequest(); |
3226 var od = new api.ExportVariantSetRequest.fromJson(o.toJson()); | 3422 var od = new api.ExportVariantSetRequest.fromJson(o.toJson()); |
3227 checkExportVariantSetRequest(od); | 3423 checkExportVariantSetRequest(od); |
3228 }); | 3424 }); |
3229 }); | 3425 }); |
3230 | 3426 |
3231 | |
3232 unittest.group("obj-schema-ExternalId", () { | 3427 unittest.group("obj-schema-ExternalId", () { |
3233 unittest.test("to-json--from-json", () { | 3428 unittest.test("to-json--from-json", () { |
3234 var o = buildExternalId(); | 3429 var o = buildExternalId(); |
3235 var od = new api.ExternalId.fromJson(o.toJson()); | 3430 var od = new api.ExternalId.fromJson(o.toJson()); |
3236 checkExternalId(od); | 3431 checkExternalId(od); |
3237 }); | 3432 }); |
3238 }); | 3433 }); |
3239 | 3434 |
3240 | |
3241 unittest.group("obj-schema-GetIamPolicyRequest", () { | 3435 unittest.group("obj-schema-GetIamPolicyRequest", () { |
3242 unittest.test("to-json--from-json", () { | 3436 unittest.test("to-json--from-json", () { |
3243 var o = buildGetIamPolicyRequest(); | 3437 var o = buildGetIamPolicyRequest(); |
3244 var od = new api.GetIamPolicyRequest.fromJson(o.toJson()); | 3438 var od = new api.GetIamPolicyRequest.fromJson(o.toJson()); |
3245 checkGetIamPolicyRequest(od); | 3439 checkGetIamPolicyRequest(od); |
3246 }); | 3440 }); |
3247 }); | 3441 }); |
3248 | 3442 |
3249 | |
3250 unittest.group("obj-schema-ImportReadGroupSetsRequest", () { | 3443 unittest.group("obj-schema-ImportReadGroupSetsRequest", () { |
3251 unittest.test("to-json--from-json", () { | 3444 unittest.test("to-json--from-json", () { |
3252 var o = buildImportReadGroupSetsRequest(); | 3445 var o = buildImportReadGroupSetsRequest(); |
3253 var od = new api.ImportReadGroupSetsRequest.fromJson(o.toJson()); | 3446 var od = new api.ImportReadGroupSetsRequest.fromJson(o.toJson()); |
3254 checkImportReadGroupSetsRequest(od); | 3447 checkImportReadGroupSetsRequest(od); |
3255 }); | 3448 }); |
3256 }); | 3449 }); |
3257 | 3450 |
3258 | |
3259 unittest.group("obj-schema-ImportReadGroupSetsResponse", () { | 3451 unittest.group("obj-schema-ImportReadGroupSetsResponse", () { |
3260 unittest.test("to-json--from-json", () { | 3452 unittest.test("to-json--from-json", () { |
3261 var o = buildImportReadGroupSetsResponse(); | 3453 var o = buildImportReadGroupSetsResponse(); |
3262 var od = new api.ImportReadGroupSetsResponse.fromJson(o.toJson()); | 3454 var od = new api.ImportReadGroupSetsResponse.fromJson(o.toJson()); |
3263 checkImportReadGroupSetsResponse(od); | 3455 checkImportReadGroupSetsResponse(od); |
3264 }); | 3456 }); |
3265 }); | 3457 }); |
3266 | 3458 |
3267 | |
3268 unittest.group("obj-schema-ImportVariantsRequest", () { | 3459 unittest.group("obj-schema-ImportVariantsRequest", () { |
3269 unittest.test("to-json--from-json", () { | 3460 unittest.test("to-json--from-json", () { |
3270 var o = buildImportVariantsRequest(); | 3461 var o = buildImportVariantsRequest(); |
3271 var od = new api.ImportVariantsRequest.fromJson(o.toJson()); | 3462 var od = new api.ImportVariantsRequest.fromJson(o.toJson()); |
3272 checkImportVariantsRequest(od); | 3463 checkImportVariantsRequest(od); |
3273 }); | 3464 }); |
3274 }); | 3465 }); |
3275 | 3466 |
3276 | |
3277 unittest.group("obj-schema-ImportVariantsResponse", () { | 3467 unittest.group("obj-schema-ImportVariantsResponse", () { |
3278 unittest.test("to-json--from-json", () { | 3468 unittest.test("to-json--from-json", () { |
3279 var o = buildImportVariantsResponse(); | 3469 var o = buildImportVariantsResponse(); |
3280 var od = new api.ImportVariantsResponse.fromJson(o.toJson()); | 3470 var od = new api.ImportVariantsResponse.fromJson(o.toJson()); |
3281 checkImportVariantsResponse(od); | 3471 checkImportVariantsResponse(od); |
3282 }); | 3472 }); |
3283 }); | 3473 }); |
3284 | 3474 |
3285 | |
3286 unittest.group("obj-schema-LinearAlignment", () { | 3475 unittest.group("obj-schema-LinearAlignment", () { |
3287 unittest.test("to-json--from-json", () { | 3476 unittest.test("to-json--from-json", () { |
3288 var o = buildLinearAlignment(); | 3477 var o = buildLinearAlignment(); |
3289 var od = new api.LinearAlignment.fromJson(o.toJson()); | 3478 var od = new api.LinearAlignment.fromJson(o.toJson()); |
3290 checkLinearAlignment(od); | 3479 checkLinearAlignment(od); |
3291 }); | 3480 }); |
3292 }); | 3481 }); |
3293 | 3482 |
3294 | |
3295 unittest.group("obj-schema-ListBasesResponse", () { | 3483 unittest.group("obj-schema-ListBasesResponse", () { |
3296 unittest.test("to-json--from-json", () { | 3484 unittest.test("to-json--from-json", () { |
3297 var o = buildListBasesResponse(); | 3485 var o = buildListBasesResponse(); |
3298 var od = new api.ListBasesResponse.fromJson(o.toJson()); | 3486 var od = new api.ListBasesResponse.fromJson(o.toJson()); |
3299 checkListBasesResponse(od); | 3487 checkListBasesResponse(od); |
3300 }); | 3488 }); |
3301 }); | 3489 }); |
3302 | 3490 |
3303 | |
3304 unittest.group("obj-schema-ListCoverageBucketsResponse", () { | 3491 unittest.group("obj-schema-ListCoverageBucketsResponse", () { |
3305 unittest.test("to-json--from-json", () { | 3492 unittest.test("to-json--from-json", () { |
3306 var o = buildListCoverageBucketsResponse(); | 3493 var o = buildListCoverageBucketsResponse(); |
3307 var od = new api.ListCoverageBucketsResponse.fromJson(o.toJson()); | 3494 var od = new api.ListCoverageBucketsResponse.fromJson(o.toJson()); |
3308 checkListCoverageBucketsResponse(od); | 3495 checkListCoverageBucketsResponse(od); |
3309 }); | 3496 }); |
3310 }); | 3497 }); |
3311 | 3498 |
3312 | |
3313 unittest.group("obj-schema-ListDatasetsResponse", () { | 3499 unittest.group("obj-schema-ListDatasetsResponse", () { |
3314 unittest.test("to-json--from-json", () { | 3500 unittest.test("to-json--from-json", () { |
3315 var o = buildListDatasetsResponse(); | 3501 var o = buildListDatasetsResponse(); |
3316 var od = new api.ListDatasetsResponse.fromJson(o.toJson()); | 3502 var od = new api.ListDatasetsResponse.fromJson(o.toJson()); |
3317 checkListDatasetsResponse(od); | 3503 checkListDatasetsResponse(od); |
3318 }); | 3504 }); |
3319 }); | 3505 }); |
3320 | 3506 |
3321 | |
3322 unittest.group("obj-schema-ListOperationsResponse", () { | 3507 unittest.group("obj-schema-ListOperationsResponse", () { |
3323 unittest.test("to-json--from-json", () { | 3508 unittest.test("to-json--from-json", () { |
3324 var o = buildListOperationsResponse(); | 3509 var o = buildListOperationsResponse(); |
3325 var od = new api.ListOperationsResponse.fromJson(o.toJson()); | 3510 var od = new api.ListOperationsResponse.fromJson(o.toJson()); |
3326 checkListOperationsResponse(od); | 3511 checkListOperationsResponse(od); |
3327 }); | 3512 }); |
3328 }); | 3513 }); |
3329 | 3514 |
3330 | |
3331 unittest.group("obj-schema-MergeVariantsRequest", () { | 3515 unittest.group("obj-schema-MergeVariantsRequest", () { |
3332 unittest.test("to-json--from-json", () { | 3516 unittest.test("to-json--from-json", () { |
3333 var o = buildMergeVariantsRequest(); | 3517 var o = buildMergeVariantsRequest(); |
3334 var od = new api.MergeVariantsRequest.fromJson(o.toJson()); | 3518 var od = new api.MergeVariantsRequest.fromJson(o.toJson()); |
3335 checkMergeVariantsRequest(od); | 3519 checkMergeVariantsRequest(od); |
3336 }); | 3520 }); |
3337 }); | 3521 }); |
3338 | 3522 |
3339 | |
3340 unittest.group("obj-schema-Operation", () { | 3523 unittest.group("obj-schema-Operation", () { |
3341 unittest.test("to-json--from-json", () { | 3524 unittest.test("to-json--from-json", () { |
3342 var o = buildOperation(); | 3525 var o = buildOperation(); |
3343 var od = new api.Operation.fromJson(o.toJson()); | 3526 var od = new api.Operation.fromJson(o.toJson()); |
3344 checkOperation(od); | 3527 checkOperation(od); |
3345 }); | 3528 }); |
3346 }); | 3529 }); |
3347 | 3530 |
3348 | |
3349 unittest.group("obj-schema-OperationEvent", () { | 3531 unittest.group("obj-schema-OperationEvent", () { |
3350 unittest.test("to-json--from-json", () { | 3532 unittest.test("to-json--from-json", () { |
3351 var o = buildOperationEvent(); | 3533 var o = buildOperationEvent(); |
3352 var od = new api.OperationEvent.fromJson(o.toJson()); | 3534 var od = new api.OperationEvent.fromJson(o.toJson()); |
3353 checkOperationEvent(od); | 3535 checkOperationEvent(od); |
3354 }); | 3536 }); |
3355 }); | 3537 }); |
3356 | 3538 |
3357 | |
3358 unittest.group("obj-schema-OperationMetadata", () { | 3539 unittest.group("obj-schema-OperationMetadata", () { |
3359 unittest.test("to-json--from-json", () { | 3540 unittest.test("to-json--from-json", () { |
3360 var o = buildOperationMetadata(); | 3541 var o = buildOperationMetadata(); |
3361 var od = new api.OperationMetadata.fromJson(o.toJson()); | 3542 var od = new api.OperationMetadata.fromJson(o.toJson()); |
3362 checkOperationMetadata(od); | 3543 checkOperationMetadata(od); |
3363 }); | 3544 }); |
3364 }); | 3545 }); |
3365 | 3546 |
3366 | |
3367 unittest.group("obj-schema-Policy", () { | 3547 unittest.group("obj-schema-Policy", () { |
3368 unittest.test("to-json--from-json", () { | 3548 unittest.test("to-json--from-json", () { |
3369 var o = buildPolicy(); | 3549 var o = buildPolicy(); |
3370 var od = new api.Policy.fromJson(o.toJson()); | 3550 var od = new api.Policy.fromJson(o.toJson()); |
3371 checkPolicy(od); | 3551 checkPolicy(od); |
3372 }); | 3552 }); |
3373 }); | 3553 }); |
3374 | 3554 |
3375 | |
3376 unittest.group("obj-schema-Position", () { | 3555 unittest.group("obj-schema-Position", () { |
3377 unittest.test("to-json--from-json", () { | 3556 unittest.test("to-json--from-json", () { |
3378 var o = buildPosition(); | 3557 var o = buildPosition(); |
3379 var od = new api.Position.fromJson(o.toJson()); | 3558 var od = new api.Position.fromJson(o.toJson()); |
3380 checkPosition(od); | 3559 checkPosition(od); |
3381 }); | 3560 }); |
3382 }); | 3561 }); |
3383 | 3562 |
3384 | |
3385 unittest.group("obj-schema-Program", () { | 3563 unittest.group("obj-schema-Program", () { |
3386 unittest.test("to-json--from-json", () { | 3564 unittest.test("to-json--from-json", () { |
3387 var o = buildProgram(); | 3565 var o = buildProgram(); |
3388 var od = new api.Program.fromJson(o.toJson()); | 3566 var od = new api.Program.fromJson(o.toJson()); |
3389 checkProgram(od); | 3567 checkProgram(od); |
3390 }); | 3568 }); |
3391 }); | 3569 }); |
3392 | 3570 |
3393 | |
3394 unittest.group("obj-schema-Range", () { | 3571 unittest.group("obj-schema-Range", () { |
3395 unittest.test("to-json--from-json", () { | 3572 unittest.test("to-json--from-json", () { |
3396 var o = buildRange(); | 3573 var o = buildRange(); |
3397 var od = new api.Range.fromJson(o.toJson()); | 3574 var od = new api.Range.fromJson(o.toJson()); |
3398 checkRange(od); | 3575 checkRange(od); |
3399 }); | 3576 }); |
3400 }); | 3577 }); |
3401 | 3578 |
3402 | |
3403 unittest.group("obj-schema-Read", () { | 3579 unittest.group("obj-schema-Read", () { |
3404 unittest.test("to-json--from-json", () { | 3580 unittest.test("to-json--from-json", () { |
3405 var o = buildRead(); | 3581 var o = buildRead(); |
3406 var od = new api.Read.fromJson(o.toJson()); | 3582 var od = new api.Read.fromJson(o.toJson()); |
3407 checkRead(od); | 3583 checkRead(od); |
3408 }); | 3584 }); |
3409 }); | 3585 }); |
3410 | 3586 |
3411 | |
3412 unittest.group("obj-schema-ReadGroup", () { | 3587 unittest.group("obj-schema-ReadGroup", () { |
3413 unittest.test("to-json--from-json", () { | 3588 unittest.test("to-json--from-json", () { |
3414 var o = buildReadGroup(); | 3589 var o = buildReadGroup(); |
3415 var od = new api.ReadGroup.fromJson(o.toJson()); | 3590 var od = new api.ReadGroup.fromJson(o.toJson()); |
3416 checkReadGroup(od); | 3591 checkReadGroup(od); |
3417 }); | 3592 }); |
3418 }); | 3593 }); |
3419 | 3594 |
3420 | |
3421 unittest.group("obj-schema-ReadGroupSet", () { | 3595 unittest.group("obj-schema-ReadGroupSet", () { |
3422 unittest.test("to-json--from-json", () { | 3596 unittest.test("to-json--from-json", () { |
3423 var o = buildReadGroupSet(); | 3597 var o = buildReadGroupSet(); |
3424 var od = new api.ReadGroupSet.fromJson(o.toJson()); | 3598 var od = new api.ReadGroupSet.fromJson(o.toJson()); |
3425 checkReadGroupSet(od); | 3599 checkReadGroupSet(od); |
3426 }); | 3600 }); |
3427 }); | 3601 }); |
3428 | 3602 |
3429 | |
3430 unittest.group("obj-schema-Reference", () { | 3603 unittest.group("obj-schema-Reference", () { |
3431 unittest.test("to-json--from-json", () { | 3604 unittest.test("to-json--from-json", () { |
3432 var o = buildReference(); | 3605 var o = buildReference(); |
3433 var od = new api.Reference.fromJson(o.toJson()); | 3606 var od = new api.Reference.fromJson(o.toJson()); |
3434 checkReference(od); | 3607 checkReference(od); |
3435 }); | 3608 }); |
3436 }); | 3609 }); |
3437 | 3610 |
3438 | |
3439 unittest.group("obj-schema-ReferenceBound", () { | 3611 unittest.group("obj-schema-ReferenceBound", () { |
3440 unittest.test("to-json--from-json", () { | 3612 unittest.test("to-json--from-json", () { |
3441 var o = buildReferenceBound(); | 3613 var o = buildReferenceBound(); |
3442 var od = new api.ReferenceBound.fromJson(o.toJson()); | 3614 var od = new api.ReferenceBound.fromJson(o.toJson()); |
3443 checkReferenceBound(od); | 3615 checkReferenceBound(od); |
3444 }); | 3616 }); |
3445 }); | 3617 }); |
3446 | 3618 |
3447 | |
3448 unittest.group("obj-schema-ReferenceSet", () { | 3619 unittest.group("obj-schema-ReferenceSet", () { |
3449 unittest.test("to-json--from-json", () { | 3620 unittest.test("to-json--from-json", () { |
3450 var o = buildReferenceSet(); | 3621 var o = buildReferenceSet(); |
3451 var od = new api.ReferenceSet.fromJson(o.toJson()); | 3622 var od = new api.ReferenceSet.fromJson(o.toJson()); |
3452 checkReferenceSet(od); | 3623 checkReferenceSet(od); |
3453 }); | 3624 }); |
3454 }); | 3625 }); |
3455 | 3626 |
3456 | |
3457 unittest.group("obj-schema-RuntimeMetadata", () { | 3627 unittest.group("obj-schema-RuntimeMetadata", () { |
3458 unittest.test("to-json--from-json", () { | 3628 unittest.test("to-json--from-json", () { |
3459 var o = buildRuntimeMetadata(); | 3629 var o = buildRuntimeMetadata(); |
3460 var od = new api.RuntimeMetadata.fromJson(o.toJson()); | 3630 var od = new api.RuntimeMetadata.fromJson(o.toJson()); |
3461 checkRuntimeMetadata(od); | 3631 checkRuntimeMetadata(od); |
3462 }); | 3632 }); |
3463 }); | 3633 }); |
3464 | 3634 |
3465 | |
3466 unittest.group("obj-schema-SearchAnnotationSetsRequest", () { | 3635 unittest.group("obj-schema-SearchAnnotationSetsRequest", () { |
3467 unittest.test("to-json--from-json", () { | 3636 unittest.test("to-json--from-json", () { |
3468 var o = buildSearchAnnotationSetsRequest(); | 3637 var o = buildSearchAnnotationSetsRequest(); |
3469 var od = new api.SearchAnnotationSetsRequest.fromJson(o.toJson()); | 3638 var od = new api.SearchAnnotationSetsRequest.fromJson(o.toJson()); |
3470 checkSearchAnnotationSetsRequest(od); | 3639 checkSearchAnnotationSetsRequest(od); |
3471 }); | 3640 }); |
3472 }); | 3641 }); |
3473 | 3642 |
3474 | |
3475 unittest.group("obj-schema-SearchAnnotationSetsResponse", () { | 3643 unittest.group("obj-schema-SearchAnnotationSetsResponse", () { |
3476 unittest.test("to-json--from-json", () { | 3644 unittest.test("to-json--from-json", () { |
3477 var o = buildSearchAnnotationSetsResponse(); | 3645 var o = buildSearchAnnotationSetsResponse(); |
3478 var od = new api.SearchAnnotationSetsResponse.fromJson(o.toJson()); | 3646 var od = new api.SearchAnnotationSetsResponse.fromJson(o.toJson()); |
3479 checkSearchAnnotationSetsResponse(od); | 3647 checkSearchAnnotationSetsResponse(od); |
3480 }); | 3648 }); |
3481 }); | 3649 }); |
3482 | 3650 |
3483 | |
3484 unittest.group("obj-schema-SearchAnnotationsRequest", () { | 3651 unittest.group("obj-schema-SearchAnnotationsRequest", () { |
3485 unittest.test("to-json--from-json", () { | 3652 unittest.test("to-json--from-json", () { |
3486 var o = buildSearchAnnotationsRequest(); | 3653 var o = buildSearchAnnotationsRequest(); |
3487 var od = new api.SearchAnnotationsRequest.fromJson(o.toJson()); | 3654 var od = new api.SearchAnnotationsRequest.fromJson(o.toJson()); |
3488 checkSearchAnnotationsRequest(od); | 3655 checkSearchAnnotationsRequest(od); |
3489 }); | 3656 }); |
3490 }); | 3657 }); |
3491 | 3658 |
3492 | |
3493 unittest.group("obj-schema-SearchAnnotationsResponse", () { | 3659 unittest.group("obj-schema-SearchAnnotationsResponse", () { |
3494 unittest.test("to-json--from-json", () { | 3660 unittest.test("to-json--from-json", () { |
3495 var o = buildSearchAnnotationsResponse(); | 3661 var o = buildSearchAnnotationsResponse(); |
3496 var od = new api.SearchAnnotationsResponse.fromJson(o.toJson()); | 3662 var od = new api.SearchAnnotationsResponse.fromJson(o.toJson()); |
3497 checkSearchAnnotationsResponse(od); | 3663 checkSearchAnnotationsResponse(od); |
3498 }); | 3664 }); |
3499 }); | 3665 }); |
3500 | 3666 |
3501 | |
3502 unittest.group("obj-schema-SearchCallSetsRequest", () { | 3667 unittest.group("obj-schema-SearchCallSetsRequest", () { |
3503 unittest.test("to-json--from-json", () { | 3668 unittest.test("to-json--from-json", () { |
3504 var o = buildSearchCallSetsRequest(); | 3669 var o = buildSearchCallSetsRequest(); |
3505 var od = new api.SearchCallSetsRequest.fromJson(o.toJson()); | 3670 var od = new api.SearchCallSetsRequest.fromJson(o.toJson()); |
3506 checkSearchCallSetsRequest(od); | 3671 checkSearchCallSetsRequest(od); |
3507 }); | 3672 }); |
3508 }); | 3673 }); |
3509 | 3674 |
3510 | |
3511 unittest.group("obj-schema-SearchCallSetsResponse", () { | 3675 unittest.group("obj-schema-SearchCallSetsResponse", () { |
3512 unittest.test("to-json--from-json", () { | 3676 unittest.test("to-json--from-json", () { |
3513 var o = buildSearchCallSetsResponse(); | 3677 var o = buildSearchCallSetsResponse(); |
3514 var od = new api.SearchCallSetsResponse.fromJson(o.toJson()); | 3678 var od = new api.SearchCallSetsResponse.fromJson(o.toJson()); |
3515 checkSearchCallSetsResponse(od); | 3679 checkSearchCallSetsResponse(od); |
3516 }); | 3680 }); |
3517 }); | 3681 }); |
3518 | 3682 |
3519 | |
3520 unittest.group("obj-schema-SearchReadGroupSetsRequest", () { | 3683 unittest.group("obj-schema-SearchReadGroupSetsRequest", () { |
3521 unittest.test("to-json--from-json", () { | 3684 unittest.test("to-json--from-json", () { |
3522 var o = buildSearchReadGroupSetsRequest(); | 3685 var o = buildSearchReadGroupSetsRequest(); |
3523 var od = new api.SearchReadGroupSetsRequest.fromJson(o.toJson()); | 3686 var od = new api.SearchReadGroupSetsRequest.fromJson(o.toJson()); |
3524 checkSearchReadGroupSetsRequest(od); | 3687 checkSearchReadGroupSetsRequest(od); |
3525 }); | 3688 }); |
3526 }); | 3689 }); |
3527 | 3690 |
3528 | |
3529 unittest.group("obj-schema-SearchReadGroupSetsResponse", () { | 3691 unittest.group("obj-schema-SearchReadGroupSetsResponse", () { |
3530 unittest.test("to-json--from-json", () { | 3692 unittest.test("to-json--from-json", () { |
3531 var o = buildSearchReadGroupSetsResponse(); | 3693 var o = buildSearchReadGroupSetsResponse(); |
3532 var od = new api.SearchReadGroupSetsResponse.fromJson(o.toJson()); | 3694 var od = new api.SearchReadGroupSetsResponse.fromJson(o.toJson()); |
3533 checkSearchReadGroupSetsResponse(od); | 3695 checkSearchReadGroupSetsResponse(od); |
3534 }); | 3696 }); |
3535 }); | 3697 }); |
3536 | 3698 |
3537 | |
3538 unittest.group("obj-schema-SearchReadsRequest", () { | 3699 unittest.group("obj-schema-SearchReadsRequest", () { |
3539 unittest.test("to-json--from-json", () { | 3700 unittest.test("to-json--from-json", () { |
3540 var o = buildSearchReadsRequest(); | 3701 var o = buildSearchReadsRequest(); |
3541 var od = new api.SearchReadsRequest.fromJson(o.toJson()); | 3702 var od = new api.SearchReadsRequest.fromJson(o.toJson()); |
3542 checkSearchReadsRequest(od); | 3703 checkSearchReadsRequest(od); |
3543 }); | 3704 }); |
3544 }); | 3705 }); |
3545 | 3706 |
3546 | |
3547 unittest.group("obj-schema-SearchReadsResponse", () { | 3707 unittest.group("obj-schema-SearchReadsResponse", () { |
3548 unittest.test("to-json--from-json", () { | 3708 unittest.test("to-json--from-json", () { |
3549 var o = buildSearchReadsResponse(); | 3709 var o = buildSearchReadsResponse(); |
3550 var od = new api.SearchReadsResponse.fromJson(o.toJson()); | 3710 var od = new api.SearchReadsResponse.fromJson(o.toJson()); |
3551 checkSearchReadsResponse(od); | 3711 checkSearchReadsResponse(od); |
3552 }); | 3712 }); |
3553 }); | 3713 }); |
3554 | 3714 |
3555 | |
3556 unittest.group("obj-schema-SearchReferenceSetsRequest", () { | 3715 unittest.group("obj-schema-SearchReferenceSetsRequest", () { |
3557 unittest.test("to-json--from-json", () { | 3716 unittest.test("to-json--from-json", () { |
3558 var o = buildSearchReferenceSetsRequest(); | 3717 var o = buildSearchReferenceSetsRequest(); |
3559 var od = new api.SearchReferenceSetsRequest.fromJson(o.toJson()); | 3718 var od = new api.SearchReferenceSetsRequest.fromJson(o.toJson()); |
3560 checkSearchReferenceSetsRequest(od); | 3719 checkSearchReferenceSetsRequest(od); |
3561 }); | 3720 }); |
3562 }); | 3721 }); |
3563 | 3722 |
3564 | |
3565 unittest.group("obj-schema-SearchReferenceSetsResponse", () { | 3723 unittest.group("obj-schema-SearchReferenceSetsResponse", () { |
3566 unittest.test("to-json--from-json", () { | 3724 unittest.test("to-json--from-json", () { |
3567 var o = buildSearchReferenceSetsResponse(); | 3725 var o = buildSearchReferenceSetsResponse(); |
3568 var od = new api.SearchReferenceSetsResponse.fromJson(o.toJson()); | 3726 var od = new api.SearchReferenceSetsResponse.fromJson(o.toJson()); |
3569 checkSearchReferenceSetsResponse(od); | 3727 checkSearchReferenceSetsResponse(od); |
3570 }); | 3728 }); |
3571 }); | 3729 }); |
3572 | 3730 |
3573 | |
3574 unittest.group("obj-schema-SearchReferencesRequest", () { | 3731 unittest.group("obj-schema-SearchReferencesRequest", () { |
3575 unittest.test("to-json--from-json", () { | 3732 unittest.test("to-json--from-json", () { |
3576 var o = buildSearchReferencesRequest(); | 3733 var o = buildSearchReferencesRequest(); |
3577 var od = new api.SearchReferencesRequest.fromJson(o.toJson()); | 3734 var od = new api.SearchReferencesRequest.fromJson(o.toJson()); |
3578 checkSearchReferencesRequest(od); | 3735 checkSearchReferencesRequest(od); |
3579 }); | 3736 }); |
3580 }); | 3737 }); |
3581 | 3738 |
3582 | |
3583 unittest.group("obj-schema-SearchReferencesResponse", () { | 3739 unittest.group("obj-schema-SearchReferencesResponse", () { |
3584 unittest.test("to-json--from-json", () { | 3740 unittest.test("to-json--from-json", () { |
3585 var o = buildSearchReferencesResponse(); | 3741 var o = buildSearchReferencesResponse(); |
3586 var od = new api.SearchReferencesResponse.fromJson(o.toJson()); | 3742 var od = new api.SearchReferencesResponse.fromJson(o.toJson()); |
3587 checkSearchReferencesResponse(od); | 3743 checkSearchReferencesResponse(od); |
3588 }); | 3744 }); |
3589 }); | 3745 }); |
3590 | 3746 |
3591 | |
3592 unittest.group("obj-schema-SearchVariantSetsRequest", () { | 3747 unittest.group("obj-schema-SearchVariantSetsRequest", () { |
3593 unittest.test("to-json--from-json", () { | 3748 unittest.test("to-json--from-json", () { |
3594 var o = buildSearchVariantSetsRequest(); | 3749 var o = buildSearchVariantSetsRequest(); |
3595 var od = new api.SearchVariantSetsRequest.fromJson(o.toJson()); | 3750 var od = new api.SearchVariantSetsRequest.fromJson(o.toJson()); |
3596 checkSearchVariantSetsRequest(od); | 3751 checkSearchVariantSetsRequest(od); |
3597 }); | 3752 }); |
3598 }); | 3753 }); |
3599 | 3754 |
3600 | |
3601 unittest.group("obj-schema-SearchVariantSetsResponse", () { | 3755 unittest.group("obj-schema-SearchVariantSetsResponse", () { |
3602 unittest.test("to-json--from-json", () { | 3756 unittest.test("to-json--from-json", () { |
3603 var o = buildSearchVariantSetsResponse(); | 3757 var o = buildSearchVariantSetsResponse(); |
3604 var od = new api.SearchVariantSetsResponse.fromJson(o.toJson()); | 3758 var od = new api.SearchVariantSetsResponse.fromJson(o.toJson()); |
3605 checkSearchVariantSetsResponse(od); | 3759 checkSearchVariantSetsResponse(od); |
3606 }); | 3760 }); |
3607 }); | 3761 }); |
3608 | 3762 |
3609 | |
3610 unittest.group("obj-schema-SearchVariantsRequest", () { | 3763 unittest.group("obj-schema-SearchVariantsRequest", () { |
3611 unittest.test("to-json--from-json", () { | 3764 unittest.test("to-json--from-json", () { |
3612 var o = buildSearchVariantsRequest(); | 3765 var o = buildSearchVariantsRequest(); |
3613 var od = new api.SearchVariantsRequest.fromJson(o.toJson()); | 3766 var od = new api.SearchVariantsRequest.fromJson(o.toJson()); |
3614 checkSearchVariantsRequest(od); | 3767 checkSearchVariantsRequest(od); |
3615 }); | 3768 }); |
3616 }); | 3769 }); |
3617 | 3770 |
3618 | |
3619 unittest.group("obj-schema-SearchVariantsResponse", () { | 3771 unittest.group("obj-schema-SearchVariantsResponse", () { |
3620 unittest.test("to-json--from-json", () { | 3772 unittest.test("to-json--from-json", () { |
3621 var o = buildSearchVariantsResponse(); | 3773 var o = buildSearchVariantsResponse(); |
3622 var od = new api.SearchVariantsResponse.fromJson(o.toJson()); | 3774 var od = new api.SearchVariantsResponse.fromJson(o.toJson()); |
3623 checkSearchVariantsResponse(od); | 3775 checkSearchVariantsResponse(od); |
3624 }); | 3776 }); |
3625 }); | 3777 }); |
3626 | 3778 |
3627 | |
3628 unittest.group("obj-schema-SetIamPolicyRequest", () { | 3779 unittest.group("obj-schema-SetIamPolicyRequest", () { |
3629 unittest.test("to-json--from-json", () { | 3780 unittest.test("to-json--from-json", () { |
3630 var o = buildSetIamPolicyRequest(); | 3781 var o = buildSetIamPolicyRequest(); |
3631 var od = new api.SetIamPolicyRequest.fromJson(o.toJson()); | 3782 var od = new api.SetIamPolicyRequest.fromJson(o.toJson()); |
3632 checkSetIamPolicyRequest(od); | 3783 checkSetIamPolicyRequest(od); |
3633 }); | 3784 }); |
3634 }); | 3785 }); |
3635 | 3786 |
3636 | |
3637 unittest.group("obj-schema-Status", () { | 3787 unittest.group("obj-schema-Status", () { |
3638 unittest.test("to-json--from-json", () { | 3788 unittest.test("to-json--from-json", () { |
3639 var o = buildStatus(); | 3789 var o = buildStatus(); |
3640 var od = new api.Status.fromJson(o.toJson()); | 3790 var od = new api.Status.fromJson(o.toJson()); |
3641 checkStatus(od); | 3791 checkStatus(od); |
3642 }); | 3792 }); |
3643 }); | 3793 }); |
3644 | 3794 |
3645 | |
3646 unittest.group("obj-schema-TestIamPermissionsRequest", () { | 3795 unittest.group("obj-schema-TestIamPermissionsRequest", () { |
3647 unittest.test("to-json--from-json", () { | 3796 unittest.test("to-json--from-json", () { |
3648 var o = buildTestIamPermissionsRequest(); | 3797 var o = buildTestIamPermissionsRequest(); |
3649 var od = new api.TestIamPermissionsRequest.fromJson(o.toJson()); | 3798 var od = new api.TestIamPermissionsRequest.fromJson(o.toJson()); |
3650 checkTestIamPermissionsRequest(od); | 3799 checkTestIamPermissionsRequest(od); |
3651 }); | 3800 }); |
3652 }); | 3801 }); |
3653 | 3802 |
3654 | |
3655 unittest.group("obj-schema-TestIamPermissionsResponse", () { | 3803 unittest.group("obj-schema-TestIamPermissionsResponse", () { |
3656 unittest.test("to-json--from-json", () { | 3804 unittest.test("to-json--from-json", () { |
3657 var o = buildTestIamPermissionsResponse(); | 3805 var o = buildTestIamPermissionsResponse(); |
3658 var od = new api.TestIamPermissionsResponse.fromJson(o.toJson()); | 3806 var od = new api.TestIamPermissionsResponse.fromJson(o.toJson()); |
3659 checkTestIamPermissionsResponse(od); | 3807 checkTestIamPermissionsResponse(od); |
3660 }); | 3808 }); |
3661 }); | 3809 }); |
3662 | 3810 |
3663 | |
3664 unittest.group("obj-schema-Transcript", () { | 3811 unittest.group("obj-schema-Transcript", () { |
3665 unittest.test("to-json--from-json", () { | 3812 unittest.test("to-json--from-json", () { |
3666 var o = buildTranscript(); | 3813 var o = buildTranscript(); |
3667 var od = new api.Transcript.fromJson(o.toJson()); | 3814 var od = new api.Transcript.fromJson(o.toJson()); |
3668 checkTranscript(od); | 3815 checkTranscript(od); |
3669 }); | 3816 }); |
3670 }); | 3817 }); |
3671 | 3818 |
3672 | |
3673 unittest.group("obj-schema-UndeleteDatasetRequest", () { | 3819 unittest.group("obj-schema-UndeleteDatasetRequest", () { |
3674 unittest.test("to-json--from-json", () { | 3820 unittest.test("to-json--from-json", () { |
3675 var o = buildUndeleteDatasetRequest(); | 3821 var o = buildUndeleteDatasetRequest(); |
3676 var od = new api.UndeleteDatasetRequest.fromJson(o.toJson()); | 3822 var od = new api.UndeleteDatasetRequest.fromJson(o.toJson()); |
3677 checkUndeleteDatasetRequest(od); | 3823 checkUndeleteDatasetRequest(od); |
3678 }); | 3824 }); |
3679 }); | 3825 }); |
3680 | 3826 |
3681 | |
3682 unittest.group("obj-schema-Variant", () { | 3827 unittest.group("obj-schema-Variant", () { |
3683 unittest.test("to-json--from-json", () { | 3828 unittest.test("to-json--from-json", () { |
3684 var o = buildVariant(); | 3829 var o = buildVariant(); |
3685 var od = new api.Variant.fromJson(o.toJson()); | 3830 var od = new api.Variant.fromJson(o.toJson()); |
3686 checkVariant(od); | 3831 checkVariant(od); |
3687 }); | 3832 }); |
3688 }); | 3833 }); |
3689 | 3834 |
3690 | |
3691 unittest.group("obj-schema-VariantAnnotation", () { | 3835 unittest.group("obj-schema-VariantAnnotation", () { |
3692 unittest.test("to-json--from-json", () { | 3836 unittest.test("to-json--from-json", () { |
3693 var o = buildVariantAnnotation(); | 3837 var o = buildVariantAnnotation(); |
3694 var od = new api.VariantAnnotation.fromJson(o.toJson()); | 3838 var od = new api.VariantAnnotation.fromJson(o.toJson()); |
3695 checkVariantAnnotation(od); | 3839 checkVariantAnnotation(od); |
3696 }); | 3840 }); |
3697 }); | 3841 }); |
3698 | 3842 |
3699 | |
3700 unittest.group("obj-schema-VariantCall", () { | 3843 unittest.group("obj-schema-VariantCall", () { |
3701 unittest.test("to-json--from-json", () { | 3844 unittest.test("to-json--from-json", () { |
3702 var o = buildVariantCall(); | 3845 var o = buildVariantCall(); |
3703 var od = new api.VariantCall.fromJson(o.toJson()); | 3846 var od = new api.VariantCall.fromJson(o.toJson()); |
3704 checkVariantCall(od); | 3847 checkVariantCall(od); |
3705 }); | 3848 }); |
3706 }); | 3849 }); |
3707 | 3850 |
3708 | |
3709 unittest.group("obj-schema-VariantSet", () { | 3851 unittest.group("obj-schema-VariantSet", () { |
3710 unittest.test("to-json--from-json", () { | 3852 unittest.test("to-json--from-json", () { |
3711 var o = buildVariantSet(); | 3853 var o = buildVariantSet(); |
3712 var od = new api.VariantSet.fromJson(o.toJson()); | 3854 var od = new api.VariantSet.fromJson(o.toJson()); |
3713 checkVariantSet(od); | 3855 checkVariantSet(od); |
3714 }); | 3856 }); |
3715 }); | 3857 }); |
3716 | 3858 |
3717 | |
3718 unittest.group("obj-schema-VariantSetMetadata", () { | 3859 unittest.group("obj-schema-VariantSetMetadata", () { |
3719 unittest.test("to-json--from-json", () { | 3860 unittest.test("to-json--from-json", () { |
3720 var o = buildVariantSetMetadata(); | 3861 var o = buildVariantSetMetadata(); |
3721 var od = new api.VariantSetMetadata.fromJson(o.toJson()); | 3862 var od = new api.VariantSetMetadata.fromJson(o.toJson()); |
3722 checkVariantSetMetadata(od); | 3863 checkVariantSetMetadata(od); |
3723 }); | 3864 }); |
3724 }); | 3865 }); |
3725 | 3866 |
3726 | |
3727 unittest.group("resource-AnnotationsResourceApi", () { | 3867 unittest.group("resource-AnnotationsResourceApi", () { |
3728 unittest.test("method--batchCreate", () { | 3868 unittest.test("method--batchCreate", () { |
3729 | |
3730 var mock = new HttpServerMock(); | 3869 var mock = new HttpServerMock(); |
3731 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; | 3870 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; |
3732 var arg_request = buildBatchCreateAnnotationsRequest(); | 3871 var arg_request = buildBatchCreateAnnotationsRequest(); |
3733 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 3872 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3734 var obj = new api.BatchCreateAnnotationsRequest.fromJson(json); | 3873 var obj = new api.BatchCreateAnnotationsRequest.fromJson(json); |
3735 checkBatchCreateAnnotationsRequest(obj); | 3874 checkBatchCreateAnnotationsRequest(obj); |
3736 | 3875 |
3737 var path = (req.url).path; | 3876 var path = (req.url).path; |
3738 var pathOffset = 0; | 3877 var pathOffset = 0; |
3739 var index; | 3878 var index; |
3740 var subPart; | 3879 var subPart; |
3741 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3880 unittest.expect( |
| 3881 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
3742 pathOffset += 1; | 3882 pathOffset += 1; |
3743 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq
uals("v1/annotations:batchCreate")); | 3883 unittest.expect(path.substring(pathOffset, pathOffset + 26), |
| 3884 unittest.equals("v1/annotations:batchCreate")); |
3744 pathOffset += 26; | 3885 pathOffset += 26; |
3745 | 3886 |
3746 var query = (req.url).query; | 3887 var query = (req.url).query; |
3747 var queryOffset = 0; | 3888 var queryOffset = 0; |
3748 var queryMap = {}; | 3889 var queryMap = {}; |
3749 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3890 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
3750 parseBool(n) { | 3891 parseBool(n) { |
3751 if (n == "true") return true; | 3892 if (n == "true") return true; |
3752 if (n == "false") return false; | 3893 if (n == "false") return false; |
3753 if (n == null) return null; | 3894 if (n == null) return null; |
3754 throw new core.ArgumentError("Invalid boolean: $n"); | 3895 throw new core.ArgumentError("Invalid boolean: $n"); |
3755 } | 3896 } |
| 3897 |
3756 if (query.length > 0) { | 3898 if (query.length > 0) { |
3757 for (var part in query.split("&")) { | 3899 for (var part in query.split("&")) { |
3758 var keyvalue = part.split("="); | 3900 var keyvalue = part.split("="); |
3759 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3901 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 3902 core.Uri.decodeQueryComponent(keyvalue[1])); |
3760 } | 3903 } |
3761 } | 3904 } |
3762 | 3905 |
3763 | |
3764 var h = { | 3906 var h = { |
3765 "content-type" : "application/json; charset=utf-8", | 3907 "content-type": "application/json; charset=utf-8", |
3766 }; | 3908 }; |
3767 var resp = convert.JSON.encode(buildBatchCreateAnnotationsResponse()); | 3909 var resp = convert.JSON.encode(buildBatchCreateAnnotationsResponse()); |
3768 return new async.Future.value(stringResponse(200, h, resp)); | 3910 return new async.Future.value(stringResponse(200, h, resp)); |
3769 }), true); | 3911 }), true); |
3770 res.batchCreate(arg_request).then(unittest.expectAsync1(((api.BatchCreateA
nnotationsResponse response) { | 3912 res.batchCreate(arg_request).then( |
| 3913 unittest.expectAsync1(((api.BatchCreateAnnotationsResponse response) { |
3771 checkBatchCreateAnnotationsResponse(response); | 3914 checkBatchCreateAnnotationsResponse(response); |
3772 }))); | 3915 }))); |
3773 }); | 3916 }); |
3774 | 3917 |
3775 unittest.test("method--create", () { | 3918 unittest.test("method--create", () { |
3776 | |
3777 var mock = new HttpServerMock(); | 3919 var mock = new HttpServerMock(); |
3778 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; | 3920 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; |
3779 var arg_request = buildAnnotation(); | 3921 var arg_request = buildAnnotation(); |
3780 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 3922 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3781 var obj = new api.Annotation.fromJson(json); | 3923 var obj = new api.Annotation.fromJson(json); |
3782 checkAnnotation(obj); | 3924 checkAnnotation(obj); |
3783 | 3925 |
3784 var path = (req.url).path; | 3926 var path = (req.url).path; |
3785 var pathOffset = 0; | 3927 var pathOffset = 0; |
3786 var index; | 3928 var index; |
3787 var subPart; | 3929 var subPart; |
3788 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3930 unittest.expect( |
| 3931 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
3789 pathOffset += 1; | 3932 pathOffset += 1; |
3790 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1/annotations")); | 3933 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 3934 unittest.equals("v1/annotations")); |
3791 pathOffset += 14; | 3935 pathOffset += 14; |
3792 | 3936 |
3793 var query = (req.url).query; | 3937 var query = (req.url).query; |
3794 var queryOffset = 0; | 3938 var queryOffset = 0; |
3795 var queryMap = {}; | 3939 var queryMap = {}; |
3796 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3940 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
3797 parseBool(n) { | 3941 parseBool(n) { |
3798 if (n == "true") return true; | 3942 if (n == "true") return true; |
3799 if (n == "false") return false; | 3943 if (n == "false") return false; |
3800 if (n == null) return null; | 3944 if (n == null) return null; |
3801 throw new core.ArgumentError("Invalid boolean: $n"); | 3945 throw new core.ArgumentError("Invalid boolean: $n"); |
3802 } | 3946 } |
| 3947 |
3803 if (query.length > 0) { | 3948 if (query.length > 0) { |
3804 for (var part in query.split("&")) { | 3949 for (var part in query.split("&")) { |
3805 var keyvalue = part.split("="); | 3950 var keyvalue = part.split("="); |
3806 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 3951 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 3952 core.Uri.decodeQueryComponent(keyvalue[1])); |
3807 } | 3953 } |
3808 } | 3954 } |
3809 | 3955 |
3810 | |
3811 var h = { | 3956 var h = { |
3812 "content-type" : "application/json; charset=utf-8", | 3957 "content-type": "application/json; charset=utf-8", |
3813 }; | 3958 }; |
3814 var resp = convert.JSON.encode(buildAnnotation()); | 3959 var resp = convert.JSON.encode(buildAnnotation()); |
3815 return new async.Future.value(stringResponse(200, h, resp)); | 3960 return new async.Future.value(stringResponse(200, h, resp)); |
3816 }), true); | 3961 }), true); |
3817 res.create(arg_request).then(unittest.expectAsync1(((api.Annotation respon
se) { | 3962 res |
| 3963 .create(arg_request) |
| 3964 .then(unittest.expectAsync1(((api.Annotation response) { |
3818 checkAnnotation(response); | 3965 checkAnnotation(response); |
3819 }))); | 3966 }))); |
3820 }); | 3967 }); |
3821 | 3968 |
3822 unittest.test("method--delete", () { | 3969 unittest.test("method--delete", () { |
3823 | |
3824 var mock = new HttpServerMock(); | 3970 var mock = new HttpServerMock(); |
3825 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; | 3971 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; |
3826 var arg_annotationId = "foo"; | 3972 var arg_annotationId = "foo"; |
3827 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 3973 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3828 var path = (req.url).path; | 3974 var path = (req.url).path; |
3829 var pathOffset = 0; | 3975 var pathOffset = 0; |
3830 var index; | 3976 var index; |
3831 var subPart; | 3977 var subPart; |
3832 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3978 unittest.expect( |
| 3979 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
3833 pathOffset += 1; | 3980 pathOffset += 1; |
3834 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("v1/annotations/")); | 3981 unittest.expect(path.substring(pathOffset, pathOffset + 15), |
| 3982 unittest.equals("v1/annotations/")); |
3835 pathOffset += 15; | 3983 pathOffset += 15; |
3836 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 3984 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
3837 pathOffset = path.length; | 3985 pathOffset = path.length; |
3838 unittest.expect(subPart, unittest.equals("$arg_annotationId")); | 3986 unittest.expect(subPart, unittest.equals("$arg_annotationId")); |
3839 | 3987 |
3840 var query = (req.url).query; | 3988 var query = (req.url).query; |
3841 var queryOffset = 0; | 3989 var queryOffset = 0; |
3842 var queryMap = {}; | 3990 var queryMap = {}; |
3843 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 3991 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
3844 parseBool(n) { | 3992 parseBool(n) { |
3845 if (n == "true") return true; | 3993 if (n == "true") return true; |
3846 if (n == "false") return false; | 3994 if (n == "false") return false; |
3847 if (n == null) return null; | 3995 if (n == null) return null; |
3848 throw new core.ArgumentError("Invalid boolean: $n"); | 3996 throw new core.ArgumentError("Invalid boolean: $n"); |
3849 } | 3997 } |
| 3998 |
3850 if (query.length > 0) { | 3999 if (query.length > 0) { |
3851 for (var part in query.split("&")) { | 4000 for (var part in query.split("&")) { |
3852 var keyvalue = part.split("="); | 4001 var keyvalue = part.split("="); |
3853 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4002 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 4003 core.Uri.decodeQueryComponent(keyvalue[1])); |
3854 } | 4004 } |
3855 } | 4005 } |
3856 | 4006 |
3857 | |
3858 var h = { | 4007 var h = { |
3859 "content-type" : "application/json; charset=utf-8", | 4008 "content-type": "application/json; charset=utf-8", |
3860 }; | 4009 }; |
3861 var resp = convert.JSON.encode(buildEmpty()); | 4010 var resp = convert.JSON.encode(buildEmpty()); |
3862 return new async.Future.value(stringResponse(200, h, resp)); | 4011 return new async.Future.value(stringResponse(200, h, resp)); |
3863 }), true); | 4012 }), true); |
3864 res.delete(arg_annotationId).then(unittest.expectAsync1(((api.Empty respon
se) { | 4013 res |
| 4014 .delete(arg_annotationId) |
| 4015 .then(unittest.expectAsync1(((api.Empty response) { |
3865 checkEmpty(response); | 4016 checkEmpty(response); |
3866 }))); | 4017 }))); |
3867 }); | 4018 }); |
3868 | 4019 |
3869 unittest.test("method--get", () { | 4020 unittest.test("method--get", () { |
3870 | |
3871 var mock = new HttpServerMock(); | 4021 var mock = new HttpServerMock(); |
3872 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; | 4022 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; |
3873 var arg_annotationId = "foo"; | 4023 var arg_annotationId = "foo"; |
3874 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4024 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3875 var path = (req.url).path; | 4025 var path = (req.url).path; |
3876 var pathOffset = 0; | 4026 var pathOffset = 0; |
3877 var index; | 4027 var index; |
3878 var subPart; | 4028 var subPart; |
3879 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4029 unittest.expect( |
| 4030 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
3880 pathOffset += 1; | 4031 pathOffset += 1; |
3881 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("v1/annotations/")); | 4032 unittest.expect(path.substring(pathOffset, pathOffset + 15), |
| 4033 unittest.equals("v1/annotations/")); |
3882 pathOffset += 15; | 4034 pathOffset += 15; |
3883 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4035 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
3884 pathOffset = path.length; | 4036 pathOffset = path.length; |
3885 unittest.expect(subPart, unittest.equals("$arg_annotationId")); | 4037 unittest.expect(subPart, unittest.equals("$arg_annotationId")); |
3886 | 4038 |
3887 var query = (req.url).query; | 4039 var query = (req.url).query; |
3888 var queryOffset = 0; | 4040 var queryOffset = 0; |
3889 var queryMap = {}; | 4041 var queryMap = {}; |
3890 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4042 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
3891 parseBool(n) { | 4043 parseBool(n) { |
3892 if (n == "true") return true; | 4044 if (n == "true") return true; |
3893 if (n == "false") return false; | 4045 if (n == "false") return false; |
3894 if (n == null) return null; | 4046 if (n == null) return null; |
3895 throw new core.ArgumentError("Invalid boolean: $n"); | 4047 throw new core.ArgumentError("Invalid boolean: $n"); |
3896 } | 4048 } |
| 4049 |
3897 if (query.length > 0) { | 4050 if (query.length > 0) { |
3898 for (var part in query.split("&")) { | 4051 for (var part in query.split("&")) { |
3899 var keyvalue = part.split("="); | 4052 var keyvalue = part.split("="); |
3900 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4053 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 4054 core.Uri.decodeQueryComponent(keyvalue[1])); |
3901 } | 4055 } |
3902 } | 4056 } |
3903 | 4057 |
3904 | |
3905 var h = { | 4058 var h = { |
3906 "content-type" : "application/json; charset=utf-8", | 4059 "content-type": "application/json; charset=utf-8", |
3907 }; | 4060 }; |
3908 var resp = convert.JSON.encode(buildAnnotation()); | 4061 var resp = convert.JSON.encode(buildAnnotation()); |
3909 return new async.Future.value(stringResponse(200, h, resp)); | 4062 return new async.Future.value(stringResponse(200, h, resp)); |
3910 }), true); | 4063 }), true); |
3911 res.get(arg_annotationId).then(unittest.expectAsync1(((api.Annotation resp
onse) { | 4064 res |
| 4065 .get(arg_annotationId) |
| 4066 .then(unittest.expectAsync1(((api.Annotation response) { |
3912 checkAnnotation(response); | 4067 checkAnnotation(response); |
3913 }))); | 4068 }))); |
3914 }); | 4069 }); |
3915 | 4070 |
3916 unittest.test("method--search", () { | 4071 unittest.test("method--search", () { |
3917 | |
3918 var mock = new HttpServerMock(); | 4072 var mock = new HttpServerMock(); |
3919 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; | 4073 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; |
3920 var arg_request = buildSearchAnnotationsRequest(); | 4074 var arg_request = buildSearchAnnotationsRequest(); |
3921 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4075 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3922 var obj = new api.SearchAnnotationsRequest.fromJson(json); | 4076 var obj = new api.SearchAnnotationsRequest.fromJson(json); |
3923 checkSearchAnnotationsRequest(obj); | 4077 checkSearchAnnotationsRequest(obj); |
3924 | 4078 |
3925 var path = (req.url).path; | 4079 var path = (req.url).path; |
3926 var pathOffset = 0; | 4080 var pathOffset = 0; |
3927 var index; | 4081 var index; |
3928 var subPart; | 4082 var subPart; |
3929 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4083 unittest.expect( |
| 4084 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
3930 pathOffset += 1; | 4085 pathOffset += 1; |
3931 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("v1/annotations/search")); | 4086 unittest.expect(path.substring(pathOffset, pathOffset + 21), |
| 4087 unittest.equals("v1/annotations/search")); |
3932 pathOffset += 21; | 4088 pathOffset += 21; |
3933 | 4089 |
3934 var query = (req.url).query; | 4090 var query = (req.url).query; |
3935 var queryOffset = 0; | 4091 var queryOffset = 0; |
3936 var queryMap = {}; | 4092 var queryMap = {}; |
3937 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4093 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
3938 parseBool(n) { | 4094 parseBool(n) { |
3939 if (n == "true") return true; | 4095 if (n == "true") return true; |
3940 if (n == "false") return false; | 4096 if (n == "false") return false; |
3941 if (n == null) return null; | 4097 if (n == null) return null; |
3942 throw new core.ArgumentError("Invalid boolean: $n"); | 4098 throw new core.ArgumentError("Invalid boolean: $n"); |
3943 } | 4099 } |
| 4100 |
3944 if (query.length > 0) { | 4101 if (query.length > 0) { |
3945 for (var part in query.split("&")) { | 4102 for (var part in query.split("&")) { |
3946 var keyvalue = part.split("="); | 4103 var keyvalue = part.split("="); |
3947 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4104 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 4105 core.Uri.decodeQueryComponent(keyvalue[1])); |
3948 } | 4106 } |
3949 } | 4107 } |
3950 | 4108 |
3951 | |
3952 var h = { | 4109 var h = { |
3953 "content-type" : "application/json; charset=utf-8", | 4110 "content-type": "application/json; charset=utf-8", |
3954 }; | 4111 }; |
3955 var resp = convert.JSON.encode(buildSearchAnnotationsResponse()); | 4112 var resp = convert.JSON.encode(buildSearchAnnotationsResponse()); |
3956 return new async.Future.value(stringResponse(200, h, resp)); | 4113 return new async.Future.value(stringResponse(200, h, resp)); |
3957 }), true); | 4114 }), true); |
3958 res.search(arg_request).then(unittest.expectAsync1(((api.SearchAnnotations
Response response) { | 4115 res.search(arg_request).then( |
| 4116 unittest.expectAsync1(((api.SearchAnnotationsResponse response) { |
3959 checkSearchAnnotationsResponse(response); | 4117 checkSearchAnnotationsResponse(response); |
3960 }))); | 4118 }))); |
3961 }); | 4119 }); |
3962 | 4120 |
3963 unittest.test("method--update", () { | 4121 unittest.test("method--update", () { |
3964 | |
3965 var mock = new HttpServerMock(); | 4122 var mock = new HttpServerMock(); |
3966 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; | 4123 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; |
3967 var arg_request = buildAnnotation(); | 4124 var arg_request = buildAnnotation(); |
3968 var arg_annotationId = "foo"; | 4125 var arg_annotationId = "foo"; |
3969 var arg_updateMask = "foo"; | 4126 var arg_updateMask = "foo"; |
3970 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4127 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
3971 var obj = new api.Annotation.fromJson(json); | 4128 var obj = new api.Annotation.fromJson(json); |
3972 checkAnnotation(obj); | 4129 checkAnnotation(obj); |
3973 | 4130 |
3974 var path = (req.url).path; | 4131 var path = (req.url).path; |
3975 var pathOffset = 0; | 4132 var pathOffset = 0; |
3976 var index; | 4133 var index; |
3977 var subPart; | 4134 var subPart; |
3978 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4135 unittest.expect( |
| 4136 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
3979 pathOffset += 1; | 4137 pathOffset += 1; |
3980 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("v1/annotations/")); | 4138 unittest.expect(path.substring(pathOffset, pathOffset + 15), |
| 4139 unittest.equals("v1/annotations/")); |
3981 pathOffset += 15; | 4140 pathOffset += 15; |
3982 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4141 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
3983 pathOffset = path.length; | 4142 pathOffset = path.length; |
3984 unittest.expect(subPart, unittest.equals("$arg_annotationId")); | 4143 unittest.expect(subPart, unittest.equals("$arg_annotationId")); |
3985 | 4144 |
3986 var query = (req.url).query; | 4145 var query = (req.url).query; |
3987 var queryOffset = 0; | 4146 var queryOffset = 0; |
3988 var queryMap = {}; | 4147 var queryMap = {}; |
3989 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4148 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
3990 parseBool(n) { | 4149 parseBool(n) { |
3991 if (n == "true") return true; | 4150 if (n == "true") return true; |
3992 if (n == "false") return false; | 4151 if (n == "false") return false; |
3993 if (n == null) return null; | 4152 if (n == null) return null; |
3994 throw new core.ArgumentError("Invalid boolean: $n"); | 4153 throw new core.ArgumentError("Invalid boolean: $n"); |
3995 } | 4154 } |
| 4155 |
3996 if (query.length > 0) { | 4156 if (query.length > 0) { |
3997 for (var part in query.split("&")) { | 4157 for (var part in query.split("&")) { |
3998 var keyvalue = part.split("="); | 4158 var keyvalue = part.split("="); |
3999 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4159 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 4160 core.Uri.decodeQueryComponent(keyvalue[1])); |
4000 } | 4161 } |
4001 } | 4162 } |
4002 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); | 4163 unittest.expect( |
4003 | 4164 queryMap["updateMask"].first, unittest.equals(arg_updateMask)); |
4004 | 4165 |
4005 var h = { | 4166 var h = { |
4006 "content-type" : "application/json; charset=utf-8", | 4167 "content-type": "application/json; charset=utf-8", |
4007 }; | 4168 }; |
4008 var resp = convert.JSON.encode(buildAnnotation()); | 4169 var resp = convert.JSON.encode(buildAnnotation()); |
4009 return new async.Future.value(stringResponse(200, h, resp)); | 4170 return new async.Future.value(stringResponse(200, h, resp)); |
4010 }), true); | 4171 }), true); |
4011 res.update(arg_request, arg_annotationId, updateMask: arg_updateMask).then
(unittest.expectAsync1(((api.Annotation response) { | 4172 res |
| 4173 .update(arg_request, arg_annotationId, updateMask: arg_updateMask) |
| 4174 .then(unittest.expectAsync1(((api.Annotation response) { |
4012 checkAnnotation(response); | 4175 checkAnnotation(response); |
4013 }))); | 4176 }))); |
4014 }); | 4177 }); |
4015 | |
4016 }); | 4178 }); |
4017 | 4179 |
4018 | |
4019 unittest.group("resource-AnnotationsetsResourceApi", () { | 4180 unittest.group("resource-AnnotationsetsResourceApi", () { |
4020 unittest.test("method--create", () { | 4181 unittest.test("method--create", () { |
4021 | |
4022 var mock = new HttpServerMock(); | 4182 var mock = new HttpServerMock(); |
4023 api.AnnotationsetsResourceApi res = new api.GenomicsApi(mock).annotationse
ts; | 4183 api.AnnotationsetsResourceApi res = |
| 4184 new api.GenomicsApi(mock).annotationsets; |
4024 var arg_request = buildAnnotationSet(); | 4185 var arg_request = buildAnnotationSet(); |
4025 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4186 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4026 var obj = new api.AnnotationSet.fromJson(json); | 4187 var obj = new api.AnnotationSet.fromJson(json); |
4027 checkAnnotationSet(obj); | 4188 checkAnnotationSet(obj); |
4028 | 4189 |
4029 var path = (req.url).path; | 4190 var path = (req.url).path; |
4030 var pathOffset = 0; | 4191 var pathOffset = 0; |
4031 var index; | 4192 var index; |
4032 var subPart; | 4193 var subPart; |
4033 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4194 unittest.expect( |
| 4195 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
4034 pathOffset += 1; | 4196 pathOffset += 1; |
4035 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/annotationsets")); | 4197 unittest.expect(path.substring(pathOffset, pathOffset + 17), |
| 4198 unittest.equals("v1/annotationsets")); |
4036 pathOffset += 17; | 4199 pathOffset += 17; |
4037 | 4200 |
4038 var query = (req.url).query; | 4201 var query = (req.url).query; |
4039 var queryOffset = 0; | 4202 var queryOffset = 0; |
4040 var queryMap = {}; | 4203 var queryMap = {}; |
4041 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4204 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4042 parseBool(n) { | 4205 parseBool(n) { |
4043 if (n == "true") return true; | 4206 if (n == "true") return true; |
4044 if (n == "false") return false; | 4207 if (n == "false") return false; |
4045 if (n == null) return null; | 4208 if (n == null) return null; |
4046 throw new core.ArgumentError("Invalid boolean: $n"); | 4209 throw new core.ArgumentError("Invalid boolean: $n"); |
4047 } | 4210 } |
| 4211 |
4048 if (query.length > 0) { | 4212 if (query.length > 0) { |
4049 for (var part in query.split("&")) { | 4213 for (var part in query.split("&")) { |
4050 var keyvalue = part.split("="); | 4214 var keyvalue = part.split("="); |
4051 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4215 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 4216 core.Uri.decodeQueryComponent(keyvalue[1])); |
4052 } | 4217 } |
4053 } | 4218 } |
4054 | 4219 |
4055 | |
4056 var h = { | 4220 var h = { |
4057 "content-type" : "application/json; charset=utf-8", | 4221 "content-type": "application/json; charset=utf-8", |
4058 }; | 4222 }; |
4059 var resp = convert.JSON.encode(buildAnnotationSet()); | 4223 var resp = convert.JSON.encode(buildAnnotationSet()); |
4060 return new async.Future.value(stringResponse(200, h, resp)); | 4224 return new async.Future.value(stringResponse(200, h, resp)); |
4061 }), true); | 4225 }), true); |
4062 res.create(arg_request).then(unittest.expectAsync1(((api.AnnotationSet res
ponse) { | 4226 res |
| 4227 .create(arg_request) |
| 4228 .then(unittest.expectAsync1(((api.AnnotationSet response) { |
4063 checkAnnotationSet(response); | 4229 checkAnnotationSet(response); |
4064 }))); | 4230 }))); |
4065 }); | 4231 }); |
4066 | 4232 |
4067 unittest.test("method--delete", () { | 4233 unittest.test("method--delete", () { |
4068 | |
4069 var mock = new HttpServerMock(); | 4234 var mock = new HttpServerMock(); |
4070 api.AnnotationsetsResourceApi res = new api.GenomicsApi(mock).annotationse
ts; | 4235 api.AnnotationsetsResourceApi res = |
| 4236 new api.GenomicsApi(mock).annotationsets; |
4071 var arg_annotationSetId = "foo"; | 4237 var arg_annotationSetId = "foo"; |
4072 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4238 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4073 var path = (req.url).path; | 4239 var path = (req.url).path; |
4074 var pathOffset = 0; | 4240 var pathOffset = 0; |
4075 var index; | 4241 var index; |
4076 var subPart; | 4242 var subPart; |
4077 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4243 unittest.expect( |
| 4244 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
4078 pathOffset += 1; | 4245 pathOffset += 1; |
4079 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("v1/annotationsets/")); | 4246 unittest.expect(path.substring(pathOffset, pathOffset + 18), |
| 4247 unittest.equals("v1/annotationsets/")); |
4080 pathOffset += 18; | 4248 pathOffset += 18; |
4081 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4249 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
4082 pathOffset = path.length; | 4250 pathOffset = path.length; |
4083 unittest.expect(subPart, unittest.equals("$arg_annotationSetId")); | 4251 unittest.expect(subPart, unittest.equals("$arg_annotationSetId")); |
4084 | 4252 |
4085 var query = (req.url).query; | 4253 var query = (req.url).query; |
4086 var queryOffset = 0; | 4254 var queryOffset = 0; |
4087 var queryMap = {}; | 4255 var queryMap = {}; |
4088 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4256 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4089 parseBool(n) { | 4257 parseBool(n) { |
4090 if (n == "true") return true; | 4258 if (n == "true") return true; |
4091 if (n == "false") return false; | 4259 if (n == "false") return false; |
4092 if (n == null) return null; | 4260 if (n == null) return null; |
4093 throw new core.ArgumentError("Invalid boolean: $n"); | 4261 throw new core.ArgumentError("Invalid boolean: $n"); |
4094 } | 4262 } |
| 4263 |
4095 if (query.length > 0) { | 4264 if (query.length > 0) { |
4096 for (var part in query.split("&")) { | 4265 for (var part in query.split("&")) { |
4097 var keyvalue = part.split("="); | 4266 var keyvalue = part.split("="); |
4098 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4267 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 4268 core.Uri.decodeQueryComponent(keyvalue[1])); |
4099 } | 4269 } |
4100 } | 4270 } |
4101 | 4271 |
4102 | |
4103 var h = { | 4272 var h = { |
4104 "content-type" : "application/json; charset=utf-8", | 4273 "content-type": "application/json; charset=utf-8", |
4105 }; | 4274 }; |
4106 var resp = convert.JSON.encode(buildEmpty()); | 4275 var resp = convert.JSON.encode(buildEmpty()); |
4107 return new async.Future.value(stringResponse(200, h, resp)); | 4276 return new async.Future.value(stringResponse(200, h, resp)); |
4108 }), true); | 4277 }), true); |
4109 res.delete(arg_annotationSetId).then(unittest.expectAsync1(((api.Empty res
ponse) { | 4278 res |
| 4279 .delete(arg_annotationSetId) |
| 4280 .then(unittest.expectAsync1(((api.Empty response) { |
4110 checkEmpty(response); | 4281 checkEmpty(response); |
4111 }))); | 4282 }))); |
4112 }); | 4283 }); |
4113 | 4284 |
4114 unittest.test("method--get", () { | 4285 unittest.test("method--get", () { |
4115 | |
4116 var mock = new HttpServerMock(); | 4286 var mock = new HttpServerMock(); |
4117 api.AnnotationsetsResourceApi res = new api.GenomicsApi(mock).annotationse
ts; | 4287 api.AnnotationsetsResourceApi res = |
| 4288 new api.GenomicsApi(mock).annotationsets; |
4118 var arg_annotationSetId = "foo"; | 4289 var arg_annotationSetId = "foo"; |
4119 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4290 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4120 var path = (req.url).path; | 4291 var path = (req.url).path; |
4121 var pathOffset = 0; | 4292 var pathOffset = 0; |
4122 var index; | 4293 var index; |
4123 var subPart; | 4294 var subPart; |
4124 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4295 unittest.expect( |
| 4296 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
4125 pathOffset += 1; | 4297 pathOffset += 1; |
4126 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("v1/annotationsets/")); | 4298 unittest.expect(path.substring(pathOffset, pathOffset + 18), |
| 4299 unittest.equals("v1/annotationsets/")); |
4127 pathOffset += 18; | 4300 pathOffset += 18; |
4128 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4301 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
4129 pathOffset = path.length; | 4302 pathOffset = path.length; |
4130 unittest.expect(subPart, unittest.equals("$arg_annotationSetId")); | 4303 unittest.expect(subPart, unittest.equals("$arg_annotationSetId")); |
4131 | 4304 |
4132 var query = (req.url).query; | 4305 var query = (req.url).query; |
4133 var queryOffset = 0; | 4306 var queryOffset = 0; |
4134 var queryMap = {}; | 4307 var queryMap = {}; |
4135 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4308 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4136 parseBool(n) { | 4309 parseBool(n) { |
4137 if (n == "true") return true; | 4310 if (n == "true") return true; |
4138 if (n == "false") return false; | 4311 if (n == "false") return false; |
4139 if (n == null) return null; | 4312 if (n == null) return null; |
4140 throw new core.ArgumentError("Invalid boolean: $n"); | 4313 throw new core.ArgumentError("Invalid boolean: $n"); |
4141 } | 4314 } |
| 4315 |
4142 if (query.length > 0) { | 4316 if (query.length > 0) { |
4143 for (var part in query.split("&")) { | 4317 for (var part in query.split("&")) { |
4144 var keyvalue = part.split("="); | 4318 var keyvalue = part.split("="); |
4145 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4319 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 4320 core.Uri.decodeQueryComponent(keyvalue[1])); |
4146 } | 4321 } |
4147 } | 4322 } |
4148 | 4323 |
4149 | |
4150 var h = { | 4324 var h = { |
4151 "content-type" : "application/json; charset=utf-8", | 4325 "content-type": "application/json; charset=utf-8", |
4152 }; | 4326 }; |
4153 var resp = convert.JSON.encode(buildAnnotationSet()); | 4327 var resp = convert.JSON.encode(buildAnnotationSet()); |
4154 return new async.Future.value(stringResponse(200, h, resp)); | 4328 return new async.Future.value(stringResponse(200, h, resp)); |
4155 }), true); | 4329 }), true); |
4156 res.get(arg_annotationSetId).then(unittest.expectAsync1(((api.AnnotationSe
t response) { | 4330 res |
| 4331 .get(arg_annotationSetId) |
| 4332 .then(unittest.expectAsync1(((api.AnnotationSet response) { |
4157 checkAnnotationSet(response); | 4333 checkAnnotationSet(response); |
4158 }))); | 4334 }))); |
4159 }); | 4335 }); |
4160 | 4336 |
4161 unittest.test("method--search", () { | 4337 unittest.test("method--search", () { |
4162 | |
4163 var mock = new HttpServerMock(); | 4338 var mock = new HttpServerMock(); |
4164 api.AnnotationsetsResourceApi res = new api.GenomicsApi(mock).annotationse
ts; | 4339 api.AnnotationsetsResourceApi res = |
| 4340 new api.GenomicsApi(mock).annotationsets; |
4165 var arg_request = buildSearchAnnotationSetsRequest(); | 4341 var arg_request = buildSearchAnnotationSetsRequest(); |
4166 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4342 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4167 var obj = new api.SearchAnnotationSetsRequest.fromJson(json); | 4343 var obj = new api.SearchAnnotationSetsRequest.fromJson(json); |
4168 checkSearchAnnotationSetsRequest(obj); | 4344 checkSearchAnnotationSetsRequest(obj); |
4169 | 4345 |
4170 var path = (req.url).path; | 4346 var path = (req.url).path; |
4171 var pathOffset = 0; | 4347 var pathOffset = 0; |
4172 var index; | 4348 var index; |
4173 var subPart; | 4349 var subPart; |
4174 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4350 unittest.expect( |
| 4351 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
4175 pathOffset += 1; | 4352 pathOffset += 1; |
4176 unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.eq
uals("v1/annotationsets/search")); | 4353 unittest.expect(path.substring(pathOffset, pathOffset + 24), |
| 4354 unittest.equals("v1/annotationsets/search")); |
4177 pathOffset += 24; | 4355 pathOffset += 24; |
4178 | 4356 |
4179 var query = (req.url).query; | 4357 var query = (req.url).query; |
4180 var queryOffset = 0; | 4358 var queryOffset = 0; |
4181 var queryMap = {}; | 4359 var queryMap = {}; |
4182 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4360 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4183 parseBool(n) { | 4361 parseBool(n) { |
4184 if (n == "true") return true; | 4362 if (n == "true") return true; |
4185 if (n == "false") return false; | 4363 if (n == "false") return false; |
4186 if (n == null) return null; | 4364 if (n == null) return null; |
4187 throw new core.ArgumentError("Invalid boolean: $n"); | 4365 throw new core.ArgumentError("Invalid boolean: $n"); |
4188 } | 4366 } |
| 4367 |
4189 if (query.length > 0) { | 4368 if (query.length > 0) { |
4190 for (var part in query.split("&")) { | 4369 for (var part in query.split("&")) { |
4191 var keyvalue = part.split("="); | 4370 var keyvalue = part.split("="); |
4192 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4371 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 4372 core.Uri.decodeQueryComponent(keyvalue[1])); |
4193 } | 4373 } |
4194 } | 4374 } |
4195 | 4375 |
4196 | |
4197 var h = { | 4376 var h = { |
4198 "content-type" : "application/json; charset=utf-8", | 4377 "content-type": "application/json; charset=utf-8", |
4199 }; | 4378 }; |
4200 var resp = convert.JSON.encode(buildSearchAnnotationSetsResponse()); | 4379 var resp = convert.JSON.encode(buildSearchAnnotationSetsResponse()); |
4201 return new async.Future.value(stringResponse(200, h, resp)); | 4380 return new async.Future.value(stringResponse(200, h, resp)); |
4202 }), true); | 4381 }), true); |
4203 res.search(arg_request).then(unittest.expectAsync1(((api.SearchAnnotationS
etsResponse response) { | 4382 res.search(arg_request).then( |
| 4383 unittest.expectAsync1(((api.SearchAnnotationSetsResponse response) { |
4204 checkSearchAnnotationSetsResponse(response); | 4384 checkSearchAnnotationSetsResponse(response); |
4205 }))); | 4385 }))); |
4206 }); | 4386 }); |
4207 | 4387 |
4208 unittest.test("method--update", () { | 4388 unittest.test("method--update", () { |
4209 | |
4210 var mock = new HttpServerMock(); | 4389 var mock = new HttpServerMock(); |
4211 api.AnnotationsetsResourceApi res = new api.GenomicsApi(mock).annotationse
ts; | 4390 api.AnnotationsetsResourceApi res = |
| 4391 new api.GenomicsApi(mock).annotationsets; |
4212 var arg_request = buildAnnotationSet(); | 4392 var arg_request = buildAnnotationSet(); |
4213 var arg_annotationSetId = "foo"; | 4393 var arg_annotationSetId = "foo"; |
4214 var arg_updateMask = "foo"; | 4394 var arg_updateMask = "foo"; |
4215 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4395 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4216 var obj = new api.AnnotationSet.fromJson(json); | 4396 var obj = new api.AnnotationSet.fromJson(json); |
4217 checkAnnotationSet(obj); | 4397 checkAnnotationSet(obj); |
4218 | 4398 |
4219 var path = (req.url).path; | 4399 var path = (req.url).path; |
4220 var pathOffset = 0; | 4400 var pathOffset = 0; |
4221 var index; | 4401 var index; |
4222 var subPart; | 4402 var subPart; |
4223 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4403 unittest.expect( |
| 4404 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
4224 pathOffset += 1; | 4405 pathOffset += 1; |
4225 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("v1/annotationsets/")); | 4406 unittest.expect(path.substring(pathOffset, pathOffset + 18), |
| 4407 unittest.equals("v1/annotationsets/")); |
4226 pathOffset += 18; | 4408 pathOffset += 18; |
4227 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4409 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
4228 pathOffset = path.length; | 4410 pathOffset = path.length; |
4229 unittest.expect(subPart, unittest.equals("$arg_annotationSetId")); | 4411 unittest.expect(subPart, unittest.equals("$arg_annotationSetId")); |
4230 | 4412 |
4231 var query = (req.url).query; | 4413 var query = (req.url).query; |
4232 var queryOffset = 0; | 4414 var queryOffset = 0; |
4233 var queryMap = {}; | 4415 var queryMap = {}; |
4234 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4416 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4235 parseBool(n) { | 4417 parseBool(n) { |
4236 if (n == "true") return true; | 4418 if (n == "true") return true; |
4237 if (n == "false") return false; | 4419 if (n == "false") return false; |
4238 if (n == null) return null; | 4420 if (n == null) return null; |
4239 throw new core.ArgumentError("Invalid boolean: $n"); | 4421 throw new core.ArgumentError("Invalid boolean: $n"); |
4240 } | 4422 } |
| 4423 |
4241 if (query.length > 0) { | 4424 if (query.length > 0) { |
4242 for (var part in query.split("&")) { | 4425 for (var part in query.split("&")) { |
4243 var keyvalue = part.split("="); | 4426 var keyvalue = part.split("="); |
4244 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4427 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 4428 core.Uri.decodeQueryComponent(keyvalue[1])); |
4245 } | 4429 } |
4246 } | 4430 } |
4247 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); | 4431 unittest.expect( |
4248 | 4432 queryMap["updateMask"].first, unittest.equals(arg_updateMask)); |
4249 | 4433 |
4250 var h = { | 4434 var h = { |
4251 "content-type" : "application/json; charset=utf-8", | 4435 "content-type": "application/json; charset=utf-8", |
4252 }; | 4436 }; |
4253 var resp = convert.JSON.encode(buildAnnotationSet()); | 4437 var resp = convert.JSON.encode(buildAnnotationSet()); |
4254 return new async.Future.value(stringResponse(200, h, resp)); | 4438 return new async.Future.value(stringResponse(200, h, resp)); |
4255 }), true); | 4439 }), true); |
4256 res.update(arg_request, arg_annotationSetId, updateMask: arg_updateMask).t
hen(unittest.expectAsync1(((api.AnnotationSet response) { | 4440 res |
| 4441 .update(arg_request, arg_annotationSetId, updateMask: arg_updateMask) |
| 4442 .then(unittest.expectAsync1(((api.AnnotationSet response) { |
4257 checkAnnotationSet(response); | 4443 checkAnnotationSet(response); |
4258 }))); | 4444 }))); |
4259 }); | 4445 }); |
4260 | |
4261 }); | 4446 }); |
4262 | 4447 |
4263 | |
4264 unittest.group("resource-CallsetsResourceApi", () { | 4448 unittest.group("resource-CallsetsResourceApi", () { |
4265 unittest.test("method--create", () { | 4449 unittest.test("method--create", () { |
4266 | |
4267 var mock = new HttpServerMock(); | 4450 var mock = new HttpServerMock(); |
4268 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; | 4451 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; |
4269 var arg_request = buildCallSet(); | 4452 var arg_request = buildCallSet(); |
4270 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4453 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4271 var obj = new api.CallSet.fromJson(json); | 4454 var obj = new api.CallSet.fromJson(json); |
4272 checkCallSet(obj); | 4455 checkCallSet(obj); |
4273 | 4456 |
4274 var path = (req.url).path; | 4457 var path = (req.url).path; |
4275 var pathOffset = 0; | 4458 var pathOffset = 0; |
4276 var index; | 4459 var index; |
4277 var subPart; | 4460 var subPart; |
4278 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4461 unittest.expect( |
| 4462 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
4279 pathOffset += 1; | 4463 pathOffset += 1; |
4280 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("v1/callsets")); | 4464 unittest.expect(path.substring(pathOffset, pathOffset + 11), |
| 4465 unittest.equals("v1/callsets")); |
4281 pathOffset += 11; | 4466 pathOffset += 11; |
4282 | 4467 |
4283 var query = (req.url).query; | 4468 var query = (req.url).query; |
4284 var queryOffset = 0; | 4469 var queryOffset = 0; |
4285 var queryMap = {}; | 4470 var queryMap = {}; |
4286 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4471 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4287 parseBool(n) { | 4472 parseBool(n) { |
4288 if (n == "true") return true; | 4473 if (n == "true") return true; |
4289 if (n == "false") return false; | 4474 if (n == "false") return false; |
4290 if (n == null) return null; | 4475 if (n == null) return null; |
4291 throw new core.ArgumentError("Invalid boolean: $n"); | 4476 throw new core.ArgumentError("Invalid boolean: $n"); |
4292 } | 4477 } |
| 4478 |
4293 if (query.length > 0) { | 4479 if (query.length > 0) { |
4294 for (var part in query.split("&")) { | 4480 for (var part in query.split("&")) { |
4295 var keyvalue = part.split("="); | 4481 var keyvalue = part.split("="); |
4296 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4482 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 4483 core.Uri.decodeQueryComponent(keyvalue[1])); |
4297 } | 4484 } |
4298 } | 4485 } |
4299 | 4486 |
4300 | |
4301 var h = { | 4487 var h = { |
4302 "content-type" : "application/json; charset=utf-8", | 4488 "content-type": "application/json; charset=utf-8", |
4303 }; | 4489 }; |
4304 var resp = convert.JSON.encode(buildCallSet()); | 4490 var resp = convert.JSON.encode(buildCallSet()); |
4305 return new async.Future.value(stringResponse(200, h, resp)); | 4491 return new async.Future.value(stringResponse(200, h, resp)); |
4306 }), true); | 4492 }), true); |
4307 res.create(arg_request).then(unittest.expectAsync1(((api.CallSet response)
{ | 4493 res |
| 4494 .create(arg_request) |
| 4495 .then(unittest.expectAsync1(((api.CallSet response) { |
4308 checkCallSet(response); | 4496 checkCallSet(response); |
4309 }))); | 4497 }))); |
4310 }); | 4498 }); |
4311 | 4499 |
4312 unittest.test("method--delete", () { | 4500 unittest.test("method--delete", () { |
4313 | |
4314 var mock = new HttpServerMock(); | 4501 var mock = new HttpServerMock(); |
4315 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; | 4502 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; |
4316 var arg_callSetId = "foo"; | 4503 var arg_callSetId = "foo"; |
4317 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4504 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4318 var path = (req.url).path; | 4505 var path = (req.url).path; |
4319 var pathOffset = 0; | 4506 var pathOffset = 0; |
4320 var index; | 4507 var index; |
4321 var subPart; | 4508 var subPart; |
4322 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4509 unittest.expect( |
| 4510 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
4323 pathOffset += 1; | 4511 pathOffset += 1; |
4324 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/callsets/")); | 4512 unittest.expect(path.substring(pathOffset, pathOffset + 12), |
| 4513 unittest.equals("v1/callsets/")); |
4325 pathOffset += 12; | 4514 pathOffset += 12; |
4326 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4515 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
4327 pathOffset = path.length; | 4516 pathOffset = path.length; |
4328 unittest.expect(subPart, unittest.equals("$arg_callSetId")); | 4517 unittest.expect(subPart, unittest.equals("$arg_callSetId")); |
4329 | 4518 |
4330 var query = (req.url).query; | 4519 var query = (req.url).query; |
4331 var queryOffset = 0; | 4520 var queryOffset = 0; |
4332 var queryMap = {}; | 4521 var queryMap = {}; |
4333 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4522 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4334 parseBool(n) { | 4523 parseBool(n) { |
4335 if (n == "true") return true; | 4524 if (n == "true") return true; |
4336 if (n == "false") return false; | 4525 if (n == "false") return false; |
4337 if (n == null) return null; | 4526 if (n == null) return null; |
4338 throw new core.ArgumentError("Invalid boolean: $n"); | 4527 throw new core.ArgumentError("Invalid boolean: $n"); |
4339 } | 4528 } |
| 4529 |
4340 if (query.length > 0) { | 4530 if (query.length > 0) { |
4341 for (var part in query.split("&")) { | 4531 for (var part in query.split("&")) { |
4342 var keyvalue = part.split("="); | 4532 var keyvalue = part.split("="); |
4343 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4533 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 4534 core.Uri.decodeQueryComponent(keyvalue[1])); |
4344 } | 4535 } |
4345 } | 4536 } |
4346 | 4537 |
4347 | |
4348 var h = { | 4538 var h = { |
4349 "content-type" : "application/json; charset=utf-8", | 4539 "content-type": "application/json; charset=utf-8", |
4350 }; | 4540 }; |
4351 var resp = convert.JSON.encode(buildEmpty()); | 4541 var resp = convert.JSON.encode(buildEmpty()); |
4352 return new async.Future.value(stringResponse(200, h, resp)); | 4542 return new async.Future.value(stringResponse(200, h, resp)); |
4353 }), true); | 4543 }), true); |
4354 res.delete(arg_callSetId).then(unittest.expectAsync1(((api.Empty response)
{ | 4544 res |
| 4545 .delete(arg_callSetId) |
| 4546 .then(unittest.expectAsync1(((api.Empty response) { |
4355 checkEmpty(response); | 4547 checkEmpty(response); |
4356 }))); | 4548 }))); |
4357 }); | 4549 }); |
4358 | 4550 |
4359 unittest.test("method--get", () { | 4551 unittest.test("method--get", () { |
4360 | |
4361 var mock = new HttpServerMock(); | 4552 var mock = new HttpServerMock(); |
4362 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; | 4553 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; |
4363 var arg_callSetId = "foo"; | 4554 var arg_callSetId = "foo"; |
4364 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4555 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4365 var path = (req.url).path; | 4556 var path = (req.url).path; |
4366 var pathOffset = 0; | 4557 var pathOffset = 0; |
4367 var index; | 4558 var index; |
4368 var subPart; | 4559 var subPart; |
4369 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4560 unittest.expect( |
| 4561 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
4370 pathOffset += 1; | 4562 pathOffset += 1; |
4371 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/callsets/")); | 4563 unittest.expect(path.substring(pathOffset, pathOffset + 12), |
| 4564 unittest.equals("v1/callsets/")); |
4372 pathOffset += 12; | 4565 pathOffset += 12; |
4373 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4566 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
4374 pathOffset = path.length; | 4567 pathOffset = path.length; |
4375 unittest.expect(subPart, unittest.equals("$arg_callSetId")); | 4568 unittest.expect(subPart, unittest.equals("$arg_callSetId")); |
4376 | 4569 |
4377 var query = (req.url).query; | 4570 var query = (req.url).query; |
4378 var queryOffset = 0; | 4571 var queryOffset = 0; |
4379 var queryMap = {}; | 4572 var queryMap = {}; |
4380 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4573 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4381 parseBool(n) { | 4574 parseBool(n) { |
4382 if (n == "true") return true; | 4575 if (n == "true") return true; |
4383 if (n == "false") return false; | 4576 if (n == "false") return false; |
4384 if (n == null) return null; | 4577 if (n == null) return null; |
4385 throw new core.ArgumentError("Invalid boolean: $n"); | 4578 throw new core.ArgumentError("Invalid boolean: $n"); |
4386 } | 4579 } |
| 4580 |
4387 if (query.length > 0) { | 4581 if (query.length > 0) { |
4388 for (var part in query.split("&")) { | 4582 for (var part in query.split("&")) { |
4389 var keyvalue = part.split("="); | 4583 var keyvalue = part.split("="); |
4390 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4584 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 4585 core.Uri.decodeQueryComponent(keyvalue[1])); |
4391 } | 4586 } |
4392 } | 4587 } |
4393 | 4588 |
4394 | |
4395 var h = { | 4589 var h = { |
4396 "content-type" : "application/json; charset=utf-8", | 4590 "content-type": "application/json; charset=utf-8", |
4397 }; | 4591 }; |
4398 var resp = convert.JSON.encode(buildCallSet()); | 4592 var resp = convert.JSON.encode(buildCallSet()); |
4399 return new async.Future.value(stringResponse(200, h, resp)); | 4593 return new async.Future.value(stringResponse(200, h, resp)); |
4400 }), true); | 4594 }), true); |
4401 res.get(arg_callSetId).then(unittest.expectAsync1(((api.CallSet response)
{ | 4595 res |
| 4596 .get(arg_callSetId) |
| 4597 .then(unittest.expectAsync1(((api.CallSet response) { |
4402 checkCallSet(response); | 4598 checkCallSet(response); |
4403 }))); | 4599 }))); |
4404 }); | 4600 }); |
4405 | 4601 |
4406 unittest.test("method--patch", () { | 4602 unittest.test("method--patch", () { |
4407 | |
4408 var mock = new HttpServerMock(); | 4603 var mock = new HttpServerMock(); |
4409 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; | 4604 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; |
4410 var arg_request = buildCallSet(); | 4605 var arg_request = buildCallSet(); |
4411 var arg_callSetId = "foo"; | 4606 var arg_callSetId = "foo"; |
4412 var arg_updateMask = "foo"; | 4607 var arg_updateMask = "foo"; |
4413 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4608 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4414 var obj = new api.CallSet.fromJson(json); | 4609 var obj = new api.CallSet.fromJson(json); |
4415 checkCallSet(obj); | 4610 checkCallSet(obj); |
4416 | 4611 |
4417 var path = (req.url).path; | 4612 var path = (req.url).path; |
4418 var pathOffset = 0; | 4613 var pathOffset = 0; |
4419 var index; | 4614 var index; |
4420 var subPart; | 4615 var subPart; |
4421 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4616 unittest.expect( |
| 4617 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
4422 pathOffset += 1; | 4618 pathOffset += 1; |
4423 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/callsets/")); | 4619 unittest.expect(path.substring(pathOffset, pathOffset + 12), |
| 4620 unittest.equals("v1/callsets/")); |
4424 pathOffset += 12; | 4621 pathOffset += 12; |
4425 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4622 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
4426 pathOffset = path.length; | 4623 pathOffset = path.length; |
4427 unittest.expect(subPart, unittest.equals("$arg_callSetId")); | 4624 unittest.expect(subPart, unittest.equals("$arg_callSetId")); |
4428 | 4625 |
4429 var query = (req.url).query; | 4626 var query = (req.url).query; |
4430 var queryOffset = 0; | 4627 var queryOffset = 0; |
4431 var queryMap = {}; | 4628 var queryMap = {}; |
4432 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4629 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4433 parseBool(n) { | 4630 parseBool(n) { |
4434 if (n == "true") return true; | 4631 if (n == "true") return true; |
4435 if (n == "false") return false; | 4632 if (n == "false") return false; |
4436 if (n == null) return null; | 4633 if (n == null) return null; |
4437 throw new core.ArgumentError("Invalid boolean: $n"); | 4634 throw new core.ArgumentError("Invalid boolean: $n"); |
4438 } | 4635 } |
| 4636 |
4439 if (query.length > 0) { | 4637 if (query.length > 0) { |
4440 for (var part in query.split("&")) { | 4638 for (var part in query.split("&")) { |
4441 var keyvalue = part.split("="); | 4639 var keyvalue = part.split("="); |
4442 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4640 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 4641 core.Uri.decodeQueryComponent(keyvalue[1])); |
4443 } | 4642 } |
4444 } | 4643 } |
4445 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); | 4644 unittest.expect( |
4446 | 4645 queryMap["updateMask"].first, unittest.equals(arg_updateMask)); |
4447 | 4646 |
4448 var h = { | 4647 var h = { |
4449 "content-type" : "application/json; charset=utf-8", | 4648 "content-type": "application/json; charset=utf-8", |
4450 }; | 4649 }; |
4451 var resp = convert.JSON.encode(buildCallSet()); | 4650 var resp = convert.JSON.encode(buildCallSet()); |
4452 return new async.Future.value(stringResponse(200, h, resp)); | 4651 return new async.Future.value(stringResponse(200, h, resp)); |
4453 }), true); | 4652 }), true); |
4454 res.patch(arg_request, arg_callSetId, updateMask: arg_updateMask).then(uni
ttest.expectAsync1(((api.CallSet response) { | 4653 res |
| 4654 .patch(arg_request, arg_callSetId, updateMask: arg_updateMask) |
| 4655 .then(unittest.expectAsync1(((api.CallSet response) { |
4455 checkCallSet(response); | 4656 checkCallSet(response); |
4456 }))); | 4657 }))); |
4457 }); | 4658 }); |
4458 | 4659 |
4459 unittest.test("method--search", () { | 4660 unittest.test("method--search", () { |
4460 | |
4461 var mock = new HttpServerMock(); | 4661 var mock = new HttpServerMock(); |
4462 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; | 4662 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; |
4463 var arg_request = buildSearchCallSetsRequest(); | 4663 var arg_request = buildSearchCallSetsRequest(); |
4464 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4664 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4465 var obj = new api.SearchCallSetsRequest.fromJson(json); | 4665 var obj = new api.SearchCallSetsRequest.fromJson(json); |
4466 checkSearchCallSetsRequest(obj); | 4666 checkSearchCallSetsRequest(obj); |
4467 | 4667 |
4468 var path = (req.url).path; | 4668 var path = (req.url).path; |
4469 var pathOffset = 0; | 4669 var pathOffset = 0; |
4470 var index; | 4670 var index; |
4471 var subPart; | 4671 var subPart; |
4472 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4672 unittest.expect( |
| 4673 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
4473 pathOffset += 1; | 4674 pathOffset += 1; |
4474 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("v1/callsets/search")); | 4675 unittest.expect(path.substring(pathOffset, pathOffset + 18), |
| 4676 unittest.equals("v1/callsets/search")); |
4475 pathOffset += 18; | 4677 pathOffset += 18; |
4476 | 4678 |
4477 var query = (req.url).query; | 4679 var query = (req.url).query; |
4478 var queryOffset = 0; | 4680 var queryOffset = 0; |
4479 var queryMap = {}; | 4681 var queryMap = {}; |
4480 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4682 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4481 parseBool(n) { | 4683 parseBool(n) { |
4482 if (n == "true") return true; | 4684 if (n == "true") return true; |
4483 if (n == "false") return false; | 4685 if (n == "false") return false; |
4484 if (n == null) return null; | 4686 if (n == null) return null; |
4485 throw new core.ArgumentError("Invalid boolean: $n"); | 4687 throw new core.ArgumentError("Invalid boolean: $n"); |
4486 } | 4688 } |
| 4689 |
4487 if (query.length > 0) { | 4690 if (query.length > 0) { |
4488 for (var part in query.split("&")) { | 4691 for (var part in query.split("&")) { |
4489 var keyvalue = part.split("="); | 4692 var keyvalue = part.split("="); |
4490 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4693 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 4694 core.Uri.decodeQueryComponent(keyvalue[1])); |
4491 } | 4695 } |
4492 } | 4696 } |
4493 | 4697 |
4494 | |
4495 var h = { | 4698 var h = { |
4496 "content-type" : "application/json; charset=utf-8", | 4699 "content-type": "application/json; charset=utf-8", |
4497 }; | 4700 }; |
4498 var resp = convert.JSON.encode(buildSearchCallSetsResponse()); | 4701 var resp = convert.JSON.encode(buildSearchCallSetsResponse()); |
4499 return new async.Future.value(stringResponse(200, h, resp)); | 4702 return new async.Future.value(stringResponse(200, h, resp)); |
4500 }), true); | 4703 }), true); |
4501 res.search(arg_request).then(unittest.expectAsync1(((api.SearchCallSetsRes
ponse response) { | 4704 res |
| 4705 .search(arg_request) |
| 4706 .then(unittest.expectAsync1(((api.SearchCallSetsResponse response) { |
4502 checkSearchCallSetsResponse(response); | 4707 checkSearchCallSetsResponse(response); |
4503 }))); | 4708 }))); |
4504 }); | 4709 }); |
4505 | |
4506 }); | 4710 }); |
4507 | 4711 |
4508 | |
4509 unittest.group("resource-DatasetsResourceApi", () { | 4712 unittest.group("resource-DatasetsResourceApi", () { |
4510 unittest.test("method--create", () { | 4713 unittest.test("method--create", () { |
4511 | |
4512 var mock = new HttpServerMock(); | 4714 var mock = new HttpServerMock(); |
4513 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; | 4715 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; |
4514 var arg_request = buildDataset(); | 4716 var arg_request = buildDataset(); |
4515 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4717 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4516 var obj = new api.Dataset.fromJson(json); | 4718 var obj = new api.Dataset.fromJson(json); |
4517 checkDataset(obj); | 4719 checkDataset(obj); |
4518 | 4720 |
4519 var path = (req.url).path; | 4721 var path = (req.url).path; |
4520 var pathOffset = 0; | 4722 var pathOffset = 0; |
4521 var index; | 4723 var index; |
4522 var subPart; | 4724 var subPart; |
4523 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4725 unittest.expect( |
| 4726 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
4524 pathOffset += 1; | 4727 pathOffset += 1; |
4525 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("v1/datasets")); | 4728 unittest.expect(path.substring(pathOffset, pathOffset + 11), |
| 4729 unittest.equals("v1/datasets")); |
4526 pathOffset += 11; | 4730 pathOffset += 11; |
4527 | 4731 |
4528 var query = (req.url).query; | 4732 var query = (req.url).query; |
4529 var queryOffset = 0; | 4733 var queryOffset = 0; |
4530 var queryMap = {}; | 4734 var queryMap = {}; |
4531 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4735 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4532 parseBool(n) { | 4736 parseBool(n) { |
4533 if (n == "true") return true; | 4737 if (n == "true") return true; |
4534 if (n == "false") return false; | 4738 if (n == "false") return false; |
4535 if (n == null) return null; | 4739 if (n == null) return null; |
4536 throw new core.ArgumentError("Invalid boolean: $n"); | 4740 throw new core.ArgumentError("Invalid boolean: $n"); |
4537 } | 4741 } |
| 4742 |
4538 if (query.length > 0) { | 4743 if (query.length > 0) { |
4539 for (var part in query.split("&")) { | 4744 for (var part in query.split("&")) { |
4540 var keyvalue = part.split("="); | 4745 var keyvalue = part.split("="); |
4541 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4746 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 4747 core.Uri.decodeQueryComponent(keyvalue[1])); |
4542 } | 4748 } |
4543 } | 4749 } |
4544 | 4750 |
4545 | |
4546 var h = { | 4751 var h = { |
4547 "content-type" : "application/json; charset=utf-8", | 4752 "content-type": "application/json; charset=utf-8", |
4548 }; | 4753 }; |
4549 var resp = convert.JSON.encode(buildDataset()); | 4754 var resp = convert.JSON.encode(buildDataset()); |
4550 return new async.Future.value(stringResponse(200, h, resp)); | 4755 return new async.Future.value(stringResponse(200, h, resp)); |
4551 }), true); | 4756 }), true); |
4552 res.create(arg_request).then(unittest.expectAsync1(((api.Dataset response)
{ | 4757 res |
| 4758 .create(arg_request) |
| 4759 .then(unittest.expectAsync1(((api.Dataset response) { |
4553 checkDataset(response); | 4760 checkDataset(response); |
4554 }))); | 4761 }))); |
4555 }); | 4762 }); |
4556 | 4763 |
4557 unittest.test("method--delete", () { | 4764 unittest.test("method--delete", () { |
4558 | |
4559 var mock = new HttpServerMock(); | 4765 var mock = new HttpServerMock(); |
4560 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; | 4766 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; |
4561 var arg_datasetId = "foo"; | 4767 var arg_datasetId = "foo"; |
4562 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4768 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4563 var path = (req.url).path; | 4769 var path = (req.url).path; |
4564 var pathOffset = 0; | 4770 var pathOffset = 0; |
4565 var index; | 4771 var index; |
4566 var subPart; | 4772 var subPart; |
4567 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4773 unittest.expect( |
| 4774 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
4568 pathOffset += 1; | 4775 pathOffset += 1; |
4569 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/datasets/")); | 4776 unittest.expect(path.substring(pathOffset, pathOffset + 12), |
| 4777 unittest.equals("v1/datasets/")); |
4570 pathOffset += 12; | 4778 pathOffset += 12; |
4571 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4779 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
4572 pathOffset = path.length; | 4780 pathOffset = path.length; |
4573 unittest.expect(subPart, unittest.equals("$arg_datasetId")); | 4781 unittest.expect(subPart, unittest.equals("$arg_datasetId")); |
4574 | 4782 |
4575 var query = (req.url).query; | 4783 var query = (req.url).query; |
4576 var queryOffset = 0; | 4784 var queryOffset = 0; |
4577 var queryMap = {}; | 4785 var queryMap = {}; |
4578 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4786 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4579 parseBool(n) { | 4787 parseBool(n) { |
4580 if (n == "true") return true; | 4788 if (n == "true") return true; |
4581 if (n == "false") return false; | 4789 if (n == "false") return false; |
4582 if (n == null) return null; | 4790 if (n == null) return null; |
4583 throw new core.ArgumentError("Invalid boolean: $n"); | 4791 throw new core.ArgumentError("Invalid boolean: $n"); |
4584 } | 4792 } |
| 4793 |
4585 if (query.length > 0) { | 4794 if (query.length > 0) { |
4586 for (var part in query.split("&")) { | 4795 for (var part in query.split("&")) { |
4587 var keyvalue = part.split("="); | 4796 var keyvalue = part.split("="); |
4588 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4797 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 4798 core.Uri.decodeQueryComponent(keyvalue[1])); |
4589 } | 4799 } |
4590 } | 4800 } |
4591 | 4801 |
4592 | |
4593 var h = { | 4802 var h = { |
4594 "content-type" : "application/json; charset=utf-8", | 4803 "content-type": "application/json; charset=utf-8", |
4595 }; | 4804 }; |
4596 var resp = convert.JSON.encode(buildEmpty()); | 4805 var resp = convert.JSON.encode(buildEmpty()); |
4597 return new async.Future.value(stringResponse(200, h, resp)); | 4806 return new async.Future.value(stringResponse(200, h, resp)); |
4598 }), true); | 4807 }), true); |
4599 res.delete(arg_datasetId).then(unittest.expectAsync1(((api.Empty response)
{ | 4808 res |
| 4809 .delete(arg_datasetId) |
| 4810 .then(unittest.expectAsync1(((api.Empty response) { |
4600 checkEmpty(response); | 4811 checkEmpty(response); |
4601 }))); | 4812 }))); |
4602 }); | 4813 }); |
4603 | 4814 |
4604 unittest.test("method--get", () { | 4815 unittest.test("method--get", () { |
4605 | |
4606 var mock = new HttpServerMock(); | 4816 var mock = new HttpServerMock(); |
4607 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; | 4817 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; |
4608 var arg_datasetId = "foo"; | 4818 var arg_datasetId = "foo"; |
4609 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4819 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4610 var path = (req.url).path; | 4820 var path = (req.url).path; |
4611 var pathOffset = 0; | 4821 var pathOffset = 0; |
4612 var index; | 4822 var index; |
4613 var subPart; | 4823 var subPart; |
4614 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4824 unittest.expect( |
| 4825 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
4615 pathOffset += 1; | 4826 pathOffset += 1; |
4616 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/datasets/")); | 4827 unittest.expect(path.substring(pathOffset, pathOffset + 12), |
| 4828 unittest.equals("v1/datasets/")); |
4617 pathOffset += 12; | 4829 pathOffset += 12; |
4618 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4830 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
4619 pathOffset = path.length; | 4831 pathOffset = path.length; |
4620 unittest.expect(subPart, unittest.equals("$arg_datasetId")); | 4832 unittest.expect(subPart, unittest.equals("$arg_datasetId")); |
4621 | 4833 |
4622 var query = (req.url).query; | 4834 var query = (req.url).query; |
4623 var queryOffset = 0; | 4835 var queryOffset = 0; |
4624 var queryMap = {}; | 4836 var queryMap = {}; |
4625 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4837 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4626 parseBool(n) { | 4838 parseBool(n) { |
4627 if (n == "true") return true; | 4839 if (n == "true") return true; |
4628 if (n == "false") return false; | 4840 if (n == "false") return false; |
4629 if (n == null) return null; | 4841 if (n == null) return null; |
4630 throw new core.ArgumentError("Invalid boolean: $n"); | 4842 throw new core.ArgumentError("Invalid boolean: $n"); |
4631 } | 4843 } |
| 4844 |
4632 if (query.length > 0) { | 4845 if (query.length > 0) { |
4633 for (var part in query.split("&")) { | 4846 for (var part in query.split("&")) { |
4634 var keyvalue = part.split("="); | 4847 var keyvalue = part.split("="); |
4635 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4848 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 4849 core.Uri.decodeQueryComponent(keyvalue[1])); |
4636 } | 4850 } |
4637 } | 4851 } |
4638 | 4852 |
4639 | |
4640 var h = { | 4853 var h = { |
4641 "content-type" : "application/json; charset=utf-8", | 4854 "content-type": "application/json; charset=utf-8", |
4642 }; | 4855 }; |
4643 var resp = convert.JSON.encode(buildDataset()); | 4856 var resp = convert.JSON.encode(buildDataset()); |
4644 return new async.Future.value(stringResponse(200, h, resp)); | 4857 return new async.Future.value(stringResponse(200, h, resp)); |
4645 }), true); | 4858 }), true); |
4646 res.get(arg_datasetId).then(unittest.expectAsync1(((api.Dataset response)
{ | 4859 res |
| 4860 .get(arg_datasetId) |
| 4861 .then(unittest.expectAsync1(((api.Dataset response) { |
4647 checkDataset(response); | 4862 checkDataset(response); |
4648 }))); | 4863 }))); |
4649 }); | 4864 }); |
4650 | 4865 |
4651 unittest.test("method--getIamPolicy", () { | 4866 unittest.test("method--getIamPolicy", () { |
4652 | |
4653 var mock = new HttpServerMock(); | 4867 var mock = new HttpServerMock(); |
4654 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; | 4868 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; |
4655 var arg_request = buildGetIamPolicyRequest(); | 4869 var arg_request = buildGetIamPolicyRequest(); |
4656 var arg_resource = "foo"; | 4870 var arg_resource = "foo"; |
4657 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4871 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4658 var obj = new api.GetIamPolicyRequest.fromJson(json); | 4872 var obj = new api.GetIamPolicyRequest.fromJson(json); |
4659 checkGetIamPolicyRequest(obj); | 4873 checkGetIamPolicyRequest(obj); |
4660 | 4874 |
4661 var path = (req.url).path; | 4875 var path = (req.url).path; |
4662 var pathOffset = 0; | 4876 var pathOffset = 0; |
4663 var index; | 4877 var index; |
4664 var subPart; | 4878 var subPart; |
4665 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4879 unittest.expect( |
| 4880 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
4666 pathOffset += 1; | 4881 pathOffset += 1; |
4667 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 4882 unittest.expect( |
| 4883 path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
4668 pathOffset += 3; | 4884 pathOffset += 3; |
4669 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 4885 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
4670 | 4886 |
4671 var query = (req.url).query; | 4887 var query = (req.url).query; |
4672 var queryOffset = 0; | 4888 var queryOffset = 0; |
4673 var queryMap = {}; | 4889 var queryMap = {}; |
4674 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4890 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4675 parseBool(n) { | 4891 parseBool(n) { |
4676 if (n == "true") return true; | 4892 if (n == "true") return true; |
4677 if (n == "false") return false; | 4893 if (n == "false") return false; |
4678 if (n == null) return null; | 4894 if (n == null) return null; |
4679 throw new core.ArgumentError("Invalid boolean: $n"); | 4895 throw new core.ArgumentError("Invalid boolean: $n"); |
4680 } | 4896 } |
| 4897 |
4681 if (query.length > 0) { | 4898 if (query.length > 0) { |
4682 for (var part in query.split("&")) { | 4899 for (var part in query.split("&")) { |
4683 var keyvalue = part.split("="); | 4900 var keyvalue = part.split("="); |
4684 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4901 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 4902 core.Uri.decodeQueryComponent(keyvalue[1])); |
4685 } | 4903 } |
4686 } | 4904 } |
4687 | 4905 |
4688 | |
4689 var h = { | 4906 var h = { |
4690 "content-type" : "application/json; charset=utf-8", | 4907 "content-type": "application/json; charset=utf-8", |
4691 }; | 4908 }; |
4692 var resp = convert.JSON.encode(buildPolicy()); | 4909 var resp = convert.JSON.encode(buildPolicy()); |
4693 return new async.Future.value(stringResponse(200, h, resp)); | 4910 return new async.Future.value(stringResponse(200, h, resp)); |
4694 }), true); | 4911 }), true); |
4695 res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((a
pi.Policy response) { | 4912 res |
| 4913 .getIamPolicy(arg_request, arg_resource) |
| 4914 .then(unittest.expectAsync1(((api.Policy response) { |
4696 checkPolicy(response); | 4915 checkPolicy(response); |
4697 }))); | 4916 }))); |
4698 }); | 4917 }); |
4699 | 4918 |
4700 unittest.test("method--list", () { | 4919 unittest.test("method--list", () { |
4701 | |
4702 var mock = new HttpServerMock(); | 4920 var mock = new HttpServerMock(); |
4703 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; | 4921 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; |
4704 var arg_projectId = "foo"; | |
4705 var arg_pageToken = "foo"; | 4922 var arg_pageToken = "foo"; |
4706 var arg_pageSize = 42; | 4923 var arg_pageSize = 42; |
| 4924 var arg_projectId = "foo"; |
4707 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4925 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4708 var path = (req.url).path; | 4926 var path = (req.url).path; |
4709 var pathOffset = 0; | 4927 var pathOffset = 0; |
4710 var index; | 4928 var index; |
4711 var subPart; | 4929 var subPart; |
4712 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4930 unittest.expect( |
| 4931 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
4713 pathOffset += 1; | 4932 pathOffset += 1; |
4714 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("v1/datasets")); | 4933 unittest.expect(path.substring(pathOffset, pathOffset + 11), |
| 4934 unittest.equals("v1/datasets")); |
4715 pathOffset += 11; | 4935 pathOffset += 11; |
4716 | 4936 |
4717 var query = (req.url).query; | 4937 var query = (req.url).query; |
4718 var queryOffset = 0; | 4938 var queryOffset = 0; |
4719 var queryMap = {}; | 4939 var queryMap = {}; |
4720 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 4940 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4721 parseBool(n) { | 4941 parseBool(n) { |
4722 if (n == "true") return true; | 4942 if (n == "true") return true; |
4723 if (n == "false") return false; | 4943 if (n == "false") return false; |
4724 if (n == null) return null; | 4944 if (n == null) return null; |
4725 throw new core.ArgumentError("Invalid boolean: $n"); | 4945 throw new core.ArgumentError("Invalid boolean: $n"); |
4726 } | 4946 } |
| 4947 |
4727 if (query.length > 0) { | 4948 if (query.length > 0) { |
4728 for (var part in query.split("&")) { | 4949 for (var part in query.split("&")) { |
4729 var keyvalue = part.split("="); | 4950 var keyvalue = part.split("="); |
4730 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 4951 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 4952 core.Uri.decodeQueryComponent(keyvalue[1])); |
4731 } | 4953 } |
4732 } | 4954 } |
4733 unittest.expect(queryMap["projectId"].first, unittest.equals(arg_project
Id)); | 4955 unittest.expect( |
4734 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4956 queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
4735 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 4957 unittest.expect(core.int.parse(queryMap["pageSize"].first), |
4736 | 4958 unittest.equals(arg_pageSize)); |
| 4959 unittest.expect( |
| 4960 queryMap["projectId"].first, unittest.equals(arg_projectId)); |
4737 | 4961 |
4738 var h = { | 4962 var h = { |
4739 "content-type" : "application/json; charset=utf-8", | 4963 "content-type": "application/json; charset=utf-8", |
4740 }; | 4964 }; |
4741 var resp = convert.JSON.encode(buildListDatasetsResponse()); | 4965 var resp = convert.JSON.encode(buildListDatasetsResponse()); |
4742 return new async.Future.value(stringResponse(200, h, resp)); | 4966 return new async.Future.value(stringResponse(200, h, resp)); |
4743 }), true); | 4967 }), true); |
4744 res.list(projectId: arg_projectId, pageToken: arg_pageToken, pageSize: arg
_pageSize).then(unittest.expectAsync1(((api.ListDatasetsResponse response) { | 4968 res |
| 4969 .list( |
| 4970 pageToken: arg_pageToken, |
| 4971 pageSize: arg_pageSize, |
| 4972 projectId: arg_projectId) |
| 4973 .then(unittest.expectAsync1(((api.ListDatasetsResponse response) { |
4745 checkListDatasetsResponse(response); | 4974 checkListDatasetsResponse(response); |
4746 }))); | 4975 }))); |
4747 }); | 4976 }); |
4748 | 4977 |
4749 unittest.test("method--patch", () { | 4978 unittest.test("method--patch", () { |
4750 | |
4751 var mock = new HttpServerMock(); | 4979 var mock = new HttpServerMock(); |
4752 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; | 4980 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; |
4753 var arg_request = buildDataset(); | 4981 var arg_request = buildDataset(); |
4754 var arg_datasetId = "foo"; | 4982 var arg_datasetId = "foo"; |
4755 var arg_updateMask = "foo"; | 4983 var arg_updateMask = "foo"; |
4756 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 4984 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4757 var obj = new api.Dataset.fromJson(json); | 4985 var obj = new api.Dataset.fromJson(json); |
4758 checkDataset(obj); | 4986 checkDataset(obj); |
4759 | 4987 |
4760 var path = (req.url).path; | 4988 var path = (req.url).path; |
4761 var pathOffset = 0; | 4989 var pathOffset = 0; |
4762 var index; | 4990 var index; |
4763 var subPart; | 4991 var subPart; |
4764 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4992 unittest.expect( |
| 4993 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
4765 pathOffset += 1; | 4994 pathOffset += 1; |
4766 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/datasets/")); | 4995 unittest.expect(path.substring(pathOffset, pathOffset + 12), |
| 4996 unittest.equals("v1/datasets/")); |
4767 pathOffset += 12; | 4997 pathOffset += 12; |
4768 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4998 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
4769 pathOffset = path.length; | 4999 pathOffset = path.length; |
4770 unittest.expect(subPart, unittest.equals("$arg_datasetId")); | 5000 unittest.expect(subPart, unittest.equals("$arg_datasetId")); |
4771 | 5001 |
4772 var query = (req.url).query; | 5002 var query = (req.url).query; |
4773 var queryOffset = 0; | 5003 var queryOffset = 0; |
4774 var queryMap = {}; | 5004 var queryMap = {}; |
4775 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5005 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4776 parseBool(n) { | 5006 parseBool(n) { |
4777 if (n == "true") return true; | 5007 if (n == "true") return true; |
4778 if (n == "false") return false; | 5008 if (n == "false") return false; |
4779 if (n == null) return null; | 5009 if (n == null) return null; |
4780 throw new core.ArgumentError("Invalid boolean: $n"); | 5010 throw new core.ArgumentError("Invalid boolean: $n"); |
4781 } | 5011 } |
| 5012 |
4782 if (query.length > 0) { | 5013 if (query.length > 0) { |
4783 for (var part in query.split("&")) { | 5014 for (var part in query.split("&")) { |
4784 var keyvalue = part.split("="); | 5015 var keyvalue = part.split("="); |
4785 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5016 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 5017 core.Uri.decodeQueryComponent(keyvalue[1])); |
4786 } | 5018 } |
4787 } | 5019 } |
4788 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); | 5020 unittest.expect( |
4789 | 5021 queryMap["updateMask"].first, unittest.equals(arg_updateMask)); |
4790 | 5022 |
4791 var h = { | 5023 var h = { |
4792 "content-type" : "application/json; charset=utf-8", | 5024 "content-type": "application/json; charset=utf-8", |
4793 }; | 5025 }; |
4794 var resp = convert.JSON.encode(buildDataset()); | 5026 var resp = convert.JSON.encode(buildDataset()); |
4795 return new async.Future.value(stringResponse(200, h, resp)); | 5027 return new async.Future.value(stringResponse(200, h, resp)); |
4796 }), true); | 5028 }), true); |
4797 res.patch(arg_request, arg_datasetId, updateMask: arg_updateMask).then(uni
ttest.expectAsync1(((api.Dataset response) { | 5029 res |
| 5030 .patch(arg_request, arg_datasetId, updateMask: arg_updateMask) |
| 5031 .then(unittest.expectAsync1(((api.Dataset response) { |
4798 checkDataset(response); | 5032 checkDataset(response); |
4799 }))); | 5033 }))); |
4800 }); | 5034 }); |
4801 | 5035 |
4802 unittest.test("method--setIamPolicy", () { | 5036 unittest.test("method--setIamPolicy", () { |
4803 | |
4804 var mock = new HttpServerMock(); | 5037 var mock = new HttpServerMock(); |
4805 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; | 5038 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; |
4806 var arg_request = buildSetIamPolicyRequest(); | 5039 var arg_request = buildSetIamPolicyRequest(); |
4807 var arg_resource = "foo"; | 5040 var arg_resource = "foo"; |
4808 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 5041 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4809 var obj = new api.SetIamPolicyRequest.fromJson(json); | 5042 var obj = new api.SetIamPolicyRequest.fromJson(json); |
4810 checkSetIamPolicyRequest(obj); | 5043 checkSetIamPolicyRequest(obj); |
4811 | 5044 |
4812 var path = (req.url).path; | 5045 var path = (req.url).path; |
4813 var pathOffset = 0; | 5046 var pathOffset = 0; |
4814 var index; | 5047 var index; |
4815 var subPart; | 5048 var subPart; |
4816 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5049 unittest.expect( |
| 5050 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
4817 pathOffset += 1; | 5051 pathOffset += 1; |
4818 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 5052 unittest.expect( |
| 5053 path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
4819 pathOffset += 3; | 5054 pathOffset += 3; |
4820 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 5055 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
4821 | 5056 |
4822 var query = (req.url).query; | 5057 var query = (req.url).query; |
4823 var queryOffset = 0; | 5058 var queryOffset = 0; |
4824 var queryMap = {}; | 5059 var queryMap = {}; |
4825 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5060 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4826 parseBool(n) { | 5061 parseBool(n) { |
4827 if (n == "true") return true; | 5062 if (n == "true") return true; |
4828 if (n == "false") return false; | 5063 if (n == "false") return false; |
4829 if (n == null) return null; | 5064 if (n == null) return null; |
4830 throw new core.ArgumentError("Invalid boolean: $n"); | 5065 throw new core.ArgumentError("Invalid boolean: $n"); |
4831 } | 5066 } |
| 5067 |
4832 if (query.length > 0) { | 5068 if (query.length > 0) { |
4833 for (var part in query.split("&")) { | 5069 for (var part in query.split("&")) { |
4834 var keyvalue = part.split("="); | 5070 var keyvalue = part.split("="); |
4835 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5071 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 5072 core.Uri.decodeQueryComponent(keyvalue[1])); |
4836 } | 5073 } |
4837 } | 5074 } |
4838 | 5075 |
4839 | |
4840 var h = { | 5076 var h = { |
4841 "content-type" : "application/json; charset=utf-8", | 5077 "content-type": "application/json; charset=utf-8", |
4842 }; | 5078 }; |
4843 var resp = convert.JSON.encode(buildPolicy()); | 5079 var resp = convert.JSON.encode(buildPolicy()); |
4844 return new async.Future.value(stringResponse(200, h, resp)); | 5080 return new async.Future.value(stringResponse(200, h, resp)); |
4845 }), true); | 5081 }), true); |
4846 res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((a
pi.Policy response) { | 5082 res |
| 5083 .setIamPolicy(arg_request, arg_resource) |
| 5084 .then(unittest.expectAsync1(((api.Policy response) { |
4847 checkPolicy(response); | 5085 checkPolicy(response); |
4848 }))); | 5086 }))); |
4849 }); | 5087 }); |
4850 | 5088 |
4851 unittest.test("method--testIamPermissions", () { | 5089 unittest.test("method--testIamPermissions", () { |
4852 | |
4853 var mock = new HttpServerMock(); | 5090 var mock = new HttpServerMock(); |
4854 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; | 5091 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; |
4855 var arg_request = buildTestIamPermissionsRequest(); | 5092 var arg_request = buildTestIamPermissionsRequest(); |
4856 var arg_resource = "foo"; | 5093 var arg_resource = "foo"; |
4857 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 5094 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4858 var obj = new api.TestIamPermissionsRequest.fromJson(json); | 5095 var obj = new api.TestIamPermissionsRequest.fromJson(json); |
4859 checkTestIamPermissionsRequest(obj); | 5096 checkTestIamPermissionsRequest(obj); |
4860 | 5097 |
4861 var path = (req.url).path; | 5098 var path = (req.url).path; |
4862 var pathOffset = 0; | 5099 var pathOffset = 0; |
4863 var index; | 5100 var index; |
4864 var subPart; | 5101 var subPart; |
4865 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5102 unittest.expect( |
| 5103 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
4866 pathOffset += 1; | 5104 pathOffset += 1; |
4867 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 5105 unittest.expect( |
| 5106 path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
4868 pathOffset += 3; | 5107 pathOffset += 3; |
4869 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 5108 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
4870 | 5109 |
4871 var query = (req.url).query; | 5110 var query = (req.url).query; |
4872 var queryOffset = 0; | 5111 var queryOffset = 0; |
4873 var queryMap = {}; | 5112 var queryMap = {}; |
4874 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5113 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4875 parseBool(n) { | 5114 parseBool(n) { |
4876 if (n == "true") return true; | 5115 if (n == "true") return true; |
4877 if (n == "false") return false; | 5116 if (n == "false") return false; |
4878 if (n == null) return null; | 5117 if (n == null) return null; |
4879 throw new core.ArgumentError("Invalid boolean: $n"); | 5118 throw new core.ArgumentError("Invalid boolean: $n"); |
4880 } | 5119 } |
| 5120 |
4881 if (query.length > 0) { | 5121 if (query.length > 0) { |
4882 for (var part in query.split("&")) { | 5122 for (var part in query.split("&")) { |
4883 var keyvalue = part.split("="); | 5123 var keyvalue = part.split("="); |
4884 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5124 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 5125 core.Uri.decodeQueryComponent(keyvalue[1])); |
4885 } | 5126 } |
4886 } | 5127 } |
4887 | 5128 |
4888 | |
4889 var h = { | 5129 var h = { |
4890 "content-type" : "application/json; charset=utf-8", | 5130 "content-type": "application/json; charset=utf-8", |
4891 }; | 5131 }; |
4892 var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); | 5132 var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); |
4893 return new async.Future.value(stringResponse(200, h, resp)); | 5133 return new async.Future.value(stringResponse(200, h, resp)); |
4894 }), true); | 5134 }), true); |
4895 res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsyn
c1(((api.TestIamPermissionsResponse response) { | 5135 res.testIamPermissions(arg_request, arg_resource).then( |
| 5136 unittest.expectAsync1(((api.TestIamPermissionsResponse response) { |
4896 checkTestIamPermissionsResponse(response); | 5137 checkTestIamPermissionsResponse(response); |
4897 }))); | 5138 }))); |
4898 }); | 5139 }); |
4899 | 5140 |
4900 unittest.test("method--undelete", () { | 5141 unittest.test("method--undelete", () { |
4901 | |
4902 var mock = new HttpServerMock(); | 5142 var mock = new HttpServerMock(); |
4903 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; | 5143 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; |
4904 var arg_request = buildUndeleteDatasetRequest(); | 5144 var arg_request = buildUndeleteDatasetRequest(); |
4905 var arg_datasetId = "foo"; | 5145 var arg_datasetId = "foo"; |
4906 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 5146 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4907 var obj = new api.UndeleteDatasetRequest.fromJson(json); | 5147 var obj = new api.UndeleteDatasetRequest.fromJson(json); |
4908 checkUndeleteDatasetRequest(obj); | 5148 checkUndeleteDatasetRequest(obj); |
4909 | 5149 |
4910 var path = (req.url).path; | 5150 var path = (req.url).path; |
4911 var pathOffset = 0; | 5151 var pathOffset = 0; |
4912 var index; | 5152 var index; |
4913 var subPart; | 5153 var subPart; |
4914 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5154 unittest.expect( |
| 5155 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
4915 pathOffset += 1; | 5156 pathOffset += 1; |
4916 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/datasets/")); | 5157 unittest.expect(path.substring(pathOffset, pathOffset + 12), |
| 5158 unittest.equals("v1/datasets/")); |
4917 pathOffset += 12; | 5159 pathOffset += 12; |
4918 index = path.indexOf(":undelete", pathOffset); | 5160 index = path.indexOf(":undelete", pathOffset); |
4919 unittest.expect(index >= 0, unittest.isTrue); | 5161 unittest.expect(index >= 0, unittest.isTrue); |
4920 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 5162 subPart = |
| 5163 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
4921 pathOffset = index; | 5164 pathOffset = index; |
4922 unittest.expect(subPart, unittest.equals("$arg_datasetId")); | 5165 unittest.expect(subPart, unittest.equals("$arg_datasetId")); |
4923 unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equ
als(":undelete")); | 5166 unittest.expect(path.substring(pathOffset, pathOffset + 9), |
| 5167 unittest.equals(":undelete")); |
4924 pathOffset += 9; | 5168 pathOffset += 9; |
4925 | 5169 |
4926 var query = (req.url).query; | 5170 var query = (req.url).query; |
4927 var queryOffset = 0; | 5171 var queryOffset = 0; |
4928 var queryMap = {}; | 5172 var queryMap = {}; |
4929 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5173 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4930 parseBool(n) { | 5174 parseBool(n) { |
4931 if (n == "true") return true; | 5175 if (n == "true") return true; |
4932 if (n == "false") return false; | 5176 if (n == "false") return false; |
4933 if (n == null) return null; | 5177 if (n == null) return null; |
4934 throw new core.ArgumentError("Invalid boolean: $n"); | 5178 throw new core.ArgumentError("Invalid boolean: $n"); |
4935 } | 5179 } |
| 5180 |
4936 if (query.length > 0) { | 5181 if (query.length > 0) { |
4937 for (var part in query.split("&")) { | 5182 for (var part in query.split("&")) { |
4938 var keyvalue = part.split("="); | 5183 var keyvalue = part.split("="); |
4939 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5184 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 5185 core.Uri.decodeQueryComponent(keyvalue[1])); |
4940 } | 5186 } |
4941 } | 5187 } |
4942 | 5188 |
4943 | |
4944 var h = { | 5189 var h = { |
4945 "content-type" : "application/json; charset=utf-8", | 5190 "content-type": "application/json; charset=utf-8", |
4946 }; | 5191 }; |
4947 var resp = convert.JSON.encode(buildDataset()); | 5192 var resp = convert.JSON.encode(buildDataset()); |
4948 return new async.Future.value(stringResponse(200, h, resp)); | 5193 return new async.Future.value(stringResponse(200, h, resp)); |
4949 }), true); | 5194 }), true); |
4950 res.undelete(arg_request, arg_datasetId).then(unittest.expectAsync1(((api.
Dataset response) { | 5195 res |
| 5196 .undelete(arg_request, arg_datasetId) |
| 5197 .then(unittest.expectAsync1(((api.Dataset response) { |
4951 checkDataset(response); | 5198 checkDataset(response); |
4952 }))); | 5199 }))); |
4953 }); | 5200 }); |
4954 | |
4955 }); | 5201 }); |
4956 | 5202 |
4957 | |
4958 unittest.group("resource-OperationsResourceApi", () { | 5203 unittest.group("resource-OperationsResourceApi", () { |
4959 unittest.test("method--cancel", () { | 5204 unittest.test("method--cancel", () { |
4960 | |
4961 var mock = new HttpServerMock(); | 5205 var mock = new HttpServerMock(); |
4962 api.OperationsResourceApi res = new api.GenomicsApi(mock).operations; | 5206 api.OperationsResourceApi res = new api.GenomicsApi(mock).operations; |
4963 var arg_request = buildCancelOperationRequest(); | 5207 var arg_request = buildCancelOperationRequest(); |
4964 var arg_name = "foo"; | 5208 var arg_name = "foo"; |
4965 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 5209 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
4966 var obj = new api.CancelOperationRequest.fromJson(json); | 5210 var obj = new api.CancelOperationRequest.fromJson(json); |
4967 checkCancelOperationRequest(obj); | 5211 checkCancelOperationRequest(obj); |
4968 | 5212 |
4969 var path = (req.url).path; | 5213 var path = (req.url).path; |
4970 var pathOffset = 0; | 5214 var pathOffset = 0; |
4971 var index; | 5215 var index; |
4972 var subPart; | 5216 var subPart; |
4973 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5217 unittest.expect( |
| 5218 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
4974 pathOffset += 1; | 5219 pathOffset += 1; |
4975 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 5220 unittest.expect( |
| 5221 path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
4976 pathOffset += 3; | 5222 pathOffset += 3; |
4977 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 5223 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
4978 | 5224 |
4979 var query = (req.url).query; | 5225 var query = (req.url).query; |
4980 var queryOffset = 0; | 5226 var queryOffset = 0; |
4981 var queryMap = {}; | 5227 var queryMap = {}; |
4982 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5228 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
4983 parseBool(n) { | 5229 parseBool(n) { |
4984 if (n == "true") return true; | 5230 if (n == "true") return true; |
4985 if (n == "false") return false; | 5231 if (n == "false") return false; |
4986 if (n == null) return null; | 5232 if (n == null) return null; |
4987 throw new core.ArgumentError("Invalid boolean: $n"); | 5233 throw new core.ArgumentError("Invalid boolean: $n"); |
4988 } | 5234 } |
| 5235 |
4989 if (query.length > 0) { | 5236 if (query.length > 0) { |
4990 for (var part in query.split("&")) { | 5237 for (var part in query.split("&")) { |
4991 var keyvalue = part.split("="); | 5238 var keyvalue = part.split("="); |
4992 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5239 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 5240 core.Uri.decodeQueryComponent(keyvalue[1])); |
4993 } | 5241 } |
4994 } | 5242 } |
4995 | 5243 |
4996 | |
4997 var h = { | 5244 var h = { |
4998 "content-type" : "application/json; charset=utf-8", | 5245 "content-type": "application/json; charset=utf-8", |
4999 }; | 5246 }; |
5000 var resp = convert.JSON.encode(buildEmpty()); | 5247 var resp = convert.JSON.encode(buildEmpty()); |
5001 return new async.Future.value(stringResponse(200, h, resp)); | 5248 return new async.Future.value(stringResponse(200, h, resp)); |
5002 }), true); | 5249 }), true); |
5003 res.cancel(arg_request, arg_name).then(unittest.expectAsync1(((api.Empty r
esponse) { | 5250 res |
| 5251 .cancel(arg_request, arg_name) |
| 5252 .then(unittest.expectAsync1(((api.Empty response) { |
5004 checkEmpty(response); | 5253 checkEmpty(response); |
5005 }))); | 5254 }))); |
5006 }); | 5255 }); |
5007 | 5256 |
5008 unittest.test("method--get", () { | 5257 unittest.test("method--get", () { |
5009 | |
5010 var mock = new HttpServerMock(); | 5258 var mock = new HttpServerMock(); |
5011 api.OperationsResourceApi res = new api.GenomicsApi(mock).operations; | 5259 api.OperationsResourceApi res = new api.GenomicsApi(mock).operations; |
5012 var arg_name = "foo"; | 5260 var arg_name = "foo"; |
5013 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 5261 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5014 var path = (req.url).path; | 5262 var path = (req.url).path; |
5015 var pathOffset = 0; | 5263 var pathOffset = 0; |
5016 var index; | 5264 var index; |
5017 var subPart; | 5265 var subPart; |
5018 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5266 unittest.expect( |
| 5267 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
5019 pathOffset += 1; | 5268 pathOffset += 1; |
5020 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 5269 unittest.expect( |
| 5270 path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
5021 pathOffset += 3; | 5271 pathOffset += 3; |
5022 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 5272 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
5023 | 5273 |
5024 var query = (req.url).query; | 5274 var query = (req.url).query; |
5025 var queryOffset = 0; | 5275 var queryOffset = 0; |
5026 var queryMap = {}; | 5276 var queryMap = {}; |
5027 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5277 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5028 parseBool(n) { | 5278 parseBool(n) { |
5029 if (n == "true") return true; | 5279 if (n == "true") return true; |
5030 if (n == "false") return false; | 5280 if (n == "false") return false; |
5031 if (n == null) return null; | 5281 if (n == null) return null; |
5032 throw new core.ArgumentError("Invalid boolean: $n"); | 5282 throw new core.ArgumentError("Invalid boolean: $n"); |
5033 } | 5283 } |
| 5284 |
5034 if (query.length > 0) { | 5285 if (query.length > 0) { |
5035 for (var part in query.split("&")) { | 5286 for (var part in query.split("&")) { |
5036 var keyvalue = part.split("="); | 5287 var keyvalue = part.split("="); |
5037 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5288 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 5289 core.Uri.decodeQueryComponent(keyvalue[1])); |
5038 } | 5290 } |
5039 } | 5291 } |
5040 | 5292 |
5041 | |
5042 var h = { | 5293 var h = { |
5043 "content-type" : "application/json; charset=utf-8", | 5294 "content-type": "application/json; charset=utf-8", |
5044 }; | 5295 }; |
5045 var resp = convert.JSON.encode(buildOperation()); | 5296 var resp = convert.JSON.encode(buildOperation()); |
5046 return new async.Future.value(stringResponse(200, h, resp)); | 5297 return new async.Future.value(stringResponse(200, h, resp)); |
5047 }), true); | 5298 }), true); |
5048 res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { | 5299 res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { |
5049 checkOperation(response); | 5300 checkOperation(response); |
5050 }))); | 5301 }))); |
5051 }); | 5302 }); |
5052 | 5303 |
5053 unittest.test("method--list", () { | 5304 unittest.test("method--list", () { |
5054 | |
5055 var mock = new HttpServerMock(); | 5305 var mock = new HttpServerMock(); |
5056 api.OperationsResourceApi res = new api.GenomicsApi(mock).operations; | 5306 api.OperationsResourceApi res = new api.GenomicsApi(mock).operations; |
5057 var arg_name = "foo"; | 5307 var arg_name = "foo"; |
5058 var arg_pageToken = "foo"; | 5308 var arg_pageToken = "foo"; |
5059 var arg_pageSize = 42; | 5309 var arg_pageSize = 42; |
5060 var arg_filter = "foo"; | 5310 var arg_filter = "foo"; |
5061 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 5311 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5062 var path = (req.url).path; | 5312 var path = (req.url).path; |
5063 var pathOffset = 0; | 5313 var pathOffset = 0; |
5064 var index; | 5314 var index; |
5065 var subPart; | 5315 var subPart; |
5066 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5316 unittest.expect( |
| 5317 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
5067 pathOffset += 1; | 5318 pathOffset += 1; |
5068 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 5319 unittest.expect( |
| 5320 path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
5069 pathOffset += 3; | 5321 pathOffset += 3; |
5070 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 5322 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
5071 | 5323 |
5072 var query = (req.url).query; | 5324 var query = (req.url).query; |
5073 var queryOffset = 0; | 5325 var queryOffset = 0; |
5074 var queryMap = {}; | 5326 var queryMap = {}; |
5075 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5327 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5076 parseBool(n) { | 5328 parseBool(n) { |
5077 if (n == "true") return true; | 5329 if (n == "true") return true; |
5078 if (n == "false") return false; | 5330 if (n == "false") return false; |
5079 if (n == null) return null; | 5331 if (n == null) return null; |
5080 throw new core.ArgumentError("Invalid boolean: $n"); | 5332 throw new core.ArgumentError("Invalid boolean: $n"); |
5081 } | 5333 } |
| 5334 |
5082 if (query.length > 0) { | 5335 if (query.length > 0) { |
5083 for (var part in query.split("&")) { | 5336 for (var part in query.split("&")) { |
5084 var keyvalue = part.split("="); | 5337 var keyvalue = part.split("="); |
5085 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5338 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 5339 core.Uri.decodeQueryComponent(keyvalue[1])); |
5086 } | 5340 } |
5087 } | 5341 } |
5088 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 5342 unittest.expect( |
5089 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 5343 queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
| 5344 unittest.expect(core.int.parse(queryMap["pageSize"].first), |
| 5345 unittest.equals(arg_pageSize)); |
5090 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 5346 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
5091 | 5347 |
5092 | |
5093 var h = { | 5348 var h = { |
5094 "content-type" : "application/json; charset=utf-8", | 5349 "content-type": "application/json; charset=utf-8", |
5095 }; | 5350 }; |
5096 var resp = convert.JSON.encode(buildListOperationsResponse()); | 5351 var resp = convert.JSON.encode(buildListOperationsResponse()); |
5097 return new async.Future.value(stringResponse(200, h, resp)); | 5352 return new async.Future.value(stringResponse(200, h, resp)); |
5098 }), true); | 5353 }), true); |
5099 res.list(arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize, filte
r: arg_filter).then(unittest.expectAsync1(((api.ListOperationsResponse response)
{ | 5354 res |
| 5355 .list(arg_name, |
| 5356 pageToken: arg_pageToken, |
| 5357 pageSize: arg_pageSize, |
| 5358 filter: arg_filter) |
| 5359 .then(unittest.expectAsync1(((api.ListOperationsResponse response) { |
5100 checkListOperationsResponse(response); | 5360 checkListOperationsResponse(response); |
5101 }))); | 5361 }))); |
5102 }); | 5362 }); |
5103 | |
5104 }); | 5363 }); |
5105 | 5364 |
5106 | |
5107 unittest.group("resource-ReadgroupsetsResourceApi", () { | 5365 unittest.group("resource-ReadgroupsetsResourceApi", () { |
5108 unittest.test("method--delete", () { | 5366 unittest.test("method--delete", () { |
5109 | |
5110 var mock = new HttpServerMock(); | 5367 var mock = new HttpServerMock(); |
5111 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; | 5368 api.ReadgroupsetsResourceApi res = |
| 5369 new api.GenomicsApi(mock).readgroupsets; |
5112 var arg_readGroupSetId = "foo"; | 5370 var arg_readGroupSetId = "foo"; |
5113 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 5371 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5114 var path = (req.url).path; | 5372 var path = (req.url).path; |
5115 var pathOffset = 0; | 5373 var pathOffset = 0; |
5116 var index; | 5374 var index; |
5117 var subPart; | 5375 var subPart; |
5118 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5376 unittest.expect( |
| 5377 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
5119 pathOffset += 1; | 5378 pathOffset += 1; |
5120 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/readgroupsets/")); | 5379 unittest.expect(path.substring(pathOffset, pathOffset + 17), |
| 5380 unittest.equals("v1/readgroupsets/")); |
5121 pathOffset += 17; | 5381 pathOffset += 17; |
5122 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 5382 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
5123 pathOffset = path.length; | 5383 pathOffset = path.length; |
5124 unittest.expect(subPart, unittest.equals("$arg_readGroupSetId")); | 5384 unittest.expect(subPart, unittest.equals("$arg_readGroupSetId")); |
5125 | 5385 |
5126 var query = (req.url).query; | 5386 var query = (req.url).query; |
5127 var queryOffset = 0; | 5387 var queryOffset = 0; |
5128 var queryMap = {}; | 5388 var queryMap = {}; |
5129 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5389 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5130 parseBool(n) { | 5390 parseBool(n) { |
5131 if (n == "true") return true; | 5391 if (n == "true") return true; |
5132 if (n == "false") return false; | 5392 if (n == "false") return false; |
5133 if (n == null) return null; | 5393 if (n == null) return null; |
5134 throw new core.ArgumentError("Invalid boolean: $n"); | 5394 throw new core.ArgumentError("Invalid boolean: $n"); |
5135 } | 5395 } |
| 5396 |
5136 if (query.length > 0) { | 5397 if (query.length > 0) { |
5137 for (var part in query.split("&")) { | 5398 for (var part in query.split("&")) { |
5138 var keyvalue = part.split("="); | 5399 var keyvalue = part.split("="); |
5139 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5400 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 5401 core.Uri.decodeQueryComponent(keyvalue[1])); |
5140 } | 5402 } |
5141 } | 5403 } |
5142 | 5404 |
5143 | |
5144 var h = { | 5405 var h = { |
5145 "content-type" : "application/json; charset=utf-8", | 5406 "content-type": "application/json; charset=utf-8", |
5146 }; | 5407 }; |
5147 var resp = convert.JSON.encode(buildEmpty()); | 5408 var resp = convert.JSON.encode(buildEmpty()); |
5148 return new async.Future.value(stringResponse(200, h, resp)); | 5409 return new async.Future.value(stringResponse(200, h, resp)); |
5149 }), true); | 5410 }), true); |
5150 res.delete(arg_readGroupSetId).then(unittest.expectAsync1(((api.Empty resp
onse) { | 5411 res |
| 5412 .delete(arg_readGroupSetId) |
| 5413 .then(unittest.expectAsync1(((api.Empty response) { |
5151 checkEmpty(response); | 5414 checkEmpty(response); |
5152 }))); | 5415 }))); |
5153 }); | 5416 }); |
5154 | 5417 |
5155 unittest.test("method--export", () { | 5418 unittest.test("method--export", () { |
5156 | |
5157 var mock = new HttpServerMock(); | 5419 var mock = new HttpServerMock(); |
5158 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; | 5420 api.ReadgroupsetsResourceApi res = |
| 5421 new api.GenomicsApi(mock).readgroupsets; |
5159 var arg_request = buildExportReadGroupSetRequest(); | 5422 var arg_request = buildExportReadGroupSetRequest(); |
5160 var arg_readGroupSetId = "foo"; | 5423 var arg_readGroupSetId = "foo"; |
5161 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 5424 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5162 var obj = new api.ExportReadGroupSetRequest.fromJson(json); | 5425 var obj = new api.ExportReadGroupSetRequest.fromJson(json); |
5163 checkExportReadGroupSetRequest(obj); | 5426 checkExportReadGroupSetRequest(obj); |
5164 | 5427 |
5165 var path = (req.url).path; | 5428 var path = (req.url).path; |
5166 var pathOffset = 0; | 5429 var pathOffset = 0; |
5167 var index; | 5430 var index; |
5168 var subPart; | 5431 var subPart; |
5169 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5432 unittest.expect( |
| 5433 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
5170 pathOffset += 1; | 5434 pathOffset += 1; |
5171 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/readgroupsets/")); | 5435 unittest.expect(path.substring(pathOffset, pathOffset + 17), |
| 5436 unittest.equals("v1/readgroupsets/")); |
5172 pathOffset += 17; | 5437 pathOffset += 17; |
5173 index = path.indexOf(":export", pathOffset); | 5438 index = path.indexOf(":export", pathOffset); |
5174 unittest.expect(index >= 0, unittest.isTrue); | 5439 unittest.expect(index >= 0, unittest.isTrue); |
5175 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 5440 subPart = |
| 5441 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
5176 pathOffset = index; | 5442 pathOffset = index; |
5177 unittest.expect(subPart, unittest.equals("$arg_readGroupSetId")); | 5443 unittest.expect(subPart, unittest.equals("$arg_readGroupSetId")); |
5178 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als(":export")); | 5444 unittest.expect(path.substring(pathOffset, pathOffset + 7), |
| 5445 unittest.equals(":export")); |
5179 pathOffset += 7; | 5446 pathOffset += 7; |
5180 | 5447 |
5181 var query = (req.url).query; | 5448 var query = (req.url).query; |
5182 var queryOffset = 0; | 5449 var queryOffset = 0; |
5183 var queryMap = {}; | 5450 var queryMap = {}; |
5184 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5451 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5185 parseBool(n) { | 5452 parseBool(n) { |
5186 if (n == "true") return true; | 5453 if (n == "true") return true; |
5187 if (n == "false") return false; | 5454 if (n == "false") return false; |
5188 if (n == null) return null; | 5455 if (n == null) return null; |
5189 throw new core.ArgumentError("Invalid boolean: $n"); | 5456 throw new core.ArgumentError("Invalid boolean: $n"); |
5190 } | 5457 } |
| 5458 |
5191 if (query.length > 0) { | 5459 if (query.length > 0) { |
5192 for (var part in query.split("&")) { | 5460 for (var part in query.split("&")) { |
5193 var keyvalue = part.split("="); | 5461 var keyvalue = part.split("="); |
5194 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5462 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 5463 core.Uri.decodeQueryComponent(keyvalue[1])); |
5195 } | 5464 } |
5196 } | 5465 } |
5197 | 5466 |
5198 | |
5199 var h = { | 5467 var h = { |
5200 "content-type" : "application/json; charset=utf-8", | 5468 "content-type": "application/json; charset=utf-8", |
5201 }; | 5469 }; |
5202 var resp = convert.JSON.encode(buildOperation()); | 5470 var resp = convert.JSON.encode(buildOperation()); |
5203 return new async.Future.value(stringResponse(200, h, resp)); | 5471 return new async.Future.value(stringResponse(200, h, resp)); |
5204 }), true); | 5472 }), true); |
5205 res.export(arg_request, arg_readGroupSetId).then(unittest.expectAsync1(((a
pi.Operation response) { | 5473 res |
| 5474 .export(arg_request, arg_readGroupSetId) |
| 5475 .then(unittest.expectAsync1(((api.Operation response) { |
5206 checkOperation(response); | 5476 checkOperation(response); |
5207 }))); | 5477 }))); |
5208 }); | 5478 }); |
5209 | 5479 |
5210 unittest.test("method--get", () { | 5480 unittest.test("method--get", () { |
5211 | |
5212 var mock = new HttpServerMock(); | 5481 var mock = new HttpServerMock(); |
5213 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; | 5482 api.ReadgroupsetsResourceApi res = |
| 5483 new api.GenomicsApi(mock).readgroupsets; |
5214 var arg_readGroupSetId = "foo"; | 5484 var arg_readGroupSetId = "foo"; |
5215 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 5485 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5216 var path = (req.url).path; | 5486 var path = (req.url).path; |
5217 var pathOffset = 0; | 5487 var pathOffset = 0; |
5218 var index; | 5488 var index; |
5219 var subPart; | 5489 var subPart; |
5220 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5490 unittest.expect( |
| 5491 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
5221 pathOffset += 1; | 5492 pathOffset += 1; |
5222 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/readgroupsets/")); | 5493 unittest.expect(path.substring(pathOffset, pathOffset + 17), |
| 5494 unittest.equals("v1/readgroupsets/")); |
5223 pathOffset += 17; | 5495 pathOffset += 17; |
5224 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 5496 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
5225 pathOffset = path.length; | 5497 pathOffset = path.length; |
5226 unittest.expect(subPart, unittest.equals("$arg_readGroupSetId")); | 5498 unittest.expect(subPart, unittest.equals("$arg_readGroupSetId")); |
5227 | 5499 |
5228 var query = (req.url).query; | 5500 var query = (req.url).query; |
5229 var queryOffset = 0; | 5501 var queryOffset = 0; |
5230 var queryMap = {}; | 5502 var queryMap = {}; |
5231 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5503 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5232 parseBool(n) { | 5504 parseBool(n) { |
5233 if (n == "true") return true; | 5505 if (n == "true") return true; |
5234 if (n == "false") return false; | 5506 if (n == "false") return false; |
5235 if (n == null) return null; | 5507 if (n == null) return null; |
5236 throw new core.ArgumentError("Invalid boolean: $n"); | 5508 throw new core.ArgumentError("Invalid boolean: $n"); |
5237 } | 5509 } |
| 5510 |
5238 if (query.length > 0) { | 5511 if (query.length > 0) { |
5239 for (var part in query.split("&")) { | 5512 for (var part in query.split("&")) { |
5240 var keyvalue = part.split("="); | 5513 var keyvalue = part.split("="); |
5241 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5514 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 5515 core.Uri.decodeQueryComponent(keyvalue[1])); |
5242 } | 5516 } |
5243 } | 5517 } |
5244 | 5518 |
5245 | |
5246 var h = { | 5519 var h = { |
5247 "content-type" : "application/json; charset=utf-8", | 5520 "content-type": "application/json; charset=utf-8", |
5248 }; | 5521 }; |
5249 var resp = convert.JSON.encode(buildReadGroupSet()); | 5522 var resp = convert.JSON.encode(buildReadGroupSet()); |
5250 return new async.Future.value(stringResponse(200, h, resp)); | 5523 return new async.Future.value(stringResponse(200, h, resp)); |
5251 }), true); | 5524 }), true); |
5252 res.get(arg_readGroupSetId).then(unittest.expectAsync1(((api.ReadGroupSet
response) { | 5525 res |
| 5526 .get(arg_readGroupSetId) |
| 5527 .then(unittest.expectAsync1(((api.ReadGroupSet response) { |
5253 checkReadGroupSet(response); | 5528 checkReadGroupSet(response); |
5254 }))); | 5529 }))); |
5255 }); | 5530 }); |
5256 | 5531 |
5257 unittest.test("method--import", () { | 5532 unittest.test("method--import", () { |
5258 | |
5259 var mock = new HttpServerMock(); | 5533 var mock = new HttpServerMock(); |
5260 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; | 5534 api.ReadgroupsetsResourceApi res = |
| 5535 new api.GenomicsApi(mock).readgroupsets; |
5261 var arg_request = buildImportReadGroupSetsRequest(); | 5536 var arg_request = buildImportReadGroupSetsRequest(); |
5262 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 5537 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5263 var obj = new api.ImportReadGroupSetsRequest.fromJson(json); | 5538 var obj = new api.ImportReadGroupSetsRequest.fromJson(json); |
5264 checkImportReadGroupSetsRequest(obj); | 5539 checkImportReadGroupSetsRequest(obj); |
5265 | 5540 |
5266 var path = (req.url).path; | 5541 var path = (req.url).path; |
5267 var pathOffset = 0; | 5542 var pathOffset = 0; |
5268 var index; | 5543 var index; |
5269 var subPart; | 5544 var subPart; |
5270 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5545 unittest.expect( |
| 5546 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
5271 pathOffset += 1; | 5547 pathOffset += 1; |
5272 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("v1/readgroupsets:import")); | 5548 unittest.expect(path.substring(pathOffset, pathOffset + 23), |
| 5549 unittest.equals("v1/readgroupsets:import")); |
5273 pathOffset += 23; | 5550 pathOffset += 23; |
5274 | 5551 |
5275 var query = (req.url).query; | 5552 var query = (req.url).query; |
5276 var queryOffset = 0; | 5553 var queryOffset = 0; |
5277 var queryMap = {}; | 5554 var queryMap = {}; |
5278 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5555 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5279 parseBool(n) { | 5556 parseBool(n) { |
5280 if (n == "true") return true; | 5557 if (n == "true") return true; |
5281 if (n == "false") return false; | 5558 if (n == "false") return false; |
5282 if (n == null) return null; | 5559 if (n == null) return null; |
5283 throw new core.ArgumentError("Invalid boolean: $n"); | 5560 throw new core.ArgumentError("Invalid boolean: $n"); |
5284 } | 5561 } |
| 5562 |
5285 if (query.length > 0) { | 5563 if (query.length > 0) { |
5286 for (var part in query.split("&")) { | 5564 for (var part in query.split("&")) { |
5287 var keyvalue = part.split("="); | 5565 var keyvalue = part.split("="); |
5288 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5566 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 5567 core.Uri.decodeQueryComponent(keyvalue[1])); |
5289 } | 5568 } |
5290 } | 5569 } |
5291 | 5570 |
5292 | |
5293 var h = { | 5571 var h = { |
5294 "content-type" : "application/json; charset=utf-8", | 5572 "content-type": "application/json; charset=utf-8", |
5295 }; | 5573 }; |
5296 var resp = convert.JSON.encode(buildOperation()); | 5574 var resp = convert.JSON.encode(buildOperation()); |
5297 return new async.Future.value(stringResponse(200, h, resp)); | 5575 return new async.Future.value(stringResponse(200, h, resp)); |
5298 }), true); | 5576 }), true); |
5299 res.import(arg_request).then(unittest.expectAsync1(((api.Operation respons
e) { | 5577 res |
| 5578 .import(arg_request) |
| 5579 .then(unittest.expectAsync1(((api.Operation response) { |
5300 checkOperation(response); | 5580 checkOperation(response); |
5301 }))); | 5581 }))); |
5302 }); | 5582 }); |
5303 | 5583 |
5304 unittest.test("method--patch", () { | 5584 unittest.test("method--patch", () { |
5305 | |
5306 var mock = new HttpServerMock(); | 5585 var mock = new HttpServerMock(); |
5307 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; | 5586 api.ReadgroupsetsResourceApi res = |
| 5587 new api.GenomicsApi(mock).readgroupsets; |
5308 var arg_request = buildReadGroupSet(); | 5588 var arg_request = buildReadGroupSet(); |
5309 var arg_readGroupSetId = "foo"; | 5589 var arg_readGroupSetId = "foo"; |
5310 var arg_updateMask = "foo"; | 5590 var arg_updateMask = "foo"; |
5311 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 5591 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5312 var obj = new api.ReadGroupSet.fromJson(json); | 5592 var obj = new api.ReadGroupSet.fromJson(json); |
5313 checkReadGroupSet(obj); | 5593 checkReadGroupSet(obj); |
5314 | 5594 |
5315 var path = (req.url).path; | 5595 var path = (req.url).path; |
5316 var pathOffset = 0; | 5596 var pathOffset = 0; |
5317 var index; | 5597 var index; |
5318 var subPart; | 5598 var subPart; |
5319 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5599 unittest.expect( |
| 5600 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
5320 pathOffset += 1; | 5601 pathOffset += 1; |
5321 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/readgroupsets/")); | 5602 unittest.expect(path.substring(pathOffset, pathOffset + 17), |
| 5603 unittest.equals("v1/readgroupsets/")); |
5322 pathOffset += 17; | 5604 pathOffset += 17; |
5323 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 5605 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
5324 pathOffset = path.length; | 5606 pathOffset = path.length; |
5325 unittest.expect(subPart, unittest.equals("$arg_readGroupSetId")); | 5607 unittest.expect(subPart, unittest.equals("$arg_readGroupSetId")); |
5326 | 5608 |
5327 var query = (req.url).query; | 5609 var query = (req.url).query; |
5328 var queryOffset = 0; | 5610 var queryOffset = 0; |
5329 var queryMap = {}; | 5611 var queryMap = {}; |
5330 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5612 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5331 parseBool(n) { | 5613 parseBool(n) { |
5332 if (n == "true") return true; | 5614 if (n == "true") return true; |
5333 if (n == "false") return false; | 5615 if (n == "false") return false; |
5334 if (n == null) return null; | 5616 if (n == null) return null; |
5335 throw new core.ArgumentError("Invalid boolean: $n"); | 5617 throw new core.ArgumentError("Invalid boolean: $n"); |
5336 } | 5618 } |
| 5619 |
5337 if (query.length > 0) { | 5620 if (query.length > 0) { |
5338 for (var part in query.split("&")) { | 5621 for (var part in query.split("&")) { |
5339 var keyvalue = part.split("="); | 5622 var keyvalue = part.split("="); |
5340 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5623 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 5624 core.Uri.decodeQueryComponent(keyvalue[1])); |
5341 } | 5625 } |
5342 } | 5626 } |
5343 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); | 5627 unittest.expect( |
5344 | 5628 queryMap["updateMask"].first, unittest.equals(arg_updateMask)); |
5345 | 5629 |
5346 var h = { | 5630 var h = { |
5347 "content-type" : "application/json; charset=utf-8", | 5631 "content-type": "application/json; charset=utf-8", |
5348 }; | 5632 }; |
5349 var resp = convert.JSON.encode(buildReadGroupSet()); | 5633 var resp = convert.JSON.encode(buildReadGroupSet()); |
5350 return new async.Future.value(stringResponse(200, h, resp)); | 5634 return new async.Future.value(stringResponse(200, h, resp)); |
5351 }), true); | 5635 }), true); |
5352 res.patch(arg_request, arg_readGroupSetId, updateMask: arg_updateMask).the
n(unittest.expectAsync1(((api.ReadGroupSet response) { | 5636 res |
| 5637 .patch(arg_request, arg_readGroupSetId, updateMask: arg_updateMask) |
| 5638 .then(unittest.expectAsync1(((api.ReadGroupSet response) { |
5353 checkReadGroupSet(response); | 5639 checkReadGroupSet(response); |
5354 }))); | 5640 }))); |
5355 }); | 5641 }); |
5356 | 5642 |
5357 unittest.test("method--search", () { | 5643 unittest.test("method--search", () { |
5358 | |
5359 var mock = new HttpServerMock(); | 5644 var mock = new HttpServerMock(); |
5360 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; | 5645 api.ReadgroupsetsResourceApi res = |
| 5646 new api.GenomicsApi(mock).readgroupsets; |
5361 var arg_request = buildSearchReadGroupSetsRequest(); | 5647 var arg_request = buildSearchReadGroupSetsRequest(); |
5362 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 5648 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5363 var obj = new api.SearchReadGroupSetsRequest.fromJson(json); | 5649 var obj = new api.SearchReadGroupSetsRequest.fromJson(json); |
5364 checkSearchReadGroupSetsRequest(obj); | 5650 checkSearchReadGroupSetsRequest(obj); |
5365 | 5651 |
5366 var path = (req.url).path; | 5652 var path = (req.url).path; |
5367 var pathOffset = 0; | 5653 var pathOffset = 0; |
5368 var index; | 5654 var index; |
5369 var subPart; | 5655 var subPart; |
5370 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5656 unittest.expect( |
| 5657 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
5371 pathOffset += 1; | 5658 pathOffset += 1; |
5372 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("v1/readgroupsets/search")); | 5659 unittest.expect(path.substring(pathOffset, pathOffset + 23), |
| 5660 unittest.equals("v1/readgroupsets/search")); |
5373 pathOffset += 23; | 5661 pathOffset += 23; |
5374 | 5662 |
5375 var query = (req.url).query; | 5663 var query = (req.url).query; |
5376 var queryOffset = 0; | 5664 var queryOffset = 0; |
5377 var queryMap = {}; | 5665 var queryMap = {}; |
5378 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5666 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5379 parseBool(n) { | 5667 parseBool(n) { |
5380 if (n == "true") return true; | 5668 if (n == "true") return true; |
5381 if (n == "false") return false; | 5669 if (n == "false") return false; |
5382 if (n == null) return null; | 5670 if (n == null) return null; |
5383 throw new core.ArgumentError("Invalid boolean: $n"); | 5671 throw new core.ArgumentError("Invalid boolean: $n"); |
5384 } | 5672 } |
| 5673 |
5385 if (query.length > 0) { | 5674 if (query.length > 0) { |
5386 for (var part in query.split("&")) { | 5675 for (var part in query.split("&")) { |
5387 var keyvalue = part.split("="); | 5676 var keyvalue = part.split("="); |
5388 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5677 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 5678 core.Uri.decodeQueryComponent(keyvalue[1])); |
5389 } | 5679 } |
5390 } | 5680 } |
5391 | 5681 |
5392 | |
5393 var h = { | 5682 var h = { |
5394 "content-type" : "application/json; charset=utf-8", | 5683 "content-type": "application/json; charset=utf-8", |
5395 }; | 5684 }; |
5396 var resp = convert.JSON.encode(buildSearchReadGroupSetsResponse()); | 5685 var resp = convert.JSON.encode(buildSearchReadGroupSetsResponse()); |
5397 return new async.Future.value(stringResponse(200, h, resp)); | 5686 return new async.Future.value(stringResponse(200, h, resp)); |
5398 }), true); | 5687 }), true); |
5399 res.search(arg_request).then(unittest.expectAsync1(((api.SearchReadGroupSe
tsResponse response) { | 5688 res.search(arg_request).then( |
| 5689 unittest.expectAsync1(((api.SearchReadGroupSetsResponse response) { |
5400 checkSearchReadGroupSetsResponse(response); | 5690 checkSearchReadGroupSetsResponse(response); |
5401 }))); | 5691 }))); |
5402 }); | 5692 }); |
5403 | |
5404 }); | 5693 }); |
5405 | 5694 |
5406 | |
5407 unittest.group("resource-ReadgroupsetsCoveragebucketsResourceApi", () { | 5695 unittest.group("resource-ReadgroupsetsCoveragebucketsResourceApi", () { |
5408 unittest.test("method--list", () { | 5696 unittest.test("method--list", () { |
5409 | |
5410 var mock = new HttpServerMock(); | 5697 var mock = new HttpServerMock(); |
5411 api.ReadgroupsetsCoveragebucketsResourceApi res = new api.GenomicsApi(mock
).readgroupsets.coveragebuckets; | 5698 api.ReadgroupsetsCoveragebucketsResourceApi res = |
| 5699 new api.GenomicsApi(mock).readgroupsets.coveragebuckets; |
5412 var arg_readGroupSetId = "foo"; | 5700 var arg_readGroupSetId = "foo"; |
| 5701 var arg_start = "foo"; |
| 5702 var arg_targetBucketWidth = "foo"; |
| 5703 var arg_referenceName = "foo"; |
5413 var arg_end = "foo"; | 5704 var arg_end = "foo"; |
5414 var arg_pageToken = "foo"; | 5705 var arg_pageToken = "foo"; |
5415 var arg_pageSize = 42; | 5706 var arg_pageSize = 42; |
5416 var arg_start = "foo"; | |
5417 var arg_targetBucketWidth = "foo"; | |
5418 var arg_referenceName = "foo"; | |
5419 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 5707 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5420 var path = (req.url).path; | 5708 var path = (req.url).path; |
5421 var pathOffset = 0; | 5709 var pathOffset = 0; |
5422 var index; | 5710 var index; |
5423 var subPart; | 5711 var subPart; |
5424 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5712 unittest.expect( |
| 5713 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
5425 pathOffset += 1; | 5714 pathOffset += 1; |
5426 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/readgroupsets/")); | 5715 unittest.expect(path.substring(pathOffset, pathOffset + 17), |
| 5716 unittest.equals("v1/readgroupsets/")); |
5427 pathOffset += 17; | 5717 pathOffset += 17; |
5428 index = path.indexOf("/coveragebuckets", pathOffset); | 5718 index = path.indexOf("/coveragebuckets", pathOffset); |
5429 unittest.expect(index >= 0, unittest.isTrue); | 5719 unittest.expect(index >= 0, unittest.isTrue); |
5430 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 5720 subPart = |
| 5721 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
5431 pathOffset = index; | 5722 pathOffset = index; |
5432 unittest.expect(subPart, unittest.equals("$arg_readGroupSetId")); | 5723 unittest.expect(subPart, unittest.equals("$arg_readGroupSetId")); |
5433 unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.eq
uals("/coveragebuckets")); | 5724 unittest.expect(path.substring(pathOffset, pathOffset + 16), |
| 5725 unittest.equals("/coveragebuckets")); |
5434 pathOffset += 16; | 5726 pathOffset += 16; |
5435 | 5727 |
5436 var query = (req.url).query; | 5728 var query = (req.url).query; |
5437 var queryOffset = 0; | 5729 var queryOffset = 0; |
5438 var queryMap = {}; | 5730 var queryMap = {}; |
5439 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5731 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5440 parseBool(n) { | 5732 parseBool(n) { |
5441 if (n == "true") return true; | 5733 if (n == "true") return true; |
5442 if (n == "false") return false; | 5734 if (n == "false") return false; |
5443 if (n == null) return null; | 5735 if (n == null) return null; |
5444 throw new core.ArgumentError("Invalid boolean: $n"); | 5736 throw new core.ArgumentError("Invalid boolean: $n"); |
5445 } | 5737 } |
| 5738 |
5446 if (query.length > 0) { | 5739 if (query.length > 0) { |
5447 for (var part in query.split("&")) { | 5740 for (var part in query.split("&")) { |
5448 var keyvalue = part.split("="); | 5741 var keyvalue = part.split("="); |
5449 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5742 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 5743 core.Uri.decodeQueryComponent(keyvalue[1])); |
5450 } | 5744 } |
5451 } | 5745 } |
| 5746 unittest.expect(queryMap["start"].first, unittest.equals(arg_start)); |
| 5747 unittest.expect(queryMap["targetBucketWidth"].first, |
| 5748 unittest.equals(arg_targetBucketWidth)); |
| 5749 unittest.expect(queryMap["referenceName"].first, |
| 5750 unittest.equals(arg_referenceName)); |
5452 unittest.expect(queryMap["end"].first, unittest.equals(arg_end)); | 5751 unittest.expect(queryMap["end"].first, unittest.equals(arg_end)); |
5453 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 5752 unittest.expect( |
5454 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 5753 queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
5455 unittest.expect(queryMap["start"].first, unittest.equals(arg_start)); | 5754 unittest.expect(core.int.parse(queryMap["pageSize"].first), |
5456 unittest.expect(queryMap["targetBucketWidth"].first, unittest.equals(arg
_targetBucketWidth)); | 5755 unittest.equals(arg_pageSize)); |
5457 unittest.expect(queryMap["referenceName"].first, unittest.equals(arg_ref
erenceName)); | |
5458 | |
5459 | 5756 |
5460 var h = { | 5757 var h = { |
5461 "content-type" : "application/json; charset=utf-8", | 5758 "content-type": "application/json; charset=utf-8", |
5462 }; | 5759 }; |
5463 var resp = convert.JSON.encode(buildListCoverageBucketsResponse()); | 5760 var resp = convert.JSON.encode(buildListCoverageBucketsResponse()); |
5464 return new async.Future.value(stringResponse(200, h, resp)); | 5761 return new async.Future.value(stringResponse(200, h, resp)); |
5465 }), true); | 5762 }), true); |
5466 res.list(arg_readGroupSetId, end: arg_end, pageToken: arg_pageToken, pageS
ize: arg_pageSize, start: arg_start, targetBucketWidth: arg_targetBucketWidth, r
eferenceName: arg_referenceName).then(unittest.expectAsync1(((api.ListCoverageBu
cketsResponse response) { | 5763 res |
| 5764 .list(arg_readGroupSetId, |
| 5765 start: arg_start, |
| 5766 targetBucketWidth: arg_targetBucketWidth, |
| 5767 referenceName: arg_referenceName, |
| 5768 end: arg_end, |
| 5769 pageToken: arg_pageToken, |
| 5770 pageSize: arg_pageSize) |
| 5771 .then(unittest |
| 5772 .expectAsync1(((api.ListCoverageBucketsResponse response) { |
5467 checkListCoverageBucketsResponse(response); | 5773 checkListCoverageBucketsResponse(response); |
5468 }))); | 5774 }))); |
5469 }); | 5775 }); |
5470 | |
5471 }); | 5776 }); |
5472 | 5777 |
5473 | |
5474 unittest.group("resource-ReadsResourceApi", () { | 5778 unittest.group("resource-ReadsResourceApi", () { |
5475 unittest.test("method--search", () { | 5779 unittest.test("method--search", () { |
5476 | |
5477 var mock = new HttpServerMock(); | 5780 var mock = new HttpServerMock(); |
5478 api.ReadsResourceApi res = new api.GenomicsApi(mock).reads; | 5781 api.ReadsResourceApi res = new api.GenomicsApi(mock).reads; |
5479 var arg_request = buildSearchReadsRequest(); | 5782 var arg_request = buildSearchReadsRequest(); |
5480 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 5783 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5481 var obj = new api.SearchReadsRequest.fromJson(json); | 5784 var obj = new api.SearchReadsRequest.fromJson(json); |
5482 checkSearchReadsRequest(obj); | 5785 checkSearchReadsRequest(obj); |
5483 | 5786 |
5484 var path = (req.url).path; | 5787 var path = (req.url).path; |
5485 var pathOffset = 0; | 5788 var pathOffset = 0; |
5486 var index; | 5789 var index; |
5487 var subPart; | 5790 var subPart; |
5488 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5791 unittest.expect( |
| 5792 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
5489 pathOffset += 1; | 5793 pathOffset += 1; |
5490 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("v1/reads/search")); | 5794 unittest.expect(path.substring(pathOffset, pathOffset + 15), |
| 5795 unittest.equals("v1/reads/search")); |
5491 pathOffset += 15; | 5796 pathOffset += 15; |
5492 | 5797 |
5493 var query = (req.url).query; | 5798 var query = (req.url).query; |
5494 var queryOffset = 0; | 5799 var queryOffset = 0; |
5495 var queryMap = {}; | 5800 var queryMap = {}; |
5496 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5801 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5497 parseBool(n) { | 5802 parseBool(n) { |
5498 if (n == "true") return true; | 5803 if (n == "true") return true; |
5499 if (n == "false") return false; | 5804 if (n == "false") return false; |
5500 if (n == null) return null; | 5805 if (n == null) return null; |
5501 throw new core.ArgumentError("Invalid boolean: $n"); | 5806 throw new core.ArgumentError("Invalid boolean: $n"); |
5502 } | 5807 } |
| 5808 |
5503 if (query.length > 0) { | 5809 if (query.length > 0) { |
5504 for (var part in query.split("&")) { | 5810 for (var part in query.split("&")) { |
5505 var keyvalue = part.split("="); | 5811 var keyvalue = part.split("="); |
5506 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5812 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 5813 core.Uri.decodeQueryComponent(keyvalue[1])); |
5507 } | 5814 } |
5508 } | 5815 } |
5509 | 5816 |
5510 | |
5511 var h = { | 5817 var h = { |
5512 "content-type" : "application/json; charset=utf-8", | 5818 "content-type": "application/json; charset=utf-8", |
5513 }; | 5819 }; |
5514 var resp = convert.JSON.encode(buildSearchReadsResponse()); | 5820 var resp = convert.JSON.encode(buildSearchReadsResponse()); |
5515 return new async.Future.value(stringResponse(200, h, resp)); | 5821 return new async.Future.value(stringResponse(200, h, resp)); |
5516 }), true); | 5822 }), true); |
5517 res.search(arg_request).then(unittest.expectAsync1(((api.SearchReadsRespon
se response) { | 5823 res |
| 5824 .search(arg_request) |
| 5825 .then(unittest.expectAsync1(((api.SearchReadsResponse response) { |
5518 checkSearchReadsResponse(response); | 5826 checkSearchReadsResponse(response); |
5519 }))); | 5827 }))); |
5520 }); | 5828 }); |
5521 | |
5522 }); | 5829 }); |
5523 | 5830 |
5524 | |
5525 unittest.group("resource-ReferencesResourceApi", () { | 5831 unittest.group("resource-ReferencesResourceApi", () { |
5526 unittest.test("method--get", () { | 5832 unittest.test("method--get", () { |
5527 | |
5528 var mock = new HttpServerMock(); | 5833 var mock = new HttpServerMock(); |
5529 api.ReferencesResourceApi res = new api.GenomicsApi(mock).references; | 5834 api.ReferencesResourceApi res = new api.GenomicsApi(mock).references; |
5530 var arg_referenceId = "foo"; | 5835 var arg_referenceId = "foo"; |
5531 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 5836 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5532 var path = (req.url).path; | 5837 var path = (req.url).path; |
5533 var pathOffset = 0; | 5838 var pathOffset = 0; |
5534 var index; | 5839 var index; |
5535 var subPart; | 5840 var subPart; |
5536 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5841 unittest.expect( |
| 5842 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
5537 pathOffset += 1; | 5843 pathOffset += 1; |
5538 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1/references/")); | 5844 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 5845 unittest.equals("v1/references/")); |
5539 pathOffset += 14; | 5846 pathOffset += 14; |
5540 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 5847 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
5541 pathOffset = path.length; | 5848 pathOffset = path.length; |
5542 unittest.expect(subPart, unittest.equals("$arg_referenceId")); | 5849 unittest.expect(subPart, unittest.equals("$arg_referenceId")); |
5543 | 5850 |
5544 var query = (req.url).query; | 5851 var query = (req.url).query; |
5545 var queryOffset = 0; | 5852 var queryOffset = 0; |
5546 var queryMap = {}; | 5853 var queryMap = {}; |
5547 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5854 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5548 parseBool(n) { | 5855 parseBool(n) { |
5549 if (n == "true") return true; | 5856 if (n == "true") return true; |
5550 if (n == "false") return false; | 5857 if (n == "false") return false; |
5551 if (n == null) return null; | 5858 if (n == null) return null; |
5552 throw new core.ArgumentError("Invalid boolean: $n"); | 5859 throw new core.ArgumentError("Invalid boolean: $n"); |
5553 } | 5860 } |
| 5861 |
5554 if (query.length > 0) { | 5862 if (query.length > 0) { |
5555 for (var part in query.split("&")) { | 5863 for (var part in query.split("&")) { |
5556 var keyvalue = part.split("="); | 5864 var keyvalue = part.split("="); |
5557 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5865 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 5866 core.Uri.decodeQueryComponent(keyvalue[1])); |
5558 } | 5867 } |
5559 } | 5868 } |
5560 | 5869 |
5561 | |
5562 var h = { | 5870 var h = { |
5563 "content-type" : "application/json; charset=utf-8", | 5871 "content-type": "application/json; charset=utf-8", |
5564 }; | 5872 }; |
5565 var resp = convert.JSON.encode(buildReference()); | 5873 var resp = convert.JSON.encode(buildReference()); |
5566 return new async.Future.value(stringResponse(200, h, resp)); | 5874 return new async.Future.value(stringResponse(200, h, resp)); |
5567 }), true); | 5875 }), true); |
5568 res.get(arg_referenceId).then(unittest.expectAsync1(((api.Reference respon
se) { | 5876 res |
| 5877 .get(arg_referenceId) |
| 5878 .then(unittest.expectAsync1(((api.Reference response) { |
5569 checkReference(response); | 5879 checkReference(response); |
5570 }))); | 5880 }))); |
5571 }); | 5881 }); |
5572 | 5882 |
5573 unittest.test("method--search", () { | 5883 unittest.test("method--search", () { |
5574 | |
5575 var mock = new HttpServerMock(); | 5884 var mock = new HttpServerMock(); |
5576 api.ReferencesResourceApi res = new api.GenomicsApi(mock).references; | 5885 api.ReferencesResourceApi res = new api.GenomicsApi(mock).references; |
5577 var arg_request = buildSearchReferencesRequest(); | 5886 var arg_request = buildSearchReferencesRequest(); |
5578 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 5887 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5579 var obj = new api.SearchReferencesRequest.fromJson(json); | 5888 var obj = new api.SearchReferencesRequest.fromJson(json); |
5580 checkSearchReferencesRequest(obj); | 5889 checkSearchReferencesRequest(obj); |
5581 | 5890 |
5582 var path = (req.url).path; | 5891 var path = (req.url).path; |
5583 var pathOffset = 0; | 5892 var pathOffset = 0; |
5584 var index; | 5893 var index; |
5585 var subPart; | 5894 var subPart; |
5586 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5895 unittest.expect( |
| 5896 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
5587 pathOffset += 1; | 5897 pathOffset += 1; |
5588 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("v1/references/search")); | 5898 unittest.expect(path.substring(pathOffset, pathOffset + 20), |
| 5899 unittest.equals("v1/references/search")); |
5589 pathOffset += 20; | 5900 pathOffset += 20; |
5590 | 5901 |
5591 var query = (req.url).query; | 5902 var query = (req.url).query; |
5592 var queryOffset = 0; | 5903 var queryOffset = 0; |
5593 var queryMap = {}; | 5904 var queryMap = {}; |
5594 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5905 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5595 parseBool(n) { | 5906 parseBool(n) { |
5596 if (n == "true") return true; | 5907 if (n == "true") return true; |
5597 if (n == "false") return false; | 5908 if (n == "false") return false; |
5598 if (n == null) return null; | 5909 if (n == null) return null; |
5599 throw new core.ArgumentError("Invalid boolean: $n"); | 5910 throw new core.ArgumentError("Invalid boolean: $n"); |
5600 } | 5911 } |
| 5912 |
5601 if (query.length > 0) { | 5913 if (query.length > 0) { |
5602 for (var part in query.split("&")) { | 5914 for (var part in query.split("&")) { |
5603 var keyvalue = part.split("="); | 5915 var keyvalue = part.split("="); |
5604 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5916 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 5917 core.Uri.decodeQueryComponent(keyvalue[1])); |
5605 } | 5918 } |
5606 } | 5919 } |
5607 | 5920 |
5608 | |
5609 var h = { | 5921 var h = { |
5610 "content-type" : "application/json; charset=utf-8", | 5922 "content-type": "application/json; charset=utf-8", |
5611 }; | 5923 }; |
5612 var resp = convert.JSON.encode(buildSearchReferencesResponse()); | 5924 var resp = convert.JSON.encode(buildSearchReferencesResponse()); |
5613 return new async.Future.value(stringResponse(200, h, resp)); | 5925 return new async.Future.value(stringResponse(200, h, resp)); |
5614 }), true); | 5926 }), true); |
5615 res.search(arg_request).then(unittest.expectAsync1(((api.SearchReferencesR
esponse response) { | 5927 res |
| 5928 .search(arg_request) |
| 5929 .then(unittest.expectAsync1(((api.SearchReferencesResponse response) { |
5616 checkSearchReferencesResponse(response); | 5930 checkSearchReferencesResponse(response); |
5617 }))); | 5931 }))); |
5618 }); | 5932 }); |
5619 | |
5620 }); | 5933 }); |
5621 | 5934 |
5622 | |
5623 unittest.group("resource-ReferencesBasesResourceApi", () { | 5935 unittest.group("resource-ReferencesBasesResourceApi", () { |
5624 unittest.test("method--list", () { | 5936 unittest.test("method--list", () { |
5625 | |
5626 var mock = new HttpServerMock(); | 5937 var mock = new HttpServerMock(); |
5627 api.ReferencesBasesResourceApi res = new api.GenomicsApi(mock).references.
bases; | 5938 api.ReferencesBasesResourceApi res = |
| 5939 new api.GenomicsApi(mock).references.bases; |
5628 var arg_referenceId = "foo"; | 5940 var arg_referenceId = "foo"; |
5629 var arg_pageSize = 42; | |
5630 var arg_start = "foo"; | 5941 var arg_start = "foo"; |
5631 var arg_end = "foo"; | 5942 var arg_end = "foo"; |
5632 var arg_pageToken = "foo"; | 5943 var arg_pageToken = "foo"; |
| 5944 var arg_pageSize = 42; |
5633 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 5945 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5634 var path = (req.url).path; | 5946 var path = (req.url).path; |
5635 var pathOffset = 0; | 5947 var pathOffset = 0; |
5636 var index; | 5948 var index; |
5637 var subPart; | 5949 var subPart; |
5638 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5950 unittest.expect( |
| 5951 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
5639 pathOffset += 1; | 5952 pathOffset += 1; |
5640 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1/references/")); | 5953 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 5954 unittest.equals("v1/references/")); |
5641 pathOffset += 14; | 5955 pathOffset += 14; |
5642 index = path.indexOf("/bases", pathOffset); | 5956 index = path.indexOf("/bases", pathOffset); |
5643 unittest.expect(index >= 0, unittest.isTrue); | 5957 unittest.expect(index >= 0, unittest.isTrue); |
5644 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 5958 subPart = |
| 5959 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
5645 pathOffset = index; | 5960 pathOffset = index; |
5646 unittest.expect(subPart, unittest.equals("$arg_referenceId")); | 5961 unittest.expect(subPart, unittest.equals("$arg_referenceId")); |
5647 unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equ
als("/bases")); | 5962 unittest.expect(path.substring(pathOffset, pathOffset + 6), |
| 5963 unittest.equals("/bases")); |
5648 pathOffset += 6; | 5964 pathOffset += 6; |
5649 | 5965 |
5650 var query = (req.url).query; | 5966 var query = (req.url).query; |
5651 var queryOffset = 0; | 5967 var queryOffset = 0; |
5652 var queryMap = {}; | 5968 var queryMap = {}; |
5653 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 5969 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5654 parseBool(n) { | 5970 parseBool(n) { |
5655 if (n == "true") return true; | 5971 if (n == "true") return true; |
5656 if (n == "false") return false; | 5972 if (n == "false") return false; |
5657 if (n == null) return null; | 5973 if (n == null) return null; |
5658 throw new core.ArgumentError("Invalid boolean: $n"); | 5974 throw new core.ArgumentError("Invalid boolean: $n"); |
5659 } | 5975 } |
| 5976 |
5660 if (query.length > 0) { | 5977 if (query.length > 0) { |
5661 for (var part in query.split("&")) { | 5978 for (var part in query.split("&")) { |
5662 var keyvalue = part.split("="); | 5979 var keyvalue = part.split("="); |
5663 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5980 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 5981 core.Uri.decodeQueryComponent(keyvalue[1])); |
5664 } | 5982 } |
5665 } | 5983 } |
5666 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
5667 unittest.expect(queryMap["start"].first, unittest.equals(arg_start)); | 5984 unittest.expect(queryMap["start"].first, unittest.equals(arg_start)); |
5668 unittest.expect(queryMap["end"].first, unittest.equals(arg_end)); | 5985 unittest.expect(queryMap["end"].first, unittest.equals(arg_end)); |
5669 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 5986 unittest.expect( |
5670 | 5987 queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
| 5988 unittest.expect(core.int.parse(queryMap["pageSize"].first), |
| 5989 unittest.equals(arg_pageSize)); |
5671 | 5990 |
5672 var h = { | 5991 var h = { |
5673 "content-type" : "application/json; charset=utf-8", | 5992 "content-type": "application/json; charset=utf-8", |
5674 }; | 5993 }; |
5675 var resp = convert.JSON.encode(buildListBasesResponse()); | 5994 var resp = convert.JSON.encode(buildListBasesResponse()); |
5676 return new async.Future.value(stringResponse(200, h, resp)); | 5995 return new async.Future.value(stringResponse(200, h, resp)); |
5677 }), true); | 5996 }), true); |
5678 res.list(arg_referenceId, pageSize: arg_pageSize, start: arg_start, end: a
rg_end, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListBasesResp
onse response) { | 5997 res |
| 5998 .list(arg_referenceId, |
| 5999 start: arg_start, |
| 6000 end: arg_end, |
| 6001 pageToken: arg_pageToken, |
| 6002 pageSize: arg_pageSize) |
| 6003 .then(unittest.expectAsync1(((api.ListBasesResponse response) { |
5679 checkListBasesResponse(response); | 6004 checkListBasesResponse(response); |
5680 }))); | 6005 }))); |
5681 }); | 6006 }); |
5682 | |
5683 }); | 6007 }); |
5684 | 6008 |
5685 | |
5686 unittest.group("resource-ReferencesetsResourceApi", () { | 6009 unittest.group("resource-ReferencesetsResourceApi", () { |
5687 unittest.test("method--get", () { | 6010 unittest.test("method--get", () { |
5688 | |
5689 var mock = new HttpServerMock(); | 6011 var mock = new HttpServerMock(); |
5690 api.ReferencesetsResourceApi res = new api.GenomicsApi(mock).referencesets
; | 6012 api.ReferencesetsResourceApi res = |
| 6013 new api.GenomicsApi(mock).referencesets; |
5691 var arg_referenceSetId = "foo"; | 6014 var arg_referenceSetId = "foo"; |
5692 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 6015 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5693 var path = (req.url).path; | 6016 var path = (req.url).path; |
5694 var pathOffset = 0; | 6017 var pathOffset = 0; |
5695 var index; | 6018 var index; |
5696 var subPart; | 6019 var subPart; |
5697 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6020 unittest.expect( |
| 6021 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
5698 pathOffset += 1; | 6022 pathOffset += 1; |
5699 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/referencesets/")); | 6023 unittest.expect(path.substring(pathOffset, pathOffset + 17), |
| 6024 unittest.equals("v1/referencesets/")); |
5700 pathOffset += 17; | 6025 pathOffset += 17; |
5701 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 6026 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
5702 pathOffset = path.length; | 6027 pathOffset = path.length; |
5703 unittest.expect(subPart, unittest.equals("$arg_referenceSetId")); | 6028 unittest.expect(subPart, unittest.equals("$arg_referenceSetId")); |
5704 | 6029 |
5705 var query = (req.url).query; | 6030 var query = (req.url).query; |
5706 var queryOffset = 0; | 6031 var queryOffset = 0; |
5707 var queryMap = {}; | 6032 var queryMap = {}; |
5708 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6033 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5709 parseBool(n) { | 6034 parseBool(n) { |
5710 if (n == "true") return true; | 6035 if (n == "true") return true; |
5711 if (n == "false") return false; | 6036 if (n == "false") return false; |
5712 if (n == null) return null; | 6037 if (n == null) return null; |
5713 throw new core.ArgumentError("Invalid boolean: $n"); | 6038 throw new core.ArgumentError("Invalid boolean: $n"); |
5714 } | 6039 } |
| 6040 |
5715 if (query.length > 0) { | 6041 if (query.length > 0) { |
5716 for (var part in query.split("&")) { | 6042 for (var part in query.split("&")) { |
5717 var keyvalue = part.split("="); | 6043 var keyvalue = part.split("="); |
5718 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6044 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 6045 core.Uri.decodeQueryComponent(keyvalue[1])); |
5719 } | 6046 } |
5720 } | 6047 } |
5721 | 6048 |
5722 | |
5723 var h = { | 6049 var h = { |
5724 "content-type" : "application/json; charset=utf-8", | 6050 "content-type": "application/json; charset=utf-8", |
5725 }; | 6051 }; |
5726 var resp = convert.JSON.encode(buildReferenceSet()); | 6052 var resp = convert.JSON.encode(buildReferenceSet()); |
5727 return new async.Future.value(stringResponse(200, h, resp)); | 6053 return new async.Future.value(stringResponse(200, h, resp)); |
5728 }), true); | 6054 }), true); |
5729 res.get(arg_referenceSetId).then(unittest.expectAsync1(((api.ReferenceSet
response) { | 6055 res |
| 6056 .get(arg_referenceSetId) |
| 6057 .then(unittest.expectAsync1(((api.ReferenceSet response) { |
5730 checkReferenceSet(response); | 6058 checkReferenceSet(response); |
5731 }))); | 6059 }))); |
5732 }); | 6060 }); |
5733 | 6061 |
5734 unittest.test("method--search", () { | 6062 unittest.test("method--search", () { |
5735 | |
5736 var mock = new HttpServerMock(); | 6063 var mock = new HttpServerMock(); |
5737 api.ReferencesetsResourceApi res = new api.GenomicsApi(mock).referencesets
; | 6064 api.ReferencesetsResourceApi res = |
| 6065 new api.GenomicsApi(mock).referencesets; |
5738 var arg_request = buildSearchReferenceSetsRequest(); | 6066 var arg_request = buildSearchReferenceSetsRequest(); |
5739 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 6067 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5740 var obj = new api.SearchReferenceSetsRequest.fromJson(json); | 6068 var obj = new api.SearchReferenceSetsRequest.fromJson(json); |
5741 checkSearchReferenceSetsRequest(obj); | 6069 checkSearchReferenceSetsRequest(obj); |
5742 | 6070 |
5743 var path = (req.url).path; | 6071 var path = (req.url).path; |
5744 var pathOffset = 0; | 6072 var pathOffset = 0; |
5745 var index; | 6073 var index; |
5746 var subPart; | 6074 var subPart; |
5747 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6075 unittest.expect( |
| 6076 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
5748 pathOffset += 1; | 6077 pathOffset += 1; |
5749 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("v1/referencesets/search")); | 6078 unittest.expect(path.substring(pathOffset, pathOffset + 23), |
| 6079 unittest.equals("v1/referencesets/search")); |
5750 pathOffset += 23; | 6080 pathOffset += 23; |
5751 | 6081 |
5752 var query = (req.url).query; | 6082 var query = (req.url).query; |
5753 var queryOffset = 0; | 6083 var queryOffset = 0; |
5754 var queryMap = {}; | 6084 var queryMap = {}; |
5755 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6085 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5756 parseBool(n) { | 6086 parseBool(n) { |
5757 if (n == "true") return true; | 6087 if (n == "true") return true; |
5758 if (n == "false") return false; | 6088 if (n == "false") return false; |
5759 if (n == null) return null; | 6089 if (n == null) return null; |
5760 throw new core.ArgumentError("Invalid boolean: $n"); | 6090 throw new core.ArgumentError("Invalid boolean: $n"); |
5761 } | 6091 } |
| 6092 |
5762 if (query.length > 0) { | 6093 if (query.length > 0) { |
5763 for (var part in query.split("&")) { | 6094 for (var part in query.split("&")) { |
5764 var keyvalue = part.split("="); | 6095 var keyvalue = part.split("="); |
5765 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6096 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 6097 core.Uri.decodeQueryComponent(keyvalue[1])); |
5766 } | 6098 } |
5767 } | 6099 } |
5768 | 6100 |
5769 | |
5770 var h = { | 6101 var h = { |
5771 "content-type" : "application/json; charset=utf-8", | 6102 "content-type": "application/json; charset=utf-8", |
5772 }; | 6103 }; |
5773 var resp = convert.JSON.encode(buildSearchReferenceSetsResponse()); | 6104 var resp = convert.JSON.encode(buildSearchReferenceSetsResponse()); |
5774 return new async.Future.value(stringResponse(200, h, resp)); | 6105 return new async.Future.value(stringResponse(200, h, resp)); |
5775 }), true); | 6106 }), true); |
5776 res.search(arg_request).then(unittest.expectAsync1(((api.SearchReferenceSe
tsResponse response) { | 6107 res.search(arg_request).then( |
| 6108 unittest.expectAsync1(((api.SearchReferenceSetsResponse response) { |
5777 checkSearchReferenceSetsResponse(response); | 6109 checkSearchReferenceSetsResponse(response); |
5778 }))); | 6110 }))); |
5779 }); | 6111 }); |
5780 | |
5781 }); | 6112 }); |
5782 | 6113 |
5783 | |
5784 unittest.group("resource-VariantsResourceApi", () { | 6114 unittest.group("resource-VariantsResourceApi", () { |
5785 unittest.test("method--create", () { | 6115 unittest.test("method--create", () { |
5786 | |
5787 var mock = new HttpServerMock(); | 6116 var mock = new HttpServerMock(); |
5788 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; | 6117 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; |
5789 var arg_request = buildVariant(); | 6118 var arg_request = buildVariant(); |
5790 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 6119 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5791 var obj = new api.Variant.fromJson(json); | 6120 var obj = new api.Variant.fromJson(json); |
5792 checkVariant(obj); | 6121 checkVariant(obj); |
5793 | 6122 |
5794 var path = (req.url).path; | 6123 var path = (req.url).path; |
5795 var pathOffset = 0; | 6124 var pathOffset = 0; |
5796 var index; | 6125 var index; |
5797 var subPart; | 6126 var subPart; |
5798 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6127 unittest.expect( |
| 6128 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
5799 pathOffset += 1; | 6129 pathOffset += 1; |
5800 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("v1/variants")); | 6130 unittest.expect(path.substring(pathOffset, pathOffset + 11), |
| 6131 unittest.equals("v1/variants")); |
5801 pathOffset += 11; | 6132 pathOffset += 11; |
5802 | 6133 |
5803 var query = (req.url).query; | 6134 var query = (req.url).query; |
5804 var queryOffset = 0; | 6135 var queryOffset = 0; |
5805 var queryMap = {}; | 6136 var queryMap = {}; |
5806 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6137 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5807 parseBool(n) { | 6138 parseBool(n) { |
5808 if (n == "true") return true; | 6139 if (n == "true") return true; |
5809 if (n == "false") return false; | 6140 if (n == "false") return false; |
5810 if (n == null) return null; | 6141 if (n == null) return null; |
5811 throw new core.ArgumentError("Invalid boolean: $n"); | 6142 throw new core.ArgumentError("Invalid boolean: $n"); |
5812 } | 6143 } |
| 6144 |
5813 if (query.length > 0) { | 6145 if (query.length > 0) { |
5814 for (var part in query.split("&")) { | 6146 for (var part in query.split("&")) { |
5815 var keyvalue = part.split("="); | 6147 var keyvalue = part.split("="); |
5816 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6148 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 6149 core.Uri.decodeQueryComponent(keyvalue[1])); |
5817 } | 6150 } |
5818 } | 6151 } |
5819 | 6152 |
5820 | |
5821 var h = { | 6153 var h = { |
5822 "content-type" : "application/json; charset=utf-8", | 6154 "content-type": "application/json; charset=utf-8", |
5823 }; | 6155 }; |
5824 var resp = convert.JSON.encode(buildVariant()); | 6156 var resp = convert.JSON.encode(buildVariant()); |
5825 return new async.Future.value(stringResponse(200, h, resp)); | 6157 return new async.Future.value(stringResponse(200, h, resp)); |
5826 }), true); | 6158 }), true); |
5827 res.create(arg_request).then(unittest.expectAsync1(((api.Variant response)
{ | 6159 res |
| 6160 .create(arg_request) |
| 6161 .then(unittest.expectAsync1(((api.Variant response) { |
5828 checkVariant(response); | 6162 checkVariant(response); |
5829 }))); | 6163 }))); |
5830 }); | 6164 }); |
5831 | 6165 |
5832 unittest.test("method--delete", () { | 6166 unittest.test("method--delete", () { |
5833 | |
5834 var mock = new HttpServerMock(); | 6167 var mock = new HttpServerMock(); |
5835 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; | 6168 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; |
5836 var arg_variantId = "foo"; | 6169 var arg_variantId = "foo"; |
5837 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 6170 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5838 var path = (req.url).path; | 6171 var path = (req.url).path; |
5839 var pathOffset = 0; | 6172 var pathOffset = 0; |
5840 var index; | 6173 var index; |
5841 var subPart; | 6174 var subPart; |
5842 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6175 unittest.expect( |
| 6176 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
5843 pathOffset += 1; | 6177 pathOffset += 1; |
5844 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/variants/")); | 6178 unittest.expect(path.substring(pathOffset, pathOffset + 12), |
| 6179 unittest.equals("v1/variants/")); |
5845 pathOffset += 12; | 6180 pathOffset += 12; |
5846 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 6181 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
5847 pathOffset = path.length; | 6182 pathOffset = path.length; |
5848 unittest.expect(subPart, unittest.equals("$arg_variantId")); | 6183 unittest.expect(subPart, unittest.equals("$arg_variantId")); |
5849 | 6184 |
5850 var query = (req.url).query; | 6185 var query = (req.url).query; |
5851 var queryOffset = 0; | 6186 var queryOffset = 0; |
5852 var queryMap = {}; | 6187 var queryMap = {}; |
5853 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6188 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5854 parseBool(n) { | 6189 parseBool(n) { |
5855 if (n == "true") return true; | 6190 if (n == "true") return true; |
5856 if (n == "false") return false; | 6191 if (n == "false") return false; |
5857 if (n == null) return null; | 6192 if (n == null) return null; |
5858 throw new core.ArgumentError("Invalid boolean: $n"); | 6193 throw new core.ArgumentError("Invalid boolean: $n"); |
5859 } | 6194 } |
| 6195 |
5860 if (query.length > 0) { | 6196 if (query.length > 0) { |
5861 for (var part in query.split("&")) { | 6197 for (var part in query.split("&")) { |
5862 var keyvalue = part.split("="); | 6198 var keyvalue = part.split("="); |
5863 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6199 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 6200 core.Uri.decodeQueryComponent(keyvalue[1])); |
5864 } | 6201 } |
5865 } | 6202 } |
5866 | 6203 |
5867 | |
5868 var h = { | 6204 var h = { |
5869 "content-type" : "application/json; charset=utf-8", | 6205 "content-type": "application/json; charset=utf-8", |
5870 }; | 6206 }; |
5871 var resp = convert.JSON.encode(buildEmpty()); | 6207 var resp = convert.JSON.encode(buildEmpty()); |
5872 return new async.Future.value(stringResponse(200, h, resp)); | 6208 return new async.Future.value(stringResponse(200, h, resp)); |
5873 }), true); | 6209 }), true); |
5874 res.delete(arg_variantId).then(unittest.expectAsync1(((api.Empty response)
{ | 6210 res |
| 6211 .delete(arg_variantId) |
| 6212 .then(unittest.expectAsync1(((api.Empty response) { |
5875 checkEmpty(response); | 6213 checkEmpty(response); |
5876 }))); | 6214 }))); |
5877 }); | 6215 }); |
5878 | 6216 |
5879 unittest.test("method--get", () { | 6217 unittest.test("method--get", () { |
5880 | |
5881 var mock = new HttpServerMock(); | 6218 var mock = new HttpServerMock(); |
5882 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; | 6219 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; |
5883 var arg_variantId = "foo"; | 6220 var arg_variantId = "foo"; |
5884 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 6221 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5885 var path = (req.url).path; | 6222 var path = (req.url).path; |
5886 var pathOffset = 0; | 6223 var pathOffset = 0; |
5887 var index; | 6224 var index; |
5888 var subPart; | 6225 var subPart; |
5889 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6226 unittest.expect( |
| 6227 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
5890 pathOffset += 1; | 6228 pathOffset += 1; |
5891 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/variants/")); | 6229 unittest.expect(path.substring(pathOffset, pathOffset + 12), |
| 6230 unittest.equals("v1/variants/")); |
5892 pathOffset += 12; | 6231 pathOffset += 12; |
5893 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 6232 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
5894 pathOffset = path.length; | 6233 pathOffset = path.length; |
5895 unittest.expect(subPart, unittest.equals("$arg_variantId")); | 6234 unittest.expect(subPart, unittest.equals("$arg_variantId")); |
5896 | 6235 |
5897 var query = (req.url).query; | 6236 var query = (req.url).query; |
5898 var queryOffset = 0; | 6237 var queryOffset = 0; |
5899 var queryMap = {}; | 6238 var queryMap = {}; |
5900 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6239 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5901 parseBool(n) { | 6240 parseBool(n) { |
5902 if (n == "true") return true; | 6241 if (n == "true") return true; |
5903 if (n == "false") return false; | 6242 if (n == "false") return false; |
5904 if (n == null) return null; | 6243 if (n == null) return null; |
5905 throw new core.ArgumentError("Invalid boolean: $n"); | 6244 throw new core.ArgumentError("Invalid boolean: $n"); |
5906 } | 6245 } |
| 6246 |
5907 if (query.length > 0) { | 6247 if (query.length > 0) { |
5908 for (var part in query.split("&")) { | 6248 for (var part in query.split("&")) { |
5909 var keyvalue = part.split("="); | 6249 var keyvalue = part.split("="); |
5910 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6250 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 6251 core.Uri.decodeQueryComponent(keyvalue[1])); |
5911 } | 6252 } |
5912 } | 6253 } |
5913 | 6254 |
5914 | |
5915 var h = { | 6255 var h = { |
5916 "content-type" : "application/json; charset=utf-8", | 6256 "content-type": "application/json; charset=utf-8", |
5917 }; | 6257 }; |
5918 var resp = convert.JSON.encode(buildVariant()); | 6258 var resp = convert.JSON.encode(buildVariant()); |
5919 return new async.Future.value(stringResponse(200, h, resp)); | 6259 return new async.Future.value(stringResponse(200, h, resp)); |
5920 }), true); | 6260 }), true); |
5921 res.get(arg_variantId).then(unittest.expectAsync1(((api.Variant response)
{ | 6261 res |
| 6262 .get(arg_variantId) |
| 6263 .then(unittest.expectAsync1(((api.Variant response) { |
5922 checkVariant(response); | 6264 checkVariant(response); |
5923 }))); | 6265 }))); |
5924 }); | 6266 }); |
5925 | 6267 |
5926 unittest.test("method--import", () { | 6268 unittest.test("method--import", () { |
5927 | |
5928 var mock = new HttpServerMock(); | 6269 var mock = new HttpServerMock(); |
5929 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; | 6270 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; |
5930 var arg_request = buildImportVariantsRequest(); | 6271 var arg_request = buildImportVariantsRequest(); |
5931 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 6272 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5932 var obj = new api.ImportVariantsRequest.fromJson(json); | 6273 var obj = new api.ImportVariantsRequest.fromJson(json); |
5933 checkImportVariantsRequest(obj); | 6274 checkImportVariantsRequest(obj); |
5934 | 6275 |
5935 var path = (req.url).path; | 6276 var path = (req.url).path; |
5936 var pathOffset = 0; | 6277 var pathOffset = 0; |
5937 var index; | 6278 var index; |
5938 var subPart; | 6279 var subPart; |
5939 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6280 unittest.expect( |
| 6281 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
5940 pathOffset += 1; | 6282 pathOffset += 1; |
5941 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("v1/variants:import")); | 6283 unittest.expect(path.substring(pathOffset, pathOffset + 18), |
| 6284 unittest.equals("v1/variants:import")); |
5942 pathOffset += 18; | 6285 pathOffset += 18; |
5943 | 6286 |
5944 var query = (req.url).query; | 6287 var query = (req.url).query; |
5945 var queryOffset = 0; | 6288 var queryOffset = 0; |
5946 var queryMap = {}; | 6289 var queryMap = {}; |
5947 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6290 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5948 parseBool(n) { | 6291 parseBool(n) { |
5949 if (n == "true") return true; | 6292 if (n == "true") return true; |
5950 if (n == "false") return false; | 6293 if (n == "false") return false; |
5951 if (n == null) return null; | 6294 if (n == null) return null; |
5952 throw new core.ArgumentError("Invalid boolean: $n"); | 6295 throw new core.ArgumentError("Invalid boolean: $n"); |
5953 } | 6296 } |
| 6297 |
5954 if (query.length > 0) { | 6298 if (query.length > 0) { |
5955 for (var part in query.split("&")) { | 6299 for (var part in query.split("&")) { |
5956 var keyvalue = part.split("="); | 6300 var keyvalue = part.split("="); |
5957 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6301 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 6302 core.Uri.decodeQueryComponent(keyvalue[1])); |
5958 } | 6303 } |
5959 } | 6304 } |
5960 | 6305 |
5961 | |
5962 var h = { | 6306 var h = { |
5963 "content-type" : "application/json; charset=utf-8", | 6307 "content-type": "application/json; charset=utf-8", |
5964 }; | 6308 }; |
5965 var resp = convert.JSON.encode(buildOperation()); | 6309 var resp = convert.JSON.encode(buildOperation()); |
5966 return new async.Future.value(stringResponse(200, h, resp)); | 6310 return new async.Future.value(stringResponse(200, h, resp)); |
5967 }), true); | 6311 }), true); |
5968 res.import(arg_request).then(unittest.expectAsync1(((api.Operation respons
e) { | 6312 res |
| 6313 .import(arg_request) |
| 6314 .then(unittest.expectAsync1(((api.Operation response) { |
5969 checkOperation(response); | 6315 checkOperation(response); |
5970 }))); | 6316 }))); |
5971 }); | 6317 }); |
5972 | 6318 |
5973 unittest.test("method--merge", () { | 6319 unittest.test("method--merge", () { |
5974 | |
5975 var mock = new HttpServerMock(); | 6320 var mock = new HttpServerMock(); |
5976 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; | 6321 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; |
5977 var arg_request = buildMergeVariantsRequest(); | 6322 var arg_request = buildMergeVariantsRequest(); |
5978 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 6323 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
5979 var obj = new api.MergeVariantsRequest.fromJson(json); | 6324 var obj = new api.MergeVariantsRequest.fromJson(json); |
5980 checkMergeVariantsRequest(obj); | 6325 checkMergeVariantsRequest(obj); |
5981 | 6326 |
5982 var path = (req.url).path; | 6327 var path = (req.url).path; |
5983 var pathOffset = 0; | 6328 var pathOffset = 0; |
5984 var index; | 6329 var index; |
5985 var subPart; | 6330 var subPart; |
5986 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6331 unittest.expect( |
| 6332 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
5987 pathOffset += 1; | 6333 pathOffset += 1; |
5988 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/variants:merge")); | 6334 unittest.expect(path.substring(pathOffset, pathOffset + 17), |
| 6335 unittest.equals("v1/variants:merge")); |
5989 pathOffset += 17; | 6336 pathOffset += 17; |
5990 | 6337 |
5991 var query = (req.url).query; | 6338 var query = (req.url).query; |
5992 var queryOffset = 0; | 6339 var queryOffset = 0; |
5993 var queryMap = {}; | 6340 var queryMap = {}; |
5994 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6341 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
5995 parseBool(n) { | 6342 parseBool(n) { |
5996 if (n == "true") return true; | 6343 if (n == "true") return true; |
5997 if (n == "false") return false; | 6344 if (n == "false") return false; |
5998 if (n == null) return null; | 6345 if (n == null) return null; |
5999 throw new core.ArgumentError("Invalid boolean: $n"); | 6346 throw new core.ArgumentError("Invalid boolean: $n"); |
6000 } | 6347 } |
| 6348 |
6001 if (query.length > 0) { | 6349 if (query.length > 0) { |
6002 for (var part in query.split("&")) { | 6350 for (var part in query.split("&")) { |
6003 var keyvalue = part.split("="); | 6351 var keyvalue = part.split("="); |
6004 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6352 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 6353 core.Uri.decodeQueryComponent(keyvalue[1])); |
6005 } | 6354 } |
6006 } | 6355 } |
6007 | 6356 |
6008 | |
6009 var h = { | 6357 var h = { |
6010 "content-type" : "application/json; charset=utf-8", | 6358 "content-type": "application/json; charset=utf-8", |
6011 }; | 6359 }; |
6012 var resp = convert.JSON.encode(buildEmpty()); | 6360 var resp = convert.JSON.encode(buildEmpty()); |
6013 return new async.Future.value(stringResponse(200, h, resp)); | 6361 return new async.Future.value(stringResponse(200, h, resp)); |
6014 }), true); | 6362 }), true); |
6015 res.merge(arg_request).then(unittest.expectAsync1(((api.Empty response) { | 6363 res.merge(arg_request).then(unittest.expectAsync1(((api.Empty response) { |
6016 checkEmpty(response); | 6364 checkEmpty(response); |
6017 }))); | 6365 }))); |
6018 }); | 6366 }); |
6019 | 6367 |
6020 unittest.test("method--patch", () { | 6368 unittest.test("method--patch", () { |
6021 | |
6022 var mock = new HttpServerMock(); | 6369 var mock = new HttpServerMock(); |
6023 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; | 6370 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; |
6024 var arg_request = buildVariant(); | 6371 var arg_request = buildVariant(); |
6025 var arg_variantId = "foo"; | 6372 var arg_variantId = "foo"; |
6026 var arg_updateMask = "foo"; | 6373 var arg_updateMask = "foo"; |
6027 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 6374 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6028 var obj = new api.Variant.fromJson(json); | 6375 var obj = new api.Variant.fromJson(json); |
6029 checkVariant(obj); | 6376 checkVariant(obj); |
6030 | 6377 |
6031 var path = (req.url).path; | 6378 var path = (req.url).path; |
6032 var pathOffset = 0; | 6379 var pathOffset = 0; |
6033 var index; | 6380 var index; |
6034 var subPart; | 6381 var subPart; |
6035 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6382 unittest.expect( |
| 6383 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
6036 pathOffset += 1; | 6384 pathOffset += 1; |
6037 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/variants/")); | 6385 unittest.expect(path.substring(pathOffset, pathOffset + 12), |
| 6386 unittest.equals("v1/variants/")); |
6038 pathOffset += 12; | 6387 pathOffset += 12; |
6039 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 6388 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
6040 pathOffset = path.length; | 6389 pathOffset = path.length; |
6041 unittest.expect(subPart, unittest.equals("$arg_variantId")); | 6390 unittest.expect(subPart, unittest.equals("$arg_variantId")); |
6042 | 6391 |
6043 var query = (req.url).query; | 6392 var query = (req.url).query; |
6044 var queryOffset = 0; | 6393 var queryOffset = 0; |
6045 var queryMap = {}; | 6394 var queryMap = {}; |
6046 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6395 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6047 parseBool(n) { | 6396 parseBool(n) { |
6048 if (n == "true") return true; | 6397 if (n == "true") return true; |
6049 if (n == "false") return false; | 6398 if (n == "false") return false; |
6050 if (n == null) return null; | 6399 if (n == null) return null; |
6051 throw new core.ArgumentError("Invalid boolean: $n"); | 6400 throw new core.ArgumentError("Invalid boolean: $n"); |
6052 } | 6401 } |
| 6402 |
6053 if (query.length > 0) { | 6403 if (query.length > 0) { |
6054 for (var part in query.split("&")) { | 6404 for (var part in query.split("&")) { |
6055 var keyvalue = part.split("="); | 6405 var keyvalue = part.split("="); |
6056 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6406 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 6407 core.Uri.decodeQueryComponent(keyvalue[1])); |
6057 } | 6408 } |
6058 } | 6409 } |
6059 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); | 6410 unittest.expect( |
6060 | 6411 queryMap["updateMask"].first, unittest.equals(arg_updateMask)); |
6061 | 6412 |
6062 var h = { | 6413 var h = { |
6063 "content-type" : "application/json; charset=utf-8", | 6414 "content-type": "application/json; charset=utf-8", |
6064 }; | 6415 }; |
6065 var resp = convert.JSON.encode(buildVariant()); | 6416 var resp = convert.JSON.encode(buildVariant()); |
6066 return new async.Future.value(stringResponse(200, h, resp)); | 6417 return new async.Future.value(stringResponse(200, h, resp)); |
6067 }), true); | 6418 }), true); |
6068 res.patch(arg_request, arg_variantId, updateMask: arg_updateMask).then(uni
ttest.expectAsync1(((api.Variant response) { | 6419 res |
| 6420 .patch(arg_request, arg_variantId, updateMask: arg_updateMask) |
| 6421 .then(unittest.expectAsync1(((api.Variant response) { |
6069 checkVariant(response); | 6422 checkVariant(response); |
6070 }))); | 6423 }))); |
6071 }); | 6424 }); |
6072 | 6425 |
6073 unittest.test("method--search", () { | 6426 unittest.test("method--search", () { |
6074 | |
6075 var mock = new HttpServerMock(); | 6427 var mock = new HttpServerMock(); |
6076 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; | 6428 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; |
6077 var arg_request = buildSearchVariantsRequest(); | 6429 var arg_request = buildSearchVariantsRequest(); |
6078 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 6430 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6079 var obj = new api.SearchVariantsRequest.fromJson(json); | 6431 var obj = new api.SearchVariantsRequest.fromJson(json); |
6080 checkSearchVariantsRequest(obj); | 6432 checkSearchVariantsRequest(obj); |
6081 | 6433 |
6082 var path = (req.url).path; | 6434 var path = (req.url).path; |
6083 var pathOffset = 0; | 6435 var pathOffset = 0; |
6084 var index; | 6436 var index; |
6085 var subPart; | 6437 var subPart; |
6086 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6438 unittest.expect( |
| 6439 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
6087 pathOffset += 1; | 6440 pathOffset += 1; |
6088 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("v1/variants/search")); | 6441 unittest.expect(path.substring(pathOffset, pathOffset + 18), |
| 6442 unittest.equals("v1/variants/search")); |
6089 pathOffset += 18; | 6443 pathOffset += 18; |
6090 | 6444 |
6091 var query = (req.url).query; | 6445 var query = (req.url).query; |
6092 var queryOffset = 0; | 6446 var queryOffset = 0; |
6093 var queryMap = {}; | 6447 var queryMap = {}; |
6094 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6448 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6095 parseBool(n) { | 6449 parseBool(n) { |
6096 if (n == "true") return true; | 6450 if (n == "true") return true; |
6097 if (n == "false") return false; | 6451 if (n == "false") return false; |
6098 if (n == null) return null; | 6452 if (n == null) return null; |
6099 throw new core.ArgumentError("Invalid boolean: $n"); | 6453 throw new core.ArgumentError("Invalid boolean: $n"); |
6100 } | 6454 } |
| 6455 |
6101 if (query.length > 0) { | 6456 if (query.length > 0) { |
6102 for (var part in query.split("&")) { | 6457 for (var part in query.split("&")) { |
6103 var keyvalue = part.split("="); | 6458 var keyvalue = part.split("="); |
6104 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6459 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 6460 core.Uri.decodeQueryComponent(keyvalue[1])); |
6105 } | 6461 } |
6106 } | 6462 } |
6107 | 6463 |
6108 | |
6109 var h = { | 6464 var h = { |
6110 "content-type" : "application/json; charset=utf-8", | 6465 "content-type": "application/json; charset=utf-8", |
6111 }; | 6466 }; |
6112 var resp = convert.JSON.encode(buildSearchVariantsResponse()); | 6467 var resp = convert.JSON.encode(buildSearchVariantsResponse()); |
6113 return new async.Future.value(stringResponse(200, h, resp)); | 6468 return new async.Future.value(stringResponse(200, h, resp)); |
6114 }), true); | 6469 }), true); |
6115 res.search(arg_request).then(unittest.expectAsync1(((api.SearchVariantsRes
ponse response) { | 6470 res |
| 6471 .search(arg_request) |
| 6472 .then(unittest.expectAsync1(((api.SearchVariantsResponse response) { |
6116 checkSearchVariantsResponse(response); | 6473 checkSearchVariantsResponse(response); |
6117 }))); | 6474 }))); |
6118 }); | 6475 }); |
6119 | |
6120 }); | 6476 }); |
6121 | 6477 |
6122 | |
6123 unittest.group("resource-VariantsetsResourceApi", () { | 6478 unittest.group("resource-VariantsetsResourceApi", () { |
6124 unittest.test("method--create", () { | 6479 unittest.test("method--create", () { |
6125 | |
6126 var mock = new HttpServerMock(); | 6480 var mock = new HttpServerMock(); |
6127 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; | 6481 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; |
6128 var arg_request = buildVariantSet(); | 6482 var arg_request = buildVariantSet(); |
6129 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 6483 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6130 var obj = new api.VariantSet.fromJson(json); | 6484 var obj = new api.VariantSet.fromJson(json); |
6131 checkVariantSet(obj); | 6485 checkVariantSet(obj); |
6132 | 6486 |
6133 var path = (req.url).path; | 6487 var path = (req.url).path; |
6134 var pathOffset = 0; | 6488 var pathOffset = 0; |
6135 var index; | 6489 var index; |
6136 var subPart; | 6490 var subPart; |
6137 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6491 unittest.expect( |
| 6492 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
6138 pathOffset += 1; | 6493 pathOffset += 1; |
6139 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1/variantsets")); | 6494 unittest.expect(path.substring(pathOffset, pathOffset + 14), |
| 6495 unittest.equals("v1/variantsets")); |
6140 pathOffset += 14; | 6496 pathOffset += 14; |
6141 | 6497 |
6142 var query = (req.url).query; | 6498 var query = (req.url).query; |
6143 var queryOffset = 0; | 6499 var queryOffset = 0; |
6144 var queryMap = {}; | 6500 var queryMap = {}; |
6145 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6501 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6146 parseBool(n) { | 6502 parseBool(n) { |
6147 if (n == "true") return true; | 6503 if (n == "true") return true; |
6148 if (n == "false") return false; | 6504 if (n == "false") return false; |
6149 if (n == null) return null; | 6505 if (n == null) return null; |
6150 throw new core.ArgumentError("Invalid boolean: $n"); | 6506 throw new core.ArgumentError("Invalid boolean: $n"); |
6151 } | 6507 } |
| 6508 |
6152 if (query.length > 0) { | 6509 if (query.length > 0) { |
6153 for (var part in query.split("&")) { | 6510 for (var part in query.split("&")) { |
6154 var keyvalue = part.split("="); | 6511 var keyvalue = part.split("="); |
6155 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6512 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 6513 core.Uri.decodeQueryComponent(keyvalue[1])); |
6156 } | 6514 } |
6157 } | 6515 } |
6158 | 6516 |
6159 | |
6160 var h = { | 6517 var h = { |
6161 "content-type" : "application/json; charset=utf-8", | 6518 "content-type": "application/json; charset=utf-8", |
6162 }; | 6519 }; |
6163 var resp = convert.JSON.encode(buildVariantSet()); | 6520 var resp = convert.JSON.encode(buildVariantSet()); |
6164 return new async.Future.value(stringResponse(200, h, resp)); | 6521 return new async.Future.value(stringResponse(200, h, resp)); |
6165 }), true); | 6522 }), true); |
6166 res.create(arg_request).then(unittest.expectAsync1(((api.VariantSet respon
se) { | 6523 res |
| 6524 .create(arg_request) |
| 6525 .then(unittest.expectAsync1(((api.VariantSet response) { |
6167 checkVariantSet(response); | 6526 checkVariantSet(response); |
6168 }))); | 6527 }))); |
6169 }); | 6528 }); |
6170 | 6529 |
6171 unittest.test("method--delete", () { | 6530 unittest.test("method--delete", () { |
6172 | |
6173 var mock = new HttpServerMock(); | 6531 var mock = new HttpServerMock(); |
6174 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; | 6532 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; |
6175 var arg_variantSetId = "foo"; | 6533 var arg_variantSetId = "foo"; |
6176 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 6534 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6177 var path = (req.url).path; | 6535 var path = (req.url).path; |
6178 var pathOffset = 0; | 6536 var pathOffset = 0; |
6179 var index; | 6537 var index; |
6180 var subPart; | 6538 var subPart; |
6181 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6539 unittest.expect( |
| 6540 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
6182 pathOffset += 1; | 6541 pathOffset += 1; |
6183 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("v1/variantsets/")); | 6542 unittest.expect(path.substring(pathOffset, pathOffset + 15), |
| 6543 unittest.equals("v1/variantsets/")); |
6184 pathOffset += 15; | 6544 pathOffset += 15; |
6185 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 6545 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
6186 pathOffset = path.length; | 6546 pathOffset = path.length; |
6187 unittest.expect(subPart, unittest.equals("$arg_variantSetId")); | 6547 unittest.expect(subPart, unittest.equals("$arg_variantSetId")); |
6188 | 6548 |
6189 var query = (req.url).query; | 6549 var query = (req.url).query; |
6190 var queryOffset = 0; | 6550 var queryOffset = 0; |
6191 var queryMap = {}; | 6551 var queryMap = {}; |
6192 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6552 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6193 parseBool(n) { | 6553 parseBool(n) { |
6194 if (n == "true") return true; | 6554 if (n == "true") return true; |
6195 if (n == "false") return false; | 6555 if (n == "false") return false; |
6196 if (n == null) return null; | 6556 if (n == null) return null; |
6197 throw new core.ArgumentError("Invalid boolean: $n"); | 6557 throw new core.ArgumentError("Invalid boolean: $n"); |
6198 } | 6558 } |
| 6559 |
6199 if (query.length > 0) { | 6560 if (query.length > 0) { |
6200 for (var part in query.split("&")) { | 6561 for (var part in query.split("&")) { |
6201 var keyvalue = part.split("="); | 6562 var keyvalue = part.split("="); |
6202 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6563 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 6564 core.Uri.decodeQueryComponent(keyvalue[1])); |
6203 } | 6565 } |
6204 } | 6566 } |
6205 | 6567 |
6206 | |
6207 var h = { | 6568 var h = { |
6208 "content-type" : "application/json; charset=utf-8", | 6569 "content-type": "application/json; charset=utf-8", |
6209 }; | 6570 }; |
6210 var resp = convert.JSON.encode(buildEmpty()); | 6571 var resp = convert.JSON.encode(buildEmpty()); |
6211 return new async.Future.value(stringResponse(200, h, resp)); | 6572 return new async.Future.value(stringResponse(200, h, resp)); |
6212 }), true); | 6573 }), true); |
6213 res.delete(arg_variantSetId).then(unittest.expectAsync1(((api.Empty respon
se) { | 6574 res |
| 6575 .delete(arg_variantSetId) |
| 6576 .then(unittest.expectAsync1(((api.Empty response) { |
6214 checkEmpty(response); | 6577 checkEmpty(response); |
6215 }))); | 6578 }))); |
6216 }); | 6579 }); |
6217 | 6580 |
6218 unittest.test("method--export", () { | 6581 unittest.test("method--export", () { |
6219 | |
6220 var mock = new HttpServerMock(); | 6582 var mock = new HttpServerMock(); |
6221 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; | 6583 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; |
6222 var arg_request = buildExportVariantSetRequest(); | 6584 var arg_request = buildExportVariantSetRequest(); |
6223 var arg_variantSetId = "foo"; | 6585 var arg_variantSetId = "foo"; |
6224 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 6586 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6225 var obj = new api.ExportVariantSetRequest.fromJson(json); | 6587 var obj = new api.ExportVariantSetRequest.fromJson(json); |
6226 checkExportVariantSetRequest(obj); | 6588 checkExportVariantSetRequest(obj); |
6227 | 6589 |
6228 var path = (req.url).path; | 6590 var path = (req.url).path; |
6229 var pathOffset = 0; | 6591 var pathOffset = 0; |
6230 var index; | 6592 var index; |
6231 var subPart; | 6593 var subPart; |
6232 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6594 unittest.expect( |
| 6595 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
6233 pathOffset += 1; | 6596 pathOffset += 1; |
6234 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("v1/variantsets/")); | 6597 unittest.expect(path.substring(pathOffset, pathOffset + 15), |
| 6598 unittest.equals("v1/variantsets/")); |
6235 pathOffset += 15; | 6599 pathOffset += 15; |
6236 index = path.indexOf(":export", pathOffset); | 6600 index = path.indexOf(":export", pathOffset); |
6237 unittest.expect(index >= 0, unittest.isTrue); | 6601 unittest.expect(index >= 0, unittest.isTrue); |
6238 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index
)); | 6602 subPart = |
| 6603 core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
6239 pathOffset = index; | 6604 pathOffset = index; |
6240 unittest.expect(subPart, unittest.equals("$arg_variantSetId")); | 6605 unittest.expect(subPart, unittest.equals("$arg_variantSetId")); |
6241 unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equ
als(":export")); | 6606 unittest.expect(path.substring(pathOffset, pathOffset + 7), |
| 6607 unittest.equals(":export")); |
6242 pathOffset += 7; | 6608 pathOffset += 7; |
6243 | 6609 |
6244 var query = (req.url).query; | 6610 var query = (req.url).query; |
6245 var queryOffset = 0; | 6611 var queryOffset = 0; |
6246 var queryMap = {}; | 6612 var queryMap = {}; |
6247 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6613 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6248 parseBool(n) { | 6614 parseBool(n) { |
6249 if (n == "true") return true; | 6615 if (n == "true") return true; |
6250 if (n == "false") return false; | 6616 if (n == "false") return false; |
6251 if (n == null) return null; | 6617 if (n == null) return null; |
6252 throw new core.ArgumentError("Invalid boolean: $n"); | 6618 throw new core.ArgumentError("Invalid boolean: $n"); |
6253 } | 6619 } |
| 6620 |
6254 if (query.length > 0) { | 6621 if (query.length > 0) { |
6255 for (var part in query.split("&")) { | 6622 for (var part in query.split("&")) { |
6256 var keyvalue = part.split("="); | 6623 var keyvalue = part.split("="); |
6257 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6624 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 6625 core.Uri.decodeQueryComponent(keyvalue[1])); |
6258 } | 6626 } |
6259 } | 6627 } |
6260 | 6628 |
6261 | |
6262 var h = { | 6629 var h = { |
6263 "content-type" : "application/json; charset=utf-8", | 6630 "content-type": "application/json; charset=utf-8", |
6264 }; | 6631 }; |
6265 var resp = convert.JSON.encode(buildOperation()); | 6632 var resp = convert.JSON.encode(buildOperation()); |
6266 return new async.Future.value(stringResponse(200, h, resp)); | 6633 return new async.Future.value(stringResponse(200, h, resp)); |
6267 }), true); | 6634 }), true); |
6268 res.export(arg_request, arg_variantSetId).then(unittest.expectAsync1(((api
.Operation response) { | 6635 res |
| 6636 .export(arg_request, arg_variantSetId) |
| 6637 .then(unittest.expectAsync1(((api.Operation response) { |
6269 checkOperation(response); | 6638 checkOperation(response); |
6270 }))); | 6639 }))); |
6271 }); | 6640 }); |
6272 | 6641 |
6273 unittest.test("method--get", () { | 6642 unittest.test("method--get", () { |
6274 | |
6275 var mock = new HttpServerMock(); | 6643 var mock = new HttpServerMock(); |
6276 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; | 6644 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; |
6277 var arg_variantSetId = "foo"; | 6645 var arg_variantSetId = "foo"; |
6278 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 6646 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6279 var path = (req.url).path; | 6647 var path = (req.url).path; |
6280 var pathOffset = 0; | 6648 var pathOffset = 0; |
6281 var index; | 6649 var index; |
6282 var subPart; | 6650 var subPart; |
6283 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6651 unittest.expect( |
| 6652 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
6284 pathOffset += 1; | 6653 pathOffset += 1; |
6285 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("v1/variantsets/")); | 6654 unittest.expect(path.substring(pathOffset, pathOffset + 15), |
| 6655 unittest.equals("v1/variantsets/")); |
6286 pathOffset += 15; | 6656 pathOffset += 15; |
6287 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 6657 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
6288 pathOffset = path.length; | 6658 pathOffset = path.length; |
6289 unittest.expect(subPart, unittest.equals("$arg_variantSetId")); | 6659 unittest.expect(subPart, unittest.equals("$arg_variantSetId")); |
6290 | 6660 |
6291 var query = (req.url).query; | 6661 var query = (req.url).query; |
6292 var queryOffset = 0; | 6662 var queryOffset = 0; |
6293 var queryMap = {}; | 6663 var queryMap = {}; |
6294 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6664 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6295 parseBool(n) { | 6665 parseBool(n) { |
6296 if (n == "true") return true; | 6666 if (n == "true") return true; |
6297 if (n == "false") return false; | 6667 if (n == "false") return false; |
6298 if (n == null) return null; | 6668 if (n == null) return null; |
6299 throw new core.ArgumentError("Invalid boolean: $n"); | 6669 throw new core.ArgumentError("Invalid boolean: $n"); |
6300 } | 6670 } |
| 6671 |
6301 if (query.length > 0) { | 6672 if (query.length > 0) { |
6302 for (var part in query.split("&")) { | 6673 for (var part in query.split("&")) { |
6303 var keyvalue = part.split("="); | 6674 var keyvalue = part.split("="); |
6304 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6675 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 6676 core.Uri.decodeQueryComponent(keyvalue[1])); |
6305 } | 6677 } |
6306 } | 6678 } |
6307 | 6679 |
6308 | |
6309 var h = { | 6680 var h = { |
6310 "content-type" : "application/json; charset=utf-8", | 6681 "content-type": "application/json; charset=utf-8", |
6311 }; | 6682 }; |
6312 var resp = convert.JSON.encode(buildVariantSet()); | 6683 var resp = convert.JSON.encode(buildVariantSet()); |
6313 return new async.Future.value(stringResponse(200, h, resp)); | 6684 return new async.Future.value(stringResponse(200, h, resp)); |
6314 }), true); | 6685 }), true); |
6315 res.get(arg_variantSetId).then(unittest.expectAsync1(((api.VariantSet resp
onse) { | 6686 res |
| 6687 .get(arg_variantSetId) |
| 6688 .then(unittest.expectAsync1(((api.VariantSet response) { |
6316 checkVariantSet(response); | 6689 checkVariantSet(response); |
6317 }))); | 6690 }))); |
6318 }); | 6691 }); |
6319 | 6692 |
6320 unittest.test("method--patch", () { | 6693 unittest.test("method--patch", () { |
6321 | |
6322 var mock = new HttpServerMock(); | 6694 var mock = new HttpServerMock(); |
6323 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; | 6695 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; |
6324 var arg_request = buildVariantSet(); | 6696 var arg_request = buildVariantSet(); |
6325 var arg_variantSetId = "foo"; | 6697 var arg_variantSetId = "foo"; |
6326 var arg_updateMask = "foo"; | 6698 var arg_updateMask = "foo"; |
6327 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 6699 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6328 var obj = new api.VariantSet.fromJson(json); | 6700 var obj = new api.VariantSet.fromJson(json); |
6329 checkVariantSet(obj); | 6701 checkVariantSet(obj); |
6330 | 6702 |
6331 var path = (req.url).path; | 6703 var path = (req.url).path; |
6332 var pathOffset = 0; | 6704 var pathOffset = 0; |
6333 var index; | 6705 var index; |
6334 var subPart; | 6706 var subPart; |
6335 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6707 unittest.expect( |
| 6708 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
6336 pathOffset += 1; | 6709 pathOffset += 1; |
6337 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("v1/variantsets/")); | 6710 unittest.expect(path.substring(pathOffset, pathOffset + 15), |
| 6711 unittest.equals("v1/variantsets/")); |
6338 pathOffset += 15; | 6712 pathOffset += 15; |
6339 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 6713 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
6340 pathOffset = path.length; | 6714 pathOffset = path.length; |
6341 unittest.expect(subPart, unittest.equals("$arg_variantSetId")); | 6715 unittest.expect(subPart, unittest.equals("$arg_variantSetId")); |
6342 | 6716 |
6343 var query = (req.url).query; | 6717 var query = (req.url).query; |
6344 var queryOffset = 0; | 6718 var queryOffset = 0; |
6345 var queryMap = {}; | 6719 var queryMap = {}; |
6346 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6720 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6347 parseBool(n) { | 6721 parseBool(n) { |
6348 if (n == "true") return true; | 6722 if (n == "true") return true; |
6349 if (n == "false") return false; | 6723 if (n == "false") return false; |
6350 if (n == null) return null; | 6724 if (n == null) return null; |
6351 throw new core.ArgumentError("Invalid boolean: $n"); | 6725 throw new core.ArgumentError("Invalid boolean: $n"); |
6352 } | 6726 } |
| 6727 |
6353 if (query.length > 0) { | 6728 if (query.length > 0) { |
6354 for (var part in query.split("&")) { | 6729 for (var part in query.split("&")) { |
6355 var keyvalue = part.split("="); | 6730 var keyvalue = part.split("="); |
6356 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6731 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 6732 core.Uri.decodeQueryComponent(keyvalue[1])); |
6357 } | 6733 } |
6358 } | 6734 } |
6359 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); | 6735 unittest.expect( |
6360 | 6736 queryMap["updateMask"].first, unittest.equals(arg_updateMask)); |
6361 | 6737 |
6362 var h = { | 6738 var h = { |
6363 "content-type" : "application/json; charset=utf-8", | 6739 "content-type": "application/json; charset=utf-8", |
6364 }; | 6740 }; |
6365 var resp = convert.JSON.encode(buildVariantSet()); | 6741 var resp = convert.JSON.encode(buildVariantSet()); |
6366 return new async.Future.value(stringResponse(200, h, resp)); | 6742 return new async.Future.value(stringResponse(200, h, resp)); |
6367 }), true); | 6743 }), true); |
6368 res.patch(arg_request, arg_variantSetId, updateMask: arg_updateMask).then(
unittest.expectAsync1(((api.VariantSet response) { | 6744 res |
| 6745 .patch(arg_request, arg_variantSetId, updateMask: arg_updateMask) |
| 6746 .then(unittest.expectAsync1(((api.VariantSet response) { |
6369 checkVariantSet(response); | 6747 checkVariantSet(response); |
6370 }))); | 6748 }))); |
6371 }); | 6749 }); |
6372 | 6750 |
6373 unittest.test("method--search", () { | 6751 unittest.test("method--search", () { |
6374 | |
6375 var mock = new HttpServerMock(); | 6752 var mock = new HttpServerMock(); |
6376 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; | 6753 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; |
6377 var arg_request = buildSearchVariantSetsRequest(); | 6754 var arg_request = buildSearchVariantSetsRequest(); |
6378 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 6755 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
6379 var obj = new api.SearchVariantSetsRequest.fromJson(json); | 6756 var obj = new api.SearchVariantSetsRequest.fromJson(json); |
6380 checkSearchVariantSetsRequest(obj); | 6757 checkSearchVariantSetsRequest(obj); |
6381 | 6758 |
6382 var path = (req.url).path; | 6759 var path = (req.url).path; |
6383 var pathOffset = 0; | 6760 var pathOffset = 0; |
6384 var index; | 6761 var index; |
6385 var subPart; | 6762 var subPart; |
6386 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6763 unittest.expect( |
| 6764 path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
6387 pathOffset += 1; | 6765 pathOffset += 1; |
6388 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("v1/variantsets/search")); | 6766 unittest.expect(path.substring(pathOffset, pathOffset + 21), |
| 6767 unittest.equals("v1/variantsets/search")); |
6389 pathOffset += 21; | 6768 pathOffset += 21; |
6390 | 6769 |
6391 var query = (req.url).query; | 6770 var query = (req.url).query; |
6392 var queryOffset = 0; | 6771 var queryOffset = 0; |
6393 var queryMap = {}; | 6772 var queryMap = {}; |
6394 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 6773 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
6395 parseBool(n) { | 6774 parseBool(n) { |
6396 if (n == "true") return true; | 6775 if (n == "true") return true; |
6397 if (n == "false") return false; | 6776 if (n == "false") return false; |
6398 if (n == null) return null; | 6777 if (n == null) return null; |
6399 throw new core.ArgumentError("Invalid boolean: $n"); | 6778 throw new core.ArgumentError("Invalid boolean: $n"); |
6400 } | 6779 } |
| 6780 |
6401 if (query.length > 0) { | 6781 if (query.length > 0) { |
6402 for (var part in query.split("&")) { | 6782 for (var part in query.split("&")) { |
6403 var keyvalue = part.split("="); | 6783 var keyvalue = part.split("="); |
6404 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 6784 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), |
| 6785 core.Uri.decodeQueryComponent(keyvalue[1])); |
6405 } | 6786 } |
6406 } | 6787 } |
6407 | 6788 |
6408 | |
6409 var h = { | 6789 var h = { |
6410 "content-type" : "application/json; charset=utf-8", | 6790 "content-type": "application/json; charset=utf-8", |
6411 }; | 6791 }; |
6412 var resp = convert.JSON.encode(buildSearchVariantSetsResponse()); | 6792 var resp = convert.JSON.encode(buildSearchVariantSetsResponse()); |
6413 return new async.Future.value(stringResponse(200, h, resp)); | 6793 return new async.Future.value(stringResponse(200, h, resp)); |
6414 }), true); | 6794 }), true); |
6415 res.search(arg_request).then(unittest.expectAsync1(((api.SearchVariantSets
Response response) { | 6795 res.search(arg_request).then( |
| 6796 unittest.expectAsync1(((api.SearchVariantSetsResponse response) { |
6416 checkSearchVariantSetsResponse(response); | 6797 checkSearchVariantSetsResponse(response); |
6417 }))); | 6798 }))); |
6418 }); | 6799 }); |
6419 | |
6420 }); | 6800 }); |
6421 | |
6422 | |
6423 } | 6801 } |
6424 | |
OLD | NEW |