test

package
v0.0.0-...-99248c7 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(t *testing.T, url string, migrations embed.FS, migrationTable *string)

Types

type GinTestContext

type GinTestContext struct {
	Ctx      *gin.Context
	Engine   *gin.Engine
	Recorder *httptest.ResponseRecorder
	DB       *sqlx.DB
	// contains filtered or unexported fields
}

func NewGin

func NewGin(t *testing.T, dbURI string) *GinTestContext

type MigrateTest

type MigrateTest struct {
	Migration embed.FS
	Table     *string
}

type PostgresTestContainer

type PostgresTestContainer struct {
	// contains filtered or unexported fields
}

func NewPostgres

func NewPostgres(t *testing.T, ctx context.Context) *PostgresTestContainer

func (*PostgresTestContainer) Close

func (c *PostgresTestContainer) Close()

func (*PostgresTestContainer) Url

func (c *PostgresTestContainer) Url() string

Jump to

Keyboard shortcuts

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