1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-05-02 22:17:12 +08:00
hybridgroup.gobot/platforms/ble/device_information_driver_test.go
deadprogram ddb889a105 ble: use new improved default namer to avoid API conflicts
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-02 15:56:26 +01:00

22 lines
471 B
Go

package ble
import (
"strings"
"testing"
"gobot.io/x/gobot"
"gobot.io/x/gobot/gobottest"
)
var _ gobot.Driver = (*DeviceInformationDriver)(nil)
func initTestDeviceInformationDriver() *DeviceInformationDriver {
d := NewDeviceInformationDriver(NewClientAdaptor("D7:99:5A:26:EC:38"))
return d
}
func TestDeviceInformationDriver(t *testing.T) {
d := initTestDeviceInformationDriver()
gobottest.Assert(t, strings.HasPrefix(d.Name(), "DeviceInformation"), true)
}