November 2018
Intermediate to advanced
346 pages
8h 12m
English
The SQLMock package (https://github.com/DATA-DOG/go-sqlmock) describes itself as follows:
I find SQLMock useful, but often more work than directly using the database. Being a pragmatic programmer, I am happy to use either. Typically, the choice of which to use is made based on how I want the tests to work. If I want to be very precise, have no potential for issues related to existing contents of the table, and have no possibility for data races caused by the concurrent usage of the table, then I will spend the extra effort to use SQLMock.
Read now
Unlock full access