mocks

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2025 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 MockinfoCommander

type MockinfoCommander struct {
	mock.Mock
}

MockinfoCommander is an autogenerated mock type for the infoCommander type

func NewMockinfoCommander

func NewMockinfoCommander(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockinfoCommander

NewMockinfoCommander creates a new instance of MockinfoCommander. 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 (*MockinfoCommander) BlockMRTWrites

func (_mock *MockinfoCommander) BlockMRTWrites(nodeName string, namespace string) error

BlockMRTWrites provides a mock function for the type MockinfoCommander

func (*MockinfoCommander) EXPECT

func (*MockinfoCommander) GetNodesNames

func (_mock *MockinfoCommander) GetNodesNames() []string

GetNodesNames provides a mock function for the type MockinfoCommander

func (*MockinfoCommander) GetStats

func (_mock *MockinfoCommander) GetStats(nodeName string, dc string, namespace string) (asinfo.Stats, error)

GetStats provides a mock function for the type MockinfoCommander

func (*MockinfoCommander) StartXDR

func (_mock *MockinfoCommander) StartXDR(nodeName string, dc string, hostPort string, namespace string, rewind string, throughput int, forward bool) error

StartXDR provides a mock function for the type MockinfoCommander

func (*MockinfoCommander) StopXDR

func (_mock *MockinfoCommander) StopXDR(nodeName string, dc string) error

StopXDR provides a mock function for the type MockinfoCommander

func (*MockinfoCommander) UnBlockMRTWrites

func (_mock *MockinfoCommander) UnBlockMRTWrites(nodeName string, namespace string) error

UnBlockMRTWrites provides a mock function for the type MockinfoCommander

type MockinfoCommander_BlockMRTWrites_Call

type MockinfoCommander_BlockMRTWrites_Call struct {
	*mock.Call
}

MockinfoCommander_BlockMRTWrites_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockMRTWrites'

func (*MockinfoCommander_BlockMRTWrites_Call) Return

func (*MockinfoCommander_BlockMRTWrites_Call) Run

func (*MockinfoCommander_BlockMRTWrites_Call) RunAndReturn

func (_c *MockinfoCommander_BlockMRTWrites_Call) RunAndReturn(run func(nodeName string, namespace string) error) *MockinfoCommander_BlockMRTWrites_Call

type MockinfoCommander_Expecter

type MockinfoCommander_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockinfoCommander_Expecter) BlockMRTWrites

func (_e *MockinfoCommander_Expecter) BlockMRTWrites(nodeName interface{}, namespace interface{}) *MockinfoCommander_BlockMRTWrites_Call

BlockMRTWrites is a helper method to define mock.On call

  • nodeName
  • namespace

func (*MockinfoCommander_Expecter) GetNodesNames

GetNodesNames is a helper method to define mock.On call

func (*MockinfoCommander_Expecter) GetStats

func (_e *MockinfoCommander_Expecter) GetStats(nodeName interface{}, dc interface{}, namespace interface{}) *MockinfoCommander_GetStats_Call

GetStats is a helper method to define mock.On call

  • nodeName
  • dc
  • namespace

func (*MockinfoCommander_Expecter) StartXDR

func (_e *MockinfoCommander_Expecter) StartXDR(nodeName interface{}, dc interface{}, hostPort interface{}, namespace interface{}, rewind interface{}, throughput interface{}, forward interface{}) *MockinfoCommander_StartXDR_Call

StartXDR is a helper method to define mock.On call

  • nodeName
  • dc
  • hostPort
  • namespace
  • rewind
  • throughput
  • forward

func (*MockinfoCommander_Expecter) StopXDR

func (_e *MockinfoCommander_Expecter) StopXDR(nodeName interface{}, dc interface{}) *MockinfoCommander_StopXDR_Call

StopXDR is a helper method to define mock.On call

  • nodeName
  • dc

func (*MockinfoCommander_Expecter) UnBlockMRTWrites

func (_e *MockinfoCommander_Expecter) UnBlockMRTWrites(nodeName interface{}, namespace interface{}) *MockinfoCommander_UnBlockMRTWrites_Call

UnBlockMRTWrites is a helper method to define mock.On call

  • nodeName
  • namespace

type MockinfoCommander_GetNodesNames_Call

type MockinfoCommander_GetNodesNames_Call struct {
	*mock.Call
}

MockinfoCommander_GetNodesNames_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNodesNames'

func (*MockinfoCommander_GetNodesNames_Call) Return

func (*MockinfoCommander_GetNodesNames_Call) Run

func (*MockinfoCommander_GetNodesNames_Call) RunAndReturn

type MockinfoCommander_GetStats_Call

type MockinfoCommander_GetStats_Call struct {
	*mock.Call
}

MockinfoCommander_GetStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStats'

func (*MockinfoCommander_GetStats_Call) Return

func (*MockinfoCommander_GetStats_Call) Run

func (_c *MockinfoCommander_GetStats_Call) Run(run func(nodeName string, dc string, namespace string)) *MockinfoCommander_GetStats_Call

func (*MockinfoCommander_GetStats_Call) RunAndReturn

func (_c *MockinfoCommander_GetStats_Call) RunAndReturn(run func(nodeName string, dc string, namespace string) (asinfo.Stats, error)) *MockinfoCommander_GetStats_Call

type MockinfoCommander_StartXDR_Call

type MockinfoCommander_StartXDR_Call struct {
	*mock.Call
}

MockinfoCommander_StartXDR_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartXDR'

func (*MockinfoCommander_StartXDR_Call) Return

func (*MockinfoCommander_StartXDR_Call) Run

func (_c *MockinfoCommander_StartXDR_Call) Run(run func(nodeName string, dc string, hostPort string, namespace string, rewind string, throughput int, forward bool)) *MockinfoCommander_StartXDR_Call

func (*MockinfoCommander_StartXDR_Call) RunAndReturn

func (_c *MockinfoCommander_StartXDR_Call) RunAndReturn(run func(nodeName string, dc string, hostPort string, namespace string, rewind string, throughput int, forward bool) error) *MockinfoCommander_StartXDR_Call

type MockinfoCommander_StopXDR_Call

type MockinfoCommander_StopXDR_Call struct {
	*mock.Call
}

MockinfoCommander_StopXDR_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StopXDR'

func (*MockinfoCommander_StopXDR_Call) Return

func (*MockinfoCommander_StopXDR_Call) Run

func (*MockinfoCommander_StopXDR_Call) RunAndReturn

func (_c *MockinfoCommander_StopXDR_Call) RunAndReturn(run func(nodeName string, dc string) error) *MockinfoCommander_StopXDR_Call

type MockinfoCommander_UnBlockMRTWrites_Call

type MockinfoCommander_UnBlockMRTWrites_Call struct {
	*mock.Call
}

MockinfoCommander_UnBlockMRTWrites_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnBlockMRTWrites'

func (*MockinfoCommander_UnBlockMRTWrites_Call) Return

func (*MockinfoCommander_UnBlockMRTWrites_Call) Run

func (*MockinfoCommander_UnBlockMRTWrites_Call) RunAndReturn

Jump to

Keyboard shortcuts

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