Home
last modified time | relevance | path

Searched refs:ElementsAre (Results 1 – 10 of 10) sorted by relevance

/freebsd-13.1/contrib/googletest/googlemock/test/
H A Dgmock-generated-matchers_test.cc73 using testing::ElementsAre;
316 Matcher<vector<int> > m = ElementsAre(); in TEST()
411 EXPECT_THAT(test_vector, ElementsAre(_)); in TEST()
418 EXPECT_THAT(test_vector, ElementsAre(4)); in TEST()
479 EXPECT_THAT(nested, ElementsAre(ElementsAre('H', Ne('e')), in TEST()
481 EXPECT_THAT(nested, Not(ElementsAre(ElementsAre('H', 'e'), in TEST()
503 EXPECT_THAT(array, ElementsAre(0, 1, _)); in TEST()
526 .With(ElementsAre(0, 1)); in TEST()
532 EXPECT_THAT(a2, ElementsAre(ElementsAre('h', 'i', '\0'), in TEST()
535 EXPECT_THAT(a2, ElementsAre(Not(ElementsAre('h', 'o', '\0')), in TEST()
[all …]
H A Dgmock-matchers_test.cc5112 ElementsAre(3, 2, 2, 1))); in TEST()
5162 EXPECT_THAT(numbers, WhenSorted(ElementsAre())); in TEST()
5163 EXPECT_THAT(numbers, Not(WhenSorted(ElementsAre(1)))); in TEST()
5197 EXPECT_THAT(ifib, WhenSorted(ElementsAre(Pair(1, 1), in TEST()
5203 EXPECT_THAT(ifib, Not(WhenSorted(ElementsAre(Pair(8, 6), in TEST()
5215 EXPECT_THAT(d, WhenSorted(ElementsAre(1, 2))); in TEST()
5216 EXPECT_THAT(d, Not(WhenSorted(ElementsAre(2, 1)))); in TEST()
5382 EXPECT_THAT(s, WhenSorted(ElementsAre(1, 2, 3, 4, 5))); in TEST()
5644 EXPECT_THAT(s, ElementsAre(1, 2, 3, 4, 5)); in TEST()
5645 EXPECT_THAT(s, Not(ElementsAre(2, 1, 4, 5, 3))); in TEST()
[all …]
H A Dgmock_link_test.h140 using testing::ElementsAre;
589 ON_CALL(mock, VoidFromVector(ElementsAre('a', _))).WillByDefault(Return()); in TEST()
H A Dgmock-actions_test.cc567 EXPECT_THAT(result, ::testing::ElementsAre(0, 1, 2, 3, 4)); in TEST()
/freebsd-13.1/contrib/googletest/googlemock/include/gmock/
H A Dgmock-generated-matchers.h.pump267 // ElementsAre(e_1, e_2, ... e_n) matches an STL-style container with
270 // ElementsAre() can be either a value or a matcher. We support up to
273 // The use of DecayArray in the implementation allows ElementsAre()
277 // NOTE: Since ElementsAre() cares about the order of the elements, it
296 ElementsAre($for j, [[const T$j& e$j]]) {
306 // UnorderedElementsAre(e_1, e_2, ..., e_n) is an ElementsAre extension
H A Dgmock-generated-matchers.h572 ElementsAre() { in ElementsAre() function
581 ElementsAre(const T1& e1) { in ElementsAre() function
592 ElementsAre(const T1& e1, const T2& e2) { in ElementsAre() function
605 ElementsAre(const T1& e1, const T2& e2, const T3& e3) { in ElementsAre() function
620 ElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4) { in ElementsAre() function
637 ElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, in ElementsAre() function
658 ElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, in ElementsAre() function
681 ElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, in ElementsAre() function
706 ElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, in ElementsAre() function
734 ElementsAre(const T1& e1, const T2& e2, const T3& e3, const T4& e4, in ElementsAre() function
[all …]
H A Dgmock-matchers.h5204 ElementsAre(const Args&... matchers) {
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Testing/Support/
H A DError.h212 new detail::ErrorMessageMatches(testing::ElementsAre(Matcher...))); in FailedWithMessage()
/freebsd-13.1/contrib/googletest/googlemock/docs/
H A DCheatSheet.md247 | `ElementsAre(e0, e1, ..., en)` | `argument` has `n + 1` elements, where the i-th element matches …
248 …tsAreArray(array)`, or `ElementsAreArray(array, count)` | The same as `ElementsAre()` except that …
254 …g the `<` operator, it matches container matcher `m`. E.g. `WhenSorted(ElementsAre(1, 2, 3))` veri…
255 …f `<` is used to sort `argument`. E.g. `WhenSortedBy(std::greater<int>(), ElementsAre(3, 2, 1))`. |
H A DCookBook.md1153 You can use the `ElementsAre()` or `UnorderedElementsAre()` matcher in
1158 using ::testing::ElementsAre;
1165 EXPECT_CALL(mock, Foo(ElementsAre(1, Gt(0), _, 5)));
1188 `ElementsAre()` and `UnorderedElementsAre()` are overloaded to take 0
1220 …* `ElementsAre*()` can be used to match _any_ container that implements the STL iterator pattern (…
1221 * You can use nested `ElementsAre*()` to match nested (multi-dimensional) containers.
1222 …* If the container is passed by pointer instead of by reference, just write `Pointee(ElementsAre*(…
1223 …* The order of elements _matters_ for `ElementsAre*()`. Therefore don't use it with containers who…