mock_postgres

package
v0.0.0-...-9b5cd94 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: AGPL-3.0 Imports: 6 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 MockBasePool

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

MockBasePool is a mock of BasePool interface.

func NewMockBasePool

func NewMockBasePool(ctrl *gomock.Controller) *MockBasePool

NewMockBasePool creates a new mock instance.

func (*MockBasePool) Begin

func (m *MockBasePool) Begin(arg0 context.Context) (pgx.Tx, error)

Begin mocks base method.

func (*MockBasePool) Close

func (m *MockBasePool) Close()

Close mocks base method.

func (*MockBasePool) CopyFrom

func (m *MockBasePool) CopyFrom(arg0 context.Context, arg1 pgx.Identifier, arg2 []string, arg3 pgx.CopyFromSource) (int64, error)

CopyFrom mocks base method.

func (*MockBasePool) EXPECT

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

func (*MockBasePool) Exec

func (m *MockBasePool) Exec(arg0 context.Context, arg1 string, arg2 ...interface{}) (pgconn.CommandTag, error)

Exec mocks base method.

func (*MockBasePool) Ping

func (m *MockBasePool) Ping(arg0 context.Context) error

Ping mocks base method.

func (*MockBasePool) Query

func (m *MockBasePool) Query(arg0 context.Context, arg1 string, arg2 ...interface{}) (pgx.Rows, error)

Query mocks base method.

func (*MockBasePool) QueryRow

func (m *MockBasePool) QueryRow(arg0 context.Context, arg1 string, arg2 ...interface{}) pgx.Row

QueryRow mocks base method.

func (*MockBasePool) SendBatch

func (m *MockBasePool) SendBatch(arg0 context.Context, arg1 *pgx.Batch) pgx.BatchResults

SendBatch mocks base method.

func (*MockBasePool) Stat

func (m *MockBasePool) Stat() *pgxpool.Stat

Stat mocks base method.

type MockBasePoolMockRecorder

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

MockBasePoolMockRecorder is the mock recorder for MockBasePool.

func (*MockBasePoolMockRecorder) Begin

func (mr *MockBasePoolMockRecorder) Begin(arg0 interface{}) *gomock.Call

Begin indicates an expected call of Begin.

func (*MockBasePoolMockRecorder) Close

func (mr *MockBasePoolMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockBasePoolMockRecorder) CopyFrom

func (mr *MockBasePoolMockRecorder) CopyFrom(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

CopyFrom indicates an expected call of CopyFrom.

func (*MockBasePoolMockRecorder) Exec

func (mr *MockBasePoolMockRecorder) Exec(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockBasePoolMockRecorder) Ping

func (mr *MockBasePoolMockRecorder) Ping(arg0 interface{}) *gomock.Call

Ping indicates an expected call of Ping.

func (*MockBasePoolMockRecorder) Query

func (mr *MockBasePoolMockRecorder) Query(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Query indicates an expected call of Query.

func (*MockBasePoolMockRecorder) QueryRow

func (mr *MockBasePoolMockRecorder) QueryRow(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

QueryRow indicates an expected call of QueryRow.

func (*MockBasePoolMockRecorder) SendBatch

func (mr *MockBasePoolMockRecorder) SendBatch(arg0, arg1 interface{}) *gomock.Call

SendBatch indicates an expected call of SendBatch.

func (*MockBasePoolMockRecorder) Stat

func (mr *MockBasePoolMockRecorder) Stat() *gomock.Call

Stat indicates an expected call of Stat.

type MockPool

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

MockPool is a mock of Pool interface.

func NewMockPool

func NewMockPool(ctrl *gomock.Controller) *MockPool

NewMockPool creates a new mock instance.

func (*MockPool) Close

func (m *MockPool) Close()

Close mocks base method.

func (*MockPool) CopyFrom

func (m *MockPool) CopyFrom(arg0 context.Context, arg1 pgx.Identifier, arg2 []string, arg3 pgx.CopyFromSource) (int64, error)

CopyFrom mocks base method.

func (*MockPool) EXPECT

func (m *MockPool) EXPECT() *MockPoolMockRecorder

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

func (*MockPool) Exec

func (m *MockPool) Exec(arg0 context.Context, arg1 string, arg2 ...interface{}) (pgconn.CommandTag, error)

Exec mocks base method.

func (*MockPool) Ping

func (m *MockPool) Ping(arg0 context.Context) error

Ping mocks base method.

func (*MockPool) Query

func (m *MockPool) Query(arg0 context.Context, arg1 string, arg2 ...interface{}) (pgx.Rows, error)

Query mocks base method.

func (*MockPool) QueryRow

func (m *MockPool) QueryRow(arg0 context.Context, arg1 string, arg2 ...interface{}) pgx.Row

QueryRow mocks base method.

func (*MockPool) SendBatch

func (m *MockPool) SendBatch(arg0 context.Context, arg1 *pgx.Batch) error

SendBatch mocks base method.

func (*MockPool) WithTransaction

func (m *MockPool) WithTransaction(arg0 context.Context, arg1 func(context.Context, pgx.Tx) error) error

WithTransaction mocks base method.

type MockPoolMockRecorder

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

MockPoolMockRecorder is the mock recorder for MockPool.

func (*MockPoolMockRecorder) Close

func (mr *MockPoolMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockPoolMockRecorder) CopyFrom

func (mr *MockPoolMockRecorder) CopyFrom(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

CopyFrom indicates an expected call of CopyFrom.

func (*MockPoolMockRecorder) Exec

func (mr *MockPoolMockRecorder) Exec(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockPoolMockRecorder) Ping

func (mr *MockPoolMockRecorder) Ping(arg0 interface{}) *gomock.Call

Ping indicates an expected call of Ping.

func (*MockPoolMockRecorder) Query

func (mr *MockPoolMockRecorder) Query(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Query indicates an expected call of Query.

func (*MockPoolMockRecorder) QueryRow

func (mr *MockPoolMockRecorder) QueryRow(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

QueryRow indicates an expected call of QueryRow.

func (*MockPoolMockRecorder) SendBatch

func (mr *MockPoolMockRecorder) SendBatch(arg0, arg1 interface{}) *gomock.Call

SendBatch indicates an expected call of SendBatch.

func (*MockPoolMockRecorder) WithTransaction

func (mr *MockPoolMockRecorder) WithTransaction(arg0, arg1 interface{}) *gomock.Call

WithTransaction indicates an expected call of WithTransaction.

Jump to

Keyboard shortcuts

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