Class

zio.test.environment.TestConsole

Test

Related Doc: package TestConsole

Permalink

case class Test(consoleState: Ref[Data], live: Live.Service, debugState: FiberRef[Boolean]) extends console.Console.Service with Service with Product with Serializable

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Test
  2. Product
  3. Equals
  4. Service
  5. Restorable
  6. Service
  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.Service, 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. val clearInput: UIO[Unit]

    Permalink

    Clears the contents of the input buffer.

    Clears the contents of the input buffer.

    Definition Classes
    TestService
  6. val clearOutput: UIO[Unit]

    Permalink

    Clears the contents of the output buffer.

    Clears the contents of the output buffer.

    Definition Classes
    TestService
  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]): 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
    TestService
  10. val debugState: FiberRef[Boolean]

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

    Permalink
    Definition Classes
    AnyRef
  12. def feedLines(lines: String*): 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
    TestService
  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. val getStrLn: 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 → Service
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. val live: Live.Service

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

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

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

    Permalink
    Definition Classes
    AnyRef
  21. val output: 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
    TestService
  22. val outputErr: 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
    TestService
  23. def putStr(line: String): IO[IOException, Unit]

    Permalink

    Writes the specified string to the output buffer.

    Writes the specified string to the output buffer.

    Definition Classes
    Test → Service
  24. def putStrErr(line: String): IO[IOException, Unit]

    Permalink

    Writes the specified string to the error buffer.

    Writes the specified string to the error buffer.

    Definition Classes
    Test → Service
  25. def putStrLn(line: String): 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 → Service
  26. def putStrLnErr(line: String): 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 → Service
  27. val save: 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]): 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
    TestService
  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( ... )

Inherited from Product

Inherited from Equals

Inherited from Service

Inherited from Restorable

Inherited from console.Console.Service

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped