Test

case class Test(consoleState: Ref[Data], live: Service, debugState: FiberRef[Boolean]) extends Service with Service
trait Product
trait Equals
trait Service
trait Service
class Object
trait Matchable
class Any

Value members

Concrete methods

def debug[R, E, A](zio: ZIO[R, E, A]): ZIO[R, E, A]

Runs the specified effect with the TestConsole set to debug mode, so that console output is rendered to standard output in addition to being written to the output buffer.

Runs the specified effect with the TestConsole set to debug mode, so that console output is rendered to standard output in addition to being written to the output buffer.

def feedLines(lines: String*): UIO[Unit]

Writes the specified sequence of strings to the input buffer. The first string in the sequence will be the first to be taken. These strings will be taken before any strings that were previously in the input buffer.

Writes the specified sequence of strings to the input buffer. The first string in the sequence will be the first to be taken. These strings will be taken before any strings that were previously in the input buffer.

override def putStr(line: String): IO[IOException, Unit]

Writes the specified string to the output buffer.

Writes the specified string to the output buffer.

Definition Classes
override def putStrErr(line: String): IO[IOException, Unit]

Writes the specified string to the error buffer.

Writes the specified string to the error buffer.

Definition Classes
override def putStrLn(line: String): IO[IOException, Unit]

Writes the specified string to the output buffer followed by a newline character.

Writes the specified string to the output buffer followed by a newline character.

Definition Classes
override def putStrLnErr(line: String): IO[IOException, Unit]

Writes the specified string to the error buffer followed by a newline character.

Writes the specified string to the error buffer followed by a newline character.

Definition Classes
def silent[R, E, A](zio: ZIO[R, E, A]): ZIO[R, E, A]

Runs the specified effect with the TestConsole set to silent mode, so that console output is only written to the output buffer and not rendered to standard output.

Runs the specified effect with the TestConsole set to silent mode, so that console output is only written to the output buffer and not rendered to standard output.

Inherited methods

Inherited from:
Product

Concrete fields

Clears the contents of the input buffer.

Clears the contents of the input buffer.

Clears the contents of the output buffer.

Clears the contents of the output buffer.

Takes the first value from the input buffer, if one exists, or else fails with an EOFException.

Takes the first value from the input buffer, if one exists, or else fails with an EOFException.

Returns the contents of the output buffer. The first value written to the output buffer will be the first in the sequence.

Returns the contents of the output buffer. The first value written to the output buffer will be the first in the sequence.

Returns the contents of the error output buffer. The first value written to the error output buffer will be the first in the sequence.

Returns the contents of the error output buffer. The first value written to the error output buffer will be the first in the sequence.

val save: UIO[UIO[Unit]]

Saves the TestConsole's current state in an effect which, when run, will restore the TestConsole state to the saved state.

Saves the TestConsole's current state in an effect which, when run, will restore the TestConsole state to the saved state.