The helper function for {ASSERT|EXPECT}_EQ with int or enum arguments.
| 2928 | // The helper function for {ASSERT|EXPECT}_EQ with int or enum |
| 2929 | // arguments. |
| 2930 | AssertionResult CmpHelperEQ(const char* lhs_expression, |
| 2931 | const char* rhs_expression, |
| 2932 | BiggestInt lhs, |
| 2933 | BiggestInt rhs) { |
| 2934 | if (lhs == rhs) { |
| 2935 | return AssertionSuccess(); |
| 2936 | } |
| 2937 | |
| 2938 | return EqFailure(lhs_expression, |
| 2939 | rhs_expression, |
| 2940 | FormatForComparisonFailureMessage(lhs, rhs), |
| 2941 | FormatForComparisonFailureMessage(rhs, lhs), |
| 2942 | false); |
| 2943 | } |
| 2944 | |
| 2945 | // A macro for implementing the helper functions needed to implement |
| 2946 | // ASSERT_?? and EXPECT_?? with integer or enum arguments. It is here |
nothing calls this directly
no test coverage detected