Arremi/serialPort/serialPort_test.go
2018-03-19 10:25:16 +08:00

18 lines
255 B
Go

package serialPort
import (
"testing"
)
func TestGetSerialPorts(T *testing.T) {
portList, err := GetSerialPorts()
if err != nil {
T.Error("ERROR: ", err, "\n")
}
T.Log("Show all serial ports")
for _, p := range portList {
T.Log("\t", p)
}
}