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

Function AssertPred2Helper

test/gtest/gtest.h:19470–19483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19468 typename T1,
19469 typename T2>
19470AssertionResult AssertPred2Helper(const char* pred_text,
19471 const char* e1,
19472 const char* e2,
19473 Pred pred,
19474 const T1& v1,
19475 const T2& v2) {
19476 if (pred(v1, v2)) return AssertionSuccess();
19477
19478 return AssertionFailure() << pred_text << "("
19479 << e1 << ", "
19480 << e2 << ") evaluates to false, where"
19481 << "\n" << e1 << " evaluates to " << v1
19482 << "\n" << e2 << " evaluates to " << v2;
19483}
19484
19485// Internal macro for implementing {EXPECT|ASSERT}_PRED_FORMAT2.
19486// 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