4 . "github.com/onsi/ginkgo"
5 . "github.com/onsi/gomega"
6 . "github.com/onsi/gomega/gstruct"
9 var _ = Describe("PointTo", func() {
10 It("should fail when passed nil", func() {
15 It("should succeed when passed non-nil pointer", func() {
17 Ω(&s).Should(PointTo(Ignore()))
20 It("should unwrap the pointee value", func() {
22 Ω(&i).Should(PointTo(Equal(1)))
23 Ω(&i).ShouldNot(PointTo(Equal(2)))
26 It("should work with nested pointers", func() {
30 Ω(ipp).Should(PointTo(PointTo(Equal(1))))
31 Ω(ipp).ShouldNot(PointTo(PointTo(Equal(2))))