-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmock_key_test.go
More file actions
39 lines (30 loc) · 758 Bytes
/
mock_key_test.go
File metadata and controls
39 lines (30 loc) · 758 Bytes
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
// 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"
// MockKey is an autogenerated mock type for the Key type
type MockKey struct {
mock.Mock
}
// Equals provides a mock function with given fields: key
func (_m *MockKey) Equals(key hashmap.Key) bool {
ret := _m.Called(key)
var r0 bool
if rf, ok := ret.Get(0).(func(hashmap.Key) bool); ok {
r0 = rf(key)
} else {
r0 = ret.Get(0).(bool)
}
return r0
}
// Hash provides a mock function with given fields:
func (_m *MockKey) Hash() int {
ret := _m.Called()
var r0 int
if rf, ok := ret.Get(0).(func() int); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(int)
}
return r0
}