/
BatchGetItemsBuilder.go
364 lines (297 loc) · 11.7 KB
/
BatchGetItemsBuilder.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
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
// Code generated by mockery v2.22.1. DO NOT EDIT.
package mocks
import (
dynamodb "github.com/aws/aws-sdk-go-v2/service/dynamodb"
ddb "github.com/justtrackio/gosoline/pkg/ddb"
mock "github.com/stretchr/testify/mock"
)
// BatchGetItemsBuilder is an autogenerated mock type for the BatchGetItemsBuilder type
type BatchGetItemsBuilder struct {
mock.Mock
}
type BatchGetItemsBuilder_Expecter struct {
mock *mock.Mock
}
func (_m *BatchGetItemsBuilder) EXPECT() *BatchGetItemsBuilder_Expecter {
return &BatchGetItemsBuilder_Expecter{mock: &_m.Mock}
}
// Build provides a mock function with given fields: result
func (_m *BatchGetItemsBuilder) Build(result interface{}) (*dynamodb.BatchGetItemInput, error) {
ret := _m.Called(result)
var r0 *dynamodb.BatchGetItemInput
var r1 error
if rf, ok := ret.Get(0).(func(interface{}) (*dynamodb.BatchGetItemInput, error)); ok {
return rf(result)
}
if rf, ok := ret.Get(0).(func(interface{}) *dynamodb.BatchGetItemInput); ok {
r0 = rf(result)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(*dynamodb.BatchGetItemInput)
}
}
if rf, ok := ret.Get(1).(func(interface{}) error); ok {
r1 = rf(result)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// BatchGetItemsBuilder_Build_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Build'
type BatchGetItemsBuilder_Build_Call struct {
*mock.Call
}
// Build is a helper method to define mock.On call
// - result interface{}
func (_e *BatchGetItemsBuilder_Expecter) Build(result interface{}) *BatchGetItemsBuilder_Build_Call {
return &BatchGetItemsBuilder_Build_Call{Call: _e.mock.On("Build", result)}
}
func (_c *BatchGetItemsBuilder_Build_Call) Run(run func(result interface{})) *BatchGetItemsBuilder_Build_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(interface{}))
})
return _c
}
func (_c *BatchGetItemsBuilder_Build_Call) Return(_a0 *dynamodb.BatchGetItemInput, _a1 error) *BatchGetItemsBuilder_Build_Call {
_c.Call.Return(_a0, _a1)
return _c
}
func (_c *BatchGetItemsBuilder_Build_Call) RunAndReturn(run func(interface{}) (*dynamodb.BatchGetItemInput, error)) *BatchGetItemsBuilder_Build_Call {
_c.Call.Return(run)
return _c
}
// DisableTtlFilter provides a mock function with given fields:
func (_m *BatchGetItemsBuilder) DisableTtlFilter() ddb.BatchGetItemsBuilder {
ret := _m.Called()
var r0 ddb.BatchGetItemsBuilder
if rf, ok := ret.Get(0).(func() ddb.BatchGetItemsBuilder); ok {
r0 = rf()
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(ddb.BatchGetItemsBuilder)
}
}
return r0
}
// BatchGetItemsBuilder_DisableTtlFilter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DisableTtlFilter'
type BatchGetItemsBuilder_DisableTtlFilter_Call struct {
*mock.Call
}
// DisableTtlFilter is a helper method to define mock.On call
func (_e *BatchGetItemsBuilder_Expecter) DisableTtlFilter() *BatchGetItemsBuilder_DisableTtlFilter_Call {
return &BatchGetItemsBuilder_DisableTtlFilter_Call{Call: _e.mock.On("DisableTtlFilter")}
}
func (_c *BatchGetItemsBuilder_DisableTtlFilter_Call) Run(run func()) *BatchGetItemsBuilder_DisableTtlFilter_Call {
_c.Call.Run(func(args mock.Arguments) {
run()
})
return _c
}
func (_c *BatchGetItemsBuilder_DisableTtlFilter_Call) Return(_a0 ddb.BatchGetItemsBuilder) *BatchGetItemsBuilder_DisableTtlFilter_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *BatchGetItemsBuilder_DisableTtlFilter_Call) RunAndReturn(run func() ddb.BatchGetItemsBuilder) *BatchGetItemsBuilder_DisableTtlFilter_Call {
_c.Call.Return(run)
return _c
}
// WithConsistentRead provides a mock function with given fields: consistentRead
func (_m *BatchGetItemsBuilder) WithConsistentRead(consistentRead bool) ddb.BatchGetItemsBuilder {
ret := _m.Called(consistentRead)
var r0 ddb.BatchGetItemsBuilder
if rf, ok := ret.Get(0).(func(bool) ddb.BatchGetItemsBuilder); ok {
r0 = rf(consistentRead)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(ddb.BatchGetItemsBuilder)
}
}
return r0
}
// BatchGetItemsBuilder_WithConsistentRead_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithConsistentRead'
type BatchGetItemsBuilder_WithConsistentRead_Call struct {
*mock.Call
}
// WithConsistentRead is a helper method to define mock.On call
// - consistentRead bool
func (_e *BatchGetItemsBuilder_Expecter) WithConsistentRead(consistentRead interface{}) *BatchGetItemsBuilder_WithConsistentRead_Call {
return &BatchGetItemsBuilder_WithConsistentRead_Call{Call: _e.mock.On("WithConsistentRead", consistentRead)}
}
func (_c *BatchGetItemsBuilder_WithConsistentRead_Call) Run(run func(consistentRead bool)) *BatchGetItemsBuilder_WithConsistentRead_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(bool))
})
return _c
}
func (_c *BatchGetItemsBuilder_WithConsistentRead_Call) Return(_a0 ddb.BatchGetItemsBuilder) *BatchGetItemsBuilder_WithConsistentRead_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *BatchGetItemsBuilder_WithConsistentRead_Call) RunAndReturn(run func(bool) ddb.BatchGetItemsBuilder) *BatchGetItemsBuilder_WithConsistentRead_Call {
_c.Call.Return(run)
return _c
}
// WithHashKeys provides a mock function with given fields: hashKeys
func (_m *BatchGetItemsBuilder) WithHashKeys(hashKeys interface{}) ddb.BatchGetItemsBuilder {
ret := _m.Called(hashKeys)
var r0 ddb.BatchGetItemsBuilder
if rf, ok := ret.Get(0).(func(interface{}) ddb.BatchGetItemsBuilder); ok {
r0 = rf(hashKeys)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(ddb.BatchGetItemsBuilder)
}
}
return r0
}
// BatchGetItemsBuilder_WithHashKeys_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithHashKeys'
type BatchGetItemsBuilder_WithHashKeys_Call struct {
*mock.Call
}
// WithHashKeys is a helper method to define mock.On call
// - hashKeys interface{}
func (_e *BatchGetItemsBuilder_Expecter) WithHashKeys(hashKeys interface{}) *BatchGetItemsBuilder_WithHashKeys_Call {
return &BatchGetItemsBuilder_WithHashKeys_Call{Call: _e.mock.On("WithHashKeys", hashKeys)}
}
func (_c *BatchGetItemsBuilder_WithHashKeys_Call) Run(run func(hashKeys interface{})) *BatchGetItemsBuilder_WithHashKeys_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(interface{}))
})
return _c
}
func (_c *BatchGetItemsBuilder_WithHashKeys_Call) Return(_a0 ddb.BatchGetItemsBuilder) *BatchGetItemsBuilder_WithHashKeys_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *BatchGetItemsBuilder_WithHashKeys_Call) RunAndReturn(run func(interface{}) ddb.BatchGetItemsBuilder) *BatchGetItemsBuilder_WithHashKeys_Call {
_c.Call.Return(run)
return _c
}
// WithKeyPairs provides a mock function with given fields: pairs
func (_m *BatchGetItemsBuilder) WithKeyPairs(pairs [][]interface{}) ddb.BatchGetItemsBuilder {
ret := _m.Called(pairs)
var r0 ddb.BatchGetItemsBuilder
if rf, ok := ret.Get(0).(func([][]interface{}) ddb.BatchGetItemsBuilder); ok {
r0 = rf(pairs)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(ddb.BatchGetItemsBuilder)
}
}
return r0
}
// BatchGetItemsBuilder_WithKeyPairs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithKeyPairs'
type BatchGetItemsBuilder_WithKeyPairs_Call struct {
*mock.Call
}
// WithKeyPairs is a helper method to define mock.On call
// - pairs [][]interface{}
func (_e *BatchGetItemsBuilder_Expecter) WithKeyPairs(pairs interface{}) *BatchGetItemsBuilder_WithKeyPairs_Call {
return &BatchGetItemsBuilder_WithKeyPairs_Call{Call: _e.mock.On("WithKeyPairs", pairs)}
}
func (_c *BatchGetItemsBuilder_WithKeyPairs_Call) Run(run func(pairs [][]interface{})) *BatchGetItemsBuilder_WithKeyPairs_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].([][]interface{}))
})
return _c
}
func (_c *BatchGetItemsBuilder_WithKeyPairs_Call) Return(_a0 ddb.BatchGetItemsBuilder) *BatchGetItemsBuilder_WithKeyPairs_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *BatchGetItemsBuilder_WithKeyPairs_Call) RunAndReturn(run func([][]interface{}) ddb.BatchGetItemsBuilder) *BatchGetItemsBuilder_WithKeyPairs_Call {
_c.Call.Return(run)
return _c
}
// WithKeys provides a mock function with given fields: values
func (_m *BatchGetItemsBuilder) WithKeys(values ...interface{}) ddb.BatchGetItemsBuilder {
var _ca []interface{}
_ca = append(_ca, values...)
ret := _m.Called(_ca...)
var r0 ddb.BatchGetItemsBuilder
if rf, ok := ret.Get(0).(func(...interface{}) ddb.BatchGetItemsBuilder); ok {
r0 = rf(values...)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(ddb.BatchGetItemsBuilder)
}
}
return r0
}
// BatchGetItemsBuilder_WithKeys_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithKeys'
type BatchGetItemsBuilder_WithKeys_Call struct {
*mock.Call
}
// WithKeys is a helper method to define mock.On call
// - values ...interface{}
func (_e *BatchGetItemsBuilder_Expecter) WithKeys(values ...interface{}) *BatchGetItemsBuilder_WithKeys_Call {
return &BatchGetItemsBuilder_WithKeys_Call{Call: _e.mock.On("WithKeys",
append([]interface{}{}, values...)...)}
}
func (_c *BatchGetItemsBuilder_WithKeys_Call) Run(run func(values ...interface{})) *BatchGetItemsBuilder_WithKeys_Call {
_c.Call.Run(func(args mock.Arguments) {
variadicArgs := make([]interface{}, len(args)-0)
for i, a := range args[0:] {
if a != nil {
variadicArgs[i] = a.(interface{})
}
}
run(variadicArgs...)
})
return _c
}
func (_c *BatchGetItemsBuilder_WithKeys_Call) Return(_a0 ddb.BatchGetItemsBuilder) *BatchGetItemsBuilder_WithKeys_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *BatchGetItemsBuilder_WithKeys_Call) RunAndReturn(run func(...interface{}) ddb.BatchGetItemsBuilder) *BatchGetItemsBuilder_WithKeys_Call {
_c.Call.Return(run)
return _c
}
// WithProjection provides a mock function with given fields: projection
func (_m *BatchGetItemsBuilder) WithProjection(projection interface{}) ddb.BatchGetItemsBuilder {
ret := _m.Called(projection)
var r0 ddb.BatchGetItemsBuilder
if rf, ok := ret.Get(0).(func(interface{}) ddb.BatchGetItemsBuilder); ok {
r0 = rf(projection)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(ddb.BatchGetItemsBuilder)
}
}
return r0
}
// BatchGetItemsBuilder_WithProjection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithProjection'
type BatchGetItemsBuilder_WithProjection_Call struct {
*mock.Call
}
// WithProjection is a helper method to define mock.On call
// - projection interface{}
func (_e *BatchGetItemsBuilder_Expecter) WithProjection(projection interface{}) *BatchGetItemsBuilder_WithProjection_Call {
return &BatchGetItemsBuilder_WithProjection_Call{Call: _e.mock.On("WithProjection", projection)}
}
func (_c *BatchGetItemsBuilder_WithProjection_Call) Run(run func(projection interface{})) *BatchGetItemsBuilder_WithProjection_Call {
_c.Call.Run(func(args mock.Arguments) {
run(args[0].(interface{}))
})
return _c
}
func (_c *BatchGetItemsBuilder_WithProjection_Call) Return(_a0 ddb.BatchGetItemsBuilder) *BatchGetItemsBuilder_WithProjection_Call {
_c.Call.Return(_a0)
return _c
}
func (_c *BatchGetItemsBuilder_WithProjection_Call) RunAndReturn(run func(interface{}) ddb.BatchGetItemsBuilder) *BatchGetItemsBuilder_WithProjection_Call {
_c.Call.Return(run)
return _c
}
type mockConstructorTestingTNewBatchGetItemsBuilder interface {
mock.TestingT
Cleanup(func())
}
// NewBatchGetItemsBuilder creates a new instance of BatchGetItemsBuilder. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func NewBatchGetItemsBuilder(t mockConstructorTestingTNewBatchGetItemsBuilder) *BatchGetItemsBuilder {
mock := &BatchGetItemsBuilder{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}