Arremi/serialPort/serialPort_test.go

18 lines
255 B
Go
Raw Normal View History

2018-03-19 02:25:16 +00:00
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)
}
}