Searched refs:IsEven (Results 1 – 5 of 5) sorted by relevance
2174 bool IsEven(int n) { return (n % 2) == 0; } in IsEven() function2178 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 …]
271 | `MATCHER(IsEven, "") { return (arg % 2) == 0; }` | Defines a matcher `IsEven()` to match an even …
78 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 print130 Value of: IsEven(Fib(6))
1158 int IsEven(int n) { return (n % 2) == 0 ? 1 : 0; }1161 EXPECT_CALL(foo, Bar(Truly(IsEven)));
999 MATCHER(IsEven, "") { return (arg % 2) == 0; }1002 const Matcher<int> m = IsEven(); in TEST()