Documentation ¶
Index ¶
- type MockFlusher
- func (_m *MockFlusher) EXPECT() *MockFlusher_Expecter
- func (_m *MockFlusher) RegisterPChannel(pchannel string, w wal.WAL) error
- func (_m *MockFlusher) RegisterVChannel(vchannel string, _a1 wal.WAL)
- func (_m *MockFlusher) Start()
- func (_m *MockFlusher) Stop()
- func (_m *MockFlusher) UnregisterPChannel(pchannel string)
- func (_m *MockFlusher) UnregisterVChannel(vchannel string)
- type MockFlusher_Expecter
- func (_e *MockFlusher_Expecter) RegisterPChannel(pchannel interface{}, w interface{}) *MockFlusher_RegisterPChannel_Call
- func (_e *MockFlusher_Expecter) RegisterVChannel(vchannel interface{}, _a1 interface{}) *MockFlusher_RegisterVChannel_Call
- func (_e *MockFlusher_Expecter) Start() *MockFlusher_Start_Call
- func (_e *MockFlusher_Expecter) Stop() *MockFlusher_Stop_Call
- func (_e *MockFlusher_Expecter) UnregisterPChannel(pchannel interface{}) *MockFlusher_UnregisterPChannel_Call
- func (_e *MockFlusher_Expecter) UnregisterVChannel(vchannel interface{}) *MockFlusher_UnregisterVChannel_Call
- type MockFlusher_RegisterPChannel_Call
- func (_c *MockFlusher_RegisterPChannel_Call) Return(_a0 error) *MockFlusher_RegisterPChannel_Call
- func (_c *MockFlusher_RegisterPChannel_Call) Run(run func(pchannel string, w wal.WAL)) *MockFlusher_RegisterPChannel_Call
- func (_c *MockFlusher_RegisterPChannel_Call) RunAndReturn(run func(string, wal.WAL) error) *MockFlusher_RegisterPChannel_Call
- type MockFlusher_RegisterVChannel_Call
- func (_c *MockFlusher_RegisterVChannel_Call) Return() *MockFlusher_RegisterVChannel_Call
- func (_c *MockFlusher_RegisterVChannel_Call) Run(run func(vchannel string, _a1 wal.WAL)) *MockFlusher_RegisterVChannel_Call
- func (_c *MockFlusher_RegisterVChannel_Call) RunAndReturn(run func(string, wal.WAL)) *MockFlusher_RegisterVChannel_Call
- type MockFlusher_Start_Call
- type MockFlusher_Stop_Call
- type MockFlusher_UnregisterPChannel_Call
- func (_c *MockFlusher_UnregisterPChannel_Call) Return() *MockFlusher_UnregisterPChannel_Call
- func (_c *MockFlusher_UnregisterPChannel_Call) Run(run func(pchannel string)) *MockFlusher_UnregisterPChannel_Call
- func (_c *MockFlusher_UnregisterPChannel_Call) RunAndReturn(run func(string)) *MockFlusher_UnregisterPChannel_Call
- type MockFlusher_UnregisterVChannel_Call
- func (_c *MockFlusher_UnregisterVChannel_Call) Return() *MockFlusher_UnregisterVChannel_Call
- func (_c *MockFlusher_UnregisterVChannel_Call) Run(run func(vchannel string)) *MockFlusher_UnregisterVChannel_Call
- func (_c *MockFlusher_UnregisterVChannel_Call) RunAndReturn(run func(string)) *MockFlusher_UnregisterVChannel_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockFlusher ¶
MockFlusher is an autogenerated mock type for the Flusher type
func NewMockFlusher ¶
func NewMockFlusher(t interface { mock.TestingT Cleanup(func()) }) *MockFlusher
NewMockFlusher creates a new instance of MockFlusher. 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 (*MockFlusher) EXPECT ¶
func (_m *MockFlusher) EXPECT() *MockFlusher_Expecter
func (*MockFlusher) RegisterPChannel ¶
func (_m *MockFlusher) RegisterPChannel(pchannel string, w wal.WAL) error
RegisterPChannel provides a mock function with given fields: pchannel, w
func (*MockFlusher) RegisterVChannel ¶
func (_m *MockFlusher) RegisterVChannel(vchannel string, _a1 wal.WAL)
RegisterVChannel provides a mock function with given fields: vchannel, _a1
func (*MockFlusher) Start ¶
func (_m *MockFlusher) Start()
Start provides a mock function with given fields:
func (*MockFlusher) Stop ¶
func (_m *MockFlusher) Stop()
Stop provides a mock function with given fields:
func (*MockFlusher) UnregisterPChannel ¶
func (_m *MockFlusher) UnregisterPChannel(pchannel string)
UnregisterPChannel provides a mock function with given fields: pchannel
func (*MockFlusher) UnregisterVChannel ¶
func (_m *MockFlusher) UnregisterVChannel(vchannel string)
UnregisterVChannel provides a mock function with given fields: vchannel
type MockFlusher_Expecter ¶
type MockFlusher_Expecter struct {
// contains filtered or unexported fields
}
func (*MockFlusher_Expecter) RegisterPChannel ¶
func (_e *MockFlusher_Expecter) RegisterPChannel(pchannel interface{}, w interface{}) *MockFlusher_RegisterPChannel_Call
RegisterPChannel is a helper method to define mock.On call
- pchannel string
- w wal.WAL
func (*MockFlusher_Expecter) RegisterVChannel ¶
func (_e *MockFlusher_Expecter) RegisterVChannel(vchannel interface{}, _a1 interface{}) *MockFlusher_RegisterVChannel_Call
RegisterVChannel is a helper method to define mock.On call
- vchannel string
- _a1 wal.WAL
func (*MockFlusher_Expecter) Start ¶
func (_e *MockFlusher_Expecter) Start() *MockFlusher_Start_Call
Start is a helper method to define mock.On call
func (*MockFlusher_Expecter) Stop ¶
func (_e *MockFlusher_Expecter) Stop() *MockFlusher_Stop_Call
Stop is a helper method to define mock.On call
func (*MockFlusher_Expecter) UnregisterPChannel ¶
func (_e *MockFlusher_Expecter) UnregisterPChannel(pchannel interface{}) *MockFlusher_UnregisterPChannel_Call
UnregisterPChannel is a helper method to define mock.On call
- pchannel string
func (*MockFlusher_Expecter) UnregisterVChannel ¶
func (_e *MockFlusher_Expecter) UnregisterVChannel(vchannel interface{}) *MockFlusher_UnregisterVChannel_Call
UnregisterVChannel is a helper method to define mock.On call
- vchannel string
type MockFlusher_RegisterPChannel_Call ¶
MockFlusher_RegisterPChannel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterPChannel'
func (*MockFlusher_RegisterPChannel_Call) Return ¶
func (_c *MockFlusher_RegisterPChannel_Call) Return(_a0 error) *MockFlusher_RegisterPChannel_Call
func (*MockFlusher_RegisterPChannel_Call) Run ¶
func (_c *MockFlusher_RegisterPChannel_Call) Run(run func(pchannel string, w wal.WAL)) *MockFlusher_RegisterPChannel_Call
func (*MockFlusher_RegisterPChannel_Call) RunAndReturn ¶
func (_c *MockFlusher_RegisterPChannel_Call) RunAndReturn(run func(string, wal.WAL) error) *MockFlusher_RegisterPChannel_Call
type MockFlusher_RegisterVChannel_Call ¶
MockFlusher_RegisterVChannel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterVChannel'
func (*MockFlusher_RegisterVChannel_Call) Return ¶
func (_c *MockFlusher_RegisterVChannel_Call) Return() *MockFlusher_RegisterVChannel_Call
func (*MockFlusher_RegisterVChannel_Call) Run ¶
func (_c *MockFlusher_RegisterVChannel_Call) Run(run func(vchannel string, _a1 wal.WAL)) *MockFlusher_RegisterVChannel_Call
func (*MockFlusher_RegisterVChannel_Call) RunAndReturn ¶
func (_c *MockFlusher_RegisterVChannel_Call) RunAndReturn(run func(string, wal.WAL)) *MockFlusher_RegisterVChannel_Call
type MockFlusher_Start_Call ¶
MockFlusher_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*MockFlusher_Start_Call) Return ¶
func (_c *MockFlusher_Start_Call) Return() *MockFlusher_Start_Call
func (*MockFlusher_Start_Call) Run ¶
func (_c *MockFlusher_Start_Call) Run(run func()) *MockFlusher_Start_Call
func (*MockFlusher_Start_Call) RunAndReturn ¶
func (_c *MockFlusher_Start_Call) RunAndReturn(run func()) *MockFlusher_Start_Call
type MockFlusher_Stop_Call ¶
MockFlusher_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
func (*MockFlusher_Stop_Call) Return ¶
func (_c *MockFlusher_Stop_Call) Return() *MockFlusher_Stop_Call
func (*MockFlusher_Stop_Call) Run ¶
func (_c *MockFlusher_Stop_Call) Run(run func()) *MockFlusher_Stop_Call
func (*MockFlusher_Stop_Call) RunAndReturn ¶
func (_c *MockFlusher_Stop_Call) RunAndReturn(run func()) *MockFlusher_Stop_Call
type MockFlusher_UnregisterPChannel_Call ¶
MockFlusher_UnregisterPChannel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnregisterPChannel'
func (*MockFlusher_UnregisterPChannel_Call) Return ¶
func (_c *MockFlusher_UnregisterPChannel_Call) Return() *MockFlusher_UnregisterPChannel_Call
func (*MockFlusher_UnregisterPChannel_Call) Run ¶
func (_c *MockFlusher_UnregisterPChannel_Call) Run(run func(pchannel string)) *MockFlusher_UnregisterPChannel_Call
func (*MockFlusher_UnregisterPChannel_Call) RunAndReturn ¶
func (_c *MockFlusher_UnregisterPChannel_Call) RunAndReturn(run func(string)) *MockFlusher_UnregisterPChannel_Call
type MockFlusher_UnregisterVChannel_Call ¶
MockFlusher_UnregisterVChannel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnregisterVChannel'
func (*MockFlusher_UnregisterVChannel_Call) Return ¶
func (_c *MockFlusher_UnregisterVChannel_Call) Return() *MockFlusher_UnregisterVChannel_Call
func (*MockFlusher_UnregisterVChannel_Call) Run ¶
func (_c *MockFlusher_UnregisterVChannel_Call) Run(run func(vchannel string)) *MockFlusher_UnregisterVChannel_Call
func (*MockFlusher_UnregisterVChannel_Call) RunAndReturn ¶
func (_c *MockFlusher_UnregisterVChannel_Call) RunAndReturn(run func(string)) *MockFlusher_UnregisterVChannel_Call