MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / CmpHelperSTREQ

Function CmpHelperSTREQ

test/common/gtest/gtest.cpp:3341–3354  ·  view source on GitHub ↗

Helper function for *_STREQ on wide strings.

Source from the content-addressed store, hash-verified

3339
3340// Helper function for *_STREQ on wide strings.
3341AssertionResult CmpHelperSTREQ(const char* expected_expression,
3342 const char* actual_expression,
3343 const wchar_t* expected,
3344 const wchar_t* actual) {
3345 if (String::WideCStringEquals(expected, actual)) {
3346 return AssertionSuccess();
3347 }
3348
3349 return EqFailure(expected_expression,
3350 actual_expression,
3351 PrintToString(expected),
3352 PrintToString(actual),
3353 false);
3354}
3355
3356// Helper function for *_STRNE on wide strings.
3357AssertionResult CmpHelperSTRNE(const char* s1_expression,

Callers 1

gtest.cppFile · 0.85

Calls 2

AssertionSuccessFunction · 0.85
EqFailureFunction · 0.85

Tested by

no test coverage detected