MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / CmpHelperSTRNE

Function CmpHelperSTRNE

tests/gtest/gtest-all.cc:3379–3391  ·  view source on GitHub ↗

Helper function for *_STRNE on wide strings.

Source from the content-addressed store, hash-verified

3377
3378// Helper function for *_STRNE on wide strings.
3379AssertionResult CmpHelperSTRNE(const char* s1_expression,
3380 const char* s2_expression,
3381 const wchar_t* s1,
3382 const wchar_t* s2) {
3383 if (!String::WideCStringEquals(s1, s2)) {
3384 return AssertionSuccess();
3385 }
3386
3387 return AssertionFailure() << "Expected: (" << s1_expression << ") != ("
3388 << s2_expression << "), actual: "
3389 << PrintToString(s1)
3390 << " vs " << PrintToString(s2);
3391}
3392
3393// Compares two C strings, ignoring case. Returns true iff they have
3394// the same content.

Callers

nothing calls this directly

Calls 2

AssertionSuccessFunction · 0.85
AssertionFailureFunction · 0.85

Tested by

no test coverage detected