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

Method startsWith

test/testutils.cpp:422–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420 }
421
422 void startsWith() const
423 {
424 ASSERT(::startsWith("test", "test"));
425 ASSERT(::startsWith("test2", "test"));
426 ASSERT(::startsWith("test test", "test"));
427 ASSERT(::startsWith("test", "t"));
428 ASSERT(!::startsWith("2test", "test"));
429 ASSERT(!::startsWith("", "test"));
430 ASSERT(!::startsWith("tes", "test"));
431 ASSERT(!::startsWith("2test", "t"));
432 ASSERT(!::startsWith("t", "test"));
433 }
434
435 void trim() const
436 {

Callers 15

loadMethod · 0.80
filterMethod · 0.80
showResultMethod · 0.80
QString7Function · 0.80
QList1Function · 0.80
QLinkedList1Function · 0.80
QStringList1Function · 0.80
QVector1Function · 0.80
QStack1Function · 0.80
toolMethod · 0.80
clearRecheckFileMethod · 0.80
startApplicationMethod · 0.80

Calls 1

startsWithFunction · 0.50

Tested by

no test coverage detected