1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-05-02 22:17:12 +08:00
hybridgroup.gobot/platforms/pebble/pebble_adaptor_test.go
Damian Gryski b5083e67d3 Move interface assertions to test files.
In general, these shouldn't live in the package proper, since they're
actually tests.
2016-07-13 11:04:30 -06:00

29 lines
598 B
Go

package pebble
import (
"testing"
"github.com/hybridgroup/gobot"
"github.com/hybridgroup/gobot/gobottest"
)
var _ gobot.Adaptor = (*PebbleAdaptor)(nil)
func initTestPebbleAdaptor() *PebbleAdaptor {
return NewPebbleAdaptor("pebble")
}
func TestPebbleAdaptor(t *testing.T) {
a := initTestPebbleAdaptor()
gobottest.Assert(t, a.Name(), "pebble")
}
func TestPebbleAdaptorConnect(t *testing.T) {
a := initTestPebbleAdaptor()
gobottest.Assert(t, len(a.Connect()), 0)
}
func TestPebbleAdaptorFinalize(t *testing.T) {
a := initTestPebbleAdaptor()
gobottest.Assert(t, len(a.Finalize()), 0)
}