Is that possible to mock a single method with Mockall?

一个人想着一个人 提交于 2020-02-05 04:12:31

问题


I want to mock a regular single method in the module scope (not a trait or struct method), that will return a constant value, but I can't find any example in the docs.

来源:https://stackoverflow.com/questions/59566797/is-that-possible-to-mock-a-single-method-with-mockall

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!