Documentation
¶
Overview ¶
Package testutil provides shared test database utilities
Index ¶
Constants ¶
View Source
const ( StrategyLocal = "local" StrategyTemplate = "template" )
Variables ¶
This section is empty.
Functions ¶
func CreateTestDB ¶
func CreateTestDB(ctx context.Context, log *logrus.Logger, prefix string, initDB InitDBFunc) (*config.Config, string, *gorm.DB)
CreateTestDB creates a temporary test database and returns the config, db name, and gorm.DB connection. The caller is responsible for running migrations and creating the appropriate store.
Types ¶
Click to show internal directories.
Click to hide internal directories.