MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / CmpHelperEQ

Function CmpHelperEQ

test/common/gtest/gtest.cpp:2909–2922  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

AssertionSuccessFunction · 0.85
EqFailureFunction · 0.85

Tested by

no test coverage detected