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
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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