}
func TestInterfaces(t *testing.T) {
+ if runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") {
+ t.Skipf("sysctl is not supported on iOS")
+ }
ift, err := Interfaces()
if err != nil {
t.Fatal(err)
}
func TestInterfaceAddrs(t *testing.T) {
+ if runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") {
+ t.Skipf("sysctl is not supported on iOS")
+ }
ift, err := Interfaces()
if err != nil {
t.Fatal(err)
}
func TestInterfaceUnicastAddrs(t *testing.T) {
+ if runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") {
+ t.Skipf("sysctl is not supported on iOS")
+ }
ift, err := Interfaces()
if err != nil {
t.Fatal(err)
}
func TestInterfaceMulticastAddrs(t *testing.T) {
+ if runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") {
+ t.Skipf("sysctl is not supported on iOS")
+ }
ift, err := Interfaces()
if err != nil {
t.Fatal(err)
}
func TestHostname(t *testing.T) {
+ if runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64") {
+ t.Skipf("sysctl is not supported on iOS")
+ }
hostname, err := Hostname()
if err != nil {
t.Fatal(err)