testhelpers

package
v2.43.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateGateway

func CreateGateway(metakey string) core.BeforeFunc

func CreateGatewayNetwork

func CreateGatewayNetwork(metakey string) core.BeforeFunc

func CreatePN

func CreatePN() core.BeforeFunc

func DeleteGateway

func DeleteGateway(metakey string) core.AfterFunc

func DeleteGatewayNetwork

func DeleteGatewayNetwork() core.AfterFunc

func DeleteIPVpcGw

func DeleteIPVpcGw(metakey string) core.AfterFunc

func DeletePN

func DeletePN() core.AfterFunc

func MapTValue added in v2.36.0

func MapTValue[T any](t *testing.T, m map[string]T, key string) T

MapTValue functions like MapValue but for typed maps

func MapValue added in v2.36.0

func MapValue[T any](t *testing.T, m map[string]any, key string) T

MapValue gets a value from a map[string]any using a given key. If key does not exist or type is invalid, test will fail.

func Value added in v2.36.0

func Value[T any](t *testing.T, v any) T

Value tries to assert a type value and will make test fail if type is invalid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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