Hi Michael,
Sorry for very late response.
I tried mecking the module in erl shell.
In list passing style for expected arguments, Pid in call should
be the same term you passed in expect call, unless function_clause
is thrown.
> Pid = self().
<0.43.0>
> meck:expect(riakc_pb_socket, get, [Pid, {<<"
Hi all,
I'm trying to meck riakc_pb_socket:get/3 in my eunit tests, and
consistently get a function_clause error.
The meck:expect looks like:
meck:expect(riakc_pb_socket, get, [Pid, ?RIAK_TYPE_AND_BUCKET,
?TestOid], {ok, ?TestRiakObject}),
where Pid is a pid, the macro ?RIAK_TYPE_AND_BUCKE