Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Google c++ 测试是否允许自动或手动创建存根?
谷歌测试没有。但是,您可以为此使用 googlemock。
Google Test 是 XUnit 风格的单元测试框架。Google Mock (http://code.google.com/p/googlemock/) 是一个提供存根和模拟的相关项目。如果您正在寻找 BDD 风格的 C++ 测试框架,您可以查看 Igloo (http://igloo-testing.org/)。