mocks

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: 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 (*AutoRefresh) DeleteDelayed

func (_m *AutoRefresh) DeleteDelayed(id string) error

DeleteDelayed provides a mock function with given fields: id

func (*AutoRefresh) Get

func (_m *AutoRefresh) Get(id string) (cache.Item, error)

Get provides a mock function with given fields: id

func (*AutoRefresh) GetOrCreate

func (_m *AutoRefresh) GetOrCreate(id string, item cache.Item) (cache.Item, error)

GetOrCreate provides a mock function with given fields: id, item

func (*AutoRefresh) OnDeleteDelayed

func (_m *AutoRefresh) OnDeleteDelayed(id string) *AutoRefresh_DeleteDelayed

func (*AutoRefresh) OnDeleteDelayedMatch

func (_m *AutoRefresh) OnDeleteDelayedMatch(matchers ...interface{}) *AutoRefresh_DeleteDelayed

func (*AutoRefresh) OnGet

func (_m *AutoRefresh) OnGet(id string) *AutoRefresh_Get

func (*AutoRefresh) OnGetMatch

func (_m *AutoRefresh) OnGetMatch(matchers ...interface{}) *AutoRefresh_Get

func (*AutoRefresh) OnGetOrCreate

func (_m *AutoRefresh) OnGetOrCreate(id string, item cache.Item) *AutoRefresh_GetOrCreate

func (*AutoRefresh) OnGetOrCreateMatch

func (_m *AutoRefresh) OnGetOrCreateMatch(matchers ...interface{}) *AutoRefresh_GetOrCreate

func (*AutoRefresh) OnStart

func (_m *AutoRefresh) OnStart(ctx context.Context) *AutoRefresh_Start

func (*AutoRefresh) OnStartMatch

func (_m *AutoRefresh) OnStartMatch(matchers ...interface{}) *AutoRefresh_Start

func (*AutoRefresh) Start

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

Start provides a mock function with given fields: ctx

type AutoRefresh_DeleteDelayed

type AutoRefresh_DeleteDelayed struct {
	*mock.Call
}

func (AutoRefresh_DeleteDelayed) Return

type AutoRefresh_Get

type AutoRefresh_Get struct {
	*mock.Call
}

func (AutoRefresh_Get) Return

func (_m AutoRefresh_Get) Return(_a0 cache.Item, _a1 error) *AutoRefresh_Get

type AutoRefresh_GetOrCreate

type AutoRefresh_GetOrCreate struct {
	*mock.Call
}

func (AutoRefresh_GetOrCreate) Return

type AutoRefresh_Start

type AutoRefresh_Start struct {
	*mock.Call
}

func (AutoRefresh_Start) Return

func (_m AutoRefresh_Start) Return(_a0 error) *AutoRefresh_Start

type Item

type Item struct {
	mock.Mock
}

Item is an autogenerated mock type for the Item type

func (*Item) IsTerminal added in v1.12.0

func (_m *Item) IsTerminal() bool

IsTerminal provides a mock function with given fields:

func (*Item) OnIsTerminal added in v1.12.0

func (_m *Item) OnIsTerminal() *Item_IsTerminal

func (*Item) OnIsTerminalMatch added in v1.12.0

func (_m *Item) OnIsTerminalMatch(matchers ...interface{}) *Item_IsTerminal

type ItemWrapper

type ItemWrapper struct {
	mock.Mock
}

ItemWrapper is an autogenerated mock type for the ItemWrapper type

func (*ItemWrapper) GetID

func (_m *ItemWrapper) GetID() string

GetID provides a mock function with given fields:

func (*ItemWrapper) GetItem

func (_m *ItemWrapper) GetItem() cache.Item

GetItem provides a mock function with given fields:

func (*ItemWrapper) OnGetID

func (_m *ItemWrapper) OnGetID() *ItemWrapper_GetID

func (*ItemWrapper) OnGetIDMatch

func (_m *ItemWrapper) OnGetIDMatch(matchers ...interface{}) *ItemWrapper_GetID

func (*ItemWrapper) OnGetItem

func (_m *ItemWrapper) OnGetItem() *ItemWrapper_GetItem

func (*ItemWrapper) OnGetItemMatch

func (_m *ItemWrapper) OnGetItemMatch(matchers ...interface{}) *ItemWrapper_GetItem

type ItemWrapper_GetID

type ItemWrapper_GetID struct {
	*mock.Call
}

func (ItemWrapper_GetID) Return

func (_m ItemWrapper_GetID) Return(_a0 string) *ItemWrapper_GetID

type ItemWrapper_GetItem

type ItemWrapper_GetItem struct {
	*mock.Call
}

func (ItemWrapper_GetItem) Return

type Item_IsTerminal added in v1.12.0

type Item_IsTerminal struct {
	*mock.Call
}

func (Item_IsTerminal) Return added in v1.12.0

func (_m Item_IsTerminal) Return(_a0 bool) *Item_IsTerminal

Jump to

Keyboard shortcuts

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