diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-10-08 12:34:05 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-10-08 15:41:50 +0200 |
commit | ab9ff1405f9dd27addb6106e6d6e3ea45c730cc4 (patch) | |
tree | b7f2c3787752fb16f73b16e9e3343d2bf5e59d0f /test/other_tools/git_operations/critical_git_ops.test.cpp | |
parent | 6f03f36201fa79f3802f3235779ec5a451287e21 (diff) | |
download | justbuild-ab9ff1405f9dd27addb6106e6d6e3ea45c730cc4.tar.gz |
Name constexpr variables using kCamelCase.
Diffstat (limited to 'test/other_tools/git_operations/critical_git_ops.test.cpp')
-rw-r--r-- | test/other_tools/git_operations/critical_git_ops.test.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/other_tools/git_operations/critical_git_ops.test.cpp b/test/other_tools/git_operations/critical_git_ops.test.cpp index c15842e7..aa93b391 100644 --- a/test/other_tools/git_operations/critical_git_ops.test.cpp +++ b/test/other_tools/git_operations/critical_git_ops.test.cpp @@ -152,21 +152,21 @@ TEST_CASE("Critical git operations", "[critical_git_op_map]") { // Add ops to the map. None should throw, as repeating the same operation // should retrieve the value from the map, not call the operation again. // helper lists - constexpr auto NUM_METHODS = 6; - std::vector<std::size_t> ops_all(NUM_METHODS); // indices of all ops tested + constexpr auto kNumMethods = 6; + std::vector<std::size_t> ops_all(kNumMethods); // indices of all ops tested std::iota(ops_all.begin(), ops_all.end(), 0); const std::vector<std::size_t> ops_with_result{ 0, 4}; // indices of ops that return a non-empty string // Add to the map all ops multiple times - constexpr auto REPEATS = 3; - for ([[maybe_unused]] auto k = REPEATS; k > 0; --k) { + constexpr auto kRepeats = 3; + for ([[maybe_unused]] auto k = kRepeats; k > 0; --k) { auto error = false; auto error_msg = std::string("NONE"); { TaskSystem ts; - for ([[maybe_unused]] auto j = REPEATS; j > 0; --j) { + for ([[maybe_unused]] auto j = kRepeats; j > 0; --j) { crit_op_map.ConsumeAfterKeysReady( &ts, {GitOpKey{.params = |