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

Function test_catch

test/so_dll_test.cpp:113–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113int test_catch(void (*f)())
114{
115 try
116 {
117 f();
118 return 1;
119 }
120 catch( leaf::error_id const & )
121 {
122 return 0;
123 }
124 catch(...)
125 {
126 return 2;
127 }
128}
129#endif // #ifndef BOOST_LEAF_NO_EXCEPTIONS
130
131void test_single_thread()

Callers 2

test_single_threadFunction · 0.85
test_multithreadedFunction · 0.85

Calls 1

fFunction · 0.70

Tested by

no test coverage detected