gomigratorintegrationtest

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertMigrationRecordsTable

func AssertMigrationRecordsTable(conn *sqlx.DB, t *testing.T, mRs []MigrationRecordExpectation)

func AssertTableDoesNotExist

func AssertTableDoesNotExist(table string, conn *sqlx.DB, t *testing.T)

func AssertTableExists

func AssertTableExists(table string, conn *sqlx.DB, t *testing.T)

func BuildDBConn

func BuildDBConn(t *testing.T) *sqlx.DB

func DBDriver

func DBDriver() string

func SkipIfIntegrationTestsNotConfigured

func SkipIfIntegrationTestsNotConfigured(expectedEnvVars []string, driverSpecificVars map[string][]string, t *testing.T)

Types

type MigrationRecordEventExpectation

type MigrationRecordEventExpectation struct {
	Action     string
	Actor      string
	TimeFormat string
	Result     string
}

type MigrationRecordExpectation

type MigrationRecordExpectation struct {
	Id     string
	Status string
	Events []MigrationRecordEventExpectation
}

Jump to

Keyboard shortcuts

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