mocks

package
v2.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: Apache-2.0, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoRefresh

type AutoRefresh struct {
	mock.Mock
}

AutoRefresh is an autogenerated mock type for the AutoRefresh type

func NewAutoRefresh added in v2.0.10

func NewAutoRefresh(t interface {
	mock.TestingT
	Cleanup(func())
}) *AutoRefresh

NewAutoRefresh creates a new instance of AutoRefresh. 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 (*AutoRefresh) DeleteDelayed

func (_mock *AutoRefresh) DeleteDelayed(id autorefreshcache.ItemID) error

DeleteDelayed provides a mock function for the type AutoRefresh

func (*AutoRefresh) EXPECT added in v2.0.10

func (_m *AutoRefresh) EXPECT() *AutoRefresh_Expecter

func (*AutoRefresh) Get

Get provides a mock function for the type AutoRefresh

func (*AutoRefresh) GetOrCreate

GetOrCreate provides a mock function for the type AutoRefresh

func (*AutoRefresh) Start

func (_mock *AutoRefresh) Start(ctx context.Context) error

Start provides a mock function for the type AutoRefresh

type AutoRefreshWithUpdate

type AutoRefreshWithUpdate struct {
	mock.Mock
}

AutoRefreshWithUpdate is an autogenerated mock type for the AutoRefreshWithUpdate type

func NewAutoRefreshWithUpdate added in v2.0.10

func NewAutoRefreshWithUpdate(t interface {
	mock.TestingT
	Cleanup(func())
}) *AutoRefreshWithUpdate

NewAutoRefreshWithUpdate creates a new instance of AutoRefreshWithUpdate. 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 (*AutoRefreshWithUpdate) DeleteDelayed

func (_mock *AutoRefreshWithUpdate) DeleteDelayed(id autorefreshcache.ItemID) error

DeleteDelayed provides a mock function for the type AutoRefreshWithUpdate

func (*AutoRefreshWithUpdate) EXPECT added in v2.0.10

func (*AutoRefreshWithUpdate) Get

Get provides a mock function for the type AutoRefreshWithUpdate

func (*AutoRefreshWithUpdate) GetOrCreate

GetOrCreate provides a mock function for the type AutoRefreshWithUpdate

func (*AutoRefreshWithUpdate) Start

func (_mock *AutoRefreshWithUpdate) Start(ctx context.Context) error

Start provides a mock function for the type AutoRefreshWithUpdate

func (*AutoRefreshWithUpdate) Update

Update provides a mock function for the type AutoRefreshWithUpdate

type AutoRefreshWithUpdate_DeleteDelayed_Call added in v2.0.10

type AutoRefreshWithUpdate_DeleteDelayed_Call struct {
	*mock.Call
}

AutoRefreshWithUpdate_DeleteDelayed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteDelayed'

func (*AutoRefreshWithUpdate_DeleteDelayed_Call) Return added in v2.0.10

func (*AutoRefreshWithUpdate_DeleteDelayed_Call) Run added in v2.0.10

func (*AutoRefreshWithUpdate_DeleteDelayed_Call) RunAndReturn added in v2.0.10

type AutoRefreshWithUpdate_Expecter added in v2.0.10

type AutoRefreshWithUpdate_Expecter struct {
	// contains filtered or unexported fields
}

func (*AutoRefreshWithUpdate_Expecter) DeleteDelayed added in v2.0.10

DeleteDelayed is a helper method to define mock.On call

  • id autorefreshcache.ItemID

func (*AutoRefreshWithUpdate_Expecter) Get added in v2.0.10

Get is a helper method to define mock.On call

  • id autorefreshcache.ItemID

func (*AutoRefreshWithUpdate_Expecter) GetOrCreate added in v2.0.10

func (_e *AutoRefreshWithUpdate_Expecter) GetOrCreate(id interface{}, item interface{}) *AutoRefreshWithUpdate_GetOrCreate_Call

GetOrCreate is a helper method to define mock.On call

  • id autorefreshcache.ItemID
  • item autorefreshcache.Item

func (*AutoRefreshWithUpdate_Expecter) Start added in v2.0.10

Start is a helper method to define mock.On call

  • ctx context.Context

func (*AutoRefreshWithUpdate_Expecter) Update added in v2.0.10

func (_e *AutoRefreshWithUpdate_Expecter) Update(id interface{}, item interface{}) *AutoRefreshWithUpdate_Update_Call

