mocks

package
v0.0.43 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	mock.Mock
}

Cache is an autogenerated mock type for the Cache type

func NewCache

func NewCache(t mockConstructorTestingTNewCache) *Cache

NewCache creates a new instance of Cache. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Cache) Delete

func (_m *Cache) Delete(_a0 *cache.Entry) error

Delete provides a mock function with given fields: _a0

func (*Cache) EXPECT

func (_m *Cache) EXPECT() *Cache_Expecter

func (*Cache) GetOrCreate

func (_m *Cache) GetOrCreate(_a0 cache.Identifier) (*cache.Entry, error)

GetOrCreate provides a mock function with given fields: _a0

func (*Cache) List

func (_m *Cache) List() ([]*cache.Entry, error)

List provides a mock function with given fields:

func (*Cache) Save

func (_m *Cache) Save(_a0 *cache.Entry) error

Save provides a mock function with given fields: _a0

type Cache_Delete_Call

type Cache_Delete_Call struct {
	*mock.Call
}

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

func (*Cache_Delete_Call) Return

func (_c *Cache_Delete_Call) Return(_a0 error) *Cache_Delete_Call

func (*Cache_Delete_Call) Run

func (_c *Cache_Delete_Call) Run(run func(_a0 *cache.Entry)) *Cache_Delete_Call

func (*Cache_Delete_Call) RunAndReturn

func (_c *Cache_Delete_Call) RunAndReturn(run func(*cache.Entry) error) *Cache_Delete_Call

type Cache_Expecter

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

func (*Cache_Expecter) Delete

func (_e *Cache_Expecter) Delete(_a0 interface{}) *Cache_Delete_Call

Delete is a helper method to define mock.On call

  • _a0 *cache.Entry

func (*Cache_Expecter) GetOrCreate

func (_e *Cache_Expecter) GetOrCreate(_a0 interface{}) *Cache_GetOrCreate_Call

GetOrCreate is a helper method to define mock.On call

  • _a0 cache.Identifier

func (*Cache_Expecter) List

func (_e *Cache_Expecter) List() *Cache_List_Call

List is a helper method to define mock.On call

func (*Cache_Expecter) Save

func (_e *Cache_Expecter) Save(_a0 interface{}) *Cache_Save_Call

Save is a helper method to define mock.On call

  • _a0 *cache.Entry

type Cache_GetOrCreate_Call

type Cache_GetOrCreate_Call struct {
	*mock.Call
}

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

func (*Cache_GetOrCreate_Call) Return

func (*Cache_GetOrCreate_Call) Run

func (*Cache_GetOrCreate_Call) RunAndReturn

type Cache_List_Call

type Cache_List_Call struct {
	*mock.Call
}

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

func (*Cache_List_Call) Return

func (_c *Cache_List_Call) Return(_a0 []*cache.Entry, _a1 error) *Cache_List_Call

func (*Cache_List_Call) Run

func (_c *Cache_List_Call) Run(run func()) *Cache_List_Call

func (*Cache_List_Call) RunAndReturn

func (_c *Cache_List_Call) RunAndReturn(run func() ([]*cache.Entry, error)) *Cache_List_Call

type Cache_Save_Call

type Cache_Save_Call struct {
	*mock.Call
}

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

func (*Cache_Save_Call) Return

func (_c *Cache_Save_Call) Return(_a0 error) *Cache_Save_Call

func (*Cache_Save_Call) Run

func (_c *Cache_Save_Call) Run(run func(_a0 *cache.Entry)) *Cache_Save_Call

func (*Cache_Save_Call) RunAndReturn

func (_c *Cache_Save_Call) RunAndReturn(run func(*cache.Entry) error) *Cache_Save_Call

Jump to

Keyboard shortcuts

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