testutils

package
v0.0.0-...-c46e0ea Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OneCol

func OneCol[T any](vals ...T) rows

func OneRow

func OneRow(vals ...any) rows

func Ref

func Ref[T any](val T) *T

Types

type MockRows

type MockRows struct {
	// contains filtered or unexported fields
}

func MakeMockRows

func MakeMockRows(fieldNames string, data [][]any) *MockRows

func (*MockRows) Close

func (m *MockRows) Close()

func (*MockRows) CommandTag

func (m *MockRows) CommandTag() pgconn.CommandTag

func (*MockRows) Conn

func (m *MockRows) Conn() *pgx.Conn

func (*MockRows) Err

func (m *MockRows) Err() error

func (*MockRows) FieldDescriptions

func (m *MockRows) FieldDescriptions() []pgconn.FieldDescription

func (*MockRows) IsClosed

func (m *MockRows) IsClosed() bool

func (*MockRows) Next

func (m *MockRows) Next() bool

func (*MockRows) RawValues

func (m *MockRows) RawValues() [][]byte

func (*MockRows) Reset

func (m *MockRows) Reset()

func (*MockRows) Scan

func (m *MockRows) Scan(dest ...any) error

func (*MockRows) ThenErr

func (m *MockRows) ThenErr(err error)

func (*MockRows) ThenPanic

func (m *MockRows) ThenPanic(err error)

func (*MockRows) Values

func (m *MockRows) Values() ([]any, error)

Jump to

Keyboard shortcuts

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