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

Function JSONCONS_CATCH

test/corelib/src/json_parser_error_tests.cpp:23–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21 json::parse(text);
22 }
23 JSONCONS_CATCH (const ser_error& e)
24 {
25 if (e.code() != ec)
26 {
27 std::cout << text << '\n';
28 std::cout << e.code().value() << " " << e.what() << '\n';
29 }
30 CHECK(ec == e.code());
31 }
32}
33
34void test_parse_ec(const std::string& text, const std::error_code& expected)

Callers

nothing calls this directly

Calls 3

codeMethod · 0.45
valueMethod · 0.45
whatMethod · 0.45

Tested by

no test coverage detected