-
Notifications
You must be signed in to change notification settings - Fork 672
/
mock_db.go
491 lines (422 loc) · 17.5 KB
/
mock_db.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
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
// Code generated by MockGen. DO NOT EDIT.
// Source: x/merkledb/db.go
//
// Generated by this command:
//
// mockgen -source=x/merkledb/db.go -destination=x/merkledb/mock_db.go -package=merkledb -exclude_interfaces=ChangeProofer,RangeProofer,Clearer,Prefetcher
//
// Package merkledb is a generated GoMock package.
package merkledb
import (
context "context"
reflect "reflect"
database "github.com/ava-labs/avalanchego/database"
ids "github.com/ava-labs/avalanchego/ids"
maybe "github.com/ava-labs/avalanchego/utils/maybe"
gomock "go.uber.org/mock/gomock"
)
// MockMerkleDB is a mock of MerkleDB interface.
type MockMerkleDB struct {
ctrl *gomock.Controller
recorder *MockMerkleDBMockRecorder
}
// MockMerkleDBMockRecorder is the mock recorder for MockMerkleDB.
type MockMerkleDBMockRecorder struct {
mock *MockMerkleDB
}
// NewMockMerkleDB creates a new mock instance.
func NewMockMerkleDB(ctrl *gomock.Controller) *MockMerkleDB {
mock := &MockMerkleDB{ctrl: ctrl}
mock.recorder = &MockMerkleDBMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockMerkleDB) EXPECT() *MockMerkleDBMockRecorder {
return m.recorder
}
// Clear mocks base method.
func (m *MockMerkleDB) Clear() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Clear")
ret0, _ := ret[0].(error)
return ret0
}
// Clear indicates an expected call of Clear.
func (mr *MockMerkleDBMockRecorder) Clear() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clear", reflect.TypeOf((*MockMerkleDB)(nil).Clear))
}
// Close mocks base method.
func (m *MockMerkleDB) Close() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Close")
ret0, _ := ret[0].(error)
return ret0
}
// Close indicates an expected call of Close.
func (mr *MockMerkleDBMockRecorder) Close() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockMerkleDB)(nil).Close))
}
// CommitChangeProof mocks base method.
func (m *MockMerkleDB) CommitChangeProof(ctx context.Context, proof *ChangeProof) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CommitChangeProof", ctx, proof)
ret0, _ := ret[0].(error)
return ret0
}
// CommitChangeProof indicates an expected call of CommitChangeProof.
func (mr *MockMerkleDBMockRecorder) CommitChangeProof(ctx, proof any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CommitChangeProof", reflect.TypeOf((*MockMerkleDB)(nil).CommitChangeProof), ctx, proof)
}
// CommitRangeProof mocks base method.
func (m *MockMerkleDB) CommitRangeProof(ctx context.Context, start, end maybe.Maybe[[]byte], proof *RangeProof) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CommitRangeProof", ctx, start, end, proof)
ret0, _ := ret[0].(error)
return ret0
}
// CommitRangeProof indicates an expected call of CommitRangeProof.
func (mr *MockMerkleDBMockRecorder) CommitRangeProof(ctx, start, end, proof any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CommitRangeProof", reflect.TypeOf((*MockMerkleDB)(nil).CommitRangeProof), ctx, start, end, proof)
}
// Compact mocks base method.
func (m *MockMerkleDB) Compact(start, limit []byte) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Compact", start, limit)
ret0, _ := ret[0].(error)
return ret0
}
// Compact indicates an expected call of Compact.
func (mr *MockMerkleDBMockRecorder) Compact(start, limit any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Compact", reflect.TypeOf((*MockMerkleDB)(nil).Compact), start, limit)
}
// Delete mocks base method.
func (m *MockMerkleDB) Delete(key []byte) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Delete", key)
ret0, _ := ret[0].(error)
return ret0
}
// Delete indicates an expected call of Delete.
func (mr *MockMerkleDBMockRecorder) Delete(key any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockMerkleDB)(nil).Delete), key)
}
// Get mocks base method.
func (m *MockMerkleDB) Get(key []byte) ([]byte, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Get", key)
ret0, _ := ret[0].([]byte)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Get indicates an expected call of Get.
func (mr *MockMerkleDBMockRecorder) Get(key any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockMerkleDB)(nil).Get), key)
}
// GetChangeProof mocks base method.
func (m *MockMerkleDB) GetChangeProof(ctx context.Context, startRootID, endRootID ids.ID, start, end maybe.Maybe[[]byte], maxLength int) (*ChangeProof, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetChangeProof", ctx, startRootID, endRootID, start, end, maxLength)
ret0, _ := ret[0].(*ChangeProof)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetChangeProof indicates an expected call of GetChangeProof.
func (mr *MockMerkleDBMockRecorder) GetChangeProof(ctx, startRootID, endRootID, start, end, maxLength any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChangeProof", reflect.TypeOf((*MockMerkleDB)(nil).GetChangeProof), ctx, startRootID, endRootID, start, end, maxLength)
}
// GetMerkleRoot mocks base method.
func (m *MockMerkleDB) GetMerkleRoot(ctx context.Context) (ids.ID, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetMerkleRoot", ctx)
ret0, _ := ret[0].(ids.ID)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetMerkleRoot indicates an expected call of GetMerkleRoot.
func (mr *MockMerkleDBMockRecorder) GetMerkleRoot(ctx any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMerkleRoot", reflect.TypeOf((*MockMerkleDB)(nil).GetMerkleRoot), ctx)
}
// GetProof mocks base method.
func (m *MockMerkleDB) GetProof(ctx context.Context, keyBytes []byte) (*Proof, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetProof", ctx, keyBytes)
ret0, _ := ret[0].(*Proof)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetProof indicates an expected call of GetProof.
func (mr *MockMerkleDBMockRecorder) GetProof(ctx, keyBytes any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProof", reflect.TypeOf((*MockMerkleDB)(nil).GetProof), ctx, keyBytes)
}
// GetRangeProof mocks base method.
func (m *MockMerkleDB) GetRangeProof(ctx context.Context, start, end maybe.Maybe[[]byte], maxLength int) (*RangeProof, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetRangeProof", ctx, start, end, maxLength)
ret0, _ := ret[0].(*RangeProof)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetRangeProof indicates an expected call of GetRangeProof.
func (mr *MockMerkleDBMockRecorder) GetRangeProof(ctx, start, end, maxLength any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRangeProof", reflect.TypeOf((*MockMerkleDB)(nil).GetRangeProof), ctx, start, end, maxLength)
}
// GetRangeProofAtRoot mocks base method.
func (m *MockMerkleDB) GetRangeProofAtRoot(ctx context.Context, rootID ids.ID, start, end maybe.Maybe[[]byte], maxLength int) (*RangeProof, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetRangeProofAtRoot", ctx, rootID, start, end, maxLength)
ret0, _ := ret[0].(*RangeProof)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetRangeProofAtRoot indicates an expected call of GetRangeProofAtRoot.
func (mr *MockMerkleDBMockRecorder) GetRangeProofAtRoot(ctx, rootID, start, end, maxLength any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRangeProofAtRoot", reflect.TypeOf((*MockMerkleDB)(nil).GetRangeProofAtRoot), ctx, rootID, start, end, maxLength)
}
// GetValue mocks base method.
func (m *MockMerkleDB) GetValue(ctx context.Context, key []byte) ([]byte, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetValue", ctx, key)
ret0, _ := ret[0].([]byte)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetValue indicates an expected call of GetValue.
func (mr *MockMerkleDBMockRecorder) GetValue(ctx, key any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetValue", reflect.TypeOf((*MockMerkleDB)(nil).GetValue), ctx, key)
}
// GetValues mocks base method.
func (m *MockMerkleDB) GetValues(ctx context.Context, keys [][]byte) ([][]byte, []error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetValues", ctx, keys)
ret0, _ := ret[0].([][]byte)
ret1, _ := ret[1].([]error)
return ret0, ret1
}
// GetValues indicates an expected call of GetValues.
func (mr *MockMerkleDBMockRecorder) GetValues(ctx, keys any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetValues", reflect.TypeOf((*MockMerkleDB)(nil).GetValues), ctx, keys)
}
// Has mocks base method.
func (m *MockMerkleDB) Has(key []byte) (bool, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Has", key)
ret0, _ := ret[0].(bool)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Has indicates an expected call of Has.
func (mr *MockMerkleDBMockRecorder) Has(key any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Has", reflect.TypeOf((*MockMerkleDB)(nil).Has), key)
}
// HealthCheck mocks base method.
func (m *MockMerkleDB) HealthCheck(arg0 context.Context) (any, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "HealthCheck", arg0)
ret0, _ := ret[0].(any)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// HealthCheck indicates an expected call of HealthCheck.
func (mr *MockMerkleDBMockRecorder) HealthCheck(arg0 any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HealthCheck", reflect.TypeOf((*MockMerkleDB)(nil).HealthCheck), arg0)
}
// NewBatch mocks base method.
func (m *MockMerkleDB) NewBatch() database.Batch {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewBatch")
ret0, _ := ret[0].(database.Batch)
return ret0
}
// NewBatch indicates an expected call of NewBatch.
func (mr *MockMerkleDBMockRecorder) NewBatch() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewBatch", reflect.TypeOf((*MockMerkleDB)(nil).NewBatch))
}
// NewIterator mocks base method.
func (m *MockMerkleDB) NewIterator() database.Iterator {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewIterator")
ret0, _ := ret[0].(database.Iterator)
return ret0
}
// NewIterator indicates an expected call of NewIterator.
func (mr *MockMerkleDBMockRecorder) NewIterator() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewIterator", reflect.TypeOf((*MockMerkleDB)(nil).NewIterator))
}
// NewIteratorWithPrefix mocks base method.
func (m *MockMerkleDB) NewIteratorWithPrefix(prefix []byte) database.Iterator {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewIteratorWithPrefix", prefix)
ret0, _ := ret[0].(database.Iterator)
return ret0
}
// NewIteratorWithPrefix indicates an expected call of NewIteratorWithPrefix.
func (mr *MockMerkleDBMockRecorder) NewIteratorWithPrefix(prefix any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewIteratorWithPrefix", reflect.TypeOf((*MockMerkleDB)(nil).NewIteratorWithPrefix), prefix)
}
// NewIteratorWithStart mocks base method.
func (m *MockMerkleDB) NewIteratorWithStart(start []byte) database.Iterator {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewIteratorWithStart", start)
ret0, _ := ret[0].(database.Iterator)
return ret0
}
// NewIteratorWithStart indicates an expected call of NewIteratorWithStart.
func (mr *MockMerkleDBMockRecorder) NewIteratorWithStart(start any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewIteratorWithStart", reflect.TypeOf((*MockMerkleDB)(nil).NewIteratorWithStart), start)
}
// NewIteratorWithStartAndPrefix mocks base method.
func (m *MockMerkleDB) NewIteratorWithStartAndPrefix(start, prefix []byte) database.Iterator {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewIteratorWithStartAndPrefix", start, prefix)
ret0, _ := ret[0].(database.Iterator)
return ret0
}
// NewIteratorWithStartAndPrefix indicates an expected call of NewIteratorWithStartAndPrefix.
func (mr *MockMerkleDBMockRecorder) NewIteratorWithStartAndPrefix(start, prefix any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewIteratorWithStartAndPrefix", reflect.TypeOf((*MockMerkleDB)(nil).NewIteratorWithStartAndPrefix), start, prefix)
}
// NewView mocks base method.
func (m *MockMerkleDB) NewView(ctx context.Context, changes ViewChanges) (View, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewView", ctx, changes)
ret0, _ := ret[0].(View)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// NewView indicates an expected call of NewView.
func (mr *MockMerkleDBMockRecorder) NewView(ctx, changes any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewView", reflect.TypeOf((*MockMerkleDB)(nil).NewView), ctx, changes)
}
// PrefetchPath mocks base method.
func (m *MockMerkleDB) PrefetchPath(key []byte) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PrefetchPath", key)
ret0, _ := ret[0].(error)
return ret0
}
// PrefetchPath indicates an expected call of PrefetchPath.
func (mr *MockMerkleDBMockRecorder) PrefetchPath(key any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrefetchPath", reflect.TypeOf((*MockMerkleDB)(nil).PrefetchPath), key)
}
// PrefetchPaths mocks base method.
func (m *MockMerkleDB) PrefetchPaths(keys [][]byte) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "PrefetchPaths", keys)
ret0, _ := ret[0].(error)
return ret0
}
// PrefetchPaths indicates an expected call of PrefetchPaths.
func (mr *MockMerkleDBMockRecorder) PrefetchPaths(keys any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrefetchPaths", reflect.TypeOf((*MockMerkleDB)(nil).PrefetchPaths), keys)
}
// Put mocks base method.
func (m *MockMerkleDB) Put(key, value []byte) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Put", key, value)
ret0, _ := ret[0].(error)
return ret0
}
// Put indicates an expected call of Put.
func (mr *MockMerkleDBMockRecorder) Put(key, value any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockMerkleDB)(nil).Put), key, value)
}
// VerifyChangeProof mocks base method.
func (m *MockMerkleDB) VerifyChangeProof(ctx context.Context, proof *ChangeProof, start, end maybe.Maybe[[]byte], expectedEndRootID ids.ID) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "VerifyChangeProof", ctx, proof, start, end, expectedEndRootID)
ret0, _ := ret[0].(error)
return ret0
}
// VerifyChangeProof indicates an expected call of VerifyChangeProof.
func (mr *MockMerkleDBMockRecorder) VerifyChangeProof(ctx, proof, start, end, expectedEndRootID any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VerifyChangeProof", reflect.TypeOf((*MockMerkleDB)(nil).VerifyChangeProof), ctx, proof, start, end, expectedEndRootID)
}
// getEditableNode mocks base method.
func (m *MockMerkleDB) getEditableNode(key Key, hasValue bool) (*node, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "getEditableNode", key, hasValue)
ret0, _ := ret[0].(*node)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// getEditableNode indicates an expected call of getEditableNode.
func (mr *MockMerkleDBMockRecorder) getEditableNode(key, hasValue any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "getEditableNode", reflect.TypeOf((*MockMerkleDB)(nil).getEditableNode), key, hasValue)
}
// getNode mocks base method.
func (m *MockMerkleDB) getNode(key Key, hasValue bool) (*node, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "getNode", key, hasValue)
ret0, _ := ret[0].(*node)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// getNode indicates an expected call of getNode.
func (mr *MockMerkleDBMockRecorder) getNode(key, hasValue any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "getNode", reflect.TypeOf((*MockMerkleDB)(nil).getNode), key, hasValue)
}
// getRoot mocks base method.
func (m *MockMerkleDB) getRoot() maybe.Maybe[*node] {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "getRoot")
ret0, _ := ret[0].(maybe.Maybe[*node])
return ret0
}
// getRoot indicates an expected call of getRoot.
func (mr *MockMerkleDBMockRecorder) getRoot() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "getRoot", reflect.TypeOf((*MockMerkleDB)(nil).getRoot))
}
// getTokenSize mocks base method.
func (m *MockMerkleDB) getTokenSize() int {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "getTokenSize")
ret0, _ := ret[0].(int)
return ret0
}
// getTokenSize indicates an expected call of getTokenSize.
func (mr *MockMerkleDBMockRecorder) getTokenSize() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "getTokenSize", reflect.TypeOf((*MockMerkleDB)(nil).getTokenSize))
}
// getValue mocks base method.
func (m *MockMerkleDB) getValue(key Key) ([]byte, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "getValue", key)
ret0, _ := ret[0].([]byte)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// getValue indicates an expected call of getValue.
func (mr *MockMerkleDBMockRecorder) getValue(key any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "getValue", reflect.TypeOf((*MockMerkleDB)(nil).getValue), key)
}