EXPECT_CALL(...).WillOnce(...) not working with InvokeArgument and SetArgReferee #4592
-
SetupOS: Windows 11 x64 Additional Libraries used in setting up unit tests.
Other information for code below:Example CodeInvokeArgumentCode
Error
Looking at the examples in GMOCK's Cookbook, it appears that the above should work with no error. SetArgRefereeCode
Error
There is no example of how to appropriate utilize It feels like I might be missing something, so I would appreciate the observations and help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
So the answer to my post is relatively simple. I blame my short-sightedness behind not connecting how to use
|
Beta Was this translation helpful? Give feedback.
So the answer to my post is relatively simple. I blame my short-sightedness behind not connecting how to use
DoAll
correctly and realizing that, since, the function isn't void, it's usage of.Will...
requires it to have a mocked return as well.