MokkeryTemplatingScope
Scope for declaring call templates. It's used with dev.mokkery.every and dev.mokkery.verify. Currently, it's illegal to declare functions that accept this scope.
Example of a call template inside verify:
verify {
mock.call(any())
}Properties
Returns MokkeryCallHooks associated with this scope. See MokkeryCallHooks for details on hook scoping.
Functions
Matches any argument.
Matches a BooleanArray with all elements matching predicate
Matches a DoubleArray with all elements matching predicate
Matches a FloatArray with all elements matching predicate
Matches a ShortArray with all elements matching predicate
Matches a UByteArray with all elements matching predicate
Matches a ULongArray with all elements matching predicate
Matches a UShortArray with all elements matching predicate
Matches a BooleanArray with any element matching predicate
Matches a DoubleArray with any element matching predicate
Matches a FloatArray with any element matching predicate
Matches a ShortArray with any element matching predicate
Matches a UByteArray with any element matching predicate
Matches a ULongArray with any element matching predicate
Matches a UShortArray with any element matching predicate
Matches an Array that is equal to array with contentDeepEquals.
Matches an BooleanArray 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 ShortArray that has the same content as array.
Matches an UByteArray 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.
Matches argument that is greater than value.
Matches an argument that is greater than or equal to value.
Matches argument that is less than value.
Matches an argument that is less than or equal to value.
Matches argument that satisfies a matcher. Cannot be used with ArgMatcher.Composite. Use matchesComposite instead.
Matches an argument according to the predicate. Registered matcher Any.toString calls toString.
Matches an argument by calling given function. Also, it returns function name on Any.toString.
Matches argument that does not satisfy all given matchers (matcher and moreMatchers).
Short for capture with Capture.callback.