MCPcopy Create free account
hub / github.com/boostorg/stacktrace / test_rethrow_after_other_exception

Function test_rethrow_after_other_exception

test/test_from_exception.cpp:102–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102BOOST_NOINLINE BOOST_SYMBOL_VISIBLE void test_rethrow_after_other_exception() {
103 try {
104 in_test_rethrow_2("test_rethrow_after_other_exception");
105 } catch (const std::exception&) {
106 auto trace = stacktrace::from_current_exception();
107 BOOST_TEST(trace);
108 std::cout << "Tarce in test_rethrow_after_other_exception(): " << trace << '\n';
109 BOOST_TEST(to_string(trace).find("in_test_throw_1") == std::string::npos);
110 BOOST_TEST(to_string(trace).find("in_test_throw_2") != std::string::npos);
111 BOOST_TEST(to_string(trace).find("in_test_rethrow_2") != std::string::npos);
112 }
113}
114
115BOOST_NOINLINE BOOST_SYMBOL_VISIBLE void test_nested() {
116 try {

Callers 1

mainFunction · 0.85

Calls 3

in_test_rethrow_2Function · 0.85
from_current_exceptionFunction · 0.85
to_stringFunction · 0.85

Tested by

no test coverage detected