aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/blockcodecs/codecs_ut.cpp
diff options
context:
space:
mode:
authorRuslan Kovalev <ruslan.a.kovalev@gmail.com>2022-02-10 16:46:45 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:45 +0300
commit9123176b341b6f2658cff5132482b8237c1416c8 (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /library/cpp/blockcodecs/codecs_ut.cpp
parent59e19371de37995fcb36beb16cd6ec030af960bc (diff)
downloadydb-9123176b341b6f2658cff5132482b8237c1416c8.tar.gz
Restoring authorship annotation for Ruslan Kovalev <ruslan.a.kovalev@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/blockcodecs/codecs_ut.cpp')
-rw-r--r--library/cpp/blockcodecs/codecs_ut.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/library/cpp/blockcodecs/codecs_ut.cpp b/library/cpp/blockcodecs/codecs_ut.cpp
index 54c1ce376f..bfe5a23690 100644
--- a/library/cpp/blockcodecs/codecs_ut.cpp
+++ b/library/cpp/blockcodecs/codecs_ut.cpp
@@ -10,22 +10,22 @@
Y_UNIT_TEST_SUITE(TBlockCodecsTest) {
using namespace NBlockCodecs;
- TBuffer Buffer(TStringBuf b) {
- TBuffer bb;
+ TBuffer Buffer(TStringBuf b) {
+ TBuffer bb;
bb.Assign(b.data(), b.size());
- return bb;
- }
-
+ return bb;
+ }
+
void TestAllAtOnce(size_t n, size_t m) {
TVector<TBuffer> datas;
datas.emplace_back();
- datas.push_back(Buffer("na gorshke sidel korol"));
- datas.push_back(Buffer(TStringBuf("", 1)));
- datas.push_back(Buffer(" "));
- datas.push_back(Buffer(" "));
- datas.push_back(Buffer(" "));
- datas.push_back(Buffer(" "));
+ datas.push_back(Buffer("na gorshke sidel korol"));
+ datas.push_back(Buffer(TStringBuf("", 1)));
+ datas.push_back(Buffer(" "));
+ datas.push_back(Buffer(" "));
+ datas.push_back(Buffer(" "));
+ datas.push_back(Buffer(" "));
{
TStringStream data;
@@ -49,15 +49,15 @@ Y_UNIT_TEST_SUITE(TBlockCodecsTest) {
}
for (size_t j = 0; j < datas.size(); ++j) {
- const TBuffer& data = datas[j];
+ const TBuffer& data = datas[j];
TString res;
-
+
try {
- TBuffer e, d;
- c->Encode(data, e);
- c->Decode(e, d);
- d.AsString(res);
- UNIT_ASSERT_EQUAL(NBlockCodecs::TData(res), NBlockCodecs::TData(data));
+ TBuffer e, d;
+ c->Encode(data, e);
+ c->Decode(e, d);
+ d.AsString(res);
+ UNIT_ASSERT_EQUAL(NBlockCodecs::TData(res), NBlockCodecs::TData(data));
} catch (...) {
Cerr << c->Name() << "(" << res.Quote() << ")(" << TString{NBlockCodecs::TData(data)}.Quote() << ")" << Endl;