It is a simple library for mocking eredis queries in tests. It really terrible to use real redis for tests, especially for unit-tests, so this library allows to mock particular queries for eredis.
{ok, Pid} = eredis_mock:start_link(),
Request = ["SET", "key", "value"],
Response = {ok, <<"MOCK">>},
eredis_mock:set_mock(Redis, Request, Response),
?assertEqual(Response, eredis:q(Redis, Request)),
$ rebar3 compile