Expand description
In-memory message broker, producer, and consumer for testing.
Structs§
- InMemory
Broker - An in-memory message broker backed by a
tokio::sync::broadcastchannel. - InMemory
Consumer - An in-memory message consumer.
- InMemory
Producer - An in-memory message producer.
Functions§
- assert_
no_ messages - Assert that zero messages were published to
topic. - assert_
published - Assert that at least one message on
topicsatisfies the predicate. - assert_
published_ n - Assert that exactly
nmessages were published totopic. - register
- Register in-memory producer and consumer factories.
- wait_
for_ message - Wait until at least one message appears on
topicor the timeout expires.