diff options
Diffstat (limited to 'test/buildtool/file_system')
-rw-r--r-- | test/buildtool/file_system/git_repo.test.cpp | 4 | ||||
-rw-r--r-- | test/buildtool/file_system/resolve_symlinks_map.test.cpp | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/test/buildtool/file_system/git_repo.test.cpp b/test/buildtool/file_system/git_repo.test.cpp index fbe92a85..ae3ded41 100644 --- a/test/buildtool/file_system/git_repo.test.cpp +++ b/test/buildtool/file_system/git_repo.test.cpp @@ -611,7 +611,7 @@ TEST_CASE("Multi-threaded fake repository operations", "[git_repo]") { threads.reserve(kNumThreads); SECTION("Lookups in the same ODB") { - constexpr int NUM_CASES = 10; + constexpr int kNumCases = 10; for (int id{}; id < kNumThreads; ++id) { threads.emplace_back( [&storage_config, @@ -621,7 +621,7 @@ TEST_CASE("Multi-threaded fake repository operations", "[git_repo]") { &starting_signal](int tid) { starting_signal.wait(false); // cases based on thread number - switch (tid % NUM_CASES) { + switch (tid % kNumCases) { case 0: { auto remote_repo = GitRepo::Open(remote_cas); REQUIRE(remote_repo); 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<ResolvedGitObject> 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<ResolvedGitObject> 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); |