From b2f15fdbaa7556cdf68e12bd02173e8ef62417dd Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Thu, 12 Sep 2024 13:12:57 +0200 Subject: switch: add default branches ... to ensure we're not adding new cases without noticing. --- test/buildtool/file_system/git_repo.test.cpp | 2 ++ test/other_tools/git_operations/git_repo_remote.test.cpp | 2 ++ 2 files changed, 4 insertions(+) (limited to 'test') diff --git a/test/buildtool/file_system/git_repo.test.cpp b/test/buildtool/file_system/git_repo.test.cpp index 2663e9bd..73d37e1d 100644 --- a/test/buildtool/file_system/git_repo.test.cpp +++ b/test/buildtool/file_system/git_repo.test.cpp @@ -743,6 +743,8 @@ TEST_CASE("Multi-threaded fake repository operations", "[git_repo]") { std::nullopt, logger)); } break; + default: + REQUIRE(false); } }, id); diff --git a/test/other_tools/git_operations/git_repo_remote.test.cpp b/test/other_tools/git_operations/git_repo_remote.test.cpp index 69cfce34..f4837b47 100644 --- a/test/other_tools/git_operations/git_repo_remote.test.cpp +++ b/test/other_tools/git_operations/git_repo_remote.test.cpp @@ -400,6 +400,8 @@ TEST_CASE("Multi-threaded fake repository operations", "[git_repo_remote]") { REQUIRE(fetched_commit); CHECK(*fetched_commit == kRootCommit); } break; + default: + REQUIRE(false); } }, id); -- cgit v1.2.3