// Code generated by mockery v2.32.4. DO NOT EDIT. package mock_walimpls import ( context "context" message "github.com/milvus-io/milvus/pkg/streaming/util/message" mock "github.com/stretchr/testify/mock" ) // MockInterceptor is an autogenerated mock type for the Interceptor type type MockInterceptor struct { mock.Mock } type MockInterceptor_Expecter struct { mock *mock.Mock } func (_m *MockInterceptor) EXPECT() *MockInterceptor_Expecter { return &MockInterceptor_Expecter{mock: &_m.Mock} } // Close provides a mock function with given fields: func (_m *MockInterceptor) Close() { _m.Called() } // MockInterceptor_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close' type MockInterceptor_Close_Call struct { *mock.Call } // Close is a helper method to define mock.On call func (_e *MockInterceptor_Expecter) Close() *MockInterceptor_Close_Call { return &MockInterceptor_Close_Call{Call: _e.mock.On("Close")} } func (_c *MockInterceptor_Close_Call) Run(run func()) *MockInterceptor_Close_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MockInterceptor_Close_Call) Return() *MockInterceptor_Close_Call { _c.Call.Return() return _c } func (_c *MockInterceptor_Close_Call) RunAndReturn(run func()) *MockInterceptor_Close_Call { _c.Call.Return(run) return _c } // DoAppend provides a mock function with given fields: ctx, msg, append func (_m *MockInterceptor) DoAppend(ctx context.Context, msg message.MutableMessage, append func(context.Context, message.MutableMessage) (message.MessageID, error)) (message.MessageID, error) { ret := _m.Called(ctx, msg, append) var r0 message.MessageID var r1 error if rf, ok := ret.Get(0).(func(context.Context, message.MutableMessage, func(context.Context, message.MutableMessage) (message.MessageID, error)) (message.MessageID, error)); ok { return rf(ctx, msg, append) } if rf, ok := ret.Get(0).(func(context.Context, message.MutableMessage, func(context.Context, message.MutableMessage) (message.MessageID, error)) message.MessageID); ok { r0 = rf(ctx, msg, append) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(message.MessageID) } } if rf, ok := ret.Get(1).(func(context.Context, message.MutableMessage, func(context.Context, message.MutableMessage) (message.MessageID, error)) error); ok { r1 = rf(ctx, msg, append) } else { r1 = ret.Error(1) } return r0, r1 } // MockInterceptor_DoAppend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DoAppend' type MockInterceptor_DoAppend_Call struct { *mock.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 (_e *MockInterceptor_Expecter) DoAppend(ctx interface{}, msg interface{}, append interface{}) *MockInterceptor_DoAppend_Call { return &MockInterceptor_DoAppend_Call{Call: _e.mock.On("DoAppend", ctx, msg, append)} } func (_c *MockInterceptor_DoAppend_Call) Run(run func(ctx context.Context, msg message.MutableMessage, append func(context.Context, message.MutableMessage) (message.MessageID, error))) *MockInterceptor_DoAppend_Call { _c.Call.Run(func(args mock.Arguments) { run(args[0].(context.Context), args[1].(message.MutableMessage), args[2].(func(context.Context, message.MutableMessage) (message.MessageID, error))) }) return _c } func (_c *MockInterceptor_DoAppend_Call) Return(_a0 message.MessageID, _a1 error) *MockInterceptor_DoAppend_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockInterceptor_DoAppend_Call) RunAndReturn(run func(context.Context, message.MutableMessage, func(context.Context, message.MutableMessage) (message.MessageID, error)) (message.MessageID, error)) *MockInterceptor_DoAppend_Call { _c.Call.Return(run) return _c } // 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 NewMockInterceptor(t interface { mock.TestingT Cleanup(func()) }) *MockInterceptor { mock := &MockInterceptor{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock }