MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / endsWith

Method endsWith

test/testutils.cpp:605–614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

603 }
604
605 void endsWith() const
606 {
607 ASSERT(::endsWith("test", "test"));
608 ASSERT(::endsWith("test2", "2"));
609 ASSERT(::endsWith("test test", "test"));
610 ASSERT(::endsWith("test", "t"));
611 ASSERT(!::endsWith("", "test"));
612 ASSERT(!::endsWith("tes", "test"));
613 ASSERT(!::endsWith("2test", "2"));
614 }
615};
616
617REGISTER_TEST(TestUtils)

Callers 15

loadMethod · 0.80
unpackArchiveMethod · 0.80
QList1Function · 0.80
QLinkedList1Function · 0.80
QStringList1Function · 0.80
QVector1Function · 0.80
QStack1Function · 0.80
startApplicationMethod · 0.80
getProjectConfigsMethod · 0.80
loadFromProjectFileMethod · 0.80
saveToProjectFileMethod · 0.80
getExistingDirectoryMethod · 0.80

Calls 1

endsWithFunction · 0.50

Tested by

no test coverage detected