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
如果要写UT的话,运行时对象Worker要怎么mock?
The text was updated successfully, but these errors were encountered:
unitTest := getUnitTest() unitTest.SetRequest(mock) unitTest.Run()
https://github.com/8treenet/freedom/blob/master/example/fshop/domain/goods_test.go
Sorry, something went wrong.
控制器层的UT,是不是要项目启动了才能跑,不能单独跑?
控制器不需要单测吧,有 http 的路由属性了. 并且控制器也没业务逻辑
No branches or pull requests
如果要写UT的话,运行时对象Worker要怎么mock?
The text was updated successfully, but these errors were encountered: