Documentation ¶ Index ¶ func NewDB(t *testing.T, suite string, tables ...any) *gorm.DB Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewDB ¶ func NewDB(t *testing.T, suite string, tables ...any) *gorm.DB NewDB creates a new test database and initializes the given list of tables for the suite. The test database is dropped after testing is completed unless failed. Types ¶ This section is empty. Source Files ¶ View all Source files dbtest.go Click to show internal directories. Click to hide internal directories.