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

Method addPathList

gui/test/filelist/testfilelist.cpp:45–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void TestFileList::addPathList() const
46{
47 // Accepted extensions: *.cpp, *.cxx, *.cc, *.c, *.c++, *.txx, *.tpp, *.ipp, *.ixx"
48 QStringList paths;
49 paths << QString(SRCDIR) + "/../data/files/foo1.cpp";
50 paths << QString(SRCDIR) + "/../data/files/foo2.cxx";
51 paths << QString(SRCDIR) + "/../data/files/foo3.cc";
52 paths << QString(SRCDIR) + "/../data/files/foo4.c";
53 paths << QString(SRCDIR) + "/../data/files/foo5.c++";
54 paths << QString(SRCDIR) + "/../data/files/foo6.txx";
55 paths << QString(SRCDIR) + "/../data/files/foo7.tpp";
56 paths << QString(SRCDIR) + "/../data/files/foo8.ipp";
57 paths << QString(SRCDIR) + "/../data/files/foo9.ixx";
58 FileList list;
59 list.addPathList(paths);
60 QStringList files = list.getFileList();
61 QCOMPARE(files.size(), 9);
62}
63
64void TestFileList::addFile_notexist() const
65{

Callers

nothing calls this directly

Calls 3

getFileListMethod · 0.80
QStringClass · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected