forked from vitessio/vitess
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mock_sqlexecuter.go
41 lines (33 loc) · 1.11 KB
/
mock_sqlexecuter.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
// Automatically generated by MockGen. DO NOT EDIT!
// Source: sql_executer_interface.go
package splitquery_testing
import (
gomock "github.com/golang/mock/gomock"
sqltypes "github.com/youtube/vitess/go/sqltypes"
)
// Mock of SQLExecuter interface
type MockSQLExecuter struct {
ctrl *gomock.Controller
recorder *_MockSQLExecuterRecorder
}
// Recorder for MockSQLExecuter (not exported)
type _MockSQLExecuterRecorder struct {
mock *MockSQLExecuter
}
func NewMockSQLExecuter(ctrl *gomock.Controller) *MockSQLExecuter {
mock := &MockSQLExecuter{ctrl: ctrl}
mock.recorder = &_MockSQLExecuterRecorder{mock}
return mock
}
func (_m *MockSQLExecuter) EXPECT() *_MockSQLExecuterRecorder {
return _m.recorder
}
func (_m *MockSQLExecuter) SQLExecute(sql string, bindVariables map[string]interface{}) (*sqltypes.Result, error) {
ret := _m.ctrl.Call(_m, "SQLExecute", sql, bindVariables)
ret0, _ := ret[0].(*sqltypes.Result)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (_mr *_MockSQLExecuterRecorder) SQLExecute(arg0, arg1 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "SQLExecute", arg0, arg1)
}