Help us shape the future of Go! Take the 2026 Go Developer Survey

migrationtest

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadTableSchemasMap

func LoadTableSchemasMap(t *testing.T, x db.EngineMigration) map[string]*schemas.Table

func MainTest

func MainTest(m *testing.M)

func PrepareTestEnv

func PrepareTestEnv(t *testing.T, skip int, syncModels ...any) (db.EngineMigration, func())

PrepareTestEnv prepares the test environment and reset the database. The skip parameter should usually be 0. Provide models to be sync'd with the database - in particular any models you expect fixtures to be loaded from.

fixtures in `models/migrations/fixtures/<TestName>` will be loaded automatically

Types

This section is empty.

Jump to

Keyboard shortcuts

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