Class

zio.test.TestConsole

Test

Related Doc: package TestConsole

Permalink

case class Test(consoleState: Ref[Data], live: Live, 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: Ref[Data], live: Live, 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. final def asInstanceOf[T0]: T0

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

    Permalink

    Clears the contents of the input buffer.

    Clears the contents of the input buffer.

    Definition Classes
    TestTestConsole
  6. def clearOutput(implicit trace: ZTraceElement): UIO[Unit]

    Permalink

    Clears the contents of the output buffer.

    Clears the contents of the output buffer.

    Definition Classes
    TestTestConsole
  7. def clone(): AnyRef

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

    Permalink
  9. def debug[R, E, A](zio: ZIO[R, E, A])(implicit trace: ZTraceElement): 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
  10. val debugState: FiberRef[Boolean]

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

    Permalink
    Definition Classes
    AnyRef
  12. def feedLines(lines: String*)(implicit trace: ZTraceElement): 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
  13. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    Any
  16. val live: Live

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

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

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

    Permalink
    Definition Classes
    AnyRef
  20. def output(implicit trace: ZTraceElement): 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
  21. def outputErr(implicit trace: ZTraceElement): 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
  22. def print(line: ⇒ Any)(implicit trace: ZTraceElement): IO[IOException, Unit]

    Permalink

    Writes the specified string to the output buffer.

    Writes the specified string to the output buffer.

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

    Permalink

    Writes the specified string to the error buffer.

    Writes the specified string to the error buffer.

    Definition Classes
    Test → Console
  24. def printLine(line: ⇒ Any)(implicit trace: ZTraceElement): 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
  25. def printLineError(line: ⇒ Any)(implicit trace: ZTraceElement): 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
  26. def readLine(implicit trace: ZTraceElement): 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
  27. def save(implicit trace: ZTraceElement): 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
  28. def silent[R, E, A](zio: ZIO[R, E, A])(implicit trace: ZTraceElement): 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
  29. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

Deprecated Value Members

  1. def getStrLn(implicit trace: ZTraceElement): IO[IOException, String]

    Permalink
    Definition Classes
    Console
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use readLine

  2. def putStr(line: ⇒ String)(implicit trace: ZTraceElement): IO[IOException, Unit]

    Permalink
    Definition Classes
    Console
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use print

  3. def putStrErr(line: ⇒ String)(implicit trace: ZTraceElement): IO[IOException, Unit]

    Permalink
    Definition Classes
    Console
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use printError

  4. def putStrLn(line: ⇒ String)(implicit trace: ZTraceElement): IO[IOException, Unit]

    Permalink
    Definition Classes
    Console
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use printLine

  5. def putStrLnErr(line: ⇒ String)(implicit trace: ZTraceElement): IO[IOException, Unit]

    Permalink
    Definition Classes
    Console
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use printLineError

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