pgx: github.com/jackc/pgx/pgtype/testutil Index | Files

package testutil

import "github.com/jackc/pgx/pgtype/testutil"

Index

Package Files

testutil.go

func ForceEncoder Uses

func ForceEncoder(e interface{}, formatCode int16) interface{}

func MustClose Uses

func MustClose(t testing.TB, conn interface {
    Close() error
})

func MustConnectDatabaseSQL Uses

func MustConnectDatabaseSQL(t testing.TB, driverName string) *sql.DB

func MustConnectPgx Uses

func MustConnectPgx(t testing.TB) *pgx.Conn

func TestDatabaseSQLSuccessfulNormalizeEqFunc Uses

func TestDatabaseSQLSuccessfulNormalizeEqFunc(t testing.TB, driverName string, tests []NormalizeTest, eqFunc func(a, b interface{}) bool)

func TestDatabaseSQLSuccessfulTranscodeEqFunc Uses

func TestDatabaseSQLSuccessfulTranscodeEqFunc(t testing.TB, driverName, pgTypeName string, values []interface{}, eqFunc func(a, b interface{}) bool)

func TestPgxSimpleProtocolSuccessfulTranscodeEqFunc Uses

func TestPgxSimpleProtocolSuccessfulTranscodeEqFunc(t testing.TB, pgTypeName string, values []interface{}, eqFunc func(a, b interface{}) bool)

func TestPgxSuccessfulNormalizeEqFunc Uses

func TestPgxSuccessfulNormalizeEqFunc(t testing.TB, tests []NormalizeTest, eqFunc func(a, b interface{}) bool)

func TestPgxSuccessfulTranscodeEqFunc Uses

func TestPgxSuccessfulTranscodeEqFunc(t testing.TB, pgTypeName string, values []interface{}, eqFunc func(a, b interface{}) bool)

func TestSuccessfulNormalize Uses

func TestSuccessfulNormalize(t testing.TB, tests []NormalizeTest)

func TestSuccessfulNormalizeEqFunc Uses

func TestSuccessfulNormalizeEqFunc(t testing.TB, tests []NormalizeTest, eqFunc func(a, b interface{}) bool)

func TestSuccessfulTranscode Uses

func TestSuccessfulTranscode(t testing.TB, pgTypeName string, values []interface{})

func TestSuccessfulTranscodeEqFunc Uses

func TestSuccessfulTranscodeEqFunc(t testing.TB, pgTypeName string, values []interface{}, eqFunc func(a, b interface{}) bool)

type NormalizeTest Uses

type NormalizeTest struct {
    SQL   string
    Value interface{}
}

Package testutil imports 10 packages (graph). Updated 2017-07-25. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).