| 43 | } |
| 44 | |
| 45 | void 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 | |
| 64 | void TestFileList::addFile_notexist() const |
| 65 | { |
nothing calls this directly
no test coverage detected