The default initial state of the MockConsole with input and output
buffers both empty.
Accesses a MockConsole instance in the environment and clears the input
buffer.
Accesses a MockConsole instance in the environment and clears the output
buffer.
Accesses a MockConsole instance in the environment and writes the
specified sequence of strings to the input buffer.
Constructs a new MockConsole with the specified initial state.
Constructs a new MockConsole with the specified initial state. This can
be useful for providing the required environment to an effect that
requires a Console, such as with ZIO!.provide.
Constructs a new Mock object that implements the MockConsole
interface.
Constructs a new Mock object that implements the MockConsole
interface. This can be useful for mixing in with implementations of other
interfaces.
Accesses a MockConsole instance in the environment and returns the
contents of the output buffer.