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

Function test2

test/github_issue53_test.cpp:30–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30leaf::result<float> test2(int a)
31{
32 return leaf::try_handle_some(
33 [&]() -> leaf::result<float>
34 {
35 BOOST_LEAF_AUTO(val, test1(a));
36 (void) val;
37 return 4.5;
38 },
39 [](leaf::match<ErrorCode,ErrorCode::E_GENERIC_UNEXPECTED>) -> leaf::result<float>
40 {
41 return leaf::new_error(ErrorCode::E_GENERIC_PARSE);
42 }
43 );
44}
45
46void test3(int a)
47{

Callers 1

test3Function · 0.70

Calls 3

try_handle_someFunction · 0.85
new_errorFunction · 0.85
test1Function · 0.70

Tested by

no test coverage detected