mocks

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConnection added in v1.13.2

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

MockConnection is a mock of Connection interface.

func NewMockConnection added in v1.13.2

func NewMockConnection(ctrl *gomock.Controller) *MockConnection

NewMockConnection creates a new mock instance.

func (*MockConnection) BeginTx added in v1.13.2

func (m *MockConnection) BeginTx(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error)

BeginTx mocks base method.

func (*MockConnection) Close added in v1.13.2

func (m *MockConnection) Close() error

Close mocks base method.

func (*MockConnection) EXPECT added in v1.13.2

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

func (*MockConnection) ExecContext added in v1.13.2

func (m *MockConnection) ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error)

ExecContext mocks base method.

func (*MockConnection) PingContext added in v1.13.2

func (m *MockConnection) PingContext(ctx context.Context) error

PingContext mocks base method.

func (*MockConnection) PrepareContext added in v1.13.2

func (m *MockConnection) PrepareContext(ctx context.Context, query string) (*sql.Stmt, error)

PrepareContext mocks base method.

func (*MockConnection) QueryContext added in v1.13.2

func (m *MockConnection) QueryContext(ctx context.Context, query string, args ...any) (*sql.Rows, error)

QueryContext mocks base method.

func (*MockConnection) QueryRowContext added in v1.13.2

func (m *MockConnection) QueryRowContext(ctx context.Context, query string, args ...any) *sql.Row

QueryRowContext mocks base method.

func (*MockConnection) Raw added in v1.13.2

func (m *MockConnection) Raw(f func(any) error) error

Raw mocks base method.

type MockConnectionMockRecorder added in v1.13.2

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

MockConnectionMockRecorder is the mock recorder for MockConnection.

func (*MockConnectionMockRecorder) BeginTx added in v1.13.2

func (mr *MockConnectionMockRecorder) BeginTx(ctx, opts any) *gomock.Call

BeginTx indicates an expected call of BeginTx.

func (*MockConnectionMockRecorder) Close added in v1.13.2

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

Close indicates an expected call of Close.

func (*MockConnectionMockRecorder) ExecContext added in v1.13.2

func (mr *MockConnectionMockRecorder) ExecContext(ctx, query any, args ...any) *gomock.Call

ExecContext indicates an expected call of ExecContext.

func (*MockConnectionMockRecorder) PingContext added in v1.13.2

func (mr *MockConnectionMockRecorder) PingContext(ctx any) *gomock.Call

PingContext indicates an expected call of PingContext.

func (*MockConnectionMockRecorder) PrepareContext added in v1.13.2

func (mr *MockConnectionMockRecorder) PrepareContext(ctx, query any) *gomock.Call

PrepareContext indicates an expected call of PrepareContext.

func (*MockConnectionMockRecorder) QueryContext added in v1.13.2

func (mr *MockConnectionMockRecorder) QueryContext(ctx, query any, args ...any) *gomock.Call

QueryContext indicates an expected call of QueryContext.

func (*MockConnectionMockRecorder) QueryRowContext added in v1.13.2

func (mr *MockConnectionMockRecorder) QueryRowContext(ctx, query any, args ...any) *gomock.Call

QueryRowContext indicates an expected call of QueryRowContext.

func (*MockConnectionMockRecorder) Raw added in v1.13.2

Raw indicates an expected call of Raw.

type MockConnector

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

MockConnector is a mock of Connector interface.

func NewMockConnector

func NewMockConnector(ctrl *gomock.Controller) *MockConnector

NewMockConnector creates a new mock instance.

func (*MockConnector) Close

func (m *MockConnector) Close() error

Close mocks base method.

func (*MockConnector) Connection

func (m *MockConnector) Connection(ctx context.Context) (postgresql.Connection, error)

Connection mocks base method.

func (*MockConnector) EXPECT

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

func (*MockConnector) Pool

func (m *MockConnector) Pool() postgresql.Pool

Pool mocks base method.

func (*MockConnector) Transaction

Transaction mocks base method.

type MockConnectorMockRecorder

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

MockConnectorMockRecorder is the mock recorder for MockConnector.

func (*MockConnectorMockRecorder) Close

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

Close indicates an expected call of Close.

func (*MockConnectorMockRecorder) Connection

func (mr *MockConnectorMockRecorder) Connection(ctx any) *gomock.Call

Connection indicates an expected call of Connection.

func (*MockConnectorMockRecorder) Pool

Pool indicates an expected call of Pool.

func (*MockConnectorMockRecorder) Transaction

func (mr *MockConnectorMockRecorder) Transaction(ctx any, opts ...any) *gomock.Call

Transaction indicates an expected call of Transaction.

type MockTransaction added in v1.13.2

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

MockTransaction is a mock of Transaction interface.

func NewMockTransaction added in v1.13.2

func NewMockTransaction(ctrl *gomock.Controller) *MockTransaction

NewMockTransaction creates a new mock instance.

func (*MockTransaction) Commit added in v1.13.2

func (m *MockTransaction) Commit() error

Commit mocks base method.

func (*MockTransaction) EXPECT added in v1.13.2

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

func (*MockTransaction) Exec added in v1.13.2

func (m *MockTransaction) Exec(query string, args ...any) (sql.Result, error)

Exec mocks base method.

func (*MockTransaction) ExecContext added in v1.13.2

