Documentation
¶
Overview ¶
Package drivertest contains a common test suite for all SQL drivers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DSN ¶ added in v0.3.2
DSN returns the DSN for the test database to use with the given SQL driver.
The returned function must be used to cleanup any data created for the DSN, such as temporary on-disk databases.
Types ¶
type MockConnector ¶ added in v0.3.0
MockConnector is mock of the driver.Connector interface.
func (*MockConnector) Driver ¶ added in v0.3.0
func (*MockConnector) Driver() driver.Driver
Driver returns the connector's driver.
type MockDriver ¶ added in v0.3.0
MockDriver is mock of the driver.Driver interface.
Click to show internal directories.
Click to hide internal directories.