mocks

package
v3.2.0-dev.54 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageProcessor

type MessageProcessor struct {
	mock.Mock
}

MessageProcessor is an autogenerated mock type for the MessageProcessor type

func NewMessageProcessor

func NewMessageProcessor(t mockConstructorTestingTNewMessageProcessor) *MessageProcessor

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

func (*MessageProcessor) MessageReceived

MessageReceived provides a mock function with given fields: ctx, envelope, outputHandler

func (*MessageProcessor) Process

Process provides a mock function with given fields: ctx, envelope

func (*MessageProcessor) ReceivedInvalidMessage

func (_m *MessageProcessor) ReceivedInvalidMessage()

ReceivedInvalidMessage provides a mock function with given fields:

type ServiceBinding

type ServiceBinding struct {
	mock.Mock
}

ServiceBinding is an autogenerated mock type for the ServiceBinding type

func NewServiceBinding

func NewServiceBinding(t mockConstructorTestingTNewServiceBinding) *ServiceBinding

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

func (*ServiceBinding) BuildContext

BuildContext provides a mock function with given fields: env

func (*ServiceBinding) Config

Config provides a mock function with given fields:

func (*ServiceBinding) DecodeMessage

func (_m *ServiceBinding) DecodeMessage(appContext *appfunction.Context, envelope types.MessageEnvelope) (interface{}, *runtime.MessageError, bool)

DecodeMessage provides a mock function with given fields: appContext, envelope

func (*ServiceBinding) GetDefaultPipeline

func (_m *ServiceBinding) GetDefaultPipeline() *interfaces.FunctionPipeline

GetDefaultPipeline provides a mock function with given fields:

func (*ServiceBinding) GetMatchingPipelines

func (_m *ServiceBinding) GetMatchingPipelines(incomingTopic string) []*interfaces.FunctionPipeline

GetMatchingPipelines provides a mock function with given fields: incomingTopic

func (*ServiceBinding) LoadCustomConfig

func (_m *ServiceBinding) LoadCustomConfig(config interfaces.UpdatableConfig, sectionName string) error

LoadCustomConfig provides a mock function with given fields: config, sectionName

func (*ServiceBinding) LoggingClient

func (_m *ServiceBinding) LoggingClient() logger.LoggingClient

LoggingClient provides a mock function with given fields:

func (*ServiceBinding) ProcessMessage

func (_m *ServiceBinding) ProcessMessage(appContext *appfunction.Context, data interface{}, pipeline *interfaces.FunctionPipeline) *runtime.MessageError

ProcessMessage provides a mock function with given fields: appContext, data, pipeline

func (*ServiceBinding) SecretProvider

func (_m *ServiceBinding) SecretProvider() messaging.SecretDataProvider

SecretProvider provides a mock function with given fields:

Jump to

Keyboard shortcuts

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