| Index: generated/googleapis_beta/test/dlp/v2beta1_test.dart
|
| diff --git a/generated/googleapis_beta/test/dlp/v2beta1_test.dart b/generated/googleapis_beta/test/dlp/v2beta1_test.dart
|
| index c29b50edca0c016ef2bb3e61e09f5496d17c71ed..5389ae5726dcaa7117151dc56d36421e9294457b 100644
|
| --- a/generated/googleapis_beta/test/dlp/v2beta1_test.dart
|
| +++ b/generated/googleapis_beta/test/dlp/v2beta1_test.dart
|
| @@ -192,14 +192,14 @@ checkDatastoreKey(api.DatastoreKey o) {
|
| buildCounterDatastoreKey--;
|
| }
|
|
|
| -buildUnnamed3326() {
|
| +buildUnnamed3332() {
|
| var o = new core.List<api.Projection>();
|
| o.add(buildProjection());
|
| o.add(buildProjection());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3326(core.List<api.Projection> o) {
|
| +checkUnnamed3332(core.List<api.Projection> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkProjection(o[0]);
|
| checkProjection(o[1]);
|
| @@ -212,7 +212,7 @@ buildDatastoreOptions() {
|
| if (buildCounterDatastoreOptions < 3) {
|
| o.kind = buildKindExpression();
|
| o.partitionId = buildPartitionId();
|
| - o.projection = buildUnnamed3326();
|
| + o.projection = buildUnnamed3332();
|
| }
|
| buildCounterDatastoreOptions--;
|
| return o;
|
| @@ -223,7 +223,7 @@ checkDatastoreOptions(api.DatastoreOptions o) {
|
| if (buildCounterDatastoreOptions < 3) {
|
| checkKindExpression(o.kind);
|
| checkPartitionId(o.partitionId);
|
| - checkUnnamed3326(o.projection);
|
| + checkUnnamed3332(o.projection);
|
| }
|
| buildCounterDatastoreOptions--;
|
| }
|
| @@ -354,14 +354,14 @@ checkInfoType(api.InfoType o) {
|
| buildCounterInfoType--;
|
| }
|
|
|
| -buildUnnamed3327() {
|
| +buildUnnamed3333() {
|
| var o = new core.List<api.CategoryDescription>();
|
| o.add(buildCategoryDescription());
|
| o.add(buildCategoryDescription());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3327(core.List<api.CategoryDescription> o) {
|
| +checkUnnamed3333(core.List<api.CategoryDescription> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCategoryDescription(o[0]);
|
| checkCategoryDescription(o[1]);
|
| @@ -372,7 +372,7 @@ buildInfoTypeDescription() {
|
| var o = new api.InfoTypeDescription();
|
| buildCounterInfoTypeDescription++;
|
| if (buildCounterInfoTypeDescription < 3) {
|
| - o.categories = buildUnnamed3327();
|
| + o.categories = buildUnnamed3333();
|
| o.displayName = "foo";
|
| o.name = "foo";
|
| }
|
| @@ -383,21 +383,21 @@ buildInfoTypeDescription() {
|
| checkInfoTypeDescription(api.InfoTypeDescription o) {
|
| buildCounterInfoTypeDescription++;
|
| if (buildCounterInfoTypeDescription < 3) {
|
| - checkUnnamed3327(o.categories);
|
| + checkUnnamed3333(o.categories);
|
| unittest.expect(o.displayName, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| }
|
| buildCounterInfoTypeDescription--;
|
| }
|
|
|
| -buildUnnamed3328() {
|
| +buildUnnamed3334() {
|
| var o = new core.List<api.InfoType>();
|
| o.add(buildInfoType());
|
| o.add(buildInfoType());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3328(core.List<api.InfoType> o) {
|
| +checkUnnamed3334(core.List<api.InfoType> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkInfoType(o[0]);
|
| checkInfoType(o[1]);
|
| @@ -410,7 +410,7 @@ buildInspectConfig() {
|
| if (buildCounterInspectConfig < 3) {
|
| o.excludeTypes = true;
|
| o.includeQuote = true;
|
| - o.infoTypes = buildUnnamed3328();
|
| + o.infoTypes = buildUnnamed3334();
|
| o.maxFindings = 42;
|
| o.minLikelihood = "foo";
|
| }
|
| @@ -423,21 +423,21 @@ checkInspectConfig(api.InspectConfig o) {
|
| if (buildCounterInspectConfig < 3) {
|
| unittest.expect(o.excludeTypes, unittest.isTrue);
|
| unittest.expect(o.includeQuote, unittest.isTrue);
|
| - checkUnnamed3328(o.infoTypes);
|
| + checkUnnamed3334(o.infoTypes);
|
| unittest.expect(o.maxFindings, unittest.equals(42));
|
| unittest.expect(o.minLikelihood, unittest.equals('foo'));
|
| }
|
| buildCounterInspectConfig--;
|
| }
|
|
|
| -buildUnnamed3329() {
|
| +buildUnnamed3335() {
|
| var o = new core.List<api.ContentItem>();
|
| o.add(buildContentItem());
|
| o.add(buildContentItem());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3329(core.List<api.ContentItem> o) {
|
| +checkUnnamed3335(core.List<api.ContentItem> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkContentItem(o[0]);
|
| checkContentItem(o[1]);
|
| @@ -449,7 +449,7 @@ buildInspectContentRequest() {
|
| buildCounterInspectContentRequest++;
|
| if (buildCounterInspectContentRequest < 3) {
|
| o.inspectConfig = buildInspectConfig();
|
| - o.items = buildUnnamed3329();
|
| + o.items = buildUnnamed3335();
|
| }
|
| buildCounterInspectContentRequest--;
|
| return o;
|
| @@ -459,19 +459,19 @@ checkInspectContentRequest(api.InspectContentRequest o) {
|
| buildCounterInspectContentRequest++;
|
| if (buildCounterInspectContentRequest < 3) {
|
| checkInspectConfig(o.inspectConfig);
|
| - checkUnnamed3329(o.items);
|
| + checkUnnamed3335(o.items);
|
| }
|
| buildCounterInspectContentRequest--;
|
| }
|
|
|
| -buildUnnamed3330() {
|
| +buildUnnamed3336() {
|
| var o = new core.List<api.InspectResult>();
|
| o.add(buildInspectResult());
|
| o.add(buildInspectResult());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3330(core.List<api.InspectResult> o) {
|
| +checkUnnamed3336(core.List<api.InspectResult> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkInspectResult(o[0]);
|
| checkInspectResult(o[1]);
|
| @@ -482,7 +482,7 @@ buildInspectContentResponse() {
|
| var o = new api.InspectContentResponse();
|
| buildCounterInspectContentResponse++;
|
| if (buildCounterInspectContentResponse < 3) {
|
| - o.results = buildUnnamed3330();
|
| + o.results = buildUnnamed3336();
|
| }
|
| buildCounterInspectContentResponse--;
|
| return o;
|
| @@ -491,19 +491,19 @@ buildInspectContentResponse() {
|
| checkInspectContentResponse(api.InspectContentResponse o) {
|
| buildCounterInspectContentResponse++;
|
| if (buildCounterInspectContentResponse < 3) {
|
| - checkUnnamed3330(o.results);
|
| + checkUnnamed3336(o.results);
|
| }
|
| buildCounterInspectContentResponse--;
|
| }
|
|
|
| -buildUnnamed3331() {
|
| +buildUnnamed3337() {
|
| var o = new core.List<api.Finding>();
|
| o.add(buildFinding());
|
| o.add(buildFinding());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3331(core.List<api.Finding> o) {
|
| +checkUnnamed3337(core.List<api.Finding> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkFinding(o[0]);
|
| checkFinding(o[1]);
|
| @@ -514,7 +514,7 @@ buildInspectResult() {
|
| var o = new api.InspectResult();
|
| buildCounterInspectResult++;
|
| if (buildCounterInspectResult < 3) {
|
| - o.findings = buildUnnamed3331();
|
| + o.findings = buildUnnamed3337();
|
| o.findingsTruncated = true;
|
| }
|
| buildCounterInspectResult--;
|
| @@ -524,20 +524,20 @@ buildInspectResult() {
|
| checkInspectResult(api.InspectResult o) {
|
| buildCounterInspectResult++;
|
| if (buildCounterInspectResult < 3) {
|
| - checkUnnamed3331(o.findings);
|
| + checkUnnamed3337(o.findings);
|
| unittest.expect(o.findingsTruncated, unittest.isTrue);
|
| }
|
| buildCounterInspectResult--;
|
| }
|
|
|
| -buildUnnamed3332() {
|
| +buildUnnamed3338() {
|
| var o = new core.List<api.PathElement>();
|
| o.add(buildPathElement());
|
| o.add(buildPathElement());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3332(core.List<api.PathElement> o) {
|
| +checkUnnamed3338(core.List<api.PathElement> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkPathElement(o[0]);
|
| checkPathElement(o[1]);
|
| @@ -549,7 +549,7 @@ buildKey() {
|
| buildCounterKey++;
|
| if (buildCounterKey < 3) {
|
| o.partitionId = buildPartitionId();
|
| - o.path = buildUnnamed3332();
|
| + o.path = buildUnnamed3338();
|
| }
|
| buildCounterKey--;
|
| return o;
|
| @@ -559,7 +559,7 @@ checkKey(api.Key o) {
|
| buildCounterKey++;
|
| if (buildCounterKey < 3) {
|
| checkPartitionId(o.partitionId);
|
| - checkUnnamed3332(o.path);
|
| + checkUnnamed3338(o.path);
|
| }
|
| buildCounterKey--;
|
| }
|
| @@ -583,14 +583,14 @@ checkKindExpression(api.KindExpression o) {
|
| buildCounterKindExpression--;
|
| }
|
|
|
| -buildUnnamed3333() {
|
| +buildUnnamed3339() {
|
| var o = new core.List<api.InfoTypeDescription>();
|
| o.add(buildInfoTypeDescription());
|
| o.add(buildInfoTypeDescription());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3333(core.List<api.InfoTypeDescription> o) {
|
| +checkUnnamed3339(core.List<api.InfoTypeDescription> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkInfoTypeDescription(o[0]);
|
| checkInfoTypeDescription(o[1]);
|
| @@ -601,7 +601,7 @@ buildListInfoTypesResponse() {
|
| var o = new api.ListInfoTypesResponse();
|
| buildCounterListInfoTypesResponse++;
|
| if (buildCounterListInfoTypesResponse < 3) {
|
| - o.infoTypes = buildUnnamed3333();
|
| + o.infoTypes = buildUnnamed3339();
|
| }
|
| buildCounterListInfoTypesResponse--;
|
| return o;
|
| @@ -610,7 +610,7 @@ buildListInfoTypesResponse() {
|
| checkListInfoTypesResponse(api.ListInfoTypesResponse o) {
|
| buildCounterListInfoTypesResponse++;
|
| if (buildCounterListInfoTypesResponse < 3) {
|
| - checkUnnamed3333(o.infoTypes);
|
| + checkUnnamed3339(o.infoTypes);
|
| }
|
| buildCounterListInfoTypesResponse--;
|
| }
|
| @@ -636,14 +636,14 @@ checkListInspectFindingsResponse(api.ListInspectFindingsResponse o) {
|
| buildCounterListInspectFindingsResponse--;
|
| }
|
|
|
| -buildUnnamed3334() {
|
| +buildUnnamed3340() {
|
| var o = new core.List<api.Operation>();
|
| o.add(buildOperation());
|
| o.add(buildOperation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3334(core.List<api.Operation> o) {
|
| +checkUnnamed3340(core.List<api.Operation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperation(o[0]);
|
| checkOperation(o[1]);
|
| @@ -655,7 +655,7 @@ buildListOperationsResponse() {
|
| buildCounterListOperationsResponse++;
|
| if (buildCounterListOperationsResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.operations = buildUnnamed3334();
|
| + o.operations = buildUnnamed3340();
|
| }
|
| buildCounterListOperationsResponse--;
|
| return o;
|
| @@ -665,19 +665,19 @@ checkListOperationsResponse(api.ListOperationsResponse o) {
|
| buildCounterListOperationsResponse++;
|
| if (buildCounterListOperationsResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed3334(o.operations);
|
| + checkUnnamed3340(o.operations);
|
| }
|
| buildCounterListOperationsResponse--;
|
| }
|
|
|
| -buildUnnamed3335() {
|
| +buildUnnamed3341() {
|
| var o = new core.List<api.CategoryDescription>();
|
| o.add(buildCategoryDescription());
|
| o.add(buildCategoryDescription());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3335(core.List<api.CategoryDescription> o) {
|
| +checkUnnamed3341(core.List<api.CategoryDescription> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCategoryDescription(o[0]);
|
| checkCategoryDescription(o[1]);
|
| @@ -688,7 +688,7 @@ buildListRootCategoriesResponse() {
|
| var o = new api.ListRootCategoriesResponse();
|
| buildCounterListRootCategoriesResponse++;
|
| if (buildCounterListRootCategoriesResponse < 3) {
|
| - o.categories = buildUnnamed3335();
|
| + o.categories = buildUnnamed3341();
|
| }
|
| buildCounterListRootCategoriesResponse--;
|
| return o;
|
| @@ -697,19 +697,19 @@ buildListRootCategoriesResponse() {
|
| checkListRootCategoriesResponse(api.ListRootCategoriesResponse o) {
|
| buildCounterListRootCategoriesResponse++;
|
| if (buildCounterListRootCategoriesResponse < 3) {
|
| - checkUnnamed3335(o.categories);
|
| + checkUnnamed3341(o.categories);
|
| }
|
| buildCounterListRootCategoriesResponse--;
|
| }
|
|
|
| -buildUnnamed3336() {
|
| +buildUnnamed3342() {
|
| var o = new core.List<api.ImageLocation>();
|
| o.add(buildImageLocation());
|
| o.add(buildImageLocation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3336(core.List<api.ImageLocation> o) {
|
| +checkUnnamed3342(core.List<api.ImageLocation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkImageLocation(o[0]);
|
| checkImageLocation(o[1]);
|
| @@ -723,7 +723,7 @@ buildLocation() {
|
| o.byteRange = buildRange();
|
| o.codepointRange = buildRange();
|
| o.fieldId = buildFieldId();
|
| - o.imageBoxes = buildUnnamed3336();
|
| + o.imageBoxes = buildUnnamed3342();
|
| o.recordKey = buildRecordKey();
|
| }
|
| buildCounterLocation--;
|
| @@ -736,33 +736,33 @@ checkLocation(api.Location o) {
|
| checkRange(o.byteRange);
|
| checkRange(o.codepointRange);
|
| checkFieldId(o.fieldId);
|
| - checkUnnamed3336(o.imageBoxes);
|
| + checkUnnamed3342(o.imageBoxes);
|
| checkRecordKey(o.recordKey);
|
| }
|
| buildCounterLocation--;
|
| }
|
|
|
| -buildUnnamed3337() {
|
| +buildUnnamed3343() {
|
| var o = new core.Map<core.String, core.Object>();
|
| o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| return o;
|
| }
|
|
|
| -checkUnnamed3337(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed3343(core.Map<core.String, core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| var casted1 = (o["x"]) 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["y"]) 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'));
|
| }
|
|
|
| -buildUnnamed3338() {
|
| +buildUnnamed3344() {
|
| var o = new core.Map<core.String, core.Object>();
|
| o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| return o;
|
| }
|
|
|
| -checkUnnamed3338(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed3344(core.Map<core.String, core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo'));
|
| var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLength(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo'));
|
| @@ -775,9 +775,9 @@ buildOperation() {
|
| if (buildCounterOperation < 3) {
|
| o.done = true;
|
| o.error = buildStatus();
|
| - o.metadata = buildUnnamed3337();
|
| + o.metadata = buildUnnamed3343();
|
| o.name = "foo";
|
| - o.response = buildUnnamed3338();
|
| + o.response = buildUnnamed3344();
|
| }
|
| buildCounterOperation--;
|
| return o;
|
| @@ -788,9 +788,9 @@ checkOperation(api.Operation o) {
|
| if (buildCounterOperation < 3) {
|
| unittest.expect(o.done, unittest.isTrue);
|
| checkStatus(o.error);
|
| - checkUnnamed3337(o.metadata);
|
| + checkUnnamed3343(o.metadata);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed3338(o.response);
|
| + checkUnnamed3344(o.response);
|
| }
|
| buildCounterOperation--;
|
| }
|
| @@ -921,27 +921,27 @@ checkRecordKey(api.RecordKey o) {
|
| buildCounterRecordKey--;
|
| }
|
|
|
| -buildUnnamed3339() {
|
| +buildUnnamed3345() {
|
| var o = new core.List<api.ContentItem>();
|
| o.add(buildContentItem());
|
| o.add(buildContentItem());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3339(core.List<api.ContentItem> o) {
|
| +checkUnnamed3345(core.List<api.ContentItem> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkContentItem(o[0]);
|
| checkContentItem(o[1]);
|
| }
|
|
|
| -buildUnnamed3340() {
|
| +buildUnnamed3346() {
|
| var o = new core.List<api.ReplaceConfig>();
|
| o.add(buildReplaceConfig());
|
| o.add(buildReplaceConfig());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3340(core.List<api.ReplaceConfig> o) {
|
| +checkUnnamed3346(core.List<api.ReplaceConfig> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkReplaceConfig(o[0]);
|
| checkReplaceConfig(o[1]);
|
| @@ -953,8 +953,8 @@ buildRedactContentRequest() {
|
| buildCounterRedactContentRequest++;
|
| if (buildCounterRedactContentRequest < 3) {
|
| o.inspectConfig = buildInspectConfig();
|
| - o.items = buildUnnamed3339();
|
| - o.replaceConfigs = buildUnnamed3340();
|
| + o.items = buildUnnamed3345();
|
| + o.replaceConfigs = buildUnnamed3346();
|
| }
|
| buildCounterRedactContentRequest--;
|
| return o;
|
| @@ -964,20 +964,20 @@ checkRedactContentRequest(api.RedactContentRequest o) {
|
| buildCounterRedactContentRequest++;
|
| if (buildCounterRedactContentRequest < 3) {
|
| checkInspectConfig(o.inspectConfig);
|
| - checkUnnamed3339(o.items);
|
| - checkUnnamed3340(o.replaceConfigs);
|
| + checkUnnamed3345(o.items);
|
| + checkUnnamed3346(o.replaceConfigs);
|
| }
|
| buildCounterRedactContentRequest--;
|
| }
|
|
|
| -buildUnnamed3341() {
|
| +buildUnnamed3347() {
|
| var o = new core.List<api.ContentItem>();
|
| o.add(buildContentItem());
|
| o.add(buildContentItem());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3341(core.List<api.ContentItem> o) {
|
| +checkUnnamed3347(core.List<api.ContentItem> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkContentItem(o[0]);
|
| checkContentItem(o[1]);
|
| @@ -988,7 +988,7 @@ buildRedactContentResponse() {
|
| var o = new api.RedactContentResponse();
|
| buildCounterRedactContentResponse++;
|
| if (buildCounterRedactContentResponse < 3) {
|
| - o.items = buildUnnamed3341();
|
| + o.items = buildUnnamed3347();
|
| }
|
| buildCounterRedactContentResponse--;
|
| return o;
|
| @@ -997,7 +997,7 @@ buildRedactContentResponse() {
|
| checkRedactContentResponse(api.RedactContentResponse o) {
|
| buildCounterRedactContentResponse++;
|
| if (buildCounterRedactContentResponse < 3) {
|
| - checkUnnamed3341(o.items);
|
| + checkUnnamed3347(o.items);
|
| }
|
| buildCounterRedactContentResponse--;
|
| }
|
| @@ -1023,30 +1023,30 @@ checkReplaceConfig(api.ReplaceConfig o) {
|
| buildCounterReplaceConfig--;
|
| }
|
|
|
| -buildUnnamed3342() {
|
| +buildUnnamed3348() {
|
| var o = new core.Map<core.String, core.Object>();
|
| o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| return o;
|
| }
|
|
|
| -checkUnnamed3342(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed3348(core.Map<core.String, core.Object> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.expect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"], unittest.equals('foo'));
|
| var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLength(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.expect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed3343() {
|
| +buildUnnamed3349() {
|
| var o = new core.List<core.Map<core.String, core.Object>>();
|
| - o.add(buildUnnamed3342());
|
| - o.add(buildUnnamed3342());
|
| + o.add(buildUnnamed3348());
|
| + o.add(buildUnnamed3348());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3343(core.List<core.Map<core.String, core.Object>> o) {
|
| +checkUnnamed3349(core.List<core.Map<core.String, core.Object>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed3342(o[0]);
|
| - checkUnnamed3342(o[1]);
|
| + checkUnnamed3348(o[0]);
|
| + checkUnnamed3348(o[1]);
|
| }
|
|
|
| core.int buildCounterStatus = 0;
|
| @@ -1055,7 +1055,7 @@ buildStatus() {
|
| buildCounterStatus++;
|
| if (buildCounterStatus < 3) {
|
| o.code = 42;
|
| - o.details = buildUnnamed3343();
|
| + o.details = buildUnnamed3349();
|
| o.message = "foo";
|
| }
|
| buildCounterStatus--;
|
| @@ -1066,7 +1066,7 @@ checkStatus(api.Status o) {
|
| buildCounterStatus++;
|
| if (buildCounterStatus < 3) {
|
| unittest.expect(o.code, unittest.equals(42));
|
| - checkUnnamed3343(o.details);
|
| + checkUnnamed3349(o.details);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| buildCounterStatus--;
|
| @@ -1727,9 +1727,9 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.InspectOperationsResourceApi res = new api.DlpApi(mock).inspect.operations;
|
| var arg_name = "foo";
|
| - var arg_pageSize = 42;
|
| var arg_filter = "foo";
|
| var arg_pageToken = "foo";
|
| + var arg_pageSize = 42;
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -1757,9 +1757,9 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| + unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
|
|
|
|
| var h = {
|
| @@ -1768,7 +1768,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListOperationsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response) {
|
| + res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListOperationsResponse response) {
|
| checkListOperationsResponse(response);
|
| })));
|
| });
|
|
|