-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmock_storage_test.go
More file actions
58 lines (46 loc) · 1.28 KB
/
mock_storage_test.go
File metadata and controls
58 lines (46 loc) · 1.28 KB
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
// Code generated by mockery v1.0.0. DO NOT EDIT.
package cache
import hashmap "github.com/thewizardplusplus/go-hashmap"
import mock "github.com/stretchr/testify/mock"
// MockStorage is an autogenerated mock type for the Storage type
type MockStorage struct {
mock.Mock
}
// Delete provides a mock function with given fields: key
func (_m *MockStorage) Delete(key hashmap.Key) {
_m.Called(key)
}
// Get provides a mock function with given fields: key
func (_m *MockStorage) Get(key hashmap.Key) (interface{}, bool) {
ret := _m.Called(key)
var r0 interface{}
if rf, ok := ret.Get(0).(func(hashmap.Key) interface{}); ok {
r0 = rf(key)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(interface{})
}
}
var r1 bool
if rf, ok := ret.Get(1).(func(hashmap.Key) bool); ok {
r1 = rf(key)
} else {
r1 = ret.Get(1).(bool)
}
return r0, r1
}
// Iterate provides a mock function with given fields: handler
func (_m *MockStorage) Iterate(handler hashmap.Handler) bool {
ret := _m.Called(handler)
var r0 bool
if rf, ok := ret.Get(0).(func(hashmap.Handler) bool); ok {
r0 = rf(handler)
} else {
r0 = ret.Get(0).(bool)
}
return r0
}
// Set provides a mock function with given fields: key, value
func (_m *MockStorage) Set(key hashmap.Key, value interface{}) {
_m.Called(key, value)
}