update-ip/resolve_test.go

14 lines
183 B
Go
Raw Permalink Normal View History

2024-07-24 15:38:56 +02:00
package updateip
import "testing"
func TestResolveCurrentIP(t *testing.T) {
r := new(Ipify)
v, err := r.CurrentIP()
if err != nil {
t.Error(err)
}
t.Log("current IP:", v)
}