forked from kyma-project/kyma
/
TokenCache.go
executable file
·42 lines (33 loc) · 943 Bytes
/
TokenCache.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
// Code generated by mockery v1.0.0. DO NOT EDIT.
package mocks
import mock "github.com/stretchr/testify/mock"
import time "time"
// TokenCache is an autogenerated mock type for the TokenCache type
type TokenCache struct {
mock.Mock
}
// Delete provides a mock function with given fields: token
func (_m *TokenCache) Delete(token string) {
_m.Called(token)
}
// Get provides a mock function with given fields: token
func (_m *TokenCache) Get(token string) (string, bool) {
ret := _m.Called(token)
var r0 string
if rf, ok := ret.Get(0).(func(string) string); ok {
r0 = rf(token)
} else {
r0 = ret.Get(0).(string)
}
var r1 bool
if rf, ok := ret.Get(1).(func(string) bool); ok {
r1 = rf(token)
} else {
r1 = ret.Get(1).(bool)
}
return r0, r1
}
// Put provides a mock function with given fields: token, data, ttl
func (_m *TokenCache) Put(token string, data string, ttl time.Duration) {
_m.Called(token, data, ttl)
}