-
-
Notifications
You must be signed in to change notification settings - Fork 229
8000
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This PR is a working implementation to fix an issue with the args_matcher. I iniitally tried in #242 but never succeeded the 8000 re.
When asserting on calls to functions were the arguments are maps, the matching function returns a false positive, ie. matching on a 3 items map, even when the called function had 2.
Current issue
On
master
, the issue is in the MatchSpec that we send over toets:match_spec_run
:Changes
meck_util:match_spec_item
in the case that the some of the args to the function is a mapThis PR adds a new matching function
meck_util:match_spec_item()
that builds an erlang Match Specification in the case that any of the arguments given to the function are a map.I understand the complexity of
match_spec_item
is now way higher than it was before, opening this PR to hear your thoughts on it.