2014-04-28 07:58:34 +08:00
|
|
|
package opencv
|
2014-04-26 18:11:51 +08:00
|
|
|
|
|
|
|
import (
|
2014-06-14 04:45:50 +08:00
|
|
|
"github.com/hybridgroup/gobot"
|
|
|
|
"testing"
|
2014-04-26 18:11:51 +08:00
|
|
|
)
|
|
|
|
|
2014-06-14 07:01:39 +08:00
|
|
|
func initTestCameraDriver() *CameraDriver {
|
|
|
|
return NewCameraDriver("bot", 0)
|
2014-06-14 04:45:50 +08:00
|
|
|
}
|
2014-04-26 18:11:51 +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()
|
2014-07-18 02:41:47 +08:00
|
|
|
gobot.Assert(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()
|
2014-07-18 02:41:47 +08:00
|
|
|
gobot.Assert(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()
|
2014-07-18 02:41:47 +08:00
|
|
|
gobot.Assert(t, d.Init(), true)
|
2014-06-14 04:45:50 +08:00
|
|
|
}
|