[erlang-questions] how to override meck passthrough

Dror Mein drormein@REDACTED
Tue Dec 9 18:39:28 CET 2014

thank you. that what I thought - stupid bugs (wrong arity) cause you to question your knowledge.  

     On Tuesday, December 9, 2014 7:23 PM, Fred Hebert <mononcqc@REDACTED> wrote:

 On 12/09, Dror Mein wrote:
> I read in the meck readme that you can override a meck passthrough for a single meck:expect.how is it done?Thanks

You just directly delcare the meck expect as usual.

The difference is that without the passthrough option, you'll have a
module that contains *only* the mocked calls. With passthrough, all the
calls will be there, but each expect will override existing ones.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20141209/26b9d631/attachment.htm>

More information about the erlang-questions mailing list