Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FirstMigrationBroken ¶ added in v0.4.0
FirstMigrationBroken checks that if the first migration breaks that the correct data is returned and that the migrations table is correct
func MigrateAfterPreviouslyCompleted ¶ added in v0.4.0
MigrateAfterPreviouslyCompleted checks that a new migration works and starts off after the previous migration.
func NoMigrationsInPath ¶ added in v0.4.0
NoMigrationsInPath checks that no action is taken if there are no migrations to process
func SecondMigrationBroken ¶ added in v0.4.0
SecondMigrationBroken checks that if the second migration fails that the correct data is returned and that the migrations table is correct
Types ¶
type Database ¶ added in v0.4.0
type Database interface { OpenDB() (db *sql.DB, err error) GetDialect() redwing.Dialect CreateMigrationTableWithData(db *sql.DB) error GetLastMigration(db *sql.DB) (int, error) CleanupDB(db *sql.DB) }
Database is an interface that contains helper methods that should be implemented by a struct representing a database under test.
Click to show internal directories.
Click to hide internal directories.