The highest tagged major version is
v2.
package
Version:
v1.5.0
Opens a new window with list of versions in this module.
Published: Feb 15, 2024
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Cleanup is a helper function to register cleanup function for a test.
t.Cleanup was added in go1.14.
func NewDBMock() (*sql.DB, sqlmock.Sqlmock)
NewDBMock returns a new sql.DB and sqlmock.
NewDBMockWithClose returns a new sql.DB and sqlmock, and close it after test.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.