hybridgroup.gobot/platforms/pebble/pebble_adaptor_test.go

29 lines
500 B
Go
Raw Permalink Normal View History

2014-05-03 06:22:05 +08:00
package pebble
import (
2014-06-14 05:18:57 +08:00
"testing"
"gobot.io/x/gobot"
"gobot.io/x/gobot/gobottest"
2014-05-03 06:22:05 +08:00
)
var _ gobot.Adaptor = (*Adaptor)(nil)
func initTestAdaptor() *Adaptor {
return NewAdaptor()
2014-06-14 05:18:57 +08:00
}
2014-05-03 06:22:05 +08:00
func TestAdaptor(t *testing.T) {
a := initTestAdaptor()
gobottest.Assert(t, a.Name(), "Pebble")
2014-12-18 06:04:18 +08:00
}
func TestAdaptorConnect(t *testing.T) {
a := initTestAdaptor()
gobottest.Assert(t, a.Connect(), nil)
2014-06-14 05:18:57 +08:00
}
2014-06-14 07:01:39 +08:00
func TestAdaptorFinalize(t *testing.T) {
a := initTestAdaptor()
gobottest.Assert(t, a.Finalize(), nil)
2014-06-14 05:18:57 +08:00
}