MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / CmpHelperEQ

Function CmpHelperEQ

tests/gtest/gtest-all.cc:2930–2943  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2928// The helper function for {ASSERT|EXPECT}_EQ with int or enum
2929// arguments.
2930AssertionResult CmpHelperEQ(const char* lhs_expression,
2931 const char* rhs_expression,
2932 BiggestInt lhs,
2933 BiggestInt rhs) {
2934 if (lhs == rhs) {
2935 return AssertionSuccess();
2936 }
2937
2938 return EqFailure(lhs_expression,
2939 rhs_expression,
2940 FormatForComparisonFailureMessage(lhs, rhs),
2941 FormatForComparisonFailureMessage(rhs, lhs),
2942 false);
2943}
2944
2945// A macro for implementing the helper functions needed to implement
2946// 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