Skip to content

Commit

Permalink
ble: move client adaptor test code to test file
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Dec 27, 2016
1 parent 36c39ab commit ad0fef0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions platforms/ble/ble_client_adaptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ import (
"strings"

"github.com/currantlabs/gatt"
"gobot.io/x/gobot"
)

var _ gobot.Adaptor = (*ClientAdaptor)(nil)

// Represents a Client Connection to a BLE Peripheral
type ClientAdaptor struct {
name string
Expand Down
3 changes: 3 additions & 0 deletions platforms/ble/ble_client_adaptor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ package ble
import (
"testing"

"gobot.io/x/gobot"
"gobot.io/x/gobot/gobottest"
)

var _ gobot.Adaptor = (*ClientAdaptor)(nil)

func initTestBLEClientAdaptor() *ClientAdaptor {
a := NewClientAdaptor("D7:99:5A:26:EC:38")
return a
Expand Down

0 comments on commit ad0fef0

Please sign in to comment.