Documentation
¶
Overview ¶
Package timedcache is a generated GoMock package.
Index ¶
- type MockTimedCache
- func (m *MockTimedCache) Add(arg0, arg1 any) error
- func (m *MockTimedCache) Count() int
- func (m *MockTimedCache) Delete(arg0 any) (any, bool)
- func (m *MockTimedCache) EXPECT() *MockTimedCacheMockRecorder
- func (m *MockTimedCache) Expired() bool
- func (m *MockTimedCache) Flush()
- func (m *MockTimedCache) Get(arg0 any) (any, bool)
- func (m *MockTimedCache) Keys() []any
- func (m *MockTimedCache) LastUpdated() time.Time
- func (m *MockTimedCache) OnEvicted(arg0 timedcache.OnEvictFn)
- func (m *MockTimedCache) Replace(arg0, arg1 any) error
- func (m *MockTimedCache) Set(arg0, arg1 any)
- type MockTimedCacheMockRecorder
- func (mr *MockTimedCacheMockRecorder) Add(arg0, arg1 any) *gomock.Call
- func (mr *MockTimedCacheMockRecorder) Count() *gomock.Call
- func (mr *MockTimedCacheMockRecorder) Delete(arg0 any) *gomock.Call
- func (mr *MockTimedCacheMockRecorder) Expired() *gomock.Call
- func (mr *MockTimedCacheMockRecorder) Flush() *gomock.Call
- func (mr *MockTimedCacheMockRecorder) Get(arg0 any) *gomock.Call
- func (mr *MockTimedCacheMockRecorder) Keys() *gomock.Call
- func (mr *MockTimedCacheMockRecorder) LastUpdated() *gomock.Call
- func (mr *MockTimedCacheMockRecorder) OnEvicted(arg0 any) *gomock.Call
- func (mr *MockTimedCacheMockRecorder) Replace(arg0, arg1 any) *gomock.Call
- func (mr *MockTimedCacheMockRecorder) Set(arg0, arg1 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTimedCache ¶
type MockTimedCache struct {
// contains filtered or unexported fields
}
MockTimedCache is a mock of TimedCache interface.
func NewMockTimedCache ¶
func NewMockTimedCache(ctrl *gomock.Controller) *MockTimedCache
NewMockTimedCache creates a new mock instance.
func (*MockTimedCache) Add ¶
func (m *MockTimedCache) Add(arg0, arg1 any) error
Add mocks base method.
func (*MockTimedCache) Delete ¶
func (m *MockTimedCache) Delete(arg0 any) (any, bool)
Delete mocks base method.
func (*MockTimedCache) EXPECT ¶
func (m *MockTimedCache) EXPECT() *MockTimedCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTimedCache) Get ¶
func (m *MockTimedCache) Get(arg0 any) (any, bool)
Get mocks base method.
func (*MockTimedCache) Keys ¶ added in v1.0.5
func (m *MockTimedCache) Keys() []any
Keys mocks base method.
func (*MockTimedCache) LastUpdated ¶
func (m *MockTimedCache) LastUpdated() time.Time
LastUpdated mocks base method.
func (*MockTimedCache) OnEvicted ¶
func (m *MockTimedCache) OnEvicted(arg0 timedcache.OnEvictFn)
OnEvicted mocks base method.
func (*MockTimedCache) Replace ¶
func (m *MockTimedCache) Replace(arg0, arg1 any) error
Replace mocks base method.
type MockTimedCacheMockRecorder ¶
type MockTimedCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockTimedCacheMockRecorder is the mock recorder for MockTimedCache.
func (*MockTimedCacheMockRecorder) Add ¶
func (mr *MockTimedCacheMockRecorder) Add(arg0, arg1 any) *gomock.Call
Add indicates an expected call of Add.
func (*MockTimedCacheMockRecorder) Count ¶
func (mr *MockTimedCacheMockRecorder) Count() *gomock.Call
Count indicates an expected call of Count.
func (*MockTimedCacheMockRecorder) Delete ¶
func (mr *MockTimedCacheMockRecorder) Delete(arg0 any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockTimedCacheMockRecorder) Expired ¶
func (mr *MockTimedCacheMockRecorder) Expired() *gomock.Call
Expired indicates an expected call of Expired.
func (*MockTimedCacheMockRecorder) Flush ¶
func (mr *MockTimedCacheMockRecorder) Flush() *gomock.Call
Flush indicates an expected call of Flush.
func (*MockTimedCacheMockRecorder) Get ¶
func (mr *MockTimedCacheMockRecorder) Get(arg0 any) *gomock.Call
Get indicates an expected call of Get.
func (*MockTimedCacheMockRecorder) Keys ¶ added in v1.0.5
func (mr *MockTimedCacheMockRecorder) Keys() *gomock.Call
Keys indicates an expected call of Keys.
func (*MockTimedCacheMockRecorder) LastUpdated ¶
func (mr *MockTimedCacheMockRecorder) LastUpdated() *gomock.Call
LastUpdated indicates an expected call of LastUpdated.
func (*MockTimedCacheMockRecorder) OnEvicted ¶
func (mr *MockTimedCacheMockRecorder) OnEvicted(arg0 any) *gomock.Call
OnEvicted indicates an expected call of OnEvicted.