Documentation
¶
Index ¶
- func CleanupSharedMySQL()
- func CleanupTestData(t *testing.T, db *gorm.DB)
- func GetSharedMySQLDB(t *testing.T) (*gorm.DB, func())
- func GetSharedMySQLDSN(t *testing.T) string
- func SetupMySQLWithMigrations(t *testing.T) (*gorm.DB, func())
- func SetupSharedMySQL() error
- func TestMainHelper(m *testing.M) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupSharedMySQL ¶ added in v0.3.0
func CleanupSharedMySQL()
CleanupSharedMySQL terminates the shared MySQL container
func CleanupTestData ¶ added in v0.3.0
CleanupTestData cleans up test data from the shared database
func GetSharedMySQLDB ¶ added in v0.3.0
GetSharedMySQLDB returns a connection to the shared MySQL database
func GetSharedMySQLDSN ¶ added in v0.3.0
GetSharedMySQLDSN returns the DSN for the shared MySQL database
func SetupMySQLWithMigrations ¶ added in v0.3.0
SetupMySQLWithMigrations returns a migrated MySQL database connection
func SetupSharedMySQL ¶ added in v0.3.0
func SetupSharedMySQL() error
SetupSharedMySQL initializes a shared MySQL container for all tests
func TestMainHelper ¶ added in v0.3.0
TestMainHelper provides a helper function for package-level test setup
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.