aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/encode
diff options
context:
space:
mode:
authord-korotin <d-korotin@yandex-team.ru>2022-02-10 16:49:44 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:44 +0300
commit06dd6142880381ed6139a2a26614e085e3acc028 (patch)
tree9f9185f8fa9ffa8ce513d882cfb3cac5d9b00c08 /library/cpp/monlib/encode
parent573561e4ea1e5fcbf31e871b7f81ece0051c6bf2 (diff)
downloadydb-06dd6142880381ed6139a2a26614e085e3acc028.tar.gz
Restoring authorship annotation for <d-korotin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/monlib/encode')
-rw-r--r--library/cpp/monlib/encode/unistat/unistat_decoder.cpp2
-rw-r--r--library/cpp/monlib/encode/unistat/unistat_ut.cpp26
2 files changed, 14 insertions, 14 deletions
diff --git a/library/cpp/monlib/encode/unistat/unistat_decoder.cpp b/library/cpp/monlib/encode/unistat/unistat_decoder.cpp
index b2344b0905..4a7232416a 100644
--- a/library/cpp/monlib/encode/unistat/unistat_decoder.cpp
+++ b/library/cpp/monlib/encode/unistat/unistat_decoder.cpp
@@ -15,7 +15,7 @@
using namespace NJson;
-const re2::RE2 NAME_RE{R"((?:[a-zA-Z0-9\.\-/@_]+_)+(?:[ad][vehmntx]{3}|summ|hgram|max))"};
+const re2::RE2 NAME_RE{R"((?:[a-zA-Z0-9\.\-/@_]+_)+(?:[ad][vehmntx]{3}|summ|hgram|max))"};
namespace NMonitoring {
namespace {
diff --git a/library/cpp/monlib/encode/unistat/unistat_ut.cpp b/library/cpp/monlib/encode/unistat/unistat_ut.cpp
index dbbc238bf3..599b35e0ea 100644
--- a/library/cpp/monlib/encode/unistat/unistat_ut.cpp
+++ b/library/cpp/monlib/encode/unistat/unistat_ut.cpp
@@ -30,7 +30,7 @@ Y_UNIT_TEST_SUITE(TUnistatDecoderTest) {
}
Y_UNIT_TEST(OverriddenTags) {
- constexpr auto input = TStringBuf(R"([["ctype=foo;prj=bar;custom_tag=qwe;something_axxx", 42]])");
+ constexpr auto input = TStringBuf(R"([["ctype=foo;prj=bar;custom_tag=qwe;something_axxx", 42]])");
NProto::TMultiSamplesList samples;
auto encoder = EncoderProtobuf(&samples);
@@ -40,7 +40,7 @@ Y_UNIT_TEST_SUITE(TUnistatDecoderTest) {
UNIT_ASSERT_VALUES_EQUAL(samples.SamplesSize(), 1);
auto sample = samples.GetSamples(0);
UNIT_ASSERT_VALUES_EQUAL(sample.PointsSize(), 1);
- UNIT_ASSERT_VALUES_EQUAL(sample.LabelsSize(), 4);
+ UNIT_ASSERT_VALUES_EQUAL(sample.LabelsSize(), 4);
const auto& labels = sample.GetLabels();
TLabels actual;
@@ -48,7 +48,7 @@ Y_UNIT_TEST_SUITE(TUnistatDecoderTest) {
actual.Add(l.GetName(), l.GetValue());
}
- TLabels expected{{"ctype", "foo"}, {"prj", "bar"}, {"custom_tag", "qwe"}, {"sensor", "something_axxx"}};
+ TLabels expected{{"ctype", "foo"}, {"prj", "bar"}, {"custom_tag", "qwe"}, {"sensor", "something_axxx"}};
UNIT_ASSERT_VALUES_EQUAL(actual.size(), expected.size());
for (auto&& l : actual) {
@@ -119,16 +119,16 @@ Y_UNIT_TEST_SUITE(TUnistatDecoderTest) {
UNIT_ASSERT_VALUES_EQUAL(sample.LabelsSize(), 1);
}
- Y_UNIT_TEST(AllowedMetricNames) {
- NProto::TMultiSamplesList samples;
- auto encoder = EncoderProtobuf(&samples);
-
- {
- constexpr auto input = TStringBuf(R"([["a/A-b/c_D/__G_dmmm", [[0, 1], [200, 2], [500, 3]] ]])");
- UNIT_ASSERT_NO_EXCEPTION(DecodeUnistat(input, encoder.Get()));
- }
- }
-
+ Y_UNIT_TEST(AllowedMetricNames) {
+ NProto::TMultiSamplesList samples;
+ auto encoder = EncoderProtobuf(&samples);
+
+ {
+ constexpr auto input = TStringBuf(R"([["a/A-b/c_D/__G_dmmm", [[0, 1], [200, 2], [500, 3]] ]])");
+ UNIT_ASSERT_NO_EXCEPTION(DecodeUnistat(input, encoder.Get()));
+ }
+ }
+
Y_UNIT_TEST(DisallowedMetricNames) {
NProto::TMultiSamplesList samples;
auto encoder = EncoderProtobuf(&samples);