MCPcopy Create free account
hub / github.com/cpputest/cpputest / assertCstrNEqual

Method assertCstrNEqual

src/CppUTest/Utest.cpp:390–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388}
389
390void UtestShell::assertCstrNEqual(const char* expected, const char* actual, size_t length, const char* text, const char* fileName, size_t lineNumber, const TestTerminator& testTerminator)
391{
392 getTestResult()->countCheck();
393 if (actual == NULLPTR && expected == NULLPTR) return;
394 if (actual == NULLPTR || expected == NULLPTR)
395 failWith(StringEqualFailure(this, fileName, lineNumber, expected, actual, text), testTerminator);
396 if (SimpleString::StrNCmp(expected, actual, length) != 0)
397 failWith(StringEqualFailure(this, fileName, lineNumber, expected, actual, text), testTerminator);
398}
399
400void UtestShell::assertCstrNoCaseEqual(const char* expected, const char* actual, const char* text, const char* fileName, size_t lineNumber)
401{

Callers

nothing calls this directly

Calls 2

StringEqualFailureClass · 0.85
countCheckMethod · 0.45

Tested by

no test coverage detected