testutils

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustKey

func MustKey(t *testing.T) (key wgtypes.Key)

MustKey uses MustRandBytes to generate a random (not crypto-valid) key

func MustKeyPair

func MustKeyPair(t *testing.T) (privateKey, publicKey wgtypes.Key)

MustKeyPair generates a real pair of private and public keys, panicing (via require) if this fails

func MustRandBytes

func MustRandBytes(t *testing.T, data []byte) []byte

MustRandBytes fills the given slice with random bytes using rand.Read

Types

This section is empty.

Jump to

Keyboard shortcuts

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