migratest

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunPackrMigrationTests

func RunPackrMigrationTests(
	t *testing.T, schema, data MigrationSchemas,
	init, cleanup func(*testing.T, *sqlx.DB),
	runner func(*testing.T, string, *sqlx.DB, int, int, int),
)

RunPackrMigrationTests runs migration tests from packr migrations.

Types

type MigrationSchemas

type MigrationSchemas []map[string]*dbal.PackrMigrationSource

MigrationSchemas contains several schemas.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL