Search code examples
c++googletestgooglemock

Read out the expectations from a mock object


For google mock, and C++ specifically, is it possible to somehow read out the expectations set on a mock object and the status of them?

For example, is it possible to ask the mock object if it has any unfulfilled expectations at this point?

Reading out this information should not pass or fail the test, so VerifyAndClearExpectations is not what i'm looking for as it both determines the test result and changes the mock object.


Solution

  • No, google mock provides no such functionality.