aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/onsi/gomega/gstruct/ignore_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/onsi/gomega/gstruct/ignore_test.go')
-rw-r--r--vendor/github.com/onsi/gomega/gstruct/ignore_test.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/vendor/github.com/onsi/gomega/gstruct/ignore_test.go b/vendor/github.com/onsi/gomega/gstruct/ignore_test.go
new file mode 100644
index 000000000..07775e742
--- /dev/null
+++ b/vendor/github.com/onsi/gomega/gstruct/ignore_test.go
@@ -0,0 +1,23 @@
+package gstruct_test
+
+import (
+ . "github.com/onsi/ginkgo"
+ . "github.com/onsi/gomega"
+ . "github.com/onsi/gomega/gstruct"
+)
+
+var _ = Describe("Ignore", func() {
+ It("should always succeed", func() {
+ Expect(nil).Should(Ignore())
+ Expect(struct{}{}).Should(Ignore())
+ Expect(0).Should(Ignore())
+ Expect(false).Should(Ignore())
+ })
+
+ It("should always fail", func() {
+ Expect(nil).ShouldNot(Reject())
+ Expect(struct{}{}).ShouldNot(Reject())
+ Expect(1).ShouldNot(Reject())
+ Expect(true).ShouldNot(Reject())
+ })
+})