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

Function CmpHelperSTRCASENE

tests/gtest/gtest-all.cc:3026–3038  ·  view source on GitHub ↗

The helper function for {ASSERT|EXPECT}_STRCASENE.

Source from the content-addressed store, hash-verified

3024
3025// The helper function for {ASSERT|EXPECT}_STRCASENE.
3026AssertionResult CmpHelperSTRCASENE(const char* s1_expression,
3027 const char* s2_expression,
3028 const char* s1,
3029 const char* s2) {
3030 if (!String::CaseInsensitiveCStringEquals(s1, s2)) {
3031 return AssertionSuccess();
3032 } else {
3033 return AssertionFailure()
3034 << "Expected: (" << s1_expression << ") != ("
3035 << s2_expression << ") (ignoring case), actual: \""
3036 << s1 << "\" vs \"" << s2 << "\"";
3037 }
3038}
3039
3040} // namespace internal
3041

Callers

nothing calls this directly

Calls 2

AssertionSuccessFunction · 0.85
AssertionFailureFunction · 0.85

Tested by

no test coverage detected