Available on crate feature
session and (crate features test-helpers) only.Expand description
Parser stubs for downstream test crates. Gated by the
test-helpers feature; not for production use.
Parser stubs intended for downstream test crates that need a
SessionParser / DatagramParser impl but don’t care about
the produced messages.
Gated behind the test-helpers Cargo feature (alongside
extract::parse::test_frames). Not for production use.
Future trait-shape evolution (new defaulted methods, signature tweaks) absorbs into these stubs once instead of forcing every downstream test crate to update its own copy.
Modules§
- events
- Synthetic event constructors for downstream test crates.
Structs§
- Echo
Session Parser - A
SessionParserthat echoes each fed chunk as a side-taggedVec<u8>message. Use when test code wants to inspect the reassembled byte stream. - Noop
Datagram Parser - A
DatagramParserthat produces no messages. Mirror ofNoopSessionParser. - Noop
Session Parser - A
SessionParserthat produces no messages. Use when test code needs to exercise the driver / stream wiring without caring about parsed output. - OneShot
Datagram Parser - Datagram mirror of
OneShotSessionParser. - OneShot
Session Parser - A
SessionParserthat emits one empty message on the firstfeed_initiatorcall and reportsis_done() == truethereafter. Use for testing the plan-80crate::SessionParser::is_done/crate::EndReason::ParserDonewiring.