github.com/haalcala/mattermost-server-change-repo/v5@v5.33.2/store/storetest/mocks/ObjectCache.go (about) 1 // Code generated by mockery v1.0.0. DO NOT EDIT. 2 3 // Regenerate this file using `make store-mocks`. 4 5 package mocks 6 7 import ( 8 mock "github.com/stretchr/testify/mock" 9 ) 10 11 // ObjectCache is an autogenerated mock type for the ObjectCache type 12 type ObjectCache struct { 13 mock.Mock 14 } 15 16 // AddWithDefaultExpires provides a mock function with given fields: key, value 17 func (_m *ObjectCache) AddWithDefaultExpires(key interface{}, value interface{}) { 18 _m.Called(key, value) 19 } 20 21 // AddWithExpiresInSecs provides a mock function with given fields: key, value, expireAtSecs 22 func (_m *ObjectCache) AddWithExpiresInSecs(key interface{}, value interface{}, expireAtSecs int64) { 23 _m.Called(key, value, expireAtSecs) 24 } 25 26 // Get provides a mock function with given fields: key 27 func (_m *ObjectCache) Get(key interface{}) (interface{}, bool) { 28 ret := _m.Called(key) 29 30 var r0 interface{} 31 if rf, ok := ret.Get(0).(func(interface{}) interface{}); ok { 32 r0 = rf(key) 33 } else { 34 if ret.Get(0) != nil { 35 r0 = ret.Get(0).(interface{}) 36 } 37 } 38 39 var r1 bool 40 if rf, ok := ret.Get(1).(func(interface{}) bool); ok { 41 r1 = rf(key) 42 } else { 43 r1 = ret.Get(1).(bool) 44 } 45 46 return r0, r1 47 } 48 49 // GetInvalidateClusterEvent provides a mock function with given fields: 50 func (_m *ObjectCache) GetInvalidateClusterEvent() string { 51 ret := _m.Called() 52 53 var r0 string 54 if rf, ok := ret.Get(0).(func() string); ok { 55 r0 = rf() 56 } else { 57 r0 = ret.Get(0).(string) 58 } 59 60 return r0 61 } 62 63 // Len provides a mock function with given fields: 64 func (_m *ObjectCache) Len() int { 65 ret := _m.Called() 66 67 var r0 int 68 if rf, ok := ret.Get(0).(func() int); ok { 69 r0 = rf() 70 } else { 71 r0 = ret.Get(0).(int) 72 } 73 74 return r0 75 } 76 77 // Name provides a mock function with given fields: 78 func (_m *ObjectCache) Name() string { 79 ret := _m.Called() 80 81 var r0 string 82 if rf, ok := ret.Get(0).(func() string); ok { 83 r0 = rf() 84 } else { 85 r0 = ret.Get(0).(string) 86 } 87 88 return r0 89 } 90 91 // Purge provides a mock function with given fields: 92 func (_m *ObjectCache) Purge() { 93 _m.Called() 94 } 95 96 // Remove provides a mock function with given fields: key 97 func (_m *ObjectCache) Remove(key interface{}) { 98 _m.Called(key) 99 }