Index: generated/googleapis/test/genomics/v1_test.dart |
diff --git a/generated/googleapis_beta/test/genomics/v1beta2_test.dart b/generated/googleapis/test/genomics/v1_test.dart |
similarity index 52% |
copy from generated/googleapis_beta/test/genomics/v1beta2_test.dart |
copy to generated/googleapis/test/genomics/v1_test.dart |
index 6f6386a88f094cad36b8f39d31206fee161a3d7a..5c75aa3d4391eb05c1a6976a2a2dc392468567d0 100644 |
--- a/generated/googleapis_beta/test/genomics/v1beta2_test.dart |
+++ b/generated/googleapis/test/genomics/v1_test.dart |
@@ -1,4 +1,4 @@ |
-library googleapis_beta.genomics.v1beta2.test; |
+library googleapis.genomics.v1.test; |
import "dart:core" as core; |
import "dart:collection" as collection; |
@@ -9,7 +9,7 @@ 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; |
+import 'package:googleapis/genomics/v1.dart' as api; |
class HttpServerMock extends http.BaseClient { |
core.Function _callback; |
@@ -51,4441 +51,2536 @@ http.StreamedResponse stringResponse( |
return new http.StreamedResponse(stream, status, headers: headers); |
} |
-buildUnnamed1500() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
+buildUnnamed1774() { |
+ var o = new core.List<core.Object>(); |
+ o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
+ o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
return o; |
} |
-checkUnnamed1500(core.List<core.String> o) { |
+checkUnnamed1774(core.List<core.Object> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- unittest.expect(o[0], unittest.equals('foo')); |
- unittest.expect(o[1], unittest.equals('foo')); |
-} |
- |
-core.int buildCounterAlignReadGroupSetsRequest = 0; |
-buildAlignReadGroupSetsRequest() { |
- var o = new api.AlignReadGroupSetsRequest(); |
- buildCounterAlignReadGroupSetsRequest++; |
- if (buildCounterAlignReadGroupSetsRequest < 3) { |
- o.bamSourceUris = buildUnnamed1500(); |
- o.datasetId = "foo"; |
- o.interleavedFastqSource = buildInterleavedFastqSource(); |
- o.pairedFastqSource = buildPairedFastqSource(); |
- o.readGroupSetId = "foo"; |
- } |
- buildCounterAlignReadGroupSetsRequest--; |
- return o; |
-} |
- |
-checkAlignReadGroupSetsRequest(api.AlignReadGroupSetsRequest o) { |
- buildCounterAlignReadGroupSetsRequest++; |
- if (buildCounterAlignReadGroupSetsRequest < 3) { |
- checkUnnamed1500(o.bamSourceUris); |
- unittest.expect(o.datasetId, unittest.equals('foo')); |
- checkInterleavedFastqSource(o.interleavedFastqSource); |
- checkPairedFastqSource(o.pairedFastqSource); |
- unittest.expect(o.readGroupSetId, unittest.equals('foo')); |
- } |
- buildCounterAlignReadGroupSetsRequest--; |
+ var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); |
+ var casted2 = (o[1]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); |
} |
-core.int buildCounterAlignReadGroupSetsResponse = 0; |
-buildAlignReadGroupSetsResponse() { |
- var o = new api.AlignReadGroupSetsResponse(); |
- buildCounterAlignReadGroupSetsResponse++; |
- if (buildCounterAlignReadGroupSetsResponse < 3) { |
- o.jobId = "foo"; |
- } |
- buildCounterAlignReadGroupSetsResponse--; |
+buildUnnamed1775() { |
+ var o = new core.Map<core.String, core.List<core.Object>>(); |
+ o["x"] = buildUnnamed1774(); |
+ o["y"] = buildUnnamed1774(); |
return o; |
} |
-checkAlignReadGroupSetsResponse(api.AlignReadGroupSetsResponse o) { |
- buildCounterAlignReadGroupSetsResponse++; |
- if (buildCounterAlignReadGroupSetsResponse < 3) { |
- unittest.expect(o.jobId, unittest.equals('foo')); |
- } |
- buildCounterAlignReadGroupSetsResponse--; |
+checkUnnamed1775(core.Map<core.String, core.List<core.Object>> o) { |
+ unittest.expect(o, unittest.hasLength(2)); |
+ checkUnnamed1774(o["x"]); |
+ checkUnnamed1774(o["y"]); |
} |
-buildUnnamed1501() { |
+buildUnnamed1776() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1501(core.List<core.String> o) { |
+checkUnnamed1776(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')); |
} |
-buildUnnamed1502() { |
- var o = new core.Map<core.String, core.List<core.String>>(); |
- o["x"] = buildUnnamed1501(); |
- o["y"] = buildUnnamed1501(); |
- return o; |
-} |
- |
-checkUnnamed1502(core.Map<core.String, core.List<core.String>> o) { |
- unittest.expect(o, unittest.hasLength(2)); |
- checkUnnamed1501(o["x"]); |
- checkUnnamed1501(o["y"]); |
-} |
- |
-core.int buildCounterAnnotation = 0; |
-buildAnnotation() { |
- var o = new api.Annotation(); |
- buildCounterAnnotation++; |
- if (buildCounterAnnotation < 3) { |
- o.annotationSetId = "foo"; |
+core.int buildCounterCallSet = 0; |
+buildCallSet() { |
+ var o = new api.CallSet(); |
+ buildCounterCallSet++; |
+ if (buildCounterCallSet < 3) { |
+ o.created = "foo"; |
o.id = "foo"; |
- o.info = buildUnnamed1502(); |
+ o.info = buildUnnamed1775(); |
o.name = "foo"; |
- o.position = buildRangePosition(); |
- o.transcript = buildTranscript(); |
- o.type = "foo"; |
- o.variant = buildVariantAnnotation(); |
+ o.sampleId = "foo"; |
+ o.variantSetIds = buildUnnamed1776(); |
} |
- buildCounterAnnotation--; |
+ buildCounterCallSet--; |
return o; |
} |
-checkAnnotation(api.Annotation o) { |
- buildCounterAnnotation++; |
- if (buildCounterAnnotation < 3) { |
- unittest.expect(o.annotationSetId, unittest.equals('foo')); |
+checkCallSet(api.CallSet o) { |
+ buildCounterCallSet++; |
+ if (buildCounterCallSet < 3) { |
+ unittest.expect(o.created, unittest.equals('foo')); |
unittest.expect(o.id, unittest.equals('foo')); |
- checkUnnamed1502(o.info); |
+ checkUnnamed1775(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); |
+ unittest.expect(o.sampleId, unittest.equals('foo')); |
+ checkUnnamed1776(o.variantSetIds); |
} |
- buildCounterAnnotation--; |
-} |
- |
-buildUnnamed1503() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
- return o; |
-} |
- |
-checkUnnamed1503(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')); |
+ buildCounterCallSet--; |
} |
-buildUnnamed1504() { |
- var o = new core.Map<core.String, core.List<core.String>>(); |
- o["x"] = buildUnnamed1503(); |
- o["y"] = buildUnnamed1503(); |
+core.int buildCounterCancelOperationRequest = 0; |
+buildCancelOperationRequest() { |
+ var o = new api.CancelOperationRequest(); |
+ buildCounterCancelOperationRequest++; |
+ if (buildCounterCancelOperationRequest < 3) { |
+ } |
+ buildCounterCancelOperationRequest--; |
return o; |
} |
-checkUnnamed1504(core.Map<core.String, core.List<core.String>> o) { |
- unittest.expect(o, unittest.hasLength(2)); |
- checkUnnamed1503(o["x"]); |
- checkUnnamed1503(o["y"]); |
+checkCancelOperationRequest(api.CancelOperationRequest o) { |
+ buildCounterCancelOperationRequest++; |
+ if (buildCounterCancelOperationRequest < 3) { |
+ } |
+ buildCounterCancelOperationRequest--; |
} |
-core.int buildCounterAnnotationSet = 0; |
-buildAnnotationSet() { |
- var o = new api.AnnotationSet(); |
- buildCounterAnnotationSet++; |
- if (buildCounterAnnotationSet < 3) { |
- o.datasetId = "foo"; |
- o.id = "foo"; |
- o.info = buildUnnamed1504(); |
- o.name = "foo"; |
- o.referenceSetId = "foo"; |
- o.sourceUri = "foo"; |
- o.type = "foo"; |
+core.int buildCounterCigarUnit = 0; |
+buildCigarUnit() { |
+ var o = new api.CigarUnit(); |
+ buildCounterCigarUnit++; |
+ if (buildCounterCigarUnit < 3) { |
+ o.operation = "foo"; |
+ o.operationLength = "foo"; |
+ o.referenceSequence = "foo"; |
} |
- buildCounterAnnotationSet--; |
+ buildCounterCigarUnit--; |
return o; |
} |
-checkAnnotationSet(api.AnnotationSet o) { |
- buildCounterAnnotationSet++; |
- if (buildCounterAnnotationSet < 3) { |
- unittest.expect(o.datasetId, unittest.equals('foo')); |
- unittest.expect(o.id, unittest.equals('foo')); |
- checkUnnamed1504(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')); |
+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')); |
} |
- buildCounterAnnotationSet--; |
+ buildCounterCigarUnit--; |
} |
-buildUnnamed1505() { |
- var o = new core.List<api.BatchAnnotationsResponseEntry>(); |
- o.add(buildBatchAnnotationsResponseEntry()); |
- o.add(buildBatchAnnotationsResponseEntry()); |
+core.int buildCounterCoverageBucket = 0; |
+buildCoverageBucket() { |
+ var o = new api.CoverageBucket(); |
+ buildCounterCoverageBucket++; |
+ if (buildCounterCoverageBucket < 3) { |
+ o.meanCoverage = 42.0; |
+ o.range = buildRange(); |
+ } |
+ buildCounterCoverageBucket--; |
return o; |
} |
-checkUnnamed1505(core.List<api.BatchAnnotationsResponseEntry> o) { |
- unittest.expect(o, unittest.hasLength(2)); |
- checkBatchAnnotationsResponseEntry(o[0]); |
- checkBatchAnnotationsResponseEntry(o[1]); |
+checkCoverageBucket(api.CoverageBucket o) { |
+ buildCounterCoverageBucket++; |
+ if (buildCounterCoverageBucket < 3) { |
+ unittest.expect(o.meanCoverage, unittest.equals(42.0)); |
+ checkRange(o.range); |
+ } |
+ buildCounterCoverageBucket--; |
} |
-core.int buildCounterBatchAnnotationsResponse = 0; |
-buildBatchAnnotationsResponse() { |
- var o = new api.BatchAnnotationsResponse(); |
- buildCounterBatchAnnotationsResponse++; |
- if (buildCounterBatchAnnotationsResponse < 3) { |
- o.entries = buildUnnamed1505(); |
+core.int buildCounterDataset = 0; |
+buildDataset() { |
+ var o = new api.Dataset(); |
+ buildCounterDataset++; |
+ if (buildCounterDataset < 3) { |
+ o.createTime = "foo"; |
+ o.id = "foo"; |
+ o.name = "foo"; |
+ o.projectId = "foo"; |
} |
- buildCounterBatchAnnotationsResponse--; |
+ buildCounterDataset--; |
return o; |
} |
-checkBatchAnnotationsResponse(api.BatchAnnotationsResponse o) { |
- buildCounterBatchAnnotationsResponse++; |
- if (buildCounterBatchAnnotationsResponse < 3) { |
- checkUnnamed1505(o.entries); |
+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.name, unittest.equals('foo')); |
+ unittest.expect(o.projectId, unittest.equals('foo')); |
} |
- buildCounterBatchAnnotationsResponse--; |
+ buildCounterDataset--; |
} |
-core.int buildCounterBatchAnnotationsResponseEntry = 0; |
-buildBatchAnnotationsResponseEntry() { |
- var o = new api.BatchAnnotationsResponseEntry(); |
- buildCounterBatchAnnotationsResponseEntry++; |
- if (buildCounterBatchAnnotationsResponseEntry < 3) { |
- o.annotation = buildAnnotation(); |
- o.status = buildBatchAnnotationsResponseEntryStatus(); |
+core.int buildCounterEmpty = 0; |
+buildEmpty() { |
+ var o = new api.Empty(); |
+ buildCounterEmpty++; |
+ if (buildCounterEmpty < 3) { |
} |
- buildCounterBatchAnnotationsResponseEntry--; |
+ buildCounterEmpty--; |
return o; |
} |
-checkBatchAnnotationsResponseEntry(api.BatchAnnotationsResponseEntry o) { |
- buildCounterBatchAnnotationsResponseEntry++; |
- if (buildCounterBatchAnnotationsResponseEntry < 3) { |
- checkAnnotation(o.annotation); |
- checkBatchAnnotationsResponseEntryStatus(o.status); |
+checkEmpty(api.Empty o) { |
+ buildCounterEmpty++; |
+ if (buildCounterEmpty < 3) { |
} |
- buildCounterBatchAnnotationsResponseEntry--; |
+ buildCounterEmpty--; |
} |
-core.int buildCounterBatchAnnotationsResponseEntryStatus = 0; |
-buildBatchAnnotationsResponseEntryStatus() { |
- var o = new api.BatchAnnotationsResponseEntryStatus(); |
- buildCounterBatchAnnotationsResponseEntryStatus++; |
- if (buildCounterBatchAnnotationsResponseEntryStatus < 3) { |
- o.code = 42; |
- o.message = "foo"; |
+core.int buildCounterExperiment = 0; |
+buildExperiment() { |
+ var o = new api.Experiment(); |
+ buildCounterExperiment++; |
+ if (buildCounterExperiment < 3) { |
+ o.instrumentModel = "foo"; |
+ o.libraryId = "foo"; |
+ o.platformUnit = "foo"; |
+ o.sequencingCenter = "foo"; |
} |
- buildCounterBatchAnnotationsResponseEntryStatus--; |
+ buildCounterExperiment--; |
return o; |
} |
-checkBatchAnnotationsResponseEntryStatus(api.BatchAnnotationsResponseEntryStatus o) { |
- buildCounterBatchAnnotationsResponseEntryStatus++; |
- if (buildCounterBatchAnnotationsResponseEntryStatus < 3) { |
- unittest.expect(o.code, unittest.equals(42)); |
- unittest.expect(o.message, unittest.equals('foo')); |
+checkExperiment(api.Experiment o) { |
+ buildCounterExperiment++; |
+ if (buildCounterExperiment < 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')); |
} |
- buildCounterBatchAnnotationsResponseEntryStatus--; |
+ buildCounterExperiment--; |
} |
-buildUnnamed1506() { |
- var o = new core.List<api.Annotation>(); |
- o.add(buildAnnotation()); |
- o.add(buildAnnotation()); |
+buildUnnamed1777() { |
+ var o = new core.List<core.String>(); |
+ o.add("foo"); |
+ o.add("foo"); |
return o; |
} |
-checkUnnamed1506(core.List<api.Annotation> o) { |
+checkUnnamed1777(core.List<core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- checkAnnotation(o[0]); |
- checkAnnotation(o[1]); |
+ unittest.expect(o[0], unittest.equals('foo')); |
+ unittest.expect(o[1], unittest.equals('foo')); |
} |
-core.int buildCounterBatchCreateAnnotationsRequest = 0; |
-buildBatchCreateAnnotationsRequest() { |
- var o = new api.BatchCreateAnnotationsRequest(); |
- buildCounterBatchCreateAnnotationsRequest++; |
- if (buildCounterBatchCreateAnnotationsRequest < 3) { |
- o.annotations = buildUnnamed1506(); |
+core.int buildCounterExportReadGroupSetRequest = 0; |
+buildExportReadGroupSetRequest() { |
+ var o = new api.ExportReadGroupSetRequest(); |
+ buildCounterExportReadGroupSetRequest++; |
+ if (buildCounterExportReadGroupSetRequest < 3) { |
+ o.exportUri = "foo"; |
+ o.projectId = "foo"; |
+ o.referenceNames = buildUnnamed1777(); |
} |
- buildCounterBatchCreateAnnotationsRequest--; |
+ buildCounterExportReadGroupSetRequest--; |
return o; |
} |
-checkBatchCreateAnnotationsRequest(api.BatchCreateAnnotationsRequest o) { |
- buildCounterBatchCreateAnnotationsRequest++; |
- if (buildCounterBatchCreateAnnotationsRequest < 3) { |
- checkUnnamed1506(o.annotations); |
+checkExportReadGroupSetRequest(api.ExportReadGroupSetRequest o) { |
+ buildCounterExportReadGroupSetRequest++; |
+ if (buildCounterExportReadGroupSetRequest < 3) { |
+ unittest.expect(o.exportUri, unittest.equals('foo')); |
+ unittest.expect(o.projectId, unittest.equals('foo')); |
+ checkUnnamed1777(o.referenceNames); |
} |
- buildCounterBatchCreateAnnotationsRequest--; |
+ buildCounterExportReadGroupSetRequest--; |
} |
-buildUnnamed1507() { |
- var o = new core.List<core.int>(); |
- o.add(42); |
- o.add(42); |
+buildUnnamed1778() { |
+ var o = new core.List<core.String>(); |
+ o.add("foo"); |
+ o.add("foo"); |
return o; |
} |
-checkUnnamed1507(core.List<core.int> o) { |
+checkUnnamed1778(core.List<core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- unittest.expect(o[0], unittest.equals(42)); |
- unittest.expect(o[1], unittest.equals(42)); |
+ unittest.expect(o[0], unittest.equals('foo')); |
+ unittest.expect(o[1], unittest.equals('foo')); |
} |
-buildUnnamed1508() { |
- var o = new core.List<core.double>(); |
- o.add(42.0); |
- o.add(42.0); |
+core.int buildCounterExportVariantSetRequest = 0; |
+buildExportVariantSetRequest() { |
+ var o = new api.ExportVariantSetRequest(); |
+ buildCounterExportVariantSetRequest++; |
+ if (buildCounterExportVariantSetRequest < 3) { |
+ o.bigqueryDataset = "foo"; |
+ o.bigqueryTable = "foo"; |
+ o.callSetIds = buildUnnamed1778(); |
+ o.format = "foo"; |
+ o.projectId = "foo"; |
+ } |
+ buildCounterExportVariantSetRequest--; |
return o; |
} |
-checkUnnamed1508(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)); |
+checkExportVariantSetRequest(api.ExportVariantSetRequest o) { |
+ buildCounterExportVariantSetRequest++; |
+ if (buildCounterExportVariantSetRequest < 3) { |
+ unittest.expect(o.bigqueryDataset, unittest.equals('foo')); |
+ unittest.expect(o.bigqueryTable, unittest.equals('foo')); |
+ checkUnnamed1778(o.callSetIds); |
+ unittest.expect(o.format, unittest.equals('foo')); |
+ unittest.expect(o.projectId, unittest.equals('foo')); |
+ } |
+ buildCounterExportVariantSetRequest--; |
} |
-buildUnnamed1509() { |
+buildUnnamed1779() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1509(core.List<core.String> o) { |
+checkUnnamed1779(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')); |
} |
-buildUnnamed1510() { |
- var o = new core.Map<core.String, core.List<core.String>>(); |
- o["x"] = buildUnnamed1509(); |
- o["y"] = buildUnnamed1509(); |
- return o; |
-} |
- |
-checkUnnamed1510(core.Map<core.String, core.List<core.String>> o) { |
- unittest.expect(o, unittest.hasLength(2)); |
- checkUnnamed1509(o["x"]); |
- checkUnnamed1509(o["y"]); |
-} |
- |
-core.int buildCounterCall = 0; |
-buildCall() { |
- var o = new api.Call(); |
- buildCounterCall++; |
- if (buildCounterCall < 3) { |
- o.callSetId = "foo"; |
- o.callSetName = "foo"; |
- o.genotype = buildUnnamed1507(); |
- o.genotypeLikelihood = buildUnnamed1508(); |
- o.info = buildUnnamed1510(); |
- o.phaseset = "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 = buildUnnamed1779(); |
} |
- buildCounterCall--; |
+ buildCounterImportReadGroupSetsRequest--; |
return o; |
} |
-checkCall(api.Call o) { |
- buildCounterCall++; |
- if (buildCounterCall < 3) { |
- unittest.expect(o.callSetId, unittest.equals('foo')); |
- unittest.expect(o.callSetName, unittest.equals('foo')); |
- checkUnnamed1507(o.genotype); |
- checkUnnamed1508(o.genotypeLikelihood); |
- checkUnnamed1510(o.info); |
- unittest.expect(o.phaseset, unittest.equals('foo')); |
+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')); |
+ checkUnnamed1779(o.sourceUris); |
} |
- buildCounterCall--; |
+ buildCounterImportReadGroupSetsRequest--; |
} |
-buildUnnamed1511() { |
+buildUnnamed1780() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1511(core.List<core.String> o) { |
+checkUnnamed1780(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 buildCounterCallReadGroupSetsRequest = 0; |
-buildCallReadGroupSetsRequest() { |
- var o = new api.CallReadGroupSetsRequest(); |
- buildCounterCallReadGroupSetsRequest++; |
- if (buildCounterCallReadGroupSetsRequest < 3) { |
- o.datasetId = "foo"; |
- o.readGroupSetId = "foo"; |
- o.sourceUris = buildUnnamed1511(); |
- } |
- buildCounterCallReadGroupSetsRequest--; |
- return o; |
-} |
- |
-checkCallReadGroupSetsRequest(api.CallReadGroupSetsRequest o) { |
- buildCounterCallReadGroupSetsRequest++; |
- if (buildCounterCallReadGroupSetsRequest < 3) { |
- unittest.expect(o.datasetId, unittest.equals('foo')); |
- unittest.expect(o.readGroupSetId, unittest.equals('foo')); |
- checkUnnamed1511(o.sourceUris); |
- } |
- buildCounterCallReadGroupSetsRequest--; |
-} |
- |
-core.int buildCounterCallReadGroupSetsResponse = 0; |
-buildCallReadGroupSetsResponse() { |
- var o = new api.CallReadGroupSetsResponse(); |
- buildCounterCallReadGroupSetsResponse++; |
- if (buildCounterCallReadGroupSetsResponse < 3) { |
- o.jobId = "foo"; |
+core.int buildCounterImportReadGroupSetsResponse = 0; |
+buildImportReadGroupSetsResponse() { |
+ var o = new api.ImportReadGroupSetsResponse(); |
+ buildCounterImportReadGroupSetsResponse++; |
+ if (buildCounterImportReadGroupSetsResponse < 3) { |
+ o.readGroupSetIds = buildUnnamed1780(); |
} |
- buildCounterCallReadGroupSetsResponse--; |
+ buildCounterImportReadGroupSetsResponse--; |
return o; |
} |
-checkCallReadGroupSetsResponse(api.CallReadGroupSetsResponse o) { |
- buildCounterCallReadGroupSetsResponse++; |
- if (buildCounterCallReadGroupSetsResponse < 3) { |
- unittest.expect(o.jobId, unittest.equals('foo')); |
+checkImportReadGroupSetsResponse(api.ImportReadGroupSetsResponse o) { |
+ buildCounterImportReadGroupSetsResponse++; |
+ if (buildCounterImportReadGroupSetsResponse < 3) { |
+ checkUnnamed1780(o.readGroupSetIds); |
} |
- buildCounterCallReadGroupSetsResponse--; |
+ buildCounterImportReadGroupSetsResponse--; |
} |
-buildUnnamed1512() { |
+buildUnnamed1781() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1512(core.List<core.String> o) { |
+checkUnnamed1781(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')); |
} |
-buildUnnamed1513() { |
- var o = new core.Map<core.String, core.List<core.String>>(); |
- o["x"] = buildUnnamed1512(); |
- o["y"] = buildUnnamed1512(); |
+core.int buildCounterImportVariantsRequest = 0; |
+buildImportVariantsRequest() { |
+ var o = new api.ImportVariantsRequest(); |
+ buildCounterImportVariantsRequest++; |
+ if (buildCounterImportVariantsRequest < 3) { |
+ o.format = "foo"; |
+ o.normalizeReferenceNames = true; |
+ o.sourceUris = buildUnnamed1781(); |
+ o.variantSetId = "foo"; |
+ } |
+ buildCounterImportVariantsRequest--; |
return o; |
} |
-checkUnnamed1513(core.Map<core.String, core.List<core.String>> o) { |
- unittest.expect(o, unittest.hasLength(2)); |
- checkUnnamed1512(o["x"]); |
- checkUnnamed1512(o["y"]); |
+checkImportVariantsRequest(api.ImportVariantsRequest o) { |
+ buildCounterImportVariantsRequest++; |
+ if (buildCounterImportVariantsRequest < 3) { |
+ unittest.expect(o.format, unittest.equals('foo')); |
+ unittest.expect(o.normalizeReferenceNames, unittest.isTrue); |
+ checkUnnamed1781(o.sourceUris); |
+ unittest.expect(o.variantSetId, unittest.equals('foo')); |
+ } |
+ buildCounterImportVariantsRequest--; |
} |
-buildUnnamed1514() { |
+buildUnnamed1782() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1514(core.List<core.String> o) { |
+checkUnnamed1782(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 = buildUnnamed1513(); |
- o.name = "foo"; |
- o.sampleId = "foo"; |
- o.variantSetIds = buildUnnamed1514(); |
+core.int buildCounterImportVariantsResponse = 0; |
+buildImportVariantsResponse() { |
+ var o = new api.ImportVariantsResponse(); |
+ buildCounterImportVariantsResponse++; |
+ if (buildCounterImportVariantsResponse < 3) { |
+ o.callSetIds = buildUnnamed1782(); |
} |
- buildCounterCallSet--; |
+ buildCounterImportVariantsResponse--; |
return o; |
} |
-checkCallSet(api.CallSet o) { |
- buildCounterCallSet++; |
- if (buildCounterCallSet < 3) { |
- unittest.expect(o.created, unittest.equals('foo')); |
- unittest.expect(o.id, unittest.equals('foo')); |
- checkUnnamed1513(o.info); |
- unittest.expect(o.name, unittest.equals('foo')); |
- unittest.expect(o.sampleId, unittest.equals('foo')); |
- checkUnnamed1514(o.variantSetIds); |
+checkImportVariantsResponse(api.ImportVariantsResponse o) { |
+ buildCounterImportVariantsResponse++; |
+ if (buildCounterImportVariantsResponse < 3) { |
+ checkUnnamed1782(o.callSetIds); |
} |
- buildCounterCallSet--; |
+ buildCounterImportVariantsResponse--; |
} |
-core.int buildCounterCigarUnit = 0; |
-buildCigarUnit() { |
- var o = new api.CigarUnit(); |
- buildCounterCigarUnit++; |
- if (buildCounterCigarUnit < 3) { |
- o.operation = "foo"; |
- o.operationLength = "foo"; |
- o.referenceSequence = "foo"; |
- } |
- buildCounterCigarUnit--; |
+buildUnnamed1783() { |
+ var o = new core.List<api.CigarUnit>(); |
+ o.add(buildCigarUnit()); |
+ o.add(buildCigarUnit()); |
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--; |
+checkUnnamed1783(core.List<api.CigarUnit> o) { |
+ unittest.expect(o, unittest.hasLength(2)); |
+ checkCigarUnit(o[0]); |
+ checkCigarUnit(o[1]); |
} |
-core.int buildCounterCoverageBucket = 0; |
-buildCoverageBucket() { |
- var o = new api.CoverageBucket(); |
- buildCounterCoverageBucket++; |
- if (buildCounterCoverageBucket < 3) { |
- o.meanCoverage = 42.0; |
- o.range = buildRange(); |
+core.int buildCounterLinearAlignment = 0; |
+buildLinearAlignment() { |
+ var o = new api.LinearAlignment(); |
+ buildCounterLinearAlignment++; |
+ if (buildCounterLinearAlignment < 3) { |
+ o.cigar = buildUnnamed1783(); |
+ o.mappingQuality = 42; |
+ o.position = buildPosition(); |
} |
- buildCounterCoverageBucket--; |
+ buildCounterLinearAlignment--; |
return o; |
} |
-checkCoverageBucket(api.CoverageBucket o) { |
- buildCounterCoverageBucket++; |
- if (buildCounterCoverageBucket < 3) { |
- unittest.expect(o.meanCoverage, unittest.equals(42.0)); |
- checkRange(o.range); |
+checkLinearAlignment(api.LinearAlignment o) { |
+ buildCounterLinearAlignment++; |
+ if (buildCounterLinearAlignment < 3) { |
+ checkUnnamed1783(o.cigar); |
+ unittest.expect(o.mappingQuality, unittest.equals(42)); |
+ checkPosition(o.position); |
} |
- buildCounterCoverageBucket--; |
+ buildCounterLinearAlignment--; |
} |
-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"; |
+core.int buildCounterListBasesResponse = 0; |
+buildListBasesResponse() { |
+ var o = new api.ListBasesResponse(); |
+ buildCounterListBasesResponse++; |
+ if (buildCounterListBasesResponse < 3) { |
+ o.nextPageToken = "foo"; |
+ o.offset = "foo"; |
+ o.sequence = "foo"; |
} |
- buildCounterDataset--; |
+ buildCounterListBasesResponse--; |
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')); |
+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')); |
} |
- buildCounterDataset--; |
+ buildCounterListBasesResponse--; |
} |
-buildUnnamed1515() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
+buildUnnamed1784() { |
+ var o = new core.List<api.CoverageBucket>(); |
+ o.add(buildCoverageBucket()); |
+ o.add(buildCoverageBucket()); |
return o; |
} |
-checkUnnamed1515(core.List<core.String> o) { |
+checkUnnamed1784(core.List<api.CoverageBucket> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- unittest.expect(o[0], unittest.equals('foo')); |
- unittest.expect(o[1], unittest.equals('foo')); |
+ checkCoverageBucket(o[0]); |
+ checkCoverageBucket(o[1]); |
} |
-buildUnnamed1516() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
+core.int buildCounterListCoverageBucketsResponse = 0; |
+buildListCoverageBucketsResponse() { |
+ var o = new api.ListCoverageBucketsResponse(); |
+ buildCounterListCoverageBucketsResponse++; |
+ if (buildCounterListCoverageBucketsResponse < 3) { |
+ o.bucketWidth = "foo"; |
+ o.coverageBuckets = buildUnnamed1784(); |
+ o.nextPageToken = "foo"; |
+ } |
+ buildCounterListCoverageBucketsResponse--; |
+ return o; |
+} |
+ |
+checkListCoverageBucketsResponse(api.ListCoverageBucketsResponse o) { |
+ buildCounterListCoverageBucketsResponse++; |
+ if (buildCounterListCoverageBucketsResponse < 3) { |
+ unittest.expect(o.bucketWidth, unittest.equals('foo')); |
+ checkUnnamed1784(o.coverageBuckets); |
+ unittest.expect(o.nextPageToken, unittest.equals('foo')); |
+ } |
+ buildCounterListCoverageBucketsResponse--; |
+} |
+ |
+buildUnnamed1785() { |
+ var o = new core.List<api.Dataset>(); |
+ o.add(buildDataset()); |
+ o.add(buildDataset()); |
return o; |
} |
-checkUnnamed1516(core.List<core.String> o) { |
+checkUnnamed1785(core.List<api.Dataset> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- unittest.expect(o[0], unittest.equals('foo')); |
- unittest.expect(o[1], unittest.equals('foo')); |
+ checkDataset(o[0]); |
+ checkDataset(o[1]); |
} |
-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 = buildUnnamed1515(); |
- o.projectNumber = "foo"; |
- o.sourceUris = buildUnnamed1516(); |
+core.int buildCounterListDatasetsResponse = 0; |
+buildListDatasetsResponse() { |
+ var o = new api.ListDatasetsResponse(); |
+ buildCounterListDatasetsResponse++; |
+ if (buildCounterListDatasetsResponse < 3) { |
+ o.datasets = buildUnnamed1785(); |
+ o.nextPageToken = "foo"; |
} |
- buildCounterExperimentalCreateJobRequest--; |
+ buildCounterListDatasetsResponse--; |
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')); |
- checkUnnamed1515(o.pairedSourceUris); |
- unittest.expect(o.projectNumber, unittest.equals('foo')); |
- checkUnnamed1516(o.sourceUris); |
+checkListDatasetsResponse(api.ListDatasetsResponse o) { |
+ buildCounterListDatasetsResponse++; |
+ if (buildCounterListDatasetsResponse < 3) { |
+ checkUnnamed1785(o.datasets); |
+ unittest.expect(o.nextPageToken, unittest.equals('foo')); |
} |
- buildCounterExperimentalCreateJobRequest--; |
+ buildCounterListDatasetsResponse--; |
+} |
+ |
+buildUnnamed1786() { |
+ var o = new core.List<api.Operation>(); |
+ o.add(buildOperation()); |
+ o.add(buildOperation()); |
+ return o; |
+} |
+ |
+checkUnnamed1786(core.List<api.Operation> o) { |
+ unittest.expect(o, unittest.hasLength(2)); |
+ checkOperation(o[0]); |
+ checkOperation(o[1]); |
} |
-core.int buildCounterExperimentalCreateJobResponse = 0; |
-buildExperimentalCreateJobResponse() { |
- var o = new api.ExperimentalCreateJobResponse(); |
- buildCounterExperimentalCreateJobResponse++; |
- if (buildCounterExperimentalCreateJobResponse < 3) { |
- o.jobId = "foo"; |
+core.int buildCounterListOperationsResponse = 0; |
+buildListOperationsResponse() { |
+ var o = new api.ListOperationsResponse(); |
+ buildCounterListOperationsResponse++; |
+ if (buildCounterListOperationsResponse < 3) { |
+ o.nextPageToken = "foo"; |
+ o.operations = buildUnnamed1786(); |
} |
- buildCounterExperimentalCreateJobResponse--; |
+ buildCounterListOperationsResponse--; |
return o; |
} |
-checkExperimentalCreateJobResponse(api.ExperimentalCreateJobResponse o) { |
- buildCounterExperimentalCreateJobResponse++; |
- if (buildCounterExperimentalCreateJobResponse < 3) { |
- unittest.expect(o.jobId, unittest.equals('foo')); |
+checkListOperationsResponse(api.ListOperationsResponse o) { |
+ buildCounterListOperationsResponse++; |
+ if (buildCounterListOperationsResponse < 3) { |
+ unittest.expect(o.nextPageToken, unittest.equals('foo')); |
+ checkUnnamed1786(o.operations); |
} |
- buildCounterExperimentalCreateJobResponse--; |
+ buildCounterListOperationsResponse--; |
} |
-buildUnnamed1517() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
+buildUnnamed1787() { |
+ var o = new core.Map<core.String, core.Object>(); |
+ o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
+ o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
return o; |
} |
-checkUnnamed1517(core.List<core.String> o) { |
+checkUnnamed1787(core.Map<core.String, core.Object> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- unittest.expect(o[0], unittest.equals('foo')); |
- unittest.expect(o[1], unittest.equals('foo')); |
+ var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); |
+ var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); |
} |
-buildUnnamed1518() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
+buildUnnamed1788() { |
+ var o = new core.Map<core.String, core.Object>(); |
+ o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
+ o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
return o; |
} |
-checkUnnamed1518(core.List<core.String> o) { |
+checkUnnamed1788(core.Map<core.String, core.Object> 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 = buildUnnamed1517(); |
- o.referenceNames = buildUnnamed1518(); |
+ var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo')); |
+ var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo')); |
+} |
+ |
+core.int buildCounterOperation = 0; |
+buildOperation() { |
+ var o = new api.Operation(); |
+ buildCounterOperation++; |
+ if (buildCounterOperation < 3) { |
+ o.done = true; |
+ o.error = buildStatus(); |
+ o.metadata = buildUnnamed1787(); |
+ o.name = "foo"; |
+ o.response = buildUnnamed1788(); |
} |
- buildCounterExportReadGroupSetsRequest--; |
+ buildCounterOperation--; |
return o; |
} |
-checkExportReadGroupSetsRequest(api.ExportReadGroupSetsRequest o) { |
- buildCounterExportReadGroupSetsRequest++; |
- if (buildCounterExportReadGroupSetsRequest < 3) { |
- unittest.expect(o.exportUri, unittest.equals('foo')); |
- unittest.expect(o.projectNumber, unittest.equals('foo')); |
- checkUnnamed1517(o.readGroupSetIds); |
- checkUnnamed1518(o.referenceNames); |
+checkOperation(api.Operation o) { |
+ buildCounterOperation++; |
+ if (buildCounterOperation < 3) { |
+ unittest.expect(o.done, unittest.isTrue); |
+ checkStatus(o.error); |
+ checkUnnamed1787(o.metadata); |
+ unittest.expect(o.name, unittest.equals('foo')); |
+ checkUnnamed1788(o.response); |
} |
- buildCounterExportReadGroupSetsRequest--; |
+ buildCounterOperation--; |
} |
-core.int buildCounterExportReadGroupSetsResponse = 0; |
-buildExportReadGroupSetsResponse() { |
- var o = new api.ExportReadGroupSetsResponse(); |
- buildCounterExportReadGroupSetsResponse++; |
- if (buildCounterExportReadGroupSetsResponse < 3) { |
- o.jobId = "foo"; |
+core.int buildCounterOperationEvent = 0; |
+buildOperationEvent() { |
+ var o = new api.OperationEvent(); |
+ buildCounterOperationEvent++; |
+ if (buildCounterOperationEvent < 3) { |
+ o.description = "foo"; |
} |
- buildCounterExportReadGroupSetsResponse--; |
+ buildCounterOperationEvent--; |
return o; |
} |
-checkExportReadGroupSetsResponse(api.ExportReadGroupSetsResponse o) { |
- buildCounterExportReadGroupSetsResponse++; |
- if (buildCounterExportReadGroupSetsResponse < 3) { |
- unittest.expect(o.jobId, unittest.equals('foo')); |
+checkOperationEvent(api.OperationEvent o) { |
+ buildCounterOperationEvent++; |
+ if (buildCounterOperationEvent < 3) { |
+ unittest.expect(o.description, unittest.equals('foo')); |
} |
- buildCounterExportReadGroupSetsResponse--; |
+ buildCounterOperationEvent--; |
} |
-buildUnnamed1519() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
+buildUnnamed1789() { |
+ var o = new core.List<api.OperationEvent>(); |
+ o.add(buildOperationEvent()); |
+ o.add(buildOperationEvent()); |
return o; |
} |
-checkUnnamed1519(core.List<core.String> o) { |
+checkUnnamed1789(core.List<api.OperationEvent> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- unittest.expect(o[0], unittest.equals('foo')); |
- unittest.expect(o[1], unittest.equals('foo')); |
+ checkOperationEvent(o[0]); |
+ checkOperationEvent(o[1]); |
} |
-core.int buildCounterExportVariantSetRequest = 0; |
-buildExportVariantSetRequest() { |
- var o = new api.ExportVariantSetRequest(); |
- buildCounterExportVariantSetRequest++; |
- if (buildCounterExportVariantSetRequest < 3) { |
- o.bigqueryDataset = "foo"; |
- o.bigqueryTable = "foo"; |
- o.callSetIds = buildUnnamed1519(); |
- o.format = "foo"; |
- o.projectNumber = "foo"; |
+buildUnnamed1790() { |
+ var o = new core.Map<core.String, core.Object>(); |
+ o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
+ o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
+ return o; |
+} |
+ |
+checkUnnamed1790(core.Map<core.String, core.Object> o) { |
+ unittest.expect(o, unittest.hasLength(2)); |
+ var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.expect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); |
+ var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLength(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.expect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); |
+} |
+ |
+core.int buildCounterOperationMetadata = 0; |
+buildOperationMetadata() { |
+ var o = new api.OperationMetadata(); |
+ buildCounterOperationMetadata++; |
+ if (buildCounterOperationMetadata < 3) { |
+ o.createTime = "foo"; |
+ o.events = buildUnnamed1789(); |
+ o.projectId = "foo"; |
+ o.request = buildUnnamed1790(); |
} |
- buildCounterExportVariantSetRequest--; |
+ buildCounterOperationMetadata--; |
return o; |
} |
-checkExportVariantSetRequest(api.ExportVariantSetRequest o) { |
- buildCounterExportVariantSetRequest++; |
- if (buildCounterExportVariantSetRequest < 3) { |
- unittest.expect(o.bigqueryDataset, unittest.equals('foo')); |
- unittest.expect(o.bigqueryTable, unittest.equals('foo')); |
- checkUnnamed1519(o.callSetIds); |
- unittest.expect(o.format, unittest.equals('foo')); |
- unittest.expect(o.projectNumber, unittest.equals('foo')); |
+checkOperationMetadata(api.OperationMetadata o) { |
+ buildCounterOperationMetadata++; |
+ if (buildCounterOperationMetadata < 3) { |
+ unittest.expect(o.createTime, unittest.equals('foo')); |
+ checkUnnamed1789(o.events); |
+ unittest.expect(o.projectId, unittest.equals('foo')); |
+ checkUnnamed1790(o.request); |
} |
- buildCounterExportVariantSetRequest--; |
+ buildCounterOperationMetadata--; |
} |
-core.int buildCounterExportVariantSetResponse = 0; |
-buildExportVariantSetResponse() { |
- var o = new api.ExportVariantSetResponse(); |
- buildCounterExportVariantSetResponse++; |
- if (buildCounterExportVariantSetResponse < 3) { |
- o.jobId = "foo"; |
+core.int buildCounterPosition = 0; |
+buildPosition() { |
+ var o = new api.Position(); |
+ buildCounterPosition++; |
+ if (buildCounterPosition < 3) { |
+ o.position = "foo"; |
+ o.referenceName = "foo"; |
+ o.reverseStrand = true; |
} |
- buildCounterExportVariantSetResponse--; |
+ buildCounterPosition--; |
return o; |
} |
-checkExportVariantSetResponse(api.ExportVariantSetResponse o) { |
- buildCounterExportVariantSetResponse++; |
- if (buildCounterExportVariantSetResponse < 3) { |
- unittest.expect(o.jobId, unittest.equals('foo')); |
+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); |
} |
- buildCounterExportVariantSetResponse--; |
+ buildCounterPosition--; |
} |
-core.int buildCounterExternalId = 0; |
-buildExternalId() { |
- var o = new api.ExternalId(); |
- buildCounterExternalId++; |
- if (buildCounterExternalId < 3) { |
+core.int buildCounterProgram = 0; |
+buildProgram() { |
+ var o = new api.Program(); |
+ buildCounterProgram++; |
+ if (buildCounterProgram < 3) { |
+ o.commandLine = "foo"; |
o.id = "foo"; |
- o.sourceName = "foo"; |
+ o.name = "foo"; |
+ o.prevProgramId = "foo"; |
+ o.version = "foo"; |
} |
- buildCounterExternalId--; |
+ buildCounterProgram--; |
return o; |
} |
-checkExternalId(api.ExternalId o) { |
- buildCounterExternalId++; |
- if (buildCounterExternalId < 3) { |
+checkProgram(api.Program o) { |
+ buildCounterProgram++; |
+ if (buildCounterProgram < 3) { |
+ unittest.expect(o.commandLine, unittest.equals('foo')); |
unittest.expect(o.id, unittest.equals('foo')); |
- unittest.expect(o.sourceName, unittest.equals('foo')); |
+ unittest.expect(o.name, unittest.equals('foo')); |
+ unittest.expect(o.prevProgramId, unittest.equals('foo')); |
+ unittest.expect(o.version, unittest.equals('foo')); |
} |
- buildCounterExternalId--; |
+ buildCounterProgram--; |
} |
-core.int buildCounterFastqMetadata = 0; |
-buildFastqMetadata() { |
- var o = new api.FastqMetadata(); |
- buildCounterFastqMetadata++; |
- if (buildCounterFastqMetadata < 3) { |
- o.libraryName = "foo"; |
- o.platformName = "foo"; |
- o.platformUnit = "foo"; |
- o.readGroupName = "foo"; |
- o.sampleName = "foo"; |
+core.int buildCounterRange = 0; |
+buildRange() { |
+ var o = new api.Range(); |
+ buildCounterRange++; |
+ if (buildCounterRange < 3) { |
+ o.end = "foo"; |
+ o.referenceName = "foo"; |
+ o.start = "foo"; |
} |
- buildCounterFastqMetadata--; |
+ buildCounterRange--; |
return o; |
} |
-checkFastqMetadata(api.FastqMetadata o) { |
- buildCounterFastqMetadata++; |
- if (buildCounterFastqMetadata < 3) { |
- unittest.expect(o.libraryName, unittest.equals('foo')); |
- unittest.expect(o.platformName, unittest.equals('foo')); |
- unittest.expect(o.platformUnit, unittest.equals('foo')); |
- unittest.expect(o.readGroupName, unittest.equals('foo')); |
- unittest.expect(o.sampleName, unittest.equals('foo')); |
+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')); |
} |
- buildCounterFastqMetadata--; |
+ buildCounterRange--; |
} |
-buildUnnamed1520() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
+buildUnnamed1791() { |
+ var o = new core.List<core.int>(); |
+ o.add(42); |
+ o.add(42); |
return o; |
} |
-checkUnnamed1520(core.List<core.String> o) { |
+checkUnnamed1791(core.List<core.int> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- unittest.expect(o[0], unittest.equals('foo')); |
- unittest.expect(o[1], unittest.equals('foo')); |
+ unittest.expect(o[0], unittest.equals(42)); |
+ unittest.expect(o[1], unittest.equals(42)); |
} |
-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 = buildUnnamed1520(); |
- } |
- buildCounterImportReadGroupSetsRequest--; |
+buildUnnamed1792() { |
+ var o = new core.List<core.Object>(); |
+ o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
+ o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
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')); |
- checkUnnamed1520(o.sourceUris); |
- } |
- buildCounterImportReadGroupSetsRequest--; |
+checkUnnamed1792(core.List<core.Object> o) { |
+ unittest.expect(o, unittest.hasLength(2)); |
+ var casted9 = (o[0]) as core.Map; unittest.expect(casted9, unittest.hasLength(3)); unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); unittest.expect(casted9["bool"], unittest.equals(true)); unittest.expect(casted9["string"], unittest.equals('foo')); |
+ var casted10 = (o[1]) as core.Map; unittest.expect(casted10, unittest.hasLength(3)); unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); unittest.expect(casted10["bool"], unittest.equals(true)); unittest.expect(casted10["string"], unittest.equals('foo')); |
} |
-core.int buildCounterImportReadGroupSetsResponse = 0; |
-buildImportReadGroupSetsResponse() { |
- var o = new api.ImportReadGroupSetsResponse(); |
- buildCounterImportReadGroupSetsResponse++; |
- if (buildCounterImportReadGroupSetsResponse < 3) { |
- o.jobId = "foo"; |
+buildUnnamed1793() { |
+ var o = new core.Map<core.String, core.List<core.Object>>(); |
+ o["x"] = buildUnnamed1792(); |
+ o["y"] = buildUnnamed1792(); |
+ return o; |
+} |
+ |
+checkUnnamed1793(core.Map<core.String, core.List<core.Object>> o) { |
+ unittest.expect(o, unittest.hasLength(2)); |
+ checkUnnamed1792(o["x"]); |
+ checkUnnamed1792(o["y"]); |
+} |
+ |
+core.int buildCounterRead = 0; |
+buildRead() { |
+ var o = new api.Read(); |
+ buildCounterRead++; |
+ if (buildCounterRead < 3) { |
+ o.alignedQuality = buildUnnamed1791(); |
+ o.alignedSequence = "foo"; |
+ o.alignment = buildLinearAlignment(); |
+ o.duplicateFragment = true; |
+ o.failedVendorQualityChecks = true; |
+ o.fragmentLength = 42; |
+ o.fragmentName = "foo"; |
+ o.id = "foo"; |
+ o.info = buildUnnamed1793(); |
+ o.nextMatePosition = buildPosition(); |
+ o.numberReads = 42; |
+ o.properPlacement = true; |
+ o.readGroupId = "foo"; |
+ o.readGroupSetId = "foo"; |
+ o.readNumber = 42; |
+ o.secondaryAlignment = true; |
+ o.supplementaryAlignment = true; |
} |
- buildCounterImportReadGroupSetsResponse--; |
+ buildCounterRead--; |
return o; |
} |
-checkImportReadGroupSetsResponse(api.ImportReadGroupSetsResponse o) { |
- buildCounterImportReadGroupSetsResponse++; |
- if (buildCounterImportReadGroupSetsResponse < 3) { |
- unittest.expect(o.jobId, unittest.equals('foo')); |
+checkRead(api.Read o) { |
+ buildCounterRead++; |
+ if (buildCounterRead < 3) { |
+ checkUnnamed1791(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')); |
+ checkUnnamed1793(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); |
} |
- buildCounterImportReadGroupSetsResponse--; |
+ buildCounterRead--; |
} |
-buildUnnamed1521() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
+buildUnnamed1794() { |
+ var o = new core.List<core.Object>(); |
+ o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
+ o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
return o; |
} |
-checkUnnamed1521(core.List<core.String> o) { |
+checkUnnamed1794(core.List<core.Object> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- unittest.expect(o[0], unittest.equals('foo')); |
- unittest.expect(o[1], unittest.equals('foo')); |
+ var casted11 = (o[0]) as core.Map; unittest.expect(casted11, unittest.hasLength(3)); unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); unittest.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["string"], unittest.equals('foo')); |
+ var casted12 = (o[1]) as core.Map; unittest.expect(casted12, unittest.hasLength(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); unittest.expect(casted12["bool"], unittest.equals(true)); unittest.expect(casted12["string"], 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 = buildUnnamed1521(); |
- } |
- buildCounterImportVariantsRequest--; |
+buildUnnamed1795() { |
+ var o = new core.Map<core.String, core.List<core.Object>>(); |
+ o["x"] = buildUnnamed1794(); |
+ o["y"] = buildUnnamed1794(); |
return o; |
} |
-checkImportVariantsRequest(api.ImportVariantsRequest o) { |
- buildCounterImportVariantsRequest++; |
- if (buildCounterImportVariantsRequest < 3) { |
- unittest.expect(o.format, unittest.equals('foo')); |
- unittest.expect(o.normalizeReferenceNames, unittest.isTrue); |
- checkUnnamed1521(o.sourceUris); |
- } |
- buildCounterImportVariantsRequest--; |
+checkUnnamed1795(core.Map<core.String, core.List<core.Object>> o) { |
+ unittest.expect(o, unittest.hasLength(2)); |
+ checkUnnamed1794(o["x"]); |
+ checkUnnamed1794(o["y"]); |
} |
-core.int buildCounterImportVariantsResponse = 0; |
-buildImportVariantsResponse() { |
- var o = new api.ImportVariantsResponse(); |
- buildCounterImportVariantsResponse++; |
- if (buildCounterImportVariantsResponse < 3) { |
- o.jobId = "foo"; |
- } |
- buildCounterImportVariantsResponse--; |
+buildUnnamed1796() { |
+ var o = new core.List<api.Program>(); |
+ o.add(buildProgram()); |
+ o.add(buildProgram()); |
return o; |
} |
-checkImportVariantsResponse(api.ImportVariantsResponse o) { |
- buildCounterImportVariantsResponse++; |
- if (buildCounterImportVariantsResponse < 3) { |
- unittest.expect(o.jobId, unittest.equals('foo')); |
- } |
- buildCounterImportVariantsResponse--; |
+checkUnnamed1796(core.List<api.Program> o) { |
+ unittest.expect(o, unittest.hasLength(2)); |
+ checkProgram(o[0]); |
+ checkProgram(o[1]); |
} |
-core.int buildCounterInt32Value = 0; |
-buildInt32Value() { |
- var o = new api.Int32Value(); |
- buildCounterInt32Value++; |
- if (buildCounterInt32Value < 3) { |
- o.value = 42; |
+core.int buildCounterReadGroup = 0; |
+buildReadGroup() { |
+ var o = new api.ReadGroup(); |
+ buildCounterReadGroup++; |
+ if (buildCounterReadGroup < 3) { |
+ o.datasetId = "foo"; |
+ o.description = "foo"; |
+ o.experiment = buildExperiment(); |
+ o.id = "foo"; |
+ o.info = buildUnnamed1795(); |
+ o.name = "foo"; |
+ o.predictedInsertSize = 42; |
+ o.programs = buildUnnamed1796(); |
+ o.referenceSetId = "foo"; |
+ o.sampleId = "foo"; |
} |
- buildCounterInt32Value--; |
+ buildCounterReadGroup--; |
return o; |
} |
-checkInt32Value(api.Int32Value o) { |
- buildCounterInt32Value++; |
- if (buildCounterInt32Value < 3) { |
- unittest.expect(o.value, unittest.equals(42)); |
+checkReadGroup(api.ReadGroup o) { |
+ buildCounterReadGroup++; |
+ if (buildCounterReadGroup < 3) { |
+ unittest.expect(o.datasetId, unittest.equals('foo')); |
+ unittest.expect(o.description, unittest.equals('foo')); |
+ checkExperiment(o.experiment); |
+ unittest.expect(o.id, unittest.equals('foo')); |
+ checkUnnamed1795(o.info); |
+ unittest.expect(o.name, unittest.equals('foo')); |
+ unittest.expect(o.predictedInsertSize, unittest.equals(42)); |
+ checkUnnamed1796(o.programs); |
+ unittest.expect(o.referenceSetId, unittest.equals('foo')); |
+ unittest.expect(o.sampleId, unittest.equals('foo')); |
} |
- buildCounterInt32Value--; |
+ buildCounterReadGroup--; |
} |
-buildUnnamed1522() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
+buildUnnamed1797() { |
+ var o = new core.List<core.Object>(); |
+ o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
+ o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
return o; |
} |
-checkUnnamed1522(core.List<core.String> o) { |
+checkUnnamed1797(core.List<core.Object> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- unittest.expect(o[0], unittest.equals('foo')); |
- unittest.expect(o[1], unittest.equals('foo')); |
+ var casted13 = (o[0]) as core.Map; unittest.expect(casted13, unittest.hasLength(3)); unittest.expect(casted13["list"], unittest.equals([1, 2, 3])); unittest.expect(casted13["bool"], unittest.equals(true)); unittest.expect(casted13["string"], unittest.equals('foo')); |
+ var casted14 = (o[1]) as core.Map; unittest.expect(casted14, unittest.hasLength(3)); unittest.expect(casted14["list"], unittest.equals([1, 2, 3])); unittest.expect(casted14["bool"], unittest.equals(true)); unittest.expect(casted14["string"], unittest.equals('foo')); |
} |
-core.int buildCounterInterleavedFastqSource = 0; |
-buildInterleavedFastqSource() { |
- var o = new api.InterleavedFastqSource(); |
- buildCounterInterleavedFastqSource++; |
- if (buildCounterInterleavedFastqSource < 3) { |
- o.metadata = buildFastqMetadata(); |
- o.sourceUris = buildUnnamed1522(); |
- } |
- buildCounterInterleavedFastqSource--; |
+buildUnnamed1798() { |
+ var o = new core.Map<core.String, core.List<core.Object>>(); |
+ o["x"] = buildUnnamed1797(); |
+ o["y"] = buildUnnamed1797(); |
return o; |
} |
-checkInterleavedFastqSource(api.InterleavedFastqSource o) { |
- buildCounterInterleavedFastqSource++; |
- if (buildCounterInterleavedFastqSource < 3) { |
- checkFastqMetadata(o.metadata); |
- checkUnnamed1522(o.sourceUris); |
- } |
- buildCounterInterleavedFastqSource--; |
+checkUnnamed1798(core.Map<core.String, core.List<core.Object>> o) { |
+ unittest.expect(o, unittest.hasLength(2)); |
+ checkUnnamed1797(o["x"]); |
+ checkUnnamed1797(o["y"]); |
} |
-buildUnnamed1523() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
+buildUnnamed1799() { |
+ var o = new core.List<api.ReadGroup>(); |
+ o.add(buildReadGroup()); |
+ o.add(buildReadGroup()); |
return o; |
} |
-checkUnnamed1523(core.List<core.String> o) { |
+checkUnnamed1799(core.List<api.ReadGroup> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- unittest.expect(o[0], unittest.equals('foo')); |
- unittest.expect(o[1], unittest.equals('foo')); |
+ checkReadGroup(o[0]); |
+ checkReadGroup(o[1]); |
} |
-buildUnnamed1524() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
+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 = buildUnnamed1798(); |
+ o.name = "foo"; |
+ o.readGroups = buildUnnamed1799(); |
+ o.referenceSetId = "foo"; |
+ } |
+ buildCounterReadGroupSet--; |
return o; |
} |
-checkUnnamed1524(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')); |
+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')); |
+ checkUnnamed1798(o.info); |
+ unittest.expect(o.name, unittest.equals('foo')); |
+ checkUnnamed1799(o.readGroups); |
+ unittest.expect(o.referenceSetId, unittest.equals('foo')); |
+ } |
+ buildCounterReadGroupSet--; |
} |
-buildUnnamed1525() { |
+buildUnnamed1800() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1525(core.List<core.String> o) { |
+checkUnnamed1800(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 = buildUnnamed1523(); |
+core.int buildCounterReference = 0; |
+buildReference() { |
+ var o = new api.Reference(); |
+ buildCounterReference++; |
+ if (buildCounterReference < 3) { |
o.id = "foo"; |
- o.importedIds = buildUnnamed1524(); |
- o.projectNumber = "foo"; |
- o.request = buildJobRequest(); |
- o.status = "foo"; |
- o.warnings = buildUnnamed1525(); |
+ o.length = "foo"; |
+ o.md5checksum = "foo"; |
+ o.name = "foo"; |
+ o.ncbiTaxonId = 42; |
+ o.sourceAccessions = buildUnnamed1800(); |
+ o.sourceUri = "foo"; |
} |
- buildCounterJob--; |
+ buildCounterReference--; |
return o; |
} |
-checkJob(api.Job o) { |
- buildCounterJob++; |
- if (buildCounterJob < 3) { |
- unittest.expect(o.created, unittest.equals('foo')); |
- unittest.expect(o.detailedStatus, unittest.equals('foo')); |
- checkUnnamed1523(o.errors); |
+checkReference(api.Reference o) { |
+ buildCounterReference++; |
+ if (buildCounterReference < 3) { |
unittest.expect(o.id, unittest.equals('foo')); |
- checkUnnamed1524(o.importedIds); |
- unittest.expect(o.projectNumber, unittest.equals('foo')); |
- checkJobRequest(o.request); |
- unittest.expect(o.status, unittest.equals('foo')); |
- checkUnnamed1525(o.warnings); |
+ 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)); |
+ checkUnnamed1800(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')); |
} |
- buildCounterJob--; |
+ buildCounterReferenceBound--; |
} |
-buildUnnamed1526() { |
+buildUnnamed1801() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1526(core.List<core.String> o) { |
+checkUnnamed1801(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')); |
} |
-buildUnnamed1527() { |
+buildUnnamed1802() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1527(core.List<core.String> o) { |
+checkUnnamed1802(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 = buildUnnamed1526(); |
- o.source = buildUnnamed1527(); |
- o.type = "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 = buildUnnamed1801(); |
+ o.sourceAccessions = buildUnnamed1802(); |
+ o.sourceUri = "foo"; |
} |
- buildCounterJobRequest--; |
+ buildCounterReferenceSet--; |
return o; |
} |
-checkJobRequest(api.JobRequest o) { |
- buildCounterJobRequest++; |
- if (buildCounterJobRequest < 3) { |
- checkUnnamed1526(o.destination); |
- checkUnnamed1527(o.source); |
- unittest.expect(o.type, unittest.equals('foo')); |
+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)); |
+ checkUnnamed1801(o.referenceIds); |
+ checkUnnamed1802(o.sourceAccessions); |
+ unittest.expect(o.sourceUri, unittest.equals('foo')); |
} |
- buildCounterJobRequest--; |
+ buildCounterReferenceSet--; |
} |
-buildUnnamed1528() { |
+buildUnnamed1803() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1528(core.List<core.String> o) { |
+checkUnnamed1803(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 = buildUnnamed1528(); |
+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 = buildUnnamed1803(); |
} |
- buildCounterKeyValue--; |
+ buildCounterSearchCallSetsRequest--; |
return o; |
} |
-checkKeyValue(api.KeyValue o) { |
- buildCounterKeyValue++; |
- if (buildCounterKeyValue < 3) { |
- unittest.expect(o.key, unittest.equals('foo')); |
- checkUnnamed1528(o.value); |
- } |
- buildCounterKeyValue--; |
+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')); |
+ checkUnnamed1803(o.variantSetIds); |
+ } |
+ buildCounterSearchCallSetsRequest--; |
} |
-buildUnnamed1529() { |
- var o = new core.List<api.CigarUnit>(); |
- o.add(buildCigarUnit()); |
- o.add(buildCigarUnit()); |
+buildUnnamed1804() { |
+ var o = new core.List<api.CallSet>(); |
+ o.add(buildCallSet()); |
+ o.add(buildCallSet()); |
return o; |
} |
-checkUnnamed1529(core.List<api.CigarUnit> o) { |
+checkUnnamed1804(core.List<api.CallSet> 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 = buildUnnamed1529(); |
- o.mappingQuality = 42; |
- o.position = buildPosition(); |
- } |
- buildCounterLinearAlignment--; |
- return o; |
-} |
- |
-checkLinearAlignment(api.LinearAlignment o) { |
- buildCounterLinearAlignment++; |
- if (buildCounterLinearAlignment < 3) { |
- checkUnnamed1529(o.cigar); |
- unittest.expect(o.mappingQuality, unittest.equals(42)); |
- checkPosition(o.position); |
- } |
- buildCounterLinearAlignment--; |
+ checkCallSet(o[0]); |
+ checkCallSet(o[1]); |
} |
-core.int buildCounterListBasesResponse = 0; |
-buildListBasesResponse() { |
- var o = new api.ListBasesResponse(); |
- buildCounterListBasesResponse++; |
- if (buildCounterListBasesResponse < 3) { |
+core.int buildCounterSearchCallSetsResponse = 0; |
+buildSearchCallSetsResponse() { |
+ var o = new api.SearchCallSetsResponse(); |
+ buildCounterSearchCallSetsResponse++; |
+ if (buildCounterSearchCallSetsResponse < 3) { |
+ o.callSets = buildUnnamed1804(); |
o.nextPageToken = "foo"; |
- o.offset = "foo"; |
- o.sequence = "foo"; |
} |
- buildCounterListBasesResponse--; |
+ buildCounterSearchCallSetsResponse--; |
return o; |
} |
-checkListBasesResponse(api.ListBasesResponse o) { |
- buildCounterListBasesResponse++; |
- if (buildCounterListBasesResponse < 3) { |
+checkSearchCallSetsResponse(api.SearchCallSetsResponse o) { |
+ buildCounterSearchCallSetsResponse++; |
+ if (buildCounterSearchCallSetsResponse < 3) { |
+ checkUnnamed1804(o.callSets); |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- unittest.expect(o.offset, unittest.equals('foo')); |
- unittest.expect(o.sequence, unittest.equals('foo')); |
} |
- buildCounterListBasesResponse--; |
+ buildCounterSearchCallSetsResponse--; |
} |
-buildUnnamed1530() { |
- var o = new core.List<api.CoverageBucket>(); |
- o.add(buildCoverageBucket()); |
- o.add(buildCoverageBucket()); |
+buildUnnamed1805() { |
+ var o = new core.List<core.String>(); |
+ o.add("foo"); |
+ o.add("foo"); |
return o; |
} |
-checkUnnamed1530(core.List<api.CoverageBucket> o) { |
+checkUnnamed1805(core.List<core.String> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- checkCoverageBucket(o[0]); |
- checkCoverageBucket(o[1]); |
+ unittest.expect(o[0], unittest.equals('foo')); |
+ unittest.expect(o[1], unittest.equals('foo')); |
} |
-core.int buildCounterListCoverageBucketsResponse = 0; |
-buildListCoverageBucketsResponse() { |
- var o = new api.ListCoverageBucketsResponse(); |
- buildCounterListCoverageBucketsResponse++; |
- if (buildCounterListCoverageBucketsResponse < 3) { |
- o.bucketWidth = "foo"; |
- o.coverageBuckets = buildUnnamed1530(); |
- o.nextPageToken = "foo"; |
+core.int buildCounterSearchReadGroupSetsRequest = 0; |
+buildSearchReadGroupSetsRequest() { |
+ var o = new api.SearchReadGroupSetsRequest(); |
+ buildCounterSearchReadGroupSetsRequest++; |
+ if (buildCounterSearchReadGroupSetsRequest < 3) { |
+ o.datasetIds = buildUnnamed1805(); |
+ o.name = "foo"; |
+ o.pageSize = 42; |
+ o.pageToken = "foo"; |
} |
- buildCounterListCoverageBucketsResponse--; |
+ buildCounterSearchReadGroupSetsRequest--; |
return o; |
} |
-checkListCoverageBucketsResponse(api.ListCoverageBucketsResponse o) { |
- buildCounterListCoverageBucketsResponse++; |
- if (buildCounterListCoverageBucketsResponse < 3) { |
- unittest.expect(o.bucketWidth, unittest.equals('foo')); |
- checkUnnamed1530(o.coverageBuckets); |
- unittest.expect(o.nextPageToken, unittest.equals('foo')); |
+checkSearchReadGroupSetsRequest(api.SearchReadGroupSetsRequest o) { |
+ buildCounterSearchReadGroupSetsRequest++; |
+ if (buildCounterSearchReadGroupSetsRequest < 3) { |
+ checkUnnamed1805(o.datasetIds); |
+ unittest.expect(o.name, unittest.equals('foo')); |
+ unittest.expect(o.pageSize, unittest.equals(42)); |
+ unittest.expect(o.pageToken, unittest.equals('foo')); |
} |
- buildCounterListCoverageBucketsResponse--; |
+ buildCounterSearchReadGroupSetsRequest--; |
} |
-buildUnnamed1531() { |
- var o = new core.List<api.Dataset>(); |
- o.add(buildDataset()); |
- o.add(buildDataset()); |
+buildUnnamed1806() { |
+ var o = new core.List<api.ReadGroupSet>(); |
+ o.add(buildReadGroupSet()); |
+ o.add(buildReadGroupSet()); |
return o; |
} |
-checkUnnamed1531(core.List<api.Dataset> o) { |
+checkUnnamed1806(core.List<api.ReadGroupSet> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- checkDataset(o[0]); |
- checkDataset(o[1]); |
+ checkReadGroupSet(o[0]); |
+ checkReadGroupSet(o[1]); |
} |
-core.int buildCounterListDatasetsResponse = 0; |
-buildListDatasetsResponse() { |
- var o = new api.ListDatasetsResponse(); |
- buildCounterListDatasetsResponse++; |
- if (buildCounterListDatasetsResponse < 3) { |
- o.datasets = buildUnnamed1531(); |
+core.int buildCounterSearchReadGroupSetsResponse = 0; |
+buildSearchReadGroupSetsResponse() { |
+ var o = new api.SearchReadGroupSetsResponse(); |
+ buildCounterSearchReadGroupSetsResponse++; |
+ if (buildCounterSearchReadGroupSetsResponse < 3) { |
o.nextPageToken = "foo"; |
+ o.readGroupSets = buildUnnamed1806(); |
} |
- buildCounterListDatasetsResponse--; |
+ buildCounterSearchReadGroupSetsResponse--; |
return o; |
} |
-checkListDatasetsResponse(api.ListDatasetsResponse o) { |
- buildCounterListDatasetsResponse++; |
- if (buildCounterListDatasetsResponse < 3) { |
- checkUnnamed1531(o.datasets); |
+checkSearchReadGroupSetsResponse(api.SearchReadGroupSetsResponse o) { |
+ buildCounterSearchReadGroupSetsResponse++; |
+ if (buildCounterSearchReadGroupSetsResponse < 3) { |
unittest.expect(o.nextPageToken, unittest.equals('foo')); |
+ checkUnnamed1806(o.readGroupSets); |
} |
- buildCounterListDatasetsResponse--; |
+ buildCounterSearchReadGroupSetsResponse--; |
} |
-buildUnnamed1532() { |
- var o = new core.List<api.Variant>(); |
- o.add(buildVariant()); |
- o.add(buildVariant()); |
+buildUnnamed1807() { |
+ var o = new core.List<core.String>(); |
+ o.add("foo"); |
+ o.add("foo"); |
return o; |
} |
-checkUnnamed1532(core.List<api.Variant> o) { |
+checkUnnamed1807(core.List<core.String> 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 = buildUnnamed1532(); |
- } |
- buildCounterMergeVariantsRequest--; |
- return o; |
-} |
- |
-checkMergeVariantsRequest(api.MergeVariantsRequest o) { |
- buildCounterMergeVariantsRequest++; |
- if (buildCounterMergeVariantsRequest < 3) { |
- checkUnnamed1532(o.variants); |
- } |
- buildCounterMergeVariantsRequest--; |
+ unittest.expect(o[0], unittest.equals('foo')); |
+ unittest.expect(o[1], unittest.equals('foo')); |
} |
-buildUnnamed1533() { |
+buildUnnamed1808() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1533(core.List<core.String> o) { |
+checkUnnamed1808(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')); |
} |
-buildUnnamed1534() { |
- var o = new core.Map<core.String, core.List<core.String>>(); |
- o["x"] = buildUnnamed1533(); |
- o["y"] = buildUnnamed1533(); |
+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 = buildUnnamed1807(); |
+ o.readGroupSetIds = buildUnnamed1808(); |
+ 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')); |
+ checkUnnamed1807(o.readGroupIds); |
+ checkUnnamed1808(o.readGroupSetIds); |
+ unittest.expect(o.referenceName, unittest.equals('foo')); |
+ unittest.expect(o.start, unittest.equals('foo')); |
+ } |
+ buildCounterSearchReadsRequest--; |
+} |
+ |
+buildUnnamed1809() { |
+ var o = new core.List<api.Read>(); |
+ o.add(buildRead()); |
+ o.add(buildRead()); |
return o; |
} |
-checkUnnamed1534(core.Map<core.String, core.List<core.String>> o) { |
+checkUnnamed1809(core.List<api.Read> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- checkUnnamed1533(o["x"]); |
- checkUnnamed1533(o["y"]); |
+ checkRead(o[0]); |
+ checkRead(o[1]); |
} |
-core.int buildCounterMetadata = 0; |
-buildMetadata() { |
- var o = new api.Metadata(); |
- buildCounterMetadata++; |
- if (buildCounterMetadata < 3) { |
- o.description = "foo"; |
- o.id = "foo"; |
- o.info = buildUnnamed1534(); |
- o.key = "foo"; |
- o.number = "foo"; |
- o.type = "foo"; |
- o.value = "foo"; |
+core.int buildCounterSearchReadsResponse = 0; |
+buildSearchReadsResponse() { |
+ var o = new api.SearchReadsResponse(); |
+ buildCounterSearchReadsResponse++; |
+ if (buildCounterSearchReadsResponse < 3) { |
+ o.alignments = buildUnnamed1809(); |
+ o.nextPageToken = "foo"; |
} |
- buildCounterMetadata--; |
+ buildCounterSearchReadsResponse--; |
return o; |
} |
-checkMetadata(api.Metadata o) { |
- buildCounterMetadata++; |
- if (buildCounterMetadata < 3) { |
- unittest.expect(o.description, unittest.equals('foo')); |
- unittest.expect(o.id, unittest.equals('foo')); |
- checkUnnamed1534(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')); |
+checkSearchReadsResponse(api.SearchReadsResponse o) { |
+ buildCounterSearchReadsResponse++; |
+ if (buildCounterSearchReadsResponse < 3) { |
+ checkUnnamed1809(o.alignments); |
+ unittest.expect(o.nextPageToken, unittest.equals('foo')); |
} |
- buildCounterMetadata--; |
+ buildCounterSearchReadsResponse--; |
} |
-buildUnnamed1535() { |
+buildUnnamed1810() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1535(core.List<core.String> o) { |
+checkUnnamed1810(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')); |
} |
-buildUnnamed1536() { |
+buildUnnamed1811() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1536(core.List<core.String> o) { |
+checkUnnamed1811(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 buildCounterPairedFastqSource = 0; |
-buildPairedFastqSource() { |
- var o = new api.PairedFastqSource(); |
- buildCounterPairedFastqSource++; |
- if (buildCounterPairedFastqSource < 3) { |
- o.firstSourceUris = buildUnnamed1535(); |
- o.metadata = buildFastqMetadata(); |
- o.secondSourceUris = buildUnnamed1536(); |
+core.int buildCounterSearchReferenceSetsRequest = 0; |
+buildSearchReferenceSetsRequest() { |
+ var o = new api.SearchReferenceSetsRequest(); |
+ buildCounterSearchReferenceSetsRequest++; |
+ if (buildCounterSearchReferenceSetsRequest < 3) { |
+ o.accessions = buildUnnamed1810(); |
+ o.assemblyId = "foo"; |
+ o.md5checksums = buildUnnamed1811(); |
+ o.pageSize = 42; |
+ o.pageToken = "foo"; |
} |
- buildCounterPairedFastqSource--; |
+ buildCounterSearchReferenceSetsRequest--; |
return o; |
} |
-checkPairedFastqSource(api.PairedFastqSource o) { |
- buildCounterPairedFastqSource++; |
- if (buildCounterPairedFastqSource < 3) { |
- checkUnnamed1535(o.firstSourceUris); |
- checkFastqMetadata(o.metadata); |
- checkUnnamed1536(o.secondSourceUris); |
+checkSearchReferenceSetsRequest(api.SearchReferenceSetsRequest o) { |
+ buildCounterSearchReferenceSetsRequest++; |
+ if (buildCounterSearchReferenceSetsRequest < 3) { |
+ checkUnnamed1810(o.accessions); |
+ unittest.expect(o.assemblyId, unittest.equals('foo')); |
+ checkUnnamed1811(o.md5checksums); |
+ unittest.expect(o.pageSize, unittest.equals(42)); |
+ unittest.expect(o.pageToken, unittest.equals('foo')); |
} |
- buildCounterPairedFastqSource--; |
+ buildCounterSearchReferenceSetsRequest--; |
} |
-core.int buildCounterPosition = 0; |
-buildPosition() { |
- var o = new api.Position(); |
- buildCounterPosition++; |
- if (buildCounterPosition < 3) { |
- o.position = "foo"; |
- o.referenceName = "foo"; |
- o.reverseStrand = true; |
- } |
- buildCounterPosition--; |
+buildUnnamed1812() { |
+ var o = new core.List<api.ReferenceSet>(); |
+ o.add(buildReferenceSet()); |
+ o.add(buildReferenceSet()); |
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--; |
+checkUnnamed1812(core.List<api.ReferenceSet> o) { |
+ unittest.expect(o, unittest.hasLength(2)); |
+ checkReferenceSet(o[0]); |
+ checkReferenceSet(o[1]); |
} |
-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"; |
+core.int buildCounterSearchReferenceSetsResponse = 0; |
+buildSearchReferenceSetsResponse() { |
+ var o = new api.SearchReferenceSetsResponse(); |
+ buildCounterSearchReferenceSetsResponse++; |
+ if (buildCounterSearchReferenceSetsResponse < 3) { |
+ o.nextPageToken = "foo"; |
+ o.referenceSets = buildUnnamed1812(); |
} |
- buildCounterQueryRange--; |
+ buildCounterSearchReferenceSetsResponse--; |
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')); |
+checkSearchReferenceSetsResponse(api.SearchReferenceSetsResponse o) { |
+ buildCounterSearchReferenceSetsResponse++; |
+ if (buildCounterSearchReferenceSetsResponse < 3) { |
+ unittest.expect(o.nextPageToken, unittest.equals('foo')); |
+ checkUnnamed1812(o.referenceSets); |
} |
- buildCounterRangePosition--; |
-} |
- |
-buildUnnamed1537() { |
- var o = new core.List<core.int>(); |
- o.add(42); |
- o.add(42); |
- return o; |
-} |
- |
-checkUnnamed1537(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)); |
+ buildCounterSearchReferenceSetsResponse--; |
} |
-buildUnnamed1538() { |
+buildUnnamed1813() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1538(core.List<core.String> o) { |
+checkUnnamed1813(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')); |
} |
-buildUnnamed1539() { |
- var o = new core.Map<core.String, core.List<core.String>>(); |
- o["x"] = buildUnnamed1538(); |
- o["y"] = buildUnnamed1538(); |
- return o; |
-} |
- |
-checkUnnamed1539(core.Map<core.String, core.List<core.String>> o) { |
- unittest.expect(o, unittest.hasLength(2)); |
- checkUnnamed1538(o["x"]); |
- checkUnnamed1538(o["y"]); |
-} |
- |
-core.int buildCounterRead = 0; |
-buildRead() { |
- var o = new api.Read(); |
- buildCounterRead++; |
- if (buildCounterRead < 3) { |
- o.alignedQuality = buildUnnamed1537(); |
- o.alignedSequence = "foo"; |
- o.alignment = buildLinearAlignment(); |
- o.duplicateFragment = true; |
- o.failedVendorQualityChecks = true; |
- o.fragmentLength = 42; |
- o.fragmentName = "foo"; |
- o.id = "foo"; |
- o.info = buildUnnamed1539(); |
- 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) { |
- checkUnnamed1537(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')); |
- checkUnnamed1539(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--; |
-} |
- |
-buildUnnamed1540() { |
+buildUnnamed1814() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1540(core.List<core.String> o) { |
+checkUnnamed1814(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')); |
} |
-buildUnnamed1541() { |
- var o = new core.Map<core.String, core.List<core.String>>(); |
- o["x"] = buildUnnamed1540(); |
- o["y"] = buildUnnamed1540(); |
- return o; |
-} |
- |
-checkUnnamed1541(core.Map<core.String, core.List<core.String>> o) { |
- unittest.expect(o, unittest.hasLength(2)); |
- checkUnnamed1540(o["x"]); |
- checkUnnamed1540(o["y"]); |
-} |
- |
-buildUnnamed1542() { |
- var o = new core.List<api.ReadGroupProgram>(); |
- o.add(buildReadGroupProgram()); |
- o.add(buildReadGroupProgram()); |
- return o; |
-} |
- |
-checkUnnamed1542(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 = buildUnnamed1541(); |
- o.name = "foo"; |
- o.predictedInsertSize = 42; |
- o.programs = buildUnnamed1542(); |
+core.int buildCounterSearchReferencesRequest = 0; |
+buildSearchReferencesRequest() { |
+ var o = new api.SearchReferencesRequest(); |
+ buildCounterSearchReferencesRequest++; |
+ if (buildCounterSearchReferencesRequest < 3) { |
+ o.accessions = buildUnnamed1813(); |
+ o.md5checksums = buildUnnamed1814(); |
+ o.pageSize = 42; |
+ o.pageToken = "foo"; |
o.referenceSetId = "foo"; |
- o.sampleId = "foo"; |
} |
- buildCounterReadGroup--; |
+ buildCounterSearchReferencesRequest--; |
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')); |
- checkUnnamed1541(o.info); |
- unittest.expect(o.name, unittest.equals('foo')); |
- unittest.expect(o.predictedInsertSize, unittest.equals(42)); |
- checkUnnamed1542(o.programs); |
+checkSearchReferencesRequest(api.SearchReferencesRequest o) { |
+ buildCounterSearchReferencesRequest++; |
+ if (buildCounterSearchReferencesRequest < 3) { |
+ checkUnnamed1813(o.accessions); |
+ checkUnnamed1814(o.md5checksums); |
+ unittest.expect(o.pageSize, unittest.equals(42)); |
+ unittest.expect(o.pageToken, unittest.equals('foo')); |
unittest.expect(o.referenceSetId, unittest.equals('foo')); |
- unittest.expect(o.sampleId, unittest.equals('foo')); |
} |
- buildCounterReadGroup--; |
+ buildCounterSearchReferencesRequest--; |
} |
-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--; |
+buildUnnamed1815() { |
+ var o = new core.List<api.Reference>(); |
+ o.add(buildReference()); |
+ o.add(buildReference()); |
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--; |
+checkUnnamed1815(core.List<api.Reference> o) { |
+ unittest.expect(o, unittest.hasLength(2)); |
+ checkReference(o[0]); |
+ checkReference(o[1]); |
} |
-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"; |
+core.int buildCounterSearchReferencesResponse = 0; |
+buildSearchReferencesResponse() { |
+ var o = new api.SearchReferencesResponse(); |
+ buildCounterSearchReferencesResponse++; |
+ if (buildCounterSearchReferencesResponse < 3) { |
+ o.nextPageToken = "foo"; |
+ o.references = buildUnnamed1815(); |
} |
- buildCounterReadGroupProgram--; |
+ buildCounterSearchReferencesResponse--; |
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')); |
+checkSearchReferencesResponse(api.SearchReferencesResponse o) { |
+ buildCounterSearchReferencesResponse++; |
+ if (buildCounterSearchReferencesResponse < 3) { |
+ unittest.expect(o.nextPageToken, unittest.equals('foo')); |
+ checkUnnamed1815(o.references); |
} |
- buildCounterReadGroupProgram--; |
+ buildCounterSearchReferencesResponse--; |
} |
-buildUnnamed1543() { |
+buildUnnamed1816() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1543(core.List<core.String> o) { |
+checkUnnamed1816(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')); |
} |
-buildUnnamed1544() { |
- var o = new core.Map<core.String, core.List<core.String>>(); |
- o["x"] = buildUnnamed1543(); |
- o["y"] = buildUnnamed1543(); |
+core.int buildCounterSearchVariantSetsRequest = 0; |
+buildSearchVariantSetsRequest() { |
+ var o = new api.SearchVariantSetsRequest(); |
+ buildCounterSearchVariantSetsRequest++; |
+ if (buildCounterSearchVariantSetsRequest < 3) { |
+ o.datasetIds = buildUnnamed1816(); |
+ o.pageSize = 42; |
+ o.pageToken = "foo"; |
+ } |
+ buildCounterSearchVariantSetsRequest--; |
return o; |
} |
-checkUnnamed1544(core.Map<core.String, core.List<core.String>> o) { |
- unittest.expect(o, unittest.hasLength(2)); |
- checkUnnamed1543(o["x"]); |
- checkUnnamed1543(o["y"]); |
+checkSearchVariantSetsRequest(api.SearchVariantSetsRequest o) { |
+ buildCounterSearchVariantSetsRequest++; |
+ if (buildCounterSearchVariantSetsRequest < 3) { |
+ checkUnnamed1816(o.datasetIds); |
+ unittest.expect(o.pageSize, unittest.equals(42)); |
+ unittest.expect(o.pageToken, unittest.equals('foo')); |
+ } |
+ buildCounterSearchVariantSetsRequest--; |
} |
-buildUnnamed1545() { |
- var o = new core.List<api.ReadGroup>(); |
- o.add(buildReadGroup()); |
- o.add(buildReadGroup()); |
+buildUnnamed1817() { |
+ var o = new core.List<api.VariantSet>(); |
+ o.add(buildVariantSet()); |
+ o.add(buildVariantSet()); |
return o; |
} |
-checkUnnamed1545(core.List<api.ReadGroup> o) { |
+checkUnnamed1817(core.List<api.VariantSet> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- checkReadGroup(o[0]); |
- checkReadGroup(o[1]); |
+ checkVariantSet(o[0]); |
+ checkVariantSet(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 = buildUnnamed1544(); |
- o.name = "foo"; |
- o.readGroups = buildUnnamed1545(); |
- o.referenceSetId = "foo"; |
+core.int buildCounterSearchVariantSetsResponse = 0; |
+buildSearchVariantSetsResponse() { |
+ var o = new api.SearchVariantSetsResponse(); |
+ buildCounterSearchVariantSetsResponse++; |
+ if (buildCounterSearchVariantSetsResponse < 3) { |
+ o.nextPageToken = "foo"; |
+ o.variantSets = buildUnnamed1817(); |
} |
- buildCounterReadGroupSet--; |
+ buildCounterSearchVariantSetsResponse--; |
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')); |
- checkUnnamed1544(o.info); |
- unittest.expect(o.name, unittest.equals('foo')); |
- checkUnnamed1545(o.readGroups); |
- unittest.expect(o.referenceSetId, unittest.equals('foo')); |
+checkSearchVariantSetsResponse(api.SearchVariantSetsResponse o) { |
+ buildCounterSearchVariantSetsResponse++; |
+ if (buildCounterSearchVariantSetsResponse < 3) { |
+ unittest.expect(o.nextPageToken, unittest.equals('foo')); |
+ checkUnnamed1817(o.variantSets); |
} |
- buildCounterReadGroupSet--; |
+ buildCounterSearchVariantSetsResponse--; |
} |
-buildUnnamed1546() { |
+buildUnnamed1818() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1546(core.List<core.String> o) { |
+checkUnnamed1818(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 = buildUnnamed1546(); |
- o.sourceURI = "foo"; |
- } |
- buildCounterReference--; |
+buildUnnamed1819() { |
+ var o = new core.List<core.String>(); |
+ o.add("foo"); |
+ o.add("foo"); |
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)); |
- checkUnnamed1546(o.sourceAccessions); |
- unittest.expect(o.sourceURI, unittest.equals('foo')); |
- } |
- buildCounterReference--; |
+checkUnnamed1819(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 buildCounterReferenceBound = 0; |
-buildReferenceBound() { |
- var o = new api.ReferenceBound(); |
- buildCounterReferenceBound++; |
- if (buildCounterReferenceBound < 3) { |
+core.int buildCounterSearchVariantsRequest = 0; |
+buildSearchVariantsRequest() { |
+ var o = new api.SearchVariantsRequest(); |
+ buildCounterSearchVariantsRequest++; |
+ if (buildCounterSearchVariantsRequest < 3) { |
+ o.callSetIds = buildUnnamed1818(); |
+ o.end = "foo"; |
+ o.maxCalls = 42; |
+ o.pageSize = 42; |
+ o.pageToken = "foo"; |
o.referenceName = "foo"; |
- o.upperBound = "foo"; |
+ o.start = "foo"; |
+ o.variantName = "foo"; |
+ o.variantSetIds = buildUnnamed1819(); |
} |
- buildCounterReferenceBound--; |
+ buildCounterSearchVariantsRequest--; |
return o; |
} |
-checkReferenceBound(api.ReferenceBound o) { |
- buildCounterReferenceBound++; |
- if (buildCounterReferenceBound < 3) { |
+checkSearchVariantsRequest(api.SearchVariantsRequest o) { |
+ buildCounterSearchVariantsRequest++; |
+ if (buildCounterSearchVariantsRequest < 3) { |
+ checkUnnamed1818(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.upperBound, unittest.equals('foo')); |
+ unittest.expect(o.start, unittest.equals('foo')); |
+ unittest.expect(o.variantName, unittest.equals('foo')); |
+ checkUnnamed1819(o.variantSetIds); |
} |
- buildCounterReferenceBound--; |
-} |
- |
-buildUnnamed1547() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
- return o; |
-} |
- |
-checkUnnamed1547(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')); |
+ buildCounterSearchVariantsRequest--; |
} |
-buildUnnamed1548() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
+buildUnnamed1820() { |
+ var o = new core.List<api.Variant>(); |
+ o.add(buildVariant()); |
+ o.add(buildVariant()); |
return o; |
} |
-checkUnnamed1548(core.List<core.String> o) { |
+checkUnnamed1820(core.List<api.Variant> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- unittest.expect(o[0], unittest.equals('foo')); |
- unittest.expect(o[1], unittest.equals('foo')); |
+ checkVariant(o[0]); |
+ checkVariant(o[1]); |
} |
-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 = buildUnnamed1547(); |
- o.sourceAccessions = buildUnnamed1548(); |
- o.sourceURI = "foo"; |
+core.int buildCounterSearchVariantsResponse = 0; |
+buildSearchVariantsResponse() { |
+ var o = new api.SearchVariantsResponse(); |
+ buildCounterSearchVariantsResponse++; |
+ if (buildCounterSearchVariantsResponse < 3) { |
+ o.nextPageToken = "foo"; |
+ o.variants = buildUnnamed1820(); |
} |
- buildCounterReferenceSet--; |
+ buildCounterSearchVariantsResponse--; |
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)); |
- checkUnnamed1547(o.referenceIds); |
- checkUnnamed1548(o.sourceAccessions); |
- unittest.expect(o.sourceURI, unittest.equals('foo')); |
+checkSearchVariantsResponse(api.SearchVariantsResponse o) { |
+ buildCounterSearchVariantsResponse++; |
+ if (buildCounterSearchVariantsResponse < 3) { |
+ unittest.expect(o.nextPageToken, unittest.equals('foo')); |
+ checkUnnamed1820(o.variants); |
} |
- buildCounterReferenceSet--; |
+ buildCounterSearchVariantsResponse--; |
} |
-buildUnnamed1549() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
+buildUnnamed1821() { |
+ var o = new core.Map<core.String, core.Object>(); |
+ o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
+ o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
return o; |
} |
-checkUnnamed1549(core.List<core.String> o) { |
+checkUnnamed1821(core.Map<core.String, core.Object> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- unittest.expect(o[0], unittest.equals('foo')); |
- unittest.expect(o[1], unittest.equals('foo')); |
+ var casted15 = (o["x"]) as core.Map; unittest.expect(casted15, unittest.hasLength(3)); unittest.expect(casted15["list"], unittest.equals([1, 2, 3])); unittest.expect(casted15["bool"], unittest.equals(true)); unittest.expect(casted15["string"], unittest.equals('foo')); |
+ var casted16 = (o["y"]) as core.Map; unittest.expect(casted16, unittest.hasLength(3)); unittest.expect(casted16["list"], unittest.equals([1, 2, 3])); unittest.expect(casted16["bool"], unittest.equals(true)); unittest.expect(casted16["string"], unittest.equals('foo')); |
} |
-buildUnnamed1550() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
+buildUnnamed1822() { |
+ var o = new core.List<core.Map<core.String, core.Object>>(); |
+ o.add(buildUnnamed1821()); |
+ o.add(buildUnnamed1821()); |
return o; |
} |
-checkUnnamed1550(core.List<core.String> o) { |
+checkUnnamed1822(core.List<core.Map<core.String, core.Object>> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- unittest.expect(o[0], unittest.equals('foo')); |
- unittest.expect(o[1], unittest.equals('foo')); |
+ checkUnnamed1821(o[0]); |
+ checkUnnamed1821(o[1]); |
} |
-core.int buildCounterSearchAnnotationSetsRequest = 0; |
-buildSearchAnnotationSetsRequest() { |
- var o = new api.SearchAnnotationSetsRequest(); |
- buildCounterSearchAnnotationSetsRequest++; |
- if (buildCounterSearchAnnotationSetsRequest < 3) { |
- o.datasetIds = buildUnnamed1549(); |
- o.name = "foo"; |
- o.pageSize = 42; |
- o.pageToken = "foo"; |
- o.referenceSetId = "foo"; |
- o.types = buildUnnamed1550(); |
+core.int buildCounterStatus = 0; |
+buildStatus() { |
+ var o = new api.Status(); |
+ buildCounterStatus++; |
+ if (buildCounterStatus < 3) { |
+ o.code = 42; |
+ o.details = buildUnnamed1822(); |
+ o.message = "foo"; |
} |
- buildCounterSearchAnnotationSetsRequest--; |
+ buildCounterStatus--; |
return o; |
} |
-checkSearchAnnotationSetsRequest(api.SearchAnnotationSetsRequest o) { |
- buildCounterSearchAnnotationSetsRequest++; |
- if (buildCounterSearchAnnotationSetsRequest < 3) { |
- checkUnnamed1549(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')); |
- checkUnnamed1550(o.types); |
+checkStatus(api.Status o) { |
+ buildCounterStatus++; |
+ if (buildCounterStatus < 3) { |
+ unittest.expect(o.code, unittest.equals(42)); |
+ checkUnnamed1822(o.details); |
+ unittest.expect(o.message, unittest.equals('foo')); |
} |
- buildCounterSearchAnnotationSetsRequest--; |
+ buildCounterStatus--; |
} |
-buildUnnamed1551() { |
- var o = new core.List<api.AnnotationSet>(); |
- o.add(buildAnnotationSet()); |
- o.add(buildAnnotationSet()); |
- return o; |
-} |
- |
-checkUnnamed1551(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 = buildUnnamed1551(); |
- o.nextPageToken = "foo"; |
+core.int buildCounterUndeleteDatasetRequest = 0; |
+buildUndeleteDatasetRequest() { |
+ var o = new api.UndeleteDatasetRequest(); |
+ buildCounterUndeleteDatasetRequest++; |
+ if (buildCounterUndeleteDatasetRequest < 3) { |
} |
- buildCounterSearchAnnotationSetsResponse--; |
+ buildCounterUndeleteDatasetRequest--; |
return o; |
} |
-checkSearchAnnotationSetsResponse(api.SearchAnnotationSetsResponse o) { |
- buildCounterSearchAnnotationSetsResponse++; |
- if (buildCounterSearchAnnotationSetsResponse < 3) { |
- checkUnnamed1551(o.annotationSets); |
- unittest.expect(o.nextPageToken, unittest.equals('foo')); |
+checkUndeleteDatasetRequest(api.UndeleteDatasetRequest o) { |
+ buildCounterUndeleteDatasetRequest++; |
+ if (buildCounterUndeleteDatasetRequest < 3) { |
} |
- buildCounterSearchAnnotationSetsResponse--; |
+ buildCounterUndeleteDatasetRequest--; |
} |
-buildUnnamed1552() { |
+buildUnnamed1823() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1552(core.List<core.String> o) { |
+checkUnnamed1823(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 = buildUnnamed1552(); |
- o.pageSize = 42; |
- o.pageToken = "foo"; |
- o.range = buildQueryRange(); |
- } |
- buildCounterSearchAnnotationsRequest--; |
- return o; |
-} |
- |
-checkSearchAnnotationsRequest(api.SearchAnnotationsRequest o) { |
- buildCounterSearchAnnotationsRequest++; |
- if (buildCounterSearchAnnotationsRequest < 3) { |
- checkUnnamed1552(o.annotationSetIds); |
- unittest.expect(o.pageSize, unittest.equals(42)); |
- unittest.expect(o.pageToken, unittest.equals('foo')); |
- checkQueryRange(o.range); |
- } |
- buildCounterSearchAnnotationsRequest--; |
-} |
- |
-buildUnnamed1553() { |
- var o = new core.List<api.Annotation>(); |
- o.add(buildAnnotation()); |
- o.add(buildAnnotation()); |
+buildUnnamed1824() { |
+ var o = new core.List<api.VariantCall>(); |
+ o.add(buildVariantCall()); |
+ o.add(buildVariantCall()); |
return o; |
} |
-checkUnnamed1553(core.List<api.Annotation> o) { |
+checkUnnamed1824(core.List<api.VariantCall> 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 = buildUnnamed1553(); |
- o.nextPageToken = "foo"; |
- } |
- buildCounterSearchAnnotationsResponse--; |
- return o; |
+ checkVariantCall(o[0]); |
+ checkVariantCall(o[1]); |
} |
-checkSearchAnnotationsResponse(api.SearchAnnotationsResponse o) { |
- buildCounterSearchAnnotationsResponse++; |
- if (buildCounterSearchAnnotationsResponse < 3) { |
- checkUnnamed1553(o.annotations); |
- unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- } |
- buildCounterSearchAnnotationsResponse--; |
-} |
- |
-buildUnnamed1554() { |
+buildUnnamed1825() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1554(core.List<core.String> o) { |
+checkUnnamed1825(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 = buildUnnamed1554(); |
- } |
- 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')); |
- checkUnnamed1554(o.variantSetIds); |
- } |
- buildCounterSearchCallSetsRequest--; |
-} |
- |
-buildUnnamed1555() { |
- var o = new core.List<api.CallSet>(); |
- o.add(buildCallSet()); |
- o.add(buildCallSet()); |
+buildUnnamed1826() { |
+ var o = new core.List<core.Object>(); |
+ o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
+ o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
return o; |
} |
-checkUnnamed1555(core.List<api.CallSet> o) { |
+checkUnnamed1826(core.List<core.Object> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- checkCallSet(o[0]); |
- checkCallSet(o[1]); |
+ var casted17 = (o[0]) as core.Map; unittest.expect(casted17, unittest.hasLength(3)); unittest.expect(casted17["list"], unittest.equals([1, 2, 3])); unittest.expect(casted17["bool"], unittest.equals(true)); unittest.expect(casted17["string"], unittest.equals('foo')); |
+ var casted18 = (o[1]) as core.Map; unittest.expect(casted18, unittest.hasLength(3)); unittest.expect(casted18["list"], unittest.equals([1, 2, 3])); unittest.expect(casted18["bool"], unittest.equals(true)); unittest.expect(casted18["string"], unittest.equals('foo')); |
} |
-core.int buildCounterSearchCallSetsResponse = 0; |
-buildSearchCallSetsResponse() { |
- var o = new api.SearchCallSetsResponse(); |
- buildCounterSearchCallSetsResponse++; |
- if (buildCounterSearchCallSetsResponse < 3) { |
- o.callSets = buildUnnamed1555(); |
- o.nextPageToken = "foo"; |
- } |
- buildCounterSearchCallSetsResponse--; |
+buildUnnamed1827() { |
+ var o = new core.Map<core.String, core.List<core.Object>>(); |
+ o["x"] = buildUnnamed1826(); |
+ o["y"] = buildUnnamed1826(); |
return o; |
} |
-checkSearchCallSetsResponse(api.SearchCallSetsResponse o) { |
- buildCounterSearchCallSetsResponse++; |
- if (buildCounterSearchCallSetsResponse < 3) { |
- checkUnnamed1555(o.callSets); |
- unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- } |
- buildCounterSearchCallSetsResponse--; |
+checkUnnamed1827(core.Map<core.String, core.List<core.Object>> o) { |
+ unittest.expect(o, unittest.hasLength(2)); |
+ checkUnnamed1826(o["x"]); |
+ checkUnnamed1826(o["y"]); |
} |
-buildUnnamed1556() { |
+buildUnnamed1828() { |
var o = new core.List<core.String>(); |
o.add("foo"); |
o.add("foo"); |
return o; |
} |
-checkUnnamed1556(core.List<core.String> o) { |
+checkUnnamed1828(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 = buildUnnamed1556(); |
+core.int buildCounterVariant = 0; |
+buildVariant() { |
+ var o = new api.Variant(); |
+ buildCounterVariant++; |
+ if (buildCounterVariant < 3) { |
+ o.alternateBases = buildUnnamed1823(); |
+ o.calls = buildUnnamed1824(); |
+ o.created = "foo"; |
+ o.end = "foo"; |
+ o.filter = buildUnnamed1825(); |
+ o.id = "foo"; |
+ o.info = buildUnnamed1827(); |
+ o.names = buildUnnamed1828(); |
+ o.quality = 42.0; |
+ o.referenceBases = "foo"; |
+ o.referenceName = "foo"; |
+ o.start = "foo"; |
+ o.variantSetId = "foo"; |
} |
- buildCounterSearchJobsRequest--; |
+ buildCounterVariant--; |
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')); |
- checkUnnamed1556(o.status); |
+checkVariant(api.Variant o) { |
+ buildCounterVariant++; |
+ if (buildCounterVariant < 3) { |
+ checkUnnamed1823(o.alternateBases); |
+ checkUnnamed1824(o.calls); |
+ unittest.expect(o.created, unittest.equals('foo')); |
+ unittest.expect(o.end, unittest.equals('foo')); |
+ checkUnnamed1825(o.filter); |
+ unittest.expect(o.id, unittest.equals('foo')); |
+ checkUnnamed1827(o.info); |
+ checkUnnamed1828(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')); |
} |
- buildCounterSearchJobsRequest--; |
+ buildCounterVariant--; |
} |
-buildUnnamed1557() { |
- var o = new core.List<api.Job>(); |
- o.add(buildJob()); |
- o.add(buildJob()); |
+buildUnnamed1829() { |
+ var o = new core.List<core.int>(); |
+ o.add(42); |
+ o.add(42); |
return o; |
} |
-checkUnnamed1557(core.List<api.Job> o) { |
+checkUnnamed1829(core.List<core.int> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- checkJob(o[0]); |
- checkJob(o[1]); |
+ unittest.expect(o[0], unittest.equals(42)); |
+ unittest.expect(o[1], unittest.equals(42)); |
} |
-core.int buildCounterSearchJobsResponse = 0; |
-buildSearchJobsResponse() { |
- var o = new api.SearchJobsResponse(); |
- buildCounterSearchJobsResponse++; |
- if (buildCounterSearchJobsResponse < 3) { |
- o.jobs = buildUnnamed1557(); |
- o.nextPageToken = "foo"; |
- } |
- buildCounterSearchJobsResponse--; |
+buildUnnamed1830() { |
+ var o = new core.List<core.double>(); |
+ o.add(42.0); |
+ o.add(42.0); |
return o; |
} |
-checkSearchJobsResponse(api.SearchJobsResponse o) { |
- buildCounterSearchJobsResponse++; |
- if (buildCounterSearchJobsResponse < 3) { |
- checkUnnamed1557(o.jobs); |
- unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- } |
- buildCounterSearchJobsResponse--; |
+checkUnnamed1830(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)); |
} |
-buildUnnamed1558() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
+buildUnnamed1831() { |
+ var o = new core.List<core.Object>(); |
+ o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
+ o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
return o; |
} |
-checkUnnamed1558(core.List<core.String> o) { |
+checkUnnamed1831(core.List<core.Object> 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 = buildUnnamed1558(); |
- o.name = "foo"; |
- o.pageSize = 42; |
- o.pageToken = "foo"; |
- } |
- buildCounterSearchReadGroupSetsRequest--; |
- return o; |
-} |
- |
-checkSearchReadGroupSetsRequest(api.SearchReadGroupSetsRequest o) { |
- buildCounterSearchReadGroupSetsRequest++; |
- if (buildCounterSearchReadGroupSetsRequest < 3) { |
- checkUnnamed1558(o.datasetIds); |
- unittest.expect(o.name, unittest.equals('foo')); |
- unittest.expect(o.pageSize, unittest.equals(42)); |
- unittest.expect(o.pageToken, unittest.equals('foo')); |
- } |
- buildCounterSearchReadGroupSetsRequest--; |
+ var casted19 = (o[0]) as core.Map; unittest.expect(casted19, unittest.hasLength(3)); unittest.expect(casted19["list"], unittest.equals([1, 2, 3])); unittest.expect(casted19["bool"], unittest.equals(true)); unittest.expect(casted19["string"], unittest.equals('foo')); |
+ var casted20 = (o[1]) as core.Map; unittest.expect(casted20, unittest.hasLength(3)); unittest.expect(casted20["list"], unittest.equals([1, 2, 3])); unittest.expect(casted20["bool"], unittest.equals(true)); unittest.expect(casted20["string"], unittest.equals('foo')); |
} |
-buildUnnamed1559() { |
- var o = new core.List<api.ReadGroupSet>(); |
- o.add(buildReadGroupSet()); |
- o.add(buildReadGroupSet()); |
+buildUnnamed1832() { |
+ var o = new core.Map<core.String, core.List<core.Object>>(); |
+ o["x"] = buildUnnamed1831(); |
+ o["y"] = buildUnnamed1831(); |
return o; |
} |
-checkUnnamed1559(core.List<api.ReadGroupSet> o) { |
+checkUnnamed1832(core.Map<core.String, core.List<core.Object>> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- checkReadGroupSet(o[0]); |
- checkReadGroupSet(o[1]); |
+ checkUnnamed1831(o["x"]); |
+ checkUnnamed1831(o["y"]); |
} |
-core.int buildCounterSearchReadGroupSetsResponse = 0; |
-buildSearchReadGroupSetsResponse() { |
- var o = new api.SearchReadGroupSetsResponse(); |
- buildCounterSearchReadGroupSetsResponse++; |
- if (buildCounterSearchReadGroupSetsResponse < 3) { |
- o.nextPageToken = "foo"; |
- o.readGroupSets = buildUnnamed1559(); |
+core.int buildCounterVariantCall = 0; |
+buildVariantCall() { |
+ var o = new api.VariantCall(); |
+ buildCounterVariantCall++; |
+ if (buildCounterVariantCall < 3) { |
+ o.callSetId = "foo"; |
+ o.callSetName = "foo"; |
+ o.genotype = buildUnnamed1829(); |
+ o.genotypeLikelihood = buildUnnamed1830(); |
+ o.info = buildUnnamed1832(); |
+ o.phaseset = "foo"; |
} |
- buildCounterSearchReadGroupSetsResponse--; |
+ buildCounterVariantCall--; |
return o; |
} |
-checkSearchReadGroupSetsResponse(api.SearchReadGroupSetsResponse o) { |
- buildCounterSearchReadGroupSetsResponse++; |
- if (buildCounterSearchReadGroupSetsResponse < 3) { |
- unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- checkUnnamed1559(o.readGroupSets); |
+checkVariantCall(api.VariantCall o) { |
+ buildCounterVariantCall++; |
+ if (buildCounterVariantCall < 3) { |
+ unittest.expect(o.callSetId, unittest.equals('foo')); |
+ unittest.expect(o.callSetName, unittest.equals('foo')); |
+ checkUnnamed1829(o.genotype); |
+ checkUnnamed1830(o.genotypeLikelihood); |
+ checkUnnamed1832(o.info); |
+ unittest.expect(o.phaseset, unittest.equals('foo')); |
} |
- buildCounterSearchReadGroupSetsResponse--; |
-} |
- |
-buildUnnamed1560() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
- return o; |
-} |
- |
-checkUnnamed1560(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')); |
+ buildCounterVariantCall--; |
} |
-buildUnnamed1561() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
+buildUnnamed1833() { |
+ var o = new core.List<api.VariantSetMetadata>(); |
+ o.add(buildVariantSetMetadata()); |
+ o.add(buildVariantSetMetadata()); |
return o; |
} |
-checkUnnamed1561(core.List<core.String> o) { |
+checkUnnamed1833(core.List<api.VariantSetMetadata> 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 = buildUnnamed1560(); |
- o.readGroupSetIds = buildUnnamed1561(); |
- 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')); |
- checkUnnamed1560(o.readGroupIds); |
- checkUnnamed1561(o.readGroupSetIds); |
- unittest.expect(o.referenceName, unittest.equals('foo')); |
- unittest.expect(o.start, unittest.equals('foo')); |
- } |
- buildCounterSearchReadsRequest--; |
+ checkVariantSetMetadata(o[0]); |
+ checkVariantSetMetadata(o[1]); |
} |
-buildUnnamed1562() { |
- var o = new core.List<api.Read>(); |
- o.add(buildRead()); |
- o.add(buildRead()); |
+buildUnnamed1834() { |
+ var o = new core.List<api.ReferenceBound>(); |
+ o.add(buildReferenceBound()); |
+ o.add(buildReferenceBound()); |
return o; |
} |
-checkUnnamed1562(core.List<api.Read> o) { |
+checkUnnamed1834(core.List<api.ReferenceBound> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- checkRead(o[0]); |
- checkRead(o[1]); |
+ checkReferenceBound(o[0]); |
+ checkReferenceBound(o[1]); |
} |
-core.int buildCounterSearchReadsResponse = 0; |
-buildSearchReadsResponse() { |
- var o = new api.SearchReadsResponse(); |
- buildCounterSearchReadsResponse++; |
- if (buildCounterSearchReadsResponse < 3) { |
- o.alignments = buildUnnamed1562(); |
- o.nextPageToken = "foo"; |
+core.int buildCounterVariantSet = 0; |
+buildVariantSet() { |
+ var o = new api.VariantSet(); |
+ buildCounterVariantSet++; |
+ if (buildCounterVariantSet < 3) { |
+ o.datasetId = "foo"; |
+ o.id = "foo"; |
+ o.metadata = buildUnnamed1833(); |
+ o.referenceBounds = buildUnnamed1834(); |
} |
- buildCounterSearchReadsResponse--; |
+ buildCounterVariantSet--; |
return o; |
} |
-checkSearchReadsResponse(api.SearchReadsResponse o) { |
- buildCounterSearchReadsResponse++; |
- if (buildCounterSearchReadsResponse < 3) { |
- checkUnnamed1562(o.alignments); |
- unittest.expect(o.nextPageToken, unittest.equals('foo')); |
+checkVariantSet(api.VariantSet o) { |
+ buildCounterVariantSet++; |
+ if (buildCounterVariantSet < 3) { |
+ unittest.expect(o.datasetId, unittest.equals('foo')); |
+ unittest.expect(o.id, unittest.equals('foo')); |
+ checkUnnamed1833(o.metadata); |
+ checkUnnamed1834(o.referenceBounds); |
} |
- buildCounterSearchReadsResponse--; |
+ buildCounterVariantSet--; |
} |
-buildUnnamed1563() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
+buildUnnamed1835() { |
+ var o = new core.List<core.Object>(); |
+ o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
+ o.add({'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}); |
return o; |
} |
-checkUnnamed1563(core.List<core.String> o) { |
+checkUnnamed1835(core.List<core.Object> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- unittest.expect(o[0], unittest.equals('foo')); |
- unittest.expect(o[1], unittest.equals('foo')); |
+ var casted21 = (o[0]) as core.Map; unittest.expect(casted21, unittest.hasLength(3)); unittest.expect(casted21["list"], unittest.equals([1, 2, 3])); unittest.expect(casted21["bool"], unittest.equals(true)); unittest.expect(casted21["string"], unittest.equals('foo')); |
+ var casted22 = (o[1]) as core.Map; unittest.expect(casted22, unittest.hasLength(3)); unittest.expect(casted22["list"], unittest.equals([1, 2, 3])); unittest.expect(casted22["bool"], unittest.equals(true)); unittest.expect(casted22["string"], unittest.equals('foo')); |
} |
-buildUnnamed1564() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
+buildUnnamed1836() { |
+ var o = new core.Map<core.String, core.List<core.Object>>(); |
+ o["x"] = buildUnnamed1835(); |
+ o["y"] = buildUnnamed1835(); |
return o; |
} |
-checkUnnamed1564(core.List<core.String> o) { |
+checkUnnamed1836(core.Map<core.String, core.List<core.Object>> o) { |
unittest.expect(o, unittest.hasLength(2)); |
- unittest.expect(o[0], unittest.equals('foo')); |
- unittest.expect(o[1], unittest.equals('foo')); |
+ checkUnnamed1835(o["x"]); |
+ checkUnnamed1835(o["y"]); |
} |
-core.int buildCounterSearchReferenceSetsRequest = 0; |
-buildSearchReferenceSetsRequest() { |
- var o = new api.SearchReferenceSetsRequest(); |
- buildCounterSearchReferenceSetsRequest++; |
- if (buildCounterSearchReferenceSetsRequest < 3) { |
- o.accessions = buildUnnamed1563(); |
- o.assemblyId = "foo"; |
- o.md5checksums = buildUnnamed1564(); |
- o.pageSize = 42; |
- o.pageToken = "foo"; |
+core.int buildCounterVariantSetMetadata = 0; |
+buildVariantSetMetadata() { |
+ var o = new api.VariantSetMetadata(); |
+ buildCounterVariantSetMetadata++; |
+ if (buildCounterVariantSetMetadata < 3) { |
+ o.description = "foo"; |
+ o.id = "foo"; |
+ o.info = buildUnnamed1836(); |
+ o.key = "foo"; |
+ o.number = "foo"; |
+ o.type = "foo"; |
+ o.value = "foo"; |
} |
- buildCounterSearchReferenceSetsRequest--; |
+ buildCounterVariantSetMetadata--; |
return o; |
} |
-checkSearchReferenceSetsRequest(api.SearchReferenceSetsRequest o) { |
- buildCounterSearchReferenceSetsRequest++; |
- if (buildCounterSearchReferenceSetsRequest < 3) { |
- checkUnnamed1563(o.accessions); |
- unittest.expect(o.assemblyId, unittest.equals('foo')); |
- checkUnnamed1564(o.md5checksums); |
- unittest.expect(o.pageSize, unittest.equals(42)); |
- unittest.expect(o.pageToken, unittest.equals('foo')); |
+checkVariantSetMetadata(api.VariantSetMetadata o) { |
+ buildCounterVariantSetMetadata++; |
+ if (buildCounterVariantSetMetadata < 3) { |
+ unittest.expect(o.description, unittest.equals('foo')); |
+ unittest.expect(o.id, unittest.equals('foo')); |
+ checkUnnamed1836(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')); |
} |
- buildCounterSearchReferenceSetsRequest--; |
-} |
- |
-buildUnnamed1565() { |
- var o = new core.List<api.ReferenceSet>(); |
- o.add(buildReferenceSet()); |
- o.add(buildReferenceSet()); |
- return o; |
+ buildCounterVariantSetMetadata--; |
} |
-checkUnnamed1565(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 = buildUnnamed1565(); |
- } |
- buildCounterSearchReferenceSetsResponse--; |
- return o; |
-} |
+main() { |
+ unittest.group("obj-schema-CallSet", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildCallSet(); |
+ var od = new api.CallSet.fromJson(o.toJson()); |
+ checkCallSet(od); |
+ }); |
+ }); |
-checkSearchReferenceSetsResponse(api.SearchReferenceSetsResponse o) { |
- buildCounterSearchReferenceSetsResponse++; |
- if (buildCounterSearchReferenceSetsResponse < 3) { |
- unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- checkUnnamed1565(o.referenceSets); |
- } |
- buildCounterSearchReferenceSetsResponse--; |
-} |
-buildUnnamed1566() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
- return o; |
-} |
+ unittest.group("obj-schema-CancelOperationRequest", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildCancelOperationRequest(); |
+ var od = new api.CancelOperationRequest.fromJson(o.toJson()); |
+ checkCancelOperationRequest(od); |
+ }); |
+ }); |
-checkUnnamed1566(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')); |
-} |
-buildUnnamed1567() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
- return o; |
-} |
+ unittest.group("obj-schema-CigarUnit", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildCigarUnit(); |
+ var od = new api.CigarUnit.fromJson(o.toJson()); |
+ checkCigarUnit(od); |
+ }); |
+ }); |
-checkUnnamed1567(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 = buildUnnamed1566(); |
- o.md5checksums = buildUnnamed1567(); |
- o.pageSize = 42; |
- o.pageToken = "foo"; |
- o.referenceSetId = "foo"; |
- } |
- buildCounterSearchReferencesRequest--; |
- return o; |
-} |
+ unittest.group("obj-schema-CoverageBucket", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildCoverageBucket(); |
+ var od = new api.CoverageBucket.fromJson(o.toJson()); |
+ checkCoverageBucket(od); |
+ }); |
+ }); |
-checkSearchReferencesRequest(api.SearchReferencesRequest o) { |
- buildCounterSearchReferencesRequest++; |
- if (buildCounterSearchReferencesRequest < 3) { |
- checkUnnamed1566(o.accessions); |
- checkUnnamed1567(o.md5checksums); |
- unittest.expect(o.pageSize, unittest.equals(42)); |
- unittest.expect(o.pageToken, unittest.equals('foo')); |
- unittest.expect(o.referenceSetId, unittest.equals('foo')); |
- } |
- buildCounterSearchReferencesRequest--; |
-} |
-buildUnnamed1568() { |
- var o = new core.List<api.Reference>(); |
- o.add(buildReference()); |
- o.add(buildReference()); |
- return o; |
-} |
- |
-checkUnnamed1568(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 = buildUnnamed1568(); |
- } |
- buildCounterSearchReferencesResponse--; |
- return o; |
-} |
- |
-checkSearchReferencesResponse(api.SearchReferencesResponse o) { |
- buildCounterSearchReferencesResponse++; |
- if (buildCounterSearchReferencesResponse < 3) { |
- unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- checkUnnamed1568(o.references); |
- } |
- buildCounterSearchReferencesResponse--; |
-} |
- |
-buildUnnamed1569() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
- return o; |
-} |
- |
-checkUnnamed1569(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 = buildUnnamed1569(); |
- o.pageSize = 42; |
- o.pageToken = "foo"; |
- } |
- buildCounterSearchVariantSetsRequest--; |
- return o; |
-} |
- |
-checkSearchVariantSetsRequest(api.SearchVariantSetsRequest o) { |
- buildCounterSearchVariantSetsRequest++; |
- if (buildCounterSearchVariantSetsRequest < 3) { |
- checkUnnamed1569(o.datasetIds); |
- unittest.expect(o.pageSize, unittest.equals(42)); |
- unittest.expect(o.pageToken, unittest.equals('foo')); |
- } |
- buildCounterSearchVariantSetsRequest--; |
-} |
- |
-buildUnnamed1570() { |
- var o = new core.List<api.VariantSet>(); |
- o.add(buildVariantSet()); |
- o.add(buildVariantSet()); |
- return o; |
-} |
- |
-checkUnnamed1570(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 = buildUnnamed1570(); |
- } |
- buildCounterSearchVariantSetsResponse--; |
- return o; |
-} |
- |
-checkSearchVariantSetsResponse(api.SearchVariantSetsResponse o) { |
- buildCounterSearchVariantSetsResponse++; |
- if (buildCounterSearchVariantSetsResponse < 3) { |
- unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- checkUnnamed1570(o.variantSets); |
- } |
- buildCounterSearchVariantSetsResponse--; |
-} |
- |
-buildUnnamed1571() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
- return o; |
-} |
- |
-checkUnnamed1571(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')); |
-} |
- |
-buildUnnamed1572() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
- return o; |
-} |
- |
-checkUnnamed1572(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 = buildUnnamed1571(); |
- o.end = "foo"; |
- o.maxCalls = 42; |
- o.pageSize = 42; |
- o.pageToken = "foo"; |
- o.referenceName = "foo"; |
- o.start = "foo"; |
- o.variantName = "foo"; |
- o.variantSetIds = buildUnnamed1572(); |
- } |
- buildCounterSearchVariantsRequest--; |
- return o; |
-} |
- |
-checkSearchVariantsRequest(api.SearchVariantsRequest o) { |
- buildCounterSearchVariantsRequest++; |
- if (buildCounterSearchVariantsRequest < 3) { |
- checkUnnamed1571(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')); |
- checkUnnamed1572(o.variantSetIds); |
- } |
- buildCounterSearchVariantsRequest--; |
-} |
- |
-buildUnnamed1573() { |
- var o = new core.List<api.Variant>(); |
- o.add(buildVariant()); |
- o.add(buildVariant()); |
- return o; |
-} |
- |
-checkUnnamed1573(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 = buildUnnamed1573(); |
- } |
- buildCounterSearchVariantsResponse--; |
- return o; |
-} |
- |
-checkSearchVariantsResponse(api.SearchVariantsResponse o) { |
- buildCounterSearchVariantsResponse++; |
- if (buildCounterSearchVariantsResponse < 3) { |
- unittest.expect(o.nextPageToken, unittest.equals('foo')); |
- checkUnnamed1573(o.variants); |
- } |
- buildCounterSearchVariantsResponse--; |
-} |
- |
-buildUnnamed1574() { |
- var o = new core.List<api.TranscriptExon>(); |
- o.add(buildTranscriptExon()); |
- o.add(buildTranscriptExon()); |
- return o; |
-} |
- |
-checkUnnamed1574(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 = buildUnnamed1574(); |
- o.geneId = "foo"; |
- } |
- buildCounterTranscript--; |
- return o; |
-} |
- |
-checkTranscript(api.Transcript o) { |
- buildCounterTranscript++; |
- if (buildCounterTranscript < 3) { |
- checkTranscriptCodingSequence(o.codingSequence); |
- checkUnnamed1574(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--; |
-} |
- |
-buildUnnamed1575() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
- return o; |
-} |
- |
-checkUnnamed1575(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')); |
-} |
- |
-buildUnnamed1576() { |
- var o = new core.List<api.Call>(); |
- o.add(buildCall()); |
- o.add(buildCall()); |
- return o; |
-} |
- |
-checkUnnamed1576(core.List<api.Call> o) { |
- unittest.expect(o, unittest.hasLength(2)); |
- checkCall(o[0]); |
- checkCall(o[1]); |
-} |
- |
-buildUnnamed1577() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
- return o; |
-} |
- |
-checkUnnamed1577(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')); |
-} |
- |
-buildUnnamed1578() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
- return o; |
-} |
- |
-checkUnnamed1578(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')); |
-} |
- |
-buildUnnamed1579() { |
- var o = new core.Map<core.String, core.List<core.String>>(); |
- o["x"] = buildUnnamed1578(); |
- o["y"] = buildUnnamed1578(); |
- return o; |
-} |
- |
-checkUnnamed1579(core.Map<core.String, core.List<core.String>> o) { |
- unittest.expect(o, unittest.hasLength(2)); |
- checkUnnamed1578(o["x"]); |
- checkUnnamed1578(o["y"]); |
-} |
- |
-buildUnnamed1580() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
- return o; |
-} |
- |
-checkUnnamed1580(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 = buildUnnamed1575(); |
- o.calls = buildUnnamed1576(); |
- o.created = "foo"; |
- o.end = "foo"; |
- o.filter = buildUnnamed1577(); |
- o.id = "foo"; |
- o.info = buildUnnamed1579(); |
- o.names = buildUnnamed1580(); |
- 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) { |
- checkUnnamed1575(o.alternateBases); |
- checkUnnamed1576(o.calls); |
- unittest.expect(o.created, unittest.equals('foo')); |
- unittest.expect(o.end, unittest.equals('foo')); |
- checkUnnamed1577(o.filter); |
- unittest.expect(o.id, unittest.equals('foo')); |
- checkUnnamed1579(o.info); |
- checkUnnamed1580(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--; |
-} |
- |
-buildUnnamed1581() { |
- var o = new core.List<api.VariantAnnotationCondition>(); |
- o.add(buildVariantAnnotationCondition()); |
- o.add(buildVariantAnnotationCondition()); |
- return o; |
-} |
- |
-checkUnnamed1581(core.List<api.VariantAnnotationCondition> o) { |
- unittest.expect(o, unittest.hasLength(2)); |
- checkVariantAnnotationCondition(o[0]); |
- checkVariantAnnotationCondition(o[1]); |
-} |
- |
-buildUnnamed1582() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
- return o; |
-} |
- |
-checkUnnamed1582(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 = buildUnnamed1581(); |
- o.effect = "foo"; |
- o.geneId = "foo"; |
- o.transcriptIds = buildUnnamed1582(); |
- 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')); |
- checkUnnamed1581(o.conditions); |
- unittest.expect(o.effect, unittest.equals('foo')); |
- unittest.expect(o.geneId, unittest.equals('foo')); |
- checkUnnamed1582(o.transcriptIds); |
- unittest.expect(o.type, unittest.equals('foo')); |
- } |
- buildCounterVariantAnnotation--; |
-} |
- |
-buildUnnamed1583() { |
- var o = new core.List<api.ExternalId>(); |
- o.add(buildExternalId()); |
- o.add(buildExternalId()); |
- return o; |
-} |
- |
-checkUnnamed1583(core.List<api.ExternalId> o) { |
- unittest.expect(o, unittest.hasLength(2)); |
- checkExternalId(o[0]); |
- checkExternalId(o[1]); |
-} |
- |
-buildUnnamed1584() { |
- var o = new core.List<core.String>(); |
- o.add("foo"); |
- o.add("foo"); |
- return o; |
-} |
- |
-checkUnnamed1584(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 = buildUnnamed1583(); |
- o.names = buildUnnamed1584(); |
- o.omimId = "foo"; |
- } |
- buildCounterVariantAnnotationCondition--; |
- return o; |
-} |
- |
-checkVariantAnnotationCondition(api.VariantAnnotationCondition o) { |
- buildCounterVariantAnnotationCondition++; |
- if (buildCounterVariantAnnotationCondition < 3) { |
- unittest.expect(o.conceptId, unittest.equals('foo')); |
- checkUnnamed1583(o.externalIds); |
- checkUnnamed1584(o.names); |
- unittest.expect(o.omimId, unittest.equals('foo')); |
- } |
- buildCounterVariantAnnotationCondition--; |
-} |
- |
-buildUnnamed1585() { |
- var o = new core.List<api.Metadata>(); |
- o.add(buildMetadata()); |
- o.add(buildMetadata()); |
- return o; |
-} |
- |
-checkUnnamed1585(core.List<api.Metadata> o) { |
- unittest.expect(o, unittest.hasLength(2)); |
- checkMetadata(o[0]); |
- checkMetadata(o[1]); |
-} |
- |
-buildUnnamed1586() { |
- var o = new core.List<api.ReferenceBound>(); |
- o.add(buildReferenceBound()); |
- o.add(buildReferenceBound()); |
- return o; |
-} |
- |
-checkUnnamed1586(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.id = "foo"; |
- o.metadata = buildUnnamed1585(); |
- o.referenceBounds = buildUnnamed1586(); |
- } |
- buildCounterVariantSet--; |
- return o; |
-} |
- |
-checkVariantSet(api.VariantSet o) { |
- buildCounterVariantSet++; |
- if (buildCounterVariantSet < 3) { |
- unittest.expect(o.datasetId, unittest.equals('foo')); |
- unittest.expect(o.id, unittest.equals('foo')); |
- checkUnnamed1585(o.metadata); |
- checkUnnamed1586(o.referenceBounds); |
- } |
- buildCounterVariantSet--; |
-} |
- |
- |
-main() { |
- unittest.group("obj-schema-AlignReadGroupSetsRequest", () { |
- unittest.test("to-json--from-json", () { |
- var o = buildAlignReadGroupSetsRequest(); |
- var od = new api.AlignReadGroupSetsRequest.fromJson(o.toJson()); |
- checkAlignReadGroupSetsRequest(od); |
- }); |
- }); |
- |
- |
- unittest.group("obj-schema-AlignReadGroupSetsResponse", () { |
- unittest.test("to-json--from-json", () { |
- var o = buildAlignReadGroupSetsResponse(); |
- var od = new api.AlignReadGroupSetsResponse.fromJson(o.toJson()); |
- checkAlignReadGroupSetsResponse(od); |
- }); |
- }); |
- |
- |
- 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-CallReadGroupSetsRequest", () { |
- unittest.test("to-json--from-json", () { |
- var o = buildCallReadGroupSetsRequest(); |
- var od = new api.CallReadGroupSetsRequest.fromJson(o.toJson()); |
- checkCallReadGroupSetsRequest(od); |
- }); |
- }); |
- |
- |
- unittest.group("obj-schema-CallReadGroupSetsResponse", () { |
- unittest.test("to-json--from-json", () { |
- var o = buildCallReadGroupSetsResponse(); |
- var od = new api.CallReadGroupSetsResponse.fromJson(o.toJson()); |
- checkCallReadGroupSetsResponse(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-FastqMetadata", () { |
- unittest.test("to-json--from-json", () { |
- var o = buildFastqMetadata(); |
- var od = new api.FastqMetadata.fromJson(o.toJson()); |
- checkFastqMetadata(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-InterleavedFastqSource", () { |
- unittest.test("to-json--from-json", () { |
- var o = buildInterleavedFastqSource(); |
- var od = new api.InterleavedFastqSource.fromJson(o.toJson()); |
- checkInterleavedFastqSource(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-PairedFastqSource", () { |
- unittest.test("to-json--from-json", () { |
- var o = buildPairedFastqSource(); |
- var od = new api.PairedFastqSource.fromJson(o.toJson()); |
- checkPairedFastqSource(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.group("obj-schema-Dataset", () { |
unittest.test("to-json--from-json", () { |
- var o = buildSearchReferenceSetsResponse(); |
- var od = new api.SearchReferenceSetsResponse.fromJson(o.toJson()); |
- checkSearchReferenceSetsResponse(od); |
+ var o = buildDataset(); |
+ var od = new api.Dataset.fromJson(o.toJson()); |
+ checkDataset(od); |
}); |
}); |
- unittest.group("obj-schema-SearchReferencesRequest", () { |
+ unittest.group("obj-schema-Empty", () { |
unittest.test("to-json--from-json", () { |
- var o = buildSearchReferencesRequest(); |
- var od = new api.SearchReferencesRequest.fromJson(o.toJson()); |
- checkSearchReferencesRequest(od); |
+ var o = buildEmpty(); |
+ var od = new api.Empty.fromJson(o.toJson()); |
+ checkEmpty(od); |
}); |
}); |
- unittest.group("obj-schema-SearchReferencesResponse", () { |
+ unittest.group("obj-schema-Experiment", () { |
unittest.test("to-json--from-json", () { |
- var o = buildSearchReferencesResponse(); |
- var od = new api.SearchReferencesResponse.fromJson(o.toJson()); |
- checkSearchReferencesResponse(od); |
+ var o = buildExperiment(); |
+ var od = new api.Experiment.fromJson(o.toJson()); |
+ checkExperiment(od); |
}); |
}); |
- unittest.group("obj-schema-SearchVariantSetsRequest", () { |
+ unittest.group("obj-schema-ExportReadGroupSetRequest", () { |
unittest.test("to-json--from-json", () { |
- var o = buildSearchVariantSetsRequest(); |
- var od = new api.SearchVariantSetsRequest.fromJson(o.toJson()); |
- checkSearchVariantSetsRequest(od); |
+ var o = buildExportReadGroupSetRequest(); |
+ var od = new api.ExportReadGroupSetRequest.fromJson(o.toJson()); |
+ checkExportReadGroupSetRequest(od); |
}); |
}); |
- unittest.group("obj-schema-SearchVariantSetsResponse", () { |
+ unittest.group("obj-schema-ExportVariantSetRequest", () { |
unittest.test("to-json--from-json", () { |
- var o = buildSearchVariantSetsResponse(); |
- var od = new api.SearchVariantSetsResponse.fromJson(o.toJson()); |
- checkSearchVariantSetsResponse(od); |
+ var o = buildExportVariantSetRequest(); |
+ var od = new api.ExportVariantSetRequest.fromJson(o.toJson()); |
+ checkExportVariantSetRequest(od); |
}); |
}); |
- unittest.group("obj-schema-SearchVariantsRequest", () { |
+ unittest.group("obj-schema-ImportReadGroupSetsRequest", () { |
unittest.test("to-json--from-json", () { |
- var o = buildSearchVariantsRequest(); |
- var od = new api.SearchVariantsRequest.fromJson(o.toJson()); |
- checkSearchVariantsRequest(od); |
+ var o = buildImportReadGroupSetsRequest(); |
+ var od = new api.ImportReadGroupSetsRequest.fromJson(o.toJson()); |
+ checkImportReadGroupSetsRequest(od); |
}); |
}); |
- unittest.group("obj-schema-SearchVariantsResponse", () { |
+ unittest.group("obj-schema-ImportReadGroupSetsResponse", () { |
unittest.test("to-json--from-json", () { |
- var o = buildSearchVariantsResponse(); |
- var od = new api.SearchVariantsResponse.fromJson(o.toJson()); |
- checkSearchVariantsResponse(od); |
+ var o = buildImportReadGroupSetsResponse(); |
+ var od = new api.ImportReadGroupSetsResponse.fromJson(o.toJson()); |
+ checkImportReadGroupSetsResponse(od); |
}); |
}); |
- unittest.group("obj-schema-Transcript", () { |
+ unittest.group("obj-schema-ImportVariantsRequest", () { |
unittest.test("to-json--from-json", () { |
- var o = buildTranscript(); |
- var od = new api.Transcript.fromJson(o.toJson()); |
- checkTranscript(od); |
+ var o = buildImportVariantsRequest(); |
+ var od = new api.ImportVariantsRequest.fromJson(o.toJson()); |
+ checkImportVariantsRequest(od); |
}); |
}); |
- unittest.group("obj-schema-TranscriptCodingSequence", () { |
+ unittest.group("obj-schema-ImportVariantsResponse", () { |
unittest.test("to-json--from-json", () { |
- var o = buildTranscriptCodingSequence(); |
- var od = new api.TranscriptCodingSequence.fromJson(o.toJson()); |
- checkTranscriptCodingSequence(od); |
+ var o = buildImportVariantsResponse(); |
+ var od = new api.ImportVariantsResponse.fromJson(o.toJson()); |
+ checkImportVariantsResponse(od); |
}); |
}); |
- unittest.group("obj-schema-TranscriptExon", () { |
+ unittest.group("obj-schema-LinearAlignment", () { |
unittest.test("to-json--from-json", () { |
- var o = buildTranscriptExon(); |
- var od = new api.TranscriptExon.fromJson(o.toJson()); |
- checkTranscriptExon(od); |
+ var o = buildLinearAlignment(); |
+ var od = new api.LinearAlignment.fromJson(o.toJson()); |
+ checkLinearAlignment(od); |
}); |
}); |
- unittest.group("obj-schema-Variant", () { |
+ unittest.group("obj-schema-ListBasesResponse", () { |
unittest.test("to-json--from-json", () { |
- var o = buildVariant(); |
- var od = new api.Variant.fromJson(o.toJson()); |
- checkVariant(od); |
+ var o = buildListBasesResponse(); |
+ var od = new api.ListBasesResponse.fromJson(o.toJson()); |
+ checkListBasesResponse(od); |
}); |
}); |
- unittest.group("obj-schema-VariantAnnotation", () { |
+ unittest.group("obj-schema-ListCoverageBucketsResponse", () { |
unittest.test("to-json--from-json", () { |
- var o = buildVariantAnnotation(); |
- var od = new api.VariantAnnotation.fromJson(o.toJson()); |
- checkVariantAnnotation(od); |
+ var o = buildListCoverageBucketsResponse(); |
+ var od = new api.ListCoverageBucketsResponse.fromJson(o.toJson()); |
+ checkListCoverageBucketsResponse(od); |
}); |
}); |
- unittest.group("obj-schema-VariantAnnotationCondition", () { |
+ unittest.group("obj-schema-ListDatasetsResponse", () { |
unittest.test("to-json--from-json", () { |
- var o = buildVariantAnnotationCondition(); |
- var od = new api.VariantAnnotationCondition.fromJson(o.toJson()); |
- checkVariantAnnotationCondition(od); |
+ var o = buildListDatasetsResponse(); |
+ var od = new api.ListDatasetsResponse.fromJson(o.toJson()); |
+ checkListDatasetsResponse(od); |
}); |
}); |
- unittest.group("obj-schema-VariantSet", () { |
+ unittest.group("obj-schema-ListOperationsResponse", () { |
unittest.test("to-json--from-json", () { |
- var o = buildVariantSet(); |
- var od = new api.VariantSet.fromJson(o.toJson()); |
- checkVariantSet(od); |
+ var o = buildListOperationsResponse(); |
+ var od = new api.ListOperationsResponse.fromJson(o.toJson()); |
+ checkListOperationsResponse(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.group("obj-schema-Operation", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildOperation(); |
+ var od = new api.Operation.fromJson(o.toJson()); |
+ checkOperation(od); |
}); |
+ }); |
- 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); |
+ unittest.group("obj-schema-OperationEvent", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildOperationEvent(); |
+ var od = new api.OperationEvent.fromJson(o.toJson()); |
+ checkOperationEvent(od); |
+ }); |
+ }); |
- 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])); |
- } |
- } |
+ unittest.group("obj-schema-OperationMetadata", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildOperationMetadata(); |
+ var od = new api.OperationMetadata.fromJson(o.toJson()); |
+ checkOperationMetadata(od); |
+ }); |
+ }); |
- 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.group("obj-schema-Position", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildPosition(); |
+ var od = new api.Position.fromJson(o.toJson()); |
+ checkPosition(od); |
}); |
+ }); |
- 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); |
+ unittest.group("obj-schema-Program", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildProgram(); |
+ var od = new api.Program.fromJson(o.toJson()); |
+ checkProgram(od); |
+ }); |
+ }); |
- 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])); |
- } |
- } |
+ unittest.group("obj-schema-Range", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildRange(); |
+ var od = new api.Range.fromJson(o.toJson()); |
+ checkRange(od); |
+ }); |
+ }); |
- 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.group("obj-schema-Read", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildRead(); |
+ var od = new api.Read.fromJson(o.toJson()); |
+ checkRead(od); |
}); |
+ }); |
- 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); |
+ unittest.group("obj-schema-ReadGroup", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildReadGroup(); |
+ var od = new api.ReadGroup.fromJson(o.toJson()); |
+ checkReadGroup(od); |
+ }); |
+ }); |
- 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])); |
- } |
- } |
+ unittest.group("obj-schema-ReadGroupSet", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildReadGroupSet(); |
+ var od = new api.ReadGroupSet.fromJson(o.toJson()); |
+ checkReadGroupSet(od); |
+ }); |
+ }); |
- 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("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("resource-AnnotationsResourceApi", () { |
- unittest.test("method--batchCreate", () { |
+ unittest.group("obj-schema-ReferenceSet", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildReferenceSet(); |
+ var od = new api.ReferenceSet.fromJson(o.toJson()); |
+ checkReferenceSet(od); |
+ }); |
+ }); |
- 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; |
+ unittest.group("obj-schema-SearchCallSetsRequest", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildSearchCallSetsRequest(); |
+ var od = new api.SearchCallSetsRequest.fromJson(o.toJson()); |
+ checkSearchCallSetsRequest(od); |
+ }); |
+ }); |
- 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.group("obj-schema-SearchCallSetsResponse", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildSearchCallSetsResponse(); |
+ var od = new api.SearchCallSetsResponse.fromJson(o.toJson()); |
+ checkSearchCallSetsResponse(od); |
+ }); |
+ }); |
- 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.group("obj-schema-SearchReadGroupSetsRequest", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildSearchReadGroupSetsRequest(); |
+ var od = new api.SearchReadGroupSetsRequest.fromJson(o.toJson()); |
+ checkSearchReadGroupSetsRequest(od); |
}); |
+ }); |
- 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); |
+ unittest.group("obj-schema-SearchReadGroupSetsResponse", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildSearchReadGroupSetsResponse(); |
+ var od = new api.SearchReadGroupSetsResponse.fromJson(o.toJson()); |
+ checkSearchReadGroupSetsResponse(od); |
+ }); |
+ }); |
- 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])); |
- } |
- } |
+ unittest.group("obj-schema-SearchReadsRequest", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildSearchReadsRequest(); |
+ var od = new api.SearchReadsRequest.fromJson(o.toJson()); |
+ checkSearchReadsRequest(od); |
+ }); |
+ }); |
- 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.group("obj-schema-SearchReadsResponse", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildSearchReadsResponse(); |
+ var od = new api.SearchReadsResponse.fromJson(o.toJson()); |
+ checkSearchReadsResponse(od); |
}); |
+ }); |
- 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])); |
- } |
- } |
+ unittest.group("obj-schema-SearchReferenceSetsRequest", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildSearchReferenceSetsRequest(); |
+ var od = new api.SearchReferenceSetsRequest.fromJson(o.toJson()); |
+ checkSearchReferenceSetsRequest(od); |
+ }); |
+ }); |
- 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.group("obj-schema-SearchReferenceSetsResponse", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildSearchReferenceSetsResponse(); |
+ var od = new api.SearchReferenceSetsResponse.fromJson(o.toJson()); |
+ checkSearchReferenceSetsResponse(od); |
}); |
+ }); |
- 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")); |
+ unittest.group("obj-schema-SearchReferencesRequest", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildSearchReferencesRequest(); |
+ var od = new api.SearchReferencesRequest.fromJson(o.toJson()); |
+ checkSearchReferencesRequest(od); |
+ }); |
+ }); |
- 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.group("obj-schema-SearchReferencesResponse", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildSearchReferencesResponse(); |
+ var od = new api.SearchReferencesResponse.fromJson(o.toJson()); |
+ checkSearchReferencesResponse(od); |
+ }); |
+ }); |
- 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.group("obj-schema-SearchVariantSetsRequest", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildSearchVariantSetsRequest(); |
+ var od = new api.SearchVariantSetsRequest.fromJson(o.toJson()); |
+ checkSearchVariantSetsRequest(od); |
}); |
+ }); |
- 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); |
+ unittest.group("obj-schema-SearchVariantSetsResponse", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildSearchVariantSetsResponse(); |
+ var od = new api.SearchVariantSetsResponse.fromJson(o.toJson()); |
+ checkSearchVariantSetsResponse(od); |
+ }); |
+ }); |
- 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])); |
- } |
- } |
+ unittest.group("obj-schema-SearchVariantsRequest", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildSearchVariantsRequest(); |
+ var od = new api.SearchVariantsRequest.fromJson(o.toJson()); |
+ checkSearchVariantsRequest(od); |
+ }); |
+ }); |
- 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.group("obj-schema-SearchVariantsResponse", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildSearchVariantsResponse(); |
+ var od = new api.SearchVariantsResponse.fromJson(o.toJson()); |
+ checkSearchVariantsResponse(od); |
}); |
+ }); |
- 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); |
+ unittest.group("obj-schema-Status", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildStatus(); |
+ var od = new api.Status.fromJson(o.toJson()); |
+ checkStatus(od); |
+ }); |
+ }); |
- 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])); |
- } |
- } |
+ unittest.group("obj-schema-UndeleteDatasetRequest", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildUndeleteDatasetRequest(); |
+ var od = new api.UndeleteDatasetRequest.fromJson(o.toJson()); |
+ checkUndeleteDatasetRequest(od); |
+ }); |
+ }); |
- 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.group("obj-schema-Variant", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildVariant(); |
+ var od = new api.Variant.fromJson(o.toJson()); |
+ checkVariant(od); |
}); |
+ }); |
- 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); |
+ unittest.group("obj-schema-VariantCall", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildVariantCall(); |
+ var od = new api.VariantCall.fromJson(o.toJson()); |
+ checkVariantCall(od); |
+ }); |
+ }); |
- 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])); |
- } |
- } |
+ unittest.group("obj-schema-VariantSet", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildVariantSet(); |
+ var od = new api.VariantSet.fromJson(o.toJson()); |
+ checkVariantSet(od); |
+ }); |
+ }); |
- 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("obj-schema-VariantSetMetadata", () { |
+ unittest.test("to-json--from-json", () { |
+ var o = buildVariantSetMetadata(); |
+ var od = new api.VariantSetMetadata.fromJson(o.toJson()); |
+ checkVariantSetMetadata(od); |
}); |
- |
}); |
@@ -4505,10 +2600,8 @@ main() { |
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; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("v1/callsets")); |
+ pathOffset += 11; |
var query = (req.url).query; |
var queryOffset = 0; |
@@ -4551,10 +2644,8 @@ main() { |
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; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("v1/callsets/")); |
+ pathOffset += 12; |
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
pathOffset = path.length; |
unittest.expect(subPart, unittest.equals("$arg_callSetId")); |
@@ -4580,10 +2671,12 @@ main() { |
var h = { |
"content-type" : "application/json; charset=utf-8", |
}; |
- var resp = ""; |
+ var resp = convert.JSON.encode(buildEmpty()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.delete(arg_callSetId).then(unittest.expectAsync((_) {})); |
+ res.delete(arg_callSetId).then(unittest.expectAsync(((api.Empty response) { |
+ checkEmpty(response); |
+ }))); |
}); |
unittest.test("method--get", () { |
@@ -4598,10 +2691,8 @@ main() { |
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; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("v1/callsets/")); |
+ pathOffset += 12; |
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
pathOffset = path.length; |
unittest.expect(subPart, unittest.equals("$arg_callSetId")); |
@@ -4641,6 +2732,7 @@ main() { |
api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets; |
var arg_request = buildCallSet(); |
var arg_callSetId = "foo"; |
+ var arg_updateMask = "foo"; |
mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
var obj = new api.CallSet.fromJson(json); |
checkCallSet(obj); |
@@ -4651,10 +2743,8 @@ main() { |
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; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("v1/callsets/")); |
+ pathOffset += 12; |
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
pathOffset = path.length; |
unittest.expect(subPart, unittest.equals("$arg_callSetId")); |
@@ -4675,6 +2765,7 @@ main() { |
addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
+ unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_updateMask)); |
var h = { |
@@ -4683,7 +2774,7 @@ main() { |
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) { |
+ res.patch(arg_request, arg_callSetId, updateMask: arg_updateMask).then(unittest.expectAsync(((api.CallSet response) { |
checkCallSet(response); |
}))); |
}); |
@@ -4703,10 +2794,8 @@ main() { |
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; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("v1/callsets/search")); |
+ pathOffset += 18; |
var query = (req.url).query; |
var queryOffset = 0; |
@@ -4737,59 +2826,6 @@ main() { |
}))); |
}); |
- 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); |
- }))); |
- }); |
- |
}); |
@@ -4809,10 +2845,8 @@ main() { |
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; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("v1/datasets")); |
+ pathOffset += 11; |
var query = (req.url).query; |
var queryOffset = 0; |
@@ -4855,10 +2889,8 @@ main() { |
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; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("v1/datasets/")); |
+ pathOffset += 12; |
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
pathOffset = path.length; |
unittest.expect(subPart, unittest.equals("$arg_datasetId")); |
@@ -4884,10 +2916,12 @@ main() { |
var h = { |
"content-type" : "application/json; charset=utf-8", |
}; |
- var resp = ""; |
+ var resp = convert.JSON.encode(buildEmpty()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.delete(arg_datasetId).then(unittest.expectAsync((_) {})); |
+ res.delete(arg_datasetId).then(unittest.expectAsync(((api.Empty response) { |
+ checkEmpty(response); |
+ }))); |
}); |
unittest.test("method--get", () { |
@@ -4902,10 +2936,8 @@ main() { |
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; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("v1/datasets/")); |
+ pathOffset += 12; |
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
pathOffset = path.length; |
unittest.expect(subPart, unittest.equals("$arg_datasetId")); |
@@ -4943,9 +2975,9 @@ main() { |
var mock = new HttpServerMock(); |
api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; |
+ var arg_projectId = "foo"; |
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; |
@@ -4953,10 +2985,8 @@ main() { |
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; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("v1/datasets")); |
+ pathOffset += 11; |
var query = (req.url).query; |
var queryOffset = 0; |
@@ -4974,9 +3004,9 @@ main() { |
addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
+ unittest.expect(queryMap["projectId"].first, unittest.equals(arg_projectId)); |
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 = { |
@@ -4985,7 +3015,7 @@ main() { |
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) { |
+ res.list(projectId: arg_projectId, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListDatasetsResponse response) { |
checkListDatasetsResponse(response); |
}))); |
}); |
@@ -4996,6 +3026,7 @@ main() { |
api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; |
var arg_request = buildDataset(); |
var arg_datasetId = "foo"; |
+ var arg_updateMask = "foo"; |
mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
var obj = new api.Dataset.fromJson(json); |
checkDataset(obj); |
@@ -5006,10 +3037,8 @@ main() { |
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; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("v1/datasets/")); |
+ pathOffset += 12; |
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
pathOffset = path.length; |
unittest.expect(subPart, unittest.equals("$arg_datasetId")); |
@@ -5030,6 +3059,7 @@ main() { |
addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
+ unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_updateMask)); |
var h = { |
@@ -5038,7 +3068,7 @@ main() { |
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) { |
+ res.patch(arg_request, arg_datasetId, updateMask: arg_updateMask).then(unittest.expectAsync(((api.Dataset response) { |
checkDataset(response); |
}))); |
}); |
@@ -5047,78 +3077,27 @@ main() { |
var mock = new HttpServerMock(); |
api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets; |
+ var arg_request = buildUndeleteDatasetRequest(); |
var arg_datasetId = "foo"; |
mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
+ var obj = new api.UndeleteDatasetRequest.fromJson(json); |
+ checkUndeleteDatasetRequest(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; |
- index = path.indexOf("/undelete", pathOffset); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("v1/datasets/")); |
+ pathOffset += 12; |
+ 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/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 9), unittest.equals(":undelete")); |
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; |
@@ -5144,7 +3123,7 @@ main() { |
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) { |
+ res.undelete(arg_request, arg_datasetId).then(unittest.expectAsync(((api.Dataset response) { |
checkDataset(response); |
}))); |
}); |
@@ -5152,15 +3131,16 @@ main() { |
}); |
- unittest.group("resource-ExperimentalJobsResourceApi", () { |
- unittest.test("method--create", () { |
+ unittest.group("resource-OperationsResourceApi", () { |
+ unittest.test("method--cancel", () { |
var mock = new HttpServerMock(); |
- api.ExperimentalJobsResourceApi res = new api.GenomicsApi(mock).experimental.jobs; |
- var arg_request = buildExperimentalCreateJobRequest(); |
+ api.OperationsResourceApi res = new api.GenomicsApi(mock).operations; |
+ var arg_request = buildCancelOperationRequest(); |
+ var arg_name = "foo"; |
mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
- var obj = new api.ExperimentalCreateJobRequest.fromJson(json); |
- checkExperimentalCreateJobRequest(obj); |
+ var obj = new api.CancelOperationRequest.fromJson(json); |
+ checkCancelOperationRequest(obj); |
var path = (req.url).path; |
var pathOffset = 0; |
@@ -5168,10 +3148,9 @@ main() { |
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; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ pathOffset += 3; |
+ // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
var query = (req.url).query; |
var queryOffset = 0; |
@@ -5194,23 +3173,19 @@ main() { |
var h = { |
"content-type" : "application/json; charset=utf-8", |
}; |
- var resp = convert.JSON.encode(buildExperimentalCreateJobResponse()); |
+ var resp = convert.JSON.encode(buildEmpty()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.create(arg_request).then(unittest.expectAsync(((api.ExperimentalCreateJobResponse response) { |
- checkExperimentalCreateJobResponse(response); |
+ res.cancel(arg_request, arg_name).then(unittest.expectAsync(((api.Empty response) { |
+ checkEmpty(response); |
}))); |
}); |
- }); |
- |
- |
- unittest.group("resource-JobsResourceApi", () { |
- unittest.test("method--cancel", () { |
+ unittest.test("method--delete", () { |
var mock = new HttpServerMock(); |
- api.JobsResourceApi res = new api.GenomicsApi(mock).jobs; |
- var arg_jobId = "foo"; |
+ api.OperationsResourceApi res = new api.GenomicsApi(mock).operations; |
+ var arg_name = "foo"; |
mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
@@ -5218,17 +3193,9 @@ main() { |
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; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ pathOffset += 3; |
+ // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
var query = (req.url).query; |
var queryOffset = 0; |
@@ -5251,17 +3218,19 @@ main() { |
var h = { |
"content-type" : "application/json; charset=utf-8", |
}; |
- var resp = ""; |
+ var resp = convert.JSON.encode(buildEmpty()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.cancel(arg_jobId).then(unittest.expectAsync((_) {})); |
+ res.delete(arg_name).then(unittest.expectAsync(((api.Empty response) { |
+ checkEmpty(response); |
+ }))); |
}); |
unittest.test("method--get", () { |
var mock = new HttpServerMock(); |
- api.JobsResourceApi res = new api.GenomicsApi(mock).jobs; |
- var arg_jobId = "foo"; |
+ api.OperationsResourceApi res = new api.GenomicsApi(mock).operations; |
+ var arg_name = "foo"; |
mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
@@ -5269,13 +3238,9 @@ main() { |
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")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ pathOffset += 3; |
+ // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
var query = (req.url).query; |
var queryOffset = 0; |
@@ -5298,33 +3263,32 @@ main() { |
var h = { |
"content-type" : "application/json; charset=utf-8", |
}; |
- var resp = convert.JSON.encode(buildJob()); |
+ var resp = convert.JSON.encode(buildOperation()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.get(arg_jobId).then(unittest.expectAsync(((api.Job response) { |
- checkJob(response); |
+ res.get(arg_name).then(unittest.expectAsync(((api.Operation response) { |
+ checkOperation(response); |
}))); |
}); |
- unittest.test("method--search", () { |
+ unittest.test("method--list", () { |
var mock = new HttpServerMock(); |
- api.JobsResourceApi res = new api.GenomicsApi(mock).jobs; |
- var arg_request = buildSearchJobsRequest(); |
+ api.OperationsResourceApi res = new api.GenomicsApi(mock).operations; |
+ var arg_name = "foo"; |
+ var arg_filter = "foo"; |
+ var arg_pageSize = 42; |
+ var arg_pageToken = "foo"; |
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; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); |
+ pathOffset += 3; |
+ // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; |
var query = (req.url).query; |
var queryOffset = 0; |
@@ -5342,16 +3306,19 @@ main() { |
addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
+ unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
+ unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); |
+ unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
var h = { |
"content-type" : "application/json; charset=utf-8", |
}; |
- var resp = convert.JSON.encode(buildSearchJobsResponse()); |
+ var resp = convert.JSON.encode(buildListOperationsResponse()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.search(arg_request).then(unittest.expectAsync(((api.SearchJobsResponse response) { |
- checkSearchJobsResponse(response); |
+ res.list(arg_name, filter: arg_filter, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response) { |
+ checkListOperationsResponse(response); |
}))); |
}); |
@@ -5359,104 +3326,6 @@ main() { |
unittest.group("resource-ReadgroupsetsResourceApi", () { |
- unittest.test("method--align", () { |
- |
- var mock = new HttpServerMock(); |
- api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets; |
- var arg_request = buildAlignReadGroupSetsRequest(); |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
- var obj = new api.AlignReadGroupSetsRequest.fromJson(json); |
- checkAlignReadGroupSetsRequest(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 + 19), unittest.equals("readgroupsets/align")); |
- pathOffset += 19; |
- |
- 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(buildAlignReadGroupSetsResponse()); |
- return new async.Future.value(stringResponse(200, h, resp)); |
- }), true); |
- res.align(arg_request).then(unittest.expectAsync(((api.AlignReadGroupSetsResponse response) { |
- checkAlignReadGroupSetsResponse(response); |
- }))); |
- }); |
- |
- unittest.test("method--call", () { |
- |
- var mock = new HttpServerMock(); |
- api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets; |
- var arg_request = buildCallReadGroupSetsRequest(); |
- mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
- var obj = new api.CallReadGroupSetsRequest.fromJson(json); |
- checkCallReadGroupSetsRequest(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("readgroupsets/call")); |
- 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(buildCallReadGroupSetsResponse()); |
- return new async.Future.value(stringResponse(200, h, resp)); |
- }), true); |
- res.call(arg_request).then(unittest.expectAsync(((api.CallReadGroupSetsResponse response) { |
- checkCallReadGroupSetsResponse(response); |
- }))); |
- }); |
- |
unittest.test("method--delete", () { |
var mock = new HttpServerMock(); |
@@ -5469,10 +3338,8 @@ main() { |
var subPart; |
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v1/readgroupsets/")); |
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")); |
@@ -5498,20 +3365,23 @@ main() { |
var h = { |
"content-type" : "application/json; charset=utf-8", |
}; |
- var resp = ""; |
+ var resp = convert.JSON.encode(buildEmpty()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.delete(arg_readGroupSetId).then(unittest.expectAsync((_) {})); |
+ res.delete(arg_readGroupSetId).then(unittest.expectAsync(((api.Empty response) { |
+ checkEmpty(response); |
+ }))); |
}); |
unittest.test("method--export", () { |
var mock = new HttpServerMock(); |
api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets; |
- var arg_request = buildExportReadGroupSetsRequest(); |
+ var arg_request = buildExportReadGroupSetRequest(); |
+ var arg_readGroupSetId = "foo"; |
mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
- var obj = new api.ExportReadGroupSetsRequest.fromJson(json); |
- checkExportReadGroupSetsRequest(obj); |
+ var obj = new api.ExportReadGroupSetRequest.fromJson(json); |
+ checkExportReadGroupSetRequest(obj); |
var path = (req.url).path; |
var pathOffset = 0; |
@@ -5519,10 +3389,15 @@ main() { |
var subPart; |
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v1/readgroupsets/")); |
pathOffset += 17; |
- unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("readgroupsets/export")); |
- pathOffset += 20; |
+ 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_readGroupSetId")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals(":export")); |
+ pathOffset += 7; |
var query = (req.url).query; |
var queryOffset = 0; |
@@ -5545,11 +3420,11 @@ main() { |
var h = { |
"content-type" : "application/json; charset=utf-8", |
}; |
- var resp = convert.JSON.encode(buildExportReadGroupSetsResponse()); |
+ var resp = convert.JSON.encode(buildOperation()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.export(arg_request).then(unittest.expectAsync(((api.ExportReadGroupSetsResponse response) { |
- checkExportReadGroupSetsResponse(response); |
+ res.export(arg_request, arg_readGroupSetId).then(unittest.expectAsync(((api.Operation response) { |
+ checkOperation(response); |
}))); |
}); |
@@ -5565,10 +3440,8 @@ main() { |
var subPart; |
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v1/readgroupsets/")); |
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")); |
@@ -5617,10 +3490,8 @@ main() { |
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; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.equals("v1/readgroupsets:import")); |
+ pathOffset += 23; |
var query = (req.url).query; |
var queryOffset = 0; |
@@ -5643,11 +3514,11 @@ main() { |
var h = { |
"content-type" : "application/json; charset=utf-8", |
}; |
- var resp = convert.JSON.encode(buildImportReadGroupSetsResponse()); |
+ var resp = convert.JSON.encode(buildOperation()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.import(arg_request).then(unittest.expectAsync(((api.ImportReadGroupSetsResponse response) { |
- checkImportReadGroupSetsResponse(response); |
+ res.import(arg_request).then(unittest.expectAsync(((api.Operation response) { |
+ checkOperation(response); |
}))); |
}); |
@@ -5657,6 +3528,7 @@ main() { |
api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets; |
var arg_request = buildReadGroupSet(); |
var arg_readGroupSetId = "foo"; |
+ var arg_updateMask = "foo"; |
mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
var obj = new api.ReadGroupSet.fromJson(json); |
checkReadGroupSet(obj); |
@@ -5667,10 +3539,8 @@ main() { |
var subPart; |
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v1/readgroupsets/")); |
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")); |
@@ -5691,6 +3561,7 @@ main() { |
addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
+ unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_updateMask)); |
var h = { |
@@ -5699,7 +3570,7 @@ main() { |
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) { |
+ res.patch(arg_request, arg_readGroupSetId, updateMask: arg_updateMask).then(unittest.expectAsync(((api.ReadGroupSet response) { |
checkReadGroupSet(response); |
}))); |
}); |
@@ -5719,10 +3590,8 @@ main() { |
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; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.equals("v1/readgroupsets/search")); |
+ pathOffset += 23; |
var query = (req.url).query; |
var queryOffset = 0; |
@@ -5753,59 +3622,6 @@ main() { |
}))); |
}); |
- 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); |
- }))); |
- }); |
- |
}); |
@@ -5815,12 +3631,12 @@ main() { |
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_referenceName = "foo"; |
+ var arg_start = "foo"; |
+ var arg_end = "foo"; |
var arg_targetBucketWidth = "foo"; |
+ var arg_pageToken = "foo"; |
+ var arg_pageSize = 42; |
mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
@@ -5828,10 +3644,8 @@ main() { |
var subPart; |
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v1/readgroupsets/")); |
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)); |
@@ -5856,12 +3670,12 @@ main() { |
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["referenceName"].first, unittest.equals(arg_referenceName)); |
+ unittest.expect(queryMap["start"].first, unittest.equals(arg_start)); |
+ unittest.expect(queryMap["end"].first, unittest.equals(arg_end)); |
unittest.expect(queryMap["targetBucketWidth"].first, unittest.equals(arg_targetBucketWidth)); |
+ unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken)); |
+ unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); |
var h = { |
@@ -5870,7 +3684,7 @@ main() { |
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) { |
+ res.list(arg_readGroupSetId, referenceName: arg_referenceName, start: arg_start, end: arg_end, targetBucketWidth: arg_targetBucketWidth, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListCoverageBucketsResponse response) { |
checkListCoverageBucketsResponse(response); |
}))); |
}); |
@@ -5894,10 +3708,8 @@ main() { |
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; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("v1/reads/search")); |
+ pathOffset += 15; |
var query = (req.url).query; |
var queryOffset = 0; |
@@ -5944,10 +3756,8 @@ main() { |
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; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("v1/references/")); |
+ pathOffset += 14; |
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
pathOffset = path.length; |
unittest.expect(subPart, unittest.equals("$arg_referenceId")); |
@@ -5996,10 +3806,8 @@ main() { |
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; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("v1/references/search")); |
+ pathOffset += 20; |
var query = (req.url).query; |
var queryOffset = 0; |
@@ -6039,10 +3847,10 @@ main() { |
var mock = new HttpServerMock(); |
api.ReferencesBasesResourceApi res = new api.GenomicsApi(mock).references.bases; |
var arg_referenceId = "foo"; |
+ var arg_start = "foo"; |
var arg_end = "foo"; |
- var arg_pageSize = 42; |
var arg_pageToken = "foo"; |
- var arg_start = "foo"; |
+ var arg_pageSize = 42; |
mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
var path = (req.url).path; |
var pathOffset = 0; |
@@ -6050,10 +3858,8 @@ main() { |
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; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("v1/references/")); |
+ pathOffset += 14; |
index = path.indexOf("/bases", pathOffset); |
unittest.expect(index >= 0, unittest.isTrue); |
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); |
@@ -6078,10 +3884,10 @@ main() { |
addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
+ unittest.expect(queryMap["start"].first, unittest.equals(arg_start)); |
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)); |
+ unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); |
var h = { |
@@ -6090,7 +3896,7 @@ main() { |
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) { |
+ res.list(arg_referenceId, start: arg_start, end: arg_end, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListBasesResponse response) { |
checkListBasesResponse(response); |
}))); |
}); |
@@ -6111,10 +3917,8 @@ main() { |
var subPart; |
unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); |
pathOffset += 1; |
- unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("genomics/v1beta2/")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v1/referencesets/")); |
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")); |
@@ -6163,10 +3967,8 @@ main() { |
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; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.equals("v1/referencesets/search")); |
+ pathOffset += 23; |
var query = (req.url).query; |
var queryOffset = 0; |
@@ -6216,10 +4018,8 @@ main() { |
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; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("v1/variants")); |
+ pathOffset += 11; |
var query = (req.url).query; |
var queryOffset = 0; |
@@ -6262,10 +4062,8 @@ main() { |
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; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("v1/variants/")); |
+ pathOffset += 12; |
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
pathOffset = path.length; |
unittest.expect(subPart, unittest.equals("$arg_variantId")); |
@@ -6291,10 +4089,12 @@ main() { |
var h = { |
"content-type" : "application/json; charset=utf-8", |
}; |
- var resp = ""; |
+ var resp = convert.JSON.encode(buildEmpty()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.delete(arg_variantId).then(unittest.expectAsync((_) {})); |
+ res.delete(arg_variantId).then(unittest.expectAsync(((api.Empty response) { |
+ checkEmpty(response); |
+ }))); |
}); |
unittest.test("method--get", () { |
@@ -6309,10 +4109,8 @@ main() { |
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; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("v1/variants/")); |
+ pathOffset += 12; |
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
pathOffset = path.length; |
unittest.expect(subPart, unittest.equals("$arg_variantId")); |
@@ -6346,14 +4144,14 @@ main() { |
}))); |
}); |
- unittest.test("method--search", () { |
+ unittest.test("method--import", () { |
var mock = new HttpServerMock(); |
api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; |
- var arg_request = buildSearchVariantsRequest(); |
+ var arg_request = buildImportVariantsRequest(); |
mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
- var obj = new api.SearchVariantsRequest.fromJson(json); |
- checkSearchVariantsRequest(obj); |
+ var obj = new api.ImportVariantsRequest.fromJson(json); |
+ checkImportVariantsRequest(obj); |
var path = (req.url).path; |
var pathOffset = 0; |
@@ -6361,10 +4159,8 @@ main() { |
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; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("v1/variants:import")); |
+ pathOffset += 18; |
var query = (req.url).query; |
var queryOffset = 0; |
@@ -6387,20 +4183,21 @@ main() { |
var h = { |
"content-type" : "application/json; charset=utf-8", |
}; |
- var resp = convert.JSON.encode(buildSearchVariantsResponse()); |
+ var resp = convert.JSON.encode(buildOperation()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.search(arg_request).then(unittest.expectAsync(((api.SearchVariantsResponse response) { |
- checkSearchVariantsResponse(response); |
+ res.import(arg_request).then(unittest.expectAsync(((api.Operation response) { |
+ checkOperation(response); |
}))); |
}); |
- unittest.test("method--update", () { |
+ unittest.test("method--patch", () { |
var mock = new HttpServerMock(); |
api.VariantsResourceApi res = new api.GenomicsApi(mock).variants; |
var arg_request = buildVariant(); |
var arg_variantId = "foo"; |
+ var arg_updateMask = "foo"; |
mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
var obj = new api.Variant.fromJson(json); |
checkVariant(obj); |
@@ -6411,10 +4208,8 @@ main() { |
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; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("v1/variants/")); |
+ pathOffset += 12; |
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
pathOffset = path.length; |
unittest.expect(subPart, unittest.equals("$arg_variantId")); |
@@ -6435,6 +4230,7 @@ main() { |
addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
+ unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_updateMask)); |
var h = { |
@@ -6443,34 +4239,28 @@ main() { |
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) { |
+ res.patch(arg_request, arg_variantId, updateMask: arg_updateMask).then(unittest.expectAsync(((api.Variant response) { |
checkVariant(response); |
}))); |
}); |
- }); |
- |
- |
- unittest.group("resource-VariantsetsResourceApi", () { |
- unittest.test("method--delete", () { |
+ unittest.test("method--search", () { |
var mock = new HttpServerMock(); |
- api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; |
- var arg_variantSetId = "foo"; |
+ 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 + 12), unittest.equals("variantsets/")); |
- pathOffset += 12; |
- subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
- pathOffset = path.length; |
- unittest.expect(subPart, unittest.equals("$arg_variantSetId")); |
+ unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("v1/variants/search")); |
+ pathOffset += 18; |
var query = (req.url).query; |
var queryOffset = 0; |
@@ -6493,21 +4283,26 @@ main() { |
var h = { |
"content-type" : "application/json; charset=utf-8", |
}; |
- var resp = ""; |
+ var resp = convert.JSON.encode(buildSearchVariantsResponse()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.delete(arg_variantSetId).then(unittest.expectAsync((_) {})); |
+ res.search(arg_request).then(unittest.expectAsync(((api.SearchVariantsResponse response) { |
+ checkSearchVariantsResponse(response); |
+ }))); |
}); |
- unittest.test("method--export", () { |
+ }); |
+ |
+ |
+ unittest.group("resource-VariantsetsResourceApi", () { |
+ unittest.test("method--create", () { |
var mock = new HttpServerMock(); |
api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; |
- var arg_request = buildExportVariantSetRequest(); |
- var arg_variantSetId = "foo"; |
+ var arg_request = buildVariantSet(); |
mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
- var obj = new api.ExportVariantSetRequest.fromJson(json); |
- checkExportVariantSetRequest(obj); |
+ var obj = new api.VariantSet.fromJson(json); |
+ checkVariantSet(obj); |
var path = (req.url).path; |
var pathOffset = 0; |
@@ -6515,17 +4310,8 @@ main() { |
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; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("v1/variantsets")); |
+ pathOffset += 14; |
var query = (req.url).query; |
var queryOffset = 0; |
@@ -6548,15 +4334,15 @@ main() { |
var h = { |
"content-type" : "application/json; charset=utf-8", |
}; |
- var resp = convert.JSON.encode(buildExportVariantSetResponse()); |
+ var resp = convert.JSON.encode(buildVariantSet()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.export(arg_request, arg_variantSetId).then(unittest.expectAsync(((api.ExportVariantSetResponse response) { |
- checkExportVariantSetResponse(response); |
+ res.create(arg_request).then(unittest.expectAsync(((api.VariantSet response) { |
+ checkVariantSet(response); |
}))); |
}); |
- unittest.test("method--get", () { |
+ unittest.test("method--delete", () { |
var mock = new HttpServerMock(); |
api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; |
@@ -6568,10 +4354,8 @@ main() { |
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; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("v1/variantsets/")); |
+ pathOffset += 15; |
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
pathOffset = path.length; |
unittest.expect(subPart, unittest.equals("$arg_variantSetId")); |
@@ -6597,23 +4381,23 @@ main() { |
var h = { |
"content-type" : "application/json; charset=utf-8", |
}; |
- var resp = convert.JSON.encode(buildVariantSet()); |
+ var resp = convert.JSON.encode(buildEmpty()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.get(arg_variantSetId).then(unittest.expectAsync(((api.VariantSet response) { |
- checkVariantSet(response); |
+ res.delete(arg_variantSetId).then(unittest.expectAsync(((api.Empty response) { |
+ checkEmpty(response); |
}))); |
}); |
- unittest.test("method--importVariants", () { |
+ unittest.test("method--export", () { |
var mock = new HttpServerMock(); |
api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; |
- var arg_request = buildImportVariantsRequest(); |
+ var arg_request = buildExportVariantSetRequest(); |
var arg_variantSetId = "foo"; |
mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
- var obj = new api.ImportVariantsRequest.fromJson(json); |
- checkImportVariantsRequest(obj); |
+ var obj = new api.ExportVariantSetRequest.fromJson(json); |
+ checkExportVariantSetRequest(obj); |
var path = (req.url).path; |
var pathOffset = 0; |
@@ -6621,17 +4405,15 @@ main() { |
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(path.substring(pathOffset, pathOffset + 15), unittest.equals("v1/variantsets/")); |
+ pathOffset += 15; |
+ 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 + 15), unittest.equals("/importVariants")); |
- pathOffset += 15; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 7), unittest.equals(":export")); |
+ pathOffset += 7; |
var query = (req.url).query; |
var queryOffset = 0; |
@@ -6654,41 +4436,31 @@ main() { |
var h = { |
"content-type" : "application/json; charset=utf-8", |
}; |
- var resp = convert.JSON.encode(buildImportVariantsResponse()); |
+ var resp = convert.JSON.encode(buildOperation()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.importVariants(arg_request, arg_variantSetId).then(unittest.expectAsync(((api.ImportVariantsResponse response) { |
- checkImportVariantsResponse(response); |
+ res.export(arg_request, arg_variantSetId).then(unittest.expectAsync(((api.Operation response) { |
+ checkOperation(response); |
}))); |
}); |
- unittest.test("method--mergeVariants", () { |
+ unittest.test("method--get", () { |
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(path.substring(pathOffset, pathOffset + 15), unittest.equals("v1/variantsets/")); |
+ pathOffset += 15; |
+ subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
+ pathOffset = path.length; |
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; |
@@ -6711,10 +4483,12 @@ main() { |
var h = { |
"content-type" : "application/json; charset=utf-8", |
}; |
- var resp = ""; |
+ var resp = convert.JSON.encode(buildVariantSet()); |
return new async.Future.value(stringResponse(200, h, resp)); |
}), true); |
- res.mergeVariants(arg_request, arg_variantSetId).then(unittest.expectAsync((_) {})); |
+ res.get(arg_variantSetId).then(unittest.expectAsync(((api.VariantSet response) { |
+ checkVariantSet(response); |
+ }))); |
}); |
unittest.test("method--patch", () { |
@@ -6723,6 +4497,7 @@ main() { |
api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets; |
var arg_request = buildVariantSet(); |
var arg_variantSetId = "foo"; |
+ var arg_updateMask = "foo"; |
mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
var obj = new api.VariantSet.fromJson(json); |
checkVariantSet(obj); |
@@ -6733,10 +4508,8 @@ main() { |
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; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("v1/variantsets/")); |
+ pathOffset += 15; |
subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); |
pathOffset = path.length; |
unittest.expect(subPart, unittest.equals("$arg_variantSetId")); |
@@ -6757,6 +4530,7 @@ main() { |
addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1])); |
} |
} |
+ unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_updateMask)); |
var h = { |
@@ -6765,7 +4539,7 @@ main() { |
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) { |
+ res.patch(arg_request, arg_variantSetId, updateMask: arg_updateMask).then(unittest.expectAsync(((api.VariantSet response) { |
checkVariantSet(response); |
}))); |
}); |
@@ -6785,10 +4559,8 @@ main() { |
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; |
+ unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("v1/variantsets/search")); |
+ pathOffset += 21; |
var query = (req.url).query; |
var queryOffset = 0; |
@@ -6819,59 +4591,6 @@ main() { |
}))); |
}); |
- 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); |
- }))); |
- }); |
- |
}); |