我正在使用Google Test和Google Mock编写一个C ++库和一些测试。
当我为测试启用地址+未定义的行为消毒器时,我在运行时看到这些错误,由消毒器报告:
runtime error: member call on address 0x608000006930 which does not point to an object of type 'mynamespace::MyClass'
0x608000006930: note: object is of type 'testing::NiceMock<mynamespace::MockMyClass>'
请问我如何解决此问题的建议?