mocks

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestHandler

type RequestHandler struct {
	mock.Mock
}

RequestHandler is an autogenerated mock type for the RequestHandler type

func NewRequestHandler added in v0.2.1

func NewRequestHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *RequestHandler

NewRequestHandler creates a new instance of RequestHandler. 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 (*RequestHandler) EXPECT added in v0.3.0

func (*RequestHandler) HandleMessage

func (_m *RequestHandler) HandleMessage(_a0 io.Writer, _a1 *gomemcached.MCRequest) *gomemcached.MCResponse

HandleMessage provides a mock function with given fields: _a0, _a1

type RequestHandler_Expecter added in v0.3.0

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

func (*RequestHandler_Expecter) HandleMessage added in v0.3.0

func (_e *RequestHandler_Expecter) HandleMessage(_a0 interface{}, _a1 interface{}) *RequestHandler_HandleMessage_Call

HandleMessage is a helper method to define mock.On call

  • _a0 io.Writer
  • _a1 *gomemcached.MCRequest

type RequestHandler_HandleMessage_Call added in v0.3.0

type RequestHandler_HandleMessage_Call struct {
	*mock.Call
}

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

func (*RequestHandler_HandleMessage_Call) Return added in v0.3.0

func (*RequestHandler_HandleMessage_Call) Run added in v0.3.0

func (*RequestHandler_HandleMessage_Call) RunAndReturn added in v0.3.0

type TapItemParser added in v0.1.4

type TapItemParser struct {
	mock.Mock
}

TapItemParser is an autogenerated mock type for the TapItemParser type

func NewTapItemParser added in v0.2.1

func NewTapItemParser(t interface {
	mock.TestingT
	Cleanup(func())
}) *TapItemParser

NewTapItemParser creates a new instance of TapItemParser. 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 (*TapItemParser) EXPECT added in v0.3.0

func (_m *TapItemParser) EXPECT() *TapItemParser_Expecter

func (*TapItemParser) Execute added in v0.1.4

func (_m *TapItemParser) Execute(_a0 io.Reader) (interface{}, error)

Execute provides a mock function with given fields: _a0

type TapItemParser_Execute_Call added in v0.3.0

type TapItemParser_Execute_Call struct {
	*mock.Call
}

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

func (*TapItemParser_Execute_Call) Return added in v0.3.0

func (_c *TapItemParser_Execute_Call) Return(_a0 interface{}, _a1 error) *TapItemParser_Execute_Call

func (*TapItemParser_Execute_Call) Run added in v0.3.0

func (*TapItemParser_Execute_Call) RunAndReturn added in v0.3.0

func (_c *TapItemParser_Execute_Call) RunAndReturn(run func(io.Reader) (interface{}, error)) *TapItemParser_Execute_Call

type TapItemParser_Expecter added in v0.3.0

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

func (*TapItemParser_Expecter) Execute added in v0.3.0

func (_e *TapItemParser_Expecter) Execute(_a0 interface{}) *TapItemParser_Execute_Call

Execute is a helper method to define mock.On call

  • _a0 io.Reader

Jump to

Keyboard shortcuts

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