Eio_mock.FlowSourceMock Eio.Flow sources and sinks.
make label is a mock Eio flow. It can be used as a source, sink, or two-way flow.
on_read t actions configures the values to return from the mock's read function.
on_copy_bytes t actions limits the number of bytes accepted by each write operation.
trace_reads label s wraps s to make a new source that traces reads (including via Read_source_buffer).
limit_reads sizes s wraps s to make a new source that limits the buffers passed to single_read or to the Read_source_buffer callback to the given sizes. e.g. limit_reads [3; 2] s ensures that the first read will get no more than 3 bytes. Once sizes is exhausted, reads are unlimited.