Trait/Object

utest.asserts

Asserts

Related Docs: object Asserts | package asserts

Permalink

trait Asserts extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Asserts
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. implicit class ArrowAssert extends AnyRef

    Permalink

    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: 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. macro def assert(exprs: Boolean*): Unit

    Permalink

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

  6. macro def assertMatch(t: Any)(pf: PartialFunction[Any, Unit]): Unit

    Permalink

    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.

  7. def clone(): AnyRef

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

    Permalink

    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.

  9. macro def continually(exprs: Boolean*): Unit

    Permalink

    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.

  10. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. macro def eventually(exprs: Boolean*): Unit

    Permalink

    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.

  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. def hashCode(): Int

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

    Permalink

    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.

  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  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. final def retry[T](n: Int)(body: ⇒ T): T

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

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped