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
Rewrite exception handling so that exceptions look like they come from the mocked module.
1> meck:new(test, [no_link]).
ok
2> Foo = fun(A) when is_integer(A) -> bar end.
#Fun<erl_eval.6.80247286>
3> meck:expect(test, foo, Foo).
ok
4> test:foo(a).
** exception error: no function clause matching
erl_eval:'-inside-an-interpreted-fun-'(a)
Exception should look like the following:
4> test:foo(a).
** exception error: no function clause matching
test:foo(a)
The text was updated successfully, but these errors were encountered:
Rewrite exception handling so that exceptions look like they come from the mocked module.
Exception should look like the following:
The text was updated successfully, but these errors were encountered: