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
Hello @shijuvar,
Thanks for the book and example of the complete go service.
One question remains. Can you, please, tell how to test handlers with the suggested structure?
Let's say I want to test CreateTask handler from this file: https://github.com/shijuvar/go-web/blob/master/taskmanager/controllers/taskController.go
CreateTask
While I want to use mock of the mgo, I do not want to write/read from the real database.
mgo
Regards,
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello @shijuvar,
Thanks for the book and example of the complete go service.
One question remains. Can you, please, tell how to test handlers with the suggested structure?
Let's say I want to test
CreateTask
handler from this file:https://github.com/shijuvar/go-web/blob/master/taskmanager/controllers/taskController.go
While I want to use mock of the
mgo
, I do not want to write/read from the real database.Regards,
The text was updated successfully, but these errors were encountered: