2023-04-18 10:30:32 +00:00
// Code generated by mockery v2.21.1. DO NOT EDIT.
2022-09-07 08:14:35 +00:00
package mocks
import (
context "context"
2022-10-16 12:49:27 +00:00
commonpb "github.com/milvus-io/milvus-proto/go-api/commonpb"
2022-09-07 08:14:35 +00:00
datapb "github.com/milvus-io/milvus/internal/proto/datapb"
2023-01-12 01:55:42 +00:00
indexpb "github.com/milvus-io/milvus/internal/proto/indexpb"
2022-09-07 08:14:35 +00:00
internalpb "github.com/milvus-io/milvus/internal/proto/internalpb"
2022-10-16 12:49:27 +00:00
milvuspb "github.com/milvus-io/milvus-proto/go-api/milvuspb"
2022-09-07 08:14:35 +00:00
mock "github.com/stretchr/testify/mock"
)
// DataCoord is an autogenerated mock type for the DataCoord type
type DataCoord struct {
mock . Mock
}
type DataCoord_Expecter struct {
mock * mock . Mock
}
func ( _m * DataCoord ) EXPECT ( ) * DataCoord_Expecter {
return & DataCoord_Expecter { mock : & _m . Mock }
}
// AssignSegmentID provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) AssignSegmentID ( ctx context . Context , req * datapb . AssignSegmentIDRequest ) ( * datapb . AssignSegmentIDResponse , error ) {
ret := _m . Called ( ctx , req )
var r0 * datapb . AssignSegmentIDResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . AssignSegmentIDRequest ) ( * datapb . AssignSegmentIDResponse , error ) ) ; ok {
return rf ( ctx , req )
}
2022-09-07 08:14:35 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . AssignSegmentIDRequest ) * datapb . AssignSegmentIDResponse ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * datapb . AssignSegmentIDResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . AssignSegmentIDRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_AssignSegmentID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AssignSegmentID'
type DataCoord_AssignSegmentID_Call struct {
* mock . Call
}
// AssignSegmentID is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *datapb.AssignSegmentIDRequest
2022-09-07 08:14:35 +00:00
func ( _e * DataCoord_Expecter ) AssignSegmentID ( ctx interface { } , req interface { } ) * DataCoord_AssignSegmentID_Call {
return & DataCoord_AssignSegmentID_Call { Call : _e . mock . On ( "AssignSegmentID" , ctx , req ) }
}
func ( _c * DataCoord_AssignSegmentID_Call ) Run ( run func ( ctx context . Context , req * datapb . AssignSegmentIDRequest ) ) * DataCoord_AssignSegmentID_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . AssignSegmentIDRequest ) )
} )
return _c
}
func ( _c * DataCoord_AssignSegmentID_Call ) Return ( _a0 * datapb . AssignSegmentIDResponse , _a1 error ) * DataCoord_AssignSegmentID_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_AssignSegmentID_Call ) RunAndReturn ( run func ( context . Context , * datapb . AssignSegmentIDRequest ) ( * datapb . AssignSegmentIDResponse , error ) ) * DataCoord_AssignSegmentID_Call {
_c . Call . Return ( run )
return _c
}
2022-10-18 05:39:26 +00:00
// BroadcastAlteredCollection provides a mock function with given fields: ctx, req
2023-01-12 01:55:42 +00:00
func ( _m * DataCoord ) BroadcastAlteredCollection ( ctx context . Context , req * datapb . AlterCollectionRequest ) ( * commonpb . Status , error ) {
2022-10-10 12:31:22 +00:00
ret := _m . Called ( ctx , req )
var r0 * commonpb . Status
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . AlterCollectionRequest ) ( * commonpb . Status , error ) ) ; ok {
return rf ( ctx , req )
}
2023-01-12 01:55:42 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . AlterCollectionRequest ) * commonpb . Status ) ; ok {
2022-10-10 12:31:22 +00:00
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
2023-01-12 01:55:42 +00:00
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . AlterCollectionRequest ) error ) ; ok {
2022-10-10 12:31:22 +00:00
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
2022-10-18 05:39:26 +00:00
// DataCoord_BroadcastAlteredCollection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BroadcastAlteredCollection'
2022-10-11 13:07:23 +00:00
type DataCoord_BroadcastAlteredCollection_Call struct {
2022-10-10 12:31:22 +00:00
* mock . Call
}
2022-10-18 05:39:26 +00:00
// BroadcastAlteredCollection is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *datapb.AlterCollectionRequest
2022-10-11 13:07:23 +00:00
func ( _e * DataCoord_Expecter ) BroadcastAlteredCollection ( ctx interface { } , req interface { } ) * DataCoord_BroadcastAlteredCollection_Call {
return & DataCoord_BroadcastAlteredCollection_Call { Call : _e . mock . On ( "BroadcastAlteredCollection" , ctx , req ) }
2022-10-10 12:31:22 +00:00
}
2023-01-12 01:55:42 +00:00
func ( _c * DataCoord_BroadcastAlteredCollection_Call ) Run ( run func ( ctx context . Context , req * datapb . AlterCollectionRequest ) ) * DataCoord_BroadcastAlteredCollection_Call {
2022-10-10 12:31:22 +00:00
_c . Call . Run ( func ( args mock . Arguments ) {
2023-01-12 01:55:42 +00:00
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . AlterCollectionRequest ) )
2022-10-10 12:31:22 +00:00
} )
return _c
}
2022-10-11 13:07:23 +00:00
func ( _c * DataCoord_BroadcastAlteredCollection_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * DataCoord_BroadcastAlteredCollection_Call {
2022-10-10 12:31:22 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_BroadcastAlteredCollection_Call ) RunAndReturn ( run func ( context . Context , * datapb . AlterCollectionRequest ) ( * commonpb . Status , error ) ) * DataCoord_BroadcastAlteredCollection_Call {
_c . Call . Return ( run )
return _c
}
2022-10-18 05:39:26 +00:00
// CheckHealth provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) CheckHealth ( ctx context . Context , req * milvuspb . CheckHealthRequest ) ( * milvuspb . CheckHealthResponse , error ) {
ret := _m . Called ( ctx , req )
var r0 * milvuspb . CheckHealthResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CheckHealthRequest ) ( * milvuspb . CheckHealthResponse , error ) ) ; ok {
return rf ( ctx , req )
}
2022-10-18 05:39:26 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . CheckHealthRequest ) * milvuspb . CheckHealthResponse ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . CheckHealthResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . CheckHealthRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_CheckHealth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckHealth'
type DataCoord_CheckHealth_Call struct {
* mock . Call
}
// CheckHealth is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *milvuspb.CheckHealthRequest
2022-10-18 05:39:26 +00:00
func ( _e * DataCoord_Expecter ) CheckHealth ( ctx interface { } , req interface { } ) * DataCoord_CheckHealth_Call {
return & DataCoord_CheckHealth_Call { Call : _e . mock . On ( "CheckHealth" , ctx , req ) }
}
func ( _c * DataCoord_CheckHealth_Call ) Run ( run func ( ctx context . Context , req * milvuspb . CheckHealthRequest ) ) * DataCoord_CheckHealth_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . CheckHealthRequest ) )
} )
return _c
}
func ( _c * DataCoord_CheckHealth_Call ) Return ( _a0 * milvuspb . CheckHealthResponse , _a1 error ) * DataCoord_CheckHealth_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_CheckHealth_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . CheckHealthRequest ) ( * milvuspb . CheckHealthResponse , error ) ) * DataCoord_CheckHealth_Call {
_c . Call . Return ( run )
return _c
}
2023-01-12 01:55:42 +00:00
// CreateIndex provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) CreateIndex ( ctx context . Context , req * indexpb . CreateIndexRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( ctx , req )
var r0 * commonpb . Status
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * indexpb . CreateIndexRequest ) ( * commonpb . Status , error ) ) ; ok {
return rf ( ctx , req )
}
2023-01-12 01:55:42 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * indexpb . CreateIndexRequest ) * commonpb . Status ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * indexpb . CreateIndexRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_CreateIndex_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateIndex'
type DataCoord_CreateIndex_Call struct {
* mock . Call
}
// CreateIndex is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *indexpb.CreateIndexRequest
2023-01-12 01:55:42 +00:00
func ( _e * DataCoord_Expecter ) CreateIndex ( ctx interface { } , req interface { } ) * DataCoord_CreateIndex_Call {
return & DataCoord_CreateIndex_Call { Call : _e . mock . On ( "CreateIndex" , ctx , req ) }
}
func ( _c * DataCoord_CreateIndex_Call ) Run ( run func ( ctx context . Context , req * indexpb . CreateIndexRequest ) ) * DataCoord_CreateIndex_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * indexpb . CreateIndexRequest ) )
} )
return _c
}
func ( _c * DataCoord_CreateIndex_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * DataCoord_CreateIndex_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_CreateIndex_Call ) RunAndReturn ( run func ( context . Context , * indexpb . CreateIndexRequest ) ( * commonpb . Status , error ) ) * DataCoord_CreateIndex_Call {
_c . Call . Return ( run )
return _c
}
2023-01-12 01:55:42 +00:00
// DescribeIndex provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) DescribeIndex ( ctx context . Context , req * indexpb . DescribeIndexRequest ) ( * indexpb . DescribeIndexResponse , error ) {
ret := _m . Called ( ctx , req )
var r0 * indexpb . DescribeIndexResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * indexpb . DescribeIndexRequest ) ( * indexpb . DescribeIndexResponse , error ) ) ; ok {
return rf ( ctx , req )
}
2023-01-12 01:55:42 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * indexpb . DescribeIndexRequest ) * indexpb . DescribeIndexResponse ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * indexpb . DescribeIndexResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * indexpb . DescribeIndexRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_DescribeIndex_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DescribeIndex'
type DataCoord_DescribeIndex_Call struct {
* mock . Call
}
// DescribeIndex is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *indexpb.DescribeIndexRequest
2023-01-12 01:55:42 +00:00
func ( _e * DataCoord_Expecter ) DescribeIndex ( ctx interface { } , req interface { } ) * DataCoord_DescribeIndex_Call {
return & DataCoord_DescribeIndex_Call { Call : _e . mock . On ( "DescribeIndex" , ctx , req ) }
}
func ( _c * DataCoord_DescribeIndex_Call ) Run ( run func ( ctx context . Context , req * indexpb . DescribeIndexRequest ) ) * DataCoord_DescribeIndex_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * indexpb . DescribeIndexRequest ) )
} )
return _c
}
func ( _c * DataCoord_DescribeIndex_Call ) Return ( _a0 * indexpb . DescribeIndexResponse , _a1 error ) * DataCoord_DescribeIndex_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_DescribeIndex_Call ) RunAndReturn ( run func ( context . Context , * indexpb . DescribeIndexRequest ) ( * indexpb . DescribeIndexResponse , error ) ) * DataCoord_DescribeIndex_Call {
_c . Call . Return ( run )
return _c
}
2023-01-12 01:55:42 +00:00
// DropIndex provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) DropIndex ( ctx context . Context , req * indexpb . DropIndexRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( ctx , req )
var r0 * commonpb . Status
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * indexpb . DropIndexRequest ) ( * commonpb . Status , error ) ) ; ok {
return rf ( ctx , req )
}
2023-01-12 01:55:42 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * indexpb . DropIndexRequest ) * commonpb . Status ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * indexpb . DropIndexRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_DropIndex_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DropIndex'
type DataCoord_DropIndex_Call struct {
* mock . Call
}
// DropIndex is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *indexpb.DropIndexRequest
2023-01-12 01:55:42 +00:00
func ( _e * DataCoord_Expecter ) DropIndex ( ctx interface { } , req interface { } ) * DataCoord_DropIndex_Call {
return & DataCoord_DropIndex_Call { Call : _e . mock . On ( "DropIndex" , ctx , req ) }
}
func ( _c * DataCoord_DropIndex_Call ) Run ( run func ( ctx context . Context , req * indexpb . DropIndexRequest ) ) * DataCoord_DropIndex_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * indexpb . DropIndexRequest ) )
} )
return _c
}
func ( _c * DataCoord_DropIndex_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * DataCoord_DropIndex_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_DropIndex_Call ) RunAndReturn ( run func ( context . Context , * indexpb . DropIndexRequest ) ( * commonpb . Status , error ) ) * DataCoord_DropIndex_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 08:14:35 +00:00
// DropVirtualChannel provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) DropVirtualChannel ( ctx context . Context , req * datapb . DropVirtualChannelRequest ) ( * datapb . DropVirtualChannelResponse , error ) {
ret := _m . Called ( ctx , req )
var r0 * datapb . DropVirtualChannelResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . DropVirtualChannelRequest ) ( * datapb . DropVirtualChannelResponse , error ) ) ; ok {
return rf ( ctx , req )
}
2022-09-07 08:14:35 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . DropVirtualChannelRequest ) * datapb . DropVirtualChannelResponse ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * datapb . DropVirtualChannelResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . DropVirtualChannelRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_DropVirtualChannel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DropVirtualChannel'
type DataCoord_DropVirtualChannel_Call struct {
* mock . Call
}
// DropVirtualChannel is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *datapb.DropVirtualChannelRequest
2022-09-07 08:14:35 +00:00
func ( _e * DataCoord_Expecter ) DropVirtualChannel ( ctx interface { } , req interface { } ) * DataCoord_DropVirtualChannel_Call {
return & DataCoord_DropVirtualChannel_Call { Call : _e . mock . On ( "DropVirtualChannel" , ctx , req ) }
}
func ( _c * DataCoord_DropVirtualChannel_Call ) Run ( run func ( ctx context . Context , req * datapb . DropVirtualChannelRequest ) ) * DataCoord_DropVirtualChannel_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . DropVirtualChannelRequest ) )
} )
return _c
}
func ( _c * DataCoord_DropVirtualChannel_Call ) Return ( _a0 * datapb . DropVirtualChannelResponse , _a1 error ) * DataCoord_DropVirtualChannel_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_DropVirtualChannel_Call ) RunAndReturn ( run func ( context . Context , * datapb . DropVirtualChannelRequest ) ( * datapb . DropVirtualChannelResponse , error ) ) * DataCoord_DropVirtualChannel_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 08:14:35 +00:00
// Flush provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) Flush ( ctx context . Context , req * datapb . FlushRequest ) ( * datapb . FlushResponse , error ) {
ret := _m . Called ( ctx , req )
var r0 * datapb . FlushResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . FlushRequest ) ( * datapb . FlushResponse , error ) ) ; ok {
return rf ( ctx , req )
}
2022-09-07 08:14:35 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . FlushRequest ) * datapb . FlushResponse ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * datapb . FlushResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . FlushRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_Flush_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Flush'
type DataCoord_Flush_Call struct {
* mock . Call
}
// Flush is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *datapb.FlushRequest
2022-09-07 08:14:35 +00:00
func ( _e * DataCoord_Expecter ) Flush ( ctx interface { } , req interface { } ) * DataCoord_Flush_Call {
return & DataCoord_Flush_Call { Call : _e . mock . On ( "Flush" , ctx , req ) }
}
func ( _c * DataCoord_Flush_Call ) Run ( run func ( ctx context . Context , req * datapb . FlushRequest ) ) * DataCoord_Flush_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . FlushRequest ) )
} )
return _c
}
func ( _c * DataCoord_Flush_Call ) Return ( _a0 * datapb . FlushResponse , _a1 error ) * DataCoord_Flush_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_Flush_Call ) RunAndReturn ( run func ( context . Context , * datapb . FlushRequest ) ( * datapb . FlushResponse , error ) ) * DataCoord_Flush_Call {
_c . Call . Return ( run )
return _c
}
2023-01-12 01:55:42 +00:00
// GcConfirm provides a mock function with given fields: ctx, request
func ( _m * DataCoord ) GcConfirm ( ctx context . Context , request * datapb . GcConfirmRequest ) ( * datapb . GcConfirmResponse , error ) {
ret := _m . Called ( ctx , request )
var r0 * datapb . GcConfirmResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . GcConfirmRequest ) ( * datapb . GcConfirmResponse , error ) ) ; ok {
return rf ( ctx , request )
}
2023-01-12 01:55:42 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . GcConfirmRequest ) * datapb . GcConfirmResponse ) ; ok {
r0 = rf ( ctx , request )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * datapb . GcConfirmResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . GcConfirmRequest ) error ) ; ok {
r1 = rf ( ctx , request )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_GcConfirm_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GcConfirm'
type DataCoord_GcConfirm_Call struct {
* mock . Call
}
// GcConfirm is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - request *datapb.GcConfirmRequest
2023-01-12 01:55:42 +00:00
func ( _e * DataCoord_Expecter ) GcConfirm ( ctx interface { } , request interface { } ) * DataCoord_GcConfirm_Call {
return & DataCoord_GcConfirm_Call { Call : _e . mock . On ( "GcConfirm" , ctx , request ) }
}
func ( _c * DataCoord_GcConfirm_Call ) Run ( run func ( ctx context . Context , request * datapb . GcConfirmRequest ) ) * DataCoord_GcConfirm_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . GcConfirmRequest ) )
} )
return _c
}
func ( _c * DataCoord_GcConfirm_Call ) Return ( _a0 * datapb . GcConfirmResponse , _a1 error ) * DataCoord_GcConfirm_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_GcConfirm_Call ) RunAndReturn ( run func ( context . Context , * datapb . GcConfirmRequest ) ( * datapb . GcConfirmResponse , error ) ) * DataCoord_GcConfirm_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 08:14:35 +00:00
// GetCollectionStatistics provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) GetCollectionStatistics ( ctx context . Context , req * datapb . GetCollectionStatisticsRequest ) ( * datapb . GetCollectionStatisticsResponse , error ) {
ret := _m . Called ( ctx , req )
var r0 * datapb . GetCollectionStatisticsResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . GetCollectionStatisticsRequest ) ( * datapb . GetCollectionStatisticsResponse , error ) ) ; ok {
return rf ( ctx , req )
}
2022-09-07 08:14:35 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . GetCollectionStatisticsRequest ) * datapb . GetCollectionStatisticsResponse ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * datapb . GetCollectionStatisticsResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . GetCollectionStatisticsRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_GetCollectionStatistics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCollectionStatistics'
type DataCoord_GetCollectionStatistics_Call struct {
* mock . Call
}
// GetCollectionStatistics is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *datapb.GetCollectionStatisticsRequest
2022-09-07 08:14:35 +00:00
func ( _e * DataCoord_Expecter ) GetCollectionStatistics ( ctx interface { } , req interface { } ) * DataCoord_GetCollectionStatistics_Call {
return & DataCoord_GetCollectionStatistics_Call { Call : _e . mock . On ( "GetCollectionStatistics" , ctx , req ) }
}
func ( _c * DataCoord_GetCollectionStatistics_Call ) Run ( run func ( ctx context . Context , req * datapb . GetCollectionStatisticsRequest ) ) * DataCoord_GetCollectionStatistics_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . GetCollectionStatisticsRequest ) )
} )
return _c
}
func ( _c * DataCoord_GetCollectionStatistics_Call ) Return ( _a0 * datapb . GetCollectionStatisticsResponse , _a1 error ) * DataCoord_GetCollectionStatistics_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_GetCollectionStatistics_Call ) RunAndReturn ( run func ( context . Context , * datapb . GetCollectionStatisticsRequest ) ( * datapb . GetCollectionStatisticsResponse , error ) ) * DataCoord_GetCollectionStatistics_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 08:14:35 +00:00
// GetCompactionState provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) GetCompactionState ( ctx context . Context , req * milvuspb . GetCompactionStateRequest ) ( * milvuspb . GetCompactionStateResponse , error ) {
ret := _m . Called ( ctx , req )
var r0 * milvuspb . GetCompactionStateResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetCompactionStateRequest ) ( * milvuspb . GetCompactionStateResponse , error ) ) ; ok {
return rf ( ctx , req )
}
2022-09-07 08:14:35 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetCompactionStateRequest ) * milvuspb . GetCompactionStateResponse ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . GetCompactionStateResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . GetCompactionStateRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_GetCompactionState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCompactionState'
type DataCoord_GetCompactionState_Call struct {
* mock . Call
}
// GetCompactionState is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *milvuspb.GetCompactionStateRequest
2022-09-07 08:14:35 +00:00
func ( _e * DataCoord_Expecter ) GetCompactionState ( ctx interface { } , req interface { } ) * DataCoord_GetCompactionState_Call {
return & DataCoord_GetCompactionState_Call { Call : _e . mock . On ( "GetCompactionState" , ctx , req ) }
}
func ( _c * DataCoord_GetCompactionState_Call ) Run ( run func ( ctx context . Context , req * milvuspb . GetCompactionStateRequest ) ) * DataCoord_GetCompactionState_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . GetCompactionStateRequest ) )
} )
return _c
}
func ( _c * DataCoord_GetCompactionState_Call ) Return ( _a0 * milvuspb . GetCompactionStateResponse , _a1 error ) * DataCoord_GetCompactionState_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_GetCompactionState_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . GetCompactionStateRequest ) ( * milvuspb . GetCompactionStateResponse , error ) ) * DataCoord_GetCompactionState_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 08:14:35 +00:00
// GetCompactionStateWithPlans provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) GetCompactionStateWithPlans ( ctx context . Context , req * milvuspb . GetCompactionPlansRequest ) ( * milvuspb . GetCompactionPlansResponse , error ) {
ret := _m . Called ( ctx , req )
var r0 * milvuspb . GetCompactionPlansResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetCompactionPlansRequest ) ( * milvuspb . GetCompactionPlansResponse , error ) ) ; ok {
return rf ( ctx , req )
}
2022-09-07 08:14:35 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetCompactionPlansRequest ) * milvuspb . GetCompactionPlansResponse ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . GetCompactionPlansResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . GetCompactionPlansRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_GetCompactionStateWithPlans_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCompactionStateWithPlans'
type DataCoord_GetCompactionStateWithPlans_Call struct {
* mock . Call
}
// GetCompactionStateWithPlans is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *milvuspb.GetCompactionPlansRequest
2022-09-07 08:14:35 +00:00
func ( _e * DataCoord_Expecter ) GetCompactionStateWithPlans ( ctx interface { } , req interface { } ) * DataCoord_GetCompactionStateWithPlans_Call {
return & DataCoord_GetCompactionStateWithPlans_Call { Call : _e . mock . On ( "GetCompactionStateWithPlans" , ctx , req ) }
}
func ( _c * DataCoord_GetCompactionStateWithPlans_Call ) Run ( run func ( ctx context . Context , req * milvuspb . GetCompactionPlansRequest ) ) * DataCoord_GetCompactionStateWithPlans_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . GetCompactionPlansRequest ) )
} )
return _c
}
func ( _c * DataCoord_GetCompactionStateWithPlans_Call ) Return ( _a0 * milvuspb . GetCompactionPlansResponse , _a1 error ) * DataCoord_GetCompactionStateWithPlans_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_GetCompactionStateWithPlans_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . GetCompactionPlansRequest ) ( * milvuspb . GetCompactionPlansResponse , error ) ) * DataCoord_GetCompactionStateWithPlans_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 08:14:35 +00:00
// GetComponentStates provides a mock function with given fields: ctx
2022-10-10 07:55:22 +00:00
func ( _m * DataCoord ) GetComponentStates ( ctx context . Context ) ( * milvuspb . ComponentStates , error ) {
2022-09-07 08:14:35 +00:00
ret := _m . Called ( ctx )
2022-10-10 07:55:22 +00:00
var r0 * milvuspb . ComponentStates
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context ) ( * milvuspb . ComponentStates , error ) ) ; ok {
return rf ( ctx )
}
2022-10-10 07:55:22 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context ) * milvuspb . ComponentStates ) ; ok {
2022-09-07 08:14:35 +00:00
r0 = rf ( ctx )
} else {
if ret . Get ( 0 ) != nil {
2022-10-10 07:55:22 +00:00
r0 = ret . Get ( 0 ) . ( * milvuspb . ComponentStates )
2022-09-07 08:14:35 +00:00
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context ) error ) ; ok {
r1 = rf ( ctx )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_GetComponentStates_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetComponentStates'
type DataCoord_GetComponentStates_Call struct {
* mock . Call
}
// GetComponentStates is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
2022-09-07 08:14:35 +00:00
func ( _e * DataCoord_Expecter ) GetComponentStates ( ctx interface { } ) * DataCoord_GetComponentStates_Call {
return & DataCoord_GetComponentStates_Call { Call : _e . mock . On ( "GetComponentStates" , ctx ) }
}
func ( _c * DataCoord_GetComponentStates_Call ) Run ( run func ( ctx context . Context ) ) * DataCoord_GetComponentStates_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) )
} )
return _c
}
2022-10-10 07:55:22 +00:00
func ( _c * DataCoord_GetComponentStates_Call ) Return ( _a0 * milvuspb . ComponentStates , _a1 error ) * DataCoord_GetComponentStates_Call {
2022-09-07 08:14:35 +00:00
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_GetComponentStates_Call ) RunAndReturn ( run func ( context . Context ) ( * milvuspb . ComponentStates , error ) ) * DataCoord_GetComponentStates_Call {
_c . Call . Return ( run )
return _c
}
2023-03-30 03:28:25 +00:00
// GetFlushAllState provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) GetFlushAllState ( ctx context . Context , req * milvuspb . GetFlushAllStateRequest ) ( * milvuspb . GetFlushAllStateResponse , error ) {
ret := _m . Called ( ctx , req )
var r0 * milvuspb . GetFlushAllStateResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetFlushAllStateRequest ) ( * milvuspb . GetFlushAllStateResponse , error ) ) ; ok {
return rf ( ctx , req )
}
2023-03-30 03:28:25 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetFlushAllStateRequest ) * milvuspb . GetFlushAllStateResponse ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . GetFlushAllStateResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . GetFlushAllStateRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_GetFlushAllState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFlushAllState'
type DataCoord_GetFlushAllState_Call struct {
* mock . Call
}
// GetFlushAllState is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *milvuspb.GetFlushAllStateRequest
2023-03-30 03:28:25 +00:00
func ( _e * DataCoord_Expecter ) GetFlushAllState ( ctx interface { } , req interface { } ) * DataCoord_GetFlushAllState_Call {
return & DataCoord_GetFlushAllState_Call { Call : _e . mock . On ( "GetFlushAllState" , ctx , req ) }
}
func ( _c * DataCoord_GetFlushAllState_Call ) Run ( run func ( ctx context . Context , req * milvuspb . GetFlushAllStateRequest ) ) * DataCoord_GetFlushAllState_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . GetFlushAllStateRequest ) )
} )
return _c
}
func ( _c * DataCoord_GetFlushAllState_Call ) Return ( _a0 * milvuspb . GetFlushAllStateResponse , _a1 error ) * DataCoord_GetFlushAllState_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_GetFlushAllState_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . GetFlushAllStateRequest ) ( * milvuspb . GetFlushAllStateResponse , error ) ) * DataCoord_GetFlushAllState_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 08:14:35 +00:00
// GetFlushState provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) GetFlushState ( ctx context . Context , req * milvuspb . GetFlushStateRequest ) ( * milvuspb . GetFlushStateResponse , error ) {
ret := _m . Called ( ctx , req )
var r0 * milvuspb . GetFlushStateResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetFlushStateRequest ) ( * milvuspb . GetFlushStateResponse , error ) ) ; ok {
return rf ( ctx , req )
}
2022-09-07 08:14:35 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetFlushStateRequest ) * milvuspb . GetFlushStateResponse ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . GetFlushStateResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . GetFlushStateRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_GetFlushState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFlushState'
type DataCoord_GetFlushState_Call struct {
* mock . Call
}
// GetFlushState is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *milvuspb.GetFlushStateRequest
2022-09-07 08:14:35 +00:00
func ( _e * DataCoord_Expecter ) GetFlushState ( ctx interface { } , req interface { } ) * DataCoord_GetFlushState_Call {
return & DataCoord_GetFlushState_Call { Call : _e . mock . On ( "GetFlushState" , ctx , req ) }
}
func ( _c * DataCoord_GetFlushState_Call ) Run ( run func ( ctx context . Context , req * milvuspb . GetFlushStateRequest ) ) * DataCoord_GetFlushState_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . GetFlushStateRequest ) )
} )
return _c
}
func ( _c * DataCoord_GetFlushState_Call ) Return ( _a0 * milvuspb . GetFlushStateResponse , _a1 error ) * DataCoord_GetFlushState_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_GetFlushState_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . GetFlushStateRequest ) ( * milvuspb . GetFlushStateResponse , error ) ) * DataCoord_GetFlushState_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 08:14:35 +00:00
// GetFlushedSegments provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) GetFlushedSegments ( ctx context . Context , req * datapb . GetFlushedSegmentsRequest ) ( * datapb . GetFlushedSegmentsResponse , error ) {
ret := _m . Called ( ctx , req )
var r0 * datapb . GetFlushedSegmentsResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . GetFlushedSegmentsRequest ) ( * datapb . GetFlushedSegmentsResponse , error ) ) ; ok {
return rf ( ctx , req )
}
2022-09-07 08:14:35 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . GetFlushedSegmentsRequest ) * datapb . GetFlushedSegmentsResponse ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * datapb . GetFlushedSegmentsResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . GetFlushedSegmentsRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_GetFlushedSegments_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFlushedSegments'
type DataCoord_GetFlushedSegments_Call struct {
* mock . Call
}
// GetFlushedSegments is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *datapb.GetFlushedSegmentsRequest
2022-09-07 08:14:35 +00:00
func ( _e * DataCoord_Expecter ) GetFlushedSegments ( ctx interface { } , req interface { } ) * DataCoord_GetFlushedSegments_Call {
return & DataCoord_GetFlushedSegments_Call { Call : _e . mock . On ( "GetFlushedSegments" , ctx , req ) }
}
func ( _c * DataCoord_GetFlushedSegments_Call ) Run ( run func ( ctx context . Context , req * datapb . GetFlushedSegmentsRequest ) ) * DataCoord_GetFlushedSegments_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . GetFlushedSegmentsRequest ) )
} )
return _c
}
func ( _c * DataCoord_GetFlushedSegments_Call ) Return ( _a0 * datapb . GetFlushedSegmentsResponse , _a1 error ) * DataCoord_GetFlushedSegments_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_GetFlushedSegments_Call ) RunAndReturn ( run func ( context . Context , * datapb . GetFlushedSegmentsRequest ) ( * datapb . GetFlushedSegmentsResponse , error ) ) * DataCoord_GetFlushedSegments_Call {
_c . Call . Return ( run )
return _c
}
2023-01-12 01:55:42 +00:00
// GetIndexBuildProgress provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) GetIndexBuildProgress ( ctx context . Context , req * indexpb . GetIndexBuildProgressRequest ) ( * indexpb . GetIndexBuildProgressResponse , error ) {
ret := _m . Called ( ctx , req )
var r0 * indexpb . GetIndexBuildProgressResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * indexpb . GetIndexBuildProgressRequest ) ( * indexpb . GetIndexBuildProgressResponse , error ) ) ; ok {
return rf ( ctx , req )
}
2023-01-12 01:55:42 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * indexpb . GetIndexBuildProgressRequest ) * indexpb . GetIndexBuildProgressResponse ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * indexpb . GetIndexBuildProgressResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * indexpb . GetIndexBuildProgressRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_GetIndexBuildProgress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIndexBuildProgress'
type DataCoord_GetIndexBuildProgress_Call struct {
* mock . Call
}
// GetIndexBuildProgress is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *indexpb.GetIndexBuildProgressRequest
2023-01-12 01:55:42 +00:00
func ( _e * DataCoord_Expecter ) GetIndexBuildProgress ( ctx interface { } , req interface { } ) * DataCoord_GetIndexBuildProgress_Call {
return & DataCoord_GetIndexBuildProgress_Call { Call : _e . mock . On ( "GetIndexBuildProgress" , ctx , req ) }
}
func ( _c * DataCoord_GetIndexBuildProgress_Call ) Run ( run func ( ctx context . Context , req * indexpb . GetIndexBuildProgressRequest ) ) * DataCoord_GetIndexBuildProgress_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * indexpb . GetIndexBuildProgressRequest ) )
} )
return _c
}
func ( _c * DataCoord_GetIndexBuildProgress_Call ) Return ( _a0 * indexpb . GetIndexBuildProgressResponse , _a1 error ) * DataCoord_GetIndexBuildProgress_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_GetIndexBuildProgress_Call ) RunAndReturn ( run func ( context . Context , * indexpb . GetIndexBuildProgressRequest ) ( * indexpb . GetIndexBuildProgressResponse , error ) ) * DataCoord_GetIndexBuildProgress_Call {
_c . Call . Return ( run )
return _c
}
2023-01-12 01:55:42 +00:00
// GetIndexInfos provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) GetIndexInfos ( ctx context . Context , req * indexpb . GetIndexInfoRequest ) ( * indexpb . GetIndexInfoResponse , error ) {
ret := _m . Called ( ctx , req )
var r0 * indexpb . GetIndexInfoResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * indexpb . GetIndexInfoRequest ) ( * indexpb . GetIndexInfoResponse , error ) ) ; ok {
return rf ( ctx , req )
}
2023-01-12 01:55:42 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * indexpb . GetIndexInfoRequest ) * indexpb . GetIndexInfoResponse ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * indexpb . GetIndexInfoResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * indexpb . GetIndexInfoRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_GetIndexInfos_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIndexInfos'
type DataCoord_GetIndexInfos_Call struct {
* mock . Call
}
// GetIndexInfos is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *indexpb.GetIndexInfoRequest
2023-01-12 01:55:42 +00:00
func ( _e * DataCoord_Expecter ) GetIndexInfos ( ctx interface { } , req interface { } ) * DataCoord_GetIndexInfos_Call {
return & DataCoord_GetIndexInfos_Call { Call : _e . mock . On ( "GetIndexInfos" , ctx , req ) }
}
func ( _c * DataCoord_GetIndexInfos_Call ) Run ( run func ( ctx context . Context , req * indexpb . GetIndexInfoRequest ) ) * DataCoord_GetIndexInfos_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * indexpb . GetIndexInfoRequest ) )
} )
return _c
}
func ( _c * DataCoord_GetIndexInfos_Call ) Return ( _a0 * indexpb . GetIndexInfoResponse , _a1 error ) * DataCoord_GetIndexInfos_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_GetIndexInfos_Call ) RunAndReturn ( run func ( context . Context , * indexpb . GetIndexInfoRequest ) ( * indexpb . GetIndexInfoResponse , error ) ) * DataCoord_GetIndexInfos_Call {
_c . Call . Return ( run )
return _c
}
2023-01-12 01:55:42 +00:00
// GetIndexState provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) GetIndexState ( ctx context . Context , req * indexpb . GetIndexStateRequest ) ( * indexpb . GetIndexStateResponse , error ) {
ret := _m . Called ( ctx , req )
var r0 * indexpb . GetIndexStateResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * indexpb . GetIndexStateRequest ) ( * indexpb . GetIndexStateResponse , error ) ) ; ok {
return rf ( ctx , req )
}
2023-01-12 01:55:42 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * indexpb . GetIndexStateRequest ) * indexpb . GetIndexStateResponse ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * indexpb . GetIndexStateResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * indexpb . GetIndexStateRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_GetIndexState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIndexState'
type DataCoord_GetIndexState_Call struct {
* mock . Call
}
// GetIndexState is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *indexpb.GetIndexStateRequest
2023-01-12 01:55:42 +00:00
func ( _e * DataCoord_Expecter ) GetIndexState ( ctx interface { } , req interface { } ) * DataCoord_GetIndexState_Call {
return & DataCoord_GetIndexState_Call { Call : _e . mock . On ( "GetIndexState" , ctx , req ) }
}
func ( _c * DataCoord_GetIndexState_Call ) Run ( run func ( ctx context . Context , req * indexpb . GetIndexStateRequest ) ) * DataCoord_GetIndexState_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * indexpb . GetIndexStateRequest ) )
} )
return _c
}
func ( _c * DataCoord_GetIndexState_Call ) Return ( _a0 * indexpb . GetIndexStateResponse , _a1 error ) * DataCoord_GetIndexState_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_GetIndexState_Call ) RunAndReturn ( run func ( context . Context , * indexpb . GetIndexStateRequest ) ( * indexpb . GetIndexStateResponse , error ) ) * DataCoord_GetIndexState_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 08:14:35 +00:00
// GetInsertBinlogPaths provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) GetInsertBinlogPaths ( ctx context . Context , req * datapb . GetInsertBinlogPathsRequest ) ( * datapb . GetInsertBinlogPathsResponse , error ) {
ret := _m . Called ( ctx , req )
var r0 * datapb . GetInsertBinlogPathsResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . GetInsertBinlogPathsRequest ) ( * datapb . GetInsertBinlogPathsResponse , error ) ) ; ok {
return rf ( ctx , req )
}
2022-09-07 08:14:35 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . GetInsertBinlogPathsRequest ) * datapb . GetInsertBinlogPathsResponse ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * datapb . GetInsertBinlogPathsResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . GetInsertBinlogPathsRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_GetInsertBinlogPaths_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInsertBinlogPaths'
type DataCoord_GetInsertBinlogPaths_Call struct {
* mock . Call
}
// GetInsertBinlogPaths is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *datapb.GetInsertBinlogPathsRequest
2022-09-07 08:14:35 +00:00
func ( _e * DataCoord_Expecter ) GetInsertBinlogPaths ( ctx interface { } , req interface { } ) * DataCoord_GetInsertBinlogPaths_Call {
return & DataCoord_GetInsertBinlogPaths_Call { Call : _e . mock . On ( "GetInsertBinlogPaths" , ctx , req ) }
}
func ( _c * DataCoord_GetInsertBinlogPaths_Call ) Run ( run func ( ctx context . Context , req * datapb . GetInsertBinlogPathsRequest ) ) * DataCoord_GetInsertBinlogPaths_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . GetInsertBinlogPathsRequest ) )
} )
return _c
}
func ( _c * DataCoord_GetInsertBinlogPaths_Call ) Return ( _a0 * datapb . GetInsertBinlogPathsResponse , _a1 error ) * DataCoord_GetInsertBinlogPaths_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_GetInsertBinlogPaths_Call ) RunAndReturn ( run func ( context . Context , * datapb . GetInsertBinlogPathsRequest ) ( * datapb . GetInsertBinlogPathsResponse , error ) ) * DataCoord_GetInsertBinlogPaths_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 08:14:35 +00:00
// GetMetrics provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) GetMetrics ( ctx context . Context , req * milvuspb . GetMetricsRequest ) ( * milvuspb . GetMetricsResponse , error ) {
ret := _m . Called ( ctx , req )
var r0 * milvuspb . GetMetricsResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetMetricsRequest ) ( * milvuspb . GetMetricsResponse , error ) ) ; ok {
return rf ( ctx , req )
}
2022-09-07 08:14:35 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . GetMetricsRequest ) * milvuspb . GetMetricsResponse ) ; ok {
r0 = rf ( ctx , req )
} 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 {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_GetMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMetrics'
type DataCoord_GetMetrics_Call struct {
* mock . Call
}
// GetMetrics is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *milvuspb.GetMetricsRequest
2022-09-07 08:14:35 +00:00
func ( _e * DataCoord_Expecter ) GetMetrics ( ctx interface { } , req interface { } ) * DataCoord_GetMetrics_Call {
return & DataCoord_GetMetrics_Call { Call : _e . mock . On ( "GetMetrics" , ctx , req ) }
}
func ( _c * DataCoord_GetMetrics_Call ) Run ( run func ( ctx context . Context , req * milvuspb . GetMetricsRequest ) ) * DataCoord_GetMetrics_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . GetMetricsRequest ) )
} )
return _c
}
func ( _c * DataCoord_GetMetrics_Call ) Return ( _a0 * milvuspb . GetMetricsResponse , _a1 error ) * DataCoord_GetMetrics_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_GetMetrics_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . GetMetricsRequest ) ( * milvuspb . GetMetricsResponse , error ) ) * DataCoord_GetMetrics_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 08:14:35 +00:00
// GetPartitionStatistics provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) GetPartitionStatistics ( ctx context . Context , req * datapb . GetPartitionStatisticsRequest ) ( * datapb . GetPartitionStatisticsResponse , error ) {
ret := _m . Called ( ctx , req )
var r0 * datapb . GetPartitionStatisticsResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . GetPartitionStatisticsRequest ) ( * datapb . GetPartitionStatisticsResponse , error ) ) ; ok {
return rf ( ctx , req )
}
2022-09-07 08:14:35 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . GetPartitionStatisticsRequest ) * datapb . GetPartitionStatisticsResponse ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * datapb . GetPartitionStatisticsResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . GetPartitionStatisticsRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_GetPartitionStatistics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPartitionStatistics'
type DataCoord_GetPartitionStatistics_Call struct {
* mock . Call
}
// GetPartitionStatistics is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *datapb.GetPartitionStatisticsRequest
2022-09-07 08:14:35 +00:00
func ( _e * DataCoord_Expecter ) GetPartitionStatistics ( ctx interface { } , req interface { } ) * DataCoord_GetPartitionStatistics_Call {
return & DataCoord_GetPartitionStatistics_Call { Call : _e . mock . On ( "GetPartitionStatistics" , ctx , req ) }
}
func ( _c * DataCoord_GetPartitionStatistics_Call ) Run ( run func ( ctx context . Context , req * datapb . GetPartitionStatisticsRequest ) ) * DataCoord_GetPartitionStatistics_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . GetPartitionStatisticsRequest ) )
} )
return _c
}
func ( _c * DataCoord_GetPartitionStatistics_Call ) Return ( _a0 * datapb . GetPartitionStatisticsResponse , _a1 error ) * DataCoord_GetPartitionStatistics_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_GetPartitionStatistics_Call ) RunAndReturn ( run func ( context . Context , * datapb . GetPartitionStatisticsRequest ) ( * datapb . GetPartitionStatisticsResponse , error ) ) * DataCoord_GetPartitionStatistics_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 08:14:35 +00:00
// GetRecoveryInfo provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) GetRecoveryInfo ( ctx context . Context , req * datapb . GetRecoveryInfoRequest ) ( * datapb . GetRecoveryInfoResponse , error ) {
ret := _m . Called ( ctx , req )
var r0 * datapb . GetRecoveryInfoResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . GetRecoveryInfoRequest ) ( * datapb . GetRecoveryInfoResponse , error ) ) ; ok {
return rf ( ctx , req )
}
2022-09-07 08:14:35 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . GetRecoveryInfoRequest ) * datapb . GetRecoveryInfoResponse ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * datapb . GetRecoveryInfoResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . GetRecoveryInfoRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_GetRecoveryInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRecoveryInfo'
type DataCoord_GetRecoveryInfo_Call struct {
* mock . Call
}
// GetRecoveryInfo is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *datapb.GetRecoveryInfoRequest
2022-09-07 08:14:35 +00:00
func ( _e * DataCoord_Expecter ) GetRecoveryInfo ( ctx interface { } , req interface { } ) * DataCoord_GetRecoveryInfo_Call {
return & DataCoord_GetRecoveryInfo_Call { Call : _e . mock . On ( "GetRecoveryInfo" , ctx , req ) }
}
func ( _c * DataCoord_GetRecoveryInfo_Call ) Run ( run func ( ctx context . Context , req * datapb . GetRecoveryInfoRequest ) ) * DataCoord_GetRecoveryInfo_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . GetRecoveryInfoRequest ) )
} )
return _c
}
func ( _c * DataCoord_GetRecoveryInfo_Call ) Return ( _a0 * datapb . GetRecoveryInfoResponse , _a1 error ) * DataCoord_GetRecoveryInfo_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_GetRecoveryInfo_Call ) RunAndReturn ( run func ( context . Context , * datapb . GetRecoveryInfoRequest ) ( * datapb . GetRecoveryInfoResponse , error ) ) * DataCoord_GetRecoveryInfo_Call {
_c . Call . Return ( run )
return _c
}
// GetRecoveryInfoV2 provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) GetRecoveryInfoV2 ( ctx context . Context , req * datapb . GetRecoveryInfoRequestV2 ) ( * datapb . GetRecoveryInfoResponseV2 , error ) {
ret := _m . Called ( ctx , req )
var r0 * datapb . GetRecoveryInfoResponseV2
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . GetRecoveryInfoRequestV2 ) ( * datapb . GetRecoveryInfoResponseV2 , error ) ) ; ok {
return rf ( ctx , req )
}
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . GetRecoveryInfoRequestV2 ) * datapb . GetRecoveryInfoResponseV2 ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * datapb . GetRecoveryInfoResponseV2 )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . GetRecoveryInfoRequestV2 ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_GetRecoveryInfoV2_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRecoveryInfoV2'
type DataCoord_GetRecoveryInfoV2_Call struct {
* mock . Call
}
// GetRecoveryInfoV2 is a helper method to define mock.On call
// - ctx context.Context
// - req *datapb.GetRecoveryInfoRequestV2
func ( _e * DataCoord_Expecter ) GetRecoveryInfoV2 ( ctx interface { } , req interface { } ) * DataCoord_GetRecoveryInfoV2_Call {
return & DataCoord_GetRecoveryInfoV2_Call { Call : _e . mock . On ( "GetRecoveryInfoV2" , ctx , req ) }
}
func ( _c * DataCoord_GetRecoveryInfoV2_Call ) Run ( run func ( ctx context . Context , req * datapb . GetRecoveryInfoRequestV2 ) ) * DataCoord_GetRecoveryInfoV2_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . GetRecoveryInfoRequestV2 ) )
} )
return _c
}
func ( _c * DataCoord_GetRecoveryInfoV2_Call ) Return ( _a0 * datapb . GetRecoveryInfoResponseV2 , _a1 error ) * DataCoord_GetRecoveryInfoV2_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
func ( _c * DataCoord_GetRecoveryInfoV2_Call ) RunAndReturn ( run func ( context . Context , * datapb . GetRecoveryInfoRequestV2 ) ( * datapb . GetRecoveryInfoResponseV2 , error ) ) * DataCoord_GetRecoveryInfoV2_Call {
_c . Call . Return ( run )
return _c
}
2023-01-12 01:55:42 +00:00
// GetSegmentIndexState provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) GetSegmentIndexState ( ctx context . Context , req * indexpb . GetSegmentIndexStateRequest ) ( * indexpb . GetSegmentIndexStateResponse , error ) {
ret := _m . Called ( ctx , req )
var r0 * indexpb . GetSegmentIndexStateResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * indexpb . GetSegmentIndexStateRequest ) ( * indexpb . GetSegmentIndexStateResponse , error ) ) ; ok {
return rf ( ctx , req )
}
2023-01-12 01:55:42 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * indexpb . GetSegmentIndexStateRequest ) * indexpb . GetSegmentIndexStateResponse ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * indexpb . GetSegmentIndexStateResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * indexpb . GetSegmentIndexStateRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_GetSegmentIndexState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSegmentIndexState'
type DataCoord_GetSegmentIndexState_Call struct {
* mock . Call
}
// GetSegmentIndexState is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *indexpb.GetSegmentIndexStateRequest
2023-01-12 01:55:42 +00:00
func ( _e * DataCoord_Expecter ) GetSegmentIndexState ( ctx interface { } , req interface { } ) * DataCoord_GetSegmentIndexState_Call {
return & DataCoord_GetSegmentIndexState_Call { Call : _e . mock . On ( "GetSegmentIndexState" , ctx , req ) }
}
func ( _c * DataCoord_GetSegmentIndexState_Call ) Run ( run func ( ctx context . Context , req * indexpb . GetSegmentIndexStateRequest ) ) * DataCoord_GetSegmentIndexState_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * indexpb . GetSegmentIndexStateRequest ) )
} )
return _c
}
func ( _c * DataCoord_GetSegmentIndexState_Call ) Return ( _a0 * indexpb . GetSegmentIndexStateResponse , _a1 error ) * DataCoord_GetSegmentIndexState_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_GetSegmentIndexState_Call ) RunAndReturn ( run func ( context . Context , * indexpb . GetSegmentIndexStateRequest ) ( * indexpb . GetSegmentIndexStateResponse , error ) ) * DataCoord_GetSegmentIndexState_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 08:14:35 +00:00
// GetSegmentInfo provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) GetSegmentInfo ( ctx context . Context , req * datapb . GetSegmentInfoRequest ) ( * datapb . GetSegmentInfoResponse , error ) {
ret := _m . Called ( ctx , req )
var r0 * datapb . GetSegmentInfoResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . GetSegmentInfoRequest ) ( * datapb . GetSegmentInfoResponse , error ) ) ; ok {
return rf ( ctx , req )
}
2022-09-07 08:14:35 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . GetSegmentInfoRequest ) * datapb . GetSegmentInfoResponse ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * datapb . GetSegmentInfoResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . GetSegmentInfoRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_GetSegmentInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSegmentInfo'
type DataCoord_GetSegmentInfo_Call struct {
* mock . Call
}
// GetSegmentInfo is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *datapb.GetSegmentInfoRequest
2022-09-07 08:14:35 +00:00
func ( _e * DataCoord_Expecter ) GetSegmentInfo ( ctx interface { } , req interface { } ) * DataCoord_GetSegmentInfo_Call {
return & DataCoord_GetSegmentInfo_Call { Call : _e . mock . On ( "GetSegmentInfo" , ctx , req ) }
}
func ( _c * DataCoord_GetSegmentInfo_Call ) Run ( run func ( ctx context . Context , req * datapb . GetSegmentInfoRequest ) ) * DataCoord_GetSegmentInfo_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . GetSegmentInfoRequest ) )
} )
return _c
}
func ( _c * DataCoord_GetSegmentInfo_Call ) Return ( _a0 * datapb . GetSegmentInfoResponse , _a1 error ) * DataCoord_GetSegmentInfo_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_GetSegmentInfo_Call ) RunAndReturn ( run func ( context . Context , * datapb . GetSegmentInfoRequest ) ( * datapb . GetSegmentInfoResponse , error ) ) * DataCoord_GetSegmentInfo_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 08:14:35 +00:00
// GetSegmentInfoChannel provides a mock function with given fields: ctx
func ( _m * DataCoord ) GetSegmentInfoChannel ( ctx context . Context ) ( * milvuspb . StringResponse , error ) {
ret := _m . Called ( ctx )
var r0 * milvuspb . StringResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context ) ( * milvuspb . StringResponse , error ) ) ; ok {
return rf ( ctx )
}
2022-09-07 08:14:35 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context ) * milvuspb . StringResponse ) ; ok {
r0 = rf ( ctx )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . StringResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context ) error ) ; ok {
r1 = rf ( ctx )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_GetSegmentInfoChannel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSegmentInfoChannel'
type DataCoord_GetSegmentInfoChannel_Call struct {
* mock . Call
}
// GetSegmentInfoChannel is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
2022-09-07 08:14:35 +00:00
func ( _e * DataCoord_Expecter ) GetSegmentInfoChannel ( ctx interface { } ) * DataCoord_GetSegmentInfoChannel_Call {
return & DataCoord_GetSegmentInfoChannel_Call { Call : _e . mock . On ( "GetSegmentInfoChannel" , ctx ) }
}
func ( _c * DataCoord_GetSegmentInfoChannel_Call ) Run ( run func ( ctx context . Context ) ) * DataCoord_GetSegmentInfoChannel_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) )
} )
return _c
}
func ( _c * DataCoord_GetSegmentInfoChannel_Call ) Return ( _a0 * milvuspb . StringResponse , _a1 error ) * DataCoord_GetSegmentInfoChannel_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_GetSegmentInfoChannel_Call ) RunAndReturn ( run func ( context . Context ) ( * milvuspb . StringResponse , error ) ) * DataCoord_GetSegmentInfoChannel_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 08:14:35 +00:00
// GetSegmentStates provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) GetSegmentStates ( ctx context . Context , req * datapb . GetSegmentStatesRequest ) ( * datapb . GetSegmentStatesResponse , error ) {
ret := _m . Called ( ctx , req )
var r0 * datapb . GetSegmentStatesResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . GetSegmentStatesRequest ) ( * datapb . GetSegmentStatesResponse , error ) ) ; ok {
return rf ( ctx , req )
}
2022-09-07 08:14:35 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . GetSegmentStatesRequest ) * datapb . GetSegmentStatesResponse ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * datapb . GetSegmentStatesResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . GetSegmentStatesRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_GetSegmentStates_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSegmentStates'
type DataCoord_GetSegmentStates_Call struct {
* mock . Call
}
// GetSegmentStates is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *datapb.GetSegmentStatesRequest
2022-09-07 08:14:35 +00:00
func ( _e * DataCoord_Expecter ) GetSegmentStates ( ctx interface { } , req interface { } ) * DataCoord_GetSegmentStates_Call {
return & DataCoord_GetSegmentStates_Call { Call : _e . mock . On ( "GetSegmentStates" , ctx , req ) }
}
func ( _c * DataCoord_GetSegmentStates_Call ) Run ( run func ( ctx context . Context , req * datapb . GetSegmentStatesRequest ) ) * DataCoord_GetSegmentStates_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . GetSegmentStatesRequest ) )
} )
return _c
}
func ( _c * DataCoord_GetSegmentStates_Call ) Return ( _a0 * datapb . GetSegmentStatesResponse , _a1 error ) * DataCoord_GetSegmentStates_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_GetSegmentStates_Call ) RunAndReturn ( run func ( context . Context , * datapb . GetSegmentStatesRequest ) ( * datapb . GetSegmentStatesResponse , error ) ) * DataCoord_GetSegmentStates_Call {
_c . Call . Return ( run )
return _c
}
2022-10-18 05:39:26 +00:00
// GetSegmentsByStates provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) GetSegmentsByStates ( ctx context . Context , req * datapb . GetSegmentsByStatesRequest ) ( * datapb . GetSegmentsByStatesResponse , error ) {
ret := _m . Called ( ctx , req )
var r0 * datapb . GetSegmentsByStatesResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . GetSegmentsByStatesRequest ) ( * datapb . GetSegmentsByStatesResponse , error ) ) ; ok {
return rf ( ctx , req )
}
2022-10-18 05:39:26 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . GetSegmentsByStatesRequest ) * datapb . GetSegmentsByStatesResponse ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * datapb . GetSegmentsByStatesResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . GetSegmentsByStatesRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_GetSegmentsByStates_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSegmentsByStates'
type DataCoord_GetSegmentsByStates_Call struct {
* mock . Call
}
// GetSegmentsByStates is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *datapb.GetSegmentsByStatesRequest
2022-10-18 05:39:26 +00:00
func ( _e * DataCoord_Expecter ) GetSegmentsByStates ( ctx interface { } , req interface { } ) * DataCoord_GetSegmentsByStates_Call {
return & DataCoord_GetSegmentsByStates_Call { Call : _e . mock . On ( "GetSegmentsByStates" , ctx , req ) }
}
func ( _c * DataCoord_GetSegmentsByStates_Call ) Run ( run func ( ctx context . Context , req * datapb . GetSegmentsByStatesRequest ) ) * DataCoord_GetSegmentsByStates_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . GetSegmentsByStatesRequest ) )
} )
return _c
}
func ( _c * DataCoord_GetSegmentsByStates_Call ) Return ( _a0 * datapb . GetSegmentsByStatesResponse , _a1 error ) * DataCoord_GetSegmentsByStates_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_GetSegmentsByStates_Call ) RunAndReturn ( run func ( context . Context , * datapb . GetSegmentsByStatesRequest ) ( * datapb . GetSegmentsByStatesResponse , error ) ) * DataCoord_GetSegmentsByStates_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 08:14:35 +00:00
// GetStatisticsChannel provides a mock function with given fields: ctx
func ( _m * DataCoord ) GetStatisticsChannel ( ctx context . Context ) ( * milvuspb . StringResponse , error ) {
ret := _m . Called ( ctx )
var r0 * milvuspb . StringResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context ) ( * milvuspb . StringResponse , error ) ) ; ok {
return rf ( ctx )
}
2022-09-07 08:14:35 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context ) * milvuspb . StringResponse ) ; ok {
r0 = rf ( ctx )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . StringResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context ) error ) ; ok {
r1 = rf ( ctx )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_GetStatisticsChannel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStatisticsChannel'
type DataCoord_GetStatisticsChannel_Call struct {
* mock . Call
}
// GetStatisticsChannel is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
2022-09-07 08:14:35 +00:00
func ( _e * DataCoord_Expecter ) GetStatisticsChannel ( ctx interface { } ) * DataCoord_GetStatisticsChannel_Call {
return & DataCoord_GetStatisticsChannel_Call { Call : _e . mock . On ( "GetStatisticsChannel" , ctx ) }
}
func ( _c * DataCoord_GetStatisticsChannel_Call ) Run ( run func ( ctx context . Context ) ) * DataCoord_GetStatisticsChannel_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) )
} )
return _c
}
func ( _c * DataCoord_GetStatisticsChannel_Call ) Return ( _a0 * milvuspb . StringResponse , _a1 error ) * DataCoord_GetStatisticsChannel_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_GetStatisticsChannel_Call ) RunAndReturn ( run func ( context . Context ) ( * milvuspb . StringResponse , error ) ) * DataCoord_GetStatisticsChannel_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 08:14:35 +00:00
// GetTimeTickChannel provides a mock function with given fields: ctx
func ( _m * DataCoord ) GetTimeTickChannel ( ctx context . Context ) ( * milvuspb . StringResponse , error ) {
ret := _m . Called ( ctx )
var r0 * milvuspb . StringResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context ) ( * milvuspb . StringResponse , error ) ) ; ok {
return rf ( ctx )
}
2022-09-07 08:14:35 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context ) * milvuspb . StringResponse ) ; ok {
r0 = rf ( ctx )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . StringResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context ) error ) ; ok {
r1 = rf ( ctx )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_GetTimeTickChannel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTimeTickChannel'
type DataCoord_GetTimeTickChannel_Call struct {
* mock . Call
}
// GetTimeTickChannel is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
2022-09-07 08:14:35 +00:00
func ( _e * DataCoord_Expecter ) GetTimeTickChannel ( ctx interface { } ) * DataCoord_GetTimeTickChannel_Call {
return & DataCoord_GetTimeTickChannel_Call { Call : _e . mock . On ( "GetTimeTickChannel" , ctx ) }
}
func ( _c * DataCoord_GetTimeTickChannel_Call ) Run ( run func ( ctx context . Context ) ) * DataCoord_GetTimeTickChannel_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) )
} )
return _c
}
func ( _c * DataCoord_GetTimeTickChannel_Call ) Return ( _a0 * milvuspb . StringResponse , _a1 error ) * DataCoord_GetTimeTickChannel_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_GetTimeTickChannel_Call ) RunAndReturn ( run func ( context . Context ) ( * milvuspb . StringResponse , error ) ) * DataCoord_GetTimeTickChannel_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 08:14:35 +00:00
// Import provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) Import ( ctx context . Context , req * datapb . ImportTaskRequest ) ( * datapb . ImportTaskResponse , error ) {
ret := _m . Called ( ctx , req )
var r0 * datapb . ImportTaskResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . ImportTaskRequest ) ( * datapb . ImportTaskResponse , error ) ) ; ok {
return rf ( ctx , req )
}
2022-09-07 08:14:35 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . ImportTaskRequest ) * datapb . ImportTaskResponse ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * datapb . ImportTaskResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . ImportTaskRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_Import_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Import'
type DataCoord_Import_Call struct {
* mock . Call
}
// Import is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *datapb.ImportTaskRequest
2022-09-07 08:14:35 +00:00
func ( _e * DataCoord_Expecter ) Import ( ctx interface { } , req interface { } ) * DataCoord_Import_Call {
return & DataCoord_Import_Call { Call : _e . mock . On ( "Import" , ctx , req ) }
}
func ( _c * DataCoord_Import_Call ) Run ( run func ( ctx context . Context , req * datapb . ImportTaskRequest ) ) * DataCoord_Import_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . ImportTaskRequest ) )
} )
return _c
}
func ( _c * DataCoord_Import_Call ) Return ( _a0 * datapb . ImportTaskResponse , _a1 error ) * DataCoord_Import_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_Import_Call ) RunAndReturn ( run func ( context . Context , * datapb . ImportTaskRequest ) ( * datapb . ImportTaskResponse , error ) ) * DataCoord_Import_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 08:14:35 +00:00
// Init provides a mock function with given fields:
func ( _m * DataCoord ) Init ( ) error {
ret := _m . Called ( )
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) error ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// DataCoord_Init_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Init'
type DataCoord_Init_Call struct {
* mock . Call
}
// Init is a helper method to define mock.On call
func ( _e * DataCoord_Expecter ) Init ( ) * DataCoord_Init_Call {
return & DataCoord_Init_Call { Call : _e . mock . On ( "Init" ) }
}
func ( _c * DataCoord_Init_Call ) Run ( run func ( ) ) * DataCoord_Init_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( )
} )
return _c
}
func ( _c * DataCoord_Init_Call ) Return ( _a0 error ) * DataCoord_Init_Call {
_c . Call . Return ( _a0 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_Init_Call ) RunAndReturn ( run func ( ) error ) * DataCoord_Init_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 08:14:35 +00:00
// ManualCompaction provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) ManualCompaction ( ctx context . Context , req * milvuspb . ManualCompactionRequest ) ( * milvuspb . ManualCompactionResponse , error ) {
ret := _m . Called ( ctx , req )
var r0 * milvuspb . ManualCompactionResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ManualCompactionRequest ) ( * milvuspb . ManualCompactionResponse , error ) ) ; ok {
return rf ( ctx , req )
}
2022-09-07 08:14:35 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * milvuspb . ManualCompactionRequest ) * milvuspb . ManualCompactionResponse ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * milvuspb . ManualCompactionResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * milvuspb . ManualCompactionRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_ManualCompaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ManualCompaction'
type DataCoord_ManualCompaction_Call struct {
* mock . Call
}
// ManualCompaction is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *milvuspb.ManualCompactionRequest
2022-09-07 08:14:35 +00:00
func ( _e * DataCoord_Expecter ) ManualCompaction ( ctx interface { } , req interface { } ) * DataCoord_ManualCompaction_Call {
return & DataCoord_ManualCompaction_Call { Call : _e . mock . On ( "ManualCompaction" , ctx , req ) }
}
func ( _c * DataCoord_ManualCompaction_Call ) Run ( run func ( ctx context . Context , req * milvuspb . ManualCompactionRequest ) ) * DataCoord_ManualCompaction_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * milvuspb . ManualCompactionRequest ) )
} )
return _c
}
func ( _c * DataCoord_ManualCompaction_Call ) Return ( _a0 * milvuspb . ManualCompactionResponse , _a1 error ) * DataCoord_ManualCompaction_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_ManualCompaction_Call ) RunAndReturn ( run func ( context . Context , * milvuspb . ManualCompactionRequest ) ( * milvuspb . ManualCompactionResponse , error ) ) * DataCoord_ManualCompaction_Call {
_c . Call . Return ( run )
return _c
}
2022-09-26 10:06:54 +00:00
// MarkSegmentsDropped provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) MarkSegmentsDropped ( ctx context . Context , req * datapb . MarkSegmentsDroppedRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( ctx , req )
var r0 * commonpb . Status
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . MarkSegmentsDroppedRequest ) ( * commonpb . Status , error ) ) ; ok {
return rf ( ctx , req )
}
2022-09-26 10:06:54 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . MarkSegmentsDroppedRequest ) * commonpb . Status ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . MarkSegmentsDroppedRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_MarkSegmentsDropped_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MarkSegmentsDropped'
type DataCoord_MarkSegmentsDropped_Call struct {
* mock . Call
}
// MarkSegmentsDropped is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *datapb.MarkSegmentsDroppedRequest
2022-09-26 10:06:54 +00:00
func ( _e * DataCoord_Expecter ) MarkSegmentsDropped ( ctx interface { } , req interface { } ) * DataCoord_MarkSegmentsDropped_Call {
return & DataCoord_MarkSegmentsDropped_Call { Call : _e . mock . On ( "MarkSegmentsDropped" , ctx , req ) }
}
func ( _c * DataCoord_MarkSegmentsDropped_Call ) Run ( run func ( ctx context . Context , req * datapb . MarkSegmentsDroppedRequest ) ) * DataCoord_MarkSegmentsDropped_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . MarkSegmentsDroppedRequest ) )
} )
return _c
}
func ( _c * DataCoord_MarkSegmentsDropped_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * DataCoord_MarkSegmentsDropped_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_MarkSegmentsDropped_Call ) RunAndReturn ( run func ( context . Context , * datapb . MarkSegmentsDroppedRequest ) ( * commonpb . Status , error ) ) * DataCoord_MarkSegmentsDropped_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 08:14:35 +00:00
// Register provides a mock function with given fields:
func ( _m * DataCoord ) Register ( ) error {
ret := _m . Called ( )
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) error ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// DataCoord_Register_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Register'
type DataCoord_Register_Call struct {
* mock . Call
}
// Register is a helper method to define mock.On call
func ( _e * DataCoord_Expecter ) Register ( ) * DataCoord_Register_Call {
return & DataCoord_Register_Call { Call : _e . mock . On ( "Register" ) }
}
func ( _c * DataCoord_Register_Call ) Run ( run func ( ) ) * DataCoord_Register_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( )
} )
return _c
}
func ( _c * DataCoord_Register_Call ) Return ( _a0 error ) * DataCoord_Register_Call {
_c . Call . Return ( _a0 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_Register_Call ) RunAndReturn ( run func ( ) error ) * DataCoord_Register_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 08:14:35 +00:00
// SaveBinlogPaths provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) SaveBinlogPaths ( ctx context . Context , req * datapb . SaveBinlogPathsRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( ctx , req )
var r0 * commonpb . Status
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . SaveBinlogPathsRequest ) ( * commonpb . Status , error ) ) ; ok {
return rf ( ctx , req )
}
2022-09-07 08:14:35 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . SaveBinlogPathsRequest ) * commonpb . Status ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . SaveBinlogPathsRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_SaveBinlogPaths_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveBinlogPaths'
type DataCoord_SaveBinlogPaths_Call struct {
* mock . Call
}
// SaveBinlogPaths is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *datapb.SaveBinlogPathsRequest
2022-09-07 08:14:35 +00:00
func ( _e * DataCoord_Expecter ) SaveBinlogPaths ( ctx interface { } , req interface { } ) * DataCoord_SaveBinlogPaths_Call {
return & DataCoord_SaveBinlogPaths_Call { Call : _e . mock . On ( "SaveBinlogPaths" , ctx , req ) }
}
func ( _c * DataCoord_SaveBinlogPaths_Call ) Run ( run func ( ctx context . Context , req * datapb . SaveBinlogPathsRequest ) ) * DataCoord_SaveBinlogPaths_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . SaveBinlogPathsRequest ) )
} )
return _c
}
func ( _c * DataCoord_SaveBinlogPaths_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * DataCoord_SaveBinlogPaths_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_SaveBinlogPaths_Call ) RunAndReturn ( run func ( context . Context , * datapb . SaveBinlogPathsRequest ) ( * commonpb . Status , error ) ) * DataCoord_SaveBinlogPaths_Call {
_c . Call . Return ( run )
return _c
}
2022-09-26 10:06:54 +00:00
// SaveImportSegment provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) SaveImportSegment ( ctx context . Context , req * datapb . SaveImportSegmentRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( ctx , req )
var r0 * commonpb . Status
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . SaveImportSegmentRequest ) ( * commonpb . Status , error ) ) ; ok {
return rf ( ctx , req )
}
2022-09-26 10:06:54 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . SaveImportSegmentRequest ) * commonpb . Status ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . SaveImportSegmentRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_SaveImportSegment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveImportSegment'
type DataCoord_SaveImportSegment_Call struct {
* mock . Call
}
// SaveImportSegment is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *datapb.SaveImportSegmentRequest
2022-09-26 10:06:54 +00:00
func ( _e * DataCoord_Expecter ) SaveImportSegment ( ctx interface { } , req interface { } ) * DataCoord_SaveImportSegment_Call {
return & DataCoord_SaveImportSegment_Call { Call : _e . mock . On ( "SaveImportSegment" , ctx , req ) }
}
func ( _c * DataCoord_SaveImportSegment_Call ) Run ( run func ( ctx context . Context , req * datapb . SaveImportSegmentRequest ) ) * DataCoord_SaveImportSegment_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . SaveImportSegmentRequest ) )
} )
return _c
}
func ( _c * DataCoord_SaveImportSegment_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * DataCoord_SaveImportSegment_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_SaveImportSegment_Call ) RunAndReturn ( run func ( context . Context , * datapb . SaveImportSegmentRequest ) ( * commonpb . Status , error ) ) * DataCoord_SaveImportSegment_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 08:14:35 +00:00
// SetSegmentState provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) SetSegmentState ( ctx context . Context , req * datapb . SetSegmentStateRequest ) ( * datapb . SetSegmentStateResponse , error ) {
ret := _m . Called ( ctx , req )
var r0 * datapb . SetSegmentStateResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . SetSegmentStateRequest ) ( * datapb . SetSegmentStateResponse , error ) ) ; ok {
return rf ( ctx , req )
}
2022-09-07 08:14:35 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . SetSegmentStateRequest ) * datapb . SetSegmentStateResponse ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * datapb . SetSegmentStateResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . SetSegmentStateRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_SetSegmentState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetSegmentState'
type DataCoord_SetSegmentState_Call struct {
* mock . Call
}
// SetSegmentState is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *datapb.SetSegmentStateRequest
2022-09-07 08:14:35 +00:00
func ( _e * DataCoord_Expecter ) SetSegmentState ( ctx interface { } , req interface { } ) * DataCoord_SetSegmentState_Call {
return & DataCoord_SetSegmentState_Call { Call : _e . mock . On ( "SetSegmentState" , ctx , req ) }
}
func ( _c * DataCoord_SetSegmentState_Call ) Run ( run func ( ctx context . Context , req * datapb . SetSegmentStateRequest ) ) * DataCoord_SetSegmentState_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . SetSegmentStateRequest ) )
} )
return _c
}
func ( _c * DataCoord_SetSegmentState_Call ) Return ( _a0 * datapb . SetSegmentStateResponse , _a1 error ) * DataCoord_SetSegmentState_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_SetSegmentState_Call ) RunAndReturn ( run func ( context . Context , * datapb . SetSegmentStateRequest ) ( * datapb . SetSegmentStateResponse , error ) ) * DataCoord_SetSegmentState_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 08:14:35 +00:00
// ShowConfigurations provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) ShowConfigurations ( ctx context . Context , req * internalpb . ShowConfigurationsRequest ) ( * internalpb . ShowConfigurationsResponse , error ) {
ret := _m . Called ( ctx , req )
var r0 * internalpb . ShowConfigurationsResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * internalpb . ShowConfigurationsRequest ) ( * internalpb . ShowConfigurationsResponse , error ) ) ; ok {
return rf ( ctx , req )
}
2022-09-07 08:14:35 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * internalpb . ShowConfigurationsRequest ) * internalpb . ShowConfigurationsResponse ) ; ok {
r0 = rf ( ctx , req )
} 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 {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_ShowConfigurations_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShowConfigurations'
type DataCoord_ShowConfigurations_Call struct {
* mock . Call
}
// ShowConfigurations is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *internalpb.ShowConfigurationsRequest
2022-09-07 08:14:35 +00:00
func ( _e * DataCoord_Expecter ) ShowConfigurations ( ctx interface { } , req interface { } ) * DataCoord_ShowConfigurations_Call {
return & DataCoord_ShowConfigurations_Call { Call : _e . mock . On ( "ShowConfigurations" , ctx , req ) }
}
func ( _c * DataCoord_ShowConfigurations_Call ) Run ( run func ( ctx context . Context , req * internalpb . ShowConfigurationsRequest ) ) * DataCoord_ShowConfigurations_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * internalpb . ShowConfigurationsRequest ) )
} )
return _c
}
func ( _c * DataCoord_ShowConfigurations_Call ) Return ( _a0 * internalpb . ShowConfigurationsResponse , _a1 error ) * DataCoord_ShowConfigurations_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_ShowConfigurations_Call ) RunAndReturn ( run func ( context . Context , * internalpb . ShowConfigurationsRequest ) ( * internalpb . ShowConfigurationsResponse , error ) ) * DataCoord_ShowConfigurations_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 08:14:35 +00:00
// Start provides a mock function with given fields:
func ( _m * DataCoord ) Start ( ) error {
ret := _m . Called ( )
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) error ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// DataCoord_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
type DataCoord_Start_Call struct {
* mock . Call
}
// Start is a helper method to define mock.On call
func ( _e * DataCoord_Expecter ) Start ( ) * DataCoord_Start_Call {
return & DataCoord_Start_Call { Call : _e . mock . On ( "Start" ) }
}
func ( _c * DataCoord_Start_Call ) Run ( run func ( ) ) * DataCoord_Start_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( )
} )
return _c
}
func ( _c * DataCoord_Start_Call ) Return ( _a0 error ) * DataCoord_Start_Call {
_c . Call . Return ( _a0 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_Start_Call ) RunAndReturn ( run func ( ) error ) * DataCoord_Start_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 08:14:35 +00:00
// Stop provides a mock function with given fields:
func ( _m * DataCoord ) Stop ( ) error {
ret := _m . Called ( )
var r0 error
if rf , ok := ret . Get ( 0 ) . ( func ( ) error ) ; ok {
r0 = rf ( )
} else {
r0 = ret . Error ( 0 )
}
return r0
}
// DataCoord_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
type DataCoord_Stop_Call struct {
* mock . Call
}
// Stop is a helper method to define mock.On call
func ( _e * DataCoord_Expecter ) Stop ( ) * DataCoord_Stop_Call {
return & DataCoord_Stop_Call { Call : _e . mock . On ( "Stop" ) }
}
func ( _c * DataCoord_Stop_Call ) Run ( run func ( ) ) * DataCoord_Stop_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( )
} )
return _c
}
func ( _c * DataCoord_Stop_Call ) Return ( _a0 error ) * DataCoord_Stop_Call {
_c . Call . Return ( _a0 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_Stop_Call ) RunAndReturn ( run func ( ) error ) * DataCoord_Stop_Call {
_c . Call . Return ( run )
return _c
}
2022-09-26 10:06:54 +00:00
// UnsetIsImportingState provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) UnsetIsImportingState ( ctx context . Context , req * datapb . UnsetIsImportingStateRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( ctx , req )
var r0 * commonpb . Status
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . UnsetIsImportingStateRequest ) ( * commonpb . Status , error ) ) ; ok {
return rf ( ctx , req )
}
2022-09-26 10:06:54 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . UnsetIsImportingStateRequest ) * commonpb . Status ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . UnsetIsImportingStateRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_UnsetIsImportingState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnsetIsImportingState'
type DataCoord_UnsetIsImportingState_Call struct {
* mock . Call
}
// UnsetIsImportingState is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *datapb.UnsetIsImportingStateRequest
2022-09-26 10:06:54 +00:00
func ( _e * DataCoord_Expecter ) UnsetIsImportingState ( ctx interface { } , req interface { } ) * DataCoord_UnsetIsImportingState_Call {
return & DataCoord_UnsetIsImportingState_Call { Call : _e . mock . On ( "UnsetIsImportingState" , ctx , req ) }
}
func ( _c * DataCoord_UnsetIsImportingState_Call ) Run ( run func ( ctx context . Context , req * datapb . UnsetIsImportingStateRequest ) ) * DataCoord_UnsetIsImportingState_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . UnsetIsImportingStateRequest ) )
} )
return _c
}
func ( _c * DataCoord_UnsetIsImportingState_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * DataCoord_UnsetIsImportingState_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_UnsetIsImportingState_Call ) RunAndReturn ( run func ( context . Context , * datapb . UnsetIsImportingStateRequest ) ( * commonpb . Status , error ) ) * DataCoord_UnsetIsImportingState_Call {
_c . Call . Return ( run )
return _c
}
2023-01-12 01:55:42 +00:00
// UpdateChannelCheckpoint provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) UpdateChannelCheckpoint ( ctx context . Context , req * datapb . UpdateChannelCheckpointRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( ctx , req )
var r0 * commonpb . Status
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . UpdateChannelCheckpointRequest ) ( * commonpb . Status , error ) ) ; ok {
return rf ( ctx , req )
}
2023-01-12 01:55:42 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . UpdateChannelCheckpointRequest ) * commonpb . Status ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . UpdateChannelCheckpointRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_UpdateChannelCheckpoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateChannelCheckpoint'
type DataCoord_UpdateChannelCheckpoint_Call struct {
* mock . Call
}
// UpdateChannelCheckpoint is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *datapb.UpdateChannelCheckpointRequest
2023-01-12 01:55:42 +00:00
func ( _e * DataCoord_Expecter ) UpdateChannelCheckpoint ( ctx interface { } , req interface { } ) * DataCoord_UpdateChannelCheckpoint_Call {
return & DataCoord_UpdateChannelCheckpoint_Call { Call : _e . mock . On ( "UpdateChannelCheckpoint" , ctx , req ) }
}
func ( _c * DataCoord_UpdateChannelCheckpoint_Call ) Run ( run func ( ctx context . Context , req * datapb . UpdateChannelCheckpointRequest ) ) * DataCoord_UpdateChannelCheckpoint_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . UpdateChannelCheckpointRequest ) )
} )
return _c
}
func ( _c * DataCoord_UpdateChannelCheckpoint_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * DataCoord_UpdateChannelCheckpoint_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_UpdateChannelCheckpoint_Call ) RunAndReturn ( run func ( context . Context , * datapb . UpdateChannelCheckpointRequest ) ( * commonpb . Status , error ) ) * DataCoord_UpdateChannelCheckpoint_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 08:14:35 +00:00
// UpdateSegmentStatistics provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) UpdateSegmentStatistics ( ctx context . Context , req * datapb . UpdateSegmentStatisticsRequest ) ( * commonpb . Status , error ) {
ret := _m . Called ( ctx , req )
var r0 * commonpb . Status
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . UpdateSegmentStatisticsRequest ) ( * commonpb . Status , error ) ) ; ok {
return rf ( ctx , req )
}
2022-09-07 08:14:35 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . UpdateSegmentStatisticsRequest ) * commonpb . Status ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * commonpb . Status )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . UpdateSegmentStatisticsRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_UpdateSegmentStatistics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateSegmentStatistics'
type DataCoord_UpdateSegmentStatistics_Call struct {
* mock . Call
}
// UpdateSegmentStatistics is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *datapb.UpdateSegmentStatisticsRequest
2022-09-07 08:14:35 +00:00
func ( _e * DataCoord_Expecter ) UpdateSegmentStatistics ( ctx interface { } , req interface { } ) * DataCoord_UpdateSegmentStatistics_Call {
return & DataCoord_UpdateSegmentStatistics_Call { Call : _e . mock . On ( "UpdateSegmentStatistics" , ctx , req ) }
}
func ( _c * DataCoord_UpdateSegmentStatistics_Call ) Run ( run func ( ctx context . Context , req * datapb . UpdateSegmentStatisticsRequest ) ) * DataCoord_UpdateSegmentStatistics_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . UpdateSegmentStatisticsRequest ) )
} )
return _c
}
func ( _c * DataCoord_UpdateSegmentStatistics_Call ) Return ( _a0 * commonpb . Status , _a1 error ) * DataCoord_UpdateSegmentStatistics_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_UpdateSegmentStatistics_Call ) RunAndReturn ( run func ( context . Context , * datapb . UpdateSegmentStatisticsRequest ) ( * commonpb . Status , error ) ) * DataCoord_UpdateSegmentStatistics_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 08:14:35 +00:00
// WatchChannels provides a mock function with given fields: ctx, req
func ( _m * DataCoord ) WatchChannels ( ctx context . Context , req * datapb . WatchChannelsRequest ) ( * datapb . WatchChannelsResponse , error ) {
ret := _m . Called ( ctx , req )
var r0 * datapb . WatchChannelsResponse
2023-04-18 10:30:32 +00:00
var r1 error
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . WatchChannelsRequest ) ( * datapb . WatchChannelsResponse , error ) ) ; ok {
return rf ( ctx , req )
}
2022-09-07 08:14:35 +00:00
if rf , ok := ret . Get ( 0 ) . ( func ( context . Context , * datapb . WatchChannelsRequest ) * datapb . WatchChannelsResponse ) ; ok {
r0 = rf ( ctx , req )
} else {
if ret . Get ( 0 ) != nil {
r0 = ret . Get ( 0 ) . ( * datapb . WatchChannelsResponse )
}
}
if rf , ok := ret . Get ( 1 ) . ( func ( context . Context , * datapb . WatchChannelsRequest ) error ) ; ok {
r1 = rf ( ctx , req )
} else {
r1 = ret . Error ( 1 )
}
return r0 , r1
}
// DataCoord_WatchChannels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WatchChannels'
type DataCoord_WatchChannels_Call struct {
* mock . Call
}
// WatchChannels is a helper method to define mock.On call
2023-04-18 10:30:32 +00:00
// - ctx context.Context
// - req *datapb.WatchChannelsRequest
2022-09-07 08:14:35 +00:00
func ( _e * DataCoord_Expecter ) WatchChannels ( ctx interface { } , req interface { } ) * DataCoord_WatchChannels_Call {
return & DataCoord_WatchChannels_Call { Call : _e . mock . On ( "WatchChannels" , ctx , req ) }
}
func ( _c * DataCoord_WatchChannels_Call ) Run ( run func ( ctx context . Context , req * datapb . WatchChannelsRequest ) ) * DataCoord_WatchChannels_Call {
_c . Call . Run ( func ( args mock . Arguments ) {
run ( args [ 0 ] . ( context . Context ) , args [ 1 ] . ( * datapb . WatchChannelsRequest ) )
} )
return _c
}
func ( _c * DataCoord_WatchChannels_Call ) Return ( _a0 * datapb . WatchChannelsResponse , _a1 error ) * DataCoord_WatchChannels_Call {
_c . Call . Return ( _a0 , _a1 )
return _c
}
2023-04-18 10:30:32 +00:00
func ( _c * DataCoord_WatchChannels_Call ) RunAndReturn ( run func ( context . Context , * datapb . WatchChannelsRequest ) ( * datapb . WatchChannelsResponse , error ) ) * DataCoord_WatchChannels_Call {
_c . Call . Return ( run )
return _c
}
2022-09-07 08:14:35 +00:00
type mockConstructorTestingTNewDataCoord interface {
mock . TestingT
Cleanup ( func ( ) )
}
// NewDataCoord creates a new instance of DataCoord. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewDataCoord ( t mockConstructorTestingTNewDataCoord ) * DataCoord {
mock := & DataCoord { }
mock . Mock . Test ( t )
t . Cleanup ( func ( ) { mock . AssertExpectations ( t ) } )
return mock
}