mocks

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 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 added in v2.3.0

func NewMessageProcessor(t NewMessageProcessorT) *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 added in v2.3.0

func (_m *MessageProcessor) ReceivedInvalidMessage()

ReceivedInvalidMessage provides a mock function with given fields:

type NewMessageProcessorT added in v2.3.0

type NewMessageProcessorT interface {
	mock.TestingT
	Cleanup(func())
}

type NewServiceBindingT added in v2.3.0

type NewServiceBindingT interface {
	mock.TestingT
	Cleanup(func())
}

type ServiceBinding

type ServiceBinding struct {
	mock.Mock
}

ServiceBinding is an autogenerated mock type for the ServiceBinding type

func NewServiceBinding added in v2.3.0

func NewServiceBinding(t NewServiceBindingT) *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 added in v2.3.0

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 added in v2.2.0

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