2023-09-04 21:19:48 +08:00
// Code generated by mockery v2.32.4. DO NOT EDIT.
2022-08-31 12:10:57 +08:00
package mocks
import (
context "context"
2023-06-09 01:28:37 +08:00
commonpb "github.com/milvus-io/milvus-proto/go-api/v2/commonpb"
2023-07-14 10:12:31 +08:00
clientv3 "go.etcd.io/etcd/client/v3"
2022-08-31 12:10:57 +08:00
datapb "github.com/milvus-io/milvus/internal/proto/datapb"
internalpb "github.com/milvus-io/milvus/internal/proto/internalpb"
2023-06-09 01:28:37 +08:00
milvuspb "github.com/milvus-io/milvus-proto/go-api/v2/milvuspb"
2022-08-31 12:10:57 +08:00
mock "github.com/stretchr/testify/mock"
2023-07-14 10:12:31 +08:00
types "github.com/milvus-io/milvus/internal/types"
2022-08-31 12:10:57 +08:00
)
2023-07-14 10:12:31 +08:00
// MockDataNode is an autogenerated mock type for the DataNodeComponent type
type MockDataNode struct {
2022-08-31 12:10:57 +08:00
mock . Mock
}
2023-07-14 10:12:31 +08:00
type MockDataNode_Expecter struct {
2022-08-31 12:10:57 +08:00
mock * mock . Mock
}
2023-07-14 10:12:31 +08:00
func ( _m * MockDataNode ) EXPECT ( ) * MockDataNode_Expecter {
return & MockDataNode_Expecter { mock : & _m . Mock }
2022-08-31 12:10:57 +08:00
}
2023-09-26 09:57:25 +08:00
// AddImportSegment provides a mock function with given fields: _a0, _a1
func ( _m * MockDataNode ) AddImportSegment ( _a0 context . Context , _a1 * datapb . AddImportSegmentRequest ) ( * datapb . AddImportSegmentResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
2022-09-26 18:06:54 +08:00
var r0 * datapb . AddImportSegmentResponse
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . AddImportSegmentRequest ) ( * datapb . AddImportSegmentResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-26 18:06:54 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . AddImportSegmentRequest ) * datapb . AddImportSegmentResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
} else {
if ret . Get ( 0 ) != nil {
2022-09-26 18:06:54 +08:00
r0 = ret . Get ( 0 ) . ( * datapb . AddImportSegmentResponse )
2022-08-31 12:10:57 +08:00
}
}
2022-09-26 18:06:54 +08:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . AddImportSegmentRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockDataNode_AddImportSegment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddImportSegment'
type MockDataNode_AddImportSegment_Call struct {
2022-08-31 12:10:57 +08:00
* mock . Call
}
2022-09-26 18:06:54 +08:00
// AddImportSegment is a helper method to define mock.On call
2023-12-13 17:24:38 +08:00
// - _a0 context.Context
// - _a1 *datapb.AddImportSegmentRequest
2023-09-26 09:57:25 +08:00
func ( _e * MockDataNode_Expecter ) AddImportSegment ( _a0 interface { } , _a1 interface { } ) * MockDataNode_AddImportSegment_Call {
return & MockDataNode_AddImportSegment_Call { Call : _e . mock . On ( "AddImportSegment" , _a0 , _a1 ) }
2022-08-31 12:10:57 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockDataNode_AddImportSegment_Call ) Run ( run func ( _a0 context . Context , _a1 * datapb . AddImportSegmentRequest ) ) * MockDataNode_AddImportSegment_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
2022-09-26 18:06:54 +08:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . AddImportSegmentRequest ) )
2022-08-31 12:10:57 +08:00
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_AddImportSegment_Call ) Return ( _a0 * datapb . AddImportSegmentResponse , _a1 error ) * MockDataNode_AddImportSegment_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_AddImportSegment_Call ) RunAndReturn ( run func ( context . Context , * datapb . AddImportSegmentRequest ) ( * datapb . AddImportSegmentResponse , error ) ) * MockDataNode_AddImportSegment_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// CheckChannelOperationProgress provides a mock function with given fields: _a0, _a1
func ( _m * MockDataNode ) CheckChannelOperationProgress ( _a0 context . Context , _a1 * datapb . ChannelWatchInfo ) ( * datapb . ChannelOperationProgressResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-09-25 14:05:27 +08:00
var r0 * datapb . ChannelOperationProgressResponse
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . ChannelWatchInfo ) ( * datapb . ChannelOperationProgressResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-09-25 14:05:27 +08:00
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . ChannelWatchInfo ) * datapb . ChannelOperationProgressResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-09-25 14:05:27 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * datapb . ChannelOperationProgressResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . ChannelWatchInfo ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-09-25 14:05:27 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockDataNode_CheckChannelOperationProgress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckChannelOperationProgress'
type MockDataNode_CheckChannelOperationProgress_Call struct {
* mock . Call
}
// CheckChannelOperationProgress is a helper method to define mock.On call
2023-12-13 17:24:38 +08:00
// - _a0 context.Context
// - _a1 *datapb.ChannelWatchInfo
2023-09-26 09:57:25 +08:00
func ( _e * MockDataNode_Expecter ) CheckChannelOperationProgress ( _a0 interface { } , _a1 interface { } ) * MockDataNode_CheckChannelOperationProgress_Call {
return & MockDataNode_CheckChannelOperationProgress_Call { Call : _e . mock . On ( "CheckChannelOperationProgress" , _a0 , _a1 ) }
2023-09-25 14:05:27 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockDataNode_CheckChannelOperationProgress_Call ) Run ( run func ( _a0 context . Context , _a1 * datapb . ChannelWatchInfo ) ) * MockDataNode_CheckChannelOperationProgress_Call {
2023-09-25 14:05:27 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . ChannelWatchInfo ) )
} )
return _c
}
func ( _c * MockDataNode_CheckChannelOperationProgress_Call ) Return ( _a0 * datapb . ChannelOperationProgressResponse , _a1 error ) * MockDataNode_CheckChannelOperationProgress_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockDataNode_CheckChannelOperationProgress_Call ) RunAndReturn ( run func ( context . Context , * datapb . ChannelWatchInfo ) ( * datapb . ChannelOperationProgressResponse , error ) ) * MockDataNode_CheckChannelOperationProgress_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// Compaction provides a mock function with given fields: _a0, _a1
func ( _m * MockDataNode ) Compaction ( _a0 context . Context , _a1 * datapb . CompactionPlan ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
var r0 * commonpb . Status
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . CompactionPlan ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-08-31 12:10:57 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . CompactionPlan ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . CompactionPlan ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockDataNode_Compaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Compaction'
type MockDataNode_Compaction_Call struct {
2022-08-31 12:10:57 +08:00
* mock . Call
}
// Compaction is a helper method to define mock.On call
2023-12-13 17:24:38 +08:00
// - _a0 context.Context
// - _a1 *datapb.CompactionPlan
2023-09-26 09:57:25 +08:00
func ( _e * MockDataNode_Expecter ) Compaction ( _a0 interface { } , _a1 interface { } ) * MockDataNode_Compaction_Call {
return & MockDataNode_Compaction_Call { Call : _e . mock . On ( "Compaction" , _a0 , _a1 ) }
2022-08-31 12:10:57 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockDataNode_Compaction_Call ) Run ( run func ( _a0 context . Context , _a1 * datapb . CompactionPlan ) ) * MockDataNode_Compaction_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . CompactionPlan ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_Compaction_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockDataNode_Compaction_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_Compaction_Call ) RunAndReturn ( run func ( context . Context , * datapb . CompactionPlan ) ( * commonpb . Status , error ) ) * MockDataNode_Compaction_Call {
_c . Call . Return ( run )
return _c
}
2023-12-04 19:56:35 +08:00
// DropImport provides a mock function with given fields: _a0, _a1
func ( _m * MockDataNode ) DropImport ( _a0 context . Context , _a1 * datapb . DropImportRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * commonpb . Status
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . DropImportRequest ) ( * commonpb . Status , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . DropImportRequest ) * commonpb . Status ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . DropImportRequest ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockDataNode_DropImport_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DropImport'
type MockDataNode_DropImport_Call struct {
* mock . Call
}
// DropImport is a helper method to define mock.On call
2023-12-13 17:24:38 +08:00
// - _a0 context.Context
// - _a1 *datapb.DropImportRequest
2023-12-04 19:56:35 +08:00
func ( _e * MockDataNode_Expecter ) DropImport ( _a0 interface { } , _a1 interface { } ) * MockDataNode_DropImport_Call {
return & MockDataNode_DropImport_Call { Call : _e . mock . On ( "DropImport" , _a0 , _a1 ) }
}
func ( _c * MockDataNode_DropImport_Call ) Run ( run func ( _a0 context . Context , _a1 * datapb . DropImportRequest ) ) * MockDataNode_DropImport_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . DropImportRequest ) )
} )
return _c
}
func ( _c * MockDataNode_DropImport_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockDataNode_DropImport_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockDataNode_DropImport_Call ) RunAndReturn ( run func ( context . Context , * datapb . DropImportRequest ) ( * commonpb . Status , error ) ) * MockDataNode_DropImport_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// FlushChannels provides a mock function with given fields: _a0, _a1
func ( _m * MockDataNode ) FlushChannels ( _a0 context . Context , _a1 * datapb . FlushChannelsRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-09-12 21:07:19 +08:00
var r0 * commonpb . Status
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . FlushChannelsRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-09-12 21:07:19 +08:00
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . FlushChannelsRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-09-12 21:07:19 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . FlushChannelsRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-09-12 21:07:19 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockDataNode_FlushChannels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FlushChannels'
type MockDataNode_FlushChannels_Call struct {
* mock . Call
}
// FlushChannels is a helper method to define mock.On call
2023-12-13 17:24:38 +08:00
// - _a0 context.Context
// - _a1 *datapb.FlushChannelsRequest
2023-09-26 09:57:25 +08:00
func ( _e * MockDataNode_Expecter ) FlushChannels ( _a0 interface { } , _a1 interface { } ) * MockDataNode_FlushChannels_Call {
return & MockDataNode_FlushChannels_Call { Call : _e . mock . On ( "FlushChannels" , _a0 , _a1 ) }
2023-09-12 21:07:19 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockDataNode_FlushChannels_Call ) Run ( run func ( _a0 context . Context , _a1 * datapb . FlushChannelsRequest ) ) * MockDataNode_FlushChannels_Call {
2023-09-12 21:07:19 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . FlushChannelsRequest ) )
} )
return _c
}
func ( _c * MockDataNode_FlushChannels_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockDataNode_FlushChannels_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockDataNode_FlushChannels_Call ) RunAndReturn ( run func ( context . Context , * datapb . FlushChannelsRequest ) ( * commonpb . Status , error ) ) * MockDataNode_FlushChannels_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// FlushSegments provides a mock function with given fields: _a0, _a1
func ( _m * MockDataNode ) FlushSegments ( _a0 context . Context , _a1 * datapb . FlushSegmentsRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
var r0 * commonpb . Status
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . FlushSegmentsRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-08-31 12:10:57 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . FlushSegmentsRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . FlushSegmentsRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockDataNode_FlushSegments_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FlushSegments'
type MockDataNode_FlushSegments_Call struct {
2022-08-31 12:10:57 +08:00
* mock . Call
}
// FlushSegments is a helper method to define mock.On call
2023-12-13 17:24:38 +08:00
// - _a0 context.Context
// - _a1 *datapb.FlushSegmentsRequest
2023-09-26 09:57:25 +08:00
func ( _e * MockDataNode_Expecter ) FlushSegments ( _a0 interface { } , _a1 interface { } ) * MockDataNode_FlushSegments_Call {
return & MockDataNode_FlushSegments_Call { Call : _e . mock . On ( "FlushSegments" , _a0 , _a1 ) }
2022-08-31 12:10:57 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockDataNode_FlushSegments_Call ) Run ( run func ( _a0 context . Context , _a1 * datapb . FlushSegmentsRequest ) ) * MockDataNode_FlushSegments_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . FlushSegmentsRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_FlushSegments_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockDataNode_FlushSegments_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_FlushSegments_Call ) RunAndReturn ( run func ( context . Context , * datapb . FlushSegmentsRequest ) ( * commonpb . Status , error ) ) * MockDataNode_FlushSegments_Call {
_c . Call . Return ( run )
return _c
}
// GetAddress provides a mock function with given fields:
func ( _m * MockDataNode ) GetAddress ( ) string {
ret := _m . Called ( )
var r0 string
if rf , ok := ret . Get ( 0 ) . ( func ( ) string ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Get ( 0 ) . ( string )
}
return r0
}
// MockDataNode_GetAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAddress'
type MockDataNode_GetAddress_Call struct {
* mock . Call
}
// GetAddress is a helper method to define mock.On call
func ( _e * MockDataNode_Expecter ) GetAddress ( ) * MockDataNode_GetAddress_Call {
return & MockDataNode_GetAddress_Call { Call : _e . mock . On ( "GetAddress" ) }
}
func ( _c * MockDataNode_GetAddress_Call ) Run ( run func ( ) ) * MockDataNode_GetAddress_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( )
} )
return _c
}
func ( _c * MockDataNode_GetAddress_Call ) Return ( _a0 string ) * MockDataNode_GetAddress_Call {
_c . Call . Return ( _a0 )
return _c
}
func ( _c * MockDataNode_GetAddress_Call ) RunAndReturn ( run func ( ) string ) * MockDataNode_GetAddress_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// GetCompactionState provides a mock function with given fields: _a0, _a1
func ( _m * MockDataNode ) GetCompactionState ( _a0 context . Context , _a1 * datapb . CompactionStateRequest ) ( * datapb . CompactionStateResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
var r0 * datapb . CompactionStateResponse
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . CompactionStateRequest ) ( * datapb . CompactionStateResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-08-31 12:10:57 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . CompactionStateRequest ) * datapb . CompactionStateResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * datapb . CompactionStateResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . CompactionStateRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockDataNode_GetCompactionState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCompactionState'
type MockDataNode_GetCompactionState_Call struct {
2022-08-31 12:10:57 +08:00
* mock . Call
}
// GetCompactionState is a helper method to define mock.On call
2023-12-13 17:24:38 +08:00
// - _a0 context.Context
// - _a1 *datapb.CompactionStateRequest
2023-09-26 09:57:25 +08:00
func ( _e * MockDataNode_Expecter ) GetCompactionState ( _a0 interface { } , _a1 interface { } ) * MockDataNode_GetCompactionState_Call {
return & MockDataNode_GetCompactionState_Call { Call : _e . mock . On ( "GetCompactionState" , _a0 , _a1 ) }
2022-08-31 12:10:57 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockDataNode_GetCompactionState_Call ) Run ( run func ( _a0 context . Context , _a1 * datapb . CompactionStateRequest ) ) * MockDataNode_GetCompactionState_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . CompactionStateRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_GetCompactionState_Call ) Return ( _a0 * datapb . CompactionStateResponse , _a1 error ) * MockDataNode_GetCompactionState_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_GetCompactionState_Call ) RunAndReturn ( run func ( context . Context , * datapb . CompactionStateRequest ) ( * datapb . CompactionStateResponse , error ) ) * MockDataNode_GetCompactionState_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// GetComponentStates provides a mock function with given fields: _a0, _a1
func ( _m * MockDataNode ) GetComponentStates ( _a0 context . Context , _a1 * milvuspb . GetComponentStatesRequest ) ( * milvuspb . ComponentStates , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
2022-10-10 15:55:22 +08:00
var r0 * milvuspb . ComponentStates
2023-07-14 10:12:31 +08:00
var r1 error
2023-09-26 09:57:25 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetComponentStatesRequest ) ( * milvuspb . ComponentStates , error ) ) ; ok {
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2023-09-26 09:57:25 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetComponentStatesRequest ) * milvuspb . ComponentStates ) ; ok {
r0 = rf ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
} else {
if ret . Get ( 0 ) != nil {
2022-10-10 15:55:22 +08:00
r0 = ret . Get ( 0 ) . ( * milvuspb . ComponentStates )
2022-08-31 12:10:57 +08:00
}
}
2023-09-26 09:57:25 +08:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . GetComponentStatesRequest ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockDataNode_GetComponentStates_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetComponentStates'
type MockDataNode_GetComponentStates_Call struct {
2022-08-31 12:10:57 +08:00
* mock . Call
}
// GetComponentStates is a helper method to define mock.On call
2023-12-13 17:24:38 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.GetComponentStatesRequest
2023-09-26 09:57:25 +08:00
func ( _e * MockDataNode_Expecter ) GetComponentStates ( _a0 interface { } , _a1 interface { } ) * MockDataNode_GetComponentStates_Call {
return & MockDataNode_GetComponentStates_Call { Call : _e . mock . On ( "GetComponentStates" , _a0 , _a1 ) }
2022-08-31 12:10:57 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockDataNode_GetComponentStates_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . GetComponentStatesRequest ) ) * MockDataNode_GetComponentStates_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
2023-09-26 09:57:25 +08:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . GetComponentStatesRequest ) )
2022-08-31 12:10:57 +08:00
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_GetComponentStates_Call ) Return ( _a0 * milvuspb . ComponentStates , _a1 error ) * MockDataNode_GetComponentStates_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-09-26 09:57:25 +08:00
func ( _c * MockDataNode_GetComponentStates_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . GetComponentStatesRequest ) ( * milvuspb . ComponentStates , error ) ) * MockDataNode_GetComponentStates_Call {
2023-07-14 10:12:31 +08:00
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// GetMetrics provides a mock function with given fields: _a0, _a1
func ( _m * MockDataNode ) GetMetrics ( _a0 context . Context , _a1 * milvuspb . GetMetricsRequest ) ( * milvuspb . GetMetricsResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
var r0 * milvuspb . GetMetricsResponse
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetMetricsRequest ) ( * milvuspb . GetMetricsResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-08-31 12:10:57 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetMetricsRequest ) * milvuspb . GetMetricsResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . GetMetricsResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . GetMetricsRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockDataNode_GetMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMetrics'
type MockDataNode_GetMetrics_Call struct {
2022-08-31 12:10:57 +08:00
* mock . Call
}
// GetMetrics is a helper method to define mock.On call
2023-12-13 17:24:38 +08:00
// - _a0 context.Context
// - _a1 *milvuspb.GetMetricsRequest
2023-09-26 09:57:25 +08:00
func ( _e * MockDataNode_Expecter ) GetMetrics ( _a0 interface { } , _a1 interface { } ) * MockDataNode_GetMetrics_Call {
return & MockDataNode_GetMetrics_Call { Call : _e . mock . On ( "GetMetrics" , _a0 , _a1 ) }
2022-08-31 12:10:57 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockDataNode_GetMetrics_Call ) Run ( run func ( _a0 context . Context , _a1 * milvuspb . GetMetricsRequest ) ) * MockDataNode_GetMetrics_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . GetMetricsRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_GetMetrics_Call ) Return ( _a0 * milvuspb . GetMetricsResponse , _a1 error ) * MockDataNode_GetMetrics_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_GetMetrics_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . GetMetricsRequest ) ( * milvuspb . GetMetricsResponse , error ) ) * MockDataNode_GetMetrics_Call {
_c . Call . Return ( run )
return _c
}
// GetStateCode provides a mock function with given fields:
func ( _m * MockDataNode ) GetStateCode ( ) commonpb . StateCode {
ret := _m . Called ( )
var r0 commonpb . StateCode
if rf , ok := ret . Get ( 0 ) . ( func ( ) commonpb . StateCode ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Get ( 0 ) . ( commonpb . StateCode )
}
return r0
}
// MockDataNode_GetStateCode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStateCode'
type MockDataNode_GetStateCode_Call struct {
* mock . Call
}
// GetStateCode is a helper method to define mock.On call
func ( _e * MockDataNode_Expecter ) GetStateCode ( ) * MockDataNode_GetStateCode_Call {
return & MockDataNode_GetStateCode_Call { Call : _e . mock . On ( "GetStateCode" ) }
}
func ( _c * MockDataNode_GetStateCode_Call ) Run ( run func ( ) ) * MockDataNode_GetStateCode_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( )
} )
return _c
}
func ( _c * MockDataNode_GetStateCode_Call ) Return ( _a0 commonpb . StateCode ) * MockDataNode_GetStateCode_Call {
_c . Call . Return ( _a0 )
return _c
}
func ( _c * MockDataNode_GetStateCode_Call ) RunAndReturn ( run func ( ) commonpb . StateCode ) * MockDataNode_GetStateCode_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// GetStatisticsChannel provides a mock function with given fields: _a0, _a1
func ( _m * MockDataNode ) GetStatisticsChannel ( _a0 context . Context , _a1 * internalpb . GetStatisticsChannelRequest ) ( * milvuspb . StringResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
var r0 * milvuspb . StringResponse
2023-07-14 10:12:31 +08:00
var r1 error
2023-09-26 09:57:25 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * internalpb . GetStatisticsChannelRequest ) ( * milvuspb . StringResponse , error ) ) ; ok {
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2023-09-26 09:57:25 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * internalpb . GetStatisticsChannelRequest ) * milvuspb . StringResponse ) ; ok {
r0 = rf ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . StringResponse )
}
}
2023-09-26 09:57:25 +08:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * internalpb . GetStatisticsChannelRequest ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockDataNode_GetStatisticsChannel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStatisticsChannel'
type MockDataNode_GetStatisticsChannel_Call struct {
2022-08-31 12:10:57 +08:00
* mock . Call
}
// GetStatisticsChannel is a helper method to define mock.On call
2023-12-13 17:24:38 +08:00
// - _a0 context.Context
// - _a1 *internalpb.GetStatisticsChannelRequest
2023-09-26 09:57:25 +08:00
func ( _e * MockDataNode_Expecter ) GetStatisticsChannel ( _a0 interface { } , _a1 interface { } ) * MockDataNode_GetStatisticsChannel_Call {
return & MockDataNode_GetStatisticsChannel_Call { Call : _e . mock . On ( "GetStatisticsChannel" , _a0 , _a1 ) }
2022-08-31 12:10:57 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockDataNode_GetStatisticsChannel_Call ) Run ( run func ( _a0 context . Context , _a1 * internalpb . GetStatisticsChannelRequest ) ) * MockDataNode_GetStatisticsChannel_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
2023-09-26 09:57:25 +08:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * internalpb . GetStatisticsChannelRequest ) )
2022-08-31 12:10:57 +08:00
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_GetStatisticsChannel_Call ) Return ( _a0 * milvuspb . StringResponse , _a1 error ) * MockDataNode_GetStatisticsChannel_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-09-26 09:57:25 +08:00
func ( _c * MockDataNode_GetStatisticsChannel_Call ) RunAndReturn ( run func ( context . Context , * internalpb . GetStatisticsChannelRequest ) ( * milvuspb . StringResponse , error ) ) * MockDataNode_GetStatisticsChannel_Call {
2023-07-14 10:12:31 +08:00
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// Import provides a mock function with given fields: _a0, _a1
func ( _m * MockDataNode ) Import ( _a0 context . Context , _a1 * datapb . ImportTaskRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
var r0 * commonpb . Status
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . ImportTaskRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-08-31 12:10:57 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . ImportTaskRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . ImportTaskRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockDataNode_Import_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Import'
type MockDataNode_Import_Call struct {
2022-08-31 12:10:57 +08:00
* mock . Call
}
// Import is a helper method to define mock.On call
2023-12-13 17:24:38 +08:00
// - _a0 context.Context
// - _a1 *datapb.ImportTaskRequest
2023-09-26 09:57:25 +08:00
func ( _e * MockDataNode_Expecter ) Import ( _a0 interface { } , _a1 interface { } ) * MockDataNode_Import_Call {
return & MockDataNode_Import_Call { Call : _e . mock . On ( "Import" , _a0 , _a1 ) }
2022-08-31 12:10:57 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockDataNode_Import_Call ) Run ( run func ( _a0 context . Context , _a1 * datapb . ImportTaskRequest ) ) * MockDataNode_Import_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . ImportTaskRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_Import_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockDataNode_Import_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_Import_Call ) RunAndReturn ( run func ( context . Context , * datapb . ImportTaskRequest ) ( * commonpb . Status , error ) ) * MockDataNode_Import_Call {
_c . Call . Return ( run )
return _c
}
2023-12-04 19:56:35 +08:00
// ImportV2 provides a mock function with given fields: _a0, _a1
func ( _m * MockDataNode ) ImportV2 ( _a0 context . Context , _a1 * datapb . ImportRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * commonpb . Status
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . ImportRequest ) ( * commonpb . Status , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . ImportRequest ) * commonpb . Status ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . ImportRequest ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockDataNode_ImportV2_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ImportV2'
type MockDataNode_ImportV2_Call struct {
* mock . Call
}
// ImportV2 is a helper method to define mock.On call
2023-12-13 17:24:38 +08:00
// - _a0 context.Context
// - _a1 *datapb.ImportRequest
2023-12-04 19:56:35 +08:00
func ( _e * MockDataNode_Expecter ) ImportV2 ( _a0 interface { } , _a1 interface { } ) * MockDataNode_ImportV2_Call {
return & MockDataNode_ImportV2_Call { Call : _e . mock . On ( "ImportV2" , _a0 , _a1 ) }
}
func ( _c * MockDataNode_ImportV2_Call ) Run ( run func ( _a0 context . Context , _a1 * datapb . ImportRequest ) ) * MockDataNode_ImportV2_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . ImportRequest ) )
} )
return _c
}
func ( _c * MockDataNode_ImportV2_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockDataNode_ImportV2_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockDataNode_ImportV2_Call ) RunAndReturn ( run func ( context . Context , * datapb . ImportRequest ) ( * commonpb . Status , error ) ) * MockDataNode_ImportV2_Call {
_c . Call . Return ( run )
return _c
}
2022-08-31 12:10:57 +08:00
// Init provides a mock function with given fields:
2023-07-14 10:12:31 +08:00
func ( _m * MockDataNode ) Init ( ) error {
2022-08-31 12:10:57 +08:00
ret := _m . Called ( )
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) error ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2023-07-14 10:12:31 +08:00
// MockDataNode_Init_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Init'
type MockDataNode_Init_Call struct {
2022-08-31 12:10:57 +08:00
* mock . Call
}
// Init is a helper method to define mock.On call
2023-07-14 10:12:31 +08:00
func ( _e * MockDataNode_Expecter ) Init ( ) * MockDataNode_Init_Call {
return & MockDataNode_Init_Call { Call : _e . mock . On ( "Init" ) }
2022-08-31 12:10:57 +08:00
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_Init_Call ) Run ( run func ( ) ) * MockDataNode_Init_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_Init_Call ) Return ( _a0 error ) * MockDataNode_Init_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Return ( _a0 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_Init_Call ) RunAndReturn ( run func ( ) error ) * MockDataNode_Init_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// NotifyChannelOperation provides a mock function with given fields: _a0, _a1
func ( _m * MockDataNode ) NotifyChannelOperation ( _a0 context . Context , _a1 * datapb . ChannelOperationsRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2023-09-25 14:05:27 +08:00
var r0 * commonpb . Status
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . ChannelOperationsRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-09-25 14:05:27 +08:00
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . ChannelOperationsRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2023-09-25 14:05:27 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . ChannelOperationsRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2023-09-25 14:05:27 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockDataNode_NotifyChannelOperation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NotifyChannelOperation'
type MockDataNode_NotifyChannelOperation_Call struct {
* mock . Call
}
// NotifyChannelOperation is a helper method to define mock.On call
2023-12-13 17:24:38 +08:00
// - _a0 context.Context
// - _a1 *datapb.ChannelOperationsRequest
2023-09-26 09:57:25 +08:00
func ( _e * MockDataNode_Expecter ) NotifyChannelOperation ( _a0 interface { } , _a1 interface { } ) * MockDataNode_NotifyChannelOperation_Call {
return & MockDataNode_NotifyChannelOperation_Call { Call : _e . mock . On ( "NotifyChannelOperation" , _a0 , _a1 ) }
2023-09-25 14:05:27 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockDataNode_NotifyChannelOperation_Call ) Run ( run func ( _a0 context . Context , _a1 * datapb . ChannelOperationsRequest ) ) * MockDataNode_NotifyChannelOperation_Call {
2023-09-25 14:05:27 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . ChannelOperationsRequest ) )
} )
return _c
}
func ( _c * MockDataNode_NotifyChannelOperation_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockDataNode_NotifyChannelOperation_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockDataNode_NotifyChannelOperation_Call ) RunAndReturn ( run func ( context . Context , * datapb . ChannelOperationsRequest ) ( * commonpb . Status , error ) ) * MockDataNode_NotifyChannelOperation_Call {
_c . Call . Return ( run )
return _c
}
2023-12-04 19:56:35 +08:00
// PreImport provides a mock function with given fields: _a0, _a1
func ( _m * MockDataNode ) PreImport ( _a0 context . Context , _a1 * datapb . PreImportRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * commonpb . Status
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . PreImportRequest ) ( * commonpb . Status , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . PreImportRequest ) * commonpb . Status ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . PreImportRequest ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockDataNode_PreImport_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PreImport'
type MockDataNode_PreImport_Call struct {
* mock . Call
}
// PreImport is a helper method to define mock.On call
2023-12-13 17:24:38 +08:00
// - _a0 context.Context
// - _a1 *datapb.PreImportRequest
2023-12-04 19:56:35 +08:00
func ( _e * MockDataNode_Expecter ) PreImport ( _a0 interface { } , _a1 interface { } ) * MockDataNode_PreImport_Call {
return & MockDataNode_PreImport_Call { Call : _e . mock . On ( "PreImport" , _a0 , _a1 ) }
}
func ( _c * MockDataNode_PreImport_Call ) Run ( run func ( _a0 context . Context , _a1 * datapb . PreImportRequest ) ) * MockDataNode_PreImport_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . PreImportRequest ) )
} )
return _c
}
func ( _c * MockDataNode_PreImport_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockDataNode_PreImport_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockDataNode_PreImport_Call ) RunAndReturn ( run func ( context . Context , * datapb . PreImportRequest ) ( * commonpb . Status , error ) ) * MockDataNode_PreImport_Call {
_c . Call . Return ( run )
return _c
}
// QueryImport provides a mock function with given fields: _a0, _a1
func ( _m * MockDataNode ) QueryImport ( _a0 context . Context , _a1 * datapb . QueryImportRequest ) ( * datapb . QueryImportResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * datapb . QueryImportResponse
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . QueryImportRequest ) ( * datapb . QueryImportResponse , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . QueryImportRequest ) * datapb . QueryImportResponse ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * datapb . QueryImportResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . QueryImportRequest ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockDataNode_QueryImport_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryImport'
type MockDataNode_QueryImport_Call struct {
* mock . Call
}
// QueryImport is a helper method to define mock.On call
2023-12-13 17:24:38 +08:00
// - _a0 context.Context
// - _a1 *datapb.QueryImportRequest
2023-12-04 19:56:35 +08:00
func ( _e * MockDataNode_Expecter ) QueryImport ( _a0 interface { } , _a1 interface { } ) * MockDataNode_QueryImport_Call {
return & MockDataNode_QueryImport_Call { Call : _e . mock . On ( "QueryImport" , _a0 , _a1 ) }
}
func ( _c * MockDataNode_QueryImport_Call ) Run ( run func ( _a0 context . Context , _a1 * datapb . QueryImportRequest ) ) * MockDataNode_QueryImport_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . QueryImportRequest ) )
} )
return _c
}
func ( _c * MockDataNode_QueryImport_Call ) Return ( _a0 * datapb . QueryImportResponse , _a1 error ) * MockDataNode_QueryImport_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockDataNode_QueryImport_Call ) RunAndReturn ( run func ( context . Context , * datapb . QueryImportRequest ) ( * datapb . QueryImportResponse , error ) ) * MockDataNode_QueryImport_Call {
_c . Call . Return ( run )
return _c
}
// QueryPreImport provides a mock function with given fields: _a0, _a1
func ( _m * MockDataNode ) QueryPreImport ( _a0 context . Context , _a1 * datapb . QueryPreImportRequest ) ( * datapb . QueryPreImportResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
var r0 * datapb . QueryPreImportResponse
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . QueryPreImportRequest ) ( * datapb . QueryPreImportResponse , error ) ) ; ok {
return rf ( _a0 , _a1 )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . QueryPreImportRequest ) * datapb . QueryPreImportResponse ) ; ok {
r0 = rf ( _a0 , _a1 )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * datapb . QueryPreImportResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . QueryPreImportRequest ) error ) ; ok {
r1 = rf ( _a0 , _a1 )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// MockDataNode_QueryPreImport_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'QueryPreImport'
type MockDataNode_QueryPreImport_Call struct {
* mock . Call
}
// QueryPreImport is a helper method to define mock.On call
2023-12-13 17:24:38 +08:00
// - _a0 context.Context
// - _a1 *datapb.QueryPreImportRequest
2023-12-04 19:56:35 +08:00
func ( _e * MockDataNode_Expecter ) QueryPreImport ( _a0 interface { } , _a1 interface { } ) * MockDataNode_QueryPreImport_Call {
return & MockDataNode_QueryPreImport_Call { Call : _e . mock . On ( "QueryPreImport" , _a0 , _a1 ) }
}
func ( _c * MockDataNode_QueryPreImport_Call ) Run ( run func ( _a0 context . Context , _a1 * datapb . QueryPreImportRequest ) ) * MockDataNode_QueryPreImport_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . QueryPreImportRequest ) )
} )
return _c
}
func ( _c * MockDataNode_QueryPreImport_Call ) Return ( _a0 * datapb . QueryPreImportResponse , _a1 error ) * MockDataNode_QueryPreImport_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * MockDataNode_QueryPreImport_Call ) RunAndReturn ( run func ( context . Context , * datapb . QueryPreImportRequest ) ( * datapb . QueryPreImportResponse , error ) ) * MockDataNode_QueryPreImport_Call {
_c . Call . Return ( run )
return _c
}
2022-08-31 12:10:57 +08:00
// Register provides a mock function with given fields:
2023-07-14 10:12:31 +08:00
func ( _m * MockDataNode ) Register ( ) error {
2022-08-31 12:10:57 +08:00
ret := _m . Called ( )
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) error ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2023-07-14 10:12:31 +08:00
// MockDataNode_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'
type MockDataNode_Register_Call struct {
2022-08-31 12:10:57 +08:00
* mock . Call
}
// Register is a helper method to define mock.On call
2023-07-14 10:12:31 +08:00
func ( _e * MockDataNode_Expecter ) Register ( ) * MockDataNode_Register_Call {
return & MockDataNode_Register_Call { Call : _e . mock . On ( "Register" ) }
2022-08-31 12:10:57 +08:00
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_Register_Call ) Run ( run func ( ) ) * MockDataNode_Register_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_Register_Call ) Return ( _a0 error ) * MockDataNode_Register_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Return ( _a0 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_Register_Call ) RunAndReturn ( run func ( ) error ) * MockDataNode_Register_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// ResendSegmentStats provides a mock function with given fields: _a0, _a1
func ( _m * MockDataNode ) ResendSegmentStats ( _a0 context . Context , _a1 * datapb . ResendSegmentStatsRequest ) ( * datapb . ResendSegmentStatsResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
var r0 * datapb . ResendSegmentStatsResponse
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . ResendSegmentStatsRequest ) ( * datapb . ResendSegmentStatsResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-08-31 12:10:57 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . ResendSegmentStatsRequest ) * datapb . ResendSegmentStatsResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * datapb . ResendSegmentStatsResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . ResendSegmentStatsRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockDataNode_ResendSegmentStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResendSegmentStats'
type MockDataNode_ResendSegmentStats_Call struct {
2022-08-31 12:10:57 +08:00
* mock . Call
}
// ResendSegmentStats is a helper method to define mock.On call
2023-12-13 17:24:38 +08:00
// - _a0 context.Context
// - _a1 *datapb.ResendSegmentStatsRequest
2023-09-26 09:57:25 +08:00
func ( _e * MockDataNode_Expecter ) ResendSegmentStats ( _a0 interface { } , _a1 interface { } ) * MockDataNode_ResendSegmentStats_Call {
return & MockDataNode_ResendSegmentStats_Call { Call : _e . mock . On ( "ResendSegmentStats" , _a0 , _a1 ) }
2022-08-31 12:10:57 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockDataNode_ResendSegmentStats_Call ) Run ( run func ( _a0 context . Context , _a1 * datapb . ResendSegmentStatsRequest ) ) * MockDataNode_ResendSegmentStats_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . ResendSegmentStatsRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_ResendSegmentStats_Call ) Return ( _a0 * datapb . ResendSegmentStatsResponse , _a1 error ) * MockDataNode_ResendSegmentStats_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_ResendSegmentStats_Call ) RunAndReturn ( run func ( context . Context , * datapb . ResendSegmentStatsRequest ) ( * datapb . ResendSegmentStatsResponse , error ) ) * MockDataNode_ResendSegmentStats_Call {
_c . Call . Return ( run )
return _c
}
// SetAddress provides a mock function with given fields: address
func ( _m * MockDataNode ) SetAddress ( address string ) {
_m . Called ( address )
}
// MockDataNode_SetAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetAddress'
type MockDataNode_SetAddress_Call struct {
* mock . Call
}
// SetAddress is a helper method to define mock.On call
2023-12-13 17:24:38 +08:00
// - address string
2023-07-14 10:12:31 +08:00
func ( _e * MockDataNode_Expecter ) SetAddress ( address interface { } ) * MockDataNode_SetAddress_Call {
return & MockDataNode_SetAddress_Call { Call : _e . mock . On ( "SetAddress" , address ) }
}
func ( _c * MockDataNode_SetAddress_Call ) Run ( run func ( address string ) ) * MockDataNode_SetAddress_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( string ) )
} )
return _c
}
func ( _c * MockDataNode_SetAddress_Call ) Return ( ) * MockDataNode_SetAddress_Call {
_c . Call . Return ( )
return _c
}
func ( _c * MockDataNode_SetAddress_Call ) RunAndReturn ( run func ( string ) ) * MockDataNode_SetAddress_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// SetDataCoordClient provides a mock function with given fields: dataCoord
func ( _m * MockDataNode ) SetDataCoordClient ( dataCoord types . DataCoordClient ) error {
2023-07-14 10:12:31 +08:00
ret := _m . Called ( dataCoord )
var r0 error
2023-09-26 09:57:25 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( types . DataCoordClient ) error ) ; ok {
2023-07-14 10:12:31 +08:00
r0 = rf ( dataCoord )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2023-09-26 09:57:25 +08:00
// MockDataNode_SetDataCoordClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetDataCoordClient'
type MockDataNode_SetDataCoordClient_Call struct {
2023-07-14 10:12:31 +08:00
* mock . Call
}
2023-09-26 09:57:25 +08:00
// SetDataCoordClient is a helper method to define mock.On call
2023-12-13 17:24:38 +08:00
// - dataCoord types.DataCoordClient
2023-09-26 09:57:25 +08:00
func ( _e * MockDataNode_Expecter ) SetDataCoordClient ( dataCoord interface { } ) * MockDataNode_SetDataCoordClient_Call {
return & MockDataNode_SetDataCoordClient_Call { Call : _e . mock . On ( "SetDataCoordClient" , dataCoord ) }
2023-07-14 10:12:31 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockDataNode_SetDataCoordClient_Call ) Run ( run func ( dataCoord types . DataCoordClient ) ) * MockDataNode_SetDataCoordClient_Call {
2023-07-14 10:12:31 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
2023-09-26 09:57:25 +08:00
run ( args [ 0 ] . ( types . DataCoordClient ) )
2023-07-14 10:12:31 +08:00
} )
return _c
}
2023-09-26 09:57:25 +08:00
func ( _c * MockDataNode_SetDataCoordClient_Call ) Return ( _a0 error ) * MockDataNode_SetDataCoordClient_Call {
2023-07-14 10:12:31 +08:00
_c . Call . Return ( _a0 )
return _c
}
2023-09-26 09:57:25 +08:00
func ( _c * MockDataNode_SetDataCoordClient_Call ) RunAndReturn ( run func ( types . DataCoordClient ) error ) * MockDataNode_SetDataCoordClient_Call {
2023-07-14 10:12:31 +08:00
_c . Call . Return ( run )
return _c
}
// SetEtcdClient provides a mock function with given fields: etcdClient
func ( _m * MockDataNode ) SetEtcdClient ( etcdClient * clientv3 . Client ) {
_m . Called ( etcdClient )
}
// MockDataNode_SetEtcdClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetEtcdClient'
type MockDataNode_SetEtcdClient_Call struct {
* mock . Call
}
// SetEtcdClient is a helper method to define mock.On call
2023-12-13 17:24:38 +08:00
// - etcdClient *clientv3.Client
2023-07-14 10:12:31 +08:00
func ( _e * MockDataNode_Expecter ) SetEtcdClient ( etcdClient interface { } ) * MockDataNode_SetEtcdClient_Call {
return & MockDataNode_SetEtcdClient_Call { Call : _e . mock . On ( "SetEtcdClient" , etcdClient ) }
}
func ( _c * MockDataNode_SetEtcdClient_Call ) Run ( run func ( etcdClient * clientv3 . Client ) ) * MockDataNode_SetEtcdClient_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( * clientv3 . Client ) )
} )
return _c
}
func ( _c * MockDataNode_SetEtcdClient_Call ) Return ( ) * MockDataNode_SetEtcdClient_Call {
_c . Call . Return ( )
return _c
}
func ( _c * MockDataNode_SetEtcdClient_Call ) RunAndReturn ( run func ( * clientv3 . Client ) ) * MockDataNode_SetEtcdClient_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// SetRootCoordClient provides a mock function with given fields: rootCoord
func ( _m * MockDataNode ) SetRootCoordClient ( rootCoord types . RootCoordClient ) error {
2023-07-14 10:12:31 +08:00
ret := _m . Called ( rootCoord )
var r0 error
2023-09-26 09:57:25 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( types . RootCoordClient ) error ) ; ok {
2023-07-14 10:12:31 +08:00
r0 = rf ( rootCoord )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2023-09-26 09:57:25 +08:00
// MockDataNode_SetRootCoordClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetRootCoordClient'
type MockDataNode_SetRootCoordClient_Call struct {
2023-07-14 10:12:31 +08:00
* mock . Call
}
2023-09-26 09:57:25 +08:00
// SetRootCoordClient is a helper method to define mock.On call
2023-12-13 17:24:38 +08:00
// - rootCoord types.RootCoordClient
2023-09-26 09:57:25 +08:00
func ( _e * MockDataNode_Expecter ) SetRootCoordClient ( rootCoord interface { } ) * MockDataNode_SetRootCoordClient_Call {
return & MockDataNode_SetRootCoordClient_Call { Call : _e . mock . On ( "SetRootCoordClient" , rootCoord ) }
2023-07-14 10:12:31 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockDataNode_SetRootCoordClient_Call ) Run ( run func ( rootCoord types . RootCoordClient ) ) * MockDataNode_SetRootCoordClient_Call {
2023-07-14 10:12:31 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
2023-09-26 09:57:25 +08:00
run ( args [ 0 ] . ( types . RootCoordClient ) )
2023-07-14 10:12:31 +08:00
} )
return _c
}
2023-09-26 09:57:25 +08:00
func ( _c * MockDataNode_SetRootCoordClient_Call ) Return ( _a0 error ) * MockDataNode_SetRootCoordClient_Call {
2023-07-14 10:12:31 +08:00
_c . Call . Return ( _a0 )
return _c
}
2023-09-26 09:57:25 +08:00
func ( _c * MockDataNode_SetRootCoordClient_Call ) RunAndReturn ( run func ( types . RootCoordClient ) error ) * MockDataNode_SetRootCoordClient_Call {
2023-07-14 10:12:31 +08:00
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// ShowConfigurations provides a mock function with given fields: _a0, _a1
func ( _m * MockDataNode ) ShowConfigurations ( _a0 context . Context , _a1 * internalpb . ShowConfigurationsRequest ) ( * internalpb . ShowConfigurationsResponse , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
var r0 * internalpb . ShowConfigurationsResponse
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * internalpb . ShowConfigurationsRequest ) ( * internalpb . ShowConfigurationsResponse , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-08-31 12:10:57 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * internalpb . ShowConfigurationsRequest ) * internalpb . ShowConfigurationsResponse ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * internalpb . ShowConfigurationsResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * internalpb . ShowConfigurationsRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockDataNode_ShowConfigurations_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShowConfigurations'
type MockDataNode_ShowConfigurations_Call struct {
2022-08-31 12:10:57 +08:00
* mock . Call
}
// ShowConfigurations is a helper method to define mock.On call
2023-12-13 17:24:38 +08:00
// - _a0 context.Context
// - _a1 *internalpb.ShowConfigurationsRequest
2023-09-26 09:57:25 +08:00
func ( _e * MockDataNode_Expecter ) ShowConfigurations ( _a0 interface { } , _a1 interface { } ) * MockDataNode_ShowConfigurations_Call {
return & MockDataNode_ShowConfigurations_Call { Call : _e . mock . On ( "ShowConfigurations" , _a0 , _a1 ) }
2022-08-31 12:10:57 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockDataNode_ShowConfigurations_Call ) Run ( run func ( _a0 context . Context , _a1 * internalpb . ShowConfigurationsRequest ) ) * MockDataNode_ShowConfigurations_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * internalpb . ShowConfigurationsRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_ShowConfigurations_Call ) Return ( _a0 * internalpb . ShowConfigurationsResponse , _a1 error ) * MockDataNode_ShowConfigurations_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_ShowConfigurations_Call ) RunAndReturn ( run func ( context . Context , * internalpb . ShowConfigurationsRequest ) ( * internalpb . ShowConfigurationsResponse , error ) ) * MockDataNode_ShowConfigurations_Call {
_c . Call . Return ( run )
return _c
}
2022-08-31 12:10:57 +08:00
// Start provides a mock function with given fields:
2023-07-14 10:12:31 +08:00
func ( _m * MockDataNode ) Start ( ) error {
2022-08-31 12:10:57 +08:00
ret := _m . Called ( )
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) error ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2023-07-14 10:12:31 +08:00
// MockDataNode_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
type MockDataNode_Start_Call struct {
2022-08-31 12:10:57 +08:00
* mock . Call
}
// Start is a helper method to define mock.On call
2023-07-14 10:12:31 +08:00
func ( _e * MockDataNode_Expecter ) Start ( ) * MockDataNode_Start_Call {
return & MockDataNode_Start_Call { Call : _e . mock . On ( "Start" ) }
2022-08-31 12:10:57 +08:00
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_Start_Call ) Run ( run func ( ) ) * MockDataNode_Start_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_Start_Call ) Return ( _a0 error ) * MockDataNode_Start_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Return ( _a0 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_Start_Call ) RunAndReturn ( run func ( ) error ) * MockDataNode_Start_Call {
_c . Call . Return ( run )
return _c
}
2022-08-31 12:10:57 +08:00
// Stop provides a mock function with given fields:
2023-07-14 10:12:31 +08:00
func ( _m * MockDataNode ) Stop ( ) error {
2022-08-31 12:10:57 +08:00
ret := _m . Called ( )
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) error ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
2023-07-14 10:12:31 +08:00
// MockDataNode_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
type MockDataNode_Stop_Call struct {
2022-08-31 12:10:57 +08:00
* mock . Call
}
// Stop is a helper method to define mock.On call
2023-07-14 10:12:31 +08:00
func ( _e * MockDataNode_Expecter ) Stop ( ) * MockDataNode_Stop_Call {
return & MockDataNode_Stop_Call { Call : _e . mock . On ( "Stop" ) }
2022-08-31 12:10:57 +08:00
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_Stop_Call ) Run ( run func ( ) ) * MockDataNode_Stop_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_Stop_Call ) Return ( _a0 error ) * MockDataNode_Stop_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Return ( _a0 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_Stop_Call ) RunAndReturn ( run func ( ) error ) * MockDataNode_Stop_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// SyncSegments provides a mock function with given fields: _a0, _a1
func ( _m * MockDataNode ) SyncSegments ( _a0 context . Context , _a1 * datapb . SyncSegmentsRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-09-23 10:22:52 +08:00
var r0 * commonpb . Status
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . SyncSegmentsRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-09-23 10:22:52 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . SyncSegmentsRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-09-23 10:22:52 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . SyncSegmentsRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-09-23 10:22:52 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockDataNode_SyncSegments_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SyncSegments'
type MockDataNode_SyncSegments_Call struct {
2022-09-23 10:22:52 +08:00
* mock . Call
}
// SyncSegments is a helper method to define mock.On call
2023-12-13 17:24:38 +08:00
// - _a0 context.Context
// - _a1 *datapb.SyncSegmentsRequest
2023-09-26 09:57:25 +08:00
func ( _e * MockDataNode_Expecter ) SyncSegments ( _a0 interface { } , _a1 interface { } ) * MockDataNode_SyncSegments_Call {
return & MockDataNode_SyncSegments_Call { Call : _e . mock . On ( "SyncSegments" , _a0 , _a1 ) }
2022-09-23 10:22:52 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockDataNode_SyncSegments_Call ) Run ( run func ( _a0 context . Context , _a1 * datapb . SyncSegmentsRequest ) ) * MockDataNode_SyncSegments_Call {
2022-09-23 10:22:52 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . SyncSegmentsRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_SyncSegments_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockDataNode_SyncSegments_Call {
2022-09-23 10:22:52 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_SyncSegments_Call ) RunAndReturn ( run func ( context . Context , * datapb . SyncSegmentsRequest ) ( * commonpb . Status , error ) ) * MockDataNode_SyncSegments_Call {
_c . Call . Return ( run )
return _c
}
// UpdateStateCode provides a mock function with given fields: stateCode
func ( _m * MockDataNode ) UpdateStateCode ( stateCode commonpb . StateCode ) {
_m . Called ( stateCode )
}
// MockDataNode_UpdateStateCode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateStateCode'
type MockDataNode_UpdateStateCode_Call struct {
* mock . Call
}
// UpdateStateCode is a helper method to define mock.On call
2023-12-13 17:24:38 +08:00
// - stateCode commonpb.StateCode
2023-07-14 10:12:31 +08:00
func ( _e * MockDataNode_Expecter ) UpdateStateCode ( stateCode interface { } ) * MockDataNode_UpdateStateCode_Call {
return & MockDataNode_UpdateStateCode_Call { Call : _e . mock . On ( "UpdateStateCode" , stateCode ) }
}
func ( _c * MockDataNode_UpdateStateCode_Call ) Run ( run func ( stateCode commonpb . StateCode ) ) * MockDataNode_UpdateStateCode_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( commonpb . StateCode ) )
} )
return _c
}
func ( _c * MockDataNode_UpdateStateCode_Call ) Return ( ) * MockDataNode_UpdateStateCode_Call {
_c . Call . Return ( )
return _c
}
func ( _c * MockDataNode_UpdateStateCode_Call ) RunAndReturn ( run func ( commonpb . StateCode ) ) * MockDataNode_UpdateStateCode_Call {
_c . Call . Return ( run )
return _c
}
2023-09-26 09:57:25 +08:00
// WatchDmChannels provides a mock function with given fields: _a0, _a1
func ( _m * MockDataNode ) WatchDmChannels ( _a0 context . Context , _a1 * datapb . WatchDmChannelsRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
var r0 * commonpb . Status
2023-07-14 10:12:31 +08:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . WatchDmChannelsRequest ) ( * commonpb . Status , error ) ) ; ok {
2023-09-26 09:57:25 +08:00
return rf ( _a0 , _a1 )
2023-07-14 10:12:31 +08:00
}
2022-08-31 12:10:57 +08:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . WatchDmChannelsRequest ) * commonpb . Status ) ; ok {
2023-09-26 09:57:25 +08:00
r0 = rf ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . WatchDmChannelsRequest ) error ) ; ok {
2023-09-26 09:57:25 +08:00
r1 = rf ( _a0 , _a1 )
2022-08-31 12:10:57 +08:00
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2023-07-14 10:12:31 +08:00
// MockDataNode_WatchDmChannels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WatchDmChannels'
type MockDataNode_WatchDmChannels_Call struct {
2022-08-31 12:10:57 +08:00
* mock . Call
}
// WatchDmChannels is a helper method to define mock.On call
2023-12-13 17:24:38 +08:00
// - _a0 context.Context
// - _a1 *datapb.WatchDmChannelsRequest
2023-09-26 09:57:25 +08:00
func ( _e * MockDataNode_Expecter ) WatchDmChannels ( _a0 interface { } , _a1 interface { } ) * MockDataNode_WatchDmChannels_Call {
return & MockDataNode_WatchDmChannels_Call { Call : _e . mock . On ( "WatchDmChannels" , _a0 , _a1 ) }
2022-08-31 12:10:57 +08:00
}
2023-09-26 09:57:25 +08:00
func ( _c * MockDataNode_WatchDmChannels_Call ) Run ( run func ( _a0 context . Context , _a1 * datapb . WatchDmChannelsRequest ) ) * MockDataNode_WatchDmChannels_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . WatchDmChannelsRequest ) )
} )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_WatchDmChannels_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * MockDataNode_WatchDmChannels_Call {
2022-08-31 12:10:57 +08:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-07-14 10:12:31 +08:00
func ( _c * MockDataNode_WatchDmChannels_Call ) RunAndReturn ( run func ( context . Context , * datapb . WatchDmChannelsRequest ) ( * commonpb . Status , error ) ) * MockDataNode_WatchDmChannels_Call {
_c . Call . Return ( run )
return _c
2022-08-31 12:10:57 +08:00
}
2023-07-14 10:12:31 +08:00
// NewMockDataNode creates a new instance of MockDataNode. 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 NewMockDataNode ( t interface {
mock . TestingT
Cleanup ( func ( ) )
2023-09-26 09:57:25 +08:00
} ) * MockDataNode {
2023-07-14 10:12:31 +08:00
mock := & MockDataNode { }
2022-08-31 12:10:57 +08:00
mock . Mock . Test ( t )
t . Cleanup ( func ( ) { mock . AssertExpectations ( t ) } )
return mock
}