matchStatus

fun matchStatus(description: String, predicate: (Status) -> Boolean): StatusMatcher(source)

Builds a StatusMatcher using an arbitrary predicate with description.

Return

matcher delegating matching logic to predicate.

Parameters

description

human readable description that surfaces in generated code and documentation.

predicate

predicate invoked to determine whether a status matches.

See also