aboutsummaryrefslogtreecommitdiffstats
path: root/yt/cpp
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-07-09 17:50:48 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-07-09 18:11:34 +0300
commit1a588ac4a33af75cc93036c1c23220dd334eb70f (patch)
treed5c6e4a1a3b7ca94306b7887aabef6e734788add /yt/cpp
parent2c5bdb9f4c018e240baadee29088c12f9c8954fb (diff)
downloadydb-1a588ac4a33af75cc93036c1c23220dd334eb70f.tar.gz
Intermediate changes
Diffstat (limited to 'yt/cpp')
-rw-r--r--yt/cpp/mapreduce/io/ut/readers_ut.cpp18
-rw-r--r--yt/cpp/mapreduce/io/ut/ut_row.proto6
2 files changed, 12 insertions, 12 deletions
diff --git a/yt/cpp/mapreduce/io/ut/readers_ut.cpp b/yt/cpp/mapreduce/io/ut/readers_ut.cpp
index 86d06629a2..5068dbb6bc 100644
--- a/yt/cpp/mapreduce/io/ut/readers_ut.cpp
+++ b/yt/cpp/mapreduce/io/ut/readers_ut.cpp
@@ -197,13 +197,13 @@ TEST(TReadersTest, ProtobufGood)
TLenvalProtoTableReader reader(proxy, {TRow::descriptor()});
TRow row1, row2;
- row1.SetString("foobar");
- row1.SetInt32(15);
- row1.SetFixed64(100500);
+ row1.set_string_field("foobar");
+ row1.set_int32_field(15);
+ row1.set_fixed64_field(100500);
- row2.SetString("abc");
- row2.SetInt32(31);
- row2.SetFixed64(-1);
+ row2.set_string_field("abc");
+ row2.set_int32_field(31);
+ row2.set_fixed64_field(-1);
TVector<TRow> expectedRows = {row1, row2};
for (const auto& expectedRow : expectedRows) {
@@ -211,9 +211,9 @@ TEST(TReadersTest, ProtobufGood)
EXPECT_TRUE(reader.IsValid());
EXPECT_TRUE(!reader.IsRawReaderExhausted());
reader.ReadRow(&row);
- EXPECT_EQ(row.GetString(), expectedRow.GetString());
- EXPECT_EQ(row.GetInt32(), expectedRow.GetInt32());
- EXPECT_EQ(row.GetFixed64(), expectedRow.GetFixed64());
+ EXPECT_EQ(row.string_field(), expectedRow.string_field());
+ EXPECT_EQ(row.int32_field(), expectedRow.int32_field());
+ EXPECT_EQ(row.fixed64_field(), expectedRow.fixed64_field());
reader.Next();
}
EXPECT_TRUE(!reader.IsValid());
diff --git a/yt/cpp/mapreduce/io/ut/ut_row.proto b/yt/cpp/mapreduce/io/ut/ut_row.proto
index 6a9649e4c6..87c8e0c281 100644
--- a/yt/cpp/mapreduce/io/ut/ut_row.proto
+++ b/yt/cpp/mapreduce/io/ut/ut_row.proto
@@ -1,7 +1,7 @@
package NYT.NTesting;
message TRow {
- optional string String = 1;
- optional int32 Int32 = 2;
- optional fixed64 Fixed64 = 3;
+ optional string string_field = 1;
+ optional int32 int32_field = 2;
+ optional fixed64 fixed64_field = 3;
}