MCPcopy Create free account
hub / github.com/danielaparker/jsoncons / test_json_reader_error

Function test_json_reader_error

test/corelib/src/json_reader_tests.cpp:113–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void 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)

Callers 1

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected