| 37 | //------------------------------------------------------ |
| 38 | |
| 39 | void |
| 40 | testCtors() |
| 41 | { |
| 42 | // stream_parser(stream_parser const&) |
| 43 | BOOST_CORE_STATIC_ASSERT( |
| 44 | ! std::is_copy_constructible<stream_parser>::value); |
| 45 | |
| 46 | // operator=(stream_parser const&) |
| 47 | BOOST_CORE_STATIC_ASSERT( |
| 48 | ! std::is_copy_assignable<stream_parser>::value); |
| 49 | |
| 50 | // ~stream_parser() |
| 51 | { |
| 52 | { |
| 53 | stream_parser p; |
| 54 | } |
| 55 | |
| 56 | { |
| 57 | stream_parser p; |
| 58 | p.reset(make_shared_resource< |
| 59 | monotonic_resource>()); |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | // stream_parser(storage_ptr, parse_options, unsigned char*, size_t) |
| 64 | { |
| 65 | unsigned char buf[256]; |
| 66 | stream_parser p( |
| 67 | storage_ptr(), |
| 68 | parse_options(), |
| 69 | &buf[0], |
| 70 | sizeof(buf)); |
| 71 | } |
| 72 | |
| 73 | // stream_parser() |
| 74 | { |
| 75 | stream_parser p; |
| 76 | } |
| 77 | |
| 78 | // stream_parser(storage_ptr, parse_options) |
| 79 | { |
| 80 | stream_parser p(storage_ptr{}, parse_options()); |
| 81 | } |
| 82 | |
| 83 | // stream_parser(storage_ptr) |
| 84 | { |
| 85 | stream_parser p(storage_ptr{}); |
| 86 | } |
| 87 | |
| 88 | // stream_parser(storage_ptr, parse_options, unsigned char[]) |
| 89 | { |
| 90 | unsigned char buf[256]; |
| 91 | stream_parser p( |
| 92 | storage_ptr(), |
| 93 | parse_options(), |
| 94 | buf); |
| 95 | } |
| 96 |
nothing calls this directly
no test coverage detected