MCPcopy Create free account
hub / github.com/Icinga/icinga2 / MakeNestedJsonObject

Function MakeNestedJsonObject

test/base-json.cpp:177–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177static std::string MakeNestedJsonObject(size_t depth)
178{
179 std::ostringstream buf;
180 for (size_t i = 0; i < depth; ++i) {
181 buf << "{\"" << i << "\":";
182 }
183 buf << "null";
184 for (size_t i = 0; i < depth; ++i) {
185 buf << "}";
186 }
187 return buf.str();
188}
189
190BOOST_AUTO_TEST_CASE(decode_depth_limit)
191{

Callers 2

BOOST_AUTO_TEST_CASEFunction · 0.85
TestJsonStackSizeFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestJsonStackSizeFunction · 0.68