mocks

package
v0.0.0-...-bb1bb1d Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBeanstalkHandler

type MockBeanstalkHandler struct {
	mock.Mock
}

MockBeanstalkHandler is an autogenerated mock type for the Handler type

func NewMockBeanstalkHandler

func NewMockBeanstalkHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockBeanstalkHandler

NewMockBeanstalkHandler creates a new instance of MockBeanstalkHandler. 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 (*MockBeanstalkHandler) Bury

func (_m *MockBeanstalkHandler) Bury(id uint64, pri uint64) error

Bury provides a mock function with given fields: id, pri

func (*MockBeanstalkHandler) Delete

func (_m *MockBeanstalkHandler) Delete(id uint64) error

Delete provides a mock function with given fields: id

func (*MockBeanstalkHandler) EXPECT

func (*MockBeanstalkHandler) Ignore

func (_m *MockBeanstalkHandler) Ignore(tube string) (int, error)

Ignore provides a mock function with given fields: tube

func (*MockBeanstalkHandler) Put

func (_m *MockBeanstalkHandler) Put(pri uint64, delay uint64, ttr uint64, data []byte) (uint64, bool, error)

Put provides a mock function with given fields: pri, delay, ttr, data

func (*MockBeanstalkHandler) Release

func (_m *MockBeanstalkHandler) Release(id uint64, pri uint64, delay uint64) error

Release provides a mock function with given fields: id, pri, delay

func (*MockBeanstalkHandler) Reserve

func (_m *MockBeanstalkHandler) Reserve(timeout int64) (uint64, []byte, error)

Reserve provides a mock function with given fields: timeout

func (*MockBeanstalkHandler) ReserveByID

func (_m *MockBeanstalkHandler) ReserveByID(id uint64) (uint64, []byte, error)

ReserveByID provides a mock function with given fields: id

func (*MockBeanstalkHandler) Touch

func (_m *MockBeanstalkHandler) Touch(id uint64) error

Touch provides a mock function with given fields: id

func (*MockBeanstalkHandler) Use

func (_m *MockBeanstalkHandler) Use(tube string) (string, error)

Use provides a mock function with given fields: tube

func (*MockBeanstalkHandler) Watch

func (_m *MockBeanstalkHandler) Watch(tube string) (int, error)

Watch provides a mock function with given fields: tube

type MockBeanstalkHandler_Bury_Call

type MockBeanstalkHandler_Bury_Call struct {
	*mock.Call
}

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

func (*MockBeanstalkHandler_Bury_Call) Return

func (*MockBeanstalkHandler_Bury_Call) Run

func (*MockBeanstalkHandler_Bury_Call) RunAndReturn

type MockBeanstalkHandler_Delete_Call

type MockBeanstalkHandler_Delete_Call struct {
	*mock.Call
}

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

func (*MockBeanstalkHandler_Delete_Call) Return

func (*MockBeanstalkHandler_Delete_Call) Run

func (*MockBeanstalkHandler_Delete_Call) RunAndReturn

type MockBeanstalkHandler_Expecter

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

func (*MockBeanstalkHandler_Expecter) Bury

func (_e *MockBeanstalkHandler_Expecter) Bury(id interface{}, pri interface{}) *MockBeanstalkHandler_Bury_Call

Bury is a helper method to define mock.On call

  • id uint64
  • pri uint64

func (*MockBeanstalkHandler_Expecter) Delete

Delete is a helper method to define mock.On call

  • id uint64

func (*MockBeanstalkHandler_Expecter) Ignore

Ignore is a helper method to define mock.On call

  • tube string

func (*MockBeanstalkHandler_Expecter) Put

func (_e *MockBeanstalkHandler_Expecter) Put(pri interface{}, delay interface{}, ttr interface{}, data interface{}) *MockBeanstalkHandler_Put_Call

Put is a helper method to define mock.On call

  • pri uint64
  • delay uint64
  • ttr uint64
  • data []byte

func (*MockBeanstalkHandler_Expecter) Release

