tests

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2026 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIClient added in v0.26.0

func APIClient(rootInst *instance.Instance) (*api.APIClient, func())

func AssertEtcd

func AssertEtcd(t *testing.T, c *storage.Client, key *storage.Key, expected ...interface{})

func Context

func Context() context.Context

func Listen added in v0.4.9

func Listen(port int32) string

func MustJSON

func MustJSON(in any) string

func MustParseNetIP added in v0.9.0

func MustParseNetIP(t *testing.T, r string) netip.Addr

func MustProto added in v0.17.2

func MustProto(in protoreflect.ProtoMessage) []byte

func PanicIfError added in v0.6.12

func PanicIfError(args ...any)

func RandomMAC added in v0.29.0

func RandomMAC() net.HardwareAddr

func RandomString

func RandomString(prefix ...string) string

func ResetEtcd added in v0.4.12

func ResetEtcd(t testing.TB)

func Setup added in v0.9.0

func Setup(t testing.TB)

Types

This section is empty.

Jump to

Keyboard shortcuts

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