api

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertRedactedValues

func AssertRedactedValues(t testing.TB, data interface{}, keys ...string)

AssertRedactedValues will assert that the values for the given keys within the data have been redacted

func CloudEventFromFile

func CloudEventFromFile(t testing.TB, fileName string) *cloudevents.Event

CloudEventFromFile will marshal a single cloud event from the provided file name

func GetEventDetails

func GetEventDetails(t testing.TB, e *cloudevents.Event, messageType string) map[string]interface{}

GetEventDetails is a testing helper will return the details from the event payload for a given messageType (request or response)

Types

This section is empty.

Jump to

Keyboard shortcuts

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