diff options
author | Nikita Slyusarev <nslus@yandex-team.com> | 2022-02-10 16:46:53 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:53 +0300 |
commit | 469afdc4e2587bf62ecdd096b75a0baa444c4012 (patch) | |
tree | 49e222ea1c5804306084bb3ae065bb702625360f /library/cpp/json | |
parent | cd77cecfc03a3eaf87816af28a33067c4f0cdb59 (diff) | |
download | ydb-469afdc4e2587bf62ecdd096b75a0baa444c4012.tar.gz |
Restoring authorship annotation for Nikita Slyusarev <nslus@yandex-team.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/json')
-rw-r--r-- | library/cpp/json/fast_sax/ya.make | 8 | ||||
-rw-r--r-- | library/cpp/json/flex_buffers/ya.make | 2 | ||||
-rw-r--r-- | library/cpp/json/ut/json_reader_ut.cpp | 34 | ||||
-rw-r--r-- | library/cpp/json/writer/ya.make | 10 | ||||
-rw-r--r-- | library/cpp/json/ya.make | 8 | ||||
-rw-r--r-- | library/cpp/json/yson/ut/ya.make | 2 |
6 files changed, 32 insertions, 32 deletions
diff --git a/library/cpp/json/fast_sax/ya.make b/library/cpp/json/fast_sax/ya.make index 2419d1a935..c6447ab6ac 100644 --- a/library/cpp/json/fast_sax/ya.make +++ b/library/cpp/json/fast_sax/ya.make @@ -1,9 +1,9 @@ LIBRARY() -OWNER( - pg - velavokr -) +OWNER( + pg + velavokr +) PEERDIR( library/cpp/json/common diff --git a/library/cpp/json/flex_buffers/ya.make b/library/cpp/json/flex_buffers/ya.make index fa00f73ca9..3ece5e3703 100644 --- a/library/cpp/json/flex_buffers/ya.make +++ b/library/cpp/json/flex_buffers/ya.make @@ -2,7 +2,7 @@ LIBRARY() OWNER(pg) -ADDINCL(contrib/libs/flatbuffers/include) +ADDINCL(contrib/libs/flatbuffers/include) PEERDIR( library/cpp/json diff --git a/library/cpp/json/ut/json_reader_ut.cpp b/library/cpp/json/ut/json_reader_ut.cpp index 932793d9b5..cd31afa0b8 100644 --- a/library/cpp/json/ut/json_reader_ut.cpp +++ b/library/cpp/json/ut/json_reader_ut.cpp @@ -354,24 +354,24 @@ Y_UNIT_TEST_SUITE(TJsonReaderTest) { UNIT_ASSERT_EQUAL(value["test"].GetDoubleRobust(), static_cast<double>(Max<ui64>())); } // Max<ui64>() } // TJsonDoubleTest - + Y_UNIT_TEST(TJsonInvalidTest) { - { - // No exceptions mode. - TStringStream in; - in << "{ \"test\" : }"; - TJsonValue value; - UNIT_ASSERT(!ReadJsonTree(&in, &value)); - } - - { - // Exception throwing mode. - TStringStream in; - in << "{ \"test\" : }"; - TJsonValue value; - UNIT_ASSERT_EXCEPTION(ReadJsonTree(&in, &value, true), TJsonException); - } - } + { + // No exceptions mode. + TStringStream in; + in << "{ \"test\" : }"; + TJsonValue value; + UNIT_ASSERT(!ReadJsonTree(&in, &value)); + } + + { + // Exception throwing mode. + TStringStream in; + in << "{ \"test\" : }"; + TJsonValue value; + UNIT_ASSERT_EXCEPTION(ReadJsonTree(&in, &value, true), TJsonException); + } + } Y_UNIT_TEST(TJsonMemoryLeakTest) { // after https://clubs.at.yandex-team.ru/stackoverflow/3691 diff --git a/library/cpp/json/writer/ya.make b/library/cpp/json/writer/ya.make index 47999a85c1..3989ff3504 100644 --- a/library/cpp/json/writer/ya.make +++ b/library/cpp/json/writer/ya.make @@ -1,10 +1,10 @@ LIBRARY() -OWNER( - mvel - myltsev - pg -) +OWNER( + mvel + myltsev + pg +) PEERDIR( library/cpp/json/common diff --git a/library/cpp/json/ya.make b/library/cpp/json/ya.make index 7add7496b7..d58eead8ec 100644 --- a/library/cpp/json/ya.make +++ b/library/cpp/json/ya.make @@ -1,9 +1,9 @@ LIBRARY() -OWNER( - pg - velavokr -) +OWNER( + pg + velavokr +) SRCS( json_writer.cpp diff --git a/library/cpp/json/yson/ut/ya.make b/library/cpp/json/yson/ut/ya.make index f372b26558..4ceb65b279 100644 --- a/library/cpp/json/yson/ut/ya.make +++ b/library/cpp/json/yson/ut/ya.make @@ -7,7 +7,7 @@ UNITTEST_FOR(library/cpp/json/yson) ALLOCATOR(LF) -DATA(sbr://363537653) +DATA(sbr://363537653) PEERDIR( library/cpp/blockcodecs |