Closed tiagodavi closed 3 months ago
Hi there. This is a dupe of #27. Unfortunately it's impossible for Mimic to hook intra-module function calls because BEAM optimises this case and jumps directly to the appropriate bytecode.
Thanks, @jimsynz . As @jimsynz said there's not much we can do about that. The code must call the fully qualified name Transactions.delete_something
or it won't be possible to be stubbed.
Maybe it's worth adding something to the README.md? :thinking:
Hey Folks. I noticed Mimic is not able to see a function when this function is called without its module name. For example:
To fix this we need to call this way:
__MODULE__.delete_something(guids)
Can I open a PR to fix this? What do you folks think?