moka
moka copied to clipboard
A mocking (more precisely moking) framework for erlang
The simplest idea of just having a counter is poorly implemented and causing problems. Last one: https://github.com/samuelrivas/moka/pull/18 Some thoughts: - Either name the handler after the moka plus a counter...
There was an obvious bug found by stwind, and maybe there are more. Use proper to check that mokas don't interact in a funny way
It is a bit heterogeneous, using analyse for exports and plain mapping for substitutions. Also it sucks to be converting back and forth from forms all the time