mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
15 lines
437 B
Go
15 lines
437 B
Go
// Copyright Safing ICS Technologies GmbH. Use of this source code is governed by the AGPL license that can be found in the LICENSE file.
|
|
|
|
// +build root
|
|
|
|
package environment
|
|
|
|
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())
|
|
}
|