aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/actors/util/rope_ut.cpp
diff options
context:
space:
mode:
authorinnokentii <innokentii@yandex-team.com>2022-12-09 10:17:25 +0300
committerinnokentii <innokentii@yandex-team.com>2022-12-09 10:17:25 +0300
commit216e087ea762ae7e4f19e219a18360a93adf8ae6 (patch)
tree7c8da8e9b298f1cc9307fabdb896404db757f0b3 /library/cpp/actors/util/rope_ut.cpp
parent9323fe28059355bafc517301a3e7a00fc0367f08 (diff)
downloadydb-216e087ea762ae7e4f19e219a18360a93adf8ae6.tar.gz
Rename TContiguousData to TRcBuf
rename TContiguousData to TRcBuf
Diffstat (limited to 'library/cpp/actors/util/rope_ut.cpp')
-rw-r--r--library/cpp/actors/util/rope_ut.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/actors/util/rope_ut.cpp b/library/cpp/actors/util/rope_ut.cpp
index 5ca02d8043..ba7c38044f 100644
--- a/library/cpp/actors/util/rope_ut.cpp
+++ b/library/cpp/actors/util/rope_ut.cpp
@@ -140,11 +140,11 @@ Y_UNIT_TEST_SUITE(TRope) {
Y_UNIT_TEST(ContiguousDataInterop) {
TString string = "Some long-long text needed for not sharing data and testing";
- TContiguousData data(string);
+ TRcBuf data(string);
UNIT_ASSERT_EQUAL(data.UnsafeGetDataMut(), &(*string.cbegin()));
TRope rope(data); // check operator TRope
UNIT_ASSERT_EQUAL(rope.UnsafeGetContiguousSpanMut().data(), &(*string.cbegin()));
- TContiguousData otherData(rope);
+ TRcBuf otherData(rope);
UNIT_ASSERT_EQUAL(otherData.UnsafeGetDataMut(), &(*string.cbegin()));
TString extractedBack = otherData.ExtractUnderlyingContainerOrCopy<TString>();
UNIT_ASSERT_EQUAL(extractedBack.data(), &(*string.cbegin()));
@@ -159,8 +159,8 @@ Y_UNIT_TEST_SUITE(TRope) {
const TContiguousSpan constSpan(str);
TMutableContiguousSpan mutableSpan(const_cast<char*>(str.data()), str.size());
const TMutableContiguousSpan constMutableSpan(const_cast<char*>(str.data()), str.size());
- TContiguousData data(str);
- const TContiguousData constData(str);
+ TRcBuf data(str);
+ const TRcBuf constData(str);
TArrayRef<char> arrRef(const_cast<char*>(str.data()), str.size());
const TArrayRef<char> constArrRef(const_cast<char*>(str.data()), str.size());
TArrayRef<const char> arrConstRef(const_cast<char*>(str.data()), str.size());