mock_flusher

package
v0.0.0-...-34e0b2d Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockFlusher

type MockFlusher struct {
	mock.Mock
}

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

Start is a helper method to define mock.On call

func (*MockFlusher_Expecter) Stop

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

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

func (*MockFlusher_RegisterPChannel_Call) RunAndReturn

type MockFlusher_RegisterVChannel_Call

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

func (*MockFlusher_RegisterVChannel_Call) RunAndReturn

type MockFlusher_Start_Call

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

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

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

func (*MockFlusher_UnregisterPChannel_Call) RunAndReturn

type MockFlusher_UnregisterVChannel_Call

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

func (*MockFlusher_UnregisterVChannel_Call) RunAndReturn

Jump to

Keyboard shortcuts

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