Documentation ¶
Overview ¶
Package mock_uow is a generated GoMock package.
Index ¶
- type MockDB
- type MockDBMockRecorder
- type MockTx
- func (m *MockTx) Begin(ctx context.Context) (uow.Tx, error)
- func (m *MockTx) Commit(ctx context.Context) error
- func (m *MockTx) EXPECT() *MockTxMockRecorder
- func (m *MockTx) Exec(ctx context.Context, query string, args ...any) (int64, error)
- func (m *MockTx) Query(ctx context.Context, dest any, query string, args ...any) error
- func (m *MockTx) Rollback(ctx context.Context) error
- type MockTxGetter
- type MockTxGetterMockRecorder
- type MockTxManager
- func (m *MockTxManager) Do(ctx context.Context, fn func(context.Context) error) error
- func (m *MockTxManager) DoWithSettings(ctx context.Context, s v20.Settings, fn func(context.Context) error) error
- func (m *MockTxManager) EXPECT() *MockTxManagerMockRecorder
- func (m *MockTxManager) Init(ctx context.Context, s v20.Settings) (context.Context, manager.Closer, error)
- type MockTxManagerMockRecorder
- type MockTxMockRecorder
- func (mr *MockTxMockRecorder) Begin(ctx any) *gomock.Call
- func (mr *MockTxMockRecorder) Commit(ctx any) *gomock.Call
- func (mr *MockTxMockRecorder) Exec(ctx, query any, args ...any) *gomock.Call
- func (mr *MockTxMockRecorder) Query(ctx, dest, query any, args ...any) *gomock.Call
- func (mr *MockTxMockRecorder) Rollback(ctx any) *gomock.Call
- type MockUnitOfWork
- type MockUnitOfWorkMockRecorder
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) EXPECT ¶
func (m *MockDB) EXPECT() *MockDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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.
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) EXPECT ¶
func (m *MockTx) EXPECT() *MockTxMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 ¶
DefaultTrOrDB mocks base method.
func (*MockTxGetter) EXPECT ¶
func (m *MockTxGetter) EXPECT() *MockTxGetterMockRecorder
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) DoWithSettings ¶
func (m *MockTxManager) DoWithSettings(ctx context.Context, s v20.Settings, fn func(context.Context) error) error
DoWithSettings mocks base method.
func (*MockTxManager) EXPECT ¶
func (m *MockTxManager) EXPECT() *MockTxManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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.
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.
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) EXPECT ¶
func (m *MockUnitOfWork) EXPECT() *MockUnitOfWorkMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockUnitOfWorkMockRecorder ¶
type MockUnitOfWorkMockRecorder struct {
// contains filtered or unexported fields
}
MockUnitOfWorkMockRecorder is the mock recorder for MockUnitOfWork.