WheneverAsserting

Companion object to WheneverAsserting that provides two implicit providers, a higher priority one for passed functions that have result type Assertion, which also yields result type Assertion, and one for any other type, which yields result type Unit.

Companion:
class
class Object
trait Matchable
class Any

Implicits

Implicits

Inherited implicits

implicit def assertingNatureOfFutureAssertion: WheneverAsserting[Future[Assertion]] { type Result = Future[Assertion]; }
implicit def assertingNatureOfT[T]: WheneverAsserting[T] { type Result = Unit; }

Provides support of WheneverAsserting for Unit. Return Unit when the check succeeds, but throw DiscardedEvaluationException when check fails.

Provides support of WheneverAsserting for Unit. Return Unit when the check succeeds, but throw DiscardedEvaluationException when check fails.

Inherited from:
UnitWheneverAsserting