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

Function AssertPred3Helper

tests/gtest/gtest.h:12655–12672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12653 typename T2,
12654 typename T3>
12655AssertionResult AssertPred3Helper(const char* pred_text,
12656 const char* e1,
12657 const char* e2,
12658 const char* e3,
12659 Pred pred,
12660 const T1& v1,
12661 const T2& v2,
12662 const T3& v3) {
12663 if (pred(v1, v2, v3)) return AssertionSuccess();
12664
12665 return AssertionFailure()
12666 << pred_text << "(" << e1 << ", " << e2 << ", " << e3
12667 << ") evaluates to false, where"
12668 << "\n"
12669 << e1 << " evaluates to " << ::testing::PrintToString(v1) << "\n"
12670 << e2 << " evaluates to " << ::testing::PrintToString(v2) << "\n"
12671 << e3 << " evaluates to " << ::testing::PrintToString(v3);
12672}
12673
12674// Internal macro for implementing {EXPECT|ASSERT}_PRED_FORMAT3.
12675// 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