| 34 | } |
| 35 | |
| 36 | int main() |
| 37 | { |
| 38 | leaf::try_handle_all( |
| 39 | []() -> leaf::result<void> |
| 40 | { |
| 41 | return f2(); |
| 42 | }, |
| 43 | []( leaf::diagnostic_details const & di ) |
| 44 | { |
| 45 | #if BOOST_LEAF_CFG_STD_STRING |
| 46 | std::ostringstream st; |
| 47 | st << di; |
| 48 | std::string s = st.str(); |
| 49 | std::cout << s << std::endl; |
| 50 | if( BOOST_LEAF_CFG_DIAGNOSTICS && BOOST_LEAF_CFG_CAPTURE ) |
| 51 | { |
| 52 | BOOST_TEST_NE(s.find("41"), s.npos); |
| 53 | BOOST_TEST_EQ(s.find("42"), s.npos); |
| 54 | } |
| 55 | #endif |
| 56 | } ); |
| 57 | |
| 58 | return boost::report_errors(); |
| 59 | } |
nothing calls this directly
no test coverage detected