How to do unit testing ? #82
Unanswered
CipherKhaw
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Hi @CipherKhaw . My suggestion would be not to mock the database, and the reason for that is more or less summarized with this comment: #38 (comment). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Do you have any suggestion to do unit testing ?, Because I got some issues on this library https://github.com/DATA-DOG/go-sqlmock seems it cannot put value to destination when use the Query method.
Thank in advance. 🙏
Beta Was this translation helpful? Give feedback.
All reactions