Test

case class Test(consoleState: Atomic[Data], live: Live, annotations: Annotations, debugState: FiberRef[Boolean]) extends Console with TestConsole
trait Product
trait Equals
trait Console
class Object
trait Matchable
class Any

Type members

Inherited classlikes

trait UnsafeAPI
Inherited from:
Console

Value members

Concrete methods

def clearInput(implicit trace: Trace): UIO[Unit]

Clears the contents of the input buffer.

Clears the contents of the input buffer.

def clearOutput(implicit trace: Trace): UIO[Unit]

Clears the contents of the output buffer.

Clears the contents of the output buffer.

def clearOutputErr(implicit trace: Trace): UIO[Unit]

Clears the contents of the output error buffer.

Clears the contents of the output error buffer.

def debug[R, E, A](zio: ZIO[R, E, A])(implicit trace: Trace): 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*)(implicit trace: Trace): 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.

def output(implicit trace: Trace): UIO[Vector[String]]

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.

def outputErr(implicit trace: Trace): UIO[Vector[String]]

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.

override def printError(line: => Any)(implicit trace: Trace): IO[IOException, Unit]

Writes the specified string to the error buffer.

Writes the specified string to the error buffer.

Definition Classes
override def printLine(line: => Any)(implicit trace: Trace): 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 printLineError(line: => Any)(implicit trace: Trace): 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 readLine(implicit trace: Trace): IO[IOException, String]

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.

def save(implicit trace: Trace): 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.

def silent[R, E, A](zio: ZIO[R, E, A])(implicit trace: Trace): 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

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product
def readLine(prompt: String)(implicit trace: Trace): IO[IOException, String]
Inherited from:
Console

Concrete fields

override val unsafe: UnsafeAPI