local

package
v0.0.0-...-df5b3c9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockLFU

type MockLFU struct {
	mock.Mock
}

MockLFU is an autogenerated mock type for the LFU type

func NewMockLFU

func NewMockLFU(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockLFU

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) Del

func (_m *MockLFU) Del(key string)

Del provides a mock function with given fields: key

func (*MockLFU) EXPECT

func (_m *MockLFU) EXPECT() *MockLFU_Expecter

func (*MockLFU) Get

func (_m *MockLFU) Get(key string) (any, bool)

Get provides a mock function with given fields: key

func (*MockLFU) Set

func (_m *MockLFU) Set(_a0 *tinylfu.Item)

Set provides a mock function with given fields: _a0

type MockLFU_Del_Call

type MockLFU_Del_Call struct {
	*mock.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

type MockLFU_Get_Call struct {
	*mock.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

type MockLFU_Set_Call struct {
	*mock.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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL