MockeryExtras
Additions to mockery that may
make your programming life a bit more pleasant.
Provides:
A simple way to stub function calls:
use Given given Map.get(%{}, :key), return: "5" given Map.get(@any, :key), return: "5"Easy definition of getters for complex structures, plus support code for insulating client code and tests from details of that structure. See Stubbing Complex Structures.
Installation
Add mockery_extras to your list of dependencies in mix.exs:
def deps do
[
{:mockery_extras, "~> 0.2.0"}
]
endDocumentation is at https://hexdocs.pm/mockery_extras.