mockgyver
mockgyver copied to clipboard
A mocking library for Erlang
Warn (or fail) when unused mocks are detected. This shall be done in a way that causes no false warnings. It is for example not enough to plug in a...
I'm mocking a function something like this: ``` erlang ?WHEN(m:f(a, b) -> ok), ``` The function I'm testing calls the mocked function multiple times. With the mock above, the return...
Today one can use the ?WHEN macro, both to create new modules and override the behaviour of existing ones. This has the benefit that it _is_ possible to add new...