wip: migrate to mono-repo. SPN has already been moved to spn/

This commit is contained in:
Patrick Pacher
2024-03-15 11:55:13 +01:00
parent b30fd00ccf
commit 8579430db9
577 changed files with 35981 additions and 818 deletions

View File

@@ -0,0 +1,29 @@
package netenv
import (
"flag"
"testing"
)
var privileged bool
func init() {
flag.BoolVar(&privileged, "privileged", false, "run tests that require root/admin privileges")
}
func TestGetInternetLocation(t *testing.T) {
t.Parallel()
if testing.Short() {
t.Skip()
}
if !privileged {
t.Skip("skipping privileged test, active with -privileged argument")
}
loc, ok := GetInternetLocation()
if !ok {
t.Fatal("GetApproximateInternetLocation failed")
}
t.Logf("GetApproximateInternetLocation: %+v", loc)
}