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.
我正在使用 cxx 测试进行单元测试。我对所有东西都有正确的设置,我已经为一些简单的函数编写了测试用例,但是代码中有很多依赖项,我发现很难编写更多的测试套件。我已经在 Google 上彻底搜索了 mocks 和 stubs,但我仍然对 mocks 和 stubs 没有完整的感觉。我想有一些使用 mocks 和 stubs 的项目的适当示例。任何适当的 GitHub 链接也可以使用。或者任何适当的解释也将非常有用。