diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:15 +0300 |
commit | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch) | |
tree | da2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /util/generic/lazy_value_ut.cpp | |
parent | 778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff) | |
download | ydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/lazy_value_ut.cpp')
-rw-r--r-- | util/generic/lazy_value_ut.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/generic/lazy_value_ut.cpp b/util/generic/lazy_value_ut.cpp index f6135880c3..07aa44538e 100644 --- a/util/generic/lazy_value_ut.cpp +++ b/util/generic/lazy_value_ut.cpp @@ -4,7 +4,7 @@ Y_UNIT_TEST_SUITE(TLazyValueTestSuite) { Y_UNIT_TEST(TestLazyValue) { - TLazyValue<int> value([]() { + TLazyValue<int> value([]() { return 5; }); UNIT_ASSERT(!value); @@ -13,9 +13,9 @@ Y_UNIT_TEST_SUITE(TLazyValueTestSuite) { } Y_UNIT_TEST(TestLazyValueInitialization) { - TLazyValue<int> value1([]() { return 5; }); + TLazyValue<int> value1([]() { return 5; }); - TLazyValue<int> value2 = []() { return 5; }; + TLazyValue<int> value2 = []() { return 5; }; TLazyValue<int> notInitialized{}; @@ -25,7 +25,7 @@ Y_UNIT_TEST_SUITE(TLazyValueTestSuite) { } Y_UNIT_TEST(TestLazyValueCopy) { - TLazyValue<int> value([]() { return 5; }); + TLazyValue<int> value([]() { return 5; }); UNIT_ASSERT(!value); TLazyValue<int> emptyCopy = value; @@ -75,7 +75,7 @@ Y_UNIT_TEST_SUITE(TLazyValueTestSuite) { Y_UNIT_TEST(TestLazyValueMoveValueInitialization) { size_t numCopies = 0; TCopyCounter counter{numCopies}; - TLazyValue<TCopyCounter> value{[v = std::move(counter)]() mutable { return std::move(v); }}; + TLazyValue<TCopyCounter> value{[v = std::move(counter)]() mutable { return std::move(v); }}; value.InitDefault(); UNIT_ASSERT_EQUAL(numCopies, 0); } @@ -83,7 +83,7 @@ Y_UNIT_TEST_SUITE(TLazyValueTestSuite) { Y_UNIT_TEST(TestLazyValueCopyValueInitialization) { size_t numCopies = 0; TCopyCounter counter{numCopies}; - TLazyValue<TCopyCounter> value{[&counter]() { return counter; }}; + TLazyValue<TCopyCounter> value{[&counter]() { return counter; }}; UNIT_ASSERT_EQUAL(numCopies, 0); value.InitDefault(); UNIT_ASSERT_EQUAL(numCopies, 1); |