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

Move only arguments #77

Closed dgel closed 7 years ago

dgel commented 7 years ago

I've managed to get fakeit to work with move-only arguments in mocked functions. I'm not entirely sure of why this works however, so please be skeptical. Should fix #57 however

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 99.974% when pulling 46ed2fa468e529354e4da424fc0cc2ea502d2806 on dgel:move-only-arguments into ad413b5fb5de0403424dde81ce90b3c659a01c53 on eranpeer:master.

eranpeer commented 7 years ago

Thanks, simple and nice improvement.

bchougreen commented 7 years ago

This fix just saved me 2 days of work... I had just run into this problem with an earlier release of fakeit today and it was magically fixed. Thank you!

kapil-dhaimade commented 4 years ago

Hello, we're getting this same issue in the latest 2.0.5 release of FakeIt. Can you please help with this? Mocking a function which takes a unique_ptr as parameter gives us compilation error same as this ticket. Tested this on VS 2013 and VS 2019.