gopkg.in/DATA-DOG/go-sqlmock.v0 (go): Package sqlmock provides sql driver mock connecection, which allows to test database, create expectations and ensure the correct execution flow of any database operations. It hooks into Go standard library's database/sql package.  The package provides convenient methods to mock database queries, transactions and expect the right execution flow, compare query arguments or even return error instead to simulate failures. See the example bellow, which illustrates how convenient it is to work with:
Keywords: database|go|golang|mock|sql|sql-driver|tdd|testing