gobot.io/x/gobot@v1.16.0/platforms/holystone/hs200/hs200_driver_test.go (about)

     1  package hs200
     2  
     3  import (
     4  	"testing"
     5  
     6  	"gobot.io/x/gobot"
     7  	"gobot.io/x/gobot/gobottest"
     8  )
     9  
    10  var _ gobot.Driver = (*Driver)(nil)
    11  
    12  func TestHS200Driver(t *testing.T) {
    13  	d := NewDriver("127.0.0.1:8080", "127.0.0.1:9090")
    14  
    15  	gobottest.Assert(t, d.tcpaddress, "127.0.0.1:8080")
    16  	gobottest.Assert(t, d.udpaddress, "127.0.0.1:9090")
    17  }