MCPcopy Create free account
hub / github.com/catboost/catboost / TestSimple

Method TestSimple

util/folder/filelist_ut.cpp:21–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19};
20
21void 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
33void TFileListTest::TestPrefix() {
34 TTempDir tempDir("nonexistingdir");

Callers

nothing calls this directly

Calls 5

MakeDirIfNotExistFunction · 0.70
TFileClass · 0.50
dataMethod · 0.45
FillMethod · 0.45
NextMethod · 0.45

Tested by

no test coverage detected