mock_streaming

package
v0.10.3-0...-8c9dab5 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 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 MockWALAccesser

type MockWALAccesser struct {
	mock.Mock
}

MockWALAccesser is an autogenerated mock type for the WALAccesser type

func NewMockWALAccesser

func NewMockWALAccesser(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockWALAccesser

NewMockWALAccesser creates a new instance of MockWALAccesser. 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 (*MockWALAccesser) AppendMessages

AppendMessages provides a mock function with given fields: ctx, msgs

func (*MockWALAccesser) AppendMessagesWithOption

func (_m *MockWALAccesser) AppendMessagesWithOption(ctx context.Context, opts streaming.AppendOption, msgs ...message.MutableMessage) streaming.AppendResponses

AppendMessagesWithOption provides a mock function with given fields: ctx, opts, msgs

func (*MockWALAccesser) EXPECT

func (*MockWALAccesser) RawAppend

RawAppend provides a mock function with given fields: ctx, msgs, opts

func (*MockWALAccesser) Read

Read provides a mock function with given fields: ctx, opts

func (*MockWALAccesser) Txn

Txn provides a mock function with given fields: ctx, opts

type MockWALAccesser_AppendMessagesWithOption_Call

type MockWALAccesser_AppendMessagesWithOption_Call struct {
	*mock.Call
}

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

func (*MockWALAccesser_AppendMessagesWithOption_Call) Return

func (*MockWALAccesser_AppendMessagesWithOption_Call) Run

type MockWALAccesser_AppendMessages_Call

type MockWALAccesser_AppendMessages_Call struct {
	*mock.Call
}

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

func (*MockWALAccesser_AppendMessages_Call) Return

func (*MockWALAccesser_AppendMessages_Call) Run

type MockWALAccesser_Expecter

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

func (*MockWALAccesser_Expecter) AppendMessages

func (_e *MockWALAccesser_Expecter) AppendMessages(ctx interface{}, msgs ...interface{}) *MockWALAccesser_AppendMessages_Call

AppendMessages is a helper method to define mock.On call

  • ctx context.Context
  • msgs ...message.MutableMessage

func (*MockWALAccesser_Expecter) AppendMessagesWithOption

func (_e *MockWALAccesser_Expecter) AppendMessagesWithOption(ctx interface{}, opts interface{}, msgs ...interface{}) *MockWALAccesser_AppendMessagesWithOption_Call

AppendMessagesWithOption is a helper method to define mock.On call

  • ctx context.Context
  • opts streaming.AppendOption
  • msgs ...message.MutableMessage

func (*MockWALAccesser_Expecter) RawAppend

func (_e *MockWALAccesser_Expecter) RawAppend(ctx interface{}, msgs interface{}, opts ...interface{}) *MockWALAccesser_RawAppend_Call

RawAppend is a helper method to define mock.On call

  • ctx context.Context
  • msgs message.MutableMessage
  • opts ...streaming.AppendOption

func (*MockWALAccesser_Expecter) Read

func (_e *MockWALAccesser_Expecter) Read(ctx interface{}, opts interface{}) *MockWALAccesser_Read_Call

Read is a helper method to define mock.On call

  • ctx context.Context
  • opts streaming.ReadOption

func (*MockWALAccesser_Expecter) Txn

func (_e *MockWALAccesser_Expecter) Txn(ctx interface{}, opts interface{}) *MockWALAccesser_Txn_Call

Txn is a helper method to define mock.On call

  • ctx context.Context
  • opts streaming.TxnOption

type MockWALAccesser_RawAppend_Call

type MockWALAccesser_RawAppend_Call struct {
	*mock.Call
}

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

func (*MockWALAccesser_RawAppend_Call) Return

func (*MockWALAccesser_RawAppend_Call) Run

type MockWALAccesser_Read_Call

type MockWALAccesser_Read_Call struct {
	*mock.Call
}

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

func (*MockWALAccesser_Read_Call) Return

func (*MockWALAccesser_Read_Call) Run

func (*MockWALAccesser_Read_Call) RunAndReturn

type MockWALAccesser_Txn_Call

type MockWALAccesser_Txn_Call struct {
	*mock.Call
}

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

func (*MockWALAccesser_Txn_Call) Return

func (*MockWALAccesser_Txn_Call) Run

func (*MockWALAccesser_Txn_Call) RunAndReturn

Jump to

Keyboard shortcuts

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