Skip to main content

Module test_helpers

Module test_helpers 

Source
Expand description

This module provides helper functions for testing logging output

The aim of this module is to provide commonly-used functions that enable the testing of the output that should appear from logging macros.

Note: all tests should be run in a serial manner because the logger involves shared global state that will otherwise give unpredictable results.

Structs§

TestTracker
A tracker that keeps track events.

Functions§

check_and_clear
Check and clear the trace and log output
create_tracker
Create a tracker for tests