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)
anything goes here. - Argument of a certain type
- (TODO) Don’t allow anyone, just arguments that are
ofType. - Assertions with an argument
- Using
withArgto run assertions inverifycalls. - Custom matching functions
- (TODO) Adding additional matchers with the
matchfunction. - Capture arguments to check later
- (TODO)
capturearguments out of stubs and verify calls into aslot. - Variable arguments
- (TODO) Matching variable arguments with
anyVarargand more. - Comparables
- Matching smaller numbers, bigger numbers, and
more. - Combine matchers
- (TODO) Logical operators
and,or,notfor matchers.