We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
Is there any way to mock static methods of the class. I've tried but it fails. Basically
FAKE_VOID_FUNC(BaselineCalib::setModel)
where setModel is a static method of BaselineCalib class. Now it returns with the error
tests/fff.h:154:36: error: qualified name does not name a class before '{' token 154 | typedef struct FUNCNAME##_Fake { \
The text was updated successfully, but these errors were encountered:
Hi, just passing by. FFF is supposed to be used for C, not C++. For C++ better use GoogleTest, CppUTest, etc.
Sorry, something went wrong.
True, although I have a project that mixes C and C++ (with extern C) and then the standard mocking is almost impossible...
I haven't yet been in that situation, I guess using FFF for C and Google Mock for C++ is out of the question?
No branches or pull requests
Hi,
Is there any way to mock static methods of the class. I've tried but it fails. Basically
where setModel is a static method of BaselineCalib class. Now it returns with the error
The text was updated successfully, but these errors were encountered: