hybridgroup.gobot/platforms/opencv/camera_driver_test.go

29 lines
513 B
Go
Raw Normal View History

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