Created
January 8, 2020 03:13
-
-
Save joshuabezaleel/f11a40b4b6576ea5bc3937e655b6205e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mockDB, mock, err := sqlmock.New() | |
require.Nil(t, err) | |
defer mockDB.Close() | |
db := sqlx.NewDb(mockDB, "sqlmock") | |
bookRepository := NewBookRepository(db) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment