Expand description
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§
- Mock
Writer - 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_
assert - Run a function against a slice of logs for the specified scope and return its result.
- logs_
with_ scope_ contain - Return whether the logs with the specified scope contain the specified value.