MCPcopy Create free account
hub / github.com/catboost/catboost / GenerateDeepJsonArray

Function GenerateDeepJsonArray

library/cpp/json/ut/json_reader_ut.cpp:69–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67};
68
69void GenerateDeepJsonArray(TStringStream& stream, ui64 depth) {
70 stream << "{\"key\":";
71 for (ui32 i = 0; i < depth - 1; ++i) {
72 stream << "[";
73 }
74 for (ui32 i = 0; i < depth - 1; ++i) {
75 stream << "]";
76 }
77 stream << "}";
78}
79
80void GenerateDeepJsonDict(TStringStream& stream, ui64 depth) {
81 for (ui64 i = 0; i < depth - 1; ++i) {

Callers 1

Y_UNIT_TESTFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected