-
Notifications
You must be signed in to change notification settings - Fork 263
/
dynconfig_mock.go
182 lines (153 loc) · 6.13 KB
/
dynconfig_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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
// Code generated by MockGen. DO NOT EDIT.
// Source: dynconfig.go
// Package mocks is a generated GoMock package.
package mocks
import (
reflect "reflect"
types "d7y.io/dragonfly/v2/manager/types"
config "d7y.io/dragonfly/v2/scheduler/config"
gomock "github.com/golang/mock/gomock"
)
// MockDynconfigInterface is a mock of DynconfigInterface interface.
type MockDynconfigInterface struct {
ctrl *gomock.Controller
recorder *MockDynconfigInterfaceMockRecorder
}
// MockDynconfigInterfaceMockRecorder is the mock recorder for MockDynconfigInterface.
type MockDynconfigInterfaceMockRecorder struct {
mock *MockDynconfigInterface
}
// NewMockDynconfigInterface creates a new mock instance.
func NewMockDynconfigInterface(ctrl *gomock.Controller) *MockDynconfigInterface {
mock := &MockDynconfigInterface{ctrl: ctrl}
mock.recorder = &MockDynconfigInterfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockDynconfigInterface) EXPECT() *MockDynconfigInterfaceMockRecorder {
return m.recorder
}
// Deregister mocks base method.
func (m *MockDynconfigInterface) Deregister(arg0 config.Observer) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Deregister", arg0)
}
// Deregister indicates an expected call of Deregister.
func (mr *MockDynconfigInterfaceMockRecorder) Deregister(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Deregister", reflect.TypeOf((*MockDynconfigInterface)(nil).Deregister), arg0)
}
// Get mocks base method.
func (m *MockDynconfigInterface) Get() (*config.DynconfigData, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Get")
ret0, _ := ret[0].(*config.DynconfigData)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Get indicates an expected call of Get.
func (mr *MockDynconfigInterfaceMockRecorder) Get() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockDynconfigInterface)(nil).Get))
}
// GetSchedulerClusterClientConfig mocks base method.
func (m *MockDynconfigInterface) GetSchedulerClusterClientConfig() (types.SchedulerClusterClientConfig, bool) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetSchedulerClusterClientConfig")
ret0, _ := ret[0].(types.SchedulerClusterClientConfig)
ret1, _ := ret[1].(bool)
return ret0, ret1
}
// GetSchedulerClusterClientConfig indicates an expected call of GetSchedulerClusterClientConfig.
func (mr *MockDynconfigInterfaceMockRecorder) GetSchedulerClusterClientConfig() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSchedulerClusterClientConfig", reflect.TypeOf((*MockDynconfigInterface)(nil).GetSchedulerClusterClientConfig))
}
// GetSchedulerClusterConfig mocks base method.
func (m *MockDynconfigInterface) GetSchedulerClusterConfig() (types.SchedulerClusterConfig, bool) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetSchedulerClusterConfig")
ret0, _ := ret[0].(types.SchedulerClusterConfig)
ret1, _ := ret[1].(bool)
return ret0, ret1
}
// GetSchedulerClusterConfig indicates an expected call of GetSchedulerClusterConfig.
func (mr *MockDynconfigInterfaceMockRecorder) GetSchedulerClusterConfig() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSchedulerClusterConfig", reflect.TypeOf((*MockDynconfigInterface)(nil).GetSchedulerClusterConfig))
}
// Notify mocks base method.
func (m *MockDynconfigInterface) Notify() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Notify")
ret0, _ := ret[0].(error)
return ret0
}
// Notify indicates an expected call of Notify.
func (mr *MockDynconfigInterfaceMockRecorder) Notify() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Notify", reflect.TypeOf((*MockDynconfigInterface)(nil).Notify))
}
// Register mocks base method.
func (m *MockDynconfigInterface) Register(arg0 config.Observer) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Register", arg0)
}
// Register indicates an expected call of Register.
func (mr *MockDynconfigInterfaceMockRecorder) Register(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Register", reflect.TypeOf((*MockDynconfigInterface)(nil).Register), arg0)
}
// Serve mocks base method.
func (m *MockDynconfigInterface) Serve() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Serve")
ret0, _ := ret[0].(error)
return ret0
}
// Serve indicates an expected call of Serve.
func (mr *MockDynconfigInterfaceMockRecorder) Serve() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Serve", reflect.TypeOf((*MockDynconfigInterface)(nil).Serve))
}
// Stop mocks base method.
func (m *MockDynconfigInterface) Stop() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Stop")
ret0, _ := ret[0].(error)
return ret0
}
// Stop indicates an expected call of Stop.
func (mr *MockDynconfigInterfaceMockRecorder) Stop() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockDynconfigInterface)(nil).Stop))
}
// MockObserver is a mock of Observer interface.
type MockObserver struct {
ctrl *gomock.Controller
recorder *MockObserverMockRecorder
}
// MockObserverMockRecorder is the mock recorder for MockObserver.
type MockObserverMockRecorder struct {
mock *MockObserver
}
// NewMockObserver creates a new mock instance.
func NewMockObserver(ctrl *gomock.Controller) *MockObserver {
mock := &MockObserver{ctrl: ctrl}
mock.recorder = &MockObserverMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockObserver) EXPECT() *MockObserverMockRecorder {
return m.recorder
}
// OnNotify mocks base method.
func (m *MockObserver) OnNotify(arg0 *config.DynconfigData) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "OnNotify", arg0)
}
// OnNotify indicates an expected call of OnNotify.
func (mr *MockObserverMockRecorder) OnNotify(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnNotify", reflect.TypeOf((*MockObserver)(nil).OnNotify), arg0)
}