You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
does anybody maintain this project actively?
There is very little activity on this project.
I have to mock a function with default arguments. But it doesn't work with define CXXTEST_MOCK. It produces redefinition errors (default values in definitions) in test source file. I've tried the compilers xlC and g++. So it's not only an issue with our used xlC compiler.
For the real source file the default value has to be defined in Prototype/ARGS argument of CXXTEST_MOCK.
But in the test source file the CXXTEST_MOCK expands to
where the ARGS (with the default value defined) is used in PROTOTYPE and IMPLEMENTATION. But in the IMPLEMENTATION the default values have not to be used (redefinition error).
I suggest a new define CXXTEST_MOCK_WITH_DEFAULT_ARGUMENT (for namespaces) with an additional argument ARGS_DEFINITION to separate the args for PROTOTYPE/CLASS_DECLARATION and CLASS_IMPLEMENTATION:
Hi,
does anybody maintain this project actively?
There is very little activity on this project.
I have to mock a function with default arguments. But it doesn't work with define CXXTEST_MOCK. It produces redefinition errors (default values in definitions) in test source file. I've tried the compilers xlC and g++. So it's not only an issue with our used xlC compiler.
For the real source file the default value has to be defined in Prototype/ARGS argument of CXXTEST_MOCK.
But in the test source file the CXXTEST_MOCK expands to
where the ARGS (with the default value defined) is used in PROTOTYPE and IMPLEMENTATION. But in the IMPLEMENTATION the default values have not to be used (redefinition error).
I suggest a new define CXXTEST_MOCK_WITH_DEFAULT_ARGUMENT (for namespaces) with an additional argument ARGS_DEFINITION to separate the args for PROTOTYPE/CLASS_DECLARATION and CLASS_IMPLEMENTATION:
As a workaround I'm using the CXXTEST_MOCK implementation in the *Mock.H file:
Cheers
Emanuel
The text was updated successfully, but these errors were encountered: