From ab9ff1405f9dd27addb6106e6d6e3ea45c730cc4 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Tue, 8 Oct 2024 12:34:05 +0200 Subject: Name constexpr variables using kCamelCase. --- test/buildtool/file_system/resolve_symlinks_map.test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/buildtool/file_system/resolve_symlinks_map.test.cpp') diff --git a/test/buildtool/file_system/resolve_symlinks_map.test.cpp b/test/buildtool/file_system/resolve_symlinks_map.test.cpp index 01865f6d..5831aee1 100644 --- a/test/buildtool/file_system/resolve_symlinks_map.test.cpp +++ b/test/buildtool/file_system/resolve_symlinks_map.test.cpp @@ -120,7 +120,7 @@ TEST_CASE("Resolve symlinks", "[resolve_symlinks_map]") { auto resolve_symlinks_map = CreateResolveSymlinksMap(); SECTION("Source repo is target repo") { - constexpr auto NUM_CASES = 3; + constexpr auto kNumCases = 3; std::vector expected = { {kFooId, ObjectType::File, "baz/foo"}, {kBazBarLinkId, ObjectType::Symlink, "bar_l"}, @@ -151,7 +151,7 @@ TEST_CASE("Resolve symlinks", "[resolve_symlinks_map]") { source_cas, source_cas)}, [&expected, &source_cas](auto const& values) { - for (auto i = 0; i < NUM_CASES; ++i) { + for (auto i = 0; i < kNumCases; ++i) { auto const& res = ResolvedGitObject{*values[i]}; CHECK(res.id == expected[i].id); CHECK(res.type == expected[i].type); @@ -176,7 +176,7 @@ TEST_CASE("Resolve symlinks", "[resolve_symlinks_map]") { auto target_cas = GitCAS::Open(*target_repo_path); REQUIRE(target_cas); - constexpr auto NUM_CASES = 3; + constexpr auto kNumCases = 3; std::vector expected = { {kFooId, ObjectType::File, "baz/foo"}, {kBazBarLinkId, ObjectType::Symlink, "bar_l"}, @@ -207,7 +207,7 @@ TEST_CASE("Resolve symlinks", "[resolve_symlinks_map]") { source_cas, target_cas)}, [&expected, &target_cas](auto const& values) { - for (auto i = 0; i < NUM_CASES; ++i) { + for (auto i = 0; i < kNumCases; ++i) { auto const& res = ResolvedGitObject{*values[i]}; CHECK(res.id == expected[i].id); CHECK(res.type == expected[i].type); -- cgit v1.2.3