-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathengine_stub_mock.go
56 lines (47 loc) · 1.83 KB
/
engine_stub_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
// Code generated by MockGen. DO NOT EDIT.
// Source: engine_stub.go
//
// Generated by this command:
//
// mockgen -source engine_stub.go -destination engine_stub_mock.go -package executor
//
// Package executor is a generated GoMock package.
package executor
import (
reflect "reflect"
scql "github.com/secretflow/scql/pkg/proto-gen/scql"
gomock "go.uber.org/mock/gomock"
)
// MockEngineClient is a mock of EngineClient interface.
type MockEngineClient struct {
ctrl *gomock.Controller
recorder *MockEngineClientMockRecorder
isgomock struct{}
}
// MockEngineClientMockRecorder is the mock recorder for MockEngineClient.
type MockEngineClientMockRecorder struct {
mock *MockEngineClient
}
// NewMockEngineClient creates a new mock instance.
func NewMockEngineClient(ctrl *gomock.Controller) *MockEngineClient {
mock := &MockEngineClient{ctrl: ctrl}
mock.recorder = &MockEngineClientMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockEngineClient) EXPECT() *MockEngineClientMockRecorder {
return m.recorder
}
// RunExecutionPlan mocks base method.
func (m *MockEngineClient) RunExecutionPlan(url, credential string, executionPlanReq *scql.RunExecutionPlanRequest) (*scql.RunExecutionPlanResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RunExecutionPlan", url, credential, executionPlanReq)
ret0, _ := ret[0].(*scql.RunExecutionPlanResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// RunExecutionPlan indicates an expected call of RunExecutionPlan.
func (mr *MockEngineClientMockRecorder) RunExecutionPlan(url, credential, executionPlanReq any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunExecutionPlan", reflect.TypeOf((*MockEngineClient)(nil).RunExecutionPlan), url, credential, executionPlanReq)
}