safing-portmaster/netenv/location_test.go
2020-04-02 17:08:02 +02:00

13 lines
293 B
Go

// +build root
package netenv
import "testing"
func TestGetApproximateInternetLocation(t *testing.T) {
ip, err := GetApproximateInternetLocation()
if err != nil {
t.Errorf("GetApproximateInternetLocation failed: %s", err)
}
t.Logf("GetApproximateInternetLocation: %s", ip.String())
}