mock_interceptors

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockInterceptor

type MockInterceptor struct {
	mock.Mock
}

MockInterceptor is an autogenerated mock type for the Interceptor type

func NewMockInterceptor

func NewMockInterceptor(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockInterceptor

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

func (_m *MockInterceptor) Close()

Close provides a mock function with given fields:

func (*MockInterceptor) DoAppend

DoAppend provides a mock function with given fields: ctx, msg, append

func (*MockInterceptor) EXPECT

type MockInterceptorBuilder

type MockInterceptorBuilder struct {
	mock.Mock
}

MockInterceptorBuilder is an autogenerated mock type for the InterceptorBuilder type

func NewMockInterceptorBuilder

func NewMockInterceptorBuilder(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockInterceptorBuilder

NewMockInterceptorBuilder creates a new instance of MockInterceptorBuilder. 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 (*MockInterceptorBuilder) Build

Build provides a mock function with given fields: param

func (*MockInterceptorBuilder) EXPECT

type MockInterceptorBuilder_Build_Call

type MockInterceptorBuilder_Build_Call struct {
	*mock.Call
}

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

func (*MockInterceptorBuilder_Build_Call) Return

func (*MockInterceptorBuilder_Build_Call) Run

type MockInterceptorBuilder_Expecter

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

func (*MockInterceptorBuilder_Expecter) Build

Build is a helper method to define mock.On call

  • param interceptors.InterceptorBuildParam

type MockInterceptorWithReady

type MockInterceptorWithReady struct {
	mock.Mock
}

MockInterceptorWithReady is an autogenerated mock type for the InterceptorWithReady type

func NewMockInterceptorWithReady

func NewMockInterceptorWithReady(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockInterceptorWithReady

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

func (_m *MockInterceptorWithReady) Close()

Close provides a mock function with given fields:

func (*MockInterceptorWithReady) DoAppend

DoAppend provides a mock function with given fields: ctx, msg, append

func (*MockInterceptorWithReady) EXPECT

func (*MockInterceptorWithReady) Ready

func (_m *MockInterceptorWithReady) Ready() <-chan struct{}

Ready provides a mock function with given fields:

type MockInterceptorWithReady_Close_Call

type MockInterceptorWithReady_Close_Call struct {
	*mock.Call
}

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

func (*MockInterceptorWithReady_Close_Call) Return

func (*MockInterceptorWithReady_Close_Call) Run

func (*MockInterceptorWithReady_Close_Call) RunAndReturn

type MockInterceptorWithReady_DoAppend_Call

type MockInterceptorWithReady_DoAppend_Call struct {
	*mock.Call
}

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

func (*MockInterceptorWithReady_DoAppend_Call) Return

func (*MockInterceptorWithReady_DoAppend_Call) Run

type MockInterceptorWithReady_Expecter

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

func (*MockInterceptorWithReady_Expecter) Close

Close is a helper method to define mock.On call

func (*MockInterceptorWithReady_Expecter) DoAppend

func (_e *MockInterceptorWithReady_Expecter) DoAppend(ctx interface{}, msg interface{}, append interface{}) *MockInterceptorWithReady_DoAppend_Call

DoAppend is a helper method to define mock.On call

  • ctx context.Context
  • msg message.MutableMessage
  • append func(context.Context , message.MutableMessage)(message.MessageID , error)

func (*MockInterceptorWithReady_Expecter) Ready

Ready is a helper method to define mock.On call

type MockInterceptorWithReady_Ready_Call

type MockInterceptorWithReady_Ready_Call struct {
	*mock.Call
}

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

func (*MockInterceptorWithReady_Ready_Call) Return

func (*MockInterceptorWithReady_Ready_Call) Run

func (*MockInterceptorWithReady_Ready_Call) RunAndReturn

func (_c *MockInterceptorWithReady_Ready_Call) RunAndReturn(run func() <-chan struct{}) *MockInterceptorWithReady_Ready_Call

type MockInterceptor_Close_Call

type MockInterceptor_Close_Call struct {
	*mock.Call
}

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

func (*MockInterceptor_Close_Call) Return

func (*MockInterceptor_Close_Call) Run

func (*MockInterceptor_Close_Call) RunAndReturn

func (_c *MockInterceptor_Close_Call) RunAndReturn(run func()) *MockInterceptor_Close_Call

type MockInterceptor_DoAppend_Call

type MockInterceptor_DoAppend_Call struct {
	*mock.Call
}

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

func (*MockInterceptor_DoAppend_Call) Return

func (*MockInterceptor_DoAppend_Call) Run

type MockInterceptor_Expecter

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

func (*MockInterceptor_Expecter) Close

Close is a helper method to define mock.On call

func (*MockInterceptor_Expecter) DoAppend

func (_e *MockInterceptor_Expecter) DoAppend(ctx interface{}, msg interface{}, append interface{}) *MockInterceptor_DoAppend_Call

DoAppend is a helper method to define mock.On call

  • ctx context.Context
  • msg message.MutableMessage
  • append func(context.Context , message.MutableMessage)(message.MessageID , error)

Jump to

Keyboard shortcuts

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