MCPcopy Create free account
hub / github.com/BVLC/caffe / CmpHelperSTRCASENE

Function CmpHelperSTRCASENE

src/gtest/gtest-all.cpp:2510–2522  ·  view source on GitHub ↗

The helper function for {ASSERT|EXPECT}_STRCASENE.

Source from the content-addressed store, hash-verified

2508
2509// The helper function for {ASSERT|EXPECT}_STRCASENE.
2510AssertionResult CmpHelperSTRCASENE(const char* s1_expression,
2511 const char* s2_expression,
2512 const char* s1,
2513 const char* s2) {
2514 if (!String::CaseInsensitiveCStringEquals(s1, s2)) {
2515 return AssertionSuccess();
2516 } else {
2517 return AssertionFailure()
2518 << "Expected: (" << s1_expression << ") != ("
2519 << s2_expression << ") (ignoring case), actual: \""
2520 << s1 << "\" vs \"" << s2 << "\"";
2521 }
2522}
2523
2524} // namespace internal
2525

Callers

nothing calls this directly

Calls 2

AssertionSuccessFunction · 0.85
AssertionFailureFunction · 0.85

Tested by

no test coverage detected