MCPcopy Create free account
hub / github.com/boostorg/json / run

Method run

test/result_for.cpp:25–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23{
24public:
25 void
26 run()
27 {
28 BOOST_STATIC_CONSTEXPR source_location loc = BOOST_CURRENT_LOCATION;
29 auto const res = result_from_errno<int>(EDOM, &loc);
30 BOOST_TEST( res.has_error() );
31
32 auto const ec = res.error();
33 BOOST_TEST( ec.has_location() );
34 BOOST_TEST( ec.location() == loc );
35 BOOST_TEST( ec.category() == system::generic_category() );
36 BOOST_TEST( ec == std::errc::argument_out_of_domain );
37 }
38};
39
40TEST_SUITE(result_for_test, "boost.json.result_for");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected