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

[Feature]为API编写interface #626

Open
foliet opened this issue Oct 11, 2022 · 1 comment
Open

[Feature]为API编写interface #626

foliet opened this issue Oct 11, 2022 · 1 comment

Comments

@foliet
Copy link

foliet commented Oct 11, 2022

你想要实现的模块或API

现有的代码里完全使用struct而不使用interface,这导致无法对API进行mock,希望可以为API编写interface从而允许在单元测试的时候注入mock代码

@houseme
Copy link
Collaborator

houseme commented Oct 11, 2022

欢迎贡献PR

@foliet foliet changed the title [Feature] [Feature]为API编写interface Oct 11, 2022
@silenceper silenceper added the 3.0 3.0 label Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants