diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-10-08 13:25:41 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-10-08 15:41:50 +0200 |
commit | 0e024eb055e6e8272f419e898ae9eefd0085c34f (patch) | |
tree | b88ac4fe8c728631b53c424a8dab8c5a2f1577c6 /test/buildtool/storage | |
parent | a050cfe72b6bc02a8df2cdeefa739931983462a7 (diff) | |
download | justbuild-0e024eb055e6e8272f419e898ae9eefd0085c34f.tar.gz |
Name value template parameters using kCamelCase.
Diffstat (limited to 'test/buildtool/storage')
-rw-r--r-- | test/buildtool/storage/large_object_cas.test.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
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 <bool IsExecutable> +template <bool kIsExecutable> class Blob final { public: static constexpr auto kLargeId = "bl_8Mb"; @@ -648,24 +648,24 @@ class TestFilesDirectory final { }; namespace LargeTestUtils { -template <bool IsExecutable> -auto Blob<IsExecutable>::Create(LocalCAS<kDefaultDoGlobalUplink> const& cas, - std::string const& id, - std::uintmax_t size) noexcept +template <bool kIsExecutable> +auto Blob<kIsExecutable>::Create(LocalCAS<kDefaultDoGlobalUplink> const& cas, + std::string const& id, + std::uintmax_t size) noexcept -> std::optional<std::pair<ArtifactDigest, std::filesystem::path>> { 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 <bool IsExecutable> -auto Blob<IsExecutable>::Generate(std::string const& id, - std::uintmax_t size) noexcept +template <bool kIsExecutable> +auto Blob<kIsExecutable>::Generate(std::string const& id, + std::uintmax_t size) noexcept -> std::optional<std::filesystem::path> { std::string const path_id = "blob" + id; auto path = TestFilesDirectory::Instance().GetPath() / path_id; |