Skip to main content

Module test_utils

Module test_utils 

Source
Expand description

Test utilities for in-memory tracing in unit tests

Structs§

CapturedLog
A log line read back from an InMemorySink.
InMemoryTracingGuard
RAII guard for in-memory tracing that handles cleanup

Functions§

collect_logs
Flushes the log buffer, then returns every static-string, formatted and tagged log recorded in sink, in emission order. Template events are not covered.
init_in_memory_tracing
Initialize in-memory tracing for unit tests