| Index: generated/googleapis/test/genomics/v1_test.dart
|
| diff --git a/generated/googleapis/test/genomics/v1_test.dart b/generated/googleapis/test/genomics/v1_test.dart
|
| index e87f427bcf7cd339d8407f440124f7a3c4f2d12d..3b0b7b74fcee636cf1cf2efae50e54847a0378b6 100644
|
| --- a/generated/googleapis/test/genomics/v1_test.dart
|
| +++ b/generated/googleapis/test/genomics/v1_test.dart
|
| @@ -1,12 +1,10 @@
|
| library googleapis.genomics.v1.test;
|
|
|
| import "dart:core" as core;
|
| -import "dart:collection" as collection;
|
| import "dart:async" as async;
|
| import "dart:convert" as convert;
|
|
|
| import 'package:http/http.dart' as http;
|
| -import 'package:http/testing.dart' as http_testing;
|
| import 'package:test/test.dart' as unittest;
|
|
|
| import 'package:googleapis/genomics/v1.dart' as api;
|
| @@ -22,7 +20,8 @@ class HttpServerMock extends http.BaseClient {
|
|
|
| async.Future<http.StreamedResponse> send(http.BaseRequest request) {
|
| if (_expectJson) {
|
| - return request.finalize()
|
| + return request
|
| + .finalize()
|
| .transform(convert.UTF8.decoder)
|
| .join('')
|
| .then((core.String jsonString) {
|
| @@ -45,36 +44,52 @@ class HttpServerMock extends http.BaseClient {
|
| }
|
| }
|
|
|
| -http.StreamedResponse stringResponse(
|
| - core.int status, core.Map<core.String, core.String> headers, core.String body) {
|
| +http.StreamedResponse stringResponse(core.int status,
|
| + core.Map<core.String, core.String> headers, core.String body) {
|
| var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
|
| return new http.StreamedResponse(stream, status, headers: headers);
|
| }
|
|
|
| -buildUnnamed2549() {
|
| +buildUnnamed2536() {
|
| 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'});
|
| + o.add({
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + });
|
| + o.add({
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + });
|
| return o;
|
| }
|
|
|
| -checkUnnamed2549(core.List<core.Object> o) {
|
| +checkUnnamed2536(core.List<core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - 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'));
|
| -}
|
| -
|
| -buildUnnamed2550() {
|
| + 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'));
|
| +}
|
| +
|
| +buildUnnamed2537() {
|
| var o = new core.Map<core.String, core.List<core.Object>>();
|
| - o["x"] = buildUnnamed2549();
|
| - o["y"] = buildUnnamed2549();
|
| + o["x"] = buildUnnamed2536();
|
| + o["y"] = buildUnnamed2536();
|
| return o;
|
| }
|
|
|
| -checkUnnamed2550(core.Map<core.String, core.List<core.Object>> o) {
|
| +checkUnnamed2537(core.Map<core.String, core.List<core.Object>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed2549(o["x"]);
|
| - checkUnnamed2549(o["y"]);
|
| + checkUnnamed2536(o["x"]);
|
| + checkUnnamed2536(o["y"]);
|
| }
|
|
|
| core.int buildCounterAnnotation = 0;
|
| @@ -85,7 +100,7 @@ buildAnnotation() {
|
| o.annotationSetId = "foo";
|
| o.end = "foo";
|
| o.id = "foo";
|
| - o.info = buildUnnamed2550();
|
| + o.info = buildUnnamed2537();
|
| o.name = "foo";
|
| o.referenceId = "foo";
|
| o.referenceName = "foo";
|
| @@ -105,7 +120,7 @@ checkAnnotation(api.Annotation o) {
|
| unittest.expect(o.annotationSetId, unittest.equals('foo'));
|
| unittest.expect(o.end, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2550(o.info);
|
| + checkUnnamed2537(o.info);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.referenceId, unittest.equals('foo'));
|
| unittest.expect(o.referenceName, unittest.equals('foo'));
|
| @@ -118,30 +133,46 @@ checkAnnotation(api.Annotation o) {
|
| buildCounterAnnotation--;
|
| }
|
|
|
| -buildUnnamed2551() {
|
| +buildUnnamed2538() {
|
| 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'});
|
| + o.add({
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + });
|
| + o.add({
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + });
|
| return o;
|
| }
|
|
|
| -checkUnnamed2551(core.List<core.Object> o) {
|
| +checkUnnamed2538(core.List<core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - var casted3 = (o[0]) 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[1]) 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'));
|
| -}
|
| -
|
| -buildUnnamed2552() {
|
| + var casted3 = (o[0]) 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[1]) 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'));
|
| +}
|
| +
|
| +buildUnnamed2539() {
|
| var o = new core.Map<core.String, core.List<core.Object>>();
|
| - o["x"] = buildUnnamed2551();
|
| - o["y"] = buildUnnamed2551();
|
| + o["x"] = buildUnnamed2538();
|
| + o["y"] = buildUnnamed2538();
|
| return o;
|
| }
|
|
|
| -checkUnnamed2552(core.Map<core.String, core.List<core.Object>> o) {
|
| +checkUnnamed2539(core.Map<core.String, core.List<core.Object>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed2551(o["x"]);
|
| - checkUnnamed2551(o["y"]);
|
| + checkUnnamed2538(o["x"]);
|
| + checkUnnamed2538(o["y"]);
|
| }
|
|
|
| core.int buildCounterAnnotationSet = 0;
|
| @@ -151,7 +182,7 @@ buildAnnotationSet() {
|
| if (buildCounterAnnotationSet < 3) {
|
| o.datasetId = "foo";
|
| o.id = "foo";
|
| - o.info = buildUnnamed2552();
|
| + o.info = buildUnnamed2539();
|
| o.name = "foo";
|
| o.referenceSetId = "foo";
|
| o.sourceUri = "foo";
|
| @@ -166,7 +197,7 @@ checkAnnotationSet(api.AnnotationSet o) {
|
| if (buildCounterAnnotationSet < 3) {
|
| unittest.expect(o.datasetId, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2552(o.info);
|
| + checkUnnamed2539(o.info);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.referenceSetId, unittest.equals('foo'));
|
| unittest.expect(o.sourceUri, unittest.equals('foo'));
|
| @@ -175,14 +206,14 @@ checkAnnotationSet(api.AnnotationSet o) {
|
| buildCounterAnnotationSet--;
|
| }
|
|
|
| -buildUnnamed2553() {
|
| +buildUnnamed2540() {
|
| var o = new core.List<api.Annotation>();
|
| o.add(buildAnnotation());
|
| o.add(buildAnnotation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2553(core.List<api.Annotation> o) {
|
| +checkUnnamed2540(core.List<api.Annotation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAnnotation(o[0]);
|
| checkAnnotation(o[1]);
|
| @@ -193,7 +224,7 @@ buildBatchCreateAnnotationsRequest() {
|
| var o = new api.BatchCreateAnnotationsRequest();
|
| buildCounterBatchCreateAnnotationsRequest++;
|
| if (buildCounterBatchCreateAnnotationsRequest < 3) {
|
| - o.annotations = buildUnnamed2553();
|
| + o.annotations = buildUnnamed2540();
|
| o.requestId = "foo";
|
| }
|
| buildCounterBatchCreateAnnotationsRequest--;
|
| @@ -203,20 +234,20 @@ buildBatchCreateAnnotationsRequest() {
|
| checkBatchCreateAnnotationsRequest(api.BatchCreateAnnotationsRequest o) {
|
| buildCounterBatchCreateAnnotationsRequest++;
|
| if (buildCounterBatchCreateAnnotationsRequest < 3) {
|
| - checkUnnamed2553(o.annotations);
|
| + checkUnnamed2540(o.annotations);
|
| unittest.expect(o.requestId, unittest.equals('foo'));
|
| }
|
| buildCounterBatchCreateAnnotationsRequest--;
|
| }
|
|
|
| -buildUnnamed2554() {
|
| +buildUnnamed2541() {
|
| var o = new core.List<api.Entry>();
|
| o.add(buildEntry());
|
| o.add(buildEntry());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2554(core.List<api.Entry> o) {
|
| +checkUnnamed2541(core.List<api.Entry> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkEntry(o[0]);
|
| checkEntry(o[1]);
|
| @@ -227,7 +258,7 @@ buildBatchCreateAnnotationsResponse() {
|
| var o = new api.BatchCreateAnnotationsResponse();
|
| buildCounterBatchCreateAnnotationsResponse++;
|
| if (buildCounterBatchCreateAnnotationsResponse < 3) {
|
| - o.entries = buildUnnamed2554();
|
| + o.entries = buildUnnamed2541();
|
| }
|
| buildCounterBatchCreateAnnotationsResponse--;
|
| return o;
|
| @@ -236,19 +267,19 @@ buildBatchCreateAnnotationsResponse() {
|
| checkBatchCreateAnnotationsResponse(api.BatchCreateAnnotationsResponse o) {
|
| buildCounterBatchCreateAnnotationsResponse++;
|
| if (buildCounterBatchCreateAnnotationsResponse < 3) {
|
| - checkUnnamed2554(o.entries);
|
| + checkUnnamed2541(o.entries);
|
| }
|
| buildCounterBatchCreateAnnotationsResponse--;
|
| }
|
|
|
| -buildUnnamed2555() {
|
| +buildUnnamed2542() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2555(core.List<core.String> o) {
|
| +checkUnnamed2542(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'));
|
| @@ -259,7 +290,7 @@ buildBinding() {
|
| var o = new api.Binding();
|
| buildCounterBinding++;
|
| if (buildCounterBinding < 3) {
|
| - o.members = buildUnnamed2555();
|
| + o.members = buildUnnamed2542();
|
| o.role = "foo";
|
| }
|
| buildCounterBinding--;
|
| @@ -269,46 +300,62 @@ buildBinding() {
|
| checkBinding(api.Binding o) {
|
| buildCounterBinding++;
|
| if (buildCounterBinding < 3) {
|
| - checkUnnamed2555(o.members);
|
| + checkUnnamed2542(o.members);
|
| unittest.expect(o.role, unittest.equals('foo'));
|
| }
|
| buildCounterBinding--;
|
| }
|
|
|
| -buildUnnamed2556() {
|
| +buildUnnamed2543() {
|
| 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'});
|
| + o.add({
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + });
|
| + o.add({
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + });
|
| return o;
|
| }
|
|
|
| -checkUnnamed2556(core.List<core.Object> o) {
|
| +checkUnnamed2543(core.List<core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - var casted5 = (o[0]) 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[1]) 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'));
|
| -}
|
| -
|
| -buildUnnamed2557() {
|
| + var casted5 = (o[0]) 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[1]) 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'));
|
| +}
|
| +
|
| +buildUnnamed2544() {
|
| var o = new core.Map<core.String, core.List<core.Object>>();
|
| - o["x"] = buildUnnamed2556();
|
| - o["y"] = buildUnnamed2556();
|
| + o["x"] = buildUnnamed2543();
|
| + o["y"] = buildUnnamed2543();
|
| return o;
|
| }
|
|
|
| -checkUnnamed2557(core.Map<core.String, core.List<core.Object>> o) {
|
| +checkUnnamed2544(core.Map<core.String, core.List<core.Object>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed2556(o["x"]);
|
| - checkUnnamed2556(o["y"]);
|
| + checkUnnamed2543(o["x"]);
|
| + checkUnnamed2543(o["y"]);
|
| }
|
|
|
| -buildUnnamed2558() {
|
| +buildUnnamed2545() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2558(core.List<core.String> o) {
|
| +checkUnnamed2545(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'));
|
| @@ -321,10 +368,10 @@ buildCallSet() {
|
| if (buildCounterCallSet < 3) {
|
| o.created = "foo";
|
| o.id = "foo";
|
| - o.info = buildUnnamed2557();
|
| + o.info = buildUnnamed2544();
|
| o.name = "foo";
|
| o.sampleId = "foo";
|
| - o.variantSetIds = buildUnnamed2558();
|
| + o.variantSetIds = buildUnnamed2545();
|
| }
|
| buildCounterCallSet--;
|
| return o;
|
| @@ -335,10 +382,10 @@ checkCallSet(api.CallSet o) {
|
| if (buildCounterCallSet < 3) {
|
| unittest.expect(o.created, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2557(o.info);
|
| + checkUnnamed2544(o.info);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.sampleId, unittest.equals('foo'));
|
| - checkUnnamed2558(o.variantSetIds);
|
| + checkUnnamed2545(o.variantSetIds);
|
| }
|
| buildCounterCallSet--;
|
| }
|
| @@ -347,16 +394,14 @@ core.int buildCounterCancelOperationRequest = 0;
|
| buildCancelOperationRequest() {
|
| var o = new api.CancelOperationRequest();
|
| buildCounterCancelOperationRequest++;
|
| - if (buildCounterCancelOperationRequest < 3) {
|
| - }
|
| + if (buildCounterCancelOperationRequest < 3) {}
|
| buildCounterCancelOperationRequest--;
|
| return o;
|
| }
|
|
|
| checkCancelOperationRequest(api.CancelOperationRequest o) {
|
| buildCounterCancelOperationRequest++;
|
| - if (buildCounterCancelOperationRequest < 3) {
|
| - }
|
| + if (buildCounterCancelOperationRequest < 3) {}
|
| buildCounterCancelOperationRequest--;
|
| }
|
|
|
| @@ -383,27 +428,27 @@ checkCigarUnit(api.CigarUnit o) {
|
| buildCounterCigarUnit--;
|
| }
|
|
|
| -buildUnnamed2559() {
|
| +buildUnnamed2546() {
|
| var o = new core.List<api.ExternalId>();
|
| o.add(buildExternalId());
|
| o.add(buildExternalId());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2559(core.List<api.ExternalId> o) {
|
| +checkUnnamed2546(core.List<api.ExternalId> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkExternalId(o[0]);
|
| checkExternalId(o[1]);
|
| }
|
|
|
| -buildUnnamed2560() {
|
| +buildUnnamed2547() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2560(core.List<core.String> o) {
|
| +checkUnnamed2547(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'));
|
| @@ -415,8 +460,8 @@ buildClinicalCondition() {
|
| buildCounterClinicalCondition++;
|
| if (buildCounterClinicalCondition < 3) {
|
| o.conceptId = "foo";
|
| - o.externalIds = buildUnnamed2559();
|
| - o.names = buildUnnamed2560();
|
| + o.externalIds = buildUnnamed2546();
|
| + o.names = buildUnnamed2547();
|
| o.omimId = "foo";
|
| }
|
| buildCounterClinicalCondition--;
|
| @@ -427,8 +472,8 @@ checkClinicalCondition(api.ClinicalCondition o) {
|
| buildCounterClinicalCondition++;
|
| if (buildCounterClinicalCondition < 3) {
|
| unittest.expect(o.conceptId, unittest.equals('foo'));
|
| - checkUnnamed2559(o.externalIds);
|
| - checkUnnamed2560(o.names);
|
| + checkUnnamed2546(o.externalIds);
|
| + checkUnnamed2547(o.names);
|
| unittest.expect(o.omimId, unittest.equals('foo'));
|
| }
|
| buildCounterClinicalCondition--;
|
| @@ -455,14 +500,14 @@ checkCodingSequence(api.CodingSequence o) {
|
| buildCounterCodingSequence--;
|
| }
|
|
|
| -buildUnnamed2561() {
|
| +buildUnnamed2548() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2561(core.List<core.String> o) {
|
| +checkUnnamed2548(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'));
|
| @@ -473,7 +518,7 @@ buildComputeEngine() {
|
| var o = new api.ComputeEngine();
|
| buildCounterComputeEngine++;
|
| if (buildCounterComputeEngine < 3) {
|
| - o.diskNames = buildUnnamed2561();
|
| + o.diskNames = buildUnnamed2548();
|
| o.instanceName = "foo";
|
| o.machineType = "foo";
|
| o.zone = "foo";
|
| @@ -485,7 +530,7 @@ buildComputeEngine() {
|
| checkComputeEngine(api.ComputeEngine o) {
|
| buildCounterComputeEngine++;
|
| if (buildCounterComputeEngine < 3) {
|
| - checkUnnamed2561(o.diskNames);
|
| + checkUnnamed2548(o.diskNames);
|
| unittest.expect(o.instanceName, unittest.equals('foo'));
|
| unittest.expect(o.machineType, unittest.equals('foo'));
|
| unittest.expect(o.zone, unittest.equals('foo'));
|
| @@ -543,16 +588,14 @@ core.int buildCounterEmpty = 0;
|
| buildEmpty() {
|
| var o = new api.Empty();
|
| buildCounterEmpty++;
|
| - if (buildCounterEmpty < 3) {
|
| - }
|
| + if (buildCounterEmpty < 3) {}
|
| buildCounterEmpty--;
|
| return o;
|
| }
|
|
|
| checkEmpty(api.Empty o) {
|
| buildCounterEmpty++;
|
| - if (buildCounterEmpty < 3) {
|
| - }
|
| + if (buildCounterEmpty < 3) {}
|
| buildCounterEmpty--;
|
| }
|
|
|
| @@ -625,14 +668,14 @@ checkExperiment(api.Experiment o) {
|
| buildCounterExperiment--;
|
| }
|
|
|
| -buildUnnamed2562() {
|
| +buildUnnamed2549() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2562(core.List<core.String> o) {
|
| +checkUnnamed2549(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'));
|
| @@ -645,7 +688,7 @@ buildExportReadGroupSetRequest() {
|
| if (buildCounterExportReadGroupSetRequest < 3) {
|
| o.exportUri = "foo";
|
| o.projectId = "foo";
|
| - o.referenceNames = buildUnnamed2562();
|
| + o.referenceNames = buildUnnamed2549();
|
| }
|
| buildCounterExportReadGroupSetRequest--;
|
| return o;
|
| @@ -656,19 +699,19 @@ checkExportReadGroupSetRequest(api.ExportReadGroupSetRequest o) {
|
| if (buildCounterExportReadGroupSetRequest < 3) {
|
| unittest.expect(o.exportUri, unittest.equals('foo'));
|
| unittest.expect(o.projectId, unittest.equals('foo'));
|
| - checkUnnamed2562(o.referenceNames);
|
| + checkUnnamed2549(o.referenceNames);
|
| }
|
| buildCounterExportReadGroupSetRequest--;
|
| }
|
|
|
| -buildUnnamed2563() {
|
| +buildUnnamed2550() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2563(core.List<core.String> o) {
|
| +checkUnnamed2550(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'));
|
| @@ -681,7 +724,7 @@ buildExportVariantSetRequest() {
|
| if (buildCounterExportVariantSetRequest < 3) {
|
| o.bigqueryDataset = "foo";
|
| o.bigqueryTable = "foo";
|
| - o.callSetIds = buildUnnamed2563();
|
| + o.callSetIds = buildUnnamed2550();
|
| o.format = "foo";
|
| o.projectId = "foo";
|
| }
|
| @@ -694,7 +737,7 @@ checkExportVariantSetRequest(api.ExportVariantSetRequest o) {
|
| if (buildCounterExportVariantSetRequest < 3) {
|
| unittest.expect(o.bigqueryDataset, unittest.equals('foo'));
|
| unittest.expect(o.bigqueryTable, unittest.equals('foo'));
|
| - checkUnnamed2563(o.callSetIds);
|
| + checkUnnamed2550(o.callSetIds);
|
| unittest.expect(o.format, unittest.equals('foo'));
|
| unittest.expect(o.projectId, unittest.equals('foo'));
|
| }
|
| @@ -726,27 +769,25 @@ core.int buildCounterGetIamPolicyRequest = 0;
|
| buildGetIamPolicyRequest() {
|
| var o = new api.GetIamPolicyRequest();
|
| buildCounterGetIamPolicyRequest++;
|
| - if (buildCounterGetIamPolicyRequest < 3) {
|
| - }
|
| + if (buildCounterGetIamPolicyRequest < 3) {}
|
| buildCounterGetIamPolicyRequest--;
|
| return o;
|
| }
|
|
|
| checkGetIamPolicyRequest(api.GetIamPolicyRequest o) {
|
| buildCounterGetIamPolicyRequest++;
|
| - if (buildCounterGetIamPolicyRequest < 3) {
|
| - }
|
| + if (buildCounterGetIamPolicyRequest < 3) {}
|
| buildCounterGetIamPolicyRequest--;
|
| }
|
|
|
| -buildUnnamed2564() {
|
| +buildUnnamed2551() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2564(core.List<core.String> o) {
|
| +checkUnnamed2551(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'));
|
| @@ -760,7 +801,7 @@ buildImportReadGroupSetsRequest() {
|
| o.datasetId = "foo";
|
| o.partitionStrategy = "foo";
|
| o.referenceSetId = "foo";
|
| - o.sourceUris = buildUnnamed2564();
|
| + o.sourceUris = buildUnnamed2551();
|
| }
|
| buildCounterImportReadGroupSetsRequest--;
|
| return o;
|
| @@ -772,19 +813,19 @@ checkImportReadGroupSetsRequest(api.ImportReadGroupSetsRequest o) {
|
| unittest.expect(o.datasetId, unittest.equals('foo'));
|
| unittest.expect(o.partitionStrategy, unittest.equals('foo'));
|
| unittest.expect(o.referenceSetId, unittest.equals('foo'));
|
| - checkUnnamed2564(o.sourceUris);
|
| + checkUnnamed2551(o.sourceUris);
|
| }
|
| buildCounterImportReadGroupSetsRequest--;
|
| }
|
|
|
| -buildUnnamed2565() {
|
| +buildUnnamed2552() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2565(core.List<core.String> o) {
|
| +checkUnnamed2552(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'));
|
| @@ -795,7 +836,7 @@ buildImportReadGroupSetsResponse() {
|
| var o = new api.ImportReadGroupSetsResponse();
|
| buildCounterImportReadGroupSetsResponse++;
|
| if (buildCounterImportReadGroupSetsResponse < 3) {
|
| - o.readGroupSetIds = buildUnnamed2565();
|
| + o.readGroupSetIds = buildUnnamed2552();
|
| }
|
| buildCounterImportReadGroupSetsResponse--;
|
| return o;
|
| @@ -804,32 +845,32 @@ buildImportReadGroupSetsResponse() {
|
| checkImportReadGroupSetsResponse(api.ImportReadGroupSetsResponse o) {
|
| buildCounterImportReadGroupSetsResponse++;
|
| if (buildCounterImportReadGroupSetsResponse < 3) {
|
| - checkUnnamed2565(o.readGroupSetIds);
|
| + checkUnnamed2552(o.readGroupSetIds);
|
| }
|
| buildCounterImportReadGroupSetsResponse--;
|
| }
|
|
|
| -buildUnnamed2566() {
|
| +buildUnnamed2553() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed2566(core.Map<core.String, core.String> o) {
|
| +checkUnnamed2553(core.Map<core.String, core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o["x"], unittest.equals('foo'));
|
| unittest.expect(o["y"], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed2567() {
|
| +buildUnnamed2554() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2567(core.List<core.String> o) {
|
| +checkUnnamed2554(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'));
|
| @@ -841,9 +882,9 @@ buildImportVariantsRequest() {
|
| buildCounterImportVariantsRequest++;
|
| if (buildCounterImportVariantsRequest < 3) {
|
| o.format = "foo";
|
| - o.infoMergeConfig = buildUnnamed2566();
|
| + o.infoMergeConfig = buildUnnamed2553();
|
| o.normalizeReferenceNames = true;
|
| - o.sourceUris = buildUnnamed2567();
|
| + o.sourceUris = buildUnnamed2554();
|
| o.variantSetId = "foo";
|
| }
|
| buildCounterImportVariantsRequest--;
|
| @@ -854,22 +895,22 @@ checkImportVariantsRequest(api.ImportVariantsRequest o) {
|
| buildCounterImportVariantsRequest++;
|
| if (buildCounterImportVariantsRequest < 3) {
|
| unittest.expect(o.format, unittest.equals('foo'));
|
| - checkUnnamed2566(o.infoMergeConfig);
|
| + checkUnnamed2553(o.infoMergeConfig);
|
| unittest.expect(o.normalizeReferenceNames, unittest.isTrue);
|
| - checkUnnamed2567(o.sourceUris);
|
| + checkUnnamed2554(o.sourceUris);
|
| unittest.expect(o.variantSetId, unittest.equals('foo'));
|
| }
|
| buildCounterImportVariantsRequest--;
|
| }
|
|
|
| -buildUnnamed2568() {
|
| +buildUnnamed2555() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2568(core.List<core.String> o) {
|
| +checkUnnamed2555(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'));
|
| @@ -880,7 +921,7 @@ buildImportVariantsResponse() {
|
| var o = new api.ImportVariantsResponse();
|
| buildCounterImportVariantsResponse++;
|
| if (buildCounterImportVariantsResponse < 3) {
|
| - o.callSetIds = buildUnnamed2568();
|
| + o.callSetIds = buildUnnamed2555();
|
| }
|
| buildCounterImportVariantsResponse--;
|
| return o;
|
| @@ -889,19 +930,19 @@ buildImportVariantsResponse() {
|
| checkImportVariantsResponse(api.ImportVariantsResponse o) {
|
| buildCounterImportVariantsResponse++;
|
| if (buildCounterImportVariantsResponse < 3) {
|
| - checkUnnamed2568(o.callSetIds);
|
| + checkUnnamed2555(o.callSetIds);
|
| }
|
| buildCounterImportVariantsResponse--;
|
| }
|
|
|
| -buildUnnamed2569() {
|
| +buildUnnamed2556() {
|
| var o = new core.List<api.CigarUnit>();
|
| o.add(buildCigarUnit());
|
| o.add(buildCigarUnit());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2569(core.List<api.CigarUnit> o) {
|
| +checkUnnamed2556(core.List<api.CigarUnit> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCigarUnit(o[0]);
|
| checkCigarUnit(o[1]);
|
| @@ -912,7 +953,7 @@ buildLinearAlignment() {
|
| var o = new api.LinearAlignment();
|
| buildCounterLinearAlignment++;
|
| if (buildCounterLinearAlignment < 3) {
|
| - o.cigar = buildUnnamed2569();
|
| + o.cigar = buildUnnamed2556();
|
| o.mappingQuality = 42;
|
| o.position = buildPosition();
|
| }
|
| @@ -923,7 +964,7 @@ buildLinearAlignment() {
|
| checkLinearAlignment(api.LinearAlignment o) {
|
| buildCounterLinearAlignment++;
|
| if (buildCounterLinearAlignment < 3) {
|
| - checkUnnamed2569(o.cigar);
|
| + checkUnnamed2556(o.cigar);
|
| unittest.expect(o.mappingQuality, unittest.equals(42));
|
| checkPosition(o.position);
|
| }
|
| @@ -953,14 +994,14 @@ checkListBasesResponse(api.ListBasesResponse o) {
|
| buildCounterListBasesResponse--;
|
| }
|
|
|
| -buildUnnamed2570() {
|
| +buildUnnamed2557() {
|
| var o = new core.List<api.CoverageBucket>();
|
| o.add(buildCoverageBucket());
|
| o.add(buildCoverageBucket());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2570(core.List<api.CoverageBucket> o) {
|
| +checkUnnamed2557(core.List<api.CoverageBucket> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCoverageBucket(o[0]);
|
| checkCoverageBucket(o[1]);
|
| @@ -972,7 +1013,7 @@ buildListCoverageBucketsResponse() {
|
| buildCounterListCoverageBucketsResponse++;
|
| if (buildCounterListCoverageBucketsResponse < 3) {
|
| o.bucketWidth = "foo";
|
| - o.coverageBuckets = buildUnnamed2570();
|
| + o.coverageBuckets = buildUnnamed2557();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterListCoverageBucketsResponse--;
|
| @@ -983,20 +1024,20 @@ checkListCoverageBucketsResponse(api.ListCoverageBucketsResponse o) {
|
| buildCounterListCoverageBucketsResponse++;
|
| if (buildCounterListCoverageBucketsResponse < 3) {
|
| unittest.expect(o.bucketWidth, unittest.equals('foo'));
|
| - checkUnnamed2570(o.coverageBuckets);
|
| + checkUnnamed2557(o.coverageBuckets);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterListCoverageBucketsResponse--;
|
| }
|
|
|
| -buildUnnamed2571() {
|
| +buildUnnamed2558() {
|
| var o = new core.List<api.Dataset>();
|
| o.add(buildDataset());
|
| o.add(buildDataset());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2571(core.List<api.Dataset> o) {
|
| +checkUnnamed2558(core.List<api.Dataset> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDataset(o[0]);
|
| checkDataset(o[1]);
|
| @@ -1007,7 +1048,7 @@ buildListDatasetsResponse() {
|
| var o = new api.ListDatasetsResponse();
|
| buildCounterListDatasetsResponse++;
|
| if (buildCounterListDatasetsResponse < 3) {
|
| - o.datasets = buildUnnamed2571();
|
| + o.datasets = buildUnnamed2558();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterListDatasetsResponse--;
|
| @@ -1017,20 +1058,20 @@ buildListDatasetsResponse() {
|
| checkListDatasetsResponse(api.ListDatasetsResponse o) {
|
| buildCounterListDatasetsResponse++;
|
| if (buildCounterListDatasetsResponse < 3) {
|
| - checkUnnamed2571(o.datasets);
|
| + checkUnnamed2558(o.datasets);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterListDatasetsResponse--;
|
| }
|
|
|
| -buildUnnamed2572() {
|
| +buildUnnamed2559() {
|
| var o = new core.List<api.Operation>();
|
| o.add(buildOperation());
|
| o.add(buildOperation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2572(core.List<api.Operation> o) {
|
| +checkUnnamed2559(core.List<api.Operation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperation(o[0]);
|
| checkOperation(o[1]);
|
| @@ -1042,7 +1083,7 @@ buildListOperationsResponse() {
|
| buildCounterListOperationsResponse++;
|
| if (buildCounterListOperationsResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.operations = buildUnnamed2572();
|
| + o.operations = buildUnnamed2559();
|
| }
|
| buildCounterListOperationsResponse--;
|
| return o;
|
| @@ -1052,32 +1093,32 @@ checkListOperationsResponse(api.ListOperationsResponse o) {
|
| buildCounterListOperationsResponse++;
|
| if (buildCounterListOperationsResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed2572(o.operations);
|
| + checkUnnamed2559(o.operations);
|
| }
|
| buildCounterListOperationsResponse--;
|
| }
|
|
|
| -buildUnnamed2573() {
|
| +buildUnnamed2560() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed2573(core.Map<core.String, core.String> o) {
|
| +checkUnnamed2560(core.Map<core.String, core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o["x"], unittest.equals('foo'));
|
| unittest.expect(o["y"], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed2574() {
|
| +buildUnnamed2561() {
|
| var o = new core.List<api.Variant>();
|
| o.add(buildVariant());
|
| o.add(buildVariant());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2574(core.List<api.Variant> o) {
|
| +checkUnnamed2561(core.List<api.Variant> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkVariant(o[0]);
|
| checkVariant(o[1]);
|
| @@ -1088,9 +1129,9 @@ buildMergeVariantsRequest() {
|
| var o = new api.MergeVariantsRequest();
|
| buildCounterMergeVariantsRequest++;
|
| if (buildCounterMergeVariantsRequest < 3) {
|
| - o.infoMergeConfig = buildUnnamed2573();
|
| + o.infoMergeConfig = buildUnnamed2560();
|
| o.variantSetId = "foo";
|
| - o.variants = buildUnnamed2574();
|
| + o.variants = buildUnnamed2561();
|
| }
|
| buildCounterMergeVariantsRequest--;
|
| return o;
|
| @@ -1099,37 +1140,69 @@ buildMergeVariantsRequest() {
|
| checkMergeVariantsRequest(api.MergeVariantsRequest o) {
|
| buildCounterMergeVariantsRequest++;
|
| if (buildCounterMergeVariantsRequest < 3) {
|
| - checkUnnamed2573(o.infoMergeConfig);
|
| + checkUnnamed2560(o.infoMergeConfig);
|
| unittest.expect(o.variantSetId, unittest.equals('foo'));
|
| - checkUnnamed2574(o.variants);
|
| + checkUnnamed2561(o.variants);
|
| }
|
| buildCounterMergeVariantsRequest--;
|
| }
|
|
|
| -buildUnnamed2575() {
|
| +buildUnnamed2562() {
|
| 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'};
|
| + o["x"] = {
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + };
|
| + o["y"] = {
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + };
|
| return o;
|
| }
|
|
|
| -checkUnnamed2575(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed2562(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'));
|
| + 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'));
|
| }
|
|
|
| -buildUnnamed2576() {
|
| +buildUnnamed2563() {
|
| 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'};
|
| + o["x"] = {
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + };
|
| + o["y"] = {
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + };
|
| return o;
|
| }
|
|
|
| -checkUnnamed2576(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed2563(core.Map<core.String, core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - var casted9 = (o["x"]) 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["y"]) 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'));
|
| + var casted9 = (o["x"]) 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["y"]) 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 buildCounterOperation = 0;
|
| @@ -1139,9 +1212,9 @@ buildOperation() {
|
| if (buildCounterOperation < 3) {
|
| o.done = true;
|
| o.error = buildStatus();
|
| - o.metadata = buildUnnamed2575();
|
| + o.metadata = buildUnnamed2562();
|
| o.name = "foo";
|
| - o.response = buildUnnamed2576();
|
| + o.response = buildUnnamed2563();
|
| }
|
| buildCounterOperation--;
|
| return o;
|
| @@ -1152,9 +1225,9 @@ checkOperation(api.Operation o) {
|
| if (buildCounterOperation < 3) {
|
| unittest.expect(o.done, unittest.isTrue);
|
| checkStatus(o.error);
|
| - checkUnnamed2575(o.metadata);
|
| + checkUnnamed2562(o.metadata);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed2576(o.response);
|
| + checkUnnamed2563(o.response);
|
| }
|
| buildCounterOperation--;
|
| }
|
| @@ -1182,56 +1255,88 @@ checkOperationEvent(api.OperationEvent o) {
|
| buildCounterOperationEvent--;
|
| }
|
|
|
| -buildUnnamed2577() {
|
| +buildUnnamed2564() {
|
| var o = new core.List<api.OperationEvent>();
|
| o.add(buildOperationEvent());
|
| o.add(buildOperationEvent());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2577(core.List<api.OperationEvent> o) {
|
| +checkUnnamed2564(core.List<api.OperationEvent> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperationEvent(o[0]);
|
| checkOperationEvent(o[1]);
|
| }
|
|
|
| -buildUnnamed2578() {
|
| +buildUnnamed2565() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed2578(core.Map<core.String, core.String> o) {
|
| +checkUnnamed2565(core.Map<core.String, core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o["x"], unittest.equals('foo'));
|
| unittest.expect(o["y"], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed2579() {
|
| +buildUnnamed2566() {
|
| 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'};
|
| + o["x"] = {
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + };
|
| + o["y"] = {
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + };
|
| return o;
|
| }
|
|
|
| -checkUnnamed2579(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed2566(core.Map<core.String, core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - var casted11 = (o["x"]) 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["y"]) 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'));
|
| + var casted11 = (o["x"]) 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["y"]) 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'));
|
| }
|
|
|
| -buildUnnamed2580() {
|
| +buildUnnamed2567() {
|
| 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'};
|
| + o["x"] = {
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + };
|
| + o["y"] = {
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + };
|
| return o;
|
| }
|
|
|
| -checkUnnamed2580(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed2567(core.Map<core.String, core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - var casted13 = (o["x"]) 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["y"]) 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'));
|
| + var casted13 = (o["x"]) 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["y"]) 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 buildCounterOperationMetadata = 0;
|
| @@ -1242,11 +1347,11 @@ buildOperationMetadata() {
|
| o.clientId = "foo";
|
| o.createTime = "foo";
|
| o.endTime = "foo";
|
| - o.events = buildUnnamed2577();
|
| - o.labels = buildUnnamed2578();
|
| + o.events = buildUnnamed2564();
|
| + o.labels = buildUnnamed2565();
|
| o.projectId = "foo";
|
| - o.request = buildUnnamed2579();
|
| - o.runtimeMetadata = buildUnnamed2580();
|
| + o.request = buildUnnamed2566();
|
| + o.runtimeMetadata = buildUnnamed2567();
|
| o.startTime = "foo";
|
| }
|
| buildCounterOperationMetadata--;
|
| @@ -1259,24 +1364,24 @@ checkOperationMetadata(api.OperationMetadata o) {
|
| unittest.expect(o.clientId, unittest.equals('foo'));
|
| unittest.expect(o.createTime, unittest.equals('foo'));
|
| unittest.expect(o.endTime, unittest.equals('foo'));
|
| - checkUnnamed2577(o.events);
|
| - checkUnnamed2578(o.labels);
|
| + checkUnnamed2564(o.events);
|
| + checkUnnamed2565(o.labels);
|
| unittest.expect(o.projectId, unittest.equals('foo'));
|
| - checkUnnamed2579(o.request);
|
| - checkUnnamed2580(o.runtimeMetadata);
|
| + checkUnnamed2566(o.request);
|
| + checkUnnamed2567(o.runtimeMetadata);
|
| unittest.expect(o.startTime, unittest.equals('foo'));
|
| }
|
| buildCounterOperationMetadata--;
|
| }
|
|
|
| -buildUnnamed2581() {
|
| +buildUnnamed2568() {
|
| var o = new core.List<api.Binding>();
|
| o.add(buildBinding());
|
| o.add(buildBinding());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2581(core.List<api.Binding> o) {
|
| +checkUnnamed2568(core.List<api.Binding> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkBinding(o[0]);
|
| checkBinding(o[1]);
|
| @@ -1287,7 +1392,7 @@ buildPolicy() {
|
| var o = new api.Policy();
|
| buildCounterPolicy++;
|
| if (buildCounterPolicy < 3) {
|
| - o.bindings = buildUnnamed2581();
|
| + o.bindings = buildUnnamed2568();
|
| o.etag = "foo";
|
| o.version = 42;
|
| }
|
| @@ -1298,7 +1403,7 @@ buildPolicy() {
|
| checkPolicy(api.Policy o) {
|
| buildCounterPolicy++;
|
| if (buildCounterPolicy < 3) {
|
| - checkUnnamed2581(o.bindings);
|
| + checkUnnamed2568(o.bindings);
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.version, unittest.equals(42));
|
| }
|
| @@ -1378,43 +1483,59 @@ checkRange(api.Range o) {
|
| buildCounterRange--;
|
| }
|
|
|
| -buildUnnamed2582() {
|
| +buildUnnamed2569() {
|
| var o = new core.List<core.int>();
|
| o.add(42);
|
| o.add(42);
|
| return o;
|
| }
|
|
|
| -checkUnnamed2582(core.List<core.int> o) {
|
| +checkUnnamed2569(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));
|
| }
|
|
|
| -buildUnnamed2583() {
|
| +buildUnnamed2570() {
|
| 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'});
|
| + o.add({
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + });
|
| + o.add({
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + });
|
| return o;
|
| }
|
|
|
| -checkUnnamed2583(core.List<core.Object> o) {
|
| +checkUnnamed2570(core.List<core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - var casted15 = (o[0]) 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[1]) 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'));
|
| + var casted15 = (o[0]) 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[1]) 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'));
|
| }
|
|
|
| -buildUnnamed2584() {
|
| +buildUnnamed2571() {
|
| var o = new core.Map<core.String, core.List<core.Object>>();
|
| - o["x"] = buildUnnamed2583();
|
| - o["y"] = buildUnnamed2583();
|
| + o["x"] = buildUnnamed2570();
|
| + o["y"] = buildUnnamed2570();
|
| return o;
|
| }
|
|
|
| -checkUnnamed2584(core.Map<core.String, core.List<core.Object>> o) {
|
| +checkUnnamed2571(core.Map<core.String, core.List<core.Object>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed2583(o["x"]);
|
| - checkUnnamed2583(o["y"]);
|
| + checkUnnamed2570(o["x"]);
|
| + checkUnnamed2570(o["y"]);
|
| }
|
|
|
| core.int buildCounterRead = 0;
|
| @@ -1422,7 +1543,7 @@ buildRead() {
|
| var o = new api.Read();
|
| buildCounterRead++;
|
| if (buildCounterRead < 3) {
|
| - o.alignedQuality = buildUnnamed2582();
|
| + o.alignedQuality = buildUnnamed2569();
|
| o.alignedSequence = "foo";
|
| o.alignment = buildLinearAlignment();
|
| o.duplicateFragment = true;
|
| @@ -1430,7 +1551,7 @@ buildRead() {
|
| o.fragmentLength = 42;
|
| o.fragmentName = "foo";
|
| o.id = "foo";
|
| - o.info = buildUnnamed2584();
|
| + o.info = buildUnnamed2571();
|
| o.nextMatePosition = buildPosition();
|
| o.numberReads = 42;
|
| o.properPlacement = true;
|
| @@ -1447,7 +1568,7 @@ buildRead() {
|
| checkRead(api.Read o) {
|
| buildCounterRead++;
|
| if (buildCounterRead < 3) {
|
| - checkUnnamed2582(o.alignedQuality);
|
| + checkUnnamed2569(o.alignedQuality);
|
| unittest.expect(o.alignedSequence, unittest.equals('foo'));
|
| checkLinearAlignment(o.alignment);
|
| unittest.expect(o.duplicateFragment, unittest.isTrue);
|
| @@ -1455,7 +1576,7 @@ checkRead(api.Read o) {
|
| unittest.expect(o.fragmentLength, unittest.equals(42));
|
| unittest.expect(o.fragmentName, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2584(o.info);
|
| + checkUnnamed2571(o.info);
|
| checkPosition(o.nextMatePosition);
|
| unittest.expect(o.numberReads, unittest.equals(42));
|
| unittest.expect(o.properPlacement, unittest.isTrue);
|
| @@ -1468,40 +1589,56 @@ checkRead(api.Read o) {
|
| buildCounterRead--;
|
| }
|
|
|
| -buildUnnamed2585() {
|
| +buildUnnamed2572() {
|
| 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'});
|
| + o.add({
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + });
|
| + o.add({
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + });
|
| return o;
|
| }
|
|
|
| -checkUnnamed2585(core.List<core.Object> o) {
|
| +checkUnnamed2572(core.List<core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - 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'));
|
| + 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'));
|
| }
|
|
|
| -buildUnnamed2586() {
|
| +buildUnnamed2573() {
|
| var o = new core.Map<core.String, core.List<core.Object>>();
|
| - o["x"] = buildUnnamed2585();
|
| - o["y"] = buildUnnamed2585();
|
| + o["x"] = buildUnnamed2572();
|
| + o["y"] = buildUnnamed2572();
|
| return o;
|
| }
|
|
|
| -checkUnnamed2586(core.Map<core.String, core.List<core.Object>> o) {
|
| +checkUnnamed2573(core.Map<core.String, core.List<core.Object>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed2585(o["x"]);
|
| - checkUnnamed2585(o["y"]);
|
| + checkUnnamed2572(o["x"]);
|
| + checkUnnamed2572(o["y"]);
|
| }
|
|
|
| -buildUnnamed2587() {
|
| +buildUnnamed2574() {
|
| var o = new core.List<api.Program>();
|
| o.add(buildProgram());
|
| o.add(buildProgram());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2587(core.List<api.Program> o) {
|
| +checkUnnamed2574(core.List<api.Program> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkProgram(o[0]);
|
| checkProgram(o[1]);
|
| @@ -1516,10 +1653,10 @@ buildReadGroup() {
|
| o.description = "foo";
|
| o.experiment = buildExperiment();
|
| o.id = "foo";
|
| - o.info = buildUnnamed2586();
|
| + o.info = buildUnnamed2573();
|
| o.name = "foo";
|
| o.predictedInsertSize = 42;
|
| - o.programs = buildUnnamed2587();
|
| + o.programs = buildUnnamed2574();
|
| o.referenceSetId = "foo";
|
| o.sampleId = "foo";
|
| }
|
| @@ -1534,50 +1671,66 @@ checkReadGroup(api.ReadGroup o) {
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| checkExperiment(o.experiment);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2586(o.info);
|
| + checkUnnamed2573(o.info);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.predictedInsertSize, unittest.equals(42));
|
| - checkUnnamed2587(o.programs);
|
| + checkUnnamed2574(o.programs);
|
| unittest.expect(o.referenceSetId, unittest.equals('foo'));
|
| unittest.expect(o.sampleId, unittest.equals('foo'));
|
| }
|
| buildCounterReadGroup--;
|
| }
|
|
|
| -buildUnnamed2588() {
|
| +buildUnnamed2575() {
|
| 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'});
|
| + o.add({
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + });
|
| + o.add({
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + });
|
| return o;
|
| }
|
|
|
| -checkUnnamed2588(core.List<core.Object> o) {
|
| +checkUnnamed2575(core.List<core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - 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'));
|
| + 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'));
|
| }
|
|
|
| -buildUnnamed2589() {
|
| +buildUnnamed2576() {
|
| var o = new core.Map<core.String, core.List<core.Object>>();
|
| - o["x"] = buildUnnamed2588();
|
| - o["y"] = buildUnnamed2588();
|
| + o["x"] = buildUnnamed2575();
|
| + o["y"] = buildUnnamed2575();
|
| return o;
|
| }
|
|
|
| -checkUnnamed2589(core.Map<core.String, core.List<core.Object>> o) {
|
| +checkUnnamed2576(core.Map<core.String, core.List<core.Object>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed2588(o["x"]);
|
| - checkUnnamed2588(o["y"]);
|
| + checkUnnamed2575(o["x"]);
|
| + checkUnnamed2575(o["y"]);
|
| }
|
|
|
| -buildUnnamed2590() {
|
| +buildUnnamed2577() {
|
| var o = new core.List<api.ReadGroup>();
|
| o.add(buildReadGroup());
|
| o.add(buildReadGroup());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2590(core.List<api.ReadGroup> o) {
|
| +checkUnnamed2577(core.List<api.ReadGroup> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkReadGroup(o[0]);
|
| checkReadGroup(o[1]);
|
| @@ -1591,9 +1744,9 @@ buildReadGroupSet() {
|
| o.datasetId = "foo";
|
| o.filename = "foo";
|
| o.id = "foo";
|
| - o.info = buildUnnamed2589();
|
| + o.info = buildUnnamed2576();
|
| o.name = "foo";
|
| - o.readGroups = buildUnnamed2590();
|
| + o.readGroups = buildUnnamed2577();
|
| o.referenceSetId = "foo";
|
| }
|
| buildCounterReadGroupSet--;
|
| @@ -1606,22 +1759,22 @@ checkReadGroupSet(api.ReadGroupSet o) {
|
| unittest.expect(o.datasetId, unittest.equals('foo'));
|
| unittest.expect(o.filename, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2589(o.info);
|
| + checkUnnamed2576(o.info);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed2590(o.readGroups);
|
| + checkUnnamed2577(o.readGroups);
|
| unittest.expect(o.referenceSetId, unittest.equals('foo'));
|
| }
|
| buildCounterReadGroupSet--;
|
| }
|
|
|
| -buildUnnamed2591() {
|
| +buildUnnamed2578() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2591(core.List<core.String> o) {
|
| +checkUnnamed2578(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'));
|
| @@ -1637,7 +1790,7 @@ buildReference() {
|
| o.md5checksum = "foo";
|
| o.name = "foo";
|
| o.ncbiTaxonId = 42;
|
| - o.sourceAccessions = buildUnnamed2591();
|
| + o.sourceAccessions = buildUnnamed2578();
|
| o.sourceUri = "foo";
|
| }
|
| buildCounterReference--;
|
| @@ -1652,7 +1805,7 @@ checkReference(api.Reference o) {
|
| unittest.expect(o.md5checksum, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.ncbiTaxonId, unittest.equals(42));
|
| - checkUnnamed2591(o.sourceAccessions);
|
| + checkUnnamed2578(o.sourceAccessions);
|
| unittest.expect(o.sourceUri, unittest.equals('foo'));
|
| }
|
| buildCounterReference--;
|
| @@ -1679,27 +1832,27 @@ checkReferenceBound(api.ReferenceBound o) {
|
| buildCounterReferenceBound--;
|
| }
|
|
|
| -buildUnnamed2592() {
|
| +buildUnnamed2579() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2592(core.List<core.String> o) {
|
| +checkUnnamed2579(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'));
|
| }
|
|
|
| -buildUnnamed2593() {
|
| +buildUnnamed2580() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2593(core.List<core.String> o) {
|
| +checkUnnamed2580(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'));
|
| @@ -1715,8 +1868,8 @@ buildReferenceSet() {
|
| o.id = "foo";
|
| o.md5checksum = "foo";
|
| o.ncbiTaxonId = 42;
|
| - o.referenceIds = buildUnnamed2592();
|
| - o.sourceAccessions = buildUnnamed2593();
|
| + o.referenceIds = buildUnnamed2579();
|
| + o.sourceAccessions = buildUnnamed2580();
|
| o.sourceUri = "foo";
|
| }
|
| buildCounterReferenceSet--;
|
| @@ -1731,8 +1884,8 @@ checkReferenceSet(api.ReferenceSet o) {
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.md5checksum, unittest.equals('foo'));
|
| unittest.expect(o.ncbiTaxonId, unittest.equals(42));
|
| - checkUnnamed2592(o.referenceIds);
|
| - checkUnnamed2593(o.sourceAccessions);
|
| + checkUnnamed2579(o.referenceIds);
|
| + checkUnnamed2580(o.sourceAccessions);
|
| unittest.expect(o.sourceUri, unittest.equals('foo'));
|
| }
|
| buildCounterReferenceSet--;
|
| @@ -1757,27 +1910,27 @@ checkRuntimeMetadata(api.RuntimeMetadata o) {
|
| buildCounterRuntimeMetadata--;
|
| }
|
|
|
| -buildUnnamed2594() {
|
| +buildUnnamed2581() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2594(core.List<core.String> o) {
|
| +checkUnnamed2581(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'));
|
| }
|
|
|
| -buildUnnamed2595() {
|
| +buildUnnamed2582() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2595(core.List<core.String> o) {
|
| +checkUnnamed2582(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'));
|
| @@ -1788,12 +1941,12 @@ buildSearchAnnotationSetsRequest() {
|
| var o = new api.SearchAnnotationSetsRequest();
|
| buildCounterSearchAnnotationSetsRequest++;
|
| if (buildCounterSearchAnnotationSetsRequest < 3) {
|
| - o.datasetIds = buildUnnamed2594();
|
| + o.datasetIds = buildUnnamed2581();
|
| o.name = "foo";
|
| o.pageSize = 42;
|
| o.pageToken = "foo";
|
| o.referenceSetId = "foo";
|
| - o.types = buildUnnamed2595();
|
| + o.types = buildUnnamed2582();
|
| }
|
| buildCounterSearchAnnotationSetsRequest--;
|
| return o;
|
| @@ -1802,24 +1955,24 @@ buildSearchAnnotationSetsRequest() {
|
| checkSearchAnnotationSetsRequest(api.SearchAnnotationSetsRequest o) {
|
| buildCounterSearchAnnotationSetsRequest++;
|
| if (buildCounterSearchAnnotationSetsRequest < 3) {
|
| - checkUnnamed2594(o.datasetIds);
|
| + checkUnnamed2581(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'));
|
| - checkUnnamed2595(o.types);
|
| + checkUnnamed2582(o.types);
|
| }
|
| buildCounterSearchAnnotationSetsRequest--;
|
| }
|
|
|
| -buildUnnamed2596() {
|
| +buildUnnamed2583() {
|
| var o = new core.List<api.AnnotationSet>();
|
| o.add(buildAnnotationSet());
|
| o.add(buildAnnotationSet());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2596(core.List<api.AnnotationSet> o) {
|
| +checkUnnamed2583(core.List<api.AnnotationSet> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAnnotationSet(o[0]);
|
| checkAnnotationSet(o[1]);
|
| @@ -1830,7 +1983,7 @@ buildSearchAnnotationSetsResponse() {
|
| var o = new api.SearchAnnotationSetsResponse();
|
| buildCounterSearchAnnotationSetsResponse++;
|
| if (buildCounterSearchAnnotationSetsResponse < 3) {
|
| - o.annotationSets = buildUnnamed2596();
|
| + o.annotationSets = buildUnnamed2583();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterSearchAnnotationSetsResponse--;
|
| @@ -1840,20 +1993,20 @@ buildSearchAnnotationSetsResponse() {
|
| checkSearchAnnotationSetsResponse(api.SearchAnnotationSetsResponse o) {
|
| buildCounterSearchAnnotationSetsResponse++;
|
| if (buildCounterSearchAnnotationSetsResponse < 3) {
|
| - checkUnnamed2596(o.annotationSets);
|
| + checkUnnamed2583(o.annotationSets);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterSearchAnnotationSetsResponse--;
|
| }
|
|
|
| -buildUnnamed2597() {
|
| +buildUnnamed2584() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2597(core.List<core.String> o) {
|
| +checkUnnamed2584(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'));
|
| @@ -1864,7 +2017,7 @@ buildSearchAnnotationsRequest() {
|
| var o = new api.SearchAnnotationsRequest();
|
| buildCounterSearchAnnotationsRequest++;
|
| if (buildCounterSearchAnnotationsRequest < 3) {
|
| - o.annotationSetIds = buildUnnamed2597();
|
| + o.annotationSetIds = buildUnnamed2584();
|
| o.end = "foo";
|
| o.pageSize = 42;
|
| o.pageToken = "foo";
|
| @@ -1879,7 +2032,7 @@ buildSearchAnnotationsRequest() {
|
| checkSearchAnnotationsRequest(api.SearchAnnotationsRequest o) {
|
| buildCounterSearchAnnotationsRequest++;
|
| if (buildCounterSearchAnnotationsRequest < 3) {
|
| - checkUnnamed2597(o.annotationSetIds);
|
| + checkUnnamed2584(o.annotationSetIds);
|
| unittest.expect(o.end, unittest.equals('foo'));
|
| unittest.expect(o.pageSize, unittest.equals(42));
|
| unittest.expect(o.pageToken, unittest.equals('foo'));
|
| @@ -1890,14 +2043,14 @@ checkSearchAnnotationsRequest(api.SearchAnnotationsRequest o) {
|
| buildCounterSearchAnnotationsRequest--;
|
| }
|
|
|
| -buildUnnamed2598() {
|
| +buildUnnamed2585() {
|
| var o = new core.List<api.Annotation>();
|
| o.add(buildAnnotation());
|
| o.add(buildAnnotation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2598(core.List<api.Annotation> o) {
|
| +checkUnnamed2585(core.List<api.Annotation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAnnotation(o[0]);
|
| checkAnnotation(o[1]);
|
| @@ -1908,7 +2061,7 @@ buildSearchAnnotationsResponse() {
|
| var o = new api.SearchAnnotationsResponse();
|
| buildCounterSearchAnnotationsResponse++;
|
| if (buildCounterSearchAnnotationsResponse < 3) {
|
| - o.annotations = buildUnnamed2598();
|
| + o.annotations = buildUnnamed2585();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterSearchAnnotationsResponse--;
|
| @@ -1918,20 +2071,20 @@ buildSearchAnnotationsResponse() {
|
| checkSearchAnnotationsResponse(api.SearchAnnotationsResponse o) {
|
| buildCounterSearchAnnotationsResponse++;
|
| if (buildCounterSearchAnnotationsResponse < 3) {
|
| - checkUnnamed2598(o.annotations);
|
| + checkUnnamed2585(o.annotations);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterSearchAnnotationsResponse--;
|
| }
|
|
|
| -buildUnnamed2599() {
|
| +buildUnnamed2586() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2599(core.List<core.String> o) {
|
| +checkUnnamed2586(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'));
|
| @@ -1945,7 +2098,7 @@ buildSearchCallSetsRequest() {
|
| o.name = "foo";
|
| o.pageSize = 42;
|
| o.pageToken = "foo";
|
| - o.variantSetIds = buildUnnamed2599();
|
| + o.variantSetIds = buildUnnamed2586();
|
| }
|
| buildCounterSearchCallSetsRequest--;
|
| return o;
|
| @@ -1957,19 +2110,19 @@ checkSearchCallSetsRequest(api.SearchCallSetsRequest o) {
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.pageSize, unittest.equals(42));
|
| unittest.expect(o.pageToken, unittest.equals('foo'));
|
| - checkUnnamed2599(o.variantSetIds);
|
| + checkUnnamed2586(o.variantSetIds);
|
| }
|
| buildCounterSearchCallSetsRequest--;
|
| }
|
|
|
| -buildUnnamed2600() {
|
| +buildUnnamed2587() {
|
| var o = new core.List<api.CallSet>();
|
| o.add(buildCallSet());
|
| o.add(buildCallSet());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2600(core.List<api.CallSet> o) {
|
| +checkUnnamed2587(core.List<api.CallSet> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCallSet(o[0]);
|
| checkCallSet(o[1]);
|
| @@ -1980,7 +2133,7 @@ buildSearchCallSetsResponse() {
|
| var o = new api.SearchCallSetsResponse();
|
| buildCounterSearchCallSetsResponse++;
|
| if (buildCounterSearchCallSetsResponse < 3) {
|
| - o.callSets = buildUnnamed2600();
|
| + o.callSets = buildUnnamed2587();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterSearchCallSetsResponse--;
|
| @@ -1990,20 +2143,20 @@ buildSearchCallSetsResponse() {
|
| checkSearchCallSetsResponse(api.SearchCallSetsResponse o) {
|
| buildCounterSearchCallSetsResponse++;
|
| if (buildCounterSearchCallSetsResponse < 3) {
|
| - checkUnnamed2600(o.callSets);
|
| + checkUnnamed2587(o.callSets);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterSearchCallSetsResponse--;
|
| }
|
|
|
| -buildUnnamed2601() {
|
| +buildUnnamed2588() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2601(core.List<core.String> o) {
|
| +checkUnnamed2588(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'));
|
| @@ -2014,7 +2167,7 @@ buildSearchReadGroupSetsRequest() {
|
| var o = new api.SearchReadGroupSetsRequest();
|
| buildCounterSearchReadGroupSetsRequest++;
|
| if (buildCounterSearchReadGroupSetsRequest < 3) {
|
| - o.datasetIds = buildUnnamed2601();
|
| + o.datasetIds = buildUnnamed2588();
|
| o.name = "foo";
|
| o.pageSize = 42;
|
| o.pageToken = "foo";
|
| @@ -2026,7 +2179,7 @@ buildSearchReadGroupSetsRequest() {
|
| checkSearchReadGroupSetsRequest(api.SearchReadGroupSetsRequest o) {
|
| buildCounterSearchReadGroupSetsRequest++;
|
| if (buildCounterSearchReadGroupSetsRequest < 3) {
|
| - checkUnnamed2601(o.datasetIds);
|
| + checkUnnamed2588(o.datasetIds);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| unittest.expect(o.pageSize, unittest.equals(42));
|
| unittest.expect(o.pageToken, unittest.equals('foo'));
|
| @@ -2034,14 +2187,14 @@ checkSearchReadGroupSetsRequest(api.SearchReadGroupSetsRequest o) {
|
| buildCounterSearchReadGroupSetsRequest--;
|
| }
|
|
|
| -buildUnnamed2602() {
|
| +buildUnnamed2589() {
|
| var o = new core.List<api.ReadGroupSet>();
|
| o.add(buildReadGroupSet());
|
| o.add(buildReadGroupSet());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2602(core.List<api.ReadGroupSet> o) {
|
| +checkUnnamed2589(core.List<api.ReadGroupSet> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkReadGroupSet(o[0]);
|
| checkReadGroupSet(o[1]);
|
| @@ -2053,7 +2206,7 @@ buildSearchReadGroupSetsResponse() {
|
| buildCounterSearchReadGroupSetsResponse++;
|
| if (buildCounterSearchReadGroupSetsResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.readGroupSets = buildUnnamed2602();
|
| + o.readGroupSets = buildUnnamed2589();
|
| }
|
| buildCounterSearchReadGroupSetsResponse--;
|
| return o;
|
| @@ -2063,32 +2216,32 @@ checkSearchReadGroupSetsResponse(api.SearchReadGroupSetsResponse o) {
|
| buildCounterSearchReadGroupSetsResponse++;
|
| if (buildCounterSearchReadGroupSetsResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed2602(o.readGroupSets);
|
| + checkUnnamed2589(o.readGroupSets);
|
| }
|
| buildCounterSearchReadGroupSetsResponse--;
|
| }
|
|
|
| -buildUnnamed2603() {
|
| +buildUnnamed2590() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2603(core.List<core.String> o) {
|
| +checkUnnamed2590(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'));
|
| }
|
|
|
| -buildUnnamed2604() {
|
| +buildUnnamed2591() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2604(core.List<core.String> o) {
|
| +checkUnnamed2591(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'));
|
| @@ -2102,8 +2255,8 @@ buildSearchReadsRequest() {
|
| o.end = "foo";
|
| o.pageSize = 42;
|
| o.pageToken = "foo";
|
| - o.readGroupIds = buildUnnamed2603();
|
| - o.readGroupSetIds = buildUnnamed2604();
|
| + o.readGroupIds = buildUnnamed2590();
|
| + o.readGroupSetIds = buildUnnamed2591();
|
| o.referenceName = "foo";
|
| o.start = "foo";
|
| }
|
| @@ -2117,22 +2270,22 @@ checkSearchReadsRequest(api.SearchReadsRequest o) {
|
| unittest.expect(o.end, unittest.equals('foo'));
|
| unittest.expect(o.pageSize, unittest.equals(42));
|
| unittest.expect(o.pageToken, unittest.equals('foo'));
|
| - checkUnnamed2603(o.readGroupIds);
|
| - checkUnnamed2604(o.readGroupSetIds);
|
| + checkUnnamed2590(o.readGroupIds);
|
| + checkUnnamed2591(o.readGroupSetIds);
|
| unittest.expect(o.referenceName, unittest.equals('foo'));
|
| unittest.expect(o.start, unittest.equals('foo'));
|
| }
|
| buildCounterSearchReadsRequest--;
|
| }
|
|
|
| -buildUnnamed2605() {
|
| +buildUnnamed2592() {
|
| var o = new core.List<api.Read>();
|
| o.add(buildRead());
|
| o.add(buildRead());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2605(core.List<api.Read> o) {
|
| +checkUnnamed2592(core.List<api.Read> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkRead(o[0]);
|
| checkRead(o[1]);
|
| @@ -2143,7 +2296,7 @@ buildSearchReadsResponse() {
|
| var o = new api.SearchReadsResponse();
|
| buildCounterSearchReadsResponse++;
|
| if (buildCounterSearchReadsResponse < 3) {
|
| - o.alignments = buildUnnamed2605();
|
| + o.alignments = buildUnnamed2592();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterSearchReadsResponse--;
|
| @@ -2153,33 +2306,33 @@ buildSearchReadsResponse() {
|
| checkSearchReadsResponse(api.SearchReadsResponse o) {
|
| buildCounterSearchReadsResponse++;
|
| if (buildCounterSearchReadsResponse < 3) {
|
| - checkUnnamed2605(o.alignments);
|
| + checkUnnamed2592(o.alignments);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterSearchReadsResponse--;
|
| }
|
|
|
| -buildUnnamed2606() {
|
| +buildUnnamed2593() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2606(core.List<core.String> o) {
|
| +checkUnnamed2593(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'));
|
| }
|
|
|
| -buildUnnamed2607() {
|
| +buildUnnamed2594() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2607(core.List<core.String> o) {
|
| +checkUnnamed2594(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'));
|
| @@ -2190,9 +2343,9 @@ buildSearchReferenceSetsRequest() {
|
| var o = new api.SearchReferenceSetsRequest();
|
| buildCounterSearchReferenceSetsRequest++;
|
| if (buildCounterSearchReferenceSetsRequest < 3) {
|
| - o.accessions = buildUnnamed2606();
|
| + o.accessions = buildUnnamed2593();
|
| o.assemblyId = "foo";
|
| - o.md5checksums = buildUnnamed2607();
|
| + o.md5checksums = buildUnnamed2594();
|
| o.pageSize = 42;
|
| o.pageToken = "foo";
|
| }
|
| @@ -2203,23 +2356,23 @@ buildSearchReferenceSetsRequest() {
|
| checkSearchReferenceSetsRequest(api.SearchReferenceSetsRequest o) {
|
| buildCounterSearchReferenceSetsRequest++;
|
| if (buildCounterSearchReferenceSetsRequest < 3) {
|
| - checkUnnamed2606(o.accessions);
|
| + checkUnnamed2593(o.accessions);
|
| unittest.expect(o.assemblyId, unittest.equals('foo'));
|
| - checkUnnamed2607(o.md5checksums);
|
| + checkUnnamed2594(o.md5checksums);
|
| unittest.expect(o.pageSize, unittest.equals(42));
|
| unittest.expect(o.pageToken, unittest.equals('foo'));
|
| }
|
| buildCounterSearchReferenceSetsRequest--;
|
| }
|
|
|
| -buildUnnamed2608() {
|
| +buildUnnamed2595() {
|
| var o = new core.List<api.ReferenceSet>();
|
| o.add(buildReferenceSet());
|
| o.add(buildReferenceSet());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2608(core.List<api.ReferenceSet> o) {
|
| +checkUnnamed2595(core.List<api.ReferenceSet> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkReferenceSet(o[0]);
|
| checkReferenceSet(o[1]);
|
| @@ -2231,7 +2384,7 @@ buildSearchReferenceSetsResponse() {
|
| buildCounterSearchReferenceSetsResponse++;
|
| if (buildCounterSearchReferenceSetsResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.referenceSets = buildUnnamed2608();
|
| + o.referenceSets = buildUnnamed2595();
|
| }
|
| buildCounterSearchReferenceSetsResponse--;
|
| return o;
|
| @@ -2241,32 +2394,32 @@ checkSearchReferenceSetsResponse(api.SearchReferenceSetsResponse o) {
|
| buildCounterSearchReferenceSetsResponse++;
|
| if (buildCounterSearchReferenceSetsResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed2608(o.referenceSets);
|
| + checkUnnamed2595(o.referenceSets);
|
| }
|
| buildCounterSearchReferenceSetsResponse--;
|
| }
|
|
|
| -buildUnnamed2609() {
|
| +buildUnnamed2596() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2609(core.List<core.String> o) {
|
| +checkUnnamed2596(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'));
|
| }
|
|
|
| -buildUnnamed2610() {
|
| +buildUnnamed2597() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2610(core.List<core.String> o) {
|
| +checkUnnamed2597(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'));
|
| @@ -2277,8 +2430,8 @@ buildSearchReferencesRequest() {
|
| var o = new api.SearchReferencesRequest();
|
| buildCounterSearchReferencesRequest++;
|
| if (buildCounterSearchReferencesRequest < 3) {
|
| - o.accessions = buildUnnamed2609();
|
| - o.md5checksums = buildUnnamed2610();
|
| + o.accessions = buildUnnamed2596();
|
| + o.md5checksums = buildUnnamed2597();
|
| o.pageSize = 42;
|
| o.pageToken = "foo";
|
| o.referenceSetId = "foo";
|
| @@ -2290,8 +2443,8 @@ buildSearchReferencesRequest() {
|
| checkSearchReferencesRequest(api.SearchReferencesRequest o) {
|
| buildCounterSearchReferencesRequest++;
|
| if (buildCounterSearchReferencesRequest < 3) {
|
| - checkUnnamed2609(o.accessions);
|
| - checkUnnamed2610(o.md5checksums);
|
| + checkUnnamed2596(o.accessions);
|
| + checkUnnamed2597(o.md5checksums);
|
| unittest.expect(o.pageSize, unittest.equals(42));
|
| unittest.expect(o.pageToken, unittest.equals('foo'));
|
| unittest.expect(o.referenceSetId, unittest.equals('foo'));
|
| @@ -2299,14 +2452,14 @@ checkSearchReferencesRequest(api.SearchReferencesRequest o) {
|
| buildCounterSearchReferencesRequest--;
|
| }
|
|
|
| -buildUnnamed2611() {
|
| +buildUnnamed2598() {
|
| var o = new core.List<api.Reference>();
|
| o.add(buildReference());
|
| o.add(buildReference());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2611(core.List<api.Reference> o) {
|
| +checkUnnamed2598(core.List<api.Reference> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkReference(o[0]);
|
| checkReference(o[1]);
|
| @@ -2318,7 +2471,7 @@ buildSearchReferencesResponse() {
|
| buildCounterSearchReferencesResponse++;
|
| if (buildCounterSearchReferencesResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.references = buildUnnamed2611();
|
| + o.references = buildUnnamed2598();
|
| }
|
| buildCounterSearchReferencesResponse--;
|
| return o;
|
| @@ -2328,19 +2481,19 @@ checkSearchReferencesResponse(api.SearchReferencesResponse o) {
|
| buildCounterSearchReferencesResponse++;
|
| if (buildCounterSearchReferencesResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed2611(o.references);
|
| + checkUnnamed2598(o.references);
|
| }
|
| buildCounterSearchReferencesResponse--;
|
| }
|
|
|
| -buildUnnamed2612() {
|
| +buildUnnamed2599() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2612(core.List<core.String> o) {
|
| +checkUnnamed2599(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'));
|
| @@ -2351,7 +2504,7 @@ buildSearchVariantSetsRequest() {
|
| var o = new api.SearchVariantSetsRequest();
|
| buildCounterSearchVariantSetsRequest++;
|
| if (buildCounterSearchVariantSetsRequest < 3) {
|
| - o.datasetIds = buildUnnamed2612();
|
| + o.datasetIds = buildUnnamed2599();
|
| o.pageSize = 42;
|
| o.pageToken = "foo";
|
| }
|
| @@ -2362,21 +2515,21 @@ buildSearchVariantSetsRequest() {
|
| checkSearchVariantSetsRequest(api.SearchVariantSetsRequest o) {
|
| buildCounterSearchVariantSetsRequest++;
|
| if (buildCounterSearchVariantSetsRequest < 3) {
|
| - checkUnnamed2612(o.datasetIds);
|
| + checkUnnamed2599(o.datasetIds);
|
| unittest.expect(o.pageSize, unittest.equals(42));
|
| unittest.expect(o.pageToken, unittest.equals('foo'));
|
| }
|
| buildCounterSearchVariantSetsRequest--;
|
| }
|
|
|
| -buildUnnamed2613() {
|
| +buildUnnamed2600() {
|
| var o = new core.List<api.VariantSet>();
|
| o.add(buildVariantSet());
|
| o.add(buildVariantSet());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2613(core.List<api.VariantSet> o) {
|
| +checkUnnamed2600(core.List<api.VariantSet> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkVariantSet(o[0]);
|
| checkVariantSet(o[1]);
|
| @@ -2388,7 +2541,7 @@ buildSearchVariantSetsResponse() {
|
| buildCounterSearchVariantSetsResponse++;
|
| if (buildCounterSearchVariantSetsResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.variantSets = buildUnnamed2613();
|
| + o.variantSets = buildUnnamed2600();
|
| }
|
| buildCounterSearchVariantSetsResponse--;
|
| return o;
|
| @@ -2398,32 +2551,32 @@ checkSearchVariantSetsResponse(api.SearchVariantSetsResponse o) {
|
| buildCounterSearchVariantSetsResponse++;
|
| if (buildCounterSearchVariantSetsResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed2613(o.variantSets);
|
| + checkUnnamed2600(o.variantSets);
|
| }
|
| buildCounterSearchVariantSetsResponse--;
|
| }
|
|
|
| -buildUnnamed2614() {
|
| +buildUnnamed2601() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2614(core.List<core.String> o) {
|
| +checkUnnamed2601(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'));
|
| }
|
|
|
| -buildUnnamed2615() {
|
| +buildUnnamed2602() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2615(core.List<core.String> o) {
|
| +checkUnnamed2602(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'));
|
| @@ -2434,7 +2587,7 @@ buildSearchVariantsRequest() {
|
| var o = new api.SearchVariantsRequest();
|
| buildCounterSearchVariantsRequest++;
|
| if (buildCounterSearchVariantsRequest < 3) {
|
| - o.callSetIds = buildUnnamed2614();
|
| + o.callSetIds = buildUnnamed2601();
|
| o.end = "foo";
|
| o.maxCalls = 42;
|
| o.pageSize = 42;
|
| @@ -2442,7 +2595,7 @@ buildSearchVariantsRequest() {
|
| o.referenceName = "foo";
|
| o.start = "foo";
|
| o.variantName = "foo";
|
| - o.variantSetIds = buildUnnamed2615();
|
| + o.variantSetIds = buildUnnamed2602();
|
| }
|
| buildCounterSearchVariantsRequest--;
|
| return o;
|
| @@ -2451,7 +2604,7 @@ buildSearchVariantsRequest() {
|
| checkSearchVariantsRequest(api.SearchVariantsRequest o) {
|
| buildCounterSearchVariantsRequest++;
|
| if (buildCounterSearchVariantsRequest < 3) {
|
| - checkUnnamed2614(o.callSetIds);
|
| + checkUnnamed2601(o.callSetIds);
|
| unittest.expect(o.end, unittest.equals('foo'));
|
| unittest.expect(o.maxCalls, unittest.equals(42));
|
| unittest.expect(o.pageSize, unittest.equals(42));
|
| @@ -2459,19 +2612,19 @@ checkSearchVariantsRequest(api.SearchVariantsRequest o) {
|
| unittest.expect(o.referenceName, unittest.equals('foo'));
|
| unittest.expect(o.start, unittest.equals('foo'));
|
| unittest.expect(o.variantName, unittest.equals('foo'));
|
| - checkUnnamed2615(o.variantSetIds);
|
| + checkUnnamed2602(o.variantSetIds);
|
| }
|
| buildCounterSearchVariantsRequest--;
|
| }
|
|
|
| -buildUnnamed2616() {
|
| +buildUnnamed2603() {
|
| var o = new core.List<api.Variant>();
|
| o.add(buildVariant());
|
| o.add(buildVariant());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2616(core.List<api.Variant> o) {
|
| +checkUnnamed2603(core.List<api.Variant> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkVariant(o[0]);
|
| checkVariant(o[1]);
|
| @@ -2483,7 +2636,7 @@ buildSearchVariantsResponse() {
|
| buildCounterSearchVariantsResponse++;
|
| if (buildCounterSearchVariantsResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.variants = buildUnnamed2616();
|
| + o.variants = buildUnnamed2603();
|
| }
|
| buildCounterSearchVariantsResponse--;
|
| return o;
|
| @@ -2493,7 +2646,7 @@ checkSearchVariantsResponse(api.SearchVariantsResponse o) {
|
| buildCounterSearchVariantsResponse++;
|
| if (buildCounterSearchVariantsResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed2616(o.variants);
|
| + checkUnnamed2603(o.variants);
|
| }
|
| buildCounterSearchVariantsResponse--;
|
| }
|
| @@ -2517,30 +2670,46 @@ checkSetIamPolicyRequest(api.SetIamPolicyRequest o) {
|
| buildCounterSetIamPolicyRequest--;
|
| }
|
|
|
| -buildUnnamed2617() {
|
| +buildUnnamed2604() {
|
| 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'};
|
| + o["x"] = {
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + };
|
| + o["y"] = {
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + };
|
| return o;
|
| }
|
|
|
| -checkUnnamed2617(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed2604(core.Map<core.String, core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - var casted21 = (o["x"]) 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["y"]) 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'));
|
| + var casted21 = (o["x"]) 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["y"]) 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'));
|
| }
|
|
|
| -buildUnnamed2618() {
|
| +buildUnnamed2605() {
|
| var o = new core.List<core.Map<core.String, core.Object>>();
|
| - o.add(buildUnnamed2617());
|
| - o.add(buildUnnamed2617());
|
| + o.add(buildUnnamed2604());
|
| + o.add(buildUnnamed2604());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2618(core.List<core.Map<core.String, core.Object>> o) {
|
| +checkUnnamed2605(core.List<core.Map<core.String, core.Object>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed2617(o[0]);
|
| - checkUnnamed2617(o[1]);
|
| + checkUnnamed2604(o[0]);
|
| + checkUnnamed2604(o[1]);
|
| }
|
|
|
| core.int buildCounterStatus = 0;
|
| @@ -2549,7 +2718,7 @@ buildStatus() {
|
| buildCounterStatus++;
|
| if (buildCounterStatus < 3) {
|
| o.code = 42;
|
| - o.details = buildUnnamed2618();
|
| + o.details = buildUnnamed2605();
|
| o.message = "foo";
|
| }
|
| buildCounterStatus--;
|
| @@ -2560,20 +2729,20 @@ checkStatus(api.Status o) {
|
| buildCounterStatus++;
|
| if (buildCounterStatus < 3) {
|
| unittest.expect(o.code, unittest.equals(42));
|
| - checkUnnamed2618(o.details);
|
| + checkUnnamed2605(o.details);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| buildCounterStatus--;
|
| }
|
|
|
| -buildUnnamed2619() {
|
| +buildUnnamed2606() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2619(core.List<core.String> o) {
|
| +checkUnnamed2606(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'));
|
| @@ -2584,7 +2753,7 @@ buildTestIamPermissionsRequest() {
|
| var o = new api.TestIamPermissionsRequest();
|
| buildCounterTestIamPermissionsRequest++;
|
| if (buildCounterTestIamPermissionsRequest < 3) {
|
| - o.permissions = buildUnnamed2619();
|
| + o.permissions = buildUnnamed2606();
|
| }
|
| buildCounterTestIamPermissionsRequest--;
|
| return o;
|
| @@ -2593,19 +2762,19 @@ buildTestIamPermissionsRequest() {
|
| checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) {
|
| buildCounterTestIamPermissionsRequest++;
|
| if (buildCounterTestIamPermissionsRequest < 3) {
|
| - checkUnnamed2619(o.permissions);
|
| + checkUnnamed2606(o.permissions);
|
| }
|
| buildCounterTestIamPermissionsRequest--;
|
| }
|
|
|
| -buildUnnamed2620() {
|
| +buildUnnamed2607() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2620(core.List<core.String> o) {
|
| +checkUnnamed2607(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'));
|
| @@ -2616,7 +2785,7 @@ buildTestIamPermissionsResponse() {
|
| var o = new api.TestIamPermissionsResponse();
|
| buildCounterTestIamPermissionsResponse++;
|
| if (buildCounterTestIamPermissionsResponse < 3) {
|
| - o.permissions = buildUnnamed2620();
|
| + o.permissions = buildUnnamed2607();
|
| }
|
| buildCounterTestIamPermissionsResponse--;
|
| return o;
|
| @@ -2625,19 +2794,19 @@ buildTestIamPermissionsResponse() {
|
| checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) {
|
| buildCounterTestIamPermissionsResponse++;
|
| if (buildCounterTestIamPermissionsResponse < 3) {
|
| - checkUnnamed2620(o.permissions);
|
| + checkUnnamed2607(o.permissions);
|
| }
|
| buildCounterTestIamPermissionsResponse--;
|
| }
|
|
|
| -buildUnnamed2621() {
|
| +buildUnnamed2608() {
|
| var o = new core.List<api.Exon>();
|
| o.add(buildExon());
|
| o.add(buildExon());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2621(core.List<api.Exon> o) {
|
| +checkUnnamed2608(core.List<api.Exon> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkExon(o[0]);
|
| checkExon(o[1]);
|
| @@ -2649,7 +2818,7 @@ buildTranscript() {
|
| buildCounterTranscript++;
|
| if (buildCounterTranscript < 3) {
|
| o.codingSequence = buildCodingSequence();
|
| - o.exons = buildUnnamed2621();
|
| + o.exons = buildUnnamed2608();
|
| o.geneId = "foo";
|
| }
|
| buildCounterTranscript--;
|
| @@ -2660,7 +2829,7 @@ checkTranscript(api.Transcript o) {
|
| buildCounterTranscript++;
|
| if (buildCounterTranscript < 3) {
|
| checkCodingSequence(o.codingSequence);
|
| - checkUnnamed2621(o.exons);
|
| + checkUnnamed2608(o.exons);
|
| unittest.expect(o.geneId, unittest.equals('foo'));
|
| }
|
| buildCounterTranscript--;
|
| @@ -2670,92 +2839,106 @@ core.int buildCounterUndeleteDatasetRequest = 0;
|
| buildUndeleteDatasetRequest() {
|
| var o = new api.UndeleteDatasetRequest();
|
| buildCounterUndeleteDatasetRequest++;
|
| - if (buildCounterUndeleteDatasetRequest < 3) {
|
| - }
|
| + if (buildCounterUndeleteDatasetRequest < 3) {}
|
| buildCounterUndeleteDatasetRequest--;
|
| return o;
|
| }
|
|
|
| checkUndeleteDatasetRequest(api.UndeleteDatasetRequest o) {
|
| buildCounterUndeleteDatasetRequest++;
|
| - if (buildCounterUndeleteDatasetRequest < 3) {
|
| - }
|
| + if (buildCounterUndeleteDatasetRequest < 3) {}
|
| buildCounterUndeleteDatasetRequest--;
|
| }
|
|
|
| -buildUnnamed2622() {
|
| +buildUnnamed2609() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2622(core.List<core.String> o) {
|
| +checkUnnamed2609(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'));
|
| }
|
|
|
| -buildUnnamed2623() {
|
| +buildUnnamed2610() {
|
| var o = new core.List<api.VariantCall>();
|
| o.add(buildVariantCall());
|
| o.add(buildVariantCall());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2623(core.List<api.VariantCall> o) {
|
| +checkUnnamed2610(core.List<api.VariantCall> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkVariantCall(o[0]);
|
| checkVariantCall(o[1]);
|
| }
|
|
|
| -buildUnnamed2624() {
|
| +buildUnnamed2611() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2624(core.List<core.String> o) {
|
| +checkUnnamed2611(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'));
|
| }
|
|
|
| -buildUnnamed2625() {
|
| +buildUnnamed2612() {
|
| 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'});
|
| + o.add({
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + });
|
| + o.add({
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + });
|
| return o;
|
| }
|
|
|
| -checkUnnamed2625(core.List<core.Object> o) {
|
| +checkUnnamed2612(core.List<core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - var casted23 = (o[0]) as core.Map; unittest.expect(casted23, unittest.hasLength(3)); unittest.expect(casted23["list"], unittest.equals([1, 2, 3])); unittest.expect(casted23["bool"], unittest.equals(true)); unittest.expect(casted23["string"], unittest.equals('foo'));
|
| - var casted24 = (o[1]) as core.Map; unittest.expect(casted24, unittest.hasLength(3)); unittest.expect(casted24["list"], unittest.equals([1, 2, 3])); unittest.expect(casted24["bool"], unittest.equals(true)); unittest.expect(casted24["string"], unittest.equals('foo'));
|
| + var casted23 = (o[0]) as core.Map;
|
| + unittest.expect(casted23, unittest.hasLength(3));
|
| + unittest.expect(casted23["list"], unittest.equals([1, 2, 3]));
|
| + unittest.expect(casted23["bool"], unittest.equals(true));
|
| + unittest.expect(casted23["string"], unittest.equals('foo'));
|
| + var casted24 = (o[1]) as core.Map;
|
| + unittest.expect(casted24, unittest.hasLength(3));
|
| + unittest.expect(casted24["list"], unittest.equals([1, 2, 3]));
|
| + unittest.expect(casted24["bool"], unittest.equals(true));
|
| + unittest.expect(casted24["string"], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed2626() {
|
| +buildUnnamed2613() {
|
| var o = new core.Map<core.String, core.List<core.Object>>();
|
| - o["x"] = buildUnnamed2625();
|
| - o["y"] = buildUnnamed2625();
|
| + o["x"] = buildUnnamed2612();
|
| + o["y"] = buildUnnamed2612();
|
| return o;
|
| }
|
|
|
| -checkUnnamed2626(core.Map<core.String, core.List<core.Object>> o) {
|
| +checkUnnamed2613(core.Map<core.String, core.List<core.Object>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed2625(o["x"]);
|
| - checkUnnamed2625(o["y"]);
|
| + checkUnnamed2612(o["x"]);
|
| + checkUnnamed2612(o["y"]);
|
| }
|
|
|
| -buildUnnamed2627() {
|
| +buildUnnamed2614() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2627(core.List<core.String> o) {
|
| +checkUnnamed2614(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'));
|
| @@ -2766,14 +2949,14 @@ buildVariant() {
|
| var o = new api.Variant();
|
| buildCounterVariant++;
|
| if (buildCounterVariant < 3) {
|
| - o.alternateBases = buildUnnamed2622();
|
| - o.calls = buildUnnamed2623();
|
| + o.alternateBases = buildUnnamed2609();
|
| + o.calls = buildUnnamed2610();
|
| o.created = "foo";
|
| o.end = "foo";
|
| - o.filter = buildUnnamed2624();
|
| + o.filter = buildUnnamed2611();
|
| o.id = "foo";
|
| - o.info = buildUnnamed2626();
|
| - o.names = buildUnnamed2627();
|
| + o.info = buildUnnamed2613();
|
| + o.names = buildUnnamed2614();
|
| o.quality = 42.0;
|
| o.referenceBases = "foo";
|
| o.referenceName = "foo";
|
| @@ -2787,14 +2970,14 @@ buildVariant() {
|
| checkVariant(api.Variant o) {
|
| buildCounterVariant++;
|
| if (buildCounterVariant < 3) {
|
| - checkUnnamed2622(o.alternateBases);
|
| - checkUnnamed2623(o.calls);
|
| + checkUnnamed2609(o.alternateBases);
|
| + checkUnnamed2610(o.calls);
|
| unittest.expect(o.created, unittest.equals('foo'));
|
| unittest.expect(o.end, unittest.equals('foo'));
|
| - checkUnnamed2624(o.filter);
|
| + checkUnnamed2611(o.filter);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2626(o.info);
|
| - checkUnnamed2627(o.names);
|
| + checkUnnamed2613(o.info);
|
| + checkUnnamed2614(o.names);
|
| unittest.expect(o.quality, unittest.equals(42.0));
|
| unittest.expect(o.referenceBases, unittest.equals('foo'));
|
| unittest.expect(o.referenceName, unittest.equals('foo'));
|
| @@ -2804,27 +2987,27 @@ checkVariant(api.Variant o) {
|
| buildCounterVariant--;
|
| }
|
|
|
| -buildUnnamed2628() {
|
| +buildUnnamed2615() {
|
| var o = new core.List<api.ClinicalCondition>();
|
| o.add(buildClinicalCondition());
|
| o.add(buildClinicalCondition());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2628(core.List<api.ClinicalCondition> o) {
|
| +checkUnnamed2615(core.List<api.ClinicalCondition> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkClinicalCondition(o[0]);
|
| checkClinicalCondition(o[1]);
|
| }
|
|
|
| -buildUnnamed2629() {
|
| +buildUnnamed2616() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed2629(core.List<core.String> o) {
|
| +checkUnnamed2616(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'));
|
| @@ -2837,10 +3020,10 @@ buildVariantAnnotation() {
|
| if (buildCounterVariantAnnotation < 3) {
|
| o.alternateBases = "foo";
|
| o.clinicalSignificance = "foo";
|
| - o.conditions = buildUnnamed2628();
|
| + o.conditions = buildUnnamed2615();
|
| o.effect = "foo";
|
| o.geneId = "foo";
|
| - o.transcriptIds = buildUnnamed2629();
|
| + o.transcriptIds = buildUnnamed2616();
|
| o.type = "foo";
|
| }
|
| buildCounterVariantAnnotation--;
|
| @@ -2852,65 +3035,81 @@ checkVariantAnnotation(api.VariantAnnotation o) {
|
| if (buildCounterVariantAnnotation < 3) {
|
| unittest.expect(o.alternateBases, unittest.equals('foo'));
|
| unittest.expect(o.clinicalSignificance, unittest.equals('foo'));
|
| - checkUnnamed2628(o.conditions);
|
| + checkUnnamed2615(o.conditions);
|
| unittest.expect(o.effect, unittest.equals('foo'));
|
| unittest.expect(o.geneId, unittest.equals('foo'));
|
| - checkUnnamed2629(o.transcriptIds);
|
| + checkUnnamed2616(o.transcriptIds);
|
| unittest.expect(o.type, unittest.equals('foo'));
|
| }
|
| buildCounterVariantAnnotation--;
|
| }
|
|
|
| -buildUnnamed2630() {
|
| +buildUnnamed2617() {
|
| var o = new core.List<core.int>();
|
| o.add(42);
|
| o.add(42);
|
| return o;
|
| }
|
|
|
| -checkUnnamed2630(core.List<core.int> o) {
|
| +checkUnnamed2617(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));
|
| }
|
|
|
| -buildUnnamed2631() {
|
| +buildUnnamed2618() {
|
| var o = new core.List<core.double>();
|
| o.add(42.0);
|
| o.add(42.0);
|
| return o;
|
| }
|
|
|
| -checkUnnamed2631(core.List<core.double> o) {
|
| +checkUnnamed2618(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));
|
| }
|
|
|
| -buildUnnamed2632() {
|
| +buildUnnamed2619() {
|
| 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'});
|
| + o.add({
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + });
|
| + o.add({
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + });
|
| return o;
|
| }
|
|
|
| -checkUnnamed2632(core.List<core.Object> o) {
|
| +checkUnnamed2619(core.List<core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - var casted25 = (o[0]) as core.Map; unittest.expect(casted25, unittest.hasLength(3)); unittest.expect(casted25["list"], unittest.equals([1, 2, 3])); unittest.expect(casted25["bool"], unittest.equals(true)); unittest.expect(casted25["string"], unittest.equals('foo'));
|
| - var casted26 = (o[1]) as core.Map; unittest.expect(casted26, unittest.hasLength(3)); unittest.expect(casted26["list"], unittest.equals([1, 2, 3])); unittest.expect(casted26["bool"], unittest.equals(true)); unittest.expect(casted26["string"], unittest.equals('foo'));
|
| + var casted25 = (o[0]) as core.Map;
|
| + unittest.expect(casted25, unittest.hasLength(3));
|
| + unittest.expect(casted25["list"], unittest.equals([1, 2, 3]));
|
| + unittest.expect(casted25["bool"], unittest.equals(true));
|
| + unittest.expect(casted25["string"], unittest.equals('foo'));
|
| + var casted26 = (o[1]) as core.Map;
|
| + unittest.expect(casted26, unittest.hasLength(3));
|
| + unittest.expect(casted26["list"], unittest.equals([1, 2, 3]));
|
| + unittest.expect(casted26["bool"], unittest.equals(true));
|
| + unittest.expect(casted26["string"], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed2633() {
|
| +buildUnnamed2620() {
|
| var o = new core.Map<core.String, core.List<core.Object>>();
|
| - o["x"] = buildUnnamed2632();
|
| - o["y"] = buildUnnamed2632();
|
| + o["x"] = buildUnnamed2619();
|
| + o["y"] = buildUnnamed2619();
|
| return o;
|
| }
|
|
|
| -checkUnnamed2633(core.Map<core.String, core.List<core.Object>> o) {
|
| +checkUnnamed2620(core.Map<core.String, core.List<core.Object>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed2632(o["x"]);
|
| - checkUnnamed2632(o["y"]);
|
| + checkUnnamed2619(o["x"]);
|
| + checkUnnamed2619(o["y"]);
|
| }
|
|
|
| core.int buildCounterVariantCall = 0;
|
| @@ -2920,9 +3119,9 @@ buildVariantCall() {
|
| if (buildCounterVariantCall < 3) {
|
| o.callSetId = "foo";
|
| o.callSetName = "foo";
|
| - o.genotype = buildUnnamed2630();
|
| - o.genotypeLikelihood = buildUnnamed2631();
|
| - o.info = buildUnnamed2633();
|
| + o.genotype = buildUnnamed2617();
|
| + o.genotypeLikelihood = buildUnnamed2618();
|
| + o.info = buildUnnamed2620();
|
| o.phaseset = "foo";
|
| }
|
| buildCounterVariantCall--;
|
| @@ -2934,35 +3133,35 @@ checkVariantCall(api.VariantCall o) {
|
| if (buildCounterVariantCall < 3) {
|
| unittest.expect(o.callSetId, unittest.equals('foo'));
|
| unittest.expect(o.callSetName, unittest.equals('foo'));
|
| - checkUnnamed2630(o.genotype);
|
| - checkUnnamed2631(o.genotypeLikelihood);
|
| - checkUnnamed2633(o.info);
|
| + checkUnnamed2617(o.genotype);
|
| + checkUnnamed2618(o.genotypeLikelihood);
|
| + checkUnnamed2620(o.info);
|
| unittest.expect(o.phaseset, unittest.equals('foo'));
|
| }
|
| buildCounterVariantCall--;
|
| }
|
|
|
| -buildUnnamed2634() {
|
| +buildUnnamed2621() {
|
| var o = new core.List<api.VariantSetMetadata>();
|
| o.add(buildVariantSetMetadata());
|
| o.add(buildVariantSetMetadata());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2634(core.List<api.VariantSetMetadata> o) {
|
| +checkUnnamed2621(core.List<api.VariantSetMetadata> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkVariantSetMetadata(o[0]);
|
| checkVariantSetMetadata(o[1]);
|
| }
|
|
|
| -buildUnnamed2635() {
|
| +buildUnnamed2622() {
|
| var o = new core.List<api.ReferenceBound>();
|
| o.add(buildReferenceBound());
|
| o.add(buildReferenceBound());
|
| return o;
|
| }
|
|
|
| -checkUnnamed2635(core.List<api.ReferenceBound> o) {
|
| +checkUnnamed2622(core.List<api.ReferenceBound> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkReferenceBound(o[0]);
|
| checkReferenceBound(o[1]);
|
| @@ -2976,9 +3175,9 @@ buildVariantSet() {
|
| o.datasetId = "foo";
|
| o.description = "foo";
|
| o.id = "foo";
|
| - o.metadata = buildUnnamed2634();
|
| + o.metadata = buildUnnamed2621();
|
| o.name = "foo";
|
| - o.referenceBounds = buildUnnamed2635();
|
| + o.referenceBounds = buildUnnamed2622();
|
| o.referenceSetId = "foo";
|
| }
|
| buildCounterVariantSet--;
|
| @@ -2991,38 +3190,54 @@ checkVariantSet(api.VariantSet o) {
|
| unittest.expect(o.datasetId, unittest.equals('foo'));
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2634(o.metadata);
|
| + checkUnnamed2621(o.metadata);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed2635(o.referenceBounds);
|
| + checkUnnamed2622(o.referenceBounds);
|
| unittest.expect(o.referenceSetId, unittest.equals('foo'));
|
| }
|
| buildCounterVariantSet--;
|
| }
|
|
|
| -buildUnnamed2636() {
|
| +buildUnnamed2623() {
|
| 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'});
|
| + o.add({
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + });
|
| + o.add({
|
| + 'list': [1, 2, 3],
|
| + 'bool': true,
|
| + 'string': 'foo'
|
| + });
|
| return o;
|
| }
|
|
|
| -checkUnnamed2636(core.List<core.Object> o) {
|
| +checkUnnamed2623(core.List<core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - var casted27 = (o[0]) as core.Map; unittest.expect(casted27, unittest.hasLength(3)); unittest.expect(casted27["list"], unittest.equals([1, 2, 3])); unittest.expect(casted27["bool"], unittest.equals(true)); unittest.expect(casted27["string"], unittest.equals('foo'));
|
| - var casted28 = (o[1]) as core.Map; unittest.expect(casted28, unittest.hasLength(3)); unittest.expect(casted28["list"], unittest.equals([1, 2, 3])); unittest.expect(casted28["bool"], unittest.equals(true)); unittest.expect(casted28["string"], unittest.equals('foo'));
|
| + var casted27 = (o[0]) as core.Map;
|
| + unittest.expect(casted27, unittest.hasLength(3));
|
| + unittest.expect(casted27["list"], unittest.equals([1, 2, 3]));
|
| + unittest.expect(casted27["bool"], unittest.equals(true));
|
| + unittest.expect(casted27["string"], unittest.equals('foo'));
|
| + var casted28 = (o[1]) as core.Map;
|
| + unittest.expect(casted28, unittest.hasLength(3));
|
| + unittest.expect(casted28["list"], unittest.equals([1, 2, 3]));
|
| + unittest.expect(casted28["bool"], unittest.equals(true));
|
| + unittest.expect(casted28["string"], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed2637() {
|
| +buildUnnamed2624() {
|
| var o = new core.Map<core.String, core.List<core.Object>>();
|
| - o["x"] = buildUnnamed2636();
|
| - o["y"] = buildUnnamed2636();
|
| + o["x"] = buildUnnamed2623();
|
| + o["y"] = buildUnnamed2623();
|
| return o;
|
| }
|
|
|
| -checkUnnamed2637(core.Map<core.String, core.List<core.Object>> o) {
|
| +checkUnnamed2624(core.Map<core.String, core.List<core.Object>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed2636(o["x"]);
|
| - checkUnnamed2636(o["y"]);
|
| + checkUnnamed2623(o["x"]);
|
| + checkUnnamed2623(o["y"]);
|
| }
|
|
|
| core.int buildCounterVariantSetMetadata = 0;
|
| @@ -3032,7 +3247,7 @@ buildVariantSetMetadata() {
|
| if (buildCounterVariantSetMetadata < 3) {
|
| o.description = "foo";
|
| o.id = "foo";
|
| - o.info = buildUnnamed2637();
|
| + o.info = buildUnnamed2624();
|
| o.key = "foo";
|
| o.number = "foo";
|
| o.type = "foo";
|
| @@ -3047,7 +3262,7 @@ checkVariantSetMetadata(api.VariantSetMetadata o) {
|
| if (buildCounterVariantSetMetadata < 3) {
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed2637(o.info);
|
| + checkUnnamed2624(o.info);
|
| unittest.expect(o.key, unittest.equals('foo'));
|
| unittest.expect(o.number, unittest.equals('foo'));
|
| unittest.expect(o.type, unittest.equals('foo'));
|
| @@ -3056,7 +3271,6 @@ checkVariantSetMetadata(api.VariantSetMetadata o) {
|
| buildCounterVariantSetMetadata--;
|
| }
|
|
|
| -
|
| main() {
|
| unittest.group("obj-schema-Annotation", () {
|
| unittest.test("to-json--from-json", () {
|
| @@ -3066,7 +3280,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-AnnotationSet", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildAnnotationSet();
|
| @@ -3075,7 +3288,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-BatchCreateAnnotationsRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildBatchCreateAnnotationsRequest();
|
| @@ -3084,7 +3296,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-BatchCreateAnnotationsResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildBatchCreateAnnotationsResponse();
|
| @@ -3093,7 +3304,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-Binding", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildBinding();
|
| @@ -3102,7 +3312,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-CallSet", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildCallSet();
|
| @@ -3111,7 +3320,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-CancelOperationRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildCancelOperationRequest();
|
| @@ -3120,7 +3328,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-CigarUnit", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildCigarUnit();
|
| @@ -3129,7 +3336,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-ClinicalCondition", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildClinicalCondition();
|
| @@ -3138,7 +3344,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-CodingSequence", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildCodingSequence();
|
| @@ -3147,7 +3352,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-ComputeEngine", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildComputeEngine();
|
| @@ -3156,7 +3360,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-CoverageBucket", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildCoverageBucket();
|
| @@ -3165,7 +3368,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-Dataset", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildDataset();
|
| @@ -3174,7 +3376,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-Empty", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildEmpty();
|
| @@ -3183,7 +3384,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-Entry", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildEntry();
|
| @@ -3192,7 +3392,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-Exon", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildExon();
|
| @@ -3201,7 +3400,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-Experiment", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildExperiment();
|
| @@ -3210,7 +3408,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-ExportReadGroupSetRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildExportReadGroupSetRequest();
|
| @@ -3219,7 +3416,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-ExportVariantSetRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildExportVariantSetRequest();
|
| @@ -3228,7 +3424,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-ExternalId", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildExternalId();
|
| @@ -3237,7 +3432,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-GetIamPolicyRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildGetIamPolicyRequest();
|
| @@ -3246,7 +3440,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-ImportReadGroupSetsRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildImportReadGroupSetsRequest();
|
| @@ -3255,7 +3448,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-ImportReadGroupSetsResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildImportReadGroupSetsResponse();
|
| @@ -3264,7 +3456,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-ImportVariantsRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildImportVariantsRequest();
|
| @@ -3273,7 +3464,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-ImportVariantsResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildImportVariantsResponse();
|
| @@ -3282,7 +3472,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-LinearAlignment", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildLinearAlignment();
|
| @@ -3291,7 +3480,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-ListBasesResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildListBasesResponse();
|
| @@ -3300,7 +3488,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-ListCoverageBucketsResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildListCoverageBucketsResponse();
|
| @@ -3309,7 +3496,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-ListDatasetsResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildListDatasetsResponse();
|
| @@ -3318,7 +3504,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-ListOperationsResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildListOperationsResponse();
|
| @@ -3327,7 +3512,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-MergeVariantsRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildMergeVariantsRequest();
|
| @@ -3336,7 +3520,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-Operation", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildOperation();
|
| @@ -3345,7 +3528,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-OperationEvent", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildOperationEvent();
|
| @@ -3354,7 +3536,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-OperationMetadata", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildOperationMetadata();
|
| @@ -3363,7 +3544,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-Policy", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildPolicy();
|
| @@ -3372,7 +3552,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-Position", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildPosition();
|
| @@ -3381,7 +3560,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-Program", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildProgram();
|
| @@ -3390,7 +3568,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-Range", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildRange();
|
| @@ -3399,7 +3576,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-Read", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildRead();
|
| @@ -3408,7 +3584,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-ReadGroup", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildReadGroup();
|
| @@ -3417,7 +3592,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-ReadGroupSet", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildReadGroupSet();
|
| @@ -3426,7 +3600,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-Reference", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildReference();
|
| @@ -3435,7 +3608,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-ReferenceBound", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildReferenceBound();
|
| @@ -3444,7 +3616,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-ReferenceSet", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildReferenceSet();
|
| @@ -3453,7 +3624,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-RuntimeMetadata", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildRuntimeMetadata();
|
| @@ -3462,7 +3632,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-SearchAnnotationSetsRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildSearchAnnotationSetsRequest();
|
| @@ -3471,7 +3640,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-SearchAnnotationSetsResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildSearchAnnotationSetsResponse();
|
| @@ -3480,7 +3648,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-SearchAnnotationsRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildSearchAnnotationsRequest();
|
| @@ -3489,7 +3656,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-SearchAnnotationsResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildSearchAnnotationsResponse();
|
| @@ -3498,7 +3664,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-SearchCallSetsRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildSearchCallSetsRequest();
|
| @@ -3507,7 +3672,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-SearchCallSetsResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildSearchCallSetsResponse();
|
| @@ -3516,7 +3680,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-SearchReadGroupSetsRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildSearchReadGroupSetsRequest();
|
| @@ -3525,7 +3688,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-SearchReadGroupSetsResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildSearchReadGroupSetsResponse();
|
| @@ -3534,7 +3696,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-SearchReadsRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildSearchReadsRequest();
|
| @@ -3543,7 +3704,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-SearchReadsResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildSearchReadsResponse();
|
| @@ -3552,7 +3712,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-SearchReferenceSetsRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildSearchReferenceSetsRequest();
|
| @@ -3561,7 +3720,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-SearchReferenceSetsResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildSearchReferenceSetsResponse();
|
| @@ -3570,7 +3728,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-SearchReferencesRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildSearchReferencesRequest();
|
| @@ -3579,7 +3736,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-SearchReferencesResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildSearchReferencesResponse();
|
| @@ -3588,7 +3744,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-SearchVariantSetsRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildSearchVariantSetsRequest();
|
| @@ -3597,7 +3752,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-SearchVariantSetsResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildSearchVariantSetsResponse();
|
| @@ -3606,7 +3760,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-SearchVariantsRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildSearchVariantsRequest();
|
| @@ -3615,7 +3768,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-SearchVariantsResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildSearchVariantsResponse();
|
| @@ -3624,7 +3776,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-SetIamPolicyRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildSetIamPolicyRequest();
|
| @@ -3633,7 +3784,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-Status", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildStatus();
|
| @@ -3642,7 +3792,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-TestIamPermissionsRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildTestIamPermissionsRequest();
|
| @@ -3651,7 +3800,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-TestIamPermissionsResponse", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildTestIamPermissionsResponse();
|
| @@ -3660,7 +3808,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-Transcript", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildTranscript();
|
| @@ -3669,7 +3816,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-UndeleteDatasetRequest", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildUndeleteDatasetRequest();
|
| @@ -3678,7 +3824,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-Variant", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildVariant();
|
| @@ -3687,7 +3832,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-VariantAnnotation", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildVariantAnnotation();
|
| @@ -3696,7 +3840,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-VariantCall", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildVariantCall();
|
| @@ -3705,7 +3848,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-VariantSet", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildVariantSet();
|
| @@ -3714,7 +3856,6 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("obj-schema-VariantSetMetadata", () {
|
| unittest.test("to-json--from-json", () {
|
| var o = buildVariantSetMetadata();
|
| @@ -3723,10 +3864,8 @@ main() {
|
| });
|
| });
|
|
|
| -
|
| unittest.group("resource-AnnotationsResourceApi", () {
|
| unittest.test("method--batchCreate", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations;
|
| var arg_request = buildBatchCreateAnnotationsRequest();
|
| @@ -3738,9 +3877,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 26), unittest.equals("v1/annotations:batchCreate"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 26),
|
| + unittest.equals("v1/annotations:batchCreate"));
|
| pathOffset += 26;
|
|
|
| var query = (req.url).query;
|
| @@ -3753,27 +3894,28 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildBatchCreateAnnotationsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.batchCreate(arg_request).then(unittest.expectAsync1(((api.BatchCreateAnnotationsResponse response) {
|
| + res.batchCreate(arg_request).then(
|
| + unittest.expectAsync1(((api.BatchCreateAnnotationsResponse response) {
|
| checkBatchCreateAnnotationsResponse(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--create", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations;
|
| var arg_request = buildAnnotation();
|
| @@ -3785,9 +3927,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("v1/annotations"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 14),
|
| + unittest.equals("v1/annotations"));
|
| pathOffset += 14;
|
|
|
| var query = (req.url).query;
|
| @@ -3800,27 +3944,29 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "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.expectAsync1(((api.Annotation response) {
|
| + res
|
| + .create(arg_request)
|
| + .then(unittest.expectAsync1(((api.Annotation response) {
|
| checkAnnotation(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--delete", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations;
|
| var arg_annotationId = "foo";
|
| @@ -3829,9 +3975,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("v1/annotations/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 15),
|
| + unittest.equals("v1/annotations/"));
|
| pathOffset += 15;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -3847,27 +3995,29 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildEmpty());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_annotationId).then(unittest.expectAsync1(((api.Empty response) {
|
| + res
|
| + .delete(arg_annotationId)
|
| + .then(unittest.expectAsync1(((api.Empty response) {
|
| checkEmpty(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--get", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations;
|
| var arg_annotationId = "foo";
|
| @@ -3876,9 +4026,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("v1/annotations/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 15),
|
| + unittest.equals("v1/annotations/"));
|
| pathOffset += 15;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -3894,27 +4046,29 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "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.expectAsync1(((api.Annotation response) {
|
| + res
|
| + .get(arg_annotationId)
|
| + .then(unittest.expectAsync1(((api.Annotation response) {
|
| checkAnnotation(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--search", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations;
|
| var arg_request = buildSearchAnnotationsRequest();
|
| @@ -3926,9 +4080,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("v1/annotations/search"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 21),
|
| + unittest.equals("v1/annotations/search"));
|
| pathOffset += 21;
|
|
|
| var query = (req.url).query;
|
| @@ -3941,27 +4097,28 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "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.expectAsync1(((api.SearchAnnotationsResponse response) {
|
| + res.search(arg_request).then(
|
| + unittest.expectAsync1(((api.SearchAnnotationsResponse response) {
|
| checkSearchAnnotationsResponse(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--update", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.AnnotationsResourceApi res = new api.GenomicsApi(mock).annotations;
|
| var arg_request = buildAnnotation();
|
| @@ -3975,9 +4132,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("v1/annotations/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 15),
|
| + unittest.equals("v1/annotations/"));
|
| pathOffset += 15;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -3993,34 +4152,36 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_updateMask));
|
| -
|
| + unittest.expect(
|
| + queryMap["updateMask"].first, unittest.equals(arg_updateMask));
|
|
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "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, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Annotation response) {
|
| + res
|
| + .update(arg_request, arg_annotationId, updateMask: arg_updateMask)
|
| + .then(unittest.expectAsync1(((api.Annotation response) {
|
| checkAnnotation(response);
|
| })));
|
| });
|
| -
|
| });
|
|
|
| -
|
| unittest.group("resource-AnnotationsetsResourceApi", () {
|
| unittest.test("method--create", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.AnnotationsetsResourceApi res = new api.GenomicsApi(mock).annotationsets;
|
| + api.AnnotationsetsResourceApi res =
|
| + new api.GenomicsApi(mock).annotationsets;
|
| var arg_request = buildAnnotationSet();
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.AnnotationSet.fromJson(json);
|
| @@ -4030,9 +4191,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v1/annotationsets"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 17),
|
| + unittest.equals("v1/annotationsets"));
|
| pathOffset += 17;
|
|
|
| var query = (req.url).query;
|
| @@ -4045,38 +4208,43 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "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.expectAsync1(((api.AnnotationSet response) {
|
| + res
|
| + .create(arg_request)
|
| + .then(unittest.expectAsync1(((api.AnnotationSet response) {
|
| checkAnnotationSet(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--delete", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.AnnotationsetsResourceApi res = new api.GenomicsApi(mock).annotationsets;
|
| + api.AnnotationsetsResourceApi res =
|
| + new api.GenomicsApi(mock).annotationsets;
|
| var arg_annotationSetId = "foo";
|
| mock.register(unittest.expectAsync2((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("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("v1/annotationsets/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18),
|
| + unittest.equals("v1/annotationsets/"));
|
| pathOffset += 18;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -4092,38 +4260,43 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildEmpty());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_annotationSetId).then(unittest.expectAsync1(((api.Empty response) {
|
| + res
|
| + .delete(arg_annotationSetId)
|
| + .then(unittest.expectAsync1(((api.Empty response) {
|
| checkEmpty(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--get", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.AnnotationsetsResourceApi res = new api.GenomicsApi(mock).annotationsets;
|
| + api.AnnotationsetsResourceApi res =
|
| + new api.GenomicsApi(mock).annotationsets;
|
| var arg_annotationSetId = "foo";
|
| mock.register(unittest.expectAsync2((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("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("v1/annotationsets/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18),
|
| + unittest.equals("v1/annotationsets/"));
|
| pathOffset += 18;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -4139,29 +4312,32 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "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.expectAsync1(((api.AnnotationSet response) {
|
| + res
|
| + .get(arg_annotationSetId)
|
| + .then(unittest.expectAsync1(((api.AnnotationSet response) {
|
| checkAnnotationSet(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--search", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.AnnotationsetsResourceApi res = new api.GenomicsApi(mock).annotationsets;
|
| + api.AnnotationsetsResourceApi res =
|
| + new api.GenomicsApi(mock).annotationsets;
|
| var arg_request = buildSearchAnnotationSetsRequest();
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.SearchAnnotationSetsRequest.fromJson(json);
|
| @@ -4171,9 +4347,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 24), unittest.equals("v1/annotationsets/search"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 24),
|
| + unittest.equals("v1/annotationsets/search"));
|
| pathOffset += 24;
|
|
|
| var query = (req.url).query;
|
| @@ -4186,29 +4364,31 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "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.expectAsync1(((api.SearchAnnotationSetsResponse response) {
|
| + res.search(arg_request).then(
|
| + unittest.expectAsync1(((api.SearchAnnotationSetsResponse response) {
|
| checkSearchAnnotationSetsResponse(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--update", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.AnnotationsetsResourceApi res = new api.GenomicsApi(mock).annotationsets;
|
| + api.AnnotationsetsResourceApi res =
|
| + new api.GenomicsApi(mock).annotationsets;
|
| var arg_request = buildAnnotationSet();
|
| var arg_annotationSetId = "foo";
|
| var arg_updateMask = "foo";
|
| @@ -4220,9 +4400,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("v1/annotationsets/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18),
|
| + unittest.equals("v1/annotationsets/"));
|
| pathOffset += 18;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -4238,32 +4420,33 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_updateMask));
|
| -
|
| + unittest.expect(
|
| + queryMap["updateMask"].first, unittest.equals(arg_updateMask));
|
|
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "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, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.AnnotationSet response) {
|
| + res
|
| + .update(arg_request, arg_annotationSetId, updateMask: arg_updateMask)
|
| + .then(unittest.expectAsync1(((api.AnnotationSet response) {
|
| checkAnnotationSet(response);
|
| })));
|
| });
|
| -
|
| });
|
|
|
| -
|
| unittest.group("resource-CallsetsResourceApi", () {
|
| unittest.test("method--create", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets;
|
| var arg_request = buildCallSet();
|
| @@ -4275,9 +4458,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("v1/callsets"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 11),
|
| + unittest.equals("v1/callsets"));
|
| pathOffset += 11;
|
|
|
| var query = (req.url).query;
|
| @@ -4290,27 +4475,29 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildCallSet());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.create(arg_request).then(unittest.expectAsync1(((api.CallSet response) {
|
| + res
|
| + .create(arg_request)
|
| + .then(unittest.expectAsync1(((api.CallSet response) {
|
| checkCallSet(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--delete", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets;
|
| var arg_callSetId = "foo";
|
| @@ -4319,9 +4506,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("v1/callsets/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 12),
|
| + unittest.equals("v1/callsets/"));
|
| pathOffset += 12;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -4337,27 +4526,29 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildEmpty());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_callSetId).then(unittest.expectAsync1(((api.Empty response) {
|
| + res
|
| + .delete(arg_callSetId)
|
| + .then(unittest.expectAsync1(((api.Empty response) {
|
| checkEmpty(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--get", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets;
|
| var arg_callSetId = "foo";
|
| @@ -4366,9 +4557,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("v1/callsets/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 12),
|
| + unittest.equals("v1/callsets/"));
|
| pathOffset += 12;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -4384,27 +4577,29 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildCallSet());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_callSetId).then(unittest.expectAsync1(((api.CallSet response) {
|
| + res
|
| + .get(arg_callSetId)
|
| + .then(unittest.expectAsync1(((api.CallSet response) {
|
| checkCallSet(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--patch", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets;
|
| var arg_request = buildCallSet();
|
| @@ -4418,9 +4613,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("v1/callsets/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 12),
|
| + unittest.equals("v1/callsets/"));
|
| pathOffset += 12;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -4436,28 +4633,31 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_updateMask));
|
| -
|
| + unittest.expect(
|
| + queryMap["updateMask"].first, unittest.equals(arg_updateMask));
|
|
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildCallSet());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_callSetId, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.CallSet response) {
|
| + res
|
| + .patch(arg_request, arg_callSetId, updateMask: arg_updateMask)
|
| + .then(unittest.expectAsync1(((api.CallSet response) {
|
| checkCallSet(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--search", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.CallsetsResourceApi res = new api.GenomicsApi(mock).callsets;
|
| var arg_request = buildSearchCallSetsRequest();
|
| @@ -4469,9 +4669,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("v1/callsets/search"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18),
|
| + unittest.equals("v1/callsets/search"));
|
| pathOffset += 18;
|
|
|
| var query = (req.url).query;
|
| @@ -4484,31 +4686,31 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildSearchCallSetsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.search(arg_request).then(unittest.expectAsync1(((api.SearchCallSetsResponse response) {
|
| + res
|
| + .search(arg_request)
|
| + .then(unittest.expectAsync1(((api.SearchCallSetsResponse response) {
|
| checkSearchCallSetsResponse(response);
|
| })));
|
| });
|
| -
|
| });
|
|
|
| -
|
| unittest.group("resource-DatasetsResourceApi", () {
|
| unittest.test("method--create", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets;
|
| var arg_request = buildDataset();
|
| @@ -4520,9 +4722,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("v1/datasets"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 11),
|
| + unittest.equals("v1/datasets"));
|
| pathOffset += 11;
|
|
|
| var query = (req.url).query;
|
| @@ -4535,27 +4739,29 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildDataset());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.create(arg_request).then(unittest.expectAsync1(((api.Dataset response) {
|
| + res
|
| + .create(arg_request)
|
| + .then(unittest.expectAsync1(((api.Dataset response) {
|
| checkDataset(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--delete", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets;
|
| var arg_datasetId = "foo";
|
| @@ -4564,9 +4770,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("v1/datasets/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 12),
|
| + unittest.equals("v1/datasets/"));
|
| pathOffset += 12;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -4582,27 +4790,29 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildEmpty());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_datasetId).then(unittest.expectAsync1(((api.Empty response) {
|
| + res
|
| + .delete(arg_datasetId)
|
| + .then(unittest.expectAsync1(((api.Empty response) {
|
| checkEmpty(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--get", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets;
|
| var arg_datasetId = "foo";
|
| @@ -4611,9 +4821,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("v1/datasets/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 12),
|
| + unittest.equals("v1/datasets/"));
|
| pathOffset += 12;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -4629,27 +4841,29 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildDataset());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_datasetId).then(unittest.expectAsync1(((api.Dataset response) {
|
| + res
|
| + .get(arg_datasetId)
|
| + .then(unittest.expectAsync1(((api.Dataset response) {
|
| checkDataset(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--getIamPolicy", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets;
|
| var arg_request = buildGetIamPolicyRequest();
|
| @@ -4662,9 +4876,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
|
| + 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;
|
|
|
| @@ -4678,40 +4894,44 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildPolicy());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.getIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) {
|
| + res
|
| + .getIamPolicy(arg_request, arg_resource)
|
| + .then(unittest.expectAsync1(((api.Policy response) {
|
| checkPolicy(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--list", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets;
|
| - var arg_projectId = "foo";
|
| var arg_pageToken = "foo";
|
| var arg_pageSize = 42;
|
| + var arg_projectId = "foo";
|
| mock.register(unittest.expectAsync2((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("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("v1/datasets"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 11),
|
| + unittest.equals("v1/datasets"));
|
| pathOffset += 11;
|
|
|
| var query = (req.url).query;
|
| @@ -4724,30 +4944,38 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["projectId"].first, unittest.equals(arg_projectId));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| -
|
| + unittest.expect(
|
| + queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(core.int.parse(queryMap["pageSize"].first),
|
| + unittest.equals(arg_pageSize));
|
| + unittest.expect(
|
| + queryMap["projectId"].first, unittest.equals(arg_projectId));
|
|
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildListDatasetsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(projectId: arg_projectId, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListDatasetsResponse response) {
|
| + res
|
| + .list(
|
| + pageToken: arg_pageToken,
|
| + pageSize: arg_pageSize,
|
| + projectId: arg_projectId)
|
| + .then(unittest.expectAsync1(((api.ListDatasetsResponse response) {
|
| checkListDatasetsResponse(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--patch", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets;
|
| var arg_request = buildDataset();
|
| @@ -4761,9 +4989,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("v1/datasets/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 12),
|
| + unittest.equals("v1/datasets/"));
|
| pathOffset += 12;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -4779,28 +5009,31 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_updateMask));
|
| -
|
| + unittest.expect(
|
| + queryMap["updateMask"].first, unittest.equals(arg_updateMask));
|
|
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildDataset());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_datasetId, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Dataset response) {
|
| + res
|
| + .patch(arg_request, arg_datasetId, updateMask: arg_updateMask)
|
| + .then(unittest.expectAsync1(((api.Dataset response) {
|
| checkDataset(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--setIamPolicy", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets;
|
| var arg_request = buildSetIamPolicyRequest();
|
| @@ -4813,9 +5046,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
|
| + 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;
|
|
|
| @@ -4829,27 +5064,29 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildPolicy());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.setIamPolicy(arg_request, arg_resource).then(unittest.expectAsync1(((api.Policy response) {
|
| + res
|
| + .setIamPolicy(arg_request, arg_resource)
|
| + .then(unittest.expectAsync1(((api.Policy response) {
|
| checkPolicy(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--testIamPermissions", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets;
|
| var arg_request = buildTestIamPermissionsRequest();
|
| @@ -4862,9 +5099,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
|
| + 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;
|
|
|
| @@ -4878,27 +5117,28 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildTestIamPermissionsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.testIamPermissions(arg_request, arg_resource).then(unittest.expectAsync1(((api.TestIamPermissionsResponse response) {
|
| + res.testIamPermissions(arg_request, arg_resource).then(
|
| + unittest.expectAsync1(((api.TestIamPermissionsResponse response) {
|
| checkTestIamPermissionsResponse(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--undelete", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.DatasetsResourceApi res = new api.GenomicsApi(mock).datasets;
|
| var arg_request = buildUndeleteDatasetRequest();
|
| @@ -4911,16 +5151,20 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("v1/datasets/"));
|
| + 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));
|
| + 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"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 9),
|
| + unittest.equals(":undelete"));
|
| pathOffset += 9;
|
|
|
| var query = (req.url).query;
|
| @@ -4933,31 +5177,31 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "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_request, arg_datasetId).then(unittest.expectAsync1(((api.Dataset response) {
|
| + res
|
| + .undelete(arg_request, arg_datasetId)
|
| + .then(unittest.expectAsync1(((api.Dataset response) {
|
| checkDataset(response);
|
| })));
|
| });
|
| -
|
| });
|
|
|
| -
|
| unittest.group("resource-OperationsResourceApi", () {
|
| unittest.test("method--cancel", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.OperationsResourceApi res = new api.GenomicsApi(mock).operations;
|
| var arg_request = buildCancelOperationRequest();
|
| @@ -4970,9 +5214,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
|
| + 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;
|
|
|
| @@ -4986,27 +5232,29 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildEmpty());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.cancel(arg_request, arg_name).then(unittest.expectAsync1(((api.Empty response) {
|
| + res
|
| + .cancel(arg_request, arg_name)
|
| + .then(unittest.expectAsync1(((api.Empty response) {
|
| checkEmpty(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--get", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.OperationsResourceApi res = new api.GenomicsApi(mock).operations;
|
| var arg_name = "foo";
|
| @@ -5015,9 +5263,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
|
| + 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;
|
|
|
| @@ -5031,16 +5281,17 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| @@ -5051,7 +5302,6 @@ main() {
|
| });
|
|
|
| unittest.test("method--list", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.OperationsResourceApi res = new api.GenomicsApi(mock).operations;
|
| var arg_name = "foo";
|
| @@ -5063,9 +5313,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
|
| + 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;
|
|
|
| @@ -5079,45 +5331,53 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| + unittest.expect(
|
| + queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(core.int.parse(queryMap["pageSize"].first),
|
| + unittest.equals(arg_pageSize));
|
| unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildListOperationsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync1(((api.ListOperationsResponse response) {
|
| + res
|
| + .list(arg_name,
|
| + pageToken: arg_pageToken,
|
| + pageSize: arg_pageSize,
|
| + filter: arg_filter)
|
| + .then(unittest.expectAsync1(((api.ListOperationsResponse response) {
|
| checkListOperationsResponse(response);
|
| })));
|
| });
|
| -
|
| });
|
|
|
| -
|
| unittest.group("resource-ReadgroupsetsResourceApi", () {
|
| unittest.test("method--delete", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets;
|
| + api.ReadgroupsetsResourceApi res =
|
| + new api.GenomicsApi(mock).readgroupsets;
|
| var arg_readGroupSetId = "foo";
|
| mock.register(unittest.expectAsync2((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("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v1/readgroupsets/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 17),
|
| + unittest.equals("v1/readgroupsets/"));
|
| pathOffset += 17;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -5133,29 +5393,32 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildEmpty());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_readGroupSetId).then(unittest.expectAsync1(((api.Empty response) {
|
| + res
|
| + .delete(arg_readGroupSetId)
|
| + .then(unittest.expectAsync1(((api.Empty response) {
|
| checkEmpty(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--export", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets;
|
| + api.ReadgroupsetsResourceApi res =
|
| + new api.GenomicsApi(mock).readgroupsets;
|
| var arg_request = buildExportReadGroupSetRequest();
|
| var arg_readGroupSetId = "foo";
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| @@ -5166,16 +5429,20 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v1/readgroupsets/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 17),
|
| + unittest.equals("v1/readgroupsets/"));
|
| pathOffset += 17;
|
| index = path.indexOf(":export", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + 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"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 7),
|
| + unittest.equals(":export"));
|
| pathOffset += 7;
|
|
|
| var query = (req.url).query;
|
| @@ -5188,38 +5455,43 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.export(arg_request, arg_readGroupSetId).then(unittest.expectAsync1(((api.Operation response) {
|
| + res
|
| + .export(arg_request, arg_readGroupSetId)
|
| + .then(unittest.expectAsync1(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--get", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets;
|
| + api.ReadgroupsetsResourceApi res =
|
| + new api.GenomicsApi(mock).readgroupsets;
|
| var arg_readGroupSetId = "foo";
|
| mock.register(unittest.expectAsync2((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("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v1/readgroupsets/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 17),
|
| + unittest.equals("v1/readgroupsets/"));
|
| pathOffset += 17;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -5235,29 +5507,32 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildReadGroupSet());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_readGroupSetId).then(unittest.expectAsync1(((api.ReadGroupSet response) {
|
| + res
|
| + .get(arg_readGroupSetId)
|
| + .then(unittest.expectAsync1(((api.ReadGroupSet response) {
|
| checkReadGroupSet(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--import", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets;
|
| + api.ReadgroupsetsResourceApi res =
|
| + new api.GenomicsApi(mock).readgroupsets;
|
| var arg_request = buildImportReadGroupSetsRequest();
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.ImportReadGroupSetsRequest.fromJson(json);
|
| @@ -5267,9 +5542,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.equals("v1/readgroupsets:import"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 23),
|
| + unittest.equals("v1/readgroupsets:import"));
|
| pathOffset += 23;
|
|
|
| var query = (req.url).query;
|
| @@ -5282,29 +5559,32 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.import(arg_request).then(unittest.expectAsync1(((api.Operation response) {
|
| + res
|
| + .import(arg_request)
|
| + .then(unittest.expectAsync1(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--patch", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets;
|
| + api.ReadgroupsetsResourceApi res =
|
| + new api.GenomicsApi(mock).readgroupsets;
|
| var arg_request = buildReadGroupSet();
|
| var arg_readGroupSetId = "foo";
|
| var arg_updateMask = "foo";
|
| @@ -5316,9 +5596,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v1/readgroupsets/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 17),
|
| + unittest.equals("v1/readgroupsets/"));
|
| pathOffset += 17;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -5334,30 +5616,34 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_updateMask));
|
| -
|
| + unittest.expect(
|
| + queryMap["updateMask"].first, unittest.equals(arg_updateMask));
|
|
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildReadGroupSet());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_readGroupSetId, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.ReadGroupSet response) {
|
| + res
|
| + .patch(arg_request, arg_readGroupSetId, updateMask: arg_updateMask)
|
| + .then(unittest.expectAsync1(((api.ReadGroupSet response) {
|
| checkReadGroupSet(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--search", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.ReadgroupsetsResourceApi res = new api.GenomicsApi(mock).readgroupsets;
|
| + api.ReadgroupsetsResourceApi res =
|
| + new api.GenomicsApi(mock).readgroupsets;
|
| var arg_request = buildSearchReadGroupSetsRequest();
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.SearchReadGroupSetsRequest.fromJson(json);
|
| @@ -5367,9 +5653,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.equals("v1/readgroupsets/search"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 23),
|
| + unittest.equals("v1/readgroupsets/search"));
|
| pathOffset += 23;
|
|
|
| var query = (req.url).query;
|
| @@ -5382,55 +5670,59 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildSearchReadGroupSetsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.search(arg_request).then(unittest.expectAsync1(((api.SearchReadGroupSetsResponse response) {
|
| + res.search(arg_request).then(
|
| + unittest.expectAsync1(((api.SearchReadGroupSetsResponse response) {
|
| checkSearchReadGroupSetsResponse(response);
|
| })));
|
| });
|
| -
|
| });
|
|
|
| -
|
| unittest.group("resource-ReadgroupsetsCoveragebucketsResourceApi", () {
|
| unittest.test("method--list", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.ReadgroupsetsCoveragebucketsResourceApi res = new api.GenomicsApi(mock).readgroupsets.coveragebuckets;
|
| + api.ReadgroupsetsCoveragebucketsResourceApi res =
|
| + new api.GenomicsApi(mock).readgroupsets.coveragebuckets;
|
| var arg_readGroupSetId = "foo";
|
| - var arg_end = "foo";
|
| - var arg_pageToken = "foo";
|
| - var arg_pageSize = 42;
|
| var arg_start = "foo";
|
| var arg_targetBucketWidth = "foo";
|
| var arg_referenceName = "foo";
|
| + var arg_end = "foo";
|
| + var arg_pageToken = "foo";
|
| + var arg_pageSize = 42;
|
| mock.register(unittest.expectAsync2((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("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v1/readgroupsets/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 17),
|
| + unittest.equals("v1/readgroupsets/"));
|
| pathOffset += 17;
|
| index = path.indexOf("/coveragebuckets", pathOffset);
|
| unittest.expect(index >= 0, unittest.isTrue);
|
| - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_readGroupSetId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 16), unittest.equals("/coveragebuckets"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 16),
|
| + unittest.equals("/coveragebuckets"));
|
| pathOffset += 16;
|
|
|
| var query = (req.url).query;
|
| @@ -5443,37 +5735,48 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["end"].first, unittest.equals(arg_end));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| unittest.expect(queryMap["start"].first, unittest.equals(arg_start));
|
| - unittest.expect(queryMap["targetBucketWidth"].first, unittest.equals(arg_targetBucketWidth));
|
| - unittest.expect(queryMap["referenceName"].first, unittest.equals(arg_referenceName));
|
| -
|
| + unittest.expect(queryMap["targetBucketWidth"].first,
|
| + unittest.equals(arg_targetBucketWidth));
|
| + unittest.expect(queryMap["referenceName"].first,
|
| + unittest.equals(arg_referenceName));
|
| + unittest.expect(queryMap["end"].first, unittest.equals(arg_end));
|
| + unittest.expect(
|
| + queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(core.int.parse(queryMap["pageSize"].first),
|
| + unittest.equals(arg_pageSize));
|
|
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildListCoverageBucketsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_readGroupSetId, end: arg_end, pageToken: arg_pageToken, pageSize: arg_pageSize, start: arg_start, targetBucketWidth: arg_targetBucketWidth, referenceName: arg_referenceName).then(unittest.expectAsync1(((api.ListCoverageBucketsResponse response) {
|
| + res
|
| + .list(arg_readGroupSetId,
|
| + start: arg_start,
|
| + targetBucketWidth: arg_targetBucketWidth,
|
| + referenceName: arg_referenceName,
|
| + end: arg_end,
|
| + pageToken: arg_pageToken,
|
| + pageSize: arg_pageSize)
|
| + .then(unittest
|
| + .expectAsync1(((api.ListCoverageBucketsResponse response) {
|
| checkListCoverageBucketsResponse(response);
|
| })));
|
| });
|
| -
|
| });
|
|
|
| -
|
| unittest.group("resource-ReadsResourceApi", () {
|
| unittest.test("method--search", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.ReadsResourceApi res = new api.GenomicsApi(mock).reads;
|
| var arg_request = buildSearchReadsRequest();
|
| @@ -5485,9 +5788,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("v1/reads/search"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 15),
|
| + unittest.equals("v1/reads/search"));
|
| pathOffset += 15;
|
|
|
| var query = (req.url).query;
|
| @@ -5500,31 +5805,31 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildSearchReadsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.search(arg_request).then(unittest.expectAsync1(((api.SearchReadsResponse response) {
|
| + res
|
| + .search(arg_request)
|
| + .then(unittest.expectAsync1(((api.SearchReadsResponse response) {
|
| checkSearchReadsResponse(response);
|
| })));
|
| });
|
| -
|
| });
|
|
|
| -
|
| unittest.group("resource-ReferencesResourceApi", () {
|
| unittest.test("method--get", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.ReferencesResourceApi res = new api.GenomicsApi(mock).references;
|
| var arg_referenceId = "foo";
|
| @@ -5533,9 +5838,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("v1/references/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 14),
|
| + unittest.equals("v1/references/"));
|
| pathOffset += 14;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -5551,27 +5858,29 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildReference());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_referenceId).then(unittest.expectAsync1(((api.Reference response) {
|
| + res
|
| + .get(arg_referenceId)
|
| + .then(unittest.expectAsync1(((api.Reference response) {
|
| checkReference(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--search", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.ReferencesResourceApi res = new api.GenomicsApi(mock).references;
|
| var arg_request = buildSearchReferencesRequest();
|
| @@ -5583,9 +5892,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 20), unittest.equals("v1/references/search"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 20),
|
| + unittest.equals("v1/references/search"));
|
| pathOffset += 20;
|
|
|
| var query = (req.url).query;
|
| @@ -5598,53 +5909,58 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildSearchReferencesResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.search(arg_request).then(unittest.expectAsync1(((api.SearchReferencesResponse response) {
|
| + res
|
| + .search(arg_request)
|
| + .then(unittest.expectAsync1(((api.SearchReferencesResponse response) {
|
| checkSearchReferencesResponse(response);
|
| })));
|
| });
|
| -
|
| });
|
|
|
| -
|
| unittest.group("resource-ReferencesBasesResourceApi", () {
|
| unittest.test("method--list", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.ReferencesBasesResourceApi res = new api.GenomicsApi(mock).references.bases;
|
| + api.ReferencesBasesResourceApi res =
|
| + new api.GenomicsApi(mock).references.bases;
|
| var arg_referenceId = "foo";
|
| - var arg_pageSize = 42;
|
| var arg_start = "foo";
|
| var arg_end = "foo";
|
| var arg_pageToken = "foo";
|
| + var arg_pageSize = 42;
|
| mock.register(unittest.expectAsync2((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("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("v1/references/"));
|
| + 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));
|
| + subPart =
|
| + core.Uri.decodeQueryComponent(path.substring(pathOffset, index));
|
| pathOffset = index;
|
| unittest.expect(subPart, unittest.equals("$arg_referenceId"));
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 6), unittest.equals("/bases"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 6),
|
| + unittest.equals("/bases"));
|
| pathOffset += 6;
|
|
|
| var query = (req.url).query;
|
| @@ -5657,46 +5973,55 @@ main() {
|
| 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]));
|
| + 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["start"].first, unittest.equals(arg_start));
|
| unittest.expect(queryMap["end"].first, unittest.equals(arg_end));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| -
|
| + unittest.expect(
|
| + queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(core.int.parse(queryMap["pageSize"].first),
|
| + unittest.equals(arg_pageSize));
|
|
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildListBasesResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_referenceId, pageSize: arg_pageSize, start: arg_start, end: arg_end, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListBasesResponse response) {
|
| + res
|
| + .list(arg_referenceId,
|
| + start: arg_start,
|
| + end: arg_end,
|
| + pageToken: arg_pageToken,
|
| + pageSize: arg_pageSize)
|
| + .then(unittest.expectAsync1(((api.ListBasesResponse response) {
|
| checkListBasesResponse(response);
|
| })));
|
| });
|
| -
|
| });
|
|
|
| -
|
| unittest.group("resource-ReferencesetsResourceApi", () {
|
| unittest.test("method--get", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.ReferencesetsResourceApi res = new api.GenomicsApi(mock).referencesets;
|
| + api.ReferencesetsResourceApi res =
|
| + new api.GenomicsApi(mock).referencesets;
|
| var arg_referenceSetId = "foo";
|
| mock.register(unittest.expectAsync2((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("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v1/referencesets/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 17),
|
| + unittest.equals("v1/referencesets/"));
|
| pathOffset += 17;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -5712,29 +6037,32 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildReferenceSet());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_referenceSetId).then(unittest.expectAsync1(((api.ReferenceSet response) {
|
| + res
|
| + .get(arg_referenceSetId)
|
| + .then(unittest.expectAsync1(((api.ReferenceSet response) {
|
| checkReferenceSet(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--search", () {
|
| -
|
| var mock = new HttpServerMock();
|
| - api.ReferencesetsResourceApi res = new api.GenomicsApi(mock).referencesets;
|
| + api.ReferencesetsResourceApi res =
|
| + new api.GenomicsApi(mock).referencesets;
|
| var arg_request = buildSearchReferenceSetsRequest();
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var obj = new api.SearchReferenceSetsRequest.fromJson(json);
|
| @@ -5744,9 +6072,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 23), unittest.equals("v1/referencesets/search"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 23),
|
| + unittest.equals("v1/referencesets/search"));
|
| pathOffset += 23;
|
|
|
| var query = (req.url).query;
|
| @@ -5759,31 +6089,30 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildSearchReferenceSetsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.search(arg_request).then(unittest.expectAsync1(((api.SearchReferenceSetsResponse response) {
|
| + res.search(arg_request).then(
|
| + unittest.expectAsync1(((api.SearchReferenceSetsResponse response) {
|
| checkSearchReferenceSetsResponse(response);
|
| })));
|
| });
|
| -
|
| });
|
|
|
| -
|
| unittest.group("resource-VariantsResourceApi", () {
|
| unittest.test("method--create", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.VariantsResourceApi res = new api.GenomicsApi(mock).variants;
|
| var arg_request = buildVariant();
|
| @@ -5795,9 +6124,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.equals("v1/variants"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 11),
|
| + unittest.equals("v1/variants"));
|
| pathOffset += 11;
|
|
|
| var query = (req.url).query;
|
| @@ -5810,27 +6141,29 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildVariant());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.create(arg_request).then(unittest.expectAsync1(((api.Variant response) {
|
| + res
|
| + .create(arg_request)
|
| + .then(unittest.expectAsync1(((api.Variant response) {
|
| checkVariant(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--delete", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.VariantsResourceApi res = new api.GenomicsApi(mock).variants;
|
| var arg_variantId = "foo";
|
| @@ -5839,9 +6172,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("v1/variants/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 12),
|
| + unittest.equals("v1/variants/"));
|
| pathOffset += 12;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -5857,27 +6192,29 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildEmpty());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_variantId).then(unittest.expectAsync1(((api.Empty response) {
|
| + res
|
| + .delete(arg_variantId)
|
| + .then(unittest.expectAsync1(((api.Empty response) {
|
| checkEmpty(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--get", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.VariantsResourceApi res = new api.GenomicsApi(mock).variants;
|
| var arg_variantId = "foo";
|
| @@ -5886,9 +6223,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("v1/variants/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 12),
|
| + unittest.equals("v1/variants/"));
|
| pathOffset += 12;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -5904,27 +6243,29 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildVariant());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_variantId).then(unittest.expectAsync1(((api.Variant response) {
|
| + res
|
| + .get(arg_variantId)
|
| + .then(unittest.expectAsync1(((api.Variant response) {
|
| checkVariant(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--import", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.VariantsResourceApi res = new api.GenomicsApi(mock).variants;
|
| var arg_request = buildImportVariantsRequest();
|
| @@ -5936,9 +6277,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("v1/variants:import"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18),
|
| + unittest.equals("v1/variants:import"));
|
| pathOffset += 18;
|
|
|
| var query = (req.url).query;
|
| @@ -5951,27 +6294,29 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.import(arg_request).then(unittest.expectAsync1(((api.Operation response) {
|
| + res
|
| + .import(arg_request)
|
| + .then(unittest.expectAsync1(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--merge", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.VariantsResourceApi res = new api.GenomicsApi(mock).variants;
|
| var arg_request = buildMergeVariantsRequest();
|
| @@ -5983,9 +6328,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 17), unittest.equals("v1/variants:merge"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 17),
|
| + unittest.equals("v1/variants:merge"));
|
| pathOffset += 17;
|
|
|
| var query = (req.url).query;
|
| @@ -5998,16 +6345,17 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildEmpty());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| @@ -6018,7 +6366,6 @@ main() {
|
| });
|
|
|
| unittest.test("method--patch", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.VariantsResourceApi res = new api.GenomicsApi(mock).variants;
|
| var arg_request = buildVariant();
|
| @@ -6032,9 +6379,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.equals("v1/variants/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 12),
|
| + unittest.equals("v1/variants/"));
|
| pathOffset += 12;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -6050,28 +6399,31 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_updateMask));
|
| -
|
| + unittest.expect(
|
| + queryMap["updateMask"].first, unittest.equals(arg_updateMask));
|
|
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildVariant());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_variantId, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Variant response) {
|
| + res
|
| + .patch(arg_request, arg_variantId, updateMask: arg_updateMask)
|
| + .then(unittest.expectAsync1(((api.Variant response) {
|
| checkVariant(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--search", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.VariantsResourceApi res = new api.GenomicsApi(mock).variants;
|
| var arg_request = buildSearchVariantsRequest();
|
| @@ -6083,9 +6435,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 18), unittest.equals("v1/variants/search"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 18),
|
| + unittest.equals("v1/variants/search"));
|
| pathOffset += 18;
|
|
|
| var query = (req.url).query;
|
| @@ -6098,31 +6452,31 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildSearchVariantsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.search(arg_request).then(unittest.expectAsync1(((api.SearchVariantsResponse response) {
|
| + res
|
| + .search(arg_request)
|
| + .then(unittest.expectAsync1(((api.SearchVariantsResponse response) {
|
| checkSearchVariantsResponse(response);
|
| })));
|
| });
|
| -
|
| });
|
|
|
| -
|
| unittest.group("resource-VariantsetsResourceApi", () {
|
| unittest.test("method--create", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets;
|
| var arg_request = buildVariantSet();
|
| @@ -6134,9 +6488,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 14), unittest.equals("v1/variantsets"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 14),
|
| + unittest.equals("v1/variantsets"));
|
| pathOffset += 14;
|
|
|
| var query = (req.url).query;
|
| @@ -6149,27 +6505,29 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildVariantSet());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.create(arg_request).then(unittest.expectAsync1(((api.VariantSet response) {
|
| + res
|
| + .create(arg_request)
|
| + .then(unittest.expectAsync1(((api.VariantSet response) {
|
| checkVariantSet(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--delete", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets;
|
| var arg_variantSetId = "foo";
|
| @@ -6178,9 +6536,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("v1/variantsets/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 15),
|
| + unittest.equals("v1/variantsets/"));
|
| pathOffset += 15;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -6196,27 +6556,29 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildEmpty());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.delete(arg_variantSetId).then(unittest.expectAsync1(((api.Empty response) {
|
| + res
|
| + .delete(arg_variantSetId)
|
| + .then(unittest.expectAsync1(((api.Empty response) {
|
| checkEmpty(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--export", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets;
|
| var arg_request = buildExportVariantSetRequest();
|
| @@ -6229,16 +6591,20 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("v1/variantsets/"));
|
| + 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));
|
| + 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"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 7),
|
| + unittest.equals(":export"));
|
| pathOffset += 7;
|
|
|
| var query = (req.url).query;
|
| @@ -6251,27 +6617,29 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildOperation());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.export(arg_request, arg_variantSetId).then(unittest.expectAsync1(((api.Operation response) {
|
| + res
|
| + .export(arg_request, arg_variantSetId)
|
| + .then(unittest.expectAsync1(((api.Operation response) {
|
| checkOperation(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--get", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets;
|
| var arg_variantSetId = "foo";
|
| @@ -6280,9 +6648,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("v1/variantsets/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 15),
|
| + unittest.equals("v1/variantsets/"));
|
| pathOffset += 15;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -6298,27 +6668,29 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildVariantSet());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.get(arg_variantSetId).then(unittest.expectAsync1(((api.VariantSet response) {
|
| + res
|
| + .get(arg_variantSetId)
|
| + .then(unittest.expectAsync1(((api.VariantSet response) {
|
| checkVariantSet(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--patch", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets;
|
| var arg_request = buildVariantSet();
|
| @@ -6332,9 +6704,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 15), unittest.equals("v1/variantsets/"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 15),
|
| + unittest.equals("v1/variantsets/"));
|
| pathOffset += 15;
|
| subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
|
| pathOffset = path.length;
|
| @@ -6350,28 +6724,31 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_updateMask));
|
| -
|
| + unittest.expect(
|
| + queryMap["updateMask"].first, unittest.equals(arg_updateMask));
|
|
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildVariantSet());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.patch(arg_request, arg_variantSetId, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.VariantSet response) {
|
| + res
|
| + .patch(arg_request, arg_variantSetId, updateMask: arg_updateMask)
|
| + .then(unittest.expectAsync1(((api.VariantSet response) {
|
| checkVariantSet(response);
|
| })));
|
| });
|
|
|
| unittest.test("method--search", () {
|
| -
|
| var mock = new HttpServerMock();
|
| api.VariantsetsResourceApi res = new api.GenomicsApi(mock).variantsets;
|
| var arg_request = buildSearchVariantSetsRequest();
|
| @@ -6383,9 +6760,11 @@ main() {
|
| var pathOffset = 0;
|
| var index;
|
| var subPart;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| + unittest.expect(
|
| + path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 21), unittest.equals("v1/variantsets/search"));
|
| + unittest.expect(path.substring(pathOffset, pathOffset + 21),
|
| + unittest.equals("v1/variantsets/search"));
|
| pathOffset += 21;
|
|
|
| var query = (req.url).query;
|
| @@ -6398,27 +6777,25 @@ main() {
|
| 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]));
|
| + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
|
| + core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
|
|
| -
|
| var h = {
|
| - "content-type" : "application/json; charset=utf-8",
|
| + "content-type": "application/json; charset=utf-8",
|
| };
|
| var resp = convert.JSON.encode(buildSearchVariantSetsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.search(arg_request).then(unittest.expectAsync1(((api.SearchVariantSetsResponse response) {
|
| + res.search(arg_request).then(
|
| + unittest.expectAsync1(((api.SearchVariantSetsResponse response) {
|
| checkSearchVariantSetsResponse(response);
|
| })));
|
| });
|
| -
|
| });
|
| -
|
| -
|
| }
|
| -
|
|
|