mock_walmanager

package
v0.10.3-0...-bec5499 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockManager

type MockManager struct {
	mock.Mock
}

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

type MockManager_Close_Call struct {
	*mock.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 (*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

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

type MockManager_GetAllAvailableChannels_Call struct {
	*mock.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 (*MockManager_GetAllAvailableChannels_Call) Run

func (*MockManager_GetAllAvailableChannels_Call) RunAndReturn

type MockManager_GetAvailableWAL_Call

type MockManager_GetAvailableWAL_Call struct {
	*mock.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 (*MockManager_GetAvailableWAL_Call) Run

func (*MockManager_GetAvailableWAL_Call) RunAndReturn

type MockManager_Open_Call

type MockManager_Open_Call struct {
	*mock.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 (*MockManager_Open_Call) Run

func (*MockManager_Open_Call) RunAndReturn

type MockManager_Remove_Call

type MockManager_Remove_Call struct {
	*mock.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 (*MockManager_Remove_Call) Run

func (*MockManager_Remove_Call) RunAndReturn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL