mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 17:48:29 +08:00
issue: #33285 - use reader but not consumer for pulsar - advanced test framework - move some streaming related package into pkg --------- Signed-off-by: chyezh <chyezh@outlook.com>
80 lines
2.4 KiB
Go
80 lines
2.4 KiB
Go
// Code generated by mockery v2.32.4. DO NOT EDIT.
|
|
|
|
package mock_walimpls
|
|
|
|
import (
|
|
walimpls "github.com/milvus-io/milvus/pkg/streaming/walimpls"
|
|
mock "github.com/stretchr/testify/mock"
|
|
)
|
|
|
|
// MockInterceptorBuilder is an autogenerated mock type for the InterceptorBuilder type
|
|
type MockInterceptorBuilder struct {
|
|
mock.Mock
|
|
}
|
|
|
|
type MockInterceptorBuilder_Expecter struct {
|
|
mock *mock.Mock
|
|
}
|
|
|
|
func (_m *MockInterceptorBuilder) EXPECT() *MockInterceptorBuilder_Expecter {
|
|
return &MockInterceptorBuilder_Expecter{mock: &_m.Mock}
|
|
}
|
|
|
|
// Build provides a mock function with given fields: wal
|
|
func (_m *MockInterceptorBuilder) Build(wal <-chan walimpls.WALImpls) walimpls.BasicInterceptor {
|
|
ret := _m.Called(wal)
|
|
|
|
var r0 walimpls.BasicInterceptor
|
|
if rf, ok := ret.Get(0).(func(<-chan walimpls.WALImpls) walimpls.BasicInterceptor); ok {
|
|
r0 = rf(wal)
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).(walimpls.BasicInterceptor)
|
|
}
|
|
}
|
|
|
|
return r0
|
|
}
|
|
|
|
// MockInterceptorBuilder_Build_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Build'
|
|
type MockInterceptorBuilder_Build_Call struct {
|
|
*mock.Call
|
|
}
|
|
|
|
// Build is a helper method to define mock.On call
|
|
// - wal <-chan walimpls.WALImpls
|
|
func (_e *MockInterceptorBuilder_Expecter) Build(wal interface{}) *MockInterceptorBuilder_Build_Call {
|
|
return &MockInterceptorBuilder_Build_Call{Call: _e.mock.On("Build", wal)}
|
|
}
|
|
|
|
func (_c *MockInterceptorBuilder_Build_Call) Run(run func(wal <-chan walimpls.WALImpls)) *MockInterceptorBuilder_Build_Call {
|
|
_c.Call.Run(func(args mock.Arguments) {
|
|
run(args[0].(<-chan walimpls.WALImpls))
|
|
})
|
|
return _c
|
|
}
|
|
|
|
func (_c *MockInterceptorBuilder_Build_Call) Return(_a0 walimpls.BasicInterceptor) *MockInterceptorBuilder_Build_Call {
|
|
_c.Call.Return(_a0)
|
|
return _c
|
|
}
|
|
|
|
func (_c *MockInterceptorBuilder_Build_Call) RunAndReturn(run func(<-chan walimpls.WALImpls) walimpls.BasicInterceptor) *MockInterceptorBuilder_Build_Call {
|
|
_c.Call.Return(run)
|
|
return _c
|
|
}
|
|
|
|
// 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 NewMockInterceptorBuilder(t interface {
|
|
mock.TestingT
|
|
Cleanup(func())
|
|
}) *MockInterceptorBuilder {
|
|
mock := &MockInterceptorBuilder{}
|
|
mock.Mock.Test(t)
|
|
|
|
t.Cleanup(func() { mock.AssertExpectations(t) })
|
|
|
|
return mock
|
|
}
|