Searched refs:IsEven (Results 1 – 6 of 6) sorted by relevance
/freebsd/contrib/googletest/googletest/test/ |
H A D | gtest_unittest.cc | 2178 bool IsEven(int n) { return (n % 2) == 0; } in IsEven() function 2182 bool operator()(int n) { return IsEven(n); } in operator ()() 2188 if (IsEven(n)) { in AssertIsEven() 2200 if (IsEven(n)) in ResultIsEven() 2210 if (IsEven(n)) in ResultIsEvenNoExplanation() 2225 bool SumIsEven2(int n1, int n2) { return IsEven(n1 + n2); } in SumIsEven2() 2230 bool operator()(int n1, int n2, int n3) { return IsEven(n1 + n2 + n3); } in operator ()() 2239 if (IsEven(sum)) { in AssertSumIsEven4() 2257 if (IsEven(sum)) { in operator ()() 2275 ASSERT_PRED1(IsEven, 4); in TEST() [all …]
|
/freebsd/contrib/googletest/docs/reference/ |
H A D | matchers.md | 271 | `MATCHER(IsEven, "") { return (arg % 2) == 0; }` | Defines a matcher `IsEven()` to match an even …
|
/freebsd/contrib/googletest/docs/ |
H A D | advanced.md | 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 print 130 Value of: IsEven(Fib(6))
|
H A D | gmock_cook_book.md | 1158 int IsEven(int n) { return (n % 2) == 0 ? 1 : 0; } 1161 EXPECT_CALL(foo, Bar(Truly(IsEven)));
|
/freebsd/contrib/googletest/googlemock/test/ |
H A D | gmock-matchers-misc_test.cc | 999 MATCHER(IsEven, "") { return (arg % 2) == 0; } 1002 const Matcher<int> m = IsEven(); in TEST()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | SimplifyLibCalls.cpp | 2884 static Value *optimizeSymmetricCall(CallInst *CI, bool IsEven, in optimizeSymmetricCall() argument 2894 if (IsEven) { in optimizeSymmetricCall() 2903 if (IsEven && (match(Src, m_FAbs(m_Value(X))) || in optimizeSymmetricCall()
|