Class

zio.test.TestConsole

Test

Related Doc: package TestConsole

Permalink

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

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Test
  2. Product
  3. Equals
  4. TestConsole
  5. Restorable
  6. Console
  7. Serializable
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Test(consoleState: Atomic[Data], live: Live, annotations: Annotations, debugState: FiberRef[Boolean])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val annotations: Annotations

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clearInput(implicit trace: Trace): UIO[Unit]

    Permalink

    Clears the contents of the input buffer.

    Clears the contents of the input buffer.

    Definition Classes
    TestTestConsole
  7. def clearOutput(implicit trace: Trace): UIO[Unit]

    Permalink

    Clears the contents of the output buffer.

    Clears the contents of the output buffer.

    Definition Classes
    TestTestConsole
  8. def clearOutputErr(implicit trace: Trace): UIO[Unit]

    Permalink

    Clears the contents of the output error buffer.

    Clears the contents of the output error buffer.

    Definition Classes
    TestTestConsole
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. val consoleState: Atomic[Data]

    Permalink
  11. def debug[R, E, A](zio: ZIO[R, E, A])(implicit trace: Trace): ZIO[R, E, A]

    Permalink

    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
    TestTestConsole
  12. val debugState: FiberRef[Boolean]

    Permalink
  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def feedLines(lines: String*)(implicit trace: Trace): UIO[Unit]

    Permalink

    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
    TestTestConsole
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. val live: Live

    Permalink
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. def output(implicit trace: Trace): UIO[Vector[String]]

    Permalink

    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
    TestTestConsole
  23. def outputErr(implicit trace: Trace): UIO[Vector[String]]

    Permalink

    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
    TestTestConsole
  24. def print(line: ⇒ Any)(implicit trace: Trace): IO[IOException, Unit]

    Permalink

    Writes the specified string to the output buffer.

    Writes the specified string to the output buffer.

    Definition Classes
    Test → Console
  25. def printError(line: ⇒ Any)(implicit trace: Trace): IO[IOException, Unit]

    Permalink

    Writes the specified string to the error buffer.

    Writes the specified string to the error buffer.

    Definition Classes
    Test → Console
  26. def printLine(line: ⇒ Any)(implicit trace: Trace): IO[IOException, Unit]

    Permalink

    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
    Test → Console
  27. def printLineError(line: ⇒ Any)(implicit trace: Trace): IO[IOException, Unit]

    Permalink

    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
    Test → Console
  28. def readLine(implicit trace: Trace): IO[IOException, String]

    Permalink

    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.

    Definition Classes
    Test → Console
  29. def readLine(prompt: String)(implicit trace: Trace): IO[IOException, String]

    Permalink
    Definition Classes
    Console
  30. def save(implicit trace: Trace): UIO[UIO[Unit]]

    Permalink

    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.

    Definition Classes
    TestRestorable
  31. def silent[R, E, A](zio: ZIO[R, E, A])(implicit trace: Trace): ZIO[R, E, A]

    Permalink

    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
    TestTestConsole
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Product

Inherited from Equals

Inherited from TestConsole

Inherited from Restorable

Inherited from Console

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped