mocks

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

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 MockMongoClientInterface

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

MockMongoClientInterface is a mock of MongoClientInterface interface.

func NewMockMongoClientInterface

func NewMockMongoClientInterface(ctrl *gomock.Controller) *MockMongoClientInterface

NewMockMongoClientInterface creates a new mock instance.

func (*MockMongoClientInterface) Connect

Connect mocks base method.

func (*MockMongoClientInterface) Database

Database mocks base method.

func (*MockMongoClientInterface) EXPECT

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

func (*MockMongoClientInterface) Ping

Ping mocks base method.

type MockMongoClientInterfaceMockRecorder

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

MockMongoClientInterfaceMockRecorder is the mock recorder for MockMongoClientInterface.

func (*MockMongoClientInterfaceMockRecorder) Connect

func (mr *MockMongoClientInterfaceMockRecorder) Connect(ctx interface{}) *gomock.Call

Connect indicates an expected call of Connect.

func (*MockMongoClientInterfaceMockRecorder) Database

func (mr *MockMongoClientInterfaceMockRecorder) Database(name interface{}, opts ...interface{}) *gomock.Call

Database indicates an expected call of Database.

func (*MockMongoClientInterfaceMockRecorder) Ping

func (mr *MockMongoClientInterfaceMockRecorder) Ping(ctx, rp interface{}) *gomock.Call

Ping indicates an expected call of Ping.

type MockPgxPoolInterface

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

MockPgxPoolInterface is a mock of PgxPoolInterface interface.

func NewMockPgxPoolInterface

func NewMockPgxPoolInterface(ctrl *gomock.Controller) *MockPgxPoolInterface

NewMockPgxPoolInterface creates a new mock instance.

func (*MockPgxPoolInterface) Begin

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

Begin mocks base method.

func (*MockPgxPoolInterface) Close

func (m *MockPgxPoolInterface) Close()

Close mocks base method.

func (*MockPgxPoolInterface) EXPECT

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

func (*MockPgxPoolInterface) Ping

Ping mocks base method.

type MockPgxPoolInterfaceMockRecorder

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

MockPgxPoolInterfaceMockRecorder is the mock recorder for MockPgxPoolInterface.

func (*MockPgxPoolInterfaceMockRecorder) Begin

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

Begin indicates an expected call of Begin.

func (*MockPgxPoolInterfaceMockRecorder) Close

Close indicates an expected call of Close.

func (*MockPgxPoolInterfaceMockRecorder) Ping

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

Ping indicates an expected call of Ping.

type MockPgxTxInterface

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

MockPgxTxInterface is a mock of PgxTxInterface interface.

func NewMockPgxTxInterface

func NewMockPgxTxInterface(ctrl *gomock.Controller) *MockPgxTxInterface

NewMockPgxTxInterface creates a new mock instance.

func (*MockPgxTxInterface) Commit

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

Commit mocks base method.

func (*MockPgxTxInterface) EXPECT

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

func (*MockPgxTxInterface) Rollback

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

Rollback mocks base method.

type MockPgxTxInterfaceMockRecorder

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

MockPgxTxInterfaceMockRecorder is the mock recorder for MockPgxTxInterface.

func (*MockPgxTxInterfaceMockRecorder) Commit

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

Commit indicates an expected call of Commit.

func (*MockPgxTxInterfaceMockRecorder) Rollback

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

Rollback indicates an expected call of Rollback.

type MockSQLDBInterface

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

MockSQLDBInterface is a mock of SQLDBInterface interface.

func NewMockSQLDBInterface

func NewMockSQLDBInterface(ctrl *gomock.Controller) *MockSQLDBInterface

NewMockSQLDBInterface creates a new mock instance.

func (*MockSQLDBInterface) BeginTx

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

BeginTx mocks base method.

func (*MockSQLDBInterface) EXPECT

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

func (*MockSQLDBInterface) PingContext

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

PingContext mocks base method.

func (*MockSQLDBInterface) SetConnMaxLifetime

func (m *MockSQLDBInterface) SetConnMaxLifetime(d time.Duration)

SetConnMaxLifetime mocks base method.

func (*MockSQLDBInterface) SetMaxIdleConns

func (m *MockSQLDBInterface) SetMaxIdleConns(n int)

SetMaxIdleConns mocks base method.

func (*MockSQLDBInterface) SetMaxOpenConns

func (m *MockSQLDBInterface) SetMaxOpenConns(n int)

SetMaxOpenConns mocks base method.

type MockSQLDBInterfaceMockRecorder

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

MockSQLDBInterfaceMockRecorder is the mock recorder for MockSQLDBInterface.

func (*MockSQLDBInterfaceMockRecorder) BeginTx

func (mr *MockSQLDBInterfaceMockRecorder) BeginTx(ctx, opts interface{}) *gomock.Call

BeginTx indicates an expected call of BeginTx.

func (*MockSQLDBInterfaceMockRecorder) PingContext

func (mr *MockSQLDBInterfaceMockRecorder) PingContext(ctx interface{}) *gomock.Call

PingContext indicates an expected call of PingContext.

func (*MockSQLDBInterfaceMockRecorder) SetConnMaxLifetime

func (mr *MockSQLDBInterfaceMockRecorder) SetConnMaxLifetime(d interface{}) *gomock.Call

SetConnMaxLifetime indicates an expected call of SetConnMaxLifetime.

func (*MockSQLDBInterfaceMockRecorder) SetMaxIdleConns

func (mr *MockSQLDBInterfaceMockRecorder) SetMaxIdleConns(n interface{}) *gomock.Call

SetMaxIdleConns indicates an expected call of SetMaxIdleConns.

func (*MockSQLDBInterfaceMockRecorder) SetMaxOpenConns

func (mr *MockSQLDBInterfaceMockRecorder) SetMaxOpenConns(n interface{}) *gomock.Call

SetMaxOpenConns indicates an expected call of SetMaxOpenConns.

type MockSQLTxInterface

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

MockSQLTxInterface is a mock of SQLTxInterface interface.

func NewMockSQLTxInterface

func NewMockSQLTxInterface(ctrl *gomock.Controller) *MockSQLTxInterface

NewMockSQLTxInterface creates a new mock instance.

func (*MockSQLTxInterface) Commit

func (m *MockSQLTxInterface) Commit() error

Commit mocks base method.

func (*MockSQLTxInterface) EXPECT

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

func (*MockSQLTxInterface) Rollback

func (m *MockSQLTxInterface) Rollback() error

Rollback mocks base method.

type MockSQLTxInterfaceMockRecorder

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

MockSQLTxInterfaceMockRecorder is the mock recorder for MockSQLTxInterface.

func (*MockSQLTxInterfaceMockRecorder) Commit

Commit indicates an expected call of Commit.

func (*MockSQLTxInterfaceMockRecorder) Rollback

func (mr *MockSQLTxInterfaceMockRecorder) Rollback() *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