| 88 | } |
| 89 | |
| 90 | static |
| 91 | value |
| 92 | from_string_test( |
| 93 | string_view s, |
| 94 | storage_ptr sp = {}, |
| 95 | const parse_options& po = parse_options()) |
| 96 | { |
| 97 | stream_parser p(storage_ptr(), po); |
| 98 | system::error_code ec; |
| 99 | p.reset(std::move(sp)); |
| 100 | p.write(s.data(), s.size(), ec); |
| 101 | if(BOOST_TEST(! ec)) |
| 102 | p.finish(ec); |
| 103 | BOOST_TEST(! ec); |
| 104 | return p.release(); |
| 105 | } |
| 106 | |
| 107 | void |
| 108 | static |
nothing calls this directly
no test coverage detected