Predicate

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

Custom matcher backed by an arbitrary predicate.

description exists because the predicate itself cannot be rendered meaningfully in generated documentation, error messages, or code.

Constructors

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

Properties

Link copied to clipboard

Human-readable explanation of the matching rule.

Link copied to clipboard

Callback that decides whether a status selects the output.

Functions

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

Delegates matching to predicate.