mirror of
https://github.com/qdm12/gluetun.git
synced 2026-05-07 04:20:12 +02:00
22 lines
373 B
Go
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")
|
|
}
|
|
}
|