开发者

Does Google Mock count calls to mocked functions in destructor?

开发者 https://www.devze.com 2023-02-14 14:07 出处:网络
Does Google Mock count calls to mocked functions that occur in the开发者_如何学JAVA destructor of the object under test?Yes!

Does Google Mock count calls to mocked functions that occur in the开发者_如何学JAVA destructor of the object under test?


Yes!

I tested this and indeed calls to mocked functions within the destructor do count, i.e. you should EXPECT_CALL() them...

0

精彩评论

暂无评论...
验证码 换一张
取 消