aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/monlib/encode/json/json_decoder_ut.cpp
diff options
context:
space:
mode:
authortobo <tobo@yandex-team.ru>2022-02-10 16:47:27 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:27 +0300
commit55a7f90e4cd31e9481cace8ee5dfd682c27e810e (patch)
tree9814fbd1c3effac9b8377c5d604b367b14e2db55 /library/cpp/monlib/encode/json/json_decoder_ut.cpp
parent7fe839092527589b38f014d854c51565b3c1adfa (diff)
downloadydb-55a7f90e4cd31e9481cace8ee5dfd682c27e810e.tar.gz
Restoring authorship annotation for <tobo@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/monlib/encode/json/json_decoder_ut.cpp')
-rw-r--r--library/cpp/monlib/encode/json/json_decoder_ut.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/monlib/encode/json/json_decoder_ut.cpp b/library/cpp/monlib/encode/json/json_decoder_ut.cpp
index 6c047f96e5..4464e1d26a 100644
--- a/library/cpp/monlib/encode/json/json_decoder_ut.cpp
+++ b/library/cpp/monlib/encode/json/json_decoder_ut.cpp
@@ -15,15 +15,15 @@ enum EJsonPart : ui8 {
};
constexpr std::array<TStringBuf, 3> JSON_PARTS = {
- TStringBuf(R"("metrics": [{
+ TStringBuf(R"("metrics": [{
"labels": { "key": "value" },
"type": "GAUGE",
"value": 123
}])"),
- TStringBuf(R"("ts": 1)"),
+ TStringBuf(R"("ts": 1)"),
- TStringBuf(R"("commonLabels": {
+ TStringBuf(R"("commonLabels": {
"key1": "value1",
"key2": "value2"
})"),
@@ -52,10 +52,10 @@ void ValidateCommonParts(TCommonParts&& commonParts, bool checkLabels, bool chec
if (checkLabels) {
auto& labels = commonParts.CommonLabels;
UNIT_ASSERT_VALUES_EQUAL(labels.Size(), 2);
- UNIT_ASSERT(labels.Has(TStringBuf("key1")));
- UNIT_ASSERT(labels.Has(TStringBuf("key2")));
- UNIT_ASSERT_VALUES_EQUAL(labels.Get(TStringBuf("key1")).value()->Value(), "value1");
- UNIT_ASSERT_VALUES_EQUAL(labels.Get(TStringBuf("key2")).value()->Value(), "value2");
+ UNIT_ASSERT(labels.Has(TStringBuf("key1")));
+ UNIT_ASSERT(labels.Has(TStringBuf("key2")));
+ UNIT_ASSERT_VALUES_EQUAL(labels.Get(TStringBuf("key1")).value()->Value(), "value1");
+ UNIT_ASSERT_VALUES_EQUAL(labels.Get(TStringBuf("key2")).value()->Value(), "value2");
}
}