FirstMatchers

Provides utility functions for matching against First instances.

Functions

Link copied to clipboard
fun <M, F> hasEffects(vararg effects: F): Matcher<First<M, F>>

Returns a matcher that matches if all the supplied effects are present in the supplied First, in any order. The First may have more effects than the ones included.

fun <M, F> hasEffects(matcher: Matcher<Iterable<F>>): Matcher<First<M, F>>

Returns a matcher that matches First instances whose effects match the supplied effect matcher.

Link copied to clipboard
fun <M, F> hasModel(expected: M): Matcher<First<M, F>>

Returns a matcher that matches First instances with a model that is equal to the supplied one.

fun <M, F> hasModel(matcher: Matcher<M>): Matcher<First<M, F>>

Returns a matcher that matches First instances with a model that matches the supplied model matcher.

Link copied to clipboard
fun <M, F> hasNoEffects(): Matcher<First<M, F>>

Returns a matcher that matches First instances with no effects.