testutil

package
v5.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustClose

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

func MustCloseContext

func MustCloseContext(t testing.TB, conn interface {
	Close(context.Context) error
})

func MustConnectPgx

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

func RunTranscodeTests

func RunTranscodeTests(t testing.TB, pgTypeName string, tests []TranscodeTestCase)

func RunTranscodeTestsFormat

func RunTranscodeTestsFormat(t testing.TB, pgTypeName string, tests []TranscodeTestCase, conn *pgx.Conn, formatName string, formatCode int16)

Types

type TranscodeTestCase

type TranscodeTestCase struct {
	Src  interface{}
	Dst  interface{}
	Test func(interface{}) bool
}

Jump to

Keyboard shortcuts

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