1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-04-26 13:48:49 +08:00
hybridgroup.gobot/platforms/opencv/camera_driver_test.go

29 lines
513 B
Go
Raw Normal View History

2014-04-27 16:58:34 -07:00
package opencv
import (
2014-06-13 13:45:50 -07:00
"github.com/hybridgroup/gobot"
"testing"
)
2014-06-13 16:01:39 -07:00
func initTestCameraDriver() *CameraDriver {
return NewCameraDriver("bot", 0)
2014-06-13 13:45:50 -07:00
}
2014-06-13 16:01:39 -07:00
func TestCameraDriverStart(t *testing.T) {
2014-06-13 13:45:50 -07:00
t.SkipNow()
2014-06-13 16:01:39 -07:00
d := initTestCameraDriver()
gobot.Expect(t, d.Start(), true)
2014-06-13 13:45:50 -07:00
}
2014-06-13 16:01:39 -07:00
func TestCameraDriverHalt(t *testing.T) {
2014-06-13 13:45:50 -07:00
t.SkipNow()
2014-06-13 16:01:39 -07:00
d := initTestCameraDriver()
gobot.Expect(t, d.Halt(), true)
2014-06-13 13:45:50 -07:00
}
2014-06-13 16:01:39 -07:00
func TestCameraDriverInit(t *testing.T) {
2014-06-13 13:45:50 -07:00
t.SkipNow()
2014-06-13 16:01:39 -07:00
d := initTestCameraDriver()
gobot.Expect(t, d.Init(), true)
2014-06-13 13:45:50 -07:00
}