MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / CmpHelperEQ

Function CmpHelperEQ

rtpose_wrapper/src/gtest/gtest-all.cpp:2414–2427  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

AssertionSuccessFunction · 0.85
EqFailureFunction · 0.85

Tested by

no test coverage detected