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