sheyll/erlymock — pull request #7 by cypherfox (2013-08-19 11:05:35+00:00)
Title: add feature for call log

Hi there,

I added a feature to retrieve a call log at any point prior to calling verify/1.

The function call_log/1 will return a list of all calls to mocked functions thus far.

I thought about returning the log from a call to verify/1 as well, but did not want to change existing behavior.

The answers currently are not evaluated, as they may react differently when exexuted in the context of the mocked module, and calling them multiple times may trigger side effects. I thought about signaling them to the fsm as well, but did not need this, so have not implemented it. I also wanted to make small incremental changes.

mfg lutz