mock_uow

package
v0.0.0-...-91ee7f2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package mock_uow is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDB

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

MockDB is a mock of DB interface.

func NewMockDB

func NewMockDB(ctrl *gomock.Controller) *MockDB

NewMockDB creates a new mock instance.

func (*MockDB) Begin

func (m *MockDB) Begin(ctx context.Context) (uow.Tx, error)

Begin mocks base method.

func (*MockDB) EXPECT

func (m *MockDB) EXPECT() *MockDBMockRecorder

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

func (*MockDB) Exec

func (m *MockDB) Exec(ctx context.Context, query string, args ...any) (int64, error)

Exec mocks base method.

func (*MockDB) Query

func (m *MockDB) Query(ctx context.Context, dest any, query string, args ...any) error

Query mocks base method.

type MockDBMockRecorder

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

MockDBMockRecorder is the mock recorder for MockDB.

func (*MockDBMockRecorder) Begin

func (mr *MockDBMockRecorder) Begin(ctx any) *gomock.Call

Begin indicates an expected call of Begin.

func (*MockDBMockRecorder) Exec

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

Exec indicates an expected call of Exec.

func (*MockDBMockRecorder) Query

func (mr *MockDBMockRecorder) Query(ctx, dest, query any, args ...any) *gomock.Call

Query indicates an expected call of Query.

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) (uow.Tx, error)

Begin mocks base method.

func (*MockTx) Commit

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

Commit 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, query string, args ...any) (int64, error)

Exec mocks base method.

func (*MockTx) Query

func (m *MockTx) Query(ctx context.Context, dest any, query string, args ...any) error

Query mocks base method.

func (*MockTx) Rollback

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

Rollback mocks base method.

type MockTxGetter

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

MockTxGetter is a mock of TxGetter interface.

func NewMockTxGetter

func NewMockTxGetter(ctrl *gomock.Controller) *MockTxGetter

NewMockTxGetter creates a new mock instance.

func (*MockTxGetter) DefaultTrOrDB

func (m *MockTxGetter) DefaultTrOrDB(ctx context.Context, db v2.Tr) v2.Tr

DefaultTrOrDB mocks base method.

func (*MockTxGetter) EXPECT

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

type MockTxGetterMockRecorder

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

MockTxGetterMockRecorder is the mock recorder for MockTxGetter.

func (*MockTxGetterMockRecorder) DefaultTrOrDB

func (mr *MockTxGetterMockRecorder) DefaultTrOrDB(ctx, db any) *gomock.Call

DefaultTrOrDB indicates an expected call of DefaultTrOrDB.

type MockTxManager

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

MockTxManager is a mock of TxManager interface.

func NewMockTxManager

func NewMockTxManager(ctrl *gomock.Controller) *MockTxManager

NewMockTxManager creates a new mock instance.

func (*MockTxManager) Do

func (m *MockTxManager) Do(ctx context.Context, fn func(context.Context) error) error

Do mocks base method.

func (*MockTxManager) DoWithSettings

func (m *MockTxManager) DoWithSettings(ctx context.Context, s v20.Settings, fn func(context.Context) error) error

DoWithSettings mocks base method.

func (*MockTxManager) EXPECT

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

func (*MockTxManager) Init

Init mocks base method.

type MockTxManagerMockRecorder

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

MockTxManagerMockRecorder is the mock recorder for MockTxManager.

func (*MockTxManagerMockRecorder) Do

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

Do indicates an expected call of Do.

func (*MockTxManagerMockRecorder) DoWithSettings

func (mr *MockTxManagerMockRecorder) DoWithSettings(ctx, s, fn any) *gomock.Call

DoWithSettings indicates an expected call of DoWithSettings.

func (*MockTxManagerMockRecorder) Init

func (mr *MockTxManagerMockRecorder) Init(ctx, s any) *gomock.Call

Init indicates an expected call of Init.

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 any) *gomock.Call

Begin indicates an expected call of Begin.

func (*MockTxMockRecorder) Commit

func (mr *MockTxMockRecorder) Commit(ctx any) *gomock.Call

Commit indicates an expected call of Commit.

func (*MockTxMockRecorder) Exec

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

Exec indicates an expected call of Exec.

func (*MockTxMockRecorder) Query

func (mr *MockTxMockRecorder) Query(ctx, dest, query any, args ...any) *gomock.Call

Query indicates an expected call of Query.

func (*MockTxMockRecorder) Rollback

func (mr *MockTxMockRecorder) Rollback(ctx any) *gomock.Call

Rollback indicates an expected call of Rollback.

type MockUnitOfWork

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

MockUnitOfWork is a mock of UnitOfWork interface.

func NewMockUnitOfWork

func NewMockUnitOfWork(ctrl *gomock.Controller) *MockUnitOfWork

NewMockUnitOfWork creates a new mock instance.

func (*MockUnitOfWork) Begin

func (m *MockUnitOfWork) Begin(ctx context.Context) (uow.Tx, error)

Begin mocks base method.

func (*MockUnitOfWork) EXPECT

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

func (*MockUnitOfWork) Finish

func (m *MockUnitOfWork) Finish(ctx context.Context, tx uow.Tx, err error) error

Finish mocks base method.

type MockUnitOfWorkMockRecorder

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

MockUnitOfWorkMockRecorder is the mock recorder for MockUnitOfWork.

func (*MockUnitOfWorkMockRecorder) Begin

func (mr *MockUnitOfWorkMockRecorder) Begin(ctx any) *gomock.Call

Begin indicates an expected call of Begin.

func (*MockUnitOfWorkMockRecorder) Finish

func (mr *MockUnitOfWorkMockRecorder) Finish(ctx, tx, err any) *gomock.Call

Finish indicates an expected call of Finish.

Jump to

Keyboard shortcuts

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