mocks

package
v0.14.1-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorHandlerMock

type ErrorHandlerMock struct {
	mock.Mock
}

ErrorHandlerMock is an autogenerated mock type for the ErrorHandler type

func NewErrorHandlerMock

func NewErrorHandlerMock(t mockConstructorTestingTNewErrorHandlerMock) *ErrorHandlerMock

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

func (*ErrorHandlerMock) EXPECT

func (*ErrorHandlerMock) HandleError

func (_m *ErrorHandlerMock) HandleError(rw http.ResponseWriter, req *http.Request, err error)

HandleError provides a mock function with given fields: rw, req, err

type ErrorHandlerMock_Expecter

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

func (*ErrorHandlerMock_Expecter) HandleError

func (_e *ErrorHandlerMock_Expecter) HandleError(rw interface{}, req interface{}, err interface{}) *ErrorHandlerMock_HandleError_Call

HandleError is a helper method to define mock.On call

  • rw http.ResponseWriter
  • req *http.Request
  • err error

type ErrorHandlerMock_HandleError_Call

type ErrorHandlerMock_HandleError_Call struct {
	*mock.Call
}

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

func (*ErrorHandlerMock_HandleError_Call) Return

func (*ErrorHandlerMock_HandleError_Call) Run

func (*ErrorHandlerMock_HandleError_Call) RunAndReturn

Jump to

Keyboard shortcuts

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