eranpeer / FakeIt

C++ mocking made easy. A simple yet very expressive, headers only library for c++ mocking.
MIT License
1.24k stars 170 forks source link

Possibility to set side effects on mocks #122

Open an-ky opened 6 years ago

an-ky commented 6 years ago

FakeIt looks awesome and I'd like to use it in my code but I'm missing a feature to mock side effects like the way GoogleMock, trompeoloeil or other frameworks allow. I.e. capturing parameters of mock calls in variables. Did I just miss it in the documentation or is it not possible?

FranckRJ commented 2 years ago

With the Do() stubbing you can pass a lambda and do whatever you want you the parameters. Is that what you want?