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

Method assertCstrContains

src/CppUTest/Utest.cpp:410–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408}
409
410void UtestShell::assertCstrContains(const char* expected, const char* actual, const char* text, const char* fileName, size_t lineNumber)
411{
412 getTestResult()->countCheck();
413 if (actual == NULLPTR && expected == NULLPTR) return;
414 if (actual == NULLPTR || expected == NULLPTR)
415 failWith(ContainsFailure(this, fileName, lineNumber, expected, actual, text));
416 if (!SimpleString(actual).contains(expected))
417 failWith(ContainsFailure(this, fileName, lineNumber, expected, actual, text));
418}
419
420void UtestShell::assertCstrNoCaseContains(const char* expected, const char* actual, const char* text, const char* fileName, size_t lineNumber)
421{

Callers

nothing calls this directly

Calls 4

ContainsFailureClass · 0.85
SimpleStringClass · 0.85
containsMethod · 0.80
countCheckMethod · 0.45

Tested by

no test coverage detected