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

Function AssertPred1Helper

tests/gtest/gtest.h:12562–12572  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12560template <typename Pred,
12561 typename T1>
12562AssertionResult AssertPred1Helper(const char* pred_text,
12563 const char* e1,
12564 Pred pred,
12565 const T1& v1) {
12566 if (pred(v1)) return AssertionSuccess();
12567
12568 return AssertionFailure()
12569 << pred_text << "(" << e1 << ") evaluates to false, where"
12570 << "\n"
12571 << e1 << " evaluates to " << ::testing::PrintToString(v1);
12572}
12573
12574// Internal macro for implementing {EXPECT|ASSERT}_PRED_FORMAT1.
12575// 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