github.com/pingcap/tiflow@v0.0.0-20240520035814-5bf52d54e205/engine/executor/server/mock/metastore_mock.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/pingcap/tiflow/engine/executor/server (interfaces: MetastoreCreator) 3 4 // Package mock is a generated GoMock package. 5 package mock 6 7 import ( 8 context "context" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 model "github.com/pingcap/tiflow/engine/pkg/meta/model" 13 ) 14 15 // MockMetastoreCreator is a mock of MetastoreCreator interface. 16 type MockMetastoreCreator struct { 17 ctrl *gomock.Controller 18 recorder *MockMetastoreCreatorMockRecorder 19 } 20 21 // MockMetastoreCreatorMockRecorder is the mock recorder for MockMetastoreCreator. 22 type MockMetastoreCreatorMockRecorder struct { 23 mock *MockMetastoreCreator 24 } 25 26 // NewMockMetastoreCreator creates a new mock instance. 27 func NewMockMetastoreCreator(ctrl *gomock.Controller) *MockMetastoreCreator { 28 mock := &MockMetastoreCreator{ctrl: ctrl} 29 mock.recorder = &MockMetastoreCreatorMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockMetastoreCreator) EXPECT() *MockMetastoreCreatorMockRecorder { 35 return m.recorder 36 } 37 38 // CreateClientConnForBusiness mocks base method. 39 func (m *MockMetastoreCreator) CreateClientConnForBusiness(arg0 context.Context, arg1 model.StoreConfig) (model.ClientConn, error) { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "CreateClientConnForBusiness", arg0, arg1) 42 ret0, _ := ret[0].(model.ClientConn) 43 ret1, _ := ret[1].(error) 44 return ret0, ret1 45 } 46 47 // CreateClientConnForBusiness indicates an expected call of CreateClientConnForBusiness. 48 func (mr *MockMetastoreCreatorMockRecorder) CreateClientConnForBusiness(arg0, arg1 interface{}) *gomock.Call { 49 mr.mock.ctrl.T.Helper() 50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateClientConnForBusiness", reflect.TypeOf((*MockMetastoreCreator)(nil).CreateClientConnForBusiness), arg0, arg1) 51 } 52 53 // CreateClientConnForFramework mocks base method. 54 func (m *MockMetastoreCreator) CreateClientConnForFramework(arg0 context.Context, arg1 model.StoreConfig) (model.ClientConn, error) { 55 m.ctrl.T.Helper() 56 ret := m.ctrl.Call(m, "CreateClientConnForFramework", arg0, arg1) 57 ret0, _ := ret[0].(model.ClientConn) 58 ret1, _ := ret[1].(error) 59 return ret0, ret1 60 } 61 62 // CreateClientConnForFramework indicates an expected call of CreateClientConnForFramework. 63 func (mr *MockMetastoreCreatorMockRecorder) CreateClientConnForFramework(arg0, arg1 interface{}) *gomock.Call { 64 mr.mock.ctrl.T.Helper() 65 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateClientConnForFramework", reflect.TypeOf((*MockMetastoreCreator)(nil).CreateClientConnForFramework), arg0, arg1) 66 }