Home | History | Annotate | Download | only in test

Lines Matching refs:Not

19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
104 using testing::Not;
384 *os << "doesn't reference g_bar and is not zero";
444 const Matcher<int> not_m1 = Not(m1);
455 const Matcher<char> not_m2 = Not(m2);
471 // An int can be statically (although not implicitly) cast to a
739 // is a "bare" type (i.e. not in the form of const U or U&). If v's
740 // type is not T, the compiler will generate a message about
967 // of Ref(base), but not vice versa.
1142 EXPECT_THAT(p, Not(Key(42)));
1144 EXPECT_THAT(p, Not(Key(Lt(25))));
1152 EXPECT_THAT(p, Not(Key(is_negative)));
1161 EXPECT_THAT(container, Not(Contains(Key(3))));
1170 EXPECT_THAT(container, Not(Contains(Key(25))));
1177 EXPECT_THAT(container, Not(Contains(Key(3))));
1198 // Double and triple negation (1 or 2 times not and description of negation).
1199 Matcher<const pair<int, int>&> m2 = Not(Pair(Not(13), 42));
1209 EXPECT_EQ("whose first field does not match, which is 1 less than 0",
1214 EXPECT_EQ("whose second field does not match, which is 2 less than 0",
1219 EXPECT_EQ("whose first field does not match, which is 1 less than 0",
1251 EXPECT_THAT(p, Not(Pair(42, "foo")));
1252 EXPECT_THAT(p, Not(Pair(Lt(25), "foo")));
1255 EXPECT_THAT(p, Not(Pair(25, "bar")));
1256 EXPECT_THAT(p, Not(Pair(25, Not("foo"))));
1259 EXPECT_THAT(p, Not(Pair(13, "bar")));
1260 EXPECT_THAT(p, Not(Pair(Lt(13), HasSubstr("a"))));
1268 EXPECT_THAT(p, Not(Pair(is_negative, _)));
1270 EXPECT_THAT(p, Not(Pair(_, is_negative)));
1281 EXPECT_THAT(container, Not(Contains(Pair(3, _))));
1845 // Tests that Not(m) matches any value that doesn't match m.
1848 m = Not(Eq(2));
1853 // Tests that Not(m) describes itself properly.
1855 Matcher<int> m = Not(Eq(5));
1859 // Tests that monomorphic matchers are safely cast by the Not matcher.
1864 Matcher<const int&> m = Not(greater_than_5);
1865 Matcher<int&> m2 = Not(greater_than_5);
1866 Matcher<int&> m3 = Not(m);
2216 // type of this function is not bool. It's OK as Truly() accepts any
2349 EXPECT_THAT(make_tuple(2L, 1), Not(AllArgs(Lt())));
2354 EXPECT_THAT('a', Not(AllArgs(Eq('b'))));
2398 // VC++ prior to version 8.0 SP1 has a bug where it will not see any
2423 EXPECT_FATAL_FAILURE(ASSERT_THAT(n, ::testing::Not(::testing::Ref(n))),
2425 "Expected: does not reference the variable @");
2427 EXPECT_FATAL_FAILURE(ASSERT_THAT(n, ::testing::Not(::testing::Ref(n))),
2775 EXPECT_EQ("does not point to a value that is > 3",
2853 // Tests that Field(&Foo::field, ...) works when field is not copyable.
2859 m = Field(&AStruct::z, Not(Truly(ValueIsPositive)));
2872 // Matching a pointer that is not NULL.
2904 // argument type are compatible but not the same.
2968 // Tests that Field() does not match the NULL pointer.
3077 m = Property(&AClass::x, Not(Ref(x)));
3182 // Tests that Property() does not match the NULL pointer.
3411 *os << "is not divisible by " << divider_;
3618 // but (as above) not reported in the explanation.
3657 EXPECT_THAT(a1, Not(ContainerEq(b)));
3667 EXPECT_THAT(a1, Not(ContainerEq(b)));
3671 EXPECT_THAT(a1, ElementsAre(Not(ContainerEq(b[0])), ContainerEq(a2[1])));
3681 EXPECT_THAT(make_tuple(p1, 3), Not(ContainerEq(b)));
3684 EXPECT_THAT(make_tuple(p1, 3), Not(ContainerEq(c)));
3757 EXPECT_EQ("not (is even)",
3843 Matcher<vector<int> > m2 = Not(m);
3851 EXPECT_THAT(some_vector, Not(Each(1)));
3855 EXPECT_THAT(some_vector, Not(Each(3)));
3864 EXPECT_THAT(another_vector, Not(Each(string("fee"))));
3880 EXPECT_THAT(another_map, Not(Each(make_pair(string("fee"), 1))));
3881 EXPECT_THAT(another_map, Not(Each(make_pair(string("fum"), 1))));
3888 EXPECT_THAT(a, Not(Each(Gt(1))));
3895 EXPECT_THAT(make_tuple(pointer, 2), Not(Each(Gt(1))));
3962 EXPECT_THAT(lhs, Not(Pointwise(Gt(), rhs)));
3972 EXPECT_THAT(lhs, Not(Pointwise(Lt(), rhs)));
3978 EXPECT_THAT(lhs, Not(Pointwise(Gt(), rhs)));
3983 EXPECT_THAT(lhs, Not(Pointwise(Gt(), rhs2)));
3989 EXPECT_THAT(lhs, Not(Pointwise(IsHalfOf(), rhs)));