Package testutil
- func ForceEncoder(e interface{}, formatCode int16) interface{}
- func MustClose(t testing.TB, conn interface {Close() error})
- func MustCloseContext(t testing.TB, conn interface {Close(context.Context) error})
- func MustConnectDatabaseSQL(t testing.TB, driverName string) *sql.DB
- func MustConnectPgx(t testing.TB) *pgx.Conn
- func TestDatabaseSQLGoZeroToNullConversion(t testing.TB, driverName, pgTypeName string, zero interface{})
- func TestDatabaseSQLNullToGoZeroConversion(t testing.TB, driverName, pgTypeName string, zero interface{})
- func TestDatabaseSQLSuccessfulNormalizeEqFunc(t testing.TB, driverName string, tests []NormalizeTest, eqFunc func(a, b interface{}) bool)
- func TestDatabaseSQLSuccessfulTranscodeEqFunc(t testing.TB, driverName, pgTypeName string, values []interface{}, eqFunc func(a, b interface{}) bool)
- func TestGoZeroToNullConversion(t testing.TB, pgTypeName string, zero interface{})
- func TestNullToGoZeroConversion(t testing.TB, pgTypeName string, zero interface{})
- func TestPgxGoZeroToNullConversion(t testing.TB, pgTypeName string, zero interface{})
- func TestPgxNullToGoZeroConversion(t testing.TB, pgTypeName string, zero interface{})
- func TestPgxSuccessfulNormalizeEqFunc(t testing.TB, tests []NormalizeTest, eqFunc func(a, b interface{}) bool)
- func TestPgxSuccessfulTranscodeEqFunc(t testing.TB, pgTypeName string, values []interface{}, eqFunc func(a, b interface{}) bool)
- func TestSuccessfulNormalize(t testing.TB, tests []NormalizeTest)
- func TestSuccessfulNormalizeEqFunc(t testing.TB, tests []NormalizeTest, eqFunc func(a, b interface{}) bool)
- func TestSuccessfulTranscode(t testing.TB, pgTypeName string, values []interface{})
- func TestSuccessfulTranscodeEqFunc(t testing.TB, pgTypeName string, values []interface{}, eqFunc func(a, b interface{}) bool)
- type NormalizeTest
Package files
testutil.go
func ForceEncoder(e interface{}, formatCode int16) interface{}
func MustClose(t testing.TB, conn interface {
Close() error
})
func MustCloseContext(t testing.TB, conn interface {
Close(context.Context) error
})
func MustConnectDatabaseSQL(t testing.TB, driverName string) *sql.DB
func MustConnectPgx(t testing.TB) *pgx.Conn
func TestDatabaseSQLGoZeroToNullConversion(t testing.TB, driverName, pgTypeName string, zero interface{})
func TestDatabaseSQLNullToGoZeroConversion(t testing.TB, driverName, pgTypeName string, zero interface{})
func TestDatabaseSQLSuccessfulNormalizeEqFunc(t testing.TB, driverName string, tests []NormalizeTest, eqFunc func(a, b interface{}) bool)
func TestDatabaseSQLSuccessfulTranscodeEqFunc(t testing.TB, driverName, pgTypeName string, values []interface{}, eqFunc func(a, b interface{}) bool)
func TestGoZeroToNullConversion(t testing.TB, pgTypeName string, zero interface{})
func TestNullToGoZeroConversion(t testing.TB, pgTypeName string, zero interface{})
func TestPgxGoZeroToNullConversion(t testing.TB, pgTypeName string, zero interface{})
func TestPgxNullToGoZeroConversion(t testing.TB, pgTypeName string, zero interface{})
func TestPgxSuccessfulNormalizeEqFunc(t testing.TB, tests []NormalizeTest, eqFunc func(a, b interface{}) bool)
func TestPgxSuccessfulTranscodeEqFunc(t testing.TB, pgTypeName string, values []interface{}, eqFunc func(a, b interface{}) bool)
func TestSuccessfulNormalize(t testing.TB, tests []NormalizeTest)
func TestSuccessfulNormalizeEqFunc(t testing.TB, tests []NormalizeTest, eqFunc func(a, b interface{}) bool)
func TestSuccessfulTranscode(t testing.TB, pgTypeName string, values []interface{})
func TestSuccessfulTranscodeEqFunc(t testing.TB, pgTypeName string, values []interface{}, eqFunc func(a, b interface{}) bool)
type NormalizeTest struct {
SQL string
Value interface{}
}