aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic
diff options
context:
space:
mode:
authoranton-kalsin <anton-kalsin@yandex-team.ru>2022-02-10 16:52:07 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:52:07 +0300
commit171aa4ca47fc0ad5f98ce9cff05c372d4fd13ad4 (patch)
treed8411c760f6cb9889d13797a143aab242e003687 /util/generic
parent26e5ebf156c32ad632ed87dc310e8d21b2038ebd (diff)
downloadydb-171aa4ca47fc0ad5f98ce9cff05c372d4fd13ad4.tar.gz
Restoring authorship annotation for <anton-kalsin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic')
-rw-r--r--util/generic/ptr.pxd6
-rw-r--r--util/generic/ptr_ut.pyx16
2 files changed, 11 insertions, 11 deletions
diff --git a/util/generic/ptr.pxd b/util/generic/ptr.pxd
index 16e8d19144..9b37b7f989 100644
--- a/util/generic/ptr.pxd
+++ b/util/generic/ptr.pxd
@@ -37,6 +37,6 @@ cdef extern from "<util/generic/ptr.h>" nogil:
T& operator*()
T* Get()
void Reset(T*)
-
-
- cdef TAtomicSharedPtr[T] MakeAtomicShared[T](...)
+
+
+ cdef TAtomicSharedPtr[T] MakeAtomicShared[T](...)
diff --git a/util/generic/ptr_ut.pyx b/util/generic/ptr_ut.pyx
index 759681a2cb..969d20c937 100644
--- a/util/generic/ptr_ut.pyx
+++ b/util/generic/ptr_ut.pyx
@@ -1,7 +1,7 @@
-from libcpp.utility cimport pair
-from util.generic.ptr cimport MakeAtomicShared, TAtomicSharedPtr, THolder
+from libcpp.utility cimport pair
+from util.generic.ptr cimport MakeAtomicShared, TAtomicSharedPtr, THolder
from util.generic.string cimport TString
-from util.system.types cimport ui64
+from util.system.types cimport ui64
import pytest
import unittest
@@ -19,8 +19,8 @@ class TestHolder(unittest.TestCase):
assert holder.Get()[0] == "bbb"
holder.Reset(new TString("ccc"))
assert holder.Get()[0] == "ccc"
-
- def test_make_atomic_shared(self):
- cdef TAtomicSharedPtr[pair[ui64, TString]] atomic_shared_ptr = MakeAtomicShared[pair[ui64, TString]](15, "Some string")
- assert atomic_shared_ptr.Get().first == 15
- assert atomic_shared_ptr.Get().second == "Some string"
+
+ def test_make_atomic_shared(self):
+ cdef TAtomicSharedPtr[pair[ui64, TString]] atomic_shared_ptr = MakeAtomicShared[pair[ui64, TString]](15, "Some string")
+ assert atomic_shared_ptr.Get().first == 15
+ assert atomic_shared_ptr.Get().second == "Some string"