mock

package
v0.0.0-...-8429761 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: PostgreSQL Imports: 5 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTx

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

MockTx is a mock of Tx interface.

func NewMockTx

func NewMockTx(ctrl *gomock.Controller) *MockTx

NewMockTx creates a new mock instance.

func (*MockTx) Begin

func (m *MockTx) Begin(ctx context.Context) (pgx.Tx, error)

Begin mocks base method.

func (*MockTx) Commit

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

Commit mocks base method.

func (*MockTx) Conn

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

Conn mocks base method.

func (*MockTx) CopyFrom

func (m *MockTx) CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error)

CopyFrom mocks base method.

func (*MockTx) EXPECT

func (m *MockTx) EXPECT() *MockTxMockRecorder

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

func (*MockTx) Exec

func (m *MockTx) Exec(ctx context.Context, sql string, arguments ...any) (pgconn.CommandTag, error)

Exec mocks base method.

func (*MockTx) LargeObjects

func (m *MockTx) LargeObjects() pgx.LargeObjects

LargeObjects mocks base method.

func (*MockTx) Prepare

func (m *MockTx) Prepare(ctx context.Context, name, sql string) (*pgconn.StatementDescription, error)

Prepare mocks base method.

func (*MockTx) Query

func (m *MockTx) Query(ctx context.Context, sql string, args ...any) (pgx.Rows, error)

Query mocks base method.

func (*MockTx) QueryRow

func (m *MockTx) QueryRow(ctx context.Context, sql string, args ...any) pgx.Row

QueryRow mocks base method.

func (*MockTx) Rollback

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

Rollback mocks base method.

func (*MockTx) SendBatch

func (m *MockTx) SendBatch(ctx context.Context, b *pgx.Batch) pgx.BatchResults

SendBatch mocks base method.

type MockTxMockRecorder

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

MockTxMockRecorder is the mock recorder for MockTx.

func (*MockTxMockRecorder) Begin

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

Begin indicates an expected call of Begin.

func (*MockTxMockRecorder) Commit

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

Commit indicates an expected call of Commit.

func (*MockTxMockRecorder) Conn

func (mr *MockTxMockRecorder) Conn() *gomock.Call

Conn indicates an expected call of Conn.

func (*MockTxMockRecorder) CopyFrom

func (mr *MockTxMockRecorder) CopyFrom(ctx, tableName, columnNames, rowSrc interface{}) *gomock.Call

CopyFrom indicates an expected call of CopyFrom.

func (*MockTxMockRecorder) Exec

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

Exec indicates an expected call of Exec.

func (*MockTxMockRecorder) LargeObjects

func (mr *MockTxMockRecorder) LargeObjects() *gomock.Call

LargeObjects indicates an expected call of LargeObjects.

func (*MockTxMockRecorder) Prepare

func (mr *MockTxMockRecorder) Prepare(ctx, name, sql interface{}) *gomock.Call

Prepare indicates an expected call of Prepare.

func (*MockTxMockRecorder) Query

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

Query indicates an expected call of Query.

func (*MockTxMockRecorder) QueryRow

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

QueryRow indicates an expected call of QueryRow.

func (*MockTxMockRecorder) Rollback

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

Rollback indicates an expected call of Rollback.

func (*MockTxMockRecorder) SendBatch

func (mr *MockTxMockRecorder) SendBatch(ctx, b interface{}) *gomock.Call

SendBatch indicates an expected call of SendBatch.

Jump to

Keyboard shortcuts

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