Skip to content

Commit

Permalink
Increase digispark test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
zankich committed Nov 20, 2014
1 parent 0c9b644 commit 43a4b90
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions platforms/digispark/digispark_adaptor_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package digispark

import (
"errors"
"testing"

"github.com/hybridgroup/gobot"
Expand Down Expand Up @@ -53,14 +54,14 @@ func initTestDigisparkAdaptor() *DigisparkAdaptor {
return a
}

func TestDigisparkAdaptorFinalize(t *testing.T) {
a := initTestDigisparkAdaptor()
gobot.Assert(t, a.Finalize(), nil)
func TestDigisparkAdaptorConnect(t *testing.T) {
a := NewDigisparkAdaptor("bot")
gobot.Assert(t, a.Connect(), errors.New("Error connecting to bot"))
}

func TestDigisparkAdaptorConnect(t *testing.T) {
func TestDigisparkAdaptorFinalize(t *testing.T) {
a := initTestDigisparkAdaptor()
gobot.Assert(t, a.Connect(), nil)
gobot.Assert(t, a.Finalize(), nil)
}

func TestDigisparkAdaptorIO(t *testing.T) {
Expand Down

0 comments on commit 43a4b90

Please sign in to comment.