object WheneverAsserting extends ExpectationWheneverAsserting
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
.
- Source
- WheneverAsserting.scala
- Alphabetic
- By Inheritance
- WheneverAsserting
- ExpectationWheneverAsserting
- UnitWheneverAsserting
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- implicit def assertingNatureOfAssertion: WheneverAsserting[Assertion] { type Result = org.scalatest.Assertion }
- implicit def assertingNatureOfFutureAssertion: WheneverAsserting[Future[Assertion]] { type Result = scala.concurrent.Future[org.scalatest.Assertion] }
- Definition Classes
- ExpectationWheneverAsserting
- implicit def assertingNatureOfT[T]: WheneverAsserting[T] { type Result = Unit }
Provides support of WheneverAsserting for Unit.
Provides support of WheneverAsserting for Unit. Return
Unit
when the check succeeds, but throw DiscardedEvaluationException when check fails.- Definition Classes
- UnitWheneverAsserting