Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockLFU ¶
MockLFU is an autogenerated mock type for the LFU type
func NewMockLFU ¶
NewMockLFU creates a new instance of MockLFU. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockLFU) EXPECT ¶
func (_m *MockLFU) EXPECT() *MockLFU_Expecter
type MockLFU_Del_Call ¶
MockLFU_Del_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Del'
func (*MockLFU_Del_Call) Return ¶
func (_c *MockLFU_Del_Call) Return() *MockLFU_Del_Call
func (*MockLFU_Del_Call) Run ¶
func (_c *MockLFU_Del_Call) Run(run func(key string)) *MockLFU_Del_Call
func (*MockLFU_Del_Call) RunAndReturn ¶
func (_c *MockLFU_Del_Call) RunAndReturn(run func(string)) *MockLFU_Del_Call
type MockLFU_Expecter ¶
type MockLFU_Expecter struct {
// contains filtered or unexported fields
}
func (*MockLFU_Expecter) Del ¶
func (_e *MockLFU_Expecter) Del(key interface{}) *MockLFU_Del_Call
Del is a helper method to define mock.On call
- key string
func (*MockLFU_Expecter) Get ¶
func (_e *MockLFU_Expecter) Get(key interface{}) *MockLFU_Get_Call
Get is a helper method to define mock.On call
- key string
func (*MockLFU_Expecter) Set ¶
func (_e *MockLFU_Expecter) Set(_a0 interface{}) *MockLFU_Set_Call
Set is a helper method to define mock.On call
- _a0 *tinylfu.Item
type MockLFU_Get_Call ¶
MockLFU_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockLFU_Get_Call) Return ¶
func (_c *MockLFU_Get_Call) Return(_a0 any, _a1 bool) *MockLFU_Get_Call
func (*MockLFU_Get_Call) Run ¶
func (_c *MockLFU_Get_Call) Run(run func(key string)) *MockLFU_Get_Call
func (*MockLFU_Get_Call) RunAndReturn ¶
func (_c *MockLFU_Get_Call) RunAndReturn(run func(string) (any, bool)) *MockLFU_Get_Call
type MockLFU_Set_Call ¶
MockLFU_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'
func (*MockLFU_Set_Call) Return ¶
func (_c *MockLFU_Set_Call) Return() *MockLFU_Set_Call
func (*MockLFU_Set_Call) Run ¶
func (_c *MockLFU_Set_Call) Run(run func(_a0 *tinylfu.Item)) *MockLFU_Set_Call
func (*MockLFU_Set_Call) RunAndReturn ¶
func (_c *MockLFU_Set_Call) RunAndReturn(run func(*tinylfu.Item)) *MockLFU_Set_Call