You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
819 B
47 lines
819 B
package goip
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
)
|
|
|
|
func TestGetOutsideIp(t *testing.T) {
|
|
t.Log(GetOutsideIp(context.Background()))
|
|
}
|
|
|
|
func BenchmarkGetOutsideIp(b *testing.B) {
|
|
for i := 0; i < b.N; i++ {
|
|
b.Log(GetOutsideIp(context.Background()))
|
|
}
|
|
}
|
|
|
|
func TestGetInsideIp(t *testing.T) {
|
|
t.Log(GetInsideIp(context.Background()))
|
|
}
|
|
|
|
func BenchmarkGetInsideIp(b *testing.B) {
|
|
for i := 0; i < b.N; i++ {
|
|
b.Log(GetInsideIp(context.Background()))
|
|
}
|
|
}
|
|
|
|
func TestGetMacAddr(t *testing.T) {
|
|
t.Log(GetMacAddr(context.Background()))
|
|
}
|
|
|
|
func BenchmarkGetMacAddr(b *testing.B) {
|
|
for i := 0; i < b.N; i++ {
|
|
b.Log(GetMacAddr(context.Background()))
|
|
}
|
|
}
|
|
|
|
func TestIps(t *testing.T) {
|
|
t.Log(Ips(context.Background()))
|
|
}
|
|
|
|
func BenchmarkIps(b *testing.B) {
|
|
for i := 0; i < b.N; i++ {
|
|
b.Log(Ips(context.Background()))
|
|
}
|
|
}
|