diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-10 12:16:35 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-11 14:52:07 +0200 |
commit | b716a901802314ad57588b4b75f9ea785219827a (patch) | |
tree | f704079ca50740ac6e4e07d2ce90ec992250f489 /test/buildtool/common/repository_config.test.cpp | |
parent | 60be90f22c17ff113339bae5915c372ac26348ba (diff) | |
download | justbuild-b716a901802314ad57588b4b75f9ea785219827a.tar.gz |
Return ArtifactDigest from RepositoryConfig::RepositoryKey
...to prevent additional conversions to ArtifactDigest from plain strings.
Diffstat (limited to 'test/buildtool/common/repository_config.test.cpp')
-rw-r--r-- | test/buildtool/common/repository_config.test.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/buildtool/common/repository_config.test.cpp b/test/buildtool/common/repository_config.test.cpp index 931ead30..6741b99f 100644 --- a/test/buildtool/common/repository_config.test.cpp +++ b/test/buildtool/common/repository_config.test.cpp @@ -88,11 +88,10 @@ template <class T> // Read graph from CAS [[nodiscard]] auto ReadGraph(Storage const& storage, - std::string const& hash) -> nlohmann::json { + ArtifactDigest const& repo_key) -> nlohmann::json { auto const& cas = storage.CAS(); - auto blob = cas.BlobPath( - ArtifactDigest{hash, /*does not matter*/ 0, /*is_tree=*/false}, - /*is_executable=*/false); + auto blob = cas.BlobPath(repo_key, + /*is_executable=*/false); REQUIRE(blob); auto content = FileSystemManager::ReadFile(*blob); REQUIRE(content); |