The helper function for {ASSERT|EXPECT}_EQ with int or enum arguments.
| 1112 | // The helper function for {ASSERT|EXPECT}_EQ with int or enum |
| 1113 | // arguments. |
| 1114 | AssertionResult CmpHelperEQ(const char* expected_expression, |
| 1115 | const char* actual_expression, |
| 1116 | BiggestInt expected, |
| 1117 | BiggestInt actual) { |
| 1118 | if (expected == actual) { |
| 1119 | return AssertionSuccess(); |
| 1120 | } |
| 1121 | |
| 1122 | return EqFailure(expected_expression, |
| 1123 | actual_expression, |
| 1124 | FormatForComparisonFailureMessage(expected, actual), |
| 1125 | FormatForComparisonFailureMessage(actual, expected), |
| 1126 | false); |
| 1127 | } |
| 1128 | |
| 1129 | // A macro for implementing the helper functions needed to implement |
| 1130 | // ASSERT_?? and EXPECT_?? with integer or enum arguments. It is here |
nothing calls this directly
no test coverage detected