sqltest

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, db *sqlx.DB, doc *twowaysql.Document, cb Callback) (failureCount, errCount int, err error)

func RunInTest

func RunInTest(ctx context.Context, t *testing.T, db *sqlx.DB, doc *twowaysql.Document)

func RunInTests

func RunInTests(ctx context.Context, t *testing.T, db *sqlx.DB, docs map[string]*twowaysql.Document)

Types

type Callback

type Callback interface {
	StartTest(doc *twowaysql.Document, tc twowaysql.TestCase)
	ExecFixture(doc *twowaysql.Document, tc twowaysql.TestCase)
	InsertFixtureTable(doc *twowaysql.Document, tc twowaysql.TestCase, tb twowaysql.Table)
	Exec(doc *twowaysql.Document, tc twowaysql.TestCase)
	ExecTestQuery(doc *twowaysql.Document, tc twowaysql.TestCase)
	EndTest(doc *twowaysql.Document, tc twowaysql.TestCase, failure, err error)
}

Jump to

Keyboard shortcuts

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