Packages

object CatsEffectAssertions extends Assertions with CatsEffectAssertions

Source
CatsEffectAssertions.scala
Linear Supertypes
CatsEffectAssertions, Assertions, CompileErrorMacro, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CatsEffectAssertions
  2. CatsEffectAssertions
  3. Assertions
  4. CompileErrorMacro
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit class MUnitCatsAssertionsForIOBooleanOps extends AnyRef
    Definition Classes
    CatsEffectAssertions
  2. implicit class MUnitCatsAssertionsForIOOps[A] extends AnyRef
    Definition Classes
    CatsEffectAssertions
  3. implicit class MUnitCatsAssertionsForSyncIOOps[A] extends AnyRef
    Definition Classes
    CatsEffectAssertions

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 assert(cond: ⇒ Boolean, clue: ⇒ Any)(implicit loc: Location): Unit
    Definition Classes
    Assertions
  6. def assertEquals[A, B](obtained: A, expected: B, clue: ⇒ Any)(implicit loc: Location, ev: <:<[B, A]): Unit
    Definition Classes
    Assertions
  7. def assertEqualsDouble(obtained: Double, expected: Double, delta: Double, clue: ⇒ Any)(implicit loc: Location): Unit
    Definition Classes
    Assertions
  8. def assertEqualsFloat(obtained: Float, expected: Float, delta: Float, clue: ⇒ Any)(implicit loc: Location): Unit
    Definition Classes
    Assertions
  9. def assertIO[A, B](obtained: IO[A], returns: B, clue: ⇒ Any = "values are not the same")(implicit loc: Location, ev: <:<[B, A]): IO[Unit]

    Asserts that an IO returns an expected value.

    Asserts that an IO returns an expected value.

    The "returns" value (second argument) must have the same type or be a subtype of the one "contained" inside the IO (first argument). For example:

    assertIO(IO(Option(1)), returns = Some(1)) // OK
    assertIO(IO(Some(1)), returns = Option(1)) // Error: Option[Int] is not a subtype of Some[Int]

    The "clue" value can be used to give extra information about the failure in case the assertion fails.

    obtained

    the IO under testing

    returns

    the expected value

    clue

    a value that will be printed in case the assertions fails

    Definition Classes
    CatsEffectAssertions
  10. def assertIOBoolean(obtained: IO[Boolean], clue: ⇒ Any = "values are not the same")(implicit loc: Location): IO[Unit]

    Asserts that an IO[Boolean] returns true.

    Asserts that an IO[Boolean] returns true.

    For example:

    assertIOBoolean(IO(true))

    The "clue" value can be used to give extra information about the failure in case the assertion fails.

    obtained

    the IO[Boolean] under testing

    clue

    a value that will be printed in case the assertions fails

    Attributes
    protected
    Definition Classes
    CatsEffectAssertions
  11. def assertNoDiff(obtained: String, expected: String, clue: ⇒ Any)(implicit loc: Location): Unit
    Definition Classes
    Assertions
  12. def assertNotEquals[A, B](obtained: A, expected: B, clue: ⇒ Any)(implicit loc: Location, ev: =:=[A, B]): Unit
    Definition Classes
    Assertions
  13. def assertSyncIO[A, B](obtained: SyncIO[A], returns: B, clue: ⇒ Any = "values are not the same")(implicit loc: Location, ev: <:<[B, A]): SyncIO[Unit]

    Asserts that a SyncIO returns an expected value.

    Asserts that a SyncIO returns an expected value.

    The "returns" value (second argument) must have the same type or be a subtype of the one "contained" inside the SyncIO (first argument). For example:

    assertSyncIO(SyncIO(Option(1)), returns = Some(1)) // OK
    assertSyncIO(SyncIO(Some(1)), returns = Option(1)) // Error: Option[Int] is not a subtype of Some[Int]

    The "clue" value can be used to give extra information about the failure in case the assertion fails.

    obtained

    the SyncIO under testing

    returns

    the expected value

    clue

    a value that will be printed in case the assertions fails

    Definition Classes
    CatsEffectAssertions
  14. def assume(cond: Boolean, clue: ⇒ Any)(implicit loc: Location): Unit
    Definition Classes
    Assertions
  15. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  16. def clue[T](c: Clue[T]): T
    Definition Classes
    Assertions
  17. def clues(clue: Clue[_]*): Clues
    Definition Classes
    Assertions
  18. macro def compileErrors(code: String): String
    Definition Classes
    CompileErrorMacro
  19. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  21. def fail(message: String, clues: Clues)(implicit loc: Location): Nothing
    Definition Classes
    Assertions
  22. def fail(message: String, cause: Throwable)(implicit loc: Location): Nothing
    Definition Classes
    Assertions
  23. def failComparison(message: String, obtained: Any, expected: Any, clues: Clues)(implicit loc: Location): Nothing
    Definition Classes
    Assertions
  24. def failSuite(message: String, clues: Clues)(implicit loc: Location): Nothing
    Definition Classes
    Assertions
  25. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  26. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  27. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  28. def intercept[T <: Throwable](body: ⇒ Any)(implicit T: ClassTag[T], loc: Location): T
    Definition Classes
    Assertions
  29. def interceptIO[T <: Throwable](io: IO[Any])(implicit T: ClassTag[T], loc: Location): IO[T]

    Intercepts a Throwable being thrown inside the provided IO.

    Intercepts a Throwable being thrown inside the provided IO.

    Definition Classes
    CatsEffectAssertions
    Example:
    1. val io = IO.raiseError[Unit](MyException("BOOM!"))
      
      interceptIO[MyException](io)

      or

      interceptIO[MyException] {
          IO.raiseError[Unit](MyException("BOOM!"))
      }
  30. def interceptMessage[T <: Throwable](expectedExceptionMessage: String)(body: ⇒ Any)(implicit T: ClassTag[T], loc: Location): T
    Definition Classes
    Assertions
  31. def interceptMessageIO[T <: Throwable](expectedExceptionMessage: String)(io: IO[Any])(implicit T: ClassTag[T], loc: Location): IO[T]

    Intercepts a Throwable with a certain message being thrown inside the provided IO.

    Intercepts a Throwable with a certain message being thrown inside the provided IO.

    Definition Classes
    CatsEffectAssertions
    Example:
    1. val io = IO.raiseError[Unit](MyException("BOOM!"))
      
      interceptIO[MyException]("BOOM!")(io)

      or

      interceptIO[MyException] {
          IO.raiseError[Unit](MyException("BOOM!"))
      }
  32. def interceptMessageSyncIO[T <: Throwable](expectedExceptionMessage: String)(io: SyncIO[Any])(implicit T: ClassTag[T], loc: Location): SyncIO[T]

    Intercepts a Throwable with a certain message being thrown inside the provided SyncIO.

    Intercepts a Throwable with a certain message being thrown inside the provided SyncIO.

    Definition Classes
    CatsEffectAssertions
    Example:
    1. val io = SyncIO.raiseError[Unit](MyException("BOOM!"))
      
      interceptSyncIO[MyException]("BOOM!")(io)

      or

      interceptSyncIO[MyException] {
          SyncIO.raiseError[Unit](MyException("BOOM!"))
      }
  33. def interceptSyncIO[T <: Throwable](io: SyncIO[Any])(implicit T: ClassTag[T], loc: Location): SyncIO[T]

    Intercepts a Throwable being thrown inside the provided SyncIO.

    Intercepts a Throwable being thrown inside the provided SyncIO.

    Definition Classes
    CatsEffectAssertions
    Example:
    1. val io = SyncIO.raiseError[Unit](MyException("BOOM!"))
      
      interceptSyncIO[MyException](io)

      or

      interceptSyncIO[MyException] {
          SyncIO.raiseError[Unit](MyException("BOOM!"))
      }
  34. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  35. def munitAnsiColors: Boolean
    Definition Classes
    Assertions
  36. def munitCaptureClues[T](thunk: ⇒ T): (T, Clues)
    Definition Classes
    Assertions
  37. val munitLines: Lines
    Definition Classes
    Assertions
  38. def munitPrint(clue: ⇒ Any): String
    Definition Classes
    Assertions
  39. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  40. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  41. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  42. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  43. def toString(): String
    Definition Classes
    AnyRef → Any
  44. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from CatsEffectAssertions

Inherited from Assertions

Inherited from CompileErrorMacro

Inherited from AnyRef

Inherited from Any

Ungrouped