From c8f0113d48b7ad1ba08d3eb1033dfaf3cab42226 Mon Sep 17 00:00:00 2001 From: Aleksey Selihov <1+faumaray@noreply@void.com> Date: Thu, 3 Dec 2026 08:10:14 +0000 Subject: [PATCH] chore(build): containers, toolchains and portability fixes --- src/Testing/Runner.cpp | 72 +++++++++++++++++++++--------------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/src/Testing/Runner.cpp b/src/Testing/Runner.cpp index 53bc159..69ea215 100644 --- a/src/Testing/Runner.cpp +++ b/src/Testing/Runner.cpp @@ -447,7 +447,7 @@ namespace Void::Testing std::cout << "\n" - << apply(bold_blue, + << Void::Testing::Detail::Color::apply(bold_blue, "\xe2\x95\xad\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80" "\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80" "\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80" @@ -461,12 +461,12 @@ namespace Void::Testing "\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80" "\xe2\x94\x80\xe2\x94\x80\xe2\x95\xae") << "\n" - << apply(bold_blue, "\xe2\x94\x82") - << apply(bold_white, " Void Testing") - << apply(dim, " \xe2\x80\x94 Command Line Interface") - << std::string(28, ' ') << apply(bold_blue, "\xe2\x94\x82") + << Void::Testing::Detail::Color::apply(bold_blue, "\xe2\x94\x82") + << Void::Testing::Detail::Color::apply(bold_white, " Void Testing") + << Void::Testing::Detail::Color::apply(dim, " \xe2\x80\x94 Command Line Interface") + << std::string(28, ' ') << Void::Testing::Detail::Color::apply(bold_blue, "\xe2\x94\x82") << "\n" - << apply(bold_blue, + << Void::Testing::Detail::Color::apply(bold_blue, "\xe2\x95\xb0\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80" "\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80" "\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80" @@ -481,76 +481,76 @@ namespace Void::Testing "\xe2\x94\x80\xe2\x94\x80\xe2\x95\xaf") << "\n" << "\n" - << " " << apply(bold_white, "USAGE:") << "\n" - << " " << apply(cyan, "") << " " - << apply(dim, "[options]") << "\n" + << " " << Void::Testing::Detail::Color::apply(bold_white, "USAGE:") << "\n" + << " " << Void::Testing::Detail::Color::apply(cyan, "") << " " + << Void::Testing::Detail::Color::apply(dim, "[options]") << "\n" << "\n" - << " " << apply(bold_white, "OPTIONS:") << "\n"; + << " " << Void::Testing::Detail::Color::apply(bold_white, "OPTIONS:") << "\n"; constexpr std::size_t OPT_WIDTH = 23; auto opt = [&](std::string_view name) { #ifdef VOID_HAS_TEXT - return apply(green, Void::Str::pad_right(name, OPT_WIDTH)); + return Void::Testing::Detail::Color::apply(green, Void::Str::pad_right(name, OPT_WIDTH)); #else std::string s{name}; if (s.size() < OPT_WIDTH) { s.append(OPT_WIDTH - s.size(), ' '); } - return apply(green, s); + return Void::Testing::Detail::Color::apply(green, s); #endif }; std::cout << " " << opt("--filter ") - << apply(dim, "Run tests matching the regex pattern") << "\n" + << Void::Testing::Detail::Color::apply(dim, "Run tests matching the regex pattern") << "\n" << " " << opt("--suite ") - << apply(dim, "Run only tests in the specified suite") << "\n" + << Void::Testing::Detail::Color::apply(dim, "Run only tests in the specified suite") << "\n" << " " << opt("--tag ") - << apply(dim, "Run only tests with the specified tag") << "\n" + << Void::Testing::Detail::Color::apply(dim, "Run only tests with the specified tag") << "\n" << " " << opt("--list") - << apply(dim, "List discovered tests without running them") + << Void::Testing::Detail::Color::apply(dim, "List discovered tests without running them") << "\n" << " " << opt("--shuffle") - << apply(dim, "Randomize the order of test execution") << "\n" + << Void::Testing::Detail::Color::apply(dim, "Randomize the order of test execution") << "\n" << " " << opt("--seed ") - << apply(dim, "Set the random seed (implies --shuffle)") << "\n" + << Void::Testing::Detail::Color::apply(dim, "Set the random seed (implies --shuffle)") << "\n" << " " << opt("--repeat ") - << apply(dim, "Repeat the test run n times") << "\n" + << Void::Testing::Detail::Color::apply(dim, "Repeat the test run n times") << "\n" << " " << opt("--reporter ") - << apply(dim, "Choose the output reporter: console, junit") + << Void::Testing::Detail::Color::apply(dim, "Choose the output reporter: console, junit") << "\n" << " " << opt("--output ") - << apply(dim, "Write reporter output to a file") << "\n" + << Void::Testing::Detail::Color::apply(dim, "Write reporter output to a file") << "\n" #ifdef VOID_HAS_LOG << " " << opt("--log-file ") - << apply(dim, + << Void::Testing::Detail::Color::apply(dim, "Mirror test events to via Void::Logging") << "\n" #endif #ifdef VOID_HAS_ASYNC << " " << opt("--parallel ") - << apply(dim, + << Void::Testing::Detail::Color::apply(dim, "Run tests across n threads (no crash detection)") << "\n" #endif << " " << opt("--verbose") - << apply(dim, "Enable verbose output") << "\n" + << Void::Testing::Detail::Color::apply(dim, "Enable verbose output") << "\n" << " " << opt("--no-color") - << apply(dim, "Disable colored console output") << "\n" + << Void::Testing::Detail::Color::apply(dim, "Disable colored console output") << "\n" << " " << opt("--allow-empty") - << apply(dim, "Do not fail when selection matches zero tests") << "\n" + << Void::Testing::Detail::Color::apply(dim, "Do not fail when selection matches zero tests") << "\n" << " " << opt("--help") - << apply(dim, "Show this help message") << "\n" + << Void::Testing::Detail::Color::apply(dim, "Show this help message") << "\n" << "\n" - << " " << apply(bold_white, "EXAMPLES:") << "\n" - << " " << apply(cyan, "./run_tests") << " " - << apply(yellow, "--filter") << " \"math_tests.*\"" << "\n" - << " " << apply(cyan, "./run_tests") << " " - << apply(yellow, "--tag") << " integration " - << apply(yellow, "--shuffle") << "\n" - << " " << apply(cyan, "./run_tests") << " " - << apply(yellow, "--reporter") << " junit " - << apply(yellow, "--output") << " results.xml" << "\n" + << " " << Void::Testing::Detail::Color::apply(bold_white, "EXAMPLES:") << "\n" + << " " << Void::Testing::Detail::Color::apply(cyan, "./run_tests") << " " + << Void::Testing::Detail::Color::apply(yellow, "--filter") << " \"math_tests.*\"" << "\n" + << " " << Void::Testing::Detail::Color::apply(cyan, "./run_tests") << " " + << Void::Testing::Detail::Color::apply(yellow, "--tag") << " integration " + << Void::Testing::Detail::Color::apply(yellow, "--shuffle") << "\n" + << " " << Void::Testing::Detail::Color::apply(cyan, "./run_tests") << " " + << Void::Testing::Detail::Color::apply(yellow, "--reporter") << " junit " + << Void::Testing::Detail::Color::apply(yellow, "--output") << " results.xml" << "\n" << "\n"; return {};