mocks

package
v0.14.2-alpha Latest Latest
Warning

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

Go to latest
Published: May 12, 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 HandlerMock

type HandlerMock struct {
	mock.Mock
}

HandlerMock is an autogenerated mock type for the Handler type

func NewHandlerMock

func NewHandlerMock(t mockConstructorTestingTNewHandlerMock) *HandlerMock

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

func (*HandlerMock) EXPECT

func (_m *HandlerMock) EXPECT() *HandlerMock_Expecter

func (*HandlerMock) ServeHTTP

func (_m *HandlerMock) ServeHTTP(_a0 http.ResponseWriter, _a1 *http.Request)

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

type HandlerMock_Expecter

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

func (*HandlerMock_Expecter) ServeHTTP

func (_e *HandlerMock_Expecter) ServeHTTP(_a0 interface{}, _a1 interface{}) *HandlerMock_ServeHTTP_Call

ServeHTTP is a helper method to define mock.On call

  • _a0 http.ResponseWriter
  • _a1 *http.Request

type HandlerMock_ServeHTTP_Call

type HandlerMock_ServeHTTP_Call struct {
	*mock.Call
}

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

func (*HandlerMock_ServeHTTP_Call) Return

func (*HandlerMock_ServeHTTP_Call) Run

func (*HandlerMock_ServeHTTP_Call) RunAndReturn

Jump to

Keyboard shortcuts

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