Update is a helper method to define mock.On call

  • id autorefreshcache.ItemID
  • item autorefreshcache.Item

type AutoRefreshWithUpdate_GetOrCreate_Call added in v2.0.10

type AutoRefreshWithUpdate_GetOrCreate_Call struct {
	*mock.Call
}

AutoRefreshWithUpdate_GetOrCreate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrCreate'

func (*AutoRefreshWithUpdate_GetOrCreate_Call) Return added in v2.0.10

func (*AutoRefreshWithUpdate_GetOrCreate_Call) Run added in v2.0.10

func (*AutoRefreshWithUpdate_GetOrCreate_Call) RunAndReturn added in v2.0.10

type AutoRefreshWithUpdate_Get_Call added in v2.0.10

type AutoRefreshWithUpdate_Get_Call struct {
	*mock.Call
}

AutoRefreshWithUpdate_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*AutoRefreshWithUpdate_Get_Call) Return added in v2.0.10

func (*AutoRefreshWithUpdate_Get_Call) Run added in v2.0.10

func (*AutoRefreshWithUpdate_Get_Call) RunAndReturn added in v2.0.10

type AutoRefreshWithUpdate_Start_Call added in v2.0.10

type AutoRefreshWithUpdate_Start_Call struct {
	*mock.Call
}

AutoRefreshWithUpdate_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'

func (*AutoRefreshWithUpdate_Start_Call) Return added in v2.0.10

func (*AutoRefreshWithUpdate_Start_Call) Run added in v2.0.10

func (*AutoRefreshWithUpdate_Start_Call) RunAndReturn added in v2.0.10

type AutoRefreshWithUpdate_Update_Call added in v2.0.10

type AutoRefreshWithUpdate_Update_Call struct {
	*mock.Call
}

AutoRefreshWithUpdate_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*AutoRefreshWithUpdate_Update_Call) Return added in v2.0.10

func (*AutoRefreshWithUpdate_Update_Call) Run added in v2.0.10

func (*AutoRefreshWithUpdate_Update_Call) RunAndReturn added in v2.0.10

type AutoRefresh_DeleteDelayed_Call added in v2.0.10

type AutoRefresh_DeleteDelayed_Call struct {
	*mock.Call
}

AutoRefresh_DeleteDelayed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteDelayed'

func (*AutoRefresh_DeleteDelayed_Call) Return added in v2.0.10

func (*AutoRefresh_DeleteDelayed_Call) Run added in v2.0.10

func (*AutoRefresh_DeleteDelayed_Call) RunAndReturn added in v2.0.10

type AutoRefresh_Expecter added in v2.0.10

type AutoRefresh_Expecter struct {
	// contains filtered or unexported fields
}

func (*AutoRefresh_Expecter) DeleteDelayed added in v2.0.10

func (_e *AutoRefresh_Expecter) DeleteDelayed(id interface{}) *AutoRefresh_DeleteDelayed_Call

DeleteDelayed is a helper method to define mock.On call

  • id autorefreshcache.ItemID

func (*AutoRefresh_Expecter) Get added in v2.0.10

func (_e *AutoRefresh_Expecter) Get(id interface{}) *AutoRefresh_Get_Call

Get is a helper method to define mock.On call

  • id autorefreshcache.ItemID

func (*AutoRefresh_Expecter) GetOrCreate added in v2.0.10

func (_e *AutoRefresh_Expecter) GetOrCreate(id interface{}, item interface{}) *AutoRefresh_GetOrCreate_Call

GetOrCreate is a helper method to define mock.On call

  • id autorefreshcache.ItemID
  • item autorefreshcache.Item

func (*AutoRefresh_Expecter) Start added in v2.0.10

func (_e *AutoRefresh_Expecter) Start(ctx interface{}) *AutoRefresh_Start_Call

Start is a helper method to define mock.On call

  • ctx context.Context

type AutoRefresh_GetOrCreate_Call added in v2.0.10

type AutoRefresh_GetOrCreate_Call struct {
	*mock.Call
}

AutoRefresh_GetOrCreate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrCreate'

func (*AutoRefresh_GetOrCreate_Call) Return added in v2.0.10

func (*AutoRefresh_GetOrCreate_Call) Run added in v2.0.10

func (*AutoRefresh_GetOrCreate_Call) RunAndReturn added in v2.0.10

type AutoRefresh_Get_Call added in v2.0.10

