Increase digispark test coverage

This commit is contained in:
Adrian Zankich 2014-11-19 18:44:55 -08:00
parent 0c9b644e6f
commit 43a4b90e01
1 changed files with 6 additions and 5 deletions

View File

@ -1,6 +1,7 @@
package digispark
import (
"errors"
"testing"
"github.com/hybridgroup/gobot"
@ -53,16 +54,16 @@ func initTestDigisparkAdaptor() *DigisparkAdaptor {
return a
}
func TestDigisparkAdaptorConnect(t *testing.T) {
a := NewDigisparkAdaptor("bot")
gobot.Assert(t, a.Connect(), errors.New("Error connecting to bot"))
}
func TestDigisparkAdaptorFinalize(t *testing.T) {
a := initTestDigisparkAdaptor()
gobot.Assert(t, a.Finalize(), nil)
}
func TestDigisparkAdaptorConnect(t *testing.T) {
a := initTestDigisparkAdaptor()
gobot.Assert(t, a.Connect(), nil)
}
func TestDigisparkAdaptorIO(t *testing.T) {
a := initTestDigisparkAdaptor()
a.InitServo()