The helper function for {ASSERT|EXPECT}_EQ with int or enum arguments.
| 2907 | // The helper function for {ASSERT|EXPECT}_EQ with int or enum |
| 2908 | // arguments. |
| 2909 | AssertionResult CmpHelperEQ(const char* expected_expression, |
| 2910 | const char* actual_expression, |
| 2911 | BiggestInt expected, |
| 2912 | BiggestInt actual) { |
| 2913 | if (expected == actual) { |
| 2914 | return AssertionSuccess(); |
| 2915 | } |
| 2916 | |
| 2917 | return EqFailure(expected_expression, |
| 2918 | actual_expression, |
| 2919 | FormatForComparisonFailureMessage(expected, actual), |
| 2920 | FormatForComparisonFailureMessage(actual, expected), |
| 2921 | false); |
| 2922 | } |
| 2923 | |
| 2924 | // A macro for implementing the helper functions needed to implement |
| 2925 | // ASSERT_?? and EXPECT_?? with integer or enum arguments. It is here |
nothing calls this directly
no test coverage detected