Releases: eranpeer/FakeIt
Releases · eranpeer/FakeIt
2.4.1
2.4.0
- Changed the build system to CMake, added the necessary code to install the library with CMake. For more information, check the README. #192 #311 #315
- Added mocking of reference-qualified overloads through
RefOverloadedMethod,ConstRefOverloadedMethod,RValRefOverloadedMethod,ConstRValRefOverloadedMethod. #293 #309 #316 - Fixed mocking of destructors in MSVC. #312
- Fixed
Spy()in MSVC. #312 - Fixed detection of the C++ standard in MSVC. #317
- Improved support of UndefinedBehaviorSanitizer / AddressSanitizer, the library should now be usable with these sanitizers enabled. #261 #318
- Added more installation instructions in the README. #291 #314
- Improved the CI to test the library with a lot more configurations. #313
2.3.2
2.3.1
- Automatically fake the destructor of mocks on MSVC, you no longer need to do it yourself. The behavior is now the same as for Clang / GCC #289
- Allow stubbing of functions with move-only return values #282
- Extended lifetime of mock actions to fix some rare segfaults #301
- Fixed a compilation error when trying to mock functions taking a vector of move-only objects #298
- Fixed a compilation error when using
ReturnAndSetfor a type convertible but not assignable to the type of the parameter #295 - Fixed name collision with macro for some template parameters #300
- Fixed some compilation issues on MSVC #290
- Fixed a rare compilation error #299
2.3.0
2.2.0
- BREAKING: Changed
Spy()method to copy arguments instead of moving them. The goal is to be able to keep the value so they can beVerify()ed later. To forward them instead (for move-only types), you can useSpyWithoutVerify(), but then you won't be able to useVerify()on these methods #272 - Added an
ApproxEq()matcher, that match numeric values with some margin #271 - Rewrote matcher code to be able to store a different type than the type that is checked, and to perfect-forward the value stored instead of always copying it. Fix object slicing and matching move-only types #268
- Fixed mocking for some kind of functions (templated overloaded methods) #267