Packages

final class TestConsole[F[_]] extends Console[F]

Implement a test version of cats.effect.std.Console

Source
TestConsole.scala
Linear Supertypes
Console[F], ConsoleCrossPlatform[F], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TestConsole
  2. Console
  3. ConsoleCrossPlatform
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new TestConsole(stdIn: TestStdIn[F], inspector: Inspector[F])(implicit arg0: ApplicativeThrow[F])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def error[A](a: A)(implicit S: Show[A] = Show.fromToString[A]): F[Unit]

    Prints a value to the standard error output using the implicit cats.Show instance.

    Prints a value to the standard error output using the implicit cats.Show instance.

    a

    value to be printed to the standard error output

    S

    implicit cats.Show[A] instance, defaults to cats.Show.fromToString

    Definition Classes
    TestConsole → Console → ConsoleCrossPlatform
  9. def errorln[A](a: A)(implicit S: Show[A] = Show.fromToString[A]): F[Unit]

    Prints a value to the standard error output followed by a new line using the implicit cast.Show instance.

    Prints a value to the standard error output followed by a new line using the implicit cast.Show instance.

    a

    value to be printed to the standard error output

    S

    implicit cats.Show[A] instance, defaults to cats.Show.fromToString

    Definition Classes
    TestConsole → Console → ConsoleCrossPlatform
  10. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def mapK[G[_]](f: ~>[F, G]): Console[G]

    Modifies the context in which this console operates using the natural transformation f.

    Modifies the context in which this console operates using the natural transformation f.

    returns

    a console in the new context obtained by mapping the current one using f

    Definition Classes
    Console → ConsoleCrossPlatform
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. def print[A](a: A)(implicit S: Show[A] = Show.fromToString[A]): F[Unit]

    Prints a value to the standard output using the implicit cats.Show instance.

    Prints a value to the standard output using the implicit cats.Show instance.

    a

    value to be printed to the standard output

    S

    implicit cats.Show[A] instance, defaults to cats.Show.fromToString

    Definition Classes
    TestConsole → Console → ConsoleCrossPlatform
  19. def printStackTrace(t: Throwable): F[Unit]

    Prints the stack trace of the given Throwable to standard error output.

    Prints the stack trace of the given Throwable to standard error output.

    Definition Classes
    Console → ConsoleCrossPlatform
  20. def println[A](a: A)(implicit S: Show[A] = Show.fromToString[A]): F[Unit]

    Prints a value to the standard output followed by a new line using the implicit cats.Show instance.

    Prints a value to the standard output followed by a new line using the implicit cats.Show instance.

    a

    value to be printed to the standard output

    S

    implicit cats.Show[A] instance, defaults to cats.Show.fromToString

    Definition Classes
    TestConsole → Console → ConsoleCrossPlatform
  21. def readLine: F[String]

    Reads a line as a string from the standard input using the platform's default charset, as per java.nio.charset.Charset.defaultCharset().

    Reads a line as a string from the standard input using the platform's default charset, as per java.nio.charset.Charset.defaultCharset().

    The effect can raise a java.io.EOFException if no input has been consumed before the EOF is observed. This should never happen with the standard input, unless it has been replaced with a finite java.io.InputStream through java.lang.System#setIn or similar.

    returns

    an effect that describes reading the user's input from the standard input as a string

    Definition Classes
    Console
  22. def readLineWithCharset(charset: Charset): F[String]

    Reads a line as a string from the standard input using the provided charset.

    Reads a line as a string from the standard input using the provided charset.

    The effect can raise a java.io.EOFException if no input has been consumed before the EOF is observed. This should never happen with the standard input, unless it has been replaced with a finite java.io.InputStream through java.lang.System#setIn or similar.

    charset

    the java.nio.charset.Charset to be used when decoding the input stream

    returns

    an effect that describes reading the user's input from the standard input as a string

    Definition Classes
    TestConsole → Console
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Console[F]

Inherited from ConsoleCrossPlatform[F]

Inherited from AnyRef

Inherited from Any

Ungrouped