aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic
diff options
context:
space:
mode:
authormstebelev <mstebelev@yandex-team.ru>2022-02-10 16:47:17 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:17 +0300
commit93e9e4639b6ee2afbdf45cf3927cea6d340e19b0 (patch)
tree9814fbd1c3effac9b8377c5d604b367b14e2db55 /util/generic
parent5a176099114d03d5669e95a55a3a514bd24dd8b1 (diff)
downloadydb-93e9e4639b6ee2afbdf45cf3927cea6d340e19b0.tar.gz
Restoring authorship annotation for <mstebelev@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic')
-rw-r--r--util/generic/maybe.cpp10
-rw-r--r--util/generic/maybe_ut.cpp12
-rw-r--r--util/generic/string_ut.pyx8
3 files changed, 15 insertions, 15 deletions
diff --git a/util/generic/maybe.cpp b/util/generic/maybe.cpp
index b4c5cd119f..43262934f8 100644
--- a/util/generic/maybe.cpp
+++ b/util/generic/maybe.cpp
@@ -1,6 +1,6 @@
#include "maybe.h"
#include <util/system/type_name.h>
-
+
[[noreturn]] void NMaybe::TPolicyUndefinedExcept::OnEmpty(const std::type_info& valueTypeInfo) {
ythrow yexception() << "TMaybe is empty, value type: "sv << TypeName(valueTypeInfo);
}
@@ -10,7 +10,7 @@
Y_FAIL("TMaybe is empty, value type: %s", typeName.c_str());
}
-template <>
-void Out<TNothing>(IOutputStream& o, const TNothing&) {
- o << "(empty maybe)";
-}
+template <>
+void Out<TNothing>(IOutputStream& o, const TNothing&) {
+ o << "(empty maybe)";
+}
diff --git a/util/generic/maybe_ut.cpp b/util/generic/maybe_ut.cpp
index 173e174603..2c1a425c5e 100644
--- a/util/generic/maybe_ut.cpp
+++ b/util/generic/maybe_ut.cpp
@@ -796,12 +796,12 @@ Y_UNIT_TEST_SUITE(TMaybeTest) {
}
Y_UNIT_TEST(TestOutputStreamNothing) {
- TString s;
- TStringOutput output(s);
- output << Nothing();
- UNIT_ASSERT_VALUES_EQUAL("(empty maybe)", s);
- }
-
+ TString s;
+ TStringOutput output(s);
+ output << Nothing();
+ UNIT_ASSERT_VALUES_EQUAL("(empty maybe)", s);
+ }
+
Y_UNIT_TEST(TestOutputStreamDefinedMaybe) {
TString s;
TStringOutput output(s);
diff --git a/util/generic/string_ut.pyx b/util/generic/string_ut.pyx
index 8791f9bc83..5407f5b4c1 100644
--- a/util/generic/string_ut.pyx
+++ b/util/generic/string_ut.pyx
@@ -10,11 +10,11 @@ import sys
class TestStroka(unittest.TestCase):
- def test_unicode(self):
- cdef TString x = "привет"
- self.assertEquals(x, "привет")
+ def test_unicode(self):
+ cdef TString x = "привет"
+ self.assertEquals(x, "привет")
+
-
def test_ctor1(self):
cdef TString tmp = TString()
cdef TString tmp2 = TString(tmp)