mock_postgres

package
v0.0.0-...-58ae5d1 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package mock_postgres is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPgxPoolIface

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

MockPgxPoolIface is a mock of PgxPoolIface interface.

func NewMockPgxPoolIface

func NewMockPgxPoolIface(ctrl *gomock.Controller) *MockPgxPoolIface

NewMockPgxPoolIface creates a new mock instance.

func (*MockPgxPoolIface) Close

func (m *MockPgxPoolIface) Close()

Close mocks base method.

func (*MockPgxPoolIface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPgxPoolIface) Exec

func (m *MockPgxPoolIface) Exec(ctx context.Context, sql string, arguments ...interface{}) (pgconn.CommandTag, error)

Exec mocks base method.

func (*MockPgxPoolIface) Ping

func (m *MockPgxPoolIface) Ping(ctx context.Context) error

Ping mocks base method.

func (*MockPgxPoolIface) Query

func (m *MockPgxPoolIface) Query(ctx context.Context, sql string, args ...interface{}) (pgx.Rows, error)

Query mocks base method.

func (*MockPgxPoolIface) QueryRow

func (m *MockPgxPoolIface) QueryRow(ctx context.Context, sql string, args ...interface{}) pgx.Row

QueryRow mocks base method.

type MockPgxPoolIfaceMockRecorder

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

MockPgxPoolIfaceMockRecorder is the mock recorder for MockPgxPoolIface.

func (*MockPgxPoolIfaceMockRecorder) Close

Close indicates an expected call of Close.

func (*MockPgxPoolIfaceMockRecorder) Exec

func (mr *MockPgxPoolIfaceMockRecorder) Exec(ctx, sql interface{}, arguments ...interface{}) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockPgxPoolIfaceMockRecorder) Ping

func (mr *MockPgxPoolIfaceMockRecorder) Ping(ctx interface{}) *gomock.Call

Ping indicates an expected call of Ping.

func (*MockPgxPoolIfaceMockRecorder) Query

func (mr *MockPgxPoolIfaceMockRecorder) Query(ctx, sql interface{}, args ...interface{}) *gomock.Call

Query indicates an expected call of Query.

func (*MockPgxPoolIfaceMockRecorder) QueryRow

func (mr *MockPgxPoolIfaceMockRecorder) QueryRow(ctx, sql interface{}, args ...interface{}) *gomock.Call

QueryRow indicates an expected call of QueryRow.

Jump to

Keyboard shortcuts

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