Asserts

utest.asserts.Asserts
See theAsserts companion trait

Macro implementation that provides rich error message for boolean expression assertion.

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Asserts.type

Members list

Value members

Concrete methods

def assertImpl(funcs0: AssertEntry[Boolean]*): Unit
def assertMatchImpl(entry: AssertEntry[Any])(pf: PartialFunction[Any, Unit]): Unit

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.

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.

Attributes

def assertThrowsImpl[T : ClassTag](entry: AssertEntry[Unit]): T

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.

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.

Attributes

Inherited methods

def assertMatchProxy(t: Expr[Any], pf: Expr[PartialFunction[Any, Unit]])(using ctx: Quotes): Expr[Unit]

Attributes

Inherited from:
AssertsCompanionVersionSpecific
def assertProxy(exprs: Expr[Seq[Boolean]])(using ctx: Quotes): Expr[Unit]

Attributes

Inherited from:
AssertsCompanionVersionSpecific
def assertThrowsProxy[T](expr: Expr[Unit])(using Quotes, Type[T]): Expr[T]

Attributes

Inherited from:
AssertsCompanionVersionSpecific
def compileErrorImpl(errors: List[Error], snippet: String): CompileError

Attributes

Inherited from:
AssertsCompanionVersionSpecific