Documentation
¶
Index ¶
- type MockTxManager
- type MockTxManager_Expecter
- type MockTxManager_WithTx_Call
- func (_c *MockTxManager_WithTx_Call) Return(err error) *MockTxManager_WithTx_Call
- func (_c *MockTxManager_WithTx_Call) Run(run func(ctx context.Context, fn func(ctx context.Context) error)) *MockTxManager_WithTx_Call
- func (_c *MockTxManager_WithTx_Call) RunAndReturn(run func(ctx context.Context, fn func(ctx context.Context) error) error) *MockTxManager_WithTx_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTxManager ¶
MockTxManager is an autogenerated mock type for the TxManager type
func NewMockTxManager ¶
func NewMockTxManager(t interface {
mock.TestingT
Cleanup(func())
}) *MockTxManager
NewMockTxManager creates a new instance of MockTxManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockTxManager) EXPECT ¶
func (_m *MockTxManager) EXPECT() *MockTxManager_Expecter
type MockTxManager_Expecter ¶
type MockTxManager_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTxManager_Expecter) WithTx ¶
func (_e *MockTxManager_Expecter) WithTx(ctx interface{}, fn interface{}) *MockTxManager_WithTx_Call
WithTx is a helper method to define mock.On call
- ctx context.Context
- fn func(ctx context.Context) error
type MockTxManager_WithTx_Call ¶
MockTxManager_WithTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithTx'
func (*MockTxManager_WithTx_Call) Return ¶
func (_c *MockTxManager_WithTx_Call) Return(err error) *MockTxManager_WithTx_Call
func (*MockTxManager_WithTx_Call) Run ¶
func (_c *MockTxManager_WithTx_Call) Run(run func(ctx context.Context, fn func(ctx context.Context) error)) *MockTxManager_WithTx_Call
func (*MockTxManager_WithTx_Call) RunAndReturn ¶
func (_c *MockTxManager_WithTx_Call) RunAndReturn(run func(ctx context.Context, fn func(ctx context.Context) error) error) *MockTxManager_WithTx_Call
Click to show internal directories.
Click to hide internal directories.