Crate test_diagnostics

Source
Expand description

This crate provides helper functions to collect test diagnostics.

Modules§

zstd_compress

Structs§

LogStream
SocketReadFut
Future that executes a function when bytes are available on a socket.
StdoutBuffer
A writer that buffers content in memory for some duration before flushing the contents to an inner writer. After the duration elapses, any new bytes are written immediately to the inner writer. Calling flush() also immediately flushes the contents. Errors that occur when flushing on timeout are returned at the next write() or flush() call. Therefore, callers should make sure to call flush before the StdoutBuffer goes out of scope.

Functions§

collect_and_send_string_output
collect_string_from_socket