| 34 | |
| 35 | template <typename MatchedTy> |
| 36 | string Explain( |
| 37 | const MatchedTy& val, |
| 38 | const ::testing::Matcher<typename std::remove_cv<MatchedTy>::type>& m) { |
| 39 | ::testing::StringMatchResultListener listener; |
| 40 | EXPECT_THAT(val, ::testing::Not(m)); // For the error message. |
| 41 | EXPECT_FALSE(m.MatchAndExplain(val, &listener)); |
| 42 | return listener.str(); |
| 43 | } |
| 44 | |
| 45 | // This file tests the GmockMatch function. The actual explanation and |
| 46 | // description returned by matchers is tested in pattern_matchers_test. |
nothing calls this directly
no test coverage detected