| Index: generated/googleapis_beta/test/genomics/v1beta2_test.dart
|
| diff --git a/generated/googleapis_beta/test/genomics/v1beta2_test.dart b/generated/googleapis_beta/test/genomics/v1beta2_test.dart
|
| deleted file mode 100644
|
| index 385841424d25ccf2344ccbd17d7f5b62cc45e32b..0000000000000000000000000000000000000000
|
| --- a/generated/googleapis_beta/test/genomics/v1beta2_test.dart
|
| +++ /dev/null
|
| @@ -1,6549 +0,0 @@
|
| -library googleapis_beta.genomics.v1beta2.test;
|
| -
|
| -import "dart:core" as core;
|
| -import "dart:collection" as collection;
|
| -import "dart:async" as async;
|
| -import "dart:convert" as convert;
|
| -
|
| -import 'package:http/http.dart' as http;
|
| -import 'package:http/testing.dart' as http_testing;
|
| -import 'package:unittest/unittest.dart' as unittest;
|
| -
|
| -import 'package:googleapis_beta/genomics/v1beta2.dart' as api;
|
| -
|
| -class HttpServerMock extends http.BaseClient {
|
| - core.Function _callback;
|
| - core.bool _expectJson;
|
| -
|
| - void register(core.Function callback, core.bool expectJson) {
|
| - _callback = callback;
|
| - _expectJson = expectJson;
|
| - }
|
| -
|
| - async.Future<http.StreamedResponse> send(http.BaseRequest request) {
|
| - if (_expectJson) {
|
| - return request.finalize()
|
| - .transform(convert.UTF8.decoder)
|
| - .join('')
|
| - .then((core.String jsonString) {
|
| - if (jsonString.isEmpty) {
|
| - return _callback(request, null);
|
| - } else {
|
| - return _callback(request, convert.JSON.decode(jsonString));
|
| - }
|
| - });
|
| - } else {
|
| - var stream = request.finalize();
|
| - if (stream == null) {
|
| - return _callback(request, []);
|
| - } else {
|
| - return stream.toBytes().then((data) {
|
| - return _callback(request, data);
|
| - });
|
| - }
|
| - }
|
| - }
|
| -}
|
| -
|
| -http.StreamedResponse stringResponse(
|
| - core.int status, core.Map headers, core.String body) {
|
| - var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
|
| - return new http.StreamedResponse(stream, status, headers: headers);
|
| -}
|
| -
|
| -buildUnnamed3272() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3272(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -buildUnnamed3273() {
|
| - var o = new core.Map<core.String, core.List<core.String>>();
|
| - o["x"] = buildUnnamed3272();
|
| - o["y"] = buildUnnamed3272();
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3273(core.Map<core.String, core.List<core.String>> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed3272(o["x"]);
|
| - checkUnnamed3272(o["y"]);
|
| -}
|
| -
|
| -core.int buildCounterAnnotation = 0;
|
| -buildAnnotation() {
|
| - var o = new api.Annotation();
|
| - buildCounterAnnotation++;
|
| - if (buildCounterAnnotation < 3) {
|
| - o.annotationSetId = "foo";
|
| - o.id = "foo";
|
| - o.info = buildUnnamed3273();
|
| - o.name = "foo";
|
| - o.position = buildRangePosition();
|
| - o.transcript = buildTranscript();
|
| - o.type = "foo";
|
| - o.variant = buildVariantAnnotation();
|
| - }
|
| - buildCounterAnnotation--;
|
| - return o;
|
| -}
|
| -
|
| -checkAnnotation(api.Annotation o) {
|
| - buildCounterAnnotation++;
|
| - if (buildCounterAnnotation < 3) {
|
| - unittest.expect(o.annotationSetId, unittest.equals('foo'));
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed3273(o.info);
|
| - unittest.expect(o.name, unittest.equals('foo'));
|
| - checkRangePosition(o.position);
|
| - checkTranscript(o.transcript);
|
| - unittest.expect(o.type, unittest.equals('foo'));
|
| - checkVariantAnnotation(o.variant);
|
| - }
|
| - buildCounterAnnotation--;
|
| -}
|
| -
|
| -buildUnnamed3274() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3274(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -buildUnnamed3275() {
|
| - var o = new core.Map<core.String, core.List<core.String>>();
|
| - o["x"] = buildUnnamed3274();
|
| - o["y"] = buildUnnamed3274();
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3275(core.Map<core.String, core.List<core.String>> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed3274(o["x"]);
|
| - checkUnnamed3274(o["y"]);
|
| -}
|
| -
|
| -core.int buildCounterAnnotationSet = 0;
|
| -buildAnnotationSet() {
|
| - var o = new api.AnnotationSet();
|
| - buildCounterAnnotationSet++;
|
| - if (buildCounterAnnotationSet < 3) {
|
| - o.datasetId = "foo";
|
| - o.id = "foo";
|
| - o.info = buildUnnamed3275();
|
| - o.name = "foo";
|
| - o.referenceSetId = "foo";
|
| - o.sourceUri = "foo";
|
| - o.type = "foo";
|
| - }
|
| - buildCounterAnnotationSet--;
|
| - return o;
|
| -}
|
| -
|
| -checkAnnotationSet(api.AnnotationSet o) {
|
| - buildCounterAnnotationSet++;
|
| - if (buildCounterAnnotationSet < 3) {
|
| - unittest.expect(o.datasetId, unittest.equals('foo'));
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed3275(o.info);
|
| - unittest.expect(o.name, unittest.equals('foo'));
|
| - unittest.expect(o.referenceSetId, unittest.equals('foo'));
|
| - unittest.expect(o.sourceUri, unittest.equals('foo'));
|
| - unittest.expect(o.type, unittest.equals('foo'));
|
| - }
|
| - buildCounterAnnotationSet--;
|
| -}
|
| -
|
| -buildUnnamed3276() {
|
| - var o = new core.List<api.BatchAnnotationsResponseEntry>();
|
| - o.add(buildBatchAnnotationsResponseEntry());
|
| - o.add(buildBatchAnnotationsResponseEntry());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3276(core.List<api.BatchAnnotationsResponseEntry> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkBatchAnnotationsResponseEntry(o[0]);
|
| - checkBatchAnnotationsResponseEntry(o[1]);
|
| -}
|
| -
|
| -core.int buildCounterBatchAnnotationsResponse = 0;
|
| -buildBatchAnnotationsResponse() {
|
| - var o = new api.BatchAnnotationsResponse();
|
| - buildCounterBatchAnnotationsResponse++;
|
| - if (buildCounterBatchAnnotationsResponse < 3) {
|
| - o.entries = buildUnnamed3276();
|
| - }
|
| - buildCounterBatchAnnotationsResponse--;
|
| - return o;
|
| -}
|
| -
|
| -checkBatchAnnotationsResponse(api.BatchAnnotationsResponse o) {
|
| - buildCounterBatchAnnotationsResponse++;
|
| - if (buildCounterBatchAnnotationsResponse < 3) {
|
| - checkUnnamed3276(o.entries);
|
| - }
|
| - buildCounterBatchAnnotationsResponse--;
|
| -}
|
| -
|
| -core.int buildCounterBatchAnnotationsResponseEntry = 0;
|
| -buildBatchAnnotationsResponseEntry() {
|
| - var o = new api.BatchAnnotationsResponseEntry();
|
| - buildCounterBatchAnnotationsResponseEntry++;
|
| - if (buildCounterBatchAnnotationsResponseEntry < 3) {
|
| - o.annotation = buildAnnotation();
|
| - o.status = buildBatchAnnotationsResponseEntryStatus();
|
| - }
|
| - buildCounterBatchAnnotationsResponseEntry--;
|
| - return o;
|
| -}
|
| -
|
| -checkBatchAnnotationsResponseEntry(api.BatchAnnotationsResponseEntry o) {
|
| - buildCounterBatchAnnotationsResponseEntry++;
|
| - if (buildCounterBatchAnnotationsResponseEntry < 3) {
|
| - checkAnnotation(o.annotation);
|
| - checkBatchAnnotationsResponseEntryStatus(o.status);
|
| - }
|
| - buildCounterBatchAnnotationsResponseEntry--;
|
| -}
|
| -
|
| -core.int buildCounterBatchAnnotationsResponseEntryStatus = 0;
|
| -buildBatchAnnotationsResponseEntryStatus() {
|
| - var o = new api.BatchAnnotationsResponseEntryStatus();
|
| - buildCounterBatchAnnotationsResponseEntryStatus++;
|
| - if (buildCounterBatchAnnotationsResponseEntryStatus < 3) {
|
| - o.code = 42;
|
| - o.message = "foo";
|
| - }
|
| - buildCounterBatchAnnotationsResponseEntryStatus--;
|
| - return o;
|
| -}
|
| -
|
| -checkBatchAnnotationsResponseEntryStatus(api.BatchAnnotationsResponseEntryStatus o) {
|
| - buildCounterBatchAnnotationsResponseEntryStatus++;
|
| - if (buildCounterBatchAnnotationsResponseEntryStatus < 3) {
|
| - unittest.expect(o.code, unittest.equals(42));
|
| - unittest.expect(o.message, unittest.equals('foo'));
|
| - }
|
| - buildCounterBatchAnnotationsResponseEntryStatus--;
|
| -}
|
| -
|
| -buildUnnamed3277() {
|
| - var o = new core.List<api.Annotation>();
|
| - o.add(buildAnnotation());
|
| - o.add(buildAnnotation());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3277(core.List<api.Annotation> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkAnnotation(o[0]);
|
| - checkAnnotation(o[1]);
|
| -}
|
| -
|
| -core.int buildCounterBatchCreateAnnotationsRequest = 0;
|
| -buildBatchCreateAnnotationsRequest() {
|
| - var o = new api.BatchCreateAnnotationsRequest();
|
| - buildCounterBatchCreateAnnotationsRequest++;
|
| - if (buildCounterBatchCreateAnnotationsRequest < 3) {
|
| - o.annotations = buildUnnamed3277();
|
| - }
|
| - buildCounterBatchCreateAnnotationsRequest--;
|
| - return o;
|
| -}
|
| -
|
| -checkBatchCreateAnnotationsRequest(api.BatchCreateAnnotationsRequest o) {
|
| - buildCounterBatchCreateAnnotationsRequest++;
|
| - if (buildCounterBatchCreateAnnotationsRequest < 3) {
|
| - checkUnnamed3277(o.annotations);
|
| - }
|
| - buildCounterBatchCreateAnnotationsRequest--;
|
| -}
|
| -
|
| -buildUnnamed3278() {
|
| - var o = new core.List<core.int>();
|
| - o.add(42);
|
| - o.add(42);
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3278(core.List<core.int> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals(42));
|
| - unittest.expect(o[1], unittest.equals(42));
|
| -}
|
| -
|
| -buildUnnamed3279() {
|
| - var o = new core.List<core.double>();
|
| - o.add(42.0);
|
| - o.add(42.0);
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3279(core.List<core.double> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals(42.0));
|
| - unittest.expect(o[1], unittest.equals(42.0));
|
| -}
|
| -
|
| -buildUnnamed3280() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3280(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -buildUnnamed3281() {
|
| - var o = new core.Map<core.String, core.List<core.String>>();
|
| - o["x"] = buildUnnamed3280();
|
| - o["y"] = buildUnnamed3280();
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3281(core.Map<core.String, core.List<core.String>> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed3280(o["x"]);
|
| - checkUnnamed3280(o["y"]);
|
| -}
|
| -
|
| -core.int buildCounterCall = 0;
|
| -buildCall() {
|
| - var o = new api.Call();
|
| - buildCounterCall++;
|
| - if (buildCounterCall < 3) {
|
| - o.callSetId = "foo";
|
| - o.callSetName = "foo";
|
| - o.genotype = buildUnnamed3278();
|
| - o.genotypeLikelihood = buildUnnamed3279();
|
| - o.info = buildUnnamed3281();
|
| - o.phaseset = "foo";
|
| - }
|
| - buildCounterCall--;
|
| - return o;
|
| -}
|
| -
|
| -checkCall(api.Call o) {
|
| - buildCounterCall++;
|
| - if (buildCounterCall < 3) {
|
| - unittest.expect(o.callSetId, unittest.equals('foo'));
|
| - unittest.expect(o.callSetName, unittest.equals('foo'));
|
| - checkUnnamed3278(o.genotype);
|
| - checkUnnamed3279(o.genotypeLikelihood);
|
| - checkUnnamed3281(o.info);
|
| - unittest.expect(o.phaseset, unittest.equals('foo'));
|
| - }
|
| - buildCounterCall--;
|
| -}
|
| -
|
| -buildUnnamed3282() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3282(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -buildUnnamed3283() {
|
| - var o = new core.Map<core.String, core.List<core.String>>();
|
| - o["x"] = buildUnnamed3282();
|
| - o["y"] = buildUnnamed3282();
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3283(core.Map<core.String, core.List<core.String>> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed3282(o["x"]);
|
| - checkUnnamed3282(o["y"]);
|
| -}
|
| -
|
| -buildUnnamed3284() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3284(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -core.int buildCounterCallSet = 0;
|
| -buildCallSet() {
|
| - var o = new api.CallSet();
|
| - buildCounterCallSet++;
|
| - if (buildCounterCallSet < 3) {
|
| - o.created = "foo";
|
| - o.id = "foo";
|
| - o.info = buildUnnamed3283();
|
| - o.name = "foo";
|
| - o.sampleId = "foo";
|
| - o.variantSetIds = buildUnnamed3284();
|
| - }
|
| - buildCounterCallSet--;
|
| - return o;
|
| -}
|
| -
|
| -checkCallSet(api.CallSet o) {
|
| - buildCounterCallSet++;
|
| - if (buildCounterCallSet < 3) {
|
| - unittest.expect(o.created, unittest.equals('foo'));
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed3283(o.info);
|
| - unittest.expect(o.name, unittest.equals('foo'));
|
| - unittest.expect(o.sampleId, unittest.equals('foo'));
|
| - checkUnnamed3284(o.variantSetIds);
|
| - }
|
| - buildCounterCallSet--;
|
| -}
|
| -
|
| -core.int buildCounterCigarUnit = 0;
|
| -buildCigarUnit() {
|
| - var o = new api.CigarUnit();
|
| - buildCounterCigarUnit++;
|
| - if (buildCounterCigarUnit < 3) {
|
| - o.operation = "foo";
|
| - o.operationLength = "foo";
|
| - o.referenceSequence = "foo";
|
| - }
|
| - buildCounterCigarUnit--;
|
| - return o;
|
| -}
|
| -
|
| -checkCigarUnit(api.CigarUnit o) {
|
| - buildCounterCigarUnit++;
|
| - if (buildCounterCigarUnit < 3) {
|
| - unittest.expect(o.operation, unittest.equals('foo'));
|
| - unittest.expect(o.operationLength, unittest.equals('foo'));
|
| - unittest.expect(o.referenceSequence, unittest.equals('foo'));
|
| - }
|
| - buildCounterCigarUnit--;
|
| -}
|
| -
|
| -core.int buildCounterCoverageBucket = 0;
|
| -buildCoverageBucket() {
|
| - var o = new api.CoverageBucket();
|
| - buildCounterCoverageBucket++;
|
| - if (buildCounterCoverageBucket < 3) {
|
| - o.meanCoverage = 42.0;
|
| - o.range = buildRange();
|
| - }
|
| - buildCounterCoverageBucket--;
|
| - return o;
|
| -}
|
| -
|
| -checkCoverageBucket(api.CoverageBucket o) {
|
| - buildCounterCoverageBucket++;
|
| - if (buildCounterCoverageBucket < 3) {
|
| - unittest.expect(o.meanCoverage, unittest.equals(42.0));
|
| - checkRange(o.range);
|
| - }
|
| - buildCounterCoverageBucket--;
|
| -}
|
| -
|
| -core.int buildCounterDataset = 0;
|
| -buildDataset() {
|
| - var o = new api.Dataset();
|
| - buildCounterDataset++;
|
| - if (buildCounterDataset < 3) {
|
| - o.createTime = "foo";
|
| - o.id = "foo";
|
| - o.isPublic = true;
|
| - o.name = "foo";
|
| - o.projectNumber = "foo";
|
| - }
|
| - buildCounterDataset--;
|
| - return o;
|
| -}
|
| -
|
| -checkDataset(api.Dataset o) {
|
| - buildCounterDataset++;
|
| - if (buildCounterDataset < 3) {
|
| - unittest.expect(o.createTime, unittest.equals('foo'));
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - unittest.expect(o.isPublic, unittest.isTrue);
|
| - unittest.expect(o.name, unittest.equals('foo'));
|
| - unittest.expect(o.projectNumber, unittest.equals('foo'));
|
| - }
|
| - buildCounterDataset--;
|
| -}
|
| -
|
| -buildUnnamed3285() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3285(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -buildUnnamed3286() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3286(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -core.int buildCounterExperimentalCreateJobRequest = 0;
|
| -buildExperimentalCreateJobRequest() {
|
| - var o = new api.ExperimentalCreateJobRequest();
|
| - buildCounterExperimentalCreateJobRequest++;
|
| - if (buildCounterExperimentalCreateJobRequest < 3) {
|
| - o.align = true;
|
| - o.callVariants = true;
|
| - o.gcsOutputPath = "foo";
|
| - o.pairedSourceUris = buildUnnamed3285();
|
| - o.projectNumber = "foo";
|
| - o.sourceUris = buildUnnamed3286();
|
| - }
|
| - buildCounterExperimentalCreateJobRequest--;
|
| - return o;
|
| -}
|
| -
|
| -checkExperimentalCreateJobRequest(api.ExperimentalCreateJobRequest o) {
|
| - buildCounterExperimentalCreateJobRequest++;
|
| - if (buildCounterExperimentalCreateJobRequest < 3) {
|
| - unittest.expect(o.align, unittest.isTrue);
|
| - unittest.expect(o.callVariants, unittest.isTrue);
|
| - unittest.expect(o.gcsOutputPath, unittest.equals('foo'));
|
| - checkUnnamed3285(o.pairedSourceUris);
|
| - unittest.expect(o.projectNumber, unittest.equals('foo'));
|
| - checkUnnamed3286(o.sourceUris);
|
| - }
|
| - buildCounterExperimentalCreateJobRequest--;
|
| -}
|
| -
|
| -core.int buildCounterExperimentalCreateJobResponse = 0;
|
| -buildExperimentalCreateJobResponse() {
|
| - var o = new api.ExperimentalCreateJobResponse();
|
| - buildCounterExperimentalCreateJobResponse++;
|
| - if (buildCounterExperimentalCreateJobResponse < 3) {
|
| - o.jobId = "foo";
|
| - }
|
| - buildCounterExperimentalCreateJobResponse--;
|
| - return o;
|
| -}
|
| -
|
| -checkExperimentalCreateJobResponse(api.ExperimentalCreateJobResponse o) {
|
| - buildCounterExperimentalCreateJobResponse++;
|
| - if (buildCounterExperimentalCreateJobResponse < 3) {
|
| - unittest.expect(o.jobId, unittest.equals('foo'));
|
| - }
|
| - buildCounterExperimentalCreateJobResponse--;
|
| -}
|
| -
|
| -buildUnnamed3287() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3287(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -buildUnnamed3288() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3288(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -core.int buildCounterExportReadGroupSetsRequest = 0;
|
| -buildExportReadGroupSetsRequest() {
|
| - var o = new api.ExportReadGroupSetsRequest();
|
| - buildCounterExportReadGroupSetsRequest++;
|
| - if (buildCounterExportReadGroupSetsRequest < 3) {
|
| - o.exportUri = "foo";
|
| - o.projectNumber = "foo";
|
| - o.readGroupSetIds = buildUnnamed3287();
|
| - o.referenceNames = buildUnnamed3288();
|
| - }
|
| - buildCounterExportReadGroupSetsRequest--;
|
| - return o;
|
| -}
|
| -
|
| -checkExportReadGroupSetsRequest(api.ExportReadGroupSetsRequest o) {
|
| - buildCounterExportReadGroupSetsRequest++;
|
| - if (buildCounterExportReadGroupSetsRequest < 3) {
|
| - unittest.expect(o.exportUri, unittest.equals('foo'));
|
| - unittest.expect(o.projectNumber, unittest.equals('foo'));
|
| - checkUnnamed3287(o.readGroupSetIds);
|
| - checkUnnamed3288(o.referenceNames);
|
| - }
|
| - buildCounterExportReadGroupSetsRequest--;
|
| -}
|
| -
|
| -core.int buildCounterExportReadGroupSetsResponse = 0;
|
| -buildExportReadGroupSetsResponse() {
|
| - var o = new api.ExportReadGroupSetsResponse();
|
| - buildCounterExportReadGroupSetsResponse++;
|
| - if (buildCounterExportReadGroupSetsResponse < 3) {
|
| - o.jobId = "foo";
|
| - }
|
| - buildCounterExportReadGroupSetsResponse--;
|
| - return o;
|
| -}
|
| -
|
| -checkExportReadGroupSetsResponse(api.ExportReadGroupSetsResponse o) {
|
| - buildCounterExportReadGroupSetsResponse++;
|
| - if (buildCounterExportReadGroupSetsResponse < 3) {
|
| - unittest.expect(o.jobId, unittest.equals('foo'));
|
| - }
|
| - buildCounterExportReadGroupSetsResponse--;
|
| -}
|
| -
|
| -buildUnnamed3289() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3289(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -core.int buildCounterExportVariantSetRequest = 0;
|
| -buildExportVariantSetRequest() {
|
| - var o = new api.ExportVariantSetRequest();
|
| - buildCounterExportVariantSetRequest++;
|
| - if (buildCounterExportVariantSetRequest < 3) {
|
| - o.bigqueryDataset = "foo";
|
| - o.bigqueryTable = "foo";
|
| - o.callSetIds = buildUnnamed3289();
|
| - o.format = "foo";
|
| - o.projectNumber = "foo";
|
| - }
|
| - buildCounterExportVariantSetRequest--;
|
| - return o;
|
| -}
|
| -
|
| -checkExportVariantSetRequest(api.ExportVariantSetRequest o) {
|
| - buildCounterExportVariantSetRequest++;
|
| - if (buildCounterExportVariantSetRequest < 3) {
|
| - unittest.expect(o.bigqueryDataset, unittest.equals('foo'));
|
| - unittest.expect(o.bigqueryTable, unittest.equals('foo'));
|
| - checkUnnamed3289(o.callSetIds);
|
| - unittest.expect(o.format, unittest.equals('foo'));
|
| - unittest.expect(o.projectNumber, unittest.equals('foo'));
|
| - }
|
| - buildCounterExportVariantSetRequest--;
|
| -}
|
| -
|
| -core.int buildCounterExportVariantSetResponse = 0;
|
| -buildExportVariantSetResponse() {
|
| - var o = new api.ExportVariantSetResponse();
|
| - buildCounterExportVariantSetResponse++;
|
| - if (buildCounterExportVariantSetResponse < 3) {
|
| - o.jobId = "foo";
|
| - }
|
| - buildCounterExportVariantSetResponse--;
|
| - return o;
|
| -}
|
| -
|
| -checkExportVariantSetResponse(api.ExportVariantSetResponse o) {
|
| - buildCounterExportVariantSetResponse++;
|
| - if (buildCounterExportVariantSetResponse < 3) {
|
| - unittest.expect(o.jobId, unittest.equals('foo'));
|
| - }
|
| - buildCounterExportVariantSetResponse--;
|
| -}
|
| -
|
| -core.int buildCounterExternalId = 0;
|
| -buildExternalId() {
|
| - var o = new api.ExternalId();
|
| - buildCounterExternalId++;
|
| - if (buildCounterExternalId < 3) {
|
| - o.id = "foo";
|
| - o.sourceName = "foo";
|
| - }
|
| - buildCounterExternalId--;
|
| - return o;
|
| -}
|
| -
|
| -checkExternalId(api.ExternalId o) {
|
| - buildCounterExternalId++;
|
| - if (buildCounterExternalId < 3) {
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - unittest.expect(o.sourceName, unittest.equals('foo'));
|
| - }
|
| - buildCounterExternalId--;
|
| -}
|
| -
|
| -buildUnnamed3290() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3290(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -core.int buildCounterImportReadGroupSetsRequest = 0;
|
| -buildImportReadGroupSetsRequest() {
|
| - var o = new api.ImportReadGroupSetsRequest();
|
| - buildCounterImportReadGroupSetsRequest++;
|
| - if (buildCounterImportReadGroupSetsRequest < 3) {
|
| - o.datasetId = "foo";
|
| - o.partitionStrategy = "foo";
|
| - o.referenceSetId = "foo";
|
| - o.sourceUris = buildUnnamed3290();
|
| - }
|
| - buildCounterImportReadGroupSetsRequest--;
|
| - return o;
|
| -}
|
| -
|
| -checkImportReadGroupSetsRequest(api.ImportReadGroupSetsRequest o) {
|
| - buildCounterImportReadGroupSetsRequest++;
|
| - if (buildCounterImportReadGroupSetsRequest < 3) {
|
| - unittest.expect(o.datasetId, unittest.equals('foo'));
|
| - unittest.expect(o.partitionStrategy, unittest.equals('foo'));
|
| - unittest.expect(o.referenceSetId, unittest.equals('foo'));
|
| - checkUnnamed3290(o.sourceUris);
|
| - }
|
| - buildCounterImportReadGroupSetsRequest--;
|
| -}
|
| -
|
| -core.int buildCounterImportReadGroupSetsResponse = 0;
|
| -buildImportReadGroupSetsResponse() {
|
| - var o = new api.ImportReadGroupSetsResponse();
|
| - buildCounterImportReadGroupSetsResponse++;
|
| - if (buildCounterImportReadGroupSetsResponse < 3) {
|
| - o.jobId = "foo";
|
| - }
|
| - buildCounterImportReadGroupSetsResponse--;
|
| - return o;
|
| -}
|
| -
|
| -checkImportReadGroupSetsResponse(api.ImportReadGroupSetsResponse o) {
|
| - buildCounterImportReadGroupSetsResponse++;
|
| - if (buildCounterImportReadGroupSetsResponse < 3) {
|
| - unittest.expect(o.jobId, unittest.equals('foo'));
|
| - }
|
| - buildCounterImportReadGroupSetsResponse--;
|
| -}
|
| -
|
| -buildUnnamed3291() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3291(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -core.int buildCounterImportVariantsRequest = 0;
|
| -buildImportVariantsRequest() {
|
| - var o = new api.ImportVariantsRequest();
|
| - buildCounterImportVariantsRequest++;
|
| - if (buildCounterImportVariantsRequest < 3) {
|
| - o.format = "foo";
|
| - o.normalizeReferenceNames = true;
|
| - o.sourceUris = buildUnnamed3291();
|
| - }
|
| - buildCounterImportVariantsRequest--;
|
| - return o;
|
| -}
|
| -
|
| -checkImportVariantsRequest(api.ImportVariantsRequest o) {
|
| - buildCounterImportVariantsRequest++;
|
| - if (buildCounterImportVariantsRequest < 3) {
|
| - unittest.expect(o.format, unittest.equals('foo'));
|
| - unittest.expect(o.normalizeReferenceNames, unittest.isTrue);
|
| - checkUnnamed3291(o.sourceUris);
|
| - }
|
| - buildCounterImportVariantsRequest--;
|
| -}
|
| -
|
| -core.int buildCounterImportVariantsResponse = 0;
|
| -buildImportVariantsResponse() {
|
| - var o = new api.ImportVariantsResponse();
|
| - buildCounterImportVariantsResponse++;
|
| - if (buildCounterImportVariantsResponse < 3) {
|
| - o.jobId = "foo";
|
| - }
|
| - buildCounterImportVariantsResponse--;
|
| - return o;
|
| -}
|
| -
|
| -checkImportVariantsResponse(api.ImportVariantsResponse o) {
|
| - buildCounterImportVariantsResponse++;
|
| - if (buildCounterImportVariantsResponse < 3) {
|
| - unittest.expect(o.jobId, unittest.equals('foo'));
|
| - }
|
| - buildCounterImportVariantsResponse--;
|
| -}
|
| -
|
| -core.int buildCounterInt32Value = 0;
|
| -buildInt32Value() {
|
| - var o = new api.Int32Value();
|
| - buildCounterInt32Value++;
|
| - if (buildCounterInt32Value < 3) {
|
| - o.value = 42;
|
| - }
|
| - buildCounterInt32Value--;
|
| - return o;
|
| -}
|
| -
|
| -checkInt32Value(api.Int32Value o) {
|
| - buildCounterInt32Value++;
|
| - if (buildCounterInt32Value < 3) {
|
| - unittest.expect(o.value, unittest.equals(42));
|
| - }
|
| - buildCounterInt32Value--;
|
| -}
|
| -
|
| -buildUnnamed3292() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3292(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -buildUnnamed3293() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3293(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -buildUnnamed3294() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3294(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -core.int buildCounterJob = 0;
|
| -buildJob() {
|
| - var o = new api.Job();
|
| - buildCounterJob++;
|
| - if (buildCounterJob < 3) {
|
| - o.created = "foo";
|
| - o.detailedStatus = "foo";
|
| - o.errors = buildUnnamed3292();
|
| - o.id = "foo";
|
| - o.importedIds = buildUnnamed3293();
|
| - o.projectNumber = "foo";
|
| - o.request = buildJobRequest();
|
| - o.status = "foo";
|
| - o.warnings = buildUnnamed3294();
|
| - }
|
| - buildCounterJob--;
|
| - return o;
|
| -}
|
| -
|
| -checkJob(api.Job o) {
|
| - buildCounterJob++;
|
| - if (buildCounterJob < 3) {
|
| - unittest.expect(o.created, unittest.equals('foo'));
|
| - unittest.expect(o.detailedStatus, unittest.equals('foo'));
|
| - checkUnnamed3292(o.errors);
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed3293(o.importedIds);
|
| - unittest.expect(o.projectNumber, unittest.equals('foo'));
|
| - checkJobRequest(o.request);
|
| - unittest.expect(o.status, unittest.equals('foo'));
|
| - checkUnnamed3294(o.warnings);
|
| - }
|
| - buildCounterJob--;
|
| -}
|
| -
|
| -buildUnnamed3295() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3295(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -buildUnnamed3296() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3296(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -core.int buildCounterJobRequest = 0;
|
| -buildJobRequest() {
|
| - var o = new api.JobRequest();
|
| - buildCounterJobRequest++;
|
| - if (buildCounterJobRequest < 3) {
|
| - o.destination = buildUnnamed3295();
|
| - o.source = buildUnnamed3296();
|
| - o.type = "foo";
|
| - }
|
| - buildCounterJobRequest--;
|
| - return o;
|
| -}
|
| -
|
| -checkJobRequest(api.JobRequest o) {
|
| - buildCounterJobRequest++;
|
| - if (buildCounterJobRequest < 3) {
|
| - checkUnnamed3295(o.destination);
|
| - checkUnnamed3296(o.source);
|
| - unittest.expect(o.type, unittest.equals('foo'));
|
| - }
|
| - buildCounterJobRequest--;
|
| -}
|
| -
|
| -buildUnnamed3297() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3297(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -core.int buildCounterKeyValue = 0;
|
| -buildKeyValue() {
|
| - var o = new api.KeyValue();
|
| - buildCounterKeyValue++;
|
| - if (buildCounterKeyValue < 3) {
|
| - o.key = "foo";
|
| - o.value = buildUnnamed3297();
|
| - }
|
| - buildCounterKeyValue--;
|
| - return o;
|
| -}
|
| -
|
| -checkKeyValue(api.KeyValue o) {
|
| - buildCounterKeyValue++;
|
| - if (buildCounterKeyValue < 3) {
|
| - unittest.expect(o.key, unittest.equals('foo'));
|
| - checkUnnamed3297(o.value);
|
| - }
|
| - buildCounterKeyValue--;
|
| -}
|
| -
|
| -buildUnnamed3298() {
|
| - var o = new core.List<api.CigarUnit>();
|
| - o.add(buildCigarUnit());
|
| - o.add(buildCigarUnit());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3298(core.List<api.CigarUnit> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkCigarUnit(o[0]);
|
| - checkCigarUnit(o[1]);
|
| -}
|
| -
|
| -core.int buildCounterLinearAlignment = 0;
|
| -buildLinearAlignment() {
|
| - var o = new api.LinearAlignment();
|
| - buildCounterLinearAlignment++;
|
| - if (buildCounterLinearAlignment < 3) {
|
| - o.cigar = buildUnnamed3298();
|
| - o.mappingQuality = 42;
|
| - o.position = buildPosition();
|
| - }
|
| - buildCounterLinearAlignment--;
|
| - return o;
|
| -}
|
| -
|
| -checkLinearAlignment(api.LinearAlignment o) {
|
| - buildCounterLinearAlignment++;
|
| - if (buildCounterLinearAlignment < 3) {
|
| - checkUnnamed3298(o.cigar);
|
| - unittest.expect(o.mappingQuality, unittest.equals(42));
|
| - checkPosition(o.position);
|
| - }
|
| - buildCounterLinearAlignment--;
|
| -}
|
| -
|
| -core.int buildCounterListBasesResponse = 0;
|
| -buildListBasesResponse() {
|
| - var o = new api.ListBasesResponse();
|
| - buildCounterListBasesResponse++;
|
| - if (buildCounterListBasesResponse < 3) {
|
| - o.nextPageToken = "foo";
|
| - o.offset = "foo";
|
| - o.sequence = "foo";
|
| - }
|
| - buildCounterListBasesResponse--;
|
| - return o;
|
| -}
|
| -
|
| -checkListBasesResponse(api.ListBasesResponse o) {
|
| - buildCounterListBasesResponse++;
|
| - if (buildCounterListBasesResponse < 3) {
|
| - unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - unittest.expect(o.offset, unittest.equals('foo'));
|
| - unittest.expect(o.sequence, unittest.equals('foo'));
|
| - }
|
| - buildCounterListBasesResponse--;
|
| -}
|
| -
|
| -buildUnnamed3299() {
|
| - var o = new core.List<api.CoverageBucket>();
|
| - o.add(buildCoverageBucket());
|
| - o.add(buildCoverageBucket());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3299(core.List<api.CoverageBucket> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkCoverageBucket(o[0]);
|
| - checkCoverageBucket(o[1]);
|
| -}
|
| -
|
| -core.int buildCounterListCoverageBucketsResponse = 0;
|
| -buildListCoverageBucketsResponse() {
|
| - var o = new api.ListCoverageBucketsResponse();
|
| - buildCounterListCoverageBucketsResponse++;
|
| - if (buildCounterListCoverageBucketsResponse < 3) {
|
| - o.bucketWidth = "foo";
|
| - o.coverageBuckets = buildUnnamed3299();
|
| - o.nextPageToken = "foo";
|
| - }
|
| - buildCounterListCoverageBucketsResponse--;
|
| - return o;
|
| -}
|
| -
|
| -checkListCoverageBucketsResponse(api.ListCoverageBucketsResponse o) {
|
| - buildCounterListCoverageBucketsResponse++;
|
| - if (buildCounterListCoverageBucketsResponse < 3) {
|
| - unittest.expect(o.bucketWidth, unittest.equals('foo'));
|
| - checkUnnamed3299(o.coverageBuckets);
|
| - unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - }
|
| - buildCounterListCoverageBucketsResponse--;
|
| -}
|
| -
|
| -buildUnnamed3300() {
|
| - var o = new core.List<api.Dataset>();
|
| - o.add(buildDataset());
|
| - o.add(buildDataset());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3300(core.List<api.Dataset> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkDataset(o[0]);
|
| - checkDataset(o[1]);
|
| -}
|
| -
|
| -core.int buildCounterListDatasetsResponse = 0;
|
| -buildListDatasetsResponse() {
|
| - var o = new api.ListDatasetsResponse();
|
| - buildCounterListDatasetsResponse++;
|
| - if (buildCounterListDatasetsResponse < 3) {
|
| - o.datasets = buildUnnamed3300();
|
| - o.nextPageToken = "foo";
|
| - }
|
| - buildCounterListDatasetsResponse--;
|
| - return o;
|
| -}
|
| -
|
| -checkListDatasetsResponse(api.ListDatasetsResponse o) {
|
| - buildCounterListDatasetsResponse++;
|
| - if (buildCounterListDatasetsResponse < 3) {
|
| - checkUnnamed3300(o.datasets);
|
| - unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - }
|
| - buildCounterListDatasetsResponse--;
|
| -}
|
| -
|
| -buildUnnamed3301() {
|
| - var o = new core.List<api.Variant>();
|
| - o.add(buildVariant());
|
| - o.add(buildVariant());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3301(core.List<api.Variant> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkVariant(o[0]);
|
| - checkVariant(o[1]);
|
| -}
|
| -
|
| -core.int buildCounterMergeVariantsRequest = 0;
|
| -buildMergeVariantsRequest() {
|
| - var o = new api.MergeVariantsRequest();
|
| - buildCounterMergeVariantsRequest++;
|
| - if (buildCounterMergeVariantsRequest < 3) {
|
| - o.variants = buildUnnamed3301();
|
| - }
|
| - buildCounterMergeVariantsRequest--;
|
| - return o;
|
| -}
|
| -
|
| -checkMergeVariantsRequest(api.MergeVariantsRequest o) {
|
| - buildCounterMergeVariantsRequest++;
|
| - if (buildCounterMergeVariantsRequest < 3) {
|
| - checkUnnamed3301(o.variants);
|
| - }
|
| - buildCounterMergeVariantsRequest--;
|
| -}
|
| -
|
| -buildUnnamed3302() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3302(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -buildUnnamed3303() {
|
| - var o = new core.Map<core.String, core.List<core.String>>();
|
| - o["x"] = buildUnnamed3302();
|
| - o["y"] = buildUnnamed3302();
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3303(core.Map<core.String, core.List<core.String>> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed3302(o["x"]);
|
| - checkUnnamed3302(o["y"]);
|
| -}
|
| -
|
| -core.int buildCounterMetadata = 0;
|
| -buildMetadata() {
|
| - var o = new api.Metadata();
|
| - buildCounterMetadata++;
|
| - if (buildCounterMetadata < 3) {
|
| - o.description = "foo";
|
| - o.id = "foo";
|
| - o.info = buildUnnamed3303();
|
| - o.key = "foo";
|
| - o.number = "foo";
|
| - o.type = "foo";
|
| - o.value = "foo";
|
| - }
|
| - buildCounterMetadata--;
|
| - return o;
|
| -}
|
| -
|
| -checkMetadata(api.Metadata o) {
|
| - buildCounterMetadata++;
|
| - if (buildCounterMetadata < 3) {
|
| - unittest.expect(o.description, unittest.equals('foo'));
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed3303(o.info);
|
| - unittest.expect(o.key, unittest.equals('foo'));
|
| - unittest.expect(o.number, unittest.equals('foo'));
|
| - unittest.expect(o.type, unittest.equals('foo'));
|
| - unittest.expect(o.value, unittest.equals('foo'));
|
| - }
|
| - buildCounterMetadata--;
|
| -}
|
| -
|
| -core.int buildCounterPosition = 0;
|
| -buildPosition() {
|
| - var o = new api.Position();
|
| - buildCounterPosition++;
|
| - if (buildCounterPosition < 3) {
|
| - o.position = "foo";
|
| - o.referenceName = "foo";
|
| - o.reverseStrand = true;
|
| - }
|
| - buildCounterPosition--;
|
| - return o;
|
| -}
|
| -
|
| -checkPosition(api.Position o) {
|
| - buildCounterPosition++;
|
| - if (buildCounterPosition < 3) {
|
| - unittest.expect(o.position, unittest.equals('foo'));
|
| - unittest.expect(o.referenceName, unittest.equals('foo'));
|
| - unittest.expect(o.reverseStrand, unittest.isTrue);
|
| - }
|
| - buildCounterPosition--;
|
| -}
|
| -
|
| -core.int buildCounterQueryRange = 0;
|
| -buildQueryRange() {
|
| - var o = new api.QueryRange();
|
| - buildCounterQueryRange++;
|
| - if (buildCounterQueryRange < 3) {
|
| - o.end = "foo";
|
| - o.referenceId = "foo";
|
| - o.referenceName = "foo";
|
| - o.start = "foo";
|
| - }
|
| - buildCounterQueryRange--;
|
| - return o;
|
| -}
|
| -
|
| -checkQueryRange(api.QueryRange o) {
|
| - buildCounterQueryRange++;
|
| - if (buildCounterQueryRange < 3) {
|
| - unittest.expect(o.end, unittest.equals('foo'));
|
| - unittest.expect(o.referenceId, unittest.equals('foo'));
|
| - unittest.expect(o.referenceName, unittest.equals('foo'));
|
| - unittest.expect(o.start, unittest.equals('foo'));
|
| - }
|
| - buildCounterQueryRange--;
|
| -}
|
| -
|
| -core.int buildCounterRange = 0;
|
| -buildRange() {
|
| - var o = new api.Range();
|
| - buildCounterRange++;
|
| - if (buildCounterRange < 3) {
|
| - o.end = "foo";
|
| - o.referenceName = "foo";
|
| - o.start = "foo";
|
| - }
|
| - buildCounterRange--;
|
| - return o;
|
| -}
|
| -
|
| -checkRange(api.Range o) {
|
| - buildCounterRange++;
|
| - if (buildCounterRange < 3) {
|
| - unittest.expect(o.end, unittest.equals('foo'));
|
| - unittest.expect(o.referenceName, unittest.equals('foo'));
|
| - unittest.expect(o.start, unittest.equals('foo'));
|
| - }
|
| - buildCounterRange--;
|
| -}
|
| -
|
| -core.int buildCounterRangePosition = 0;
|
| -buildRangePosition() {
|
| - var o = new api.RangePosition();
|
| - buildCounterRangePosition++;
|
| - if (buildCounterRangePosition < 3) {
|
| - o.end = "foo";
|
| - o.referenceId = "foo";
|
| - o.referenceName = "foo";
|
| - o.reverseStrand = true;
|
| - o.start = "foo";
|
| - }
|
| - buildCounterRangePosition--;
|
| - return o;
|
| -}
|
| -
|
| -checkRangePosition(api.RangePosition o) {
|
| - buildCounterRangePosition++;
|
| - if (buildCounterRangePosition < 3) {
|
| - unittest.expect(o.end, unittest.equals('foo'));
|
| - unittest.expect(o.referenceId, unittest.equals('foo'));
|
| - unittest.expect(o.referenceName, unittest.equals('foo'));
|
| - unittest.expect(o.reverseStrand, unittest.isTrue);
|
| - unittest.expect(o.start, unittest.equals('foo'));
|
| - }
|
| - buildCounterRangePosition--;
|
| -}
|
| -
|
| -buildUnnamed3304() {
|
| - var o = new core.List<core.int>();
|
| - o.add(42);
|
| - o.add(42);
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3304(core.List<core.int> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals(42));
|
| - unittest.expect(o[1], unittest.equals(42));
|
| -}
|
| -
|
| -buildUnnamed3305() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3305(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -buildUnnamed3306() {
|
| - var o = new core.Map<core.String, core.List<core.String>>();
|
| - o["x"] = buildUnnamed3305();
|
| - o["y"] = buildUnnamed3305();
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3306(core.Map<core.String, core.List<core.String>> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed3305(o["x"]);
|
| - checkUnnamed3305(o["y"]);
|
| -}
|
| -
|
| -core.int buildCounterRead = 0;
|
| -buildRead() {
|
| - var o = new api.Read();
|
| - buildCounterRead++;
|
| - if (buildCounterRead < 3) {
|
| - o.alignedQuality = buildUnnamed3304();
|
| - o.alignedSequence = "foo";
|
| - o.alignment = buildLinearAlignment();
|
| - o.duplicateFragment = true;
|
| - o.failedVendorQualityChecks = true;
|
| - o.fragmentLength = 42;
|
| - o.fragmentName = "foo";
|
| - o.id = "foo";
|
| - o.info = buildUnnamed3306();
|
| - o.nextMatePosition = buildPosition();
|
| - o.numberReads = 42;
|
| - o.properPlacement = true;
|
| - o.readGroupId = "foo";
|
| - o.readGroupSetId = "foo";
|
| - o.readNumber = 42;
|
| - o.secondaryAlignment = true;
|
| - o.supplementaryAlignment = true;
|
| - }
|
| - buildCounterRead--;
|
| - return o;
|
| -}
|
| -
|
| -checkRead(api.Read o) {
|
| - buildCounterRead++;
|
| - if (buildCounterRead < 3) {
|
| - checkUnnamed3304(o.alignedQuality);
|
| - unittest.expect(o.alignedSequence, unittest.equals('foo'));
|
| - checkLinearAlignment(o.alignment);
|
| - unittest.expect(o.duplicateFragment, unittest.isTrue);
|
| - unittest.expect(o.failedVendorQualityChecks, unittest.isTrue);
|
| - unittest.expect(o.fragmentLength, unittest.equals(42));
|
| - unittest.expect(o.fragmentName, unittest.equals('foo'));
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed3306(o.info);
|
| - checkPosition(o.nextMatePosition);
|
| - unittest.expect(o.numberReads, unittest.equals(42));
|
| - unittest.expect(o.properPlacement, unittest.isTrue);
|
| - unittest.expect(o.readGroupId, unittest.equals('foo'));
|
| - unittest.expect(o.readGroupSetId, unittest.equals('foo'));
|
| - unittest.expect(o.readNumber, unittest.equals(42));
|
| - unittest.expect(o.secondaryAlignment, unittest.isTrue);
|
| - unittest.expect(o.supplementaryAlignment, unittest.isTrue);
|
| - }
|
| - buildCounterRead--;
|
| -}
|
| -
|
| -buildUnnamed3307() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3307(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -buildUnnamed3308() {
|
| - var o = new core.Map<core.String, core.List<core.String>>();
|
| - o["x"] = buildUnnamed3307();
|
| - o["y"] = buildUnnamed3307();
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3308(core.Map<core.String, core.List<core.String>> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed3307(o["x"]);
|
| - checkUnnamed3307(o["y"]);
|
| -}
|
| -
|
| -buildUnnamed3309() {
|
| - var o = new core.List<api.ReadGroupProgram>();
|
| - o.add(buildReadGroupProgram());
|
| - o.add(buildReadGroupProgram());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3309(core.List<api.ReadGroupProgram> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkReadGroupProgram(o[0]);
|
| - checkReadGroupProgram(o[1]);
|
| -}
|
| -
|
| -core.int buildCounterReadGroup = 0;
|
| -buildReadGroup() {
|
| - var o = new api.ReadGroup();
|
| - buildCounterReadGroup++;
|
| - if (buildCounterReadGroup < 3) {
|
| - o.datasetId = "foo";
|
| - o.description = "foo";
|
| - o.experiment = buildReadGroupExperiment();
|
| - o.id = "foo";
|
| - o.info = buildUnnamed3308();
|
| - o.name = "foo";
|
| - o.predictedInsertSize = 42;
|
| - o.programs = buildUnnamed3309();
|
| - o.referenceSetId = "foo";
|
| - o.sampleId = "foo";
|
| - }
|
| - buildCounterReadGroup--;
|
| - return o;
|
| -}
|
| -
|
| -checkReadGroup(api.ReadGroup o) {
|
| - buildCounterReadGroup++;
|
| - if (buildCounterReadGroup < 3) {
|
| - unittest.expect(o.datasetId, unittest.equals('foo'));
|
| - unittest.expect(o.description, unittest.equals('foo'));
|
| - checkReadGroupExperiment(o.experiment);
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed3308(o.info);
|
| - unittest.expect(o.name, unittest.equals('foo'));
|
| - unittest.expect(o.predictedInsertSize, unittest.equals(42));
|
| - checkUnnamed3309(o.programs);
|
| - unittest.expect(o.referenceSetId, unittest.equals('foo'));
|
| - unittest.expect(o.sampleId, unittest.equals('foo'));
|
| - }
|
| - buildCounterReadGroup--;
|
| -}
|
| -
|
| -core.int buildCounterReadGroupExperiment = 0;
|
| -buildReadGroupExperiment() {
|
| - var o = new api.ReadGroupExperiment();
|
| - buildCounterReadGroupExperiment++;
|
| - if (buildCounterReadGroupExperiment < 3) {
|
| - o.instrumentModel = "foo";
|
| - o.libraryId = "foo";
|
| - o.platformUnit = "foo";
|
| - o.sequencingCenter = "foo";
|
| - }
|
| - buildCounterReadGroupExperiment--;
|
| - return o;
|
| -}
|
| -
|
| -checkReadGroupExperiment(api.ReadGroupExperiment o) {
|
| - buildCounterReadGroupExperiment++;
|
| - if (buildCounterReadGroupExperiment < 3) {
|
| - unittest.expect(o.instrumentModel, unittest.equals('foo'));
|
| - unittest.expect(o.libraryId, unittest.equals('foo'));
|
| - unittest.expect(o.platformUnit, unittest.equals('foo'));
|
| - unittest.expect(o.sequencingCenter, unittest.equals('foo'));
|
| - }
|
| - buildCounterReadGroupExperiment--;
|
| -}
|
| -
|
| -core.int buildCounterReadGroupProgram = 0;
|
| -buildReadGroupProgram() {
|
| - var o = new api.ReadGroupProgram();
|
| - buildCounterReadGroupProgram++;
|
| - if (buildCounterReadGroupProgram < 3) {
|
| - o.commandLine = "foo";
|
| - o.id = "foo";
|
| - o.name = "foo";
|
| - o.prevProgramId = "foo";
|
| - o.version = "foo";
|
| - }
|
| - buildCounterReadGroupProgram--;
|
| - return o;
|
| -}
|
| -
|
| -checkReadGroupProgram(api.ReadGroupProgram o) {
|
| - buildCounterReadGroupProgram++;
|
| - if (buildCounterReadGroupProgram < 3) {
|
| - unittest.expect(o.commandLine, unittest.equals('foo'));
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - unittest.expect(o.name, unittest.equals('foo'));
|
| - unittest.expect(o.prevProgramId, unittest.equals('foo'));
|
| - unittest.expect(o.version, unittest.equals('foo'));
|
| - }
|
| - buildCounterReadGroupProgram--;
|
| -}
|
| -
|
| -buildUnnamed3310() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3310(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -buildUnnamed3311() {
|
| - var o = new core.Map<core.String, core.List<core.String>>();
|
| - o["x"] = buildUnnamed3310();
|
| - o["y"] = buildUnnamed3310();
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3311(core.Map<core.String, core.List<core.String>> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed3310(o["x"]);
|
| - checkUnnamed3310(o["y"]);
|
| -}
|
| -
|
| -buildUnnamed3312() {
|
| - var o = new core.List<api.ReadGroup>();
|
| - o.add(buildReadGroup());
|
| - o.add(buildReadGroup());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3312(core.List<api.ReadGroup> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkReadGroup(o[0]);
|
| - checkReadGroup(o[1]);
|
| -}
|
| -
|
| -core.int buildCounterReadGroupSet = 0;
|
| -buildReadGroupSet() {
|
| - var o = new api.ReadGroupSet();
|
| - buildCounterReadGroupSet++;
|
| - if (buildCounterReadGroupSet < 3) {
|
| - o.datasetId = "foo";
|
| - o.filename = "foo";
|
| - o.id = "foo";
|
| - o.info = buildUnnamed3311();
|
| - o.name = "foo";
|
| - o.readGroups = buildUnnamed3312();
|
| - o.referenceSetId = "foo";
|
| - }
|
| - buildCounterReadGroupSet--;
|
| - return o;
|
| -}
|
| -
|
| -checkReadGroupSet(api.ReadGroupSet o) {
|
| - buildCounterReadGroupSet++;
|
| - if (buildCounterReadGroupSet < 3) {
|
| - unittest.expect(o.datasetId, unittest.equals('foo'));
|
| - unittest.expect(o.filename, unittest.equals('foo'));
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed3311(o.info);
|
| - unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed3312(o.readGroups);
|
| - unittest.expect(o.referenceSetId, unittest.equals('foo'));
|
| - }
|
| - buildCounterReadGroupSet--;
|
| -}
|
| -
|
| -buildUnnamed3313() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3313(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -core.int buildCounterReference = 0;
|
| -buildReference() {
|
| - var o = new api.Reference();
|
| - buildCounterReference++;
|
| - if (buildCounterReference < 3) {
|
| - o.id = "foo";
|
| - o.length = "foo";
|
| - o.md5checksum = "foo";
|
| - o.name = "foo";
|
| - o.ncbiTaxonId = 42;
|
| - o.sourceAccessions = buildUnnamed3313();
|
| - o.sourceURI = "foo";
|
| - }
|
| - buildCounterReference--;
|
| - return o;
|
| -}
|
| -
|
| -checkReference(api.Reference o) {
|
| - buildCounterReference++;
|
| - if (buildCounterReference < 3) {
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - unittest.expect(o.length, unittest.equals('foo'));
|
| - unittest.expect(o.md5checksum, unittest.equals('foo'));
|
| - unittest.expect(o.name, unittest.equals('foo'));
|
| - unittest.expect(o.ncbiTaxonId, unittest.equals(42));
|
| - checkUnnamed3313(o.sourceAccessions);
|
| - unittest.expect(o.sourceURI, unittest.equals('foo'));
|
| - }
|
| - buildCounterReference--;
|
| -}
|
| -
|
| -core.int buildCounterReferenceBound = 0;
|
| -buildReferenceBound() {
|
| - var o = new api.ReferenceBound();
|
| - buildCounterReferenceBound++;
|
| - if (buildCounterReferenceBound < 3) {
|
| - o.referenceName = "foo";
|
| - o.upperBound = "foo";
|
| - }
|
| - buildCounterReferenceBound--;
|
| - return o;
|
| -}
|
| -
|
| -checkReferenceBound(api.ReferenceBound o) {
|
| - buildCounterReferenceBound++;
|
| - if (buildCounterReferenceBound < 3) {
|
| - unittest.expect(o.referenceName, unittest.equals('foo'));
|
| - unittest.expect(o.upperBound, unittest.equals('foo'));
|
| - }
|
| - buildCounterReferenceBound--;
|
| -}
|
| -
|
| -buildUnnamed3314() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3314(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -buildUnnamed3315() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3315(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -core.int buildCounterReferenceSet = 0;
|
| -buildReferenceSet() {
|
| - var o = new api.ReferenceSet();
|
| - buildCounterReferenceSet++;
|
| - if (buildCounterReferenceSet < 3) {
|
| - o.assemblyId = "foo";
|
| - o.description = "foo";
|
| - o.id = "foo";
|
| - o.md5checksum = "foo";
|
| - o.ncbiTaxonId = 42;
|
| - o.referenceIds = buildUnnamed3314();
|
| - o.sourceAccessions = buildUnnamed3315();
|
| - o.sourceURI = "foo";
|
| - }
|
| - buildCounterReferenceSet--;
|
| - return o;
|
| -}
|
| -
|
| -checkReferenceSet(api.ReferenceSet o) {
|
| - buildCounterReferenceSet++;
|
| - if (buildCounterReferenceSet < 3) {
|
| - unittest.expect(o.assemblyId, unittest.equals('foo'));
|
| - unittest.expect(o.description, unittest.equals('foo'));
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - unittest.expect(o.md5checksum, unittest.equals('foo'));
|
| - unittest.expect(o.ncbiTaxonId, unittest.equals(42));
|
| - checkUnnamed3314(o.referenceIds);
|
| - checkUnnamed3315(o.sourceAccessions);
|
| - unittest.expect(o.sourceURI, unittest.equals('foo'));
|
| - }
|
| - buildCounterReferenceSet--;
|
| -}
|
| -
|
| -buildUnnamed3316() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3316(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -buildUnnamed3317() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3317(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -core.int buildCounterSearchAnnotationSetsRequest = 0;
|
| -buildSearchAnnotationSetsRequest() {
|
| - var o = new api.SearchAnnotationSetsRequest();
|
| - buildCounterSearchAnnotationSetsRequest++;
|
| - if (buildCounterSearchAnnotationSetsRequest < 3) {
|
| - o.datasetIds = buildUnnamed3316();
|
| - o.name = "foo";
|
| - o.pageSize = 42;
|
| - o.pageToken = "foo";
|
| - o.referenceSetId = "foo";
|
| - o.types = buildUnnamed3317();
|
| - }
|
| - buildCounterSearchAnnotationSetsRequest--;
|
| - return o;
|
| -}
|
| -
|
| -checkSearchAnnotationSetsRequest(api.SearchAnnotationSetsRequest o) {
|
| - buildCounterSearchAnnotationSetsRequest++;
|
| - if (buildCounterSearchAnnotationSetsRequest < 3) {
|
| - checkUnnamed3316(o.datasetIds);
|
| - unittest.expect(o.name, unittest.equals('foo'));
|
| - unittest.expect(o.pageSize, unittest.equals(42));
|
| - unittest.expect(o.pageToken, unittest.equals('foo'));
|
| - unittest.expect(o.referenceSetId, unittest.equals('foo'));
|
| - checkUnnamed3317(o.types);
|
| - }
|
| - buildCounterSearchAnnotationSetsRequest--;
|
| -}
|
| -
|
| -buildUnnamed3318() {
|
| - var o = new core.List<api.AnnotationSet>();
|
| - o.add(buildAnnotationSet());
|
| - o.add(buildAnnotationSet());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3318(core.List<api.AnnotationSet> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkAnnotationSet(o[0]);
|
| - checkAnnotationSet(o[1]);
|
| -}
|
| -
|
| -core.int buildCounterSearchAnnotationSetsResponse = 0;
|
| -buildSearchAnnotationSetsResponse() {
|
| - var o = new api.SearchAnnotationSetsResponse();
|
| - buildCounterSearchAnnotationSetsResponse++;
|
| - if (buildCounterSearchAnnotationSetsResponse < 3) {
|
| - o.annotationSets = buildUnnamed3318();
|
| - o.nextPageToken = "foo";
|
| - }
|
| - buildCounterSearchAnnotationSetsResponse--;
|
| - return o;
|
| -}
|
| -
|
| -checkSearchAnnotationSetsResponse(api.SearchAnnotationSetsResponse o) {
|
| - buildCounterSearchAnnotationSetsResponse++;
|
| - if (buildCounterSearchAnnotationSetsResponse < 3) {
|
| - checkUnnamed3318(o.annotationSets);
|
| - unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - }
|
| - buildCounterSearchAnnotationSetsResponse--;
|
| -}
|
| -
|
| -buildUnnamed3319() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3319(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -core.int buildCounterSearchAnnotationsRequest = 0;
|
| -buildSearchAnnotationsRequest() {
|
| - var o = new api.SearchAnnotationsRequest();
|
| - buildCounterSearchAnnotationsRequest++;
|
| - if (buildCounterSearchAnnotationsRequest < 3) {
|
| - o.annotationSetIds = buildUnnamed3319();
|
| - o.pageSize = 42;
|
| - o.pageToken = "foo";
|
| - o.range = buildQueryRange();
|
| - }
|
| - buildCounterSearchAnnotationsRequest--;
|
| - return o;
|
| -}
|
| -
|
| -checkSearchAnnotationsRequest(api.SearchAnnotationsRequest o) {
|
| - buildCounterSearchAnnotationsRequest++;
|
| - if (buildCounterSearchAnnotationsRequest < 3) {
|
| - checkUnnamed3319(o.annotationSetIds);
|
| - unittest.expect(o.pageSize, unittest.equals(42));
|
| - unittest.expect(o.pageToken, unittest.equals('foo'));
|
| - checkQueryRange(o.range);
|
| - }
|
| - buildCounterSearchAnnotationsRequest--;
|
| -}
|
| -
|
| -buildUnnamed3320() {
|
| - var o = new core.List<api.Annotation>();
|
| - o.add(buildAnnotation());
|
| - o.add(buildAnnotation());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3320(core.List<api.Annotation> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkAnnotation(o[0]);
|
| - checkAnnotation(o[1]);
|
| -}
|
| -
|
| -core.int buildCounterSearchAnnotationsResponse = 0;
|
| -buildSearchAnnotationsResponse() {
|
| - var o = new api.SearchAnnotationsResponse();
|
| - buildCounterSearchAnnotationsResponse++;
|
| - if (buildCounterSearchAnnotationsResponse < 3) {
|
| - o.annotations = buildUnnamed3320();
|
| - o.nextPageToken = "foo";
|
| - }
|
| - buildCounterSearchAnnotationsResponse--;
|
| - return o;
|
| -}
|
| -
|
| -checkSearchAnnotationsResponse(api.SearchAnnotationsResponse o) {
|
| - buildCounterSearchAnnotationsResponse++;
|
| - if (buildCounterSearchAnnotationsResponse < 3) {
|
| - checkUnnamed3320(o.annotations);
|
| - unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - }
|
| - buildCounterSearchAnnotationsResponse--;
|
| -}
|
| -
|
| -buildUnnamed3321() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3321(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -core.int buildCounterSearchCallSetsRequest = 0;
|
| -buildSearchCallSetsRequest() {
|
| - var o = new api.SearchCallSetsRequest();
|
| - buildCounterSearchCallSetsRequest++;
|
| - if (buildCounterSearchCallSetsRequest < 3) {
|
| - o.name = "foo";
|
| - o.pageSize = 42;
|
| - o.pageToken = "foo";
|
| - o.variantSetIds = buildUnnamed3321();
|
| - }
|
| - buildCounterSearchCallSetsRequest--;
|
| - return o;
|
| -}
|
| -
|
| -checkSearchCallSetsRequest(api.SearchCallSetsRequest o) {
|
| - buildCounterSearchCallSetsRequest++;
|
| - if (buildCounterSearchCallSetsRequest < 3) {
|
| - unittest.expect(o.name, unittest.equals('foo'));
|
| - unittest.expect(o.pageSize, unittest.equals(42));
|
| - unittest.expect(o.pageToken, unittest.equals('foo'));
|
| - checkUnnamed3321(o.variantSetIds);
|
| - }
|
| - buildCounterSearchCallSetsRequest--;
|
| -}
|
| -
|
| -buildUnnamed3322() {
|
| - var o = new core.List<api.CallSet>();
|
| - o.add(buildCallSet());
|
| - o.add(buildCallSet());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3322(core.List<api.CallSet> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkCallSet(o[0]);
|
| - checkCallSet(o[1]);
|
| -}
|
| -
|
| -core.int buildCounterSearchCallSetsResponse = 0;
|
| -buildSearchCallSetsResponse() {
|
| - var o = new api.SearchCallSetsResponse();
|
| - buildCounterSearchCallSetsResponse++;
|
| - if (buildCounterSearchCallSetsResponse < 3) {
|
| - o.callSets = buildUnnamed3322();
|
| - o.nextPageToken = "foo";
|
| - }
|
| - buildCounterSearchCallSetsResponse--;
|
| - return o;
|
| -}
|
| -
|
| -checkSearchCallSetsResponse(api.SearchCallSetsResponse o) {
|
| - buildCounterSearchCallSetsResponse++;
|
| - if (buildCounterSearchCallSetsResponse < 3) {
|
| - checkUnnamed3322(o.callSets);
|
| - unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - }
|
| - buildCounterSearchCallSetsResponse--;
|
| -}
|
| -
|
| -buildUnnamed3323() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3323(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -core.int buildCounterSearchJobsRequest = 0;
|
| -buildSearchJobsRequest() {
|
| - var o = new api.SearchJobsRequest();
|
| - buildCounterSearchJobsRequest++;
|
| - if (buildCounterSearchJobsRequest < 3) {
|
| - o.createdAfter = "foo";
|
| - o.createdBefore = "foo";
|
| - o.pageSize = 42;
|
| - o.pageToken = "foo";
|
| - o.projectNumber = "foo";
|
| - o.status = buildUnnamed3323();
|
| - }
|
| - buildCounterSearchJobsRequest--;
|
| - return o;
|
| -}
|
| -
|
| -checkSearchJobsRequest(api.SearchJobsRequest o) {
|
| - buildCounterSearchJobsRequest++;
|
| - if (buildCounterSearchJobsRequest < 3) {
|
| - unittest.expect(o.createdAfter, unittest.equals('foo'));
|
| - unittest.expect(o.createdBefore, unittest.equals('foo'));
|
| - unittest.expect(o.pageSize, unittest.equals(42));
|
| - unittest.expect(o.pageToken, unittest.equals('foo'));
|
| - unittest.expect(o.projectNumber, unittest.equals('foo'));
|
| - checkUnnamed3323(o.status);
|
| - }
|
| - buildCounterSearchJobsRequest--;
|
| -}
|
| -
|
| -buildUnnamed3324() {
|
| - var o = new core.List<api.Job>();
|
| - o.add(buildJob());
|
| - o.add(buildJob());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3324(core.List<api.Job> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkJob(o[0]);
|
| - checkJob(o[1]);
|
| -}
|
| -
|
| -core.int buildCounterSearchJobsResponse = 0;
|
| -buildSearchJobsResponse() {
|
| - var o = new api.SearchJobsResponse();
|
| - buildCounterSearchJobsResponse++;
|
| - if (buildCounterSearchJobsResponse < 3) {
|
| - o.jobs = buildUnnamed3324();
|
| - o.nextPageToken = "foo";
|
| - }
|
| - buildCounterSearchJobsResponse--;
|
| - return o;
|
| -}
|
| -
|
| -checkSearchJobsResponse(api.SearchJobsResponse o) {
|
| - buildCounterSearchJobsResponse++;
|
| - if (buildCounterSearchJobsResponse < 3) {
|
| - checkUnnamed3324(o.jobs);
|
| - unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - }
|
| - buildCounterSearchJobsResponse--;
|
| -}
|
| -
|
| -buildUnnamed3325() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3325(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -core.int buildCounterSearchReadGroupSetsRequest = 0;
|
| -buildSearchReadGroupSetsRequest() {
|
| - var o = new api.SearchReadGroupSetsRequest();
|
| - buildCounterSearchReadGroupSetsRequest++;
|
| - if (buildCounterSearchReadGroupSetsRequest < 3) {
|
| - o.datasetIds = buildUnnamed3325();
|
| - o.name = "foo";
|
| - o.pageSize = 42;
|
| - o.pageToken = "foo";
|
| - }
|
| - buildCounterSearchReadGroupSetsRequest--;
|
| - return o;
|
| -}
|
| -
|
| -checkSearchReadGroupSetsRequest(api.SearchReadGroupSetsRequest o) {
|
| - buildCounterSearchReadGroupSetsRequest++;
|
| - if (buildCounterSearchReadGroupSetsRequest < 3) {
|
| - checkUnnamed3325(o.datasetIds);
|
| - unittest.expect(o.name, unittest.equals('foo'));
|
| - unittest.expect(o.pageSize, unittest.equals(42));
|
| - unittest.expect(o.pageToken, unittest.equals('foo'));
|
| - }
|
| - buildCounterSearchReadGroupSetsRequest--;
|
| -}
|
| -
|
| -buildUnnamed3326() {
|
| - var o = new core.List<api.ReadGroupSet>();
|
| - o.add(buildReadGroupSet());
|
| - o.add(buildReadGroupSet());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3326(core.List<api.ReadGroupSet> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkReadGroupSet(o[0]);
|
| - checkReadGroupSet(o[1]);
|
| -}
|
| -
|
| -core.int buildCounterSearchReadGroupSetsResponse = 0;
|
| -buildSearchReadGroupSetsResponse() {
|
| - var o = new api.SearchReadGroupSetsResponse();
|
| - buildCounterSearchReadGroupSetsResponse++;
|
| - if (buildCounterSearchReadGroupSetsResponse < 3) {
|
| - o.nextPageToken = "foo";
|
| - o.readGroupSets = buildUnnamed3326();
|
| - }
|
| - buildCounterSearchReadGroupSetsResponse--;
|
| - return o;
|
| -}
|
| -
|
| -checkSearchReadGroupSetsResponse(api.SearchReadGroupSetsResponse o) {
|
| - buildCounterSearchReadGroupSetsResponse++;
|
| - if (buildCounterSearchReadGroupSetsResponse < 3) {
|
| - unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed3326(o.readGroupSets);
|
| - }
|
| - buildCounterSearchReadGroupSetsResponse--;
|
| -}
|
| -
|
| -buildUnnamed3327() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3327(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -buildUnnamed3328() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3328(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -core.int buildCounterSearchReadsRequest = 0;
|
| -buildSearchReadsRequest() {
|
| - var o = new api.SearchReadsRequest();
|
| - buildCounterSearchReadsRequest++;
|
| - if (buildCounterSearchReadsRequest < 3) {
|
| - o.end = "foo";
|
| - o.pageSize = 42;
|
| - o.pageToken = "foo";
|
| - o.readGroupIds = buildUnnamed3327();
|
| - o.readGroupSetIds = buildUnnamed3328();
|
| - o.referenceName = "foo";
|
| - o.start = "foo";
|
| - }
|
| - buildCounterSearchReadsRequest--;
|
| - return o;
|
| -}
|
| -
|
| -checkSearchReadsRequest(api.SearchReadsRequest o) {
|
| - buildCounterSearchReadsRequest++;
|
| - if (buildCounterSearchReadsRequest < 3) {
|
| - unittest.expect(o.end, unittest.equals('foo'));
|
| - unittest.expect(o.pageSize, unittest.equals(42));
|
| - unittest.expect(o.pageToken, unittest.equals('foo'));
|
| - checkUnnamed3327(o.readGroupIds);
|
| - checkUnnamed3328(o.readGroupSetIds);
|
| - unittest.expect(o.referenceName, unittest.equals('foo'));
|
| - unittest.expect(o.start, unittest.equals('foo'));
|
| - }
|
| - buildCounterSearchReadsRequest--;
|
| -}
|
| -
|
| -buildUnnamed3329() {
|
| - var o = new core.List<api.Read>();
|
| - o.add(buildRead());
|
| - o.add(buildRead());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3329(core.List<api.Read> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkRead(o[0]);
|
| - checkRead(o[1]);
|
| -}
|
| -
|
| -core.int buildCounterSearchReadsResponse = 0;
|
| -buildSearchReadsResponse() {
|
| - var o = new api.SearchReadsResponse();
|
| - buildCounterSearchReadsResponse++;
|
| - if (buildCounterSearchReadsResponse < 3) {
|
| - o.alignments = buildUnnamed3329();
|
| - o.nextPageToken = "foo";
|
| - }
|
| - buildCounterSearchReadsResponse--;
|
| - return o;
|
| -}
|
| -
|
| -checkSearchReadsResponse(api.SearchReadsResponse o) {
|
| - buildCounterSearchReadsResponse++;
|
| - if (buildCounterSearchReadsResponse < 3) {
|
| - checkUnnamed3329(o.alignments);
|
| - unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - }
|
| - buildCounterSearchReadsResponse--;
|
| -}
|
| -
|
| -buildUnnamed3330() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3330(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -buildUnnamed3331() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3331(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -core.int buildCounterSearchReferenceSetsRequest = 0;
|
| -buildSearchReferenceSetsRequest() {
|
| - var o = new api.SearchReferenceSetsRequest();
|
| - buildCounterSearchReferenceSetsRequest++;
|
| - if (buildCounterSearchReferenceSetsRequest < 3) {
|
| - o.accessions = buildUnnamed3330();
|
| - o.assemblyId = "foo";
|
| - o.md5checksums = buildUnnamed3331();
|
| - o.pageSize = 42;
|
| - o.pageToken = "foo";
|
| - }
|
| - buildCounterSearchReferenceSetsRequest--;
|
| - return o;
|
| -}
|
| -
|
| -checkSearchReferenceSetsRequest(api.SearchReferenceSetsRequest o) {
|
| - buildCounterSearchReferenceSetsRequest++;
|
| - if (buildCounterSearchReferenceSetsRequest < 3) {
|
| - checkUnnamed3330(o.accessions);
|
| - unittest.expect(o.assemblyId, unittest.equals('foo'));
|
| - checkUnnamed3331(o.md5checksums);
|
| - unittest.expect(o.pageSize, unittest.equals(42));
|
| - unittest.expect(o.pageToken, unittest.equals('foo'));
|
| - }
|
| - buildCounterSearchReferenceSetsRequest--;
|
| -}
|
| -
|
| -buildUnnamed3332() {
|
| - var o = new core.List<api.ReferenceSet>();
|
| - o.add(buildReferenceSet());
|
| - o.add(buildReferenceSet());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3332(core.List<api.ReferenceSet> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkReferenceSet(o[0]);
|
| - checkReferenceSet(o[1]);
|
| -}
|
| -
|
| -core.int buildCounterSearchReferenceSetsResponse = 0;
|
| -buildSearchReferenceSetsResponse() {
|
| - var o = new api.SearchReferenceSetsResponse();
|
| - buildCounterSearchReferenceSetsResponse++;
|
| - if (buildCounterSearchReferenceSetsResponse < 3) {
|
| - o.nextPageToken = "foo";
|
| - o.referenceSets = buildUnnamed3332();
|
| - }
|
| - buildCounterSearchReferenceSetsResponse--;
|
| - return o;
|
| -}
|
| -
|
| -checkSearchReferenceSetsResponse(api.SearchReferenceSetsResponse o) {
|
| - buildCounterSearchReferenceSetsResponse++;
|
| - if (buildCounterSearchReferenceSetsResponse < 3) {
|
| - unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed3332(o.referenceSets);
|
| - }
|
| - buildCounterSearchReferenceSetsResponse--;
|
| -}
|
| -
|
| -buildUnnamed3333() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3333(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -buildUnnamed3334() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3334(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -core.int buildCounterSearchReferencesRequest = 0;
|
| -buildSearchReferencesRequest() {
|
| - var o = new api.SearchReferencesRequest();
|
| - buildCounterSearchReferencesRequest++;
|
| - if (buildCounterSearchReferencesRequest < 3) {
|
| - o.accessions = buildUnnamed3333();
|
| - o.md5checksums = buildUnnamed3334();
|
| - o.pageSize = 42;
|
| - o.pageToken = "foo";
|
| - o.referenceSetId = "foo";
|
| - }
|
| - buildCounterSearchReferencesRequest--;
|
| - return o;
|
| -}
|
| -
|
| -checkSearchReferencesRequest(api.SearchReferencesRequest o) {
|
| - buildCounterSearchReferencesRequest++;
|
| - if (buildCounterSearchReferencesRequest < 3) {
|
| - checkUnnamed3333(o.accessions);
|
| - checkUnnamed3334(o.md5checksums);
|
| - unittest.expect(o.pageSize, unittest.equals(42));
|
| - unittest.expect(o.pageToken, unittest.equals('foo'));
|
| - unittest.expect(o.referenceSetId, unittest.equals('foo'));
|
| - }
|
| - buildCounterSearchReferencesRequest--;
|
| -}
|
| -
|
| -buildUnnamed3335() {
|
| - var o = new core.List<api.Reference>();
|
| - o.add(buildReference());
|
| - o.add(buildReference());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3335(core.List<api.Reference> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkReference(o[0]);
|
| - checkReference(o[1]);
|
| -}
|
| -
|
| -core.int buildCounterSearchReferencesResponse = 0;
|
| -buildSearchReferencesResponse() {
|
| - var o = new api.SearchReferencesResponse();
|
| - buildCounterSearchReferencesResponse++;
|
| - if (buildCounterSearchReferencesResponse < 3) {
|
| - o.nextPageToken = "foo";
|
| - o.references = buildUnnamed3335();
|
| - }
|
| - buildCounterSearchReferencesResponse--;
|
| - return o;
|
| -}
|
| -
|
| -checkSearchReferencesResponse(api.SearchReferencesResponse o) {
|
| - buildCounterSearchReferencesResponse++;
|
| - if (buildCounterSearchReferencesResponse < 3) {
|
| - unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed3335(o.references);
|
| - }
|
| - buildCounterSearchReferencesResponse--;
|
| -}
|
| -
|
| -buildUnnamed3336() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3336(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -core.int buildCounterSearchVariantSetsRequest = 0;
|
| -buildSearchVariantSetsRequest() {
|
| - var o = new api.SearchVariantSetsRequest();
|
| - buildCounterSearchVariantSetsRequest++;
|
| - if (buildCounterSearchVariantSetsRequest < 3) {
|
| - o.datasetIds = buildUnnamed3336();
|
| - o.pageSize = 42;
|
| - o.pageToken = "foo";
|
| - }
|
| - buildCounterSearchVariantSetsRequest--;
|
| - return o;
|
| -}
|
| -
|
| -checkSearchVariantSetsRequest(api.SearchVariantSetsRequest o) {
|
| - buildCounterSearchVariantSetsRequest++;
|
| - if (buildCounterSearchVariantSetsRequest < 3) {
|
| - checkUnnamed3336(o.datasetIds);
|
| - unittest.expect(o.pageSize, unittest.equals(42));
|
| - unittest.expect(o.pageToken, unittest.equals('foo'));
|
| - }
|
| - buildCounterSearchVariantSetsRequest--;
|
| -}
|
| -
|
| -buildUnnamed3337() {
|
| - var o = new core.List<api.VariantSet>();
|
| - o.add(buildVariantSet());
|
| - o.add(buildVariantSet());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3337(core.List<api.VariantSet> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkVariantSet(o[0]);
|
| - checkVariantSet(o[1]);
|
| -}
|
| -
|
| -core.int buildCounterSearchVariantSetsResponse = 0;
|
| -buildSearchVariantSetsResponse() {
|
| - var o = new api.SearchVariantSetsResponse();
|
| - buildCounterSearchVariantSetsResponse++;
|
| - if (buildCounterSearchVariantSetsResponse < 3) {
|
| - o.nextPageToken = "foo";
|
| - o.variantSets = buildUnnamed3337();
|
| - }
|
| - buildCounterSearchVariantSetsResponse--;
|
| - return o;
|
| -}
|
| -
|
| -checkSearchVariantSetsResponse(api.SearchVariantSetsResponse o) {
|
| - buildCounterSearchVariantSetsResponse++;
|
| - if (buildCounterSearchVariantSetsResponse < 3) {
|
| - unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed3337(o.variantSets);
|
| - }
|
| - buildCounterSearchVariantSetsResponse--;
|
| -}
|
| -
|
| -buildUnnamed3338() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3338(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -buildUnnamed3339() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3339(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -core.int buildCounterSearchVariantsRequest = 0;
|
| -buildSearchVariantsRequest() {
|
| - var o = new api.SearchVariantsRequest();
|
| - buildCounterSearchVariantsRequest++;
|
| - if (buildCounterSearchVariantsRequest < 3) {
|
| - o.callSetIds = buildUnnamed3338();
|
| - o.end = "foo";
|
| - o.maxCalls = 42;
|
| - o.pageSize = 42;
|
| - o.pageToken = "foo";
|
| - o.referenceName = "foo";
|
| - o.start = "foo";
|
| - o.variantName = "foo";
|
| - o.variantSetIds = buildUnnamed3339();
|
| - }
|
| - buildCounterSearchVariantsRequest--;
|
| - return o;
|
| -}
|
| -
|
| -checkSearchVariantsRequest(api.SearchVariantsRequest o) {
|
| - buildCounterSearchVariantsRequest++;
|
| - if (buildCounterSearchVariantsRequest < 3) {
|
| - checkUnnamed3338(o.callSetIds);
|
| - unittest.expect(o.end, unittest.equals('foo'));
|
| - unittest.expect(o.maxCalls, unittest.equals(42));
|
| - unittest.expect(o.pageSize, unittest.equals(42));
|
| - unittest.expect(o.pageToken, unittest.equals('foo'));
|
| - unittest.expect(o.referenceName, unittest.equals('foo'));
|
| - unittest.expect(o.start, unittest.equals('foo'));
|
| - unittest.expect(o.variantName, unittest.equals('foo'));
|
| - checkUnnamed3339(o.variantSetIds);
|
| - }
|
| - buildCounterSearchVariantsRequest--;
|
| -}
|
| -
|
| -buildUnnamed3340() {
|
| - var o = new core.List<api.Variant>();
|
| - o.add(buildVariant());
|
| - o.add(buildVariant());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3340(core.List<api.Variant> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkVariant(o[0]);
|
| - checkVariant(o[1]);
|
| -}
|
| -
|
| -core.int buildCounterSearchVariantsResponse = 0;
|
| -buildSearchVariantsResponse() {
|
| - var o = new api.SearchVariantsResponse();
|
| - buildCounterSearchVariantsResponse++;
|
| - if (buildCounterSearchVariantsResponse < 3) {
|
| - o.nextPageToken = "foo";
|
| - o.variants = buildUnnamed3340();
|
| - }
|
| - buildCounterSearchVariantsResponse--;
|
| - return o;
|
| -}
|
| -
|
| -checkSearchVariantsResponse(api.SearchVariantsResponse o) {
|
| - buildCounterSearchVariantsResponse++;
|
| - if (buildCounterSearchVariantsResponse < 3) {
|
| - unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed3340(o.variants);
|
| - }
|
| - buildCounterSearchVariantsResponse--;
|
| -}
|
| -
|
| -buildUnnamed3341() {
|
| - var o = new core.List<api.TranscriptExon>();
|
| - o.add(buildTranscriptExon());
|
| - o.add(buildTranscriptExon());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3341(core.List<api.TranscriptExon> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkTranscriptExon(o[0]);
|
| - checkTranscriptExon(o[1]);
|
| -}
|
| -
|
| -core.int buildCounterTranscript = 0;
|
| -buildTranscript() {
|
| - var o = new api.Transcript();
|
| - buildCounterTranscript++;
|
| - if (buildCounterTranscript < 3) {
|
| - o.codingSequence = buildTranscriptCodingSequence();
|
| - o.exons = buildUnnamed3341();
|
| - o.geneId = "foo";
|
| - }
|
| - buildCounterTranscript--;
|
| - return o;
|
| -}
|
| -
|
| -checkTranscript(api.Transcript o) {
|
| - buildCounterTranscript++;
|
| - if (buildCounterTranscript < 3) {
|
| - checkTranscriptCodingSequence(o.codingSequence);
|
| - checkUnnamed3341(o.exons);
|
| - unittest.expect(o.geneId, unittest.equals('foo'));
|
| - }
|
| - buildCounterTranscript--;
|
| -}
|
| -
|
| -core.int buildCounterTranscriptCodingSequence = 0;
|
| -buildTranscriptCodingSequence() {
|
| - var o = new api.TranscriptCodingSequence();
|
| - buildCounterTranscriptCodingSequence++;
|
| - if (buildCounterTranscriptCodingSequence < 3) {
|
| - o.end = "foo";
|
| - o.start = "foo";
|
| - }
|
| - buildCounterTranscriptCodingSequence--;
|
| - return o;
|
| -}
|
| -
|
| -checkTranscriptCodingSequence(api.TranscriptCodingSequence o) {
|
| - buildCounterTranscriptCodingSequence++;
|
| - if (buildCounterTranscriptCodingSequence < 3) {
|
| - unittest.expect(o.end, unittest.equals('foo'));
|
| - unittest.expect(o.start, unittest.equals('foo'));
|
| - }
|
| - buildCounterTranscriptCodingSequence--;
|
| -}
|
| -
|
| -core.int buildCounterTranscriptExon = 0;
|
| -buildTranscriptExon() {
|
| - var o = new api.TranscriptExon();
|
| - buildCounterTranscriptExon++;
|
| - if (buildCounterTranscriptExon < 3) {
|
| - o.end = "foo";
|
| - o.frame = buildInt32Value();
|
| - o.start = "foo";
|
| - }
|
| - buildCounterTranscriptExon--;
|
| - return o;
|
| -}
|
| -
|
| -checkTranscriptExon(api.TranscriptExon o) {
|
| - buildCounterTranscriptExon++;
|
| - if (buildCounterTranscriptExon < 3) {
|
| - unittest.expect(o.end, unittest.equals('foo'));
|
| - checkInt32Value(o.frame);
|
| - unittest.expect(o.start, unittest.equals('foo'));
|
| - }
|
| - buildCounterTranscriptExon--;
|
| -}
|
| -
|
| -buildUnnamed3342() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3342(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -buildUnnamed3343() {
|
| - var o = new core.List<api.Call>();
|
| - o.add(buildCall());
|
| - o.add(buildCall());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3343(core.List<api.Call> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkCall(o[0]);
|
| - checkCall(o[1]);
|
| -}
|
| -
|
| -buildUnnamed3344() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3344(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -buildUnnamed3345() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3345(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -buildUnnamed3346() {
|
| - var o = new core.Map<core.String, core.List<core.String>>();
|
| - o["x"] = buildUnnamed3345();
|
| - o["y"] = buildUnnamed3345();
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3346(core.Map<core.String, core.List<core.String>> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed3345(o["x"]);
|
| - checkUnnamed3345(o["y"]);
|
| -}
|
| -
|
| -buildUnnamed3347() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3347(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -core.int buildCounterVariant = 0;
|
| -buildVariant() {
|
| - var o = new api.Variant();
|
| - buildCounterVariant++;
|
| - if (buildCounterVariant < 3) {
|
| - o.alternateBases = buildUnnamed3342();
|
| - o.calls = buildUnnamed3343();
|
| - o.created = "foo";
|
| - o.end = "foo";
|
| - o.filter = buildUnnamed3344();
|
| - o.id = "foo";
|
| - o.info = buildUnnamed3346();
|
| - o.names = buildUnnamed3347();
|
| - o.quality = 42.0;
|
| - o.referenceBases = "foo";
|
| - o.referenceName = "foo";
|
| - o.start = "foo";
|
| - o.variantSetId = "foo";
|
| - }
|
| - buildCounterVariant--;
|
| - return o;
|
| -}
|
| -
|
| -checkVariant(api.Variant o) {
|
| - buildCounterVariant++;
|
| - if (buildCounterVariant < 3) {
|
| - checkUnnamed3342(o.alternateBases);
|
| - checkUnnamed3343(o.calls);
|
| - unittest.expect(o.created, unittest.equals('foo'));
|
| - unittest.expect(o.end, unittest.equals('foo'));
|
| - checkUnnamed3344(o.filter);
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed3346(o.info);
|
| - checkUnnamed3347(o.names);
|
| - unittest.expect(o.quality, unittest.equals(42.0));
|
| - unittest.expect(o.referenceBases, unittest.equals('foo'));
|
| - unittest.expect(o.referenceName, unittest.equals('foo'));
|
| - unittest.expect(o.start, unittest.equals('foo'));
|
| - unittest.expect(o.variantSetId, unittest.equals('foo'));
|
| - }
|
| - buildCounterVariant--;
|
| -}
|
| -
|
| -buildUnnamed3348() {
|
| - var o = new core.List<api.VariantAnnotationCondition>();
|
| - o.add(buildVariantAnnotationCondition());
|
| - o.add(buildVariantAnnotationCondition());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3348(core.List<api.VariantAnnotationCondition> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkVariantAnnotationCondition(o[0]);
|
| - checkVariantAnnotationCondition(o[1]);
|
| -}
|
| -
|
| -buildUnnamed3349() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3349(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -core.int buildCounterVariantAnnotation = 0;
|
| -buildVariantAnnotation() {
|
| - var o = new api.VariantAnnotation();
|
| - buildCounterVariantAnnotation++;
|
| - if (buildCounterVariantAnnotation < 3) {
|
| - o.alternateBases = "foo";
|
| - o.clinicalSignificance = "foo";
|
| - o.conditions = buildUnnamed3348();
|
| - o.effect = "foo";
|
| - o.geneId = "foo";
|
| - o.transcriptIds = buildUnnamed3349();
|
| - o.type = "foo";
|
| - }
|
| - buildCounterVariantAnnotation--;
|
| - return o;
|
| -}
|
| -
|
| -checkVariantAnnotation(api.VariantAnnotation o) {
|
| - buildCounterVariantAnnotation++;
|
| - if (buildCounterVariantAnnotation < 3) {
|
| - unittest.expect(o.alternateBases, unittest.equals('foo'));
|
| - unittest.expect(o.clinicalSignificance, unittest.equals('foo'));
|
| - checkUnnamed3348(o.conditions);
|
| - unittest.expect(o.effect, unittest.equals('foo'));
|
| - unittest.expect(o.geneId, unittest.equals('foo'));
|
| - checkUnnamed3349(o.transcriptIds);
|
| - unittest.expect(o.type, unittest.equals('foo'));
|
| - }
|
| - buildCounterVariantAnnotation--;
|
| -}
|
| -
|
| -buildUnnamed3350() {
|
| - var o = new core.List<api.ExternalId>();
|
| - o.add(buildExternalId());
|
| - o.add(buildExternalId());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3350(core.List<api.ExternalId> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkExternalId(o[0]);
|
| - checkExternalId(o[1]);
|
| -}
|
| -
|
| -buildUnnamed3351() {
|
| - var o = new core.List<core.String>();
|
| - o.add("foo");
|
| - o.add("foo");
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3351(core.List<core.String> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - unittest.expect(o[0], unittest.equals('foo'));
|
| - unittest.expect(o[1], unittest.equals('foo'));
|
| -}
|
| -
|
| -core.int buildCounterVariantAnnotationCondition = 0;
|
| -buildVariantAnnotationCondition() {
|
| - var o = new api.VariantAnnotationCondition();
|
| - buildCounterVariantAnnotationCondition++;
|
| - if (buildCounterVariantAnnotationCondition < 3) {
|
| - o.conceptId = "foo";
|
| - o.externalIds = buildUnnamed3350();
|
| - o.names = buildUnnamed3351();
|
| - o.omimId = "foo";
|
| - }
|
| - buildCounterVariantAnnotationCondition--;
|
| - return o;
|
| -}
|
| -
|
| -checkVariantAnnotationCondition(api.VariantAnnotationCondition o) {
|
| - buildCounterVariantAnnotationCondition++;
|
| - if (buildCounterVariantAnnotationCondition < 3) {
|
| - unittest.expect(o.conceptId, unittest.equals('foo'));
|
| - checkUnnamed3350(o.externalIds);
|
| - checkUnnamed3351(o.names);
|
| - unittest.expect(o.omimId, unittest.equals('foo'));
|
| - }
|
| - buildCounterVariantAnnotationCondition--;
|
| -}
|
| -
|
| -buildUnnamed3352() {
|
| - var o = new core.List<api.Metadata>();
|
| - o.add(buildMetadata());
|
| - o.add(buildMetadata());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3352(core.List<api.Metadata> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkMetadata(o[0]);
|
| - checkMetadata(o[1]);
|
| -}
|
| -
|
| -buildUnnamed3353() {
|
| - var o = new core.List<api.ReferenceBound>();
|
| - o.add(buildReferenceBound());
|
| - o.add(buildReferenceBound());
|
| - return o;
|
| -}
|
| -
|
| -checkUnnamed3353(core.List<api.ReferenceBound> o) {
|
| - unittest.expect(o, unittest.hasLength(2));
|
| - checkReferenceBound(o[0]);
|
| - checkReferenceBound(o[1]);
|
| -}
|
| -
|
| -core.int buildCounterVariantSet = 0;
|
| -buildVariantSet() {
|
| - var o = new api.VariantSet();
|
| - buildCounterVariantSet++;
|
| - if (buildCounterVariantSet < 3) {
|
| - o.datasetId = "foo";
|
| - o.description = "foo";
|
| - o.id = "foo";
|
| - o.metadata = buildUnnamed3352();
|
| - o.name = "foo";
|
| - o.referenceBounds = buildUnnamed3353();
|
| - o.referenceSetId = "foo";
|
| - }
|
| - buildCounterVariantSet--;
|
| - return o;
|
| -}
|
| -
|
| -checkVariantSet(api.VariantSet o) {
|
| - buildCounterVariantSet++;
|
| - if (buildCounterVariantSet < 3) {
|
| - unittest.expect(o.datasetId, unittest.equals('foo'));
|
| - unittest.expect(o.description, unittest.equals('foo'));
|
| - unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed3352(o.metadata);
|
| - unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed3353(o.referenceBounds);
|
| - unittest.expect(o.referenceSetId, unittest.equals('foo'));
|
| - }
|
| - buildCounterVariantSet--;
|
| -}
|
| -
|
| -
|
| -main() {
|
| - unittest.group("obj-schema-Annotation", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildAnnotation();
|
| - var od = new api.Annotation.fromJson(o.toJson());
|
| - checkAnnotation(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-AnnotationSet", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildAnnotationSet();
|
| - var od = new api.AnnotationSet.fromJson(o.toJson());
|
| - checkAnnotationSet(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-BatchAnnotationsResponse", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildBatchAnnotationsResponse();
|
| - var od = new api.BatchAnnotationsResponse.fromJson(o.toJson());
|
| - checkBatchAnnotationsResponse(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-BatchAnnotationsResponseEntry", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildBatchAnnotationsResponseEntry();
|
| - var od = new api.BatchAnnotationsResponseEntry.fromJson(o.toJson());
|
| - checkBatchAnnotationsResponseEntry(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-BatchAnnotationsResponseEntryStatus", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildBatchAnnotationsResponseEntryStatus();
|
| - var od = new api.BatchAnnotationsResponseEntryStatus.fromJson(o.toJson());
|
| - checkBatchAnnotationsResponseEntryStatus(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-BatchCreateAnnotationsRequest", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildBatchCreateAnnotationsRequest();
|
| - var od = new api.BatchCreateAnnotationsRequest.fromJson(o.toJson());
|
| - checkBatchCreateAnnotationsRequest(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-Call", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildCall();
|
| - var od = new api.Call.fromJson(o.toJson());
|
| - checkCall(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-CallSet", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildCallSet();
|
| - var od = new api.CallSet.fromJson(o.toJson());
|
| - checkCallSet(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-CigarUnit", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildCigarUnit();
|
| - var od = new api.CigarUnit.fromJson(o.toJson());
|
| - checkCigarUnit(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-CoverageBucket", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildCoverageBucket();
|
| - var od = new api.CoverageBucket.fromJson(o.toJson());
|
| - checkCoverageBucket(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-Dataset", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildDataset();
|
| - var od = new api.Dataset.fromJson(o.toJson());
|
| - checkDataset(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-ExperimentalCreateJobRequest", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildExperimentalCreateJobRequest();
|
| - var od = new api.ExperimentalCreateJobRequest.fromJson(o.toJson());
|
| - checkExperimentalCreateJobRequest(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-ExperimentalCreateJobResponse", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildExperimentalCreateJobResponse();
|
| - var od = new api.ExperimentalCreateJobResponse.fromJson(o.toJson());
|
| - checkExperimentalCreateJobResponse(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-ExportReadGroupSetsRequest", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildExportReadGroupSetsRequest();
|
| - var od = new api.ExportReadGroupSetsRequest.fromJson(o.toJson());
|
| - checkExportReadGroupSetsRequest(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-ExportReadGroupSetsResponse", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildExportReadGroupSetsResponse();
|
| - var od = new api.ExportReadGroupSetsResponse.fromJson(o.toJson());
|
| - checkExportReadGroupSetsResponse(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-ExportVariantSetRequest", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildExportVariantSetRequest();
|
| - var od = new api.ExportVariantSetRequest.fromJson(o.toJson());
|
| - checkExportVariantSetRequest(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-ExportVariantSetResponse", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildExportVariantSetResponse();
|
| - var od = new api.ExportVariantSetResponse.fromJson(o.toJson());
|
| - checkExportVariantSetResponse(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-ExternalId", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildExternalId();
|
| - var od = new api.ExternalId.fromJson(o.toJson());
|
| - checkExternalId(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-ImportReadGroupSetsRequest", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildImportReadGroupSetsRequest();
|
| - var od = new api.ImportReadGroupSetsRequest.fromJson(o.toJson());
|
| - checkImportReadGroupSetsRequest(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-ImportReadGroupSetsResponse", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildImportReadGroupSetsResponse();
|
| - var od = new api.ImportReadGroupSetsResponse.fromJson(o.toJson());
|
| - checkImportReadGroupSetsResponse(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-ImportVariantsRequest", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildImportVariantsRequest();
|
| - var od = new api.ImportVariantsRequest.fromJson(o.toJson());
|
| - checkImportVariantsRequest(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-ImportVariantsResponse", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildImportVariantsResponse();
|
| - var od = new api.ImportVariantsResponse.fromJson(o.toJson());
|
| - checkImportVariantsResponse(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-Int32Value", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildInt32Value();
|
| - var od = new api.Int32Value.fromJson(o.toJson());
|
| - checkInt32Value(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-Job", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildJob();
|
| - var od = new api.Job.fromJson(o.toJson());
|
| - checkJob(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-JobRequest", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildJobRequest();
|
| - var od = new api.JobRequest.fromJson(o.toJson());
|
| - checkJobRequest(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-KeyValue", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildKeyValue();
|
| - var od = new api.KeyValue.fromJson(o.toJson());
|
| - checkKeyValue(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-LinearAlignment", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildLinearAlignment();
|
| - var od = new api.LinearAlignment.fromJson(o.toJson());
|
| - checkLinearAlignment(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-ListBasesResponse", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildListBasesResponse();
|
| - var od = new api.ListBasesResponse.fromJson(o.toJson());
|
| - checkListBasesResponse(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-ListCoverageBucketsResponse", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildListCoverageBucketsResponse();
|
| - var od = new api.ListCoverageBucketsResponse.fromJson(o.toJson());
|
| - checkListCoverageBucketsResponse(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-ListDatasetsResponse", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildListDatasetsResponse();
|
| - var od = new api.ListDatasetsResponse.fromJson(o.toJson());
|
| - checkListDatasetsResponse(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-MergeVariantsRequest", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildMergeVariantsRequest();
|
| - var od = new api.MergeVariantsRequest.fromJson(o.toJson());
|
| - checkMergeVariantsRequest(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-Metadata", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildMetadata();
|
| - var od = new api.Metadata.fromJson(o.toJson());
|
| - checkMetadata(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-Position", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildPosition();
|
| - var od = new api.Position.fromJson(o.toJson());
|
| - checkPosition(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-QueryRange", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildQueryRange();
|
| - var od = new api.QueryRange.fromJson(o.toJson());
|
| - checkQueryRange(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-Range", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildRange();
|
| - var od = new api.Range.fromJson(o.toJson());
|
| - checkRange(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-RangePosition", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildRangePosition();
|
| - var od = new api.RangePosition.fromJson(o.toJson());
|
| - checkRangePosition(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-Read", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildRead();
|
| - var od = new api.Read.fromJson(o.toJson());
|
| - checkRead(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-ReadGroup", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildReadGroup();
|
| - var od = new api.ReadGroup.fromJson(o.toJson());
|
| - checkReadGroup(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-ReadGroupExperiment", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildReadGroupExperiment();
|
| - var od = new api.ReadGroupExperiment.fromJson(o.toJson());
|
| - checkReadGroupExperiment(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-ReadGroupProgram", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildReadGroupProgram();
|
| - var od = new api.ReadGroupProgram.fromJson(o.toJson());
|
| - checkReadGroupProgram(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-ReadGroupSet", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildReadGroupSet();
|
| - var od = new api.ReadGroupSet.fromJson(o.toJson());
|
| - checkReadGroupSet(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-Reference", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildReference();
|
| - var od = new api.Reference.fromJson(o.toJson());
|
| - checkReference(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-ReferenceBound", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildReferenceBound();
|
| - var od = new api.ReferenceBound.fromJson(o.toJson());
|
| - checkReferenceBound(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-ReferenceSet", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildReferenceSet();
|
| - var od = new api.ReferenceSet.fromJson(o.toJson());
|
| - checkReferenceSet(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-SearchAnnotationSetsRequest", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSearchAnnotationSetsRequest();
|
| - var od = new api.SearchAnnotationSetsRequest.fromJson(o.toJson());
|
| - checkSearchAnnotationSetsRequest(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-SearchAnnotationSetsResponse", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSearchAnnotationSetsResponse();
|
| - var od = new api.SearchAnnotationSetsResponse.fromJson(o.toJson());
|
| - checkSearchAnnotationSetsResponse(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-SearchAnnotationsRequest", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSearchAnnotationsRequest();
|
| - var od = new api.SearchAnnotationsRequest.fromJson(o.toJson());
|
| - checkSearchAnnotationsRequest(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-SearchAnnotationsResponse", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSearchAnnotationsResponse();
|
| - var od = new api.SearchAnnotationsResponse.fromJson(o.toJson());
|
| - checkSearchAnnotationsResponse(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-SearchCallSetsRequest", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSearchCallSetsRequest();
|
| - var od = new api.SearchCallSetsRequest.fromJson(o.toJson());
|
| - checkSearchCallSetsRequest(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-SearchCallSetsResponse", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSearchCallSetsResponse();
|
| - var od = new api.SearchCallSetsResponse.fromJson(o.toJson());
|
| - checkSearchCallSetsResponse(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-SearchJobsRequest", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSearchJobsRequest();
|
| - var od = new api.SearchJobsRequest.fromJson(o.toJson());
|
| - checkSearchJobsRequest(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-SearchJobsResponse", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSearchJobsResponse();
|
| - var od = new api.SearchJobsResponse.fromJson(o.toJson());
|
| - checkSearchJobsResponse(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-SearchReadGroupSetsRequest", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSearchReadGroupSetsRequest();
|
| - var od = new api.SearchReadGroupSetsRequest.fromJson(o.toJson());
|
| - checkSearchReadGroupSetsRequest(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-SearchReadGroupSetsResponse", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSearchReadGroupSetsResponse();
|
| - var od = new api.SearchReadGroupSetsResponse.fromJson(o.toJson());
|
| - checkSearchReadGroupSetsResponse(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-SearchReadsRequest", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSearchReadsRequest();
|
| - var od = new api.SearchReadsRequest.fromJson(o.toJson());
|
| - checkSearchReadsRequest(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-SearchReadsResponse", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSearchReadsResponse();
|
| - var od = new api.SearchReadsResponse.fromJson(o.toJson());
|
| - checkSearchReadsResponse(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-SearchReferenceSetsRequest", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSearchReferenceSetsRequest();
|
| - var od = new api.SearchReferenceSetsRequest.fromJson(o.toJson());
|
| - checkSearchReferenceSetsRequest(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-SearchReferenceSetsResponse", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSearchReferenceSetsResponse();
|
| - var od = new api.SearchReferenceSetsResponse.fromJson(o.toJson());
|
| - checkSearchReferenceSetsResponse(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-SearchReferencesRequest", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSearchReferencesRequest();
|
| - var od = new api.SearchReferencesRequest.fromJson(o.toJson());
|
| - checkSearchReferencesRequest(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-SearchReferencesResponse", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSearchReferencesResponse();
|
| - var od = new api.SearchReferencesResponse.fromJson(o.toJson());
|
| - checkSearchReferencesResponse(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-SearchVariantSetsRequest", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSearchVariantSetsRequest();
|
| - var od = new api.SearchVariantSetsRequest.fromJson(o.toJson());
|
| - checkSearchVariantSetsRequest(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-SearchVariantSetsResponse", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSearchVariantSetsResponse();
|
| - var od = new api.SearchVariantSetsResponse.fromJson(o.toJson());
|
| - checkSearchVariantSetsResponse(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-SearchVariantsRequest", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSearchVariantsRequest();
|
| - var od = new api.SearchVariantsRequest.fromJson(o.toJson());
|
| - checkSearchVariantsRequest(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-SearchVariantsResponse", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildSearchVariantsResponse();
|
| - var od = new api.SearchVariantsResponse.fromJson(o.toJson());
|
| - checkSearchVariantsResponse(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-Transcript", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTranscript();
|
| - var od = new api.Transcript.fromJson(o.toJson());
|
| - checkTranscript(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-TranscriptCodingSequence", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTranscriptCodingSequence();
|
| - var od = new api.TranscriptCodingSequence.fromJson(o.toJson());
|
| - checkTranscriptCodingSequence(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-TranscriptExon", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildTranscriptExon();
|
| - var od = new api.TranscriptExon.fromJson(o.toJson());
|
| - checkTranscriptExon(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-Variant", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildVariant();
|
| - var od = new api.Variant.fromJson(o.toJson());
|
| - checkVariant(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-VariantAnnotation", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildVariantAnnotation();
|
| - var od = new api.VariantAnnotation.fromJson(o.toJson());
|
| - checkVariantAnnotation(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-VariantAnnotationCondition", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildVariantAnnotationCondition();
|
| - var od = new api.VariantAnnotationCondition.fromJson(o.toJson());
|
| - checkVariantAnnotationCondition(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("obj-schema-VariantSet", () {
|
| - unittest.test("to-json--from-json", () {
|
| - var o = buildVariantSet();
|
| - var od = new api.VariantSet.fromJson(o.toJson());
|
| - checkVariantSet(od);
|
| - });
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-AnnotationSetsResourceApi", () {
|
| - unittest.test("method--create", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.AnnotationSetsResourceApi res = new api.GenomicsApi(mock).annotationSets;
|
| - var arg_request = buildAnnotationSet();
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.AnnotationSet.fromJson(json);
|
| - checkAnnotationSet(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("annotationSets"));
|
| - pathOffset += 14;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildAnnotationSet());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.create(arg_request).then(unittest.expectAsync(((api.AnnotationSet response) {
|
| - checkAnnotationSet(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--delete", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.AnnotationSetsResourceApi res = new api.GenomicsApi(mock).annotationSets;
|
| - var arg_annotationSetId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("annotationSets/"));
|
| - pathOffset += 15;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_annotationSetId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = "";
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.delete(arg_annotationSetId).then(unittest.expectAsync((_) {}));
|
| - });
|
| -
|
| - unittest.test("method--get", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.AnnotationSetsResourceApi res = new api.GenomicsApi(mock).annotationSets;
|
| - var arg_annotationSetId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("annotationSets/"));
|
| - pathOffset += 15;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_annotationSetId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildAnnotationSet());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.get(arg_annotationSetId).then(unittest.expectAsync(((api.AnnotationSet response) {
|
| - checkAnnotationSet(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--patch", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.AnnotationSetsResourceApi res = new api.GenomicsApi(mock).annotationSets;
|
| - var arg_request = buildAnnotationSet();
|
| - var arg_annotationSetId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.AnnotationSet.fromJson(json);
|
| - checkAnnotationSet(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("annotationSets/"));
|
| - pathOffset += 15;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_annotationSetId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildAnnotationSet());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.patch(arg_request, arg_annotationSetId).then(unittest.expectAsync(((api.AnnotationSet response) {
|
| - checkAnnotationSet(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--search", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.AnnotationSetsResourceApi res = new api.GenomicsApi(mock).annotationSets;
|
| - var arg_request = buildSearchAnnotationSetsRequest();
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.SearchAnnotationSetsRequest.fromJson(json);
|
| - checkSearchAnnotationSetsRequest(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("annotationSets/search"));
|
| - pathOffset += 21;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildSearchAnnotationSetsResponse());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.search(arg_request).then(unittest.expectAsync(((api.SearchAnnotationSetsResponse response) {
|
| - checkSearchAnnotationSetsResponse(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--update", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.AnnotationSetsResourceApi res = new api.GenomicsApi(mock).annotationSets;
|
| - var arg_request = buildAnnotationSet();
|
| - var arg_annotationSetId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.AnnotationSet.fromJson(json);
|
| - checkAnnotationSet(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("annotationSets/"));
|
| - pathOffset += 15;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_annotationSetId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildAnnotationSet());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.update(arg_request, arg_annotationSetId).then(unittest.expectAsync(((api.AnnotationSet response) {
|
| - checkAnnotationSet(response);
|
| - })));
|
| - });
|
| -
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-AnnotationsResourceApi", () {
|
| - unittest.test("method--batchCreate", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations;
|
| - var arg_request = buildBatchCreateAnnotationsRequest();
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.BatchCreateAnnotationsRequest.fromJson(json);
|
| - checkBatchCreateAnnotationsRequest(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.equals("annotations:batchCreate"));
|
| - pathOffset += 23;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildBatchAnnotationsResponse());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.batchCreate(arg_request).then(unittest.expectAsync(((api.BatchAnnotationsResponse response) {
|
| - checkBatchAnnotationsResponse(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--create", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations;
|
| - var arg_request = buildAnnotation();
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.Annotation.fromJson(json);
|
| - checkAnnotation(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("annotations"));
|
| - pathOffset += 11;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildAnnotation());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.create(arg_request).then(unittest.expectAsync(((api.Annotation response) {
|
| - checkAnnotation(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--delete", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations;
|
| - var arg_annotationId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("annotations/"));
|
| - pathOffset += 12;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_annotationId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = "";
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.delete(arg_annotationId).then(unittest.expectAsync((_) {}));
|
| - });
|
| -
|
| - unittest.test("method--get", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations;
|
| - var arg_annotationId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("annotations/"));
|
| - pathOffset += 12;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_annotationId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildAnnotation());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.get(arg_annotationId).then(unittest.expectAsync(((api.Annotation response) {
|
| - checkAnnotation(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--patch", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations;
|
| - var arg_request = buildAnnotation();
|
| - var arg_annotationId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.Annotation.fromJson(json);
|
| - checkAnnotation(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("annotations/"));
|
| - pathOffset += 12;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_annotationId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildAnnotation());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.patch(arg_request, arg_annotationId).then(unittest.expectAsync(((api.Annotation response) {
|
| - checkAnnotation(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--search", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations;
|
| - var arg_request = buildSearchAnnotationsRequest();
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.SearchAnnotationsRequest.fromJson(json);
|
| - checkSearchAnnotationsRequest(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("annotations/search"));
|
| - pathOffset += 18;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildSearchAnnotationsResponse());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.search(arg_request).then(unittest.expectAsync(((api.SearchAnnotationsResponse response) {
|
| - checkSearchAnnotationsResponse(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--update", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations;
|
| - var arg_request = buildAnnotation();
|
| - var arg_annotationId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.Annotation.fromJson(json);
|
| - checkAnnotation(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("annotations/"));
|
| - pathOffset += 12;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_annotationId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildAnnotation());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.update(arg_request, arg_annotationId).then(unittest.expectAsync(((api.Annotation response) {
|
| - checkAnnotation(response);
|
| - })));
|
| - });
|
| -
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-CallsetsResourceApi", () {
|
| - unittest.test("method--create", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets;
|
| - var arg_request = buildCallSet();
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.CallSet.fromJson(json);
|
| - checkCallSet(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("callsets"));
|
| - pathOffset += 8;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildCallSet());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.create(arg_request).then(unittest.expectAsync(((api.CallSet response) {
|
| - checkCallSet(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--delete", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets;
|
| - var arg_callSetId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("callsets/"));
|
| - pathOffset += 9;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_callSetId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = "";
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.delete(arg_callSetId).then(unittest.expectAsync((_) {}));
|
| - });
|
| -
|
| - unittest.test("method--get", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets;
|
| - var arg_callSetId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("callsets/"));
|
| - pathOffset += 9;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_callSetId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildCallSet());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.get(arg_callSetId).then(unittest.expectAsync(((api.CallSet response) {
|
| - checkCallSet(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--patch", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets;
|
| - var arg_request = buildCallSet();
|
| - var arg_callSetId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.CallSet.fromJson(json);
|
| - checkCallSet(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("callsets/"));
|
| - pathOffset += 9;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_callSetId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildCallSet());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.patch(arg_request, arg_callSetId).then(unittest.expectAsync(((api.CallSet response) {
|
| - checkCallSet(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--search", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets;
|
| - var arg_request = buildSearchCallSetsRequest();
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.SearchCallSetsRequest.fromJson(json);
|
| - checkSearchCallSetsRequest(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("callsets/search"));
|
| - pathOffset += 15;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildSearchCallSetsResponse());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.search(arg_request).then(unittest.expectAsync(((api.SearchCallSetsResponse response) {
|
| - checkSearchCallSetsResponse(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--update", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets;
|
| - var arg_request = buildCallSet();
|
| - var arg_callSetId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.CallSet.fromJson(json);
|
| - checkCallSet(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("callsets/"));
|
| - pathOffset += 9;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_callSetId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildCallSet());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.update(arg_request, arg_callSetId).then(unittest.expectAsync(((api.CallSet response) {
|
| - checkCallSet(response);
|
| - })));
|
| - });
|
| -
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-DatasetsResourceApi", () {
|
| - unittest.test("method--create", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets;
|
| - var arg_request = buildDataset();
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.Dataset.fromJson(json);
|
| - checkDataset(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("datasets"));
|
| - pathOffset += 8;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildDataset());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.create(arg_request).then(unittest.expectAsync(((api.Dataset response) {
|
| - checkDataset(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--delete", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets;
|
| - var arg_datasetId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("datasets/"));
|
| - pathOffset += 9;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_datasetId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = "";
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.delete(arg_datasetId).then(unittest.expectAsync((_) {}));
|
| - });
|
| -
|
| - unittest.test("method--get", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets;
|
| - var arg_datasetId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("datasets/"));
|
| - pathOffset += 9;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_datasetId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildDataset());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.get(arg_datasetId).then(unittest.expectAsync(((api.Dataset response) {
|
| - checkDataset(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--list", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets;
|
| - var arg_pageSize = 42;
|
| - var arg_pageToken = "foo";
|
| - var arg_projectNumber = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("datasets"));
|
| - pathOffset += 8;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| - unittest.expect(queryMap["projectNumber"].first, unittest.equals(arg_projectNumber));
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildListDatasetsResponse());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.list(pageSize: arg_pageSize, pageToken: arg_pageToken, projectNumber: arg_projectNumber).then(unittest.expectAsync(((api.ListDatasetsResponse response) {
|
| - checkListDatasetsResponse(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--patch", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets;
|
| - var arg_request = buildDataset();
|
| - var arg_datasetId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.Dataset.fromJson(json);
|
| - checkDataset(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("datasets/"));
|
| - pathOffset += 9;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_datasetId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildDataset());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.patch(arg_request, arg_datasetId).then(unittest.expectAsync(((api.Dataset response) {
|
| - checkDataset(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--undelete", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets;
|
| - var arg_datasetId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("datasets/"));
|
| - pathOffset += 9;
|
| - index = path.indexOf("/undelete", pathOffset);
|
| - unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| - pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_datasetId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("/undelete"));
|
| - pathOffset += 9;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildDataset());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.undelete(arg_datasetId).then(unittest.expectAsync(((api.Dataset response) {
|
| - checkDataset(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--update", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets;
|
| - var arg_request = buildDataset();
|
| - var arg_datasetId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.Dataset.fromJson(json);
|
| - checkDataset(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("datasets/"));
|
| - pathOffset += 9;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_datasetId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildDataset());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.update(arg_request, arg_datasetId).then(unittest.expectAsync(((api.Dataset response) {
|
| - checkDataset(response);
|
| - })));
|
| - });
|
| -
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-ExperimentalJobsResourceApi", () {
|
| - unittest.test("method--create", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.ExperimentalJobsResourceApi res = new api.GenomicsApi(mock).experimental.jobs;
|
| - var arg_request = buildExperimentalCreateJobRequest();
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.ExperimentalCreateJobRequest.fromJson(json);
|
| - checkExperimentalCreateJobRequest(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.equals("experimental/jobs/create"));
|
| - pathOffset += 24;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildExperimentalCreateJobResponse());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.create(arg_request).then(unittest.expectAsync(((api.ExperimentalCreateJobResponse response) {
|
| - checkExperimentalCreateJobResponse(response);
|
| - })));
|
| - });
|
| -
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-JobsResourceApi", () {
|
| - unittest.test("method--cancel", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.JobsResourceApi res = new api.GenomicsApi(mock).jobs;
|
| - var arg_jobId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equals("jobs/"));
|
| - pathOffset += 5;
|
| - index = path.indexOf("/cancel", pathOffset);
|
| - unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| - pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_jobId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("/cancel"));
|
| - pathOffset += 7;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = "";
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.cancel(arg_jobId).then(unittest.expectAsync((_) {}));
|
| - });
|
| -
|
| - unittest.test("method--get", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.JobsResourceApi res = new api.GenomicsApi(mock).jobs;
|
| - var arg_jobId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 5), unittest.equals("jobs/"));
|
| - pathOffset += 5;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_jobId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildJob());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.get(arg_jobId).then(unittest.expectAsync(((api.Job response) {
|
| - checkJob(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--search", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.JobsResourceApi res = new api.GenomicsApi(mock).jobs;
|
| - var arg_request = buildSearchJobsRequest();
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.SearchJobsRequest.fromJson(json);
|
| - checkSearchJobsRequest(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("jobs/search"));
|
| - pathOffset += 11;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildSearchJobsResponse());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.search(arg_request).then(unittest.expectAsync(((api.SearchJobsResponse response) {
|
| - checkSearchJobsResponse(response);
|
| - })));
|
| - });
|
| -
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-ReadgroupsetsResourceApi", () {
|
| - unittest.test("method--delete", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets;
|
| - var arg_readGroupSetId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("readgroupsets/"));
|
| - pathOffset += 14;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_readGroupSetId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = "";
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.delete(arg_readGroupSetId).then(unittest.expectAsync((_) {}));
|
| - });
|
| -
|
| - unittest.test("method--export", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets;
|
| - var arg_request = buildExportReadGroupSetsRequest();
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.ExportReadGroupSetsRequest.fromJson(json);
|
| - checkExportReadGroupSetsRequest(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("readgroupsets/export"));
|
| - pathOffset += 20;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildExportReadGroupSetsResponse());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.export(arg_request).then(unittest.expectAsync(((api.ExportReadGroupSetsResponse response) {
|
| - checkExportReadGroupSetsResponse(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--get", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets;
|
| - var arg_readGroupSetId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("readgroupsets/"));
|
| - pathOffset += 14;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_readGroupSetId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildReadGroupSet());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.get(arg_readGroupSetId).then(unittest.expectAsync(((api.ReadGroupSet response) {
|
| - checkReadGroupSet(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--import", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets;
|
| - var arg_request = buildImportReadGroupSetsRequest();
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.ImportReadGroupSetsRequest.fromJson(json);
|
| - checkImportReadGroupSetsRequest(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("readgroupsets/import"));
|
| - pathOffset += 20;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildImportReadGroupSetsResponse());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.import(arg_request).then(unittest.expectAsync(((api.ImportReadGroupSetsResponse response) {
|
| - checkImportReadGroupSetsResponse(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--patch", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets;
|
| - var arg_request = buildReadGroupSet();
|
| - var arg_readGroupSetId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.ReadGroupSet.fromJson(json);
|
| - checkReadGroupSet(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("readgroupsets/"));
|
| - pathOffset += 14;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_readGroupSetId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildReadGroupSet());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.patch(arg_request, arg_readGroupSetId).then(unittest.expectAsync(((api.ReadGroupSet response) {
|
| - checkReadGroupSet(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--search", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets;
|
| - var arg_request = buildSearchReadGroupSetsRequest();
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.SearchReadGroupSetsRequest.fromJson(json);
|
| - checkSearchReadGroupSetsRequest(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("readgroupsets/search"));
|
| - pathOffset += 20;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildSearchReadGroupSetsResponse());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.search(arg_request).then(unittest.expectAsync(((api.SearchReadGroupSetsResponse response) {
|
| - checkSearchReadGroupSetsResponse(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--update", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets;
|
| - var arg_request = buildReadGroupSet();
|
| - var arg_readGroupSetId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.ReadGroupSet.fromJson(json);
|
| - checkReadGroupSet(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("readgroupsets/"));
|
| - pathOffset += 14;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_readGroupSetId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildReadGroupSet());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.update(arg_request, arg_readGroupSetId).then(unittest.expectAsync(((api.ReadGroupSet response) {
|
| - checkReadGroupSet(response);
|
| - })));
|
| - });
|
| -
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-ReadgroupsetsCoveragebucketsResourceApi", () {
|
| - unittest.test("method--list", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.ReadgroupsetsCoveragebucketsResourceApi res = new api.GenomicsApi(mock).readgroupsets.coveragebuckets;
|
| - var arg_readGroupSetId = "foo";
|
| - var arg_pageSize = 42;
|
| - var arg_pageToken = "foo";
|
| - var arg_range_end = "foo";
|
| - var arg_range_referenceName = "foo";
|
| - var arg_range_start = "foo";
|
| - var arg_targetBucketWidth = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("readgroupsets/"));
|
| - pathOffset += 14;
|
| - index = path.indexOf("/coveragebuckets", pathOffset);
|
| - unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| - pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_readGroupSetId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/coveragebuckets"));
|
| - pathOffset += 16;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| - unittest.expect(queryMap["range.end"].first, unittest.equals(arg_range_end));
|
| - unittest.expect(queryMap["range.referenceName"].first, unittest.equals(arg_range_referenceName));
|
| - unittest.expect(queryMap["range.start"].first, unittest.equals(arg_range_start));
|
| - unittest.expect(queryMap["targetBucketWidth"].first, unittest.equals(arg_targetBucketWidth));
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildListCoverageBucketsResponse());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.list(arg_readGroupSetId, pageSize: arg_pageSize, pageToken: arg_pageToken, range_end: arg_range_end, range_referenceName: arg_range_referenceName, range_start: arg_range_start, targetBucketWidth: arg_targetBucketWidth).then(unittest.expectAsync(((api.ListCoverageBucketsResponse response) {
|
| - checkListCoverageBucketsResponse(response);
|
| - })));
|
| - });
|
| -
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-ReadsResourceApi", () {
|
| - unittest.test("method--search", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.ReadsResourceApi res = new api.GenomicsApi(mock).reads;
|
| - var arg_request = buildSearchReadsRequest();
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.SearchReadsRequest.fromJson(json);
|
| - checkSearchReadsRequest(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("reads/search"));
|
| - pathOffset += 12;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildSearchReadsResponse());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.search(arg_request).then(unittest.expectAsync(((api.SearchReadsResponse response) {
|
| - checkSearchReadsResponse(response);
|
| - })));
|
| - });
|
| -
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-ReferencesResourceApi", () {
|
| - unittest.test("method--get", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.ReferencesResourceApi res = new api.GenomicsApi(mock).references;
|
| - var arg_referenceId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("references/"));
|
| - pathOffset += 11;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_referenceId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildReference());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.get(arg_referenceId).then(unittest.expectAsync(((api.Reference response) {
|
| - checkReference(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--search", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.ReferencesResourceApi res = new api.GenomicsApi(mock).references;
|
| - var arg_request = buildSearchReferencesRequest();
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.SearchReferencesRequest.fromJson(json);
|
| - checkSearchReferencesRequest(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("references/search"));
|
| - pathOffset += 17;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildSearchReferencesResponse());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.search(arg_request).then(unittest.expectAsync(((api.SearchReferencesResponse response) {
|
| - checkSearchReferencesResponse(response);
|
| - })));
|
| - });
|
| -
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-ReferencesBasesResourceApi", () {
|
| - unittest.test("method--list", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.ReferencesBasesResourceApi res = new api.GenomicsApi(mock).references.bases;
|
| - var arg_referenceId = "foo";
|
| - var arg_end = "foo";
|
| - var arg_pageSize = 42;
|
| - var arg_pageToken = "foo";
|
| - var arg_start = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("references/"));
|
| - pathOffset += 11;
|
| - index = path.indexOf("/bases", pathOffset);
|
| - unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| - pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_referenceId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/bases"));
|
| - pathOffset += 6;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| - unittest.expect(queryMap["end"].first, unittest.equals(arg_end));
|
| - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| - unittest.expect(queryMap["start"].first, unittest.equals(arg_start));
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildListBasesResponse());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.list(arg_referenceId, end: arg_end, pageSize: arg_pageSize, pageToken: arg_pageToken, start: arg_start).then(unittest.expectAsync(((api.ListBasesResponse response) {
|
| - checkListBasesResponse(response);
|
| - })));
|
| - });
|
| -
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-ReferencesetsResourceApi", () {
|
| - unittest.test("method--get", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.ReferencesetsResourceApi res = new api.GenomicsApi(mock).referencesets;
|
| - var arg_referenceSetId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("referencesets/"));
|
| - pathOffset += 14;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_referenceSetId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildReferenceSet());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.get(arg_referenceSetId).then(unittest.expectAsync(((api.ReferenceSet response) {
|
| - checkReferenceSet(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--search", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.ReferencesetsResourceApi res = new api.GenomicsApi(mock).referencesets;
|
| - var arg_request = buildSearchReferenceSetsRequest();
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.SearchReferenceSetsRequest.fromJson(json);
|
| - checkSearchReferenceSetsRequest(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("referencesets/search"));
|
| - pathOffset += 20;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildSearchReferenceSetsResponse());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.search(arg_request).then(unittest.expectAsync(((api.SearchReferenceSetsResponse response) {
|
| - checkSearchReferenceSetsResponse(response);
|
| - })));
|
| - });
|
| -
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-VariantsResourceApi", () {
|
| - unittest.test("method--create", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.VariantsResourceApi res = new api.GenomicsApi(mock).variants;
|
| - var arg_request = buildVariant();
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.Variant.fromJson(json);
|
| - checkVariant(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("variants"));
|
| - pathOffset += 8;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildVariant());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.create(arg_request).then(unittest.expectAsync(((api.Variant response) {
|
| - checkVariant(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--delete", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.VariantsResourceApi res = new api.GenomicsApi(mock).variants;
|
| - var arg_variantId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("variants/"));
|
| - pathOffset += 9;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_variantId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = "";
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.delete(arg_variantId).then(unittest.expectAsync((_) {}));
|
| - });
|
| -
|
| - unittest.test("method--get", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.VariantsResourceApi res = new api.GenomicsApi(mock).variants;
|
| - var arg_variantId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("variants/"));
|
| - pathOffset += 9;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_variantId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildVariant());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.get(arg_variantId).then(unittest.expectAsync(((api.Variant response) {
|
| - checkVariant(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--search", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.VariantsResourceApi res = new api.GenomicsApi(mock).variants;
|
| - var arg_request = buildSearchVariantsRequest();
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.SearchVariantsRequest.fromJson(json);
|
| - checkSearchVariantsRequest(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("variants/search"));
|
| - pathOffset += 15;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildSearchVariantsResponse());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.search(arg_request).then(unittest.expectAsync(((api.SearchVariantsResponse response) {
|
| - checkSearchVariantsResponse(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--update", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.VariantsResourceApi res = new api.GenomicsApi(mock).variants;
|
| - var arg_request = buildVariant();
|
| - var arg_variantId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.Variant.fromJson(json);
|
| - checkVariant(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals("variants/"));
|
| - pathOffset += 9;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_variantId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildVariant());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.update(arg_request, arg_variantId).then(unittest.expectAsync(((api.Variant response) {
|
| - checkVariant(response);
|
| - })));
|
| - });
|
| -
|
| - });
|
| -
|
| -
|
| - unittest.group("resource-VariantsetsResourceApi", () {
|
| - unittest.test("method--create", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets;
|
| - var arg_request = buildVariantSet();
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.VariantSet.fromJson(json);
|
| - checkVariantSet(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("variantsets"));
|
| - pathOffset += 11;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildVariantSet());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.create(arg_request).then(unittest.expectAsync(((api.VariantSet response) {
|
| - checkVariantSet(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--delete", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets;
|
| - var arg_variantSetId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("variantsets/"));
|
| - pathOffset += 12;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_variantSetId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = "";
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.delete(arg_variantSetId).then(unittest.expectAsync((_) {}));
|
| - });
|
| -
|
| - unittest.test("method--export", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets;
|
| - var arg_request = buildExportVariantSetRequest();
|
| - var arg_variantSetId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.ExportVariantSetRequest.fromJson(json);
|
| - checkExportVariantSetRequest(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("variantsets/"));
|
| - pathOffset += 12;
|
| - index = path.indexOf("/export", pathOffset);
|
| - unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| - pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_variantSetId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals("/export"));
|
| - pathOffset += 7;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildExportVariantSetResponse());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.export(arg_request, arg_variantSetId).then(unittest.expectAsync(((api.ExportVariantSetResponse response) {
|
| - checkExportVariantSetResponse(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--get", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets;
|
| - var arg_variantSetId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("variantsets/"));
|
| - pathOffset += 12;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_variantSetId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildVariantSet());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.get(arg_variantSetId).then(unittest.expectAsync(((api.VariantSet response) {
|
| - checkVariantSet(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--importVariants", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets;
|
| - var arg_request = buildImportVariantsRequest();
|
| - var arg_variantSetId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.ImportVariantsRequest.fromJson(json);
|
| - checkImportVariantsRequest(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("variantsets/"));
|
| - pathOffset += 12;
|
| - index = path.indexOf("/importVariants", pathOffset);
|
| - unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| - pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_variantSetId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("/importVariants"));
|
| - pathOffset += 15;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildImportVariantsResponse());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.importVariants(arg_request, arg_variantSetId).then(unittest.expectAsync(((api.ImportVariantsResponse response) {
|
| - checkImportVariantsResponse(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--mergeVariants", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets;
|
| - var arg_request = buildMergeVariantsRequest();
|
| - var arg_variantSetId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.MergeVariantsRequest.fromJson(json);
|
| - checkMergeVariantsRequest(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("variantsets/"));
|
| - pathOffset += 12;
|
| - index = path.indexOf("/mergeVariants", pathOffset);
|
| - unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| - pathOffset = index;
|
| - unittest.expect(subPart, unittest.equals("$arg_variantSetId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("/mergeVariants"));
|
| - pathOffset += 14;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = "";
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.mergeVariants(arg_request, arg_variantSetId).then(unittest.expectAsync((_) {}));
|
| - });
|
| -
|
| - unittest.test("method--patch", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets;
|
| - var arg_request = buildVariantSet();
|
| - var arg_variantSetId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.VariantSet.fromJson(json);
|
| - checkVariantSet(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("variantsets/"));
|
| - pathOffset += 12;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_variantSetId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildVariantSet());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.patch(arg_request, arg_variantSetId).then(unittest.expectAsync(((api.VariantSet response) {
|
| - checkVariantSet(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--search", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets;
|
| - var arg_request = buildSearchVariantSetsRequest();
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.SearchVariantSetsRequest.fromJson(json);
|
| - checkSearchVariantSetsRequest(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("variantsets/search"));
|
| - pathOffset += 18;
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildSearchVariantSetsResponse());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.search(arg_request).then(unittest.expectAsync(((api.SearchVariantSetsResponse response) {
|
| - checkSearchVariantSetsResponse(response);
|
| - })));
|
| - });
|
| -
|
| - unittest.test("method--update", () {
|
| -
|
| - var mock = new HttpServerMock();
|
| - api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets;
|
| - var arg_request = buildVariantSet();
|
| - var arg_variantSetId = "foo";
|
| - mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| - var obj = new api.VariantSet.fromJson(json);
|
| - checkVariantSet(obj);
|
| -
|
| - var path = (req.url).path;
|
| - var pathOffset = 0;
|
| - var index;
|
| - var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| - pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/"));
|
| - pathOffset += 17;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("variantsets/"));
|
| - pathOffset += 12;
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| - pathOffset = path.length;
|
| - unittest.expect(subPart, unittest.equals("$arg_variantSetId"));
|
| -
|
| - var query = (req.url).query;
|
| - var queryOffset = 0;
|
| - var queryMap = {};
|
| - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
|
| - parseBool(n) {
|
| - if (n == "true") return true;
|
| - if (n == "false") return false;
|
| - if (n == null) return null;
|
| - throw new core.ArgumentError("Invalid boolean: $n");
|
| - }
|
| - if (query.length > 0) {
|
| - for (var part in query.split("&")) {
|
| - var keyvalue = part.split("=");
|
| - addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| - }
|
| - }
|
| -
|
| -
|
| - var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| - };
|
| - var resp = convert.JSON.encode(buildVariantSet());
|
| - return new async.Future.value(stringResponse(200, h, resp));
|
| - }), true);
|
| - res.update(arg_request, arg_variantSetId).then(unittest.expectAsync(((api.VariantSet response) {
|
| - checkVariantSet(response);
|
| - })));
|
| - });
|
| -
|
| - });
|
| -
|
| -
|
| -}
|
| -
|
|
|