mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 09:38:39 +08:00
issue: #43897 - Part of collection/index related DDL is implemented by WAL-based DDL framework now. - Support following message type in wal, CreateCollection, DropCollection, CreatePartition, DropPartition, CreateIndex, AlterIndex, DropIndex. - Part of collection/index related DDL can be synced by new CDC now. - Refactor some UT for collection/index DDL. - Add Tombstone scheduler to manage the tombstone GC for collection or partition meta. - Move the vchannel allocation into streaming pchannel manager. --------- Signed-off-by: chyezh <chyezh@outlook.com>
101 lines
3.0 KiB
Go
101 lines
3.0 KiB
Go
// Code generated by mockery v2.53.3. DO NOT EDIT.
|
|
|
|
package mock_tombstone
|
|
|
|
import (
|
|
tombstone "github.com/milvus-io/milvus/internal/rootcoord/tombstone"
|
|
mock "github.com/stretchr/testify/mock"
|
|
)
|
|
|
|
// MockTombstoneSweeper is an autogenerated mock type for the TombstoneSweeper type
|
|
type MockTombstoneSweeper struct {
|
|
mock.Mock
|
|
}
|
|
|
|
type MockTombstoneSweeper_Expecter struct {
|
|
mock *mock.Mock
|
|
}
|
|
|
|
func (_m *MockTombstoneSweeper) EXPECT() *MockTombstoneSweeper_Expecter {
|
|
return &MockTombstoneSweeper_Expecter{mock: &_m.Mock}
|
|
}
|
|
|
|
// AddTombstone provides a mock function with given fields: _a0
|
|
func (_m *MockTombstoneSweeper) AddTombstone(_a0 tombstone.Tombstone) {
|
|
_m.Called(_a0)
|
|
}
|
|
|
|
// MockTombstoneSweeper_AddTombstone_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddTombstone'
|
|
type MockTombstoneSweeper_AddTombstone_Call struct {
|
|
*mock.Call
|
|
}
|
|
|
|
// AddTombstone is a helper method to define mock.On call
|
|
// - _a0 tombstone.Tombstone
|
|
func (_e *MockTombstoneSweeper_Expecter) AddTombstone(_a0 interface{}) *MockTombstoneSweeper_AddTombstone_Call {
|
|
return &MockTombstoneSweeper_AddTombstone_Call{Call: _e.mock.On("AddTombstone", _a0)}
|
|
}
|
|
|
|
func (_c *MockTombstoneSweeper_AddTombstone_Call) Run(run func(_a0 tombstone.Tombstone)) *MockTombstoneSweeper_AddTombstone_Call {
|
|
_c.Call.Run(func(args mock.Arguments) {
|
|
run(args[0].(tombstone.Tombstone))
|
|
})
|
|
return _c
|
|
}
|
|
|
|
func (_c *MockTombstoneSweeper_AddTombstone_Call) Return() *MockTombstoneSweeper_AddTombstone_Call {
|
|
_c.Call.Return()
|
|
return _c
|
|
}
|
|
|
|
func (_c *MockTombstoneSweeper_AddTombstone_Call) RunAndReturn(run func(tombstone.Tombstone)) *MockTombstoneSweeper_AddTombstone_Call {
|
|
_c.Run(run)
|
|
return _c
|
|
}
|
|
|
|
// Close provides a mock function with no fields
|
|
func (_m *MockTombstoneSweeper) Close() {
|
|
_m.Called()
|
|
}
|
|
|
|
// MockTombstoneSweeper_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
|
|
type MockTombstoneSweeper_Close_Call struct {
|
|
*mock.Call
|
|
}
|
|
|
|
// Close is a helper method to define mock.On call
|
|
func (_e *MockTombstoneSweeper_Expecter) Close() *MockTombstoneSweeper_Close_Call {
|
|
return &MockTombstoneSweeper_Close_Call{Call: _e.mock.On("Close")}
|
|
}
|
|
|
|
func (_c *MockTombstoneSweeper_Close_Call) Run(run func()) *MockTombstoneSweeper_Close_Call {
|
|
_c.Call.Run(func(args mock.Arguments) {
|
|
run()
|
|
})
|
|
return _c
|
|
}
|
|
|
|
func (_c *MockTombstoneSweeper_Close_Call) Return() *MockTombstoneSweeper_Close_Call {
|
|
_c.Call.Return()
|
|
return _c
|
|
}
|
|
|
|
func (_c *MockTombstoneSweeper_Close_Call) RunAndReturn(run func()) *MockTombstoneSweeper_Close_Call {
|
|
_c.Run(run)
|
|
return _c
|
|
}
|
|
|
|
// NewMockTombstoneSweeper creates a new instance of MockTombstoneSweeper. 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 NewMockTombstoneSweeper(t interface {
|
|
mock.TestingT
|
|
Cleanup(func())
|
|
}) *MockTombstoneSweeper {
|
|
mock := &MockTombstoneSweeper{}
|
|
mock.Mock.Test(t)
|
|
|
|
t.Cleanup(func() { mock.AssertExpectations(t) })
|
|
|
|
return mock
|
|
}
|