Searched refs:IsEven (Results 1 – 6 of 6) sorted by relevance
| /freebsd-13.1/contrib/googletest/googlemock/include/gmock/ |
| H A D | gmock-generated-matchers.h.pump | 407 // MATCHER(IsEven, "") { return (arg % 2) == 0; } 412 // EXPECT_CALL(mock_foo, Bar(IsEven())); 417 // EXPECT_THAT(some_expression, IsEven()); 426 // matcher name IsEven. 435 // polymorphic. For example, IsEven() can be used to match any type 437 // a bool. In the "Bar(IsEven())" example above, if method Bar()
|
| /freebsd-13.1/contrib/googletest/googletest/test/ |
| H A D | gtest_unittest.cc | 2132 bool IsEven(int n) { in IsEven() function 2138 bool operator()(int n) { return IsEven(n); } in operator ()() 2144 if (IsEven(n)) { in AssertIsEven() 2156 if (IsEven(n)) in ResultIsEven() 2166 if (IsEven(n)) in ResultIsEvenNoExplanation() 2182 return IsEven(n1 + n2); in SumIsEven2() 2189 return IsEven(n1 + n2 + n3); in operator ()() 2199 if (IsEven(sum)) { in AssertSumIsEven4() 2217 if (IsEven(sum)) { in operator ()() 2237 ASSERT_PRED1(IsEven, 4); in TEST() [all …]
|
| /freebsd-13.1/contrib/googletest/googlemock/test/ |
| H A D | gmock-generated-matchers_test.cc | 736 MATCHER(IsEven, "") { return (arg % 2) == 0; } 739 const Matcher<int> m = IsEven(); in TEST()
|
| /freebsd-13.1/contrib/googletest/googletest/docs/ |
| H A D | advanced.md | 189 example, if you define `IsEven()` as: 192 ::testing::AssertionResult IsEven(int n) { 203 bool IsEven(int n) { 208 the failed assertion `EXPECT_TRUE(IsEven(Fib(4)))` will print: 211 Value of: IsEven(Fib(4)) 219 Value of: IsEven(Fib(4)) 230 ::testing::AssertionResult IsEven(int n) { 238 Then the statement `EXPECT_FALSE(IsEven(Fib(6)))` will print 241 Value of: IsEven(Fib(6))
|
| /freebsd-13.1/contrib/googletest/googlemock/docs/ |
| H A D | CheatSheet.md | 339 | `MATCHER(IsEven, "") { return (arg % 2) == 0; }` | Defines a matcher `IsEven()` to match an even …
|
| H A D | CookBook.md | 966 int IsEven(int n) { return (n % 2) == 0 ? 1 : 0; } 970 EXPECT_CALL(foo, Bar(Truly(IsEven)));
|