gobot.io/x/gobot@v1.16.0/platforms/firmata/ble_firmata_adaptor_test.go (about) 1 // +build !windows 2 3 package firmata 4 5 import ( 6 "strings" 7 "testing" 8 9 "gobot.io/x/gobot" 10 "gobot.io/x/gobot/gobottest" 11 ) 12 13 var _ gobot.Adaptor = (*BLEAdaptor)(nil) 14 15 func initTestBLEAdaptor() *BLEAdaptor { 16 a := NewBLEAdaptor("DEVICE", "123", "456") 17 return a 18 } 19 20 func TestFirmataBLEAdaptor(t *testing.T) { 21 a := initTestBLEAdaptor() 22 gobottest.Assert(t, strings.HasPrefix(a.Name(), "BLEFirmata"), true) 23 }