aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/logger/log_ut.cpp
diff options
context:
space:
mode:
authorvarvar4ik <varvar4ik@yandex-team.ru>2022-02-10 16:50:13 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:13 +0300
commitc1fc12057772730209766bc9bd09ed842310b1c8 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/logger/log_ut.cpp
parentf5256e2807bd0fc8626a4ce002a83b9b13860269 (diff)
downloadydb-c1fc12057772730209766bc9bd09ed842310b1c8.tar.gz
Restoring authorship annotation for <varvar4ik@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/logger/log_ut.cpp')
-rw-r--r--library/cpp/logger/log_ut.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/library/cpp/logger/log_ut.cpp b/library/cpp/logger/log_ut.cpp
index 7456f7273b..8de46f17f5 100644
--- a/library/cpp/logger/log_ut.cpp
+++ b/library/cpp/logger/log_ut.cpp
@@ -17,7 +17,7 @@ class TLogTest: public TTestBase {
UNIT_TEST(TestWrite)
UNIT_TEST(TestThreaded)
UNIT_TEST(TestThreadedWithOverflow)
- UNIT_TEST(TestNoFlush)
+ UNIT_TEST(TestNoFlush)
UNIT_TEST_SUITE_END();
private:
@@ -26,7 +26,7 @@ private:
void TestWrite();
void TestThreaded();
void TestThreadedWithOverflow();
- void TestNoFlush();
+ void TestNoFlush();
void SetUp() override;
void TearDown() override;
};
@@ -131,25 +131,25 @@ void TLogTest::TestThreadedWithOverflow() {
}
}
-void TLogTest::TestNoFlush() {
- {
- TFileLogBackend fb(LOGFILE);
+void TLogTest::TestNoFlush() {
+ {
+ TFileLogBackend fb(LOGFILE);
TLog log(THolder(new TThreadedLogBackend(&fb)));
-
- int v1 = 12;
- unsigned v2 = 34;
- double v3 = 3.0;
- const char* v4 = "qwqwqw";
-
- log.ReopenLogNoFlush();
- log.AddLog("some useful data %d, %u, %lf, %s\n", v1, v2, v3, v4);
- }
-
- TBlob data = TBlob::FromFileSingleThreaded(LOGFILE);
-
- UNIT_ASSERT_EQUAL(TString((const char*)data.Begin(), data.Size()), "some useful data 12, 34, 3.000000, qwqwqw\n");
-}
-
+
+ int v1 = 12;
+ unsigned v2 = 34;
+ double v3 = 3.0;
+ const char* v4 = "qwqwqw";
+
+ log.ReopenLogNoFlush();
+ log.AddLog("some useful data %d, %u, %lf, %s\n", v1, v2, v3, v4);
+ }
+
+ TBlob data = TBlob::FromFileSingleThreaded(LOGFILE);
+
+ UNIT_ASSERT_EQUAL(TString((const char*)data.Begin(), data.Size()), "some useful data 12, 34, 3.000000, qwqwqw\n");
+}
+
void TLogTest::TestFormat() {
TStringStream data;