| 19 | }; |
| 20 | |
| 21 | void TFileListTest::TestSimple() { |
| 22 | TTempDir tempDir("nonexistingdir"); |
| 23 | MakeDirIfNotExist((tempDir() + LOCSLASH_S "subdir").data()); |
| 24 | TFile((tempDir() + LOCSLASH_S "subdir" LOCSLASH_S "file").data(), CreateAlways); |
| 25 | |
| 26 | TFileList fileList; |
| 27 | fileList.Fill(tempDir().data(), "", "", 1000); |
| 28 | TString fileName(fileList.Next()); |
| 29 | UNIT_ASSERT_EQUAL(fileName, "subdir" LOCSLASH_S "file"); |
| 30 | UNIT_ASSERT_EQUAL(fileList.Next(), nullptr); |
| 31 | } |
| 32 | |
| 33 | void TFileListTest::TestPrefix() { |
| 34 | TTempDir tempDir("nonexistingdir"); |
nothing calls this directly
no test coverage detected