Finish module consolidation: fold Memo into Pipeline, dedupe Channel/Stopwatch

Completes the in-progress merges (Optional->Either/Opt, Curry+Memo->Pipeline,
ScopeGuard->Scope, String->Str):
- Pipeline/Memo.hpp now carries the full Memo API (memoize with recursion
  support, TupleHash, SimpleCache) alongside memoize_fn; old Memo module
  and its test dir removed.
- Duplicate Channel module removed; Concurrency::Channel gains empty() and
  the unique test cases (drain-after-close, multi-producer, string payloads).
- StopWatch module merged into Time::Stopwatch: one class with explicit
  start/stop/laps plus a started() factory for the auto-start RAII style;
  ScopedTimer moved along.
- Testing optional dep retargeted String->Str (pad_right lives in Str now).
- Stale empty dirs removed: src/{ScopeGuard,String,Core}, include/Void/{Core,
  Filesystem,Memo,Channel,StopWatch}.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Fable 5 committed 2026-06-12 18:41:24 +03:00
1 parent 58ff7b38a0
commit da2e93c405
29 files changed
+752 -1593

No files matched your search

View File
Whitespace-only changes.
+8 -5
View File
@@ -32,8 +32,8 @@
#include <Void/Logging/Level.hpp>
#endif
#ifdef VOID_HAS_STRING
#include <Void/String/String.hpp>
#ifdef VOID_HAS_STR
#include <Void/Str/Str.hpp>
#endif
#include <algorithm>
@@ -345,8 +345,8 @@ namespace Void::Testing
constexpr std::size_t OPT_WIDTH = 23;
auto opt = [&](std::string_view name) {
#ifdef VOID_HAS_STRING
return apply(green, Void::String::pad_right(name, OPT_WIDTH));
#ifdef VOID_HAS_STR
return apply(green, Void::Str::pad_right(name, OPT_WIDTH));
#else
std::string s{name};
if (s.size() < OPT_WIDTH) {
@@ -596,9 +596,12 @@ namespace Void::Testing
}
for (unsigned rep = 0; rep < config.repeat; ++rep) {
std::string current_suite;
for (auto& test : tests) {
auto& suite = suite_results[suite_index[test.suite]];
if (rep == 0) {
// Emit suite header only when the suite name changes.
if (test.suite != current_suite) {
current_suite = test.suite;
reporter->on_suite_start(
suite.name,
std::count_if(
+1 -1
View File
@@ -1,3 +1,3 @@
void_add_module(Testing
OPTIONAL_DEPS Stacktrace Logging Concurrency Configuration String
OPTIONAL_DEPS Stacktrace Logging Concurrency Configuration Str
)