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

Function test3

test/github_issue53x_test.cpp:62–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void test3(int a)
63{
64 int x = 0;
65 leaf::try_catch(
66 [&]
67 {
68 auto val = test2(a);
69 (void) val;
70 },
71 [&](leaf::match<ErrorCode, ErrorCode::E_GENERIC_PARSE>)
72 {
73 x = 1;
74 },
75 [&](ErrorCode e)
76 {
77 x = 2;
78 },
79 [&]()
80 {
81 x = 3;
82 }
83 );
84 BOOST_TEST_EQ(x, 1);
85}
86
87int main()
88{

Callers 1

mainFunction · 0.70

Calls 2

try_catchFunction · 0.85
test2Function · 0.70

Tested by

no test coverage detected