From 0e024eb055e6e8272f419e898ae9eefd0085c34f Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Tue, 8 Oct 2024 13:25:41 +0200 Subject: Name value template parameters using kCamelCase. --- test/buildtool/storage/large_object_cas.test.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'test/buildtool/storage/large_object_cas.test.cpp') diff --git a/test/buildtool/storage/large_object_cas.test.cpp b/test/buildtool/storage/large_object_cas.test.cpp index b87c8db3..bd8fa98e 100644 --- a/test/buildtool/storage/large_object_cas.test.cpp +++ b/test/buildtool/storage/large_object_cas.test.cpp @@ -42,7 +42,7 @@ namespace { namespace LargeTestUtils { -template +template class Blob final { public: static constexpr auto kLargeId = "bl_8Mb"; @@ -648,24 +648,24 @@ class TestFilesDirectory final { }; namespace LargeTestUtils { -template -auto Blob::Create(LocalCAS const& cas, - std::string const& id, - std::uintmax_t size) noexcept +template +auto Blob::Create(LocalCAS const& cas, + std::string const& id, + std::uintmax_t size) noexcept -> std::optional> { auto path = Generate(id, size); - auto digest = path ? cas.StoreBlob(*path, IsExecutable) : std::nullopt; + auto digest = path ? cas.StoreBlob(*path, kIsExecutable) : std::nullopt; auto blob_path = - digest ? cas.BlobPath(*digest, IsExecutable) : std::nullopt; + digest ? cas.BlobPath(*digest, kIsExecutable) : std::nullopt; if (digest and blob_path) { return std::make_pair(std::move(*digest), std::move(*blob_path)); } return std::nullopt; } -template -auto Blob::Generate(std::string const& id, - std::uintmax_t size) noexcept +template +auto Blob::Generate(std::string const& id, + std::uintmax_t size) noexcept -> std::optional { std::string const path_id = "blob" + id; auto path = TestFilesDirectory::Instance().GetPath() / path_id; -- cgit v1.2.3