case class Test(consoleState: Atomic[Data], live: Live, annotations: Annotations, debugState: FiberRef[Boolean]) extends TestConsole with Product with Serializable
- Alphabetic
- By Inheritance
- Test
- Product
- Equals
- TestConsole
- Restorable
- Console
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val annotations: Annotations
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearInput(implicit trace: Trace): UIO[Unit]
Clears the contents of the input buffer.
Clears the contents of the input buffer.
- Definition Classes
- Test → TestConsole
- def clearOutput(implicit trace: Trace): UIO[Unit]
Clears the contents of the output buffer.
Clears the contents of the output buffer.
- Definition Classes
- Test → TestConsole
- def clearOutputErr(implicit trace: Trace): UIO[Unit]
Clears the contents of the output error buffer.
Clears the contents of the output error buffer.
- Definition Classes
- Test → TestConsole
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val consoleState: Atomic[Data]
- 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.- Definition Classes
- Test → TestConsole
- val debugState: FiberRef[Boolean]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def feedLines(lines: String*)(implicit trace: Trace): UIO[Unit]
Writes the specified sequence of strings to 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.
- Definition Classes
- Test → TestConsole
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val live: Live
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def output(implicit trace: Trace): UIO[Vector[String]]
Returns the contents of the output buffer.
Returns the contents of the output buffer. The first value written to the output buffer will be the first in the sequence.
- Definition Classes
- Test → TestConsole
- def outputErr(implicit trace: Trace): UIO[Vector[String]]
Returns the contents of the error output buffer.
Returns the contents of the error output buffer. The first value written to the error output buffer will be the first in the sequence.
- Definition Classes
- Test → TestConsole
- def print(line: => Any)(implicit trace: Trace): IO[IOException, Unit]
Writes the specified string to the output buffer.
- def printError(line: => Any)(implicit trace: Trace): IO[IOException, Unit]
Writes the specified string to the error buffer.
- def printLine(line: => Any)(implicit trace: Trace): IO[IOException, Unit]
Writes the specified string to the output buffer followed by a newline character.
- def printLineError(line: => Any)(implicit trace: Trace): IO[IOException, Unit]
Writes the specified string to the error buffer followed by a newline character.
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- 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
. - def readLine(prompt: String)(implicit trace: Trace): IO[IOException, String]
- Definition Classes
- Console
- def save(implicit trace: Trace): UIO[UIO[Unit]]
Saves the
TestConsole
's current state in an effect which, when run, will restore theTestConsole
state to the saved state.Saves the
TestConsole
's current state in an effect which, when run, will restore theTestConsole
state to the saved state.- Definition Classes
- Test → Restorable
- 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.- Definition Classes
- Test → TestConsole
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val unsafe: UnsafeAPI
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()