testutil

package
v2.7.4 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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