diff options
author | Sergey Polovko <sergey@polovko.me> | 2022-02-10 16:47:03 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:03 +0300 |
commit | 2e714b5ebd40a1f4cc31c27f1ad6e49ca6d895f5 (patch) | |
tree | b83306b6e37edeea782e9eed673d89286c4fef35 /library/cpp/monlib/deprecated/json/writer_ut.cpp | |
parent | 3e0b762a82514bac89c1dd6ea7211e381d8aa248 (diff) | |
download | ydb-2e714b5ebd40a1f4cc31c27f1ad6e49ca6d895f5.tar.gz |
Restoring authorship annotation for Sergey Polovko <sergey@polovko.me>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/monlib/deprecated/json/writer_ut.cpp')
-rw-r--r-- | library/cpp/monlib/deprecated/json/writer_ut.cpp | 22 |
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 f39fe85f1c..1f9fc8f393 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"; |