Expand description
Helpers for testing implementations of the async-codec traits.
Functionsยง
- test_
codec - Run an encoder and a decoder concurrently, returning the decoded output and whether the encoder produced as many bytes as the decoder consumed.
- test_
codec_ len - Run an encoder and a decoder concurrently, returning the decoded output and whether the encoder produced as many bytes as it promised and as the decoder consumed.
- unexpected_
eof_ errors - Returns whether the given decoder returns an error of kind
UnexpectedEof
when trying to fully decode from the given reader. - write_
zero_ errors - Returns whether the given encoder returns an error of kind
WriteZero
when trying to fully encode into the given writer.