func (_e *MockBeanstalkHandler_Expecter) Release(id interface{}, pri interface{}, delay interface{}) *MockBeanstalkHandler_Release_Call

Release is a helper method to define mock.On call

  • id uint64
  • pri uint64
  • delay uint64

func (*MockBeanstalkHandler_Expecter) Reserve

func (_e *MockBeanstalkHandler_Expecter) Reserve(timeout interface{}) *MockBeanstalkHandler_Reserve_Call

Reserve is a helper method to define mock.On call

  • timeout int64

func (*MockBeanstalkHandler_Expecter) ReserveByID

ReserveByID is a helper method to define mock.On call

  • id uint64

func (*MockBeanstalkHandler_Expecter) Touch

Touch is a helper method to define mock.On call

  • id uint64

func (*MockBeanstalkHandler_Expecter) Use

Use is a helper method to define mock.On call

  • tube string

func (*MockBeanstalkHandler_Expecter) Watch

Watch is a helper method to define mock.On call

  • tube string

type MockBeanstalkHandler_Ignore_Call

type MockBeanstalkHandler_Ignore_Call struct {
	*mock.Call
}

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

func (*MockBeanstalkHandler_Ignore_Call) Return

func (*MockBeanstalkHandler_Ignore_Call) Run

func (*MockBeanstalkHandler_Ignore_Call) RunAndReturn

type MockBeanstalkHandler_Put_Call

type MockBeanstalkHandler_Put_Call struct {
	*mock.Call
}

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

func (*MockBeanstalkHandler_Put_Call) Return

func (*MockBeanstalkHandler_Put_Call) Run

func (_c *MockBeanstalkHandler_Put_Call) Run(run func(pri uint64, delay uint64, ttr uint64, data []byte)) *MockBeanstalkHandler_Put_Call

func (*MockBeanstalkHandler_Put_Call) RunAndReturn

type MockBeanstalkHandler_Release_Call

type MockBeanstalkHandler_Release_Call struct {
	*mock.Call
}

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

func (*MockBeanstalkHandler_Release_Call) Return

func (*MockBeanstalkHandler_Release_Call) Run

func (*MockBeanstalkHandler_Release_Call) RunAndReturn

type MockBeanstalkHandler_ReserveByID_Call

type MockBeanstalkHandler_ReserveByID_Call struct {
	*mock.Call
}

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

func (*MockBeanstalkHandler_ReserveByID_Call) Return

func (*MockBeanstalkHandler_ReserveByID_Call) Run

func (*MockBeanstalkHandler_ReserveByID_Call) RunAndReturn

type MockBeanstalkHandler_Reserve_Call

type MockBeanstalkHandler_Reserve_Call struct {
	*mock.Call
}

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

func (*MockBeanstalkHandler_Reserve_Call) Return

func (*MockBeanstalkHandler_Reserve_Call) Run

func (*MockBeanstalkHandler_Reserve_Call) RunAndReturn

type MockBeanstalkHandler_Touch_Call

type MockBeanstalkHandler_Touch_Call struct {
	*mock.Call
}

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

func (*MockBeanstalkHandler_Touch_Call) Return

func (*MockBeanstalkHandler_Touch_Call) Run

func (*MockBeanstalkHandler_Touch_Call) RunAndReturn

type MockBeanstalkHandler_Use_Call

type MockBeanstalkHandler_Use_Call struct {
	*mock.Call
}

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

func (*MockBeanstalkHandler_Use_Call) Return

func (*MockBeanstalkHandler_Use_Call) Run

func (*MockBeanstalkHandler_Use_Call) RunAndReturn

type MockBeanstalkHandler_Watch_Call

type MockBeanstalkHandler_Watch_Call struct {
	*mock.Call
}

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

func (*MockBeanstalkHandler_Watch_Call) Return

func (*MockBeanstalkHandler_Watch_Call) Run

func (*MockBeanstalkHandler_Watch_Call) RunAndReturn

Jump to

Keyboard shortcuts

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