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