[][src]Module tracing_test::internal

Internal functionality used by the #[traced_test] macro.

These functions should usually not be accessed from user code. The stability of these functions is not guaranteed, the API may change even in patch releases.

Structs

MockWriter

A fake writer that writes into a buffer (behind a mutex).

Statics

INITIALIZED

Static variable to ensure that logging is only initialized once.

Functions

get_subscriber

Return a new subscriber that writes to the specified MockWriter.

logs_with_scope_contain

Return whether the logs with the specified scope contain the specified value.