gobot.io/x/gobot/v2@v2.1.0/platforms/pebble/pebble_adaptor_test.go (about) 1 package pebble 2 3 import ( 4 "testing" 5 6 "gobot.io/x/gobot/v2" 7 "gobot.io/x/gobot/v2/gobottest" 8 ) 9 10 var _ gobot.Adaptor = (*Adaptor)(nil) 11 12 func initTestAdaptor() *Adaptor { 13 return NewAdaptor() 14 } 15 16 func TestAdaptor(t *testing.T) { 17 a := initTestAdaptor() 18 gobottest.Assert(t, a.Name(), "Pebble") 19 } 20 func TestAdaptorConnect(t *testing.T) { 21 a := initTestAdaptor() 22 gobottest.Assert(t, a.Connect(), nil) 23 } 24 25 func TestAdaptorFinalize(t *testing.T) { 26 a := initTestAdaptor() 27 gobottest.Assert(t, a.Finalize(), nil) 28 }