mock_postgres

package
v0.0.0-...-c3afde3 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 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 MockPgxPool

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

MockPgxPool is a mock of PgxPool interface.

func NewMockPgxPool

func NewMockPgxPool(ctrl *gomock.Controller) *MockPgxPool

NewMockPgxPool creates a new mock instance.

func (*MockPgxPool) Begin

func (m *MockPgxPool) Begin(ctx context.Context) (v4.Tx, error)

Begin mocks base method.

func (*MockPgxPool) EXPECT

func (m *MockPgxPool) EXPECT() *MockPgxPoolMockRecorder

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

func (*MockPgxPool) Exec

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

Exec mocks base method.

func (*MockPgxPool) Query

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

Query mocks base method.

func (*MockPgxPool) QueryRow

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

QueryRow mocks base method.

type MockPgxPoolMockRecorder

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

MockPgxPoolMockRecorder is the mock recorder for MockPgxPool.

func (*MockPgxPoolMockRecorder) Begin

func (mr *MockPgxPoolMockRecorder) Begin(ctx interface{}) *gomock.Call

Begin indicates an expected call of Begin.

func (*MockPgxPoolMockRecorder) Exec

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

Exec indicates an expected call of Exec.

func (*MockPgxPoolMockRecorder) Query

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

Query indicates an expected call of Query.

func (*MockPgxPoolMockRecorder) QueryRow

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

QueryRow indicates an expected call of QueryRow.

type MockPgxTx

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

MockPgxTx is a mock of PgxTx interface.

func NewMockPgxTx

func NewMockPgxTx(ctrl *gomock.Controller) *MockPgxTx

NewMockPgxTx creates a new mock instance.

func (*MockPgxTx) Begin

func (m *MockPgxTx) Begin(ctx context.Context) (v4.Tx, error)

Begin mocks base method.

func (*MockPgxTx) Commit

func (m *MockPgxTx) Commit(ctx context.Context) error

Commit mocks base method.

func (*MockPgxTx) EXPECT

func (m *MockPgxTx) EXPECT() *MockPgxTxMockRecorder

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

func (*MockPgxTx) Exec

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

Exec mocks base method.

func (*MockPgxTx) Query

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

Query mocks base method.

func (*MockPgxTx) QueryRow

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

QueryRow mocks base method.

func (*MockPgxTx) Rollback

func (m *MockPgxTx) Rollback(ctx context.Context) error

Rollback mocks base method.

type MockPgxTxMockRecorder

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

MockPgxTxMockRecorder is the mock recorder for MockPgxTx.

func (*MockPgxTxMockRecorder) Begin

func (mr *MockPgxTxMockRecorder) Begin(ctx interface{}) *gomock.Call

Begin indicates an expected call of Begin.

func (*MockPgxTxMockRecorder) Commit

func (mr *MockPgxTxMockRecorder) Commit(ctx interface{}) *gomock.Call

Commit indicates an expected call of Commit.

func (*MockPgxTxMockRecorder) Exec

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

Exec indicates an expected call of Exec.

func (*MockPgxTxMockRecorder) Query

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

Query indicates an expected call of Query.

func (*MockPgxTxMockRecorder) QueryRow

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

QueryRow indicates an expected call of QueryRow.

func (*MockPgxTxMockRecorder) Rollback

func (mr *MockPgxTxMockRecorder) Rollback(ctx interface{}) *gomock.Call

Rollback indicates an expected call of Rollback.

Jump to

Keyboard shortcuts

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