MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / CmpHelperEQ

Function CmpHelperEQ

tests/external/gmock-1.7.0/gtest/src/gtest.cc:1114–1127  ·  view source on GitHub ↗

The helper function for {ASSERT|EXPECT}_EQ with int or enum arguments.

Source from the content-addressed store, hash-verified

1112// The helper function for {ASSERT|EXPECT}_EQ with int or enum
1113// arguments.
1114AssertionResult 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

Callers

nothing calls this directly

Calls 3

AssertionSuccessFunction · 0.70
EqFailureFunction · 0.70

Tested by

no test coverage detected