/
FunctionDataCmdInterface.go
320 lines (258 loc) · 11.4 KB
/
FunctionDataCmdInterface.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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
// Code generated by mockery v2.42.0. DO NOT EDIT.
package mocks
import (
model "github.com/enbility/spine-go/model"
mock "github.com/stretchr/testify/mock"
)
// FunctionDataCmdInterface is an autogenerated mock type for the FunctionDataCmdInterface type
type FunctionDataCmdInterface struct {
mock.Mock
}
type FunctionDataCmdInterface_Expecter struct {
mock *mock.Mock
}
func (_m *FunctionDataCmdInterface) EXPECT() *FunctionDataCmdInterface_Expecter {
return &FunctionDataCmdInterface_Expecter{mock: &_m.Mock}
}
// DataCopyAny provides a mock function with given fields:
func (_m *FunctionDataCmdInterface) DataCopyAny() interface{} {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for DataCopyAny")
}
var r0 interface{}
if rf, ok := ret.Get(0).(func() interface{}); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(interface{})
}
}
return r0
}
// FunctionDataCmdInterface_DataCopyAny_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DataCopyAny'
type FunctionDataCmdInterface_DataCopyAny_Call struct {
*mock.Call
}
// DataCopyAny is a helper method to define mock.On call
func (_e *FunctionDataCmdInterface_Expecter) DataCopyAny() *FunctionDataCmdInterface_DataCopyAny_Call {
return &FunctionDataCmdInterface_DataCopyAny_Call{Call: _e.mock.On("DataCopyAny")}
}
func (_c *FunctionDataCmdInterface_DataCopyAny_Call) Run(run func()) *FunctionDataCmdInterface_DataCopyAny_Call {
_c.Call.Run(func(args mock.Arguments) {
run()
})
return _c
}
func (_c *FunctionDataCmdInterface_DataCopyAny_Call) Return(_a0 interface{}) *FunctionDataCmdInterface_DataCopyAny_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *FunctionDataCmdInterface_DataCopyAny_Call) RunAndReturn(run func() interface{}) *FunctionDataCmdInterface_DataCopyAny_Call {
_c.Call.Return(run)
return _c
}
// FunctionType provides a mock function with given fields:
func (_m *FunctionDataCmdInterface) FunctionType() model.FunctionType {
ret := _m.Called()
if len(ret) == 0 {
panic("no return value specified for FunctionType")
}
var r0 model.FunctionType
if rf, ok := ret.Get(0).(func() model.FunctionType); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(model.FunctionType)
}
return r0
}
// FunctionDataCmdInterface_FunctionType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FunctionType'
type FunctionDataCmdInterface_FunctionType_Call struct {
*mock.Call
}
// FunctionType is a helper method to define mock.On call
func (_e *FunctionDataCmdInterface_Expecter) FunctionType() *FunctionDataCmdInterface_FunctionType_Call {
return &FunctionDataCmdInterface_FunctionType_Call{Call: _e.mock.On("FunctionType")}
}
func (_c *FunctionDataCmdInterface_FunctionType_Call) Run(run func()) *FunctionDataCmdInterface_FunctionType_Call {
_c.Call.Run(func(args mock.Arguments) {
run()
})
return _c
}
func (_c *FunctionDataCmdInterface_FunctionType_Call) Return(_a0 model.FunctionType) *FunctionDataCmdInterface_FunctionType_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *FunctionDataCmdInterface_FunctionType_Call) RunAndReturn(run func() model.FunctionType) *FunctionDataCmdInterface_FunctionType_Call {
_c.Call.Return(run)
return _c
}
// NotifyOrWriteCmdType provides a mock function with given fields: deleteSelector, partialSelector, partialWithoutSelector, deleteElements
func (_m *FunctionDataCmdInterface) NotifyOrWriteCmdType(deleteSelector interface{}, partialSelector interface{}, partialWithoutSelector bool, deleteElements interface{}) model.CmdType {
ret := _m.Called(deleteSelector, partialSelector, partialWithoutSelector, deleteElements)
if len(ret) == 0 {
panic("no return value specified for NotifyOrWriteCmdType")
}
var r0 model.CmdType
if rf, ok := ret.Get(0).(func(interface{}, interface{}, bool, interface{}) model.CmdType); ok {
r0 = rf(deleteSelector, partialSelector, partialWithoutSelector, deleteElements)
} else {
r0 = ret.Get(0).(model.CmdType)
}
return r0
}
// FunctionDataCmdInterface_NotifyOrWriteCmdType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NotifyOrWriteCmdType'
type FunctionDataCmdInterface_NotifyOrWriteCmdType_Call struct {
*mock.Call
}
// NotifyOrWriteCmdType is a helper method to define mock.On call
// - deleteSelector interface{}
// - partialSelector interface{}
// - partialWithoutSelector bool
// - deleteElements interface{}
func (_e *FunctionDataCmdInterface_Expecter) NotifyOrWriteCmdType(deleteSelector interface{}, partialSelector interface{}, partialWithoutSelector interface{}, deleteElements interface{}) *FunctionDataCmdInterface_NotifyOrWriteCmdType_Call {
return &FunctionDataCmdInterface_NotifyOrWriteCmdType_Call{Call: _e.mock.On("NotifyOrWriteCmdType", deleteSelector, partialSelector, partialWithoutSelector, deleteElements)}
}
func (_c *FunctionDataCmdInterface_NotifyOrWriteCmdType_Call) Run(run func(deleteSelector interface{}, partialSelector interface{}, partialWithoutSelector bool, deleteElements interface{})) *FunctionDataCmdInterface_NotifyOrWriteCmdType_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(interface{}), args[1].(interface{}), args[2].(bool), args[3].(interface{}))
})
return _c
}
func (_c *FunctionDataCmdInterface_NotifyOrWriteCmdType_Call) Return(_a0 model.CmdType) *FunctionDataCmdInterface_NotifyOrWriteCmdType_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *FunctionDataCmdInterface_NotifyOrWriteCmdType_Call) RunAndReturn(run func(interface{}, interface{}, bool, interface{}) model.CmdType) *FunctionDataCmdInterface_NotifyOrWriteCmdType_Call {
_c.Call.Return(run)
return _c
}
// ReadCmdType provides a mock function with given fields: partialSelector, elements
func (_m *FunctionDataCmdInterface) ReadCmdType(partialSelector interface{}, elements interface{}) model.CmdType {
ret := _m.Called(partialSelector, elements)
if len(ret) == 0 {
panic("no return value specified for ReadCmdType")
}
var r0 model.CmdType
if rf, ok := ret.Get(0).(func(interface{}, interface{}) model.CmdType); ok {
r0 = rf(partialSelector, elements)
} else {
r0 = ret.Get(0).(model.CmdType)
}
return r0
}
// FunctionDataCmdInterface_ReadCmdType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadCmdType'
type FunctionDataCmdInterface_ReadCmdType_Call struct {
*mock.Call
}
// ReadCmdType is a helper method to define mock.On call
// - partialSelector interface{}
// - elements interface{}
func (_e *FunctionDataCmdInterface_Expecter) ReadCmdType(partialSelector interface{}, elements interface{}) *FunctionDataCmdInterface_ReadCmdType_Call {
return &FunctionDataCmdInterface_ReadCmdType_Call{Call: _e.mock.On("ReadCmdType", partialSelector, elements)}
}
func (_c *FunctionDataCmdInterface_ReadCmdType_Call) Run(run func(partialSelector interface{}, elements interface{})) *FunctionDataCmdInterface_ReadCmdType_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(interface{}), args[1].(interface{}))
})
return _c
}
func (_c *FunctionDataCmdInterface_ReadCmdType_Call) Return(_a0 model.CmdType) *FunctionDataCmdInterface_ReadCmdType_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *FunctionDataCmdInterface_ReadCmdType_Call) RunAndReturn(run func(interface{}, interface{}) model.CmdType) *FunctionDataCmdInterface_ReadCmdType_Call {
_c.Call.Return(run)
return _c
}
// ReplyCmdType provides a mock function with given fields: partial
func (_m *FunctionDataCmdInterface) ReplyCmdType(partial bool) model.CmdType {
ret := _m.Called(partial)
if len(ret) == 0 {
panic("no return value specified for ReplyCmdType")
}
var r0 model.CmdType
if rf, ok := ret.Get(0).(func(bool) model.CmdType); ok {
r0 = rf(partial)
} else {
r0 = ret.Get(0).(model.CmdType)
}
return r0
}
// FunctionDataCmdInterface_ReplyCmdType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReplyCmdType'
type FunctionDataCmdInterface_ReplyCmdType_Call struct {
*mock.Call
}
// ReplyCmdType is a helper method to define mock.On call
// - partial bool
func (_e *FunctionDataCmdInterface_Expecter) ReplyCmdType(partial interface{}) *FunctionDataCmdInterface_ReplyCmdType_Call {
return &FunctionDataCmdInterface_ReplyCmdType_Call{Call: _e.mock.On("ReplyCmdType", partial)}
}
func (_c *FunctionDataCmdInterface_ReplyCmdType_Call) Run(run func(partial bool)) *FunctionDataCmdInterface_ReplyCmdType_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(bool))
})
return _c
}
func (_c *FunctionDataCmdInterface_ReplyCmdType_Call) Return(_a0 model.CmdType) *FunctionDataCmdInterface_ReplyCmdType_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *FunctionDataCmdInterface_ReplyCmdType_Call) RunAndReturn(run func(bool) model.CmdType) *FunctionDataCmdInterface_ReplyCmdType_Call {
_c.Call.Return(run)
return _c
}
// UpdateDataAny provides a mock function with given fields: remoteWrite, data, filterPartial, filterDelete
func (_m *FunctionDataCmdInterface) UpdateDataAny(remoteWrite bool, data interface{}, filterPartial *model.FilterType, filterDelete *model.FilterType) *model.ErrorType {
ret := _m.Called(remoteWrite, data, filterPartial, filterDelete)
if len(ret) == 0 {
panic("no return value specified for UpdateDataAny")
}
var r0 *model.ErrorType
if rf, ok := ret.Get(0).(func(bool, interface{}, *model.FilterType, *model.FilterType) *model.ErrorType); ok {
r0 = rf(remoteWrite, data, filterPartial, filterDelete)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*model.ErrorType)
}
}
return r0
}
// FunctionDataCmdInterface_UpdateDataAny_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateDataAny'
type FunctionDataCmdInterface_UpdateDataAny_Call struct {
*mock.Call
}
// UpdateDataAny is a helper method to define mock.On call
// - remoteWrite bool
// - data interface{}
// - filterPartial *model.FilterType
// - filterDelete *model.FilterType
func (_e *FunctionDataCmdInterface_Expecter) UpdateDataAny(remoteWrite interface{}, data interface{}, filterPartial interface{}, filterDelete interface{}) *FunctionDataCmdInterface_UpdateDataAny_Call {
return &FunctionDataCmdInterface_UpdateDataAny_Call{Call: _e.mock.On("UpdateDataAny", remoteWrite, data, filterPartial, filterDelete)}
}
func (_c *FunctionDataCmdInterface_UpdateDataAny_Call) Run(run func(remoteWrite bool, data interface{}, filterPartial *model.FilterType, filterDelete *model.FilterType)) *FunctionDataCmdInterface_UpdateDataAny_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(bool), args[1].(interface{}), args[2].(*model.FilterType), args[3].(*model.FilterType))
})
return _c
}
func (_c *FunctionDataCmdInterface_UpdateDataAny_Call) Return(_a0 *model.ErrorType) *FunctionDataCmdInterface_UpdateDataAny_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *FunctionDataCmdInterface_UpdateDataAny_Call) RunAndReturn(run func(bool, interface{}, *model.FilterType, *model.FilterType) *model.ErrorType) *FunctionDataCmdInterface_UpdateDataAny_Call {
_c.Call.Return(run)
return _c
}
// NewFunctionDataCmdInterface creates a new instance of FunctionDataCmdInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewFunctionDataCmdInterface(t interface {
mock.TestingT
Cleanup(func())
}) *FunctionDataCmdInterface {
mock := &FunctionDataCmdInterface{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}