MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / CmpHelperSTRNE

Function CmpHelperSTRNE

tests/external/gmock-1.7.0/gtest/src/gtest.cc:1562–1574  ·  view source on GitHub ↗

Helper function for *_STRNE on wide strings.

Source from the content-addressed store, hash-verified

1560
1561// Helper function for *_STRNE on wide strings.
1562AssertionResult CmpHelperSTRNE(const char* s1_expression,
1563 const char* s2_expression,
1564 const wchar_t* s1,
1565 const wchar_t* s2) {
1566 if (!String::WideCStringEquals(s1, s2)) {
1567 return AssertionSuccess();
1568 }
1569
1570 return AssertionFailure() << "Expected: (" << s1_expression << ") != ("
1571 << s2_expression << "), actual: "
1572 << PrintToString(s1)
1573 << " vs " << PrintToString(s2);
1574}
1575
1576// Compares two C strings, ignoring case. Returns true iff they have
1577// the same content.

Callers

nothing calls this directly

Calls 3

AssertionSuccessFunction · 0.70
AssertionFailureFunction · 0.70
PrintToStringFunction · 0.50

Tested by

no test coverage detected