Predicate

data class Predicate(val description: String, val predicate: (Status) -> Boolean) : StatusMatcher(source)

Delegates to an arbitrary predicate with a human-readable description.

Constructors

Link copied to clipboard
constructor(description: String, predicate: (Status) -> Boolean)

Properties

Link copied to clipboard

Human-readable explanation used in generated documentation.

Link copied to clipboard

Callback used to evaluate the matcher.

Functions

Link copied to clipboard
open operator override fun invoke(p1: Status): Boolean

Delegates status matching to predicate.