AllFilter matches only when every filter in its list
matches. This is the usual way to narrow a hook to one specific call.
Parameters
table
An array of filters. Defaults to an empty list, which always matches.
Properties
table
The array of filters. You can mutate this table in place — inserting or
removing entries changes matching immediately.
Behavior
- Empty always matches.
AllFilter.new()andAllFilter.new({})match every call, since there is no condition to fail. - Short-circuits. Evaluation stops at the first failure.
- Non-filter entries are ignored as non-matching, which makes an
AllFiltercontaining junk fail to match.