Google Test v1.10.0

Google Test v1.10.0

Sergey Abbakumov

Relatively recently Google has released Google C++ Test/Mock framework v1.10.0 for unit testing.


Key feature: now you do not need to specify the number of arguments for the overridden method of the mock class. That is, instead of

MOCK_METHOD1(Bar, double(std::string s));


you can simply write

MOCK_METHOD(double, Bar, (std::string s), (override));


More details: https://github.com/google/googletest/blob/72adf7a4155b6642da1e6761678fe546590c0269/googlemock/docs/cook_book.md#creating-mock-classes


Telegram channel: https://t.me/sea_plus_plus

Report Page