| 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; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:test/test.dart' as unittest; |
| 11 | 11 |
| 12 import 'package:googleapis/genomics/v1.dart' as api; | 12 import 'package:googleapis/genomics/v1.dart' as api; |
| 13 | 13 |
| 14 class HttpServerMock extends http.BaseClient { | 14 class HttpServerMock extends http.BaseClient { |
| 15 core.Function _callback; | 15 core.Function _callback; |
| 16 core.bool _expectJson; | 16 core.bool _expectJson; |
| 17 | 17 |
| 18 void register(core.Function callback, core.bool expectJson) { | 18 void register(core.Function callback, core.bool expectJson) { |
| 19 _callback = callback; | 19 _callback = callback; |
| 20 _expectJson = expectJson; | 20 _expectJson = expectJson; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 39 } else { | 39 } else { |
| 40 return stream.toBytes().then((data) { | 40 return stream.toBytes().then((data) { |
| 41 return _callback(request, data); | 41 return _callback(request, data); |
| 42 }); | 42 }); |
| 43 } | 43 } |
| 44 } | 44 } |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 | 47 |
| 48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
| 49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map<core.String, core.String> headers, core.String bod
y) { |
| 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
| 51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
| 52 } | 52 } |
| 53 | 53 |
| 54 buildUnnamed2922() { | 54 buildUnnamed2392() { |
| 55 var o = new core.List<core.Object>(); | 55 var o = new core.List<core.Object>(); |
| 56 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 56 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 57 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 57 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 58 return o; | 58 return o; |
| 59 } | 59 } |
| 60 | 60 |
| 61 checkUnnamed2922(core.List<core.Object> o) { | 61 checkUnnamed2392(core.List<core.Object> o) { |
| 62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
| 63 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(
3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u
nittest.equals('foo')); | 63 var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(
3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], u
nittest.equals('foo')); |
| 64 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(
3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u
nittest.equals('foo')); | 64 var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(
3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expe
ct(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], u
nittest.equals('foo')); |
| 65 } | 65 } |
| 66 | 66 |
| 67 buildUnnamed2923() { | 67 buildUnnamed2393() { |
| 68 var o = new core.Map<core.String, core.List<core.Object>>(); | 68 var o = new core.Map<core.String, core.List<core.Object>>(); |
| 69 o["x"] = buildUnnamed2922(); | 69 o["x"] = buildUnnamed2392(); |
| 70 o["y"] = buildUnnamed2922(); | 70 o["y"] = buildUnnamed2392(); |
| 71 return o; | 71 return o; |
| 72 } | 72 } |
| 73 | 73 |
| 74 checkUnnamed2923(core.Map<core.String, core.List<core.Object>> o) { | 74 checkUnnamed2393(core.Map<core.String, core.List<core.Object>> o) { |
| 75 unittest.expect(o, unittest.hasLength(2)); | 75 unittest.expect(o, unittest.hasLength(2)); |
| 76 checkUnnamed2922(o["x"]); | 76 checkUnnamed2392(o["x"]); |
| 77 checkUnnamed2922(o["y"]); | 77 checkUnnamed2392(o["y"]); |
| 78 } | 78 } |
| 79 | 79 |
| 80 core.int buildCounterAnnotation = 0; | 80 core.int buildCounterAnnotation = 0; |
| 81 buildAnnotation() { | 81 buildAnnotation() { |
| 82 var o = new api.Annotation(); | 82 var o = new api.Annotation(); |
| 83 buildCounterAnnotation++; | 83 buildCounterAnnotation++; |
| 84 if (buildCounterAnnotation < 3) { | 84 if (buildCounterAnnotation < 3) { |
| 85 o.annotationSetId = "foo"; | 85 o.annotationSetId = "foo"; |
| 86 o.end = "foo"; | 86 o.end = "foo"; |
| 87 o.id = "foo"; | 87 o.id = "foo"; |
| 88 o.info = buildUnnamed2923(); | 88 o.info = buildUnnamed2393(); |
| 89 o.name = "foo"; | 89 o.name = "foo"; |
| 90 o.referenceId = "foo"; | 90 o.referenceId = "foo"; |
| 91 o.referenceName = "foo"; | 91 o.referenceName = "foo"; |
| 92 o.reverseStrand = true; | 92 o.reverseStrand = true; |
| 93 o.start = "foo"; | 93 o.start = "foo"; |
| 94 o.transcript = buildTranscript(); | 94 o.transcript = buildTranscript(); |
| 95 o.type = "foo"; | 95 o.type = "foo"; |
| 96 o.variant = buildVariantAnnotation(); | 96 o.variant = buildVariantAnnotation(); |
| 97 } | 97 } |
| 98 buildCounterAnnotation--; | 98 buildCounterAnnotation--; |
| 99 return o; | 99 return o; |
| 100 } | 100 } |
| 101 | 101 |
| 102 checkAnnotation(api.Annotation o) { | 102 checkAnnotation(api.Annotation o) { |
| 103 buildCounterAnnotation++; | 103 buildCounterAnnotation++; |
| 104 if (buildCounterAnnotation < 3) { | 104 if (buildCounterAnnotation < 3) { |
| 105 unittest.expect(o.annotationSetId, unittest.equals('foo')); | 105 unittest.expect(o.annotationSetId, unittest.equals('foo')); |
| 106 unittest.expect(o.end, unittest.equals('foo')); | 106 unittest.expect(o.end, unittest.equals('foo')); |
| 107 unittest.expect(o.id, unittest.equals('foo')); | 107 unittest.expect(o.id, unittest.equals('foo')); |
| 108 checkUnnamed2923(o.info); | 108 checkUnnamed2393(o.info); |
| 109 unittest.expect(o.name, unittest.equals('foo')); | 109 unittest.expect(o.name, unittest.equals('foo')); |
| 110 unittest.expect(o.referenceId, unittest.equals('foo')); | 110 unittest.expect(o.referenceId, unittest.equals('foo')); |
| 111 unittest.expect(o.referenceName, unittest.equals('foo')); | 111 unittest.expect(o.referenceName, unittest.equals('foo')); |
| 112 unittest.expect(o.reverseStrand, unittest.isTrue); | 112 unittest.expect(o.reverseStrand, unittest.isTrue); |
| 113 unittest.expect(o.start, unittest.equals('foo')); | 113 unittest.expect(o.start, unittest.equals('foo')); |
| 114 checkTranscript(o.transcript); | 114 checkTranscript(o.transcript); |
| 115 unittest.expect(o.type, unittest.equals('foo')); | 115 unittest.expect(o.type, unittest.equals('foo')); |
| 116 checkVariantAnnotation(o.variant); | 116 checkVariantAnnotation(o.variant); |
| 117 } | 117 } |
| 118 buildCounterAnnotation--; | 118 buildCounterAnnotation--; |
| 119 } | 119 } |
| 120 | 120 |
| 121 buildUnnamed2924() { | 121 buildUnnamed2394() { |
| 122 var o = new core.List<core.Object>(); | 122 var o = new core.List<core.Object>(); |
| 123 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 123 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 124 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 124 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 125 return o; | 125 return o; |
| 126 } | 126 } |
| 127 | 127 |
| 128 checkUnnamed2924(core.List<core.Object> o) { | 128 checkUnnamed2394(core.List<core.Object> o) { |
| 129 unittest.expect(o, unittest.hasLength(2)); | 129 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')); | 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')); |
| 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')); | 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')); |
| 132 } | 132 } |
| 133 | 133 |
| 134 buildUnnamed2925() { | 134 buildUnnamed2395() { |
| 135 var o = new core.Map<core.String, core.List<core.Object>>(); | 135 var o = new core.Map<core.String, core.List<core.Object>>(); |
| 136 o["x"] = buildUnnamed2924(); | 136 o["x"] = buildUnnamed2394(); |
| 137 o["y"] = buildUnnamed2924(); | 137 o["y"] = buildUnnamed2394(); |
| 138 return o; | 138 return o; |
| 139 } | 139 } |
| 140 | 140 |
| 141 checkUnnamed2925(core.Map<core.String, core.List<core.Object>> o) { | 141 checkUnnamed2395(core.Map<core.String, core.List<core.Object>> o) { |
| 142 unittest.expect(o, unittest.hasLength(2)); | 142 unittest.expect(o, unittest.hasLength(2)); |
| 143 checkUnnamed2924(o["x"]); | 143 checkUnnamed2394(o["x"]); |
| 144 checkUnnamed2924(o["y"]); | 144 checkUnnamed2394(o["y"]); |
| 145 } | 145 } |
| 146 | 146 |
| 147 core.int buildCounterAnnotationSet = 0; | 147 core.int buildCounterAnnotationSet = 0; |
| 148 buildAnnotationSet() { | 148 buildAnnotationSet() { |
| 149 var o = new api.AnnotationSet(); | 149 var o = new api.AnnotationSet(); |
| 150 buildCounterAnnotationSet++; | 150 buildCounterAnnotationSet++; |
| 151 if (buildCounterAnnotationSet < 3) { | 151 if (buildCounterAnnotationSet < 3) { |
| 152 o.datasetId = "foo"; | 152 o.datasetId = "foo"; |
| 153 o.id = "foo"; | 153 o.id = "foo"; |
| 154 o.info = buildUnnamed2925(); | 154 o.info = buildUnnamed2395(); |
| 155 o.name = "foo"; | 155 o.name = "foo"; |
| 156 o.referenceSetId = "foo"; | 156 o.referenceSetId = "foo"; |
| 157 o.sourceUri = "foo"; | 157 o.sourceUri = "foo"; |
| 158 o.type = "foo"; | 158 o.type = "foo"; |
| 159 } | 159 } |
| 160 buildCounterAnnotationSet--; | 160 buildCounterAnnotationSet--; |
| 161 return o; | 161 return o; |
| 162 } | 162 } |
| 163 | 163 |
| 164 checkAnnotationSet(api.AnnotationSet o) { | 164 checkAnnotationSet(api.AnnotationSet o) { |
| 165 buildCounterAnnotationSet++; | 165 buildCounterAnnotationSet++; |
| 166 if (buildCounterAnnotationSet < 3) { | 166 if (buildCounterAnnotationSet < 3) { |
| 167 unittest.expect(o.datasetId, unittest.equals('foo')); | 167 unittest.expect(o.datasetId, unittest.equals('foo')); |
| 168 unittest.expect(o.id, unittest.equals('foo')); | 168 unittest.expect(o.id, unittest.equals('foo')); |
| 169 checkUnnamed2925(o.info); | 169 checkUnnamed2395(o.info); |
| 170 unittest.expect(o.name, unittest.equals('foo')); | 170 unittest.expect(o.name, unittest.equals('foo')); |
| 171 unittest.expect(o.referenceSetId, unittest.equals('foo')); | 171 unittest.expect(o.referenceSetId, unittest.equals('foo')); |
| 172 unittest.expect(o.sourceUri, unittest.equals('foo')); | 172 unittest.expect(o.sourceUri, unittest.equals('foo')); |
| 173 unittest.expect(o.type, unittest.equals('foo')); | 173 unittest.expect(o.type, unittest.equals('foo')); |
| 174 } | 174 } |
| 175 buildCounterAnnotationSet--; | 175 buildCounterAnnotationSet--; |
| 176 } | 176 } |
| 177 | 177 |
| 178 buildUnnamed2926() { | 178 buildUnnamed2396() { |
| 179 var o = new core.List<api.Annotation>(); | 179 var o = new core.List<api.Annotation>(); |
| 180 o.add(buildAnnotation()); | 180 o.add(buildAnnotation()); |
| 181 o.add(buildAnnotation()); | 181 o.add(buildAnnotation()); |
| 182 return o; | 182 return o; |
| 183 } | 183 } |
| 184 | 184 |
| 185 checkUnnamed2926(core.List<api.Annotation> o) { | 185 checkUnnamed2396(core.List<api.Annotation> o) { |
| 186 unittest.expect(o, unittest.hasLength(2)); | 186 unittest.expect(o, unittest.hasLength(2)); |
| 187 checkAnnotation(o[0]); | 187 checkAnnotation(o[0]); |
| 188 checkAnnotation(o[1]); | 188 checkAnnotation(o[1]); |
| 189 } | 189 } |
| 190 | 190 |
| 191 core.int buildCounterBatchCreateAnnotationsRequest = 0; | 191 core.int buildCounterBatchCreateAnnotationsRequest = 0; |
| 192 buildBatchCreateAnnotationsRequest() { | 192 buildBatchCreateAnnotationsRequest() { |
| 193 var o = new api.BatchCreateAnnotationsRequest(); | 193 var o = new api.BatchCreateAnnotationsRequest(); |
| 194 buildCounterBatchCreateAnnotationsRequest++; | 194 buildCounterBatchCreateAnnotationsRequest++; |
| 195 if (buildCounterBatchCreateAnnotationsRequest < 3) { | 195 if (buildCounterBatchCreateAnnotationsRequest < 3) { |
| 196 o.annotations = buildUnnamed2926(); | 196 o.annotations = buildUnnamed2396(); |
| 197 o.requestId = "foo"; | 197 o.requestId = "foo"; |
| 198 } | 198 } |
| 199 buildCounterBatchCreateAnnotationsRequest--; | 199 buildCounterBatchCreateAnnotationsRequest--; |
| 200 return o; | 200 return o; |
| 201 } | 201 } |
| 202 | 202 |
| 203 checkBatchCreateAnnotationsRequest(api.BatchCreateAnnotationsRequest o) { | 203 checkBatchCreateAnnotationsRequest(api.BatchCreateAnnotationsRequest o) { |
| 204 buildCounterBatchCreateAnnotationsRequest++; | 204 buildCounterBatchCreateAnnotationsRequest++; |
| 205 if (buildCounterBatchCreateAnnotationsRequest < 3) { | 205 if (buildCounterBatchCreateAnnotationsRequest < 3) { |
| 206 checkUnnamed2926(o.annotations); | 206 checkUnnamed2396(o.annotations); |
| 207 unittest.expect(o.requestId, unittest.equals('foo')); | 207 unittest.expect(o.requestId, unittest.equals('foo')); |
| 208 } | 208 } |
| 209 buildCounterBatchCreateAnnotationsRequest--; | 209 buildCounterBatchCreateAnnotationsRequest--; |
| 210 } | 210 } |
| 211 | 211 |
| 212 buildUnnamed2927() { | 212 buildUnnamed2397() { |
| 213 var o = new core.List<api.Entry>(); | 213 var o = new core.List<api.Entry>(); |
| 214 o.add(buildEntry()); | 214 o.add(buildEntry()); |
| 215 o.add(buildEntry()); | 215 o.add(buildEntry()); |
| 216 return o; | 216 return o; |
| 217 } | 217 } |
| 218 | 218 |
| 219 checkUnnamed2927(core.List<api.Entry> o) { | 219 checkUnnamed2397(core.List<api.Entry> o) { |
| 220 unittest.expect(o, unittest.hasLength(2)); | 220 unittest.expect(o, unittest.hasLength(2)); |
| 221 checkEntry(o[0]); | 221 checkEntry(o[0]); |
| 222 checkEntry(o[1]); | 222 checkEntry(o[1]); |
| 223 } | 223 } |
| 224 | 224 |
| 225 core.int buildCounterBatchCreateAnnotationsResponse = 0; | 225 core.int buildCounterBatchCreateAnnotationsResponse = 0; |
| 226 buildBatchCreateAnnotationsResponse() { | 226 buildBatchCreateAnnotationsResponse() { |
| 227 var o = new api.BatchCreateAnnotationsResponse(); | 227 var o = new api.BatchCreateAnnotationsResponse(); |
| 228 buildCounterBatchCreateAnnotationsResponse++; | 228 buildCounterBatchCreateAnnotationsResponse++; |
| 229 if (buildCounterBatchCreateAnnotationsResponse < 3) { | 229 if (buildCounterBatchCreateAnnotationsResponse < 3) { |
| 230 o.entries = buildUnnamed2927(); | 230 o.entries = buildUnnamed2397(); |
| 231 } | 231 } |
| 232 buildCounterBatchCreateAnnotationsResponse--; | 232 buildCounterBatchCreateAnnotationsResponse--; |
| 233 return o; | 233 return o; |
| 234 } | 234 } |
| 235 | 235 |
| 236 checkBatchCreateAnnotationsResponse(api.BatchCreateAnnotationsResponse o) { | 236 checkBatchCreateAnnotationsResponse(api.BatchCreateAnnotationsResponse o) { |
| 237 buildCounterBatchCreateAnnotationsResponse++; | 237 buildCounterBatchCreateAnnotationsResponse++; |
| 238 if (buildCounterBatchCreateAnnotationsResponse < 3) { | 238 if (buildCounterBatchCreateAnnotationsResponse < 3) { |
| 239 checkUnnamed2927(o.entries); | 239 checkUnnamed2397(o.entries); |
| 240 } | 240 } |
| 241 buildCounterBatchCreateAnnotationsResponse--; | 241 buildCounterBatchCreateAnnotationsResponse--; |
| 242 } | 242 } |
| 243 | 243 |
| 244 buildUnnamed2928() { | 244 buildUnnamed2398() { |
| 245 var o = new core.List<core.String>(); | 245 var o = new core.List<core.String>(); |
| 246 o.add("foo"); | 246 o.add("foo"); |
| 247 o.add("foo"); | 247 o.add("foo"); |
| 248 return o; | 248 return o; |
| 249 } | 249 } |
| 250 | 250 |
| 251 checkUnnamed2928(core.List<core.String> o) { | 251 checkUnnamed2398(core.List<core.String> o) { |
| 252 unittest.expect(o, unittest.hasLength(2)); | 252 unittest.expect(o, unittest.hasLength(2)); |
| 253 unittest.expect(o[0], unittest.equals('foo')); | 253 unittest.expect(o[0], unittest.equals('foo')); |
| 254 unittest.expect(o[1], unittest.equals('foo')); | 254 unittest.expect(o[1], unittest.equals('foo')); |
| 255 } | 255 } |
| 256 | 256 |
| 257 core.int buildCounterBinding = 0; | 257 core.int buildCounterBinding = 0; |
| 258 buildBinding() { | 258 buildBinding() { |
| 259 var o = new api.Binding(); | 259 var o = new api.Binding(); |
| 260 buildCounterBinding++; | 260 buildCounterBinding++; |
| 261 if (buildCounterBinding < 3) { | 261 if (buildCounterBinding < 3) { |
| 262 o.members = buildUnnamed2928(); | 262 o.members = buildUnnamed2398(); |
| 263 o.role = "foo"; | 263 o.role = "foo"; |
| 264 } | 264 } |
| 265 buildCounterBinding--; | 265 buildCounterBinding--; |
| 266 return o; | 266 return o; |
| 267 } | 267 } |
| 268 | 268 |
| 269 checkBinding(api.Binding o) { | 269 checkBinding(api.Binding o) { |
| 270 buildCounterBinding++; | 270 buildCounterBinding++; |
| 271 if (buildCounterBinding < 3) { | 271 if (buildCounterBinding < 3) { |
| 272 checkUnnamed2928(o.members); | 272 checkUnnamed2398(o.members); |
| 273 unittest.expect(o.role, unittest.equals('foo')); | 273 unittest.expect(o.role, unittest.equals('foo')); |
| 274 } | 274 } |
| 275 buildCounterBinding--; | 275 buildCounterBinding--; |
| 276 } | 276 } |
| 277 | 277 |
| 278 buildUnnamed2929() { | 278 buildUnnamed2399() { |
| 279 var o = new core.List<core.Object>(); | 279 var o = new core.List<core.Object>(); |
| 280 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 280 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 281 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 281 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 282 return o; | 282 return o; |
| 283 } | 283 } |
| 284 | 284 |
| 285 checkUnnamed2929(core.List<core.Object> o) { | 285 checkUnnamed2399(core.List<core.Object> o) { |
| 286 unittest.expect(o, unittest.hasLength(2)); | 286 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')); | 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')); |
| 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')); | 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')); |
| 289 } | 289 } |
| 290 | 290 |
| 291 buildUnnamed2930() { | 291 buildUnnamed2400() { |
| 292 var o = new core.Map<core.String, core.List<core.Object>>(); | 292 var o = new core.Map<core.String, core.List<core.Object>>(); |
| 293 o["x"] = buildUnnamed2929(); | 293 o["x"] = buildUnnamed2399(); |
| 294 o["y"] = buildUnnamed2929(); | 294 o["y"] = buildUnnamed2399(); |
| 295 return o; | 295 return o; |
| 296 } | 296 } |
| 297 | 297 |
| 298 checkUnnamed2930(core.Map<core.String, core.List<core.Object>> o) { | 298 checkUnnamed2400(core.Map<core.String, core.List<core.Object>> o) { |
| 299 unittest.expect(o, unittest.hasLength(2)); | 299 unittest.expect(o, unittest.hasLength(2)); |
| 300 checkUnnamed2929(o["x"]); | 300 checkUnnamed2399(o["x"]); |
| 301 checkUnnamed2929(o["y"]); | 301 checkUnnamed2399(o["y"]); |
| 302 } | 302 } |
| 303 | 303 |
| 304 buildUnnamed2931() { | 304 buildUnnamed2401() { |
| 305 var o = new core.List<core.String>(); | 305 var o = new core.List<core.String>(); |
| 306 o.add("foo"); | 306 o.add("foo"); |
| 307 o.add("foo"); | 307 o.add("foo"); |
| 308 return o; | 308 return o; |
| 309 } | 309 } |
| 310 | 310 |
| 311 checkUnnamed2931(core.List<core.String> o) { | 311 checkUnnamed2401(core.List<core.String> o) { |
| 312 unittest.expect(o, unittest.hasLength(2)); | 312 unittest.expect(o, unittest.hasLength(2)); |
| 313 unittest.expect(o[0], unittest.equals('foo')); | 313 unittest.expect(o[0], unittest.equals('foo')); |
| 314 unittest.expect(o[1], unittest.equals('foo')); | 314 unittest.expect(o[1], unittest.equals('foo')); |
| 315 } | 315 } |
| 316 | 316 |
| 317 core.int buildCounterCallSet = 0; | 317 core.int buildCounterCallSet = 0; |
| 318 buildCallSet() { | 318 buildCallSet() { |
| 319 var o = new api.CallSet(); | 319 var o = new api.CallSet(); |
| 320 buildCounterCallSet++; | 320 buildCounterCallSet++; |
| 321 if (buildCounterCallSet < 3) { | 321 if (buildCounterCallSet < 3) { |
| 322 o.created = "foo"; | 322 o.created = "foo"; |
| 323 o.id = "foo"; | 323 o.id = "foo"; |
| 324 o.info = buildUnnamed2930(); | 324 o.info = buildUnnamed2400(); |
| 325 o.name = "foo"; | 325 o.name = "foo"; |
| 326 o.sampleId = "foo"; | 326 o.sampleId = "foo"; |
| 327 o.variantSetIds = buildUnnamed2931(); | 327 o.variantSetIds = buildUnnamed2401(); |
| 328 } | 328 } |
| 329 buildCounterCallSet--; | 329 buildCounterCallSet--; |
| 330 return o; | 330 return o; |
| 331 } | 331 } |
| 332 | 332 |
| 333 checkCallSet(api.CallSet o) { | 333 checkCallSet(api.CallSet o) { |
| 334 buildCounterCallSet++; | 334 buildCounterCallSet++; |
| 335 if (buildCounterCallSet < 3) { | 335 if (buildCounterCallSet < 3) { |
| 336 unittest.expect(o.created, unittest.equals('foo')); | 336 unittest.expect(o.created, unittest.equals('foo')); |
| 337 unittest.expect(o.id, unittest.equals('foo')); | 337 unittest.expect(o.id, unittest.equals('foo')); |
| 338 checkUnnamed2930(o.info); | 338 checkUnnamed2400(o.info); |
| 339 unittest.expect(o.name, unittest.equals('foo')); | 339 unittest.expect(o.name, unittest.equals('foo')); |
| 340 unittest.expect(o.sampleId, unittest.equals('foo')); | 340 unittest.expect(o.sampleId, unittest.equals('foo')); |
| 341 checkUnnamed2931(o.variantSetIds); | 341 checkUnnamed2401(o.variantSetIds); |
| 342 } | 342 } |
| 343 buildCounterCallSet--; | 343 buildCounterCallSet--; |
| 344 } | 344 } |
| 345 | 345 |
| 346 core.int buildCounterCancelOperationRequest = 0; | 346 core.int buildCounterCancelOperationRequest = 0; |
| 347 buildCancelOperationRequest() { | 347 buildCancelOperationRequest() { |
| 348 var o = new api.CancelOperationRequest(); | 348 var o = new api.CancelOperationRequest(); |
| 349 buildCounterCancelOperationRequest++; | 349 buildCounterCancelOperationRequest++; |
| 350 if (buildCounterCancelOperationRequest < 3) { | 350 if (buildCounterCancelOperationRequest < 3) { |
| 351 } | 351 } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 376 checkCigarUnit(api.CigarUnit o) { | 376 checkCigarUnit(api.CigarUnit o) { |
| 377 buildCounterCigarUnit++; | 377 buildCounterCigarUnit++; |
| 378 if (buildCounterCigarUnit < 3) { | 378 if (buildCounterCigarUnit < 3) { |
| 379 unittest.expect(o.operation, unittest.equals('foo')); | 379 unittest.expect(o.operation, unittest.equals('foo')); |
| 380 unittest.expect(o.operationLength, unittest.equals('foo')); | 380 unittest.expect(o.operationLength, unittest.equals('foo')); |
| 381 unittest.expect(o.referenceSequence, unittest.equals('foo')); | 381 unittest.expect(o.referenceSequence, unittest.equals('foo')); |
| 382 } | 382 } |
| 383 buildCounterCigarUnit--; | 383 buildCounterCigarUnit--; |
| 384 } | 384 } |
| 385 | 385 |
| 386 buildUnnamed2932() { | 386 buildUnnamed2402() { |
| 387 var o = new core.List<api.ExternalId>(); | 387 var o = new core.List<api.ExternalId>(); |
| 388 o.add(buildExternalId()); | 388 o.add(buildExternalId()); |
| 389 o.add(buildExternalId()); | 389 o.add(buildExternalId()); |
| 390 return o; | 390 return o; |
| 391 } | 391 } |
| 392 | 392 |
| 393 checkUnnamed2932(core.List<api.ExternalId> o) { | 393 checkUnnamed2402(core.List<api.ExternalId> o) { |
| 394 unittest.expect(o, unittest.hasLength(2)); | 394 unittest.expect(o, unittest.hasLength(2)); |
| 395 checkExternalId(o[0]); | 395 checkExternalId(o[0]); |
| 396 checkExternalId(o[1]); | 396 checkExternalId(o[1]); |
| 397 } | 397 } |
| 398 | 398 |
| 399 buildUnnamed2933() { | 399 buildUnnamed2403() { |
| 400 var o = new core.List<core.String>(); | 400 var o = new core.List<core.String>(); |
| 401 o.add("foo"); | 401 o.add("foo"); |
| 402 o.add("foo"); | 402 o.add("foo"); |
| 403 return o; | 403 return o; |
| 404 } | 404 } |
| 405 | 405 |
| 406 checkUnnamed2933(core.List<core.String> o) { | 406 checkUnnamed2403(core.List<core.String> o) { |
| 407 unittest.expect(o, unittest.hasLength(2)); | 407 unittest.expect(o, unittest.hasLength(2)); |
| 408 unittest.expect(o[0], unittest.equals('foo')); | 408 unittest.expect(o[0], unittest.equals('foo')); |
| 409 unittest.expect(o[1], unittest.equals('foo')); | 409 unittest.expect(o[1], unittest.equals('foo')); |
| 410 } | 410 } |
| 411 | 411 |
| 412 core.int buildCounterClinicalCondition = 0; | 412 core.int buildCounterClinicalCondition = 0; |
| 413 buildClinicalCondition() { | 413 buildClinicalCondition() { |
| 414 var o = new api.ClinicalCondition(); | 414 var o = new api.ClinicalCondition(); |
| 415 buildCounterClinicalCondition++; | 415 buildCounterClinicalCondition++; |
| 416 if (buildCounterClinicalCondition < 3) { | 416 if (buildCounterClinicalCondition < 3) { |
| 417 o.conceptId = "foo"; | 417 o.conceptId = "foo"; |
| 418 o.externalIds = buildUnnamed2932(); | 418 o.externalIds = buildUnnamed2402(); |
| 419 o.names = buildUnnamed2933(); | 419 o.names = buildUnnamed2403(); |
| 420 o.omimId = "foo"; | 420 o.omimId = "foo"; |
| 421 } | 421 } |
| 422 buildCounterClinicalCondition--; | 422 buildCounterClinicalCondition--; |
| 423 return o; | 423 return o; |
| 424 } | 424 } |
| 425 | 425 |
| 426 checkClinicalCondition(api.ClinicalCondition o) { | 426 checkClinicalCondition(api.ClinicalCondition o) { |
| 427 buildCounterClinicalCondition++; | 427 buildCounterClinicalCondition++; |
| 428 if (buildCounterClinicalCondition < 3) { | 428 if (buildCounterClinicalCondition < 3) { |
| 429 unittest.expect(o.conceptId, unittest.equals('foo')); | 429 unittest.expect(o.conceptId, unittest.equals('foo')); |
| 430 checkUnnamed2932(o.externalIds); | 430 checkUnnamed2402(o.externalIds); |
| 431 checkUnnamed2933(o.names); | 431 checkUnnamed2403(o.names); |
| 432 unittest.expect(o.omimId, unittest.equals('foo')); | 432 unittest.expect(o.omimId, unittest.equals('foo')); |
| 433 } | 433 } |
| 434 buildCounterClinicalCondition--; | 434 buildCounterClinicalCondition--; |
| 435 } | 435 } |
| 436 | 436 |
| 437 core.int buildCounterCodingSequence = 0; | 437 core.int buildCounterCodingSequence = 0; |
| 438 buildCodingSequence() { | 438 buildCodingSequence() { |
| 439 var o = new api.CodingSequence(); | 439 var o = new api.CodingSequence(); |
| 440 buildCounterCodingSequence++; | 440 buildCounterCodingSequence++; |
| 441 if (buildCounterCodingSequence < 3) { | 441 if (buildCounterCodingSequence < 3) { |
| 442 o.end = "foo"; | 442 o.end = "foo"; |
| 443 o.start = "foo"; | 443 o.start = "foo"; |
| 444 } | 444 } |
| 445 buildCounterCodingSequence--; | 445 buildCounterCodingSequence--; |
| 446 return o; | 446 return o; |
| 447 } | 447 } |
| 448 | 448 |
| 449 checkCodingSequence(api.CodingSequence o) { | 449 checkCodingSequence(api.CodingSequence o) { |
| 450 buildCounterCodingSequence++; | 450 buildCounterCodingSequence++; |
| 451 if (buildCounterCodingSequence < 3) { | 451 if (buildCounterCodingSequence < 3) { |
| 452 unittest.expect(o.end, unittest.equals('foo')); | 452 unittest.expect(o.end, unittest.equals('foo')); |
| 453 unittest.expect(o.start, unittest.equals('foo')); | 453 unittest.expect(o.start, unittest.equals('foo')); |
| 454 } | 454 } |
| 455 buildCounterCodingSequence--; | 455 buildCounterCodingSequence--; |
| 456 } | 456 } |
| 457 | 457 |
| 458 buildUnnamed2934() { | 458 buildUnnamed2404() { |
| 459 var o = new core.List<core.String>(); | 459 var o = new core.List<core.String>(); |
| 460 o.add("foo"); | 460 o.add("foo"); |
| 461 o.add("foo"); | 461 o.add("foo"); |
| 462 return o; | 462 return o; |
| 463 } | 463 } |
| 464 | 464 |
| 465 checkUnnamed2934(core.List<core.String> o) { | 465 checkUnnamed2404(core.List<core.String> o) { |
| 466 unittest.expect(o, unittest.hasLength(2)); | 466 unittest.expect(o, unittest.hasLength(2)); |
| 467 unittest.expect(o[0], unittest.equals('foo')); | 467 unittest.expect(o[0], unittest.equals('foo')); |
| 468 unittest.expect(o[1], unittest.equals('foo')); | 468 unittest.expect(o[1], unittest.equals('foo')); |
| 469 } | 469 } |
| 470 | 470 |
| 471 core.int buildCounterComputeEngine = 0; | 471 core.int buildCounterComputeEngine = 0; |
| 472 buildComputeEngine() { | 472 buildComputeEngine() { |
| 473 var o = new api.ComputeEngine(); | 473 var o = new api.ComputeEngine(); |
| 474 buildCounterComputeEngine++; | 474 buildCounterComputeEngine++; |
| 475 if (buildCounterComputeEngine < 3) { | 475 if (buildCounterComputeEngine < 3) { |
| 476 o.diskNames = buildUnnamed2934(); | 476 o.diskNames = buildUnnamed2404(); |
| 477 o.instanceName = "foo"; | 477 o.instanceName = "foo"; |
| 478 o.machineType = "foo"; | 478 o.machineType = "foo"; |
| 479 o.zone = "foo"; | 479 o.zone = "foo"; |
| 480 } | 480 } |
| 481 buildCounterComputeEngine--; | 481 buildCounterComputeEngine--; |
| 482 return o; | 482 return o; |
| 483 } | 483 } |
| 484 | 484 |
| 485 checkComputeEngine(api.ComputeEngine o) { | 485 checkComputeEngine(api.ComputeEngine o) { |
| 486 buildCounterComputeEngine++; | 486 buildCounterComputeEngine++; |
| 487 if (buildCounterComputeEngine < 3) { | 487 if (buildCounterComputeEngine < 3) { |
| 488 checkUnnamed2934(o.diskNames); | 488 checkUnnamed2404(o.diskNames); |
| 489 unittest.expect(o.instanceName, unittest.equals('foo')); | 489 unittest.expect(o.instanceName, unittest.equals('foo')); |
| 490 unittest.expect(o.machineType, unittest.equals('foo')); | 490 unittest.expect(o.machineType, unittest.equals('foo')); |
| 491 unittest.expect(o.zone, unittest.equals('foo')); | 491 unittest.expect(o.zone, unittest.equals('foo')); |
| 492 } | 492 } |
| 493 buildCounterComputeEngine--; | 493 buildCounterComputeEngine--; |
| 494 } | 494 } |
| 495 | 495 |
| 496 core.int buildCounterCoverageBucket = 0; | 496 core.int buildCounterCoverageBucket = 0; |
| 497 buildCoverageBucket() { | 497 buildCoverageBucket() { |
| 498 var o = new api.CoverageBucket(); | 498 var o = new api.CoverageBucket(); |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 buildCounterExperiment++; | 618 buildCounterExperiment++; |
| 619 if (buildCounterExperiment < 3) { | 619 if (buildCounterExperiment < 3) { |
| 620 unittest.expect(o.instrumentModel, unittest.equals('foo')); | 620 unittest.expect(o.instrumentModel, unittest.equals('foo')); |
| 621 unittest.expect(o.libraryId, unittest.equals('foo')); | 621 unittest.expect(o.libraryId, unittest.equals('foo')); |
| 622 unittest.expect(o.platformUnit, unittest.equals('foo')); | 622 unittest.expect(o.platformUnit, unittest.equals('foo')); |
| 623 unittest.expect(o.sequencingCenter, unittest.equals('foo')); | 623 unittest.expect(o.sequencingCenter, unittest.equals('foo')); |
| 624 } | 624 } |
| 625 buildCounterExperiment--; | 625 buildCounterExperiment--; |
| 626 } | 626 } |
| 627 | 627 |
| 628 buildUnnamed2935() { | 628 buildUnnamed2405() { |
| 629 var o = new core.List<core.String>(); | 629 var o = new core.List<core.String>(); |
| 630 o.add("foo"); | 630 o.add("foo"); |
| 631 o.add("foo"); | 631 o.add("foo"); |
| 632 return o; | 632 return o; |
| 633 } | 633 } |
| 634 | 634 |
| 635 checkUnnamed2935(core.List<core.String> o) { | 635 checkUnnamed2405(core.List<core.String> o) { |
| 636 unittest.expect(o, unittest.hasLength(2)); | 636 unittest.expect(o, unittest.hasLength(2)); |
| 637 unittest.expect(o[0], unittest.equals('foo')); | 637 unittest.expect(o[0], unittest.equals('foo')); |
| 638 unittest.expect(o[1], unittest.equals('foo')); | 638 unittest.expect(o[1], unittest.equals('foo')); |
| 639 } | 639 } |
| 640 | 640 |
| 641 core.int buildCounterExportReadGroupSetRequest = 0; | 641 core.int buildCounterExportReadGroupSetRequest = 0; |
| 642 buildExportReadGroupSetRequest() { | 642 buildExportReadGroupSetRequest() { |
| 643 var o = new api.ExportReadGroupSetRequest(); | 643 var o = new api.ExportReadGroupSetRequest(); |
| 644 buildCounterExportReadGroupSetRequest++; | 644 buildCounterExportReadGroupSetRequest++; |
| 645 if (buildCounterExportReadGroupSetRequest < 3) { | 645 if (buildCounterExportReadGroupSetRequest < 3) { |
| 646 o.exportUri = "foo"; | 646 o.exportUri = "foo"; |
| 647 o.projectId = "foo"; | 647 o.projectId = "foo"; |
| 648 o.referenceNames = buildUnnamed2935(); | 648 o.referenceNames = buildUnnamed2405(); |
| 649 } | 649 } |
| 650 buildCounterExportReadGroupSetRequest--; | 650 buildCounterExportReadGroupSetRequest--; |
| 651 return o; | 651 return o; |
| 652 } | 652 } |
| 653 | 653 |
| 654 checkExportReadGroupSetRequest(api.ExportReadGroupSetRequest o) { | 654 checkExportReadGroupSetRequest(api.ExportReadGroupSetRequest o) { |
| 655 buildCounterExportReadGroupSetRequest++; | 655 buildCounterExportReadGroupSetRequest++; |
| 656 if (buildCounterExportReadGroupSetRequest < 3) { | 656 if (buildCounterExportReadGroupSetRequest < 3) { |
| 657 unittest.expect(o.exportUri, unittest.equals('foo')); | 657 unittest.expect(o.exportUri, unittest.equals('foo')); |
| 658 unittest.expect(o.projectId, unittest.equals('foo')); | 658 unittest.expect(o.projectId, unittest.equals('foo')); |
| 659 checkUnnamed2935(o.referenceNames); | 659 checkUnnamed2405(o.referenceNames); |
| 660 } | 660 } |
| 661 buildCounterExportReadGroupSetRequest--; | 661 buildCounterExportReadGroupSetRequest--; |
| 662 } | 662 } |
| 663 | 663 |
| 664 buildUnnamed2936() { | 664 buildUnnamed2406() { |
| 665 var o = new core.List<core.String>(); | 665 var o = new core.List<core.String>(); |
| 666 o.add("foo"); | 666 o.add("foo"); |
| 667 o.add("foo"); | 667 o.add("foo"); |
| 668 return o; | 668 return o; |
| 669 } | 669 } |
| 670 | 670 |
| 671 checkUnnamed2936(core.List<core.String> o) { | 671 checkUnnamed2406(core.List<core.String> o) { |
| 672 unittest.expect(o, unittest.hasLength(2)); | 672 unittest.expect(o, unittest.hasLength(2)); |
| 673 unittest.expect(o[0], unittest.equals('foo')); | 673 unittest.expect(o[0], unittest.equals('foo')); |
| 674 unittest.expect(o[1], unittest.equals('foo')); | 674 unittest.expect(o[1], unittest.equals('foo')); |
| 675 } | 675 } |
| 676 | 676 |
| 677 core.int buildCounterExportVariantSetRequest = 0; | 677 core.int buildCounterExportVariantSetRequest = 0; |
| 678 buildExportVariantSetRequest() { | 678 buildExportVariantSetRequest() { |
| 679 var o = new api.ExportVariantSetRequest(); | 679 var o = new api.ExportVariantSetRequest(); |
| 680 buildCounterExportVariantSetRequest++; | 680 buildCounterExportVariantSetRequest++; |
| 681 if (buildCounterExportVariantSetRequest < 3) { | 681 if (buildCounterExportVariantSetRequest < 3) { |
| 682 o.bigqueryDataset = "foo"; | 682 o.bigqueryDataset = "foo"; |
| 683 o.bigqueryTable = "foo"; | 683 o.bigqueryTable = "foo"; |
| 684 o.callSetIds = buildUnnamed2936(); | 684 o.callSetIds = buildUnnamed2406(); |
| 685 o.format = "foo"; | 685 o.format = "foo"; |
| 686 o.projectId = "foo"; | 686 o.projectId = "foo"; |
| 687 } | 687 } |
| 688 buildCounterExportVariantSetRequest--; | 688 buildCounterExportVariantSetRequest--; |
| 689 return o; | 689 return o; |
| 690 } | 690 } |
| 691 | 691 |
| 692 checkExportVariantSetRequest(api.ExportVariantSetRequest o) { | 692 checkExportVariantSetRequest(api.ExportVariantSetRequest o) { |
| 693 buildCounterExportVariantSetRequest++; | 693 buildCounterExportVariantSetRequest++; |
| 694 if (buildCounterExportVariantSetRequest < 3) { | 694 if (buildCounterExportVariantSetRequest < 3) { |
| 695 unittest.expect(o.bigqueryDataset, unittest.equals('foo')); | 695 unittest.expect(o.bigqueryDataset, unittest.equals('foo')); |
| 696 unittest.expect(o.bigqueryTable, unittest.equals('foo')); | 696 unittest.expect(o.bigqueryTable, unittest.equals('foo')); |
| 697 checkUnnamed2936(o.callSetIds); | 697 checkUnnamed2406(o.callSetIds); |
| 698 unittest.expect(o.format, unittest.equals('foo')); | 698 unittest.expect(o.format, unittest.equals('foo')); |
| 699 unittest.expect(o.projectId, unittest.equals('foo')); | 699 unittest.expect(o.projectId, unittest.equals('foo')); |
| 700 } | 700 } |
| 701 buildCounterExportVariantSetRequest--; | 701 buildCounterExportVariantSetRequest--; |
| 702 } | 702 } |
| 703 | 703 |
| 704 core.int buildCounterExternalId = 0; | 704 core.int buildCounterExternalId = 0; |
| 705 buildExternalId() { | 705 buildExternalId() { |
| 706 var o = new api.ExternalId(); | 706 var o = new api.ExternalId(); |
| 707 buildCounterExternalId++; | 707 buildCounterExternalId++; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 732 return o; | 732 return o; |
| 733 } | 733 } |
| 734 | 734 |
| 735 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) { | 735 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) { |
| 736 buildCounterGetIamPolicyRequest++; | 736 buildCounterGetIamPolicyRequest++; |
| 737 if (buildCounterGetIamPolicyRequest < 3) { | 737 if (buildCounterGetIamPolicyRequest < 3) { |
| 738 } | 738 } |
| 739 buildCounterGetIamPolicyRequest--; | 739 buildCounterGetIamPolicyRequest--; |
| 740 } | 740 } |
| 741 | 741 |
| 742 buildUnnamed2937() { | 742 buildUnnamed2407() { |
| 743 var o = new core.List<core.String>(); | 743 var o = new core.List<core.String>(); |
| 744 o.add("foo"); | 744 o.add("foo"); |
| 745 o.add("foo"); | 745 o.add("foo"); |
| 746 return o; | 746 return o; |
| 747 } | 747 } |
| 748 | 748 |
| 749 checkUnnamed2937(core.List<core.String> o) { | 749 checkUnnamed2407(core.List<core.String> o) { |
| 750 unittest.expect(o, unittest.hasLength(2)); | 750 unittest.expect(o, unittest.hasLength(2)); |
| 751 unittest.expect(o[0], unittest.equals('foo')); | 751 unittest.expect(o[0], unittest.equals('foo')); |
| 752 unittest.expect(o[1], unittest.equals('foo')); | 752 unittest.expect(o[1], unittest.equals('foo')); |
| 753 } | 753 } |
| 754 | 754 |
| 755 core.int buildCounterImportReadGroupSetsRequest = 0; | 755 core.int buildCounterImportReadGroupSetsRequest = 0; |
| 756 buildImportReadGroupSetsRequest() { | 756 buildImportReadGroupSetsRequest() { |
| 757 var o = new api.ImportReadGroupSetsRequest(); | 757 var o = new api.ImportReadGroupSetsRequest(); |
| 758 buildCounterImportReadGroupSetsRequest++; | 758 buildCounterImportReadGroupSetsRequest++; |
| 759 if (buildCounterImportReadGroupSetsRequest < 3) { | 759 if (buildCounterImportReadGroupSetsRequest < 3) { |
| 760 o.datasetId = "foo"; | 760 o.datasetId = "foo"; |
| 761 o.partitionStrategy = "foo"; | 761 o.partitionStrategy = "foo"; |
| 762 o.referenceSetId = "foo"; | 762 o.referenceSetId = "foo"; |
| 763 o.sourceUris = buildUnnamed2937(); | 763 o.sourceUris = buildUnnamed2407(); |
| 764 } | 764 } |
| 765 buildCounterImportReadGroupSetsRequest--; | 765 buildCounterImportReadGroupSetsRequest--; |
| 766 return o; | 766 return o; |
| 767 } | 767 } |
| 768 | 768 |
| 769 checkImportReadGroupSetsRequest(api.ImportReadGroupSetsRequest o) { | 769 checkImportReadGroupSetsRequest(api.ImportReadGroupSetsRequest o) { |
| 770 buildCounterImportReadGroupSetsRequest++; | 770 buildCounterImportReadGroupSetsRequest++; |
| 771 if (buildCounterImportReadGroupSetsRequest < 3) { | 771 if (buildCounterImportReadGroupSetsRequest < 3) { |
| 772 unittest.expect(o.datasetId, unittest.equals('foo')); | 772 unittest.expect(o.datasetId, unittest.equals('foo')); |
| 773 unittest.expect(o.partitionStrategy, unittest.equals('foo')); | 773 unittest.expect(o.partitionStrategy, unittest.equals('foo')); |
| 774 unittest.expect(o.referenceSetId, unittest.equals('foo')); | 774 unittest.expect(o.referenceSetId, unittest.equals('foo')); |
| 775 checkUnnamed2937(o.sourceUris); | 775 checkUnnamed2407(o.sourceUris); |
| 776 } | 776 } |
| 777 buildCounterImportReadGroupSetsRequest--; | 777 buildCounterImportReadGroupSetsRequest--; |
| 778 } | 778 } |
| 779 | 779 |
| 780 buildUnnamed2938() { | 780 buildUnnamed2408() { |
| 781 var o = new core.List<core.String>(); | 781 var o = new core.List<core.String>(); |
| 782 o.add("foo"); | 782 o.add("foo"); |
| 783 o.add("foo"); | 783 o.add("foo"); |
| 784 return o; | 784 return o; |
| 785 } | 785 } |
| 786 | 786 |
| 787 checkUnnamed2938(core.List<core.String> o) { | 787 checkUnnamed2408(core.List<core.String> o) { |
| 788 unittest.expect(o, unittest.hasLength(2)); | 788 unittest.expect(o, unittest.hasLength(2)); |
| 789 unittest.expect(o[0], unittest.equals('foo')); | 789 unittest.expect(o[0], unittest.equals('foo')); |
| 790 unittest.expect(o[1], unittest.equals('foo')); | 790 unittest.expect(o[1], unittest.equals('foo')); |
| 791 } | 791 } |
| 792 | 792 |
| 793 core.int buildCounterImportReadGroupSetsResponse = 0; | 793 core.int buildCounterImportReadGroupSetsResponse = 0; |
| 794 buildImportReadGroupSetsResponse() { | 794 buildImportReadGroupSetsResponse() { |
| 795 var o = new api.ImportReadGroupSetsResponse(); | 795 var o = new api.ImportReadGroupSetsResponse(); |
| 796 buildCounterImportReadGroupSetsResponse++; | 796 buildCounterImportReadGroupSetsResponse++; |
| 797 if (buildCounterImportReadGroupSetsResponse < 3) { | 797 if (buildCounterImportReadGroupSetsResponse < 3) { |
| 798 o.readGroupSetIds = buildUnnamed2938(); | 798 o.readGroupSetIds = buildUnnamed2408(); |
| 799 } | 799 } |
| 800 buildCounterImportReadGroupSetsResponse--; | 800 buildCounterImportReadGroupSetsResponse--; |
| 801 return o; | 801 return o; |
| 802 } | 802 } |
| 803 | 803 |
| 804 checkImportReadGroupSetsResponse(api.ImportReadGroupSetsResponse o) { | 804 checkImportReadGroupSetsResponse(api.ImportReadGroupSetsResponse o) { |
| 805 buildCounterImportReadGroupSetsResponse++; | 805 buildCounterImportReadGroupSetsResponse++; |
| 806 if (buildCounterImportReadGroupSetsResponse < 3) { | 806 if (buildCounterImportReadGroupSetsResponse < 3) { |
| 807 checkUnnamed2938(o.readGroupSetIds); | 807 checkUnnamed2408(o.readGroupSetIds); |
| 808 } | 808 } |
| 809 buildCounterImportReadGroupSetsResponse--; | 809 buildCounterImportReadGroupSetsResponse--; |
| 810 } | 810 } |
| 811 | 811 |
| 812 buildUnnamed2939() { | 812 buildUnnamed2409() { |
| 813 var o = new core.Map<core.String, core.String>(); | 813 var o = new core.Map<core.String, core.String>(); |
| 814 o["x"] = "foo"; | 814 o["x"] = "foo"; |
| 815 o["y"] = "foo"; | 815 o["y"] = "foo"; |
| 816 return o; | 816 return o; |
| 817 } | 817 } |
| 818 | 818 |
| 819 checkUnnamed2939(core.Map<core.String, core.String> o) { | 819 checkUnnamed2409(core.Map<core.String, core.String> o) { |
| 820 unittest.expect(o, unittest.hasLength(2)); | 820 unittest.expect(o, unittest.hasLength(2)); |
| 821 unittest.expect(o["x"], unittest.equals('foo')); | 821 unittest.expect(o["x"], unittest.equals('foo')); |
| 822 unittest.expect(o["y"], unittest.equals('foo')); | 822 unittest.expect(o["y"], unittest.equals('foo')); |
| 823 } | 823 } |
| 824 | 824 |
| 825 buildUnnamed2940() { | 825 buildUnnamed2410() { |
| 826 var o = new core.List<core.String>(); | 826 var o = new core.List<core.String>(); |
| 827 o.add("foo"); | 827 o.add("foo"); |
| 828 o.add("foo"); | 828 o.add("foo"); |
| 829 return o; | 829 return o; |
| 830 } | 830 } |
| 831 | 831 |
| 832 checkUnnamed2940(core.List<core.String> o) { | 832 checkUnnamed2410(core.List<core.String> o) { |
| 833 unittest.expect(o, unittest.hasLength(2)); | 833 unittest.expect(o, unittest.hasLength(2)); |
| 834 unittest.expect(o[0], unittest.equals('foo')); | 834 unittest.expect(o[0], unittest.equals('foo')); |
| 835 unittest.expect(o[1], unittest.equals('foo')); | 835 unittest.expect(o[1], unittest.equals('foo')); |
| 836 } | 836 } |
| 837 | 837 |
| 838 core.int buildCounterImportVariantsRequest = 0; | 838 core.int buildCounterImportVariantsRequest = 0; |
| 839 buildImportVariantsRequest() { | 839 buildImportVariantsRequest() { |
| 840 var o = new api.ImportVariantsRequest(); | 840 var o = new api.ImportVariantsRequest(); |
| 841 buildCounterImportVariantsRequest++; | 841 buildCounterImportVariantsRequest++; |
| 842 if (buildCounterImportVariantsRequest < 3) { | 842 if (buildCounterImportVariantsRequest < 3) { |
| 843 o.format = "foo"; | 843 o.format = "foo"; |
| 844 o.infoMergeConfig = buildUnnamed2939(); | 844 o.infoMergeConfig = buildUnnamed2409(); |
| 845 o.normalizeReferenceNames = true; | 845 o.normalizeReferenceNames = true; |
| 846 o.sourceUris = buildUnnamed2940(); | 846 o.sourceUris = buildUnnamed2410(); |
| 847 o.variantSetId = "foo"; | 847 o.variantSetId = "foo"; |
| 848 } | 848 } |
| 849 buildCounterImportVariantsRequest--; | 849 buildCounterImportVariantsRequest--; |
| 850 return o; | 850 return o; |
| 851 } | 851 } |
| 852 | 852 |
| 853 checkImportVariantsRequest(api.ImportVariantsRequest o) { | 853 checkImportVariantsRequest(api.ImportVariantsRequest o) { |
| 854 buildCounterImportVariantsRequest++; | 854 buildCounterImportVariantsRequest++; |
| 855 if (buildCounterImportVariantsRequest < 3) { | 855 if (buildCounterImportVariantsRequest < 3) { |
| 856 unittest.expect(o.format, unittest.equals('foo')); | 856 unittest.expect(o.format, unittest.equals('foo')); |
| 857 checkUnnamed2939(o.infoMergeConfig); | 857 checkUnnamed2409(o.infoMergeConfig); |
| 858 unittest.expect(o.normalizeReferenceNames, unittest.isTrue); | 858 unittest.expect(o.normalizeReferenceNames, unittest.isTrue); |
| 859 checkUnnamed2940(o.sourceUris); | 859 checkUnnamed2410(o.sourceUris); |
| 860 unittest.expect(o.variantSetId, unittest.equals('foo')); | 860 unittest.expect(o.variantSetId, unittest.equals('foo')); |
| 861 } | 861 } |
| 862 buildCounterImportVariantsRequest--; | 862 buildCounterImportVariantsRequest--; |
| 863 } | 863 } |
| 864 | 864 |
| 865 buildUnnamed2941() { | 865 buildUnnamed2411() { |
| 866 var o = new core.List<core.String>(); | 866 var o = new core.List<core.String>(); |
| 867 o.add("foo"); | 867 o.add("foo"); |
| 868 o.add("foo"); | 868 o.add("foo"); |
| 869 return o; | 869 return o; |
| 870 } | 870 } |
| 871 | 871 |
| 872 checkUnnamed2941(core.List<core.String> o) { | 872 checkUnnamed2411(core.List<core.String> o) { |
| 873 unittest.expect(o, unittest.hasLength(2)); | 873 unittest.expect(o, unittest.hasLength(2)); |
| 874 unittest.expect(o[0], unittest.equals('foo')); | 874 unittest.expect(o[0], unittest.equals('foo')); |
| 875 unittest.expect(o[1], unittest.equals('foo')); | 875 unittest.expect(o[1], unittest.equals('foo')); |
| 876 } | 876 } |
| 877 | 877 |
| 878 core.int buildCounterImportVariantsResponse = 0; | 878 core.int buildCounterImportVariantsResponse = 0; |
| 879 buildImportVariantsResponse() { | 879 buildImportVariantsResponse() { |
| 880 var o = new api.ImportVariantsResponse(); | 880 var o = new api.ImportVariantsResponse(); |
| 881 buildCounterImportVariantsResponse++; | 881 buildCounterImportVariantsResponse++; |
| 882 if (buildCounterImportVariantsResponse < 3) { | 882 if (buildCounterImportVariantsResponse < 3) { |
| 883 o.callSetIds = buildUnnamed2941(); | 883 o.callSetIds = buildUnnamed2411(); |
| 884 } | 884 } |
| 885 buildCounterImportVariantsResponse--; | 885 buildCounterImportVariantsResponse--; |
| 886 return o; | 886 return o; |
| 887 } | 887 } |
| 888 | 888 |
| 889 checkImportVariantsResponse(api.ImportVariantsResponse o) { | 889 checkImportVariantsResponse(api.ImportVariantsResponse o) { |
| 890 buildCounterImportVariantsResponse++; | 890 buildCounterImportVariantsResponse++; |
| 891 if (buildCounterImportVariantsResponse < 3) { | 891 if (buildCounterImportVariantsResponse < 3) { |
| 892 checkUnnamed2941(o.callSetIds); | 892 checkUnnamed2411(o.callSetIds); |
| 893 } | 893 } |
| 894 buildCounterImportVariantsResponse--; | 894 buildCounterImportVariantsResponse--; |
| 895 } | 895 } |
| 896 | 896 |
| 897 buildUnnamed2942() { | 897 buildUnnamed2412() { |
| 898 var o = new core.List<api.CigarUnit>(); | 898 var o = new core.List<api.CigarUnit>(); |
| 899 o.add(buildCigarUnit()); | 899 o.add(buildCigarUnit()); |
| 900 o.add(buildCigarUnit()); | 900 o.add(buildCigarUnit()); |
| 901 return o; | 901 return o; |
| 902 } | 902 } |
| 903 | 903 |
| 904 checkUnnamed2942(core.List<api.CigarUnit> o) { | 904 checkUnnamed2412(core.List<api.CigarUnit> o) { |
| 905 unittest.expect(o, unittest.hasLength(2)); | 905 unittest.expect(o, unittest.hasLength(2)); |
| 906 checkCigarUnit(o[0]); | 906 checkCigarUnit(o[0]); |
| 907 checkCigarUnit(o[1]); | 907 checkCigarUnit(o[1]); |
| 908 } | 908 } |
| 909 | 909 |
| 910 core.int buildCounterLinearAlignment = 0; | 910 core.int buildCounterLinearAlignment = 0; |
| 911 buildLinearAlignment() { | 911 buildLinearAlignment() { |
| 912 var o = new api.LinearAlignment(); | 912 var o = new api.LinearAlignment(); |
| 913 buildCounterLinearAlignment++; | 913 buildCounterLinearAlignment++; |
| 914 if (buildCounterLinearAlignment < 3) { | 914 if (buildCounterLinearAlignment < 3) { |
| 915 o.cigar = buildUnnamed2942(); | 915 o.cigar = buildUnnamed2412(); |
| 916 o.mappingQuality = 42; | 916 o.mappingQuality = 42; |
| 917 o.position = buildPosition(); | 917 o.position = buildPosition(); |
| 918 } | 918 } |
| 919 buildCounterLinearAlignment--; | 919 buildCounterLinearAlignment--; |
| 920 return o; | 920 return o; |
| 921 } | 921 } |
| 922 | 922 |
| 923 checkLinearAlignment(api.LinearAlignment o) { | 923 checkLinearAlignment(api.LinearAlignment o) { |
| 924 buildCounterLinearAlignment++; | 924 buildCounterLinearAlignment++; |
| 925 if (buildCounterLinearAlignment < 3) { | 925 if (buildCounterLinearAlignment < 3) { |
| 926 checkUnnamed2942(o.cigar); | 926 checkUnnamed2412(o.cigar); |
| 927 unittest.expect(o.mappingQuality, unittest.equals(42)); | 927 unittest.expect(o.mappingQuality, unittest.equals(42)); |
| 928 checkPosition(o.position); | 928 checkPosition(o.position); |
| 929 } | 929 } |
| 930 buildCounterLinearAlignment--; | 930 buildCounterLinearAlignment--; |
| 931 } | 931 } |
| 932 | 932 |
| 933 core.int buildCounterListBasesResponse = 0; | 933 core.int buildCounterListBasesResponse = 0; |
| 934 buildListBasesResponse() { | 934 buildListBasesResponse() { |
| 935 var o = new api.ListBasesResponse(); | 935 var o = new api.ListBasesResponse(); |
| 936 buildCounterListBasesResponse++; | 936 buildCounterListBasesResponse++; |
| 937 if (buildCounterListBasesResponse < 3) { | 937 if (buildCounterListBasesResponse < 3) { |
| 938 o.nextPageToken = "foo"; | 938 o.nextPageToken = "foo"; |
| 939 o.offset = "foo"; | 939 o.offset = "foo"; |
| 940 o.sequence = "foo"; | 940 o.sequence = "foo"; |
| 941 } | 941 } |
| 942 buildCounterListBasesResponse--; | 942 buildCounterListBasesResponse--; |
| 943 return o; | 943 return o; |
| 944 } | 944 } |
| 945 | 945 |
| 946 checkListBasesResponse(api.ListBasesResponse o) { | 946 checkListBasesResponse(api.ListBasesResponse o) { |
| 947 buildCounterListBasesResponse++; | 947 buildCounterListBasesResponse++; |
| 948 if (buildCounterListBasesResponse < 3) { | 948 if (buildCounterListBasesResponse < 3) { |
| 949 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 949 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 950 unittest.expect(o.offset, unittest.equals('foo')); | 950 unittest.expect(o.offset, unittest.equals('foo')); |
| 951 unittest.expect(o.sequence, unittest.equals('foo')); | 951 unittest.expect(o.sequence, unittest.equals('foo')); |
| 952 } | 952 } |
| 953 buildCounterListBasesResponse--; | 953 buildCounterListBasesResponse--; |
| 954 } | 954 } |
| 955 | 955 |
| 956 buildUnnamed2943() { | 956 buildUnnamed2413() { |
| 957 var o = new core.List<api.CoverageBucket>(); | 957 var o = new core.List<api.CoverageBucket>(); |
| 958 o.add(buildCoverageBucket()); | 958 o.add(buildCoverageBucket()); |
| 959 o.add(buildCoverageBucket()); | 959 o.add(buildCoverageBucket()); |
| 960 return o; | 960 return o; |
| 961 } | 961 } |
| 962 | 962 |
| 963 checkUnnamed2943(core.List<api.CoverageBucket> o) { | 963 checkUnnamed2413(core.List<api.CoverageBucket> o) { |
| 964 unittest.expect(o, unittest.hasLength(2)); | 964 unittest.expect(o, unittest.hasLength(2)); |
| 965 checkCoverageBucket(o[0]); | 965 checkCoverageBucket(o[0]); |
| 966 checkCoverageBucket(o[1]); | 966 checkCoverageBucket(o[1]); |
| 967 } | 967 } |
| 968 | 968 |
| 969 core.int buildCounterListCoverageBucketsResponse = 0; | 969 core.int buildCounterListCoverageBucketsResponse = 0; |
| 970 buildListCoverageBucketsResponse() { | 970 buildListCoverageBucketsResponse() { |
| 971 var o = new api.ListCoverageBucketsResponse(); | 971 var o = new api.ListCoverageBucketsResponse(); |
| 972 buildCounterListCoverageBucketsResponse++; | 972 buildCounterListCoverageBucketsResponse++; |
| 973 if (buildCounterListCoverageBucketsResponse < 3) { | 973 if (buildCounterListCoverageBucketsResponse < 3) { |
| 974 o.bucketWidth = "foo"; | 974 o.bucketWidth = "foo"; |
| 975 o.coverageBuckets = buildUnnamed2943(); | 975 o.coverageBuckets = buildUnnamed2413(); |
| 976 o.nextPageToken = "foo"; | 976 o.nextPageToken = "foo"; |
| 977 } | 977 } |
| 978 buildCounterListCoverageBucketsResponse--; | 978 buildCounterListCoverageBucketsResponse--; |
| 979 return o; | 979 return o; |
| 980 } | 980 } |
| 981 | 981 |
| 982 checkListCoverageBucketsResponse(api.ListCoverageBucketsResponse o) { | 982 checkListCoverageBucketsResponse(api.ListCoverageBucketsResponse o) { |
| 983 buildCounterListCoverageBucketsResponse++; | 983 buildCounterListCoverageBucketsResponse++; |
| 984 if (buildCounterListCoverageBucketsResponse < 3) { | 984 if (buildCounterListCoverageBucketsResponse < 3) { |
| 985 unittest.expect(o.bucketWidth, unittest.equals('foo')); | 985 unittest.expect(o.bucketWidth, unittest.equals('foo')); |
| 986 checkUnnamed2943(o.coverageBuckets); | 986 checkUnnamed2413(o.coverageBuckets); |
| 987 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 987 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 988 } | 988 } |
| 989 buildCounterListCoverageBucketsResponse--; | 989 buildCounterListCoverageBucketsResponse--; |
| 990 } | 990 } |
| 991 | 991 |
| 992 buildUnnamed2944() { | 992 buildUnnamed2414() { |
| 993 var o = new core.List<api.Dataset>(); | 993 var o = new core.List<api.Dataset>(); |
| 994 o.add(buildDataset()); | 994 o.add(buildDataset()); |
| 995 o.add(buildDataset()); | 995 o.add(buildDataset()); |
| 996 return o; | 996 return o; |
| 997 } | 997 } |
| 998 | 998 |
| 999 checkUnnamed2944(core.List<api.Dataset> o) { | 999 checkUnnamed2414(core.List<api.Dataset> o) { |
| 1000 unittest.expect(o, unittest.hasLength(2)); | 1000 unittest.expect(o, unittest.hasLength(2)); |
| 1001 checkDataset(o[0]); | 1001 checkDataset(o[0]); |
| 1002 checkDataset(o[1]); | 1002 checkDataset(o[1]); |
| 1003 } | 1003 } |
| 1004 | 1004 |
| 1005 core.int buildCounterListDatasetsResponse = 0; | 1005 core.int buildCounterListDatasetsResponse = 0; |
| 1006 buildListDatasetsResponse() { | 1006 buildListDatasetsResponse() { |
| 1007 var o = new api.ListDatasetsResponse(); | 1007 var o = new api.ListDatasetsResponse(); |
| 1008 buildCounterListDatasetsResponse++; | 1008 buildCounterListDatasetsResponse++; |
| 1009 if (buildCounterListDatasetsResponse < 3) { | 1009 if (buildCounterListDatasetsResponse < 3) { |
| 1010 o.datasets = buildUnnamed2944(); | 1010 o.datasets = buildUnnamed2414(); |
| 1011 o.nextPageToken = "foo"; | 1011 o.nextPageToken = "foo"; |
| 1012 } | 1012 } |
| 1013 buildCounterListDatasetsResponse--; | 1013 buildCounterListDatasetsResponse--; |
| 1014 return o; | 1014 return o; |
| 1015 } | 1015 } |
| 1016 | 1016 |
| 1017 checkListDatasetsResponse(api.ListDatasetsResponse o) { | 1017 checkListDatasetsResponse(api.ListDatasetsResponse o) { |
| 1018 buildCounterListDatasetsResponse++; | 1018 buildCounterListDatasetsResponse++; |
| 1019 if (buildCounterListDatasetsResponse < 3) { | 1019 if (buildCounterListDatasetsResponse < 3) { |
| 1020 checkUnnamed2944(o.datasets); | 1020 checkUnnamed2414(o.datasets); |
| 1021 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1021 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1022 } | 1022 } |
| 1023 buildCounterListDatasetsResponse--; | 1023 buildCounterListDatasetsResponse--; |
| 1024 } | 1024 } |
| 1025 | 1025 |
| 1026 buildUnnamed2945() { | 1026 buildUnnamed2415() { |
| 1027 var o = new core.List<api.Operation>(); | 1027 var o = new core.List<api.Operation>(); |
| 1028 o.add(buildOperation()); | 1028 o.add(buildOperation()); |
| 1029 o.add(buildOperation()); | 1029 o.add(buildOperation()); |
| 1030 return o; | 1030 return o; |
| 1031 } | 1031 } |
| 1032 | 1032 |
| 1033 checkUnnamed2945(core.List<api.Operation> o) { | 1033 checkUnnamed2415(core.List<api.Operation> o) { |
| 1034 unittest.expect(o, unittest.hasLength(2)); | 1034 unittest.expect(o, unittest.hasLength(2)); |
| 1035 checkOperation(o[0]); | 1035 checkOperation(o[0]); |
| 1036 checkOperation(o[1]); | 1036 checkOperation(o[1]); |
| 1037 } | 1037 } |
| 1038 | 1038 |
| 1039 core.int buildCounterListOperationsResponse = 0; | 1039 core.int buildCounterListOperationsResponse = 0; |
| 1040 buildListOperationsResponse() { | 1040 buildListOperationsResponse() { |
| 1041 var o = new api.ListOperationsResponse(); | 1041 var o = new api.ListOperationsResponse(); |
| 1042 buildCounterListOperationsResponse++; | 1042 buildCounterListOperationsResponse++; |
| 1043 if (buildCounterListOperationsResponse < 3) { | 1043 if (buildCounterListOperationsResponse < 3) { |
| 1044 o.nextPageToken = "foo"; | 1044 o.nextPageToken = "foo"; |
| 1045 o.operations = buildUnnamed2945(); | 1045 o.operations = buildUnnamed2415(); |
| 1046 } | 1046 } |
| 1047 buildCounterListOperationsResponse--; | 1047 buildCounterListOperationsResponse--; |
| 1048 return o; | 1048 return o; |
| 1049 } | 1049 } |
| 1050 | 1050 |
| 1051 checkListOperationsResponse(api.ListOperationsResponse o) { | 1051 checkListOperationsResponse(api.ListOperationsResponse o) { |
| 1052 buildCounterListOperationsResponse++; | 1052 buildCounterListOperationsResponse++; |
| 1053 if (buildCounterListOperationsResponse < 3) { | 1053 if (buildCounterListOperationsResponse < 3) { |
| 1054 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1054 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1055 checkUnnamed2945(o.operations); | 1055 checkUnnamed2415(o.operations); |
| 1056 } | 1056 } |
| 1057 buildCounterListOperationsResponse--; | 1057 buildCounterListOperationsResponse--; |
| 1058 } | 1058 } |
| 1059 | 1059 |
| 1060 buildUnnamed2946() { | 1060 buildUnnamed2416() { |
| 1061 var o = new core.Map<core.String, core.String>(); | 1061 var o = new core.Map<core.String, core.String>(); |
| 1062 o["x"] = "foo"; | 1062 o["x"] = "foo"; |
| 1063 o["y"] = "foo"; | 1063 o["y"] = "foo"; |
| 1064 return o; | 1064 return o; |
| 1065 } | 1065 } |
| 1066 | 1066 |
| 1067 checkUnnamed2946(core.Map<core.String, core.String> o) { | 1067 checkUnnamed2416(core.Map<core.String, core.String> o) { |
| 1068 unittest.expect(o, unittest.hasLength(2)); | 1068 unittest.expect(o, unittest.hasLength(2)); |
| 1069 unittest.expect(o["x"], unittest.equals('foo')); | 1069 unittest.expect(o["x"], unittest.equals('foo')); |
| 1070 unittest.expect(o["y"], unittest.equals('foo')); | 1070 unittest.expect(o["y"], unittest.equals('foo')); |
| 1071 } | 1071 } |
| 1072 | 1072 |
| 1073 buildUnnamed2947() { | 1073 buildUnnamed2417() { |
| 1074 var o = new core.List<api.Variant>(); | 1074 var o = new core.List<api.Variant>(); |
| 1075 o.add(buildVariant()); | 1075 o.add(buildVariant()); |
| 1076 o.add(buildVariant()); | 1076 o.add(buildVariant()); |
| 1077 return o; | 1077 return o; |
| 1078 } | 1078 } |
| 1079 | 1079 |
| 1080 checkUnnamed2947(core.List<api.Variant> o) { | 1080 checkUnnamed2417(core.List<api.Variant> o) { |
| 1081 unittest.expect(o, unittest.hasLength(2)); | 1081 unittest.expect(o, unittest.hasLength(2)); |
| 1082 checkVariant(o[0]); | 1082 checkVariant(o[0]); |
| 1083 checkVariant(o[1]); | 1083 checkVariant(o[1]); |
| 1084 } | 1084 } |
| 1085 | 1085 |
| 1086 core.int buildCounterMergeVariantsRequest = 0; | 1086 core.int buildCounterMergeVariantsRequest = 0; |
| 1087 buildMergeVariantsRequest() { | 1087 buildMergeVariantsRequest() { |
| 1088 var o = new api.MergeVariantsRequest(); | 1088 var o = new api.MergeVariantsRequest(); |
| 1089 buildCounterMergeVariantsRequest++; | 1089 buildCounterMergeVariantsRequest++; |
| 1090 if (buildCounterMergeVariantsRequest < 3) { | 1090 if (buildCounterMergeVariantsRequest < 3) { |
| 1091 o.infoMergeConfig = buildUnnamed2946(); | 1091 o.infoMergeConfig = buildUnnamed2416(); |
| 1092 o.variantSetId = "foo"; | 1092 o.variantSetId = "foo"; |
| 1093 o.variants = buildUnnamed2947(); | 1093 o.variants = buildUnnamed2417(); |
| 1094 } | 1094 } |
| 1095 buildCounterMergeVariantsRequest--; | 1095 buildCounterMergeVariantsRequest--; |
| 1096 return o; | 1096 return o; |
| 1097 } | 1097 } |
| 1098 | 1098 |
| 1099 checkMergeVariantsRequest(api.MergeVariantsRequest o) { | 1099 checkMergeVariantsRequest(api.MergeVariantsRequest o) { |
| 1100 buildCounterMergeVariantsRequest++; | 1100 buildCounterMergeVariantsRequest++; |
| 1101 if (buildCounterMergeVariantsRequest < 3) { | 1101 if (buildCounterMergeVariantsRequest < 3) { |
| 1102 checkUnnamed2946(o.infoMergeConfig); | 1102 checkUnnamed2416(o.infoMergeConfig); |
| 1103 unittest.expect(o.variantSetId, unittest.equals('foo')); | 1103 unittest.expect(o.variantSetId, unittest.equals('foo')); |
| 1104 checkUnnamed2947(o.variants); | 1104 checkUnnamed2417(o.variants); |
| 1105 } | 1105 } |
| 1106 buildCounterMergeVariantsRequest--; | 1106 buildCounterMergeVariantsRequest--; |
| 1107 } | 1107 } |
| 1108 | 1108 |
| 1109 buildUnnamed2948() { | 1109 buildUnnamed2418() { |
| 1110 var o = new core.Map<core.String, core.Object>(); | 1110 var o = new core.Map<core.String, core.Object>(); |
| 1111 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1111 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1112 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1112 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1113 return o; | 1113 return o; |
| 1114 } | 1114 } |
| 1115 | 1115 |
| 1116 checkUnnamed2948(core.Map<core.String, core.Object> o) { | 1116 checkUnnamed2418(core.Map<core.String, core.Object> o) { |
| 1117 unittest.expect(o, unittest.hasLength(2)); | 1117 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')); | 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')); |
| 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')); | 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')); |
| 1120 } | 1120 } |
| 1121 | 1121 |
| 1122 buildUnnamed2949() { | 1122 buildUnnamed2419() { |
| 1123 var o = new core.Map<core.String, core.Object>(); | 1123 var o = new core.Map<core.String, core.Object>(); |
| 1124 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1124 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1125 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1125 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1126 return o; | 1126 return o; |
| 1127 } | 1127 } |
| 1128 | 1128 |
| 1129 checkUnnamed2949(core.Map<core.String, core.Object> o) { | 1129 checkUnnamed2419(core.Map<core.String, core.Object> o) { |
| 1130 unittest.expect(o, unittest.hasLength(2)); | 1130 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')); | 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')); |
| 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')); | 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')); |
| 1133 } | 1133 } |
| 1134 | 1134 |
| 1135 core.int buildCounterOperation = 0; | 1135 core.int buildCounterOperation = 0; |
| 1136 buildOperation() { | 1136 buildOperation() { |
| 1137 var o = new api.Operation(); | 1137 var o = new api.Operation(); |
| 1138 buildCounterOperation++; | 1138 buildCounterOperation++; |
| 1139 if (buildCounterOperation < 3) { | 1139 if (buildCounterOperation < 3) { |
| 1140 o.done = true; | 1140 o.done = true; |
| 1141 o.error = buildStatus(); | 1141 o.error = buildStatus(); |
| 1142 o.metadata = buildUnnamed2948(); | 1142 o.metadata = buildUnnamed2418(); |
| 1143 o.name = "foo"; | 1143 o.name = "foo"; |
| 1144 o.response = buildUnnamed2949(); | 1144 o.response = buildUnnamed2419(); |
| 1145 } | 1145 } |
| 1146 buildCounterOperation--; | 1146 buildCounterOperation--; |
| 1147 return o; | 1147 return o; |
| 1148 } | 1148 } |
| 1149 | 1149 |
| 1150 checkOperation(api.Operation o) { | 1150 checkOperation(api.Operation o) { |
| 1151 buildCounterOperation++; | 1151 buildCounterOperation++; |
| 1152 if (buildCounterOperation < 3) { | 1152 if (buildCounterOperation < 3) { |
| 1153 unittest.expect(o.done, unittest.isTrue); | 1153 unittest.expect(o.done, unittest.isTrue); |
| 1154 checkStatus(o.error); | 1154 checkStatus(o.error); |
| 1155 checkUnnamed2948(o.metadata); | 1155 checkUnnamed2418(o.metadata); |
| 1156 unittest.expect(o.name, unittest.equals('foo')); | 1156 unittest.expect(o.name, unittest.equals('foo')); |
| 1157 checkUnnamed2949(o.response); | 1157 checkUnnamed2419(o.response); |
| 1158 } | 1158 } |
| 1159 buildCounterOperation--; | 1159 buildCounterOperation--; |
| 1160 } | 1160 } |
| 1161 | 1161 |
| 1162 core.int buildCounterOperationEvent = 0; | 1162 core.int buildCounterOperationEvent = 0; |
| 1163 buildOperationEvent() { | 1163 buildOperationEvent() { |
| 1164 var o = new api.OperationEvent(); | 1164 var o = new api.OperationEvent(); |
| 1165 buildCounterOperationEvent++; | 1165 buildCounterOperationEvent++; |
| 1166 if (buildCounterOperationEvent < 3) { | 1166 if (buildCounterOperationEvent < 3) { |
| 1167 o.description = "foo"; | 1167 o.description = "foo"; |
| 1168 o.endTime = "foo"; | 1168 o.endTime = "foo"; |
| 1169 o.startTime = "foo"; | 1169 o.startTime = "foo"; |
| 1170 } | 1170 } |
| 1171 buildCounterOperationEvent--; | 1171 buildCounterOperationEvent--; |
| 1172 return o; | 1172 return o; |
| 1173 } | 1173 } |
| 1174 | 1174 |
| 1175 checkOperationEvent(api.OperationEvent o) { | 1175 checkOperationEvent(api.OperationEvent o) { |
| 1176 buildCounterOperationEvent++; | 1176 buildCounterOperationEvent++; |
| 1177 if (buildCounterOperationEvent < 3) { | 1177 if (buildCounterOperationEvent < 3) { |
| 1178 unittest.expect(o.description, unittest.equals('foo')); | 1178 unittest.expect(o.description, unittest.equals('foo')); |
| 1179 unittest.expect(o.endTime, unittest.equals('foo')); | 1179 unittest.expect(o.endTime, unittest.equals('foo')); |
| 1180 unittest.expect(o.startTime, unittest.equals('foo')); | 1180 unittest.expect(o.startTime, unittest.equals('foo')); |
| 1181 } | 1181 } |
| 1182 buildCounterOperationEvent--; | 1182 buildCounterOperationEvent--; |
| 1183 } | 1183 } |
| 1184 | 1184 |
| 1185 buildUnnamed2950() { | 1185 buildUnnamed2420() { |
| 1186 var o = new core.List<api.OperationEvent>(); | 1186 var o = new core.List<api.OperationEvent>(); |
| 1187 o.add(buildOperationEvent()); | 1187 o.add(buildOperationEvent()); |
| 1188 o.add(buildOperationEvent()); | 1188 o.add(buildOperationEvent()); |
| 1189 return o; | 1189 return o; |
| 1190 } | 1190 } |
| 1191 | 1191 |
| 1192 checkUnnamed2950(core.List<api.OperationEvent> o) { | 1192 checkUnnamed2420(core.List<api.OperationEvent> o) { |
| 1193 unittest.expect(o, unittest.hasLength(2)); | 1193 unittest.expect(o, unittest.hasLength(2)); |
| 1194 checkOperationEvent(o[0]); | 1194 checkOperationEvent(o[0]); |
| 1195 checkOperationEvent(o[1]); | 1195 checkOperationEvent(o[1]); |
| 1196 } | 1196 } |
| 1197 | 1197 |
| 1198 buildUnnamed2951() { | 1198 buildUnnamed2421() { |
| 1199 var o = new core.Map<core.String, core.String>(); | 1199 var o = new core.Map<core.String, core.String>(); |
| 1200 o["x"] = "foo"; | 1200 o["x"] = "foo"; |
| 1201 o["y"] = "foo"; | 1201 o["y"] = "foo"; |
| 1202 return o; | 1202 return o; |
| 1203 } | 1203 } |
| 1204 | 1204 |
| 1205 checkUnnamed2951(core.Map<core.String, core.String> o) { | 1205 checkUnnamed2421(core.Map<core.String, core.String> o) { |
| 1206 unittest.expect(o, unittest.hasLength(2)); | 1206 unittest.expect(o, unittest.hasLength(2)); |
| 1207 unittest.expect(o["x"], unittest.equals('foo')); | 1207 unittest.expect(o["x"], unittest.equals('foo')); |
| 1208 unittest.expect(o["y"], unittest.equals('foo')); | 1208 unittest.expect(o["y"], unittest.equals('foo')); |
| 1209 } | 1209 } |
| 1210 | 1210 |
| 1211 buildUnnamed2952() { | 1211 buildUnnamed2422() { |
| 1212 var o = new core.Map<core.String, core.Object>(); | 1212 var o = new core.Map<core.String, core.Object>(); |
| 1213 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1213 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1214 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1214 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1215 return o; | 1215 return o; |
| 1216 } | 1216 } |
| 1217 | 1217 |
| 1218 checkUnnamed2952(core.Map<core.String, core.Object> o) { | 1218 checkUnnamed2422(core.Map<core.String, core.Object> o) { |
| 1219 unittest.expect(o, unittest.hasLength(2)); | 1219 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')); | 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')); |
| 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')); | 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')); |
| 1222 } | 1222 } |
| 1223 | 1223 |
| 1224 buildUnnamed2953() { | 1224 buildUnnamed2423() { |
| 1225 var o = new core.Map<core.String, core.Object>(); | 1225 var o = new core.Map<core.String, core.Object>(); |
| 1226 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1226 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1227 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1227 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 1228 return o; | 1228 return o; |
| 1229 } | 1229 } |
| 1230 | 1230 |
| 1231 checkUnnamed2953(core.Map<core.String, core.Object> o) { | 1231 checkUnnamed2423(core.Map<core.String, core.Object> o) { |
| 1232 unittest.expect(o, unittest.hasLength(2)); | 1232 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')); | 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')); |
| 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')); | 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')); |
| 1235 } | 1235 } |
| 1236 | 1236 |
| 1237 core.int buildCounterOperationMetadata = 0; | 1237 core.int buildCounterOperationMetadata = 0; |
| 1238 buildOperationMetadata() { | 1238 buildOperationMetadata() { |
| 1239 var o = new api.OperationMetadata(); | 1239 var o = new api.OperationMetadata(); |
| 1240 buildCounterOperationMetadata++; | 1240 buildCounterOperationMetadata++; |
| 1241 if (buildCounterOperationMetadata < 3) { | 1241 if (buildCounterOperationMetadata < 3) { |
| 1242 o.clientId = "foo"; | 1242 o.clientId = "foo"; |
| 1243 o.createTime = "foo"; | 1243 o.createTime = "foo"; |
| 1244 o.endTime = "foo"; | 1244 o.endTime = "foo"; |
| 1245 o.events = buildUnnamed2950(); | 1245 o.events = buildUnnamed2420(); |
| 1246 o.labels = buildUnnamed2951(); | 1246 o.labels = buildUnnamed2421(); |
| 1247 o.projectId = "foo"; | 1247 o.projectId = "foo"; |
| 1248 o.request = buildUnnamed2952(); | 1248 o.request = buildUnnamed2422(); |
| 1249 o.runtimeMetadata = buildUnnamed2953(); | 1249 o.runtimeMetadata = buildUnnamed2423(); |
| 1250 o.startTime = "foo"; | 1250 o.startTime = "foo"; |
| 1251 } | 1251 } |
| 1252 buildCounterOperationMetadata--; | 1252 buildCounterOperationMetadata--; |
| 1253 return o; | 1253 return o; |
| 1254 } | 1254 } |
| 1255 | 1255 |
| 1256 checkOperationMetadata(api.OperationMetadata o) { | 1256 checkOperationMetadata(api.OperationMetadata o) { |
| 1257 buildCounterOperationMetadata++; | 1257 buildCounterOperationMetadata++; |
| 1258 if (buildCounterOperationMetadata < 3) { | 1258 if (buildCounterOperationMetadata < 3) { |
| 1259 unittest.expect(o.clientId, unittest.equals('foo')); | 1259 unittest.expect(o.clientId, unittest.equals('foo')); |
| 1260 unittest.expect(o.createTime, unittest.equals('foo')); | 1260 unittest.expect(o.createTime, unittest.equals('foo')); |
| 1261 unittest.expect(o.endTime, unittest.equals('foo')); | 1261 unittest.expect(o.endTime, unittest.equals('foo')); |
| 1262 checkUnnamed2950(o.events); | 1262 checkUnnamed2420(o.events); |
| 1263 checkUnnamed2951(o.labels); | 1263 checkUnnamed2421(o.labels); |
| 1264 unittest.expect(o.projectId, unittest.equals('foo')); | 1264 unittest.expect(o.projectId, unittest.equals('foo')); |
| 1265 checkUnnamed2952(o.request); | 1265 checkUnnamed2422(o.request); |
| 1266 checkUnnamed2953(o.runtimeMetadata); | 1266 checkUnnamed2423(o.runtimeMetadata); |
| 1267 unittest.expect(o.startTime, unittest.equals('foo')); | 1267 unittest.expect(o.startTime, unittest.equals('foo')); |
| 1268 } | 1268 } |
| 1269 buildCounterOperationMetadata--; | 1269 buildCounterOperationMetadata--; |
| 1270 } | 1270 } |
| 1271 | 1271 |
| 1272 buildUnnamed2954() { | 1272 buildUnnamed2424() { |
| 1273 var o = new core.List<api.Binding>(); | 1273 var o = new core.List<api.Binding>(); |
| 1274 o.add(buildBinding()); | 1274 o.add(buildBinding()); |
| 1275 o.add(buildBinding()); | 1275 o.add(buildBinding()); |
| 1276 return o; | 1276 return o; |
| 1277 } | 1277 } |
| 1278 | 1278 |
| 1279 checkUnnamed2954(core.List<api.Binding> o) { | 1279 checkUnnamed2424(core.List<api.Binding> o) { |
| 1280 unittest.expect(o, unittest.hasLength(2)); | 1280 unittest.expect(o, unittest.hasLength(2)); |
| 1281 checkBinding(o[0]); | 1281 checkBinding(o[0]); |
| 1282 checkBinding(o[1]); | 1282 checkBinding(o[1]); |
| 1283 } | 1283 } |
| 1284 | 1284 |
| 1285 core.int buildCounterPolicy = 0; | 1285 core.int buildCounterPolicy = 0; |
| 1286 buildPolicy() { | 1286 buildPolicy() { |
| 1287 var o = new api.Policy(); | 1287 var o = new api.Policy(); |
| 1288 buildCounterPolicy++; | 1288 buildCounterPolicy++; |
| 1289 if (buildCounterPolicy < 3) { | 1289 if (buildCounterPolicy < 3) { |
| 1290 o.bindings = buildUnnamed2954(); | 1290 o.bindings = buildUnnamed2424(); |
| 1291 o.etag = "foo"; | 1291 o.etag = "foo"; |
| 1292 o.version = 42; | 1292 o.version = 42; |
| 1293 } | 1293 } |
| 1294 buildCounterPolicy--; | 1294 buildCounterPolicy--; |
| 1295 return o; | 1295 return o; |
| 1296 } | 1296 } |
| 1297 | 1297 |
| 1298 checkPolicy(api.Policy o) { | 1298 checkPolicy(api.Policy o) { |
| 1299 buildCounterPolicy++; | 1299 buildCounterPolicy++; |
| 1300 if (buildCounterPolicy < 3) { | 1300 if (buildCounterPolicy < 3) { |
| 1301 checkUnnamed2954(o.bindings); | 1301 checkUnnamed2424(o.bindings); |
| 1302 unittest.expect(o.etag, unittest.equals('foo')); | 1302 unittest.expect(o.etag, unittest.equals('foo')); |
| 1303 unittest.expect(o.version, unittest.equals(42)); | 1303 unittest.expect(o.version, unittest.equals(42)); |
| 1304 } | 1304 } |
| 1305 buildCounterPolicy--; | 1305 buildCounterPolicy--; |
| 1306 } | 1306 } |
| 1307 | 1307 |
| 1308 core.int buildCounterPosition = 0; | 1308 core.int buildCounterPosition = 0; |
| 1309 buildPosition() { | 1309 buildPosition() { |
| 1310 var o = new api.Position(); | 1310 var o = new api.Position(); |
| 1311 buildCounterPosition++; | 1311 buildCounterPosition++; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1371 checkRange(api.Range o) { | 1371 checkRange(api.Range o) { |
| 1372 buildCounterRange++; | 1372 buildCounterRange++; |
| 1373 if (buildCounterRange < 3) { | 1373 if (buildCounterRange < 3) { |
| 1374 unittest.expect(o.end, unittest.equals('foo')); | 1374 unittest.expect(o.end, unittest.equals('foo')); |
| 1375 unittest.expect(o.referenceName, unittest.equals('foo')); | 1375 unittest.expect(o.referenceName, unittest.equals('foo')); |
| 1376 unittest.expect(o.start, unittest.equals('foo')); | 1376 unittest.expect(o.start, unittest.equals('foo')); |
| 1377 } | 1377 } |
| 1378 buildCounterRange--; | 1378 buildCounterRange--; |
| 1379 } | 1379 } |
| 1380 | 1380 |
| 1381 buildUnnamed2955() { | 1381 buildUnnamed2425() { |
| 1382 var o = new core.List<core.int>(); | 1382 var o = new core.List<core.int>(); |
| 1383 o.add(42); | 1383 o.add(42); |
| 1384 o.add(42); | 1384 o.add(42); |
| 1385 return o; | 1385 return o; |
| 1386 } | 1386 } |
| 1387 | 1387 |
| 1388 checkUnnamed2955(core.List<core.int> o) { | 1388 checkUnnamed2425(core.List<core.int> o) { |
| 1389 unittest.expect(o, unittest.hasLength(2)); | 1389 unittest.expect(o, unittest.hasLength(2)); |
| 1390 unittest.expect(o[0], unittest.equals(42)); | 1390 unittest.expect(o[0], unittest.equals(42)); |
| 1391 unittest.expect(o[1], unittest.equals(42)); | 1391 unittest.expect(o[1], unittest.equals(42)); |
| 1392 } | 1392 } |
| 1393 | 1393 |
| 1394 buildUnnamed2956() { | 1394 buildUnnamed2426() { |
| 1395 var o = new core.List<core.Object>(); | 1395 var o = new core.List<core.Object>(); |
| 1396 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 1396 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 1397 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 1397 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 1398 return o; | 1398 return o; |
| 1399 } | 1399 } |
| 1400 | 1400 |
| 1401 checkUnnamed2956(core.List<core.Object> o) { | 1401 checkUnnamed2426(core.List<core.Object> o) { |
| 1402 unittest.expect(o, unittest.hasLength(2)); | 1402 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')); | 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')); |
| 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')); | 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')); |
| 1405 } | 1405 } |
| 1406 | 1406 |
| 1407 buildUnnamed2957() { | 1407 buildUnnamed2427() { |
| 1408 var o = new core.Map<core.String, core.List<core.Object>>(); | 1408 var o = new core.Map<core.String, core.List<core.Object>>(); |
| 1409 o["x"] = buildUnnamed2956(); | 1409 o["x"] = buildUnnamed2426(); |
| 1410 o["y"] = buildUnnamed2956(); | 1410 o["y"] = buildUnnamed2426(); |
| 1411 return o; | 1411 return o; |
| 1412 } | 1412 } |
| 1413 | 1413 |
| 1414 checkUnnamed2957(core.Map<core.String, core.List<core.Object>> o) { | 1414 checkUnnamed2427(core.Map<core.String, core.List<core.Object>> o) { |
| 1415 unittest.expect(o, unittest.hasLength(2)); | 1415 unittest.expect(o, unittest.hasLength(2)); |
| 1416 checkUnnamed2956(o["x"]); | 1416 checkUnnamed2426(o["x"]); |
| 1417 checkUnnamed2956(o["y"]); | 1417 checkUnnamed2426(o["y"]); |
| 1418 } | 1418 } |
| 1419 | 1419 |
| 1420 core.int buildCounterRead = 0; | 1420 core.int buildCounterRead = 0; |
| 1421 buildRead() { | 1421 buildRead() { |
| 1422 var o = new api.Read(); | 1422 var o = new api.Read(); |
| 1423 buildCounterRead++; | 1423 buildCounterRead++; |
| 1424 if (buildCounterRead < 3) { | 1424 if (buildCounterRead < 3) { |
| 1425 o.alignedQuality = buildUnnamed2955(); | 1425 o.alignedQuality = buildUnnamed2425(); |
| 1426 o.alignedSequence = "foo"; | 1426 o.alignedSequence = "foo"; |
| 1427 o.alignment = buildLinearAlignment(); | 1427 o.alignment = buildLinearAlignment(); |
| 1428 o.duplicateFragment = true; | 1428 o.duplicateFragment = true; |
| 1429 o.failedVendorQualityChecks = true; | 1429 o.failedVendorQualityChecks = true; |
| 1430 o.fragmentLength = 42; | 1430 o.fragmentLength = 42; |
| 1431 o.fragmentName = "foo"; | 1431 o.fragmentName = "foo"; |
| 1432 o.id = "foo"; | 1432 o.id = "foo"; |
| 1433 o.info = buildUnnamed2957(); | 1433 o.info = buildUnnamed2427(); |
| 1434 o.nextMatePosition = buildPosition(); | 1434 o.nextMatePosition = buildPosition(); |
| 1435 o.numberReads = 42; | 1435 o.numberReads = 42; |
| 1436 o.properPlacement = true; | 1436 o.properPlacement = true; |
| 1437 o.readGroupId = "foo"; | 1437 o.readGroupId = "foo"; |
| 1438 o.readGroupSetId = "foo"; | 1438 o.readGroupSetId = "foo"; |
| 1439 o.readNumber = 42; | 1439 o.readNumber = 42; |
| 1440 o.secondaryAlignment = true; | 1440 o.secondaryAlignment = true; |
| 1441 o.supplementaryAlignment = true; | 1441 o.supplementaryAlignment = true; |
| 1442 } | 1442 } |
| 1443 buildCounterRead--; | 1443 buildCounterRead--; |
| 1444 return o; | 1444 return o; |
| 1445 } | 1445 } |
| 1446 | 1446 |
| 1447 checkRead(api.Read o) { | 1447 checkRead(api.Read o) { |
| 1448 buildCounterRead++; | 1448 buildCounterRead++; |
| 1449 if (buildCounterRead < 3) { | 1449 if (buildCounterRead < 3) { |
| 1450 checkUnnamed2955(o.alignedQuality); | 1450 checkUnnamed2425(o.alignedQuality); |
| 1451 unittest.expect(o.alignedSequence, unittest.equals('foo')); | 1451 unittest.expect(o.alignedSequence, unittest.equals('foo')); |
| 1452 checkLinearAlignment(o.alignment); | 1452 checkLinearAlignment(o.alignment); |
| 1453 unittest.expect(o.duplicateFragment, unittest.isTrue); | 1453 unittest.expect(o.duplicateFragment, unittest.isTrue); |
| 1454 unittest.expect(o.failedVendorQualityChecks, unittest.isTrue); | 1454 unittest.expect(o.failedVendorQualityChecks, unittest.isTrue); |
| 1455 unittest.expect(o.fragmentLength, unittest.equals(42)); | 1455 unittest.expect(o.fragmentLength, unittest.equals(42)); |
| 1456 unittest.expect(o.fragmentName, unittest.equals('foo')); | 1456 unittest.expect(o.fragmentName, unittest.equals('foo')); |
| 1457 unittest.expect(o.id, unittest.equals('foo')); | 1457 unittest.expect(o.id, unittest.equals('foo')); |
| 1458 checkUnnamed2957(o.info); | 1458 checkUnnamed2427(o.info); |
| 1459 checkPosition(o.nextMatePosition); | 1459 checkPosition(o.nextMatePosition); |
| 1460 unittest.expect(o.numberReads, unittest.equals(42)); | 1460 unittest.expect(o.numberReads, unittest.equals(42)); |
| 1461 unittest.expect(o.properPlacement, unittest.isTrue); | 1461 unittest.expect(o.properPlacement, unittest.isTrue); |
| 1462 unittest.expect(o.readGroupId, unittest.equals('foo')); | 1462 unittest.expect(o.readGroupId, unittest.equals('foo')); |
| 1463 unittest.expect(o.readGroupSetId, unittest.equals('foo')); | 1463 unittest.expect(o.readGroupSetId, unittest.equals('foo')); |
| 1464 unittest.expect(o.readNumber, unittest.equals(42)); | 1464 unittest.expect(o.readNumber, unittest.equals(42)); |
| 1465 unittest.expect(o.secondaryAlignment, unittest.isTrue); | 1465 unittest.expect(o.secondaryAlignment, unittest.isTrue); |
| 1466 unittest.expect(o.supplementaryAlignment, unittest.isTrue); | 1466 unittest.expect(o.supplementaryAlignment, unittest.isTrue); |
| 1467 } | 1467 } |
| 1468 buildCounterRead--; | 1468 buildCounterRead--; |
| 1469 } | 1469 } |
| 1470 | 1470 |
| 1471 buildUnnamed2958() { | 1471 buildUnnamed2428() { |
| 1472 var o = new core.List<core.Object>(); | 1472 var o = new core.List<core.Object>(); |
| 1473 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 1473 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 1474 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 1474 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 1475 return o; | 1475 return o; |
| 1476 } | 1476 } |
| 1477 | 1477 |
| 1478 checkUnnamed2958(core.List<core.Object> o) { | 1478 checkUnnamed2428(core.List<core.Object> o) { |
| 1479 unittest.expect(o, unittest.hasLength(2)); | 1479 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')); | 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')); |
| 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')); | 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')); |
| 1482 } | 1482 } |
| 1483 | 1483 |
| 1484 buildUnnamed2959() { | 1484 buildUnnamed2429() { |
| 1485 var o = new core.Map<core.String, core.List<core.Object>>(); | 1485 var o = new core.Map<core.String, core.List<core.Object>>(); |
| 1486 o["x"] = buildUnnamed2958(); | 1486 o["x"] = buildUnnamed2428(); |
| 1487 o["y"] = buildUnnamed2958(); | 1487 o["y"] = buildUnnamed2428(); |
| 1488 return o; | 1488 return o; |
| 1489 } | 1489 } |
| 1490 | 1490 |
| 1491 checkUnnamed2959(core.Map<core.String, core.List<core.Object>> o) { | 1491 checkUnnamed2429(core.Map<core.String, core.List<core.Object>> o) { |
| 1492 unittest.expect(o, unittest.hasLength(2)); | 1492 unittest.expect(o, unittest.hasLength(2)); |
| 1493 checkUnnamed2958(o["x"]); | 1493 checkUnnamed2428(o["x"]); |
| 1494 checkUnnamed2958(o["y"]); | 1494 checkUnnamed2428(o["y"]); |
| 1495 } | 1495 } |
| 1496 | 1496 |
| 1497 buildUnnamed2960() { | 1497 buildUnnamed2430() { |
| 1498 var o = new core.List<api.Program>(); | 1498 var o = new core.List<api.Program>(); |
| 1499 o.add(buildProgram()); | 1499 o.add(buildProgram()); |
| 1500 o.add(buildProgram()); | 1500 o.add(buildProgram()); |
| 1501 return o; | 1501 return o; |
| 1502 } | 1502 } |
| 1503 | 1503 |
| 1504 checkUnnamed2960(core.List<api.Program> o) { | 1504 checkUnnamed2430(core.List<api.Program> o) { |
| 1505 unittest.expect(o, unittest.hasLength(2)); | 1505 unittest.expect(o, unittest.hasLength(2)); |
| 1506 checkProgram(o[0]); | 1506 checkProgram(o[0]); |
| 1507 checkProgram(o[1]); | 1507 checkProgram(o[1]); |
| 1508 } | 1508 } |
| 1509 | 1509 |
| 1510 core.int buildCounterReadGroup = 0; | 1510 core.int buildCounterReadGroup = 0; |
| 1511 buildReadGroup() { | 1511 buildReadGroup() { |
| 1512 var o = new api.ReadGroup(); | 1512 var o = new api.ReadGroup(); |
| 1513 buildCounterReadGroup++; | 1513 buildCounterReadGroup++; |
| 1514 if (buildCounterReadGroup < 3) { | 1514 if (buildCounterReadGroup < 3) { |
| 1515 o.datasetId = "foo"; | 1515 o.datasetId = "foo"; |
| 1516 o.description = "foo"; | 1516 o.description = "foo"; |
| 1517 o.experiment = buildExperiment(); | 1517 o.experiment = buildExperiment(); |
| 1518 o.id = "foo"; | 1518 o.id = "foo"; |
| 1519 o.info = buildUnnamed2959(); | 1519 o.info = buildUnnamed2429(); |
| 1520 o.name = "foo"; | 1520 o.name = "foo"; |
| 1521 o.predictedInsertSize = 42; | 1521 o.predictedInsertSize = 42; |
| 1522 o.programs = buildUnnamed2960(); | 1522 o.programs = buildUnnamed2430(); |
| 1523 o.referenceSetId = "foo"; | 1523 o.referenceSetId = "foo"; |
| 1524 o.sampleId = "foo"; | 1524 o.sampleId = "foo"; |
| 1525 } | 1525 } |
| 1526 buildCounterReadGroup--; | 1526 buildCounterReadGroup--; |
| 1527 return o; | 1527 return o; |
| 1528 } | 1528 } |
| 1529 | 1529 |
| 1530 checkReadGroup(api.ReadGroup o) { | 1530 checkReadGroup(api.ReadGroup o) { |
| 1531 buildCounterReadGroup++; | 1531 buildCounterReadGroup++; |
| 1532 if (buildCounterReadGroup < 3) { | 1532 if (buildCounterReadGroup < 3) { |
| 1533 unittest.expect(o.datasetId, unittest.equals('foo')); | 1533 unittest.expect(o.datasetId, unittest.equals('foo')); |
| 1534 unittest.expect(o.description, unittest.equals('foo')); | 1534 unittest.expect(o.description, unittest.equals('foo')); |
| 1535 checkExperiment(o.experiment); | 1535 checkExperiment(o.experiment); |
| 1536 unittest.expect(o.id, unittest.equals('foo')); | 1536 unittest.expect(o.id, unittest.equals('foo')); |
| 1537 checkUnnamed2959(o.info); | 1537 checkUnnamed2429(o.info); |
| 1538 unittest.expect(o.name, unittest.equals('foo')); | 1538 unittest.expect(o.name, unittest.equals('foo')); |
| 1539 unittest.expect(o.predictedInsertSize, unittest.equals(42)); | 1539 unittest.expect(o.predictedInsertSize, unittest.equals(42)); |
| 1540 checkUnnamed2960(o.programs); | 1540 checkUnnamed2430(o.programs); |
| 1541 unittest.expect(o.referenceSetId, unittest.equals('foo')); | 1541 unittest.expect(o.referenceSetId, unittest.equals('foo')); |
| 1542 unittest.expect(o.sampleId, unittest.equals('foo')); | 1542 unittest.expect(o.sampleId, unittest.equals('foo')); |
| 1543 } | 1543 } |
| 1544 buildCounterReadGroup--; | 1544 buildCounterReadGroup--; |
| 1545 } | 1545 } |
| 1546 | 1546 |
| 1547 buildUnnamed2961() { | 1547 buildUnnamed2431() { |
| 1548 var o = new core.List<core.Object>(); | 1548 var o = new core.List<core.Object>(); |
| 1549 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 1549 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 1550 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 1550 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 1551 return o; | 1551 return o; |
| 1552 } | 1552 } |
| 1553 | 1553 |
| 1554 checkUnnamed2961(core.List<core.Object> o) { | 1554 checkUnnamed2431(core.List<core.Object> o) { |
| 1555 unittest.expect(o, unittest.hasLength(2)); | 1555 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')); | 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')); |
| 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')); | 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')); |
| 1558 } | 1558 } |
| 1559 | 1559 |
| 1560 buildUnnamed2962() { | 1560 buildUnnamed2432() { |
| 1561 var o = new core.Map<core.String, core.List<core.Object>>(); | 1561 var o = new core.Map<core.String, core.List<core.Object>>(); |
| 1562 o["x"] = buildUnnamed2961(); | 1562 o["x"] = buildUnnamed2431(); |
| 1563 o["y"] = buildUnnamed2961(); | 1563 o["y"] = buildUnnamed2431(); |
| 1564 return o; | 1564 return o; |
| 1565 } | 1565 } |
| 1566 | 1566 |
| 1567 checkUnnamed2962(core.Map<core.String, core.List<core.Object>> o) { | 1567 checkUnnamed2432(core.Map<core.String, core.List<core.Object>> o) { |
| 1568 unittest.expect(o, unittest.hasLength(2)); | 1568 unittest.expect(o, unittest.hasLength(2)); |
| 1569 checkUnnamed2961(o["x"]); | 1569 checkUnnamed2431(o["x"]); |
| 1570 checkUnnamed2961(o["y"]); | 1570 checkUnnamed2431(o["y"]); |
| 1571 } | 1571 } |
| 1572 | 1572 |
| 1573 buildUnnamed2963() { | 1573 buildUnnamed2433() { |
| 1574 var o = new core.List<api.ReadGroup>(); | 1574 var o = new core.List<api.ReadGroup>(); |
| 1575 o.add(buildReadGroup()); | 1575 o.add(buildReadGroup()); |
| 1576 o.add(buildReadGroup()); | 1576 o.add(buildReadGroup()); |
| 1577 return o; | 1577 return o; |
| 1578 } | 1578 } |
| 1579 | 1579 |
| 1580 checkUnnamed2963(core.List<api.ReadGroup> o) { | 1580 checkUnnamed2433(core.List<api.ReadGroup> o) { |
| 1581 unittest.expect(o, unittest.hasLength(2)); | 1581 unittest.expect(o, unittest.hasLength(2)); |
| 1582 checkReadGroup(o[0]); | 1582 checkReadGroup(o[0]); |
| 1583 checkReadGroup(o[1]); | 1583 checkReadGroup(o[1]); |
| 1584 } | 1584 } |
| 1585 | 1585 |
| 1586 core.int buildCounterReadGroupSet = 0; | 1586 core.int buildCounterReadGroupSet = 0; |
| 1587 buildReadGroupSet() { | 1587 buildReadGroupSet() { |
| 1588 var o = new api.ReadGroupSet(); | 1588 var o = new api.ReadGroupSet(); |
| 1589 buildCounterReadGroupSet++; | 1589 buildCounterReadGroupSet++; |
| 1590 if (buildCounterReadGroupSet < 3) { | 1590 if (buildCounterReadGroupSet < 3) { |
| 1591 o.datasetId = "foo"; | 1591 o.datasetId = "foo"; |
| 1592 o.filename = "foo"; | 1592 o.filename = "foo"; |
| 1593 o.id = "foo"; | 1593 o.id = "foo"; |
| 1594 o.info = buildUnnamed2962(); | 1594 o.info = buildUnnamed2432(); |
| 1595 o.name = "foo"; | 1595 o.name = "foo"; |
| 1596 o.readGroups = buildUnnamed2963(); | 1596 o.readGroups = buildUnnamed2433(); |
| 1597 o.referenceSetId = "foo"; | 1597 o.referenceSetId = "foo"; |
| 1598 } | 1598 } |
| 1599 buildCounterReadGroupSet--; | 1599 buildCounterReadGroupSet--; |
| 1600 return o; | 1600 return o; |
| 1601 } | 1601 } |
| 1602 | 1602 |
| 1603 checkReadGroupSet(api.ReadGroupSet o) { | 1603 checkReadGroupSet(api.ReadGroupSet o) { |
| 1604 buildCounterReadGroupSet++; | 1604 buildCounterReadGroupSet++; |
| 1605 if (buildCounterReadGroupSet < 3) { | 1605 if (buildCounterReadGroupSet < 3) { |
| 1606 unittest.expect(o.datasetId, unittest.equals('foo')); | 1606 unittest.expect(o.datasetId, unittest.equals('foo')); |
| 1607 unittest.expect(o.filename, unittest.equals('foo')); | 1607 unittest.expect(o.filename, unittest.equals('foo')); |
| 1608 unittest.expect(o.id, unittest.equals('foo')); | 1608 unittest.expect(o.id, unittest.equals('foo')); |
| 1609 checkUnnamed2962(o.info); | 1609 checkUnnamed2432(o.info); |
| 1610 unittest.expect(o.name, unittest.equals('foo')); | 1610 unittest.expect(o.name, unittest.equals('foo')); |
| 1611 checkUnnamed2963(o.readGroups); | 1611 checkUnnamed2433(o.readGroups); |
| 1612 unittest.expect(o.referenceSetId, unittest.equals('foo')); | 1612 unittest.expect(o.referenceSetId, unittest.equals('foo')); |
| 1613 } | 1613 } |
| 1614 buildCounterReadGroupSet--; | 1614 buildCounterReadGroupSet--; |
| 1615 } | 1615 } |
| 1616 | 1616 |
| 1617 buildUnnamed2964() { | 1617 buildUnnamed2434() { |
| 1618 var o = new core.List<core.String>(); | 1618 var o = new core.List<core.String>(); |
| 1619 o.add("foo"); | 1619 o.add("foo"); |
| 1620 o.add("foo"); | 1620 o.add("foo"); |
| 1621 return o; | 1621 return o; |
| 1622 } | 1622 } |
| 1623 | 1623 |
| 1624 checkUnnamed2964(core.List<core.String> o) { | 1624 checkUnnamed2434(core.List<core.String> o) { |
| 1625 unittest.expect(o, unittest.hasLength(2)); | 1625 unittest.expect(o, unittest.hasLength(2)); |
| 1626 unittest.expect(o[0], unittest.equals('foo')); | 1626 unittest.expect(o[0], unittest.equals('foo')); |
| 1627 unittest.expect(o[1], unittest.equals('foo')); | 1627 unittest.expect(o[1], unittest.equals('foo')); |
| 1628 } | 1628 } |
| 1629 | 1629 |
| 1630 core.int buildCounterReference = 0; | 1630 core.int buildCounterReference = 0; |
| 1631 buildReference() { | 1631 buildReference() { |
| 1632 var o = new api.Reference(); | 1632 var o = new api.Reference(); |
| 1633 buildCounterReference++; | 1633 buildCounterReference++; |
| 1634 if (buildCounterReference < 3) { | 1634 if (buildCounterReference < 3) { |
| 1635 o.id = "foo"; | 1635 o.id = "foo"; |
| 1636 o.length = "foo"; | 1636 o.length = "foo"; |
| 1637 o.md5checksum = "foo"; | 1637 o.md5checksum = "foo"; |
| 1638 o.name = "foo"; | 1638 o.name = "foo"; |
| 1639 o.ncbiTaxonId = 42; | 1639 o.ncbiTaxonId = 42; |
| 1640 o.sourceAccessions = buildUnnamed2964(); | 1640 o.sourceAccessions = buildUnnamed2434(); |
| 1641 o.sourceUri = "foo"; | 1641 o.sourceUri = "foo"; |
| 1642 } | 1642 } |
| 1643 buildCounterReference--; | 1643 buildCounterReference--; |
| 1644 return o; | 1644 return o; |
| 1645 } | 1645 } |
| 1646 | 1646 |
| 1647 checkReference(api.Reference o) { | 1647 checkReference(api.Reference o) { |
| 1648 buildCounterReference++; | 1648 buildCounterReference++; |
| 1649 if (buildCounterReference < 3) { | 1649 if (buildCounterReference < 3) { |
| 1650 unittest.expect(o.id, unittest.equals('foo')); | 1650 unittest.expect(o.id, unittest.equals('foo')); |
| 1651 unittest.expect(o.length, unittest.equals('foo')); | 1651 unittest.expect(o.length, unittest.equals('foo')); |
| 1652 unittest.expect(o.md5checksum, unittest.equals('foo')); | 1652 unittest.expect(o.md5checksum, unittest.equals('foo')); |
| 1653 unittest.expect(o.name, unittest.equals('foo')); | 1653 unittest.expect(o.name, unittest.equals('foo')); |
| 1654 unittest.expect(o.ncbiTaxonId, unittest.equals(42)); | 1654 unittest.expect(o.ncbiTaxonId, unittest.equals(42)); |
| 1655 checkUnnamed2964(o.sourceAccessions); | 1655 checkUnnamed2434(o.sourceAccessions); |
| 1656 unittest.expect(o.sourceUri, unittest.equals('foo')); | 1656 unittest.expect(o.sourceUri, unittest.equals('foo')); |
| 1657 } | 1657 } |
| 1658 buildCounterReference--; | 1658 buildCounterReference--; |
| 1659 } | 1659 } |
| 1660 | 1660 |
| 1661 core.int buildCounterReferenceBound = 0; | 1661 core.int buildCounterReferenceBound = 0; |
| 1662 buildReferenceBound() { | 1662 buildReferenceBound() { |
| 1663 var o = new api.ReferenceBound(); | 1663 var o = new api.ReferenceBound(); |
| 1664 buildCounterReferenceBound++; | 1664 buildCounterReferenceBound++; |
| 1665 if (buildCounterReferenceBound < 3) { | 1665 if (buildCounterReferenceBound < 3) { |
| 1666 o.referenceName = "foo"; | 1666 o.referenceName = "foo"; |
| 1667 o.upperBound = "foo"; | 1667 o.upperBound = "foo"; |
| 1668 } | 1668 } |
| 1669 buildCounterReferenceBound--; | 1669 buildCounterReferenceBound--; |
| 1670 return o; | 1670 return o; |
| 1671 } | 1671 } |
| 1672 | 1672 |
| 1673 checkReferenceBound(api.ReferenceBound o) { | 1673 checkReferenceBound(api.ReferenceBound o) { |
| 1674 buildCounterReferenceBound++; | 1674 buildCounterReferenceBound++; |
| 1675 if (buildCounterReferenceBound < 3) { | 1675 if (buildCounterReferenceBound < 3) { |
| 1676 unittest.expect(o.referenceName, unittest.equals('foo')); | 1676 unittest.expect(o.referenceName, unittest.equals('foo')); |
| 1677 unittest.expect(o.upperBound, unittest.equals('foo')); | 1677 unittest.expect(o.upperBound, unittest.equals('foo')); |
| 1678 } | 1678 } |
| 1679 buildCounterReferenceBound--; | 1679 buildCounterReferenceBound--; |
| 1680 } | 1680 } |
| 1681 | 1681 |
| 1682 buildUnnamed2965() { | 1682 buildUnnamed2435() { |
| 1683 var o = new core.List<core.String>(); | 1683 var o = new core.List<core.String>(); |
| 1684 o.add("foo"); | 1684 o.add("foo"); |
| 1685 o.add("foo"); | 1685 o.add("foo"); |
| 1686 return o; | 1686 return o; |
| 1687 } | 1687 } |
| 1688 | 1688 |
| 1689 checkUnnamed2965(core.List<core.String> o) { | 1689 checkUnnamed2435(core.List<core.String> o) { |
| 1690 unittest.expect(o, unittest.hasLength(2)); | 1690 unittest.expect(o, unittest.hasLength(2)); |
| 1691 unittest.expect(o[0], unittest.equals('foo')); | 1691 unittest.expect(o[0], unittest.equals('foo')); |
| 1692 unittest.expect(o[1], unittest.equals('foo')); | 1692 unittest.expect(o[1], unittest.equals('foo')); |
| 1693 } | 1693 } |
| 1694 | 1694 |
| 1695 buildUnnamed2966() { | 1695 buildUnnamed2436() { |
| 1696 var o = new core.List<core.String>(); | 1696 var o = new core.List<core.String>(); |
| 1697 o.add("foo"); | 1697 o.add("foo"); |
| 1698 o.add("foo"); | 1698 o.add("foo"); |
| 1699 return o; | 1699 return o; |
| 1700 } | 1700 } |
| 1701 | 1701 |
| 1702 checkUnnamed2966(core.List<core.String> o) { | 1702 checkUnnamed2436(core.List<core.String> o) { |
| 1703 unittest.expect(o, unittest.hasLength(2)); | 1703 unittest.expect(o, unittest.hasLength(2)); |
| 1704 unittest.expect(o[0], unittest.equals('foo')); | 1704 unittest.expect(o[0], unittest.equals('foo')); |
| 1705 unittest.expect(o[1], unittest.equals('foo')); | 1705 unittest.expect(o[1], unittest.equals('foo')); |
| 1706 } | 1706 } |
| 1707 | 1707 |
| 1708 core.int buildCounterReferenceSet = 0; | 1708 core.int buildCounterReferenceSet = 0; |
| 1709 buildReferenceSet() { | 1709 buildReferenceSet() { |
| 1710 var o = new api.ReferenceSet(); | 1710 var o = new api.ReferenceSet(); |
| 1711 buildCounterReferenceSet++; | 1711 buildCounterReferenceSet++; |
| 1712 if (buildCounterReferenceSet < 3) { | 1712 if (buildCounterReferenceSet < 3) { |
| 1713 o.assemblyId = "foo"; | 1713 o.assemblyId = "foo"; |
| 1714 o.description = "foo"; | 1714 o.description = "foo"; |
| 1715 o.id = "foo"; | 1715 o.id = "foo"; |
| 1716 o.md5checksum = "foo"; | 1716 o.md5checksum = "foo"; |
| 1717 o.ncbiTaxonId = 42; | 1717 o.ncbiTaxonId = 42; |
| 1718 o.referenceIds = buildUnnamed2965(); | 1718 o.referenceIds = buildUnnamed2435(); |
| 1719 o.sourceAccessions = buildUnnamed2966(); | 1719 o.sourceAccessions = buildUnnamed2436(); |
| 1720 o.sourceUri = "foo"; | 1720 o.sourceUri = "foo"; |
| 1721 } | 1721 } |
| 1722 buildCounterReferenceSet--; | 1722 buildCounterReferenceSet--; |
| 1723 return o; | 1723 return o; |
| 1724 } | 1724 } |
| 1725 | 1725 |
| 1726 checkReferenceSet(api.ReferenceSet o) { | 1726 checkReferenceSet(api.ReferenceSet o) { |
| 1727 buildCounterReferenceSet++; | 1727 buildCounterReferenceSet++; |
| 1728 if (buildCounterReferenceSet < 3) { | 1728 if (buildCounterReferenceSet < 3) { |
| 1729 unittest.expect(o.assemblyId, unittest.equals('foo')); | 1729 unittest.expect(o.assemblyId, unittest.equals('foo')); |
| 1730 unittest.expect(o.description, unittest.equals('foo')); | 1730 unittest.expect(o.description, unittest.equals('foo')); |
| 1731 unittest.expect(o.id, unittest.equals('foo')); | 1731 unittest.expect(o.id, unittest.equals('foo')); |
| 1732 unittest.expect(o.md5checksum, unittest.equals('foo')); | 1732 unittest.expect(o.md5checksum, unittest.equals('foo')); |
| 1733 unittest.expect(o.ncbiTaxonId, unittest.equals(42)); | 1733 unittest.expect(o.ncbiTaxonId, unittest.equals(42)); |
| 1734 checkUnnamed2965(o.referenceIds); | 1734 checkUnnamed2435(o.referenceIds); |
| 1735 checkUnnamed2966(o.sourceAccessions); | 1735 checkUnnamed2436(o.sourceAccessions); |
| 1736 unittest.expect(o.sourceUri, unittest.equals('foo')); | 1736 unittest.expect(o.sourceUri, unittest.equals('foo')); |
| 1737 } | 1737 } |
| 1738 buildCounterReferenceSet--; | 1738 buildCounterReferenceSet--; |
| 1739 } | 1739 } |
| 1740 | 1740 |
| 1741 core.int buildCounterRuntimeMetadata = 0; | 1741 core.int buildCounterRuntimeMetadata = 0; |
| 1742 buildRuntimeMetadata() { | 1742 buildRuntimeMetadata() { |
| 1743 var o = new api.RuntimeMetadata(); | 1743 var o = new api.RuntimeMetadata(); |
| 1744 buildCounterRuntimeMetadata++; | 1744 buildCounterRuntimeMetadata++; |
| 1745 if (buildCounterRuntimeMetadata < 3) { | 1745 if (buildCounterRuntimeMetadata < 3) { |
| 1746 o.computeEngine = buildComputeEngine(); | 1746 o.computeEngine = buildComputeEngine(); |
| 1747 } | 1747 } |
| 1748 buildCounterRuntimeMetadata--; | 1748 buildCounterRuntimeMetadata--; |
| 1749 return o; | 1749 return o; |
| 1750 } | 1750 } |
| 1751 | 1751 |
| 1752 checkRuntimeMetadata(api.RuntimeMetadata o) { | 1752 checkRuntimeMetadata(api.RuntimeMetadata o) { |
| 1753 buildCounterRuntimeMetadata++; | 1753 buildCounterRuntimeMetadata++; |
| 1754 if (buildCounterRuntimeMetadata < 3) { | 1754 if (buildCounterRuntimeMetadata < 3) { |
| 1755 checkComputeEngine(o.computeEngine); | 1755 checkComputeEngine(o.computeEngine); |
| 1756 } | 1756 } |
| 1757 buildCounterRuntimeMetadata--; | 1757 buildCounterRuntimeMetadata--; |
| 1758 } | 1758 } |
| 1759 | 1759 |
| 1760 buildUnnamed2967() { | 1760 buildUnnamed2437() { |
| 1761 var o = new core.List<core.String>(); | 1761 var o = new core.List<core.String>(); |
| 1762 o.add("foo"); | 1762 o.add("foo"); |
| 1763 o.add("foo"); | 1763 o.add("foo"); |
| 1764 return o; | 1764 return o; |
| 1765 } | 1765 } |
| 1766 | 1766 |
| 1767 checkUnnamed2967(core.List<core.String> o) { | 1767 checkUnnamed2437(core.List<core.String> o) { |
| 1768 unittest.expect(o, unittest.hasLength(2)); | 1768 unittest.expect(o, unittest.hasLength(2)); |
| 1769 unittest.expect(o[0], unittest.equals('foo')); | 1769 unittest.expect(o[0], unittest.equals('foo')); |
| 1770 unittest.expect(o[1], unittest.equals('foo')); | 1770 unittest.expect(o[1], unittest.equals('foo')); |
| 1771 } | 1771 } |
| 1772 | 1772 |
| 1773 buildUnnamed2968() { | 1773 buildUnnamed2438() { |
| 1774 var o = new core.List<core.String>(); | 1774 var o = new core.List<core.String>(); |
| 1775 o.add("foo"); | 1775 o.add("foo"); |
| 1776 o.add("foo"); | 1776 o.add("foo"); |
| 1777 return o; | 1777 return o; |
| 1778 } | 1778 } |
| 1779 | 1779 |
| 1780 checkUnnamed2968(core.List<core.String> o) { | 1780 checkUnnamed2438(core.List<core.String> o) { |
| 1781 unittest.expect(o, unittest.hasLength(2)); | 1781 unittest.expect(o, unittest.hasLength(2)); |
| 1782 unittest.expect(o[0], unittest.equals('foo')); | 1782 unittest.expect(o[0], unittest.equals('foo')); |
| 1783 unittest.expect(o[1], unittest.equals('foo')); | 1783 unittest.expect(o[1], unittest.equals('foo')); |
| 1784 } | 1784 } |
| 1785 | 1785 |
| 1786 core.int buildCounterSearchAnnotationSetsRequest = 0; | 1786 core.int buildCounterSearchAnnotationSetsRequest = 0; |
| 1787 buildSearchAnnotationSetsRequest() { | 1787 buildSearchAnnotationSetsRequest() { |
| 1788 var o = new api.SearchAnnotationSetsRequest(); | 1788 var o = new api.SearchAnnotationSetsRequest(); |
| 1789 buildCounterSearchAnnotationSetsRequest++; | 1789 buildCounterSearchAnnotationSetsRequest++; |
| 1790 if (buildCounterSearchAnnotationSetsRequest < 3) { | 1790 if (buildCounterSearchAnnotationSetsRequest < 3) { |
| 1791 o.datasetIds = buildUnnamed2967(); | 1791 o.datasetIds = buildUnnamed2437(); |
| 1792 o.name = "foo"; | 1792 o.name = "foo"; |
| 1793 o.pageSize = 42; | 1793 o.pageSize = 42; |
| 1794 o.pageToken = "foo"; | 1794 o.pageToken = "foo"; |
| 1795 o.referenceSetId = "foo"; | 1795 o.referenceSetId = "foo"; |
| 1796 o.types = buildUnnamed2968(); | 1796 o.types = buildUnnamed2438(); |
| 1797 } | 1797 } |
| 1798 buildCounterSearchAnnotationSetsRequest--; | 1798 buildCounterSearchAnnotationSetsRequest--; |
| 1799 return o; | 1799 return o; |
| 1800 } | 1800 } |
| 1801 | 1801 |
| 1802 checkSearchAnnotationSetsRequest(api.SearchAnnotationSetsRequest o) { | 1802 checkSearchAnnotationSetsRequest(api.SearchAnnotationSetsRequest o) { |
| 1803 buildCounterSearchAnnotationSetsRequest++; | 1803 buildCounterSearchAnnotationSetsRequest++; |
| 1804 if (buildCounterSearchAnnotationSetsRequest < 3) { | 1804 if (buildCounterSearchAnnotationSetsRequest < 3) { |
| 1805 checkUnnamed2967(o.datasetIds); | 1805 checkUnnamed2437(o.datasetIds); |
| 1806 unittest.expect(o.name, unittest.equals('foo')); | 1806 unittest.expect(o.name, unittest.equals('foo')); |
| 1807 unittest.expect(o.pageSize, unittest.equals(42)); | 1807 unittest.expect(o.pageSize, unittest.equals(42)); |
| 1808 unittest.expect(o.pageToken, unittest.equals('foo')); | 1808 unittest.expect(o.pageToken, unittest.equals('foo')); |
| 1809 unittest.expect(o.referenceSetId, unittest.equals('foo')); | 1809 unittest.expect(o.referenceSetId, unittest.equals('foo')); |
| 1810 checkUnnamed2968(o.types); | 1810 checkUnnamed2438(o.types); |
| 1811 } | 1811 } |
| 1812 buildCounterSearchAnnotationSetsRequest--; | 1812 buildCounterSearchAnnotationSetsRequest--; |
| 1813 } | 1813 } |
| 1814 | 1814 |
| 1815 buildUnnamed2969() { | 1815 buildUnnamed2439() { |
| 1816 var o = new core.List<api.AnnotationSet>(); | 1816 var o = new core.List<api.AnnotationSet>(); |
| 1817 o.add(buildAnnotationSet()); | 1817 o.add(buildAnnotationSet()); |
| 1818 o.add(buildAnnotationSet()); | 1818 o.add(buildAnnotationSet()); |
| 1819 return o; | 1819 return o; |
| 1820 } | 1820 } |
| 1821 | 1821 |
| 1822 checkUnnamed2969(core.List<api.AnnotationSet> o) { | 1822 checkUnnamed2439(core.List<api.AnnotationSet> o) { |
| 1823 unittest.expect(o, unittest.hasLength(2)); | 1823 unittest.expect(o, unittest.hasLength(2)); |
| 1824 checkAnnotationSet(o[0]); | 1824 checkAnnotationSet(o[0]); |
| 1825 checkAnnotationSet(o[1]); | 1825 checkAnnotationSet(o[1]); |
| 1826 } | 1826 } |
| 1827 | 1827 |
| 1828 core.int buildCounterSearchAnnotationSetsResponse = 0; | 1828 core.int buildCounterSearchAnnotationSetsResponse = 0; |
| 1829 buildSearchAnnotationSetsResponse() { | 1829 buildSearchAnnotationSetsResponse() { |
| 1830 var o = new api.SearchAnnotationSetsResponse(); | 1830 var o = new api.SearchAnnotationSetsResponse(); |
| 1831 buildCounterSearchAnnotationSetsResponse++; | 1831 buildCounterSearchAnnotationSetsResponse++; |
| 1832 if (buildCounterSearchAnnotationSetsResponse < 3) { | 1832 if (buildCounterSearchAnnotationSetsResponse < 3) { |
| 1833 o.annotationSets = buildUnnamed2969(); | 1833 o.annotationSets = buildUnnamed2439(); |
| 1834 o.nextPageToken = "foo"; | 1834 o.nextPageToken = "foo"; |
| 1835 } | 1835 } |
| 1836 buildCounterSearchAnnotationSetsResponse--; | 1836 buildCounterSearchAnnotationSetsResponse--; |
| 1837 return o; | 1837 return o; |
| 1838 } | 1838 } |
| 1839 | 1839 |
| 1840 checkSearchAnnotationSetsResponse(api.SearchAnnotationSetsResponse o) { | 1840 checkSearchAnnotationSetsResponse(api.SearchAnnotationSetsResponse o) { |
| 1841 buildCounterSearchAnnotationSetsResponse++; | 1841 buildCounterSearchAnnotationSetsResponse++; |
| 1842 if (buildCounterSearchAnnotationSetsResponse < 3) { | 1842 if (buildCounterSearchAnnotationSetsResponse < 3) { |
| 1843 checkUnnamed2969(o.annotationSets); | 1843 checkUnnamed2439(o.annotationSets); |
| 1844 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1844 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1845 } | 1845 } |
| 1846 buildCounterSearchAnnotationSetsResponse--; | 1846 buildCounterSearchAnnotationSetsResponse--; |
| 1847 } | 1847 } |
| 1848 | 1848 |
| 1849 buildUnnamed2970() { | 1849 buildUnnamed2440() { |
| 1850 var o = new core.List<core.String>(); | 1850 var o = new core.List<core.String>(); |
| 1851 o.add("foo"); | 1851 o.add("foo"); |
| 1852 o.add("foo"); | 1852 o.add("foo"); |
| 1853 return o; | 1853 return o; |
| 1854 } | 1854 } |
| 1855 | 1855 |
| 1856 checkUnnamed2970(core.List<core.String> o) { | 1856 checkUnnamed2440(core.List<core.String> o) { |
| 1857 unittest.expect(o, unittest.hasLength(2)); | 1857 unittest.expect(o, unittest.hasLength(2)); |
| 1858 unittest.expect(o[0], unittest.equals('foo')); | 1858 unittest.expect(o[0], unittest.equals('foo')); |
| 1859 unittest.expect(o[1], unittest.equals('foo')); | 1859 unittest.expect(o[1], unittest.equals('foo')); |
| 1860 } | 1860 } |
| 1861 | 1861 |
| 1862 core.int buildCounterSearchAnnotationsRequest = 0; | 1862 core.int buildCounterSearchAnnotationsRequest = 0; |
| 1863 buildSearchAnnotationsRequest() { | 1863 buildSearchAnnotationsRequest() { |
| 1864 var o = new api.SearchAnnotationsRequest(); | 1864 var o = new api.SearchAnnotationsRequest(); |
| 1865 buildCounterSearchAnnotationsRequest++; | 1865 buildCounterSearchAnnotationsRequest++; |
| 1866 if (buildCounterSearchAnnotationsRequest < 3) { | 1866 if (buildCounterSearchAnnotationsRequest < 3) { |
| 1867 o.annotationSetIds = buildUnnamed2970(); | 1867 o.annotationSetIds = buildUnnamed2440(); |
| 1868 o.end = "foo"; | 1868 o.end = "foo"; |
| 1869 o.pageSize = 42; | 1869 o.pageSize = 42; |
| 1870 o.pageToken = "foo"; | 1870 o.pageToken = "foo"; |
| 1871 o.referenceId = "foo"; | 1871 o.referenceId = "foo"; |
| 1872 o.referenceName = "foo"; | 1872 o.referenceName = "foo"; |
| 1873 o.start = "foo"; | 1873 o.start = "foo"; |
| 1874 } | 1874 } |
| 1875 buildCounterSearchAnnotationsRequest--; | 1875 buildCounterSearchAnnotationsRequest--; |
| 1876 return o; | 1876 return o; |
| 1877 } | 1877 } |
| 1878 | 1878 |
| 1879 checkSearchAnnotationsRequest(api.SearchAnnotationsRequest o) { | 1879 checkSearchAnnotationsRequest(api.SearchAnnotationsRequest o) { |
| 1880 buildCounterSearchAnnotationsRequest++; | 1880 buildCounterSearchAnnotationsRequest++; |
| 1881 if (buildCounterSearchAnnotationsRequest < 3) { | 1881 if (buildCounterSearchAnnotationsRequest < 3) { |
| 1882 checkUnnamed2970(o.annotationSetIds); | 1882 checkUnnamed2440(o.annotationSetIds); |
| 1883 unittest.expect(o.end, unittest.equals('foo')); | 1883 unittest.expect(o.end, unittest.equals('foo')); |
| 1884 unittest.expect(o.pageSize, unittest.equals(42)); | 1884 unittest.expect(o.pageSize, unittest.equals(42)); |
| 1885 unittest.expect(o.pageToken, unittest.equals('foo')); | 1885 unittest.expect(o.pageToken, unittest.equals('foo')); |
| 1886 unittest.expect(o.referenceId, unittest.equals('foo')); | 1886 unittest.expect(o.referenceId, unittest.equals('foo')); |
| 1887 unittest.expect(o.referenceName, unittest.equals('foo')); | 1887 unittest.expect(o.referenceName, unittest.equals('foo')); |
| 1888 unittest.expect(o.start, unittest.equals('foo')); | 1888 unittest.expect(o.start, unittest.equals('foo')); |
| 1889 } | 1889 } |
| 1890 buildCounterSearchAnnotationsRequest--; | 1890 buildCounterSearchAnnotationsRequest--; |
| 1891 } | 1891 } |
| 1892 | 1892 |
| 1893 buildUnnamed2971() { | 1893 buildUnnamed2441() { |
| 1894 var o = new core.List<api.Annotation>(); | 1894 var o = new core.List<api.Annotation>(); |
| 1895 o.add(buildAnnotation()); | 1895 o.add(buildAnnotation()); |
| 1896 o.add(buildAnnotation()); | 1896 o.add(buildAnnotation()); |
| 1897 return o; | 1897 return o; |
| 1898 } | 1898 } |
| 1899 | 1899 |
| 1900 checkUnnamed2971(core.List<api.Annotation> o) { | 1900 checkUnnamed2441(core.List<api.Annotation> o) { |
| 1901 unittest.expect(o, unittest.hasLength(2)); | 1901 unittest.expect(o, unittest.hasLength(2)); |
| 1902 checkAnnotation(o[0]); | 1902 checkAnnotation(o[0]); |
| 1903 checkAnnotation(o[1]); | 1903 checkAnnotation(o[1]); |
| 1904 } | 1904 } |
| 1905 | 1905 |
| 1906 core.int buildCounterSearchAnnotationsResponse = 0; | 1906 core.int buildCounterSearchAnnotationsResponse = 0; |
| 1907 buildSearchAnnotationsResponse() { | 1907 buildSearchAnnotationsResponse() { |
| 1908 var o = new api.SearchAnnotationsResponse(); | 1908 var o = new api.SearchAnnotationsResponse(); |
| 1909 buildCounterSearchAnnotationsResponse++; | 1909 buildCounterSearchAnnotationsResponse++; |
| 1910 if (buildCounterSearchAnnotationsResponse < 3) { | 1910 if (buildCounterSearchAnnotationsResponse < 3) { |
| 1911 o.annotations = buildUnnamed2971(); | 1911 o.annotations = buildUnnamed2441(); |
| 1912 o.nextPageToken = "foo"; | 1912 o.nextPageToken = "foo"; |
| 1913 } | 1913 } |
| 1914 buildCounterSearchAnnotationsResponse--; | 1914 buildCounterSearchAnnotationsResponse--; |
| 1915 return o; | 1915 return o; |
| 1916 } | 1916 } |
| 1917 | 1917 |
| 1918 checkSearchAnnotationsResponse(api.SearchAnnotationsResponse o) { | 1918 checkSearchAnnotationsResponse(api.SearchAnnotationsResponse o) { |
| 1919 buildCounterSearchAnnotationsResponse++; | 1919 buildCounterSearchAnnotationsResponse++; |
| 1920 if (buildCounterSearchAnnotationsResponse < 3) { | 1920 if (buildCounterSearchAnnotationsResponse < 3) { |
| 1921 checkUnnamed2971(o.annotations); | 1921 checkUnnamed2441(o.annotations); |
| 1922 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1922 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1923 } | 1923 } |
| 1924 buildCounterSearchAnnotationsResponse--; | 1924 buildCounterSearchAnnotationsResponse--; |
| 1925 } | 1925 } |
| 1926 | 1926 |
| 1927 buildUnnamed2972() { | 1927 buildUnnamed2442() { |
| 1928 var o = new core.List<core.String>(); | 1928 var o = new core.List<core.String>(); |
| 1929 o.add("foo"); | 1929 o.add("foo"); |
| 1930 o.add("foo"); | 1930 o.add("foo"); |
| 1931 return o; | 1931 return o; |
| 1932 } | 1932 } |
| 1933 | 1933 |
| 1934 checkUnnamed2972(core.List<core.String> o) { | 1934 checkUnnamed2442(core.List<core.String> o) { |
| 1935 unittest.expect(o, unittest.hasLength(2)); | 1935 unittest.expect(o, unittest.hasLength(2)); |
| 1936 unittest.expect(o[0], unittest.equals('foo')); | 1936 unittest.expect(o[0], unittest.equals('foo')); |
| 1937 unittest.expect(o[1], unittest.equals('foo')); | 1937 unittest.expect(o[1], unittest.equals('foo')); |
| 1938 } | 1938 } |
| 1939 | 1939 |
| 1940 core.int buildCounterSearchCallSetsRequest = 0; | 1940 core.int buildCounterSearchCallSetsRequest = 0; |
| 1941 buildSearchCallSetsRequest() { | 1941 buildSearchCallSetsRequest() { |
| 1942 var o = new api.SearchCallSetsRequest(); | 1942 var o = new api.SearchCallSetsRequest(); |
| 1943 buildCounterSearchCallSetsRequest++; | 1943 buildCounterSearchCallSetsRequest++; |
| 1944 if (buildCounterSearchCallSetsRequest < 3) { | 1944 if (buildCounterSearchCallSetsRequest < 3) { |
| 1945 o.name = "foo"; | 1945 o.name = "foo"; |
| 1946 o.pageSize = 42; | 1946 o.pageSize = 42; |
| 1947 o.pageToken = "foo"; | 1947 o.pageToken = "foo"; |
| 1948 o.variantSetIds = buildUnnamed2972(); | 1948 o.variantSetIds = buildUnnamed2442(); |
| 1949 } | 1949 } |
| 1950 buildCounterSearchCallSetsRequest--; | 1950 buildCounterSearchCallSetsRequest--; |
| 1951 return o; | 1951 return o; |
| 1952 } | 1952 } |
| 1953 | 1953 |
| 1954 checkSearchCallSetsRequest(api.SearchCallSetsRequest o) { | 1954 checkSearchCallSetsRequest(api.SearchCallSetsRequest o) { |
| 1955 buildCounterSearchCallSetsRequest++; | 1955 buildCounterSearchCallSetsRequest++; |
| 1956 if (buildCounterSearchCallSetsRequest < 3) { | 1956 if (buildCounterSearchCallSetsRequest < 3) { |
| 1957 unittest.expect(o.name, unittest.equals('foo')); | 1957 unittest.expect(o.name, unittest.equals('foo')); |
| 1958 unittest.expect(o.pageSize, unittest.equals(42)); | 1958 unittest.expect(o.pageSize, unittest.equals(42)); |
| 1959 unittest.expect(o.pageToken, unittest.equals('foo')); | 1959 unittest.expect(o.pageToken, unittest.equals('foo')); |
| 1960 checkUnnamed2972(o.variantSetIds); | 1960 checkUnnamed2442(o.variantSetIds); |
| 1961 } | 1961 } |
| 1962 buildCounterSearchCallSetsRequest--; | 1962 buildCounterSearchCallSetsRequest--; |
| 1963 } | 1963 } |
| 1964 | 1964 |
| 1965 buildUnnamed2973() { | 1965 buildUnnamed2443() { |
| 1966 var o = new core.List<api.CallSet>(); | 1966 var o = new core.List<api.CallSet>(); |
| 1967 o.add(buildCallSet()); | 1967 o.add(buildCallSet()); |
| 1968 o.add(buildCallSet()); | 1968 o.add(buildCallSet()); |
| 1969 return o; | 1969 return o; |
| 1970 } | 1970 } |
| 1971 | 1971 |
| 1972 checkUnnamed2973(core.List<api.CallSet> o) { | 1972 checkUnnamed2443(core.List<api.CallSet> o) { |
| 1973 unittest.expect(o, unittest.hasLength(2)); | 1973 unittest.expect(o, unittest.hasLength(2)); |
| 1974 checkCallSet(o[0]); | 1974 checkCallSet(o[0]); |
| 1975 checkCallSet(o[1]); | 1975 checkCallSet(o[1]); |
| 1976 } | 1976 } |
| 1977 | 1977 |
| 1978 core.int buildCounterSearchCallSetsResponse = 0; | 1978 core.int buildCounterSearchCallSetsResponse = 0; |
| 1979 buildSearchCallSetsResponse() { | 1979 buildSearchCallSetsResponse() { |
| 1980 var o = new api.SearchCallSetsResponse(); | 1980 var o = new api.SearchCallSetsResponse(); |
| 1981 buildCounterSearchCallSetsResponse++; | 1981 buildCounterSearchCallSetsResponse++; |
| 1982 if (buildCounterSearchCallSetsResponse < 3) { | 1982 if (buildCounterSearchCallSetsResponse < 3) { |
| 1983 o.callSets = buildUnnamed2973(); | 1983 o.callSets = buildUnnamed2443(); |
| 1984 o.nextPageToken = "foo"; | 1984 o.nextPageToken = "foo"; |
| 1985 } | 1985 } |
| 1986 buildCounterSearchCallSetsResponse--; | 1986 buildCounterSearchCallSetsResponse--; |
| 1987 return o; | 1987 return o; |
| 1988 } | 1988 } |
| 1989 | 1989 |
| 1990 checkSearchCallSetsResponse(api.SearchCallSetsResponse o) { | 1990 checkSearchCallSetsResponse(api.SearchCallSetsResponse o) { |
| 1991 buildCounterSearchCallSetsResponse++; | 1991 buildCounterSearchCallSetsResponse++; |
| 1992 if (buildCounterSearchCallSetsResponse < 3) { | 1992 if (buildCounterSearchCallSetsResponse < 3) { |
| 1993 checkUnnamed2973(o.callSets); | 1993 checkUnnamed2443(o.callSets); |
| 1994 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1994 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 1995 } | 1995 } |
| 1996 buildCounterSearchCallSetsResponse--; | 1996 buildCounterSearchCallSetsResponse--; |
| 1997 } | 1997 } |
| 1998 | 1998 |
| 1999 buildUnnamed2974() { | 1999 buildUnnamed2444() { |
| 2000 var o = new core.List<core.String>(); | 2000 var o = new core.List<core.String>(); |
| 2001 o.add("foo"); | 2001 o.add("foo"); |
| 2002 o.add("foo"); | 2002 o.add("foo"); |
| 2003 return o; | 2003 return o; |
| 2004 } | 2004 } |
| 2005 | 2005 |
| 2006 checkUnnamed2974(core.List<core.String> o) { | 2006 checkUnnamed2444(core.List<core.String> o) { |
| 2007 unittest.expect(o, unittest.hasLength(2)); | 2007 unittest.expect(o, unittest.hasLength(2)); |
| 2008 unittest.expect(o[0], unittest.equals('foo')); | 2008 unittest.expect(o[0], unittest.equals('foo')); |
| 2009 unittest.expect(o[1], unittest.equals('foo')); | 2009 unittest.expect(o[1], unittest.equals('foo')); |
| 2010 } | 2010 } |
| 2011 | 2011 |
| 2012 core.int buildCounterSearchReadGroupSetsRequest = 0; | 2012 core.int buildCounterSearchReadGroupSetsRequest = 0; |
| 2013 buildSearchReadGroupSetsRequest() { | 2013 buildSearchReadGroupSetsRequest() { |
| 2014 var o = new api.SearchReadGroupSetsRequest(); | 2014 var o = new api.SearchReadGroupSetsRequest(); |
| 2015 buildCounterSearchReadGroupSetsRequest++; | 2015 buildCounterSearchReadGroupSetsRequest++; |
| 2016 if (buildCounterSearchReadGroupSetsRequest < 3) { | 2016 if (buildCounterSearchReadGroupSetsRequest < 3) { |
| 2017 o.datasetIds = buildUnnamed2974(); | 2017 o.datasetIds = buildUnnamed2444(); |
| 2018 o.name = "foo"; | 2018 o.name = "foo"; |
| 2019 o.pageSize = 42; | 2019 o.pageSize = 42; |
| 2020 o.pageToken = "foo"; | 2020 o.pageToken = "foo"; |
| 2021 } | 2021 } |
| 2022 buildCounterSearchReadGroupSetsRequest--; | 2022 buildCounterSearchReadGroupSetsRequest--; |
| 2023 return o; | 2023 return o; |
| 2024 } | 2024 } |
| 2025 | 2025 |
| 2026 checkSearchReadGroupSetsRequest(api.SearchReadGroupSetsRequest o) { | 2026 checkSearchReadGroupSetsRequest(api.SearchReadGroupSetsRequest o) { |
| 2027 buildCounterSearchReadGroupSetsRequest++; | 2027 buildCounterSearchReadGroupSetsRequest++; |
| 2028 if (buildCounterSearchReadGroupSetsRequest < 3) { | 2028 if (buildCounterSearchReadGroupSetsRequest < 3) { |
| 2029 checkUnnamed2974(o.datasetIds); | 2029 checkUnnamed2444(o.datasetIds); |
| 2030 unittest.expect(o.name, unittest.equals('foo')); | 2030 unittest.expect(o.name, unittest.equals('foo')); |
| 2031 unittest.expect(o.pageSize, unittest.equals(42)); | 2031 unittest.expect(o.pageSize, unittest.equals(42)); |
| 2032 unittest.expect(o.pageToken, unittest.equals('foo')); | 2032 unittest.expect(o.pageToken, unittest.equals('foo')); |
| 2033 } | 2033 } |
| 2034 buildCounterSearchReadGroupSetsRequest--; | 2034 buildCounterSearchReadGroupSetsRequest--; |
| 2035 } | 2035 } |
| 2036 | 2036 |
| 2037 buildUnnamed2975() { | 2037 buildUnnamed2445() { |
| 2038 var o = new core.List<api.ReadGroupSet>(); | 2038 var o = new core.List<api.ReadGroupSet>(); |
| 2039 o.add(buildReadGroupSet()); | 2039 o.add(buildReadGroupSet()); |
| 2040 o.add(buildReadGroupSet()); | 2040 o.add(buildReadGroupSet()); |
| 2041 return o; | 2041 return o; |
| 2042 } | 2042 } |
| 2043 | 2043 |
| 2044 checkUnnamed2975(core.List<api.ReadGroupSet> o) { | 2044 checkUnnamed2445(core.List<api.ReadGroupSet> o) { |
| 2045 unittest.expect(o, unittest.hasLength(2)); | 2045 unittest.expect(o, unittest.hasLength(2)); |
| 2046 checkReadGroupSet(o[0]); | 2046 checkReadGroupSet(o[0]); |
| 2047 checkReadGroupSet(o[1]); | 2047 checkReadGroupSet(o[1]); |
| 2048 } | 2048 } |
| 2049 | 2049 |
| 2050 core.int buildCounterSearchReadGroupSetsResponse = 0; | 2050 core.int buildCounterSearchReadGroupSetsResponse = 0; |
| 2051 buildSearchReadGroupSetsResponse() { | 2051 buildSearchReadGroupSetsResponse() { |
| 2052 var o = new api.SearchReadGroupSetsResponse(); | 2052 var o = new api.SearchReadGroupSetsResponse(); |
| 2053 buildCounterSearchReadGroupSetsResponse++; | 2053 buildCounterSearchReadGroupSetsResponse++; |
| 2054 if (buildCounterSearchReadGroupSetsResponse < 3) { | 2054 if (buildCounterSearchReadGroupSetsResponse < 3) { |
| 2055 o.nextPageToken = "foo"; | 2055 o.nextPageToken = "foo"; |
| 2056 o.readGroupSets = buildUnnamed2975(); | 2056 o.readGroupSets = buildUnnamed2445(); |
| 2057 } | 2057 } |
| 2058 buildCounterSearchReadGroupSetsResponse--; | 2058 buildCounterSearchReadGroupSetsResponse--; |
| 2059 return o; | 2059 return o; |
| 2060 } | 2060 } |
| 2061 | 2061 |
| 2062 checkSearchReadGroupSetsResponse(api.SearchReadGroupSetsResponse o) { | 2062 checkSearchReadGroupSetsResponse(api.SearchReadGroupSetsResponse o) { |
| 2063 buildCounterSearchReadGroupSetsResponse++; | 2063 buildCounterSearchReadGroupSetsResponse++; |
| 2064 if (buildCounterSearchReadGroupSetsResponse < 3) { | 2064 if (buildCounterSearchReadGroupSetsResponse < 3) { |
| 2065 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2065 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2066 checkUnnamed2975(o.readGroupSets); | 2066 checkUnnamed2445(o.readGroupSets); |
| 2067 } | 2067 } |
| 2068 buildCounterSearchReadGroupSetsResponse--; | 2068 buildCounterSearchReadGroupSetsResponse--; |
| 2069 } | 2069 } |
| 2070 | 2070 |
| 2071 buildUnnamed2976() { | 2071 buildUnnamed2446() { |
| 2072 var o = new core.List<core.String>(); | 2072 var o = new core.List<core.String>(); |
| 2073 o.add("foo"); | 2073 o.add("foo"); |
| 2074 o.add("foo"); | 2074 o.add("foo"); |
| 2075 return o; | 2075 return o; |
| 2076 } | 2076 } |
| 2077 | 2077 |
| 2078 checkUnnamed2976(core.List<core.String> o) { | 2078 checkUnnamed2446(core.List<core.String> o) { |
| 2079 unittest.expect(o, unittest.hasLength(2)); | 2079 unittest.expect(o, unittest.hasLength(2)); |
| 2080 unittest.expect(o[0], unittest.equals('foo')); | 2080 unittest.expect(o[0], unittest.equals('foo')); |
| 2081 unittest.expect(o[1], unittest.equals('foo')); | 2081 unittest.expect(o[1], unittest.equals('foo')); |
| 2082 } | 2082 } |
| 2083 | 2083 |
| 2084 buildUnnamed2977() { | 2084 buildUnnamed2447() { |
| 2085 var o = new core.List<core.String>(); | 2085 var o = new core.List<core.String>(); |
| 2086 o.add("foo"); | 2086 o.add("foo"); |
| 2087 o.add("foo"); | 2087 o.add("foo"); |
| 2088 return o; | 2088 return o; |
| 2089 } | 2089 } |
| 2090 | 2090 |
| 2091 checkUnnamed2977(core.List<core.String> o) { | 2091 checkUnnamed2447(core.List<core.String> o) { |
| 2092 unittest.expect(o, unittest.hasLength(2)); | 2092 unittest.expect(o, unittest.hasLength(2)); |
| 2093 unittest.expect(o[0], unittest.equals('foo')); | 2093 unittest.expect(o[0], unittest.equals('foo')); |
| 2094 unittest.expect(o[1], unittest.equals('foo')); | 2094 unittest.expect(o[1], unittest.equals('foo')); |
| 2095 } | 2095 } |
| 2096 | 2096 |
| 2097 core.int buildCounterSearchReadsRequest = 0; | 2097 core.int buildCounterSearchReadsRequest = 0; |
| 2098 buildSearchReadsRequest() { | 2098 buildSearchReadsRequest() { |
| 2099 var o = new api.SearchReadsRequest(); | 2099 var o = new api.SearchReadsRequest(); |
| 2100 buildCounterSearchReadsRequest++; | 2100 buildCounterSearchReadsRequest++; |
| 2101 if (buildCounterSearchReadsRequest < 3) { | 2101 if (buildCounterSearchReadsRequest < 3) { |
| 2102 o.end = "foo"; | 2102 o.end = "foo"; |
| 2103 o.pageSize = 42; | 2103 o.pageSize = 42; |
| 2104 o.pageToken = "foo"; | 2104 o.pageToken = "foo"; |
| 2105 o.readGroupIds = buildUnnamed2976(); | 2105 o.readGroupIds = buildUnnamed2446(); |
| 2106 o.readGroupSetIds = buildUnnamed2977(); | 2106 o.readGroupSetIds = buildUnnamed2447(); |
| 2107 o.referenceName = "foo"; | 2107 o.referenceName = "foo"; |
| 2108 o.start = "foo"; | 2108 o.start = "foo"; |
| 2109 } | 2109 } |
| 2110 buildCounterSearchReadsRequest--; | 2110 buildCounterSearchReadsRequest--; |
| 2111 return o; | 2111 return o; |
| 2112 } | 2112 } |
| 2113 | 2113 |
| 2114 checkSearchReadsRequest(api.SearchReadsRequest o) { | 2114 checkSearchReadsRequest(api.SearchReadsRequest o) { |
| 2115 buildCounterSearchReadsRequest++; | 2115 buildCounterSearchReadsRequest++; |
| 2116 if (buildCounterSearchReadsRequest < 3) { | 2116 if (buildCounterSearchReadsRequest < 3) { |
| 2117 unittest.expect(o.end, unittest.equals('foo')); | 2117 unittest.expect(o.end, unittest.equals('foo')); |
| 2118 unittest.expect(o.pageSize, unittest.equals(42)); | 2118 unittest.expect(o.pageSize, unittest.equals(42)); |
| 2119 unittest.expect(o.pageToken, unittest.equals('foo')); | 2119 unittest.expect(o.pageToken, unittest.equals('foo')); |
| 2120 checkUnnamed2976(o.readGroupIds); | 2120 checkUnnamed2446(o.readGroupIds); |
| 2121 checkUnnamed2977(o.readGroupSetIds); | 2121 checkUnnamed2447(o.readGroupSetIds); |
| 2122 unittest.expect(o.referenceName, unittest.equals('foo')); | 2122 unittest.expect(o.referenceName, unittest.equals('foo')); |
| 2123 unittest.expect(o.start, unittest.equals('foo')); | 2123 unittest.expect(o.start, unittest.equals('foo')); |
| 2124 } | 2124 } |
| 2125 buildCounterSearchReadsRequest--; | 2125 buildCounterSearchReadsRequest--; |
| 2126 } | 2126 } |
| 2127 | 2127 |
| 2128 buildUnnamed2978() { | 2128 buildUnnamed2448() { |
| 2129 var o = new core.List<api.Read>(); | 2129 var o = new core.List<api.Read>(); |
| 2130 o.add(buildRead()); | 2130 o.add(buildRead()); |
| 2131 o.add(buildRead()); | 2131 o.add(buildRead()); |
| 2132 return o; | 2132 return o; |
| 2133 } | 2133 } |
| 2134 | 2134 |
| 2135 checkUnnamed2978(core.List<api.Read> o) { | 2135 checkUnnamed2448(core.List<api.Read> o) { |
| 2136 unittest.expect(o, unittest.hasLength(2)); | 2136 unittest.expect(o, unittest.hasLength(2)); |
| 2137 checkRead(o[0]); | 2137 checkRead(o[0]); |
| 2138 checkRead(o[1]); | 2138 checkRead(o[1]); |
| 2139 } | 2139 } |
| 2140 | 2140 |
| 2141 core.int buildCounterSearchReadsResponse = 0; | 2141 core.int buildCounterSearchReadsResponse = 0; |
| 2142 buildSearchReadsResponse() { | 2142 buildSearchReadsResponse() { |
| 2143 var o = new api.SearchReadsResponse(); | 2143 var o = new api.SearchReadsResponse(); |
| 2144 buildCounterSearchReadsResponse++; | 2144 buildCounterSearchReadsResponse++; |
| 2145 if (buildCounterSearchReadsResponse < 3) { | 2145 if (buildCounterSearchReadsResponse < 3) { |
| 2146 o.alignments = buildUnnamed2978(); | 2146 o.alignments = buildUnnamed2448(); |
| 2147 o.nextPageToken = "foo"; | 2147 o.nextPageToken = "foo"; |
| 2148 } | 2148 } |
| 2149 buildCounterSearchReadsResponse--; | 2149 buildCounterSearchReadsResponse--; |
| 2150 return o; | 2150 return o; |
| 2151 } | 2151 } |
| 2152 | 2152 |
| 2153 checkSearchReadsResponse(api.SearchReadsResponse o) { | 2153 checkSearchReadsResponse(api.SearchReadsResponse o) { |
| 2154 buildCounterSearchReadsResponse++; | 2154 buildCounterSearchReadsResponse++; |
| 2155 if (buildCounterSearchReadsResponse < 3) { | 2155 if (buildCounterSearchReadsResponse < 3) { |
| 2156 checkUnnamed2978(o.alignments); | 2156 checkUnnamed2448(o.alignments); |
| 2157 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2157 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2158 } | 2158 } |
| 2159 buildCounterSearchReadsResponse--; | 2159 buildCounterSearchReadsResponse--; |
| 2160 } | 2160 } |
| 2161 | 2161 |
| 2162 buildUnnamed2979() { | 2162 buildUnnamed2449() { |
| 2163 var o = new core.List<core.String>(); | 2163 var o = new core.List<core.String>(); |
| 2164 o.add("foo"); | 2164 o.add("foo"); |
| 2165 o.add("foo"); | 2165 o.add("foo"); |
| 2166 return o; | 2166 return o; |
| 2167 } | 2167 } |
| 2168 | 2168 |
| 2169 checkUnnamed2979(core.List<core.String> o) { | 2169 checkUnnamed2449(core.List<core.String> o) { |
| 2170 unittest.expect(o, unittest.hasLength(2)); | 2170 unittest.expect(o, unittest.hasLength(2)); |
| 2171 unittest.expect(o[0], unittest.equals('foo')); | 2171 unittest.expect(o[0], unittest.equals('foo')); |
| 2172 unittest.expect(o[1], unittest.equals('foo')); | 2172 unittest.expect(o[1], unittest.equals('foo')); |
| 2173 } | 2173 } |
| 2174 | 2174 |
| 2175 buildUnnamed2980() { | 2175 buildUnnamed2450() { |
| 2176 var o = new core.List<core.String>(); | 2176 var o = new core.List<core.String>(); |
| 2177 o.add("foo"); | 2177 o.add("foo"); |
| 2178 o.add("foo"); | 2178 o.add("foo"); |
| 2179 return o; | 2179 return o; |
| 2180 } | 2180 } |
| 2181 | 2181 |
| 2182 checkUnnamed2980(core.List<core.String> o) { | 2182 checkUnnamed2450(core.List<core.String> o) { |
| 2183 unittest.expect(o, unittest.hasLength(2)); | 2183 unittest.expect(o, unittest.hasLength(2)); |
| 2184 unittest.expect(o[0], unittest.equals('foo')); | 2184 unittest.expect(o[0], unittest.equals('foo')); |
| 2185 unittest.expect(o[1], unittest.equals('foo')); | 2185 unittest.expect(o[1], unittest.equals('foo')); |
| 2186 } | 2186 } |
| 2187 | 2187 |
| 2188 core.int buildCounterSearchReferenceSetsRequest = 0; | 2188 core.int buildCounterSearchReferenceSetsRequest = 0; |
| 2189 buildSearchReferenceSetsRequest() { | 2189 buildSearchReferenceSetsRequest() { |
| 2190 var o = new api.SearchReferenceSetsRequest(); | 2190 var o = new api.SearchReferenceSetsRequest(); |
| 2191 buildCounterSearchReferenceSetsRequest++; | 2191 buildCounterSearchReferenceSetsRequest++; |
| 2192 if (buildCounterSearchReferenceSetsRequest < 3) { | 2192 if (buildCounterSearchReferenceSetsRequest < 3) { |
| 2193 o.accessions = buildUnnamed2979(); | 2193 o.accessions = buildUnnamed2449(); |
| 2194 o.assemblyId = "foo"; | 2194 o.assemblyId = "foo"; |
| 2195 o.md5checksums = buildUnnamed2980(); | 2195 o.md5checksums = buildUnnamed2450(); |
| 2196 o.pageSize = 42; | 2196 o.pageSize = 42; |
| 2197 o.pageToken = "foo"; | 2197 o.pageToken = "foo"; |
| 2198 } | 2198 } |
| 2199 buildCounterSearchReferenceSetsRequest--; | 2199 buildCounterSearchReferenceSetsRequest--; |
| 2200 return o; | 2200 return o; |
| 2201 } | 2201 } |
| 2202 | 2202 |
| 2203 checkSearchReferenceSetsRequest(api.SearchReferenceSetsRequest o) { | 2203 checkSearchReferenceSetsRequest(api.SearchReferenceSetsRequest o) { |
| 2204 buildCounterSearchReferenceSetsRequest++; | 2204 buildCounterSearchReferenceSetsRequest++; |
| 2205 if (buildCounterSearchReferenceSetsRequest < 3) { | 2205 if (buildCounterSearchReferenceSetsRequest < 3) { |
| 2206 checkUnnamed2979(o.accessions); | 2206 checkUnnamed2449(o.accessions); |
| 2207 unittest.expect(o.assemblyId, unittest.equals('foo')); | 2207 unittest.expect(o.assemblyId, unittest.equals('foo')); |
| 2208 checkUnnamed2980(o.md5checksums); | 2208 checkUnnamed2450(o.md5checksums); |
| 2209 unittest.expect(o.pageSize, unittest.equals(42)); | 2209 unittest.expect(o.pageSize, unittest.equals(42)); |
| 2210 unittest.expect(o.pageToken, unittest.equals('foo')); | 2210 unittest.expect(o.pageToken, unittest.equals('foo')); |
| 2211 } | 2211 } |
| 2212 buildCounterSearchReferenceSetsRequest--; | 2212 buildCounterSearchReferenceSetsRequest--; |
| 2213 } | 2213 } |
| 2214 | 2214 |
| 2215 buildUnnamed2981() { | 2215 buildUnnamed2451() { |
| 2216 var o = new core.List<api.ReferenceSet>(); | 2216 var o = new core.List<api.ReferenceSet>(); |
| 2217 o.add(buildReferenceSet()); | 2217 o.add(buildReferenceSet()); |
| 2218 o.add(buildReferenceSet()); | 2218 o.add(buildReferenceSet()); |
| 2219 return o; | 2219 return o; |
| 2220 } | 2220 } |
| 2221 | 2221 |
| 2222 checkUnnamed2981(core.List<api.ReferenceSet> o) { | 2222 checkUnnamed2451(core.List<api.ReferenceSet> o) { |
| 2223 unittest.expect(o, unittest.hasLength(2)); | 2223 unittest.expect(o, unittest.hasLength(2)); |
| 2224 checkReferenceSet(o[0]); | 2224 checkReferenceSet(o[0]); |
| 2225 checkReferenceSet(o[1]); | 2225 checkReferenceSet(o[1]); |
| 2226 } | 2226 } |
| 2227 | 2227 |
| 2228 core.int buildCounterSearchReferenceSetsResponse = 0; | 2228 core.int buildCounterSearchReferenceSetsResponse = 0; |
| 2229 buildSearchReferenceSetsResponse() { | 2229 buildSearchReferenceSetsResponse() { |
| 2230 var o = new api.SearchReferenceSetsResponse(); | 2230 var o = new api.SearchReferenceSetsResponse(); |
| 2231 buildCounterSearchReferenceSetsResponse++; | 2231 buildCounterSearchReferenceSetsResponse++; |
| 2232 if (buildCounterSearchReferenceSetsResponse < 3) { | 2232 if (buildCounterSearchReferenceSetsResponse < 3) { |
| 2233 o.nextPageToken = "foo"; | 2233 o.nextPageToken = "foo"; |
| 2234 o.referenceSets = buildUnnamed2981(); | 2234 o.referenceSets = buildUnnamed2451(); |
| 2235 } | 2235 } |
| 2236 buildCounterSearchReferenceSetsResponse--; | 2236 buildCounterSearchReferenceSetsResponse--; |
| 2237 return o; | 2237 return o; |
| 2238 } | 2238 } |
| 2239 | 2239 |
| 2240 checkSearchReferenceSetsResponse(api.SearchReferenceSetsResponse o) { | 2240 checkSearchReferenceSetsResponse(api.SearchReferenceSetsResponse o) { |
| 2241 buildCounterSearchReferenceSetsResponse++; | 2241 buildCounterSearchReferenceSetsResponse++; |
| 2242 if (buildCounterSearchReferenceSetsResponse < 3) { | 2242 if (buildCounterSearchReferenceSetsResponse < 3) { |
| 2243 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2243 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2244 checkUnnamed2981(o.referenceSets); | 2244 checkUnnamed2451(o.referenceSets); |
| 2245 } | 2245 } |
| 2246 buildCounterSearchReferenceSetsResponse--; | 2246 buildCounterSearchReferenceSetsResponse--; |
| 2247 } | 2247 } |
| 2248 | 2248 |
| 2249 buildUnnamed2982() { | 2249 buildUnnamed2452() { |
| 2250 var o = new core.List<core.String>(); | 2250 var o = new core.List<core.String>(); |
| 2251 o.add("foo"); | 2251 o.add("foo"); |
| 2252 o.add("foo"); | 2252 o.add("foo"); |
| 2253 return o; | 2253 return o; |
| 2254 } | 2254 } |
| 2255 | 2255 |
| 2256 checkUnnamed2982(core.List<core.String> o) { | 2256 checkUnnamed2452(core.List<core.String> o) { |
| 2257 unittest.expect(o, unittest.hasLength(2)); | 2257 unittest.expect(o, unittest.hasLength(2)); |
| 2258 unittest.expect(o[0], unittest.equals('foo')); | 2258 unittest.expect(o[0], unittest.equals('foo')); |
| 2259 unittest.expect(o[1], unittest.equals('foo')); | 2259 unittest.expect(o[1], unittest.equals('foo')); |
| 2260 } | 2260 } |
| 2261 | 2261 |
| 2262 buildUnnamed2983() { | 2262 buildUnnamed2453() { |
| 2263 var o = new core.List<core.String>(); | 2263 var o = new core.List<core.String>(); |
| 2264 o.add("foo"); | 2264 o.add("foo"); |
| 2265 o.add("foo"); | 2265 o.add("foo"); |
| 2266 return o; | 2266 return o; |
| 2267 } | 2267 } |
| 2268 | 2268 |
| 2269 checkUnnamed2983(core.List<core.String> o) { | 2269 checkUnnamed2453(core.List<core.String> o) { |
| 2270 unittest.expect(o, unittest.hasLength(2)); | 2270 unittest.expect(o, unittest.hasLength(2)); |
| 2271 unittest.expect(o[0], unittest.equals('foo')); | 2271 unittest.expect(o[0], unittest.equals('foo')); |
| 2272 unittest.expect(o[1], unittest.equals('foo')); | 2272 unittest.expect(o[1], unittest.equals('foo')); |
| 2273 } | 2273 } |
| 2274 | 2274 |
| 2275 core.int buildCounterSearchReferencesRequest = 0; | 2275 core.int buildCounterSearchReferencesRequest = 0; |
| 2276 buildSearchReferencesRequest() { | 2276 buildSearchReferencesRequest() { |
| 2277 var o = new api.SearchReferencesRequest(); | 2277 var o = new api.SearchReferencesRequest(); |
| 2278 buildCounterSearchReferencesRequest++; | 2278 buildCounterSearchReferencesRequest++; |
| 2279 if (buildCounterSearchReferencesRequest < 3) { | 2279 if (buildCounterSearchReferencesRequest < 3) { |
| 2280 o.accessions = buildUnnamed2982(); | 2280 o.accessions = buildUnnamed2452(); |
| 2281 o.md5checksums = buildUnnamed2983(); | 2281 o.md5checksums = buildUnnamed2453(); |
| 2282 o.pageSize = 42; | 2282 o.pageSize = 42; |
| 2283 o.pageToken = "foo"; | 2283 o.pageToken = "foo"; |
| 2284 o.referenceSetId = "foo"; | 2284 o.referenceSetId = "foo"; |
| 2285 } | 2285 } |
| 2286 buildCounterSearchReferencesRequest--; | 2286 buildCounterSearchReferencesRequest--; |
| 2287 return o; | 2287 return o; |
| 2288 } | 2288 } |
| 2289 | 2289 |
| 2290 checkSearchReferencesRequest(api.SearchReferencesRequest o) { | 2290 checkSearchReferencesRequest(api.SearchReferencesRequest o) { |
| 2291 buildCounterSearchReferencesRequest++; | 2291 buildCounterSearchReferencesRequest++; |
| 2292 if (buildCounterSearchReferencesRequest < 3) { | 2292 if (buildCounterSearchReferencesRequest < 3) { |
| 2293 checkUnnamed2982(o.accessions); | 2293 checkUnnamed2452(o.accessions); |
| 2294 checkUnnamed2983(o.md5checksums); | 2294 checkUnnamed2453(o.md5checksums); |
| 2295 unittest.expect(o.pageSize, unittest.equals(42)); | 2295 unittest.expect(o.pageSize, unittest.equals(42)); |
| 2296 unittest.expect(o.pageToken, unittest.equals('foo')); | 2296 unittest.expect(o.pageToken, unittest.equals('foo')); |
| 2297 unittest.expect(o.referenceSetId, unittest.equals('foo')); | 2297 unittest.expect(o.referenceSetId, unittest.equals('foo')); |
| 2298 } | 2298 } |
| 2299 buildCounterSearchReferencesRequest--; | 2299 buildCounterSearchReferencesRequest--; |
| 2300 } | 2300 } |
| 2301 | 2301 |
| 2302 buildUnnamed2984() { | 2302 buildUnnamed2454() { |
| 2303 var o = new core.List<api.Reference>(); | 2303 var o = new core.List<api.Reference>(); |
| 2304 o.add(buildReference()); | 2304 o.add(buildReference()); |
| 2305 o.add(buildReference()); | 2305 o.add(buildReference()); |
| 2306 return o; | 2306 return o; |
| 2307 } | 2307 } |
| 2308 | 2308 |
| 2309 checkUnnamed2984(core.List<api.Reference> o) { | 2309 checkUnnamed2454(core.List<api.Reference> o) { |
| 2310 unittest.expect(o, unittest.hasLength(2)); | 2310 unittest.expect(o, unittest.hasLength(2)); |
| 2311 checkReference(o[0]); | 2311 checkReference(o[0]); |
| 2312 checkReference(o[1]); | 2312 checkReference(o[1]); |
| 2313 } | 2313 } |
| 2314 | 2314 |
| 2315 core.int buildCounterSearchReferencesResponse = 0; | 2315 core.int buildCounterSearchReferencesResponse = 0; |
| 2316 buildSearchReferencesResponse() { | 2316 buildSearchReferencesResponse() { |
| 2317 var o = new api.SearchReferencesResponse(); | 2317 var o = new api.SearchReferencesResponse(); |
| 2318 buildCounterSearchReferencesResponse++; | 2318 buildCounterSearchReferencesResponse++; |
| 2319 if (buildCounterSearchReferencesResponse < 3) { | 2319 if (buildCounterSearchReferencesResponse < 3) { |
| 2320 o.nextPageToken = "foo"; | 2320 o.nextPageToken = "foo"; |
| 2321 o.references = buildUnnamed2984(); | 2321 o.references = buildUnnamed2454(); |
| 2322 } | 2322 } |
| 2323 buildCounterSearchReferencesResponse--; | 2323 buildCounterSearchReferencesResponse--; |
| 2324 return o; | 2324 return o; |
| 2325 } | 2325 } |
| 2326 | 2326 |
| 2327 checkSearchReferencesResponse(api.SearchReferencesResponse o) { | 2327 checkSearchReferencesResponse(api.SearchReferencesResponse o) { |
| 2328 buildCounterSearchReferencesResponse++; | 2328 buildCounterSearchReferencesResponse++; |
| 2329 if (buildCounterSearchReferencesResponse < 3) { | 2329 if (buildCounterSearchReferencesResponse < 3) { |
| 2330 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2330 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2331 checkUnnamed2984(o.references); | 2331 checkUnnamed2454(o.references); |
| 2332 } | 2332 } |
| 2333 buildCounterSearchReferencesResponse--; | 2333 buildCounterSearchReferencesResponse--; |
| 2334 } | 2334 } |
| 2335 | 2335 |
| 2336 buildUnnamed2985() { | 2336 buildUnnamed2455() { |
| 2337 var o = new core.List<core.String>(); | 2337 var o = new core.List<core.String>(); |
| 2338 o.add("foo"); | 2338 o.add("foo"); |
| 2339 o.add("foo"); | 2339 o.add("foo"); |
| 2340 return o; | 2340 return o; |
| 2341 } | 2341 } |
| 2342 | 2342 |
| 2343 checkUnnamed2985(core.List<core.String> o) { | 2343 checkUnnamed2455(core.List<core.String> o) { |
| 2344 unittest.expect(o, unittest.hasLength(2)); | 2344 unittest.expect(o, unittest.hasLength(2)); |
| 2345 unittest.expect(o[0], unittest.equals('foo')); | 2345 unittest.expect(o[0], unittest.equals('foo')); |
| 2346 unittest.expect(o[1], unittest.equals('foo')); | 2346 unittest.expect(o[1], unittest.equals('foo')); |
| 2347 } | 2347 } |
| 2348 | 2348 |
| 2349 core.int buildCounterSearchVariantSetsRequest = 0; | 2349 core.int buildCounterSearchVariantSetsRequest = 0; |
| 2350 buildSearchVariantSetsRequest() { | 2350 buildSearchVariantSetsRequest() { |
| 2351 var o = new api.SearchVariantSetsRequest(); | 2351 var o = new api.SearchVariantSetsRequest(); |
| 2352 buildCounterSearchVariantSetsRequest++; | 2352 buildCounterSearchVariantSetsRequest++; |
| 2353 if (buildCounterSearchVariantSetsRequest < 3) { | 2353 if (buildCounterSearchVariantSetsRequest < 3) { |
| 2354 o.datasetIds = buildUnnamed2985(); | 2354 o.datasetIds = buildUnnamed2455(); |
| 2355 o.pageSize = 42; | 2355 o.pageSize = 42; |
| 2356 o.pageToken = "foo"; | 2356 o.pageToken = "foo"; |
| 2357 } | 2357 } |
| 2358 buildCounterSearchVariantSetsRequest--; | 2358 buildCounterSearchVariantSetsRequest--; |
| 2359 return o; | 2359 return o; |
| 2360 } | 2360 } |
| 2361 | 2361 |
| 2362 checkSearchVariantSetsRequest(api.SearchVariantSetsRequest o) { | 2362 checkSearchVariantSetsRequest(api.SearchVariantSetsRequest o) { |
| 2363 buildCounterSearchVariantSetsRequest++; | 2363 buildCounterSearchVariantSetsRequest++; |
| 2364 if (buildCounterSearchVariantSetsRequest < 3) { | 2364 if (buildCounterSearchVariantSetsRequest < 3) { |
| 2365 checkUnnamed2985(o.datasetIds); | 2365 checkUnnamed2455(o.datasetIds); |
| 2366 unittest.expect(o.pageSize, unittest.equals(42)); | 2366 unittest.expect(o.pageSize, unittest.equals(42)); |
| 2367 unittest.expect(o.pageToken, unittest.equals('foo')); | 2367 unittest.expect(o.pageToken, unittest.equals('foo')); |
| 2368 } | 2368 } |
| 2369 buildCounterSearchVariantSetsRequest--; | 2369 buildCounterSearchVariantSetsRequest--; |
| 2370 } | 2370 } |
| 2371 | 2371 |
| 2372 buildUnnamed2986() { | 2372 buildUnnamed2456() { |
| 2373 var o = new core.List<api.VariantSet>(); | 2373 var o = new core.List<api.VariantSet>(); |
| 2374 o.add(buildVariantSet()); | 2374 o.add(buildVariantSet()); |
| 2375 o.add(buildVariantSet()); | 2375 o.add(buildVariantSet()); |
| 2376 return o; | 2376 return o; |
| 2377 } | 2377 } |
| 2378 | 2378 |
| 2379 checkUnnamed2986(core.List<api.VariantSet> o) { | 2379 checkUnnamed2456(core.List<api.VariantSet> o) { |
| 2380 unittest.expect(o, unittest.hasLength(2)); | 2380 unittest.expect(o, unittest.hasLength(2)); |
| 2381 checkVariantSet(o[0]); | 2381 checkVariantSet(o[0]); |
| 2382 checkVariantSet(o[1]); | 2382 checkVariantSet(o[1]); |
| 2383 } | 2383 } |
| 2384 | 2384 |
| 2385 core.int buildCounterSearchVariantSetsResponse = 0; | 2385 core.int buildCounterSearchVariantSetsResponse = 0; |
| 2386 buildSearchVariantSetsResponse() { | 2386 buildSearchVariantSetsResponse() { |
| 2387 var o = new api.SearchVariantSetsResponse(); | 2387 var o = new api.SearchVariantSetsResponse(); |
| 2388 buildCounterSearchVariantSetsResponse++; | 2388 buildCounterSearchVariantSetsResponse++; |
| 2389 if (buildCounterSearchVariantSetsResponse < 3) { | 2389 if (buildCounterSearchVariantSetsResponse < 3) { |
| 2390 o.nextPageToken = "foo"; | 2390 o.nextPageToken = "foo"; |
| 2391 o.variantSets = buildUnnamed2986(); | 2391 o.variantSets = buildUnnamed2456(); |
| 2392 } | 2392 } |
| 2393 buildCounterSearchVariantSetsResponse--; | 2393 buildCounterSearchVariantSetsResponse--; |
| 2394 return o; | 2394 return o; |
| 2395 } | 2395 } |
| 2396 | 2396 |
| 2397 checkSearchVariantSetsResponse(api.SearchVariantSetsResponse o) { | 2397 checkSearchVariantSetsResponse(api.SearchVariantSetsResponse o) { |
| 2398 buildCounterSearchVariantSetsResponse++; | 2398 buildCounterSearchVariantSetsResponse++; |
| 2399 if (buildCounterSearchVariantSetsResponse < 3) { | 2399 if (buildCounterSearchVariantSetsResponse < 3) { |
| 2400 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2400 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2401 checkUnnamed2986(o.variantSets); | 2401 checkUnnamed2456(o.variantSets); |
| 2402 } | 2402 } |
| 2403 buildCounterSearchVariantSetsResponse--; | 2403 buildCounterSearchVariantSetsResponse--; |
| 2404 } | 2404 } |
| 2405 | 2405 |
| 2406 buildUnnamed2987() { | 2406 buildUnnamed2457() { |
| 2407 var o = new core.List<core.String>(); | 2407 var o = new core.List<core.String>(); |
| 2408 o.add("foo"); | 2408 o.add("foo"); |
| 2409 o.add("foo"); | 2409 o.add("foo"); |
| 2410 return o; | 2410 return o; |
| 2411 } | 2411 } |
| 2412 | 2412 |
| 2413 checkUnnamed2987(core.List<core.String> o) { | 2413 checkUnnamed2457(core.List<core.String> o) { |
| 2414 unittest.expect(o, unittest.hasLength(2)); | 2414 unittest.expect(o, unittest.hasLength(2)); |
| 2415 unittest.expect(o[0], unittest.equals('foo')); | 2415 unittest.expect(o[0], unittest.equals('foo')); |
| 2416 unittest.expect(o[1], unittest.equals('foo')); | 2416 unittest.expect(o[1], unittest.equals('foo')); |
| 2417 } | 2417 } |
| 2418 | 2418 |
| 2419 buildUnnamed2988() { | 2419 buildUnnamed2458() { |
| 2420 var o = new core.List<core.String>(); | 2420 var o = new core.List<core.String>(); |
| 2421 o.add("foo"); | 2421 o.add("foo"); |
| 2422 o.add("foo"); | 2422 o.add("foo"); |
| 2423 return o; | 2423 return o; |
| 2424 } | 2424 } |
| 2425 | 2425 |
| 2426 checkUnnamed2988(core.List<core.String> o) { | 2426 checkUnnamed2458(core.List<core.String> o) { |
| 2427 unittest.expect(o, unittest.hasLength(2)); | 2427 unittest.expect(o, unittest.hasLength(2)); |
| 2428 unittest.expect(o[0], unittest.equals('foo')); | 2428 unittest.expect(o[0], unittest.equals('foo')); |
| 2429 unittest.expect(o[1], unittest.equals('foo')); | 2429 unittest.expect(o[1], unittest.equals('foo')); |
| 2430 } | 2430 } |
| 2431 | 2431 |
| 2432 core.int buildCounterSearchVariantsRequest = 0; | 2432 core.int buildCounterSearchVariantsRequest = 0; |
| 2433 buildSearchVariantsRequest() { | 2433 buildSearchVariantsRequest() { |
| 2434 var o = new api.SearchVariantsRequest(); | 2434 var o = new api.SearchVariantsRequest(); |
| 2435 buildCounterSearchVariantsRequest++; | 2435 buildCounterSearchVariantsRequest++; |
| 2436 if (buildCounterSearchVariantsRequest < 3) { | 2436 if (buildCounterSearchVariantsRequest < 3) { |
| 2437 o.callSetIds = buildUnnamed2987(); | 2437 o.callSetIds = buildUnnamed2457(); |
| 2438 o.end = "foo"; | 2438 o.end = "foo"; |
| 2439 o.maxCalls = 42; | 2439 o.maxCalls = 42; |
| 2440 o.pageSize = 42; | 2440 o.pageSize = 42; |
| 2441 o.pageToken = "foo"; | 2441 o.pageToken = "foo"; |
| 2442 o.referenceName = "foo"; | 2442 o.referenceName = "foo"; |
| 2443 o.start = "foo"; | 2443 o.start = "foo"; |
| 2444 o.variantName = "foo"; | 2444 o.variantName = "foo"; |
| 2445 o.variantSetIds = buildUnnamed2988(); | 2445 o.variantSetIds = buildUnnamed2458(); |
| 2446 } | 2446 } |
| 2447 buildCounterSearchVariantsRequest--; | 2447 buildCounterSearchVariantsRequest--; |
| 2448 return o; | 2448 return o; |
| 2449 } | 2449 } |
| 2450 | 2450 |
| 2451 checkSearchVariantsRequest(api.SearchVariantsRequest o) { | 2451 checkSearchVariantsRequest(api.SearchVariantsRequest o) { |
| 2452 buildCounterSearchVariantsRequest++; | 2452 buildCounterSearchVariantsRequest++; |
| 2453 if (buildCounterSearchVariantsRequest < 3) { | 2453 if (buildCounterSearchVariantsRequest < 3) { |
| 2454 checkUnnamed2987(o.callSetIds); | 2454 checkUnnamed2457(o.callSetIds); |
| 2455 unittest.expect(o.end, unittest.equals('foo')); | 2455 unittest.expect(o.end, unittest.equals('foo')); |
| 2456 unittest.expect(o.maxCalls, unittest.equals(42)); | 2456 unittest.expect(o.maxCalls, unittest.equals(42)); |
| 2457 unittest.expect(o.pageSize, unittest.equals(42)); | 2457 unittest.expect(o.pageSize, unittest.equals(42)); |
| 2458 unittest.expect(o.pageToken, unittest.equals('foo')); | 2458 unittest.expect(o.pageToken, unittest.equals('foo')); |
| 2459 unittest.expect(o.referenceName, unittest.equals('foo')); | 2459 unittest.expect(o.referenceName, unittest.equals('foo')); |
| 2460 unittest.expect(o.start, unittest.equals('foo')); | 2460 unittest.expect(o.start, unittest.equals('foo')); |
| 2461 unittest.expect(o.variantName, unittest.equals('foo')); | 2461 unittest.expect(o.variantName, unittest.equals('foo')); |
| 2462 checkUnnamed2988(o.variantSetIds); | 2462 checkUnnamed2458(o.variantSetIds); |
| 2463 } | 2463 } |
| 2464 buildCounterSearchVariantsRequest--; | 2464 buildCounterSearchVariantsRequest--; |
| 2465 } | 2465 } |
| 2466 | 2466 |
| 2467 buildUnnamed2989() { | 2467 buildUnnamed2459() { |
| 2468 var o = new core.List<api.Variant>(); | 2468 var o = new core.List<api.Variant>(); |
| 2469 o.add(buildVariant()); | 2469 o.add(buildVariant()); |
| 2470 o.add(buildVariant()); | 2470 o.add(buildVariant()); |
| 2471 return o; | 2471 return o; |
| 2472 } | 2472 } |
| 2473 | 2473 |
| 2474 checkUnnamed2989(core.List<api.Variant> o) { | 2474 checkUnnamed2459(core.List<api.Variant> o) { |
| 2475 unittest.expect(o, unittest.hasLength(2)); | 2475 unittest.expect(o, unittest.hasLength(2)); |
| 2476 checkVariant(o[0]); | 2476 checkVariant(o[0]); |
| 2477 checkVariant(o[1]); | 2477 checkVariant(o[1]); |
| 2478 } | 2478 } |
| 2479 | 2479 |
| 2480 core.int buildCounterSearchVariantsResponse = 0; | 2480 core.int buildCounterSearchVariantsResponse = 0; |
| 2481 buildSearchVariantsResponse() { | 2481 buildSearchVariantsResponse() { |
| 2482 var o = new api.SearchVariantsResponse(); | 2482 var o = new api.SearchVariantsResponse(); |
| 2483 buildCounterSearchVariantsResponse++; | 2483 buildCounterSearchVariantsResponse++; |
| 2484 if (buildCounterSearchVariantsResponse < 3) { | 2484 if (buildCounterSearchVariantsResponse < 3) { |
| 2485 o.nextPageToken = "foo"; | 2485 o.nextPageToken = "foo"; |
| 2486 o.variants = buildUnnamed2989(); | 2486 o.variants = buildUnnamed2459(); |
| 2487 } | 2487 } |
| 2488 buildCounterSearchVariantsResponse--; | 2488 buildCounterSearchVariantsResponse--; |
| 2489 return o; | 2489 return o; |
| 2490 } | 2490 } |
| 2491 | 2491 |
| 2492 checkSearchVariantsResponse(api.SearchVariantsResponse o) { | 2492 checkSearchVariantsResponse(api.SearchVariantsResponse o) { |
| 2493 buildCounterSearchVariantsResponse++; | 2493 buildCounterSearchVariantsResponse++; |
| 2494 if (buildCounterSearchVariantsResponse < 3) { | 2494 if (buildCounterSearchVariantsResponse < 3) { |
| 2495 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 2495 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 2496 checkUnnamed2989(o.variants); | 2496 checkUnnamed2459(o.variants); |
| 2497 } | 2497 } |
| 2498 buildCounterSearchVariantsResponse--; | 2498 buildCounterSearchVariantsResponse--; |
| 2499 } | 2499 } |
| 2500 | 2500 |
| 2501 core.int buildCounterSetIamPolicyRequest = 0; | 2501 core.int buildCounterSetIamPolicyRequest = 0; |
| 2502 buildSetIamPolicyRequest() { | 2502 buildSetIamPolicyRequest() { |
| 2503 var o = new api.SetIamPolicyRequest(); | 2503 var o = new api.SetIamPolicyRequest(); |
| 2504 buildCounterSetIamPolicyRequest++; | 2504 buildCounterSetIamPolicyRequest++; |
| 2505 if (buildCounterSetIamPolicyRequest < 3) { | 2505 if (buildCounterSetIamPolicyRequest < 3) { |
| 2506 o.policy = buildPolicy(); | 2506 o.policy = buildPolicy(); |
| 2507 } | 2507 } |
| 2508 buildCounterSetIamPolicyRequest--; | 2508 buildCounterSetIamPolicyRequest--; |
| 2509 return o; | 2509 return o; |
| 2510 } | 2510 } |
| 2511 | 2511 |
| 2512 checkSetIamPolicyRequest(api.SetIamPolicyRequest o) { | 2512 checkSetIamPolicyRequest(api.SetIamPolicyRequest o) { |
| 2513 buildCounterSetIamPolicyRequest++; | 2513 buildCounterSetIamPolicyRequest++; |
| 2514 if (buildCounterSetIamPolicyRequest < 3) { | 2514 if (buildCounterSetIamPolicyRequest < 3) { |
| 2515 checkPolicy(o.policy); | 2515 checkPolicy(o.policy); |
| 2516 } | 2516 } |
| 2517 buildCounterSetIamPolicyRequest--; | 2517 buildCounterSetIamPolicyRequest--; |
| 2518 } | 2518 } |
| 2519 | 2519 |
| 2520 buildUnnamed2990() { | 2520 buildUnnamed2460() { |
| 2521 var o = new core.Map<core.String, core.Object>(); | 2521 var o = new core.Map<core.String, core.Object>(); |
| 2522 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2522 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 2523 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 2523 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 2524 return o; | 2524 return o; |
| 2525 } | 2525 } |
| 2526 | 2526 |
| 2527 checkUnnamed2990(core.Map<core.String, core.Object> o) { | 2527 checkUnnamed2460(core.Map<core.String, core.Object> o) { |
| 2528 unittest.expect(o, unittest.hasLength(2)); | 2528 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')); | 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')); |
| 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')); | 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')); |
| 2531 } | 2531 } |
| 2532 | 2532 |
| 2533 buildUnnamed2991() { | 2533 buildUnnamed2461() { |
| 2534 var o = new core.List<core.Map<core.String, core.Object>>(); | 2534 var o = new core.List<core.Map<core.String, core.Object>>(); |
| 2535 o.add(buildUnnamed2990()); | 2535 o.add(buildUnnamed2460()); |
| 2536 o.add(buildUnnamed2990()); | 2536 o.add(buildUnnamed2460()); |
| 2537 return o; | 2537 return o; |
| 2538 } | 2538 } |
| 2539 | 2539 |
| 2540 checkUnnamed2991(core.List<core.Map<core.String, core.Object>> o) { | 2540 checkUnnamed2461(core.List<core.Map<core.String, core.Object>> o) { |
| 2541 unittest.expect(o, unittest.hasLength(2)); | 2541 unittest.expect(o, unittest.hasLength(2)); |
| 2542 checkUnnamed2990(o[0]); | 2542 checkUnnamed2460(o[0]); |
| 2543 checkUnnamed2990(o[1]); | 2543 checkUnnamed2460(o[1]); |
| 2544 } | 2544 } |
| 2545 | 2545 |
| 2546 core.int buildCounterStatus = 0; | 2546 core.int buildCounterStatus = 0; |
| 2547 buildStatus() { | 2547 buildStatus() { |
| 2548 var o = new api.Status(); | 2548 var o = new api.Status(); |
| 2549 buildCounterStatus++; | 2549 buildCounterStatus++; |
| 2550 if (buildCounterStatus < 3) { | 2550 if (buildCounterStatus < 3) { |
| 2551 o.code = 42; | 2551 o.code = 42; |
| 2552 o.details = buildUnnamed2991(); | 2552 o.details = buildUnnamed2461(); |
| 2553 o.message = "foo"; | 2553 o.message = "foo"; |
| 2554 } | 2554 } |
| 2555 buildCounterStatus--; | 2555 buildCounterStatus--; |
| 2556 return o; | 2556 return o; |
| 2557 } | 2557 } |
| 2558 | 2558 |
| 2559 checkStatus(api.Status o) { | 2559 checkStatus(api.Status o) { |
| 2560 buildCounterStatus++; | 2560 buildCounterStatus++; |
| 2561 if (buildCounterStatus < 3) { | 2561 if (buildCounterStatus < 3) { |
| 2562 unittest.expect(o.code, unittest.equals(42)); | 2562 unittest.expect(o.code, unittest.equals(42)); |
| 2563 checkUnnamed2991(o.details); | 2563 checkUnnamed2461(o.details); |
| 2564 unittest.expect(o.message, unittest.equals('foo')); | 2564 unittest.expect(o.message, unittest.equals('foo')); |
| 2565 } | 2565 } |
| 2566 buildCounterStatus--; | 2566 buildCounterStatus--; |
| 2567 } | 2567 } |
| 2568 | 2568 |
| 2569 buildUnnamed2992() { | 2569 buildUnnamed2462() { |
| 2570 var o = new core.List<core.String>(); | 2570 var o = new core.List<core.String>(); |
| 2571 o.add("foo"); | 2571 o.add("foo"); |
| 2572 o.add("foo"); | 2572 o.add("foo"); |
| 2573 return o; | 2573 return o; |
| 2574 } | 2574 } |
| 2575 | 2575 |
| 2576 checkUnnamed2992(core.List<core.String> o) { | 2576 checkUnnamed2462(core.List<core.String> o) { |
| 2577 unittest.expect(o, unittest.hasLength(2)); | 2577 unittest.expect(o, unittest.hasLength(2)); |
| 2578 unittest.expect(o[0], unittest.equals('foo')); | 2578 unittest.expect(o[0], unittest.equals('foo')); |
| 2579 unittest.expect(o[1], unittest.equals('foo')); | 2579 unittest.expect(o[1], unittest.equals('foo')); |
| 2580 } | 2580 } |
| 2581 | 2581 |
| 2582 core.int buildCounterTestIamPermissionsRequest = 0; | 2582 core.int buildCounterTestIamPermissionsRequest = 0; |
| 2583 buildTestIamPermissionsRequest() { | 2583 buildTestIamPermissionsRequest() { |
| 2584 var o = new api.TestIamPermissionsRequest(); | 2584 var o = new api.TestIamPermissionsRequest(); |
| 2585 buildCounterTestIamPermissionsRequest++; | 2585 buildCounterTestIamPermissionsRequest++; |
| 2586 if (buildCounterTestIamPermissionsRequest < 3) { | 2586 if (buildCounterTestIamPermissionsRequest < 3) { |
| 2587 o.permissions = buildUnnamed2992(); | 2587 o.permissions = buildUnnamed2462(); |
| 2588 } | 2588 } |
| 2589 buildCounterTestIamPermissionsRequest--; | 2589 buildCounterTestIamPermissionsRequest--; |
| 2590 return o; | 2590 return o; |
| 2591 } | 2591 } |
| 2592 | 2592 |
| 2593 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { | 2593 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { |
| 2594 buildCounterTestIamPermissionsRequest++; | 2594 buildCounterTestIamPermissionsRequest++; |
| 2595 if (buildCounterTestIamPermissionsRequest < 3) { | 2595 if (buildCounterTestIamPermissionsRequest < 3) { |
| 2596 checkUnnamed2992(o.permissions); | 2596 checkUnnamed2462(o.permissions); |
| 2597 } | 2597 } |
| 2598 buildCounterTestIamPermissionsRequest--; | 2598 buildCounterTestIamPermissionsRequest--; |
| 2599 } | 2599 } |
| 2600 | 2600 |
| 2601 buildUnnamed2993() { | 2601 buildUnnamed2463() { |
| 2602 var o = new core.List<core.String>(); | 2602 var o = new core.List<core.String>(); |
| 2603 o.add("foo"); | 2603 o.add("foo"); |
| 2604 o.add("foo"); | 2604 o.add("foo"); |
| 2605 return o; | 2605 return o; |
| 2606 } | 2606 } |
| 2607 | 2607 |
| 2608 checkUnnamed2993(core.List<core.String> o) { | 2608 checkUnnamed2463(core.List<core.String> o) { |
| 2609 unittest.expect(o, unittest.hasLength(2)); | 2609 unittest.expect(o, unittest.hasLength(2)); |
| 2610 unittest.expect(o[0], unittest.equals('foo')); | 2610 unittest.expect(o[0], unittest.equals('foo')); |
| 2611 unittest.expect(o[1], unittest.equals('foo')); | 2611 unittest.expect(o[1], unittest.equals('foo')); |
| 2612 } | 2612 } |
| 2613 | 2613 |
| 2614 core.int buildCounterTestIamPermissionsResponse = 0; | 2614 core.int buildCounterTestIamPermissionsResponse = 0; |
| 2615 buildTestIamPermissionsResponse() { | 2615 buildTestIamPermissionsResponse() { |
| 2616 var o = new api.TestIamPermissionsResponse(); | 2616 var o = new api.TestIamPermissionsResponse(); |
| 2617 buildCounterTestIamPermissionsResponse++; | 2617 buildCounterTestIamPermissionsResponse++; |
| 2618 if (buildCounterTestIamPermissionsResponse < 3) { | 2618 if (buildCounterTestIamPermissionsResponse < 3) { |
| 2619 o.permissions = buildUnnamed2993(); | 2619 o.permissions = buildUnnamed2463(); |
| 2620 } | 2620 } |
| 2621 buildCounterTestIamPermissionsResponse--; | 2621 buildCounterTestIamPermissionsResponse--; |
| 2622 return o; | 2622 return o; |
| 2623 } | 2623 } |
| 2624 | 2624 |
| 2625 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { | 2625 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { |
| 2626 buildCounterTestIamPermissionsResponse++; | 2626 buildCounterTestIamPermissionsResponse++; |
| 2627 if (buildCounterTestIamPermissionsResponse < 3) { | 2627 if (buildCounterTestIamPermissionsResponse < 3) { |
| 2628 checkUnnamed2993(o.permissions); | 2628 checkUnnamed2463(o.permissions); |
| 2629 } | 2629 } |
| 2630 buildCounterTestIamPermissionsResponse--; | 2630 buildCounterTestIamPermissionsResponse--; |
| 2631 } | 2631 } |
| 2632 | 2632 |
| 2633 buildUnnamed2994() { | 2633 buildUnnamed2464() { |
| 2634 var o = new core.List<api.Exon>(); | 2634 var o = new core.List<api.Exon>(); |
| 2635 o.add(buildExon()); | 2635 o.add(buildExon()); |
| 2636 o.add(buildExon()); | 2636 o.add(buildExon()); |
| 2637 return o; | 2637 return o; |
| 2638 } | 2638 } |
| 2639 | 2639 |
| 2640 checkUnnamed2994(core.List<api.Exon> o) { | 2640 checkUnnamed2464(core.List<api.Exon> o) { |
| 2641 unittest.expect(o, unittest.hasLength(2)); | 2641 unittest.expect(o, unittest.hasLength(2)); |
| 2642 checkExon(o[0]); | 2642 checkExon(o[0]); |
| 2643 checkExon(o[1]); | 2643 checkExon(o[1]); |
| 2644 } | 2644 } |
| 2645 | 2645 |
| 2646 core.int buildCounterTranscript = 0; | 2646 core.int buildCounterTranscript = 0; |
| 2647 buildTranscript() { | 2647 buildTranscript() { |
| 2648 var o = new api.Transcript(); | 2648 var o = new api.Transcript(); |
| 2649 buildCounterTranscript++; | 2649 buildCounterTranscript++; |
| 2650 if (buildCounterTranscript < 3) { | 2650 if (buildCounterTranscript < 3) { |
| 2651 o.codingSequence = buildCodingSequence(); | 2651 o.codingSequence = buildCodingSequence(); |
| 2652 o.exons = buildUnnamed2994(); | 2652 o.exons = buildUnnamed2464(); |
| 2653 o.geneId = "foo"; | 2653 o.geneId = "foo"; |
| 2654 } | 2654 } |
| 2655 buildCounterTranscript--; | 2655 buildCounterTranscript--; |
| 2656 return o; | 2656 return o; |
| 2657 } | 2657 } |
| 2658 | 2658 |
| 2659 checkTranscript(api.Transcript o) { | 2659 checkTranscript(api.Transcript o) { |
| 2660 buildCounterTranscript++; | 2660 buildCounterTranscript++; |
| 2661 if (buildCounterTranscript < 3) { | 2661 if (buildCounterTranscript < 3) { |
| 2662 checkCodingSequence(o.codingSequence); | 2662 checkCodingSequence(o.codingSequence); |
| 2663 checkUnnamed2994(o.exons); | 2663 checkUnnamed2464(o.exons); |
| 2664 unittest.expect(o.geneId, unittest.equals('foo')); | 2664 unittest.expect(o.geneId, unittest.equals('foo')); |
| 2665 } | 2665 } |
| 2666 buildCounterTranscript--; | 2666 buildCounterTranscript--; |
| 2667 } | 2667 } |
| 2668 | 2668 |
| 2669 core.int buildCounterUndeleteDatasetRequest = 0; | 2669 core.int buildCounterUndeleteDatasetRequest = 0; |
| 2670 buildUndeleteDatasetRequest() { | 2670 buildUndeleteDatasetRequest() { |
| 2671 var o = new api.UndeleteDatasetRequest(); | 2671 var o = new api.UndeleteDatasetRequest(); |
| 2672 buildCounterUndeleteDatasetRequest++; | 2672 buildCounterUndeleteDatasetRequest++; |
| 2673 if (buildCounterUndeleteDatasetRequest < 3) { | 2673 if (buildCounterUndeleteDatasetRequest < 3) { |
| 2674 } | 2674 } |
| 2675 buildCounterUndeleteDatasetRequest--; | 2675 buildCounterUndeleteDatasetRequest--; |
| 2676 return o; | 2676 return o; |
| 2677 } | 2677 } |
| 2678 | 2678 |
| 2679 checkUndeleteDatasetRequest(api.UndeleteDatasetRequest o) { | 2679 checkUndeleteDatasetRequest(api.UndeleteDatasetRequest o) { |
| 2680 buildCounterUndeleteDatasetRequest++; | 2680 buildCounterUndeleteDatasetRequest++; |
| 2681 if (buildCounterUndeleteDatasetRequest < 3) { | 2681 if (buildCounterUndeleteDatasetRequest < 3) { |
| 2682 } | 2682 } |
| 2683 buildCounterUndeleteDatasetRequest--; | 2683 buildCounterUndeleteDatasetRequest--; |
| 2684 } | 2684 } |
| 2685 | 2685 |
| 2686 buildUnnamed2995() { | 2686 buildUnnamed2465() { |
| 2687 var o = new core.List<core.String>(); | 2687 var o = new core.List<core.String>(); |
| 2688 o.add("foo"); | 2688 o.add("foo"); |
| 2689 o.add("foo"); | 2689 o.add("foo"); |
| 2690 return o; | 2690 return o; |
| 2691 } | 2691 } |
| 2692 | 2692 |
| 2693 checkUnnamed2995(core.List<core.String> o) { | 2693 checkUnnamed2465(core.List<core.String> o) { |
| 2694 unittest.expect(o, unittest.hasLength(2)); | 2694 unittest.expect(o, unittest.hasLength(2)); |
| 2695 unittest.expect(o[0], unittest.equals('foo')); | 2695 unittest.expect(o[0], unittest.equals('foo')); |
| 2696 unittest.expect(o[1], unittest.equals('foo')); | 2696 unittest.expect(o[1], unittest.equals('foo')); |
| 2697 } | 2697 } |
| 2698 | 2698 |
| 2699 buildUnnamed2996() { | 2699 buildUnnamed2466() { |
| 2700 var o = new core.List<api.VariantCall>(); | 2700 var o = new core.List<api.VariantCall>(); |
| 2701 o.add(buildVariantCall()); | 2701 o.add(buildVariantCall()); |
| 2702 o.add(buildVariantCall()); | 2702 o.add(buildVariantCall()); |
| 2703 return o; | 2703 return o; |
| 2704 } | 2704 } |
| 2705 | 2705 |
| 2706 checkUnnamed2996(core.List<api.VariantCall> o) { | 2706 checkUnnamed2466(core.List<api.VariantCall> o) { |
| 2707 unittest.expect(o, unittest.hasLength(2)); | 2707 unittest.expect(o, unittest.hasLength(2)); |
| 2708 checkVariantCall(o[0]); | 2708 checkVariantCall(o[0]); |
| 2709 checkVariantCall(o[1]); | 2709 checkVariantCall(o[1]); |
| 2710 } | 2710 } |
| 2711 | 2711 |
| 2712 buildUnnamed2997() { | 2712 buildUnnamed2467() { |
| 2713 var o = new core.List<core.String>(); | 2713 var o = new core.List<core.String>(); |
| 2714 o.add("foo"); | 2714 o.add("foo"); |
| 2715 o.add("foo"); | 2715 o.add("foo"); |
| 2716 return o; | 2716 return o; |
| 2717 } | 2717 } |
| 2718 | 2718 |
| 2719 checkUnnamed2997(core.List<core.String> o) { | 2719 checkUnnamed2467(core.List<core.String> o) { |
| 2720 unittest.expect(o, unittest.hasLength(2)); | 2720 unittest.expect(o, unittest.hasLength(2)); |
| 2721 unittest.expect(o[0], unittest.equals('foo')); | 2721 unittest.expect(o[0], unittest.equals('foo')); |
| 2722 unittest.expect(o[1], unittest.equals('foo')); | 2722 unittest.expect(o[1], unittest.equals('foo')); |
| 2723 } | 2723 } |
| 2724 | 2724 |
| 2725 buildUnnamed2998() { | 2725 buildUnnamed2468() { |
| 2726 var o = new core.List<core.Object>(); | 2726 var o = new core.List<core.Object>(); |
| 2727 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 2727 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 2728 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 2728 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 2729 return o; | 2729 return o; |
| 2730 } | 2730 } |
| 2731 | 2731 |
| 2732 checkUnnamed2998(core.List<core.Object> o) { | 2732 checkUnnamed2468(core.List<core.Object> o) { |
| 2733 unittest.expect(o, unittest.hasLength(2)); | 2733 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')); | 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')); |
| 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')); | 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')); |
| 2736 } | 2736 } |
| 2737 | 2737 |
| 2738 buildUnnamed2999() { | 2738 buildUnnamed2469() { |
| 2739 var o = new core.Map<core.String, core.List<core.Object>>(); | 2739 var o = new core.Map<core.String, core.List<core.Object>>(); |
| 2740 o["x"] = buildUnnamed2998(); | 2740 o["x"] = buildUnnamed2468(); |
| 2741 o["y"] = buildUnnamed2998(); | 2741 o["y"] = buildUnnamed2468(); |
| 2742 return o; | 2742 return o; |
| 2743 } | 2743 } |
| 2744 | 2744 |
| 2745 checkUnnamed2999(core.Map<core.String, core.List<core.Object>> o) { | 2745 checkUnnamed2469(core.Map<core.String, core.List<core.Object>> o) { |
| 2746 unittest.expect(o, unittest.hasLength(2)); | 2746 unittest.expect(o, unittest.hasLength(2)); |
| 2747 checkUnnamed2998(o["x"]); | 2747 checkUnnamed2468(o["x"]); |
| 2748 checkUnnamed2998(o["y"]); | 2748 checkUnnamed2468(o["y"]); |
| 2749 } | 2749 } |
| 2750 | 2750 |
| 2751 buildUnnamed3000() { | 2751 buildUnnamed2470() { |
| 2752 var o = new core.List<core.String>(); | 2752 var o = new core.List<core.String>(); |
| 2753 o.add("foo"); | 2753 o.add("foo"); |
| 2754 o.add("foo"); | 2754 o.add("foo"); |
| 2755 return o; | 2755 return o; |
| 2756 } | 2756 } |
| 2757 | 2757 |
| 2758 checkUnnamed3000(core.List<core.String> o) { | 2758 checkUnnamed2470(core.List<core.String> o) { |
| 2759 unittest.expect(o, unittest.hasLength(2)); | 2759 unittest.expect(o, unittest.hasLength(2)); |
| 2760 unittest.expect(o[0], unittest.equals('foo')); | 2760 unittest.expect(o[0], unittest.equals('foo')); |
| 2761 unittest.expect(o[1], unittest.equals('foo')); | 2761 unittest.expect(o[1], unittest.equals('foo')); |
| 2762 } | 2762 } |
| 2763 | 2763 |
| 2764 core.int buildCounterVariant = 0; | 2764 core.int buildCounterVariant = 0; |
| 2765 buildVariant() { | 2765 buildVariant() { |
| 2766 var o = new api.Variant(); | 2766 var o = new api.Variant(); |
| 2767 buildCounterVariant++; | 2767 buildCounterVariant++; |
| 2768 if (buildCounterVariant < 3) { | 2768 if (buildCounterVariant < 3) { |
| 2769 o.alternateBases = buildUnnamed2995(); | 2769 o.alternateBases = buildUnnamed2465(); |
| 2770 o.calls = buildUnnamed2996(); | 2770 o.calls = buildUnnamed2466(); |
| 2771 o.created = "foo"; | 2771 o.created = "foo"; |
| 2772 o.end = "foo"; | 2772 o.end = "foo"; |
| 2773 o.filter = buildUnnamed2997(); | 2773 o.filter = buildUnnamed2467(); |
| 2774 o.id = "foo"; | 2774 o.id = "foo"; |
| 2775 o.info = buildUnnamed2999(); | 2775 o.info = buildUnnamed2469(); |
| 2776 o.names = buildUnnamed3000(); | 2776 o.names = buildUnnamed2470(); |
| 2777 o.quality = 42.0; | 2777 o.quality = 42.0; |
| 2778 o.referenceBases = "foo"; | 2778 o.referenceBases = "foo"; |
| 2779 o.referenceName = "foo"; | 2779 o.referenceName = "foo"; |
| 2780 o.start = "foo"; | 2780 o.start = "foo"; |
| 2781 o.variantSetId = "foo"; | 2781 o.variantSetId = "foo"; |
| 2782 } | 2782 } |
| 2783 buildCounterVariant--; | 2783 buildCounterVariant--; |
| 2784 return o; | 2784 return o; |
| 2785 } | 2785 } |
| 2786 | 2786 |
| 2787 checkVariant(api.Variant o) { | 2787 checkVariant(api.Variant o) { |
| 2788 buildCounterVariant++; | 2788 buildCounterVariant++; |
| 2789 if (buildCounterVariant < 3) { | 2789 if (buildCounterVariant < 3) { |
| 2790 checkUnnamed2995(o.alternateBases); | 2790 checkUnnamed2465(o.alternateBases); |
| 2791 checkUnnamed2996(o.calls); | 2791 checkUnnamed2466(o.calls); |
| 2792 unittest.expect(o.created, unittest.equals('foo')); | 2792 unittest.expect(o.created, unittest.equals('foo')); |
| 2793 unittest.expect(o.end, unittest.equals('foo')); | 2793 unittest.expect(o.end, unittest.equals('foo')); |
| 2794 checkUnnamed2997(o.filter); | 2794 checkUnnamed2467(o.filter); |
| 2795 unittest.expect(o.id, unittest.equals('foo')); | 2795 unittest.expect(o.id, unittest.equals('foo')); |
| 2796 checkUnnamed2999(o.info); | 2796 checkUnnamed2469(o.info); |
| 2797 checkUnnamed3000(o.names); | 2797 checkUnnamed2470(o.names); |
| 2798 unittest.expect(o.quality, unittest.equals(42.0)); | 2798 unittest.expect(o.quality, unittest.equals(42.0)); |
| 2799 unittest.expect(o.referenceBases, unittest.equals('foo')); | 2799 unittest.expect(o.referenceBases, unittest.equals('foo')); |
| 2800 unittest.expect(o.referenceName, unittest.equals('foo')); | 2800 unittest.expect(o.referenceName, unittest.equals('foo')); |
| 2801 unittest.expect(o.start, unittest.equals('foo')); | 2801 unittest.expect(o.start, unittest.equals('foo')); |
| 2802 unittest.expect(o.variantSetId, unittest.equals('foo')); | 2802 unittest.expect(o.variantSetId, unittest.equals('foo')); |
| 2803 } | 2803 } |
| 2804 buildCounterVariant--; | 2804 buildCounterVariant--; |
| 2805 } | 2805 } |
| 2806 | 2806 |
| 2807 buildUnnamed3001() { | 2807 buildUnnamed2471() { |
| 2808 var o = new core.List<api.ClinicalCondition>(); | 2808 var o = new core.List<api.ClinicalCondition>(); |
| 2809 o.add(buildClinicalCondition()); | 2809 o.add(buildClinicalCondition()); |
| 2810 o.add(buildClinicalCondition()); | 2810 o.add(buildClinicalCondition()); |
| 2811 return o; | 2811 return o; |
| 2812 } | 2812 } |
| 2813 | 2813 |
| 2814 checkUnnamed3001(core.List<api.ClinicalCondition> o) { | 2814 checkUnnamed2471(core.List<api.ClinicalCondition> o) { |
| 2815 unittest.expect(o, unittest.hasLength(2)); | 2815 unittest.expect(o, unittest.hasLength(2)); |
| 2816 checkClinicalCondition(o[0]); | 2816 checkClinicalCondition(o[0]); |
| 2817 checkClinicalCondition(o[1]); | 2817 checkClinicalCondition(o[1]); |
| 2818 } | 2818 } |
| 2819 | 2819 |
| 2820 buildUnnamed3002() { | 2820 buildUnnamed2472() { |
| 2821 var o = new core.List<core.String>(); | 2821 var o = new core.List<core.String>(); |
| 2822 o.add("foo"); | 2822 o.add("foo"); |
| 2823 o.add("foo"); | 2823 o.add("foo"); |
| 2824 return o; | 2824 return o; |
| 2825 } | 2825 } |
| 2826 | 2826 |
| 2827 checkUnnamed3002(core.List<core.String> o) { | 2827 checkUnnamed2472(core.List<core.String> o) { |
| 2828 unittest.expect(o, unittest.hasLength(2)); | 2828 unittest.expect(o, unittest.hasLength(2)); |
| 2829 unittest.expect(o[0], unittest.equals('foo')); | 2829 unittest.expect(o[0], unittest.equals('foo')); |
| 2830 unittest.expect(o[1], unittest.equals('foo')); | 2830 unittest.expect(o[1], unittest.equals('foo')); |
| 2831 } | 2831 } |
| 2832 | 2832 |
| 2833 core.int buildCounterVariantAnnotation = 0; | 2833 core.int buildCounterVariantAnnotation = 0; |
| 2834 buildVariantAnnotation() { | 2834 buildVariantAnnotation() { |
| 2835 var o = new api.VariantAnnotation(); | 2835 var o = new api.VariantAnnotation(); |
| 2836 buildCounterVariantAnnotation++; | 2836 buildCounterVariantAnnotation++; |
| 2837 if (buildCounterVariantAnnotation < 3) { | 2837 if (buildCounterVariantAnnotation < 3) { |
| 2838 o.alternateBases = "foo"; | 2838 o.alternateBases = "foo"; |
| 2839 o.clinicalSignificance = "foo"; | 2839 o.clinicalSignificance = "foo"; |
| 2840 o.conditions = buildUnnamed3001(); | 2840 o.conditions = buildUnnamed2471(); |
| 2841 o.effect = "foo"; | 2841 o.effect = "foo"; |
| 2842 o.geneId = "foo"; | 2842 o.geneId = "foo"; |
| 2843 o.transcriptIds = buildUnnamed3002(); | 2843 o.transcriptIds = buildUnnamed2472(); |
| 2844 o.type = "foo"; | 2844 o.type = "foo"; |
| 2845 } | 2845 } |
| 2846 buildCounterVariantAnnotation--; | 2846 buildCounterVariantAnnotation--; |
| 2847 return o; | 2847 return o; |
| 2848 } | 2848 } |
| 2849 | 2849 |
| 2850 checkVariantAnnotation(api.VariantAnnotation o) { | 2850 checkVariantAnnotation(api.VariantAnnotation o) { |
| 2851 buildCounterVariantAnnotation++; | 2851 buildCounterVariantAnnotation++; |
| 2852 if (buildCounterVariantAnnotation < 3) { | 2852 if (buildCounterVariantAnnotation < 3) { |
| 2853 unittest.expect(o.alternateBases, unittest.equals('foo')); | 2853 unittest.expect(o.alternateBases, unittest.equals('foo')); |
| 2854 unittest.expect(o.clinicalSignificance, unittest.equals('foo')); | 2854 unittest.expect(o.clinicalSignificance, unittest.equals('foo')); |
| 2855 checkUnnamed3001(o.conditions); | 2855 checkUnnamed2471(o.conditions); |
| 2856 unittest.expect(o.effect, unittest.equals('foo')); | 2856 unittest.expect(o.effect, unittest.equals('foo')); |
| 2857 unittest.expect(o.geneId, unittest.equals('foo')); | 2857 unittest.expect(o.geneId, unittest.equals('foo')); |
| 2858 checkUnnamed3002(o.transcriptIds); | 2858 checkUnnamed2472(o.transcriptIds); |
| 2859 unittest.expect(o.type, unittest.equals('foo')); | 2859 unittest.expect(o.type, unittest.equals('foo')); |
| 2860 } | 2860 } |
| 2861 buildCounterVariantAnnotation--; | 2861 buildCounterVariantAnnotation--; |
| 2862 } | 2862 } |
| 2863 | 2863 |
| 2864 buildUnnamed3003() { | 2864 buildUnnamed2473() { |
| 2865 var o = new core.List<core.int>(); | 2865 var o = new core.List<core.int>(); |
| 2866 o.add(42); | 2866 o.add(42); |
| 2867 o.add(42); | 2867 o.add(42); |
| 2868 return o; | 2868 return o; |
| 2869 } | 2869 } |
| 2870 | 2870 |
| 2871 checkUnnamed3003(core.List<core.int> o) { | 2871 checkUnnamed2473(core.List<core.int> o) { |
| 2872 unittest.expect(o, unittest.hasLength(2)); | 2872 unittest.expect(o, unittest.hasLength(2)); |
| 2873 unittest.expect(o[0], unittest.equals(42)); | 2873 unittest.expect(o[0], unittest.equals(42)); |
| 2874 unittest.expect(o[1], unittest.equals(42)); | 2874 unittest.expect(o[1], unittest.equals(42)); |
| 2875 } | 2875 } |
| 2876 | 2876 |
| 2877 buildUnnamed3004() { | 2877 buildUnnamed2474() { |
| 2878 var o = new core.List<core.double>(); | 2878 var o = new core.List<core.double>(); |
| 2879 o.add(42.0); | 2879 o.add(42.0); |
| 2880 o.add(42.0); | 2880 o.add(42.0); |
| 2881 return o; | 2881 return o; |
| 2882 } | 2882 } |
| 2883 | 2883 |
| 2884 checkUnnamed3004(core.List<core.double> o) { | 2884 checkUnnamed2474(core.List<core.double> o) { |
| 2885 unittest.expect(o, unittest.hasLength(2)); | 2885 unittest.expect(o, unittest.hasLength(2)); |
| 2886 unittest.expect(o[0], unittest.equals(42.0)); | 2886 unittest.expect(o[0], unittest.equals(42.0)); |
| 2887 unittest.expect(o[1], unittest.equals(42.0)); | 2887 unittest.expect(o[1], unittest.equals(42.0)); |
| 2888 } | 2888 } |
| 2889 | 2889 |
| 2890 buildUnnamed3005() { | 2890 buildUnnamed2475() { |
| 2891 var o = new core.List<core.Object>(); | 2891 var o = new core.List<core.Object>(); |
| 2892 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 2892 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 2893 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 2893 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 2894 return o; | 2894 return o; |
| 2895 } | 2895 } |
| 2896 | 2896 |
| 2897 checkUnnamed3005(core.List<core.Object> o) { | 2897 checkUnnamed2475(core.List<core.Object> o) { |
| 2898 unittest.expect(o, unittest.hasLength(2)); | 2898 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')); | 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')); |
| 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')); | 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')); |
| 2901 } | 2901 } |
| 2902 | 2902 |
| 2903 buildUnnamed3006() { | 2903 buildUnnamed2476() { |
| 2904 var o = new core.Map<core.String, core.List<core.Object>>(); | 2904 var o = new core.Map<core.String, core.List<core.Object>>(); |
| 2905 o["x"] = buildUnnamed3005(); | 2905 o["x"] = buildUnnamed2475(); |
| 2906 o["y"] = buildUnnamed3005(); | 2906 o["y"] = buildUnnamed2475(); |
| 2907 return o; | 2907 return o; |
| 2908 } | 2908 } |
| 2909 | 2909 |
| 2910 checkUnnamed3006(core.Map<core.String, core.List<core.Object>> o) { | 2910 checkUnnamed2476(core.Map<core.String, core.List<core.Object>> o) { |
| 2911 unittest.expect(o, unittest.hasLength(2)); | 2911 unittest.expect(o, unittest.hasLength(2)); |
| 2912 checkUnnamed3005(o["x"]); | 2912 checkUnnamed2475(o["x"]); |
| 2913 checkUnnamed3005(o["y"]); | 2913 checkUnnamed2475(o["y"]); |
| 2914 } | 2914 } |
| 2915 | 2915 |
| 2916 core.int buildCounterVariantCall = 0; | 2916 core.int buildCounterVariantCall = 0; |
| 2917 buildVariantCall() { | 2917 buildVariantCall() { |
| 2918 var o = new api.VariantCall(); | 2918 var o = new api.VariantCall(); |
| 2919 buildCounterVariantCall++; | 2919 buildCounterVariantCall++; |
| 2920 if (buildCounterVariantCall < 3) { | 2920 if (buildCounterVariantCall < 3) { |
| 2921 o.callSetId = "foo"; | 2921 o.callSetId = "foo"; |
| 2922 o.callSetName = "foo"; | 2922 o.callSetName = "foo"; |
| 2923 o.genotype = buildUnnamed3003(); | 2923 o.genotype = buildUnnamed2473(); |
| 2924 o.genotypeLikelihood = buildUnnamed3004(); | 2924 o.genotypeLikelihood = buildUnnamed2474(); |
| 2925 o.info = buildUnnamed3006(); | 2925 o.info = buildUnnamed2476(); |
| 2926 o.phaseset = "foo"; | 2926 o.phaseset = "foo"; |
| 2927 } | 2927 } |
| 2928 buildCounterVariantCall--; | 2928 buildCounterVariantCall--; |
| 2929 return o; | 2929 return o; |
| 2930 } | 2930 } |
| 2931 | 2931 |
| 2932 checkVariantCall(api.VariantCall o) { | 2932 checkVariantCall(api.VariantCall o) { |
| 2933 buildCounterVariantCall++; | 2933 buildCounterVariantCall++; |
| 2934 if (buildCounterVariantCall < 3) { | 2934 if (buildCounterVariantCall < 3) { |
| 2935 unittest.expect(o.callSetId, unittest.equals('foo')); | 2935 unittest.expect(o.callSetId, unittest.equals('foo')); |
| 2936 unittest.expect(o.callSetName, unittest.equals('foo')); | 2936 unittest.expect(o.callSetName, unittest.equals('foo')); |
| 2937 checkUnnamed3003(o.genotype); | 2937 checkUnnamed2473(o.genotype); |
| 2938 checkUnnamed3004(o.genotypeLikelihood); | 2938 checkUnnamed2474(o.genotypeLikelihood); |
| 2939 checkUnnamed3006(o.info); | 2939 checkUnnamed2476(o.info); |
| 2940 unittest.expect(o.phaseset, unittest.equals('foo')); | 2940 unittest.expect(o.phaseset, unittest.equals('foo')); |
| 2941 } | 2941 } |
| 2942 buildCounterVariantCall--; | 2942 buildCounterVariantCall--; |
| 2943 } | 2943 } |
| 2944 | 2944 |
| 2945 buildUnnamed3007() { | 2945 buildUnnamed2477() { |
| 2946 var o = new core.List<api.VariantSetMetadata>(); | 2946 var o = new core.List<api.VariantSetMetadata>(); |
| 2947 o.add(buildVariantSetMetadata()); | 2947 o.add(buildVariantSetMetadata()); |
| 2948 o.add(buildVariantSetMetadata()); | 2948 o.add(buildVariantSetMetadata()); |
| 2949 return o; | 2949 return o; |
| 2950 } | 2950 } |
| 2951 | 2951 |
| 2952 checkUnnamed3007(core.List<api.VariantSetMetadata> o) { | 2952 checkUnnamed2477(core.List<api.VariantSetMetadata> o) { |
| 2953 unittest.expect(o, unittest.hasLength(2)); | 2953 unittest.expect(o, unittest.hasLength(2)); |
| 2954 checkVariantSetMetadata(o[0]); | 2954 checkVariantSetMetadata(o[0]); |
| 2955 checkVariantSetMetadata(o[1]); | 2955 checkVariantSetMetadata(o[1]); |
| 2956 } | 2956 } |
| 2957 | 2957 |
| 2958 buildUnnamed3008() { | 2958 buildUnnamed2478() { |
| 2959 var o = new core.List<api.ReferenceBound>(); | 2959 var o = new core.List<api.ReferenceBound>(); |
| 2960 o.add(buildReferenceBound()); | 2960 o.add(buildReferenceBound()); |
| 2961 o.add(buildReferenceBound()); | 2961 o.add(buildReferenceBound()); |
| 2962 return o; | 2962 return o; |
| 2963 } | 2963 } |
| 2964 | 2964 |
| 2965 checkUnnamed3008(core.List<api.ReferenceBound> o) { | 2965 checkUnnamed2478(core.List<api.ReferenceBound> o) { |
| 2966 unittest.expect(o, unittest.hasLength(2)); | 2966 unittest.expect(o, unittest.hasLength(2)); |
| 2967 checkReferenceBound(o[0]); | 2967 checkReferenceBound(o[0]); |
| 2968 checkReferenceBound(o[1]); | 2968 checkReferenceBound(o[1]); |
| 2969 } | 2969 } |
| 2970 | 2970 |
| 2971 core.int buildCounterVariantSet = 0; | 2971 core.int buildCounterVariantSet = 0; |
| 2972 buildVariantSet() { | 2972 buildVariantSet() { |
| 2973 var o = new api.VariantSet(); | 2973 var o = new api.VariantSet(); |
| 2974 buildCounterVariantSet++; | 2974 buildCounterVariantSet++; |
| 2975 if (buildCounterVariantSet < 3) { | 2975 if (buildCounterVariantSet < 3) { |
| 2976 o.datasetId = "foo"; | 2976 o.datasetId = "foo"; |
| 2977 o.description = "foo"; | 2977 o.description = "foo"; |
| 2978 o.id = "foo"; | 2978 o.id = "foo"; |
| 2979 o.metadata = buildUnnamed3007(); | 2979 o.metadata = buildUnnamed2477(); |
| 2980 o.name = "foo"; | 2980 o.name = "foo"; |
| 2981 o.referenceBounds = buildUnnamed3008(); | 2981 o.referenceBounds = buildUnnamed2478(); |
| 2982 o.referenceSetId = "foo"; | 2982 o.referenceSetId = "foo"; |
| 2983 } | 2983 } |
| 2984 buildCounterVariantSet--; | 2984 buildCounterVariantSet--; |
| 2985 return o; | 2985 return o; |
| 2986 } | 2986 } |
| 2987 | 2987 |
| 2988 checkVariantSet(api.VariantSet o) { | 2988 checkVariantSet(api.VariantSet o) { |
| 2989 buildCounterVariantSet++; | 2989 buildCounterVariantSet++; |
| 2990 if (buildCounterVariantSet < 3) { | 2990 if (buildCounterVariantSet < 3) { |
| 2991 unittest.expect(o.datasetId, unittest.equals('foo')); | 2991 unittest.expect(o.datasetId, unittest.equals('foo')); |
| 2992 unittest.expect(o.description, unittest.equals('foo')); | 2992 unittest.expect(o.description, unittest.equals('foo')); |
| 2993 unittest.expect(o.id, unittest.equals('foo')); | 2993 unittest.expect(o.id, unittest.equals('foo')); |
| 2994 checkUnnamed3007(o.metadata); | 2994 checkUnnamed2477(o.metadata); |
| 2995 unittest.expect(o.name, unittest.equals('foo')); | 2995 unittest.expect(o.name, unittest.equals('foo')); |
| 2996 checkUnnamed3008(o.referenceBounds); | 2996 checkUnnamed2478(o.referenceBounds); |
| 2997 unittest.expect(o.referenceSetId, unittest.equals('foo')); | 2997 unittest.expect(o.referenceSetId, unittest.equals('foo')); |
| 2998 } | 2998 } |
| 2999 buildCounterVariantSet--; | 2999 buildCounterVariantSet--; |
| 3000 } | 3000 } |
| 3001 | 3001 |
| 3002 buildUnnamed3009() { | 3002 buildUnnamed2479() { |
| 3003 var o = new core.List<core.Object>(); | 3003 var o = new core.List<core.Object>(); |
| 3004 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 3004 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 3005 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); | 3005 o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
| 3006 return o; | 3006 return o; |
| 3007 } | 3007 } |
| 3008 | 3008 |
| 3009 checkUnnamed3009(core.List<core.Object> o) { | 3009 checkUnnamed2479(core.List<core.Object> o) { |
| 3010 unittest.expect(o, unittest.hasLength(2)); | 3010 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')); | 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')); |
| 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')); | 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')); |
| 3013 } | 3013 } |
| 3014 | 3014 |
| 3015 buildUnnamed3010() { | 3015 buildUnnamed2480() { |
| 3016 var o = new core.Map<core.String, core.List<core.Object>>(); | 3016 var o = new core.Map<core.String, core.List<core.Object>>(); |
| 3017 o["x"] = buildUnnamed3009(); | 3017 o["x"] = buildUnnamed2479(); |
| 3018 o["y"] = buildUnnamed3009(); | 3018 o["y"] = buildUnnamed2479(); |
| 3019 return o; | 3019 return o; |
| 3020 } | 3020 } |
| 3021 | 3021 |
| 3022 checkUnnamed3010(core.Map<core.String, core.List<core.Object>> o) { | 3022 checkUnnamed2480(core.Map<core.String, core.List<core.Object>> o) { |
| 3023 unittest.expect(o, unittest.hasLength(2)); | 3023 unittest.expect(o, unittest.hasLength(2)); |
| 3024 checkUnnamed3009(o["x"]); | 3024 checkUnnamed2479(o["x"]); |
| 3025 checkUnnamed3009(o["y"]); | 3025 checkUnnamed2479(o["y"]); |
| 3026 } | 3026 } |
| 3027 | 3027 |
| 3028 core.int buildCounterVariantSetMetadata = 0; | 3028 core.int buildCounterVariantSetMetadata = 0; |
| 3029 buildVariantSetMetadata() { | 3029 buildVariantSetMetadata() { |
| 3030 var o = new api.VariantSetMetadata(); | 3030 var o = new api.VariantSetMetadata(); |
| 3031 buildCounterVariantSetMetadata++; | 3031 buildCounterVariantSetMetadata++; |
| 3032 if (buildCounterVariantSetMetadata < 3) { | 3032 if (buildCounterVariantSetMetadata < 3) { |
| 3033 o.description = "foo"; | 3033 o.description = "foo"; |
| 3034 o.id = "foo"; | 3034 o.id = "foo"; |
| 3035 o.info = buildUnnamed3010(); | 3035 o.info = buildUnnamed2480(); |
| 3036 o.key = "foo"; | 3036 o.key = "foo"; |
| 3037 o.number = "foo"; | 3037 o.number = "foo"; |
| 3038 o.type = "foo"; | 3038 o.type = "foo"; |
| 3039 o.value = "foo"; | 3039 o.value = "foo"; |
| 3040 } | 3040 } |
| 3041 buildCounterVariantSetMetadata--; | 3041 buildCounterVariantSetMetadata--; |
| 3042 return o; | 3042 return o; |
| 3043 } | 3043 } |
| 3044 | 3044 |
| 3045 checkVariantSetMetadata(api.VariantSetMetadata o) { | 3045 checkVariantSetMetadata(api.VariantSetMetadata o) { |
| 3046 buildCounterVariantSetMetadata++; | 3046 buildCounterVariantSetMetadata++; |
| 3047 if (buildCounterVariantSetMetadata < 3) { | 3047 if (buildCounterVariantSetMetadata < 3) { |
| 3048 unittest.expect(o.description, unittest.equals('foo')); | 3048 unittest.expect(o.description, unittest.equals('foo')); |
| 3049 unittest.expect(o.id, unittest.equals('foo')); | 3049 unittest.expect(o.id, unittest.equals('foo')); |
| 3050 checkUnnamed3010(o.info); | 3050 checkUnnamed2480(o.info); |
| 3051 unittest.expect(o.key, unittest.equals('foo')); | 3051 unittest.expect(o.key, unittest.equals('foo')); |
| 3052 unittest.expect(o.number, unittest.equals('foo')); | 3052 unittest.expect(o.number, unittest.equals('foo')); |
| 3053 unittest.expect(o.type, unittest.equals('foo')); | 3053 unittest.expect(o.type, unittest.equals('foo')); |
| 3054 unittest.expect(o.value, unittest.equals('foo')); | 3054 unittest.expect(o.value, unittest.equals('foo')); |
| 3055 } | 3055 } |
| 3056 buildCounterVariantSetMetadata--; | 3056 buildCounterVariantSetMetadata--; |
| 3057 } | 3057 } |
| 3058 | 3058 |
| 3059 | 3059 |
| 3060 main() { | 3060 main() { |
| (...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3723 }); | 3723 }); |
| 3724 }); | 3724 }); |
| 3725 | 3725 |
| 3726 | 3726 |
| 3727 unittest.group("resource-AnnotationsResourceApi", () { | 3727 unittest.group("resource-AnnotationsResourceApi", () { |
| 3728 unittest.test("method--batchCreate", () { | 3728 unittest.test("method--batchCreate", () { |
| 3729 | 3729 |
| 3730 var mock = new HttpServerMock(); | 3730 var mock = new HttpServerMock(); |
| 3731 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; | 3731 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; |
| 3732 var arg_request = buildBatchCreateAnnotationsRequest(); | 3732 var arg_request = buildBatchCreateAnnotationsRequest(); |
| 3733 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3733 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 3734 var obj = new api.BatchCreateAnnotationsRequest.fromJson(json); | 3734 var obj = new api.BatchCreateAnnotationsRequest.fromJson(json); |
| 3735 checkBatchCreateAnnotationsRequest(obj); | 3735 checkBatchCreateAnnotationsRequest(obj); |
| 3736 | 3736 |
| 3737 var path = (req.url).path; | 3737 var path = (req.url).path; |
| 3738 var pathOffset = 0; | 3738 var pathOffset = 0; |
| 3739 var index; | 3739 var index; |
| 3740 var subPart; | 3740 var subPart; |
| 3741 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3741 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3742 pathOffset += 1; | 3742 pathOffset += 1; |
| 3743 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq
uals("v1/annotations:batchCreate")); | 3743 unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.eq
uals("v1/annotations:batchCreate")); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 3760 } | 3760 } |
| 3761 } | 3761 } |
| 3762 | 3762 |
| 3763 | 3763 |
| 3764 var h = { | 3764 var h = { |
| 3765 "content-type" : "application/json; charset=utf-8", | 3765 "content-type" : "application/json; charset=utf-8", |
| 3766 }; | 3766 }; |
| 3767 var resp = convert.JSON.encode(buildBatchCreateAnnotationsResponse()); | 3767 var resp = convert.JSON.encode(buildBatchCreateAnnotationsResponse()); |
| 3768 return new async.Future.value(stringResponse(200, h, resp)); | 3768 return new async.Future.value(stringResponse(200, h, resp)); |
| 3769 }), true); | 3769 }), true); |
| 3770 res.batchCreate(arg_request).then(unittest.expectAsync(((api.BatchCreateAn
notationsResponse response) { | 3770 res.batchCreate(arg_request).then(unittest.expectAsync1(((api.BatchCreateA
nnotationsResponse response) { |
| 3771 checkBatchCreateAnnotationsResponse(response); | 3771 checkBatchCreateAnnotationsResponse(response); |
| 3772 }))); | 3772 }))); |
| 3773 }); | 3773 }); |
| 3774 | 3774 |
| 3775 unittest.test("method--create", () { | 3775 unittest.test("method--create", () { |
| 3776 | 3776 |
| 3777 var mock = new HttpServerMock(); | 3777 var mock = new HttpServerMock(); |
| 3778 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; | 3778 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; |
| 3779 var arg_request = buildAnnotation(); | 3779 var arg_request = buildAnnotation(); |
| 3780 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3780 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 3781 var obj = new api.Annotation.fromJson(json); | 3781 var obj = new api.Annotation.fromJson(json); |
| 3782 checkAnnotation(obj); | 3782 checkAnnotation(obj); |
| 3783 | 3783 |
| 3784 var path = (req.url).path; | 3784 var path = (req.url).path; |
| 3785 var pathOffset = 0; | 3785 var pathOffset = 0; |
| 3786 var index; | 3786 var index; |
| 3787 var subPart; | 3787 var subPart; |
| 3788 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3788 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3789 pathOffset += 1; | 3789 pathOffset += 1; |
| 3790 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1/annotations")); | 3790 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1/annotations")); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 3807 } | 3807 } |
| 3808 } | 3808 } |
| 3809 | 3809 |
| 3810 | 3810 |
| 3811 var h = { | 3811 var h = { |
| 3812 "content-type" : "application/json; charset=utf-8", | 3812 "content-type" : "application/json; charset=utf-8", |
| 3813 }; | 3813 }; |
| 3814 var resp = convert.JSON.encode(buildAnnotation()); | 3814 var resp = convert.JSON.encode(buildAnnotation()); |
| 3815 return new async.Future.value(stringResponse(200, h, resp)); | 3815 return new async.Future.value(stringResponse(200, h, resp)); |
| 3816 }), true); | 3816 }), true); |
| 3817 res.create(arg_request).then(unittest.expectAsync(((api.Annotation respons
e) { | 3817 res.create(arg_request).then(unittest.expectAsync1(((api.Annotation respon
se) { |
| 3818 checkAnnotation(response); | 3818 checkAnnotation(response); |
| 3819 }))); | 3819 }))); |
| 3820 }); | 3820 }); |
| 3821 | 3821 |
| 3822 unittest.test("method--delete", () { | 3822 unittest.test("method--delete", () { |
| 3823 | 3823 |
| 3824 var mock = new HttpServerMock(); | 3824 var mock = new HttpServerMock(); |
| 3825 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; | 3825 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; |
| 3826 var arg_annotationId = "foo"; | 3826 var arg_annotationId = "foo"; |
| 3827 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3827 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 3828 var path = (req.url).path; | 3828 var path = (req.url).path; |
| 3829 var pathOffset = 0; | 3829 var pathOffset = 0; |
| 3830 var index; | 3830 var index; |
| 3831 var subPart; | 3831 var subPart; |
| 3832 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3832 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3833 pathOffset += 1; | 3833 pathOffset += 1; |
| 3834 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("v1/annotations/")); | 3834 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("v1/annotations/")); |
| 3835 pathOffset += 15; | 3835 pathOffset += 15; |
| 3836 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 3836 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 3837 pathOffset = path.length; | 3837 pathOffset = path.length; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 3854 } | 3854 } |
| 3855 } | 3855 } |
| 3856 | 3856 |
| 3857 | 3857 |
| 3858 var h = { | 3858 var h = { |
| 3859 "content-type" : "application/json; charset=utf-8", | 3859 "content-type" : "application/json; charset=utf-8", |
| 3860 }; | 3860 }; |
| 3861 var resp = convert.JSON.encode(buildEmpty()); | 3861 var resp = convert.JSON.encode(buildEmpty()); |
| 3862 return new async.Future.value(stringResponse(200, h, resp)); | 3862 return new async.Future.value(stringResponse(200, h, resp)); |
| 3863 }), true); | 3863 }), true); |
| 3864 res.delete(arg_annotationId).then(unittest.expectAsync(((api.Empty respons
e) { | 3864 res.delete(arg_annotationId).then(unittest.expectAsync1(((api.Empty respon
se) { |
| 3865 checkEmpty(response); | 3865 checkEmpty(response); |
| 3866 }))); | 3866 }))); |
| 3867 }); | 3867 }); |
| 3868 | 3868 |
| 3869 unittest.test("method--get", () { | 3869 unittest.test("method--get", () { |
| 3870 | 3870 |
| 3871 var mock = new HttpServerMock(); | 3871 var mock = new HttpServerMock(); |
| 3872 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; | 3872 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; |
| 3873 var arg_annotationId = "foo"; | 3873 var arg_annotationId = "foo"; |
| 3874 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3874 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 3875 var path = (req.url).path; | 3875 var path = (req.url).path; |
| 3876 var pathOffset = 0; | 3876 var pathOffset = 0; |
| 3877 var index; | 3877 var index; |
| 3878 var subPart; | 3878 var subPart; |
| 3879 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3879 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3880 pathOffset += 1; | 3880 pathOffset += 1; |
| 3881 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("v1/annotations/")); | 3881 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("v1/annotations/")); |
| 3882 pathOffset += 15; | 3882 pathOffset += 15; |
| 3883 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 3883 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 3884 pathOffset = path.length; | 3884 pathOffset = path.length; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 3901 } | 3901 } |
| 3902 } | 3902 } |
| 3903 | 3903 |
| 3904 | 3904 |
| 3905 var h = { | 3905 var h = { |
| 3906 "content-type" : "application/json; charset=utf-8", | 3906 "content-type" : "application/json; charset=utf-8", |
| 3907 }; | 3907 }; |
| 3908 var resp = convert.JSON.encode(buildAnnotation()); | 3908 var resp = convert.JSON.encode(buildAnnotation()); |
| 3909 return new async.Future.value(stringResponse(200, h, resp)); | 3909 return new async.Future.value(stringResponse(200, h, resp)); |
| 3910 }), true); | 3910 }), true); |
| 3911 res.get(arg_annotationId).then(unittest.expectAsync(((api.Annotation respo
nse) { | 3911 res.get(arg_annotationId).then(unittest.expectAsync1(((api.Annotation resp
onse) { |
| 3912 checkAnnotation(response); | 3912 checkAnnotation(response); |
| 3913 }))); | 3913 }))); |
| 3914 }); | 3914 }); |
| 3915 | 3915 |
| 3916 unittest.test("method--search", () { | 3916 unittest.test("method--search", () { |
| 3917 | 3917 |
| 3918 var mock = new HttpServerMock(); | 3918 var mock = new HttpServerMock(); |
| 3919 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; | 3919 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; |
| 3920 var arg_request = buildSearchAnnotationsRequest(); | 3920 var arg_request = buildSearchAnnotationsRequest(); |
| 3921 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3921 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 3922 var obj = new api.SearchAnnotationsRequest.fromJson(json); | 3922 var obj = new api.SearchAnnotationsRequest.fromJson(json); |
| 3923 checkSearchAnnotationsRequest(obj); | 3923 checkSearchAnnotationsRequest(obj); |
| 3924 | 3924 |
| 3925 var path = (req.url).path; | 3925 var path = (req.url).path; |
| 3926 var pathOffset = 0; | 3926 var pathOffset = 0; |
| 3927 var index; | 3927 var index; |
| 3928 var subPart; | 3928 var subPart; |
| 3929 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3929 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3930 pathOffset += 1; | 3930 pathOffset += 1; |
| 3931 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("v1/annotations/search")); | 3931 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("v1/annotations/search")); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 3948 } | 3948 } |
| 3949 } | 3949 } |
| 3950 | 3950 |
| 3951 | 3951 |
| 3952 var h = { | 3952 var h = { |
| 3953 "content-type" : "application/json; charset=utf-8", | 3953 "content-type" : "application/json; charset=utf-8", |
| 3954 }; | 3954 }; |
| 3955 var resp = convert.JSON.encode(buildSearchAnnotationsResponse()); | 3955 var resp = convert.JSON.encode(buildSearchAnnotationsResponse()); |
| 3956 return new async.Future.value(stringResponse(200, h, resp)); | 3956 return new async.Future.value(stringResponse(200, h, resp)); |
| 3957 }), true); | 3957 }), true); |
| 3958 res.search(arg_request).then(unittest.expectAsync(((api.SearchAnnotationsR
esponse response) { | 3958 res.search(arg_request).then(unittest.expectAsync1(((api.SearchAnnotations
Response response) { |
| 3959 checkSearchAnnotationsResponse(response); | 3959 checkSearchAnnotationsResponse(response); |
| 3960 }))); | 3960 }))); |
| 3961 }); | 3961 }); |
| 3962 | 3962 |
| 3963 unittest.test("method--update", () { | 3963 unittest.test("method--update", () { |
| 3964 | 3964 |
| 3965 var mock = new HttpServerMock(); | 3965 var mock = new HttpServerMock(); |
| 3966 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; | 3966 api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations; |
| 3967 var arg_request = buildAnnotation(); | 3967 var arg_request = buildAnnotation(); |
| 3968 var arg_annotationId = "foo"; | 3968 var arg_annotationId = "foo"; |
| 3969 var arg_updateMask = "foo"; | 3969 var arg_updateMask = "foo"; |
| 3970 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3970 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 3971 var obj = new api.Annotation.fromJson(json); | 3971 var obj = new api.Annotation.fromJson(json); |
| 3972 checkAnnotation(obj); | 3972 checkAnnotation(obj); |
| 3973 | 3973 |
| 3974 var path = (req.url).path; | 3974 var path = (req.url).path; |
| 3975 var pathOffset = 0; | 3975 var pathOffset = 0; |
| 3976 var index; | 3976 var index; |
| 3977 var subPart; | 3977 var subPart; |
| 3978 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 3978 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 3979 pathOffset += 1; | 3979 pathOffset += 1; |
| 3980 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("v1/annotations/")); | 3980 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("v1/annotations/")); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 4001 } | 4001 } |
| 4002 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); | 4002 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); |
| 4003 | 4003 |
| 4004 | 4004 |
| 4005 var h = { | 4005 var h = { |
| 4006 "content-type" : "application/json; charset=utf-8", | 4006 "content-type" : "application/json; charset=utf-8", |
| 4007 }; | 4007 }; |
| 4008 var resp = convert.JSON.encode(buildAnnotation()); | 4008 var resp = convert.JSON.encode(buildAnnotation()); |
| 4009 return new async.Future.value(stringResponse(200, h, resp)); | 4009 return new async.Future.value(stringResponse(200, h, resp)); |
| 4010 }), true); | 4010 }), true); |
| 4011 res.update(arg_request, arg_annotationId, updateMask: arg_updateMask).then
(unittest.expectAsync(((api.Annotation response) { | 4011 res.update(arg_request, arg_annotationId, updateMask: arg_updateMask).then
(unittest.expectAsync1(((api.Annotation response) { |
| 4012 checkAnnotation(response); | 4012 checkAnnotation(response); |
| 4013 }))); | 4013 }))); |
| 4014 }); | 4014 }); |
| 4015 | 4015 |
| 4016 }); | 4016 }); |
| 4017 | 4017 |
| 4018 | 4018 |
| 4019 unittest.group("resource-AnnotationsetsResourceApi", () { | 4019 unittest.group("resource-AnnotationsetsResourceApi", () { |
| 4020 unittest.test("method--create", () { | 4020 unittest.test("method--create", () { |
| 4021 | 4021 |
| 4022 var mock = new HttpServerMock(); | 4022 var mock = new HttpServerMock(); |
| 4023 api.AnnotationsetsResourceApi res = new api.GenomicsApi(mock).annotationse
ts; | 4023 api.AnnotationsetsResourceApi res = new api.GenomicsApi(mock).annotationse
ts; |
| 4024 var arg_request = buildAnnotationSet(); | 4024 var arg_request = buildAnnotationSet(); |
| 4025 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4025 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4026 var obj = new api.AnnotationSet.fromJson(json); | 4026 var obj = new api.AnnotationSet.fromJson(json); |
| 4027 checkAnnotationSet(obj); | 4027 checkAnnotationSet(obj); |
| 4028 | 4028 |
| 4029 var path = (req.url).path; | 4029 var path = (req.url).path; |
| 4030 var pathOffset = 0; | 4030 var pathOffset = 0; |
| 4031 var index; | 4031 var index; |
| 4032 var subPart; | 4032 var subPart; |
| 4033 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4033 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4034 pathOffset += 1; | 4034 pathOffset += 1; |
| 4035 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/annotationsets")); | 4035 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/annotationsets")); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 4052 } | 4052 } |
| 4053 } | 4053 } |
| 4054 | 4054 |
| 4055 | 4055 |
| 4056 var h = { | 4056 var h = { |
| 4057 "content-type" : "application/json; charset=utf-8", | 4057 "content-type" : "application/json; charset=utf-8", |
| 4058 }; | 4058 }; |
| 4059 var resp = convert.JSON.encode(buildAnnotationSet()); | 4059 var resp = convert.JSON.encode(buildAnnotationSet()); |
| 4060 return new async.Future.value(stringResponse(200, h, resp)); | 4060 return new async.Future.value(stringResponse(200, h, resp)); |
| 4061 }), true); | 4061 }), true); |
| 4062 res.create(arg_request).then(unittest.expectAsync(((api.AnnotationSet resp
onse) { | 4062 res.create(arg_request).then(unittest.expectAsync1(((api.AnnotationSet res
ponse) { |
| 4063 checkAnnotationSet(response); | 4063 checkAnnotationSet(response); |
| 4064 }))); | 4064 }))); |
| 4065 }); | 4065 }); |
| 4066 | 4066 |
| 4067 unittest.test("method--delete", () { | 4067 unittest.test("method--delete", () { |
| 4068 | 4068 |
| 4069 var mock = new HttpServerMock(); | 4069 var mock = new HttpServerMock(); |
| 4070 api.AnnotationsetsResourceApi res = new api.GenomicsApi(mock).annotationse
ts; | 4070 api.AnnotationsetsResourceApi res = new api.GenomicsApi(mock).annotationse
ts; |
| 4071 var arg_annotationSetId = "foo"; | 4071 var arg_annotationSetId = "foo"; |
| 4072 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4072 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4073 var path = (req.url).path; | 4073 var path = (req.url).path; |
| 4074 var pathOffset = 0; | 4074 var pathOffset = 0; |
| 4075 var index; | 4075 var index; |
| 4076 var subPart; | 4076 var subPart; |
| 4077 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4077 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4078 pathOffset += 1; | 4078 pathOffset += 1; |
| 4079 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("v1/annotationsets/")); | 4079 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("v1/annotationsets/")); |
| 4080 pathOffset += 18; | 4080 pathOffset += 18; |
| 4081 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4081 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 4082 pathOffset = path.length; | 4082 pathOffset = path.length; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 4099 } | 4099 } |
| 4100 } | 4100 } |
| 4101 | 4101 |
| 4102 | 4102 |
| 4103 var h = { | 4103 var h = { |
| 4104 "content-type" : "application/json; charset=utf-8", | 4104 "content-type" : "application/json; charset=utf-8", |
| 4105 }; | 4105 }; |
| 4106 var resp = convert.JSON.encode(buildEmpty()); | 4106 var resp = convert.JSON.encode(buildEmpty()); |
| 4107 return new async.Future.value(stringResponse(200, h, resp)); | 4107 return new async.Future.value(stringResponse(200, h, resp)); |
| 4108 }), true); | 4108 }), true); |
| 4109 res.delete(arg_annotationSetId).then(unittest.expectAsync(((api.Empty resp
onse) { | 4109 res.delete(arg_annotationSetId).then(unittest.expectAsync1(((api.Empty res
ponse) { |
| 4110 checkEmpty(response); | 4110 checkEmpty(response); |
| 4111 }))); | 4111 }))); |
| 4112 }); | 4112 }); |
| 4113 | 4113 |
| 4114 unittest.test("method--get", () { | 4114 unittest.test("method--get", () { |
| 4115 | 4115 |
| 4116 var mock = new HttpServerMock(); | 4116 var mock = new HttpServerMock(); |
| 4117 api.AnnotationsetsResourceApi res = new api.GenomicsApi(mock).annotationse
ts; | 4117 api.AnnotationsetsResourceApi res = new api.GenomicsApi(mock).annotationse
ts; |
| 4118 var arg_annotationSetId = "foo"; | 4118 var arg_annotationSetId = "foo"; |
| 4119 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4119 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4120 var path = (req.url).path; | 4120 var path = (req.url).path; |
| 4121 var pathOffset = 0; | 4121 var pathOffset = 0; |
| 4122 var index; | 4122 var index; |
| 4123 var subPart; | 4123 var subPart; |
| 4124 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4124 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4125 pathOffset += 1; | 4125 pathOffset += 1; |
| 4126 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("v1/annotationsets/")); | 4126 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("v1/annotationsets/")); |
| 4127 pathOffset += 18; | 4127 pathOffset += 18; |
| 4128 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4128 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 4129 pathOffset = path.length; | 4129 pathOffset = path.length; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 4146 } | 4146 } |
| 4147 } | 4147 } |
| 4148 | 4148 |
| 4149 | 4149 |
| 4150 var h = { | 4150 var h = { |
| 4151 "content-type" : "application/json; charset=utf-8", | 4151 "content-type" : "application/json; charset=utf-8", |
| 4152 }; | 4152 }; |
| 4153 var resp = convert.JSON.encode(buildAnnotationSet()); | 4153 var resp = convert.JSON.encode(buildAnnotationSet()); |
| 4154 return new async.Future.value(stringResponse(200, h, resp)); | 4154 return new async.Future.value(stringResponse(200, h, resp)); |
| 4155 }), true); | 4155 }), true); |
| 4156 res.get(arg_annotationSetId).then(unittest.expectAsync(((api.AnnotationSet
response) { | 4156 res.get(arg_annotationSetId).then(unittest.expectAsync1(((api.AnnotationSe
t response) { |
| 4157 checkAnnotationSet(response); | 4157 checkAnnotationSet(response); |
| 4158 }))); | 4158 }))); |
| 4159 }); | 4159 }); |
| 4160 | 4160 |
| 4161 unittest.test("method--search", () { | 4161 unittest.test("method--search", () { |
| 4162 | 4162 |
| 4163 var mock = new HttpServerMock(); | 4163 var mock = new HttpServerMock(); |
| 4164 api.AnnotationsetsResourceApi res = new api.GenomicsApi(mock).annotationse
ts; | 4164 api.AnnotationsetsResourceApi res = new api.GenomicsApi(mock).annotationse
ts; |
| 4165 var arg_request = buildSearchAnnotationSetsRequest(); | 4165 var arg_request = buildSearchAnnotationSetsRequest(); |
| 4166 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4166 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4167 var obj = new api.SearchAnnotationSetsRequest.fromJson(json); | 4167 var obj = new api.SearchAnnotationSetsRequest.fromJson(json); |
| 4168 checkSearchAnnotationSetsRequest(obj); | 4168 checkSearchAnnotationSetsRequest(obj); |
| 4169 | 4169 |
| 4170 var path = (req.url).path; | 4170 var path = (req.url).path; |
| 4171 var pathOffset = 0; | 4171 var pathOffset = 0; |
| 4172 var index; | 4172 var index; |
| 4173 var subPart; | 4173 var subPart; |
| 4174 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4174 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4175 pathOffset += 1; | 4175 pathOffset += 1; |
| 4176 unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.eq
uals("v1/annotationsets/search")); | 4176 unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.eq
uals("v1/annotationsets/search")); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 4193 } | 4193 } |
| 4194 } | 4194 } |
| 4195 | 4195 |
| 4196 | 4196 |
| 4197 var h = { | 4197 var h = { |
| 4198 "content-type" : "application/json; charset=utf-8", | 4198 "content-type" : "application/json; charset=utf-8", |
| 4199 }; | 4199 }; |
| 4200 var resp = convert.JSON.encode(buildSearchAnnotationSetsResponse()); | 4200 var resp = convert.JSON.encode(buildSearchAnnotationSetsResponse()); |
| 4201 return new async.Future.value(stringResponse(200, h, resp)); | 4201 return new async.Future.value(stringResponse(200, h, resp)); |
| 4202 }), true); | 4202 }), true); |
| 4203 res.search(arg_request).then(unittest.expectAsync(((api.SearchAnnotationSe
tsResponse response) { | 4203 res.search(arg_request).then(unittest.expectAsync1(((api.SearchAnnotationS
etsResponse response) { |
| 4204 checkSearchAnnotationSetsResponse(response); | 4204 checkSearchAnnotationSetsResponse(response); |
| 4205 }))); | 4205 }))); |
| 4206 }); | 4206 }); |
| 4207 | 4207 |
| 4208 unittest.test("method--update", () { | 4208 unittest.test("method--update", () { |
| 4209 | 4209 |
| 4210 var mock = new HttpServerMock(); | 4210 var mock = new HttpServerMock(); |
| 4211 api.AnnotationsetsResourceApi res = new api.GenomicsApi(mock).annotationse
ts; | 4211 api.AnnotationsetsResourceApi res = new api.GenomicsApi(mock).annotationse
ts; |
| 4212 var arg_request = buildAnnotationSet(); | 4212 var arg_request = buildAnnotationSet(); |
| 4213 var arg_annotationSetId = "foo"; | 4213 var arg_annotationSetId = "foo"; |
| 4214 var arg_updateMask = "foo"; | 4214 var arg_updateMask = "foo"; |
| 4215 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4215 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4216 var obj = new api.AnnotationSet.fromJson(json); | 4216 var obj = new api.AnnotationSet.fromJson(json); |
| 4217 checkAnnotationSet(obj); | 4217 checkAnnotationSet(obj); |
| 4218 | 4218 |
| 4219 var path = (req.url).path; | 4219 var path = (req.url).path; |
| 4220 var pathOffset = 0; | 4220 var pathOffset = 0; |
| 4221 var index; | 4221 var index; |
| 4222 var subPart; | 4222 var subPart; |
| 4223 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4223 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4224 pathOffset += 1; | 4224 pathOffset += 1; |
| 4225 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("v1/annotationsets/")); | 4225 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("v1/annotationsets/")); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 4246 } | 4246 } |
| 4247 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); | 4247 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); |
| 4248 | 4248 |
| 4249 | 4249 |
| 4250 var h = { | 4250 var h = { |
| 4251 "content-type" : "application/json; charset=utf-8", | 4251 "content-type" : "application/json; charset=utf-8", |
| 4252 }; | 4252 }; |
| 4253 var resp = convert.JSON.encode(buildAnnotationSet()); | 4253 var resp = convert.JSON.encode(buildAnnotationSet()); |
| 4254 return new async.Future.value(stringResponse(200, h, resp)); | 4254 return new async.Future.value(stringResponse(200, h, resp)); |
| 4255 }), true); | 4255 }), true); |
| 4256 res.update(arg_request, arg_annotationSetId, updateMask: arg_updateMask).t
hen(unittest.expectAsync(((api.AnnotationSet response) { | 4256 res.update(arg_request, arg_annotationSetId, updateMask: arg_updateMask).t
hen(unittest.expectAsync1(((api.AnnotationSet response) { |
| 4257 checkAnnotationSet(response); | 4257 checkAnnotationSet(response); |
| 4258 }))); | 4258 }))); |
| 4259 }); | 4259 }); |
| 4260 | 4260 |
| 4261 }); | 4261 }); |
| 4262 | 4262 |
| 4263 | 4263 |
| 4264 unittest.group("resource-CallsetsResourceApi", () { | 4264 unittest.group("resource-CallsetsResourceApi", () { |
| 4265 unittest.test("method--create", () { | 4265 unittest.test("method--create", () { |
| 4266 | 4266 |
| 4267 var mock = new HttpServerMock(); | 4267 var mock = new HttpServerMock(); |
| 4268 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; | 4268 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; |
| 4269 var arg_request = buildCallSet(); | 4269 var arg_request = buildCallSet(); |
| 4270 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4270 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4271 var obj = new api.CallSet.fromJson(json); | 4271 var obj = new api.CallSet.fromJson(json); |
| 4272 checkCallSet(obj); | 4272 checkCallSet(obj); |
| 4273 | 4273 |
| 4274 var path = (req.url).path; | 4274 var path = (req.url).path; |
| 4275 var pathOffset = 0; | 4275 var pathOffset = 0; |
| 4276 var index; | 4276 var index; |
| 4277 var subPart; | 4277 var subPart; |
| 4278 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4278 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4279 pathOffset += 1; | 4279 pathOffset += 1; |
| 4280 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("v1/callsets")); | 4280 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("v1/callsets")); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 4297 } | 4297 } |
| 4298 } | 4298 } |
| 4299 | 4299 |
| 4300 | 4300 |
| 4301 var h = { | 4301 var h = { |
| 4302 "content-type" : "application/json; charset=utf-8", | 4302 "content-type" : "application/json; charset=utf-8", |
| 4303 }; | 4303 }; |
| 4304 var resp = convert.JSON.encode(buildCallSet()); | 4304 var resp = convert.JSON.encode(buildCallSet()); |
| 4305 return new async.Future.value(stringResponse(200, h, resp)); | 4305 return new async.Future.value(stringResponse(200, h, resp)); |
| 4306 }), true); | 4306 }), true); |
| 4307 res.create(arg_request).then(unittest.expectAsync(((api.CallSet response)
{ | 4307 res.create(arg_request).then(unittest.expectAsync1(((api.CallSet response)
{ |
| 4308 checkCallSet(response); | 4308 checkCallSet(response); |
| 4309 }))); | 4309 }))); |
| 4310 }); | 4310 }); |
| 4311 | 4311 |
| 4312 unittest.test("method--delete", () { | 4312 unittest.test("method--delete", () { |
| 4313 | 4313 |
| 4314 var mock = new HttpServerMock(); | 4314 var mock = new HttpServerMock(); |
| 4315 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; | 4315 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; |
| 4316 var arg_callSetId = "foo"; | 4316 var arg_callSetId = "foo"; |
| 4317 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4317 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4318 var path = (req.url).path; | 4318 var path = (req.url).path; |
| 4319 var pathOffset = 0; | 4319 var pathOffset = 0; |
| 4320 var index; | 4320 var index; |
| 4321 var subPart; | 4321 var subPart; |
| 4322 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4322 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4323 pathOffset += 1; | 4323 pathOffset += 1; |
| 4324 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/callsets/")); | 4324 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/callsets/")); |
| 4325 pathOffset += 12; | 4325 pathOffset += 12; |
| 4326 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4326 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 4327 pathOffset = path.length; | 4327 pathOffset = path.length; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 4344 } | 4344 } |
| 4345 } | 4345 } |
| 4346 | 4346 |
| 4347 | 4347 |
| 4348 var h = { | 4348 var h = { |
| 4349 "content-type" : "application/json; charset=utf-8", | 4349 "content-type" : "application/json; charset=utf-8", |
| 4350 }; | 4350 }; |
| 4351 var resp = convert.JSON.encode(buildEmpty()); | 4351 var resp = convert.JSON.encode(buildEmpty()); |
| 4352 return new async.Future.value(stringResponse(200, h, resp)); | 4352 return new async.Future.value(stringResponse(200, h, resp)); |
| 4353 }), true); | 4353 }), true); |
| 4354 res.delete(arg_callSetId).then(unittest.expectAsync(((api.Empty response)
{ | 4354 res.delete(arg_callSetId).then(unittest.expectAsync1(((api.Empty response)
{ |
| 4355 checkEmpty(response); | 4355 checkEmpty(response); |
| 4356 }))); | 4356 }))); |
| 4357 }); | 4357 }); |
| 4358 | 4358 |
| 4359 unittest.test("method--get", () { | 4359 unittest.test("method--get", () { |
| 4360 | 4360 |
| 4361 var mock = new HttpServerMock(); | 4361 var mock = new HttpServerMock(); |
| 4362 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; | 4362 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; |
| 4363 var arg_callSetId = "foo"; | 4363 var arg_callSetId = "foo"; |
| 4364 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4364 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4365 var path = (req.url).path; | 4365 var path = (req.url).path; |
| 4366 var pathOffset = 0; | 4366 var pathOffset = 0; |
| 4367 var index; | 4367 var index; |
| 4368 var subPart; | 4368 var subPart; |
| 4369 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4369 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4370 pathOffset += 1; | 4370 pathOffset += 1; |
| 4371 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/callsets/")); | 4371 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/callsets/")); |
| 4372 pathOffset += 12; | 4372 pathOffset += 12; |
| 4373 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4373 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 4374 pathOffset = path.length; | 4374 pathOffset = path.length; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 4391 } | 4391 } |
| 4392 } | 4392 } |
| 4393 | 4393 |
| 4394 | 4394 |
| 4395 var h = { | 4395 var h = { |
| 4396 "content-type" : "application/json; charset=utf-8", | 4396 "content-type" : "application/json; charset=utf-8", |
| 4397 }; | 4397 }; |
| 4398 var resp = convert.JSON.encode(buildCallSet()); | 4398 var resp = convert.JSON.encode(buildCallSet()); |
| 4399 return new async.Future.value(stringResponse(200, h, resp)); | 4399 return new async.Future.value(stringResponse(200, h, resp)); |
| 4400 }), true); | 4400 }), true); |
| 4401 res.get(arg_callSetId).then(unittest.expectAsync(((api.CallSet response) { | 4401 res.get(arg_callSetId).then(unittest.expectAsync1(((api.CallSet response)
{ |
| 4402 checkCallSet(response); | 4402 checkCallSet(response); |
| 4403 }))); | 4403 }))); |
| 4404 }); | 4404 }); |
| 4405 | 4405 |
| 4406 unittest.test("method--patch", () { | 4406 unittest.test("method--patch", () { |
| 4407 | 4407 |
| 4408 var mock = new HttpServerMock(); | 4408 var mock = new HttpServerMock(); |
| 4409 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; | 4409 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; |
| 4410 var arg_request = buildCallSet(); | 4410 var arg_request = buildCallSet(); |
| 4411 var arg_callSetId = "foo"; | 4411 var arg_callSetId = "foo"; |
| 4412 var arg_updateMask = "foo"; | 4412 var arg_updateMask = "foo"; |
| 4413 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4413 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4414 var obj = new api.CallSet.fromJson(json); | 4414 var obj = new api.CallSet.fromJson(json); |
| 4415 checkCallSet(obj); | 4415 checkCallSet(obj); |
| 4416 | 4416 |
| 4417 var path = (req.url).path; | 4417 var path = (req.url).path; |
| 4418 var pathOffset = 0; | 4418 var pathOffset = 0; |
| 4419 var index; | 4419 var index; |
| 4420 var subPart; | 4420 var subPart; |
| 4421 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4421 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4422 pathOffset += 1; | 4422 pathOffset += 1; |
| 4423 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/callsets/")); | 4423 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/callsets/")); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 4444 } | 4444 } |
| 4445 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); | 4445 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); |
| 4446 | 4446 |
| 4447 | 4447 |
| 4448 var h = { | 4448 var h = { |
| 4449 "content-type" : "application/json; charset=utf-8", | 4449 "content-type" : "application/json; charset=utf-8", |
| 4450 }; | 4450 }; |
| 4451 var resp = convert.JSON.encode(buildCallSet()); | 4451 var resp = convert.JSON.encode(buildCallSet()); |
| 4452 return new async.Future.value(stringResponse(200, h, resp)); | 4452 return new async.Future.value(stringResponse(200, h, resp)); |
| 4453 }), true); | 4453 }), true); |
| 4454 res.patch(arg_request, arg_callSetId, updateMask: arg_updateMask).then(uni
ttest.expectAsync(((api.CallSet response) { | 4454 res.patch(arg_request, arg_callSetId, updateMask: arg_updateMask).then(uni
ttest.expectAsync1(((api.CallSet response) { |
| 4455 checkCallSet(response); | 4455 checkCallSet(response); |
| 4456 }))); | 4456 }))); |
| 4457 }); | 4457 }); |
| 4458 | 4458 |
| 4459 unittest.test("method--search", () { | 4459 unittest.test("method--search", () { |
| 4460 | 4460 |
| 4461 var mock = new HttpServerMock(); | 4461 var mock = new HttpServerMock(); |
| 4462 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; | 4462 api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; |
| 4463 var arg_request = buildSearchCallSetsRequest(); | 4463 var arg_request = buildSearchCallSetsRequest(); |
| 4464 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4464 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4465 var obj = new api.SearchCallSetsRequest.fromJson(json); | 4465 var obj = new api.SearchCallSetsRequest.fromJson(json); |
| 4466 checkSearchCallSetsRequest(obj); | 4466 checkSearchCallSetsRequest(obj); |
| 4467 | 4467 |
| 4468 var path = (req.url).path; | 4468 var path = (req.url).path; |
| 4469 var pathOffset = 0; | 4469 var pathOffset = 0; |
| 4470 var index; | 4470 var index; |
| 4471 var subPart; | 4471 var subPart; |
| 4472 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4472 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4473 pathOffset += 1; | 4473 pathOffset += 1; |
| 4474 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("v1/callsets/search")); | 4474 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("v1/callsets/search")); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 4491 } | 4491 } |
| 4492 } | 4492 } |
| 4493 | 4493 |
| 4494 | 4494 |
| 4495 var h = { | 4495 var h = { |
| 4496 "content-type" : "application/json; charset=utf-8", | 4496 "content-type" : "application/json; charset=utf-8", |
| 4497 }; | 4497 }; |
| 4498 var resp = convert.JSON.encode(buildSearchCallSetsResponse()); | 4498 var resp = convert.JSON.encode(buildSearchCallSetsResponse()); |
| 4499 return new async.Future.value(stringResponse(200, h, resp)); | 4499 return new async.Future.value(stringResponse(200, h, resp)); |
| 4500 }), true); | 4500 }), true); |
| 4501 res.search(arg_request).then(unittest.expectAsync(((api.SearchCallSetsResp
onse response) { | 4501 res.search(arg_request).then(unittest.expectAsync1(((api.SearchCallSetsRes
ponse response) { |
| 4502 checkSearchCallSetsResponse(response); | 4502 checkSearchCallSetsResponse(response); |
| 4503 }))); | 4503 }))); |
| 4504 }); | 4504 }); |
| 4505 | 4505 |
| 4506 }); | 4506 }); |
| 4507 | 4507 |
| 4508 | 4508 |
| 4509 unittest.group("resource-DatasetsResourceApi", () { | 4509 unittest.group("resource-DatasetsResourceApi", () { |
| 4510 unittest.test("method--create", () { | 4510 unittest.test("method--create", () { |
| 4511 | 4511 |
| 4512 var mock = new HttpServerMock(); | 4512 var mock = new HttpServerMock(); |
| 4513 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; | 4513 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; |
| 4514 var arg_request = buildDataset(); | 4514 var arg_request = buildDataset(); |
| 4515 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4515 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4516 var obj = new api.Dataset.fromJson(json); | 4516 var obj = new api.Dataset.fromJson(json); |
| 4517 checkDataset(obj); | 4517 checkDataset(obj); |
| 4518 | 4518 |
| 4519 var path = (req.url).path; | 4519 var path = (req.url).path; |
| 4520 var pathOffset = 0; | 4520 var pathOffset = 0; |
| 4521 var index; | 4521 var index; |
| 4522 var subPart; | 4522 var subPart; |
| 4523 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4523 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4524 pathOffset += 1; | 4524 pathOffset += 1; |
| 4525 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("v1/datasets")); | 4525 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("v1/datasets")); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 4542 } | 4542 } |
| 4543 } | 4543 } |
| 4544 | 4544 |
| 4545 | 4545 |
| 4546 var h = { | 4546 var h = { |
| 4547 "content-type" : "application/json; charset=utf-8", | 4547 "content-type" : "application/json; charset=utf-8", |
| 4548 }; | 4548 }; |
| 4549 var resp = convert.JSON.encode(buildDataset()); | 4549 var resp = convert.JSON.encode(buildDataset()); |
| 4550 return new async.Future.value(stringResponse(200, h, resp)); | 4550 return new async.Future.value(stringResponse(200, h, resp)); |
| 4551 }), true); | 4551 }), true); |
| 4552 res.create(arg_request).then(unittest.expectAsync(((api.Dataset response)
{ | 4552 res.create(arg_request).then(unittest.expectAsync1(((api.Dataset response)
{ |
| 4553 checkDataset(response); | 4553 checkDataset(response); |
| 4554 }))); | 4554 }))); |
| 4555 }); | 4555 }); |
| 4556 | 4556 |
| 4557 unittest.test("method--delete", () { | 4557 unittest.test("method--delete", () { |
| 4558 | 4558 |
| 4559 var mock = new HttpServerMock(); | 4559 var mock = new HttpServerMock(); |
| 4560 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; | 4560 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; |
| 4561 var arg_datasetId = "foo"; | 4561 var arg_datasetId = "foo"; |
| 4562 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4562 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4563 var path = (req.url).path; | 4563 var path = (req.url).path; |
| 4564 var pathOffset = 0; | 4564 var pathOffset = 0; |
| 4565 var index; | 4565 var index; |
| 4566 var subPart; | 4566 var subPart; |
| 4567 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4567 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4568 pathOffset += 1; | 4568 pathOffset += 1; |
| 4569 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/datasets/")); | 4569 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/datasets/")); |
| 4570 pathOffset += 12; | 4570 pathOffset += 12; |
| 4571 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4571 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 4572 pathOffset = path.length; | 4572 pathOffset = path.length; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 4589 } | 4589 } |
| 4590 } | 4590 } |
| 4591 | 4591 |
| 4592 | 4592 |
| 4593 var h = { | 4593 var h = { |
| 4594 "content-type" : "application/json; charset=utf-8", | 4594 "content-type" : "application/json; charset=utf-8", |
| 4595 }; | 4595 }; |
| 4596 var resp = convert.JSON.encode(buildEmpty()); | 4596 var resp = convert.JSON.encode(buildEmpty()); |
| 4597 return new async.Future.value(stringResponse(200, h, resp)); | 4597 return new async.Future.value(stringResponse(200, h, resp)); |
| 4598 }), true); | 4598 }), true); |
| 4599 res.delete(arg_datasetId).then(unittest.expectAsync(((api.Empty response)
{ | 4599 res.delete(arg_datasetId).then(unittest.expectAsync1(((api.Empty response)
{ |
| 4600 checkEmpty(response); | 4600 checkEmpty(response); |
| 4601 }))); | 4601 }))); |
| 4602 }); | 4602 }); |
| 4603 | 4603 |
| 4604 unittest.test("method--get", () { | 4604 unittest.test("method--get", () { |
| 4605 | 4605 |
| 4606 var mock = new HttpServerMock(); | 4606 var mock = new HttpServerMock(); |
| 4607 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; | 4607 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; |
| 4608 var arg_datasetId = "foo"; | 4608 var arg_datasetId = "foo"; |
| 4609 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4609 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4610 var path = (req.url).path; | 4610 var path = (req.url).path; |
| 4611 var pathOffset = 0; | 4611 var pathOffset = 0; |
| 4612 var index; | 4612 var index; |
| 4613 var subPart; | 4613 var subPart; |
| 4614 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4614 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4615 pathOffset += 1; | 4615 pathOffset += 1; |
| 4616 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/datasets/")); | 4616 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/datasets/")); |
| 4617 pathOffset += 12; | 4617 pathOffset += 12; |
| 4618 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 4618 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 4619 pathOffset = path.length; | 4619 pathOffset = path.length; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 4636 } | 4636 } |
| 4637 } | 4637 } |
| 4638 | 4638 |
| 4639 | 4639 |
| 4640 var h = { | 4640 var h = { |
| 4641 "content-type" : "application/json; charset=utf-8", | 4641 "content-type" : "application/json; charset=utf-8", |
| 4642 }; | 4642 }; |
| 4643 var resp = convert.JSON.encode(buildDataset()); | 4643 var resp = convert.JSON.encode(buildDataset()); |
| 4644 return new async.Future.value(stringResponse(200, h, resp)); | 4644 return new async.Future.value(stringResponse(200, h, resp)); |
| 4645 }), true); | 4645 }), true); |
| 4646 res.get(arg_datasetId).then(unittest.expectAsync(((api.Dataset response) { | 4646 res.get(arg_datasetId).then(unittest.expectAsync1(((api.Dataset response)
{ |
| 4647 checkDataset(response); | 4647 checkDataset(response); |
| 4648 }))); | 4648 }))); |
| 4649 }); | 4649 }); |
| 4650 | 4650 |
| 4651 unittest.test("method--getIamPolicy", () { | 4651 unittest.test("method--getIamPolicy", () { |
| 4652 | 4652 |
| 4653 var mock = new HttpServerMock(); | 4653 var mock = new HttpServerMock(); |
| 4654 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; | 4654 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; |
| 4655 var arg_request = buildGetIamPolicyRequest(); | 4655 var arg_request = buildGetIamPolicyRequest(); |
| 4656 var arg_resource = "foo"; | 4656 var arg_resource = "foo"; |
| 4657 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4657 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4658 var obj = new api.GetIamPolicyRequest.fromJson(json); | 4658 var obj = new api.GetIamPolicyRequest.fromJson(json); |
| 4659 checkGetIamPolicyRequest(obj); | 4659 checkGetIamPolicyRequest(obj); |
| 4660 | 4660 |
| 4661 var path = (req.url).path; | 4661 var path = (req.url).path; |
| 4662 var pathOffset = 0; | 4662 var pathOffset = 0; |
| 4663 var index; | 4663 var index; |
| 4664 var subPart; | 4664 var subPart; |
| 4665 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4665 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4666 pathOffset += 1; | 4666 pathOffset += 1; |
| 4667 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 4667 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 4685 } | 4685 } |
| 4686 } | 4686 } |
| 4687 | 4687 |
| 4688 | 4688 |
| 4689 var h = { | 4689 var h = { |
| 4690 "content-type" : "application/json; charset=utf-8", | 4690 "content-type" : "application/json; charset=utf-8", |
| 4691 }; | 4691 }; |
| 4692 var resp = convert.JSON.encode(buildPolicy()); | 4692 var resp = convert.JSON.encode(buildPolicy()); |
| 4693 return new async.Future.value(stringResponse(200, h, resp)); | 4693 return new async.Future.value(stringResponse(200, h, resp)); |
| 4694 }), true); | 4694 }), true); |
| 4695 res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((ap
i.Policy response) { | 4695 res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((a
pi.Policy response) { |
| 4696 checkPolicy(response); | 4696 checkPolicy(response); |
| 4697 }))); | 4697 }))); |
| 4698 }); | 4698 }); |
| 4699 | 4699 |
| 4700 unittest.test("method--list", () { | 4700 unittest.test("method--list", () { |
| 4701 | 4701 |
| 4702 var mock = new HttpServerMock(); | 4702 var mock = new HttpServerMock(); |
| 4703 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; | 4703 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; |
| 4704 var arg_pageSize = 42; | 4704 var arg_pageSize = 42; |
| 4705 var arg_projectId = "foo"; | 4705 var arg_projectId = "foo"; |
| 4706 var arg_pageToken = "foo"; | 4706 var arg_pageToken = "foo"; |
| 4707 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4707 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4708 var path = (req.url).path; | 4708 var path = (req.url).path; |
| 4709 var pathOffset = 0; | 4709 var pathOffset = 0; |
| 4710 var index; | 4710 var index; |
| 4711 var subPart; | 4711 var subPart; |
| 4712 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4712 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4713 pathOffset += 1; | 4713 pathOffset += 1; |
| 4714 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("v1/datasets")); | 4714 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("v1/datasets")); |
| 4715 pathOffset += 11; | 4715 pathOffset += 11; |
| 4716 | 4716 |
| 4717 var query = (req.url).query; | 4717 var query = (req.url).query; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 4734 unittest.expect(queryMap["projectId"].first, unittest.equals(arg_project
Id)); | 4734 unittest.expect(queryMap["projectId"].first, unittest.equals(arg_project
Id)); |
| 4735 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 4735 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 4736 | 4736 |
| 4737 | 4737 |
| 4738 var h = { | 4738 var h = { |
| 4739 "content-type" : "application/json; charset=utf-8", | 4739 "content-type" : "application/json; charset=utf-8", |
| 4740 }; | 4740 }; |
| 4741 var resp = convert.JSON.encode(buildListDatasetsResponse()); | 4741 var resp = convert.JSON.encode(buildListDatasetsResponse()); |
| 4742 return new async.Future.value(stringResponse(200, h, resp)); | 4742 return new async.Future.value(stringResponse(200, h, resp)); |
| 4743 }), true); | 4743 }), true); |
| 4744 res.list(pageSize: arg_pageSize, projectId: arg_projectId, pageToken: arg_
pageToken).then(unittest.expectAsync(((api.ListDatasetsResponse response) { | 4744 res.list(pageSize: arg_pageSize, projectId: arg_projectId, pageToken: arg_
pageToken).then(unittest.expectAsync1(((api.ListDatasetsResponse response) { |
| 4745 checkListDatasetsResponse(response); | 4745 checkListDatasetsResponse(response); |
| 4746 }))); | 4746 }))); |
| 4747 }); | 4747 }); |
| 4748 | 4748 |
| 4749 unittest.test("method--patch", () { | 4749 unittest.test("method--patch", () { |
| 4750 | 4750 |
| 4751 var mock = new HttpServerMock(); | 4751 var mock = new HttpServerMock(); |
| 4752 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; | 4752 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; |
| 4753 var arg_request = buildDataset(); | 4753 var arg_request = buildDataset(); |
| 4754 var arg_datasetId = "foo"; | 4754 var arg_datasetId = "foo"; |
| 4755 var arg_updateMask = "foo"; | 4755 var arg_updateMask = "foo"; |
| 4756 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4756 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4757 var obj = new api.Dataset.fromJson(json); | 4757 var obj = new api.Dataset.fromJson(json); |
| 4758 checkDataset(obj); | 4758 checkDataset(obj); |
| 4759 | 4759 |
| 4760 var path = (req.url).path; | 4760 var path = (req.url).path; |
| 4761 var pathOffset = 0; | 4761 var pathOffset = 0; |
| 4762 var index; | 4762 var index; |
| 4763 var subPart; | 4763 var subPart; |
| 4764 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4764 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4765 pathOffset += 1; | 4765 pathOffset += 1; |
| 4766 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/datasets/")); | 4766 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/datasets/")); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 4787 } | 4787 } |
| 4788 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); | 4788 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); |
| 4789 | 4789 |
| 4790 | 4790 |
| 4791 var h = { | 4791 var h = { |
| 4792 "content-type" : "application/json; charset=utf-8", | 4792 "content-type" : "application/json; charset=utf-8", |
| 4793 }; | 4793 }; |
| 4794 var resp = convert.JSON.encode(buildDataset()); | 4794 var resp = convert.JSON.encode(buildDataset()); |
| 4795 return new async.Future.value(stringResponse(200, h, resp)); | 4795 return new async.Future.value(stringResponse(200, h, resp)); |
| 4796 }), true); | 4796 }), true); |
| 4797 res.patch(arg_request, arg_datasetId, updateMask: arg_updateMask).then(uni
ttest.expectAsync(((api.Dataset response) { | 4797 res.patch(arg_request, arg_datasetId, updateMask: arg_updateMask).then(uni
ttest.expectAsync1(((api.Dataset response) { |
| 4798 checkDataset(response); | 4798 checkDataset(response); |
| 4799 }))); | 4799 }))); |
| 4800 }); | 4800 }); |
| 4801 | 4801 |
| 4802 unittest.test("method--setIamPolicy", () { | 4802 unittest.test("method--setIamPolicy", () { |
| 4803 | 4803 |
| 4804 var mock = new HttpServerMock(); | 4804 var mock = new HttpServerMock(); |
| 4805 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; | 4805 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; |
| 4806 var arg_request = buildSetIamPolicyRequest(); | 4806 var arg_request = buildSetIamPolicyRequest(); |
| 4807 var arg_resource = "foo"; | 4807 var arg_resource = "foo"; |
| 4808 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4808 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4809 var obj = new api.SetIamPolicyRequest.fromJson(json); | 4809 var obj = new api.SetIamPolicyRequest.fromJson(json); |
| 4810 checkSetIamPolicyRequest(obj); | 4810 checkSetIamPolicyRequest(obj); |
| 4811 | 4811 |
| 4812 var path = (req.url).path; | 4812 var path = (req.url).path; |
| 4813 var pathOffset = 0; | 4813 var pathOffset = 0; |
| 4814 var index; | 4814 var index; |
| 4815 var subPart; | 4815 var subPart; |
| 4816 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4816 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4817 pathOffset += 1; | 4817 pathOffset += 1; |
| 4818 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 4818 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 4836 } | 4836 } |
| 4837 } | 4837 } |
| 4838 | 4838 |
| 4839 | 4839 |
| 4840 var h = { | 4840 var h = { |
| 4841 "content-type" : "application/json; charset=utf-8", | 4841 "content-type" : "application/json; charset=utf-8", |
| 4842 }; | 4842 }; |
| 4843 var resp = convert.JSON.encode(buildPolicy()); | 4843 var resp = convert.JSON.encode(buildPolicy()); |
| 4844 return new async.Future.value(stringResponse(200, h, resp)); | 4844 return new async.Future.value(stringResponse(200, h, resp)); |
| 4845 }), true); | 4845 }), true); |
| 4846 res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync(((ap
i.Policy response) { | 4846 res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((a
pi.Policy response) { |
| 4847 checkPolicy(response); | 4847 checkPolicy(response); |
| 4848 }))); | 4848 }))); |
| 4849 }); | 4849 }); |
| 4850 | 4850 |
| 4851 unittest.test("method--testIamPermissions", () { | 4851 unittest.test("method--testIamPermissions", () { |
| 4852 | 4852 |
| 4853 var mock = new HttpServerMock(); | 4853 var mock = new HttpServerMock(); |
| 4854 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; | 4854 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; |
| 4855 var arg_request = buildTestIamPermissionsRequest(); | 4855 var arg_request = buildTestIamPermissionsRequest(); |
| 4856 var arg_resource = "foo"; | 4856 var arg_resource = "foo"; |
| 4857 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4857 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4858 var obj = new api.TestIamPermissionsRequest.fromJson(json); | 4858 var obj = new api.TestIamPermissionsRequest.fromJson(json); |
| 4859 checkTestIamPermissionsRequest(obj); | 4859 checkTestIamPermissionsRequest(obj); |
| 4860 | 4860 |
| 4861 var path = (req.url).path; | 4861 var path = (req.url).path; |
| 4862 var pathOffset = 0; | 4862 var pathOffset = 0; |
| 4863 var index; | 4863 var index; |
| 4864 var subPart; | 4864 var subPart; |
| 4865 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4865 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4866 pathOffset += 1; | 4866 pathOffset += 1; |
| 4867 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 4867 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 4885 } | 4885 } |
| 4886 } | 4886 } |
| 4887 | 4887 |
| 4888 | 4888 |
| 4889 var h = { | 4889 var h = { |
| 4890 "content-type" : "application/json; charset=utf-8", | 4890 "content-type" : "application/json; charset=utf-8", |
| 4891 }; | 4891 }; |
| 4892 var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); | 4892 var resp = convert.JSON.encode(buildTestIamPermissionsResponse()); |
| 4893 return new async.Future.value(stringResponse(200, h, resp)); | 4893 return new async.Future.value(stringResponse(200, h, resp)); |
| 4894 }), true); | 4894 }), true); |
| 4895 res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsyn
c(((api.TestIamPermissionsResponse response) { | 4895 res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsyn
c1(((api.TestIamPermissionsResponse response) { |
| 4896 checkTestIamPermissionsResponse(response); | 4896 checkTestIamPermissionsResponse(response); |
| 4897 }))); | 4897 }))); |
| 4898 }); | 4898 }); |
| 4899 | 4899 |
| 4900 unittest.test("method--undelete", () { | 4900 unittest.test("method--undelete", () { |
| 4901 | 4901 |
| 4902 var mock = new HttpServerMock(); | 4902 var mock = new HttpServerMock(); |
| 4903 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; | 4903 api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; |
| 4904 var arg_request = buildUndeleteDatasetRequest(); | 4904 var arg_request = buildUndeleteDatasetRequest(); |
| 4905 var arg_datasetId = "foo"; | 4905 var arg_datasetId = "foo"; |
| 4906 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4906 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4907 var obj = new api.UndeleteDatasetRequest.fromJson(json); | 4907 var obj = new api.UndeleteDatasetRequest.fromJson(json); |
| 4908 checkUndeleteDatasetRequest(obj); | 4908 checkUndeleteDatasetRequest(obj); |
| 4909 | 4909 |
| 4910 var path = (req.url).path; | 4910 var path = (req.url).path; |
| 4911 var pathOffset = 0; | 4911 var pathOffset = 0; |
| 4912 var index; | 4912 var index; |
| 4913 var subPart; | 4913 var subPart; |
| 4914 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4914 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4915 pathOffset += 1; | 4915 pathOffset += 1; |
| 4916 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/datasets/")); | 4916 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/datasets/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 4940 } | 4940 } |
| 4941 } | 4941 } |
| 4942 | 4942 |
| 4943 | 4943 |
| 4944 var h = { | 4944 var h = { |
| 4945 "content-type" : "application/json; charset=utf-8", | 4945 "content-type" : "application/json; charset=utf-8", |
| 4946 }; | 4946 }; |
| 4947 var resp = convert.JSON.encode(buildDataset()); | 4947 var resp = convert.JSON.encode(buildDataset()); |
| 4948 return new async.Future.value(stringResponse(200, h, resp)); | 4948 return new async.Future.value(stringResponse(200, h, resp)); |
| 4949 }), true); | 4949 }), true); |
| 4950 res.undelete(arg_request, arg_datasetId).then(unittest.expectAsync(((api.D
ataset response) { | 4950 res.undelete(arg_request, arg_datasetId).then(unittest.expectAsync1(((api.
Dataset response) { |
| 4951 checkDataset(response); | 4951 checkDataset(response); |
| 4952 }))); | 4952 }))); |
| 4953 }); | 4953 }); |
| 4954 | 4954 |
| 4955 }); | 4955 }); |
| 4956 | 4956 |
| 4957 | 4957 |
| 4958 unittest.group("resource-OperationsResourceApi", () { | 4958 unittest.group("resource-OperationsResourceApi", () { |
| 4959 unittest.test("method--cancel", () { | 4959 unittest.test("method--cancel", () { |
| 4960 | 4960 |
| 4961 var mock = new HttpServerMock(); | 4961 var mock = new HttpServerMock(); |
| 4962 api.OperationsResourceApi res = new api.GenomicsApi(mock).operations; | 4962 api.OperationsResourceApi res = new api.GenomicsApi(mock).operations; |
| 4963 var arg_request = buildCancelOperationRequest(); | 4963 var arg_request = buildCancelOperationRequest(); |
| 4964 var arg_name = "foo"; | 4964 var arg_name = "foo"; |
| 4965 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 4965 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 4966 var obj = new api.CancelOperationRequest.fromJson(json); | 4966 var obj = new api.CancelOperationRequest.fromJson(json); |
| 4967 checkCancelOperationRequest(obj); | 4967 checkCancelOperationRequest(obj); |
| 4968 | 4968 |
| 4969 var path = (req.url).path; | 4969 var path = (req.url).path; |
| 4970 var pathOffset = 0; | 4970 var pathOffset = 0; |
| 4971 var index; | 4971 var index; |
| 4972 var subPart; | 4972 var subPart; |
| 4973 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 4973 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 4974 pathOffset += 1; | 4974 pathOffset += 1; |
| 4975 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 4975 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 4993 } | 4993 } |
| 4994 } | 4994 } |
| 4995 | 4995 |
| 4996 | 4996 |
| 4997 var h = { | 4997 var h = { |
| 4998 "content-type" : "application/json; charset=utf-8", | 4998 "content-type" : "application/json; charset=utf-8", |
| 4999 }; | 4999 }; |
| 5000 var resp = convert.JSON.encode(buildEmpty()); | 5000 var resp = convert.JSON.encode(buildEmpty()); |
| 5001 return new async.Future.value(stringResponse(200, h, resp)); | 5001 return new async.Future.value(stringResponse(200, h, resp)); |
| 5002 }), true); | 5002 }), true); |
| 5003 res.cancel(arg_request, arg_name).then(unittest.expectAsync(((api.Empty re
sponse) { | 5003 res.cancel(arg_request, arg_name).then(unittest.expectAsync1(((api.Empty r
esponse) { |
| 5004 checkEmpty(response); | 5004 checkEmpty(response); |
| 5005 }))); | 5005 }))); |
| 5006 }); | 5006 }); |
| 5007 | 5007 |
| 5008 unittest.test("method--get", () { | 5008 unittest.test("method--get", () { |
| 5009 | 5009 |
| 5010 var mock = new HttpServerMock(); | 5010 var mock = new HttpServerMock(); |
| 5011 api.OperationsResourceApi res = new api.GenomicsApi(mock).operations; | 5011 api.OperationsResourceApi res = new api.GenomicsApi(mock).operations; |
| 5012 var arg_name = "foo"; | 5012 var arg_name = "foo"; |
| 5013 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5013 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5014 var path = (req.url).path; | 5014 var path = (req.url).path; |
| 5015 var pathOffset = 0; | 5015 var pathOffset = 0; |
| 5016 var index; | 5016 var index; |
| 5017 var subPart; | 5017 var subPart; |
| 5018 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5018 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5019 pathOffset += 1; | 5019 pathOffset += 1; |
| 5020 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 5020 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| 5021 pathOffset += 3; | 5021 pathOffset += 3; |
| 5022 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 5022 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 5023 | 5023 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 5038 } | 5038 } |
| 5039 } | 5039 } |
| 5040 | 5040 |
| 5041 | 5041 |
| 5042 var h = { | 5042 var h = { |
| 5043 "content-type" : "application/json; charset=utf-8", | 5043 "content-type" : "application/json; charset=utf-8", |
| 5044 }; | 5044 }; |
| 5045 var resp = convert.JSON.encode(buildOperation()); | 5045 var resp = convert.JSON.encode(buildOperation()); |
| 5046 return new async.Future.value(stringResponse(200, h, resp)); | 5046 return new async.Future.value(stringResponse(200, h, resp)); |
| 5047 }), true); | 5047 }), true); |
| 5048 res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { | 5048 res.get(arg_name).then(unittest.expectAsync1(((api.Operation response) { |
| 5049 checkOperation(response); | 5049 checkOperation(response); |
| 5050 }))); | 5050 }))); |
| 5051 }); | 5051 }); |
| 5052 | 5052 |
| 5053 unittest.test("method--list", () { | 5053 unittest.test("method--list", () { |
| 5054 | 5054 |
| 5055 var mock = new HttpServerMock(); | 5055 var mock = new HttpServerMock(); |
| 5056 api.OperationsResourceApi res = new api.GenomicsApi(mock).operations; | 5056 api.OperationsResourceApi res = new api.GenomicsApi(mock).operations; |
| 5057 var arg_name = "foo"; | 5057 var arg_name = "foo"; |
| 5058 var arg_filter = "foo"; | 5058 var arg_filter = "foo"; |
| 5059 var arg_pageToken = "foo"; | 5059 var arg_pageToken = "foo"; |
| 5060 var arg_pageSize = 42; | 5060 var arg_pageSize = 42; |
| 5061 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5061 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5062 var path = (req.url).path; | 5062 var path = (req.url).path; |
| 5063 var pathOffset = 0; | 5063 var pathOffset = 0; |
| 5064 var index; | 5064 var index; |
| 5065 var subPart; | 5065 var subPart; |
| 5066 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5066 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5067 pathOffset += 1; | 5067 pathOffset += 1; |
| 5068 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 5068 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| 5069 pathOffset += 3; | 5069 pathOffset += 3; |
| 5070 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 5070 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| 5071 | 5071 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 5089 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 5089 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 5090 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 5090 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
| 5091 | 5091 |
| 5092 | 5092 |
| 5093 var h = { | 5093 var h = { |
| 5094 "content-type" : "application/json; charset=utf-8", | 5094 "content-type" : "application/json; charset=utf-8", |
| 5095 }; | 5095 }; |
| 5096 var resp = convert.JSON.encode(buildListOperationsResponse()); | 5096 var resp = convert.JSON.encode(buildListOperationsResponse()); |
| 5097 return new async.Future.value(stringResponse(200, h, resp)); | 5097 return new async.Future.value(stringResponse(200, h, resp)); |
| 5098 }), true); | 5098 }), true); |
| 5099 res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize:
arg_pageSize).then(unittest.expectAsync(((api.ListOperationsResponse response)
{ | 5099 res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize:
arg_pageSize).then(unittest.expectAsync1(((api.ListOperationsResponse response)
{ |
| 5100 checkListOperationsResponse(response); | 5100 checkListOperationsResponse(response); |
| 5101 }))); | 5101 }))); |
| 5102 }); | 5102 }); |
| 5103 | 5103 |
| 5104 }); | 5104 }); |
| 5105 | 5105 |
| 5106 | 5106 |
| 5107 unittest.group("resource-ReadgroupsetsResourceApi", () { | 5107 unittest.group("resource-ReadgroupsetsResourceApi", () { |
| 5108 unittest.test("method--delete", () { | 5108 unittest.test("method--delete", () { |
| 5109 | 5109 |
| 5110 var mock = new HttpServerMock(); | 5110 var mock = new HttpServerMock(); |
| 5111 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; | 5111 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; |
| 5112 var arg_readGroupSetId = "foo"; | 5112 var arg_readGroupSetId = "foo"; |
| 5113 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5113 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5114 var path = (req.url).path; | 5114 var path = (req.url).path; |
| 5115 var pathOffset = 0; | 5115 var pathOffset = 0; |
| 5116 var index; | 5116 var index; |
| 5117 var subPart; | 5117 var subPart; |
| 5118 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5118 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5119 pathOffset += 1; | 5119 pathOffset += 1; |
| 5120 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/readgroupsets/")); | 5120 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/readgroupsets/")); |
| 5121 pathOffset += 17; | 5121 pathOffset += 17; |
| 5122 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 5122 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 5123 pathOffset = path.length; | 5123 pathOffset = path.length; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 5140 } | 5140 } |
| 5141 } | 5141 } |
| 5142 | 5142 |
| 5143 | 5143 |
| 5144 var h = { | 5144 var h = { |
| 5145 "content-type" : "application/json; charset=utf-8", | 5145 "content-type" : "application/json; charset=utf-8", |
| 5146 }; | 5146 }; |
| 5147 var resp = convert.JSON.encode(buildEmpty()); | 5147 var resp = convert.JSON.encode(buildEmpty()); |
| 5148 return new async.Future.value(stringResponse(200, h, resp)); | 5148 return new async.Future.value(stringResponse(200, h, resp)); |
| 5149 }), true); | 5149 }), true); |
| 5150 res.delete(arg_readGroupSetId).then(unittest.expectAsync(((api.Empty respo
nse) { | 5150 res.delete(arg_readGroupSetId).then(unittest.expectAsync1(((api.Empty resp
onse) { |
| 5151 checkEmpty(response); | 5151 checkEmpty(response); |
| 5152 }))); | 5152 }))); |
| 5153 }); | 5153 }); |
| 5154 | 5154 |
| 5155 unittest.test("method--export", () { | 5155 unittest.test("method--export", () { |
| 5156 | 5156 |
| 5157 var mock = new HttpServerMock(); | 5157 var mock = new HttpServerMock(); |
| 5158 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; | 5158 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; |
| 5159 var arg_request = buildExportReadGroupSetRequest(); | 5159 var arg_request = buildExportReadGroupSetRequest(); |
| 5160 var arg_readGroupSetId = "foo"; | 5160 var arg_readGroupSetId = "foo"; |
| 5161 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5161 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5162 var obj = new api.ExportReadGroupSetRequest.fromJson(json); | 5162 var obj = new api.ExportReadGroupSetRequest.fromJson(json); |
| 5163 checkExportReadGroupSetRequest(obj); | 5163 checkExportReadGroupSetRequest(obj); |
| 5164 | 5164 |
| 5165 var path = (req.url).path; | 5165 var path = (req.url).path; |
| 5166 var pathOffset = 0; | 5166 var pathOffset = 0; |
| 5167 var index; | 5167 var index; |
| 5168 var subPart; | 5168 var subPart; |
| 5169 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5169 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5170 pathOffset += 1; | 5170 pathOffset += 1; |
| 5171 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/readgroupsets/")); | 5171 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/readgroupsets/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 5195 } | 5195 } |
| 5196 } | 5196 } |
| 5197 | 5197 |
| 5198 | 5198 |
| 5199 var h = { | 5199 var h = { |
| 5200 "content-type" : "application/json; charset=utf-8", | 5200 "content-type" : "application/json; charset=utf-8", |
| 5201 }; | 5201 }; |
| 5202 var resp = convert.JSON.encode(buildOperation()); | 5202 var resp = convert.JSON.encode(buildOperation()); |
| 5203 return new async.Future.value(stringResponse(200, h, resp)); | 5203 return new async.Future.value(stringResponse(200, h, resp)); |
| 5204 }), true); | 5204 }), true); |
| 5205 res.export(arg_request, arg_readGroupSetId).then(unittest.expectAsync(((ap
i.Operation response) { | 5205 res.export(arg_request, arg_readGroupSetId).then(unittest.expectAsync1(((a
pi.Operation response) { |
| 5206 checkOperation(response); | 5206 checkOperation(response); |
| 5207 }))); | 5207 }))); |
| 5208 }); | 5208 }); |
| 5209 | 5209 |
| 5210 unittest.test("method--get", () { | 5210 unittest.test("method--get", () { |
| 5211 | 5211 |
| 5212 var mock = new HttpServerMock(); | 5212 var mock = new HttpServerMock(); |
| 5213 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; | 5213 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; |
| 5214 var arg_readGroupSetId = "foo"; | 5214 var arg_readGroupSetId = "foo"; |
| 5215 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5215 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5216 var path = (req.url).path; | 5216 var path = (req.url).path; |
| 5217 var pathOffset = 0; | 5217 var pathOffset = 0; |
| 5218 var index; | 5218 var index; |
| 5219 var subPart; | 5219 var subPart; |
| 5220 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5220 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5221 pathOffset += 1; | 5221 pathOffset += 1; |
| 5222 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/readgroupsets/")); | 5222 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/readgroupsets/")); |
| 5223 pathOffset += 17; | 5223 pathOffset += 17; |
| 5224 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 5224 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 5225 pathOffset = path.length; | 5225 pathOffset = path.length; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 5242 } | 5242 } |
| 5243 } | 5243 } |
| 5244 | 5244 |
| 5245 | 5245 |
| 5246 var h = { | 5246 var h = { |
| 5247 "content-type" : "application/json; charset=utf-8", | 5247 "content-type" : "application/json; charset=utf-8", |
| 5248 }; | 5248 }; |
| 5249 var resp = convert.JSON.encode(buildReadGroupSet()); | 5249 var resp = convert.JSON.encode(buildReadGroupSet()); |
| 5250 return new async.Future.value(stringResponse(200, h, resp)); | 5250 return new async.Future.value(stringResponse(200, h, resp)); |
| 5251 }), true); | 5251 }), true); |
| 5252 res.get(arg_readGroupSetId).then(unittest.expectAsync(((api.ReadGroupSet r
esponse) { | 5252 res.get(arg_readGroupSetId).then(unittest.expectAsync1(((api.ReadGroupSet
response) { |
| 5253 checkReadGroupSet(response); | 5253 checkReadGroupSet(response); |
| 5254 }))); | 5254 }))); |
| 5255 }); | 5255 }); |
| 5256 | 5256 |
| 5257 unittest.test("method--import", () { | 5257 unittest.test("method--import", () { |
| 5258 | 5258 |
| 5259 var mock = new HttpServerMock(); | 5259 var mock = new HttpServerMock(); |
| 5260 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; | 5260 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; |
| 5261 var arg_request = buildImportReadGroupSetsRequest(); | 5261 var arg_request = buildImportReadGroupSetsRequest(); |
| 5262 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5262 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5263 var obj = new api.ImportReadGroupSetsRequest.fromJson(json); | 5263 var obj = new api.ImportReadGroupSetsRequest.fromJson(json); |
| 5264 checkImportReadGroupSetsRequest(obj); | 5264 checkImportReadGroupSetsRequest(obj); |
| 5265 | 5265 |
| 5266 var path = (req.url).path; | 5266 var path = (req.url).path; |
| 5267 var pathOffset = 0; | 5267 var pathOffset = 0; |
| 5268 var index; | 5268 var index; |
| 5269 var subPart; | 5269 var subPart; |
| 5270 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5270 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5271 pathOffset += 1; | 5271 pathOffset += 1; |
| 5272 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("v1/readgroupsets:import")); | 5272 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("v1/readgroupsets:import")); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 5289 } | 5289 } |
| 5290 } | 5290 } |
| 5291 | 5291 |
| 5292 | 5292 |
| 5293 var h = { | 5293 var h = { |
| 5294 "content-type" : "application/json; charset=utf-8", | 5294 "content-type" : "application/json; charset=utf-8", |
| 5295 }; | 5295 }; |
| 5296 var resp = convert.JSON.encode(buildOperation()); | 5296 var resp = convert.JSON.encode(buildOperation()); |
| 5297 return new async.Future.value(stringResponse(200, h, resp)); | 5297 return new async.Future.value(stringResponse(200, h, resp)); |
| 5298 }), true); | 5298 }), true); |
| 5299 res.import(arg_request).then(unittest.expectAsync(((api.Operation response
) { | 5299 res.import(arg_request).then(unittest.expectAsync1(((api.Operation respons
e) { |
| 5300 checkOperation(response); | 5300 checkOperation(response); |
| 5301 }))); | 5301 }))); |
| 5302 }); | 5302 }); |
| 5303 | 5303 |
| 5304 unittest.test("method--patch", () { | 5304 unittest.test("method--patch", () { |
| 5305 | 5305 |
| 5306 var mock = new HttpServerMock(); | 5306 var mock = new HttpServerMock(); |
| 5307 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; | 5307 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; |
| 5308 var arg_request = buildReadGroupSet(); | 5308 var arg_request = buildReadGroupSet(); |
| 5309 var arg_readGroupSetId = "foo"; | 5309 var arg_readGroupSetId = "foo"; |
| 5310 var arg_updateMask = "foo"; | 5310 var arg_updateMask = "foo"; |
| 5311 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5311 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5312 var obj = new api.ReadGroupSet.fromJson(json); | 5312 var obj = new api.ReadGroupSet.fromJson(json); |
| 5313 checkReadGroupSet(obj); | 5313 checkReadGroupSet(obj); |
| 5314 | 5314 |
| 5315 var path = (req.url).path; | 5315 var path = (req.url).path; |
| 5316 var pathOffset = 0; | 5316 var pathOffset = 0; |
| 5317 var index; | 5317 var index; |
| 5318 var subPart; | 5318 var subPart; |
| 5319 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5319 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5320 pathOffset += 1; | 5320 pathOffset += 1; |
| 5321 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/readgroupsets/")); | 5321 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/readgroupsets/")); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 5342 } | 5342 } |
| 5343 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); | 5343 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); |
| 5344 | 5344 |
| 5345 | 5345 |
| 5346 var h = { | 5346 var h = { |
| 5347 "content-type" : "application/json; charset=utf-8", | 5347 "content-type" : "application/json; charset=utf-8", |
| 5348 }; | 5348 }; |
| 5349 var resp = convert.JSON.encode(buildReadGroupSet()); | 5349 var resp = convert.JSON.encode(buildReadGroupSet()); |
| 5350 return new async.Future.value(stringResponse(200, h, resp)); | 5350 return new async.Future.value(stringResponse(200, h, resp)); |
| 5351 }), true); | 5351 }), true); |
| 5352 res.patch(arg_request, arg_readGroupSetId, updateMask: arg_updateMask).the
n(unittest.expectAsync(((api.ReadGroupSet response) { | 5352 res.patch(arg_request, arg_readGroupSetId, updateMask: arg_updateMask).the
n(unittest.expectAsync1(((api.ReadGroupSet response) { |
| 5353 checkReadGroupSet(response); | 5353 checkReadGroupSet(response); |
| 5354 }))); | 5354 }))); |
| 5355 }); | 5355 }); |
| 5356 | 5356 |
| 5357 unittest.test("method--search", () { | 5357 unittest.test("method--search", () { |
| 5358 | 5358 |
| 5359 var mock = new HttpServerMock(); | 5359 var mock = new HttpServerMock(); |
| 5360 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; | 5360 api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets
; |
| 5361 var arg_request = buildSearchReadGroupSetsRequest(); | 5361 var arg_request = buildSearchReadGroupSetsRequest(); |
| 5362 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5362 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5363 var obj = new api.SearchReadGroupSetsRequest.fromJson(json); | 5363 var obj = new api.SearchReadGroupSetsRequest.fromJson(json); |
| 5364 checkSearchReadGroupSetsRequest(obj); | 5364 checkSearchReadGroupSetsRequest(obj); |
| 5365 | 5365 |
| 5366 var path = (req.url).path; | 5366 var path = (req.url).path; |
| 5367 var pathOffset = 0; | 5367 var pathOffset = 0; |
| 5368 var index; | 5368 var index; |
| 5369 var subPart; | 5369 var subPart; |
| 5370 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5370 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5371 pathOffset += 1; | 5371 pathOffset += 1; |
| 5372 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("v1/readgroupsets/search")); | 5372 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("v1/readgroupsets/search")); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 5389 } | 5389 } |
| 5390 } | 5390 } |
| 5391 | 5391 |
| 5392 | 5392 |
| 5393 var h = { | 5393 var h = { |
| 5394 "content-type" : "application/json; charset=utf-8", | 5394 "content-type" : "application/json; charset=utf-8", |
| 5395 }; | 5395 }; |
| 5396 var resp = convert.JSON.encode(buildSearchReadGroupSetsResponse()); | 5396 var resp = convert.JSON.encode(buildSearchReadGroupSetsResponse()); |
| 5397 return new async.Future.value(stringResponse(200, h, resp)); | 5397 return new async.Future.value(stringResponse(200, h, resp)); |
| 5398 }), true); | 5398 }), true); |
| 5399 res.search(arg_request).then(unittest.expectAsync(((api.SearchReadGroupSet
sResponse response) { | 5399 res.search(arg_request).then(unittest.expectAsync1(((api.SearchReadGroupSe
tsResponse response) { |
| 5400 checkSearchReadGroupSetsResponse(response); | 5400 checkSearchReadGroupSetsResponse(response); |
| 5401 }))); | 5401 }))); |
| 5402 }); | 5402 }); |
| 5403 | 5403 |
| 5404 }); | 5404 }); |
| 5405 | 5405 |
| 5406 | 5406 |
| 5407 unittest.group("resource-ReadgroupsetsCoveragebucketsResourceApi", () { | 5407 unittest.group("resource-ReadgroupsetsCoveragebucketsResourceApi", () { |
| 5408 unittest.test("method--list", () { | 5408 unittest.test("method--list", () { |
| 5409 | 5409 |
| 5410 var mock = new HttpServerMock(); | 5410 var mock = new HttpServerMock(); |
| 5411 api.ReadgroupsetsCoveragebucketsResourceApi res = new api.GenomicsApi(mock
).readgroupsets.coveragebuckets; | 5411 api.ReadgroupsetsCoveragebucketsResourceApi res = new api.GenomicsApi(mock
).readgroupsets.coveragebuckets; |
| 5412 var arg_readGroupSetId = "foo"; | 5412 var arg_readGroupSetId = "foo"; |
| 5413 var arg_end = "foo"; |
| 5414 var arg_pageToken = "foo"; |
| 5413 var arg_pageSize = 42; | 5415 var arg_pageSize = 42; |
| 5414 var arg_start = "foo"; | 5416 var arg_start = "foo"; |
| 5415 var arg_targetBucketWidth = "foo"; | 5417 var arg_targetBucketWidth = "foo"; |
| 5416 var arg_referenceName = "foo"; | 5418 var arg_referenceName = "foo"; |
| 5417 var arg_end = "foo"; | 5419 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5418 var arg_pageToken = "foo"; | |
| 5419 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
| 5420 var path = (req.url).path; | 5420 var path = (req.url).path; |
| 5421 var pathOffset = 0; | 5421 var pathOffset = 0; |
| 5422 var index; | 5422 var index; |
| 5423 var subPart; | 5423 var subPart; |
| 5424 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5424 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5425 pathOffset += 1; | 5425 pathOffset += 1; |
| 5426 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/readgroupsets/")); | 5426 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/readgroupsets/")); |
| 5427 pathOffset += 17; | 5427 pathOffset += 17; |
| 5428 index = path.indexOf("/coveragebuckets", pathOffset); | 5428 index = path.indexOf("/coveragebuckets", pathOffset); |
| 5429 unittest.expect(index >= 0, unittest.isTrue); | 5429 unittest.expect(index >= 0, unittest.isTrue); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 5442 if (n == "false") return false; | 5442 if (n == "false") return false; |
| 5443 if (n == null) return null; | 5443 if (n == null) return null; |
| 5444 throw new core.ArgumentError("Invalid boolean: $n"); | 5444 throw new core.ArgumentError("Invalid boolean: $n"); |
| 5445 } | 5445 } |
| 5446 if (query.length > 0) { | 5446 if (query.length > 0) { |
| 5447 for (var part in query.split("&")) { | 5447 for (var part in query.split("&")) { |
| 5448 var keyvalue = part.split("="); | 5448 var keyvalue = part.split("="); |
| 5449 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 5449 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
| 5450 } | 5450 } |
| 5451 } | 5451 } |
| 5452 unittest.expect(queryMap["end"].first, unittest.equals(arg_end)); |
| 5453 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 5452 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | 5454 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
| 5453 unittest.expect(queryMap["start"].first, unittest.equals(arg_start)); | 5455 unittest.expect(queryMap["start"].first, unittest.equals(arg_start)); |
| 5454 unittest.expect(queryMap["targetBucketWidth"].first, unittest.equals(arg
_targetBucketWidth)); | 5456 unittest.expect(queryMap["targetBucketWidth"].first, unittest.equals(arg
_targetBucketWidth)); |
| 5455 unittest.expect(queryMap["referenceName"].first, unittest.equals(arg_ref
erenceName)); | 5457 unittest.expect(queryMap["referenceName"].first, unittest.equals(arg_ref
erenceName)); |
| 5456 unittest.expect(queryMap["end"].first, unittest.equals(arg_end)); | |
| 5457 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | |
| 5458 | 5458 |
| 5459 | 5459 |
| 5460 var h = { | 5460 var h = { |
| 5461 "content-type" : "application/json; charset=utf-8", | 5461 "content-type" : "application/json; charset=utf-8", |
| 5462 }; | 5462 }; |
| 5463 var resp = convert.JSON.encode(buildListCoverageBucketsResponse()); | 5463 var resp = convert.JSON.encode(buildListCoverageBucketsResponse()); |
| 5464 return new async.Future.value(stringResponse(200, h, resp)); | 5464 return new async.Future.value(stringResponse(200, h, resp)); |
| 5465 }), true); | 5465 }), true); |
| 5466 res.list(arg_readGroupSetId, pageSize: arg_pageSize, start: arg_start, tar
getBucketWidth: arg_targetBucketWidth, referenceName: arg_referenceName, end: ar
g_end, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListCoverageBuc
ketsResponse response) { | 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) { |
| 5467 checkListCoverageBucketsResponse(response); | 5467 checkListCoverageBucketsResponse(response); |
| 5468 }))); | 5468 }))); |
| 5469 }); | 5469 }); |
| 5470 | 5470 |
| 5471 }); | 5471 }); |
| 5472 | 5472 |
| 5473 | 5473 |
| 5474 unittest.group("resource-ReadsResourceApi", () { | 5474 unittest.group("resource-ReadsResourceApi", () { |
| 5475 unittest.test("method--search", () { | 5475 unittest.test("method--search", () { |
| 5476 | 5476 |
| 5477 var mock = new HttpServerMock(); | 5477 var mock = new HttpServerMock(); |
| 5478 api.ReadsResourceApi res = new api.GenomicsApi(mock).reads; | 5478 api.ReadsResourceApi res = new api.GenomicsApi(mock).reads; |
| 5479 var arg_request = buildSearchReadsRequest(); | 5479 var arg_request = buildSearchReadsRequest(); |
| 5480 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5480 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5481 var obj = new api.SearchReadsRequest.fromJson(json); | 5481 var obj = new api.SearchReadsRequest.fromJson(json); |
| 5482 checkSearchReadsRequest(obj); | 5482 checkSearchReadsRequest(obj); |
| 5483 | 5483 |
| 5484 var path = (req.url).path; | 5484 var path = (req.url).path; |
| 5485 var pathOffset = 0; | 5485 var pathOffset = 0; |
| 5486 var index; | 5486 var index; |
| 5487 var subPart; | 5487 var subPart; |
| 5488 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5488 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5489 pathOffset += 1; | 5489 pathOffset += 1; |
| 5490 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("v1/reads/search")); | 5490 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("v1/reads/search")); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 5507 } | 5507 } |
| 5508 } | 5508 } |
| 5509 | 5509 |
| 5510 | 5510 |
| 5511 var h = { | 5511 var h = { |
| 5512 "content-type" : "application/json; charset=utf-8", | 5512 "content-type" : "application/json; charset=utf-8", |
| 5513 }; | 5513 }; |
| 5514 var resp = convert.JSON.encode(buildSearchReadsResponse()); | 5514 var resp = convert.JSON.encode(buildSearchReadsResponse()); |
| 5515 return new async.Future.value(stringResponse(200, h, resp)); | 5515 return new async.Future.value(stringResponse(200, h, resp)); |
| 5516 }), true); | 5516 }), true); |
| 5517 res.search(arg_request).then(unittest.expectAsync(((api.SearchReadsRespons
e response) { | 5517 res.search(arg_request).then(unittest.expectAsync1(((api.SearchReadsRespon
se response) { |
| 5518 checkSearchReadsResponse(response); | 5518 checkSearchReadsResponse(response); |
| 5519 }))); | 5519 }))); |
| 5520 }); | 5520 }); |
| 5521 | 5521 |
| 5522 }); | 5522 }); |
| 5523 | 5523 |
| 5524 | 5524 |
| 5525 unittest.group("resource-ReferencesResourceApi", () { | 5525 unittest.group("resource-ReferencesResourceApi", () { |
| 5526 unittest.test("method--get", () { | 5526 unittest.test("method--get", () { |
| 5527 | 5527 |
| 5528 var mock = new HttpServerMock(); | 5528 var mock = new HttpServerMock(); |
| 5529 api.ReferencesResourceApi res = new api.GenomicsApi(mock).references; | 5529 api.ReferencesResourceApi res = new api.GenomicsApi(mock).references; |
| 5530 var arg_referenceId = "foo"; | 5530 var arg_referenceId = "foo"; |
| 5531 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5531 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5532 var path = (req.url).path; | 5532 var path = (req.url).path; |
| 5533 var pathOffset = 0; | 5533 var pathOffset = 0; |
| 5534 var index; | 5534 var index; |
| 5535 var subPart; | 5535 var subPart; |
| 5536 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5536 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5537 pathOffset += 1; | 5537 pathOffset += 1; |
| 5538 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1/references/")); | 5538 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1/references/")); |
| 5539 pathOffset += 14; | 5539 pathOffset += 14; |
| 5540 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 5540 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 5541 pathOffset = path.length; | 5541 pathOffset = path.length; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 5558 } | 5558 } |
| 5559 } | 5559 } |
| 5560 | 5560 |
| 5561 | 5561 |
| 5562 var h = { | 5562 var h = { |
| 5563 "content-type" : "application/json; charset=utf-8", | 5563 "content-type" : "application/json; charset=utf-8", |
| 5564 }; | 5564 }; |
| 5565 var resp = convert.JSON.encode(buildReference()); | 5565 var resp = convert.JSON.encode(buildReference()); |
| 5566 return new async.Future.value(stringResponse(200, h, resp)); | 5566 return new async.Future.value(stringResponse(200, h, resp)); |
| 5567 }), true); | 5567 }), true); |
| 5568 res.get(arg_referenceId).then(unittest.expectAsync(((api.Reference respons
e) { | 5568 res.get(arg_referenceId).then(unittest.expectAsync1(((api.Reference respon
se) { |
| 5569 checkReference(response); | 5569 checkReference(response); |
| 5570 }))); | 5570 }))); |
| 5571 }); | 5571 }); |
| 5572 | 5572 |
| 5573 unittest.test("method--search", () { | 5573 unittest.test("method--search", () { |
| 5574 | 5574 |
| 5575 var mock = new HttpServerMock(); | 5575 var mock = new HttpServerMock(); |
| 5576 api.ReferencesResourceApi res = new api.GenomicsApi(mock).references; | 5576 api.ReferencesResourceApi res = new api.GenomicsApi(mock).references; |
| 5577 var arg_request = buildSearchReferencesRequest(); | 5577 var arg_request = buildSearchReferencesRequest(); |
| 5578 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5578 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5579 var obj = new api.SearchReferencesRequest.fromJson(json); | 5579 var obj = new api.SearchReferencesRequest.fromJson(json); |
| 5580 checkSearchReferencesRequest(obj); | 5580 checkSearchReferencesRequest(obj); |
| 5581 | 5581 |
| 5582 var path = (req.url).path; | 5582 var path = (req.url).path; |
| 5583 var pathOffset = 0; | 5583 var pathOffset = 0; |
| 5584 var index; | 5584 var index; |
| 5585 var subPart; | 5585 var subPart; |
| 5586 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5586 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5587 pathOffset += 1; | 5587 pathOffset += 1; |
| 5588 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("v1/references/search")); | 5588 unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.eq
uals("v1/references/search")); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 5605 } | 5605 } |
| 5606 } | 5606 } |
| 5607 | 5607 |
| 5608 | 5608 |
| 5609 var h = { | 5609 var h = { |
| 5610 "content-type" : "application/json; charset=utf-8", | 5610 "content-type" : "application/json; charset=utf-8", |
| 5611 }; | 5611 }; |
| 5612 var resp = convert.JSON.encode(buildSearchReferencesResponse()); | 5612 var resp = convert.JSON.encode(buildSearchReferencesResponse()); |
| 5613 return new async.Future.value(stringResponse(200, h, resp)); | 5613 return new async.Future.value(stringResponse(200, h, resp)); |
| 5614 }), true); | 5614 }), true); |
| 5615 res.search(arg_request).then(unittest.expectAsync(((api.SearchReferencesRe
sponse response) { | 5615 res.search(arg_request).then(unittest.expectAsync1(((api.SearchReferencesR
esponse response) { |
| 5616 checkSearchReferencesResponse(response); | 5616 checkSearchReferencesResponse(response); |
| 5617 }))); | 5617 }))); |
| 5618 }); | 5618 }); |
| 5619 | 5619 |
| 5620 }); | 5620 }); |
| 5621 | 5621 |
| 5622 | 5622 |
| 5623 unittest.group("resource-ReferencesBasesResourceApi", () { | 5623 unittest.group("resource-ReferencesBasesResourceApi", () { |
| 5624 unittest.test("method--list", () { | 5624 unittest.test("method--list", () { |
| 5625 | 5625 |
| 5626 var mock = new HttpServerMock(); | 5626 var mock = new HttpServerMock(); |
| 5627 api.ReferencesBasesResourceApi res = new api.GenomicsApi(mock).references.
bases; | 5627 api.ReferencesBasesResourceApi res = new api.GenomicsApi(mock).references.
bases; |
| 5628 var arg_referenceId = "foo"; | 5628 var arg_referenceId = "foo"; |
| 5629 var arg_pageSize = 42; | 5629 var arg_pageSize = 42; |
| 5630 var arg_start = "foo"; | 5630 var arg_start = "foo"; |
| 5631 var arg_end = "foo"; | 5631 var arg_end = "foo"; |
| 5632 var arg_pageToken = "foo"; | 5632 var arg_pageToken = "foo"; |
| 5633 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5633 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5634 var path = (req.url).path; | 5634 var path = (req.url).path; |
| 5635 var pathOffset = 0; | 5635 var pathOffset = 0; |
| 5636 var index; | 5636 var index; |
| 5637 var subPart; | 5637 var subPart; |
| 5638 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5638 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5639 pathOffset += 1; | 5639 pathOffset += 1; |
| 5640 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1/references/")); | 5640 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1/references/")); |
| 5641 pathOffset += 14; | 5641 pathOffset += 14; |
| 5642 index = path.indexOf("/bases", pathOffset); | 5642 index = path.indexOf("/bases", pathOffset); |
| 5643 unittest.expect(index >= 0, unittest.isTrue); | 5643 unittest.expect(index >= 0, unittest.isTrue); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 5668 unittest.expect(queryMap["end"].first, unittest.equals(arg_end)); | 5668 unittest.expect(queryMap["end"].first, unittest.equals(arg_end)); |
| 5669 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 5669 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
| 5670 | 5670 |
| 5671 | 5671 |
| 5672 var h = { | 5672 var h = { |
| 5673 "content-type" : "application/json; charset=utf-8", | 5673 "content-type" : "application/json; charset=utf-8", |
| 5674 }; | 5674 }; |
| 5675 var resp = convert.JSON.encode(buildListBasesResponse()); | 5675 var resp = convert.JSON.encode(buildListBasesResponse()); |
| 5676 return new async.Future.value(stringResponse(200, h, resp)); | 5676 return new async.Future.value(stringResponse(200, h, resp)); |
| 5677 }), true); | 5677 }), true); |
| 5678 res.list(arg_referenceId, pageSize: arg_pageSize, start: arg_start, end: a
rg_end, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListBasesRespo
nse response) { | 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) { |
| 5679 checkListBasesResponse(response); | 5679 checkListBasesResponse(response); |
| 5680 }))); | 5680 }))); |
| 5681 }); | 5681 }); |
| 5682 | 5682 |
| 5683 }); | 5683 }); |
| 5684 | 5684 |
| 5685 | 5685 |
| 5686 unittest.group("resource-ReferencesetsResourceApi", () { | 5686 unittest.group("resource-ReferencesetsResourceApi", () { |
| 5687 unittest.test("method--get", () { | 5687 unittest.test("method--get", () { |
| 5688 | 5688 |
| 5689 var mock = new HttpServerMock(); | 5689 var mock = new HttpServerMock(); |
| 5690 api.ReferencesetsResourceApi res = new api.GenomicsApi(mock).referencesets
; | 5690 api.ReferencesetsResourceApi res = new api.GenomicsApi(mock).referencesets
; |
| 5691 var arg_referenceSetId = "foo"; | 5691 var arg_referenceSetId = "foo"; |
| 5692 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5692 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5693 var path = (req.url).path; | 5693 var path = (req.url).path; |
| 5694 var pathOffset = 0; | 5694 var pathOffset = 0; |
| 5695 var index; | 5695 var index; |
| 5696 var subPart; | 5696 var subPart; |
| 5697 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5697 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5698 pathOffset += 1; | 5698 pathOffset += 1; |
| 5699 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/referencesets/")); | 5699 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/referencesets/")); |
| 5700 pathOffset += 17; | 5700 pathOffset += 17; |
| 5701 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 5701 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 5702 pathOffset = path.length; | 5702 pathOffset = path.length; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 5719 } | 5719 } |
| 5720 } | 5720 } |
| 5721 | 5721 |
| 5722 | 5722 |
| 5723 var h = { | 5723 var h = { |
| 5724 "content-type" : "application/json; charset=utf-8", | 5724 "content-type" : "application/json; charset=utf-8", |
| 5725 }; | 5725 }; |
| 5726 var resp = convert.JSON.encode(buildReferenceSet()); | 5726 var resp = convert.JSON.encode(buildReferenceSet()); |
| 5727 return new async.Future.value(stringResponse(200, h, resp)); | 5727 return new async.Future.value(stringResponse(200, h, resp)); |
| 5728 }), true); | 5728 }), true); |
| 5729 res.get(arg_referenceSetId).then(unittest.expectAsync(((api.ReferenceSet r
esponse) { | 5729 res.get(arg_referenceSetId).then(unittest.expectAsync1(((api.ReferenceSet
response) { |
| 5730 checkReferenceSet(response); | 5730 checkReferenceSet(response); |
| 5731 }))); | 5731 }))); |
| 5732 }); | 5732 }); |
| 5733 | 5733 |
| 5734 unittest.test("method--search", () { | 5734 unittest.test("method--search", () { |
| 5735 | 5735 |
| 5736 var mock = new HttpServerMock(); | 5736 var mock = new HttpServerMock(); |
| 5737 api.ReferencesetsResourceApi res = new api.GenomicsApi(mock).referencesets
; | 5737 api.ReferencesetsResourceApi res = new api.GenomicsApi(mock).referencesets
; |
| 5738 var arg_request = buildSearchReferenceSetsRequest(); | 5738 var arg_request = buildSearchReferenceSetsRequest(); |
| 5739 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5739 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5740 var obj = new api.SearchReferenceSetsRequest.fromJson(json); | 5740 var obj = new api.SearchReferenceSetsRequest.fromJson(json); |
| 5741 checkSearchReferenceSetsRequest(obj); | 5741 checkSearchReferenceSetsRequest(obj); |
| 5742 | 5742 |
| 5743 var path = (req.url).path; | 5743 var path = (req.url).path; |
| 5744 var pathOffset = 0; | 5744 var pathOffset = 0; |
| 5745 var index; | 5745 var index; |
| 5746 var subPart; | 5746 var subPart; |
| 5747 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5747 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5748 pathOffset += 1; | 5748 pathOffset += 1; |
| 5749 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("v1/referencesets/search")); | 5749 unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.eq
uals("v1/referencesets/search")); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 5766 } | 5766 } |
| 5767 } | 5767 } |
| 5768 | 5768 |
| 5769 | 5769 |
| 5770 var h = { | 5770 var h = { |
| 5771 "content-type" : "application/json; charset=utf-8", | 5771 "content-type" : "application/json; charset=utf-8", |
| 5772 }; | 5772 }; |
| 5773 var resp = convert.JSON.encode(buildSearchReferenceSetsResponse()); | 5773 var resp = convert.JSON.encode(buildSearchReferenceSetsResponse()); |
| 5774 return new async.Future.value(stringResponse(200, h, resp)); | 5774 return new async.Future.value(stringResponse(200, h, resp)); |
| 5775 }), true); | 5775 }), true); |
| 5776 res.search(arg_request).then(unittest.expectAsync(((api.SearchReferenceSet
sResponse response) { | 5776 res.search(arg_request).then(unittest.expectAsync1(((api.SearchReferenceSe
tsResponse response) { |
| 5777 checkSearchReferenceSetsResponse(response); | 5777 checkSearchReferenceSetsResponse(response); |
| 5778 }))); | 5778 }))); |
| 5779 }); | 5779 }); |
| 5780 | 5780 |
| 5781 }); | 5781 }); |
| 5782 | 5782 |
| 5783 | 5783 |
| 5784 unittest.group("resource-VariantsResourceApi", () { | 5784 unittest.group("resource-VariantsResourceApi", () { |
| 5785 unittest.test("method--create", () { | 5785 unittest.test("method--create", () { |
| 5786 | 5786 |
| 5787 var mock = new HttpServerMock(); | 5787 var mock = new HttpServerMock(); |
| 5788 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; | 5788 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; |
| 5789 var arg_request = buildVariant(); | 5789 var arg_request = buildVariant(); |
| 5790 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5790 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5791 var obj = new api.Variant.fromJson(json); | 5791 var obj = new api.Variant.fromJson(json); |
| 5792 checkVariant(obj); | 5792 checkVariant(obj); |
| 5793 | 5793 |
| 5794 var path = (req.url).path; | 5794 var path = (req.url).path; |
| 5795 var pathOffset = 0; | 5795 var pathOffset = 0; |
| 5796 var index; | 5796 var index; |
| 5797 var subPart; | 5797 var subPart; |
| 5798 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5798 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5799 pathOffset += 1; | 5799 pathOffset += 1; |
| 5800 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("v1/variants")); | 5800 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq
uals("v1/variants")); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 5817 } | 5817 } |
| 5818 } | 5818 } |
| 5819 | 5819 |
| 5820 | 5820 |
| 5821 var h = { | 5821 var h = { |
| 5822 "content-type" : "application/json; charset=utf-8", | 5822 "content-type" : "application/json; charset=utf-8", |
| 5823 }; | 5823 }; |
| 5824 var resp = convert.JSON.encode(buildVariant()); | 5824 var resp = convert.JSON.encode(buildVariant()); |
| 5825 return new async.Future.value(stringResponse(200, h, resp)); | 5825 return new async.Future.value(stringResponse(200, h, resp)); |
| 5826 }), true); | 5826 }), true); |
| 5827 res.create(arg_request).then(unittest.expectAsync(((api.Variant response)
{ | 5827 res.create(arg_request).then(unittest.expectAsync1(((api.Variant response)
{ |
| 5828 checkVariant(response); | 5828 checkVariant(response); |
| 5829 }))); | 5829 }))); |
| 5830 }); | 5830 }); |
| 5831 | 5831 |
| 5832 unittest.test("method--delete", () { | 5832 unittest.test("method--delete", () { |
| 5833 | 5833 |
| 5834 var mock = new HttpServerMock(); | 5834 var mock = new HttpServerMock(); |
| 5835 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; | 5835 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; |
| 5836 var arg_variantId = "foo"; | 5836 var arg_variantId = "foo"; |
| 5837 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5837 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5838 var path = (req.url).path; | 5838 var path = (req.url).path; |
| 5839 var pathOffset = 0; | 5839 var pathOffset = 0; |
| 5840 var index; | 5840 var index; |
| 5841 var subPart; | 5841 var subPart; |
| 5842 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5842 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5843 pathOffset += 1; | 5843 pathOffset += 1; |
| 5844 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/variants/")); | 5844 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/variants/")); |
| 5845 pathOffset += 12; | 5845 pathOffset += 12; |
| 5846 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 5846 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 5847 pathOffset = path.length; | 5847 pathOffset = path.length; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 5864 } | 5864 } |
| 5865 } | 5865 } |
| 5866 | 5866 |
| 5867 | 5867 |
| 5868 var h = { | 5868 var h = { |
| 5869 "content-type" : "application/json; charset=utf-8", | 5869 "content-type" : "application/json; charset=utf-8", |
| 5870 }; | 5870 }; |
| 5871 var resp = convert.JSON.encode(buildEmpty()); | 5871 var resp = convert.JSON.encode(buildEmpty()); |
| 5872 return new async.Future.value(stringResponse(200, h, resp)); | 5872 return new async.Future.value(stringResponse(200, h, resp)); |
| 5873 }), true); | 5873 }), true); |
| 5874 res.delete(arg_variantId).then(unittest.expectAsync(((api.Empty response)
{ | 5874 res.delete(arg_variantId).then(unittest.expectAsync1(((api.Empty response)
{ |
| 5875 checkEmpty(response); | 5875 checkEmpty(response); |
| 5876 }))); | 5876 }))); |
| 5877 }); | 5877 }); |
| 5878 | 5878 |
| 5879 unittest.test("method--get", () { | 5879 unittest.test("method--get", () { |
| 5880 | 5880 |
| 5881 var mock = new HttpServerMock(); | 5881 var mock = new HttpServerMock(); |
| 5882 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; | 5882 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; |
| 5883 var arg_variantId = "foo"; | 5883 var arg_variantId = "foo"; |
| 5884 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5884 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5885 var path = (req.url).path; | 5885 var path = (req.url).path; |
| 5886 var pathOffset = 0; | 5886 var pathOffset = 0; |
| 5887 var index; | 5887 var index; |
| 5888 var subPart; | 5888 var subPart; |
| 5889 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5889 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5890 pathOffset += 1; | 5890 pathOffset += 1; |
| 5891 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/variants/")); | 5891 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/variants/")); |
| 5892 pathOffset += 12; | 5892 pathOffset += 12; |
| 5893 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 5893 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 5894 pathOffset = path.length; | 5894 pathOffset = path.length; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 5911 } | 5911 } |
| 5912 } | 5912 } |
| 5913 | 5913 |
| 5914 | 5914 |
| 5915 var h = { | 5915 var h = { |
| 5916 "content-type" : "application/json; charset=utf-8", | 5916 "content-type" : "application/json; charset=utf-8", |
| 5917 }; | 5917 }; |
| 5918 var resp = convert.JSON.encode(buildVariant()); | 5918 var resp = convert.JSON.encode(buildVariant()); |
| 5919 return new async.Future.value(stringResponse(200, h, resp)); | 5919 return new async.Future.value(stringResponse(200, h, resp)); |
| 5920 }), true); | 5920 }), true); |
| 5921 res.get(arg_variantId).then(unittest.expectAsync(((api.Variant response) { | 5921 res.get(arg_variantId).then(unittest.expectAsync1(((api.Variant response)
{ |
| 5922 checkVariant(response); | 5922 checkVariant(response); |
| 5923 }))); | 5923 }))); |
| 5924 }); | 5924 }); |
| 5925 | 5925 |
| 5926 unittest.test("method--import", () { | 5926 unittest.test("method--import", () { |
| 5927 | 5927 |
| 5928 var mock = new HttpServerMock(); | 5928 var mock = new HttpServerMock(); |
| 5929 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; | 5929 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; |
| 5930 var arg_request = buildImportVariantsRequest(); | 5930 var arg_request = buildImportVariantsRequest(); |
| 5931 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5931 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5932 var obj = new api.ImportVariantsRequest.fromJson(json); | 5932 var obj = new api.ImportVariantsRequest.fromJson(json); |
| 5933 checkImportVariantsRequest(obj); | 5933 checkImportVariantsRequest(obj); |
| 5934 | 5934 |
| 5935 var path = (req.url).path; | 5935 var path = (req.url).path; |
| 5936 var pathOffset = 0; | 5936 var pathOffset = 0; |
| 5937 var index; | 5937 var index; |
| 5938 var subPart; | 5938 var subPart; |
| 5939 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5939 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5940 pathOffset += 1; | 5940 pathOffset += 1; |
| 5941 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("v1/variants:import")); | 5941 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("v1/variants:import")); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 5958 } | 5958 } |
| 5959 } | 5959 } |
| 5960 | 5960 |
| 5961 | 5961 |
| 5962 var h = { | 5962 var h = { |
| 5963 "content-type" : "application/json; charset=utf-8", | 5963 "content-type" : "application/json; charset=utf-8", |
| 5964 }; | 5964 }; |
| 5965 var resp = convert.JSON.encode(buildOperation()); | 5965 var resp = convert.JSON.encode(buildOperation()); |
| 5966 return new async.Future.value(stringResponse(200, h, resp)); | 5966 return new async.Future.value(stringResponse(200, h, resp)); |
| 5967 }), true); | 5967 }), true); |
| 5968 res.import(arg_request).then(unittest.expectAsync(((api.Operation response
) { | 5968 res.import(arg_request).then(unittest.expectAsync1(((api.Operation respons
e) { |
| 5969 checkOperation(response); | 5969 checkOperation(response); |
| 5970 }))); | 5970 }))); |
| 5971 }); | 5971 }); |
| 5972 | 5972 |
| 5973 unittest.test("method--merge", () { | 5973 unittest.test("method--merge", () { |
| 5974 | 5974 |
| 5975 var mock = new HttpServerMock(); | 5975 var mock = new HttpServerMock(); |
| 5976 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; | 5976 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; |
| 5977 var arg_request = buildMergeVariantsRequest(); | 5977 var arg_request = buildMergeVariantsRequest(); |
| 5978 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 5978 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 5979 var obj = new api.MergeVariantsRequest.fromJson(json); | 5979 var obj = new api.MergeVariantsRequest.fromJson(json); |
| 5980 checkMergeVariantsRequest(obj); | 5980 checkMergeVariantsRequest(obj); |
| 5981 | 5981 |
| 5982 var path = (req.url).path; | 5982 var path = (req.url).path; |
| 5983 var pathOffset = 0; | 5983 var pathOffset = 0; |
| 5984 var index; | 5984 var index; |
| 5985 var subPart; | 5985 var subPart; |
| 5986 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 5986 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 5987 pathOffset += 1; | 5987 pathOffset += 1; |
| 5988 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/variants:merge")); | 5988 unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.eq
uals("v1/variants:merge")); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 6005 } | 6005 } |
| 6006 } | 6006 } |
| 6007 | 6007 |
| 6008 | 6008 |
| 6009 var h = { | 6009 var h = { |
| 6010 "content-type" : "application/json; charset=utf-8", | 6010 "content-type" : "application/json; charset=utf-8", |
| 6011 }; | 6011 }; |
| 6012 var resp = convert.JSON.encode(buildEmpty()); | 6012 var resp = convert.JSON.encode(buildEmpty()); |
| 6013 return new async.Future.value(stringResponse(200, h, resp)); | 6013 return new async.Future.value(stringResponse(200, h, resp)); |
| 6014 }), true); | 6014 }), true); |
| 6015 res.merge(arg_request).then(unittest.expectAsync(((api.Empty response) { | 6015 res.merge(arg_request).then(unittest.expectAsync1(((api.Empty response) { |
| 6016 checkEmpty(response); | 6016 checkEmpty(response); |
| 6017 }))); | 6017 }))); |
| 6018 }); | 6018 }); |
| 6019 | 6019 |
| 6020 unittest.test("method--patch", () { | 6020 unittest.test("method--patch", () { |
| 6021 | 6021 |
| 6022 var mock = new HttpServerMock(); | 6022 var mock = new HttpServerMock(); |
| 6023 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; | 6023 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; |
| 6024 var arg_request = buildVariant(); | 6024 var arg_request = buildVariant(); |
| 6025 var arg_variantId = "foo"; | 6025 var arg_variantId = "foo"; |
| 6026 var arg_updateMask = "foo"; | 6026 var arg_updateMask = "foo"; |
| 6027 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6027 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6028 var obj = new api.Variant.fromJson(json); | 6028 var obj = new api.Variant.fromJson(json); |
| 6029 checkVariant(obj); | 6029 checkVariant(obj); |
| 6030 | 6030 |
| 6031 var path = (req.url).path; | 6031 var path = (req.url).path; |
| 6032 var pathOffset = 0; | 6032 var pathOffset = 0; |
| 6033 var index; | 6033 var index; |
| 6034 var subPart; | 6034 var subPart; |
| 6035 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6035 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6036 pathOffset += 1; | 6036 pathOffset += 1; |
| 6037 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/variants/")); | 6037 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq
uals("v1/variants/")); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 6058 } | 6058 } |
| 6059 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); | 6059 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); |
| 6060 | 6060 |
| 6061 | 6061 |
| 6062 var h = { | 6062 var h = { |
| 6063 "content-type" : "application/json; charset=utf-8", | 6063 "content-type" : "application/json; charset=utf-8", |
| 6064 }; | 6064 }; |
| 6065 var resp = convert.JSON.encode(buildVariant()); | 6065 var resp = convert.JSON.encode(buildVariant()); |
| 6066 return new async.Future.value(stringResponse(200, h, resp)); | 6066 return new async.Future.value(stringResponse(200, h, resp)); |
| 6067 }), true); | 6067 }), true); |
| 6068 res.patch(arg_request, arg_variantId, updateMask: arg_updateMask).then(uni
ttest.expectAsync(((api.Variant response) { | 6068 res.patch(arg_request, arg_variantId, updateMask: arg_updateMask).then(uni
ttest.expectAsync1(((api.Variant response) { |
| 6069 checkVariant(response); | 6069 checkVariant(response); |
| 6070 }))); | 6070 }))); |
| 6071 }); | 6071 }); |
| 6072 | 6072 |
| 6073 unittest.test("method--search", () { | 6073 unittest.test("method--search", () { |
| 6074 | 6074 |
| 6075 var mock = new HttpServerMock(); | 6075 var mock = new HttpServerMock(); |
| 6076 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; | 6076 api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; |
| 6077 var arg_request = buildSearchVariantsRequest(); | 6077 var arg_request = buildSearchVariantsRequest(); |
| 6078 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6078 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6079 var obj = new api.SearchVariantsRequest.fromJson(json); | 6079 var obj = new api.SearchVariantsRequest.fromJson(json); |
| 6080 checkSearchVariantsRequest(obj); | 6080 checkSearchVariantsRequest(obj); |
| 6081 | 6081 |
| 6082 var path = (req.url).path; | 6082 var path = (req.url).path; |
| 6083 var pathOffset = 0; | 6083 var pathOffset = 0; |
| 6084 var index; | 6084 var index; |
| 6085 var subPart; | 6085 var subPart; |
| 6086 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6086 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6087 pathOffset += 1; | 6087 pathOffset += 1; |
| 6088 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("v1/variants/search")); | 6088 unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.eq
uals("v1/variants/search")); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 6105 } | 6105 } |
| 6106 } | 6106 } |
| 6107 | 6107 |
| 6108 | 6108 |
| 6109 var h = { | 6109 var h = { |
| 6110 "content-type" : "application/json; charset=utf-8", | 6110 "content-type" : "application/json; charset=utf-8", |
| 6111 }; | 6111 }; |
| 6112 var resp = convert.JSON.encode(buildSearchVariantsResponse()); | 6112 var resp = convert.JSON.encode(buildSearchVariantsResponse()); |
| 6113 return new async.Future.value(stringResponse(200, h, resp)); | 6113 return new async.Future.value(stringResponse(200, h, resp)); |
| 6114 }), true); | 6114 }), true); |
| 6115 res.search(arg_request).then(unittest.expectAsync(((api.SearchVariantsResp
onse response) { | 6115 res.search(arg_request).then(unittest.expectAsync1(((api.SearchVariantsRes
ponse response) { |
| 6116 checkSearchVariantsResponse(response); | 6116 checkSearchVariantsResponse(response); |
| 6117 }))); | 6117 }))); |
| 6118 }); | 6118 }); |
| 6119 | 6119 |
| 6120 }); | 6120 }); |
| 6121 | 6121 |
| 6122 | 6122 |
| 6123 unittest.group("resource-VariantsetsResourceApi", () { | 6123 unittest.group("resource-VariantsetsResourceApi", () { |
| 6124 unittest.test("method--create", () { | 6124 unittest.test("method--create", () { |
| 6125 | 6125 |
| 6126 var mock = new HttpServerMock(); | 6126 var mock = new HttpServerMock(); |
| 6127 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; | 6127 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; |
| 6128 var arg_request = buildVariantSet(); | 6128 var arg_request = buildVariantSet(); |
| 6129 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6129 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6130 var obj = new api.VariantSet.fromJson(json); | 6130 var obj = new api.VariantSet.fromJson(json); |
| 6131 checkVariantSet(obj); | 6131 checkVariantSet(obj); |
| 6132 | 6132 |
| 6133 var path = (req.url).path; | 6133 var path = (req.url).path; |
| 6134 var pathOffset = 0; | 6134 var pathOffset = 0; |
| 6135 var index; | 6135 var index; |
| 6136 var subPart; | 6136 var subPart; |
| 6137 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6137 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6138 pathOffset += 1; | 6138 pathOffset += 1; |
| 6139 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1/variantsets")); | 6139 unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.eq
uals("v1/variantsets")); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 6156 } | 6156 } |
| 6157 } | 6157 } |
| 6158 | 6158 |
| 6159 | 6159 |
| 6160 var h = { | 6160 var h = { |
| 6161 "content-type" : "application/json; charset=utf-8", | 6161 "content-type" : "application/json; charset=utf-8", |
| 6162 }; | 6162 }; |
| 6163 var resp = convert.JSON.encode(buildVariantSet()); | 6163 var resp = convert.JSON.encode(buildVariantSet()); |
| 6164 return new async.Future.value(stringResponse(200, h, resp)); | 6164 return new async.Future.value(stringResponse(200, h, resp)); |
| 6165 }), true); | 6165 }), true); |
| 6166 res.create(arg_request).then(unittest.expectAsync(((api.VariantSet respons
e) { | 6166 res.create(arg_request).then(unittest.expectAsync1(((api.VariantSet respon
se) { |
| 6167 checkVariantSet(response); | 6167 checkVariantSet(response); |
| 6168 }))); | 6168 }))); |
| 6169 }); | 6169 }); |
| 6170 | 6170 |
| 6171 unittest.test("method--delete", () { | 6171 unittest.test("method--delete", () { |
| 6172 | 6172 |
| 6173 var mock = new HttpServerMock(); | 6173 var mock = new HttpServerMock(); |
| 6174 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; | 6174 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; |
| 6175 var arg_variantSetId = "foo"; | 6175 var arg_variantSetId = "foo"; |
| 6176 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6176 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6177 var path = (req.url).path; | 6177 var path = (req.url).path; |
| 6178 var pathOffset = 0; | 6178 var pathOffset = 0; |
| 6179 var index; | 6179 var index; |
| 6180 var subPart; | 6180 var subPart; |
| 6181 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6181 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6182 pathOffset += 1; | 6182 pathOffset += 1; |
| 6183 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("v1/variantsets/")); | 6183 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("v1/variantsets/")); |
| 6184 pathOffset += 15; | 6184 pathOffset += 15; |
| 6185 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 6185 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 6186 pathOffset = path.length; | 6186 pathOffset = path.length; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 6203 } | 6203 } |
| 6204 } | 6204 } |
| 6205 | 6205 |
| 6206 | 6206 |
| 6207 var h = { | 6207 var h = { |
| 6208 "content-type" : "application/json; charset=utf-8", | 6208 "content-type" : "application/json; charset=utf-8", |
| 6209 }; | 6209 }; |
| 6210 var resp = convert.JSON.encode(buildEmpty()); | 6210 var resp = convert.JSON.encode(buildEmpty()); |
| 6211 return new async.Future.value(stringResponse(200, h, resp)); | 6211 return new async.Future.value(stringResponse(200, h, resp)); |
| 6212 }), true); | 6212 }), true); |
| 6213 res.delete(arg_variantSetId).then(unittest.expectAsync(((api.Empty respons
e) { | 6213 res.delete(arg_variantSetId).then(unittest.expectAsync1(((api.Empty respon
se) { |
| 6214 checkEmpty(response); | 6214 checkEmpty(response); |
| 6215 }))); | 6215 }))); |
| 6216 }); | 6216 }); |
| 6217 | 6217 |
| 6218 unittest.test("method--export", () { | 6218 unittest.test("method--export", () { |
| 6219 | 6219 |
| 6220 var mock = new HttpServerMock(); | 6220 var mock = new HttpServerMock(); |
| 6221 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; | 6221 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; |
| 6222 var arg_request = buildExportVariantSetRequest(); | 6222 var arg_request = buildExportVariantSetRequest(); |
| 6223 var arg_variantSetId = "foo"; | 6223 var arg_variantSetId = "foo"; |
| 6224 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6224 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6225 var obj = new api.ExportVariantSetRequest.fromJson(json); | 6225 var obj = new api.ExportVariantSetRequest.fromJson(json); |
| 6226 checkExportVariantSetRequest(obj); | 6226 checkExportVariantSetRequest(obj); |
| 6227 | 6227 |
| 6228 var path = (req.url).path; | 6228 var path = (req.url).path; |
| 6229 var pathOffset = 0; | 6229 var pathOffset = 0; |
| 6230 var index; | 6230 var index; |
| 6231 var subPart; | 6231 var subPart; |
| 6232 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6232 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6233 pathOffset += 1; | 6233 pathOffset += 1; |
| 6234 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("v1/variantsets/")); | 6234 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("v1/variantsets/")); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 6258 } | 6258 } |
| 6259 } | 6259 } |
| 6260 | 6260 |
| 6261 | 6261 |
| 6262 var h = { | 6262 var h = { |
| 6263 "content-type" : "application/json; charset=utf-8", | 6263 "content-type" : "application/json; charset=utf-8", |
| 6264 }; | 6264 }; |
| 6265 var resp = convert.JSON.encode(buildOperation()); | 6265 var resp = convert.JSON.encode(buildOperation()); |
| 6266 return new async.Future.value(stringResponse(200, h, resp)); | 6266 return new async.Future.value(stringResponse(200, h, resp)); |
| 6267 }), true); | 6267 }), true); |
| 6268 res.export(arg_request, arg_variantSetId).then(unittest.expectAsync(((api.
Operation response) { | 6268 res.export(arg_request, arg_variantSetId).then(unittest.expectAsync1(((api
.Operation response) { |
| 6269 checkOperation(response); | 6269 checkOperation(response); |
| 6270 }))); | 6270 }))); |
| 6271 }); | 6271 }); |
| 6272 | 6272 |
| 6273 unittest.test("method--get", () { | 6273 unittest.test("method--get", () { |
| 6274 | 6274 |
| 6275 var mock = new HttpServerMock(); | 6275 var mock = new HttpServerMock(); |
| 6276 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; | 6276 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; |
| 6277 var arg_variantSetId = "foo"; | 6277 var arg_variantSetId = "foo"; |
| 6278 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6278 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6279 var path = (req.url).path; | 6279 var path = (req.url).path; |
| 6280 var pathOffset = 0; | 6280 var pathOffset = 0; |
| 6281 var index; | 6281 var index; |
| 6282 var subPart; | 6282 var subPart; |
| 6283 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6283 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6284 pathOffset += 1; | 6284 pathOffset += 1; |
| 6285 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("v1/variantsets/")); | 6285 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("v1/variantsets/")); |
| 6286 pathOffset += 15; | 6286 pathOffset += 15; |
| 6287 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); | 6287 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
| 6288 pathOffset = path.length; | 6288 pathOffset = path.length; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 6305 } | 6305 } |
| 6306 } | 6306 } |
| 6307 | 6307 |
| 6308 | 6308 |
| 6309 var h = { | 6309 var h = { |
| 6310 "content-type" : "application/json; charset=utf-8", | 6310 "content-type" : "application/json; charset=utf-8", |
| 6311 }; | 6311 }; |
| 6312 var resp = convert.JSON.encode(buildVariantSet()); | 6312 var resp = convert.JSON.encode(buildVariantSet()); |
| 6313 return new async.Future.value(stringResponse(200, h, resp)); | 6313 return new async.Future.value(stringResponse(200, h, resp)); |
| 6314 }), true); | 6314 }), true); |
| 6315 res.get(arg_variantSetId).then(unittest.expectAsync(((api.VariantSet respo
nse) { | 6315 res.get(arg_variantSetId).then(unittest.expectAsync1(((api.VariantSet resp
onse) { |
| 6316 checkVariantSet(response); | 6316 checkVariantSet(response); |
| 6317 }))); | 6317 }))); |
| 6318 }); | 6318 }); |
| 6319 | 6319 |
| 6320 unittest.test("method--patch", () { | 6320 unittest.test("method--patch", () { |
| 6321 | 6321 |
| 6322 var mock = new HttpServerMock(); | 6322 var mock = new HttpServerMock(); |
| 6323 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; | 6323 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; |
| 6324 var arg_request = buildVariantSet(); | 6324 var arg_request = buildVariantSet(); |
| 6325 var arg_variantSetId = "foo"; | 6325 var arg_variantSetId = "foo"; |
| 6326 var arg_updateMask = "foo"; | 6326 var arg_updateMask = "foo"; |
| 6327 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6327 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6328 var obj = new api.VariantSet.fromJson(json); | 6328 var obj = new api.VariantSet.fromJson(json); |
| 6329 checkVariantSet(obj); | 6329 checkVariantSet(obj); |
| 6330 | 6330 |
| 6331 var path = (req.url).path; | 6331 var path = (req.url).path; |
| 6332 var pathOffset = 0; | 6332 var pathOffset = 0; |
| 6333 var index; | 6333 var index; |
| 6334 var subPart; | 6334 var subPart; |
| 6335 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6335 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6336 pathOffset += 1; | 6336 pathOffset += 1; |
| 6337 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("v1/variantsets/")); | 6337 unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.eq
uals("v1/variantsets/")); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 6358 } | 6358 } |
| 6359 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); | 6359 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update
Mask)); |
| 6360 | 6360 |
| 6361 | 6361 |
| 6362 var h = { | 6362 var h = { |
| 6363 "content-type" : "application/json; charset=utf-8", | 6363 "content-type" : "application/json; charset=utf-8", |
| 6364 }; | 6364 }; |
| 6365 var resp = convert.JSON.encode(buildVariantSet()); | 6365 var resp = convert.JSON.encode(buildVariantSet()); |
| 6366 return new async.Future.value(stringResponse(200, h, resp)); | 6366 return new async.Future.value(stringResponse(200, h, resp)); |
| 6367 }), true); | 6367 }), true); |
| 6368 res.patch(arg_request, arg_variantSetId, updateMask: arg_updateMask).then(
unittest.expectAsync(((api.VariantSet response) { | 6368 res.patch(arg_request, arg_variantSetId, updateMask: arg_updateMask).then(
unittest.expectAsync1(((api.VariantSet response) { |
| 6369 checkVariantSet(response); | 6369 checkVariantSet(response); |
| 6370 }))); | 6370 }))); |
| 6371 }); | 6371 }); |
| 6372 | 6372 |
| 6373 unittest.test("method--search", () { | 6373 unittest.test("method--search", () { |
| 6374 | 6374 |
| 6375 var mock = new HttpServerMock(); | 6375 var mock = new HttpServerMock(); |
| 6376 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; | 6376 api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; |
| 6377 var arg_request = buildSearchVariantSetsRequest(); | 6377 var arg_request = buildSearchVariantSetsRequest(); |
| 6378 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 6378 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
| 6379 var obj = new api.SearchVariantSetsRequest.fromJson(json); | 6379 var obj = new api.SearchVariantSetsRequest.fromJson(json); |
| 6380 checkSearchVariantSetsRequest(obj); | 6380 checkSearchVariantSetsRequest(obj); |
| 6381 | 6381 |
| 6382 var path = (req.url).path; | 6382 var path = (req.url).path; |
| 6383 var pathOffset = 0; | 6383 var pathOffset = 0; |
| 6384 var index; | 6384 var index; |
| 6385 var subPart; | 6385 var subPart; |
| 6386 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 6386 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 6387 pathOffset += 1; | 6387 pathOffset += 1; |
| 6388 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("v1/variantsets/search")); | 6388 unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.eq
uals("v1/variantsets/search")); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 6405 } | 6405 } |
| 6406 } | 6406 } |
| 6407 | 6407 |
| 6408 | 6408 |
| 6409 var h = { | 6409 var h = { |
| 6410 "content-type" : "application/json; charset=utf-8", | 6410 "content-type" : "application/json; charset=utf-8", |
| 6411 }; | 6411 }; |
| 6412 var resp = convert.JSON.encode(buildSearchVariantSetsResponse()); | 6412 var resp = convert.JSON.encode(buildSearchVariantSetsResponse()); |
| 6413 return new async.Future.value(stringResponse(200, h, resp)); | 6413 return new async.Future.value(stringResponse(200, h, resp)); |
| 6414 }), true); | 6414 }), true); |
| 6415 res.search(arg_request).then(unittest.expectAsync(((api.SearchVariantSetsR
esponse response) { | 6415 res.search(arg_request).then(unittest.expectAsync1(((api.SearchVariantSets
Response response) { |
| 6416 checkSearchVariantSetsResponse(response); | 6416 checkSearchVariantSetsResponse(response); |
| 6417 }))); | 6417 }))); |
| 6418 }); | 6418 }); |
| 6419 | 6419 |
| 6420 }); | 6420 }); |
| 6421 | 6421 |
| 6422 | 6422 |
| 6423 } | 6423 } |
| 6424 | 6424 |
| OLD | NEW |