| 175 | } |
| 176 | |
| 177 | static 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 | |
| 190 | BOOST_AUTO_TEST_CASE(decode_depth_limit) |
| 191 | { |
no outgoing calls