mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-05 18:31:59 +08:00
This PR implements a new CDC service for Milvus 2.6, providing log-based cross-cluster replication. issue: https://github.com/milvus-io/milvus/issues/44123 --------- Signed-off-by: bigsheeper <yihao.dai@zilliz.com> Signed-off-by: chyezh <chyezh@outlook.com> Co-authored-by: chyezh <chyezh@outlook.com>
69 lines
2.5 KiB
Go
69 lines
2.5 KiB
Go
// Code generated by mockery v2.53.3. DO NOT EDIT.
|
|
|
|
package replication
|
|
|
|
import (
|
|
streamingpb "github.com/milvus-io/milvus/pkg/v2/proto/streamingpb"
|
|
mock "github.com/stretchr/testify/mock"
|
|
)
|
|
|
|
// MockReplicateManagerClient is an autogenerated mock type for the ReplicateManagerClient type
|
|
type MockReplicateManagerClient struct {
|
|
mock.Mock
|
|
}
|
|
|
|
type MockReplicateManagerClient_Expecter struct {
|
|
mock *mock.Mock
|
|
}
|
|
|
|
func (_m *MockReplicateManagerClient) EXPECT() *MockReplicateManagerClient_Expecter {
|
|
return &MockReplicateManagerClient_Expecter{mock: &_m.Mock}
|
|
}
|
|
|
|
// CreateReplicator provides a mock function with given fields: replicateInfo
|
|
func (_m *MockReplicateManagerClient) CreateReplicator(replicateInfo *streamingpb.ReplicatePChannelMeta) {
|
|
_m.Called(replicateInfo)
|
|
}
|
|
|
|
// MockReplicateManagerClient_CreateReplicator_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateReplicator'
|
|
type MockReplicateManagerClient_CreateReplicator_Call struct {
|
|
*mock.Call
|
|
}
|
|
|
|
// CreateReplicator is a helper method to define mock.On call
|
|
// - replicateInfo *streamingpb.ReplicatePChannelMeta
|
|
func (_e *MockReplicateManagerClient_Expecter) CreateReplicator(replicateInfo interface{}) *MockReplicateManagerClient_CreateReplicator_Call {
|
|
return &MockReplicateManagerClient_CreateReplicator_Call{Call: _e.mock.On("CreateReplicator", replicateInfo)}
|
|
}
|
|
|
|
func (_c *MockReplicateManagerClient_CreateReplicator_Call) Run(run func(replicateInfo *streamingpb.ReplicatePChannelMeta)) *MockReplicateManagerClient_CreateReplicator_Call {
|
|
_c.Call.Run(func(args mock.Arguments) {
|
|
run(args[0].(*streamingpb.ReplicatePChannelMeta))
|
|
})
|
|
return _c
|
|
}
|
|
|
|
func (_c *MockReplicateManagerClient_CreateReplicator_Call) Return() *MockReplicateManagerClient_CreateReplicator_Call {
|
|
_c.Call.Return()
|
|
return _c
|
|
}
|
|
|
|
func (_c *MockReplicateManagerClient_CreateReplicator_Call) RunAndReturn(run func(*streamingpb.ReplicatePChannelMeta)) *MockReplicateManagerClient_CreateReplicator_Call {
|
|
_c.Run(run)
|
|
return _c
|
|
}
|
|
|
|
// NewMockReplicateManagerClient creates a new instance of MockReplicateManagerClient. 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 NewMockReplicateManagerClient(t interface {
|
|
mock.TestingT
|
|
Cleanup(func())
|
|
}) *MockReplicateManagerClient {
|
|
mock := &MockReplicateManagerClient{}
|
|
mock.Mock.Test(t)
|
|
|
|
t.Cleanup(func() { mock.AssertExpectations(t) })
|
|
|
|
return mock
|
|
}
|