2022-01-26 01:23:18 -08:00
|
|
|
package mock
|
2021-09-23 13:57:38 -07:00
|
|
|
|
|
|
|
import mock "github.com/stretchr/testify/mock"
|
|
|
|
|
|
|
|
// MockedCache is an autogenerated mock type for the cache type
|
|
|
|
type MockedCache struct {
|
|
|
|
mock.Mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// close provides a mock function with given fields:
|
2022-01-23 12:37:51 -08:00
|
|
|
func (_m *MockedCache) Close() {
|
2021-09-23 13:57:38 -07:00
|
|
|
_m.Called()
|
|
|
|
}
|
|
|
|
|
|
|
|
// get provides a mock function with given fields: key
|
2022-01-23 12:37:51 -08:00
|
|
|
func (_m *MockedCache) Get(key string) (string, bool) {
|
2021-09-23 13:57:38 -07:00
|
|
|
ret := _m.Called(key)
|
|
|
|
|
|
|
|
var r0 string
|
|
|
|
if rf, ok := ret.Get(0).(func(string) string); ok {
|
|
|
|
r0 = rf(key)
|
|
|
|
} else {
|
|
|
|
r0 = ret.Get(0).(string)
|
|
|
|
}
|
|
|
|
|
|
|
|
var r1 bool
|
|
|
|
if rf, ok := ret.Get(1).(func(string) bool); ok {
|
|
|
|
r1 = rf(key)
|
|
|
|
} else {
|
|
|
|
r1 = ret.Get(1).(bool)
|
|
|
|
}
|
|
|
|
|
|
|
|
return r0, r1
|
|
|
|
}
|
|
|
|
|
|
|
|
// init provides a mock function with given fields: home
|
2022-01-23 12:37:51 -08:00
|
|
|
func (_m *MockedCache) Init(home string) {
|
2021-09-23 13:57:38 -07:00
|
|
|
_m.Called(home)
|
|
|
|
}
|
|
|
|
|
|
|
|
// set provides a mock function with given fields: key, value, ttl
|
2022-01-23 12:37:51 -08:00
|
|
|
func (_m *MockedCache) Set(key, value string, ttl int) {
|
2021-09-23 13:57:38 -07:00
|
|
|
_m.Called(key, value, ttl)
|
|
|
|
}
|