test

package
v0.0.0-...-c9664ae Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPostgresDatabase

func NewPostgresDatabase(t *testing.T) (*bun.DB, error)

func RunMigration

func RunMigration(db *sql.DB, t *testing.T) error

Types

type TestCase

type TestCase struct {
	Db       *bun.DB
	Sql      *sql.DB
	TearDown func()
	Log      logger.LoggerInterface
}

func NewTestCase

func NewTestCase(t *testing.T) *TestCase

type TestSuite

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

func NewTestSuite

func NewTestSuite() *TestSuite

func (*TestSuite) ExecQuery

func (ts *TestSuite) ExecQuery(qs []string)

func (*TestSuite) TearDown

func (ts *TestSuite) TearDown()

Jump to

Keyboard shortcuts

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