[erlang-questions] how to override meck passthrough

Fred Hebert <>
Tue Dec 9 18:23:14 CET 2014


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.

Regards,
Fred.


More information about the erlang-questions mailing list