21#ifndef LEXLEO_STREAM_FAKE_PROVIDER_H
22#define LEXLEO_STREAM_FAKE_PROVIDER_H
const stream_fake_counters_t * stream_fake_counters(const stream_fake_t *fake)
Return the current call counters recorded by the fake stream.
void stream_fake_set_flush_result(stream_fake_t *fake, stream_status_t status)
Configure the result returned by flush operations.
void stream_fake_destroy(stream_fake_t **fake, stream_t **stream)
Destroy a fake stream backend and its associated public stream.
void stream_fake_fail_write_since(stream_fake_t *fake, size_t call_idx, stream_status_t status)
Make fake writes fail starting from a given call index.
void stream_fake_set_write_result(stream_fake_t *fake, size_t n, stream_status_t status)
Configure the result returned by the next write operations.
void stream_fake_reset(stream_fake_t *fake)
Reset the fake stream runtime state and counters.
size_t stream_fake_written_len(const stream_fake_t *fake)
Return the number of bytes captured by the fake stream.
const uint8_t * stream_fake_written_data(const stream_fake_t *fake)
Return the captured bytes written through the fake stream.
stream_status_t stream_fake_create(stream_fake_t **out_fake, stream_t **out_stream, const osal_mem_ops_t *mem)
Create a fake stream backend and its associated public stream_t.
Borrower-visible public types for the stream port.
stream_status_t
Public status codes used by the stream port.
Call counters recorded by the fake stream.
Private handle structure for a stream_t.