| 14022 | // when calling EXPECT_OP in a tight loop. |
| 14023 | template <typename T1, typename T2> |
| 14024 | AssertionResult CmpHelperOpFailure(const char* expr1, const char* expr2, |
| 14025 | const T1& val1, const T2& val2, |
| 14026 | const char* op) { |
| 14027 | return AssertionFailure() |
| 14028 | << "Expected: (" << expr1 << ") " << op << " (" << expr2 |
| 14029 | << "), actual: " << FormatForComparisonFailureMessage(val1, val2) |
| 14030 | << " vs " << FormatForComparisonFailureMessage(val2, val1); |
| 14031 | } |
| 14032 | |
| 14033 | // A macro for implementing the helper functions needed to implement |
| 14034 | // ASSERT_?? and EXPECT_??. It is here just to avoid copy-and-paste |
nothing calls this directly
no test coverage detected