Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WAL ¶
WAL is an autogenerated mock type for the WAL type
func NewWAL ¶
NewWAL creates a new instance of WAL. 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 (*WAL) EXPECT ¶
func (_m *WAL) EXPECT() *WAL_Expecter
func (*WAL) Register ¶
func (_mock *WAL) Register(eventHandler wal.EventHandler)
Register provides a mock function for the type WAL
type WAL_Close_Call ¶
WAL_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*WAL_Close_Call) Return ¶
func (_c *WAL_Close_Call) Return(err error) *WAL_Close_Call
func (*WAL_Close_Call) Run ¶
func (_c *WAL_Close_Call) Run(run func()) *WAL_Close_Call
func (*WAL_Close_Call) RunAndReturn ¶
func (_c *WAL_Close_Call) RunAndReturn(run func() error) *WAL_Close_Call
type WAL_Expecter ¶
type WAL_Expecter struct {
// contains filtered or unexported fields
}
func (*WAL_Expecter) Close ¶
func (_e *WAL_Expecter) Close() *WAL_Close_Call
Close is a helper method to define mock.On call
func (*WAL_Expecter) Log ¶
func (_e *WAL_Expecter) Log(s any, anyMoqParam any) *WAL_Log_Call
Log is a helper method to define mock.On call
- s string
- anyMoqParam any
func (*WAL_Expecter) Recover ¶
func (_e *WAL_Expecter) Recover(context1 any) *WAL_Recover_Call
Recover is a helper method to define mock.On call
- context1 context.Context
func (*WAL_Expecter) Register ¶
func (_e *WAL_Expecter) Register(eventHandler any) *WAL_Register_Call
Register is a helper method to define mock.On call
- eventHandler wal.EventHandler
type WAL_Log_Call ¶
WAL_Log_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Log'
func (*WAL_Log_Call) Return ¶
func (_c *WAL_Log_Call) Return(commit wal.Commit, err error) *WAL_Log_Call
func (*WAL_Log_Call) Run ¶
func (_c *WAL_Log_Call) Run(run func(s string, anyMoqParam any)) *WAL_Log_Call
func (*WAL_Log_Call) RunAndReturn ¶
func (_c *WAL_Log_Call) RunAndReturn(run func(s string, anyMoqParam any) (wal.Commit, error)) *WAL_Log_Call
type WAL_Recover_Call ¶
WAL_Recover_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Recover'
func (*WAL_Recover_Call) Return ¶
func (_c *WAL_Recover_Call) Return() *WAL_Recover_Call
func (*WAL_Recover_Call) Run ¶
func (_c *WAL_Recover_Call) Run(run func(context1 context.Context)) *WAL_Recover_Call
func (*WAL_Recover_Call) RunAndReturn ¶
func (_c *WAL_Recover_Call) RunAndReturn(run func(context1 context.Context)) *WAL_Recover_Call
type WAL_Register_Call ¶
WAL_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'
func (*WAL_Register_Call) Return ¶
func (_c *WAL_Register_Call) Return() *WAL_Register_Call
func (*WAL_Register_Call) Run ¶
func (_c *WAL_Register_Call) Run(run func(eventHandler wal.EventHandler)) *WAL_Register_Call
func (*WAL_Register_Call) RunAndReturn ¶
func (_c *WAL_Register_Call) RunAndReturn(run func(eventHandler wal.EventHandler)) *WAL_Register_Call