hasModel

fun <M, F> hasModel(): Matcher<Next<M, F>>

Returns a matcher that matches Next instances with a model.

Parameters

M

the model type

F

the effect type


fun <M, F> hasModel(expected: M): Matcher<Next<M, F>>

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

Parameters

expected

the expected model

M

the model type

F

the effect type


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

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

Parameters

matcher

the matcher to apply to the model

M

the model type

F

the effect type