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

Method assertCstrEqual

src/CppUTest/Utest.cpp:380–388  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378} // LCOV_EXCL_LINE
379
380void UtestShell::assertCstrEqual(const char* expected, const char* actual, const char* text, const char* fileName, size_t lineNumber, const TestTerminator& testTerminator)
381{
382 getTestResult()->countCheck();
383 if (actual == NULLPTR && expected == NULLPTR) return;
384 if (actual == NULLPTR || expected == NULLPTR)
385 failWith(StringEqualFailure(this, fileName, lineNumber, expected, actual, text), testTerminator);
386 if (SimpleString::StrCmp(expected, actual) != 0)
387 failWith(StringEqualFailure(this, fileName, lineNumber, expected, actual, text), testTerminator);
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{

Callers 1

Calls 2

StringEqualFailureClass · 0.85
countCheckMethod · 0.45

Tested by

no test coverage detected