Google C++ Mocking Framework

联合创作 · 2023-10-01 16:11

Google Mock的设计灵感来源于jMock和EasyMock,它的作用是帮你快速地做出一个接口的仿制品。如果你的设计依赖其它的类,而这些类还没有完成或非常昂贵(如数据库);如果你要测试你的模块与其它模块是否能正确结合,并想了解其交互过程;那么Google Mock就能帮助你。

Google C++ Mocking Framework (or Google Mock for short) is a library for writing and using C++ mock classes. It was inspired by jMock, EasyMock, and Hamcrest, and designed with C++'s specifics in mind. It lets you create mock classes trivially using simple macros, supports a rich set of matchers and actions, handles unordered, partially ordered, or completely ordered expectations, and is extensible by users.

浏览 4
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报