object WheneverAsserting extends UnitWheneverAsserting
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
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- WheneverAsserting
- UnitWheneverAsserting
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
- implicit def assertingNatureOfAssertion: WheneverAsserting[Assertion] { type Result = org.scalatest.Assertion }
-
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