Definition at line 281 of file gmock-matchers_test.cc.
◆ DescribeTo()
virtual void testing::gmock_matchers_test::NewEvenMatcherImpl::DescribeTo |
( |
ostream * | os | ) |
const |
|
inlinevirtual |
◆ MatchAndExplain()
virtual bool testing::gmock_matchers_test::NewEvenMatcherImpl::MatchAndExplain |
( |
int | x, |
|
|
MatchResultListener * | listener ) const |
|
inlinevirtual |
Definition at line 283 of file gmock-matchers_test.cc.
283 {
284 const bool match = x % 2 == 0;
285
286 *listener << "value % " << 2;
287 if (listener->stream() != NULL) {
288
289
290 *listener->stream() << " == " << (x % 2);
291 }
292 return match;
293 }
The documentation for this class was generated from the following file: