If you have some code under test that expect to call a gen_server to get some values, this project allow you to create a mocked gen_server quickly and succinctly.
Emock supports two kinds of mocks, stateless and statefull mocks. Stateful ones have an internal state so that they can do more complex mocking. But you dont really want to introduce more logic in a test and end up testing the testing logic more than the code under test.
Christian Sunesson.
Find emock at github.
Not much but some emock documentation at github.
My github page.
The Erlang Public License, its similar to the Mozilla public license in terms. You should find it and read it if you’re worried about these things.