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

Function AssertPred4Helper

tests/gtest/gtest.h:12711–12731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12709 typename T3,
12710 typename T4>
12711AssertionResult AssertPred4Helper(const char* pred_text,
12712 const char* e1,
12713 const char* e2,
12714 const char* e3,
12715 const char* e4,
12716 Pred pred,
12717 const T1& v1,
12718 const T2& v2,
12719 const T3& v3,
12720 const T4& v4) {
12721 if (pred(v1, v2, v3, v4)) return AssertionSuccess();
12722
12723 return AssertionFailure()
12724 << pred_text << "(" << e1 << ", " << e2 << ", " << e3 << ", " << e4
12725 << ") evaluates to false, where"
12726 << "\n"
12727 << e1 << " evaluates to " << ::testing::PrintToString(v1) << "\n"
12728 << e2 << " evaluates to " << ::testing::PrintToString(v2) << "\n"
12729 << e3 << " evaluates to " << ::testing::PrintToString(v3) << "\n"
12730 << e4 << " evaluates to " << ::testing::PrintToString(v4);
12731}
12732
12733// Internal macro for implementing {EXPECT|ASSERT}_PRED_FORMAT4.
12734// 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