-
Notifications
You must be signed in to change notification settings - Fork 98
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
how to test? #12
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: