aboutsummaryrefslogtreecommitdiffstats
path: root/util/memory/blob_ut.cpp
diff options
context:
space:
mode:
authorAlexander Fokin <apfokin@gmail.com>2022-02-10 16:45:38 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:38 +0300
commitbf9e69a933f89af083d895185f01ed65e4d90766 (patch)
treeb2cc84ee7850122e7ccf51d0ea21e4fa7e7a5685 /util/memory/blob_ut.cpp
parent863a59a65247c24db7cb06789bc5cf79d04da32f (diff)
downloadydb-bf9e69a933f89af083d895185f01ed65e4d90766.tar.gz
Restoring authorship annotation for Alexander Fokin <apfokin@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/memory/blob_ut.cpp')
-rw-r--r--util/memory/blob_ut.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/memory/blob_ut.cpp b/util/memory/blob_ut.cpp
index cef9bfc38b..023f9a0487 100644
--- a/util/memory/blob_ut.cpp
+++ b/util/memory/blob_ut.cpp
@@ -5,7 +5,7 @@
#include <util/system/tempfile.h>
#include <util/folder/path.h>
#include <util/stream/output.h>
-#include <util/stream/file.h>
+#include <util/stream/file.h>
#include <util/generic/buffer.h>
#include <util/generic/array_ref.h>
@@ -53,19 +53,19 @@ Y_UNIT_TEST_SUITE(TBlobTest) {
UNIT_ASSERT_EQUAL(buf.Size(), 0u);
UNIT_ASSERT_EQUAL(b.Size(), sz);
}
-
+
Y_UNIT_TEST(TestFromFile) {
TString path = "testfile";
-
+
TOFStream stream(path);
stream.Write("1234", 4);
stream.Finish();
-
+
auto testMode = [](TBlob blob) {
UNIT_ASSERT_EQUAL(blob.Size(), 4);
UNIT_ASSERT_EQUAL(TStringBuf(static_cast<const char*>(blob.Data()), 4), "1234");
};
-
+
testMode(TBlob::FromFile(path));
testMode(TBlob::PrechargedFromFile(path));
testMode(TBlob::LockedFromFile(path));