Skip to content

Commit

Permalink
modules updated
Browse files Browse the repository at this point in the history
  • Loading branch information
andygeiss committed Jul 18, 2019
1 parent dd149e4 commit c22385f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
5 changes: 2 additions & 3 deletions device/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@ package device_test

import (
"github.com/andygeiss/assert"
"github.com/andygeiss/assert/is"
"github.com/andygeiss/esp32/device"
"testing"
)

func TestControllerSetupErrorShouldBeNil(t *testing.T) {
ctrl := device.NewController()
err := ctrl.Setup()
assert.That(t, err, is.Equal(nil))
assert.That(t, err, nil)
}

func TestControllerLoopErrorShouldBeNil(t *testing.T) {
ctrl := device.NewController()
ctrl.Setup()
err := ctrl.Loop()
assert.That(t, err, is.Equal(nil))
assert.That(t, err, nil)
}
10 changes: 5 additions & 5 deletions examples/first/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ package device_test

import (
"github.com/andygeiss/assert"
"github.com/andygeiss/assert/is"
"github.com/andygeiss/esp32/device"
"testing"
)

func TestControllerSetupErrorShouldBeNil(t *testing.T) {
ctrl := device.NewController()
err := ctrl.Setup()
assert.That(t, err, is.Equal(nil))
assert.That(t, err, nil)
}

func TestControllerLoopErrorShouldBeNil(t *testing.T) {
ctrl := device.NewController()
ctrl.Setup()
err := ctrl.Loop()
assert.That(t, err, is.Equal(nil))
err := ctrl.Setup()
assert.That(t, err, nil)
err = ctrl.Loop()
assert.That(t, err, nil)
}
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ module github.com/andygeiss/esp32
go 1.12

require (
github.com/andygeiss/assert v0.0.6
github.com/andygeiss/esp32-controller v0.0.1
github.com/andygeiss/assert v0.0.7
github.com/andygeiss/esp32-controller v0.0.2
)
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/andygeiss/assert v0.0.3/go.mod h1:ztUvWrfUo43X0zMA1XfX8esn5Uavk6ANSKTT0w2qvAI=
github.com/andygeiss/assert v0.0.6 h1:FyiAIudVwnxp55GIcNOaZ2ABr8n2RI9SXmaXG7+Y53o=
github.com/andygeiss/assert v0.0.6/go.mod h1:ztUvWrfUo43X0zMA1XfX8esn5Uavk6ANSKTT0w2qvAI=
github.com/andygeiss/esp32-controller v0.0.1 h1:y9GCgCD8CBVRC8CD8w/UydgsA0S2rfvOvQkfe3N8a8s=
github.com/andygeiss/esp32-controller v0.0.1/go.mod h1:sb9Q7FWSZQzlEsqCMuMr52Huw6eaRFr5+tzpcPZAqOo=
github.com/andygeiss/assert v0.0.7 h1:z6+F+CfaeEyC48nSe7kstV8nOl4edUrhpqPIBzc4C4c=
github.com/andygeiss/assert v0.0.7/go.mod h1:ztUvWrfUo43X0zMA1XfX8esn5Uavk6ANSKTT0w2qvAI=
github.com/andygeiss/esp32-controller v0.0.2 h1:PX+hOW3ZVdnBnbtqCqPJkotv8Oie5m7xhtPP9gOPMAU=
github.com/andygeiss/esp32-controller v0.0.2/go.mod h1:T2MNTWCrhzio8/rP0FbwKRbrkUY4adcyY7z6hpc4iUk=

0 comments on commit c22385f

Please sign in to comment.