We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
一个 public 方法,调用自身的很多个 private 方法。 这时候,我们能够 mock 掉自身的 private 方法,让我们,只关注于当前方法的 测试。这个功能如何去做呢?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
因为我们当我们的很多个方法进行测试的时候,偏向于单元测试,这样子更快的编写,因为我们有时候,业务的链路比较长的时候,我们不断的,mock ,更加的难于写测试,可能
一个 public 方法,调用自身的很多个 private 方法。
这时候,我们能够 mock 掉自身的 private 方法,让我们,只关注于当前方法的 测试。这个功能如何去做呢?
The text was updated successfully, but these errors were encountered: