ExpectationWheneverAsserting

org.scalatest.enablers.ExpectationWheneverAsserting

Abstract class that in the future will hold an intermediate priority WheneverAsserting implicit, which will enable inspector expressions that have result type Expectation, a more composable form of assertion that returns a result instead of throwing an exception when it fails.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object WheneverAsserting.type

Members list

Implicits

Implicits

implicit def assertingNatureOfExpectation: WheneverAsserting[Expectation] { type Result = Expectation; }
implicit def assertingNatureOfFutureAssertion: WheneverAsserting[Future[Assertion]] { type Result = Future[Assertion]; }

Inherited implicits

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.

Attributes

Inherited from:
UnitWheneverAsserting