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

Function check_exception

test/nlohmann_json_encoder_test.cpp:223–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221
222#ifndef BOOST_LEAF_NO_EXCEPTIONS
223void check_exception(nlohmann::ordered_json const & j)
224{
225 auto const & exj = j["std::exception"];
226 BOOST_TEST(!exj["dynamic_type"].get<std::string>().empty());
227 BOOST_TEST(!exj["what"].get<std::string>().empty());
228}
229#endif
230
231int main()

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected