Documentation ¶
Index ¶
- type MockWALAccesser
- type MockWALAccesser_Append_Call
- func (_c *MockWALAccesser_Append_Call) Return(_a0 streaming.AppendResponses) *MockWALAccesser_Append_Call
- func (_c *MockWALAccesser_Append_Call) Run(run func(ctx context.Context, msgs ...message.MutableMessage)) *MockWALAccesser_Append_Call
- func (_c *MockWALAccesser_Append_Call) RunAndReturn(run func(context.Context, ...message.MutableMessage) streaming.AppendResponses) *MockWALAccesser_Append_Call
- type MockWALAccesser_Expecter
- type MockWALAccesser_Read_Call
- func (_c *MockWALAccesser_Read_Call) Return(_a0 streaming.Scanner) *MockWALAccesser_Read_Call
- func (_c *MockWALAccesser_Read_Call) Run(run func(ctx context.Context, opts streaming.ReadOption)) *MockWALAccesser_Read_Call
- func (_c *MockWALAccesser_Read_Call) RunAndReturn(run func(context.Context, streaming.ReadOption) streaming.Scanner) *MockWALAccesser_Read_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockWALAccesser ¶
MockWALAccesser is an autogenerated mock type for the WALAccesser type
func NewMockWALAccesser ¶
func NewMockWALAccesser(t interface { mock.TestingT Cleanup(func()) }) *MockWALAccesser
NewMockWALAccesser creates a new instance of MockWALAccesser. 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 (*MockWALAccesser) Append ¶
func (_m *MockWALAccesser) Append(ctx context.Context, msgs ...message.MutableMessage) streaming.AppendResponses
Append provides a mock function with given fields: ctx, msgs
func (*MockWALAccesser) EXPECT ¶
func (_m *MockWALAccesser) EXPECT() *MockWALAccesser_Expecter
func (*MockWALAccesser) Read ¶
func (_m *MockWALAccesser) Read(ctx context.Context, opts streaming.ReadOption) streaming.Scanner
Read provides a mock function with given fields: ctx, opts
type MockWALAccesser_Append_Call ¶
MockWALAccesser_Append_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Append'
func (*MockWALAccesser_Append_Call) Return ¶
func (_c *MockWALAccesser_Append_Call) Return(_a0 streaming.AppendResponses) *MockWALAccesser_Append_Call
func (*MockWALAccesser_Append_Call) Run ¶
func (_c *MockWALAccesser_Append_Call) Run(run func(ctx context.Context, msgs ...message.MutableMessage)) *MockWALAccesser_Append_Call
func (*MockWALAccesser_Append_Call) RunAndReturn ¶
func (_c *MockWALAccesser_Append_Call) RunAndReturn(run func(context.Context, ...message.MutableMessage) streaming.AppendResponses) *MockWALAccesser_Append_Call
type MockWALAccesser_Expecter ¶
type MockWALAccesser_Expecter struct {
// contains filtered or unexported fields
}
func (*MockWALAccesser_Expecter) Append ¶
func (_e *MockWALAccesser_Expecter) Append(ctx interface{}, msgs ...interface{}) *MockWALAccesser_Append_Call
Append is a helper method to define mock.On call
- ctx context.Context
- msgs ...message.MutableMessage
func (*MockWALAccesser_Expecter) Read ¶
func (_e *MockWALAccesser_Expecter) Read(ctx interface{}, opts interface{}) *MockWALAccesser_Read_Call
Read is a helper method to define mock.On call
- ctx context.Context
- opts streaming.ReadOption
type MockWALAccesser_Read_Call ¶
MockWALAccesser_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*MockWALAccesser_Read_Call) Return ¶
func (_c *MockWALAccesser_Read_Call) Return(_a0 streaming.Scanner) *MockWALAccesser_Read_Call
func (*MockWALAccesser_Read_Call) Run ¶
func (_c *MockWALAccesser_Read_Call) Run(run func(ctx context.Context, opts streaming.ReadOption)) *MockWALAccesser_Read_Call
func (*MockWALAccesser_Read_Call) RunAndReturn ¶
func (_c *MockWALAccesser_Read_Call) RunAndReturn(run func(context.Context, streaming.ReadOption) streaming.Scanner) *MockWALAccesser_Read_Call