AllThat

class AllThat<T>(type: KClass<*>, predicate: (T) -> Boolean) : VarArgMatcher.Base<T>

Matches a sequence of varargs with all elements matching the predicate.

Parameters

type

of vararg element to provide vararg type information in AllThat.toString

Constructors

Link copied to clipboard
constructor(type: KClass<*>, predicate: (T) -> Boolean)

Functions

Link copied to clipboard
override fun matches(arg: Any?): Boolean
Link copied to clipboard
open override fun matchesVarargs(varargs: List<T>): Boolean
Link copied to clipboard

Helper function to propagate capture for dev.mokkery.matcher.ArgMatcher.Composite.

Link copied to clipboard
open override fun toString(): String