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

Function CmpHelperOpFailure

tests/gtest/gtest.h:14024–14031  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14022// when calling EXPECT_OP in a tight loop.
14023template <typename T1, typename T2>
14024AssertionResult CmpHelperOpFailure(const char* expr1, const char* expr2,
14025 const T1& val1, const T2& val2,
14026 const char* op) {
14027 return AssertionFailure()
14028 << "Expected: (" << expr1 << ") " << op << " (" << expr2
14029 << "), actual: " << FormatForComparisonFailureMessage(val1, val2)
14030 << " vs " << FormatForComparisonFailureMessage(val2, val1);
14031}
14032
14033// A macro for implementing the helper functions needed to implement
14034// ASSERT_?? and EXPECT_??. It is here just to avoid copy-and-paste

Callers

nothing calls this directly

Calls 2

AssertionFailureFunction · 0.85

Tested by

no test coverage detected