mocks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientHandlerRouter

type ClientHandlerRouter struct {
	mock.Mock
}

ClientHandlerRouter is an autogenerated mock type for the ClientHandlerRouter type

func NewClientHandlerRouter

func NewClientHandlerRouter(t mockConstructorTestingTNewClientHandlerRouter) *ClientHandlerRouter

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

func (*ClientHandlerRouter) AddClientHandler

func (_m *ClientHandlerRouter) AddClientHandler(applicationId string, handler funcie.Handler) error

AddClientHandler provides a mock function with given fields: applicationId, handler

func (*ClientHandlerRouter) EXPECT

func (*ClientHandlerRouter) Handle

func (_m *ClientHandlerRouter) Handle(ctx context.Context, message *funcie.Message) (*funcie.Response, error)

Handle provides a mock function with given fields: ctx, message

func (*ClientHandlerRouter) RemoveClientHandler

func (_m *ClientHandlerRouter) RemoveClientHandler(applicationId string) error

RemoveClientHandler provides a mock function with given fields: applicationId

type ClientHandlerRouter_AddClientHandler_Call

type ClientHandlerRouter_AddClientHandler_Call struct {
	*mock.Call
}

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

func (*ClientHandlerRouter_AddClientHandler_Call) Return

func (*ClientHandlerRouter_AddClientHandler_Call) Run

func (*ClientHandlerRouter_AddClientHandler_Call) RunAndReturn

type ClientHandlerRouter_Expecter

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

func (*ClientHandlerRouter_Expecter) AddClientHandler

func (_e *ClientHandlerRouter_Expecter) AddClientHandler(applicationId interface{}, handler interface{}) *ClientHandlerRouter_AddClientHandler_Call

AddClientHandler is a helper method to define mock.On call

  • applicationId string
  • handler funcie.Handler

func (*ClientHandlerRouter_Expecter) Handle

func (_e *ClientHandlerRouter_Expecter) Handle(ctx interface{}, message interface{}) *ClientHandlerRouter_Handle_Call

Handle is a helper method to define mock.On call

  • ctx context.Context
  • message *funcie.Message

func (*ClientHandlerRouter_Expecter) RemoveClientHandler

func (_e *ClientHandlerRouter_Expecter) RemoveClientHandler(applicationId interface{}) *ClientHandlerRouter_RemoveClientHandler_Call

RemoveClientHandler is a helper method to define mock.On call

  • applicationId string

type ClientHandlerRouter_Handle_Call

type ClientHandlerRouter_Handle_Call struct {
	*mock.Call
}

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

func (*ClientHandlerRouter_Handle_Call) Return

func (*ClientHandlerRouter_Handle_Call) Run

func (*ClientHandlerRouter_Handle_Call) RunAndReturn

type ClientHandlerRouter_RemoveClientHandler_Call

type ClientHandlerRouter_RemoveClientHandler_Call struct {
	*mock.Call
}

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

func (*ClientHandlerRouter_RemoveClientHandler_Call) Return

func (*ClientHandlerRouter_RemoveClientHandler_Call) Run

func (*ClientHandlerRouter_RemoveClientHandler_Call) RunAndReturn

Jump to

Keyboard shortcuts

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