The default initial state of the TestConsole
with input and output
buffers both empty.
Accesses a TestConsole
instance in the environment and clears the input
buffer.
Accesses a TestConsole
instance in the environment and clears the output
buffer.
Accesses a TestConsole
instance in the environment and writes the
specified sequence of strings to the input buffer.
Constructs a new TestConsole
with the specified initial state.
Constructs a new TestConsole
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 Test
object that implements the TestConsole
interface.
Constructs a new Test
object that implements the TestConsole
interface. This can be useful for mixing in with implementations of other
interfaces.
Accesses a TestConsole
instance in the environment and returns the
contents of the output buffer.