MCPcopy Create free account
hub / github.com/apache/singa / AssertPred1Helper

Function AssertPred1Helper

test/gtest/gtest.h:19428–19437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19426template <typename Pred,
19427 typename T1>
19428AssertionResult AssertPred1Helper(const char* pred_text,
19429 const char* e1,
19430 Pred pred,
19431 const T1& v1) {
19432 if (pred(v1)) return AssertionSuccess();
19433
19434 return AssertionFailure() << pred_text << "("
19435 << e1 << ") evaluates to false, where"
19436 << "\n" << e1 << " evaluates to " << v1;
19437}
19438
19439// Internal macro for implementing {EXPECT|ASSERT}_PRED_FORMAT1.
19440// 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