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

Function JSONCONS_CATCH

test/corelib/src/json_reader_tests.cpp:120–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118 json::parse(text);
119 }
120 JSONCONS_CATCH (const ser_error& e)
121 {
122 if (e.code() != ec)
123 {
124 std::cout << text << '\n';
125 std::cout << e.code().value() << " " << e.what() << '\n';
126 }
127 CHECK(ec == e.code());
128 }
129}
130
131void test_json_reader_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