Documentation ¶
Index ¶
- type MockManager
- func (_m *MockManager) Close()
- func (_m *MockManager) EXPECT() *MockManager_Expecter
- func (_m *MockManager) GetAllAvailableChannels() ([]types.PChannelInfo, error)
- func (_m *MockManager) GetAvailableWAL(channel types.PChannelInfo) (wal.WAL, error)
- func (_m *MockManager) Open(ctx context.Context, channel types.PChannelInfo) error
- func (_m *MockManager) Remove(ctx context.Context, channel types.PChannelInfo) error
- type MockManager_Close_Call
- type MockManager_Expecter
- func (_e *MockManager_Expecter) Close() *MockManager_Close_Call
- func (_e *MockManager_Expecter) GetAllAvailableChannels() *MockManager_GetAllAvailableChannels_Call
- func (_e *MockManager_Expecter) GetAvailableWAL(channel interface{}) *MockManager_GetAvailableWAL_Call
- func (_e *MockManager_Expecter) Open(ctx interface{}, channel interface{}) *MockManager_Open_Call
- func (_e *MockManager_Expecter) Remove(ctx interface{}, channel interface{}) *MockManager_Remove_Call
- type MockManager_GetAllAvailableChannels_Call
- func (_c *MockManager_GetAllAvailableChannels_Call) Return(_a0 []types.PChannelInfo, _a1 error) *MockManager_GetAllAvailableChannels_Call
- func (_c *MockManager_GetAllAvailableChannels_Call) Run(run func()) *MockManager_GetAllAvailableChannels_Call
- func (_c *MockManager_GetAllAvailableChannels_Call) RunAndReturn(run func() ([]types.PChannelInfo, error)) *MockManager_GetAllAvailableChannels_Call
- type MockManager_GetAvailableWAL_Call
- func (_c *MockManager_GetAvailableWAL_Call) Return(_a0 wal.WAL, _a1 error) *MockManager_GetAvailableWAL_Call
- func (_c *MockManager_GetAvailableWAL_Call) Run(run func(channel types.PChannelInfo)) *MockManager_GetAvailableWAL_Call
- func (_c *MockManager_GetAvailableWAL_Call) RunAndReturn(run func(types.PChannelInfo) (wal.WAL, error)) *MockManager_GetAvailableWAL_Call
- type MockManager_Open_Call
- func (_c *MockManager_Open_Call) Return(_a0 error) *MockManager_Open_Call
- func (_c *MockManager_Open_Call) Run(run func(ctx context.Context, channel types.PChannelInfo)) *MockManager_Open_Call
- func (_c *MockManager_Open_Call) RunAndReturn(run func(context.Context, types.PChannelInfo) error) *MockManager_Open_Call
- type MockManager_Remove_Call
- func (_c *MockManager_Remove_Call) Return(_a0 error) *MockManager_Remove_Call
- func (_c *MockManager_Remove_Call) Run(run func(ctx context.Context, channel types.PChannelInfo)) *MockManager_Remove_Call
- func (_c *MockManager_Remove_Call) RunAndReturn(run func(context.Context, types.PChannelInfo) error) *MockManager_Remove_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockManager ¶
MockManager is an autogenerated mock type for the Manager type
func NewMockManager ¶
func NewMockManager(t interface { mock.TestingT Cleanup(func()) }) *MockManager
NewMockManager creates a new instance of MockManager. 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 (*MockManager) Close ¶
func (_m *MockManager) Close()
Close provides a mock function with given fields:
func (*MockManager) EXPECT ¶
func (_m *MockManager) EXPECT() *MockManager_Expecter
func (*MockManager) GetAllAvailableChannels ¶
func (_m *MockManager) GetAllAvailableChannels() ([]types.PChannelInfo, error)
GetAllAvailableChannels provides a mock function with given fields:
func (*MockManager) GetAvailableWAL ¶
func (_m *MockManager) GetAvailableWAL(channel types.PChannelInfo) (wal.WAL, error)
GetAvailableWAL provides a mock function with given fields: channel
func (*MockManager) Open ¶
func (_m *MockManager) Open(ctx context.Context, channel types.PChannelInfo) error
Open provides a mock function with given fields: ctx, channel
func (*MockManager) Remove ¶
func (_m *MockManager) Remove(ctx context.Context, channel types.PChannelInfo) error
Remove provides a mock function with given fields: ctx, channel
type MockManager_Close_Call ¶
MockManager_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*MockManager_Close_Call) Return ¶
func (_c *MockManager_Close_Call) Return() *MockManager_Close_Call
func (*MockManager_Close_Call) Run ¶
func (_c *MockManager_Close_Call) Run(run func()) *MockManager_Close_Call
func (*MockManager_Close_Call) RunAndReturn ¶
func (_c *MockManager_Close_Call) RunAndReturn(run func()) *MockManager_Close_Call
type MockManager_Expecter ¶
type MockManager_Expecter struct {
// contains filtered or unexported fields
}
func (*MockManager_Expecter) Close ¶
func (_e *MockManager_Expecter) Close() *MockManager_Close_Call
Close is a helper method to define mock.On call
func (*MockManager_Expecter) GetAllAvailableChannels ¶
func (_e *MockManager_Expecter) GetAllAvailableChannels() *MockManager_GetAllAvailableChannels_Call
GetAllAvailableChannels is a helper method to define mock.On call
func (*MockManager_Expecter) GetAvailableWAL ¶
func (_e *MockManager_Expecter) GetAvailableWAL(channel interface{}) *MockManager_GetAvailableWAL_Call
GetAvailableWAL is a helper method to define mock.On call
- channel types.PChannelInfo
func (*MockManager_Expecter) Open ¶
func (_e *MockManager_Expecter) Open(ctx interface{}, channel interface{}) *MockManager_Open_Call
Open is a helper method to define mock.On call
- ctx context.Context
- channel types.PChannelInfo
func (*MockManager_Expecter) Remove ¶
func (_e *MockManager_Expecter) Remove(ctx interface{}, channel interface{}) *MockManager_Remove_Call
Remove is a helper method to define mock.On call
- ctx context.Context
- channel types.PChannelInfo
type MockManager_GetAllAvailableChannels_Call ¶
MockManager_GetAllAvailableChannels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAllAvailableChannels'
func (*MockManager_GetAllAvailableChannels_Call) Return ¶
func (_c *MockManager_GetAllAvailableChannels_Call) Return(_a0 []types.PChannelInfo, _a1 error) *MockManager_GetAllAvailableChannels_Call
func (*MockManager_GetAllAvailableChannels_Call) Run ¶
func (_c *MockManager_GetAllAvailableChannels_Call) Run(run func()) *MockManager_GetAllAvailableChannels_Call
func (*MockManager_GetAllAvailableChannels_Call) RunAndReturn ¶
func (_c *MockManager_GetAllAvailableChannels_Call) RunAndReturn(run func() ([]types.PChannelInfo, error)) *MockManager_GetAllAvailableChannels_Call
type MockManager_GetAvailableWAL_Call ¶
MockManager_GetAvailableWAL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAvailableWAL'
func (*MockManager_GetAvailableWAL_Call) Return ¶
func (_c *MockManager_GetAvailableWAL_Call) Return(_a0 wal.WAL, _a1 error) *MockManager_GetAvailableWAL_Call
func (*MockManager_GetAvailableWAL_Call) Run ¶
func (_c *MockManager_GetAvailableWAL_Call) Run(run func(channel types.PChannelInfo)) *MockManager_GetAvailableWAL_Call
func (*MockManager_GetAvailableWAL_Call) RunAndReturn ¶
func (_c *MockManager_GetAvailableWAL_Call) RunAndReturn(run func(types.PChannelInfo) (wal.WAL, error)) *MockManager_GetAvailableWAL_Call
type MockManager_Open_Call ¶
MockManager_Open_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Open'
func (*MockManager_Open_Call) Return ¶
func (_c *MockManager_Open_Call) Return(_a0 error) *MockManager_Open_Call
func (*MockManager_Open_Call) Run ¶
func (_c *MockManager_Open_Call) Run(run func(ctx context.Context, channel types.PChannelInfo)) *MockManager_Open_Call
func (*MockManager_Open_Call) RunAndReturn ¶
func (_c *MockManager_Open_Call) RunAndReturn(run func(context.Context, types.PChannelInfo) error) *MockManager_Open_Call
type MockManager_Remove_Call ¶
MockManager_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'
func (*MockManager_Remove_Call) Return ¶
func (_c *MockManager_Remove_Call) Return(_a0 error) *MockManager_Remove_Call
func (*MockManager_Remove_Call) Run ¶
func (_c *MockManager_Remove_Call) Run(run func(ctx context.Context, channel types.PChannelInfo)) *MockManager_Remove_Call
func (*MockManager_Remove_Call) RunAndReturn ¶
func (_c *MockManager_Remove_Call) RunAndReturn(run func(context.Context, types.PChannelInfo) error) *MockManager_Remove_Call