gofmt, goimports

This commit is contained in:
John Pauley 2017-05-05 20:57:10 -04:00
parent 66f1ed09ff
commit 1bce89ab32
1 changed files with 4 additions and 3 deletions

View File

@ -5,9 +5,10 @@ import (
"errors"
"strings"
"gobot.io/x/gobot"
"gobot.io/x/gobot/gobottest"
"strings"
)
var _ gobot.Driver = (*INA3221Driver)(nil)
@ -170,11 +171,11 @@ func TestINA3221DriverGetLoadVoltageReadError(t *testing.T) {
func TestINA3221DriverName(t *testing.T) {
d := initTestINA3221Driver()
gobottest.Assert(t, strings.HasPrefix(d.Name(),"INA3221"), true)
gobottest.Assert(t, strings.HasPrefix(d.Name(), "INA3221"), true)
}
func TestINA3221DriverSetName(t *testing.T) {
d := initTestINA3221Driver()
d.SetName("foobot")
gobottest.Assert(t, d.Name(), "foobot")
}
}