mocks

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 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 Backend

type Backend struct {
	mock.Mock
}

Backend is an autogenerated mock type for the Backend type

func NewBackend

func NewBackend(t interface {
	mock.TestingT
	Cleanup(func())
}) *Backend

NewBackend creates a new instance of Backend. 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 (*Backend) EXPECT

func (_m *Backend) EXPECT() *Backend_Expecter

func (*Backend) Flush

func (_m *Backend) Flush() error

Flush provides a mock function with given fields:

func (*Backend) Get

func (_m *Backend) Get(key string) (httpcache.Entry, bool)

Get provides a mock function with given fields: key

func (*Backend) Purge

func (_m *Backend) Purge(key string) error

Purge provides a mock function with given fields: key

func (*Backend) Set

func (_m *Backend) Set(key string, entry httpcache.Entry) error

Set provides a mock function with given fields: key, entry

type Backend_Expecter

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

func (*Backend_Expecter) Flush

func (_e *Backend_Expecter) Flush() *Backend_Flush_Call

Flush is a helper method to define mock.On call

func (*Backend_Expecter) Get

func (_e *Backend_Expecter) Get(key interface{}) *Backend_Get_Call

Get is a helper method to define mock.On call

  • key string

func (*Backend_Expecter) Purge

func (_e *Backend_Expecter) Purge(key interface{}) *Backend_Purge_Call

Purge is a helper method to define mock.On call

  • key string

func (*Backend_Expecter) Set

func (_e *Backend_Expecter) Set(key interface{}, entry interface{}) *Backend_Set_Call

Set is a helper method to define mock.On call

  • key string
  • entry httpcache.Entry

type Backend_Flush_Call

type Backend_Flush_Call struct {
	*mock.Call
}

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

func (*Backend_Flush_Call) Return

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

func (*Backend_Flush_Call) Run

func (_c *Backend_Flush_Call) Run(run func()) *Backend_Flush_Call

func (*Backend_Flush_Call) RunAndReturn

func (_c *Backend_Flush_Call) RunAndReturn(run func() error) *Backend_Flush_Call

type Backend_Get_Call

type Backend_Get_Call struct {
	*mock.Call
}

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

func (*Backend_Get_Call) Return

func (_c *Backend_Get_Call) Return(_a0 httpcache.Entry, _a1 bool) *Backend_Get_Call

func (*Backend_Get_Call) Run

func (_c *Backend_Get_Call) Run(run func(key string)) *Backend_Get_Call

func (*Backend_Get_Call) RunAndReturn

func (_c *Backend_Get_Call) RunAndReturn(run func(string) (httpcache.Entry, bool)) *Backend_Get_Call

type Backend_Purge_Call

type Backend_Purge_Call struct {
	*mock.Call
}

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

func (*Backend_Purge_Call) Return

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

func (*Backend_Purge_Call) Run

func (_c *Backend_Purge_Call) Run(run func(key string)) *Backend_Purge_Call

func (*Backend_Purge_Call) RunAndReturn

func (_c *Backend_Purge_Call) RunAndReturn(run func(string) error) *Backend_Purge_Call

type Backend_Set_Call

type Backend_Set_Call struct {
	*mock.Call
}

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

func (*Backend_Set_Call) Return

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

func (*Backend_Set_Call) Run

func (_c *Backend_Set_Call) Run(run func(key string, entry httpcache.Entry)) *Backend_Set_Call

func (*Backend_Set_Call) RunAndReturn

func (_c *Backend_Set_Call) RunAndReturn(run func(string, httpcache.Entry) error) *Backend_Set_Call

type TagSupporting

type TagSupporting struct {
	mock.Mock
}

TagSupporting is an autogenerated mock type for the TagSupporting type

func NewTagSupporting

func NewTagSupporting(t interface {
	mock.TestingT
	Cleanup(func())
}) *TagSupporting

NewTagSupporting creates a new instance of TagSupporting. 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 (*TagSupporting) EXPECT

func (_m *TagSupporting) EXPECT() *TagSupporting_Expecter

func (*TagSupporting) PurgeTags

func (_m *TagSupporting) PurgeTags(tags []string) error

PurgeTags provides a mock function with given fields: tags

type TagSupporting_Expecter

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

func (*TagSupporting_Expecter) PurgeTags

func (_e *TagSupporting_Expecter) PurgeTags(tags interface{}) *TagSupporting_PurgeTags_Call

PurgeTags is a helper method to define mock.On call

  • tags []string

type TagSupporting_PurgeTags_Call

type TagSupporting_PurgeTags_Call struct {
	*mock.Call
}

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

func (*TagSupporting_PurgeTags_Call) Return

func (*TagSupporting_PurgeTags_Call) Run

func (*TagSupporting_PurgeTags_Call) RunAndReturn

Jump to

Keyboard shortcuts

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