Skip to content
New issue

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

对外接口里有内部数据类型参数,导致无法自动化测试时mock #13

Open
lusinking opened this issue Dec 24, 2021 · 1 comment

Comments

@lusinking
Copy link

lusinking commented Dec 24, 2021

func (obsClient ObsClient) ListBuckets(input *ListBucketsInput, extensions ...extensionOptions) (output *ListBucketsOutput, err error) {

对外接口里有内部数据类型参数(不止这一个接口),不知道这样设计的目的是什么,开发者绝对用不上,还导致自动化测试时无法mock

请使用gomonkey尝试mock

@zhangtong007
Copy link

+1
理解不了这样设计是为啥啊
对外方法,开发者怎么用得上这个内部参数呢
还没办法mock作测试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants