Crate mockstream

Source
Expand description

A reader/writer streams to mock real streams in tests.

Structsยง

FailingMockStream
FailingMockStream mocks a stream which will fail upon read or write
MockStream
MockStream is Read+Write stream that stores the data written and provides the data to be read.
SharedMockStream
Reference-counted stream.
SyncMockStream
Thread-safe stream.