mocks

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationClient

type ApplicationClient struct {
	mock.Mock
}

ApplicationClient is an autogenerated mock type for the ApplicationClient type

func NewApplicationClient

func NewApplicationClient(t mockConstructorTestingTNewApplicationClient) *ApplicationClient

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

func (*ApplicationClient) EXPECT

func (*ApplicationClient) ProcessRequest

func (_m *ApplicationClient) ProcessRequest(ctx context.Context, application funcie.Application, request *funcie.Message) (*funcie.Response, error)

ProcessRequest provides a mock function with given fields: ctx, application, request

type ApplicationClient_Expecter

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

func (*ApplicationClient_Expecter) ProcessRequest

func (_e *ApplicationClient_Expecter) ProcessRequest(ctx interface{}, application interface{}, request interface{}) *ApplicationClient_ProcessRequest_Call

ProcessRequest is a helper method to define mock.On call

  • ctx context.Context
  • application funcie.Application
  • request *funcie.Message

type ApplicationClient_ProcessRequest_Call

type ApplicationClient_ProcessRequest_Call struct {
	*mock.Call
}

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

func (*ApplicationClient_ProcessRequest_Call) Return

func (*ApplicationClient_ProcessRequest_Call) Run

func (*ApplicationClient_ProcessRequest_Call) RunAndReturn

type Handler

type Handler struct {
	mock.Mock
}

Handler is an autogenerated mock type for the Handler type

func NewHandler

func NewHandler(t mockConstructorTestingTNewHandler) *Handler

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

func (*Handler) Deregister

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

func (*Handler) EXPECT

func (_m *Handler) EXPECT() *Handler_Expecter

func (*Handler) ForwardRequest

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

func (*Handler) Register

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

type Handler_Deregister_Call

type Handler_Deregister_Call struct {
	*mock.Call
}

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

func (*Handler_Deregister_Call) Run

type Handler_Expecter

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

func (*Handler_Expecter) Deregister

func (_e *Handler_Expecter) Deregister(ctx interface{}, message interface{}) *Handler_Deregister_Call

Deregister is a helper method to define mock.On call

  • ctx context.Context
  • message funcie.MessageBase[messages.DeregistrationRequestPayload]

func (*Handler_Expecter) ForwardRequest

func (_e *Handler_Expecter) ForwardRequest(ctx interface{}, message interface{}) *Handler_ForwardRequest_Call

ForwardRequest is a helper method to define mock.On call

  • ctx context.Context
  • message funcie.MessageBase[messages.ForwardRequestPayload]

func (*Handler_Expecter) Register

func (_e *Handler_Expecter) Register(ctx interface{}, message interface{}) *Handler_Register_Call

Register is a helper method to define mock.On call

  • ctx context.Context
  • message funcie.MessageBase[messages.RegistrationRequestPayload]

type Handler_ForwardRequest_Call

type Handler_ForwardRequest_Call struct {
	*mock.Call
}

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

func (*Handler_ForwardRequest_Call) Run

type Handler_Register_Call

type Handler_Register_Call struct {
	*mock.Call
}

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

func (*Handler_Register_Call) Run

Jump to

Keyboard shortcuts

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