Home
last modified time | relevance | path

Searched refs:IsEven (Results 1 – 5 of 5) sorted by relevance

/freebsd-14.2/contrib/googletest/googletest/test/
H A Dgtest_unittest.cc2174 bool IsEven(int n) { return (n % 2) == 0; } in IsEven() function
2178 bool operator()(int n) { return IsEven(n); } in operator ()()
2184 if (IsEven(n)) { in AssertIsEven()
2196 if (IsEven(n)) in ResultIsEven()
2206 if (IsEven(n)) in ResultIsEvenNoExplanation()
2221 bool SumIsEven2(int n1, int n2) { return IsEven(n1 + n2); } in SumIsEven2()
2235 if (IsEven(sum)) { in AssertSumIsEven4()
2253 if (IsEven(sum)) { in operator ()()
2271 ASSERT_PRED1(IsEven, 4); in TEST()
2276 EXPECT_PRED1(IsEven, 5) << "This failure is expected."; in TEST()
[all …]
/freebsd-14.2/contrib/googletest/docs/reference/
H A Dmatchers.md271 | `MATCHER(IsEven, "") { return (arg % 2) == 0; }` | Defines a matcher `IsEven()` to match an even …
/freebsd-14.2/contrib/googletest/docs/
H A Dadvanced.md78 example, if you define `IsEven()` as:
81 testing::AssertionResult IsEven(int n) {
92 bool IsEven(int n) {
97 the failed assertion `EXPECT_TRUE(IsEven(Fib(4)))` will print:
100 Value of: IsEven(Fib(4))
108 Value of: IsEven(Fib(4))
119 testing::AssertionResult IsEven(int n) {
127 Then the statement `EXPECT_FALSE(IsEven(Fib(6)))` will print
130 Value of: IsEven(Fib(6))
H A Dgmock_cook_book.md1158 int IsEven(int n) { return (n % 2) == 0 ? 1 : 0; }
1161 EXPECT_CALL(foo, Bar(Truly(IsEven)));
/freebsd-14.2/contrib/googletest/googlemock/test/
H A Dgmock-matchers-misc_test.cc999 MATCHER(IsEven, "") { return (arg % 2) == 0; }
1002 const Matcher<int> m = IsEven(); in TEST()