fixtures

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package fixtures is a set of test fixtures and mocks of the various configkit interfaces.

Index

Constants

This section is empty.

Variables

View Source
var (
	// MessageATypeName is the message.Name for the MessageA struct.
	MessageATypeName = MessageAType.Name()

	// MessageBTypeName is the message.Name for the MessageB struct.
	MessageBTypeName = MessageBType.Name()

	// MessageCTypeName is the message.Name for the MessageC struct.
	MessageCTypeName = MessageCType.Name()

	// MessageDTypeName is the message.Name for the MessageD struct.
	MessageDTypeName = MessageDType.Name()

	// MessageETypeName is the message.Name for the MessageE struct.
	MessageETypeName = MessageEType.Name()

	// MessageFTypeName is the message.Name for the MessageF struct.
	MessageFTypeName = MessageFType.Name()

	// MessageGTypeName is the message.Name for the MessageG struct.
	MessageGTypeName = MessageGType.Name()

	// MessageHTypeName is the message.Name for the MessageH struct.
	MessageHTypeName = MessageHType.Name()

	// MessageITypeName is the message.Name for the MessageI struct.
	MessageITypeName = MessageIType.Name()

	// MessageJTypeName is the message.Name for the MessageJ struct.
	MessageJTypeName = MessageJType.Name()

	// MessageKTypeName is the message.Name for the MessageK struct.
	MessageKTypeName = MessageKType.Name()

	// MessageLTypeName is the message.Name for the MessageL struct.
	MessageLTypeName = MessageLType.Name()

	// MessageMTypeName is the message.Name for the MessageM struct.
	MessageMTypeName = MessageMType.Name()

	// MessageNTypeName is the message.Name for the MessageN struct.
	MessageNTypeName = MessageNType.Name()

	// MessageOTypeName is the message.Name for the MessageO struct.
	MessageOTypeName = MessageOType.Name()

	// MessagePTypeName is the message.Name for the MessageP struct.
	MessagePTypeName = MessagePType.Name()

	// MessageQTypeName is the message.Name for the MessageQ struct.
	MessageQTypeName = MessageQType.Name()

	// MessageRTypeName is the message.Name for the MessageR struct.
	MessageRTypeName = MessageRType.Name()

	// MessageSTypeName is the message.Name for the MessageS struct.
	MessageSTypeName = MessageSType.Name()

	// MessageTTypeName is the message.Name for the MessageT struct.
	MessageTTypeName = MessageTType.Name()

	// MessageUTypeName is the message.Name for the MessageU struct.
	MessageUTypeName = MessageUType.Name()

	// MessageVTypeName is the message.Name for the MessageV struct.
	MessageVTypeName = MessageVType.Name()

	// MessageWTypeName is the message.Name for the MessageW struct.
	MessageWTypeName = MessageWType.Name()

	// MessageXTypeName is the message.Name for the MessageX struct.
	MessageXTypeName = MessageXType.Name()

	// MessageYTypeName is the message.Name for the MessageY struct.
	MessageYTypeName = MessageYType.Name()

	// MessageZTypeName is the message.Name for the MessageZ struct.
	MessageZTypeName = MessageZType.Name()
)
View Source
var (
	// MessageAType is the message.Type for the MessageA struct.
	MessageAType = message.TypeOf(fixtures.MessageA{})

	// MessageBType is the message.Type for the MessageB struct.
	MessageBType = message.TypeOf(fixtures.MessageB{})

	// MessageCType is the message.Type for the MessageC struct.
	MessageCType = message.TypeOf(fixtures.MessageC{})

	// MessageDType is the message.Type for the MessageD struct.
	MessageDType = message.TypeOf(fixtures.MessageD{})

	// MessageEType is the message.Type for the MessageE struct.
	MessageEType = message.TypeOf(fixtures.MessageE{})

	// MessageFType is the message.Type for the MessageF struct.
	MessageFType = message.TypeOf(fixtures.MessageF{})

	// MessageGType is the message.Type for the MessageG struct.
	MessageGType = message.TypeOf(fixtures.MessageG{})

	// MessageHType is the message.Type for the MessageH struct.
	MessageHType = message.TypeOf(fixtures.MessageH{})

	// MessageIType is the message.Type for the MessageI struct.
	MessageIType = message.TypeOf(fixtures.MessageI{})

	// MessageJType is the message.Type for the MessageJ struct.
	MessageJType = message.TypeOf(fixtures.MessageJ{})

	// MessageKType is the message.Type for the MessageK struct.
	MessageKType = message.TypeOf(fixtures.MessageK{})

	// MessageLType is the message.Type for the MessageL struct.
	MessageLType = message.TypeOf(fixtures.MessageL{})

	// MessageMType is the message.Type for the MessageM struct.
	MessageMType = message.TypeOf(fixtures.MessageM{})

	// MessageNType is the message.Type for the MessageN struct.
	MessageNType = message.TypeOf(fixtures.MessageN{})

	// MessageOType is the message.Type for the MessageO struct.
	MessageOType = message.TypeOf(fixtures.MessageO{})

	// MessagePType is the message.Type for the MessageP struct.
	MessagePType = message.TypeOf(fixtures.MessageP{})

	// MessageQType is the message.Type for the MessageQ struct.
	MessageQType = message.TypeOf(fixtures.MessageQ{})

	// MessageRType is the message.Type for the MessageR struct.
	MessageRType = message.TypeOf(fixtures.MessageR{})

	// MessageSType is the message.Type for the MessageS struct.
	MessageSType = message.TypeOf(fixtures.MessageS{})

	// MessageTType is the message.Type for the MessageT struct.
	MessageTType = message.TypeOf(fixtures.MessageT{})

	// MessageUType is the message.Type for the MessageU struct.
	MessageUType = message.TypeOf(fixtures.MessageU{})

	// MessageVType is the message.Type for the MessageV struct.
	MessageVType = message.TypeOf(fixtures.MessageV{})

	// MessageWType is the message.Type for the MessageW struct.
	MessageWType = message.TypeOf(fixtures.MessageW{})

	// MessageXType is the message.Type for the MessageX struct.
	MessageXType = message.TypeOf(fixtures.MessageX{})

	// MessageYType is the message.Type for the MessageY struct.
	MessageYType = message.TypeOf(fixtures.MessageY{})

	// MessageZType is the message.Type for the MessageZ struct.
	MessageZType = message.TypeOf(fixtures.MessageZ{})
)

