Documentation
¶
Overview ¶
Package sqlmock provides SQL mocking utilities for testing. This package is separate from helpers to avoid import cycles with database packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSQLMock ¶
NewSQLMock creates a new SQL mock for testing database operations. Returns a mock database connection and a sqlmock.Sqlmock for setting expectations.
func SetupSQLMock ¶
SetupSQLMock creates a sqlmock with regex query matching enabled.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.