aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/fstat_ut.cpp
diff options
context:
space:
mode:
authorleo <leo@yandex-team.ru>2022-02-10 16:46:40 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:40 +0300
commit99609724f661f7e21d1cb08e8d80e87c3632fdb3 (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /util/system/fstat_ut.cpp
parent980edcd3304699edf9d4e4d6a656e585028e2a72 (diff)
downloadydb-99609724f661f7e21d1cb08e8d80e87c3632fdb3.tar.gz
Restoring authorship annotation for <leo@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/fstat_ut.cpp')
-rw-r--r--util/system/fstat_ut.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/util/system/fstat_ut.cpp b/util/system/fstat_ut.cpp
index 8bef783b32..160ecd936e 100644
--- a/util/system/fstat_ut.cpp
+++ b/util/system/fstat_ut.cpp
@@ -1,11 +1,11 @@
-#include "fstat.h"
-#include "file.h"
-#include "sysstat.h"
-#include "fs.h"
-
+#include "fstat.h"
+#include "file.h"
+#include "sysstat.h"
+#include "fs.h"
+
#include <library/cpp/testing/unittest/registar.h>
#include <library/cpp/testing/unittest/tests_data.h>
-
+
#include <util/folder/path.h>
Y_UNIT_TEST_SUITE(TestFileStat) {
@@ -26,11 +26,11 @@ Y_UNIT_TEST_SUITE(TestFileStat) {
UNIT_ASSERT(fs.NLinks == 1);
oFs = fs;
}
-
+
UNIT_ASSERT(file.IsOpen());
UNIT_ASSERT_VALUES_EQUAL(file.GetLength(), 7);
file.Close();
- }
+ }
TFileStat cFs(fileName);
UNIT_ASSERT(cFs.IsFile());
UNIT_ASSERT(!cFs.IsDir());
@@ -45,7 +45,7 @@ Y_UNIT_TEST_SUITE(TestFileStat) {
UNIT_ASSERT_VALUES_EQUAL(cFs.INode, oFs.INode);
UNIT_ASSERT(unlink(fileName.data()) == 0);
}
-
+
Y_UNIT_TEST(DirTest) {
Mkdir("tmpd", MODE0777);
TFileStat fs("tmpd");
@@ -60,8 +60,8 @@ Y_UNIT_TEST_SUITE(TestFileStat) {
UNIT_ASSERT(!fs.IsSymlink());
UNIT_ASSERT(fs.Size == 0);
UNIT_ASSERT(fs.CTime == 0);
- }
-
+ }
+
Y_UNIT_TEST(SymlinkToExistingFileTest) {
const auto path = GetOutputPath() / "file_1";
const auto link = GetOutputPath() / "symlink_1";