utest.asserts

Asserts

trait Asserts extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Asserts
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. implicit class ArrowAssert extends AnyRef

    Provides a nice syntax for asserting things are equal, that is pretty enough to embed in documentation and examples

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def assert(exprs: Boolean*): Unit

    Checks that one or more expressions are true; otherwises raises an exception with some debugging info

    Checks that one or more expressions are true; otherwises raises an exception with some debugging info

    Annotations
    @macroImpl( ... )
  8. def assertMatch(t: Any)(pf: PartialFunction[Any, Unit]): Unit

    Asserts that the given value matches the PartialFunction.

    Asserts that the given value matches the PartialFunction. Useful for using pattern matching to validate the shape of a data structure.

    Annotations
    @macroImpl( ... )
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def compileError(expr: String): CompileError

    Asserts that the given expression fails to compile, and returns a utest.CompileError containing the message of the failure.

    Asserts that the given expression fails to compile, and returns a utest.CompileError containing the message of the failure. If the expression compile successfully, this macro itself will raise a compilation error.

    Annotations
    @macroImpl( ... )
  11. def continually(exprs: Boolean*): Unit

    Checks that one or more expressions all remain true within a certain period of time.

    Checks that one or more expressions all remain true within a certain period of time. Polls at a regular interval to check this.

    Annotations
    @macroImpl( ... )
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  14. def eventually(exprs: Boolean*): Unit

    Checks that one or more expressions all become true within a certain period of time.

    Checks that one or more expressions all become true within a certain period of time. Polls at a regular interval to check this.

    Annotations
    @macroImpl( ... )
  15. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  18. def intercept[T](exprs: Unit)(implicit arg0: ClassTag[T]): T

    Asserts that the given block raises the expected exception.

    Asserts that the given block raises the expected exception. The exception is returned if raised, and an AssertionError is raised if the expected exception does not appear.

    Annotations
    @macroImpl( ... )
  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  23. final def retry[T](n: Int)(body: ⇒ T): T

    Annotations
    @tailrec()
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped