Is there a way to mock special functions like constructor/destructor/assignment with c++/gmock #3978
Unanswered
hpcx82
asked this question in
Community Help
Replies: 1 comment
-
|
We could workaround this by delegating to another named call: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using gmock, and try to test if certain specifial functions are correctly called, but I got compiler errors for below:
A quick glance of the documentation doesn't give much insights - does gmock support mocking of special functions? if not, what would be the recommended way of doing so?
Beta Was this translation helpful? Give feedback.
All reactions