maraino / go-mock

A mocking framework for the Go Programming Language.
MIT License
35 stars 12 forks source link

Fix Call returning the first set of values each time when called #13

Closed telyn closed 6 years ago

telyn commented 6 years ago

Fixes the issue I reported (#12) where calling a function which is mocked using MockFunction.Call and may return different values each time only ever returns the values from the first invocation (despite the function passed to MockFunction.Call being invoked again)

maraino commented 6 years ago

Oops, I've just seen this PR, and I already fixed when I saw your issue. Take a look to https://github.com/maraino/go-mock/commit/a5453621342afce7f84b8478754ab02ff32c9c0a

It's almost the same fix.

telyn commented 6 years ago

Aw thanks! :) Wasn't expecting you to be so quick! ❤️