| 40 | |
| 41 | template <typename M, typename T> |
| 42 | string Explain(const T& t, const M& m) { |
| 43 | ::testing::StringMatchResultListener listener; |
| 44 | EXPECT_THAT(t, ::testing::Not(m)); // For the error message. |
| 45 | EXPECT_FALSE(m.MatchAndExplain(t, &listener)); |
| 46 | return listener.str(); |
| 47 | } |
| 48 | |
| 49 | TEST(NodeMatchers, CheckAgainstConstant) { |
| 50 | Scope root = Scope::NewRootScope().ExitOnError(); |
no test coverage detected