Converts this Outcome
to a Succeeded
.
Converts this Outcome
to a Succeeded
.
When this Outcome
instance is not Succeeded, it behaves as followed:
Succeeded if this Outcome
instance is a Succeeded.
Indicates whether this Outcome
represents a test that was canceled.
Indicates whether this Outcome
represents a test that was canceled.
This class's implementation of this method always returns false
.
true if this Outcome
is an instance of Canceled
.
Indicates that this Outcome
represents a test that either failed or was canceled.
Indicates that this Outcome
represents a test that either failed or was canceled.
true
Indicates whether this Outcome
represents a test that failed.
Indicates whether this Outcome
represents a test that failed.
This class's implementation of this method always returns false
.
true if this Outcome
is an instance of Failed
.
Indicates whether this Outcome
represents a test that was pending.
Indicates whether this Outcome
represents a test that was pending.
This class's implementation of this method always returns false
.
true if this Outcome
is an instance of Pending
.
Indicates whether this Outcome
represents a test that succeeded.
Indicates whether this Outcome
represents a test that succeeded.
This class's implementation of this method always returns false
.
true if this Outcome
is an instance of Succeeded
.
Converts this Exceptional
to a Some
that wraps the contained exception.
Converts this Exceptional
to a Some
that wraps the contained exception.
A Some
wrapping the exception contained in this Exceptional
.
Superclass for the two outcomes of running a test that contain an exception:
Failed
andCanceled
.This class provides a
toOption
method that returns aSome
wrapping the contained exception, and anisExceptional
field with the valuetrue
. It's companion object provides an extractor that enables patterns that match a test that either failed or canceled, as in: