sealed trait AssertResult[+A] extends Product with Serializable
An AssertResult[A] is the result of running an assertion on a value.
Assert results compose using logical && and || and all information will
be preserved to provide robust reporting of test results.
- Self Type
- AssertResult[A]
- Alphabetic
- By Inheritance
- AssertResult
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
&&[A1 >: A](that: AssertResult[A1]): AssertResult[A1]
Returns a new assert result that is the logical conjunction of this assert result and the specified assert result.
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
as[B](b: B): AssertResult[B]
Returns a new assert result, with all values mapped to the specified constant.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
final
def
both[A1 >: A](that: AssertResult[A1]): AssertResult[A1]
A named alias for
&&. -
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
collect[B](p: PartialFunction[A, B]): Option[AssertResult[B]]
Returns a new assert result with a filtered, mapped subset of the values in this assert result.
-
final
def
either[A1 >: A](that: AssertResult[A1]): AssertResult[A1]
A named alias for
||. -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
failures[B](implicit ev: <:<[A, Either[B, _]]): Option[AssertResult[B]]
If this assert value is a success returns
None.If this assert value is a success returns
None. If it is a failure returns a new assert value containing all failures that are relevant to this assert value being a failure. -
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
fold[B](caseValue: (A) ⇒ B)(caseAnd: (B, B) ⇒ B, caseOr: (B, B) ⇒ B): B
Folds over the assert result bottom up, first converting values to
Bvalues, and then combining theBvalues, using the specified functions. -
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
hashCode(): Int
- Definition Classes
- AssertResult → AnyRef → Any
-
final
def
isFailure(implicit ev: <:<[A, Either[_, _]]): Boolean
Determines whether the assert result is a failure, where
Leftrepresents failure,Rightrepresents success, and values are combined using logical conjunction and disjunction. -
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
isSuccess(implicit ev: <:<[A, Either[_, _]]): Boolean
Determines whether the assert result is a success, where
Leftrepresents failure,Rightrepresents success, and values are combined using logical conjunction and disjunction. -
final
def
map[B](f: (A) ⇒ B): AssertResult[B]
Returns a new assert result, with all values mapped by the specified function.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
not[B, C](implicit ev: <:<[A, Either[B, C]]): AssertResult[Either[C, B]]
Negates this assert result, converting all successes into failures and failures into successes.
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
productIterator: Iterator[Any]
- Definition Classes
- Product
-
def
productPrefix: String
- Definition Classes
- Product
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
||[A1 >: A](that: AssertResult[A1]): AssertResult[A1]
Returns a new assert result that is the logical disjunction of this assert result and the specified assert result.