Definition at line 6321 of file gmock-matchers_test.cc.
◆ DescribeNegationTo()
void testing::gmock_matchers_test::IsHalfOfMatcher::DescribeNegationTo |
( |
ostream * | os | ) |
const |
|
inline |
◆ DescribeTo()
void testing::gmock_matchers_test::IsHalfOfMatcher::DescribeTo |
( |
ostream * | os | ) |
const |
|
inline |
◆ MatchAndExplain()
template<typename T1 , typename T2 >
bool testing::gmock_matchers_test::IsHalfOfMatcher::MatchAndExplain |
( |
const tuple< T1, T2 > & | a_pair, |
|
|
MatchResultListener * | listener ) const |
|
inline |
Definition at line 6324 of file gmock-matchers_test.cc.
6325 {
6326 if (get<0>(a_pair) == get<1>(a_pair)/2) {
6327 *listener << "where the second is " << get<1>(a_pair);
6328 return true;
6329 } else {
6330 *listener << "where the second/2 is " << get<1>(a_pair)/2;
6331 return false;
6332 }
6333 }
The documentation for this class was generated from the following file: