StoredExpectations

trait StoredExpectations extends Expectations with StandardResults

This trait evaluates expectations and stores them in a local variable for further usage

trait StandardResults
trait Expectations
trait ExpectationsDescription
trait TypedEqual
trait ExpectationsCreation
trait ResultChecks
trait MatchResultStackTrace
class Object
trait Matchable
class Any

Value members

Concrete methods

override def anError: Error

use a side-effect to register a standard result

use a side-effect to register a standard result

Definition Classes
StandardResults
override protected def checkResultFailure(r: => Result): Result
Definition Classes
ResultChecks
override def failure(message: String): Failure

use a side-effect to register a standard result

use a side-effect to register a standard result

Definition Classes
StandardResults
override def sandboxResult(r: => Result): Result
Definition Classes
ResultChecks
override def skipped(message: String): Skipped

use a side-effect to register a standard result

use a side-effect to register a standard result

Definition Classes
StandardResults
def storedResults: Seq[Result]

Inherited methods

def anError(message: String): Error
Inherited from
StandardResults
def createExpectable[T](t: => T, alias: String => String): Expectable[T]
Returns

an Expectable with a description function

Inherited from
ExpectationsCreation
def createExpectable[T](t: => T, alias: => String): Expectable[T]
Returns

an Expectable with a description

Inherited from
ExpectationsCreation
def createExpectable[T](t: => T): Expectable[T]
Returns

an Expectable

Inherited from
ExpectationsCreation
def createExpectable[T](t: => T, alias: Option[String => String]): Expectable[T]
Returns

an Expectable with a description function

Inherited from
ExpectationsCreation
def createExpectableWithShowAs[T](t: => T, showAs: => String): Expectable[T]
Returns

an Expectable with a function to show the element T

Inherited from
ExpectationsCreation
def done: Success
Inherited from
StandardResults
def failure: Failure
Inherited from
StandardResults
protected def mapResult(r: Result): Result

this method can be overridden to intercept a Result and modify it. It is used for example to set a stacktrace providing the location of a failure

this method can be overridden to intercept a Result and modify it. It is used for example to set a stacktrace providing the location of a failure

Inherited from
ResultChecks
def pending[R](r: => R)(using evidence$1: AsResult[R]): Pending
Inherited from
StandardResults
def pending(message: String): Pending
Inherited from
StandardResults
def pending: Pending
Inherited from
StandardResults
protected def setStacktrace(m: Result): Result

this method can be overridden to avoid filling-in a stacktrace indicating the location of the result

this method can be overridden to avoid filling-in a stacktrace indicating the location of the result

Inherited from
MatchResultStackTrace
def skipped[R](r: => R)(using evidence$2: AsResult[R]): Skipped
Inherited from
StandardResults
def skipped: Skipped
Inherited from
StandardResults
def success(message: String): Success
Inherited from
StandardResults
def success: Success
Inherited from
StandardResults
def theBlock(t: => Nothing): Expectable[Nothing]
Inherited from
ExpectationsCreation
def theValue[T](t: => T): Expectable[T]
Inherited from
ExpectationsCreation
def todo: Pending
Inherited from
StandardResults
def wontdo: Success
Inherited from
StandardResults

Extensions

Inherited extensions

extension (description: String)
def <==>[T](using not: NotGiven[NoExpectationsDescription])(result: => T)(using evidence$2: AsResult[T]): Result
Inherited from
ExpectationsDescription
def ==>[T](using not: NotGiven[NoExpectationsDescription])(result: => T)(using evidence$1: AsResult[T]): Result
Inherited from
ExpectationsDescription
extension (t: => T)
def !==[T](using not: NotGiven[NoTypedEqual])(other: => T)(using evidence$2: Diffable[T]): Result

! equality matcher on Expectables

! equality matcher on Expectables

Inherited from
TypedEqual
def ===[T](using not: NotGiven[NoTypedEqual])(other: => T)(using evidence$1: Diffable[T]): Result

equality matcher on Expectables

equality matcher on Expectables

Inherited from
TypedEqual
extension (value: => T)
def showAs[T](using not: NotGiven[NoValueDescription], show: T => String): Expectable[T]
Returns

an expectable with a function to show the element T

Inherited from
ExpectationsDescription
extension (value: => T)
def aka[T](using not: NotGiven[NoValueDescription])(alias: => String): Expectable[T]
Returns

an expectable with an alias description

Inherited from
ExpectationsDescription
def aka[T](using not: NotGiven[NoValueDescription]): Expectable[T]
Returns

an expectable with its toString method as an alias description this is useful to preserve the original value when the matcher using it is adapting the value

Inherited from
ExpectationsDescription
def as[T](using not: NotGiven[NoValueDescription])(alias: String => String): Expectable[T]
Returns

an expectable with an alias description, after the value string

Inherited from
ExpectationsDescription
def post[T](using not: NotGiven[NoValueDescription])(alias: => String): Expectable[T]
Returns

an expectable with an alias description, after the value string

Inherited from
ExpectationsDescription
def showAs[T](using not: NotGiven[NoValueDescription])(show: T => String, p: ImplicitParam): Expectable[T]
Returns

an expectable with a function to show the element T

Inherited from
ExpectationsDescription