Documentation ¶
Overview ¶
Package testing has the database tests. All database drivers must pass the Test function. This lives in it's own package so it stays a test dependency.
Package testing has the database tests. All database drivers must pass the Test function. This lives in it's own package so it stays a test dependency.
Index ¶
- func Test(t *testing.T, d database.Driver, migration []byte)
- func TestDrop(t *testing.T, d database.Driver)
- func TestLockAndUnlock(t *testing.T, d database.Driver)
- func TestMigrate(t *testing.T, m *migrate.Migrate)
- func TestMigrateDrop(t *testing.T, m *migrate.Migrate)
- func TestMigrateUp(t *testing.T, m *migrate.Migrate)
- func TestNilVersion(t *testing.T, d database.Driver)
- func TestRun(t *testing.T, d database.Driver, migration io.Reader)
- func TestSetVersion(t *testing.T, d database.Driver)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestMigrate ¶ added in v4.3.0
TestMigrate runs integration-tests between the Migrate layer and database implementations.
func TestMigrateDrop ¶ added in v4.3.0
Regression test for preventing a regression for #164 https://github.com/golang-migrate/migrate/pull/173 Similar to TestDrop(), but tests the dropping mechanism through the Migrate logic instead, to check for double-locking during the Drop logic.
func TestMigrateUp ¶ added in v4.3.0
Types ¶
This section is empty.