mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-04-26 13:48:49 +08:00
Increase digispark test coverage
This commit is contained in:
parent
0c9b644e6f
commit
43a4b90e01
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user