Functions

This section is empty.

Types

type RichVisitor

type RichVisitor struct {
	VisitRichApplicationFunc func(context.Context, configkit.RichApplication) error
	VisitRichAggregateFunc   func(context.Context, configkit.RichAggregate) error
	VisitRichProcessFunc     func(context.Context, configkit.RichProcess) error
	VisitRichIntegrationFunc func(context.Context, configkit.RichIntegration) error
	VisitRichProjectionFunc  func(context.Context, configkit.RichProjection) error
}

RichVisitor is an mock implementation of configkit.RichVisitor.

func (*RichVisitor) VisitRichAggregate

func (v *RichVisitor) VisitRichAggregate(ctx context.Context, cfg configkit.RichAggregate) error

VisitRichAggregate calls v.VisitAggregateFunc(ctx, cfg) if it is non-nil.

func (*RichVisitor) VisitRichApplication

func (v *RichVisitor) VisitRichApplication(ctx context.Context, cfg configkit.RichApplication) error

VisitRichApplication calls v.VisitApplicationFunc(ctx, cfg) if it is non-nil.

If v.VisitRichApplicationFunc is nil, each of the handlers in cfg is visited.

func (*RichVisitor) VisitRichIntegration

func (v *RichVisitor) VisitRichIntegration(ctx context.Context, cfg configkit.RichIntegration) error

VisitRichIntegration calls v.VisitIntegrationFunc(ctx, cfg) if it is non-nil.

func (*RichVisitor) VisitRichProcess

func (v *RichVisitor) VisitRichProcess(ctx context.Context, cfg configkit.RichProcess) error

VisitRichProcess calls v.VisitProcessFunc(ctx, cfg) if it is non-nil.

func (*RichVisitor) VisitRichProjection

func (v *RichVisitor) VisitRichProjection(ctx context.Context, cfg configkit.RichProjection) error

VisitRichProjection calls v.VisitProjectionFunc(ctx, cfg) if it is non-nil.

type Visitor

type Visitor struct {
	VisitApplicationFunc func(context.Context, configkit.Application) error
	VisitAggregateFunc   func(context.Context, configkit.Aggregate) error
	VisitProcessFunc     func(context.Context, configkit.Process) error
	VisitIntegrationFunc func(context.Context, configkit.Integration) error
	VisitProjectionFunc  func(context.Context, configkit.Projection) error
}

Visitor is an mock implementation of configkit.Visitor.

func (*Visitor) VisitAggregate

func (v *Visitor) VisitAggregate(ctx context.Context, cfg configkit.Aggregate) error

VisitAggregate calls v.VisitAggregateFunc(ctx, cfg) if it is non-nil.

func (*Visitor) VisitApplication

func (v *Visitor) VisitApplication(ctx context.Context, cfg configkit.Application) error

VisitApplication calls v.VisitApplicationFunc(ctx, cfg) if it is non-nil.

If v.VisitApplicationFunc is nil, each of the handlers in cfg is visited.

func (*Visitor) VisitIntegration

func (v *Visitor) VisitIntegration(ctx context.Context, cfg configkit.Integration) error

VisitIntegration calls v.VisitIntegrationFunc(ctx, cfg) if it is non-nil.

func (*Visitor) VisitProcess

func (v *Visitor) VisitProcess(ctx context.Context, cfg configkit.Process) error

VisitProcess calls v.VisitProcessFunc(ctx, cfg) if it is non-nil.

func (*Visitor) VisitProjection

func (v *Visitor) VisitProjection(ctx context.Context, cfg configkit.Projection) error

VisitProjection calls v.VisitProjectionFunc(ctx, cfg) if it is non-nil.

Jump to

Keyboard shortcuts

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