blob: 7d19a0e13f395b55cc7bbf2198265db1cac5f1ab [file] [log] [blame] [edit]
// Package to define an interface to mirror github.com/tarm/serial/Port.
package serial
// Port is an interface definition for functions implemented by serial.Port.
//
// This is used to facilitate testing.
type Port interface {
Close() (err error)
Flush() error
Read(b []byte) (n int, err error)
Write(b []byte) (n int, err error)
}