MCPcopy Create free account
hub / github.com/boostorg/leaf / check_exception

Function check_exception

test/boost_json_encoder_test.cpp:222–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220
221#ifndef BOOST_LEAF_NO_EXCEPTIONS
222void check_exception(boost::json::value const & j)
223{
224 auto const & exj = j.at("std::exception");
225 BOOST_TEST(!boost::json::value_to<std::string>(exj.at("dynamic_type")).empty());
226 BOOST_TEST(!boost::json::value_to<std::string>(exj.at("what")).empty());
227}
228#endif
229
230int main()

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected