1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-04-27 13:48:56 +08:00
hybridgroup.gobot/platforms/joystick/joystick_driver_test.go

29 lines
570 B
Go
Raw Normal View History

2014-04-27 18:02:39 -07:00
package joystick
import (
2014-06-13 12:54:21 -07:00
"github.com/hybridgroup/gobot"
"testing"
)
2014-06-13 16:01:39 -07:00
func initTestJoystickDriver() *JoystickDriver {
return NewJoystickDriver(NewJoystickAdaptor("bot"), "bot", "/dev/null")
2014-06-13 12:54:21 -07:00
}
2014-06-13 16:01:39 -07:00
func TestJoystickDriverStart(t *testing.T) {
2014-06-13 12:54:21 -07:00
t.SkipNow()
2014-06-13 16:01:39 -07:00
d := initTestJoystickDriver()
gobot.Assert(t, d.Start(), true)
2014-06-13 12:54:21 -07:00
}
2014-06-13 16:01:39 -07:00
func TestJoystickDriverHalt(t *testing.T) {
2014-06-13 12:54:21 -07:00
t.SkipNow()
2014-06-13 16:01:39 -07:00
d := initTestJoystickDriver()
gobot.Assert(t, d.Halt(), true)
2014-06-13 12:54:21 -07:00
}
2014-06-13 16:01:39 -07:00
func TestJoystickDriverInit(t *testing.T) {
2014-06-13 12:54:21 -07:00
t.SkipNow()
2014-06-13 16:01:39 -07:00
d := initTestJoystickDriver()
gobot.Assert(t, d.Init(), true)
2014-06-13 12:54:21 -07:00
}