| 111 | } |
| 112 | |
| 113 | void test_json_reader_error(const std::string& text, const std::error_code& ec) |
| 114 | { |
| 115 | REQUIRE_THROWS(json::parse(text)); |
| 116 | JSONCONS_TRY |
| 117 | { |
| 118 | json::parse(text); |
| 119 | } |
| 120 | JSONCONS_CATCH (const ser_error& e) |
| 121 | { |
| 122 | if (e.code() != ec) |
no test coverage detected