aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/scheme/tests/fuzz_json/lib
diff options
context:
space:
mode:
authorRuslan Kovalev <ruslan.a.kovalev@gmail.com>2022-02-10 16:46:44 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:44 +0300
commit59e19371de37995fcb36beb16cd6ec030af960bc (patch)
treefa68e36093ebff8b805462e9e6d331fe9d348214 /library/cpp/scheme/tests/fuzz_json/lib
parent89db6fe2fe2c32d2a832ddfeb04e8d078e301084 (diff)
downloadydb-59e19371de37995fcb36beb16cd6ec030af960bc.tar.gz
Restoring authorship annotation for Ruslan Kovalev <ruslan.a.kovalev@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/scheme/tests/fuzz_json/lib')
-rw-r--r--library/cpp/scheme/tests/fuzz_json/lib/fuzz_json.cpp42
-rw-r--r--library/cpp/scheme/tests/fuzz_json/lib/fuzz_json.h14
-rw-r--r--library/cpp/scheme/tests/fuzz_json/lib/ya.make34
3 files changed, 45 insertions, 45 deletions
diff --git a/library/cpp/scheme/tests/fuzz_json/lib/fuzz_json.cpp b/library/cpp/scheme/tests/fuzz_json/lib/fuzz_json.cpp
index 7c16527c23..efaf3d28ef 100644
--- a/library/cpp/scheme/tests/fuzz_json/lib/fuzz_json.cpp
+++ b/library/cpp/scheme/tests/fuzz_json/lib/fuzz_json.cpp
@@ -1,9 +1,9 @@
-#include "fuzz_json.h"
+#include "fuzz_json.h"
#include "util/generic/fwd.h"
-
+
#include <library/cpp/scheme/scheme.h>
-#include <util/stream/null.h>
-
+#include <util/stream/null.h>
+
namespace {
static constexpr size_t MAX_DEPTH = 4;
static constexpr size_t MAX_PATH_LEN = 256;
@@ -75,25 +75,25 @@ namespace {
}
}
-namespace NSc::NUt {
+namespace NSc::NUt {
- void FuzzJson(TStringBuf wire) {
+ void FuzzJson(TStringBuf wire) {
if (wire.size() < 2) {
- return;
- }
-
+ return;
+ }
+
ProcessPath("[123][1234][12][2134][12312312][1][12]");
- ui8 len1 = wire[0];
- ui8 len2 = wire[1];
- wire.Skip(2);
- auto json1 = wire.NextTokAt(len1);
- auto json2 = wire.NextTokAt(len2);
- NSc::TValue val1 = NSc::TValue::FromJson(json1);
- NSc::TValue val2 = NSc::TValue::FromJson(json2);
- NSc::TValue val3;
- val3.MergeUpdate(val1);
+ ui8 len1 = wire[0];
+ ui8 len2 = wire[1];
+ wire.Skip(2);
+ auto json1 = wire.NextTokAt(len1);
+ auto json2 = wire.NextTokAt(len2);
+ NSc::TValue val1 = NSc::TValue::FromJson(json1);
+ NSc::TValue val2 = NSc::TValue::FromJson(json2);
+ NSc::TValue val3;
+ val3.MergeUpdate(val1);
size_t i = 0;
while (!wire.empty()) {
@@ -110,6 +110,6 @@ namespace NSc::NUt {
val3 = NSc::TValue();
}
}
- Cnull << val3.ToJson();
- }
-}
+ Cnull << val3.ToJson();
+ }
+}
diff --git a/library/cpp/scheme/tests/fuzz_json/lib/fuzz_json.h b/library/cpp/scheme/tests/fuzz_json/lib/fuzz_json.h
index f8cf7a4770..f61a0c20ef 100644
--- a/library/cpp/scheme/tests/fuzz_json/lib/fuzz_json.h
+++ b/library/cpp/scheme/tests/fuzz_json/lib/fuzz_json.h
@@ -1,7 +1,7 @@
-#pragma once
-
-#include <util/generic/strbuf.h>
-
-namespace NSc::NUt {
- void FuzzJson(TStringBuf wire);
-}
+#pragma once
+
+#include <util/generic/strbuf.h>
+
+namespace NSc::NUt {
+ void FuzzJson(TStringBuf wire);
+}
diff --git a/library/cpp/scheme/tests/fuzz_json/lib/ya.make b/library/cpp/scheme/tests/fuzz_json/lib/ya.make
index b30a6c9350..fb49e26b9d 100644
--- a/library/cpp/scheme/tests/fuzz_json/lib/ya.make
+++ b/library/cpp/scheme/tests/fuzz_json/lib/ya.make
@@ -1,18 +1,18 @@
-LIBRARY()
-
-OWNER(
- g:blender
- g:middle
- g:upper
- velavokr
-)
-
-SRCS(
- fuzz_json.cpp
-)
-
-PEERDIR(
+LIBRARY()
+
+OWNER(
+ g:blender
+ g:middle
+ g:upper
+ velavokr
+)
+
+SRCS(
+ fuzz_json.cpp
+)
+
+PEERDIR(
library/cpp/scheme
-)
-
-END()
+)
+
+END()