dbtest

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DatabaseURL = urlFromEnv()

Functions

This section is empty.

Types

type Suite

type Suite struct {
	suite.Suite
	// contains filtered or unexported fields
}

Suite holds a database test suite. Each Suite holds its own clone of the database given by the `ACR_DB_URL` environment variable. The database is cloned before the suite starts and dropped in the suite teardown. Suites can be run in parallel.

func (*Suite) Begin

func (ts *Suite) Begin() *sqlx.Tx

func (*Suite) DB

func (ts *Suite) DB() *sqlx.DB

func (*Suite) SetupSuite

func (ts *Suite) SetupSuite()

func (*Suite) TearDownSuite

func (ts *Suite) TearDownSuite()

Jump to

Keyboard shortcuts

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