Help us shape the future of Go! Take the 2026 Go Developer Survey

testing

package
v2.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNotificationEndpoint

func CreateNotificationEndpoint(
	init func(NotificationEndpointFields, *testing.T) (influxdb.NotificationEndpointService, influxdb.SecretService, func()),
	t *testing.T,
)

CreateNotificationEndpoint testing.

func DeleteNotificationEndpoint

func DeleteNotificationEndpoint(
	init func(NotificationEndpointFields, *testing.T) (influxdb.NotificationEndpointService, influxdb.SecretService, func()),
	t *testing.T,
)

DeleteNotificationEndpoint testing.

func ErrorsEqual

func ErrorsEqual(t *testing.T, actual, expected error)

ErrorsEqual checks to see if the provided errors are equivalent.

func FindNotificationEndpointByID

func FindNotificationEndpointByID(
	init func(NotificationEndpointFields, *testing.T) (influxdb.NotificationEndpointService, influxdb.SecretService, func()),
	t *testing.T,
)

FindNotificationEndpointByID testing.

func FindNotificationEndpoints

func FindNotificationEndpoints(
	init func(NotificationEndpointFields, *testing.T) (influxdb.NotificationEndpointService, influxdb.SecretService, func()),
	t *testing.T,
)

FindNotificationEndpoints testing

func NotificationEndpointService

func NotificationEndpointService(
	init func(NotificationEndpointFields, *testing.T) (influxdb.NotificationEndpointService, influxdb.SecretService, func()), t *testing.T,
)

NotificationEndpointService tests all the service functions.

func PatchNotificationEndpoint

func PatchNotificationEndpoint(
	init func(NotificationEndpointFields, *testing.T) (influxdb.NotificationEndpointService, influxdb.SecretService, func()),
	t *testing.T,
)

PatchNotificationEndpoint testing.

func UpdateNotificationEndpoint

func UpdateNotificationEndpoint(
	init func(NotificationEndpointFields, *testing.T) (influxdb.NotificationEndpointService, influxdb.SecretService, func()),
	t *testing.T,
)

UpdateNotificationEndpoint testing.

Types

type NotificationEndpointFields

type NotificationEndpointFields struct {
	IDGenerator           platform.IDGenerator
	TimeGenerator         influxdb.TimeGenerator
	NotificationEndpoints []influxdb.NotificationEndpoint
	Orgs                  []*influxdb.Organization
}

NotificationEndpointFields includes prepopulated data for mapping tests.

Jump to

Keyboard shortcuts

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