testing

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectMetrics

func ExpectMetrics(t *testing.T, f func() error)

func ResetBrokerCellMetrics added in v0.17.0

func ResetBrokerCellMetrics()

func ResetDeliveryMetrics

func ResetDeliveryMetrics()

func ResetIngressMetrics

func ResetIngressMetrics()

Types

type ExpectDelivery added in v0.16.0

type ExpectDelivery struct {
	TriggerTags     map[Trigger]Tags
	ProcessingCount map[Trigger]int64
	DeliveryCount   map[deliveryKey]int64
	TimeoutCount    map[Trigger]int64
}

func NewExpectDelivery added in v0.16.0

func NewExpectDelivery() ExpectDelivery

func (ExpectDelivery) AddTrigger added in v0.16.0

func (e ExpectDelivery) AddTrigger(t *testing.T, trigger Trigger, expectTags Tags)

func (ExpectDelivery) Expect200 added in v0.16.0

func (e ExpectDelivery) Expect200(t *testing.T, trigger Trigger)

func (ExpectDelivery) ExpectDelivery added in v0.16.0

func (e ExpectDelivery) ExpectDelivery(t *testing.T, trigger Trigger, code int)

func (ExpectDelivery) ExpectProcessing added in v0.16.0

func (e ExpectDelivery) ExpectProcessing(t *testing.T, trigger Trigger)

func (ExpectDelivery) ExpectTimeout added in v0.17.0

func (e ExpectDelivery) ExpectTimeout(t *testing.T, trigger Trigger)

func (ExpectDelivery) Verify added in v0.16.0

func (e ExpectDelivery) Verify(t *testing.T)

type Tags added in v0.16.0

type Tags map[string]string

type Trigger added in v0.18.0

type Trigger struct {
	Namespace string
	Trigger   string
	Broker    string
}

Jump to

Keyboard shortcuts

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