mock_uow

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: 4 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 ...interface{}) (int64, error)

Exec mocks base method.

func (*MockDB) Query

func (m *MockDB) Query(ctx context.Context, dest interface{}, query string, args ...interface{}) 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 interface{}) *gomock.Call

Begin indicates an expected call of Begin.

func (*MockDBMockRecorder) Exec

func (mr *MockDBMockRecorder) Exec(ctx, query interface{}, args ...interface{}) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockDBMockRecorder) Query

func (mr *MockDBMockRecorder) Query(ctx, dest, query interface{}, args ...interface{}) *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 ...interface{}) (int64, error)

Exec mocks base method.

func (*MockTx) Query

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

Query mocks base method.

func (*MockTx) Rollback

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

Rollback 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) Exec

func (mr *MockTxMockRecorder) Exec(ctx, query interface{}, args ...interface{}) *gomock.Call

Exec indicates an expected call of Exec.

func (*MockTxMockRecorder) Query

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

Query indicates an expected call of Query.

func (*MockTxMockRecorder) Rollback

func (mr *MockTxMockRecorder) Rollback(ctx interface{}) *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 interface{}) *gomock.Call

Begin indicates an expected call of Begin.

func (*MockUnitOfWorkMockRecorder) Finish

func (mr *MockUnitOfWorkMockRecorder) Finish(ctx, tx, err interface{}) *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