Documentation
¶
Overview ¶
Package testutil provides shared, dependency-light helpers for tests across the mnemos packages: a migrated temp database, file creation, a silent logger, and a working-directory switch. It imports only internal/storage, so white-box (internal) test packages such as internal/ingest can use it without creating an import cycle. Corpus building (which needs internal/ingest) is deliberately left to the packages that need it, to keep this package cycle-free.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Chdir ¶
Chdir switches into dir for the duration of the test, restoring the previous working directory on cleanup.
func DiscardLogger ¶
DiscardLogger returns a slog logger that writes nowhere, keeping test output clean while still exercising logging code paths.
Types ¶
This section is empty.