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

Method assertCstrNoCaseContains

src/CppUTest/Utest.cpp:420–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418}
419
420void UtestShell::assertCstrNoCaseContains(const char* expected, const char* actual, const char* text, const char* fileName, size_t lineNumber)
421{
422 getTestResult()->countCheck();
423 if (actual == NULLPTR && expected == NULLPTR) return;
424 if (actual == NULLPTR || expected == NULLPTR)
425 failWith(ContainsFailure(this, fileName, lineNumber, expected, actual, text));
426 if (!SimpleString(actual).containsNoCase(expected))
427 failWith(ContainsFailure(this, fileName, lineNumber, expected, actual, text));
428}
429
430void UtestShell::assertLongsEqual(long expected, long actual, const char* text, const char* fileName, size_t lineNumber, const TestTerminator& testTerminator)
431{

Callers

nothing calls this directly

Calls 4

ContainsFailureClass · 0.85
SimpleStringClass · 0.85
containsNoCaseMethod · 0.80
countCheckMethod · 0.45

Tested by

no test coverage detected