Skip to main content

Module testing

Module testing 

Source
Expand description

In-process test broker, behind the testing feature.

LapinTestBroker implements the core TestableBroker contract over an in-memory router so application handlers wired against RabbitMQ descriptors can be exercised without a server: messages fan out synchronously to subscribers matched by exact queue name.

Scope: queue-name routing, settlement, headers, and buffered transactions. Exchange types, bindings, dead-lettering, prefetch, and request/reply are transport behavior; exercise them against a real server (see the crate’s integration tests and AMQP_TEST_URL).

Structs§

LapinTestBroker
In-process broker for application tests: same descriptors, no RabbitMQ server.
LapinTestMessage
One in-process delivery.
LapinTestPublisher
Publisher into the in-process router.
LapinTestSubscriber
In-process subscriber on one queue name.