simple matcher
- _: The “don’t care” matcher. Matches any value.
- Eq(value): Matches a value that is equal to the specified value.
- Ne(value): Matches a value that is not equal to the specified value.
- Gt(value): Matches a value that is greater than the specified value.
- Lt(value): Matches a value that is less than the specified value.
- Ge(value): Matches a value that is greater than or equal to the specified value.
- Le(value): Matches a value that is less than or equal to the specified value.
- StrEq(string): Matches a string that is equal to the specified string.
- StrNe(string): Matches a string that is not equal to the specified string.
Combining Matchers
- AllOf(m1, m2, …, mn): argument matches all of the matchers m1 to mn
- AnyOf(m1, m2, …, mn): argument matches at least one of the matchers m1 to mn
- Not(m): argument doesn’t match matcher m
- Conditional(cond, m1, m2): Matches matcher m1 if cond evaluates to true, else matches m2