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

Function AssertPred5Helper

tests/gtest/gtest.h:12773–12796  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12771 typename T4,
12772 typename T5>
12773AssertionResult AssertPred5Helper(const char* pred_text,
12774 const char* e1,
12775 const char* e2,
12776 const char* e3,
12777 const char* e4,
12778 const char* e5,
12779 Pred pred,
12780 const T1& v1,
12781 const T2& v2,
12782 const T3& v3,
12783 const T4& v4,
12784 const T5& v5) {
12785 if (pred(v1, v2, v3, v4, v5)) return AssertionSuccess();
12786
12787 return AssertionFailure()
12788 << pred_text << "(" << e1 << ", " << e2 << ", " << e3 << ", " << e4
12789 << ", " << e5 << ") evaluates to false, where"
12790 << "\n"
12791 << e1 << " evaluates to " << ::testing::PrintToString(v1) << "\n"
12792 << e2 << " evaluates to " << ::testing::PrintToString(v2) << "\n"
12793 << e3 << " evaluates to " << ::testing::PrintToString(v3) << "\n"
12794 << e4 << " evaluates to " << ::testing::PrintToString(v4) << "\n"
12795 << e5 << " evaluates to " << ::testing::PrintToString(v5);
12796}
12797
12798// Internal macro for implementing {EXPECT|ASSERT}_PRED_FORMAT5.
12799// 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