blob: 07775e742ef5434676212b43e08ae65cb58d84eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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())
})
})
|