aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/string/unittests/guid_ut.cpp
diff options
context:
space:
mode:
authorbabenko <babenko@yandex-team.com>2025-02-22 17:28:25 +0300
committerbabenko <babenko@yandex-team.com>2025-02-22 17:48:29 +0300
commit59afaa0cb7cd89146dd10f5446256afcce33bd0e (patch)
tree38d3c46bcba8da7c3b8ffc6b818695bc6b62d532 /library/cpp/yt/string/unittests/guid_ut.cpp
parent1d9cc117e33b162a5247032e175ed7ea26971437 (diff)
downloadydb-59afaa0cb7cd89146dd10f5446256afcce33bd0e.tar.gz
YT-22593: More trivial TString->std::string migrations
[nodiff:runtime] commit_hash:1ba799aed1703ab7c6304b6da7090b3337f768dd
Diffstat (limited to 'library/cpp/yt/string/unittests/guid_ut.cpp')
-rw-r--r--library/cpp/yt/string/unittests/guid_ut.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/yt/string/unittests/guid_ut.cpp b/library/cpp/yt/string/unittests/guid_ut.cpp
index ed02b87391..9cff37c380 100644
--- a/library/cpp/yt/string/unittests/guid_ut.cpp
+++ b/library/cpp/yt/string/unittests/guid_ut.cpp
@@ -12,7 +12,7 @@ namespace {
static_assert(CFormattable<TGuid>);
-TString CanonicalToString(TGuid value)
+std::string CanonicalToString(TGuid value)
{
return Sprintf("%x-%x-%x-%x",
value.Parts32[3],
@@ -48,7 +48,7 @@ TEST(TGuidTest, FormatAllSymbols)
TEST(TGuidTest, ByteOrder)
{
auto guid = TGuid::FromStringHex32("12345678ABCDEF0112345678ABCDEF01");
- TString bytes{reinterpret_cast<const char*>(&(guid.Parts32[0])), 16};
+ std::string bytes{reinterpret_cast<const char*>(&(guid.Parts32[0])), 16};
EXPECT_EQ(HexEncode(bytes), "01EFCDAB7856341201EFCDAB78563412");
}