| 18949 | typename T1, |
| 18950 | typename T2> |
| 18951 | AssertionResult AssertPred2Helper(const char* pred_text, |
| 18952 | const char* e1, |
| 18953 | const char* e2, |
| 18954 | Pred pred, |
| 18955 | const T1& v1, |
| 18956 | const T2& v2) { |
| 18957 | if (pred(v1, v2)) return AssertionSuccess(); |
| 18958 | |
| 18959 | return AssertionFailure() << pred_text << "(" |
| 18960 | << e1 << ", " |
| 18961 | << e2 << ") evaluates to false, where" |
| 18962 | << "\n" << e1 << " evaluates to " << v1 |
| 18963 | << "\n" << e2 << " evaluates to " << v2; |
| 18964 | } |
| 18965 | |
| 18966 | // Internal macro for implementing {EXPECT|ASSERT}_PRED_FORMAT2. |
| 18967 | // Don't use this in your code. |
nothing calls this directly
no test coverage detected