| 23 | { |
| 24 | public: |
| 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 | |
| 40 | TEST_SUITE(result_for_test, "boost.json.result_for"); |
nothing calls this directly
no outgoing calls
no test coverage detected