-
-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
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
Passthrough crashes without +debug_info #14
Comments
Reproduced. The resolution would be to make new fail, right? |
Yes, with a more informative error. |
Hi, This is still actual in version 0.8.2 however I have a little bit precise description of an issue. I compile mymod with rebar with options
Then I execute the test I expect meck uses As a result when I run following commands. Meck fails:
However if I delete Do you have an ideas what could be wrong? |
First thought is that maybe both folders are on the path, with Nothing is done about this yet in Meck, unfortunately. Some starting points:
Preferably the solution is to bail out somewhere earlier, for example when detecting that there is no abstract code for the original module. In that case, the |
Yeah, you were right about the path. It's because I'm using I run it like I expect that application path would be like
In fact rebar makes it
Shame on me... All in all I think that this not a meck issue. Thanks for your help and sorry for disturb. |
Thanks for looking into it. Contributions for enhancing the error message are still welcome! |
Closing because of inactivity. Please re-open if it is still an issue! |
When
meck:new(Mod, [passthrough])
is called to mock a module that is not compiled with+debug_info
it will still return ok.When a call is made to a function in that module it crashes:
The fault is that the renamed original was never created.
The text was updated successfully, but these errors were encountered: