hybridgroup.gobot/platforms/opencv/camera_driver_test.go

27 lines
443 B
Go
Raw Normal View History

2014-04-28 07:58:34 +08:00
package opencv
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
var _ = Describe("Camera", func() {
var (
2014-04-28 07:58:34 +08:00
c *CameraDriver
)
BeforeEach(func() {
2014-05-23 11:53:15 +08:00
c = NewCameraDriver("bot", 0)
})
PIt("Must be able to Start", func() {
2014-04-28 07:58:34 +08:00
Expect(c.Start()).To(Equal(true))
})
PIt("Must be able to Init", func() {
2014-04-28 07:58:34 +08:00
Expect(c.Init()).To(Equal(true))
})
PIt("Must be able to Halt", func() {
2014-04-28 07:58:34 +08:00
Expect(c.Halt()).To(Equal(true))
})
})