type AutoRefresh_Get_Call struct {
	*mock.Call
}

AutoRefresh_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*AutoRefresh_Get_Call) Return added in v2.0.10

func (*AutoRefresh_Get_Call) Run added in v2.0.10

func (*AutoRefresh_Get_Call) RunAndReturn added in v2.0.10

type AutoRefresh_Start_Call added in v2.0.10

type AutoRefresh_Start_Call struct {
	*mock.Call
}

AutoRefresh_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'

func (*AutoRefresh_Start_Call) Return added in v2.0.10

func (*AutoRefresh_Start_Call) Run added in v2.0.10

func (*AutoRefresh_Start_Call) RunAndReturn added in v2.0.10

func (_c *AutoRefresh_Start_Call) RunAndReturn(run func(ctx context.Context) error) *AutoRefresh_Start_Call

type Item

type Item struct {
	mock.Mock
}

Item is an autogenerated mock type for the Item type

func NewItem added in v2.0.10

func NewItem(t interface {
	mock.TestingT
	Cleanup(func())
}) *Item

NewItem creates a new instance of Item. 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 (*Item) EXPECT added in v2.0.10

func (_m *Item) EXPECT() *Item_Expecter

func (*Item) IsTerminal

func (_mock *Item) IsTerminal() bool

IsTerminal provides a mock function for the type Item

type ItemWrapper

type ItemWrapper struct {
	mock.Mock
}

ItemWrapper is an autogenerated mock type for the ItemWrapper type

func NewItemWrapper added in v2.0.10

func NewItemWrapper(t interface {
	mock.TestingT
	Cleanup(func())
}) *ItemWrapper

NewItemWrapper creates a new instance of ItemWrapper. 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 (*ItemWrapper) EXPECT added in v2.0.10

func (_m *ItemWrapper) EXPECT() *ItemWrapper_Expecter

func (*ItemWrapper) GetID

func (_mock *ItemWrapper) GetID() autorefreshcache.ItemID

GetID provides a mock function for the type ItemWrapper

func (*ItemWrapper) GetItem

func (_mock *ItemWrapper) GetItem() autorefreshcache.Item

GetItem provides a mock function for the type ItemWrapper

type ItemWrapper_Expecter added in v2.0.10

type ItemWrapper_Expecter struct {
	// contains filtered or unexported fields
}

func (*ItemWrapper_Expecter) GetID added in v2.0.10

GetID is a helper method to define mock.On call

func (*ItemWrapper_Expecter) GetItem added in v2.0.10

GetItem is a helper method to define mock.On call

type ItemWrapper_GetID_Call added in v2.0.10

type ItemWrapper_GetID_Call struct {
	*mock.Call
}

ItemWrapper_GetID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetID'

func (*ItemWrapper_GetID_Call) Return added in v2.0.10

func (*ItemWrapper_GetID_Call) Run added in v2.0.10

func (_c *ItemWrapper_GetID_Call) Run(run func()) *ItemWrapper_GetID_Call

func (*ItemWrapper_GetID_Call) RunAndReturn added in v2.0.10

type ItemWrapper_GetItem_Call added in v2.0.10

type ItemWrapper_GetItem_Call struct {
	*mock.Call
}

ItemWrapper_GetItem_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetItem'

func (*ItemWrapper_GetItem_Call) Return added in v2.0.10

func (*ItemWrapper_GetItem_Call) Run added in v2.0.10

func (*ItemWrapper_GetItem_Call) RunAndReturn added in v2.0.10

type Item_Expecter added in v2.0.10

type Item_Expecter struct {
	// contains filtered or unexported fields
}

func (*Item_Expecter) IsTerminal added in v2.0.10

func (_e *Item_Expecter) IsTerminal() *Item_IsTerminal_Call

IsTerminal is a helper method to define mock.On call

type Item_IsTerminal_Call added in v2.0.10

type Item_IsTerminal_Call struct {
	*mock.Call
}

Item_IsTerminal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsTerminal'

func (*Item_IsTerminal_Call) Return added in v2.0.10

func (*Item_IsTerminal_Call) Run added in v2.0.10

func (_c *Item_IsTerminal_Call) Run(run func()) *Item_IsTerminal_Call

func (*Item_IsTerminal_Call) RunAndReturn added in v2.0.10

func (_c *Item_IsTerminal_Call) RunAndReturn(run func() bool) *Item_IsTerminal_Call

Jump to

Keyboard shortcuts

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