Skip to main content

Module fake

Module fake 

Source
Available on crate feature fake-transport only.
Expand description

In-memory Transport for golden parity and harnesses. In-memory transport for golden parity and on-device harness.

Enable with Cargo feature fake-transport. Script control/bulk responses, then open a port with crate::open_port exactly as on hardware.

Structsยง

FakeTransport
Thread-safe fake USB device for tests (crate::Transport implementor).
RecordedBulkOut
Captured bulk OUT payload.
RecordedControl
Captured control transfer (for golden parity assertions).