Promox.defmock
You're seeing just the macro
defmock
, go back to Promox module for more information.
Enables mock :for
the given protocol.
Caveats
Since defmock/1
is a macro, so remember to require Promox
before calling Promox.defmock/1
.
require Promox
Promox.defmock(for: MyProtocol)