| Index: generated/googleapis/test/cloudbuild/v1_test.dart
|
| diff --git a/generated/googleapis/test/cloudbuild/v1_test.dart b/generated/googleapis/test/cloudbuild/v1_test.dart
|
| index 5565f6b85242d673e7c765af0a01283489b6cc37..80acb4dcc975c1ec0851f4f783ee3ae5855b401c 100644
|
| --- a/generated/googleapis/test/cloudbuild/v1_test.dart
|
| +++ b/generated/googleapis/test/cloudbuild/v1_test.dart
|
| @@ -51,66 +51,66 @@ http.StreamedResponse stringResponse(
|
| return new http.StreamedResponse(stream, status, headers: headers);
|
| }
|
|
|
| -buildUnnamed1402() {
|
| +buildUnnamed1419() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1402(core.List<core.String> o) {
|
| +checkUnnamed1419(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'));
|
| }
|
|
|
| -buildUnnamed1403() {
|
| +buildUnnamed1420() {
|
| var o = new core.List<api.Secret>();
|
| o.add(buildSecret());
|
| o.add(buildSecret());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1403(core.List<api.Secret> o) {
|
| +checkUnnamed1420(core.List<api.Secret> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkSecret(o[0]);
|
| checkSecret(o[1]);
|
| }
|
|
|
| -buildUnnamed1404() {
|
| +buildUnnamed1421() {
|
| var o = new core.List<api.BuildStep>();
|
| o.add(buildBuildStep());
|
| o.add(buildBuildStep());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1404(core.List<api.BuildStep> o) {
|
| +checkUnnamed1421(core.List<api.BuildStep> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkBuildStep(o[0]);
|
| checkBuildStep(o[1]);
|
| }
|
|
|
| -buildUnnamed1405() {
|
| +buildUnnamed1422() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed1405(core.Map<core.String, core.String> o) {
|
| +checkUnnamed1422(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'));
|
| }
|
|
|
| -buildUnnamed1406() {
|
| +buildUnnamed1423() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1406(core.List<core.String> o) {
|
| +checkUnnamed1423(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'));
|
| @@ -125,21 +125,21 @@ buildBuild() {
|
| o.createTime = "foo";
|
| o.finishTime = "foo";
|
| o.id = "foo";
|
| - o.images = buildUnnamed1402();
|
| + o.images = buildUnnamed1419();
|
| o.logUrl = "foo";
|
| o.logsBucket = "foo";
|
| o.options = buildBuildOptions();
|
| o.projectId = "foo";
|
| o.results = buildResults();
|
| - o.secrets = buildUnnamed1403();
|
| + o.secrets = buildUnnamed1420();
|
| o.source = buildSource();
|
| o.sourceProvenance = buildSourceProvenance();
|
| o.startTime = "foo";
|
| o.status = "foo";
|
| o.statusDetail = "foo";
|
| - o.steps = buildUnnamed1404();
|
| - o.substitutions = buildUnnamed1405();
|
| - o.tags = buildUnnamed1406();
|
| + o.steps = buildUnnamed1421();
|
| + o.substitutions = buildUnnamed1422();
|
| + o.tags = buildUnnamed1423();
|
| o.timeout = "foo";
|
| }
|
| buildCounterBuild--;
|
| @@ -153,21 +153,21 @@ checkBuild(api.Build o) {
|
| unittest.expect(o.createTime, unittest.equals('foo'));
|
| unittest.expect(o.finishTime, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed1402(o.images);
|
| + checkUnnamed1419(o.images);
|
| unittest.expect(o.logUrl, unittest.equals('foo'));
|
| unittest.expect(o.logsBucket, unittest.equals('foo'));
|
| checkBuildOptions(o.options);
|
| unittest.expect(o.projectId, unittest.equals('foo'));
|
| checkResults(o.results);
|
| - checkUnnamed1403(o.secrets);
|
| + checkUnnamed1420(o.secrets);
|
| checkSource(o.source);
|
| checkSourceProvenance(o.sourceProvenance);
|
| unittest.expect(o.startTime, unittest.equals('foo'));
|
| unittest.expect(o.status, unittest.equals('foo'));
|
| unittest.expect(o.statusDetail, unittest.equals('foo'));
|
| - checkUnnamed1404(o.steps);
|
| - checkUnnamed1405(o.substitutions);
|
| - checkUnnamed1406(o.tags);
|
| + checkUnnamed1421(o.steps);
|
| + checkUnnamed1422(o.substitutions);
|
| + checkUnnamed1423(o.tags);
|
| unittest.expect(o.timeout, unittest.equals('foo'));
|
| }
|
| buildCounterBuild--;
|
| @@ -192,14 +192,14 @@ checkBuildOperationMetadata(api.BuildOperationMetadata o) {
|
| buildCounterBuildOperationMetadata--;
|
| }
|
|
|
| -buildUnnamed1407() {
|
| +buildUnnamed1424() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1407(core.List<core.String> o) {
|
| +checkUnnamed1424(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'));
|
| @@ -211,7 +211,7 @@ buildBuildOptions() {
|
| buildCounterBuildOptions++;
|
| if (buildCounterBuildOptions < 3) {
|
| o.requestedVerifyOption = "foo";
|
| - o.sourceProvenanceHash = buildUnnamed1407();
|
| + o.sourceProvenanceHash = buildUnnamed1424();
|
| o.substitutionOption = "foo";
|
| }
|
| buildCounterBuildOptions--;
|
| @@ -222,72 +222,72 @@ checkBuildOptions(api.BuildOptions o) {
|
| buildCounterBuildOptions++;
|
| if (buildCounterBuildOptions < 3) {
|
| unittest.expect(o.requestedVerifyOption, unittest.equals('foo'));
|
| - checkUnnamed1407(o.sourceProvenanceHash);
|
| + checkUnnamed1424(o.sourceProvenanceHash);
|
| unittest.expect(o.substitutionOption, unittest.equals('foo'));
|
| }
|
| buildCounterBuildOptions--;
|
| }
|
|
|
| -buildUnnamed1408() {
|
| +buildUnnamed1425() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1408(core.List<core.String> o) {
|
| +checkUnnamed1425(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'));
|
| }
|
|
|
| -buildUnnamed1409() {
|
| +buildUnnamed1426() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1409(core.List<core.String> o) {
|
| +checkUnnamed1426(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'));
|
| }
|
|
|
| -buildUnnamed1410() {
|
| +buildUnnamed1427() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1410(core.List<core.String> o) {
|
| +checkUnnamed1427(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'));
|
| }
|
|
|
| -buildUnnamed1411() {
|
| +buildUnnamed1428() {
|
| var o = new core.List<api.Volume>();
|
| o.add(buildVolume());
|
| o.add(buildVolume());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1411(core.List<api.Volume> o) {
|
| +checkUnnamed1428(core.List<api.Volume> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkVolume(o[0]);
|
| checkVolume(o[1]);
|
| }
|
|
|
| -buildUnnamed1412() {
|
| +buildUnnamed1429() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1412(core.List<core.String> o) {
|
| +checkUnnamed1429(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'));
|
| @@ -298,15 +298,15 @@ buildBuildStep() {
|
| var o = new api.BuildStep();
|
| buildCounterBuildStep++;
|
| if (buildCounterBuildStep < 3) {
|
| - o.args = buildUnnamed1408();
|
| + o.args = buildUnnamed1425();
|
| o.dir = "foo";
|
| o.entrypoint = "foo";
|
| - o.env = buildUnnamed1409();
|
| + o.env = buildUnnamed1426();
|
| o.id = "foo";
|
| o.name = "foo";
|
| - o.secretEnv = buildUnnamed1410();
|
| - o.volumes = buildUnnamed1411();
|
| - o.waitFor = buildUnnamed1412();
|
| + o.secretEnv = buildUnnamed1427();
|
| + o.volumes = buildUnnamed1428();
|
| + o.waitFor = buildUnnamed1429();
|
| }
|
| buildCounterBuildStep--;
|
| return o;
|
| @@ -315,27 +315,27 @@ buildBuildStep() {
|
| checkBuildStep(api.BuildStep o) {
|
| buildCounterBuildStep++;
|
| if (buildCounterBuildStep < 3) {
|
| - checkUnnamed1408(o.args);
|
| + checkUnnamed1425(o.args);
|
| unittest.expect(o.dir, unittest.equals('foo'));
|
| unittest.expect(o.entrypoint, unittest.equals('foo'));
|
| - checkUnnamed1409(o.env);
|
| + checkUnnamed1426(o.env);
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed1410(o.secretEnv);
|
| - checkUnnamed1411(o.volumes);
|
| - checkUnnamed1412(o.waitFor);
|
| + checkUnnamed1427(o.secretEnv);
|
| + checkUnnamed1428(o.volumes);
|
| + checkUnnamed1429(o.waitFor);
|
| }
|
| buildCounterBuildStep--;
|
| }
|
|
|
| -buildUnnamed1413() {
|
| +buildUnnamed1430() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed1413(core.Map<core.String, core.String> o) {
|
| +checkUnnamed1430(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'));
|
| @@ -352,7 +352,7 @@ buildBuildTrigger() {
|
| o.disabled = true;
|
| o.filename = "foo";
|
| o.id = "foo";
|
| - o.substitutions = buildUnnamed1413();
|
| + o.substitutions = buildUnnamed1430();
|
| o.triggerTemplate = buildRepoSource();
|
| }
|
| buildCounterBuildTrigger--;
|
| @@ -368,7 +368,7 @@ checkBuildTrigger(api.BuildTrigger o) {
|
| unittest.expect(o.disabled, unittest.isTrue);
|
| unittest.expect(o.filename, unittest.equals('foo'));
|
| unittest.expect(o.id, unittest.equals('foo'));
|
| - checkUnnamed1413(o.substitutions);
|
| + checkUnnamed1430(o.substitutions);
|
| checkRepoSource(o.triggerTemplate);
|
| }
|
| buildCounterBuildTrigger--;
|
| @@ -446,14 +446,14 @@ checkEmpty(api.Empty o) {
|
| buildCounterEmpty--;
|
| }
|
|
|
| -buildUnnamed1414() {
|
| +buildUnnamed1431() {
|
| var o = new core.List<api.Hash>();
|
| o.add(buildHash());
|
| o.add(buildHash());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1414(core.List<api.Hash> o) {
|
| +checkUnnamed1431(core.List<api.Hash> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkHash(o[0]);
|
| checkHash(o[1]);
|
| @@ -464,7 +464,7 @@ buildFileHashes() {
|
| var o = new api.FileHashes();
|
| buildCounterFileHashes++;
|
| if (buildCounterFileHashes < 3) {
|
| - o.fileHash = buildUnnamed1414();
|
| + o.fileHash = buildUnnamed1431();
|
| }
|
| buildCounterFileHashes--;
|
| return o;
|
| @@ -473,7 +473,7 @@ buildFileHashes() {
|
| checkFileHashes(api.FileHashes o) {
|
| buildCounterFileHashes++;
|
| if (buildCounterFileHashes < 3) {
|
| - checkUnnamed1414(o.fileHash);
|
| + checkUnnamed1431(o.fileHash);
|
| }
|
| buildCounterFileHashes--;
|
| }
|
| @@ -499,14 +499,14 @@ checkHash(api.Hash o) {
|
| buildCounterHash--;
|
| }
|
|
|
| -buildUnnamed1415() {
|
| +buildUnnamed1432() {
|
| var o = new core.List<api.BuildTrigger>();
|
| o.add(buildBuildTrigger());
|
| o.add(buildBuildTrigger());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1415(core.List<api.BuildTrigger> o) {
|
| +checkUnnamed1432(core.List<api.BuildTrigger> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkBuildTrigger(o[0]);
|
| checkBuildTrigger(o[1]);
|
| @@ -517,7 +517,7 @@ buildListBuildTriggersResponse() {
|
| var o = new api.ListBuildTriggersResponse();
|
| buildCounterListBuildTriggersResponse++;
|
| if (buildCounterListBuildTriggersResponse < 3) {
|
| - o.triggers = buildUnnamed1415();
|
| + o.triggers = buildUnnamed1432();
|
| }
|
| buildCounterListBuildTriggersResponse--;
|
| return o;
|
| @@ -526,19 +526,19 @@ buildListBuildTriggersResponse() {
|
| checkListBuildTriggersResponse(api.ListBuildTriggersResponse o) {
|
| buildCounterListBuildTriggersResponse++;
|
| if (buildCounterListBuildTriggersResponse < 3) {
|
| - checkUnnamed1415(o.triggers);
|
| + checkUnnamed1432(o.triggers);
|
| }
|
| buildCounterListBuildTriggersResponse--;
|
| }
|
|
|
| -buildUnnamed1416() {
|
| +buildUnnamed1433() {
|
| var o = new core.List<api.Build>();
|
| o.add(buildBuild());
|
| o.add(buildBuild());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1416(core.List<api.Build> o) {
|
| +checkUnnamed1433(core.List<api.Build> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkBuild(o[0]);
|
| checkBuild(o[1]);
|
| @@ -549,7 +549,7 @@ buildListBuildsResponse() {
|
| var o = new api.ListBuildsResponse();
|
| buildCounterListBuildsResponse++;
|
| if (buildCounterListBuildsResponse < 3) {
|
| - o.builds = buildUnnamed1416();
|
| + o.builds = buildUnnamed1433();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterListBuildsResponse--;
|
| @@ -559,20 +559,20 @@ buildListBuildsResponse() {
|
| checkListBuildsResponse(api.ListBuildsResponse o) {
|
| buildCounterListBuildsResponse++;
|
| if (buildCounterListBuildsResponse < 3) {
|
| - checkUnnamed1416(o.builds);
|
| + checkUnnamed1433(o.builds);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterListBuildsResponse--;
|
| }
|
|
|
| -buildUnnamed1417() {
|
| +buildUnnamed1434() {
|
| var o = new core.List<api.Operation>();
|
| o.add(buildOperation());
|
| o.add(buildOperation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1417(core.List<api.Operation> o) {
|
| +checkUnnamed1434(core.List<api.Operation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkOperation(o[0]);
|
| checkOperation(o[1]);
|
| @@ -584,7 +584,7 @@ buildListOperationsResponse() {
|
| buildCounterListOperationsResponse++;
|
| if (buildCounterListOperationsResponse < 3) {
|
| o.nextPageToken = "foo";
|
| - o.operations = buildUnnamed1417();
|
| + o.operations = buildUnnamed1434();
|
| }
|
| buildCounterListOperationsResponse--;
|
| return o;
|
| @@ -594,32 +594,32 @@ checkListOperationsResponse(api.ListOperationsResponse o) {
|
| buildCounterListOperationsResponse++;
|
| if (buildCounterListOperationsResponse < 3) {
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| - checkUnnamed1417(o.operations);
|
| + checkUnnamed1434(o.operations);
|
| }
|
| buildCounterListOperationsResponse--;
|
| }
|
|
|
| -buildUnnamed1418() {
|
| +buildUnnamed1435() {
|
| 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;
|
| }
|
|
|
| -checkUnnamed1418(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed1435(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'));
|
| }
|
|
|
| -buildUnnamed1419() {
|
| +buildUnnamed1436() {
|
| 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;
|
| }
|
|
|
| -checkUnnamed1419(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed1436(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'));
|
| @@ -632,9 +632,9 @@ buildOperation() {
|
| if (buildCounterOperation < 3) {
|
| o.done = true;
|
| o.error = buildStatus();
|
| - o.metadata = buildUnnamed1418();
|
| + o.metadata = buildUnnamed1435();
|
| o.name = "foo";
|
| - o.response = buildUnnamed1419();
|
| + o.response = buildUnnamed1436();
|
| }
|
| buildCounterOperation--;
|
| return o;
|
| @@ -645,9 +645,9 @@ checkOperation(api.Operation o) {
|
| if (buildCounterOperation < 3) {
|
| unittest.expect(o.done, unittest.isTrue);
|
| checkStatus(o.error);
|
| - checkUnnamed1418(o.metadata);
|
| + checkUnnamed1435(o.metadata);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| - checkUnnamed1419(o.response);
|
| + checkUnnamed1436(o.response);
|
| }
|
| buildCounterOperation--;
|
| }
|
| @@ -679,27 +679,27 @@ checkRepoSource(api.RepoSource o) {
|
| buildCounterRepoSource--;
|
| }
|
|
|
| -buildUnnamed1420() {
|
| +buildUnnamed1437() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1420(core.List<core.String> o) {
|
| +checkUnnamed1437(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'));
|
| }
|
|
|
| -buildUnnamed1421() {
|
| +buildUnnamed1438() {
|
| var o = new core.List<api.BuiltImage>();
|
| o.add(buildBuiltImage());
|
| o.add(buildBuiltImage());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1421(core.List<api.BuiltImage> o) {
|
| +checkUnnamed1438(core.List<api.BuiltImage> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkBuiltImage(o[0]);
|
| checkBuiltImage(o[1]);
|
| @@ -710,8 +710,8 @@ buildResults() {
|
| var o = new api.Results();
|
| buildCounterResults++;
|
| if (buildCounterResults < 3) {
|
| - o.buildStepImages = buildUnnamed1420();
|
| - o.images = buildUnnamed1421();
|
| + o.buildStepImages = buildUnnamed1437();
|
| + o.images = buildUnnamed1438();
|
| }
|
| buildCounterResults--;
|
| return o;
|
| @@ -720,20 +720,20 @@ buildResults() {
|
| checkResults(api.Results o) {
|
| buildCounterResults++;
|
| if (buildCounterResults < 3) {
|
| - checkUnnamed1420(o.buildStepImages);
|
| - checkUnnamed1421(o.images);
|
| + checkUnnamed1437(o.buildStepImages);
|
| + checkUnnamed1438(o.images);
|
| }
|
| buildCounterResults--;
|
| }
|
|
|
| -buildUnnamed1422() {
|
| +buildUnnamed1439() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed1422(core.Map<core.String, core.String> o) {
|
| +checkUnnamed1439(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'));
|
| @@ -745,7 +745,7 @@ buildSecret() {
|
| buildCounterSecret++;
|
| if (buildCounterSecret < 3) {
|
| o.kmsKeyName = "foo";
|
| - o.secretEnv = buildUnnamed1422();
|
| + o.secretEnv = buildUnnamed1439();
|
| }
|
| buildCounterSecret--;
|
| return o;
|
| @@ -755,7 +755,7 @@ checkSecret(api.Secret o) {
|
| buildCounterSecret++;
|
| if (buildCounterSecret < 3) {
|
| unittest.expect(o.kmsKeyName, unittest.equals('foo'));
|
| - checkUnnamed1422(o.secretEnv);
|
| + checkUnnamed1439(o.secretEnv);
|
| }
|
| buildCounterSecret--;
|
| }
|
| @@ -781,14 +781,14 @@ checkSource(api.Source o) {
|
| buildCounterSource--;
|
| }
|
|
|
| -buildUnnamed1423() {
|
| +buildUnnamed1440() {
|
| var o = new core.Map<core.String, api.FileHashes>();
|
| o["x"] = buildFileHashes();
|
| o["y"] = buildFileHashes();
|
| return o;
|
| }
|
|
|
| -checkUnnamed1423(core.Map<core.String, api.FileHashes> o) {
|
| +checkUnnamed1440(core.Map<core.String, api.FileHashes> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkFileHashes(o["x"]);
|
| checkFileHashes(o["y"]);
|
| @@ -799,7 +799,7 @@ buildSourceProvenance() {
|
| var o = new api.SourceProvenance();
|
| buildCounterSourceProvenance++;
|
| if (buildCounterSourceProvenance < 3) {
|
| - o.fileHashes = buildUnnamed1423();
|
| + o.fileHashes = buildUnnamed1440();
|
| o.resolvedRepoSource = buildRepoSource();
|
| o.resolvedStorageSource = buildStorageSource();
|
| }
|
| @@ -810,37 +810,37 @@ buildSourceProvenance() {
|
| checkSourceProvenance(api.SourceProvenance o) {
|
| buildCounterSourceProvenance++;
|
| if (buildCounterSourceProvenance < 3) {
|
| - checkUnnamed1423(o.fileHashes);
|
| + checkUnnamed1440(o.fileHashes);
|
| checkRepoSource(o.resolvedRepoSource);
|
| checkStorageSource(o.resolvedStorageSource);
|
| }
|
| buildCounterSourceProvenance--;
|
| }
|
|
|
| -buildUnnamed1424() {
|
| +buildUnnamed1441() {
|
| 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;
|
| }
|
|
|
| -checkUnnamed1424(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed1441(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'));
|
| }
|
|
|
| -buildUnnamed1425() {
|
| +buildUnnamed1442() {
|
| var o = new core.List<core.Map<core.String, core.Object>>();
|
| - o.add(buildUnnamed1424());
|
| - o.add(buildUnnamed1424());
|
| + o.add(buildUnnamed1441());
|
| + o.add(buildUnnamed1441());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1425(core.List<core.Map<core.String, core.Object>> o) {
|
| +checkUnnamed1442(core.List<core.Map<core.String, core.Object>> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| - checkUnnamed1424(o[0]);
|
| - checkUnnamed1424(o[1]);
|
| + checkUnnamed1441(o[0]);
|
| + checkUnnamed1441(o[1]);
|
| }
|
|
|
| core.int buildCounterStatus = 0;
|
| @@ -849,7 +849,7 @@ buildStatus() {
|
| buildCounterStatus++;
|
| if (buildCounterStatus < 3) {
|
| o.code = 42;
|
| - o.details = buildUnnamed1425();
|
| + o.details = buildUnnamed1442();
|
| o.message = "foo";
|
| }
|
| buildCounterStatus--;
|
| @@ -860,7 +860,7 @@ checkStatus(api.Status o) {
|
| buildCounterStatus++;
|
| if (buildCounterStatus < 3) {
|
| unittest.expect(o.code, unittest.equals(42));
|
| - checkUnnamed1425(o.details);
|
| + checkUnnamed1442(o.details);
|
| unittest.expect(o.message, unittest.equals('foo'));
|
| }
|
| buildCounterStatus--;
|
| @@ -1447,9 +1447,9 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.ProjectsBuildsResourceApi res = new api.CloudbuildApi(mock).projects.builds;
|
| var arg_projectId = "foo";
|
| + var arg_pageToken = "foo";
|
| var arg_pageSize = 42;
|
| var arg_filter = "foo";
|
| - var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -1483,9 +1483,9 @@ main() {
|
| 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["filter"].first, unittest.equals(arg_filter));
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| @@ -1494,7 +1494,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListBuildsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_projectId, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListBuildsResponse response) {
|
| + res.list(arg_projectId, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync1(((api.ListBuildsResponse response) {
|
| checkListBuildsResponse(response);
|
| })));
|
| });
|
|
|