mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-05-02 22:17:12 +08:00
29 lines
598 B
Go
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)
|
|
}
|