Documentation ¶
Index ¶
- type Cache
- type Cache_Delete_Call
- type Cache_Expecter
- type Cache_GetOrCreate_Call
- func (_c *Cache_GetOrCreate_Call) Return(_a0 *cache.Entry, _a1 error) *Cache_GetOrCreate_Call
- func (_c *Cache_GetOrCreate_Call) Run(run func(_a0 cache.Identifier)) *Cache_GetOrCreate_Call
- func (_c *Cache_GetOrCreate_Call) RunAndReturn(run func(cache.Identifier) (*cache.Entry, error)) *Cache_GetOrCreate_Call
- type Cache_List_Call
- type Cache_Save_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
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) EXPECT ¶
func (_m *Cache) EXPECT() *Cache_Expecter
func (*Cache) GetOrCreate ¶
GetOrCreate provides a mock function with given fields: _a0
type Cache_Delete_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 ¶
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 (_c *Cache_GetOrCreate_Call) Return(_a0 *cache.Entry, _a1 error) *Cache_GetOrCreate_Call
func (*Cache_GetOrCreate_Call) Run ¶
func (_c *Cache_GetOrCreate_Call) Run(run func(_a0 cache.Identifier)) *Cache_GetOrCreate_Call
func (*Cache_GetOrCreate_Call) RunAndReturn ¶
func (_c *Cache_GetOrCreate_Call) RunAndReturn(run func(cache.Identifier) (*cache.Entry, error)) *Cache_GetOrCreate_Call
type Cache_List_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 ¶
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