aboutsummaryrefslogtreecommitdiffstats
path: root/util/memory/tempbuf_ut.cpp
diff options
context:
space:
mode:
authortrofimenkov <trofimenkov@yandex-team.ru>2022-02-10 16:49:31 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:31 +0300
commit7c6139b61ced2798d1134b68b8facf6925a36b8e (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/memory/tempbuf_ut.cpp
parent30cebc2cfa79af3b577760a113e203a79450e6b6 (diff)
downloadydb-7c6139b61ced2798d1134b68b8facf6925a36b8e.tar.gz
Restoring authorship annotation for <trofimenkov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/memory/tempbuf_ut.cpp')
-rw-r--r--util/memory/tempbuf_ut.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/util/memory/tempbuf_ut.cpp b/util/memory/tempbuf_ut.cpp
index ec3ebb168a..d6bcf9d546 100644
--- a/util/memory/tempbuf_ut.cpp
+++ b/util/memory/tempbuf_ut.cpp
@@ -1,14 +1,14 @@
#include "tempbuf.h"
#include <utility>
-
+
#include <library/cpp/testing/unittest/registar.h>
class TTempBufTest: public TTestBase {
UNIT_TEST_SUITE(TTempBufTest);
UNIT_TEST(TestCreate);
UNIT_TEST(TestOps);
- UNIT_TEST(TestMoveCtor);
+ UNIT_TEST(TestMoveCtor);
UNIT_TEST(TestAppend);
UNIT_TEST(TestProceed);
UNIT_TEST_SUITE_END();
@@ -16,7 +16,7 @@ class TTempBufTest: public TTestBase {
public:
void TestCreate();
void TestOps();
- void TestMoveCtor();
+ void TestMoveCtor();
void TestProceed();
void TestAppend() {
@@ -64,19 +64,19 @@ void TTempBufTest::TestOps() {
UNIT_ASSERT(tmp.Size() >= 201);
UNIT_ASSERT_EQUAL(tmp.Filled(), 0);
}
-
-void TTempBufTest::TestMoveCtor() {
- TTempBuf src;
- UNIT_ASSERT(!src.IsNull());
-
- src.Proceed(10);
-
+
+void TTempBufTest::TestMoveCtor() {
+ TTempBuf src;
+ UNIT_ASSERT(!src.IsNull());
+
+ src.Proceed(10);
+
TTempBuf dst(std::move(src));
-
- UNIT_ASSERT(src.IsNull());
- UNIT_ASSERT(!dst.IsNull());
- UNIT_ASSERT_EQUAL(dst.Filled(), 10);
-}
+
+ UNIT_ASSERT(src.IsNull());
+ UNIT_ASSERT(!dst.IsNull());
+ UNIT_ASSERT_EQUAL(dst.Filled(), 10);
+}
void TTempBufTest::TestProceed() {
TTempBuf src;