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

Function CmpHelperSTRCASENE

test/gtest/gtest-all.cc:2694–2706  ·  view source on GitHub ↗

The helper function for {ASSERT|EXPECT}_STRCASENE.

Source from the content-addressed store, hash-verified

2692
2693// The helper function for {ASSERT|EXPECT}_STRCASENE.
2694AssertionResult CmpHelperSTRCASENE(const char* s1_expression,
2695 const char* s2_expression,
2696 const char* s1,
2697 const char* s2) {
2698 if (!String::CaseInsensitiveCStringEquals(s1, s2)) {
2699 return AssertionSuccess();
2700 } else {
2701 return AssertionFailure()
2702 << "Expected: (" << s1_expression << ") != ("
2703 << s2_expression << ") (ignoring case), actual: \""
2704 << s1 << "\" vs \"" << s2 << "\"";
2705 }
2706}
2707
2708} // namespace internal
2709

Callers

nothing calls this directly

Calls 2

AssertionSuccessFunction · 0.85
AssertionFailureFunction · 0.85

Tested by

no test coverage detected