aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/binsaver/ut/binsaver_ut.cpp
diff options
context:
space:
mode:
authorpozhilov <pozhilov@yandex-team.ru>2022-02-10 16:49:27 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:27 +0300
commit29b120fd551ad11a832424491fa992809feb3e99 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/binsaver/ut/binsaver_ut.cpp
parent23bf1d16dddf213a6aa8e8d5c8621e1242a1f118 (diff)
downloadydb-29b120fd551ad11a832424491fa992809feb3e99.tar.gz
Restoring authorship annotation for <pozhilov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/binsaver/ut/binsaver_ut.cpp')
-rw-r--r--library/cpp/binsaver/ut/binsaver_ut.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/library/cpp/binsaver/ut/binsaver_ut.cpp b/library/cpp/binsaver/ut/binsaver_ut.cpp
index dd0584072f..37eba5406f 100644
--- a/library/cpp/binsaver/ut/binsaver_ut.cpp
+++ b/library/cpp/binsaver/ut/binsaver_ut.cpp
@@ -39,27 +39,27 @@ struct TCustomOuterSerializerTmplDerived: public TCustomOuterSerializerTmpl {
TString StrData;
};
-struct TMoveOnlyType {
- ui32 Data = 0;
-
- TMoveOnlyType() = default;
- TMoveOnlyType(TMoveOnlyType&&) = default;
-
+struct TMoveOnlyType {
+ ui32 Data = 0;
+
+ TMoveOnlyType() = default;
+ TMoveOnlyType(TMoveOnlyType&&) = default;
+
bool operator==(const TMoveOnlyType& obj) const {
- return Data == obj.Data;
- }
-};
-
-struct TTypeWithArray {
- ui32 Data = 1;
+ return Data == obj.Data;
+ }
+};
+
+struct TTypeWithArray {
+ ui32 Data = 1;
TString Array[2][2]{{"test", "data"}, {"and", "more"}};
-
- SAVELOAD(Data, Array);
+
+ SAVELOAD(Data, Array);
bool operator==(const TTypeWithArray& obj) const {
return Data == obj.Data && std::equal(std::begin(Array[0]), std::end(Array[0]), obj.Array[0]) && std::equal(std::begin(Array[1]), std::end(Array[1]), obj.Array[1]);
- }
-};
-
+ }
+};
+
template <typename T, typename = std::enable_if_t<std::is_base_of<TCustomOuterSerializerTmpl, T>::value>>
int operator&(T& s, IBinSaver& f);
@@ -86,7 +86,7 @@ Y_UNIT_TEST(TestStroka) {
Y_UNIT_TEST(TestMoveOnlyType) {
TestBinSaverSerializationToBuffer(TMoveOnlyType());
}
-
+
Y_UNIT_TEST(TestVectorStrok) {
TestBinSaverSerialization(TVector<TString>{"A", "B", "C"});
}