| 14 | using namespace jsoncons; |
| 15 | |
| 16 | void test_parse_error(const std::string& text, const std::error_code& ec) |
| 17 | { |
| 18 | REQUIRE_THROWS(json::parse(text)); |
| 19 | JSONCONS_TRY |
| 20 | { |
| 21 | json::parse(text); |
| 22 | } |
| 23 | JSONCONS_CATCH (const ser_error& e) |
| 24 | { |
| 25 | if (e.code() != ec) |
no test coverage detected