-
Notifications
You must be signed in to change notification settings - Fork 34
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
Unable to stub Integer.to_string/2
#28
Comments
@bterone thanks for the detailed bug report. Out of interest, can you try stubbing |
Hi, thanks for taking your time to respond 😄 , I'm a bit unsure how to copy the |
Hey @bterone. All module names in Elixir and Erlang are atoms. You should just be able to do |
I think in general we want to avoid touching the standard lib. I guess we could add a validation to We can probably get all Elixir modules using this:
Not sure about Erlang though |
Oh I agree. I just thought it was worth seeing if this fixed it because it may hint at something weird about the compiler inlining. |
Hi @jimsynz, I've tried using
When checking that line that was causing the issue Even modifying the
Not really sure if it's even possible to copy |
Issue
Trying to stub the
Integer.to_string/2
method does not work.Environment
Steps to reproduce
It seems the above test will fail, but if it's for some other method, like
Integer.digits/1
it passes.Not really sure what could be the issue without further investigation. 🤔
EDIT: I'll be more than happy to open an example repo reproducing the issue 😄
The text was updated successfully, but these errors were encountered: