Skip to main content

Module test_hook

Module test_hook 

Source
Expand description

For test helpers such as snappea::test: lets in-process recordings receive the events application code emits through the global emit. Not for application code.

Functions§

set_routing
Installs router (the first call wins) and turns routing on or off. While off, emit costs one more atomic load.

Type Aliases§

Router
Receives each global event (Err names an event whose payload could not be serialized). Returns the event back when no recording takes it; it then goes where emit would send it.