and

inline fun <T> ArgMatchersScope.and(first: T, second: T, vararg moreMatchers: T): T

Matches argument that satisfies all the matchers (first, second and all from moreMatchers). It must not receive literals. Only matchers allowed!

Example:

// matches every `getForIndex` with arg that is in range 1..4
every { dependency.getForIndex(and(gte(1), lte(4))) }