diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-10-08 11:59:11 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-10-08 15:41:50 +0200 |
commit | 6f03f36201fa79f3802f3235779ec5a451287e21 (patch) | |
tree | 40cd2a46e881be0d5cdbf4de215e8dcedee8ae33 /test/buildtool/storage | |
parent | a054488f8417a40e22c4e1e0f9738f705785aa9e (diff) | |
download | justbuild-6f03f36201fa79f3802f3235779ec5a451287e21.tar.gz |
Name static constants using kCamelCase.
Diffstat (limited to 'test/buildtool/storage')
-rw-r--r-- | test/buildtool/storage/large_object_cas.test.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/buildtool/storage/large_object_cas.test.cpp b/test/buildtool/storage/large_object_cas.test.cpp index ab4d0715..b87c8db3 100644 --- a/test/buildtool/storage/large_object_cas.test.cpp +++ b/test/buildtool/storage/large_object_cas.test.cpp @@ -350,8 +350,8 @@ static void TestExternal(StorageConfig const& storage_config, // generation: REQUIRE(GarbageCollector::TriggerGarbageCollection(storage_config)); for (auto const& part : *pack_1) { - static constexpr bool is_executable = false; - REQUIRE(cas.BlobPath(part, is_executable)); + static constexpr bool kIsExecutable = false; + REQUIRE(cas.BlobPath(part, kIsExecutable)); } auto const youngest = ::Generation::Create(&storage_config); @@ -445,12 +445,12 @@ static void TestCompactification(StorageConfig const& storage_config, // For trees the size must be increased to exceed the internal // compactification threshold: - static constexpr auto ExceedThresholdSize = + static constexpr auto kExceedThresholdSize = kIsTree ? TestType::kLargeSize * 8 : TestType::kLargeSize; // Create a large object that is to be split during compactification: auto object_2 = TestType::Create( - cas, std::string(TestType::kLargeId) + "_2", ExceedThresholdSize); + cas, std::string(TestType::kLargeId) + "_2", kExceedThresholdSize); REQUIRE(object_2); auto& [digest_2, path_2] = *object_2; @@ -458,7 +458,7 @@ static void TestCompactification(StorageConfig const& storage_config, // may be present in the storage. To ensure compactification deals with // them properly, a "unique" file is created: auto invalid_object = TestType::Create( - cas, std::string(TestType::kLargeId) + "_3", ExceedThresholdSize); + cas, std::string(TestType::kLargeId) + "_3", kExceedThresholdSize); REQUIRE(invalid_object); auto& [invalid_digest, invalid_path] = *invalid_object; |