PureharmAssertions

Authors
Since

24 Jun 2020

class Object
trait Matchable
class Any

Value members

Concrete methods

def assertLeft[L](a: Either[L, _])(expected: L)(loc: Location): Unit
def assertRight[R](a: Either[_, R])(expected: R)(loc: Location): Unit
def assertSome[T](o: Option[T])(expected: T)(loc: Location): Unit
def assertSuccess[T](a: Attempt[T])(expected: T)(loc: Location): Unit
def interceptFailure[E <: Throwable](a: Either[Throwable, _])(ct: ClassTag[E], loc: Location): E
def interceptFailureMessage[E <: Throwable](expectedExceptionMessage: String)(a: Either[Throwable, _])(ct: ClassTag[E], loc: Location): E

Deprecated methods

@deprecated("Use interceptFailure", "0.2.0")
def assertFailure[E <: Throwable](a: Either[Throwable, _])(ct: ClassTag[E], loc: Location): E
Deprecated