Google C++ Mocking Framework 介绍
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.
Google C++ Mocking Framework 官网
http://code.google.com/p/googlemock/
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。