2014-05-02 17:22:05 -05:00
|
|
|
package pebble
|
|
|
|
|
|
|
|
import (
|
2014-06-13 14:18:57 -07:00
|
|
|
"testing"
|
2014-11-28 18:10:05 -08:00
|
|
|
|
2016-02-22 00:21:24 -05:00
|
|
|
"github.com/hybridgroup/gobot/gobottest"
|
2014-05-02 17:22:05 -05:00
|
|
|
)
|
|
|
|
|
2014-06-13 16:01:39 -07:00
|
|
|
func initTestPebbleAdaptor() *PebbleAdaptor {
|
|
|
|
return NewPebbleAdaptor("pebble")
|
2014-06-13 14:18:57 -07:00
|
|
|
}
|
2014-05-02 17:22:05 -05:00
|
|
|
|
2014-12-17 14:04:18 -08:00
|
|
|
func TestPebbleAdaptor(t *testing.T) {
|
|
|
|
a := initTestPebbleAdaptor()
|
2016-02-22 00:21:24 -05:00
|
|
|
gobottest.Assert(t, a.Name(), "pebble")
|
2014-12-17 14:04:18 -08:00
|
|
|
}
|
2014-06-13 16:01:39 -07:00
|
|
|
func TestPebbleAdaptorConnect(t *testing.T) {
|
|
|
|
a := initTestPebbleAdaptor()
|
2016-02-22 00:21:24 -05:00
|
|
|
gobottest.Assert(t, len(a.Connect()), 0)
|
2014-06-13 14:18:57 -07:00
|
|
|
}
|
2014-06-13 16:01:39 -07:00
|
|
|
|
|
|
|
func TestPebbleAdaptorFinalize(t *testing.T) {
|
|
|
|
a := initTestPebbleAdaptor()
|
2016-02-22 00:21:24 -05:00
|
|
|
gobottest.Assert(t, len(a.Finalize()), 0)
|
2014-06-13 14:18:57 -07:00
|
|
|
}
|