Documentation
¶
Overview ¶
Package testutil provides isolated tinySQL databases for Go tests and benchmarks.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Open ¶
Open creates a private in-memory database, executes fixtures in order, and registers cleanup of both the SQL pool and its native database with t. Each fixture is one SQL statement. A setup or cleanup error fails the test. Each call is independent, including calls from parallel tests with identical names and schemas. Close query rows and transactions before test cleanup.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.