hybridgroup.gobot/platforms/mavlink/mavlink_driver_test.go

24 lines
449 B
Go
Raw Normal View History

2014-08-01 14:39:52 +08:00
package mavlink
import (
"testing"
"github.com/hybridgroup/gobot"
)
func initTestMavlinkDriver() *MavlinkDriver {
return NewMavlinkDriver(NewMavlinkAdaptor("myAdaptor", "/dev/null"), "myDriver")
}
func TestMavlinkDriverStart(t *testing.T) {
t.SkipNow()
d := initTestMavlinkDriver()
gobot.Assert(t, d.Start(), true)
}
func TestMavlinkDriverHalt(t *testing.T) {
t.SkipNow()
d := initTestMavlinkDriver()
gobot.Assert(t, d.Halt(), true)
}