diff options
author | alzobnin <alzobnin@yandex-team.ru> | 2022-02-10 16:46:50 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:50 +0300 |
commit | c9317148cc3e9f1b0bc0ce95172f47e099f2c554 (patch) | |
tree | 1e426d905ba97d8c281c5cc53389faaced3832c7 /util/folder/filelist_ut.cpp | |
parent | 6170310e8721e225f64ddabf7a7358253d7a1249 (diff) | |
download | ydb-c9317148cc3e9f1b0bc0ce95172f47e099f2c554.tar.gz |
Restoring authorship annotation for <alzobnin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/folder/filelist_ut.cpp')
-rw-r--r-- | util/folder/filelist_ut.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/util/folder/filelist_ut.cpp b/util/folder/filelist_ut.cpp index 0cdcdf3d00..d8f3bce460 100644 --- a/util/folder/filelist_ut.cpp +++ b/util/folder/filelist_ut.cpp @@ -1,13 +1,13 @@ #include "dirut.h" -#include "filelist.h" +#include "filelist.h" #include "tempdir.h" - + #include <library/cpp/testing/unittest/registar.h> - -#include <util/system/file.h> + +#include <util/system/file.h> #include <util/generic/string.h> - -class TFileListTest: public TTestBase { + +class TFileListTest: public TTestBase { UNIT_TEST_SUITE(TFileListTest); UNIT_TEST(TestSimple); UNIT_TEST(TestPrefix); @@ -16,20 +16,20 @@ class TFileListTest: public TTestBase { public: void TestSimple(); void TestPrefix(); -}; - -void TFileListTest::TestSimple() { - TTempDir tempDir("nonexistingdir"); +}; + +void TFileListTest::TestSimple() { + TTempDir tempDir("nonexistingdir"); MakeDirIfNotExist((tempDir() + LOCSLASH_S "subdir").data()); TFile((tempDir() + LOCSLASH_S "subdir" LOCSLASH_S "file").data(), CreateAlways); - TFileList fileList; + TFileList fileList; fileList.Fill(tempDir().data(), "", "", 1000); TString fileName(fileList.Next()); UNIT_ASSERT_EQUAL(fileName, "subdir" LOCSLASH_S "file"); UNIT_ASSERT_EQUAL(fileList.Next(), nullptr); -} - +} + void TFileListTest::TestPrefix() { TTempDir tempDir("nonexistingdir"); TFile((tempDir() + LOCSLASH_S "good_file1").data(), CreateAlways); @@ -53,4 +53,4 @@ void TFileListTest::TestPrefix() { } } -UNIT_TEST_SUITE_REGISTRATION(TFileListTest); +UNIT_TEST_SUITE_REGISTRATION(TFileListTest); |