package wgtest
import "golang.zx2c4.com/wireguard/wgctrl/internal/wgtest"
Package wgtest contains shared testing utilities for package wgctrl.
Index ¶
- func MustCIDR(s string) net.IPNet
- func MustHexKey(s string) wgtypes.Key
- func MustPresharedKey() wgtypes.Key
- func MustPrivateKey() wgtypes.Key
- func MustPublicKey() wgtypes.Key
- func MustUDPAddr(s string) *net.UDPAddr
Functions ¶
func MustCIDR ¶
MustCIDR converts CIDR string s into a net.IPNet or panics.
func MustHexKey ¶
MustHexKey decodes a hex string s as a key or panics.
func MustPresharedKey ¶
MustPresharedKey generates a preshared key or panics.
func MustPrivateKey ¶
MustPrivateKey generates a private key or panics.
func MustPublicKey ¶
MustPublicKey generates a public key or panics.
func MustUDPAddr ¶
MustUDPAddr parses s as a UDP address or panics.
Source Files ¶
doc.go wgtest.go
- Version
- v0.0.0-20241231184526-a9ab2273dd10 (latest)
- Published
- Dec 31, 2024
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 1 month ago –
Tools for package owners.