testing

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: Apache-2.0 Imports: 8 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 ResetDeliveryMetrics

func ResetDeliveryMetrics()

func ResetIngressMetrics

func ResetIngressMetrics()

Types

type ExpectDelivery added in v0.16.0

type ExpectDelivery struct {
	TriggerTags     map[string]Tags
	ProcessingCount map[string]int64
	DeliveryCount   map[deliveryKey]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 string, expectTags Tags)

func (ExpectDelivery) Expect200 added in v0.16.0

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

func (ExpectDelivery) ExpectDelivery added in v0.16.0

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

func (ExpectDelivery) ExpectProcessing added in v0.16.0

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

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

Jump to

Keyboard shortcuts

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