trait Asserts extends AnyRef
- Alphabetic
- By Inheritance
- Asserts
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
- 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.
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- 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.
- 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.
- 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.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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
AssertionError
is raised if the expected exception does not appear. - 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() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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(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()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])