case class Test(consoleState: Ref[Data], live: Live, debugState: FiberRef[Boolean]) extends Console with TestConsole with Product with Serializable
- Alphabetic
- By Inheritance
- Test
- Product
- Equals
- TestConsole
- Restorable
- Console
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
clearInput: UIO[Unit]
Clears the contents of the input buffer.
Clears the contents of the input buffer.
- Definition Classes
- Test → TestConsole
-
val
clearOutput: UIO[Unit]
Clears the contents of the output buffer.
Clears the contents of the output buffer.
- Definition Classes
- Test → TestConsole
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val consoleState: Ref[Data]
-
def
debug[R, E, A](zio: ZIO[R, E, A]): ZIO[R, E, A]
Runs the specified effect with the
TestConsoleset 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
TestConsoleset 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*): 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
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- 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()
-
val
output: 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
-
val
outputErr: 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): IO[IOException, Unit]
Writes the specified string to the output buffer.
Writes the specified string to the output buffer.
- Definition Classes
- Test → Console
-
def
printError(line: Any): IO[IOException, Unit]
Writes the specified string to the error buffer.
Writes the specified string to the error buffer.
- Definition Classes
- Test → Console
-
def
printLine(line: Any): 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
- Test → Console
-
def
printLineError(line: Any): 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
- Test → Console
-
val
readLine: 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.- Definition Classes
- Test → Console
-
val
save: UIO[UIO[Unit]]
Saves the
TestConsole's current state in an effect which, when run, will restore theTestConsolestate to the saved state.Saves the
TestConsole's current state in an effect which, when run, will restore theTestConsolestate to the saved state.- Definition Classes
- Test → Restorable
-
def
silent[R, E, A](zio: ZIO[R, E, A]): ZIO[R, E, A]
Runs the specified effect with the
TestConsoleset 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
TestConsoleset 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
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
Deprecated Value Members
-
def
getStrLn: IO[IOException, String]
- Definition Classes
- Console
- Annotations
- @deprecated
- Deprecated
(Since version 2.0.0) use
readLine
-
def
putStr(line: String): IO[IOException, Unit]
- Definition Classes
- Console
- Annotations
- @deprecated
- Deprecated
(Since version 2.0.0) use
print
-
def
putStrErr(line: String): IO[IOException, Unit]
- Definition Classes
- Console
- Annotations
- @deprecated
- Deprecated
(Since version 2.0.0) use
printError
-
def
putStrLn(line: String): IO[IOException, Unit]
- Definition Classes
- Console
- Annotations
- @deprecated
- Deprecated
(Since version 2.0.0) use
printLine
-
def
putStrLnErr(line: String): IO[IOException, Unit]
- Definition Classes
- Console
- Annotations
- @deprecated
- Deprecated
(Since version 2.0.0) use
printLineError