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

Function f1

example/error_trace.cpp:60–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58int const failure_percent = 25;
59
60leaf::result<void> f1()
61{
62 ERROR_TRACE;
63 if( (std::rand()%100) > failure_percent )
64 return { };
65 else
66 return leaf::new_error();
67}
68
69leaf::result<void> f2()
70{

Callers 1

f2Function · 0.70

Calls 1

new_errorFunction · 0.85

Tested by

no test coverage detected