aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yson_pull/ut
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/yson_pull/ut
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/yson_pull/ut')
-rw-r--r--library/cpp/yson_pull/ut/cescape_ut.cpp8
-rw-r--r--library/cpp/yson_pull/ut/loop_ut.cpp2
-rw-r--r--library/cpp/yson_pull/ut/writer_ut.cpp12
3 files changed, 11 insertions, 11 deletions
diff --git a/library/cpp/yson_pull/ut/cescape_ut.cpp b/library/cpp/yson_pull/ut/cescape_ut.cpp
index 6628ba1d15..d0f65be3fe 100644
--- a/library/cpp/yson_pull/ut/cescape_ut.cpp
+++ b/library/cpp/yson_pull/ut/cescape_ut.cpp
@@ -5,7 +5,7 @@
using namespace NYsonPull::NDetail;
namespace {
- void test_roundtrip(const TVector<ui8>& str) {
+ void test_roundtrip(const TVector<ui8>& str) {
TStringBuf str_buf(
reinterpret_cast<const char*>(str.data()),
str.size());
@@ -19,7 +19,7 @@ namespace {
}
template <size_t N>
- void test_exhaustive(TVector<ui8>& str) {
+ void test_exhaustive(TVector<ui8>& str) {
for (int i = 0; i < 256; ++i) {
str[str.size() - N] = static_cast<char>(i);
test_exhaustive<N - 1>(str);
@@ -27,13 +27,13 @@ namespace {
}
template <>
- void test_exhaustive<0>(TVector<ui8>& str) {
+ void test_exhaustive<0>(TVector<ui8>& str) {
test_roundtrip(str);
}
template <size_t N>
void test_exhaustive() {
- TVector<ui8> str(N, ' ');
+ TVector<ui8> str(N, ' ');
test_exhaustive<N>(str);
}
diff --git a/library/cpp/yson_pull/ut/loop_ut.cpp b/library/cpp/yson_pull/ut/loop_ut.cpp
index 8c7b11dd1c..361c3df8ca 100644
--- a/library/cpp/yson_pull/ut/loop_ut.cpp
+++ b/library/cpp/yson_pull/ut/loop_ut.cpp
@@ -215,7 +215,7 @@ namespace {
template <typename Function>
void test_memory(Function make_writer, size_t nrepeat) {
- TString text;
+ TString text;
{
auto writer = make_writer(NYsonPull::NOutput::FromString(&text));
generate(writer, nrepeat);
diff --git a/library/cpp/yson_pull/ut/writer_ut.cpp b/library/cpp/yson_pull/ut/writer_ut.cpp
index 5c304bad0f..da20469697 100644
--- a/library/cpp/yson_pull/ut/writer_ut.cpp
+++ b/library/cpp/yson_pull/ut/writer_ut.cpp
@@ -3,7 +3,7 @@
#include <library/cpp/testing/unittest/registar.h>
-#include <util/generic/string.h>
+#include <util/generic/string.h>
#include <climits>
#include <limits>
@@ -12,8 +12,8 @@ using namespace std::string_view_literals;
namespace {
template <typename Writer, typename Function>
- TString with_writer(Function&& function) {
- TString result;
+ TString with_writer(Function&& function) {
+ TString result;
auto writer = NYsonPull::NDetail::make_writer<Writer>(
NYsonPull::NOutput::FromString(&result),
NYsonPull::EStreamType::Node);
@@ -24,19 +24,19 @@ namespace {
}
template <typename Writer>
- TString to_yson_string(const NYsonPull::TScalar& value) {
+ TString to_yson_string(const NYsonPull::TScalar& value) {
return with_writer<Writer>([&](NYsonPull::TWriter& writer) {
writer.BeginStream().Scalar(value).EndStream();
});
}
template <typename T>
- TString to_yson_binary_string(T&& value) {
+ TString to_yson_binary_string(T&& value) {
return to_yson_string<NYsonPull::NDetail::TBinaryWriterImpl>(std::forward<T>(value));
}
template <typename T>
- TString to_yson_text_string(T&& value) {
+ TString to_yson_text_string(T&& value) {
return to_yson_string<NYsonPull::NDetail::TTextWriterImpl>(std::forward<T>(value));
}