1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-04-29 13:49:14 +08:00
hybridgroup.gobot/platforms/beaglebone/beaglebone_adaptor_test.go

26 lines
447 B
Go
Raw Normal View History

2014-04-28 04:39:51 -07:00
package beaglebone
import (
2014-06-12 16:12:38 -07:00
"github.com/hybridgroup/gobot"
"testing"
)
2014-06-12 16:12:38 -07:00
var b *BeagleboneAdaptor
2014-06-12 16:12:38 -07:00
func init() {
b = NewBeagleboneAdaptor("bot")
}
2014-06-12 16:12:38 -07:00
func TestFinalize(t *testing.T) {
gobot.Expect(t, b.Finalize(), true)
}
func TestConnect(t *testing.T) {
gobot.Expect(t, b.Connect(), true)
}
func TestDisconnect(t *testing.T) {
gobot.Expect(t, b.Disconnect(), true)
}
func TestReconnect(t *testing.T) {
gobot.Expect(t, b.Reconnect(), true)
}