| 326 | //------------------------------------------------------ |
| 327 | |
| 328 | static |
| 329 | value |
| 330 | from_string_test( |
| 331 | string_view s, |
| 332 | storage_ptr sp = {}, |
| 333 | const parse_options& po = parse_options()) |
| 334 | { |
| 335 | stream_parser p(storage_ptr(), po); |
| 336 | system::error_code ec; |
| 337 | p.reset(std::move(sp)); |
| 338 | p.write(s.data(), s.size(), ec); |
| 339 | if(BOOST_TEST(! ec)) |
| 340 | p.finish(ec); |
| 341 | BOOST_TEST(! ec); |
| 342 | return p.release(); |
| 343 | } |
| 344 | |
| 345 | void |
| 346 | static |
nothing calls this directly
no test coverage detected