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

Function main

test/diagnostics_test3.cpp:36–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36int 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}

Callers

nothing calls this directly

Calls 3

try_handle_allFunction · 0.85
report_errorsFunction · 0.85
f2Function · 0.70

Tested by

no test coverage detected