testutil

package
v2.9.4 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedDBSpecs = []DBSpec{postgreSQLSpec{}, mySQLSpec{}}

Functions

func AddFuzzFuncs

func AddFuzzFuncs(fz *fuzz.Fuzzer)

func GenerateTestData

func GenerateTestData(db *pachsql.DB, tableName string, n int, row setIDer) error

Types

type DBSpec

type DBSpec interface {
	fmt.Stringer
	Create(ctx context.Context, t *testing.T) (db *sqlx.DB, dbName string, tableName string)
	Schema() string
	TestRow() setIDer
}

Jump to

Keyboard shortcuts

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