In unit testing language, this is called a mock object (see Resources for more information).
按照单元测试的术语,这称为模拟对象(mock object),更多信息参见参考资料中的链接。
youdao
Testing with complex dependencies? Use a mock object.
测试带有复杂的依赖性?
应用推荐
模块上移
模块下移
不移动