Module test

Source

Structs§

TestOptions
Options for test_framed_stream/test_async_stream utilities.

Enums§

TestStreamMessage
A test message for framed stream testing purposes.

Functions§

create_debug_string
Creates a debug string of the given length. The string will be composed of predictable characters sequence so it easy to follow data transfer flow.
test_async_stream
Test an AsyncRead + AsyncWrite stream data transfer
test_async_stream_pinned
test_framed_stream
Test data transfer in a framed stream. First passes data in forward direction and validates that all data trassfered without issues. Then make another pass in backward direction with the same validation.
test_stream
Test asynchronous duplex with both framed and raw binary streams.