mocks

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 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

type HostTranslator added in v0.1.0

type HostTranslator struct {
	mock.Mock
}

HostTranslator is an autogenerated mock type for the HostTranslator type

func NewHostTranslator added in v0.1.0

func NewHostTranslator(t interface {
	mock.TestingT
	Cleanup(func())
}) *HostTranslator

NewHostTranslator creates a new instance of HostTranslator. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*HostTranslator) EXPECT added in v0.1.0

func (*HostTranslator) IsHostTranslationRequired added in v0.1.0

func (_m *HostTranslator) IsHostTranslationRequired(ctx context.Context) (bool, error)

IsHostTranslationRequired provides a mock function with given fields: ctx

func (*HostTranslator) TranslateLocalHostToResolvedHost added in v0.1.0

func (_m *HostTranslator) TranslateLocalHostToResolvedHost(ctx context.Context, host string) (string, error)

TranslateLocalHostToResolvedHost provides a mock function with given fields: ctx, host

type HostTranslator_Expecter added in v0.1.0

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

func (*HostTranslator_Expecter) IsHostTranslationRequired added in v0.1.0

func (_e *HostTranslator_Expecter) IsHostTranslationRequired(ctx interface{}) *HostTranslator_IsHostTranslationRequired_Call

IsHostTranslationRequired is a helper method to define mock.On call

  • ctx context.Context

func (*HostTranslator_Expecter) TranslateLocalHostToResolvedHost added in v0.1.0

func (_e *HostTranslator_Expecter) TranslateLocalHostToResolvedHost(ctx interface{}, host interface{}) *HostTranslator_TranslateLocalHostToResolvedHost_Call

TranslateLocalHostToResolvedHost is a helper method to define mock.On call

  • ctx context.Context
  • host string

type HostTranslator_IsHostTranslationRequired_Call added in v0.1.0

type HostTranslator_IsHostTranslationRequired_Call struct {
	*mock.Call
}

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

func (*HostTranslator_IsHostTranslationRequired_Call) Return added in v0.1.0

func (*HostTranslator_IsHostTranslationRequired_Call) Run added in v0.1.0

func (*HostTranslator_IsHostTranslationRequired_Call) RunAndReturn added in v0.1.0

type HostTranslator_TranslateLocalHostToResolvedHost_Call added in v0.1.0

type HostTranslator_TranslateLocalHostToResolvedHost_Call struct {
	*mock.Call
}

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

func (*HostTranslator_TranslateLocalHostToResolvedHost_Call) Return added in v0.1.0

func (*HostTranslator_TranslateLocalHostToResolvedHost_Call) Run added in v0.1.0

func (*HostTranslator_TranslateLocalHostToResolvedHost_Call) RunAndReturn added in v0.1.0

Jump to

Keyboard shortcuts

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