You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes I need to capture a mocked function's arguments and then compare them to the nth time that that function was called. It was able to accomplish this by dropping down to :meck but it would be nice if there were a helper macro / function
Workaround Example
# something called MyMockedModule.myfunc 2 times # and I want to make sure that the params are the same both times[{_,{_,:myfunc,args0},_},{_,{_,:myfunc,args1},_}]=unquote(MyMockedModule)|>:meck.history()assertMap.equal?(args0,args1)
The text was updated successfully, but these errors were encountered:
Sometimes I need to capture a mocked function's arguments and then compare them to the nth time that that function was called. It was able to accomplish this by dropping down to
:meck
but it would be nice if there were a helper macro / functionWorkaround Example
The text was updated successfully, but these errors were encountered: