github.com/onsi/gomega@v1.32.0/gstruct/ignore_test.go (about) 1 package gstruct_test 2 3 import ( 4 . "github.com/onsi/ginkgo/v2" 5 . "github.com/onsi/gomega" 6 . "github.com/onsi/gomega/gstruct" 7 ) 8 9 var _ = Describe("Ignore", func() { 10 It("should always succeed", func() { 11 Expect(nil).Should(Ignore()) 12 Expect(struct{}{}).Should(Ignore()) 13 Expect(0).Should(Ignore()) 14 Expect(false).Should(Ignore()) 15 }) 16 17 It("should always fail", func() { 18 Expect(nil).ShouldNot(Reject()) 19 Expect(struct{}{}).ShouldNot(Reject()) 20 Expect(1).ShouldNot(Reject()) 21 Expect(true).ShouldNot(Reject()) 22 }) 23 })