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

Function CmpHelperEQ

tests/gtest/gtest.h:13962–13971  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13960// The helper function for {ASSERT|EXPECT}_EQ.
13961template <typename T1, typename T2>
13962AssertionResult CmpHelperEQ(const char* lhs_expression,
13963 const char* rhs_expression,
13964 const T1& lhs,
13965 const T2& rhs) {
13966 if (lhs == rhs) {
13967 return AssertionSuccess();
13968 }
13969
13970 return CmpHelperEQFailure(lhs_expression, rhs_expression, lhs, rhs);
13971}
13972
13973// With this overloaded version, we allow anonymous enums to be used
13974// in {ASSERT|EXPECT}_EQ when compiled with gcc 4, as anonymous enums

Callers 1

CompareMethod · 0.70

Calls 2

AssertionSuccessFunction · 0.85
CmpHelperEQFailureFunction · 0.85

Tested by

no test coverage detected