aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream/file_ut.cpp
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:25 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:25 +0300
commit344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/stream/file_ut.cpp
parent706b83ed7de5a473436620367af31fc0ceecde07 (diff)
downloadydb-344ea37b4a345701ab0e67de2266a1c1bd7baf2d.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 2 of 2.
Diffstat (limited to 'util/stream/file_ut.cpp')
-rw-r--r--util/stream/file_ut.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/util/stream/file_ut.cpp b/util/stream/file_ut.cpp
index f6d4315564..ac0f09796e 100644
--- a/util/stream/file_ut.cpp
+++ b/util/stream/file_ut.cpp
@@ -13,32 +13,32 @@ Y_UNIT_TEST_SUITE(TFileTest) {
TTempFile tmp(TmpFileName);
{
- TUnbufferedFileOutput output(TmpFileName);
+ TUnbufferedFileOutput output(TmpFileName);
output.Write(TmpFileContents, strlen(TmpFileContents));
}
{
- TUnbufferedFileInput input(TmpFileName);
- TString s = input.ReadAll();
+ TUnbufferedFileInput input(TmpFileName);
+ TString s = input.ReadAll();
UNIT_ASSERT_VALUES_EQUAL(s, TmpFileContents);
}
{
- TUnbufferedFileInput input(TmpFileName);
+ TUnbufferedFileInput input(TmpFileName);
input.Skip(TmpFileSubstring - TmpFileContents);
- TString s = input.ReadAll();
+ TString s = input.ReadAll();
UNIT_ASSERT_VALUES_EQUAL(s, "chivalrous plan");
}
{
- TUnbufferedFileOutput output(TFile::ForAppend(TmpFileName));
+ TUnbufferedFileOutput output(TFile::ForAppend(TmpFileName));
output.Write(TmpFileContents, strlen(TmpFileContents));
}
{
- TUnbufferedFileInput input(TmpFileName);
- TString s = input.ReadAll();
- UNIT_ASSERT_VALUES_EQUAL(s, TString::Join(TmpFileContents, TmpFileContents));
+ TUnbufferedFileInput input(TmpFileName);
+ TString s = input.ReadAll();
+ UNIT_ASSERT_VALUES_EQUAL(s, TString::Join(TmpFileContents, TmpFileContents));
}
}
@@ -46,13 +46,13 @@ Y_UNIT_TEST_SUITE(TFileTest) {
TTempFile tmp(TmpFileName);
{
- TUnbufferedFileOutput output(TmpFileName);
+ TUnbufferedFileOutput output(TmpFileName);
/* Write nothing. */
}
{
TMappedFileInput input(TmpFileName);
- TString s = input.ReadAll();
+ TString s = input.ReadAll();
UNIT_ASSERT(s.empty());
}
}