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

Function AssertPred2Helper

tests/gtest/gtest.h:12605–12619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12603 typename T1,
12604 typename T2>
12605AssertionResult AssertPred2Helper(const char* pred_text,
12606 const char* e1,
12607 const char* e2,
12608 Pred pred,
12609 const T1& v1,
12610 const T2& v2) {
12611 if (pred(v1, v2)) return AssertionSuccess();
12612
12613 return AssertionFailure()
12614 << pred_text << "(" << e1 << ", " << e2
12615 << ") evaluates to false, where"
12616 << "\n"
12617 << e1 << " evaluates to " << ::testing::PrintToString(v1) << "\n"
12618 << e2 << " evaluates to " << ::testing::PrintToString(v2);
12619}
12620
12621// Internal macro for implementing {EXPECT|ASSERT}_PRED_FORMAT2.
12622// Don't use this in your code.

Callers

nothing calls this directly

Calls 2

AssertionSuccessFunction · 0.85
AssertionFailureFunction · 0.85

Tested by

no test coverage detected