| 400 | }; |
| 401 | |
| 402 | std::string JSONPrettyPrint(const UniValue& univalue) |
| 403 | { |
| 404 | std::string ret = univalue.write(4); |
| 405 | // Workaround for libunivalue pretty printer, which puts a space between comma's and newlines |
| 406 | size_t pos = 0; |
| 407 | while ((pos = ret.find(" \n", pos)) != std::string::npos) { |
| 408 | ret.replace(pos, 2, "\n"); |
| 409 | pos++; |
| 410 | } |
| 411 | return ret; |
| 412 | } |
| 413 | } |
| 414 | |
| 415 | BOOST_AUTO_TEST_CASE(script_build) |
no test coverage detected