Files
gluetun/internal/netlink/wireguard_test.go
T
2026-01-20 21:39:30 +00:00

22 lines
373 B
Go

//go:build linux || darwin
package netlink
import (
"testing"
)
func Test_NetLink_IsWireguardSupported(t *testing.T) {
t.Parallel()
netLink := &NetLink{
debugLogger: &noopLogger{},
}
ok := netLink.IsWireguardSupported()
if ok { // cannot assert since this depends on kernel
t.Log("wireguard is supported")
} else {
t.Log("wireguard is not supported")
}
}