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.
 
 
 
 
 
 
rition/rition-probe/probe/network_test.go

19 lines
395 B

package probe
import (
"fmt"
"testing"
)
func TestProbe_GetNetworkCounter(t *testing.T) {
counters := probeTest.GetNetworkCounterAll()
for _, counter := range counters {
fmt.Println(counter)
}
networkIoCount, connStat := probeTest.GetNetworkCounterOne("wlp0s20f3")
fmt.Printf("%+v", networkIoCount)
fmt.Printf("--------------------------")
fmt.Printf("%+v", connStat)
println()
}