Give a function with multiple clauses, I'd want to mock only a specific case and for every other input that would otherwise cause a 'function_clause' error, I'd want to have it handled by the original function. It's almost like a selective passthrough in erlang meck.
Erlang Meck: How does one mock only a specific function clause?
779 views Asked by sa___ At
1
You need to use
meck:passthrough/1
: I created a module with a function like this:Then on the consoleā¦
Hope this helps :)