I was looking for a way to grab the result of a mocked call. Currently, I'm just peeking into meck:history().
So I went to implement something like meck:capture(..., result), when I noticed that meck_history:result() exists. It was added in #163.
But it was demoted from the top-level meck API. I think this was a mistake -- it ought to be at the same level of abstraction as meck:capture.
Can we put it back? Or can we make meck:capture take ArgNum | result...?
I was looking for a way to grab the result of a mocked call. Currently, I'm just peeking into
meck:history().So I went to implement something like
meck:capture(..., result), when I noticed thatmeck_history:result()exists. It was added in #163.But it was demoted from the top-level
meckAPI. I think this was a mistake -- it ought to be at the same level of abstraction asmeck:capture.Can we put it back? Or can we make
meck:capturetakeArgNum | result...?