Skip to main content

Module testing

Module testing 

Source
Available on crate features test-util only.
Expand description

Utilities for testing code that uses bytesbuf_io abstractions.

Structsยง

FakeRead
A Read that reads from a BytesView.
FakeReadBuilder
Creates an instance of FakeRead.
FakeWrite
A Write that collects all written data into itself.
FakeWriteBuilder
Creates an instance of FakeWrite.
Null
A Read and Write that does nothing.
NullBuilder
Creates an instance of Null.
Pending
A Read and Write that never completes any reads or writes.
PendingBuilder
Creates an instance of Pending.