func (m *MockTransaction) ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error)

ExecContext mocks base method.

func (*MockTransaction) Prepare added in v1.13.2

func (m *MockTransaction) Prepare(query string) (*sql.Stmt, error)

Prepare mocks base method.

func (*MockTransaction) PrepareContext added in v1.13.2

func (m *MockTransaction) PrepareContext(ctx context.Context, query string) (*sql.Stmt, error)

PrepareContext mocks base method.

func (*MockTransaction) Query added in v1.13.2

func (m *MockTransaction) Query(query string, args ...any) (*sql.Rows, error)

Query mocks base method.

func (*MockTransaction) QueryContext added in v1.13.2

func (m *MockTransaction) QueryContext(ctx context.Context, query string, args ...any) (*sql.Rows, error)

QueryContext mocks base method.

func (*MockTransaction) QueryRow added in v1.13.2

func (m *MockTransaction) QueryRow(query string, args ...any) *sql.Row

QueryRow mocks base method.

func (*MockTransaction) QueryRowContext added in v1.13.2

func (m *MockTransaction) QueryRowContext(ctx context.Context, query string, args ...any) *sql.Row

QueryRowContext mocks base method.

func (*MockTransaction) Rollback added in v1.13.2

func (m *MockTransaction) Rollback() error

Rollback mocks base method.

func (*MockTransaction) Stmt added in v1.13.2

func (m *MockTransaction) Stmt(stmt *sql.Stmt) *sql.Stmt

Stmt mocks base method.

func (*MockTransaction) StmtContext added in v1.13.2

func (m *MockTransaction) StmtContext(ctx context.Context, stmt *sql.Stmt) *sql.Stmt

StmtContext mocks base method.

type MockTransactionMockRecorder added in v1.13.2

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

MockTransactionMockRecorder is the mock recorder for MockTransaction.

func (*MockTransactionMockRecorder) Commit added in v1.13.2

func (mr *MockTransactionMockRecorder) Commit() *gomock.Call

Commit indicates an expected call of Commit.

func (*MockTransactionMockRecorder) Exec added in v1.13.2

func (mr *MockTransactionMockRecorder) Exec(query any, args ...any) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockTransactionMockRecorder) ExecContext added in v1.13.2

func (mr *MockTransactionMockRecorder) ExecContext(ctx, query any, args ...any) *gomock.Call

ExecContext indicates an expected call of ExecContext.

func (*MockTransactionMockRecorder) Prepare added in v1.13.2

func (mr *MockTransactionMockRecorder) Prepare(query any) *gomock.Call

Prepare indicates an expected call of Prepare.

func (*MockTransactionMockRecorder) PrepareContext added in v1.13.2

func (mr *MockTransactionMockRecorder) PrepareContext(ctx, query any) *gomock.Call

PrepareContext indicates an expected call of PrepareContext.

func (*MockTransactionMockRecorder) Query added in v1.13.2

func (mr *MockTransactionMockRecorder) Query(query any, args ...any) *gomock.Call

Query indicates an expected call of Query.

func (*MockTransactionMockRecorder) QueryContext added in v1.13.2

func (mr *MockTransactionMockRecorder) QueryContext(ctx, query any, args ...any) *gomock.Call

QueryContext indicates an expected call of QueryContext.

func (*MockTransactionMockRecorder) QueryRow added in v1.13.2

func (mr *MockTransactionMockRecorder) QueryRow(query any, args ...any) *gomock.Call

QueryRow indicates an expected call of QueryRow.

func (*MockTransactionMockRecorder) QueryRowContext added in v1.13.2

func (mr *MockTransactionMockRecorder) QueryRowContext(ctx, query any, args ...any) *gomock.Call

QueryRowContext indicates an expected call of QueryRowContext.

func (*MockTransactionMockRecorder) Rollback added in v1.13.2

func (mr *MockTransactionMockRecorder) Rollback() *gomock.Call

Rollback indicates an expected call of Rollback.

func (*MockTransactionMockRecorder) Stmt added in v1.13.2

func (mr *MockTransactionMockRecorder) Stmt(stmt any) *gomock.Call

Stmt indicates an expected call of Stmt.

func (*MockTransactionMockRecorder) StmtContext added in v1.13.2

func (mr *MockTransactionMockRecorder) StmtContext(ctx, stmt any) *gomock.Call

StmtContext indicates an expected call of StmtContext.

type MockUnitOfWork added in v1.16.0

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

MockUnitOfWork is a mock of UnitOfWork interface.

func NewMockUnitOfWork added in v1.16.0

func NewMockUnitOfWork(ctrl *gomock.Controller) *MockUnitOfWork

NewMockUnitOfWork creates a new mock instance.

func (*MockUnitOfWork) Do added in v1.16.0

Do mocks base method.

func (*MockUnitOfWork) EXPECT added in v1.16.0

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

type MockUnitOfWorkMockRecorder added in v1.16.0

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

MockUnitOfWorkMockRecorder is the mock recorder for MockUnitOfWork.

func (*MockUnitOfWorkMockRecorder) Do added in v1.16.0

func (mr *MockUnitOfWorkMockRecorder) Do(ctx, fn any) *gomock.Call

Do indicates an expected call of Do.

Jump to

Keyboard shortcuts

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