Package-level declarations

Types

Link copied to clipboard

Base class for creating matchers for arrays. It allows creating single implementation for all array types using matchesElements.

Link copied to clipboard

Contains matchers for collections

Functions

Link copied to clipboard
fun <T, R : Iterable<T>> MokkeryMatcherScope.containsAll(predicate: (T) -> Boolean): R

Matches an Iterable with all elements matching predicate

Link copied to clipboard

Matches a BooleanArray with all elements matching predicate

Link copied to clipboard

Matches a ByteArray with all elements matching predicate

Link copied to clipboard

Matches a CharArray with all elements matching predicate

Link copied to clipboard

Matches a DoubleArray with all elements matching predicate

Link copied to clipboard

Matches an Array with all elements matching predicate

Link copied to clipboard

Matches a FloatArray with all elements matching predicate

Link copied to clipboard

Matches a IntArray with all elements matching predicate

Link copied to clipboard

Matches a LongArray with all elements matching predicate

Link copied to clipboard

Matches a ShortArray with all elements matching predicate

Link copied to clipboard

Matches a UByteArray with all elements matching predicate

Link copied to clipboard

Matches a UIntArray with all elements matching predicate

Link copied to clipboard

Matches a ULongArray with all elements matching predicate

Link copied to clipboard

Matches a UShortArray with all elements matching predicate

Link copied to clipboard
fun <T, R : Iterable<T>> MokkeryMatcherScope.containsAny(predicate: (T) -> Boolean): R

Matches an Iterable with any element matching predicate

Link copied to clipboard

Matches a BooleanArray with any element matching predicate

Link copied to clipboard

Matches a ByteArray with any element matching predicate

Link copied to clipboard

Matches a CharArray with any element matching predicate

Link copied to clipboard

Matches a DoubleArray with any element matching predicate

Link copied to clipboard

Matches an Array with any element matching predicate

Link copied to clipboard

Matches a FloatArray with any element matching predicate

Link copied to clipboard

Matches an IntArray with any element matching predicate

Link copied to clipboard

Matches a LongArray with any element matching predicate

Link copied to clipboard

Matches a ShortArray with any element matching predicate

Link copied to clipboard

Matches a UByteArray with any element matching predicate

Link copied to clipboard

Matches a UIntArray with any element matching predicate

Link copied to clipboard

Matches a ULongArray with any element matching predicate

Link copied to clipboard

Matches a UShortArray with any element matching predicate

Link copied to clipboard

Matches an Array that is equal to array with contentDeepEquals.

Link copied to clipboard

Matches an Array that has the same content as array.

Matches an BooleanArray that has the same content as array.

Matches an ByteArray that has the same content as array.

Matches an CharArray that has the same content as array.

Matches an DoubleArray that has the same content as array.

Matches an FloatArray that has the same content as array.

Matches an IntArray that has the same content as array.

Matches an LongArray that has the same content as array.

Matches an ShortArray that has the same content as array.

Matches an UByteArray that has the same content as array.

Matches an UIntArray that has the same content as array.

Matches an ULongArray that has the same content as array.

Matches an UShortArray that has the same content as array.

Link copied to clipboard
fun <T> MokkeryMatcherScope.isIn(vararg values: T): T

Matches argument that is present in values.

Link copied to clipboard
fun <T> MokkeryMatcherScope.isNotIn(vararg values: T): T

Matches argument that is not present in values.