23 lines
379 B
Go
23 lines
379 B
Go
|
package openwrt
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestNetworkListInterfaces(t *testing.T) {
|
||
|
net := NewNetwork()
|
||
|
iface := net.ListInterfaces()
|
||
|
for _, ife := range iface {
|
||
|
fmt.Printf("%s\n", ife.Name)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func TestListWirelessInterfaces(t *testing.T) {
|
||
|
net := NewNetwork()
|
||
|
res := net.ListWirelessInterfaces()
|
||
|
for _, el := range res {
|
||
|
fmt.Printf("%s\n", el.Name)
|
||
|
}
|
||
|
}
|