trait Asserts extends AssertsVersionSpecific
- Alphabetic
- By Inheritance
- Asserts
- AssertsVersionSpecific
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- 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
- 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
- macro 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
- Definition Classes
- AssertsVersionSpecific
- macro 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.
- Definition Classes
- AssertsVersionSpecific
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- macro 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.
- Definition Classes
- AssertsVersionSpecific
- macro 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.
- Definition Classes
- AssertsVersionSpecific
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- macro 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.
- Definition Classes
- AssertsVersionSpecific
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- macro 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
AssertionErroris raised if the expected exception does not appear.- Definition Classes
- AssertsVersionSpecific
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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()
- final def retry[T](n: Int)(body: => T): T
- Annotations
- @tailrec()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()