aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/deprecated/json/writer_ut.cpp
diff options
context:
space:
mode:
authorSergey Polovko <sergey@polovko.me>2022-02-10 16:47:02 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:02 +0300
commit3e0b762a82514bac89c1dd6ea7211e381d8aa248 (patch)
treec2d1b379ecaf05ca8f11ed0b5da9d1a950e6e554 /library/cpp/monlib/deprecated/json/writer_ut.cpp
parentab3783171cc30e262243a0227c86118f7080c896 (diff)
downloadydb-3e0b762a82514bac89c1dd6ea7211e381d8aa248.tar.gz
Restoring authorship annotation for Sergey Polovko <sergey@polovko.me>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/monlib/deprecated/json/writer_ut.cpp')
-rw-r--r--library/cpp/monlib/deprecated/json/writer_ut.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/library/cpp/monlib/deprecated/json/writer_ut.cpp b/library/cpp/monlib/deprecated/json/writer_ut.cpp
index 1f9fc8f393..f39fe85f1c 100644
--- a/library/cpp/monlib/deprecated/json/writer_ut.cpp
+++ b/library/cpp/monlib/deprecated/json/writer_ut.cpp
@@ -1,30 +1,30 @@
-#include "writer.h"
-
+#include "writer.h"
+
#include <library/cpp/testing/unittest/registar.h>
-using namespace NMonitoring;
+using namespace NMonitoring;
-Y_UNIT_TEST_SUITE(JsonWriterTests) {
+Y_UNIT_TEST_SUITE(JsonWriterTests) {
Y_UNIT_TEST(One) {
TStringStream ss;
- TDeprecatedJsonWriter w(&ss);
+ TDeprecatedJsonWriter w(&ss);
w.OpenDocument();
- w.OpenMetrics();
+ w.OpenMetrics();
for (int i = 0; i < 5; ++i) {
- w.OpenMetric();
+ w.OpenMetric();
w.OpenLabels();
- w.WriteLabel("user", TString("") + (char)('a' + i));
- w.WriteLabel("name", "NWrites");
+ w.WriteLabel("user", TString("") + (char)('a' + i));
+ w.WriteLabel("name", "NWrites");
w.CloseLabels();
if (i % 2 == 0) {
w.WriteModeDeriv();
}
w.WriteValue(10l);
- w.CloseMetric();
+ w.CloseMetric();
}
- w.CloseMetrics();
+ w.CloseMetrics();
w.CloseDocument();
//Cout << ss.Str() << "\n";