From f7e4ebf0e2913ff1b987e40baab5c0c809e6c0de Mon Sep 17 00:00:00 2001 From: Sascha Roloff Date: Thu, 13 Oct 2022 11:39:13 +0200 Subject: Remove default value of ArtifactDigest::Create template parameter This enforces the explicit specification, which object type, either file or tree, should be used to create an artifact digest. This also avoids subtile errors at locations as in the previous commit, where files as well as trees are supposed to be handled, but digest creation mistakenly defaults to file object type. --- test/buildtool/execution_api/common/api_test.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/buildtool/execution_api/common/api_test.hpp') diff --git a/test/buildtool/execution_api/common/api_test.hpp b/test/buildtool/execution_api/common/api_test.hpp index 08aa3bd2..fdc13643 100644 --- a/test/buildtool/execution_api/common/api_test.hpp +++ b/test/buildtool/execution_api/common/api_test.hpp @@ -103,7 +103,7 @@ using ExecProps = std::map; ExecProps const& props, bool is_hermetic = false) { std::string test_content("test"); - auto test_digest = ArtifactDigest::Create(test_content); + auto test_digest = ArtifactDigest::Create(test_content); std::string output_path{"output_file"}; @@ -180,7 +180,7 @@ using ExecProps = std::map; ExecProps const& props, bool is_hermetic = false) { std::string test_content("test"); - auto test_digest = ArtifactDigest::Create(test_content); + auto test_digest = ArtifactDigest::Create(test_content); auto input_artifact_opt = ArtifactFactory::FromDescription(ArtifactFactory::DescribeKnownArtifact( @@ -264,7 +264,7 @@ using ExecProps = std::map; ApiFactory const& api_factory, ExecProps const& props) { std::string test_content("test"); - auto test_digest = ArtifactDigest::Create(test_content); + auto test_digest = ArtifactDigest::Create(test_content); std::string output_path{"output_file"}; -- cgit v1.2.3