[erlang-questions] Mocking I/O calls - defining sequence of returns

Tim Watson watson.timothy@REDACTED
Mon May 23 12:07:51 CEST 2011


On 23 May 2011 10:51, Dmitry Demeshchuk <demeshchuk@REDACTED> wrote:
> You can use meck and process dictionary combination, for example:

That's a bit dangerous if the module under test gets called from
multiple processes though, which is often (perhaps even normally?) the
case. For very simple cases it might be ok though, as you say.



More information about the erlang-questions mailing list