mock_recovery

package
v0.10.3-0...-96d0e78 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRecoveryStorage

type MockRecoveryStorage struct {
	mock.Mock
}

MockRecoveryStorage is an autogenerated mock type for the RecoveryStorage type

func NewMockRecoveryStorage

func NewMockRecoveryStorage(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRecoveryStorage

NewMockRecoveryStorage creates a new instance of MockRecoveryStorage. 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 (*MockRecoveryStorage) Close

func (_m *MockRecoveryStorage) Close()

Close provides a mock function with no fields

func (*MockRecoveryStorage) EXPECT

func (*MockRecoveryStorage) GetSchema

func (_m *MockRecoveryStorage) GetSchema(ctx context.Context, vchannel string, timetick uint64) (*schemapb.CollectionSchema, error)

GetSchema provides a mock function with given fields: ctx, vchannel, timetick

func (*MockRecoveryStorage) Metrics

Metrics provides a mock function with no fields

func (*MockRecoveryStorage) ObserveMessage

func (_m *MockRecoveryStorage) ObserveMessage(ctx context.Context, msg message.ImmutableMessage) error

ObserveMessage provides a mock function with given fields: ctx, msg

func (*MockRecoveryStorage) UpdateFlusherCheckpoint

func (_m *MockRecoveryStorage) UpdateFlusherCheckpoint(vchannel string, checkpoint *recovery.WALCheckpoint)

UpdateFlusherCheckpoint provides a mock function with given fields: vchannel, checkpoint

type MockRecoveryStorage_Close_Call

type MockRecoveryStorage_Close_Call struct {
	*mock.Call
}

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

func (*MockRecoveryStorage_Close_Call) Return

func (*MockRecoveryStorage_Close_Call) Run

func (*MockRecoveryStorage_Close_Call) RunAndReturn

func (_c *MockRecoveryStorage_Close_Call) RunAndReturn(run func()) *MockRecoveryStorage_Close_Call

type MockRecoveryStorage_Expecter

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

func (*MockRecoveryStorage_Expecter) Close

Close is a helper method to define mock.On call

func (*MockRecoveryStorage_Expecter) GetSchema

func (_e *MockRecoveryStorage_Expecter) GetSchema(ctx interface{}, vchannel interface{}, timetick interface{}) *MockRecoveryStorage_GetSchema_Call

GetSchema is a helper method to define mock.On call

  • ctx context.Context
  • vchannel string
  • timetick uint64

func (*MockRecoveryStorage_Expecter) Metrics

Metrics is a helper method to define mock.On call

func (*MockRecoveryStorage_Expecter) ObserveMessage

func (_e *MockRecoveryStorage_Expecter) ObserveMessage(ctx interface{}, msg interface{}) *MockRecoveryStorage_ObserveMessage_Call

ObserveMessage is a helper method to define mock.On call

  • ctx context.Context
  • msg message.ImmutableMessage

func (*MockRecoveryStorage_Expecter) UpdateFlusherCheckpoint

func (_e *MockRecoveryStorage_Expecter) UpdateFlusherCheckpoint(vchannel interface{}, checkpoint interface{}) *MockRecoveryStorage_UpdateFlusherCheckpoint_Call

UpdateFlusherCheckpoint is a helper method to define mock.On call

  • vchannel string
  • checkpoint *recovery.WALCheckpoint

type MockRecoveryStorage_GetSchema_Call

type MockRecoveryStorage_GetSchema_Call struct {
	*mock.Call
}

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

func (*MockRecoveryStorage_GetSchema_Call) Return

func (*MockRecoveryStorage_GetSchema_Call) Run

func (*MockRecoveryStorage_GetSchema_Call) RunAndReturn

type MockRecoveryStorage_Metrics_Call

type MockRecoveryStorage_Metrics_Call struct {
	*mock.Call
}

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

func (*MockRecoveryStorage_Metrics_Call) Return

func (*MockRecoveryStorage_Metrics_Call) Run

func (*MockRecoveryStorage_Metrics_Call) RunAndReturn

type MockRecoveryStorage_ObserveMessage_Call

type MockRecoveryStorage_ObserveMessage_Call struct {
	*mock.Call
}

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

func (*MockRecoveryStorage_ObserveMessage_Call) Return

func (*MockRecoveryStorage_ObserveMessage_Call) Run

func (*MockRecoveryStorage_ObserveMessage_Call) RunAndReturn

type MockRecoveryStorage_UpdateFlusherCheckpoint_Call

type MockRecoveryStorage_UpdateFlusherCheckpoint_Call struct {
	*mock.Call
}

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

func (*MockRecoveryStorage_UpdateFlusherCheckpoint_Call) Return

func (*MockRecoveryStorage_UpdateFlusherCheckpoint_Call) Run

func (*MockRecoveryStorage_UpdateFlusherCheckpoint_Call) RunAndReturn

Jump to

Keyboard shortcuts

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