mocks

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	mock.Mock
}

Driver is an autogenerated mock type for the Driver type

func NewDriver

func NewDriver(t interface {
	mock.TestingT
	Cleanup(func())
}) *Driver

NewDriver creates a new instance of Driver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Driver) Close

func (_m *Driver) Close()

Close provides a mock function with given fields:

func (*Driver) CountRows

func (_m *Driver) CountRows(ctx context.Context, query string, args ...interface{}) (int, error)

CountRows provides a mock function with given fields: ctx, query, args

func (*Driver) ExecuteQuery

func (_m *Driver) ExecuteQuery(ctx context.Context, query string, args ...interface{}) error

ExecuteQuery provides a mock function with given fields: ctx, query, args

func (*Driver) Ping

func (_m *Driver) Ping(ctx context.Context) error

Ping provides a mock function with given fields: ctx

func (*Driver) QueryRow

func (_m *Driver) QueryRow(ctx context.Context, query string, args ...interface{}) (pgx.Row, error)

QueryRow provides a mock function with given fields: ctx, query, args

func (*Driver) QueryRows

func (_m *Driver) QueryRows(ctx context.Context, query string, args ...interface{}) (pgx.Rows, error)

QueryRows provides a mock function with given fields: ctx, query, args

Jump to

Keyboard shortcuts

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