29 lines
506 B
Go
29 lines
506 B
Go
package pebble
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"gobot.io/x/gobot/v2"
|
|
"gobot.io/x/gobot/v2/gobottest"
|
|
)
|
|
|
|
var _ gobot.Adaptor = (*Adaptor)(nil)
|
|
|
|
func initTestAdaptor() *Adaptor {
|
|
return NewAdaptor()
|
|
}
|
|
|
|
func TestAdaptor(t *testing.T) {
|
|
a := initTestAdaptor()
|
|
gobottest.Assert(t, a.Name(), "Pebble")
|
|
}
|
|
func TestAdaptorConnect(t *testing.T) {
|
|
a := initTestAdaptor()
|
|
gobottest.Assert(t, a.Connect(), nil)
|
|
}
|
|
|
|
func TestAdaptorFinalize(t *testing.T) {
|
|
a := initTestAdaptor()
|
|
gobottest.Assert(t, a.Finalize(), nil)
|
|
}
|