mocks

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerWithInput

type HandlerWithInput struct {
	mock.Mock
}

HandlerWithInput is an autogenerated mock type for the HandlerWithInput type

func NewHandlerWithInput

func NewHandlerWithInput(t mockConstructorTestingTNewHandlerWithInput) *HandlerWithInput

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

func (*HandlerWithInput) EXPECT

func (*HandlerWithInput) GetInput

func (_m *HandlerWithInput) GetInput() interface{}

GetInput provides a mock function with given fields:

func (*HandlerWithInput) Handle

func (_m *HandlerWithInput) Handle(requestContext context.Context, request *apiserver.Request) (*apiserver.Response, error)

Handle provides a mock function with given fields: requestContext, request

type HandlerWithInput_Expecter

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

func (*HandlerWithInput_Expecter) GetInput

GetInput is a helper method to define mock.On call

func (*HandlerWithInput_Expecter) Handle

func (_e *HandlerWithInput_Expecter) Handle(requestContext interface{}, request interface{}) *HandlerWithInput_Handle_Call

Handle is a helper method to define mock.On call

  • requestContext context.Context
  • request *apiserver.Request

type HandlerWithInput_GetInput_Call

type HandlerWithInput_GetInput_Call struct {
	*mock.Call
}

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

func (*HandlerWithInput_GetInput_Call) Return

func (*HandlerWithInput_GetInput_Call) Run

func (*HandlerWithInput_GetInput_Call) RunAndReturn

func (_c *HandlerWithInput_GetInput_Call) RunAndReturn(run func() interface{}) *HandlerWithInput_GetInput_Call

type HandlerWithInput_Handle_Call

type HandlerWithInput_Handle_Call struct {
	*mock.Call
}

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

func (*HandlerWithInput_Handle_Call) Return

func (*HandlerWithInput_Handle_Call) Run

func (_c *HandlerWithInput_Handle_Call) Run(run func(requestContext context.Context, request *apiserver.Request)) *HandlerWithInput_Handle_Call

func (*HandlerWithInput_Handle_Call) RunAndReturn

type HandlerWithMultipleBindings

type HandlerWithMultipleBindings struct {
	mock.Mock
}

HandlerWithMultipleBindings is an autogenerated mock type for the HandlerWithMultipleBindings type

func NewHandlerWithMultipleBindings

func NewHandlerWithMultipleBindings(t mockConstructorTestingTNewHandlerWithMultipleBindings) *HandlerWithMultipleBindings

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

func (*HandlerWithMultipleBindings) EXPECT

func (*HandlerWithMultipleBindings) GetBindings

func (_m *HandlerWithMultipleBindings) GetBindings() []binding.Binding

GetBindings provides a mock function with given fields:

func (*HandlerWithMultipleBindings) GetInput

func (_m *HandlerWithMultipleBindings) GetInput() interface{}

GetInput provides a mock function with given fields:

func (*HandlerWithMultipleBindings) Handle

func (_m *HandlerWithMultipleBindings) Handle(requestContext context.Context, request *apiserver.Request) (*apiserver.Response, error)

Handle provides a mock function with given fields: requestContext, request

type HandlerWithMultipleBindings_Expecter

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

func (*HandlerWithMultipleBindings_Expecter) GetBindings

GetBindings is a helper method to define mock.On call

func (*HandlerWithMultipleBindings_Expecter) GetInput

GetInput is a helper method to define mock.On call

func (*HandlerWithMultipleBindings_Expecter) Handle

func (_e *HandlerWithMultipleBindings_Expecter) Handle(requestContext interface{}, request interface{}) *HandlerWithMultipleBindings_Handle_Call

Handle is a helper method to define mock.On call

  • requestContext context.Context
  • request *apiserver.Request

type HandlerWithMultipleBindings_GetBindings_Call

type HandlerWithMultipleBindings_GetBindings_Call struct {
	*mock.Call
}

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

func (*HandlerWithMultipleBindings_GetBindings_Call) Return

func (*HandlerWithMultipleBindings_GetBindings_Call) Run

func (*HandlerWithMultipleBindings_GetBindings_Call) RunAndReturn

type HandlerWithMultipleBindings_GetInput_Call

