ouroboros-consensus-test-0.1.0.0: Tests of the consensus layer
Safe HaskellNone
LanguageHaskell2010

Test.Util.Tracer

Synopsis

Documentation

recordingTracerIORefIO (Tracer IO ev, IO [ev]) Source #

Create a Tracer that stores all events in an IORef that is atomically updated. The second return value lets you obtain the events recorded so far (from oldest to newest). Obtaining the events does not erase them.

recordingTracerTVarMonadSTM m ⇒ m (Tracer m ev, m [ev]) Source #

Create a Tracer that stores all events in a TVar that is atomically updated. The second return value lets you obtain the events recorded so far (from oldest to newest). Obtaining the events does not erase them.