From 576fc4f44c7b07422af46ad49017beb67a40a77d Mon Sep 17 00:00:00 2001 From: ryouze <98982999+ryouze@users.noreply.github.com> Date: Tue, 24 Sep 2024 02:34:55 +0200 Subject: [PATCH] Tweak docs and formatting. --- tests/helpers.hpp | 2 ++ tests/test_all.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/tests/helpers.hpp b/tests/helpers.hpp index c5cb00a..186c3f2 100644 --- a/tests/helpers.hpp +++ b/tests/helpers.hpp @@ -23,6 +23,8 @@ class TempDir final { /** * @brief Construct a new TempDir object. * + * On construction, the temporary directory is removed recursively from disk, then created again to ensure it is empty. + * * @param directory Path to the temporary directory (e.g., "~/data"). */ inline explicit TempDir(const std::filesystem::path &directory) diff --git a/tests/test_all.cpp b/tests/test_all.cpp index 24df3ec..6184517 100644 --- a/tests/test_all.cpp +++ b/tests/test_all.cpp @@ -78,6 +78,7 @@ int main(int argc, char **argv) fmt::print("{}\n", help_message); return EXIT_FAILURE; } + // Otherwise, define argument to function mapping const std::unordered_map> tests = { {"test_args::none", test_args::none},