type HandlerWithMultipleBindings_GetInput_Call struct {
	*mock.Call
}

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

func (*HandlerWithMultipleBindings_GetInput_Call) Return

func (*HandlerWithMultipleBindings_GetInput_Call) Run

func (*HandlerWithMultipleBindings_GetInput_Call) RunAndReturn

type HandlerWithMultipleBindings_Handle_Call

type HandlerWithMultipleBindings_Handle_Call struct {
	*mock.Call
}

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

func (*HandlerWithMultipleBindings_Handle_Call) Return

func (*HandlerWithMultipleBindings_Handle_Call) Run

func (*HandlerWithMultipleBindings_Handle_Call) RunAndReturn

type HandlerWithStream

type HandlerWithStream struct {
	mock.Mock
}

HandlerWithStream is an autogenerated mock type for the HandlerWithStream type

func NewHandlerWithStream

func NewHandlerWithStream(t mockConstructorTestingTNewHandlerWithStream) *HandlerWithStream

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

func (*HandlerWithStream) EXPECT

func (*HandlerWithStream) GetInput

func (_m *HandlerWithStream) GetInput() interface{}

GetInput provides a mock function with given fields:

func (*HandlerWithStream) Handle

func (_m *HandlerWithStream) Handle(ginContext *gin.Context, requestContext context.Context, request *apiserver.Request) error

Handle provides a mock function with given fields: ginContext, requestContext, request

type HandlerWithStream_Expecter

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

func (*HandlerWithStream_Expecter) GetInput

GetInput is a helper method to define mock.On call

func (*HandlerWithStream_Expecter) Handle

func (_e *HandlerWithStream_Expecter) Handle(ginContext interface{}, requestContext interface{}, request interface{}) *HandlerWithStream_Handle_Call

Handle is a helper method to define mock.On call

  • ginContext *gin.Context
  • requestContext context.Context
  • request *apiserver.Request

type HandlerWithStream_GetInput_Call

type HandlerWithStream_GetInput_Call struct {
	*mock.Call
}

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

func (*HandlerWithStream_GetInput_Call) Return

func (*HandlerWithStream_GetInput_Call) Run

func (*HandlerWithStream_GetInput_Call) RunAndReturn

func (_c *HandlerWithStream_GetInput_Call) RunAndReturn(run func() interface{}) *HandlerWithStream_GetInput_Call

type HandlerWithStream_Handle_Call

type HandlerWithStream_Handle_Call struct {
	*mock.Call
}

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

func (*HandlerWithStream_Handle_Call) Return

func (*HandlerWithStream_Handle_Call) Run

func (_c *HandlerWithStream_Handle_Call) Run(run func(ginContext *gin.Context, requestContext context.Context, request *apiserver.Request)) *HandlerWithStream_Handle_Call

func (*HandlerWithStream_Handle_Call) RunAndReturn

type HandlerWithoutInput

type HandlerWithoutInput struct {
	mock.Mock
}

HandlerWithoutInput is an autogenerated mock type for the HandlerWithoutInput type

func NewHandlerWithoutInput

func NewHandlerWithoutInput(t mockConstructorTestingTNewHandlerWithoutInput) *HandlerWithoutInput

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

func (*HandlerWithoutInput) EXPECT

func (*HandlerWithoutInput) Handle

func (_m *HandlerWithoutInput) Handle(requestContext context.Context, request *apiserver.Request) (*apiserver.Response, error)

Handle provides a mock function with given fields: requestContext, request

type HandlerWithoutInput_Expecter

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

func (*HandlerWithoutInput_Expecter) Handle

func (_e *HandlerWithoutInput_Expecter) Handle(requestContext interface{}, request interface{}) *HandlerWithoutInput_Handle_Call

Handle is a helper method to define mock.On call

  • requestContext context.Context
  • request *apiserver.Request

type HandlerWithoutInput_Handle_Call

type HandlerWithoutInput_Handle_Call struct {
	*mock.Call
}

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

func (*HandlerWithoutInput_Handle_Call) Return

func (*HandlerWithoutInput_Handle_Call) Run

func (*HandlerWithoutInput_Handle_Call) RunAndReturn

Jump to

Keyboard shortcuts

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