Initial commit after restructure
This commit is contained in:
15
network/environment/location_test.go
Normal file
15
network/environment/location_test.go
Normal file
@@ -0,0 +1,15 @@
|
||||
// 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())
|
||||
}
|
||||
Reference in New Issue
Block a user