diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-02-03 09:26:59 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-03 09:26:59 -0500 |
commit | 227d8815806fe63d07433707a356eb2e8c011f1e (patch) | |
tree | f74a6a4e4bdd43136779e11760c6c4cb59cea1fa /vendor/github.com/onsi/gomega/matchers.go | |
parent | 4699d5e02d3270b5cc89f7528b53b823fbf88796 (diff) | |
parent | fac6b784f84836888bb991360602fac2619788a6 (diff) | |
download | podman-227d8815806fe63d07433707a356eb2e8c011f1e.tar.gz podman-227d8815806fe63d07433707a356eb2e8c011f1e.tar.bz2 podman-227d8815806fe63d07433707a356eb2e8c011f1e.zip |
Merge pull request #5054 from containers/dependabot/go_modules/github.com/onsi/gomega-1.9.0
build(deps): bump github.com/onsi/gomega from 1.8.1 to 1.9.0
Diffstat (limited to 'vendor/github.com/onsi/gomega/matchers.go')
-rw-r--r-- | vendor/github.com/onsi/gomega/matchers.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vendor/github.com/onsi/gomega/matchers.go b/vendor/github.com/onsi/gomega/matchers.go index 9ec8893cb..11f5b1070 100644 --- a/vendor/github.com/onsi/gomega/matchers.go +++ b/vendor/github.com/onsi/gomega/matchers.go @@ -306,6 +306,20 @@ func ConsistOf(elements ...interface{}) types.GomegaMatcher { } } +//ContainElements succeeds if actual contains the passed in elements. The ordering of the elements does not matter. +//By default ContainElements() uses Equal() to match the elements, however custom matchers can be passed in instead. Here are some examples: +// +// Expect([]string{"Foo", "FooBar"}).Should(ContainElements("FooBar")) +// Expect([]string{"Foo", "FooBar"}).Should(ContainElements(ContainSubstring("Bar"), "Foo")) +// +//Actual must be an array, slice or map. +//For maps, ContainElements searches through the map's values. +func ContainElements(elements ...interface{}) types.GomegaMatcher { + return &matchers.ContainElementsMatcher{ + Elements: elements, + } +} + //HaveKey succeeds if actual is a map with the passed in key. //By default HaveKey uses Equal() to perform the match, however a //matcher can be passed in instead: |