The helper function for {ASSERT|EXPECT}_EQ with int or enum arguments.
| 2412 | // The helper function for {ASSERT|EXPECT}_EQ with int or enum |
| 2413 | // arguments. |
| 2414 | AssertionResult CmpHelperEQ(const char* expected_expression, |
| 2415 | const char* actual_expression, |
| 2416 | BiggestInt expected, |
| 2417 | BiggestInt actual) { |
| 2418 | if (expected == actual) { |
| 2419 | return AssertionSuccess(); |
| 2420 | } |
| 2421 | |
| 2422 | return EqFailure(expected_expression, |
| 2423 | actual_expression, |
| 2424 | FormatForComparisonFailureMessage(expected, actual), |
| 2425 | FormatForComparisonFailureMessage(actual, expected), |
| 2426 | false); |
| 2427 | } |
| 2428 | |
| 2429 | // A macro for implementing the helper functions needed to implement |
| 2430 | // ASSERT_?? and EXPECT_?? with integer or enum arguments. It is here |
nothing calls this directly
no test coverage detected