summaryrefslogtreecommitdiff
path: root/test/buildtool/storage
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-05-28 15:01:05 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-06-07 11:53:52 +0200
commit22c994e899159035127102e98f645999530d9118 (patch)
treedd847cd757c6fa1be55e7ae68973c35f7a2c3b89 /test/buildtool/storage
parentb9147ac25ad5b398f928a2bbc39b9124e9626bf3 (diff)
downloadjustbuild-22c994e899159035127102e98f645999530d9118.tar.gz
Remove unused code
Diffstat (limited to 'test/buildtool/storage')
-rw-r--r--test/buildtool/storage/large_object_cas.test.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/test/buildtool/storage/large_object_cas.test.cpp b/test/buildtool/storage/large_object_cas.test.cpp
index 10414748..0a62932a 100644
--- a/test/buildtool/storage/large_object_cas.test.cpp
+++ b/test/buildtool/storage/large_object_cas.test.cpp
@@ -703,13 +703,16 @@ auto Tree::StoreRaw(LocalCAS<kDefaultDoGlobalUplink> const& cas,
return std::nullopt;
}
- auto store_blob = [&cas](auto const& path, auto is_exec) {
- return cas.StoreBlob(path, is_exec);
+ auto store_blob = [&cas](std::filesystem::path const& path,
+ auto is_exec) -> std::optional<bazel_re::Digest> {
+ return cas.StoreBlob</*kOwner=*/true>(path, is_exec);
};
- auto store_tree = [&cas](auto const& bytes, auto const& /*dir*/) {
- return cas.StoreTree(bytes);
+ auto store_tree =
+ [&cas](std::string const& content) -> std::optional<bazel_re::Digest> {
+ return cas.StoreTree(content);
};
- auto store_symlink = [&cas](auto const& content) {
+ auto store_symlink =
+ [&cas](std::string const& content) -> std::optional<bazel_re::Digest> {
return cas.StoreBlob(content);
};