Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: ../ttllru.go
Generated by this command:
mockgen -destination ttllru_mock.go -package mock_ttllru -source ../ttllru.go Cacher PeekingCacher
Package mock_ttllru is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCacher ¶ added in v0.5.0
type MockCacher struct {
// contains filtered or unexported fields
}
MockCacher is a mock of Cacher interface.
func NewMockCacher ¶ added in v0.5.0
func NewMockCacher(ctrl *gomock.Controller) *MockCacher
NewMockCacher creates a new mock instance.
func (*MockCacher) Add ¶ added in v0.5.0
func (m *MockCacher) Add(key, value any) bool
Add mocks base method.
func (*MockCacher) EXPECT ¶ added in v0.5.0
func (m *MockCacher) EXPECT() *MockCacherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCacher) Get ¶ added in v0.5.0
func (m *MockCacher) Get(key any) (any, bool)
Get mocks base method.
func (*MockCacher) Remove ¶ added in v0.5.0
func (m *MockCacher) Remove(key any) bool
Remove mocks base method.
type MockCacherMockRecorder ¶ added in v0.5.0
type MockCacherMockRecorder struct {
// contains filtered or unexported fields
}
MockCacherMockRecorder is the mock recorder for MockCacher.
func (*MockCacherMockRecorder) Add ¶ added in v0.5.0
func (mr *MockCacherMockRecorder) Add(key, value any) *gomock.Call
Add indicates an expected call of Add.
type MockPeekingCacher ¶ added in v0.5.0
type MockPeekingCacher struct {
// contains filtered or unexported fields
}
MockPeekingCacher is a mock of PeekingCacher interface.
func NewMockPeekingCacher ¶ added in v0.5.0
func NewMockPeekingCacher(ctrl *gomock.Controller) *MockPeekingCacher
NewMockPeekingCacher creates a new mock instance.
func (*MockPeekingCacher) Add ¶ added in v0.5.0
func (m *MockPeekingCacher) Add(key, value any) bool
Add mocks base method.
func (*MockPeekingCacher) EXPECT ¶ added in v0.5.0
func (m *MockPeekingCacher) EXPECT() *MockPeekingCacherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPeekingCacher) Get ¶ added in v0.5.0
func (m *MockPeekingCacher) Get(key any) (any, bool)
Get mocks base method.
func (*MockPeekingCacher) Remove ¶ added in v0.5.0
func (m *MockPeekingCacher) Remove(key any) bool
Remove mocks base method.
type MockPeekingCacherMockRecorder ¶ added in v0.5.0
type MockPeekingCacherMockRecorder struct {
// contains filtered or unexported fields
}
MockPeekingCacherMockRecorder is the mock recorder for MockPeekingCacher.
func (*MockPeekingCacherMockRecorder) Add ¶ added in v0.5.0
func (mr *MockPeekingCacherMockRecorder) Add(key, value any) *gomock.Call
Add indicates an expected call of Add.
func (*MockPeekingCacherMockRecorder) Get ¶ added in v0.5.0
func (mr *MockPeekingCacherMockRecorder) Get(key any) *gomock.Call
Get indicates an expected call of Get.