Posted on Wednesday, 8th October 2008 by charpi
In my previous post, I wrote a test to specify a lazy mock. In my mind, a lazy mock consists to replace the implementation of one module by another one at runtime. Here is the implementation of the lazy mock test -module(mock). -export([replace_module /2]). replace_module (Module, Mock_module) -> uninstall (Module), {ok, Binary} = file: read_file [...]
Tags: erlang, mock object
Posted in Uncategorized | Comments (1,829)
