mock

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeHelpers

type FakeHelpers struct {
	// AddPubSubNameSpaceFn ...
	AddPubSubNameSpaceFn func(topicName string) string
	// ValidateElementFn ...
	ValidateElementFn func(el feedlib.Element) error
	// RecordSpanErrorFn ...
	RecordSpanErrorFn func(span trace.Span, err error)
	// EpochTimeToStandardTimeFn ....
	EpochTimeToStandardTimeFn func(timeOfDelivery string) time.Time
	// StripMailGunIDSpecialCharactersFn ...
	StripMailGunIDSpecialCharactersFn func(messageID string) string
}

FakeHelpers ...

func (*FakeHelpers) AddPubSubNameSpace

func (f *FakeHelpers) AddPubSubNameSpace(
	topicName string,
) string

AddPubSubNameSpace is a mock version of the original function

func (*FakeHelpers) EpochTimeToStandardTime

func (f *FakeHelpers) EpochTimeToStandardTime(
	timeOfDelivery string,
) time.Time

EpochTimeToStandardTime is a mock version of the original function

func (*FakeHelpers) RecordSpanError

func (f *FakeHelpers) RecordSpanError(
	span trace.Span,
	err error,
)

RecordSpanError is a mock version of the original function

func (*FakeHelpers) StripMailGunIDSpecialCharacters

func (f *FakeHelpers) StripMailGunIDSpecialCharacters(
	messageID string,
) string

StripMailGunIDSpecialCharacters is a mock version of the original function

func (*FakeHelpers) ValidateElement

func (f *FakeHelpers) ValidateElement(
	el feedlib.Element,
) error

ValidateElement is a mock version of the original function

type FakeIscClient

type FakeIscClient struct {
	// InitializeInterServiceClientFn ...
	InitializeInterServiceClientFn func(serviceName string) *interserviceclient.InterServiceClient
}

FakeIscClient ...

func (*FakeIscClient) InitializeInterServiceClient

func (c *FakeIscClient) InitializeInterServiceClient(
	serviceName string,
) *interserviceclient.InterServiceClient

InitializeInterServiceClient is a mock version of the original function

Jump to

Keyboard shortcuts

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