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

Function test2

test/github_issue53x_test.cpp:45–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45float test2(int a)
46{
47 return leaf::try_catch(
48 [&]
49 {
50 auto val = test1(a);
51 (void) val;
52 return 4.5;
53 },
54 [](leaf::match<ErrorCode,ErrorCode::E_GENERIC_UNEXPECTED>)
55 {
56 BOOST_LEAF_THROW_EXCEPTION(ErrorCode::E_GENERIC_PARSE);
57 return 0;
58 }
59 );
60}
61
62void test3(int a)
63{

Callers 1

test3Function · 0.70

Calls 2

try_catchFunction · 0.85
test1Function · 0.70

Tested by

no test coverage detected