Argument matching #
Argument matchers are placeholders use to specify what values can be used in a function. They can be used with stubs and verification.
- Check equality
- (TODO) Checking if an argument is equal using
eq
,refEq
,isNull
, and more. - Allow any argument
- (TODO)
any
thing goes here. - Argument of a certain type
- (TODO) Don’t allow anyone, just arguments that are
ofType
. - Assertions with an argument
- Using
withArg
to run assertions inverify
calls. - Custom matching functions
- (TODO) Adding additional matchers with the
match
function. - Capture arguments to check later
- (TODO)
capture
arguments out of stubs and verify calls into aslot
. - Variable arguments
- (TODO) Matching variable arguments with
anyVararg
and more. - Comparables
- Matching smaller numbers, bigger numbers, and
more
. - Combine matchers
- (TODO) Logical operators
and
,or
,not
for matchers.