A small library to write partial implementations of behaviours without warnings. Exercise care when using.
This was implemented for the use-case of Mox
stubs, where modules need to
implement the mocked behaviour. Sometimes, we wanted to use modules as stubs,
but without implementing all functions.
This library is available on Hex. Add to your deps:
{:incomplete_behaviour, "~> 1.0"}
Simply add use IncompleteBehaviour
in your module:
defmodule MyModule do
@behaviour MyBehaviour
use IncompleteBehaviour
end