testhelper

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMigrateDatabase

func CreateMigrateDatabase(t *testing.T, dbFile string)

CreateMigrateDatabase will create all necessary directories, and will create the sqlite3 database (if necessary) and migrate it.

func MigrateMySQLDatabase added in v0.6.0

func MigrateMySQLDatabase(t *testing.T, dbURL string)

MigrateMySQLDatabase will migrate the MySQL database using dbmate. The database URL should be in the format: mysql://user:password@host:port/database

func MigratePostgresDatabase added in v0.6.0

func MigratePostgresDatabase(t *testing.T, dbURL string)

MigratePostgresDatabase will migrate the PostgreSQL database using dbmate. The database URL should be in the format: postgresql://user:password@host:port/database

func MustParseURL added in v0.0.14

func MustParseURL(t *testing.T, us string) *url.URL

MustParseURL parses the url (string) and returns or fails the test.

Types

This section is empty.

Jump to

Keyboard shortcuts

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