aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib
diff options
context:
space:
mode:
authorndnuriev <ndnuriev@yandex-team.ru>2022-02-10 16:49:45 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:45 +0300
commit3659e5861440ac98d0380de7698601ad14655a7a (patch)
treea8cbee25ef3f89582ff526208677df7d14c75c98 /library/cpp/monlib
parentbfd0aa05cabedcab6f4c4d36948dc7581e476782 (diff)
downloadydb-3659e5861440ac98d0380de7698601ad14655a7a.tar.gz
Restoring authorship annotation for <ndnuriev@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/monlib')
-rw-r--r--library/cpp/monlib/encode/json/json_ut.cpp8
-rw-r--r--library/cpp/monlib/encode/spack/spack_v1_ut.cpp2
-rw-r--r--library/cpp/monlib/encode/text/text_encoder_ut.cpp18
3 files changed, 14 insertions, 14 deletions
diff --git a/library/cpp/monlib/encode/json/json_ut.cpp b/library/cpp/monlib/encode/json/json_ut.cpp
index 09e7909289..4532342cb9 100644
--- a/library/cpp/monlib/encode/json/json_ut.cpp
+++ b/library/cpp/monlib/encode/json/json_ut.cpp
@@ -133,7 +133,7 @@ namespace {
Y_UNIT_TEST_SUITE(TJsonTest) {
- const TInstant now = TInstant::ParseIso8601Deprecated("2017-11-05T01:02:03Z");
+ const TInstant now = TInstant::ParseIso8601Deprecated("2017-11-05T01:02:03Z");
Y_UNIT_TEST(Encode) {
auto check = [](bool cloud, bool buffered, TStringBuf expectedResourceKey) {
@@ -446,7 +446,7 @@ Y_UNIT_TEST_SUITE(TJsonTest) {
UNIT_ASSERT_VALUES_EQUAL(
TInstant::MilliSeconds(samples.GetCommonTime()),
- TInstant::ParseIso8601Deprecated("2017-08-27T12:34:56Z"));
+ TInstant::ParseIso8601Deprecated("2017-08-27T12:34:56Z"));
UNIT_ASSERT_VALUES_EQUAL(samples.CommonLabelsSize(), 3);
AssertLabelEqual(samples.GetCommonLabels(0), "project", "solomon");
@@ -480,7 +480,7 @@ Y_UNIT_TEST_SUITE(TJsonTest) {
AssertLabelEqual(s.GetLabels(1), "metric", "QueueSize");
UNIT_ASSERT_VALUES_EQUAL(s.PointsSize(), 1);
- auto ts = TInstant::ParseIso8601Deprecated("2017-11-05T12:34:56.000Z");
+ auto ts = TInstant::ParseIso8601Deprecated("2017-11-05T12:34:56.000Z");
AssertPointEqual(s.GetPoints(0), ts, 3.14159);
}
{
@@ -490,7 +490,7 @@ Y_UNIT_TEST_SUITE(TJsonTest) {
AssertLabelEqual(s.GetLabels(0), "metric", "Writes");
UNIT_ASSERT_VALUES_EQUAL(s.PointsSize(), 2);
- auto ts1 = TInstant::ParseIso8601Deprecated("2017-08-28T12:32:11Z");
+ auto ts1 = TInstant::ParseIso8601Deprecated("2017-08-28T12:32:11Z");
AssertPointEqual(s.GetPoints(0), ts1, -10.0);
auto ts2 = TInstant::Seconds(1503923187);
AssertPointEqual(s.GetPoints(1), ts2, 20.0);
diff --git a/library/cpp/monlib/encode/spack/spack_v1_ut.cpp b/library/cpp/monlib/encode/spack/spack_v1_ut.cpp
index fe778eb7e0..62a0cae2d4 100644
--- a/library/cpp/monlib/encode/spack/spack_v1_ut.cpp
+++ b/library/cpp/monlib/encode/spack/spack_v1_ut.cpp
@@ -241,7 +241,7 @@ Y_UNIT_TEST_SUITE(TSpackTest) {
Y_ARRAY_SIZE(expectedMetric7) +
Y_ARRAY_SIZE(expectedMetric8);
- const TInstant now = TInstant::ParseIso8601Deprecated("2017-11-05T01:02:03Z");
+ const TInstant now = TInstant::ParseIso8601Deprecated("2017-11-05T01:02:03Z");
// {1: 1, 2: 1, 4: 2, 8: 4, 16: 8, inf: 83}
IHistogramSnapshotPtr TestHistogram() {
diff --git a/library/cpp/monlib/encode/text/text_encoder_ut.cpp b/library/cpp/monlib/encode/text/text_encoder_ut.cpp
index 554b6f5fa9..9840489097 100644
--- a/library/cpp/monlib/encode/text/text_encoder_ut.cpp
+++ b/library/cpp/monlib/encode/text/text_encoder_ut.cpp
@@ -26,7 +26,7 @@ Y_UNIT_TEST_SUITE(TTextText) {
Y_UNIT_TEST(CommonPart) {
auto result = EncodeToString(true, [](IMetricEncoder* e) {
e->OnStreamBegin();
- e->OnCommonTime(TInstant::ParseIso8601Deprecated("2017-01-02T03:04:05.006Z"));
+ e->OnCommonTime(TInstant::ParseIso8601Deprecated("2017-01-02T03:04:05.006Z"));
{
e->OnLabelsBegin();
e->OnLabel("project", "solomon");
@@ -73,7 +73,7 @@ Y_UNIT_TEST_SUITE(TTextText) {
e->OnLabel("dc", "man");
e->OnLabelsEnd();
}
- e->OnDouble(TInstant::ParseIso8601Deprecated("2017-12-02T12:00:00Z"), 1000);
+ e->OnDouble(TInstant::ParseIso8601Deprecated("2017-12-02T12:00:00Z"), 1000);
e->OnMetricEnd();
}
{ // many values
@@ -85,9 +85,9 @@ Y_UNIT_TEST_SUITE(TTextText) {
e->OnLabel("dc", "sas");
e->OnLabelsEnd();
}
- e->OnDouble(TInstant::ParseIso8601Deprecated("2017-12-02T12:00:00Z"), 2);
- e->OnDouble(TInstant::ParseIso8601Deprecated("2017-12-02T12:00:05Z"), 4);
- e->OnDouble(TInstant::ParseIso8601Deprecated("2017-12-02T12:00:10Z"), 8);
+ e->OnDouble(TInstant::ParseIso8601Deprecated("2017-12-02T12:00:00Z"), 2);
+ e->OnDouble(TInstant::ParseIso8601Deprecated("2017-12-02T12:00:05Z"), 4);
+ e->OnDouble(TInstant::ParseIso8601Deprecated("2017-12-02T12:00:10Z"), 8);
e->OnMetricEnd();
}
e->OnStreamEnd();
@@ -189,7 +189,7 @@ Y_UNIT_TEST_SUITE(TTextText) {
e->OnLabel("dc", "man");
e->OnLabelsEnd();
}
- e->OnUint64(TInstant::ParseIso8601Deprecated("2017-12-02T12:00:00Z"), 1000);
+ e->OnUint64(TInstant::ParseIso8601Deprecated("2017-12-02T12:00:00Z"), 1000);
e->OnMetricEnd();
}
{ // many values
@@ -201,9 +201,9 @@ Y_UNIT_TEST_SUITE(TTextText) {
e->OnLabel("dc", "sas");
e->OnLabelsEnd();
}
- e->OnUint64(TInstant::ParseIso8601Deprecated("2017-12-02T12:00:00Z"), 2);
- e->OnUint64(TInstant::ParseIso8601Deprecated("2017-12-02T12:00:05Z"), 4);
- e->OnUint64(TInstant::ParseIso8601Deprecated("2017-12-02T12:00:10Z"), 8);
+ e->OnUint64(TInstant::ParseIso8601Deprecated("2017-12-02T12:00:00Z"), 2);
+ e->OnUint64(TInstant::ParseIso8601Deprecated("2017-12-02T12:00:05Z"), 4);
+ e->OnUint64(TInstant::ParseIso8601Deprecated("2017-12-02T12:00:10Z"), 8);
e->OnMetricEnd();
}
e->OnStreamEnd();